@lovrabet/rabetbase-cli 2.3.11 → 2.3.12-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 (260) 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/index.js +1 -1
  21. package/lib/commands/app/list.js +1 -1
  22. package/lib/commands/app/remote-directory.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-config/delete.js +1 -1
  26. package/lib/commands/app-config/get.js +1 -1
  27. package/lib/commands/app-config/index.js +1 -1
  28. package/lib/commands/app-config/list.js +1 -1
  29. package/lib/commands/app-config/set.js +1 -1
  30. package/lib/commands/app-config/shared.js +1 -1
  31. package/lib/commands/auth/index.js +1 -1
  32. package/lib/commands/bff/create.js +1 -1
  33. package/lib/commands/bff/delete.js +1 -1
  34. package/lib/commands/bff/detail.js +1 -1
  35. package/lib/commands/bff/index.js +1 -1
  36. package/lib/commands/bff/list.js +1 -1
  37. package/lib/commands/bff/pull.js +1 -1
  38. package/lib/commands/bff/push.js +1 -1
  39. package/lib/commands/bff/status.js +1 -1
  40. package/lib/commands/cli-skill/index.js +1 -1
  41. package/lib/commands/cli-update.js +1 -1
  42. package/lib/commands/codegen/index.js +1 -1
  43. package/lib/commands/codegen/sdk.js +1 -1
  44. package/lib/commands/codegen/sql.js +1 -1
  45. package/lib/commands/common/app-registry.js +1 -1
  46. package/lib/commands/common/app-selector.js +1 -1
  47. package/lib/commands/common/async-task.js +1 -1
  48. package/lib/commands/common/dry-run.js +1 -1
  49. package/lib/commands/common/flags.js +1 -1
  50. package/lib/commands/common/local-file.js +1 -1
  51. package/lib/commands/common/validate.js +1 -1
  52. package/lib/commands/config/get.js +1 -1
  53. package/lib/commands/config/index.js +1 -1
  54. package/lib/commands/config/list.js +1 -1
  55. package/lib/commands/config/set.js +1 -1
  56. package/lib/commands/config/shared.js +1 -1
  57. package/lib/commands/data/filter.js +1 -1
  58. package/lib/commands/data/getOne.js +1 -1
  59. package/lib/commands/data/index.js +1 -1
  60. package/lib/commands/data/shared.js +1 -1
  61. package/lib/commands/dataset/business-group-update.js +1 -1
  62. package/lib/commands/dataset/capability.js +1 -1
  63. package/lib/commands/dataset/delete.js +1 -1
  64. package/lib/commands/dataset/detail.js +1 -1
  65. package/lib/commands/dataset/extend-update.js +1 -1
  66. package/lib/commands/dataset/field-update.js +1 -1
  67. package/lib/commands/dataset/generate.js +1 -1
  68. package/lib/commands/dataset/index.js +1 -1
  69. package/lib/commands/dataset/list.js +1 -1
  70. package/lib/commands/dataset/operations.js +1 -1
  71. package/lib/commands/dataset/relation-audit.js +1 -1
  72. package/lib/commands/dataset/relation-create.js +1 -1
  73. package/lib/commands/dataset/relation-delete.js +1 -1
  74. package/lib/commands/dataset/relation-shared.js +1 -1
  75. package/lib/commands/dataset/relation-update.js +1 -1
  76. package/lib/commands/dataset/relations.js +1 -1
  77. package/lib/commands/dataset/rename.js +1 -1
  78. package/lib/commands/dataset/restore.js +1 -1
  79. package/lib/commands/db/analysis-batching.js +1 -1
  80. package/lib/commands/db/analyze-batch-plan.js +1 -1
  81. package/lib/commands/db/analyze-cancel.js +1 -1
  82. package/lib/commands/db/analyze-start.js +1 -1
  83. package/lib/commands/db/analyze-status.js +1 -1
  84. package/lib/commands/db/create.js +1 -1
  85. package/lib/commands/db/delete.js +1 -1
  86. package/lib/commands/db/detail.js +1 -1
  87. package/lib/commands/db/diff.js +1 -1
  88. package/lib/commands/db/index.js +1 -1
  89. package/lib/commands/db/list.js +1 -1
  90. package/lib/commands/db/shared.js +1 -1
  91. package/lib/commands/db/tables.js +1 -1
  92. package/lib/commands/db/test.js +1 -1
  93. package/lib/commands/db/update.js +1 -1
  94. package/lib/commands/doctor.js +1 -1
  95. package/lib/commands/file/index.js +1 -1
  96. package/lib/commands/init/index.js +1 -1
  97. package/lib/commands/issue/index.js +1 -1
  98. package/lib/commands/issue/nudge.js +1 -1
  99. package/lib/commands/issue/report.js +1 -1
  100. package/lib/commands/issue/shared.js +1 -1
  101. package/lib/commands/logs/index.js +1 -1
  102. package/lib/commands/menu/delete.js +1 -1
  103. package/lib/commands/menu/external-link-create.js +1 -1
  104. package/lib/commands/menu/group-create.js +1 -1
  105. package/lib/commands/menu/group-update.js +1 -1
  106. package/lib/commands/menu/index.js +1 -1
  107. package/lib/commands/menu/list.js +1 -1
  108. package/lib/commands/menu/move.js +1 -1
  109. package/lib/commands/menu/regroup-start.js +1 -1
  110. package/lib/commands/menu/shared/compare-table.js +1 -1
  111. package/lib/commands/menu/shared/delete-plan.js +1 -1
  112. package/lib/commands/menu/shared/facts.js +1 -1
  113. package/lib/commands/menu/shared/index.js +1 -1
  114. package/lib/commands/menu/shared/inquirer.js +1 -1
  115. package/lib/commands/menu/shared/local-pages.js +1 -1
  116. package/lib/commands/menu/shared/logic.js +1 -1
  117. package/lib/commands/menu/shared/mutations.js +1 -1
  118. package/lib/commands/menu/shared/service.js +1 -1
  119. package/lib/commands/menu/shared/sync-core.js +1 -1
  120. package/lib/commands/menu/shared/update-core.js +1 -1
  121. package/lib/commands/menu/shared/valid-url.js +1 -1
  122. package/lib/commands/menu/sync.js +1 -1
  123. package/lib/commands/menu/update.js +1 -1
  124. package/lib/commands/notification/config-list.js +1 -1
  125. package/lib/commands/notification/index.js +1 -1
  126. package/lib/commands/page/generate-start.js +1 -1
  127. package/lib/commands/page/generate-status.js +1 -1
  128. package/lib/commands/page/index.js +1 -1
  129. package/lib/commands/page/pull.js +1 -1
  130. package/lib/commands/page/push.js +1 -1
  131. package/lib/commands/page/relation-audit.js +1 -1
  132. package/lib/commands/page/shared.js +1 -1
  133. package/lib/commands/page/standard-page-status.js +1 -1
  134. package/lib/commands/page/sync.js +1 -1
  135. package/lib/commands/permit/index.js +1 -1
  136. package/lib/commands/permit/page-get.js +1 -1
  137. package/lib/commands/permit/page-set.js +1 -1
  138. package/lib/commands/permit/role-apis-set.js +1 -1
  139. package/lib/commands/permit/role-menus-set.js +1 -1
  140. package/lib/commands/permit/role-menus.js +1 -1
  141. package/lib/commands/permit/shared.js +1 -1
  142. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  143. package/lib/commands/project/create/format-elapsed.js +1 -1
  144. package/lib/commands/project/create/main.js +1 -1
  145. package/lib/commands/project/create/non-interactive.js +1 -1
  146. package/lib/commands/project/create/project-template-path.js +1 -1
  147. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  148. package/lib/commands/project/create/use-format-code.js +1 -1
  149. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  150. package/lib/commands/project/index.js +1 -1
  151. package/lib/commands/project/init.js +1 -1
  152. package/lib/commands/project/upgrade.js +1 -1
  153. package/lib/commands/registry.js +1 -1
  154. package/lib/commands/role/create.js +1 -1
  155. package/lib/commands/role/delete.js +1 -1
  156. package/lib/commands/role/detail.js +1 -1
  157. package/lib/commands/role/index.js +1 -1
  158. package/lib/commands/role/list.js +1 -1
  159. package/lib/commands/role/shared.js +1 -1
  160. package/lib/commands/role/update.js +1 -1
  161. package/lib/commands/role/user-add.js +1 -1
  162. package/lib/commands/role/user-remove.js +1 -1
  163. package/lib/commands/role/user-resolve.js +1 -1
  164. package/lib/commands/run/index.js +1 -1
  165. package/lib/commands/schema.js +1 -1
  166. package/lib/commands/sql/create.js +1 -1
  167. package/lib/commands/sql/delete.js +1 -1
  168. package/lib/commands/sql/detail.js +1 -1
  169. package/lib/commands/sql/exec.js +1 -1
  170. package/lib/commands/sql/index.js +1 -1
  171. package/lib/commands/sql/list.js +1 -1
  172. package/lib/commands/sql/pull.js +1 -1
  173. package/lib/commands/sql/push.js +1 -1
  174. package/lib/commands/sql/save.js +1 -1
  175. package/lib/commands/sql/shared.js +1 -1
  176. package/lib/commands/sql/status.js +1 -1
  177. package/lib/commands/sql/validate.js +1 -1
  178. package/lib/commands/task/index.js +1 -1
  179. package/lib/commands/task/status.js +1 -1
  180. package/lib/commands/workspace/add.js +1 -1
  181. package/lib/commands/workspace/index.js +1 -1
  182. package/lib/commands/workspace/remove.js +1 -1
  183. package/lib/config/schema.js +1 -1
  184. package/lib/constant/cdn.js +1 -1
  185. package/lib/constant/cli.js +1 -1
  186. package/lib/constant/defaults.js +1 -1
  187. package/lib/constant/domain.js +1 -1
  188. package/lib/constant/env.js +1 -1
  189. package/lib/constant/output.js +1 -1
  190. package/lib/constant/paths.js +1 -1
  191. package/lib/constant/risk.js +1 -1
  192. package/lib/context/app-resolver.js +1 -1
  193. package/lib/context/auth-resolver.js +1 -1
  194. package/lib/context/config-loader.js +1 -1
  195. package/lib/context.js +1 -1
  196. package/lib/core/alias-resolver.js +1 -1
  197. package/lib/core/api-client.js +1 -1
  198. package/lib/core/bff/config.js +1 -1
  199. package/lib/core/bff/file-system.js +1 -1
  200. package/lib/core/bff/hash.js +1 -1
  201. package/lib/core/bff/lock.js +1 -1
  202. package/lib/core/bff/utils.js +1 -1
  203. package/lib/core/db-resolver.js +1 -1
  204. package/lib/core/page/file-system.js +1 -1
  205. package/lib/core/page/hash.js +1 -1
  206. package/lib/core/page/lock.js +1 -1
  207. package/lib/core/sql-index-auditor.js +1 -1
  208. package/lib/core/sql-sync/config.js +1 -1
  209. package/lib/core/sql-sync/file-system.js +1 -1
  210. package/lib/core/sql-sync/hash.js +1 -1
  211. package/lib/core/sql-sync/lock.js +1 -1
  212. package/lib/core/sql-sync/utils.js +1 -1
  213. package/lib/core/sql-validator.js +1 -1
  214. package/lib/errors.js +1 -1
  215. package/lib/framework/build-all-flags.js +1 -1
  216. package/lib/framework/error-output.js +1 -1
  217. package/lib/framework/explicit-yes.js +1 -1
  218. package/lib/framework/flags.js +1 -1
  219. package/lib/framework/help.js +1 -1
  220. package/lib/framework/index.js +1 -1
  221. package/lib/framework/output.js +1 -1
  222. package/lib/framework/response.js +1 -1
  223. package/lib/framework/runner-alias.js +1 -1
  224. package/lib/framework/runner.js +1 -1
  225. package/lib/framework/schema-export.js +1 -1
  226. package/lib/framework/types.js +1 -1
  227. package/lib/generated/build-info.js +1 -1
  228. package/lib/help.js +1 -1
  229. package/lib/skills/main.js +1 -1
  230. package/lib/skills/npx-skills-add.js +1 -1
  231. package/lib/telemetry/cli-command-trace.js +1 -1
  232. package/lib/telemetry/cli-help-trace.js +1 -1
  233. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  234. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  235. package/lib/telemetry/send-cli-trace-log.js +1 -1
  236. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  237. package/lib/utils/ai_config.js +1 -1
  238. package/lib/utils/apply-jq-filter.js +1 -1
  239. package/lib/utils/cdn-config.js +1 -1
  240. package/lib/utils/check-sdk-version.js +1 -1
  241. package/lib/utils/cli-version-check.js +1 -1
  242. package/lib/utils/cli-version-policy.js +1 -1
  243. package/lib/utils/config.js +1 -1
  244. package/lib/utils/copy-directory.js +1 -1
  245. package/lib/utils/entity-with-id.js +1 -1
  246. package/lib/utils/file-utils.js +1 -1
  247. package/lib/utils/guides-cdn.js +1 -1
  248. package/lib/utils/http-client.js +1 -1
  249. package/lib/utils/is-non-interactive.js +1 -1
  250. package/lib/utils/logger.js +1 -1
  251. package/lib/utils/params.js +1 -1
  252. package/lib/utils/platform.js +1 -1
  253. package/lib/utils/rules-cdn.js +1 -1
  254. package/lib/utils/sleep.js +1 -1
  255. package/lib/utils/template-replacer.js +1 -1
  256. package/lib/utils/update-notice.js +1 -1
  257. package/lib/utils/version.js +1 -1
  258. package/lib/utils/with-active-cookie.js +1 -1
  259. package/lib/utils/write-cli-side-channel.js +1 -1
  260. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x3af8b8,_0x1b736e){const _0x426545=a209_0x3f31,_0x578cbf=_0x3af8b8();while(!![]){try{const _0x1ea903=parseInt(_0x426545(0x1c6))/0x1*(-parseInt(_0x426545(0x1ef))/0x2)+parseInt(_0x426545(0x1bf))/0x3+parseInt(_0x426545(0x1c2))/0x4+-parseInt(_0x426545(0x1e7))/0x5*(-parseInt(_0x426545(0x1b4))/0x6)+parseInt(_0x426545(0x1d1))/0x7*(parseInt(_0x426545(0x1e1))/0x8)+-parseInt(_0x426545(0x1c0))/0x9+parseInt(_0x426545(0x1f7))/0xa;if(_0x1ea903===_0x1b736e)break;else _0x578cbf['push'](_0x578cbf['shift']());}catch(_0xb88470){_0x578cbf['push'](_0x578cbf['shift']());}}}(a209_0x5d3f,0xe05a7));function a209_0x5d3f(){const _0x3c512e=['test','toUpperCase','1RBxDYH','endsWith','right','max','Only\x20explicit\x20table\x20JOIN\x20clauses\x20with\x20an\x20ON\x20predicate\x20are\x20supported.','add','metadataAvailable','filter','using','from','left','14oeTFgc','toLowerCase','position','indexes','cross','\x20JOIN\x20direction\x20is\x20not\x20supported\x20by\x20static\x20index\x20auditing.','JOIN_PREDICATE_UNSUPPORTED','search','Derived-table\x20JOIN\x20targets\x20are\x20not\x20supported.','table','matchedPrefix','No\x20reported\x20index\x20contains\x20the\x20JOIN\x20access\x20columns.','join','natural','has','reduce','6312536JQNvxC','slice','\x5c$&','covered','startsWith','full','4778225EaMixS','columns','alias','unknown','Not\x20every\x20JOIN\x20target\x20predicate\x20could\x20be\x20audited\x20safely.','replace','JOIN_INDEX_NOT_USABLE','unavailable','1561946dsvMJl','unsupportedPredicate','push','length','where','INDEX_METADATA_UNAVAILABLE','The\x20dataset\x20returned\x20no\x20distinguishable\x20index\x20metadata.','index','2305790HAuGbJ','INNER','(?:^|[^\x5cw$])','warning','Relevant\x20columns\x20do\x20not\x20form\x20a\x20complete\x20leftmost\x20index\x20prefix.','map','min','exec','6jeZwFp','trim','JOIN_INDEX_MISSING','inner','tableName','\x5cs*\x5c.\x5cs*[\x5cw$]+','sort','__sq__','split','matchAll','some','456909kjIxls','12461787tVDPRn','OR-connected\x20JOIN\x20predicates\x20are\x20not\x20supported.','671624FaZaJk','includes'];a209_0x5d3f=function(){return _0x3c512e;};return a209_0x5d3f();}export function auditSqlJoinIndexes(_0x42315d,_0x55a0d2){const _0x4542ee=a209_0x3f31,_0x3046a9=[],_0x2277d6=extractJoinFacts(_0x42315d)[_0x4542ee(0x1fc)](_0x4a8711=>{const _0xfafe2c=_0x4542ee;if(_0x4a8711[_0xfafe2c(0x1f0)]||_0x4a8711[_0xfafe2c(0x1e8)][_0xfafe2c(0x1f2)]===0x0)return _0x3046a9['push']({'code':_0xfafe2c(0x1d7),'table':_0x4a8711[_0xfafe2c(0x1da)],'alias':_0x4a8711[_0xfafe2c(0x1e9)],'columns':_0x4a8711[_0xfafe2c(0x1e8)],'reason':_0x4a8711['unsupportedReason']??_0xfafe2c(0x1eb)}),{'table':_0x4a8711[_0xfafe2c(0x1da)],'alias':_0x4a8711[_0xfafe2c(0x1e9)],'columns':_0x4a8711['columns'],'status':_0xfafe2c(0x1ee)};const _0x5b8cb7=resolveTableMetadata(_0x55a0d2,_0x4a8711[_0xfafe2c(0x1da)]),_0xf4e23f=(_0x5b8cb7?.[_0xfafe2c(0x1d4)]??[])[_0xfafe2c(0x1fc)](_0x288486=>({'index':_0x288486,'matchedPrefix':findEqualityPrefix(_0x288486['columns'],_0x4a8711[_0xfafe2c(0x1e8)])}))['filter'](_0x2a4d0a=>_0x2a4d0a[_0xfafe2c(0x1db)][_0xfafe2c(0x1f2)]>0x0),_0x3e2512=_0xf4e23f[_0xfafe2c(0x1e0)]((_0x7d129c,_0x18673f)=>!_0x7d129c||_0x18673f[_0xfafe2c(0x1db)]['length']>_0x7d129c[_0xfafe2c(0x1db)][_0xfafe2c(0x1f2)]?_0x18673f:_0x7d129c,_0xf4e23f[0x0]);if(_0x3e2512)return{'table':_0x4a8711[_0xfafe2c(0x1da)],'alias':_0x4a8711[_0xfafe2c(0x1e9)],'columns':_0x4a8711['columns'],'status':_0xfafe2c(0x1e4),'matchedIndex':{..._0x3e2512[_0xfafe2c(0x1f6)],'matchedPrefix':_0x3e2512[_0xfafe2c(0x1db)]}};const _0x517b88=_0x5b8cb7?.[_0xfafe2c(0x1d4)][_0xfafe2c(0x1cd)](_0x43bf25=>_0x43bf25['columns'][_0xfafe2c(0x1be)](_0x12c1a1=>_0x4a8711[_0xfafe2c(0x1e8)][_0xfafe2c(0x1be)](_0xb0947e=>columnNamesMatch(_0x12c1a1,_0xb0947e))))??[];if(_0x517b88[_0xfafe2c(0x1f2)]>0x0)return _0x3046a9[_0xfafe2c(0x1f1)]({'code':_0xfafe2c(0x1ed),'table':_0x4a8711[_0xfafe2c(0x1da)],'alias':_0x4a8711[_0xfafe2c(0x1e9)],'columns':_0x4a8711['columns'],'reason':_0xfafe2c(0x1fb)}),{'table':_0x4a8711[_0xfafe2c(0x1da)],'alias':_0x4a8711['alias'],'columns':_0x4a8711[_0xfafe2c(0x1e8)],'status':_0xfafe2c(0x1fa),'candidateIndexes':_0x517b88};if(_0x5b8cb7&&_0x5b8cb7[_0xfafe2c(0x1cc)]!==![]&&_0x5b8cb7['indexes'][_0xfafe2c(0x1f2)]>0x0&&_0x4a8711[_0xfafe2c(0x1e8)][_0xfafe2c(0x1f2)]>0x0)return _0x3046a9[_0xfafe2c(0x1f1)]({'code':_0xfafe2c(0x1b6),'table':_0x4a8711['table'],'alias':_0x4a8711[_0xfafe2c(0x1e9)],'columns':_0x4a8711[_0xfafe2c(0x1e8)],'reason':_0xfafe2c(0x1dc)}),{'table':_0x4a8711[_0xfafe2c(0x1da)],'alias':_0x4a8711[_0xfafe2c(0x1e9)],'columns':_0x4a8711[_0xfafe2c(0x1e8)],'status':_0xfafe2c(0x1fa)};return _0x3046a9[_0xfafe2c(0x1f1)]({'code':_0xfafe2c(0x1f4),'table':_0x4a8711[_0xfafe2c(0x1da)],'alias':_0x4a8711[_0xfafe2c(0x1e9)],'columns':_0x4a8711[_0xfafe2c(0x1e8)],'reason':_0x5b8cb7?_0xfafe2c(0x1f5):'No\x20dataset\x20metadata\x20matched\x20the\x20JOIN\x20table.'}),{'table':_0x4a8711[_0xfafe2c(0x1da)],'alias':_0x4a8711[_0xfafe2c(0x1e9)],'columns':_0x4a8711['columns'],'status':_0xfafe2c(0x1ee)};});return{'checked':_0x2277d6[_0x4542ee(0x1f2)]>0x0,'joins':_0x2277d6,'warnings':_0x3046a9};}function extractJoinFacts(_0x1c67be){const _0x3ea2af=a209_0x3f31,_0x23271a=maskNestedQueries(stripSqlNoise(_0x1c67be)),_0x9826b1=maskQuotedIdentifiers(_0x23271a),_0xa431d9=[],_0x3277ce=new Set(),_0x1553c2=/\b(?:(INNER|LEFT|RIGHT|FULL)(?:\s+OUTER)?\s+)?JOIN\s+([`"\w$.]+)(?:\s+(?:AS\s+)?([`"\w$]+))?\s+ON\s+([\s\S]*?)(?=\s+(?:(?:(?:INNER|LEFT|RIGHT|FULL)(?:\s+OUTER)?\s+)?JOIN\b|(?:WHERE|GROUP\s+BY|ORDER\s+BY|HAVING|LIMIT|UNION)\b)|;|$)/gi;for(const _0x427285 of _0x23271a[_0x3ea2af(0x1bd)](_0x1553c2)){const _0x4a617d=_0x427285['index']??0x0,_0x3045e5=_0x427285[0x0][_0x3ea2af(0x1d8)](/\bJOIN\b/i),_0xc4de4c=_0x4a617d+Math[_0x3ea2af(0x1c9)](0x0,_0x3045e5);if(!/^JOIN\b/i['test'](_0x9826b1['slice'](_0xc4de4c)))continue;_0x3277ce[_0x3ea2af(0x1cb)](_0xc4de4c);const _0x10ddc6=normalizeIdentifier(_0x427285[0x1]||_0x3ea2af(0x1f8)),_0x510f74=normalizeIdentifier(_0x427285[0x2]??''),_0x181fa9=normalizeIdentifier(_0x427285[0x3]||_0x510f74[_0x3ea2af(0x1bc)]('.')['at'](-0x1)||_0x510f74),_0x475736=[],_0x47e088=_0x510f74===_0x3ea2af(0x1bb);let _0x37a134=_0x10ddc6===_0x3ea2af(0x1c8)||_0x10ddc6===_0x3ea2af(0x1e6)||_0x47e088,_0x223126=_0x37a134?_0x47e088?_0x3ea2af(0x1d9):_0x10ddc6[_0x3ea2af(0x1c5)]()+_0x3ea2af(0x1d6):undefined;const _0x76a33b=stripOuterParentheses(_0x427285[0x4]??'');hasTopLevelKeyword(_0x76a33b,'OR')&&(_0x37a134=!![],_0x223126??='OR-connected\x20JOIN\x20predicates\x20are\x20not\x20supported.');for(const _0x25f95c of splitTopLevelAnd(_0x76a33b)){const _0x4559dd=stripOuterParentheses(_0x25f95c);if(hasTopLevelKeyword(_0x4559dd,'OR')){_0x37a134=!![],_0x223126??=_0x3ea2af(0x1c1);continue;}const _0x3fffb9=splitEquality(_0x4559dd);if(!_0x3fffb9){containsColumnReference(_0x25f95c,_0x181fa9)&&(_0x37a134=!![]);continue;}const _0x51ebcd=parseDirectColumnReference(_0x3fffb9[0x0],_0x181fa9),_0x1ab289=parseDirectColumnReference(_0x3fffb9[0x1],_0x181fa9),_0x536856=containsColumnReference(_0x3fffb9[0x0],_0x181fa9),_0x4375e4=containsColumnReference(_0x3fffb9[0x1],_0x181fa9),_0x1d3d5e=_0x51ebcd&&!_0x4375e4?_0x51ebcd:_0x1ab289&&!_0x536856?_0x1ab289:null;if(_0x1d3d5e&&!_0x475736[_0x3ea2af(0x1c3)](_0x1d3d5e))_0x475736['push'](_0x1d3d5e);else!_0x1d3d5e&&containsColumnReference(_0x25f95c,_0x181fa9)&&(_0x37a134=!![]);}_0xa431d9[_0x3ea2af(0x1f1)]({'table':_0x510f74,'alias':_0x181fa9,'columns':_0x475736,'unsupportedPredicate':_0x37a134,'unsupportedReason':_0x223126,'position':_0xc4de4c});}for(const _0x476e21 of _0x9826b1[_0x3ea2af(0x1bd)](/\bJOIN\b/gi)){const _0xf7418e=_0x476e21[_0x3ea2af(0x1f6)]??0x0;if(_0x3277ce[_0x3ea2af(0x1df)](_0xf7418e))continue;const _0x2340b9=/^\s+([`"\w$.]+)(?:\s+(?:AS\s+)?([`"\w$]+))?/[_0x3ea2af(0x1fe)](_0x23271a['slice'](_0xf7418e+_0x476e21[0x0][_0x3ea2af(0x1f2)])),_0x2e4863=normalizeIdentifier(_0x2340b9?.[0x1]||_0x3ea2af(0x1ea)),_0xa2e0b=normalizeIdentifier(_0x2340b9?.[0x2]||''),_0xf5716c=isSqlClauseKeyword(_0xa2e0b)?_0x2e4863[_0x3ea2af(0x1bc)]('.')['at'](-0x1)||_0x2e4863:_0xa2e0b||_0x2e4863[_0x3ea2af(0x1bc)]('.')['at'](-0x1)||_0x2e4863;_0xa431d9[_0x3ea2af(0x1f1)]({'table':_0x2e4863,'alias':_0xf5716c,'columns':[],'unsupportedPredicate':!![],'unsupportedReason':_0x3ea2af(0x1ca),'position':_0xf7418e});}return _0xa431d9[_0x3ea2af(0x1ba)]((_0x585d3c,_0x5ab224)=>_0x585d3c[_0x3ea2af(0x1d3)]-_0x5ab224[_0x3ea2af(0x1d3)]);}function stripSqlNoise(_0x40d8f1){const _0x3577a8=a209_0x3f31,_0x147cd7=Array[_0x3577a8(0x1cf)](_0x40d8f1),_0x28eb4f=(_0x101c83,_0x8ef119)=>{for(let _0x5cd8fb=_0x101c83;_0x5cd8fb<_0x8ef119;_0x5cd8fb+=0x1){_0x147cd7[_0x5cd8fb]!=='\x0a'&&_0x147cd7[_0x5cd8fb]!=='\x0d'&&(_0x147cd7[_0x5cd8fb]='\x20');}};for(let _0x4bb0a7=0x0;_0x4bb0a7<_0x147cd7[_0x3577a8(0x1f2)];_0x4bb0a7+=0x1){const _0x245fbd=_0x147cd7[_0x4bb0a7],_0x33d9c5=_0x147cd7[_0x4bb0a7+0x1];if(_0x245fbd==='\x27'||_0x245fbd==='\x22'||_0x245fbd==='`'){const _0x1cfccd=_0x245fbd,_0x239909=_0x4bb0a7;_0x4bb0a7+=0x1;while(_0x4bb0a7<_0x147cd7[_0x3577a8(0x1f2)]){if(_0x147cd7[_0x4bb0a7]==='\x5c'&&_0x4bb0a7+0x1<_0x147cd7[_0x3577a8(0x1f2)]){_0x4bb0a7+=0x2;continue;}if(_0x147cd7[_0x4bb0a7]!==_0x1cfccd){_0x4bb0a7+=0x1;continue;}if(_0x147cd7[_0x4bb0a7+0x1]===_0x1cfccd){_0x4bb0a7+=0x2;continue;}break;}if(_0x1cfccd==='\x27')_0x28eb4f(_0x239909,Math[_0x3577a8(0x1fd)](_0x4bb0a7+0x1,_0x147cd7['length']));continue;}if(_0x245fbd==='-'&&_0x33d9c5==='-'){const _0x487e13=_0x4bb0a7;while(_0x4bb0a7<_0x147cd7[_0x3577a8(0x1f2)]&&_0x147cd7[_0x4bb0a7]!=='\x0a')_0x4bb0a7+=0x1;_0x28eb4f(_0x487e13,_0x4bb0a7);continue;}if(_0x245fbd==='/'&&_0x33d9c5==='*'){const _0x43e0e0=_0x4bb0a7;_0x4bb0a7+=0x2;while(_0x4bb0a7<_0x147cd7['length']&&!(_0x147cd7[_0x4bb0a7]==='*'&&_0x147cd7[_0x4bb0a7+0x1]==='/')){_0x4bb0a7+=0x1;}_0x4bb0a7=Math[_0x3577a8(0x1fd)](_0x4bb0a7+0x1,_0x147cd7[_0x3577a8(0x1f2)]-0x1),_0x28eb4f(_0x43e0e0,_0x4bb0a7+0x1);continue;}if(_0x245fbd==='#'&&_0x33d9c5!=='{'){const _0x3e726e=_0x4bb0a7;while(_0x4bb0a7<_0x147cd7[_0x3577a8(0x1f2)]&&_0x147cd7[_0x4bb0a7]!=='\x0a')_0x4bb0a7+=0x1;_0x28eb4f(_0x3e726e,_0x4bb0a7);continue;}if((_0x245fbd==='#'||_0x245fbd==='$')&&_0x33d9c5==='{'){const _0x21dce9=_0x4bb0a7;_0x4bb0a7+=0x2;while(_0x4bb0a7<_0x147cd7[_0x3577a8(0x1f2)]&&_0x147cd7[_0x4bb0a7]!=='}')_0x4bb0a7+=0x1;_0x28eb4f(_0x21dce9,Math[_0x3577a8(0x1fd)](_0x4bb0a7+0x1,_0x147cd7['length']));}}return _0x147cd7[_0x3577a8(0x1dd)]('');}function maskQuotedIdentifiers(_0x3c1ed3){const _0x237dec=a209_0x3f31,_0x297161=Array['from'](_0x3c1ed3);for(let _0x8f9f4d=0x0;_0x8f9f4d<_0x297161[_0x237dec(0x1f2)];_0x8f9f4d+=0x1){const _0x4fbca8=_0x297161[_0x8f9f4d];if(_0x4fbca8!=='\x22'&&_0x4fbca8!=='`')continue;_0x8f9f4d+=0x1;while(_0x8f9f4d<_0x297161['length']){if(_0x297161[_0x8f9f4d]===_0x4fbca8){if(_0x297161[_0x8f9f4d+0x1]===_0x4fbca8){_0x297161[_0x8f9f4d]='\x20',_0x297161[_0x8f9f4d+0x1]='\x20',_0x8f9f4d+=0x2;continue;}break;}_0x297161[_0x8f9f4d]='\x20',_0x8f9f4d+=0x1;}}return _0x297161[_0x237dec(0x1dd)]('');}function maskNestedQueries(_0x34bc9e){const _0xd2cf9=a209_0x3f31,_0x46e297=Array[_0xd2cf9(0x1cf)](_0x34bc9e);for(let _0x1cb26f=0x0;_0x1cb26f<_0x46e297[_0xd2cf9(0x1f2)];_0x1cb26f+=0x1){if(_0x46e297[_0x1cb26f]!=='(')continue;const _0x34e12d=_0x34bc9e[_0xd2cf9(0x1e2)](_0x1cb26f+0x1);if(!/^\s*(?:SELECT|WITH)\b/i[_0xd2cf9(0x1c4)](_0x34e12d))continue;let _0x550666=0x1,_0x399ed4=_0x1cb26f+0x1;for(;_0x399ed4<_0x46e297['length']&&_0x550666>0x0;_0x399ed4+=0x1){if(_0x46e297[_0x399ed4]==='(')_0x550666+=0x1;if(_0x46e297[_0x399ed4]===')')_0x550666-=0x1;}if(_0x550666!==0x0)continue;for(let _0x337d6f=_0x1cb26f;_0x337d6f<_0x399ed4;_0x337d6f+=0x1){_0x46e297[_0x337d6f]='\x20';}const _0x4e8cc9=_0xd2cf9(0x1bb);for(let _0x5ad6ee=0x0;_0x5ad6ee<_0x4e8cc9[_0xd2cf9(0x1f2)]&&_0x1cb26f+_0x5ad6ee<_0x399ed4;_0x5ad6ee+=0x1){_0x46e297[_0x1cb26f+_0x5ad6ee]=_0x4e8cc9[_0x5ad6ee];}_0x1cb26f=_0x399ed4-0x1;}return _0x46e297[_0xd2cf9(0x1dd)]('');}function splitTopLevelAnd(_0x1f8d85){const _0x2b28a6=a209_0x3f31,_0x11a193=[];let _0xf08a7b=0x0,_0x106bbc=0x0;for(let _0x2748d0=0x0;_0x2748d0<_0x1f8d85['length'];_0x2748d0+=0x1){const _0x322dd9=_0x1f8d85[_0x2748d0];if(_0x322dd9==='(')_0xf08a7b+=0x1;if(_0x322dd9===')')_0xf08a7b=Math[_0x2b28a6(0x1c9)](0x0,_0xf08a7b-0x1);_0xf08a7b===0x0&&_0x1f8d85[_0x2b28a6(0x1e2)](_0x2748d0)['match'](/^AND\b/i)&&(_0x2748d0===0x0||/\s/[_0x2b28a6(0x1c4)](_0x1f8d85[_0x2748d0-0x1]??''))&&(_0x11a193[_0x2b28a6(0x1f1)](_0x1f8d85[_0x2b28a6(0x1e2)](_0x106bbc,_0x2748d0)[_0x2b28a6(0x1b5)]()),_0x2748d0+=0x2,_0x106bbc=_0x2748d0+0x1);}const _0x246127=_0x1f8d85['slice'](_0x106bbc)[_0x2b28a6(0x1b5)]();if(_0x246127)_0x11a193['push'](_0x246127);return _0x11a193;}function hasTopLevelKeyword(_0x50c547,_0x551ab5){const _0x456695=a209_0x3f31;let _0x4fab63=0x0;for(let _0xd636d1=0x0;_0xd636d1<_0x50c547[_0x456695(0x1f2)];_0xd636d1+=0x1){const _0x1a096f=_0x50c547[_0xd636d1];if(_0x1a096f==='(')_0x4fab63+=0x1;if(_0x1a096f===')')_0x4fab63=Math[_0x456695(0x1c9)](0x0,_0x4fab63-0x1);if(_0x4fab63!==0x0)continue;const _0x36a8f7=_0x50c547['slice'](_0xd636d1,_0xd636d1+_0x551ab5[_0x456695(0x1f2)]),_0x30b3f3=_0x50c547[_0xd636d1-0x1]??'\x20',_0x3fc555=_0x50c547[_0xd636d1+_0x551ab5[_0x456695(0x1f2)]]??'\x20';if(_0x36a8f7['toUpperCase']()===_0x551ab5[_0x456695(0x1c5)]()&&!/[\w$]/[_0x456695(0x1c4)](_0x30b3f3)&&!/[\w$]/[_0x456695(0x1c4)](_0x3fc555))return!![];}return![];}function splitEquality(_0x39b966){const _0x33bbbf=a209_0x3f31,_0x4cbbc3=stripOuterParentheses(_0x39b966);let _0x216424=0x0,_0x235769;for(let _0xd9c1ab=0x0;_0xd9c1ab<_0x4cbbc3[_0x33bbbf(0x1f2)];_0xd9c1ab+=0x1){const _0x3cacec=_0x4cbbc3[_0xd9c1ab];if(_0x3cacec==='(')_0x216424+=0x1;if(_0x3cacec===')')_0x216424=Math[_0x33bbbf(0x1c9)](0x0,_0x216424-0x1);const _0x3b7862=_0x4cbbc3[_0xd9c1ab-0x1]??'',_0x2ca070=_0x4cbbc3[_0xd9c1ab+0x1]??'';if(_0x3cacec==='='&&_0x216424===0x0&&!/[!<>=:]/['test'](_0x3b7862)&&_0x2ca070!=='='){if(_0x235769!==undefined)return null;_0x235769=_0xd9c1ab;}}return _0x235769===undefined?null:[_0x4cbbc3[_0x33bbbf(0x1e2)](0x0,_0x235769)[_0x33bbbf(0x1b5)](),_0x4cbbc3[_0x33bbbf(0x1e2)](_0x235769+0x1)[_0x33bbbf(0x1b5)]()];}function parseDirectColumnReference(_0x19eca7,_0x47c339){const _0x3e2938=a209_0x3f31,_0xa75610=/^([`"]?[\w$]+[`"]?)\s*\.\s*([`"]?[\w$]+[`"]?)$/[_0x3e2938(0x1fe)](stripOuterParentheses(_0x19eca7));if(!_0xa75610)return null;if(normalizeIdentifier(_0xa75610[0x1]??'')!==normalizeIdentifier(_0x47c339))return null;return normalizeIdentifier(_0xa75610[0x2]??'');}function containsColumnReference(_0x1b6f43,_0x10f86c){const _0x59bd85=a209_0x3f31,_0x11a8f9=_0x1b6f43[_0x59bd85(0x1ec)](/[`"]/g,''),_0x3329b8=_0x10f86c[_0x59bd85(0x1ec)](/[.*+?^${}()|[\]\\]/g,_0x59bd85(0x1e3));return new RegExp(_0x59bd85(0x1f9)+_0x3329b8+_0x59bd85(0x1b9),'i')[_0x59bd85(0x1c4)](_0x11a8f9);}function findEqualityPrefix(_0x1e92c2,_0x57ff84){const _0x2ce1af=a209_0x3f31,_0x4b3f4f=new Set(_0x57ff84[_0x2ce1af(0x1fc)](normalizeIdentifier)),_0x4e3fbc=[];for(const _0xfea833 of _0x1e92c2){if(!_0x4b3f4f['has'](normalizeIdentifier(_0xfea833)))break;_0x4e3fbc[_0x2ce1af(0x1f1)](_0xfea833);}return _0x4e3fbc;}function resolveTableMetadata(_0x587808,_0x22aa47){const _0x1b74b5=a209_0x3f31,_0x2905a1=normalizeIdentifier(_0x22aa47),_0x266ca4=_0x587808[_0x1b74b5(0x1cd)](_0x531d5c=>normalizeIdentifier(_0x531d5c[_0x1b74b5(0x1b8)])===_0x2905a1);if(_0x266ca4[_0x1b74b5(0x1f2)]===0x1)return _0x266ca4[0x0];const _0x5ea1bb=_0x2905a1[_0x1b74b5(0x1c3)]('.'),_0x3e75c8=_0x2905a1['split']('.')['at'](-0x1),_0x50264e=_0x587808[_0x1b74b5(0x1cd)](_0x51859a=>{const _0x42307b=_0x1b74b5,_0x5b02e4=normalizeIdentifier(_0x51859a[_0x42307b(0x1b8)]);if(_0x5ea1bb&&_0x5b02e4[_0x42307b(0x1c3)]('.'))return![];return _0x5b02e4[_0x42307b(0x1bc)]('.')['at'](-0x1)===_0x3e75c8;});return _0x50264e['length']===0x1?_0x50264e[0x0]:undefined;}function a209_0x3f31(_0x361bdb,_0x33d723){_0x361bdb=_0x361bdb-0x1b4;const _0x5d3f0b=a209_0x5d3f();let _0x3f3106=_0x5d3f0b[_0x361bdb];return _0x3f3106;}function columnNamesMatch(_0xa98648,_0x2e84e1){return normalizeIdentifier(_0xa98648)===normalizeIdentifier(_0x2e84e1);}function normalizeIdentifier(_0x1ec309){const _0x1515f9=a209_0x3f31;return _0x1ec309[_0x1515f9(0x1ec)](/[`"]/g,'')[_0x1515f9(0x1b5)]()[_0x1515f9(0x1d2)]();}function isSqlClauseKeyword(_0x5af640){const _0x45dc6a=a209_0x3f31;return new Set(['on',_0x45dc6a(0x1ce),_0x45dc6a(0x1f3),_0x45dc6a(0x1dd),_0x45dc6a(0x1b7),_0x45dc6a(0x1d0),_0x45dc6a(0x1c8),_0x45dc6a(0x1e6),_0x45dc6a(0x1d5),_0x45dc6a(0x1de)])[_0x45dc6a(0x1df)](_0x5af640);}function stripOuterParentheses(_0x3483bd){const _0x70d76b=a209_0x3f31;let _0x125939=_0x3483bd[_0x70d76b(0x1b5)]();while(_0x125939[_0x70d76b(0x1e5)]('(')&&_0x125939[_0x70d76b(0x1c7)](')')){let _0x24e414=0x0,_0x2a7ef0=!![];for(let _0xa833ec=0x0;_0xa833ec<_0x125939['length'];_0xa833ec+=0x1){if(_0x125939[_0xa833ec]==='(')_0x24e414+=0x1;if(_0x125939[_0xa833ec]===')')_0x24e414-=0x1;if(_0x24e414===0x0&&_0xa833ec<_0x125939['length']-0x1){_0x2a7ef0=![];break;}}if(!_0x2a7ef0||_0x24e414!==0x0)break;_0x125939=_0x125939[_0x70d76b(0x1e2)](0x1,-0x1)[_0x70d76b(0x1b5)]();}return _0x125939;}
1
+ (function(_0x122245,_0xf1d1c5){const _0x3ed436=a209_0x495a,_0x18129f=_0x122245();while(!![]){try{const _0x1d355d=-parseInt(_0x3ed436(0x219))/0x1+parseInt(_0x3ed436(0x1ff))/0x2+parseInt(_0x3ed436(0x1fa))/0x3*(-parseInt(_0x3ed436(0x228))/0x4)+-parseInt(_0x3ed436(0x231))/0x5*(-parseInt(_0x3ed436(0x211))/0x6)+-parseInt(_0x3ed436(0x230))/0x7*(-parseInt(_0x3ed436(0x20b))/0x8)+parseInt(_0x3ed436(0x210))/0x9+parseInt(_0x3ed436(0x21b))/0xa*(-parseInt(_0x3ed436(0x221))/0xb);if(_0x1d355d===_0xf1d1c5)break;else _0x18129f['push'](_0x18129f['shift']());}catch(_0x3265c0){_0x18129f['push'](_0x18129f['shift']());}}}(a209_0xf03a,0x2affd));export function auditSqlJoinIndexes(_0x2d42b7,_0x117349){const _0x1fdd99=a209_0x495a,_0x469261=[],_0x260a2f=extractJoinFacts(_0x2d42b7)[_0x1fdd99(0x237)](_0x3fea0e=>{const _0x1c8540=_0x1fdd99;if(_0x3fea0e[_0x1c8540(0x22f)]||_0x3fea0e['columns'][_0x1c8540(0x207)]===0x0)return _0x469261[_0x1c8540(0x226)]({'code':_0x1c8540(0x235),'table':_0x3fea0e[_0x1c8540(0x227)],'alias':_0x3fea0e[_0x1c8540(0x1f7)],'columns':_0x3fea0e[_0x1c8540(0x1f1)],'reason':_0x3fea0e[_0x1c8540(0x22b)]??_0x1c8540(0x218)}),{'table':_0x3fea0e[_0x1c8540(0x227)],'alias':_0x3fea0e[_0x1c8540(0x1f7)],'columns':_0x3fea0e[_0x1c8540(0x1f1)],'status':_0x1c8540(0x22a)};const _0x64d778=resolveTableMetadata(_0x117349,_0x3fea0e['table']),_0x1bc862=(_0x64d778?.[_0x1c8540(0x21a)]??[])['map'](_0x30d6b0=>({'index':_0x30d6b0,'matchedPrefix':findEqualityPrefix(_0x30d6b0[_0x1c8540(0x1f1)],_0x3fea0e[_0x1c8540(0x1f1)])}))[_0x1c8540(0x208)](_0x3d4af1=>_0x3d4af1['matchedPrefix'][_0x1c8540(0x207)]>0x0),_0x376f08=_0x1bc862[_0x1c8540(0x20d)]((_0x55b6ed,_0x31c141)=>!_0x55b6ed||_0x31c141[_0x1c8540(0x20c)]['length']>_0x55b6ed[_0x1c8540(0x20c)]['length']?_0x31c141:_0x55b6ed,_0x1bc862[0x0]);if(_0x376f08)return{'table':_0x3fea0e[_0x1c8540(0x227)],'alias':_0x3fea0e[_0x1c8540(0x1f7)],'columns':_0x3fea0e[_0x1c8540(0x1f1)],'status':_0x1c8540(0x213),'matchedIndex':{..._0x376f08[_0x1c8540(0x204)],'matchedPrefix':_0x376f08[_0x1c8540(0x20c)]}};const _0x194fa=_0x64d778?.[_0x1c8540(0x21a)][_0x1c8540(0x208)](_0x56a481=>_0x56a481[_0x1c8540(0x1f1)]['some'](_0x32f8b5=>_0x3fea0e[_0x1c8540(0x1f1)][_0x1c8540(0x233)](_0x108e1f=>columnNamesMatch(_0x32f8b5,_0x108e1f))))??[];if(_0x194fa[_0x1c8540(0x207)]>0x0)return _0x469261[_0x1c8540(0x226)]({'code':_0x1c8540(0x1fb),'table':_0x3fea0e[_0x1c8540(0x227)],'alias':_0x3fea0e[_0x1c8540(0x1f7)],'columns':_0x3fea0e[_0x1c8540(0x1f1)],'reason':_0x1c8540(0x20f)}),{'table':_0x3fea0e['table'],'alias':_0x3fea0e[_0x1c8540(0x1f7)],'columns':_0x3fea0e['columns'],'status':_0x1c8540(0x236),'candidateIndexes':_0x194fa};if(_0x64d778&&_0x64d778[_0x1c8540(0x22d)]!==![]&&_0x64d778[_0x1c8540(0x21a)][_0x1c8540(0x207)]>0x0&&_0x3fea0e[_0x1c8540(0x1f1)]['length']>0x0)return _0x469261['push']({'code':_0x1c8540(0x21e),'table':_0x3fea0e[_0x1c8540(0x227)],'alias':_0x3fea0e[_0x1c8540(0x1f7)],'columns':_0x3fea0e['columns'],'reason':'No\x20reported\x20index\x20contains\x20the\x20JOIN\x20access\x20columns.'}),{'table':_0x3fea0e['table'],'alias':_0x3fea0e[_0x1c8540(0x1f7)],'columns':_0x3fea0e[_0x1c8540(0x1f1)],'status':'warning'};return _0x469261['push']({'code':_0x1c8540(0x212),'table':_0x3fea0e[_0x1c8540(0x227)],'alias':_0x3fea0e[_0x1c8540(0x1f7)],'columns':_0x3fea0e['columns'],'reason':_0x64d778?_0x1c8540(0x205):_0x1c8540(0x21d)}),{'table':_0x3fea0e[_0x1c8540(0x227)],'alias':_0x3fea0e[_0x1c8540(0x1f7)],'columns':_0x3fea0e[_0x1c8540(0x1f1)],'status':_0x1c8540(0x22a)};});return{'checked':_0x260a2f['length']>0x0,'joins':_0x260a2f,'warnings':_0x469261};}function extractJoinFacts(_0x2ed657){const _0x3f9cdf=a209_0x495a,_0x25b728=maskNestedQueries(stripSqlNoise(_0x2ed657)),_0x21a741=maskQuotedIdentifiers(_0x25b728),_0x186d1f=[],_0x59151b=new Set(),_0x1e8d60=/\b(?:(INNER|LEFT|RIGHT|FULL)(?:\s+OUTER)?\s+)?JOIN\s+([`"\w$.]+)(?:\s+(?:AS\s+)?([`"\w$]+))?\s+ON\s+([\s\S]*?)(?=\s+(?:(?:(?:INNER|LEFT|RIGHT|FULL)(?:\s+OUTER)?\s+)?JOIN\b|(?:WHERE|GROUP\s+BY|ORDER\s+BY|HAVING|LIMIT|UNION)\b)|;|$)/gi;for(const _0x31acc7 of _0x25b728[_0x3f9cdf(0x238)](_0x1e8d60)){const _0x1ac3f9=_0x31acc7[_0x3f9cdf(0x204)]??0x0,_0x178be4=_0x31acc7[0x0][_0x3f9cdf(0x229)](/\bJOIN\b/i),_0xe8f7fa=_0x1ac3f9+Math[_0x3f9cdf(0x201)](0x0,_0x178be4);if(!/^JOIN\b/i['test'](_0x21a741[_0x3f9cdf(0x20e)](_0xe8f7fa)))continue;_0x59151b[_0x3f9cdf(0x224)](_0xe8f7fa);const _0x121cfa=normalizeIdentifier(_0x31acc7[0x1]||_0x3f9cdf(0x1f8)),_0x106c6a=normalizeIdentifier(_0x31acc7[0x2]??''),_0x293f60=normalizeIdentifier(_0x31acc7[0x3]||_0x106c6a['split']('.')['at'](-0x1)||_0x106c6a),_0xb69540=[],_0x31b55a=_0x106c6a===_0x3f9cdf(0x223);let _0x324278=_0x121cfa===_0x3f9cdf(0x209)||_0x121cfa===_0x3f9cdf(0x1f3)||_0x31b55a,_0xc4c3d6=_0x324278?_0x31b55a?_0x3f9cdf(0x20a):_0x121cfa[_0x3f9cdf(0x217)]()+_0x3f9cdf(0x1f0):undefined;const _0x2027e0=stripOuterParentheses(_0x31acc7[0x4]??'');hasTopLevelKeyword(_0x2027e0,'OR')&&(_0x324278=!![],_0xc4c3d6??=_0x3f9cdf(0x220));for(const _0x55489f of splitTopLevelAnd(_0x2027e0)){const _0x52c04b=stripOuterParentheses(_0x55489f);if(hasTopLevelKeyword(_0x52c04b,'OR')){_0x324278=!![],_0xc4c3d6??=_0x3f9cdf(0x220);continue;}const _0x2a5094=splitEquality(_0x52c04b);if(!_0x2a5094){containsColumnReference(_0x55489f,_0x293f60)&&(_0x324278=!![]);continue;}const _0x1d7db4=parseDirectColumnReference(_0x2a5094[0x0],_0x293f60),_0x4220a6=parseDirectColumnReference(_0x2a5094[0x1],_0x293f60),_0x1078de=containsColumnReference(_0x2a5094[0x0],_0x293f60),_0x48574f=containsColumnReference(_0x2a5094[0x1],_0x293f60),_0x3eb81a=_0x1d7db4&&!_0x48574f?_0x1d7db4:_0x4220a6&&!_0x1078de?_0x4220a6:null;if(_0x3eb81a&&!_0xb69540[_0x3f9cdf(0x203)](_0x3eb81a))_0xb69540['push'](_0x3eb81a);else!_0x3eb81a&&containsColumnReference(_0x55489f,_0x293f60)&&(_0x324278=!![]);}_0x186d1f[_0x3f9cdf(0x226)]({'table':_0x106c6a,'alias':_0x293f60,'columns':_0xb69540,'unsupportedPredicate':_0x324278,'unsupportedReason':_0xc4c3d6,'position':_0xe8f7fa});}for(const _0x53a534 of _0x21a741['matchAll'](/\bJOIN\b/gi)){const _0xd77f7a=_0x53a534[_0x3f9cdf(0x204)]??0x0;if(_0x59151b[_0x3f9cdf(0x202)](_0xd77f7a))continue;const _0x3946e8=/^\s+([`"\w$.]+)(?:\s+(?:AS\s+)?([`"\w$]+))?/[_0x3f9cdf(0x200)](_0x25b728[_0x3f9cdf(0x20e)](_0xd77f7a+_0x53a534[0x0]['length'])),_0x4de1d6=normalizeIdentifier(_0x3946e8?.[0x1]||'unknown'),_0x4dfa51=normalizeIdentifier(_0x3946e8?.[0x2]||''),_0x4d078c=isSqlClauseKeyword(_0x4dfa51)?_0x4de1d6['split']('.')['at'](-0x1)||_0x4de1d6:_0x4dfa51||_0x4de1d6[_0x3f9cdf(0x21c)]('.')['at'](-0x1)||_0x4de1d6;_0x186d1f['push']({'table':_0x4de1d6,'alias':_0x4d078c,'columns':[],'unsupportedPredicate':!![],'unsupportedReason':'Only\x20explicit\x20table\x20JOIN\x20clauses\x20with\x20an\x20ON\x20predicate\x20are\x20supported.','position':_0xd77f7a});}return _0x186d1f['sort']((_0x1f86f6,_0x51cc60)=>_0x1f86f6[_0x3f9cdf(0x234)]-_0x51cc60['position']);}function stripSqlNoise(_0x2d4b4e){const _0x51a54f=a209_0x495a,_0x20be18=Array[_0x51a54f(0x206)](_0x2d4b4e),_0x554773=(_0x8cdb2,_0x4acbc2)=>{for(let _0x3cf307=_0x8cdb2;_0x3cf307<_0x4acbc2;_0x3cf307+=0x1){_0x20be18[_0x3cf307]!=='\x0a'&&_0x20be18[_0x3cf307]!=='\x0d'&&(_0x20be18[_0x3cf307]='\x20');}};for(let _0x45c8bd=0x0;_0x45c8bd<_0x20be18[_0x51a54f(0x207)];_0x45c8bd+=0x1){const _0x1eb763=_0x20be18[_0x45c8bd],_0x44f246=_0x20be18[_0x45c8bd+0x1];if(_0x1eb763==='\x27'||_0x1eb763==='\x22'||_0x1eb763==='`'){const _0x57a832=_0x1eb763,_0x10acaa=_0x45c8bd;_0x45c8bd+=0x1;while(_0x45c8bd<_0x20be18[_0x51a54f(0x207)]){if(_0x20be18[_0x45c8bd]==='\x5c'&&_0x45c8bd+0x1<_0x20be18['length']){_0x45c8bd+=0x2;continue;}if(_0x20be18[_0x45c8bd]!==_0x57a832){_0x45c8bd+=0x1;continue;}if(_0x20be18[_0x45c8bd+0x1]===_0x57a832){_0x45c8bd+=0x2;continue;}break;}if(_0x57a832==='\x27')_0x554773(_0x10acaa,Math[_0x51a54f(0x1f5)](_0x45c8bd+0x1,_0x20be18[_0x51a54f(0x207)]));continue;}if(_0x1eb763==='-'&&_0x44f246==='-'){const _0x5e1d47=_0x45c8bd;while(_0x45c8bd<_0x20be18[_0x51a54f(0x207)]&&_0x20be18[_0x45c8bd]!=='\x0a')_0x45c8bd+=0x1;_0x554773(_0x5e1d47,_0x45c8bd);continue;}if(_0x1eb763==='/'&&_0x44f246==='*'){const _0x5d82e4=_0x45c8bd;_0x45c8bd+=0x2;while(_0x45c8bd<_0x20be18[_0x51a54f(0x207)]&&!(_0x20be18[_0x45c8bd]==='*'&&_0x20be18[_0x45c8bd+0x1]==='/')){_0x45c8bd+=0x1;}_0x45c8bd=Math['min'](_0x45c8bd+0x1,_0x20be18[_0x51a54f(0x207)]-0x1),_0x554773(_0x5d82e4,_0x45c8bd+0x1);continue;}if(_0x1eb763==='#'&&_0x44f246!=='{'){const _0x1fca04=_0x45c8bd;while(_0x45c8bd<_0x20be18[_0x51a54f(0x207)]&&_0x20be18[_0x45c8bd]!=='\x0a')_0x45c8bd+=0x1;_0x554773(_0x1fca04,_0x45c8bd);continue;}if((_0x1eb763==='#'||_0x1eb763==='$')&&_0x44f246==='{'){const _0x2fe201=_0x45c8bd;_0x45c8bd+=0x2;while(_0x45c8bd<_0x20be18[_0x51a54f(0x207)]&&_0x20be18[_0x45c8bd]!=='}')_0x45c8bd+=0x1;_0x554773(_0x2fe201,Math[_0x51a54f(0x1f5)](_0x45c8bd+0x1,_0x20be18['length']));}}return _0x20be18[_0x51a54f(0x1fd)]('');}function maskQuotedIdentifiers(_0x386512){const _0x459847=a209_0x495a,_0x29dc86=Array['from'](_0x386512);for(let _0x34da74=0x0;_0x34da74<_0x29dc86['length'];_0x34da74+=0x1){const _0x4d2509=_0x29dc86[_0x34da74];if(_0x4d2509!=='\x22'&&_0x4d2509!=='`')continue;_0x34da74+=0x1;while(_0x34da74<_0x29dc86[_0x459847(0x207)]){if(_0x29dc86[_0x34da74]===_0x4d2509){if(_0x29dc86[_0x34da74+0x1]===_0x4d2509){_0x29dc86[_0x34da74]='\x20',_0x29dc86[_0x34da74+0x1]='\x20',_0x34da74+=0x2;continue;}break;}_0x29dc86[_0x34da74]='\x20',_0x34da74+=0x1;}}return _0x29dc86['join']('');}function maskNestedQueries(_0x36b731){const _0x1919d4=a209_0x495a,_0x5c9b7b=Array['from'](_0x36b731);for(let _0x40640a=0x0;_0x40640a<_0x5c9b7b['length'];_0x40640a+=0x1){if(_0x5c9b7b[_0x40640a]!=='(')continue;const _0x523c47=_0x36b731[_0x1919d4(0x20e)](_0x40640a+0x1);if(!/^\s*(?:SELECT|WITH)\b/i[_0x1919d4(0x21f)](_0x523c47))continue;let _0x1acb95=0x1,_0x541a96=_0x40640a+0x1;for(;_0x541a96<_0x5c9b7b[_0x1919d4(0x207)]&&_0x1acb95>0x0;_0x541a96+=0x1){if(_0x5c9b7b[_0x541a96]==='(')_0x1acb95+=0x1;if(_0x5c9b7b[_0x541a96]===')')_0x1acb95-=0x1;}if(_0x1acb95!==0x0)continue;for(let _0x1fb856=_0x40640a;_0x1fb856<_0x541a96;_0x1fb856+=0x1){_0x5c9b7b[_0x1fb856]='\x20';}const _0xa11e55=_0x1919d4(0x223);for(let _0x13e1c0=0x0;_0x13e1c0<_0xa11e55[_0x1919d4(0x207)]&&_0x40640a+_0x13e1c0<_0x541a96;_0x13e1c0+=0x1){_0x5c9b7b[_0x40640a+_0x13e1c0]=_0xa11e55[_0x13e1c0];}_0x40640a=_0x541a96-0x1;}return _0x5c9b7b[_0x1919d4(0x1fd)]('');}function splitTopLevelAnd(_0x26f845){const _0x1fa1e6=a209_0x495a,_0x86d04e=[];let _0x4adf26=0x0,_0x14e93e=0x0;for(let _0x6d468f=0x0;_0x6d468f<_0x26f845[_0x1fa1e6(0x207)];_0x6d468f+=0x1){const _0x836d21=_0x26f845[_0x6d468f];if(_0x836d21==='(')_0x4adf26+=0x1;if(_0x836d21===')')_0x4adf26=Math[_0x1fa1e6(0x201)](0x0,_0x4adf26-0x1);_0x4adf26===0x0&&_0x26f845[_0x1fa1e6(0x20e)](_0x6d468f)[_0x1fa1e6(0x239)](/^AND\b/i)&&(_0x6d468f===0x0||/\s/[_0x1fa1e6(0x21f)](_0x26f845[_0x6d468f-0x1]??''))&&(_0x86d04e[_0x1fa1e6(0x226)](_0x26f845[_0x1fa1e6(0x20e)](_0x14e93e,_0x6d468f)[_0x1fa1e6(0x22c)]()),_0x6d468f+=0x2,_0x14e93e=_0x6d468f+0x1);}const _0x2bd7a6=_0x26f845['slice'](_0x14e93e)[_0x1fa1e6(0x22c)]();if(_0x2bd7a6)_0x86d04e[_0x1fa1e6(0x226)](_0x2bd7a6);return _0x86d04e;}function hasTopLevelKeyword(_0x1ce3a8,_0x49d8ad){const _0x3112c1=a209_0x495a;let _0x4f6649=0x0;for(let _0x24c4f6=0x0;_0x24c4f6<_0x1ce3a8[_0x3112c1(0x207)];_0x24c4f6+=0x1){const _0x150a69=_0x1ce3a8[_0x24c4f6];if(_0x150a69==='(')_0x4f6649+=0x1;if(_0x150a69===')')_0x4f6649=Math['max'](0x0,_0x4f6649-0x1);if(_0x4f6649!==0x0)continue;const _0x2e08f2=_0x1ce3a8[_0x3112c1(0x20e)](_0x24c4f6,_0x24c4f6+_0x49d8ad[_0x3112c1(0x207)]),_0x4fb924=_0x1ce3a8[_0x24c4f6-0x1]??'\x20',_0x53785c=_0x1ce3a8[_0x24c4f6+_0x49d8ad[_0x3112c1(0x207)]]??'\x20';if(_0x2e08f2[_0x3112c1(0x217)]()===_0x49d8ad[_0x3112c1(0x217)]()&&!/[\w$]/[_0x3112c1(0x21f)](_0x4fb924)&&!/[\w$]/[_0x3112c1(0x21f)](_0x53785c))return!![];}return![];}function splitEquality(_0x8fed3d){const _0x43d256=a209_0x495a,_0x1872a4=stripOuterParentheses(_0x8fed3d);let _0x119c57=0x0,_0x59fa1f;for(let _0x402c99=0x0;_0x402c99<_0x1872a4[_0x43d256(0x207)];_0x402c99+=0x1){const _0x4e31e8=_0x1872a4[_0x402c99];if(_0x4e31e8==='(')_0x119c57+=0x1;if(_0x4e31e8===')')_0x119c57=Math[_0x43d256(0x201)](0x0,_0x119c57-0x1);const _0x44ca01=_0x1872a4[_0x402c99-0x1]??'',_0xfbe2c6=_0x1872a4[_0x402c99+0x1]??'';if(_0x4e31e8==='='&&_0x119c57===0x0&&!/[!<>=:]/[_0x43d256(0x21f)](_0x44ca01)&&_0xfbe2c6!=='='){if(_0x59fa1f!==undefined)return null;_0x59fa1f=_0x402c99;}}return _0x59fa1f===undefined?null:[_0x1872a4[_0x43d256(0x20e)](0x0,_0x59fa1f)[_0x43d256(0x22c)](),_0x1872a4[_0x43d256(0x20e)](_0x59fa1f+0x1)[_0x43d256(0x22c)]()];}function parseDirectColumnReference(_0x281028,_0x5cc82f){const _0x5a1b8a=a209_0x495a,_0x1936ac=/^([`"]?[\w$]+[`"]?)\s*\.\s*([`"]?[\w$]+[`"]?)$/[_0x5a1b8a(0x200)](stripOuterParentheses(_0x281028));if(!_0x1936ac)return null;if(normalizeIdentifier(_0x1936ac[0x1]??'')!==normalizeIdentifier(_0x5cc82f))return null;return normalizeIdentifier(_0x1936ac[0x2]??'');}function containsColumnReference(_0x35f186,_0x3596c7){const _0x5e86f4=a209_0x495a,_0x55924c=_0x35f186[_0x5e86f4(0x1fc)](/[`"]/g,''),_0x427832=_0x3596c7[_0x5e86f4(0x1fc)](/[.*+?^${}()|[\]\\]/g,_0x5e86f4(0x1fe));return new RegExp(_0x5e86f4(0x1f4)+_0x427832+_0x5e86f4(0x232),'i')[_0x5e86f4(0x21f)](_0x55924c);}function findEqualityPrefix(_0x4c626d,_0x2d455c){const _0x337f7c=a209_0x495a,_0x560727=new Set(_0x2d455c[_0x337f7c(0x237)](normalizeIdentifier)),_0x333eed=[];for(const _0x35ba61 of _0x4c626d){if(!_0x560727['has'](normalizeIdentifier(_0x35ba61)))break;_0x333eed['push'](_0x35ba61);}return _0x333eed;}function resolveTableMetadata(_0x680c8,_0xd89447){const _0x2bf5ec=a209_0x495a,_0x2eef90=normalizeIdentifier(_0xd89447),_0xa62be8=_0x680c8[_0x2bf5ec(0x208)](_0x409f60=>normalizeIdentifier(_0x409f60[_0x2bf5ec(0x1f9)])===_0x2eef90);if(_0xa62be8[_0x2bf5ec(0x207)]===0x1)return _0xa62be8[0x0];const _0x54fb81=_0x2eef90[_0x2bf5ec(0x203)]('.'),_0x7d49fd=_0x2eef90[_0x2bf5ec(0x21c)]('.')['at'](-0x1),_0x22eb38=_0x680c8[_0x2bf5ec(0x208)](_0x1aeb0a=>{const _0x1a48f6=_0x2bf5ec,_0x53c1ae=normalizeIdentifier(_0x1aeb0a[_0x1a48f6(0x1f9)]);if(_0x54fb81&&_0x53c1ae['includes']('.'))return![];return _0x53c1ae[_0x1a48f6(0x21c)]('.')['at'](-0x1)===_0x7d49fd;});return _0x22eb38[_0x2bf5ec(0x207)]===0x1?_0x22eb38[0x0]:undefined;}function columnNamesMatch(_0x8f06a0,_0x3937ce){return normalizeIdentifier(_0x8f06a0)===normalizeIdentifier(_0x3937ce);}function a209_0xf03a(){const _0x4c160b=['from','length','filter','right','Derived-table\x20JOIN\x20targets\x20are\x20not\x20supported.','151712XuLIGy','matchedPrefix','reduce','slice','Relevant\x20columns\x20do\x20not\x20form\x20a\x20complete\x20leftmost\x20index\x20prefix.','1639098uodReL','6cFOYjG','INDEX_METADATA_UNAVAILABLE','covered','using','left','startsWith','toUpperCase','Not\x20every\x20JOIN\x20target\x20predicate\x20could\x20be\x20audited\x20safely.','40234LsPSjq','indexes','50EOOKnR','split','No\x20dataset\x20metadata\x20matched\x20the\x20JOIN\x20table.','JOIN_INDEX_MISSING','test','OR-connected\x20JOIN\x20predicates\x20are\x20not\x20supported.','292985WhfBWW','toLowerCase','__sq__','add','inner','push','table','568hDouNH','search','unavailable','unsupportedReason','trim','metadataAvailable','natural','unsupportedPredicate','14OZHpwf','752065cudtSl','\x5cs*\x5c.\x5cs*[\x5cw$]+','some','position','JOIN_PREDICATE_UNSUPPORTED','warning','map','matchAll','match','\x20JOIN\x20direction\x20is\x20not\x20supported\x20by\x20static\x20index\x20auditing.','columns','cross','full','(?:^|[^\x5cw$])','min','endsWith','alias','INNER','tableName','2532klYtXi','JOIN_INDEX_NOT_USABLE','replace','join','\x5c$&','197838jNddAB','exec','max','has','includes','index','The\x20dataset\x20returned\x20no\x20distinguishable\x20index\x20metadata.'];a209_0xf03a=function(){return _0x4c160b;};return a209_0xf03a();}function a209_0x495a(_0x3f8dc4,_0x18c42d){_0x3f8dc4=_0x3f8dc4-0x1f0;const _0xf03a35=a209_0xf03a();let _0x495a5b=_0xf03a35[_0x3f8dc4];return _0x495a5b;}function normalizeIdentifier(_0x519371){const _0x923bb=a209_0x495a;return _0x519371[_0x923bb(0x1fc)](/[`"]/g,'')[_0x923bb(0x22c)]()[_0x923bb(0x222)]();}function isSqlClauseKeyword(_0x25481e){const _0x2c6eaf=a209_0x495a;return new Set(['on',_0x2c6eaf(0x214),'where',_0x2c6eaf(0x1fd),_0x2c6eaf(0x225),_0x2c6eaf(0x215),_0x2c6eaf(0x209),_0x2c6eaf(0x1f3),_0x2c6eaf(0x1f2),_0x2c6eaf(0x22e)])['has'](_0x25481e);}function stripOuterParentheses(_0x53e9da){const _0x47d3c5=a209_0x495a;let _0x10b6b8=_0x53e9da['trim']();while(_0x10b6b8[_0x47d3c5(0x216)]('(')&&_0x10b6b8[_0x47d3c5(0x1f6)](')')){let _0x1c2eec=0x0,_0x75ae7=!![];for(let _0x5c53e5=0x0;_0x5c53e5<_0x10b6b8[_0x47d3c5(0x207)];_0x5c53e5+=0x1){if(_0x10b6b8[_0x5c53e5]==='(')_0x1c2eec+=0x1;if(_0x10b6b8[_0x5c53e5]===')')_0x1c2eec-=0x1;if(_0x1c2eec===0x0&&_0x5c53e5<_0x10b6b8['length']-0x1){_0x75ae7=![];break;}}if(!_0x75ae7||_0x1c2eec!==0x0)break;_0x10b6b8=_0x10b6b8[_0x47d3c5(0x20e)](0x1,-0x1)[_0x47d3c5(0x22c)]();}return _0x10b6b8;}
@@ -1 +1 @@
1
- const a210_0x12c092=a210_0x353a;(function(_0x1e4c49,_0xb775a2){const _0x4e3261=a210_0x353a,_0x2f0935=_0x1e4c49();while(!![]){try{const _0x2e0534=-parseInt(_0x4e3261(0xd4))/0x1+-parseInt(_0x4e3261(0xc9))/0x2+parseInt(_0x4e3261(0xd3))/0x3*(parseInt(_0x4e3261(0xd0))/0x4)+-parseInt(_0x4e3261(0xd1))/0x5*(parseInt(_0x4e3261(0xc8))/0x6)+-parseInt(_0x4e3261(0xcb))/0x7+-parseInt(_0x4e3261(0xcf))/0x8*(parseInt(_0x4e3261(0xd2))/0x9)+parseInt(_0x4e3261(0xcd))/0xa;if(_0x2e0534===_0xb775a2)break;else _0x2f0935['push'](_0x2f0935['shift']());}catch(_0x5bbf13){_0x2f0935['push'](_0x2f0935['shift']());}}}(a210_0x4083,0x48398));import{resolve}from'node:path';function a210_0x4083(){const _0x5c4353=['sql','36wvXUup','621384LsJBrF','sql-trash','3664115GeSIWC','sql.lock.json','19380770sJFHwK','/sql','3216440plKnNR','11884qINfaS','187045baAhKj','9tKWykM','258LJdaEk','437105rRaPwH'];a210_0x4083=function(){return _0x5c4353;};return a210_0x4083();}import{findProjectRootDirectory}from'../../context.js';const DOT_DIR='.rabetbase',LOCK_FILE_NAME=a210_0x12c092(0xcc),TRASH_DIR_NAME=a210_0x12c092(0xca);function a210_0x353a(_0x4fc804,_0x3980a4){_0x4fc804=_0x4fc804-0xc7;const _0x408345=a210_0x4083();let _0x353ac1=_0x408345[_0x4fc804];return _0x353ac1;}export function loadSqlProjectConfig(_0x21d604,_0x48595c){const _0x40e66c=a210_0x12c092,_0x228145=resolve(_0x48595c??findProjectRootDirectory()),_0x333f2e=DOT_DIR+_0x40e66c(0xce),_0x21a65d=_0x333f2e+'/'+_0x21d604;return{'projectRoot':_0x228145,'appCode':_0x21d604,'sqlWorkspaceRoot':_0x333f2e,'sqlRoot':_0x21a65d,'sqlRootDir':resolve(_0x228145,DOT_DIR,_0x40e66c(0xc7),_0x21d604),'lockFilePath':resolve(_0x228145,DOT_DIR,LOCK_FILE_NAME),'trashDir':resolve(_0x228145,DOT_DIR,TRASH_DIR_NAME)};}
1
+ const a210_0x17766d=a210_0x5293;function a210_0x5293(_0x48f7d5,_0x16a210){_0x48f7d5=_0x48f7d5-0xb5;const _0x149d95=a210_0x149d();let _0x5293b8=_0x149d95[_0x48f7d5];return _0x5293b8;}function a210_0x149d(){const _0x4a2b65=['1794678kjVSWT','4HmyilT','sql-trash','29511YANjbZ','/sql','2744eVcsvb','.rabetbase','100932WxLBSw','235IJXnjR','3926263IAOQbF','447342ZgkqIW','5913234QlcaNQ','260855oRkmQP','70kSykmB'];a210_0x149d=function(){return _0x4a2b65;};return a210_0x149d();}(function(_0x424c20,_0x57c17c){const _0x1e260e=a210_0x5293,_0x4949da=_0x424c20();while(!![]){try{const _0x2e9627=parseInt(_0x1e260e(0xc1))/0x1*(-parseInt(_0x1e260e(0xb6))/0x2)+parseInt(_0x1e260e(0xb5))/0x3+parseInt(_0x1e260e(0xbc))/0x4*(parseInt(_0x1e260e(0xbd))/0x5)+parseInt(_0x1e260e(0xc0))/0x6+parseInt(_0x1e260e(0xbf))/0x7+-parseInt(_0x1e260e(0xba))/0x8*(-parseInt(_0x1e260e(0xb8))/0x9)+parseInt(_0x1e260e(0xc2))/0xa*(-parseInt(_0x1e260e(0xbe))/0xb);if(_0x2e9627===_0x57c17c)break;else _0x4949da['push'](_0x4949da['shift']());}catch(_0x45a743){_0x4949da['push'](_0x4949da['shift']());}}}(a210_0x149d,0xe505e));import{resolve}from'node:path';import{findProjectRootDirectory}from'../../context.js';const DOT_DIR=a210_0x17766d(0xbb),LOCK_FILE_NAME='sql.lock.json',TRASH_DIR_NAME=a210_0x17766d(0xb7);export function loadSqlProjectConfig(_0x4c0773,_0x2cd28a){const _0x25e4c5=a210_0x17766d,_0x48db0d=resolve(_0x2cd28a??findProjectRootDirectory()),_0x39aa19=DOT_DIR+_0x25e4c5(0xb9),_0x1d8557=_0x39aa19+'/'+_0x4c0773;return{'projectRoot':_0x48db0d,'appCode':_0x4c0773,'sqlWorkspaceRoot':_0x39aa19,'sqlRoot':_0x1d8557,'sqlRootDir':resolve(_0x48db0d,DOT_DIR,'sql',_0x4c0773),'lockFilePath':resolve(_0x48db0d,DOT_DIR,LOCK_FILE_NAME),'trashDir':resolve(_0x48db0d,DOT_DIR,TRASH_DIR_NAME)};}
@@ -1 +1 @@
1
- (function(_0x6990f,_0x3d2027){const _0x46267a=a211_0x3429,_0x541670=_0x6990f();while(!![]){try{const _0x5cf3a6=-parseInt(_0x46267a(0x193))/0x1+parseInt(_0x46267a(0x186))/0x2+-parseInt(_0x46267a(0x19f))/0x3*(-parseInt(_0x46267a(0x194))/0x4)+parseInt(_0x46267a(0x1a0))/0x5*(-parseInt(_0x46267a(0x192))/0x6)+parseInt(_0x46267a(0x18e))/0x7+parseInt(_0x46267a(0x191))/0x8+parseInt(_0x46267a(0x189))/0x9*(-parseInt(_0x46267a(0x1a1))/0xa);if(_0x5cf3a6===_0x3d2027)break;else _0x541670['push'](_0x541670['shift']());}catch(_0x4b6661){_0x541670['push'](_0x541670['shift']());}}}(a211_0x1e86,0x41e86));import{readdir,stat}from'node:fs/promises';import{extname,join,relative}from'node:path';import{buildDefaultSqlFileName,buildSqlRelativePath}from'./utils.js';function a211_0x3429(_0x4a0d5d,_0x1fb13a){_0x4a0d5d=_0x4a0d5d-0x185;const _0x1e8686=a211_0x1e86();let _0x3429a1=_0x1e8686[_0x4a0d5d];return _0x3429a1;}function extensionToMode(_0x166562){const _0x2bb0a1=a211_0x3429;if(_0x166562===_0x2bb0a1(0x196))return _0x2bb0a1(0x195);if(_0x166562===_0x2bb0a1(0x19a))return _0x2bb0a1(0x190);return undefined;}async function scanSqlFilesRecursively(_0x4948d1,_0x1b4271){const _0x5b769d=a211_0x3429,_0x293ba8=[];try{const _0x491d8e=await readdir(_0x4948d1,{'withFileTypes':!![]});for(const _0x5271db of _0x491d8e){const _0x3e00c9=join(_0x4948d1,_0x5271db[_0x5b769d(0x18d)]);if(_0x5271db[_0x5b769d(0x18b)]()){_0x293ba8[_0x5b769d(0x19b)](...await scanSqlFilesRecursively(_0x3e00c9,_0x1b4271));continue;}if(!_0x5271db['isFile']())continue;const _0x3b5f66=extname(_0x5271db['name'])[_0x5b769d(0x1a3)](),_0x43ec61=extensionToMode(_0x3b5f66);if(!_0x43ec61)continue;const _0x18a733=relative(_0x1b4271,_0x3e00c9)[_0x5b769d(0x187)](/\\/g,'/'),_0x2ccd52=_0x18a733['split']('/')[_0x5b769d(0x18c)](Boolean),_0x29cd94=parseSqlPath(_0x2ccd52,_0x5271db[_0x5b769d(0x18d)],_0x3b5f66);if(!_0x29cd94)continue;_0x293ba8[_0x5b769d(0x19b)]({'sqlCode':_0x29cd94[_0x5b769d(0x197)],'sqlName':_0x29cd94['sqlName'],'dbDirectory':_0x2ccd52[0x0],'filePath':_0x3e00c9,'relativePath':_0x18a733,'lockKey':_0x29cd94[_0x5b769d(0x197)],'mode':_0x43ec61});}}catch(_0x40bb13){if(_0x40bb13[_0x5b769d(0x198)]!==_0x5b769d(0x18a))throw _0x40bb13;}return _0x293ba8;}export async function scanLocalSqlQueries(_0x1b2d46){const _0x10f410=a211_0x3429;return scanSqlFilesRecursively(_0x1b2d46[_0x10f410(0x188)],_0x1b2d46[_0x10f410(0x188)]);}function a211_0x1e86(){const _0x2a3f64=['.sql','sqlCode','code','test','.xml','push','mode','length','dbName','6gUqnjM','5MhtsrF','14870aUppEl','slice','toLowerCase','sqlName','117290eseURK','replace','sqlRootDir','1062ZreUjg','ENOENT','isDirectory','filter','name','2169552HSNpgK','path','mybatisXml','3164912QcZEeI','1477182VpcNtN','217740MgEaMQ','290332djRMpu','sql'];a211_0x1e86=function(){return _0x2a3f64;};return a211_0x1e86();}export function resolveLocalSqlFilePath(_0xc2056,_0x53e15d,_0x34d2ba){const _0x20a62b=a211_0x3429,_0x197dee=_0x34d2ba?.[_0x20a62b(0x18f)]||(_0x34d2ba?.[_0x20a62b(0x185)]||_0x34d2ba?.[_0x20a62b(0x19e)]?buildSqlRelativePath(_0x53e15d,_0x34d2ba?.['sqlName'],_0x34d2ba?.[_0x20a62b(0x19e)],_0x34d2ba?.[_0x20a62b(0x19c)]||_0x20a62b(0x195),_0x34d2ba?.['dbId']):buildDefaultSqlFileName(_0x53e15d,_0x34d2ba?.['mode']||_0x20a62b(0x195)));return join(_0xc2056[_0x20a62b(0x188)],_0x197dee);}export async function directoryExists(_0xe88b2e){try{const _0x1e3e64=await stat(_0xe88b2e);return _0x1e3e64['isDirectory']();}catch{return![];}}function parseSqlPath(_0x52e086,_0x2bc99a,_0xd9e2f6){const _0x2bf344=a211_0x3429,_0x106927=_0x2bc99a[_0x2bf344(0x1a2)](0x0,-_0xd9e2f6['length']);if(_0x52e086[_0x2bf344(0x19d)]<0x2)return null;const _0x2823bc=_0x106927['indexOf']('_');if(_0x2823bc<=0x0||_0x2823bc>=_0x106927[_0x2bf344(0x19d)]-0x1)return null;const _0x380c11=_0x106927[_0x2bf344(0x1a2)](0x0,_0x2823bc);if(!isLikelySqlCode(_0x380c11))return null;return{'sqlCode':_0x380c11,'sqlName':_0x106927[_0x2bf344(0x1a2)](_0x2823bc+0x1)};}function isLikelySqlCode(_0x125ac6){const _0x18f232=a211_0x3429;return/^[A-Za-z0-9-]+-[A-Za-z0-9-]+$/[_0x18f232(0x199)](_0x125ac6);}
1
+ (function(_0x5dde4f,_0x551765){const _0x28f6a9=a211_0x4cd9,_0x209b86=_0x5dde4f();while(!![]){try{const _0x2340ec=-parseInt(_0x28f6a9(0x87))/0x1*(-parseInt(_0x28f6a9(0x7a))/0x2)+-parseInt(_0x28f6a9(0x73))/0x3+-parseInt(_0x28f6a9(0x7e))/0x4+parseInt(_0x28f6a9(0x7b))/0x5+parseInt(_0x28f6a9(0x76))/0x6*(parseInt(_0x28f6a9(0x72))/0x7)+parseInt(_0x28f6a9(0x70))/0x8*(-parseInt(_0x28f6a9(0x89))/0x9)+parseInt(_0x28f6a9(0x7c))/0xa;if(_0x2340ec===_0x551765)break;else _0x209b86['push'](_0x209b86['shift']());}catch(_0x226d23){_0x209b86['push'](_0x209b86['shift']());}}}(a211_0x2030,0x43d94));function a211_0x2030(){const _0x4e4b30=['926397nMNpLq','sql','length','slice','sqlName','sqlRootDir','push','16tfRQCa','name','45521OHHBoX','1326867ZCoBZc','.xml','isDirectory','474XgjKRA','dbName','toLowerCase','dbId','514TyLbtj','103310UEfDjA','7668110KIcbba','path','2104024qIyGCP','code','indexOf','replace','isFile','.sql','mode','sqlCode','split','587IQsvEI','ENOENT'];a211_0x2030=function(){return _0x4e4b30;};return a211_0x2030();}import{readdir,stat}from'node:fs/promises';import{extname,join,relative}from'node:path';function a211_0x4cd9(_0x3bfb17,_0x3fe894){_0x3bfb17=_0x3bfb17-0x6d;const _0x20301d=a211_0x2030();let _0x4cd9cb=_0x20301d[_0x3bfb17];return _0x4cd9cb;}import{buildDefaultSqlFileName,buildSqlRelativePath}from'./utils.js';function extensionToMode(_0x3ab864){const _0xf90109=a211_0x4cd9;if(_0x3ab864===_0xf90109(0x83))return'sql';if(_0x3ab864===_0xf90109(0x74))return'mybatisXml';return undefined;}async function scanSqlFilesRecursively(_0x5a1c37,_0x2c4c41){const _0x45c802=a211_0x4cd9,_0x9e093b=[];try{const _0x291715=await readdir(_0x5a1c37,{'withFileTypes':!![]});for(const _0x439038 of _0x291715){const _0x4a85df=join(_0x5a1c37,_0x439038['name']);if(_0x439038[_0x45c802(0x75)]()){_0x9e093b[_0x45c802(0x6f)](...await scanSqlFilesRecursively(_0x4a85df,_0x2c4c41));continue;}if(!_0x439038[_0x45c802(0x82)]())continue;const _0x3f654d=extname(_0x439038[_0x45c802(0x71)])[_0x45c802(0x78)](),_0x4dc6e8=extensionToMode(_0x3f654d);if(!_0x4dc6e8)continue;const _0x3cbbfa=relative(_0x2c4c41,_0x4a85df)[_0x45c802(0x81)](/\\/g,'/'),_0x210a7a=_0x3cbbfa[_0x45c802(0x86)]('/')['filter'](Boolean),_0x587067=parseSqlPath(_0x210a7a,_0x439038[_0x45c802(0x71)],_0x3f654d);if(!_0x587067)continue;_0x9e093b[_0x45c802(0x6f)]({'sqlCode':_0x587067[_0x45c802(0x85)],'sqlName':_0x587067[_0x45c802(0x6d)],'dbDirectory':_0x210a7a[0x0],'filePath':_0x4a85df,'relativePath':_0x3cbbfa,'lockKey':_0x587067[_0x45c802(0x85)],'mode':_0x4dc6e8});}}catch(_0x15d848){if(_0x15d848[_0x45c802(0x7f)]!==_0x45c802(0x88))throw _0x15d848;}return _0x9e093b;}export async function scanLocalSqlQueries(_0x371f06){const _0x4d413a=a211_0x4cd9;return scanSqlFilesRecursively(_0x371f06[_0x4d413a(0x6e)],_0x371f06[_0x4d413a(0x6e)]);}export function resolveLocalSqlFilePath(_0x8d82e5,_0x250b41,_0x28415b){const _0x21c075=a211_0x4cd9,_0x146da3=_0x28415b?.[_0x21c075(0x7d)]||(_0x28415b?.[_0x21c075(0x6d)]||_0x28415b?.[_0x21c075(0x77)]?buildSqlRelativePath(_0x250b41,_0x28415b?.['sqlName'],_0x28415b?.[_0x21c075(0x77)],_0x28415b?.[_0x21c075(0x84)]||'sql',_0x28415b?.[_0x21c075(0x79)]):buildDefaultSqlFileName(_0x250b41,_0x28415b?.[_0x21c075(0x84)]||_0x21c075(0x8a)));return join(_0x8d82e5[_0x21c075(0x6e)],_0x146da3);}export async function directoryExists(_0x2653f4){const _0x55b469=a211_0x4cd9;try{const _0xc6e549=await stat(_0x2653f4);return _0xc6e549[_0x55b469(0x75)]();}catch{return![];}}function parseSqlPath(_0x44eeb6,_0x595915,_0x14714b){const _0x132c05=a211_0x4cd9,_0x376701=_0x595915[_0x132c05(0x8c)](0x0,-_0x14714b[_0x132c05(0x8b)]);if(_0x44eeb6[_0x132c05(0x8b)]<0x2)return null;const _0x45c145=_0x376701[_0x132c05(0x80)]('_');if(_0x45c145<=0x0||_0x45c145>=_0x376701[_0x132c05(0x8b)]-0x1)return null;const _0x22ad92=_0x376701['slice'](0x0,_0x45c145);if(!isLikelySqlCode(_0x22ad92))return null;return{'sqlCode':_0x22ad92,'sqlName':_0x376701['slice'](_0x45c145+0x1)};}function isLikelySqlCode(_0x3b2a1f){return/^[A-Za-z0-9-]+-[A-Za-z0-9-]+$/['test'](_0x3b2a1f);}
@@ -1 +1 @@
1
- (function(_0x2907a2,_0x4f4060){const _0x4c93d8=a212_0x74bb,_0x17845c=_0x2907a2();while(!![]){try{const _0x291ac2=-parseInt(_0x4c93d8(0xf5))/0x1*(-parseInt(_0x4c93d8(0xea))/0x2)+-parseInt(_0x4c93d8(0xf6))/0x3+-parseInt(_0x4c93d8(0xee))/0x4+parseInt(_0x4c93d8(0xf3))/0x5+parseInt(_0x4c93d8(0xf2))/0x6*(parseInt(_0x4c93d8(0xef))/0x7)+parseInt(_0x4c93d8(0xf0))/0x8+-parseInt(_0x4c93d8(0xf1))/0x9;if(_0x291ac2===_0x4f4060)break;else _0x17845c['push'](_0x17845c['shift']());}catch(_0x57080f){_0x17845c['push'](_0x17845c['shift']());}}}(a212_0x3d80,0x4b614));import{readFile}from'node:fs/promises';import a212_0x1d0d1e from'node:crypto';export function computeSqlContentHash(_0x51f3ee){const _0x3db1c2=a212_0x74bb;return a212_0x1d0d1e[_0x3db1c2(0xed)](_0x3db1c2(0xeb))[_0x3db1c2(0xec)](_0x51f3ee)['digest'](_0x3db1c2(0xf4));}function a212_0x74bb(_0xb48fc6,_0x3e28a3){_0xb48fc6=_0xb48fc6-0xea;const _0x3d8078=a212_0x3d80();let _0x74bbea=_0x3d8078[_0xb48fc6];return _0x74bbea;}function a212_0x3d80(){const _0x426509=['721086dmXsxZ','md5','update','createHash','1256244vdkCUA','34461wTdwgU','3378152sxOaBK','1197405WjDTjc','378pIytBD','1204295JpgnkI','hex','1vVyaDn','1733874RRyUaM'];a212_0x3d80=function(){return _0x426509;};return a212_0x3d80();}export async function computeSqlFileHash(_0x39e0df){const _0x4ce8e5=await readFile(_0x39e0df,'utf8');return computeSqlContentHash(_0x4ce8e5);}
1
+ (function(_0x49cc80,_0x21fd3a){const _0x33da5a=a212_0x1b5d,_0xa5c5a1=_0x49cc80();while(!![]){try{const _0xbff0e7=parseInt(_0x33da5a(0x159))/0x1+parseInt(_0x33da5a(0x15c))/0x2*(parseInt(_0x33da5a(0x151))/0x3)+-parseInt(_0x33da5a(0x154))/0x4*(-parseInt(_0x33da5a(0x152))/0x5)+-parseInt(_0x33da5a(0x150))/0x6*(parseInt(_0x33da5a(0x15d))/0x7)+-parseInt(_0x33da5a(0x156))/0x8*(parseInt(_0x33da5a(0x157))/0x9)+parseInt(_0x33da5a(0x153))/0xa+-parseInt(_0x33da5a(0x15f))/0xb;if(_0xbff0e7===_0x21fd3a)break;else _0xa5c5a1['push'](_0xa5c5a1['shift']());}catch(_0x1e5f42){_0xa5c5a1['push'](_0xa5c5a1['shift']());}}}(a212_0x142d,0x95337));import{readFile}from'node:fs/promises';import a212_0x521e57 from'node:crypto';function a212_0x142d(){const _0x34a995=['utf8','1106792zjkUIk','18cguacR','digest','1009132qUTZSG','update','createHash','246770cQuSGa','7SvNBus','hex','4485635tANbIy','6418254RGWwwR','3qquVBG','3935LnoyVj','342010UeyzrJ','6092AzydTA'];a212_0x142d=function(){return _0x34a995;};return a212_0x142d();}function a212_0x1b5d(_0x5bf39a,_0x54826e){_0x5bf39a=_0x5bf39a-0x150;const _0x142dad=a212_0x142d();let _0x1b5d77=_0x142dad[_0x5bf39a];return _0x1b5d77;}export function computeSqlContentHash(_0x20bca1){const _0x3c14aa=a212_0x1b5d;return a212_0x521e57[_0x3c14aa(0x15b)]('md5')[_0x3c14aa(0x15a)](_0x20bca1)[_0x3c14aa(0x158)](_0x3c14aa(0x15e));}export async function computeSqlFileHash(_0x1afada){const _0x2f57ff=a212_0x1b5d,_0x19ca2a=await readFile(_0x1afada,_0x2f57ff(0x155));return computeSqlContentHash(_0x19ca2a);}
@@ -1 +1 @@
1
- (function(_0x1a0303,_0x51ef39){const _0x202862=a213_0x2f8b,_0x10cc4b=_0x1a0303();while(!![]){try{const _0x500238=parseInt(_0x202862(0xeb))/0x1*(-parseInt(_0x202862(0xe0))/0x2)+parseInt(_0x202862(0xe6))/0x3*(-parseInt(_0x202862(0xed))/0x4)+parseInt(_0x202862(0xf0))/0x5*(parseInt(_0x202862(0xea))/0x6)+parseInt(_0x202862(0xe1))/0x7*(parseInt(_0x202862(0xe2))/0x8)+-parseInt(_0x202862(0xec))/0x9+parseInt(_0x202862(0xf1))/0xa+-parseInt(_0x202862(0xf4))/0xb*(parseInt(_0x202862(0xe7))/0xc);if(_0x500238===_0x51ef39)break;else _0x10cc4b['push'](_0x10cc4b['shift']());}catch(_0x4d728e){_0x10cc4b['push'](_0x10cc4b['shift']());}}}(a213_0x28b5,0x993ad));import{mkdir,readFile,writeFile}from'node:fs/promises';function a213_0x28b5(){const _0x505c47=['\x22.\x20',':\x20sqlRoot\x20mismatch\x20—\x20current\x20\x22','6070LcrmVK','6560830VSrqDt','apps','stringify','427559zsjHbO','parse','ENOENT','Check\x20.rabetbase/sql.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.','6CalrlY','7QLAzPF','3555664OPfMKr','sqlRoot','code','Failed\x20to\x20read\x20SQL\x20lock\x20file:\x20','566883dfGUjk','60YWkNNA','sqls','lastSync','66WFnEhq','29507IDskFD','129951HuJQbN','4KydYib'];a213_0x28b5=function(){return _0x505c47;};return a213_0x28b5();}import{dirname}from'node:path';export function createEmptySqlLock(){return{'apps':{}};}export function ensureSqlLockScope(_0x2b3015,_0x5f54ae,_0x191e07,_0x2ec8ff){const _0x420492=a213_0x2f8b,_0x5f4d2d=_0x2b3015??createEmptySqlLock();let _0x2c0668=_0x5f4d2d[_0x420492(0xf2)][_0x5f54ae];if(!_0x2c0668)return _0x2c0668={'sqlRoot':_0x191e07,'lastSync':'','sqls':{}},_0x5f4d2d['apps'][_0x5f54ae]=_0x2c0668,{'lockData':_0x5f4d2d,'appLock':_0x2c0668};if(!_0x2c0668['sqlRoot'])_0x2c0668[_0x420492(0xe3)]=_0x191e07;else{if(_0x2c0668[_0x420492(0xe3)]!==_0x191e07)throw new Error(_0x2ec8ff+_0x420492(0xef)+_0x191e07+'\x22\x20vs\x20lock\x20\x22'+_0x2c0668[_0x420492(0xe3)]+_0x420492(0xee)+_0x420492(0xdf));}return!_0x2c0668[_0x420492(0xe8)]&&(_0x2c0668[_0x420492(0xe8)]={}),!_0x2c0668[_0x420492(0xe9)]&&(_0x2c0668[_0x420492(0xe9)]=''),{'lockData':_0x5f4d2d,'appLock':_0x2c0668};}function a213_0x2f8b(_0x5b7390,_0x5e8a48){_0x5b7390=_0x5b7390-0xde;const _0x28b591=a213_0x28b5();let _0x2f8b3f=_0x28b591[_0x5b7390];return _0x2f8b3f;}export async function readSqlLockFile(_0x6370e1){const _0x3a4700=a213_0x2f8b;try{const _0x94997f=await readFile(_0x6370e1,'utf8');return JSON[_0x3a4700(0xf5)](_0x94997f);}catch(_0x23e370){if(_0x23e370[_0x3a4700(0xe4)]===_0x3a4700(0xde))return null;throw new Error(_0x3a4700(0xe5)+String(_0x23e370));}}export async function writeSqlLockFile(_0x595510,_0x909f71){const _0x452bff=a213_0x2f8b;await mkdir(dirname(_0x595510),{'recursive':!![]}),await writeFile(_0x595510,JSON[_0x452bff(0xf3)](_0x909f71,null,0x2),'utf8');}
1
+ (function(_0x45c953,_0x3cc3e5){const _0x379267=a213_0x18d1,_0x3ab8ac=_0x45c953();while(!![]){try{const _0x67fc81=-parseInt(_0x379267(0x1a6))/0x1*(parseInt(_0x379267(0x1b3))/0x2)+-parseInt(_0x379267(0x1a5))/0x3+parseInt(_0x379267(0x1a7))/0x4*(parseInt(_0x379267(0x1aa))/0x5)+parseInt(_0x379267(0x1b0))/0x6*(parseInt(_0x379267(0x1ac))/0x7)+-parseInt(_0x379267(0x1b1))/0x8+parseInt(_0x379267(0x1b4))/0x9*(-parseInt(_0x379267(0x1ad))/0xa)+-parseInt(_0x379267(0x1ab))/0xb*(-parseInt(_0x379267(0x1af))/0xc);if(_0x67fc81===_0x3cc3e5)break;else _0x3ab8ac['push'](_0x3ab8ac['shift']());}catch(_0x91b62c){_0x3ab8ac['push'](_0x3ab8ac['shift']());}}}(a213_0x3311,0x51777));import{mkdir,readFile,writeFile}from'node:fs/promises';function a213_0x3311(){const _0xef9f74=['apps','Check\x20.rabetbase/sql.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.','parse','sqls','sqlRoot','ENOENT','lastSync','135438JBtRAb','4UtDJWD','16vGcIpk','\x22\x20vs\x20lock\x20\x22','stringify','336830qlUhOB','7168546RCTRCB','7UhKmcF','10nPMmtN',':\x20sqlRoot\x20mismatch\x20—\x20current\x20\x22','12EelNcg','2857062PoShwv','957192wVPztg','Failed\x20to\x20read\x20SQL\x20lock\x20file:\x20','248026JvJybT','3625137mOumZD','code'];a213_0x3311=function(){return _0xef9f74;};return a213_0x3311();}import{dirname}from'node:path';export function createEmptySqlLock(){return{'apps':{}};}export function ensureSqlLockScope(_0x41c9ae,_0x3fe9e9,_0x329009,_0x13e85a){const _0x37b198=a213_0x18d1,_0x3834bd=_0x41c9ae??createEmptySqlLock();let _0x586d4e=_0x3834bd['apps'][_0x3fe9e9];if(!_0x586d4e)return _0x586d4e={'sqlRoot':_0x329009,'lastSync':'','sqls':{}},_0x3834bd[_0x37b198(0x19e)][_0x3fe9e9]=_0x586d4e,{'lockData':_0x3834bd,'appLock':_0x586d4e};if(!_0x586d4e['sqlRoot'])_0x586d4e['sqlRoot']=_0x329009;else{if(_0x586d4e[_0x37b198(0x1a2)]!==_0x329009)throw new Error(_0x13e85a+_0x37b198(0x1ae)+_0x329009+_0x37b198(0x1a8)+_0x586d4e['sqlRoot']+'\x22.\x20'+_0x37b198(0x19f));}return!_0x586d4e[_0x37b198(0x1a1)]&&(_0x586d4e['sqls']={}),!_0x586d4e[_0x37b198(0x1a4)]&&(_0x586d4e['lastSync']=''),{'lockData':_0x3834bd,'appLock':_0x586d4e};}export async function readSqlLockFile(_0x4edf8d){const _0x4eed9f=a213_0x18d1;try{const _0x16bc8b=await readFile(_0x4edf8d,'utf8');return JSON[_0x4eed9f(0x1a0)](_0x16bc8b);}catch(_0x38118c){if(_0x38118c[_0x4eed9f(0x19d)]===_0x4eed9f(0x1a3))return null;throw new Error(_0x4eed9f(0x1b2)+String(_0x38118c));}}function a213_0x18d1(_0x330cab,_0x4bd5fc){_0x330cab=_0x330cab-0x19d;const _0x33113e=a213_0x3311();let _0x18d118=_0x33113e[_0x330cab];return _0x18d118;}export async function writeSqlLockFile(_0x18f11b,_0x139c43){const _0x2b54a4=a213_0x18d1;await mkdir(dirname(_0x18f11b),{'recursive':!![]}),await writeFile(_0x18f11b,JSON[_0x2b54a4(0x1a9)](_0x139c43,null,0x2),'utf8');}
@@ -1 +1 @@
1
- function a215_0x1535(_0x3b93d5,_0x156ff0){_0x3b93d5=_0x3b93d5-0x190;const _0x5381a9=a215_0x5381();let _0x15352c=_0x5381a9[_0x3b93d5];return _0x15352c;}(function(_0x442305,_0x413546){const _0x4809e0=a215_0x1535,_0x4be241=_0x442305();while(!![]){try{const _0x2630fd=parseInt(_0x4809e0(0x192))/0x1*(-parseInt(_0x4809e0(0x19f))/0x2)+parseInt(_0x4809e0(0x19d))/0x3+parseInt(_0x4809e0(0x19a))/0x4+-parseInt(_0x4809e0(0x197))/0x5*(parseInt(_0x4809e0(0x190))/0x6)+parseInt(_0x4809e0(0x19b))/0x7*(parseInt(_0x4809e0(0x196))/0x8)+-parseInt(_0x4809e0(0x193))/0x9*(-parseInt(_0x4809e0(0x198))/0xa)+parseInt(_0x4809e0(0x199))/0xb*(-parseInt(_0x4809e0(0x194))/0xc);if(_0x2630fd===_0x413546)break;else _0x4be241['push'](_0x4be241['shift']());}catch(_0x26e704){_0x4be241['push'](_0x4be241['shift']());}}}(a215_0x5381,0x5dd47));export function detectSqlMode(_0x128b4b){const _0x2f6aca=a215_0x1535,_0x42bde1=_0x128b4b['trimStart']();if(/^<(select|insert|update|delete)\b/i['test'](_0x42bde1))return _0x2f6aca(0x195);return _0x2f6aca(0x191);}export function getSqlFileExtension(_0x1f2e2b){const _0x43b65d=a215_0x1535;return _0x1f2e2b===_0x43b65d(0x195)?'.xml':'.sql';}export function buildDefaultSqlFileName(_0x55fc8c,_0x11168b){return''+_0x55fc8c+getSqlFileExtension(_0x11168b);}export function sanitizeSqlPathSegment(_0x37a599,_0x592c22){const _0x3b7b33=a215_0x1535,_0x191fc2=String(_0x37a599??'')[_0x3b7b33(0x19e)](),_0xa92dc2=_0x191fc2[_0x3b7b33(0x19c)](/[<>:"/\\|?*\u0000-\u001F]/g,'-')['replace'](/\s+/g,'-')[_0x3b7b33(0x19c)](/-+/g,'-')['replace'](/^\.+/,'')[_0x3b7b33(0x19c)](/\.+$/,'')[_0x3b7b33(0x19c)](/^-+/,'')[_0x3b7b33(0x19c)](/-+$/,'');return _0xa92dc2||_0x592c22;}export function buildDbDirectoryName(_0x5da4f6,_0x49686f){return sanitizeSqlPathSegment(_0x5da4f6,_0x49686f!=null?'db-'+_0x49686f:'unknown-db');}function a215_0x5381(){const _0xecf614=['990912aDgmmC','trim','4KcFOFo','509820MOwSGO','sql','74551slBDmL','27LJbUtD','204eoBsFw','mybatisXml','261432eZtIaf','5bddEKB','1546390AgUnSg','418737OdrxiE','447392qLpjnA','77jVfYXr','replace'];a215_0x5381=function(){return _0xecf614;};return a215_0x5381();}export function buildSqlRelativePath(_0x50b8d3,_0x302bd3,_0x4cee05,_0x988622,_0x4b1d1e){const _0x3a2151=buildDbDirectoryName(_0x4cee05,_0x4b1d1e),_0x49638a=sanitizeSqlPathSegment(_0x50b8d3,'unknown-sql'),_0x5ad952=sanitizeSqlPathSegment(_0x302bd3,_0x49638a);return _0x3a2151+'/'+_0x49638a+'_'+_0x5ad952+getSqlFileExtension(_0x988622);}
1
+ (function(_0x1f15d6,_0x363c03){const _0x3fd110=a215_0x4456,_0x5be529=_0x1f15d6();while(!![]){try{const _0x2e7f55=-parseInt(_0x3fd110(0x116))/0x1*(parseInt(_0x3fd110(0x118))/0x2)+parseInt(_0x3fd110(0x11a))/0x3+parseInt(_0x3fd110(0x11f))/0x4+-parseInt(_0x3fd110(0x113))/0x5+parseInt(_0x3fd110(0x11c))/0x6+parseInt(_0x3fd110(0x111))/0x7+-parseInt(_0x3fd110(0x117))/0x8;if(_0x2e7f55===_0x363c03)break;else _0x5be529['push'](_0x5be529['shift']());}catch(_0x343a6f){_0x5be529['push'](_0x5be529['shift']());}}}(a215_0x6894,0x88b03));export function detectSqlMode(_0x43ea07){const _0x2c316b=a215_0x4456,_0x2564e9=_0x43ea07['trimStart']();if(/^<(select|insert|update|delete)\b/i[_0x2c316b(0x114)](_0x2564e9))return _0x2c316b(0x11e);return _0x2c316b(0x119);}function a215_0x6894(){const _0x4f8fd8=['mybatisXml','4070508qglHtm','unknown-db','2224684UeKqXN','.sql','418650tMrslz','test','db-','3826HgSpYv','13915064jJppaU','12dYUYfo','sql','2349654mdofOk','replace','1723722QOFHbN','trim'];a215_0x6894=function(){return _0x4f8fd8;};return a215_0x6894();}function a215_0x4456(_0x29c1fc,_0x19d671){_0x29c1fc=_0x29c1fc-0x111;const _0x68945c=a215_0x6894();let _0x4456f3=_0x68945c[_0x29c1fc];return _0x4456f3;}export function getSqlFileExtension(_0x54ba8b){const _0x178731=a215_0x4456;return _0x54ba8b===_0x178731(0x11e)?'.xml':_0x178731(0x112);}export function buildDefaultSqlFileName(_0x5a484a,_0x6972c4){return''+_0x5a484a+getSqlFileExtension(_0x6972c4);}export function sanitizeSqlPathSegment(_0x400b1a,_0x1db587){const _0x1868bf=a215_0x4456,_0x3d453e=String(_0x400b1a??'')[_0x1868bf(0x11d)](),_0x196d8b=_0x3d453e[_0x1868bf(0x11b)](/[<>:"/\\|?*\u0000-\u001F]/g,'-')[_0x1868bf(0x11b)](/\s+/g,'-')[_0x1868bf(0x11b)](/-+/g,'-')[_0x1868bf(0x11b)](/^\.+/,'')['replace'](/\.+$/,'')[_0x1868bf(0x11b)](/^-+/,'')[_0x1868bf(0x11b)](/-+$/,'');return _0x196d8b||_0x1db587;}export function buildDbDirectoryName(_0x32fad2,_0x42d6ae){const _0x185d07=a215_0x4456;return sanitizeSqlPathSegment(_0x32fad2,_0x42d6ae!=null?_0x185d07(0x115)+_0x42d6ae:_0x185d07(0x120));}export function buildSqlRelativePath(_0x1353f8,_0x20eb72,_0x5922f2,_0x2bdc6f,_0x5106c2){const _0x25f6c7=buildDbDirectoryName(_0x5922f2,_0x5106c2),_0x870b69=sanitizeSqlPathSegment(_0x1353f8,'unknown-sql'),_0x5ef977=sanitizeSqlPathSegment(_0x20eb72,_0x870b69);return _0x25f6c7+'/'+_0x870b69+'_'+_0x5ef977+getSqlFileExtension(_0x2bdc6f);}
@@ -1 +1 @@
1
- (function(_0x392c21,_0x35f81e){const _0x1bcd47=a216_0x17f9,_0x1e551d=_0x392c21();while(!![]){try{const _0x500bb6=-parseInt(_0x1bcd47(0x13a))/0x1*(parseInt(_0x1bcd47(0x13c))/0x2)+-parseInt(_0x1bcd47(0x11f))/0x3+-parseInt(_0x1bcd47(0x135))/0x4+parseInt(_0x1bcd47(0x128))/0x5+parseInt(_0x1bcd47(0x140))/0x6+-parseInt(_0x1bcd47(0x12d))/0x7+parseInt(_0x1bcd47(0x13f))/0x8;if(_0x500bb6===_0x35f81e)break;else _0x1e551d['push'](_0x1e551d['shift']());}catch(_0x210634){_0x1e551d['push'](_0x1e551d['shift']());}}}(a216_0x29ae,0x895cc));export function detectSqlType(_0x1f56d5){const _0x380a77=a216_0x17f9;if(!_0x1f56d5?.['trim']())return{'type':_0x380a77(0x142),'isSelectOnly':![],'isDangerous':![],'reason':_0x380a77(0x130)};const _0x440105=_0x1f56d5[_0x380a77(0x136)](/#\{[^}]*\}/g,'?')[_0x380a77(0x136)](/\$\{[^}]*\}/g,'?')[_0x380a77(0x136)](/@[^(\s]+(\([^)]*\))?/g,'')[_0x380a77(0x136)](/\/\*[\s\S]*?\*\//g,'')['trim'](),_0x35147e=_0x440105[_0x380a77(0x121)]('\x0a');let _0x1c9d2e='';for(const _0x552712 of _0x35147e){const _0x3fbda1=_0x552712[_0x380a77(0x13b)]();if(!_0x3fbda1||_0x3fbda1['startsWith']('--')||_0x3fbda1[_0x380a77(0x13e)]('/*'))continue;_0x1c9d2e=_0x3fbda1;break;}const _0x2538b7=_0x1c9d2e[_0x380a77(0x123)]();if(_0x2538b7[_0x380a77(0x13e)](_0x380a77(0x12c))||_0x2538b7[_0x380a77(0x13e)](_0x380a77(0x133))){const _0x475ce3=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i['test'](_0x440105);return{'type':_0x380a77(0x12c),'isSelectOnly':!_0x475ce3,'isDangerous':_0x475ce3,'reason':_0x475ce3?'SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT':undefined};}if(_0x2538b7['startsWith'](_0x380a77(0x138)))return{'type':_0x380a77(0x138),'isSelectOnly':![],'isDangerous':![]};if(_0x2538b7[_0x380a77(0x13e)](_0x380a77(0x126)))return{'type':'UPDATE','isSelectOnly':![],'isDangerous':![]};if(_0x2538b7['startsWith'](_0x380a77(0x139)))return{'type':_0x380a77(0x139),'isSelectOnly':![],'isDangerous':!![],'reason':_0x380a77(0x134)};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i[_0x380a77(0x143)](_0x2538b7))return{'type':_0x380a77(0x137),'isSelectOnly':![],'isDangerous':!![],'reason':'DDL\x20statements\x20are\x20blocked\x20from\x20auto-save'};return{'type':_0x380a77(0x142),'isSelectOnly':![],'isDangerous':![]};}function extractTables(_0x486bfb){const _0x5d531d=a216_0x17f9,_0x4da052=_0x486bfb['replace'](/#\{[^}]*\}/g,'?')[_0x5d531d(0x136)](/\$\{[^}]*\}/g,'?')[_0x5d531d(0x136)](/'[^']*'/g,'\x27\x27')[_0x5d531d(0x136)](/--.*$/gm,'')[_0x5d531d(0x136)](/\/\*[\s\S]*?\*\//g,''),_0x4e68e7=[],_0x247b92=_0x4da052[_0x5d531d(0x12a)](/FROM\s+([^\s,)(]+)/i);if(_0x247b92?.[0x1])_0x4e68e7[_0x5d531d(0x12f)](_0x247b92[0x1][_0x5d531d(0x136)](/[`"]/g,''));for(const _0x1207dc of _0x4da052[_0x5d531d(0x129)](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){const _0x2ba239=_0x1207dc[0x1]?.[_0x5d531d(0x136)](/[`"]/g,'');if(_0x2ba239&&!_0x4e68e7[_0x5d531d(0x125)](_0x2ba239))_0x4e68e7[_0x5d531d(0x12f)](_0x2ba239);}const _0x562dd1=_0x4da052[_0x5d531d(0x12a)](/INTO\s+([^\s(]+)/i);if(_0x562dd1?.[0x1]){const _0x3bd0d0=_0x562dd1[0x1]['replace'](/[`"]/g,'');if(!_0x4e68e7[_0x5d531d(0x125)](_0x3bd0d0))_0x4e68e7[_0x5d531d(0x12f)](_0x3bd0d0);}const _0x47a129=_0x4da052[_0x5d531d(0x12a)](/UPDATE\s+([^\s,)(]+)/i);if(_0x47a129?.[0x1]){const _0x500953=_0x47a129[0x1]['replace'](/[`"]/g,'');if(!_0x4e68e7[_0x5d531d(0x125)](_0x500953))_0x4e68e7[_0x5d531d(0x12f)](_0x500953);}return _0x4e68e7;}function a216_0x29ae(){const _0x413906=['UNKNOWN','test','508242UiHtRX','reason','split','Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.','toUpperCase','\x20with\x20parameters:\x20','includes','UPDATE','from','1783375VFvieW','matchAll','match','join','SELECT','2108792MhhiOa','length','push','SQL\x20content\x20is\x20empty','unknown\x20table(s)','type','WITH','DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save','1829536SsdvGy','replace','DDL','INSERT','DELETE','102454sOtOzh','trim','6qfmXzI','add','startsWith','9937712aEbgDn','1194978pzMNDM','isDangerous'];a216_0x29ae=function(){return _0x413906;};return a216_0x29ae();}function a216_0x17f9(_0xa6c61a,_0x35b51f){_0xa6c61a=_0xa6c61a-0x11f;const _0x29ae73=a216_0x29ae();let _0x17f949=_0x29ae73[_0xa6c61a];return _0x17f949;}function extractParameters(_0x19a728){const _0x597922=a216_0x17f9,_0x2b6257=new Set();for(const _0x4879fb of _0x19a728['matchAll'](/#\{(\w+)\}/g))if(_0x4879fb[0x1])_0x2b6257[_0x597922(0x13d)](_0x4879fb[0x1]);for(const _0x93883e of _0x19a728['matchAll'](/\$\{(\w+)\}/g))if(_0x93883e[0x1])_0x2b6257[_0x597922(0x13d)](_0x93883e[0x1]);return Array[_0x597922(0x127)](_0x2b6257);}export function validateSql(_0x43ca8d){const _0xabeead=a216_0x17f9,_0xb81e27=detectSqlType(_0x43ca8d),_0x453cb3=extractTables(_0x43ca8d),_0x48e11b=extractParameters(_0x43ca8d);if(_0xb81e27[_0xabeead(0x141)])return{'valid':![],'sqlType':_0xb81e27,'tables':_0x453cb3,'parameters':_0x48e11b,'message':_0xb81e27[_0xabeead(0x120)]||_0xb81e27[_0xabeead(0x132)]+'\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.'};if(_0xb81e27[_0xabeead(0x132)]===_0xabeead(0x142))return{'valid':![],'sqlType':_0xb81e27,'tables':_0x453cb3,'parameters':_0x48e11b,'message':_0xabeead(0x122)};return{'valid':!![],'sqlType':_0xb81e27,'tables':_0x453cb3,'parameters':_0x48e11b,'message':_0xb81e27['type']+'\x20query\x20targeting\x20'+(_0x453cb3[_0xabeead(0x12e)]?_0x453cb3['join'](',\x20'):_0xabeead(0x131))+(_0x48e11b[_0xabeead(0x12e)]?_0xabeead(0x124)+_0x48e11b[_0xabeead(0x12b)](',\x20'):'')};}
1
+ (function(_0x3288c3,_0x27810e){const _0x39e538=a216_0x1ac7,_0x46697f=_0x3288c3();while(!![]){try{const _0x33eed1=parseInt(_0x39e538(0x91))/0x1+-parseInt(_0x39e538(0x93))/0x2*(-parseInt(_0x39e538(0x8b))/0x3)+parseInt(_0x39e538(0xa0))/0x4+parseInt(_0x39e538(0x86))/0x5*(parseInt(_0x39e538(0x9e))/0x6)+parseInt(_0x39e538(0x7d))/0x7+parseInt(_0x39e538(0x7b))/0x8+-parseInt(_0x39e538(0x7c))/0x9;if(_0x33eed1===_0x27810e)break;else _0x46697f['push'](_0x46697f['shift']());}catch(_0x42c70d){_0x46697f['push'](_0x46697f['shift']());}}}(a216_0x25c7,0x1e871));export function detectSqlType(_0x22db10){const _0x225a57=a216_0x1ac7;if(!_0x22db10?.[_0x225a57(0x92)]())return{'type':_0x225a57(0x9a),'isSelectOnly':![],'isDangerous':![],'reason':'SQL\x20content\x20is\x20empty'};const _0x286c38=_0x22db10[_0x225a57(0x7e)](/#\{[^}]*\}/g,'?')['replace'](/\$\{[^}]*\}/g,'?')['replace'](/@[^(\s]+(\([^)]*\))?/g,'')[_0x225a57(0x7e)](/\/\*[\s\S]*?\*\//g,'')[_0x225a57(0x92)](),_0x5f3cf8=_0x286c38[_0x225a57(0x8a)]('\x0a');let _0x12f53e='';for(const _0x14143f of _0x5f3cf8){const _0x446d1b=_0x14143f[_0x225a57(0x92)]();if(!_0x446d1b||_0x446d1b[_0x225a57(0x90)]('--')||_0x446d1b['startsWith']('/*'))continue;_0x12f53e=_0x446d1b;break;}const _0x181a21=_0x12f53e[_0x225a57(0x94)]();if(_0x181a21[_0x225a57(0x90)](_0x225a57(0x85))||_0x181a21[_0x225a57(0x90)](_0x225a57(0x9f))){const _0x5619ff=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x225a57(0x97)](_0x286c38);return{'type':_0x225a57(0x85),'isSelectOnly':!_0x5619ff,'isDangerous':_0x5619ff,'reason':_0x5619ff?_0x225a57(0x95):undefined};}if(_0x181a21[_0x225a57(0x90)](_0x225a57(0x9c)))return{'type':_0x225a57(0x9c),'isSelectOnly':![],'isDangerous':![]};if(_0x181a21['startsWith'](_0x225a57(0x81)))return{'type':'UPDATE','isSelectOnly':![],'isDangerous':![]};if(_0x181a21[_0x225a57(0x90)](_0x225a57(0x7f)))return{'type':'DELETE','isSelectOnly':![],'isDangerous':!![],'reason':'DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save'};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i['test'](_0x181a21))return{'type':_0x225a57(0xa1),'isSelectOnly':![],'isDangerous':!![],'reason':_0x225a57(0x88)};return{'type':'UNKNOWN','isSelectOnly':![],'isDangerous':![]};}function extractTables(_0x5b5432){const _0x249253=a216_0x1ac7,_0x2af5ae=_0x5b5432[_0x249253(0x7e)](/#\{[^}]*\}/g,'?')[_0x249253(0x7e)](/\$\{[^}]*\}/g,'?')[_0x249253(0x7e)](/'[^']*'/g,'\x27\x27')[_0x249253(0x7e)](/--.*$/gm,'')[_0x249253(0x7e)](/\/\*[\s\S]*?\*\//g,''),_0x21bc21=[],_0x60be21=_0x2af5ae[_0x249253(0x84)](/FROM\s+([^\s,)(]+)/i);if(_0x60be21?.[0x1])_0x21bc21['push'](_0x60be21[0x1][_0x249253(0x7e)](/[`"]/g,''));for(const _0x4d17ff of _0x2af5ae[_0x249253(0x99)](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){const _0x9bb575=_0x4d17ff[0x1]?.[_0x249253(0x7e)](/[`"]/g,'');if(_0x9bb575&&!_0x21bc21[_0x249253(0x82)](_0x9bb575))_0x21bc21[_0x249253(0x96)](_0x9bb575);}const _0x33a1a5=_0x2af5ae[_0x249253(0x84)](/INTO\s+([^\s(]+)/i);if(_0x33a1a5?.[0x1]){const _0x4d934d=_0x33a1a5[0x1][_0x249253(0x7e)](/[`"]/g,'');if(!_0x21bc21['includes'](_0x4d934d))_0x21bc21[_0x249253(0x96)](_0x4d934d);}const _0x130a50=_0x2af5ae[_0x249253(0x84)](/UPDATE\s+([^\s,)(]+)/i);if(_0x130a50?.[0x1]){const _0x4a07b0=_0x130a50[0x1][_0x249253(0x7e)](/[`"]/g,'');if(!_0x21bc21['includes'](_0x4a07b0))_0x21bc21[_0x249253(0x96)](_0x4a07b0);}return _0x21bc21;}function a216_0x25c7(){const _0x5c92da=['split','60WqDdLR','\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.','isDangerous','\x20with\x20parameters:\x20','from','startsWith','246806erfttF','trim','10030OZtufp','toUpperCase','SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT','push','test','reason','matchAll','UNKNOWN','join','INSERT','add','2082BLMwUp','WITH','250532HCbXCB','DDL','779224jNfmnI','6998850PQIrAo','1362452UXOtgN','replace','DELETE','unknown\x20table(s)','UPDATE','includes','Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.','match','SELECT','2895wMSvHp','length','DDL\x20statements\x20are\x20blocked\x20from\x20auto-save','type'];a216_0x25c7=function(){return _0x5c92da;};return a216_0x25c7();}function extractParameters(_0x479cc0){const _0x1be1be=a216_0x1ac7,_0x2d7690=new Set();for(const _0x423184 of _0x479cc0[_0x1be1be(0x99)](/#\{(\w+)\}/g))if(_0x423184[0x1])_0x2d7690[_0x1be1be(0x9d)](_0x423184[0x1]);for(const _0x1046d0 of _0x479cc0[_0x1be1be(0x99)](/\$\{(\w+)\}/g))if(_0x1046d0[0x1])_0x2d7690[_0x1be1be(0x9d)](_0x1046d0[0x1]);return Array[_0x1be1be(0x8f)](_0x2d7690);}function a216_0x1ac7(_0xacd131,_0x1af998){_0xacd131=_0xacd131-0x7b;const _0x25c7a1=a216_0x25c7();let _0x1ac765=_0x25c7a1[_0xacd131];return _0x1ac765;}export function validateSql(_0x1c6d93){const _0x484390=a216_0x1ac7,_0x59142d=detectSqlType(_0x1c6d93),_0x2cbd59=extractTables(_0x1c6d93),_0x100c4c=extractParameters(_0x1c6d93);if(_0x59142d[_0x484390(0x8d)])return{'valid':![],'sqlType':_0x59142d,'tables':_0x2cbd59,'parameters':_0x100c4c,'message':_0x59142d[_0x484390(0x98)]||_0x59142d[_0x484390(0x89)]+_0x484390(0x8c)};if(_0x59142d['type']===_0x484390(0x9a))return{'valid':![],'sqlType':_0x59142d,'tables':_0x2cbd59,'parameters':_0x100c4c,'message':_0x484390(0x83)};return{'valid':!![],'sqlType':_0x59142d,'tables':_0x2cbd59,'parameters':_0x100c4c,'message':_0x59142d[_0x484390(0x89)]+'\x20query\x20targeting\x20'+(_0x2cbd59[_0x484390(0x87)]?_0x2cbd59[_0x484390(0x9b)](',\x20'):_0x484390(0x80))+(_0x100c4c[_0x484390(0x87)]?_0x484390(0x8e)+_0x100c4c[_0x484390(0x9b)](',\x20'):'')};}
package/lib/errors.js CHANGED
@@ -1 +1 @@
1
- function a217_0x3814(_0x5175f6,_0x2e8296){_0x5175f6=_0x5175f6-0xcc;const _0x3db788=a217_0x3db7();let _0x381409=_0x3db788[_0x5175f6];return _0x381409;}const a217_0x41699b=a217_0x3814;(function(_0x40ede8,_0x553a18){const _0x4ef144=a217_0x3814,_0x3cd74d=_0x40ede8();while(!![]){try{const _0x13eb80=-parseInt(_0x4ef144(0xd0))/0x1*(parseInt(_0x4ef144(0xd2))/0x2)+-parseInt(_0x4ef144(0xd9))/0x3*(parseInt(_0x4ef144(0xd1))/0x4)+parseInt(_0x4ef144(0xd7))/0x5*(-parseInt(_0x4ef144(0xdb))/0x6)+parseInt(_0x4ef144(0xcc))/0x7+parseInt(_0x4ef144(0xda))/0x8*(parseInt(_0x4ef144(0xcf))/0x9)+-parseInt(_0x4ef144(0xd8))/0xa+-parseInt(_0x4ef144(0xd3))/0xb*(-parseInt(_0x4ef144(0xd6))/0xc);if(_0x13eb80===_0x553a18)break;else _0x3cd74d['push'](_0x3cd74d['shift']());}catch(_0x1114f2){_0x3cd74d['push'](_0x3cd74d['shift']());}}}(a217_0x3db7,0x8c8fa));import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';export{CliError};export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a217_0x41699b(0xde)+CLI_BIN_NAME+a217_0x41699b(0xd5),'configMissingHint':['Set\x20appcode\x20via\x20`'+CLI_BIN_NAME+'\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.',a217_0x41699b(0xcd)+CLI_BIN_NAME+a217_0x41699b(0xdd)][a217_0x41699b(0xce)](a217_0x41699b(0xdc)),'notInProjectHint':a217_0x41699b(0xd4)});function a217_0x3db7(){const _0x350306=['\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.','Run\x20`','3843637MyVXjB','Tip:\x20`','join','9fErIDL','49dvvjra','4xnEomu','8620raeeZe','10856252RDXdXU','Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.','\x20auth`\x20to\x20login\x20first.','12OKasqZ','95485pZJiVr','4756590BXeOQb','489711gBEIOv','7979416GTYcfS','348DDZaeB','\x0a\x20\x20\x20\x20\x20\x20\x20'];a217_0x3db7=function(){return _0x350306;};return a217_0x3db7();}
1
+ const a217_0x1b6616=a217_0x4d9f;(function(_0x4330bc,_0x54086c){const _0x3fb93e=a217_0x4d9f,_0x388fd3=_0x4330bc();while(!![]){try{const _0x2596ce=-parseInt(_0x3fb93e(0xd5))/0x1*(-parseInt(_0x3fb93e(0xe0))/0x2)+parseInt(_0x3fb93e(0xdf))/0x3*(parseInt(_0x3fb93e(0xdb))/0x4)+parseInt(_0x3fb93e(0xd8))/0x5+-parseInt(_0x3fb93e(0xd2))/0x6+-parseInt(_0x3fb93e(0xde))/0x7*(parseInt(_0x3fb93e(0xdc))/0x8)+parseInt(_0x3fb93e(0xe1))/0x9*(parseInt(_0x3fb93e(0xd7))/0xa)+-parseInt(_0x3fb93e(0xd4))/0xb;if(_0x2596ce===_0x54086c)break;else _0x388fd3['push'](_0x388fd3['shift']());}catch(_0x17e8e2){_0x388fd3['push'](_0x388fd3['shift']());}}}(a217_0x4802,0xb8bbd));import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';export{CliError};function a217_0x4802(){const _0x676a08=['5387092hCAihp','8120248wwfGxD','join','7enUxei','3RaCQIX','2ZloWco','1458HwOJaK','\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','4613202tvlCfm','\x0a\x20\x20\x20\x20\x20\x20\x20','9130495YSspzv','367167XJSuBB','Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.','76060ToTiMM','2122500UAarIN','\x20auth`\x20to\x20login\x20first.','Run\x20`'];a217_0x4802=function(){return _0x676a08;};return a217_0x4802();}function a217_0x4d9f(_0x32b7b0,_0x747e4a){_0x32b7b0=_0x32b7b0-0xd0;const _0x4802ba=a217_0x4802();let _0x4d9f6d=_0x4802ba[_0x32b7b0];return _0x4d9f6d;}export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a217_0x1b6616(0xda)+CLI_BIN_NAME+a217_0x1b6616(0xd9),'configMissingHint':['Set\x20appcode\x20via\x20`'+CLI_BIN_NAME+a217_0x1b6616(0xd1),'Tip:\x20`'+CLI_BIN_NAME+a217_0x1b6616(0xd0)][a217_0x1b6616(0xdd)](a217_0x1b6616(0xd3)),'notInProjectHint':a217_0x1b6616(0xd6)});
@@ -1 +1 @@
1
- function a218_0x4885(_0x249cd1,_0x478289){_0x249cd1=_0x249cd1-0xfe;const _0x13d73a=a218_0x13d7();let _0x488571=_0x13d73a[_0x249cd1];return _0x488571;}(function(_0x4a4b9e,_0x2dc25d){const _0x3ed9d3=a218_0x4885,_0x2cd81f=_0x4a4b9e();while(!![]){try{const _0x38f6af=parseInt(_0x3ed9d3(0x102))/0x1*(parseInt(_0x3ed9d3(0x10c))/0x2)+parseInt(_0x3ed9d3(0x10a))/0x3*(-parseInt(_0x3ed9d3(0xff))/0x4)+parseInt(_0x3ed9d3(0x109))/0x5*(-parseInt(_0x3ed9d3(0x101))/0x6)+parseInt(_0x3ed9d3(0x100))/0x7+parseInt(_0x3ed9d3(0x107))/0x8*(-parseInt(_0x3ed9d3(0x104))/0x9)+-parseInt(_0x3ed9d3(0x10b))/0xa*(parseInt(_0x3ed9d3(0x105))/0xb)+parseInt(_0x3ed9d3(0xfe))/0xc;if(_0x38f6af===_0x2dc25d)break;else _0x2cd81f['push'](_0x2cd81f['shift']());}catch(_0x1cc73b){_0x2cd81f['push'](_0x2cd81f['shift']());}}}(a218_0x13d7,0x23db5));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a218_0x1d79cc}from'@lovrabet/cli-framework';import{EXPLICIT_YES_FLAG_DESCRIPTION,requiresExplicitYes}from'../framework/explicit-yes.js';function a218_0x13d7(){const _0x2ca27b=['1100xZPrVh','220278cQPbvZ','6526764QavVtY','212356oJkdgZ','1002533TBJftr','1144386ggQKdO','2LamBSl','map','18fMvQEZ','22198BhrSOp','yes','966544YEOLjb','name','5CyKMVq','6cwIaLn'];a218_0x13d7=function(){return _0x2ca27b;};return a218_0x13d7();}export function buildAllFlags(_0x512160){const _0x4722b9=a218_0x4885,_0x8cae24=a218_0x1d79cc(_0x512160,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});if(!requiresExplicitYes(_0x512160))return _0x8cae24;return _0x8cae24[_0x4722b9(0x103)](_0x3edae5=>_0x3edae5[_0x4722b9(0x108)]===_0x4722b9(0x106)?{..._0x3edae5,'description':EXPLICIT_YES_FLAG_DESCRIPTION}:_0x3edae5);}
1
+ function a218_0x5b1b(){const _0x56bd9a=['24377350UnYrRC','7uYYktw','1097808sVGDWU','map','69XKGLDZ','4040052MBvNVO','68eAHqKY','35838jMdlXL','200170UICEFA','196336sWbZPy','9273123cHvaCF'];a218_0x5b1b=function(){return _0x56bd9a;};return a218_0x5b1b();}(function(_0x11e4c6,_0x12b72f){const _0x3ac8bd=a218_0x405c,_0x5bb5af=_0x11e4c6();while(!![]){try{const _0x170a75=-parseInt(_0x3ac8bd(0xd9))/0x1+parseInt(_0x3ac8bd(0xde))/0x2*(-parseInt(_0x3ac8bd(0xdb))/0x3)+parseInt(_0x3ac8bd(0xdd))/0x4*(-parseInt(_0x3ac8bd(0xd4))/0x5)+-parseInt(_0x3ac8bd(0xdc))/0x6+parseInt(_0x3ac8bd(0xd8))/0x7*(-parseInt(_0x3ac8bd(0xd5))/0x8)+parseInt(_0x3ac8bd(0xd6))/0x9+parseInt(_0x3ac8bd(0xd7))/0xa;if(_0x170a75===_0x12b72f)break;else _0x5bb5af['push'](_0x5bb5af['shift']());}catch(_0xc65e4a){_0x5bb5af['push'](_0x5bb5af['shift']());}}}(a218_0x5b1b,0x8d85b));function a218_0x405c(_0x1d8467,_0x2751b9){_0x1d8467=_0x1d8467-0xd4;const _0x5b1b71=a218_0x5b1b();let _0x405c3b=_0x5b1b71[_0x1d8467];return _0x405c3b;}import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a218_0x328e9d}from'@lovrabet/cli-framework';import{EXPLICIT_YES_FLAG_DESCRIPTION,requiresExplicitYes}from'../framework/explicit-yes.js';export function buildAllFlags(_0xa2d25a){const _0x33bf18=a218_0x405c,_0x5ea0e1=a218_0x328e9d(_0xa2d25a,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});if(!requiresExplicitYes(_0xa2d25a))return _0x5ea0e1;return _0x5ea0e1[_0x33bf18(0xda)](_0x386479=>_0x386479['name']==='yes'?{..._0x386479,'description':EXPLICIT_YES_FLAG_DESCRIPTION}:_0x386479);}
@@ -1 +1 @@
1
- function a219_0x2c83(){var _0x3effdf=['2113270GRXFsp','2925296WXXCcm','46470VWYTtm','18fSeFly','705688POdbOr','190734iliVII','def','45NrkdnM','98323iVdNQm','15AXbnym','compress','defaultFormat','450261mpZWiq'];a219_0x2c83=function(){return _0x3effdf;};return a219_0x2c83();}(function(_0x29efaf,_0x5910ea){var _0x324e32=a219_0x352e,_0x108bcb=_0x29efaf();while(!![]){try{var _0x3f9dd7=parseInt(_0x324e32(0xf6))/0x1+parseInt(_0x324e32(0xfe))/0x2*(parseInt(_0x324e32(0xfd))/0x3)+-parseInt(_0x324e32(0xff))/0x4*(parseInt(_0x324e32(0xf7))/0x5)+parseInt(_0x324e32(0x100))/0x6+-parseInt(_0x324e32(0xfa))/0x7+-parseInt(_0x324e32(0xfc))/0x8+-parseInt(_0x324e32(0xf5))/0x9*(-parseInt(_0x324e32(0xfb))/0xa);if(_0x3f9dd7===_0x5910ea)break;else _0x108bcb['push'](_0x108bcb['shift']());}catch(_0x2b842){_0x108bcb['push'](_0x108bcb['shift']());}}}(a219_0x2c83,0x5993a));import{resolveOutputConfig}from'@lovrabet/cli-framework';export function usesStructuredErrorOutput(_0x470e1a){return _0x470e1a?.['structuredErrors']===!![];}function a219_0x352e(_0x2ebd2c,_0x56d0d5){_0x2ebd2c=_0x2ebd2c-0xf5;var _0x2c8326=a219_0x2c83();var _0x352ed8=_0x2c8326[_0x2ebd2c];return _0x352ed8;}export function resolveErrorOutputFormat(_0x185e98){var _0x77c83b=a219_0x352e;if(!_0x185e98[_0x77c83b(0x101)])return _0x185e98[_0x77c83b(0xf9)]??_0x77c83b(0xf8);return resolveOutputConfig({'flags':_0x185e98['flags']??{},'def':_0x185e98['def'],'configDefault':_0x185e98[_0x77c83b(0xf9)]})['format'];}
1
+ function a219_0x5244(_0x2b7252,_0x5e1be7){_0x2b7252=_0x2b7252-0x134;var _0x140749=a219_0x1407();var _0x524433=_0x140749[_0x2b7252];return _0x524433;}function a219_0x1407(){var _0x47ddf4=['15685roAlby','defaultFormat','590533ZzSsnb','20aXvdai','999333bMFVMe','19204oTdpwy','5111832imJqGS','format','133sECSCX','def','291FrcpYe','372GEoCEA','455160UQFfYl','compress','1612655gIutoH'];a219_0x1407=function(){return _0x47ddf4;};return a219_0x1407();}(function(_0x147c7c,_0x381c69){var _0x2595cb=a219_0x5244,_0x18321c=_0x147c7c();while(!![]){try{var _0x27f886=parseInt(_0x2595cb(0x13e))/0x1+-parseInt(_0x2595cb(0x141))/0x2*(parseInt(_0x2595cb(0x137))/0x3)+-parseInt(_0x2595cb(0x138))/0x4*(parseInt(_0x2595cb(0x13c))/0x5)+parseInt(_0x2595cb(0x142))/0x6+parseInt(_0x2595cb(0x135))/0x7*(parseInt(_0x2595cb(0x139))/0x8)+-parseInt(_0x2595cb(0x140))/0x9+parseInt(_0x2595cb(0x13f))/0xa*(-parseInt(_0x2595cb(0x13b))/0xb);if(_0x27f886===_0x381c69)break;else _0x18321c['push'](_0x18321c['shift']());}catch(_0x5c45a1){_0x18321c['push'](_0x18321c['shift']());}}}(a219_0x1407,0xdac80));import{resolveOutputConfig}from'@lovrabet/cli-framework';export function usesStructuredErrorOutput(_0x59b731){return _0x59b731?.['structuredErrors']===!![];}export function resolveErrorOutputFormat(_0x151741){var _0x19f10b=a219_0x5244;if(!_0x151741[_0x19f10b(0x136)])return _0x151741[_0x19f10b(0x13d)]??_0x19f10b(0x13a);return resolveOutputConfig({'flags':_0x151741['flags']??{},'def':_0x151741[_0x19f10b(0x136)],'configDefault':_0x151741[_0x19f10b(0x13d)]})[_0x19f10b(0x134)];}
@@ -1 +1 @@
1
- const a220_0x58965a=a220_0x540d;(function(_0x511c9c,_0x392b7b){const _0x45e546=a220_0x540d,_0x46e5d5=_0x511c9c();while(!![]){try{const _0x366038=parseInt(_0x45e546(0x96))/0x1+parseInt(_0x45e546(0x9e))/0x2*(parseInt(_0x45e546(0x99))/0x3)+parseInt(_0x45e546(0xa2))/0x4+-parseInt(_0x45e546(0x97))/0x5+-parseInt(_0x45e546(0x9b))/0x6*(parseInt(_0x45e546(0xa4))/0x7)+-parseInt(_0x45e546(0x9d))/0x8*(parseInt(_0x45e546(0x9f))/0x9)+parseInt(_0x45e546(0x95))/0xa;if(_0x366038===_0x392b7b)break;else _0x46e5d5['push'](_0x46e5d5['shift']());}catch(_0x166eb8){_0x46e5d5['push'](_0x46e5d5['shift']());}}}(a220_0x556e,0xa1eaf));const EXPLICIT_YES_COMMANDS=new Set([a220_0x58965a(0x9a),'menu\x20delete','menu\x20group-create',a220_0x58965a(0xa0),'menu\x20move',a220_0x58965a(0x94)]);function a220_0x556e(){const _0x2c2b4d=['9158840GuBilF','764289gaOVxy','5171435LIPYPJ','Required\x20for\x20execution\x20after\x20reviewing\x20the\x20--dry-run\x20plan','219RBqZcA','menu\x20external-link-create','239994QSxvEg','has','7649480rFpozt','33032osdepn','9PkYzmr','menu\x20group-update','service','1151332oFxith','command','91PfdkJE','menu\x20regroup-start'];a220_0x556e=function(){return _0x2c2b4d;};return a220_0x556e();}export const EXPLICIT_YES_FLAG_DESCRIPTION=a220_0x58965a(0x98);function a220_0x540d(_0x3e654d,_0x52cb65){_0x3e654d=_0x3e654d-0x94;const _0x556ef0=a220_0x556e();let _0x540d9c=_0x556ef0[_0x3e654d];return _0x540d9c;}export function requiresExplicitYes(_0x52b4db){const _0x5822dd=a220_0x58965a;return EXPLICIT_YES_COMMANDS[_0x5822dd(0x9c)](_0x52b4db[_0x5822dd(0xa1)]+'\x20'+_0x52b4db[_0x5822dd(0xa3)]);}
1
+ function a220_0x163f(){const _0x25bee9=['service','154505YUWgYg','Required\x20for\x20execution\x20after\x20reviewing\x20the\x20--dry-run\x20plan','command','menu\x20group-create','2686712PNHJoW','menu\x20delete','2687013FjKjLn','menu\x20move','27289206XXqnwf','12841XNbwjE','7414544UKUxvc','menu\x20regroup-start','3981759WQkyRm','76maQeeU','228LzFJzh','menu\x20group-update'];a220_0x163f=function(){return _0x25bee9;};return a220_0x163f();}const a220_0x6b16f1=a220_0x3e9b;(function(_0x304bbb,_0xce8161){const _0x4cd4c3=a220_0x3e9b,_0x4b2848=_0x304bbb();while(!![]){try{const _0x45e785=-parseInt(_0x4cd4c3(0x162))/0x1*(parseInt(_0x4cd4c3(0x166))/0x2)+-parseInt(_0x4cd4c3(0x165))/0x3+-parseInt(_0x4cd4c3(0x16e))/0x4+parseInt(_0x4cd4c3(0x16a))/0x5*(-parseInt(_0x4cd4c3(0x167))/0x6)+parseInt(_0x4cd4c3(0x15f))/0x7+parseInt(_0x4cd4c3(0x163))/0x8+parseInt(_0x4cd4c3(0x161))/0x9;if(_0x45e785===_0xce8161)break;else _0x4b2848['push'](_0x4b2848['shift']());}catch(_0x557347){_0x4b2848['push'](_0x4b2848['shift']());}}}(a220_0x163f,0xa66d4));function a220_0x3e9b(_0x4ddde5,_0x381d18){_0x4ddde5=_0x4ddde5-0x15e;const _0x163f75=a220_0x163f();let _0x3e9bb0=_0x163f75[_0x4ddde5];return _0x3e9bb0;}const EXPLICIT_YES_COMMANDS=new Set(['menu\x20external-link-create',a220_0x6b16f1(0x15e),a220_0x6b16f1(0x16d),a220_0x6b16f1(0x168),a220_0x6b16f1(0x160),a220_0x6b16f1(0x164)]);export const EXPLICIT_YES_FLAG_DESCRIPTION=a220_0x6b16f1(0x16b);export function requiresExplicitYes(_0xde42b4){const _0x35c26c=a220_0x6b16f1;return EXPLICIT_YES_COMMANDS['has'](_0xde42b4[_0x35c26c(0x169)]+'\x20'+_0xde42b4[_0x35c26c(0x16c)]);}
@@ -1 +1 @@
1
- const a221_0x4784e0=a221_0x35b6;(function(_0x5eeb2b,_0x2639d4){const _0x5d53ce=a221_0x35b6,_0x309427=_0x5eeb2b();while(!![]){try{const _0x4451fc=-parseInt(_0x5d53ce(0x12d))/0x1*(-parseInt(_0x5d53ce(0x121))/0x2)+parseInt(_0x5d53ce(0x128))/0x3*(-parseInt(_0x5d53ce(0x122))/0x4)+-parseInt(_0x5d53ce(0x127))/0x5+-parseInt(_0x5d53ce(0x12a))/0x6*(-parseInt(_0x5d53ce(0x129))/0x7)+-parseInt(_0x5d53ce(0x124))/0x8*(-parseInt(_0x5d53ce(0x12c))/0x9)+parseInt(_0x5d53ce(0x126))/0xa+-parseInt(_0x5d53ce(0x125))/0xb;if(_0x4451fc===_0x2639d4)break;else _0x309427['push'](_0x309427['shift']());}catch(_0x1ace0c){_0x309427['push'](_0x309427['shift']());}}}(a221_0x7dbf,0x55e4c));import{createFlagHelpers}from'@lovrabet/cli-framework';function a221_0x35b6(_0x15c786,_0x28b57a){_0x15c786=_0x15c786-0x121;const _0x7dbf2d=a221_0x7dbf();let _0x35b6db=_0x7dbf2d[_0x15c786];return _0x35b6db;}import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers[a221_0x4784e0(0x12b)];function a221_0x7dbf(){const _0x1464dd=['6ITpAEm','parseFlags','107901fNQrSh','2gmjlMv','395128MwOfbr','336184dCPCSM','validateFlags','224hYGLrr','8800726LFtStW','6810000HrywYF','2125295tHKGtS','15yFKfZH','4097485qVMBKy'];a221_0x7dbf=function(){return _0x1464dd;};return a221_0x7dbf();}export const validateFlags=helpers[a221_0x4784e0(0x123)];
1
+ const a221_0x7ccb3e=a221_0x4d61;(function(_0xb0d16f,_0x32fb50){const _0x410330=a221_0x4d61,_0x4c6c6f=_0xb0d16f();while(!![]){try{const _0xe70e64=-parseInt(_0x410330(0xe5))/0x1*(-parseInt(_0x410330(0xe6))/0x2)+-parseInt(_0x410330(0xe7))/0x3+parseInt(_0x410330(0xdf))/0x4+-parseInt(_0x410330(0xe4))/0x5+-parseInt(_0x410330(0xde))/0x6+parseInt(_0x410330(0xe0))/0x7+-parseInt(_0x410330(0xe1))/0x8*(-parseInt(_0x410330(0xe3))/0x9);if(_0xe70e64===_0x32fb50)break;else _0x4c6c6f['push'](_0x4c6c6f['shift']());}catch(_0x1598ef){_0x4c6c6f['push'](_0x4c6c6f['shift']());}}}(a221_0x1d8d,0xe3a02));function a221_0x1d8d(){const _0xf36796=['3022446qKgKfw','1166628kdnvnY','7329791YlmmDB','270640CjUTlX','parseFlags','342FGrJCH','5699980WihYfP','10SnIObq','195160JrKvtK','3072057AiVLmU'];a221_0x1d8d=function(){return _0xf36796;};return a221_0x1d8d();}function a221_0x4d61(_0x3bcf37,_0x17a3b3){_0x3bcf37=_0x3bcf37-0xde;const _0x1d8d38=a221_0x1d8d();let _0x4d612b=_0x1d8d38[_0x3bcf37];return _0x4d612b;}import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers[a221_0x7ccb3e(0xe2)];export const validateFlags=helpers['validateFlags'];
@@ -1 +1 @@
1
- const a222_0x5415f9=a222_0x40b3;function a222_0x5409(){const _0x42564f=['Requires\x20explicit\x20--yes\x20for\x20execution;\x20use\x20--dry-run\x20to\x20preview.','2122800wRFlyW','89512bsWLjk','generateServiceHelp','1064925cUgsNO','generateCommandHelp','576527RgPVVI','557337ndMkoz','generateFullHelp','42wQyszH','Requires\x20appcode\x20(set\x20via\x20`','12983700bVxlwv','7zuQaQG','\x20workspace\x20init`\x20or\x20--appcode).','\x20[args]\x20[flags]','replace','Requires\x20--yes\x20to\x20confirm,\x20or\x20interactive\x20prompt.','486RKkjLh','242564SiiCKb'];a222_0x5409=function(){return _0x42564f;};return a222_0x5409();}(function(_0x325a86,_0x5f2710){const _0x472d1f=a222_0x40b3,_0x381d9c=_0x325a86();while(!![]){try{const _0x26c767=-parseInt(_0x472d1f(0xc6))/0x1*(-parseInt(_0x472d1f(0xcc))/0x2)+-parseInt(_0x472d1f(0xc1))/0x3+-parseInt(_0x472d1f(0xce))/0x4+parseInt(_0x472d1f(0xbe))/0x5+parseInt(_0x472d1f(0xc3))/0x6*(-parseInt(_0x472d1f(0xc0))/0x7)+parseInt(_0x472d1f(0xcf))/0x8*(-parseInt(_0x472d1f(0xcb))/0x9)+parseInt(_0x472d1f(0xc5))/0xa;if(_0x26c767===_0x5f2710)break;else _0x381d9c['push'](_0x381d9c['shift']());}catch(_0x1a775a){_0x381d9c['push'](_0x381d9c['shift']());}}}(a222_0x5409,0x7110d));import{createHelpGenerators}from'@lovrabet/cli-framework';function a222_0x40b3(_0x46a796,_0x1971bc){_0x46a796=_0x46a796-0xbd;const _0x5409f3=a222_0x5409();let _0x40b37a=_0x5409f3[_0x46a796];return _0x40b37a;}import{buildAllFlags}from'../framework/build-all-flags.js';import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{requiresExplicitYes}from'../framework/explicit-yes.js';const generators=createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':serviceRegistry,'getServiceEntry':getServiceEntry,'getServiceDefinitions':_0x5c05fa=>serviceGroups['get'](_0x5c05fa),'buildAllFlags':buildAllFlags,'appPrerequisiteText':a222_0x5415f9(0xc4)+CLI_BIN_NAME+a222_0x5415f9(0xc7),'serviceUsageSuffix':a222_0x5415f9(0xc8)});export function generateCommandHelp(_0x1d8334){const _0x3b6c10=a222_0x5415f9,_0x3c7acc=generators[_0x3b6c10(0xbf)](_0x1d8334);if(!requiresExplicitYes(_0x1d8334))return _0x3c7acc;return _0x3c7acc[_0x3b6c10(0xc9)](_0x3b6c10(0xca),_0x3b6c10(0xcd));}export const generateServiceHelp=generators[a222_0x5415f9(0xbd)];export const generateFullHelp=generators[a222_0x5415f9(0xc2)];
1
+ const a222_0xa852e2=a222_0x74f2;(function(_0x3f0359,_0x2201a2){const _0x2ae105=a222_0x74f2,_0x45eac2=_0x3f0359();while(!![]){try{const _0x13a6b5=parseInt(_0x2ae105(0x15d))/0x1+-parseInt(_0x2ae105(0x15c))/0x2+parseInt(_0x2ae105(0x160))/0x3+parseInt(_0x2ae105(0x164))/0x4*(parseInt(_0x2ae105(0x15a))/0x5)+-parseInt(_0x2ae105(0x154))/0x6*(-parseInt(_0x2ae105(0x166))/0x7)+parseInt(_0x2ae105(0x15e))/0x8*(parseInt(_0x2ae105(0x161))/0x9)+-parseInt(_0x2ae105(0x163))/0xa;if(_0x13a6b5===_0x2201a2)break;else _0x45eac2['push'](_0x45eac2['shift']());}catch(_0x1cbdc1){_0x45eac2['push'](_0x45eac2['shift']());}}}(a222_0xdb4c,0x403a1));import{createHelpGenerators}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';function a222_0xdb4c(){const _0x4674e9=['replace','Requires\x20--yes\x20to\x20confirm,\x20or\x20interactive\x20prompt.','175kLJNcA','generateCommandHelp','59888BxsaNd','229300qHJqLe','53656VaaQtS','Requires\x20explicit\x20--yes\x20for\x20execution;\x20use\x20--dry-run\x20to\x20preview.','939450FRlgzy','504jqZfgh','generateServiceHelp','12783070SPGnBz','38912KbaIpP','\x20[args]\x20[flags]','14ohrvih','938406KwDuWA','generateFullHelp','get','\x20workspace\x20init`\x20or\x20--appcode).'];a222_0xdb4c=function(){return _0x4674e9;};return a222_0xdb4c();}import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{requiresExplicitYes}from'../framework/explicit-yes.js';const generators=createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':serviceRegistry,'getServiceEntry':getServiceEntry,'getServiceDefinitions':_0x258a7e=>serviceGroups[a222_0xa852e2(0x156)](_0x258a7e),'buildAllFlags':buildAllFlags,'appPrerequisiteText':'Requires\x20appcode\x20(set\x20via\x20`'+CLI_BIN_NAME+a222_0xa852e2(0x157),'serviceUsageSuffix':a222_0xa852e2(0x165)});export function generateCommandHelp(_0x10460c){const _0x17944a=a222_0xa852e2,_0x1f1dfa=generators[_0x17944a(0x15b)](_0x10460c);if(!requiresExplicitYes(_0x10460c))return _0x1f1dfa;return _0x1f1dfa[_0x17944a(0x158)](_0x17944a(0x159),_0x17944a(0x15f));}export const generateServiceHelp=generators[a222_0xa852e2(0x162)];function a222_0x74f2(_0x2ae7e3,_0xe88088){_0x2ae7e3=_0x2ae7e3-0x154;const _0xdb4cc2=a222_0xdb4c();let _0x74f258=_0xdb4cc2[_0x2ae7e3];return _0x74f258;}export const generateFullHelp=generators[a222_0xa852e2(0x155)];
@@ -1 +1 @@
1
- function a223_0x1346(_0x129cd9,_0x73621e){_0x129cd9=_0x129cd9-0xb5;var _0x5f26f4=a223_0x5f26();var _0x1346e0=_0x5f26f4[_0x129cd9];return _0x1346e0;}(function(_0x2f5b8e,_0x404ccf){var _0xb07b92=a223_0x1346,_0x50e62c=_0x2f5b8e();while(!![]){try{var _0xb7dddd=parseInt(_0xb07b92(0xb6))/0x1*(parseInt(_0xb07b92(0xc0))/0x2)+parseInt(_0xb07b92(0xb9))/0x3*(parseInt(_0xb07b92(0xb8))/0x4)+-parseInt(_0xb07b92(0xb7))/0x5*(parseInt(_0xb07b92(0xbe))/0x6)+parseInt(_0xb07b92(0xbd))/0x7*(parseInt(_0xb07b92(0xba))/0x8)+parseInt(_0xb07b92(0xbc))/0x9+parseInt(_0xb07b92(0xbf))/0xa*(-parseInt(_0xb07b92(0xb5))/0xb)+-parseInt(_0xb07b92(0xbb))/0xc;if(_0xb7dddd===_0x404ccf)break;else _0x50e62c['push'](_0x50e62c['shift']());}catch(_0x1fe30e){_0x50e62c['push'](_0x50e62c['shift']());}}}(a223_0x5f26,0x529fd));function a223_0x5f26(){var _0x67e62e=['16hKjXXV','2704644nFUSqq','1044729QigbbV','1550059RTQwUy','440016INHUBZ','260mhZXvk','914476olSnaz','87120foQnOn','1TFVELq','20MTOttf','4TuComH','140661IBzMCd'];a223_0x5f26=function(){return _0x67e62e;};return a223_0x5f26();}export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';export{riskLevelOrder}from'../framework/types.js';
1
+ (function(_0x4d8c1a,_0x3dc6e2){var _0x5ee049=a223_0x1653,_0x327e2f=_0x4d8c1a();while(!![]){try{var _0x37a20c=-parseInt(_0x5ee049(0x13a))/0x1+-parseInt(_0x5ee049(0x13e))/0x2*(parseInt(_0x5ee049(0x13f))/0x3)+parseInt(_0x5ee049(0x139))/0x4*(-parseInt(_0x5ee049(0x13d))/0x5)+parseInt(_0x5ee049(0x137))/0x6+parseInt(_0x5ee049(0x138))/0x7+-parseInt(_0x5ee049(0x13c))/0x8+parseInt(_0x5ee049(0x13b))/0x9;if(_0x37a20c===_0x3dc6e2)break;else _0x327e2f['push'](_0x327e2f['shift']());}catch(_0x286084){_0x327e2f['push'](_0x327e2f['shift']());}}}(a223_0x319d,0x5253f));export{runCommand}from'../framework/runner.js';function a223_0x1653(_0x59f458,_0x45c29a){_0x59f458=_0x59f458-0x137;var _0x319ddc=a223_0x319d();var _0x1653cf=_0x319ddc[_0x59f458];return _0x1653cf;}export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';function a223_0x319d(){var _0x14f916=['10053207atxFaO','2913168TZTMBj','91555RvdpIJ','188002zrZdCv','3MAIslI','24066hniBdr','2461711NCxMKM','60oTKLDP','402680OjpxOq'];a223_0x319d=function(){return _0x14f916;};return a223_0x319d();}export{riskLevelOrder}from'../framework/types.js';
@@ -1 +1 @@
1
- function a224_0x3ea2(_0x253d5c,_0x484f8c){_0x253d5c=_0x253d5c-0x17b;const _0x143434=a224_0x1434();let _0x3ea2dd=_0x143434[_0x253d5c];return _0x3ea2dd;}(function(_0xdf4ab3,_0x4cc6cd){const _0x14db52=a224_0x3ea2,_0x2664a5=_0xdf4ab3();while(!![]){try{const _0x11c8ba=-parseInt(_0x14db52(0x18d))/0x1*(-parseInt(_0x14db52(0x17e))/0x2)+-parseInt(_0x14db52(0x18c))/0x3*(parseInt(_0x14db52(0x17d))/0x4)+-parseInt(_0x14db52(0x193))/0x5+parseInt(_0x14db52(0x187))/0x6+-parseInt(_0x14db52(0x191))/0x7+parseInt(_0x14db52(0x17b))/0x8*(parseInt(_0x14db52(0x197))/0x9)+-parseInt(_0x14db52(0x17f))/0xa*(-parseInt(_0x14db52(0x180))/0xb);if(_0x11c8ba===_0x4cc6cd)break;else _0x2664a5['push'](_0x2664a5['shift']());}catch(_0x801b36){_0x2664a5['push'](_0x2664a5['shift']());}}}(a224_0x1434,0xe7047));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliError,CliErrors}from'../errors.js';import{applyJqFilter}from'../utils/apply-jq-filter.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0xda6f3b,_0x226ad9){const _0x57f0f2=a224_0x3ea2,_0x198c82=_0xda6f3b[_0x57f0f2(0x192)],{_notice:_0x2d6269,..._0x19f683}=_0xda6f3b;void _0x2d6269,baseFormatOutput(_0x19f683,_0x226ad9),_0x226ad9[_0x57f0f2(0x18e)]===_0x57f0f2(0x181)&&printPrettyNotice(_0x198c82);}function a224_0x1434(){const _0x1af499=['jq:\x20','18KVruQu','1514224yENIgP','jqFilter','6958616zTUcIG','136xNaFbx','2070370HXxgQE','143LsusyY','pretty','update','code','hint','data','risk','3408108lOCoQA','stringify','json','message','error','3vwzKOf','4946BBZrFG','format','validation','url','2814721PJdnoX','_notice','4431895PEwmbo','stdout','endsWith'];a224_0x1434=function(){return _0x1af499;};return a224_0x1434();}export function formatCliError(_0x3214f0,_0x512944){const _0x227966=a224_0x3ea2;if(_0x512944['format']===_0x227966(0x181))return![];const _0x14df41=_0x3214f0[_0x227966(0x185)],_0x3be9af={'ok':![],'command':_0x512944['command'],'risk':_0x512944[_0x227966(0x186)],'data':_0x14df41??null,'error':{'code':_0x3214f0[_0x227966(0x183)],'message':_0x3214f0['message'],..._0x3214f0['hint']?{'hint':_0x3214f0[_0x227966(0x184)]}:{}}},_0x21eb5e=_0x512944['format']===_0x227966(0x189)?JSON[_0x227966(0x188)](_0x3be9af,null,0x2):JSON[_0x227966(0x188)](_0x3be9af);let _0x1fdc18=_0x21eb5e;if(_0x512944['jqFilter']?.['trim']())try{_0x1fdc18=applyJqFilter(_0x21eb5e,_0x512944[_0x227966(0x17c)]);}catch(_0x4e3925){const _0x1c1370=_0x4e3925 instanceof CliError?_0x4e3925:CliErrors[_0x227966(0x18f)](_0x227966(0x196)+(_0x4e3925 instanceof Error?_0x4e3925[_0x227966(0x18a)]:String(_0x4e3925))),_0x2a5e3a={..._0x3be9af,'error':{'code':_0x1c1370[_0x227966(0x183)],'message':_0x1c1370[_0x227966(0x18a)],..._0x1c1370[_0x227966(0x184)]?{'hint':_0x1c1370[_0x227966(0x184)]}:{},'cause':_0x3be9af[_0x227966(0x18b)]}};_0x1fdc18=_0x512944['format']===_0x227966(0x189)?JSON[_0x227966(0x188)](_0x2a5e3a,null,0x2):JSON[_0x227966(0x188)](_0x2a5e3a);}return process[_0x227966(0x194)]['write'](_0x1fdc18[_0x227966(0x195)]('\x0a')?_0x1fdc18:_0x1fdc18+'\x0a'),!![];}function printPrettyNotice(_0x260f60){const _0x3833c7=a224_0x3ea2;if(!_0x260f60?.[_0x3833c7(0x182)])return;console[_0x3833c7(0x18b)](_0x260f60['update'][_0x3833c7(0x18a)]+'\x20('+_0x260f60[_0x3833c7(0x182)][_0x3833c7(0x190)]+')');}
1
+ (function(_0x2f893f,_0x556576){const _0x208dc1=a224_0x5119,_0x41798e=_0x2f893f();while(!![]){try{const _0xb0ef59=parseInt(_0x208dc1(0x1ac))/0x1+parseInt(_0x208dc1(0x19c))/0x2*(-parseInt(_0x208dc1(0x1a8))/0x3)+parseInt(_0x208dc1(0x19f))/0x4*(parseInt(_0x208dc1(0x1a6))/0x5)+-parseInt(_0x208dc1(0x1a9))/0x6+parseInt(_0x208dc1(0x1a5))/0x7+parseInt(_0x208dc1(0x1b0))/0x8+parseInt(_0x208dc1(0x1a1))/0x9*(-parseInt(_0x208dc1(0x1b1))/0xa);if(_0xb0ef59===_0x556576)break;else _0x41798e['push'](_0x41798e['shift']());}catch(_0x5e07c5){_0x41798e['push'](_0x41798e['shift']());}}}(a224_0x15c1,0x86d8e));function a224_0x5119(_0x1b966b,_0x5001d8){_0x1b966b=_0x1b966b-0x19a;const _0x15c19c=a224_0x15c1();let _0x51199c=_0x15c19c[_0x1b966b];return _0x51199c;}import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliError,CliErrors}from'../errors.js';import{applyJqFilter}from'../utils/apply-jq-filter.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0x2909cf,_0x587b08){const _0x3651b2=a224_0x5119,_0x5e9cc0=_0x2909cf[_0x3651b2(0x1ab)],{_notice:_0x311d28,..._0x4fb494}=_0x2909cf;void _0x311d28,baseFormatOutput(_0x4fb494,_0x587b08),_0x587b08['format']==='pretty'&&printPrettyNotice(_0x5e9cc0);}export function formatCliError(_0x4277ea,_0x3b9843){const _0x54d802=a224_0x5119;if(_0x3b9843[_0x54d802(0x1af)]===_0x54d802(0x19d))return![];const _0x527a7c=_0x4277ea['data'],_0x308a09={'ok':![],'command':_0x3b9843[_0x54d802(0x1b2)],'risk':_0x3b9843[_0x54d802(0x19e)],'data':_0x527a7c??null,'error':{'code':_0x4277ea[_0x54d802(0x1ad)],'message':_0x4277ea[_0x54d802(0x1ae)],..._0x4277ea['hint']?{'hint':_0x4277ea['hint']}:{}}},_0x5900bd=_0x3b9843[_0x54d802(0x1af)]===_0x54d802(0x1aa)?JSON[_0x54d802(0x19a)](_0x308a09,null,0x2):JSON['stringify'](_0x308a09);let _0x3f8e00=_0x5900bd;if(_0x3b9843[_0x54d802(0x1a0)]?.[_0x54d802(0x1b4)]())try{_0x3f8e00=applyJqFilter(_0x5900bd,_0x3b9843['jqFilter']);}catch(_0x3bf61f){const _0x4e79fc=_0x3bf61f instanceof CliError?_0x3bf61f:CliErrors[_0x54d802(0x1b3)](_0x54d802(0x1a3)+(_0x3bf61f instanceof Error?_0x3bf61f['message']:String(_0x3bf61f))),_0xd034cc={..._0x308a09,'error':{'code':_0x4e79fc[_0x54d802(0x1ad)],'message':_0x4e79fc[_0x54d802(0x1ae)],..._0x4e79fc['hint']?{'hint':_0x4e79fc['hint']}:{},'cause':_0x308a09['error']}};_0x3f8e00=_0x3b9843[_0x54d802(0x1af)]===_0x54d802(0x1aa)?JSON[_0x54d802(0x19a)](_0xd034cc,null,0x2):JSON[_0x54d802(0x19a)](_0xd034cc);}return process[_0x54d802(0x1a4)][_0x54d802(0x1a2)](_0x3f8e00[_0x54d802(0x19b)]('\x0a')?_0x3f8e00:_0x3f8e00+'\x0a'),!![];}function printPrettyNotice(_0x24cb8a){const _0x41e872=a224_0x5119;if(!_0x24cb8a?.[_0x41e872(0x1a7)])return;console['error'](_0x24cb8a[_0x41e872(0x1a7)]['message']+'\x20('+_0x24cb8a[_0x41e872(0x1a7)]['url']+')');}function a224_0x15c1(){const _0x15b967=['_notice','333834UaIpbS','code','message','format','5375784zHIVdo','10dCTjOZ','command','validation','trim','stringify','endsWith','2SAgIKJ','pretty','risk','8zOOyrp','jqFilter','12037572gUswbN','write','jq:\x20','stdout','6962417hHtRlN','2571305vMusxL','update','247353lzRBpC','6340002PTMOlZ','json'];a224_0x15c1=function(){return _0x15b967;};return a224_0x15c1();}
@@ -1 +1 @@
1
- function a225_0x3630(){var _0x91d16f=['152uKsRqF','219423lAhoyF','8093910CuBiad','412746sweWaC','5zcOvyX','5743668EvNQLL','4936758iWVraF','326862eVczmn','7873306qHejOI','2ylcOcR'];a225_0x3630=function(){return _0x91d16f;};return a225_0x3630();}function a225_0x16e3(_0x180052,_0x304044){_0x180052=_0x180052-0x148;var _0x36301c=a225_0x3630();var _0x16e392=_0x36301c[_0x180052];return _0x16e392;}(function(_0x229c40,_0x3d49c4){var _0x91ac61=a225_0x16e3,_0x53c597=_0x229c40();while(!![]){try{var _0x2f8f3a=parseInt(_0x91ac61(0x14a))/0x1+-parseInt(_0x91ac61(0x148))/0x2*(-parseInt(_0x91ac61(0x14f))/0x3)+-parseInt(_0x91ac61(0x14e))/0x4+-parseInt(_0x91ac61(0x14d))/0x5*(-parseInt(_0x91ac61(0x14c))/0x6)+-parseInt(_0x91ac61(0x151))/0x7+parseInt(_0x91ac61(0x149))/0x8*(parseInt(_0x91ac61(0x150))/0x9)+parseInt(_0x91ac61(0x14b))/0xa;if(_0x2f8f3a===_0x3d49c4)break;else _0x53c597['push'](_0x53c597['shift']());}catch(_0x1b8b6e){_0x53c597['push'](_0x53c597['shift']());}}}(a225_0x3630,0xd506e));export{extractList,extractPaging}from'@lovrabet/cli-framework';
1
+ function a225_0x142f(_0x4bb888,_0x98d4bb){_0x4bb888=_0x4bb888-0x1e3;var _0x269683=a225_0x2696();var _0x142f48=_0x269683[_0x4bb888];return _0x142f48;}(function(_0x44a0a2,_0x1270ab){var _0xc3575f=a225_0x142f,_0x1a8dd4=_0x44a0a2();while(!![]){try{var _0x28799f=-parseInt(_0xc3575f(0x1eb))/0x1*(-parseInt(_0xc3575f(0x1e8))/0x2)+parseInt(_0xc3575f(0x1ea))/0x3+parseInt(_0xc3575f(0x1e6))/0x4*(parseInt(_0xc3575f(0x1ee))/0x5)+parseInt(_0xc3575f(0x1e7))/0x6*(-parseInt(_0xc3575f(0x1ed))/0x7)+parseInt(_0xc3575f(0x1e5))/0x8*(-parseInt(_0xc3575f(0x1e9))/0x9)+-parseInt(_0xc3575f(0x1e3))/0xa*(parseInt(_0xc3575f(0x1e4))/0xb)+-parseInt(_0xc3575f(0x1ec))/0xc;if(_0x28799f===_0x1270ab)break;else _0x1a8dd4['push'](_0x1a8dd4['shift']());}catch(_0x44dc87){_0x1a8dd4['push'](_0x1a8dd4['shift']());}}}(a225_0x2696,0xa330e));function a225_0x2696(){var _0x49111d=['150JJAidf','11413008VVMWRM','7CWbDik','1176690EunJCn','4602380CnONLy','11wyWgNy','8FwCGFy','12adFPjk','4543116XACTZr','16442moqyuh','1838961IcVKUf','3306309Pbaigb'];a225_0x2696=function(){return _0x49111d;};return a225_0x2696();}export{extractList,extractPaging}from'@lovrabet/cli-framework';
@@ -1 +1 @@
1
- function a226_0x1c5d(){const _0x4bc6d2=['map','Available\x20aliases:\x20','type','292650VEERhe','3YusoAh','length','21515337TTGPdO','name','flags','validation','join','code','3053180PheXxY','5311128JZKFDr','464408AfIART','Unknown\x20alias\x20\x22','No\x20api.ts\x20found\x20in\x20','.\x20Run\x20`','1515754KuZydg','7uvHikv','some','5196918tnARQf','alias','string'];a226_0x1c5d=function(){return _0x4bc6d2;};return a226_0x1c5d();}(function(_0x42ab37,_0x259d02){const _0x1444d8=a226_0xff99,_0x4e9276=_0x42ab37();while(!![]){try{const _0x53bd10=-parseInt(_0x1444d8(0x1a7))/0x1+-parseInt(_0x1444d8(0x1ab))/0x2*(-parseInt(_0x1444d8(0x1b5))/0x3)+-parseInt(_0x1444d8(0x1a5))/0x4+parseInt(_0x1444d8(0x1b4))/0x5+-parseInt(_0x1444d8(0x1ae))/0x6*(parseInt(_0x1444d8(0x1ac))/0x7)+-parseInt(_0x1444d8(0x1a6))/0x8+parseInt(_0x1444d8(0x19f))/0x9;if(_0x53bd10===_0x259d02)break;else _0x4e9276['push'](_0x4e9276['shift']());}catch(_0xcead08){_0x4e9276['push'](_0x4e9276['shift']());}}}(a226_0x1c5d,0x6dae5));function a226_0xff99(_0x295134,_0xec740c){_0x295134=_0x295134-0x19f;const _0x1c5d44=a226_0x1c5d();let _0xff9917=_0x1c5d44[_0x295134];return _0xff9917;}import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';export function resolveAliasToCode(_0x508180,_0x4369b4,_0x413d1f,_0x3a71ee){const _0x21ce66=a226_0xff99,_0x41ef7f=_0x508180[_0x21ce66(0x1a1)]['some'](_0x1a02ab=>_0x1a02ab[_0x21ce66(0x1a0)]==='code'&&_0x1a02ab[_0x21ce66(0x1b3)]===_0x21ce66(0x1b0)),_0xc94192=_0x508180[_0x21ce66(0x1a1)][_0x21ce66(0x1ad)](_0x9dc86e=>_0x9dc86e[_0x21ce66(0x1a0)]===_0x21ce66(0x1af)&&_0x9dc86e['type']===_0x21ce66(0x1b0));if(!_0x41ef7f||!_0xc94192)return;const _0x5dd997=_0x4369b4[_0x21ce66(0x1a4)]?String(_0x4369b4[_0x21ce66(0x1a4)]):'',_0x33fdf8=_0x4369b4['alias']?String(_0x4369b4[_0x21ce66(0x1af)]):'';if(!_0x5dd997&&!_0x33fdf8)throw CliErrors[_0x21ce66(0x1a2)]('`'+_0x3a71ee+'`\x20requires\x20either\x20--code\x20or\x20--alias.');if(_0x33fdf8&&!_0x5dd997){const _0x4a9602=resolveAlias(_0x413d1f,_0x33fdf8);if(!_0x4a9602){const _0x2e5842=listAliases(_0x413d1f)[_0x21ce66(0x1b1)](_0x4ea4cf=>_0x4ea4cf[_0x21ce66(0x1af)]),_0x27d249=_0x2e5842[_0x21ce66(0x1b6)]?_0x21ce66(0x1b2)+_0x2e5842[_0x21ce66(0x1a3)](',\x20'):_0x21ce66(0x1a9)+_0x413d1f+_0x21ce66(0x1aa)+CLI_BIN_NAME+'\x20api\x20pull`\x20first.';throw CliErrors[_0x21ce66(0x1a2)](_0x21ce66(0x1a8)+_0x33fdf8+'\x22.\x20'+_0x27d249);}_0x4369b4[_0x21ce66(0x1a4)]=_0x4a9602;}}
1
+ function a226_0x5c81(_0x44b26a,_0x565ae4){_0x44b26a=_0x44b26a-0x12e;const _0x487c52=a226_0x487c();let _0x5c81a4=_0x487c52[_0x44b26a];return _0x5c81a4;}(function(_0x1b3ee9,_0x11a2e8){const _0xb19428=a226_0x5c81,_0x5d3d86=_0x1b3ee9();while(!![]){try{const _0x13cd8c=parseInt(_0xb19428(0x136))/0x1+-parseInt(_0xb19428(0x13c))/0x2+-parseInt(_0xb19428(0x13a))/0x3*(-parseInt(_0xb19428(0x141))/0x4)+parseInt(_0xb19428(0x146))/0x5+parseInt(_0xb19428(0x142))/0x6*(parseInt(_0xb19428(0x138))/0x7)+parseInt(_0xb19428(0x143))/0x8+parseInt(_0xb19428(0x137))/0x9*(-parseInt(_0xb19428(0x13f))/0xa);if(_0x13cd8c===_0x11a2e8)break;else _0x5d3d86['push'](_0x5d3d86['shift']());}catch(_0x23ea65){_0x5d3d86['push'](_0x5d3d86['shift']());}}}(a226_0x487c,0xdec62));import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';function a226_0x487c(){const _0x50f2a9=['1201861AdorqN','277335EZGPXl','7112DfCYFi','.\x20Run\x20`','216831QFtXPP','No\x20api.ts\x20found\x20in\x20','1474514HlbraT','validation','join','1030dgRUWf','\x22.\x20','12WGFKxA','852mAtfUh','12232624EmbwpB','name','Available\x20aliases:\x20','8658210OsHxlk','flags','`\x20requires\x20either\x20--code\x20or\x20--alias.','Unknown\x20alias\x20\x22','type','map','code','some','alias','string'];a226_0x487c=function(){return _0x50f2a9;};return a226_0x487c();}export function resolveAliasToCode(_0x323553,_0x21c634,_0x379483,_0x50de91){const _0x65fc90=a226_0x5c81,_0x1829cb=_0x323553['flags'][_0x65fc90(0x133)](_0x43c0e6=>_0x43c0e6[_0x65fc90(0x144)]==='code'&&_0x43c0e6['type']===_0x65fc90(0x135)),_0x80f8f5=_0x323553[_0x65fc90(0x147)]['some'](_0x496d54=>_0x496d54[_0x65fc90(0x144)]===_0x65fc90(0x134)&&_0x496d54[_0x65fc90(0x130)]===_0x65fc90(0x135));if(!_0x1829cb||!_0x80f8f5)return;const _0x3c25e4=_0x21c634[_0x65fc90(0x132)]?String(_0x21c634[_0x65fc90(0x132)]):'',_0x5a48fe=_0x21c634[_0x65fc90(0x134)]?String(_0x21c634['alias']):'';if(!_0x3c25e4&&!_0x5a48fe)throw CliErrors[_0x65fc90(0x13d)]('`'+_0x50de91+_0x65fc90(0x12e));if(_0x5a48fe&&!_0x3c25e4){const _0x21d6f7=resolveAlias(_0x379483,_0x5a48fe);if(!_0x21d6f7){const _0x3507e1=listAliases(_0x379483)[_0x65fc90(0x131)](_0x3d6e78=>_0x3d6e78['alias']),_0x398491=_0x3507e1['length']?_0x65fc90(0x145)+_0x3507e1[_0x65fc90(0x13e)](',\x20'):_0x65fc90(0x13b)+_0x379483+_0x65fc90(0x139)+CLI_BIN_NAME+'\x20api\x20pull`\x20first.';throw CliErrors[_0x65fc90(0x13d)](_0x65fc90(0x12f)+_0x5a48fe+_0x65fc90(0x140)+_0x398491);}_0x21c634[_0x65fc90(0x132)]=_0x21d6f7;}}
@@ -1 +1 @@
1
- const a227_0xd3443f=a227_0x2aee;(function(_0x3edb3e,_0x11cd5f){const _0x4254de=a227_0x2aee,_0x57ca14=_0x3edb3e();while(!![]){try{const _0x8f149a=parseInt(_0x4254de(0x175))/0x1*(-parseInt(_0x4254de(0x17d))/0x2)+-parseInt(_0x4254de(0x14c))/0x3+-parseInt(_0x4254de(0x16d))/0x4*(-parseInt(_0x4254de(0x155))/0x5)+parseInt(_0x4254de(0x178))/0x6+-parseInt(_0x4254de(0x148))/0x7*(parseInt(_0x4254de(0x14b))/0x8)+-parseInt(_0x4254de(0x15e))/0x9*(parseInt(_0x4254de(0x171))/0xa)+-parseInt(_0x4254de(0x15c))/0xb*(-parseInt(_0x4254de(0x16a))/0xc);if(_0x8f149a===_0x11cd5f)break;else _0x57ca14['push'](_0x57ca14['shift']());}catch(_0x147057){_0x57ca14['push'](_0x57ca14['shift']());}}}(a227_0x4f7c,0xd0e51));import{resolveCommandAuthMode,runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';import{getCookie}from'../auth/get-cookie.js';import{getApiDomain}from'../constant/domain.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{DEFAULT_API_DIR}from'../constant/paths.js';import{isNonInteractive as a227_0x345670}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x18976b){const _0x4c522e=a227_0x2aee;return typeof _0x18976b===_0x4c522e(0x16f)&&_0x18976b['trim']()?_0x18976b[_0x4c522e(0x142)]():undefined;}function a227_0x4f7c(){const _0x33f545=['resolveAppCode','Set\x20appcode\x20via\x20`','trim','command','resolve','schema','cookie','validation','57617ilpypU','appCode','resolveApiDomain','168uNXSXB','4710234boXDcB','defaultPageSize','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','isNonInteractive','High-risk\x20operation\x20`','verbose','⚠\x20\x20High-risk\x20operation:\x20','_notice','defaultApp','1724430uGftjV','service','pageSize','cancelled','Current\x20resolved\x20appcode\x20is\x20\x22','map','find','110YXGnml','selectedAppName','4730247aAbbgA','message','some','defaultVerbose','authRequired','execute','value','explicitAppName','doctor','apps','resolveCookie','has','2486676bEQLJA','filter','pretty','4mEtdun','hasFormat','string','../core/api-client.js','10sZEqFH','configMissing','To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$','name','1rzRBth','format','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','7859994DCXbPx','appcode','required','rejectedFlags','\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20','1205940SXEZuo','rawFlags','mergedCli','\x20\x20\x20Continue?\x20[y/N]\x20','RABETBASE_APPCODE','toUpperCase','requiresAppCode','catch','hint','update','No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.','none','object'];a227_0x4f7c=function(){return _0x33f545;};return a227_0x4f7c();}function resolveEnvAppCode(){const _0x116ed1=a227_0x2aee,_0xbcaa71=stringFlag(process.env.RABETBASE_APPCODE);if(_0xbcaa71)return{'name':_0x116ed1(0x137),'value':_0xbcaa71};const _0x53279d=stringFlag(process.env.LOVRABET_APPCODE);if(_0x53279d)return{'name':'LOVRABET_APPCODE','value':_0x53279d};return undefined;}function a227_0x2aee(_0x34f40a,_0x11033e){_0x34f40a=_0x34f40a-0x135;const _0x4f7c4a=a227_0x4f7c();let _0x2aee02=_0x4f7c4a[_0x34f40a];return _0x2aee02;}function hasExplicitAppCode(_0x18c1da,_0x4790b1){const _0x2d4e8c=a227_0x2aee;return!!(stringFlag(_0x18c1da[_0x2d4e8c(0x179)])||stringFlag(_0x4790b1[_0x2d4e8c(0x179)]));}function assertEnvAppCodeNotIgnored(_0x5f4a71,_0x468425,_0x4f4a69){const _0x44fd44=a227_0x2aee;if(!_0x468425||_0x4f4a69||_0x5f4a71===_0x468425[_0x44fd44(0x164)])return;const _0x43e1ae=_0x5f4a71?_0x44fd44(0x159)+_0x5f4a71+'\x22.':_0x44fd44(0x13d);throw CliErrors[_0x44fd44(0x147)](_0x468425[_0x44fd44(0x174)]+'='+_0x468425[_0x44fd44(0x164)]+_0x44fd44(0x17c)+_0x43e1ae+'\x20'+(_0x44fd44(0x173)+_0x468425['name']+'\x22.'));}export function createPipelineEnv(_0x336b37,_0x2ed820,_0x24269b=[]){const _0x2620d0=a227_0x2aee;return{'rawFlags':_0x2ed820,'args':_0x24269b,'resolveAppCode':()=>_0x336b37[_0x2620d0(0x149)],'resolveCookie':()=>_0x336b37[_0x2620d0(0x146)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a227_0x345670(_0x2ed820),'defaultFormat':_0x336b37['format'],'defaultPageSize':_0x336b37[_0x2620d0(0x157)],'defaultVerbose':_0x336b37[_0x2620d0(0x151)],'apiDir':_0x336b37['apiDir'],'riskLevel':_0x336b37['riskLevel'],'selectedAppName':_0x336b37[_0x2620d0(0x165)],'mergedCli':{'defaultApp':_0x336b37[_0x2620d0(0x154)],'currentApp':_0x336b37['currentApp'],'appCode':_0x336b37[_0x2620d0(0x149)],'apps':_0x336b37[_0x2620d0(0x167)]}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[a227_0xd3443f(0x16b)](_0x128ede=>PIPELINE_FLAG_NAMES[a227_0xd3443f(0x169)](_0x128ede[a227_0xd3443f(0x174)]))[a227_0xd3443f(0x15a)](({name:_0x536904,type:_0x464e2e,description:_0x5d7bae})=>({'name':_0x536904,'type':_0x464e2e,'description':_0x5d7bae})),'formatOutput':formatOutput,'getCommandLabel'(_0x6539e5){const _0x2da89f=a227_0xd3443f;return CLI_BIN_NAME+'\x20'+_0x6539e5[_0x2da89f(0x156)]+'\x20'+_0x6539e5[_0x2da89f(0x143)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x3a8697){const _0x396fb9=a227_0xd3443f;return CliErrors[_0x396fb9(0x147)](_0x3a8697);}},async 'prepare'(_0x1463dc,_0x13b000,_0x4ae929,_0x17b6a3){const _0x2604f2=a227_0xd3443f,_0x24d27a=_0x13b000['apiDir']||DEFAULT_API_DIR;resolveAliasToCode(_0x1463dc,_0x4ae929,_0x24d27a,_0x17b6a3);const _0x5edfcb=resolveCommandAuthMode(_0x1463dc);let _0x3b68e4='';if(_0x5edfcb!==_0x2604f2(0x13e)){_0x3b68e4=_0x13b000[_0x2604f2(0x168)]()||'';if(!_0x3b68e4){if(_0x5edfcb===_0x2604f2(0x17a))throw CliErrors[_0x2604f2(0x162)]();}else{const {setActiveCookie:_0x4bee06}=await import(_0x2604f2(0x170));_0x4bee06(_0x3b68e4);}}const _0x29a825=_0x13b000[_0x2604f2(0x140)]()??'';if(_0x1463dc[_0x2604f2(0x139)]!==![]){assertEnvAppCodeNotIgnored(_0x29a825,resolveEnvAppCode(),hasExplicitAppCode(_0x4ae929,_0x13b000['rawFlags']));if(!_0x29a825)throw CliErrors[_0x2604f2(0x172)](_0x2604f2(0x141)+CLI_BIN_NAME+_0x2604f2(0x14e));}return{'defaults':{'booleans':{'verbose':_0x13b000[_0x2604f2(0x161)]},'numbers':{'pagesize':_0x13b000[_0x2604f2(0x14d)]}},'extras':{'appCode':_0x29a825,'cookie':_0x3b68e4,'apiDomain':_0x13b000[_0x2604f2(0x14a)](),'apiDir':_0x24d27a,'selectedAppName':_0x13b000[_0x2604f2(0x15d)],'mergedCli':_0x13b000[_0x2604f2(0x135)]}};},async 'confirmHighRisk'({env:_0x1a2202,commandLabel:_0x4561da}){const _0x203a97=a227_0xd3443f;if(_0x1a2202[_0x203a97(0x14f)])throw CliErrors[_0x203a97(0x147)](_0x203a97(0x150)+_0x4561da+_0x203a97(0x177));await requireConfirmationPrompt({'lines':[_0x203a97(0x152)+_0x4561da,_0x203a97(0x136)],'createCancelledError':_0xf8fd44=>CliErrors[_0x203a97(0x158)](_0xf8fd44)});},async 'finalize'(){const {clearActiveCookie:_0x281d93}=await import('../core/api-client.js');_0x281d93();}};export async function runCommand(_0x5ed726,_0x3dcbf4){const _0x513d03=a227_0xd3443f;assertRejectedFlags(_0x5ed726,_0x3dcbf4[_0x513d03(0x17e)]),await runCommandWithAdapter(shouldAttachUpdateNotice(_0x5ed726)?withUpdateNotice(_0x5ed726):_0x5ed726,_0x3dcbf4,runnerAdapter);}function assertRejectedFlags(_0x19c107,_0x3d00bf){const _0x325826=a227_0xd3443f;for(const _0x283ce6 of _0x19c107[_0x325826(0x17b)]??[]){const _0x3691dd=GLOBAL_FLAGS[_0x325826(0x15b)](_0x5b795c=>_0x5b795c[_0x325826(0x174)]===_0x283ce6[_0x325826(0x174)]),_0x59f76e=new Set([_0x283ce6['name'],toCamelCase(_0x283ce6[_0x325826(0x174)]),_0x3691dd?.['meowKey']]),_0x3ad43d=[..._0x59f76e][_0x325826(0x160)](_0x6e01fa=>{if(!_0x6e01fa)return![];const _0x166a5b=_0x3d00bf[_0x6e01fa];return _0x166a5b!==undefined&&_0x166a5b!==null&&_0x166a5b!==![];});if(_0x3ad43d)throw CliErrors[_0x325826(0x147)](_0x283ce6[_0x325826(0x15f)],_0x283ce6[_0x325826(0x13b)]);}}function toCamelCase(_0x4524b0){const _0x1eb2f6=a227_0xd3443f;return _0x4524b0['replace'](/-([a-z])/g,(_0x135244,_0x30cc3a)=>_0x30cc3a[_0x1eb2f6(0x138)]());}function shouldAttachUpdateNotice(_0x1e5f51){const _0x3a3c1c=a227_0xd3443f;if(_0x1e5f51[_0x3a3c1c(0x16e)]===![])return![];return![_0x3a3c1c(0x13c),_0x3a3c1c(0x145),_0x3a3c1c(0x166)]['includes'](_0x1e5f51[_0x3a3c1c(0x156)]);}function withUpdateNotice(_0x34b9bd){return{..._0x34b9bd,async 'execute'(_0x1e82e8){const _0x37726b=a227_0x2aee,_0xc8fb68=shouldResolveUpdateNotice(_0x1e82e8)?resolveLatestUpdateNotice()[_0x37726b(0x13a)](()=>null):Promise[_0x37726b(0x144)](null),_0x437f7b=await _0x34b9bd[_0x37726b(0x163)](_0x1e82e8);return attachUpdateNotice(_0x437f7b,await _0xc8fb68);}};}function shouldResolveUpdateNotice(_0x5cdbd7){const _0x406cc4=a227_0xd3443f;return _0x5cdbd7[_0x406cc4(0x176)]===_0x406cc4(0x16c)&&!_0x5cdbd7['nonInteractive'];}function attachUpdateNotice(_0x434e3f,_0x20c222){const _0x254005=a227_0xd3443f;if(!_0x20c222||!_0x434e3f||typeof _0x434e3f!==_0x254005(0x13f))return _0x434e3f;const _0x1f9f4c=_0x434e3f,_0x3d45ec=typeof _0x1f9f4c[_0x254005(0x153)]===_0x254005(0x13f)&&_0x1f9f4c['_notice']!==null?_0x1f9f4c[_0x254005(0x153)]:{};return{..._0x1f9f4c,'_notice':{..._0x3d45ec,'update':_0x20c222}};}
1
+ const a227_0x43f6cb=a227_0x20df;(function(_0x5abf29,_0x3fb45d){const _0x539922=a227_0x20df,_0x236d23=_0x5abf29();while(!![]){try{const _0x1645bb=-parseInt(_0x539922(0xb0))/0x1+-parseInt(_0x539922(0xbf))/0x2*(parseInt(_0x539922(0xc1))/0x3)+parseInt(_0x539922(0xae))/0x4+-parseInt(_0x539922(0xa3))/0x5*(parseInt(_0x539922(0xd2))/0x6)+parseInt(_0x539922(0xbe))/0x7+-parseInt(_0x539922(0xa6))/0x8*(parseInt(_0x539922(0xb4))/0x9)+parseInt(_0x539922(0xac))/0xa;if(_0x1645bb===_0x3fb45d)break;else _0x236d23['push'](_0x236d23['shift']());}catch(_0x228950){_0x236d23['push'](_0x236d23['shift']());}}}(a227_0x5f47,0xb6445));import{resolveCommandAuthMode,runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';function a227_0x5f47(){const _0x24be37=['has','doctor','15328090rsgZKb','High-risk\x20operation\x20`','2817176gOhDPr','object','1020489oHDtah','schema','validation','apps','13347MpPqxV','value','authRequired','defaultApp','replace','pageSize','rejectedFlags','\x20\x20\x20Continue?\x20[y/N]\x20','cookie','apiDir','7834666jeKChP','2PGBHDU','service','2301087nSVnPq','resolveAppCode','Set\x20appcode\x20via\x20`','toUpperCase','pretty','To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$','name','selectedAppName','No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.','some','map','Current\x20resolved\x20appcode\x20is\x20\x22','configMissing','⚠\x20\x20High-risk\x20operation:\x20','none','explicitAppName','trim','244302KNYNso','format','update','_notice','meowKey','defaultVerbose','LOVRABET_APPCODE','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','../core/api-client.js','resolveApiDomain','rawFlags','message','5dCrUPh','cancelled','\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20','4216BrPvZb','command','appcode','string'];a227_0x5f47=function(){return _0x24be37;};return a227_0x5f47();}import{getCookie}from'../auth/get-cookie.js';import{getApiDomain}from'../constant/domain.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{DEFAULT_API_DIR}from'../constant/paths.js';import{isNonInteractive as a227_0x4949b9}from'../utils/is-non-interactive.js';function a227_0x20df(_0x321a88,_0x3d843e){_0x321a88=_0x321a88-0x99;const _0x5f47d6=a227_0x5f47();let _0x20df1b=_0x5f47d6[_0x321a88];return _0x20df1b;}import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x173b0){const _0x5c70b6=a227_0x20df;return typeof _0x173b0===_0x5c70b6(0xa9)&&_0x173b0[_0x5c70b6(0xd1)]()?_0x173b0[_0x5c70b6(0xd1)]():undefined;}function resolveEnvAppCode(){const _0x231e19=a227_0x20df,_0x3b46cd=stringFlag(process.env.RABETBASE_APPCODE);if(_0x3b46cd)return{'name':'RABETBASE_APPCODE','value':_0x3b46cd};const _0x502f7f=stringFlag(process.env.LOVRABET_APPCODE);if(_0x502f7f)return{'name':_0x231e19(0x9d),'value':_0x502f7f};return undefined;}function hasExplicitAppCode(_0x5a04c8,_0x5e2cf9){const _0x34c663=a227_0x20df;return!!(stringFlag(_0x5a04c8[_0x34c663(0xa8)])||stringFlag(_0x5e2cf9['appcode']));}function assertEnvAppCodeNotIgnored(_0xe7fe4d,_0x23e62c,_0x7fdddf){const _0x512499=a227_0x20df;if(!_0x23e62c||_0x7fdddf||_0xe7fe4d===_0x23e62c[_0x512499(0xb5)])return;const _0x167c1e=_0xe7fe4d?_0x512499(0xcc)+_0xe7fe4d+'\x22.':_0x512499(0xc9);throw CliErrors[_0x512499(0xb2)](_0x23e62c[_0x512499(0xc7)]+'='+_0x23e62c[_0x512499(0xb5)]+_0x512499(0xa5)+_0x167c1e+'\x20'+(_0x512499(0xc6)+_0x23e62c[_0x512499(0xc7)]+'\x22.'));}export function createPipelineEnv(_0x51f97a,_0x4e74fc,_0x545c5a=[]){const _0x5f61f=a227_0x20df;return{'rawFlags':_0x4e74fc,'args':_0x545c5a,'resolveAppCode':()=>_0x51f97a['appCode'],'resolveCookie':()=>_0x51f97a[_0x5f61f(0xbc)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a227_0x4949b9(_0x4e74fc),'defaultFormat':_0x51f97a[_0x5f61f(0xd3)],'defaultPageSize':_0x51f97a[_0x5f61f(0xb9)],'defaultVerbose':_0x51f97a['verbose'],'apiDir':_0x51f97a[_0x5f61f(0xbd)],'riskLevel':_0x51f97a['riskLevel'],'selectedAppName':_0x51f97a[_0x5f61f(0xd0)],'mergedCli':{'defaultApp':_0x51f97a[_0x5f61f(0xb7)],'currentApp':_0x51f97a['currentApp'],'appCode':_0x51f97a['appCode'],'apps':_0x51f97a[_0x5f61f(0xb3)]}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS['filter'](_0x5b38ae=>PIPELINE_FLAG_NAMES[a227_0x43f6cb(0xaa)](_0x5b38ae[a227_0x43f6cb(0xc7)]))[a227_0x43f6cb(0xcb)](({name:_0x27915d,type:_0x2ae24f,description:_0x1a7175})=>({'name':_0x27915d,'type':_0x2ae24f,'description':_0x1a7175})),'formatOutput':formatOutput,'getCommandLabel'(_0x4cae39){const _0x45dbed=a227_0x43f6cb;return CLI_BIN_NAME+'\x20'+_0x4cae39['service']+'\x20'+_0x4cae39[_0x45dbed(0xa7)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x477b51){const _0x3c8b98=a227_0x43f6cb;return CliErrors[_0x3c8b98(0xb2)](_0x477b51);}},async 'prepare'(_0x412aa8,_0x519e86,_0x1bb229,_0x3370fe){const _0x254dc3=a227_0x43f6cb,_0x431b40=_0x519e86['apiDir']||DEFAULT_API_DIR;resolveAliasToCode(_0x412aa8,_0x1bb229,_0x431b40,_0x3370fe);const _0x5037e5=resolveCommandAuthMode(_0x412aa8);let _0x3c20f1='';if(_0x5037e5!==_0x254dc3(0xcf)){_0x3c20f1=_0x519e86['resolveCookie']()||'';if(!_0x3c20f1){if(_0x5037e5==='required')throw CliErrors[_0x254dc3(0xb6)]();}else{const {setActiveCookie:_0x48a7ef}=await import(_0x254dc3(0x9f));_0x48a7ef(_0x3c20f1);}}const _0x2dfbba=_0x519e86[_0x254dc3(0xc2)]()??'';if(_0x412aa8['requiresAppCode']!==![]){assertEnvAppCodeNotIgnored(_0x2dfbba,resolveEnvAppCode(),hasExplicitAppCode(_0x1bb229,_0x519e86[_0x254dc3(0xa1)]));if(!_0x2dfbba)throw CliErrors[_0x254dc3(0xcd)](_0x254dc3(0xc3)+CLI_BIN_NAME+_0x254dc3(0x9e));}return{'defaults':{'booleans':{'verbose':_0x519e86[_0x254dc3(0x9c)]},'numbers':{'pagesize':_0x519e86['defaultPageSize']}},'extras':{'appCode':_0x2dfbba,'cookie':_0x3c20f1,'apiDomain':_0x519e86[_0x254dc3(0xa0)](),'apiDir':_0x431b40,'selectedAppName':_0x519e86[_0x254dc3(0xc8)],'mergedCli':_0x519e86['mergedCli']}};},async 'confirmHighRisk'({env:_0x1677fc,commandLabel:_0x3f59a4}){const _0x219a8a=a227_0x43f6cb;if(_0x1677fc['isNonInteractive'])throw CliErrors['validation'](_0x219a8a(0xad)+_0x3f59a4+'`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.');await requireConfirmationPrompt({'lines':[_0x219a8a(0xce)+_0x3f59a4,_0x219a8a(0xbb)],'createCancelledError':_0x174ff0=>CliErrors[_0x219a8a(0xa4)](_0x174ff0)});},async 'finalize'(){const _0x3739fe=a227_0x43f6cb,{clearActiveCookie:_0x2d85ae}=await import(_0x3739fe(0x9f));_0x2d85ae();}};export async function runCommand(_0x2fa8bf,_0x53d588){const _0xa82dce=a227_0x43f6cb;assertRejectedFlags(_0x2fa8bf,_0x53d588[_0xa82dce(0xa1)]),await runCommandWithAdapter(shouldAttachUpdateNotice(_0x2fa8bf)?withUpdateNotice(_0x2fa8bf):_0x2fa8bf,_0x53d588,runnerAdapter);}function assertRejectedFlags(_0x55d0ac,_0x107015){const _0x3477f9=a227_0x43f6cb;for(const _0x42b677 of _0x55d0ac[_0x3477f9(0xba)]??[]){const _0xa7153d=GLOBAL_FLAGS['find'](_0x483b78=>_0x483b78[_0x3477f9(0xc7)]===_0x42b677['name']),_0x36bb0e=new Set([_0x42b677['name'],toCamelCase(_0x42b677['name']),_0xa7153d?.[_0x3477f9(0x9b)]]),_0x5075f5=[..._0x36bb0e][_0x3477f9(0xca)](_0x6c7f9a=>{if(!_0x6c7f9a)return![];const _0x4f85f9=_0x107015[_0x6c7f9a];return _0x4f85f9!==undefined&&_0x4f85f9!==null&&_0x4f85f9!==![];});if(_0x5075f5)throw CliErrors[_0x3477f9(0xb2)](_0x42b677[_0x3477f9(0xa2)],_0x42b677['hint']);}}function toCamelCase(_0x515747){const _0x48beec=a227_0x43f6cb;return _0x515747[_0x48beec(0xb8)](/-([a-z])/g,(_0x571655,_0xacee3d)=>_0xacee3d[_0x48beec(0xc4)]());}function shouldAttachUpdateNotice(_0x10a920){const _0x26ab81=a227_0x43f6cb;if(_0x10a920['hasFormat']===![])return![];return![_0x26ab81(0x99),_0x26ab81(0xb1),_0x26ab81(0xab)]['includes'](_0x10a920[_0x26ab81(0xc0)]);}function withUpdateNotice(_0x42265e){return{..._0x42265e,async 'execute'(_0x53d407){const _0x392b0f=shouldResolveUpdateNotice(_0x53d407)?resolveLatestUpdateNotice()['catch'](()=>null):Promise['resolve'](null),_0x465f46=await _0x42265e['execute'](_0x53d407);return attachUpdateNotice(_0x465f46,await _0x392b0f);}};}function shouldResolveUpdateNotice(_0x5ae942){const _0x1f1f96=a227_0x43f6cb;return _0x5ae942[_0x1f1f96(0xd3)]===_0x1f1f96(0xc5)&&!_0x5ae942['nonInteractive'];}function attachUpdateNotice(_0xa11eb4,_0x34f29c){const _0x45bc4b=a227_0x43f6cb;if(!_0x34f29c||!_0xa11eb4||typeof _0xa11eb4!==_0x45bc4b(0xaf))return _0xa11eb4;const _0x2547da=_0xa11eb4,_0x29cd26=typeof _0x2547da[_0x45bc4b(0x9a)]===_0x45bc4b(0xaf)&&_0x2547da['_notice']!==null?_0x2547da['_notice']:{};return{..._0x2547da,'_notice':{..._0x29cd26,'update':_0x34f29c}};}
@@ -1 +1 @@
1
- (function(_0x20c1aa,_0x392234){const _0x3adaf3=a228_0x49c5,_0x11e8bf=_0x20c1aa();while(!![]){try{const _0x4fe2e1=-parseInt(_0x3adaf3(0x65))/0x1+parseInt(_0x3adaf3(0x6a))/0x2+-parseInt(_0x3adaf3(0x6c))/0x3+parseInt(_0x3adaf3(0x68))/0x4+-parseInt(_0x3adaf3(0x6b))/0x5+parseInt(_0x3adaf3(0x66))/0x6*(-parseInt(_0x3adaf3(0x67))/0x7)+parseInt(_0x3adaf3(0x6d))/0x8*(parseInt(_0x3adaf3(0x69))/0x9);if(_0x4fe2e1===_0x392234)break;else _0x11e8bf['push'](_0x11e8bf['shift']());}catch(_0x275385){_0x11e8bf['push'](_0x11e8bf['shift']());}}}(a228_0x2541,0xb32fe));function a228_0x2541(){const _0x798521=['12462OYigTA','4844IytcDS','3024928CmIKan','3716127xZecqH','2224610iIJTsw','1509305qBBjEJ','4248045mygtOa','56mFMQeG','869748ayZAOS'];a228_0x2541=function(){return _0x798521;};return a228_0x2541();}import{buildSchemaPayload as a228_0xc0b4a7}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';function a228_0x49c5(_0x426531,_0xbe1730){_0x426531=_0x426531-0x65;const _0x254184=a228_0x2541();let _0x49c5ca=_0x254184[_0x426531];return _0x49c5ca;}import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const {serviceRegistry:_0x5b5696,findDefinition:_0x3bd529}=await import('../commands/registry.js');return a228_0xc0b4a7({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x5b5696,'buildAllFlags':buildAllFlags,'findDefinition':_0x3bd529});}
1
+ (function(_0x5bfcd4,_0x33688c){const _0x4928e6=a228_0x9729,_0x970cbf=_0x5bfcd4();while(!![]){try{const _0x569895=parseInt(_0x4928e6(0x155))/0x1*(parseInt(_0x4928e6(0x158))/0x2)+parseInt(_0x4928e6(0x156))/0x3+-parseInt(_0x4928e6(0x152))/0x4*(-parseInt(_0x4928e6(0x15b))/0x5)+parseInt(_0x4928e6(0x15d))/0x6*(parseInt(_0x4928e6(0x15c))/0x7)+-parseInt(_0x4928e6(0x159))/0x8*(parseInt(_0x4928e6(0x15a))/0x9)+-parseInt(_0x4928e6(0x153))/0xa*(-parseInt(_0x4928e6(0x157))/0xb)+-parseInt(_0x4928e6(0x154))/0xc;if(_0x569895===_0x33688c)break;else _0x970cbf['push'](_0x970cbf['shift']());}catch(_0xaddb2){_0x970cbf['push'](_0x970cbf['shift']());}}}(a228_0x1ada,0x8b25f));import{buildSchemaPayload as a228_0xc86b45}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';function a228_0x9729(_0x5068b8,_0x5b7784){_0x5068b8=_0x5068b8-0x152;const _0x1adaca=a228_0x1ada();let _0x972903=_0x1adaca[_0x5068b8];return _0x972903;}import{getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const {serviceRegistry:_0x5a0a4d,findDefinition:_0x384394}=await import('../commands/registry.js');return a228_0xc86b45({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x5a0a4d,'buildAllFlags':buildAllFlags,'findDefinition':_0x384394});}function a228_0x1ada(){const _0x3fdcd1=['18kEpkzb','8bFbpDY','3187521PGseUD','55bJcrYv','3387013jUvQUF','12RezSlP','224372yckCGG','76010zYJNoC','31176972ABrqTL','33739SqiqSO','1914234lWwhYu','1441VvQgAg'];a228_0x1ada=function(){return _0x3fdcd1;};return a228_0x1ada();}
@@ -1 +1 @@
1
- function a229_0x188f(_0x55c9d8,_0x5822d7){_0x55c9d8=_0x55c9d8-0xa5;var _0x533354=a229_0x5333();var _0x188f4e=_0x533354[_0x55c9d8];return _0x188f4e;}(function(_0x397ad5,_0x43d638){var _0x13b22c=a229_0x188f,_0x15ac38=_0x397ad5();while(!![]){try{var _0x5ee1bd=-parseInt(_0x13b22c(0xa6))/0x1*(parseInt(_0x13b22c(0xab))/0x2)+-parseInt(_0x13b22c(0xaa))/0x3+-parseInt(_0x13b22c(0xa5))/0x4*(parseInt(_0x13b22c(0xac))/0x5)+-parseInt(_0x13b22c(0xa9))/0x6+parseInt(_0x13b22c(0xad))/0x7+parseInt(_0x13b22c(0xa7))/0x8+parseInt(_0x13b22c(0xa8))/0x9;if(_0x5ee1bd===_0x43d638)break;else _0x15ac38['push'](_0x15ac38['shift']());}catch(_0x500ed1){_0x15ac38['push'](_0x15ac38['shift']());}}}(a229_0x5333,0x6a0fc));function a229_0x5333(){var _0x72e796=['65684Pnbycv','8370ChyqeH','340072uoAjgS','15375888WJZONK','3541122mmpfXV','356085VIwzxF','176qYGzoX','15OyrLEh','1247344wrpVSu'];a229_0x5333=function(){return _0x72e796;};return a229_0x5333();}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat,commandAllowsOptionalAuth,commandRequiresAuth,formatDeprecatedCommandMessage,resolveCommandAuthMode}from'@lovrabet/cli-framework';
1
+ function a229_0x2bd6(){var _0x3d9c89=['2985093dhUxsz','1195896xwRnJP','7fqybaj','12122984qdrvay','167uJjMOV','3117205IQFWzT','13140MEcYpj','29371410CtcloF','4521090miCWdp'];a229_0x2bd6=function(){return _0x3d9c89;};return a229_0x2bd6();}(function(_0x5d82d0,_0x48687a){var _0x561e8b=a229_0x197c,_0xe199e0=_0x5d82d0();while(!![]){try{var _0x567a0a=parseInt(_0x561e8b(0x1d5))/0x1*(parseInt(_0x561e8b(0x1d7))/0x2)+parseInt(_0x561e8b(0x1d1))/0x3+parseInt(_0x561e8b(0x1d2))/0x4+-parseInt(_0x561e8b(0x1d6))/0x5+parseInt(_0x561e8b(0x1d9))/0x6+-parseInt(_0x561e8b(0x1d3))/0x7*(-parseInt(_0x561e8b(0x1d4))/0x8)+-parseInt(_0x561e8b(0x1d8))/0x9;if(_0x567a0a===_0x48687a)break;else _0xe199e0['push'](_0xe199e0['shift']());}catch(_0x4e5c39){_0xe199e0['push'](_0xe199e0['shift']());}}}(a229_0x2bd6,0xbcc20));function a229_0x197c(_0x457c33,_0x5310e5){_0x457c33=_0x457c33-0x1d1;var _0x2bd6e0=a229_0x2bd6();var _0x197c6d=_0x2bd6e0[_0x457c33];return _0x197c6d;}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat,commandAllowsOptionalAuth,commandRequiresAuth,formatDeprecatedCommandMessage,resolveCommandAuthMode}from'@lovrabet/cli-framework';
@@ -1 +1 @@
1
- const a230_0x774011=a230_0x3ba8;(function(_0x2e31db,_0x35f75d){const _0x1b1849=a230_0x3ba8,_0x5a75c4=_0x2e31db();while(!![]){try{const _0x5a8db2=-parseInt(_0x1b1849(0xb7))/0x1+parseInt(_0x1b1849(0xb2))/0x2*(parseInt(_0x1b1849(0xaf))/0x3)+parseInt(_0x1b1849(0xb0))/0x4*(parseInt(_0x1b1849(0xae))/0x5)+-parseInt(_0x1b1849(0xb9))/0x6+parseInt(_0x1b1849(0xb6))/0x7+parseInt(_0x1b1849(0xb1))/0x8*(parseInt(_0x1b1849(0xb8))/0x9)+parseInt(_0x1b1849(0xba))/0xa*(-parseInt(_0x1b1849(0xb5))/0xb);if(_0x5a8db2===_0x35f75d)break;else _0x5a75c4['push'](_0x5a75c4['shift']());}catch(_0x96ffb1){_0x5a75c4['push'](_0x5a75c4['shift']());}}}(a230_0x2c0f,0xafcd6));export const VERSION='2.3.11';function a230_0x2c0f(){const _0x31c1a1=['6032970rjezcD','35630pjhBbL','895RNxivD','2005590aXqISq','26756HPmSMP','54320qNfgnr','4ksuCVb','ebe71c9','v2.3.11-beta.1','3223bUEbDA','6135759BHCXHF','1245698DmatpY','801WPeXQf'];a230_0x2c0f=function(){return _0x31c1a1;};return a230_0x2c0f();}function a230_0x3ba8(_0x3d4d84,_0x4be7cf){_0x3d4d84=_0x3d4d84-0xae;const _0x2c0fb7=a230_0x2c0f();let _0x3ba81d=_0x2c0fb7[_0x3d4d84];return _0x3ba81d;}export const GIT_TAG=a230_0x774011(0xb4);export const GIT_COMMIT=a230_0x774011(0xb3);export const BUILD_TIME='2026-08-03T10:53:53.205Z';
1
+ const a230_0x21e187=a230_0xa69f;(function(_0x1ceaad,_0x422edd){const _0x512d3b=a230_0xa69f,_0x496d19=_0x1ceaad();while(!![]){try{const _0x563517=parseInt(_0x512d3b(0x122))/0x1*(-parseInt(_0x512d3b(0x125))/0x2)+parseInt(_0x512d3b(0x121))/0x3*(parseInt(_0x512d3b(0x128))/0x4)+-parseInt(_0x512d3b(0x129))/0x5*(parseInt(_0x512d3b(0x123))/0x6)+-parseInt(_0x512d3b(0x11f))/0x7+parseInt(_0x512d3b(0x127))/0x8+-parseInt(_0x512d3b(0x120))/0x9+parseInt(_0x512d3b(0x124))/0xa;if(_0x563517===_0x422edd)break;else _0x496d19['push'](_0x496d19['shift']());}catch(_0x17d371){_0x496d19['push'](_0x496d19['shift']());}}}(a230_0x48ec,0xa36dc));export const VERSION=a230_0x21e187(0x12a);function a230_0x48ec(){const _0x154eb9=['2235895SXxqBM','2.3.12-beta.1','4725630HsHgud','10114533afQCeC','852kExNXS','231373LBLyso','6wfBabq','14456160MRtYTd','6qrNWEQ','feb8d38','6731400trtXhd','18628OQnwQf'];a230_0x48ec=function(){return _0x154eb9;};return a230_0x48ec();}export const GIT_TAG='v2.3.12-beta.1';export const GIT_COMMIT=a230_0x21e187(0x126);function a230_0xa69f(_0x1c3454,_0x5d3bec){_0x1c3454=_0x1c3454-0x11f;const _0x48ec48=a230_0x48ec();let _0xa69fd5=_0x48ec48[_0x1c3454];return _0xa69fd5;}export const BUILD_TIME='2026-08-04T07:47:21.250Z';
package/lib/help.js CHANGED
@@ -1 +1 @@
1
- (function(_0x161474,_0x59f27d){var _0x4bf47a=a231_0x5cd5,_0x302bbd=_0x161474();while(!![]){try{var _0x1cc981=parseInt(_0x4bf47a(0x176))/0x1+parseInt(_0x4bf47a(0x179))/0x2+parseInt(_0x4bf47a(0x17e))/0x3*(-parseInt(_0x4bf47a(0x17b))/0x4)+parseInt(_0x4bf47a(0x17d))/0x5+parseInt(_0x4bf47a(0x17f))/0x6*(-parseInt(_0x4bf47a(0x177))/0x7)+parseInt(_0x4bf47a(0x17a))/0x8+-parseInt(_0x4bf47a(0x175))/0x9;if(_0x1cc981===_0x59f27d)break;else _0x302bbd['push'](_0x302bbd['shift']());}catch(_0x151e2d){_0x302bbd['push'](_0x302bbd['shift']());}}}(a231_0x36e3,0xadd97));function a231_0x36e3(){var _0x571be1=['2030486OIwIfY','1009728gFmhUz','44jDGGqJ','\x20--help','5031590KhZdDC','247668klPoeq','6glpkqb','\x20to\x20view\x20available\x20commands.','\x20\x20Use\x20','log','1151649slRflf','829002BunFBp','8600305bzPOwv','bold'];a231_0x36e3=function(){return _0x571be1;};return a231_0x36e3();}function a231_0x5cd5(_0x5da292,_0x2cd7ad){_0x5da292=_0x5da292-0x175;var _0x36e3ea=a231_0x36e3();var _0x5cd53d=_0x36e3ea[_0x5da292];return _0x5cd53d;}import a231_0x101955 from'chalk';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0x3d3d0d=a231_0x5cd5;console[_0x3d3d0d(0x182)](),console['log'](a231_0x101955['green'][_0x3d3d0d(0x178)]('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x3d3d0d(0x182)](),console[_0x3d3d0d(0x182)](_0x3d3d0d(0x181)+a231_0x101955['green'][_0x3d3d0d(0x178)](CLI_BIN_NAME+_0x3d3d0d(0x17c))+_0x3d3d0d(0x180)),console[_0x3d3d0d(0x182)]();}
1
+ (function(_0x3fcb0e,_0x50504e){var _0x4ddb02=a231_0x5383,_0x4a69cc=_0x3fcb0e();while(!![]){try{var _0xfa03f=parseInt(_0x4ddb02(0xd9))/0x1+-parseInt(_0x4ddb02(0xe2))/0x2*(-parseInt(_0x4ddb02(0xe3))/0x3)+-parseInt(_0x4ddb02(0xda))/0x4+-parseInt(_0x4ddb02(0xdf))/0x5+-parseInt(_0x4ddb02(0xdc))/0x6+parseInt(_0x4ddb02(0xdb))/0x7*(-parseInt(_0x4ddb02(0xe5))/0x8)+parseInt(_0x4ddb02(0xdd))/0x9;if(_0xfa03f===_0x50504e)break;else _0x4a69cc['push'](_0x4a69cc['shift']());}catch(_0x2a70b7){_0x4a69cc['push'](_0x4a69cc['shift']());}}}(a231_0x204b,0x6f0a8));function a231_0x204b(){var _0x5dbd01=['\x20--help','2fhNIVI','2031243rLprSa','\x20\x20Use\x20','9032rstxUS','log','29574UuzAat','2237580NwlfXr','4137hokKgc','1067400NGllmG','13030686pbOdkP','green','1475755mHjScO','\x20to\x20view\x20available\x20commands.'];a231_0x204b=function(){return _0x5dbd01;};return a231_0x204b();}function a231_0x5383(_0x2bb02e,_0x16f64e){_0x2bb02e=_0x2bb02e-0xd8;var _0x204b45=a231_0x204b();var _0x53833c=_0x204b45[_0x2bb02e];return _0x53833c;}import a231_0x128390 from'chalk';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0xb1283a=a231_0x5383;console['log'](),console[_0xb1283a(0xd8)](a231_0x128390[_0xb1283a(0xde)]['bold']('\x20\x20'+CLI_DISPLAY_NAME)),console['log'](),console['log'](_0xb1283a(0xe4)+a231_0x128390[_0xb1283a(0xde)]['bold'](CLI_BIN_NAME+_0xb1283a(0xe1))+_0xb1283a(0xe0)),console[_0xb1283a(0xd8)]();}