@lovrabet/rabetbase-cli 2.5.1-beta.6 → 2.5.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 (311) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/api/generate-sdk-config-file.js +1 -1
  5. package/lib/auth/auth-server-ui.js +1 -1
  6. package/lib/auth/auth-server.js +1 -1
  7. package/lib/auth/constant.js +1 -1
  8. package/lib/auth/get-cookie.js +1 -1
  9. package/lib/auth/get-session-user.js +1 -1
  10. package/lib/auth/is-session-valid.js +1 -1
  11. package/lib/auth/login-success-html.js +1 -1
  12. package/lib/auth/logout.js +1 -1
  13. package/lib/cli-flags.js +1 -1
  14. package/lib/cli.js +1 -1
  15. package/lib/commands/api/generate.js +1 -1
  16. package/lib/commands/api/index.js +1 -1
  17. package/lib/commands/api/list.js +1 -1
  18. package/lib/commands/api/pull.js +1 -1
  19. package/lib/commands/api/shared.js +1 -1
  20. package/lib/commands/app/index.js +1 -1
  21. package/lib/commands/app/list.js +1 -1
  22. package/lib/commands/app/members-list.js +1 -1
  23. package/lib/commands/app/remote-directory.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app-config/delete.js +1 -1
  26. package/lib/commands/app-config/get.js +1 -1
  27. package/lib/commands/app-config/index.js +1 -1
  28. package/lib/commands/app-config/list.js +1 -1
  29. package/lib/commands/app-config/set.js +1 -1
  30. package/lib/commands/app-config/shared.js +1 -1
  31. package/lib/commands/auth/index.js +1 -1
  32. package/lib/commands/bff/create.js +1 -1
  33. package/lib/commands/bff/delete.js +1 -1
  34. package/lib/commands/bff/detail.js +1 -1
  35. package/lib/commands/bff/index.js +1 -1
  36. package/lib/commands/bff/list.js +1 -1
  37. package/lib/commands/bff/pull.js +1 -1
  38. package/lib/commands/bff/push.js +1 -1
  39. package/lib/commands/bff/status.js +1 -1
  40. package/lib/commands/cli-skill/index.js +1 -1
  41. package/lib/commands/cli-update.js +1 -1
  42. package/lib/commands/codegen/index.js +1 -1
  43. package/lib/commands/codegen/sdk.js +1 -1
  44. package/lib/commands/codegen/sql.js +1 -1
  45. package/lib/commands/common/app-registry.js +1 -1
  46. package/lib/commands/common/app-selector.js +1 -1
  47. package/lib/commands/common/async-task.js +1 -1
  48. package/lib/commands/common/dry-run.js +1 -1
  49. package/lib/commands/common/flags.js +1 -1
  50. package/lib/commands/common/local-file.js +1 -1
  51. package/lib/commands/common/validate.js +1 -1
  52. package/lib/commands/config/delete.js +1 -1
  53. package/lib/commands/config/get.js +1 -1
  54. package/lib/commands/config/index.js +1 -1
  55. package/lib/commands/config/init.js +1 -1
  56. package/lib/commands/config/list.js +1 -1
  57. package/lib/commands/config/set.js +1 -1
  58. package/lib/commands/config/shared.js +1 -1
  59. package/lib/commands/dataset/business-group-update.js +1 -1
  60. package/lib/commands/dataset/business-groups.js +1 -1
  61. package/lib/commands/dataset/capability.js +1 -1
  62. package/lib/commands/dataset/delete.js +1 -1
  63. package/lib/commands/dataset/detail.js +1 -1
  64. package/lib/commands/dataset/extend-update.js +1 -1
  65. package/lib/commands/dataset/field-restore.js +1 -1
  66. package/lib/commands/dataset/field-update.js +1 -1
  67. package/lib/commands/dataset/generate.js +1 -1
  68. package/lib/commands/dataset/index.js +1 -1
  69. package/lib/commands/dataset/list.js +1 -1
  70. package/lib/commands/dataset/operations.js +1 -1
  71. package/lib/commands/dataset/relation-audit.js +1 -1
  72. package/lib/commands/dataset/relation-create.js +1 -1
  73. package/lib/commands/dataset/relation-delete.js +1 -1
  74. package/lib/commands/dataset/relation-shared.js +1 -1
  75. package/lib/commands/dataset/relation-update.js +1 -1
  76. package/lib/commands/dataset/relations.js +1 -1
  77. package/lib/commands/dataset/rename.js +1 -1
  78. package/lib/commands/dataset/restore.js +1 -1
  79. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  80. package/lib/commands/db/analysis-batching.js +1 -1
  81. package/lib/commands/db/analyze-batch-plan.js +1 -1
  82. package/lib/commands/db/analyze-cancel.js +1 -1
  83. package/lib/commands/db/analyze-start.js +1 -1
  84. package/lib/commands/db/analyze-status.js +1 -1
  85. package/lib/commands/db/create.js +1 -1
  86. package/lib/commands/db/delete.js +1 -1
  87. package/lib/commands/db/detail.js +1 -1
  88. package/lib/commands/db/diff-refresh-start.js +1 -1
  89. package/lib/commands/db/diff-refresh-status.js +1 -1
  90. package/lib/commands/db/diff.js +1 -1
  91. package/lib/commands/db/index.js +1 -1
  92. package/lib/commands/db/list.js +1 -1
  93. package/lib/commands/db/shared.js +1 -1
  94. package/lib/commands/db/table-diff-shared.js +1 -1
  95. package/lib/commands/db/tables.js +1 -1
  96. package/lib/commands/db/test.js +1 -1
  97. package/lib/commands/db/update.js +1 -1
  98. package/lib/commands/deployment/auto-sync.js +1 -1
  99. package/lib/commands/deployment/index.js +1 -1
  100. package/lib/commands/deployment/sync.js +1 -1
  101. package/lib/commands/doctor.js +1 -1
  102. package/lib/commands/file/index.js +1 -1
  103. package/lib/commands/issue/index.js +1 -1
  104. package/lib/commands/issue/nudge.js +1 -1
  105. package/lib/commands/issue/report.js +1 -1
  106. package/lib/commands/issue/shared.js +1 -1
  107. package/lib/commands/kb/create.js +1 -1
  108. package/lib/commands/kb/delete.js +1 -1
  109. package/lib/commands/kb/detail.js +1 -1
  110. package/lib/commands/kb/index.js +1 -1
  111. package/lib/commands/kb/list.js +1 -1
  112. package/lib/commands/kb/search.js +1 -1
  113. package/lib/commands/kb/shared.js +1 -1
  114. package/lib/commands/kb/update.js +1 -1
  115. package/lib/commands/logs/index.js +1 -1
  116. package/lib/commands/menu/asset-update.js +1 -1
  117. package/lib/commands/menu/delete.js +1 -1
  118. package/lib/commands/menu/external-link-create.js +1 -1
  119. package/lib/commands/menu/external-link-update.js +1 -1
  120. package/lib/commands/menu/group-create.js +1 -1
  121. package/lib/commands/menu/group-update.js +1 -1
  122. package/lib/commands/menu/index.js +1 -1
  123. package/lib/commands/menu/list.js +1 -1
  124. package/lib/commands/menu/move.js +1 -1
  125. package/lib/commands/menu/regroup-start.js +1 -1
  126. package/lib/commands/menu/rename.js +1 -1
  127. package/lib/commands/menu/shared/compare-table.js +1 -1
  128. package/lib/commands/menu/shared/delete-plan.js +1 -1
  129. package/lib/commands/menu/shared/facts.js +1 -1
  130. package/lib/commands/menu/shared/index.js +1 -1
  131. package/lib/commands/menu/shared/inquirer.js +1 -1
  132. package/lib/commands/menu/shared/local-pages.js +1 -1
  133. package/lib/commands/menu/shared/logic.js +1 -1
  134. package/lib/commands/menu/shared/mutations.js +1 -1
  135. package/lib/commands/menu/shared/service.js +1 -1
  136. package/lib/commands/menu/shared/sync-core.js +1 -1
  137. package/lib/commands/menu/shared/update-core.js +1 -1
  138. package/lib/commands/menu/shared/valid-url.js +1 -1
  139. package/lib/commands/menu/sync.js +1 -1
  140. package/lib/commands/menu/visibility-update.js +1 -1
  141. package/lib/commands/notification/config-create.js +1 -1
  142. package/lib/commands/notification/config-delete.js +1 -1
  143. package/lib/commands/notification/config-list.js +1 -1
  144. package/lib/commands/notification/config-update.js +1 -1
  145. package/lib/commands/notification/index.js +1 -1
  146. package/lib/commands/notification/shared.js +1 -1
  147. package/lib/commands/ocr/index.js +1 -1
  148. package/lib/commands/page/create.js +1 -1
  149. package/lib/commands/page/custom/detail.js +1 -1
  150. package/lib/commands/page/custom/list.js +1 -1
  151. package/lib/commands/page/custom/publish.js +1 -1
  152. package/lib/commands/page/custom/shared.js +1 -1
  153. package/lib/commands/page/custom/syntax.js +1 -1
  154. package/lib/commands/page/custom/template.js +1 -1
  155. package/lib/commands/page/custom/update.js +1 -1
  156. package/lib/commands/page/data-list-status.js +1 -1
  157. package/lib/commands/page/generate-start.js +1 -1
  158. package/lib/commands/page/generate-status.js +1 -1
  159. package/lib/commands/page/index.js +1 -1
  160. package/lib/commands/page/pull.js +1 -1
  161. package/lib/commands/page/push.js +1 -1
  162. package/lib/commands/page/relation-audit.js +1 -1
  163. package/lib/commands/page/restore.js +1 -1
  164. package/lib/commands/page/shared.js +1 -1
  165. package/lib/commands/page/sync.js +1 -1
  166. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  167. package/lib/commands/project/create/format-elapsed.js +1 -1
  168. package/lib/commands/project/create/main.js +1 -1
  169. package/lib/commands/project/create/materialize-project-template.js +1 -1
  170. package/lib/commands/project/create/project-name.js +1 -1
  171. package/lib/commands/project/create/project-template-archive.js +1 -1
  172. package/lib/commands/project/create/project-template-path.js +1 -1
  173. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  174. package/lib/commands/project/create/use-format-code.js +1 -1
  175. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  176. package/lib/commands/project/domain-routing-sync.js +1 -1
  177. package/lib/commands/project/index.js +1 -1
  178. package/lib/commands/project/upgrade.js +1 -1
  179. package/lib/commands/registry.js +1 -1
  180. package/lib/commands/role/delete.js +1 -1
  181. package/lib/commands/role/detail.js +1 -1
  182. package/lib/commands/role/index.js +1 -1
  183. package/lib/commands/role/list.js +1 -1
  184. package/lib/commands/role/shared.js +1 -1
  185. package/lib/commands/role/update.js +1 -1
  186. package/lib/commands/role/user-add.js +1 -1
  187. package/lib/commands/role/user-remove.js +1 -1
  188. package/lib/commands/role/user-resolve.js +1 -1
  189. package/lib/commands/rule/get.js +1 -1
  190. package/lib/commands/rule/index.js +1 -1
  191. package/lib/commands/rule/list.js +1 -1
  192. package/lib/commands/rule/set.js +1 -1
  193. package/lib/commands/rule/shared.js +1 -1
  194. package/lib/commands/run/index.js +1 -1
  195. package/lib/commands/schema.js +1 -1
  196. package/lib/commands/sql/create.js +1 -1
  197. package/lib/commands/sql/delete.js +1 -1
  198. package/lib/commands/sql/detail.js +1 -1
  199. package/lib/commands/sql/exec.js +1 -1
  200. package/lib/commands/sql/index.js +1 -1
  201. package/lib/commands/sql/list.js +1 -1
  202. package/lib/commands/sql/pull.js +1 -1
  203. package/lib/commands/sql/push.js +1 -1
  204. package/lib/commands/sql/shared.js +1 -1
  205. package/lib/commands/sql/status.js +1 -1
  206. package/lib/commands/sql/validate.js +1 -1
  207. package/lib/commands/task/index.js +1 -1
  208. package/lib/commands/task/status.js +1 -1
  209. package/lib/commands/tenant/index.js +1 -1
  210. package/lib/commands/tenant/members-list.js +1 -1
  211. package/lib/commands/tenant/shared.js +1 -1
  212. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  213. package/lib/commands/user-account/index.js +1 -1
  214. package/lib/commands/workspace/add.js +1 -1
  215. package/lib/commands/workspace/index.js +1 -1
  216. package/lib/commands/workspace/remove.js +1 -1
  217. package/lib/config/deployment-sync.js +1 -1
  218. package/lib/config/domain-config.js +1 -1
  219. package/lib/config/project-domain-routing.js +1 -1
  220. package/lib/config/schema.js +1 -1
  221. package/lib/constant/cdn.js +1 -1
  222. package/lib/constant/cli.js +1 -1
  223. package/lib/constant/defaults.js +1 -1
  224. package/lib/constant/domain.js +1 -1
  225. package/lib/constant/env.js +1 -1
  226. package/lib/constant/output.js +1 -1
  227. package/lib/constant/paths.js +1 -1
  228. package/lib/constant/region.js +1 -1
  229. package/lib/constant/risk.js +1 -1
  230. package/lib/constant/routing-profile.js +1 -1
  231. package/lib/context/app-resolver.js +1 -1
  232. package/lib/context/auth-resolver.js +1 -1
  233. package/lib/context/config-loader.js +1 -1
  234. package/lib/context.js +1 -1
  235. package/lib/core/alias-resolver.js +1 -1
  236. package/lib/core/api-client.js +1 -1
  237. package/lib/core/bff/config.js +1 -1
  238. package/lib/core/bff/file-system.js +1 -1
  239. package/lib/core/bff/hash.js +1 -1
  240. package/lib/core/bff/lock.js +1 -1
  241. package/lib/core/bff/utils.js +1 -1
  242. package/lib/core/db-resolver.js +1 -1
  243. package/lib/core/kb-search-client.js +1 -1
  244. package/lib/core/page/file-system.js +1 -1
  245. package/lib/core/page/hash.js +1 -1
  246. package/lib/core/page/lock.js +1 -1
  247. package/lib/core/sql-index-auditor.js +1 -1
  248. package/lib/core/sql-sync/config.js +1 -1
  249. package/lib/core/sql-sync/file-system.js +1 -1
  250. package/lib/core/sql-sync/hash.js +1 -1
  251. package/lib/core/sql-sync/lock.js +1 -1
  252. package/lib/core/sql-sync/utils.js +1 -1
  253. package/lib/core/sql-validator.js +1 -1
  254. package/lib/errors.js +1 -1
  255. package/lib/framework/build-all-flags.js +1 -1
  256. package/lib/framework/error-output.js +1 -1
  257. package/lib/framework/explicit-yes.js +1 -1
  258. package/lib/framework/flags.js +1 -1
  259. package/lib/framework/help.js +1 -1
  260. package/lib/framework/index.js +1 -1
  261. package/lib/framework/output.js +1 -1
  262. package/lib/framework/response.js +1 -1
  263. package/lib/framework/runner-alias.js +1 -1
  264. package/lib/framework/runner.js +1 -1
  265. package/lib/framework/schema-export.js +1 -1
  266. package/lib/framework/types.js +1 -1
  267. package/lib/generated/build-info.d.ts +4 -4
  268. package/lib/generated/build-info.js +1 -1
  269. package/lib/generated/official-routing.js +1 -1
  270. package/lib/generated/routing-contract.js +1 -1
  271. package/lib/help.js +1 -1
  272. package/lib/postinstall.js +1 -1
  273. package/lib/runtime/confirmation.js +1 -1
  274. package/lib/runtime/event.js +1 -1
  275. package/lib/runtime/index.js +1 -1
  276. package/lib/runtime/queue.js +1 -1
  277. package/lib/runtime/resolve.js +1 -1
  278. package/lib/skills/builtin-skill.js +1 -1
  279. package/lib/skills/main.js +1 -1
  280. package/lib/skills/npx-skills-add.js +1 -1
  281. package/lib/skills/skill-presence.js +1 -1
  282. package/lib/telemetry/cli-command-trace.js +1 -1
  283. package/lib/telemetry/cli-help-trace.js +1 -1
  284. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  285. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  286. package/lib/telemetry/send-cli-trace-log.js +1 -1
  287. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  288. package/lib/utils/ai_config.js +1 -1
  289. package/lib/utils/apply-jq-filter.js +1 -1
  290. package/lib/utils/cdn-config.js +1 -1
  291. package/lib/utils/check-sdk-version.js +1 -1
  292. package/lib/utils/cli-version-check.js +1 -1
  293. package/lib/utils/cli-version-policy.js +1 -1
  294. package/lib/utils/config.js +1 -1
  295. package/lib/utils/entity-with-id.js +1 -1
  296. package/lib/utils/file-utils.js +1 -1
  297. package/lib/utils/guides-cdn.js +1 -1
  298. package/lib/utils/http-client.js +1 -1
  299. package/lib/utils/is-non-interactive.js +1 -1
  300. package/lib/utils/logger.js +1 -1
  301. package/lib/utils/params.js +1 -1
  302. package/lib/utils/platform.js +1 -1
  303. package/lib/utils/sleep.js +1 -1
  304. package/lib/utils/template-replacer.js +1 -1
  305. package/lib/utils/update-notice.js +1 -1
  306. package/lib/utils/version.js +1 -1
  307. package/lib/utils/with-active-cookie.js +1 -1
  308. package/lib/utils/write-cli-side-channel.js +1 -1
  309. package/package.json +1 -1
  310. package/skills/rabetbase/SKILL.md +1 -1
  311. package/skills/rabetbase.manifest.json +3 -3
@@ -1 +1 @@
1
- const a217_0x437008=a217_0x4bf8;(function(_0x300824,_0x29dde0){const _0x4549e8=a217_0x4bf8,_0x1f3e89=_0x300824();while(!![]){try{const _0x306ec2=parseInt(_0x4549e8(0x187))/0x1+-parseInt(_0x4549e8(0x19a))/0x2*(-parseInt(_0x4549e8(0x194))/0x3)+parseInt(_0x4549e8(0x190))/0x4*(parseInt(_0x4549e8(0x18b))/0x5)+-parseInt(_0x4549e8(0x18d))/0x6*(parseInt(_0x4549e8(0x19e))/0x7)+parseInt(_0x4549e8(0x199))/0x8*(parseInt(_0x4549e8(0x18e))/0x9)+parseInt(_0x4549e8(0x195))/0xa+-parseInt(_0x4549e8(0x191))/0xb;if(_0x306ec2===_0x29dde0)break;else _0x1f3e89['push'](_0x1f3e89['shift']());}catch(_0x60fedc){_0x1f3e89['push'](_0x1f3e89['shift']());}}}(a217_0x4420,0x822f5));import{CliErrors}from'../errors.js';export const AUTO_DEPLOYMENT_TARGET_ENVS=[a217_0x437008(0x18f),a217_0x437008(0x18a),a217_0x437008(0x198)];function a217_0x4420(){const _0x4c3f3b=['--deployment-db-id\x20must\x20be\x20a\x20positive\x20safe\x20integer.','9VNiOvA','3363450TOITpF','targetEnv','deployment-db-id','pre','8WAoGaG','296722JIiXxT','--deployment-target-env\x20must\x20be\x20one\x20of:\x20','string','trim','112zosjuK','validation','dbLinkId','object','519661Gsfxan','deploymentSync\x20must\x20contain\x20dbLinkId\x20and\x20targetEnv.','join','test','2812405vgyOfi','deployment-target-env','386442KMpvxx','8851626GTgfWj','dev','4FlmELx','14116685lKupII','Base\x20dblink\x20ID\x20whose\x20server-side\x20environment\x20mapping\x20selects\x20the\x20automatic\x20sync\x20target'];a217_0x4420=function(){return _0x4c3f3b;};return a217_0x4420();}export function getDeploymentSyncProfileFlagDefs(){const _0x494b4f=a217_0x437008;return[{'name':_0x494b4f(0x197),'type':'number','description':_0x494b4f(0x192)},{'name':_0x494b4f(0x18c),'type':'string','enum':[...AUTO_DEPLOYMENT_TARGET_ENVS],'description':'Non-production\x20target\x20selected\x20by\x20the\x20server-side\x20environment\x20mapping'}];}function a217_0x4bf8(_0xc491f5,_0x565c89){_0xc491f5=_0xc491f5-0x185;const _0x44209f=a217_0x4420();let _0x4bf88d=_0x44209f[_0xc491f5];return _0x4bf88d;}export function collectDeploymentSyncProfile(_0x3adea1){const _0x50690d=a217_0x437008,_0x47fafb=_0x3adea1(_0x50690d(0x197))[_0x50690d(0x19d)](),_0x245977=_0x3adea1(_0x50690d(0x18c))[_0x50690d(0x19d)]();if(!_0x47fafb&&!_0x245977)return undefined;return validateDeploymentSyncProfile({'dbLinkId':_0x47fafb?Number(_0x47fafb):undefined,'targetEnv':_0x245977||undefined});}export function validateDeploymentSyncProfile(_0x2fb5e5){const _0x11fe4c=a217_0x437008;if(!_0x2fb5e5||typeof _0x2fb5e5!==_0x11fe4c(0x186)||Array['isArray'](_0x2fb5e5))throw CliErrors[_0x11fe4c(0x19f)](_0x11fe4c(0x188));const _0x8a76dd=_0x2fb5e5,_0x1efb46=Number(_0x8a76dd[_0x11fe4c(0x185)]);if(!Number['isSafeInteger'](_0x1efb46)||_0x1efb46<=0x0)throw CliErrors[_0x11fe4c(0x19f)](_0x11fe4c(0x193));const _0x168565=typeof _0x8a76dd['targetEnv']===_0x11fe4c(0x19c)?_0x8a76dd[_0x11fe4c(0x196)]['trim']():'';if(!AUTO_DEPLOYMENT_TARGET_ENVS['includes'](_0x168565))throw CliErrors[_0x11fe4c(0x19f)](_0x11fe4c(0x19b)+AUTO_DEPLOYMENT_TARGET_ENVS[_0x11fe4c(0x189)](',\x20')+'.','Production\x20and\x20direct\x20targets\x20must\x20use\x20`rabetbase\x20deployment\x20sync`\x20with\x20explicit\x20confirmation.');return{'dbLinkId':_0x1efb46,'targetEnv':_0x168565};}
1
+ const a217_0x340a1c=a217_0x15a5;(function(_0x178fcf,_0x1bca70){const _0x28e996=a217_0x15a5,_0xf12f2=_0x178fcf();while(!![]){try{const _0x5282b0=parseInt(_0x28e996(0x158))/0x1*(parseInt(_0x28e996(0x14e))/0x2)+parseInt(_0x28e996(0x154))/0x3+-parseInt(_0x28e996(0x156))/0x4+parseInt(_0x28e996(0x14a))/0x5*(parseInt(_0x28e996(0x15a))/0x6)+parseInt(_0x28e996(0x157))/0x7+-parseInt(_0x28e996(0x15b))/0x8+-parseInt(_0x28e996(0x150))/0x9*(parseInt(_0x28e996(0x15e))/0xa);if(_0x5282b0===_0x1bca70)break;else _0xf12f2['push'](_0xf12f2['shift']());}catch(_0x4f0a61){_0xf12f2['push'](_0xf12f2['shift']());}}}(a217_0x4d10,0x9f67a));function a217_0x4d10(){const _0x15dca6=['isSafeInteger','deployment-db-id','1186029ALyMSK','dev','2006224pcWXau','7477323wOzRVU','634526vUBTuI','trim','1565796zSkHWL','6091248lTyhtZ','includes','deployment-target-env','30TmvdPA','Base\x20dblink\x20ID\x20whose\x20server-side\x20environment\x20mapping\x20selects\x20the\x20automatic\x20sync\x20target','targetEnv','object','validation','Non-production\x20target\x20selected\x20by\x20the\x20server-side\x20environment\x20mapping','20pPURDK','test','string','dbLinkId','4FtBmkU','deploymentSync\x20must\x20contain\x20dbLinkId\x20and\x20targetEnv.','5581692zUUipB','number'];a217_0x4d10=function(){return _0x15dca6;};return a217_0x4d10();}import{CliErrors}from'../errors.js';export const AUTO_DEPLOYMENT_TARGET_ENVS=[a217_0x340a1c(0x155),a217_0x340a1c(0x14b),'pre'];function a217_0x15a5(_0x3691e1,_0x1a519c){_0x3691e1=_0x3691e1-0x145;const _0x4d1098=a217_0x4d10();let _0x15a513=_0x4d1098[_0x3691e1];return _0x15a513;}export function getDeploymentSyncProfileFlagDefs(){const _0x539c5a=a217_0x340a1c;return[{'name':'deployment-db-id','type':_0x539c5a(0x151),'description':_0x539c5a(0x145)},{'name':_0x539c5a(0x15d),'type':_0x539c5a(0x14c),'enum':[...AUTO_DEPLOYMENT_TARGET_ENVS],'description':_0x539c5a(0x149)}];}export function collectDeploymentSyncProfile(_0x393fc1){const _0x261b59=a217_0x340a1c,_0x50f040=_0x393fc1(_0x261b59(0x153))['trim'](),_0x51b9f4=_0x393fc1(_0x261b59(0x15d))[_0x261b59(0x159)]();if(!_0x50f040&&!_0x51b9f4)return undefined;return validateDeploymentSyncProfile({'dbLinkId':_0x50f040?Number(_0x50f040):undefined,'targetEnv':_0x51b9f4||undefined});}export function validateDeploymentSyncProfile(_0x291bcf){const _0x349eb1=a217_0x340a1c;if(!_0x291bcf||typeof _0x291bcf!==_0x349eb1(0x147)||Array['isArray'](_0x291bcf))throw CliErrors[_0x349eb1(0x148)](_0x349eb1(0x14f));const _0x13975c=_0x291bcf,_0x1661d5=Number(_0x13975c[_0x349eb1(0x14d)]);if(!Number[_0x349eb1(0x152)](_0x1661d5)||_0x1661d5<=0x0)throw CliErrors[_0x349eb1(0x148)]('--deployment-db-id\x20must\x20be\x20a\x20positive\x20safe\x20integer.');const _0xfe77b5=typeof _0x13975c['targetEnv']==='string'?_0x13975c[_0x349eb1(0x146)]['trim']():'';if(!AUTO_DEPLOYMENT_TARGET_ENVS[_0x349eb1(0x15c)](_0xfe77b5))throw CliErrors['validation']('--deployment-target-env\x20must\x20be\x20one\x20of:\x20'+AUTO_DEPLOYMENT_TARGET_ENVS['join'](',\x20')+'.','Production\x20and\x20direct\x20targets\x20must\x20use\x20`rabetbase\x20deployment\x20sync`\x20with\x20explicit\x20confirmation.');return{'dbLinkId':_0x1661d5,'targetEnv':_0xfe77b5};}
@@ -1 +1 @@
1
- const a218_0x579d38=a218_0x4f69;(function(_0x1b2fdc,_0xa2fa5c){const _0xc7a901=a218_0x4f69,_0x30dfd5=_0x1b2fdc();while(!![]){try{const _0x2e430f=-parseInt(_0xc7a901(0x185))/0x1*(parseInt(_0xc7a901(0x17c))/0x2)+-parseInt(_0xc7a901(0x197))/0x3*(parseInt(_0xc7a901(0x19d))/0x4)+-parseInt(_0xc7a901(0x19c))/0x5+parseInt(_0xc7a901(0x190))/0x6*(-parseInt(_0xc7a901(0x1a4))/0x7)+parseInt(_0xc7a901(0x166))/0x8+parseInt(_0xc7a901(0x1b2))/0x9*(-parseInt(_0xc7a901(0x1b3))/0xa)+parseInt(_0xc7a901(0x163))/0xb;if(_0x2e430f===_0xa2fa5c)break;else _0x30dfd5['push'](_0x30dfd5['shift']());}catch(_0x50f9cf){_0x30dfd5['push'](_0x30dfd5['shift']());}}}(a218_0x323d,0x73c20));function a218_0x4f69(_0x720a62,_0x59b18d){_0x720a62=_0x720a62-0x161;const _0x323d13=a218_0x323d();let _0x4f6945=_0x323d13[_0x720a62];return _0x4f6945;}import{existsSync,readFileSync}from'node:fs';import{isAbsolute,resolve}from'node:path';import{CliErrors}from'../errors.js';import{ENTERPRISE_ROUTING_CDN_FIELDS,ENTERPRISE_ROUTING_DOMAIN_FIELDS,ENTERPRISE_ROUTING_KIND,ENTERPRISE_ROUTING_PROTOCOL,ENTERPRISE_ROUTING_TOP_LEVEL_FIELDS,ENTERPRISE_ROUTING_CONSUMERS,REQUIRED_ENTERPRISE_ROUTING_CDN_FIELDS,REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS}from'../generated/routing-contract.js';export const DOMAIN_CONFIG_FIELDS=['userDomain',a218_0x579d38(0x16a),a218_0x579d38(0x1aa),'skillDomain','kbDomain',a218_0x579d38(0x1b1),a218_0x579d38(0x1a2),a218_0x579d38(0x192)];const DOMAIN_FLAGS={'userDomain':a218_0x579d38(0x1b0),'apiDomain':'api-domain','runtimeDomain':a218_0x579d38(0x18a),'skillDomain':a218_0x579d38(0x176),'kbDomain':a218_0x579d38(0x1a9),'appDomain':a218_0x579d38(0x169),'localDomain':a218_0x579d38(0x194),'certificateDomain':'certificate-domain'};export const LEGACY_DOMAIN_CONFIG_FIELDS=[a218_0x579d38(0x19b),a218_0x579d38(0x191),'skillHubDomain'];const ENTERPRISE_TO_LOCAL_FIELD={'userDomain':a218_0x579d38(0x17d),'apiDomain':a218_0x579d38(0x16a),'runtimeDomain':'runtimeDomain','skillDomain':a218_0x579d38(0x1a6),'kbDomain':a218_0x579d38(0x1a5),'appDomain':a218_0x579d38(0x1b1),'localDomain':a218_0x579d38(0x1a2),'certificateDomain':a218_0x579d38(0x192)},ROUTING_CONSUMER=a218_0x579d38(0x1b6);export function normalizeDomainOrigin(_0x220876,_0x5c37e8){const _0x5dbf64=a218_0x579d38;if(typeof _0x5c37e8!==_0x5dbf64(0x183)||!_0x5c37e8[_0x5dbf64(0x199)]())throw CliErrors[_0x5dbf64(0x18f)](_0x5dbf64(0x17b)+_0x220876+_0x5dbf64(0x172));let _0x265060;try{_0x265060=new URL(_0x5c37e8[_0x5dbf64(0x199)]());}catch{throw CliErrors[_0x5dbf64(0x18f)](_0x5dbf64(0x17b)+_0x220876+_0x5dbf64(0x171)+_0x5c37e8+'\x22\x20is\x20not\x20a\x20valid\x20URL.');}if(_0x265060[_0x5dbf64(0x196)]!=='https:'||_0x265060[_0x5dbf64(0x19f)]||_0x265060[_0x5dbf64(0x17e)]||_0x265060[_0x5dbf64(0x165)]!=='/'&&_0x265060['pathname']!==''||_0x265060['search']||_0x265060[_0x5dbf64(0x1ae)])throw CliErrors[_0x5dbf64(0x18f)](_0x5dbf64(0x17b)+_0x220876+':\x20expected\x20an\x20HTTPS\x20origin\x20without\x20credentials,\x20path,\x20query,\x20or\x20fragment.',_0x5dbf64(0x1a7));return _0x265060[_0x5dbf64(0x184)];}function a218_0x323d(){const _0x34e21a=['skill-domain','utf8','lovrabet','str','\x20does\x20not\x20provide\x20a\x20Domain\x20for\x20','Invalid\x20','1486xyQdJq','userDomain','password','default','\x22\x20and\x20kind\x20\x22','\x20consumer(s):\x20','mode','string','origin','109xdjYdH','base\x20URL','parse','Allowed\x20consumers:\x20','filter','runtime-domain','legacy','Invalid\x20enterprise\x20routing\x20config:\x20expected\x20an\x20object.','cwd',':\x20expected\x20an\x20HTTPS\x20','validation','78jXLzHm','platformDomain','certificateDomain','includes','local-domain','replace','protocol','65613LtiUxG','Enterprise\x20routing\x20manifest\x20is\x20missing\x20required\x20CDN\x20field(s):\x20','trim','Invalid\x20domain\x20config\x20JSON:\x20','agentDomain','1439380DgKiRn','152lyIddo','Allowed\x20fields:\x20','username','Unsupported\x20enterprise\x20CDN\x20field(s):\x20','Enterprise\x20routing\x20manifest\x20requires\x20localDomain\x20and\x20certificateDomain\x20together.','localDomain','object','337330aYyGas','kbDomain','skillDomain','For\x20internal\x20deployments,\x20terminate\x20TLS\x20at\x20the\x20ingress,\x20reverse\x20proxy,\x20or\x20load\x20balancer;\x20an\x20internal\x20CA\x20is\x20supported.','Unsupported\x20routing\x20manifest:\x20expected\x20protocol\x20\x22','kb-domain','runtimeDomain','domains','keys','Unsupported\x20','hash','\x22\x20is\x20not\x20a\x20valid\x20URL.','user-domain','appDomain','18idGtIk','3607490LYffAV','Update\x20the\x20manifest\x20so\x20both\x20CLIs\x20consume\x20the\x20same\x20routing\x20data.','length','rabetbase-cli','Invalid\x20enterprise\x20routing\x20manifest:\x20domains\x20must\x20be\x20an\x20object.','join','Enterprise\x20','Enterprise\x20routing\x20manifest\x20is\x20missing\x20required\x20Domain(s):\x20','32928357AupjXU','Unsupported\x20enterprise\x20Domain\x20field(s):\x20','pathname','228688lCnFeY','enterprise-v1','domain-config','app-domain','apiDomain','Enterprise\x20routing\x20manifests\x20cannot\x20be\x20combined\x20with\x20individual\x20Domain\x20flags.','search','href','Invalid\x20cdn.','\x20and\x20has\x20no\x20default.','cdn',':\x20\x22',':\x20expected\x20a\x20non-empty\x20HTTPS\x20origin.','isArray','Unsupported\x20enterprise\x20routing\x20field(s):\x20','https:'];a218_0x323d=function(){return _0x34e21a;};return a218_0x323d();}export function normalizeRoutingDomainValue(_0x661f38,_0x5f03f8){const _0x7c6055=a218_0x579d38;if(typeof _0x5f03f8==='string')return normalizeDomainOrigin(_0x661f38,_0x5f03f8);if(!_0x5f03f8||typeof _0x5f03f8!==_0x7c6055(0x1a3)||Array[_0x7c6055(0x173)](_0x5f03f8))throw CliErrors[_0x7c6055(0x18f)]('Invalid\x20'+_0x661f38+':\x20expected\x20an\x20HTTPS\x20origin\x20or\x20consumer\x20Domain\x20object.');const _0x200c4d=_0x5f03f8,_0x36350f=Object[_0x7c6055(0x1ac)](_0x200c4d),_0x345819=[_0x7c6055(0x17f),...ENTERPRISE_ROUTING_CONSUMERS],_0x583d89=_0x36350f[_0x7c6055(0x189)](_0x32637b=>!_0x345819[_0x7c6055(0x193)](_0x32637b));if(_0x583d89['length']>0x0)throw CliErrors[_0x7c6055(0x18f)](_0x7c6055(0x1ad)+_0x661f38+_0x7c6055(0x181)+_0x583d89[_0x7c6055(0x1b8)](',\x20'),_0x7c6055(0x188)+_0x345819[_0x7c6055(0x1b8)](',\x20'));if(_0x36350f['length']===0x0)throw CliErrors[_0x7c6055(0x18f)]('Invalid\x20'+_0x661f38+':\x20consumer\x20Domain\x20object\x20cannot\x20be\x20empty.');const _0x389838={};for(const _0x4105e4 of _0x36350f){const _0x4c16a6=_0x4105e4;_0x389838[_0x4c16a6]=normalizeDomainOrigin(_0x661f38,_0x200c4d[_0x4105e4]);}return _0x389838;}export function normalizeCdnBaseUrl(_0x2f1eab,_0x490c13){const _0x511fe1=a218_0x579d38;if(typeof _0x490c13!==_0x511fe1(0x183)||!_0x490c13[_0x511fe1(0x199)]())throw CliErrors[_0x511fe1(0x18f)](_0x511fe1(0x16e)+_0x2f1eab+':\x20expected\x20a\x20non-empty\x20HTTPS\x20URL.');const _0x224bb0=_0x490c13[_0x511fe1(0x199)]()[_0x511fe1(0x195)](/\/$/,'');let _0x14a1a1;try{_0x14a1a1=new URL(_0x224bb0);}catch{throw CliErrors[_0x511fe1(0x18f)](_0x511fe1(0x16e)+_0x2f1eab+':\x20\x22'+_0x490c13+_0x511fe1(0x1af));}if(_0x14a1a1['protocol']!==_0x511fe1(0x175)||_0x14a1a1[_0x511fe1(0x19f)]||_0x14a1a1[_0x511fe1(0x17e)]||_0x14a1a1[_0x511fe1(0x16c)]||_0x14a1a1['hash']||_0x14a1a1[_0x511fe1(0x16d)][_0x511fe1(0x195)](/\/$/,'')!==_0x224bb0||_0x2f1eab===_0x511fe1(0x178)&&_0x14a1a1[_0x511fe1(0x184)]!==_0x224bb0)throw CliErrors[_0x511fe1(0x18f)](_0x511fe1(0x16e)+_0x2f1eab+_0x511fe1(0x18e)+(_0x2f1eab===_0x511fe1(0x178)?_0x511fe1(0x184):_0x511fe1(0x186))+'\x20without\x20credentials,\x20query,\x20or\x20fragment.');return _0x224bb0;}export function resolveEnterpriseRoutingConfig(_0x2e29f8){return resolveEnterpriseRoutingManifest(_0x2e29f8)?.['domains'];}export function resolveEnterpriseRoutingManifest(_0x10875e){const _0x40a586=a218_0x579d38;if(_0x10875e===undefined)return undefined;if(!_0x10875e||typeof _0x10875e!==_0x40a586(0x1a3)||Array[_0x40a586(0x173)](_0x10875e))throw CliErrors[_0x40a586(0x18f)](_0x40a586(0x18c));return parseEnterpriseRoutingManifest(_0x10875e);}export function resolveRoutingDomainValue(_0x138898,_0x4400e5,_0x4f9b54){const _0xbbf3dc=a218_0x579d38;if(typeof _0x4400e5===_0xbbf3dc(0x183))return _0x4400e5;const _0x3d58da=_0x4400e5[_0x4f9b54]??_0x4400e5[_0xbbf3dc(0x17f)];if(!_0x3d58da)throw CliErrors[_0xbbf3dc(0x18f)](_0xbbf3dc(0x161)+_0x138898+_0xbbf3dc(0x17a)+_0x4f9b54+_0xbbf3dc(0x16f));return _0x3d58da;}export function readDomainConfigInput(_0x2ea6bb){const _0x42dbc9=a218_0x579d38,_0x14a612=isAbsolute(_0x2ea6bb)?_0x2ea6bb:resolve(process[_0x42dbc9(0x18d)](),_0x2ea6bb);if(!existsSync(_0x14a612))throw CliErrors['validation']('Domain\x20config\x20file\x20not\x20found:\x20'+_0x14a612);let _0x2bd3f5;try{_0x2bd3f5=JSON[_0x42dbc9(0x187)](readFileSync(_0x14a612,_0x42dbc9(0x177)));}catch{throw CliErrors['validation'](_0x42dbc9(0x19a)+_0x14a612);}if(!_0x2bd3f5||typeof _0x2bd3f5!==_0x42dbc9(0x1a3)||Array[_0x42dbc9(0x173)](_0x2bd3f5))throw CliErrors['validation']('Invalid\x20domain\x20config:\x20expected\x20a\x20JSON\x20object.');const _0x539d52=_0x2bd3f5;if(_0x42dbc9(0x196)in _0x539d52)return parseEnterpriseRoutingManifest(_0x539d52);const _0x4ee96a=Object[_0x42dbc9(0x1ac)](_0x539d52)[_0x42dbc9(0x189)](_0x236fbe=>!DOMAIN_CONFIG_FIELDS[_0x42dbc9(0x193)](_0x236fbe));if(_0x4ee96a[_0x42dbc9(0x1b5)]>0x0)throw CliErrors[_0x42dbc9(0x18f)]('Unsupported\x20domain\x20config\x20field(s):\x20'+_0x4ee96a[_0x42dbc9(0x1b8)](',\x20'),'Allowed\x20fields:\x20'+DOMAIN_CONFIG_FIELDS['join'](',\x20'));const _0x36b868={};for(const _0x3540d9 of DOMAIN_CONFIG_FIELDS){_0x539d52[_0x3540d9]!==undefined&&(_0x36b868[_0x3540d9]=normalizeDomainOrigin(_0x3540d9,_0x539d52[_0x3540d9]));}if(Object[_0x42dbc9(0x1ac)](_0x36b868)[_0x42dbc9(0x1b5)]===0x0)throw CliErrors[_0x42dbc9(0x18f)]('Invalid\x20domain\x20config:\x20provide\x20at\x20least\x20one\x20supported\x20Domain.');return{'mode':_0x42dbc9(0x18b),'domains':_0x36b868};}export function readDomainConfig(_0x4d0706){return readDomainConfigInput(_0x4d0706)['domains'];}export function resolveDomainConfigInput(_0x380fe9){const _0xf6f8e=a218_0x579d38,_0x20036d=(_0x380fe9[_0xf6f8e(0x179)](_0xf6f8e(0x168))||'')['trim'](),_0x5e6de0=_0x20036d?readDomainConfigInput(_0x20036d):{'mode':_0xf6f8e(0x18b),'domains':{}},_0x5e6b8b=DOMAIN_CONFIG_FIELDS[_0xf6f8e(0x189)](_0x4e1e51=>Boolean((_0x380fe9[_0xf6f8e(0x179)](DOMAIN_FLAGS[_0x4e1e51])||'')[_0xf6f8e(0x199)]()));if(_0x5e6de0[_0xf6f8e(0x182)]===_0xf6f8e(0x167)&&_0x5e6b8b[_0xf6f8e(0x1b5)]>0x0)throw CliErrors[_0xf6f8e(0x18f)](_0xf6f8e(0x16b),_0xf6f8e(0x1b4));for(const _0x5e98f4 of DOMAIN_CONFIG_FIELDS){const _0x1c26c0=(_0x380fe9[_0xf6f8e(0x179)](DOMAIN_FLAGS[_0x5e98f4])||'')[_0xf6f8e(0x199)]();if(_0x1c26c0)_0x5e6de0['domains'][_0x5e98f4]=normalizeDomainOrigin(_0x5e98f4,_0x1c26c0);}return _0x5e6de0;}export function resolveDomainFlags(_0x2dfa47){const _0x5cc631=a218_0x579d38;return resolveDomainConfigInput(_0x2dfa47)[_0x5cc631(0x1ab)];}export function parseEnterpriseRoutingManifest(_0x4afa37){const _0x37f5e3=a218_0x579d38,_0x3871fd=Object[_0x37f5e3(0x1ac)](_0x4afa37)['filter'](_0x238b29=>!ENTERPRISE_ROUTING_TOP_LEVEL_FIELDS[_0x37f5e3(0x193)](_0x238b29));if(_0x3871fd['length']>0x0)throw CliErrors['validation'](_0x37f5e3(0x174)+_0x3871fd[_0x37f5e3(0x1b8)](',\x20'));if(_0x4afa37['protocol']!==ENTERPRISE_ROUTING_PROTOCOL||_0x4afa37['kind']!==ENTERPRISE_ROUTING_KIND)throw CliErrors[_0x37f5e3(0x18f)](_0x37f5e3(0x1a8)+ENTERPRISE_ROUTING_PROTOCOL+_0x37f5e3(0x180)+ENTERPRISE_ROUTING_KIND+'\x22.');if(!_0x4afa37['domains']||typeof _0x4afa37[_0x37f5e3(0x1ab)]!==_0x37f5e3(0x1a3)||Array[_0x37f5e3(0x173)](_0x4afa37[_0x37f5e3(0x1ab)]))throw CliErrors[_0x37f5e3(0x18f)](_0x37f5e3(0x1b7));if(!_0x4afa37[_0x37f5e3(0x170)]||typeof _0x4afa37[_0x37f5e3(0x170)]!==_0x37f5e3(0x1a3)||Array[_0x37f5e3(0x173)](_0x4afa37[_0x37f5e3(0x170)]))throw CliErrors['validation']('Invalid\x20enterprise\x20routing\x20manifest:\x20cdn\x20must\x20be\x20an\x20object.');const _0x23f19d=_0x4afa37[_0x37f5e3(0x1ab)],_0x2be0b8=Object[_0x37f5e3(0x1ac)](_0x23f19d)[_0x37f5e3(0x189)](_0x1c580a=>!ENTERPRISE_ROUTING_DOMAIN_FIELDS[_0x37f5e3(0x193)](_0x1c580a));if(_0x2be0b8[_0x37f5e3(0x1b5)]>0x0)throw CliErrors['validation'](_0x37f5e3(0x164)+_0x2be0b8[_0x37f5e3(0x1b8)](',\x20'),'Allowed\x20fields:\x20'+ENTERPRISE_ROUTING_DOMAIN_FIELDS[_0x37f5e3(0x1b8)](',\x20'));const _0x12db66=REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS[_0x37f5e3(0x189)](_0xe76f38=>_0x23f19d[_0xe76f38]===undefined);if(_0x12db66[_0x37f5e3(0x1b5)]>0x0)throw CliErrors[_0x37f5e3(0x18f)](_0x37f5e3(0x162)+_0x12db66[_0x37f5e3(0x1b8)](',\x20'));if(_0x23f19d[_0x37f5e3(0x1a2)]===undefined!==(_0x23f19d[_0x37f5e3(0x192)]===undefined))throw CliErrors['validation'](_0x37f5e3(0x1a1));const _0x5526a4=_0x4afa37[_0x37f5e3(0x170)],_0x4273ea=Object['keys'](_0x5526a4)[_0x37f5e3(0x189)](_0x489076=>!ENTERPRISE_ROUTING_CDN_FIELDS['includes'](_0x489076));if(_0x4273ea[_0x37f5e3(0x1b5)]>0x0)throw CliErrors[_0x37f5e3(0x18f)](_0x37f5e3(0x1a0)+_0x4273ea[_0x37f5e3(0x1b8)](',\x20'),_0x37f5e3(0x19e)+ENTERPRISE_ROUTING_CDN_FIELDS[_0x37f5e3(0x1b8)](',\x20'));const _0x5290fb=REQUIRED_ENTERPRISE_ROUTING_CDN_FIELDS[_0x37f5e3(0x189)](_0x45d90e=>_0x5526a4[_0x45d90e]===undefined);if(_0x5290fb['length']>0x0)throw CliErrors[_0x37f5e3(0x18f)](_0x37f5e3(0x198)+_0x5290fb[_0x37f5e3(0x1b8)](',\x20'));const _0x316969={};for(const _0x252a7b of ENTERPRISE_ROUTING_CDN_FIELDS){_0x316969[_0x252a7b]=normalizeCdnBaseUrl(_0x252a7b,_0x5526a4[_0x252a7b]);}const _0x84a085={},_0x4a59ff={};for(const _0x48c6f9 of ENTERPRISE_ROUTING_DOMAIN_FIELDS){const _0x46e782=_0x23f19d[_0x48c6f9];if(_0x46e782===undefined)continue;const _0xddfe92=normalizeRoutingDomainValue(_0x48c6f9,_0x46e782);_0x84a085[_0x48c6f9]=_0xddfe92;const _0x1f1738=ENTERPRISE_TO_LOCAL_FIELD[_0x48c6f9];_0x1f1738&&(_0x4a59ff[_0x1f1738]=resolveRoutingDomainValue(_0x48c6f9,_0xddfe92,ROUTING_CONSUMER));}return{'mode':_0x37f5e3(0x167),'domains':_0x4a59ff,'manifestDomains':_0x84a085,'cdn':_0x316969};}
1
+ const a218_0xc8eac9=a218_0x26eb;(function(_0x254011,_0x421111){const _0x3996c5=a218_0x26eb,_0x4e1c0e=_0x254011();while(!![]){try{const _0x29a3ae=parseInt(_0x3996c5(0x171))/0x1*(-parseInt(_0x3996c5(0x166))/0x2)+-parseInt(_0x3996c5(0x156))/0x3+-parseInt(_0x3996c5(0x175))/0x4*(-parseInt(_0x3996c5(0x179))/0x5)+-parseInt(_0x3996c5(0x185))/0x6+parseInt(_0x3996c5(0x15a))/0x7+-parseInt(_0x3996c5(0x154))/0x8+parseInt(_0x3996c5(0x164))/0x9*(parseInt(_0x3996c5(0x15f))/0xa);if(_0x29a3ae===_0x421111)break;else _0x4e1c0e['push'](_0x4e1c0e['shift']());}catch(_0x4b43b6){_0x4e1c0e['push'](_0x4e1c0e['shift']());}}}(a218_0x5b2c,0x5ccbb));import{existsSync,readFileSync}from'node:fs';import{isAbsolute,resolve}from'node:path';import{CliErrors}from'../errors.js';import{ENTERPRISE_ROUTING_CDN_FIELDS,ENTERPRISE_ROUTING_DOMAIN_FIELDS,ENTERPRISE_ROUTING_KIND,ENTERPRISE_ROUTING_PROTOCOL,ENTERPRISE_ROUTING_TOP_LEVEL_FIELDS,ENTERPRISE_ROUTING_CONSUMERS,REQUIRED_ENTERPRISE_ROUTING_CDN_FIELDS,REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS}from'../generated/routing-contract.js';function a218_0x5b2c(){const _0xdb8da9=['50nunOdh','Invalid\x20enterprise\x20routing\x20manifest:\x20cdn\x20must\x20be\x20an\x20object.','\x22\x20and\x20kind\x20\x22','mode','localDomain','3316725gPeTRN','skill-domain','707844DiexCH','protocol','str','cwd','Update\x20the\x20manifest\x20so\x20both\x20CLIs\x20consume\x20the\x20same\x20routing\x20data.','platformDomain','Invalid\x20','\x22\x20is\x20not\x20a\x20valid\x20URL.','local-domain','apiDomain','\x20does\x20not\x20provide\x20a\x20Domain\x20for\x20','2rVcggM','trim','agentDomain','certificateDomain','1327304gvmHsY','href','origin',':\x20\x22','5AISfmF',':\x20consumer\x20Domain\x20object\x20cannot\x20be\x20empty.','skillHubDomain',':\x20expected\x20a\x20non-empty\x20HTTPS\x20origin.','certificate-domain','cdn','Unsupported\x20enterprise\x20Domain\x20field(s):\x20','Invalid\x20cdn.','appDomain','Unsupported\x20enterprise\x20routing\x20field(s):\x20','runtimeDomain',':\x20expected\x20an\x20HTTPS\x20','3208584muHite','Allowed\x20fields:\x20','app-domain','userDomain','\x20and\x20has\x20no\x20default.','skillDomain','Allowed\x20consumers:\x20','utf8','\x20without\x20credentials,\x20query,\x20or\x20fragment.','domains','object','api-domain','rabetbase-cli','Unsupported\x20enterprise\x20CDN\x20field(s):\x20','parse','Unsupported\x20routing\x20manifest:\x20expected\x20protocol\x20\x22','string','filter','includes','Enterprise\x20routing\x20manifest\x20is\x20missing\x20required\x20Domain(s):\x20','Domain\x20config\x20file\x20not\x20found:\x20','validation','hash','isArray','https:','join','domain-config','Invalid\x20enterprise\x20routing\x20manifest:\x20domains\x20must\x20be\x20an\x20object.','user-domain','search','length','For\x20internal\x20deployments,\x20terminate\x20TLS\x20at\x20the\x20ingress,\x20reverse\x20proxy,\x20or\x20load\x20balancer;\x20an\x20internal\x20CA\x20is\x20supported.','base\x20URL','Invalid\x20domain\x20config:\x20expected\x20a\x20JSON\x20object.','legacy','lovrabet','Invalid\x20domain\x20config\x20JSON:\x20','5047232zxqJsS','pathname','673701zpYAuV',':\x20expected\x20an\x20HTTPS\x20origin\x20without\x20credentials,\x20path,\x20query,\x20or\x20fragment.','\x20consumer(s):\x20','password','2126033fGlBKx','kbDomain','keys','username','replace'];a218_0x5b2c=function(){return _0xdb8da9;};return a218_0x5b2c();}export const DOMAIN_CONFIG_FIELDS=[a218_0xc8eac9(0x188),a218_0xc8eac9(0x16f),a218_0xc8eac9(0x183),'skillDomain','kbDomain',a218_0xc8eac9(0x181),a218_0xc8eac9(0x163),a218_0xc8eac9(0x174)];const DOMAIN_FLAGS={'userDomain':a218_0xc8eac9(0x14b),'apiDomain':a218_0xc8eac9(0x13a),'runtimeDomain':'runtime-domain','skillDomain':a218_0xc8eac9(0x165),'kbDomain':'kb-domain','appDomain':a218_0xc8eac9(0x187),'localDomain':a218_0xc8eac9(0x16e),'certificateDomain':a218_0xc8eac9(0x17d)};export const LEGACY_DOMAIN_CONFIG_FIELDS=[a218_0xc8eac9(0x173),a218_0xc8eac9(0x16b),a218_0xc8eac9(0x17b)];const ENTERPRISE_TO_LOCAL_FIELD={'userDomain':a218_0xc8eac9(0x188),'apiDomain':'apiDomain','runtimeDomain':'runtimeDomain','skillDomain':a218_0xc8eac9(0x18a),'kbDomain':a218_0xc8eac9(0x15b),'appDomain':'appDomain','localDomain':'localDomain','certificateDomain':a218_0xc8eac9(0x174)},ROUTING_CONSUMER=a218_0xc8eac9(0x13b);export function normalizeDomainOrigin(_0x3fcdad,_0x361ec4){const _0x134221=a218_0xc8eac9;if(typeof _0x361ec4!==_0x134221(0x13f)||!_0x361ec4[_0x134221(0x172)]())throw CliErrors[_0x134221(0x144)](_0x134221(0x16c)+_0x3fcdad+_0x134221(0x17c));let _0x402668;try{_0x402668=new URL(_0x361ec4[_0x134221(0x172)]());}catch{throw CliErrors[_0x134221(0x144)](_0x134221(0x16c)+_0x3fcdad+_0x134221(0x178)+_0x361ec4+'\x22\x20is\x20not\x20a\x20valid\x20URL.');}if(_0x402668[_0x134221(0x167)]!==_0x134221(0x147)||_0x402668[_0x134221(0x15d)]||_0x402668[_0x134221(0x159)]||_0x402668[_0x134221(0x155)]!=='/'&&_0x402668[_0x134221(0x155)]!==''||_0x402668[_0x134221(0x14c)]||_0x402668[_0x134221(0x145)])throw CliErrors[_0x134221(0x144)](_0x134221(0x16c)+_0x3fcdad+_0x134221(0x157),_0x134221(0x14e));return _0x402668[_0x134221(0x177)];}export function normalizeRoutingDomainValue(_0x11b7ae,_0xa2ed41){const _0x22b09a=a218_0xc8eac9;if(typeof _0xa2ed41===_0x22b09a(0x13f))return normalizeDomainOrigin(_0x11b7ae,_0xa2ed41);if(!_0xa2ed41||typeof _0xa2ed41!==_0x22b09a(0x139)||Array['isArray'](_0xa2ed41))throw CliErrors[_0x22b09a(0x144)](_0x22b09a(0x16c)+_0x11b7ae+':\x20expected\x20an\x20HTTPS\x20origin\x20or\x20consumer\x20Domain\x20object.');const _0x38bc72=_0xa2ed41,_0x35c3a7=Object[_0x22b09a(0x15c)](_0x38bc72),_0x2db828=['default',...ENTERPRISE_ROUTING_CONSUMERS],_0x2c383b=_0x35c3a7[_0x22b09a(0x140)](_0x545e41=>!_0x2db828[_0x22b09a(0x141)](_0x545e41));if(_0x2c383b['length']>0x0)throw CliErrors[_0x22b09a(0x144)]('Unsupported\x20'+_0x11b7ae+_0x22b09a(0x158)+_0x2c383b[_0x22b09a(0x148)](',\x20'),_0x22b09a(0x18b)+_0x2db828[_0x22b09a(0x148)](',\x20'));if(_0x35c3a7[_0x22b09a(0x14d)]===0x0)throw CliErrors[_0x22b09a(0x144)]('Invalid\x20'+_0x11b7ae+_0x22b09a(0x17a));const _0x549464={};for(const _0x5a718f of _0x35c3a7){const _0x233fe0=_0x5a718f;_0x549464[_0x233fe0]=normalizeDomainOrigin(_0x11b7ae,_0x38bc72[_0x5a718f]);}return _0x549464;}export function normalizeCdnBaseUrl(_0x1352cd,_0x6d7ec8){const _0x39700c=a218_0xc8eac9;if(typeof _0x6d7ec8!=='string'||!_0x6d7ec8[_0x39700c(0x172)]())throw CliErrors[_0x39700c(0x144)](_0x39700c(0x180)+_0x1352cd+':\x20expected\x20a\x20non-empty\x20HTTPS\x20URL.');const _0x2d5928=_0x6d7ec8[_0x39700c(0x172)]()[_0x39700c(0x15e)](/\/$/,'');let _0x1f4acd;try{_0x1f4acd=new URL(_0x2d5928);}catch{throw CliErrors[_0x39700c(0x144)](_0x39700c(0x180)+_0x1352cd+':\x20\x22'+_0x6d7ec8+_0x39700c(0x16d));}if(_0x1f4acd['protocol']!=='https:'||_0x1f4acd[_0x39700c(0x15d)]||_0x1f4acd[_0x39700c(0x159)]||_0x1f4acd[_0x39700c(0x14c)]||_0x1f4acd['hash']||_0x1f4acd[_0x39700c(0x176)]['replace'](/\/$/,'')!==_0x2d5928||_0x1352cd==='lovrabet'&&_0x1f4acd[_0x39700c(0x177)]!==_0x2d5928)throw CliErrors[_0x39700c(0x144)](_0x39700c(0x180)+_0x1352cd+_0x39700c(0x184)+(_0x1352cd===_0x39700c(0x152)?_0x39700c(0x177):_0x39700c(0x14f))+_0x39700c(0x137));return _0x2d5928;}function a218_0x26eb(_0x330853,_0x4b6c96){_0x330853=_0x330853-0x136;const _0x5b2cd9=a218_0x5b2c();let _0x26eb1a=_0x5b2cd9[_0x330853];return _0x26eb1a;}export function resolveEnterpriseRoutingConfig(_0x115ec9){const _0x6b9a01=a218_0xc8eac9;return resolveEnterpriseRoutingManifest(_0x115ec9)?.[_0x6b9a01(0x138)];}export function resolveEnterpriseRoutingManifest(_0x38ff48){const _0x2754e4=a218_0xc8eac9;if(_0x38ff48===undefined)return undefined;if(!_0x38ff48||typeof _0x38ff48!==_0x2754e4(0x139)||Array[_0x2754e4(0x146)](_0x38ff48))throw CliErrors[_0x2754e4(0x144)]('Invalid\x20enterprise\x20routing\x20config:\x20expected\x20an\x20object.');return parseEnterpriseRoutingManifest(_0x38ff48);}export function resolveRoutingDomainValue(_0x1dd99e,_0x137a88,_0x20c891){const _0x51c017=a218_0xc8eac9;if(typeof _0x137a88===_0x51c017(0x13f))return _0x137a88;const _0x46406b=_0x137a88[_0x20c891]??_0x137a88['default'];if(!_0x46406b)throw CliErrors[_0x51c017(0x144)]('Enterprise\x20'+_0x1dd99e+_0x51c017(0x170)+_0x20c891+_0x51c017(0x189));return _0x46406b;}export function readDomainConfigInput(_0x5aa8ad){const _0x17f5fc=a218_0xc8eac9,_0x44f2f7=isAbsolute(_0x5aa8ad)?_0x5aa8ad:resolve(process[_0x17f5fc(0x169)](),_0x5aa8ad);if(!existsSync(_0x44f2f7))throw CliErrors[_0x17f5fc(0x144)](_0x17f5fc(0x143)+_0x44f2f7);let _0x3a0349;try{_0x3a0349=JSON[_0x17f5fc(0x13d)](readFileSync(_0x44f2f7,_0x17f5fc(0x136)));}catch{throw CliErrors[_0x17f5fc(0x144)](_0x17f5fc(0x153)+_0x44f2f7);}if(!_0x3a0349||typeof _0x3a0349!=='object'||Array[_0x17f5fc(0x146)](_0x3a0349))throw CliErrors['validation'](_0x17f5fc(0x150));const _0x4ecbdf=_0x3a0349;if('protocol'in _0x4ecbdf)return parseEnterpriseRoutingManifest(_0x4ecbdf);const _0x3f540c=Object[_0x17f5fc(0x15c)](_0x4ecbdf)[_0x17f5fc(0x140)](_0x4ea01e=>!DOMAIN_CONFIG_FIELDS[_0x17f5fc(0x141)](_0x4ea01e));if(_0x3f540c['length']>0x0)throw CliErrors[_0x17f5fc(0x144)]('Unsupported\x20domain\x20config\x20field(s):\x20'+_0x3f540c[_0x17f5fc(0x148)](',\x20'),_0x17f5fc(0x186)+DOMAIN_CONFIG_FIELDS[_0x17f5fc(0x148)](',\x20'));const _0x608e0a={};for(const _0x57f987 of DOMAIN_CONFIG_FIELDS){_0x4ecbdf[_0x57f987]!==undefined&&(_0x608e0a[_0x57f987]=normalizeDomainOrigin(_0x57f987,_0x4ecbdf[_0x57f987]));}if(Object[_0x17f5fc(0x15c)](_0x608e0a)[_0x17f5fc(0x14d)]===0x0)throw CliErrors['validation']('Invalid\x20domain\x20config:\x20provide\x20at\x20least\x20one\x20supported\x20Domain.');return{'mode':_0x17f5fc(0x151),'domains':_0x608e0a};}export function readDomainConfig(_0x61105c){const _0x14a8dd=a218_0xc8eac9;return readDomainConfigInput(_0x61105c)[_0x14a8dd(0x138)];}export function resolveDomainConfigInput(_0x3be44a){const _0x5e3678=a218_0xc8eac9,_0x3a24d0=(_0x3be44a[_0x5e3678(0x168)](_0x5e3678(0x149))||'')[_0x5e3678(0x172)](),_0x53eb87=_0x3a24d0?readDomainConfigInput(_0x3a24d0):{'mode':_0x5e3678(0x151),'domains':{}},_0x2d58bf=DOMAIN_CONFIG_FIELDS['filter'](_0x181027=>Boolean((_0x3be44a['str'](DOMAIN_FLAGS[_0x181027])||'')[_0x5e3678(0x172)]()));if(_0x53eb87[_0x5e3678(0x162)]==='enterprise-v1'&&_0x2d58bf['length']>0x0)throw CliErrors[_0x5e3678(0x144)]('Enterprise\x20routing\x20manifests\x20cannot\x20be\x20combined\x20with\x20individual\x20Domain\x20flags.',_0x5e3678(0x16a));for(const _0x27d309 of DOMAIN_CONFIG_FIELDS){const _0x57c7ab=(_0x3be44a[_0x5e3678(0x168)](DOMAIN_FLAGS[_0x27d309])||'')['trim']();if(_0x57c7ab)_0x53eb87['domains'][_0x27d309]=normalizeDomainOrigin(_0x27d309,_0x57c7ab);}return _0x53eb87;}export function resolveDomainFlags(_0x750fc6){return resolveDomainConfigInput(_0x750fc6)['domains'];}export function parseEnterpriseRoutingManifest(_0x190593){const _0x29dd88=a218_0xc8eac9,_0x1e45b7=Object['keys'](_0x190593)[_0x29dd88(0x140)](_0x170a52=>!ENTERPRISE_ROUTING_TOP_LEVEL_FIELDS[_0x29dd88(0x141)](_0x170a52));if(_0x1e45b7[_0x29dd88(0x14d)]>0x0)throw CliErrors['validation'](_0x29dd88(0x182)+_0x1e45b7[_0x29dd88(0x148)](',\x20'));if(_0x190593['protocol']!==ENTERPRISE_ROUTING_PROTOCOL||_0x190593['kind']!==ENTERPRISE_ROUTING_KIND)throw CliErrors[_0x29dd88(0x144)](_0x29dd88(0x13e)+ENTERPRISE_ROUTING_PROTOCOL+_0x29dd88(0x161)+ENTERPRISE_ROUTING_KIND+'\x22.');if(!_0x190593[_0x29dd88(0x138)]||typeof _0x190593['domains']!=='object'||Array['isArray'](_0x190593[_0x29dd88(0x138)]))throw CliErrors[_0x29dd88(0x144)](_0x29dd88(0x14a));if(!_0x190593[_0x29dd88(0x17e)]||typeof _0x190593[_0x29dd88(0x17e)]!==_0x29dd88(0x139)||Array[_0x29dd88(0x146)](_0x190593[_0x29dd88(0x17e)]))throw CliErrors[_0x29dd88(0x144)](_0x29dd88(0x160));const _0x15c0fd=_0x190593[_0x29dd88(0x138)],_0x1372fe=Object[_0x29dd88(0x15c)](_0x15c0fd)['filter'](_0x42bd73=>!ENTERPRISE_ROUTING_DOMAIN_FIELDS[_0x29dd88(0x141)](_0x42bd73));if(_0x1372fe[_0x29dd88(0x14d)]>0x0)throw CliErrors['validation'](_0x29dd88(0x17f)+_0x1372fe[_0x29dd88(0x148)](',\x20'),_0x29dd88(0x186)+ENTERPRISE_ROUTING_DOMAIN_FIELDS[_0x29dd88(0x148)](',\x20'));const _0x545499=REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS[_0x29dd88(0x140)](_0x5be6c8=>_0x15c0fd[_0x5be6c8]===undefined);if(_0x545499[_0x29dd88(0x14d)]>0x0)throw CliErrors[_0x29dd88(0x144)](_0x29dd88(0x142)+_0x545499['join'](',\x20'));if(_0x15c0fd['localDomain']===undefined!==(_0x15c0fd['certificateDomain']===undefined))throw CliErrors['validation']('Enterprise\x20routing\x20manifest\x20requires\x20localDomain\x20and\x20certificateDomain\x20together.');const _0x300bb7=_0x190593[_0x29dd88(0x17e)],_0x307950=Object['keys'](_0x300bb7)[_0x29dd88(0x140)](_0x306b93=>!ENTERPRISE_ROUTING_CDN_FIELDS['includes'](_0x306b93));if(_0x307950[_0x29dd88(0x14d)]>0x0)throw CliErrors[_0x29dd88(0x144)](_0x29dd88(0x13c)+_0x307950[_0x29dd88(0x148)](',\x20'),_0x29dd88(0x186)+ENTERPRISE_ROUTING_CDN_FIELDS[_0x29dd88(0x148)](',\x20'));const _0x13cbee=REQUIRED_ENTERPRISE_ROUTING_CDN_FIELDS['filter'](_0x5cb1e7=>_0x300bb7[_0x5cb1e7]===undefined);if(_0x13cbee[_0x29dd88(0x14d)]>0x0)throw CliErrors[_0x29dd88(0x144)]('Enterprise\x20routing\x20manifest\x20is\x20missing\x20required\x20CDN\x20field(s):\x20'+_0x13cbee[_0x29dd88(0x148)](',\x20'));const _0x89a4f6={};for(const _0x54c713 of ENTERPRISE_ROUTING_CDN_FIELDS){_0x89a4f6[_0x54c713]=normalizeCdnBaseUrl(_0x54c713,_0x300bb7[_0x54c713]);}const _0x1cd491={},_0x1a05b6={};for(const _0x1d043 of ENTERPRISE_ROUTING_DOMAIN_FIELDS){const _0x2ffd37=_0x15c0fd[_0x1d043];if(_0x2ffd37===undefined)continue;const _0x4c80c4=normalizeRoutingDomainValue(_0x1d043,_0x2ffd37);_0x1cd491[_0x1d043]=_0x4c80c4;const _0x568c29=ENTERPRISE_TO_LOCAL_FIELD[_0x1d043];_0x568c29&&(_0x1a05b6[_0x568c29]=resolveRoutingDomainValue(_0x1d043,_0x4c80c4,ROUTING_CONSUMER));}return{'mode':'enterprise-v1','domains':_0x1a05b6,'manifestDomains':_0x1cd491,'cdn':_0x89a4f6};}
@@ -1 +1 @@
1
- const a219_0x525a75=a219_0x181e;(function(_0xe39cd5,_0x27adc7){const _0x59c1d4=a219_0x181e,_0x1b52b8=_0xe39cd5();while(!![]){try{const _0x13855f=parseInt(_0x59c1d4(0xa0))/0x1*(parseInt(_0x59c1d4(0x94))/0x2)+-parseInt(_0x59c1d4(0x97))/0x3+parseInt(_0x59c1d4(0x9e))/0x4+parseInt(_0x59c1d4(0x8c))/0x5+-parseInt(_0x59c1d4(0x99))/0x6+-parseInt(_0x59c1d4(0x9f))/0x7+-parseInt(_0x59c1d4(0x98))/0x8*(-parseInt(_0x59c1d4(0x8d))/0x9);if(_0x13855f===_0x27adc7)break;else _0x1b52b8['push'](_0x1b52b8['shift']());}catch(_0x36c7db){_0x1b52b8['push'](_0x1b52b8['shift']());}}}(a219_0x49b9,0x8924e));import{renameSync,unlinkSync,writeFileSync}from'node:fs';import{join}from'node:path';import{getActiveRegion,getActiveCdn,getAppDomain,getCertificateDomain,getLocalDomain,getRuntimeDomain,getUserDomain,isIndependentDeployment}from'../constant/domain.js';import{getOfficialRoutingProfile}from'../constant/routing-profile.js';export const PROJECT_DOMAIN_ROUTING_FILE_NAME=a219_0x525a75(0x95);function a219_0x181e(_0x3f2b30,_0x33f201){_0x3f2b30=_0x3f2b30-0x8c;const _0x49b9f2=a219_0x49b9();let _0x181e2a=_0x49b9f2[_0x3f2b30];return _0x181e2a;}export const PROJECT_DOMAIN_ROUTING_PROTOCOL=a219_0x525a75(0x9a);function a219_0x49b9(){const _0x1a1e0e=['official','origin','/cert/lovrabet-dev.json','pid','Independent\x20deployment\x20routing\x20requires\x20localDomain\x20and\x20certificateDomain\x20together.','utf8','110hBltDk','rabetbase.domain-routing.json','independent','3365394DuCcfO','8041032vqkRbs','1434486dpHAnE','lovrabet-project-domain-routing/v1','local','http://localhost','.tmp','2577908CrRLwV','5576424QQIuqh','5050HeHNYm','3959485bOBPZp','9HbxVpq'];a219_0x49b9=function(){return _0x1a1e0e;};return a219_0x49b9();}export function getProjectDomainRoutingManifest(){const _0x539ca2=a219_0x525a75,_0xed99c2=getActiveRegion(),_0x8eb5e0=isIndependentDeployment(),_0x2ceb26=getOfficialRoutingProfile(_0xed99c2),_0x1fa67e=getLocalDomain(),_0x218b12=getCertificateDomain(),_0x3cf313=getActiveCdn();if(!!_0x1fa67e!==!!_0x218b12)throw new Error(_0x539ca2(0x92));return{'protocol':PROJECT_DOMAIN_ROUTING_PROTOCOL,'mode':_0x8eb5e0?_0x539ca2(0x96):_0x539ca2(0x8e),'region':_0x8eb5e0?null:_0xed99c2,'domains':{'user':getUserDomain(),'app':getAppDomain(),'runtime':getRuntimeDomain()},'cdn':_0x3cf313,'local':_0x1fa67e&&_0x218b12?{'origin':_0x1fa67e,'certificateUrl':_0x218b12+'/cert/lovrabet-dev.json'}:_0x8eb5e0?{'origin':_0x539ca2(0x9c)}:{'origin':_0x2ceb26[_0x539ca2(0x9b)][_0x539ca2(0x8f)],'certificateUrl':_0x3cf313['lovrabet']+_0x539ca2(0x90)}};}export function writeProjectDomainRoutingManifest(_0x24480e){const _0x6c2100=a219_0x525a75,_0xe9fa8a=getProjectDomainRoutingManifest(),_0x11dc71=join(_0x24480e,PROJECT_DOMAIN_ROUTING_FILE_NAME),_0x3b9aa8=_0x11dc71+'.'+process[_0x6c2100(0x91)]+'.'+Date['now']()+_0x6c2100(0x9d);try{writeFileSync(_0x3b9aa8,JSON['stringify'](_0xe9fa8a,null,0x2)+'\x0a',{'encoding':_0x6c2100(0x93),'mode':0x1a4}),renameSync(_0x3b9aa8,_0x11dc71);}catch(_0x355729){try{unlinkSync(_0x3b9aa8);}catch{}throw _0x355729;}return{'path':_0x11dc71,'manifest':_0xe9fa8a};}
1
+ const a219_0x1e31f4=a219_0x3ea9;(function(_0x515b77,_0x5a34eb){const _0x43fb9f=a219_0x3ea9,_0x40a9=_0x515b77();while(!![]){try{const _0x171f31=parseInt(_0x43fb9f(0x8b))/0x1*(-parseInt(_0x43fb9f(0x90))/0x2)+-parseInt(_0x43fb9f(0x8f))/0x3*(-parseInt(_0x43fb9f(0x86))/0x4)+parseInt(_0x43fb9f(0x8c))/0x5+-parseInt(_0x43fb9f(0x85))/0x6+parseInt(_0x43fb9f(0x8d))/0x7+-parseInt(_0x43fb9f(0x93))/0x8*(parseInt(_0x43fb9f(0x8a))/0x9)+parseInt(_0x43fb9f(0x94))/0xa*(parseInt(_0x43fb9f(0x97))/0xb);if(_0x171f31===_0x5a34eb)break;else _0x40a9['push'](_0x40a9['shift']());}catch(_0x15296d){_0x40a9['push'](_0x40a9['shift']());}}}(a219_0x3a6f,0xc1f90));import{renameSync,unlinkSync,writeFileSync}from'node:fs';import{join}from'node:path';import{getActiveRegion,getActiveCdn,getAppDomain,getCertificateDomain,getLocalDomain,getRuntimeDomain,getUserDomain,isIndependentDeployment}from'../constant/domain.js';import{getOfficialRoutingProfile}from'../constant/routing-profile.js';export const PROJECT_DOMAIN_ROUTING_FILE_NAME='rabetbase.domain-routing.json';function a219_0x3ea9(_0x52746c,_0xc5306b){_0x52746c=_0x52746c-0x85;const _0x3a6ff8=a219_0x3a6f();let _0x3ea970=_0x3a6ff8[_0x52746c];return _0x3ea970;}export const PROJECT_DOMAIN_ROUTING_PROTOCOL=a219_0x1e31f4(0x95);function a219_0x3a6f(){const _0x1ed71c=['lovrabet','local','1736iHvnqe','3059180fsIcgZ','lovrabet-project-domain-routing/v1','utf8','44GZsYEl','pid','http://localhost','8317380RpKdwP','4BulyaC','stringify','official','.tmp','37602yKORPL','1gSIqrg','1587580GuwwwD','4722207ZgqVDX','origin','4032759LDbNYA','945348pbXLWs'];a219_0x3a6f=function(){return _0x1ed71c;};return a219_0x3a6f();}export function getProjectDomainRoutingManifest(){const _0x329c3e=a219_0x1e31f4,_0x2a2101=getActiveRegion(),_0x2148c4=isIndependentDeployment(),_0x1170a7=getOfficialRoutingProfile(_0x2a2101),_0x4b38fa=getLocalDomain(),_0x211cbf=getCertificateDomain(),_0xaadb53=getActiveCdn();if(!!_0x4b38fa!==!!_0x211cbf)throw new Error('Independent\x20deployment\x20routing\x20requires\x20localDomain\x20and\x20certificateDomain\x20together.');return{'protocol':PROJECT_DOMAIN_ROUTING_PROTOCOL,'mode':_0x2148c4?'independent':_0x329c3e(0x88),'region':_0x2148c4?null:_0x2a2101,'domains':{'user':getUserDomain(),'app':getAppDomain(),'runtime':getRuntimeDomain()},'cdn':_0xaadb53,'local':_0x4b38fa&&_0x211cbf?{'origin':_0x4b38fa,'certificateUrl':_0x211cbf+'/cert/lovrabet-dev.json'}:_0x2148c4?{'origin':_0x329c3e(0x99)}:{'origin':_0x1170a7[_0x329c3e(0x92)][_0x329c3e(0x8e)],'certificateUrl':_0xaadb53[_0x329c3e(0x91)]+'/cert/lovrabet-dev.json'}};}export function writeProjectDomainRoutingManifest(_0x4b303f){const _0x2e8bfb=a219_0x1e31f4,_0x5afba2=getProjectDomainRoutingManifest(),_0xe72e00=join(_0x4b303f,PROJECT_DOMAIN_ROUTING_FILE_NAME),_0xb14ade=_0xe72e00+'.'+process[_0x2e8bfb(0x98)]+'.'+Date['now']()+_0x2e8bfb(0x89);try{writeFileSync(_0xb14ade,JSON[_0x2e8bfb(0x87)](_0x5afba2,null,0x2)+'\x0a',{'encoding':_0x2e8bfb(0x96),'mode':0x1a4}),renameSync(_0xb14ade,_0xe72e00);}catch(_0x310ad8){try{unlinkSync(_0xb14ade);}catch{}throw _0x310ad8;}return{'path':_0xe72e00,'manifest':_0x5afba2};}
@@ -1 +1 @@
1
- function a220_0x2e65(){const _0x4913f7=['runtimeDomain','format','object','inherit','userDomain','apiDir','keys','apps','1971230TwNQWO','riskLevel','deploymentSync','zh-CN','Config\x20key\x20(','pageSize','889200veKGNT','app','167926belSzO','entries','699223QZhVEw','routing','map','length','Auth\x20cookie','Target\x20environment','defaultFormat','region','appDomain','appcode','string','trim','toLowerCase','kbDomain','Access\x20key','API\x20directory\x20path','skillDomain','locale','2682792rcCCnx','cookie','apiDomain','accessKey','2638980ofaPKC','en-US','env','localDomain','certificateDomain','App\x20locale\x20(not\x20CLI\x20language;\x20reserved\x20for\x20later\x20app\x20use)','622740swsfpI','Default\x20page\x20size','defaultApp'];a220_0x2e65=function(){return _0x4913f7;};return a220_0x2e65();}const a220_0x2e1394=a220_0x5ecc;(function(_0x386ca0,_0x2ebf64){const _0x48a455=a220_0x5ecc,_0x46280d=_0x386ca0();while(!![]){try{const _0x4e8aa4=parseInt(_0x48a455(0x125))/0x1+-parseInt(_0x48a455(0x138))/0x2+parseInt(_0x48a455(0x11b))/0x3+-parseInt(_0x48a455(0x136))/0x4+-parseInt(_0x48a455(0x130))/0x5+-parseInt(_0x48a455(0x11f))/0x6+parseInt(_0x48a455(0x13a))/0x7;if(_0x4e8aa4===_0x2ebf64)break;else _0x46280d['push'](_0x46280d['shift']());}catch(_0x594582){_0x46280d['push'](_0x46280d['shift']());}}}(a220_0x2e65,0x7458a));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RABETBASE_ENV_VALUES}from'../constant/env.js';import{RABETBASE_OUTPUT_FORMAT_VALUES}from'../constant/output.js';import{RISK_LEVEL_VALUES}from'../constant/risk.js';import{ENABLED_LOVRABET_REGION_VALUES}from'../constant/region.js';import{collectDeploymentSyncProfile,getDeploymentSyncProfileFlagDefs}from'../config/deployment-sync.js';export{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';export const PROJECT_CREATE_INHERITABLE_KEYS=[a220_0x2e1394(0x11c),'accessKey','locale',a220_0x2e1394(0x129),'riskLevel','region',a220_0x2e1394(0x13b),a220_0x2e1394(0x12c),a220_0x2e1394(0x11d),a220_0x2e1394(0x128),a220_0x2e1394(0x119),a220_0x2e1394(0x116),a220_0x2e1394(0x142),a220_0x2e1394(0x122),a220_0x2e1394(0x123)];export const TOP_LEVEL_CONFIG_KEYS=new Set([a220_0x2e1394(0x143),a220_0x2e1394(0x121),a220_0x2e1394(0x11a),a220_0x2e1394(0x129),a220_0x2e1394(0x11c),'accessKey',a220_0x2e1394(0x12d),a220_0x2e1394(0x141),a220_0x2e1394(0x12c),a220_0x2e1394(0x11d),a220_0x2e1394(0x128),a220_0x2e1394(0x119),'kbDomain',a220_0x2e1394(0x142),a220_0x2e1394(0x122),a220_0x2e1394(0x123)]);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES],'region':[...ENABLED_LOVRABET_REGION_VALUES]};export function formatConfigKeyList(_0x16fd1f){return[..._0x16fd1f]['join'](',\x20');}function a220_0x5ecc(_0x48c354,_0x1b9d1b){_0x48c354=_0x48c354-0x116;const _0x2e6532=a220_0x2e65();let _0x5ecc9d=_0x2e6532[_0x48c354];return _0x5ecc9d;}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0x1f561a){return TOP_LEVEL_CONFIG_KEYS['has'](_0x1f561a);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x5a7a1e=a220_0x2e1394;return _0x5a7a1e(0x134)+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'env':'env','apiDir':a220_0x2e1394(0x12d),'cookie':a220_0x2e1394(0x11c),'accessKey':'accessKey','defaultFormat':a220_0x2e1394(0x129),'pageSize':a220_0x2e1394(0x135),'riskLevel':'riskLevel','locale':a220_0x2e1394(0x11a)};export function getAppProfileFlagDefs(){const _0x5694ee=a220_0x2e1394;return[{'name':_0x5694ee(0x121),'type':_0x5694ee(0x144),'description':_0x5694ee(0x13f),'enum':[...RABETBASE_ENV_VALUES]},{'name':_0x5694ee(0x12d),'type':_0x5694ee(0x144),'description':_0x5694ee(0x118)},{'name':'cookie','type':_0x5694ee(0x144),'description':_0x5694ee(0x13e),'hidden':!![]},{'name':'accessKey','type':_0x5694ee(0x144),'description':_0x5694ee(0x117),'hidden':!![]},{'name':_0x5694ee(0x140),'type':_0x5694ee(0x144),'description':'Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':'pageSize','type':'number','description':_0x5694ee(0x126)},{'name':_0x5694ee(0x131),'type':_0x5694ee(0x144),'description':'Risk\x20level','enum':[...RISK_LEVEL_VALUES]},{'name':_0x5694ee(0x11a),'type':_0x5694ee(0x144),'description':_0x5694ee(0x124)},...getDeploymentSyncProfileFlagDefs()];}export function collectAppProfileOverrides(_0x2f998a){const _0x4d4740=a220_0x2e1394,_0x3a6742={};for(const [_0x3712e9,_0x4da004]of Object[_0x4d4740(0x139)](APP_PROFILE_FLAG_KEY_MAP)){const _0x452abe=_0x2f998a(_0x3712e9);if(!_0x452abe)continue;_0x3a6742[_0x4da004]=_0x4da004===_0x4d4740(0x135)?Number(_0x452abe):_0x452abe;}const _0x39b84e=collectDeploymentSyncProfile(_0x2f998a);if(_0x39b84e)_0x3a6742[_0x4d4740(0x132)]=_0x39b84e;return _0x3a6742;}export function buildAppProfileListFields(_0x563203){const _0x503695=a220_0x2e1394;return{'env':_0x563203[_0x503695(0x121)]??null,'apiDir':_0x563203[_0x503695(0x12d)]??null,'hasCookie':!!_0x563203[_0x503695(0x11c)],'hasAccessKey':!!_0x563203[_0x503695(0x11e)],'format':_0x563203[_0x503695(0x129)]??null,'pageSize':_0x563203[_0x503695(0x135)]??null,'riskLevel':_0x563203[_0x503695(0x131)]??null,'locale':_0x563203[_0x503695(0x11a)]??null,'deploymentSync':_0x563203[_0x503695(0x132)]??null};}export function buildAppDoctorFields(_0x296a6c,_0x525ec5){const _0x4d906e=a220_0x2e1394;return{'env':{'value':_0x296a6c[_0x4d906e(0x121)]||_0x525ec5['env'],'source':_0x296a6c[_0x4d906e(0x121)]?_0x4d906e(0x137):_0x4d906e(0x12b)},'apiDir':{'value':_0x296a6c['apiDir']||_0x525ec5['apiDir'],'source':_0x296a6c[_0x4d906e(0x12d)]?_0x4d906e(0x137):_0x4d906e(0x12b)},'cookie':{'value':_0x296a6c[_0x4d906e(0x11c)]||_0x525ec5['cookie'],'source':_0x296a6c['cookie']?_0x4d906e(0x137):_0x4d906e(0x12b)},'accessKey':{'value':_0x296a6c[_0x4d906e(0x11e)]||_0x525ec5['accessKey'],'source':_0x296a6c[_0x4d906e(0x11e)]?'app':_0x4d906e(0x12b)}};}export function buildCanonicalAppConfig(_0x40a9f9,_0x3640ef){const _0x3bee27=a220_0x2e1394,_0x38f3e4=_0x40a9f9[_0x3bee27(0x13c)](_0x5c2b40=>String(_0x5c2b40||'')[_0x3bee27(0x145)]())['filter'](Boolean);if(_0x38f3e4[_0x3bee27(0x13d)]===0x0)return{};const _0x417606={};for(const _0x546e75 of _0x38f3e4){_0x417606[_0x546e75]=_0x3640ef?{'appcode':_0x546e75,'env':_0x3640ef}:{'appcode':_0x546e75};}return _0x38f3e4[_0x3bee27(0x13d)]>0x1?{'apps':_0x417606,'defaultApp':_0x38f3e4[0x0]}:{'apps':_0x417606};}export function normalizeStoredDefaultApp(_0x480051,_0x1a181f){const _0x2f3570=a220_0x2e1394,_0x909af9=_0x480051[_0x2f3570(0x12f)]&&typeof _0x480051[_0x2f3570(0x12f)]===_0x2f3570(0x12a)?_0x480051['apps']:{},_0x51c3b3=Object[_0x2f3570(0x12e)](_0x909af9);if(_0x51c3b3[_0x2f3570(0x13d)]<=0x1)return delete _0x480051[_0x2f3570(0x127)],undefined;const _0x504296=typeof _0x480051['defaultApp']===_0x2f3570(0x144)&&_0x909af9[_0x480051[_0x2f3570(0x127)]]?_0x480051[_0x2f3570(0x127)]:undefined,_0x242727=_0x1a181f&&_0x909af9[_0x1a181f]?_0x1a181f:_0x504296;if(_0x242727)return _0x480051[_0x2f3570(0x127)]=_0x242727,_0x242727;return delete _0x480051['defaultApp'],undefined;}export function buildCanonicalProjectConfig(_0x278b61,_0x425e1c){const _0x4d373f=a220_0x2e1394,{appCodes:appCodes=[],env:_0x2cf7ec,metadata:_0x33be8b}=_0x425e1c,_0x7c00f2={..._0x278b61,..._0x33be8b||{}};delete _0x7c00f2['appcode'],delete _0x7c00f2[_0x4d373f(0x137)];if(_0x2cf7ec)_0x7c00f2[_0x4d373f(0x121)]=_0x2cf7ec;else!_0x7c00f2[_0x4d373f(0x121)]&&(_0x7c00f2[_0x4d373f(0x121)]=DEFAULT_CONFIG_VALUES[_0x4d373f(0x121)]);const _0x33fe90=buildCanonicalAppConfig(appCodes,_0x7c00f2['env']);if(Object[_0x4d373f(0x12e)](_0x33fe90)[_0x4d373f(0x13d)]>0x0){_0x7c00f2[_0x4d373f(0x12f)]=_0x33fe90[_0x4d373f(0x12f)];if(_0x33fe90[_0x4d373f(0x127)])_0x7c00f2['defaultApp']=_0x33fe90['defaultApp'];else delete _0x7c00f2[_0x4d373f(0x127)];}return _0x7c00f2;}const LOCALE_MAP={'zh':a220_0x2e1394(0x133),'zh-cn':a220_0x2e1394(0x133),'zh_cn':a220_0x2e1394(0x133),'en':a220_0x2e1394(0x120),'en-us':'en-US','en_us':'en-US'};export function normalizeLocale(_0x1f81e7){const _0x2e18a2=a220_0x2e1394;if(!_0x1f81e7)return null;return LOCALE_MAP[_0x1f81e7[_0x2e18a2(0x146)]()]??null;}
1
+ const a220_0x45f600=a220_0x2de9;(function(_0x57cf3f,_0x55038f){const _0x3d7c85=a220_0x2de9,_0x5c6982=_0x57cf3f();while(!![]){try{const _0x25e9f3=parseInt(_0x3d7c85(0x1af))/0x1*(parseInt(_0x3d7c85(0x1a7))/0x2)+-parseInt(_0x3d7c85(0x195))/0x3+parseInt(_0x3d7c85(0x194))/0x4*(parseInt(_0x3d7c85(0x1b3))/0x5)+-parseInt(_0x3d7c85(0x18f))/0x6+parseInt(_0x3d7c85(0x18d))/0x7+-parseInt(_0x3d7c85(0x196))/0x8+-parseInt(_0x3d7c85(0x1a6))/0x9*(-parseInt(_0x3d7c85(0x190))/0xa);if(_0x25e9f3===_0x55038f)break;else _0x5c6982['push'](_0x5c6982['shift']());}catch(_0x35a0a6){_0x5c6982['push'](_0x5c6982['shift']());}}}(a220_0x26df,0xddcb0));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RABETBASE_ENV_VALUES}from'../constant/env.js';import{RABETBASE_OUTPUT_FORMAT_VALUES}from'../constant/output.js';import{RISK_LEVEL_VALUES}from'../constant/risk.js';import{ENABLED_LOVRABET_REGION_VALUES}from'../constant/region.js';import{collectDeploymentSyncProfile,getDeploymentSyncProfileFlagDefs}from'../config/deployment-sync.js';export{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';export const PROJECT_CREATE_INHERITABLE_KEYS=['cookie',a220_0x45f600(0x189),a220_0x45f600(0x19d),a220_0x45f600(0x198),a220_0x45f600(0x18e),a220_0x45f600(0x1a9),a220_0x45f600(0x1a3),a220_0x45f600(0x1aa),a220_0x45f600(0x1a1),a220_0x45f600(0x1b0),a220_0x45f600(0x1ac),a220_0x45f600(0x1a2),a220_0x45f600(0x192),a220_0x45f600(0x1bb),'certificateDomain'];export const TOP_LEVEL_CONFIG_KEYS=new Set([a220_0x45f600(0x1b2),a220_0x45f600(0x19a),a220_0x45f600(0x19d),'format',a220_0x45f600(0x197),'accessKey','apiDir',a220_0x45f600(0x1a9),a220_0x45f600(0x1aa),a220_0x45f600(0x1a1),a220_0x45f600(0x1b0),'skillDomain',a220_0x45f600(0x1a2),a220_0x45f600(0x192),a220_0x45f600(0x1bb),'certificateDomain']);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES],'region':[...ENABLED_LOVRABET_REGION_VALUES]};export function formatConfigKeyList(_0x21626c){return[..._0x21626c]['join'](',\x20');}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0x2c2042){const _0x93478f=a220_0x45f600;return TOP_LEVEL_CONFIG_KEYS[_0x93478f(0x1b9)](_0x2c2042);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x280c2f=a220_0x45f600;return _0x280c2f(0x1b7)+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'env':a220_0x45f600(0x19a),'apiDir':a220_0x45f600(0x19e),'cookie':a220_0x45f600(0x197),'accessKey':a220_0x45f600(0x189),'defaultFormat':a220_0x45f600(0x198),'pageSize':'pageSize','riskLevel':'riskLevel','locale':'locale'};export function getAppProfileFlagDefs(){const _0x27cd91=a220_0x45f600;return[{'name':_0x27cd91(0x19a),'type':'string','description':_0x27cd91(0x199),'enum':[...RABETBASE_ENV_VALUES]},{'name':_0x27cd91(0x19e),'type':_0x27cd91(0x1b8),'description':_0x27cd91(0x19c)},{'name':'cookie','type':_0x27cd91(0x1b8),'description':_0x27cd91(0x1bd),'hidden':!![]},{'name':_0x27cd91(0x189),'type':'string','description':_0x27cd91(0x1ad),'hidden':!![]},{'name':'defaultFormat','type':_0x27cd91(0x1b8),'description':'Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':_0x27cd91(0x18b),'type':_0x27cd91(0x1bc),'description':_0x27cd91(0x1b4)},{'name':'riskLevel','type':_0x27cd91(0x1b8),'description':_0x27cd91(0x1a5),'enum':[...RISK_LEVEL_VALUES]},{'name':_0x27cd91(0x19d),'type':_0x27cd91(0x1b8),'description':_0x27cd91(0x1ab)},...getDeploymentSyncProfileFlagDefs()];}function a220_0x2de9(_0x36cbf3,_0x4d5495){_0x36cbf3=_0x36cbf3-0x189;const _0x26df2b=a220_0x26df();let _0x2de9c7=_0x26df2b[_0x36cbf3];return _0x2de9c7;}export function collectAppProfileOverrides(_0x32cea2){const _0x3f6c8c=a220_0x45f600,_0x57d47b={};for(const [_0xe705b3,_0xf51bff]of Object[_0x3f6c8c(0x191)](APP_PROFILE_FLAG_KEY_MAP)){const _0x4ce1a8=_0x32cea2(_0xe705b3);if(!_0x4ce1a8)continue;_0x57d47b[_0xf51bff]=_0xf51bff===_0x3f6c8c(0x18b)?Number(_0x4ce1a8):_0x4ce1a8;}const _0x4e24d4=collectDeploymentSyncProfile(_0x32cea2);if(_0x4e24d4)_0x57d47b[_0x3f6c8c(0x1ae)]=_0x4e24d4;return _0x57d47b;}export function buildAppProfileListFields(_0x52e934){const _0x27cdef=a220_0x45f600;return{'env':_0x52e934[_0x27cdef(0x19a)]??null,'apiDir':_0x52e934[_0x27cdef(0x19e)]??null,'hasCookie':!!_0x52e934['cookie'],'hasAccessKey':!!_0x52e934['accessKey'],'format':_0x52e934[_0x27cdef(0x198)]??null,'pageSize':_0x52e934['pageSize']??null,'riskLevel':_0x52e934[_0x27cdef(0x18e)]??null,'locale':_0x52e934[_0x27cdef(0x19d)]??null,'deploymentSync':_0x52e934['deploymentSync']??null};}export function buildAppDoctorFields(_0x162e2e,_0x220fa1){const _0x7fd356=a220_0x45f600;return{'env':{'value':_0x162e2e[_0x7fd356(0x19a)]||_0x220fa1[_0x7fd356(0x19a)],'source':_0x162e2e['env']?_0x7fd356(0x1a0):_0x7fd356(0x18c)},'apiDir':{'value':_0x162e2e[_0x7fd356(0x19e)]||_0x220fa1[_0x7fd356(0x19e)],'source':_0x162e2e['apiDir']?'app':_0x7fd356(0x18c)},'cookie':{'value':_0x162e2e[_0x7fd356(0x197)]||_0x220fa1['cookie'],'source':_0x162e2e[_0x7fd356(0x197)]?_0x7fd356(0x1a0):_0x7fd356(0x18c)},'accessKey':{'value':_0x162e2e[_0x7fd356(0x189)]||_0x220fa1[_0x7fd356(0x189)],'source':_0x162e2e[_0x7fd356(0x189)]?_0x7fd356(0x1a0):_0x7fd356(0x18c)}};}export function buildCanonicalAppConfig(_0x2ba9a8,_0x395552){const _0x35e1c1=a220_0x45f600,_0x37846d=_0x2ba9a8[_0x35e1c1(0x1ba)](_0x5dd03e=>String(_0x5dd03e||'')[_0x35e1c1(0x1a4)]())[_0x35e1c1(0x1a8)](Boolean);if(_0x37846d['length']===0x0)return{};const _0x4e4abf={};for(const _0x470520 of _0x37846d){_0x4e4abf[_0x470520]=_0x395552?{'appcode':_0x470520,'env':_0x395552}:{'appcode':_0x470520};}return _0x37846d[_0x35e1c1(0x1b6)]>0x1?{'apps':_0x4e4abf,'defaultApp':_0x37846d[0x0]}:{'apps':_0x4e4abf};}function a220_0x26df(){const _0x5c2459=['Risk\x20level','27MxJcFx','828560AYKszJ','filter','region','userDomain','App\x20locale\x20(not\x20CLI\x20language;\x20reserved\x20for\x20later\x20app\x20use)','skillDomain','Access\x20key','deploymentSync','2LLLTsP','runtimeDomain','apps','appcode','283850zzWXMd','Default\x20page\x20size','en-US','length','Config\x20key\x20(','string','has','map','localDomain','number','Auth\x20cookie','accessKey','keys','pageSize','inherit','2244816UTwpQN','riskLevel','7677984eHEYrC','4499570BIpRAn','entries','appDomain','zh-CN','28APkANR','1554348EOqIib','1522120CkgDbm','cookie','format','Target\x20environment','env','object','API\x20directory\x20path','locale','apiDir','defaultApp','app','apiDomain','kbDomain','routing','trim'];a220_0x26df=function(){return _0x5c2459;};return a220_0x26df();}export function normalizeStoredDefaultApp(_0x15034b,_0x295f1f){const _0x23937e=a220_0x45f600,_0xea4731=_0x15034b['apps']&&typeof _0x15034b[_0x23937e(0x1b1)]===_0x23937e(0x19b)?_0x15034b[_0x23937e(0x1b1)]:{},_0x25e470=Object[_0x23937e(0x18a)](_0xea4731);if(_0x25e470[_0x23937e(0x1b6)]<=0x1)return delete _0x15034b[_0x23937e(0x19f)],undefined;const _0x458d5f=typeof _0x15034b['defaultApp']===_0x23937e(0x1b8)&&_0xea4731[_0x15034b['defaultApp']]?_0x15034b[_0x23937e(0x19f)]:undefined,_0x470dea=_0x295f1f&&_0xea4731[_0x295f1f]?_0x295f1f:_0x458d5f;if(_0x470dea)return _0x15034b[_0x23937e(0x19f)]=_0x470dea,_0x470dea;return delete _0x15034b[_0x23937e(0x19f)],undefined;}export function buildCanonicalProjectConfig(_0x5b7a46,_0x1c7aad){const _0x516371=a220_0x45f600,{appCodes:appCodes=[],env:_0x4b3dd3,metadata:_0x2a077a}=_0x1c7aad,_0x28c0ee={..._0x5b7a46,..._0x2a077a||{}};delete _0x28c0ee[_0x516371(0x1b2)],delete _0x28c0ee['app'];if(_0x4b3dd3)_0x28c0ee[_0x516371(0x19a)]=_0x4b3dd3;else!_0x28c0ee['env']&&(_0x28c0ee[_0x516371(0x19a)]=DEFAULT_CONFIG_VALUES[_0x516371(0x19a)]);const _0x504f8d=buildCanonicalAppConfig(appCodes,_0x28c0ee[_0x516371(0x19a)]);if(Object[_0x516371(0x18a)](_0x504f8d)[_0x516371(0x1b6)]>0x0){_0x28c0ee[_0x516371(0x1b1)]=_0x504f8d[_0x516371(0x1b1)];if(_0x504f8d[_0x516371(0x19f)])_0x28c0ee[_0x516371(0x19f)]=_0x504f8d['defaultApp'];else delete _0x28c0ee[_0x516371(0x19f)];}return _0x28c0ee;}const LOCALE_MAP={'zh':a220_0x45f600(0x193),'zh-cn':'zh-CN','zh_cn':a220_0x45f600(0x193),'en':a220_0x45f600(0x1b5),'en-us':a220_0x45f600(0x1b5),'en_us':a220_0x45f600(0x1b5)};export function normalizeLocale(_0x43e61e){if(!_0x43e61e)return null;return LOCALE_MAP[_0x43e61e['toLowerCase']()]??null;}
@@ -1 +1 @@
1
- const a221_0xb07bc5=a221_0x27c0;(function(_0x1842db,_0x49cd2d){const _0x41725e=a221_0x27c0,_0x3acdf1=_0x1842db();while(!![]){try{const _0x446edd=-parseInt(_0x41725e(0x1d0))/0x1*(parseInt(_0x41725e(0x1cd))/0x2)+-parseInt(_0x41725e(0x1cf))/0x3*(-parseInt(_0x41725e(0x1d4))/0x4)+-parseInt(_0x41725e(0x1d5))/0x5+-parseInt(_0x41725e(0x1cc))/0x6+-parseInt(_0x41725e(0x1ca))/0x7*(-parseInt(_0x41725e(0x1d6))/0x8)+parseInt(_0x41725e(0x1d7))/0x9*(-parseInt(_0x41725e(0x1d1))/0xa)+parseInt(_0x41725e(0x1d2))/0xb*(parseInt(_0x41725e(0x1cb))/0xc);if(_0x446edd===_0x49cd2d)break;else _0x3acdf1['push'](_0x3acdf1['shift']());}catch(_0x5ebdd1){_0x3acdf1['push'](_0x3acdf1['shift']());}}}(a221_0x721d,0x3fcf3));export const RABETBASE_CDN_BASE_URL=a221_0xb07bc5(0x1d3);export const CLI_VERSION_POLICY_URL=RABETBASE_CDN_BASE_URL+a221_0xb07bc5(0x1ce);function a221_0x27c0(_0x162aaf,_0x130371){_0x162aaf=_0x162aaf-0x1ca;const _0x721d78=a221_0x721d();let _0x27c0eb=_0x721d78[_0x162aaf];return _0x27c0eb;}function a221_0x721d(){const _0x4213bd=['432672KKKdMy','38zGduWs','/config/index.json','26145nELfdB','14947SuxkXR','3173790WXdALR','79013bWmoGV','https://g.lovrabet.com/dist/rabetbase-cli','16izVnlb','1336750LhlVSt','16ZJkBTk','9JwnjlM','792274TdXrvm','1572Yeizmt'];a221_0x721d=function(){return _0x4213bd;};return a221_0x721d();}export const PROJECT_TEMPLATE_ASSET_BASE_URL=RABETBASE_CDN_BASE_URL+'/templates/projects';
1
+ const a221_0x32804b=a221_0x28fa;function a221_0x28fa(_0x76e65d,_0x2d8957){_0x76e65d=_0x76e65d-0x7a;const _0x17dc22=a221_0x17dc();let _0x28fa59=_0x17dc22[_0x76e65d];return _0x28fa59;}(function(_0x1fb9ba,_0x56e4b8){const _0xdf2925=a221_0x28fa,_0x51e650=_0x1fb9ba();while(!![]){try{const _0x2b53a2=-parseInt(_0xdf2925(0x80))/0x1*(-parseInt(_0xdf2925(0x7c))/0x2)+parseInt(_0xdf2925(0x85))/0x3+-parseInt(_0xdf2925(0x7f))/0x4*(-parseInt(_0xdf2925(0x7e))/0x5)+parseInt(_0xdf2925(0x7b))/0x6+-parseInt(_0xdf2925(0x82))/0x7+parseInt(_0xdf2925(0x86))/0x8+parseInt(_0xdf2925(0x7a))/0x9*(-parseInt(_0xdf2925(0x84))/0xa);if(_0x2b53a2===_0x56e4b8)break;else _0x51e650['push'](_0x51e650['shift']());}catch(_0x14f7b6){_0x51e650['push'](_0x51e650['shift']());}}}(a221_0x17dc,0x80d52));export const RABETBASE_CDN_BASE_URL=a221_0x32804b(0x83);export const CLI_VERSION_POLICY_URL=RABETBASE_CDN_BASE_URL+a221_0x32804b(0x81);export const PROJECT_TEMPLATE_ASSET_BASE_URL=RABETBASE_CDN_BASE_URL+a221_0x32804b(0x7d);function a221_0x17dc(){const _0x1dfbb0=['2367732AxUeam','2ZFuSre','/config/index.json','2938411ybowGn','https://g.lovrabet.com/dist/rabetbase-cli','13433980MlmKtF','183222sidoEf','5790712oBqGAP','9MgfUbq','4032846bEtGHq','241882UNcfLo','/templates/projects','5ORzwZy'];a221_0x17dc=function(){return _0x1dfbb0;};return a221_0x17dc();}
@@ -1 +1 @@
1
- const a222_0x2d8722=a222_0x453c;function a222_0x393a(){const _0x160991=['pagesize','2ZriMhT','boolean','Menu\x20sort\x20value','Config\x20value','sort','767524gRYaPa','470LnZCTj','sql','DB\x20ID','codes','sqlcode','Use\x20the\x20base\x20database\x20connection','type','<expr>','operation-type','datasetcode','Page\x20number','Rabetbase\x20CLI','Function\x20node','Config\x20key','parent-id','Title','Schemas','Operation\x20type','code','project','format','json\x20|\x20pretty\x20|\x20compress','production\x20|\x20daily','force','remote','Tags','nonInteractive','Apply\x20to\x20all','Expected\x20current\x20menu\x20path','all','page','expectParentId','query','topk','Parent\x20menu\x20id','Reveal\x20sensitive\x20value','global','name','tags','watch','descriptionFile','SQL\x20string','Target\x20connection\x20environment','non-interactive','SQL\x20name','sql-name','dbid','Comma-separated\x20metadata\x20codes','10668UUxsUG','title','label','File\x20path','map','182736pEYenh','string','functionNode','Use\x20remote','key','targetEnv','<code>','Select\x20app\x20profile\x20by\x20name','Description\x20file','db-id','target','Watch\x20mode','direct','appcode','menu-ids','value','Show\x20help','Search\x20query','skip-imports','Read\x20value\x20from\x20stdin','help','enableBffSave','function-node','JSON\x20params','operation','output','40390350QfnCFt','expected-children-count','Name','dryRun','file','Type\x20filter','description-file','SQL\x20code','env','expectedChildrenCount','Keyword\x20filter','keyword','schemas','2053842HPcdxf','stdin','Expected\x20current\x20parent\x20menu\x20id','fromEnv','Description','operationType','Read\x20value\x20from\x20environment\x20variable','Enable\x20Backend\x20Function\x20save','parentId','yes','Code\x20filter','Dataset\x20code','expectPath','@lovrabet/rabetbase-cli','dry-run','verbose','reveal','5hAKoKV','target-env','task-id','Use\x20project\x20config\x20scope','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','clear','Expected\x20affected\x20count','taskId','344838bqcokq','app','16OSNadg','Confirm\x20destructive\x20action','Force\x20non-interactive\x20mode\x20(CI)','sqlName','expect-path','App\x20locale\x20(workspace\x20pass-through;\x20not\x20CLI\x20language)','params','Comma-separated\x20menu\x20IDs','Page\x20size','confirm','from-env','menuIds','sqlname','meowKey','1776453xtZNwZ','locale','Output\x20path','fromEntries','zh-CN\x20|\x20en-US','description'];a222_0x393a=function(){return _0x160991;};return a222_0x393a();}(function(_0x323740,_0x2362a1){const _0x3c551c=a222_0x453c,_0x2626fe=_0x323740();while(!![]){try{const _0x4ee162=-parseInt(_0x3c551c(0x15e))/0x1*(parseInt(_0x3c551c(0x159))/0x2)+-parseInt(_0x3c551c(0x129))/0x3+-parseInt(_0x3c551c(0x18f))/0x4+-parseInt(_0x3c551c(0x13a))/0x5*(parseInt(_0x3c551c(0x142))/0x6)+parseInt(_0x3c551c(0x152))/0x7*(-parseInt(_0x3c551c(0x144))/0x8)+-parseInt(_0x3c551c(0x194))/0x9*(parseInt(_0x3c551c(0x15f))/0xa)+parseInt(_0x3c551c(0x1ae))/0xb;if(_0x4ee162===_0x2362a1)break;else _0x2626fe['push'](_0x2626fe['shift']());}catch(_0x4eac15){_0x2626fe['push'](_0x2626fe['shift']());}}}(a222_0x393a,0xaa57e));export const CLI_BIN_NAME='rabetbase';export const CLI_DISPLAY_NAME=a222_0x2d8722(0x16a);export const NPM_PACKAGE_NAME=a222_0x2d8722(0x136);function a222_0x453c(_0x5d2b97,_0x4b3099){_0x5d2b97=_0x5d2b97-0x122;const _0x393a4a=a222_0x393a();let _0x453c30=_0x393a4a[_0x5d2b97];return _0x453c30;}export const GLOBAL_FLAGS=[{'name':'appcode','meowKey':a222_0x2d8722(0x1a1),'type':a222_0x2d8722(0x195),'description':'Override\x20appcode','hint':a222_0x2d8722(0x19a)},{'name':a222_0x2d8722(0x143),'meowKey':a222_0x2d8722(0x143),'type':'string','description':a222_0x2d8722(0x19b),'hint':'<name>'},{'name':a222_0x2d8722(0x124),'meowKey':'env','type':a222_0x2d8722(0x195),'description':'Environment','hint':a222_0x2d8722(0x175)},{'name':a222_0x2d8722(0x173),'meowKey':'format','type':a222_0x2d8722(0x195),'description':'Output\x20format','hint':a222_0x2d8722(0x174)},{'name':'jq','meowKey':'jq','type':'string','description':a222_0x2d8722(0x13e),'hint':a222_0x2d8722(0x166)},{'name':a222_0x2d8722(0x137),'meowKey':a222_0x2d8722(0x1b1),'type':a222_0x2d8722(0x15a),'description':'Preview\x20operation\x20without\x20executing'},{'name':a222_0x2d8722(0x132),'meowKey':a222_0x2d8722(0x132),'type':'boolean','description':'Skip\x20confirmation\x20for\x20high-risk\x20writes'},{'name':a222_0x2d8722(0x18a),'meowKey':a222_0x2d8722(0x179),'type':a222_0x2d8722(0x15a),'description':a222_0x2d8722(0x146)},{'name':a222_0x2d8722(0x183),'meowKey':a222_0x2d8722(0x183),'type':'boolean','description':'Use\x20global\x20config\x20scope'},{'name':a222_0x2d8722(0x172),'meowKey':'project','type':a222_0x2d8722(0x15a),'description':a222_0x2d8722(0x13d)},{'name':'ci','meowKey':'ci','type':a222_0x2d8722(0x15a),'description':'Alias\x20for\x20--non-interactive','hidden':!![]},{'name':a222_0x2d8722(0x1a8),'meowKey':'help','type':a222_0x2d8722(0x15a),'description':a222_0x2d8722(0x1a4)},{'name':'locale','meowKey':a222_0x2d8722(0x153),'type':a222_0x2d8722(0x195),'description':a222_0x2d8722(0x149),'hidden':!![],'hint':a222_0x2d8722(0x156)},{'name':a222_0x2d8722(0x184),'meowKey':a222_0x2d8722(0x184),'type':a222_0x2d8722(0x195),'description':a222_0x2d8722(0x1b0),'hidden':!![]},{'name':a222_0x2d8722(0x190),'meowKey':'title','type':'string','description':a222_0x2d8722(0x16e),'hidden':!![]},{'name':a222_0x2d8722(0x17f),'meowKey':a222_0x2d8722(0x17f),'type':'string','description':a222_0x2d8722(0x1a5),'hidden':!![]},{'name':a222_0x2d8722(0x180),'meowKey':a222_0x2d8722(0x180),'type':a222_0x2d8722(0x195),'description':'Maximum\x20search\x20hits','hidden':!![]},{'name':a222_0x2d8722(0x13f),'meowKey':a222_0x2d8722(0x13f),'type':'boolean','description':'Clear','hidden':!![]},{'name':'watch','meowKey':a222_0x2d8722(0x186),'type':a222_0x2d8722(0x15a),'description':a222_0x2d8722(0x19f),'hidden':!![]},{'name':a222_0x2d8722(0x1ad),'meowKey':a222_0x2d8722(0x1ad),'type':'string','description':a222_0x2d8722(0x154),'hidden':!![]},{'name':'params','meowKey':a222_0x2d8722(0x14a),'type':a222_0x2d8722(0x195),'description':a222_0x2d8722(0x1ab),'hidden':!![]},{'name':a222_0x2d8722(0x168),'meowKey':'datasetcode','type':'string','description':a222_0x2d8722(0x134),'hidden':!![]},{'name':a222_0x2d8722(0x17c),'meowKey':a222_0x2d8722(0x17c),'type':a222_0x2d8722(0x15a),'description':a222_0x2d8722(0x17a),'hidden':!![]},{'name':'enable-bff-save','meowKey':a222_0x2d8722(0x1a9),'type':a222_0x2d8722(0x15a),'description':a222_0x2d8722(0x130),'hidden':!![]},{'name':'id','meowKey':'id','type':a222_0x2d8722(0x195),'description':'Record\x20ID','hidden':!![]},{'name':a222_0x2d8722(0x165),'meowKey':a222_0x2d8722(0x165),'type':'string','description':a222_0x2d8722(0x1b3),'hidden':!![]},{'name':a222_0x2d8722(0x1b2),'meowKey':a222_0x2d8722(0x1b2),'type':'string','description':a222_0x2d8722(0x192),'hidden':!![]},{'name':a222_0x2d8722(0x163),'meowKey':a222_0x2d8722(0x163),'type':a222_0x2d8722(0x195),'description':a222_0x2d8722(0x123),'hidden':!![]},{'name':a222_0x2d8722(0x18c),'meowKey':a222_0x2d8722(0x147),'type':'string','description':a222_0x2d8722(0x18b),'hidden':!![]},{'name':a222_0x2d8722(0x150),'meowKey':a222_0x2d8722(0x150),'type':'string','description':a222_0x2d8722(0x18b),'hidden':!![]},{'name':a222_0x2d8722(0x19d),'meowKey':'dbId','type':a222_0x2d8722(0x195),'description':a222_0x2d8722(0x161),'hidden':!![]},{'name':a222_0x2d8722(0x18d),'meowKey':a222_0x2d8722(0x18d),'type':'string','description':a222_0x2d8722(0x161),'hidden':!![]},{'name':a222_0x2d8722(0x157),'meowKey':a222_0x2d8722(0x157),'type':a222_0x2d8722(0x195),'description':a222_0x2d8722(0x12d),'hidden':!![]},{'name':a222_0x2d8722(0x122),'meowKey':a222_0x2d8722(0x187),'type':'string','description':a222_0x2d8722(0x19c),'hidden':!![]},{'name':a222_0x2d8722(0x17d),'meowKey':'page','type':a222_0x2d8722(0x195),'description':a222_0x2d8722(0x169),'hidden':!![]},{'name':a222_0x2d8722(0x158),'meowKey':'pagesize','type':a222_0x2d8722(0x195),'description':a222_0x2d8722(0x14c),'hidden':!![]},{'name':a222_0x2d8722(0x127),'meowKey':a222_0x2d8722(0x127),'type':a222_0x2d8722(0x195),'description':a222_0x2d8722(0x126),'hidden':!![]},{'name':a222_0x2d8722(0x171),'meowKey':a222_0x2d8722(0x171),'type':a222_0x2d8722(0x195),'description':a222_0x2d8722(0x133),'hidden':!![]},{'name':a222_0x2d8722(0x160),'meowKey':a222_0x2d8722(0x160),'type':a222_0x2d8722(0x195),'description':a222_0x2d8722(0x188),'hidden':!![]},{'name':a222_0x2d8722(0x128),'meowKey':'schemas','type':a222_0x2d8722(0x195),'description':a222_0x2d8722(0x16f),'hidden':!![]},{'name':'operation','meowKey':a222_0x2d8722(0x1ac),'type':'string','description':a222_0x2d8722(0x170),'hidden':!![]},{'name':a222_0x2d8722(0x19e),'meowKey':a222_0x2d8722(0x19e),'type':'string','description':'Target\x20path','hidden':!![]},{'name':a222_0x2d8722(0x1a6),'meowKey':'skipImports','type':'boolean','description':'Skip\x20import\x20generation','hidden':!![]},{'name':a222_0x2d8722(0x198),'meowKey':a222_0x2d8722(0x198),'type':a222_0x2d8722(0x195),'description':a222_0x2d8722(0x16c),'hidden':!![]},{'name':a222_0x2d8722(0x1a3),'meowKey':a222_0x2d8722(0x1a3),'type':a222_0x2d8722(0x195),'description':a222_0x2d8722(0x15c),'hidden':!![]},{'name':a222_0x2d8722(0x185),'meowKey':a222_0x2d8722(0x185),'type':a222_0x2d8722(0x195),'description':a222_0x2d8722(0x178),'hidden':!![]},{'name':a222_0x2d8722(0x12a),'meowKey':a222_0x2d8722(0x12a),'type':a222_0x2d8722(0x15a),'description':a222_0x2d8722(0x1a7),'hidden':!![]},{'name':a222_0x2d8722(0x14e),'meowKey':a222_0x2d8722(0x12c),'type':a222_0x2d8722(0x195),'description':a222_0x2d8722(0x12f),'hidden':!![]},{'name':a222_0x2d8722(0x139),'meowKey':a222_0x2d8722(0x139),'type':a222_0x2d8722(0x15a),'description':a222_0x2d8722(0x182),'hidden':!![]},{'name':a222_0x2d8722(0x176),'meowKey':a222_0x2d8722(0x176),'type':a222_0x2d8722(0x15a),'description':'Force\x20overwrite','hidden':!![]},{'name':'confirm','meowKey':a222_0x2d8722(0x14d),'type':a222_0x2d8722(0x15a),'description':a222_0x2d8722(0x145),'hidden':!![]},{'name':a222_0x2d8722(0x177),'meowKey':a222_0x2d8722(0x177),'type':a222_0x2d8722(0x15a),'description':a222_0x2d8722(0x197),'hidden':!![]},{'name':a222_0x2d8722(0x138),'meowKey':'verbose','type':a222_0x2d8722(0x15a),'description':'Verbose\x20output','hidden':!![]},{'name':'expected-count','meowKey':'expectedCount','type':a222_0x2d8722(0x195),'description':a222_0x2d8722(0x140),'hidden':!![]},{'name':a222_0x2d8722(0x191),'meowKey':'label','type':a222_0x2d8722(0x195),'description':'Menu\x20label','hidden':!![]},{'name':a222_0x2d8722(0x16d),'meowKey':a222_0x2d8722(0x131),'type':a222_0x2d8722(0x195),'description':a222_0x2d8722(0x181),'hidden':!![]},{'name':a222_0x2d8722(0x15d),'meowKey':a222_0x2d8722(0x15d),'type':a222_0x2d8722(0x195),'description':a222_0x2d8722(0x15b),'hidden':!![]},{'name':'expect-parent-id','meowKey':a222_0x2d8722(0x17e),'type':a222_0x2d8722(0x195),'description':a222_0x2d8722(0x12b),'hidden':!![]},{'name':a222_0x2d8722(0x148),'meowKey':a222_0x2d8722(0x135),'type':'string','description':a222_0x2d8722(0x17b),'hidden':!![]},{'name':a222_0x2d8722(0x1af),'meowKey':a222_0x2d8722(0x125),'type':a222_0x2d8722(0x195),'description':'Expected\x20current\x20child\x20count','hidden':!![]},{'name':a222_0x2d8722(0x1a2),'meowKey':a222_0x2d8722(0x14f),'type':a222_0x2d8722(0x195),'description':a222_0x2d8722(0x14b),'hidden':!![]},{'name':a222_0x2d8722(0x13c),'meowKey':a222_0x2d8722(0x141),'type':'string','description':'Asynchronous\x20task\x20ID','hidden':!![]},{'name':a222_0x2d8722(0x167),'meowKey':a222_0x2d8722(0x12e),'type':a222_0x2d8722(0x195),'description':a222_0x2d8722(0x170),'hidden':!![]},{'name':a222_0x2d8722(0x1aa),'meowKey':a222_0x2d8722(0x196),'type':a222_0x2d8722(0x195),'description':a222_0x2d8722(0x16b),'hidden':!![]},{'name':a222_0x2d8722(0x13b),'meowKey':a222_0x2d8722(0x199),'type':a222_0x2d8722(0x195),'description':a222_0x2d8722(0x189),'hidden':!![]},{'name':a222_0x2d8722(0x1a0),'meowKey':a222_0x2d8722(0x1a0),'type':'boolean','description':a222_0x2d8722(0x164),'hidden':!![]},{'name':'codes','meowKey':a222_0x2d8722(0x162),'type':'string','description':a222_0x2d8722(0x18e),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a222_0x2d8722(0x1a1),a222_0x2d8722(0x143),'env',a222_0x2d8722(0x173),'jq',a222_0x2d8722(0x137),'yes',a222_0x2d8722(0x18a),'ci']);export function buildMeowFlags(){const _0x3ef87c=a222_0x2d8722;return Object[_0x3ef87c(0x155)](GLOBAL_FLAGS[_0x3ef87c(0x193)](_0x35c40b=>[_0x35c40b[_0x3ef87c(0x151)],{'type':_0x35c40b[_0x3ef87c(0x165)]}]));}
1
+ const a222_0x2b5b77=a222_0x232d;(function(_0x4aacbe,_0x25f101){const _0x352386=a222_0x232d,_0x23d956=_0x4aacbe();while(!![]){try{const _0x4bb385=parseInt(_0x352386(0x1a9))/0x1+-parseInt(_0x352386(0x1c4))/0x2+-parseInt(_0x352386(0x1d0))/0x3+parseInt(_0x352386(0x19c))/0x4*(-parseInt(_0x352386(0x158))/0x5)+parseInt(_0x352386(0x1b5))/0x6+parseInt(_0x352386(0x17a))/0x7*(parseInt(_0x352386(0x15e))/0x8)+parseInt(_0x352386(0x1ce))/0x9;if(_0x4bb385===_0x25f101)break;else _0x23d956['push'](_0x23d956['shift']());}catch(_0x458ff4){_0x23d956['push'](_0x23d956['shift']());}}}(a222_0x5a9e,0xb0151));export const CLI_BIN_NAME='rabetbase';export const CLI_DISPLAY_NAME=a222_0x2b5b77(0x1cb);export const NPM_PACKAGE_NAME=a222_0x2b5b77(0x177);function a222_0x232d(_0x16b95a,_0x3400c2){_0x16b95a=_0x16b95a-0x14c;const _0x5a9ebc=a222_0x5a9e();let _0x232d91=_0x5a9ebc[_0x16b95a];return _0x232d91;}export const GLOBAL_FLAGS=[{'name':a222_0x2b5b77(0x1d6),'meowKey':a222_0x2b5b77(0x1d6),'type':a222_0x2b5b77(0x1a2),'description':a222_0x2b5b77(0x162),'hint':a222_0x2b5b77(0x1a8)},{'name':a222_0x2b5b77(0x181),'meowKey':a222_0x2b5b77(0x181),'type':a222_0x2b5b77(0x1a2),'description':'Select\x20app\x20profile\x20by\x20name','hint':a222_0x2b5b77(0x153)},{'name':a222_0x2b5b77(0x19d),'meowKey':a222_0x2b5b77(0x19d),'type':a222_0x2b5b77(0x1a2),'description':a222_0x2b5b77(0x170),'hint':'production\x20|\x20daily'},{'name':a222_0x2b5b77(0x1c6),'meowKey':a222_0x2b5b77(0x1c6),'type':'string','description':a222_0x2b5b77(0x1b6),'hint':a222_0x2b5b77(0x1d5)},{'name':'jq','meowKey':'jq','type':'string','description':'Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','hint':a222_0x2b5b77(0x1af)},{'name':a222_0x2b5b77(0x1c8),'meowKey':a222_0x2b5b77(0x1dc),'type':a222_0x2b5b77(0x167),'description':a222_0x2b5b77(0x1ab)},{'name':a222_0x2b5b77(0x16f),'meowKey':a222_0x2b5b77(0x16f),'type':a222_0x2b5b77(0x167),'description':'Skip\x20confirmation\x20for\x20high-risk\x20writes'},{'name':a222_0x2b5b77(0x1ac),'meowKey':a222_0x2b5b77(0x192),'type':a222_0x2b5b77(0x167),'description':a222_0x2b5b77(0x18e)},{'name':a222_0x2b5b77(0x165),'meowKey':a222_0x2b5b77(0x165),'type':a222_0x2b5b77(0x167),'description':a222_0x2b5b77(0x1d4)},{'name':a222_0x2b5b77(0x19b),'meowKey':'project','type':'boolean','description':a222_0x2b5b77(0x16b)},{'name':'ci','meowKey':'ci','type':a222_0x2b5b77(0x167),'description':a222_0x2b5b77(0x16a),'hidden':!![]},{'name':'help','meowKey':a222_0x2b5b77(0x15c),'type':'boolean','description':a222_0x2b5b77(0x1a6)},{'name':a222_0x2b5b77(0x15f),'meowKey':a222_0x2b5b77(0x15f),'type':a222_0x2b5b77(0x1a2),'description':a222_0x2b5b77(0x1c1),'hidden':!![],'hint':'zh-CN\x20|\x20en-US'},{'name':a222_0x2b5b77(0x1c9),'meowKey':a222_0x2b5b77(0x1c9),'type':a222_0x2b5b77(0x1a2),'description':a222_0x2b5b77(0x17e),'hidden':!![]},{'name':a222_0x2b5b77(0x187),'meowKey':a222_0x2b5b77(0x187),'type':a222_0x2b5b77(0x1a2),'description':a222_0x2b5b77(0x1b9),'hidden':!![]},{'name':'query','meowKey':a222_0x2b5b77(0x17c),'type':a222_0x2b5b77(0x1a2),'description':a222_0x2b5b77(0x1be),'hidden':!![]},{'name':a222_0x2b5b77(0x1ba),'meowKey':'topk','type':'string','description':a222_0x2b5b77(0x159),'hidden':!![]},{'name':a222_0x2b5b77(0x1da),'meowKey':'clear','type':a222_0x2b5b77(0x167),'description':a222_0x2b5b77(0x179),'hidden':!![]},{'name':'watch','meowKey':'watch','type':a222_0x2b5b77(0x167),'description':'Watch\x20mode','hidden':!![]},{'name':a222_0x2b5b77(0x1bb),'meowKey':'output','type':a222_0x2b5b77(0x1a2),'description':a222_0x2b5b77(0x1cd),'hidden':!![]},{'name':'params','meowKey':a222_0x2b5b77(0x191),'type':'string','description':a222_0x2b5b77(0x1b7),'hidden':!![]},{'name':a222_0x2b5b77(0x1a3),'meowKey':a222_0x2b5b77(0x1a3),'type':a222_0x2b5b77(0x1a2),'description':'Dataset\x20code','hidden':!![]},{'name':'all','meowKey':a222_0x2b5b77(0x18a),'type':a222_0x2b5b77(0x167),'description':a222_0x2b5b77(0x184),'hidden':!![]},{'name':'enable-bff-save','meowKey':a222_0x2b5b77(0x188),'type':a222_0x2b5b77(0x167),'description':'Enable\x20Backend\x20Function\x20save','hidden':!![]},{'name':'id','meowKey':'id','type':a222_0x2b5b77(0x1a2),'description':a222_0x2b5b77(0x14d),'hidden':!![]},{'name':a222_0x2b5b77(0x183),'meowKey':a222_0x2b5b77(0x183),'type':a222_0x2b5b77(0x1a2),'description':a222_0x2b5b77(0x166),'hidden':!![]},{'name':'file','meowKey':a222_0x2b5b77(0x190),'type':a222_0x2b5b77(0x1a2),'description':a222_0x2b5b77(0x19e),'hidden':!![]},{'name':a222_0x2b5b77(0x1d2),'meowKey':a222_0x2b5b77(0x1d2),'type':'string','description':a222_0x2b5b77(0x19f),'hidden':!![]},{'name':a222_0x2b5b77(0x155),'meowKey':a222_0x2b5b77(0x1d3),'type':a222_0x2b5b77(0x1a2),'description':a222_0x2b5b77(0x169),'hidden':!![]},{'name':a222_0x2b5b77(0x151),'meowKey':a222_0x2b5b77(0x151),'type':'string','description':a222_0x2b5b77(0x169),'hidden':!![]},{'name':'db-id','meowKey':a222_0x2b5b77(0x18f),'type':a222_0x2b5b77(0x1a2),'description':a222_0x2b5b77(0x178),'hidden':!![]},{'name':a222_0x2b5b77(0x157),'meowKey':'dbid','type':a222_0x2b5b77(0x1a2),'description':a222_0x2b5b77(0x178),'hidden':!![]},{'name':a222_0x2b5b77(0x1c3),'meowKey':'description','type':a222_0x2b5b77(0x1a2),'description':a222_0x2b5b77(0x152),'hidden':!![]},{'name':'description-file','meowKey':a222_0x2b5b77(0x1a7),'type':'string','description':a222_0x2b5b77(0x1c7),'hidden':!![]},{'name':'page','meowKey':'page','type':a222_0x2b5b77(0x1a2),'description':a222_0x2b5b77(0x1cc),'hidden':!![]},{'name':a222_0x2b5b77(0x1a1),'meowKey':a222_0x2b5b77(0x1a1),'type':a222_0x2b5b77(0x1a2),'description':a222_0x2b5b77(0x1b1),'hidden':!![]},{'name':a222_0x2b5b77(0x16c),'meowKey':a222_0x2b5b77(0x16c),'type':a222_0x2b5b77(0x1a2),'description':a222_0x2b5b77(0x164),'hidden':!![]},{'name':a222_0x2b5b77(0x1ae),'meowKey':a222_0x2b5b77(0x1ae),'type':'string','description':a222_0x2b5b77(0x1d1),'hidden':!![]},{'name':a222_0x2b5b77(0x15a),'meowKey':a222_0x2b5b77(0x15a),'type':a222_0x2b5b77(0x1a2),'description':a222_0x2b5b77(0x186),'hidden':!![]},{'name':a222_0x2b5b77(0x160),'meowKey':a222_0x2b5b77(0x160),'type':a222_0x2b5b77(0x1a2),'description':a222_0x2b5b77(0x14e),'hidden':!![]},{'name':a222_0x2b5b77(0x1bc),'meowKey':a222_0x2b5b77(0x1bc),'type':'string','description':'Operation\x20type','hidden':!![]},{'name':a222_0x2b5b77(0x17f),'meowKey':a222_0x2b5b77(0x17f),'type':a222_0x2b5b77(0x1a2),'description':'Target\x20path','hidden':!![]},{'name':a222_0x2b5b77(0x17d),'meowKey':a222_0x2b5b77(0x195),'type':a222_0x2b5b77(0x167),'description':a222_0x2b5b77(0x1c2),'hidden':!![]},{'name':a222_0x2b5b77(0x168),'meowKey':a222_0x2b5b77(0x168),'type':a222_0x2b5b77(0x1a2),'description':a222_0x2b5b77(0x199),'hidden':!![]},{'name':a222_0x2b5b77(0x196),'meowKey':a222_0x2b5b77(0x196),'type':'string','description':a222_0x2b5b77(0x15b),'hidden':!![]},{'name':a222_0x2b5b77(0x1b0),'meowKey':a222_0x2b5b77(0x1b0),'type':'string','description':a222_0x2b5b77(0x156),'hidden':!![]},{'name':'stdin','meowKey':'stdin','type':a222_0x2b5b77(0x167),'description':'Read\x20value\x20from\x20stdin','hidden':!![]},{'name':a222_0x2b5b77(0x15d),'meowKey':a222_0x2b5b77(0x189),'type':a222_0x2b5b77(0x1a2),'description':a222_0x2b5b77(0x1b8),'hidden':!![]},{'name':a222_0x2b5b77(0x1cf),'meowKey':a222_0x2b5b77(0x1cf),'type':a222_0x2b5b77(0x167),'description':a222_0x2b5b77(0x1aa),'hidden':!![]},{'name':'force','meowKey':'force','type':a222_0x2b5b77(0x167),'description':a222_0x2b5b77(0x1d8),'hidden':!![]},{'name':'confirm','meowKey':a222_0x2b5b77(0x1c5),'type':a222_0x2b5b77(0x167),'description':a222_0x2b5b77(0x1bf),'hidden':!![]},{'name':a222_0x2b5b77(0x1ad),'meowKey':a222_0x2b5b77(0x1ad),'type':a222_0x2b5b77(0x167),'description':a222_0x2b5b77(0x1ca),'hidden':!![]},{'name':a222_0x2b5b77(0x185),'meowKey':a222_0x2b5b77(0x185),'type':a222_0x2b5b77(0x167),'description':'Verbose\x20output','hidden':!![]},{'name':a222_0x2b5b77(0x1d7),'meowKey':a222_0x2b5b77(0x163),'type':a222_0x2b5b77(0x1a2),'description':a222_0x2b5b77(0x172),'hidden':!![]},{'name':a222_0x2b5b77(0x16e),'meowKey':a222_0x2b5b77(0x16e),'type':a222_0x2b5b77(0x1a2),'description':a222_0x2b5b77(0x182),'hidden':!![]},{'name':a222_0x2b5b77(0x18d),'meowKey':a222_0x2b5b77(0x198),'type':a222_0x2b5b77(0x1a2),'description':a222_0x2b5b77(0x161),'hidden':!![]},{'name':a222_0x2b5b77(0x171),'meowKey':a222_0x2b5b77(0x171),'type':a222_0x2b5b77(0x1a2),'description':a222_0x2b5b77(0x1db),'hidden':!![]},{'name':a222_0x2b5b77(0x175),'meowKey':a222_0x2b5b77(0x1b2),'type':a222_0x2b5b77(0x1a2),'description':a222_0x2b5b77(0x1a4),'hidden':!![]},{'name':'expect-path','meowKey':a222_0x2b5b77(0x1bd),'type':a222_0x2b5b77(0x1a2),'description':a222_0x2b5b77(0x154),'hidden':!![]},{'name':a222_0x2b5b77(0x1a0),'meowKey':a222_0x2b5b77(0x18c),'type':a222_0x2b5b77(0x1a2),'description':a222_0x2b5b77(0x180),'hidden':!![]},{'name':a222_0x2b5b77(0x14c),'meowKey':a222_0x2b5b77(0x1b3),'type':'string','description':'Comma-separated\x20menu\x20IDs','hidden':!![]},{'name':'task-id','meowKey':a222_0x2b5b77(0x174),'type':a222_0x2b5b77(0x1a2),'description':a222_0x2b5b77(0x18b),'hidden':!![]},{'name':a222_0x2b5b77(0x193),'meowKey':a222_0x2b5b77(0x150),'type':'string','description':a222_0x2b5b77(0x197),'hidden':!![]},{'name':a222_0x2b5b77(0x176),'meowKey':a222_0x2b5b77(0x194),'type':a222_0x2b5b77(0x1a2),'description':'Function\x20node','hidden':!![]},{'name':a222_0x2b5b77(0x1c0),'meowKey':a222_0x2b5b77(0x17b),'type':a222_0x2b5b77(0x1a2),'description':a222_0x2b5b77(0x16d),'hidden':!![]},{'name':a222_0x2b5b77(0x14f),'meowKey':a222_0x2b5b77(0x14f),'type':a222_0x2b5b77(0x167),'description':a222_0x2b5b77(0x1a5),'hidden':!![]},{'name':a222_0x2b5b77(0x173),'meowKey':a222_0x2b5b77(0x173),'type':a222_0x2b5b77(0x1a2),'description':a222_0x2b5b77(0x1d9),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a222_0x2b5b77(0x1d6),a222_0x2b5b77(0x181),a222_0x2b5b77(0x19d),a222_0x2b5b77(0x1c6),'jq',a222_0x2b5b77(0x1c8),a222_0x2b5b77(0x16f),a222_0x2b5b77(0x1ac),'ci']);export function buildMeowFlags(){const _0x2d1aee=a222_0x2b5b77;return Object[_0x2d1aee(0x1b4)](GLOBAL_FLAGS['map'](_0x44f816=>[_0x44f816[_0x2d1aee(0x19a)],{'type':_0x44f816[_0x2d1aee(0x183)]}]));}function a222_0x5a9e(){const _0x16953c=['non-interactive','remote','code','<expr>','tags','Page\x20size','expectParentId','menuIds','fromEntries','4151262luOkAw','Output\x20format','JSON\x20params','Read\x20value\x20from\x20environment\x20variable','Title','topk','output','operation','expectPath','Search\x20query','Confirm\x20destructive\x20action','target-env','App\x20locale\x20(workspace\x20pass-through;\x20not\x20CLI\x20language)','Skip\x20import\x20generation','description','1335174gQhJzr','confirm','format','Description\x20file','dry-run','name','Use\x20remote','Rabetbase\x20CLI','Page\x20number','Output\x20path','8978364bLTGeh','reveal','114819eWWnJu','Code\x20filter','sqlcode','sqlName','Use\x20global\x20config\x20scope','json\x20|\x20pretty\x20|\x20compress','appcode','expected-count','Force\x20overwrite','Comma-separated\x20metadata\x20codes','clear','Menu\x20sort\x20value','dryRun','menu-ids','Record\x20ID','Schemas','direct','operationType','sqlname','Description','<name>','Expected\x20current\x20menu\x20path','sql-name','Tags','dbid','5042765TTsrMw','Maximum\x20search\x20hits','sql','Config\x20value','help','from-env','40SUtdoj','locale','schemas','Parent\x20menu\x20id','Override\x20appcode','expectedCount','Keyword\x20filter','global','Type\x20filter','boolean','key','SQL\x20name','Alias\x20for\x20--non-interactive','Use\x20project\x20config\x20scope','keyword','Target\x20connection\x20environment','label','yes','Environment','sort','Expected\x20affected\x20count','codes','taskId','expect-parent-id','function-node','@lovrabet/rabetbase-cli','DB\x20ID','Clear','298893sJcGFS','targetEnv','query','skip-imports','Name','target','Expected\x20current\x20child\x20count','app','Menu\x20label','type','Apply\x20to\x20all','verbose','SQL\x20string','title','enableBffSave','fromEnv','all','Asynchronous\x20task\x20ID','expectedChildrenCount','parent-id','Force\x20non-interactive\x20mode\x20(CI)','dbId','file','params','nonInteractive','operation-type','functionNode','skipImports','value','Operation\x20type','parentId','Config\x20key','meowKey','project','4QzTbfc','env','File\x20path','SQL\x20code','expected-children-count','pagesize','string','datasetcode','Expected\x20current\x20parent\x20menu\x20id','Use\x20the\x20base\x20database\x20connection','Show\x20help','descriptionFile','<code>','532678dxRiVP','Reveal\x20sensitive\x20value','Preview\x20operation\x20without\x20executing'];a222_0x5a9e=function(){return _0x16953c;};return a222_0x5a9e();}
@@ -1 +1 @@
1
- const a223_0x2a2aa0=a223_0x4ed0;(function(_0x1b6d89,_0x5c936c){const _0x23dc9e=a223_0x4ed0,_0x5911fe=_0x1b6d89();while(!![]){try{const _0x11687c=parseInt(_0x23dc9e(0x110))/0x1*(-parseInt(_0x23dc9e(0x11a))/0x2)+-parseInt(_0x23dc9e(0x114))/0x3*(parseInt(_0x23dc9e(0x112))/0x4)+parseInt(_0x23dc9e(0x119))/0x5+parseInt(_0x23dc9e(0x117))/0x6+-parseInt(_0x23dc9e(0x111))/0x7*(parseInt(_0x23dc9e(0x118))/0x8)+-parseInt(_0x23dc9e(0x10f))/0x9*(-parseInt(_0x23dc9e(0x11b))/0xa)+parseInt(_0x23dc9e(0x10e))/0xb;if(_0x11687c===_0x5c936c)break;else _0x5911fe['push'](_0x5911fe['shift']());}catch(_0x11cbc7){_0x5911fe['push'](_0x5911fe['shift']());}}}(a223_0x3c46,0x59af7));function a223_0x4ed0(_0x108e2d,_0x457d96){_0x108e2d=_0x108e2d-0x10e;const _0x3c4613=a223_0x3c46();let _0x4ed069=_0x3c4613[_0x108e2d];return _0x4ed069;}function a223_0x3c46(){const _0x206005=['9784786ZCaabG','9YXViAh','1WvcLyR','4274627dWnRhn','796GnWiEH','production','8571aJchTZ','compress','en-US','1149360zfUpTb','8gSqDgd','2719880DsNJNF','1334734uLAZQF','5888600cxkgNd'];a223_0x3c46=function(){return _0x206005;};return a223_0x3c46();}import{DEFAULT_API_DIR}from'../constant/paths.js';export const DEFAULT_CONFIG_VALUES={'env':a223_0x2a2aa0(0x113),'format':a223_0x2a2aa0(0x115),'locale':a223_0x2a2aa0(0x116),'riskLevel':'write','apiDir':DEFAULT_API_DIR};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a223_0x2a2aa0(0x115);
1
+ const a223_0x291998=a223_0x27e9;function a223_0x27e9(_0x563703,_0x5d514e){_0x563703=_0x563703-0x169;const _0x57d4cd=a223_0x57d4();let _0x27e98b=_0x57d4cd[_0x563703];return _0x27e98b;}(function(_0xa16e6b,_0x5d7bc4){const _0x357870=a223_0x27e9,_0x222070=_0xa16e6b();while(!![]){try{const _0x4fce23=-parseInt(_0x357870(0x176))/0x1+-parseInt(_0x357870(0x173))/0x2*(parseInt(_0x357870(0x16f))/0x3)+-parseInt(_0x357870(0x172))/0x4*(parseInt(_0x357870(0x16a))/0x5)+-parseInt(_0x357870(0x169))/0x6+parseInt(_0x357870(0x16e))/0x7*(parseInt(_0x357870(0x16c))/0x8)+parseInt(_0x357870(0x177))/0x9*(-parseInt(_0x357870(0x170))/0xa)+parseInt(_0x357870(0x171))/0xb;if(_0x4fce23===_0x5d7bc4)break;else _0x222070['push'](_0x222070['shift']());}catch(_0x1b69e1){_0x222070['push'](_0x222070['shift']());}}}(a223_0x57d4,0x4597d));import{DEFAULT_API_DIR}from'../constant/paths.js';export const DEFAULT_CONFIG_VALUES={'env':a223_0x291998(0x16d),'format':a223_0x291998(0x174),'locale':a223_0x291998(0x175),'riskLevel':a223_0x291998(0x16b),'apiDir':DEFAULT_API_DIR};function a223_0x57d4(){const _0x11ebd6=['8iiguvK','production','892885icxoUL','1044hDVJxk','10FAKsfW','10580713gdXgeM','178348GtXNFa','454SLsPEa','compress','en-US','249728OTHooL','271971zxNqJL','2405130OVGLeX','5YDpuld','write'];a223_0x57d4=function(){return _0x11ebd6;};return a223_0x57d4();}export const DEFAULT_COMMAND_OUTPUT_FORMAT=a223_0x291998(0x174);
@@ -1 +1 @@
1
- const a224_0x49b7e7=a224_0x1bd0;(function(_0x360e0b,_0x5874fa){const _0x5c49c8=a224_0x1bd0,_0x59994c=_0x360e0b();while(!![]){try{const _0xd20c1a=-parseInt(_0x5c49c8(0x73))/0x1+parseInt(_0x5c49c8(0x70))/0x2*(parseInt(_0x5c49c8(0x7b))/0x3)+parseInt(_0x5c49c8(0x77))/0x4*(parseInt(_0x5c49c8(0x74))/0x5)+parseInt(_0x5c49c8(0x6b))/0x6*(-parseInt(_0x5c49c8(0x7a))/0x7)+parseInt(_0x5c49c8(0x6a))/0x8+parseInt(_0x5c49c8(0x86))/0x9*(-parseInt(_0x5c49c8(0x7d))/0xa)+-parseInt(_0x5c49c8(0x81))/0xb;if(_0xd20c1a===_0x5874fa)break;else _0x59994c['push'](_0x59994c['shift']());}catch(_0xad7a95){_0x59994c['push'](_0x59994c['shift']());}}}(a224_0xfe80,0x77285));function a224_0xfe80(){const _0x2a6286=['93TlaJWc','cdn','11290nFybdv','kbDomain','userDomain','runtime','5875683qOQWdb','hostname','localDomain','user','serviceDomains','207wtWkTT','origin','daily','apiDomain','runtimeDomain','2486640RecQXk','42EqSjQP','skillDomain','api','trim','/web-app/app/','62294rGiuvU','app','certificateDomain','306780vflDdS','3065QjsoJz','appDomain','/app/','756HpPOfA','production','skill','37275OMDqbc'];a224_0xfe80=function(){return _0x2a6286;};return a224_0xfe80();}import{getEnv,isProduction}from'../constant/env.js';import{DEFAULT_LOVRABET_REGION}from'../constant/region.js';import{getOfficialRoutingCdn,getOfficialRoutingProfile}from'../constant/routing-profile.js';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillDomain,customKbDomain,customAppDomain,customLocalDomain,customCertificateDomain,customCdn,activeRegion=DEFAULT_LOVRABET_REGION;function getActiveRegionDomains(){const _0x359487=a224_0x1bd0,_0x5ed6a6=getOfficialRoutingProfile(activeRegion);return isProduction(getEnv())?_0x5ed6a6['serviceDomains'][_0x359487(0x78)]:_0x5ed6a6[_0x359487(0x85)][_0x359487(0x67)]??_0x5ed6a6[_0x359487(0x85)][_0x359487(0x78)];}export function initDomains(_0x4554bb){const _0x485188=a224_0x1bd0;customApiDomain=_0x4554bb?.[_0x485188(0x68)],customUserDomain=_0x4554bb?.[_0x485188(0x7f)],customRuntimeDomain=_0x4554bb?.[_0x485188(0x69)],customSkillDomain=_0x4554bb?.[_0x485188(0x6c)],customKbDomain=_0x4554bb?.[_0x485188(0x7e)],customAppDomain=_0x4554bb?.[_0x485188(0x75)],customLocalDomain=_0x4554bb?.[_0x485188(0x83)],customCertificateDomain=_0x4554bb?.[_0x485188(0x72)],customCdn=_0x4554bb?.[_0x485188(0x7c)],activeRegion=_0x4554bb?.['region']??DEFAULT_LOVRABET_REGION;}export const getUserDomain=()=>customUserDomain||getActiveRegionDomains()[a224_0x49b7e7(0x84)];export const getApiDomain=()=>customApiDomain||getActiveRegionDomains()[a224_0x49b7e7(0x6d)];export const getRuntimeDomain=()=>customRuntimeDomain||getActiveRegionDomains()['runtime'];export const getSkillDomain=()=>customSkillDomain||getActiveRegionDomains()[a224_0x49b7e7(0x79)];export const getKbDomain=()=>customKbDomain||customApiDomain||getActiveRegionDomains()['kb'];export const getAppDomain=()=>customAppDomain||getActiveRegionDomains()[a224_0x49b7e7(0x71)];export const getActiveRegion=()=>activeRegion;function a224_0x1bd0(_0x20120e,_0x2c8a6e){_0x20120e=_0x20120e-0x67;const _0xfe8012=a224_0xfe80();let _0x1bd04f=_0xfe8012[_0x20120e];return _0x1bd04f;}export const getLocalDomain=()=>customLocalDomain;export const getCertificateDomain=()=>customCertificateDomain;export const getActiveCdn=()=>customCdn||getOfficialRoutingCdn(activeRegion);export function isIndependentDeployment(){return!!(customApiDomain||customUserDomain||customRuntimeDomain||customSkillDomain||customKbDomain||customAppDomain||customLocalDomain||customCertificateDomain);}export function getSdkClientRoutingConfig(){const _0x28b886=a224_0x49b7e7;if(customRuntimeDomain&&customRuntimeDomain!==getActiveRegionDomains()[_0x28b886(0x80)])return{'runtimeDomain':customRuntimeDomain};if(activeRegion!==DEFAULT_LOVRABET_REGION)return{'runtimeDomain':getRuntimeDomain()};return{};}export const getAppBaseUrl=_0x2110b1=>{const _0x4133b4=a224_0x49b7e7,_0x46e7a0=encodeURIComponent(_0x2110b1[_0x4133b4(0x6e)]());return isProduction(getEnv())?getAppDomain()+_0x4133b4(0x76)+_0x46e7a0:getAppDomain()+_0x4133b4(0x6f)+_0x46e7a0;};export const getPublishedAppDomain=_0x74684d=>{const _0x237cec=a224_0x49b7e7,_0x176dc5=new URL(getAppDomain());return _0x176dc5[_0x237cec(0x82)]=_0x74684d['trim']()+'.'+_0x176dc5[_0x237cec(0x82)],_0x176dc5[_0x237cec(0x87)];};
1
+ function a224_0x5dba(_0x19543b,_0x27e9ba){_0x19543b=_0x19543b-0x139;const _0x907872=a224_0x9078();let _0x5dbacd=_0x907872[_0x19543b];return _0x5dbacd;}const a224_0x5494c2=a224_0x5dba;(function(_0x1a429d,_0x275ebd){const _0xd65451=a224_0x5dba,_0x5ebfdc=_0x1a429d();while(!![]){try{const _0x1d822a=-parseInt(_0xd65451(0x13b))/0x1*(parseInt(_0xd65451(0x14f))/0x2)+-parseInt(_0xd65451(0x154))/0x3+-parseInt(_0xd65451(0x13e))/0x4*(-parseInt(_0xd65451(0x13a))/0x5)+-parseInt(_0xd65451(0x14d))/0x6*(parseInt(_0xd65451(0x146))/0x7)+parseInt(_0xd65451(0x14b))/0x8*(-parseInt(_0xd65451(0x150))/0x9)+-parseInt(_0xd65451(0x143))/0xa+parseInt(_0xd65451(0x148))/0xb*(parseInt(_0xd65451(0x149))/0xc);if(_0x1d822a===_0x275ebd)break;else _0x5ebfdc['push'](_0x5ebfdc['shift']());}catch(_0x362570){_0x5ebfdc['push'](_0x5ebfdc['shift']());}}}(a224_0x9078,0x59146));import{getEnv,isProduction}from'../constant/env.js';import{DEFAULT_LOVRABET_REGION}from'../constant/region.js';import{getOfficialRoutingCdn,getOfficialRoutingProfile}from'../constant/routing-profile.js';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillDomain,customKbDomain,customAppDomain,customLocalDomain,customCertificateDomain,customCdn,activeRegion=DEFAULT_LOVRABET_REGION;function getActiveRegionDomains(){const _0x4f93f0=a224_0x5dba,_0x15864d=getOfficialRoutingProfile(activeRegion);return isProduction(getEnv())?_0x15864d[_0x4f93f0(0x141)]['production']:_0x15864d[_0x4f93f0(0x141)][_0x4f93f0(0x153)]??_0x15864d[_0x4f93f0(0x141)][_0x4f93f0(0x14a)];}export function initDomains(_0x13d3ab){const _0x3f8886=a224_0x5dba;customApiDomain=_0x13d3ab?.[_0x3f8886(0x145)],customUserDomain=_0x13d3ab?.[_0x3f8886(0x139)],customRuntimeDomain=_0x13d3ab?.['runtimeDomain'],customSkillDomain=_0x13d3ab?.[_0x3f8886(0x151)],customKbDomain=_0x13d3ab?.[_0x3f8886(0x13f)],customAppDomain=_0x13d3ab?.[_0x3f8886(0x14c)],customLocalDomain=_0x13d3ab?.['localDomain'],customCertificateDomain=_0x13d3ab?.[_0x3f8886(0x13c)],customCdn=_0x13d3ab?.[_0x3f8886(0x152)],activeRegion=_0x13d3ab?.['region']??DEFAULT_LOVRABET_REGION;}export const getUserDomain=()=>customUserDomain||getActiveRegionDomains()['user'];export const getApiDomain=()=>customApiDomain||getActiveRegionDomains()[a224_0x5494c2(0x140)];export const getRuntimeDomain=()=>customRuntimeDomain||getActiveRegionDomains()[a224_0x5494c2(0x13d)];export const getSkillDomain=()=>customSkillDomain||getActiveRegionDomains()['skill'];export const getKbDomain=()=>customKbDomain||customApiDomain||getActiveRegionDomains()['kb'];export const getAppDomain=()=>customAppDomain||getActiveRegionDomains()[a224_0x5494c2(0x144)];export const getActiveRegion=()=>activeRegion;function a224_0x9078(){const _0x4efc56=['107396DXKbzf','kbDomain','api','serviceDomains','/app/','431400eJcQHw','app','apiDomain','14MgEtsg','trim','11psSwKf','20133924ZJjPok','production','24KrYkOb','appDomain','781656uxpTeY','/web-app/app/','3644ODTHiT','1090017KgyfYf','skillDomain','cdn','daily','210216fjAUdb','userDomain','20WyzGpP','375gVVNOW','certificateDomain','runtime'];a224_0x9078=function(){return _0x4efc56;};return a224_0x9078();}export const getLocalDomain=()=>customLocalDomain;export const getCertificateDomain=()=>customCertificateDomain;export const getActiveCdn=()=>customCdn||getOfficialRoutingCdn(activeRegion);export function isIndependentDeployment(){return!!(customApiDomain||customUserDomain||customRuntimeDomain||customSkillDomain||customKbDomain||customAppDomain||customLocalDomain||customCertificateDomain);}export function getSdkClientRoutingConfig(){const _0x3a65f6=a224_0x5494c2;if(customRuntimeDomain&&customRuntimeDomain!==getActiveRegionDomains()[_0x3a65f6(0x13d)])return{'runtimeDomain':customRuntimeDomain};if(activeRegion!==DEFAULT_LOVRABET_REGION)return{'runtimeDomain':getRuntimeDomain()};return{};}export const getAppBaseUrl=_0x808385=>{const _0xf2482a=a224_0x5494c2,_0x3007ac=encodeURIComponent(_0x808385[_0xf2482a(0x147)]());return isProduction(getEnv())?getAppDomain()+_0xf2482a(0x142)+_0x3007ac:getAppDomain()+_0xf2482a(0x14e)+_0x3007ac;};export const getPublishedAppDomain=_0x41769d=>{const _0x342c29=a224_0x5494c2,_0x79a9c8=new URL(getAppDomain());return _0x79a9c8['hostname']=_0x41769d[_0x342c29(0x147)]()+'.'+_0x79a9c8['hostname'],_0x79a9c8['origin'];};
@@ -1 +1 @@
1
- const a225_0x560cc3=a225_0x40a1;function a225_0x40a1(_0x31e217,_0xc66f5b){_0x31e217=_0x31e217-0x1de;const _0x332f45=a225_0x332f();let _0x40a1c3=_0x332f45[_0x31e217];return _0x40a1c3;}(function(_0x12dd57,_0x5b76b0){const _0x463315=a225_0x40a1,_0x29013c=_0x12dd57();while(!![]){try{const _0x21f94f=parseInt(_0x463315(0x1ea))/0x1+parseInt(_0x463315(0x1e1))/0x2+-parseInt(_0x463315(0x1eb))/0x3*(-parseInt(_0x463315(0x1de))/0x4)+parseInt(_0x463315(0x1e0))/0x5+-parseInt(_0x463315(0x1e4))/0x6*(parseInt(_0x463315(0x1e5))/0x7)+parseInt(_0x463315(0x1e7))/0x8+-parseInt(_0x463315(0x1df))/0x9*(parseInt(_0x463315(0x1e2))/0xa);if(_0x21f94f===_0x5b76b0)break;else _0x29013c['push'](_0x29013c['shift']());}catch(_0x5c214f){_0x29013c['push'](_0x29013c['shift']());}}}(a225_0x332f,0x9c805));function a225_0x332f(){const _0x40c3ff=['online','development','485498JJljlP','76572DlqnIq','36rzwaPO','27Vllrsh','4278590Kwkqbc','1438566GHmgMt','6604680ZAGUfk','dev','4036254IcopLb','7YzxYXo','daily','8039416CydxnQ'];a225_0x332f=function(){return _0x40c3ff;};return a225_0x332f();}export const RABETBASE_ENV_VALUES=['production',a225_0x560cc3(0x1e6)];export function normalizeEnv(_0x1b8e02){const _0x13adde=a225_0x560cc3;return _0x1b8e02===_0x13adde(0x1e8)?'production':_0x1b8e02;}export function isProduction(_0x306b65){return normalizeEnv(_0x306b65)==='production';}export function isDaily(_0x7ebf32){const _0x507d35=a225_0x560cc3;return normalizeEnv(_0x7ebf32)===_0x507d35(0x1e6);}export function isDev(_0x345837){const _0x31307f=a225_0x560cc3,_0x9cfca4=normalizeEnv(_0x345837);return _0x9cfca4===_0x31307f(0x1e9)||_0x9cfca4===_0x31307f(0x1e3);}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||'production');export function getEnv(){return env;}export function initEnv(_0xff6315){env=normalizeEnv(_0xff6315);}
1
+ const a225_0x5008d0=a225_0xd11b;function a225_0x795b(){const _0x582cfa=['3941932NEGlYP','61073748ughbjP','7028135DrIxty','3832hzeCEb','8519roiUAF','3WhMlpT','daily','9186222FYPWXc','1691965eBhbSN','dev','1620162ftdwmd','production','online','development'];a225_0x795b=function(){return _0x582cfa;};return a225_0x795b();}(function(_0x8b78c7,_0x354589){const _0x3f2b16=a225_0xd11b,_0xad26e=_0x8b78c7();while(!![]){try{const _0x5a784b=-parseInt(_0x3f2b16(0x134))/0x1+-parseInt(_0x3f2b16(0x136))/0x2+parseInt(_0x3f2b16(0x131))/0x3*(-parseInt(_0x3f2b16(0x12c))/0x4)+-parseInt(_0x3f2b16(0x12e))/0x5+-parseInt(_0x3f2b16(0x133))/0x6+parseInt(_0x3f2b16(0x130))/0x7*(parseInt(_0x3f2b16(0x12f))/0x8)+parseInt(_0x3f2b16(0x12d))/0x9;if(_0x5a784b===_0x354589)break;else _0xad26e['push'](_0xad26e['shift']());}catch(_0x172e6d){_0xad26e['push'](_0xad26e['shift']());}}}(a225_0x795b,0xe6a52));export const RABETBASE_ENV_VALUES=[a225_0x5008d0(0x137),a225_0x5008d0(0x132)];export function normalizeEnv(_0x563e3f){const _0x171c8e=a225_0x5008d0;return _0x563e3f===_0x171c8e(0x138)?_0x171c8e(0x137):_0x563e3f;}export function isProduction(_0x1399e0){return normalizeEnv(_0x1399e0)==='production';}function a225_0xd11b(_0x7516ea,_0x48cab4){_0x7516ea=_0x7516ea-0x12c;const _0x795b58=a225_0x795b();let _0xd11b4d=_0x795b58[_0x7516ea];return _0xd11b4d;}export function isDaily(_0x5258e4){return normalizeEnv(_0x5258e4)==='daily';}export function isDev(_0x193cb3){const _0x3fe6cd=a225_0x5008d0,_0x376184=normalizeEnv(_0x193cb3);return _0x376184===_0x3fe6cd(0x139)||_0x376184===_0x3fe6cd(0x135);}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||a225_0x5008d0(0x137));export function getEnv(){return env;}export function initEnv(_0x2539ad){env=normalizeEnv(_0x2539ad);}
@@ -1 +1 @@
1
- const a226_0x43bd0a=a226_0x3794;function a226_0x3794(_0x5a7fa1,_0xa0b7d1){_0x5a7fa1=_0x5a7fa1-0x1b5;const _0x550cbe=a226_0x550c();let _0x379468=_0x550cbe[_0x5a7fa1];return _0x379468;}(function(_0xfba1c8,_0x19ea1a){const _0x53c080=a226_0x3794,_0x5cc41f=_0xfba1c8();while(!![]){try{const _0x923339=-parseInt(_0x53c080(0x1c0))/0x1*(-parseInt(_0x53c080(0x1bf))/0x2)+-parseInt(_0x53c080(0x1b5))/0x3*(parseInt(_0x53c080(0x1b9))/0x4)+parseInt(_0x53c080(0x1ba))/0x5*(-parseInt(_0x53c080(0x1be))/0x6)+parseInt(_0x53c080(0x1c1))/0x7+parseInt(_0x53c080(0x1bb))/0x8+parseInt(_0x53c080(0x1bd))/0x9*(parseInt(_0x53c080(0x1c2))/0xa)+-parseInt(_0x53c080(0x1b7))/0xb*(parseInt(_0x53c080(0x1b6))/0xc);if(_0x923339===_0x19ea1a)break;else _0x5cc41f['push'](_0x5cc41f['shift']());}catch(_0x4651b7){_0x5cc41f['push'](_0x5cc41f['shift']());}}}(a226_0x550c,0xd449a));function a226_0x550c(){const _0x4be654=['pretty','369dZUnWE','6yxENuJ','826466msyKXr','3piGGVP','7818867CSTMWd','248590SrySdg','605541UZbpEd','1141644FbKYNS','242NBMXWv','json','12nvlzHB','5179305yXxwuh','9824376mtigyT'];a226_0x550c=function(){return _0x4be654;};return a226_0x550c();}export const RABETBASE_OUTPUT_FORMAT_VALUES=[a226_0x43bd0a(0x1b8),a226_0x43bd0a(0x1bc),'compress'];
1
+ function a226_0x2997(){const _0x3f4227=['compress','pretty','294360vIqvSf','8NPOuxh','27351sdTEzg','78zHQhci','357574ZbGQKv','2175399RyFVvK','2806065EYeTNT','8770zEsLuX','140306iganVd','859222zpryoF'];a226_0x2997=function(){return _0x3f4227;};return a226_0x2997();}const a226_0x2e11cc=a226_0x1732;function a226_0x1732(_0x2c9c48,_0x4b3a60){_0x2c9c48=_0x2c9c48-0xd8;const _0x29977f=a226_0x2997();let _0x173297=_0x29977f[_0x2c9c48];return _0x173297;}(function(_0x47e4cf,_0x3415ea){const _0x513ca9=a226_0x1732,_0x5ec2d1=_0x47e4cf();while(!![]){try{const _0x4e2bbd=parseInt(_0x513ca9(0xd8))/0x1+-parseInt(_0x513ca9(0xe3))/0x2+-parseInt(_0x513ca9(0xe0))/0x3*(parseInt(_0x513ca9(0xdc))/0x4)+-parseInt(_0x513ca9(0xe1))/0x5+parseInt(_0x513ca9(0xde))/0x6*(-parseInt(_0x513ca9(0xdf))/0x7)+parseInt(_0x513ca9(0xdb))/0x8+parseInt(_0x513ca9(0xdd))/0x9*(parseInt(_0x513ca9(0xe2))/0xa);if(_0x4e2bbd===_0x3415ea)break;else _0x5ec2d1['push'](_0x5ec2d1['shift']());}catch(_0x4cc0e5){_0x5ec2d1['push'](_0x5ec2d1['shift']());}}}(a226_0x2997,0xc71a2));export const RABETBASE_OUTPUT_FORMAT_VALUES=['json',a226_0x2e11cc(0xda),a226_0x2e11cc(0xd9)];
@@ -1 +1 @@
1
- (function(_0x5ac086,_0x39522c){const _0x4b1786=a227_0x5464,_0x1d556d=_0x5ac086();while(!![]){try{const _0x2f9714=parseInt(_0x4b1786(0x163))/0x1*(-parseInt(_0x4b1786(0x161))/0x2)+parseInt(_0x4b1786(0x167))/0x3*(parseInt(_0x4b1786(0x16a))/0x4)+parseInt(_0x4b1786(0x165))/0x5+parseInt(_0x4b1786(0x16b))/0x6+parseInt(_0x4b1786(0x168))/0x7*(-parseInt(_0x4b1786(0x164))/0x8)+parseInt(_0x4b1786(0x162))/0x9*(-parseInt(_0x4b1786(0x169))/0xa)+parseInt(_0x4b1786(0x166))/0xb;if(_0x2f9714===_0x39522c)break;else _0x1d556d['push'](_0x1d556d['shift']());}catch(_0x1cba1e){_0x1d556d['push'](_0x1d556d['shift']());}}}(a227_0x5c27,0xaed75));export const DEFAULT_API_DIR='./src/api';function a227_0x5464(_0x596e83,_0x55e74f){_0x596e83=_0x596e83-0x161;const _0x5c27c1=a227_0x5c27();let _0x5464a5=_0x5c27c1[_0x596e83];return _0x5464a5;}function a227_0x5c27(){const _0x4e2be2=['175127ADLfIr','7597592hhOrIO','6016850pajgZX','1958583bHLcqI','792xofsro','7UrPNyK','79270aLbBJv','5276EncnOy','3474174Zlvaxn','2hGDDPG','531YwXCCP'];a227_0x5c27=function(){return _0x4e2be2;};return a227_0x5c27();}
1
+ function a227_0x39b2(_0x18b3d7,_0xcb9318){_0x18b3d7=_0x18b3d7-0x1e4;const _0x4a51b5=a227_0x4a51();let _0x39b273=_0x4a51b5[_0x18b3d7];return _0x39b273;}function a227_0x4a51(){const _0x2bd8c2=['300712HwpmPf','1077174jjSUuo','6817710yqplNK','7mYnoID','99jIWghi','493348YLmLJb','6psmagz','966652LslOlO','1379510dtGXPA','2032460vIvkiU','./src/api'];a227_0x4a51=function(){return _0x2bd8c2;};return a227_0x4a51();}const a227_0x16147f=a227_0x39b2;(function(_0x4310bf,_0x10e329){const _0x2d3a8f=a227_0x39b2,_0x212c50=_0x4310bf();while(!![]){try{const _0x4a540c=parseInt(_0x2d3a8f(0x1e9))/0x1+-parseInt(_0x2d3a8f(0x1e7))/0x2+-parseInt(_0x2d3a8f(0x1ee))/0x3+parseInt(_0x2d3a8f(0x1eb))/0x4+parseInt(_0x2d3a8f(0x1e4))/0x5*(parseInt(_0x2d3a8f(0x1e8))/0x6)+-parseInt(_0x2d3a8f(0x1e5))/0x7*(-parseInt(_0x2d3a8f(0x1ed))/0x8)+-parseInt(_0x2d3a8f(0x1e6))/0x9*(parseInt(_0x2d3a8f(0x1ea))/0xa);if(_0x4a540c===_0x10e329)break;else _0x212c50['push'](_0x212c50['shift']());}catch(_0x8ec3a7){_0x212c50['push'](_0x212c50['shift']());}}}(a227_0x4a51,0xb7c41));export const DEFAULT_API_DIR=a227_0x16147f(0x1ec);
@@ -1 +1 @@
1
- (function(_0x2dce58,_0x9b7247){const _0x540655=a228_0x4110,_0x2d9652=_0x2dce58();while(!![]){try{const _0x31f67f=parseInt(_0x540655(0x1f3))/0x1+parseInt(_0x540655(0x1f2))/0x2+-parseInt(_0x540655(0x1fc))/0x3*(parseInt(_0x540655(0x1f6))/0x4)+-parseInt(_0x540655(0x1f4))/0x5*(parseInt(_0x540655(0x1f9))/0x6)+parseInt(_0x540655(0x1f7))/0x7+parseInt(_0x540655(0x1f1))/0x8*(-parseInt(_0x540655(0x1fa))/0x9)+-parseInt(_0x540655(0x1fb))/0xa;if(_0x31f67f===_0x9b7247)break;else _0x2d9652['push'](_0x2d9652['shift']());}catch(_0x3f29af){_0x2d9652['push'](_0x2d9652['shift']());}}}(a228_0x5ca8,0x7a63f));import{DEFAULT_REGION,ENABLED_REGION_VALUES,REGION_ALIASES,REGION_VALUES}from'../generated/official-routing.js';export const LOVRABET_REGION_VALUES=REGION_VALUES;function a228_0x5ca8(){const _0x2046b9=['4HqcBPT','6092373qGlrWS','string','594pZNUll','333hwzCqL','714900oCpuiB','133023lmusVW','159992ODbfKf','1243516IVUSUw','795014czxuyM','46970YKMFRn','includes'];a228_0x5ca8=function(){return _0x2046b9;};return a228_0x5ca8();}export const ENABLED_LOVRABET_REGION_VALUES=ENABLED_REGION_VALUES;function a228_0x4110(_0x44ff85,_0x4b4af4){_0x44ff85=_0x44ff85-0x1f1;const _0x5ca89e=a228_0x5ca8();let _0x4110d7=_0x5ca89e[_0x44ff85];return _0x4110d7;}export const DEFAULT_LOVRABET_REGION=DEFAULT_REGION;export function isLovrabetRegion(_0x35481f){const _0x1e840c=a228_0x4110;return typeof _0x35481f===_0x1e840c(0x1f8)&&LOVRABET_REGION_VALUES[_0x1e840c(0x1f5)](_0x35481f);}export function isEnabledLovrabetRegion(_0xfd3dc8){const _0x4b7761=a228_0x4110;return typeof _0xfd3dc8===_0x4b7761(0x1f8)&&ENABLED_LOVRABET_REGION_VALUES[_0x4b7761(0x1f5)](_0xfd3dc8);}export function normalizeLovrabetRegion(_0x583dbf){if(typeof _0x583dbf!=='string')return undefined;const _0x4c7c57=REGION_ALIASES[_0x583dbf]??_0x583dbf;return isLovrabetRegion(_0x4c7c57)?_0x4c7c57:undefined;}export function isInvalidLovrabetRegion(_0x52c955){return _0x52c955!==undefined&&_0x52c955!==null&&_0x52c955!==''&&normalizeLovrabetRegion(_0x52c955)===undefined;}
1
+ (function(_0x34fecf,_0x399c13){const _0x5cf7e7=a228_0xe4a0,_0x49dc75=_0x34fecf();while(!![]){try{const _0x4c6484=parseInt(_0x5cf7e7(0x1ed))/0x1+parseInt(_0x5cf7e7(0x1f7))/0x2*(-parseInt(_0x5cf7e7(0x1f3))/0x3)+parseInt(_0x5cf7e7(0x1f9))/0x4+-parseInt(_0x5cf7e7(0x1f0))/0x5*(-parseInt(_0x5cf7e7(0x1f4))/0x6)+-parseInt(_0x5cf7e7(0x1ee))/0x7*(parseInt(_0x5cf7e7(0x1f2))/0x8)+-parseInt(_0x5cf7e7(0x1ef))/0x9+parseInt(_0x5cf7e7(0x1f6))/0xa*(parseInt(_0x5cf7e7(0x1f8))/0xb);if(_0x4c6484===_0x399c13)break;else _0x49dc75['push'](_0x49dc75['shift']());}catch(_0x512268){_0x49dc75['push'](_0x49dc75['shift']());}}}(a228_0x11fd,0x24172));import{DEFAULT_REGION,ENABLED_REGION_VALUES,REGION_ALIASES,REGION_VALUES}from'../generated/official-routing.js';function a228_0x11fd(){const _0x154f91=['29528NBYIzc','26079upRGeb','1261158DyBrrQ','string','280mHiAMP','28HJEsMQ','68398TGnZdX','312264yBfYaS','135924gyjUdG','196mVVckl','2028699NvhMIV','5BLvJZC','includes'];a228_0x11fd=function(){return _0x154f91;};return a228_0x11fd();}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(_0x4b3cc0){const _0x4a5e4c=a228_0xe4a0;return typeof _0x4b3cc0==='string'&&LOVRABET_REGION_VALUES[_0x4a5e4c(0x1f1)](_0x4b3cc0);}function a228_0xe4a0(_0x46b99f,_0x17c79f){_0x46b99f=_0x46b99f-0x1ed;const _0x11fd99=a228_0x11fd();let _0xe4a0e9=_0x11fd99[_0x46b99f];return _0xe4a0e9;}export function isEnabledLovrabetRegion(_0x441370){const _0x263112=a228_0xe4a0;return typeof _0x441370===_0x263112(0x1f5)&&ENABLED_LOVRABET_REGION_VALUES[_0x263112(0x1f1)](_0x441370);}export function normalizeLovrabetRegion(_0x4a4878){const _0x33bfb9=a228_0xe4a0;if(typeof _0x4a4878!==_0x33bfb9(0x1f5))return undefined;const _0x3cbf11=REGION_ALIASES[_0x4a4878]??_0x4a4878;return isLovrabetRegion(_0x3cbf11)?_0x3cbf11:undefined;}export function isInvalidLovrabetRegion(_0x805157){return _0x805157!==undefined&&_0x805157!==null&&_0x805157!==''&&normalizeLovrabetRegion(_0x805157)===undefined;}
@@ -1 +1 @@
1
- const a229_0x54c82f=a229_0x5980;(function(_0x2b444b,_0x272e40){const _0x4a9f09=a229_0x5980,_0xa7ceaf=_0x2b444b();while(!![]){try{const _0xedb322=-parseInt(_0x4a9f09(0xb7))/0x1+-parseInt(_0x4a9f09(0xba))/0x2*(parseInt(_0x4a9f09(0xb2))/0x3)+parseInt(_0x4a9f09(0xb5))/0x4*(parseInt(_0x4a9f09(0xb8))/0x5)+parseInt(_0x4a9f09(0xb3))/0x6+parseInt(_0x4a9f09(0xbc))/0x7+-parseInt(_0x4a9f09(0xbd))/0x8*(-parseInt(_0x4a9f09(0xb6))/0x9)+parseInt(_0x4a9f09(0xb4))/0xa;if(_0xedb322===_0x272e40)break;else _0xa7ceaf['push'](_0xa7ceaf['shift']());}catch(_0x98dceb){_0xa7ceaf['push'](_0xa7ceaf['shift']());}}}(a229_0x5f4e,0x304a6));function a229_0x5980(_0x3e48f9,_0x1bf5bb){_0x3e48f9=_0x3e48f9-0xb2;const _0x5f4e9d=a229_0x5f4e();let _0x5980f5=_0x5f4e9d[_0x3e48f9];return _0x5980f5;}export const RISK_LEVEL_VALUES=['read',a229_0x54c82f(0xbb),a229_0x54c82f(0xb9)];function a229_0x5f4e(){const _0x3113b6=['1500422RLkoeu','8RNgpjI','240RNXgbt','1093434HLSUDu','564070PyBmyZ','4QUnmaj','315963nWttBD','127236cLUwTm','787875jnwKoT','high-risk-write','8016peCzpq','write'];a229_0x5f4e=function(){return _0x3113b6;};return a229_0x5f4e();}
1
+ const a229_0x3b6002=a229_0x22bc;function a229_0x22bc(_0x39516b,_0x18ba93){_0x39516b=_0x39516b-0xff;const _0x3f5a26=a229_0x3f5a();let _0x22bc42=_0x3f5a26[_0x39516b];return _0x22bc42;}function a229_0x3f5a(){const _0x73623c=['671416gKNsVS','58686yNiXHi','30DPoamE','1769022cbHXzg','8OaqVca','118447HAGhjV','read','30DzZQFD','4TDvbpk','554995CgjCMa','write','52613HiIqpW','99888awzYSV','high-risk-write'];a229_0x3f5a=function(){return _0x73623c;};return a229_0x3f5a();}(function(_0x423e0c,_0x3d4f10){const _0x5639d5=a229_0x22bc,_0x408b43=_0x423e0c();while(!![]){try{const _0x3cd8db=-parseInt(_0x5639d5(0x107))/0x1+-parseInt(_0x5639d5(0x103))/0x2*(-parseInt(_0x5639d5(0x10a))/0x3)+parseInt(_0x5639d5(0x109))/0x4+parseInt(_0x5639d5(0x104))/0x5+parseInt(_0x5639d5(0x102))/0x6*(parseInt(_0x5639d5(0x100))/0x7)+-parseInt(_0x5639d5(0xff))/0x8*(parseInt(_0x5639d5(0x10c))/0x9)+parseInt(_0x5639d5(0x10b))/0xa*(parseInt(_0x5639d5(0x106))/0xb);if(_0x3cd8db===_0x3d4f10)break;else _0x408b43['push'](_0x408b43['shift']());}catch(_0x100f33){_0x408b43['push'](_0x408b43['shift']());}}}(a229_0x3f5a,0x1d6a5));export const RISK_LEVEL_VALUES=[a229_0x3b6002(0x101),a229_0x3b6002(0x105),a229_0x3b6002(0x108)];
@@ -1 +1 @@
1
- (function(_0x4b929a,_0x37621d){const _0x4919c7=a230_0x20eb,_0x4526cf=_0x4b929a();while(!![]){try{const _0x178aba=-parseInt(_0x4919c7(0x134))/0x1*(-parseInt(_0x4919c7(0x132))/0x2)+parseInt(_0x4919c7(0x130))/0x3*(-parseInt(_0x4919c7(0x13b))/0x4)+-parseInt(_0x4919c7(0x133))/0x5+-parseInt(_0x4919c7(0x135))/0x6*(-parseInt(_0x4919c7(0x131))/0x7)+-parseInt(_0x4919c7(0x137))/0x8*(-parseInt(_0x4919c7(0x136))/0x9)+parseInt(_0x4919c7(0x12f))/0xa+-parseInt(_0x4919c7(0x139))/0xb;if(_0x178aba===_0x37621d)break;else _0x4526cf['push'](_0x4526cf['shift']());}catch(_0x47d9b8){_0x4526cf['push'](_0x4526cf['shift']());}}}(a230_0x4637,0x190a4));import{OFFICIAL_ROUTING_PROFILES as a230_0x2fcfa5,ROUTING_CATALOG_DIGEST}from'../generated/official-routing.js';export const OFFICIAL_ROUTING_PROFILES=a230_0x2fcfa5;export{ROUTING_CATALOG_DIGEST};export function getOfficialRoutingProfile(_0x16c189){return OFFICIAL_ROUTING_PROFILES[_0x16c189];}function a230_0x20eb(_0x4c9ed0,_0x58cb41){_0x4c9ed0=_0x4c9ed0-0x12e;const _0x4637d0=a230_0x4637();let _0x20eb4a=_0x4637d0[_0x4c9ed0];return _0x20eb4a;}function a230_0x4637(){const _0x388732=['39ETxEQk','91sdTHyE','2VOvcnk','264500CJIzRk','85783GDrwXh','92898PjPDcc','906786gBayvR','8GcHZxn','Official\x20routing\x20for\x20region\x20\x22','1556786LOEZFb','libraries','46652FOBIZB','lovrabet','cdn','\x22\x20is\x20not\x20ready:\x20Lovrabet\x20CDN\x20Domain\x20is\x20not\x20configured.','607930jGdxcY'];a230_0x4637=function(){return _0x388732;};return a230_0x4637();}export function getOfficialRoutingCdn(_0x33440b){const _0x4c5680=a230_0x20eb,_0x276647=getOfficialRoutingProfile(_0x33440b)[_0x4c5680(0x13d)];if(!_0x276647[_0x4c5680(0x13c)])throw new Error(_0x4c5680(0x138)+_0x33440b+_0x4c5680(0x12e));return{'libraries':_0x276647[_0x4c5680(0x13a)],'lovrabet':_0x276647[_0x4c5680(0x13c)]};}
1
+ (function(_0x279695,_0x102241){const _0x49ce84=a230_0x6faa,_0x6e803b=_0x279695();while(!![]){try{const _0x2f629f=parseInt(_0x49ce84(0x134))/0x1+-parseInt(_0x49ce84(0x13b))/0x2+-parseInt(_0x49ce84(0x13a))/0x3*(-parseInt(_0x49ce84(0x13e))/0x4)+parseInt(_0x49ce84(0x133))/0x5+parseInt(_0x49ce84(0x137))/0x6*(parseInt(_0x49ce84(0x139))/0x7)+parseInt(_0x49ce84(0x140))/0x8*(-parseInt(_0x49ce84(0x132))/0x9)+-parseInt(_0x49ce84(0x13d))/0xa;if(_0x2f629f===_0x102241)break;else _0x6e803b['push'](_0x6e803b['shift']());}catch(_0x11f541){_0x6e803b['push'](_0x6e803b['shift']());}}}(a230_0x4aa2,0x3d449));import{OFFICIAL_ROUTING_PROFILES as a230_0x458f2c,ROUTING_CATALOG_DIGEST}from'../generated/official-routing.js';export const OFFICIAL_ROUTING_PROFILES=a230_0x458f2c;export{ROUTING_CATALOG_DIGEST};function a230_0x6faa(_0x213fde,_0x245565){_0x213fde=_0x213fde-0x132;const _0x4aa274=a230_0x4aa2();let _0x6faa0b=_0x4aa274[_0x213fde];return _0x6faa0b;}function a230_0x4aa2(){const _0x13d8ac=['4AZAiyI','Official\x20routing\x20for\x20region\x20\x22','2346024OHjAod','9UQnIFe','1644700CoqiGx','471052ItyTaD','libraries','lovrabet','12sgrNbK','cdn','1355018lAFcvF','1450905uuAUil','442478KywePd','\x22\x20is\x20not\x20ready:\x20Lovrabet\x20CDN\x20Domain\x20is\x20not\x20configured.','9053300kpzqth'];a230_0x4aa2=function(){return _0x13d8ac;};return a230_0x4aa2();}export function getOfficialRoutingProfile(_0x46200e){return OFFICIAL_ROUTING_PROFILES[_0x46200e];}export function getOfficialRoutingCdn(_0x5f1526){const _0x4576b2=a230_0x6faa,_0x196e3c=getOfficialRoutingProfile(_0x5f1526)[_0x4576b2(0x138)];if(!_0x196e3c[_0x4576b2(0x136)])throw new Error(_0x4576b2(0x13f)+_0x5f1526+_0x4576b2(0x13c));return{'libraries':_0x196e3c[_0x4576b2(0x135)],'lovrabet':_0x196e3c[_0x4576b2(0x136)]};}
@@ -1 +1 @@
1
- (function(_0x2258c2,_0x475bb2){const _0x3f4a74=a231_0x7722,_0x6b0b45=_0x2258c2();while(!![]){try{const _0x45858a=-parseInt(_0x3f4a74(0x188))/0x1+-parseInt(_0x3f4a74(0x185))/0x2+parseInt(_0x3f4a74(0x177))/0x3*(-parseInt(_0x3f4a74(0x17e))/0x4)+-parseInt(_0x3f4a74(0x17d))/0x5*(-parseInt(_0x3f4a74(0x18e))/0x6)+-parseInt(_0x3f4a74(0x190))/0x7+parseInt(_0x3f4a74(0x191))/0x8+-parseInt(_0x3f4a74(0x173))/0x9*(-parseInt(_0x3f4a74(0x180))/0xa);if(_0x45858a===_0x475bb2)break;else _0x6b0b45['push'](_0x6b0b45['shift']());}catch(_0x365a35){_0x6b0b45['push'](_0x6b0b45['shift']());}}}(a231_0x106a,0xa6bcb));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{isDaily,normalizeEnv}from'../constant/env.js';function a231_0x7722(_0x39ca4a,_0x5bf243){_0x39ca4a=_0x39ca4a-0x16e;const _0x106acf=a231_0x106a();let _0x77223d=_0x106acf[_0x39ca4a];return _0x77223d;}import{normalizeLegacyOutputFormat,riskLevelOrder}from'../framework/types.js';function stringConfigValue(_0x4ea176){const _0x77ab07=a231_0x7722;return typeof _0x4ea176===_0x77ab07(0x170)&&_0x4ea176[_0x77ab07(0x184)]()?_0x4ea176[_0x77ab07(0x184)]():undefined;}function a231_0x106a(){const _0xd484f2=['207laUpVt','env','accessKey','format','74061nfFdEU','projectPath','apps','locale','length','FORMAT','4185705PISjVF','84uPMTsI','projectConfig','408530WuTJLn','daily','app','VERBOSE','trim','1560462qxinxW','PAGE_SIZE','riskLevel','184967uocXzf','object','entries','appcode','write','defaultApp','6KTDHMG','keys','1819454uqksjX','5197936ltCTIn','read','ENV','find','APP','globalConfig','high-risk-write','production','pageSize','string','cookie','apiDir'];a231_0x106a=function(){return _0xd484f2;};return a231_0x106a();}function appProfiles(_0x1e9af7){const _0x48c6e6=a231_0x7722;return _0x1e9af7[_0x48c6e6(0x179)]&&typeof _0x1e9af7[_0x48c6e6(0x179)]===_0x48c6e6(0x189)?_0x1e9af7[_0x48c6e6(0x179)]:{};}function resolveDefaultAppName(_0x3c4451){const _0x359f3=a231_0x7722,_0x24ef82=stringConfigValue(_0x3c4451[_0x359f3(0x18d)]);if(_0x24ef82)return _0x24ef82;const _0x998d12=Object[_0x359f3(0x18f)](appProfiles(_0x3c4451));return _0x998d12[_0x359f3(0x17b)]===0x1?_0x998d12[0x0]:undefined;}function resolveTopLevelAppCode(_0x2479ae){const _0x35e0f2=a231_0x7722;return stringConfigValue(_0x2479ae[_0x35e0f2(0x18b)])||stringConfigValue(_0x2479ae[_0x35e0f2(0x182)]);}function normalizeRiskCeiling(_0x35a1cd){const _0x3fa287=a231_0x7722;if(_0x35a1cd===undefined||_0x35a1cd===null)return undefined;if(_0x35a1cd===_0x3fa287(0x192)||_0x35a1cd===_0x3fa287(0x18c)||_0x35a1cd===_0x3fa287(0x197))return _0x35a1cd;return _0x3fa287(0x192);}function resolveRiskCeiling(..._0x5ae63e){let _0x43371f;for(const _0x5deb60 of _0x5ae63e){const _0x2acaf6=normalizeRiskCeiling(_0x5deb60);_0x2acaf6&&(!_0x43371f||riskLevelOrder(_0x2acaf6)<riskLevelOrder(_0x43371f))&&(_0x43371f=_0x2acaf6);}return _0x43371f??DEFAULT_CONFIG_VALUES['riskLevel'];}export function resolveAppConfig({raw:_0x4fa858,flags:_0x54c5cf,layers:_0x3c2d5f,readEnv:_0x541a00}){const _0x4b613e=a231_0x7722,_0x2ee4c9=_0x3c2d5f?.[_0x4b613e(0x17f)]??{},_0x27dbcd=_0x3c2d5f?.[_0x4b613e(0x196)]??{},_0x30bbb5=!!_0x3c2d5f?.[_0x4b613e(0x178)]||Object[_0x4b613e(0x18f)](_0x2ee4c9)['length']>0x0,_0xc776d2=!_0x30bbb5,_0x45a783=_0x30bbb5?resolveDefaultAppName(_0x2ee4c9):undefined,_0x57e62e=_0xc776d2?resolveDefaultAppName(_0x27dbcd):undefined,_0x36d979=stringConfigValue(_0x54c5cf[_0x4b613e(0x182)]),_0x125b66=_0x541a00(_0x4b613e(0x195)),_0x2351f5={};if(_0x4fa858[_0x4b613e(0x179)]&&typeof _0x4fa858[_0x4b613e(0x179)]==='object')for(const [_0x1ec471,_0x335e87]of Object[_0x4b613e(0x18a)](_0x4fa858[_0x4b613e(0x179)])){_0x335e87&&typeof _0x335e87===_0x4b613e(0x189)&&_0x335e87[_0x4b613e(0x18b)]&&(_0x2351f5[_0x1ec471]=_0x335e87);}const _0x2fef09=_0x45a783||_0x57e62e||resolveDefaultAppName(_0x4fa858),_0x53dac9=Object[_0x4b613e(0x18f)](_0x2351f5)[_0x4b613e(0x17b)]>0x0,_0x2a63d1=_0x36d979||_0x45a783||_0x125b66||_0x57e62e||_0x2fef09||undefined,_0xebf62=stringConfigValue(_0x54c5cf[_0x4b613e(0x18b)]),_0x575887=_0xebf62?Object[_0x4b613e(0x18a)](_0x2351f5)[_0x4b613e(0x194)](([,_0x44f798])=>_0x44f798?.[_0x4b613e(0x18b)]===_0xebf62):undefined,_0xd7a55c=_0x575887?.[0x0],_0x46e55b=_0x575887?.[0x1],_0x29b406=_0xebf62?_0xd7a55c:_0x2a63d1;let _0x399942=_0x29b406&&_0x2351f5[_0x29b406]?_0x2351f5[_0x29b406]:undefined;_0xebf62&&_0x46e55b&&(_0x399942=_0x46e55b);const _0x27c379=_0xebf62?_0x46e55b??_0x399942:_0x399942,_0x36ae7a=!_0x36d979&&!_0x45a783&&_0x125b66&&_0x29b406===_0x125b66,_0xfac6a8=_0x36d979||(_0x36ae7a?_0x125b66:undefined)||(_0xebf62?_0xd7a55c:undefined),_0x183622=_0x27c379?.[_0x4b613e(0x18b)],_0x234690=_0x30bbb5?resolveTopLevelAppCode(_0x2ee4c9):undefined,_0x849bd4=_0xc776d2?resolveTopLevelAppCode(_0x27dbcd):undefined,_0x24f7e4=_0x36d979||_0x45a783?_0x183622:undefined,_0x2f7d7b=!_0x36d979&&!_0x45a783?_0x183622:undefined,_0x2991db=_0xebf62||_0x24f7e4||_0x234690||_0x2f7d7b||_0x849bd4||undefined,_0x5350bd=_0x30bbb5?stringConfigValue(_0x2ee4c9['env']):undefined,_0x5ec8a7=_0xc776d2?stringConfigValue(_0x27dbcd[_0x4b613e(0x174)]):undefined,_0x5b9f47=_0x54c5cf['env']||_0x27c379?.[_0x4b613e(0x174)]||_0x5350bd||_0x541a00(_0x4b613e(0x193))||_0x5ec8a7||_0x4fa858[_0x4b613e(0x174)]||DEFAULT_CONFIG_VALUES['env'],_0x3d78bf=_0x27c379?.[_0x4b613e(0x17a)]||_0x4fa858['locale']||DEFAULT_CONFIG_VALUES[_0x4b613e(0x17a)],_0x8c1797=_0x541a00('COOKIE')||_0x27c379?.[_0x4b613e(0x171)]||_0x4fa858['cookie']||undefined,_0x5fd7a8=_0x541a00('ACCESS_KEY')||_0x27c379?.[_0x4b613e(0x175)]||_0x4fa858[_0x4b613e(0x175)]||undefined,_0x30d631=_0x54c5cf['format']||_0x541a00(_0x4b613e(0x17c))||_0x27c379?.[_0x4b613e(0x176)]||_0x4fa858[_0x4b613e(0x176)],_0x5b4eca=normalizeLegacyOutputFormat(_0x30d631),_0x191b5a=_0x541a00(_0x4b613e(0x186))||_0x27c379?.[_0x4b613e(0x16f)]||_0x4fa858['pageSize'],_0x3cc0df=_0x191b5a?Number(_0x191b5a)||undefined:undefined,_0x4e9dd4=_0x3c2d5f?[_0x3c2d5f['globalConfig'][_0x4b613e(0x187)],_0x3c2d5f[_0x4b613e(0x17f)][_0x4b613e(0x187)]]:[_0x4fa858[_0x4b613e(0x187)]],_0x12bab5=resolveRiskCeiling(..._0x4e9dd4,_0x27c379?.['riskLevel']),_0x5523b2=resolveRiskCeiling(_0x12bab5,_0x541a00('RISK_LEVEL')),_0x24875f=_0x541a00(_0x4b613e(0x183)),_0x4f00ce=_0x24875f==='1'||_0x24875f==='true',_0x4e726c=_0x27c379?.[_0x4b613e(0x172)]||_0x4fa858[_0x4b613e(0x172)]||DEFAULT_CONFIG_VALUES[_0x4b613e(0x172)],_0x36b929=isDaily(normalizeEnv(String(_0x5b9f47)))?_0x4b613e(0x181):_0x4b613e(0x16e);return{'appCode':typeof _0x2991db===_0x4b613e(0x170)&&_0x2991db[_0x4b613e(0x184)]()?_0x2991db[_0x4b613e(0x184)]():undefined,'env':_0x36b929,'locale':_0x3d78bf,'cookie':_0x8c1797,'accessKey':_0x5fd7a8,'format':_0x5b4eca,'pageSize':_0x3cc0df,'riskLevel':_0x5523b2,'verbose':_0x4f00ce,'apiDir':_0x4e726c,'apps':_0x2351f5,'defaultApp':_0x2fef09,'currentApp':_0x53dac9?_0x29b406:undefined,'explicitAppName':_0xfac6a8};}
1
+ (function(_0x57c8f8,_0x3e3469){const _0x1993f5=a231_0x484f,_0x38bc09=_0x57c8f8();while(!![]){try{const _0x573a90=parseInt(_0x1993f5(0x1e3))/0x1*(-parseInt(_0x1993f5(0x1e7))/0x2)+parseInt(_0x1993f5(0x1ef))/0x3+-parseInt(_0x1993f5(0x1e0))/0x4*(-parseInt(_0x1993f5(0x1e1))/0x5)+-parseInt(_0x1993f5(0x1ea))/0x6*(parseInt(_0x1993f5(0x1ed))/0x7)+-parseInt(_0x1993f5(0x1f8))/0x8*(-parseInt(_0x1993f5(0x1d1))/0x9)+parseInt(_0x1993f5(0x1e4))/0xa+-parseInt(_0x1993f5(0x1e8))/0xb*(parseInt(_0x1993f5(0x1dc))/0xc);if(_0x573a90===_0x3e3469)break;else _0x38bc09['push'](_0x38bc09['shift']());}catch(_0x544cef){_0x38bc09['push'](_0x38bc09['shift']());}}}(a231_0x4e15,0x48097));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{isDaily,normalizeEnv}from'../constant/env.js';import{normalizeLegacyOutputFormat,riskLevelOrder}from'../framework/types.js';function a231_0x4e15(){const _0x3d0940=['entries','projectPath','length','accessKey','cookie','object','true','apps','riskLevel','48YukehT','env','APP','RISK_LEVEL','4924fTuTsH','445WlSHtX','projectConfig','20008YtWpIv','1647430CgiAqc','keys','appcode','6wgUWad','1322882HmytEM','format','3190560gWZiJz','apiDir','globalConfig','7OFBLrs','COOKIE','1672338iMrjxW','write','find','PAGE_SIZE','daily','VERBOSE','string','read','production','8lWtzDv','FORMAT','ENV','locale','pageSize','trim','4825323UrradY','app'];a231_0x4e15=function(){return _0x3d0940;};return a231_0x4e15();}function a231_0x484f(_0x370ca2,_0x5b368b){_0x370ca2=_0x370ca2-0x1d0;const _0x4e15da=a231_0x4e15();let _0x484fef=_0x4e15da[_0x370ca2];return _0x484fef;}function stringConfigValue(_0x231902){const _0x25037c=a231_0x484f;return typeof _0x231902===_0x25037c(0x1f5)&&_0x231902[_0x25037c(0x1d0)]()?_0x231902['trim']():undefined;}function appProfiles(_0x2a2c7e){const _0x3fafc4=a231_0x484f;return _0x2a2c7e[_0x3fafc4(0x1da)]&&typeof _0x2a2c7e[_0x3fafc4(0x1da)]===_0x3fafc4(0x1d8)?_0x2a2c7e['apps']:{};}function resolveDefaultAppName(_0x1a85e8){const _0x14178f=a231_0x484f,_0x219194=stringConfigValue(_0x1a85e8['defaultApp']);if(_0x219194)return _0x219194;const _0x262c7d=Object[_0x14178f(0x1e5)](appProfiles(_0x1a85e8));return _0x262c7d[_0x14178f(0x1d5)]===0x1?_0x262c7d[0x0]:undefined;}function resolveTopLevelAppCode(_0x2896f2){const _0x54f09e=a231_0x484f;return stringConfigValue(_0x2896f2[_0x54f09e(0x1e6)])||stringConfigValue(_0x2896f2[_0x54f09e(0x1d2)]);}function normalizeRiskCeiling(_0x2e002d){const _0x379da1=a231_0x484f;if(_0x2e002d===undefined||_0x2e002d===null)return undefined;if(_0x2e002d==='read'||_0x2e002d===_0x379da1(0x1f0)||_0x2e002d==='high-risk-write')return _0x2e002d;return _0x379da1(0x1f6);}function resolveRiskCeiling(..._0x5959b1){const _0x5f2871=a231_0x484f;let _0x6707f3;for(const _0x5f0e25 of _0x5959b1){const _0x2cb7=normalizeRiskCeiling(_0x5f0e25);_0x2cb7&&(!_0x6707f3||riskLevelOrder(_0x2cb7)<riskLevelOrder(_0x6707f3))&&(_0x6707f3=_0x2cb7);}return _0x6707f3??DEFAULT_CONFIG_VALUES[_0x5f2871(0x1db)];}export function resolveAppConfig({raw:_0x10a16d,flags:_0x3a9bf0,layers:_0x55a7dd,readEnv:_0x31f854}){const _0x18d1bb=a231_0x484f,_0x4c4efe=_0x55a7dd?.[_0x18d1bb(0x1e2)]??{},_0x473857=_0x55a7dd?.[_0x18d1bb(0x1ec)]??{},_0x154832=!!_0x55a7dd?.[_0x18d1bb(0x1d4)]||Object['keys'](_0x4c4efe)[_0x18d1bb(0x1d5)]>0x0,_0x15bb57=!_0x154832,_0x62af98=_0x154832?resolveDefaultAppName(_0x4c4efe):undefined,_0xd4cf95=_0x15bb57?resolveDefaultAppName(_0x473857):undefined,_0x1783f8=stringConfigValue(_0x3a9bf0['app']),_0x5b926d=_0x31f854(_0x18d1bb(0x1de)),_0x5dbeaa={};if(_0x10a16d[_0x18d1bb(0x1da)]&&typeof _0x10a16d[_0x18d1bb(0x1da)]==='object')for(const [_0x11818b,_0x3bc191]of Object['entries'](_0x10a16d[_0x18d1bb(0x1da)])){_0x3bc191&&typeof _0x3bc191===_0x18d1bb(0x1d8)&&_0x3bc191[_0x18d1bb(0x1e6)]&&(_0x5dbeaa[_0x11818b]=_0x3bc191);}const _0x311a7b=_0x62af98||_0xd4cf95||resolveDefaultAppName(_0x10a16d),_0x135079=Object[_0x18d1bb(0x1e5)](_0x5dbeaa)['length']>0x0,_0x1c4b1f=_0x1783f8||_0x62af98||_0x5b926d||_0xd4cf95||_0x311a7b||undefined,_0x20f325=stringConfigValue(_0x3a9bf0[_0x18d1bb(0x1e6)]),_0x3f8561=_0x20f325?Object[_0x18d1bb(0x1d3)](_0x5dbeaa)[_0x18d1bb(0x1f1)](([,_0x9044b7])=>_0x9044b7?.['appcode']===_0x20f325):undefined,_0x2b3b13=_0x3f8561?.[0x0],_0x3868bf=_0x3f8561?.[0x1],_0x56c0f2=_0x20f325?_0x2b3b13:_0x1c4b1f;let _0x4b4f33=_0x56c0f2&&_0x5dbeaa[_0x56c0f2]?_0x5dbeaa[_0x56c0f2]:undefined;_0x20f325&&_0x3868bf&&(_0x4b4f33=_0x3868bf);const _0x2fe7c2=_0x20f325?_0x3868bf??_0x4b4f33:_0x4b4f33,_0xae73bb=!_0x1783f8&&!_0x62af98&&_0x5b926d&&_0x56c0f2===_0x5b926d,_0x246e52=_0x1783f8||(_0xae73bb?_0x5b926d:undefined)||(_0x20f325?_0x2b3b13:undefined),_0x2bdbdd=_0x2fe7c2?.[_0x18d1bb(0x1e6)],_0x1ce0ee=_0x154832?resolveTopLevelAppCode(_0x4c4efe):undefined,_0x33684d=_0x15bb57?resolveTopLevelAppCode(_0x473857):undefined,_0x33291d=_0x1783f8||_0x62af98?_0x2bdbdd:undefined,_0x14e043=!_0x1783f8&&!_0x62af98?_0x2bdbdd:undefined,_0x6e8770=_0x20f325||_0x33291d||_0x1ce0ee||_0x14e043||_0x33684d||undefined,_0x463278=_0x154832?stringConfigValue(_0x4c4efe[_0x18d1bb(0x1dd)]):undefined,_0x5dceb0=_0x15bb57?stringConfigValue(_0x473857[_0x18d1bb(0x1dd)]):undefined,_0x31e28f=_0x3a9bf0['env']||_0x2fe7c2?.[_0x18d1bb(0x1dd)]||_0x463278||_0x31f854(_0x18d1bb(0x1fa))||_0x5dceb0||_0x10a16d[_0x18d1bb(0x1dd)]||DEFAULT_CONFIG_VALUES[_0x18d1bb(0x1dd)],_0x59fd2a=_0x2fe7c2?.['locale']||_0x10a16d[_0x18d1bb(0x1fb)]||DEFAULT_CONFIG_VALUES['locale'],_0xae5673=_0x31f854(_0x18d1bb(0x1ee))||_0x2fe7c2?.[_0x18d1bb(0x1d7)]||_0x10a16d[_0x18d1bb(0x1d7)]||undefined,_0x1fe984=_0x31f854('ACCESS_KEY')||_0x2fe7c2?.[_0x18d1bb(0x1d6)]||_0x10a16d[_0x18d1bb(0x1d6)]||undefined,_0x17ba05=_0x3a9bf0[_0x18d1bb(0x1e9)]||_0x31f854(_0x18d1bb(0x1f9))||_0x2fe7c2?.['format']||_0x10a16d[_0x18d1bb(0x1e9)],_0x3fd3b3=normalizeLegacyOutputFormat(_0x17ba05),_0x4f0406=_0x31f854(_0x18d1bb(0x1f2))||_0x2fe7c2?.[_0x18d1bb(0x1fc)]||_0x10a16d[_0x18d1bb(0x1fc)],_0x59de2c=_0x4f0406?Number(_0x4f0406)||undefined:undefined,_0x30c16b=_0x55a7dd?[_0x55a7dd[_0x18d1bb(0x1ec)]['riskLevel'],_0x55a7dd[_0x18d1bb(0x1e2)]['riskLevel']]:[_0x10a16d[_0x18d1bb(0x1db)]],_0x29ec78=resolveRiskCeiling(..._0x30c16b,_0x2fe7c2?.['riskLevel']),_0x20fcb7=resolveRiskCeiling(_0x29ec78,_0x31f854(_0x18d1bb(0x1df))),_0x301bbe=_0x31f854(_0x18d1bb(0x1f4)),_0x1243c8=_0x301bbe==='1'||_0x301bbe===_0x18d1bb(0x1d9),_0x5e26bb=_0x2fe7c2?.[_0x18d1bb(0x1eb)]||_0x10a16d['apiDir']||DEFAULT_CONFIG_VALUES[_0x18d1bb(0x1eb)],_0x240f7e=isDaily(normalizeEnv(String(_0x31e28f)))?_0x18d1bb(0x1f3):_0x18d1bb(0x1f7);return{'appCode':typeof _0x6e8770===_0x18d1bb(0x1f5)&&_0x6e8770[_0x18d1bb(0x1d0)]()?_0x6e8770[_0x18d1bb(0x1d0)]():undefined,'env':_0x240f7e,'locale':_0x59fd2a,'cookie':_0xae5673,'accessKey':_0x1fe984,'format':_0x3fd3b3,'pageSize':_0x59de2c,'riskLevel':_0x20fcb7,'verbose':_0x1243c8,'apiDir':_0x5e26bb,'apps':_0x5dbeaa,'defaultApp':_0x311a7b,'currentApp':_0x135079?_0x56c0f2:undefined,'explicitAppName':_0x246e52};}
@@ -1 +1 @@
1
- function a232_0x36a5(_0x3bfe5b,_0xe7c5b8){_0x3bfe5b=_0x3bfe5b-0x1f4;const _0x4a0410=a232_0x4a04();let _0x36a517=_0x4a0410[_0x3bfe5b];return _0x36a517;}(function(_0xc5b9e0,_0x49ed37){const _0x4f0cdd=a232_0x36a5,_0x4b3f3f=_0xc5b9e0();while(!![]){try{const _0x3c5085=parseInt(_0x4f0cdd(0x1f7))/0x1*(parseInt(_0x4f0cdd(0x1fa))/0x2)+parseInt(_0x4f0cdd(0x1fc))/0x3+-parseInt(_0x4f0cdd(0x200))/0x4+-parseInt(_0x4f0cdd(0x1f5))/0x5*(parseInt(_0x4f0cdd(0x1ff))/0x6)+-parseInt(_0x4f0cdd(0x1f6))/0x7+-parseInt(_0x4f0cdd(0x1fe))/0x8+-parseInt(_0x4f0cdd(0x1f9))/0x9*(-parseInt(_0x4f0cdd(0x1fd))/0xa);if(_0x3c5085===_0x49ed37)break;else _0x4b3f3f['push'](_0x4b3f3f['shift']());}catch(_0x5bde06){_0x4b3f3f['push'](_0x4b3f3f['shift']());}}}(a232_0x4a04,0x493f8));import{getIsSessionValid}from'../auth/is-session-valid.js';import{CliErrors}from'../errors.js';function a232_0x4a04(){const _0x5f2c17=['585312dTSolp','3693400zWEIxZ','554696kNpbnA','35484ivJUAX','2028076eRgoxv','authRequired','415pkiuxX','2854670fbOxCb','2rteVQQ','cookie','36xAggtp','102588mYyqGr','../auth/get-cookie.js'];a232_0x4a04=function(){return _0x5f2c17;};return a232_0x4a04();}export async function buildAuth(_0x35f32d){const _0x493ac1=a232_0x36a5,{getCookie:_0x4955a1}=await import(_0x493ac1(0x1fb)),_0x2801d9=_0x35f32d[_0x493ac1(0x1f8)]||_0x4955a1(),_0x24f52d=_0x2801d9?await getIsSessionValid():![];return{'cookie':_0x2801d9,'isLoggedIn':_0x24f52d,async 'getOrLogin'(){const _0x2f4aff=_0x493ac1;if(_0x2801d9&&_0x24f52d)return _0x2801d9;throw CliErrors[_0x2f4aff(0x1f4)]();}};}
1
+ (function(_0x1e64d0,_0x538946){const _0x73df59=a232_0x7980,_0xa7c29d=_0x1e64d0();while(!![]){try{const _0x1e46d3=-parseInt(_0x73df59(0xa3))/0x1*(parseInt(_0x73df59(0x9d))/0x2)+parseInt(_0x73df59(0x9e))/0x3+parseInt(_0x73df59(0xa6))/0x4*(parseInt(_0x73df59(0xa5))/0x5)+-parseInt(_0x73df59(0xa0))/0x6*(-parseInt(_0x73df59(0xa2))/0x7)+parseInt(_0x73df59(0xa1))/0x8*(-parseInt(_0x73df59(0x9c))/0x9)+parseInt(_0x73df59(0xa7))/0xa+-parseInt(_0x73df59(0x9f))/0xb;if(_0x1e46d3===_0x538946)break;else _0xa7c29d['push'](_0xa7c29d['shift']());}catch(_0x44b4f8){_0xa7c29d['push'](_0xa7c29d['shift']());}}}(a232_0x51a6,0x904d2));import{getIsSessionValid}from'../auth/is-session-valid.js';import{CliErrors}from'../errors.js';function a232_0x7980(_0x3dcc9a,_0x488c63){_0x3dcc9a=_0x3dcc9a-0x9c;const _0x51a6ad=a232_0x51a6();let _0x7980cc=_0x51a6ad[_0x3dcc9a];return _0x7980cc;}export async function buildAuth(_0xa53cd4){const _0x52f509=a232_0x7980,{getCookie:_0x501943}=await import(_0x52f509(0xa4)),_0x267d59=_0xa53cd4['cookie']||_0x501943(),_0xfa7831=_0x267d59?await getIsSessionValid():![];return{'cookie':_0x267d59,'isLoggedIn':_0xfa7831,async 'getOrLogin'(){if(_0x267d59&&_0xfa7831)return _0x267d59;throw CliErrors['authRequired']();}};}function a232_0x51a6(){const _0x175576=['8757463tkzbnx','6VEtJCx','6021272mBReKz','867930mxCfUK','86642CRZcdd','../auth/get-cookie.js','65qRLazZ','286184clOmLu','4826430UMFvlD','9SCiTBF','12yKHvGc','3368913PtgDvO'];a232_0x51a6=function(){return _0x175576;};return a232_0x51a6();}