@lovrabet/rabetbase-cli 2.3.12 → 2.3.13-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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
- const a205_0x521868=a205_0x4e98;(function(_0x1462fa,_0x4c6e0b){const _0x389c64=a205_0x4e98,_0x5950d3=_0x1462fa();while(!![]){try{const _0x2f5f8b=-parseInt(_0x389c64(0x76))/0x1*(parseInt(_0x389c64(0x74))/0x2)+-parseInt(_0x389c64(0x6b))/0x3+parseInt(_0x389c64(0x67))/0x4+-parseInt(_0x389c64(0x72))/0x5+-parseInt(_0x389c64(0x6a))/0x6*(-parseInt(_0x389c64(0x73))/0x7)+parseInt(_0x389c64(0x6e))/0x8+-parseInt(_0x389c64(0x69))/0x9*(parseInt(_0x389c64(0x68))/0xa);if(_0x2f5f8b===_0x4c6e0b)break;else _0x5950d3['push'](_0x5950d3['shift']());}catch(_0x25e504){_0x5950d3['push'](_0x5950d3['shift']());}}}(a205_0xc029,0xcf8f0));function a205_0xc029(){const _0x1e3d2b=['4965006xqcblb','3045633OLwHNd','F_OK','page.lock.json','11907888rMyJiq','.rabetbase','page','appPagesDir','1747315suKzia','7JFisTt','38DCKKAy','toUpperCase','76700HGXmXI','cwd','5466960EXMSMd','105930VaTWSE','9VfTqes'];a205_0xc029=function(){return _0x1e3d2b;};return a205_0xc029();}import{constants}from'node:fs';import{access,mkdir}from'node:fs/promises';import{dirname,join,resolve}from'node:path';export function loadPageProjectConfig(_0xdbe0fe,_0xc3292=process[a205_0x521868(0x77)]()){const _0x4290ee=a205_0x521868,_0x1ec98f=resolve(_0xc3292),_0x1363fd=join(_0x1ec98f,_0x4290ee(0x6f),_0x4290ee(0x70));return{'projectRoot':_0x1ec98f,'pagesBaseDir':_0x1363fd,'appPagesDir':join(_0x1363fd,_0xdbe0fe),'lockFilePath':join(_0x1ec98f,_0x4290ee(0x6f),_0x4290ee(0x6d))};}export function buildPageFileName(_0x565c40,_0x56f4bc){const _0x4be709=a205_0x521868;return _0x565c40+'-'+String(_0x56f4bc)[_0x4be709(0x75)]()+'.json';}export function resolvePageFilePath(_0x32a624,_0x1c4a30,_0x2a53a8){const _0x167a4b=a205_0x521868;return join(_0x32a624[_0x167a4b(0x71)],buildPageFileName(_0x1c4a30,_0x2a53a8));}export async function ensureParentDirectory(_0x754baa){await mkdir(dirname(_0x754baa),{'recursive':!![]});}function a205_0x4e98(_0x3c7906,_0x4d985b){_0x3c7906=_0x3c7906-0x67;const _0xc02945=a205_0xc029();let _0x4e9842=_0xc02945[_0x3c7906];return _0x4e9842;}export async function fileExists(_0x34f63d){const _0x5a63eb=a205_0x521868;try{return await access(_0x34f63d,constants[_0x5a63eb(0x6c)]),!![];}catch{return![];}}
1
+ const a205_0x30f94e=a205_0x48c9;(function(_0x225bb3,_0x3f21ec){const _0x184215=a205_0x48c9,_0x4d2a54=_0x225bb3();while(!![]){try{const _0xacefb0=-parseInt(_0x184215(0x159))/0x1*(parseInt(_0x184215(0x150))/0x2)+parseInt(_0x184215(0x151))/0x3+parseInt(_0x184215(0x158))/0x4+parseInt(_0x184215(0x157))/0x5+-parseInt(_0x184215(0x153))/0x6+parseInt(_0x184215(0x156))/0x7*(parseInt(_0x184215(0x155))/0x8)+-parseInt(_0x184215(0x152))/0x9*(-parseInt(_0x184215(0x15d))/0xa);if(_0xacefb0===_0x3f21ec)break;else _0x4d2a54['push'](_0x4d2a54['shift']());}catch(_0x436515){_0x4d2a54['push'](_0x4d2a54['shift']());}}}(a205_0x54c8,0xa7e90));import{constants}from'node:fs';import{access,mkdir}from'node:fs/promises';import{dirname,join,resolve}from'node:path';function a205_0x54c8(){const _0x578e41=['.json','130MJmHzV','page','page.lock.json','toUpperCase','34xOsyVy','610938OYBtqw','494757odbkrV','6505704TxHSzT','appPagesDir','4951912LagTAW','7mfEXop','3842565PxucLI','2914804ZMdcBA','74262NJZXfR','.rabetbase','cwd'];a205_0x54c8=function(){return _0x578e41;};return a205_0x54c8();}export function loadPageProjectConfig(_0x5f2cf0,_0x40e7a9=process[a205_0x30f94e(0x15b)]()){const _0x51130b=a205_0x30f94e,_0x1faa84=resolve(_0x40e7a9),_0x32d0e1=join(_0x1faa84,_0x51130b(0x15a),_0x51130b(0x14d));return{'projectRoot':_0x1faa84,'pagesBaseDir':_0x32d0e1,'appPagesDir':join(_0x32d0e1,_0x5f2cf0),'lockFilePath':join(_0x1faa84,_0x51130b(0x15a),_0x51130b(0x14e))};}export function buildPageFileName(_0x187c76,_0x3e1821){const _0x519168=a205_0x30f94e;return _0x187c76+'-'+String(_0x3e1821)[_0x519168(0x14f)]()+_0x519168(0x15c);}export function resolvePageFilePath(_0x553c57,_0x40e989,_0x5468f2){const _0x4d8610=a205_0x30f94e;return join(_0x553c57[_0x4d8610(0x154)],buildPageFileName(_0x40e989,_0x5468f2));}function a205_0x48c9(_0x24e436,_0x70611b){_0x24e436=_0x24e436-0x14d;const _0x54c8ff=a205_0x54c8();let _0x48c99b=_0x54c8ff[_0x24e436];return _0x48c99b;}export async function ensureParentDirectory(_0x117a3f){await mkdir(dirname(_0x117a3f),{'recursive':!![]});}export async function fileExists(_0x5ab26e){try{return await access(_0x5ab26e,constants['F_OK']),!![];}catch{return![];}}
@@ -1 +1 @@
1
- (function(_0x39156c,_0x3c610c){const _0x3a4956=a206_0x37ae,_0x556e1d=_0x39156c();while(!![]){try{const _0x4e9a6f=-parseInt(_0x3a4956(0xbb))/0x1+parseInt(_0x3a4956(0xc1))/0x2+parseInt(_0x3a4956(0xba))/0x3*(parseInt(_0x3a4956(0xb8))/0x4)+parseInt(_0x3a4956(0xc0))/0x5+-parseInt(_0x3a4956(0xbd))/0x6*(parseInt(_0x3a4956(0xb4))/0x7)+-parseInt(_0x3a4956(0xbf))/0x8*(parseInt(_0x3a4956(0xb6))/0x9)+parseInt(_0x3a4956(0xb7))/0xa;if(_0x4e9a6f===_0x3c610c)break;else _0x556e1d['push'](_0x556e1d['shift']());}catch(_0x10be76){_0x556e1d['push'](_0x556e1d['shift']());}}}(a206_0x4ab3,0x1a8bd));import a206_0x4f4869 from'node:crypto';function a206_0x37ae(_0x1de0ca,_0x5a534e){_0x1de0ca=_0x1de0ca-0xb3;const _0x4ab308=a206_0x4ab3();let _0x37aeb4=_0x4ab308[_0x1de0ca];return _0x37aeb4;}import{readFile}from'node:fs/promises';export function serializePageSchemaForFile(_0x424a6c){const _0x3dc702=a206_0x37ae;return JSON['stringify'](JSON[_0x3dc702(0xc2)](_0x424a6c),null,0x2)+'\x0a';}export function computePageContentHash(_0x5bf459){const _0x2b72f9=a206_0x37ae;return a206_0x4f4869[_0x2b72f9(0xbe)]('md5')[_0x2b72f9(0xb9)](_0x5bf459)[_0x2b72f9(0xb5)](_0x2b72f9(0xbc));}export function computeSerializedSchemaHash(_0xd0661){return computePageContentHash(serializePageSchemaForFile(_0xd0661));}export async function computePageFileHash(_0x5716a7){const _0x332138=a206_0x37ae,_0xad7222=await readFile(_0x5716a7,_0x332138(0xb3));return computePageContentHash(_0xad7222);}function a206_0x4ab3(){const _0x37ed63=['hex','36QgQpRb','createHash','8136xPJuTM','512000LbFWIP','259590DxuYuv','parse','utf8','135317HbNpri','digest','1629MHVPTL','3165930wWwoMy','32DWqMBB','update','18174iDuuZG','188456PCgqbn'];a206_0x4ab3=function(){return _0x37ed63;};return a206_0x4ab3();}
1
+ function a206_0x2a13(_0x44f7e6,_0xd78c5f){_0x44f7e6=_0x44f7e6-0xb3;const _0x5ce0ed=a206_0x5ce0();let _0x2a13bd=_0x5ce0ed[_0x44f7e6];return _0x2a13bd;}(function(_0x114aff,_0x2ff539){const _0x1f7f71=a206_0x2a13,_0x37eff6=_0x114aff();while(!![]){try{const _0x2496d4=parseInt(_0x1f7f71(0xbf))/0x1+parseInt(_0x1f7f71(0xb4))/0x2+parseInt(_0x1f7f71(0xb6))/0x3*(parseInt(_0x1f7f71(0xc0))/0x4)+parseInt(_0x1f7f71(0xbe))/0x5+-parseInt(_0x1f7f71(0xb5))/0x6*(parseInt(_0x1f7f71(0xbc))/0x7)+-parseInt(_0x1f7f71(0xbb))/0x8*(-parseInt(_0x1f7f71(0xb7))/0x9)+parseInt(_0x1f7f71(0xb3))/0xa*(-parseInt(_0x1f7f71(0xc1))/0xb);if(_0x2496d4===_0x2ff539)break;else _0x37eff6['push'](_0x37eff6['shift']());}catch(_0x14859d){_0x37eff6['push'](_0x37eff6['shift']());}}}(a206_0x5ce0,0xf33b5));import a206_0x303a3f from'node:crypto';import{readFile}from'node:fs/promises';export function serializePageSchemaForFile(_0x12432d){const _0x4e720e=a206_0x2a13;return JSON[_0x4e720e(0xbd)](JSON[_0x4e720e(0xba)](_0x12432d),null,0x2)+'\x0a';}export function computePageContentHash(_0x3695b8){const _0x50fe73=a206_0x2a13;return a206_0x303a3f['createHash']('md5')[_0x50fe73(0xb9)](_0x3695b8)[_0x50fe73(0xc2)](_0x50fe73(0xc3));}export function computeSerializedSchemaHash(_0xc3d108){return computePageContentHash(serializePageSchemaForFile(_0xc3d108));}export async function computePageFileHash(_0x6672a6){const _0x387c1b=a206_0x2a13,_0xf287cc=await readFile(_0x6672a6,_0x387c1b(0xb8));return computePageContentHash(_0xf287cc);}function a206_0x5ce0(){const _0x1d1b50=['13136184PyhBWi','10787ZRpTBc','stringify','2335820yRdUqY','183566kFZmOs','930584XGCPlc','1267948vjzHvc','digest','hex','220OktQFD','2574742OFiuqj','3810SycDWR','12mrkYfi','9yIOaJE','utf8','update','parse'];a206_0x5ce0=function(){return _0x1d1b50;};return a206_0x5ce0();}
@@ -1 +1 @@
1
- (function(_0x1e4ed1,_0x267c66){const _0x317441=a207_0x32a4,_0x13ea69=_0x1e4ed1();while(!![]){try{const _0x43f965=parseInt(_0x317441(0x7d))/0x1+parseInt(_0x317441(0x85))/0x2+parseInt(_0x317441(0x80))/0x3*(-parseInt(_0x317441(0x81))/0x4)+parseInt(_0x317441(0x87))/0x5*(parseInt(_0x317441(0x84))/0x6)+parseInt(_0x317441(0x83))/0x7*(-parseInt(_0x317441(0x8a))/0x8)+-parseInt(_0x317441(0x82))/0x9+parseInt(_0x317441(0x89))/0xa;if(_0x43f965===_0x267c66)break;else _0x13ea69['push'](_0x13ea69['shift']());}catch(_0xf49936){_0x13ea69['push'](_0x13ea69['shift']());}}}(a207_0x4441,0x8950f));import{mkdir,readFile,writeFile}from'node:fs/promises';function a207_0x4441(){const _0x41e5ef=['object','Failed\x20to\x20read\x20page\x20lock\x20file:\x20','117JxcwJC','86660Ytwgrb','3124017EnXnGS','1632407WQFSzK','72oaFTpC','2153888ejDjUz','apps','231250VYHCwN','parse','690480uuqnXQ','16VEjmGF','lastSync','pages','utf8','stringify','519905xIGiKU'];a207_0x4441=function(){return _0x41e5ef;};return a207_0x4441();}import{dirname}from'node:path';export function createEmptyPageLock(){return{'apps':{}};}export function ensurePageLockScope(_0x21025f,_0x56765b){const _0x3a6a05=a207_0x32a4,_0x5288ed={'apps':_0x21025f[_0x3a6a05(0x86)]&&typeof _0x21025f[_0x3a6a05(0x86)]===_0x3a6a05(0x7e)?_0x21025f['apps']:{}};let _0x5cf10c=_0x5288ed[_0x3a6a05(0x86)][_0x56765b];if(!_0x5cf10c)return _0x5cf10c={'lastSync':'','pages':{}},_0x5288ed[_0x3a6a05(0x86)][_0x56765b]=_0x5cf10c,{'lockData':_0x5288ed,'appLock':_0x5cf10c};return!_0x5cf10c[_0x3a6a05(0x8b)]&&(_0x5cf10c[_0x3a6a05(0x8b)]=''),(!_0x5cf10c[_0x3a6a05(0x8c)]||typeof _0x5cf10c[_0x3a6a05(0x8c)]!==_0x3a6a05(0x7e))&&(_0x5cf10c[_0x3a6a05(0x8c)]={}),{'lockData':_0x5288ed,'appLock':_0x5cf10c};}function a207_0x32a4(_0xbf1d35,_0x49a1db){_0xbf1d35=_0xbf1d35-0x7c;const _0x444102=a207_0x4441();let _0x32a4b3=_0x444102[_0xbf1d35];return _0x32a4b3;}export async function readPageLockFile(_0x2668a1){const _0x1ea9f0=a207_0x32a4;try{const _0x2c6c24=await readFile(_0x2668a1,_0x1ea9f0(0x8d)),_0x1f198d=JSON[_0x1ea9f0(0x88)](_0x2c6c24);return{'apps':_0x1f198d[_0x1ea9f0(0x86)]&&typeof _0x1f198d[_0x1ea9f0(0x86)]===_0x1ea9f0(0x7e)?_0x1f198d['apps']:{}};}catch(_0x252dde){if(_0x252dde['code']==='ENOENT')return null;throw new Error(_0x1ea9f0(0x7f)+String(_0x252dde));}}export async function writePageLockFile(_0x26746d,_0x26608a){const _0x3fbb2b=a207_0x32a4;await mkdir(dirname(_0x26746d),{'recursive':!![]}),await writeFile(_0x26746d,JSON[_0x3fbb2b(0x7c)](_0x26608a,null,0x2),_0x3fbb2b(0x8d));}
1
+ function a207_0x5be4(){const _0x1374f1=['4155wwMxhQ','1312770uiEuzi','utf8','2564FEKrSX','stringify','lastSync','1255441RBQPrv','132wQXZmp','12960uEXlVd','14quaFqm','code','object','apps','2887765GmgDzM','1008THOEGo','6QiDwGG','ENOENT','3633070PzSCXh','pages','118673DVaTAh'];a207_0x5be4=function(){return _0x1374f1;};return a207_0x5be4();}(function(_0x3067e4,_0x154fc0){const _0x3fa2f9=a207_0x278e,_0xbef5e2=_0x3067e4();while(!![]){try{const _0x4b1f8a=-parseInt(_0x3fa2f9(0x145))/0x1*(parseInt(_0x3fa2f9(0x155))/0x2)+-parseInt(_0x3fa2f9(0x146))/0x3*(parseInt(_0x3fa2f9(0x149))/0x4)+parseInt(_0x3fa2f9(0x153))/0x5+parseInt(_0x3fa2f9(0x147))/0x6*(parseInt(_0x3fa2f9(0x14f))/0x7)+parseInt(_0x3fa2f9(0x14e))/0x8*(-parseInt(_0x3fa2f9(0x154))/0x9)+-parseInt(_0x3fa2f9(0x157))/0xa+-parseInt(_0x3fa2f9(0x14c))/0xb*(-parseInt(_0x3fa2f9(0x14d))/0xc);if(_0x4b1f8a===_0x154fc0)break;else _0xbef5e2['push'](_0xbef5e2['shift']());}catch(_0x5178f9){_0xbef5e2['push'](_0xbef5e2['shift']());}}}(a207_0x5be4,0x75af1));import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';export function createEmptyPageLock(){return{'apps':{}};}function a207_0x278e(_0x1558b5,_0x5bc83d){_0x1558b5=_0x1558b5-0x145;const _0x5be46d=a207_0x5be4();let _0x278ed4=_0x5be46d[_0x1558b5];return _0x278ed4;}export function ensurePageLockScope(_0x7a0660,_0x3ff07a){const _0xe00ab0=a207_0x278e,_0x14d056={'apps':_0x7a0660['apps']&&typeof _0x7a0660[_0xe00ab0(0x152)]==='object'?_0x7a0660[_0xe00ab0(0x152)]:{}};let _0x58088f=_0x14d056[_0xe00ab0(0x152)][_0x3ff07a];if(!_0x58088f)return _0x58088f={'lastSync':'','pages':{}},_0x14d056[_0xe00ab0(0x152)][_0x3ff07a]=_0x58088f,{'lockData':_0x14d056,'appLock':_0x58088f};return!_0x58088f[_0xe00ab0(0x14b)]&&(_0x58088f[_0xe00ab0(0x14b)]=''),(!_0x58088f[_0xe00ab0(0x158)]||typeof _0x58088f[_0xe00ab0(0x158)]!=='object')&&(_0x58088f[_0xe00ab0(0x158)]={}),{'lockData':_0x14d056,'appLock':_0x58088f};}export async function readPageLockFile(_0x3eb486){const _0x332da0=a207_0x278e;try{const _0x592850=await readFile(_0x3eb486,_0x332da0(0x148)),_0x6078c0=JSON['parse'](_0x592850);return{'apps':_0x6078c0['apps']&&typeof _0x6078c0[_0x332da0(0x152)]===_0x332da0(0x151)?_0x6078c0[_0x332da0(0x152)]:{}};}catch(_0x3f8dec){if(_0x3f8dec[_0x332da0(0x150)]===_0x332da0(0x156))return null;throw new Error('Failed\x20to\x20read\x20page\x20lock\x20file:\x20'+String(_0x3f8dec));}}export async function writePageLockFile(_0x379b75,_0x3ca6af){const _0x2904f4=a207_0x278e;await mkdir(dirname(_0x379b75),{'recursive':!![]}),await writeFile(_0x379b75,JSON[_0x2904f4(0x14a)](_0x3ca6af,null,0x2),_0x2904f4(0x148));}
@@ -1 +1 @@
1
- (function(_0xde0f1a,_0x4df5d7){const _0x40987b=a209_0x1db5,_0x2f7e99=_0xde0f1a();while(!![]){try{const _0x45dee1=parseInt(_0x40987b(0x176))/0x1*(-parseInt(_0x40987b(0x14a))/0x2)+parseInt(_0x40987b(0x15c))/0x3*(parseInt(_0x40987b(0x14c))/0x4)+-parseInt(_0x40987b(0x146))/0x5+-parseInt(_0x40987b(0x168))/0x6+parseInt(_0x40987b(0x188))/0x7+parseInt(_0x40987b(0x159))/0x8*(parseInt(_0x40987b(0x177))/0x9)+-parseInt(_0x40987b(0x185))/0xa*(parseInt(_0x40987b(0x165))/0xb);if(_0x45dee1===_0x4df5d7)break;else _0x2f7e99['push'](_0x2f7e99['shift']());}catch(_0x4a636b){_0x2f7e99['push'](_0x2f7e99['shift']());}}}(a209_0xd5fd,0x48f50));export function auditSqlJoinIndexes(_0x1e9a28,_0x4767c5){const _0x4bd20e=a209_0x1db5,_0x3f1fcb=[],_0x53c3a0=extractJoinFacts(_0x1e9a28)['map'](_0x537796=>{const _0x23b3e5=a209_0x1db5;if(_0x537796[_0x23b3e5(0x162)]||_0x537796['columns'][_0x23b3e5(0x179)]===0x0)return _0x3f1fcb[_0x23b3e5(0x145)]({'code':_0x23b3e5(0x151),'table':_0x537796[_0x23b3e5(0x172)],'alias':_0x537796[_0x23b3e5(0x171)],'columns':_0x537796[_0x23b3e5(0x144)],'reason':_0x537796[_0x23b3e5(0x184)]??'Not\x20every\x20JOIN\x20target\x20predicate\x20could\x20be\x20audited\x20safely.'}),{'table':_0x537796[_0x23b3e5(0x172)],'alias':_0x537796[_0x23b3e5(0x171)],'columns':_0x537796[_0x23b3e5(0x144)],'status':'unavailable'};const _0x17c3cf=resolveTableMetadata(_0x4767c5,_0x537796[_0x23b3e5(0x172)]),_0x267c07=(_0x17c3cf?.[_0x23b3e5(0x157)]??[])[_0x23b3e5(0x17c)](_0x1adbde=>({'index':_0x1adbde,'matchedPrefix':findEqualityPrefix(_0x1adbde[_0x23b3e5(0x144)],_0x537796[_0x23b3e5(0x144)])}))[_0x23b3e5(0x183)](_0x219711=>_0x219711[_0x23b3e5(0x186)][_0x23b3e5(0x179)]>0x0),_0x27fb44=_0x267c07[_0x23b3e5(0x147)]((_0x1144d4,_0x4baaba)=>!_0x1144d4||_0x4baaba[_0x23b3e5(0x186)]['length']>_0x1144d4[_0x23b3e5(0x186)][_0x23b3e5(0x179)]?_0x4baaba:_0x1144d4,_0x267c07[0x0]);if(_0x27fb44)return{'table':_0x537796['table'],'alias':_0x537796[_0x23b3e5(0x171)],'columns':_0x537796[_0x23b3e5(0x144)],'status':'covered','matchedIndex':{..._0x27fb44['index'],'matchedPrefix':_0x27fb44[_0x23b3e5(0x186)]}};const _0x87ac3c=_0x17c3cf?.[_0x23b3e5(0x157)]['filter'](_0xe77cb8=>_0xe77cb8[_0x23b3e5(0x144)][_0x23b3e5(0x17d)](_0x34472d=>_0x537796['columns'][_0x23b3e5(0x17d)](_0x1a2f8d=>columnNamesMatch(_0x34472d,_0x1a2f8d))))??[];if(_0x87ac3c['length']>0x0)return _0x3f1fcb[_0x23b3e5(0x145)]({'code':_0x23b3e5(0x14b),'table':_0x537796[_0x23b3e5(0x172)],'alias':_0x537796[_0x23b3e5(0x171)],'columns':_0x537796[_0x23b3e5(0x144)],'reason':'Relevant\x20columns\x20do\x20not\x20form\x20a\x20complete\x20leftmost\x20index\x20prefix.'}),{'table':_0x537796['table'],'alias':_0x537796[_0x23b3e5(0x171)],'columns':_0x537796[_0x23b3e5(0x144)],'status':'warning','candidateIndexes':_0x87ac3c};if(_0x17c3cf&&_0x17c3cf[_0x23b3e5(0x16a)]!==![]&&_0x17c3cf[_0x23b3e5(0x157)][_0x23b3e5(0x179)]>0x0&&_0x537796['columns'][_0x23b3e5(0x179)]>0x0)return _0x3f1fcb[_0x23b3e5(0x145)]({'code':_0x23b3e5(0x167),'table':_0x537796[_0x23b3e5(0x172)],'alias':_0x537796['alias'],'columns':_0x537796[_0x23b3e5(0x144)],'reason':'No\x20reported\x20index\x20contains\x20the\x20JOIN\x20access\x20columns.'}),{'table':_0x537796[_0x23b3e5(0x172)],'alias':_0x537796[_0x23b3e5(0x171)],'columns':_0x537796[_0x23b3e5(0x144)],'status':_0x23b3e5(0x16e)};return _0x3f1fcb[_0x23b3e5(0x145)]({'code':_0x23b3e5(0x164),'table':_0x537796[_0x23b3e5(0x172)],'alias':_0x537796[_0x23b3e5(0x171)],'columns':_0x537796[_0x23b3e5(0x144)],'reason':_0x17c3cf?_0x23b3e5(0x161):_0x23b3e5(0x16d)}),{'table':_0x537796['table'],'alias':_0x537796['alias'],'columns':_0x537796[_0x23b3e5(0x144)],'status':'unavailable'};});return{'checked':_0x53c3a0[_0x4bd20e(0x179)]>0x0,'joins':_0x53c3a0,'warnings':_0x3f1fcb};}function extractJoinFacts(_0x1911c2){const _0x546ff5=a209_0x1db5,_0x4cedac=maskNestedQueries(stripSqlNoise(_0x1911c2)),_0x2e66ed=maskQuotedIdentifiers(_0x4cedac),_0x33a310=[],_0x5c339a=new Set(),_0x4ffd19=/\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 _0x3698d0 of _0x4cedac[_0x546ff5(0x17f)](_0x4ffd19)){const _0x3d8874=_0x3698d0[_0x546ff5(0x158)]??0x0,_0x4da4b2=_0x3698d0[0x0][_0x546ff5(0x17e)](/\bJOIN\b/i),_0x42190a=_0x3d8874+Math[_0x546ff5(0x17b)](0x0,_0x4da4b2);if(!/^JOIN\b/i[_0x546ff5(0x149)](_0x2e66ed['slice'](_0x42190a)))continue;_0x5c339a[_0x546ff5(0x15f)](_0x42190a);const _0x125f58=normalizeIdentifier(_0x3698d0[0x1]||'INNER'),_0x1d70dc=normalizeIdentifier(_0x3698d0[0x2]??''),_0x236373=normalizeIdentifier(_0x3698d0[0x3]||_0x1d70dc['split']('.')['at'](-0x1)||_0x1d70dc),_0x1fdd63=[],_0x422360=_0x1d70dc===_0x546ff5(0x175);let _0x1e54a3=_0x125f58===_0x546ff5(0x15b)||_0x125f58===_0x546ff5(0x154)||_0x422360,_0x46d55a=_0x1e54a3?_0x422360?_0x546ff5(0x14f):_0x125f58['toUpperCase']()+_0x546ff5(0x173):undefined;const _0x2c6cc6=stripOuterParentheses(_0x3698d0[0x4]??'');hasTopLevelKeyword(_0x2c6cc6,'OR')&&(_0x1e54a3=!![],_0x46d55a??='OR-connected\x20JOIN\x20predicates\x20are\x20not\x20supported.');for(const _0x57ae5f of splitTopLevelAnd(_0x2c6cc6)){const _0x3d1b97=stripOuterParentheses(_0x57ae5f);if(hasTopLevelKeyword(_0x3d1b97,'OR')){_0x1e54a3=!![],_0x46d55a??=_0x546ff5(0x153);continue;}const _0x46e608=splitEquality(_0x3d1b97);if(!_0x46e608){containsColumnReference(_0x57ae5f,_0x236373)&&(_0x1e54a3=!![]);continue;}const _0x21043a=parseDirectColumnReference(_0x46e608[0x0],_0x236373),_0x1d1efd=parseDirectColumnReference(_0x46e608[0x1],_0x236373),_0x119a2c=containsColumnReference(_0x46e608[0x0],_0x236373),_0x299064=containsColumnReference(_0x46e608[0x1],_0x236373),_0x142c80=_0x21043a&&!_0x299064?_0x21043a:_0x1d1efd&&!_0x119a2c?_0x1d1efd:null;if(_0x142c80&&!_0x1fdd63[_0x546ff5(0x16b)](_0x142c80))_0x1fdd63[_0x546ff5(0x145)](_0x142c80);else!_0x142c80&&containsColumnReference(_0x57ae5f,_0x236373)&&(_0x1e54a3=!![]);}_0x33a310[_0x546ff5(0x145)]({'table':_0x1d70dc,'alias':_0x236373,'columns':_0x1fdd63,'unsupportedPredicate':_0x1e54a3,'unsupportedReason':_0x46d55a,'position':_0x42190a});}for(const _0x2447a8 of _0x2e66ed[_0x546ff5(0x17f)](/\bJOIN\b/gi)){const _0x27f736=_0x2447a8[_0x546ff5(0x158)]??0x0;if(_0x5c339a[_0x546ff5(0x152)](_0x27f736))continue;const _0x43b52f=/^\s+([`"\w$.]+)(?:\s+(?:AS\s+)?([`"\w$]+))?/[_0x546ff5(0x148)](_0x4cedac[_0x546ff5(0x182)](_0x27f736+_0x2447a8[0x0][_0x546ff5(0x179)])),_0x35caba=normalizeIdentifier(_0x43b52f?.[0x1]||_0x546ff5(0x160)),_0xabad15=normalizeIdentifier(_0x43b52f?.[0x2]||''),_0x593402=isSqlClauseKeyword(_0xabad15)?_0x35caba[_0x546ff5(0x155)]('.')['at'](-0x1)||_0x35caba:_0xabad15||_0x35caba[_0x546ff5(0x155)]('.')['at'](-0x1)||_0x35caba;_0x33a310[_0x546ff5(0x145)]({'table':_0x35caba,'alias':_0x593402,'columns':[],'unsupportedPredicate':!![],'unsupportedReason':_0x546ff5(0x178),'position':_0x27f736});}return _0x33a310[_0x546ff5(0x15d)]((_0x37bb61,_0x2457ba)=>_0x37bb61['position']-_0x2457ba[_0x546ff5(0x187)]);}function stripSqlNoise(_0x1cf98e){const _0x396d8b=a209_0x1db5,_0x22b3ab=Array[_0x396d8b(0x17a)](_0x1cf98e),_0x3784d1=(_0x18a14e,_0xbaf859)=>{for(let _0x522372=_0x18a14e;_0x522372<_0xbaf859;_0x522372+=0x1){_0x22b3ab[_0x522372]!=='\x0a'&&_0x22b3ab[_0x522372]!=='\x0d'&&(_0x22b3ab[_0x522372]='\x20');}};for(let _0x3194a3=0x0;_0x3194a3<_0x22b3ab[_0x396d8b(0x179)];_0x3194a3+=0x1){const _0x43a5e9=_0x22b3ab[_0x3194a3],_0x400fca=_0x22b3ab[_0x3194a3+0x1];if(_0x43a5e9==='\x27'||_0x43a5e9==='\x22'||_0x43a5e9==='`'){const _0x30c712=_0x43a5e9,_0x260ce2=_0x3194a3;_0x3194a3+=0x1;while(_0x3194a3<_0x22b3ab[_0x396d8b(0x179)]){if(_0x22b3ab[_0x3194a3]==='\x5c'&&_0x3194a3+0x1<_0x22b3ab[_0x396d8b(0x179)]){_0x3194a3+=0x2;continue;}if(_0x22b3ab[_0x3194a3]!==_0x30c712){_0x3194a3+=0x1;continue;}if(_0x22b3ab[_0x3194a3+0x1]===_0x30c712){_0x3194a3+=0x2;continue;}break;}if(_0x30c712==='\x27')_0x3784d1(_0x260ce2,Math['min'](_0x3194a3+0x1,_0x22b3ab[_0x396d8b(0x179)]));continue;}if(_0x43a5e9==='-'&&_0x400fca==='-'){const _0x5797c7=_0x3194a3;while(_0x3194a3<_0x22b3ab[_0x396d8b(0x179)]&&_0x22b3ab[_0x3194a3]!=='\x0a')_0x3194a3+=0x1;_0x3784d1(_0x5797c7,_0x3194a3);continue;}if(_0x43a5e9==='/'&&_0x400fca==='*'){const _0x3802da=_0x3194a3;_0x3194a3+=0x2;while(_0x3194a3<_0x22b3ab[_0x396d8b(0x179)]&&!(_0x22b3ab[_0x3194a3]==='*'&&_0x22b3ab[_0x3194a3+0x1]==='/')){_0x3194a3+=0x1;}_0x3194a3=Math[_0x396d8b(0x181)](_0x3194a3+0x1,_0x22b3ab[_0x396d8b(0x179)]-0x1),_0x3784d1(_0x3802da,_0x3194a3+0x1);continue;}if(_0x43a5e9==='#'&&_0x400fca!=='{'){const _0x5785ff=_0x3194a3;while(_0x3194a3<_0x22b3ab[_0x396d8b(0x179)]&&_0x22b3ab[_0x3194a3]!=='\x0a')_0x3194a3+=0x1;_0x3784d1(_0x5785ff,_0x3194a3);continue;}if((_0x43a5e9==='#'||_0x43a5e9==='$')&&_0x400fca==='{'){const _0x2e3c15=_0x3194a3;_0x3194a3+=0x2;while(_0x3194a3<_0x22b3ab[_0x396d8b(0x179)]&&_0x22b3ab[_0x3194a3]!=='}')_0x3194a3+=0x1;_0x3784d1(_0x2e3c15,Math[_0x396d8b(0x181)](_0x3194a3+0x1,_0x22b3ab[_0x396d8b(0x179)]));}}return _0x22b3ab['join']('');}function maskQuotedIdentifiers(_0x135a92){const _0x50cc60=a209_0x1db5,_0x1a1680=Array['from'](_0x135a92);for(let _0x342d10=0x0;_0x342d10<_0x1a1680[_0x50cc60(0x179)];_0x342d10+=0x1){const _0x286ac3=_0x1a1680[_0x342d10];if(_0x286ac3!=='\x22'&&_0x286ac3!=='`')continue;_0x342d10+=0x1;while(_0x342d10<_0x1a1680[_0x50cc60(0x179)]){if(_0x1a1680[_0x342d10]===_0x286ac3){if(_0x1a1680[_0x342d10+0x1]===_0x286ac3){_0x1a1680[_0x342d10]='\x20',_0x1a1680[_0x342d10+0x1]='\x20',_0x342d10+=0x2;continue;}break;}_0x1a1680[_0x342d10]='\x20',_0x342d10+=0x1;}}return _0x1a1680['join']('');}function maskNestedQueries(_0x13082c){const _0x3656c7=a209_0x1db5,_0x29ee68=Array['from'](_0x13082c);for(let _0x3ace86=0x0;_0x3ace86<_0x29ee68[_0x3656c7(0x179)];_0x3ace86+=0x1){if(_0x29ee68[_0x3ace86]!=='(')continue;const _0x419627=_0x13082c['slice'](_0x3ace86+0x1);if(!/^\s*(?:SELECT|WITH)\b/i[_0x3656c7(0x149)](_0x419627))continue;let _0x3af3f1=0x1,_0x105f88=_0x3ace86+0x1;for(;_0x105f88<_0x29ee68['length']&&_0x3af3f1>0x0;_0x105f88+=0x1){if(_0x29ee68[_0x105f88]==='(')_0x3af3f1+=0x1;if(_0x29ee68[_0x105f88]===')')_0x3af3f1-=0x1;}if(_0x3af3f1!==0x0)continue;for(let _0x140638=_0x3ace86;_0x140638<_0x105f88;_0x140638+=0x1){_0x29ee68[_0x140638]='\x20';}const _0x505308=_0x3656c7(0x175);for(let _0x54b790=0x0;_0x54b790<_0x505308[_0x3656c7(0x179)]&&_0x3ace86+_0x54b790<_0x105f88;_0x54b790+=0x1){_0x29ee68[_0x3ace86+_0x54b790]=_0x505308[_0x54b790];}_0x3ace86=_0x105f88-0x1;}return _0x29ee68[_0x3656c7(0x14d)]('');}function splitTopLevelAnd(_0x4a3035){const _0x5f07c7=a209_0x1db5,_0x38bfdd=[];let _0x5bba7c=0x0,_0x3a0ad5=0x0;for(let _0x3d98cb=0x0;_0x3d98cb<_0x4a3035['length'];_0x3d98cb+=0x1){const _0x2b5f8b=_0x4a3035[_0x3d98cb];if(_0x2b5f8b==='(')_0x5bba7c+=0x1;if(_0x2b5f8b===')')_0x5bba7c=Math[_0x5f07c7(0x17b)](0x0,_0x5bba7c-0x1);_0x5bba7c===0x0&&_0x4a3035[_0x5f07c7(0x182)](_0x3d98cb)[_0x5f07c7(0x14e)](/^AND\b/i)&&(_0x3d98cb===0x0||/\s/['test'](_0x4a3035[_0x3d98cb-0x1]??''))&&(_0x38bfdd[_0x5f07c7(0x145)](_0x4a3035[_0x5f07c7(0x182)](_0x3a0ad5,_0x3d98cb)['trim']()),_0x3d98cb+=0x2,_0x3a0ad5=_0x3d98cb+0x1);}const _0x599fae=_0x4a3035[_0x5f07c7(0x182)](_0x3a0ad5)[_0x5f07c7(0x16f)]();if(_0x599fae)_0x38bfdd[_0x5f07c7(0x145)](_0x599fae);return _0x38bfdd;}function a209_0xd5fd(){const _0x1ba770=['right','189951yqQnsK','sort','\x5cs*\x5c.\x5cs*[\x5cw$]+','add','unknown','The\x20dataset\x20returned\x20no\x20distinguishable\x20index\x20metadata.','unsupportedPredicate','replace','INDEX_METADATA_UNAVAILABLE','3941003SHHvOb','toLowerCase','JOIN_INDEX_MISSING','1786308NSFYlq','startsWith','metadataAvailable','includes','using','No\x20dataset\x20metadata\x20matched\x20the\x20JOIN\x20table.','warning','trim','where','alias','table','\x20JOIN\x20direction\x20is\x20not\x20supported\x20by\x20static\x20index\x20auditing.','(?:^|[^\x5cw$])','__sq__','23788fifuWE','1936773mVvdQy','Only\x20explicit\x20table\x20JOIN\x20clauses\x20with\x20an\x20ON\x20predicate\x20are\x20supported.','length','from','max','map','some','search','matchAll','toUpperCase','min','slice','filter','unsupportedReason','10EWrVOQ','matchedPrefix','position','2798572dpZTYX','columns','push','165650JWlFNI','reduce','exec','test','24WhfpVi','JOIN_INDEX_NOT_USABLE','28niEcuj','join','match','Derived-table\x20JOIN\x20targets\x20are\x20not\x20supported.','tableName','JOIN_PREDICATE_UNSUPPORTED','has','OR-connected\x20JOIN\x20predicates\x20are\x20not\x20supported.','full','split','inner','indexes','index','16JcgqQb','left'];a209_0xd5fd=function(){return _0x1ba770;};return a209_0xd5fd();}function hasTopLevelKeyword(_0x54b1ab,_0x359c4c){const _0x219c7b=a209_0x1db5;let _0x941bbc=0x0;for(let _0x3394e8=0x0;_0x3394e8<_0x54b1ab[_0x219c7b(0x179)];_0x3394e8+=0x1){const _0xd455c8=_0x54b1ab[_0x3394e8];if(_0xd455c8==='(')_0x941bbc+=0x1;if(_0xd455c8===')')_0x941bbc=Math['max'](0x0,_0x941bbc-0x1);if(_0x941bbc!==0x0)continue;const _0x1b07f4=_0x54b1ab['slice'](_0x3394e8,_0x3394e8+_0x359c4c['length']),_0x3631e7=_0x54b1ab[_0x3394e8-0x1]??'\x20',_0x1936a5=_0x54b1ab[_0x3394e8+_0x359c4c[_0x219c7b(0x179)]]??'\x20';if(_0x1b07f4[_0x219c7b(0x180)]()===_0x359c4c[_0x219c7b(0x180)]()&&!/[\w$]/[_0x219c7b(0x149)](_0x3631e7)&&!/[\w$]/['test'](_0x1936a5))return!![];}return![];}function splitEquality(_0x2577e6){const _0x331417=a209_0x1db5,_0x2e1769=stripOuterParentheses(_0x2577e6);let _0x625fe=0x0,_0x4225c4;for(let _0x2e3536=0x0;_0x2e3536<_0x2e1769[_0x331417(0x179)];_0x2e3536+=0x1){const _0x336de5=_0x2e1769[_0x2e3536];if(_0x336de5==='(')_0x625fe+=0x1;if(_0x336de5===')')_0x625fe=Math[_0x331417(0x17b)](0x0,_0x625fe-0x1);const _0x14f0a1=_0x2e1769[_0x2e3536-0x1]??'',_0x401261=_0x2e1769[_0x2e3536+0x1]??'';if(_0x336de5==='='&&_0x625fe===0x0&&!/[!<>=:]/['test'](_0x14f0a1)&&_0x401261!=='='){if(_0x4225c4!==undefined)return null;_0x4225c4=_0x2e3536;}}return _0x4225c4===undefined?null:[_0x2e1769[_0x331417(0x182)](0x0,_0x4225c4)[_0x331417(0x16f)](),_0x2e1769['slice'](_0x4225c4+0x1)[_0x331417(0x16f)]()];}function parseDirectColumnReference(_0x35e4dc,_0x4e1158){const _0x2a71c4=a209_0x1db5,_0x45a38c=/^([`"]?[\w$]+[`"]?)\s*\.\s*([`"]?[\w$]+[`"]?)$/[_0x2a71c4(0x148)](stripOuterParentheses(_0x35e4dc));if(!_0x45a38c)return null;if(normalizeIdentifier(_0x45a38c[0x1]??'')!==normalizeIdentifier(_0x4e1158))return null;return normalizeIdentifier(_0x45a38c[0x2]??'');}function containsColumnReference(_0x3b928e,_0x11c26f){const _0x46731c=a209_0x1db5,_0x519b3d=_0x3b928e['replace'](/[`"]/g,''),_0x33520c=_0x11c26f[_0x46731c(0x163)](/[.*+?^${}()|[\]\\]/g,'\x5c$&');return new RegExp(_0x46731c(0x174)+_0x33520c+_0x46731c(0x15e),'i')[_0x46731c(0x149)](_0x519b3d);}function findEqualityPrefix(_0x3247ad,_0x585120){const _0x1c2574=a209_0x1db5,_0x20d022=new Set(_0x585120[_0x1c2574(0x17c)](normalizeIdentifier)),_0x2b42aa=[];for(const _0x59e5a0 of _0x3247ad){if(!_0x20d022[_0x1c2574(0x152)](normalizeIdentifier(_0x59e5a0)))break;_0x2b42aa[_0x1c2574(0x145)](_0x59e5a0);}return _0x2b42aa;}function a209_0x1db5(_0x3d49e4,_0x4891fd){_0x3d49e4=_0x3d49e4-0x144;const _0xd5fd87=a209_0xd5fd();let _0x1db591=_0xd5fd87[_0x3d49e4];return _0x1db591;}function resolveTableMetadata(_0x1e0097,_0x516b1c){const _0x3231bd=a209_0x1db5,_0x165932=normalizeIdentifier(_0x516b1c),_0x114a2e=_0x1e0097[_0x3231bd(0x183)](_0x5b3bb5=>normalizeIdentifier(_0x5b3bb5[_0x3231bd(0x150)])===_0x165932);if(_0x114a2e[_0x3231bd(0x179)]===0x1)return _0x114a2e[0x0];const _0xf84939=_0x165932[_0x3231bd(0x16b)]('.'),_0xdfa5a6=_0x165932[_0x3231bd(0x155)]('.')['at'](-0x1),_0x10c732=_0x1e0097[_0x3231bd(0x183)](_0x581298=>{const _0x3d2d79=_0x3231bd,_0x49a745=normalizeIdentifier(_0x581298[_0x3d2d79(0x150)]);if(_0xf84939&&_0x49a745['includes']('.'))return![];return _0x49a745[_0x3d2d79(0x155)]('.')['at'](-0x1)===_0xdfa5a6;});return _0x10c732[_0x3231bd(0x179)]===0x1?_0x10c732[0x0]:undefined;}function columnNamesMatch(_0x5e0030,_0x6864f9){return normalizeIdentifier(_0x5e0030)===normalizeIdentifier(_0x6864f9);}function normalizeIdentifier(_0x931c62){const _0x38eedf=a209_0x1db5;return _0x931c62['replace'](/[`"]/g,'')['trim']()[_0x38eedf(0x166)]();}function isSqlClauseKeyword(_0x425952){const _0x3d0f25=a209_0x1db5;return new Set(['on',_0x3d0f25(0x16c),_0x3d0f25(0x170),'join',_0x3d0f25(0x156),_0x3d0f25(0x15a),_0x3d0f25(0x15b),_0x3d0f25(0x154),'cross','natural'])[_0x3d0f25(0x152)](_0x425952);}function stripOuterParentheses(_0x22e50c){const _0x25485f=a209_0x1db5;let _0xfbbafa=_0x22e50c[_0x25485f(0x16f)]();while(_0xfbbafa[_0x25485f(0x169)]('(')&&_0xfbbafa['endsWith'](')')){let _0x35e146=0x0,_0x22766a=!![];for(let _0x1a3c83=0x0;_0x1a3c83<_0xfbbafa[_0x25485f(0x179)];_0x1a3c83+=0x1){if(_0xfbbafa[_0x1a3c83]==='(')_0x35e146+=0x1;if(_0xfbbafa[_0x1a3c83]===')')_0x35e146-=0x1;if(_0x35e146===0x0&&_0x1a3c83<_0xfbbafa[_0x25485f(0x179)]-0x1){_0x22766a=![];break;}}if(!_0x22766a||_0x35e146!==0x0)break;_0xfbbafa=_0xfbbafa[_0x25485f(0x182)](0x1,-0x1)[_0x25485f(0x16f)]();}return _0xfbbafa;}
1
+ (function(_0x5599e3,_0x61fec9){const _0x54350c=a209_0x23e2,_0x227293=_0x5599e3();while(!![]){try{const _0x27fc7e=parseInt(_0x54350c(0xb6))/0x1+-parseInt(_0x54350c(0xaa))/0x2+-parseInt(_0x54350c(0xed))/0x3*(parseInt(_0x54350c(0xaf))/0x4)+parseInt(_0x54350c(0xbe))/0x5*(-parseInt(_0x54350c(0xcf))/0x6)+-parseInt(_0x54350c(0xcb))/0x7+-parseInt(_0x54350c(0xf1))/0x8*(parseInt(_0x54350c(0xb8))/0x9)+parseInt(_0x54350c(0xd4))/0xa;if(_0x27fc7e===_0x61fec9)break;else _0x227293['push'](_0x227293['shift']());}catch(_0x21339e){_0x227293['push'](_0x227293['shift']());}}}(a209_0x441f,0x86ec6));import{MYBATIS_DYNAMIC_END_MARKER,MYBATIS_DYNAMIC_START_MARKER,MYBATIS_INCLUDE_MARKER,normalizeSqlForStaticAnalysis}from'./sql-validator.js';export function auditSqlJoinIndexes(_0x59e5f1,_0x4181a5){const _0x590a19=a209_0x23e2,_0x1c6cde=[],_0x364bbd=normalizeSqlForStaticAnalysis(_0x59e5f1),_0x438325=(_0x364bbd[_0x590a19(0xcc)]?[]:extractJoinFacts(_0x364bbd[_0x590a19(0xd7)]))[_0x590a19(0xd5)](_0x202e0a=>{const _0x2aeaa3=_0x590a19;if(_0x202e0a[_0x2aeaa3(0xbb)]||_0x202e0a[_0x2aeaa3(0xc7)][_0x2aeaa3(0xb2)]===0x0)return _0x1c6cde[_0x2aeaa3(0xb0)]({'code':_0x2aeaa3(0xe7),'table':_0x202e0a[_0x2aeaa3(0xbc)],'alias':_0x202e0a['alias'],'columns':_0x202e0a[_0x2aeaa3(0xc7)],'reason':_0x202e0a[_0x2aeaa3(0xea)]??'Not\x20every\x20JOIN\x20target\x20predicate\x20could\x20be\x20audited\x20safely.'}),{'table':_0x202e0a[_0x2aeaa3(0xbc)],'alias':_0x202e0a['alias'],'columns':_0x202e0a['columns'],'status':_0x2aeaa3(0xef)};const _0x45ff58=resolveTableMetadata(_0x4181a5,_0x202e0a[_0x2aeaa3(0xbc)]),_0x3ab7ee=(_0x45ff58?.[_0x2aeaa3(0xcd)]??[])['map'](_0x180f47=>({'index':_0x180f47,'matchedPrefix':findEqualityPrefix(_0x180f47[_0x2aeaa3(0xc7)],_0x202e0a[_0x2aeaa3(0xc7)])}))[_0x2aeaa3(0xe1)](_0x23a91f=>_0x23a91f[_0x2aeaa3(0xab)][_0x2aeaa3(0xb2)]>0x0),_0x355fe2=_0x3ab7ee['reduce']((_0x599fd0,_0x274bce)=>!_0x599fd0||_0x274bce[_0x2aeaa3(0xab)][_0x2aeaa3(0xb2)]>_0x599fd0[_0x2aeaa3(0xab)][_0x2aeaa3(0xb2)]?_0x274bce:_0x599fd0,_0x3ab7ee[0x0]);if(_0x355fe2)return{'table':_0x202e0a['table'],'alias':_0x202e0a[_0x2aeaa3(0xc1)],'columns':_0x202e0a[_0x2aeaa3(0xc7)],'status':_0x2aeaa3(0xd0),'matchedIndex':{..._0x355fe2[_0x2aeaa3(0xe2)],'matchedPrefix':_0x355fe2['matchedPrefix']}};const _0x288156=_0x45ff58?.[_0x2aeaa3(0xcd)][_0x2aeaa3(0xe1)](_0x4b4037=>_0x4b4037[_0x2aeaa3(0xc7)][_0x2aeaa3(0xc8)](_0x2c1dc1=>_0x202e0a[_0x2aeaa3(0xc7)][_0x2aeaa3(0xc8)](_0x22f24=>columnNamesMatch(_0x2c1dc1,_0x22f24))))??[];if(_0x288156[_0x2aeaa3(0xb2)]>0x0)return _0x1c6cde['push']({'code':_0x2aeaa3(0xe8),'table':_0x202e0a[_0x2aeaa3(0xbc)],'alias':_0x202e0a[_0x2aeaa3(0xc1)],'columns':_0x202e0a[_0x2aeaa3(0xc7)],'reason':_0x2aeaa3(0xf0)}),{'table':_0x202e0a[_0x2aeaa3(0xbc)],'alias':_0x202e0a[_0x2aeaa3(0xc1)],'columns':_0x202e0a[_0x2aeaa3(0xc7)],'status':_0x2aeaa3(0xba),'candidateIndexes':_0x288156};if(_0x45ff58&&_0x45ff58['metadataAvailable']!==![]&&_0x45ff58[_0x2aeaa3(0xcd)][_0x2aeaa3(0xb2)]>0x0&&_0x202e0a[_0x2aeaa3(0xc7)][_0x2aeaa3(0xb2)]>0x0)return _0x1c6cde['push']({'code':_0x2aeaa3(0xec),'table':_0x202e0a[_0x2aeaa3(0xbc)],'alias':_0x202e0a[_0x2aeaa3(0xc1)],'columns':_0x202e0a[_0x2aeaa3(0xc7)],'reason':_0x2aeaa3(0xb1)}),{'table':_0x202e0a['table'],'alias':_0x202e0a[_0x2aeaa3(0xc1)],'columns':_0x202e0a['columns'],'status':'warning'};return _0x1c6cde[_0x2aeaa3(0xb0)]({'code':_0x2aeaa3(0xe3),'table':_0x202e0a['table'],'alias':_0x202e0a['alias'],'columns':_0x202e0a[_0x2aeaa3(0xc7)],'reason':_0x45ff58?_0x2aeaa3(0xe9):_0x2aeaa3(0xe5)}),{'table':_0x202e0a[_0x2aeaa3(0xbc)],'alias':_0x202e0a[_0x2aeaa3(0xc1)],'columns':_0x202e0a[_0x2aeaa3(0xc7)],'status':_0x2aeaa3(0xef)};});return{'checked':_0x438325[_0x590a19(0xb2)]>0x0,'joins':_0x438325,'warnings':_0x1c6cde};}function extractJoinFacts(_0x28a9e2){const _0x487501=a209_0x23e2,_0xba466d=maskNestedQueries(stripSqlNoise(_0x28a9e2)),_0x1b173b=maskQuotedIdentifiers(_0xba466d),_0x1aa667=[],_0x227709=new Set(),_0x3ea1ae=/\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 _0x498604 of _0xba466d['matchAll'](_0x3ea1ae)){const _0x23564d=_0x498604['index']??0x0,_0x2d085a=_0x498604[0x0][_0x487501(0xce)](/\bJOIN\b/i),_0x4c49ec=_0x23564d+Math[_0x487501(0xd1)](0x0,_0x2d085a);if(!/^JOIN\b/i[_0x487501(0xb5)](_0x1b173b[_0x487501(0xde)](_0x4c49ec)))continue;_0x227709[_0x487501(0xc3)](_0x4c49ec);const _0x163bfb=normalizeIdentifier(_0x498604[0x1]||_0x487501(0xdb)),_0xd8d2b3=normalizeIdentifier(_0x498604[0x2]??''),_0x27a487=normalizeIdentifier(_0x498604[0x3]||_0xd8d2b3[_0x487501(0xa8)]('.')['at'](-0x1)||_0xd8d2b3),_0x51eda3=[],_0x4c7467=_0xd8d2b3===_0x487501(0xa7);let _0x2ced85=_0x163bfb==='right'||_0x163bfb===_0x487501(0xe4)||_0x4c7467,_0x2fd179=_0x2ced85?_0x4c7467?'Derived-table\x20JOIN\x20targets\x20are\x20not\x20supported.':_0x163bfb['toUpperCase']()+_0x487501(0xe0):undefined;const _0x52d8c3=stripOuterParentheses(_0x498604[0x4]??''),_0x541e2a=_0x52d8c3[_0x487501(0xd2)](MYBATIS_DYNAMIC_START_MARKER)||_0x52d8c3['includes'](MYBATIS_DYNAMIC_END_MARKER),_0x7396ad=_0x52d8c3[_0x487501(0xd2)](MYBATIS_INCLUDE_MARKER);_0x541e2a&&(_0x2ced85=!![],_0x2fd179??=_0x487501(0xd3));_0x7396ad&&(_0x2ced85=!![],_0x2fd179??='MyBatis\x20<include>\x20JOIN\x20fragments\x20cannot\x20be\x20expanded\x20statically.');const _0x4b83eb=_0x52d8c3['replaceAll'](MYBATIS_DYNAMIC_START_MARKER,'\x20')[_0x487501(0xee)](MYBATIS_DYNAMIC_END_MARKER,'\x20')[_0x487501(0xee)](MYBATIS_INCLUDE_MARKER,'\x20');hasTopLevelKeyword(_0x4b83eb,'OR')&&(_0x2ced85=!![],_0x2fd179??='OR-connected\x20JOIN\x20predicates\x20are\x20not\x20supported.');for(const _0x25fa0b of splitTopLevelAnd(_0x4b83eb)){const _0x5e2e65=stripOuterParentheses(_0x25fa0b);if(hasTopLevelKeyword(_0x5e2e65,'OR')){_0x2ced85=!![],_0x2fd179??=_0x487501(0xd9);continue;}const _0x5a8aaf=splitEquality(_0x5e2e65);if(!_0x5a8aaf){containsColumnReference(_0x25fa0b,_0x27a487)&&(_0x2ced85=!![]);continue;}const _0x17ca18=parseDirectColumnReference(_0x5a8aaf[0x0],_0x27a487),_0x3f8656=parseDirectColumnReference(_0x5a8aaf[0x1],_0x27a487),_0x14e0fb=containsColumnReference(_0x5a8aaf[0x0],_0x27a487),_0x2da487=containsColumnReference(_0x5a8aaf[0x1],_0x27a487),_0x232d7c=_0x17ca18&&!_0x2da487?_0x17ca18:_0x3f8656&&!_0x14e0fb?_0x3f8656:null;if(_0x232d7c&&!_0x51eda3[_0x487501(0xd2)](_0x232d7c))_0x51eda3['push'](_0x232d7c);else!_0x232d7c&&containsColumnReference(_0x25fa0b,_0x27a487)&&(_0x2ced85=!![]);}_0x1aa667['push']({'table':_0xd8d2b3,'alias':_0x27a487,'columns':_0x51eda3,'unsupportedPredicate':_0x2ced85,'unsupportedReason':_0x2fd179,'containsUnresolvedInclude':_0x7396ad,'position':_0x4c49ec});}for(const _0x2713de of _0x1b173b[_0x487501(0xa9)](/\bJOIN\b/gi)){const _0x2da131=_0x2713de[_0x487501(0xe2)]??0x0;if(_0x227709['has'](_0x2da131))continue;const _0x95c88a=/^\s+([`"\w$.]+)(?:\s+(?:AS\s+)?([`"\w$]+))?/[_0x487501(0xac)](_0xba466d[_0x487501(0xde)](_0x2da131+_0x2713de[0x0]['length'])),_0x364f13=normalizeIdentifier(_0x95c88a?.[0x1]||'unknown'),_0x4decc2=normalizeIdentifier(_0x95c88a?.[0x2]||''),_0x5d6069=isSqlClauseKeyword(_0x4decc2)?_0x364f13[_0x487501(0xa8)]('.')['at'](-0x1)||_0x364f13:_0x4decc2||_0x364f13['split']('.')['at'](-0x1)||_0x364f13;_0x1aa667[_0x487501(0xb0)]({'table':_0x364f13,'alias':_0x5d6069,'columns':[],'unsupportedPredicate':!![],'unsupportedReason':_0x487501(0xeb),'position':_0x2da131});}const _0x1f719a=_0x1b173b[_0x487501(0xdc)](MYBATIS_INCLUDE_MARKER);return _0x1f719a>=0x0&&!_0x1aa667['some'](_0x257ef9=>_0x257ef9[_0x487501(0xc9)])&&_0x1aa667[_0x487501(0xb0)]({'table':'unknown','alias':_0x487501(0xb7),'columns':[],'unsupportedPredicate':!![],'unsupportedReason':_0x487501(0xd8),'containsUnresolvedInclude':!![],'position':_0x1f719a}),_0x1aa667['sort']((_0x4f3a04,_0x2fc723)=>_0x4f3a04[_0x487501(0xe6)]-_0x2fc723[_0x487501(0xe6)]);}function stripSqlNoise(_0x333b9a){const _0x263d58=a209_0x23e2,_0x30bcf8=Array['from'](_0x333b9a),_0x299598=(_0x2b7a06,_0xb365a7)=>{for(let _0x4a521c=_0x2b7a06;_0x4a521c<_0xb365a7;_0x4a521c+=0x1){_0x30bcf8[_0x4a521c]!=='\x0a'&&_0x30bcf8[_0x4a521c]!=='\x0d'&&(_0x30bcf8[_0x4a521c]='\x20');}};for(let _0x3207e9=0x0;_0x3207e9<_0x30bcf8['length'];_0x3207e9+=0x1){const _0x39d176=_0x30bcf8[_0x3207e9],_0x5c2a17=_0x30bcf8[_0x3207e9+0x1];if(_0x39d176==='\x27'||_0x39d176==='\x22'||_0x39d176==='`'){const _0x5d7b91=_0x39d176,_0x33e7f6=_0x3207e9;_0x3207e9+=0x1;while(_0x3207e9<_0x30bcf8[_0x263d58(0xb2)]){if(_0x30bcf8[_0x3207e9]==='\x5c'&&_0x3207e9+0x1<_0x30bcf8[_0x263d58(0xb2)]){_0x3207e9+=0x2;continue;}if(_0x30bcf8[_0x3207e9]!==_0x5d7b91){_0x3207e9+=0x1;continue;}if(_0x30bcf8[_0x3207e9+0x1]===_0x5d7b91){_0x3207e9+=0x2;continue;}break;}if(_0x5d7b91==='\x27')_0x299598(_0x33e7f6,Math[_0x263d58(0xb3)](_0x3207e9+0x1,_0x30bcf8[_0x263d58(0xb2)]));continue;}if(_0x39d176==='-'&&_0x5c2a17==='-'){const _0x4dd828=_0x3207e9;while(_0x3207e9<_0x30bcf8['length']&&_0x30bcf8[_0x3207e9]!=='\x0a')_0x3207e9+=0x1;_0x299598(_0x4dd828,_0x3207e9);continue;}if(_0x39d176==='/'&&_0x5c2a17==='*'){const _0x36b22b=_0x3207e9;_0x3207e9+=0x2;while(_0x3207e9<_0x30bcf8[_0x263d58(0xb2)]&&!(_0x30bcf8[_0x3207e9]==='*'&&_0x30bcf8[_0x3207e9+0x1]==='/')){_0x3207e9+=0x1;}_0x3207e9=Math[_0x263d58(0xb3)](_0x3207e9+0x1,_0x30bcf8[_0x263d58(0xb2)]-0x1),_0x299598(_0x36b22b,_0x3207e9+0x1);continue;}if(_0x39d176==='#'&&_0x5c2a17!=='{'){const _0xa8e7b1=_0x3207e9;while(_0x3207e9<_0x30bcf8[_0x263d58(0xb2)]&&_0x30bcf8[_0x3207e9]!=='\x0a')_0x3207e9+=0x1;_0x299598(_0xa8e7b1,_0x3207e9);continue;}if((_0x39d176==='#'||_0x39d176==='$')&&_0x5c2a17==='{'){const _0x574389=_0x3207e9;_0x3207e9+=0x2;while(_0x3207e9<_0x30bcf8[_0x263d58(0xb2)]&&_0x30bcf8[_0x3207e9]!=='}')_0x3207e9+=0x1;_0x299598(_0x574389,Math[_0x263d58(0xb3)](_0x3207e9+0x1,_0x30bcf8['length']));}}return _0x30bcf8['join']('');}function maskQuotedIdentifiers(_0x582af7){const _0x5223fb=a209_0x23e2,_0x5a2b8f=Array[_0x5223fb(0xdd)](_0x582af7);for(let _0x1922aa=0x0;_0x1922aa<_0x5a2b8f[_0x5223fb(0xb2)];_0x1922aa+=0x1){const _0x1d221c=_0x5a2b8f[_0x1922aa];if(_0x1d221c!=='\x22'&&_0x1d221c!=='`')continue;_0x1922aa+=0x1;while(_0x1922aa<_0x5a2b8f[_0x5223fb(0xb2)]){if(_0x5a2b8f[_0x1922aa]===_0x1d221c){if(_0x5a2b8f[_0x1922aa+0x1]===_0x1d221c){_0x5a2b8f[_0x1922aa]='\x20',_0x5a2b8f[_0x1922aa+0x1]='\x20',_0x1922aa+=0x2;continue;}break;}_0x5a2b8f[_0x1922aa]='\x20',_0x1922aa+=0x1;}}return _0x5a2b8f['join']('');}function maskNestedQueries(_0xfead9f){const _0x445c11=a209_0x23e2,_0x59e39b=Array[_0x445c11(0xdd)](_0xfead9f);for(let _0x5805a6=0x0;_0x5805a6<_0x59e39b['length'];_0x5805a6+=0x1){if(_0x59e39b[_0x5805a6]!=='(')continue;const _0x5ac53c=_0xfead9f[_0x445c11(0xde)](_0x5805a6+0x1);if(!/^\s*(?:SELECT|WITH)\b/i[_0x445c11(0xb5)](_0x5ac53c))continue;let _0x5136bd=0x1,_0x32e91b=_0x5805a6+0x1;for(;_0x32e91b<_0x59e39b['length']&&_0x5136bd>0x0;_0x32e91b+=0x1){if(_0x59e39b[_0x32e91b]==='(')_0x5136bd+=0x1;if(_0x59e39b[_0x32e91b]===')')_0x5136bd-=0x1;}if(_0x5136bd!==0x0)continue;for(let _0x349fc2=_0x5805a6;_0x349fc2<_0x32e91b;_0x349fc2+=0x1){_0x59e39b[_0x349fc2]='\x20';}const _0x2105a9='__sq__';for(let _0x102df2=0x0;_0x102df2<_0x2105a9[_0x445c11(0xb2)]&&_0x5805a6+_0x102df2<_0x32e91b;_0x102df2+=0x1){_0x59e39b[_0x5805a6+_0x102df2]=_0x2105a9[_0x102df2];}_0x5805a6=_0x32e91b-0x1;}return _0x59e39b[_0x445c11(0xb4)]('');}function a209_0x23e2(_0x586075,_0x3a1e94){_0x586075=_0x586075-0xa6;const _0x441fc4=a209_0x441f();let _0x23e2c7=_0x441fc4[_0x586075];return _0x23e2c7;}function a209_0x441f(){const _0x3dbba5=['1302486HUojEZ','matchedPrefix','exec','\x5cs*\x5c.\x5cs*[\x5cw$]+','tableName','8uDYUeS','push','No\x20reported\x20index\x20contains\x20the\x20JOIN\x20access\x20columns.','length','min','join','test','637657tdtxsE','unknown','9IhIzXF','(?:^|[^\x5cw$])','warning','unsupportedPredicate','table','endsWith','707775lURuSI','left','cross','alias','has','add','inner','right','match','columns','some','containsUnresolvedInclude','\x5c$&','3896536WjiopP','error','indexes','search','12JNaIag','covered','max','includes','MyBatis\x20dynamic\x20JOIN\x20predicates\x20cannot\x20be\x20audited\x20deterministically.','19452990eFNNpN','map','toUpperCase','sql','MyBatis\x20<include>\x20fragments\x20cannot\x20be\x20expanded\x20for\x20JOIN\x20auditing.','OR-connected\x20JOIN\x20predicates\x20are\x20not\x20supported.','toLowerCase','INNER','indexOf','from','slice','natural','\x20JOIN\x20direction\x20is\x20not\x20supported\x20by\x20static\x20index\x20auditing.','filter','index','INDEX_METADATA_UNAVAILABLE','full','No\x20dataset\x20metadata\x20matched\x20the\x20JOIN\x20table.','position','JOIN_PREDICATE_UNSUPPORTED','JOIN_INDEX_NOT_USABLE','The\x20dataset\x20returned\x20no\x20distinguishable\x20index\x20metadata.','unsupportedReason','Only\x20explicit\x20table\x20JOIN\x20clauses\x20with\x20an\x20ON\x20predicate\x20are\x20supported.','JOIN_INDEX_MISSING','29778WhwsZn','replaceAll','unavailable','Relevant\x20columns\x20do\x20not\x20form\x20a\x20complete\x20leftmost\x20index\x20prefix.','4155656agWATB','trim','startsWith','__sq__','split','matchAll'];a209_0x441f=function(){return _0x3dbba5;};return a209_0x441f();}function splitTopLevelAnd(_0xb34f5d){const _0x373b58=a209_0x23e2,_0x4acecc=[];let _0x35adce=0x0,_0x38a315=0x0;for(let _0x4ddccf=0x0;_0x4ddccf<_0xb34f5d[_0x373b58(0xb2)];_0x4ddccf+=0x1){const _0x4a039c=_0xb34f5d[_0x4ddccf];if(_0x4a039c==='(')_0x35adce+=0x1;if(_0x4a039c===')')_0x35adce=Math['max'](0x0,_0x35adce-0x1);_0x35adce===0x0&&_0xb34f5d[_0x373b58(0xde)](_0x4ddccf)[_0x373b58(0xc6)](/^AND\b/i)&&(_0x4ddccf===0x0||/\s/[_0x373b58(0xb5)](_0xb34f5d[_0x4ddccf-0x1]??''))&&(_0x4acecc['push'](_0xb34f5d[_0x373b58(0xde)](_0x38a315,_0x4ddccf)['trim']()),_0x4ddccf+=0x2,_0x38a315=_0x4ddccf+0x1);}const _0x4ec772=_0xb34f5d['slice'](_0x38a315)[_0x373b58(0xf2)]();if(_0x4ec772)_0x4acecc['push'](_0x4ec772);return _0x4acecc;}function hasTopLevelKeyword(_0x56345c,_0x10bb15){const _0x325224=a209_0x23e2;let _0x43b8b5=0x0;for(let _0x1acea5=0x0;_0x1acea5<_0x56345c[_0x325224(0xb2)];_0x1acea5+=0x1){const _0x4c2d2f=_0x56345c[_0x1acea5];if(_0x4c2d2f==='(')_0x43b8b5+=0x1;if(_0x4c2d2f===')')_0x43b8b5=Math[_0x325224(0xd1)](0x0,_0x43b8b5-0x1);if(_0x43b8b5!==0x0)continue;const _0x201150=_0x56345c[_0x325224(0xde)](_0x1acea5,_0x1acea5+_0x10bb15[_0x325224(0xb2)]),_0x3f57a7=_0x56345c[_0x1acea5-0x1]??'\x20',_0x3cf218=_0x56345c[_0x1acea5+_0x10bb15['length']]??'\x20';if(_0x201150['toUpperCase']()===_0x10bb15[_0x325224(0xd6)]()&&!/[\w$]/[_0x325224(0xb5)](_0x3f57a7)&&!/[\w$]/['test'](_0x3cf218))return!![];}return![];}function splitEquality(_0x56a571){const _0x46ad81=a209_0x23e2,_0x2e5e4f=stripOuterParentheses(_0x56a571);let _0x5c2b40=0x0,_0x49f28d;for(let _0x4769ed=0x0;_0x4769ed<_0x2e5e4f[_0x46ad81(0xb2)];_0x4769ed+=0x1){const _0x4b56ce=_0x2e5e4f[_0x4769ed];if(_0x4b56ce==='(')_0x5c2b40+=0x1;if(_0x4b56ce===')')_0x5c2b40=Math[_0x46ad81(0xd1)](0x0,_0x5c2b40-0x1);const _0x82ff0=_0x2e5e4f[_0x4769ed-0x1]??'',_0x1a1320=_0x2e5e4f[_0x4769ed+0x1]??'';if(_0x4b56ce==='='&&_0x5c2b40===0x0&&!/[!<>=:]/[_0x46ad81(0xb5)](_0x82ff0)&&_0x1a1320!=='='){if(_0x49f28d!==undefined)return null;_0x49f28d=_0x4769ed;}}return _0x49f28d===undefined?null:[_0x2e5e4f['slice'](0x0,_0x49f28d)[_0x46ad81(0xf2)](),_0x2e5e4f[_0x46ad81(0xde)](_0x49f28d+0x1)[_0x46ad81(0xf2)]()];}function parseDirectColumnReference(_0x50e927,_0x34a798){const _0x2d34e8=a209_0x23e2,_0x34003a=/^([`"]?[\w$]+[`"]?)\s*\.\s*([`"]?[\w$]+[`"]?)$/[_0x2d34e8(0xac)](stripOuterParentheses(_0x50e927));if(!_0x34003a)return null;if(normalizeIdentifier(_0x34003a[0x1]??'')!==normalizeIdentifier(_0x34a798))return null;return normalizeIdentifier(_0x34003a[0x2]??'');}function containsColumnReference(_0x234c01,_0x3de5ee){const _0x32a760=a209_0x23e2,_0x1f9e4c=_0x234c01['replace'](/[`"]/g,''),_0x3dbeb4=_0x3de5ee['replace'](/[.*+?^${}()|[\]\\]/g,_0x32a760(0xca));return new RegExp(_0x32a760(0xb9)+_0x3dbeb4+_0x32a760(0xad),'i')[_0x32a760(0xb5)](_0x1f9e4c);}function findEqualityPrefix(_0x4009e3,_0x440bad){const _0x553204=a209_0x23e2,_0x2acc43=new Set(_0x440bad[_0x553204(0xd5)](normalizeIdentifier)),_0x3d39b1=[];for(const _0x18a6dd of _0x4009e3){if(!_0x2acc43[_0x553204(0xc2)](normalizeIdentifier(_0x18a6dd)))break;_0x3d39b1[_0x553204(0xb0)](_0x18a6dd);}return _0x3d39b1;}function resolveTableMetadata(_0x50ef2c,_0x30c155){const _0x1fa48b=a209_0x23e2,_0xb686f4=normalizeIdentifier(_0x30c155),_0x91179=_0x50ef2c[_0x1fa48b(0xe1)](_0x428bf9=>normalizeIdentifier(_0x428bf9[_0x1fa48b(0xae)])===_0xb686f4);if(_0x91179[_0x1fa48b(0xb2)]===0x1)return _0x91179[0x0];const _0x1ba7c5=_0xb686f4[_0x1fa48b(0xd2)]('.'),_0x1e9848=_0xb686f4[_0x1fa48b(0xa8)]('.')['at'](-0x1),_0x21bcec=_0x50ef2c[_0x1fa48b(0xe1)](_0x3fc84e=>{const _0x220562=_0x1fa48b,_0x4bb955=normalizeIdentifier(_0x3fc84e[_0x220562(0xae)]);if(_0x1ba7c5&&_0x4bb955[_0x220562(0xd2)]('.'))return![];return _0x4bb955[_0x220562(0xa8)]('.')['at'](-0x1)===_0x1e9848;});return _0x21bcec['length']===0x1?_0x21bcec[0x0]:undefined;}function columnNamesMatch(_0x4c06ae,_0x1a6749){return normalizeIdentifier(_0x4c06ae)===normalizeIdentifier(_0x1a6749);}function normalizeIdentifier(_0x547ec9){const _0x2b15a9=a209_0x23e2;return _0x547ec9['replace'](/[`"]/g,'')[_0x2b15a9(0xf2)]()[_0x2b15a9(0xda)]();}function isSqlClauseKeyword(_0x595837){const _0x5fe285=a209_0x23e2;return new Set(['on','using','where','join',_0x5fe285(0xc4),_0x5fe285(0xbf),_0x5fe285(0xc5),_0x5fe285(0xe4),_0x5fe285(0xc0),_0x5fe285(0xdf)])['has'](_0x595837);}function stripOuterParentheses(_0x4e9e5f){const _0x577dc5=a209_0x23e2;let _0x542381=_0x4e9e5f[_0x577dc5(0xf2)]();while(_0x542381[_0x577dc5(0xa6)]('(')&&_0x542381[_0x577dc5(0xbd)](')')){let _0x296254=0x0,_0x17d9e5=!![];for(let _0x9e67a5=0x0;_0x9e67a5<_0x542381[_0x577dc5(0xb2)];_0x9e67a5+=0x1){if(_0x542381[_0x9e67a5]==='(')_0x296254+=0x1;if(_0x542381[_0x9e67a5]===')')_0x296254-=0x1;if(_0x296254===0x0&&_0x9e67a5<_0x542381['length']-0x1){_0x17d9e5=![];break;}}if(!_0x17d9e5||_0x296254!==0x0)break;_0x542381=_0x542381[_0x577dc5(0xde)](0x1,-0x1)[_0x577dc5(0xf2)]();}return _0x542381;}
@@ -1 +1 @@
1
- const a210_0x4bfd02=a210_0x3673;(function(_0x52f9f5,_0x34c71b){const _0x35557f=a210_0x3673,_0x48d4a1=_0x52f9f5();while(!![]){try{const _0x2cf354=-parseInt(_0x35557f(0x1a3))/0x1*(-parseInt(_0x35557f(0x1a8))/0x2)+-parseInt(_0x35557f(0x1a7))/0x3*(-parseInt(_0x35557f(0x1a4))/0x4)+parseInt(_0x35557f(0x1a0))/0x5+-parseInt(_0x35557f(0x1a2))/0x6+parseInt(_0x35557f(0x1a1))/0x7+-parseInt(_0x35557f(0x1a6))/0x8*(-parseInt(_0x35557f(0x19e))/0x9)+-parseInt(_0x35557f(0x19f))/0xa;if(_0x2cf354===_0x34c71b)break;else _0x48d4a1['push'](_0x48d4a1['shift']());}catch(_0x3ebca3){_0x48d4a1['push'](_0x48d4a1['shift']());}}}(a210_0x2c6e,0xafd33));import{resolve}from'node:path';function a210_0x2c6e(){const _0x32e96e=['26818zCGKjr','/sql','sql-trash','sql.lock.json','18zPSkLV','21158310PimlnN','241550pLfcDq','6401535XOugWJ','303510JBjIOt','73PAIDqO','236nGwyTC','.rabetbase','729392VdMIlZ','38775njKujt'];a210_0x2c6e=function(){return _0x32e96e;};return a210_0x2c6e();}import{findProjectRootDirectory}from'../../context.js';const DOT_DIR=a210_0x4bfd02(0x1a5),LOCK_FILE_NAME=a210_0x4bfd02(0x19d),TRASH_DIR_NAME=a210_0x4bfd02(0x19c);function a210_0x3673(_0x5d4254,_0x3e1864){_0x5d4254=_0x5d4254-0x19c;const _0x2c6eb6=a210_0x2c6e();let _0x36733d=_0x2c6eb6[_0x5d4254];return _0x36733d;}export function loadSqlProjectConfig(_0x3b7e2d,_0x4ae62c){const _0x16438c=a210_0x4bfd02,_0x1dc5d2=resolve(_0x4ae62c??findProjectRootDirectory()),_0x4c2731=DOT_DIR+_0x16438c(0x1a9),_0x378a3f=_0x4c2731+'/'+_0x3b7e2d;return{'projectRoot':_0x1dc5d2,'appCode':_0x3b7e2d,'sqlWorkspaceRoot':_0x4c2731,'sqlRoot':_0x378a3f,'sqlRootDir':resolve(_0x1dc5d2,DOT_DIR,'sql',_0x3b7e2d),'lockFilePath':resolve(_0x1dc5d2,DOT_DIR,LOCK_FILE_NAME),'trashDir':resolve(_0x1dc5d2,DOT_DIR,TRASH_DIR_NAME)};}
1
+ const a210_0x305eeb=a210_0x1711;(function(_0x1f7842,_0x5af1e6){const _0x53e219=a210_0x1711,_0x2852ce=_0x1f7842();while(!![]){try{const _0x850c6b=parseInt(_0x53e219(0x1fb))/0x1*(-parseInt(_0x53e219(0x1f1))/0x2)+parseInt(_0x53e219(0x1f8))/0x3+parseInt(_0x53e219(0x1f3))/0x4+-parseInt(_0x53e219(0x1f6))/0x5+parseInt(_0x53e219(0x1f5))/0x6+parseInt(_0x53e219(0x1f9))/0x7*(parseInt(_0x53e219(0x1fc))/0x8)+-parseInt(_0x53e219(0x1fd))/0x9*(parseInt(_0x53e219(0x1fa))/0xa);if(_0x850c6b===_0x5af1e6)break;else _0x2852ce['push'](_0x2852ce['shift']());}catch(_0x8a7e48){_0x2852ce['push'](_0x2852ce['shift']());}}}(a210_0x4eb8,0x388d6));import{resolve}from'node:path';import{findProjectRootDirectory}from'../../context.js';const DOT_DIR=a210_0x305eeb(0x1f2),LOCK_FILE_NAME=a210_0x305eeb(0x1ff),TRASH_DIR_NAME=a210_0x305eeb(0x1fe);function a210_0x1711(_0x1a0925,_0x4509f6){_0x1a0925=_0x1a0925-0x1f1;const _0x4eb8e6=a210_0x4eb8();let _0x1711a5=_0x4eb8e6[_0x1a0925];return _0x1711a5;}function a210_0x4eb8(){const _0x376cce=['2379330ycoqcV','2150285dHONij','sql','1069080GLHCqS','20272VAsgfQ','1010090DpdBVt','160019YsGZKi','392ZyNfEm','27iABcBt','sql-trash','sql.lock.json','2hFYtvh','.rabetbase','919688qIAICw','/sql'];a210_0x4eb8=function(){return _0x376cce;};return a210_0x4eb8();}export function loadSqlProjectConfig(_0x4b5419,_0xd5439e){const _0xf20bd5=a210_0x305eeb,_0x252837=resolve(_0xd5439e??findProjectRootDirectory()),_0x1b4337=DOT_DIR+_0xf20bd5(0x1f4),_0x255b10=_0x1b4337+'/'+_0x4b5419;return{'projectRoot':_0x252837,'appCode':_0x4b5419,'sqlWorkspaceRoot':_0x1b4337,'sqlRoot':_0x255b10,'sqlRootDir':resolve(_0x252837,DOT_DIR,_0xf20bd5(0x1f7),_0x4b5419),'lockFilePath':resolve(_0x252837,DOT_DIR,LOCK_FILE_NAME),'trashDir':resolve(_0x252837,DOT_DIR,TRASH_DIR_NAME)};}
@@ -1 +1 @@
1
- (function(_0x2bebbb,_0x2d8daa){const _0x331944=a211_0x2e5b,_0x267e18=_0x2bebbb();while(!![]){try{const _0x3f7521=-parseInt(_0x331944(0xbb))/0x1+-parseInt(_0x331944(0xad))/0x2+parseInt(_0x331944(0xc1))/0x3+-parseInt(_0x331944(0xaa))/0x4+-parseInt(_0x331944(0xb8))/0x5+-parseInt(_0x331944(0xb5))/0x6+parseInt(_0x331944(0xb4))/0x7*(parseInt(_0x331944(0xaf))/0x8);if(_0x3f7521===_0x2d8daa)break;else _0x267e18['push'](_0x267e18['shift']());}catch(_0x4329d6){_0x267e18['push'](_0x267e18['shift']());}}}(a211_0x3c2b,0x3d21d));function a211_0x2e5b(_0xe69ef6,_0x277e0a){_0xe69ef6=_0xe69ef6-0xa4;const _0x3c2bb5=a211_0x3c2b();let _0x2e5bac=_0x3c2bb5[_0xe69ef6];return _0x2e5bac;}import{readdir,stat}from'node:fs/promises';import{extname,join,relative}from'node:path';import{buildDefaultSqlFileName,buildSqlRelativePath}from'./utils.js';function extensionToMode(_0x1776df){const _0x3d2a64=a211_0x2e5b;if(_0x1776df===_0x3d2a64(0xb0))return _0x3d2a64(0xae);if(_0x1776df===_0x3d2a64(0xc2))return _0x3d2a64(0xa6);return undefined;}async function scanSqlFilesRecursively(_0x9c6fca,_0x112bbe){const _0x2625e8=a211_0x2e5b,_0x3eb1fa=[];try{const _0x55e785=await readdir(_0x9c6fca,{'withFileTypes':!![]});for(const _0x1a07e5 of _0x55e785){const _0x3f3d08=join(_0x9c6fca,_0x1a07e5[_0x2625e8(0xc0)]);if(_0x1a07e5['isDirectory']()){_0x3eb1fa[_0x2625e8(0xb9)](...await scanSqlFilesRecursively(_0x3f3d08,_0x112bbe));continue;}if(!_0x1a07e5[_0x2625e8(0xc3)]())continue;const _0x217ece=extname(_0x1a07e5[_0x2625e8(0xc0)])[_0x2625e8(0xbf)](),_0x237dfc=extensionToMode(_0x217ece);if(!_0x237dfc)continue;const _0x28e40e=relative(_0x112bbe,_0x3f3d08)[_0x2625e8(0xba)](/\\/g,'/'),_0x1b72ad=_0x28e40e[_0x2625e8(0xbc)]('/')[_0x2625e8(0xb7)](Boolean),_0x5cbc8b=parseSqlPath(_0x1b72ad,_0x1a07e5[_0x2625e8(0xc0)],_0x217ece);if(!_0x5cbc8b)continue;_0x3eb1fa[_0x2625e8(0xb9)]({'sqlCode':_0x5cbc8b[_0x2625e8(0xbd)],'sqlName':_0x5cbc8b[_0x2625e8(0xa5)],'dbDirectory':_0x1b72ad[0x0],'filePath':_0x3f3d08,'relativePath':_0x28e40e,'lockKey':_0x5cbc8b[_0x2625e8(0xbd)],'mode':_0x237dfc});}}catch(_0x45ddcc){if(_0x45ddcc[_0x2625e8(0xb6)]!==_0x2625e8(0xab))throw _0x45ddcc;}return _0x3eb1fa;}export async function scanLocalSqlQueries(_0x5a7ff4){const _0x6de268=a211_0x2e5b;return scanSqlFilesRecursively(_0x5a7ff4['sqlRootDir'],_0x5a7ff4[_0x6de268(0xb2)]);}function a211_0x3c2b(){const _0x393edc=['isDirectory','sqlRootDir','slice','5842697woyByH','2451876lOPbjV','code','filter','1536080WdTJLI','push','replace','262075WAIVIe','split','sqlCode','indexOf','toLowerCase','name','268965PHdDMO','.xml','isFile','length','sqlName','mybatisXml','dbId','dbName','mode','1927900XhERhw','ENOENT','test','97376TWFnAn','sql','16qrIZwL','.sql'];a211_0x3c2b=function(){return _0x393edc;};return a211_0x3c2b();}export function resolveLocalSqlFilePath(_0x48790d,_0x33cdc8,_0x5b58ad){const _0x370aa3=a211_0x2e5b,_0x598279=_0x5b58ad?.['path']||(_0x5b58ad?.['sqlName']||_0x5b58ad?.[_0x370aa3(0xa8)]?buildSqlRelativePath(_0x33cdc8,_0x5b58ad?.['sqlName'],_0x5b58ad?.['dbName'],_0x5b58ad?.[_0x370aa3(0xa9)]||'sql',_0x5b58ad?.[_0x370aa3(0xa7)]):buildDefaultSqlFileName(_0x33cdc8,_0x5b58ad?.['mode']||_0x370aa3(0xae)));return join(_0x48790d[_0x370aa3(0xb2)],_0x598279);}export async function directoryExists(_0x943aca){const _0x3c61dd=a211_0x2e5b;try{const _0x28de67=await stat(_0x943aca);return _0x28de67[_0x3c61dd(0xb1)]();}catch{return![];}}function parseSqlPath(_0x25559a,_0x5f19f1,_0x100325){const _0x1bef2c=a211_0x2e5b,_0x166e5d=_0x5f19f1['slice'](0x0,-_0x100325[_0x1bef2c(0xa4)]);if(_0x25559a[_0x1bef2c(0xa4)]<0x2)return null;const _0xcdcbac=_0x166e5d[_0x1bef2c(0xbe)]('_');if(_0xcdcbac<=0x0||_0xcdcbac>=_0x166e5d[_0x1bef2c(0xa4)]-0x1)return null;const _0x33ab4c=_0x166e5d['slice'](0x0,_0xcdcbac);if(!isLikelySqlCode(_0x33ab4c))return null;return{'sqlCode':_0x33ab4c,'sqlName':_0x166e5d[_0x1bef2c(0xb3)](_0xcdcbac+0x1)};}function isLikelySqlCode(_0x387829){const _0xa9969f=a211_0x2e5b;return/^[A-Za-z0-9-]+-[A-Za-z0-9-]+$/[_0xa9969f(0xac)](_0x387829);}
1
+ (function(_0x43dad9,_0x2eb7b6){const _0x13174a=a211_0x4096,_0x400824=_0x43dad9();while(!![]){try{const _0x36b3eb=parseInt(_0x13174a(0x1c5))/0x1*(-parseInt(_0x13174a(0x1cc))/0x2)+parseInt(_0x13174a(0x1d2))/0x3+parseInt(_0x13174a(0x1c1))/0x4*(parseInt(_0x13174a(0x1c7))/0x5)+parseInt(_0x13174a(0x1ce))/0x6*(parseInt(_0x13174a(0x1c0))/0x7)+-parseInt(_0x13174a(0x1ca))/0x8+parseInt(_0x13174a(0x1d3))/0x9*(parseInt(_0x13174a(0x1cd))/0xa)+-parseInt(_0x13174a(0x1b2))/0xb;if(_0x36b3eb===_0x2eb7b6)break;else _0x400824['push'](_0x400824['shift']());}catch(_0x159d41){_0x400824['push'](_0x400824['shift']());}}}(a211_0x10a3,0xa09e5));import{readdir,stat}from'node:fs/promises';import{extname,join,relative}from'node:path';import{buildDefaultSqlFileName,buildSqlRelativePath}from'./utils.js';function a211_0x10a3(){const _0x5113b2=['180618oYUNuf','810VKAUdI','10302sIpaGg','dbId','code','indexOf','2262594IxYyey','107253xtFyqf','dbName','isDirectory','17592410WbnfiE','test','.xml','slice','toLowerCase','replace','sqlRootDir','mybatisXml','mode','sqlName','isFile','push','name','sqlCode','49KkmMQA','4245688ZshuOY','ENOENT','sql','split','1zCVJCV','filter','5bDlkHs','.sql','length','3563232SfAGUo','path'];a211_0x10a3=function(){return _0x5113b2;};return a211_0x10a3();}function extensionToMode(_0xbace92){const _0x3377cb=a211_0x4096;if(_0xbace92===_0x3377cb(0x1c8))return _0x3377cb(0x1c3);if(_0xbace92===_0x3377cb(0x1b4))return _0x3377cb(0x1b9);return undefined;}function a211_0x4096(_0x470b80,_0x426c8a){_0x470b80=_0x470b80-0x1b0;const _0x10a3fe=a211_0x10a3();let _0x4096f5=_0x10a3fe[_0x470b80];return _0x4096f5;}async function scanSqlFilesRecursively(_0x3ee922,_0x34f735){const _0x24a18f=a211_0x4096,_0x2a2377=[];try{const _0x3a8dde=await readdir(_0x3ee922,{'withFileTypes':!![]});for(const _0x1c5fe8 of _0x3a8dde){const _0x27dd91=join(_0x3ee922,_0x1c5fe8['name']);if(_0x1c5fe8[_0x24a18f(0x1b1)]()){_0x2a2377[_0x24a18f(0x1bd)](...await scanSqlFilesRecursively(_0x27dd91,_0x34f735));continue;}if(!_0x1c5fe8[_0x24a18f(0x1bc)]())continue;const _0x21c56f=extname(_0x1c5fe8[_0x24a18f(0x1be)])[_0x24a18f(0x1b6)](),_0x40ada1=extensionToMode(_0x21c56f);if(!_0x40ada1)continue;const _0x4df0e4=relative(_0x34f735,_0x27dd91)[_0x24a18f(0x1b7)](/\\/g,'/'),_0x237ab4=_0x4df0e4[_0x24a18f(0x1c4)]('/')[_0x24a18f(0x1c6)](Boolean),_0x15bd6a=parseSqlPath(_0x237ab4,_0x1c5fe8[_0x24a18f(0x1be)],_0x21c56f);if(!_0x15bd6a)continue;_0x2a2377[_0x24a18f(0x1bd)]({'sqlCode':_0x15bd6a[_0x24a18f(0x1bf)],'sqlName':_0x15bd6a[_0x24a18f(0x1bb)],'dbDirectory':_0x237ab4[0x0],'filePath':_0x27dd91,'relativePath':_0x4df0e4,'lockKey':_0x15bd6a[_0x24a18f(0x1bf)],'mode':_0x40ada1});}}catch(_0x3d193f){if(_0x3d193f[_0x24a18f(0x1d0)]!==_0x24a18f(0x1c2))throw _0x3d193f;}return _0x2a2377;}export async function scanLocalSqlQueries(_0x369ee8){const _0x1650c0=a211_0x4096;return scanSqlFilesRecursively(_0x369ee8[_0x1650c0(0x1b8)],_0x369ee8[_0x1650c0(0x1b8)]);}export function resolveLocalSqlFilePath(_0x5b3331,_0x47b6b4,_0x167872){const _0x509a58=a211_0x4096,_0x4b768=_0x167872?.[_0x509a58(0x1cb)]||(_0x167872?.[_0x509a58(0x1bb)]||_0x167872?.[_0x509a58(0x1b0)]?buildSqlRelativePath(_0x47b6b4,_0x167872?.['sqlName'],_0x167872?.[_0x509a58(0x1b0)],_0x167872?.[_0x509a58(0x1ba)]||'sql',_0x167872?.[_0x509a58(0x1cf)]):buildDefaultSqlFileName(_0x47b6b4,_0x167872?.['mode']||'sql'));return join(_0x5b3331[_0x509a58(0x1b8)],_0x4b768);}export async function directoryExists(_0x2fc1d4){try{const _0x2ed464=await stat(_0x2fc1d4);return _0x2ed464['isDirectory']();}catch{return![];}}function parseSqlPath(_0x22f2aa,_0x3c213b,_0x526a4d){const _0x328f74=a211_0x4096,_0x1e55ad=_0x3c213b[_0x328f74(0x1b5)](0x0,-_0x526a4d[_0x328f74(0x1c9)]);if(_0x22f2aa[_0x328f74(0x1c9)]<0x2)return null;const _0x2744b3=_0x1e55ad[_0x328f74(0x1d1)]('_');if(_0x2744b3<=0x0||_0x2744b3>=_0x1e55ad[_0x328f74(0x1c9)]-0x1)return null;const _0x1088dc=_0x1e55ad['slice'](0x0,_0x2744b3);if(!isLikelySqlCode(_0x1088dc))return null;return{'sqlCode':_0x1088dc,'sqlName':_0x1e55ad['slice'](_0x2744b3+0x1)};}function isLikelySqlCode(_0x3c2331){const _0xdc58fb=a211_0x4096;return/^[A-Za-z0-9-]+-[A-Za-z0-9-]+$/[_0xdc58fb(0x1b3)](_0x3c2331);}
@@ -1 +1 @@
1
- (function(_0x68e3d4,_0x2df2fa){const _0x5d1990=a212_0x3bd4,_0x8887a9=_0x68e3d4();while(!![]){try{const _0x45c191=parseInt(_0x5d1990(0x133))/0x1+parseInt(_0x5d1990(0x12b))/0x2+-parseInt(_0x5d1990(0x134))/0x3+-parseInt(_0x5d1990(0x130))/0x4+-parseInt(_0x5d1990(0x132))/0x5+-parseInt(_0x5d1990(0x12e))/0x6+-parseInt(_0x5d1990(0x131))/0x7*(-parseInt(_0x5d1990(0x12c))/0x8);if(_0x45c191===_0x2df2fa)break;else _0x8887a9['push'](_0x8887a9['shift']());}catch(_0x46bb3f){_0x8887a9['push'](_0x8887a9['shift']());}}}(a212_0x24db,0x6da2b));import{readFile}from'node:fs/promises';import a212_0x56616f from'node:crypto';export function computeSqlContentHash(_0x1ec788){const _0xe3f128=a212_0x3bd4;return a212_0x56616f['createHash']('md5')['update'](_0x1ec788)[_0xe3f128(0x12d)](_0xe3f128(0x12a));}function a212_0x3bd4(_0x3f03ac,_0x51555d){_0x3f03ac=_0x3f03ac-0x12a;const _0x24db59=a212_0x24db();let _0x3bd4a2=_0x24db59[_0x3f03ac];return _0x3bd4a2;}function a212_0x24db(){const _0x47c06f=['2186072UFfuma','7UUIEXx','379710KRRDdD','72996IqzvTe','1726101fRnSRi','hex','843910VuodNa','12531224YCvChH','digest','2486760vjoXkD','utf8'];a212_0x24db=function(){return _0x47c06f;};return a212_0x24db();}export async function computeSqlFileHash(_0x27c7be){const _0x49ce5f=a212_0x3bd4,_0x11a2b9=await readFile(_0x27c7be,_0x49ce5f(0x12f));return computeSqlContentHash(_0x11a2b9);}
1
+ (function(_0x300db2,_0x184edb){const _0xc8bcb3=a212_0x3848,_0x435467=_0x300db2();while(!![]){try{const _0x1fa122=parseInt(_0xc8bcb3(0x9e))/0x1*(parseInt(_0xc8bcb3(0x9f))/0x2)+-parseInt(_0xc8bcb3(0xa2))/0x3+-parseInt(_0xc8bcb3(0x9c))/0x4+parseInt(_0xc8bcb3(0x9a))/0x5+parseInt(_0xc8bcb3(0xa4))/0x6+-parseInt(_0xc8bcb3(0x9b))/0x7+parseInt(_0xc8bcb3(0xa3))/0x8*(parseInt(_0xc8bcb3(0xa1))/0x9);if(_0x1fa122===_0x184edb)break;else _0x435467['push'](_0x435467['shift']());}catch(_0x2917fe){_0x435467['push'](_0x435467['shift']());}}}(a212_0x161a,0x50538));function a212_0x3848(_0x3b85a9,_0x30a0c7){_0x3b85a9=_0x3b85a9-0x9a;const _0x161a22=a212_0x161a();let _0x384858=_0x161a22[_0x3b85a9];return _0x384858;}import{readFile}from'node:fs/promises';function a212_0x161a(){const _0x26fc0a=['utf8','2243277IRvFwA','38784zVclGU','16AiiDqg','1290168ILcnlr','159985AbofzR','3630893JZNMnV','411728ShJAPu','createHash','151izvdvk','2888bhcoUh'];a212_0x161a=function(){return _0x26fc0a;};return a212_0x161a();}import a212_0x33db32 from'node:crypto';export function computeSqlContentHash(_0x673567){const _0x9c9210=a212_0x3848;return a212_0x33db32[_0x9c9210(0x9d)]('md5')['update'](_0x673567)['digest']('hex');}export async function computeSqlFileHash(_0x46ec8c){const _0x292e47=a212_0x3848,_0x47ab58=await readFile(_0x46ec8c,_0x292e47(0xa0));return computeSqlContentHash(_0x47ab58);}
@@ -1 +1 @@
1
- (function(_0x218595,_0x2f6432){const _0x39f296=a213_0x3c08,_0x1da223=_0x218595();while(!![]){try{const _0x2e1b28=-parseInt(_0x39f296(0x17b))/0x1+-parseInt(_0x39f296(0x17d))/0x2*(-parseInt(_0x39f296(0x177))/0x3)+parseInt(_0x39f296(0x17f))/0x4*(parseInt(_0x39f296(0x180))/0x5)+parseInt(_0x39f296(0x183))/0x6*(-parseInt(_0x39f296(0x179))/0x7)+-parseInt(_0x39f296(0x175))/0x8*(-parseInt(_0x39f296(0x172))/0x9)+-parseInt(_0x39f296(0x17a))/0xa+parseInt(_0x39f296(0x182))/0xb*(parseInt(_0x39f296(0x17c))/0xc);if(_0x2e1b28===_0x2f6432)break;else _0x1da223['push'](_0x1da223['shift']());}catch(_0x18f484){_0x1da223['push'](_0x1da223['shift']());}}}(a213_0x28db,0xa5444));function a213_0x3c08(_0x1059a2,_0x163acb){_0x1059a2=_0x1059a2-0x16f;const _0x28dbc8=a213_0x28db();let _0x3c0800=_0x28dbc8[_0x1059a2];return _0x3c0800;}import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';export function createEmptySqlLock(){return{'apps':{}};}export function ensureSqlLockScope(_0x1c0ce6,_0x538d33,_0x333555,_0x5cc52d){const _0x5e30d7=a213_0x3c08,_0x273c57=_0x1c0ce6??createEmptySqlLock();let _0x49bbbb=_0x273c57[_0x5e30d7(0x178)][_0x538d33];if(!_0x49bbbb)return _0x49bbbb={'sqlRoot':_0x333555,'lastSync':'','sqls':{}},_0x273c57['apps'][_0x538d33]=_0x49bbbb,{'lockData':_0x273c57,'appLock':_0x49bbbb};if(!_0x49bbbb['sqlRoot'])_0x49bbbb[_0x5e30d7(0x185)]=_0x333555;else{if(_0x49bbbb[_0x5e30d7(0x185)]!==_0x333555)throw new Error(_0x5cc52d+':\x20sqlRoot\x20mismatch\x20—\x20current\x20\x22'+_0x333555+_0x5e30d7(0x184)+_0x49bbbb['sqlRoot']+_0x5e30d7(0x170)+'Check\x20.rabetbase/sql.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.');}return!_0x49bbbb['sqls']&&(_0x49bbbb[_0x5e30d7(0x181)]={}),!_0x49bbbb[_0x5e30d7(0x171)]&&(_0x49bbbb[_0x5e30d7(0x171)]=''),{'lockData':_0x273c57,'appLock':_0x49bbbb};}export async function readSqlLockFile(_0x10805a){const _0x2d9e8c=a213_0x3c08;try{const _0x414833=await readFile(_0x10805a,'utf8');return JSON[_0x2d9e8c(0x176)](_0x414833);}catch(_0x283ebb){if(_0x283ebb[_0x2d9e8c(0x173)]===_0x2d9e8c(0x186))return null;throw new Error(_0x2d9e8c(0x174)+String(_0x283ebb));}}function a213_0x28db(){const _0x531b70=['542UwInqO','utf8','11512FUuQRs','755rEtJtP','sqls','616oFxUdR','6hgoLOq','\x22\x20vs\x20lock\x20\x22','sqlRoot','ENOENT','stringify','\x22.\x20','lastSync','10268631XhXMFs','code','Failed\x20to\x20read\x20SQL\x20lock\x20file:\x20','8AeLJHe','parse','6336pjJqdg','apps','293650JUMpgJ','10240480yVmvyn','1053551LHFxNC','138984GyzbED'];a213_0x28db=function(){return _0x531b70;};return a213_0x28db();}export async function writeSqlLockFile(_0x3ac5e0,_0x463de8){const _0x25d8a2=a213_0x3c08;await mkdir(dirname(_0x3ac5e0),{'recursive':!![]}),await writeFile(_0x3ac5e0,JSON[_0x25d8a2(0x16f)](_0x463de8,null,0x2),_0x25d8a2(0x17e));}
1
+ function a213_0x86fa(_0x5217bb,_0xd63d7c){_0x5217bb=_0x5217bb-0x81;const _0x28bda4=a213_0x28bd();let _0x86fa39=_0x28bda4[_0x5217bb];return _0x86fa39;}(function(_0x39e919,_0x258e72){const _0x2263d6=a213_0x86fa,_0xd13ca1=_0x39e919();while(!![]){try{const _0x1a23cf=parseInt(_0x2263d6(0x8e))/0x1*(parseInt(_0x2263d6(0x82))/0x2)+-parseInt(_0x2263d6(0x88))/0x3+-parseInt(_0x2263d6(0x86))/0x4*(parseInt(_0x2263d6(0x89))/0x5)+parseInt(_0x2263d6(0x94))/0x6+parseInt(_0x2263d6(0x93))/0x7+parseInt(_0x2263d6(0x97))/0x8*(parseInt(_0x2263d6(0x8c))/0x9)+-parseInt(_0x2263d6(0x8d))/0xa;if(_0x1a23cf===_0x258e72)break;else _0xd13ca1['push'](_0xd13ca1['shift']());}catch(_0x2b980d){_0xd13ca1['push'](_0xd13ca1['shift']());}}}(a213_0x28bd,0xa0915));import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';export function createEmptySqlLock(){return{'apps':{}};}export function ensureSqlLockScope(_0x5a6bb1,_0x31278a,_0x3e1ef8,_0x360127){const _0x434761=a213_0x86fa,_0x2dd99d=_0x5a6bb1??createEmptySqlLock();let _0x3db84d=_0x2dd99d[_0x434761(0x83)][_0x31278a];if(!_0x3db84d)return _0x3db84d={'sqlRoot':_0x3e1ef8,'lastSync':'','sqls':{}},_0x2dd99d[_0x434761(0x83)][_0x31278a]=_0x3db84d,{'lockData':_0x2dd99d,'appLock':_0x3db84d};if(!_0x3db84d[_0x434761(0x84)])_0x3db84d[_0x434761(0x84)]=_0x3e1ef8;else{if(_0x3db84d['sqlRoot']!==_0x3e1ef8)throw new Error(_0x360127+':\x20sqlRoot\x20mismatch\x20—\x20current\x20\x22'+_0x3e1ef8+_0x434761(0x91)+_0x3db84d['sqlRoot']+_0x434761(0x96)+_0x434761(0x85));}return!_0x3db84d[_0x434761(0x81)]&&(_0x3db84d['sqls']={}),!_0x3db84d[_0x434761(0x8a)]&&(_0x3db84d[_0x434761(0x8a)]=''),{'lockData':_0x2dd99d,'appLock':_0x3db84d};}function a213_0x28bd(){const _0x4cc1dc=['lastSync','parse','2147013DEFOQU','286220VtdfAH','3334jVtBQO','ENOENT','Failed\x20to\x20read\x20SQL\x20lock\x20file:\x20','\x22\x20vs\x20lock\x20\x22','code','905191MnAzrx','2269476QdbVtQ','utf8','\x22.\x20','8MViVoS','sqls','730Imrimt','apps','sqlRoot','Check\x20.rabetbase/sql.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.','96BegvzP','stringify','3736269DtahRX','6520RruEtH'];a213_0x28bd=function(){return _0x4cc1dc;};return a213_0x28bd();}export async function readSqlLockFile(_0x273315){const _0x12b00c=a213_0x86fa;try{const _0x407ccd=await readFile(_0x273315,_0x12b00c(0x95));return JSON[_0x12b00c(0x8b)](_0x407ccd);}catch(_0x46aa54){if(_0x46aa54[_0x12b00c(0x92)]===_0x12b00c(0x8f))return null;throw new Error(_0x12b00c(0x90)+String(_0x46aa54));}}export async function writeSqlLockFile(_0xd78480,_0x5328fb){const _0x4b260a=a213_0x86fa;await mkdir(dirname(_0xd78480),{'recursive':!![]}),await writeFile(_0xd78480,JSON[_0x4b260a(0x87)](_0x5328fb,null,0x2),_0x4b260a(0x95));}
@@ -1 +1 @@
1
- (function(_0x5ac3f2,_0x31264a){const _0x71a2b4=a215_0x2cd1,_0x5bc832=_0x5ac3f2();while(!![]){try{const _0x233588=-parseInt(_0x71a2b4(0x1cf))/0x1*(parseInt(_0x71a2b4(0x1cd))/0x2)+parseInt(_0x71a2b4(0x1d4))/0x3+-parseInt(_0x71a2b4(0x1d8))/0x4+parseInt(_0x71a2b4(0x1ca))/0x5+-parseInt(_0x71a2b4(0x1d0))/0x6*(parseInt(_0x71a2b4(0x1cc))/0x7)+parseInt(_0x71a2b4(0x1cb))/0x8*(parseInt(_0x71a2b4(0x1ce))/0x9)+-parseInt(_0x71a2b4(0x1da))/0xa*(-parseInt(_0x71a2b4(0x1d5))/0xb);if(_0x233588===_0x31264a)break;else _0x5bc832['push'](_0x5bc832['shift']());}catch(_0x5286d4){_0x5bc832['push'](_0x5bc832['shift']());}}}(a215_0x244c,0xd5cd0));export function detectSqlMode(_0x163476){const _0x596536=a215_0x2cd1,_0x313648=_0x163476['trimStart']();if(/^<(select|insert|update|delete)\b/i[_0x596536(0x1d9)](_0x313648))return'mybatisXml';return _0x596536(0x1d2);}export function getSqlFileExtension(_0x390d76){const _0x15cfac=a215_0x2cd1;return _0x390d76===_0x15cfac(0x1d6)?_0x15cfac(0x1d3):'.sql';}export function buildDefaultSqlFileName(_0x119c8f,_0x14ea2a){return''+_0x119c8f+getSqlFileExtension(_0x14ea2a);}export function sanitizeSqlPathSegment(_0xbb8022,_0x38f941){const _0x5521c3=a215_0x2cd1,_0x3b54e3=String(_0xbb8022??'')[_0x5521c3(0x1c8)](),_0x58ed67=_0x3b54e3['replace'](/[<>:"/\\|?*\u0000-\u001F]/g,'-')[_0x5521c3(0x1c9)](/\s+/g,'-')[_0x5521c3(0x1c9)](/-+/g,'-')[_0x5521c3(0x1c9)](/^\.+/,'')[_0x5521c3(0x1c9)](/\.+$/,'')[_0x5521c3(0x1c9)](/^-+/,'')['replace'](/-+$/,'');return _0x58ed67||_0x38f941;}export function buildDbDirectoryName(_0x3b3ee6,_0x1e59a1){const _0x69bfaa=a215_0x2cd1;return sanitizeSqlPathSegment(_0x3b3ee6,_0x1e59a1!=null?_0x69bfaa(0x1d1)+_0x1e59a1:_0x69bfaa(0x1d7));}function a215_0x244c(){const _0x41bda4=['trim','replace','4759450eCQYyV','136264iCZhWd','112ZgBRIK','4bUJHiO','279vzxCCZ','26141RvpuDF','544890pHhmCl','db-','sql','.xml','1776231QjyEhB','11SwmMgH','mybatisXml','unknown-db','63964EtrkLq','test','3250510ciwzvd','unknown-sql'];a215_0x244c=function(){return _0x41bda4;};return a215_0x244c();}function a215_0x2cd1(_0x8a9eb,_0x304f8e){_0x8a9eb=_0x8a9eb-0x1c8;const _0x244c99=a215_0x244c();let _0x2cd194=_0x244c99[_0x8a9eb];return _0x2cd194;}export function buildSqlRelativePath(_0x3212e3,_0x228982,_0x526ca7,_0x2ec2b6,_0x90f72d){const _0x5efcf5=a215_0x2cd1,_0x4e5a3c=buildDbDirectoryName(_0x526ca7,_0x90f72d),_0x561340=sanitizeSqlPathSegment(_0x3212e3,_0x5efcf5(0x1db)),_0x5baaeb=sanitizeSqlPathSegment(_0x228982,_0x561340);return _0x4e5a3c+'/'+_0x561340+'_'+_0x5baaeb+getSqlFileExtension(_0x2ec2b6);}
1
+ (function(_0x30b7ec,_0x4f881d){const _0x1583e0=a215_0x598c,_0x2e9b15=_0x30b7ec();while(!![]){try{const _0x3459ec=parseInt(_0x1583e0(0x6f))/0x1*(-parseInt(_0x1583e0(0x69))/0x2)+-parseInt(_0x1583e0(0x7a))/0x3*(-parseInt(_0x1583e0(0x6a))/0x4)+parseInt(_0x1583e0(0x79))/0x5+parseInt(_0x1583e0(0x6d))/0x6*(-parseInt(_0x1583e0(0x6c))/0x7)+parseInt(_0x1583e0(0x71))/0x8+-parseInt(_0x1583e0(0x72))/0x9*(parseInt(_0x1583e0(0x7b))/0xa)+-parseInt(_0x1583e0(0x75))/0xb*(-parseInt(_0x1583e0(0x77))/0xc);if(_0x3459ec===_0x4f881d)break;else _0x2e9b15['push'](_0x2e9b15['shift']());}catch(_0x171cfa){_0x2e9b15['push'](_0x2e9b15['shift']());}}}(a215_0x4892,0xe74f8));function a215_0x598c(_0xda5bf,_0x4e00e1){_0xda5bf=_0xda5bf-0x67;const _0x489207=a215_0x4892();let _0x598c7c=_0x489207[_0xda5bf];return _0x598c7c;}export function detectSqlMode(_0x5ee272){const _0x1d8cca=a215_0x598c,_0x54fa43=_0x5ee272['trimStart']();if(/^<(select|insert|update|delete)\b/i[_0x1d8cca(0x6b)](_0x54fa43))return _0x1d8cca(0x78);return _0x1d8cca(0x76);}export function getSqlFileExtension(_0x471f46){const _0x7ad464=a215_0x598c;return _0x471f46==='mybatisXml'?_0x7ad464(0x68):_0x7ad464(0x70);}function a215_0x4892(){const _0x2de7d7=['104910RdvaSI','unknown-sql','.xml','2xKOwnv','4sYHYNW','test','12601099nBqiMF','6OkMFEp','replace','1013575YBBpCW','.sql','9368000dvHiyg','207gdLsFN','trim','db-','24105246RkeLTN','sql','12eljQEU','mybatisXml','2700970msHQTv','299679HMdynq'];a215_0x4892=function(){return _0x2de7d7;};return a215_0x4892();}export function buildDefaultSqlFileName(_0x22a482,_0x38fc89){return''+_0x22a482+getSqlFileExtension(_0x38fc89);}export function sanitizeSqlPathSegment(_0x53dd6a,_0x47d1bd){const _0x66c8cc=a215_0x598c,_0x332ccd=String(_0x53dd6a??'')[_0x66c8cc(0x73)](),_0x3dbe6c=_0x332ccd[_0x66c8cc(0x6e)](/[<>:"/\\|?*\u0000-\u001F]/g,'-')[_0x66c8cc(0x6e)](/\s+/g,'-')[_0x66c8cc(0x6e)](/-+/g,'-')[_0x66c8cc(0x6e)](/^\.+/,'')[_0x66c8cc(0x6e)](/\.+$/,'')['replace'](/^-+/,'')[_0x66c8cc(0x6e)](/-+$/,'');return _0x3dbe6c||_0x47d1bd;}export function buildDbDirectoryName(_0x37b107,_0x3a31db){const _0x31517f=a215_0x598c;return sanitizeSqlPathSegment(_0x37b107,_0x3a31db!=null?_0x31517f(0x74)+_0x3a31db:'unknown-db');}export function buildSqlRelativePath(_0x508621,_0x59a0d9,_0x5aed75,_0x44e62d,_0x49e1a4){const _0x1070ff=a215_0x598c,_0x1c8a6a=buildDbDirectoryName(_0x5aed75,_0x49e1a4),_0x58143d=sanitizeSqlPathSegment(_0x508621,_0x1070ff(0x67)),_0x56c256=sanitizeSqlPathSegment(_0x59a0d9,_0x58143d);return _0x1c8a6a+'/'+_0x58143d+'_'+_0x56c256+getSqlFileExtension(_0x44e62d);}
@@ -1 +1 @@
1
- (function(_0x35f409,_0x178845){const _0xeaec95=a216_0x4e23,_0x58f64d=_0x35f409();while(!![]){try{const _0x1945b9=parseInt(_0xeaec95(0x101))/0x1+-parseInt(_0xeaec95(0xf0))/0x2+parseInt(_0xeaec95(0xf7))/0x3*(-parseInt(_0xeaec95(0xef))/0x4)+parseInt(_0xeaec95(0xf8))/0x5*(parseInt(_0xeaec95(0x103))/0x6)+parseInt(_0xeaec95(0x108))/0x7+parseInt(_0xeaec95(0x100))/0x8+-parseInt(_0xeaec95(0x105))/0x9*(-parseInt(_0xeaec95(0x10c))/0xa);if(_0x1945b9===_0x178845)break;else _0x58f64d['push'](_0x58f64d['shift']());}catch(_0x2bd654){_0x58f64d['push'](_0x58f64d['shift']());}}}(a216_0x3193,0x8f0a3));function a216_0x4e23(_0x770ed4,_0x3b40c8){_0x770ed4=_0x770ed4-0xe9;const _0x31933a=a216_0x3193();let _0x4e2379=_0x31933a[_0x770ed4];return _0x4e2379;}export function detectSqlType(_0xc3708e){const _0x10f34b=a216_0x4e23;if(!_0xc3708e?.['trim']())return{'type':_0x10f34b(0x109),'isSelectOnly':![],'isDangerous':![],'reason':_0x10f34b(0xf1)};const _0x1ee173=_0xc3708e['replace'](/#\{[^}]*\}/g,'?')[_0x10f34b(0xfd)](/\$\{[^}]*\}/g,'?')['replace'](/@[^(\s]+(\([^)]*\))?/g,'')[_0x10f34b(0xfd)](/\/\*[\s\S]*?\*\//g,'')[_0x10f34b(0x104)](),_0x3b003a=_0x1ee173[_0x10f34b(0xfe)]('\x0a');let _0x530cb9='';for(const _0x250f9a of _0x3b003a){const _0x3b76db=_0x250f9a[_0x10f34b(0x104)]();if(!_0x3b76db||_0x3b76db[_0x10f34b(0x10b)]('--')||_0x3b76db[_0x10f34b(0x10b)]('/*'))continue;_0x530cb9=_0x3b76db;break;}const _0x1bbf14=_0x530cb9[_0x10f34b(0xff)]();if(_0x1bbf14[_0x10f34b(0x10b)](_0x10f34b(0xf3))||_0x1bbf14[_0x10f34b(0x10b)]('WITH')){const _0x26c760=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x10f34b(0xf9)](_0x1ee173);return{'type':_0x10f34b(0xf3),'isSelectOnly':!_0x26c760,'isDangerous':_0x26c760,'reason':_0x26c760?_0x10f34b(0x10d):undefined};}if(_0x1bbf14['startsWith'](_0x10f34b(0xe9)))return{'type':_0x10f34b(0xe9),'isSelectOnly':![],'isDangerous':![]};if(_0x1bbf14[_0x10f34b(0x10b)](_0x10f34b(0xfa)))return{'type':_0x10f34b(0xfa),'isSelectOnly':![],'isDangerous':![]};if(_0x1bbf14[_0x10f34b(0x10b)](_0x10f34b(0x107)))return{'type':_0x10f34b(0x107),'isSelectOnly':![],'isDangerous':!![],'reason':_0x10f34b(0xf5)};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i[_0x10f34b(0xf9)](_0x1bbf14))return{'type':_0x10f34b(0xed),'isSelectOnly':![],'isDangerous':!![],'reason':'DDL\x20statements\x20are\x20blocked\x20from\x20auto-save'};return{'type':'UNKNOWN','isSelectOnly':![],'isDangerous':![]};}function a216_0x3193(){const _0x2a9bd2=['1087552MJYRme','SQL\x20content\x20is\x20empty','type','SELECT','reason','DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save','\x20query\x20targeting\x20','1473111ryxhRl','5ciYQgV','test','UPDATE','\x20with\x20parameters:\x20','unknown\x20table(s)','replace','split','toUpperCase','3917768Jjrfgb','150535DxovUH','includes','2870874gRhsQG','trim','9NRIcjC','\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.','DELETE','5570229lnvXGP','UNKNOWN','push','startsWith','1972590mdZaow','SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT','INSERT','match','join','length','DDL','matchAll','8iKFvBj'];a216_0x3193=function(){return _0x2a9bd2;};return a216_0x3193();}function extractTables(_0x1308f6){const _0x214cec=a216_0x4e23,_0x104d15=_0x1308f6['replace'](/#\{[^}]*\}/g,'?')[_0x214cec(0xfd)](/\$\{[^}]*\}/g,'?')[_0x214cec(0xfd)](/'[^']*'/g,'\x27\x27')['replace'](/--.*$/gm,'')[_0x214cec(0xfd)](/\/\*[\s\S]*?\*\//g,''),_0x2333b8=[],_0x373776=_0x104d15['match'](/FROM\s+([^\s,)(]+)/i);if(_0x373776?.[0x1])_0x2333b8[_0x214cec(0x10a)](_0x373776[0x1]['replace'](/[`"]/g,''));for(const _0x5132a4 of _0x104d15[_0x214cec(0xee)](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){const _0x1ae589=_0x5132a4[0x1]?.[_0x214cec(0xfd)](/[`"]/g,'');if(_0x1ae589&&!_0x2333b8[_0x214cec(0x102)](_0x1ae589))_0x2333b8[_0x214cec(0x10a)](_0x1ae589);}const _0x3b3a36=_0x104d15[_0x214cec(0xea)](/INTO\s+([^\s(]+)/i);if(_0x3b3a36?.[0x1]){const _0x330ac2=_0x3b3a36[0x1][_0x214cec(0xfd)](/[`"]/g,'');if(!_0x2333b8['includes'](_0x330ac2))_0x2333b8['push'](_0x330ac2);}const _0x11b5b2=_0x104d15['match'](/UPDATE\s+([^\s,)(]+)/i);if(_0x11b5b2?.[0x1]){const _0x1d6d2f=_0x11b5b2[0x1][_0x214cec(0xfd)](/[`"]/g,'');if(!_0x2333b8[_0x214cec(0x102)](_0x1d6d2f))_0x2333b8[_0x214cec(0x10a)](_0x1d6d2f);}return _0x2333b8;}function extractParameters(_0x48fc02){const _0x4407f2=a216_0x4e23,_0x2edf7c=new Set();for(const _0x3b60e1 of _0x48fc02[_0x4407f2(0xee)](/#\{(\w+)\}/g))if(_0x3b60e1[0x1])_0x2edf7c['add'](_0x3b60e1[0x1]);for(const _0x2be581 of _0x48fc02[_0x4407f2(0xee)](/\$\{(\w+)\}/g))if(_0x2be581[0x1])_0x2edf7c['add'](_0x2be581[0x1]);return Array['from'](_0x2edf7c);}export function validateSql(_0x4462df){const _0x34be43=a216_0x4e23,_0x129688=detectSqlType(_0x4462df),_0x4ee47f=extractTables(_0x4462df),_0x4c6ebf=extractParameters(_0x4462df);if(_0x129688['isDangerous'])return{'valid':![],'sqlType':_0x129688,'tables':_0x4ee47f,'parameters':_0x4c6ebf,'message':_0x129688[_0x34be43(0xf4)]||_0x129688[_0x34be43(0xf2)]+_0x34be43(0x106)};if(_0x129688['type']===_0x34be43(0x109))return{'valid':![],'sqlType':_0x129688,'tables':_0x4ee47f,'parameters':_0x4c6ebf,'message':'Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.'};return{'valid':!![],'sqlType':_0x129688,'tables':_0x4ee47f,'parameters':_0x4c6ebf,'message':_0x129688[_0x34be43(0xf2)]+_0x34be43(0xf6)+(_0x4ee47f[_0x34be43(0xec)]?_0x4ee47f[_0x34be43(0xeb)](',\x20'):_0x34be43(0xfc))+(_0x4c6ebf[_0x34be43(0xec)]?_0x34be43(0xfb)+_0x4c6ebf[_0x34be43(0xeb)](',\x20'):'')};}
1
+ const a216_0x430ff1=a216_0x2005;(function(_0x53e491,_0x1bdde2){const _0x17a3ca=a216_0x2005,_0x30a500=_0x53e491();while(!![]){try{const _0x1d826e=-parseInt(_0x17a3ca(0x1b1))/0x1*(-parseInt(_0x17a3ca(0x1a2))/0x2)+parseInt(_0x17a3ca(0x18f))/0x3*(parseInt(_0x17a3ca(0x1a9))/0x4)+-parseInt(_0x17a3ca(0x18d))/0x5*(-parseInt(_0x17a3ca(0x1c8))/0x6)+-parseInt(_0x17a3ca(0x1c5))/0x7*(-parseInt(_0x17a3ca(0x1e3))/0x8)+parseInt(_0x17a3ca(0x1ac))/0x9*(parseInt(_0x17a3ca(0x1d6))/0xa)+parseInt(_0x17a3ca(0x1e4))/0xb*(-parseInt(_0x17a3ca(0x1c0))/0xc)+-parseInt(_0x17a3ca(0x1bb))/0xd*(parseInt(_0x17a3ca(0x1ce))/0xe);if(_0x1d826e===_0x1bdde2)break;else _0x30a500['push'](_0x30a500['shift']());}catch(_0x58bfd1){_0x30a500['push'](_0x30a500['shift']());}}}(a216_0x5605,0xf4178));const MYBATIS_OUTER_TAGS=new Map([[a216_0x430ff1(0x1b0),a216_0x430ff1(0x1c6)],[a216_0x430ff1(0x19e),a216_0x430ff1(0x1a3)],[a216_0x430ff1(0x1b6),'UPDATE'],[a216_0x430ff1(0x1bf),a216_0x430ff1(0x1db)]]),MYBATIS_DYNAMIC_TAGS=new Set(['if',a216_0x430ff1(0x1cc),'foreach',a216_0x430ff1(0x1a8),a216_0x430ff1(0x1e6),a216_0x430ff1(0x1e0),a216_0x430ff1(0x1ab),a216_0x430ff1(0x1e9),'bind',a216_0x430ff1(0x1a1),a216_0x430ff1(0x19d)]),MYBATIS_BRANCH_TAGS=new Set(['if',a216_0x430ff1(0x1be),'choose','when','otherwise']);export const MYBATIS_DYNAMIC_START_MARKER=a216_0x430ff1(0x1e1);export const MYBATIS_DYNAMIC_END_MARKER='__RABETBASE_MYBATIS_DYNAMIC_END__';export const MYBATIS_INCLUDE_MARKER=a216_0x430ff1(0x194);const UNRESOLVED_SQL_FRAGMENT=a216_0x430ff1(0x1cf),MYBATIS_OUTER_TAG_PATTERN=new RegExp(a216_0x430ff1(0x197)+[...MYBATIS_OUTER_TAGS[a216_0x430ff1(0x18b)]()][a216_0x430ff1(0x1bc)]('|')+')\x5cb','i');export function normalizeSqlForStaticAnalysis(_0x36d991){const _0x39bab9=a216_0x430ff1,_0x4d1d6c=typeof _0x36d991===_0x39bab9(0x1dd)?_0x36d991:'';if(!startsWithMybatisStatementWrapper(_0x4d1d6c))return{'sql':_0x4d1d6c,'mode':'sql'};let _0x6da53f=0x0,_0x537fbf='',_0x1eb1c0,_0x26f81a=![],_0x464089=![];const _0x239b49=[];while(_0x6da53f<_0x4d1d6c[_0x39bab9(0x1d9)]){if(_0x4d1d6c[_0x39bab9(0x1e2)]('<!--',_0x6da53f)){const _0x266413=_0x4d1d6c[_0x39bab9(0x1cd)](_0x39bab9(0x192),_0x6da53f+0x4);if(_0x266413<0x0)return invalidMybatisSource(_0x39bab9(0x1d3));_0x537fbf+='\x20',_0x6da53f=_0x266413+0x3;continue;}if(_0x4d1d6c['startsWith'](_0x39bab9(0x196),_0x6da53f)){if(!_0x26f81a||_0x464089)return invalidMybatisSource('CDATA\x20sections\x20must\x20be\x20inside\x20the\x20MyBatis\x20statement\x20wrapper.');const _0x2c24a1=_0x4d1d6c[_0x39bab9(0x1cd)](_0x39bab9(0x1af),_0x6da53f+0x9);if(_0x2c24a1<0x0)return invalidMybatisSource(_0x39bab9(0x1c2));_0x537fbf+=_0x4d1d6c[_0x39bab9(0x1c3)](_0x6da53f+0x9,_0x2c24a1),_0x6da53f=_0x2c24a1+0x3;continue;}if(_0x4d1d6c[_0x39bab9(0x1e2)]('<?',_0x6da53f)){if(_0x26f81a)return invalidMybatisSource(_0x39bab9(0x1b8));const _0x4ffd2e=_0x4d1d6c[_0x39bab9(0x1cd)]('?>',_0x6da53f+0x2);if(_0x4ffd2e<0x0)return invalidMybatisSource(_0x39bab9(0x1e8));_0x537fbf+='\x20',_0x6da53f=_0x4ffd2e+0x2;continue;}if(_0x4d1d6c[_0x6da53f]!=='<'){const _0x2b33da=_0x4d1d6c[_0x39bab9(0x1cd)]('<',_0x6da53f),_0x4db7fa=_0x2b33da<0x0?_0x4d1d6c['length']:_0x2b33da,_0xa9b3af=_0x4d1d6c['slice'](_0x6da53f,_0x4db7fa);if((!_0x26f81a||_0x464089)&&_0xa9b3af[_0x39bab9(0x1ab)]())return invalidMybatisSource(_0x39bab9(0x1df));if(_0x26f81a&&!_0x464089){const _0x871c4e=decodeXmlEntities(_0xa9b3af);if(_0x871c4e===null)return invalidMybatisSource(_0x39bab9(0x19b));_0x537fbf+=_0x871c4e;}else _0x537fbf+='\x20';_0x6da53f=_0x4db7fa;continue;}const _0x47c3b6=findXmlTagEnd(_0x4d1d6c,_0x6da53f);if(_0x47c3b6<0x0)return invalidMybatisSource('Unterminated\x20MyBatis\x20XML\x20tag.');const _0x2c744b=_0x4d1d6c['slice'](_0x6da53f,_0x47c3b6+0x1),_0x5ce22f=/^<\s*(\/?)\s*([A-Za-z][\w:-]*)([\s\S]*?)(\/?)\s*>$/['exec'](_0x2c744b);if(!_0x5ce22f)return invalidMybatisSource(_0x39bab9(0x1ae));const _0x333b27=_0x5ce22f[0x1]==='/',_0x103fc6=_0x5ce22f[0x2]??'',_0x594ca0=_0x103fc6[_0x39bab9(0x1b5)](),_0x1466c4=_0x5ce22f[0x3]??'',_0x5eba90=_0x5ce22f[0x4]==='/',_0x17c941=MYBATIS_OUTER_TAGS['get'](_0x594ca0);if(!_0x17c941&&!MYBATIS_DYNAMIC_TAGS['has'](_0x594ca0))return invalidMybatisSource(_0x39bab9(0x188)+_0x594ca0+'>.');if(!_0x17c941&&_0x103fc6!==_0x594ca0)return invalidMybatisSource('MyBatis\x20dynamic\x20tag\x20names\x20must\x20be\x20lowercase:\x20<'+_0x103fc6+'>.');if(_0x333b27){if(_0x1466c4['trim']()||_0x5eba90)return invalidMybatisSource(_0x39bab9(0x1c4)+_0x103fc6+'>.');const _0x7e1f9a=_0x239b49['at'](-0x1);if(!_0x7e1f9a||(_0x7e1f9a['outer']?_0x7e1f9a[_0x39bab9(0x1d1)]!==_0x594ca0:_0x7e1f9a[_0x39bab9(0x1a5)]!==_0x103fc6))return invalidMybatisSource(_0x39bab9(0x19c)+_0x103fc6+'>.');_0x239b49['pop']();if(_0x7e1f9a['outer'])_0x464089=!![];_0x537fbf+=MYBATIS_BRANCH_TAGS[_0x39bab9(0x1ad)](_0x594ca0)?'\x20'+MYBATIS_DYNAMIC_END_MARKER+'\x20':'\x20';}else{if(!hasWellFormedXmlAttributes(_0x1466c4))return invalidMybatisSource(_0x39bab9(0x18c)+_0x103fc6+'>.');if(_0x594ca0===_0x39bab9(0x19d)&&(!_0x5eba90||_0x239b49['at'](-0x1)?.[_0x39bab9(0x1d1)]!==_0x39bab9(0x1a1)))return invalidMybatisSource(_0x39bab9(0x1c7));if(_0x17c941){if(_0x26f81a||_0x239b49[_0x39bab9(0x1d9)]>0x0)return invalidMybatisSource(_0x39bab9(0x1d2));_0x26f81a=!![],_0x464089=_0x5eba90,_0x1eb1c0=_0x17c941;}else{if(!_0x26f81a||_0x464089)return invalidMybatisSource(_0x39bab9(0x1e5)+_0x103fc6+'>.');}_0x537fbf+=_0x594ca0==='where'?_0x39bab9(0x1bd):_0x594ca0===_0x39bab9(0x1e9)?_0x39bab9(0x1b4):_0x594ca0===_0x39bab9(0x1a1)?'\x20'+MYBATIS_INCLUDE_MARKER+'\x20':MYBATIS_BRANCH_TAGS['has'](_0x594ca0)&&!_0x5eba90?'\x20'+MYBATIS_DYNAMIC_START_MARKER+'\x20':'\x20',!_0x5eba90&&_0x239b49[_0x39bab9(0x1a7)]({'rawName':_0x103fc6,'tagName':_0x594ca0,'outer':!!_0x17c941});}_0x6da53f=_0x47c3b6+0x1;}if(_0x239b49[_0x39bab9(0x1d9)]>0x0)return invalidMybatisSource('Unclosed\x20MyBatis\x20XML\x20tag:\x20<'+_0x239b49['at'](-0x1)?.['rawName']+'>.');if(!_0x26f81a||!_0x464089)return invalidMybatisSource('MyBatis\x20XML\x20must\x20contain\x20exactly\x20one\x20complete\x20statement\x20wrapper.');return{'sql':_0x537fbf['trim'](),'mode':'mybatisXml',..._0x1eb1c0?{'statementType':_0x1eb1c0}:{}};}function hasWellFormedXmlAttributes(_0x392271){const _0x2c3c30=a216_0x430ff1;let _0x4229d7=0x0;const _0x4167ad=new Set();while(_0x4229d7<_0x392271[_0x2c3c30(0x1d9)]){while(_0x4229d7<_0x392271[_0x2c3c30(0x1d9)]&&/\s/[_0x2c3c30(0x193)](_0x392271[_0x4229d7]??''))_0x4229d7+=0x1;if(_0x4229d7>=_0x392271[_0x2c3c30(0x1d9)])return!![];const _0xb3b871=/^[A-Za-z_:][\w:.-]*/[_0x2c3c30(0x19f)](_0x392271[_0x2c3c30(0x1c3)](_0x4229d7)),_0x6c72e1=_0xb3b871?.[0x0];if(!_0x6c72e1||_0x4167ad[_0x2c3c30(0x1ad)](_0x6c72e1))return![];_0x4167ad[_0x2c3c30(0x1cb)](_0x6c72e1),_0x4229d7+=_0x6c72e1['length'];while(_0x4229d7<_0x392271[_0x2c3c30(0x1d9)]&&/\s/[_0x2c3c30(0x193)](_0x392271[_0x4229d7]??''))_0x4229d7+=0x1;if(_0x392271[_0x4229d7]!=='=')return![];_0x4229d7+=0x1;while(_0x4229d7<_0x392271[_0x2c3c30(0x1d9)]&&/\s/['test'](_0x392271[_0x4229d7]??''))_0x4229d7+=0x1;const _0x250c46=_0x392271[_0x4229d7];if(_0x250c46!=='\x22'&&_0x250c46!=='\x27')return![];_0x4229d7+=0x1;const _0xf8116e=_0x392271['indexOf'](_0x250c46,_0x4229d7);if(_0xf8116e<0x0)return![];if(decodeXmlEntities(_0x392271['slice'](_0x4229d7,_0xf8116e))===null)return![];_0x4229d7=_0xf8116e+0x1;}return!![];}function startsWithMybatisStatementWrapper(_0x53dcad){const _0x448d95=a216_0x430ff1;let _0x2bea1b=0x0;const _0x260d40=()=>{const _0x4f6806=a216_0x2005;while(_0x2bea1b<_0x53dcad[_0x4f6806(0x1d9)]&&/\s/[_0x4f6806(0x193)](_0x53dcad[_0x2bea1b]??''))_0x2bea1b+=0x1;};_0x260d40();while(_0x2bea1b<_0x53dcad[_0x448d95(0x1d9)]){if(_0x53dcad[_0x448d95(0x1e2)](_0x448d95(0x1d7),_0x2bea1b)){const _0x54bda5=_0x53dcad[_0x448d95(0x1cd)](_0x448d95(0x192),_0x2bea1b+0x4);if(_0x54bda5<0x0)return!![];_0x2bea1b=_0x54bda5+0x3,_0x260d40();continue;}if(_0x53dcad['startsWith']('<?',_0x2bea1b)){const _0x34a4db=_0x53dcad[_0x448d95(0x1cd)]('?>',_0x2bea1b+0x2);if(_0x34a4db<0x0)return!![];_0x2bea1b=_0x34a4db+0x2,_0x260d40();continue;}break;}return MYBATIS_OUTER_TAG_PATTERN[_0x448d95(0x193)](_0x53dcad[_0x448d95(0x1c3)](_0x2bea1b));}function invalidMybatisSource(_0x9eb239){const _0x491cca=a216_0x430ff1;return{'sql':'','mode':_0x491cca(0x1b3),'error':_0x9eb239};}function findXmlTagEnd(_0x2fade8,_0x1b7253){const _0x44069e=a216_0x430ff1;let _0x1aa9b0;for(let _0x2e503f=_0x1b7253+0x1;_0x2e503f<_0x2fade8[_0x44069e(0x1d9)];_0x2e503f+=0x1){const _0x120f67=_0x2fade8[_0x2e503f];if(_0x1aa9b0){if(_0x120f67===_0x1aa9b0)_0x1aa9b0=undefined;continue;}if(_0x120f67==='\x22'||_0x120f67==='\x27'){_0x1aa9b0=_0x120f67;continue;}if(_0x120f67==='>')return _0x2e503f;}return-0x1;}function decodeXmlEntities(_0x1334e0){const _0x3e4142=a216_0x430ff1;let _0x56dad0=![];const _0x9571bb=_0x1334e0[_0x3e4142(0x1e7)](/&(?:#x[0-9a-f]+;|#[0-9]+;|[A-Za-z_:][\w:.-]*;)?/g,_0x2b5563=>{const _0x34ac50=_0x3e4142;if(_0x2b5563==='&lt;')return'<';if(_0x2b5563===_0x34ac50(0x19a))return'>';if(_0x2b5563===_0x34ac50(0x1ca))return'\x22';if(_0x2b5563===_0x34ac50(0x1da))return'\x27';if(_0x2b5563===_0x34ac50(0x198))return'&';const _0x15b31d=/^&#(?:x([0-9a-f]+)|([0-9]+));$/[_0x34ac50(0x19f)](_0x2b5563);if(_0x15b31d){const _0x43560e=_0x15b31d[0x1],_0x2444ec=_0x15b31d[0x2],_0x44a677=Number[_0x34ac50(0x1aa)](_0x43560e??_0x2444ec??'',_0x43560e?0x10:0xa);if(isValidXmlCharacter(_0x44a677))return String[_0x34ac50(0x199)](_0x44a677);}return _0x56dad0=!![],'';});return _0x56dad0?null:_0x9571bb;}function a216_0x2005(_0xa23d07,_0x39486e){_0xa23d07=_0xa23d07-0x187;const _0x560515=a216_0x5605();let _0x2005f4=_0x560515[_0xa23d07];return _0x2005f4;}function isValidXmlCharacter(_0x55ecf6){return _0x55ecf6===0x9||_0x55ecf6===0xa||_0x55ecf6===0xd||_0x55ecf6>=0x20&&_0x55ecf6<=0xd7ff||_0x55ecf6>=0xe000&&_0x55ecf6<=0xfffd||_0x55ecf6>=0x10000&&_0x55ecf6<=0x10ffff;}export function detectSqlType(_0x482225){return detectNormalizedSqlType(normalizeSqlForStaticAnalysis(_0x482225));}function detectNormalizedSqlType(_0x3d0ca7){const _0x7a3eff=a216_0x430ff1;if(_0x3d0ca7[_0x7a3eff(0x1dc)])return{'type':_0x7a3eff(0x1a6),'isSelectOnly':![],'isDangerous':![],'reason':_0x3d0ca7[_0x7a3eff(0x1dc)]};if(!_0x3d0ca7[_0x7a3eff(0x1de)][_0x7a3eff(0x1ab)]())return{'type':_0x7a3eff(0x1a6),'isSelectOnly':![],'isDangerous':![],'reason':_0x7a3eff(0x1c9)};const _0x4d8f82=stripStaticAnalysisMarkers(_0x3d0ca7[_0x7a3eff(0x1de)])[_0x7a3eff(0x1e7)](/#\{[^}]*\}/g,'?')[_0x7a3eff(0x1e7)](/\$\{[^}]*\}/g,'?')[_0x7a3eff(0x1e7)](/@[^(\s]+(\([^)]*\))?/g,'')['replace'](/\/\*[\s\S]*?\*\//g,'')[_0x7a3eff(0x1ab)](),_0x1476e9=_0x4d8f82[_0x7a3eff(0x195)]('\x0a');let _0x559b58='';for(const _0x376440 of _0x1476e9){const _0x233a40=_0x376440['trim']();if(!_0x233a40||_0x233a40[_0x7a3eff(0x1e2)]('--')||_0x233a40[_0x7a3eff(0x1e2)]('/*'))continue;_0x559b58=_0x233a40;break;}const _0x5cd22f=_0x559b58[_0x7a3eff(0x1a0)](),_0x4f86cc=_0x3d0ca7[_0x7a3eff(0x1d8)],_0x52b6e6=maskSqlTextForBlockedKeywordScan(_0x4d8f82),_0xe200b7=/\b(DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x7a3eff(0x193)](_0x52b6e6);if(_0x4f86cc===_0x7a3eff(0x1c6)||!_0x4f86cc&&(_0x5cd22f[_0x7a3eff(0x1e2)]('SELECT')||_0x5cd22f[_0x7a3eff(0x1e2)]('WITH'))){const _0xf0b9d6=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i['test'](_0x4d8f82);return{'type':_0x7a3eff(0x1c6),'isSelectOnly':!_0xf0b9d6,'isDangerous':_0xf0b9d6,'reason':_0xf0b9d6?_0x7a3eff(0x189):undefined};}if(_0x4f86cc===_0x7a3eff(0x1a3)||!_0x4f86cc&&_0x5cd22f[_0x7a3eff(0x1e2)](_0x7a3eff(0x1a3)))return{'type':_0x7a3eff(0x1a3),'isSelectOnly':![],'isDangerous':_0xe200b7,'reason':_0xe200b7?'SQL\x20contains\x20blocked\x20DELETE\x20or\x20DDL\x20statements':undefined};if(_0x4f86cc==='UPDATE'||!_0x4f86cc&&_0x5cd22f[_0x7a3eff(0x1e2)](_0x7a3eff(0x1a4)))return{'type':_0x7a3eff(0x1a4),'isSelectOnly':![],'isDangerous':_0xe200b7,'reason':_0xe200b7?_0x7a3eff(0x1d0):undefined};if(_0x4f86cc==='DELETE'||!_0x4f86cc&&_0x5cd22f[_0x7a3eff(0x1e2)]('DELETE'))return{'type':_0x7a3eff(0x1db),'isSelectOnly':![],'isDangerous':!![],'reason':_0x7a3eff(0x1ba)};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i[_0x7a3eff(0x193)](_0x5cd22f))return{'type':_0x7a3eff(0x1b2),'isSelectOnly':![],'isDangerous':!![],'reason':'DDL\x20statements\x20are\x20blocked\x20from\x20auto-save'};return{'type':'UNKNOWN','isSelectOnly':![],'isDangerous':![]};}function stripStaticAnalysisMarkers(_0x5a00dc){const _0x42952d=a216_0x430ff1;return _0x5a00dc[_0x42952d(0x18e)](MYBATIS_DYNAMIC_START_MARKER,'\x20')[_0x42952d(0x18e)](MYBATIS_DYNAMIC_END_MARKER,'\x20')['replaceAll'](MYBATIS_INCLUDE_MARKER,'\x20'+UNRESOLVED_SQL_FRAGMENT+'\x20');}function maskSqlTextForBlockedKeywordScan(_0x44c26a){const _0x3e4383=a216_0x430ff1;return _0x44c26a[_0x3e4383(0x1e7)](/'(?:''|\\.|[^'])*'/g,'\x20')[_0x3e4383(0x1e7)](/"(?:""|\\.|[^"])*"/g,'\x20')[_0x3e4383(0x1e7)](/`(?:``|\\.|[^`])*`/g,'\x20')[_0x3e4383(0x1e7)](/--.*$/gm,'\x20')[_0x3e4383(0x1e7)](/#.*$/gm,'\x20')[_0x3e4383(0x1e7)](/\/\*[\s\S]*?\*\//g,'\x20');}function extractTables(_0x15c8e8){const _0x3b5531=a216_0x430ff1,_0x40d823=_0x15c8e8[_0x3b5531(0x1e7)](/#\{[^}]*\}/g,'?')[_0x3b5531(0x1e7)](/\$\{[^}]*\}/g,'?')['replace'](/'[^']*'/g,'\x27\x27')[_0x3b5531(0x1e7)](/--.*$/gm,'')[_0x3b5531(0x1e7)](/\/\*[\s\S]*?\*\//g,''),_0x1a95c7=[],_0x3392ce=_0x40d823[_0x3b5531(0x18a)](/FROM\s+([^\s,)(]+)/i);addTable(_0x1a95c7,_0x3392ce?.[0x1]);for(const _0x5d13df of _0x40d823['matchAll'](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){addTable(_0x1a95c7,_0x5d13df[0x1]);}const _0x134a90=_0x40d823[_0x3b5531(0x18a)](/INTO\s+([^\s(]+)/i);addTable(_0x1a95c7,_0x134a90?.[0x1]);const _0x368502=_0x40d823[_0x3b5531(0x18a)](/UPDATE\s+([^\s,)(]+)/i);return addTable(_0x1a95c7,_0x368502?.[0x1]),_0x1a95c7;}function a216_0x5605(){const _0x38df3e=[']]>','select','1466167bzkeyq','DDL','mybatisXml','\x20SET\x20','toLowerCase','update','from','XML\x20declarations\x20must\x20precede\x20the\x20MyBatis\x20statement\x20wrapper.','isDangerous','DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save','13nppHKo','join','\x20WHERE\x20','foreach','delete','12UlAPvS','unknown\x20table(s)','Unterminated\x20CDATA\x20section.','slice','Invalid\x20MyBatis\x20XML\x20closing\x20tag:\x20</','3234pQxwqn','SELECT','MyBatis\x20<property>\x20must\x20be\x20a\x20self-closing\x20direct\x20child\x20of\x20<include>.','18MxGPYd','SQL\x20content\x20is\x20empty','&quot;','add','where','indexOf','49110796XFirKh','__RABETBASE_UNRESOLVED_SQL_FRAGMENT__','SQL\x20contains\x20blocked\x20DELETE\x20or\x20DDL\x20statements','tagName','Multiple\x20MyBatis\x20statement\x20wrappers\x20are\x20not\x20supported.','Unterminated\x20XML\x20comment.','Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.','reason','11058790dEBHLz','<!--','statementType','length','&apos;','DELETE','error','string','sql','SQL\x20text\x20must\x20be\x20inside\x20the\x20MyBatis\x20statement\x20wrapper.','otherwise','__RABETBASE_MYBATIS_DYNAMIC_START__','startsWith','25976efztDQ','17521790VmtDJN','MyBatis\x20dynamic\x20tag\x20must\x20be\x20inside\x20the\x20statement\x20wrapper:\x20<','when','replace','Unterminated\x20XML\x20declaration.','set','\x20with\x20parameters:\x20','\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.','Unsupported\x20MyBatis\x20XML\x20tag:\x20<','SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT','match','keys','Invalid\x20attributes\x20on\x20MyBatis\x20XML\x20tag:\x20<','1830535aUnQwx','replaceAll','2790369LBBFYl','type','\x20query\x20targeting\x20','-->','test','__RABETBASE_MYBATIS_INCLUDE_UNRESOLVED__','split','<![CDATA[','^<\x5cs*(?:','&amp;','fromCodePoint','&gt;','Invalid\x20XML\x20entity\x20reference.','Mismatched\x20MyBatis\x20XML\x20closing\x20tag:\x20</','property','insert','exec','toUpperCase','include','2UEWbkU','INSERT','UPDATE','rawName','UNKNOWN','push','choose','4epUCXL','parseInt','trim','9eQOXIp','has','Invalid\x20MyBatis\x20XML\x20tag.'];a216_0x5605=function(){return _0x38df3e;};return a216_0x5605();}function addTable(_0x33cd00,_0x570b8c){const _0x44efb2=a216_0x430ff1,_0x44f1f1=_0x570b8c?.[_0x44efb2(0x1e7)](/[`"]/g,'');_0x44f1f1&&_0x44f1f1!==UNRESOLVED_SQL_FRAGMENT&&!_0x33cd00['includes'](_0x44f1f1)&&_0x33cd00[_0x44efb2(0x1a7)](_0x44f1f1);}function extractParameters(_0x3c81c4){const _0x5f4e82=a216_0x430ff1,_0x4bcc41=new Set();for(const _0x3caecd of _0x3c81c4['matchAll'](/[#$]\{\s*([A-Za-z_][\w.]*)\s*(?=[,}])/g)){if(_0x3caecd[0x1])_0x4bcc41[_0x5f4e82(0x1cb)](_0x3caecd[0x1]);}return Array[_0x5f4e82(0x1b7)](_0x4bcc41);}export function validateSql(_0x285664){const _0x332847=a216_0x430ff1,_0x2d980f=normalizeSqlForStaticAnalysis(_0x285664),_0x400027=detectNormalizedSqlType(_0x2d980f),_0x4caefa=stripStaticAnalysisMarkers(_0x2d980f[_0x332847(0x1de)]),_0x7b4d0b=_0x2d980f[_0x332847(0x1dc)]?[]:extractTables(_0x4caefa),_0x45609e=_0x2d980f['error']?[]:extractParameters(_0x4caefa);if(_0x400027[_0x332847(0x1b9)])return{'valid':![],'sqlType':_0x400027,'tables':_0x7b4d0b,'parameters':_0x45609e,'message':_0x400027[_0x332847(0x1d5)]||_0x400027[_0x332847(0x190)]+_0x332847(0x187)};if(_0x400027[_0x332847(0x190)]===_0x332847(0x1a6))return{'valid':![],'sqlType':_0x400027,'tables':_0x7b4d0b,'parameters':_0x45609e,'message':_0x2d980f[_0x332847(0x1dc)]?'Unable\x20to\x20detect\x20SQL\x20type.\x20'+_0x2d980f[_0x332847(0x1dc)]:_0x332847(0x1d4)};return{'valid':!![],'sqlType':_0x400027,'tables':_0x7b4d0b,'parameters':_0x45609e,'message':_0x400027[_0x332847(0x190)]+_0x332847(0x191)+(_0x7b4d0b['length']?_0x7b4d0b['join'](',\x20'):_0x332847(0x1c1))+(_0x45609e[_0x332847(0x1d9)]?_0x332847(0x1ea)+_0x45609e[_0x332847(0x1bc)](',\x20'):'')};}
package/lib/errors.js CHANGED
@@ -1 +1 @@
1
- const a217_0x7a8def=a217_0xb7ae;(function(_0xfaa887,_0x49864f){const _0x2bf9ce=a217_0xb7ae,_0xef6ef6=_0xfaa887();while(!![]){try{const _0x24e8ab=parseInt(_0x2bf9ce(0xe3))/0x1*(-parseInt(_0x2bf9ce(0xeb))/0x2)+parseInt(_0x2bf9ce(0xe8))/0x3+-parseInt(_0x2bf9ce(0xe4))/0x4*(-parseInt(_0x2bf9ce(0xf1))/0x5)+-parseInt(_0x2bf9ce(0xef))/0x6*(-parseInt(_0x2bf9ce(0xee))/0x7)+parseInt(_0x2bf9ce(0xec))/0x8*(parseInt(_0x2bf9ce(0xe5))/0x9)+parseInt(_0x2bf9ce(0xed))/0xa+-parseInt(_0x2bf9ce(0xe6))/0xb;if(_0x24e8ab===_0x49864f)break;else _0xef6ef6['push'](_0xef6ef6['shift']());}catch(_0x3fbef4){_0xef6ef6['push'](_0xef6ef6['shift']());}}}(a217_0x1288,0x2d048));function a217_0xb7ae(_0x373321,_0x380c72){_0x373321=_0x373321-0xe1;const _0x1288e5=a217_0x1288();let _0xb7ae10=_0x1288e5[_0x373321];return _0xb7ae10;}function a217_0x1288(){const _0x1e0844=['1865043iBdLWH','581559jIbYAG','\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.','156363uqUEzN','\x0a\x20\x20\x20\x20\x20\x20\x20','Set\x20appcode\x20via\x20`','262IMyVyB','8TMkqit','1283400Cbfwzk','7bBAtZW','90672YTxXOT','Tip:\x20`','5wiUWwM','Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.','join','1745JUQjFr','252224UBCYbp'];a217_0x1288=function(){return _0x1e0844;};return a217_0x1288();}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':'Run\x20`'+CLI_BIN_NAME+'\x20auth`\x20to\x20login\x20first.','configMissingHint':[a217_0x7a8def(0xea)+CLI_BIN_NAME+'\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.',a217_0x7a8def(0xf0)+CLI_BIN_NAME+a217_0x7a8def(0xe7)][a217_0x7a8def(0xe2)](a217_0x7a8def(0xe9)),'notInProjectHint':a217_0x7a8def(0xe1)});
1
+ const a217_0x1393d6=a217_0x2268;(function(_0x2c1d20,_0x3bc3e6){const _0x5e9ef0=a217_0x2268,_0x3f7280=_0x2c1d20();while(!![]){try{const _0x465b0a=parseInt(_0x5e9ef0(0x1b9))/0x1+-parseInt(_0x5e9ef0(0x1b8))/0x2+parseInt(_0x5e9ef0(0x1af))/0x3*(parseInt(_0x5e9ef0(0x1b4))/0x4)+parseInt(_0x5e9ef0(0x1b3))/0x5+parseInt(_0x5e9ef0(0x1b2))/0x6+-parseInt(_0x5e9ef0(0x1b6))/0x7*(-parseInt(_0x5e9ef0(0x1ae))/0x8)+parseInt(_0x5e9ef0(0x1b0))/0x9*(-parseInt(_0x5e9ef0(0x1b7))/0xa);if(_0x465b0a===_0x3bc3e6)break;else _0x3f7280['push'](_0x3f7280['shift']());}catch(_0x4d4a4d){_0x3f7280['push'](_0x3f7280['shift']());}}}(a217_0x1b44,0x96815));import{CliError,createCliErrors}from'@lovrabet/cli-framework';function a217_0x1b44(){const _0x87487a=['40792RBvPGf','Tip:\x20`','1531481dbcDLy','269390IGtmcN','428166RsnmRp','1031453KzXHIC','Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.','join','8AqluSL','12XxNcwH','522cwinus','\x20auth`\x20to\x20login\x20first.','2060652mbxEJV','3792720xnXAhq'];a217_0x1b44=function(){return _0x87487a;};return a217_0x1b44();}function a217_0x2268(_0xaf18e,_0xf662ff){_0xaf18e=_0xaf18e-0x1ac;const _0x1b44de=a217_0x1b44();let _0x2268c3=_0x1b44de[_0xaf18e];return _0x2268c3;}import{CLI_BIN_NAME}from'./constant/cli.js';export{CliError};export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':'Run\x20`'+CLI_BIN_NAME+a217_0x1393d6(0x1b1),'configMissingHint':['Set\x20appcode\x20via\x20`'+CLI_BIN_NAME+'\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.',a217_0x1393d6(0x1b5)+CLI_BIN_NAME+'\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.'][a217_0x1393d6(0x1ad)]('\x0a\x20\x20\x20\x20\x20\x20\x20'),'notInProjectHint':a217_0x1393d6(0x1ac)});
@@ -1 +1 @@
1
- (function(_0x485717,_0x11dabd){const _0x1e9951=a218_0x5cad,_0x3b3b54=_0x485717();while(!![]){try{const _0x232bc9=-parseInt(_0x1e9951(0x1e4))/0x1*(-parseInt(_0x1e9951(0x1e8))/0x2)+-parseInt(_0x1e9951(0x1e2))/0x3*(parseInt(_0x1e9951(0x1e0))/0x4)+-parseInt(_0x1e9951(0x1e1))/0x5+-parseInt(_0x1e9951(0x1de))/0x6*(-parseInt(_0x1e9951(0x1e9))/0x7)+parseInt(_0x1e9951(0x1e3))/0x8+-parseInt(_0x1e9951(0x1dd))/0x9+parseInt(_0x1e9951(0x1e7))/0xa;if(_0x232bc9===_0x11dabd)break;else _0x3b3b54['push'](_0x3b3b54['shift']());}catch(_0x19728a){_0x3b3b54['push'](_0x3b3b54['shift']());}}}(a218_0x559e,0x928c0));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';function a218_0x5cad(_0x2c0aaa,_0x37eac5){_0x2c0aaa=_0x2c0aaa-0x1dd;const _0x559e9e=a218_0x559e();let _0x5cadb4=_0x559e9e[_0x2c0aaa];return _0x5cadb4;}import{buildAllFlags as a218_0x5279c8}from'@lovrabet/cli-framework';import{EXPLICIT_YES_FLAG_DESCRIPTION,requiresExplicitYes}from'../framework/explicit-yes.js';function a218_0x559e(){const _0x1cb015=['7HUCYMd','8721963ZCCLGG','1502268VtBQDv','yes','10808BzQCHR','352150zGuRrW','135qRzbxA','2073440yJyEaf','9YmGeGK','name','map','530160jXoasP','266402HhWlPe'];a218_0x559e=function(){return _0x1cb015;};return a218_0x559e();}export function buildAllFlags(_0x354fd6){const _0x2b966d=a218_0x5cad,_0x43e67a=a218_0x5279c8(_0x354fd6,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});if(!requiresExplicitYes(_0x354fd6))return _0x43e67a;return _0x43e67a[_0x2b966d(0x1e6)](_0x5a0937=>_0x5a0937[_0x2b966d(0x1e5)]===_0x2b966d(0x1df)?{..._0x5a0937,'description':EXPLICIT_YES_FLAG_DESCRIPTION}:_0x5a0937);}
1
+ function a218_0x9c0c(){const _0x314a09=['4589sDNhaA','505628lTbcGL','8cOwkxf','map','6678474FFKtRO','15QxAbOO','70428BeWnjD','yes','6525071ArJWvH','7EcmgEx','10hteMty','name','40PHevrr','5107914feVwJo','567312EuqoyE','203454VYqTlY'];a218_0x9c0c=function(){return _0x314a09;};return a218_0x9c0c();}(function(_0x329cdc,_0x51d426){const _0x506dd7=a218_0x2208,_0x2110c8=_0x329cdc();while(!![]){try{const _0x5d3dca=parseInt(_0x506dd7(0xb7))/0x1*(-parseInt(_0x506dd7(0xbd))/0x2)+-parseInt(_0x506dd7(0xb3))/0x3*(parseInt(_0x506dd7(0xbf))/0x4)+parseInt(_0x506dd7(0xba))/0x5*(parseInt(_0x506dd7(0xbc))/0x6)+-parseInt(_0x506dd7(0xb6))/0x7*(parseInt(_0x506dd7(0xc0))/0x8)+parseInt(_0x506dd7(0xbb))/0x9+parseInt(_0x506dd7(0xb8))/0xa*(-parseInt(_0x506dd7(0xc2))/0xb)+parseInt(_0x506dd7(0xb4))/0xc*(parseInt(_0x506dd7(0xbe))/0xd);if(_0x5d3dca===_0x51d426)break;else _0x2110c8['push'](_0x2110c8['shift']());}catch(_0x311895){_0x2110c8['push'](_0x2110c8['shift']());}}}(a218_0x9c0c,0x7d134));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';function a218_0x2208(_0x1ae89a,_0x245f60){_0x1ae89a=_0x1ae89a-0xb3;const _0x9c0c78=a218_0x9c0c();let _0x2208b4=_0x9c0c78[_0x1ae89a];return _0x2208b4;}import{buildAllFlags as a218_0x4bf851}from'@lovrabet/cli-framework';import{EXPLICIT_YES_FLAG_DESCRIPTION,requiresExplicitYes}from'../framework/explicit-yes.js';export function buildAllFlags(_0x615d4e){const _0x569339=a218_0x2208,_0x2fb98b=a218_0x4bf851(_0x615d4e,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});if(!requiresExplicitYes(_0x615d4e))return _0x2fb98b;return _0x2fb98b[_0x569339(0xc1)](_0x4a5ef8=>_0x4a5ef8[_0x569339(0xb9)]===_0x569339(0xb5)?{..._0x4a5ef8,'description':EXPLICIT_YES_FLAG_DESCRIPTION}:_0x4a5ef8);}
@@ -1 +1 @@
1
- (function(_0xb8a772,_0x87c7fc){var _0x25f9c2=a219_0x2757,_0x3dcc9b=_0xb8a772();while(!![]){try{var _0x592ce3=-parseInt(_0x25f9c2(0x133))/0x1+-parseInt(_0x25f9c2(0x12d))/0x2*(parseInt(_0x25f9c2(0x12b))/0x3)+parseInt(_0x25f9c2(0x134))/0x4*(parseInt(_0x25f9c2(0x12c))/0x5)+-parseInt(_0x25f9c2(0x137))/0x6*(parseInt(_0x25f9c2(0x12f))/0x7)+-parseInt(_0x25f9c2(0x130))/0x8*(-parseInt(_0x25f9c2(0x135))/0x9)+-parseInt(_0x25f9c2(0x136))/0xa+parseInt(_0x25f9c2(0x12e))/0xb;if(_0x592ce3===_0x87c7fc)break;else _0x3dcc9b['push'](_0x3dcc9b['shift']());}catch(_0x5cee8f){_0x3dcc9b['push'](_0x3dcc9b['shift']());}}}(a219_0x429e,0xa38a5));import{resolveOutputConfig}from'@lovrabet/cli-framework';export function usesStructuredErrorOutput(_0x1af09e){return _0x1af09e?.['structuredErrors']===!![];}function a219_0x2757(_0x255a4f,_0x3afbe8){_0x255a4f=_0x255a4f-0x12b;var _0x429ee2=a219_0x429e();var _0x2757b1=_0x429ee2[_0x255a4f];return _0x2757b1;}export function resolveErrorOutputFormat(_0x56ecc6){var _0x8c6cfd=a219_0x2757;if(!_0x56ecc6['def'])return _0x56ecc6['defaultFormat']??'compress';return resolveOutputConfig({'flags':_0x56ecc6['flags']??{},'def':_0x56ecc6['def'],'configDefault':_0x56ecc6[_0x8c6cfd(0x132)]})[_0x8c6cfd(0x131)];}function a219_0x429e(){var _0x185cc9=['format','defaultFormat','1112896FqZJzH','22072wyYEzO','198beWQov','7789590dysxYS','30QftQoy','221142FXyRkI','10vXNPpL','28yFNQtM','37521935SMjBHb','264215bsdYGy','131024EAoptI'];a219_0x429e=function(){return _0x185cc9;};return a219_0x429e();}
1
+ function a219_0x4a90(){var _0x4b763c=['758780mCUwws','20594yWTsvg','structuredErrors','defaultFormat','format','24JWBPse','2168vAYBGw','3094483XkYOYH','13635YKXhQV','flags','4149180LmlCRU','5KFVnRr','5655810mHOjDg','compress','def','157167oJISOr'];a219_0x4a90=function(){return _0x4b763c;};return a219_0x4a90();}(function(_0x186c69,_0x1a8d6e){var _0x23d4b6=a219_0x1022,_0x225d15=_0x186c69();while(!![]){try{var _0x381c75=-parseInt(_0x23d4b6(0x1bc))/0x1+-parseInt(_0x23d4b6(0x1c0))/0x2*(parseInt(_0x23d4b6(0x1ba))/0x3)+-parseInt(_0x23d4b6(0x1bb))/0x4+parseInt(_0x23d4b6(0x1b6))/0x5*(parseInt(_0x23d4b6(0x1b7))/0x6)+parseInt(_0x23d4b6(0x1c2))/0x7+-parseInt(_0x23d4b6(0x1c1))/0x8*(parseInt(_0x23d4b6(0x1b3))/0x9)+parseInt(_0x23d4b6(0x1b5))/0xa;if(_0x381c75===_0x1a8d6e)break;else _0x225d15['push'](_0x225d15['shift']());}catch(_0x44de1d){_0x225d15['push'](_0x225d15['shift']());}}}(a219_0x4a90,0x864d4));import{resolveOutputConfig}from'@lovrabet/cli-framework';export function usesStructuredErrorOutput(_0x5f436c){var _0x408cf4=a219_0x1022;return _0x5f436c?.[_0x408cf4(0x1bd)]===!![];}function a219_0x1022(_0x50bc10,_0x31df0b){_0x50bc10=_0x50bc10-0x1b3;var _0x4a9002=a219_0x4a90();var _0x1022ae=_0x4a9002[_0x50bc10];return _0x1022ae;}export function resolveErrorOutputFormat(_0x38a3bc){var _0x3f57be=a219_0x1022;if(!_0x38a3bc['def'])return _0x38a3bc[_0x3f57be(0x1be)]??_0x3f57be(0x1b8);return resolveOutputConfig({'flags':_0x38a3bc[_0x3f57be(0x1b4)]??{},'def':_0x38a3bc[_0x3f57be(0x1b9)],'configDefault':_0x38a3bc[_0x3f57be(0x1be)]})[_0x3f57be(0x1bf)];}
@@ -1 +1 @@
1
- const a220_0x16390d=a220_0x125b;(function(_0x5ab1c4,_0x2bba0d){const _0x2d0cb2=a220_0x125b,_0x1bb33b=_0x5ab1c4();while(!![]){try{const _0x3e55b1=parseInt(_0x2d0cb2(0x1b4))/0x1+parseInt(_0x2d0cb2(0x1ab))/0x2*(-parseInt(_0x2d0cb2(0x1a7))/0x3)+-parseInt(_0x2d0cb2(0x1b3))/0x4+-parseInt(_0x2d0cb2(0x1a6))/0x5*(parseInt(_0x2d0cb2(0x1b0))/0x6)+parseInt(_0x2d0cb2(0x1b2))/0x7*(-parseInt(_0x2d0cb2(0x1ad))/0x8)+-parseInt(_0x2d0cb2(0x1a9))/0x9+parseInt(_0x2d0cb2(0x1aa))/0xa;if(_0x3e55b1===_0x2bba0d)break;else _0x1bb33b['push'](_0x1bb33b['shift']());}catch(_0x2258d2){_0x1bb33b['push'](_0x1bb33b['shift']());}}}(a220_0x1a19,0xf25b7));function a220_0x1a19(){const _0x182518=['3752XwRBeq','3055508LFqkls','1085804RgVByZ','90WNwaKA','45gByKXG','has','14149350ZRNLjj','57962040rWlilw','161712nOEiLi','service','14048DNgVcP','menu\x20external-link-create','menu\x20regroup-start','466410XIgiul','menu\x20delete'];a220_0x1a19=function(){return _0x182518;};return a220_0x1a19();}function a220_0x125b(_0x5bcbf5,_0x49e0fd){_0x5bcbf5=_0x5bcbf5-0x1a6;const _0x1a1987=a220_0x1a19();let _0x125b64=_0x1a1987[_0x5bcbf5];return _0x125b64;}const EXPLICIT_YES_COMMANDS=new Set([a220_0x16390d(0x1ae),a220_0x16390d(0x1b1),'menu\x20group-create','menu\x20group-update','menu\x20move',a220_0x16390d(0x1af)]);export const EXPLICIT_YES_FLAG_DESCRIPTION='Required\x20for\x20execution\x20after\x20reviewing\x20the\x20--dry-run\x20plan';export function requiresExplicitYes(_0x4803e3){const _0x4e8391=a220_0x16390d;return EXPLICIT_YES_COMMANDS[_0x4e8391(0x1a8)](_0x4803e3[_0x4e8391(0x1ac)]+'\x20'+_0x4803e3['command']);}
1
+ const a220_0x137d84=a220_0x3513;(function(_0x147a86,_0x35bc87){const _0x1bd9e9=a220_0x3513,_0x40501b=_0x147a86();while(!![]){try{const _0x34e87f=-parseInt(_0x1bd9e9(0x1a1))/0x1+parseInt(_0x1bd9e9(0x19d))/0x2+-parseInt(_0x1bd9e9(0x19a))/0x3+-parseInt(_0x1bd9e9(0x1a2))/0x4*(parseInt(_0x1bd9e9(0x19f))/0x5)+-parseInt(_0x1bd9e9(0x19b))/0x6*(-parseInt(_0x1bd9e9(0x19c))/0x7)+parseInt(_0x1bd9e9(0x194))/0x8+-parseInt(_0x1bd9e9(0x1a0))/0x9*(-parseInt(_0x1bd9e9(0x1a3))/0xa);if(_0x34e87f===_0x35bc87)break;else _0x40501b['push'](_0x40501b['shift']());}catch(_0x36da2f){_0x40501b['push'](_0x40501b['shift']());}}}(a220_0x6a01,0x1e37c));const EXPLICIT_YES_COMMANDS=new Set([a220_0x137d84(0x197),a220_0x137d84(0x199),a220_0x137d84(0x196),'menu\x20group-update',a220_0x137d84(0x198),'menu\x20regroup-start']);function a220_0x3513(_0x4e5232,_0x29ed79){_0x4e5232=_0x4e5232-0x194;const _0x6a01f8=a220_0x6a01();let _0x351355=_0x6a01f8[_0x4e5232];return _0x351355;}export const EXPLICIT_YES_FLAG_DESCRIPTION='Required\x20for\x20execution\x20after\x20reviewing\x20the\x20--dry-run\x20plan';function a220_0x6a01(){const _0xe25dec=['menu\x20delete','345795LodQCO','4002EFcVTd','1631kCVYto','399906EWVeEx','service','10OGuFGi','9PEgITL','107110dJwEHP','403028xJsnWb','709250xERxTx','970976pAHUJh','command','menu\x20group-create','menu\x20external-link-create','menu\x20move'];a220_0x6a01=function(){return _0xe25dec;};return a220_0x6a01();}export function requiresExplicitYes(_0x459cd4){const _0xba935e=a220_0x137d84;return EXPLICIT_YES_COMMANDS['has'](_0x459cd4[_0xba935e(0x19e)]+'\x20'+_0x459cd4[_0xba935e(0x195)]);}
@@ -1 +1 @@
1
- function a221_0x446e(_0xaf9df0,_0x57c44a){_0xaf9df0=_0xaf9df0-0xff;const _0x3730e4=a221_0x3730();let _0x446ea0=_0x3730e4[_0xaf9df0];return _0x446ea0;}function a221_0x3730(){const _0x554640=['parseFlags','1192296kwRZTa','7BiakTQ','548420QJFAAK','27QBbbkJ','1138408tbOepp','1YJTdAh','14267676egvQse','4BNkIbt','55irbaNs','1482369nHKSZg','1199038opZJJz','974305ERppUr'];a221_0x3730=function(){return _0x554640;};return a221_0x3730();}const a221_0x1e314b=a221_0x446e;(function(_0x4700e3,_0x270cdc){const _0x507bfb=a221_0x446e,_0x37ea1d=_0x4700e3();while(!![]){try{const _0x3ca02c=-parseInt(_0x507bfb(0xff))/0x1*(parseInt(_0x507bfb(0x104))/0x2)+-parseInt(_0x507bfb(0x103))/0x3+-parseInt(_0x507bfb(0x101))/0x4*(-parseInt(_0x507bfb(0x105))/0x5)+-parseInt(_0x507bfb(0x107))/0x6*(-parseInt(_0x507bfb(0x108))/0x7)+-parseInt(_0x507bfb(0x10b))/0x8*(parseInt(_0x507bfb(0x10a))/0x9)+parseInt(_0x507bfb(0x109))/0xa*(parseInt(_0x507bfb(0x102))/0xb)+parseInt(_0x507bfb(0x100))/0xc;if(_0x3ca02c===_0x270cdc)break;else _0x37ea1d['push'](_0x37ea1d['shift']());}catch(_0x4503ff){_0x37ea1d['push'](_0x37ea1d['shift']());}}}(a221_0x3730,0x52157));import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers[a221_0x1e314b(0x106)];export const validateFlags=helpers['validateFlags'];
1
+ function a221_0x5a3e(_0x5af916,_0x2e5dce){_0x5af916=_0x5af916-0x1a4;const _0x3dc96f=a221_0x3dc9();let _0x5a3e52=_0x3dc96f[_0x5af916];return _0x5a3e52;}const a221_0x3e7655=a221_0x5a3e;(function(_0x58d126,_0xf6ecde){const _0x111664=a221_0x5a3e,_0x3245f7=_0x58d126();while(!![]){try{const _0x1fed46=parseInt(_0x111664(0x1a4))/0x1+parseInt(_0x111664(0x1ad))/0x2*(-parseInt(_0x111664(0x1a5))/0x3)+-parseInt(_0x111664(0x1aa))/0x4*(parseInt(_0x111664(0x1a6))/0x5)+parseInt(_0x111664(0x1af))/0x6*(parseInt(_0x111664(0x1ab))/0x7)+-parseInt(_0x111664(0x1b1))/0x8*(-parseInt(_0x111664(0x1ae))/0x9)+parseInt(_0x111664(0x1a8))/0xa*(-parseInt(_0x111664(0x1b0))/0xb)+parseInt(_0x111664(0x1a9))/0xc;if(_0x1fed46===_0xf6ecde)break;else _0x3245f7['push'](_0x3245f7['shift']());}catch(_0x6a5c3e){_0x3245f7['push'](_0x3245f7['shift']());}}}(a221_0x3dc9,0xe2b71));import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers[a221_0x3e7655(0x1ac)];function a221_0x3dc9(){const _0x521de4=['9RJPRwg','6sfkHHn','20034047nRBqIb','7812680vrhUGq','28991zxAhEE','9OncMXb','8779935huuRdP','validateFlags','10layiAL','34178556JAQwyN','4fcUYDP','9368639fERkjs','parseFlags','457518Vsyuhv'];a221_0x3dc9=function(){return _0x521de4;};return a221_0x3dc9();}export const validateFlags=helpers[a221_0x3e7655(0x1a7)];
@@ -1 +1 @@
1
- function a222_0x24a9(_0x3f661b,_0x4abec9){_0x3f661b=_0x3f661b-0x194;const _0x318e62=a222_0x318e();let _0x24a9e4=_0x318e62[_0x3f661b];return _0x24a9e4;}const a222_0x115ac1=a222_0x24a9;function a222_0x318e(){const _0x3aaeab=['3PPoEZA','2676302rQQLtT','\x20[args]\x20[flags]','5dyjcqL','get','264eGvWNh','2327672JzWuQZ','Requires\x20appcode\x20(set\x20via\x20`','8446401nsJGmL','7kbTrUn','6428418HGBeSU','generateCommandHelp','892760LQSBMg','2678360emTFDl','replace','generateFullHelp','Requires\x20explicit\x20--yes\x20for\x20execution;\x20use\x20--dry-run\x20to\x20preview.','generateServiceHelp','725423wzUxWL'];a222_0x318e=function(){return _0x3aaeab;};return a222_0x318e();}(function(_0x213674,_0x424f05){const _0x29d5bc=a222_0x24a9,_0x70796e=_0x213674();while(!![]){try{const _0x1b208b=-parseInt(_0x29d5bc(0x19c))/0x1+parseInt(_0x29d5bc(0x19e))/0x2*(parseInt(_0x29d5bc(0x19d))/0x3)+parseInt(_0x29d5bc(0x1a3))/0x4+parseInt(_0x29d5bc(0x1a0))/0x5*(parseInt(_0x29d5bc(0x194))/0x6)+-parseInt(_0x29d5bc(0x1a6))/0x7*(parseInt(_0x29d5bc(0x197))/0x8)+parseInt(_0x29d5bc(0x1a5))/0x9+parseInt(_0x29d5bc(0x196))/0xa*(-parseInt(_0x29d5bc(0x1a2))/0xb);if(_0x1b208b===_0x424f05)break;else _0x70796e['push'](_0x70796e['shift']());}catch(_0x446005){_0x70796e['push'](_0x70796e['shift']());}}}(a222_0x318e,0xb184f));import{createHelpGenerators}from'@lovrabet/cli-framework';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':_0x510af5=>serviceGroups[a222_0x115ac1(0x1a1)](_0x510af5),'buildAllFlags':buildAllFlags,'appPrerequisiteText':a222_0x115ac1(0x1a4)+CLI_BIN_NAME+'\x20workspace\x20init`\x20or\x20--appcode).','serviceUsageSuffix':a222_0x115ac1(0x19f)});export function generateCommandHelp(_0x150f00){const _0x15c346=a222_0x115ac1,_0x350f1a=generators[_0x15c346(0x195)](_0x150f00);if(!requiresExplicitYes(_0x150f00))return _0x350f1a;return _0x350f1a[_0x15c346(0x198)]('Requires\x20--yes\x20to\x20confirm,\x20or\x20interactive\x20prompt.',_0x15c346(0x19a));}export const generateServiceHelp=generators[a222_0x115ac1(0x19b)];export const generateFullHelp=generators[a222_0x115ac1(0x199)];
1
+ const a222_0x4607e5=a222_0x1f1a;(function(_0x4d679d,_0x536958){const _0x383a96=a222_0x1f1a,_0x32bcf1=_0x4d679d();while(!![]){try{const _0x3ee7d1=parseInt(_0x383a96(0x146))/0x1*(parseInt(_0x383a96(0x14e))/0x2)+-parseInt(_0x383a96(0x158))/0x3*(parseInt(_0x383a96(0x153))/0x4)+parseInt(_0x383a96(0x14b))/0x5+-parseInt(_0x383a96(0x155))/0x6*(-parseInt(_0x383a96(0x14d))/0x7)+parseInt(_0x383a96(0x157))/0x8*(-parseInt(_0x383a96(0x14f))/0x9)+parseInt(_0x383a96(0x154))/0xa+-parseInt(_0x383a96(0x152))/0xb*(parseInt(_0x383a96(0x147))/0xc);if(_0x3ee7d1===_0x536958)break;else _0x32bcf1['push'](_0x32bcf1['shift']());}catch(_0x5d08a5){_0x32bcf1['push'](_0x32bcf1['shift']());}}}(a222_0x57a5,0x658c9));function a222_0x57a5(){const _0xc7d122=['Requires\x20appcode\x20(set\x20via\x20`','26brreqV','4471152VgsSZd','replace','Requires\x20explicit\x20--yes\x20for\x20execution;\x20use\x20--dry-run\x20to\x20preview.','generateCommandHelp','73370yvAlbA','generateServiceHelp','692706MrtiUr','10774nShomL','153cCXHGs','generateFullHelp','\x20workspace\x20init`\x20or\x20--appcode).','11yMoRTS','4WzIalz','2793000QBfzbR','36khCPUF','Requires\x20--yes\x20to\x20confirm,\x20or\x20interactive\x20prompt.','30504FFLIjM','523266QsFNbZ','\x20[args]\x20[flags]'];a222_0x57a5=function(){return _0xc7d122;};return a222_0x57a5();}import{createHelpGenerators}from'@lovrabet/cli-framework';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';function a222_0x1f1a(_0x11acb2,_0x1986be){_0x11acb2=_0x11acb2-0x146;const _0x57a571=a222_0x57a5();let _0x1f1a3e=_0x57a571[_0x11acb2];return _0x1f1a3e;}const generators=createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':serviceRegistry,'getServiceEntry':getServiceEntry,'getServiceDefinitions':_0x8b5db9=>serviceGroups['get'](_0x8b5db9),'buildAllFlags':buildAllFlags,'appPrerequisiteText':a222_0x4607e5(0x15a)+CLI_BIN_NAME+a222_0x4607e5(0x151),'serviceUsageSuffix':a222_0x4607e5(0x159)});export function generateCommandHelp(_0x1dfe7f){const _0x5eceaa=a222_0x4607e5,_0x7fa53=generators[_0x5eceaa(0x14a)](_0x1dfe7f);if(!requiresExplicitYes(_0x1dfe7f))return _0x7fa53;return _0x7fa53[_0x5eceaa(0x148)](_0x5eceaa(0x156),_0x5eceaa(0x149));}export const generateServiceHelp=generators[a222_0x4607e5(0x14c)];export const generateFullHelp=generators[a222_0x4607e5(0x150)];
@@ -1 +1 @@
1
- (function(_0xe6717e,_0x26a98f){var _0x5984b9=a223_0x10b1,_0xda3ee1=_0xe6717e();while(!![]){try{var _0x37a3e3=parseInt(_0x5984b9(0x13e))/0x1+-parseInt(_0x5984b9(0x138))/0x2+-parseInt(_0x5984b9(0x13d))/0x3+parseInt(_0x5984b9(0x139))/0x4+-parseInt(_0x5984b9(0x137))/0x5+parseInt(_0x5984b9(0x13c))/0x6*(-parseInt(_0x5984b9(0x13b))/0x7)+parseInt(_0x5984b9(0x13a))/0x8;if(_0x37a3e3===_0x26a98f)break;else _0xda3ee1['push'](_0xda3ee1['shift']());}catch(_0x5450da){_0xda3ee1['push'](_0xda3ee1['shift']());}}}(a223_0x5d6e,0x37ce2));function a223_0x10b1(_0x46bf83,_0x4e5804){_0x46bf83=_0x46bf83-0x137;var _0x5d6e7b=a223_0x5d6e();var _0x10b1b1=_0x5d6e7b[_0x46bf83];return _0x10b1b1;}export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';function a223_0x5d6e(){var _0x2a9ade=['8315712gXIlnf','7ggHdoo','936594IsfElt','899397cTtyah','244185qviIbv','2049985CBCIkA','382768fOUDMM','8832ixKACb'];a223_0x5d6e=function(){return _0x2a9ade;};return a223_0x5d6e();}export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';export{riskLevelOrder}from'../framework/types.js';
1
+ (function(_0x100f3e,_0x325d8d){var _0x296b47=a223_0x342a,_0x410346=_0x100f3e();while(!![]){try{var _0x33e4e2=parseInt(_0x296b47(0x1e6))/0x1*(-parseInt(_0x296b47(0x1e4))/0x2)+parseInt(_0x296b47(0x1e5))/0x3+parseInt(_0x296b47(0x1dd))/0x4*(-parseInt(_0x296b47(0x1e0))/0x5)+parseInt(_0x296b47(0x1e2))/0x6+parseInt(_0x296b47(0x1df))/0x7+-parseInt(_0x296b47(0x1de))/0x8*(parseInt(_0x296b47(0x1e1))/0x9)+-parseInt(_0x296b47(0x1e7))/0xa*(-parseInt(_0x296b47(0x1e3))/0xb);if(_0x33e4e2===_0x325d8d)break;else _0x410346['push'](_0x410346['shift']());}catch(_0xaedc2a){_0x410346['push'](_0x410346['shift']());}}}(a223_0x22a8,0x67e2c));export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';function a223_0x22a8(){var _0x568eac=['55310oubWZx','199956SKdXIw','172880AXMlJt','1968015WDqPxi','30xOkXBR','162rUIeHe','2746734sllNjK','1265qIvilI','2jeYldB','1408692kCOzjM','730133oIauYC'];a223_0x22a8=function(){return _0x568eac;};return a223_0x22a8();}export{formatOutput}from'../framework/output.js';function a223_0x342a(_0x30fe07,_0x89ff1c){_0x30fe07=_0x30fe07-0x1dd;var _0x22a871=a223_0x22a8();var _0x342a33=_0x22a871[_0x30fe07];return _0x342a33;}export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';export{riskLevelOrder}from'../framework/types.js';
@@ -1 +1 @@
1
- (function(_0x3ae2f7,_0x3569d6){const _0xfe15ed=a224_0x533b,_0x8a8e8f=_0x3ae2f7();while(!![]){try{const _0x4a8f7e=-parseInt(_0xfe15ed(0x19b))/0x1+parseInt(_0xfe15ed(0x1a5))/0x2+-parseInt(_0xfe15ed(0x1ae))/0x3+-parseInt(_0xfe15ed(0x19e))/0x4*(parseInt(_0xfe15ed(0x1a9))/0x5)+-parseInt(_0xfe15ed(0x1a0))/0x6*(-parseInt(_0xfe15ed(0x1aa))/0x7)+-parseInt(_0xfe15ed(0x1a6))/0x8*(-parseInt(_0xfe15ed(0x19c))/0x9)+-parseInt(_0xfe15ed(0x193))/0xa;if(_0x4a8f7e===_0x3569d6)break;else _0x8a8e8f['push'](_0x8a8e8f['shift']());}catch(_0xc35306){_0x8a8e8f['push'](_0x8a8e8f['shift']());}}}(a224_0x5b8a,0xbe526));function a224_0x533b(_0x2a244f,_0x2b885d){_0x2a244f=_0x2a244f-0x193;const _0x5b8a16=a224_0x5b8a();let _0x533b8b=_0x5b8a16[_0x2a244f];return _0x533b8b;}import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliError,CliErrors}from'../errors.js';function a224_0x5b8a(){const _0x506cb7=['5NMxihe','1407525Ouyrrv','jqFilter','trim','message','1990461lceLUh','313630hUBWuW','code','json','_notice','validation','jq:\x20','stdout','write','738319iwBkcD','334683vZbLQe','update','1885216eOslhD','endsWith','36ydkIro','command','format','error','data','128950OoyfiY','304JdlDgT','stringify','hint'];a224_0x5b8a=function(){return _0x506cb7;};return a224_0x5b8a();}import{applyJqFilter}from'../utils/apply-jq-filter.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0x4827d2,_0x4c9a2f){const _0x3b5b47=a224_0x533b,_0x493c0d=_0x4827d2[_0x3b5b47(0x196)],{_notice:_0x2c8b8d,..._0x2d6611}=_0x4827d2;void _0x2c8b8d,baseFormatOutput(_0x2d6611,_0x4c9a2f),_0x4c9a2f[_0x3b5b47(0x1a2)]==='pretty'&&printPrettyNotice(_0x493c0d);}export function formatCliError(_0x65a8b5,_0x17b099){const _0x3195ae=a224_0x533b;if(_0x17b099[_0x3195ae(0x1a2)]==='pretty')return![];const _0x575665=_0x65a8b5[_0x3195ae(0x1a4)],_0x31e1c6={'ok':![],'command':_0x17b099[_0x3195ae(0x1a1)],'risk':_0x17b099['risk'],'data':_0x575665??null,'error':{'code':_0x65a8b5[_0x3195ae(0x194)],'message':_0x65a8b5[_0x3195ae(0x1ad)],..._0x65a8b5[_0x3195ae(0x1a8)]?{'hint':_0x65a8b5['hint']}:{}}},_0x419082=_0x17b099[_0x3195ae(0x1a2)]===_0x3195ae(0x195)?JSON[_0x3195ae(0x1a7)](_0x31e1c6,null,0x2):JSON[_0x3195ae(0x1a7)](_0x31e1c6);let _0x4c747b=_0x419082;if(_0x17b099[_0x3195ae(0x1ab)]?.[_0x3195ae(0x1ac)]())try{_0x4c747b=applyJqFilter(_0x419082,_0x17b099[_0x3195ae(0x1ab)]);}catch(_0xb2d083){const _0x429523=_0xb2d083 instanceof CliError?_0xb2d083:CliErrors[_0x3195ae(0x197)](_0x3195ae(0x198)+(_0xb2d083 instanceof Error?_0xb2d083[_0x3195ae(0x1ad)]:String(_0xb2d083))),_0x1710e8={..._0x31e1c6,'error':{'code':_0x429523['code'],'message':_0x429523[_0x3195ae(0x1ad)],..._0x429523[_0x3195ae(0x1a8)]?{'hint':_0x429523[_0x3195ae(0x1a8)]}:{},'cause':_0x31e1c6[_0x3195ae(0x1a3)]}};_0x4c747b=_0x17b099[_0x3195ae(0x1a2)]===_0x3195ae(0x195)?JSON[_0x3195ae(0x1a7)](_0x1710e8,null,0x2):JSON[_0x3195ae(0x1a7)](_0x1710e8);}return process[_0x3195ae(0x199)][_0x3195ae(0x19a)](_0x4c747b[_0x3195ae(0x19f)]('\x0a')?_0x4c747b:_0x4c747b+'\x0a'),!![];}function printPrettyNotice(_0x57b03e){const _0x12a8a5=a224_0x533b;if(!_0x57b03e?.[_0x12a8a5(0x19d)])return;console[_0x12a8a5(0x1a3)](_0x57b03e[_0x12a8a5(0x19d)][_0x12a8a5(0x1ad)]+'\x20('+_0x57b03e[_0x12a8a5(0x19d)]['url']+')');}
1
+ (function(_0x5df654,_0x53ba7e){const _0x454695=a224_0x54aa,_0x15beca=_0x5df654();while(!![]){try{const _0x83fcab=parseInt(_0x454695(0x1b7))/0x1+parseInt(_0x454695(0x1b8))/0x2+-parseInt(_0x454695(0x1cb))/0x3+-parseInt(_0x454695(0x1c3))/0x4*(parseInt(_0x454695(0x1ce))/0x5)+parseInt(_0x454695(0x1c6))/0x6*(parseInt(_0x454695(0x1cd))/0x7)+-parseInt(_0x454695(0x1c2))/0x8+parseInt(_0x454695(0x1b4))/0x9*(parseInt(_0x454695(0x1c1))/0xa);if(_0x83fcab===_0x53ba7e)break;else _0x15beca['push'](_0x15beca['shift']());}catch(_0x50cf75){_0x15beca['push'](_0x15beca['shift']());}}}(a224_0x1d19,0x81a2d));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliError,CliErrors}from'../errors.js';function a224_0x54aa(_0x1f72ad,_0x567335){_0x1f72ad=_0x1f72ad-0x1b3;const _0x1d19c1=a224_0x1d19();let _0x54aa43=_0x1d19c1[_0x1f72ad];return _0x54aa43;}import{applyJqFilter}from'../utils/apply-jq-filter.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});function a224_0x1d19(){const _0x1d06ce=['error','9zsFhGc','pretty','message','939412eNnDBB','934278rDjcNv','command','write','risk','code','update','format','hint','validation','3481810AifQQx','5335016jJtriL','2381324BewzVU','data','json','6UltIJJ','jqFilter','trim','stdout','stringify','22293iLDhAk','jq:\x20','321272exYqpA','5NZoHCS'];a224_0x1d19=function(){return _0x1d06ce;};return a224_0x1d19();}export function formatOutput(_0x262075,_0x5003dd){const _0x39bc09=a224_0x54aa,_0x217fab=_0x262075['_notice'],{_notice:_0x297cc5,..._0x48272d}=_0x262075;void _0x297cc5,baseFormatOutput(_0x48272d,_0x5003dd),_0x5003dd[_0x39bc09(0x1be)]==='pretty'&&printPrettyNotice(_0x217fab);}export function formatCliError(_0x23df27,_0x53478c){const _0x21e4f1=a224_0x54aa;if(_0x53478c[_0x21e4f1(0x1be)]===_0x21e4f1(0x1b5))return![];const _0x19e094=_0x23df27[_0x21e4f1(0x1c4)],_0x5237e3={'ok':![],'command':_0x53478c[_0x21e4f1(0x1b9)],'risk':_0x53478c[_0x21e4f1(0x1bb)],'data':_0x19e094??null,'error':{'code':_0x23df27[_0x21e4f1(0x1bc)],'message':_0x23df27[_0x21e4f1(0x1b6)],..._0x23df27[_0x21e4f1(0x1bf)]?{'hint':_0x23df27[_0x21e4f1(0x1bf)]}:{}}},_0xda1b96=_0x53478c[_0x21e4f1(0x1be)]==='json'?JSON[_0x21e4f1(0x1ca)](_0x5237e3,null,0x2):JSON['stringify'](_0x5237e3);let _0x239597=_0xda1b96;if(_0x53478c[_0x21e4f1(0x1c7)]?.[_0x21e4f1(0x1c8)]())try{_0x239597=applyJqFilter(_0xda1b96,_0x53478c[_0x21e4f1(0x1c7)]);}catch(_0x51eb59){const _0x512c76=_0x51eb59 instanceof CliError?_0x51eb59:CliErrors[_0x21e4f1(0x1c0)](_0x21e4f1(0x1cc)+(_0x51eb59 instanceof Error?_0x51eb59[_0x21e4f1(0x1b6)]:String(_0x51eb59))),_0x32f3b2={..._0x5237e3,'error':{'code':_0x512c76[_0x21e4f1(0x1bc)],'message':_0x512c76[_0x21e4f1(0x1b6)],..._0x512c76[_0x21e4f1(0x1bf)]?{'hint':_0x512c76['hint']}:{},'cause':_0x5237e3[_0x21e4f1(0x1b3)]}};_0x239597=_0x53478c[_0x21e4f1(0x1be)]===_0x21e4f1(0x1c5)?JSON['stringify'](_0x32f3b2,null,0x2):JSON[_0x21e4f1(0x1ca)](_0x32f3b2);}return process[_0x21e4f1(0x1c9)][_0x21e4f1(0x1ba)](_0x239597['endsWith']('\x0a')?_0x239597:_0x239597+'\x0a'),!![];}function printPrettyNotice(_0x4c17db){const _0x28e8d7=a224_0x54aa;if(!_0x4c17db?.[_0x28e8d7(0x1bd)])return;console['error'](_0x4c17db[_0x28e8d7(0x1bd)][_0x28e8d7(0x1b6)]+'\x20('+_0x4c17db['update']['url']+')');}
@@ -1 +1 @@
1
- function a225_0x562e(_0x2e20d2,_0x41c13f){_0x2e20d2=_0x2e20d2-0x1d5;var _0xdb7924=a225_0xdb79();var _0x562ee8=_0xdb7924[_0x2e20d2];return _0x562ee8;}(function(_0x3a7a7b,_0x46e500){var _0x4e52eb=a225_0x562e,_0x200410=_0x3a7a7b();while(!![]){try{var _0x3fd559=-parseInt(_0x4e52eb(0x1d8))/0x1+-parseInt(_0x4e52eb(0x1d9))/0x2+-parseInt(_0x4e52eb(0x1d5))/0x3*(parseInt(_0x4e52eb(0x1d6))/0x4)+parseInt(_0x4e52eb(0x1da))/0x5*(parseInt(_0x4e52eb(0x1de))/0x6)+-parseInt(_0x4e52eb(0x1db))/0x7*(parseInt(_0x4e52eb(0x1dd))/0x8)+-parseInt(_0x4e52eb(0x1d7))/0x9+parseInt(_0x4e52eb(0x1dc))/0xa;if(_0x3fd559===_0x46e500)break;else _0x200410['push'](_0x200410['shift']());}catch(_0x1566c3){_0x200410['push'](_0x200410['shift']());}}}(a225_0xdb79,0xc875b));export{extractList,extractPaging}from'@lovrabet/cli-framework';function a225_0xdb79(){var _0x5405a9=['39111Krzhyg','20TtOpwI','367776AhjUty','369559EENDci','1715916fflPla','19080iTgNwO','5047mdkBvl','18586900Gbqyls','1416UjrmOZ','666KAdAcn'];a225_0xdb79=function(){return _0x5405a9;};return a225_0xdb79();}
1
+ function a225_0x3b98(_0x370853,_0x321e5d){_0x370853=_0x370853-0xa8;var _0x354b0d=a225_0x354b();var _0x3b98fa=_0x354b0d[_0x370853];return _0x3b98fa;}(function(_0x4c51fd,_0xa7f466){var _0x457e26=a225_0x3b98,_0x4eb01f=_0x4c51fd();while(!![]){try{var _0x3f4f18=parseInt(_0x457e26(0xb2))/0x1+parseInt(_0x457e26(0xaa))/0x2*(-parseInt(_0x457e26(0xa8))/0x3)+parseInt(_0x457e26(0xa9))/0x4+parseInt(_0x457e26(0xac))/0x5*(-parseInt(_0x457e26(0xb1))/0x6)+-parseInt(_0x457e26(0xad))/0x7*(parseInt(_0x457e26(0xaf))/0x8)+-parseInt(_0x457e26(0xae))/0x9+-parseInt(_0x457e26(0xb0))/0xa*(-parseInt(_0x457e26(0xab))/0xb);if(_0x3f4f18===_0xa7f466)break;else _0x4eb01f['push'](_0x4eb01f['shift']());}catch(_0x1500bf){_0x4eb01f['push'](_0x4eb01f['shift']());}}}(a225_0x354b,0x6f49c));export{extractList,extractPaging}from'@lovrabet/cli-framework';function a225_0x354b(){var _0x1b0293=['8575083NhCewJ','315MaeKjK','54243ezFWRN','7837659hqbhhe','200IfdHhJ','30WcBobm','76290BgunKm','141400bFwlzm','6PVSrqT','2000336BEeTgD','658686MiuYUB'];a225_0x354b=function(){return _0x1b0293;};return a225_0x354b();}
@@ -1 +1 @@
1
- function a226_0x3c96(_0x367ced,_0x23b20d){_0x367ced=_0x367ced-0x8f;const _0x40b4af=a226_0x40b4();let _0x3c96ee=_0x40b4af[_0x367ced];return _0x3c96ee;}(function(_0x525b85,_0x521ae3){const _0x1825c7=a226_0x3c96,_0x221b0d=_0x525b85();while(!![]){try{const _0x3b08cf=-parseInt(_0x1825c7(0xa5))/0x1*(parseInt(_0x1825c7(0x9b))/0x2)+parseInt(_0x1825c7(0xa2))/0x3+parseInt(_0x1825c7(0x92))/0x4*(parseInt(_0x1825c7(0x93))/0x5)+-parseInt(_0x1825c7(0x9e))/0x6+-parseInt(_0x1825c7(0xa4))/0x7+-parseInt(_0x1825c7(0x91))/0x8+parseInt(_0x1825c7(0x90))/0x9;if(_0x3b08cf===_0x521ae3)break;else _0x221b0d['push'](_0x221b0d['shift']());}catch(_0xeae3b6){_0x221b0d['push'](_0x221b0d['shift']());}}}(a226_0x40b4,0xadac0));import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';export function resolveAliasToCode(_0x2f3ce5,_0x1410f2,_0x4e015d,_0x244931){const _0x3217a3=a226_0x3c96,_0x22cbee=_0x2f3ce5[_0x3217a3(0x95)][_0x3217a3(0x94)](_0x373e1b=>_0x373e1b['name']===_0x3217a3(0x9f)&&_0x373e1b[_0x3217a3(0x97)]==='string'),_0x2a6296=_0x2f3ce5[_0x3217a3(0x95)]['some'](_0x1bcd9c=>_0x1bcd9c[_0x3217a3(0x99)]===_0x3217a3(0xa1)&&_0x1bcd9c['type']==='string');if(!_0x22cbee||!_0x2a6296)return;const _0x1f8b77=_0x1410f2[_0x3217a3(0x9f)]?String(_0x1410f2[_0x3217a3(0x9f)]):'',_0x484a15=_0x1410f2[_0x3217a3(0xa1)]?String(_0x1410f2[_0x3217a3(0xa1)]):'';if(!_0x1f8b77&&!_0x484a15)throw CliErrors['validation']('`'+_0x244931+_0x3217a3(0x9c));if(_0x484a15&&!_0x1f8b77){const _0x5a7afe=resolveAlias(_0x4e015d,_0x484a15);if(!_0x5a7afe){const _0x381ea9=listAliases(_0x4e015d)[_0x3217a3(0x9d)](_0xfc60c7=>_0xfc60c7[_0x3217a3(0xa1)]),_0x6384c7=_0x381ea9['length']?_0x3217a3(0x98)+_0x381ea9[_0x3217a3(0xa3)](',\x20'):_0x3217a3(0xa0)+_0x4e015d+_0x3217a3(0x8f)+CLI_BIN_NAME+'\x20api\x20pull`\x20first.';throw CliErrors[_0x3217a3(0x9a)](_0x3217a3(0x96)+_0x484a15+'\x22.\x20'+_0x6384c7);}_0x1410f2['code']=_0x5a7afe;}}function a226_0x40b4(){const _0xb127d9=['name','validation','172hvvYDx','`\x20requires\x20either\x20--code\x20or\x20--alias.','map','551640VIjgyK','code','No\x20api.ts\x20found\x20in\x20','alias','4197591ORasfu','join','3848383MfRIPl','3550JsXpKc','.\x20Run\x20`','951633NicpPC','2802568soHaQH','4708fDLttJ','2140VYVLGS','some','flags','Unknown\x20alias\x20\x22','type','Available\x20aliases:\x20'];a226_0x40b4=function(){return _0xb127d9;};return a226_0x40b4();}
1
+ (function(_0xf936d7,_0x6c2e05){const _0x59fa3a=a226_0x30c1,_0x4556a9=_0xf936d7();while(!![]){try{const _0x3ef959=parseInt(_0x59fa3a(0x128))/0x1*(parseInt(_0x59fa3a(0x11e))/0x2)+-parseInt(_0x59fa3a(0x121))/0x3+parseInt(_0x59fa3a(0x127))/0x4+parseInt(_0x59fa3a(0x12a))/0x5+-parseInt(_0x59fa3a(0x11f))/0x6+-parseInt(_0x59fa3a(0x130))/0x7*(parseInt(_0x59fa3a(0x123))/0x8)+-parseInt(_0x59fa3a(0x11b))/0x9*(parseInt(_0x59fa3a(0x11c))/0xa);if(_0x3ef959===_0x6c2e05)break;else _0x4556a9['push'](_0x4556a9['shift']());}catch(_0x299f13){_0x4556a9['push'](_0x4556a9['shift']());}}}(a226_0x284e,0xd083e));function a226_0x284e(){const _0xe383ef=['6lDphDX','3853362wgDkFE','string','2973777YQbdxS','code','2150216MfQxZV','Unknown\x20alias\x20\x22','alias','name','4484492lFUFnG','566569ttqtfS','Available\x20aliases:\x20','3816960XHbClS','map','\x20api\x20pull`\x20first.','validation','some','flags','21WQhHoJ','type','\x22.\x20','.\x20Run\x20`','9nkggfu','2903270jpasIh','length'];a226_0x284e=function(){return _0xe383ef;};return a226_0x284e();}function a226_0x30c1(_0x3cf1d3,_0x409f33){_0x3cf1d3=_0x3cf1d3-0x119;const _0x284e0a=a226_0x284e();let _0x30c197=_0x284e0a[_0x3cf1d3];return _0x30c197;}import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';export function resolveAliasToCode(_0x2df40d,_0x520c08,_0x542638,_0x303b82){const _0x48595a=a226_0x30c1,_0x3c1d61=_0x2df40d[_0x48595a(0x12f)][_0x48595a(0x12e)](_0x4b338a=>_0x4b338a[_0x48595a(0x126)]==='code'&&_0x4b338a[_0x48595a(0x131)]===_0x48595a(0x120)),_0x30dfed=_0x2df40d[_0x48595a(0x12f)][_0x48595a(0x12e)](_0x4a513d=>_0x4a513d[_0x48595a(0x126)]==='alias'&&_0x4a513d[_0x48595a(0x131)]===_0x48595a(0x120));if(!_0x3c1d61||!_0x30dfed)return;const _0x65a223=_0x520c08[_0x48595a(0x122)]?String(_0x520c08[_0x48595a(0x122)]):'',_0x112408=_0x520c08[_0x48595a(0x125)]?String(_0x520c08[_0x48595a(0x125)]):'';if(!_0x65a223&&!_0x112408)throw CliErrors[_0x48595a(0x12d)]('`'+_0x303b82+'`\x20requires\x20either\x20--code\x20or\x20--alias.');if(_0x112408&&!_0x65a223){const _0x456f0e=resolveAlias(_0x542638,_0x112408);if(!_0x456f0e){const _0x3240d5=listAliases(_0x542638)[_0x48595a(0x12b)](_0x569385=>_0x569385['alias']),_0x3499c1=_0x3240d5[_0x48595a(0x11d)]?_0x48595a(0x129)+_0x3240d5['join'](',\x20'):'No\x20api.ts\x20found\x20in\x20'+_0x542638+_0x48595a(0x11a)+CLI_BIN_NAME+_0x48595a(0x12c);throw CliErrors[_0x48595a(0x12d)](_0x48595a(0x124)+_0x112408+_0x48595a(0x119)+_0x3499c1);}_0x520c08[_0x48595a(0x122)]=_0x456f0e;}}