@lovrabet/rabetbase-cli 2.3.1 → 2.3.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 (218) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/auth/auth-server-ui.js +1 -1
  5. package/lib/auth/auth-server.js +1 -1
  6. package/lib/auth/constant.js +1 -1
  7. package/lib/auth/get-cookie.js +1 -1
  8. package/lib/auth/get-session-user.js +1 -1
  9. package/lib/auth/is-session-valid.js +1 -1
  10. package/lib/auth/login-success-html.js +1 -1
  11. package/lib/auth/logout.js +1 -1
  12. package/lib/cli-flags.js +1 -1
  13. package/lib/cli.js +1 -1
  14. package/lib/commands/api/generate.js +1 -1
  15. package/lib/commands/api/index.js +1 -1
  16. package/lib/commands/api/list.js +1 -1
  17. package/lib/commands/api/pull.js +1 -1
  18. package/lib/commands/api/shared.js +1 -1
  19. package/lib/commands/app/add.js +1 -1
  20. package/lib/commands/app/discover.js +1 -1
  21. package/lib/commands/app/index.js +1 -1
  22. package/lib/commands/app/list.js +1 -1
  23. package/lib/commands/app/remove.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app/use.js +1 -1
  26. package/lib/commands/app-config/delete.js +1 -1
  27. package/lib/commands/app-config/get.js +1 -1
  28. package/lib/commands/app-config/index.js +1 -1
  29. package/lib/commands/app-config/list.js +1 -1
  30. package/lib/commands/app-config/set.js +1 -1
  31. package/lib/commands/app-config/shared.js +1 -1
  32. package/lib/commands/auth/index.js +1 -1
  33. package/lib/commands/bff/create.js +1 -1
  34. package/lib/commands/bff/delete.js +1 -1
  35. package/lib/commands/bff/detail.js +1 -1
  36. package/lib/commands/bff/index.js +1 -1
  37. package/lib/commands/bff/list.js +1 -1
  38. package/lib/commands/bff/pull.js +1 -1
  39. package/lib/commands/bff/push.js +1 -1
  40. package/lib/commands/bff/status.js +1 -1
  41. package/lib/commands/cli-skill/index.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-audit.js +1 -0
  68. package/lib/commands/dataset/relation-create.js +1 -1
  69. package/lib/commands/dataset/relation-delete.js +1 -1
  70. package/lib/commands/dataset/relation-shared.js +1 -1
  71. package/lib/commands/dataset/relation-update.js +1 -1
  72. package/lib/commands/dataset/relations.js +1 -1
  73. package/lib/commands/dataset/rename.js +1 -1
  74. package/lib/commands/dataset/restore.js +1 -1
  75. package/lib/commands/db/analyze-cancel.js +1 -1
  76. package/lib/commands/db/analyze-start.js +1 -1
  77. package/lib/commands/db/analyze-status.js +1 -1
  78. package/lib/commands/db/create.js +1 -1
  79. package/lib/commands/db/delete.js +1 -1
  80. package/lib/commands/db/detail.js +1 -1
  81. package/lib/commands/db/diff.js +1 -1
  82. package/lib/commands/db/index.js +1 -1
  83. package/lib/commands/db/list.js +1 -1
  84. package/lib/commands/db/shared.js +1 -1
  85. package/lib/commands/db/tables.js +1 -1
  86. package/lib/commands/db/test.js +1 -1
  87. package/lib/commands/db/update.js +1 -1
  88. package/lib/commands/doctor.js +1 -1
  89. package/lib/commands/init/index.js +1 -1
  90. package/lib/commands/issue/index.js +1 -1
  91. package/lib/commands/issue/nudge.js +1 -1
  92. package/lib/commands/issue/report.js +1 -1
  93. package/lib/commands/issue/shared.js +1 -1
  94. package/lib/commands/logs/index.js +1 -1
  95. package/lib/commands/menu/index.js +1 -1
  96. package/lib/commands/menu/list.js +1 -1
  97. package/lib/commands/menu/shared/compare-table.js +1 -1
  98. package/lib/commands/menu/shared/index.js +1 -1
  99. package/lib/commands/menu/shared/inquirer.js +1 -1
  100. package/lib/commands/menu/shared/local-pages.js +1 -1
  101. package/lib/commands/menu/shared/logic.js +1 -1
  102. package/lib/commands/menu/shared/service.js +1 -1
  103. package/lib/commands/menu/shared/sync-core.js +1 -1
  104. package/lib/commands/menu/shared/update-core.js +1 -1
  105. package/lib/commands/menu/shared/valid-url.js +1 -1
  106. package/lib/commands/menu/sync.js +1 -1
  107. package/lib/commands/menu/update.js +1 -1
  108. package/lib/commands/page/generate-start.js +1 -1
  109. package/lib/commands/page/generate-status.js +1 -1
  110. package/lib/commands/page/index.js +1 -1
  111. package/lib/commands/page/pull.js +1 -1
  112. package/lib/commands/page/push.js +1 -1
  113. package/lib/commands/page/relation-audit.js +1 -1
  114. package/lib/commands/page/shared.js +1 -1
  115. package/lib/commands/page/standard-page-status.js +1 -1
  116. package/lib/commands/page/sync.js +1 -1
  117. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  118. package/lib/commands/project/create/format-elapsed.js +1 -1
  119. package/lib/commands/project/create/main.js +1 -1
  120. package/lib/commands/project/create/non-interactive.js +1 -1
  121. package/lib/commands/project/create/project-template-path.js +1 -1
  122. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  123. package/lib/commands/project/create/use-format-code.js +1 -1
  124. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  125. package/lib/commands/project/index.js +1 -1
  126. package/lib/commands/project/init.js +1 -1
  127. package/lib/commands/project/upgrade.js +1 -1
  128. package/lib/commands/registry.js +1 -1
  129. package/lib/commands/run/index.js +1 -1
  130. package/lib/commands/schema.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
@@ -1 +1 @@
1
- const a140_0x1a4052=a140_0x2a15;(function(_0x172453,_0x407c0e){const _0x4be5e0=a140_0x2a15,_0x481d2f=_0x172453();while(!![]){try{const _0x15b4f3=-parseInt(_0x4be5e0(0xab))/0x1*(parseInt(_0x4be5e0(0xbd))/0x2)+parseInt(_0x4be5e0(0xc0))/0x3*(-parseInt(_0x4be5e0(0xa9))/0x4)+-parseInt(_0x4be5e0(0xbe))/0x5*(parseInt(_0x4be5e0(0xb5))/0x6)+-parseInt(_0x4be5e0(0xa1))/0x7+parseInt(_0x4be5e0(0xb2))/0x8+-parseInt(_0x4be5e0(0xb4))/0x9*(-parseInt(_0x4be5e0(0xc2))/0xa)+parseInt(_0x4be5e0(0xb8))/0xb;if(_0x15b4f3===_0x407c0e)break;else _0x481d2f['push'](_0x481d2f['shift']());}catch(_0x4b40e1){_0x481d2f['push'](_0x481d2f['shift']());}}}(a140_0x6e8e,0xea07d));import{listSqlQueries}from'../../core/api-client.js';import{loadSqlProjectConfig}from'../../core/sql-sync/config.js';import{scanLocalSqlQueries}from'../../core/sql-sync/file-system.js';import{computeSqlFileHash}from'../../core/sql-sync/hash.js';function a140_0x6e8e(){const _0xbbfd91=['225RVjQCE','2748YfwEWc','appCode','tableData','21199695CCtqpu','filePath','hash','sqls','sqlRoot','156556dawDxe','16535eDSIAt','totalCount','21TCOkuo','push','539590JPYSWv','Also\x20check\x20for\x20remote-only\x20SQL\x20queries\x20not\x20present\x20locally','keys','\x20missing,\x20','\x20added,\x20','6677573EMZcAH','status','paging','lockFilePath','lockKey','All\x20SQL\x20queries\x20are\x20in\x20sync.','sqlName','\x20unchanged','186968kdvTMt','sql','14GBtlQw','remote','has','length','relativePath','path','bool','12592000RoBawI','read'];a140_0x6e8e=function(){return _0xbbfd91;};return a140_0x6e8e();}import{createEmptySqlLock,ensureSqlLockScope,readSqlLockFile}from'../../core/sql-sync/lock.js';const PAGE_SIZE=0x64;function a140_0x2a15(_0x2c4306,_0x5ee943){_0x2c4306=_0x2c4306-0x9d;const _0x6e8e4b=a140_0x6e8e();let _0x2a151f=_0x6e8e4b[_0x2c4306];return _0x2a151f;}async function fetchAllSqlCodes(_0x173690){const _0x1c384d=a140_0x2a15,_0x569748=[];let _0x22cbe9=0x1;while(!![]){const _0x810938=await listSqlQueries(_0x173690,{'currentPage':_0x22cbe9,'pageSize':PAGE_SIZE}),_0xc6d8ca=_0x810938[_0x1c384d(0xb7)]??[];_0x569748[_0x1c384d(0xc1)](..._0xc6d8ca['map'](_0x4a5a44=>_0x4a5a44['sqlCode']));if(_0xc6d8ca[_0x1c384d(0xae)]===0x0)break;const _0x41d2d1=_0x810938[_0x1c384d(0xa3)]?.[_0x1c384d(0xbf)];if(_0x41d2d1!=null?_0x569748[_0x1c384d(0xae)]>=_0x41d2d1:_0xc6d8ca[_0x1c384d(0xae)]<PAGE_SIZE)break;_0x22cbe9++;}return _0x569748;}export const sqlStatus={'service':a140_0x1a4052(0xaa),'command':a140_0x1a4052(0xa2),'description':'Check\x20local\x20SQL\x20sync\x20status\x20against\x20lock\x20file','risk':a140_0x1a4052(0xb3),'flags':[{'name':a140_0x1a4052(0xac),'type':'boolean','description':a140_0x1a4052(0x9d)}],async 'execute'(_0x3ebea2){const _0x2ffc3b=a140_0x1a4052,_0xdfd0f3=loadSqlProjectConfig(_0x3ebea2[_0x2ffc3b(0xb6)]),_0x3e1f4c=await readSqlLockFile(_0xdfd0f3[_0x2ffc3b(0xa4)]),{appLock:_0x283d8b}=ensureSqlLockScope(_0x3e1f4c??createEmptySqlLock(),_0xdfd0f3[_0x2ffc3b(0xb6)],_0xdfd0f3[_0x2ffc3b(0xbc)],_0x2ffc3b(0xa2)),_0xaf4cd5=await scanLocalSqlQueries(_0xdfd0f3),_0x4ac0a0=[],_0x58a9af=[],_0x30962b=[],_0x34684e=[],_0x46b275=new Set(_0xaf4cd5['map'](_0x5e93f1=>_0x5e93f1[_0x2ffc3b(0xa5)]));for(const _0x3d3843 of _0xaf4cd5){const _0x445754=await computeSqlFileHash(_0x3d3843[_0x2ffc3b(0xb9)]),_0x470df7=_0x283d8b[_0x2ffc3b(0xbb)][_0x3d3843[_0x2ffc3b(0xa5)]],_0x494020=!!_0x470df7&&_0x470df7[_0x2ffc3b(0xb0)]!==_0x3d3843[_0x2ffc3b(0xaf)],_0x4d38f2=!!_0x470df7&&!!_0x3d3843['sqlName']&&_0x470df7[_0x2ffc3b(0xa7)]!==_0x3d3843['sqlName'];if(!_0x470df7)_0x4ac0a0[_0x2ffc3b(0xc1)](_0x3d3843['lockKey']);else _0x470df7[_0x2ffc3b(0xba)]!==_0x445754||_0x494020||_0x4d38f2?_0x58a9af['push'](_0x3d3843[_0x2ffc3b(0xa5)]):_0x30962b[_0x2ffc3b(0xc1)](_0x3d3843['lockKey']);}for(const _0x325364 of Object[_0x2ffc3b(0x9e)](_0x283d8b[_0x2ffc3b(0xbb)])){!_0x46b275[_0x2ffc3b(0xad)](_0x325364)&&_0x34684e[_0x2ffc3b(0xc1)](_0x325364);}const _0x39bde8=[];if(_0x3ebea2[_0x2ffc3b(0xb1)](_0x2ffc3b(0xac))){const _0x512514=await fetchAllSqlCodes(_0x3ebea2[_0x2ffc3b(0xb6)]);for(const _0xaa671c of _0x512514){!_0x46b275[_0x2ffc3b(0xad)](_0xaa671c)&&!_0x283d8b[_0x2ffc3b(0xbb)][_0xaa671c]&&_0x39bde8['push'](_0xaa671c);}}const _0x522430=_0x4ac0a0[_0x2ffc3b(0xae)]===0x0&&_0x58a9af[_0x2ffc3b(0xae)]===0x0&&_0x34684e[_0x2ffc3b(0xae)]===0x0&&_0x39bde8[_0x2ffc3b(0xae)]===0x0;return{'ok':!![],'data':{'added':_0x4ac0a0,'modified':_0x58a9af,'missing':_0x34684e,'unchanged':_0x30962b,'remoteOnly':_0x39bde8},'message':_0x522430?_0x2ffc3b(0xa6):_0x4ac0a0[_0x2ffc3b(0xae)]+_0x2ffc3b(0xa0)+_0x58a9af[_0x2ffc3b(0xae)]+'\x20modified,\x20'+_0x34684e[_0x2ffc3b(0xae)]+_0x2ffc3b(0x9f)+_0x30962b['length']+_0x2ffc3b(0xa8)+(_0x39bde8[_0x2ffc3b(0xae)]>0x0?',\x20'+_0x39bde8['length']+'\x20remote-only':'')};}};
1
+ const a141_0x5b3f57=a141_0x3479;(function(_0x4e15d7,_0x2e500f){const _0x2b76d3=a141_0x3479,_0xc2b5dd=_0x4e15d7();while(!![]){try{const _0xad4c91=-parseInt(_0x2b76d3(0x172))/0x1+-parseInt(_0x2b76d3(0x173))/0x2*(-parseInt(_0x2b76d3(0x188))/0x3)+-parseInt(_0x2b76d3(0x174))/0x4*(parseInt(_0x2b76d3(0x168))/0x5)+-parseInt(_0x2b76d3(0x187))/0x6+-parseInt(_0x2b76d3(0x17a))/0x7+-parseInt(_0x2b76d3(0x183))/0x8*(-parseInt(_0x2b76d3(0x165))/0x9)+parseInt(_0x2b76d3(0x184))/0xa*(parseInt(_0x2b76d3(0x167))/0xb);if(_0xad4c91===_0x2e500f)break;else _0xc2b5dd['push'](_0xc2b5dd['shift']());}catch(_0xf3341c){_0xc2b5dd['push'](_0xc2b5dd['shift']());}}}(a141_0x314c,0xbd258));import{listSqlQueries}from'../../core/api-client.js';function a141_0x314c(){const _0x141925=['relativePath','filePath','\x20missing,\x20','\x20remote-only','sqlRoot','6984201osVjGS','sqls','Check\x20local\x20SQL\x20sync\x20status\x20against\x20lock\x20file','status','appCode','hash','sqlName','sqlCode','path','273688NYDEWN','834940KHXgEd','lockFilePath','map','8844570DxHcYn','2598uJwbvv','push','length','totalCount','9QbDbrd','lockKey','605eOAxIa','17075ErwUah','paging','bool','keys','Also\x20check\x20for\x20remote-only\x20SQL\x20queries\x20not\x20present\x20locally','remote','has','\x20unchanged','All\x20SQL\x20queries\x20are\x20in\x20sync.','read','1446017VAlWoy','2866ICBMuH','1376HWZEbb'];a141_0x314c=function(){return _0x141925;};return a141_0x314c();}import{loadSqlProjectConfig}from'../../core/sql-sync/config.js';import{scanLocalSqlQueries}from'../../core/sql-sync/file-system.js';function a141_0x3479(_0xaa9b87,_0x5c976c){_0xaa9b87=_0xaa9b87-0x162;const _0x314c99=a141_0x314c();let _0x3479d7=_0x314c99[_0xaa9b87];return _0x3479d7;}import{computeSqlFileHash}from'../../core/sql-sync/hash.js';import{createEmptySqlLock,ensureSqlLockScope,readSqlLockFile}from'../../core/sql-sync/lock.js';const PAGE_SIZE=0x64;async function fetchAllSqlCodes(_0x737434){const _0x50d11c=a141_0x3479,_0x14fe09=[];let _0x57ced2=0x1;while(!![]){const _0x32d72e=await listSqlQueries(_0x737434,{'currentPage':_0x57ced2,'pageSize':PAGE_SIZE}),_0x2b1568=_0x32d72e['tableData']??[];_0x14fe09[_0x50d11c(0x162)](..._0x2b1568[_0x50d11c(0x186)](_0xe8fd71=>_0xe8fd71[_0x50d11c(0x181)]));if(_0x2b1568[_0x50d11c(0x163)]===0x0)break;const _0x3a3bfb=_0x32d72e[_0x50d11c(0x169)]?.[_0x50d11c(0x164)];if(_0x3a3bfb!=null?_0x14fe09[_0x50d11c(0x163)]>=_0x3a3bfb:_0x2b1568['length']<PAGE_SIZE)break;_0x57ced2++;}return _0x14fe09;}export const sqlStatus={'service':'sql','command':'status','description':a141_0x5b3f57(0x17c),'risk':a141_0x5b3f57(0x171),'flags':[{'name':a141_0x5b3f57(0x16d),'type':'boolean','description':a141_0x5b3f57(0x16c)}],async 'execute'(_0x350af9){const _0x54e407=a141_0x5b3f57,_0x315059=loadSqlProjectConfig(_0x350af9[_0x54e407(0x17e)]),_0x163cfa=await readSqlLockFile(_0x315059[_0x54e407(0x185)]),{appLock:_0x3035e9}=ensureSqlLockScope(_0x163cfa??createEmptySqlLock(),_0x315059[_0x54e407(0x17e)],_0x315059[_0x54e407(0x179)],_0x54e407(0x17d)),_0xcb80b8=await scanLocalSqlQueries(_0x315059),_0x32fa40=[],_0x2d3277=[],_0x11e0eb=[],_0x28e450=[],_0x11c5fa=new Set(_0xcb80b8['map'](_0x365748=>_0x365748[_0x54e407(0x166)]));for(const _0x30ce60 of _0xcb80b8){const _0x1cd32d=await computeSqlFileHash(_0x30ce60[_0x54e407(0x176)]),_0x545170=_0x3035e9[_0x54e407(0x17b)][_0x30ce60[_0x54e407(0x166)]],_0x334154=!!_0x545170&&_0x545170[_0x54e407(0x182)]!==_0x30ce60[_0x54e407(0x175)],_0x3f8c5a=!!_0x545170&&!!_0x30ce60[_0x54e407(0x180)]&&_0x545170[_0x54e407(0x180)]!==_0x30ce60[_0x54e407(0x180)];if(!_0x545170)_0x32fa40[_0x54e407(0x162)](_0x30ce60[_0x54e407(0x166)]);else _0x545170[_0x54e407(0x17f)]!==_0x1cd32d||_0x334154||_0x3f8c5a?_0x2d3277[_0x54e407(0x162)](_0x30ce60[_0x54e407(0x166)]):_0x11e0eb['push'](_0x30ce60[_0x54e407(0x166)]);}for(const _0x12761a of Object[_0x54e407(0x16b)](_0x3035e9[_0x54e407(0x17b)])){!_0x11c5fa[_0x54e407(0x16e)](_0x12761a)&&_0x28e450[_0x54e407(0x162)](_0x12761a);}const _0x5738a0=[];if(_0x350af9[_0x54e407(0x16a)](_0x54e407(0x16d))){const _0x1f80ab=await fetchAllSqlCodes(_0x350af9[_0x54e407(0x17e)]);for(const _0x3cfdf7 of _0x1f80ab){!_0x11c5fa[_0x54e407(0x16e)](_0x3cfdf7)&&!_0x3035e9[_0x54e407(0x17b)][_0x3cfdf7]&&_0x5738a0[_0x54e407(0x162)](_0x3cfdf7);}}const _0x4632a6=_0x32fa40[_0x54e407(0x163)]===0x0&&_0x2d3277[_0x54e407(0x163)]===0x0&&_0x28e450[_0x54e407(0x163)]===0x0&&_0x5738a0[_0x54e407(0x163)]===0x0;return{'ok':!![],'data':{'added':_0x32fa40,'modified':_0x2d3277,'missing':_0x28e450,'unchanged':_0x11e0eb,'remoteOnly':_0x5738a0},'message':_0x4632a6?_0x54e407(0x170):_0x32fa40[_0x54e407(0x163)]+'\x20added,\x20'+_0x2d3277[_0x54e407(0x163)]+'\x20modified,\x20'+_0x28e450[_0x54e407(0x163)]+_0x54e407(0x177)+_0x11e0eb[_0x54e407(0x163)]+_0x54e407(0x16f)+(_0x5738a0['length']>0x0?',\x20'+_0x5738a0['length']+_0x54e407(0x178):'')};}};
@@ -1 +1 @@
1
- function a141_0x3669(_0x31cd1e,_0x5780c9){_0x31cd1e=_0x31cd1e-0xcc;const _0x25e184=a141_0x25e1();let _0x366976=_0x25e184[_0x31cd1e];return _0x366976;}const a141_0x165bc3=a141_0x3669;(function(_0x190011,_0x8eb23){const _0x20f971=a141_0x3669,_0x4975e4=_0x190011();while(!![]){try{const _0x173d23=parseInt(_0x20f971(0xe3))/0x1+-parseInt(_0x20f971(0xed))/0x2*(parseInt(_0x20f971(0xdc))/0x3)+parseInt(_0x20f971(0xef))/0x4*(parseInt(_0x20f971(0xd4))/0x5)+-parseInt(_0x20f971(0xeb))/0x6+parseInt(_0x20f971(0xf5))/0x7*(parseInt(_0x20f971(0xd3))/0x8)+-parseInt(_0x20f971(0xcc))/0x9+parseInt(_0x20f971(0xda))/0xa;if(_0x173d23===_0x8eb23)break;else _0x4975e4['push'](_0x4975e4['shift']());}catch(_0x2195dd){_0x4975e4['push'](_0x4975e4['shift']());}}}(a141_0x25e1,0x479ca));function a141_0x25e1(){const _0x1289df=['map','\x22\x20not\x20found\x20or\x20not\x20accessible','108267WGpPLn','type','message','str','\x22\x20not\x20found\x20in\x20any\x20dataset','trim','name','Provide\x20--file\x20or\x20--sql','987462ruQDik','filter','2RssyzJ','reason','4vwcZem','fields','split','Validate\x20SQL\x20content\x20without\x20saving\x20(type\x20detection,\x20parameter\x20extraction,\x20optional\x20schema\x20check)','toLowerCase','isDangerous','406WqDodm','validation','Comma-separated\x20dataset\x20codes\x20to\x20cross-check\x20table/column\x20names\x20against','isSelectOnly','from','file','2171808fSHrbp','push','tableName','validate','parameters','string','cwd','29288FAaqhe','1609495hNNjnR','sqlType','valid','sql','dbtableConfig','tables','1958480teEmDw','schemas','417423vONwSd','schemaWarnings','Inline\x20SQL\x20content\x20to\x20validate\x20(alternative\x20to\x20--file)','Table\x20\x22','Path\x20to\x20the\x20SQL\x20file\x20to\x20validate'];a141_0x25e1=function(){return _0x1289df;};return a141_0x25e1();}import{readFileSync,existsSync}from'node:fs';import{resolve}from'node:path';import{validateSql}from'../../core/sql-validator.js';import{getDatasetDetail,listDatasets}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{assertDatasetIsDbTableBacked,filterDbTableBackedDatasets}from'../../commands/dataset/capability.js';export const sqlValidate={'service':a141_0x165bc3(0xd7),'command':a141_0x165bc3(0xcf),'description':a141_0x165bc3(0xf2),'risk':'read','flags':[{'name':a141_0x165bc3(0xfa),'type':a141_0x165bc3(0xd1),'description':a141_0x165bc3(0xe0)},{'name':'sql','type':a141_0x165bc3(0xd1),'description':a141_0x165bc3(0xde)},{'name':a141_0x165bc3(0xdb),'type':a141_0x165bc3(0xd1),'description':a141_0x165bc3(0xf7)}],async 'execute'(_0xe77b42){const _0x309b10=a141_0x165bc3,_0x1d9c8a=_0xe77b42[_0x309b10(0xe6)]('file'),_0x561e14=_0xe77b42[_0x309b10(0xe6)](_0x309b10(0xd7));if(!_0x1d9c8a&&!_0x561e14)throw CliErrors['flagMissing'](_0x309b10(0xfa),_0x309b10(0xea));let _0x4c1f2e;if(_0x1d9c8a){const _0x15711e=resolve(process[_0x309b10(0xd2)](),_0x1d9c8a);if(!existsSync(_0x15711e))throw CliErrors[_0x309b10(0xf6)]('File\x20not\x20found:\x20'+_0x15711e);_0x4c1f2e=readFileSync(_0x15711e,'utf-8');}else _0x4c1f2e=_0x561e14;const _0x4a342d=validateSql(_0x4c1f2e),_0x37e88e={'valid':_0x4a342d[_0x309b10(0xd6)],'sqlType':_0x4a342d[_0x309b10(0xd5)][_0x309b10(0xe4)],'isSelectOnly':_0x4a342d[_0x309b10(0xd5)][_0x309b10(0xf8)],'isDangerous':_0x4a342d[_0x309b10(0xd5)][_0x309b10(0xf4)],'tables':_0x4a342d[_0x309b10(0xd9)],'parameters':_0x4a342d[_0x309b10(0xd0)],'message':_0x4a342d[_0x309b10(0xe5)]};_0x4a342d[_0x309b10(0xd5)][_0x309b10(0xee)]&&(_0x37e88e[_0x309b10(0xee)]=_0x4a342d['sqlType'][_0x309b10(0xee)]);const _0x3d52af=_0xe77b42[_0x309b10(0xe6)](_0x309b10(0xdb));if(_0x3d52af&&_0x4a342d[_0x309b10(0xd6)]){const _0xa9cf68=_0x3d52af[_0x309b10(0xf1)](',')[_0x309b10(0xe1)](_0xf2cd69=>_0xf2cd69[_0x309b10(0xe8)]())[_0x309b10(0xec)](Boolean),_0x3243f0=[],_0xabf9cc=filterDbTableBackedDatasets(await listDatasets(_0xe77b42['appCode'])),_0x564f28=new Map(_0xabf9cc[_0x309b10(0xe1)](_0x334337=>[_0x334337['dbtableConfig']?.['tableName']?.[_0x309b10(0xf3)](),_0x334337]));for(const _0x44672d of _0x4a342d['tables']){const _0x3b034b=_0x564f28['get'](_0x44672d['toLowerCase']());!_0x3b034b&&_0x3243f0[_0x309b10(0xcd)](_0x309b10(0xdf)+_0x44672d+_0x309b10(0xe7));}for(const _0x311260 of _0xa9cf68){let _0x56b979;try{_0x56b979=await getDatasetDetail(_0x311260);}catch{_0x3243f0[_0x309b10(0xcd)]('Dataset\x20\x22'+_0x311260+_0x309b10(0xe2));continue;}assertDatasetIsDbTableBacked(_0x56b979,'SQL\x20schema\x20validation');const _0x234715=Array['isArray'](_0x56b979[_0x309b10(0xf0)])?_0x56b979[_0x309b10(0xf0)]:[],_0x4fa2e6=new Set(_0x234715[_0x309b10(0xe1)](_0x59401a=>_0x59401a[_0x309b10(0xe9)]?.[_0x309b10(0xf3)]())),_0x200013=_0x56b979[_0x309b10(0xd8)]?.[_0x309b10(0xce)]||_0x56b979['tableName']||_0x311260;_0x37e88e['schema:'+_0x200013]={'code':_0x311260,'tableName':_0x200013,'fieldCount':_0x4fa2e6['size'],'fields':Array[_0x309b10(0xf9)](_0x4fa2e6)};}_0x3243f0['length']>0x0&&(_0x37e88e[_0x309b10(0xdd)]=_0x3243f0);}return{'ok':_0x4a342d[_0x309b10(0xd6)],'data':_0x37e88e,'message':_0x4a342d[_0x309b10(0xe5)]};}};
1
+ const a142_0x433114=a142_0x25bb;(function(_0x34b464,_0x52ed00){const _0x19a45a=a142_0x25bb,_0x4c2307=_0x34b464();while(!![]){try{const _0x3534dd=parseInt(_0x19a45a(0x99))/0x1*(parseInt(_0x19a45a(0x7c))/0x2)+parseInt(_0x19a45a(0x86))/0x3+-parseInt(_0x19a45a(0x92))/0x4*(parseInt(_0x19a45a(0x7a))/0x5)+-parseInt(_0x19a45a(0x70))/0x6*(-parseInt(_0x19a45a(0x9e))/0x7)+-parseInt(_0x19a45a(0xa1))/0x8*(parseInt(_0x19a45a(0x94))/0x9)+parseInt(_0x19a45a(0x69))/0xa*(parseInt(_0x19a45a(0x71))/0xb)+parseInt(_0x19a45a(0x72))/0xc*(-parseInt(_0x19a45a(0x83))/0xd);if(_0x3534dd===_0x52ed00)break;else _0x4c2307['push'](_0x4c2307['shift']());}catch(_0x318e19){_0x4c2307['push'](_0x4c2307['shift']());}}}(a142_0x48b6,0xa5780));import{readFileSync,existsSync}from'node:fs';import{resolve}from'node:path';import{validateSql}from'../../core/sql-validator.js';function a142_0x25bb(_0x432ad9,_0x41b8be){_0x432ad9=_0x432ad9-0x69;const _0x48b6bc=a142_0x48b6();let _0x25bbc0=_0x48b6bc[_0x432ad9];return _0x25bbc0;}import{getDatasetDetail,listDatasets}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{assertDatasetIsDbTableBacked,filterDbTableBackedDatasets}from'../../commands/dataset/capability.js';function a142_0x48b6(){const _0xf20401=['fields','flagMissing','tableName','toLowerCase','sqlType','utf-8','18EoJGjg','11ocfbxP','3606684cdXyrr','validate','from','Path\x20to\x20the\x20SQL\x20file\x20to\x20validate','filter','split','push','isArray','110ZuijbS','sql','55442PQdYFX','parameters','read','schema:','Comma-separated\x20dataset\x20codes\x20to\x20cross-check\x20table/column\x20names\x20against','type','valid','91xjgTpk','File\x20not\x20found:\x20','SQL\x20schema\x20validation','3905667iriDrL','\x22\x20not\x20found\x20in\x20any\x20dataset','trim','Table\x20\x22','cwd','schemaWarnings','isSelectOnly','size','dbtableConfig','isDangerous','file','message','184ssriKi','\x22\x20not\x20found\x20or\x20not\x20accessible','1764459SSNBsc','reason','get','Dataset\x20\x22','tables','47pVcHZR','map','name','schemas','Provide\x20--file\x20or\x20--sql','1885191kIeSOP','str','string','48FGsgMx','5462620VdZkTr'];a142_0x48b6=function(){return _0xf20401;};return a142_0x48b6();}export const sqlValidate={'service':a142_0x433114(0x7b),'command':a142_0x433114(0x73),'description':'Validate\x20SQL\x20content\x20without\x20saving\x20(type\x20detection,\x20parameter\x20extraction,\x20optional\x20schema\x20check)','risk':a142_0x433114(0x7e),'flags':[{'name':a142_0x433114(0x90),'type':a142_0x433114(0xa0),'description':a142_0x433114(0x75)},{'name':'sql','type':'string','description':'Inline\x20SQL\x20content\x20to\x20validate\x20(alternative\x20to\x20--file)'},{'name':a142_0x433114(0x9c),'type':a142_0x433114(0xa0),'description':a142_0x433114(0x80)}],async 'execute'(_0x209445){const _0x169406=a142_0x433114,_0x3ca594=_0x209445[_0x169406(0x9f)](_0x169406(0x90)),_0x188662=_0x209445[_0x169406(0x9f)]('sql');if(!_0x3ca594&&!_0x188662)throw CliErrors[_0x169406(0x6b)](_0x169406(0x90),_0x169406(0x9d));let _0x23b6ca;if(_0x3ca594){const _0x1fe34d=resolve(process[_0x169406(0x8a)](),_0x3ca594);if(!existsSync(_0x1fe34d))throw CliErrors['validation'](_0x169406(0x84)+_0x1fe34d);_0x23b6ca=readFileSync(_0x1fe34d,_0x169406(0x6f));}else _0x23b6ca=_0x188662;const _0x1a3978=validateSql(_0x23b6ca),_0x3acf3e={'valid':_0x1a3978['valid'],'sqlType':_0x1a3978[_0x169406(0x6e)][_0x169406(0x81)],'isSelectOnly':_0x1a3978[_0x169406(0x6e)][_0x169406(0x8c)],'isDangerous':_0x1a3978[_0x169406(0x6e)][_0x169406(0x8f)],'tables':_0x1a3978[_0x169406(0x98)],'parameters':_0x1a3978[_0x169406(0x7d)],'message':_0x1a3978[_0x169406(0x91)]};_0x1a3978[_0x169406(0x6e)][_0x169406(0x95)]&&(_0x3acf3e[_0x169406(0x95)]=_0x1a3978[_0x169406(0x6e)][_0x169406(0x95)]);const _0x43379a=_0x209445[_0x169406(0x9f)](_0x169406(0x9c));if(_0x43379a&&_0x1a3978[_0x169406(0x82)]){const _0x269477=_0x43379a[_0x169406(0x77)](',')['map'](_0x2827d8=>_0x2827d8[_0x169406(0x88)]())[_0x169406(0x76)](Boolean),_0x2c06df=[],_0x4e2fad=filterDbTableBackedDatasets(await listDatasets(_0x209445['appCode'])),_0x22ddc6=new Map(_0x4e2fad[_0x169406(0x9a)](_0x233182=>[_0x233182[_0x169406(0x8e)]?.[_0x169406(0x6c)]?.['toLowerCase'](),_0x233182]));for(const _0xc30149 of _0x1a3978[_0x169406(0x98)]){const _0x3090b4=_0x22ddc6[_0x169406(0x96)](_0xc30149[_0x169406(0x6d)]());!_0x3090b4&&_0x2c06df[_0x169406(0x78)](_0x169406(0x89)+_0xc30149+_0x169406(0x87));}for(const _0x42e0d8 of _0x269477){let _0x5f282d;try{_0x5f282d=await getDatasetDetail(_0x42e0d8);}catch{_0x2c06df[_0x169406(0x78)](_0x169406(0x97)+_0x42e0d8+_0x169406(0x93));continue;}assertDatasetIsDbTableBacked(_0x5f282d,_0x169406(0x85));const _0x3fd988=Array[_0x169406(0x79)](_0x5f282d[_0x169406(0x6a)])?_0x5f282d[_0x169406(0x6a)]:[],_0x1174c8=new Set(_0x3fd988[_0x169406(0x9a)](_0xac9213=>_0xac9213[_0x169406(0x9b)]?.[_0x169406(0x6d)]())),_0x3aecdc=_0x5f282d['dbtableConfig']?.[_0x169406(0x6c)]||_0x5f282d['tableName']||_0x42e0d8;_0x3acf3e[_0x169406(0x7f)+_0x3aecdc]={'code':_0x42e0d8,'tableName':_0x3aecdc,'fieldCount':_0x1174c8[_0x169406(0x8d)],'fields':Array[_0x169406(0x74)](_0x1174c8)};}_0x2c06df['length']>0x0&&(_0x3acf3e[_0x169406(0x8b)]=_0x2c06df);}return{'ok':_0x1a3978['valid'],'data':_0x3acf3e,'message':_0x1a3978[_0x169406(0x91)]};}};
@@ -1 +1 @@
1
- const a142_0x49a54d=a142_0x1f91;(function(_0x4f0558,_0x2ead69){const _0x4c5ccf=a142_0x1f91,_0x1e713b=_0x4f0558();while(!![]){try{const _0x196173=-parseInt(_0x4c5ccf(0x180))/0x1+-parseInt(_0x4c5ccf(0x17e))/0x2*(parseInt(_0x4c5ccf(0x176))/0x3)+-parseInt(_0x4c5ccf(0x190))/0x4*(-parseInt(_0x4c5ccf(0x189))/0x5)+-parseInt(_0x4c5ccf(0x19c))/0x6+parseInt(_0x4c5ccf(0x1a6))/0x7+-parseInt(_0x4c5ccf(0x1a2))/0x8+parseInt(_0x4c5ccf(0x173))/0x9;if(_0x196173===_0x2ead69)break;else _0x1e713b['push'](_0x1e713b['shift']());}catch(_0x33578f){_0x1e713b['push'](_0x1e713b['shift']());}}}(a142_0x4e21,0xa342e));import{CliErrors}from'../../errors.js';function a142_0x4e21(){const _0x5bb0f7=['defaultApp','Target\x20environment','4727366xYpxUs','length','env','workspace.','init','\x20workspace\x20use\x20--app\x20<name>`.','validation','write','API\x20directory\x20path\x20for\x20this\x20workspace\x20app\x20profile','Pass\x20--appcode\x20<code>,\x20or\x20choose\x20one\x20of:\x20','14621832NlIGwZ','app','apps','3334398KaWOeU','riskLevel','apiDir','\x22\x20not\x20found.','use','Invalid\x20appcode:\x20','string','\x20--app\x20','2cRTvPu','join','571637uTwxvU','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20`','\x20(appcode:\x20','format','str','Locale\x20for\x20this\x20workspace\x20app\x20profile','keys','\x20workspace\x20<init|use>\x20--app\x20<name>\x20[--appcode\x20<code>]','locale','237735OBpGeP','App\x20profile\x20name\x20to\x20use\x20in\x20this\x20workspace','initialized','isArray','flag','\x20--appcode\x20<code>`.','Switch\x20the\x20current\x20workspace\x20app\x20binding','108JjFxEJ','number','trim','Missing\x20workspace\x20app\x20selector.','workspace','defaultFormat','Initialize\x20the\x20current\x20workspace\x20app\x20binding','appcode',').\x20Config:\x20','Use\x20`','.\x20Credentials:\x20not\x20written.','Workspace\x20','3086214fHMaPX','Risk\x20level\x20for\x20this\x20workspace\x20app\x20profile','App\x20code\x20to\x20bind\x20to\x20this\x20workspace','project','Default\x20page\x20size\x20for\x20this\x20workspace\x20app\x20profile','\x20workspace\x20','5740520bYafRV','pageSize'];a142_0x4e21=function(){return _0x5bb0f7;};return a142_0x4e21();}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_0x49a54d(0x187),SAFE_PROFILE_KEYS=['appcode',a142_0x49a54d(0x1a8),a142_0x49a54d(0x178),a142_0x49a54d(0x183),'pageSize',a142_0x49a54d(0x177),a142_0x49a54d(0x188)],workspaceFlags=[{'name':'app','type':'string','description':a142_0x49a54d(0x18a)},{'name':a142_0x49a54d(0x197),'type':a142_0x49a54d(0x17c),'description':a142_0x49a54d(0x19e)},{'name':a142_0x49a54d(0x1a8),'type':a142_0x49a54d(0x17c),'description':a142_0x49a54d(0x1a5),'enum':[...RABETBASE_ENV_VALUES]},{'name':a142_0x49a54d(0x178),'type':'string','description':a142_0x49a54d(0x171)},{'name':a142_0x49a54d(0x195),'type':a142_0x49a54d(0x17c),'description':'Default\x20output\x20format\x20for\x20this\x20workspace\x20app\x20profile','enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':a142_0x49a54d(0x1a3),'type':a142_0x49a54d(0x191),'description':a142_0x49a54d(0x1a0)},{'name':a142_0x49a54d(0x177),'type':'string','description':a142_0x49a54d(0x19d),'enum':[...RISK_LEVEL_VALUES]},{'name':a142_0x49a54d(0x188),'type':'string','description':a142_0x49a54d(0x185)}];function isRecord(_0x1dfc1d){const _0x416e04=a142_0x49a54d;return!!_0x1dfc1d&&typeof _0x1dfc1d==='object'&&!Array[_0x416e04(0x18c)](_0x1dfc1d);}function assertValidAppcode(_0xcd704c){const _0x474845=a142_0x49a54d,{valid:_0x396564,message:_0x54edd0}=validateAppcode(_0xcd704c);if(!_0x396564)throw CliErrors[_0x474845(0x16f)](_0x474845(0x17b)+_0xcd704c,_0x54edd0);}function sanitizeProfile(_0x5dc7c1){if(!isRecord(_0x5dc7c1))return{};const _0x29ebc7={};for(const _0x2ea3a5 of SAFE_PROFILE_KEYS){if(_0x5dc7c1[_0x2ea3a5]!==undefined)_0x29ebc7[_0x2ea3a5]=_0x5dc7c1[_0x2ea3a5];}return _0x29ebc7;}function cloneProfile(_0x472600){return isRecord(_0x472600)?{..._0x472600}:{};}function collectWorkspaceProfileOverrides(_0x272fd0){const _0x5ea11f=a142_0x49a54d,_0x32cb06={},_0x39f897=_0x272fd0[_0x5ea11f(0x184)](_0x5ea11f(0x1a8)),_0x5acfb7=_0x272fd0[_0x5ea11f(0x184)](_0x5ea11f(0x178)),_0x49c23c=_0x272fd0[_0x5ea11f(0x184)]('defaultFormat'),_0x265ce1=_0x272fd0[_0x5ea11f(0x18d)](_0x5ea11f(0x1a3)),_0x3f5fb1=_0x272fd0[_0x5ea11f(0x184)](_0x5ea11f(0x177)),_0x1cdb3d=_0x272fd0[_0x5ea11f(0x184)](_0x5ea11f(0x188));if(_0x39f897)_0x32cb06[_0x5ea11f(0x1a8)]=_0x39f897;if(_0x5acfb7)_0x32cb06[_0x5ea11f(0x178)]=_0x5acfb7;if(_0x49c23c)_0x32cb06['format']=_0x49c23c;if(_0x265ce1!==undefined&&_0x265ce1!=='')_0x32cb06[_0x5ea11f(0x1a3)]=Number(_0x265ce1);if(_0x3f5fb1)_0x32cb06[_0x5ea11f(0x177)]=_0x3f5fb1;if(_0x1cdb3d)_0x32cb06[_0x5ea11f(0x188)]=_0x1cdb3d;return _0x32cb06;}function a142_0x1f91(_0x34e9a7,_0x5dd477){_0x34e9a7=_0x34e9a7-0x16e;const _0x4e2132=a142_0x4e21();let _0x1f9174=_0x4e2132[_0x34e9a7];return _0x1f9174;}async function validateWorkspaceArgs(_0x2734c6){const _0x57dbb6=a142_0x49a54d,_0x13bd2f=_0x2734c6['str'](_0x57dbb6(0x174))[_0x57dbb6(0x192)](),_0x398d27=_0x2734c6['str'](_0x57dbb6(0x197))['trim']();if(!_0x13bd2f&&!_0x398d27)throw CliErrors['validation'](_0x57dbb6(0x193),_0x57dbb6(0x199)+CLI_BIN_NAME+_0x57dbb6(0x181)+CLI_BIN_NAME+_0x57dbb6(0x16e));if(_0x398d27)assertValidAppcode(_0x398d27);}function resolveKnownApps(){const _0x4a4ac6=a142_0x49a54d,{config:_0x1bf441,layers:_0x483546}=readRawConfigWithLayers(),_0x2c48c6=isRecord(_0x1bf441[_0x4a4ac6(0x175)])?_0x1bf441[_0x4a4ac6(0x175)]:{},_0x1075a7=isRecord(_0x483546['globalConfig'][_0x4a4ac6(0x175)])?_0x483546['globalConfig'][_0x4a4ac6(0x175)]:{};return{..._0x1075a7,..._0x2c48c6};}async function configureWorkspace(_0x55a4d6,_0x52467c){const _0x25c7a7=a142_0x49a54d,_0x200612=_0x55a4d6['str'](_0x25c7a7(0x174))[_0x25c7a7(0x192)](),_0x1f0417=_0x55a4d6[_0x25c7a7(0x184)](_0x25c7a7(0x197))[_0x25c7a7(0x192)](),_0x12492d=_0x200612||_0x1f0417;if(!_0x12492d)throw CliErrors[_0x25c7a7(0x16f)](_0x25c7a7(0x193),'Use\x20`'+CLI_BIN_NAME+_0x25c7a7(0x181)+CLI_BIN_NAME+_0x25c7a7(0x16e));if(_0x1f0417)assertValidAppcode(_0x1f0417);const _0x496901=resolveWriteConfigPath(_0x25c7a7(0x19f)),_0x4f52b9=readConfigFile(_0x496901),_0x526003=resolveKnownApps(),_0x3c4007=isRecord(_0x4f52b9[_0x25c7a7(0x175)])?{..._0x4f52b9[_0x25c7a7(0x175)]}:{},_0x4a9535=cloneProfile(_0x3c4007[_0x12492d]),_0x360362=sanitizeProfile(_0x526003[_0x12492d]),_0x55aff9=_0x1f0417?{}:_0x360362,_0x18aa6e=_0x1f0417||_0x55aff9[_0x25c7a7(0x197)];if(!_0x18aa6e){const _0x24e1dc=Object[_0x25c7a7(0x186)](_0x526003),_0x208e0b=_0x24e1dc[_0x25c7a7(0x1a7)]===0x0?'Use\x20`'+CLI_BIN_NAME+_0x25c7a7(0x1a1)+_0x52467c+_0x25c7a7(0x17d)+_0x12492d+_0x25c7a7(0x18e):_0x25c7a7(0x172)+_0x24e1dc[_0x25c7a7(0x17f)](',\x20');throw CliErrors[_0x25c7a7(0x16f)]('App\x20\x22'+_0x12492d+_0x25c7a7(0x179),_0x208e0b);}assertValidAppcode(String(_0x18aa6e));const _0x11c485={..._0x55aff9,..._0x4a9535,'appcode':String(_0x18aa6e),...collectWorkspaceProfileOverrides(_0x55a4d6)};return _0x3c4007[_0x12492d]=_0x11c485,_0x4f52b9[_0x25c7a7(0x175)]=_0x3c4007,_0x4f52b9[_0x25c7a7(0x1a4)]=_0x12492d,delete _0x4f52b9[_0x25c7a7(0x197)],delete _0x4f52b9['app'],_0x11c485[_0x25c7a7(0x1a8)]&&(_0x4f52b9[_0x25c7a7(0x1a8)]=_0x11c485[_0x25c7a7(0x1a8)]),writeConfigFile(_0x496901,_0x4f52b9),{'ok':!![],'message':_0x25c7a7(0x19b)+(_0x52467c==='init'?_0x25c7a7(0x18b):'updated')+':\x20'+_0x12492d+_0x25c7a7(0x182)+_0x11c485[_0x25c7a7(0x197)]+_0x25c7a7(0x198)+_0x496901+_0x25c7a7(0x19a),'data':{'operation':_0x25c7a7(0x1a9)+_0x52467c,'configPath':_0x496901,'app':_0x12492d,'appcode':_0x11c485['appcode'],'env':_0x11c485[_0x25c7a7(0x1a8)]??null,'credentialsWritten':![]}};}const workspaceInitDefinition={'service':a142_0x49a54d(0x194),'command':a142_0x49a54d(0x1aa),'description':a142_0x49a54d(0x196),'risk':a142_0x49a54d(0x170),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x583b55=>configureWorkspace(_0x583b55,'init')},workspaceUseDefinition={'service':a142_0x49a54d(0x194),'command':a142_0x49a54d(0x17a),'description':a142_0x49a54d(0x18f),'risk':a142_0x49a54d(0x170),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x1857c8=>configureWorkspace(_0x1857c8,'use')};export const workspaceDefinitions=[workspaceInitDefinition,workspaceUseDefinition];export{WORKSPACE_USAGE};
1
+ const a143_0x95afa2=a143_0x535f;(function(_0x8e5d1f,_0x5f0e66){const _0x1cb425=a143_0x535f,_0x59b2ce=_0x8e5d1f();while(!![]){try{const _0x4b126b=-parseInt(_0x1cb425(0xc8))/0x1*(parseInt(_0x1cb425(0xc0))/0x2)+parseInt(_0x1cb425(0xaf))/0x3+-parseInt(_0x1cb425(0xe3))/0x4+-parseInt(_0x1cb425(0xda))/0x5*(-parseInt(_0x1cb425(0xdb))/0x6)+-parseInt(_0x1cb425(0xd2))/0x7+-parseInt(_0x1cb425(0xca))/0x8+parseInt(_0x1cb425(0xd4))/0x9;if(_0x4b126b===_0x5f0e66)break;else _0x59b2ce['push'](_0x59b2ce['shift']());}catch(_0x23988e){_0x59b2ce['push'](_0x59b2ce['shift']());}}}(a143_0x2cf9,0x80399));import{CliErrors}from'../../errors.js';function a143_0x2cf9(){const _0x523f53=['workspace.','join','trim','Default\x20output\x20format\x20for\x20this\x20workspace\x20app\x20profile','Locale\x20for\x20this\x20workspace\x20app\x20profile','apps','Target\x20environment','674182gdXAAL','Switch\x20the\x20current\x20workspace\x20app\x20binding','2944456dGmlZd','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20`','number','Pass\x20--appcode\x20<code>,\x20or\x20choose\x20one\x20of:\x20','updated','globalConfig','\x20workspace\x20use\x20--app\x20<name>`.','workspace','3064516tCpSsx','\x20workspace\x20<init|use>\x20--app\x20<name>\x20[--appcode\x20<code>]','18597735ZEYsyE','flag','env','\x22\x20not\x20found.','Invalid\x20appcode:\x20','keys','5KvgjVp','92166eifCmT','riskLevel','init','appcode','locale','apiDir','str','\x20--appcode\x20<code>`.','1174776xgNVjj','Missing\x20workspace\x20app\x20selector.','validation','defaultFormat','651462VlgSGC',').\x20Config:\x20','Use\x20`','\x20(appcode:\x20','Default\x20page\x20size\x20for\x20this\x20workspace\x20app\x20profile','\x20workspace\x20','initialized','format','use','app','project','App\x20code\x20to\x20bind\x20to\x20this\x20workspace','Workspace\x20','object','string','length','pageSize','2yzqaFY'];a143_0x2cf9=function(){return _0x523f53;};return a143_0x2cf9();}import{CLI_BIN_NAME}from'../../constant/cli.js';import{RABETBASE_ENV_VALUES}from'../../constant/env.js';function a143_0x535f(_0x11b2de,_0x18c9ea){_0x11b2de=_0x11b2de-0xad;const _0x2cf9b3=a143_0x2cf9();let _0x535f8f=_0x2cf9b3[_0x11b2de];return _0x535f8f;}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+a143_0x95afa2(0xd3),SAFE_PROFILE_KEYS=[a143_0x95afa2(0xde),'env',a143_0x95afa2(0xe0),a143_0x95afa2(0xb6),a143_0x95afa2(0xbf),a143_0x95afa2(0xdc),a143_0x95afa2(0xdf)],workspaceFlags=[{'name':a143_0x95afa2(0xb8),'type':a143_0x95afa2(0xbd),'description':'App\x20profile\x20name\x20to\x20use\x20in\x20this\x20workspace'},{'name':'appcode','type':a143_0x95afa2(0xbd),'description':a143_0x95afa2(0xba)},{'name':a143_0x95afa2(0xd6),'type':'string','description':a143_0x95afa2(0xc7),'enum':[...RABETBASE_ENV_VALUES]},{'name':a143_0x95afa2(0xe0),'type':a143_0x95afa2(0xbd),'description':'API\x20directory\x20path\x20for\x20this\x20workspace\x20app\x20profile'},{'name':a143_0x95afa2(0xae),'type':a143_0x95afa2(0xbd),'description':a143_0x95afa2(0xc4),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':'pageSize','type':a143_0x95afa2(0xcc),'description':a143_0x95afa2(0xb3)},{'name':'riskLevel','type':'string','description':'Risk\x20level\x20for\x20this\x20workspace\x20app\x20profile','enum':[...RISK_LEVEL_VALUES]},{'name':a143_0x95afa2(0xdf),'type':a143_0x95afa2(0xbd),'description':a143_0x95afa2(0xc5)}];function isRecord(_0x5ae0dc){const _0x3812b7=a143_0x95afa2;return!!_0x5ae0dc&&typeof _0x5ae0dc===_0x3812b7(0xbc)&&!Array['isArray'](_0x5ae0dc);}function assertValidAppcode(_0x952738){const _0x194dbd=a143_0x95afa2,{valid:_0x399336,message:_0x562f3b}=validateAppcode(_0x952738);if(!_0x399336)throw CliErrors[_0x194dbd(0xad)](_0x194dbd(0xd8)+_0x952738,_0x562f3b);}function sanitizeProfile(_0x44f0b2){if(!isRecord(_0x44f0b2))return{};const _0x370eb8={};for(const _0x15f464 of SAFE_PROFILE_KEYS){if(_0x44f0b2[_0x15f464]!==undefined)_0x370eb8[_0x15f464]=_0x44f0b2[_0x15f464];}return _0x370eb8;}function cloneProfile(_0x4ea67f){return isRecord(_0x4ea67f)?{..._0x4ea67f}:{};}function collectWorkspaceProfileOverrides(_0x1fd3e2){const _0x3b7e1f=a143_0x95afa2,_0x53ff62={},_0x171226=_0x1fd3e2['str'](_0x3b7e1f(0xd6)),_0x243599=_0x1fd3e2['str'](_0x3b7e1f(0xe0)),_0x34eab8=_0x1fd3e2['str'](_0x3b7e1f(0xae)),_0x485bbc=_0x1fd3e2[_0x3b7e1f(0xd5)]('pageSize'),_0xb96764=_0x1fd3e2[_0x3b7e1f(0xe1)](_0x3b7e1f(0xdc)),_0x4712de=_0x1fd3e2['str'](_0x3b7e1f(0xdf));if(_0x171226)_0x53ff62[_0x3b7e1f(0xd6)]=_0x171226;if(_0x243599)_0x53ff62[_0x3b7e1f(0xe0)]=_0x243599;if(_0x34eab8)_0x53ff62[_0x3b7e1f(0xb6)]=_0x34eab8;if(_0x485bbc!==undefined&&_0x485bbc!=='')_0x53ff62['pageSize']=Number(_0x485bbc);if(_0xb96764)_0x53ff62[_0x3b7e1f(0xdc)]=_0xb96764;if(_0x4712de)_0x53ff62[_0x3b7e1f(0xdf)]=_0x4712de;return _0x53ff62;}async function validateWorkspaceArgs(_0x7be422){const _0x5de4d2=a143_0x95afa2,_0x177ff3=_0x7be422[_0x5de4d2(0xe1)](_0x5de4d2(0xb8))[_0x5de4d2(0xc3)](),_0x4ed304=_0x7be422[_0x5de4d2(0xe1)](_0x5de4d2(0xde))['trim']();if(!_0x177ff3&&!_0x4ed304)throw CliErrors['validation'](_0x5de4d2(0xe4),_0x5de4d2(0xb1)+CLI_BIN_NAME+'\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20`'+CLI_BIN_NAME+_0x5de4d2(0xd0));if(_0x4ed304)assertValidAppcode(_0x4ed304);}function resolveKnownApps(){const _0x5a403f=a143_0x95afa2,{config:_0x247d8a,layers:_0x9328be}=readRawConfigWithLayers(),_0x5b5b9d=isRecord(_0x247d8a[_0x5a403f(0xc6)])?_0x247d8a[_0x5a403f(0xc6)]:{},_0x209cea=isRecord(_0x9328be[_0x5a403f(0xcf)]['apps'])?_0x9328be['globalConfig']['apps']:{};return{..._0x209cea,..._0x5b5b9d};}async function configureWorkspace(_0x31e4a0,_0x1cd101){const _0x254776=a143_0x95afa2,_0x57afe1=_0x31e4a0['str'](_0x254776(0xb8))['trim'](),_0x21229b=_0x31e4a0[_0x254776(0xe1)](_0x254776(0xde))[_0x254776(0xc3)](),_0x2093ce=_0x57afe1||_0x21229b;if(!_0x2093ce)throw CliErrors[_0x254776(0xad)]('Missing\x20workspace\x20app\x20selector.',_0x254776(0xb1)+CLI_BIN_NAME+_0x254776(0xcb)+CLI_BIN_NAME+'\x20workspace\x20use\x20--app\x20<name>`.');if(_0x21229b)assertValidAppcode(_0x21229b);const _0x3e5e64=resolveWriteConfigPath(_0x254776(0xb9)),_0x259630=readConfigFile(_0x3e5e64),_0x3ae60c=resolveKnownApps(),_0x2fb7ed=isRecord(_0x259630[_0x254776(0xc6)])?{..._0x259630[_0x254776(0xc6)]}:{},_0x534861=cloneProfile(_0x2fb7ed[_0x2093ce]),_0x22d422=sanitizeProfile(_0x3ae60c[_0x2093ce]),_0x145898=_0x21229b?{}:_0x22d422,_0x29647d=_0x21229b||_0x145898[_0x254776(0xde)];if(!_0x29647d){const _0x5b8515=Object[_0x254776(0xd9)](_0x3ae60c),_0x2ac83b=_0x5b8515[_0x254776(0xbe)]===0x0?_0x254776(0xb1)+CLI_BIN_NAME+_0x254776(0xb4)+_0x1cd101+'\x20--app\x20'+_0x2093ce+_0x254776(0xe2):_0x254776(0xcd)+_0x5b8515[_0x254776(0xc2)](',\x20');throw CliErrors[_0x254776(0xad)]('App\x20\x22'+_0x2093ce+_0x254776(0xd7),_0x2ac83b);}assertValidAppcode(String(_0x29647d));const _0x1a2d90={..._0x145898,..._0x534861,'appcode':String(_0x29647d),...collectWorkspaceProfileOverrides(_0x31e4a0)};return _0x2fb7ed[_0x2093ce]=_0x1a2d90,_0x259630['apps']=_0x2fb7ed,_0x259630['defaultApp']=_0x2093ce,delete _0x259630[_0x254776(0xde)],delete _0x259630[_0x254776(0xb8)],_0x1a2d90[_0x254776(0xd6)]&&(_0x259630['env']=_0x1a2d90[_0x254776(0xd6)]),writeConfigFile(_0x3e5e64,_0x259630),{'ok':!![],'message':_0x254776(0xbb)+(_0x1cd101==='init'?_0x254776(0xb5):_0x254776(0xce))+':\x20'+_0x2093ce+_0x254776(0xb2)+_0x1a2d90[_0x254776(0xde)]+_0x254776(0xb0)+_0x3e5e64+'.\x20Credentials:\x20not\x20written.','data':{'operation':_0x254776(0xc1)+_0x1cd101,'configPath':_0x3e5e64,'app':_0x2093ce,'appcode':_0x1a2d90[_0x254776(0xde)],'env':_0x1a2d90[_0x254776(0xd6)]??null,'credentialsWritten':![]}};}const workspaceInitDefinition={'service':a143_0x95afa2(0xd1),'command':a143_0x95afa2(0xdd),'description':'Initialize\x20the\x20current\x20workspace\x20app\x20binding','risk':'write','requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x25d18b=>configureWorkspace(_0x25d18b,a143_0x95afa2(0xdd))},workspaceUseDefinition={'service':a143_0x95afa2(0xd1),'command':a143_0x95afa2(0xb7),'description':a143_0x95afa2(0xc9),'risk':'write','requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x4c6b0d=>configureWorkspace(_0x4c6b0d,a143_0x95afa2(0xb7))};export const workspaceDefinitions=[workspaceInitDefinition,workspaceUseDefinition];export{WORKSPACE_USAGE};
@@ -1 +1 @@
1
- const a143_0x3146bf=a143_0xa8a2;(function(_0x170f6d,_0x584872){const _0x2aa7b2=a143_0xa8a2,_0x57f007=_0x170f6d();while(!![]){try{const _0x3fc959=parseInt(_0x2aa7b2(0x144))/0x1+parseInt(_0x2aa7b2(0x138))/0x2*(-parseInt(_0x2aa7b2(0x11f))/0x3)+-parseInt(_0x2aa7b2(0x143))/0x4+parseInt(_0x2aa7b2(0x130))/0x5+-parseInt(_0x2aa7b2(0x121))/0x6*(parseInt(_0x2aa7b2(0x12c))/0x7)+parseInt(_0x2aa7b2(0x132))/0x8*(parseInt(_0x2aa7b2(0x13e))/0x9)+parseInt(_0x2aa7b2(0x13c))/0xa*(-parseInt(_0x2aa7b2(0x131))/0xb);if(_0x3fc959===_0x584872)break;else _0x57f007['push'](_0x57f007['shift']());}catch(_0x3c2a7b){_0x57f007['push'](_0x57f007['shift']());}}}(a143_0x45bc,0xd79bd));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_0x3146bf(0x120),'accessKey','locale',a143_0x3146bf(0x14a),a143_0x3146bf(0x124)];export const TOP_LEVEL_CONFIG_KEYS=new Set([a143_0x3146bf(0x12b),a143_0x3146bf(0x12d),a143_0x3146bf(0x13b),a143_0x3146bf(0x14a),a143_0x3146bf(0x120),a143_0x3146bf(0x127),a143_0x3146bf(0x149)]);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES]};export function formatConfigKeyList(_0x5b531c){const _0x11b660=a143_0x3146bf;return[..._0x5b531c][_0x11b660(0x13d)](',\x20');}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0x576a02){const _0x1b89ab=a143_0x3146bf;return TOP_LEVEL_CONFIG_KEYS[_0x1b89ab(0x139)](_0x576a02);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}function a143_0x45bc(){const _0x4db61e=['Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','string','7678695tOUgxK','598147ahlQdG','1392OkObmZ','Auth\x20cookie','apps','zh-CN','Access\x20key','toLowerCase','128906tFYnfT','has','length','locale','360pPiIsn','join','69372OHhauG','pageSize','defaultFormat','trim','API\x20directory\x20path','1069988jJtnXy','1731789PejgKm','en-US','Locale','map','Default\x20page\x20size','apiDir','format','42gaOFVs','cookie','24924TJaoPt','filter','inherit','riskLevel','number','defaultApp','accessKey','entries','app','Target\x20environment','appcode','1008gyWnBy','env'];a143_0x45bc=function(){return _0x4db61e;};return a143_0x45bc();}export function getConfigCommandKeyDescription(){return'Config\x20key\x20('+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'env':'env','apiDir':a143_0x3146bf(0x149),'cookie':'cookie','accessKey':a143_0x3146bf(0x127),'defaultFormat':a143_0x3146bf(0x14a),'pageSize':a143_0x3146bf(0x13f),'riskLevel':a143_0x3146bf(0x124),'locale':a143_0x3146bf(0x13b)};export function getAppProfileFlagDefs(){const _0x47f79c=a143_0x3146bf;return[{'name':_0x47f79c(0x12d),'type':_0x47f79c(0x12f),'description':_0x47f79c(0x12a),'enum':[...RABETBASE_ENV_VALUES]},{'name':_0x47f79c(0x149),'type':_0x47f79c(0x12f),'description':_0x47f79c(0x142)},{'name':_0x47f79c(0x120),'type':_0x47f79c(0x12f),'description':_0x47f79c(0x133),'hidden':!![]},{'name':_0x47f79c(0x127),'type':_0x47f79c(0x12f),'description':_0x47f79c(0x136),'hidden':!![]},{'name':_0x47f79c(0x140),'type':_0x47f79c(0x12f),'description':_0x47f79c(0x12e),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':'pageSize','type':_0x47f79c(0x125),'description':_0x47f79c(0x148)},{'name':'riskLevel','type':_0x47f79c(0x12f),'description':'Risk\x20level','enum':[...RISK_LEVEL_VALUES]},{'name':_0x47f79c(0x13b),'type':_0x47f79c(0x12f),'description':_0x47f79c(0x146)}];}export function collectAppProfileOverrides(_0x7443e){const _0x37c978=a143_0x3146bf,_0x3b8522={};for(const [_0x1d21b9,_0x5afb54]of Object[_0x37c978(0x128)](APP_PROFILE_FLAG_KEY_MAP)){const _0x28c118=_0x7443e(_0x1d21b9);if(!_0x28c118)continue;_0x3b8522[_0x5afb54]=_0x5afb54==='pageSize'?Number(_0x28c118):_0x28c118;}return _0x3b8522;}export function buildAppProfileListFields(_0x201d6c){const _0x3de585=a143_0x3146bf;return{'env':_0x201d6c[_0x3de585(0x12d)]??null,'apiDir':_0x201d6c[_0x3de585(0x149)]??null,'hasCookie':!!_0x201d6c[_0x3de585(0x120)],'hasAccessKey':!!_0x201d6c[_0x3de585(0x127)],'format':_0x201d6c[_0x3de585(0x14a)]??null,'pageSize':_0x201d6c[_0x3de585(0x13f)]??null,'riskLevel':_0x201d6c[_0x3de585(0x124)]??null,'locale':_0x201d6c[_0x3de585(0x13b)]??null};}export function buildAppDoctorFields(_0x3758eb,_0x5717a3){const _0x46fb24=a143_0x3146bf;return{'env':{'value':_0x3758eb[_0x46fb24(0x12d)]||_0x5717a3['env'],'source':_0x3758eb[_0x46fb24(0x12d)]?_0x46fb24(0x129):_0x46fb24(0x123)},'apiDir':{'value':_0x3758eb['apiDir']||_0x5717a3[_0x46fb24(0x149)],'source':_0x3758eb[_0x46fb24(0x149)]?_0x46fb24(0x129):_0x46fb24(0x123)},'cookie':{'value':_0x3758eb['cookie']||_0x5717a3[_0x46fb24(0x120)],'source':_0x3758eb[_0x46fb24(0x120)]?_0x46fb24(0x129):_0x46fb24(0x123)},'accessKey':{'value':_0x3758eb[_0x46fb24(0x127)]||_0x5717a3['accessKey'],'source':_0x3758eb['accessKey']?_0x46fb24(0x129):'inherit'}};}export function buildCanonicalAppConfig(_0x243570,_0x156f0d){const _0x17ac18=a143_0x3146bf,_0x416289=_0x243570[_0x17ac18(0x147)](_0x2983a4=>String(_0x2983a4||'')[_0x17ac18(0x141)]())[_0x17ac18(0x122)](Boolean);if(_0x416289[_0x17ac18(0x13a)]===0x0)return{};const _0x24e9cd={};for(const _0x174b83 of _0x416289){_0x24e9cd[_0x174b83]=_0x156f0d?{'appcode':_0x174b83,'env':_0x156f0d}:{'appcode':_0x174b83};}return{'apps':_0x24e9cd,'defaultApp':_0x416289[0x0]};}function a143_0xa8a2(_0x189f09,_0x5cb1f0){_0x189f09=_0x189f09-0x11f;const _0x45bc9a=a143_0x45bc();let _0xa8a23f=_0x45bc9a[_0x189f09];return _0xa8a23f;}export function buildCanonicalProjectConfig(_0x189ce5,_0x393168){const _0x8f8fdf=a143_0x3146bf,{appCodes:appCodes=[],env:_0x535372,metadata:_0x4b6771}=_0x393168,_0x2dd1bc={..._0x189ce5,..._0x4b6771||{}};delete _0x2dd1bc[_0x8f8fdf(0x12b)],delete _0x2dd1bc[_0x8f8fdf(0x129)];if(_0x535372)_0x2dd1bc['env']=_0x535372;else!_0x2dd1bc['env']&&(_0x2dd1bc['env']=DEFAULT_CONFIG_VALUES[_0x8f8fdf(0x12d)]);const _0x3d1792=buildCanonicalAppConfig(appCodes,_0x2dd1bc[_0x8f8fdf(0x12d)]);return Object['keys'](_0x3d1792)[_0x8f8fdf(0x13a)]>0x0&&(_0x2dd1bc['apps']=_0x3d1792[_0x8f8fdf(0x134)],_0x2dd1bc[_0x8f8fdf(0x126)]=_0x3d1792['defaultApp']),_0x2dd1bc;}const LOCALE_MAP={'zh':a143_0x3146bf(0x135),'zh-cn':a143_0x3146bf(0x135),'zh_cn':a143_0x3146bf(0x135),'en':'en-US','en-us':a143_0x3146bf(0x145),'en_us':a143_0x3146bf(0x145)};export function normalizeLocale(_0x4a4e30){const _0x4f0145=a143_0x3146bf;if(!_0x4a4e30)return null;return LOCALE_MAP[_0x4a4e30[_0x4f0145(0x137)]()]??null;}
1
+ const a144_0x57bb03=a144_0x3b71;(function(_0xb6b58f,_0x56e2f3){const _0x748a07=a144_0x3b71,_0x5da237=_0xb6b58f();while(!![]){try{const _0x11b6a4=parseInt(_0x748a07(0x1d6))/0x1*(parseInt(_0x748a07(0x1e0))/0x2)+parseInt(_0x748a07(0x1d2))/0x3*(-parseInt(_0x748a07(0x1cd))/0x4)+-parseInt(_0x748a07(0x1d3))/0x5*(parseInt(_0x748a07(0x1df))/0x6)+-parseInt(_0x748a07(0x1d7))/0x7*(parseInt(_0x748a07(0x1f1))/0x8)+-parseInt(_0x748a07(0x1cb))/0x9*(parseInt(_0x748a07(0x1f0))/0xa)+-parseInt(_0x748a07(0x1e8))/0xb+-parseInt(_0x748a07(0x1de))/0xc*(-parseInt(_0x748a07(0x1e9))/0xd);if(_0x11b6a4===_0x56e2f3)break;else _0x5da237['push'](_0x5da237['shift']());}catch(_0xc6c26){_0x5da237['push'](_0x5da237['shift']());}}}(a144_0x42ff,0x2181c));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=[a144_0x57bb03(0x1e2),a144_0x57bb03(0x1da),'locale',a144_0x57bb03(0x1ee),'riskLevel'];export const TOP_LEVEL_CONFIG_KEYS=new Set([a144_0x57bb03(0x1d5),'env',a144_0x57bb03(0x1d8),'format',a144_0x57bb03(0x1e2),'accessKey',a144_0x57bb03(0x1e7)]);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES]};export function formatConfigKeyList(_0x5cf89c){const _0x1fb633=a144_0x57bb03;return[..._0x5cf89c][_0x1fb633(0x1ea)](',\x20');}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0x37fff1){const _0x539a98=a144_0x57bb03;return TOP_LEVEL_CONFIG_KEYS[_0x539a98(0x1ef)](_0x37fff1);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x3bf798=a144_0x57bb03;return _0x3bf798(0x1dd)+getTopLevelConfigKeySummary()+')';}function a144_0x3b71(_0x56dd23,_0x34b49d){_0x56dd23=_0x56dd23-0x1ca;const _0x42ff75=a144_0x42ff();let _0x3b71d3=_0x42ff75[_0x56dd23];return _0x3b71d3;}export const APP_PROFILE_FLAG_KEY_MAP={'env':a144_0x57bb03(0x1dc),'apiDir':a144_0x57bb03(0x1e7),'cookie':a144_0x57bb03(0x1e2),'accessKey':'accessKey','defaultFormat':a144_0x57bb03(0x1ee),'pageSize':a144_0x57bb03(0x1e5),'riskLevel':'riskLevel','locale':a144_0x57bb03(0x1d8)};export function getAppProfileFlagDefs(){const _0x20c974=a144_0x57bb03;return[{'name':_0x20c974(0x1dc),'type':'string','description':'Target\x20environment','enum':[...RABETBASE_ENV_VALUES]},{'name':'apiDir','type':_0x20c974(0x1f2),'description':_0x20c974(0x1f3)},{'name':'cookie','type':'string','description':_0x20c974(0x1e4),'hidden':!![]},{'name':_0x20c974(0x1da),'type':_0x20c974(0x1f2),'description':_0x20c974(0x1d1),'hidden':!![]},{'name':'defaultFormat','type':_0x20c974(0x1f2),'description':_0x20c974(0x1d0),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':'pageSize','type':_0x20c974(0x1cf),'description':_0x20c974(0x1db)},{'name':_0x20c974(0x1d4),'type':_0x20c974(0x1f2),'description':_0x20c974(0x1ca),'enum':[...RISK_LEVEL_VALUES]},{'name':_0x20c974(0x1d8),'type':_0x20c974(0x1f2),'description':'Locale'}];}export function collectAppProfileOverrides(_0x4d4700){const _0x302891={};for(const [_0x36aef9,_0x5d234a]of Object['entries'](APP_PROFILE_FLAG_KEY_MAP)){const _0x18edc8=_0x4d4700(_0x36aef9);if(!_0x18edc8)continue;_0x302891[_0x5d234a]=_0x5d234a==='pageSize'?Number(_0x18edc8):_0x18edc8;}return _0x302891;}export function buildAppProfileListFields(_0x21bf05){const _0x112335=a144_0x57bb03;return{'env':_0x21bf05[_0x112335(0x1dc)]??null,'apiDir':_0x21bf05[_0x112335(0x1e7)]??null,'hasCookie':!!_0x21bf05['cookie'],'hasAccessKey':!!_0x21bf05[_0x112335(0x1da)],'format':_0x21bf05['format']??null,'pageSize':_0x21bf05[_0x112335(0x1e5)]??null,'riskLevel':_0x21bf05['riskLevel']??null,'locale':_0x21bf05[_0x112335(0x1d8)]??null};}function a144_0x42ff(){const _0x28797b=['API\x20directory\x20path','Risk\x20level','9sRLPJF','zh-CN','176912opAthU','apps','number','Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','Access\x20key','6mDgvxr','266480dBtAmF','riskLevel','appcode','618IRjBOV','377580wJkaPh','locale','defaultApp','accessKey','Default\x20page\x20size','env','Config\x20key\x20(','2345268ElfONR','24XNkwNQ','2fKTrSV','en-US','cookie','filter','Auth\x20cookie','pageSize','map','apiDir','1870913rttiSw','65SvtVdZ','join','inherit','app','keys','format','has','2609660EbvGEL','16IyqSOV','string'];a144_0x42ff=function(){return _0x28797b;};return a144_0x42ff();}export function buildAppDoctorFields(_0x5c1f8e,_0x186d5f){const _0x2ecb7d=a144_0x57bb03;return{'env':{'value':_0x5c1f8e[_0x2ecb7d(0x1dc)]||_0x186d5f['env'],'source':_0x5c1f8e[_0x2ecb7d(0x1dc)]?_0x2ecb7d(0x1ec):'inherit'},'apiDir':{'value':_0x5c1f8e[_0x2ecb7d(0x1e7)]||_0x186d5f['apiDir'],'source':_0x5c1f8e[_0x2ecb7d(0x1e7)]?_0x2ecb7d(0x1ec):_0x2ecb7d(0x1eb)},'cookie':{'value':_0x5c1f8e['cookie']||_0x186d5f[_0x2ecb7d(0x1e2)],'source':_0x5c1f8e['cookie']?_0x2ecb7d(0x1ec):_0x2ecb7d(0x1eb)},'accessKey':{'value':_0x5c1f8e['accessKey']||_0x186d5f[_0x2ecb7d(0x1da)],'source':_0x5c1f8e[_0x2ecb7d(0x1da)]?_0x2ecb7d(0x1ec):_0x2ecb7d(0x1eb)}};}export function buildCanonicalAppConfig(_0x426b4d,_0x22596f){const _0x5efacd=a144_0x57bb03,_0x30a5a1=_0x426b4d[_0x5efacd(0x1e6)](_0x12e65e=>String(_0x12e65e||'')['trim']())[_0x5efacd(0x1e3)](Boolean);if(_0x30a5a1['length']===0x0)return{};const _0x3568c1={};for(const _0x24a61f of _0x30a5a1){_0x3568c1[_0x24a61f]=_0x22596f?{'appcode':_0x24a61f,'env':_0x22596f}:{'appcode':_0x24a61f};}return{'apps':_0x3568c1,'defaultApp':_0x30a5a1[0x0]};}export function buildCanonicalProjectConfig(_0x26b417,_0x22b039){const _0x36028a=a144_0x57bb03,{appCodes:appCodes=[],env:_0x5a1dc6,metadata:_0x102f60}=_0x22b039,_0x342c58={..._0x26b417,..._0x102f60||{}};delete _0x342c58[_0x36028a(0x1d5)],delete _0x342c58[_0x36028a(0x1ec)];if(_0x5a1dc6)_0x342c58[_0x36028a(0x1dc)]=_0x5a1dc6;else!_0x342c58[_0x36028a(0x1dc)]&&(_0x342c58[_0x36028a(0x1dc)]=DEFAULT_CONFIG_VALUES[_0x36028a(0x1dc)]);const _0x50a6d3=buildCanonicalAppConfig(appCodes,_0x342c58[_0x36028a(0x1dc)]);return Object[_0x36028a(0x1ed)](_0x50a6d3)['length']>0x0&&(_0x342c58[_0x36028a(0x1ce)]=_0x50a6d3[_0x36028a(0x1ce)],_0x342c58[_0x36028a(0x1d9)]=_0x50a6d3[_0x36028a(0x1d9)]),_0x342c58;}const LOCALE_MAP={'zh':a144_0x57bb03(0x1cc),'zh-cn':a144_0x57bb03(0x1cc),'zh_cn':'zh-CN','en':'en-US','en-us':a144_0x57bb03(0x1e1),'en_us':a144_0x57bb03(0x1e1)};export function normalizeLocale(_0x23cf85){if(!_0x23cf85)return null;return LOCALE_MAP[_0x23cf85['toLowerCase']()]??null;}
@@ -1 +1 @@
1
- function a144_0x7f56(){const _0x2a8205=['806650LbriFw','20245024KgKEcB','2158196FsFgQv','1335190gsPqqR','https://g.lovrabet.com/dist/rabetbase-cli/config/index.json','175UPyklw','483254OkTvGq','1847496pEPNzv','91404HiYnFC'];a144_0x7f56=function(){return _0x2a8205;};return a144_0x7f56();}const a144_0x3656fa=a144_0x4872;function a144_0x4872(_0x32da5e,_0x4a81e2){_0x32da5e=_0x32da5e-0x11b;const _0x7f56c0=a144_0x7f56();let _0x4872a7=_0x7f56c0[_0x32da5e];return _0x4872a7;}(function(_0x11f255,_0x417307){const _0x63287f=a144_0x4872,_0x5937d0=_0x11f255();while(!![]){try{const _0x5e8902=-parseInt(_0x63287f(0x11b))/0x1+parseInt(_0x63287f(0x121))/0x2+-parseInt(_0x63287f(0x122))/0x3+-parseInt(_0x63287f(0x11d))/0x4+parseInt(_0x63287f(0x11e))/0x5+parseInt(_0x63287f(0x123))/0x6*(-parseInt(_0x63287f(0x120))/0x7)+parseInt(_0x63287f(0x11c))/0x8;if(_0x5e8902===_0x417307)break;else _0x5937d0['push'](_0x5937d0['shift']());}catch(_0x2eda62){_0x5937d0['push'](_0x5937d0['shift']());}}}(a144_0x7f56,0xaa05c));export const CLI_VERSION_POLICY_URL=a144_0x3656fa(0x11f);
1
+ const a145_0x32ac73=a145_0x3eba;function a145_0x19a2(){const _0x346280=['1135824WnzCnF','5OJWhZA','464078BAXyVl','273948jKqyqC','5225072btDlnI','6310hKxPnQ','6732PHqbif','161KshbmF','https://g.lovrabet.com/dist/rabetbase-cli/config/index.json','2lMRoqx','3809076xvWcMZ','4014802MPcVou'];a145_0x19a2=function(){return _0x346280;};return a145_0x19a2();}function a145_0x3eba(_0x128e2d,_0x318da6){_0x128e2d=_0x128e2d-0x103;const _0x19a2ac=a145_0x19a2();let _0x3eba0d=_0x19a2ac[_0x128e2d];return _0x3eba0d;}(function(_0x21ddd0,_0x3bff76){const _0x186b18=a145_0x3eba,_0x81089d=_0x21ddd0();while(!![]){try{const _0x4a5dbc=parseInt(_0x186b18(0x108))/0x1*(-parseInt(_0x186b18(0x103))/0x2)+-parseInt(_0x186b18(0x106))/0x3+parseInt(_0x186b18(0x104))/0x4*(parseInt(_0x186b18(0x107))/0x5)+parseInt(_0x186b18(0x109))/0x6*(-parseInt(_0x186b18(0x10d))/0x7)+parseInt(_0x186b18(0x10a))/0x8+-parseInt(_0x186b18(0x10c))/0x9*(-parseInt(_0x186b18(0x10b))/0xa)+parseInt(_0x186b18(0x105))/0xb;if(_0x4a5dbc===_0x3bff76)break;else _0x81089d['push'](_0x81089d['shift']());}catch(_0x4e1f77){_0x81089d['push'](_0x81089d['shift']());}}}(a145_0x19a2,0x862b1));export const CLI_VERSION_POLICY_URL=a145_0x32ac73(0x10e);
@@ -1 +1 @@
1
- const a145_0x397acb=a145_0x5b29;(function(_0x418047,_0x55b07e){const _0x2219a4=a145_0x5b29,_0x3f0354=_0x418047();while(!![]){try{const _0x1bfa00=-parseInt(_0x2219a4(0x163))/0x1+parseInt(_0x2219a4(0x149))/0x2+parseInt(_0x2219a4(0x13b))/0x3+parseInt(_0x2219a4(0x16b))/0x4*(parseInt(_0x2219a4(0x14c))/0x5)+parseInt(_0x2219a4(0x143))/0x6*(parseInt(_0x2219a4(0x12a))/0x7)+-parseInt(_0x2219a4(0x141))/0x8+-parseInt(_0x2219a4(0x119))/0x9*(parseInt(_0x2219a4(0x161))/0xa);if(_0x1bfa00===_0x55b07e)break;else _0x3f0354['push'](_0x3f0354['shift']());}catch(_0x22bcb0){_0x3f0354['push'](_0x3f0354['shift']());}}}(a145_0x1d2d,0x2bba6));function a145_0x1d2d(){const _0x233b0e=['136lUnYIp','type','Read\x20value\x20from\x20stdin','Function\x20node','code','all','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','env','sql-name','SQL\x20string','project','skip-imports','watch','<expr>','Override\x20appcode','Alias\x20for\x20--non-interactive','dry-run','Watch\x20mode','Target\x20path','Skip\x20confirmation\x20for\x20high-risk\x20writes','SQL\x20code','enableBffSave','expectedCount','dbid','JSON\x20params','from-env','yes','sqlcode','operationType','DB\x20ID','Expected\x20affected\x20count','skipImports','153HTmvOC','keyword','clear','descriptionFile','Tags','Schemas','stdin','key','Keyword\x20filter','Show\x20help','Use\x20global\x20config\x20scope','Clear','sql','Type\x20filter','Config\x20key','non-interactive','app','15988LzOPpX','appcode','Use\x20remote','Operation\x20type','Select\x20app\x20profile\x20by\x20name','value','title','Read\x20value\x20from\x20environment\x20variable','SQL\x20name','functionNode','expected-count','Force\x20overwrite','name','file','File\x20path','string','Apply\x20to\x20all','426702aMKcwy','Skip\x20import\x20generation','nonInteractive','schemas','help','operation','392664IskBcf','enable-bff-save','366JBfIgq','Config\x20value','global','Verbose\x20output','datasetcode','Preview\x20operation\x20without\x20executing','58026ZoaRsN','format','sqlname','7005YtLKKf','Rabetbase\x20CLI','Description\x20file','tags','verbose','description-file','pagesize','description','Enable\x20BFF\x20save','dryRun','dbId','Page\x20number','boolean','output','Force\x20non-interactive\x20mode\x20(CI)','page','Record\x20ID','params','Code\x20filter','Output\x20path','Confirm\x20destructive\x20action','69310Nwazle','<name>','12185WzDlGy','sqlName','reveal','db-id','target','Reveal\x20sensitive\x20value','force','Dataset\x20code'];a145_0x1d2d=function(){return _0x233b0e;};return a145_0x1d2d();}export const CLI_BIN_NAME='rabetbase';export const CLI_DISPLAY_NAME=a145_0x397acb(0x14d);export const NPM_PACKAGE_NAME='@lovrabet/rabetbase-cli';export const GLOBAL_FLAGS=[{'name':a145_0x397acb(0x12b),'meowKey':'appcode','type':a145_0x397acb(0x139),'description':a145_0x397acb(0x179),'hint':'<code>'},{'name':a145_0x397acb(0x129),'meowKey':a145_0x397acb(0x129),'type':a145_0x397acb(0x139),'description':a145_0x397acb(0x12e),'hint':a145_0x397acb(0x162)},{'name':a145_0x397acb(0x172),'meowKey':a145_0x397acb(0x172),'type':a145_0x397acb(0x139),'description':'Environment','hint':'production\x20|\x20daily'},{'name':a145_0x397acb(0x14a),'meowKey':a145_0x397acb(0x14a),'type':a145_0x397acb(0x139),'description':'Output\x20format','hint':'json\x20|\x20pretty\x20|\x20compress'},{'name':'jq','meowKey':'jq','type':a145_0x397acb(0x139),'description':a145_0x397acb(0x171),'hint':a145_0x397acb(0x178)},{'name':a145_0x397acb(0x17b),'meowKey':a145_0x397acb(0x155),'type':a145_0x397acb(0x158),'description':a145_0x397acb(0x148)},{'name':a145_0x397acb(0x113),'meowKey':'yes','type':'boolean','description':a145_0x397acb(0x17e)},{'name':a145_0x397acb(0x128),'meowKey':a145_0x397acb(0x13d),'type':a145_0x397acb(0x158),'description':a145_0x397acb(0x15a)},{'name':'global','meowKey':a145_0x397acb(0x145),'type':a145_0x397acb(0x158),'description':a145_0x397acb(0x123)},{'name':a145_0x397acb(0x175),'meowKey':a145_0x397acb(0x175),'type':'boolean','description':'Use\x20project\x20config\x20scope'},{'name':'ci','meowKey':'ci','type':a145_0x397acb(0x158),'description':a145_0x397acb(0x17a),'hidden':!![]},{'name':a145_0x397acb(0x13f),'meowKey':a145_0x397acb(0x13f),'type':'boolean','description':a145_0x397acb(0x122)},{'name':a145_0x397acb(0x136),'meowKey':a145_0x397acb(0x136),'type':a145_0x397acb(0x139),'description':'Name','hidden':!![]},{'name':a145_0x397acb(0x130),'meowKey':a145_0x397acb(0x130),'type':a145_0x397acb(0x139),'description':'Title','hidden':!![]},{'name':a145_0x397acb(0x11b),'meowKey':a145_0x397acb(0x11b),'type':a145_0x397acb(0x158),'description':a145_0x397acb(0x124),'hidden':!![]},{'name':a145_0x397acb(0x177),'meowKey':a145_0x397acb(0x177),'type':a145_0x397acb(0x158),'description':a145_0x397acb(0x17c),'hidden':!![]},{'name':a145_0x397acb(0x159),'meowKey':a145_0x397acb(0x159),'type':a145_0x397acb(0x139),'description':a145_0x397acb(0x15f),'hidden':!![]},{'name':a145_0x397acb(0x15d),'meowKey':'params','type':a145_0x397acb(0x139),'description':a145_0x397acb(0x111),'hidden':!![]},{'name':a145_0x397acb(0x147),'meowKey':a145_0x397acb(0x147),'type':a145_0x397acb(0x139),'description':a145_0x397acb(0x16a),'hidden':!![]},{'name':a145_0x397acb(0x170),'meowKey':'all','type':'boolean','description':a145_0x397acb(0x13a),'hidden':!![]},{'name':a145_0x397acb(0x142),'meowKey':a145_0x397acb(0x180),'type':a145_0x397acb(0x158),'description':a145_0x397acb(0x154),'hidden':!![]},{'name':'id','meowKey':'id','type':a145_0x397acb(0x139),'description':a145_0x397acb(0x15c),'hidden':!![]},{'name':a145_0x397acb(0x16c),'meowKey':a145_0x397acb(0x16c),'type':'string','description':a145_0x397acb(0x126),'hidden':!![]},{'name':'file','meowKey':a145_0x397acb(0x137),'type':a145_0x397acb(0x139),'description':a145_0x397acb(0x138),'hidden':!![]},{'name':a145_0x397acb(0x114),'meowKey':'sqlcode','type':a145_0x397acb(0x139),'description':a145_0x397acb(0x17f),'hidden':!![]},{'name':a145_0x397acb(0x173),'meowKey':a145_0x397acb(0x164),'type':'string','description':a145_0x397acb(0x132),'hidden':!![]},{'name':a145_0x397acb(0x14b),'meowKey':a145_0x397acb(0x14b),'type':'string','description':a145_0x397acb(0x132),'hidden':!![]},{'name':a145_0x397acb(0x166),'meowKey':a145_0x397acb(0x156),'type':'string','description':a145_0x397acb(0x116),'hidden':!![]},{'name':a145_0x397acb(0x182),'meowKey':a145_0x397acb(0x182),'type':a145_0x397acb(0x139),'description':a145_0x397acb(0x116),'hidden':!![]},{'name':'description','meowKey':a145_0x397acb(0x153),'type':'string','description':'Description','hidden':!![]},{'name':a145_0x397acb(0x151),'meowKey':a145_0x397acb(0x11c),'type':a145_0x397acb(0x139),'description':a145_0x397acb(0x14e),'hidden':!![]},{'name':a145_0x397acb(0x15b),'meowKey':a145_0x397acb(0x15b),'type':a145_0x397acb(0x139),'description':a145_0x397acb(0x157),'hidden':!![]},{'name':a145_0x397acb(0x152),'meowKey':a145_0x397acb(0x152),'type':a145_0x397acb(0x139),'description':'Page\x20size','hidden':!![]},{'name':a145_0x397acb(0x11a),'meowKey':a145_0x397acb(0x11a),'type':a145_0x397acb(0x139),'description':a145_0x397acb(0x121),'hidden':!![]},{'name':a145_0x397acb(0x16f),'meowKey':a145_0x397acb(0x16f),'type':'string','description':a145_0x397acb(0x15e),'hidden':!![]},{'name':a145_0x397acb(0x125),'meowKey':'sql','type':'string','description':a145_0x397acb(0x174),'hidden':!![]},{'name':a145_0x397acb(0x13e),'meowKey':'schemas','type':a145_0x397acb(0x139),'description':a145_0x397acb(0x11e),'hidden':!![]},{'name':a145_0x397acb(0x140),'meowKey':a145_0x397acb(0x140),'type':a145_0x397acb(0x139),'description':a145_0x397acb(0x12d),'hidden':!![]},{'name':a145_0x397acb(0x167),'meowKey':'target','type':a145_0x397acb(0x139),'description':a145_0x397acb(0x17d),'hidden':!![]},{'name':a145_0x397acb(0x176),'meowKey':a145_0x397acb(0x118),'type':a145_0x397acb(0x158),'description':a145_0x397acb(0x13c),'hidden':!![]},{'name':a145_0x397acb(0x120),'meowKey':a145_0x397acb(0x120),'type':a145_0x397acb(0x139),'description':a145_0x397acb(0x127),'hidden':!![]},{'name':a145_0x397acb(0x12f),'meowKey':a145_0x397acb(0x12f),'type':a145_0x397acb(0x139),'description':a145_0x397acb(0x144),'hidden':!![]},{'name':a145_0x397acb(0x14f),'meowKey':a145_0x397acb(0x14f),'type':a145_0x397acb(0x139),'description':a145_0x397acb(0x11d),'hidden':!![]},{'name':'stdin','meowKey':a145_0x397acb(0x11f),'type':'boolean','description':a145_0x397acb(0x16d),'hidden':!![]},{'name':a145_0x397acb(0x112),'meowKey':'fromEnv','type':'string','description':a145_0x397acb(0x131),'hidden':!![]},{'name':a145_0x397acb(0x165),'meowKey':a145_0x397acb(0x165),'type':a145_0x397acb(0x158),'description':a145_0x397acb(0x168),'hidden':!![]},{'name':a145_0x397acb(0x169),'meowKey':a145_0x397acb(0x169),'type':'boolean','description':a145_0x397acb(0x135),'hidden':!![]},{'name':'confirm','meowKey':'confirm','type':a145_0x397acb(0x158),'description':a145_0x397acb(0x160),'hidden':!![]},{'name':'remote','meowKey':'remote','type':'boolean','description':a145_0x397acb(0x12c),'hidden':!![]},{'name':a145_0x397acb(0x150),'meowKey':a145_0x397acb(0x150),'type':'boolean','description':a145_0x397acb(0x146),'hidden':!![]},{'name':a145_0x397acb(0x134),'meowKey':a145_0x397acb(0x181),'type':'string','description':a145_0x397acb(0x117),'hidden':!![]},{'name':'operation-type','meowKey':a145_0x397acb(0x115),'type':a145_0x397acb(0x139),'description':a145_0x397acb(0x12d),'hidden':!![]},{'name':'function-node','meowKey':a145_0x397acb(0x133),'type':a145_0x397acb(0x139),'description':a145_0x397acb(0x16e),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a145_0x397acb(0x12b),'app','env',a145_0x397acb(0x14a),'jq',a145_0x397acb(0x17b),a145_0x397acb(0x113),a145_0x397acb(0x128),'ci']);function a145_0x5b29(_0x3d5e5c,_0x39ff48){_0x3d5e5c=_0x3d5e5c-0x111;const _0x1d2d12=a145_0x1d2d();let _0x5b297e=_0x1d2d12[_0x3d5e5c];return _0x5b297e;}export function buildMeowFlags(){const _0x14f8b8=a145_0x397acb;return Object['fromEntries'](GLOBAL_FLAGS['map'](_0x386c59=>[_0x386c59['meowKey'],{'type':_0x386c59[_0x14f8b8(0x16c)]}]));}
1
+ const a146_0x448bef=a146_0x2c09;(function(_0x3dd5d1,_0x104066){const _0x3f0289=a146_0x2c09,_0x37be99=_0x3dd5d1();while(!![]){try{const _0x3278a5=parseInt(_0x3f0289(0x1e3))/0x1+parseInt(_0x3f0289(0x200))/0x2*(-parseInt(_0x3f0289(0x1fd))/0x3)+-parseInt(_0x3f0289(0x1fa))/0x4*(parseInt(_0x3f0289(0x1c1))/0x5)+-parseInt(_0x3f0289(0x201))/0x6+parseInt(_0x3f0289(0x1e4))/0x7*(parseInt(_0x3f0289(0x20b))/0x8)+-parseInt(_0x3f0289(0x1c6))/0x9*(parseInt(_0x3f0289(0x220))/0xa)+parseInt(_0x3f0289(0x1fe))/0xb*(parseInt(_0x3f0289(0x1cc))/0xc);if(_0x3278a5===_0x104066)break;else _0x37be99['push'](_0x37be99['shift']());}catch(_0x46162c){_0x37be99['push'](_0x37be99['shift']());}}}(a146_0x1e34,0x25f2f));function a146_0x1e34(){const _0x259be8=['watch','Use\x20remote','Function\x20node','target','clear','expected-count','global','tags','params','output','SQL\x20string','Code\x20filter','description','Environment','operation-type','118433DILUrn','1498xpaZEW','Show\x20help','enable-bff-save','Skip\x20confirmation\x20for\x20high-risk\x20writes','Force\x20non-interactive\x20mode\x20(CI)','SQL\x20name','pagesize','yes','code','Name','map','sqlname','sql-name','skip-imports','verbose','fromEnv','Enable\x20BFF\x20save','Verbose\x20output','db-id','help','File\x20path','boolean','16URMtlG','description-file','confirm','25269TeQKaU','4180HKSxvU','string','52nXSTqF','490014EVvCrG','SQL\x20code','JSON\x20params','force','stdin','dbid','Use\x20global\x20config\x20scope','Tags','env','from-env','8888SiSTtO','Record\x20ID','enableBffSave','Watch\x20mode','Read\x20value\x20from\x20stdin','Keyword\x20filter','reveal','rabetbase','remote','app','DB\x20ID','Description','Read\x20value\x20from\x20environment\x20variable','project','Config\x20value','key','dryRun','Reveal\x20sensitive\x20value','json\x20|\x20pretty\x20|\x20compress','format','<code>','4390OmXnZK','non-interactive','Preview\x20operation\x20without\x20executing','Operation\x20type','value','keyword','type','meowKey','fromEntries','9670ZGYcnb','Override\x20appcode','Type\x20filter','all','title','2475OUmDDd','nonInteractive','datasetcode','dry-run','Dataset\x20code','skipImports','7212KQrffY','Confirm\x20destructive\x20action','<expr>','sqlName','page','Rabetbase\x20CLI','appcode','name'];a146_0x1e34=function(){return _0x259be8;};return a146_0x1e34();}export const CLI_BIN_NAME=a146_0x448bef(0x212);export const CLI_DISPLAY_NAME=a146_0x448bef(0x1d1);export const NPM_PACKAGE_NAME='@lovrabet/rabetbase-cli';function a146_0x2c09(_0x24b132,_0x519e2c){_0x24b132=_0x24b132-0x1c0;const _0x1e349f=a146_0x1e34();let _0x2c0904=_0x1e349f[_0x24b132];return _0x2c0904;}export const GLOBAL_FLAGS=[{'name':a146_0x448bef(0x1d2),'meowKey':a146_0x448bef(0x1d2),'type':'string','description':a146_0x448bef(0x1c2),'hint':a146_0x448bef(0x21f)},{'name':a146_0x448bef(0x214),'meowKey':a146_0x448bef(0x214),'type':'string','description':'Select\x20app\x20profile\x20by\x20name','hint':'<name>'},{'name':a146_0x448bef(0x209),'meowKey':a146_0x448bef(0x209),'type':'string','description':a146_0x448bef(0x1e1),'hint':'production\x20|\x20daily'},{'name':a146_0x448bef(0x21e),'meowKey':a146_0x448bef(0x21e),'type':'string','description':'Output\x20format','hint':a146_0x448bef(0x21d)},{'name':'jq','meowKey':'jq','type':a146_0x448bef(0x1ff),'description':'Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','hint':a146_0x448bef(0x1ce)},{'name':a146_0x448bef(0x1c9),'meowKey':a146_0x448bef(0x21b),'type':'boolean','description':a146_0x448bef(0x222)},{'name':a146_0x448bef(0x1eb),'meowKey':a146_0x448bef(0x1eb),'type':a146_0x448bef(0x1f9),'description':a146_0x448bef(0x1e7)},{'name':a146_0x448bef(0x221),'meowKey':a146_0x448bef(0x1c7),'type':a146_0x448bef(0x1f9),'description':a146_0x448bef(0x1e8)},{'name':a146_0x448bef(0x1da),'meowKey':a146_0x448bef(0x1da),'type':a146_0x448bef(0x1f9),'description':a146_0x448bef(0x207)},{'name':a146_0x448bef(0x218),'meowKey':'project','type':a146_0x448bef(0x1f9),'description':'Use\x20project\x20config\x20scope'},{'name':'ci','meowKey':'ci','type':a146_0x448bef(0x1f9),'description':'Alias\x20for\x20--non-interactive','hidden':!![]},{'name':'help','meowKey':a146_0x448bef(0x1f7),'type':a146_0x448bef(0x1f9),'description':a146_0x448bef(0x1e5)},{'name':'name','meowKey':a146_0x448bef(0x1d3),'type':'string','description':a146_0x448bef(0x1ed),'hidden':!![]},{'name':a146_0x448bef(0x1c5),'meowKey':a146_0x448bef(0x1c5),'type':'string','description':'Title','hidden':!![]},{'name':a146_0x448bef(0x1d8),'meowKey':a146_0x448bef(0x1d8),'type':a146_0x448bef(0x1f9),'description':'Clear','hidden':!![]},{'name':'watch','meowKey':a146_0x448bef(0x1d4),'type':a146_0x448bef(0x1f9),'description':a146_0x448bef(0x20e),'hidden':!![]},{'name':a146_0x448bef(0x1dd),'meowKey':a146_0x448bef(0x1dd),'type':'string','description':'Output\x20path','hidden':!![]},{'name':a146_0x448bef(0x1dc),'meowKey':a146_0x448bef(0x1dc),'type':'string','description':a146_0x448bef(0x203),'hidden':!![]},{'name':a146_0x448bef(0x1c8),'meowKey':a146_0x448bef(0x1c8),'type':a146_0x448bef(0x1ff),'description':a146_0x448bef(0x1ca),'hidden':!![]},{'name':'all','meowKey':a146_0x448bef(0x1c4),'type':a146_0x448bef(0x1f9),'description':'Apply\x20to\x20all','hidden':!![]},{'name':a146_0x448bef(0x1e6),'meowKey':a146_0x448bef(0x20d),'type':a146_0x448bef(0x1f9),'description':a146_0x448bef(0x1f4),'hidden':!![]},{'name':'id','meowKey':'id','type':a146_0x448bef(0x1ff),'description':a146_0x448bef(0x20c),'hidden':!![]},{'name':a146_0x448bef(0x226),'meowKey':a146_0x448bef(0x226),'type':a146_0x448bef(0x1ff),'description':a146_0x448bef(0x1c3),'hidden':!![]},{'name':'file','meowKey':'file','type':a146_0x448bef(0x1ff),'description':a146_0x448bef(0x1f8),'hidden':!![]},{'name':'sqlcode','meowKey':'sqlcode','type':a146_0x448bef(0x1ff),'description':a146_0x448bef(0x202),'hidden':!![]},{'name':a146_0x448bef(0x1f0),'meowKey':a146_0x448bef(0x1cf),'type':a146_0x448bef(0x1ff),'description':'SQL\x20name','hidden':!![]},{'name':a146_0x448bef(0x1ef),'meowKey':'sqlname','type':a146_0x448bef(0x1ff),'description':a146_0x448bef(0x1e9),'hidden':!![]},{'name':a146_0x448bef(0x1f6),'meowKey':'dbId','type':a146_0x448bef(0x1ff),'description':a146_0x448bef(0x215),'hidden':!![]},{'name':a146_0x448bef(0x206),'meowKey':a146_0x448bef(0x206),'type':a146_0x448bef(0x1ff),'description':a146_0x448bef(0x215),'hidden':!![]},{'name':a146_0x448bef(0x1e0),'meowKey':a146_0x448bef(0x1e0),'type':a146_0x448bef(0x1ff),'description':a146_0x448bef(0x216),'hidden':!![]},{'name':a146_0x448bef(0x1fb),'meowKey':'descriptionFile','type':a146_0x448bef(0x1ff),'description':'Description\x20file','hidden':!![]},{'name':'page','meowKey':a146_0x448bef(0x1d0),'type':a146_0x448bef(0x1ff),'description':'Page\x20number','hidden':!![]},{'name':'pagesize','meowKey':a146_0x448bef(0x1ea),'type':a146_0x448bef(0x1ff),'description':'Page\x20size','hidden':!![]},{'name':a146_0x448bef(0x225),'meowKey':'keyword','type':a146_0x448bef(0x1ff),'description':a146_0x448bef(0x210),'hidden':!![]},{'name':a146_0x448bef(0x1ec),'meowKey':a146_0x448bef(0x1ec),'type':'string','description':a146_0x448bef(0x1df),'hidden':!![]},{'name':'sql','meowKey':'sql','type':a146_0x448bef(0x1ff),'description':a146_0x448bef(0x1de),'hidden':!![]},{'name':'schemas','meowKey':'schemas','type':a146_0x448bef(0x1ff),'description':'Schemas','hidden':!![]},{'name':'operation','meowKey':'operation','type':a146_0x448bef(0x1ff),'description':a146_0x448bef(0x223),'hidden':!![]},{'name':'target','meowKey':a146_0x448bef(0x1d7),'type':'string','description':'Target\x20path','hidden':!![]},{'name':a146_0x448bef(0x1f1),'meowKey':a146_0x448bef(0x1cb),'type':a146_0x448bef(0x1f9),'description':'Skip\x20import\x20generation','hidden':!![]},{'name':a146_0x448bef(0x21a),'meowKey':'key','type':'string','description':'Config\x20key','hidden':!![]},{'name':a146_0x448bef(0x224),'meowKey':a146_0x448bef(0x224),'type':a146_0x448bef(0x1ff),'description':a146_0x448bef(0x219),'hidden':!![]},{'name':a146_0x448bef(0x1db),'meowKey':a146_0x448bef(0x1db),'type':'string','description':a146_0x448bef(0x208),'hidden':!![]},{'name':a146_0x448bef(0x205),'meowKey':'stdin','type':a146_0x448bef(0x1f9),'description':a146_0x448bef(0x20f),'hidden':!![]},{'name':a146_0x448bef(0x20a),'meowKey':a146_0x448bef(0x1f3),'type':a146_0x448bef(0x1ff),'description':a146_0x448bef(0x217),'hidden':!![]},{'name':a146_0x448bef(0x211),'meowKey':a146_0x448bef(0x211),'type':a146_0x448bef(0x1f9),'description':a146_0x448bef(0x21c),'hidden':!![]},{'name':a146_0x448bef(0x204),'meowKey':a146_0x448bef(0x204),'type':a146_0x448bef(0x1f9),'description':'Force\x20overwrite','hidden':!![]},{'name':'confirm','meowKey':a146_0x448bef(0x1fc),'type':'boolean','description':a146_0x448bef(0x1cd),'hidden':!![]},{'name':a146_0x448bef(0x213),'meowKey':a146_0x448bef(0x213),'type':a146_0x448bef(0x1f9),'description':a146_0x448bef(0x1d5),'hidden':!![]},{'name':'verbose','meowKey':a146_0x448bef(0x1f2),'type':a146_0x448bef(0x1f9),'description':a146_0x448bef(0x1f5),'hidden':!![]},{'name':a146_0x448bef(0x1d9),'meowKey':'expectedCount','type':a146_0x448bef(0x1ff),'description':'Expected\x20affected\x20count','hidden':!![]},{'name':a146_0x448bef(0x1e2),'meowKey':'operationType','type':'string','description':a146_0x448bef(0x223),'hidden':!![]},{'name':'function-node','meowKey':'functionNode','type':'string','description':a146_0x448bef(0x1d6),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a146_0x448bef(0x1d2),a146_0x448bef(0x214),a146_0x448bef(0x209),'format','jq',a146_0x448bef(0x1c9),'yes',a146_0x448bef(0x221),'ci']);export function buildMeowFlags(){const _0x236007=a146_0x448bef;return Object[_0x236007(0x1c0)](GLOBAL_FLAGS[_0x236007(0x1ee)](_0xf6cbbe=>[_0xf6cbbe[_0x236007(0x227)],{'type':_0xf6cbbe['type']}]));}
@@ -1 +1 @@
1
- function a146_0x1f34(_0xc27eaf,_0x33eef7){_0xc27eaf=_0xc27eaf-0x16f;const _0x194df2=a146_0x194d();let _0x1f3416=_0x194df2[_0xc27eaf];return _0x1f3416;}const a146_0x589836=a146_0x1f34;(function(_0x22b800,_0x1cf22f){const _0x3a2fed=a146_0x1f34,_0x5ef436=_0x22b800();while(!![]){try{const _0x442d46=-parseInt(_0x3a2fed(0x175))/0x1+parseInt(_0x3a2fed(0x16f))/0x2+-parseInt(_0x3a2fed(0x173))/0x3*(-parseInt(_0x3a2fed(0x178))/0x4)+-parseInt(_0x3a2fed(0x172))/0x5*(parseInt(_0x3a2fed(0x170))/0x6)+-parseInt(_0x3a2fed(0x171))/0x7*(-parseInt(_0x3a2fed(0x17b))/0x8)+-parseInt(_0x3a2fed(0x176))/0x9+parseInt(_0x3a2fed(0x174))/0xa;if(_0x442d46===_0x1cf22f)break;else _0x5ef436['push'](_0x5ef436['shift']());}catch(_0x2fdc9e){_0x5ef436['push'](_0x5ef436['shift']());}}}(a146_0x194d,0x39ddf));import{DEFAULT_API_DIR}from'../constant/paths.js';export const DEFAULT_CONFIG_VALUES={'env':a146_0x589836(0x177),'format':a146_0x589836(0x179),'locale':a146_0x589836(0x17a),'riskLevel':'high-risk-write','apiDir':DEFAULT_API_DIR};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a146_0x589836(0x179);function a146_0x194d(){const _0xcf29e7=['1055439usrcgN','production','8ZalSkU','compress','en-US','8UvVfgf','235182MvMPFS','12MkMEAH','35595FjQQIx','4755FXOlcy','319602CsxXvJ','3039570KGzDzX','283505cuuHWW'];a146_0x194d=function(){return _0xcf29e7;};return a146_0x194d();}
1
+ const a147_0x568f1c=a147_0x58cf;function a147_0x58cf(_0x293b0a,_0x417008){_0x293b0a=_0x293b0a-0x6b;const _0x565007=a147_0x5650();let _0x58cf01=_0x565007[_0x293b0a];return _0x58cf01;}(function(_0x27fb16,_0x5b6a67){const _0x2eaac0=a147_0x58cf,_0x494f9b=_0x27fb16();while(!![]){try{const _0x469a40=parseInt(_0x2eaac0(0x77))/0x1*(-parseInt(_0x2eaac0(0x71))/0x2)+-parseInt(_0x2eaac0(0x6c))/0x3+parseInt(_0x2eaac0(0x75))/0x4*(-parseInt(_0x2eaac0(0x6e))/0x5)+parseInt(_0x2eaac0(0x6f))/0x6+-parseInt(_0x2eaac0(0x72))/0x7+parseInt(_0x2eaac0(0x74))/0x8+parseInt(_0x2eaac0(0x6d))/0x9;if(_0x469a40===_0x5b6a67)break;else _0x494f9b['push'](_0x494f9b['shift']());}catch(_0x3ddcea){_0x494f9b['push'](_0x494f9b['shift']());}}}(a147_0x5650,0x2a0d7));import{DEFAULT_API_DIR}from'../constant/paths.js';function a147_0x5650(){const _0x1028c1=['424BQgWRh','compress','5QeiyLo','production','180882IxkYMi','2476863jCclIj','5995tpyIJK','754644XAdRsW','en-US','88058rfLjqm','687708MfHjat','high-risk-write','2216344hYNxNZ'];a147_0x5650=function(){return _0x1028c1;};return a147_0x5650();}export const DEFAULT_CONFIG_VALUES={'env':a147_0x568f1c(0x6b),'format':'compress','locale':a147_0x568f1c(0x70),'riskLevel':a147_0x568f1c(0x73),'apiDir':DEFAULT_API_DIR};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a147_0x568f1c(0x76);
@@ -1 +1 @@
1
- const a147_0x43a527=a147_0x1348;(function(_0xf588ee,_0x1a42c9){const _0x2835c2=a147_0x1348,_0xc42af0=_0xf588ee();while(!![]){try{const _0x38f993=parseInt(_0x2835c2(0x14a))/0x1+parseInt(_0x2835c2(0x138))/0x2*(parseInt(_0x2835c2(0x14b))/0x3)+parseInt(_0x2835c2(0x145))/0x4*(parseInt(_0x2835c2(0x14e))/0x5)+-parseInt(_0x2835c2(0x141))/0x6*(parseInt(_0x2835c2(0x147))/0x7)+-parseInt(_0x2835c2(0x143))/0x8*(-parseInt(_0x2835c2(0x13c))/0x9)+parseInt(_0x2835c2(0x142))/0xa+-parseInt(_0x2835c2(0x13a))/0xb*(parseInt(_0x2835c2(0x139))/0xc);if(_0x38f993===_0x1a42c9)break;else _0xc42af0['push'](_0xc42af0['shift']());}catch(_0x3db841){_0xc42af0['push'](_0xc42af0['shift']());}}}(a147_0x4311,0xde4d0));import{getEnv,isProduction}from'../constant/env.js';let customApiDomain,customUserDomain,customRuntimeDomain;export function initDomains(_0x29ab65){const _0x4ccaff=a147_0x1348;customApiDomain=_0x29ab65?.[_0x4ccaff(0x13f)],customUserDomain=_0x29ab65?.[_0x4ccaff(0x149)],customRuntimeDomain=_0x29ab65?.[_0x4ccaff(0x144)];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?a147_0x43a527(0x13d):'https://user-daily.lovrabet.com');export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?a147_0x43a527(0x148):a147_0x43a527(0x146));export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?a147_0x43a527(0x140):a147_0x43a527(0x14c));function a147_0x4311(){const _0xb50665=['309702OgMOCt','987297SLkxAO','https://daily-runtime.lovrabet.com','/web-app/app/','10QYahzF','10roDnRr','180gJvLVF','1297098tgVsGg','https://daily.lovrabet.com','2962107xgTiXC','https://user.lovrabet.com','trim','apiDomain','https://runtime.lovrabet.com','8082IsdAKd','5840830EAACVy','8KMfmXz','runtimeDomain','637460CukbbU','https://daily-api.lovrabet.com','2639hJlOLE','https://api.lovrabet.com','userDomain'];a147_0x4311=function(){return _0xb50665;};return a147_0x4311();}export const getAppDomain=()=>isProduction(getEnv())?'https://app.lovrabet.com':a147_0x43a527(0x13b);function a147_0x1348(_0x4e0de2,_0x45eded){_0x4e0de2=_0x4e0de2-0x138;const _0x4311f6=a147_0x4311();let _0x134802=_0x4311f6[_0x4e0de2];return _0x134802;}export const getAppBaseUrl=_0xfb25b2=>{const _0x548f43=a147_0x43a527,_0xc81d0e=encodeURIComponent(_0xfb25b2[_0x548f43(0x13e)]());return isProduction(getEnv())?getAppDomain()+'/app/'+_0xc81d0e:getAppDomain()+_0x548f43(0x14d)+_0xc81d0e;};
1
+ const a148_0x328b79=a148_0x1c82;(function(_0x27095d,_0x59f506){const _0x15d9ed=a148_0x1c82,_0x5555e7=_0x27095d();while(!![]){try{const _0x54d39d=-parseInt(_0x15d9ed(0x115))/0x1*(-parseInt(_0x15d9ed(0x119))/0x2)+parseInt(_0x15d9ed(0x10e))/0x3+parseInt(_0x15d9ed(0x10f))/0x4*(-parseInt(_0x15d9ed(0x11d))/0x5)+-parseInt(_0x15d9ed(0x116))/0x6*(-parseInt(_0x15d9ed(0x10d))/0x7)+-parseInt(_0x15d9ed(0x111))/0x8*(parseInt(_0x15d9ed(0x113))/0x9)+-parseInt(_0x15d9ed(0x120))/0xa+-parseInt(_0x15d9ed(0x11c))/0xb*(-parseInt(_0x15d9ed(0x114))/0xc);if(_0x54d39d===_0x59f506)break;else _0x5555e7['push'](_0x5555e7['shift']());}catch(_0x2432a3){_0x5555e7['push'](_0x5555e7['shift']());}}}(a148_0x252b,0x6e5d0));import{getEnv,isProduction}from'../constant/env.js';let customApiDomain,customUserDomain,customRuntimeDomain;export function initDomains(_0x1ae553){const _0x5c71c4=a148_0x1c82;customApiDomain=_0x1ae553?.[_0x5c71c4(0x110)],customUserDomain=_0x1ae553?.[_0x5c71c4(0x117)],customRuntimeDomain=_0x1ae553?.[_0x5c71c4(0x11e)];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?'https://user.lovrabet.com':a148_0x328b79(0x11f));function a148_0x1c82(_0x593f72,_0x474f40){_0x593f72=_0x593f72-0x10d;const _0x252b56=a148_0x252b();let _0x1c825a=_0x252b56[_0x593f72];return _0x1c825a;}export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?'https://api.lovrabet.com':'https://daily-api.lovrabet.com');export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?'https://runtime.lovrabet.com':a148_0x328b79(0x11a));function a148_0x252b(){const _0x43548c=['https://daily-runtime.lovrabet.com','https://app.lovrabet.com','11uhJgRH','335dreSML','runtimeDomain','https://user-daily.lovrabet.com','4360180lyWqVN','1037757zZylOL','100737ZfNoZc','7928xTyfNL','apiDomain','4774216RCSLmb','/app/','9vvOETa','9102972CmyhHP','9358zAuOvE','30zbwpKT','userDomain','/web-app/app/','18dgXook'];a148_0x252b=function(){return _0x43548c;};return a148_0x252b();}export const getAppDomain=()=>isProduction(getEnv())?a148_0x328b79(0x11b):'https://daily.lovrabet.com';export const getAppBaseUrl=_0x1de949=>{const _0x1cfc1c=a148_0x328b79,_0x3039df=encodeURIComponent(_0x1de949['trim']());return isProduction(getEnv())?getAppDomain()+_0x1cfc1c(0x112)+_0x3039df:getAppDomain()+_0x1cfc1c(0x118)+_0x3039df;};
@@ -1 +1 @@
1
- function a148_0x1f7d(_0xf2a07c,_0x97b6a){_0xf2a07c=_0xf2a07c-0x145;const _0x116ab2=a148_0x116a();let _0x1f7d8b=_0x116ab2[_0xf2a07c];return _0x1f7d8b;}const a148_0x1b7a1a=a148_0x1f7d;(function(_0xadbd14,_0xc2d73){const _0x2a9e41=a148_0x1f7d,_0x16f56e=_0xadbd14();while(!![]){try{const _0x201132=-parseInt(_0x2a9e41(0x147))/0x1*(parseInt(_0x2a9e41(0x154))/0x2)+parseInt(_0x2a9e41(0x145))/0x3*(parseInt(_0x2a9e41(0x148))/0x4)+parseInt(_0x2a9e41(0x14e))/0x5+parseInt(_0x2a9e41(0x14f))/0x6*(-parseInt(_0x2a9e41(0x151))/0x7)+parseInt(_0x2a9e41(0x14b))/0x8+parseInt(_0x2a9e41(0x152))/0x9*(parseInt(_0x2a9e41(0x149))/0xa)+-parseInt(_0x2a9e41(0x150))/0xb;if(_0x201132===_0xc2d73)break;else _0x16f56e['push'](_0x16f56e['shift']());}catch(_0x3626f3){_0x16f56e['push'](_0x16f56e['shift']());}}}(a148_0x116a,0x56245));export const RABETBASE_ENV_VALUES=[a148_0x1b7a1a(0x146),'daily'];export function normalizeEnv(_0x58e13c){const _0x1bc1d8=a148_0x1b7a1a;return _0x58e13c===_0x1bc1d8(0x153)?_0x1bc1d8(0x146):_0x58e13c;}export function isProduction(_0x461a6a){const _0x3b295d=a148_0x1b7a1a;return normalizeEnv(_0x461a6a)===_0x3b295d(0x146);}export function isDaily(_0x478e8d){const _0x36866a=a148_0x1b7a1a;return normalizeEnv(_0x478e8d)===_0x36866a(0x14a);}function a148_0x116a(){const _0x24f865=['6KlOnmr','1172831tFWWpe','4842523OPmyYF','3834sSerCm','online','778364DxegxB','6249XRzsjZ','production','1YIEfKI','1212fRDDPh','9090SIJvnU','daily','1980848jPKbnO','dev','development','1372200DswnYz'];a148_0x116a=function(){return _0x24f865;};return a148_0x116a();}export function isDev(_0x15f585){const _0x32a501=a148_0x1b7a1a,_0x50e2bb=normalizeEnv(_0x15f585);return _0x50e2bb===_0x32a501(0x14d)||_0x50e2bb===_0x32a501(0x14c);}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||'production');export function getEnv(){return env;}export function initEnv(_0x18776e){env=normalizeEnv(_0x18776e);}
1
+ const a149_0x8d0c8b=a149_0x1bf3;(function(_0x1d1feb,_0x2e8b35){const _0x58c23f=a149_0x1bf3,_0x59e0f9=_0x1d1feb();while(!![]){try{const _0x366098=-parseInt(_0x58c23f(0x183))/0x1*(-parseInt(_0x58c23f(0x188))/0x2)+parseInt(_0x58c23f(0x17a))/0x3+parseInt(_0x58c23f(0x187))/0x4*(parseInt(_0x58c23f(0x17f))/0x5)+-parseInt(_0x58c23f(0x184))/0x6+-parseInt(_0x58c23f(0x186))/0x7*(parseInt(_0x58c23f(0x17b))/0x8)+parseInt(_0x58c23f(0x182))/0x9*(parseInt(_0x58c23f(0x185))/0xa)+-parseInt(_0x58c23f(0x17e))/0xb*(parseInt(_0x58c23f(0x181))/0xc);if(_0x366098===_0x2e8b35)break;else _0x59e0f9['push'](_0x59e0f9['shift']());}catch(_0xb77fbb){_0x59e0f9['push'](_0x59e0f9['shift']());}}}(a149_0x4b1c,0x5cd79));function a149_0x1bf3(_0xde9b7,_0x32a49a){_0xde9b7=_0xde9b7-0x17a;const _0x4b1c52=a149_0x4b1c();let _0x1bf3a8=_0x4b1c52[_0xde9b7];return _0x1bf3a8;}export const RABETBASE_ENV_VALUES=[a149_0x8d0c8b(0x17d),a149_0x8d0c8b(0x17c)];function a149_0x4b1c(){const _0x179e6d=['production','48103hQRGAT','15rVMvOk','online','1572tITdQD','126kqAhsU','2315xiDFWL','2443170uSYlej','162510kLiDRj','14rNkDYr','448924nUTXjD','212rgtihk','development','1916886jRPPrx','352880QNgRBU','daily'];a149_0x4b1c=function(){return _0x179e6d;};return a149_0x4b1c();}export function normalizeEnv(_0x448f5b){const _0x2a8c2a=a149_0x8d0c8b;return _0x448f5b===_0x2a8c2a(0x180)?'production':_0x448f5b;}export function isProduction(_0x4356c0){return normalizeEnv(_0x4356c0)==='production';}export function isDaily(_0x4efa3a){const _0x32320a=a149_0x8d0c8b;return normalizeEnv(_0x4efa3a)===_0x32320a(0x17c);}export function isDev(_0x293ced){const _0x78016=a149_0x8d0c8b,_0x29e642=normalizeEnv(_0x293ced);return _0x29e642===_0x78016(0x189)||_0x29e642==='dev';}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||a149_0x8d0c8b(0x17d));export function getEnv(){return env;}export function initEnv(_0x42c46e){env=normalizeEnv(_0x42c46e);}
@@ -1 +1 @@
1
- function a149_0x3e73(_0x1fd169,_0x469ada){_0x1fd169=_0x1fd169-0xff;const _0x178469=a149_0x1784();let _0x3e7387=_0x178469[_0x1fd169];return _0x3e7387;}const a149_0x378dd5=a149_0x3e73;function a149_0x1784(){const _0x2b3732=['compress','1863115lzLDkS','18tqMrsM','json','4437545sYgBWS','9RpepNX','2984594ylEjMf','17453760jjOygH','832332VYLhGo','3057760tHVYdx','1dZppZz','pretty','21lPDyYT','30770102xuyOTZ'];a149_0x1784=function(){return _0x2b3732;};return a149_0x1784();}(function(_0x2e15e2,_0x15365f){const _0x3f07e7=a149_0x3e73,_0x1c15f9=_0x2e15e2();while(!![]){try{const _0x1965e6=-parseInt(_0x3f07e7(0xff))/0x1*(-parseInt(_0x3f07e7(0x109))/0x2)+parseInt(_0x3f07e7(0x101))/0x3*(-parseInt(_0x3f07e7(0x10b))/0x4)+-parseInt(_0x3f07e7(0x104))/0x5*(parseInt(_0x3f07e7(0x105))/0x6)+parseInt(_0x3f07e7(0x107))/0x7+parseInt(_0x3f07e7(0x10c))/0x8+parseInt(_0x3f07e7(0x108))/0x9*(-parseInt(_0x3f07e7(0x10a))/0xa)+parseInt(_0x3f07e7(0x102))/0xb;if(_0x1965e6===_0x15365f)break;else _0x1c15f9['push'](_0x1c15f9['shift']());}catch(_0x297d20){_0x1c15f9['push'](_0x1c15f9['shift']());}}}(a149_0x1784,0xf0b34));export const RABETBASE_OUTPUT_FORMAT_VALUES=[a149_0x378dd5(0x106),a149_0x378dd5(0x100),a149_0x378dd5(0x103)];
1
+ const a150_0x54e3f5=a150_0xb2a7;function a150_0xb2a7(_0x17426a,_0x74044f){_0x17426a=_0x17426a-0x138;const _0x2ea631=a150_0x2ea6();let _0xb2a7fe=_0x2ea631[_0x17426a];return _0xb2a7fe;}(function(_0x216528,_0x3aab6d){const _0x4b9cd1=a150_0xb2a7,_0x3c0da0=_0x216528();while(!![]){try{const _0x3d00e7=parseInt(_0x4b9cd1(0x138))/0x1+-parseInt(_0x4b9cd1(0x13f))/0x2*(-parseInt(_0x4b9cd1(0x13d))/0x3)+-parseInt(_0x4b9cd1(0x13c))/0x4+parseInt(_0x4b9cd1(0x144))/0x5*(-parseInt(_0x4b9cd1(0x143))/0x6)+parseInt(_0x4b9cd1(0x142))/0x7+parseInt(_0x4b9cd1(0x13b))/0x8*(parseInt(_0x4b9cd1(0x139))/0x9)+-parseInt(_0x4b9cd1(0x13a))/0xa*(parseInt(_0x4b9cd1(0x140))/0xb);if(_0x3d00e7===_0x3aab6d)break;else _0x3c0da0['push'](_0x3c0da0['shift']());}catch(_0x2dbf0f){_0x3c0da0['push'](_0x3c0da0['shift']());}}}(a150_0x2ea6,0x5e04c));function a150_0x2ea6(){const _0x2df0e7=['json','1726tFgBxB','22EDcYna','pretty','2797095RDkNlM','6OKvYnz','3377595rHmyFL','123700Hypszq','18OKVkmE','168930KYztXv','3041608ZfIRtY','1205888gxoryX','390QdVavF'];a150_0x2ea6=function(){return _0x2df0e7;};return a150_0x2ea6();}export const RABETBASE_OUTPUT_FORMAT_VALUES=[a150_0x54e3f5(0x13e),a150_0x54e3f5(0x141),'compress'];
@@ -1 +1 @@
1
- (function(_0x16a519,_0x4d560f){const _0x4c40fc=a150_0x3145,_0x93ff1a=_0x16a519();while(!![]){try{const _0x3cd43c=-parseInt(_0x4c40fc(0x138))/0x1*(-parseInt(_0x4c40fc(0x13a))/0x2)+parseInt(_0x4c40fc(0x133))/0x3+-parseInt(_0x4c40fc(0x136))/0x4*(-parseInt(_0x4c40fc(0x137))/0x5)+parseInt(_0x4c40fc(0x13b))/0x6*(-parseInt(_0x4c40fc(0x134))/0x7)+parseInt(_0x4c40fc(0x135))/0x8+parseInt(_0x4c40fc(0x132))/0x9+-parseInt(_0x4c40fc(0x13c))/0xa*(parseInt(_0x4c40fc(0x139))/0xb);if(_0x3cd43c===_0x4d560f)break;else _0x93ff1a['push'](_0x93ff1a['shift']());}catch(_0xab40d){_0x93ff1a['push'](_0x93ff1a['shift']());}}}(a150_0x48de,0x69522));export const DEFAULT_API_DIR='./src/api';function a150_0x3145(_0x1a6132,_0x29919d){_0x1a6132=_0x1a6132-0x132;const _0x48de11=a150_0x48de();let _0x3145e4=_0x48de11[_0x1a6132];return _0x3145e4;}function a150_0x48de(){const _0x1849d5=['25PVOvrP','1DdWils','11fJFXPr','171074eRhqKu','4888458ZZDoch','12086640sAGTUX','7753608smSSZY','2283237lsauqP','7CQWmZY','286704yuelYU','568668fywOCn'];a150_0x48de=function(){return _0x1849d5;};return a150_0x48de();}
1
+ function a151_0xd490(_0x5aeb6c,_0x384ed1){_0x5aeb6c=_0x5aeb6c-0x17f;const _0x5df149=a151_0x5df1();let _0xd4900b=_0x5df149[_0x5aeb6c];return _0xd4900b;}const a151_0x35e154=a151_0xd490;function a151_0x5df1(){const _0x4f5a45=['9653445BAOWee','2MGuylP','2737644IiMIlP','245RueaHw','207039jOhBwU','936483zLjuJJ','2593086pcFOdm','540vjjdXz','2353000dViwrP','./src/api'];a151_0x5df1=function(){return _0x4f5a45;};return a151_0x5df1();}(function(_0x333b6c,_0x40d843){const _0xdd91e4=a151_0xd490,_0x47187b=_0x333b6c();while(!![]){try{const _0x281122=-parseInt(_0xdd91e4(0x180))/0x1+parseInt(_0xdd91e4(0x187))/0x2*(-parseInt(_0xdd91e4(0x181))/0x3)+parseInt(_0xdd91e4(0x183))/0x4*(parseInt(_0xdd91e4(0x17f))/0x5)+-parseInt(_0xdd91e4(0x182))/0x6+parseInt(_0xdd91e4(0x188))/0x7+-parseInt(_0xdd91e4(0x184))/0x8+parseInt(_0xdd91e4(0x186))/0x9;if(_0x281122===_0x40d843)break;else _0x47187b['push'](_0x47187b['shift']());}catch(_0x24c1a8){_0x47187b['push'](_0x47187b['shift']());}}}(a151_0x5df1,0x36e26));export const DEFAULT_API_DIR=a151_0x35e154(0x185);
@@ -1 +1 @@
1
- const a151_0x40c897=a151_0x2275;function a151_0x2275(_0xa4ff78,_0x352e7c){_0xa4ff78=_0xa4ff78-0x1d1;const _0x11330e=a151_0x1133();let _0x22755f=_0x11330e[_0xa4ff78];return _0x22755f;}(function(_0x2c23d4,_0x1231cd){const _0x4a109d=a151_0x2275,_0x4da3fa=_0x2c23d4();while(!![]){try{const _0x35886f=-parseInt(_0x4a109d(0x1d3))/0x1+-parseInt(_0x4a109d(0x1d1))/0x2*(-parseInt(_0x4a109d(0x1d2))/0x3)+parseInt(_0x4a109d(0x1d5))/0x4+parseInt(_0x4a109d(0x1d7))/0x5*(-parseInt(_0x4a109d(0x1dd))/0x6)+parseInt(_0x4a109d(0x1db))/0x7*(-parseInt(_0x4a109d(0x1d8))/0x8)+-parseInt(_0x4a109d(0x1d4))/0x9+parseInt(_0x4a109d(0x1d9))/0xa;if(_0x35886f===_0x1231cd)break;else _0x4da3fa['push'](_0x4da3fa['shift']());}catch(_0x543a90){_0x4da3fa['push'](_0x4da3fa['shift']());}}}(a151_0x1133,0x6c44b));export const RISK_LEVEL_VALUES=[a151_0x40c897(0x1d6),a151_0x40c897(0x1dc),a151_0x40c897(0x1da)];function a151_0x1133(){const _0x4f8436=['6DjPQdW','90151TRYgYG','7954110ulRrZH','2058936DMfQgu','read','28555tyurWi','107768zBhknW','12031350SVhxBR','high-risk-write','14DLDxoc','write','822iBazcn','508888LeaCyI'];a151_0x1133=function(){return _0x4f8436;};return a151_0x1133();}
1
+ const a152_0x39c350=a152_0x3b73;function a152_0x467e(){const _0x23348c=['34242AdWyRp','105075EDVkZh','324208XosnmE','read','20ItRubS','694225QDYjTp','write','34YYdSFJ','154885QGigAi','177669uXQvVs','770qigxsT','792972jJsFzW','high-risk-write'];a152_0x467e=function(){return _0x23348c;};return a152_0x467e();}function a152_0x3b73(_0x4e8bc8,_0x5d16a){_0x4e8bc8=_0x4e8bc8-0x175;const _0x467e57=a152_0x467e();let _0x3b73f8=_0x467e57[_0x4e8bc8];return _0x3b73f8;}(function(_0x42d020,_0x43952d){const _0x1584c8=a152_0x3b73,_0x3ca7f6=_0x42d020();while(!![]){try{const _0x59c597=-parseInt(_0x1584c8(0x17b))/0x1+-parseInt(_0x1584c8(0x179))/0x2*(parseInt(_0x1584c8(0x17f))/0x3)+-parseInt(_0x1584c8(0x176))/0x4*(parseInt(_0x1584c8(0x17a))/0x5)+-parseInt(_0x1584c8(0x17d))/0x6+-parseInt(_0x1584c8(0x177))/0x7+-parseInt(_0x1584c8(0x181))/0x8+-parseInt(_0x1584c8(0x180))/0x9*(-parseInt(_0x1584c8(0x17c))/0xa);if(_0x59c597===_0x43952d)break;else _0x3ca7f6['push'](_0x3ca7f6['shift']());}catch(_0x576f67){_0x3ca7f6['push'](_0x3ca7f6['shift']());}}}(a152_0x467e,0x188a8));export const RISK_LEVEL_VALUES=[a152_0x39c350(0x175),a152_0x39c350(0x178),a152_0x39c350(0x17e)];
@@ -1 +1 @@
1
- function a152_0x3ca4(){const _0x511ebe=['9fAnlsC','write','apiDir','1774221BtGXzR','RISK_LEVEL','VERBOSE','globalConfig','entries','trim','production','appcode','apps','accessKey','riskLevel','length','app','maxRisk','object','1136292bipzsO','inherit','defaultApp','723186stuvAa','PAGE_SIZE','true','find','pageSize','daily','ACCESS_KEY','locale','577136SWKgfy','7290344NKESTH','cookie','35EusQbi','format','2139376cAxVhb','3428824IWXMyR','env','keys','APP'];a152_0x3ca4=function(){return _0x511ebe;};return a152_0x3ca4();}(function(_0x5700c9,_0x70aa29){const _0xcb2761=a152_0x4304,_0x54c111=_0x5700c9();while(!![]){try{const _0x21aef5=-parseInt(_0xcb2761(0xe2))/0x1+parseInt(_0xcb2761(0xfe))/0x2+parseInt(_0xcb2761(0xef))/0x3+-parseInt(_0xcb2761(0xe7))/0x4+parseInt(_0xcb2761(0xe5))/0x5*(parseInt(_0xcb2761(0x101))/0x6)+parseInt(_0xcb2761(0xe8))/0x7+parseInt(_0xcb2761(0xe3))/0x8*(-parseInt(_0xcb2761(0xec))/0x9);if(_0x21aef5===_0x70aa29)break;else _0x54c111['push'](_0x54c111['shift']());}catch(_0x251cec){_0x54c111['push'](_0x54c111['shift']());}}}(a152_0x3ca4,0x72b45));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{isDaily,normalizeEnv}from'../constant/env.js';import{normalizeLegacyOutputFormat}from'../framework/types.js';function stringConfigValue(_0x4566b1){return typeof _0x4566b1==='string'&&_0x4566b1['trim']()?_0x4566b1['trim']():undefined;}function appProfiles(_0x1908f2){const _0x27bf7d=a152_0x4304;return _0x1908f2[_0x27bf7d(0xf7)]&&typeof _0x1908f2[_0x27bf7d(0xf7)]===_0x27bf7d(0xfd)?_0x1908f2[_0x27bf7d(0xf7)]:{};}function resolveDefaultAppName(_0x116bcd){const _0xc79f9=a152_0x4304,_0xabbe93=stringConfigValue(_0x116bcd[_0xc79f9(0x100)]);if(_0xabbe93)return _0xabbe93;return Object[_0xc79f9(0xea)](appProfiles(_0x116bcd))[0x0];}function a152_0x4304(_0x3ca1a1,_0x3651f0){_0x3ca1a1=_0x3ca1a1-0xe1;const _0x3ca44d=a152_0x3ca4();let _0x430417=_0x3ca44d[_0x3ca1a1];return _0x430417;}function resolveTopLevelAppCode(_0x4306a4){const _0x2db8b0=a152_0x4304;return stringConfigValue(_0x4306a4[_0x2db8b0(0xf6)])||stringConfigValue(_0x4306a4[_0x2db8b0(0xfb)]);}export function resolveAppConfig({raw:_0x3cab9d,flags:_0x17b8b4,layers:_0x3eb6b5,readEnv:_0x521212}){const _0x373524=a152_0x4304,_0x2062c3=_0x3eb6b5?.['projectConfig']??{},_0x49f47f=_0x3eb6b5?.[_0x373524(0xf2)]??{},_0x5886da=Object['keys'](_0x2062c3)[_0x373524(0xfa)]>0x0,_0x21a73d=!_0x5886da||_0x2062c3[_0x373524(0xff)]===!![],_0x22b0e2=_0x5886da?resolveDefaultAppName(_0x2062c3):undefined,_0x4df8d8=_0x21a73d?resolveDefaultAppName(_0x49f47f):undefined,_0x4d0ab1=stringConfigValue(_0x17b8b4[_0x373524(0xfb)]),_0x50f257=_0x521212(_0x373524(0xeb)),_0x292e23={};if(_0x3cab9d[_0x373524(0xf7)]&&typeof _0x3cab9d['apps']==='object')for(const [_0x574c1e,_0x59cf81]of Object[_0x373524(0xf3)](_0x3cab9d['apps'])){_0x59cf81&&typeof _0x59cf81===_0x373524(0xfd)&&_0x59cf81[_0x373524(0xf6)]&&(_0x292e23[_0x574c1e]=_0x59cf81);}const _0x3c9f3b=_0x3cab9d[_0x373524(0x100)]||undefined,_0x87ade9=Object[_0x373524(0xea)](_0x292e23)[_0x373524(0xfa)]>0x0,_0x1d7687=_0x4d0ab1||_0x22b0e2||_0x50f257||_0x4df8d8||_0x3c9f3b||undefined,_0x394a71=stringConfigValue(_0x17b8b4[_0x373524(0xf6)]),_0x3fd500=_0x394a71?Object[_0x373524(0xf3)](_0x292e23)[_0x373524(0x104)](([,_0xec311])=>_0xec311?.[_0x373524(0xf6)]===_0x394a71):undefined,_0x11ef47=_0x3fd500?.[0x0],_0x580fa7=_0x3fd500?.[0x1],_0x4ef664=_0x394a71?_0x11ef47:_0x1d7687;let _0x5a5660=_0x4ef664&&_0x292e23[_0x4ef664]?_0x292e23[_0x4ef664]:undefined;_0x394a71&&_0x580fa7&&(_0x5a5660=_0x580fa7);const _0x318bd0=_0x394a71?_0x580fa7??_0x5a5660:_0x5a5660,_0x1ce7c0=!_0x4d0ab1&&!_0x22b0e2&&_0x50f257&&_0x4ef664===_0x50f257,_0x5557a6=_0x4d0ab1||(_0x1ce7c0?_0x50f257:undefined)||(_0x394a71?_0x11ef47:undefined),_0x16deee=_0x318bd0?.['appcode'],_0x3e5485=_0x5886da?resolveTopLevelAppCode(_0x2062c3):undefined,_0x18d5b8=_0x21a73d?resolveTopLevelAppCode(_0x49f47f):undefined,_0x330807=_0x4d0ab1||_0x22b0e2?_0x16deee:undefined,_0x5f3c32=!_0x4d0ab1&&!_0x22b0e2?_0x16deee:undefined,_0x14869d=_0x394a71||_0x330807||_0x3e5485||_0x5f3c32||_0x18d5b8||undefined,_0x4cc66a=_0x5886da?stringConfigValue(_0x2062c3[_0x373524(0xe9)]):undefined,_0x495811=_0x21a73d?stringConfigValue(_0x49f47f['env']):undefined,_0xec595b=_0x17b8b4[_0x373524(0xe9)]||_0x318bd0?.['env']||_0x4cc66a||_0x521212('ENV')||_0x495811||_0x3cab9d[_0x373524(0xe9)]||DEFAULT_CONFIG_VALUES[_0x373524(0xe9)],_0x154b6c=_0x318bd0?.[_0x373524(0xe1)]||_0x3cab9d[_0x373524(0xe1)]||DEFAULT_CONFIG_VALUES[_0x373524(0xe1)],_0x2dc59a=_0x521212('COOKIE')||_0x318bd0?.[_0x373524(0xe4)]||_0x3cab9d[_0x373524(0xe4)]||undefined,_0x2b3af5=_0x521212(_0x373524(0x107))||_0x318bd0?.[_0x373524(0xf8)]||_0x3cab9d[_0x373524(0xf8)]||undefined,_0x3343a2=_0x17b8b4['format']||_0x521212('FORMAT')||_0x318bd0?.[_0x373524(0xe6)]||_0x3cab9d[_0x373524(0xe6)],_0x2cf93b=normalizeLegacyOutputFormat(_0x3343a2),_0x18ce93=_0x521212(_0x373524(0x102))||_0x318bd0?.[_0x373524(0x105)]||_0x3cab9d[_0x373524(0x105)],_0x1a629a=_0x18ce93?Number(_0x18ce93)||undefined:undefined,_0x26ae55=_0x521212(_0x373524(0xf0))||_0x521212('MAX_RISK')||_0x318bd0?.[_0x373524(0xf9)]||_0x3cab9d[_0x373524(0xf9)]||_0x3cab9d[_0x373524(0xfc)],_0x4d6e1b=_0x26ae55==='read'||_0x26ae55===_0x373524(0xed)?_0x26ae55:DEFAULT_CONFIG_VALUES['riskLevel'],_0x5ca8a8=_0x521212(_0x373524(0xf1)),_0x2f877b=_0x5ca8a8==='1'||_0x5ca8a8===_0x373524(0x103),_0xd5f5fa=_0x318bd0?.[_0x373524(0xee)]||_0x3cab9d[_0x373524(0xee)]||DEFAULT_CONFIG_VALUES[_0x373524(0xee)],_0x4af787=isDaily(normalizeEnv(String(_0xec595b)))?_0x373524(0x106):_0x373524(0xf5);return{'appCode':typeof _0x14869d==='string'&&_0x14869d[_0x373524(0xf4)]()?_0x14869d[_0x373524(0xf4)]():undefined,'env':_0x4af787,'locale':_0x154b6c,'cookie':_0x2dc59a,'accessKey':_0x2b3af5,'format':_0x2cf93b,'pageSize':_0x1a629a,'riskLevel':_0x4d6e1b,'verbose':_0x2f877b,'apiDir':_0xd5f5fa,'apps':_0x292e23,'defaultApp':_0x3c9f3b,'currentApp':_0x87ade9?_0x4ef664:undefined,'explicitAppName':_0x5557a6};}
1
+ (function(_0x4adfdf,_0x1e2654){const _0xf1cb38=a153_0x34eb,_0x5c5461=_0x4adfdf();while(!![]){try{const _0x1304d8=parseInt(_0xf1cb38(0x15a))/0x1+-parseInt(_0xf1cb38(0x15d))/0x2*(parseInt(_0xf1cb38(0x178))/0x3)+-parseInt(_0xf1cb38(0x155))/0x4+parseInt(_0xf1cb38(0x156))/0x5+parseInt(_0xf1cb38(0x151))/0x6+-parseInt(_0xf1cb38(0x16b))/0x7+parseInt(_0xf1cb38(0x165))/0x8;if(_0x1304d8===_0x1e2654)break;else _0x5c5461['push'](_0x5c5461['shift']());}catch(_0x205d3c){_0x5c5461['push'](_0x5c5461['shift']());}}}(a153_0x19c8,0xb2789));function a153_0x19c8(){const _0x1164b8=['format','VERBOSE','RISK_LEVEL','riskLevel','daily','10337696WhpaJy','object','inherit','ENV','PAGE_SIZE','defaultApp','5082350LKPjiA','MAX_RISK','APP','globalConfig','projectConfig','entries','keys','apiDir','true','accessKey','string','cookie','maxRisk','3zkZiks','appcode','ACCESS_KEY','5326248oAnHkg','trim','locale','length','1780YyPTdk','1239555klNwZX','production','find','env','81320hFfJvC','app','apps','2103278mfdGsx','pageSize','COOKIE'];a153_0x19c8=function(){return _0x1164b8;};return a153_0x19c8();}import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{isDaily,normalizeEnv}from'../constant/env.js';import{normalizeLegacyOutputFormat}from'../framework/types.js';function stringConfigValue(_0x3520e5){const _0x4c6e78=a153_0x34eb;return typeof _0x3520e5===_0x4c6e78(0x175)&&_0x3520e5[_0x4c6e78(0x152)]()?_0x3520e5[_0x4c6e78(0x152)]():undefined;}function appProfiles(_0x20cfd2){const _0x4147c6=a153_0x34eb;return _0x20cfd2[_0x4147c6(0x15c)]&&typeof _0x20cfd2[_0x4147c6(0x15c)]===_0x4147c6(0x166)?_0x20cfd2['apps']:{};}function a153_0x34eb(_0x46bb3a,_0x375e02){_0x46bb3a=_0x46bb3a-0x151;const _0x19c881=a153_0x19c8();let _0x34ebaa=_0x19c881[_0x46bb3a];return _0x34ebaa;}function resolveDefaultAppName(_0x4c9e3c){const _0x57e8dd=a153_0x34eb,_0x3916df=stringConfigValue(_0x4c9e3c[_0x57e8dd(0x16a)]);if(_0x3916df)return _0x3916df;return Object[_0x57e8dd(0x171)](appProfiles(_0x4c9e3c))[0x0];}function resolveTopLevelAppCode(_0xd486df){const _0x35eea1=a153_0x34eb;return stringConfigValue(_0xd486df[_0x35eea1(0x179)])||stringConfigValue(_0xd486df[_0x35eea1(0x15b)]);}export function resolveAppConfig({raw:_0x25214e,flags:_0x239e6e,layers:_0x29aab2,readEnv:_0x167c93}){const _0x23b160=a153_0x34eb,_0x5a2d5e=_0x29aab2?.[_0x23b160(0x16f)]??{},_0x4dde72=_0x29aab2?.[_0x23b160(0x16e)]??{},_0x214e43=Object[_0x23b160(0x171)](_0x5a2d5e)[_0x23b160(0x154)]>0x0,_0x1e627d=!_0x214e43||_0x5a2d5e[_0x23b160(0x167)]===!![],_0x1d5779=_0x214e43?resolveDefaultAppName(_0x5a2d5e):undefined,_0x287db3=_0x1e627d?resolveDefaultAppName(_0x4dde72):undefined,_0x27fa84=stringConfigValue(_0x239e6e[_0x23b160(0x15b)]),_0x438e17=_0x167c93(_0x23b160(0x16d)),_0x5e0611={};if(_0x25214e['apps']&&typeof _0x25214e[_0x23b160(0x15c)]===_0x23b160(0x166))for(const [_0x3c8ba0,_0x3ad788]of Object['entries'](_0x25214e[_0x23b160(0x15c)])){_0x3ad788&&typeof _0x3ad788===_0x23b160(0x166)&&_0x3ad788[_0x23b160(0x179)]&&(_0x5e0611[_0x3c8ba0]=_0x3ad788);}const _0x506fc5=_0x25214e['defaultApp']||undefined,_0x38d93f=Object[_0x23b160(0x171)](_0x5e0611)[_0x23b160(0x154)]>0x0,_0x179972=_0x27fa84||_0x1d5779||_0x438e17||_0x287db3||_0x506fc5||undefined,_0xd52b37=stringConfigValue(_0x239e6e['appcode']),_0x3c5fd1=_0xd52b37?Object[_0x23b160(0x170)](_0x5e0611)[_0x23b160(0x158)](([,_0x49b46b])=>_0x49b46b?.['appcode']===_0xd52b37):undefined,_0x321c2b=_0x3c5fd1?.[0x0],_0x487ada=_0x3c5fd1?.[0x1],_0x1b3471=_0xd52b37?_0x321c2b:_0x179972;let _0x341d9f=_0x1b3471&&_0x5e0611[_0x1b3471]?_0x5e0611[_0x1b3471]:undefined;_0xd52b37&&_0x487ada&&(_0x341d9f=_0x487ada);const _0x56d71c=_0xd52b37?_0x487ada??_0x341d9f:_0x341d9f,_0x4526ff=!_0x27fa84&&!_0x1d5779&&_0x438e17&&_0x1b3471===_0x438e17,_0x415f3d=_0x27fa84||(_0x4526ff?_0x438e17:undefined)||(_0xd52b37?_0x321c2b:undefined),_0x534da3=_0x56d71c?.[_0x23b160(0x179)],_0x50be81=_0x214e43?resolveTopLevelAppCode(_0x5a2d5e):undefined,_0x27f7fc=_0x1e627d?resolveTopLevelAppCode(_0x4dde72):undefined,_0x5b8595=_0x27fa84||_0x1d5779?_0x534da3:undefined,_0x366ada=!_0x27fa84&&!_0x1d5779?_0x534da3:undefined,_0x3c94c2=_0xd52b37||_0x5b8595||_0x50be81||_0x366ada||_0x27f7fc||undefined,_0x3d1386=_0x214e43?stringConfigValue(_0x5a2d5e['env']):undefined,_0x35a710=_0x1e627d?stringConfigValue(_0x4dde72[_0x23b160(0x159)]):undefined,_0x24c3af=_0x239e6e[_0x23b160(0x159)]||_0x56d71c?.[_0x23b160(0x159)]||_0x3d1386||_0x167c93(_0x23b160(0x168))||_0x35a710||_0x25214e[_0x23b160(0x159)]||DEFAULT_CONFIG_VALUES[_0x23b160(0x159)],_0x13ff2b=_0x56d71c?.[_0x23b160(0x153)]||_0x25214e[_0x23b160(0x153)]||DEFAULT_CONFIG_VALUES['locale'],_0xf89c43=_0x167c93(_0x23b160(0x15f))||_0x56d71c?.[_0x23b160(0x176)]||_0x25214e[_0x23b160(0x176)]||undefined,_0x252e3b=_0x167c93(_0x23b160(0x17a))||_0x56d71c?.['accessKey']||_0x25214e[_0x23b160(0x174)]||undefined,_0x11fbf4=_0x239e6e['format']||_0x167c93('FORMAT')||_0x56d71c?.[_0x23b160(0x160)]||_0x25214e[_0x23b160(0x160)],_0x542095=normalizeLegacyOutputFormat(_0x11fbf4),_0x2307e6=_0x167c93(_0x23b160(0x169))||_0x56d71c?.[_0x23b160(0x15e)]||_0x25214e[_0x23b160(0x15e)],_0x459e5c=_0x2307e6?Number(_0x2307e6)||undefined:undefined,_0x5961ac=_0x167c93(_0x23b160(0x162))||_0x167c93(_0x23b160(0x16c))||_0x56d71c?.[_0x23b160(0x163)]||_0x25214e[_0x23b160(0x163)]||_0x25214e[_0x23b160(0x177)],_0x3fe7ed=_0x5961ac==='read'||_0x5961ac==='write'?_0x5961ac:DEFAULT_CONFIG_VALUES['riskLevel'],_0x43cbc2=_0x167c93(_0x23b160(0x161)),_0x59c551=_0x43cbc2==='1'||_0x43cbc2===_0x23b160(0x173),_0x5bc515=_0x56d71c?.[_0x23b160(0x172)]||_0x25214e[_0x23b160(0x172)]||DEFAULT_CONFIG_VALUES[_0x23b160(0x172)],_0x49df52=isDaily(normalizeEnv(String(_0x24c3af)))?_0x23b160(0x164):_0x23b160(0x157);return{'appCode':typeof _0x3c94c2==='string'&&_0x3c94c2[_0x23b160(0x152)]()?_0x3c94c2[_0x23b160(0x152)]():undefined,'env':_0x49df52,'locale':_0x13ff2b,'cookie':_0xf89c43,'accessKey':_0x252e3b,'format':_0x542095,'pageSize':_0x459e5c,'riskLevel':_0x3fe7ed,'verbose':_0x59c551,'apiDir':_0x5bc515,'apps':_0x5e0611,'defaultApp':_0x506fc5,'currentApp':_0x38d93f?_0x1b3471:undefined,'explicitAppName':_0x415f3d};}
@@ -1 +1 @@
1
- (function(_0x4ca213,_0x1d5271){const _0x1fdd9a=a153_0x3c1e,_0x12356c=_0x4ca213();while(!![]){try{const _0x449047=-parseInt(_0x1fdd9a(0x80))/0x1+parseInt(_0x1fdd9a(0x85))/0x2+-parseInt(_0x1fdd9a(0x7d))/0x3*(-parseInt(_0x1fdd9a(0x86))/0x4)+-parseInt(_0x1fdd9a(0x7e))/0x5*(-parseInt(_0x1fdd9a(0x87))/0x6)+-parseInt(_0x1fdd9a(0x7f))/0x7*(parseInt(_0x1fdd9a(0x81))/0x8)+parseInt(_0x1fdd9a(0x82))/0x9+-parseInt(_0x1fdd9a(0x83))/0xa;if(_0x449047===_0x1d5271)break;else _0x12356c['push'](_0x12356c['shift']());}catch(_0x111587){_0x12356c['push'](_0x12356c['shift']());}}}(a153_0x4774,0x9a39f));function a153_0x4774(){const _0x4da156=['4gyoYXC','6zitIDY','cookie','979647NdyFUV','1394335veGzaQ','139342ufWOcy','376120iYxQIQ','32iuEpVo','9435789xJEkDT','5693250fqPjFx','authRequired','5886hFqTGZ'];a153_0x4774=function(){return _0x4da156;};return a153_0x4774();}import{getIsSessionValid}from'../auth/is-session-valid.js';import{CliErrors}from'../errors.js';function a153_0x3c1e(_0x432a63,_0x4bf0b4){_0x432a63=_0x432a63-0x7d;const _0x4774a=a153_0x4774();let _0x3c1e43=_0x4774a[_0x432a63];return _0x3c1e43;}export async function buildAuth(_0x4b6555){const _0x46efea=a153_0x3c1e,{getCookie:_0x37e68f}=await import('../auth/get-cookie.js'),_0x362128=_0x4b6555[_0x46efea(0x88)]||_0x37e68f(),_0x3eaf70=_0x362128?await getIsSessionValid():![];return{'cookie':_0x362128,'isLoggedIn':_0x3eaf70,async 'getOrLogin'(){const _0x2d30a3=_0x46efea;if(_0x362128&&_0x3eaf70)return _0x362128;throw CliErrors[_0x2d30a3(0x84)]();}};}
1
+ (function(_0x2f3c1e,_0x1c9e30){const _0x19ddf2=a154_0x5b88,_0x17d6ac=_0x2f3c1e();while(!![]){try{const _0x316a16=-parseInt(_0x19ddf2(0x9b))/0x1+-parseInt(_0x19ddf2(0x99))/0x2+parseInt(_0x19ddf2(0x9d))/0x3*(parseInt(_0x19ddf2(0x98))/0x4)+parseInt(_0x19ddf2(0x96))/0x5+-parseInt(_0x19ddf2(0x9c))/0x6+parseInt(_0x19ddf2(0xa0))/0x7*(-parseInt(_0x19ddf2(0x9a))/0x8)+parseInt(_0x19ddf2(0x9e))/0x9*(parseInt(_0x19ddf2(0xa1))/0xa);if(_0x316a16===_0x1c9e30)break;else _0x17d6ac['push'](_0x17d6ac['shift']());}catch(_0x480f66){_0x17d6ac['push'](_0x17d6ac['shift']());}}}(a154_0x16df,0xa8d33));function a154_0x5b88(_0x13dcae,_0x470f1d){_0x13dcae=_0x13dcae-0x96;const _0x16df85=a154_0x16df();let _0x5b88e1=_0x16df85[_0x13dcae];return _0x5b88e1;}function a154_0x16df(){const _0x2536ba=['../auth/get-cookie.js','28ZPYmeK','699878WZEuwN','24icpqTn','973724JcMGDG','4803924jWjfdA','274728pZKVUf','21314160vnxaob','cookie','2907436BqVsnV','10gZWYvu','5262980JjTeUw'];a154_0x16df=function(){return _0x2536ba;};return a154_0x16df();}import{getIsSessionValid}from'../auth/is-session-valid.js';import{CliErrors}from'../errors.js';export async function buildAuth(_0x114e61){const _0xae813e=a154_0x5b88,{getCookie:_0x51cc34}=await import(_0xae813e(0x97)),_0x2852ca=_0x114e61[_0xae813e(0x9f)]||_0x51cc34(),_0x2c4494=_0x2852ca?await getIsSessionValid():![];return{'cookie':_0x2852ca,'isLoggedIn':_0x2c4494,async 'getOrLogin'(){if(_0x2852ca&&_0x2c4494)return _0x2852ca;throw CliErrors['authRequired']();}};}
@@ -1 +1 @@
1
- const a154_0x31ab27=a154_0x43b5;(function(_0x1e3211,_0x113c0a){const _0x25ab17=a154_0x43b5,_0x1ab632=_0x1e3211();while(!![]){try{const _0x3fb69b=parseInt(_0x25ab17(0x8d))/0x1+parseInt(_0x25ab17(0x97))/0x2+-parseInt(_0x25ab17(0xa1))/0x3*(parseInt(_0x25ab17(0xaa))/0x4)+parseInt(_0x25ab17(0xb1))/0x5*(-parseInt(_0x25ab17(0x9c))/0x6)+parseInt(_0x25ab17(0x98))/0x7*(parseInt(_0x25ab17(0x94))/0x8)+-parseInt(_0x25ab17(0x86))/0x9*(-parseInt(_0x25ab17(0x8b))/0xa)+-parseInt(_0x25ab17(0xb5))/0xb;if(_0x3fb69b===_0x113c0a)break;else _0x1ab632['push'](_0x1ab632['shift']());}catch(_0x2b28a4){_0x1ab632['push'](_0x1ab632['shift']());}}}(a154_0x1629,0x9ecf4));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='.rabetbase.json';export const CONFIG_NAMES=['.rabetbase.json',a154_0x31ab27(0xaf),a154_0x31ab27(0x8f)];export const LEGACY_CONFIG_NAMES=CONFIG_NAMES[a154_0x31ab27(0xac)](_0x435f95=>_0x435f95!==NEW_CONFIG_NAME);const normalizedWriteCache=new Map();export function resolveConfigPath(_0x24e505){for(const _0x528c5b of CONFIG_NAMES){const _0x3071f4=resolve(_0x24e505,_0x528c5b);if(existsSync(_0x3071f4))return _0x3071f4;}return undefined;}export function findProjectRootDirectory(_0x5b74c9=process[a154_0x31ab27(0xad)]()){let _0x367b23=resolve(_0x5b74c9);const {root:_0x5e4054}=parse(_0x367b23),_0x44b1c0=homedir();while(!![]){if(resolveConfigPath(_0x367b23)){if(_0x367b23===_0x44b1c0)break;return _0x367b23;}if(_0x367b23===_0x5e4054||_0x367b23===_0x44b1c0)break;const _0x355611=dirname(_0x367b23);if(_0x355611===_0x367b23)break;_0x367b23=_0x355611;}return resolve(_0x5b74c9);}export function getProjectConfigPath(){const _0x853194=a154_0x31ab27;return resolveConfigPath(process[_0x853194(0xad)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function isInProject(){return!!getProjectConfigPath();}export function inspectCliConfigJsonFile(_0x363985){const _0x5808b8=a154_0x31ab27;if(!existsSync(_0x363985))return{'status':'missing'};try{const _0x2dda41=readFileSync(_0x363985,{'encoding':'utf8'});if(!_0x2dda41?.[_0x5808b8(0xa5)]())return{'status':_0x5808b8(0x9a)};const _0x1647b9=JSON[_0x5808b8(0xb4)](_0x2dda41);return{'status':'ok','data':_0x1647b9};}catch(_0x6339cf){return{'status':_0x5808b8(0x8a),'message':_0x6339cf instanceof Error?_0x6339cf['message']:String(_0x6339cf)};}}function a154_0x43b5(_0x50ac56,_0xee3361){_0x50ac56=_0x50ac56-0x83;const _0x162962=a154_0x1629();let _0x43b5b0=_0x162962[_0x50ac56];return _0x43b5b0;}function parseCliConfigJsonFile(_0x7743ed,_0x35579b,_0x120c18){const _0x31d135=a154_0x31ab27,_0x4f943c=inspectCliConfigJsonFile(_0x7743ed);if(_0x4f943c[_0x31d135(0xa8)]==='missing'||_0x4f943c[_0x31d135(0xa8)]===_0x31d135(0x9a))return{};if(_0x4f943c[_0x31d135(0xa8)]==='ok')return _0x4f943c[_0x31d135(0x84)];return _0x35579b===_0x31d135(0x96)&&_0x120c18&&console[_0x31d135(0x8a)](CLI_BIN_NAME+':\x20'+_0x120c18+_0x31d135(0xae)+_0x7743ed+_0x31d135(0xa4)+_0x4f943c['message']),{};}function normalizeLegacyConfigShape(_0x1fc532){const _0x3fde6d=a154_0x31ab27;if(!_0x1fc532||typeof _0x1fc532!==_0x3fde6d(0x85))return{'config':{},'migrated':![]};const _0x40ea23={..._0x1fc532},_0x3d9882=_0x40ea23[_0x3fde6d(0x8c)]&&typeof _0x40ea23[_0x3fde6d(0x8c)]===_0x3fde6d(0x85)?{..._0x40ea23[_0x3fde6d(0x8c)]}:{},_0x1a7a5e=Object['keys'](_0x3d9882)[_0x3fde6d(0xa9)],_0x35f25e=_0x40ea23[_0x3fde6d(0x9b)]||_0x40ea23[_0x3fde6d(0xa3)];let _0x530fa0=![];if(_0x35f25e&&_0x1a7a5e===0x0){const _0xd937d4=typeof _0x40ea23[_0x3fde6d(0xa6)]===_0x3fde6d(0x8e)&&_0x40ea23[_0x3fde6d(0xa6)]['trim']()?_0x40ea23[_0x3fde6d(0xa6)]:String(_0x35f25e)[_0x3fde6d(0xa5)]();_0x3d9882[_0xd937d4]={'appcode':String(_0x35f25e)[_0x3fde6d(0xa5)](),..._0x40ea23[_0x3fde6d(0x99)]!=null?{'env':_0x40ea23[_0x3fde6d(0x99)]}:{},..._0x40ea23[_0x3fde6d(0x92)]!=null?{'apiDir':_0x40ea23[_0x3fde6d(0x92)]}:{},..._0x40ea23[_0x3fde6d(0xa2)]!=null?{'cookie':_0x40ea23[_0x3fde6d(0xa2)]}:{},..._0x40ea23[_0x3fde6d(0xb3)]!=null?{'accessKey':_0x40ea23[_0x3fde6d(0xb3)]}:{},..._0x40ea23[_0x3fde6d(0x9f)]!=null?{'format':_0x40ea23[_0x3fde6d(0x9f)]}:{},..._0x40ea23[_0x3fde6d(0xb2)]!=null?{'pageSize':_0x40ea23[_0x3fde6d(0xb2)]}:{},..._0x40ea23[_0x3fde6d(0xa7)]!=null?{'riskLevel':_0x40ea23['riskLevel']}:{},..._0x40ea23[_0x3fde6d(0x88)]!=null?{'locale':_0x40ea23[_0x3fde6d(0x88)]}:{}},_0x40ea23[_0x3fde6d(0x8c)]=_0x3d9882;if(!_0x40ea23[_0x3fde6d(0xa6)])_0x40ea23[_0x3fde6d(0xa6)]=_0xd937d4;_0x530fa0=!![];}return('appcode'in _0x40ea23||_0x3fde6d(0xa3)in _0x40ea23)&&(delete _0x40ea23[_0x3fde6d(0x9b)],delete _0x40ea23[_0x3fde6d(0xa3)],_0x530fa0=!![]),{'config':_0x40ea23,'migrated':_0x530fa0};}function writeNormalizedConfigIfNeeded(_0xfc8f6b,_0x1e9e2c){const _0xdfc06a=a154_0x31ab27,_0x5ef868=JSON['stringify'](_0x1e9e2c,null,0x2)+'\x0a';if(normalizedWriteCache[_0xdfc06a(0x91)](_0xfc8f6b)===_0x5ef868)return;writeConfigFile(_0xfc8f6b,_0x1e9e2c),normalizedWriteCache[_0xdfc06a(0x87)](_0xfc8f6b,_0x5ef868);}function parseAndNormalizeConfig(_0x333e9b,_0x5156f5,_0x1f2d6c){const _0x1679c0=a154_0x31ab27,_0x40b844=parseCliConfigJsonFile(_0x333e9b,_0x5156f5,_0x1f2d6c),_0x506062=normalizeLegacyConfigShape(_0x40b844);if(_0x506062[_0x1679c0(0x93)])try{writeNormalizedConfigIfNeeded(_0x333e9b,_0x506062['config']);}catch{}return _0x506062[_0x1679c0(0x89)];}export function loadRawConfigLayers(_0x324a8e){const _0x4f5680=a154_0x31ab27;let _0x54ac9c={},_0x4e2054={};const _0x559683=resolveConfigPath(homedir());_0x559683&&(_0x54ac9c=parseAndNormalizeConfig(_0x559683,_0x4f5680(0x96),_0x4f5680(0xb0)));const _0x327b7e=_0x324a8e??findProjectRootDirectory(),_0x15f7eb=resolveConfigPath(_0x327b7e);return _0x15f7eb&&(_0x4e2054=parseAndNormalizeConfig(_0x15f7eb,_0x4f5680(0x96),_0x4f5680(0x83))),{'globalPath':_0x559683,'projectPath':_0x15f7eb,'globalConfig':_0x54ac9c,'projectConfig':_0x4e2054};}const INHERIT_WHITELIST=['cookie',a154_0x31ab27(0xb3),a154_0x31ab27(0x88),a154_0x31ab27(0x9f),'riskLevel','pageSize'];export function mergeRawConfigLayers(_0x525a35){const _0x55fa87=a154_0x31ab27,{globalConfig:_0x1ba91f,projectConfig:_0x18a504}=_0x525a35,_0x4e4b2c=Object[_0x55fa87(0xab)](_0x18a504)[_0x55fa87(0xa9)]>0x0;if(!_0x4e4b2c)return mergeGlobalOnly(_0x1ba91f);if(_0x18a504[_0x55fa87(0x9d)]===!![])return mergeFullInherit(_0x1ba91f,_0x18a504);if(_0x18a504[_0x55fa87(0x9d)]===![])return mergeIsolated(_0x18a504);return mergeProjectFirst(_0x1ba91f,_0x18a504);}function a154_0x1629(){const _0x466bc6=['data','object','3935403nbfseN','set','locale','config','error','20MurAvF','apps','1279442eWteJY','string','.lovrabetrc','stringify','get','apiDir','migrated','8lSvFMD','utf8','warn','130308OjVNQr','5085101ZorfGI','env','empty','appcode','6UulJsM','inherit','project','format','.tmp','730014XBooZe','cookie','app','\x0a\x20\x20','trim','defaultApp','riskLevel','status','length','12tsMMmU','keys','filter','cwd','\x20config\x20file\x20ignored\x20(invalid\x20JSON\x20or\x20unreadable):\x20','.lovrabet.json','Global','5976270yfyoIv','pageSize','accessKey','parse','4068031hJsMaQ','Project'];a154_0x1629=function(){return _0x466bc6;};return a154_0x1629();}function mergeGlobalOnly(_0x42bd5a){const _0x4b9666=a154_0x31ab27,_0x53d2fc={..._0x42bd5a},_0x4b06db=_0x42bd5a[_0x4b9666(0x8c)]&&typeof _0x42bd5a[_0x4b9666(0x8c)]===_0x4b9666(0x85)?_0x42bd5a[_0x4b9666(0x8c)]:{};if(Object[_0x4b9666(0xab)](_0x4b06db)[_0x4b9666(0xa9)]>0x0)_0x53d2fc[_0x4b9666(0x8c)]=_0x4b06db;if(_0x42bd5a['defaultApp'])_0x53d2fc['defaultApp']=_0x42bd5a[_0x4b9666(0xa6)];else{const _0x23fef2=Object['keys'](_0x4b06db);if(_0x23fef2[_0x4b9666(0xa9)]>0x0)_0x53d2fc[_0x4b9666(0xa6)]=_0x23fef2[0x0];}return _0x53d2fc;}function mergeIsolated(_0x2d8b8e){const _0x14b872=a154_0x31ab27,_0x14ebfd={..._0x2d8b8e};delete _0x14ebfd['inherit'];const _0x3e8b5f=_0x2d8b8e[_0x14b872(0x8c)]&&typeof _0x2d8b8e[_0x14b872(0x8c)]===_0x14b872(0x85)?_0x2d8b8e['apps']:{};Object[_0x14b872(0xab)](_0x3e8b5f)['length']>0x0?_0x14ebfd[_0x14b872(0x8c)]=_0x3e8b5f:delete _0x14ebfd[_0x14b872(0x8c)];if(_0x14b872(0xa6)in _0x2d8b8e)_0x14ebfd[_0x14b872(0xa6)]=_0x2d8b8e['defaultApp'];else Object[_0x14b872(0xab)](_0x3e8b5f)[_0x14b872(0xa9)]>0x0?_0x14ebfd[_0x14b872(0xa6)]=Object['keys'](_0x3e8b5f)[0x0]:delete _0x14ebfd['defaultApp'];return _0x14ebfd;}function mergeProjectFirst(_0x547f4d,_0x151d9d){const _0x4e0ee5=a154_0x31ab27,_0x5c5cba={..._0x151d9d};delete _0x5c5cba[_0x4e0ee5(0x9d)];for(const _0x34e77c of INHERIT_WHITELIST){!(_0x34e77c in _0x5c5cba)&&_0x34e77c in _0x547f4d&&(_0x5c5cba[_0x34e77c]=_0x547f4d[_0x34e77c]);}const _0x104211=_0x151d9d['apps']&&typeof _0x151d9d[_0x4e0ee5(0x8c)]===_0x4e0ee5(0x85)?_0x151d9d['apps']:{};Object[_0x4e0ee5(0xab)](_0x104211)['length']>0x0?_0x5c5cba[_0x4e0ee5(0x8c)]=_0x104211:delete _0x5c5cba[_0x4e0ee5(0x8c)];if(_0x4e0ee5(0xa6)in _0x151d9d)_0x5c5cba[_0x4e0ee5(0xa6)]=_0x151d9d[_0x4e0ee5(0xa6)];else Object['keys'](_0x104211)[_0x4e0ee5(0xa9)]>0x0?_0x5c5cba['defaultApp']=Object[_0x4e0ee5(0xab)](_0x104211)[0x0]:delete _0x5c5cba['defaultApp'];return _0x5c5cba;}function mergeFullInherit(_0x4d1d04,_0x1a4156){const _0x28b89b=a154_0x31ab27,_0x4d5184=_0x4d1d04['apps']&&typeof _0x4d1d04[_0x28b89b(0x8c)]==='object'?_0x4d1d04[_0x28b89b(0x8c)]:{},_0x1b0c09=_0x1a4156[_0x28b89b(0x8c)]&&typeof _0x1a4156[_0x28b89b(0x8c)]===_0x28b89b(0x85)?_0x1a4156[_0x28b89b(0x8c)]:{},_0x22aca9={..._0x4d5184,..._0x1b0c09},_0x64cff6={..._0x4d1d04,..._0x1a4156};delete _0x64cff6[_0x28b89b(0x9d)];if(Object[_0x28b89b(0xab)](_0x22aca9)[_0x28b89b(0xa9)]>0x0)_0x64cff6[_0x28b89b(0x8c)]=_0x22aca9;if(_0x28b89b(0xa6)in _0x1a4156)_0x64cff6[_0x28b89b(0xa6)]=_0x1a4156[_0x28b89b(0xa6)];else{if(Object[_0x28b89b(0xab)](_0x1b0c09)[_0x28b89b(0xa9)]>0x0)_0x64cff6['defaultApp']=Object[_0x28b89b(0xab)](_0x1b0c09)[0x0];else{if(_0x4d1d04[_0x28b89b(0xa6)])_0x64cff6[_0x28b89b(0xa6)]=_0x4d1d04['defaultApp'];else{const _0x151247=Object['keys'](_0x4d5184);if(_0x151247[_0x28b89b(0xa9)]>0x0)_0x64cff6[_0x28b89b(0xa6)]=_0x151247[0x0];}}}return _0x64cff6;}export function readRawConfigWithLayers(_0xb127d3){const _0x21aed2=loadRawConfigLayers(_0xb127d3);return{'config':mergeRawConfigLayers(_0x21aed2),'layers':_0x21aed2};}export function readRawConfig(_0x16c5fd){return mergeRawConfigLayers(loadRawConfigLayers(_0x16c5fd));}export function readConfigFile(_0x41cf62){return parseAndNormalizeConfig(_0x41cf62,'silent');}export function writeConfigFile(_0xf1868f,_0x799692){const _0x3a47c2=a154_0x31ab27,_0x329c16=dirname(_0xf1868f);!existsSync(_0x329c16)&&mkdirSync(_0x329c16,{'recursive':!![]});const _0x227bdc=_0xf1868f+_0x3a47c2(0xa0);try{writeFileSync(_0x227bdc,JSON[_0x3a47c2(0x90)](_0x799692,null,0x2)+'\x0a',{'encoding':_0x3a47c2(0x95),'mode':0x180}),renameSync(_0x227bdc,_0xf1868f);}catch(_0x33f367){try{unlinkSync(_0x227bdc);}catch{}throw _0x33f367;}}export function resolveWriteConfigPath(_0x52d76a){const _0x4b48e8=a154_0x31ab27,_0x2bc4b6=_0x52d76a===_0x4b48e8(0x9e)?process[_0x4b48e8(0xad)]():homedir(),_0xc32be4=resolveConfigPath(_0x2bc4b6);return _0xc32be4??resolve(_0x2bc4b6,NEW_CONFIG_NAME);}
1
+ const a155_0x2b0672=a155_0x2c53;(function(_0x10de5d,_0x118291){const _0x51db47=a155_0x2c53,_0x2b2190=_0x10de5d();while(!![]){try{const _0x2018f7=parseInt(_0x51db47(0x176))/0x1+parseInt(_0x51db47(0x181))/0x2*(-parseInt(_0x51db47(0x188))/0x3)+-parseInt(_0x51db47(0x177))/0x4+-parseInt(_0x51db47(0x18a))/0x5+-parseInt(_0x51db47(0x1a6))/0x6*(parseInt(_0x51db47(0x187))/0x7)+parseInt(_0x51db47(0x18b))/0x8+parseInt(_0x51db47(0x196))/0x9;if(_0x2018f7===_0x118291)break;else _0x2b2190['push'](_0x2b2190['shift']());}catch(_0x33315c){_0x2b2190['push'](_0x2b2190['shift']());}}}(a155_0x3fb3,0x9cff9));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='.rabetbase.json';export const CONFIG_NAMES=[a155_0x2b0672(0x1a0),a155_0x2b0672(0x17a),'.lovrabetrc'];export const LEGACY_CONFIG_NAMES=CONFIG_NAMES[a155_0x2b0672(0x18d)](_0x3fe9ad=>_0x3fe9ad!==NEW_CONFIG_NAME);const normalizedWriteCache=new Map();export function resolveConfigPath(_0x3d67f6){for(const _0x56e520 of CONFIG_NAMES){const _0x3d6c43=resolve(_0x3d67f6,_0x56e520);if(existsSync(_0x3d6c43))return _0x3d6c43;}return undefined;}export function findProjectRootDirectory(_0x373e62=process[a155_0x2b0672(0x179)]()){let _0x4cf9ee=resolve(_0x373e62);const {root:_0x30e7ff}=parse(_0x4cf9ee),_0x38b395=homedir();while(!![]){if(resolveConfigPath(_0x4cf9ee)){if(_0x4cf9ee===_0x38b395)break;return _0x4cf9ee;}if(_0x4cf9ee===_0x30e7ff||_0x4cf9ee===_0x38b395)break;const _0x73c3d5=dirname(_0x4cf9ee);if(_0x73c3d5===_0x4cf9ee)break;_0x4cf9ee=_0x73c3d5;}return resolve(_0x373e62);}export function getProjectConfigPath(){const _0x325149=a155_0x2b0672;return resolveConfigPath(process[_0x325149(0x179)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}function a155_0x2c53(_0x2b65ec,_0x894f09){_0x2b65ec=_0x2b65ec-0x176;const _0x3fb38b=a155_0x3fb3();let _0x2c53cb=_0x3fb38b[_0x2b65ec];return _0x2c53cb;}export function isInProject(){return!!getProjectConfigPath();}export function inspectCliConfigJsonFile(_0x1b6a8e){const _0x3592b8=a155_0x2b0672;if(!existsSync(_0x1b6a8e))return{'status':_0x3592b8(0x17b)};try{const _0x21a712=readFileSync(_0x1b6a8e,{'encoding':_0x3592b8(0x192)});if(!_0x21a712?.[_0x3592b8(0x1a4)]())return{'status':'empty'};const _0x2b7c22=JSON[_0x3592b8(0x17d)](_0x21a712);return{'status':'ok','data':_0x2b7c22};}catch(_0x4c0dba){return{'status':_0x3592b8(0x180),'message':_0x4c0dba instanceof Error?_0x4c0dba[_0x3592b8(0x186)]:String(_0x4c0dba)};}}function parseCliConfigJsonFile(_0x11a473,_0x163c21,_0x1ed573){const _0x397718=a155_0x2b0672,_0x4630ad=inspectCliConfigJsonFile(_0x11a473);if(_0x4630ad[_0x397718(0x178)]===_0x397718(0x17b)||_0x4630ad[_0x397718(0x178)]===_0x397718(0x18f))return{};if(_0x4630ad[_0x397718(0x178)]==='ok')return _0x4630ad[_0x397718(0x189)];return _0x163c21===_0x397718(0x1a7)&&_0x1ed573&&console[_0x397718(0x180)](CLI_BIN_NAME+':\x20'+_0x1ed573+_0x397718(0x199)+_0x11a473+_0x397718(0x1a3)+_0x4630ad[_0x397718(0x186)]),{};}function normalizeLegacyConfigShape(_0x1e6d6f){const _0xa6435e=a155_0x2b0672;if(!_0x1e6d6f||typeof _0x1e6d6f!==_0xa6435e(0x19f))return{'config':{},'migrated':![]};const _0x3c48aa={..._0x1e6d6f},_0xf30f2c=_0x3c48aa['apps']&&typeof _0x3c48aa[_0xa6435e(0x19c)]===_0xa6435e(0x19f)?{..._0x3c48aa[_0xa6435e(0x19c)]}:{},_0x3bdbec=Object['keys'](_0xf30f2c)[_0xa6435e(0x195)],_0x4bce06=_0x3c48aa[_0xa6435e(0x1a2)]||_0x3c48aa['app'];let _0x5c8cb8=![];if(_0x4bce06&&_0x3bdbec===0x0){const _0x5d8d42=typeof _0x3c48aa[_0xa6435e(0x17f)]===_0xa6435e(0x191)&&_0x3c48aa[_0xa6435e(0x17f)][_0xa6435e(0x1a4)]()?_0x3c48aa[_0xa6435e(0x17f)]:String(_0x4bce06)[_0xa6435e(0x1a4)]();_0xf30f2c[_0x5d8d42]={'appcode':String(_0x4bce06)['trim'](),..._0x3c48aa['env']!=null?{'env':_0x3c48aa[_0xa6435e(0x183)]}:{},..._0x3c48aa[_0xa6435e(0x17c)]!=null?{'apiDir':_0x3c48aa[_0xa6435e(0x17c)]}:{},..._0x3c48aa[_0xa6435e(0x19b)]!=null?{'cookie':_0x3c48aa[_0xa6435e(0x19b)]}:{},..._0x3c48aa[_0xa6435e(0x184)]!=null?{'accessKey':_0x3c48aa[_0xa6435e(0x184)]}:{},..._0x3c48aa['format']!=null?{'format':_0x3c48aa[_0xa6435e(0x17e)]}:{},..._0x3c48aa[_0xa6435e(0x182)]!=null?{'pageSize':_0x3c48aa[_0xa6435e(0x182)]}:{},..._0x3c48aa['riskLevel']!=null?{'riskLevel':_0x3c48aa[_0xa6435e(0x18c)]}:{},..._0x3c48aa[_0xa6435e(0x1a5)]!=null?{'locale':_0x3c48aa[_0xa6435e(0x1a5)]}:{}},_0x3c48aa['apps']=_0xf30f2c;if(!_0x3c48aa['defaultApp'])_0x3c48aa['defaultApp']=_0x5d8d42;_0x5c8cb8=!![];}return(_0xa6435e(0x1a2)in _0x3c48aa||_0xa6435e(0x1a1)in _0x3c48aa)&&(delete _0x3c48aa['appcode'],delete _0x3c48aa[_0xa6435e(0x1a1)],_0x5c8cb8=!![]),{'config':_0x3c48aa,'migrated':_0x5c8cb8};}function writeNormalizedConfigIfNeeded(_0x448176,_0x40328c){const _0x3361b7=a155_0x2b0672,_0x5097dd=JSON[_0x3361b7(0x197)](_0x40328c,null,0x2)+'\x0a';if(normalizedWriteCache[_0x3361b7(0x194)](_0x448176)===_0x5097dd)return;writeConfigFile(_0x448176,_0x40328c),normalizedWriteCache[_0x3361b7(0x190)](_0x448176,_0x5097dd);}function parseAndNormalizeConfig(_0x2902c7,_0x2e738b,_0xac98c1){const _0x130493=a155_0x2b0672,_0x27584c=parseCliConfigJsonFile(_0x2902c7,_0x2e738b,_0xac98c1),_0x411148=normalizeLegacyConfigShape(_0x27584c);if(_0x411148[_0x130493(0x198)])try{writeNormalizedConfigIfNeeded(_0x2902c7,_0x411148['config']);}catch{}return _0x411148[_0x130493(0x19a)];}export function loadRawConfigLayers(_0x16c53a){const _0x287d31=a155_0x2b0672;let _0x5aaae9={},_0x2d7905={};const _0x4e5c8b=resolveConfigPath(homedir());_0x4e5c8b&&(_0x5aaae9=parseAndNormalizeConfig(_0x4e5c8b,_0x287d31(0x1a7),'Global'));const _0x4258c8=_0x16c53a??findProjectRootDirectory(),_0x45d3f6=resolveConfigPath(_0x4258c8);return _0x45d3f6&&(_0x2d7905=parseAndNormalizeConfig(_0x45d3f6,_0x287d31(0x1a7),_0x287d31(0x185))),{'globalPath':_0x4e5c8b,'projectPath':_0x45d3f6,'globalConfig':_0x5aaae9,'projectConfig':_0x2d7905};}function a155_0x3fb3(){const _0x4729d2=['app','appcode','\x0a\x20\x20','trim','locale','2595534UBcvZw','warn','1225598kkADBr','4476068OLbqcI','status','cwd','.lovrabet.json','missing','apiDir','parse','format','defaultApp','error','2PMqYjc','pageSize','env','accessKey','Project','message','14KsGGdf','321831MOJCmG','data','5179845MfOdUO','9362392AjbaoR','riskLevel','filter','silent','empty','set','string','utf8','keys','get','length','12371481daUUIL','stringify','migrated','\x20config\x20file\x20ignored\x20(invalid\x20JSON\x20or\x20unreadable):\x20','config','cookie','apps','inherit','project','object','.rabetbase.json'];a155_0x3fb3=function(){return _0x4729d2;};return a155_0x3fb3();}const INHERIT_WHITELIST=[a155_0x2b0672(0x19b),a155_0x2b0672(0x184),a155_0x2b0672(0x1a5),'format',a155_0x2b0672(0x18c),'pageSize'];export function mergeRawConfigLayers(_0x268c53){const _0x48db6a=a155_0x2b0672,{globalConfig:_0x4165e7,projectConfig:_0xe00d78}=_0x268c53,_0x17e998=Object[_0x48db6a(0x193)](_0xe00d78)['length']>0x0;if(!_0x17e998)return mergeGlobalOnly(_0x4165e7);if(_0xe00d78[_0x48db6a(0x19d)]===!![])return mergeFullInherit(_0x4165e7,_0xe00d78);if(_0xe00d78['inherit']===![])return mergeIsolated(_0xe00d78);return mergeProjectFirst(_0x4165e7,_0xe00d78);}function mergeGlobalOnly(_0x51ade8){const _0x88dcf8=a155_0x2b0672,_0x1f6367={..._0x51ade8},_0x3517f8=_0x51ade8[_0x88dcf8(0x19c)]&&typeof _0x51ade8['apps']===_0x88dcf8(0x19f)?_0x51ade8[_0x88dcf8(0x19c)]:{};if(Object[_0x88dcf8(0x193)](_0x3517f8)[_0x88dcf8(0x195)]>0x0)_0x1f6367[_0x88dcf8(0x19c)]=_0x3517f8;if(_0x51ade8[_0x88dcf8(0x17f)])_0x1f6367[_0x88dcf8(0x17f)]=_0x51ade8[_0x88dcf8(0x17f)];else{const _0x4253f7=Object[_0x88dcf8(0x193)](_0x3517f8);if(_0x4253f7[_0x88dcf8(0x195)]>0x0)_0x1f6367['defaultApp']=_0x4253f7[0x0];}return _0x1f6367;}function mergeIsolated(_0x1f7e0e){const _0x269494=a155_0x2b0672,_0x19d4c3={..._0x1f7e0e};delete _0x19d4c3[_0x269494(0x19d)];const _0x599250=_0x1f7e0e['apps']&&typeof _0x1f7e0e[_0x269494(0x19c)]===_0x269494(0x19f)?_0x1f7e0e[_0x269494(0x19c)]:{};Object[_0x269494(0x193)](_0x599250)[_0x269494(0x195)]>0x0?_0x19d4c3['apps']=_0x599250:delete _0x19d4c3[_0x269494(0x19c)];if(_0x269494(0x17f)in _0x1f7e0e)_0x19d4c3['defaultApp']=_0x1f7e0e['defaultApp'];else Object['keys'](_0x599250)[_0x269494(0x195)]>0x0?_0x19d4c3[_0x269494(0x17f)]=Object['keys'](_0x599250)[0x0]:delete _0x19d4c3[_0x269494(0x17f)];return _0x19d4c3;}function mergeProjectFirst(_0x2d4642,_0xb4526a){const _0x53e62f=a155_0x2b0672,_0x2d512a={..._0xb4526a};delete _0x2d512a[_0x53e62f(0x19d)];for(const _0x3276da of INHERIT_WHITELIST){!(_0x3276da in _0x2d512a)&&_0x3276da in _0x2d4642&&(_0x2d512a[_0x3276da]=_0x2d4642[_0x3276da]);}const _0x2048f5=_0xb4526a['apps']&&typeof _0xb4526a[_0x53e62f(0x19c)]===_0x53e62f(0x19f)?_0xb4526a[_0x53e62f(0x19c)]:{};Object[_0x53e62f(0x193)](_0x2048f5)[_0x53e62f(0x195)]>0x0?_0x2d512a['apps']=_0x2048f5:delete _0x2d512a[_0x53e62f(0x19c)];if(_0x53e62f(0x17f)in _0xb4526a)_0x2d512a[_0x53e62f(0x17f)]=_0xb4526a[_0x53e62f(0x17f)];else Object[_0x53e62f(0x193)](_0x2048f5)[_0x53e62f(0x195)]>0x0?_0x2d512a[_0x53e62f(0x17f)]=Object['keys'](_0x2048f5)[0x0]:delete _0x2d512a[_0x53e62f(0x17f)];return _0x2d512a;}function mergeFullInherit(_0x58e860,_0xc94bba){const _0x41ebcb=a155_0x2b0672,_0x529a7b=_0x58e860['apps']&&typeof _0x58e860['apps']===_0x41ebcb(0x19f)?_0x58e860[_0x41ebcb(0x19c)]:{},_0x305f17=_0xc94bba[_0x41ebcb(0x19c)]&&typeof _0xc94bba[_0x41ebcb(0x19c)]===_0x41ebcb(0x19f)?_0xc94bba[_0x41ebcb(0x19c)]:{},_0x443116={..._0x529a7b,..._0x305f17},_0x5b4781={..._0x58e860,..._0xc94bba};delete _0x5b4781[_0x41ebcb(0x19d)];if(Object['keys'](_0x443116)[_0x41ebcb(0x195)]>0x0)_0x5b4781[_0x41ebcb(0x19c)]=_0x443116;if(_0x41ebcb(0x17f)in _0xc94bba)_0x5b4781[_0x41ebcb(0x17f)]=_0xc94bba['defaultApp'];else{if(Object['keys'](_0x305f17)[_0x41ebcb(0x195)]>0x0)_0x5b4781[_0x41ebcb(0x17f)]=Object[_0x41ebcb(0x193)](_0x305f17)[0x0];else{if(_0x58e860['defaultApp'])_0x5b4781[_0x41ebcb(0x17f)]=_0x58e860[_0x41ebcb(0x17f)];else{const _0xd13dec=Object[_0x41ebcb(0x193)](_0x529a7b);if(_0xd13dec[_0x41ebcb(0x195)]>0x0)_0x5b4781['defaultApp']=_0xd13dec[0x0];}}}return _0x5b4781;}export function readRawConfigWithLayers(_0x23cf73){const _0x2df5e0=loadRawConfigLayers(_0x23cf73);return{'config':mergeRawConfigLayers(_0x2df5e0),'layers':_0x2df5e0};}export function readRawConfig(_0x3996a8){return mergeRawConfigLayers(loadRawConfigLayers(_0x3996a8));}export function readConfigFile(_0x2c9aac){const _0x29a019=a155_0x2b0672;return parseAndNormalizeConfig(_0x2c9aac,_0x29a019(0x18e));}export function writeConfigFile(_0x4a7347,_0x2258f1){const _0x564ca4=a155_0x2b0672,_0x4e96ba=dirname(_0x4a7347);!existsSync(_0x4e96ba)&&mkdirSync(_0x4e96ba,{'recursive':!![]});const _0x44aad8=_0x4a7347+'.tmp';try{writeFileSync(_0x44aad8,JSON[_0x564ca4(0x197)](_0x2258f1,null,0x2)+'\x0a',{'encoding':_0x564ca4(0x192),'mode':0x180}),renameSync(_0x44aad8,_0x4a7347);}catch(_0x2cb2ed){try{unlinkSync(_0x44aad8);}catch{}throw _0x2cb2ed;}}export function resolveWriteConfigPath(_0x127361){const _0x2b08bc=a155_0x2b0672,_0xa6c1da=_0x127361===_0x2b08bc(0x19e)?process[_0x2b08bc(0x179)]():homedir(),_0x1ebbc1=resolveConfigPath(_0xa6c1da);return _0x1ebbc1??resolve(_0xa6c1da,NEW_CONFIG_NAME);}