@lovrabet/rabetbase-cli 2.4.1 → 2.4.3-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (293) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/auth/auth-server-ui.js +1 -1
  5. package/lib/auth/auth-server.js +1 -1
  6. package/lib/auth/constant.js +1 -1
  7. package/lib/auth/get-cookie.js +1 -1
  8. package/lib/auth/get-session-user.js +1 -1
  9. package/lib/auth/is-session-valid.js +1 -1
  10. package/lib/auth/login-success-html.js +1 -1
  11. package/lib/auth/logout.js +1 -1
  12. package/lib/cli-flags.js +1 -1
  13. package/lib/cli.js +1 -1
  14. package/lib/commands/api/generate.js +1 -1
  15. package/lib/commands/api/index.js +1 -1
  16. package/lib/commands/api/list.js +1 -1
  17. package/lib/commands/api/pull.js +1 -1
  18. package/lib/commands/api/shared.js +1 -1
  19. package/lib/commands/app/index.js +1 -1
  20. package/lib/commands/app/list.js +1 -1
  21. package/lib/commands/app/members-list.js +1 -1
  22. package/lib/commands/app/remote-directory.js +1 -1
  23. package/lib/commands/app/shared.js +1 -1
  24. package/lib/commands/app-config/delete.js +1 -1
  25. package/lib/commands/app-config/get.js +1 -1
  26. package/lib/commands/app-config/index.js +1 -1
  27. package/lib/commands/app-config/list.js +1 -1
  28. package/lib/commands/app-config/set.js +1 -1
  29. package/lib/commands/app-config/shared.js +1 -1
  30. package/lib/commands/auth/index.js +1 -1
  31. package/lib/commands/bff/create.js +1 -1
  32. package/lib/commands/bff/delete.js +1 -1
  33. package/lib/commands/bff/detail.js +1 -1
  34. package/lib/commands/bff/index.js +1 -1
  35. package/lib/commands/bff/list.js +1 -1
  36. package/lib/commands/bff/pull.js +1 -1
  37. package/lib/commands/bff/push.js +1 -1
  38. package/lib/commands/bff/status.js +1 -1
  39. package/lib/commands/cli-skill/index.js +1 -1
  40. package/lib/commands/cli-update.js +1 -1
  41. package/lib/commands/codegen/index.js +1 -1
  42. package/lib/commands/codegen/sdk.js +1 -1
  43. package/lib/commands/codegen/sql.js +1 -1
  44. package/lib/commands/common/app-registry.js +1 -1
  45. package/lib/commands/common/app-selector.js +1 -1
  46. package/lib/commands/common/async-task.js +1 -1
  47. package/lib/commands/common/dry-run.js +1 -1
  48. package/lib/commands/common/flags.js +1 -1
  49. package/lib/commands/common/local-file.js +1 -1
  50. package/lib/commands/common/validate.js +1 -1
  51. package/lib/commands/config/get.js +1 -1
  52. package/lib/commands/config/index.js +1 -1
  53. package/lib/commands/config/list.js +1 -1
  54. package/lib/commands/config/set.js +1 -1
  55. package/lib/commands/config/shared.js +1 -1
  56. package/lib/commands/data/filter.js +1 -1
  57. package/lib/commands/data/getOne.js +1 -1
  58. package/lib/commands/data/index.js +1 -1
  59. package/lib/commands/data/shared.js +1 -1
  60. package/lib/commands/dataset/business-group-update.js +1 -1
  61. package/lib/commands/dataset/capability.js +1 -1
  62. package/lib/commands/dataset/delete.js +1 -1
  63. package/lib/commands/dataset/detail.js +1 -1
  64. package/lib/commands/dataset/extend-update.js +1 -1
  65. package/lib/commands/dataset/field-update.js +1 -1
  66. package/lib/commands/dataset/generate.js +1 -1
  67. package/lib/commands/dataset/index.js +1 -1
  68. package/lib/commands/dataset/list.js +1 -1
  69. package/lib/commands/dataset/operations.js +1 -1
  70. package/lib/commands/dataset/relation-audit.js +1 -1
  71. package/lib/commands/dataset/relation-create.js +1 -1
  72. package/lib/commands/dataset/relation-delete.js +1 -1
  73. package/lib/commands/dataset/relation-shared.js +1 -1
  74. package/lib/commands/dataset/relation-update.js +1 -1
  75. package/lib/commands/dataset/relations.js +1 -1
  76. package/lib/commands/dataset/rename.js +1 -1
  77. package/lib/commands/dataset/restore.js +1 -1
  78. package/lib/commands/db/analysis-batching.js +1 -1
  79. package/lib/commands/db/analyze-batch-plan.js +1 -1
  80. package/lib/commands/db/analyze-cancel.js +1 -1
  81. package/lib/commands/db/analyze-start.js +1 -1
  82. package/lib/commands/db/analyze-status.js +1 -1
  83. package/lib/commands/db/create.js +1 -1
  84. package/lib/commands/db/delete.js +1 -1
  85. package/lib/commands/db/detail.js +1 -1
  86. package/lib/commands/db/diff.js +1 -1
  87. package/lib/commands/db/index.js +1 -1
  88. package/lib/commands/db/list.js +1 -1
  89. package/lib/commands/db/shared.js +1 -1
  90. package/lib/commands/db/tables.js +1 -1
  91. package/lib/commands/db/test.js +1 -1
  92. package/lib/commands/db/update.js +1 -1
  93. package/lib/commands/doctor.js +1 -1
  94. package/lib/commands/file/index.js +1 -1
  95. package/lib/commands/init/index.js +1 -1
  96. package/lib/commands/issue/index.js +1 -1
  97. package/lib/commands/issue/nudge.js +1 -1
  98. package/lib/commands/issue/report.js +1 -1
  99. package/lib/commands/issue/shared.js +1 -1
  100. package/lib/commands/kb/create.js +1 -1
  101. package/lib/commands/kb/delete.js +1 -1
  102. package/lib/commands/kb/detail.js +1 -1
  103. package/lib/commands/kb/index.js +1 -1
  104. package/lib/commands/kb/list.js +1 -1
  105. package/lib/commands/kb/shared.js +1 -1
  106. package/lib/commands/kb/update.js +1 -1
  107. package/lib/commands/logs/index.js +1 -1
  108. package/lib/commands/menu/asset-update.js +1 -1
  109. package/lib/commands/menu/delete.js +1 -1
  110. package/lib/commands/menu/external-link-create.js +1 -1
  111. package/lib/commands/menu/external-link-update.js +1 -1
  112. package/lib/commands/menu/group-create.js +1 -1
  113. package/lib/commands/menu/group-update.js +1 -1
  114. package/lib/commands/menu/index.js +1 -1
  115. package/lib/commands/menu/list.js +1 -1
  116. package/lib/commands/menu/move.js +1 -1
  117. package/lib/commands/menu/regroup-start.js +1 -1
  118. package/lib/commands/menu/rename.js +1 -1
  119. package/lib/commands/menu/shared/compare-table.js +1 -1
  120. package/lib/commands/menu/shared/delete-plan.js +1 -1
  121. package/lib/commands/menu/shared/facts.js +1 -1
  122. package/lib/commands/menu/shared/index.js +1 -1
  123. package/lib/commands/menu/shared/inquirer.js +1 -1
  124. package/lib/commands/menu/shared/local-pages.js +1 -1
  125. package/lib/commands/menu/shared/logic.js +1 -1
  126. package/lib/commands/menu/shared/mutations.js +1 -1
  127. package/lib/commands/menu/shared/service.js +1 -1
  128. package/lib/commands/menu/shared/sync-core.js +1 -1
  129. package/lib/commands/menu/shared/update-core.js +1 -1
  130. package/lib/commands/menu/shared/valid-url.js +1 -1
  131. package/lib/commands/menu/sync.js +1 -1
  132. package/lib/commands/notification/config-list.js +1 -1
  133. package/lib/commands/notification/index.js +1 -1
  134. package/lib/commands/ocr/index.js +1 -1
  135. package/lib/commands/page/generate-start.js +1 -1
  136. package/lib/commands/page/generate-status.js +1 -1
  137. package/lib/commands/page/index.js +1 -1
  138. package/lib/commands/page/pull.js +1 -1
  139. package/lib/commands/page/push.js +1 -1
  140. package/lib/commands/page/react/create.js +1 -1
  141. package/lib/commands/page/react/detail.js +1 -1
  142. package/lib/commands/page/react/list.js +1 -1
  143. package/lib/commands/page/react/publish.js +1 -1
  144. package/lib/commands/page/react/shared.js +1 -1
  145. package/lib/commands/page/react/syntax.js +1 -1
  146. package/lib/commands/page/react/template.js +1 -1
  147. package/lib/commands/page/react/update.js +1 -1
  148. package/lib/commands/page/relation-audit.js +1 -1
  149. package/lib/commands/page/restore.js +1 -1
  150. package/lib/commands/page/shared.js +1 -1
  151. package/lib/commands/page/standard-page-status.js +1 -1
  152. package/lib/commands/page/sync.js +1 -1
  153. package/lib/commands/permit/index.js +1 -1
  154. package/lib/commands/permit/page-get.js +1 -1
  155. package/lib/commands/permit/page-set.js +1 -1
  156. package/lib/commands/permit/role-apis-set.js +1 -1
  157. package/lib/commands/permit/role-menus-set.js +1 -1
  158. package/lib/commands/permit/role-menus.js +1 -1
  159. package/lib/commands/permit/shared.js +1 -1
  160. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  161. package/lib/commands/project/create/format-elapsed.js +1 -1
  162. package/lib/commands/project/create/main.js +1 -1
  163. package/lib/commands/project/create/non-interactive.js +1 -1
  164. package/lib/commands/project/create/project-template-path.js +1 -1
  165. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  166. package/lib/commands/project/create/use-format-code.js +1 -1
  167. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  168. package/lib/commands/project/index.js +1 -1
  169. package/lib/commands/project/upgrade.js +1 -1
  170. package/lib/commands/registry.js +1 -1
  171. package/lib/commands/role/create.js +1 -1
  172. package/lib/commands/role/delete.js +1 -1
  173. package/lib/commands/role/detail.js +1 -1
  174. package/lib/commands/role/index.js +1 -1
  175. package/lib/commands/role/list.js +1 -1
  176. package/lib/commands/role/shared.js +1 -1
  177. package/lib/commands/role/update.js +1 -1
  178. package/lib/commands/role/user-add.js +1 -1
  179. package/lib/commands/role/user-remove.js +1 -1
  180. package/lib/commands/role/user-resolve.js +1 -1
  181. package/lib/commands/run/index.js +1 -1
  182. package/lib/commands/schema.js +1 -1
  183. package/lib/commands/sql/create.js +1 -1
  184. package/lib/commands/sql/delete.js +1 -1
  185. package/lib/commands/sql/detail.js +1 -1
  186. package/lib/commands/sql/exec.js +1 -1
  187. package/lib/commands/sql/index.js +1 -1
  188. package/lib/commands/sql/list.js +1 -1
  189. package/lib/commands/sql/pull.js +1 -1
  190. package/lib/commands/sql/push.js +1 -1
  191. package/lib/commands/sql/shared.js +1 -1
  192. package/lib/commands/sql/status.js +1 -1
  193. package/lib/commands/sql/validate.js +1 -1
  194. package/lib/commands/task/index.js +1 -1
  195. package/lib/commands/task/status.js +1 -1
  196. package/lib/commands/tenant/index.js +1 -1
  197. package/lib/commands/tenant/members-list.js +1 -1
  198. package/lib/commands/tenant/shared.js +1 -1
  199. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  200. package/lib/commands/user-account/index.js +1 -1
  201. package/lib/commands/workspace/add.js +1 -1
  202. package/lib/commands/workspace/index.js +1 -1
  203. package/lib/commands/workspace/remove.js +1 -1
  204. package/lib/config/schema.js +1 -1
  205. package/lib/constant/cdn.js +1 -1
  206. package/lib/constant/cli.js +1 -1
  207. package/lib/constant/defaults.js +1 -1
  208. package/lib/constant/domain.js +1 -1
  209. package/lib/constant/env.js +1 -1
  210. package/lib/constant/output.js +1 -1
  211. package/lib/constant/paths.js +1 -1
  212. package/lib/constant/risk.js +1 -1
  213. package/lib/context/app-resolver.js +1 -1
  214. package/lib/context/auth-resolver.js +1 -1
  215. package/lib/context/config-loader.js +1 -1
  216. package/lib/context.js +1 -1
  217. package/lib/core/alias-resolver.js +1 -1
  218. package/lib/core/api-client.js +1 -1
  219. package/lib/core/bff/config.js +1 -1
  220. package/lib/core/bff/file-system.js +1 -1
  221. package/lib/core/bff/hash.js +1 -1
  222. package/lib/core/bff/lock.js +1 -1
  223. package/lib/core/bff/utils.js +1 -1
  224. package/lib/core/db-resolver.js +1 -1
  225. package/lib/core/page/file-system.js +1 -1
  226. package/lib/core/page/hash.js +1 -1
  227. package/lib/core/page/lock.js +1 -1
  228. package/lib/core/sql-index-auditor.js +1 -1
  229. package/lib/core/sql-sync/config.js +1 -1
  230. package/lib/core/sql-sync/file-system.js +1 -1
  231. package/lib/core/sql-sync/hash.js +1 -1
  232. package/lib/core/sql-sync/lock.js +1 -1
  233. package/lib/core/sql-sync/utils.js +1 -1
  234. package/lib/core/sql-validator.js +1 -1
  235. package/lib/errors.js +1 -1
  236. package/lib/framework/build-all-flags.js +1 -1
  237. package/lib/framework/error-output.js +1 -1
  238. package/lib/framework/explicit-yes.js +1 -1
  239. package/lib/framework/flags.js +1 -1
  240. package/lib/framework/help.js +1 -1
  241. package/lib/framework/index.js +1 -1
  242. package/lib/framework/output.js +1 -1
  243. package/lib/framework/response.js +1 -1
  244. package/lib/framework/runner-alias.js +1 -1
  245. package/lib/framework/runner.js +1 -1
  246. package/lib/framework/schema-export.js +1 -1
  247. package/lib/framework/types.js +1 -1
  248. package/lib/generated/build-info.d.ts +4 -4
  249. package/lib/generated/build-info.js +1 -1
  250. package/lib/help.js +1 -1
  251. package/lib/postinstall.js +1 -1
  252. package/lib/runtime/confirmation.js +1 -1
  253. package/lib/runtime/event.js +1 -1
  254. package/lib/runtime/index.js +1 -1
  255. package/lib/runtime/queue.js +1 -1
  256. package/lib/runtime/resolve.js +1 -1
  257. package/lib/skills/builtin-skill.js +1 -1
  258. package/lib/skills/main.js +1 -1
  259. package/lib/skills/npx-skills-add.js +1 -1
  260. package/lib/skills/skill-presence.js +1 -1
  261. package/lib/telemetry/cli-command-trace.js +1 -1
  262. package/lib/telemetry/cli-help-trace.js +1 -1
  263. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  264. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  265. package/lib/telemetry/send-cli-trace-log.js +1 -1
  266. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  267. package/lib/utils/ai_config.js +1 -1
  268. package/lib/utils/apply-jq-filter.js +1 -1
  269. package/lib/utils/cdn-config.js +1 -1
  270. package/lib/utils/check-sdk-version.js +1 -1
  271. package/lib/utils/cli-version-check.js +1 -1
  272. package/lib/utils/cli-version-policy.js +1 -1
  273. package/lib/utils/config.js +1 -1
  274. package/lib/utils/copy-directory.js +1 -1
  275. package/lib/utils/entity-with-id.js +1 -1
  276. package/lib/utils/file-utils.js +1 -1
  277. package/lib/utils/guides-cdn.js +1 -1
  278. package/lib/utils/http-client.js +1 -1
  279. package/lib/utils/is-non-interactive.js +1 -1
  280. package/lib/utils/logger.js +1 -1
  281. package/lib/utils/params.js +1 -1
  282. package/lib/utils/platform.js +1 -1
  283. package/lib/utils/rules-cdn.js +1 -1
  284. package/lib/utils/sleep.js +1 -1
  285. package/lib/utils/template-replacer.js +1 -1
  286. package/lib/utils/update-notice.js +1 -1
  287. package/lib/utils/version.js +1 -1
  288. package/lib/utils/with-active-cookie.js +1 -1
  289. package/lib/utils/write-cli-side-channel.js +1 -1
  290. package/package.json +8 -4
  291. package/skills/rabetbase/SKILL.md +1 -1
  292. package/skills/rabetbase/references/rabetbase-page-react-detail.md +1 -1
  293. package/skills/rabetbase.manifest.json +3 -3
@@ -1 +1 @@
1
- const a202_0x407cc0=a202_0x4d15;(function(_0x34612d,_0x2a1dd8){const _0x4fb8cc=a202_0x4d15,_0x887c2c=_0x34612d();while(!![]){try{const _0x345275=-parseInt(_0x4fb8cc(0x121))/0x1+parseInt(_0x4fb8cc(0x124))/0x2*(-parseInt(_0x4fb8cc(0x135))/0x3)+parseInt(_0x4fb8cc(0x12e))/0x4+-parseInt(_0x4fb8cc(0x125))/0x5+-parseInt(_0x4fb8cc(0x12c))/0x6+-parseInt(_0x4fb8cc(0x137))/0x7*(parseInt(_0x4fb8cc(0x140))/0x8)+parseInt(_0x4fb8cc(0x127))/0x9;if(_0x345275===_0x2a1dd8)break;else _0x887c2c['push'](_0x887c2c['shift']());}catch(_0x589056){_0x887c2c['push'](_0x887c2c['shift']());}}}(a202_0x2e54,0xc46dd));function a202_0x4d15(_0x1e1919,_0x3c9bc8){_0x1e1919=_0x1e1919-0x11b;const _0x2e54d9=a202_0x2e54();let _0x4d151d=_0x2e54d9[_0x1e1919];return _0x4d151d;}import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{RABETBASE_ENV_VALUES}from'../../constant/env.js';import{RABETBASE_OUTPUT_FORMAT_VALUES}from'../../constant/output.js';import{RISK_LEVEL_VALUES}from'../../constant/risk.js';import{validateAppcode}from'../../commands/common/validate.js';import{readConfigFile,readRawConfigWithLayers,resolveWriteConfigPath,writeConfigFile}from'../../context.js';import{workspaceAddDefinition}from'../../commands/workspace/add.js';import{workspaceRemoveDefinition}from'../../commands/workspace/remove.js';const WORKSPACE_USAGE=CLI_BIN_NAME+a202_0x407cc0(0x14b),SAFE_PROFILE_KEYS=[a202_0x407cc0(0x130),a202_0x407cc0(0x149),a202_0x407cc0(0x151),'format',a202_0x407cc0(0x12b),'riskLevel','locale'],workspaceFlags=[{'name':a202_0x407cc0(0x12f),'type':a202_0x407cc0(0x13c),'description':a202_0x407cc0(0x134)},{'name':a202_0x407cc0(0x130),'type':a202_0x407cc0(0x13c),'description':a202_0x407cc0(0x13a)},{'name':a202_0x407cc0(0x149),'type':'string','description':a202_0x407cc0(0x120),'enum':[...RABETBASE_ENV_VALUES]},{'name':a202_0x407cc0(0x151),'type':'string','description':a202_0x407cc0(0x144)},{'name':a202_0x407cc0(0x150),'type':'string','description':a202_0x407cc0(0x141),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':'pageSize','type':'number','description':a202_0x407cc0(0x13b)},{'name':a202_0x407cc0(0x13d),'type':a202_0x407cc0(0x13c),'description':a202_0x407cc0(0x122),'enum':[...RISK_LEVEL_VALUES]},{'name':'locale','type':'string','description':a202_0x407cc0(0x11b)}];function isRecord(_0x1de8bb){const _0x348699=a202_0x407cc0;return!!_0x1de8bb&&typeof _0x1de8bb===_0x348699(0x12a)&&!Array[_0x348699(0x143)](_0x1de8bb);}function assertValidAppcode(_0x34817a){const _0x5700eb=a202_0x407cc0,{valid:_0x337056,message:_0x1ca25e}=validateAppcode(_0x34817a);if(!_0x337056)throw CliErrors[_0x5700eb(0x11f)](_0x5700eb(0x14e)+_0x34817a,_0x1ca25e);}function sanitizeProfile(_0x1e36bf){if(!isRecord(_0x1e36bf))return{};const _0x5ee10b={};for(const _0x2be20b of SAFE_PROFILE_KEYS){if(_0x1e36bf[_0x2be20b]!==undefined)_0x5ee10b[_0x2be20b]=_0x1e36bf[_0x2be20b];}return _0x5ee10b;}function cloneProfile(_0x5e6ffd){return isRecord(_0x5e6ffd)?{..._0x5e6ffd}:{};}function collectWorkspaceProfileOverrides(_0x434667){const _0x3ecdf5=a202_0x407cc0,_0x34994d={},_0x282680=_0x434667[_0x3ecdf5(0x132)](_0x3ecdf5(0x149)),_0x37346d=_0x434667[_0x3ecdf5(0x132)](_0x3ecdf5(0x151)),_0x27399a=_0x434667[_0x3ecdf5(0x132)]('defaultFormat'),_0x4457c9=_0x434667[_0x3ecdf5(0x142)]('pageSize'),_0x180cc1=_0x434667[_0x3ecdf5(0x132)]('riskLevel'),_0x5f296b=_0x434667[_0x3ecdf5(0x132)]('locale');if(_0x282680)_0x34994d[_0x3ecdf5(0x149)]=_0x282680;if(_0x37346d)_0x34994d['apiDir']=_0x37346d;if(_0x27399a)_0x34994d['format']=_0x27399a;if(_0x4457c9!==undefined&&_0x4457c9!=='')_0x34994d['pageSize']=Number(_0x4457c9);if(_0x180cc1)_0x34994d[_0x3ecdf5(0x13d)]=_0x180cc1;if(_0x5f296b)_0x34994d[_0x3ecdf5(0x133)]=_0x5f296b;return _0x34994d;}async function validateWorkspaceArgs(_0x268584){const _0x267fb7=a202_0x407cc0,_0x3f4397=_0x268584[_0x267fb7(0x132)]('app')[_0x267fb7(0x126)](),_0x2e4803=_0x268584[_0x267fb7(0x132)]('appcode')['trim']();if(!_0x3f4397&&!_0x2e4803)throw CliErrors[_0x267fb7(0x11f)](_0x267fb7(0x14f),'Use\x20`'+CLI_BIN_NAME+_0x267fb7(0x146)+CLI_BIN_NAME+_0x267fb7(0x14d));if(_0x2e4803)assertValidAppcode(_0x2e4803);}function resolveKnownApps(){const _0x2e20b1=a202_0x407cc0,{config:_0x398697,layers:_0x34fd13}=readRawConfigWithLayers(),_0x1920aa=isRecord(_0x398697[_0x2e20b1(0x12d)])?_0x398697[_0x2e20b1(0x12d)]:{},_0x1bf866=isRecord(_0x34fd13[_0x2e20b1(0x147)][_0x2e20b1(0x12d)])?_0x34fd13[_0x2e20b1(0x147)][_0x2e20b1(0x12d)]:{};return{..._0x1bf866,..._0x1920aa};}async function configureWorkspace(_0x351c12,_0xcc4b6d){const _0x3981c4=a202_0x407cc0,_0x5e92d4=_0x351c12[_0x3981c4(0x132)](_0x3981c4(0x12f))[_0x3981c4(0x126)](),_0x4b726e=_0x351c12[_0x3981c4(0x132)]('appcode')[_0x3981c4(0x126)](),_0x58f9ed=_0x5e92d4||_0x4b726e;if(!_0x58f9ed)throw CliErrors['validation'](_0x3981c4(0x14f),_0x3981c4(0x123)+CLI_BIN_NAME+_0x3981c4(0x146)+CLI_BIN_NAME+_0x3981c4(0x14d));if(_0x4b726e)assertValidAppcode(_0x4b726e);const _0x41b924=resolveWriteConfigPath(_0x3981c4(0x11e)),_0x36bd60=readConfigFile(_0x41b924),_0x16edb9=resolveKnownApps(),_0x5be848=isRecord(_0x36bd60[_0x3981c4(0x12d)])?{..._0x36bd60[_0x3981c4(0x12d)]}:{},_0x53f2a1=cloneProfile(_0x5be848[_0x58f9ed]),_0x597089=sanitizeProfile(_0x16edb9[_0x58f9ed]),_0x48849c=_0x4b726e?{}:_0x597089,_0x4ada90=_0x4b726e||_0x48849c[_0x3981c4(0x130)];if(!_0x4ada90){const _0x1f54b7=Object[_0x3981c4(0x128)](_0x16edb9),_0x30e5f2=_0x1f54b7['length']===0x0?_0x3981c4(0x123)+CLI_BIN_NAME+'\x20workspace\x20'+_0xcc4b6d+'\x20--app\x20'+_0x58f9ed+_0x3981c4(0x14a):_0x3981c4(0x138)+_0x1f54b7['join'](',\x20');throw CliErrors[_0x3981c4(0x11f)](_0x3981c4(0x11c)+_0x58f9ed+_0x3981c4(0x14c),_0x30e5f2);}assertValidAppcode(String(_0x4ada90));const _0x264681={..._0x48849c,..._0x53f2a1,'appcode':String(_0x4ada90),...collectWorkspaceProfileOverrides(_0x351c12)};return _0x5be848[_0x58f9ed]=_0x264681,_0x36bd60[_0x3981c4(0x12d)]=_0x5be848,_0x36bd60['defaultApp']=_0x58f9ed,delete _0x36bd60[_0x3981c4(0x130)],delete _0x36bd60[_0x3981c4(0x12f)],_0x264681[_0x3981c4(0x149)]&&(_0x36bd60[_0x3981c4(0x149)]=_0x264681[_0x3981c4(0x149)]),writeConfigFile(_0x41b924,_0x36bd60),{'ok':!![],'message':'Workspace\x20'+(_0xcc4b6d===_0x3981c4(0x129)?'initialized':'updated')+':\x20'+_0x58f9ed+_0x3981c4(0x131)+_0x264681['appcode']+_0x3981c4(0x139)+_0x41b924+_0x3981c4(0x152),'data':{'operation':_0x3981c4(0x145)+_0xcc4b6d,'configPath':_0x41b924,'app':_0x58f9ed,'appcode':_0x264681[_0x3981c4(0x130)],'env':_0x264681['env']??null,'credentialsWritten':![]}};}const workspaceInitDefinition={'service':a202_0x407cc0(0x136),'command':a202_0x407cc0(0x129),'description':a202_0x407cc0(0x11d),'risk':'write','requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x402eb5=>configureWorkspace(_0x402eb5,a202_0x407cc0(0x129))},workspaceUseDefinition={'service':a202_0x407cc0(0x136),'command':a202_0x407cc0(0x148),'description':a202_0x407cc0(0x13f),'risk':a202_0x407cc0(0x13e),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x8034a=>configureWorkspace(_0x8034a,a202_0x407cc0(0x148))};function a202_0x2e54(){const _0x21d73a=[').\x20Config:\x20','App\x20code\x20to\x20bind\x20to\x20this\x20workspace','Default\x20page\x20size\x20for\x20this\x20workspace\x20app\x20profile','string','riskLevel','write','Switch\x20the\x20current\x20workspace\x20app\x20binding','88GDwaJn','Default\x20output\x20format\x20for\x20this\x20workspace\x20app\x20profile','flag','isArray','API\x20directory\x20path\x20for\x20this\x20workspace\x20app\x20profile','workspace.','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20`','globalConfig','use','env','\x20--appcode\x20<code>`.','\x20workspace\x20<init|use>\x20--app\x20<name>\x20[--appcode\x20<code>]','\x22\x20not\x20found.','\x20workspace\x20use\x20--app\x20<name>`.','Invalid\x20appcode:\x20','Missing\x20workspace\x20app\x20selector.','defaultFormat','apiDir','.\x20Credentials:\x20not\x20written.','Locale\x20for\x20this\x20workspace\x20app\x20profile','App\x20\x22','Initialize\x20the\x20current\x20workspace\x20app\x20binding','project','validation','Target\x20environment','22966qeqYJk','Risk\x20level\x20for\x20this\x20workspace\x20app\x20profile','Use\x20`','10YWNbhf','4033670JNlYpK','trim','21285378OcPNXd','keys','init','object','pageSize','492474kNufpd','apps','2844588ynNxBK','app','appcode','\x20(appcode:\x20','str','locale','App\x20profile\x20name\x20to\x20use\x20in\x20this\x20workspace','397680DgKEjS','workspace','443569NOKKsy','Pass\x20--appcode\x20<code>,\x20or\x20choose\x20one\x20of:\x20'];a202_0x2e54=function(){return _0x21d73a;};return a202_0x2e54();}export const workspaceDefinitions=[workspaceInitDefinition,workspaceUseDefinition,workspaceAddDefinition,workspaceRemoveDefinition];export{WORKSPACE_USAGE};
1
+ const a202_0x28f3a4=a202_0x36c6;(function(_0x5a7f9f,_0x4760c8){const _0x37a498=a202_0x36c6,_0x8fe42e=_0x5a7f9f();while(!![]){try{const _0x5d3a10=-parseInt(_0x37a498(0x17e))/0x1*(parseInt(_0x37a498(0x187))/0x2)+-parseInt(_0x37a498(0x19d))/0x3*(-parseInt(_0x37a498(0x19e))/0x4)+-parseInt(_0x37a498(0x184))/0x5+-parseInt(_0x37a498(0x1a1))/0x6*(parseInt(_0x37a498(0x190))/0x7)+-parseInt(_0x37a498(0x181))/0x8+parseInt(_0x37a498(0x195))/0x9*(parseInt(_0x37a498(0x19c))/0xa)+-parseInt(_0x37a498(0x1a3))/0xb*(-parseInt(_0x37a498(0x170))/0xc);if(_0x5d3a10===_0x4760c8)break;else _0x8fe42e['push'](_0x8fe42e['shift']());}catch(_0x834181){_0x8fe42e['push'](_0x8fe42e['shift']());}}}(a202_0x33df,0x4b9cc));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{RABETBASE_ENV_VALUES}from'../../constant/env.js';import{RABETBASE_OUTPUT_FORMAT_VALUES}from'../../constant/output.js';import{RISK_LEVEL_VALUES}from'../../constant/risk.js';import{validateAppcode}from'../../commands/common/validate.js';import{readConfigFile,readRawConfigWithLayers,resolveWriteConfigPath,writeConfigFile}from'../../context.js';import{workspaceAddDefinition}from'../../commands/workspace/add.js';import{workspaceRemoveDefinition}from'../../commands/workspace/remove.js';const WORKSPACE_USAGE=CLI_BIN_NAME+'\x20workspace\x20<init|use>\x20--app\x20<name>\x20[--appcode\x20<code>]',SAFE_PROFILE_KEYS=[a202_0x28f3a4(0x186),'env',a202_0x28f3a4(0x1a7),a202_0x28f3a4(0x185),a202_0x28f3a4(0x18e),a202_0x28f3a4(0x18a),'locale'],workspaceFlags=[{'name':'app','type':a202_0x28f3a4(0x197),'description':a202_0x28f3a4(0x17d)},{'name':a202_0x28f3a4(0x186),'type':a202_0x28f3a4(0x197),'description':a202_0x28f3a4(0x1a2)},{'name':a202_0x28f3a4(0x1a5),'type':a202_0x28f3a4(0x197),'description':a202_0x28f3a4(0x17f),'enum':[...RABETBASE_ENV_VALUES]},{'name':a202_0x28f3a4(0x1a7),'type':a202_0x28f3a4(0x197),'description':'API\x20directory\x20path\x20for\x20this\x20workspace\x20app\x20profile'},{'name':a202_0x28f3a4(0x188),'type':'string','description':'Default\x20output\x20format\x20for\x20this\x20workspace\x20app\x20profile','enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':a202_0x28f3a4(0x18e),'type':a202_0x28f3a4(0x196),'description':a202_0x28f3a4(0x18c)},{'name':'riskLevel','type':a202_0x28f3a4(0x197),'description':a202_0x28f3a4(0x189),'enum':[...RISK_LEVEL_VALUES]},{'name':a202_0x28f3a4(0x18f),'type':a202_0x28f3a4(0x197),'description':a202_0x28f3a4(0x182)}];function isRecord(_0x311aec){const _0xeee61f=a202_0x28f3a4;return!!_0x311aec&&typeof _0x311aec===_0xeee61f(0x198)&&!Array[_0xeee61f(0x178)](_0x311aec);}function assertValidAppcode(_0x3d2205){const _0x1968b1=a202_0x28f3a4,{valid:_0x60ec4d,message:_0x19df6f}=validateAppcode(_0x3d2205);if(!_0x60ec4d)throw CliErrors[_0x1968b1(0x17c)]('Invalid\x20appcode:\x20'+_0x3d2205,_0x19df6f);}function sanitizeProfile(_0x4af8db){if(!isRecord(_0x4af8db))return{};const _0x249810={};for(const _0x244c30 of SAFE_PROFILE_KEYS){if(_0x4af8db[_0x244c30]!==undefined)_0x249810[_0x244c30]=_0x4af8db[_0x244c30];}return _0x249810;}function cloneProfile(_0x29f9b1){return isRecord(_0x29f9b1)?{..._0x29f9b1}:{};}function collectWorkspaceProfileOverrides(_0x33ba32){const _0x354526=a202_0x28f3a4,_0x19f9f8={},_0x59bee6=_0x33ba32[_0x354526(0x18d)](_0x354526(0x1a5)),_0x45a568=_0x33ba32[_0x354526(0x18d)](_0x354526(0x1a7)),_0x2b5212=_0x33ba32['str'](_0x354526(0x188)),_0x337c02=_0x33ba32[_0x354526(0x183)](_0x354526(0x18e)),_0x1cbd52=_0x33ba32[_0x354526(0x18d)]('riskLevel'),_0x4488b9=_0x33ba32[_0x354526(0x18d)]('locale');if(_0x59bee6)_0x19f9f8[_0x354526(0x1a5)]=_0x59bee6;if(_0x45a568)_0x19f9f8['apiDir']=_0x45a568;if(_0x2b5212)_0x19f9f8[_0x354526(0x185)]=_0x2b5212;if(_0x337c02!==undefined&&_0x337c02!=='')_0x19f9f8[_0x354526(0x18e)]=Number(_0x337c02);if(_0x1cbd52)_0x19f9f8[_0x354526(0x18a)]=_0x1cbd52;if(_0x4488b9)_0x19f9f8[_0x354526(0x18f)]=_0x4488b9;return _0x19f9f8;}async function validateWorkspaceArgs(_0x4e8d8e){const _0x3a9395=a202_0x28f3a4,_0x3c7da9=_0x4e8d8e[_0x3a9395(0x18d)](_0x3a9395(0x16f))['trim'](),_0x22e4eb=_0x4e8d8e[_0x3a9395(0x18d)](_0x3a9395(0x186))[_0x3a9395(0x173)]();if(!_0x3c7da9&&!_0x22e4eb)throw CliErrors[_0x3a9395(0x17c)](_0x3a9395(0x191),_0x3a9395(0x172)+CLI_BIN_NAME+_0x3a9395(0x193)+CLI_BIN_NAME+_0x3a9395(0x176));if(_0x22e4eb)assertValidAppcode(_0x22e4eb);}function a202_0x36c6(_0x24437f,_0x26f977){_0x24437f=_0x24437f-0x16e;const _0x33df6a=a202_0x33df();let _0x36c6b2=_0x33df6a[_0x24437f];return _0x36c6b2;}function resolveKnownApps(){const _0x49f6ca=a202_0x28f3a4,{config:_0x4cca36,layers:_0x33fe31}=readRawConfigWithLayers(),_0x3a3462=isRecord(_0x4cca36[_0x49f6ca(0x192)])?_0x4cca36['apps']:{},_0x4b3c36=isRecord(_0x33fe31['globalConfig'][_0x49f6ca(0x192)])?_0x33fe31['globalConfig'][_0x49f6ca(0x192)]:{};return{..._0x4b3c36,..._0x3a3462};}async function configureWorkspace(_0x3cdafe,_0x217331){const _0x391ca5=a202_0x28f3a4,_0x26894e=_0x3cdafe[_0x391ca5(0x18d)](_0x391ca5(0x16f))[_0x391ca5(0x173)](),_0x4e4c81=_0x3cdafe['str'](_0x391ca5(0x186))[_0x391ca5(0x173)](),_0x204f33=_0x26894e||_0x4e4c81;if(!_0x204f33)throw CliErrors[_0x391ca5(0x17c)](_0x391ca5(0x191),_0x391ca5(0x172)+CLI_BIN_NAME+_0x391ca5(0x193)+CLI_BIN_NAME+'\x20workspace\x20use\x20--app\x20<name>`.');if(_0x4e4c81)assertValidAppcode(_0x4e4c81);const _0x42144b=resolveWriteConfigPath(_0x391ca5(0x1a4)),_0x567e1f=readConfigFile(_0x42144b),_0x385875=resolveKnownApps(),_0x2318e0=isRecord(_0x567e1f[_0x391ca5(0x192)])?{..._0x567e1f[_0x391ca5(0x192)]}:{},_0x1c2749=cloneProfile(_0x2318e0[_0x204f33]),_0x22241c=sanitizeProfile(_0x385875[_0x204f33]),_0x406bb1=_0x4e4c81?{}:_0x22241c,_0x5e89de=_0x4e4c81||_0x406bb1[_0x391ca5(0x186)];if(!_0x5e89de){const _0x43e975=Object[_0x391ca5(0x177)](_0x385875),_0x4e3d5e=_0x43e975[_0x391ca5(0x179)]===0x0?_0x391ca5(0x172)+CLI_BIN_NAME+_0x391ca5(0x194)+_0x217331+_0x391ca5(0x17a)+_0x204f33+'\x20--appcode\x20<code>`.':_0x391ca5(0x18b)+_0x43e975[_0x391ca5(0x19b)](',\x20');throw CliErrors[_0x391ca5(0x17c)]('App\x20\x22'+_0x204f33+'\x22\x20not\x20found.',_0x4e3d5e);}assertValidAppcode(String(_0x5e89de));const _0x3dbf37={..._0x406bb1,..._0x1c2749,'appcode':String(_0x5e89de),...collectWorkspaceProfileOverrides(_0x3cdafe)};return _0x2318e0[_0x204f33]=_0x3dbf37,_0x567e1f[_0x391ca5(0x192)]=_0x2318e0,_0x567e1f[_0x391ca5(0x17b)]=_0x204f33,delete _0x567e1f[_0x391ca5(0x186)],delete _0x567e1f[_0x391ca5(0x16f)],_0x3dbf37['env']&&(_0x567e1f[_0x391ca5(0x1a5)]=_0x3dbf37[_0x391ca5(0x1a5)]),writeConfigFile(_0x42144b,_0x567e1f),{'ok':!![],'message':'Workspace\x20'+(_0x217331==='init'?_0x391ca5(0x180):'updated')+':\x20'+_0x204f33+_0x391ca5(0x19f)+_0x3dbf37['appcode']+_0x391ca5(0x19a)+_0x42144b+_0x391ca5(0x171),'data':{'operation':_0x391ca5(0x1a0)+_0x217331,'configPath':_0x42144b,'app':_0x204f33,'appcode':_0x3dbf37[_0x391ca5(0x186)],'env':_0x3dbf37[_0x391ca5(0x1a5)]??null,'credentialsWritten':![]}};}const workspaceInitDefinition={'service':'workspace','command':'init','description':a202_0x28f3a4(0x16e),'risk':a202_0x28f3a4(0x199),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x421645=>configureWorkspace(_0x421645,a202_0x28f3a4(0x175))},workspaceUseDefinition={'service':a202_0x28f3a4(0x174),'command':a202_0x28f3a4(0x1a6),'description':'Switch\x20the\x20current\x20workspace\x20app\x20binding','risk':a202_0x28f3a4(0x199),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x5e6eda=>configureWorkspace(_0x5e6eda,a202_0x28f3a4(0x1a6))};export const workspaceDefinitions=[workspaceInitDefinition,workspaceUseDefinition,workspaceAddDefinition,workspaceRemoveDefinition];function a202_0x33df(){const _0x2ba5af=['447100CyYfCS','defaultFormat','Risk\x20level\x20for\x20this\x20workspace\x20app\x20profile','riskLevel','Pass\x20--appcode\x20<code>,\x20or\x20choose\x20one\x20of:\x20','Default\x20page\x20size\x20for\x20this\x20workspace\x20app\x20profile','str','pageSize','locale','28NwWUWl','Missing\x20workspace\x20app\x20selector.','apps','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20`','\x20workspace\x20','14967cKfyWP','number','string','object','write',').\x20Config:\x20','join','2960dmPluj','3wxwubJ','774804wNLNlW','\x20(appcode:\x20','workspace.','635790kEcWiW','App\x20code\x20to\x20bind\x20to\x20this\x20workspace','4994SQhjZw','project','env','use','apiDir','Initialize\x20the\x20current\x20workspace\x20app\x20binding','app','37548YrsQlF','.\x20Credentials:\x20not\x20written.','Use\x20`','trim','workspace','init','\x20workspace\x20use\x20--app\x20<name>`.','keys','isArray','length','\x20--app\x20','defaultApp','validation','App\x20profile\x20name\x20to\x20use\x20in\x20this\x20workspace','2cUgjyR','Target\x20environment','initialized','3742472VdPHUd','Locale\x20for\x20this\x20workspace\x20app\x20profile','flag','2290190JehVsY','format','appcode'];a202_0x33df=function(){return _0x2ba5af;};return a202_0x33df();}export{WORKSPACE_USAGE};
@@ -1 +1 @@
1
- const a203_0x2e5c55=a203_0x4074;(function(_0x30a5d0,_0x9838a5){const _0x15ca67=a203_0x4074,_0x50d66c=_0x30a5d0();while(!![]){try{const _0x5c1db4=parseInt(_0x15ca67(0x8d))/0x1*(parseInt(_0x15ca67(0x8c))/0x2)+parseInt(_0x15ca67(0x85))/0x3*(parseInt(_0x15ca67(0x94))/0x4)+parseInt(_0x15ca67(0x8f))/0x5*(parseInt(_0x15ca67(0x8b))/0x6)+parseInt(_0x15ca67(0x91))/0x7*(parseInt(_0x15ca67(0x8e))/0x8)+parseInt(_0x15ca67(0x92))/0x9+parseInt(_0x15ca67(0x86))/0xa*(parseInt(_0x15ca67(0x87))/0xb)+-parseInt(_0x15ca67(0x88))/0xc;if(_0x5c1db4===_0x9838a5)break;else _0x50d66c['push'](_0x50d66c['shift']());}catch(_0x1bfdbb){_0x50d66c['push'](_0x50d66c['shift']());}}}(a203_0x5ee5,0x639d5));function a203_0x4074(_0x327548,_0x26dcd0){_0x327548=_0x327548-0x84;const _0x5ee58c=a203_0x5ee5();let _0x407421=_0x5ee58c[_0x327548];return _0x407421;}import{buildAppRemoveFlags,runAppRemove,validateAppName}from'../../commands/common/app-registry.js';function a203_0x5ee5(){const _0x34092d=['4222150kLzrQW','11PkLESD','16804056KsClMc','App\x20profile\x20name\x20to\x20remove','workspace\x20remove','6VIbpnU','75538bNwVlY','13jvQNSf','8YrEKtD','167380ODNjdY','workspace','3499321bWzlTF','2495583ZjpSVz','write','4VwoPwJ','name','Remove\x20an\x20app\x20profile\x20from\x20the\x20current\x20workspace\x20(or\x20--global)','253443usdmIL'];a203_0x5ee5=function(){return _0x34092d;};return a203_0x5ee5();}export const workspaceRemoveDefinition={'service':a203_0x2e5c55(0x90),'command':'remove','description':a203_0x2e5c55(0x84),'risk':a203_0x2e5c55(0x93),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':a203_0x2e5c55(0x95),'description':a203_0x2e5c55(0x89),'required':!![]}],'flags':buildAppRemoveFlags(),'validate':_0x577a17=>validateAppName(_0x577a17,a203_0x2e5c55(0x8a)),'execute':_0x1e3f63=>runAppRemove(_0x1e3f63,'workspace\x20remove')};
1
+ const a203_0x52fa35=a203_0x49bb;(function(_0x4fd376,_0x47ab41){const _0x217ec6=a203_0x49bb,_0x3afbe3=_0x4fd376();while(!![]){try{const _0x46f86e=-parseInt(_0x217ec6(0x1d2))/0x1+-parseInt(_0x217ec6(0x1dc))/0x2*(-parseInt(_0x217ec6(0x1d0))/0x3)+-parseInt(_0x217ec6(0x1d4))/0x4+parseInt(_0x217ec6(0x1d1))/0x5*(parseInt(_0x217ec6(0x1db))/0x6)+parseInt(_0x217ec6(0x1cf))/0x7*(-parseInt(_0x217ec6(0x1cd))/0x8)+-parseInt(_0x217ec6(0x1de))/0x9*(parseInt(_0x217ec6(0x1dd))/0xa)+parseInt(_0x217ec6(0x1d3))/0xb*(parseInt(_0x217ec6(0x1d7))/0xc);if(_0x46f86e===_0x47ab41)break;else _0x3afbe3['push'](_0x3afbe3['shift']());}catch(_0x3070e9){_0x3afbe3['push'](_0x3afbe3['shift']());}}}(a203_0x183f,0xd70ba));function a203_0x49bb(_0x446ae2,_0x53ea95){_0x446ae2=_0x446ae2-0x1cd;const _0x183fdd=a203_0x183f();let _0x49bba5=_0x183fdd[_0x446ae2];return _0x49bba5;}import{buildAppRemoveFlags,runAppRemove,validateAppName}from'../../commands/common/app-registry.js';export const workspaceRemoveDefinition={'service':a203_0x52fa35(0x1d5),'command':a203_0x52fa35(0x1d9),'description':a203_0x52fa35(0x1ce),'risk':a203_0x52fa35(0x1d8),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':a203_0x52fa35(0x1d6),'description':a203_0x52fa35(0x1da),'required':!![]}],'flags':buildAppRemoveFlags(),'validate':_0xc7075e=>validateAppName(_0xc7075e,'workspace\x20remove'),'execute':_0x48904b=>runAppRemove(_0x48904b,'workspace\x20remove')};function a203_0x183f(){const _0x24ec07=['2316kZvrkD','15220lYfhkW','3204jcoZwU','1752oWQNTv','Remove\x20an\x20app\x20profile\x20from\x20the\x20current\x20workspace\x20(or\x20--global)','42245veHcYG','2055aooUUu','6835ELfKiD','1380346EdzjMn','43510742dXScPN','3715696JeQrRS','workspace','name','12axuNKf','write','remove','App\x20profile\x20name\x20to\x20remove','1338NpSoNZ'];a203_0x183f=function(){return _0x24ec07;};return a203_0x183f();}
@@ -1 +1 @@
1
- const a204_0x29d742=a204_0x4d75;function a204_0x4e97(){const _0x33efc2=['en-US','accessKey','pageSize','defaultApp','API\x20directory\x20path','9gESuUJ','format','riskLevel','Default\x20page\x20size','inherit','5066320zlapSU','locale','app','408942cFNHol','3823528YUssNo','toLowerCase','appcode','Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','376568JmaKiB','7WKpYAf','1652970mVaPAP','Config\x20key\x20(','join','string','env','331878FaXYfZ','apiDir','apps','length','zh-CN','6ElhuOP','Risk\x20level','Target\x20environment','defaultFormat','357298mroqeN','cookie','trim','number'];a204_0x4e97=function(){return _0x33efc2;};return a204_0x4e97();}(function(_0x1d3513,_0x5c9c4e){const _0x26a5ea=a204_0x4d75,_0x33579e=_0x1d3513();while(!![]){try{const _0x39e517=-parseInt(_0x26a5ea(0x78))/0x1+-parseInt(_0x26a5ea(0x9a))/0x2*(-parseInt(_0x26a5ea(0x95))/0x3)+-parseInt(_0x26a5ea(0x8e))/0x4+parseInt(_0x26a5ea(0x90))/0x5+-parseInt(_0x26a5ea(0x89))/0x6*(-parseInt(_0x26a5ea(0x8f))/0x7)+-parseInt(_0x26a5ea(0x8a))/0x8*(-parseInt(_0x26a5ea(0x81))/0x9)+-parseInt(_0x26a5ea(0x86))/0xa;if(_0x39e517===_0x5c9c4e)break;else _0x33579e['push'](_0x33579e['shift']());}catch(_0x5f1b53){_0x33579e['push'](_0x33579e['shift']());}}}(a204_0x4e97,0x3d282));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RABETBASE_ENV_VALUES}from'../constant/env.js';import{RABETBASE_OUTPUT_FORMAT_VALUES}from'../constant/output.js';import{RISK_LEVEL_VALUES}from'../constant/risk.js';export{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';export const PROJECT_CREATE_INHERITABLE_KEYS=[a204_0x29d742(0x79),a204_0x29d742(0x7d),'locale',a204_0x29d742(0x82),'riskLevel'];export const TOP_LEVEL_CONFIG_KEYS=new Set(['appcode','env','locale',a204_0x29d742(0x82),a204_0x29d742(0x79),a204_0x29d742(0x7d),a204_0x29d742(0x96)]);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES]};export function formatConfigKeyList(_0x5a70f8){const _0x43781c=a204_0x29d742;return[..._0x5a70f8][_0x43781c(0x92)](',\x20');}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0x159743){return TOP_LEVEL_CONFIG_KEYS['has'](_0x159743);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x156814=a204_0x29d742;return _0x156814(0x91)+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'env':a204_0x29d742(0x94),'apiDir':a204_0x29d742(0x96),'cookie':a204_0x29d742(0x79),'accessKey':a204_0x29d742(0x7d),'defaultFormat':a204_0x29d742(0x82),'pageSize':'pageSize','riskLevel':a204_0x29d742(0x83),'locale':a204_0x29d742(0x87)};function a204_0x4d75(_0x5a1d33,_0x30f01e){_0x5a1d33=_0x5a1d33-0x78;const _0x4e977c=a204_0x4e97();let _0x4d7512=_0x4e977c[_0x5a1d33];return _0x4d7512;}export function getAppProfileFlagDefs(){const _0x43a594=a204_0x29d742;return[{'name':_0x43a594(0x94),'type':'string','description':_0x43a594(0x9c),'enum':[...RABETBASE_ENV_VALUES]},{'name':_0x43a594(0x96),'type':'string','description':_0x43a594(0x80)},{'name':_0x43a594(0x79),'type':'string','description':'Auth\x20cookie','hidden':!![]},{'name':_0x43a594(0x7d),'type':'string','description':'Access\x20key','hidden':!![]},{'name':_0x43a594(0x9d),'type':_0x43a594(0x93),'description':_0x43a594(0x8d),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':_0x43a594(0x7e),'type':_0x43a594(0x7b),'description':_0x43a594(0x84)},{'name':_0x43a594(0x83),'type':_0x43a594(0x93),'description':_0x43a594(0x9b),'enum':[...RISK_LEVEL_VALUES]},{'name':_0x43a594(0x87),'type':_0x43a594(0x93),'description':'Locale'}];}export function collectAppProfileOverrides(_0x27b8e8){const _0xa10667={};for(const [_0xb69fc,_0x3e5313]of Object['entries'](APP_PROFILE_FLAG_KEY_MAP)){const _0x54b6f1=_0x27b8e8(_0xb69fc);if(!_0x54b6f1)continue;_0xa10667[_0x3e5313]=_0x3e5313==='pageSize'?Number(_0x54b6f1):_0x54b6f1;}return _0xa10667;}export function buildAppProfileListFields(_0x1cecb2){const _0x4c8569=a204_0x29d742;return{'env':_0x1cecb2[_0x4c8569(0x94)]??null,'apiDir':_0x1cecb2['apiDir']??null,'hasCookie':!!_0x1cecb2[_0x4c8569(0x79)],'hasAccessKey':!!_0x1cecb2[_0x4c8569(0x7d)],'format':_0x1cecb2[_0x4c8569(0x82)]??null,'pageSize':_0x1cecb2['pageSize']??null,'riskLevel':_0x1cecb2['riskLevel']??null,'locale':_0x1cecb2['locale']??null};}export function buildAppDoctorFields(_0x34f04f,_0x512517){const _0x4130b5=a204_0x29d742;return{'env':{'value':_0x34f04f[_0x4130b5(0x94)]||_0x512517[_0x4130b5(0x94)],'source':_0x34f04f['env']?'app':'inherit'},'apiDir':{'value':_0x34f04f['apiDir']||_0x512517[_0x4130b5(0x96)],'source':_0x34f04f[_0x4130b5(0x96)]?_0x4130b5(0x88):_0x4130b5(0x85)},'cookie':{'value':_0x34f04f[_0x4130b5(0x79)]||_0x512517[_0x4130b5(0x79)],'source':_0x34f04f['cookie']?_0x4130b5(0x88):'inherit'},'accessKey':{'value':_0x34f04f[_0x4130b5(0x7d)]||_0x512517[_0x4130b5(0x7d)],'source':_0x34f04f[_0x4130b5(0x7d)]?_0x4130b5(0x88):'inherit'}};}export function buildCanonicalAppConfig(_0xacd99b,_0x3c6527){const _0x3843ad=a204_0x29d742,_0x206b90=_0xacd99b['map'](_0x24c837=>String(_0x24c837||'')[_0x3843ad(0x7a)]())['filter'](Boolean);if(_0x206b90[_0x3843ad(0x98)]===0x0)return{};const _0x59b278={};for(const _0x419a34 of _0x206b90){_0x59b278[_0x419a34]=_0x3c6527?{'appcode':_0x419a34,'env':_0x3c6527}:{'appcode':_0x419a34};}return{'apps':_0x59b278,'defaultApp':_0x206b90[0x0]};}export function buildCanonicalProjectConfig(_0x442aff,_0xa21494){const _0x59cd73=a204_0x29d742,{appCodes:appCodes=[],env:_0x30c55c,metadata:_0xdce8c4}=_0xa21494,_0x3a451a={..._0x442aff,..._0xdce8c4||{}};delete _0x3a451a[_0x59cd73(0x8c)],delete _0x3a451a[_0x59cd73(0x88)];if(_0x30c55c)_0x3a451a[_0x59cd73(0x94)]=_0x30c55c;else!_0x3a451a[_0x59cd73(0x94)]&&(_0x3a451a[_0x59cd73(0x94)]=DEFAULT_CONFIG_VALUES['env']);const _0x2657b3=buildCanonicalAppConfig(appCodes,_0x3a451a['env']);return Object['keys'](_0x2657b3)[_0x59cd73(0x98)]>0x0&&(_0x3a451a[_0x59cd73(0x97)]=_0x2657b3[_0x59cd73(0x97)],_0x3a451a['defaultApp']=_0x2657b3[_0x59cd73(0x7f)]),_0x3a451a;}const LOCALE_MAP={'zh':a204_0x29d742(0x99),'zh-cn':'zh-CN','zh_cn':a204_0x29d742(0x99),'en':'en-US','en-us':'en-US','en_us':a204_0x29d742(0x7c)};export function normalizeLocale(_0x265f6){const _0xd30eba=a204_0x29d742;if(!_0x265f6)return null;return LOCALE_MAP[_0x265f6[_0xd30eba(0x8b)]()]??null;}
1
+ const a204_0x28961a=a204_0x14d8;(function(_0x3edb20,_0x31cf3b){const _0x551f4e=a204_0x14d8,_0x1d6b0e=_0x3edb20();while(!![]){try{const _0x5ae69c=-parseInt(_0x551f4e(0x160))/0x1+-parseInt(_0x551f4e(0x166))/0x2+-parseInt(_0x551f4e(0x155))/0x3+parseInt(_0x551f4e(0x14b))/0x4*(parseInt(_0x551f4e(0x14a))/0x5)+-parseInt(_0x551f4e(0x141))/0x6+parseInt(_0x551f4e(0x151))/0x7+-parseInt(_0x551f4e(0x163))/0x8*(-parseInt(_0x551f4e(0x13e))/0x9);if(_0x5ae69c===_0x31cf3b)break;else _0x1d6b0e['push'](_0x1d6b0e['shift']());}catch(_0xc1a17b){_0x1d6b0e['push'](_0x1d6b0e['shift']());}}}(a204_0x7889,0xdea1c));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RABETBASE_ENV_VALUES}from'../constant/env.js';function a204_0x14d8(_0x3fc665,_0x233ae2){_0x3fc665=_0x3fc665-0x13e;const _0x7889aa=a204_0x7889();let _0x14d853=_0x7889aa[_0x3fc665];return _0x14d853;}import{RABETBASE_OUTPUT_FORMAT_VALUES}from'../constant/output.js';import{RISK_LEVEL_VALUES}from'../constant/risk.js';export{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';export const PROJECT_CREATE_INHERITABLE_KEYS=['cookie',a204_0x28961a(0x15e),a204_0x28961a(0x15d),'format',a204_0x28961a(0x165)];function a204_0x7889(){const _0x35e976=['Default\x20page\x20size','appcode','15gWzVto','1425756kyRiPz','trim','entries','API\x20directory\x20path','app','cookie','2673419aFsCbD','string','keys','join','4917072riLwxK','has','apiDir','map','pageSize','apps','en-US','number','locale','accessKey','Access\x20key','228170OBepvl','defaultFormat','env','24YUBKRf','Risk\x20level','riskLevel','1583804kkhtpk','inherit','9169749btinIr','length','Target\x20environment','5620926WbTror','Auth\x20cookie','Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','format','Locale','Config\x20key\x20(','zh-CN'];a204_0x7889=function(){return _0x35e976;};return a204_0x7889();}export const TOP_LEVEL_CONFIG_KEYS=new Set([a204_0x28961a(0x149),a204_0x28961a(0x162),'locale',a204_0x28961a(0x144),a204_0x28961a(0x150),a204_0x28961a(0x15e),a204_0x28961a(0x157)]);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES]};export function formatConfigKeyList(_0x56c219){const _0x46d374=a204_0x28961a;return[..._0x56c219][_0x46d374(0x154)](',\x20');}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0x30df11){const _0x5e0dfe=a204_0x28961a;return TOP_LEVEL_CONFIG_KEYS[_0x5e0dfe(0x156)](_0x30df11);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x353ad8=a204_0x28961a;return _0x353ad8(0x146)+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'env':'env','apiDir':a204_0x28961a(0x157),'cookie':a204_0x28961a(0x150),'accessKey':a204_0x28961a(0x15e),'defaultFormat':a204_0x28961a(0x144),'pageSize':a204_0x28961a(0x159),'riskLevel':a204_0x28961a(0x165),'locale':a204_0x28961a(0x15d)};export function getAppProfileFlagDefs(){const _0x2ad085=a204_0x28961a;return[{'name':_0x2ad085(0x162),'type':_0x2ad085(0x152),'description':_0x2ad085(0x140),'enum':[...RABETBASE_ENV_VALUES]},{'name':_0x2ad085(0x157),'type':_0x2ad085(0x152),'description':_0x2ad085(0x14e)},{'name':_0x2ad085(0x150),'type':'string','description':_0x2ad085(0x142),'hidden':!![]},{'name':'accessKey','type':'string','description':_0x2ad085(0x15f),'hidden':!![]},{'name':_0x2ad085(0x161),'type':_0x2ad085(0x152),'description':_0x2ad085(0x143),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':_0x2ad085(0x159),'type':_0x2ad085(0x15c),'description':_0x2ad085(0x148)},{'name':'riskLevel','type':_0x2ad085(0x152),'description':_0x2ad085(0x164),'enum':[...RISK_LEVEL_VALUES]},{'name':_0x2ad085(0x15d),'type':_0x2ad085(0x152),'description':_0x2ad085(0x145)}];}export function collectAppProfileOverrides(_0x1ca8b3){const _0x361d30=a204_0x28961a,_0x1cc1d7={};for(const [_0x50d075,_0x4f5a00]of Object[_0x361d30(0x14d)](APP_PROFILE_FLAG_KEY_MAP)){const _0x21b1af=_0x1ca8b3(_0x50d075);if(!_0x21b1af)continue;_0x1cc1d7[_0x4f5a00]=_0x4f5a00==='pageSize'?Number(_0x21b1af):_0x21b1af;}return _0x1cc1d7;}export function buildAppProfileListFields(_0x27d141){const _0x4f2261=a204_0x28961a;return{'env':_0x27d141[_0x4f2261(0x162)]??null,'apiDir':_0x27d141['apiDir']??null,'hasCookie':!!_0x27d141['cookie'],'hasAccessKey':!!_0x27d141[_0x4f2261(0x15e)],'format':_0x27d141[_0x4f2261(0x144)]??null,'pageSize':_0x27d141['pageSize']??null,'riskLevel':_0x27d141[_0x4f2261(0x165)]??null,'locale':_0x27d141['locale']??null};}export function buildAppDoctorFields(_0x3862c7,_0x23582f){const _0x476d82=a204_0x28961a;return{'env':{'value':_0x3862c7[_0x476d82(0x162)]||_0x23582f['env'],'source':_0x3862c7[_0x476d82(0x162)]?_0x476d82(0x14f):_0x476d82(0x167)},'apiDir':{'value':_0x3862c7['apiDir']||_0x23582f[_0x476d82(0x157)],'source':_0x3862c7[_0x476d82(0x157)]?_0x476d82(0x14f):_0x476d82(0x167)},'cookie':{'value':_0x3862c7[_0x476d82(0x150)]||_0x23582f[_0x476d82(0x150)],'source':_0x3862c7[_0x476d82(0x150)]?_0x476d82(0x14f):_0x476d82(0x167)},'accessKey':{'value':_0x3862c7[_0x476d82(0x15e)]||_0x23582f[_0x476d82(0x15e)],'source':_0x3862c7['accessKey']?_0x476d82(0x14f):_0x476d82(0x167)}};}export function buildCanonicalAppConfig(_0x522998,_0x35b9e2){const _0x206294=a204_0x28961a,_0x3c9f7b=_0x522998[_0x206294(0x158)](_0x2971b6=>String(_0x2971b6||'')[_0x206294(0x14c)]())['filter'](Boolean);if(_0x3c9f7b['length']===0x0)return{};const _0x5127e8={};for(const _0x2f1a64 of _0x3c9f7b){_0x5127e8[_0x2f1a64]=_0x35b9e2?{'appcode':_0x2f1a64,'env':_0x35b9e2}:{'appcode':_0x2f1a64};}return{'apps':_0x5127e8,'defaultApp':_0x3c9f7b[0x0]};}export function buildCanonicalProjectConfig(_0x370d2d,_0xd6cf0f){const _0x1afbbc=a204_0x28961a,{appCodes:appCodes=[],env:_0x23c732,metadata:_0x1cc524}=_0xd6cf0f,_0xcc87ea={..._0x370d2d,..._0x1cc524||{}};delete _0xcc87ea['appcode'],delete _0xcc87ea['app'];if(_0x23c732)_0xcc87ea[_0x1afbbc(0x162)]=_0x23c732;else!_0xcc87ea[_0x1afbbc(0x162)]&&(_0xcc87ea[_0x1afbbc(0x162)]=DEFAULT_CONFIG_VALUES['env']);const _0x58c9b0=buildCanonicalAppConfig(appCodes,_0xcc87ea[_0x1afbbc(0x162)]);return Object[_0x1afbbc(0x153)](_0x58c9b0)[_0x1afbbc(0x13f)]>0x0&&(_0xcc87ea['apps']=_0x58c9b0[_0x1afbbc(0x15a)],_0xcc87ea['defaultApp']=_0x58c9b0['defaultApp']),_0xcc87ea;}const LOCALE_MAP={'zh':a204_0x28961a(0x147),'zh-cn':'zh-CN','zh_cn':'zh-CN','en':a204_0x28961a(0x15b),'en-us':a204_0x28961a(0x15b),'en_us':a204_0x28961a(0x15b)};export function normalizeLocale(_0x2dce2d){if(!_0x2dce2d)return null;return LOCALE_MAP[_0x2dce2d['toLowerCase']()]??null;}
@@ -1 +1 @@
1
- const a205_0x515941=a205_0x4568;(function(_0x5710d9,_0x4bc923){const _0x3f08b2=a205_0x4568,_0x4725be=_0x5710d9();while(!![]){try{const _0x541dca=parseInt(_0x3f08b2(0x1f6))/0x1*(-parseInt(_0x3f08b2(0x1f9))/0x2)+parseInt(_0x3f08b2(0x1f5))/0x3*(-parseInt(_0x3f08b2(0x1f1))/0x4)+-parseInt(_0x3f08b2(0x1f0))/0x5+-parseInt(_0x3f08b2(0x1ed))/0x6*(-parseInt(_0x3f08b2(0x1f7))/0x7)+-parseInt(_0x3f08b2(0x1ef))/0x8*(parseInt(_0x3f08b2(0x1f3))/0x9)+-parseInt(_0x3f08b2(0x1f8))/0xa+parseInt(_0x3f08b2(0x1f2))/0xb*(parseInt(_0x3f08b2(0x1f4))/0xc);if(_0x541dca===_0x4bc923)break;else _0x4725be['push'](_0x4725be['shift']());}catch(_0x181a79){_0x4725be['push'](_0x4725be['shift']());}}}(a205_0x48b3,0xd91bc));function a205_0x4568(_0x2fae31,_0x5252a4){_0x2fae31=_0x2fae31-0x1ed;const _0x48b39c=a205_0x48b3();let _0x456870=_0x48b39c[_0x2fae31];return _0x456870;}export const CLI_VERSION_POLICY_URL=a205_0x515941(0x1ee);function a205_0x48b3(){const _0x518fe6=['144334BlKrdq','1179605ABUnir','10590360iTlxJK','6iDziVN','42CrJEXU','https://g.lovrabet.com/dist/rabetbase-cli/config/index.json','161336QQsQJL','8708285xLlXuy','102964JZoNnS','11VgBoAG','693kcwLvB','71252652ZzguoZ','168ZhMpWA'];a205_0x48b3=function(){return _0x518fe6;};return a205_0x48b3();}
1
+ function a205_0x4df2(_0x525d11,_0x32609e){_0x525d11=_0x525d11-0x9b;const _0x4f79ba=a205_0x4f79();let _0x4df256=_0x4f79ba[_0x525d11];return _0x4df256;}const a205_0x10097a=a205_0x4df2;(function(_0x48193b,_0x48d51b){const _0x1054c0=a205_0x4df2,_0x549ad7=_0x48193b();while(!![]){try{const _0x1d2558=-parseInt(_0x1054c0(0xa0))/0x1+parseInt(_0x1054c0(0x9b))/0x2*(parseInt(_0x1054c0(0x9e))/0x3)+parseInt(_0x1054c0(0xa5))/0x4+parseInt(_0x1054c0(0xa3))/0x5*(-parseInt(_0x1054c0(0xa1))/0x6)+parseInt(_0x1054c0(0xa4))/0x7+-parseInt(_0x1054c0(0xa2))/0x8*(parseInt(_0x1054c0(0x9c))/0x9)+parseInt(_0x1054c0(0x9f))/0xa;if(_0x1d2558===_0x48d51b)break;else _0x549ad7['push'](_0x549ad7['shift']());}catch(_0x22cabf){_0x549ad7['push'](_0x549ad7['shift']());}}}(a205_0x4f79,0x85b19));function a205_0x4f79(){const _0x3b951f=['169648bBwviF','5113915KXflQR','5129929RcziKY','765592EsMAmu','358zenvqR','351arPJbz','https://g.lovrabet.com/dist/rabetbase-cli/config/index.json','3531uHrEUT','20671720YwXrBl','804674tdZkWQ','6HMBhxq'];a205_0x4f79=function(){return _0x3b951f;};return a205_0x4f79();}export const CLI_VERSION_POLICY_URL=a205_0x10097a(0x9d);
@@ -1 +1 @@
1
- const a206_0x1aa692=a206_0x551b;(function(_0x1550e6,_0x5c763f){const _0x5a7d26=a206_0x551b,_0x21525b=_0x1550e6();while(!![]){try{const _0x33ba07=parseInt(_0x5a7d26(0x141))/0x1+-parseInt(_0x5a7d26(0xea))/0x2*(parseInt(_0x5a7d26(0xe1))/0x3)+parseInt(_0x5a7d26(0xde))/0x4*(parseInt(_0x5a7d26(0x144))/0x5)+-parseInt(_0x5a7d26(0x149))/0x6+-parseInt(_0x5a7d26(0x137))/0x7+parseInt(_0x5a7d26(0xf7))/0x8*(-parseInt(_0x5a7d26(0xdb))/0x9)+parseInt(_0x5a7d26(0xee))/0xa;if(_0x33ba07===_0x5c763f)break;else _0x21525b['push'](_0x21525b['shift']());}catch(_0x38b7b3){_0x21525b['push'](_0x21525b['shift']());}}}(a206_0x2d1a,0x4603e));export const CLI_BIN_NAME=a206_0x1aa692(0x10f);function a206_0x551b(_0x30d2f3,_0x5b50e7){_0x30d2f3=_0x30d2f3-0xcc;const _0x2d1a2f=a206_0x2d1a();let _0x551bb0=_0x2d1a2f[_0x30d2f3];return _0x551bb0;}function a206_0x2d1a(){const _0x4952df=['rabetbase','functionNode','Force\x20overwrite','operationType','Apply\x20to\x20all','type','sort','dry-run','@lovrabet/rabetbase-cli','<code>','all','Watch\x20mode','datasetcode','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','expectedCount','Title','Menu\x20label','Schemas','file','Tags','Description','File\x20path','parentId','clear','params','name','sqlcode','Select\x20app\x20profile\x20by\x20name','expected-count','pagesize','Record\x20ID','DB\x20ID','expected-children-count','env','Menu\x20sort\x20value','Expected\x20current\x20menu\x20path','value','menu-ids','Show\x20help','from-env','3712660Wouwoy','Read\x20value\x20from\x20stdin','expectedChildrenCount','description-file','Function\x20node','meowKey','boolean','Operation\x20type','Config\x20value','key','432776Lynimd','Skip\x20import\x20generation','Verbose\x20output','1480175oAYXdM','Use\x20global\x20config\x20scope','output','Parent\x20menu\x20id','json\x20|\x20pretty\x20|\x20compress','2325030bPgmOg','parent-id','expectPath','keyword','dbid','yes','Use\x20remote','Expected\x20current\x20child\x20count','target','help','Override\x20appcode','expect-path','non-interactive','Read\x20value\x20from\x20environment\x20variable','description','sqlname','verbose','99jHQDYE','descriptionFile','Comma-separated\x20menu\x20IDs','4snQwzK','<expr>','schemas','3ZRdzKe','Asynchronous\x20task\x20ID','expect-parent-id','Confirm\x20destructive\x20action','operation','string','Skip\x20confirmation\x20for\x20high-risk\x20writes','Target\x20path','force','1051628iTIKRi','taskId','Config\x20key','Type\x20filter','15486670FrAtfu','appcode','Expected\x20affected\x20count','production\x20|\x20daily','sql','Use\x20project\x20config\x20scope','Page\x20number','menuIds','Clear','397816gcOmMR','db-id','project','SQL\x20name','Output\x20path','code','sql-name','title','stdin','dbId','Dataset\x20code','fromEntries','page','SQL\x20code','JSON\x20params','Preview\x20operation\x20without\x20executing','global','app','skip-imports','SQL\x20string','watch','format','Code\x20filter','remote'];a206_0x2d1a=function(){return _0x4952df;};return a206_0x2d1a();}export const CLI_DISPLAY_NAME='Rabetbase\x20CLI';export const NPM_PACKAGE_NAME=a206_0x1aa692(0x117);export const GLOBAL_FLAGS=[{'name':a206_0x1aa692(0xef),'meowKey':a206_0x1aa692(0xef),'type':'string','description':a206_0x1aa692(0xd4),'hint':a206_0x1aa692(0x118)},{'name':a206_0x1aa692(0x108),'meowKey':a206_0x1aa692(0x108),'type':a206_0x1aa692(0xe6),'description':a206_0x1aa692(0x12a),'hint':'<name>'},{'name':'env','meowKey':a206_0x1aa692(0x130),'type':a206_0x1aa692(0xe6),'description':'Environment','hint':a206_0x1aa692(0xf1)},{'name':a206_0x1aa692(0x10c),'meowKey':a206_0x1aa692(0x10c),'type':a206_0x1aa692(0xe6),'description':'Output\x20format','hint':a206_0x1aa692(0x148)},{'name':'jq','meowKey':'jq','type':'string','description':a206_0x1aa692(0x11c),'hint':a206_0x1aa692(0xdf)},{'name':a206_0x1aa692(0x116),'meowKey':'dryRun','type':a206_0x1aa692(0x13d),'description':a206_0x1aa692(0x106)},{'name':'yes','meowKey':a206_0x1aa692(0xcf),'type':'boolean','description':a206_0x1aa692(0xe7)},{'name':a206_0x1aa692(0xd6),'meowKey':'nonInteractive','type':a206_0x1aa692(0x13d),'description':'Force\x20non-interactive\x20mode\x20(CI)'},{'name':a206_0x1aa692(0x107),'meowKey':'global','type':a206_0x1aa692(0x13d),'description':a206_0x1aa692(0x145)},{'name':a206_0x1aa692(0xf9),'meowKey':a206_0x1aa692(0xf9),'type':'boolean','description':a206_0x1aa692(0xf3)},{'name':'ci','meowKey':'ci','type':a206_0x1aa692(0x13d),'description':'Alias\x20for\x20--non-interactive','hidden':!![]},{'name':a206_0x1aa692(0xd3),'meowKey':a206_0x1aa692(0xd3),'type':a206_0x1aa692(0x13d),'description':a206_0x1aa692(0x135)},{'name':'name','meowKey':a206_0x1aa692(0x128),'type':a206_0x1aa692(0xe6),'description':'Name','hidden':!![]},{'name':a206_0x1aa692(0xfe),'meowKey':a206_0x1aa692(0xfe),'type':a206_0x1aa692(0xe6),'description':a206_0x1aa692(0x11e),'hidden':!![]},{'name':a206_0x1aa692(0x126),'meowKey':a206_0x1aa692(0x126),'type':'boolean','description':a206_0x1aa692(0xf6),'hidden':!![]},{'name':a206_0x1aa692(0x10b),'meowKey':'watch','type':a206_0x1aa692(0x13d),'description':a206_0x1aa692(0x11a),'hidden':!![]},{'name':a206_0x1aa692(0x146),'meowKey':'output','type':a206_0x1aa692(0xe6),'description':a206_0x1aa692(0xfb),'hidden':!![]},{'name':'params','meowKey':a206_0x1aa692(0x127),'type':a206_0x1aa692(0xe6),'description':a206_0x1aa692(0x105),'hidden':!![]},{'name':'datasetcode','meowKey':a206_0x1aa692(0x11b),'type':a206_0x1aa692(0xe6),'description':a206_0x1aa692(0x101),'hidden':!![]},{'name':'all','meowKey':a206_0x1aa692(0x119),'type':a206_0x1aa692(0x13d),'description':a206_0x1aa692(0x113),'hidden':!![]},{'name':'enable-bff-save','meowKey':'enableBffSave','type':a206_0x1aa692(0x13d),'description':'Enable\x20BFF\x20save','hidden':!![]},{'name':'id','meowKey':'id','type':a206_0x1aa692(0xe6),'description':a206_0x1aa692(0x12d),'hidden':!![]},{'name':'type','meowKey':a206_0x1aa692(0x114),'type':'string','description':a206_0x1aa692(0xed),'hidden':!![]},{'name':a206_0x1aa692(0x121),'meowKey':'file','type':'string','description':a206_0x1aa692(0x124),'hidden':!![]},{'name':a206_0x1aa692(0x129),'meowKey':a206_0x1aa692(0x129),'type':a206_0x1aa692(0xe6),'description':a206_0x1aa692(0x104),'hidden':!![]},{'name':a206_0x1aa692(0xfd),'meowKey':'sqlName','type':a206_0x1aa692(0xe6),'description':a206_0x1aa692(0xfa),'hidden':!![]},{'name':a206_0x1aa692(0xd9),'meowKey':a206_0x1aa692(0xd9),'type':a206_0x1aa692(0xe6),'description':a206_0x1aa692(0xfa),'hidden':!![]},{'name':a206_0x1aa692(0xf8),'meowKey':a206_0x1aa692(0x100),'type':'string','description':a206_0x1aa692(0x12e),'hidden':!![]},{'name':a206_0x1aa692(0xce),'meowKey':'dbid','type':a206_0x1aa692(0xe6),'description':a206_0x1aa692(0x12e),'hidden':!![]},{'name':a206_0x1aa692(0xd8),'meowKey':a206_0x1aa692(0xd8),'type':a206_0x1aa692(0xe6),'description':a206_0x1aa692(0x123),'hidden':!![]},{'name':a206_0x1aa692(0x13a),'meowKey':a206_0x1aa692(0xdc),'type':'string','description':'Description\x20file','hidden':!![]},{'name':a206_0x1aa692(0x103),'meowKey':a206_0x1aa692(0x103),'type':a206_0x1aa692(0xe6),'description':a206_0x1aa692(0xf4),'hidden':!![]},{'name':a206_0x1aa692(0x12c),'meowKey':'pagesize','type':a206_0x1aa692(0xe6),'description':'Page\x20size','hidden':!![]},{'name':a206_0x1aa692(0xcd),'meowKey':a206_0x1aa692(0xcd),'type':a206_0x1aa692(0xe6),'description':'Keyword\x20filter','hidden':!![]},{'name':a206_0x1aa692(0xfc),'meowKey':a206_0x1aa692(0xfc),'type':a206_0x1aa692(0xe6),'description':a206_0x1aa692(0x10d),'hidden':!![]},{'name':a206_0x1aa692(0xf2),'meowKey':a206_0x1aa692(0xf2),'type':a206_0x1aa692(0xe6),'description':a206_0x1aa692(0x10a),'hidden':!![]},{'name':a206_0x1aa692(0xe0),'meowKey':a206_0x1aa692(0xe0),'type':a206_0x1aa692(0xe6),'description':a206_0x1aa692(0x120),'hidden':!![]},{'name':a206_0x1aa692(0xe5),'meowKey':a206_0x1aa692(0xe5),'type':'string','description':'Operation\x20type','hidden':!![]},{'name':a206_0x1aa692(0xd2),'meowKey':'target','type':'string','description':a206_0x1aa692(0xe8),'hidden':!![]},{'name':a206_0x1aa692(0x109),'meowKey':'skipImports','type':a206_0x1aa692(0x13d),'description':a206_0x1aa692(0x142),'hidden':!![]},{'name':a206_0x1aa692(0x140),'meowKey':a206_0x1aa692(0x140),'type':'string','description':a206_0x1aa692(0xec),'hidden':!![]},{'name':a206_0x1aa692(0x133),'meowKey':'value','type':'string','description':a206_0x1aa692(0x13f),'hidden':!![]},{'name':'tags','meowKey':'tags','type':'string','description':a206_0x1aa692(0x122),'hidden':!![]},{'name':a206_0x1aa692(0xff),'meowKey':'stdin','type':a206_0x1aa692(0x13d),'description':a206_0x1aa692(0x138),'hidden':!![]},{'name':a206_0x1aa692(0x136),'meowKey':'fromEnv','type':a206_0x1aa692(0xe6),'description':a206_0x1aa692(0xd7),'hidden':!![]},{'name':'reveal','meowKey':'reveal','type':a206_0x1aa692(0x13d),'description':'Reveal\x20sensitive\x20value','hidden':!![]},{'name':a206_0x1aa692(0xe9),'meowKey':'force','type':a206_0x1aa692(0x13d),'description':a206_0x1aa692(0x111),'hidden':!![]},{'name':'confirm','meowKey':'confirm','type':a206_0x1aa692(0x13d),'description':a206_0x1aa692(0xe4),'hidden':!![]},{'name':'remote','meowKey':a206_0x1aa692(0x10e),'type':a206_0x1aa692(0x13d),'description':a206_0x1aa692(0xd0),'hidden':!![]},{'name':a206_0x1aa692(0xda),'meowKey':'verbose','type':'boolean','description':a206_0x1aa692(0x143),'hidden':!![]},{'name':a206_0x1aa692(0x12b),'meowKey':a206_0x1aa692(0x11d),'type':'string','description':a206_0x1aa692(0xf0),'hidden':!![]},{'name':'label','meowKey':'label','type':a206_0x1aa692(0xe6),'description':a206_0x1aa692(0x11f),'hidden':!![]},{'name':a206_0x1aa692(0x14a),'meowKey':a206_0x1aa692(0x125),'type':a206_0x1aa692(0xe6),'description':a206_0x1aa692(0x147),'hidden':!![]},{'name':a206_0x1aa692(0x115),'meowKey':'sort','type':a206_0x1aa692(0xe6),'description':a206_0x1aa692(0x131),'hidden':!![]},{'name':a206_0x1aa692(0xe3),'meowKey':'expectParentId','type':a206_0x1aa692(0xe6),'description':'Expected\x20current\x20parent\x20menu\x20id','hidden':!![]},{'name':a206_0x1aa692(0xd5),'meowKey':a206_0x1aa692(0xcc),'type':a206_0x1aa692(0xe6),'description':a206_0x1aa692(0x132),'hidden':!![]},{'name':a206_0x1aa692(0x12f),'meowKey':a206_0x1aa692(0x139),'type':'string','description':a206_0x1aa692(0xd1),'hidden':!![]},{'name':a206_0x1aa692(0x134),'meowKey':a206_0x1aa692(0xf5),'type':a206_0x1aa692(0xe6),'description':a206_0x1aa692(0xdd),'hidden':!![]},{'name':'task-id','meowKey':a206_0x1aa692(0xeb),'type':'string','description':a206_0x1aa692(0xe2),'hidden':!![]},{'name':'operation-type','meowKey':a206_0x1aa692(0x112),'type':'string','description':a206_0x1aa692(0x13e),'hidden':!![]},{'name':'function-node','meowKey':a206_0x1aa692(0x110),'type':a206_0x1aa692(0xe6),'description':a206_0x1aa692(0x13b),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a206_0x1aa692(0xef),'app',a206_0x1aa692(0x130),a206_0x1aa692(0x10c),'jq',a206_0x1aa692(0x116),a206_0x1aa692(0xcf),a206_0x1aa692(0xd6),'ci']);export function buildMeowFlags(){const _0x4c9b83=a206_0x1aa692;return Object[_0x4c9b83(0x102)](GLOBAL_FLAGS['map'](_0x4456fe=>[_0x4456fe[_0x4c9b83(0x13c)],{'type':_0x4456fe['type']}]));}
1
+ const a206_0x541eb5=a206_0x3ec7;function a206_0x3ec7(_0x26f586,_0x41c8dd){_0x26f586=_0x26f586-0x178;const _0x105055=a206_0x1050();let _0x3ec799=_0x105055[_0x26f586];return _0x3ec799;}(function(_0x4a8e6b,_0x26806c){const _0xf52465=a206_0x3ec7,_0x16517c=_0x4a8e6b();while(!![]){try{const _0x38110e=-parseInt(_0xf52465(0x1aa))/0x1+-parseInt(_0xf52465(0x1e0))/0x2+parseInt(_0xf52465(0x1d0))/0x3*(-parseInt(_0xf52465(0x178))/0x4)+-parseInt(_0xf52465(0x180))/0x5*(-parseInt(_0xf52465(0x197))/0x6)+parseInt(_0xf52465(0x19f))/0x7*(-parseInt(_0xf52465(0x1c0))/0x8)+parseInt(_0xf52465(0x1b8))/0x9+parseInt(_0xf52465(0x19d))/0xa;if(_0x38110e===_0x26806c)break;else _0x16517c['push'](_0x16517c['shift']());}catch(_0x908ba5){_0x16517c['push'](_0x16517c['shift']());}}}(a206_0x1050,0x3c3ea));export const CLI_BIN_NAME='rabetbase';export const CLI_DISPLAY_NAME='Rabetbase\x20CLI';export const NPM_PACKAGE_NAME='@lovrabet/rabetbase-cli';function a206_0x1050(){const _0xd3eda1=['80993LRlHcK','Operation\x20type','Force\x20non-interactive\x20mode\x20(CI)','description','sql-name','dryRun','code','Show\x20help','Use\x20project\x20config\x20scope','Page\x20size','File\x20path','value','SQL\x20string','fromEntries','1659411RYhWcE','watch','Reveal\x20sensitive\x20value','SQL\x20name','output','title','string','Output\x20format','318328vvTEiP','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','Title','nonInteractive','function-node','pagesize','production\x20|\x20daily','clear','sort','<code>','Record\x20ID','params','Use\x20global\x20config\x20scope','sqlname','Preview\x20operation\x20without\x20executing','dry-run','22440tXxFSE','Asynchronous\x20task\x20ID','label','boolean','Enable\x20BFF\x20save','task-id','Target\x20path','<expr>','descriptionFile','expectedChildrenCount','parentId','Config\x20key','Confirm\x20destructive\x20action','taskId','dbId','file','295450oENCSo','Name','yes','schemas','page','expectParentId','Config\x20value','from-env','Function\x20node','Comma-separated\x20menu\x20IDs','Force\x20overwrite','appcode','Description\x20file','sqlcode','env','global','DB\x20ID','Parent\x20menu\x20id','52oRpnOF','Code\x20filter','Menu\x20label','force','non-interactive','operation-type','Expected\x20current\x20child\x20count','Menu\x20sort\x20value','5MfTKfl','Use\x20remote','expected-children-count','expectPath','expect-parent-id','project','expected-count','SQL\x20code','all','remote','datasetcode','enableBffSave','Keyword\x20filter','confirm','sql','Alias\x20for\x20--non-interactive','operationType','Dataset\x20code','Skip\x20confirmation\x20for\x20high-risk\x20writes','keyword','verbose','stdin','Expected\x20current\x20parent\x20menu\x20id','341358diBoFI','JSON\x20params','skipImports','app','name','format','6895670wvPSYa','map','63QTLGAK','key','type','enable-bff-save','Output\x20path','parent-id','Environment','expectedCount','tags','reveal','target'];a206_0x1050=function(){return _0xd3eda1;};return a206_0x1050();}export const GLOBAL_FLAGS=[{'name':a206_0x541eb5(0x1eb),'meowKey':a206_0x541eb5(0x1eb),'type':'string','description':'Override\x20appcode','hint':a206_0x541eb5(0x1c9)},{'name':'app','meowKey':a206_0x541eb5(0x19a),'type':a206_0x541eb5(0x1be),'description':'Select\x20app\x20profile\x20by\x20name','hint':'<name>'},{'name':a206_0x541eb5(0x1ee),'meowKey':'env','type':a206_0x541eb5(0x1be),'description':a206_0x541eb5(0x1a5),'hint':a206_0x541eb5(0x1c6)},{'name':'format','meowKey':a206_0x541eb5(0x19c),'type':a206_0x541eb5(0x1be),'description':a206_0x541eb5(0x1bf),'hint':'json\x20|\x20pretty\x20|\x20compress'},{'name':'jq','meowKey':'jq','type':'string','description':a206_0x541eb5(0x1c1),'hint':a206_0x541eb5(0x1d7)},{'name':a206_0x541eb5(0x1cf),'meowKey':a206_0x541eb5(0x1af),'type':'boolean','description':a206_0x541eb5(0x1ce)},{'name':a206_0x541eb5(0x1e2),'meowKey':'yes','type':'boolean','description':a206_0x541eb5(0x192)},{'name':a206_0x541eb5(0x17c),'meowKey':a206_0x541eb5(0x1c3),'type':a206_0x541eb5(0x1d3),'description':a206_0x541eb5(0x1ac)},{'name':'global','meowKey':a206_0x541eb5(0x1ef),'type':'boolean','description':a206_0x541eb5(0x1cc)},{'name':a206_0x541eb5(0x185),'meowKey':a206_0x541eb5(0x185),'type':'boolean','description':a206_0x541eb5(0x1b2)},{'name':'ci','meowKey':'ci','type':a206_0x541eb5(0x1d3),'description':a206_0x541eb5(0x18f),'hidden':!![]},{'name':'help','meowKey':'help','type':a206_0x541eb5(0x1d3),'description':a206_0x541eb5(0x1b1)},{'name':a206_0x541eb5(0x19b),'meowKey':a206_0x541eb5(0x19b),'type':a206_0x541eb5(0x1be),'description':a206_0x541eb5(0x1e1),'hidden':!![]},{'name':a206_0x541eb5(0x1bd),'meowKey':a206_0x541eb5(0x1bd),'type':'string','description':a206_0x541eb5(0x1c2),'hidden':!![]},{'name':a206_0x541eb5(0x1c7),'meowKey':a206_0x541eb5(0x1c7),'type':a206_0x541eb5(0x1d3),'description':'Clear','hidden':!![]},{'name':a206_0x541eb5(0x1b9),'meowKey':a206_0x541eb5(0x1b9),'type':a206_0x541eb5(0x1d3),'description':'Watch\x20mode','hidden':!![]},{'name':a206_0x541eb5(0x1bc),'meowKey':a206_0x541eb5(0x1bc),'type':'string','description':a206_0x541eb5(0x1a3),'hidden':!![]},{'name':a206_0x541eb5(0x1cb),'meowKey':a206_0x541eb5(0x1cb),'type':a206_0x541eb5(0x1be),'description':a206_0x541eb5(0x198),'hidden':!![]},{'name':'datasetcode','meowKey':a206_0x541eb5(0x18a),'type':a206_0x541eb5(0x1be),'description':a206_0x541eb5(0x191),'hidden':!![]},{'name':a206_0x541eb5(0x188),'meowKey':a206_0x541eb5(0x188),'type':a206_0x541eb5(0x1d3),'description':'Apply\x20to\x20all','hidden':!![]},{'name':a206_0x541eb5(0x1a2),'meowKey':a206_0x541eb5(0x18b),'type':'boolean','description':a206_0x541eb5(0x1d4),'hidden':!![]},{'name':'id','meowKey':'id','type':'string','description':a206_0x541eb5(0x1ca),'hidden':!![]},{'name':a206_0x541eb5(0x1a1),'meowKey':a206_0x541eb5(0x1a1),'type':a206_0x541eb5(0x1be),'description':'Type\x20filter','hidden':!![]},{'name':a206_0x541eb5(0x1df),'meowKey':a206_0x541eb5(0x1df),'type':'string','description':a206_0x541eb5(0x1b4),'hidden':!![]},{'name':'sqlcode','meowKey':a206_0x541eb5(0x1ed),'type':'string','description':a206_0x541eb5(0x187),'hidden':!![]},{'name':a206_0x541eb5(0x1ae),'meowKey':'sqlName','type':'string','description':a206_0x541eb5(0x1bb),'hidden':!![]},{'name':a206_0x541eb5(0x1cd),'meowKey':a206_0x541eb5(0x1cd),'type':a206_0x541eb5(0x1be),'description':'SQL\x20name','hidden':!![]},{'name':'db-id','meowKey':a206_0x541eb5(0x1de),'type':'string','description':'DB\x20ID','hidden':!![]},{'name':'dbid','meowKey':'dbid','type':a206_0x541eb5(0x1be),'description':a206_0x541eb5(0x1f0),'hidden':!![]},{'name':a206_0x541eb5(0x1ad),'meowKey':a206_0x541eb5(0x1ad),'type':a206_0x541eb5(0x1be),'description':'Description','hidden':!![]},{'name':'description-file','meowKey':a206_0x541eb5(0x1d8),'type':'string','description':a206_0x541eb5(0x1ec),'hidden':!![]},{'name':a206_0x541eb5(0x1e4),'meowKey':a206_0x541eb5(0x1e4),'type':a206_0x541eb5(0x1be),'description':'Page\x20number','hidden':!![]},{'name':a206_0x541eb5(0x1c5),'meowKey':'pagesize','type':a206_0x541eb5(0x1be),'description':a206_0x541eb5(0x1b3),'hidden':!![]},{'name':a206_0x541eb5(0x193),'meowKey':a206_0x541eb5(0x193),'type':a206_0x541eb5(0x1be),'description':a206_0x541eb5(0x18c),'hidden':!![]},{'name':a206_0x541eb5(0x1b0),'meowKey':a206_0x541eb5(0x1b0),'type':'string','description':a206_0x541eb5(0x179),'hidden':!![]},{'name':'sql','meowKey':a206_0x541eb5(0x18e),'type':a206_0x541eb5(0x1be),'description':a206_0x541eb5(0x1b6),'hidden':!![]},{'name':a206_0x541eb5(0x1e3),'meowKey':a206_0x541eb5(0x1e3),'type':'string','description':'Schemas','hidden':!![]},{'name':'operation','meowKey':'operation','type':a206_0x541eb5(0x1be),'description':a206_0x541eb5(0x1ab),'hidden':!![]},{'name':a206_0x541eb5(0x1a9),'meowKey':a206_0x541eb5(0x1a9),'type':a206_0x541eb5(0x1be),'description':a206_0x541eb5(0x1d6),'hidden':!![]},{'name':'skip-imports','meowKey':a206_0x541eb5(0x199),'type':'boolean','description':'Skip\x20import\x20generation','hidden':!![]},{'name':a206_0x541eb5(0x1a0),'meowKey':'key','type':a206_0x541eb5(0x1be),'description':a206_0x541eb5(0x1db),'hidden':!![]},{'name':a206_0x541eb5(0x1b5),'meowKey':a206_0x541eb5(0x1b5),'type':a206_0x541eb5(0x1be),'description':a206_0x541eb5(0x1e6),'hidden':!![]},{'name':a206_0x541eb5(0x1a7),'meowKey':a206_0x541eb5(0x1a7),'type':a206_0x541eb5(0x1be),'description':'Tags','hidden':!![]},{'name':a206_0x541eb5(0x195),'meowKey':a206_0x541eb5(0x195),'type':a206_0x541eb5(0x1d3),'description':'Read\x20value\x20from\x20stdin','hidden':!![]},{'name':a206_0x541eb5(0x1e7),'meowKey':'fromEnv','type':'string','description':'Read\x20value\x20from\x20environment\x20variable','hidden':!![]},{'name':a206_0x541eb5(0x1a8),'meowKey':'reveal','type':a206_0x541eb5(0x1d3),'description':a206_0x541eb5(0x1ba),'hidden':!![]},{'name':a206_0x541eb5(0x17b),'meowKey':a206_0x541eb5(0x17b),'type':a206_0x541eb5(0x1d3),'description':a206_0x541eb5(0x1ea),'hidden':!![]},{'name':a206_0x541eb5(0x18d),'meowKey':a206_0x541eb5(0x18d),'type':'boolean','description':a206_0x541eb5(0x1dc),'hidden':!![]},{'name':'remote','meowKey':a206_0x541eb5(0x189),'type':a206_0x541eb5(0x1d3),'description':a206_0x541eb5(0x181),'hidden':!![]},{'name':a206_0x541eb5(0x194),'meowKey':a206_0x541eb5(0x194),'type':a206_0x541eb5(0x1d3),'description':'Verbose\x20output','hidden':!![]},{'name':a206_0x541eb5(0x186),'meowKey':a206_0x541eb5(0x1a6),'type':a206_0x541eb5(0x1be),'description':'Expected\x20affected\x20count','hidden':!![]},{'name':a206_0x541eb5(0x1d2),'meowKey':a206_0x541eb5(0x1d2),'type':a206_0x541eb5(0x1be),'description':a206_0x541eb5(0x17a),'hidden':!![]},{'name':a206_0x541eb5(0x1a4),'meowKey':a206_0x541eb5(0x1da),'type':'string','description':a206_0x541eb5(0x1f1),'hidden':!![]},{'name':'sort','meowKey':a206_0x541eb5(0x1c8),'type':a206_0x541eb5(0x1be),'description':a206_0x541eb5(0x17f),'hidden':!![]},{'name':a206_0x541eb5(0x184),'meowKey':a206_0x541eb5(0x1e5),'type':a206_0x541eb5(0x1be),'description':a206_0x541eb5(0x196),'hidden':!![]},{'name':'expect-path','meowKey':a206_0x541eb5(0x183),'type':a206_0x541eb5(0x1be),'description':'Expected\x20current\x20menu\x20path','hidden':!![]},{'name':a206_0x541eb5(0x182),'meowKey':a206_0x541eb5(0x1d9),'type':a206_0x541eb5(0x1be),'description':a206_0x541eb5(0x17e),'hidden':!![]},{'name':'menu-ids','meowKey':'menuIds','type':a206_0x541eb5(0x1be),'description':a206_0x541eb5(0x1e9),'hidden':!![]},{'name':a206_0x541eb5(0x1d5),'meowKey':a206_0x541eb5(0x1dd),'type':a206_0x541eb5(0x1be),'description':a206_0x541eb5(0x1d1),'hidden':!![]},{'name':a206_0x541eb5(0x17d),'meowKey':a206_0x541eb5(0x190),'type':a206_0x541eb5(0x1be),'description':a206_0x541eb5(0x1ab),'hidden':!![]},{'name':a206_0x541eb5(0x1c4),'meowKey':'functionNode','type':a206_0x541eb5(0x1be),'description':a206_0x541eb5(0x1e8),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set(['appcode',a206_0x541eb5(0x19a),a206_0x541eb5(0x1ee),a206_0x541eb5(0x19c),'jq',a206_0x541eb5(0x1cf),a206_0x541eb5(0x1e2),'non-interactive','ci']);export function buildMeowFlags(){const _0x4eea7a=a206_0x541eb5;return Object[_0x4eea7a(0x1b7)](GLOBAL_FLAGS[_0x4eea7a(0x19e)](_0x4d30cf=>[_0x4d30cf['meowKey'],{'type':_0x4d30cf[_0x4eea7a(0x1a1)]}]));}
@@ -1 +1 @@
1
- const a207_0x9592b8=a207_0x18f0;function a207_0x18f0(_0x1030ce,_0x5ac67f){_0x1030ce=_0x1030ce-0x16b;const _0x43aa85=a207_0x43aa();let _0x18f0da=_0x43aa85[_0x1030ce];return _0x18f0da;}(function(_0x277b39,_0x41e7bd){const _0x40c7e3=a207_0x18f0,_0x45ecfa=_0x277b39();while(!![]){try{const _0x2ff2ab=-parseInt(_0x40c7e3(0x174))/0x1*(parseInt(_0x40c7e3(0x16e))/0x2)+parseInt(_0x40c7e3(0x171))/0x3+-parseInt(_0x40c7e3(0x16f))/0x4*(-parseInt(_0x40c7e3(0x173))/0x5)+-parseInt(_0x40c7e3(0x16d))/0x6*(-parseInt(_0x40c7e3(0x175))/0x7)+-parseInt(_0x40c7e3(0x16c))/0x8+parseInt(_0x40c7e3(0x16b))/0x9*(-parseInt(_0x40c7e3(0x177))/0xa)+parseInt(_0x40c7e3(0x176))/0xb;if(_0x2ff2ab===_0x41e7bd)break;else _0x45ecfa['push'](_0x45ecfa['shift']());}catch(_0x2d4231){_0x45ecfa['push'](_0x45ecfa['shift']());}}}(a207_0x43aa,0xd83a6));import{DEFAULT_API_DIR}from'../constant/paths.js';function a207_0x43aa(){const _0x348b03=['1103052KkCjFN','compress','6535IIPwIU','5835IYQmSx','5628644lyVtUn','26760811iETSWZ','1513210vfWPVn','36vfkIvP','9807160nbrelz','6prrukh','466yUhUVq','1444afwFyD','high-risk-write'];a207_0x43aa=function(){return _0x348b03;};return a207_0x43aa();}export const DEFAULT_CONFIG_VALUES={'env':'production','format':a207_0x9592b8(0x172),'locale':'en-US','riskLevel':a207_0x9592b8(0x170),'apiDir':DEFAULT_API_DIR};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a207_0x9592b8(0x172);
1
+ const a207_0x53414f=a207_0x23c9;function a207_0x2c41(){const _0x10a5f5=['24660AsCdhk','3198097TIajmo','4QFmlgc','8zqtCAj','2vtxsUj','1435743RvadQC','21922012MSlGoX','275470ZdTvJg','3443859cHlNVy','10qwLJNQ','compress','517hFXAvT','2526MLOUjV','13ATlzWL','high-risk-write','3735urTyGv'];a207_0x2c41=function(){return _0x10a5f5;};return a207_0x2c41();}(function(_0x2fe959,_0x4c5bae){const _0x375519=a207_0x23c9,_0x3f8a70=_0x2fe959();while(!![]){try{const _0x3a8fa2=parseInt(_0x375519(0xa0))/0x1*(-parseInt(_0x375519(0xa3))/0x2)+parseInt(_0x375519(0xa1))/0x3*(-parseInt(_0x375519(0x9e))/0x4)+parseInt(_0x375519(0x9b))/0x5*(-parseInt(_0x375519(0x98))/0x6)+parseInt(_0x375519(0x9d))/0x7*(-parseInt(_0x375519(0x9f))/0x8)+parseInt(_0x375519(0xa4))/0x9*(parseInt(_0x375519(0xa5))/0xa)+parseInt(_0x375519(0x97))/0xb*(parseInt(_0x375519(0x9c))/0xc)+-parseInt(_0x375519(0x99))/0xd*(-parseInt(_0x375519(0xa2))/0xe);if(_0x3a8fa2===_0x4c5bae)break;else _0x3f8a70['push'](_0x3f8a70['shift']());}catch(_0xe1e988){_0x3f8a70['push'](_0x3f8a70['shift']());}}}(a207_0x2c41,0x7ee05));import{DEFAULT_API_DIR}from'../constant/paths.js';function a207_0x23c9(_0x258729,_0x5518c7){_0x258729=_0x258729-0x96;const _0x2c4133=a207_0x2c41();let _0x23c9e0=_0x2c4133[_0x258729];return _0x23c9e0;}export const DEFAULT_CONFIG_VALUES={'env':'production','format':a207_0x53414f(0x96),'locale':'en-US','riskLevel':a207_0x53414f(0x9a),'apiDir':DEFAULT_API_DIR};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a207_0x53414f(0x96);
@@ -1 +1 @@
1
- function a208_0x250c(){const _0x340a60=['133794LFjPwu','https://daily-runtime.lovrabet.com','3613047EKvUdj','/web-app/app/','https://api.lovrabet.com','1988038ELIIjn','10RAtYtl','6742060LxKRql','https://runtime.lovrabet.com','11XJLpIW','https://user-daily.lovrabet.com','632uDCSiJ','userDomain','1650268VqgUsP','https://user.lovrabet.com','9221934uYVdoP','1TSLoDe','trim','/app/','runtimeDomain','5671644VOuWTh','https://daily.lovrabet.com','https://daily-api.lovrabet.com','apiDomain','26qqvpeC','7JfrEgx'];a208_0x250c=function(){return _0x340a60;};return a208_0x250c();}const a208_0x216616=a208_0x236f;(function(_0x46bd1a,_0x44aa0e){const _0x25cf34=a208_0x236f,_0x32e3c6=_0x46bd1a();while(!![]){try{const _0x594828=-parseInt(_0x25cf34(0x92))/0x1*(parseInt(_0x25cf34(0x87))/0x2)+parseInt(_0x25cf34(0x84))/0x3+parseInt(_0x25cf34(0x8f))/0x4*(parseInt(_0x25cf34(0x88))/0x5)+-parseInt(_0x25cf34(0x91))/0x6*(parseInt(_0x25cf34(0x81))/0x7)+parseInt(_0x25cf34(0x8d))/0x8*(parseInt(_0x25cf34(0x82))/0x9)+-parseInt(_0x25cf34(0x89))/0xa*(parseInt(_0x25cf34(0x8b))/0xb)+-parseInt(_0x25cf34(0x96))/0xc*(-parseInt(_0x25cf34(0x80))/0xd);if(_0x594828===_0x44aa0e)break;else _0x32e3c6['push'](_0x32e3c6['shift']());}catch(_0x1123f3){_0x32e3c6['push'](_0x32e3c6['shift']());}}}(a208_0x250c,0xe6755));import{getEnv,isProduction}from'../constant/env.js';let customApiDomain,customUserDomain,customRuntimeDomain;export function initDomains(_0x59106e){const _0x95d4a7=a208_0x236f;customApiDomain=_0x59106e?.[_0x95d4a7(0x99)],customUserDomain=_0x59106e?.[_0x95d4a7(0x8e)],customRuntimeDomain=_0x59106e?.[_0x95d4a7(0x95)];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?a208_0x216616(0x90):a208_0x216616(0x8c));export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?a208_0x216616(0x86):a208_0x216616(0x98));function a208_0x236f(_0x34bac0,_0x339976){_0x34bac0=_0x34bac0-0x80;const _0x250c30=a208_0x250c();let _0x236fdc=_0x250c30[_0x34bac0];return _0x236fdc;}export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?a208_0x216616(0x8a):a208_0x216616(0x83));export const getAppDomain=()=>isProduction(getEnv())?'https://app.lovrabet.com':a208_0x216616(0x97);export const getAppBaseUrl=_0x443557=>{const _0x56aeed=a208_0x216616,_0xbe632d=encodeURIComponent(_0x443557[_0x56aeed(0x93)]());return isProduction(getEnv())?getAppDomain()+_0x56aeed(0x94)+_0xbe632d:getAppDomain()+_0x56aeed(0x85)+_0xbe632d;};
1
+ const a208_0x137891=a208_0x2630;(function(_0x4688d,_0x3f6a0d){const _0x3db64c=a208_0x2630,_0x4e9e28=_0x4688d();while(!![]){try{const _0x1135de=-parseInt(_0x3db64c(0x1d8))/0x1*(-parseInt(_0x3db64c(0x1c6))/0x2)+-parseInt(_0x3db64c(0x1cd))/0x3+parseInt(_0x3db64c(0x1ce))/0x4*(-parseInt(_0x3db64c(0x1d1))/0x5)+-parseInt(_0x3db64c(0x1cf))/0x6*(-parseInt(_0x3db64c(0x1d0))/0x7)+-parseInt(_0x3db64c(0x1cc))/0x8+parseInt(_0x3db64c(0x1d4))/0x9+parseInt(_0x3db64c(0x1d9))/0xa*(parseInt(_0x3db64c(0x1c7))/0xb);if(_0x1135de===_0x3f6a0d)break;else _0x4e9e28['push'](_0x4e9e28['shift']());}catch(_0x19ee86){_0x4e9e28['push'](_0x4e9e28['shift']());}}}(a208_0x3f98,0x96c34));import{getEnv,isProduction}from'../constant/env.js';let customApiDomain,customUserDomain,customRuntimeDomain;export function initDomains(_0x2aee2c){const _0x528eaf=a208_0x2630;customApiDomain=_0x2aee2c?.[_0x528eaf(0x1c9)],customUserDomain=_0x2aee2c?.['userDomain'],customRuntimeDomain=_0x2aee2c?.[_0x528eaf(0x1c8)];}function a208_0x3f98(){const _0x32f30e=['14XFIJYo','240240FUpvdO','trim','https://user-daily.lovrabet.com','6093198KHOWlp','/app/','https://runtime.lovrabet.com','https://user.lovrabet.com','271742vQwPXG','3000evkXeT','6qNoDgp','9647SwuRZi','runtimeDomain','apiDomain','https://daily-runtime.lovrabet.com','https://api.lovrabet.com','2778576BQkbqy','2749068mrBQoa','24XAOIGR','1242426FSYXHN'];a208_0x3f98=function(){return _0x32f30e;};return a208_0x3f98();}function a208_0x2630(_0x48e5f5,_0x425bf9){_0x48e5f5=_0x48e5f5-0x1c6;const _0x3f983a=a208_0x3f98();let _0x26308e=_0x3f983a[_0x48e5f5];return _0x26308e;}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?a208_0x137891(0x1d7):a208_0x137891(0x1d3));export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?a208_0x137891(0x1cb):'https://daily-api.lovrabet.com');export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?a208_0x137891(0x1d6):a208_0x137891(0x1ca));export const getAppDomain=()=>isProduction(getEnv())?'https://app.lovrabet.com':'https://daily.lovrabet.com';export const getAppBaseUrl=_0xef85fd=>{const _0xc7a1f=a208_0x137891,_0xf36e79=encodeURIComponent(_0xef85fd[_0xc7a1f(0x1d2)]());return isProduction(getEnv())?getAppDomain()+_0xc7a1f(0x1d5)+_0xf36e79:getAppDomain()+'/web-app/app/'+_0xf36e79;};
@@ -1 +1 @@
1
- const a209_0x4852cb=a209_0x3cc3;(function(_0x2b7d08,_0x469791){const _0x445f3f=a209_0x3cc3,_0x29293c=_0x2b7d08();while(!![]){try{const _0x54cb3a=-parseInt(_0x445f3f(0x16e))/0x1*(-parseInt(_0x445f3f(0x16a))/0x2)+parseInt(_0x445f3f(0x16f))/0x3+-parseInt(_0x445f3f(0x164))/0x4+parseInt(_0x445f3f(0x170))/0x5*(parseInt(_0x445f3f(0x16c))/0x6)+parseInt(_0x445f3f(0x166))/0x7+parseInt(_0x445f3f(0x169))/0x8*(-parseInt(_0x445f3f(0x16d))/0x9)+-parseInt(_0x445f3f(0x162))/0xa*(parseInt(_0x445f3f(0x16b))/0xb);if(_0x54cb3a===_0x469791)break;else _0x29293c['push'](_0x29293c['shift']());}catch(_0x45358c){_0x29293c['push'](_0x29293c['shift']());}}}(a209_0x1e80,0x5f28e));function a209_0x1e80(){const _0x11abab=['daily','16uAfwgA','298DVotlJ','187TRHLUK','1871274OJNJVa','1600074ohxkCw','4679Iczfly','1759380TRlQOd','10pQJgqB','870850tGDEyS','production','1362540pAyKAo','dev','4613259hMWasN','online'];a209_0x1e80=function(){return _0x11abab;};return a209_0x1e80();}export const RABETBASE_ENV_VALUES=['production',a209_0x4852cb(0x168)];export function normalizeEnv(_0x55c0e1){const _0x2027ef=a209_0x4852cb;return _0x55c0e1===_0x2027ef(0x167)?_0x2027ef(0x163):_0x55c0e1;}function a209_0x3cc3(_0x23d39a,_0x471e78){_0x23d39a=_0x23d39a-0x162;const _0x1e8056=a209_0x1e80();let _0x3cc3e6=_0x1e8056[_0x23d39a];return _0x3cc3e6;}export function isProduction(_0x2ba4f0){const _0x498d5d=a209_0x4852cb;return normalizeEnv(_0x2ba4f0)===_0x498d5d(0x163);}export function isDaily(_0x5e6bcb){const _0x4b7629=a209_0x4852cb;return normalizeEnv(_0x5e6bcb)===_0x4b7629(0x168);}export function isDev(_0x4ac15e){const _0xb910e0=a209_0x4852cb,_0x5a679b=normalizeEnv(_0x4ac15e);return _0x5a679b==='development'||_0x5a679b===_0xb910e0(0x165);}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||a209_0x4852cb(0x163));export function getEnv(){return env;}export function initEnv(_0x2a7d93){env=normalizeEnv(_0x2a7d93);}
1
+ function a209_0x2db2(){const _0x3e3b1f=['5801389MnCJla','2487160IGBnQX','1490JqxqUC','16722492zmjViV','dev','1631RflSzV','3128GqlQbW','606DvUzpt','134056YIOBWY','development','126dEhIzr','production','52484DIXVJX','8XCiWGg','daily','9vBxmjq','online'];a209_0x2db2=function(){return _0x3e3b1f;};return a209_0x2db2();}const a209_0x52a9ca=a209_0x3dd9;(function(_0x437cbd,_0x4ad5a8){const _0x5ab8a3=a209_0x3dd9,_0x4c9335=_0x437cbd();while(!![]){try{const _0x234281=parseInt(_0x5ab8a3(0x12f))/0x1*(parseInt(_0x5ab8a3(0x134))/0x2)+parseInt(_0x5ab8a3(0x131))/0x3*(parseInt(_0x5ab8a3(0x133))/0x4)+-parseInt(_0x5ab8a3(0x129))/0x5*(parseInt(_0x5ab8a3(0x12e))/0x6)+-parseInt(_0x5ab8a3(0x12c))/0x7*(parseInt(_0x5ab8a3(0x12d))/0x8)+-parseInt(_0x5ab8a3(0x136))/0x9*(-parseInt(_0x5ab8a3(0x139))/0xa)+parseInt(_0x5ab8a3(0x138))/0xb+-parseInt(_0x5ab8a3(0x12a))/0xc;if(_0x234281===_0x4ad5a8)break;else _0x4c9335['push'](_0x4c9335['shift']());}catch(_0x1e2603){_0x4c9335['push'](_0x4c9335['shift']());}}}(a209_0x2db2,0x55207));export const RABETBASE_ENV_VALUES=[a209_0x52a9ca(0x132),'daily'];export function normalizeEnv(_0x42e532){const _0x4d3501=a209_0x52a9ca;return _0x42e532===_0x4d3501(0x137)?'production':_0x42e532;}export function isProduction(_0x2bb79d){return normalizeEnv(_0x2bb79d)==='production';}export function isDaily(_0x41d1fb){const _0x57b9ba=a209_0x52a9ca;return normalizeEnv(_0x41d1fb)===_0x57b9ba(0x135);}export function isDev(_0x50bca3){const _0x59fb5e=a209_0x52a9ca,_0x211b95=normalizeEnv(_0x50bca3);return _0x211b95===_0x59fb5e(0x130)||_0x211b95===_0x59fb5e(0x12b);}function a209_0x3dd9(_0x3dfbdb,_0x2d2f13){_0x3dfbdb=_0x3dfbdb-0x129;const _0x2db2dc=a209_0x2db2();let _0x3dd91d=_0x2db2dc[_0x3dfbdb];return _0x3dd91d;}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||a209_0x52a9ca(0x132));export function getEnv(){return env;}export function initEnv(_0x4cf270){env=normalizeEnv(_0x4cf270);}
@@ -1 +1 @@
1
- function a210_0xb085(_0x2e5e4e,_0x1bdb8a){_0x2e5e4e=_0x2e5e4e-0x191;const _0x58dedf=a210_0x58de();let _0xb085e=_0x58dedf[_0x2e5e4e];return _0xb085e;}function a210_0x58de(){const _0x3a6de3=['compress','540294mbjQnt','80970LgGMmO','8BprxnF','14775oxMGEL','143FnsPCn','json','2557608Acsvfg','1010433DbuHRg','pretty','630OgDhBj','25txgUNz','24JbwuXJ','6870206tppKRM','1053544sSDREl'];a210_0x58de=function(){return _0x3a6de3;};return a210_0x58de();}const a210_0x3bc5dc=a210_0xb085;(function(_0x4ee1f9,_0x11b74a){const _0x685af2=a210_0xb085,_0x496ab0=_0x4ee1f9();while(!![]){try{const _0x5d569e=parseInt(_0x685af2(0x19d))/0x1+parseInt(_0x685af2(0x194))/0x2+-parseInt(_0x685af2(0x199))/0x3*(parseInt(_0x685af2(0x192))/0x4)+-parseInt(_0x685af2(0x191))/0x5*(-parseInt(_0x685af2(0x196))/0x6)+-parseInt(_0x685af2(0x193))/0x7*(-parseInt(_0x685af2(0x198))/0x8)+-parseInt(_0x685af2(0x19f))/0x9*(-parseInt(_0x685af2(0x197))/0xa)+parseInt(_0x685af2(0x19a))/0xb*(-parseInt(_0x685af2(0x19c))/0xc);if(_0x5d569e===_0x11b74a)break;else _0x496ab0['push'](_0x496ab0['shift']());}catch(_0x3278ed){_0x496ab0['push'](_0x496ab0['shift']());}}}(a210_0x58de,0xb38ae));export const RABETBASE_OUTPUT_FORMAT_VALUES=[a210_0x3bc5dc(0x19b),a210_0x3bc5dc(0x19e),a210_0x3bc5dc(0x195)];
1
+ function a210_0x2904(){const _0xa3ae22=['66BUdaec','73115VUfGYC','627207KHwRqY','118358lkEtzc','821079vwdxEo','563300Nojtyp','40wuJJJQ','1130646dIBdWC','51328NShlbg','192mDMGJz','54oDwDBD'];a210_0x2904=function(){return _0xa3ae22;};return a210_0x2904();}function a210_0x1942(_0x17404d,_0x33592b){_0x17404d=_0x17404d-0x121;const _0x29042a=a210_0x2904();let _0x194276=_0x29042a[_0x17404d];return _0x194276;}(function(_0x1cd2e3,_0x110d64){const _0x4f1220=a210_0x1942,_0x3e7919=_0x1cd2e3();while(!![]){try{const _0x2eb9e5=-parseInt(_0x4f1220(0x12a))/0x1+parseInt(_0x4f1220(0x128))/0x2+parseInt(_0x4f1220(0x129))/0x3+-parseInt(_0x4f1220(0x123))/0x4*(parseInt(_0x4f1220(0x126))/0x5)+parseInt(_0x4f1220(0x125))/0x6*(parseInt(_0x4f1220(0x127))/0x7)+parseInt(_0x4f1220(0x122))/0x8*(parseInt(_0x4f1220(0x124))/0x9)+parseInt(_0x4f1220(0x12b))/0xa*(parseInt(_0x4f1220(0x121))/0xb);if(_0x2eb9e5===_0x110d64)break;else _0x3e7919['push'](_0x3e7919['shift']());}catch(_0x1dd2ca){_0x3e7919['push'](_0x3e7919['shift']());}}}(a210_0x2904,0x7ac87));export const RABETBASE_OUTPUT_FORMAT_VALUES=['json','pretty','compress'];
@@ -1 +1 @@
1
- function a211_0x87e9(_0x1f0b60,_0xdb0441){_0x1f0b60=_0x1f0b60-0xdf;const _0xe4cc2=a211_0xe4cc();let _0x87e9f6=_0xe4cc2[_0x1f0b60];return _0x87e9f6;}const a211_0x573c8e=a211_0x87e9;function a211_0xe4cc(){const _0x47000d=['1313921MjYoeN','603940yMCqJE','517FTbOTd','356EjGuQd','./src/api','912085zuBXUN','6RyblCp','13621894upiCFz','90GgwHUr','7269tquwQU','2042BwHXgd','6937944RQmrTl'];a211_0xe4cc=function(){return _0x47000d;};return a211_0xe4cc();}(function(_0xbbbf12,_0x55e8a7){const _0xb8e9c6=a211_0x87e9,_0x2be6ae=_0xbbbf12();while(!![]){try{const _0x59ed21=-parseInt(_0xb8e9c6(0xe1))/0x1*(-parseInt(_0xb8e9c6(0xe9))/0x2)+-parseInt(_0xb8e9c6(0xe8))/0x3*(-parseInt(_0xb8e9c6(0xe2))/0x4)+-parseInt(_0xb8e9c6(0xe4))/0x5+parseInt(_0xb8e9c6(0xe5))/0x6*(parseInt(_0xb8e9c6(0xdf))/0x7)+-parseInt(_0xb8e9c6(0xea))/0x8+-parseInt(_0xb8e9c6(0xe7))/0x9*(parseInt(_0xb8e9c6(0xe0))/0xa)+parseInt(_0xb8e9c6(0xe6))/0xb;if(_0x59ed21===_0x55e8a7)break;else _0x2be6ae['push'](_0x2be6ae['shift']());}catch(_0x2c54ff){_0x2be6ae['push'](_0x2be6ae['shift']());}}}(a211_0xe4cc,0x7df79));export const DEFAULT_API_DIR=a211_0x573c8e(0xe3);
1
+ function a211_0x36d0(){const _0x12bd60=['76728dZAEPh','180995Nqrvsi','56uUTwUN','595176tmWfrq','30FtPtkp','20352jhGAJA','981711qfcvDW','3538WDtCKj','4UlwTkB','301192dBJpFD'];a211_0x36d0=function(){return _0x12bd60;};return a211_0x36d0();}function a211_0x19cf(_0x45bd94,_0x24bc23){_0x45bd94=_0x45bd94-0xc6;const _0x36d07b=a211_0x36d0();let _0x19cf56=_0x36d07b[_0x45bd94];return _0x19cf56;}(function(_0x4c78b6,_0x17d531){const _0x117341=a211_0x19cf,_0x363803=_0x4c78b6();while(!![]){try{const _0x351acc=-parseInt(_0x117341(0xcf))/0x1+-parseInt(_0x117341(0xc7))/0x2+-parseInt(_0x117341(0xc8))/0x3+parseInt(_0x117341(0xc6))/0x4*(-parseInt(_0x117341(0xc9))/0x5)+parseInt(_0x117341(0xcd))/0x6*(-parseInt(_0x117341(0xca))/0x7)+parseInt(_0x117341(0xcb))/0x8+-parseInt(_0x117341(0xce))/0x9*(-parseInt(_0x117341(0xcc))/0xa);if(_0x351acc===_0x17d531)break;else _0x363803['push'](_0x363803['shift']());}catch(_0x53ecd0){_0x363803['push'](_0x363803['shift']());}}}(a211_0x36d0,0x26b7d));export const DEFAULT_API_DIR='./src/api';
@@ -1 +1 @@
1
- function a212_0x3ab2(_0x212829,_0x25c26e){_0x212829=_0x212829-0x177;const _0x52a2aa=a212_0x52a2();let _0x3ab280=_0x52a2aa[_0x212829];return _0x3ab280;}const a212_0x7005a6=a212_0x3ab2;(function(_0x46eb20,_0x17e9bd){const _0x4003e2=a212_0x3ab2,_0x108cbf=_0x46eb20();while(!![]){try{const _0x2fb8fb=parseInt(_0x4003e2(0x17b))/0x1+-parseInt(_0x4003e2(0x179))/0x2+parseInt(_0x4003e2(0x182))/0x3+parseInt(_0x4003e2(0x177))/0x4+parseInt(_0x4003e2(0x17d))/0x5+parseInt(_0x4003e2(0x180))/0x6*(parseInt(_0x4003e2(0x17a))/0x7)+parseInt(_0x4003e2(0x181))/0x8*(-parseInt(_0x4003e2(0x17c))/0x9);if(_0x2fb8fb===_0x17e9bd)break;else _0x108cbf['push'](_0x108cbf['shift']());}catch(_0xa8b181){_0x108cbf['push'](_0x108cbf['shift']());}}}(a212_0x52a2,0xf3a42));function a212_0x52a2(){const _0x515cbd=['read','high-risk-write','6DOeKkV','45259904nBMgkP','5662362ldvaPq','6690404EjlOLC','write','1517128eDNzgt','11074497WoTOqs','1520844MBRvfu','9sLpOPh','3755180lRfGZh'];a212_0x52a2=function(){return _0x515cbd;};return a212_0x52a2();}export const RISK_LEVEL_VALUES=[a212_0x7005a6(0x17e),a212_0x7005a6(0x178),a212_0x7005a6(0x17f)];
1
+ const a212_0x4ce135=a212_0x2d9f;function a212_0x2d9f(_0x3a55f5,_0x2dcf23){_0x3a55f5=_0x3a55f5-0x13f;const _0x256778=a212_0x2567();let _0x2d9f8f=_0x256778[_0x3a55f5];return _0x2d9f8f;}(function(_0x39a84c,_0x44b3f3){const _0x1dcefd=a212_0x2d9f,_0x5d0535=_0x39a84c();while(!![]){try{const _0x481082=-parseInt(_0x1dcefd(0x13f))/0x1+parseInt(_0x1dcefd(0x149))/0x2*(parseInt(_0x1dcefd(0x140))/0x3)+-parseInt(_0x1dcefd(0x14a))/0x4*(-parseInt(_0x1dcefd(0x145))/0x5)+parseInt(_0x1dcefd(0x148))/0x6+parseInt(_0x1dcefd(0x142))/0x7+-parseInt(_0x1dcefd(0x143))/0x8+-parseInt(_0x1dcefd(0x141))/0x9;if(_0x481082===_0x44b3f3)break;else _0x5d0535['push'](_0x5d0535['shift']());}catch(_0x362f3a){_0x5d0535['push'](_0x5d0535['shift']());}}}(a212_0x2567,0x4e75d));function a212_0x2567(){const _0x329eb0=['147jOoYeK','11108484kRKrmN','3638894vRjfXj','419256IjZshW','high-risk-write','1094090dYlacD','read','write','3053592lLcJrY','15026upRFyh','8vwRANA','226491ppObPp'];a212_0x2567=function(){return _0x329eb0;};return a212_0x2567();}export const RISK_LEVEL_VALUES=[a212_0x4ce135(0x146),a212_0x4ce135(0x147),a212_0x4ce135(0x144)];
@@ -1 +1 @@
1
- (function(_0x3598ed,_0x544a25){const _0x25e224=a213_0x38ba,_0x1d8e30=_0x3598ed();while(!![]){try{const _0x2428ff=parseInt(_0x25e224(0xb5))/0x1*(parseInt(_0x25e224(0xb1))/0x2)+-parseInt(_0x25e224(0xb2))/0x3*(parseInt(_0x25e224(0x9b))/0x4)+-parseInt(_0x25e224(0xba))/0x5*(-parseInt(_0x25e224(0xa9))/0x6)+-parseInt(_0x25e224(0xb7))/0x7*(-parseInt(_0x25e224(0xa5))/0x8)+parseInt(_0x25e224(0xa1))/0x9+parseInt(_0x25e224(0x9e))/0xa+-parseInt(_0x25e224(0xac))/0xb;if(_0x2428ff===_0x544a25)break;else _0x1d8e30['push'](_0x1d8e30['shift']());}catch(_0x126270){_0x1d8e30['push'](_0x1d8e30['shift']());}}}(a213_0x209a,0x2ba2d));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{isDaily,normalizeEnv}from'../constant/env.js';function a213_0x38ba(_0x408095,_0x5e22d1){_0x408095=_0x408095-0x95;const _0x209a67=a213_0x209a();let _0x38bacf=_0x209a67[_0x408095];return _0x38bacf;}import{normalizeLegacyOutputFormat,riskLevelOrder}from'../framework/types.js';function stringConfigValue(_0x1e8055){const _0x3ea463=a213_0x38ba;return typeof _0x1e8055===_0x3ea463(0xa4)&&_0x1e8055['trim']()?_0x1e8055['trim']():undefined;}function a213_0x209a(){const _0x50e823=['defaultApp','373680RDrdMm','keys','object','562869RqOWAx','prototype','trim','string','808hfGszf','format','COOKIE','hasOwnProperty','1056COrtxf','globalConfig','inherit','4765508KKLsPW','apps','projectConfig','read','call','2mWnOuP','477Ezhopn','maxRisk','ACCESS_KEY','347473HlkLwT','production','2471FCUgZR','FORMAT','APP','4015dpVZHP','cookie','accessKey','VERBOSE','app','appcode','apiDir','true','locale','MAX_RISK','PAGE_SIZE','riskLevel','daily','pageSize','env','length','312yVbnOJ','high-risk-write'];a213_0x209a=function(){return _0x50e823;};return a213_0x209a();}function appProfiles(_0x1178bc){const _0x3fe63e=a213_0x38ba;return _0x1178bc['apps']&&typeof _0x1178bc['apps']===_0x3fe63e(0xa0)?_0x1178bc[_0x3fe63e(0xad)]:{};}function resolveDefaultAppName(_0x480f05){const _0x58d57d=a213_0x38ba,_0x37572d=stringConfigValue(_0x480f05[_0x58d57d(0x9d)]);if(_0x37572d)return _0x37572d;return Object[_0x58d57d(0x9f)](appProfiles(_0x480f05))[0x0];}function resolveTopLevelAppCode(_0x347572){const _0x3248c7=a213_0x38ba;return stringConfigValue(_0x347572[_0x3248c7(0xbf)])||stringConfigValue(_0x347572[_0x3248c7(0xbe)]);}function normalizeRiskCeiling(_0x244bbd){const _0x98493=a213_0x38ba;if(_0x244bbd===undefined||_0x244bbd===null)return undefined;if(_0x244bbd==='read'||_0x244bbd==='write'||_0x244bbd===_0x98493(0x9c))return _0x244bbd;return _0x98493(0xaf);}function resolveRiskCeiling(..._0x29721c){const _0x4c6b3b=a213_0x38ba;let _0x18d4e3=DEFAULT_CONFIG_VALUES[_0x4c6b3b(0x96)];for(const _0x309105 of _0x29721c){const _0x371b79=normalizeRiskCeiling(_0x309105);_0x371b79&&riskLevelOrder(_0x371b79)<riskLevelOrder(_0x18d4e3)&&(_0x18d4e3=_0x371b79);}return _0x18d4e3;}function configuredRiskCeilings(_0x390ba7){const _0x46b822=a213_0x38ba;return[...Object[_0x46b822(0xa2)][_0x46b822(0xa8)][_0x46b822(0xb0)](_0x390ba7,_0x46b822(0xb3))?[_0x390ba7['maxRisk']]:[],...Object[_0x46b822(0xa2)]['hasOwnProperty'][_0x46b822(0xb0)](_0x390ba7,_0x46b822(0x96))?[_0x390ba7[_0x46b822(0x96)]]:[]];}export function resolveAppConfig({raw:_0x5f27b9,flags:_0x31bb25,layers:_0x3cf727,readEnv:_0x151bba}){const _0x1bca36=a213_0x38ba,_0x1558ec=_0x3cf727?.[_0x1bca36(0xae)]??{},_0xeebf42=_0x3cf727?.[_0x1bca36(0xaa)]??{},_0x5e3afd=Object[_0x1bca36(0x9f)](_0x1558ec)[_0x1bca36(0x9a)]>0x0,_0x1724da=!_0x5e3afd||_0x1558ec[_0x1bca36(0xab)]===!![],_0x5e1865=_0x5e3afd?resolveDefaultAppName(_0x1558ec):undefined,_0x577dd2=_0x1724da?resolveDefaultAppName(_0xeebf42):undefined,_0x4163a3=stringConfigValue(_0x31bb25['app']),_0x4f6e28=_0x151bba(_0x1bca36(0xb9)),_0x12e1fe={};if(_0x5f27b9[_0x1bca36(0xad)]&&typeof _0x5f27b9[_0x1bca36(0xad)]===_0x1bca36(0xa0))for(const [_0x1b55d3,_0x40d36d]of Object['entries'](_0x5f27b9['apps'])){_0x40d36d&&typeof _0x40d36d===_0x1bca36(0xa0)&&_0x40d36d[_0x1bca36(0xbf)]&&(_0x12e1fe[_0x1b55d3]=_0x40d36d);}const _0x34aaef=_0x5f27b9[_0x1bca36(0x9d)]||undefined,_0x5b936a=Object[_0x1bca36(0x9f)](_0x12e1fe)[_0x1bca36(0x9a)]>0x0,_0x5f03c3=_0x4163a3||_0x5e1865||_0x4f6e28||_0x577dd2||_0x34aaef||undefined,_0x330191=stringConfigValue(_0x31bb25['appcode']),_0x131b45=_0x330191?Object['entries'](_0x12e1fe)['find'](([,_0x59a7e3])=>_0x59a7e3?.[_0x1bca36(0xbf)]===_0x330191):undefined,_0x5402de=_0x131b45?.[0x0],_0x28477e=_0x131b45?.[0x1],_0xc976e5=_0x330191?_0x5402de:_0x5f03c3;let _0x5936fe=_0xc976e5&&_0x12e1fe[_0xc976e5]?_0x12e1fe[_0xc976e5]:undefined;_0x330191&&_0x28477e&&(_0x5936fe=_0x28477e);const _0x442cb1=_0x330191?_0x28477e??_0x5936fe:_0x5936fe,_0x86cd76=!_0x4163a3&&!_0x5e1865&&_0x4f6e28&&_0xc976e5===_0x4f6e28,_0x2ae738=_0x4163a3||(_0x86cd76?_0x4f6e28:undefined)||(_0x330191?_0x5402de:undefined),_0x42b204=_0x442cb1?.[_0x1bca36(0xbf)],_0x17cd0f=_0x5e3afd?resolveTopLevelAppCode(_0x1558ec):undefined,_0x474e51=_0x1724da?resolveTopLevelAppCode(_0xeebf42):undefined,_0x153d52=_0x4163a3||_0x5e1865?_0x42b204:undefined,_0xf4f7aa=!_0x4163a3&&!_0x5e1865?_0x42b204:undefined,_0x3f8c7a=_0x330191||_0x153d52||_0x17cd0f||_0xf4f7aa||_0x474e51||undefined,_0x5686c5=_0x5e3afd?stringConfigValue(_0x1558ec[_0x1bca36(0x99)]):undefined,_0x2947b1=_0x1724da?stringConfigValue(_0xeebf42[_0x1bca36(0x99)]):undefined,_0x306269=_0x31bb25[_0x1bca36(0x99)]||_0x442cb1?.['env']||_0x5686c5||_0x151bba('ENV')||_0x2947b1||_0x5f27b9[_0x1bca36(0x99)]||DEFAULT_CONFIG_VALUES[_0x1bca36(0x99)],_0x3e73ce=_0x442cb1?.[_0x1bca36(0xc2)]||_0x5f27b9[_0x1bca36(0xc2)]||DEFAULT_CONFIG_VALUES[_0x1bca36(0xc2)],_0x2a9516=_0x151bba(_0x1bca36(0xa7))||_0x442cb1?.[_0x1bca36(0xbb)]||_0x5f27b9[_0x1bca36(0xbb)]||undefined,_0x317dbd=_0x151bba(_0x1bca36(0xb4))||_0x442cb1?.[_0x1bca36(0xbc)]||_0x5f27b9[_0x1bca36(0xbc)]||undefined,_0x2dd0bb=_0x31bb25[_0x1bca36(0xa6)]||_0x151bba(_0x1bca36(0xb8))||_0x442cb1?.['format']||_0x5f27b9['format'],_0x12acb1=normalizeLegacyOutputFormat(_0x2dd0bb),_0x17766e=_0x151bba(_0x1bca36(0x95))||_0x442cb1?.[_0x1bca36(0x98)]||_0x5f27b9[_0x1bca36(0x98)],_0x359b12=_0x17766e?Number(_0x17766e)||undefined:undefined,_0x83781a=_0x3cf727?[...configuredRiskCeilings(_0x3cf727[_0x1bca36(0xaa)]),...configuredRiskCeilings(_0x3cf727['projectConfig'])]:configuredRiskCeilings(_0x5f27b9),_0x1c07a3=resolveRiskCeiling(..._0x83781a,_0x442cb1?.[_0x1bca36(0x96)],_0x151bba('RISK_LEVEL'),_0x151bba(_0x1bca36(0xc3))),_0xa7329a=_0x151bba(_0x1bca36(0xbd)),_0x3d1159=_0xa7329a==='1'||_0xa7329a===_0x1bca36(0xc1),_0x2f6edc=_0x442cb1?.[_0x1bca36(0xc0)]||_0x5f27b9[_0x1bca36(0xc0)]||DEFAULT_CONFIG_VALUES['apiDir'],_0x30247d=isDaily(normalizeEnv(String(_0x306269)))?_0x1bca36(0x97):_0x1bca36(0xb6);return{'appCode':typeof _0x3f8c7a==='string'&&_0x3f8c7a[_0x1bca36(0xa3)]()?_0x3f8c7a[_0x1bca36(0xa3)]():undefined,'env':_0x30247d,'locale':_0x3e73ce,'cookie':_0x2a9516,'accessKey':_0x317dbd,'format':_0x12acb1,'pageSize':_0x359b12,'riskLevel':_0x1c07a3,'verbose':_0x3d1159,'apiDir':_0x2f6edc,'apps':_0x12e1fe,'defaultApp':_0x34aaef,'currentApp':_0x5b936a?_0xc976e5:undefined,'explicitAppName':_0x2ae738};}
1
+ (function(_0xd7cfe0,_0x17bb0b){const _0x5434cc=a213_0x2f05,_0x424851=_0xd7cfe0();while(!![]){try{const _0x5eaf0e=-parseInt(_0x5434cc(0x13b))/0x1+parseInt(_0x5434cc(0x13c))/0x2*(parseInt(_0x5434cc(0x156))/0x3)+parseInt(_0x5434cc(0x143))/0x4*(parseInt(_0x5434cc(0x135))/0x5)+parseInt(_0x5434cc(0x140))/0x6*(parseInt(_0x5434cc(0x148))/0x7)+-parseInt(_0x5434cc(0x139))/0x8+-parseInt(_0x5434cc(0x14e))/0x9+-parseInt(_0x5434cc(0x13f))/0xa*(-parseInt(_0x5434cc(0x14f))/0xb);if(_0x5eaf0e===_0x17bb0b)break;else _0x424851['push'](_0x424851['shift']());}catch(_0x41e88b){_0x424851['push'](_0x424851['shift']());}}}(a213_0x59e0,0x2fbae));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{isDaily,normalizeEnv}from'../constant/env.js';import{normalizeLegacyOutputFormat,riskLevelOrder}from'../framework/types.js';function stringConfigValue(_0x5d92b4){const _0x1ff409=a213_0x2f05;return typeof _0x5d92b4==='string'&&_0x5d92b4[_0x1ff409(0x157)]()?_0x5d92b4[_0x1ff409(0x157)]():undefined;}function appProfiles(_0x10c3c1){const _0x32c750=a213_0x2f05;return _0x10c3c1[_0x32c750(0x137)]&&typeof _0x10c3c1[_0x32c750(0x137)]==='object'?_0x10c3c1[_0x32c750(0x137)]:{};}function resolveDefaultAppName(_0x33c0f5){const _0x16487f=stringConfigValue(_0x33c0f5['defaultApp']);if(_0x16487f)return _0x16487f;return Object['keys'](appProfiles(_0x33c0f5))[0x0];}function resolveTopLevelAppCode(_0x4bd523){const _0x38ff19=a213_0x2f05;return stringConfigValue(_0x4bd523['appcode'])||stringConfigValue(_0x4bd523[_0x38ff19(0x131)]);}function a213_0x59e0(){const _0x2ae0ca=['1091928DkjXWC','call','303545DOsDxd','8thUJst','apiDir','VERBOSE','80HbPUbK','157512KMUaHP','daily','find','16YRzEuN','COOKIE','ACCESS_KEY','appcode','inherit','63DWwpxr','accessKey','write','length','keys','FORMAT','2249334anJttd','214698WHLAqm','true','high-risk-write','globalConfig','read','prototype','APP','84540DBsyBa','trim','MAX_RISK','projectConfig','riskLevel','hasOwnProperty','PAGE_SIZE','pageSize','cookie','app','defaultApp','env','format','475415qwJjQR','entries','apps','maxRisk'];a213_0x59e0=function(){return _0x2ae0ca;};return a213_0x59e0();}function a213_0x2f05(_0x3f452d,_0x15d9f7){_0x3f452d=_0x3f452d-0x12d;const _0x59e074=a213_0x59e0();let _0x2f0504=_0x59e074[_0x3f452d];return _0x2f0504;}function normalizeRiskCeiling(_0x539530){const _0x452055=a213_0x2f05;if(_0x539530===undefined||_0x539530===null)return undefined;if(_0x539530==='read'||_0x539530===_0x452055(0x14a)||_0x539530===_0x452055(0x151))return _0x539530;return _0x452055(0x153);}function resolveRiskCeiling(..._0x54cdeb){const _0x20b014=a213_0x2f05;let _0x2dea9a=DEFAULT_CONFIG_VALUES[_0x20b014(0x15a)];for(const _0x50c01f of _0x54cdeb){const _0x35c35b=normalizeRiskCeiling(_0x50c01f);_0x35c35b&&riskLevelOrder(_0x35c35b)<riskLevelOrder(_0x2dea9a)&&(_0x2dea9a=_0x35c35b);}return _0x2dea9a;}function configuredRiskCeilings(_0x4e5717){const _0x258a16=a213_0x2f05;return[...Object[_0x258a16(0x154)][_0x258a16(0x12d)][_0x258a16(0x13a)](_0x4e5717,_0x258a16(0x138))?[_0x4e5717[_0x258a16(0x138)]]:[],...Object[_0x258a16(0x154)][_0x258a16(0x12d)][_0x258a16(0x13a)](_0x4e5717,_0x258a16(0x15a))?[_0x4e5717[_0x258a16(0x15a)]]:[]];}export function resolveAppConfig({raw:_0x3b86d0,flags:_0x1d6263,layers:_0x1d967c,readEnv:_0x27eca2}){const _0x21d6f5=a213_0x2f05,_0x379b56=_0x1d967c?.[_0x21d6f5(0x159)]??{},_0x491d53=_0x1d967c?.[_0x21d6f5(0x152)]??{},_0x2626ec=Object[_0x21d6f5(0x14c)](_0x379b56)['length']>0x0,_0x368805=!_0x2626ec||_0x379b56[_0x21d6f5(0x147)]===!![],_0xb943eb=_0x2626ec?resolveDefaultAppName(_0x379b56):undefined,_0x58ba48=_0x368805?resolveDefaultAppName(_0x491d53):undefined,_0x14166c=stringConfigValue(_0x1d6263[_0x21d6f5(0x131)]),_0x5df152=_0x27eca2(_0x21d6f5(0x155)),_0x2b88f5={};if(_0x3b86d0[_0x21d6f5(0x137)]&&typeof _0x3b86d0[_0x21d6f5(0x137)]==='object')for(const [_0xb2e675,_0x481094]of Object[_0x21d6f5(0x136)](_0x3b86d0['apps'])){_0x481094&&typeof _0x481094==='object'&&_0x481094[_0x21d6f5(0x146)]&&(_0x2b88f5[_0xb2e675]=_0x481094);}const _0x10877a=_0x3b86d0[_0x21d6f5(0x132)]||undefined,_0x340198=Object['keys'](_0x2b88f5)[_0x21d6f5(0x14b)]>0x0,_0x4fbfaf=_0x14166c||_0xb943eb||_0x5df152||_0x58ba48||_0x10877a||undefined,_0x4f7d72=stringConfigValue(_0x1d6263[_0x21d6f5(0x146)]),_0x3f8e83=_0x4f7d72?Object['entries'](_0x2b88f5)[_0x21d6f5(0x142)](([,_0x4f45b9])=>_0x4f45b9?.[_0x21d6f5(0x146)]===_0x4f7d72):undefined,_0x1b9f4b=_0x3f8e83?.[0x0],_0x3db464=_0x3f8e83?.[0x1],_0x45e384=_0x4f7d72?_0x1b9f4b:_0x4fbfaf;let _0x1b9f70=_0x45e384&&_0x2b88f5[_0x45e384]?_0x2b88f5[_0x45e384]:undefined;_0x4f7d72&&_0x3db464&&(_0x1b9f70=_0x3db464);const _0x5e893e=_0x4f7d72?_0x3db464??_0x1b9f70:_0x1b9f70,_0x20ae7b=!_0x14166c&&!_0xb943eb&&_0x5df152&&_0x45e384===_0x5df152,_0x32806f=_0x14166c||(_0x20ae7b?_0x5df152:undefined)||(_0x4f7d72?_0x1b9f4b:undefined),_0x3061c9=_0x5e893e?.[_0x21d6f5(0x146)],_0x2ef0c3=_0x2626ec?resolveTopLevelAppCode(_0x379b56):undefined,_0x319c29=_0x368805?resolveTopLevelAppCode(_0x491d53):undefined,_0x27bb46=_0x14166c||_0xb943eb?_0x3061c9:undefined,_0x142c74=!_0x14166c&&!_0xb943eb?_0x3061c9:undefined,_0x1f8714=_0x4f7d72||_0x27bb46||_0x2ef0c3||_0x142c74||_0x319c29||undefined,_0x5f09c9=_0x2626ec?stringConfigValue(_0x379b56[_0x21d6f5(0x133)]):undefined,_0x382136=_0x368805?stringConfigValue(_0x491d53[_0x21d6f5(0x133)]):undefined,_0xea956c=_0x1d6263[_0x21d6f5(0x133)]||_0x5e893e?.['env']||_0x5f09c9||_0x27eca2('ENV')||_0x382136||_0x3b86d0[_0x21d6f5(0x133)]||DEFAULT_CONFIG_VALUES['env'],_0x494612=_0x5e893e?.['locale']||_0x3b86d0['locale']||DEFAULT_CONFIG_VALUES['locale'],_0x27dc09=_0x27eca2(_0x21d6f5(0x144))||_0x5e893e?.[_0x21d6f5(0x130)]||_0x3b86d0['cookie']||undefined,_0x9ce760=_0x27eca2(_0x21d6f5(0x145))||_0x5e893e?.[_0x21d6f5(0x149)]||_0x3b86d0[_0x21d6f5(0x149)]||undefined,_0xf3325c=_0x1d6263[_0x21d6f5(0x134)]||_0x27eca2(_0x21d6f5(0x14d))||_0x5e893e?.[_0x21d6f5(0x134)]||_0x3b86d0[_0x21d6f5(0x134)],_0x260d65=normalizeLegacyOutputFormat(_0xf3325c),_0x3882cf=_0x27eca2(_0x21d6f5(0x12e))||_0x5e893e?.[_0x21d6f5(0x12f)]||_0x3b86d0[_0x21d6f5(0x12f)],_0x171607=_0x3882cf?Number(_0x3882cf)||undefined:undefined,_0x529346=_0x1d967c?[...configuredRiskCeilings(_0x1d967c[_0x21d6f5(0x152)]),...configuredRiskCeilings(_0x1d967c[_0x21d6f5(0x159)])]:configuredRiskCeilings(_0x3b86d0),_0x3797c7=resolveRiskCeiling(..._0x529346,_0x5e893e?.[_0x21d6f5(0x15a)],_0x27eca2('RISK_LEVEL'),_0x27eca2(_0x21d6f5(0x158))),_0x411c70=_0x27eca2(_0x21d6f5(0x13e)),_0x5b2c6a=_0x411c70==='1'||_0x411c70===_0x21d6f5(0x150),_0x4fcfa3=_0x5e893e?.[_0x21d6f5(0x13d)]||_0x3b86d0[_0x21d6f5(0x13d)]||DEFAULT_CONFIG_VALUES[_0x21d6f5(0x13d)],_0x53541b=isDaily(normalizeEnv(String(_0xea956c)))?_0x21d6f5(0x141):'production';return{'appCode':typeof _0x1f8714==='string'&&_0x1f8714[_0x21d6f5(0x157)]()?_0x1f8714[_0x21d6f5(0x157)]():undefined,'env':_0x53541b,'locale':_0x494612,'cookie':_0x27dc09,'accessKey':_0x9ce760,'format':_0x260d65,'pageSize':_0x171607,'riskLevel':_0x3797c7,'verbose':_0x5b2c6a,'apiDir':_0x4fcfa3,'apps':_0x2b88f5,'defaultApp':_0x10877a,'currentApp':_0x340198?_0x45e384:undefined,'explicitAppName':_0x32806f};}
@@ -1 +1 @@
1
- (function(_0x5bf764,_0x412c84){const _0x1feeda=a214_0x2ecf,_0x4290f4=_0x5bf764();while(!![]){try{const _0xe29aea=parseInt(_0x1feeda(0x1b0))/0x1+parseInt(_0x1feeda(0x1b9))/0x2*(parseInt(_0x1feeda(0x1b2))/0x3)+parseInt(_0x1feeda(0x1b6))/0x4*(-parseInt(_0x1feeda(0x1b8))/0x5)+-parseInt(_0x1feeda(0x1b4))/0x6*(-parseInt(_0x1feeda(0x1b5))/0x7)+-parseInt(_0x1feeda(0x1af))/0x8*(-parseInt(_0x1feeda(0x1ac))/0x9)+parseInt(_0x1feeda(0x1b1))/0xa+parseInt(_0x1feeda(0x1b7))/0xb*(-parseInt(_0x1feeda(0x1ad))/0xc);if(_0xe29aea===_0x412c84)break;else _0x4290f4['push'](_0x4290f4['shift']());}catch(_0x135903){_0x4290f4['push'](_0x4290f4['shift']());}}}(a214_0x5bd2,0x35424));import{getIsSessionValid}from'../auth/is-session-valid.js';function a214_0x5bd2(){const _0x2cc428=['../auth/get-cookie.js','2260476vnqhdT','3363204qmyxRt','authRequired','8yTLTAc','262185kijGKC','4104290vlUDQB','3ZnnxbL','cookie','6HrdxsV','2765210vXzecS','44188attRTh','44iGBgah','75lUecct','372226BRmRax'];a214_0x5bd2=function(){return _0x2cc428;};return a214_0x5bd2();}function a214_0x2ecf(_0x41111d,_0x586889){_0x41111d=_0x41111d-0x1ab;const _0x5bd25e=a214_0x5bd2();let _0x2ecfdc=_0x5bd25e[_0x41111d];return _0x2ecfdc;}import{CliErrors}from'../errors.js';export async function buildAuth(_0x546836){const _0x5b987e=a214_0x2ecf,{getCookie:_0x3d3293}=await import(_0x5b987e(0x1ab)),_0x5307c4=_0x546836[_0x5b987e(0x1b3)]||_0x3d3293(),_0x20dfd0=_0x5307c4?await getIsSessionValid():![];return{'cookie':_0x5307c4,'isLoggedIn':_0x20dfd0,async 'getOrLogin'(){const _0x2ebed9=_0x5b987e;if(_0x5307c4&&_0x20dfd0)return _0x5307c4;throw CliErrors[_0x2ebed9(0x1ae)]();}};}
1
+ function a214_0x2222(){const _0x429c91=['../auth/get-cookie.js','authRequired','130784SOeMuG','532251foEIax','431430coFwXP','451urdEMw','2872020akYheh','288zwsYeq','295791IQKwvq','2sHzpBO','178215cKgWKx','7847LMEMOD','80ATibhw','cookie'];a214_0x2222=function(){return _0x429c91;};return a214_0x2222();}(function(_0xf5fe71,_0x403ace){const _0x5835b5=a214_0x5d7e,_0xf27e02=_0xf5fe71();while(!![]){try{const _0x167d89=-parseInt(_0x5835b5(0xd5))/0x1+-parseInt(_0x5835b5(0xd4))/0x2*(parseInt(_0x5835b5(0xd3))/0x3)+parseInt(_0x5835b5(0xdb))/0x4*(-parseInt(_0x5835b5(0xd7))/0x5)+-parseInt(_0x5835b5(0xd1))/0x6+-parseInt(_0x5835b5(0xd6))/0x7*(parseInt(_0x5835b5(0xd2))/0x8)+-parseInt(_0x5835b5(0xdc))/0x9+-parseInt(_0x5835b5(0xdd))/0xa*(-parseInt(_0x5835b5(0xd0))/0xb);if(_0x167d89===_0x403ace)break;else _0xf27e02['push'](_0xf27e02['shift']());}catch(_0x44fb3f){_0xf27e02['push'](_0xf27e02['shift']());}}}(a214_0x2222,0x5f65e));function a214_0x5d7e(_0x48a158,_0x1f86ba){_0x48a158=_0x48a158-0xd0;const _0x222295=a214_0x2222();let _0x5d7e8b=_0x222295[_0x48a158];return _0x5d7e8b;}import{getIsSessionValid}from'../auth/is-session-valid.js';import{CliErrors}from'../errors.js';export async function buildAuth(_0x408df6){const _0x29d3e6=a214_0x5d7e,{getCookie:_0x22b67b}=await import(_0x29d3e6(0xd9)),_0xbe8ca=_0x408df6[_0x29d3e6(0xd8)]||_0x22b67b(),_0x4db4bd=_0xbe8ca?await getIsSessionValid():![];return{'cookie':_0xbe8ca,'isLoggedIn':_0x4db4bd,async 'getOrLogin'(){const _0x2bcb9f=_0x29d3e6;if(_0xbe8ca&&_0x4db4bd)return _0xbe8ca;throw CliErrors[_0x2bcb9f(0xda)]();}};}
@@ -1 +1 @@
1
- const a215_0x39dede=a215_0x4725;(function(_0x3883e9,_0x5caa5f){const _0x3041bd=a215_0x4725,_0x5786=_0x3883e9();while(!![]){try{const _0x4854f6=parseInt(_0x3041bd(0x11c))/0x1*(parseInt(_0x3041bd(0x13d))/0x2)+parseInt(_0x3041bd(0x121))/0x3*(parseInt(_0x3041bd(0x125))/0x4)+parseInt(_0x3041bd(0x140))/0x5*(parseInt(_0x3041bd(0x129))/0x6)+parseInt(_0x3041bd(0x144))/0x7*(-parseInt(_0x3041bd(0x132))/0x8)+-parseInt(_0x3041bd(0x122))/0x9+parseInt(_0x3041bd(0x123))/0xa*(parseInt(_0x3041bd(0x131))/0xb)+-parseInt(_0x3041bd(0x12a))/0xc;if(_0x4854f6===_0x5caa5f)break;else _0x5786['push'](_0x5786['shift']());}catch(_0x577f79){_0x5786['push'](_0x5786['shift']());}}}(a215_0x1ecc,0xca698));import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{dirname,parse,resolve}from'node:path';import{homedir}from'node:os';import{CLI_BIN_NAME}from'../constant/cli.js';export const NEW_CONFIG_NAME=a215_0x39dede(0x13f);export const CONFIG_NAMES=[a215_0x39dede(0x13f),'.lovrabet.json',a215_0x39dede(0x127)];export const LEGACY_CONFIG_NAMES=CONFIG_NAMES['filter'](_0x1babfa=>_0x1babfa!==NEW_CONFIG_NAME);const normalizedWriteCache=new Map();export function resolveConfigPath(_0x190d1b){for(const _0x1b32b0 of CONFIG_NAMES){const _0x222472=resolve(_0x190d1b,_0x1b32b0);if(existsSync(_0x222472))return _0x222472;}return undefined;}function a215_0x1ecc(){const _0x425eec=['warn','parse','466795lkpoYx','keys','pageSize','Global','format','.tmp','defaultApp','accessKey','26613FdRplP','trim','cwd','object','apps','57MZBVcD','2398023TXbecq','4186670zzMtms','config','55152JhJWXY','migrated','.lovrabetrc','Project','1050XBfNVM','948048OsTQMA','set','apiDir','\x0a\x20\x20','message','status','missing','11kLyIly','8hKEqdu','riskLevel','app','env','stringify','length','silent','locale','empty','appcode','inherit','8EjPBds','utf8','.rabetbase.json','12975vyDlTw','cookie'];a215_0x1ecc=function(){return _0x425eec;};return a215_0x1ecc();}export function findProjectRootDirectory(_0x4e4632=process[a215_0x39dede(0x11e)]()){let _0x4dec11=resolve(_0x4e4632);const {root:_0x14880c}=parse(_0x4dec11),_0x474d2d=homedir();while(!![]){if(resolveConfigPath(_0x4dec11)){if(_0x4dec11===_0x474d2d)break;return _0x4dec11;}if(_0x4dec11===_0x14880c||_0x4dec11===_0x474d2d)break;const _0x3c82da=dirname(_0x4dec11);if(_0x3c82da===_0x4dec11)break;_0x4dec11=_0x3c82da;}return resolve(_0x4e4632);}export function getProjectConfigPath(){return resolveConfigPath(process['cwd']());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function isInProject(){return!!getProjectConfigPath();}export function inspectCliConfigJsonFile(_0x420d19){const _0x42a228=a215_0x39dede;if(!existsSync(_0x420d19))return{'status':_0x42a228(0x130)};try{const _0x4f87ba=readFileSync(_0x420d19,{'encoding':_0x42a228(0x13e)});if(!_0x4f87ba?.[_0x42a228(0x11d)]())return{'status':_0x42a228(0x13a)};const _0x2453f0=JSON[_0x42a228(0x143)](_0x4f87ba);return{'status':'ok','data':_0x2453f0};}catch(_0x5354c6){return{'status':'error','message':_0x5354c6 instanceof Error?_0x5354c6[_0x42a228(0x12e)]:String(_0x5354c6)};}}function a215_0x4725(_0x4bdc1d,_0x570952){_0x4bdc1d=_0x4bdc1d-0x118;const _0x1ecc34=a215_0x1ecc();let _0x4725ee=_0x1ecc34[_0x4bdc1d];return _0x4725ee;}function parseCliConfigJsonFile(_0x114703,_0x4105a9,_0x57b132){const _0x4aab57=a215_0x39dede,_0x30e051=inspectCliConfigJsonFile(_0x114703);if(_0x30e051['status']===_0x4aab57(0x130)||_0x30e051['status']==='empty')return{};if(_0x30e051[_0x4aab57(0x12f)]==='ok')return _0x30e051['data'];return _0x4105a9===_0x4aab57(0x142)&&_0x57b132&&console['error'](CLI_BIN_NAME+':\x20'+_0x57b132+'\x20config\x20file\x20ignored\x20(invalid\x20JSON\x20or\x20unreadable):\x20'+_0x114703+_0x4aab57(0x12d)+_0x30e051[_0x4aab57(0x12e)]),{};}function normalizeLegacyConfigShape(_0x3c4add){const _0xc89bbb=a215_0x39dede;if(!_0x3c4add||typeof _0x3c4add!=='object')return{'config':{},'migrated':![]};const _0x5a8d62={..._0x3c4add},_0x2d99cd=_0x5a8d62[_0xc89bbb(0x120)]&&typeof _0x5a8d62[_0xc89bbb(0x120)]==='object'?{..._0x5a8d62[_0xc89bbb(0x120)]}:{},_0x131551=Object[_0xc89bbb(0x145)](_0x2d99cd)[_0xc89bbb(0x137)],_0x54f3dc=_0x5a8d62[_0xc89bbb(0x13b)]||_0x5a8d62[_0xc89bbb(0x134)];let _0x138043=![];if(_0x54f3dc&&_0x131551===0x0){const _0x1b810b=typeof _0x5a8d62[_0xc89bbb(0x11a)]==='string'&&_0x5a8d62['defaultApp'][_0xc89bbb(0x11d)]()?_0x5a8d62['defaultApp']:String(_0x54f3dc)[_0xc89bbb(0x11d)]();_0x2d99cd[_0x1b810b]={'appcode':String(_0x54f3dc)[_0xc89bbb(0x11d)](),..._0x5a8d62[_0xc89bbb(0x135)]!=null?{'env':_0x5a8d62[_0xc89bbb(0x135)]}:{},..._0x5a8d62[_0xc89bbb(0x12c)]!=null?{'apiDir':_0x5a8d62[_0xc89bbb(0x12c)]}:{},..._0x5a8d62['cookie']!=null?{'cookie':_0x5a8d62[_0xc89bbb(0x141)]}:{},..._0x5a8d62[_0xc89bbb(0x11b)]!=null?{'accessKey':_0x5a8d62[_0xc89bbb(0x11b)]}:{},..._0x5a8d62[_0xc89bbb(0x118)]!=null?{'format':_0x5a8d62['format']}:{},..._0x5a8d62[_0xc89bbb(0x146)]!=null?{'pageSize':_0x5a8d62['pageSize']}:{},..._0x5a8d62[_0xc89bbb(0x133)]!=null?{'riskLevel':_0x5a8d62['riskLevel']}:{},..._0x5a8d62[_0xc89bbb(0x139)]!=null?{'locale':_0x5a8d62[_0xc89bbb(0x139)]}:{}},_0x5a8d62[_0xc89bbb(0x120)]=_0x2d99cd;if(!_0x5a8d62[_0xc89bbb(0x11a)])_0x5a8d62[_0xc89bbb(0x11a)]=_0x1b810b;_0x138043=!![];}return('appcode'in _0x5a8d62||'app'in _0x5a8d62)&&(delete _0x5a8d62[_0xc89bbb(0x13b)],delete _0x5a8d62['app'],_0x138043=!![]),{'config':_0x5a8d62,'migrated':_0x138043};}function writeNormalizedConfigIfNeeded(_0x2923b7,_0x21a6e8){const _0x279547=a215_0x39dede,_0x2320f4=JSON[_0x279547(0x136)](_0x21a6e8,null,0x2)+'\x0a';if(normalizedWriteCache['get'](_0x2923b7)===_0x2320f4)return;writeConfigFile(_0x2923b7,_0x21a6e8),normalizedWriteCache[_0x279547(0x12b)](_0x2923b7,_0x2320f4);}function parseAndNormalizeConfig(_0x13cf1c,_0x73fc8a,_0x1ab3ca){const _0x17a99c=a215_0x39dede,_0x33311a=parseCliConfigJsonFile(_0x13cf1c,_0x73fc8a,_0x1ab3ca),_0x3b301a=normalizeLegacyConfigShape(_0x33311a);if(_0x3b301a[_0x17a99c(0x126)])try{writeNormalizedConfigIfNeeded(_0x13cf1c,_0x3b301a['config']);}catch{}return _0x3b301a[_0x17a99c(0x124)];}export function loadRawConfigLayers(_0x5c68c7){const _0x3343c9=a215_0x39dede;let _0x2cff5d={},_0x2e72d5={};const _0x4cb560=resolveConfigPath(homedir());_0x4cb560&&(_0x2cff5d=parseAndNormalizeConfig(_0x4cb560,_0x3343c9(0x142),_0x3343c9(0x147)));const _0x5df165=_0x5c68c7??findProjectRootDirectory(),_0x18299f=resolveConfigPath(_0x5df165);return _0x18299f&&(_0x2e72d5=parseAndNormalizeConfig(_0x18299f,_0x3343c9(0x142),_0x3343c9(0x128))),{'globalPath':_0x4cb560,'projectPath':_0x18299f,'globalConfig':_0x2cff5d,'projectConfig':_0x2e72d5};}const INHERIT_WHITELIST=[a215_0x39dede(0x141),a215_0x39dede(0x11b),a215_0x39dede(0x139),a215_0x39dede(0x118),a215_0x39dede(0x133),a215_0x39dede(0x146)];export function mergeRawConfigLayers(_0x3c4b0d){const _0x1ead59=a215_0x39dede,{globalConfig:_0x391929,projectConfig:_0x1bf859}=_0x3c4b0d,_0xf9d5ca=Object[_0x1ead59(0x145)](_0x1bf859)[_0x1ead59(0x137)]>0x0;if(!_0xf9d5ca)return mergeGlobalOnly(_0x391929);if(_0x1bf859[_0x1ead59(0x13c)]===!![])return mergeFullInherit(_0x391929,_0x1bf859);if(_0x1bf859['inherit']===![])return mergeIsolated(_0x1bf859);return mergeProjectFirst(_0x391929,_0x1bf859);}function mergeGlobalOnly(_0x1b75bf){const _0xf2f973=a215_0x39dede,_0x258887={..._0x1b75bf},_0x3cea76=_0x1b75bf['apps']&&typeof _0x1b75bf[_0xf2f973(0x120)]==='object'?_0x1b75bf[_0xf2f973(0x120)]:{};if(Object[_0xf2f973(0x145)](_0x3cea76)[_0xf2f973(0x137)]>0x0)_0x258887[_0xf2f973(0x120)]=_0x3cea76;if(_0x1b75bf['defaultApp'])_0x258887[_0xf2f973(0x11a)]=_0x1b75bf[_0xf2f973(0x11a)];else{const _0x3b7f17=Object[_0xf2f973(0x145)](_0x3cea76);if(_0x3b7f17['length']>0x0)_0x258887[_0xf2f973(0x11a)]=_0x3b7f17[0x0];}return _0x258887;}function mergeIsolated(_0x254d9f){const _0x1d058c=a215_0x39dede,_0x365b62={..._0x254d9f};delete _0x365b62[_0x1d058c(0x13c)];const _0x454239=_0x254d9f['apps']&&typeof _0x254d9f[_0x1d058c(0x120)]===_0x1d058c(0x11f)?_0x254d9f[_0x1d058c(0x120)]:{};Object[_0x1d058c(0x145)](_0x454239)[_0x1d058c(0x137)]>0x0?_0x365b62['apps']=_0x454239:delete _0x365b62[_0x1d058c(0x120)];if('defaultApp'in _0x254d9f)_0x365b62['defaultApp']=_0x254d9f['defaultApp'];else Object['keys'](_0x454239)[_0x1d058c(0x137)]>0x0?_0x365b62[_0x1d058c(0x11a)]=Object[_0x1d058c(0x145)](_0x454239)[0x0]:delete _0x365b62['defaultApp'];return _0x365b62;}function mergeProjectFirst(_0x1f6f74,_0x19fc48){const _0x5dd7b0=a215_0x39dede,_0x567d20={..._0x19fc48};delete _0x567d20[_0x5dd7b0(0x13c)];for(const _0x3e9335 of INHERIT_WHITELIST){!(_0x3e9335 in _0x567d20)&&_0x3e9335 in _0x1f6f74&&(_0x567d20[_0x3e9335]=_0x1f6f74[_0x3e9335]);}const _0x134cc5=_0x19fc48[_0x5dd7b0(0x120)]&&typeof _0x19fc48['apps']===_0x5dd7b0(0x11f)?_0x19fc48[_0x5dd7b0(0x120)]:{};Object[_0x5dd7b0(0x145)](_0x134cc5)['length']>0x0?_0x567d20[_0x5dd7b0(0x120)]=_0x134cc5:delete _0x567d20[_0x5dd7b0(0x120)];if(_0x5dd7b0(0x11a)in _0x19fc48)_0x567d20[_0x5dd7b0(0x11a)]=_0x19fc48[_0x5dd7b0(0x11a)];else Object['keys'](_0x134cc5)[_0x5dd7b0(0x137)]>0x0?_0x567d20[_0x5dd7b0(0x11a)]=Object[_0x5dd7b0(0x145)](_0x134cc5)[0x0]:delete _0x567d20[_0x5dd7b0(0x11a)];return _0x567d20;}function mergeFullInherit(_0x524255,_0x16cc55){const _0x2a8dc0=a215_0x39dede,_0x127b56=_0x524255['apps']&&typeof _0x524255['apps']===_0x2a8dc0(0x11f)?_0x524255[_0x2a8dc0(0x120)]:{},_0x3303c9=_0x16cc55[_0x2a8dc0(0x120)]&&typeof _0x16cc55['apps']===_0x2a8dc0(0x11f)?_0x16cc55[_0x2a8dc0(0x120)]:{},_0x1962e2={..._0x127b56,..._0x3303c9},_0x15dd81={..._0x524255,..._0x16cc55};delete _0x15dd81['inherit'];if(Object[_0x2a8dc0(0x145)](_0x1962e2)['length']>0x0)_0x15dd81[_0x2a8dc0(0x120)]=_0x1962e2;if(_0x2a8dc0(0x11a)in _0x16cc55)_0x15dd81[_0x2a8dc0(0x11a)]=_0x16cc55[_0x2a8dc0(0x11a)];else{if(Object['keys'](_0x3303c9)[_0x2a8dc0(0x137)]>0x0)_0x15dd81[_0x2a8dc0(0x11a)]=Object[_0x2a8dc0(0x145)](_0x3303c9)[0x0];else{if(_0x524255['defaultApp'])_0x15dd81[_0x2a8dc0(0x11a)]=_0x524255['defaultApp'];else{const _0x4a24ee=Object[_0x2a8dc0(0x145)](_0x127b56);if(_0x4a24ee[_0x2a8dc0(0x137)]>0x0)_0x15dd81[_0x2a8dc0(0x11a)]=_0x4a24ee[0x0];}}}return _0x15dd81;}export function readRawConfigWithLayers(_0x2e9539){const _0x4febac=loadRawConfigLayers(_0x2e9539);return{'config':mergeRawConfigLayers(_0x4febac),'layers':_0x4febac};}export function readRawConfig(_0x46efa8){return mergeRawConfigLayers(loadRawConfigLayers(_0x46efa8));}export function readConfigFile(_0x39c301){const _0x129c40=a215_0x39dede;return parseAndNormalizeConfig(_0x39c301,_0x129c40(0x138));}export function writeConfigFile(_0x1d4fd2,_0x304c31){const _0x3f9544=a215_0x39dede,_0x296ec4=dirname(_0x1d4fd2);!existsSync(_0x296ec4)&&mkdirSync(_0x296ec4,{'recursive':!![]});const _0x53d308=_0x1d4fd2+_0x3f9544(0x119);try{writeFileSync(_0x53d308,JSON[_0x3f9544(0x136)](_0x304c31,null,0x2)+'\x0a',{'encoding':_0x3f9544(0x13e),'mode':0x180}),renameSync(_0x53d308,_0x1d4fd2);}catch(_0x418168){try{unlinkSync(_0x53d308);}catch{}throw _0x418168;}}export function resolveWriteConfigPath(_0x4c3cb1){const _0x5d4b43=a215_0x39dede,_0x19a05a=_0x4c3cb1==='project'?process[_0x5d4b43(0x11e)]():homedir(),_0x260594=resolveConfigPath(_0x19a05a);return _0x260594??resolve(_0x19a05a,NEW_CONFIG_NAME);}
1
+ const a215_0x10f6e2=a215_0x162d;(function(_0x411282,_0x2baf7a){const _0x2c4cb7=a215_0x162d,_0x36514b=_0x411282();while(!![]){try{const _0x50093b=parseInt(_0x2c4cb7(0xe1))/0x1+-parseInt(_0x2c4cb7(0xd9))/0x2+-parseInt(_0x2c4cb7(0xf3))/0x3*(parseInt(_0x2c4cb7(0xfa))/0x4)+-parseInt(_0x2c4cb7(0xe6))/0x5*(-parseInt(_0x2c4cb7(0xf9))/0x6)+-parseInt(_0x2c4cb7(0xf7))/0x7+-parseInt(_0x2c4cb7(0xdb))/0x8*(-parseInt(_0x2c4cb7(0xd5))/0x9)+parseInt(_0x2c4cb7(0xed))/0xa*(parseInt(_0x2c4cb7(0xc7))/0xb);if(_0x50093b===_0x2baf7a)break;else _0x36514b['push'](_0x36514b['shift']());}catch(_0x72242c){_0x36514b['push'](_0x36514b['shift']());}}}(a215_0x2ca9,0x54325));import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{dirname,parse,resolve}from'node:path';import{homedir}from'node:os';import{CLI_BIN_NAME}from'../constant/cli.js';export const NEW_CONFIG_NAME=a215_0x10f6e2(0xcf);export const CONFIG_NAMES=[a215_0x10f6e2(0xcf),a215_0x10f6e2(0xd6),a215_0x10f6e2(0xca)];export const LEGACY_CONFIG_NAMES=CONFIG_NAMES['filter'](_0xbf3669=>_0xbf3669!==NEW_CONFIG_NAME);const normalizedWriteCache=new Map();export function resolveConfigPath(_0x34c200){for(const _0x5c4716 of CONFIG_NAMES){const _0x3ba6fc=resolve(_0x34c200,_0x5c4716);if(existsSync(_0x3ba6fc))return _0x3ba6fc;}return undefined;}export function findProjectRootDirectory(_0x104700=process[a215_0x10f6e2(0xe7)]()){let _0x128934=resolve(_0x104700);const {root:_0x38c496}=parse(_0x128934),_0x3c896b=homedir();while(!![]){if(resolveConfigPath(_0x128934)){if(_0x128934===_0x3c896b)break;return _0x128934;}if(_0x128934===_0x38c496||_0x128934===_0x3c896b)break;const _0x20dc92=dirname(_0x128934);if(_0x20dc92===_0x128934)break;_0x128934=_0x20dc92;}return resolve(_0x104700);}export function getProjectConfigPath(){const _0xf7cd4=a215_0x10f6e2;return resolveConfigPath(process[_0xf7cd4(0xe7)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}function a215_0x162d(_0x4c8de7,_0x5060de){_0x4c8de7=_0x4c8de7-0xc7;const _0x2ca942=a215_0x2ca9();let _0x162dcc=_0x2ca942[_0x4c8de7];return _0x162dcc;}export function isInProject(){return!!getProjectConfigPath();}function a215_0x2ca9(){const _0x25fc75=['apps','.lovrabetrc','riskLevel','utf8','pageSize','migrated','.rabetbase.json','inherit','silent','data','\x0a\x20\x20','defaultApp','18yrZIDB','.lovrabet.json','Global','missing','953050fdcThH','parse','1750264WHanaR','config','app','set','status','get','164475icBCiY','message','appcode','stringify','trim','5hyLDqx','cwd','apiDir','accessKey','keys','string','env','3005680iIawbC','project','format','empty','.tmp','Project','12333eOVpFH','warn','\x20config\x20file\x20ignored\x20(invalid\x20JSON\x20or\x20unreadable):\x20','object','2116730uBVZgd','locale','3519534nawAJb','648QXgPIP','length','cookie','22xuDEzx','error'];a215_0x2ca9=function(){return _0x25fc75;};return a215_0x2ca9();}export function inspectCliConfigJsonFile(_0x552464){const _0x2a3628=a215_0x10f6e2;if(!existsSync(_0x552464))return{'status':_0x2a3628(0xd8)};try{const _0x3ba64d=readFileSync(_0x552464,{'encoding':_0x2a3628(0xcc)});if(!_0x3ba64d?.[_0x2a3628(0xe5)]())return{'status':_0x2a3628(0xf0)};const _0x11849f=JSON[_0x2a3628(0xda)](_0x3ba64d);return{'status':'ok','data':_0x11849f};}catch(_0x1fdad1){return{'status':_0x2a3628(0xc8),'message':_0x1fdad1 instanceof Error?_0x1fdad1[_0x2a3628(0xe2)]:String(_0x1fdad1)};}}function parseCliConfigJsonFile(_0x20ffe3,_0x72c002,_0x49ad52){const _0x548b8c=a215_0x10f6e2,_0x156e18=inspectCliConfigJsonFile(_0x20ffe3);if(_0x156e18['status']==='missing'||_0x156e18[_0x548b8c(0xdf)]===_0x548b8c(0xf0))return{};if(_0x156e18[_0x548b8c(0xdf)]==='ok')return _0x156e18[_0x548b8c(0xd2)];return _0x72c002===_0x548b8c(0xf4)&&_0x49ad52&&console[_0x548b8c(0xc8)](CLI_BIN_NAME+':\x20'+_0x49ad52+_0x548b8c(0xf5)+_0x20ffe3+_0x548b8c(0xd3)+_0x156e18['message']),{};}function normalizeLegacyConfigShape(_0xa7a672){const _0x3f0239=a215_0x10f6e2;if(!_0xa7a672||typeof _0xa7a672!==_0x3f0239(0xf6))return{'config':{},'migrated':![]};const _0x4eb9b4={..._0xa7a672},_0x1abda5=_0x4eb9b4[_0x3f0239(0xc9)]&&typeof _0x4eb9b4[_0x3f0239(0xc9)]==='object'?{..._0x4eb9b4['apps']}:{},_0x375778=Object[_0x3f0239(0xea)](_0x1abda5)[_0x3f0239(0xfb)],_0x29c7c5=_0x4eb9b4[_0x3f0239(0xe3)]||_0x4eb9b4[_0x3f0239(0xdd)];let _0x18610a=![];if(_0x29c7c5&&_0x375778===0x0){const _0xc2dd2b=typeof _0x4eb9b4[_0x3f0239(0xd4)]===_0x3f0239(0xeb)&&_0x4eb9b4[_0x3f0239(0xd4)]['trim']()?_0x4eb9b4[_0x3f0239(0xd4)]:String(_0x29c7c5)[_0x3f0239(0xe5)]();_0x1abda5[_0xc2dd2b]={'appcode':String(_0x29c7c5)[_0x3f0239(0xe5)](),..._0x4eb9b4[_0x3f0239(0xec)]!=null?{'env':_0x4eb9b4[_0x3f0239(0xec)]}:{},..._0x4eb9b4[_0x3f0239(0xe8)]!=null?{'apiDir':_0x4eb9b4[_0x3f0239(0xe8)]}:{},..._0x4eb9b4[_0x3f0239(0xfc)]!=null?{'cookie':_0x4eb9b4['cookie']}:{},..._0x4eb9b4[_0x3f0239(0xe9)]!=null?{'accessKey':_0x4eb9b4[_0x3f0239(0xe9)]}:{},..._0x4eb9b4[_0x3f0239(0xef)]!=null?{'format':_0x4eb9b4[_0x3f0239(0xef)]}:{},..._0x4eb9b4[_0x3f0239(0xcd)]!=null?{'pageSize':_0x4eb9b4[_0x3f0239(0xcd)]}:{},..._0x4eb9b4[_0x3f0239(0xcb)]!=null?{'riskLevel':_0x4eb9b4[_0x3f0239(0xcb)]}:{},..._0x4eb9b4['locale']!=null?{'locale':_0x4eb9b4[_0x3f0239(0xf8)]}:{}},_0x4eb9b4['apps']=_0x1abda5;if(!_0x4eb9b4[_0x3f0239(0xd4)])_0x4eb9b4[_0x3f0239(0xd4)]=_0xc2dd2b;_0x18610a=!![];}return('appcode'in _0x4eb9b4||'app'in _0x4eb9b4)&&(delete _0x4eb9b4[_0x3f0239(0xe3)],delete _0x4eb9b4[_0x3f0239(0xdd)],_0x18610a=!![]),{'config':_0x4eb9b4,'migrated':_0x18610a};}function writeNormalizedConfigIfNeeded(_0x1da4df,_0x343e83){const _0x4cfa6a=a215_0x10f6e2,_0x224a6a=JSON[_0x4cfa6a(0xe4)](_0x343e83,null,0x2)+'\x0a';if(normalizedWriteCache[_0x4cfa6a(0xe0)](_0x1da4df)===_0x224a6a)return;writeConfigFile(_0x1da4df,_0x343e83),normalizedWriteCache[_0x4cfa6a(0xde)](_0x1da4df,_0x224a6a);}function parseAndNormalizeConfig(_0x51339f,_0x1c6509,_0x151f4c){const _0x53a134=a215_0x10f6e2,_0x1b81db=parseCliConfigJsonFile(_0x51339f,_0x1c6509,_0x151f4c),_0x5a12e7=normalizeLegacyConfigShape(_0x1b81db);if(_0x5a12e7[_0x53a134(0xce)])try{writeNormalizedConfigIfNeeded(_0x51339f,_0x5a12e7['config']);}catch{}return _0x5a12e7[_0x53a134(0xdc)];}export function loadRawConfigLayers(_0x138266){const _0x4d602a=a215_0x10f6e2;let _0x5f3fb4={},_0x45957f={};const _0x78bb1c=resolveConfigPath(homedir());_0x78bb1c&&(_0x5f3fb4=parseAndNormalizeConfig(_0x78bb1c,_0x4d602a(0xf4),_0x4d602a(0xd7)));const _0x3ad69d=_0x138266??findProjectRootDirectory(),_0xe487fa=resolveConfigPath(_0x3ad69d);return _0xe487fa&&(_0x45957f=parseAndNormalizeConfig(_0xe487fa,_0x4d602a(0xf4),_0x4d602a(0xf2))),{'globalPath':_0x78bb1c,'projectPath':_0xe487fa,'globalConfig':_0x5f3fb4,'projectConfig':_0x45957f};}const INHERIT_WHITELIST=['cookie','accessKey','locale',a215_0x10f6e2(0xef),a215_0x10f6e2(0xcb),a215_0x10f6e2(0xcd)];export function mergeRawConfigLayers(_0x456d09){const _0x346f70=a215_0x10f6e2,{globalConfig:_0x51563c,projectConfig:_0x12a7d7}=_0x456d09,_0x150ed7=Object['keys'](_0x12a7d7)[_0x346f70(0xfb)]>0x0;if(!_0x150ed7)return mergeGlobalOnly(_0x51563c);if(_0x12a7d7['inherit']===!![])return mergeFullInherit(_0x51563c,_0x12a7d7);if(_0x12a7d7['inherit']===![])return mergeIsolated(_0x12a7d7);return mergeProjectFirst(_0x51563c,_0x12a7d7);}function mergeGlobalOnly(_0x4d5aad){const _0x574fa4=a215_0x10f6e2,_0x159854={..._0x4d5aad},_0xf02769=_0x4d5aad['apps']&&typeof _0x4d5aad[_0x574fa4(0xc9)]===_0x574fa4(0xf6)?_0x4d5aad[_0x574fa4(0xc9)]:{};if(Object[_0x574fa4(0xea)](_0xf02769)[_0x574fa4(0xfb)]>0x0)_0x159854[_0x574fa4(0xc9)]=_0xf02769;if(_0x4d5aad['defaultApp'])_0x159854[_0x574fa4(0xd4)]=_0x4d5aad[_0x574fa4(0xd4)];else{const _0x2b5a05=Object[_0x574fa4(0xea)](_0xf02769);if(_0x2b5a05[_0x574fa4(0xfb)]>0x0)_0x159854[_0x574fa4(0xd4)]=_0x2b5a05[0x0];}return _0x159854;}function mergeIsolated(_0x3eac2c){const _0xcc1e56=a215_0x10f6e2,_0xd63d4b={..._0x3eac2c};delete _0xd63d4b[_0xcc1e56(0xd0)];const _0x3622a4=_0x3eac2c['apps']&&typeof _0x3eac2c[_0xcc1e56(0xc9)]===_0xcc1e56(0xf6)?_0x3eac2c[_0xcc1e56(0xc9)]:{};Object[_0xcc1e56(0xea)](_0x3622a4)[_0xcc1e56(0xfb)]>0x0?_0xd63d4b[_0xcc1e56(0xc9)]=_0x3622a4:delete _0xd63d4b['apps'];if(_0xcc1e56(0xd4)in _0x3eac2c)_0xd63d4b[_0xcc1e56(0xd4)]=_0x3eac2c['defaultApp'];else Object[_0xcc1e56(0xea)](_0x3622a4)[_0xcc1e56(0xfb)]>0x0?_0xd63d4b[_0xcc1e56(0xd4)]=Object[_0xcc1e56(0xea)](_0x3622a4)[0x0]:delete _0xd63d4b['defaultApp'];return _0xd63d4b;}function mergeProjectFirst(_0x52399b,_0x4169ba){const _0x3ed900=a215_0x10f6e2,_0x38b158={..._0x4169ba};delete _0x38b158[_0x3ed900(0xd0)];for(const _0x354d5f of INHERIT_WHITELIST){!(_0x354d5f in _0x38b158)&&_0x354d5f in _0x52399b&&(_0x38b158[_0x354d5f]=_0x52399b[_0x354d5f]);}const _0x60363b=_0x4169ba[_0x3ed900(0xc9)]&&typeof _0x4169ba[_0x3ed900(0xc9)]==='object'?_0x4169ba[_0x3ed900(0xc9)]:{};Object['keys'](_0x60363b)['length']>0x0?_0x38b158[_0x3ed900(0xc9)]=_0x60363b:delete _0x38b158[_0x3ed900(0xc9)];if(_0x3ed900(0xd4)in _0x4169ba)_0x38b158[_0x3ed900(0xd4)]=_0x4169ba[_0x3ed900(0xd4)];else Object[_0x3ed900(0xea)](_0x60363b)['length']>0x0?_0x38b158[_0x3ed900(0xd4)]=Object[_0x3ed900(0xea)](_0x60363b)[0x0]:delete _0x38b158[_0x3ed900(0xd4)];return _0x38b158;}function mergeFullInherit(_0x1f8196,_0x50c414){const _0xc4f75e=a215_0x10f6e2,_0x118497=_0x1f8196[_0xc4f75e(0xc9)]&&typeof _0x1f8196[_0xc4f75e(0xc9)]==='object'?_0x1f8196['apps']:{},_0x2f429d=_0x50c414[_0xc4f75e(0xc9)]&&typeof _0x50c414['apps']===_0xc4f75e(0xf6)?_0x50c414[_0xc4f75e(0xc9)]:{},_0x29875c={..._0x118497,..._0x2f429d},_0x136848={..._0x1f8196,..._0x50c414};delete _0x136848[_0xc4f75e(0xd0)];if(Object[_0xc4f75e(0xea)](_0x29875c)[_0xc4f75e(0xfb)]>0x0)_0x136848['apps']=_0x29875c;if(_0xc4f75e(0xd4)in _0x50c414)_0x136848[_0xc4f75e(0xd4)]=_0x50c414['defaultApp'];else{if(Object[_0xc4f75e(0xea)](_0x2f429d)['length']>0x0)_0x136848[_0xc4f75e(0xd4)]=Object[_0xc4f75e(0xea)](_0x2f429d)[0x0];else{if(_0x1f8196[_0xc4f75e(0xd4)])_0x136848[_0xc4f75e(0xd4)]=_0x1f8196[_0xc4f75e(0xd4)];else{const _0x7fe3ac=Object[_0xc4f75e(0xea)](_0x118497);if(_0x7fe3ac['length']>0x0)_0x136848[_0xc4f75e(0xd4)]=_0x7fe3ac[0x0];}}}return _0x136848;}export function readRawConfigWithLayers(_0x140e82){const _0x424f9c=loadRawConfigLayers(_0x140e82);return{'config':mergeRawConfigLayers(_0x424f9c),'layers':_0x424f9c};}export function readRawConfig(_0x46e8a8){return mergeRawConfigLayers(loadRawConfigLayers(_0x46e8a8));}export function readConfigFile(_0x4fd43f){const _0x340bb4=a215_0x10f6e2;return parseAndNormalizeConfig(_0x4fd43f,_0x340bb4(0xd1));}export function writeConfigFile(_0x5b9a16,_0x4f8000){const _0x5a5037=a215_0x10f6e2,_0xb770c2=dirname(_0x5b9a16);!existsSync(_0xb770c2)&&mkdirSync(_0xb770c2,{'recursive':!![]});const _0x11cf62=_0x5b9a16+_0x5a5037(0xf1);try{writeFileSync(_0x11cf62,JSON[_0x5a5037(0xe4)](_0x4f8000,null,0x2)+'\x0a',{'encoding':_0x5a5037(0xcc),'mode':0x180}),renameSync(_0x11cf62,_0x5b9a16);}catch(_0x4f96a8){try{unlinkSync(_0x11cf62);}catch{}throw _0x4f96a8;}}export function resolveWriteConfigPath(_0x1ba96a){const _0x5b2de5=a215_0x10f6e2,_0x432631=_0x1ba96a===_0x5b2de5(0xee)?process[_0x5b2de5(0xe7)]():homedir(),_0x1c1da0=resolveConfigPath(_0x432631);return _0x1c1da0??resolve(_0x432631,NEW_CONFIG_NAME);}
package/lib/context.js CHANGED
@@ -1 +1 @@
1
- const a216_0x4f5d21=a216_0x4f25;(function(_0x5bd992,_0x17c4c8){const _0x3d431e=a216_0x4f25,_0x3a19a8=_0x5bd992();while(!![]){try{const _0x4a933e=parseInt(_0x3d431e(0x18a))/0x1*(parseInt(_0x3d431e(0x173))/0x2)+-parseInt(_0x3d431e(0x186))/0x3*(-parseInt(_0x3d431e(0x17f))/0x4)+parseInt(_0x3d431e(0x189))/0x5+-parseInt(_0x3d431e(0x168))/0x6*(parseInt(_0x3d431e(0x18d))/0x7)+-parseInt(_0x3d431e(0x16f))/0x8*(-parseInt(_0x3d431e(0x16e))/0x9)+parseInt(_0x3d431e(0x167))/0xa+-parseInt(_0x3d431e(0x164))/0xb*(parseInt(_0x3d431e(0x17e))/0xc);if(_0x4a933e===_0x17c4c8)break;else _0x3a19a8['push'](_0x3a19a8['shift']());}catch(_0x5d55ef){_0x3a19a8['push'](_0x3a19a8['shift']());}}}(a216_0x2d1a,0x6262b));import{resolve}from'node:path';import{CLI_BIN_NAME}from'./constant/cli.js';import{buildAuth}from'./context/auth-resolver.js';import{resolveAppConfig}from'./context/app-resolver.js';import{CONFIG_NAMES,LEGACY_CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile}from'./context/config-loader.js';import{logger}from'./utils/logger.js';export{CONFIG_NAMES,LEGACY_CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile};function env(_0x103e58){return process.env[`RABETBASE_${_0x103e58}`]||process.env[`LOVRABET_${_0x103e58}`]||undefined;}function optionalString(_0x13f4f9){const _0x1bf918=a216_0x4f25;return typeof _0x13f4f9===_0x1bf918(0x163)&&_0x13f4f9[_0x1bf918(0x181)]()?_0x13f4f9[_0x1bf918(0x181)]():undefined;}export async function createContext(_0x1fcae1){const _0x1c8107=a216_0x4f25,{config:_0x457aaa,layers:_0x804234}=readRawConfigWithLayers(),_0x518f22=buildConfig(_0x457aaa,_0x1fcae1,_0x804234);await initGlobalEnvironment(_0x518f22);const {getUserDomain:_0xaa1acb,getApiDomain:_0x239aa8}=await import(_0x1c8107(0x187)),_0x39553f={'apiDomain':_0x239aa8(),'userDomain':_0xaa1acb()},_0x2cb05a=await buildAuth(_0x518f22);logger[_0x1c8107(0x171)](process[_0x1c8107(0x185)]());const _0x5e307c=(CLI_BIN_NAME+'\x20'+process[_0x1c8107(0x176)]['slice'](0x2)['join']('\x20'))[_0x1c8107(0x181)]();logger[_0x1c8107(0x165)](_0x5e307c);const {isNonInteractive:_0x487c4f}=await import(_0x1c8107(0x166)),_0x506429=_0x487c4f(_0x1fcae1);return{'config':_0x518f22,'auth':_0x2cb05a,'logger':logger,'env':_0x39553f,'nonInteractive':_0x506429};}export function buildConfigFromFlags(_0x555edf){const {config:_0x4b42b7,layers:_0x22de69}=readRawConfigWithLayers();return buildConfig(_0x4b42b7,_0x555edf,_0x22de69);}function a216_0x4f25(_0x2bda0b,_0x279d95){_0x2bda0b=_0x2bda0b-0x162;const _0x2d1abf=a216_0x2d1a();let _0x4f25b8=_0x2d1abf[_0x2bda0b];return _0x4f25b8;}export async function initGlobalEnvironment(_0x5d2707){const _0x1cb141=a216_0x4f25,{initEnv:_0x21d3fb}=await import('./constant/env.js');_0x21d3fb(_0x5d2707[_0x1cb141(0x179)]);const {initDomains:_0x22dd22}=await import(_0x1cb141(0x187));_0x22dd22({'apiDomain':optionalString(_0x5d2707[_0x1cb141(0x172)]?.[_0x1cb141(0x18c)]),'userDomain':optionalString(_0x5d2707[_0x1cb141(0x172)]?.[_0x1cb141(0x17c)]),'runtimeDomain':optionalString(_0x5d2707[_0x1cb141(0x172)]?.['runtimeDomain'])});}export function getConfigAppCode(_0x1bfca8){const _0x389f86=a216_0x4f25,_0x4d41fc=readRawConfig(_0x1bfca8);if(_0x4d41fc['apps']&&typeof _0x4d41fc[_0x389f86(0x184)]===_0x389f86(0x16c)){const _0x416349=_0x4d41fc[_0x389f86(0x169)];if(_0x416349&&_0x4d41fc[_0x389f86(0x184)][_0x416349]?.[_0x389f86(0x180)])return String(_0x4d41fc['apps'][_0x416349][_0x389f86(0x180)])[_0x389f86(0x181)]();const _0xd72f0f=Object[_0x389f86(0x16d)](_0x4d41fc[_0x389f86(0x184)])[0x0];if(_0xd72f0f?.[_0x389f86(0x180)])return String(_0xd72f0f[_0x389f86(0x180)])[_0x389f86(0x181)]();}const _0x582f16=_0x4d41fc[_0x389f86(0x180)]||_0x4d41fc[_0x389f86(0x177)];if(typeof _0x582f16!=='string'||_0x582f16['trim']()==='')return undefined;return _0x582f16[_0x389f86(0x181)]();}export function getMultiAppConfigs(_0x5f5047=a216_0x4f5d21(0x162),_0x3dad30){const _0x57b16d=a216_0x4f5d21,_0x4c5699=loadRawConfigLayers(_0x3dad30);let _0x45b8a6,_0x5b920b;if(_0x5f5047===_0x57b16d(0x170)){const _0x2554cb=_0x4c5699[_0x57b16d(0x174)][_0x57b16d(0x184)]&&typeof _0x4c5699[_0x57b16d(0x174)]['apps']==='object'?_0x4c5699[_0x57b16d(0x174)][_0x57b16d(0x184)]:{},_0x4dc7a0=_0x4c5699[_0x57b16d(0x16b)][_0x57b16d(0x184)]&&typeof _0x4c5699[_0x57b16d(0x16b)]['apps']===_0x57b16d(0x16c)?_0x4c5699[_0x57b16d(0x16b)][_0x57b16d(0x184)]:{};_0x45b8a6={..._0x2554cb,..._0x4dc7a0};const _0x419837=readRawConfig(_0x3dad30);_0x5b920b=_0x419837[_0x57b16d(0x169)];}else _0x45b8a6=_0x4c5699[_0x57b16d(0x16b)]['apps'],_0x5b920b=_0x4c5699['projectConfig'][_0x57b16d(0x169)];if(!_0x45b8a6||typeof _0x45b8a6!==_0x57b16d(0x16c)||Object[_0x57b16d(0x17d)](_0x45b8a6)[_0x57b16d(0x16a)]===0x0)return null;return Object[_0x57b16d(0x17b)](_0x45b8a6)['map'](([_0x372546,_0x4159f3])=>({'name':_0x372546,'appcode':_0x4159f3?.['appcode']||'','isDefault':_0x372546===_0x5b920b,'env':_0x4159f3?.[_0x57b16d(0x179)],'apiDir':_0x4159f3?.['apiDir'],'cookie':_0x4159f3?.[_0x57b16d(0x17a)]||undefined}))[_0x57b16d(0x188)](_0x4cd00a=>_0x4cd00a[_0x57b16d(0x180)]);}export function getTemplateBaseUrl(_0x5d969c){const _0x4c5fb4=a216_0x4f5d21,_0x422646=readRawConfig(_0x5d969c);if(_0x422646[_0x4c5fb4(0x175)]&&typeof _0x422646[_0x4c5fb4(0x175)]===_0x4c5fb4(0x163))return _0x422646[_0x4c5fb4(0x175)][_0x4c5fb4(0x178)](/\/$/,'');return'https://g.lovrabet.com/dist/lovrabet-skill';}function a216_0x2d1a(){const _0x40b7c8=['defaultApp','length','projectConfig','object','values','131022vSDnKK','320BOaBXO','merged','setLogPath','raw','2gUlusq','globalConfig','template_base_url','argv','app','replace','env','cookie','entries','userDomain','keys','88572DCtLls','4xHhBZs','appcode','trim','apiDir','api.ts','apps','cwd','767526NVOUia','./constant/domain.js','filter','1328495ilUjcz','148711uvthWN','find','apiDomain','7VuuGRo','project','string','1892pmacQg','setRawCommand','./utils/is-non-interactive.js','7100000wlzPFw','1740318oDzfdr'];a216_0x2d1a=function(){return _0x40b7c8;};return a216_0x2d1a();}function buildConfig(_0x438b95,_0x26d140,_0x454a9f){return{...resolveAppConfig({'raw':_0x438b95,'flags':_0x26d140,'layers':_0x454a9f,'readEnv':env}),'raw':_0x438b95};}export function resolveApiFilePath(_0x4d86ff,_0x1c9348){const _0x198218=a216_0x4f5d21,_0x543e99=resolve(process[_0x198218(0x185)](),_0x4d86ff),_0x357279=resolve(_0x543e99,_0x198218(0x183));if(!_0x1c9348)return _0x357279;const _0x309ce0=readRawConfig(),_0x26aeff=_0x309ce0[_0x198218(0x184)]&&typeof _0x309ce0[_0x198218(0x184)]==='object'?_0x309ce0[_0x198218(0x184)]:{},_0x3e3bbd=Object[_0x198218(0x17b)](_0x26aeff)[_0x198218(0x18b)](([,_0x654e4f])=>_0x654e4f?.['appcode']===_0x1c9348);if(!_0x3e3bbd)return _0x357279;const [_0x198ebd,_0x56c485]=_0x3e3bbd,_0x12c0fc=typeof _0x309ce0['defaultApp']===_0x198218(0x163)?_0x309ce0[_0x198218(0x169)]:undefined;if(_0x56c485?.[_0x198218(0x182)])return _0x357279;if(_0x12c0fc&&_0x198ebd!==_0x12c0fc)return resolve(_0x543e99,_0x198ebd+'-api.ts');return _0x357279;}
1
+ const a216_0x3f64fd=a216_0x2aee;(function(_0x54a749,_0x3e1963){const _0x1b86c2=a216_0x2aee,_0x24e155=_0x54a749();while(!![]){try{const _0x14540a=parseInt(_0x1b86c2(0xee))/0x1+parseInt(_0x1b86c2(0x10a))/0x2+-parseInt(_0x1b86c2(0xe3))/0x3*(-parseInt(_0x1b86c2(0xe4))/0x4)+parseInt(_0x1b86c2(0xe1))/0x5*(parseInt(_0x1b86c2(0x103))/0x6)+parseInt(_0x1b86c2(0xea))/0x7*(parseInt(_0x1b86c2(0xe7))/0x8)+parseInt(_0x1b86c2(0x106))/0x9*(parseInt(_0x1b86c2(0xf1))/0xa)+-parseInt(_0x1b86c2(0xf4))/0xb*(parseInt(_0x1b86c2(0xe6))/0xc);if(_0x14540a===_0x3e1963)break;else _0x24e155['push'](_0x24e155['shift']());}catch(_0x16bf75){_0x24e155['push'](_0x24e155['shift']());}}}(a216_0x5e1a,0x652ad));import{resolve}from'node:path';import{CLI_BIN_NAME}from'./constant/cli.js';import{buildAuth}from'./context/auth-resolver.js';import{resolveAppConfig}from'./context/app-resolver.js';function a216_0x5e1a(){const _0x554634=['env','388804MDSvaE','defaultApp','userDomain','89190NgOgOt','filter','-api.ts','27744090MSWjpM','slice','keys','join','appcode','runtimeDomain','api.ts','project','replace','globalConfig','projectConfig','./utils/is-non-interactive.js','cwd','apiDomain','apps','30dxcXXD','find','string','81GmDglx','raw','setLogPath','apiDir','1400890OuuDna','760930IEywEn','trim','3YOgpDi','1234248cxepAp','length','12cWeikS','5580472ofAzvJ','entries','template_base_url','7ZtNoZt','cookie','object'];a216_0x5e1a=function(){return _0x554634;};return a216_0x5e1a();}import{CONFIG_NAMES,LEGACY_CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile}from'./context/config-loader.js';import{logger}from'./utils/logger.js';export{CONFIG_NAMES,LEGACY_CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile};function env(_0x496967){return process.env[`RABETBASE_${_0x496967}`]||process.env[`LOVRABET_${_0x496967}`]||undefined;}function optionalString(_0x280768){const _0x5a5ef4=a216_0x2aee;return typeof _0x280768===_0x5a5ef4(0x105)&&_0x280768[_0x5a5ef4(0xe2)]()?_0x280768['trim']():undefined;}function a216_0x2aee(_0x537753,_0x2c4782){_0x537753=_0x537753-0xe1;const _0x5e1a97=a216_0x5e1a();let _0x2aee1a=_0x5e1a97[_0x537753];return _0x2aee1a;}export async function createContext(_0x5f3173){const _0x4727aa=a216_0x2aee,{config:_0x4d6847,layers:_0x198020}=readRawConfigWithLayers(),_0x10c5d6=buildConfig(_0x4d6847,_0x5f3173,_0x198020);await initGlobalEnvironment(_0x10c5d6);const {getUserDomain:_0x41f7eb,getApiDomain:_0x4f5184}=await import('./constant/domain.js'),_0x16eb8e={'apiDomain':_0x4f5184(),'userDomain':_0x41f7eb()},_0x5b57c5=await buildAuth(_0x10c5d6);logger[_0x4727aa(0x108)](process['cwd']());const _0x454fb2=(CLI_BIN_NAME+'\x20'+process['argv'][_0x4727aa(0xf5)](0x2)[_0x4727aa(0xf7)]('\x20'))[_0x4727aa(0xe2)]();logger['setRawCommand'](_0x454fb2);const {isNonInteractive:_0x23886d}=await import(_0x4727aa(0xff)),_0x5205b4=_0x23886d(_0x5f3173);return{'config':_0x10c5d6,'auth':_0x5b57c5,'logger':logger,'env':_0x16eb8e,'nonInteractive':_0x5205b4};}export function buildConfigFromFlags(_0x359dc5){const {config:_0xd296c5,layers:_0x421911}=readRawConfigWithLayers();return buildConfig(_0xd296c5,_0x359dc5,_0x421911);}export async function initGlobalEnvironment(_0x3c71fe){const _0x20b87b=a216_0x2aee,{initEnv:_0x2ed99c}=await import('./constant/env.js');_0x2ed99c(_0x3c71fe[_0x20b87b(0xed)]);const {initDomains:_0x1d2a74}=await import('./constant/domain.js');_0x1d2a74({'apiDomain':optionalString(_0x3c71fe[_0x20b87b(0x107)]?.[_0x20b87b(0x101)]),'userDomain':optionalString(_0x3c71fe[_0x20b87b(0x107)]?.[_0x20b87b(0xf0)]),'runtimeDomain':optionalString(_0x3c71fe[_0x20b87b(0x107)]?.[_0x20b87b(0xf9)])});}export function getConfigAppCode(_0x48c4b6){const _0xd6c4be=a216_0x2aee,_0x334359=readRawConfig(_0x48c4b6);if(_0x334359['apps']&&typeof _0x334359[_0xd6c4be(0x102)]==='object'){const _0x549664=_0x334359['defaultApp'];if(_0x549664&&_0x334359[_0xd6c4be(0x102)][_0x549664]?.[_0xd6c4be(0xf8)])return String(_0x334359[_0xd6c4be(0x102)][_0x549664]['appcode'])[_0xd6c4be(0xe2)]();const _0xb0fa07=Object['values'](_0x334359[_0xd6c4be(0x102)])[0x0];if(_0xb0fa07?.[_0xd6c4be(0xf8)])return String(_0xb0fa07['appcode'])[_0xd6c4be(0xe2)]();}const _0x196c77=_0x334359[_0xd6c4be(0xf8)]||_0x334359['app'];if(typeof _0x196c77!=='string'||_0x196c77[_0xd6c4be(0xe2)]()==='')return undefined;return _0x196c77['trim']();}export function getMultiAppConfigs(_0x5533d4=a216_0x3f64fd(0xfb),_0x3f0e73){const _0x131ea4=a216_0x3f64fd,_0x1de7ad=loadRawConfigLayers(_0x3f0e73);let _0x32f255,_0x994c60;if(_0x5533d4==='merged'){const _0x1c11dd=_0x1de7ad['globalConfig']['apps']&&typeof _0x1de7ad[_0x131ea4(0xfd)][_0x131ea4(0x102)]===_0x131ea4(0xec)?_0x1de7ad[_0x131ea4(0xfd)]['apps']:{},_0x1e9f89=_0x1de7ad['projectConfig'][_0x131ea4(0x102)]&&typeof _0x1de7ad[_0x131ea4(0xfe)]['apps']==='object'?_0x1de7ad[_0x131ea4(0xfe)][_0x131ea4(0x102)]:{};_0x32f255={..._0x1c11dd,..._0x1e9f89};const _0x1a607=readRawConfig(_0x3f0e73);_0x994c60=_0x1a607[_0x131ea4(0xef)];}else _0x32f255=_0x1de7ad[_0x131ea4(0xfe)][_0x131ea4(0x102)],_0x994c60=_0x1de7ad[_0x131ea4(0xfe)]['defaultApp'];if(!_0x32f255||typeof _0x32f255!==_0x131ea4(0xec)||Object[_0x131ea4(0xf6)](_0x32f255)[_0x131ea4(0xe5)]===0x0)return null;return Object[_0x131ea4(0xe8)](_0x32f255)['map'](([_0x5d188f,_0x475515])=>({'name':_0x5d188f,'appcode':_0x475515?.[_0x131ea4(0xf8)]||'','isDefault':_0x5d188f===_0x994c60,'env':_0x475515?.[_0x131ea4(0xed)],'apiDir':_0x475515?.[_0x131ea4(0x109)],'cookie':_0x475515?.[_0x131ea4(0xeb)]||undefined}))[_0x131ea4(0xf2)](_0x469e90=>_0x469e90['appcode']);}export function getTemplateBaseUrl(_0x3abe4d){const _0x1d3919=a216_0x3f64fd,_0x47fdfb=readRawConfig(_0x3abe4d);if(_0x47fdfb[_0x1d3919(0xe9)]&&typeof _0x47fdfb['template_base_url']===_0x1d3919(0x105))return _0x47fdfb[_0x1d3919(0xe9)][_0x1d3919(0xfc)](/\/$/,'');return'https://g.lovrabet.com/dist/lovrabet-skill';}function buildConfig(_0x4bb4db,_0x399e15,_0x1846b6){return{...resolveAppConfig({'raw':_0x4bb4db,'flags':_0x399e15,'layers':_0x1846b6,'readEnv':env}),'raw':_0x4bb4db};}export function resolveApiFilePath(_0x401103,_0x557cc5){const _0x48f801=a216_0x3f64fd,_0x1cfa2b=resolve(process[_0x48f801(0x100)](),_0x401103),_0x236bd4=resolve(_0x1cfa2b,_0x48f801(0xfa));if(!_0x557cc5)return _0x236bd4;const _0x1176c8=readRawConfig(),_0x358f8d=_0x1176c8[_0x48f801(0x102)]&&typeof _0x1176c8[_0x48f801(0x102)]===_0x48f801(0xec)?_0x1176c8[_0x48f801(0x102)]:{},_0x30c181=Object[_0x48f801(0xe8)](_0x358f8d)[_0x48f801(0x104)](([,_0x589bef])=>_0x589bef?.[_0x48f801(0xf8)]===_0x557cc5);if(!_0x30c181)return _0x236bd4;const [_0x2a461f,_0x4598f5]=_0x30c181,_0x2e314d=typeof _0x1176c8[_0x48f801(0xef)]===_0x48f801(0x105)?_0x1176c8[_0x48f801(0xef)]:undefined;if(_0x4598f5?.['apiDir'])return _0x236bd4;if(_0x2e314d&&_0x2a461f!==_0x2e314d)return resolve(_0x1cfa2b,_0x2a461f+_0x48f801(0xf3));return _0x236bd4;}
@@ -1 +1 @@
1
- (function(_0xf8439b,_0x13fee1){const _0x266050=a217_0x250a,_0x55767d=_0xf8439b();while(!![]){try{const _0x138f72=-parseInt(_0x266050(0x130))/0x1+-parseInt(_0x266050(0x12b))/0x2*(-parseInt(_0x266050(0x12c))/0x3)+-parseInt(_0x266050(0x13a))/0x4*(parseInt(_0x266050(0x13b))/0x5)+-parseInt(_0x266050(0x136))/0x6+-parseInt(_0x266050(0x12d))/0x7*(-parseInt(_0x266050(0x131))/0x8)+-parseInt(_0x266050(0x12a))/0x9*(-parseInt(_0x266050(0x138))/0xa)+parseInt(_0x266050(0x135))/0xb*(parseInt(_0x266050(0x134))/0xc);if(_0x138f72===_0x13fee1)break;else _0x55767d['push'](_0x55767d['shift']());}catch(_0x8b2e12){_0x55767d['push'](_0x55767d['shift']());}}}(a217_0x5d3d,0xbf58b));import{readFileSync,existsSync}from'node:fs';import{resolve}from'node:path';const cache=new Map();function parseApiFile(_0x5f2a12){const _0x2401ba=a217_0x250a,_0x119129=[],_0x3580f3=/\{\s*datasetCode:\s*"([^"]+)"\s*,\s*tableName:\s*"([^"]+)"\s*,\s*name:\s*"([^"]*?)"\s*,\s*alias:\s*"([^"]+)"\s*,?\s*\}/g;let _0x4ac0d7;while((_0x4ac0d7=_0x3580f3[_0x2401ba(0x137)](_0x5f2a12))!==null){_0x119129[_0x2401ba(0x128)]({'datasetCode':_0x4ac0d7[0x1],'tableName':_0x4ac0d7[0x2],'name':_0x4ac0d7[0x3],'alias':_0x4ac0d7[0x4]});}return _0x119129;}function a217_0x250a(_0x3307b7,_0x24e883){_0x3307b7=_0x3307b7-0x128;const _0x5d3d74=a217_0x5d3d();let _0x250afc=_0x5d3d74[_0x3307b7];return _0x250afc;}export function loadAliasMap(_0x3b4d6e,_0x4c915f,_0x360619){const _0x5623f4=a217_0x250a,_0x521369=_0x360619??resolve(process[_0x5623f4(0x139)](),_0x3b4d6e,_0x5623f4(0x129));if(cache[_0x5623f4(0x133)](_0x521369))return cache[_0x5623f4(0x13c)](_0x521369);if(!existsSync(_0x521369))return cache[_0x5623f4(0x12e)](_0x521369,[]),[];try{const _0x194989=readFileSync(_0x521369,'utf-8'),_0x1db102=parseApiFile(_0x194989);return cache[_0x5623f4(0x12e)](_0x521369,_0x1db102),_0x1db102;}catch{return cache[_0x5623f4(0x12e)](_0x521369,[]),[];}}export function resolveAlias(_0x3ece6f,_0x621f0b,_0x4f51cf,_0x151c75){const _0x3ae905=a217_0x250a;if(!_0x621f0b)return undefined;const _0x46a29e=loadAliasMap(_0x3ece6f,_0x4f51cf,_0x151c75),_0x1d9d08=_0x46a29e['find'](_0x588fbe=>_0x588fbe[_0x3ae905(0x132)]===_0x621f0b);return _0x1d9d08?.[_0x3ae905(0x12f)];}export function listAliases(_0x2ecb2b,_0x3d15d1,_0x484c64){return loadAliasMap(_0x2ecb2b,_0x3d15d1,_0x484c64);}function a217_0x5d3d(){const _0x4d0846=['api.ts','115191buVeSF','1165768bYiQFa','3PFLOsk','7NJTyIr','set','datasetCode','626273XRVcNB','1520104jguZJc','alias','has','5063280ryULUt','44tzsyGw','5303508cXEdhL','exec','30qbZxRy','cwd','8728nUhRHc','470NcmXcZ','get','push'];a217_0x5d3d=function(){return _0x4d0846;};return a217_0x5d3d();}
1
+ (function(_0xba4b90,_0x1a20e5){const _0x4db26d=a217_0x40b4,_0x439cf8=_0xba4b90();while(!![]){try{const _0x38b8c5=parseInt(_0x4db26d(0x1c7))/0x1*(-parseInt(_0x4db26d(0x1c8))/0x2)+-parseInt(_0x4db26d(0x1c4))/0x3*(-parseInt(_0x4db26d(0x1cd))/0x4)+parseInt(_0x4db26d(0x1c3))/0x5+parseInt(_0x4db26d(0x1ca))/0x6+-parseInt(_0x4db26d(0x1d2))/0x7*(parseInt(_0x4db26d(0x1cb))/0x8)+-parseInt(_0x4db26d(0x1ce))/0x9+parseInt(_0x4db26d(0x1d3))/0xa*(parseInt(_0x4db26d(0x1c6))/0xb);if(_0x38b8c5===_0x1a20e5)break;else _0x439cf8['push'](_0x439cf8['shift']());}catch(_0x35b562){_0x439cf8['push'](_0x439cf8['shift']());}}}(a217_0x1b75,0xac626));function a217_0x1b75(){const _0x570946=['has','1516qWWJoz','6992964IelDLB','alias','datasetCode','find','755545yXQBqz','9220LOARin','utf-8','6215440hlSIhO','114ZrkPAk','push','20702JUSyBx','44489nMXyyj','36DFIzPQ','set','2870850MDqEkN','88XnHLMH'];a217_0x1b75=function(){return _0x570946;};return a217_0x1b75();}function a217_0x40b4(_0xbd453e,_0x135392){_0xbd453e=_0xbd453e-0x1c2;const _0x1b7596=a217_0x1b75();let _0x40b476=_0x1b7596[_0xbd453e];return _0x40b476;}import{readFileSync,existsSync}from'node:fs';import{resolve}from'node:path';const cache=new Map();function parseApiFile(_0x3ef72e){const _0x2e3c48=a217_0x40b4,_0x409edf=[],_0x31b100=/\{\s*datasetCode:\s*"([^"]+)"\s*,\s*tableName:\s*"([^"]+)"\s*,\s*name:\s*"([^"]*?)"\s*,\s*alias:\s*"([^"]+)"\s*,?\s*\}/g;let _0x3e3983;while((_0x3e3983=_0x31b100['exec'](_0x3ef72e))!==null){_0x409edf[_0x2e3c48(0x1c5)]({'datasetCode':_0x3e3983[0x1],'tableName':_0x3e3983[0x2],'name':_0x3e3983[0x3],'alias':_0x3e3983[0x4]});}return _0x409edf;}export function loadAliasMap(_0x5297f6,_0x1efceb,_0x371fdc){const _0x44c454=a217_0x40b4,_0xd6a707=_0x371fdc??resolve(process['cwd'](),_0x5297f6,'api.ts');if(cache[_0x44c454(0x1cc)](_0xd6a707))return cache['get'](_0xd6a707);if(!existsSync(_0xd6a707))return cache[_0x44c454(0x1c9)](_0xd6a707,[]),[];try{const _0x2607a7=readFileSync(_0xd6a707,_0x44c454(0x1c2)),_0x5808d6=parseApiFile(_0x2607a7);return cache[_0x44c454(0x1c9)](_0xd6a707,_0x5808d6),_0x5808d6;}catch{return cache[_0x44c454(0x1c9)](_0xd6a707,[]),[];}}export function resolveAlias(_0x4bd542,_0x2a6f98,_0x18d630,_0x202ee5){const _0x13ebf7=a217_0x40b4;if(!_0x2a6f98)return undefined;const _0x46281b=loadAliasMap(_0x4bd542,_0x18d630,_0x202ee5),_0x25775c=_0x46281b[_0x13ebf7(0x1d1)](_0x52e119=>_0x52e119[_0x13ebf7(0x1cf)]===_0x2a6f98);return _0x25775c?.[_0x13ebf7(0x1d0)];}export function listAliases(_0x36a7c4,_0x3ca881,_0x9bcf5){return loadAliasMap(_0x36a7c4,_0x3ca881,_0x9bcf5);}