@lovrabet/rabetbase-cli 2.3.1 → 2.3.2-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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_0x5bdd57=a141_0xc3e7;(function(_0x304c7f,_0x3761f3){const _0x43d968=a141_0xc3e7,_0x19839d=_0x304c7f();while(!![]){try{const _0xae7a1d=-parseInt(_0x43d968(0x90))/0x1*(parseInt(_0x43d968(0x76))/0x2)+parseInt(_0x43d968(0x75))/0x3+-parseInt(_0x43d968(0x77))/0x4+-parseInt(_0x43d968(0x7e))/0x5*(parseInt(_0x43d968(0x7f))/0x6)+parseInt(_0x43d968(0x82))/0x7*(parseInt(_0x43d968(0x86))/0x8)+parseInt(_0x43d968(0x7c))/0x9*(parseInt(_0x43d968(0x71))/0xa)+-parseInt(_0x43d968(0x7b))/0xb;if(_0xae7a1d===_0x3761f3)break;else _0x19839d['push'](_0x19839d['shift']());}catch(_0x48d42a){_0x19839d['push'](_0x19839d['shift']());}}}(a141_0x5aa1,0xaa151));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';import{createEmptySqlLock,ensureSqlLockScope,readSqlLockFile}from'../../core/sql-sync/lock.js';const PAGE_SIZE=0x64;async function fetchAllSqlCodes(_0x124e8d){const _0x1b61ed=a141_0xc3e7,_0x120831=[];let _0x3e6fd7=0x1;while(!![]){const _0x1fc25d=await listSqlQueries(_0x124e8d,{'currentPage':_0x3e6fd7,'pageSize':PAGE_SIZE}),_0x4a2643=_0x1fc25d[_0x1b61ed(0x70)]??[];_0x120831[_0x1b61ed(0x74)](..._0x4a2643[_0x1b61ed(0x8f)](_0x3378f7=>_0x3378f7[_0x1b61ed(0x8b)]));if(_0x4a2643[_0x1b61ed(0x8a)]===0x0)break;const _0x74385=_0x1fc25d[_0x1b61ed(0x80)]?.['totalCount'];if(_0x74385!=null?_0x120831[_0x1b61ed(0x8a)]>=_0x74385:_0x4a2643[_0x1b61ed(0x8a)]<PAGE_SIZE)break;_0x3e6fd7++;}return _0x120831;}function a141_0x5aa1(){const _0x46be64=['\x20unchanged','push','1892298DxEleH','44642wYFwxW','3417680aTwOUH','sqlName','\x20modified,\x20','All\x20SQL\x20queries\x20are\x20in\x20sync.','664367vXKwIJ','9wRuinc','hash','565NoNMaj','4044EBqnvM','paging','\x20added,\x20','217QgZPqE','remote','Check\x20local\x20SQL\x20sync\x20status\x20against\x20lock\x20file','Also\x20check\x20for\x20remote-only\x20SQL\x20queries\x20not\x20present\x20locally','33616DnihOh','bool','sqls','has','length','sqlCode','relativePath','lockKey','status','map','1jBAZdk','appCode','sqlRoot','tableData','9489290JKAeHh','boolean'];a141_0x5aa1=function(){return _0x46be64;};return a141_0x5aa1();}function a141_0xc3e7(_0x39cc7d,_0x40af00){_0x39cc7d=_0x39cc7d-0x6f;const _0x5aa158=a141_0x5aa1();let _0xc3e7a7=_0x5aa158[_0x39cc7d];return _0xc3e7a7;}export const sqlStatus={'service':'sql','command':a141_0x5bdd57(0x8e),'description':a141_0x5bdd57(0x84),'risk':'read','flags':[{'name':'remote','type':a141_0x5bdd57(0x72),'description':a141_0x5bdd57(0x85)}],async 'execute'(_0x9f6f78){const _0x7407a7=a141_0x5bdd57,_0x2ccc8d=loadSqlProjectConfig(_0x9f6f78['appCode']),_0x238c67=await readSqlLockFile(_0x2ccc8d['lockFilePath']),{appLock:_0x1bddd0}=ensureSqlLockScope(_0x238c67??createEmptySqlLock(),_0x2ccc8d[_0x7407a7(0x91)],_0x2ccc8d[_0x7407a7(0x6f)],'status'),_0x1ca15c=await scanLocalSqlQueries(_0x2ccc8d),_0x4fc99a=[],_0x99399d=[],_0x3220ab=[],_0x13ce3c=[],_0x4002f1=new Set(_0x1ca15c[_0x7407a7(0x8f)](_0x104dc1=>_0x104dc1['lockKey']));for(const _0x12a033 of _0x1ca15c){const _0x2c917c=await computeSqlFileHash(_0x12a033['filePath']),_0x58592e=_0x1bddd0[_0x7407a7(0x88)][_0x12a033[_0x7407a7(0x8d)]],_0x1645dc=!!_0x58592e&&_0x58592e['path']!==_0x12a033[_0x7407a7(0x8c)],_0x470539=!!_0x58592e&&!!_0x12a033[_0x7407a7(0x78)]&&_0x58592e[_0x7407a7(0x78)]!==_0x12a033[_0x7407a7(0x78)];if(!_0x58592e)_0x4fc99a[_0x7407a7(0x74)](_0x12a033[_0x7407a7(0x8d)]);else _0x58592e[_0x7407a7(0x7d)]!==_0x2c917c||_0x1645dc||_0x470539?_0x99399d[_0x7407a7(0x74)](_0x12a033[_0x7407a7(0x8d)]):_0x3220ab[_0x7407a7(0x74)](_0x12a033['lockKey']);}for(const _0x4b44bb of Object['keys'](_0x1bddd0[_0x7407a7(0x88)])){!_0x4002f1[_0x7407a7(0x89)](_0x4b44bb)&&_0x13ce3c[_0x7407a7(0x74)](_0x4b44bb);}const _0x37e079=[];if(_0x9f6f78[_0x7407a7(0x87)](_0x7407a7(0x83))){const _0x5d2339=await fetchAllSqlCodes(_0x9f6f78['appCode']);for(const _0x5d1efa of _0x5d2339){!_0x4002f1[_0x7407a7(0x89)](_0x5d1efa)&&!_0x1bddd0['sqls'][_0x5d1efa]&&_0x37e079[_0x7407a7(0x74)](_0x5d1efa);}}const _0x3764e5=_0x4fc99a[_0x7407a7(0x8a)]===0x0&&_0x99399d[_0x7407a7(0x8a)]===0x0&&_0x13ce3c[_0x7407a7(0x8a)]===0x0&&_0x37e079[_0x7407a7(0x8a)]===0x0;return{'ok':!![],'data':{'added':_0x4fc99a,'modified':_0x99399d,'missing':_0x13ce3c,'unchanged':_0x3220ab,'remoteOnly':_0x37e079},'message':_0x3764e5?_0x7407a7(0x7a):_0x4fc99a[_0x7407a7(0x8a)]+_0x7407a7(0x81)+_0x99399d[_0x7407a7(0x8a)]+_0x7407a7(0x79)+_0x13ce3c[_0x7407a7(0x8a)]+'\x20missing,\x20'+_0x3220ab['length']+_0x7407a7(0x73)+(_0x37e079[_0x7407a7(0x8a)]>0x0?',\x20'+_0x37e079[_0x7407a7(0x8a)]+'\x20remote-only':'')};}};
@@ -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_0x5d5054=a142_0x180f;function a142_0x180f(_0x1eb2bf,_0x4c82a0){_0x1eb2bf=_0x1eb2bf-0x1d6;const _0xe6ff42=a142_0xe6ff();let _0x180fc7=_0xe6ff42[_0x1eb2bf];return _0x180fc7;}(function(_0x4d55a0,_0x42f2c3){const _0x3b0576=a142_0x180f,_0x58e288=_0x4d55a0();while(!![]){try{const _0x54942f=-parseInt(_0x3b0576(0x1fd))/0x1+-parseInt(_0x3b0576(0x204))/0x2+parseInt(_0x3b0576(0x1e6))/0x3+parseInt(_0x3b0576(0x1ed))/0x4+-parseInt(_0x3b0576(0x1ea))/0x5+parseInt(_0x3b0576(0x1dd))/0x6*(parseInt(_0x3b0576(0x209))/0x7)+-parseInt(_0x3b0576(0x20b))/0x8*(-parseInt(_0x3b0576(0x1d7))/0x9);if(_0x54942f===_0x42f2c3)break;else _0x58e288['push'](_0x58e288['shift']());}catch(_0x515aad){_0x58e288['push'](_0x58e288['shift']());}}}(a142_0xe6ff,0x5ee71));import{readFileSync,existsSync}from'node:fs';function a142_0xe6ff(){const _0x3637af=['schemas','push','436476iaOVMi','Validate\x20SQL\x20content\x20without\x20saving\x20(type\x20detection,\x20parameter\x20extraction,\x20optional\x20schema\x20check)','tables','Dataset\x20\x22','\x22\x20not\x20found\x20in\x20any\x20dataset','get','toLowerCase','Table\x20\x22','\x22\x20not\x20found\x20or\x20not\x20accessible','2262666bHjoqH','length','sql','Inline\x20SQL\x20content\x20to\x20validate\x20(alternative\x20to\x20--file)','2940250LlABot','Path\x20to\x20the\x20SQL\x20file\x20to\x20validate','Comma-separated\x20dataset\x20codes\x20to\x20cross-check\x20table/column\x20names\x20against','568300zdzOtO','trim','File\x20not\x20found:\x20','size','filter','cwd','reason','schema:','read','map','file','split','name','from','str','utf-8','677959uacDRP','message','sqlType','flagMissing','tableName','valid','Provide\x20--file\x20or\x20--sql','1234000rVoGdF','parameters','validate','string','appCode','42GbXwFg','fields','7768hqlfzi','isArray','8703hFqQEN','type','SQL\x20schema\x20validation','dbtableConfig'];a142_0xe6ff=function(){return _0x3637af;};return a142_0xe6ff();}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':a142_0x5d5054(0x1e8),'command':a142_0x5d5054(0x206),'description':a142_0x5d5054(0x1de),'risk':a142_0x5d5054(0x1f5),'flags':[{'name':'file','type':a142_0x5d5054(0x207),'description':a142_0x5d5054(0x1eb)},{'name':'sql','type':a142_0x5d5054(0x207),'description':a142_0x5d5054(0x1e9)},{'name':a142_0x5d5054(0x1db),'type':a142_0x5d5054(0x207),'description':a142_0x5d5054(0x1ec)}],async 'execute'(_0x4dfdc1){const _0x46bc2a=a142_0x5d5054,_0x316fee=_0x4dfdc1['str']('file'),_0x1e128e=_0x4dfdc1[_0x46bc2a(0x1fb)](_0x46bc2a(0x1e8));if(!_0x316fee&&!_0x1e128e)throw CliErrors[_0x46bc2a(0x200)](_0x46bc2a(0x1f7),_0x46bc2a(0x203));let _0x4d9e1b;if(_0x316fee){const _0x1f4a68=resolve(process[_0x46bc2a(0x1f2)](),_0x316fee);if(!existsSync(_0x1f4a68))throw CliErrors['validation'](_0x46bc2a(0x1ef)+_0x1f4a68);_0x4d9e1b=readFileSync(_0x1f4a68,_0x46bc2a(0x1fc));}else _0x4d9e1b=_0x1e128e;const _0x3179f2=validateSql(_0x4d9e1b),_0x16ca8a={'valid':_0x3179f2[_0x46bc2a(0x202)],'sqlType':_0x3179f2[_0x46bc2a(0x1ff)][_0x46bc2a(0x1d8)],'isSelectOnly':_0x3179f2[_0x46bc2a(0x1ff)]['isSelectOnly'],'isDangerous':_0x3179f2[_0x46bc2a(0x1ff)]['isDangerous'],'tables':_0x3179f2['tables'],'parameters':_0x3179f2[_0x46bc2a(0x205)],'message':_0x3179f2[_0x46bc2a(0x1fe)]};_0x3179f2[_0x46bc2a(0x1ff)][_0x46bc2a(0x1f3)]&&(_0x16ca8a['reason']=_0x3179f2[_0x46bc2a(0x1ff)][_0x46bc2a(0x1f3)]);const _0x5d0af4=_0x4dfdc1[_0x46bc2a(0x1fb)]('schemas');if(_0x5d0af4&&_0x3179f2[_0x46bc2a(0x202)]){const _0x39f01e=_0x5d0af4[_0x46bc2a(0x1f8)](',')['map'](_0x6631cc=>_0x6631cc[_0x46bc2a(0x1ee)]())[_0x46bc2a(0x1f1)](Boolean),_0x3f59f6=[],_0x2ceeba=filterDbTableBackedDatasets(await listDatasets(_0x4dfdc1[_0x46bc2a(0x208)])),_0x460c4d=new Map(_0x2ceeba[_0x46bc2a(0x1f6)](_0x1eda0c=>[_0x1eda0c[_0x46bc2a(0x1da)]?.[_0x46bc2a(0x201)]?.[_0x46bc2a(0x1e3)](),_0x1eda0c]));for(const _0x15c41a of _0x3179f2[_0x46bc2a(0x1df)]){const _0x24af2b=_0x460c4d[_0x46bc2a(0x1e2)](_0x15c41a[_0x46bc2a(0x1e3)]());!_0x24af2b&&_0x3f59f6[_0x46bc2a(0x1dc)](_0x46bc2a(0x1e4)+_0x15c41a+_0x46bc2a(0x1e1));}for(const _0x2c0df9 of _0x39f01e){let _0x47abc1;try{_0x47abc1=await getDatasetDetail(_0x2c0df9);}catch{_0x3f59f6[_0x46bc2a(0x1dc)](_0x46bc2a(0x1e0)+_0x2c0df9+_0x46bc2a(0x1e5));continue;}assertDatasetIsDbTableBacked(_0x47abc1,_0x46bc2a(0x1d9));const _0x13dc2f=Array[_0x46bc2a(0x1d6)](_0x47abc1[_0x46bc2a(0x20a)])?_0x47abc1[_0x46bc2a(0x20a)]:[],_0x34200f=new Set(_0x13dc2f[_0x46bc2a(0x1f6)](_0x45c798=>_0x45c798[_0x46bc2a(0x1f9)]?.['toLowerCase']())),_0x225647=_0x47abc1[_0x46bc2a(0x1da)]?.[_0x46bc2a(0x201)]||_0x47abc1[_0x46bc2a(0x201)]||_0x2c0df9;_0x16ca8a[_0x46bc2a(0x1f4)+_0x225647]={'code':_0x2c0df9,'tableName':_0x225647,'fieldCount':_0x34200f[_0x46bc2a(0x1f0)],'fields':Array[_0x46bc2a(0x1fa)](_0x34200f)};}_0x3f59f6[_0x46bc2a(0x1e7)]>0x0&&(_0x16ca8a['schemaWarnings']=_0x3f59f6);}return{'ok':_0x3179f2[_0x46bc2a(0x202)],'data':_0x16ca8a,'message':_0x3179f2[_0x46bc2a(0x1fe)]};}};
@@ -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_0x1c8b1d=a143_0x8070;(function(_0x69f458,_0x583e19){const _0x5afa91=a143_0x8070,_0x2734b8=_0x69f458();while(!![]){try{const _0x206a95=-parseInt(_0x5afa91(0x1ca))/0x1*(parseInt(_0x5afa91(0x1db))/0x2)+-parseInt(_0x5afa91(0x1c6))/0x3*(-parseInt(_0x5afa91(0x1c0))/0x4)+-parseInt(_0x5afa91(0x1c9))/0x5+parseInt(_0x5afa91(0x1e2))/0x6*(-parseInt(_0x5afa91(0x1d3))/0x7)+-parseInt(_0x5afa91(0x1b5))/0x8*(parseInt(_0x5afa91(0x1be))/0x9)+parseInt(_0x5afa91(0x1d0))/0xa+parseInt(_0x5afa91(0x1e4))/0xb*(parseInt(_0x5afa91(0x1c8))/0xc);if(_0x206a95===_0x583e19)break;else _0x2734b8['push'](_0x2734b8['shift']());}catch(_0x5b7728){_0x2734b8['push'](_0x2734b8['shift']());}}}(a143_0x5479,0x33bf4));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{RABETBASE_ENV_VALUES}from'../../constant/env.js';import{RABETBASE_OUTPUT_FORMAT_VALUES}from'../../constant/output.js';import{RISK_LEVEL_VALUES}from'../../constant/risk.js';import{validateAppcode}from'../../commands/common/validate.js';import{readConfigFile,readRawConfigWithLayers,resolveWriteConfigPath,writeConfigFile}from'../../context.js';const WORKSPACE_USAGE=CLI_BIN_NAME+'\x20workspace\x20<init|use>\x20--app\x20<name>\x20[--appcode\x20<code>]',SAFE_PROFILE_KEYS=[a143_0x1c8b1d(0x1ec),a143_0x1c8b1d(0x1c7),'apiDir',a143_0x1c8b1d(0x1eb),'pageSize',a143_0x1c8b1d(0x1b7),a143_0x1c8b1d(0x1bc)],workspaceFlags=[{'name':'app','type':'string','description':a143_0x1c8b1d(0x1b9)},{'name':a143_0x1c8b1d(0x1ec),'type':'string','description':a143_0x1c8b1d(0x1bf)},{'name':a143_0x1c8b1d(0x1c7),'type':a143_0x1c8b1d(0x1d1),'description':'Target\x20environment','enum':[...RABETBASE_ENV_VALUES]},{'name':'apiDir','type':'string','description':a143_0x1c8b1d(0x1c1)},{'name':'defaultFormat','type':a143_0x1c8b1d(0x1d1),'description':'Default\x20output\x20format\x20for\x20this\x20workspace\x20app\x20profile','enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':'pageSize','type':a143_0x1c8b1d(0x1d4),'description':a143_0x1c8b1d(0x1ce)},{'name':'riskLevel','type':a143_0x1c8b1d(0x1d1),'description':'Risk\x20level\x20for\x20this\x20workspace\x20app\x20profile','enum':[...RISK_LEVEL_VALUES]},{'name':'locale','type':a143_0x1c8b1d(0x1d1),'description':a143_0x1c8b1d(0x1ea)}];function isRecord(_0x45a2d4){const _0x4e1fda=a143_0x1c8b1d;return!!_0x45a2d4&&typeof _0x45a2d4==='object'&&!Array[_0x4e1fda(0x1bb)](_0x45a2d4);}function assertValidAppcode(_0x2cca6e){const _0x1b06c7=a143_0x1c8b1d,{valid:_0x5be841,message:_0x1d7a80}=validateAppcode(_0x2cca6e);if(!_0x5be841)throw CliErrors[_0x1b06c7(0x1b8)]('Invalid\x20appcode:\x20'+_0x2cca6e,_0x1d7a80);}function sanitizeProfile(_0x5340f1){if(!isRecord(_0x5340f1))return{};const _0x55727d={};for(const _0x271605 of SAFE_PROFILE_KEYS){if(_0x5340f1[_0x271605]!==undefined)_0x55727d[_0x271605]=_0x5340f1[_0x271605];}return _0x55727d;}function cloneProfile(_0x41ac66){return isRecord(_0x41ac66)?{..._0x41ac66}:{};}function collectWorkspaceProfileOverrides(_0xc3bcca){const _0x19e59f=a143_0x1c8b1d,_0x4530c9={},_0x126861=_0xc3bcca[_0x19e59f(0x1e8)](_0x19e59f(0x1c7)),_0x2fc58d=_0xc3bcca[_0x19e59f(0x1e8)](_0x19e59f(0x1e9)),_0x33b2f5=_0xc3bcca['str'](_0x19e59f(0x1cf)),_0x4b2199=_0xc3bcca['flag'](_0x19e59f(0x1e6)),_0xc20287=_0xc3bcca[_0x19e59f(0x1e8)](_0x19e59f(0x1b7)),_0x2eaf5c=_0xc3bcca['str'](_0x19e59f(0x1bc));if(_0x126861)_0x4530c9[_0x19e59f(0x1c7)]=_0x126861;if(_0x2fc58d)_0x4530c9[_0x19e59f(0x1e9)]=_0x2fc58d;if(_0x33b2f5)_0x4530c9['format']=_0x33b2f5;if(_0x4b2199!==undefined&&_0x4b2199!=='')_0x4530c9['pageSize']=Number(_0x4b2199);if(_0xc20287)_0x4530c9['riskLevel']=_0xc20287;if(_0x2eaf5c)_0x4530c9[_0x19e59f(0x1bc)]=_0x2eaf5c;return _0x4530c9;}async function validateWorkspaceArgs(_0x24da46){const _0x99634d=a143_0x1c8b1d,_0x1b3d1c=_0x24da46['str'](_0x99634d(0x1e5))[_0x99634d(0x1da)](),_0x1d0c42=_0x24da46[_0x99634d(0x1e8)](_0x99634d(0x1ec))[_0x99634d(0x1da)]();if(!_0x1b3d1c&&!_0x1d0c42)throw CliErrors[_0x99634d(0x1b8)](_0x99634d(0x1cd),_0x99634d(0x1cb)+CLI_BIN_NAME+_0x99634d(0x1de)+CLI_BIN_NAME+_0x99634d(0x1d9));if(_0x1d0c42)assertValidAppcode(_0x1d0c42);}function a143_0x8070(_0x213e0c,_0x19f5fb){_0x213e0c=_0x213e0c-0x1b5;const _0x5479af=a143_0x5479();let _0x807059=_0x5479af[_0x213e0c];return _0x807059;}function resolveKnownApps(){const _0x499cc0=a143_0x1c8b1d,{config:_0x5d9815,layers:_0x5e6957}=readRawConfigWithLayers(),_0x44fe0a=isRecord(_0x5d9815['apps'])?_0x5d9815[_0x499cc0(0x1ef)]:{},_0x1b8251=isRecord(_0x5e6957[_0x499cc0(0x1dd)][_0x499cc0(0x1ef)])?_0x5e6957['globalConfig'][_0x499cc0(0x1ef)]:{};return{..._0x1b8251,..._0x44fe0a};}async function configureWorkspace(_0x415ae0,_0x4b4e91){const _0x21a16d=a143_0x1c8b1d,_0x238cb5=_0x415ae0['str'](_0x21a16d(0x1e5))[_0x21a16d(0x1da)](),_0x36b599=_0x415ae0[_0x21a16d(0x1e8)]('appcode')[_0x21a16d(0x1da)](),_0x5e9d26=_0x238cb5||_0x36b599;if(!_0x5e9d26)throw CliErrors[_0x21a16d(0x1b8)](_0x21a16d(0x1cd),_0x21a16d(0x1cb)+CLI_BIN_NAME+_0x21a16d(0x1de)+CLI_BIN_NAME+_0x21a16d(0x1d9));if(_0x36b599)assertValidAppcode(_0x36b599);const _0x41d34e=resolveWriteConfigPath(_0x21a16d(0x1dc)),_0x40d5b6=readConfigFile(_0x41d34e),_0x847720=resolveKnownApps(),_0x59ca81=isRecord(_0x40d5b6['apps'])?{..._0x40d5b6['apps']}:{},_0x5350d4=cloneProfile(_0x59ca81[_0x5e9d26]),_0x56d655=sanitizeProfile(_0x847720[_0x5e9d26]),_0x3eda2d=_0x36b599?{}:_0x56d655,_0x5081ef=_0x36b599||_0x3eda2d[_0x21a16d(0x1ec)];if(!_0x5081ef){const _0xc79bc4=Object[_0x21a16d(0x1ee)](_0x847720),_0x494e7e=_0xc79bc4['length']===0x0?'Use\x20`'+CLI_BIN_NAME+_0x21a16d(0x1e1)+_0x4b4e91+'\x20--app\x20'+_0x5e9d26+_0x21a16d(0x1ed):_0x21a16d(0x1c5)+_0xc79bc4[_0x21a16d(0x1cc)](',\x20');throw CliErrors[_0x21a16d(0x1b8)]('App\x20\x22'+_0x5e9d26+_0x21a16d(0x1bd),_0x494e7e);}assertValidAppcode(String(_0x5081ef));const _0x416163={..._0x3eda2d,..._0x5350d4,'appcode':String(_0x5081ef),...collectWorkspaceProfileOverrides(_0x415ae0)};return _0x59ca81[_0x5e9d26]=_0x416163,_0x40d5b6[_0x21a16d(0x1ef)]=_0x59ca81,_0x40d5b6[_0x21a16d(0x1c4)]=_0x5e9d26,delete _0x40d5b6[_0x21a16d(0x1ec)],delete _0x40d5b6['app'],_0x416163[_0x21a16d(0x1c7)]&&(_0x40d5b6[_0x21a16d(0x1c7)]=_0x416163[_0x21a16d(0x1c7)]),writeConfigFile(_0x41d34e,_0x40d5b6),{'ok':!![],'message':_0x21a16d(0x1c3)+(_0x4b4e91===_0x21a16d(0x1e0)?_0x21a16d(0x1d6):_0x21a16d(0x1d2))+':\x20'+_0x5e9d26+_0x21a16d(0x1b6)+_0x416163[_0x21a16d(0x1ec)]+_0x21a16d(0x1df)+_0x41d34e+_0x21a16d(0x1d5),'data':{'operation':_0x21a16d(0x1d7)+_0x4b4e91,'configPath':_0x41d34e,'app':_0x5e9d26,'appcode':_0x416163[_0x21a16d(0x1ec)],'env':_0x416163[_0x21a16d(0x1c7)]??null,'credentialsWritten':![]}};}const workspaceInitDefinition={'service':a143_0x1c8b1d(0x1e3),'command':a143_0x1c8b1d(0x1e0),'description':a143_0x1c8b1d(0x1e7),'risk':'write','requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x3d6664=>configureWorkspace(_0x3d6664,a143_0x1c8b1d(0x1e0))},workspaceUseDefinition={'service':a143_0x1c8b1d(0x1e3),'command':a143_0x1c8b1d(0x1c2),'description':a143_0x1c8b1d(0x1d8),'risk':a143_0x1c8b1d(0x1ba),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x4d44ad=>configureWorkspace(_0x4d44ad,a143_0x1c8b1d(0x1c2))};function a143_0x5479(){const _0x43dd42=['write','isArray','locale','\x22\x20not\x20found.','1390779mJSERw','App\x20code\x20to\x20bind\x20to\x20this\x20workspace','321492QQMPpc','API\x20directory\x20path\x20for\x20this\x20workspace\x20app\x20profile','use','Workspace\x20','defaultApp','Pass\x20--appcode\x20<code>,\x20or\x20choose\x20one\x20of:\x20','3izrdpI','env','14051472JcGKaV','1201825lBWPhB','995jxRNUb','Use\x20`','join','Missing\x20workspace\x20app\x20selector.','Default\x20page\x20size\x20for\x20this\x20workspace\x20app\x20profile','defaultFormat','105050xfCQjz','string','updated','119EFxUap','number','.\x20Credentials:\x20not\x20written.','initialized','workspace.','Switch\x20the\x20current\x20workspace\x20app\x20binding','\x20workspace\x20use\x20--app\x20<name>`.','trim','534VQfBEa','project','globalConfig','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20`',').\x20Config:\x20','init','\x20workspace\x20','137406GzeLlT','workspace','11zipPWb','app','pageSize','Initialize\x20the\x20current\x20workspace\x20app\x20binding','str','apiDir','Locale\x20for\x20this\x20workspace\x20app\x20profile','format','appcode','\x20--appcode\x20<code>`.','keys','apps','8PHJCfH','\x20(appcode:\x20','riskLevel','validation','App\x20profile\x20name\x20to\x20use\x20in\x20this\x20workspace'];a143_0x5479=function(){return _0x43dd42;};return a143_0x5479();}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_0x4e7d2b=a144_0x3ddc;(function(_0x46452e,_0x32e447){const _0x413ff1=a144_0x3ddc,_0x2f0bdd=_0x46452e();while(!![]){try{const _0x14c19a=-parseInt(_0x413ff1(0x189))/0x1*(parseInt(_0x413ff1(0x196))/0x2)+parseInt(_0x413ff1(0x176))/0x3+parseInt(_0x413ff1(0x1a0))/0x4*(-parseInt(_0x413ff1(0x19a))/0x5)+-parseInt(_0x413ff1(0x19b))/0x6*(-parseInt(_0x413ff1(0x178))/0x7)+-parseInt(_0x413ff1(0x179))/0x8+parseInt(_0x413ff1(0x186))/0x9*(-parseInt(_0x413ff1(0x188))/0xa)+-parseInt(_0x413ff1(0x19d))/0xb*(-parseInt(_0x413ff1(0x194))/0xc);if(_0x14c19a===_0x32e447)break;else _0x2f0bdd['push'](_0x2f0bdd['shift']());}catch(_0x1eb90d){_0x2f0bdd['push'](_0x2f0bdd['shift']());}}}(a144_0x2014,0xd4c44));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RABETBASE_ENV_VALUES}from'../constant/env.js';function a144_0x2014(){const _0x3537d9=['pageSize','has','env','apiDir','map','1320924hXDrqE','length','160298yVtuAU','trim','Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','app','2158055rxIzyJ','18yNogCV','format','209KhuYcf','cookie','Default\x20page\x20size','16FHbXbw','4504203rqvLBU','locale','3119025SCkbdp','8218104zcJUvG','keys','Auth\x20cookie','zh-CN','appcode','inherit','apps','defaultFormat','en-US','accessKey','join','defaultApp','riskLevel','207BjnqYi','Target\x20environment','114110RGXtQB','13dIzNvD','Locale','toLowerCase','API\x20directory\x20path','string','number'];a144_0x2014=function(){return _0x3537d9;};return a144_0x2014();}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_0x4e7d2b(0x19e),'accessKey',a144_0x4e7d2b(0x177),'format','riskLevel'];export const TOP_LEVEL_CONFIG_KEYS=new Set([a144_0x4e7d2b(0x17d),'env','locale',a144_0x4e7d2b(0x19c),a144_0x4e7d2b(0x19e),a144_0x4e7d2b(0x182),a144_0x4e7d2b(0x192)]);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES]};export function formatConfigKeyList(_0x4916e3){const _0x349906=a144_0x4e7d2b;return[..._0x4916e3][_0x349906(0x183)](',\x20');}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0x21df04){const _0x402ad4=a144_0x4e7d2b;return TOP_LEVEL_CONFIG_KEYS[_0x402ad4(0x190)](_0x21df04);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){return'Config\x20key\x20('+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'env':a144_0x4e7d2b(0x191),'apiDir':a144_0x4e7d2b(0x192),'cookie':'cookie','accessKey':a144_0x4e7d2b(0x182),'defaultFormat':a144_0x4e7d2b(0x19c),'pageSize':a144_0x4e7d2b(0x18f),'riskLevel':'riskLevel','locale':a144_0x4e7d2b(0x177)};export function getAppProfileFlagDefs(){const _0x1a031b=a144_0x4e7d2b;return[{'name':_0x1a031b(0x191),'type':_0x1a031b(0x18d),'description':_0x1a031b(0x187),'enum':[...RABETBASE_ENV_VALUES]},{'name':_0x1a031b(0x192),'type':'string','description':_0x1a031b(0x18c)},{'name':_0x1a031b(0x19e),'type':_0x1a031b(0x18d),'description':_0x1a031b(0x17b),'hidden':!![]},{'name':_0x1a031b(0x182),'type':_0x1a031b(0x18d),'description':'Access\x20key','hidden':!![]},{'name':_0x1a031b(0x180),'type':_0x1a031b(0x18d),'description':_0x1a031b(0x198),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':_0x1a031b(0x18f),'type':_0x1a031b(0x18e),'description':_0x1a031b(0x19f)},{'name':_0x1a031b(0x185),'type':_0x1a031b(0x18d),'description':'Risk\x20level','enum':[...RISK_LEVEL_VALUES]},{'name':_0x1a031b(0x177),'type':'string','description':_0x1a031b(0x18a)}];}export function collectAppProfileOverrides(_0x237d2c){const _0x43dc8d=a144_0x4e7d2b,_0x532729={};for(const [_0x4b8468,_0x132934]of Object['entries'](APP_PROFILE_FLAG_KEY_MAP)){const _0x45b2fd=_0x237d2c(_0x4b8468);if(!_0x45b2fd)continue;_0x532729[_0x132934]=_0x132934===_0x43dc8d(0x18f)?Number(_0x45b2fd):_0x45b2fd;}return _0x532729;}export function buildAppProfileListFields(_0x5cca3f){const _0x485e87=a144_0x4e7d2b;return{'env':_0x5cca3f[_0x485e87(0x191)]??null,'apiDir':_0x5cca3f[_0x485e87(0x192)]??null,'hasCookie':!!_0x5cca3f[_0x485e87(0x19e)],'hasAccessKey':!!_0x5cca3f[_0x485e87(0x182)],'format':_0x5cca3f['format']??null,'pageSize':_0x5cca3f['pageSize']??null,'riskLevel':_0x5cca3f['riskLevel']??null,'locale':_0x5cca3f[_0x485e87(0x177)]??null};}function a144_0x3ddc(_0xe0d0e8,_0x1f7d69){_0xe0d0e8=_0xe0d0e8-0x176;const _0x20142a=a144_0x2014();let _0x3ddcb8=_0x20142a[_0xe0d0e8];return _0x3ddcb8;}export function buildAppDoctorFields(_0x926f96,_0x4eb82a){const _0x2e4460=a144_0x4e7d2b;return{'env':{'value':_0x926f96[_0x2e4460(0x191)]||_0x4eb82a[_0x2e4460(0x191)],'source':_0x926f96[_0x2e4460(0x191)]?_0x2e4460(0x199):_0x2e4460(0x17e)},'apiDir':{'value':_0x926f96[_0x2e4460(0x192)]||_0x4eb82a[_0x2e4460(0x192)],'source':_0x926f96[_0x2e4460(0x192)]?_0x2e4460(0x199):_0x2e4460(0x17e)},'cookie':{'value':_0x926f96[_0x2e4460(0x19e)]||_0x4eb82a[_0x2e4460(0x19e)],'source':_0x926f96[_0x2e4460(0x19e)]?_0x2e4460(0x199):'inherit'},'accessKey':{'value':_0x926f96[_0x2e4460(0x182)]||_0x4eb82a[_0x2e4460(0x182)],'source':_0x926f96[_0x2e4460(0x182)]?'app':'inherit'}};}export function buildCanonicalAppConfig(_0x46d0d3,_0x11c87d){const _0x5154dd=a144_0x4e7d2b,_0x3f87ea=_0x46d0d3[_0x5154dd(0x193)](_0x507998=>String(_0x507998||'')[_0x5154dd(0x197)]())['filter'](Boolean);if(_0x3f87ea[_0x5154dd(0x195)]===0x0)return{};const _0x48e4c1={};for(const _0x4ddae5 of _0x3f87ea){_0x48e4c1[_0x4ddae5]=_0x11c87d?{'appcode':_0x4ddae5,'env':_0x11c87d}:{'appcode':_0x4ddae5};}return{'apps':_0x48e4c1,'defaultApp':_0x3f87ea[0x0]};}export function buildCanonicalProjectConfig(_0x2e29a2,_0x500f6d){const _0x33e84d=a144_0x4e7d2b,{appCodes:appCodes=[],env:_0x53c306,metadata:_0x2d071a}=_0x500f6d,_0x1f8cef={..._0x2e29a2,..._0x2d071a||{}};delete _0x1f8cef['appcode'],delete _0x1f8cef['app'];if(_0x53c306)_0x1f8cef[_0x33e84d(0x191)]=_0x53c306;else!_0x1f8cef[_0x33e84d(0x191)]&&(_0x1f8cef['env']=DEFAULT_CONFIG_VALUES[_0x33e84d(0x191)]);const _0xd58564=buildCanonicalAppConfig(appCodes,_0x1f8cef[_0x33e84d(0x191)]);return Object[_0x33e84d(0x17a)](_0xd58564)[_0x33e84d(0x195)]>0x0&&(_0x1f8cef[_0x33e84d(0x17f)]=_0xd58564['apps'],_0x1f8cef['defaultApp']=_0xd58564[_0x33e84d(0x184)]),_0x1f8cef;}const LOCALE_MAP={'zh':'zh-CN','zh-cn':a144_0x4e7d2b(0x17c),'zh_cn':a144_0x4e7d2b(0x17c),'en':a144_0x4e7d2b(0x181),'en-us':a144_0x4e7d2b(0x181),'en_us':a144_0x4e7d2b(0x181)};export function normalizeLocale(_0x277aad){const _0x578dcd=a144_0x4e7d2b;if(!_0x277aad)return null;return LOCALE_MAP[_0x277aad[_0x578dcd(0x18b)]()]??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
+ (function(_0xe10760,_0xba14f){const _0x31e87f=a145_0x5760,_0x41b172=_0xe10760();while(!![]){try{const _0x3645da=-parseInt(_0x31e87f(0xf2))/0x1*(parseInt(_0x31e87f(0xf9))/0x2)+-parseInt(_0x31e87f(0xfa))/0x3+-parseInt(_0x31e87f(0xf6))/0x4+parseInt(_0x31e87f(0xf0))/0x5*(-parseInt(_0x31e87f(0xf8))/0x6)+-parseInt(_0x31e87f(0xf1))/0x7*(-parseInt(_0x31e87f(0xf4))/0x8)+parseInt(_0x31e87f(0xef))/0x9*(parseInt(_0x31e87f(0xf7))/0xa)+-parseInt(_0x31e87f(0xf5))/0xb*(-parseInt(_0x31e87f(0xf3))/0xc);if(_0x3645da===_0xba14f)break;else _0x41b172['push'](_0x41b172['shift']());}catch(_0x1fb1d){_0x41b172['push'](_0x41b172['shift']());}}}(a145_0x4b1e,0x9ccce));export const CLI_VERSION_POLICY_URL='https://g.lovrabet.com/dist/rabetbase-cli/config/index.json';function a145_0x5760(_0x10ce63,_0x4f3480){_0x10ce63=_0x10ce63-0xef;const _0x4b1e67=a145_0x4b1e();let _0x576045=_0x4b1e67[_0x10ce63];return _0x576045;}function a145_0x4b1e(){const _0x1d0b2b=['6530WeUUgi','7833511LcyaCJ','1IWlGOt','8304060veqzsW','8EAGnwf','22RxNxiE','3717040BFngDD','10vYjbvC','4800ZBKptH','277846VeRVEj','1420284tPjhlv','6530238hiilug'];a145_0x4b1e=function(){return _0x1d0b2b;};return a145_0x4b1e();}
@@ -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_0x255361=a146_0xd416;(function(_0x22a0a9,_0x1466de){const _0x3aba29=a146_0xd416,_0x25103e=_0x22a0a9();while(!![]){try{const _0x4e4f50=-parseInt(_0x3aba29(0x176))/0x1+-parseInt(_0x3aba29(0x163))/0x2*(-parseInt(_0x3aba29(0x18a))/0x3)+-parseInt(_0x3aba29(0x19b))/0x4*(-parseInt(_0x3aba29(0x184))/0x5)+parseInt(_0x3aba29(0x1a8))/0x6+-parseInt(_0x3aba29(0x187))/0x7*(-parseInt(_0x3aba29(0x1ab))/0x8)+parseInt(_0x3aba29(0x1b4))/0x9*(-parseInt(_0x3aba29(0x1c3))/0xa)+-parseInt(_0x3aba29(0x183))/0xb;if(_0x4e4f50===_0x1466de)break;else _0x25103e['push'](_0x25103e['shift']());}catch(_0x5be9db){_0x25103e['push'](_0x25103e['shift']());}}}(a146_0x3cb3,0x48f58));export const CLI_BIN_NAME=a146_0x255361(0x17e);export const CLI_DISPLAY_NAME=a146_0x255361(0x17c);export const NPM_PACKAGE_NAME=a146_0x255361(0x16e);export const GLOBAL_FLAGS=[{'name':a146_0x255361(0x1ad),'meowKey':a146_0x255361(0x1ad),'type':a146_0x255361(0x192),'description':a146_0x255361(0x17d),'hint':'<code>'},{'name':a146_0x255361(0x1bf),'meowKey':a146_0x255361(0x1bf),'type':'string','description':a146_0x255361(0x186),'hint':'<name>'},{'name':'env','meowKey':a146_0x255361(0x1b6),'type':a146_0x255361(0x192),'description':a146_0x255361(0x190),'hint':a146_0x255361(0x175)},{'name':'format','meowKey':'format','type':a146_0x255361(0x192),'description':a146_0x255361(0x172),'hint':a146_0x255361(0x17f)},{'name':'jq','meowKey':'jq','type':'string','description':a146_0x255361(0x1aa),'hint':'<expr>'},{'name':a146_0x255361(0x1a3),'meowKey':a146_0x255361(0x1b3),'type':'boolean','description':'Preview\x20operation\x20without\x20executing'},{'name':'yes','meowKey':a146_0x255361(0x18f),'type':a146_0x255361(0x1b9),'description':'Skip\x20confirmation\x20for\x20high-risk\x20writes'},{'name':'non-interactive','meowKey':'nonInteractive','type':'boolean','description':a146_0x255361(0x191)},{'name':a146_0x255361(0x19a),'meowKey':a146_0x255361(0x19a),'type':a146_0x255361(0x1b9),'description':a146_0x255361(0x171)},{'name':'project','meowKey':a146_0x255361(0x198),'type':'boolean','description':a146_0x255361(0x1c2)},{'name':'ci','meowKey':'ci','type':a146_0x255361(0x1b9),'description':a146_0x255361(0x1ba),'hidden':!![]},{'name':a146_0x255361(0x167),'meowKey':a146_0x255361(0x167),'type':a146_0x255361(0x1b9),'description':a146_0x255361(0x19c)},{'name':a146_0x255361(0x162),'meowKey':a146_0x255361(0x162),'type':a146_0x255361(0x192),'description':'Name','hidden':!![]},{'name':a146_0x255361(0x19e),'meowKey':a146_0x255361(0x19e),'type':'string','description':'Title','hidden':!![]},{'name':a146_0x255361(0x194),'meowKey':a146_0x255361(0x194),'type':a146_0x255361(0x1b9),'description':a146_0x255361(0x16b),'hidden':!![]},{'name':'watch','meowKey':a146_0x255361(0x1a1),'type':a146_0x255361(0x1b9),'description':a146_0x255361(0x1a7),'hidden':!![]},{'name':a146_0x255361(0x174),'meowKey':a146_0x255361(0x174),'type':a146_0x255361(0x192),'description':'Output\x20path','hidden':!![]},{'name':a146_0x255361(0x181),'meowKey':a146_0x255361(0x181),'type':a146_0x255361(0x192),'description':'JSON\x20params','hidden':!![]},{'name':a146_0x255361(0x179),'meowKey':a146_0x255361(0x179),'type':a146_0x255361(0x192),'description':a146_0x255361(0x18d),'hidden':!![]},{'name':a146_0x255361(0x180),'meowKey':a146_0x255361(0x180),'type':a146_0x255361(0x1b9),'description':'Apply\x20to\x20all','hidden':!![]},{'name':a146_0x255361(0x193),'meowKey':a146_0x255361(0x1b8),'type':'boolean','description':a146_0x255361(0x1af),'hidden':!![]},{'name':'id','meowKey':'id','type':a146_0x255361(0x192),'description':a146_0x255361(0x1ac),'hidden':!![]},{'name':a146_0x255361(0x19f),'meowKey':'type','type':a146_0x255361(0x192),'description':'Type\x20filter','hidden':!![]},{'name':a146_0x255361(0x195),'meowKey':'file','type':a146_0x255361(0x192),'description':a146_0x255361(0x1b7),'hidden':!![]},{'name':'sqlcode','meowKey':'sqlcode','type':'string','description':'SQL\x20code','hidden':!![]},{'name':a146_0x255361(0x1a2),'meowKey':a146_0x255361(0x164),'type':a146_0x255361(0x192),'description':a146_0x255361(0x1a9),'hidden':!![]},{'name':a146_0x255361(0x177),'meowKey':a146_0x255361(0x177),'type':a146_0x255361(0x192),'description':'SQL\x20name','hidden':!![]},{'name':a146_0x255361(0x1c5),'meowKey':'dbId','type':a146_0x255361(0x192),'description':'DB\x20ID','hidden':!![]},{'name':'dbid','meowKey':a146_0x255361(0x1c9),'type':'string','description':'DB\x20ID','hidden':!![]},{'name':a146_0x255361(0x16d),'meowKey':'description','type':a146_0x255361(0x192),'description':a146_0x255361(0x1cc),'hidden':!![]},{'name':a146_0x255361(0x178),'meowKey':a146_0x255361(0x170),'type':a146_0x255361(0x192),'description':a146_0x255361(0x1b2),'hidden':!![]},{'name':a146_0x255361(0x1c8),'meowKey':'page','type':'string','description':a146_0x255361(0x1a6),'hidden':!![]},{'name':'pagesize','meowKey':a146_0x255361(0x1a5),'type':a146_0x255361(0x192),'description':'Page\x20size','hidden':!![]},{'name':'keyword','meowKey':a146_0x255361(0x16f),'type':'string','description':a146_0x255361(0x1bb),'hidden':!![]},{'name':'code','meowKey':a146_0x255361(0x1ae),'type':a146_0x255361(0x192),'description':'Code\x20filter','hidden':!![]},{'name':a146_0x255361(0x1bc),'meowKey':a146_0x255361(0x1bc),'type':a146_0x255361(0x192),'description':'SQL\x20string','hidden':!![]},{'name':a146_0x255361(0x1b5),'meowKey':'schemas','type':a146_0x255361(0x192),'description':a146_0x255361(0x1a0),'hidden':!![]},{'name':a146_0x255361(0x189),'meowKey':a146_0x255361(0x189),'type':a146_0x255361(0x192),'description':a146_0x255361(0x1c1),'hidden':!![]},{'name':a146_0x255361(0x188),'meowKey':a146_0x255361(0x188),'type':'string','description':a146_0x255361(0x1bd),'hidden':!![]},{'name':a146_0x255361(0x1c4),'meowKey':a146_0x255361(0x1c0),'type':'boolean','description':a146_0x255361(0x1a4),'hidden':!![]},{'name':'key','meowKey':a146_0x255361(0x1b0),'type':a146_0x255361(0x192),'description':a146_0x255361(0x1b1),'hidden':!![]},{'name':'value','meowKey':a146_0x255361(0x197),'type':'string','description':a146_0x255361(0x1c6),'hidden':!![]},{'name':'tags','meowKey':a146_0x255361(0x196),'type':'string','description':'Tags','hidden':!![]},{'name':'stdin','meowKey':a146_0x255361(0x17a),'type':a146_0x255361(0x1b9),'description':a146_0x255361(0x185),'hidden':!![]},{'name':a146_0x255361(0x166),'meowKey':'fromEnv','type':a146_0x255361(0x192),'description':a146_0x255361(0x1be),'hidden':!![]},{'name':'reveal','meowKey':'reveal','type':a146_0x255361(0x1b9),'description':a146_0x255361(0x19d),'hidden':!![]},{'name':a146_0x255361(0x199),'meowKey':a146_0x255361(0x199),'type':a146_0x255361(0x1b9),'description':'Force\x20overwrite','hidden':!![]},{'name':a146_0x255361(0x182),'meowKey':a146_0x255361(0x182),'type':a146_0x255361(0x1b9),'description':a146_0x255361(0x16c),'hidden':!![]},{'name':a146_0x255361(0x17b),'meowKey':a146_0x255361(0x17b),'type':'boolean','description':'Use\x20remote','hidden':!![]},{'name':a146_0x255361(0x1cd),'meowKey':a146_0x255361(0x1cd),'type':a146_0x255361(0x1b9),'description':'Verbose\x20output','hidden':!![]},{'name':a146_0x255361(0x16a),'meowKey':'expectedCount','type':'string','description':a146_0x255361(0x18e),'hidden':!![]},{'name':a146_0x255361(0x18b),'meowKey':a146_0x255361(0x168),'type':a146_0x255361(0x192),'description':a146_0x255361(0x1c1),'hidden':!![]},{'name':a146_0x255361(0x169),'meowKey':a146_0x255361(0x1cb),'type':a146_0x255361(0x192),'description':a146_0x255361(0x173),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set(['appcode',a146_0x255361(0x1bf),a146_0x255361(0x1b6),'format','jq',a146_0x255361(0x1a3),a146_0x255361(0x18f),a146_0x255361(0x1c7),'ci']);function a146_0x3cb3(){const _0x3486bf=['rabetbase','json\x20|\x20pretty\x20|\x20compress','all','params','confirm','6415035VOltWl','66890GvjPRH','Read\x20value\x20from\x20stdin','Select\x20app\x20profile\x20by\x20name','28GHHgrv','target','operation','3dHizQW','operation-type','meowKey','Dataset\x20code','Expected\x20affected\x20count','yes','Environment','Force\x20non-interactive\x20mode\x20(CI)','string','enable-bff-save','clear','file','tags','value','project','force','global','140BFIqOk','Show\x20help','Reveal\x20sensitive\x20value','title','type','Schemas','watch','sql-name','dry-run','Skip\x20import\x20generation','pagesize','Page\x20number','Watch\x20mode','2144094RIXUQV','SQL\x20name','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','226360gRzAxG','Record\x20ID','appcode','code','Enable\x20BFF\x20save','key','Config\x20key','Description\x20file','dryRun','198171XcgXoo','schemas','env','File\x20path','enableBffSave','boolean','Alias\x20for\x20--non-interactive','Keyword\x20filter','sql','Target\x20path','Read\x20value\x20from\x20environment\x20variable','app','skipImports','Operation\x20type','Use\x20project\x20config\x20scope','10YYNMlS','skip-imports','db-id','Config\x20value','non-interactive','page','dbid','fromEntries','functionNode','Description','verbose','name','440686gFvROT','sqlName','map','from-env','help','operationType','function-node','expected-count','Clear','Confirm\x20destructive\x20action','description','@lovrabet/rabetbase-cli','keyword','descriptionFile','Use\x20global\x20config\x20scope','Output\x20format','Function\x20node','output','production\x20|\x20daily','255058uEZKOl','sqlname','description-file','datasetcode','stdin','remote','Rabetbase\x20CLI','Override\x20appcode'];a146_0x3cb3=function(){return _0x3486bf;};return a146_0x3cb3();}function a146_0xd416(_0x23be3e,_0x412caa){_0x23be3e=_0x23be3e-0x162;const _0x3cb3f0=a146_0x3cb3();let _0xd4160d=_0x3cb3f0[_0x23be3e];return _0xd4160d;}export function buildMeowFlags(){const _0x23a20b=a146_0x255361;return Object[_0x23a20b(0x1ca)](GLOBAL_FLAGS[_0x23a20b(0x165)](_0x26a3a7=>[_0x26a3a7[_0x23a20b(0x18c)],{'type':_0x26a3a7[_0x23a20b(0x19f)]}]));}
@@ -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_0x5ce00b=a147_0x4323;(function(_0x588002,_0x361ac0){const _0x481bb1=a147_0x4323,_0x43cf3d=_0x588002();while(!![]){try{const _0x1a0919=parseInt(_0x481bb1(0xfc))/0x1+parseInt(_0x481bb1(0xf5))/0x2*(parseInt(_0x481bb1(0xfd))/0x3)+parseInt(_0x481bb1(0xf3))/0x4*(parseInt(_0x481bb1(0xf8))/0x5)+-parseInt(_0x481bb1(0xf9))/0x6+parseInt(_0x481bb1(0xf4))/0x7*(parseInt(_0x481bb1(0xf6))/0x8)+-parseInt(_0x481bb1(0xff))/0x9*(-parseInt(_0x481bb1(0x100))/0xa)+-parseInt(_0x481bb1(0x101))/0xb*(parseInt(_0x481bb1(0xfa))/0xc);if(_0x1a0919===_0x361ac0)break;else _0x43cf3d['push'](_0x43cf3d['shift']());}catch(_0x5661a6){_0x43cf3d['push'](_0x43cf3d['shift']());}}}(a147_0x4cbb,0xd6230));import{DEFAULT_API_DIR}from'../constant/paths.js';export const DEFAULT_CONFIG_VALUES={'env':a147_0x5ce00b(0xfb),'format':a147_0x5ce00b(0xfe),'locale':a147_0x5ce00b(0xf7),'riskLevel':a147_0x5ce00b(0x102),'apiDir':DEFAULT_API_DIR};function a147_0x4323(_0x1506ba,_0x247764){_0x1506ba=_0x1506ba-0xf3;const _0x4cbbde=a147_0x4cbb();let _0x432322=_0x4cbbde[_0x1506ba];return _0x432322;}export const DEFAULT_COMMAND_OUTPUT_FORMAT='compress';function a147_0x4cbb(){const _0xb1ed45=['production','392276FjApAo','54132PAAGTt','compress','9iiMenh','10836530NfgVsw','66XFyJgd','high-risk-write','124JXTEZY','29687EIAplV','122lXCLAd','712mUXxPl','en-US','115530cUoLVi','4055748HAdRDQ','4234572dwmUfE'];a147_0x4cbb=function(){return _0xb1ed45;};return a147_0x4cbb();}
@@ -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
+ function a148_0x3062(_0x521014,_0x3469e0){_0x521014=_0x521014-0x7e;const _0x2c3ef8=a148_0x2c3e();let _0x306252=_0x2c3ef8[_0x521014];return _0x306252;}const a148_0x38a33f=a148_0x3062;(function(_0x1da21e,_0x362043){const _0x511d2f=a148_0x3062,_0x1ca62b=_0x1da21e();while(!![]){try{const _0x270c9b=-parseInt(_0x511d2f(0x89))/0x1+parseInt(_0x511d2f(0x8c))/0x2+-parseInt(_0x511d2f(0x80))/0x3*(-parseInt(_0x511d2f(0x90))/0x4)+parseInt(_0x511d2f(0x86))/0x5+-parseInt(_0x511d2f(0x94))/0x6*(-parseInt(_0x511d2f(0x92))/0x7)+-parseInt(_0x511d2f(0x91))/0x8+parseInt(_0x511d2f(0x8b))/0x9*(-parseInt(_0x511d2f(0x93))/0xa);if(_0x270c9b===_0x362043)break;else _0x1ca62b['push'](_0x1ca62b['shift']());}catch(_0x4a2aec){_0x1ca62b['push'](_0x1ca62b['shift']());}}}(a148_0x2c3e,0xadc2c));import{getEnv,isProduction}from'../constant/env.js';let customApiDomain,customUserDomain,customRuntimeDomain;export function initDomains(_0x4add57){const _0x4d4023=a148_0x3062;customApiDomain=_0x4add57?.[_0x4d4023(0x85)],customUserDomain=_0x4add57?.[_0x4d4023(0x82)],customRuntimeDomain=_0x4add57?.[_0x4d4023(0x8e)];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?a148_0x38a33f(0x8f):a148_0x38a33f(0x84));export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?'https://api.lovrabet.com':a148_0x38a33f(0x83));function a148_0x2c3e(){const _0x5d57a9=['apiDomain','185935cEBgRY','https://daily.lovrabet.com','/web-app/app/','603381PLPtfR','https://runtime.lovrabet.com','18BZgrSt','2586358PGXhYr','https://daily-runtime.lovrabet.com','runtimeDomain','https://user.lovrabet.com','926396uzpbqz','6362096kRJZHK','721HDrrDn','9332510SCCXQQ','73218iwOWxz','https://app.lovrabet.com','/app/','18KUayHW','trim','userDomain','https://daily-api.lovrabet.com','https://user-daily.lovrabet.com'];a148_0x2c3e=function(){return _0x5d57a9;};return a148_0x2c3e();}export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?a148_0x38a33f(0x8a):a148_0x38a33f(0x8d));export const getAppDomain=()=>isProduction(getEnv())?a148_0x38a33f(0x7e):a148_0x38a33f(0x87);export const getAppBaseUrl=_0x35b504=>{const _0x485432=a148_0x38a33f,_0x52c391=encodeURIComponent(_0x35b504[_0x485432(0x81)]());return isProduction(getEnv())?getAppDomain()+_0x485432(0x7f)+_0x52c391:getAppDomain()+_0x485432(0x88)+_0x52c391;};
@@ -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_0x35e9c7=a149_0x1d0b;function a149_0x3d0e(){const _0x1b1106=['7bwAxWe','online','2700036apoLRk','12XfoKOp','789535GXXSiD','daily','production','2453589YUQOxQ','5615656TXAtXN','400514JWIEsa','dev','2337408jQkQDr','333483mPlCPJ'];a149_0x3d0e=function(){return _0x1b1106;};return a149_0x3d0e();}(function(_0xde62ad,_0x545eda){const _0x17febc=a149_0x1d0b,_0x121bcb=_0xde62ad();while(!![]){try{const _0x19f240=parseInt(_0x17febc(0x114))/0x1+-parseInt(_0x17febc(0x111))/0x2+parseInt(_0x17febc(0x113))/0x3+-parseInt(_0x17febc(0x10b))/0x4*(parseInt(_0x17febc(0x10c))/0x5)+parseInt(_0x17febc(0x117))/0x6+parseInt(_0x17febc(0x115))/0x7*(-parseInt(_0x17febc(0x110))/0x8)+parseInt(_0x17febc(0x10f))/0x9;if(_0x19f240===_0x545eda)break;else _0x121bcb['push'](_0x121bcb['shift']());}catch(_0xdd2ae5){_0x121bcb['push'](_0x121bcb['shift']());}}}(a149_0x3d0e,0x7022f));export const RABETBASE_ENV_VALUES=['production',a149_0x35e9c7(0x10d)];export function normalizeEnv(_0x46e94c){const _0x37d7c9=a149_0x35e9c7;return _0x46e94c===_0x37d7c9(0x116)?'production':_0x46e94c;}export function isProduction(_0x68e263){return normalizeEnv(_0x68e263)==='production';}export function isDaily(_0x1c961c){const _0x3a6e27=a149_0x35e9c7;return normalizeEnv(_0x1c961c)===_0x3a6e27(0x10d);}export function isDev(_0x41f0bc){const _0x39b577=a149_0x35e9c7,_0x40e5f6=normalizeEnv(_0x41f0bc);return _0x40e5f6==='development'||_0x40e5f6===_0x39b577(0x112);}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||a149_0x35e9c7(0x10e));export function getEnv(){return env;}function a149_0x1d0b(_0x4e14c0,_0x4d634){_0x4e14c0=_0x4e14c0-0x10b;const _0x3d0ef8=a149_0x3d0e();let _0x1d0b88=_0x3d0ef8[_0x4e14c0];return _0x1d0b88;}export function initEnv(_0x5b2e9e){env=normalizeEnv(_0x5b2e9e);}
@@ -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
+ function a150_0x5cc9(_0x1d24ce,_0x476049){_0x1d24ce=_0x1d24ce-0x162;const _0x45b3da=a150_0x45b3();let _0x5cc960=_0x45b3da[_0x1d24ce];return _0x5cc960;}const a150_0x51c7cb=a150_0x5cc9;(function(_0x13df38,_0x382570){const _0x18e20b=a150_0x5cc9,_0x3d13e9=_0x13df38();while(!![]){try{const _0x43dd1f=-parseInt(_0x18e20b(0x16c))/0x1*(-parseInt(_0x18e20b(0x168))/0x2)+-parseInt(_0x18e20b(0x16f))/0x3*(parseInt(_0x18e20b(0x162))/0x4)+parseInt(_0x18e20b(0x16d))/0x5+parseInt(_0x18e20b(0x163))/0x6+parseInt(_0x18e20b(0x167))/0x7*(parseInt(_0x18e20b(0x165))/0x8)+-parseInt(_0x18e20b(0x16b))/0x9*(parseInt(_0x18e20b(0x16a))/0xa)+-parseInt(_0x18e20b(0x169))/0xb;if(_0x43dd1f===_0x382570)break;else _0x3d13e9['push'](_0x3d13e9['shift']());}catch(_0x498679){_0x3d13e9['push'](_0x3d13e9['shift']());}}}(a150_0x45b3,0x46488));export const RABETBASE_OUTPUT_FORMAT_VALUES=[a150_0x51c7cb(0x164),a150_0x51c7cb(0x166),a150_0x51c7cb(0x16e)];function a150_0x45b3(){const _0x3196ad=['11341253qCDVyj','50AesWBw','805896hJoHWG','19JBDxBW','2845250ejiliB','compress','3wVUowa','54980kXvYtO','1346904ZcwnMR','json','1528sdAwGF','pretty','17241gOfCUf','54358FaBTto'];a150_0x45b3=function(){return _0x3196ad;};return a150_0x45b3();}
@@ -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_0x3f4b(_0x5e34a5,_0x120841){_0x5e34a5=_0x5e34a5-0x106;const _0x3a40f0=a151_0x3a40();let _0x3f4b02=_0x3a40f0[_0x5e34a5];return _0x3f4b02;}(function(_0x1961b3,_0x2e0b85){const _0x1a09ac=a151_0x3f4b,_0x50789f=_0x1961b3();while(!![]){try{const _0x22018c=-parseInt(_0x1a09ac(0x10d))/0x1+parseInt(_0x1a09ac(0x106))/0x2*(parseInt(_0x1a09ac(0x108))/0x3)+parseInt(_0x1a09ac(0x10b))/0x4*(parseInt(_0x1a09ac(0x10f))/0x5)+-parseInt(_0x1a09ac(0x107))/0x6+-parseInt(_0x1a09ac(0x109))/0x7*(-parseInt(_0x1a09ac(0x10e))/0x8)+parseInt(_0x1a09ac(0x10a))/0x9+parseInt(_0x1a09ac(0x10c))/0xa;if(_0x22018c===_0x2e0b85)break;else _0x50789f['push'](_0x50789f['shift']());}catch(_0x5665db){_0x50789f['push'](_0x50789f['shift']());}}}(a151_0x3a40,0x2d517));export const DEFAULT_API_DIR='./src/api';function a151_0x3a40(){const _0x16a7ca=['194380qbLmaC','8WJTIFV','415GFesQw','174730fKXBvn','1830192KgjrLn','3LvZDaQ','441091QMRJAT','2724948UADyhm','884GWWbUR','2135420edkNvd'];a151_0x3a40=function(){return _0x16a7ca;};return a151_0x3a40();}
@@ -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_0x412927=a152_0x2fe1;function a152_0x2fe1(_0x36f823,_0xffd597){_0x36f823=_0x36f823-0xfd;const _0x374db8=a152_0x374d();let _0x2fe1d1=_0x374db8[_0x36f823];return _0x2fe1d1;}(function(_0x383c3b,_0x5d4fcb){const _0x2a78ae=a152_0x2fe1,_0x346048=_0x383c3b();while(!![]){try{const _0x3c8258=parseInt(_0x2a78ae(0x103))/0x1+parseInt(_0x2a78ae(0x107))/0x2*(parseInt(_0x2a78ae(0x109))/0x3)+parseInt(_0x2a78ae(0x10a))/0x4*(parseInt(_0x2a78ae(0x104))/0x5)+parseInt(_0x2a78ae(0x100))/0x6*(-parseInt(_0x2a78ae(0x105))/0x7)+-parseInt(_0x2a78ae(0x106))/0x8*(parseInt(_0x2a78ae(0xff))/0x9)+parseInt(_0x2a78ae(0x108))/0xa+-parseInt(_0x2a78ae(0xfd))/0xb*(parseInt(_0x2a78ae(0xfe))/0xc);if(_0x3c8258===_0x5d4fcb)break;else _0x346048['push'](_0x346048['shift']());}catch(_0x4c150b){_0x346048['push'](_0x346048['shift']());}}}(a152_0x374d,0x1ff34));export const RISK_LEVEL_VALUES=[a152_0x412927(0x101),a152_0x412927(0x10b),a152_0x412927(0x102)];function a152_0x374d(){const _0x582352=['411768vQMNJE','436CNyIpT','1440510lUYRKI','189rDweyL','44WhWNIP','write','78738HGpQVM','36zbdtjG','45BSqOlo','253662WkJMiU','read','high-risk-write','181007mCLuof','89880yogwWe','21JTZRXh'];a152_0x374d=function(){return _0x582352;};return a152_0x374d();}
@@ -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 a153_0x3eaf(_0x4b57fb,_0x34653c){_0x4b57fb=_0x4b57fb-0x17a;const _0x95017d=a153_0x9501();let _0x3eaf8a=_0x95017d[_0x4b57fb];return _0x3eaf8a;}(function(_0xaea3d7,_0x577019){const _0x350b52=a153_0x3eaf,_0x3b594e=_0xaea3d7();while(!![]){try{const _0x2ff018=parseInt(_0x350b52(0x17c))/0x1*(-parseInt(_0x350b52(0x19d))/0x2)+parseInt(_0x350b52(0x18b))/0x3+parseInt(_0x350b52(0x184))/0x4*(-parseInt(_0x350b52(0x17b))/0x5)+parseInt(_0x350b52(0x18c))/0x6*(-parseInt(_0x350b52(0x17a))/0x7)+-parseInt(_0x350b52(0x193))/0x8+-parseInt(_0x350b52(0x19e))/0x9+parseInt(_0x350b52(0x195))/0xa*(parseInt(_0x350b52(0x186))/0xb);if(_0x2ff018===_0x577019)break;else _0x3b594e['push'](_0x3b594e['shift']());}catch(_0x4a15bf){_0x3b594e['push'](_0x3b594e['shift']());}}}(a153_0x9501,0x70eb5));function a153_0x9501(){const _0x193a1f=['true','10930ddjDvY','apps','maxRisk','appcode','length','find','defaultApp','apiDir','58gkkvhC','5213682tTPVFN','format','production','trim','read','1750qtrqhD','93025JCzKtH','24162ZAFCxS','env','app','string','COOKIE','inherit','pageSize','ACCESS_KEY','72tJtqxW','write','25036eNevYP','MAX_RISK','RISK_LEVEL','cookie','object','1016307JEHphW','16890RBFims','riskLevel','keys','locale','entries','APP','projectConfig','362272uLaWYb'];a153_0x9501=function(){return _0x193a1f;};return a153_0x9501();}import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{isDaily,normalizeEnv}from'../constant/env.js';import{normalizeLegacyOutputFormat}from'../framework/types.js';function stringConfigValue(_0x40afca){const _0x19834a=a153_0x3eaf;return typeof _0x40afca==='string'&&_0x40afca[_0x19834a(0x1a1)]()?_0x40afca[_0x19834a(0x1a1)]():undefined;}function appProfiles(_0x49622c){const _0x44c0bb=a153_0x3eaf;return _0x49622c[_0x44c0bb(0x196)]&&typeof _0x49622c['apps']===_0x44c0bb(0x18a)?_0x49622c['apps']:{};}function resolveDefaultAppName(_0x18711d){const _0x5bff66=a153_0x3eaf,_0x1b5f72=stringConfigValue(_0x18711d[_0x5bff66(0x19b)]);if(_0x1b5f72)return _0x1b5f72;return Object['keys'](appProfiles(_0x18711d))[0x0];}function resolveTopLevelAppCode(_0xf9b469){const _0x4e7d25=a153_0x3eaf;return stringConfigValue(_0xf9b469[_0x4e7d25(0x198)])||stringConfigValue(_0xf9b469[_0x4e7d25(0x17e)]);}export function resolveAppConfig({raw:_0x2595e1,flags:_0x3e7cbf,layers:_0x251c7e,readEnv:_0x3de3ca}){const _0x500459=a153_0x3eaf,_0x40cc05=_0x251c7e?.[_0x500459(0x192)]??{},_0x14c621=_0x251c7e?.['globalConfig']??{},_0x2cbd69=Object[_0x500459(0x18e)](_0x40cc05)[_0x500459(0x199)]>0x0,_0x26f8e=!_0x2cbd69||_0x40cc05[_0x500459(0x181)]===!![],_0x48aa50=_0x2cbd69?resolveDefaultAppName(_0x40cc05):undefined,_0x21bee4=_0x26f8e?resolveDefaultAppName(_0x14c621):undefined,_0x1e78f0=stringConfigValue(_0x3e7cbf['app']),_0x31b3ce=_0x3de3ca(_0x500459(0x191)),_0x40c19d={};if(_0x2595e1[_0x500459(0x196)]&&typeof _0x2595e1['apps']===_0x500459(0x18a))for(const [_0x442412,_0x31d31e]of Object[_0x500459(0x190)](_0x2595e1[_0x500459(0x196)])){_0x31d31e&&typeof _0x31d31e===_0x500459(0x18a)&&_0x31d31e[_0x500459(0x198)]&&(_0x40c19d[_0x442412]=_0x31d31e);}const _0x503594=_0x2595e1['defaultApp']||undefined,_0xa07816=Object[_0x500459(0x18e)](_0x40c19d)[_0x500459(0x199)]>0x0,_0x4ca12b=_0x1e78f0||_0x48aa50||_0x31b3ce||_0x21bee4||_0x503594||undefined,_0x332b08=stringConfigValue(_0x3e7cbf[_0x500459(0x198)]),_0x2cc00e=_0x332b08?Object['entries'](_0x40c19d)[_0x500459(0x19a)](([,_0x335108])=>_0x335108?.[_0x500459(0x198)]===_0x332b08):undefined,_0x4d660a=_0x2cc00e?.[0x0],_0x197c37=_0x2cc00e?.[0x1],_0x1f6426=_0x332b08?_0x4d660a:_0x4ca12b;let _0x1f99a=_0x1f6426&&_0x40c19d[_0x1f6426]?_0x40c19d[_0x1f6426]:undefined;_0x332b08&&_0x197c37&&(_0x1f99a=_0x197c37);const _0x4077dd=_0x332b08?_0x197c37??_0x1f99a:_0x1f99a,_0x458570=!_0x1e78f0&&!_0x48aa50&&_0x31b3ce&&_0x1f6426===_0x31b3ce,_0x188211=_0x1e78f0||(_0x458570?_0x31b3ce:undefined)||(_0x332b08?_0x4d660a:undefined),_0x52b71a=_0x4077dd?.[_0x500459(0x198)],_0x315bc5=_0x2cbd69?resolveTopLevelAppCode(_0x40cc05):undefined,_0x5ac079=_0x26f8e?resolveTopLevelAppCode(_0x14c621):undefined,_0x4a80c4=_0x1e78f0||_0x48aa50?_0x52b71a:undefined,_0x3486b6=!_0x1e78f0&&!_0x48aa50?_0x52b71a:undefined,_0x38b0c8=_0x332b08||_0x4a80c4||_0x315bc5||_0x3486b6||_0x5ac079||undefined,_0x545d54=_0x2cbd69?stringConfigValue(_0x40cc05[_0x500459(0x17d)]):undefined,_0x23ae5d=_0x26f8e?stringConfigValue(_0x14c621[_0x500459(0x17d)]):undefined,_0x5da844=_0x3e7cbf[_0x500459(0x17d)]||_0x4077dd?.[_0x500459(0x17d)]||_0x545d54||_0x3de3ca('ENV')||_0x23ae5d||_0x2595e1[_0x500459(0x17d)]||DEFAULT_CONFIG_VALUES[_0x500459(0x17d)],_0x2cad57=_0x4077dd?.[_0x500459(0x18f)]||_0x2595e1[_0x500459(0x18f)]||DEFAULT_CONFIG_VALUES[_0x500459(0x18f)],_0x1273b1=_0x3de3ca(_0x500459(0x180))||_0x4077dd?.[_0x500459(0x189)]||_0x2595e1[_0x500459(0x189)]||undefined,_0x515b9c=_0x3de3ca(_0x500459(0x183))||_0x4077dd?.['accessKey']||_0x2595e1['accessKey']||undefined,_0x3c48c8=_0x3e7cbf[_0x500459(0x19f)]||_0x3de3ca('FORMAT')||_0x4077dd?.[_0x500459(0x19f)]||_0x2595e1[_0x500459(0x19f)],_0x2070a3=normalizeLegacyOutputFormat(_0x3c48c8),_0x13dd82=_0x3de3ca('PAGE_SIZE')||_0x4077dd?.['pageSize']||_0x2595e1[_0x500459(0x182)],_0x5c8574=_0x13dd82?Number(_0x13dd82)||undefined:undefined,_0x1bf04d=_0x3de3ca(_0x500459(0x188))||_0x3de3ca(_0x500459(0x187))||_0x4077dd?.[_0x500459(0x18d)]||_0x2595e1[_0x500459(0x18d)]||_0x2595e1[_0x500459(0x197)],_0x5533ae=_0x1bf04d===_0x500459(0x1a2)||_0x1bf04d===_0x500459(0x185)?_0x1bf04d:DEFAULT_CONFIG_VALUES[_0x500459(0x18d)],_0x331465=_0x3de3ca('VERBOSE'),_0x1ac2c1=_0x331465==='1'||_0x331465===_0x500459(0x194),_0x16cbea=_0x4077dd?.[_0x500459(0x19c)]||_0x2595e1['apiDir']||DEFAULT_CONFIG_VALUES[_0x500459(0x19c)],_0x26ec1c=isDaily(normalizeEnv(String(_0x5da844)))?'daily':_0x500459(0x1a0);return{'appCode':typeof _0x38b0c8===_0x500459(0x17f)&&_0x38b0c8[_0x500459(0x1a1)]()?_0x38b0c8[_0x500459(0x1a1)]():undefined,'env':_0x26ec1c,'locale':_0x2cad57,'cookie':_0x1273b1,'accessKey':_0x515b9c,'format':_0x2070a3,'pageSize':_0x5c8574,'riskLevel':_0x5533ae,'verbose':_0x1ac2c1,'apiDir':_0x16cbea,'apps':_0x40c19d,'defaultApp':_0x503594,'currentApp':_0xa07816?_0x1f6426:undefined,'explicitAppName':_0x188211};}
@@ -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(_0x18dc33,_0x46ec4b){const _0x24c07d=a154_0x303a,_0xa71c9d=_0x18dc33();while(!![]){try{const _0x270875=-parseInt(_0x24c07d(0x16d))/0x1*(parseInt(_0x24c07d(0x16e))/0x2)+parseInt(_0x24c07d(0x175))/0x3*(parseInt(_0x24c07d(0x16f))/0x4)+-parseInt(_0x24c07d(0x170))/0x5*(-parseInt(_0x24c07d(0x16b))/0x6)+parseInt(_0x24c07d(0x171))/0x7+parseInt(_0x24c07d(0x172))/0x8*(-parseInt(_0x24c07d(0x173))/0x9)+-parseInt(_0x24c07d(0x174))/0xa+parseInt(_0x24c07d(0x16a))/0xb;if(_0x270875===_0x46ec4b)break;else _0xa71c9d['push'](_0xa71c9d['shift']());}catch(_0x360a56){_0xa71c9d['push'](_0xa71c9d['shift']());}}}(a154_0x491e,0xbbb89));import{getIsSessionValid}from'../auth/is-session-valid.js';import{CliErrors}from'../errors.js';function a154_0x303a(_0x3ee9c2,_0x4c041f){_0x3ee9c2=_0x3ee9c2-0x16a;const _0x491edd=a154_0x491e();let _0x303a7f=_0x491edd[_0x3ee9c2];return _0x303a7f;}function a154_0x491e(){const _0x1eba50=['24dgeObk','3735099CQJzso','9064140IjXvtI','1873239BbPgDA','32926850RTtGHR','56226krHquJ','../auth/get-cookie.js','52bqNLpj','48232ezghAi','4BsrDMK','265mfsxQu','419706DDhmMg'];a154_0x491e=function(){return _0x1eba50;};return a154_0x491e();}export async function buildAuth(_0xab5634){const _0x1ce1ff=a154_0x303a,{getCookie:_0x4dead9}=await import(_0x1ce1ff(0x16c)),_0x2cd193=_0xab5634['cookie']||_0x4dead9(),_0x4c8501=_0x2cd193?await getIsSessionValid():![];return{'cookie':_0x2cd193,'isLoggedIn':_0x4c8501,async 'getOrLogin'(){if(_0x2cd193&&_0x4c8501)return _0x2cd193;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_0x1100e7=a155_0x4432;(function(_0x43bfdb,_0x4b8b2f){const _0xddfb11=a155_0x4432,_0x5ab186=_0x43bfdb();while(!![]){try{const _0x8549bb=-parseInt(_0xddfb11(0xe6))/0x1+parseInt(_0xddfb11(0xf5))/0x2+-parseInt(_0xddfb11(0xcd))/0x3*(-parseInt(_0xddfb11(0xcc))/0x4)+parseInt(_0xddfb11(0xd5))/0x5+parseInt(_0xddfb11(0xed))/0x6*(parseInt(_0xddfb11(0xe3))/0x7)+-parseInt(_0xddfb11(0xe7))/0x8*(parseInt(_0xddfb11(0xcb))/0x9)+-parseInt(_0xddfb11(0xd3))/0xa*(parseInt(_0xddfb11(0xd1))/0xb);if(_0x8549bb===_0x4b8b2f)break;else _0x5ab186['push'](_0x5ab186['shift']());}catch(_0x40c870){_0x5ab186['push'](_0x5ab186['shift']());}}}(a155_0x1f21,0xe9c08));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=a155_0x1100e7(0xc5);export const CONFIG_NAMES=[a155_0x1100e7(0xc5),a155_0x1100e7(0xf4),a155_0x1100e7(0xee)];export const LEGACY_CONFIG_NAMES=CONFIG_NAMES[a155_0x1100e7(0xe2)](_0x1c8461=>_0x1c8461!==NEW_CONFIG_NAME);const normalizedWriteCache=new Map();export function resolveConfigPath(_0x30c04b){for(const _0x4b771c of CONFIG_NAMES){const _0x2f4438=resolve(_0x30c04b,_0x4b771c);if(existsSync(_0x2f4438))return _0x2f4438;}return undefined;}export function findProjectRootDirectory(_0x3535fb=process[a155_0x1100e7(0xc8)]()){let _0x65cb0a=resolve(_0x3535fb);const {root:_0x546297}=parse(_0x65cb0a),_0xc53f47=homedir();while(!![]){if(resolveConfigPath(_0x65cb0a)){if(_0x65cb0a===_0xc53f47)break;return _0x65cb0a;}if(_0x65cb0a===_0x546297||_0x65cb0a===_0xc53f47)break;const _0x3fec81=dirname(_0x65cb0a);if(_0x3fec81===_0x65cb0a)break;_0x65cb0a=_0x3fec81;}return resolve(_0x3535fb);}export function getProjectConfigPath(){const _0x2ed1af=a155_0x1100e7;return resolveConfigPath(process[_0x2ed1af(0xc8)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function isInProject(){return!!getProjectConfigPath();}export function inspectCliConfigJsonFile(_0x277705){const _0x59b73b=a155_0x1100e7;if(!existsSync(_0x277705))return{'status':_0x59b73b(0xc7)};try{const _0xbeac9d=readFileSync(_0x277705,{'encoding':_0x59b73b(0xcf)});if(!_0xbeac9d?.[_0x59b73b(0xe8)]())return{'status':'empty'};const _0x234406=JSON[_0x59b73b(0xf0)](_0xbeac9d);return{'status':'ok','data':_0x234406};}catch(_0x52c458){return{'status':'error','message':_0x52c458 instanceof Error?_0x52c458[_0x59b73b(0xf1)]:String(_0x52c458)};}}function parseCliConfigJsonFile(_0x3cb140,_0x448dbc,_0x40f68f){const _0x1c1e2d=a155_0x1100e7,_0x475fab=inspectCliConfigJsonFile(_0x3cb140);if(_0x475fab['status']===_0x1c1e2d(0xc7)||_0x475fab[_0x1c1e2d(0xce)]===_0x1c1e2d(0xdb))return{};if(_0x475fab[_0x1c1e2d(0xce)]==='ok')return _0x475fab[_0x1c1e2d(0xd4)];return _0x448dbc===_0x1c1e2d(0xca)&&_0x40f68f&&console[_0x1c1e2d(0xef)](CLI_BIN_NAME+':\x20'+_0x40f68f+'\x20config\x20file\x20ignored\x20(invalid\x20JSON\x20or\x20unreadable):\x20'+_0x3cb140+_0x1c1e2d(0xe5)+_0x475fab[_0x1c1e2d(0xf1)]),{};}function normalizeLegacyConfigShape(_0x7d5094){const _0x5c2828=a155_0x1100e7;if(!_0x7d5094||typeof _0x7d5094!==_0x5c2828(0xdf))return{'config':{},'migrated':![]};const _0x937662={..._0x7d5094},_0x321a5c=_0x937662['apps']&&typeof _0x937662['apps']===_0x5c2828(0xdf)?{..._0x937662['apps']}:{},_0x5b129b=Object['keys'](_0x321a5c)['length'],_0x363822=_0x937662[_0x5c2828(0xc4)]||_0x937662['app'];let _0x28346e=![];if(_0x363822&&_0x5b129b===0x0){const _0x3c3453=typeof _0x937662[_0x5c2828(0xeb)]==='string'&&_0x937662['defaultApp']['trim']()?_0x937662[_0x5c2828(0xeb)]:String(_0x363822)['trim']();_0x321a5c[_0x3c3453]={'appcode':String(_0x363822)[_0x5c2828(0xe8)](),..._0x937662['env']!=null?{'env':_0x937662[_0x5c2828(0xd6)]}:{},..._0x937662[_0x5c2828(0xd9)]!=null?{'apiDir':_0x937662[_0x5c2828(0xd9)]}:{},..._0x937662[_0x5c2828(0xdd)]!=null?{'cookie':_0x937662[_0x5c2828(0xdd)]}:{},..._0x937662[_0x5c2828(0xd0)]!=null?{'accessKey':_0x937662[_0x5c2828(0xd0)]}:{},..._0x937662[_0x5c2828(0xe1)]!=null?{'format':_0x937662[_0x5c2828(0xe1)]}:{},..._0x937662[_0x5c2828(0xd8)]!=null?{'pageSize':_0x937662[_0x5c2828(0xd8)]}:{},..._0x937662[_0x5c2828(0xf2)]!=null?{'riskLevel':_0x937662[_0x5c2828(0xf2)]}:{},..._0x937662['locale']!=null?{'locale':_0x937662[_0x5c2828(0xc6)]}:{}},_0x937662['apps']=_0x321a5c;if(!_0x937662[_0x5c2828(0xeb)])_0x937662[_0x5c2828(0xeb)]=_0x3c3453;_0x28346e=!![];}return(_0x5c2828(0xc4)in _0x937662||_0x5c2828(0xde)in _0x937662)&&(delete _0x937662[_0x5c2828(0xc4)],delete _0x937662[_0x5c2828(0xde)],_0x28346e=!![]),{'config':_0x937662,'migrated':_0x28346e};}function writeNormalizedConfigIfNeeded(_0x518762,_0x30a67d){const _0x5203ee=a155_0x1100e7,_0xbbce20=JSON[_0x5203ee(0xc9)](_0x30a67d,null,0x2)+'\x0a';if(normalizedWriteCache[_0x5203ee(0xc3)](_0x518762)===_0xbbce20)return;writeConfigFile(_0x518762,_0x30a67d),normalizedWriteCache[_0x5203ee(0xec)](_0x518762,_0xbbce20);}function parseAndNormalizeConfig(_0x416382,_0x2a2c95,_0xd53146){const _0x4e2613=a155_0x1100e7,_0x76f715=parseCliConfigJsonFile(_0x416382,_0x2a2c95,_0xd53146),_0x15046b=normalizeLegacyConfigShape(_0x76f715);if(_0x15046b[_0x4e2613(0xd7)])try{writeNormalizedConfigIfNeeded(_0x416382,_0x15046b[_0x4e2613(0xd2)]);}catch{}return _0x15046b[_0x4e2613(0xd2)];}export function loadRawConfigLayers(_0x58d225){const _0x5ba699=a155_0x1100e7;let _0xf90cee={},_0x3b7860={};const _0x8abe6a=resolveConfigPath(homedir());_0x8abe6a&&(_0xf90cee=parseAndNormalizeConfig(_0x8abe6a,'warn','Global'));const _0x99323f=_0x58d225??findProjectRootDirectory(),_0x33f61f=resolveConfigPath(_0x99323f);return _0x33f61f&&(_0x3b7860=parseAndNormalizeConfig(_0x33f61f,_0x5ba699(0xca),_0x5ba699(0xdc))),{'globalPath':_0x8abe6a,'projectPath':_0x33f61f,'globalConfig':_0xf90cee,'projectConfig':_0x3b7860};}const INHERIT_WHITELIST=[a155_0x1100e7(0xdd),'accessKey',a155_0x1100e7(0xc6),a155_0x1100e7(0xe1),a155_0x1100e7(0xf2),a155_0x1100e7(0xd8)];function a155_0x4432(_0x341d06,_0x3139d5){_0x341d06=_0x341d06-0xc3;const _0x1f213b=a155_0x1f21();let _0x443238=_0x1f213b[_0x341d06];return _0x443238;}export function mergeRawConfigLayers(_0x59219e){const _0x56ae9d=a155_0x1100e7,{globalConfig:_0x708688,projectConfig:_0x2b1dc5}=_0x59219e,_0x51d482=Object[_0x56ae9d(0xf3)](_0x2b1dc5)[_0x56ae9d(0xda)]>0x0;if(!_0x51d482)return mergeGlobalOnly(_0x708688);if(_0x2b1dc5['inherit']===!![])return mergeFullInherit(_0x708688,_0x2b1dc5);if(_0x2b1dc5[_0x56ae9d(0xea)]===![])return mergeIsolated(_0x2b1dc5);return mergeProjectFirst(_0x708688,_0x2b1dc5);}function mergeGlobalOnly(_0x5412f6){const _0x26e593=a155_0x1100e7,_0x20919a={..._0x5412f6},_0x51963f=_0x5412f6['apps']&&typeof _0x5412f6[_0x26e593(0xe0)]===_0x26e593(0xdf)?_0x5412f6[_0x26e593(0xe0)]:{};if(Object[_0x26e593(0xf3)](_0x51963f)['length']>0x0)_0x20919a[_0x26e593(0xe0)]=_0x51963f;if(_0x5412f6[_0x26e593(0xeb)])_0x20919a[_0x26e593(0xeb)]=_0x5412f6['defaultApp'];else{const _0x4000c1=Object[_0x26e593(0xf3)](_0x51963f);if(_0x4000c1[_0x26e593(0xda)]>0x0)_0x20919a[_0x26e593(0xeb)]=_0x4000c1[0x0];}return _0x20919a;}function mergeIsolated(_0x1b5429){const _0x53f7c0=a155_0x1100e7,_0x31a0c1={..._0x1b5429};delete _0x31a0c1[_0x53f7c0(0xea)];const _0x29c659=_0x1b5429[_0x53f7c0(0xe0)]&&typeof _0x1b5429[_0x53f7c0(0xe0)]===_0x53f7c0(0xdf)?_0x1b5429[_0x53f7c0(0xe0)]:{};Object[_0x53f7c0(0xf3)](_0x29c659)[_0x53f7c0(0xda)]>0x0?_0x31a0c1['apps']=_0x29c659:delete _0x31a0c1['apps'];if(_0x53f7c0(0xeb)in _0x1b5429)_0x31a0c1[_0x53f7c0(0xeb)]=_0x1b5429[_0x53f7c0(0xeb)];else Object['keys'](_0x29c659)['length']>0x0?_0x31a0c1[_0x53f7c0(0xeb)]=Object['keys'](_0x29c659)[0x0]:delete _0x31a0c1[_0x53f7c0(0xeb)];return _0x31a0c1;}function mergeProjectFirst(_0x31bc15,_0x1ecab7){const _0x14823f=a155_0x1100e7,_0x3ed52b={..._0x1ecab7};delete _0x3ed52b['inherit'];for(const _0x4e7956 of INHERIT_WHITELIST){!(_0x4e7956 in _0x3ed52b)&&_0x4e7956 in _0x31bc15&&(_0x3ed52b[_0x4e7956]=_0x31bc15[_0x4e7956]);}const _0x2abdfa=_0x1ecab7['apps']&&typeof _0x1ecab7['apps']==='object'?_0x1ecab7[_0x14823f(0xe0)]:{};Object[_0x14823f(0xf3)](_0x2abdfa)[_0x14823f(0xda)]>0x0?_0x3ed52b[_0x14823f(0xe0)]=_0x2abdfa:delete _0x3ed52b['apps'];if(_0x14823f(0xeb)in _0x1ecab7)_0x3ed52b[_0x14823f(0xeb)]=_0x1ecab7[_0x14823f(0xeb)];else Object['keys'](_0x2abdfa)[_0x14823f(0xda)]>0x0?_0x3ed52b[_0x14823f(0xeb)]=Object[_0x14823f(0xf3)](_0x2abdfa)[0x0]:delete _0x3ed52b[_0x14823f(0xeb)];return _0x3ed52b;}function mergeFullInherit(_0x19cc8c,_0x48225b){const _0x378ced=a155_0x1100e7,_0x4bb595=_0x19cc8c[_0x378ced(0xe0)]&&typeof _0x19cc8c[_0x378ced(0xe0)]===_0x378ced(0xdf)?_0x19cc8c[_0x378ced(0xe0)]:{},_0x26a218=_0x48225b[_0x378ced(0xe0)]&&typeof _0x48225b[_0x378ced(0xe0)]===_0x378ced(0xdf)?_0x48225b[_0x378ced(0xe0)]:{},_0x21c108={..._0x4bb595,..._0x26a218},_0xd0faa5={..._0x19cc8c,..._0x48225b};delete _0xd0faa5[_0x378ced(0xea)];if(Object[_0x378ced(0xf3)](_0x21c108)[_0x378ced(0xda)]>0x0)_0xd0faa5[_0x378ced(0xe0)]=_0x21c108;if('defaultApp'in _0x48225b)_0xd0faa5['defaultApp']=_0x48225b['defaultApp'];else{if(Object['keys'](_0x26a218)['length']>0x0)_0xd0faa5[_0x378ced(0xeb)]=Object[_0x378ced(0xf3)](_0x26a218)[0x0];else{if(_0x19cc8c['defaultApp'])_0xd0faa5[_0x378ced(0xeb)]=_0x19cc8c[_0x378ced(0xeb)];else{const _0xafdf75=Object[_0x378ced(0xf3)](_0x4bb595);if(_0xafdf75[_0x378ced(0xda)]>0x0)_0xd0faa5[_0x378ced(0xeb)]=_0xafdf75[0x0];}}}return _0xd0faa5;}export function readRawConfigWithLayers(_0xd02afb){const _0x2bd3f1=loadRawConfigLayers(_0xd02afb);return{'config':mergeRawConfigLayers(_0x2bd3f1),'layers':_0x2bd3f1};}export function readRawConfig(_0x56263){return mergeRawConfigLayers(loadRawConfigLayers(_0x56263));}export function readConfigFile(_0x38e04f){const _0x93adb6=a155_0x1100e7;return parseAndNormalizeConfig(_0x38e04f,_0x93adb6(0xe4));}export function writeConfigFile(_0x1c43dd,_0x4b3571){const _0x1cffcc=a155_0x1100e7,_0x3b74cd=dirname(_0x1c43dd);!existsSync(_0x3b74cd)&&mkdirSync(_0x3b74cd,{'recursive':!![]});const _0x4f7a8c=_0x1c43dd+_0x1cffcc(0xe9);try{writeFileSync(_0x4f7a8c,JSON[_0x1cffcc(0xc9)](_0x4b3571,null,0x2)+'\x0a',{'encoding':'utf8','mode':0x180}),renameSync(_0x4f7a8c,_0x1c43dd);}catch(_0x4c9773){try{unlinkSync(_0x4f7a8c);}catch{}throw _0x4c9773;}}export function resolveWriteConfigPath(_0x19230d){const _0x54e449=a155_0x1100e7,_0x10431d=_0x19230d==='project'?process[_0x54e449(0xc8)]():homedir(),_0x4ca79f=resolveConfigPath(_0x10431d);return _0x4ca79f??resolve(_0x10431d,NEW_CONFIG_NAME);}function a155_0x1f21(){const _0x54ab22=['30IPSOQj','.lovrabetrc','error','parse','message','riskLevel','keys','.lovrabet.json','1325110MsnVxI','get','appcode','.rabetbase.json','locale','missing','cwd','stringify','warn','522cxADHq','68YKuDhR','99177qlOkoR','status','utf8','accessKey','138677jfWsBX','config','1560fFMnQp','data','7739890wNItZO','env','migrated','pageSize','apiDir','length','empty','Project','cookie','app','object','apps','format','filter','2158835WUhxBG','silent','\x0a\x20\x20','208381WZpatB','163040bcVRQU','trim','.tmp','inherit','defaultApp','set'];a155_0x1f21=function(){return _0x54ab22;};return a155_0x1f21();}
package/lib/context.js CHANGED
@@ -1 +1 @@
1
- (function(_0x5e1f64,_0x28f39c){const _0x586d98=a155_0x5de2,_0x8828ad=_0x5e1f64();while(!![]){try{const _0x45b187=parseInt(_0x586d98(0x12d))/0x1*(parseInt(_0x586d98(0x144))/0x2)+-parseInt(_0x586d98(0x139))/0x3+-parseInt(_0x586d98(0x13d))/0x4*(parseInt(_0x586d98(0x13e))/0x5)+-parseInt(_0x586d98(0x145))/0x6*(-parseInt(_0x586d98(0x14e))/0x7)+-parseInt(_0x586d98(0x133))/0x8+parseInt(_0x586d98(0x14a))/0x9*(parseInt(_0x586d98(0x150))/0xa)+parseInt(_0x586d98(0x12c))/0xb*(-parseInt(_0x586d98(0x137))/0xc);if(_0x45b187===_0x28f39c)break;else _0x8828ad['push'](_0x8828ad['shift']());}catch(_0x35018f){_0x8828ad['push'](_0x8828ad['shift']());}}}(a155_0x49e3,0xd817b));import{resolve}from'node:path';import{CLI_BIN_NAME}from'./constant/cli.js';import{buildAuth}from'./context/auth-resolver.js';import{resolveAppConfig}from'./context/app-resolver.js';import{CONFIG_NAMES,LEGACY_CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile}from'./context/config-loader.js';import{logger}from'./utils/logger.js';export{CONFIG_NAMES,LEGACY_CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile};function env(_0x38a2ea){return process.env[`RABETBASE_${_0x38a2ea}`]||process.env[`LOVRABET_${_0x38a2ea}`]||undefined;}export async function createContext(_0x5b22a1){const _0x5ec8d1=a155_0x5de2,{config:_0x38f9f4,layers:_0x596e6}=readRawConfigWithLayers(),_0x368611=buildConfig(_0x38f9f4,_0x5b22a1,_0x596e6),{initEnv:_0x4bcf1b}=await import(_0x5ec8d1(0x13a));if(_0x368611[_0x5ec8d1(0x140)])_0x4bcf1b(_0x368611['env']);else _0x5b22a1[_0x5ec8d1(0x140)]&&typeof _0x5b22a1[_0x5ec8d1(0x140)]==='string'&&_0x4bcf1b(_0x5b22a1['env']);const {initDomains:_0x4320fb,getUserDomain:_0x75e1c0,getApiDomain:_0x4ac667}=await import(_0x5ec8d1(0x12e));_0x4320fb({'apiDomain':_0x38f9f4[_0x5ec8d1(0x151)]||undefined,'userDomain':_0x38f9f4[_0x5ec8d1(0x13c)]||undefined,'runtimeDomain':_0x38f9f4[_0x5ec8d1(0x14b)]||undefined});const _0xd63342={'apiDomain':_0x4ac667(),'userDomain':_0x75e1c0()},_0x192786=await buildAuth(_0x368611);logger['setLogPath'](process['cwd']());const _0x14f6b2=(CLI_BIN_NAME+'\x20'+process[_0x5ec8d1(0x12f)]['slice'](0x2)[_0x5ec8d1(0x134)]('\x20'))[_0x5ec8d1(0x12a)]();logger[_0x5ec8d1(0x147)](_0x14f6b2);const {isNonInteractive:_0x42fd55}=await import(_0x5ec8d1(0x138)),_0x5ea063=_0x42fd55(_0x5b22a1);return{'config':_0x368611,'auth':_0x192786,'logger':logger,'env':_0xd63342,'nonInteractive':_0x5ea063};}function a155_0x5de2(_0x886585,_0x1b6e9e){_0x886585=_0x886585-0x129;const _0x49e345=a155_0x49e3();let _0x5de219=_0x49e345[_0x886585];return _0x5de219;}export function buildConfigFromFlags(_0x40b296){const {config:_0x336f2d,layers:_0xd1f925}=readRawConfigWithLayers();return buildConfig(_0x336f2d,_0x40b296,_0xd1f925);}export function getConfigAppCode(_0xaf1494){const _0x5d2370=a155_0x5de2,_0x260f36=readRawConfig(_0xaf1494);if(_0x260f36['apps']&&typeof _0x260f36[_0x5d2370(0x148)]===_0x5d2370(0x13b)){const _0x55f56a=_0x260f36['defaultApp'];if(_0x55f56a&&_0x260f36[_0x5d2370(0x148)][_0x55f56a]?.['appcode'])return String(_0x260f36[_0x5d2370(0x148)][_0x55f56a]['appcode'])[_0x5d2370(0x12a)]();const _0x4dd7cb=Object['values'](_0x260f36[_0x5d2370(0x148)])[0x0];if(_0x4dd7cb?.[_0x5d2370(0x142)])return String(_0x4dd7cb['appcode'])[_0x5d2370(0x12a)]();}const _0x5f275f=_0x260f36[_0x5d2370(0x142)]||_0x260f36['app'];if(typeof _0x5f275f!==_0x5d2370(0x136)||_0x5f275f['trim']()==='')return undefined;return _0x5f275f[_0x5d2370(0x12a)]();}export function getMultiAppConfigs(_0x22b309='project',_0x49f592){const _0x4bb4d7=a155_0x5de2,_0x200ce1=loadRawConfigLayers(_0x49f592);let _0x442e91,_0x4c643f;if(_0x22b309===_0x4bb4d7(0x152)){const _0x343c00=_0x200ce1[_0x4bb4d7(0x143)][_0x4bb4d7(0x148)]&&typeof _0x200ce1[_0x4bb4d7(0x143)][_0x4bb4d7(0x148)]==='object'?_0x200ce1['globalConfig'][_0x4bb4d7(0x148)]:{},_0x4718dd=_0x200ce1['projectConfig'][_0x4bb4d7(0x148)]&&typeof _0x200ce1[_0x4bb4d7(0x12b)][_0x4bb4d7(0x148)]===_0x4bb4d7(0x13b)?_0x200ce1[_0x4bb4d7(0x12b)][_0x4bb4d7(0x148)]:{};_0x442e91={..._0x343c00,..._0x4718dd};const _0x19ce3d=readRawConfig(_0x49f592);_0x4c643f=_0x19ce3d['defaultApp'];}else _0x442e91=_0x200ce1[_0x4bb4d7(0x12b)]['apps'],_0x4c643f=_0x200ce1['projectConfig'][_0x4bb4d7(0x14d)];if(!_0x442e91||typeof _0x442e91!=='object'||Object[_0x4bb4d7(0x14f)](_0x442e91)[_0x4bb4d7(0x14c)]===0x0)return null;return Object['entries'](_0x442e91)[_0x4bb4d7(0x130)](([_0x44568f,_0xd3727f])=>({'name':_0x44568f,'appcode':_0xd3727f?.[_0x4bb4d7(0x142)]||'','isDefault':_0x44568f===_0x4c643f,'env':_0xd3727f?.[_0x4bb4d7(0x140)],'apiDir':_0xd3727f?.[_0x4bb4d7(0x129)],'cookie':_0xd3727f?.[_0x4bb4d7(0x141)]||undefined}))[_0x4bb4d7(0x135)](_0x8609e4=>_0x8609e4[_0x4bb4d7(0x142)]);}export function getTemplateBaseUrl(_0x2207e6){const _0x4efe70=a155_0x5de2,_0x146c45=readRawConfig(_0x2207e6);if(_0x146c45['template_base_url']&&typeof _0x146c45['template_base_url']==='string')return _0x146c45[_0x4efe70(0x149)][_0x4efe70(0x146)](/\/$/,'');return _0x4efe70(0x131);}function buildConfig(_0x16f05c,_0x5d42eb,_0x27e059){return{...resolveAppConfig({'raw':_0x16f05c,'flags':_0x5d42eb,'layers':_0x27e059,'readEnv':env}),'raw':_0x16f05c};}export function resolveApiFilePath(_0x330b69,_0x39bb06){const _0x3bbe6f=a155_0x5de2,_0x594684=resolve(process['cwd'](),_0x330b69),_0x4a0628=resolve(_0x594684,'api.ts');if(!_0x39bb06)return _0x4a0628;const _0x197dfd=readRawConfig(),_0x428883=_0x197dfd[_0x3bbe6f(0x148)]&&typeof _0x197dfd['apps']===_0x3bbe6f(0x13b)?_0x197dfd[_0x3bbe6f(0x148)]:{},_0x9d71f7=Object['entries'](_0x428883)[_0x3bbe6f(0x13f)](([,_0x2c6455])=>_0x2c6455?.[_0x3bbe6f(0x142)]===_0x39bb06);if(!_0x9d71f7)return _0x4a0628;const [_0x26c7e0,_0x233412]=_0x9d71f7,_0x6c181f=typeof _0x197dfd['defaultApp']===_0x3bbe6f(0x136)?_0x197dfd['defaultApp']:undefined;if(_0x233412?.[_0x3bbe6f(0x129)])return _0x4a0628;if(_0x6c181f&&_0x26c7e0!==_0x6c181f)return resolve(_0x594684,_0x26c7e0+_0x3bbe6f(0x132));return _0x4a0628;}function a155_0x49e3(){const _0x334486=['apiDomain','merged','apiDir','trim','projectConfig','11xDXHAr','9KHDKwu','./constant/domain.js','argv','map','https://g.lovrabet.com/dist/lovrabet-skill','-api.ts','10210336CcvYsk','join','filter','string','954552GOSeri','./utils/is-non-interactive.js','1632030xMZySj','./constant/env.js','object','userDomain','38260gQMUaJ','5lkZJmF','find','env','cookie','appcode','globalConfig','231144ZzPfjr','6dVatpG','replace','setRawCommand','apps','template_base_url','81054pKoKtb','runtimeDomain','length','defaultApp','870058warnCy','keys','1810fIYOQO'];a155_0x49e3=function(){return _0x334486;};return a155_0x49e3();}
1
+ const a156_0x1bb3bf=a156_0x1df8;(function(_0x3b8d03,_0x4a2700){const _0x31530e=a156_0x1df8,_0x1ac968=_0x3b8d03();while(!![]){try{const _0x70d54=parseInt(_0x31530e(0xea))/0x1*(parseInt(_0x31530e(0xf4))/0x2)+parseInt(_0x31530e(0xe0))/0x3+-parseInt(_0x31530e(0xe9))/0x4+-parseInt(_0x31530e(0xf9))/0x5+parseInt(_0x31530e(0xf7))/0x6*(parseInt(_0x31530e(0xf3))/0x7)+parseInt(_0x31530e(0xf1))/0x8+parseInt(_0x31530e(0xee))/0x9;if(_0x70d54===_0x4a2700)break;else _0x1ac968['push'](_0x1ac968['shift']());}catch(_0x271a78){_0x1ac968['push'](_0x1ac968['shift']());}}}(a156_0x61da,0x612c5));import{resolve}from'node:path';import{CLI_BIN_NAME}from'./constant/cli.js';import{buildAuth}from'./context/auth-resolver.js';import{resolveAppConfig}from'./context/app-resolver.js';import{CONFIG_NAMES,LEGACY_CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile}from'./context/config-loader.js';import{logger}from'./utils/logger.js';export{CONFIG_NAMES,LEGACY_CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile};function env(_0x4400de){return process.env[`RABETBASE_${_0x4400de}`]||process.env[`LOVRABET_${_0x4400de}`]||undefined;}export async function createContext(_0x3ab819){const _0x5b2f87=a156_0x1df8,{config:_0x125433,layers:_0x42af55}=readRawConfigWithLayers(),_0x1a1bc8=buildConfig(_0x125433,_0x3ab819,_0x42af55),{initEnv:_0x349856}=await import('./constant/env.js');if(_0x1a1bc8[_0x5b2f87(0xe7)])_0x349856(_0x1a1bc8[_0x5b2f87(0xe7)]);else _0x3ab819[_0x5b2f87(0xe7)]&&typeof _0x3ab819['env']==='string'&&_0x349856(_0x3ab819[_0x5b2f87(0xe7)]);const {initDomains:_0x3c581b,getUserDomain:_0x1b80c3,getApiDomain:_0x209eae}=await import(_0x5b2f87(0xfe));_0x3c581b({'apiDomain':_0x125433['apiDomain']||undefined,'userDomain':_0x125433[_0x5b2f87(0xde)]||undefined,'runtimeDomain':_0x125433[_0x5b2f87(0xe1)]||undefined});const _0x42ac40={'apiDomain':_0x209eae(),'userDomain':_0x1b80c3()},_0x5c5169=await buildAuth(_0x1a1bc8);logger[_0x5b2f87(0xfc)](process[_0x5b2f87(0xd5)]());const _0x4d15dd=(CLI_BIN_NAME+'\x20'+process[_0x5b2f87(0xfd)][_0x5b2f87(0xfb)](0x2)[_0x5b2f87(0xe4)]('\x20'))[_0x5b2f87(0xe2)]();logger[_0x5b2f87(0xdb)](_0x4d15dd);const {isNonInteractive:_0x5178f8}=await import(_0x5b2f87(0xe3)),_0x1941b5=_0x5178f8(_0x3ab819);return{'config':_0x1a1bc8,'auth':_0x5c5169,'logger':logger,'env':_0x42ac40,'nonInteractive':_0x1941b5};}export function buildConfigFromFlags(_0xc7361b){const {config:_0x2f5d0a,layers:_0x30dfcd}=readRawConfigWithLayers();return buildConfig(_0x2f5d0a,_0xc7361b,_0x30dfcd);}export function getConfigAppCode(_0x14279f){const _0x5af54a=a156_0x1df8,_0x585fb2=readRawConfig(_0x14279f);if(_0x585fb2[_0x5af54a(0xd8)]&&typeof _0x585fb2['apps']==='object'){const _0x85db3f=_0x585fb2[_0x5af54a(0xe5)];if(_0x85db3f&&_0x585fb2[_0x5af54a(0xd8)][_0x85db3f]?.[_0x5af54a(0xf0)])return String(_0x585fb2['apps'][_0x85db3f][_0x5af54a(0xf0)])[_0x5af54a(0xe2)]();const _0x30cb33=Object['values'](_0x585fb2[_0x5af54a(0xd8)])[0x0];if(_0x30cb33?.[_0x5af54a(0xf0)])return String(_0x30cb33['appcode'])[_0x5af54a(0xe2)]();}const _0x29742a=_0x585fb2[_0x5af54a(0xf0)]||_0x585fb2[_0x5af54a(0xdc)];if(typeof _0x29742a!=='string'||_0x29742a['trim']()==='')return undefined;return _0x29742a[_0x5af54a(0xe2)]();}export function getMultiAppConfigs(_0x2eb924=a156_0x1bb3bf(0xd9),_0x4e9100){const _0x4bdca4=a156_0x1bb3bf,_0x4510e5=loadRawConfigLayers(_0x4e9100);let _0x1e3bc3,_0xd769ff;if(_0x2eb924===_0x4bdca4(0xe6)){const _0x5693ac=_0x4510e5[_0x4bdca4(0xf2)][_0x4bdca4(0xd8)]&&typeof _0x4510e5[_0x4bdca4(0xf2)][_0x4bdca4(0xd8)]===_0x4bdca4(0xda)?_0x4510e5[_0x4bdca4(0xf2)][_0x4bdca4(0xd8)]:{},_0x6712a5=_0x4510e5['projectConfig']['apps']&&typeof _0x4510e5[_0x4bdca4(0xf8)][_0x4bdca4(0xd8)]===_0x4bdca4(0xda)?_0x4510e5[_0x4bdca4(0xf8)][_0x4bdca4(0xd8)]:{};_0x1e3bc3={..._0x5693ac,..._0x6712a5};const _0x3a3b2c=readRawConfig(_0x4e9100);_0xd769ff=_0x3a3b2c[_0x4bdca4(0xe5)];}else _0x1e3bc3=_0x4510e5['projectConfig'][_0x4bdca4(0xd8)],_0xd769ff=_0x4510e5[_0x4bdca4(0xf8)]['defaultApp'];if(!_0x1e3bc3||typeof _0x1e3bc3!==_0x4bdca4(0xda)||Object['keys'](_0x1e3bc3)[_0x4bdca4(0xec)]===0x0)return null;return Object[_0x4bdca4(0xd6)](_0x1e3bc3)[_0x4bdca4(0xdd)](([_0x274fb6,_0x1cffd7])=>({'name':_0x274fb6,'appcode':_0x1cffd7?.['appcode']||'','isDefault':_0x274fb6===_0xd769ff,'env':_0x1cffd7?.['env'],'apiDir':_0x1cffd7?.['apiDir'],'cookie':_0x1cffd7?.[_0x4bdca4(0xeb)]||undefined}))[_0x4bdca4(0xef)](_0xab1a2a=>_0xab1a2a['appcode']);}function a156_0x61da(){const _0x425bb2=['1800364FCKpfK','8344Ouzhqc','cookie','length','api.ts','3422664RrozFs','filter','appcode','1718064LfcRhD','globalConfig','42CaXFId','16RKqMnr','-api.ts','string','555582czFUvw','projectConfig','2531800wBEMEZ','https://g.lovrabet.com/dist/lovrabet-skill','slice','setLogPath','argv','./constant/domain.js','cwd','entries','apiDir','apps','project','object','setRawCommand','app','map','userDomain','template_base_url','411252FzaHyU','runtimeDomain','trim','./utils/is-non-interactive.js','join','defaultApp','merged','env','find'];a156_0x61da=function(){return _0x425bb2;};return a156_0x61da();}export function getTemplateBaseUrl(_0x63cefa){const _0x975a00=a156_0x1bb3bf,_0x195d21=readRawConfig(_0x63cefa);if(_0x195d21[_0x975a00(0xdf)]&&typeof _0x195d21[_0x975a00(0xdf)]===_0x975a00(0xf6))return _0x195d21[_0x975a00(0xdf)]['replace'](/\/$/,'');return _0x975a00(0xfa);}function buildConfig(_0x527483,_0x5b1207,_0x32b4ce){return{...resolveAppConfig({'raw':_0x527483,'flags':_0x5b1207,'layers':_0x32b4ce,'readEnv':env}),'raw':_0x527483};}function a156_0x1df8(_0x5a4243,_0x4fa9de){_0x5a4243=_0x5a4243-0xd5;const _0x61da3e=a156_0x61da();let _0x1df810=_0x61da3e[_0x5a4243];return _0x1df810;}export function resolveApiFilePath(_0x534b11,_0x32acd5){const _0x3052d6=a156_0x1bb3bf,_0x1555de=resolve(process[_0x3052d6(0xd5)](),_0x534b11),_0xa6b08b=resolve(_0x1555de,_0x3052d6(0xed));if(!_0x32acd5)return _0xa6b08b;const _0x4c692c=readRawConfig(),_0x25a184=_0x4c692c[_0x3052d6(0xd8)]&&typeof _0x4c692c[_0x3052d6(0xd8)]===_0x3052d6(0xda)?_0x4c692c[_0x3052d6(0xd8)]:{},_0x297601=Object['entries'](_0x25a184)[_0x3052d6(0xe8)](([,_0x1505cf])=>_0x1505cf?.[_0x3052d6(0xf0)]===_0x32acd5);if(!_0x297601)return _0xa6b08b;const [_0x342c6d,_0x595106]=_0x297601,_0x241d6e=typeof _0x4c692c['defaultApp']===_0x3052d6(0xf6)?_0x4c692c[_0x3052d6(0xe5)]:undefined;if(_0x595106?.[_0x3052d6(0xd7)])return _0xa6b08b;if(_0x241d6e&&_0x342c6d!==_0x241d6e)return resolve(_0x1555de,_0x342c6d+_0x3052d6(0xf5));return _0xa6b08b;}