@lovrabet/rabetbase-cli 2.5.5-beta.3 → 2.5.5

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 (359) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/api-group.js +1 -1
  3. package/lib/api/fetch-model-list.js +1 -1
  4. package/lib/api/generate-api-file.js +1 -1
  5. package/lib/api/generate-sdk-config-file.js +1 -1
  6. package/lib/api/legacy-api-file.js +1 -1
  7. package/lib/api/model-registry-file.js +1 -1
  8. package/lib/api/model-registry-scaffold.js +1 -1
  9. package/lib/api/model-source.js +1 -1
  10. package/lib/auth/auth-server-ui.js +1 -1
  11. package/lib/auth/auth-server.js +1 -1
  12. package/lib/auth/constant.js +1 -1
  13. package/lib/auth/get-cookie.js +1 -1
  14. package/lib/auth/get-session-user.js +1 -1
  15. package/lib/auth/is-session-valid.js +1 -1
  16. package/lib/auth/login-success-html.js +1 -1
  17. package/lib/auth/logout.js +1 -1
  18. package/lib/cli-flags.js +1 -1
  19. package/lib/cli.js +1 -1
  20. package/lib/commands/api/generate.js +1 -1
  21. package/lib/commands/api/index.js +1 -1
  22. package/lib/commands/api/list.js +1 -1
  23. package/lib/commands/api/pull.js +1 -1
  24. package/lib/commands/api/shared.js +1 -1
  25. package/lib/commands/app/detail.js +1 -1
  26. package/lib/commands/app/index.js +1 -1
  27. package/lib/commands/app/list.js +1 -1
  28. package/lib/commands/app/members-list.js +1 -1
  29. package/lib/commands/app/remote-directory.js +1 -1
  30. package/lib/commands/app/shared.js +1 -1
  31. package/lib/commands/app-config/delete.js +1 -1
  32. package/lib/commands/app-config/get.js +1 -1
  33. package/lib/commands/app-config/index.js +1 -1
  34. package/lib/commands/app-config/list.js +1 -1
  35. package/lib/commands/app-config/set.js +1 -1
  36. package/lib/commands/app-config/shared.js +1 -1
  37. package/lib/commands/auth/index.js +1 -1
  38. package/lib/commands/bff/create.js +1 -1
  39. package/lib/commands/bff/delete.js +1 -1
  40. package/lib/commands/bff/detail.js +1 -1
  41. package/lib/commands/bff/index.js +1 -1
  42. package/lib/commands/bff/list.js +1 -1
  43. package/lib/commands/bff/logs.js +1 -1
  44. package/lib/commands/bff/pull.js +1 -1
  45. package/lib/commands/bff/push.js +1 -1
  46. package/lib/commands/bff/status.js +1 -1
  47. package/lib/commands/cli-skill/index.js +1 -1
  48. package/lib/commands/cli-update.js +1 -1
  49. package/lib/commands/codegen/index.js +1 -1
  50. package/lib/commands/codegen/sdk.js +1 -1
  51. package/lib/commands/codegen/sql.js +1 -1
  52. package/lib/commands/common/app-registry.js +1 -1
  53. package/lib/commands/common/app-selector.js +1 -1
  54. package/lib/commands/common/async-task.js +1 -1
  55. package/lib/commands/common/dry-run.js +1 -1
  56. package/lib/commands/common/flags.js +1 -1
  57. package/lib/commands/common/local-file.js +1 -1
  58. package/lib/commands/common/validate.js +1 -1
  59. package/lib/commands/config/delete.js +1 -1
  60. package/lib/commands/config/get.js +1 -1
  61. package/lib/commands/config/index.js +1 -1
  62. package/lib/commands/config/init.js +1 -1
  63. package/lib/commands/config/list.js +1 -1
  64. package/lib/commands/config/set.js +1 -1
  65. package/lib/commands/config/shared.js +1 -1
  66. package/lib/commands/dataset/batch-design.js +1 -1
  67. package/lib/commands/dataset/business-group-update.js +1 -1
  68. package/lib/commands/dataset/business-groups.js +1 -1
  69. package/lib/commands/dataset/capability.js +1 -1
  70. package/lib/commands/dataset/cross-relation-create.js +1 -1
  71. package/lib/commands/dataset/cross-relation-delete.js +1 -1
  72. package/lib/commands/dataset/cross-relation-list.js +1 -1
  73. package/lib/commands/dataset/cross-relation-shared.js +1 -1
  74. package/lib/commands/dataset/cross-relation-update.js +1 -1
  75. package/lib/commands/dataset/delete.js +1 -1
  76. package/lib/commands/dataset/detail.js +1 -1
  77. package/lib/commands/dataset/extend-update.js +1 -1
  78. package/lib/commands/dataset/field-restore.js +1 -1
  79. package/lib/commands/dataset/field-update.js +1 -1
  80. package/lib/commands/dataset/generate.js +1 -1
  81. package/lib/commands/dataset/index.js +1 -1
  82. package/lib/commands/dataset/list.js +1 -1
  83. package/lib/commands/dataset/operations.js +1 -1
  84. package/lib/commands/dataset/relation-audit.js +1 -1
  85. package/lib/commands/dataset/relation-create.js +1 -1
  86. package/lib/commands/dataset/relation-delete.js +1 -1
  87. package/lib/commands/dataset/relation-shared.js +1 -1
  88. package/lib/commands/dataset/relation-update.js +1 -1
  89. package/lib/commands/dataset/relations.js +1 -1
  90. package/lib/commands/dataset/rename.js +1 -1
  91. package/lib/commands/dataset/restore.js +1 -1
  92. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  93. package/lib/commands/db/analysis-batching.js +1 -1
  94. package/lib/commands/db/analyze-batch-plan.js +1 -1
  95. package/lib/commands/db/analyze-cancel.js +1 -1
  96. package/lib/commands/db/analyze-start.js +1 -1
  97. package/lib/commands/db/analyze-status.js +1 -1
  98. package/lib/commands/db/create.js +1 -1
  99. package/lib/commands/db/delete.js +1 -1
  100. package/lib/commands/db/detail.js +1 -1
  101. package/lib/commands/db/diff-refresh-start.js +1 -1
  102. package/lib/commands/db/diff-refresh-status.js +1 -1
  103. package/lib/commands/db/diff.js +1 -1
  104. package/lib/commands/db/index.js +1 -1
  105. package/lib/commands/db/list.js +1 -1
  106. package/lib/commands/db/shared.js +1 -1
  107. package/lib/commands/db/table-diff-shared.js +1 -1
  108. package/lib/commands/db/tables.js +1 -1
  109. package/lib/commands/db/test.js +1 -1
  110. package/lib/commands/db/update.js +1 -1
  111. package/lib/commands/deployment/index.js +1 -1
  112. package/lib/commands/deployment/sync-all.js +1 -1
  113. package/lib/commands/deployment/sync-jobs.js +1 -1
  114. package/lib/commands/deployment/sync-status.js +1 -1
  115. package/lib/commands/doctor.js +1 -1
  116. package/lib/commands/file/index.js +1 -1
  117. package/lib/commands/flow/create.js +1 -1
  118. package/lib/commands/flow/detail.js +1 -1
  119. package/lib/commands/flow/index.js +1 -1
  120. package/lib/commands/flow/list.js +1 -1
  121. package/lib/commands/flow/publish.js +1 -1
  122. package/lib/commands/flow/runtime-resources-shared.js +1 -1
  123. package/lib/commands/flow/runtime-role-list.js +1 -1
  124. package/lib/commands/flow/runtime-role-user-list.js +1 -1
  125. package/lib/commands/flow/runtime-user-search.js +1 -1
  126. package/lib/commands/flow/shared.js +1 -1
  127. package/lib/commands/flow/update.js +1 -1
  128. package/lib/commands/flow/validate.js +1 -1
  129. package/lib/commands/instant-api-policy/current.js +1 -1
  130. package/lib/commands/instant-api-policy/index.js +1 -1
  131. package/lib/commands/instant-api-policy/init.js +1 -1
  132. package/lib/commands/instant-api-policy/publish.js +1 -1
  133. package/lib/commands/instant-api-policy/pull.js +1 -1
  134. package/lib/commands/instant-api-policy/revision.js +1 -1
  135. package/lib/commands/instant-api-policy/revisions.js +1 -1
  136. package/lib/commands/instant-api-policy/rollback.js +1 -1
  137. package/lib/commands/instant-api-policy/shared.js +1 -1
  138. package/lib/commands/instant-api-policy/validate.js +1 -1
  139. package/lib/commands/issue/index.js +1 -1
  140. package/lib/commands/issue/nudge.js +1 -1
  141. package/lib/commands/issue/report.js +1 -1
  142. package/lib/commands/issue/shared.js +1 -1
  143. package/lib/commands/kb/create.js +1 -1
  144. package/lib/commands/kb/delete.js +1 -1
  145. package/lib/commands/kb/detail.js +1 -1
  146. package/lib/commands/kb/index.js +1 -1
  147. package/lib/commands/kb/list.js +1 -1
  148. package/lib/commands/kb/search.js +1 -1
  149. package/lib/commands/kb/shared.js +1 -1
  150. package/lib/commands/kb/update.js +1 -1
  151. package/lib/commands/logs/index.js +1 -1
  152. package/lib/commands/menu/asset-update.js +1 -1
  153. package/lib/commands/menu/delete.js +1 -1
  154. package/lib/commands/menu/external-link-create.js +1 -1
  155. package/lib/commands/menu/external-link-update.js +1 -1
  156. package/lib/commands/menu/group-create.js +1 -1
  157. package/lib/commands/menu/group-update.js +1 -1
  158. package/lib/commands/menu/index.js +1 -1
  159. package/lib/commands/menu/list.js +1 -1
  160. package/lib/commands/menu/move.js +1 -1
  161. package/lib/commands/menu/regroup-start.js +1 -1
  162. package/lib/commands/menu/rename.js +1 -1
  163. package/lib/commands/menu/shared/compare-table.js +1 -1
  164. package/lib/commands/menu/shared/delete-plan.js +1 -1
  165. package/lib/commands/menu/shared/facts.js +1 -1
  166. package/lib/commands/menu/shared/index.js +1 -1
  167. package/lib/commands/menu/shared/inquirer.js +1 -1
  168. package/lib/commands/menu/shared/local-pages.js +1 -1
  169. package/lib/commands/menu/shared/logic.js +1 -1
  170. package/lib/commands/menu/shared/mutations.js +1 -1
  171. package/lib/commands/menu/shared/path.js +1 -1
  172. package/lib/commands/menu/shared/service.js +1 -1
  173. package/lib/commands/menu/shared/subapp-assets.js +1 -1
  174. package/lib/commands/menu/shared/sync-core.js +1 -1
  175. package/lib/commands/menu/shared/update-core.js +1 -1
  176. package/lib/commands/menu/shared/valid-url.js +1 -1
  177. package/lib/commands/menu/subapp-assets-status.js +1 -1
  178. package/lib/commands/menu/subapp-assets-update.js +1 -1
  179. package/lib/commands/menu/sync.js +1 -1
  180. package/lib/commands/menu/visibility-update.js +1 -1
  181. package/lib/commands/notification/config-create.js +1 -1
  182. package/lib/commands/notification/config-delete.js +1 -1
  183. package/lib/commands/notification/config-list.js +1 -1
  184. package/lib/commands/notification/config-update.js +1 -1
  185. package/lib/commands/notification/index.js +1 -1
  186. package/lib/commands/notification/shared.js +1 -1
  187. package/lib/commands/ocr/index.js +1 -1
  188. package/lib/commands/page/create.js +1 -1
  189. package/lib/commands/page/custom/detail.js +1 -1
  190. package/lib/commands/page/custom/list.js +1 -1
  191. package/lib/commands/page/custom/publish.js +1 -1
  192. package/lib/commands/page/custom/shared.js +1 -1
  193. package/lib/commands/page/custom/syntax.js +1 -1
  194. package/lib/commands/page/custom/update.js +1 -1
  195. package/lib/commands/page/data-list-status.js +1 -1
  196. package/lib/commands/page/generate-start.js +1 -1
  197. package/lib/commands/page/generate-status.js +1 -1
  198. package/lib/commands/page/index.js +1 -1
  199. package/lib/commands/page/pull.js +1 -1
  200. package/lib/commands/page/push.js +1 -1
  201. package/lib/commands/page/relation-audit.js +1 -1
  202. package/lib/commands/page/restore.js +1 -1
  203. package/lib/commands/page/shared.js +1 -1
  204. package/lib/commands/page/sync.js +1 -1
  205. package/lib/commands/project/api-architecture-upgrade.js +1 -1
  206. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  207. package/lib/commands/project/create/format-elapsed.js +1 -1
  208. package/lib/commands/project/create/main.js +1 -1
  209. package/lib/commands/project/create/materialize-project-template.js +1 -1
  210. package/lib/commands/project/create/project-name.js +1 -1
  211. package/lib/commands/project/create/project-template-archive.js +1 -1
  212. package/lib/commands/project/create/project-template-path.js +1 -1
  213. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  214. package/lib/commands/project/create/use-format-code.js +1 -1
  215. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  216. package/lib/commands/project/domain-routing-sync.js +1 -1
  217. package/lib/commands/project/index.js +1 -1
  218. package/lib/commands/project/upgrade.js +1 -1
  219. package/lib/commands/registry.js +1 -1
  220. package/lib/commands/role/delete.js +1 -1
  221. package/lib/commands/role/detail.js +1 -1
  222. package/lib/commands/role/index.js +1 -1
  223. package/lib/commands/role/list.js +1 -1
  224. package/lib/commands/role/shared.js +1 -1
  225. package/lib/commands/role/update.js +1 -1
  226. package/lib/commands/role/user-add.js +1 -1
  227. package/lib/commands/role/user-remove.js +1 -1
  228. package/lib/commands/role/user-resolve.js +1 -1
  229. package/lib/commands/rule/get.js +1 -1
  230. package/lib/commands/rule/index.js +1 -1
  231. package/lib/commands/rule/list.js +1 -1
  232. package/lib/commands/rule/set.js +1 -1
  233. package/lib/commands/rule/shared.js +1 -1
  234. package/lib/commands/run/index.js +1 -1
  235. package/lib/commands/schema.js +1 -1
  236. package/lib/commands/sql/create.js +1 -1
  237. package/lib/commands/sql/delete.js +1 -1
  238. package/lib/commands/sql/detail.js +1 -1
  239. package/lib/commands/sql/exec.js +1 -1
  240. package/lib/commands/sql/index.js +1 -1
  241. package/lib/commands/sql/list.js +1 -1
  242. package/lib/commands/sql/pull.js +1 -1
  243. package/lib/commands/sql/push.js +1 -1
  244. package/lib/commands/sql/shared.js +1 -1
  245. package/lib/commands/sql/status.js +1 -1
  246. package/lib/commands/sql/validate.js +1 -1
  247. package/lib/commands/task/index.js +1 -1
  248. package/lib/commands/task/status.js +1 -1
  249. package/lib/commands/tenant/index.js +1 -1
  250. package/lib/commands/tenant/members-list.js +1 -1
  251. package/lib/commands/tenant/shared.js +1 -1
  252. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  253. package/lib/commands/user-account/feishu-bind.js +1 -1
  254. package/lib/commands/user-account/index.js +1 -1
  255. package/lib/commands/workspace/add.js +1 -1
  256. package/lib/commands/workspace/index.js +1 -1
  257. package/lib/commands/workspace/remove.js +1 -1
  258. package/lib/config/domain-config.js +1 -1
  259. package/lib/config/project-domain-routing.js +1 -1
  260. package/lib/config/region-config.js +1 -1
  261. package/lib/config/schema.js +1 -1
  262. package/lib/constant/cdn.js +1 -1
  263. package/lib/constant/cli.js +1 -1
  264. package/lib/constant/defaults.js +1 -1
  265. package/lib/constant/domain.js +1 -1
  266. package/lib/constant/env.js +1 -1
  267. package/lib/constant/output.js +1 -1
  268. package/lib/constant/paths.js +1 -1
  269. package/lib/constant/region.js +1 -1
  270. package/lib/constant/risk.js +1 -1
  271. package/lib/constant/routing-profile.js +1 -1
  272. package/lib/context/app-resolver.js +1 -1
  273. package/lib/context/auth-resolver.js +1 -1
  274. package/lib/context/config-loader.js +1 -1
  275. package/lib/context.js +1 -1
  276. package/lib/core/alias-resolver.js +1 -1
  277. package/lib/core/api-client.js +1 -1
  278. package/lib/core/bff/config.js +1 -1
  279. package/lib/core/bff/file-system.js +1 -1
  280. package/lib/core/bff/hash.js +1 -1
  281. package/lib/core/bff/hook-directory.js +1 -1
  282. package/lib/core/bff/lock.js +1 -1
  283. package/lib/core/bff/utils.js +1 -1
  284. package/lib/core/cross-db-relation.js +1 -1
  285. package/lib/core/db-resolver.js +1 -1
  286. package/lib/core/flow-config.js +1 -1
  287. package/lib/core/instant-api-policy/config.js +1 -1
  288. package/lib/core/kb-search-client.js +1 -1
  289. package/lib/core/page/file-system.js +1 -1
  290. package/lib/core/page/hash.js +1 -1
  291. package/lib/core/page/lock.js +1 -1
  292. package/lib/core/page/lr-smart-jsx.js +1 -1
  293. package/lib/core/sql-index-auditor.js +1 -1
  294. package/lib/core/sql-sync/config.js +1 -1
  295. package/lib/core/sql-sync/file-system.js +1 -1
  296. package/lib/core/sql-sync/hash.js +1 -1
  297. package/lib/core/sql-sync/lock.js +1 -1
  298. package/lib/core/sql-sync/utils.js +1 -1
  299. package/lib/core/sql-validator.js +1 -1
  300. package/lib/errors.js +1 -1
  301. package/lib/framework/build-all-flags.js +1 -1
  302. package/lib/framework/error-output.js +1 -1
  303. package/lib/framework/explicit-yes.js +1 -1
  304. package/lib/framework/flags.js +1 -1
  305. package/lib/framework/help.js +1 -1
  306. package/lib/framework/index.js +1 -1
  307. package/lib/framework/output.js +1 -1
  308. package/lib/framework/response.js +1 -1
  309. package/lib/framework/runner-alias.js +1 -1
  310. package/lib/framework/runner.js +1 -1
  311. package/lib/framework/schema-export.js +1 -1
  312. package/lib/framework/supported-flags.js +1 -1
  313. package/lib/framework/types.js +1 -1
  314. package/lib/generated/build-info.d.ts +4 -4
  315. package/lib/generated/build-info.js +1 -1
  316. package/lib/generated/official-routing.js +1 -1
  317. package/lib/generated/routing-contract.js +1 -1
  318. package/lib/help.js +1 -1
  319. package/lib/postinstall.js +1 -1
  320. package/lib/runtime/confirmation.js +1 -1
  321. package/lib/runtime/event.js +1 -1
  322. package/lib/runtime/index.js +1 -1
  323. package/lib/runtime/queue.js +1 -1
  324. package/lib/runtime/resolve.js +1 -1
  325. package/lib/skills/builtin-skill.js +1 -1
  326. package/lib/skills/main.js +1 -1
  327. package/lib/skills/npx-skills-add.js +1 -1
  328. package/lib/skills/skill-presence.js +1 -1
  329. package/lib/telemetry/cli-command-trace.js +1 -1
  330. package/lib/telemetry/cli-help-trace.js +1 -1
  331. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  332. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  333. package/lib/telemetry/send-cli-trace-log.js +1 -1
  334. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  335. package/lib/utils/ai_config.js +1 -1
  336. package/lib/utils/apply-jq-filter.js +1 -1
  337. package/lib/utils/cdn-config.js +1 -1
  338. package/lib/utils/check-sdk-version.js +1 -1
  339. package/lib/utils/cli-version-check.js +1 -1
  340. package/lib/utils/cli-version-policy.js +1 -1
  341. package/lib/utils/config.js +1 -1
  342. package/lib/utils/entity-with-id.js +1 -1
  343. package/lib/utils/file-utils.js +1 -1
  344. package/lib/utils/guides-cdn.js +1 -1
  345. package/lib/utils/http-client.js +1 -1
  346. package/lib/utils/is-non-interactive.js +1 -1
  347. package/lib/utils/logger.js +1 -1
  348. package/lib/utils/params.js +1 -1
  349. package/lib/utils/platform.js +1 -1
  350. package/lib/utils/sleep.js +1 -1
  351. package/lib/utils/template-replacer.js +1 -1
  352. package/lib/utils/update-notice.js +1 -1
  353. package/lib/utils/version.js +1 -1
  354. package/lib/utils/with-active-cookie.js +1 -1
  355. package/lib/utils/write-cli-side-channel.js +1 -1
  356. package/package.json +1 -1
  357. package/skills/rabetbase/SKILL.md +1 -1
  358. package/skills/rabetbase-page-generation/SKILL.md +1 -1
  359. package/skills/rabetbase.manifest.json +3 -3
@@ -1 +1 @@
1
- (function(_0x27223b,_0x57544f){const _0x1905ef=a272_0x5504,_0x2904c0=_0x27223b();while(!![]){try{const _0x429432=-parseInt(_0x1905ef(0xed))/0x1+parseInt(_0x1905ef(0xdf))/0x2*(-parseInt(_0x1905ef(0xe9))/0x3)+parseInt(_0x1905ef(0xff))/0x4+parseInt(_0x1905ef(0x102))/0x5*(-parseInt(_0x1905ef(0x100))/0x6)+-parseInt(_0x1905ef(0x109))/0x7+-parseInt(_0x1905ef(0x107))/0x8+parseInt(_0x1905ef(0xe2))/0x9*(parseInt(_0x1905ef(0xef))/0xa);if(_0x429432===_0x57544f)break;else _0x2904c0['push'](_0x2904c0['shift']());}catch(_0xa78e07){_0x2904c0['push'](_0x2904c0['shift']());}}}(a272_0x2d97,0xca5bc));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{isDaily,normalizeEnv}from'../constant/env.js';function a272_0x5504(_0x7c1f50,_0x30e3e7){_0x7c1f50=_0x7c1f50-0xdf;const _0x2d97a9=a272_0x2d97();let _0x550447=_0x2d97a9[_0x7c1f50];return _0x550447;}import{normalizeLegacyOutputFormat,riskLevelOrder}from'../framework/types.js';import{DEFAULT_LOVRABET_REGION,normalizeLovrabetRegion}from'../constant/region.js';import{selectConfiguredRegion}from'../config/region-config.js';function stringConfigValue(_0x221e15){const _0x127b29=a272_0x5504;return typeof _0x221e15===_0x127b29(0xf7)&&_0x221e15[_0x127b29(0xeb)]()?_0x221e15[_0x127b29(0xeb)]():undefined;}function appProfiles(_0x180252){const _0x46856f=a272_0x5504;return _0x180252[_0x46856f(0xf8)]&&typeof _0x180252[_0x46856f(0xf8)]===_0x46856f(0xe0)?_0x180252[_0x46856f(0xf8)]:{};}function a272_0x2d97(){const _0x112263=['10JgJxNd','entries','cookie','locale','appcode','7834144AjTpBw','daily','4476381wiLOGa','env','defaultApp','projectPath','2wkATmo','object','true','9NqivQk','region','pageSize','ACCESS_KEY','RISK_LEVEL','keys','length','345726bCvByu','projectConfig','trim','APP','305755fHlMUC','value','30491540DvimPA','app','source','PAGE_SIZE','accessKey','high-risk-write','ENV','globalConfig','string','apps','riskLevel','VERBOSE','apiDir','write','read','format','4680520drOoEa','4052028CPpVvh','FORMAT'];a272_0x2d97=function(){return _0x112263;};return a272_0x2d97();}function resolveDefaultAppName(_0x1b686c){const _0x3b5cd7=a272_0x5504,_0x2782fa=stringConfigValue(_0x1b686c[_0x3b5cd7(0x10b)]);if(_0x2782fa)return _0x2782fa;const _0x34a9cf=Object[_0x3b5cd7(0xe7)](appProfiles(_0x1b686c));return _0x34a9cf['length']===0x1?_0x34a9cf[0x0]:undefined;}function resolveTopLevelAppCode(_0x129c99){const _0x489906=a272_0x5504;return stringConfigValue(_0x129c99['appcode'])||stringConfigValue(_0x129c99[_0x489906(0xf0)]);}function normalizeRiskCeiling(_0x3a1b3d){const _0x22d3c4=a272_0x5504;if(_0x3a1b3d===undefined||_0x3a1b3d===null)return undefined;if(_0x3a1b3d===_0x22d3c4(0xfd)||_0x3a1b3d===_0x22d3c4(0xfc)||_0x3a1b3d===_0x22d3c4(0xf4))return _0x3a1b3d;return _0x22d3c4(0xfd);}function resolveRiskCeiling(..._0x2a11d4){let _0x15fae0;for(const _0x56064b of _0x2a11d4){const _0x33ce70=normalizeRiskCeiling(_0x56064b);_0x33ce70&&(!_0x15fae0||riskLevelOrder(_0x33ce70)<riskLevelOrder(_0x15fae0))&&(_0x15fae0=_0x33ce70);}return _0x15fae0??DEFAULT_CONFIG_VALUES['riskLevel'];}export function resolveAppConfig({raw:_0x52f2ef,flags:_0x327ae0,layers:_0xe310ad,readEnv:_0x18ac07}){const _0x1d7578=a272_0x5504,_0x3deebb=_0xe310ad?.[_0x1d7578(0xea)]??{},_0x4017ca=_0xe310ad?.['globalConfig']??{},_0x5f1d0c=!!_0xe310ad?.[_0x1d7578(0x10c)]||Object[_0x1d7578(0xe7)](_0x3deebb)[_0x1d7578(0xe8)]>0x0,_0x2a4ad0=!_0x5f1d0c,_0xf48c4=_0x5f1d0c?resolveDefaultAppName(_0x3deebb):undefined,_0x20b552=_0x2a4ad0?resolveDefaultAppName(_0x4017ca):undefined,_0x40afb1=stringConfigValue(_0x327ae0[_0x1d7578(0xf0)]),_0x3d5770=_0x18ac07(_0x1d7578(0xec)),_0xb33078={};if(_0x52f2ef[_0x1d7578(0xf8)]&&typeof _0x52f2ef[_0x1d7578(0xf8)]===_0x1d7578(0xe0))for(const [_0x5ee23b,_0x517df5]of Object[_0x1d7578(0x103)](_0x52f2ef[_0x1d7578(0xf8)])){_0x517df5&&typeof _0x517df5===_0x1d7578(0xe0)&&_0x517df5['appcode']&&(_0xb33078[_0x5ee23b]=_0x517df5);}const _0x184383=_0xf48c4||_0x20b552||resolveDefaultAppName(_0x52f2ef),_0x2f0c0e=Object[_0x1d7578(0xe7)](_0xb33078)[_0x1d7578(0xe8)]>0x0,_0x1b0269=_0x40afb1||_0xf48c4||_0x3d5770||_0x20b552||_0x184383||undefined,_0x24e14c=stringConfigValue(_0x327ae0[_0x1d7578(0x106)]),_0x3de141=_0x24e14c?Object['entries'](_0xb33078)['filter'](([,_0x114b96])=>_0x114b96?.[_0x1d7578(0x106)]===_0x24e14c):[],_0x38b1fc=_0x40afb1&&_0xb33078[_0x40afb1]?.[_0x1d7578(0x106)]===_0x24e14c?[_0x40afb1,_0xb33078[_0x40afb1]]:undefined,_0x18ff52=_0x38b1fc??(_0x3de141[_0x1d7578(0xe8)]===0x1?_0x3de141[0x0]:undefined),_0x10a6e2=_0x18ff52?.[0x0],_0x5b0e7b=_0x18ff52?.[0x1],_0x8366f0=_0x24e14c?_0x10a6e2:_0x1b0269;let _0x582573=_0x8366f0&&_0xb33078[_0x8366f0]?_0xb33078[_0x8366f0]:undefined;_0x24e14c&&_0x5b0e7b&&(_0x582573=_0x5b0e7b);const _0x18cc7b=_0x24e14c?_0x5b0e7b??_0x582573:_0x582573,_0xa8dcb4=!_0x40afb1&&!_0xf48c4&&_0x3d5770&&_0x8366f0===_0x3d5770,_0x1039d9=_0x40afb1||(_0xa8dcb4?_0x3d5770:undefined)||(_0x24e14c?_0x10a6e2:undefined),_0x560a7c=_0x18cc7b?.[_0x1d7578(0x106)],_0x415c55=_0x5f1d0c?resolveTopLevelAppCode(_0x3deebb):undefined,_0x2fd9df=_0x2a4ad0?resolveTopLevelAppCode(_0x4017ca):undefined,_0x4e26db=_0x40afb1||_0xf48c4?_0x560a7c:undefined,_0x2ad3c5=!_0x40afb1&&!_0xf48c4?_0x560a7c:undefined,_0xfe124e=_0x24e14c||_0x4e26db||_0x415c55||_0x2ad3c5||_0x2fd9df||undefined,_0x48ee2b=_0x5f1d0c?stringConfigValue(_0x3deebb['env']):undefined,_0x2a2184=_0x2a4ad0?stringConfigValue(_0x4017ca[_0x1d7578(0x10a)]):undefined,_0x8f1886=_0x327ae0[_0x1d7578(0x10a)]||_0x18cc7b?.['env']||_0x48ee2b||_0x18ac07(_0x1d7578(0xf5))||_0x2a2184||_0x52f2ef[_0x1d7578(0x10a)]||DEFAULT_CONFIG_VALUES[_0x1d7578(0x10a)],_0xbae109=_0x18cc7b?.[_0x1d7578(0x105)]||_0x52f2ef[_0x1d7578(0x105)]||DEFAULT_CONFIG_VALUES[_0x1d7578(0x105)],_0x3d3a0a=_0x18ac07('COOKIE')||_0x18cc7b?.[_0x1d7578(0x104)]||_0x52f2ef['cookie']||undefined,_0x36dcc2=_0x18ac07(_0x1d7578(0xe5))||_0x18cc7b?.[_0x1d7578(0xf3)]||_0x52f2ef[_0x1d7578(0xf3)]||undefined,_0x19ff6a=_0x327ae0['format']||_0x18ac07(_0x1d7578(0x101))||_0x18cc7b?.[_0x1d7578(0xfe)]||_0x52f2ef[_0x1d7578(0xfe)],_0x61c041=normalizeLegacyOutputFormat(_0x19ff6a),_0x505c51=_0x18ac07(_0x1d7578(0xf2))||_0x18cc7b?.['pageSize']||_0x52f2ef[_0x1d7578(0xe4)],_0x2c96e0=_0x505c51?Number(_0x505c51)||undefined:undefined,_0x19562e=_0xe310ad?[_0xe310ad[_0x1d7578(0xf6)][_0x1d7578(0xf9)],_0xe310ad[_0x1d7578(0xea)]['riskLevel']]:[_0x52f2ef[_0x1d7578(0xf9)]],_0x4a1de4=resolveRiskCeiling(..._0x19562e,_0x18cc7b?.['riskLevel']),_0x516e43=resolveRiskCeiling(_0x4a1de4,_0x18ac07(_0x1d7578(0xe6))),_0x5e4733=_0x18ac07(_0x1d7578(0xfa)),_0x1add7f=_0x5e4733==='1'||_0x5e4733===_0x1d7578(0xe1),_0x4b9ff2=_0x18cc7b?.[_0x1d7578(0xfb)]||_0x52f2ef['apiDir']||DEFAULT_CONFIG_VALUES['apiDir'],_0x8de06e=selectConfiguredRegion({'appRegion':_0x18cc7b?.[_0x1d7578(0xe3)],'projectRegion':_0x5f1d0c?_0x3deebb[_0x1d7578(0xe3)]:undefined,'globalRegion':_0x5f1d0c||_0x2a4ad0?_0x4017ca['region']:undefined,'mergedRegion':_0x52f2ef['region']}),_0x548ce1=normalizeLovrabetRegion(_0x8de06e[_0x1d7578(0xee)])??DEFAULT_LOVRABET_REGION,_0xe43805=isDaily(normalizeEnv(String(_0x8f1886)))?_0x1d7578(0x108):'production';return{'appCode':typeof _0xfe124e===_0x1d7578(0xf7)&&_0xfe124e[_0x1d7578(0xeb)]()?_0xfe124e[_0x1d7578(0xeb)]():undefined,'region':_0x548ce1,'regionConfiguredValue':_0x8de06e[_0x1d7578(0xee)],'regionSource':_0x8de06e[_0x1d7578(0xf1)],'env':_0xe43805,'locale':_0xbae109,'cookie':_0x3d3a0a,'accessKey':_0x36dcc2,'format':_0x61c041,'pageSize':_0x2c96e0,'riskLevel':_0x516e43,'verbose':_0x1add7f,'apiDir':_0x4b9ff2,'apps':_0xb33078,'defaultApp':_0x184383,'currentApp':_0x2f0c0e?_0x8366f0:undefined,'explicitAppName':_0x1039d9};}
1
+ (function(_0x360eba,_0x2c92df){const _0x4c427c=a272_0x7d22,_0x2b900a=_0x360eba();while(!![]){try{const _0x4e8ec2=parseInt(_0x4c427c(0x216))/0x1+parseInt(_0x4c427c(0x209))/0x2*(-parseInt(_0x4c427c(0x219))/0x3)+-parseInt(_0x4c427c(0x21f))/0x4*(parseInt(_0x4c427c(0x218))/0x5)+parseInt(_0x4c427c(0x215))/0x6*(-parseInt(_0x4c427c(0x1fc))/0x7)+-parseInt(_0x4c427c(0x202))/0x8*(parseInt(_0x4c427c(0x221))/0x9)+-parseInt(_0x4c427c(0x20d))/0xa*(parseInt(_0x4c427c(0x210))/0xb)+parseInt(_0x4c427c(0x203))/0xc;if(_0x4e8ec2===_0x2c92df)break;else _0x2b900a['push'](_0x2b900a['shift']());}catch(_0x3a56e0){_0x2b900a['push'](_0x2b900a['shift']());}}}(a272_0xc813,0x29852));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{isDaily,normalizeEnv}from'../constant/env.js';import{normalizeLegacyOutputFormat,riskLevelOrder}from'../framework/types.js';import{DEFAULT_LOVRABET_REGION,normalizeLovrabetRegion}from'../constant/region.js';import{selectConfiguredRegion}from'../config/region-config.js';function a272_0x7d22(_0x26f147,_0xfc267){_0x26f147=_0x26f147-0x1f4;const _0xc813fd=a272_0xc813();let _0x7d228d=_0xc813fd[_0x26f147];return _0x7d228d;}function stringConfigValue(_0x17baa1){const _0x46c400=a272_0x7d22;return typeof _0x17baa1===_0x46c400(0x206)&&_0x17baa1[_0x46c400(0x213)]()?_0x17baa1[_0x46c400(0x213)]():undefined;}function appProfiles(_0x3c4408){const _0x550129=a272_0x7d22;return _0x3c4408['apps']&&typeof _0x3c4408[_0x550129(0x207)]===_0x550129(0x200)?_0x3c4408[_0x550129(0x207)]:{};}function resolveDefaultAppName(_0x4b4294){const _0x48ed5a=a272_0x7d22,_0x27b83b=stringConfigValue(_0x4b4294[_0x48ed5a(0x220)]);if(_0x27b83b)return _0x27b83b;const _0x6899dc=Object[_0x48ed5a(0x208)](appProfiles(_0x4b4294));return _0x6899dc[_0x48ed5a(0x1f6)]===0x1?_0x6899dc[0x0]:undefined;}function resolveTopLevelAppCode(_0x550280){const _0x3d7099=a272_0x7d22;return stringConfigValue(_0x550280[_0x3d7099(0x1f8)])||stringConfigValue(_0x550280[_0x3d7099(0x214)]);}function normalizeRiskCeiling(_0x39289e){const _0x5b5a2c=a272_0x7d22;if(_0x39289e===undefined||_0x39289e===null)return undefined;if(_0x39289e===_0x5b5a2c(0x21a)||_0x39289e==='write'||_0x39289e===_0x5b5a2c(0x1ff))return _0x39289e;return'read';}function resolveRiskCeiling(..._0x464ed2){let _0x2aafe0;for(const _0x141842 of _0x464ed2){const _0x2c8f3=normalizeRiskCeiling(_0x141842);_0x2c8f3&&(!_0x2aafe0||riskLevelOrder(_0x2c8f3)<riskLevelOrder(_0x2aafe0))&&(_0x2aafe0=_0x2c8f3);}return _0x2aafe0??DEFAULT_CONFIG_VALUES['riskLevel'];}function a272_0xc813(){const _0x5368ac=['VERBOSE','8tdziEq','defaultApp','67356gatwSY','cookie','env','FORMAT','length','globalConfig','appcode','apiDir','source','accessKey','35917jdMwQK','projectConfig','region','high-risk-write','object','RISK_LEVEL','80hWnIOT','13874508rFwCmi','format','production','string','apps','keys','347210dSaJxG','filter','daily','value','223780qOoOor','APP','locale','99iaaHBq','riskLevel','entries','trim','app','306FOUUyU','32469rdlgcV','PAGE_SIZE','767710jDAXlp','3GJElax','read','ACCESS_KEY','pageSize','true'];a272_0xc813=function(){return _0x5368ac;};return a272_0xc813();}export function resolveAppConfig({raw:_0x242e74,flags:_0x50aaaa,layers:_0x5d4038,readEnv:_0x18d3ea}){const _0x1c2e56=a272_0x7d22,_0x351f5c=_0x5d4038?.[_0x1c2e56(0x1fd)]??{},_0x3cdff=_0x5d4038?.[_0x1c2e56(0x1f7)]??{},_0x3137ab=!!_0x5d4038?.['projectPath']||Object[_0x1c2e56(0x208)](_0x351f5c)[_0x1c2e56(0x1f6)]>0x0,_0x501e78=!_0x3137ab,_0x5684e4=_0x3137ab?resolveDefaultAppName(_0x351f5c):undefined,_0x564e9f=_0x501e78?resolveDefaultAppName(_0x3cdff):undefined,_0x8b4aaa=stringConfigValue(_0x50aaaa[_0x1c2e56(0x214)]),_0x588bb2=_0x18d3ea(_0x1c2e56(0x20e)),_0x2bd319={};if(_0x242e74[_0x1c2e56(0x207)]&&typeof _0x242e74['apps']===_0x1c2e56(0x200))for(const [_0x2374ae,_0x104989]of Object[_0x1c2e56(0x212)](_0x242e74[_0x1c2e56(0x207)])){_0x104989&&typeof _0x104989==='object'&&_0x104989[_0x1c2e56(0x1f8)]&&(_0x2bd319[_0x2374ae]=_0x104989);}const _0x147a52=_0x5684e4||_0x564e9f||resolveDefaultAppName(_0x242e74),_0x3a823a=Object['keys'](_0x2bd319)[_0x1c2e56(0x1f6)]>0x0,_0x501ac6=_0x8b4aaa||_0x5684e4||_0x588bb2||_0x564e9f||_0x147a52||undefined,_0xf579ee=stringConfigValue(_0x50aaaa[_0x1c2e56(0x1f8)]),_0x5906b9=_0xf579ee?Object[_0x1c2e56(0x212)](_0x2bd319)[_0x1c2e56(0x20a)](([,_0x31ce64])=>_0x31ce64?.[_0x1c2e56(0x1f8)]===_0xf579ee):[],_0x1c83af=_0x8b4aaa&&_0x2bd319[_0x8b4aaa]?.[_0x1c2e56(0x1f8)]===_0xf579ee?[_0x8b4aaa,_0x2bd319[_0x8b4aaa]]:undefined,_0x4c8ff9=_0x1c83af??(_0x5906b9['length']===0x1?_0x5906b9[0x0]:undefined),_0x3d1994=_0x4c8ff9?.[0x0],_0x279a8d=_0x4c8ff9?.[0x1],_0x292434=_0xf579ee?_0x3d1994:_0x501ac6;let _0x4556be=_0x292434&&_0x2bd319[_0x292434]?_0x2bd319[_0x292434]:undefined;_0xf579ee&&_0x279a8d&&(_0x4556be=_0x279a8d);const _0x27d5e8=_0xf579ee?_0x279a8d??_0x4556be:_0x4556be,_0x30c2fb=!_0x8b4aaa&&!_0x5684e4&&_0x588bb2&&_0x292434===_0x588bb2,_0x763376=_0x8b4aaa||(_0x30c2fb?_0x588bb2:undefined)||(_0xf579ee?_0x3d1994:undefined),_0x161d73=_0x27d5e8?.[_0x1c2e56(0x1f8)],_0xdfd891=_0x3137ab?resolveTopLevelAppCode(_0x351f5c):undefined,_0x9217a0=_0x501e78?resolveTopLevelAppCode(_0x3cdff):undefined,_0x1b2c99=_0x8b4aaa||_0x5684e4?_0x161d73:undefined,_0x599102=!_0x8b4aaa&&!_0x5684e4?_0x161d73:undefined,_0x38e72a=_0xf579ee||_0x1b2c99||_0xdfd891||_0x599102||_0x9217a0||undefined,_0x639e15=_0x3137ab?stringConfigValue(_0x351f5c['env']):undefined,_0x4fd18d=_0x501e78?stringConfigValue(_0x3cdff[_0x1c2e56(0x1f4)]):undefined,_0x4587c0=_0x50aaaa[_0x1c2e56(0x1f4)]||_0x27d5e8?.[_0x1c2e56(0x1f4)]||_0x639e15||_0x18d3ea('ENV')||_0x4fd18d||_0x242e74[_0x1c2e56(0x1f4)]||DEFAULT_CONFIG_VALUES[_0x1c2e56(0x1f4)],_0x1544f6=_0x27d5e8?.[_0x1c2e56(0x20f)]||_0x242e74['locale']||DEFAULT_CONFIG_VALUES[_0x1c2e56(0x20f)],_0x56c0ec=_0x18d3ea('COOKIE')||_0x27d5e8?.['cookie']||_0x242e74[_0x1c2e56(0x222)]||undefined,_0x5328b0=_0x18d3ea(_0x1c2e56(0x21b))||_0x27d5e8?.[_0x1c2e56(0x1fb)]||_0x242e74['accessKey']||undefined,_0x5ecb5c=_0x50aaaa[_0x1c2e56(0x204)]||_0x18d3ea(_0x1c2e56(0x1f5))||_0x27d5e8?.[_0x1c2e56(0x204)]||_0x242e74[_0x1c2e56(0x204)],_0x2f7872=normalizeLegacyOutputFormat(_0x5ecb5c),_0x31606c=_0x18d3ea(_0x1c2e56(0x217))||_0x27d5e8?.[_0x1c2e56(0x21c)]||_0x242e74[_0x1c2e56(0x21c)],_0x3c6669=_0x31606c?Number(_0x31606c)||undefined:undefined,_0x39c555=_0x5d4038?[_0x5d4038['globalConfig'][_0x1c2e56(0x211)],_0x5d4038[_0x1c2e56(0x1fd)][_0x1c2e56(0x211)]]:[_0x242e74[_0x1c2e56(0x211)]],_0x5aaf38=resolveRiskCeiling(..._0x39c555,_0x27d5e8?.[_0x1c2e56(0x211)]),_0x57bbe2=resolveRiskCeiling(_0x5aaf38,_0x18d3ea(_0x1c2e56(0x201))),_0x1b1c36=_0x18d3ea(_0x1c2e56(0x21e)),_0x3fdbe8=_0x1b1c36==='1'||_0x1b1c36===_0x1c2e56(0x21d),_0x416939=_0x27d5e8?.[_0x1c2e56(0x1f9)]||_0x242e74[_0x1c2e56(0x1f9)]||DEFAULT_CONFIG_VALUES[_0x1c2e56(0x1f9)],_0x40390b=selectConfiguredRegion({'appRegion':_0x27d5e8?.[_0x1c2e56(0x1fe)],'projectRegion':_0x3137ab?_0x351f5c['region']:undefined,'globalRegion':_0x3137ab||_0x501e78?_0x3cdff[_0x1c2e56(0x1fe)]:undefined,'mergedRegion':_0x242e74[_0x1c2e56(0x1fe)]}),_0x44f56c=normalizeLovrabetRegion(_0x40390b['value'])??DEFAULT_LOVRABET_REGION,_0x42f2a1=isDaily(normalizeEnv(String(_0x4587c0)))?_0x1c2e56(0x20b):_0x1c2e56(0x205);return{'appCode':typeof _0x38e72a===_0x1c2e56(0x206)&&_0x38e72a[_0x1c2e56(0x213)]()?_0x38e72a[_0x1c2e56(0x213)]():undefined,'region':_0x44f56c,'regionConfiguredValue':_0x40390b[_0x1c2e56(0x20c)],'regionSource':_0x40390b[_0x1c2e56(0x1fa)],'env':_0x42f2a1,'locale':_0x1544f6,'cookie':_0x56c0ec,'accessKey':_0x5328b0,'format':_0x2f7872,'pageSize':_0x3c6669,'riskLevel':_0x57bbe2,'verbose':_0x3fdbe8,'apiDir':_0x416939,'apps':_0x2bd319,'defaultApp':_0x147a52,'currentApp':_0x3a823a?_0x292434:undefined,'explicitAppName':_0x763376};}
@@ -1 +1 @@
1
- function a273_0x47b0(){const _0x5d21c6=['99QSzpMM','22dJNeyS','../auth/get-cookie.js','2757038JVKzMD','375340sjlrkj','10267425UggYbX','cookie','3CuRSRg','authRequired','5345vGGarK','268408llbFTb','120HOaKMu','5322716ZETSZO','15611950LHqZmi'];a273_0x47b0=function(){return _0x5d21c6;};return a273_0x47b0();}(function(_0x976261,_0x7e9ec4){const _0x57b265=a273_0x47ee,_0x13b71b=_0x976261();while(!![]){try{const _0x44798e=-parseInt(_0x57b265(0x6f))/0x1+parseInt(_0x57b265(0x6e))/0x2*(-parseInt(_0x57b265(0x72))/0x3)+parseInt(_0x57b265(0x77))/0x4+parseInt(_0x57b265(0x74))/0x5*(parseInt(_0x57b265(0x76))/0x6)+-parseInt(_0x57b265(0x70))/0x7+-parseInt(_0x57b265(0x75))/0x8*(parseInt(_0x57b265(0x79))/0x9)+-parseInt(_0x57b265(0x78))/0xa*(-parseInt(_0x57b265(0x7a))/0xb);if(_0x44798e===_0x7e9ec4)break;else _0x13b71b['push'](_0x13b71b['shift']());}catch(_0x1eb5a6){_0x13b71b['push'](_0x13b71b['shift']());}}}(a273_0x47b0,0xd8012));import{getIsSessionValid}from'../auth/is-session-valid.js';import{CliErrors}from'../errors.js';function a273_0x47ee(_0x3bd5dd,_0x52f7c5){_0x3bd5dd=_0x3bd5dd-0x6e;const _0x47b0b0=a273_0x47b0();let _0x47eecf=_0x47b0b0[_0x3bd5dd];return _0x47eecf;}export async function buildAuth(_0x3b00db){const _0x361423=a273_0x47ee,{getCookie:_0xe4341}=await import(_0x361423(0x7b)),_0x46b530=_0x3b00db[_0x361423(0x71)]||_0xe4341(),_0x4a7f17=_0x46b530?await getIsSessionValid():![];return{'cookie':_0x46b530,'isLoggedIn':_0x4a7f17,async 'getOrLogin'(){const _0x4dcd58=_0x361423;if(_0x46b530&&_0x4a7f17)return _0x46b530;throw CliErrors[_0x4dcd58(0x73)]();}};}
1
+ (function(_0x41521c,_0x52ac00){const _0x1c46d3=a273_0x1d13,_0x34209e=_0x41521c();while(!![]){try{const _0x2ed54c=-parseInt(_0x1c46d3(0x11e))/0x1*(-parseInt(_0x1c46d3(0x127))/0x2)+-parseInt(_0x1c46d3(0x11d))/0x3*(-parseInt(_0x1c46d3(0x11c))/0x4)+-parseInt(_0x1c46d3(0x120))/0x5+parseInt(_0x1c46d3(0x126))/0x6+parseInt(_0x1c46d3(0x11b))/0x7*(parseInt(_0x1c46d3(0x123))/0x8)+-parseInt(_0x1c46d3(0x11f))/0x9+-parseInt(_0x1c46d3(0x124))/0xa;if(_0x2ed54c===_0x52ac00)break;else _0x34209e['push'](_0x34209e['shift']());}catch(_0x575bb3){_0x34209e['push'](_0x34209e['shift']());}}}(a273_0x3bd3,0x96480));import{getIsSessionValid}from'../auth/is-session-valid.js';import{CliErrors}from'../errors.js';function a273_0x1d13(_0x1082a1,_0x5478a0){_0x1082a1=_0x1082a1-0x11b;const _0x3bd311=a273_0x3bd3();let _0x1d13dd=_0x3bd311[_0x1082a1];return _0x1d13dd;}function a273_0x3bd3(){const _0x2e9f39=['authRequired','7080828QpQDFr','762rgIBAu','133hSUEVG','3034468nrfdks','3unhyyn','2099YOWBoh','5586480NARRNF','881405KEaKiN','../auth/get-cookie.js','cookie','349168PUWNDu','21551950MKGntR'];a273_0x3bd3=function(){return _0x2e9f39;};return a273_0x3bd3();}export async function buildAuth(_0x59fcbb){const _0x507845=a273_0x1d13,{getCookie:_0xa5c951}=await import(_0x507845(0x121)),_0x4a0a4b=_0x59fcbb[_0x507845(0x122)]||_0xa5c951(),_0x3dcbfa=_0x4a0a4b?await getIsSessionValid():![];return{'cookie':_0x4a0a4b,'isLoggedIn':_0x3dcbfa,async 'getOrLogin'(){const _0x2ae435=_0x507845;if(_0x4a0a4b&&_0x3dcbfa)return _0x4a0a4b;throw CliErrors[_0x2ae435(0x125)]();}};}
@@ -1 +1 @@
1
- const a274_0x1276a9=a274_0x4a76;(function(_0x949816,_0x10e4b1){const _0x4f2adb=a274_0x4a76,_0x49a59a=_0x949816();while(!![]){try{const _0x55ddef=-parseInt(_0x4f2adb(0x14e))/0x1+-parseInt(_0x4f2adb(0x15a))/0x2+-parseInt(_0x4f2adb(0x16d))/0x3+parseInt(_0x4f2adb(0x178))/0x4*(-parseInt(_0x4f2adb(0x156))/0x5)+-parseInt(_0x4f2adb(0x14c))/0x6+parseInt(_0x4f2adb(0x16b))/0x7+parseInt(_0x4f2adb(0x14b))/0x8;if(_0x55ddef===_0x10e4b1)break;else _0x49a59a['push'](_0x49a59a['shift']());}catch(_0x4e287a){_0x49a59a['push'](_0x49a59a['shift']());}}}(a274_0x6c43,0xc84b9));import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{dirname,parse,resolve}from'node:path';import{homedir}from'node:os';import{CLI_BIN_NAME}from'../constant/cli.js';import{normalizeConfigForWrite}from'../config/schema.js';export const NEW_CONFIG_NAME=a274_0x1276a9(0x147);export const CONFIG_NAMES=[NEW_CONFIG_NAME];const normalizedWriteCache=new Map();export function resolveConfigPath(_0x5bfe25){for(const _0x221574 of CONFIG_NAMES){const _0xadbf34=resolve(_0x5bfe25,_0x221574);if(existsSync(_0xadbf34))return _0xadbf34;}return undefined;}export function findProjectRootDirectory(_0xcda5e9=process['cwd']()){let _0x4dd96f=resolve(_0xcda5e9);const {root:_0x4bffd1}=parse(_0x4dd96f),_0x45d174=homedir();while(!![]){if(resolveConfigPath(_0x4dd96f)){if(_0x4dd96f===_0x45d174)break;return _0x4dd96f;}if(_0x4dd96f===_0x4bffd1||_0x4dd96f===_0x45d174)break;const _0x1ef687=dirname(_0x4dd96f);if(_0x1ef687===_0x4dd96f)break;_0x4dd96f=_0x1ef687;}return resolve(_0xcda5e9);}export function getProjectConfigPath(){const _0x25cf5f=a274_0x1276a9;return resolveConfigPath(process[_0x25cf5f(0x153)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function isInProject(){return!!getProjectConfigPath();}export function inspectCliConfigJsonFile(_0x2c413f){const _0x320d46=a274_0x1276a9;if(!existsSync(_0x2c413f))return{'status':_0x320d46(0x165)};try{const _0x5573b9=readFileSync(_0x2c413f,{'encoding':_0x320d46(0x154)});if(!_0x5573b9?.[_0x320d46(0x151)]())return{'status':_0x320d46(0x16c)};const _0x216f9f=JSON['parse'](_0x5573b9);return{'status':'ok','data':_0x216f9f};}catch(_0xd1696b){return{'status':_0x320d46(0x160),'message':_0xd1696b instanceof Error?_0xd1696b[_0x320d46(0x169)]:String(_0xd1696b)};}}function parseCliConfigJsonFile(_0x4b2075,_0x255d62,_0x5f2b4b){const _0x521235=a274_0x1276a9,_0x3a020e=inspectCliConfigJsonFile(_0x4b2075);if(_0x3a020e['status']===_0x521235(0x165)||_0x3a020e[_0x521235(0x162)]===_0x521235(0x16c))return{};if(_0x3a020e[_0x521235(0x162)]==='ok')return _0x3a020e[_0x521235(0x158)];return _0x255d62===_0x521235(0x15e)&&_0x5f2b4b&&console[_0x521235(0x160)](CLI_BIN_NAME+':\x20'+_0x5f2b4b+_0x521235(0x16f)+_0x4b2075+_0x521235(0x15f)+_0x3a020e[_0x521235(0x169)]),{};}function normalizeLegacyConfigShape(_0x562772){const _0x224c17=a274_0x1276a9;if(!_0x562772||typeof _0x562772!==_0x224c17(0x15c))return{'config':{},'migrated':![]};const _0x114954={..._0x562772},_0x17ab7f=_0x114954[_0x224c17(0x161)]&&typeof _0x114954[_0x224c17(0x161)]===_0x224c17(0x15c)?{..._0x114954['apps']}:{},_0xce6964=Object[_0x224c17(0x171)](_0x17ab7f)[_0x224c17(0x155)],_0x1b4bc7=_0x114954[_0x224c17(0x157)]||_0x114954[_0x224c17(0x144)];let _0x5679ef=![];if(_0x1b4bc7&&_0xce6964===0x0){const _0xcb51e4=typeof _0x114954[_0x224c17(0x163)]===_0x224c17(0x150)&&_0x114954['defaultApp'][_0x224c17(0x151)]()?_0x114954[_0x224c17(0x163)]:String(_0x1b4bc7)[_0x224c17(0x151)]();_0x17ab7f[_0xcb51e4]={'appcode':String(_0x1b4bc7)['trim'](),..._0x114954[_0x224c17(0x16a)]!=null?{'env':_0x114954[_0x224c17(0x16a)]}:{},..._0x114954[_0x224c17(0x172)]!=null?{'apiDir':_0x114954[_0x224c17(0x172)]}:{},..._0x114954[_0x224c17(0x16e)]!=null?{'cookie':_0x114954['cookie']}:{},..._0x114954['accessKey']!=null?{'accessKey':_0x114954[_0x224c17(0x177)]}:{},..._0x114954[_0x224c17(0x167)]!=null?{'format':_0x114954[_0x224c17(0x167)]}:{},..._0x114954[_0x224c17(0x14d)]!=null?{'pageSize':_0x114954[_0x224c17(0x14d)]}:{},..._0x114954[_0x224c17(0x149)]!=null?{'riskLevel':_0x114954[_0x224c17(0x149)]}:{},..._0x114954[_0x224c17(0x168)]!=null?{'locale':_0x114954[_0x224c17(0x168)]}:{}},_0x114954['apps']=_0x17ab7f,delete _0x114954[_0x224c17(0x163)],_0x5679ef=!![];}return(_0x224c17(0x157)in _0x114954||_0x224c17(0x144)in _0x114954)&&(delete _0x114954[_0x224c17(0x157)],delete _0x114954[_0x224c17(0x144)],_0x5679ef=!![]),{'config':_0x114954,'migrated':_0x5679ef};}function writeNormalizedConfigIfNeeded(_0x455570,_0x27033c){const _0x4f3296=a274_0x1276a9,_0x443419=JSON[_0x4f3296(0x164)](normalizeConfigForWrite(_0x27033c),null,0x2)+'\x0a';if(normalizedWriteCache[_0x4f3296(0x143)](_0x455570)===_0x443419)return;writeConfigFile(_0x455570,_0x27033c),normalizedWriteCache[_0x4f3296(0x15b)](_0x455570,_0x443419);}function parseAndNormalizeConfig(_0x2052b3,_0x3c2692,_0x54dae3){const _0x2f3ce7=a274_0x1276a9,_0x28b7ea=parseCliConfigJsonFile(_0x2052b3,_0x3c2692,_0x54dae3),_0x40c16d=normalizeLegacyConfigShape(_0x28b7ea);if(_0x40c16d[_0x2f3ce7(0x148)])try{writeNormalizedConfigIfNeeded(_0x2052b3,_0x40c16d[_0x2f3ce7(0x176)]);}catch{}return _0x40c16d[_0x2f3ce7(0x176)];}export function loadRawConfigLayers(_0x49c859){const _0x24fea8=a274_0x1276a9;let _0x357c2a={},_0x22b902={};const _0xc1f8b2=resolveConfigPath(homedir());_0xc1f8b2&&(_0x357c2a=parseAndNormalizeConfig(_0xc1f8b2,'warn','Global'));const _0x3d8414=_0x49c859??findProjectRootDirectory(),_0x4bb565=resolveConfigPath(_0x3d8414);return _0x4bb565&&(_0x22b902=parseAndNormalizeConfig(_0x4bb565,_0x24fea8(0x15e),_0x24fea8(0x166))),{'globalPath':_0xc1f8b2,'projectPath':_0x4bb565,'globalConfig':_0x357c2a,'projectConfig':_0x22b902};}const INHERIT_WHITELIST=[a274_0x1276a9(0x16e),a274_0x1276a9(0x177),a274_0x1276a9(0x168),a274_0x1276a9(0x167),a274_0x1276a9(0x149),a274_0x1276a9(0x14d),a274_0x1276a9(0x152),a274_0x1276a9(0x173),'userDomain','apiDomain',a274_0x1276a9(0x14f),a274_0x1276a9(0x145),'kbDomain',a274_0x1276a9(0x14a),a274_0x1276a9(0x170),a274_0x1276a9(0x15d),a274_0x1276a9(0x175)];export function mergeRawConfigLayers(_0x244b09){const {globalConfig:_0x5329af,projectConfig:_0x3ecfca}=_0x244b09,_0x2466da=!!_0x244b09['projectPath']||Object['keys'](_0x3ecfca)['length']>0x0;if(!_0x2466da)return mergeGlobalOnly(_0x5329af);return mergeProjectFirst(_0x5329af,_0x3ecfca);}function mergeGlobalOnly(_0x301438){const _0x1472c9=a274_0x1276a9,_0xa6620c={..._0x301438};delete _0xa6620c['inherit'];const _0x50ace2=_0x301438['apps']&&typeof _0x301438[_0x1472c9(0x161)]===_0x1472c9(0x15c)?_0x301438[_0x1472c9(0x161)]:{};if(Object['keys'](_0x50ace2)[_0x1472c9(0x155)]>0x0)_0xa6620c[_0x1472c9(0x161)]=_0x50ace2;if(_0x301438[_0x1472c9(0x163)])_0xa6620c[_0x1472c9(0x163)]=_0x301438['defaultApp'];return _0xa6620c;}function a274_0x6c43(){const _0x5dd411=['\x20config\x20file\x20ignored\x20(invalid\x20JSON\x20or\x20unreadable):\x20','appDomain','keys','apiDir','routing','inherit','certificateDomain','config','accessKey','67476GLdSMT','get','app','skillDomain','silent','.rabetbase.json','migrated','riskLevel','kbServiceDomain','17245344IBLodh','2323638qdIGGi','pageSize','1130456Qnqhwm','runtimeDomain','string','trim','region','cwd','utf8','length','45RQsMNZ','appcode','data','.tmp','1287662TYduiT','set','object','localDomain','warn','\x0a\x20\x20','error','apps','status','defaultApp','stringify','missing','Project','format','locale','message','env','10894030tlqKuV','empty','1734504KRNeBh','cookie'];a274_0x6c43=function(){return _0x5dd411;};return a274_0x6c43();}function mergeProjectFirst(_0x7c33ec,_0x9e2ac6){const _0x5980e8=a274_0x1276a9,_0x48cf5b={..._0x9e2ac6};delete _0x48cf5b[_0x5980e8(0x174)];for(const _0x292710 of INHERIT_WHITELIST){!(_0x292710 in _0x48cf5b)&&_0x292710 in _0x7c33ec&&(_0x48cf5b[_0x292710]=_0x7c33ec[_0x292710]);}const _0x270918=_0x9e2ac6[_0x5980e8(0x161)]&&typeof _0x9e2ac6['apps']===_0x5980e8(0x15c)?_0x9e2ac6[_0x5980e8(0x161)]:{};return Object[_0x5980e8(0x171)](_0x270918)[_0x5980e8(0x155)]>0x0?_0x48cf5b['apps']=_0x270918:delete _0x48cf5b[_0x5980e8(0x161)],_0x5980e8(0x163)in _0x9e2ac6?_0x48cf5b['defaultApp']=_0x9e2ac6[_0x5980e8(0x163)]:delete _0x48cf5b[_0x5980e8(0x163)],_0x48cf5b;}export function readRawConfigWithLayers(_0x13493b){const _0x498728=loadRawConfigLayers(_0x13493b);return{'config':mergeRawConfigLayers(_0x498728),'layers':_0x498728};}export function readRawConfig(_0x54e945){return mergeRawConfigLayers(loadRawConfigLayers(_0x54e945));}export function readConfigFile(_0x23f924){const _0x3efd04=a274_0x1276a9;return parseAndNormalizeConfig(_0x23f924,_0x3efd04(0x146));}export function writeConfigFile(_0x59a422,_0x5a4f09){const _0xca61ec=a274_0x1276a9,_0x3b71ea=dirname(_0x59a422);!existsSync(_0x3b71ea)&&mkdirSync(_0x3b71ea,{'recursive':!![]});const _0x1e1cad=_0x59a422+_0xca61ec(0x159);try{const _0x26513c=normalizeConfigForWrite(_0x5a4f09);writeFileSync(_0x1e1cad,JSON[_0xca61ec(0x164)](_0x26513c,null,0x2)+'\x0a',{'encoding':_0xca61ec(0x154),'mode':0x180}),renameSync(_0x1e1cad,_0x59a422);}catch(_0x618853){try{unlinkSync(_0x1e1cad);}catch{}throw _0x618853;}}function a274_0x4a76(_0xa55ac1,_0x376536){_0xa55ac1=_0xa55ac1-0x143;const _0x6c43f1=a274_0x6c43();let _0x4a7681=_0x6c43f1[_0xa55ac1];return _0x4a7681;}export function resolveWriteConfigPath(_0x89698f){const _0x1dfca2=_0x89698f==='project'?process['cwd']():homedir(),_0x1a5f52=resolveConfigPath(_0x1dfca2);return _0x1a5f52??resolve(_0x1dfca2,NEW_CONFIG_NAME);}
1
+ const a274_0x2404d2=a274_0x2ad6;(function(_0x22cc53,_0x19ed32){const _0x5859aa=a274_0x2ad6,_0x26dab5=_0x22cc53();while(!![]){try{const _0x55935c=-parseInt(_0x5859aa(0x190))/0x1+parseInt(_0x5859aa(0x191))/0x2+-parseInt(_0x5859aa(0x1c1))/0x3*(-parseInt(_0x5859aa(0x18c))/0x4)+-parseInt(_0x5859aa(0x19f))/0x5*(-parseInt(_0x5859aa(0x1ae))/0x6)+parseInt(_0x5859aa(0x1ad))/0x7+parseInt(_0x5859aa(0x1b6))/0x8*(-parseInt(_0x5859aa(0x1ba))/0x9)+-parseInt(_0x5859aa(0x1a6))/0xa;if(_0x55935c===_0x19ed32)break;else _0x26dab5['push'](_0x26dab5['shift']());}catch(_0x22b2ea){_0x26dab5['push'](_0x26dab5['shift']());}}}(a274_0xfad9,0xce7a8));import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{dirname,parse,resolve}from'node:path';function a274_0x2ad6(_0x2714e5,_0x3902c3){_0x2714e5=_0x2714e5-0x18c;const _0xfad968=a274_0xfad9();let _0x2ad636=_0xfad968[_0x2714e5];return _0x2ad636;}import{homedir}from'node:os';import{CLI_BIN_NAME}from'../constant/cli.js';import{normalizeConfigForWrite}from'../config/schema.js';export const NEW_CONFIG_NAME=a274_0x2404d2(0x1c2);export const CONFIG_NAMES=[NEW_CONFIG_NAME];const normalizedWriteCache=new Map();export function resolveConfigPath(_0x27e5bd){for(const _0x3db284 of CONFIG_NAMES){const _0x952cc1=resolve(_0x27e5bd,_0x3db284);if(existsSync(_0x952cc1))return _0x952cc1;}return undefined;}export function findProjectRootDirectory(_0x1557ae=process[a274_0x2404d2(0x1b3)]()){let _0x28c91e=resolve(_0x1557ae);const {root:_0x443153}=parse(_0x28c91e),_0x572b59=homedir();while(!![]){if(resolveConfigPath(_0x28c91e)){if(_0x28c91e===_0x572b59)break;return _0x28c91e;}if(_0x28c91e===_0x443153||_0x28c91e===_0x572b59)break;const _0x55211b=dirname(_0x28c91e);if(_0x55211b===_0x28c91e)break;_0x28c91e=_0x55211b;}return resolve(_0x1557ae);}export function getProjectConfigPath(){const _0x21caa2=a274_0x2404d2;return resolveConfigPath(process[_0x21caa2(0x1b3)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function isInProject(){return!!getProjectConfigPath();}export function inspectCliConfigJsonFile(_0x220706){const _0x549000=a274_0x2404d2;if(!existsSync(_0x220706))return{'status':_0x549000(0x19a)};try{const _0x32c282=readFileSync(_0x220706,{'encoding':'utf8'});if(!_0x32c282?.[_0x549000(0x1aa)]())return{'status':_0x549000(0x1bd)};const _0x2d8b19=JSON[_0x549000(0x198)](_0x32c282);return{'status':'ok','data':_0x2d8b19};}catch(_0x24c174){return{'status':_0x549000(0x18e),'message':_0x24c174 instanceof Error?_0x24c174[_0x549000(0x1ac)]:String(_0x24c174)};}}function parseCliConfigJsonFile(_0x43bc8c,_0x3cacbe,_0x1231fe){const _0x32d38f=a274_0x2404d2,_0x5b6196=inspectCliConfigJsonFile(_0x43bc8c);if(_0x5b6196[_0x32d38f(0x195)]===_0x32d38f(0x19a)||_0x5b6196[_0x32d38f(0x195)]===_0x32d38f(0x1bd))return{};if(_0x5b6196[_0x32d38f(0x195)]==='ok')return _0x5b6196[_0x32d38f(0x1bf)];return _0x3cacbe==='warn'&&_0x1231fe&&console['error'](CLI_BIN_NAME+':\x20'+_0x1231fe+_0x32d38f(0x1af)+_0x43bc8c+_0x32d38f(0x18d)+_0x5b6196[_0x32d38f(0x1ac)]),{};}function normalizeLegacyConfigShape(_0x2949c1){const _0x5bfe4a=a274_0x2404d2;if(!_0x2949c1||typeof _0x2949c1!==_0x5bfe4a(0x1a3))return{'config':{},'migrated':![]};const _0x1f1270={..._0x2949c1},_0x7e498b=_0x1f1270[_0x5bfe4a(0x1b9)]&&typeof _0x1f1270[_0x5bfe4a(0x1b9)]===_0x5bfe4a(0x1a3)?{..._0x1f1270['apps']}:{},_0x43c817=Object[_0x5bfe4a(0x19c)](_0x7e498b)['length'],_0x593ad7=_0x1f1270[_0x5bfe4a(0x193)]||_0x1f1270['app'];let _0x4a8636=![];if(_0x593ad7&&_0x43c817===0x0){const _0x32061e=typeof _0x1f1270[_0x5bfe4a(0x1b1)]==='string'&&_0x1f1270['defaultApp'][_0x5bfe4a(0x1aa)]()?_0x1f1270['defaultApp']:String(_0x593ad7)[_0x5bfe4a(0x1aa)]();_0x7e498b[_0x32061e]={'appcode':String(_0x593ad7)[_0x5bfe4a(0x1aa)](),..._0x1f1270[_0x5bfe4a(0x1a2)]!=null?{'env':_0x1f1270[_0x5bfe4a(0x1a2)]}:{},..._0x1f1270[_0x5bfe4a(0x1b0)]!=null?{'apiDir':_0x1f1270[_0x5bfe4a(0x1b0)]}:{},..._0x1f1270['cookie']!=null?{'cookie':_0x1f1270[_0x5bfe4a(0x1c5)]}:{},..._0x1f1270['accessKey']!=null?{'accessKey':_0x1f1270['accessKey']}:{},..._0x1f1270[_0x5bfe4a(0x1a4)]!=null?{'format':_0x1f1270[_0x5bfe4a(0x1a4)]}:{},..._0x1f1270[_0x5bfe4a(0x1a8)]!=null?{'pageSize':_0x1f1270[_0x5bfe4a(0x1a8)]}:{},..._0x1f1270[_0x5bfe4a(0x1c4)]!=null?{'riskLevel':_0x1f1270[_0x5bfe4a(0x1c4)]}:{},..._0x1f1270['locale']!=null?{'locale':_0x1f1270[_0x5bfe4a(0x1b5)]}:{}},_0x1f1270[_0x5bfe4a(0x1b9)]=_0x7e498b,delete _0x1f1270[_0x5bfe4a(0x1b1)],_0x4a8636=!![];}return(_0x5bfe4a(0x193)in _0x1f1270||_0x5bfe4a(0x1b2)in _0x1f1270)&&(delete _0x1f1270[_0x5bfe4a(0x193)],delete _0x1f1270[_0x5bfe4a(0x1b2)],_0x4a8636=!![]),{'config':_0x1f1270,'migrated':_0x4a8636};}function writeNormalizedConfigIfNeeded(_0x148983,_0x34cf70){const _0x25bdef=a274_0x2404d2,_0x2c55f0=JSON['stringify'](normalizeConfigForWrite(_0x34cf70),null,0x2)+'\x0a';if(normalizedWriteCache[_0x25bdef(0x19d)](_0x148983)===_0x2c55f0)return;writeConfigFile(_0x148983,_0x34cf70),normalizedWriteCache[_0x25bdef(0x1b8)](_0x148983,_0x2c55f0);}function parseAndNormalizeConfig(_0x541655,_0x1bc1f3,_0x3c2336){const _0x21df58=a274_0x2404d2,_0x4ddc89=parseCliConfigJsonFile(_0x541655,_0x1bc1f3,_0x3c2336),_0x554872=normalizeLegacyConfigShape(_0x4ddc89);if(_0x554872[_0x21df58(0x1bb)])try{writeNormalizedConfigIfNeeded(_0x541655,_0x554872[_0x21df58(0x1a9)]);}catch{}return _0x554872[_0x21df58(0x1a9)];}export function loadRawConfigLayers(_0x46bd67){const _0xbd8f25=a274_0x2404d2;let _0x157877={},_0x23664a={};const _0x22a2c3=resolveConfigPath(homedir());_0x22a2c3&&(_0x157877=parseAndNormalizeConfig(_0x22a2c3,_0xbd8f25(0x1a0),_0xbd8f25(0x1c6)));const _0x486717=_0x46bd67??findProjectRootDirectory(),_0x3b618e=resolveConfigPath(_0x486717);return _0x3b618e&&(_0x23664a=parseAndNormalizeConfig(_0x3b618e,'warn',_0xbd8f25(0x18f))),{'globalPath':_0x22a2c3,'projectPath':_0x3b618e,'globalConfig':_0x157877,'projectConfig':_0x23664a};}const INHERIT_WHITELIST=[a274_0x2404d2(0x1c5),a274_0x2404d2(0x196),a274_0x2404d2(0x1b5),a274_0x2404d2(0x1a4),a274_0x2404d2(0x1c4),'pageSize',a274_0x2404d2(0x1c0),'routing',a274_0x2404d2(0x19e),a274_0x2404d2(0x199),a274_0x2404d2(0x1ab),a274_0x2404d2(0x194),a274_0x2404d2(0x1b7),a274_0x2404d2(0x1b4),'appDomain','localDomain',a274_0x2404d2(0x1a5)];export function mergeRawConfigLayers(_0x4bf953){const _0xf376c8=a274_0x2404d2,{globalConfig:_0x5c2396,projectConfig:_0x5be496}=_0x4bf953,_0x54cd1f=!!_0x4bf953[_0xf376c8(0x1bc)]||Object[_0xf376c8(0x19c)](_0x5be496)[_0xf376c8(0x197)]>0x0;if(!_0x54cd1f)return mergeGlobalOnly(_0x5c2396);return mergeProjectFirst(_0x5c2396,_0x5be496);}function mergeGlobalOnly(_0x5bc07b){const _0xe671e0=a274_0x2404d2,_0xe4fba0={..._0x5bc07b};delete _0xe4fba0[_0xe671e0(0x192)];const _0x4b8996=_0x5bc07b[_0xe671e0(0x1b9)]&&typeof _0x5bc07b[_0xe671e0(0x1b9)]===_0xe671e0(0x1a3)?_0x5bc07b['apps']:{};if(Object[_0xe671e0(0x19c)](_0x4b8996)[_0xe671e0(0x197)]>0x0)_0xe4fba0[_0xe671e0(0x1b9)]=_0x4b8996;if(_0x5bc07b[_0xe671e0(0x1b1)])_0xe4fba0['defaultApp']=_0x5bc07b[_0xe671e0(0x1b1)];return _0xe4fba0;}function mergeProjectFirst(_0x2c505d,_0x3214e4){const _0x18de92=a274_0x2404d2,_0x307b42={..._0x3214e4};delete _0x307b42[_0x18de92(0x192)];for(const _0x2cbe80 of INHERIT_WHITELIST){!(_0x2cbe80 in _0x307b42)&&_0x2cbe80 in _0x2c505d&&(_0x307b42[_0x2cbe80]=_0x2c505d[_0x2cbe80]);}const _0x54a288=_0x3214e4['apps']&&typeof _0x3214e4['apps']===_0x18de92(0x1a3)?_0x3214e4[_0x18de92(0x1b9)]:{};return Object[_0x18de92(0x19c)](_0x54a288)[_0x18de92(0x197)]>0x0?_0x307b42['apps']=_0x54a288:delete _0x307b42[_0x18de92(0x1b9)],_0x18de92(0x1b1)in _0x3214e4?_0x307b42[_0x18de92(0x1b1)]=_0x3214e4[_0x18de92(0x1b1)]:delete _0x307b42[_0x18de92(0x1b1)],_0x307b42;}function a274_0xfad9(){const _0x2c5b59=['runtimeDomain','message','2127195GvaGRA','35082ixHppb','\x20config\x20file\x20ignored\x20(invalid\x20JSON\x20or\x20unreadable):\x20','apiDir','defaultApp','app','cwd','kbServiceDomain','locale','958808QAQvIw','kbDomain','set','apps','63ZuGpXZ','migrated','projectPath','empty','silent','data','region','3297123AQUjnz','.rabetbase.json','.tmp','riskLevel','cookie','Global','4FXWYeD','\x0a\x20\x20','error','Project','62808VwRXnR','2168882NNrNUg','inherit','appcode','skillDomain','status','accessKey','length','parse','apiDomain','missing','project','keys','get','userDomain','1290wTJRwE','warn','stringify','env','object','format','certificateDomain','22483920aqaZIy','utf8','pageSize','config','trim'];a274_0xfad9=function(){return _0x2c5b59;};return a274_0xfad9();}export function readRawConfigWithLayers(_0xc223ae){const _0x3be2a8=loadRawConfigLayers(_0xc223ae);return{'config':mergeRawConfigLayers(_0x3be2a8),'layers':_0x3be2a8};}export function readRawConfig(_0x4a2fad){return mergeRawConfigLayers(loadRawConfigLayers(_0x4a2fad));}export function readConfigFile(_0x435857){const _0x13cb63=a274_0x2404d2;return parseAndNormalizeConfig(_0x435857,_0x13cb63(0x1be));}export function writeConfigFile(_0x1675ea,_0x507fac){const _0x5f4458=a274_0x2404d2,_0x46b275=dirname(_0x1675ea);!existsSync(_0x46b275)&&mkdirSync(_0x46b275,{'recursive':!![]});const _0x52dc1a=_0x1675ea+_0x5f4458(0x1c3);try{const _0x3764bc=normalizeConfigForWrite(_0x507fac);writeFileSync(_0x52dc1a,JSON[_0x5f4458(0x1a1)](_0x3764bc,null,0x2)+'\x0a',{'encoding':_0x5f4458(0x1a7),'mode':0x180}),renameSync(_0x52dc1a,_0x1675ea);}catch(_0xbcfca3){try{unlinkSync(_0x52dc1a);}catch{}throw _0xbcfca3;}}export function resolveWriteConfigPath(_0x3526c3){const _0x488956=a274_0x2404d2,_0x3f9f57=_0x3526c3===_0x488956(0x19b)?process[_0x488956(0x1b3)]():homedir(),_0x1f093f=resolveConfigPath(_0x3f9f57);return _0x1f093f??resolve(_0x3f9f57,NEW_CONFIG_NAME);}
package/lib/context.js CHANGED
@@ -1 +1 @@
1
- const a275_0x482171=a275_0x18cf;(function(_0x293d4d,_0x417ff1){const _0x22b4da=a275_0x18cf,_0x39172=_0x293d4d();while(!![]){try{const _0x4fefc3=parseInt(_0x22b4da(0x1ef))/0x1+-parseInt(_0x22b4da(0x1bd))/0x2+parseInt(_0x22b4da(0x1f8))/0x3+-parseInt(_0x22b4da(0x200))/0x4+parseInt(_0x22b4da(0x1c7))/0x5+parseInt(_0x22b4da(0x1dc))/0x6*(-parseInt(_0x22b4da(0x1ec))/0x7)+parseInt(_0x22b4da(0x1d0))/0x8;if(_0x4fefc3===_0x417ff1)break;else _0x39172['push'](_0x39172['shift']());}catch(_0x33f49e){_0x39172['push'](_0x39172['shift']());}}}(a275_0x4d08,0x5bdf6));import{CLI_BIN_NAME}from'./constant/cli.js';import{buildAuth}from'./context/auth-resolver.js';import{resolveAppConfig}from'./context/app-resolver.js';function a275_0x18cf(_0x1a2178,_0x191d55){_0x1a2178=_0x1a2178-0x1bc;const _0x4d0819=a275_0x4d08();let _0x18cffa=_0x4d0819[_0x1a2178];return _0x18cffa;}import{CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile}from'./context/config-loader.js';import{resolveConfiguredRegion,resolveEffectiveRegion}from'./config/region-config.js';import{resolveEnterpriseRoutingManifest}from'./config/domain-config.js';import{logger}from'./utils/logger.js';import{resolveApiModelSource}from'./api/model-source.js';function a275_0x4d08(){const _0x349936=['setRawCommand','3396810zOIRvf','slice','apiDomain','kbDomain','region','merged','projectConfig','./constant/domain.js','routing','1677448weMCvV','globalConfig','regionSource','length','name','apiDir','doctor','./constant/env.js','userDomain','daily','runtimeDomain','certificateDomain','76170lUZiGF','prototype','raw','domains','setLogPath','regionConfiguredValue','global','hasOwnProperty','values','app','source','join','map','./utils/is-non-interactive.js','app\x20profile\x20\x22','appcode','259tjgmgJ','cookie','argv','407879WOaPxc','string','platformDomain','project','Rabetbase\x20configuration','call','targetEnv','apps','localDomain','919266ZRmkKX','config','filePath','skillHubDomain','production','template_base_url','some','defaultApp','1966160moHwkq','trim','keys','531558ycQGXE','currentApp','kbServiceDomain','agentDomain','env','appDomain','skillDomain','cwd','object'];a275_0x4d08=function(){return _0x349936;};return a275_0x4d08();}export{CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile};function env(_0x5e2753){return process.env[`RABETBASE_${_0x5e2753}`]||process.env[`LOVRABET_${_0x5e2753}`]||undefined;}function optionalString(_0x178d9e){const _0xb3dd53=a275_0x18cf;return typeof _0x178d9e===_0xb3dd53(0x1f0)&&_0x178d9e['trim']()?_0x178d9e[_0xb3dd53(0x201)]():undefined;}export function isRoutingRecoveryService(_0x519696){const _0xd9968a=a275_0x18cf;return _0x519696===_0xd9968a(0x1f9)||_0x519696===_0xd9968a(0x1d6);}export async function createContext(_0x3079f9){const _0x588e1c=a275_0x18cf,{config:_0x32b3ca,layers:_0x33e347}=readRawConfigWithLayers(),_0x298aff=buildConfig(_0x32b3ca,_0x3079f9,_0x33e347);await initGlobalEnvironment(_0x298aff);const {getUserDomain:_0x5eb6ec,getApiDomain:_0x3e78f9}=await import(_0x588e1c(0x1ce)),_0x33264b={'apiDomain':_0x3e78f9(),'userDomain':_0x5eb6ec()},_0x58f72d=await buildAuth(_0x298aff);logger[_0x588e1c(0x1e0)](process[_0x588e1c(0x1c4)]());const _0x27bf4a=(CLI_BIN_NAME+'\x20'+process[_0x588e1c(0x1ee)][_0x588e1c(0x1c8)](0x2)[_0x588e1c(0x1e7)]('\x20'))[_0x588e1c(0x201)]();logger[_0x588e1c(0x1c6)](_0x27bf4a);const {isNonInteractive:_0x1010c1}=await import(_0x588e1c(0x1e9)),_0x422227=_0x1010c1(_0x3079f9);return{'config':_0x298aff,'auth':_0x58f72d,'logger':logger,'env':_0x33264b,'nonInteractive':_0x422227};}export function buildConfigFromFlags(_0x3610e4){const {config:_0xc43969,layers:_0x277045}=readRawConfigWithLayers();return buildConfig(_0xc43969,_0x3610e4,_0x277045);}export async function initGlobalEnvironment(_0x1e7066){const _0x4922fc=a275_0x18cf,_0x3f347d=_0x1e7066[_0x4922fc(0x1d2)]===_0x4922fc(0x1e5)&&_0x1e7066[_0x4922fc(0x1be)]?_0x4922fc(0x1ea)+_0x1e7066[_0x4922fc(0x1be)]+'\x22':_0x1e7066[_0x4922fc(0x1d2)]===_0x4922fc(0x1f2)?'project\x20Rabetbase\x20configuration':_0x1e7066[_0x4922fc(0x1d2)]===_0x4922fc(0x1e2)?'global\x20Rabetbase\x20configuration':_0x4922fc(0x1f3);await initConfiguredEnvironment({'raw':_0x1e7066[_0x4922fc(0x1de)],'configuredRegion':_0x1e7066[_0x4922fc(0x1e1)]??_0x1e7066[_0x4922fc(0x1de)]?.[_0x4922fc(0x1cb)]??_0x1e7066[_0x4922fc(0x1cb)],'regionLocation':_0x3f347d,'targetEnv':_0x1e7066[_0x4922fc(0x1c1)]});}async function initConfiguredEnvironment(_0xcd0548){const _0x2b7a74=a275_0x18cf,_0x301fda=resolveConfiguredRegion(_0xcd0548['configuredRegion'],_0xcd0548['regionLocation']),_0xfb6ff1=resolveEnterpriseRoutingManifest(_0xcd0548['raw']?.[_0x2b7a74(0x1cf)]),_0x76ca25={'region':_0x301fda,'apiDomain':_0xfb6ff1?_0xfb6ff1['domains'][_0x2b7a74(0x1c9)]:optionalString(_0xcd0548[_0x2b7a74(0x1de)]?.[_0x2b7a74(0x1c9)]),'userDomain':_0xfb6ff1?_0xfb6ff1[_0x2b7a74(0x1df)]['userDomain']:optionalString(_0xcd0548[_0x2b7a74(0x1de)]?.[_0x2b7a74(0x1d8)]),'runtimeDomain':_0xfb6ff1?_0xfb6ff1['domains'][_0x2b7a74(0x1da)]:optionalString(_0xcd0548[_0x2b7a74(0x1de)]?.[_0x2b7a74(0x1da)]),'skillDomain':_0xfb6ff1?_0xfb6ff1[_0x2b7a74(0x1df)][_0x2b7a74(0x1c3)]:optionalString(_0xcd0548[_0x2b7a74(0x1de)]?.[_0x2b7a74(0x1c3)])||optionalString(_0xcd0548['raw']?.['skillHubDomain'])||optionalString(_0xcd0548[_0x2b7a74(0x1de)]?.[_0x2b7a74(0x1c0)])||optionalString(_0xcd0548[_0x2b7a74(0x1de)]?.['platformDomain']),'kbDomain':_0xfb6ff1?_0xfb6ff1[_0x2b7a74(0x1df)]['kbDomain']:optionalString(_0xcd0548[_0x2b7a74(0x1de)]?.['kbDomain'])||optionalString(_0xcd0548[_0x2b7a74(0x1de)]?.['agentDomain'])||optionalString(_0xcd0548[_0x2b7a74(0x1de)]?.['platformDomain']),'kbServiceDomain':_0xfb6ff1?_0xfb6ff1[_0x2b7a74(0x1df)][_0x2b7a74(0x1bf)]:optionalString(_0xcd0548[_0x2b7a74(0x1de)]?.[_0x2b7a74(0x1bf)]),'appDomain':_0xfb6ff1?_0xfb6ff1[_0x2b7a74(0x1df)][_0x2b7a74(0x1c2)]:optionalString(_0xcd0548[_0x2b7a74(0x1de)]?.[_0x2b7a74(0x1c2)]),'localDomain':_0xfb6ff1?_0xfb6ff1[_0x2b7a74(0x1df)][_0x2b7a74(0x1f7)]:optionalString(_0xcd0548[_0x2b7a74(0x1de)]?.[_0x2b7a74(0x1f7)]),'certificateDomain':_0xfb6ff1?_0xfb6ff1[_0x2b7a74(0x1df)][_0x2b7a74(0x1db)]:optionalString(_0xcd0548[_0x2b7a74(0x1de)]?.[_0x2b7a74(0x1db)]),'cdn':_0xfb6ff1?.['cdn'],'allowOfficialKbServiceDefault':!(_0xfb6ff1!==undefined||[_0x2b7a74(0x1c9),'userDomain',_0x2b7a74(0x1da),_0x2b7a74(0x1c3),_0x2b7a74(0x1fb),_0x2b7a74(0x1ca),_0x2b7a74(0x1bf),'agentDomain',_0x2b7a74(0x1f1),_0x2b7a74(0x1c2),_0x2b7a74(0x1f7),_0x2b7a74(0x1db)][_0x2b7a74(0x1fe)](_0x1badbf=>Object['prototype'][_0x2b7a74(0x1e3)][_0x2b7a74(0x1f4)](_0xcd0548[_0x2b7a74(0x1de)]??{},_0x1badbf)))},{initEnv:_0x4c2f73}=await import(_0x2b7a74(0x1d7)),{initDomains:_0x1c31c9}=await import(_0x2b7a74(0x1ce));_0x4c2f73(_0xcd0548[_0x2b7a74(0x1f5)]),_0x1c31c9(_0x76ca25);}export async function initMultiAppEnvironment(_0x4d2782){const _0x3ee365=a275_0x18cf;await initConfiguredEnvironment({'raw':_0x4d2782['routingConfig'],'configuredRegion':_0x4d2782[_0x3ee365(0x1cb)],'regionLocation':_0x3ee365(0x1ea)+_0x4d2782[_0x3ee365(0x1d4)]+'\x22','targetEnv':_0x4d2782['env']===_0x3ee365(0x1d9)?'daily':_0x3ee365(0x1fc)});}export function getConfigAppCode(_0x952349){const _0x12afbc=a275_0x18cf,_0x56fa82=readRawConfig(_0x952349);if(_0x56fa82[_0x12afbc(0x1f6)]&&typeof _0x56fa82[_0x12afbc(0x1f6)]===_0x12afbc(0x1c5)){const _0x40fbac=_0x56fa82[_0x12afbc(0x1ff)];if(_0x40fbac)return _0x56fa82['apps'][_0x40fbac]?.[_0x12afbc(0x1eb)]?String(_0x56fa82['apps'][_0x40fbac][_0x12afbc(0x1eb)])['trim']():undefined;const _0x3e76fb=Object[_0x12afbc(0x1e4)](_0x56fa82[_0x12afbc(0x1f6)]);if(_0x3e76fb[_0x12afbc(0x1d3)]===0x1&&_0x3e76fb[0x0]?.[_0x12afbc(0x1eb)])return String(_0x3e76fb[0x0]['appcode'])[_0x12afbc(0x201)]();}const _0x585e28=_0x56fa82[_0x12afbc(0x1eb)]||_0x56fa82[_0x12afbc(0x1e5)];if(typeof _0x585e28!==_0x12afbc(0x1f0)||_0x585e28[_0x12afbc(0x201)]()==='')return undefined;return _0x585e28[_0x12afbc(0x201)]();}const CONNECTION_ROUTING_KEYS=[a275_0x482171(0x1cf),'apiDomain',a275_0x482171(0x1d8),a275_0x482171(0x1da),a275_0x482171(0x1c3),'skillHubDomain',a275_0x482171(0x1ca),a275_0x482171(0x1bf),a275_0x482171(0x1c0),a275_0x482171(0x1f1),a275_0x482171(0x1c2),'localDomain',a275_0x482171(0x1db)];function withAppProfileRouting(_0x49fcf7,_0x561cc3){const _0x11da07=a275_0x482171;if(!_0x561cc3||_0x561cc3[_0x11da07(0x1bf)]===undefined)return _0x49fcf7;return{..._0x49fcf7,'kbServiceDomain':_0x561cc3[_0x11da07(0x1bf)]};}function pickConnectionRoutingConfig(_0x4175e9,_0x2a8bf4){const _0x5824e8={'region':_0x2a8bf4};for(const _0x4f6ede of CONNECTION_ROUTING_KEYS){if(_0x4175e9[_0x4f6ede]!==undefined)_0x5824e8[_0x4f6ede]=_0x4175e9[_0x4f6ede];}return _0x5824e8;}export function getMultiAppConfigs(_0x5d6db1=a275_0x482171(0x1f2),_0x3d2af4){const _0x79af3b=a275_0x482171,_0x4a7225=loadRawConfigLayers(_0x3d2af4);let _0x249ee8,_0x2767a1;const _0x935b74=mergeRawConfigLayers(_0x4a7225),_0x2e7d2c=_0x4a7225[_0x79af3b(0x1d1)][_0x79af3b(0x1f6)]&&typeof _0x4a7225[_0x79af3b(0x1d1)][_0x79af3b(0x1f6)]===_0x79af3b(0x1c5)?_0x4a7225[_0x79af3b(0x1d1)]['apps']:{},_0x202fff=_0x4a7225['projectConfig'][_0x79af3b(0x1f6)]&&typeof _0x4a7225[_0x79af3b(0x1cd)][_0x79af3b(0x1f6)]===_0x79af3b(0x1c5)?_0x4a7225[_0x79af3b(0x1cd)]['apps']:{};_0x5d6db1===_0x79af3b(0x1cc)?(_0x249ee8={..._0x2e7d2c,..._0x202fff},_0x2767a1=_0x935b74['defaultApp']):(_0x249ee8=_0x4a7225[_0x79af3b(0x1cd)][_0x79af3b(0x1f6)],_0x2767a1=_0x4a7225[_0x79af3b(0x1cd)][_0x79af3b(0x1ff)]);!_0x2767a1&&_0x249ee8&&typeof _0x249ee8===_0x79af3b(0x1c5)&&Object[_0x79af3b(0x1bc)](_0x249ee8)[_0x79af3b(0x1d3)]===0x1&&(_0x2767a1=Object[_0x79af3b(0x1bc)](_0x249ee8)[0x0]);if(!_0x249ee8||typeof _0x249ee8!==_0x79af3b(0x1c5)||Object['keys'](_0x249ee8)[_0x79af3b(0x1d3)]===0x0)return null;return Object['entries'](_0x249ee8)[_0x79af3b(0x1e8)](([_0x48615c,_0x543bf2])=>{const _0x19eb66=_0x79af3b,_0xdac1f0=_0x5d6db1==='project'||Object[_0x19eb66(0x1dd)][_0x19eb66(0x1e3)][_0x19eb66(0x1f4)](_0x202fff,_0x48615c),_0x46b898=withAppProfileRouting(_0xdac1f0?_0x935b74:_0x4a7225['globalConfig'],_0x543bf2),_0x1ccf0c=resolveEffectiveRegion({'appRegion':_0x543bf2?.[_0x19eb66(0x1cb)],'projectRegion':_0xdac1f0?_0x4a7225[_0x19eb66(0x1cd)][_0x19eb66(0x1cb)]:undefined,'globalRegion':_0x4a7225[_0x19eb66(0x1d1)][_0x19eb66(0x1cb)],'mergedRegion':_0x46b898[_0x19eb66(0x1cb)],'appName':_0x48615c});return{'name':_0x48615c,'appcode':_0x543bf2?.[_0x19eb66(0x1eb)]||'','apiGroup':optionalString(_0x543bf2?.['apiGroup']),'isDefault':_0x48615c===_0x2767a1,'region':_0x1ccf0c[_0x19eb66(0x1cb)],'regionSource':_0x1ccf0c[_0x19eb66(0x1e6)],'env':_0x543bf2?.['env'],'apiDir':optionalString(_0x543bf2?.[_0x19eb66(0x1d5)])||optionalString(_0x46b898[_0x19eb66(0x1d5)]),'cookie':_0x543bf2?.[_0x19eb66(0x1ed)]||undefined,'routingConfig':pickConnectionRoutingConfig(_0x46b898,_0x1ccf0c[_0x19eb66(0x1cb)])};})['filter'](_0x2a23ee=>_0x2a23ee[_0x79af3b(0x1eb)]);}export function getTemplateBaseUrl(_0x18eaac){const _0x435635=a275_0x482171,_0x572092=readRawConfig(_0x18eaac);if(_0x572092[_0x435635(0x1fd)]&&typeof _0x572092[_0x435635(0x1fd)]==='string')return _0x572092[_0x435635(0x1fd)]['replace'](/\/$/,'');return'https://g.lovrabet.com/dist/lovrabet-skill';}function buildConfig(_0x1cc238,_0x373f9f,_0x556ce0){const _0x5ebe67=a275_0x482171,_0x397c8e=resolveAppConfig({'raw':_0x1cc238,'flags':_0x373f9f,'layers':_0x556ce0,'readEnv':env}),_0x3a5b15=_0x397c8e[_0x5ebe67(0x1be)]?_0x397c8e[_0x5ebe67(0x1f6)][_0x397c8e[_0x5ebe67(0x1be)]]:undefined;return{..._0x397c8e,'raw':withAppProfileRouting(_0x1cc238,_0x3a5b15)};}export function resolveApiFilePath(_0x191762,_0x5a715a,_0x177582){const _0x4eb813=a275_0x482171;return resolveApiModelSource(_0x191762,_0x5a715a,_0x177582)[_0x4eb813(0x1fa)];}
1
+ const a275_0x20bad6=a275_0x536f;function a275_0x536f(_0x20928a,_0x1f66ba){_0x20928a=_0x20928a-0x1d3;const _0x41e0d7=a275_0x41e0();let _0x536f99=_0x41e0d7[_0x20928a];return _0x536f99;}(function(_0x43900e,_0x33e1ee){const _0x769a38=a275_0x536f,_0x3383ba=_0x43900e();while(!![]){try{const _0x1259bc=parseInt(_0x769a38(0x209))/0x1*(-parseInt(_0x769a38(0x1fa))/0x2)+-parseInt(_0x769a38(0x211))/0x3+parseInt(_0x769a38(0x1ee))/0x4*(-parseInt(_0x769a38(0x1f7))/0x5)+parseInt(_0x769a38(0x1d7))/0x6+-parseInt(_0x769a38(0x1e0))/0x7+parseInt(_0x769a38(0x1de))/0x8+parseInt(_0x769a38(0x20a))/0x9;if(_0x1259bc===_0x33e1ee)break;else _0x3383ba['push'](_0x3383ba['shift']());}catch(_0x2c22c4){_0x3383ba['push'](_0x3383ba['shift']());}}}(a275_0x41e0,0x65338));import{CLI_BIN_NAME}from'./constant/cli.js';import{buildAuth}from'./context/auth-resolver.js';import{resolveAppConfig}from'./context/app-resolver.js';import{CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile}from'./context/config-loader.js';import{resolveConfiguredRegion,resolveEffectiveRegion}from'./config/region-config.js';import{resolveEnterpriseRoutingManifest}from'./config/domain-config.js';import{logger}from'./utils/logger.js';import{resolveApiModelSource}from'./api/model-source.js';export{CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile};function env(_0x301264){return process.env[`RABETBASE_${_0x301264}`]||process.env[`LOVRABET_${_0x301264}`]||undefined;}function optionalString(_0x2871f1){const _0x5e378c=a275_0x536f;return typeof _0x2871f1===_0x5e378c(0x21c)&&_0x2871f1[_0x5e378c(0x203)]()?_0x2871f1[_0x5e378c(0x203)]():undefined;}export function isRoutingRecoveryService(_0xb317fe){const _0x2b9f74=a275_0x536f;return _0xb317fe===_0x2b9f74(0x21a)||_0xb317fe===_0x2b9f74(0x217);}export async function createContext(_0x4f14ef){const _0x3cfd6b=a275_0x536f,{config:_0x4aff92,layers:_0x4987ea}=readRawConfigWithLayers(),_0x5013d9=buildConfig(_0x4aff92,_0x4f14ef,_0x4987ea);await initGlobalEnvironment(_0x5013d9);const {getUserDomain:_0x72f0f1,getApiDomain:_0x1690d4}=await import(_0x3cfd6b(0x1f8)),_0x51423b={'apiDomain':_0x1690d4(),'userDomain':_0x72f0f1()},_0x4ee90e=await buildAuth(_0x5013d9);logger['setLogPath'](process[_0x3cfd6b(0x1f5)]());const _0x598811=(CLI_BIN_NAME+'\x20'+process[_0x3cfd6b(0x214)][_0x3cfd6b(0x1fd)](0x2)[_0x3cfd6b(0x1d6)]('\x20'))[_0x3cfd6b(0x203)]();logger[_0x3cfd6b(0x202)](_0x598811);const {isNonInteractive:_0x5bb0e7}=await import(_0x3cfd6b(0x1f3)),_0x45c327=_0x5bb0e7(_0x4f14ef);return{'config':_0x5013d9,'auth':_0x4ee90e,'logger':logger,'env':_0x51423b,'nonInteractive':_0x45c327};}export function buildConfigFromFlags(_0x503e5d){const {config:_0x50fbe9,layers:_0x1af87}=readRawConfigWithLayers();return buildConfig(_0x50fbe9,_0x503e5d,_0x1af87);}export async function initGlobalEnvironment(_0x5380b3){const _0x29f5ef=a275_0x536f,_0xccf1b2=_0x5380b3['regionSource']===_0x29f5ef(0x205)&&_0x5380b3[_0x29f5ef(0x1d8)]?_0x29f5ef(0x1db)+_0x5380b3[_0x29f5ef(0x1d8)]+'\x22':_0x5380b3[_0x29f5ef(0x1e6)]===_0x29f5ef(0x1dc)?_0x29f5ef(0x1d4):_0x5380b3['regionSource']===_0x29f5ef(0x1f9)?_0x29f5ef(0x1f4):_0x29f5ef(0x1f0);await initConfiguredEnvironment({'raw':_0x5380b3[_0x29f5ef(0x1fe)],'configuredRegion':_0x5380b3[_0x29f5ef(0x213)]??_0x5380b3['raw']?.[_0x29f5ef(0x1e5)]??_0x5380b3[_0x29f5ef(0x1e5)],'regionLocation':_0xccf1b2,'targetEnv':_0x5380b3[_0x29f5ef(0x219)]});}async function initConfiguredEnvironment(_0x859a2c){const _0x26c874=a275_0x536f,_0x40dc7a=resolveConfiguredRegion(_0x859a2c[_0x26c874(0x1e2)],_0x859a2c[_0x26c874(0x1e3)]),_0x5ae2d6=resolveEnterpriseRoutingManifest(_0x859a2c[_0x26c874(0x1fe)]?.[_0x26c874(0x21d)]),_0x5bb22f={'region':_0x40dc7a,'apiDomain':_0x5ae2d6?_0x5ae2d6[_0x26c874(0x216)][_0x26c874(0x1e7)]:optionalString(_0x859a2c[_0x26c874(0x1fe)]?.[_0x26c874(0x1e7)]),'userDomain':_0x5ae2d6?_0x5ae2d6[_0x26c874(0x216)]['userDomain']:optionalString(_0x859a2c[_0x26c874(0x1fe)]?.['userDomain']),'runtimeDomain':_0x5ae2d6?_0x5ae2d6[_0x26c874(0x216)][_0x26c874(0x208)]:optionalString(_0x859a2c[_0x26c874(0x1fe)]?.['runtimeDomain']),'skillDomain':_0x5ae2d6?_0x5ae2d6['domains'][_0x26c874(0x210)]:optionalString(_0x859a2c[_0x26c874(0x1fe)]?.['skillDomain'])||optionalString(_0x859a2c[_0x26c874(0x1fe)]?.[_0x26c874(0x1e8)])||optionalString(_0x859a2c[_0x26c874(0x1fe)]?.[_0x26c874(0x1f2)])||optionalString(_0x859a2c[_0x26c874(0x1fe)]?.['platformDomain']),'kbDomain':_0x5ae2d6?_0x5ae2d6[_0x26c874(0x216)]['kbDomain']:optionalString(_0x859a2c[_0x26c874(0x1fe)]?.[_0x26c874(0x1ea)])||optionalString(_0x859a2c[_0x26c874(0x1fe)]?.[_0x26c874(0x1f2)])||optionalString(_0x859a2c[_0x26c874(0x1fe)]?.[_0x26c874(0x1df)]),'kbServiceDomain':_0x5ae2d6?_0x5ae2d6['domains']['kbServiceDomain']:optionalString(_0x859a2c[_0x26c874(0x1fe)]?.[_0x26c874(0x1dd)]),'appDomain':_0x5ae2d6?_0x5ae2d6[_0x26c874(0x216)]['appDomain']:optionalString(_0x859a2c[_0x26c874(0x1fe)]?.[_0x26c874(0x206)]),'localDomain':_0x5ae2d6?_0x5ae2d6[_0x26c874(0x216)][_0x26c874(0x1e1)]:optionalString(_0x859a2c[_0x26c874(0x1fe)]?.[_0x26c874(0x1e1)]),'certificateDomain':_0x5ae2d6?_0x5ae2d6[_0x26c874(0x216)][_0x26c874(0x200)]:optionalString(_0x859a2c[_0x26c874(0x1fe)]?.[_0x26c874(0x200)]),'cdn':_0x5ae2d6?.[_0x26c874(0x1d9)],'allowOfficialKbServiceDefault':!(_0x5ae2d6!==undefined||[_0x26c874(0x1e7),'userDomain',_0x26c874(0x208),_0x26c874(0x210),_0x26c874(0x1e8),_0x26c874(0x1ea),_0x26c874(0x1dd),'agentDomain',_0x26c874(0x1df),_0x26c874(0x206),'localDomain',_0x26c874(0x200)][_0x26c874(0x1ed)](_0x312158=>Object['prototype'][_0x26c874(0x1eb)]['call'](_0x859a2c[_0x26c874(0x1fe)]??{},_0x312158)))},{initEnv:_0x7a4b8e}=await import(_0x26c874(0x1d5)),{initDomains:_0x3e3070}=await import(_0x26c874(0x1f8));_0x7a4b8e(_0x859a2c[_0x26c874(0x20e)]),_0x3e3070(_0x5bb22f);}export async function initMultiAppEnvironment(_0x2890c7){const _0x356e64=a275_0x536f;await initConfiguredEnvironment({'raw':_0x2890c7[_0x356e64(0x1f1)],'configuredRegion':_0x2890c7[_0x356e64(0x1e5)],'regionLocation':'app\x20profile\x20\x22'+_0x2890c7[_0x356e64(0x1ef)]+'\x22','targetEnv':_0x2890c7['env']===_0x356e64(0x207)?'daily':'production'});}export function getConfigAppCode(_0x10d7fa){const _0x59fd0f=a275_0x536f,_0x58f47c=readRawConfig(_0x10d7fa);if(_0x58f47c['apps']&&typeof _0x58f47c[_0x59fd0f(0x20f)]===_0x59fd0f(0x220)){const _0x1e4779=_0x58f47c['defaultApp'];if(_0x1e4779)return _0x58f47c[_0x59fd0f(0x20f)][_0x1e4779]?.[_0x59fd0f(0x1fb)]?String(_0x58f47c[_0x59fd0f(0x20f)][_0x1e4779][_0x59fd0f(0x1fb)])[_0x59fd0f(0x203)]():undefined;const _0x456c6b=Object['values'](_0x58f47c[_0x59fd0f(0x20f)]);if(_0x456c6b[_0x59fd0f(0x204)]===0x1&&_0x456c6b[0x0]?.[_0x59fd0f(0x1fb)])return String(_0x456c6b[0x0][_0x59fd0f(0x1fb)])[_0x59fd0f(0x203)]();}const _0x33fa9a=_0x58f47c['appcode']||_0x58f47c[_0x59fd0f(0x205)];if(typeof _0x33fa9a!==_0x59fd0f(0x21c)||_0x33fa9a[_0x59fd0f(0x203)]()==='')return undefined;return _0x33fa9a['trim']();}const CONNECTION_ROUTING_KEYS=['routing',a275_0x20bad6(0x1e7),'userDomain',a275_0x20bad6(0x208),'skillDomain',a275_0x20bad6(0x1e8),a275_0x20bad6(0x1ea),a275_0x20bad6(0x1dd),'agentDomain',a275_0x20bad6(0x1df),a275_0x20bad6(0x206),a275_0x20bad6(0x1e1),a275_0x20bad6(0x200)];function withAppProfileRouting(_0x5a0889,_0x5d873f){const _0x144900=a275_0x20bad6;if(!_0x5d873f||_0x5d873f[_0x144900(0x1dd)]===undefined)return _0x5a0889;return{..._0x5a0889,'kbServiceDomain':_0x5d873f[_0x144900(0x1dd)]};}function pickConnectionRoutingConfig(_0x1cb626,_0x31314e){const _0x52e665={'region':_0x31314e};for(const _0x186d09 of CONNECTION_ROUTING_KEYS){if(_0x1cb626[_0x186d09]!==undefined)_0x52e665[_0x186d09]=_0x1cb626[_0x186d09];}return _0x52e665;}export function getMultiAppConfigs(_0xbc0078=a275_0x20bad6(0x1dc),_0x50a446){const _0x3bf04f=a275_0x20bad6,_0xd10fd7=loadRawConfigLayers(_0x50a446);let _0x31591a,_0x208f25;const _0x4bb2d7=mergeRawConfigLayers(_0xd10fd7),_0x393303=_0xd10fd7[_0x3bf04f(0x21b)][_0x3bf04f(0x20f)]&&typeof _0xd10fd7[_0x3bf04f(0x21b)][_0x3bf04f(0x20f)]===_0x3bf04f(0x220)?_0xd10fd7[_0x3bf04f(0x21b)][_0x3bf04f(0x20f)]:{},_0x436e96=_0xd10fd7[_0x3bf04f(0x21e)]['apps']&&typeof _0xd10fd7[_0x3bf04f(0x21e)][_0x3bf04f(0x20f)]===_0x3bf04f(0x220)?_0xd10fd7['projectConfig'][_0x3bf04f(0x20f)]:{};_0xbc0078===_0x3bf04f(0x215)?(_0x31591a={..._0x393303,..._0x436e96},_0x208f25=_0x4bb2d7[_0x3bf04f(0x1e4)]):(_0x31591a=_0xd10fd7['projectConfig'][_0x3bf04f(0x20f)],_0x208f25=_0xd10fd7[_0x3bf04f(0x21e)]['defaultApp']);!_0x208f25&&_0x31591a&&typeof _0x31591a==='object'&&Object['keys'](_0x31591a)[_0x3bf04f(0x204)]===0x1&&(_0x208f25=Object[_0x3bf04f(0x20c)](_0x31591a)[0x0]);if(!_0x31591a||typeof _0x31591a!==_0x3bf04f(0x220)||Object[_0x3bf04f(0x20c)](_0x31591a)['length']===0x0)return null;return Object[_0x3bf04f(0x1da)](_0x31591a)[_0x3bf04f(0x212)](([_0x118af9,_0x3ae841])=>{const _0xf1b3f4=_0x3bf04f,_0x36820e=_0xbc0078===_0xf1b3f4(0x1dc)||Object[_0xf1b3f4(0x1ff)][_0xf1b3f4(0x1eb)][_0xf1b3f4(0x1f6)](_0x436e96,_0x118af9),_0x425c29=withAppProfileRouting(_0x36820e?_0x4bb2d7:_0xd10fd7[_0xf1b3f4(0x21b)],_0x3ae841),_0x411e02=resolveEffectiveRegion({'appRegion':_0x3ae841?.[_0xf1b3f4(0x1e5)],'projectRegion':_0x36820e?_0xd10fd7[_0xf1b3f4(0x21e)][_0xf1b3f4(0x1e5)]:undefined,'globalRegion':_0xd10fd7[_0xf1b3f4(0x21b)]['region'],'mergedRegion':_0x425c29[_0xf1b3f4(0x1e5)],'appName':_0x118af9});return{'name':_0x118af9,'appcode':_0x3ae841?.['appcode']||'','apiGroup':optionalString(_0x3ae841?.[_0xf1b3f4(0x1ec)]),'isDefault':_0x118af9===_0x208f25,'region':_0x411e02[_0xf1b3f4(0x1e5)],'regionSource':_0x411e02[_0xf1b3f4(0x218)],'env':_0x3ae841?.[_0xf1b3f4(0x219)],'apiDir':optionalString(_0x3ae841?.[_0xf1b3f4(0x21f)])||optionalString(_0x425c29[_0xf1b3f4(0x21f)]),'cookie':_0x3ae841?.[_0xf1b3f4(0x1d3)]||undefined,'routingConfig':pickConnectionRoutingConfig(_0x425c29,_0x411e02[_0xf1b3f4(0x1e5)])};})[_0x3bf04f(0x1fc)](_0x49aafb=>_0x49aafb['appcode']);}export function getTemplateBaseUrl(_0x20597c){const _0x5997dc=a275_0x20bad6,_0x5811ea=readRawConfig(_0x20597c);if(_0x5811ea['template_base_url']&&typeof _0x5811ea[_0x5997dc(0x20d)]===_0x5997dc(0x21c))return _0x5811ea[_0x5997dc(0x20d)][_0x5997dc(0x201)](/\/$/,'');return _0x5997dc(0x1e9);}function buildConfig(_0x3e6754,_0x4b2a46,_0x40d5a2){const _0x2412e0=a275_0x20bad6,_0x24e634=resolveAppConfig({'raw':_0x3e6754,'flags':_0x4b2a46,'layers':_0x40d5a2,'readEnv':env}),_0x5309f3=_0x24e634['currentApp']?_0x24e634[_0x2412e0(0x20f)][_0x24e634['currentApp']]:undefined;return{..._0x24e634,'raw':withAppProfileRouting(_0x3e6754,_0x5309f3)};}function a275_0x41e0(){const _0x1c10c6=['string','routing','projectConfig','apiDir','object','cookie','project\x20Rabetbase\x20configuration','./constant/env.js','join','4017000smTfBP','currentApp','cdn','entries','app\x20profile\x20\x22','project','kbServiceDomain','3373032YUucGQ','platformDomain','5999ePJyaZ','localDomain','configuredRegion','regionLocation','defaultApp','region','regionSource','apiDomain','skillHubDomain','https://g.lovrabet.com/dist/lovrabet-skill','kbDomain','hasOwnProperty','apiGroup','some','16VDFhaK','name','Rabetbase\x20configuration','routingConfig','agentDomain','./utils/is-non-interactive.js','global\x20Rabetbase\x20configuration','cwd','call','564100PpPWov','./constant/domain.js','global','12YlsxQW','appcode','filter','slice','raw','prototype','certificateDomain','replace','setRawCommand','trim','length','app','appDomain','daily','runtimeDomain','104040wxMcKm','6299091CYWFIj','filePath','keys','template_base_url','targetEnv','apps','skillDomain','900393LnfWcB','map','regionConfiguredValue','argv','merged','domains','doctor','source','env','config','globalConfig'];a275_0x41e0=function(){return _0x1c10c6;};return a275_0x41e0();}export function resolveApiFilePath(_0x117cd6,_0x2222da,_0x4fe37b){const _0x26272d=a275_0x20bad6;return resolveApiModelSource(_0x117cd6,_0x2222da,_0x4fe37b)[_0x26272d(0x20b)];}
@@ -1 +1 @@
1
- const a276_0xa6c236=a276_0x20fe;(function(_0x92527c,_0x59ddf1){const _0x328f35=a276_0x20fe,_0x497d18=_0x92527c();while(!![]){try{const _0x19f9c7=-parseInt(_0x328f35(0x1c7))/0x1+parseInt(_0x328f35(0x1b2))/0x2*(-parseInt(_0x328f35(0x1a5))/0x3)+parseInt(_0x328f35(0x1ab))/0x4+parseInt(_0x328f35(0x1c3))/0x5+-parseInt(_0x328f35(0x1aa))/0x6+parseInt(_0x328f35(0x1bf))/0x7+parseInt(_0x328f35(0x1bd))/0x8;if(_0x19f9c7===_0x59ddf1)break;else _0x497d18['push'](_0x497d18['shift']());}catch(_0x5854f4){_0x497d18['push'](_0x497d18['shift']());}}}(a276_0x4c3b,0x5098a));import{existsSync,readFileSync,realpathSync,statSync}from'node:fs';import{dirname,extname,isAbsolute,relative,resolve}from'node:path';import{MODEL_REGISTRY_FILE_NAME,getProfileModels,readModelRegistry}from'../api/model-registry-file.js';import{parseLegacyApiModels}from'../api/legacy-api-file.js';import{findProjectRootDirectory}from'../context/config-loader.js';function a276_0x20fe(_0x2e9070,_0xf80c8a){_0x2e9070=_0x2e9070-0x19f;const _0x4c3b45=a276_0x4c3b();let _0x20fe63=_0x4c3b45[_0x2e9070];return _0x20fe63;}const cache=new Map(),MAX_LOCAL_REEXPORT_DEPTH=0x8,SOURCE_FILE_EXTENSIONS=[a276_0xa6c236(0x1c0),'.tsx',a276_0xa6c236(0x1a0),a276_0xa6c236(0x1a1),a276_0xa6c236(0x1be),a276_0xa6c236(0x1ad),a276_0xa6c236(0x1a3),a276_0xa6c236(0x1a4)],LOCAL_REEXPORT_RE=/\bexport\s+(?:type\s+)?(?:\{[\s\S]*?\}|\*)\s+from\s*["']([^"']+)["']/g,SOURCE_EXTENSIONS_BY_RUNTIME_EXTENSION={'.js':[a276_0xa6c236(0x1c0),a276_0xa6c236(0x1c8)],'.jsx':[a276_0xa6c236(0x1c8)],'.mjs':[a276_0xa6c236(0x1a0)],'.cjs':[a276_0xa6c236(0x1a1)]};function parseApiFile(_0x197230){const _0x2c1b18=a276_0xa6c236;return parseLegacyApiModels(_0x197230)['flatMap'](_0x35cd13=>_0x35cd13[_0x2c1b18(0x1a7)]?[{'alias':_0x35cd13[_0x2c1b18(0x1a7)],'datasetCode':_0x35cd13['datasetCode'],'tableName':_0x35cd13[_0x2c1b18(0x1c2)],'name':_0x35cd13['name']}]:[]);}function isWithinRoot(_0x20fa3c,_0x2c69b9){const _0x4e70db=a276_0xa6c236,_0x1dd4b7=relative(_0x20fa3c,_0x2c69b9);return _0x1dd4b7===''||!_0x1dd4b7[_0x4e70db(0x1ba)]('..')&&!isAbsolute(_0x1dd4b7);}function resolveExistingFile(_0x802ba1){const _0x34731a=a276_0xa6c236;if(!existsSync(_0x802ba1))return undefined;try{return statSync(_0x802ba1)[_0x34731a(0x1af)]()?realpathSync(_0x802ba1):undefined;}catch{return undefined;}}function reexportCandidatePaths(_0x52aac7){const _0xb998ef=a276_0xa6c236,_0x4fb5bf=extname(_0x52aac7);if(!_0x4fb5bf)return[...SOURCE_FILE_EXTENSIONS[_0xb998ef(0x1c1)](_0x97276b=>''+_0x52aac7+_0x97276b),...SOURCE_FILE_EXTENSIONS[_0xb998ef(0x1c1)](_0x546737=>resolve(_0x52aac7,_0xb998ef(0x1b5)+_0x546737))];const _0x1114e5=SOURCE_EXTENSIONS_BY_RUNTIME_EXTENSION[_0x4fb5bf];if(!_0x1114e5)return[_0x52aac7];const _0x393eda=_0x52aac7[_0xb998ef(0x1c5)](0x0,-_0x4fb5bf[_0xb998ef(0x1a8)]);return[..._0x1114e5[_0xb998ef(0x1c1)](_0x319c94=>''+_0x393eda+_0x319c94),_0x52aac7];}function resolveLocalReexport(_0x1dfa0a,_0x1774d2,_0x1dc9ad){const _0x2e7697=a276_0xa6c236;if(!_0x1774d2[_0x2e7697(0x1ba)]('./')&&!_0x1774d2['startsWith'](_0x2e7697(0x1bc)))return undefined;const _0x579deb=resolve(dirname(_0x1dfa0a),_0x1774d2);if(!isWithinRoot(_0x1dc9ad,_0x579deb))return undefined;for(const _0x4da117 of reexportCandidatePaths(_0x579deb)){const _0x588f0e=resolveExistingFile(_0x4da117);if(_0x588f0e&&isWithinRoot(_0x1dc9ad,_0x588f0e))return _0x588f0e;}return undefined;}function parseApiFileTree(_0x1d19cf,_0x1d6a2c,_0x1186ab,_0x484556){const _0x34921b=a276_0xa6c236,_0x102e34=resolveExistingFile(_0x1d19cf);if(!_0x102e34)return[];const _0x2ef499=_0x1186ab[_0x34921b(0x1b3)](_0x102e34);if(_0x2ef499!==undefined&&_0x2ef499<=_0x484556)return[];_0x1186ab[_0x34921b(0x1a9)](_0x102e34,_0x484556);const _0xc5cfd0=readFileSync(_0x102e34,_0x34921b(0x1b4)),_0x54501e=parseApiFile(_0xc5cfd0);if(_0x484556>=MAX_LOCAL_REEXPORT_DEPTH)return _0x54501e;const _0x7ec0f6=new RegExp(LOCAL_REEXPORT_RE[_0x34921b(0x1c4)],LOCAL_REEXPORT_RE['flags']);let _0x3d451a;while((_0x3d451a=_0x7ec0f6[_0x34921b(0x1bb)](_0xc5cfd0))!==null){const _0xc5f26c=resolveLocalReexport(_0x102e34,_0x3d451a[0x1],_0x1d6a2c);_0xc5f26c&&_0x54501e['push'](...parseApiFileTree(_0xc5f26c,_0x1d6a2c,_0x1186ab,_0x484556+0x1));}return _0x54501e;}function aliasProjectRoot(_0x183ff2){const _0x368a13=findProjectRootDirectory(dirname(_0x183ff2));try{return realpathSync(_0x368a13);}catch{return _0x368a13;}}function uniqueAliasEntries(_0x55c314){const _0x1f3ff5=a276_0xa6c236,_0x285ade=new Set();return _0x55c314[_0x1f3ff5(0x1b9)](_0x5786c0=>{const _0x31a473=_0x1f3ff5,_0x587d0d=JSON[_0x31a473(0x1b1)](_0x5786c0);if(_0x285ade[_0x31a473(0x1b7)](_0x587d0d))return![];return _0x285ade[_0x31a473(0x1b6)](_0x587d0d),!![];});}export function loadAliasMap(_0x34ff2c,_0x1f1779,_0x451559,_0x6af3b7){const _0x467f5=a276_0xa6c236,_0x2bc14b=resolve(_0x451559??resolve(process[_0x467f5(0x1b8)](),_0x34ff2c,_0x467f5(0x1ae))),_0x1c4055=_0x6af3b7?_0x2bc14b+'#'+_0x6af3b7:_0x2bc14b;if(cache[_0x467f5(0x1b7)](_0x1c4055))return cache[_0x467f5(0x1b3)](_0x1c4055);if(!existsSync(_0x2bc14b))return cache[_0x467f5(0x1a9)](_0x1c4055,[]),[];try{if(_0x2bc14b[_0x467f5(0x1a2)](MODEL_REGISTRY_FILE_NAME)){const _0x58ba59=readModelRegistry(_0x2bc14b),_0x4937f6=_0x6af3b7??_0x58ba59?.[_0x467f5(0x19f)],_0x43860a=_0x4937f6&&_0x58ba59?getProfileModels(_0x58ba59,_0x4937f6):[],_0x5eb631=uniqueAliasEntries(_0x43860a[_0x467f5(0x1b0)](_0x2e7d8c=>_0x2e7d8c['alias']?[{'alias':_0x2e7d8c[_0x467f5(0x1a7)],'datasetCode':_0x2e7d8c[_0x467f5(0x1c6)],'tableName':_0x2e7d8c[_0x467f5(0x1c2)],'name':_0x2e7d8c[_0x467f5(0x1a6)]}]:[]));return cache['set'](_0x1c4055,_0x5eb631),_0x5eb631;}const _0x1bb381=uniqueAliasEntries(parseApiFileTree(_0x2bc14b,aliasProjectRoot(_0x2bc14b),new Map(),0x0));return cache[_0x467f5(0x1a9)](_0x1c4055,_0x1bb381),_0x1bb381;}catch{return cache[_0x467f5(0x1a9)](_0x1c4055,[]),[];}}export function resolveAlias(_0x22f796,_0x19b7cc,_0x19fcd6,_0x793311,_0x1a9504){const _0x54dfcc=a276_0xa6c236;if(!_0x19b7cc)return undefined;const _0x56bf53=loadAliasMap(_0x22f796,_0x19fcd6,_0x793311,_0x1a9504),_0x2965d6=new Set(_0x56bf53[_0x54dfcc(0x1b9)](_0x2e7758=>_0x2e7758[_0x54dfcc(0x1a7)]===_0x19b7cc)[_0x54dfcc(0x1c1)](_0x5c03ff=>_0x5c03ff[_0x54dfcc(0x1c6)]));return _0x2965d6[_0x54dfcc(0x1ac)]===0x1?[..._0x2965d6][0x0]:undefined;}export function listAliases(_0x1e0e76,_0x33b45a,_0x39506e,_0x3bd17b){return loadAliasMap(_0x1e0e76,_0x33b45a,_0x39506e,_0x3bd17b);}function a276_0x4c3b(){const _0x220a3f=['2652816Vrqthg','2045316ysIyAb','size','.jsx','api.ts','isFile','flatMap','stringify','14466MDdpQg','get','utf-8','index','add','has','cwd','filter','startsWith','exec','../','5950448zwGMvp','.js','2264661DQAgbN','.ts','map','tableName','465985UovcKp','source','slice','datasetCode','306491eDADvi','.tsx','defaultProfile','.mts','.cts','endsWith','.mjs','.cjs','246vzufQn','name','alias','length','set'];a276_0x4c3b=function(){return _0x220a3f;};return a276_0x4c3b();}
1
+ const a276_0x37bca4=a276_0x300b;function a276_0x300b(_0x4e9a2c,_0x1b3240){_0x4e9a2c=_0x4e9a2c-0x17d;const _0x193794=a276_0x1937();let _0x300b8b=_0x193794[_0x4e9a2c];return _0x300b8b;}(function(_0x4d0f0e,_0x3f9433){const _0x231982=a276_0x300b,_0x170c25=_0x4d0f0e();while(!![]){try{const _0x375026=parseInt(_0x231982(0x183))/0x1+parseInt(_0x231982(0x19b))/0x2+-parseInt(_0x231982(0x180))/0x3+parseInt(_0x231982(0x17f))/0x4*(-parseInt(_0x231982(0x188))/0x5)+parseInt(_0x231982(0x1a1))/0x6*(parseInt(_0x231982(0x190))/0x7)+-parseInt(_0x231982(0x191))/0x8+-parseInt(_0x231982(0x189))/0x9;if(_0x375026===_0x3f9433)break;else _0x170c25['push'](_0x170c25['shift']());}catch(_0x93b259){_0x170c25['push'](_0x170c25['shift']());}}}(a276_0x1937,0x645a5));import{existsSync,readFileSync,realpathSync,statSync}from'node:fs';import{dirname,extname,isAbsolute,relative,resolve}from'node:path';import{MODEL_REGISTRY_FILE_NAME,getProfileModels,readModelRegistry}from'../api/model-registry-file.js';import{parseLegacyApiModels}from'../api/legacy-api-file.js';import{findProjectRootDirectory}from'../context/config-loader.js';const cache=new Map(),MAX_LOCAL_REEXPORT_DEPTH=0x8,SOURCE_FILE_EXTENSIONS=['.ts',a276_0x37bca4(0x19d),a276_0x37bca4(0x197),a276_0x37bca4(0x18b),a276_0x37bca4(0x195),a276_0x37bca4(0x194),a276_0x37bca4(0x1a0),a276_0x37bca4(0x181)],LOCAL_REEXPORT_RE=/\bexport\s+(?:type\s+)?(?:\{[\s\S]*?\}|\*)\s+from\s*["']([^"']+)["']/g,SOURCE_EXTENSIONS_BY_RUNTIME_EXTENSION={'.js':[a276_0x37bca4(0x187),'.tsx'],'.jsx':['.tsx'],'.mjs':[a276_0x37bca4(0x197)],'.cjs':[a276_0x37bca4(0x18b)]};function parseApiFile(_0x49a75c){const _0x1d870a=a276_0x37bca4;return parseLegacyApiModels(_0x49a75c)[_0x1d870a(0x199)](_0x22c783=>_0x22c783[_0x1d870a(0x19f)]?[{'alias':_0x22c783[_0x1d870a(0x19f)],'datasetCode':_0x22c783['datasetCode'],'tableName':_0x22c783[_0x1d870a(0x18c)],'name':_0x22c783['name']}]:[]);}function isWithinRoot(_0x206fe6,_0x293264){const _0x349974=a276_0x37bca4,_0x2b4408=relative(_0x206fe6,_0x293264);return _0x2b4408===''||!_0x2b4408[_0x349974(0x18a)]('..')&&!isAbsolute(_0x2b4408);}function resolveExistingFile(_0x3fde53){const _0x2a83ab=a276_0x37bca4;if(!existsSync(_0x3fde53))return undefined;try{return statSync(_0x3fde53)[_0x2a83ab(0x185)]()?realpathSync(_0x3fde53):undefined;}catch{return undefined;}}function reexportCandidatePaths(_0x77d883){const _0x5e69c8=a276_0x37bca4,_0x24ecdf=extname(_0x77d883);if(!_0x24ecdf)return[...SOURCE_FILE_EXTENSIONS[_0x5e69c8(0x182)](_0x1f7557=>''+_0x77d883+_0x1f7557),...SOURCE_FILE_EXTENSIONS[_0x5e69c8(0x182)](_0xee3c73=>resolve(_0x77d883,_0x5e69c8(0x184)+_0xee3c73))];const _0x5b1602=SOURCE_EXTENSIONS_BY_RUNTIME_EXTENSION[_0x24ecdf];if(!_0x5b1602)return[_0x77d883];const _0x567d97=_0x77d883['slice'](0x0,-_0x24ecdf[_0x5e69c8(0x18f)]);return[..._0x5b1602[_0x5e69c8(0x182)](_0x49ca07=>''+_0x567d97+_0x49ca07),_0x77d883];}function resolveLocalReexport(_0x374041,_0x25d20a,_0x153b07){const _0x331530=a276_0x37bca4;if(!_0x25d20a[_0x331530(0x18a)]('./')&&!_0x25d20a[_0x331530(0x18a)](_0x331530(0x196)))return undefined;const _0x5989f0=resolve(dirname(_0x374041),_0x25d20a);if(!isWithinRoot(_0x153b07,_0x5989f0))return undefined;for(const _0x1461e0 of reexportCandidatePaths(_0x5989f0)){const _0x279265=resolveExistingFile(_0x1461e0);if(_0x279265&&isWithinRoot(_0x153b07,_0x279265))return _0x279265;}return undefined;}function parseApiFileTree(_0x560cc8,_0x2a85d9,_0x54380a,_0x2b1c02){const _0x2d637f=a276_0x37bca4,_0x24bb47=resolveExistingFile(_0x560cc8);if(!_0x24bb47)return[];const _0x5383e6=_0x54380a[_0x2d637f(0x1a2)](_0x24bb47);if(_0x5383e6!==undefined&&_0x5383e6<=_0x2b1c02)return[];_0x54380a['set'](_0x24bb47,_0x2b1c02);const _0xa9e7be=readFileSync(_0x24bb47,_0x2d637f(0x17e)),_0x591f26=parseApiFile(_0xa9e7be);if(_0x2b1c02>=MAX_LOCAL_REEXPORT_DEPTH)return _0x591f26;const _0xc3ae9e=new RegExp(LOCAL_REEXPORT_RE['source'],LOCAL_REEXPORT_RE[_0x2d637f(0x1a4)]);let _0x1c31a9;while((_0x1c31a9=_0xc3ae9e[_0x2d637f(0x19a)](_0xa9e7be))!==null){const _0x38b92f=resolveLocalReexport(_0x24bb47,_0x1c31a9[0x1],_0x2a85d9);_0x38b92f&&_0x591f26[_0x2d637f(0x1a5)](...parseApiFileTree(_0x38b92f,_0x2a85d9,_0x54380a,_0x2b1c02+0x1));}return _0x591f26;}function aliasProjectRoot(_0x30df05){const _0x53ea4f=findProjectRootDirectory(dirname(_0x30df05));try{return realpathSync(_0x53ea4f);}catch{return _0x53ea4f;}}function uniqueAliasEntries(_0x5da035){const _0x471c0d=a276_0x37bca4,_0x393bbf=new Set();return _0x5da035[_0x471c0d(0x19c)](_0x2fed6e=>{const _0x247a00=_0x471c0d,_0x139dfa=JSON[_0x247a00(0x186)](_0x2fed6e);if(_0x393bbf[_0x247a00(0x1a3)](_0x139dfa))return![];return _0x393bbf[_0x247a00(0x18e)](_0x139dfa),!![];});}export function loadAliasMap(_0x1afa86,_0x347d44,_0x3b14b8,_0x2b27e6){const _0x39c1c1=a276_0x37bca4,_0x41c380=resolve(_0x3b14b8??resolve(process['cwd'](),_0x1afa86,_0x39c1c1(0x192))),_0x934fb2=_0x2b27e6?_0x41c380+'#'+_0x2b27e6:_0x41c380;if(cache[_0x39c1c1(0x1a3)](_0x934fb2))return cache[_0x39c1c1(0x1a2)](_0x934fb2);if(!existsSync(_0x41c380))return cache['set'](_0x934fb2,[]),[];try{if(_0x41c380[_0x39c1c1(0x19e)](MODEL_REGISTRY_FILE_NAME)){const _0x19d69a=readModelRegistry(_0x41c380),_0x3bd1e4=_0x2b27e6??_0x19d69a?.['defaultProfile'],_0x22239b=_0x3bd1e4&&_0x19d69a?getProfileModels(_0x19d69a,_0x3bd1e4):[],_0x13948b=uniqueAliasEntries(_0x22239b['flatMap'](_0x38ba42=>_0x38ba42[_0x39c1c1(0x19f)]?[{'alias':_0x38ba42[_0x39c1c1(0x19f)],'datasetCode':_0x38ba42['datasetCode'],'tableName':_0x38ba42[_0x39c1c1(0x18c)],'name':_0x38ba42[_0x39c1c1(0x18d)]}]:[]));return cache['set'](_0x934fb2,_0x13948b),_0x13948b;}const _0x2f6b85=uniqueAliasEntries(parseApiFileTree(_0x41c380,aliasProjectRoot(_0x41c380),new Map(),0x0));return cache[_0x39c1c1(0x198)](_0x934fb2,_0x2f6b85),_0x2f6b85;}catch{return cache[_0x39c1c1(0x198)](_0x934fb2,[]),[];}}export function resolveAlias(_0x4ffb18,_0x7b8044,_0x2fa1c8,_0x1f7b9e,_0x44867a){const _0x19d12f=a276_0x37bca4;if(!_0x7b8044)return undefined;const _0x2352ef=loadAliasMap(_0x4ffb18,_0x2fa1c8,_0x1f7b9e,_0x44867a),_0xc362b3=new Set(_0x2352ef['filter'](_0x31c6e9=>_0x31c6e9[_0x19d12f(0x19f)]===_0x7b8044)[_0x19d12f(0x182)](_0xa1d426=>_0xa1d426[_0x19d12f(0x193)]));return _0xc362b3[_0x19d12f(0x17d)]===0x1?[..._0xc362b3][0x0]:undefined;}function a276_0x1937(){const _0x35b85d=['stringify','.ts','955zQFuld','3652326pCrepw','startsWith','.cts','tableName','name','add','length','50036ZOcLej','2965816iPakuO','api.ts','datasetCode','.jsx','.js','../','.mts','set','flatMap','exec','948154MJTZyI','filter','.tsx','endsWith','alias','.mjs','246dAwthp','get','has','flags','push','size','utf-8','188qLLHDI','804018XCVeCN','.cjs','map','697424XkvZAV','index','isFile'];a276_0x1937=function(){return _0x35b85d;};return a276_0x1937();}export function listAliases(_0x303fef,_0x4a0ec7,_0x1718c3,_0x1ae9c4){return loadAliasMap(_0x303fef,_0x4a0ec7,_0x1718c3,_0x1ae9c4);}