@lovrabet/rabetbase-cli 2.2.5-beta.1 → 2.2.5-beta.2

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 (240) hide show
  1. package/README.md +1 -1
  2. package/lib/api/api-doc.js +1 -1
  3. package/lib/api/fetch-model-list.js +1 -1
  4. package/lib/api/generate-api-file.js +1 -1
  5. package/lib/auth/auth-server-ui.js +1 -1
  6. package/lib/auth/auth-server.js +1 -1
  7. package/lib/auth/constant.js +1 -1
  8. package/lib/auth/get-cookie.js +1 -1
  9. package/lib/auth/get-session-user.js +1 -1
  10. package/lib/auth/is-session-valid.js +1 -1
  11. package/lib/auth/login-success-html.js +1 -1
  12. package/lib/auth/logout.js +1 -1
  13. package/lib/cli-flags.js +1 -1
  14. package/lib/cli.js +1 -1
  15. package/lib/commands/api/generate.js +1 -1
  16. package/lib/commands/api/index.js +1 -1
  17. package/lib/commands/api/list.js +1 -1
  18. package/lib/commands/api/pull.js +1 -1
  19. package/lib/commands/api/shared.js +1 -1
  20. package/lib/commands/app/add.js +1 -1
  21. package/lib/commands/app/discover.js +1 -1
  22. package/lib/commands/app/index.js +1 -1
  23. package/lib/commands/app/list.js +1 -1
  24. package/lib/commands/app/remove.js +1 -1
  25. package/lib/commands/app/shared.js +1 -1
  26. package/lib/commands/app/use.js +1 -1
  27. package/lib/commands/app-config/delete.js +1 -1
  28. package/lib/commands/app-config/get.js +1 -1
  29. package/lib/commands/app-config/index.js +1 -1
  30. package/lib/commands/app-config/list.js +1 -1
  31. package/lib/commands/app-config/set.js +1 -1
  32. package/lib/commands/app-config/shared.js +1 -1
  33. package/lib/commands/auth/index.js +1 -1
  34. package/lib/commands/bff/create.js +1 -1
  35. package/lib/commands/bff/delete.js +1 -1
  36. package/lib/commands/bff/detail.js +1 -1
  37. package/lib/commands/bff/index.js +1 -1
  38. package/lib/commands/bff/list.js +1 -1
  39. package/lib/commands/bff/pull.js +1 -1
  40. package/lib/commands/bff/push.js +1 -1
  41. package/lib/commands/bff/status.js +1 -1
  42. package/lib/commands/cli-update.js +1 -1
  43. package/lib/commands/codegen/index.js +1 -1
  44. package/lib/commands/codegen/sdk.js +1 -1
  45. package/lib/commands/codegen/sql.js +1 -1
  46. package/lib/commands/common/app-selector.js +1 -1
  47. package/lib/commands/common/flags.js +1 -1
  48. package/lib/commands/common/validate.js +1 -1
  49. package/lib/commands/config/get.js +1 -1
  50. package/lib/commands/config/index.js +1 -1
  51. package/lib/commands/config/list.js +1 -1
  52. package/lib/commands/config/set.js +1 -1
  53. package/lib/commands/config/shared.js +1 -1
  54. package/lib/commands/data/filter.js +1 -1
  55. package/lib/commands/data/getOne.js +1 -1
  56. package/lib/commands/data/index.js +1 -1
  57. package/lib/commands/data/shared.js +1 -1
  58. package/lib/commands/dataset/business-group-update.js +1 -1
  59. package/lib/commands/dataset/capability.js +1 -1
  60. package/lib/commands/dataset/delete.js +1 -1
  61. package/lib/commands/dataset/detail.js +1 -1
  62. package/lib/commands/dataset/extend-update.js +1 -1
  63. package/lib/commands/dataset/field-update.js +1 -1
  64. package/lib/commands/dataset/index.js +1 -1
  65. package/lib/commands/dataset/list.js +1 -1
  66. package/lib/commands/dataset/operations.js +1 -1
  67. package/lib/commands/dataset/relation-create.js +1 -1
  68. package/lib/commands/dataset/relation-delete.js +1 -1
  69. package/lib/commands/dataset/relation-shared.js +1 -1
  70. package/lib/commands/dataset/relation-update.js +1 -1
  71. package/lib/commands/dataset/relations.js +1 -1
  72. package/lib/commands/dataset/rename.js +1 -1
  73. package/lib/commands/dataset/restore.js +1 -0
  74. package/lib/commands/db/analyze-cancel.js +1 -1
  75. package/lib/commands/db/analyze-start.js +1 -1
  76. package/lib/commands/db/analyze-status.js +1 -1
  77. package/lib/commands/db/create.js +1 -1
  78. package/lib/commands/db/delete.js +1 -1
  79. package/lib/commands/db/detail.js +1 -1
  80. package/lib/commands/db/diff.js +1 -1
  81. package/lib/commands/db/index.js +1 -1
  82. package/lib/commands/db/list.js +1 -1
  83. package/lib/commands/db/shared.js +1 -1
  84. package/lib/commands/db/tables.js +1 -1
  85. package/lib/commands/db/test.js +1 -1
  86. package/lib/commands/db/update.js +1 -1
  87. package/lib/commands/doctor.js +1 -1
  88. package/lib/commands/init/index.js +1 -1
  89. package/lib/commands/issue/index.js +1 -1
  90. package/lib/commands/issue/nudge.js +1 -1
  91. package/lib/commands/issue/report.js +1 -1
  92. package/lib/commands/issue/shared.js +1 -1
  93. package/lib/commands/logs/index.js +1 -1
  94. package/lib/commands/menu/index.js +1 -1
  95. package/lib/commands/menu/list.js +1 -1
  96. package/lib/commands/menu/shared/compare-table.js +1 -1
  97. package/lib/commands/menu/shared/index.js +1 -1
  98. package/lib/commands/menu/shared/inquirer.js +1 -1
  99. package/lib/commands/menu/shared/local-pages.js +1 -1
  100. package/lib/commands/menu/shared/logic.js +1 -1
  101. package/lib/commands/menu/shared/service.js +1 -1
  102. package/lib/commands/menu/shared/sync-core.js +1 -1
  103. package/lib/commands/menu/shared/update-core.js +1 -1
  104. package/lib/commands/menu/shared/valid-url.js +1 -1
  105. package/lib/commands/menu/sync.js +1 -1
  106. package/lib/commands/menu/update.js +1 -1
  107. package/lib/commands/page/generate-start.js +1 -1
  108. package/lib/commands/page/generate-status.js +1 -1
  109. package/lib/commands/page/index.js +1 -1
  110. package/lib/commands/page/pull.js +1 -1
  111. package/lib/commands/page/push.js +1 -1
  112. package/lib/commands/page/relation-audit.js +1 -1
  113. package/lib/commands/page/shared.js +1 -1
  114. package/lib/commands/page/standard-page-status.js +1 -1
  115. package/lib/commands/page/sync.js +1 -1
  116. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  117. package/lib/commands/project/create/format-elapsed.js +1 -1
  118. package/lib/commands/project/create/main.js +1 -1
  119. package/lib/commands/project/create/non-interactive.js +1 -1
  120. package/lib/commands/project/create/project-template-path.js +1 -1
  121. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  122. package/lib/commands/project/create/use-format-code.js +1 -1
  123. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  124. package/lib/commands/project/index.js +1 -1
  125. package/lib/commands/project/init.js +1 -1
  126. package/lib/commands/project/upgrade.js +1 -1
  127. package/lib/commands/registry.js +1 -1
  128. package/lib/commands/run/index.js +1 -1
  129. package/lib/commands/schema.js +1 -1
  130. package/lib/commands/skill/index.js +1 -1
  131. package/lib/commands/sql/create.js +1 -1
  132. package/lib/commands/sql/delete.js +1 -1
  133. package/lib/commands/sql/detail.js +1 -1
  134. package/lib/commands/sql/exec.js +1 -1
  135. package/lib/commands/sql/index.js +1 -1
  136. package/lib/commands/sql/list.js +1 -1
  137. package/lib/commands/sql/pull.js +1 -1
  138. package/lib/commands/sql/push.js +1 -1
  139. package/lib/commands/sql/save.js +1 -1
  140. package/lib/commands/sql/shared.js +1 -1
  141. package/lib/commands/sql/status.js +1 -1
  142. package/lib/commands/sql/validate.js +1 -1
  143. package/lib/commands/workspace/index.js +1 -1
  144. package/lib/config/schema.js +1 -1
  145. package/lib/constant/cdn.js +1 -1
  146. package/lib/constant/cli.js +1 -1
  147. package/lib/constant/defaults.js +1 -1
  148. package/lib/constant/domain.js +1 -1
  149. package/lib/constant/env.js +1 -1
  150. package/lib/constant/output.js +1 -1
  151. package/lib/constant/paths.js +1 -1
  152. package/lib/constant/risk.js +1 -1
  153. package/lib/context/app-resolver.js +1 -1
  154. package/lib/context/auth-resolver.js +1 -1
  155. package/lib/context/config-loader.js +1 -1
  156. package/lib/context.js +1 -1
  157. package/lib/core/alias-resolver.js +1 -1
  158. package/lib/core/api-client.js +1 -1
  159. package/lib/core/bff/config.js +1 -1
  160. package/lib/core/bff/file-system.js +1 -1
  161. package/lib/core/bff/hash.js +1 -1
  162. package/lib/core/bff/lock.js +1 -1
  163. package/lib/core/bff/utils.js +1 -1
  164. package/lib/core/db-resolver.js +1 -1
  165. package/lib/core/page/file-system.js +1 -1
  166. package/lib/core/page/hash.js +1 -1
  167. package/lib/core/page/lock.js +1 -1
  168. package/lib/core/sql-sync/config.js +1 -1
  169. package/lib/core/sql-sync/file-system.js +1 -1
  170. package/lib/core/sql-sync/hash.js +1 -1
  171. package/lib/core/sql-sync/lock.js +1 -1
  172. package/lib/core/sql-sync/utils.js +1 -1
  173. package/lib/core/sql-validator.js +1 -1
  174. package/lib/errors.js +1 -1
  175. package/lib/framework/build-all-flags.js +1 -1
  176. package/lib/framework/flags.js +1 -1
  177. package/lib/framework/help.js +1 -1
  178. package/lib/framework/index.js +1 -1
  179. package/lib/framework/output.js +1 -1
  180. package/lib/framework/response.js +1 -1
  181. package/lib/framework/runner-alias.js +1 -1
  182. package/lib/framework/runner.js +1 -1
  183. package/lib/framework/schema-export.js +1 -1
  184. package/lib/framework/types.js +1 -1
  185. package/lib/generated/build-info.js +1 -1
  186. package/lib/help.js +1 -1
  187. package/lib/skills/main.js +1 -1
  188. package/lib/skills/npx-skills-add.js +1 -1
  189. package/lib/telemetry/cli-command-trace.js +1 -1
  190. package/lib/telemetry/cli-help-trace.js +1 -1
  191. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  192. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  193. package/lib/telemetry/send-cli-trace-log.js +1 -1
  194. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  195. package/lib/utils/ai_config.js +1 -1
  196. package/lib/utils/apply-jq-filter.js +1 -1
  197. package/lib/utils/cdn-config.js +1 -1
  198. package/lib/utils/check-sdk-version.js +1 -1
  199. package/lib/utils/cli-version-check.js +1 -1
  200. package/lib/utils/cli-version-policy.js +1 -1
  201. package/lib/utils/config.js +1 -1
  202. package/lib/utils/copy-directory.js +1 -1
  203. package/lib/utils/entity-with-id.js +1 -1
  204. package/lib/utils/file-utils.js +1 -1
  205. package/lib/utils/guides-cdn.js +1 -1
  206. package/lib/utils/http-client.js +1 -1
  207. package/lib/utils/is-non-interactive.js +1 -1
  208. package/lib/utils/logger.js +1 -1
  209. package/lib/utils/params.js +1 -1
  210. package/lib/utils/platform.js +1 -1
  211. package/lib/utils/rules-cdn.js +1 -1
  212. package/lib/utils/sleep.js +1 -1
  213. package/lib/utils/template-replacer.js +1 -1
  214. package/lib/utils/update-notice.js +1 -1
  215. package/lib/utils/version.js +1 -1
  216. package/lib/utils/with-active-cookie.js +1 -1
  217. package/lib/utils/write-cli-side-channel.js +1 -1
  218. package/package.json +1 -1
  219. package/templates/README.md +15 -25
  220. package/templates/generate-api/api.ts.tpl +2 -2
  221. package/templates/generate-api/client.ts.tpl +2 -2
  222. package/templates/projects/sub-app-react-demo/CHANGELOG.md +15 -1
  223. package/templates/projects/sub-app-react-demo/README.md +159 -231
  224. package/templates/projects/sub-app-react-demo/docs/quick-start.md +145 -426
  225. package/templates/projects/sub-app-react-demo/src/api/api.ts +8 -65
  226. package/templates/projects/sub-app-react-demo/src/api/client.ts +10 -42
  227. package/templates/projects/sub-app-react-demo/src/components/demo-page-container/DemoPageContainer.module.css +28 -0
  228. package/templates/projects/sub-app-react-demo/src/components/demo-page-container/DemoPageContainer.tsx +55 -0
  229. package/templates/projects/sub-app-react-demo/src/layouts/MainLayout.tsx +6 -9
  230. package/templates/projects/sub-app-react-demo/src/main.tsx +10 -6
  231. package/templates/projects/sub-app-react-demo/src/pages/dashboard/index.tsx +3 -5
  232. package/templates/projects/sub-app-react-demo/src/pages/data-screen/index.tsx +153 -148
  233. package/templates/projects/sub-app-react-demo/src/pages/index.module.css +500 -0
  234. package/templates/projects/sub-app-react-demo/src/pages/index.tsx +517 -343
  235. package/templates/projects/sub-app-react-demo/src/pages/sdk-demo/index.tsx +325 -242
  236. package/templates/projects/sub-app-react-demo/src/pages/workbench/index.module.css +8 -6
  237. package/templates/projects/sub-app-react-demo/src/pages/workbench/index.tsx +174 -87
  238. package/templates/projects/sub-app-react-demo/src/style.css +19 -3
  239. package/templates/projects/sub-app-react-demo/src/vite-env.d.ts +1 -1
  240. package/templates/projects/sub-app-react-demo/docs/API_RULE_CHANGE.md +0 -212
@@ -1 +1 @@
1
- const a140_0x39a763=a140_0x56d4;(function(_0x366d18,_0x5c5255){const _0x301897=a140_0x56d4,_0x24d750=_0x366d18();while(!![]){try{const _0x17d454=-parseInt(_0x301897(0x200))/0x1*(parseInt(_0x301897(0x1f0))/0x2)+-parseInt(_0x301897(0x207))/0x3+-parseInt(_0x301897(0x213))/0x4*(-parseInt(_0x301897(0x204))/0x5)+parseInt(_0x301897(0x205))/0x6*(parseInt(_0x301897(0x1f2))/0x7)+-parseInt(_0x301897(0x20d))/0x8+-parseInt(_0x301897(0x20b))/0x9*(-parseInt(_0x301897(0x202))/0xa)+-parseInt(_0x301897(0x1f6))/0xb*(-parseInt(_0x301897(0x211))/0xc);if(_0x17d454===_0x5c5255)break;else _0x24d750['push'](_0x24d750['shift']());}catch(_0x4ffb38){_0x24d750['push'](_0x24d750['shift']());}}}(a140_0x2e19,0x4b715));import{readFileSync,existsSync}from'node:fs';import{resolve}from'node:path';import{validateSql}from'../../core/sql-validator.js';function a140_0x56d4(_0x4ced8a,_0x2c3df1){_0x4ced8a=_0x4ced8a-0x1e4;const _0x2e1972=a140_0x2e19();let _0x56d461=_0x2e1972[_0x4ced8a];return _0x56d461;}import{getDatasetDetail,listDatasets}from'../../core/api-client.js';function a140_0x2e19(){const _0x5f28ff=['10Cqpdtt','toLowerCase','16370WLGSzE','60VlzMpd','SQL\x20schema\x20validation','1481379dcryav','read','dbtableConfig','isSelectOnly','31383ahUFTF','Table\x20\x22','3412736nVCtDT','Inline\x20SQL\x20content\x20to\x20validate\x20(alternative\x20to\x20--file)','cwd','map','1045068pwkgzy','Path\x20to\x20the\x20SQL\x20file\x20to\x20validate','124fqGSPc','isDangerous','name','parameters','tableName','utf-8','from','split','str','tables','schema:','Validate\x20SQL\x20content\x20without\x20saving\x20(type\x20detection,\x20parameter\x20extraction,\x20optional\x20schema\x20check)','fields','File\x20not\x20found:\x20','length','Comma-separated\x20dataset\x20codes\x20to\x20cross-check\x20table/column\x20names\x20against','reason','flagMissing','11758oDtwXG','sqlType','29806wHAcMS','Provide\x20--file\x20or\x20--sql','file','push','176lIGIHv','sql','message','type','valid','validation','string','filter','schemas','Dataset\x20\x22','53zsBpcO','\x22\x20not\x20found\x20in\x20any\x20dataset'];a140_0x2e19=function(){return _0x5f28ff;};return a140_0x2e19();}import{CliErrors}from'../../errors.js';import{assertDatasetIsDbTableBacked,filterDbTableBackedDatasets}from'../../commands/dataset/capability.js';export const sqlValidate={'service':a140_0x39a763(0x1f7),'command':'validate','description':a140_0x39a763(0x1e9),'risk':a140_0x39a763(0x208),'flags':[{'name':a140_0x39a763(0x1f4),'type':'string','description':a140_0x39a763(0x212)},{'name':'sql','type':a140_0x39a763(0x1fc),'description':a140_0x39a763(0x20e)},{'name':a140_0x39a763(0x1fe),'type':a140_0x39a763(0x1fc),'description':a140_0x39a763(0x1ed)}],async 'execute'(_0x42a9e9){const _0xb7645b=a140_0x39a763,_0x3135c6=_0x42a9e9['str']('file'),_0x3f6825=_0x42a9e9[_0xb7645b(0x1e6)](_0xb7645b(0x1f7));if(!_0x3135c6&&!_0x3f6825)throw CliErrors[_0xb7645b(0x1ef)]('file',_0xb7645b(0x1f3));let _0x340ca4;if(_0x3135c6){const _0x1d7f2f=resolve(process[_0xb7645b(0x20f)](),_0x3135c6);if(!existsSync(_0x1d7f2f))throw CliErrors[_0xb7645b(0x1fb)](_0xb7645b(0x1eb)+_0x1d7f2f);_0x340ca4=readFileSync(_0x1d7f2f,_0xb7645b(0x218));}else _0x340ca4=_0x3f6825;const _0x4e5697=validateSql(_0x340ca4),_0x229e6f={'valid':_0x4e5697[_0xb7645b(0x1fa)],'sqlType':_0x4e5697[_0xb7645b(0x1f1)][_0xb7645b(0x1f9)],'isSelectOnly':_0x4e5697[_0xb7645b(0x1f1)][_0xb7645b(0x20a)],'isDangerous':_0x4e5697[_0xb7645b(0x1f1)][_0xb7645b(0x214)],'tables':_0x4e5697['tables'],'parameters':_0x4e5697[_0xb7645b(0x216)],'message':_0x4e5697[_0xb7645b(0x1f8)]};_0x4e5697['sqlType'][_0xb7645b(0x1ee)]&&(_0x229e6f[_0xb7645b(0x1ee)]=_0x4e5697[_0xb7645b(0x1f1)][_0xb7645b(0x1ee)]);const _0x1a0e44=_0x42a9e9['str'](_0xb7645b(0x1fe));if(_0x1a0e44&&_0x4e5697[_0xb7645b(0x1fa)]){const _0x24ef61=_0x1a0e44[_0xb7645b(0x1e5)](',')[_0xb7645b(0x210)](_0x2ce634=>_0x2ce634['trim']())[_0xb7645b(0x1fd)](Boolean),_0x1b663=[],_0x1b3b5e=filterDbTableBackedDatasets(await listDatasets(_0x42a9e9['appCode'])),_0x4a1f94=new Map(_0x1b3b5e['map'](_0x2cfb2b=>[_0x2cfb2b[_0xb7645b(0x209)]?.[_0xb7645b(0x217)]?.[_0xb7645b(0x203)](),_0x2cfb2b]));for(const _0x3252cb of _0x4e5697[_0xb7645b(0x1e7)]){const _0x523f5c=_0x4a1f94['get'](_0x3252cb[_0xb7645b(0x203)]());!_0x523f5c&&_0x1b663[_0xb7645b(0x1f5)](_0xb7645b(0x20c)+_0x3252cb+_0xb7645b(0x201));}for(const _0x2d12f8 of _0x24ef61){let _0x32bef4;try{_0x32bef4=await getDatasetDetail(_0x2d12f8);}catch{_0x1b663[_0xb7645b(0x1f5)](_0xb7645b(0x1ff)+_0x2d12f8+'\x22\x20not\x20found\x20or\x20not\x20accessible');continue;}assertDatasetIsDbTableBacked(_0x32bef4,_0xb7645b(0x206));const _0x2219b5=Array['isArray'](_0x32bef4[_0xb7645b(0x1ea)])?_0x32bef4[_0xb7645b(0x1ea)]:[],_0x2120f7=new Set(_0x2219b5[_0xb7645b(0x210)](_0xa2fbba=>_0xa2fbba[_0xb7645b(0x215)]?.[_0xb7645b(0x203)]())),_0x1838a5=_0x32bef4[_0xb7645b(0x209)]?.[_0xb7645b(0x217)]||_0x32bef4[_0xb7645b(0x217)]||_0x2d12f8;_0x229e6f[_0xb7645b(0x1e8)+_0x1838a5]={'code':_0x2d12f8,'tableName':_0x1838a5,'fieldCount':_0x2120f7['size'],'fields':Array[_0xb7645b(0x1e4)](_0x2120f7)};}_0x1b663[_0xb7645b(0x1ec)]>0x0&&(_0x229e6f['schemaWarnings']=_0x1b663);}return{'ok':_0x4e5697[_0xb7645b(0x1fa)],'data':_0x229e6f,'message':_0x4e5697[_0xb7645b(0x1f8)]};}};
1
+ const a141_0x15c071=a141_0x13da;(function(_0x34f2da,_0x59efb2){const _0x57200b=a141_0x13da,_0xc4415d=_0x34f2da();while(!![]){try{const _0x23fa4d=-parseInt(_0x57200b(0x1aa))/0x1+parseInt(_0x57200b(0x1ca))/0x2+parseInt(_0x57200b(0x1ba))/0x3*(-parseInt(_0x57200b(0x1a5))/0x4)+-parseInt(_0x57200b(0x1cb))/0x5*(parseInt(_0x57200b(0x1bd))/0x6)+parseInt(_0x57200b(0x1ce))/0x7+parseInt(_0x57200b(0x1b3))/0x8*(-parseInt(_0x57200b(0x1b1))/0x9)+parseInt(_0x57200b(0x1b5))/0xa;if(_0x23fa4d===_0x59efb2)break;else _0xc4415d['push'](_0xc4415d['shift']());}catch(_0x5d4575){_0xc4415d['push'](_0xc4415d['shift']());}}}(a141_0x58f2,0x3ebb7));import{readFileSync,existsSync}from'node:fs';function a141_0x58f2(){const _0xc9f0f1=['name','tables','file','map','appCode','Provide\x20--file\x20or\x20--sql','parameters','reason','Comma-separated\x20dataset\x20codes\x20to\x20cross-check\x20table/column\x20names\x20against','604992rzQMEE','15qiAJYe','get','validate','2713557AGdgsy','Dataset\x20\x22','schemas','\x22\x20not\x20found\x20in\x20any\x20dataset','filter','trim','fields','tableName','sqlType','toLowerCase','164cvjiaF','push','from','dbtableConfig','flagMissing','4413yLxyAB','length','string','SQL\x20schema\x20validation','validation','type','utf-8','2007FLximh','Validate\x20SQL\x20content\x20without\x20saving\x20(type\x20detection,\x20parameter\x20extraction,\x20optional\x20schema\x20check)','12440Ruztzk','sql','4109710hfeNdt','isSelectOnly','str','isDangerous','read','28209XwVKGL','size','cwd','214932wMSzmH','valid','message','Inline\x20SQL\x20content\x20to\x20validate\x20(alternative\x20to\x20--file)'];a141_0x58f2=function(){return _0xc9f0f1;};return a141_0x58f2();}import{resolve}from'node:path';import{validateSql}from'../../core/sql-validator.js';import{getDatasetDetail,listDatasets}from'../../core/api-client.js';function a141_0x13da(_0x4897cd,_0x5042d0){_0x4897cd=_0x4897cd-0x1a3;const _0x58f23e=a141_0x58f2();let _0x13da9b=_0x58f23e[_0x4897cd];return _0x13da9b;}import{CliErrors}from'../../errors.js';import{assertDatasetIsDbTableBacked,filterDbTableBackedDatasets}from'../../commands/dataset/capability.js';export const sqlValidate={'service':'sql','command':a141_0x15c071(0x1cd),'description':a141_0x15c071(0x1b2),'risk':a141_0x15c071(0x1b9),'flags':[{'name':a141_0x15c071(0x1c3),'type':a141_0x15c071(0x1ac),'description':'Path\x20to\x20the\x20SQL\x20file\x20to\x20validate'},{'name':'sql','type':'string','description':a141_0x15c071(0x1c0)},{'name':a141_0x15c071(0x1d0),'type':'string','description':a141_0x15c071(0x1c9)}],async 'execute'(_0x5bf8c1){const _0x16359f=a141_0x15c071,_0x3bfeef=_0x5bf8c1[_0x16359f(0x1b7)](_0x16359f(0x1c3)),_0x333bb4=_0x5bf8c1[_0x16359f(0x1b7)](_0x16359f(0x1b4));if(!_0x3bfeef&&!_0x333bb4)throw CliErrors[_0x16359f(0x1a9)](_0x16359f(0x1c3),_0x16359f(0x1c6));let _0x18872a;if(_0x3bfeef){const _0x5aee38=resolve(process[_0x16359f(0x1bc)](),_0x3bfeef);if(!existsSync(_0x5aee38))throw CliErrors[_0x16359f(0x1ae)]('File\x20not\x20found:\x20'+_0x5aee38);_0x18872a=readFileSync(_0x5aee38,_0x16359f(0x1b0));}else _0x18872a=_0x333bb4;const _0x20c214=validateSql(_0x18872a),_0xec992b={'valid':_0x20c214[_0x16359f(0x1be)],'sqlType':_0x20c214[_0x16359f(0x1a3)][_0x16359f(0x1af)],'isSelectOnly':_0x20c214[_0x16359f(0x1a3)][_0x16359f(0x1b6)],'isDangerous':_0x20c214[_0x16359f(0x1a3)][_0x16359f(0x1b8)],'tables':_0x20c214[_0x16359f(0x1c2)],'parameters':_0x20c214[_0x16359f(0x1c7)],'message':_0x20c214[_0x16359f(0x1bf)]};_0x20c214[_0x16359f(0x1a3)][_0x16359f(0x1c8)]&&(_0xec992b[_0x16359f(0x1c8)]=_0x20c214[_0x16359f(0x1a3)]['reason']);const _0x1c5fba=_0x5bf8c1[_0x16359f(0x1b7)]('schemas');if(_0x1c5fba&&_0x20c214[_0x16359f(0x1be)]){const _0xb31585=_0x1c5fba['split'](',')[_0x16359f(0x1c4)](_0x1fdf2a=>_0x1fdf2a[_0x16359f(0x1d3)]())[_0x16359f(0x1d2)](Boolean),_0x5930d7=[],_0x4b01c1=filterDbTableBackedDatasets(await listDatasets(_0x5bf8c1[_0x16359f(0x1c5)])),_0x4b1191=new Map(_0x4b01c1[_0x16359f(0x1c4)](_0x58a9c5=>[_0x58a9c5[_0x16359f(0x1a8)]?.[_0x16359f(0x1d5)]?.[_0x16359f(0x1a4)](),_0x58a9c5]));for(const _0x340cda of _0x20c214['tables']){const _0x253d48=_0x4b1191[_0x16359f(0x1cc)](_0x340cda[_0x16359f(0x1a4)]());!_0x253d48&&_0x5930d7[_0x16359f(0x1a6)]('Table\x20\x22'+_0x340cda+_0x16359f(0x1d1));}for(const _0x3e63ca of _0xb31585){let _0x6bbae1;try{_0x6bbae1=await getDatasetDetail(_0x3e63ca);}catch{_0x5930d7[_0x16359f(0x1a6)](_0x16359f(0x1cf)+_0x3e63ca+'\x22\x20not\x20found\x20or\x20not\x20accessible');continue;}assertDatasetIsDbTableBacked(_0x6bbae1,_0x16359f(0x1ad));const _0x278e48=Array['isArray'](_0x6bbae1[_0x16359f(0x1d4)])?_0x6bbae1['fields']:[],_0x3843a2=new Set(_0x278e48[_0x16359f(0x1c4)](_0x1918b7=>_0x1918b7[_0x16359f(0x1c1)]?.[_0x16359f(0x1a4)]())),_0x2b38af=_0x6bbae1[_0x16359f(0x1a8)]?.['tableName']||_0x6bbae1['tableName']||_0x3e63ca;_0xec992b['schema:'+_0x2b38af]={'code':_0x3e63ca,'tableName':_0x2b38af,'fieldCount':_0x3843a2[_0x16359f(0x1bb)],'fields':Array[_0x16359f(0x1a7)](_0x3843a2)};}_0x5930d7[_0x16359f(0x1ab)]>0x0&&(_0xec992b['schemaWarnings']=_0x5930d7);}return{'ok':_0x20c214[_0x16359f(0x1be)],'data':_0xec992b,'message':_0x20c214[_0x16359f(0x1bf)]};}};
@@ -1 +1 @@
1
- function a141_0x2105(_0x4d2bdd,_0x4fe0b8){_0x4d2bdd=_0x4d2bdd-0x15c;const _0x5f4ec5=a141_0x5f4e();let _0x2105c4=_0x5f4ec5[_0x4d2bdd];return _0x2105c4;}const a141_0xb216f9=a141_0x2105;(function(_0x53260f,_0xd9530f){const _0xd45023=a141_0x2105,_0x557a83=_0x53260f();while(!![]){try{const _0x5deeaf=-parseInt(_0xd45023(0x175))/0x1+parseInt(_0xd45023(0x16c))/0x2*(parseInt(_0xd45023(0x165))/0x3)+parseInt(_0xd45023(0x16d))/0x4+-parseInt(_0xd45023(0x171))/0x5*(-parseInt(_0xd45023(0x167))/0x6)+-parseInt(_0xd45023(0x195))/0x7+parseInt(_0xd45023(0x18c))/0x8+-parseInt(_0xd45023(0x181))/0x9;if(_0x5deeaf===_0xd9530f)break;else _0x557a83['push'](_0x557a83['shift']());}catch(_0x21f35f){_0x557a83['push'](_0x557a83['shift']());}}}(a141_0x5f4e,0xf0e32));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';const WORKSPACE_USAGE=CLI_BIN_NAME+a141_0xb216f9(0x170),SAFE_PROFILE_KEYS=[a141_0xb216f9(0x185),a141_0xb216f9(0x17d),a141_0xb216f9(0x17b),'format','pageSize','riskLevel',a141_0xb216f9(0x16a)],workspaceFlags=[{'name':a141_0xb216f9(0x18a),'type':a141_0xb216f9(0x169),'description':a141_0xb216f9(0x17a)},{'name':a141_0xb216f9(0x185),'type':a141_0xb216f9(0x169),'description':'App\x20code\x20to\x20bind\x20to\x20this\x20workspace'},{'name':a141_0xb216f9(0x17d),'type':a141_0xb216f9(0x169),'description':a141_0xb216f9(0x180),'enum':[...RABETBASE_ENV_VALUES]},{'name':'apiDir','type':a141_0xb216f9(0x169),'description':a141_0xb216f9(0x15c)},{'name':a141_0xb216f9(0x166),'type':a141_0xb216f9(0x169),'description':a141_0xb216f9(0x160),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':'pageSize','type':a141_0xb216f9(0x173),'description':a141_0xb216f9(0x192)},{'name':a141_0xb216f9(0x183),'type':'string','description':a141_0xb216f9(0x16e),'enum':[...RISK_LEVEL_VALUES]},{'name':a141_0xb216f9(0x16a),'type':a141_0xb216f9(0x169),'description':a141_0xb216f9(0x16f)}];function isRecord(_0x5021e4){return!!_0x5021e4&&typeof _0x5021e4==='object'&&!Array['isArray'](_0x5021e4);}function assertValidAppcode(_0x248a85){const _0x239260=a141_0xb216f9,{valid:_0x7ad150,message:_0x52f2b0}=validateAppcode(_0x248a85);if(!_0x7ad150)throw CliErrors[_0x239260(0x182)](_0x239260(0x177)+_0x248a85,_0x52f2b0);}function sanitizeProfile(_0x3fed9e){if(!isRecord(_0x3fed9e))return{};const _0x4883a5={};for(const _0x4e5470 of SAFE_PROFILE_KEYS){if(_0x3fed9e[_0x4e5470]!==undefined)_0x4883a5[_0x4e5470]=_0x3fed9e[_0x4e5470];}return _0x4883a5;}function cloneProfile(_0x39a936){return isRecord(_0x39a936)?{..._0x39a936}:{};}function collectWorkspaceProfileOverrides(_0x356aa8){const _0x4b2c5d=a141_0xb216f9,_0x3e0661={},_0x2ce96e=_0x356aa8[_0x4b2c5d(0x194)](_0x4b2c5d(0x17d)),_0x114e0f=_0x356aa8[_0x4b2c5d(0x194)](_0x4b2c5d(0x17b)),_0x30fffd=_0x356aa8['str']('defaultFormat'),_0x44c478=_0x356aa8['flag']('pageSize'),_0x6d0efc=_0x356aa8['str'](_0x4b2c5d(0x183)),_0x5e8cbb=_0x356aa8['str']('locale');if(_0x2ce96e)_0x3e0661[_0x4b2c5d(0x17d)]=_0x2ce96e;if(_0x114e0f)_0x3e0661['apiDir']=_0x114e0f;if(_0x30fffd)_0x3e0661[_0x4b2c5d(0x16b)]=_0x30fffd;if(_0x44c478!==undefined&&_0x44c478!=='')_0x3e0661[_0x4b2c5d(0x15d)]=Number(_0x44c478);if(_0x6d0efc)_0x3e0661[_0x4b2c5d(0x183)]=_0x6d0efc;if(_0x5e8cbb)_0x3e0661[_0x4b2c5d(0x16a)]=_0x5e8cbb;return _0x3e0661;}async function validateWorkspaceArgs(_0x37d6fb){const _0x3427f7=a141_0xb216f9,_0x33a23d=_0x37d6fb[_0x3427f7(0x194)]('app')['trim'](),_0x35cd12=_0x37d6fb[_0x3427f7(0x194)]('appcode')[_0x3427f7(0x188)]();if(!_0x33a23d&&!_0x35cd12)throw CliErrors['validation'](_0x3427f7(0x179),'Use\x20`'+CLI_BIN_NAME+_0x3427f7(0x176)+CLI_BIN_NAME+_0x3427f7(0x164));if(_0x35cd12)assertValidAppcode(_0x35cd12);}function resolveKnownApps(){const _0x3bc994=a141_0xb216f9,{config:_0x59faf7,layers:_0x20a56a}=readRawConfigWithLayers(),_0xc7b2a5=isRecord(_0x59faf7[_0x3bc994(0x17f)])?_0x59faf7[_0x3bc994(0x17f)]:{},_0x95ad1a=isRecord(_0x20a56a[_0x3bc994(0x174)][_0x3bc994(0x17f)])?_0x20a56a[_0x3bc994(0x174)]['apps']:{};return{..._0x95ad1a,..._0xc7b2a5};}function a141_0x5f4e(){const _0x105c76=['1708598uxTYuJ','1376000wwMcnh','Risk\x20level\x20for\x20this\x20workspace\x20app\x20profile','Locale\x20for\x20this\x20workspace\x20app\x20profile','\x20workspace\x20<init|use>\x20--app\x20<name>\x20[--appcode\x20<code>]','5381355tVdinF','Pass\x20--appcode\x20<code>,\x20or\x20choose\x20one\x20of:\x20','number','globalConfig','242087NYCyLQ','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20`','Invalid\x20appcode:\x20','workspace.','Missing\x20workspace\x20app\x20selector.','App\x20profile\x20name\x20to\x20use\x20in\x20this\x20workspace','apiDir','project','env','keys','apps','Target\x20environment','5864580QtmMQQ','validation','riskLevel','\x20workspace\x20','appcode','defaultApp','initialized','trim','write','app','.\x20Credentials:\x20not\x20written.','102784HUgJHm','\x20--app\x20','init','Use\x20`','length','workspace','Default\x20page\x20size\x20for\x20this\x20workspace\x20app\x20profile','\x22\x20not\x20found.','str','2849259OYQdiS','API\x20directory\x20path\x20for\x20this\x20workspace\x20app\x20profile','pageSize','Initialize\x20the\x20current\x20workspace\x20app\x20binding','join','Default\x20output\x20format\x20for\x20this\x20workspace\x20app\x20profile','use','Workspace\x20',').\x20Config:\x20','\x20workspace\x20use\x20--app\x20<name>`.','3gjuqOm','defaultFormat','6iIqNEe','App\x20\x22','string','locale','format'];a141_0x5f4e=function(){return _0x105c76;};return a141_0x5f4e();}async function configureWorkspace(_0x5d24a7,_0xf75894){const _0x2ccc76=a141_0xb216f9,_0x255b1b=_0x5d24a7[_0x2ccc76(0x194)]('app')[_0x2ccc76(0x188)](),_0x35dce=_0x5d24a7[_0x2ccc76(0x194)](_0x2ccc76(0x185))[_0x2ccc76(0x188)](),_0x98655d=_0x255b1b||_0x35dce;if(!_0x98655d)throw CliErrors[_0x2ccc76(0x182)](_0x2ccc76(0x179),_0x2ccc76(0x18f)+CLI_BIN_NAME+_0x2ccc76(0x176)+CLI_BIN_NAME+'\x20workspace\x20use\x20--app\x20<name>`.');if(_0x35dce)assertValidAppcode(_0x35dce);const _0x2937d6=resolveWriteConfigPath(_0x2ccc76(0x17c)),_0x4281cd=readConfigFile(_0x2937d6),_0x44759c=resolveKnownApps(),_0x26cb31=isRecord(_0x4281cd[_0x2ccc76(0x17f)])?{..._0x4281cd[_0x2ccc76(0x17f)]}:{},_0x3c475d=cloneProfile(_0x26cb31[_0x98655d]),_0x17606c=sanitizeProfile(_0x44759c[_0x98655d]),_0xc6da53=_0x35dce?{}:_0x17606c,_0x2b42e4=_0x35dce||_0xc6da53[_0x2ccc76(0x185)];if(!_0x2b42e4){const _0x31053e=Object[_0x2ccc76(0x17e)](_0x44759c),_0x5edc50=_0x31053e[_0x2ccc76(0x190)]===0x0?_0x2ccc76(0x18f)+CLI_BIN_NAME+_0x2ccc76(0x184)+_0xf75894+_0x2ccc76(0x18d)+_0x98655d+'\x20--appcode\x20<code>`.':_0x2ccc76(0x172)+_0x31053e[_0x2ccc76(0x15f)](',\x20');throw CliErrors['validation'](_0x2ccc76(0x168)+_0x98655d+_0x2ccc76(0x193),_0x5edc50);}assertValidAppcode(String(_0x2b42e4));const _0x1d58d7={..._0xc6da53,..._0x3c475d,'appcode':String(_0x2b42e4),...collectWorkspaceProfileOverrides(_0x5d24a7)};return _0x26cb31[_0x98655d]=_0x1d58d7,_0x4281cd[_0x2ccc76(0x17f)]=_0x26cb31,_0x4281cd[_0x2ccc76(0x186)]=_0x98655d,delete _0x4281cd[_0x2ccc76(0x185)],delete _0x4281cd[_0x2ccc76(0x18a)],_0x1d58d7['env']&&(_0x4281cd[_0x2ccc76(0x17d)]=_0x1d58d7[_0x2ccc76(0x17d)]),writeConfigFile(_0x2937d6,_0x4281cd),{'ok':!![],'message':_0x2ccc76(0x162)+(_0xf75894===_0x2ccc76(0x18e)?_0x2ccc76(0x187):'updated')+':\x20'+_0x98655d+'\x20(appcode:\x20'+_0x1d58d7[_0x2ccc76(0x185)]+_0x2ccc76(0x163)+_0x2937d6+_0x2ccc76(0x18b),'data':{'operation':_0x2ccc76(0x178)+_0xf75894,'configPath':_0x2937d6,'app':_0x98655d,'appcode':_0x1d58d7[_0x2ccc76(0x185)],'env':_0x1d58d7[_0x2ccc76(0x17d)]??null,'credentialsWritten':![]}};}const workspaceInitDefinition={'service':a141_0xb216f9(0x191),'command':a141_0xb216f9(0x18e),'description':a141_0xb216f9(0x15e),'risk':a141_0xb216f9(0x189),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x2623ec=>configureWorkspace(_0x2623ec,a141_0xb216f9(0x18e))},workspaceUseDefinition={'service':a141_0xb216f9(0x191),'command':a141_0xb216f9(0x161),'description':'Switch\x20the\x20current\x20workspace\x20app\x20binding','risk':a141_0xb216f9(0x189),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x5358a2=>configureWorkspace(_0x5358a2,'use')};export const workspaceDefinitions=[workspaceInitDefinition,workspaceUseDefinition];export{WORKSPACE_USAGE};
1
+ const a142_0x57ef23=a142_0x4a3f;(function(_0x2f90f0,_0x172328){const _0x3a7d02=a142_0x4a3f,_0x20c4ce=_0x2f90f0();while(!![]){try{const _0x46e57d=parseInt(_0x3a7d02(0x21e))/0x1*(-parseInt(_0x3a7d02(0x1ef))/0x2)+parseInt(_0x3a7d02(0x1f5))/0x3*(parseInt(_0x3a7d02(0x1e3))/0x4)+-parseInt(_0x3a7d02(0x201))/0x5*(parseInt(_0x3a7d02(0x211))/0x6)+parseInt(_0x3a7d02(0x20f))/0x7+parseInt(_0x3a7d02(0x1e1))/0x8*(parseInt(_0x3a7d02(0x21d))/0x9)+-parseInt(_0x3a7d02(0x203))/0xa+parseInt(_0x3a7d02(0x1fc))/0xb*(parseInt(_0x3a7d02(0x216))/0xc);if(_0x46e57d===_0x172328)break;else _0x20c4ce['push'](_0x20c4ce['shift']());}catch(_0x39bbc9){_0x20c4ce['push'](_0x20c4ce['shift']());}}}(a142_0x3caa,0x9a532));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';const WORKSPACE_USAGE=CLI_BIN_NAME+a142_0x57ef23(0x1e6),SAFE_PROFILE_KEYS=[a142_0x57ef23(0x213),a142_0x57ef23(0x1eb),'apiDir',a142_0x57ef23(0x1e4),a142_0x57ef23(0x1f0),a142_0x57ef23(0x1f9),a142_0x57ef23(0x1f8)],workspaceFlags=[{'name':'app','type':a142_0x57ef23(0x1e9),'description':'App\x20profile\x20name\x20to\x20use\x20in\x20this\x20workspace'},{'name':'appcode','type':'string','description':a142_0x57ef23(0x20c)},{'name':'env','type':a142_0x57ef23(0x1e9),'description':a142_0x57ef23(0x205),'enum':[...RABETBASE_ENV_VALUES]},{'name':a142_0x57ef23(0x218),'type':'string','description':a142_0x57ef23(0x1ed)},{'name':a142_0x57ef23(0x1f3),'type':'string','description':'Default\x20output\x20format\x20for\x20this\x20workspace\x20app\x20profile','enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':a142_0x57ef23(0x1f0),'type':a142_0x57ef23(0x219),'description':a142_0x57ef23(0x212)},{'name':'riskLevel','type':a142_0x57ef23(0x1e9),'description':a142_0x57ef23(0x20e),'enum':[...RISK_LEVEL_VALUES]},{'name':a142_0x57ef23(0x1f8),'type':'string','description':a142_0x57ef23(0x217)}];function isRecord(_0x5cf2f9){const _0x23473e=a142_0x57ef23;return!!_0x5cf2f9&&typeof _0x5cf2f9===_0x23473e(0x1f2)&&!Array[_0x23473e(0x1fa)](_0x5cf2f9);}function assertValidAppcode(_0x1ed3d8){const _0x35e60a=a142_0x57ef23,{valid:_0xcc44f4,message:_0x334586}=validateAppcode(_0x1ed3d8);if(!_0xcc44f4)throw CliErrors['validation'](_0x35e60a(0x202)+_0x1ed3d8,_0x334586);}function sanitizeProfile(_0x2fe367){if(!isRecord(_0x2fe367))return{};const _0x445bac={};for(const _0x52a614 of SAFE_PROFILE_KEYS){if(_0x2fe367[_0x52a614]!==undefined)_0x445bac[_0x52a614]=_0x2fe367[_0x52a614];}return _0x445bac;}function cloneProfile(_0x357e84){return isRecord(_0x357e84)?{..._0x357e84}:{};}function a142_0x3caa(){const _0x3375fb=['apps','Risk\x20level\x20for\x20this\x20workspace\x20app\x20profile','1674701ISVBiC','str','121842OfrMgy','Default\x20page\x20size\x20for\x20this\x20workspace\x20app\x20profile','appcode','Initialize\x20the\x20current\x20workspace\x20app\x20binding','Use\x20`','18300FSgrGB','Locale\x20for\x20this\x20workspace\x20app\x20profile','apiDir','number','\x20workspace\x20use\x20--app\x20<name>`.','Pass\x20--appcode\x20<code>,\x20or\x20choose\x20one\x20of:\x20','initialized','4536423YoesTY','1ghsyIV','16MXElnR','write','2960wManLI','format','\x20--app\x20','\x20workspace\x20<init|use>\x20--app\x20<name>\x20[--appcode\x20<code>]','join','\x22\x20not\x20found.','string',').\x20Config:\x20','env','init','API\x20directory\x20path\x20for\x20this\x20workspace\x20app\x20profile','project','747038TzEokJ','pageSize','Switch\x20the\x20current\x20workspace\x20app\x20binding','object','defaultFormat','trim','1527oXZBij','globalConfig','validation','locale','riskLevel','isArray','Workspace\x20','4147zCcnhk','\x20workspace\x20','\x20--appcode\x20<code>`.','workspace','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20`','35UKiTVg','Invalid\x20appcode:\x20','10511400ZwrJju','Missing\x20workspace\x20app\x20selector.','Target\x20environment','app','use','defaultApp','updated','workspace.','flag','App\x20code\x20to\x20bind\x20to\x20this\x20workspace'];a142_0x3caa=function(){return _0x3375fb;};return a142_0x3caa();}function collectWorkspaceProfileOverrides(_0x19e6ef){const _0x4c4e8e=a142_0x57ef23,_0x5140d7={},_0xa5478e=_0x19e6ef[_0x4c4e8e(0x210)]('env'),_0x5ebb11=_0x19e6ef[_0x4c4e8e(0x210)](_0x4c4e8e(0x218)),_0x150a80=_0x19e6ef[_0x4c4e8e(0x210)]('defaultFormat'),_0x483386=_0x19e6ef[_0x4c4e8e(0x20b)](_0x4c4e8e(0x1f0)),_0x4861ff=_0x19e6ef['str']('riskLevel'),_0x1b7406=_0x19e6ef[_0x4c4e8e(0x210)]('locale');if(_0xa5478e)_0x5140d7[_0x4c4e8e(0x1eb)]=_0xa5478e;if(_0x5ebb11)_0x5140d7['apiDir']=_0x5ebb11;if(_0x150a80)_0x5140d7[_0x4c4e8e(0x1e4)]=_0x150a80;if(_0x483386!==undefined&&_0x483386!=='')_0x5140d7[_0x4c4e8e(0x1f0)]=Number(_0x483386);if(_0x4861ff)_0x5140d7[_0x4c4e8e(0x1f9)]=_0x4861ff;if(_0x1b7406)_0x5140d7[_0x4c4e8e(0x1f8)]=_0x1b7406;return _0x5140d7;}async function validateWorkspaceArgs(_0x3bf734){const _0x5c3d7d=a142_0x57ef23,_0x2a5926=_0x3bf734[_0x5c3d7d(0x210)](_0x5c3d7d(0x206))[_0x5c3d7d(0x1f4)](),_0x391c44=_0x3bf734['str'](_0x5c3d7d(0x213))[_0x5c3d7d(0x1f4)]();if(!_0x2a5926&&!_0x391c44)throw CliErrors[_0x5c3d7d(0x1f7)]('Missing\x20workspace\x20app\x20selector.','Use\x20`'+CLI_BIN_NAME+_0x5c3d7d(0x200)+CLI_BIN_NAME+'\x20workspace\x20use\x20--app\x20<name>`.');if(_0x391c44)assertValidAppcode(_0x391c44);}function a142_0x4a3f(_0x580e91,_0x13eaee){_0x580e91=_0x580e91-0x1e1;const _0x3caa7d=a142_0x3caa();let _0x4a3fea=_0x3caa7d[_0x580e91];return _0x4a3fea;}function resolveKnownApps(){const _0x2a2a5b=a142_0x57ef23,{config:_0x9071f,layers:_0x114c36}=readRawConfigWithLayers(),_0x1ff8fe=isRecord(_0x9071f[_0x2a2a5b(0x20d)])?_0x9071f[_0x2a2a5b(0x20d)]:{},_0x33999b=isRecord(_0x114c36[_0x2a2a5b(0x1f6)][_0x2a2a5b(0x20d)])?_0x114c36[_0x2a2a5b(0x1f6)]['apps']:{};return{..._0x33999b,..._0x1ff8fe};}async function configureWorkspace(_0x16b07e,_0x22d1c6){const _0x574425=a142_0x57ef23,_0x37f9b9=_0x16b07e[_0x574425(0x210)](_0x574425(0x206))[_0x574425(0x1f4)](),_0x1eb282=_0x16b07e[_0x574425(0x210)](_0x574425(0x213))[_0x574425(0x1f4)](),_0x42077a=_0x37f9b9||_0x1eb282;if(!_0x42077a)throw CliErrors['validation'](_0x574425(0x204),_0x574425(0x215)+CLI_BIN_NAME+_0x574425(0x200)+CLI_BIN_NAME+_0x574425(0x21a));if(_0x1eb282)assertValidAppcode(_0x1eb282);const _0x116120=resolveWriteConfigPath(_0x574425(0x1ee)),_0x5f3f1d=readConfigFile(_0x116120),_0x7d72a3=resolveKnownApps(),_0x21843f=isRecord(_0x5f3f1d[_0x574425(0x20d)])?{..._0x5f3f1d['apps']}:{},_0x456e8c=cloneProfile(_0x21843f[_0x42077a]),_0x186e29=sanitizeProfile(_0x7d72a3[_0x42077a]),_0x545f14=_0x1eb282?{}:_0x186e29,_0x356ea1=_0x1eb282||_0x545f14['appcode'];if(!_0x356ea1){const _0xf1c4e=Object['keys'](_0x7d72a3),_0x5a06a=_0xf1c4e['length']===0x0?_0x574425(0x215)+CLI_BIN_NAME+_0x574425(0x1fd)+_0x22d1c6+_0x574425(0x1e5)+_0x42077a+_0x574425(0x1fe):_0x574425(0x21b)+_0xf1c4e[_0x574425(0x1e7)](',\x20');throw CliErrors[_0x574425(0x1f7)]('App\x20\x22'+_0x42077a+_0x574425(0x1e8),_0x5a06a);}assertValidAppcode(String(_0x356ea1));const _0x1998f0={..._0x545f14,..._0x456e8c,'appcode':String(_0x356ea1),...collectWorkspaceProfileOverrides(_0x16b07e)};return _0x21843f[_0x42077a]=_0x1998f0,_0x5f3f1d[_0x574425(0x20d)]=_0x21843f,_0x5f3f1d[_0x574425(0x208)]=_0x42077a,delete _0x5f3f1d[_0x574425(0x213)],delete _0x5f3f1d[_0x574425(0x206)],_0x1998f0[_0x574425(0x1eb)]&&(_0x5f3f1d[_0x574425(0x1eb)]=_0x1998f0[_0x574425(0x1eb)]),writeConfigFile(_0x116120,_0x5f3f1d),{'ok':!![],'message':_0x574425(0x1fb)+(_0x22d1c6===_0x574425(0x1ec)?_0x574425(0x21c):_0x574425(0x209))+':\x20'+_0x42077a+'\x20(appcode:\x20'+_0x1998f0['appcode']+_0x574425(0x1ea)+_0x116120+'.\x20Credentials:\x20not\x20written.','data':{'operation':_0x574425(0x20a)+_0x22d1c6,'configPath':_0x116120,'app':_0x42077a,'appcode':_0x1998f0[_0x574425(0x213)],'env':_0x1998f0['env']??null,'credentialsWritten':![]}};}const workspaceInitDefinition={'service':a142_0x57ef23(0x1ff),'command':a142_0x57ef23(0x1ec),'description':a142_0x57ef23(0x214),'risk':a142_0x57ef23(0x1e2),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x308971=>configureWorkspace(_0x308971,a142_0x57ef23(0x1ec))},workspaceUseDefinition={'service':'workspace','command':'use','description':a142_0x57ef23(0x1f1),'risk':'write','requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x1e889d=>configureWorkspace(_0x1e889d,a142_0x57ef23(0x207))};export const workspaceDefinitions=[workspaceInitDefinition,workspaceUseDefinition];export{WORKSPACE_USAGE};
@@ -1 +1 @@
1
- function a142_0x1823(){const _0x33f8e5=['Default\x20page\x20size','entries','820011CBcoJl','riskLevel','8iDqcMO','apiDir','length','Risk\x20level','en-US','trim','API\x20directory\x20path','Target\x20environment','zh-CN','keys','Access\x20key','string','pageSize','format','78756mFTCrA','72XYcFbA','Auth\x20cookie','apps','app','cookie','21141790MHcWgn','Locale','11CUuWOy','join','inherit','4apGTvg','defaultFormat','appcode','defaultApp','has','env','Config\x20key\x20(','2370195xtslHL','6947290gPyjHr','accessKey','toLowerCase','6263940fFnmrJ','4443005xYSKBB','number','locale'];a142_0x1823=function(){return _0x33f8e5;};return a142_0x1823();}const a142_0x488946=a142_0x2347;(function(_0x1c175a,_0xa52bd4){const _0x5be24d=a142_0x2347,_0x384207=_0x1c175a();while(!![]){try{const _0x40185b=parseInt(_0x5be24d(0x147))/0x1+parseInt(_0x5be24d(0x158))/0x2*(parseInt(_0x5be24d(0x157))/0x3)+-parseInt(_0x5be24d(0x162))/0x4*(parseInt(_0x5be24d(0x142))/0x5)+parseInt(_0x5be24d(0x141))/0x6+parseInt(_0x5be24d(0x13e))/0x7+-parseInt(_0x5be24d(0x149))/0x8*(parseInt(_0x5be24d(0x169))/0x9)+-parseInt(_0x5be24d(0x15d))/0xa*(parseInt(_0x5be24d(0x15f))/0xb);if(_0x40185b===_0xa52bd4)break;else _0x384207['push'](_0x384207['shift']());}catch(_0x1d62db){_0x384207['push'](_0x384207['shift']());}}}(a142_0x1823,0x82b70));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=[a142_0x488946(0x15c),a142_0x488946(0x13f),a142_0x488946(0x144),a142_0x488946(0x156),a142_0x488946(0x148)];export const TOP_LEVEL_CONFIG_KEYS=new Set(['appcode',a142_0x488946(0x167),a142_0x488946(0x144),a142_0x488946(0x156),a142_0x488946(0x15c),a142_0x488946(0x13f),a142_0x488946(0x14a)]);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES]};function a142_0x2347(_0x5e3359,_0x1b7d72){_0x5e3359=_0x5e3359-0x13e;const _0x182393=a142_0x1823();let _0x2347f0=_0x182393[_0x5e3359];return _0x2347f0;}export function formatConfigKeyList(_0x3856c3){const _0x34ff78=a142_0x488946;return[..._0x3856c3][_0x34ff78(0x160)](',\x20');}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0x5f1039){const _0x65312=a142_0x488946;return TOP_LEVEL_CONFIG_KEYS[_0x65312(0x166)](_0x5f1039);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x2cd58a=a142_0x488946;return _0x2cd58a(0x168)+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'env':'env','apiDir':'apiDir','cookie':a142_0x488946(0x15c),'accessKey':a142_0x488946(0x13f),'defaultFormat':'format','pageSize':a142_0x488946(0x155),'riskLevel':a142_0x488946(0x148),'locale':a142_0x488946(0x144)};export function getAppProfileFlagDefs(){const _0x3e3701=a142_0x488946;return[{'name':_0x3e3701(0x167),'type':_0x3e3701(0x154),'description':_0x3e3701(0x150),'enum':[...RABETBASE_ENV_VALUES]},{'name':_0x3e3701(0x14a),'type':_0x3e3701(0x154),'description':_0x3e3701(0x14f)},{'name':_0x3e3701(0x15c),'type':_0x3e3701(0x154),'description':_0x3e3701(0x159),'hidden':!![]},{'name':_0x3e3701(0x13f),'type':_0x3e3701(0x154),'description':_0x3e3701(0x153),'hidden':!![]},{'name':_0x3e3701(0x163),'type':_0x3e3701(0x154),'description':'Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':_0x3e3701(0x155),'type':_0x3e3701(0x143),'description':_0x3e3701(0x145)},{'name':_0x3e3701(0x148),'type':'string','description':_0x3e3701(0x14c),'enum':[...RISK_LEVEL_VALUES]},{'name':'locale','type':_0x3e3701(0x154),'description':_0x3e3701(0x15e)}];}export function collectAppProfileOverrides(_0x59e2b7){const _0x408e6d=a142_0x488946,_0x226ed1={};for(const [_0x5be8e3,_0x4ecdac]of Object[_0x408e6d(0x146)](APP_PROFILE_FLAG_KEY_MAP)){const _0x51eb11=_0x59e2b7(_0x5be8e3);if(!_0x51eb11)continue;_0x226ed1[_0x4ecdac]=_0x4ecdac===_0x408e6d(0x155)?Number(_0x51eb11):_0x51eb11;}return _0x226ed1;}export function buildAppProfileListFields(_0x4649ec){const _0x3be223=a142_0x488946;return{'env':_0x4649ec['env']??null,'apiDir':_0x4649ec[_0x3be223(0x14a)]??null,'hasCookie':!!_0x4649ec[_0x3be223(0x15c)],'hasAccessKey':!!_0x4649ec[_0x3be223(0x13f)],'format':_0x4649ec['format']??null,'pageSize':_0x4649ec[_0x3be223(0x155)]??null,'riskLevel':_0x4649ec[_0x3be223(0x148)]??null,'locale':_0x4649ec[_0x3be223(0x144)]??null};}export function buildAppDoctorFields(_0xa3f279,_0x56aa48){const _0x346c5a=a142_0x488946;return{'env':{'value':_0xa3f279[_0x346c5a(0x167)]||_0x56aa48[_0x346c5a(0x167)],'source':_0xa3f279[_0x346c5a(0x167)]?_0x346c5a(0x15b):'inherit'},'apiDir':{'value':_0xa3f279[_0x346c5a(0x14a)]||_0x56aa48['apiDir'],'source':_0xa3f279[_0x346c5a(0x14a)]?'app':_0x346c5a(0x161)},'cookie':{'value':_0xa3f279['cookie']||_0x56aa48['cookie'],'source':_0xa3f279['cookie']?_0x346c5a(0x15b):_0x346c5a(0x161)},'accessKey':{'value':_0xa3f279[_0x346c5a(0x13f)]||_0x56aa48[_0x346c5a(0x13f)],'source':_0xa3f279[_0x346c5a(0x13f)]?_0x346c5a(0x15b):_0x346c5a(0x161)}};}export function buildCanonicalAppConfig(_0x370230,_0x20a9e6){const _0xc9babb=a142_0x488946,_0x13ed66=_0x370230['map'](_0x268e4a=>String(_0x268e4a||'')[_0xc9babb(0x14e)]())['filter'](Boolean);if(_0x13ed66[_0xc9babb(0x14b)]===0x0)return{};const _0x41eaa6={};for(const _0x2ec31e of _0x13ed66){_0x41eaa6[_0x2ec31e]=_0x20a9e6?{'appcode':_0x2ec31e,'env':_0x20a9e6}:{'appcode':_0x2ec31e};}return{'apps':_0x41eaa6,'defaultApp':_0x13ed66[0x0]};}export function buildCanonicalProjectConfig(_0x2a7928,_0x1e662f){const _0x2763d7=a142_0x488946,{appCodes:appCodes=[],env:_0x3a7ad3,metadata:_0x175ba5}=_0x1e662f,_0x49416c={..._0x2a7928,..._0x175ba5||{}};delete _0x49416c[_0x2763d7(0x164)],delete _0x49416c['app'];if(_0x3a7ad3)_0x49416c[_0x2763d7(0x167)]=_0x3a7ad3;else!_0x49416c[_0x2763d7(0x167)]&&(_0x49416c[_0x2763d7(0x167)]=DEFAULT_CONFIG_VALUES[_0x2763d7(0x167)]);const _0x101a05=buildCanonicalAppConfig(appCodes,_0x49416c[_0x2763d7(0x167)]);return Object[_0x2763d7(0x152)](_0x101a05)[_0x2763d7(0x14b)]>0x0&&(_0x49416c[_0x2763d7(0x15a)]=_0x101a05[_0x2763d7(0x15a)],_0x49416c[_0x2763d7(0x165)]=_0x101a05['defaultApp']),_0x49416c;}const LOCALE_MAP={'zh':a142_0x488946(0x151),'zh-cn':a142_0x488946(0x151),'zh_cn':a142_0x488946(0x151),'en':a142_0x488946(0x14d),'en-us':a142_0x488946(0x14d),'en_us':a142_0x488946(0x14d)};export function normalizeLocale(_0x12d63a){const _0xfabec0=a142_0x488946;if(!_0x12d63a)return null;return LOCALE_MAP[_0x12d63a[_0xfabec0(0x140)]()]??null;}
1
+ const a143_0x5ee6ca=a143_0x3d84;(function(_0x1af14b,_0x2f086c){const _0x462af0=a143_0x3d84,_0x245589=_0x1af14b();while(!![]){try{const _0x355181=-parseInt(_0x462af0(0x171))/0x1+-parseInt(_0x462af0(0x17b))/0x2+parseInt(_0x462af0(0x182))/0x3*(-parseInt(_0x462af0(0x184))/0x4)+parseInt(_0x462af0(0x18f))/0x5+parseInt(_0x462af0(0x191))/0x6+parseInt(_0x462af0(0x17d))/0x7+-parseInt(_0x462af0(0x170))/0x8*(-parseInt(_0x462af0(0x16f))/0x9);if(_0x355181===_0x2f086c)break;else _0x245589['push'](_0x245589['shift']());}catch(_0x5bb737){_0x245589['push'](_0x245589['shift']());}}}(a143_0x269d,0xb7da2));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=[a143_0x5ee6ca(0x176),a143_0x5ee6ca(0x18a),a143_0x5ee6ca(0x189),'format',a143_0x5ee6ca(0x172)];export const TOP_LEVEL_CONFIG_KEYS=new Set([a143_0x5ee6ca(0x181),'env',a143_0x5ee6ca(0x189),a143_0x5ee6ca(0x188),a143_0x5ee6ca(0x176),'accessKey','apiDir']);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES]};export function formatConfigKeyList(_0x2f9a2c){const _0x29cecf=a143_0x5ee6ca;return[..._0x2f9a2c][_0x29cecf(0x18c)](',\x20');}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0x571543){return TOP_LEVEL_CONFIG_KEYS['has'](_0x571543);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){return'Config\x20key\x20('+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'env':a143_0x5ee6ca(0x17c),'apiDir':a143_0x5ee6ca(0x190),'cookie':a143_0x5ee6ca(0x176),'accessKey':a143_0x5ee6ca(0x18a),'defaultFormat':a143_0x5ee6ca(0x188),'pageSize':'pageSize','riskLevel':a143_0x5ee6ca(0x172),'locale':'locale'};function a143_0x3d84(_0x36b6cc,_0x26627c){_0x36b6cc=_0x36b6cc-0x16f;const _0x269d9d=a143_0x269d();let _0x3d84ce=_0x269d9d[_0x36b6cc];return _0x3d84ce;}export function getAppProfileFlagDefs(){const _0x2f3d1f=a143_0x5ee6ca;return[{'name':_0x2f3d1f(0x17c),'type':_0x2f3d1f(0x187),'description':'Target\x20environment','enum':[...RABETBASE_ENV_VALUES]},{'name':'apiDir','type':_0x2f3d1f(0x187),'description':_0x2f3d1f(0x18e)},{'name':'cookie','type':'string','description':'Auth\x20cookie','hidden':!![]},{'name':_0x2f3d1f(0x18a),'type':_0x2f3d1f(0x187),'description':'Access\x20key','hidden':!![]},{'name':'defaultFormat','type':_0x2f3d1f(0x187),'description':_0x2f3d1f(0x179),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':'pageSize','type':_0x2f3d1f(0x178),'description':'Default\x20page\x20size'},{'name':'riskLevel','type':_0x2f3d1f(0x187),'description':'Risk\x20level','enum':[...RISK_LEVEL_VALUES]},{'name':_0x2f3d1f(0x189),'type':_0x2f3d1f(0x187),'description':_0x2f3d1f(0x185)}];}export function collectAppProfileOverrides(_0x408018){const _0x93348e=a143_0x5ee6ca,_0x166cb1={};for(const [_0x3ee1dd,_0x58aeb6]of Object[_0x93348e(0x17e)](APP_PROFILE_FLAG_KEY_MAP)){const _0x1f43c0=_0x408018(_0x3ee1dd);if(!_0x1f43c0)continue;_0x166cb1[_0x58aeb6]=_0x58aeb6===_0x93348e(0x186)?Number(_0x1f43c0):_0x1f43c0;}return _0x166cb1;}export function buildAppProfileListFields(_0x3f32d3){const _0x4558c3=a143_0x5ee6ca;return{'env':_0x3f32d3[_0x4558c3(0x17c)]??null,'apiDir':_0x3f32d3[_0x4558c3(0x190)]??null,'hasCookie':!!_0x3f32d3['cookie'],'hasAccessKey':!!_0x3f32d3[_0x4558c3(0x18a)],'format':_0x3f32d3[_0x4558c3(0x188)]??null,'pageSize':_0x3f32d3['pageSize']??null,'riskLevel':_0x3f32d3[_0x4558c3(0x172)]??null,'locale':_0x3f32d3['locale']??null};}export function buildAppDoctorFields(_0x5e4440,_0x258ff1){const _0x29c742=a143_0x5ee6ca;return{'env':{'value':_0x5e4440['env']||_0x258ff1['env'],'source':_0x5e4440[_0x29c742(0x17c)]?'app':_0x29c742(0x175)},'apiDir':{'value':_0x5e4440[_0x29c742(0x190)]||_0x258ff1[_0x29c742(0x190)],'source':_0x5e4440[_0x29c742(0x190)]?_0x29c742(0x183):_0x29c742(0x175)},'cookie':{'value':_0x5e4440[_0x29c742(0x176)]||_0x258ff1[_0x29c742(0x176)],'source':_0x5e4440[_0x29c742(0x176)]?_0x29c742(0x183):'inherit'},'accessKey':{'value':_0x5e4440[_0x29c742(0x18a)]||_0x258ff1[_0x29c742(0x18a)],'source':_0x5e4440['accessKey']?_0x29c742(0x183):_0x29c742(0x175)}};}function a143_0x269d(){const _0x344db6=['3tTjtgm','app','3459316OFDKjl','Locale','pageSize','string','format','locale','accessKey','defaultApp','join','toLowerCase','API\x20directory\x20path','812020iLymVh','apiDir','2877474yjPRIY','keys','81wUJzmt','1136696KxPzBZ','1348434oYyeVU','riskLevel','filter','trim','inherit','cookie','length','number','Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','map','509950xDUNMe','env','9103710RHiHEP','entries','zh-CN','en-US','appcode'];a143_0x269d=function(){return _0x344db6;};return a143_0x269d();}export function buildCanonicalAppConfig(_0x5b6b58,_0x8d21f7){const _0x13067d=a143_0x5ee6ca,_0x46cb61=_0x5b6b58[_0x13067d(0x17a)](_0x35a615=>String(_0x35a615||'')[_0x13067d(0x174)]())[_0x13067d(0x173)](Boolean);if(_0x46cb61[_0x13067d(0x177)]===0x0)return{};const _0x6e65e3={};for(const _0xd0731a of _0x46cb61){_0x6e65e3[_0xd0731a]=_0x8d21f7?{'appcode':_0xd0731a,'env':_0x8d21f7}:{'appcode':_0xd0731a};}return{'apps':_0x6e65e3,'defaultApp':_0x46cb61[0x0]};}export function buildCanonicalProjectConfig(_0x41eb4c,_0x589b29){const _0x3af2e5=a143_0x5ee6ca,{appCodes:appCodes=[],env:_0x1586c6,metadata:_0x2453e1}=_0x589b29,_0x655726={..._0x41eb4c,..._0x2453e1||{}};delete _0x655726[_0x3af2e5(0x181)],delete _0x655726[_0x3af2e5(0x183)];if(_0x1586c6)_0x655726[_0x3af2e5(0x17c)]=_0x1586c6;else!_0x655726[_0x3af2e5(0x17c)]&&(_0x655726[_0x3af2e5(0x17c)]=DEFAULT_CONFIG_VALUES['env']);const _0x37f718=buildCanonicalAppConfig(appCodes,_0x655726[_0x3af2e5(0x17c)]);return Object[_0x3af2e5(0x192)](_0x37f718)[_0x3af2e5(0x177)]>0x0&&(_0x655726['apps']=_0x37f718['apps'],_0x655726[_0x3af2e5(0x18b)]=_0x37f718['defaultApp']),_0x655726;}const LOCALE_MAP={'zh':a143_0x5ee6ca(0x17f),'zh-cn':a143_0x5ee6ca(0x17f),'zh_cn':a143_0x5ee6ca(0x17f),'en':'en-US','en-us':a143_0x5ee6ca(0x180),'en_us':'en-US'};export function normalizeLocale(_0x1468ba){const _0x3fa08a=a143_0x5ee6ca;if(!_0x1468ba)return null;return LOCALE_MAP[_0x1468ba[_0x3fa08a(0x18d)]()]??null;}
@@ -1 +1 @@
1
- function a143_0x2c76(_0x3c51dc,_0x59946e){_0x3c51dc=_0x3c51dc-0x156;const _0xf20a84=a143_0xf20a();let _0x2c767a=_0xf20a84[_0x3c51dc];return _0x2c767a;}const a143_0x3d0aec=a143_0x2c76;function a143_0xf20a(){const _0x8daacf=['407637IjKUXA','131415GsngSD','69501yQRIVW','234cwWZEW','68803JTgpPM','https://g.lovrabet.com/dist/rabetbase-cli/config/index.json','5623750NrencT','124dpEYLt','1547824EtBmjw','8SlkPcQ','8384346AeSwjq'];a143_0xf20a=function(){return _0x8daacf;};return a143_0xf20a();}(function(_0x16afb5,_0x30c39a){const _0x204079=a143_0x2c76,_0x4f38e2=_0x16afb5();while(!![]){try{const _0x344d69=parseInt(_0x204079(0x15c))/0x1+parseInt(_0x204079(0x159))/0x2+parseInt(_0x204079(0x15e))/0x3*(parseInt(_0x204079(0x158))/0x4)+-parseInt(_0x204079(0x15d))/0x5*(parseInt(_0x204079(0x15f))/0x6)+parseInt(_0x204079(0x160))/0x7+-parseInt(_0x204079(0x15a))/0x8*(parseInt(_0x204079(0x15b))/0x9)+parseInt(_0x204079(0x157))/0xa;if(_0x344d69===_0x30c39a)break;else _0x4f38e2['push'](_0x4f38e2['shift']());}catch(_0x21d7ec){_0x4f38e2['push'](_0x4f38e2['shift']());}}}(a143_0xf20a,0x7dce3));export const CLI_VERSION_POLICY_URL=a143_0x3d0aec(0x156);
1
+ function a144_0x1299(_0x34d86d,_0x2e5190){_0x34d86d=_0x34d86d-0x18c;const _0x3229ee=a144_0x3229();let _0x12997d=_0x3229ee[_0x34d86d];return _0x12997d;}const a144_0x787074=a144_0x1299;(function(_0x3eedb4,_0x3c9c3b){const _0x1586d8=a144_0x1299,_0x1a3540=_0x3eedb4();while(!![]){try{const _0xe4cdf9=parseInt(_0x1586d8(0x196))/0x1*(-parseInt(_0x1586d8(0x190))/0x2)+parseInt(_0x1586d8(0x195))/0x3*(-parseInt(_0x1586d8(0x194))/0x4)+-parseInt(_0x1586d8(0x18c))/0x5+parseInt(_0x1586d8(0x192))/0x6*(-parseInt(_0x1586d8(0x193))/0x7)+-parseInt(_0x1586d8(0x18e))/0x8+-parseInt(_0x1586d8(0x191))/0x9+-parseInt(_0x1586d8(0x197))/0xa*(-parseInt(_0x1586d8(0x18d))/0xb);if(_0xe4cdf9===_0x3c9c3b)break;else _0x1a3540['push'](_0x1a3540['shift']());}catch(_0x5238e7){_0x1a3540['push'](_0x1a3540['shift']());}}}(a144_0x3229,0xe9076));export const CLI_VERSION_POLICY_URL=a144_0x787074(0x18f);function a144_0x3229(){const _0x4c46a7=['24655939eHsery','606904vINVUu','https://g.lovrabet.com/dist/rabetbase-cli/config/index.json','17326swfePl','11185344ssPlRR','372fKAIRw','181356PbATmJ','8lLMYLo','1703472fVtqtK','5CBGKxk','30HautYQ','8329615wLSxjD'];a144_0x3229=function(){return _0x4c46a7;};return a144_0x3229();}
@@ -1 +1 @@
1
- const a144_0x2f76fe=a144_0x290a;(function(_0x59afa4,_0x317aad){const _0x460f6f=a144_0x290a,_0x142e80=_0x59afa4();while(!![]){try{const _0x4320d1=-parseInt(_0x460f6f(0xed))/0x1*(-parseInt(_0x460f6f(0x107))/0x2)+parseInt(_0x460f6f(0x136))/0x3+-parseInt(_0x460f6f(0x102))/0x4*(-parseInt(_0x460f6f(0x11a))/0x5)+parseInt(_0x460f6f(0x125))/0x6*(-parseInt(_0x460f6f(0xe5))/0x7)+parseInt(_0x460f6f(0x11c))/0x8+parseInt(_0x460f6f(0x122))/0x9+-parseInt(_0x460f6f(0xef))/0xa*(parseInt(_0x460f6f(0xe1))/0xb);if(_0x4320d1===_0x317aad)break;else _0x142e80['push'](_0x142e80['shift']());}catch(_0x26438a){_0x142e80['push'](_0x142e80['shift']());}}}(a144_0x4126,0x358b1));function a144_0x290a(_0x503db1,_0x50ebac){_0x503db1=_0x503db1-0xca;const _0x412684=a144_0x4126();let _0x290a3a=_0x412684[_0x503db1];return _0x290a3a;}export const CLI_BIN_NAME=a144_0x2f76fe(0xd5);export const CLI_DISPLAY_NAME=a144_0x2f76fe(0x103);export const NPM_PACKAGE_NAME=a144_0x2f76fe(0x12b);function a144_0x4126(){const _0x257be5=['12MbPKga','Description\x20file','SQL\x20code','sqlname','Skip\x20import\x20generation','Read\x20value\x20from\x20environment\x20variable','@lovrabet/rabetbase-cli','Title','Code\x20filter','functionNode','sql-name','Tags','yes','Output\x20path','Verbose\x20output','sqlcode','Function\x20node','1212525iRucPR','dry-run','descriptionFile','all','Dataset\x20code','sql','project','help','Apply\x20to\x20all','Page\x20number','nonInteractive','title','Record\x20ID','target','Reveal\x20sensitive\x20value','watch','Force\x20non-interactive\x20mode\x20(CI)','name','type','datasetcode','rabetbase','<code>','global','production\x20|\x20daily','env','Name','fromEntries','key','boolean','format','description','Expected\x20affected\x20count','271513cFEvRh','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','db-id','function-node','1280769pAfQXL','params','Read\x20value\x20from\x20stdin','Use\x20project\x20config\x20scope','SQL\x20name','keyword','dryRun','json\x20|\x20pretty\x20|\x20compress','384487WnjeUa','Schemas','410ysskss','Enable\x20BFF\x20save','appcode','reveal','non-interactive','JSON\x20params','description-file','Clear','output','verbose','Description','enable-bff-save','Use\x20global\x20config\x20scope','Operation\x20type','Config\x20key','schemas','string','remote','expectedCount','509772TPZafn','Rabetbase\x20CLI','operation','code','Page\x20size','2bSCQep','Type\x20filter','enableBffSave','from-env','stdin','confirm','fromEnv','File\x20path','skip-imports','meowKey','skipImports','Skip\x20confirmation\x20for\x20high-risk\x20writes','SQL\x20string','force','operationType','dbId','Force\x20overwrite','file','Show\x20help','15IADyCJ','pagesize','3222376KYJsiv','page','app','Watch\x20mode','Target\x20path','tags','211158ABaWQx','value','Preview\x20operation\x20without\x20executing'];a144_0x4126=function(){return _0x257be5;};return a144_0x4126();}export const GLOBAL_FLAGS=[{'name':a144_0x2f76fe(0xf1),'meowKey':'appcode','type':a144_0x2f76fe(0xff),'description':'Override\x20appcode','hint':a144_0x2f76fe(0xd6)},{'name':'app','meowKey':a144_0x2f76fe(0x11e),'type':a144_0x2f76fe(0xff),'description':'Select\x20app\x20profile\x20by\x20name','hint':'<name>'},{'name':a144_0x2f76fe(0xd9),'meowKey':a144_0x2f76fe(0xd9),'type':a144_0x2f76fe(0xff),'description':'Environment','hint':a144_0x2f76fe(0xd8)},{'name':a144_0x2f76fe(0xde),'meowKey':'format','type':'string','description':'Output\x20format','hint':a144_0x2f76fe(0xec)},{'name':'jq','meowKey':'jq','type':a144_0x2f76fe(0xff),'description':a144_0x2f76fe(0xe2),'hint':'<expr>'},{'name':a144_0x2f76fe(0x137),'meowKey':a144_0x2f76fe(0xeb),'type':'boolean','description':a144_0x2f76fe(0x124)},{'name':a144_0x2f76fe(0x131),'meowKey':a144_0x2f76fe(0x131),'type':a144_0x2f76fe(0xdd),'description':a144_0x2f76fe(0x112)},{'name':a144_0x2f76fe(0xf3),'meowKey':a144_0x2f76fe(0xcb),'type':a144_0x2f76fe(0xdd),'description':a144_0x2f76fe(0xd1)},{'name':a144_0x2f76fe(0xd7),'meowKey':a144_0x2f76fe(0xd7),'type':'boolean','description':a144_0x2f76fe(0xfb)},{'name':a144_0x2f76fe(0x13c),'meowKey':'project','type':a144_0x2f76fe(0xdd),'description':a144_0x2f76fe(0xe8)},{'name':'ci','meowKey':'ci','type':a144_0x2f76fe(0xdd),'description':'Alias\x20for\x20--non-interactive','hidden':!![]},{'name':a144_0x2f76fe(0x13d),'meowKey':a144_0x2f76fe(0x13d),'type':'boolean','description':a144_0x2f76fe(0x119)},{'name':a144_0x2f76fe(0xd2),'meowKey':'name','type':a144_0x2f76fe(0xff),'description':a144_0x2f76fe(0xda),'hidden':!![]},{'name':a144_0x2f76fe(0xcc),'meowKey':a144_0x2f76fe(0xcc),'type':'string','description':a144_0x2f76fe(0x12c),'hidden':!![]},{'name':'clear','meowKey':'clear','type':a144_0x2f76fe(0xdd),'description':a144_0x2f76fe(0xf6),'hidden':!![]},{'name':'watch','meowKey':a144_0x2f76fe(0xd0),'type':a144_0x2f76fe(0xdd),'description':a144_0x2f76fe(0x11f),'hidden':!![]},{'name':a144_0x2f76fe(0xf7),'meowKey':a144_0x2f76fe(0xf7),'type':a144_0x2f76fe(0xff),'description':a144_0x2f76fe(0x132),'hidden':!![]},{'name':'params','meowKey':a144_0x2f76fe(0xe6),'type':a144_0x2f76fe(0xff),'description':a144_0x2f76fe(0xf4),'hidden':!![]},{'name':'datasetcode','meowKey':a144_0x2f76fe(0xd4),'type':a144_0x2f76fe(0xff),'description':a144_0x2f76fe(0x13a),'hidden':!![]},{'name':a144_0x2f76fe(0x139),'meowKey':a144_0x2f76fe(0x139),'type':a144_0x2f76fe(0xdd),'description':a144_0x2f76fe(0x13e),'hidden':!![]},{'name':a144_0x2f76fe(0xfa),'meowKey':a144_0x2f76fe(0x109),'type':a144_0x2f76fe(0xdd),'description':a144_0x2f76fe(0xf0),'hidden':!![]},{'name':'id','meowKey':'id','type':a144_0x2f76fe(0xff),'description':a144_0x2f76fe(0xcd),'hidden':!![]},{'name':'type','meowKey':'type','type':a144_0x2f76fe(0xff),'description':a144_0x2f76fe(0x108),'hidden':!![]},{'name':'file','meowKey':a144_0x2f76fe(0x118),'type':'string','description':a144_0x2f76fe(0x10e),'hidden':!![]},{'name':a144_0x2f76fe(0x134),'meowKey':'sqlcode','type':a144_0x2f76fe(0xff),'description':a144_0x2f76fe(0x127),'hidden':!![]},{'name':a144_0x2f76fe(0x12f),'meowKey':'sqlName','type':a144_0x2f76fe(0xff),'description':a144_0x2f76fe(0xe9),'hidden':!![]},{'name':a144_0x2f76fe(0x128),'meowKey':a144_0x2f76fe(0x128),'type':'string','description':a144_0x2f76fe(0xe9),'hidden':!![]},{'name':a144_0x2f76fe(0xe3),'meowKey':a144_0x2f76fe(0x116),'type':'string','description':'DB\x20ID','hidden':!![]},{'name':'dbid','meowKey':'dbid','type':a144_0x2f76fe(0xff),'description':'DB\x20ID','hidden':!![]},{'name':a144_0x2f76fe(0xdf),'meowKey':'description','type':a144_0x2f76fe(0xff),'description':a144_0x2f76fe(0xf9),'hidden':!![]},{'name':a144_0x2f76fe(0xf5),'meowKey':a144_0x2f76fe(0x138),'type':a144_0x2f76fe(0xff),'description':a144_0x2f76fe(0x126),'hidden':!![]},{'name':a144_0x2f76fe(0x11d),'meowKey':a144_0x2f76fe(0x11d),'type':a144_0x2f76fe(0xff),'description':a144_0x2f76fe(0xca),'hidden':!![]},{'name':a144_0x2f76fe(0x11b),'meowKey':'pagesize','type':'string','description':a144_0x2f76fe(0x106),'hidden':!![]},{'name':a144_0x2f76fe(0xea),'meowKey':a144_0x2f76fe(0xea),'type':a144_0x2f76fe(0xff),'description':'Keyword\x20filter','hidden':!![]},{'name':a144_0x2f76fe(0x105),'meowKey':'code','type':a144_0x2f76fe(0xff),'description':a144_0x2f76fe(0x12d),'hidden':!![]},{'name':a144_0x2f76fe(0x13b),'meowKey':a144_0x2f76fe(0x13b),'type':a144_0x2f76fe(0xff),'description':a144_0x2f76fe(0x113),'hidden':!![]},{'name':'schemas','meowKey':a144_0x2f76fe(0xfe),'type':a144_0x2f76fe(0xff),'description':a144_0x2f76fe(0xee),'hidden':!![]},{'name':a144_0x2f76fe(0x104),'meowKey':a144_0x2f76fe(0x104),'type':a144_0x2f76fe(0xff),'description':a144_0x2f76fe(0xfc),'hidden':!![]},{'name':a144_0x2f76fe(0xce),'meowKey':a144_0x2f76fe(0xce),'type':a144_0x2f76fe(0xff),'description':a144_0x2f76fe(0x120),'hidden':!![]},{'name':a144_0x2f76fe(0x10f),'meowKey':a144_0x2f76fe(0x111),'type':a144_0x2f76fe(0xdd),'description':a144_0x2f76fe(0x129),'hidden':!![]},{'name':'key','meowKey':a144_0x2f76fe(0xdc),'type':a144_0x2f76fe(0xff),'description':a144_0x2f76fe(0xfd),'hidden':!![]},{'name':a144_0x2f76fe(0x123),'meowKey':a144_0x2f76fe(0x123),'type':a144_0x2f76fe(0xff),'description':'Config\x20value','hidden':!![]},{'name':'tags','meowKey':a144_0x2f76fe(0x121),'type':a144_0x2f76fe(0xff),'description':a144_0x2f76fe(0x130),'hidden':!![]},{'name':a144_0x2f76fe(0x10b),'meowKey':'stdin','type':a144_0x2f76fe(0xdd),'description':a144_0x2f76fe(0xe7),'hidden':!![]},{'name':a144_0x2f76fe(0x10a),'meowKey':a144_0x2f76fe(0x10d),'type':a144_0x2f76fe(0xff),'description':a144_0x2f76fe(0x12a),'hidden':!![]},{'name':a144_0x2f76fe(0xf2),'meowKey':a144_0x2f76fe(0xf2),'type':a144_0x2f76fe(0xdd),'description':a144_0x2f76fe(0xcf),'hidden':!![]},{'name':'force','meowKey':a144_0x2f76fe(0x114),'type':a144_0x2f76fe(0xdd),'description':a144_0x2f76fe(0x117),'hidden':!![]},{'name':a144_0x2f76fe(0x10c),'meowKey':'confirm','type':'boolean','description':'Confirm\x20destructive\x20action','hidden':!![]},{'name':a144_0x2f76fe(0x100),'meowKey':'remote','type':a144_0x2f76fe(0xdd),'description':'Use\x20remote','hidden':!![]},{'name':a144_0x2f76fe(0xf8),'meowKey':'verbose','type':'boolean','description':a144_0x2f76fe(0x133),'hidden':!![]},{'name':'expected-count','meowKey':a144_0x2f76fe(0x101),'type':a144_0x2f76fe(0xff),'description':a144_0x2f76fe(0xe0),'hidden':!![]},{'name':'operation-type','meowKey':a144_0x2f76fe(0x115),'type':a144_0x2f76fe(0xff),'description':a144_0x2f76fe(0xfc),'hidden':!![]},{'name':a144_0x2f76fe(0xe4),'meowKey':a144_0x2f76fe(0x12e),'type':a144_0x2f76fe(0xff),'description':a144_0x2f76fe(0x135),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a144_0x2f76fe(0xf1),'app',a144_0x2f76fe(0xd9),a144_0x2f76fe(0xde),'jq',a144_0x2f76fe(0x137),a144_0x2f76fe(0x131),a144_0x2f76fe(0xf3),'ci']);export function buildMeowFlags(){const _0x206fd3=a144_0x2f76fe;return Object[_0x206fd3(0xdb)](GLOBAL_FLAGS['map'](_0x2cd7ec=>[_0x2cd7ec[_0x206fd3(0x110)],{'type':_0x2cd7ec[_0x206fd3(0xd3)]}]));}
1
+ function a145_0x4032(){const _0x111b66=['production\x20|\x20daily','type','value','Output\x20path','app','datasetcode','@lovrabet/rabetbase-cli','title','Skip\x20import\x20generation','expectedCount','key','Page\x20size','Title','tags','<name>','functionNode','Alias\x20for\x20--non-interactive','clear','Force\x20overwrite','params','non-interactive','Select\x20app\x20profile\x20by\x20name','description','json\x20|\x20pretty\x20|\x20compress','Force\x20non-interactive\x20mode\x20(CI)','DB\x20ID','name','keyword','<code>','target','appcode','1TgnAqM','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','page','Use\x20remote','nonInteractive','operationType','string','Skip\x20confirmation\x20for\x20high-risk\x20writes','yes','code','Type\x20filter','schemas','JSON\x20params','SQL\x20string','955150NxeoAQ','File\x20path','env','Tags','Verbose\x20output','meowKey','dry-run','sqlName','Operation\x20type','watch','fromEntries','sqlcode','pagesize','Read\x20value\x20from\x20environment\x20variable','verbose','2746816QgIxeP','output','project','expected-count','sqlname','fromEnv','Watch\x20mode','operation-type','56XVTjPB','Enable\x20BFF\x20save','skip-imports','map','all','operation','Use\x20global\x20config\x20scope','Apply\x20to\x20all','SQL\x20name','Name','enable-bff-save','Preview\x20operation\x20without\x20executing','Record\x20ID','confirm','file','18138JOoTpn','<expr>','783390QJvqIr','dbId','dryRun','dbid','Show\x20help','Read\x20value\x20from\x20stdin','Confirm\x20destructive\x20action','Description\x20file','Clear','format','sql','19924164JmKGEb','Output\x20format','reveal','from-env','help','Description','SQL\x20code','function-node','575043LbKNXr','Reveal\x20sensitive\x20value','global','Dataset\x20code','force','boolean','Rabetbase\x20CLI','Schemas','stdin','Config\x20value','skipImports','4069790IGjbTz'];a145_0x4032=function(){return _0x111b66;};return a145_0x4032();}const a145_0xec980b=a145_0x251a;(function(_0x45e8a0,_0x5d7cab){const _0x3b95bc=a145_0x251a,_0x3a28d7=_0x45e8a0();while(!![]){try{const _0x115595=parseInt(_0x3b95bc(0x178))/0x1*(-parseInt(_0x3b95bc(0x186))/0x2)+parseInt(_0x3b95bc(0x1ac))/0x3*(-parseInt(_0x3b95bc(0x19d))/0x4)+-parseInt(_0x3b95bc(0x158))/0x5+-parseInt(_0x3b95bc(0x1ae))/0x6+parseInt(_0x3b95bc(0x14d))/0x7+-parseInt(_0x3b95bc(0x195))/0x8+parseInt(_0x3b95bc(0x145))/0x9;if(_0x115595===_0x5d7cab)break;else _0x3a28d7['push'](_0x3a28d7['shift']());}catch(_0x46af25){_0x3a28d7['push'](_0x3a28d7['shift']());}}}(a145_0x4032,0x6cd9b));export const CLI_BIN_NAME='rabetbase';export const CLI_DISPLAY_NAME=a145_0xec980b(0x153);export const NPM_PACKAGE_NAME=a145_0xec980b(0x15f);export const GLOBAL_FLAGS=[{'name':'appcode','meowKey':a145_0xec980b(0x177),'type':'string','description':'Override\x20appcode','hint':a145_0xec980b(0x175)},{'name':a145_0xec980b(0x15d),'meowKey':a145_0xec980b(0x15d),'type':a145_0xec980b(0x17e),'description':a145_0xec980b(0x16e),'hint':a145_0xec980b(0x167)},{'name':'env','meowKey':a145_0xec980b(0x188),'type':a145_0xec980b(0x17e),'description':'Environment','hint':a145_0xec980b(0x159)},{'name':a145_0xec980b(0x143),'meowKey':a145_0xec980b(0x143),'type':'string','description':a145_0xec980b(0x146),'hint':a145_0xec980b(0x170)},{'name':'jq','meowKey':'jq','type':a145_0xec980b(0x17e),'description':a145_0xec980b(0x179),'hint':a145_0xec980b(0x1ad)},{'name':a145_0xec980b(0x18c),'meowKey':a145_0xec980b(0x1b0),'type':a145_0xec980b(0x152),'description':a145_0xec980b(0x1a8)},{'name':'yes','meowKey':a145_0xec980b(0x180),'type':a145_0xec980b(0x152),'description':a145_0xec980b(0x17f)},{'name':a145_0xec980b(0x16d),'meowKey':a145_0xec980b(0x17c),'type':a145_0xec980b(0x152),'description':a145_0xec980b(0x171)},{'name':'global','meowKey':a145_0xec980b(0x14f),'type':a145_0xec980b(0x152),'description':a145_0xec980b(0x1a3)},{'name':a145_0xec980b(0x197),'meowKey':'project','type':'boolean','description':'Use\x20project\x20config\x20scope'},{'name':'ci','meowKey':'ci','type':'boolean','description':a145_0xec980b(0x169),'hidden':!![]},{'name':a145_0xec980b(0x149),'meowKey':a145_0xec980b(0x149),'type':a145_0xec980b(0x152),'description':a145_0xec980b(0x1b2)},{'name':'name','meowKey':a145_0xec980b(0x173),'type':a145_0xec980b(0x17e),'description':a145_0xec980b(0x1a6),'hidden':!![]},{'name':'title','meowKey':a145_0xec980b(0x160),'type':a145_0xec980b(0x17e),'description':a145_0xec980b(0x165),'hidden':!![]},{'name':a145_0xec980b(0x16a),'meowKey':a145_0xec980b(0x16a),'type':a145_0xec980b(0x152),'description':a145_0xec980b(0x142),'hidden':!![]},{'name':a145_0xec980b(0x18f),'meowKey':a145_0xec980b(0x18f),'type':'boolean','description':a145_0xec980b(0x19b),'hidden':!![]},{'name':a145_0xec980b(0x196),'meowKey':'output','type':a145_0xec980b(0x17e),'description':a145_0xec980b(0x15c),'hidden':!![]},{'name':a145_0xec980b(0x16c),'meowKey':a145_0xec980b(0x16c),'type':a145_0xec980b(0x17e),'description':a145_0xec980b(0x184),'hidden':!![]},{'name':'datasetcode','meowKey':a145_0xec980b(0x15e),'type':a145_0xec980b(0x17e),'description':a145_0xec980b(0x150),'hidden':!![]},{'name':a145_0xec980b(0x1a1),'meowKey':a145_0xec980b(0x1a1),'type':'boolean','description':a145_0xec980b(0x1a4),'hidden':!![]},{'name':a145_0xec980b(0x1a7),'meowKey':'enableBffSave','type':a145_0xec980b(0x152),'description':a145_0xec980b(0x19e),'hidden':!![]},{'name':'id','meowKey':'id','type':a145_0xec980b(0x17e),'description':a145_0xec980b(0x1a9),'hidden':!![]},{'name':a145_0xec980b(0x15a),'meowKey':a145_0xec980b(0x15a),'type':a145_0xec980b(0x17e),'description':a145_0xec980b(0x182),'hidden':!![]},{'name':a145_0xec980b(0x1ab),'meowKey':a145_0xec980b(0x1ab),'type':a145_0xec980b(0x17e),'description':a145_0xec980b(0x187),'hidden':!![]},{'name':a145_0xec980b(0x191),'meowKey':a145_0xec980b(0x191),'type':a145_0xec980b(0x17e),'description':a145_0xec980b(0x14b),'hidden':!![]},{'name':'sql-name','meowKey':a145_0xec980b(0x18d),'type':a145_0xec980b(0x17e),'description':a145_0xec980b(0x1a5),'hidden':!![]},{'name':a145_0xec980b(0x199),'meowKey':a145_0xec980b(0x199),'type':a145_0xec980b(0x17e),'description':a145_0xec980b(0x1a5),'hidden':!![]},{'name':'db-id','meowKey':a145_0xec980b(0x1af),'type':'string','description':a145_0xec980b(0x172),'hidden':!![]},{'name':a145_0xec980b(0x1b1),'meowKey':a145_0xec980b(0x1b1),'type':a145_0xec980b(0x17e),'description':a145_0xec980b(0x172),'hidden':!![]},{'name':a145_0xec980b(0x16f),'meowKey':a145_0xec980b(0x16f),'type':a145_0xec980b(0x17e),'description':a145_0xec980b(0x14a),'hidden':!![]},{'name':'description-file','meowKey':'descriptionFile','type':a145_0xec980b(0x17e),'description':a145_0xec980b(0x141),'hidden':!![]},{'name':a145_0xec980b(0x17a),'meowKey':a145_0xec980b(0x17a),'type':a145_0xec980b(0x17e),'description':'Page\x20number','hidden':!![]},{'name':a145_0xec980b(0x192),'meowKey':a145_0xec980b(0x192),'type':a145_0xec980b(0x17e),'description':a145_0xec980b(0x164),'hidden':!![]},{'name':a145_0xec980b(0x174),'meowKey':a145_0xec980b(0x174),'type':a145_0xec980b(0x17e),'description':'Keyword\x20filter','hidden':!![]},{'name':a145_0xec980b(0x181),'meowKey':a145_0xec980b(0x181),'type':a145_0xec980b(0x17e),'description':'Code\x20filter','hidden':!![]},{'name':'sql','meowKey':a145_0xec980b(0x144),'type':a145_0xec980b(0x17e),'description':a145_0xec980b(0x185),'hidden':!![]},{'name':'schemas','meowKey':a145_0xec980b(0x183),'type':'string','description':a145_0xec980b(0x154),'hidden':!![]},{'name':a145_0xec980b(0x1a2),'meowKey':a145_0xec980b(0x1a2),'type':a145_0xec980b(0x17e),'description':a145_0xec980b(0x18e),'hidden':!![]},{'name':a145_0xec980b(0x176),'meowKey':a145_0xec980b(0x176),'type':a145_0xec980b(0x17e),'description':'Target\x20path','hidden':!![]},{'name':a145_0xec980b(0x19f),'meowKey':a145_0xec980b(0x157),'type':a145_0xec980b(0x152),'description':a145_0xec980b(0x161),'hidden':!![]},{'name':a145_0xec980b(0x163),'meowKey':a145_0xec980b(0x163),'type':a145_0xec980b(0x17e),'description':'Config\x20key','hidden':!![]},{'name':a145_0xec980b(0x15b),'meowKey':'value','type':a145_0xec980b(0x17e),'description':a145_0xec980b(0x156),'hidden':!![]},{'name':'tags','meowKey':a145_0xec980b(0x166),'type':a145_0xec980b(0x17e),'description':a145_0xec980b(0x189),'hidden':!![]},{'name':'stdin','meowKey':a145_0xec980b(0x155),'type':'boolean','description':a145_0xec980b(0x1b3),'hidden':!![]},{'name':a145_0xec980b(0x148),'meowKey':a145_0xec980b(0x19a),'type':a145_0xec980b(0x17e),'description':a145_0xec980b(0x193),'hidden':!![]},{'name':a145_0xec980b(0x147),'meowKey':a145_0xec980b(0x147),'type':a145_0xec980b(0x152),'description':a145_0xec980b(0x14e),'hidden':!![]},{'name':a145_0xec980b(0x151),'meowKey':a145_0xec980b(0x151),'type':a145_0xec980b(0x152),'description':a145_0xec980b(0x16b),'hidden':!![]},{'name':'confirm','meowKey':a145_0xec980b(0x1aa),'type':a145_0xec980b(0x152),'description':a145_0xec980b(0x1b4),'hidden':!![]},{'name':'remote','meowKey':'remote','type':'boolean','description':a145_0xec980b(0x17b),'hidden':!![]},{'name':a145_0xec980b(0x194),'meowKey':a145_0xec980b(0x194),'type':a145_0xec980b(0x152),'description':a145_0xec980b(0x18a),'hidden':!![]},{'name':a145_0xec980b(0x198),'meowKey':a145_0xec980b(0x162),'type':a145_0xec980b(0x17e),'description':'Expected\x20affected\x20count','hidden':!![]},{'name':a145_0xec980b(0x19c),'meowKey':a145_0xec980b(0x17d),'type':'string','description':a145_0xec980b(0x18e),'hidden':!![]},{'name':a145_0xec980b(0x14c),'meowKey':a145_0xec980b(0x168),'type':'string','description':'Function\x20node','hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a145_0xec980b(0x177),'app',a145_0xec980b(0x188),a145_0xec980b(0x143),'jq',a145_0xec980b(0x18c),a145_0xec980b(0x180),a145_0xec980b(0x16d),'ci']);function a145_0x251a(_0x4b545b,_0x4fd493){_0x4b545b=_0x4b545b-0x141;const _0x4032d1=a145_0x4032();let _0x251a15=_0x4032d1[_0x4b545b];return _0x251a15;}export function buildMeowFlags(){const _0xf4b051=a145_0xec980b;return Object[_0xf4b051(0x190)](GLOBAL_FLAGS[_0xf4b051(0x1a0)](_0x125174=>[_0x125174[_0xf4b051(0x18b)],{'type':_0x125174[_0xf4b051(0x15a)]}]));}
@@ -1 +1 @@
1
- function a145_0x3705(_0x4a8119,_0x52271b){_0x4a8119=_0x4a8119-0xdc;const _0x9560a3=a145_0x9560();let _0x370539=_0x9560a3[_0x4a8119];return _0x370539;}const a145_0x87d6fb=a145_0x3705;(function(_0x3adfe6,_0x5e0468){const _0x42d4ea=a145_0x3705,_0x35953f=_0x3adfe6();while(!![]){try{const _0x345a8d=-parseInt(_0x42d4ea(0xe0))/0x1*(parseInt(_0x42d4ea(0xdd))/0x2)+-parseInt(_0x42d4ea(0xe8))/0x3*(parseInt(_0x42d4ea(0xe7))/0x4)+-parseInt(_0x42d4ea(0xde))/0x5*(parseInt(_0x42d4ea(0xdf))/0x6)+parseInt(_0x42d4ea(0xe6))/0x7*(-parseInt(_0x42d4ea(0xe2))/0x8)+parseInt(_0x42d4ea(0xea))/0x9*(parseInt(_0x42d4ea(0xe3))/0xa)+parseInt(_0x42d4ea(0xe5))/0xb+-parseInt(_0x42d4ea(0xe9))/0xc*(-parseInt(_0x42d4ea(0xdc))/0xd);if(_0x345a8d===_0x5e0468)break;else _0x35953f['push'](_0x35953f['shift']());}catch(_0x5b916d){_0x35953f['push'](_0x35953f['shift']());}}}(a145_0x9560,0x8af8f));import{DEFAULT_API_DIR}from'../constant/paths.js';export const DEFAULT_CONFIG_VALUES={'env':'production','format':'compress','locale':a145_0x87d6fb(0xe1),'riskLevel':'high-risk-write','apiDir':DEFAULT_API_DIR};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a145_0x87d6fb(0xe4);function a145_0x9560(){const _0x11499d=['1411397vIyxtf','438JdPuvz','13610iGyFZL','2166AOBHku','73CnGWsL','en-US','566928BOXQnk','759660camxbn','compress','9151219kaVzVo','7jCAQpf','272yjtHig','16116zEWauw','12MszQmD','126YSMVIJ'];a145_0x9560=function(){return _0x11499d;};return a145_0x9560();}
1
+ const a146_0x54c51c=a146_0x288d;function a146_0x288d(_0x5953e9,_0x43da52){_0x5953e9=_0x5953e9-0x106;const _0x30c39b=a146_0x30c3();let _0x288ddf=_0x30c39b[_0x5953e9];return _0x288ddf;}(function(_0x22a290,_0x2b42c3){const _0x35fa10=a146_0x288d,_0x731764=_0x22a290();while(!![]){try{const _0x2cbae6=parseInt(_0x35fa10(0x111))/0x1+parseInt(_0x35fa10(0x10d))/0x2*(parseInt(_0x35fa10(0x112))/0x3)+parseInt(_0x35fa10(0x110))/0x4+parseInt(_0x35fa10(0x113))/0x5*(parseInt(_0x35fa10(0x10a))/0x6)+parseInt(_0x35fa10(0x109))/0x7*(parseInt(_0x35fa10(0x10b))/0x8)+parseInt(_0x35fa10(0x106))/0x9*(parseInt(_0x35fa10(0x108))/0xa)+-parseInt(_0x35fa10(0x107))/0xb;if(_0x2cbae6===_0x2b42c3)break;else _0x731764['push'](_0x731764['shift']());}catch(_0x1a9d30){_0x731764['push'](_0x731764['shift']());}}}(a146_0x30c3,0xc0d32));import{DEFAULT_API_DIR}from'../constant/paths.js';export const DEFAULT_CONFIG_VALUES={'env':'production','format':a146_0x54c51c(0x10f),'locale':a146_0x54c51c(0x10c),'riskLevel':a146_0x54c51c(0x10e),'apiDir':DEFAULT_API_DIR};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a146_0x54c51c(0x10f);function a146_0x30c3(){const _0x558f22=['1369170SdYqHr','9tgmLcO','5643045bxkIHF','81aKeRli','73535451XALuXu','1605820ZBOuZT','6343141kfolWy','6UMyoTw','8kSGWMi','en-US','894644qCYmbm','high-risk-write','compress','5134820XnKvLt'];a146_0x30c3=function(){return _0x558f22;};return a146_0x30c3();}
@@ -1 +1 @@
1
- const a146_0x26313a=a146_0x30cb;(function(_0x3a209a,_0x3dab44){const _0x189132=a146_0x30cb,_0x139745=_0x3a209a();while(!![]){try{const _0x2205d5=-parseInt(_0x189132(0xf3))/0x1+-parseInt(_0x189132(0xea))/0x2*(-parseInt(_0x189132(0xf1))/0x3)+-parseInt(_0x189132(0xeb))/0x4+parseInt(_0x189132(0xe8))/0x5*(-parseInt(_0x189132(0xf0))/0x6)+-parseInt(_0x189132(0xe6))/0x7*(-parseInt(_0x189132(0xf7))/0x8)+-parseInt(_0x189132(0xe4))/0x9+parseInt(_0x189132(0xe7))/0xa;if(_0x2205d5===_0x3dab44)break;else _0x139745['push'](_0x139745['shift']());}catch(_0x597e41){_0x139745['push'](_0x139745['shift']());}}}(a146_0x57d6,0x81d6b));function a146_0x57d6(){const _0x3c6edc=['https://app.lovrabet.com','2XVJNhr','3153444krBpzI','https://user-daily.lovrabet.com','https://daily-api.lovrabet.com','https://daily.lovrabet.com','https://runtime.lovrabet.com','6CJlBPF','426003KlNyKa','https://user.lovrabet.com','674208AXAtaq','runtimeDomain','userDomain','https://daily-runtime.lovrabet.com','23272XliUQc','6302502nYTHzl','https://api.lovrabet.com','1351OyRpnp','27085360cYaBJV','3586540PyrASO'];a146_0x57d6=function(){return _0x3c6edc;};return a146_0x57d6();}function a146_0x30cb(_0x3ee0b8,_0x406f2c){_0x3ee0b8=_0x3ee0b8-0xe4;const _0x57d69d=a146_0x57d6();let _0x30cbb4=_0x57d69d[_0x3ee0b8];return _0x30cbb4;}import{getEnv,isProduction}from'../constant/env.js';let customApiDomain,customUserDomain,customRuntimeDomain;export function initDomains(_0x3824e4){const _0x2d18a6=a146_0x30cb;customApiDomain=_0x3824e4?.['apiDomain'],customUserDomain=_0x3824e4?.[_0x2d18a6(0xf5)],customRuntimeDomain=_0x3824e4?.[_0x2d18a6(0xf4)];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?a146_0x26313a(0xf2):a146_0x26313a(0xec));export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?a146_0x26313a(0xe5):a146_0x26313a(0xed));export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?a146_0x26313a(0xef):a146_0x26313a(0xf6));export const getAppDomain=()=>isProduction(getEnv())?a146_0x26313a(0xe9):a146_0x26313a(0xee);export const getAppBaseUrl=_0x59713d=>{const _0x415f3f=encodeURIComponent(_0x59713d['trim']());return isProduction(getEnv())?getAppDomain()+'/app/'+_0x415f3f:getAppDomain()+'/web-app/app/'+_0x415f3f;};
1
+ const a147_0x163d6f=a147_0x297e;(function(_0x99b484,_0x203e7e){const _0x555ad0=a147_0x297e,_0x410e65=_0x99b484();while(!![]){try{const _0x53f909=parseInt(_0x555ad0(0x197))/0x1*(-parseInt(_0x555ad0(0x19e))/0x2)+-parseInt(_0x555ad0(0x19c))/0x3+parseInt(_0x555ad0(0x199))/0x4+-parseInt(_0x555ad0(0x19b))/0x5*(-parseInt(_0x555ad0(0x18f))/0x6)+parseInt(_0x555ad0(0x193))/0x7+-parseInt(_0x555ad0(0x191))/0x8+parseInt(_0x555ad0(0x19a))/0x9;if(_0x53f909===_0x203e7e)break;else _0x410e65['push'](_0x410e65['shift']());}catch(_0x3774cf){_0x410e65['push'](_0x410e65['shift']());}}}(a147_0x34de,0x216e9));import{getEnv,isProduction}from'../constant/env.js';let customApiDomain,customUserDomain,customRuntimeDomain;export function initDomains(_0x47248c){const _0x3cd223=a147_0x297e;customApiDomain=_0x47248c?.[_0x3cd223(0x190)],customUserDomain=_0x47248c?.[_0x3cd223(0x192)],customRuntimeDomain=_0x47248c?.[_0x3cd223(0x19f)];}function a147_0x297e(_0x4d4bd8,_0x718061){_0x4d4bd8=_0x4d4bd8-0x18f;const _0x34decf=a147_0x34de();let _0x297e0d=_0x34decf[_0x4d4bd8];return _0x297e0d;}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?a147_0x163d6f(0x19d):a147_0x163d6f(0x195));export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?a147_0x163d6f(0x198):a147_0x163d6f(0x194));function a147_0x34de(){const _0x423d52=['1756377SWAZDR','631305pBQecV','619776UMwfap','https://user.lovrabet.com','274628ZUpxDK','runtimeDomain','https://daily-runtime.lovrabet.com','https://app.lovrabet.com','6YXswjc','apiDomain','1403024lnvGht','userDomain','471912pYQiYL','https://daily-api.lovrabet.com','https://user-daily.lovrabet.com','https://runtime.lovrabet.com','1jZiVFQ','https://api.lovrabet.com','1069564HvMjyk'];a147_0x34de=function(){return _0x423d52;};return a147_0x34de();}export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?a147_0x163d6f(0x196):a147_0x163d6f(0x1a0));export const getAppDomain=()=>isProduction(getEnv())?a147_0x163d6f(0x1a1):'https://daily.lovrabet.com';export const getAppBaseUrl=_0x55009c=>{const _0x4d7946=encodeURIComponent(_0x55009c['trim']());return isProduction(getEnv())?getAppDomain()+'/app/'+_0x4d7946:getAppDomain()+'/web-app/app/'+_0x4d7946;};
@@ -1 +1 @@
1
- const a147_0x553305=a147_0x9f42;(function(_0x19592c,_0x2e65d3){const _0x3ba4ea=a147_0x9f42,_0x52a938=_0x19592c();while(!![]){try{const _0x3bffe6=parseInt(_0x3ba4ea(0x161))/0x1+-parseInt(_0x3ba4ea(0x159))/0x2+parseInt(_0x3ba4ea(0x15b))/0x3*(-parseInt(_0x3ba4ea(0x15c))/0x4)+parseInt(_0x3ba4ea(0x15f))/0x5*(-parseInt(_0x3ba4ea(0x154))/0x6)+parseInt(_0x3ba4ea(0x160))/0x7+-parseInt(_0x3ba4ea(0x15d))/0x8+-parseInt(_0x3ba4ea(0x158))/0x9*(-parseInt(_0x3ba4ea(0x15a))/0xa);if(_0x3bffe6===_0x2e65d3)break;else _0x52a938['push'](_0x52a938['shift']());}catch(_0x19177e){_0x52a938['push'](_0x52a938['shift']());}}}(a147_0x11a7,0x4262c));export const RABETBASE_ENV_VALUES=[a147_0x553305(0x156),'daily'];function a147_0x11a7(){const _0x1492f6=['12lxInap','dev','production','online','393003nxlvOO','813560BkDpDN','220MRBonZ','3ZVbamo','1440012GewXaf','1338672egxBNl','development','322970zrlRkG','2306710XVSHJw','45017CsMvKG','daily'];a147_0x11a7=function(){return _0x1492f6;};return a147_0x11a7();}function a147_0x9f42(_0x57373e,_0x109772){_0x57373e=_0x57373e-0x154;const _0x11a720=a147_0x11a7();let _0x9f4201=_0x11a720[_0x57373e];return _0x9f4201;}export function normalizeEnv(_0x218f0f){const _0x284e2c=a147_0x553305;return _0x218f0f===_0x284e2c(0x157)?'production':_0x218f0f;}export function isProduction(_0x15e385){const _0x1fc45f=a147_0x553305;return normalizeEnv(_0x15e385)===_0x1fc45f(0x156);}export function isDaily(_0x40ede3){const _0x48ac35=a147_0x553305;return normalizeEnv(_0x40ede3)===_0x48ac35(0x162);}export function isDev(_0xaecfcd){const _0x465a46=a147_0x553305,_0x30f81f=normalizeEnv(_0xaecfcd);return _0x30f81f===_0x465a46(0x15e)||_0x30f81f===_0x465a46(0x155);}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||a147_0x553305(0x156));export function getEnv(){return env;}export function initEnv(_0x37ac07){env=normalizeEnv(_0x37ac07);}
1
+ const a148_0x3c8e0b=a148_0x77a6;(function(_0x473336,_0x277a6f){const _0x42bd59=a148_0x77a6,_0x4e8119=_0x473336();while(!![]){try{const _0x1f570a=-parseInt(_0x42bd59(0xd2))/0x1+parseInt(_0x42bd59(0xce))/0x2*(parseInt(_0x42bd59(0xd1))/0x3)+-parseInt(_0x42bd59(0xca))/0x4*(-parseInt(_0x42bd59(0xcb))/0x5)+parseInt(_0x42bd59(0xd0))/0x6*(-parseInt(_0x42bd59(0xc7))/0x7)+parseInt(_0x42bd59(0xc9))/0x8*(parseInt(_0x42bd59(0xc5))/0x9)+-parseInt(_0x42bd59(0xc8))/0xa+parseInt(_0x42bd59(0xd5))/0xb*(parseInt(_0x42bd59(0xc6))/0xc);if(_0x1f570a===_0x277a6f)break;else _0x4e8119['push'](_0x4e8119['shift']());}catch(_0x1e35c5){_0x4e8119['push'](_0x4e8119['shift']());}}}(a148_0x2c88,0x87310));export const RABETBASE_ENV_VALUES=[a148_0x3c8e0b(0xd4),a148_0x3c8e0b(0xd3)];export function normalizeEnv(_0x533c3d){const _0x42f90b=a148_0x3c8e0b;return _0x533c3d===_0x42f90b(0xcf)?'production':_0x533c3d;}export function isProduction(_0x5f34a3){const _0x3548c6=a148_0x3c8e0b;return normalizeEnv(_0x5f34a3)===_0x3548c6(0xd4);}export function isDaily(_0x3126bc){return normalizeEnv(_0x3126bc)==='daily';}function a148_0x77a6(_0x52d7b8,_0x559b31){_0x52d7b8=_0x52d7b8-0xc5;const _0x2c8852=a148_0x2c88();let _0x77a6f4=_0x2c8852[_0x52d7b8];return _0x77a6f4;}export function isDev(_0xf64044){const _0x549074=a148_0x3c8e0b,_0x4930a7=normalizeEnv(_0xf64044);return _0x4930a7===_0x549074(0xcd)||_0x4930a7===_0x549074(0xcc);}function a148_0x2c88(){const _0x141295=['dev','development','2aCRUxX','online','6MbSqkx','2413032nsvgsK','705449gCyPjK','daily','production','9658gCxSLf','54XUKaDQ','11292MTKjah','4544911GvnoHH','8282450dZUwaN','638872UXzGXW','2508060UoFuMQ','5nFFVsl'];a148_0x2c88=function(){return _0x141295;};return a148_0x2c88();}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||'production');export function getEnv(){return env;}export function initEnv(_0x1e83cd){env=normalizeEnv(_0x1e83cd);}
@@ -1 +1 @@
1
- function a148_0x1e7e(_0x4f2fde,_0x1abad9){_0x4f2fde=_0x4f2fde-0x100;const _0x364759=a148_0x3647();let _0x1e7ec9=_0x364759[_0x4f2fde];return _0x1e7ec9;}const a148_0x3213f7=a148_0x1e7e;function a148_0x3647(){const _0x63f859=['735180BiUcdr','compress','json','5445KOcZeO','3655494UUQXyL','30755230GyAxIF','590617vdzSUh','20EHCYtO','150776sfiCKq','pretty','14650TkQDnS','1671933ZrWGan','49nwcEHw','2Qgvatg'];a148_0x3647=function(){return _0x63f859;};return a148_0x3647();}(function(_0x4196b7,_0x37a528){const _0x2ac031=a148_0x1e7e,_0x36f37a=_0x4196b7();while(!![]){try{const _0x1e351b=parseInt(_0x2ac031(0x106))/0x1+-parseInt(_0x2ac031(0x10d))/0x2*(-parseInt(_0x2ac031(0x10b))/0x3)+parseInt(_0x2ac031(0x107))/0x4*(parseInt(_0x2ac031(0x100))/0x5)+parseInt(_0x2ac031(0x104))/0x6+parseInt(_0x2ac031(0x10c))/0x7*(-parseInt(_0x2ac031(0x108))/0x8)+parseInt(_0x2ac031(0x103))/0x9*(parseInt(_0x2ac031(0x10a))/0xa)+-parseInt(_0x2ac031(0x105))/0xb;if(_0x1e351b===_0x37a528)break;else _0x36f37a['push'](_0x36f37a['shift']());}catch(_0x1bb579){_0x36f37a['push'](_0x36f37a['shift']());}}}(a148_0x3647,0x6e107));export const RABETBASE_OUTPUT_FORMAT_VALUES=[a148_0x3213f7(0x102),a148_0x3213f7(0x109),a148_0x3213f7(0x101)];
1
+ const a149_0xab902b=a149_0x4a9f;function a149_0x2744(){const _0x1cd024=['708wDKIBm','440660LmDvtX','3432690OqCBRb','13075AhZTqb','1275190weJnZP','36wVizZm','616808uHBBVA','259312XUWgdl','15ZUfzck','pretty','147648FWoZOQ'];a149_0x2744=function(){return _0x1cd024;};return a149_0x2744();}(function(_0x3a9116,_0xa29c59){const _0x148729=a149_0x4a9f,_0x25ee55=_0x3a9116();while(!![]){try{const _0x205a11=parseInt(_0x148729(0x7f))/0x1+parseInt(_0x148729(0x81))/0x2+parseInt(_0x148729(0x88))/0x3*(parseInt(_0x148729(0x87))/0x4)+-parseInt(_0x148729(0x83))/0x5*(-parseInt(_0x148729(0x80))/0x6)+-parseInt(_0x148729(0x84))/0x7+parseInt(_0x148729(0x86))/0x8*(-parseInt(_0x148729(0x85))/0x9)+-parseInt(_0x148729(0x82))/0xa;if(_0x205a11===_0xa29c59)break;else _0x25ee55['push'](_0x25ee55['shift']());}catch(_0x541657){_0x25ee55['push'](_0x25ee55['shift']());}}}(a149_0x2744,0x28bbd));function a149_0x4a9f(_0x2f25e7,_0x5d0083){_0x2f25e7=_0x2f25e7-0x7f;const _0x2744ec=a149_0x2744();let _0x4a9fe4=_0x2744ec[_0x2f25e7];return _0x4a9fe4;}export const RABETBASE_OUTPUT_FORMAT_VALUES=['json',a149_0xab902b(0x89),'compress'];
@@ -1 +1 @@
1
- const a149_0x41c00e=a149_0x3bea;(function(_0x174b70,_0x2c85bc){const _0x2e9b46=a149_0x3bea,_0xd21f6a=_0x174b70();while(!![]){try{const _0x28b6a0=parseInt(_0x2e9b46(0xa8))/0x1*(parseInt(_0x2e9b46(0xad))/0x2)+-parseInt(_0x2e9b46(0xae))/0x3*(-parseInt(_0x2e9b46(0xac))/0x4)+parseInt(_0x2e9b46(0xb0))/0x5*(-parseInt(_0x2e9b46(0xa9))/0x6)+-parseInt(_0x2e9b46(0xa5))/0x7*(-parseInt(_0x2e9b46(0xaf))/0x8)+-parseInt(_0x2e9b46(0xa6))/0x9+parseInt(_0x2e9b46(0xab))/0xa*(-parseInt(_0x2e9b46(0xaa))/0xb)+parseInt(_0x2e9b46(0xa7))/0xc*(parseInt(_0x2e9b46(0xa4))/0xd);if(_0x28b6a0===_0x2c85bc)break;else _0xd21f6a['push'](_0xd21f6a['shift']());}catch(_0x49b4c3){_0xd21f6a['push'](_0xd21f6a['shift']());}}}(a149_0x89bb,0x872f0));function a149_0x3bea(_0x1cfe21,_0x213bf4){_0x1cfe21=_0x1cfe21-0xa3;const _0x89bbe1=a149_0x89bb();let _0x3beac2=_0x89bbe1[_0x1cfe21];return _0x3beac2;}function a149_0x89bb(){const _0x36d798=['5494044CdbFDs','64339JUJtHk','440NKVVFW','14444rcOlmY','3638EKFkUJ','534FHaaSo','2529608JEaacB','5bSKnAT','./src/api','13HHcKOo','14fLrvKm','2971125jIDyyR','2330040NYbZqw','323rVbRuL'];a149_0x89bb=function(){return _0x36d798;};return a149_0x89bb();}export const DEFAULT_API_DIR=a149_0x41c00e(0xa3);
1
+ function a150_0x436a(_0x45ff92,_0x3949f5){_0x45ff92=_0x45ff92-0xc1;const _0x1d240e=a150_0x1d24();let _0x436af6=_0x1d240e[_0x45ff92];return _0x436af6;}const a150_0x3c4aea=a150_0x436a;(function(_0x573a6f,_0x972a69){const _0x14562a=a150_0x436a,_0x29845b=_0x573a6f();while(!![]){try{const _0x418a38=-parseInt(_0x14562a(0xca))/0x1*(parseInt(_0x14562a(0xc4))/0x2)+-parseInt(_0x14562a(0xc9))/0x3*(parseInt(_0x14562a(0xc5))/0x4)+parseInt(_0x14562a(0xc1))/0x5*(parseInt(_0x14562a(0xc6))/0x6)+-parseInt(_0x14562a(0xcc))/0x7+parseInt(_0x14562a(0xc3))/0x8+parseInt(_0x14562a(0xc7))/0x9+parseInt(_0x14562a(0xc8))/0xa*(-parseInt(_0x14562a(0xcb))/0xb);if(_0x418a38===_0x972a69)break;else _0x29845b['push'](_0x29845b['shift']());}catch(_0x5119b5){_0x29845b['push'](_0x29845b['shift']());}}}(a150_0x1d24,0xa9f1a));function a150_0x1d24(){const _0x14d614=['9476288TnTkCp','627178Hojnds','3219764NOQemW','462PzMnYg','8914005gJEqKS','7268020wTJAQK','3bqoZqs','1jgdYdC','11fvYuVB','4392325iUUgqF','64540rfShTe','./src/api'];a150_0x1d24=function(){return _0x14d614;};return a150_0x1d24();}export const DEFAULT_API_DIR=a150_0x3c4aea(0xc2);
@@ -1 +1 @@
1
- function a150_0x5920(_0x117bf9,_0x70472b){_0x117bf9=_0x117bf9-0x181;const _0x4425d4=a150_0x4425();let _0x592043=_0x4425d4[_0x117bf9];return _0x592043;}const a150_0x477157=a150_0x5920;function a150_0x4425(){const _0x938548=['3OAxzgz','2224240TvesLn','high-risk-write','1wFRZTf','3486195OBwhuJ','2343635usHczz','351780jgwJKI','318868dGoUhZ','16xFtErl','273475dNVXDr','write','3207868bueDol'];a150_0x4425=function(){return _0x938548;};return a150_0x4425();}(function(_0x3ac3d3,_0x2575e9){const _0x25a12d=a150_0x5920,_0x2f622b=_0x3ac3d3();while(!![]){try{const _0x1c8cd1=parseInt(_0x25a12d(0x183))/0x1*(-parseInt(_0x25a12d(0x187))/0x2)+-parseInt(_0x25a12d(0x18c))/0x3*(parseInt(_0x25a12d(0x18b))/0x4)+parseInt(_0x25a12d(0x189))/0x5+parseInt(_0x25a12d(0x186))/0x6+-parseInt(_0x25a12d(0x185))/0x7*(-parseInt(_0x25a12d(0x188))/0x8)+parseInt(_0x25a12d(0x184))/0x9+parseInt(_0x25a12d(0x181))/0xa;if(_0x1c8cd1===_0x2575e9)break;else _0x2f622b['push'](_0x2f622b['shift']());}catch(_0x3c9781){_0x2f622b['push'](_0x2f622b['shift']());}}}(a150_0x4425,0x694d1));export const RISK_LEVEL_VALUES=['read',a150_0x477157(0x18a),a150_0x477157(0x182)];
1
+ const a151_0x563c40=a151_0x5ac9;function a151_0x5ac9(_0x412e1a,_0x14e43e){_0x412e1a=_0x412e1a-0x8b;const _0x401766=a151_0x4017();let _0x5ac92b=_0x401766[_0x412e1a];return _0x5ac92b;}(function(_0x10c17c,_0x185f12){const _0x235b6f=a151_0x5ac9,_0x41b175=_0x10c17c();while(!![]){try{const _0x526813=-parseInt(_0x235b6f(0x94))/0x1*(parseInt(_0x235b6f(0x8f))/0x2)+parseInt(_0x235b6f(0x98))/0x3+parseInt(_0x235b6f(0x8d))/0x4*(-parseInt(_0x235b6f(0x99))/0x5)+-parseInt(_0x235b6f(0x97))/0x6*(-parseInt(_0x235b6f(0x93))/0x7)+-parseInt(_0x235b6f(0x90))/0x8*(parseInt(_0x235b6f(0x92))/0x9)+-parseInt(_0x235b6f(0x8e))/0xa*(parseInt(_0x235b6f(0x8b))/0xb)+parseInt(_0x235b6f(0x91))/0xc;if(_0x526813===_0x185f12)break;else _0x41b175['push'](_0x41b175['shift']());}catch(_0x483109){_0x41b175['push'](_0x41b175['shift']());}}}(a151_0x4017,0xa6b81));export const RISK_LEVEL_VALUES=[a151_0x563c40(0x95),a151_0x563c40(0x96),a151_0x563c40(0x8c)];function a151_0x4017(){const _0x5ae1ea=['2339210dXwBeq','2IymDjC','24ctsnPU','22271016rsLCSd','1864899DCLxkr','2898357lYPASA','503993cyRYPM','read','write','12rSdlpR','1236981lacHRD','5AHsMMy','11Lnjogf','high-risk-write','4215676WcONZM'];a151_0x4017=function(){return _0x5ae1ea;};return a151_0x4017();}
@@ -1 +1 @@
1
- (function(_0x53faab,_0x32cbfc){const _0xf69972=a151_0x1400,_0x449683=_0x53faab();while(!![]){try{const _0x1beb59=-parseInt(_0xf69972(0x1d1))/0x1+parseInt(_0xf69972(0x1e4))/0x2*(parseInt(_0xf69972(0x1d2))/0x3)+parseInt(_0xf69972(0x1fa))/0x4+-parseInt(_0xf69972(0x1e6))/0x5*(-parseInt(_0xf69972(0x1d5))/0x6)+-parseInt(_0xf69972(0x1e7))/0x7*(-parseInt(_0xf69972(0x1e5))/0x8)+parseInt(_0xf69972(0x1e9))/0x9+parseInt(_0xf69972(0x1f9))/0xa*(-parseInt(_0xf69972(0x1e0))/0xb);if(_0x1beb59===_0x32cbfc)break;else _0x449683['push'](_0x449683['shift']());}catch(_0x33ab7f){_0x449683['push'](_0x449683['shift']());}}}(a151_0x428f,0x8dd54));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';function a151_0x1400(_0xe057ab,_0x3cb05f){_0xe057ab=_0xe057ab-0x1d0;const _0x428f28=a151_0x428f();let _0x140080=_0x428f28[_0xe057ab];return _0x140080;}import{isDaily,normalizeEnv}from'../constant/env.js';import{normalizeLegacyOutputFormat}from'../framework/types.js';function stringConfigValue(_0x18f1ad){const _0x2765e5=a151_0x1400;return typeof _0x18f1ad==='string'&&_0x18f1ad['trim']()?_0x18f1ad[_0x2765e5(0x1d0)]():undefined;}function appProfiles(_0x1918ca){const _0x33c90f=a151_0x1400;return _0x1918ca[_0x33c90f(0x1e3)]&&typeof _0x1918ca[_0x33c90f(0x1e3)]===_0x33c90f(0x1f7)?_0x1918ca[_0x33c90f(0x1e3)]:{};}function resolveDefaultAppName(_0xf2c380){const _0x1bec57=a151_0x1400,_0x3a7c3a=stringConfigValue(_0xf2c380[_0x1bec57(0x1ed)]);if(_0x3a7c3a)return _0x3a7c3a;return Object['keys'](appProfiles(_0xf2c380))[0x0];}function resolveTopLevelAppCode(_0x3648ea){const _0x1b9268=a151_0x1400;return stringConfigValue(_0x3648ea[_0x1b9268(0x1d9)])||stringConfigValue(_0x3648ea[_0x1b9268(0x1d3)]);}export function resolveAppConfig({raw:_0x3e3eee,flags:_0x45d8c3,layers:_0x241bd4,readEnv:_0x551dd6}){const _0x221efc=a151_0x1400,_0x2456f1=_0x241bd4?.[_0x221efc(0x1e8)]??{},_0x2d8786=_0x241bd4?.[_0x221efc(0x1f8)]??{},_0x16e557=Object['keys'](_0x2456f1)[_0x221efc(0x1dd)]>0x0,_0x3e0494=!_0x16e557||_0x2456f1[_0x221efc(0x1ee)]===!![],_0x5dedc4=_0x16e557?resolveDefaultAppName(_0x2456f1):undefined,_0x4b9eef=_0x3e0494?resolveDefaultAppName(_0x2d8786):undefined,_0x418f3c=stringConfigValue(_0x45d8c3[_0x221efc(0x1d3)]),_0x219341=_0x551dd6(_0x221efc(0x1de)),_0x1cf584={};if(_0x3e3eee['apps']&&typeof _0x3e3eee[_0x221efc(0x1e3)]==='object')for(const [_0x2558c2,_0x3ae5fd]of Object['entries'](_0x3e3eee[_0x221efc(0x1e3)])){_0x3ae5fd&&typeof _0x3ae5fd===_0x221efc(0x1f7)&&_0x3ae5fd[_0x221efc(0x1d9)]&&(_0x1cf584[_0x2558c2]=_0x3ae5fd);}const _0x313cbf=_0x3e3eee['defaultApp']||undefined,_0x338216=Object[_0x221efc(0x1f6)](_0x1cf584)[_0x221efc(0x1dd)]>0x0,_0x11d46f=_0x418f3c||_0x5dedc4||_0x219341||_0x4b9eef||_0x313cbf||undefined,_0x160eee=stringConfigValue(_0x45d8c3[_0x221efc(0x1d9)]),_0x4f9548=_0x160eee?Object[_0x221efc(0x1ec)](_0x1cf584)[_0x221efc(0x1f3)](([,_0x27f468])=>_0x27f468?.['appcode']===_0x160eee):undefined,_0x409613=_0x4f9548?.[0x0],_0x4034fc=_0x4f9548?.[0x1],_0x934c9d=_0x160eee?_0x409613:_0x11d46f;let _0x1dde3b=_0x934c9d&&_0x1cf584[_0x934c9d]?_0x1cf584[_0x934c9d]:undefined;_0x160eee&&_0x4034fc&&(_0x1dde3b=_0x4034fc);const _0x193cc0=_0x160eee?_0x4034fc??_0x1dde3b:_0x1dde3b,_0x505c69=!_0x418f3c&&!_0x5dedc4&&_0x219341&&_0x934c9d===_0x219341,_0x1e230b=_0x418f3c||(_0x505c69?_0x219341:undefined)||(_0x160eee?_0x409613:undefined),_0x5774b8=_0x193cc0?.[_0x221efc(0x1d9)],_0x285d00=_0x16e557?resolveTopLevelAppCode(_0x2456f1):undefined,_0x3c85d9=_0x3e0494?resolveTopLevelAppCode(_0x2d8786):undefined,_0x5925d1=_0x418f3c||_0x5dedc4?_0x5774b8:undefined,_0x9260f1=!_0x418f3c&&!_0x5dedc4?_0x5774b8:undefined,_0x1900f1=_0x160eee||_0x5925d1||_0x285d00||_0x9260f1||_0x3c85d9||undefined,_0x2d85cf=_0x16e557?stringConfigValue(_0x2456f1[_0x221efc(0x1f5)]):undefined,_0x57d060=_0x3e0494?stringConfigValue(_0x2d8786[_0x221efc(0x1f5)]):undefined,_0x20017d=_0x45d8c3[_0x221efc(0x1f5)]||_0x193cc0?.[_0x221efc(0x1f5)]||_0x2d85cf||_0x551dd6(_0x221efc(0x1ea))||_0x57d060||_0x3e3eee['env']||DEFAULT_CONFIG_VALUES[_0x221efc(0x1f5)],_0x5a5fbc=_0x193cc0?.[_0x221efc(0x1ef)]||_0x3e3eee[_0x221efc(0x1ef)]||DEFAULT_CONFIG_VALUES['locale'],_0x102c00=_0x551dd6(_0x221efc(0x1e1))||_0x193cc0?.['cookie']||_0x3e3eee['cookie']||undefined,_0x2d2ee1=_0x551dd6(_0x221efc(0x1d8))||_0x193cc0?.[_0x221efc(0x1d7)]||_0x3e3eee[_0x221efc(0x1d7)]||undefined,_0x449221=_0x45d8c3[_0x221efc(0x1da)]||_0x551dd6('FORMAT')||_0x193cc0?.[_0x221efc(0x1da)]||_0x3e3eee[_0x221efc(0x1da)],_0x5ee8ed=normalizeLegacyOutputFormat(_0x449221),_0x5eb643=_0x551dd6('PAGE_SIZE')||_0x193cc0?.[_0x221efc(0x1d4)]||_0x3e3eee[_0x221efc(0x1d4)],_0x5e31af=_0x5eb643?Number(_0x5eb643)||undefined:undefined,_0x5c21cc=_0x551dd6(_0x221efc(0x1f1))||_0x551dd6(_0x221efc(0x1dc))||_0x193cc0?.['riskLevel']||_0x3e3eee[_0x221efc(0x1e2)]||_0x3e3eee[_0x221efc(0x1d6)],_0x38c19d=_0x5c21cc===_0x221efc(0x1db)||_0x5c21cc==='write'?_0x5c21cc:DEFAULT_CONFIG_VALUES[_0x221efc(0x1e2)],_0x1d5f63=_0x551dd6(_0x221efc(0x1f4)),_0x2f90fc=_0x1d5f63==='1'||_0x1d5f63===_0x221efc(0x1df),_0x4ee041=_0x193cc0?.[_0x221efc(0x1eb)]||_0x3e3eee['apiDir']||DEFAULT_CONFIG_VALUES[_0x221efc(0x1eb)],_0x5294d9=isDaily(normalizeEnv(String(_0x20017d)))?_0x221efc(0x1f0):'production';return{'appCode':typeof _0x1900f1===_0x221efc(0x1f2)&&_0x1900f1[_0x221efc(0x1d0)]()?_0x1900f1[_0x221efc(0x1d0)]():undefined,'env':_0x5294d9,'locale':_0x5a5fbc,'cookie':_0x102c00,'accessKey':_0x2d2ee1,'format':_0x5ee8ed,'pageSize':_0x5e31af,'riskLevel':_0x38c19d,'verbose':_0x2f90fc,'apiDir':_0x4ee041,'apps':_0x1cf584,'defaultApp':_0x313cbf,'currentApp':_0x338216?_0x934c9d:undefined,'explicitAppName':_0x1e230b};}function a151_0x428f(){const _0x57a979=['read','MAX_RISK','length','APP','true','331771uFcpaX','COOKIE','riskLevel','apps','82226qmaEWP','16bKgJmG','105IiOspe','1089599ZNLTod','projectConfig','8259426Ucrppf','ENV','apiDir','entries','defaultApp','inherit','locale','daily','RISK_LEVEL','string','find','VERBOSE','env','keys','object','globalConfig','730EIbmje','346920NEEzVb','trim','58786TtVOcS','66iQijrX','app','pageSize','177498RqAbzL','maxRisk','accessKey','ACCESS_KEY','appcode','format'];a151_0x428f=function(){return _0x57a979;};return a151_0x428f();}
1
+ (function(_0x27bbf6,_0x3fedee){const _0x468c9e=a152_0x7ad6,_0x4a5192=_0x27bbf6();while(!![]){try{const _0x2edbb6=-parseInt(_0x468c9e(0x7b))/0x1*(parseInt(_0x468c9e(0xa5))/0x2)+-parseInt(_0x468c9e(0x8d))/0x3*(parseInt(_0x468c9e(0x8c))/0x4)+parseInt(_0x468c9e(0x99))/0x5*(parseInt(_0x468c9e(0xa4))/0x6)+parseInt(_0x468c9e(0xa0))/0x7*(parseInt(_0x468c9e(0x7a))/0x8)+parseInt(_0x468c9e(0x87))/0x9+-parseInt(_0x468c9e(0x83))/0xa+parseInt(_0x468c9e(0x94))/0xb*(-parseInt(_0x468c9e(0x97))/0xc);if(_0x2edbb6===_0x3fedee)break;else _0x4a5192['push'](_0x4a5192['shift']());}catch(_0x584529){_0x4a5192['push'](_0x4a5192['shift']());}}}(a152_0x49f3,0x3bc62));function a152_0x7ad6(_0x3a2ca6,_0x9228d2){_0x3a2ca6=_0x3a2ca6-0x7a;const _0x49f3bf=a152_0x49f3();let _0x7ad6da=_0x49f3bf[_0x3a2ca6];return _0x7ad6da;}import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{isDaily,normalizeEnv}from'../constant/env.js';import{normalizeLegacyOutputFormat}from'../framework/types.js';function stringConfigValue(_0x2c0243){const _0x24ad77=a152_0x7ad6;return typeof _0x2c0243===_0x24ad77(0x90)&&_0x2c0243[_0x24ad77(0x91)]()?_0x2c0243[_0x24ad77(0x91)]():undefined;}function appProfiles(_0x48f630){const _0x1ec4ad=a152_0x7ad6;return _0x48f630[_0x1ec4ad(0x7d)]&&typeof _0x48f630[_0x1ec4ad(0x7d)]===_0x1ec4ad(0x7f)?_0x48f630[_0x1ec4ad(0x7d)]:{};}function a152_0x49f3(){const _0x265097=['true','1861455TOegXh','MAX_RISK','daily','production','format','pageSize','length','2640197JQtrGY','RISK_LEVEL','COOKIE','apiDir','6gQQxJZ','5322qjHzlj','write','PAGE_SIZE','8uDxjyR','28mYZTNR','cookie','apps','inherit','object','read','ACCESS_KEY','VERBOSE','196280BzxUqv','accessKey','env','app','1641789esfZLQ','entries','projectConfig','riskLevel','ENV','4oHkNHp','974058ZUClIF','keys','FORMAT','string','trim','globalConfig','locale','2950497znzKsl','appcode','defaultApp','12kBQrTh'];a152_0x49f3=function(){return _0x265097;};return a152_0x49f3();}function resolveDefaultAppName(_0x1d1d6f){const _0x3e2b62=a152_0x7ad6,_0x2bc6ba=stringConfigValue(_0x1d1d6f[_0x3e2b62(0x96)]);if(_0x2bc6ba)return _0x2bc6ba;return Object[_0x3e2b62(0x8e)](appProfiles(_0x1d1d6f))[0x0];}function resolveTopLevelAppCode(_0x3092a6){const _0x3b2166=a152_0x7ad6;return stringConfigValue(_0x3092a6[_0x3b2166(0x95)])||stringConfigValue(_0x3092a6[_0x3b2166(0x86)]);}export function resolveAppConfig({raw:_0x59d58e,flags:_0x54b71a,layers:_0x2e713b,readEnv:_0x5b6e1c}){const _0x40a52f=a152_0x7ad6,_0xd443b9=_0x2e713b?.[_0x40a52f(0x89)]??{},_0x5dbaaf=_0x2e713b?.[_0x40a52f(0x92)]??{},_0x3eeedf=Object[_0x40a52f(0x8e)](_0xd443b9)[_0x40a52f(0x9f)]>0x0,_0x1de2bc=!_0x3eeedf||_0xd443b9[_0x40a52f(0x7e)]===!![],_0x2395d8=_0x3eeedf?resolveDefaultAppName(_0xd443b9):undefined,_0x29b334=_0x1de2bc?resolveDefaultAppName(_0x5dbaaf):undefined,_0x55e21a=stringConfigValue(_0x54b71a[_0x40a52f(0x86)]),_0x22cf07=_0x5b6e1c('APP'),_0x3f17e5={};if(_0x59d58e[_0x40a52f(0x7d)]&&typeof _0x59d58e['apps']===_0x40a52f(0x7f))for(const [_0x1acdbb,_0x4bc320]of Object['entries'](_0x59d58e['apps'])){_0x4bc320&&typeof _0x4bc320===_0x40a52f(0x7f)&&_0x4bc320['appcode']&&(_0x3f17e5[_0x1acdbb]=_0x4bc320);}const _0x36c1e6=_0x59d58e[_0x40a52f(0x96)]||undefined,_0x1b3070=Object[_0x40a52f(0x8e)](_0x3f17e5)[_0x40a52f(0x9f)]>0x0,_0x416987=_0x55e21a||_0x2395d8||_0x22cf07||_0x29b334||_0x36c1e6||undefined,_0x3e7694=stringConfigValue(_0x54b71a[_0x40a52f(0x95)]),_0x5c24bd=_0x3e7694?Object[_0x40a52f(0x88)](_0x3f17e5)['find'](([,_0x232265])=>_0x232265?.[_0x40a52f(0x95)]===_0x3e7694):undefined,_0x4672f9=_0x5c24bd?.[0x0],_0x3c4744=_0x5c24bd?.[0x1],_0x2b8fd6=_0x3e7694?_0x4672f9:_0x416987;let _0x454c71=_0x2b8fd6&&_0x3f17e5[_0x2b8fd6]?_0x3f17e5[_0x2b8fd6]:undefined;_0x3e7694&&_0x3c4744&&(_0x454c71=_0x3c4744);const _0x3108ab=_0x3e7694?_0x3c4744??_0x454c71:_0x454c71,_0x308ad9=!_0x55e21a&&!_0x2395d8&&_0x22cf07&&_0x2b8fd6===_0x22cf07,_0x4100b2=_0x55e21a||(_0x308ad9?_0x22cf07:undefined)||(_0x3e7694?_0x4672f9:undefined),_0xa7fa86=_0x3108ab?.[_0x40a52f(0x95)],_0x3ab0a7=_0x3eeedf?resolveTopLevelAppCode(_0xd443b9):undefined,_0xfd09f3=_0x1de2bc?resolveTopLevelAppCode(_0x5dbaaf):undefined,_0x1f30e3=_0x55e21a||_0x2395d8?_0xa7fa86:undefined,_0x3c9fde=!_0x55e21a&&!_0x2395d8?_0xa7fa86:undefined,_0x59a0c5=_0x3e7694||_0x1f30e3||_0x3ab0a7||_0x3c9fde||_0xfd09f3||undefined,_0x41eb4e=_0x3eeedf?stringConfigValue(_0xd443b9[_0x40a52f(0x85)]):undefined,_0x6d00a8=_0x1de2bc?stringConfigValue(_0x5dbaaf[_0x40a52f(0x85)]):undefined,_0x1f0261=_0x54b71a[_0x40a52f(0x85)]||_0x3108ab?.[_0x40a52f(0x85)]||_0x41eb4e||_0x5b6e1c(_0x40a52f(0x8b))||_0x6d00a8||_0x59d58e['env']||DEFAULT_CONFIG_VALUES[_0x40a52f(0x85)],_0x1adf6e=_0x3108ab?.[_0x40a52f(0x93)]||_0x59d58e['locale']||DEFAULT_CONFIG_VALUES[_0x40a52f(0x93)],_0x3663c1=_0x5b6e1c(_0x40a52f(0xa2))||_0x3108ab?.[_0x40a52f(0x7c)]||_0x59d58e[_0x40a52f(0x7c)]||undefined,_0x55df38=_0x5b6e1c(_0x40a52f(0x81))||_0x3108ab?.[_0x40a52f(0x84)]||_0x59d58e['accessKey']||undefined,_0x5c368c=_0x54b71a['format']||_0x5b6e1c(_0x40a52f(0x8f))||_0x3108ab?.['format']||_0x59d58e[_0x40a52f(0x9d)],_0x5a8ff6=normalizeLegacyOutputFormat(_0x5c368c),_0x23e582=_0x5b6e1c(_0x40a52f(0xa7))||_0x3108ab?.[_0x40a52f(0x9e)]||_0x59d58e[_0x40a52f(0x9e)],_0x276a11=_0x23e582?Number(_0x23e582)||undefined:undefined,_0x39f29d=_0x5b6e1c(_0x40a52f(0xa1))||_0x5b6e1c(_0x40a52f(0x9a))||_0x3108ab?.[_0x40a52f(0x8a)]||_0x59d58e['riskLevel']||_0x59d58e['maxRisk'],_0x532b75=_0x39f29d===_0x40a52f(0x80)||_0x39f29d===_0x40a52f(0xa6)?_0x39f29d:DEFAULT_CONFIG_VALUES[_0x40a52f(0x8a)],_0x27c2a2=_0x5b6e1c(_0x40a52f(0x82)),_0x2c145a=_0x27c2a2==='1'||_0x27c2a2===_0x40a52f(0x98),_0x329a27=_0x3108ab?.[_0x40a52f(0xa3)]||_0x59d58e['apiDir']||DEFAULT_CONFIG_VALUES[_0x40a52f(0xa3)],_0x50735c=isDaily(normalizeEnv(String(_0x1f0261)))?_0x40a52f(0x9b):_0x40a52f(0x9c);return{'appCode':typeof _0x59a0c5===_0x40a52f(0x90)&&_0x59a0c5[_0x40a52f(0x91)]()?_0x59a0c5[_0x40a52f(0x91)]():undefined,'env':_0x50735c,'locale':_0x1adf6e,'cookie':_0x3663c1,'accessKey':_0x55df38,'format':_0x5a8ff6,'pageSize':_0x276a11,'riskLevel':_0x532b75,'verbose':_0x2c145a,'apiDir':_0x329a27,'apps':_0x3f17e5,'defaultApp':_0x36c1e6,'currentApp':_0x1b3070?_0x2b8fd6:undefined,'explicitAppName':_0x4100b2};}
@@ -1 +1 @@
1
- (function(_0x27a2c5,_0x5bdc11){const _0x213ece=a152_0x4bb9,_0x4226e2=_0x27a2c5();while(!![]){try{const _0x3c9791=-parseInt(_0x213ece(0x131))/0x1+-parseInt(_0x213ece(0x12d))/0x2+parseInt(_0x213ece(0x12b))/0x3*(parseInt(_0x213ece(0x132))/0x4)+-parseInt(_0x213ece(0x12e))/0x5+parseInt(_0x213ece(0x130))/0x6+parseInt(_0x213ece(0x12f))/0x7*(-parseInt(_0x213ece(0x12c))/0x8)+parseInt(_0x213ece(0x133))/0x9;if(_0x3c9791===_0x5bdc11)break;else _0x4226e2['push'](_0x4226e2['shift']());}catch(_0xca296e){_0x4226e2['push'](_0x4226e2['shift']());}}}(a152_0x4180,0xe7774));function a152_0x4bb9(_0x397432,_0x7608ff){_0x397432=_0x397432-0x12b;const _0x41802f=a152_0x4180();let _0x4bb91c=_0x41802f[_0x397432];return _0x4bb91c;}import{getIsSessionValid}from'../auth/is-session-valid.js';import{CliErrors}from'../errors.js';export async function buildAuth(_0x250e86){const {getCookie:_0x3c1b70}=await import('../auth/get-cookie.js'),_0xbbcdf2=_0x250e86['cookie']||_0x3c1b70(),_0x17651d=_0xbbcdf2?await getIsSessionValid():![];return{'cookie':_0xbbcdf2,'isLoggedIn':_0x17651d,async 'getOrLogin'(){if(_0xbbcdf2&&_0x17651d)return _0xbbcdf2;throw CliErrors['authRequired']();}};}function a152_0x4180(){const _0x38e220=['1817992wDbpkq','7317940qBFPrg','28zfNDgu','2858532UFmKpA','1828917ozCOAr','4zJgOzf','37949814nhsFvd','5421363QqNmam','2701208SbMLmU'];a152_0x4180=function(){return _0x38e220;};return a152_0x4180();}
1
+ function a153_0x4a09(){const _0x217903=['1MgxrZg','../auth/get-cookie.js','175416XlDHzO','263260piQGVO','581497KlzJjO','24sHFiNY','34785JqrDFG','2611279UwBRqA','authRequired','32HxoLnM','179210jHQklT','3863100ufmNvu','190drsqIC','16XiqnEQ'];a153_0x4a09=function(){return _0x217903;};return a153_0x4a09();}(function(_0x4f9b8f,_0x2eea56){const _0x33dc6d=a153_0x4fdb,_0x4bf721=_0x4f9b8f();while(!![]){try{const _0x47d919=parseInt(_0x33dc6d(0x18e))/0x1*(-parseInt(_0x33dc6d(0x18a))/0x2)+-parseInt(_0x33dc6d(0x182))/0x3*(-parseInt(_0x33dc6d(0x189))/0x4)+-parseInt(_0x33dc6d(0x183))/0x5*(-parseInt(_0x33dc6d(0x185))/0x6)+parseInt(_0x33dc6d(0x184))/0x7*(parseInt(_0x33dc6d(0x18d))/0x8)+parseInt(_0x33dc6d(0x186))/0x9*(parseInt(_0x33dc6d(0x18c))/0xa)+-parseInt(_0x33dc6d(0x187))/0xb+-parseInt(_0x33dc6d(0x18b))/0xc;if(_0x47d919===_0x2eea56)break;else _0x4bf721['push'](_0x4bf721['shift']());}catch(_0x57c82a){_0x4bf721['push'](_0x4bf721['shift']());}}}(a153_0x4a09,0x41af2));function a153_0x4fdb(_0x2091f3,_0xf430f4){_0x2091f3=_0x2091f3-0x182;const _0x4a0943=a153_0x4a09();let _0x4fdb22=_0x4a0943[_0x2091f3];return _0x4fdb22;}import{getIsSessionValid}from'../auth/is-session-valid.js';import{CliErrors}from'../errors.js';export async function buildAuth(_0x5c70c6){const _0x4a62b7=a153_0x4fdb,{getCookie:_0x1c9209}=await import(_0x4a62b7(0x18f)),_0x1d5f6f=_0x5c70c6['cookie']||_0x1c9209(),_0x393794=_0x1d5f6f?await getIsSessionValid():![];return{'cookie':_0x1d5f6f,'isLoggedIn':_0x393794,async 'getOrLogin'(){const _0xa47cf8=_0x4a62b7;if(_0x1d5f6f&&_0x393794)return _0x1d5f6f;throw CliErrors[_0xa47cf8(0x188)]();}};}
@@ -1 +1 @@
1
- const a153_0x6e8751=a153_0x25fe;(function(_0xc1865f,_0x5dcfe8){const _0x2d548a=a153_0x25fe,_0x503359=_0xc1865f();while(!![]){try{const _0x7443c9=-parseInt(_0x2d548a(0x118))/0x1+-parseInt(_0x2d548a(0x12d))/0x2*(parseInt(_0x2d548a(0x133))/0x3)+parseInt(_0x2d548a(0x13f))/0x4*(-parseInt(_0x2d548a(0x13a))/0x5)+-parseInt(_0x2d548a(0x13c))/0x6+-parseInt(_0x2d548a(0x123))/0x7+-parseInt(_0x2d548a(0x12e))/0x8+parseInt(_0x2d548a(0x13b))/0x9*(parseInt(_0x2d548a(0x127))/0xa);if(_0x7443c9===_0x5dcfe8)break;else _0x503359['push'](_0x503359['shift']());}catch(_0x12c96a){_0x503359['push'](_0x503359['shift']());}}}(a153_0x2e17,0xbf2cd));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=a153_0x6e8751(0x12b);export const CONFIG_NAMES=[a153_0x6e8751(0x12b),a153_0x6e8751(0x113),a153_0x6e8751(0x11d)];export const LEGACY_CONFIG_NAMES=CONFIG_NAMES[a153_0x6e8751(0x11c)](_0x4cbf40=>_0x4cbf40!==NEW_CONFIG_NAME);const normalizedWriteCache=new Map();export function resolveConfigPath(_0x51ba1a){for(const _0x2923f6 of CONFIG_NAMES){const _0x5c0d13=resolve(_0x51ba1a,_0x2923f6);if(existsSync(_0x5c0d13))return _0x5c0d13;}return undefined;}export function findProjectRootDirectory(_0x377429=process[a153_0x6e8751(0x13e)]()){let _0x4ffd01=resolve(_0x377429);const {root:_0x64ef86}=parse(_0x4ffd01),_0x207996=homedir();while(!![]){if(resolveConfigPath(_0x4ffd01)){if(_0x4ffd01===_0x207996)break;return _0x4ffd01;}if(_0x4ffd01===_0x64ef86||_0x4ffd01===_0x207996)break;const _0x1f4707=dirname(_0x4ffd01);if(_0x1f4707===_0x4ffd01)break;_0x4ffd01=_0x1f4707;}return resolve(_0x377429);}export function getProjectConfigPath(){return resolveConfigPath(process['cwd']());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function isInProject(){return!!getProjectConfigPath();}export function inspectCliConfigJsonFile(_0x3cf0fb){const _0x89bb82=a153_0x6e8751;if(!existsSync(_0x3cf0fb))return{'status':_0x89bb82(0x111)};try{const _0x42dcf8=readFileSync(_0x3cf0fb,{'encoding':_0x89bb82(0x139)});if(!_0x42dcf8?.[_0x89bb82(0x12a)]())return{'status':_0x89bb82(0x11a)};const _0x14f389=JSON['parse'](_0x42dcf8);return{'status':'ok','data':_0x14f389};}catch(_0x2c087f){return{'status':_0x89bb82(0x136),'message':_0x2c087f instanceof Error?_0x2c087f[_0x89bb82(0x112)]:String(_0x2c087f)};}}function parseCliConfigJsonFile(_0xa64636,_0xd71c73,_0x556c34){const _0x169c3c=a153_0x6e8751,_0x28866e=inspectCliConfigJsonFile(_0xa64636);if(_0x28866e[_0x169c3c(0x116)]===_0x169c3c(0x111)||_0x28866e['status']===_0x169c3c(0x11a))return{};if(_0x28866e[_0x169c3c(0x116)]==='ok')return _0x28866e[_0x169c3c(0x134)];return _0xd71c73==='warn'&&_0x556c34&&console[_0x169c3c(0x136)](CLI_BIN_NAME+':\x20'+_0x556c34+'\x20config\x20file\x20ignored\x20(invalid\x20JSON\x20or\x20unreadable):\x20'+_0xa64636+'\x0a\x20\x20'+_0x28866e[_0x169c3c(0x112)]),{};}function normalizeLegacyConfigShape(_0x590edb){const _0x40fad1=a153_0x6e8751;if(!_0x590edb||typeof _0x590edb!==_0x40fad1(0x12c))return{'config':{},'migrated':![]};const _0x25ea44={..._0x590edb},_0x362d25=_0x25ea44[_0x40fad1(0x122)]&&typeof _0x25ea44['apps']==='object'?{..._0x25ea44[_0x40fad1(0x122)]}:{},_0x32cf81=Object[_0x40fad1(0x11b)](_0x362d25)[_0x40fad1(0x126)],_0x4e055c=_0x25ea44['appcode']||_0x25ea44[_0x40fad1(0x141)];let _0x1c42be=![];if(_0x4e055c&&_0x32cf81===0x0){const _0x264d33=typeof _0x25ea44[_0x40fad1(0x131)]===_0x40fad1(0x11e)&&_0x25ea44['defaultApp']['trim']()?_0x25ea44[_0x40fad1(0x131)]:String(_0x4e055c)[_0x40fad1(0x12a)]();_0x362d25[_0x264d33]={'appcode':String(_0x4e055c)['trim'](),..._0x25ea44['env']!=null?{'env':_0x25ea44[_0x40fad1(0x129)]}:{},..._0x25ea44[_0x40fad1(0x11f)]!=null?{'apiDir':_0x25ea44[_0x40fad1(0x11f)]}:{},..._0x25ea44['cookie']!=null?{'cookie':_0x25ea44[_0x40fad1(0x114)]}:{},..._0x25ea44[_0x40fad1(0x12f)]!=null?{'accessKey':_0x25ea44[_0x40fad1(0x12f)]}:{},..._0x25ea44[_0x40fad1(0x13d)]!=null?{'format':_0x25ea44[_0x40fad1(0x13d)]}:{},..._0x25ea44[_0x40fad1(0x119)]!=null?{'pageSize':_0x25ea44[_0x40fad1(0x119)]}:{},..._0x25ea44[_0x40fad1(0x128)]!=null?{'riskLevel':_0x25ea44[_0x40fad1(0x128)]}:{},..._0x25ea44[_0x40fad1(0x135)]!=null?{'locale':_0x25ea44[_0x40fad1(0x135)]}:{}},_0x25ea44[_0x40fad1(0x122)]=_0x362d25;if(!_0x25ea44['defaultApp'])_0x25ea44['defaultApp']=_0x264d33;_0x1c42be=!![];}return('appcode'in _0x25ea44||'app'in _0x25ea44)&&(delete _0x25ea44[_0x40fad1(0x120)],delete _0x25ea44[_0x40fad1(0x141)],_0x1c42be=!![]),{'config':_0x25ea44,'migrated':_0x1c42be};}function a153_0x2e17(){const _0x4627ec=['app','missing','message','.lovrabet.json','cookie','project','status','get','378377KhMkkY','pageSize','empty','keys','filter','.lovrabetrc','string','apiDir','appcode','silent','apps','10601899GqaLjv','Project','inherit','length','13490yNkWOh','riskLevel','env','trim','.rabetbase.json','object','258382pqiwbN','10894728ZNIUvH','accessKey','stringify','defaultApp','migrated','15AtNaRW','data','locale','error','warn','set','utf8','1633765JMJiuk','36513LnHClB','2774142yLXdeA','format','cwd','4cdyyDO','config'];a153_0x2e17=function(){return _0x4627ec;};return a153_0x2e17();}function writeNormalizedConfigIfNeeded(_0x296850,_0x421172){const _0x2ea004=a153_0x6e8751,_0x374d10=JSON[_0x2ea004(0x130)](_0x421172,null,0x2)+'\x0a';if(normalizedWriteCache[_0x2ea004(0x117)](_0x296850)===_0x374d10)return;writeConfigFile(_0x296850,_0x421172),normalizedWriteCache[_0x2ea004(0x138)](_0x296850,_0x374d10);}function parseAndNormalizeConfig(_0x18291d,_0x178ef6,_0x5d76ce){const _0x4e7297=a153_0x6e8751,_0x1bdc05=parseCliConfigJsonFile(_0x18291d,_0x178ef6,_0x5d76ce),_0x431018=normalizeLegacyConfigShape(_0x1bdc05);if(_0x431018[_0x4e7297(0x132)])try{writeNormalizedConfigIfNeeded(_0x18291d,_0x431018['config']);}catch{}return _0x431018[_0x4e7297(0x140)];}function a153_0x25fe(_0x530c1e,_0x3c198a){_0x530c1e=_0x530c1e-0x111;const _0x2e1724=a153_0x2e17();let _0x25fe12=_0x2e1724[_0x530c1e];return _0x25fe12;}export function loadRawConfigLayers(_0x53710a){const _0x410f29=a153_0x6e8751;let _0x5cfaf6={},_0x3f4c21={};const _0x435713=resolveConfigPath(homedir());_0x435713&&(_0x5cfaf6=parseAndNormalizeConfig(_0x435713,_0x410f29(0x137),'Global'));const _0x4f6cc0=_0x53710a??findProjectRootDirectory(),_0x82e2cc=resolveConfigPath(_0x4f6cc0);return _0x82e2cc&&(_0x3f4c21=parseAndNormalizeConfig(_0x82e2cc,_0x410f29(0x137),_0x410f29(0x124))),{'globalPath':_0x435713,'projectPath':_0x82e2cc,'globalConfig':_0x5cfaf6,'projectConfig':_0x3f4c21};}const INHERIT_WHITELIST=['cookie',a153_0x6e8751(0x12f),'locale','format','riskLevel',a153_0x6e8751(0x119)];export function mergeRawConfigLayers(_0x4b34e6){const _0x2cb5ab=a153_0x6e8751,{globalConfig:_0x1767c3,projectConfig:_0x511871}=_0x4b34e6,_0x4e0f16=Object[_0x2cb5ab(0x11b)](_0x511871)[_0x2cb5ab(0x126)]>0x0;if(!_0x4e0f16)return mergeGlobalOnly(_0x1767c3);if(_0x511871[_0x2cb5ab(0x125)]===!![])return mergeFullInherit(_0x1767c3,_0x511871);if(_0x511871[_0x2cb5ab(0x125)]===![])return mergeIsolated(_0x511871);return mergeProjectFirst(_0x1767c3,_0x511871);}function mergeGlobalOnly(_0x5a7d37){const _0x29e53f=a153_0x6e8751,_0x44f4b2={..._0x5a7d37},_0x15f82f=_0x5a7d37[_0x29e53f(0x122)]&&typeof _0x5a7d37[_0x29e53f(0x122)]===_0x29e53f(0x12c)?_0x5a7d37[_0x29e53f(0x122)]:{};if(Object['keys'](_0x15f82f)['length']>0x0)_0x44f4b2['apps']=_0x15f82f;if(_0x5a7d37[_0x29e53f(0x131)])_0x44f4b2[_0x29e53f(0x131)]=_0x5a7d37[_0x29e53f(0x131)];else{const _0x10828c=Object[_0x29e53f(0x11b)](_0x15f82f);if(_0x10828c['length']>0x0)_0x44f4b2[_0x29e53f(0x131)]=_0x10828c[0x0];}return _0x44f4b2;}function mergeIsolated(_0x1cbf98){const _0x4293f3=a153_0x6e8751,_0x1ee961={..._0x1cbf98};delete _0x1ee961[_0x4293f3(0x125)];const _0x47055c=_0x1cbf98[_0x4293f3(0x122)]&&typeof _0x1cbf98[_0x4293f3(0x122)]==='object'?_0x1cbf98[_0x4293f3(0x122)]:{};Object[_0x4293f3(0x11b)](_0x47055c)[_0x4293f3(0x126)]>0x0?_0x1ee961[_0x4293f3(0x122)]=_0x47055c:delete _0x1ee961['apps'];if(_0x4293f3(0x131)in _0x1cbf98)_0x1ee961[_0x4293f3(0x131)]=_0x1cbf98[_0x4293f3(0x131)];else Object[_0x4293f3(0x11b)](_0x47055c)['length']>0x0?_0x1ee961[_0x4293f3(0x131)]=Object[_0x4293f3(0x11b)](_0x47055c)[0x0]:delete _0x1ee961[_0x4293f3(0x131)];return _0x1ee961;}function mergeProjectFirst(_0x22c868,_0x5b8ddf){const _0x5d2afe=a153_0x6e8751,_0xb9888d={..._0x5b8ddf};delete _0xb9888d['inherit'];for(const _0x16900b of INHERIT_WHITELIST){!(_0x16900b in _0xb9888d)&&_0x16900b in _0x22c868&&(_0xb9888d[_0x16900b]=_0x22c868[_0x16900b]);}const _0x5a4f3a=_0x5b8ddf[_0x5d2afe(0x122)]&&typeof _0x5b8ddf[_0x5d2afe(0x122)]==='object'?_0x5b8ddf[_0x5d2afe(0x122)]:{};Object['keys'](_0x5a4f3a)[_0x5d2afe(0x126)]>0x0?_0xb9888d['apps']=_0x5a4f3a:delete _0xb9888d[_0x5d2afe(0x122)];if('defaultApp'in _0x5b8ddf)_0xb9888d[_0x5d2afe(0x131)]=_0x5b8ddf[_0x5d2afe(0x131)];else Object['keys'](_0x5a4f3a)[_0x5d2afe(0x126)]>0x0?_0xb9888d['defaultApp']=Object[_0x5d2afe(0x11b)](_0x5a4f3a)[0x0]:delete _0xb9888d['defaultApp'];return _0xb9888d;}function mergeFullInherit(_0x19e053,_0x16965d){const _0xd9363d=a153_0x6e8751,_0x109c10=_0x19e053[_0xd9363d(0x122)]&&typeof _0x19e053[_0xd9363d(0x122)]==='object'?_0x19e053[_0xd9363d(0x122)]:{},_0x2094ec=_0x16965d[_0xd9363d(0x122)]&&typeof _0x16965d[_0xd9363d(0x122)]==='object'?_0x16965d['apps']:{},_0xaf1ba2={..._0x109c10,..._0x2094ec},_0x5f3384={..._0x19e053,..._0x16965d};delete _0x5f3384[_0xd9363d(0x125)];if(Object[_0xd9363d(0x11b)](_0xaf1ba2)[_0xd9363d(0x126)]>0x0)_0x5f3384['apps']=_0xaf1ba2;if(_0xd9363d(0x131)in _0x16965d)_0x5f3384[_0xd9363d(0x131)]=_0x16965d[_0xd9363d(0x131)];else{if(Object[_0xd9363d(0x11b)](_0x2094ec)['length']>0x0)_0x5f3384[_0xd9363d(0x131)]=Object[_0xd9363d(0x11b)](_0x2094ec)[0x0];else{if(_0x19e053[_0xd9363d(0x131)])_0x5f3384[_0xd9363d(0x131)]=_0x19e053['defaultApp'];else{const _0x59f925=Object[_0xd9363d(0x11b)](_0x109c10);if(_0x59f925[_0xd9363d(0x126)]>0x0)_0x5f3384[_0xd9363d(0x131)]=_0x59f925[0x0];}}}return _0x5f3384;}export function readRawConfigWithLayers(_0x456f7c){const _0x46b95c=loadRawConfigLayers(_0x456f7c);return{'config':mergeRawConfigLayers(_0x46b95c),'layers':_0x46b95c};}export function readRawConfig(_0x4bdb90){return mergeRawConfigLayers(loadRawConfigLayers(_0x4bdb90));}export function readConfigFile(_0x5012bd){const _0x22ab59=a153_0x6e8751;return parseAndNormalizeConfig(_0x5012bd,_0x22ab59(0x121));}export function writeConfigFile(_0x22642b,_0xe90fbb){const _0x41835b=a153_0x6e8751,_0x1e5495=dirname(_0x22642b);!existsSync(_0x1e5495)&&mkdirSync(_0x1e5495,{'recursive':!![]});const _0x3c89e2=_0x22642b+'.tmp';try{writeFileSync(_0x3c89e2,JSON[_0x41835b(0x130)](_0xe90fbb,null,0x2)+'\x0a',{'encoding':_0x41835b(0x139),'mode':0x180}),renameSync(_0x3c89e2,_0x22642b);}catch(_0x18376b){try{unlinkSync(_0x3c89e2);}catch{}throw _0x18376b;}}export function resolveWriteConfigPath(_0x1a8f0c){const _0x9c5384=a153_0x6e8751,_0x31804e=_0x1a8f0c===_0x9c5384(0x115)?process['cwd']():homedir(),_0x5ab5f4=resolveConfigPath(_0x31804e);return _0x5ab5f4??resolve(_0x31804e,NEW_CONFIG_NAME);}
1
+ const a154_0x315c01=a154_0x44f3;(function(_0x3fc785,_0x3b68f7){const _0x4f83fc=a154_0x44f3,_0x4ac23c=_0x3fc785();while(!![]){try{const _0x211710=-parseInt(_0x4f83fc(0x16b))/0x1*(parseInt(_0x4f83fc(0x162))/0x2)+parseInt(_0x4f83fc(0x174))/0x3*(-parseInt(_0x4f83fc(0x182))/0x4)+parseInt(_0x4f83fc(0x161))/0x5+parseInt(_0x4f83fc(0x16c))/0x6*(-parseInt(_0x4f83fc(0x164))/0x7)+-parseInt(_0x4f83fc(0x172))/0x8*(-parseInt(_0x4f83fc(0x16e))/0x9)+-parseInt(_0x4f83fc(0x17b))/0xa+parseInt(_0x4f83fc(0x170))/0xb;if(_0x211710===_0x3b68f7)break;else _0x4ac23c['push'](_0x4ac23c['shift']());}catch(_0x263c32){_0x4ac23c['push'](_0x4ac23c['shift']());}}}(a154_0x2f8d,0x54f37));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=a154_0x315c01(0x15d);function a154_0x2f8d(){const _0x878f5f=['apiDir','appcode','env','set','5223420YAdTzL','locale','pageSize','string','parse','data','defaultApp','1811532aqspuQ','status','\x20config\x20file\x20ignored\x20(invalid\x20JSON\x20or\x20unreadable):\x20','empty','inherit','format','apps','config','error','silent','object','riskLevel','filter','.rabetbase.json','message','migrated','warn','719300CuMEqA','772138QWZBlw','cwd','28kQAHca','missing','cookie','keys','accessKey','stringify','length','1mdUKVR','651018coGZmN','trim','1187037stqfcS','utf8','19091809vCrqka','get','16AxNPWu','.lovrabetrc','3PyuNtv','.tmp','app'];a154_0x2f8d=function(){return _0x878f5f;};return a154_0x2f8d();}export const CONFIG_NAMES=[a154_0x315c01(0x15d),'.lovrabet.json',a154_0x315c01(0x173)];function a154_0x44f3(_0x5bbd3d,_0x1f2558){_0x5bbd3d=_0x5bbd3d-0x156;const _0x2f8d4b=a154_0x2f8d();let _0x44f3e4=_0x2f8d4b[_0x5bbd3d];return _0x44f3e4;}export const LEGACY_CONFIG_NAMES=CONFIG_NAMES[a154_0x315c01(0x15c)](_0x591dc2=>_0x591dc2!==NEW_CONFIG_NAME);const normalizedWriteCache=new Map();export function resolveConfigPath(_0x3ef45d){for(const _0x130f98 of CONFIG_NAMES){const _0x2e2e72=resolve(_0x3ef45d,_0x130f98);if(existsSync(_0x2e2e72))return _0x2e2e72;}return undefined;}export function findProjectRootDirectory(_0x1a8e6d=process[a154_0x315c01(0x163)]()){let _0x2b1c65=resolve(_0x1a8e6d);const {root:_0x3921cf}=parse(_0x2b1c65),_0x168a4a=homedir();while(!![]){if(resolveConfigPath(_0x2b1c65)){if(_0x2b1c65===_0x168a4a)break;return _0x2b1c65;}if(_0x2b1c65===_0x3921cf||_0x2b1c65===_0x168a4a)break;const _0x7da85c=dirname(_0x2b1c65);if(_0x7da85c===_0x2b1c65)break;_0x2b1c65=_0x7da85c;}return resolve(_0x1a8e6d);}export function getProjectConfigPath(){const _0x4e1375=a154_0x315c01;return resolveConfigPath(process[_0x4e1375(0x163)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function isInProject(){return!!getProjectConfigPath();}export function inspectCliConfigJsonFile(_0x14d4fd){const _0x50610a=a154_0x315c01;if(!existsSync(_0x14d4fd))return{'status':'missing'};try{const _0x3d8b2b=readFileSync(_0x14d4fd,{'encoding':'utf8'});if(!_0x3d8b2b?.[_0x50610a(0x16d)]())return{'status':'empty'};const _0x4c7309=JSON[_0x50610a(0x17f)](_0x3d8b2b);return{'status':'ok','data':_0x4c7309};}catch(_0x352988){return{'status':_0x50610a(0x158),'message':_0x352988 instanceof Error?_0x352988['message']:String(_0x352988)};}}function parseCliConfigJsonFile(_0x13c0d1,_0x512ae4,_0x315dec){const _0x4160d4=a154_0x315c01,_0x4b005b=inspectCliConfigJsonFile(_0x13c0d1);if(_0x4b005b[_0x4160d4(0x183)]===_0x4160d4(0x165)||_0x4b005b[_0x4160d4(0x183)]===_0x4160d4(0x185))return{};if(_0x4b005b[_0x4160d4(0x183)]==='ok')return _0x4b005b[_0x4160d4(0x180)];return _0x512ae4===_0x4160d4(0x160)&&_0x315dec&&console[_0x4160d4(0x158)](CLI_BIN_NAME+':\x20'+_0x315dec+_0x4160d4(0x184)+_0x13c0d1+'\x0a\x20\x20'+_0x4b005b[_0x4160d4(0x15e)]),{};}function normalizeLegacyConfigShape(_0x18e44c){const _0xa1c732=a154_0x315c01;if(!_0x18e44c||typeof _0x18e44c!==_0xa1c732(0x15a))return{'config':{},'migrated':![]};const _0x44e5a7={..._0x18e44c},_0x1129b1=_0x44e5a7[_0xa1c732(0x156)]&&typeof _0x44e5a7[_0xa1c732(0x156)]===_0xa1c732(0x15a)?{..._0x44e5a7[_0xa1c732(0x156)]}:{},_0x39434b=Object[_0xa1c732(0x167)](_0x1129b1)['length'],_0x34d5ee=_0x44e5a7['appcode']||_0x44e5a7[_0xa1c732(0x176)];let _0x272ed8=![];if(_0x34d5ee&&_0x39434b===0x0){const _0x3263fb=typeof _0x44e5a7['defaultApp']===_0xa1c732(0x17e)&&_0x44e5a7[_0xa1c732(0x181)][_0xa1c732(0x16d)]()?_0x44e5a7['defaultApp']:String(_0x34d5ee)[_0xa1c732(0x16d)]();_0x1129b1[_0x3263fb]={'appcode':String(_0x34d5ee)[_0xa1c732(0x16d)](),..._0x44e5a7[_0xa1c732(0x179)]!=null?{'env':_0x44e5a7['env']}:{},..._0x44e5a7[_0xa1c732(0x177)]!=null?{'apiDir':_0x44e5a7[_0xa1c732(0x177)]}:{},..._0x44e5a7[_0xa1c732(0x166)]!=null?{'cookie':_0x44e5a7['cookie']}:{},..._0x44e5a7['accessKey']!=null?{'accessKey':_0x44e5a7[_0xa1c732(0x168)]}:{},..._0x44e5a7[_0xa1c732(0x187)]!=null?{'format':_0x44e5a7[_0xa1c732(0x187)]}:{},..._0x44e5a7[_0xa1c732(0x17d)]!=null?{'pageSize':_0x44e5a7[_0xa1c732(0x17d)]}:{},..._0x44e5a7[_0xa1c732(0x15b)]!=null?{'riskLevel':_0x44e5a7['riskLevel']}:{},..._0x44e5a7[_0xa1c732(0x17c)]!=null?{'locale':_0x44e5a7[_0xa1c732(0x17c)]}:{}},_0x44e5a7['apps']=_0x1129b1;if(!_0x44e5a7['defaultApp'])_0x44e5a7['defaultApp']=_0x3263fb;_0x272ed8=!![];}return(_0xa1c732(0x178)in _0x44e5a7||_0xa1c732(0x176)in _0x44e5a7)&&(delete _0x44e5a7[_0xa1c732(0x178)],delete _0x44e5a7[_0xa1c732(0x176)],_0x272ed8=!![]),{'config':_0x44e5a7,'migrated':_0x272ed8};}function writeNormalizedConfigIfNeeded(_0x3bf2b6,_0x29481d){const _0x4ae3c4=a154_0x315c01,_0x420cba=JSON[_0x4ae3c4(0x169)](_0x29481d,null,0x2)+'\x0a';if(normalizedWriteCache[_0x4ae3c4(0x171)](_0x3bf2b6)===_0x420cba)return;writeConfigFile(_0x3bf2b6,_0x29481d),normalizedWriteCache[_0x4ae3c4(0x17a)](_0x3bf2b6,_0x420cba);}function parseAndNormalizeConfig(_0x464beb,_0x3fc356,_0x3bdf05){const _0x4877ff=a154_0x315c01,_0xa51e5d=parseCliConfigJsonFile(_0x464beb,_0x3fc356,_0x3bdf05),_0x4771e7=normalizeLegacyConfigShape(_0xa51e5d);if(_0x4771e7[_0x4877ff(0x15f)])try{writeNormalizedConfigIfNeeded(_0x464beb,_0x4771e7[_0x4877ff(0x157)]);}catch{}return _0x4771e7[_0x4877ff(0x157)];}export function loadRawConfigLayers(_0x87019a){const _0x3beb6f=a154_0x315c01;let _0x4b5e57={},_0x4c83fa={};const _0x2c234f=resolveConfigPath(homedir());_0x2c234f&&(_0x4b5e57=parseAndNormalizeConfig(_0x2c234f,_0x3beb6f(0x160),'Global'));const _0x1f6a98=_0x87019a??findProjectRootDirectory(),_0x3a9990=resolveConfigPath(_0x1f6a98);return _0x3a9990&&(_0x4c83fa=parseAndNormalizeConfig(_0x3a9990,_0x3beb6f(0x160),'Project')),{'globalPath':_0x2c234f,'projectPath':_0x3a9990,'globalConfig':_0x4b5e57,'projectConfig':_0x4c83fa};}const INHERIT_WHITELIST=[a154_0x315c01(0x166),a154_0x315c01(0x168),a154_0x315c01(0x17c),'format',a154_0x315c01(0x15b),a154_0x315c01(0x17d)];export function mergeRawConfigLayers(_0x5c968b){const _0xfcd6e5=a154_0x315c01,{globalConfig:_0x2d6bd5,projectConfig:_0x493fd1}=_0x5c968b,_0xe6b241=Object[_0xfcd6e5(0x167)](_0x493fd1)[_0xfcd6e5(0x16a)]>0x0;if(!_0xe6b241)return mergeGlobalOnly(_0x2d6bd5);if(_0x493fd1[_0xfcd6e5(0x186)]===!![])return mergeFullInherit(_0x2d6bd5,_0x493fd1);if(_0x493fd1[_0xfcd6e5(0x186)]===![])return mergeIsolated(_0x493fd1);return mergeProjectFirst(_0x2d6bd5,_0x493fd1);}function mergeGlobalOnly(_0x54f0a0){const _0x1ae971=a154_0x315c01,_0x4e37b7={..._0x54f0a0},_0x23c540=_0x54f0a0[_0x1ae971(0x156)]&&typeof _0x54f0a0['apps']===_0x1ae971(0x15a)?_0x54f0a0[_0x1ae971(0x156)]:{};if(Object['keys'](_0x23c540)[_0x1ae971(0x16a)]>0x0)_0x4e37b7[_0x1ae971(0x156)]=_0x23c540;if(_0x54f0a0[_0x1ae971(0x181)])_0x4e37b7['defaultApp']=_0x54f0a0[_0x1ae971(0x181)];else{const _0x4a9173=Object[_0x1ae971(0x167)](_0x23c540);if(_0x4a9173[_0x1ae971(0x16a)]>0x0)_0x4e37b7['defaultApp']=_0x4a9173[0x0];}return _0x4e37b7;}function mergeIsolated(_0x45af00){const _0x11733b=a154_0x315c01,_0x41655e={..._0x45af00};delete _0x41655e[_0x11733b(0x186)];const _0x12220b=_0x45af00[_0x11733b(0x156)]&&typeof _0x45af00[_0x11733b(0x156)]===_0x11733b(0x15a)?_0x45af00[_0x11733b(0x156)]:{};Object[_0x11733b(0x167)](_0x12220b)[_0x11733b(0x16a)]>0x0?_0x41655e['apps']=_0x12220b:delete _0x41655e[_0x11733b(0x156)];if(_0x11733b(0x181)in _0x45af00)_0x41655e[_0x11733b(0x181)]=_0x45af00[_0x11733b(0x181)];else Object['keys'](_0x12220b)[_0x11733b(0x16a)]>0x0?_0x41655e[_0x11733b(0x181)]=Object[_0x11733b(0x167)](_0x12220b)[0x0]:delete _0x41655e['defaultApp'];return _0x41655e;}function mergeProjectFirst(_0x1a362f,_0x16cea8){const _0x5a4d76=a154_0x315c01,_0x8f1585={..._0x16cea8};delete _0x8f1585[_0x5a4d76(0x186)];for(const _0x3cf249 of INHERIT_WHITELIST){!(_0x3cf249 in _0x8f1585)&&_0x3cf249 in _0x1a362f&&(_0x8f1585[_0x3cf249]=_0x1a362f[_0x3cf249]);}const _0x1e9570=_0x16cea8[_0x5a4d76(0x156)]&&typeof _0x16cea8['apps']===_0x5a4d76(0x15a)?_0x16cea8[_0x5a4d76(0x156)]:{};Object[_0x5a4d76(0x167)](_0x1e9570)[_0x5a4d76(0x16a)]>0x0?_0x8f1585['apps']=_0x1e9570:delete _0x8f1585['apps'];if(_0x5a4d76(0x181)in _0x16cea8)_0x8f1585[_0x5a4d76(0x181)]=_0x16cea8['defaultApp'];else Object[_0x5a4d76(0x167)](_0x1e9570)[_0x5a4d76(0x16a)]>0x0?_0x8f1585[_0x5a4d76(0x181)]=Object[_0x5a4d76(0x167)](_0x1e9570)[0x0]:delete _0x8f1585[_0x5a4d76(0x181)];return _0x8f1585;}function mergeFullInherit(_0x5a294c,_0xdc36cd){const _0x2ccc9c=a154_0x315c01,_0x2b6df1=_0x5a294c['apps']&&typeof _0x5a294c[_0x2ccc9c(0x156)]===_0x2ccc9c(0x15a)?_0x5a294c[_0x2ccc9c(0x156)]:{},_0x48ea3a=_0xdc36cd['apps']&&typeof _0xdc36cd[_0x2ccc9c(0x156)]===_0x2ccc9c(0x15a)?_0xdc36cd[_0x2ccc9c(0x156)]:{},_0x5aa870={..._0x2b6df1,..._0x48ea3a},_0x298505={..._0x5a294c,..._0xdc36cd};delete _0x298505[_0x2ccc9c(0x186)];if(Object[_0x2ccc9c(0x167)](_0x5aa870)[_0x2ccc9c(0x16a)]>0x0)_0x298505[_0x2ccc9c(0x156)]=_0x5aa870;if('defaultApp'in _0xdc36cd)_0x298505[_0x2ccc9c(0x181)]=_0xdc36cd['defaultApp'];else{if(Object[_0x2ccc9c(0x167)](_0x48ea3a)[_0x2ccc9c(0x16a)]>0x0)_0x298505['defaultApp']=Object[_0x2ccc9c(0x167)](_0x48ea3a)[0x0];else{if(_0x5a294c[_0x2ccc9c(0x181)])_0x298505['defaultApp']=_0x5a294c['defaultApp'];else{const _0x1c0b66=Object[_0x2ccc9c(0x167)](_0x2b6df1);if(_0x1c0b66['length']>0x0)_0x298505[_0x2ccc9c(0x181)]=_0x1c0b66[0x0];}}}return _0x298505;}export function readRawConfigWithLayers(_0x417ae3){const _0x4ef49a=loadRawConfigLayers(_0x417ae3);return{'config':mergeRawConfigLayers(_0x4ef49a),'layers':_0x4ef49a};}export function readRawConfig(_0x991354){return mergeRawConfigLayers(loadRawConfigLayers(_0x991354));}export function readConfigFile(_0x25784c){const _0x18e8ca=a154_0x315c01;return parseAndNormalizeConfig(_0x25784c,_0x18e8ca(0x159));}export function writeConfigFile(_0x42f13f,_0x4c4f2b){const _0x4801c4=a154_0x315c01,_0x540971=dirname(_0x42f13f);!existsSync(_0x540971)&&mkdirSync(_0x540971,{'recursive':!![]});const _0x509b2d=_0x42f13f+_0x4801c4(0x175);try{writeFileSync(_0x509b2d,JSON[_0x4801c4(0x169)](_0x4c4f2b,null,0x2)+'\x0a',{'encoding':_0x4801c4(0x16f),'mode':0x180}),renameSync(_0x509b2d,_0x42f13f);}catch(_0x387596){try{unlinkSync(_0x509b2d);}catch{}throw _0x387596;}}export function resolveWriteConfigPath(_0x3eff59){const _0x25205c=a154_0x315c01,_0xf40ef4=_0x3eff59==='project'?process[_0x25205c(0x163)]():homedir(),_0x3c4b82=resolveConfigPath(_0xf40ef4);return _0x3c4b82??resolve(_0xf40ef4,NEW_CONFIG_NAME);}
package/lib/context.js CHANGED
@@ -1 +1 @@
1
- const a154_0x54bae7=a154_0x2b4c;(function(_0x3cdbc3,_0x18db30){const _0x39d6e6=a154_0x2b4c,_0x5b38c1=_0x3cdbc3();while(!![]){try{const _0x3172c0=parseInt(_0x39d6e6(0x18e))/0x1+-parseInt(_0x39d6e6(0x18c))/0x2+-parseInt(_0x39d6e6(0x18f))/0x3+-parseInt(_0x39d6e6(0x1af))/0x4+parseInt(_0x39d6e6(0x1b2))/0x5*(parseInt(_0x39d6e6(0x1a8))/0x6)+parseInt(_0x39d6e6(0x19f))/0x7*(parseInt(_0x39d6e6(0x192))/0x8)+parseInt(_0x39d6e6(0x193))/0x9;if(_0x3172c0===_0x18db30)break;else _0x5b38c1['push'](_0x5b38c1['shift']());}catch(_0x5f2dc){_0x5b38c1['push'](_0x5b38c1['shift']());}}}(a154_0x18a8,0x51bc0));import{resolve}from'node:path';import{CLI_BIN_NAME}from'./constant/cli.js';function a154_0x2b4c(_0x47cd70,_0x406476){_0x47cd70=_0x47cd70-0x18c;const _0x18a82c=a154_0x18a8();let _0x2b4cf3=_0x18a82c[_0x47cd70];return _0x2b4cf3;}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(_0x1b24f3){return process.env[`RABETBASE_${_0x1b24f3}`]||process.env[`LOVRABET_${_0x1b24f3}`]||undefined;}export async function createContext(_0x141ab0){const _0x4af8cd=a154_0x2b4c,{config:_0x13960f,layers:_0x1e4d6c}=readRawConfigWithLayers(),_0x442ef3=buildConfig(_0x13960f,_0x141ab0,_0x1e4d6c),{initEnv:_0x8b1af7}=await import(_0x4af8cd(0x1a7));if(_0x442ef3[_0x4af8cd(0x1a5)])_0x8b1af7(_0x442ef3['env']);else _0x141ab0[_0x4af8cd(0x1a5)]&&typeof _0x141ab0['env']==='string'&&_0x8b1af7(_0x141ab0[_0x4af8cd(0x1a5)]);const {initDomains:_0x2c0bae,getUserDomain:_0x10bb69,getApiDomain:_0x546707}=await import(_0x4af8cd(0x1a0));_0x2c0bae({'apiDomain':_0x13960f[_0x4af8cd(0x19b)]||undefined,'userDomain':_0x13960f['userDomain']||undefined,'runtimeDomain':_0x13960f[_0x4af8cd(0x19e)]||undefined});const _0x4df720={'apiDomain':_0x546707(),'userDomain':_0x10bb69()},_0x122ecb=await buildAuth(_0x442ef3);logger['setLogPath'](process[_0x4af8cd(0x1a6)]());const _0x5be5c3=(CLI_BIN_NAME+'\x20'+process['argv'][_0x4af8cd(0x195)](0x2)['join']('\x20'))[_0x4af8cd(0x1b0)]();logger[_0x4af8cd(0x1b1)](_0x5be5c3);const {isNonInteractive:_0x7db0d0}=await import(_0x4af8cd(0x1a3)),_0x5c8ff5=_0x7db0d0(_0x141ab0);return{'config':_0x442ef3,'auth':_0x122ecb,'logger':logger,'env':_0x4df720,'nonInteractive':_0x5c8ff5};}export function buildConfigFromFlags(_0x20e2db){const {config:_0x471a81,layers:_0x302655}=readRawConfigWithLayers();return buildConfig(_0x471a81,_0x20e2db,_0x302655);}function a154_0x18a8(){const _0xd225fd=['string','appcode','object','cookie','2611360mlBTag','trim','setRawCommand','5nroBjh','1123816TjdzOD','defaultApp','31230FzmxdM','689226aSUZOm','template_base_url','apps','1176gUhpCl','14103522zOJIvp','apiDir','slice','https://g.lovrabet.com/dist/lovrabet-skill','projectConfig','app','filter','globalConfig','apiDomain','entries','project','runtimeDomain','1855zSkhoJ','./constant/domain.js','keys','length','./utils/is-non-interactive.js','find','env','cwd','./constant/env.js','852186xplOWS','api.ts','map'];a154_0x18a8=function(){return _0xd225fd;};return a154_0x18a8();}export function getConfigAppCode(_0x20b7a4){const _0x12aa38=a154_0x2b4c,_0xd63cf4=readRawConfig(_0x20b7a4);if(_0xd63cf4['apps']&&typeof _0xd63cf4[_0x12aa38(0x191)]==='object'){const _0x33ac10=_0xd63cf4[_0x12aa38(0x18d)];if(_0x33ac10&&_0xd63cf4['apps'][_0x33ac10]?.[_0x12aa38(0x1ac)])return String(_0xd63cf4[_0x12aa38(0x191)][_0x33ac10][_0x12aa38(0x1ac)])[_0x12aa38(0x1b0)]();const _0x3d8f39=Object['values'](_0xd63cf4['apps'])[0x0];if(_0x3d8f39?.[_0x12aa38(0x1ac)])return String(_0x3d8f39['appcode'])[_0x12aa38(0x1b0)]();}const _0x52eb58=_0xd63cf4[_0x12aa38(0x1ac)]||_0xd63cf4[_0x12aa38(0x198)];if(typeof _0x52eb58!==_0x12aa38(0x1ab)||_0x52eb58[_0x12aa38(0x1b0)]()==='')return undefined;return _0x52eb58[_0x12aa38(0x1b0)]();}export function getMultiAppConfigs(_0x2b365f=a154_0x54bae7(0x19d),_0x24231a){const _0x85c2bd=a154_0x54bae7,_0x579bc6=loadRawConfigLayers(_0x24231a);let _0x5107a4,_0x2fc9d0;if(_0x2b365f==='merged'){const _0x530324=_0x579bc6[_0x85c2bd(0x19a)][_0x85c2bd(0x191)]&&typeof _0x579bc6[_0x85c2bd(0x19a)]['apps']===_0x85c2bd(0x1ad)?_0x579bc6['globalConfig'][_0x85c2bd(0x191)]:{},_0xabaf41=_0x579bc6[_0x85c2bd(0x197)][_0x85c2bd(0x191)]&&typeof _0x579bc6[_0x85c2bd(0x197)][_0x85c2bd(0x191)]===_0x85c2bd(0x1ad)?_0x579bc6[_0x85c2bd(0x197)][_0x85c2bd(0x191)]:{};_0x5107a4={..._0x530324,..._0xabaf41};const _0x1e8b4e=readRawConfig(_0x24231a);_0x2fc9d0=_0x1e8b4e[_0x85c2bd(0x18d)];}else _0x5107a4=_0x579bc6[_0x85c2bd(0x197)][_0x85c2bd(0x191)],_0x2fc9d0=_0x579bc6[_0x85c2bd(0x197)][_0x85c2bd(0x18d)];if(!_0x5107a4||typeof _0x5107a4!==_0x85c2bd(0x1ad)||Object[_0x85c2bd(0x1a1)](_0x5107a4)[_0x85c2bd(0x1a2)]===0x0)return null;return Object[_0x85c2bd(0x19c)](_0x5107a4)[_0x85c2bd(0x1aa)](([_0x22d530,_0x436b0f])=>({'name':_0x22d530,'appcode':_0x436b0f?.['appcode']||'','isDefault':_0x22d530===_0x2fc9d0,'env':_0x436b0f?.['env'],'apiDir':_0x436b0f?.[_0x85c2bd(0x194)],'cookie':_0x436b0f?.[_0x85c2bd(0x1ae)]||undefined}))[_0x85c2bd(0x199)](_0x219d7a=>_0x219d7a['appcode']);}export function getTemplateBaseUrl(_0x424fad){const _0x4f89cd=a154_0x54bae7,_0x4321d1=readRawConfig(_0x424fad);if(_0x4321d1[_0x4f89cd(0x190)]&&typeof _0x4321d1[_0x4f89cd(0x190)]===_0x4f89cd(0x1ab))return _0x4321d1['template_base_url']['replace'](/\/$/,'');return _0x4f89cd(0x196);}function buildConfig(_0x142872,_0x4f2400,_0xbbcd4e){return{...resolveAppConfig({'raw':_0x142872,'flags':_0x4f2400,'layers':_0xbbcd4e,'readEnv':env}),'raw':_0x142872};}export function resolveApiFilePath(_0x3add27,_0x486337){const _0x3dbc2c=a154_0x54bae7,_0xaa924=resolve(process['cwd'](),_0x3add27),_0x438bab=resolve(_0xaa924,_0x3dbc2c(0x1a9));if(!_0x486337)return _0x438bab;const _0x4ecae9=readRawConfig(),_0x1dd4b6=_0x4ecae9[_0x3dbc2c(0x191)]&&typeof _0x4ecae9[_0x3dbc2c(0x191)]==='object'?_0x4ecae9['apps']:{},_0x1b530e=Object[_0x3dbc2c(0x19c)](_0x1dd4b6)[_0x3dbc2c(0x1a4)](([,_0x1c2773])=>_0x1c2773?.[_0x3dbc2c(0x1ac)]===_0x486337);if(!_0x1b530e)return _0x438bab;const [_0x3672b1,_0x78009]=_0x1b530e,_0x5432b4=typeof _0x4ecae9[_0x3dbc2c(0x18d)]===_0x3dbc2c(0x1ab)?_0x4ecae9[_0x3dbc2c(0x18d)]:undefined;if(_0x78009?.['apiDir'])return _0x438bab;if(_0x5432b4&&_0x3672b1!==_0x5432b4)return resolve(_0xaa924,_0x3672b1+'-api.ts');return _0x438bab;}
1
+ const a155_0x155881=a155_0x3ac5;(function(_0x27b438,_0x69a10){const _0x1ad2a5=a155_0x3ac5,_0x560772=_0x27b438();while(!![]){try{const _0x11e443=-parseInt(_0x1ad2a5(0x1d4))/0x1+-parseInt(_0x1ad2a5(0x1db))/0x2*(parseInt(_0x1ad2a5(0x1cd))/0x3)+-parseInt(_0x1ad2a5(0x1d6))/0x4+-parseInt(_0x1ad2a5(0x1e4))/0x5+parseInt(_0x1ad2a5(0x1de))/0x6+-parseInt(_0x1ad2a5(0x1ca))/0x7+parseInt(_0x1ad2a5(0x1cb))/0x8;if(_0x11e443===_0x69a10)break;else _0x560772['push'](_0x560772['shift']());}catch(_0x268060){_0x560772['push'](_0x560772['shift']());}}}(a155_0xd5ee,0x239ef));import{resolve}from'node:path';import{CLI_BIN_NAME}from'./constant/cli.js';import{buildAuth}from'./context/auth-resolver.js';function a155_0x3ac5(_0x7b8f92,_0x5675d0){_0x7b8f92=_0x7b8f92-0x1c7;const _0xd5eec5=a155_0xd5ee();let _0x3ac50d=_0xd5eec5[_0x7b8f92];return _0x3ac50d;}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(_0x273c50){return process.env[`RABETBASE_${_0x273c50}`]||process.env[`LOVRABET_${_0x273c50}`]||undefined;}export async function createContext(_0x405258){const _0x42a5ba=a155_0x3ac5,{config:_0x3442b2,layers:_0x5b148b}=readRawConfigWithLayers(),_0x5103ee=buildConfig(_0x3442b2,_0x405258,_0x5b148b),{initEnv:_0x3f9c7b}=await import(_0x42a5ba(0x1e0));if(_0x5103ee['env'])_0x3f9c7b(_0x5103ee[_0x42a5ba(0x1e8)]);else _0x405258['env']&&typeof _0x405258[_0x42a5ba(0x1e8)]===_0x42a5ba(0x1cc)&&_0x3f9c7b(_0x405258[_0x42a5ba(0x1e8)]);const {initDomains:_0x270b7d,getUserDomain:_0x13bec2,getApiDomain:_0x1f1990}=await import(_0x42a5ba(0x1d8));_0x270b7d({'apiDomain':_0x3442b2[_0x42a5ba(0x1d0)]||undefined,'userDomain':_0x3442b2['userDomain']||undefined,'runtimeDomain':_0x3442b2['runtimeDomain']||undefined});const _0x5d4432={'apiDomain':_0x1f1990(),'userDomain':_0x13bec2()},_0x47e7ad=await buildAuth(_0x5103ee);logger['setLogPath'](process[_0x42a5ba(0x1c8)]());const _0x31e0f8=(CLI_BIN_NAME+'\x20'+process[_0x42a5ba(0x1cf)][_0x42a5ba(0x1e3)](0x2)[_0x42a5ba(0x1dd)]('\x20'))[_0x42a5ba(0x1e1)]();logger['setRawCommand'](_0x31e0f8);const {isNonInteractive:_0x53c3b7}=await import('./utils/is-non-interactive.js'),_0xb7dad4=_0x53c3b7(_0x405258);return{'config':_0x5103ee,'auth':_0x47e7ad,'logger':logger,'env':_0x5d4432,'nonInteractive':_0xb7dad4};}export function buildConfigFromFlags(_0x39e344){const {config:_0x388573,layers:_0x2770e4}=readRawConfigWithLayers();return buildConfig(_0x388573,_0x39e344,_0x2770e4);}function a155_0xd5ee(){const _0x2235ad=['-api.ts','./constant/env.js','trim','defaultApp','slice','1329415yJmFMN','https://g.lovrabet.com/dist/lovrabet-skill','template_base_url','apps','env','cookie','cwd','projectConfig','26369WKxqXX','2668200veRJiP','string','9789Csfnfh','keys','argv','apiDomain','project','values','globalConfig','86842pYKzic','appcode','16220qkjyhf','apiDir','./constant/domain.js','merged','object','20MmweDy','api.ts','join','1233330xKtpmF'];a155_0xd5ee=function(){return _0x2235ad;};return a155_0xd5ee();}export function getConfigAppCode(_0x113e4f){const _0x6e2cca=a155_0x3ac5,_0x1919d9=readRawConfig(_0x113e4f);if(_0x1919d9[_0x6e2cca(0x1e7)]&&typeof _0x1919d9['apps']==='object'){const _0x14c8b3=_0x1919d9[_0x6e2cca(0x1e2)];if(_0x14c8b3&&_0x1919d9[_0x6e2cca(0x1e7)][_0x14c8b3]?.['appcode'])return String(_0x1919d9[_0x6e2cca(0x1e7)][_0x14c8b3][_0x6e2cca(0x1d5)])[_0x6e2cca(0x1e1)]();const _0x210ff9=Object[_0x6e2cca(0x1d2)](_0x1919d9[_0x6e2cca(0x1e7)])[0x0];if(_0x210ff9?.[_0x6e2cca(0x1d5)])return String(_0x210ff9[_0x6e2cca(0x1d5)])[_0x6e2cca(0x1e1)]();}const _0x30c7fb=_0x1919d9[_0x6e2cca(0x1d5)]||_0x1919d9['app'];if(typeof _0x30c7fb!=='string'||_0x30c7fb[_0x6e2cca(0x1e1)]()==='')return undefined;return _0x30c7fb[_0x6e2cca(0x1e1)]();}export function getMultiAppConfigs(_0x18e9e8=a155_0x155881(0x1d1),_0x401e73){const _0x41520d=a155_0x155881,_0x5897d6=loadRawConfigLayers(_0x401e73);let _0x311ec5,_0x11c03c;if(_0x18e9e8===_0x41520d(0x1d9)){const _0x5bb27a=_0x5897d6['globalConfig'][_0x41520d(0x1e7)]&&typeof _0x5897d6[_0x41520d(0x1d3)][_0x41520d(0x1e7)]===_0x41520d(0x1da)?_0x5897d6['globalConfig'][_0x41520d(0x1e7)]:{},_0x36ade5=_0x5897d6['projectConfig'][_0x41520d(0x1e7)]&&typeof _0x5897d6[_0x41520d(0x1c9)][_0x41520d(0x1e7)]===_0x41520d(0x1da)?_0x5897d6[_0x41520d(0x1c9)][_0x41520d(0x1e7)]:{};_0x311ec5={..._0x5bb27a,..._0x36ade5};const _0x1c34ab=readRawConfig(_0x401e73);_0x11c03c=_0x1c34ab['defaultApp'];}else _0x311ec5=_0x5897d6[_0x41520d(0x1c9)]['apps'],_0x11c03c=_0x5897d6[_0x41520d(0x1c9)][_0x41520d(0x1e2)];if(!_0x311ec5||typeof _0x311ec5!=='object'||Object[_0x41520d(0x1ce)](_0x311ec5)['length']===0x0)return null;return Object['entries'](_0x311ec5)['map'](([_0x306cfd,_0x131d85])=>({'name':_0x306cfd,'appcode':_0x131d85?.['appcode']||'','isDefault':_0x306cfd===_0x11c03c,'env':_0x131d85?.[_0x41520d(0x1e8)],'apiDir':_0x131d85?.['apiDir'],'cookie':_0x131d85?.[_0x41520d(0x1c7)]||undefined}))['filter'](_0x5dfe2b=>_0x5dfe2b[_0x41520d(0x1d5)]);}export function getTemplateBaseUrl(_0x598c00){const _0x53d809=a155_0x155881,_0x2c17b0=readRawConfig(_0x598c00);if(_0x2c17b0[_0x53d809(0x1e6)]&&typeof _0x2c17b0[_0x53d809(0x1e6)]===_0x53d809(0x1cc))return _0x2c17b0[_0x53d809(0x1e6)]['replace'](/\/$/,'');return _0x53d809(0x1e5);}function buildConfig(_0x4308a9,_0x56a1f4,_0x423f82){return{...resolveAppConfig({'raw':_0x4308a9,'flags':_0x56a1f4,'layers':_0x423f82,'readEnv':env}),'raw':_0x4308a9};}export function resolveApiFilePath(_0x2c20ba,_0x1a9aa6){const _0x20312e=a155_0x155881,_0x40d2de=resolve(process[_0x20312e(0x1c8)](),_0x2c20ba),_0x1e36aa=resolve(_0x40d2de,_0x20312e(0x1dc));if(!_0x1a9aa6)return _0x1e36aa;const _0x5e8cc2=readRawConfig(),_0x515cb2=_0x5e8cc2[_0x20312e(0x1e7)]&&typeof _0x5e8cc2[_0x20312e(0x1e7)]===_0x20312e(0x1da)?_0x5e8cc2[_0x20312e(0x1e7)]:{},_0x3c5922=Object['entries'](_0x515cb2)['find'](([,_0x2d3e20])=>_0x2d3e20?.[_0x20312e(0x1d5)]===_0x1a9aa6);if(!_0x3c5922)return _0x1e36aa;const [_0x5348bc,_0x267a84]=_0x3c5922,_0x56d32a=typeof _0x5e8cc2[_0x20312e(0x1e2)]===_0x20312e(0x1cc)?_0x5e8cc2[_0x20312e(0x1e2)]:undefined;if(_0x267a84?.[_0x20312e(0x1d7)])return _0x1e36aa;if(_0x56d32a&&_0x5348bc!==_0x56d32a)return resolve(_0x40d2de,_0x5348bc+_0x20312e(0x1df));return _0x1e36aa;}
@@ -1 +1 @@
1
- (function(_0x1e23a9,_0xea8f0d){const _0x3f5d8a=a155_0x4db1,_0x7e3320=_0x1e23a9();while(!![]){try{const _0x42119d=-parseInt(_0x3f5d8a(0xa4))/0x1+parseInt(_0x3f5d8a(0xac))/0x2*(-parseInt(_0x3f5d8a(0xa1))/0x3)+-parseInt(_0x3f5d8a(0xa9))/0x4+-parseInt(_0x3f5d8a(0xab))/0x5*(parseInt(_0x3f5d8a(0xa8))/0x6)+-parseInt(_0x3f5d8a(0xa7))/0x7+parseInt(_0x3f5d8a(0xa2))/0x8+parseInt(_0x3f5d8a(0xa0))/0x9;if(_0x42119d===_0xea8f0d)break;else _0x7e3320['push'](_0x7e3320['shift']());}catch(_0x4587e9){_0x7e3320['push'](_0x7e3320['shift']());}}}(a155_0xa57b,0xac258));import{readFileSync,existsSync}from'node:fs';import{resolve}from'node:path';const cache=new Map();function a155_0x4db1(_0x5a7504,_0x238ecc){_0x5a7504=_0x5a7504-0xa0;const _0xa57b9a=a155_0xa57b();let _0x4db1cc=_0xa57b9a[_0x5a7504];return _0x4db1cc;}function parseApiFile(_0x15da53){const _0x439d6d=a155_0x4db1,_0x15d8ed=[],_0x2d3e68=/\{\s*datasetCode:\s*"([^"]+)"\s*,\s*tableName:\s*"([^"]+)"\s*,\s*name:\s*"([^"]*?)"\s*,\s*alias:\s*"([^"]+)"\s*,?\s*\}/g;let _0x21073f;while((_0x21073f=_0x2d3e68[_0x439d6d(0xa5)](_0x15da53))!==null){_0x15d8ed['push']({'datasetCode':_0x21073f[0x1],'tableName':_0x21073f[0x2],'name':_0x21073f[0x3],'alias':_0x21073f[0x4]});}return _0x15d8ed;}function a155_0xa57b(){const _0x4d1436=['exec','utf-8','3964688OeTVjU','48kcoOan','1287236uFUzLB','api.ts','263255pLrUGR','1628xDOHjX','set','cwd','find','get','alias','26449785xwHzmJ','2091rJcAcW','4810784BrqjlO','has','958342TeeaYz'];a155_0xa57b=function(){return _0x4d1436;};return a155_0xa57b();}export function loadAliasMap(_0x1fc223,_0x4a9cea,_0x343061){const _0x13180b=a155_0x4db1,_0x114da0=_0x343061??resolve(process[_0x13180b(0xae)](),_0x1fc223,_0x13180b(0xaa));if(cache[_0x13180b(0xa3)](_0x114da0))return cache[_0x13180b(0xb0)](_0x114da0);if(!existsSync(_0x114da0))return cache[_0x13180b(0xad)](_0x114da0,[]),[];try{const _0x153b43=readFileSync(_0x114da0,_0x13180b(0xa6)),_0x26565d=parseApiFile(_0x153b43);return cache[_0x13180b(0xad)](_0x114da0,_0x26565d),_0x26565d;}catch{return cache[_0x13180b(0xad)](_0x114da0,[]),[];}}export function resolveAlias(_0xccedf,_0x3ca140,_0x292f6b,_0x60048d){const _0x41fb63=a155_0x4db1;if(!_0x3ca140)return undefined;const _0x5c3bef=loadAliasMap(_0xccedf,_0x292f6b,_0x60048d),_0x5821c9=_0x5c3bef[_0x41fb63(0xaf)](_0x511786=>_0x511786[_0x41fb63(0xb1)]===_0x3ca140);return _0x5821c9?.['datasetCode'];}export function listAliases(_0x347d34,_0x881693,_0x515804){return loadAliasMap(_0x347d34,_0x881693,_0x515804);}
1
+ (function(_0x2a9cb8,_0x2169fa){const _0x39fa67=a156_0x4f53,_0x4aa14f=_0x2a9cb8();while(!![]){try{const _0x30d05d=-parseInt(_0x39fa67(0x1da))/0x1+parseInt(_0x39fa67(0x1cd))/0x2+-parseInt(_0x39fa67(0x1d3))/0x3*(-parseInt(_0x39fa67(0x1db))/0x4)+-parseInt(_0x39fa67(0x1d4))/0x5+-parseInt(_0x39fa67(0x1d1))/0x6+parseInt(_0x39fa67(0x1dc))/0x7+-parseInt(_0x39fa67(0x1d2))/0x8*(-parseInt(_0x39fa67(0x1d8))/0x9);if(_0x30d05d===_0x2169fa)break;else _0x4aa14f['push'](_0x4aa14f['shift']());}catch(_0x478936){_0x4aa14f['push'](_0x4aa14f['shift']());}}}(a156_0xf807,0x1de6e));import{readFileSync,existsSync}from'node:fs';function a156_0x4f53(_0x113246,_0x59ee4f){_0x113246=_0x113246-0x1cd;const _0xf80772=a156_0xf807();let _0x4f537f=_0xf80772[_0x113246];return _0x4f537f;}function a156_0xf807(){const _0x363cd0=['94371hcGQEb','59396LYLGLu','1039934rAjvvW','144198dgdDkA','set','api.ts','exec','1191150mSNQym','71552CTJDOZ','21RaRtJj','306390wxGdFd','get','has','push','153gzCpca','utf-8'];a156_0xf807=function(){return _0x363cd0;};return a156_0xf807();}import{resolve}from'node:path';const cache=new Map();function parseApiFile(_0x3a9cfb){const _0x1c0eaa=a156_0x4f53,_0x468601=[],_0x2faec3=/\{\s*datasetCode:\s*"([^"]+)"\s*,\s*tableName:\s*"([^"]+)"\s*,\s*name:\s*"([^"]*?)"\s*,\s*alias:\s*"([^"]+)"\s*,?\s*\}/g;let _0x1f39b7;while((_0x1f39b7=_0x2faec3[_0x1c0eaa(0x1d0)](_0x3a9cfb))!==null){_0x468601[_0x1c0eaa(0x1d7)]({'datasetCode':_0x1f39b7[0x1],'tableName':_0x1f39b7[0x2],'name':_0x1f39b7[0x3],'alias':_0x1f39b7[0x4]});}return _0x468601;}export function loadAliasMap(_0x1aaa41,_0x5e8be4,_0xc0b6ac){const _0x8966ed=a156_0x4f53,_0x1a08b8=_0xc0b6ac??resolve(process['cwd'](),_0x1aaa41,_0x8966ed(0x1cf));if(cache[_0x8966ed(0x1d6)](_0x1a08b8))return cache[_0x8966ed(0x1d5)](_0x1a08b8);if(!existsSync(_0x1a08b8))return cache[_0x8966ed(0x1ce)](_0x1a08b8,[]),[];try{const _0x3571b5=readFileSync(_0x1a08b8,_0x8966ed(0x1d9)),_0x1c8063=parseApiFile(_0x3571b5);return cache[_0x8966ed(0x1ce)](_0x1a08b8,_0x1c8063),_0x1c8063;}catch{return cache[_0x8966ed(0x1ce)](_0x1a08b8,[]),[];}}export function resolveAlias(_0x444a20,_0x5605d5,_0x14daf6,_0x3a41a5){if(!_0x5605d5)return undefined;const _0x11c3a1=loadAliasMap(_0x444a20,_0x14daf6,_0x3a41a5),_0x48f925=_0x11c3a1['find'](_0x3ceda2=>_0x3ceda2['alias']===_0x5605d5);return _0x48f925?.['datasetCode'];}export function listAliases(_0x350161,_0x1c0874,_0x48ac91){return loadAliasMap(_0x350161,_0x1c0874,_0x48ac91);}