@lovrabet/rabetbase-cli 2.5.0 → 2.5.1-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 (332) 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/api/generate-sdk-config-file.js +1 -1
  5. package/lib/auth/auth-server-ui.js +1 -1
  6. package/lib/auth/auth-server.d.ts +7 -0
  7. package/lib/auth/auth-server.js +1 -1
  8. package/lib/auth/constant.js +1 -1
  9. package/lib/auth/get-cookie.js +1 -1
  10. package/lib/auth/get-session-user.js +1 -1
  11. package/lib/auth/is-session-valid.js +1 -1
  12. package/lib/auth/login-success-html.js +1 -1
  13. package/lib/auth/logout.js +1 -1
  14. package/lib/cli-flags.js +1 -1
  15. package/lib/cli.js +1 -1
  16. package/lib/commands/api/generate.js +1 -1
  17. package/lib/commands/api/index.js +1 -1
  18. package/lib/commands/api/list.js +1 -1
  19. package/lib/commands/api/pull.js +1 -1
  20. package/lib/commands/api/shared.js +1 -1
  21. package/lib/commands/app/index.js +1 -1
  22. package/lib/commands/app/list.js +1 -1
  23. package/lib/commands/app/members-list.js +1 -1
  24. package/lib/commands/app/remote-directory.js +1 -1
  25. package/lib/commands/app/shared.js +1 -1
  26. package/lib/commands/app-config/delete.js +1 -1
  27. package/lib/commands/app-config/get.js +1 -1
  28. package/lib/commands/app-config/index.js +1 -1
  29. package/lib/commands/app-config/list.js +1 -1
  30. package/lib/commands/app-config/set.js +1 -1
  31. package/lib/commands/app-config/shared.js +1 -1
  32. package/lib/commands/auth/index.js +1 -1
  33. package/lib/commands/bff/create.js +1 -1
  34. package/lib/commands/bff/delete.js +1 -1
  35. package/lib/commands/bff/detail.js +1 -1
  36. package/lib/commands/bff/index.js +1 -1
  37. package/lib/commands/bff/list.js +1 -1
  38. package/lib/commands/bff/pull.js +1 -1
  39. package/lib/commands/bff/push.js +1 -1
  40. package/lib/commands/bff/status.js +1 -1
  41. package/lib/commands/cli-skill/index.js +1 -1
  42. package/lib/commands/cli-update.js +1 -1
  43. package/lib/commands/codegen/index.js +1 -1
  44. package/lib/commands/codegen/sdk.js +1 -1
  45. package/lib/commands/codegen/sql.js +1 -1
  46. package/lib/commands/common/app-registry.js +1 -1
  47. package/lib/commands/common/app-selector.js +1 -1
  48. package/lib/commands/common/async-task.js +1 -1
  49. package/lib/commands/common/dry-run.js +1 -1
  50. package/lib/commands/common/flags.js +1 -1
  51. package/lib/commands/common/local-file.js +1 -1
  52. package/lib/commands/common/validate.js +1 -1
  53. package/lib/commands/config/delete.js +1 -1
  54. package/lib/commands/config/get.js +1 -1
  55. package/lib/commands/config/index.js +1 -1
  56. package/lib/commands/config/init.d.ts +1 -1
  57. package/lib/commands/config/init.js +1 -1
  58. package/lib/commands/config/list.js +1 -1
  59. package/lib/commands/config/set.js +1 -1
  60. package/lib/commands/config/shared.js +1 -1
  61. package/lib/commands/dataset/business-group-update.js +1 -1
  62. package/lib/commands/dataset/business-groups.js +1 -1
  63. package/lib/commands/dataset/capability.js +1 -1
  64. package/lib/commands/dataset/delete.js +1 -1
  65. package/lib/commands/dataset/detail.js +1 -1
  66. package/lib/commands/dataset/extend-update.js +1 -1
  67. package/lib/commands/dataset/field-restore.d.ts +107 -0
  68. package/lib/commands/dataset/field-restore.js +1 -0
  69. package/lib/commands/dataset/field-update.js +1 -1
  70. package/lib/commands/dataset/generate.js +1 -1
  71. package/lib/commands/dataset/index.js +1 -1
  72. package/lib/commands/dataset/list.js +1 -1
  73. package/lib/commands/dataset/operations.js +1 -1
  74. package/lib/commands/dataset/relation-audit.js +1 -1
  75. package/lib/commands/dataset/relation-create.js +1 -1
  76. package/lib/commands/dataset/relation-delete.js +1 -1
  77. package/lib/commands/dataset/relation-shared.js +1 -1
  78. package/lib/commands/dataset/relation-update.js +1 -1
  79. package/lib/commands/dataset/relations.js +1 -1
  80. package/lib/commands/dataset/rename.js +1 -1
  81. package/lib/commands/dataset/restore.js +1 -1
  82. package/lib/commands/dataset/user-deleted-field-list.d.ts +36 -0
  83. package/lib/commands/dataset/user-deleted-field-list.js +1 -0
  84. package/lib/commands/db/analysis-batching.js +1 -1
  85. package/lib/commands/db/analyze-batch-plan.js +1 -1
  86. package/lib/commands/db/analyze-cancel.js +1 -1
  87. package/lib/commands/db/analyze-start.js +1 -1
  88. package/lib/commands/db/analyze-status.js +1 -1
  89. package/lib/commands/db/create.js +1 -1
  90. package/lib/commands/db/delete.js +1 -1
  91. package/lib/commands/db/detail.js +1 -1
  92. package/lib/commands/db/diff-refresh-start.js +1 -1
  93. package/lib/commands/db/diff-refresh-status.js +1 -1
  94. package/lib/commands/db/diff.js +1 -1
  95. package/lib/commands/db/index.js +1 -1
  96. package/lib/commands/db/list.js +1 -1
  97. package/lib/commands/db/shared.js +1 -1
  98. package/lib/commands/db/table-diff-shared.js +1 -1
  99. package/lib/commands/db/tables.js +1 -1
  100. package/lib/commands/db/test.js +1 -1
  101. package/lib/commands/db/update.js +1 -1
  102. package/lib/commands/deployment/auto-sync.d.ts +28 -0
  103. package/lib/commands/deployment/auto-sync.js +1 -0
  104. package/lib/commands/deployment/index.d.ts +2 -0
  105. package/lib/commands/deployment/index.js +1 -0
  106. package/lib/commands/deployment/sync.d.ts +2 -0
  107. package/lib/commands/deployment/sync.js +1 -0
  108. package/lib/commands/doctor.js +1 -1
  109. package/lib/commands/file/index.js +1 -1
  110. package/lib/commands/issue/index.js +1 -1
  111. package/lib/commands/issue/nudge.js +1 -1
  112. package/lib/commands/issue/report.js +1 -1
  113. package/lib/commands/issue/shared.js +1 -1
  114. package/lib/commands/kb/create.js +1 -1
  115. package/lib/commands/kb/delete.js +1 -1
  116. package/lib/commands/kb/detail.js +1 -1
  117. package/lib/commands/kb/index.js +1 -1
  118. package/lib/commands/kb/list.js +1 -1
  119. package/lib/commands/kb/search.js +1 -1
  120. package/lib/commands/kb/shared.js +1 -1
  121. package/lib/commands/kb/update.js +1 -1
  122. package/lib/commands/logs/index.js +1 -1
  123. package/lib/commands/menu/asset-update.js +1 -1
  124. package/lib/commands/menu/delete.js +1 -1
  125. package/lib/commands/menu/external-link-create.js +1 -1
  126. package/lib/commands/menu/external-link-update.js +1 -1
  127. package/lib/commands/menu/group-create.js +1 -1
  128. package/lib/commands/menu/group-update.js +1 -1
  129. package/lib/commands/menu/index.js +1 -1
  130. package/lib/commands/menu/list.js +1 -1
  131. package/lib/commands/menu/move.js +1 -1
  132. package/lib/commands/menu/regroup-start.js +1 -1
  133. package/lib/commands/menu/rename.js +1 -1
  134. package/lib/commands/menu/shared/compare-table.js +1 -1
  135. package/lib/commands/menu/shared/delete-plan.js +1 -1
  136. package/lib/commands/menu/shared/facts.js +1 -1
  137. package/lib/commands/menu/shared/index.js +1 -1
  138. package/lib/commands/menu/shared/inquirer.js +1 -1
  139. package/lib/commands/menu/shared/local-pages.js +1 -1
  140. package/lib/commands/menu/shared/logic.js +1 -1
  141. package/lib/commands/menu/shared/mutations.js +1 -1
  142. package/lib/commands/menu/shared/service.js +1 -1
  143. package/lib/commands/menu/shared/sync-core.js +1 -1
  144. package/lib/commands/menu/shared/update-core.js +1 -1
  145. package/lib/commands/menu/shared/valid-url.js +1 -1
  146. package/lib/commands/menu/sync.js +1 -1
  147. package/lib/commands/menu/visibility-update.js +1 -1
  148. package/lib/commands/notification/config-create.js +1 -1
  149. package/lib/commands/notification/config-delete.js +1 -1
  150. package/lib/commands/notification/config-list.js +1 -1
  151. package/lib/commands/notification/config-update.js +1 -1
  152. package/lib/commands/notification/index.js +1 -1
  153. package/lib/commands/notification/shared.js +1 -1
  154. package/lib/commands/ocr/index.js +1 -1
  155. package/lib/commands/page/create.js +1 -1
  156. package/lib/commands/page/custom/detail.js +1 -1
  157. package/lib/commands/page/custom/list.js +1 -1
  158. package/lib/commands/page/custom/publish.js +1 -1
  159. package/lib/commands/page/custom/shared.js +1 -1
  160. package/lib/commands/page/custom/syntax.js +1 -1
  161. package/lib/commands/page/custom/template.js +1 -1
  162. package/lib/commands/page/custom/update.js +1 -1
  163. package/lib/commands/page/data-list-status.js +1 -1
  164. package/lib/commands/page/generate-start.js +1 -1
  165. package/lib/commands/page/generate-status.js +1 -1
  166. package/lib/commands/page/index.js +1 -1
  167. package/lib/commands/page/pull.js +1 -1
  168. package/lib/commands/page/push.js +1 -1
  169. package/lib/commands/page/relation-audit.js +1 -1
  170. package/lib/commands/page/restore.js +1 -1
  171. package/lib/commands/page/shared.js +1 -1
  172. package/lib/commands/page/sync.js +1 -1
  173. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  174. package/lib/commands/project/create/format-elapsed.js +1 -1
  175. package/lib/commands/project/create/main.js +1 -1
  176. package/lib/commands/project/create/materialize-project-template.js +1 -1
  177. package/lib/commands/project/create/project-name.js +1 -1
  178. package/lib/commands/project/create/project-template-archive.js +1 -1
  179. package/lib/commands/project/create/project-template-path.js +1 -1
  180. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  181. package/lib/commands/project/create/use-format-code.js +1 -1
  182. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  183. package/lib/commands/project/index.js +1 -1
  184. package/lib/commands/project/upgrade.js +1 -1
  185. package/lib/commands/registry.js +1 -1
  186. package/lib/commands/role/delete.js +1 -1
  187. package/lib/commands/role/detail.js +1 -1
  188. package/lib/commands/role/index.js +1 -1
  189. package/lib/commands/role/list.js +1 -1
  190. package/lib/commands/role/shared.js +1 -1
  191. package/lib/commands/role/update.js +1 -1
  192. package/lib/commands/role/user-add.js +1 -1
  193. package/lib/commands/role/user-remove.js +1 -1
  194. package/lib/commands/role/user-resolve.js +1 -1
  195. package/lib/commands/run/index.js +1 -1
  196. package/lib/commands/schema.js +1 -1
  197. package/lib/commands/sql/create.js +1 -1
  198. package/lib/commands/sql/delete.js +1 -1
  199. package/lib/commands/sql/detail.js +1 -1
  200. package/lib/commands/sql/exec.js +1 -1
  201. package/lib/commands/sql/index.js +1 -1
  202. package/lib/commands/sql/list.js +1 -1
  203. package/lib/commands/sql/pull.js +1 -1
  204. package/lib/commands/sql/push.js +1 -1
  205. package/lib/commands/sql/shared.js +1 -1
  206. package/lib/commands/sql/status.js +1 -1
  207. package/lib/commands/sql/validate.js +1 -1
  208. package/lib/commands/task/index.js +1 -1
  209. package/lib/commands/task/status.js +1 -1
  210. package/lib/commands/tenant/index.js +1 -1
  211. package/lib/commands/tenant/members-list.js +1 -1
  212. package/lib/commands/tenant/shared.js +1 -1
  213. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  214. package/lib/commands/user-account/index.js +1 -1
  215. package/lib/commands/workspace/add.js +1 -1
  216. package/lib/commands/workspace/index.js +1 -1
  217. package/lib/commands/workspace/remove.js +1 -1
  218. package/lib/config/deployment-sync.d.ts +10 -0
  219. package/lib/config/deployment-sync.js +1 -0
  220. package/lib/config/domain-config.d.ts +1 -1
  221. package/lib/config/domain-config.js +1 -1
  222. package/lib/config/project-routing.d.ts +30 -0
  223. package/lib/config/project-routing.js +1 -0
  224. package/lib/config/schema.d.ts +1 -1
  225. package/lib/config/schema.js +1 -1
  226. package/lib/constant/cdn.js +1 -1
  227. package/lib/constant/cli.js +1 -1
  228. package/lib/constant/defaults.js +1 -1
  229. package/lib/constant/domain.d.ts +7 -2
  230. package/lib/constant/domain.js +1 -1
  231. package/lib/constant/env.js +1 -1
  232. package/lib/constant/output.js +1 -1
  233. package/lib/constant/paths.js +1 -1
  234. package/lib/constant/region.d.ts +2 -2
  235. package/lib/constant/region.js +1 -1
  236. package/lib/constant/risk.js +1 -1
  237. package/lib/constant/routing-profile.d.ts +115 -0
  238. package/lib/constant/routing-profile.js +1 -0
  239. package/lib/context/app-resolver.d.ts +2 -0
  240. package/lib/context/app-resolver.js +1 -1
  241. package/lib/context/auth-resolver.js +1 -1
  242. package/lib/context/config-loader.js +1 -1
  243. package/lib/context.js +1 -1
  244. package/lib/core/alias-resolver.js +1 -1
  245. package/lib/core/api-client.d.ts +35 -0
  246. package/lib/core/api-client.js +1 -1
  247. package/lib/core/bff/config.js +1 -1
  248. package/lib/core/bff/file-system.js +1 -1
  249. package/lib/core/bff/hash.js +1 -1
  250. package/lib/core/bff/lock.js +1 -1
  251. package/lib/core/bff/utils.js +1 -1
  252. package/lib/core/db-resolver.js +1 -1
  253. package/lib/core/page/file-system.js +1 -1
  254. package/lib/core/page/hash.js +1 -1
  255. package/lib/core/page/lock.js +1 -1
  256. package/lib/core/sql-index-auditor.js +1 -1
  257. package/lib/core/sql-sync/config.js +1 -1
  258. package/lib/core/sql-sync/file-system.js +1 -1
  259. package/lib/core/sql-sync/hash.js +1 -1
  260. package/lib/core/sql-sync/lock.js +1 -1
  261. package/lib/core/sql-sync/utils.js +1 -1
  262. package/lib/core/sql-validator.js +1 -1
  263. package/lib/errors.js +1 -1
  264. package/lib/framework/build-all-flags.js +1 -1
  265. package/lib/framework/error-output.js +1 -1
  266. package/lib/framework/explicit-yes.js +1 -1
  267. package/lib/framework/flags.js +1 -1
  268. package/lib/framework/help.js +1 -1
  269. package/lib/framework/index.js +1 -1
  270. package/lib/framework/output.js +1 -1
  271. package/lib/framework/response.js +1 -1
  272. package/lib/framework/runner-alias.js +1 -1
  273. package/lib/framework/runner.js +1 -1
  274. package/lib/framework/schema-export.js +1 -1
  275. package/lib/framework/types.d.ts +4 -0
  276. package/lib/framework/types.js +1 -1
  277. package/lib/generated/build-info.d.ts +4 -4
  278. package/lib/generated/build-info.js +1 -1
  279. package/lib/help.js +1 -1
  280. package/lib/postinstall.js +1 -1
  281. package/lib/runtime/confirmation.js +1 -1
  282. package/lib/runtime/event.js +1 -1
  283. package/lib/runtime/index.js +1 -1
  284. package/lib/runtime/queue.js +1 -1
  285. package/lib/runtime/resolve.js +1 -1
  286. package/lib/skills/builtin-skill.js +1 -1
  287. package/lib/skills/main.js +1 -1
  288. package/lib/skills/npx-skills-add.js +1 -1
  289. package/lib/skills/skill-presence.js +1 -1
  290. package/lib/telemetry/cli-command-trace.js +1 -1
  291. package/lib/telemetry/cli-help-trace.js +1 -1
  292. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  293. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  294. package/lib/telemetry/send-cli-trace-log.js +1 -1
  295. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  296. package/lib/utils/ai_config.js +1 -1
  297. package/lib/utils/apply-jq-filter.js +1 -1
  298. package/lib/utils/cdn-config.js +1 -1
  299. package/lib/utils/check-sdk-version.js +1 -1
  300. package/lib/utils/cli-version-check.js +1 -1
  301. package/lib/utils/cli-version-policy.js +1 -1
  302. package/lib/utils/config.js +1 -1
  303. package/lib/utils/entity-with-id.js +1 -1
  304. package/lib/utils/file-utils.js +1 -1
  305. package/lib/utils/guides-cdn.js +1 -1
  306. package/lib/utils/http-client.js +1 -1
  307. package/lib/utils/is-non-interactive.js +1 -1
  308. package/lib/utils/logger.js +1 -1
  309. package/lib/utils/params.js +1 -1
  310. package/lib/utils/platform.js +1 -1
  311. package/lib/utils/sleep.js +1 -1
  312. package/lib/utils/template-replacer.js +1 -1
  313. package/lib/utils/update-notice.js +1 -1
  314. package/lib/utils/version.js +1 -1
  315. package/lib/utils/with-active-cookie.js +1 -1
  316. package/lib/utils/write-cli-side-channel.js +1 -1
  317. package/package.json +1 -2
  318. package/skills/rabetbase/SKILL.md +20 -9
  319. package/skills/rabetbase/guides/frontend-development.md +2 -0
  320. package/skills/rabetbase/guides/sdk-client-generation.md +3 -2
  321. package/skills/rabetbase/guides/typescript-sdk.md +42 -0
  322. package/skills/rabetbase/references/rabetbase-api-pull.md +5 -3
  323. package/skills/rabetbase/references/rabetbase-config.md +9 -5
  324. package/skills/rabetbase/references/rabetbase-dataset-business-group-update.md +9 -9
  325. package/skills/rabetbase/references/rabetbase-dataset-business-groups.md +1 -1
  326. package/skills/rabetbase/references/rabetbase-dataset-field-restore.md +59 -0
  327. package/skills/rabetbase/references/rabetbase-dataset-user-deleted-field-list.md +47 -0
  328. package/skills/rabetbase/references/rabetbase-deployment-sync.md +92 -0
  329. package/skills/rabetbase/references/rabetbase-init.md +11 -5
  330. package/skills/rabetbase/references/rabetbase-project-create.md +6 -5
  331. package/skills/rabetbase.manifest.json +6 -3
  332. package/templates/README.md +13 -17
@@ -1 +1 @@
1
- const a230_0x34ad03=a230_0x505e;(function(_0x48a461,_0x5b28df){const _0x395b4f=a230_0x505e,_0x3d36cd=_0x48a461();while(!![]){try{const _0x2f3b09=parseInt(_0x395b4f(0x154))/0x1*(parseInt(_0x395b4f(0x149))/0x2)+-parseInt(_0x395b4f(0x14b))/0x3*(-parseInt(_0x395b4f(0x155))/0x4)+parseInt(_0x395b4f(0x145))/0x5*(parseInt(_0x395b4f(0x148))/0x6)+parseInt(_0x395b4f(0x14c))/0x7+parseInt(_0x395b4f(0x14a))/0x8+-parseInt(_0x395b4f(0x14d))/0x9+-parseInt(_0x395b4f(0x156))/0xa*(parseInt(_0x395b4f(0x14f))/0xb);if(_0x2f3b09===_0x5b28df)break;else _0x3d36cd['push'](_0x3d36cd['shift']());}catch(_0x328c88){_0x3d36cd['push'](_0x3d36cd['shift']());}}}(a230_0x4fec,0xab5fb));import{constants}from'node:fs';import{access,mkdir}from'node:fs/promises';function a230_0x505e(_0x354b58,_0x33e6c9){_0x354b58=_0x354b58-0x145;const _0x4fecdd=a230_0x4fec();let _0x505e56=_0x4fecdd[_0x354b58];return _0x505e56;}import{dirname,join,resolve}from'node:path';export function loadPageProjectConfig(_0x3f9798,_0x1b2906=process[a230_0x34ad03(0x153)]()){const _0x15fef8=a230_0x34ad03,_0x11f849=resolve(_0x1b2906),_0x2b23c7=join(_0x11f849,_0x15fef8(0x151),_0x15fef8(0x146));return{'projectRoot':_0x11f849,'pagesBaseDir':_0x2b23c7,'appPagesDir':join(_0x2b23c7,_0x3f9798),'lockFilePath':join(_0x11f849,'.rabetbase','page.lock.json')};}export function buildPageFileName(_0x14580f,_0x327fcd){const _0x275cc8=a230_0x34ad03;return _0x14580f+'-'+String(_0x327fcd)[_0x275cc8(0x14e)]()+_0x275cc8(0x147);}export function resolvePageFilePath(_0x2daf16,_0x310674,_0x23ecad){const _0xb4950c=a230_0x34ad03;return join(_0x2daf16[_0xb4950c(0x152)],buildPageFileName(_0x310674,_0x23ecad));}export async function ensureParentDirectory(_0x47012d){await mkdir(dirname(_0x47012d),{'recursive':!![]});}export async function fileExists(_0x53b3f4){const _0x178802=a230_0x34ad03;try{return await access(_0x53b3f4,constants[_0x178802(0x150)]),!![];}catch{return![];}}function a230_0x4fec(){const _0xb1131a=['2497684Rrxwdh','9898290lDTvoM','toUpperCase','13970759IevCNa','F_OK','.rabetbase','appPagesDir','cwd','18363dIdqoA','67268hEEDsa','10yQTOlO','65lmsxIQ','page','.json','457986MZKJZO','6zcLwZs','6345104uzmkng','156OwxUlR'];a230_0x4fec=function(){return _0xb1131a;};return a230_0x4fec();}
1
+ function a238_0xa78e(){const _0xc6672b=['1136780ekWioT','page.lock.json','33hfXlYx','cwd','toUpperCase','81UJysCD','1671474yGBcFZ','.json','1773280oxLDFY','2083476ccIIIz','.rabetbase','210821hgZcDQ','appPagesDir','1212930vGMQcx','F_OK','2XPfLXN','7SIjfmz','590416TIJJQo'];a238_0xa78e=function(){return _0xc6672b;};return a238_0xa78e();}const a238_0x29e911=a238_0x4558;(function(_0x53462d,_0x2b06c0){const _0x55772f=a238_0x4558,_0x226204=_0x53462d();while(!![]){try{const _0x563922=parseInt(_0x55772f(0x19b))/0x1*(parseInt(_0x55772f(0x19f))/0x2)+parseInt(_0x55772f(0x19d))/0x3+parseInt(_0x55772f(0x199))/0x4+parseInt(_0x55772f(0x1a2))/0x5+parseInt(_0x55772f(0x196))/0x6*(parseInt(_0x55772f(0x1a0))/0x7)+-parseInt(_0x55772f(0x1a1))/0x8*(parseInt(_0x55772f(0x195))/0x9)+-parseInt(_0x55772f(0x198))/0xa*(parseInt(_0x55772f(0x192))/0xb);if(_0x563922===_0x2b06c0)break;else _0x226204['push'](_0x226204['shift']());}catch(_0x53820b){_0x226204['push'](_0x226204['shift']());}}}(a238_0xa78e,0x6cd25));import{constants}from'node:fs';function a238_0x4558(_0x3c5da3,_0x1128d6){_0x3c5da3=_0x3c5da3-0x192;const _0xa78e02=a238_0xa78e();let _0x45589c=_0xa78e02[_0x3c5da3];return _0x45589c;}import{access,mkdir}from'node:fs/promises';import{dirname,join,resolve}from'node:path';export function loadPageProjectConfig(_0x5b5094,_0x297997=process[a238_0x29e911(0x193)]()){const _0x3fe624=a238_0x29e911,_0x3846a0=resolve(_0x297997),_0x16a50b=join(_0x3846a0,'.rabetbase','page');return{'projectRoot':_0x3846a0,'pagesBaseDir':_0x16a50b,'appPagesDir':join(_0x16a50b,_0x5b5094),'lockFilePath':join(_0x3846a0,_0x3fe624(0x19a),_0x3fe624(0x1a3))};}export function buildPageFileName(_0xb63b21,_0x569711){const _0x51b8ce=a238_0x29e911;return _0xb63b21+'-'+String(_0x569711)[_0x51b8ce(0x194)]()+_0x51b8ce(0x197);}export function resolvePageFilePath(_0x297068,_0x4ac706,_0x166dca){const _0x336a39=a238_0x29e911;return join(_0x297068[_0x336a39(0x19c)],buildPageFileName(_0x4ac706,_0x166dca));}export async function ensureParentDirectory(_0x4ec7b2){await mkdir(dirname(_0x4ec7b2),{'recursive':!![]});}export async function fileExists(_0x10e9a3){const _0x29ddbc=a238_0x29e911;try{return await access(_0x10e9a3,constants[_0x29ddbc(0x19e)]),!![];}catch{return![];}}
@@ -1 +1 @@
1
- (function(_0x17c58a,_0x43ecb9){const _0x5e4cad=a231_0x24bc,_0x2aab8e=_0x17c58a();while(!![]){try{const _0xd4b850=-parseInt(_0x5e4cad(0x1bb))/0x1*(parseInt(_0x5e4cad(0x1bf))/0x2)+-parseInt(_0x5e4cad(0x1c5))/0x3*(parseInt(_0x5e4cad(0x1be))/0x4)+-parseInt(_0x5e4cad(0x1bd))/0x5+-parseInt(_0x5e4cad(0x1c3))/0x6*(parseInt(_0x5e4cad(0x1b6))/0x7)+-parseInt(_0x5e4cad(0x1c1))/0x8+parseInt(_0x5e4cad(0x1b9))/0x9*(-parseInt(_0x5e4cad(0x1b2))/0xa)+parseInt(_0x5e4cad(0x1c0))/0xb*(parseInt(_0x5e4cad(0x1c4))/0xc);if(_0xd4b850===_0x43ecb9)break;else _0x2aab8e['push'](_0x2aab8e['shift']());}catch(_0x2ed91d){_0x2aab8e['push'](_0x2aab8e['shift']());}}}(a231_0x2751,0x5deb0));import a231_0x15a88e from'node:crypto';function a231_0x24bc(_0x3856b5,_0x3ce7cb){_0x3856b5=_0x3856b5-0x1b2;const _0x275190=a231_0x2751();let _0x24bcbe=_0x275190[_0x3856b5];return _0x24bcbe;}import{readFile}from'node:fs/promises';export function serializePageSchemaForFile(_0x3e947a){const _0x572d84=a231_0x24bc;return JSON[_0x572d84(0x1bc)](JSON[_0x572d84(0x1b3)](_0x3e947a),null,0x2)+'\x0a';}export function computePageContentHash(_0x579450){const _0x552146=a231_0x24bc;return a231_0x15a88e[_0x552146(0x1b5)](_0x552146(0x1c2))[_0x552146(0x1b8)](_0x579450)[_0x552146(0x1ba)](_0x552146(0x1b7));}export function computeSerializedSchemaHash(_0x295dbe){return computePageContentHash(serializePageSchemaForFile(_0x295dbe));}function a231_0x2751(){const _0x274e19=['md5','102JUuTSt','17205432OZlKSM','21uHASRb','10bpGHGW','parse','utf8','createHash','173579yDHWBD','hex','update','3464541ZCxRco','digest','183405HBuICy','stringify','1674170NBEJHI','428484GmFoVi','2oIetyM','22fssaEZ','3266400ExkDAm'];a231_0x2751=function(){return _0x274e19;};return a231_0x2751();}export async function computePageFileHash(_0x178d92){const _0x361bcc=a231_0x24bc,_0x13648b=await readFile(_0x178d92,_0x361bcc(0x1b4));return computePageContentHash(_0x13648b);}
1
+ function a239_0x9ca6(){const _0x422805=['164601uThRWn','14FHhGND','update','stringify','20544rfgFTT','1453096MJLNWo','1718652CUWACE','createHash','735hZOauM','digest','60cAZmKO','662358sbGAef','428306FrVHEQ','utf8','parse','413828eQFPrH'];a239_0x9ca6=function(){return _0x422805;};return a239_0x9ca6();}(function(_0x314602,_0x5256c9){const _0x356b00=a239_0xd16f,_0x2c9528=_0x314602();while(!![]){try{const _0x1e87f3=parseInt(_0x356b00(0x171))/0x1+-parseInt(_0x356b00(0x170))/0x2+parseInt(_0x356b00(0x16b))/0x3+-parseInt(_0x356b00(0x164))/0x4+parseInt(_0x356b00(0x16d))/0x5*(-parseInt(_0x356b00(0x169))/0x6)+parseInt(_0x356b00(0x166))/0x7*(parseInt(_0x356b00(0x16a))/0x8)+parseInt(_0x356b00(0x165))/0x9*(-parseInt(_0x356b00(0x16f))/0xa);if(_0x1e87f3===_0x5256c9)break;else _0x2c9528['push'](_0x2c9528['shift']());}catch(_0x391ec5){_0x2c9528['push'](_0x2c9528['shift']());}}}(a239_0x9ca6,0x4d55e));import a239_0x38fc26 from'node:crypto';import{readFile}from'node:fs/promises';export function serializePageSchemaForFile(_0x503174){const _0x44fbd8=a239_0xd16f;return JSON[_0x44fbd8(0x168)](JSON[_0x44fbd8(0x173)](_0x503174),null,0x2)+'\x0a';}export function computePageContentHash(_0x2e6c90){const _0x4f5d74=a239_0xd16f;return a239_0x38fc26[_0x4f5d74(0x16c)]('md5')[_0x4f5d74(0x167)](_0x2e6c90)[_0x4f5d74(0x16e)]('hex');}export function computeSerializedSchemaHash(_0x304671){return computePageContentHash(serializePageSchemaForFile(_0x304671));}function a239_0xd16f(_0x252626,_0x326c66){_0x252626=_0x252626-0x164;const _0x9ca64c=a239_0x9ca6();let _0xd16fae=_0x9ca64c[_0x252626];return _0xd16fae;}export async function computePageFileHash(_0x3e4e6f){const _0x14e20c=a239_0xd16f,_0x34226b=await readFile(_0x3e4e6f,_0x14e20c(0x172));return computePageContentHash(_0x34226b);}
@@ -1 +1 @@
1
- (function(_0x353e75,_0x52106d){const _0x34c9a7=a232_0x54d7,_0x96984c=_0x353e75();while(!![]){try{const _0x5c3d9d=parseInt(_0x34c9a7(0x170))/0x1+parseInt(_0x34c9a7(0x16a))/0x2+parseInt(_0x34c9a7(0x16f))/0x3+-parseInt(_0x34c9a7(0x16b))/0x4*(-parseInt(_0x34c9a7(0x160))/0x5)+parseInt(_0x34c9a7(0x172))/0x6*(-parseInt(_0x34c9a7(0x16e))/0x7)+parseInt(_0x34c9a7(0x168))/0x8*(parseInt(_0x34c9a7(0x169))/0x9)+parseInt(_0x34c9a7(0x163))/0xa*(-parseInt(_0x34c9a7(0x16d))/0xb);if(_0x5c3d9d===_0x52106d)break;else _0x96984c['push'](_0x96984c['shift']());}catch(_0xc594a1){_0x96984c['push'](_0x96984c['shift']());}}}(a232_0x173a,0xd7448));import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';function a232_0x173a(){const _0x2bba26=['2617210qzDGna','79280ytfypv','apps','44dRcuRM','161sTCkDq','2148312CARisT','848691rwLDIF','utf8','72066fXdMcM','15upPRql','pages','parse','7469610esEOHC','object','lastSync','Failed\x20to\x20read\x20page\x20lock\x20file:\x20','stringify','9703784HpvraB','9aYnycL'];a232_0x173a=function(){return _0x2bba26;};return a232_0x173a();}export function createEmptyPageLock(){return{'apps':{}};}function a232_0x54d7(_0x1575b9,_0x3fc61c){_0x1575b9=_0x1575b9-0x160;const _0x173ab5=a232_0x173a();let _0x54d74c=_0x173ab5[_0x1575b9];return _0x54d74c;}export function ensurePageLockScope(_0x49c702,_0x4d3748){const _0x9f9439=a232_0x54d7,_0x597d4a={'apps':_0x49c702[_0x9f9439(0x16c)]&&typeof _0x49c702[_0x9f9439(0x16c)]==='object'?_0x49c702[_0x9f9439(0x16c)]:{}};let _0x416552=_0x597d4a['apps'][_0x4d3748];if(!_0x416552)return _0x416552={'lastSync':'','pages':{}},_0x597d4a[_0x9f9439(0x16c)][_0x4d3748]=_0x416552,{'lockData':_0x597d4a,'appLock':_0x416552};return!_0x416552[_0x9f9439(0x165)]&&(_0x416552[_0x9f9439(0x165)]=''),(!_0x416552[_0x9f9439(0x161)]||typeof _0x416552[_0x9f9439(0x161)]!==_0x9f9439(0x164))&&(_0x416552[_0x9f9439(0x161)]={}),{'lockData':_0x597d4a,'appLock':_0x416552};}export async function readPageLockFile(_0x384843){const _0x32aa8d=a232_0x54d7;try{const _0x5c97fc=await readFile(_0x384843,'utf8'),_0x4d1965=JSON[_0x32aa8d(0x162)](_0x5c97fc);return{'apps':_0x4d1965[_0x32aa8d(0x16c)]&&typeof _0x4d1965['apps']===_0x32aa8d(0x164)?_0x4d1965['apps']:{}};}catch(_0x58623f){if(_0x58623f['code']==='ENOENT')return null;throw new Error(_0x32aa8d(0x166)+String(_0x58623f));}}export async function writePageLockFile(_0x386a2b,_0x2ac35c){const _0x350f55=a232_0x54d7;await mkdir(dirname(_0x386a2b),{'recursive':!![]}),await writeFile(_0x386a2b,JSON[_0x350f55(0x167)](_0x2ac35c,null,0x2),_0x350f55(0x171));}
1
+ (function(_0x2d49dc,_0x3d5057){const _0x3f14f3=a240_0x4552,_0x54fd3=_0x2d49dc();while(!![]){try{const _0x119947=-parseInt(_0x3f14f3(0x6b))/0x1+parseInt(_0x3f14f3(0x69))/0x2*(parseInt(_0x3f14f3(0x78))/0x3)+-parseInt(_0x3f14f3(0x68))/0x4+parseInt(_0x3f14f3(0x76))/0x5*(parseInt(_0x3f14f3(0x75))/0x6)+parseInt(_0x3f14f3(0x79))/0x7*(parseInt(_0x3f14f3(0x6d))/0x8)+-parseInt(_0x3f14f3(0x6a))/0x9+parseInt(_0x3f14f3(0x72))/0xa;if(_0x119947===_0x3d5057)break;else _0x54fd3['push'](_0x54fd3['shift']());}catch(_0x52e065){_0x54fd3['push'](_0x54fd3['shift']());}}}(a240_0x5d0d,0xa4f42));function a240_0x4552(_0x11174b,_0x2c156a){_0x11174b=_0x11174b-0x66;const _0x5d0d91=a240_0x5d0d();let _0x4552c0=_0x5d0d91[_0x11174b];return _0x4552c0;}import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';function a240_0x5d0d(){const _0x5eb9ad=['apps','8QMnzde','Failed\x20to\x20read\x20page\x20lock\x20file:\x20','object','parse','code','20220020SdNkKd','stringify','pages','84YztMrd','18005CyeqIr','lastSync','3823317iBEShK','3564568IysIfB','ENOENT','utf8','3350108EezzbB','2nPPZBl','11997612GyOIDS','1009834qaRyuZ'];a240_0x5d0d=function(){return _0x5eb9ad;};return a240_0x5d0d();}export function createEmptyPageLock(){return{'apps':{}};}export function ensurePageLockScope(_0x485799,_0xc5087c){const _0x1e0e5b=a240_0x4552,_0x4f4ec7={'apps':_0x485799['apps']&&typeof _0x485799[_0x1e0e5b(0x6c)]===_0x1e0e5b(0x6f)?_0x485799[_0x1e0e5b(0x6c)]:{}};let _0x2c8561=_0x4f4ec7[_0x1e0e5b(0x6c)][_0xc5087c];if(!_0x2c8561)return _0x2c8561={'lastSync':'','pages':{}},_0x4f4ec7[_0x1e0e5b(0x6c)][_0xc5087c]=_0x2c8561,{'lockData':_0x4f4ec7,'appLock':_0x2c8561};return!_0x2c8561[_0x1e0e5b(0x77)]&&(_0x2c8561['lastSync']=''),(!_0x2c8561[_0x1e0e5b(0x74)]||typeof _0x2c8561['pages']!==_0x1e0e5b(0x6f))&&(_0x2c8561[_0x1e0e5b(0x74)]={}),{'lockData':_0x4f4ec7,'appLock':_0x2c8561};}export async function readPageLockFile(_0x113fa7){const _0x1997d5=a240_0x4552;try{const _0x56ca58=await readFile(_0x113fa7,_0x1997d5(0x67)),_0x5e7e05=JSON[_0x1997d5(0x70)](_0x56ca58);return{'apps':_0x5e7e05[_0x1997d5(0x6c)]&&typeof _0x5e7e05[_0x1997d5(0x6c)]==='object'?_0x5e7e05[_0x1997d5(0x6c)]:{}};}catch(_0x143d66){if(_0x143d66[_0x1997d5(0x71)]===_0x1997d5(0x66))return null;throw new Error(_0x1997d5(0x6e)+String(_0x143d66));}}export async function writePageLockFile(_0xeb521d,_0xd12aab){const _0x24b4e0=a240_0x4552;await mkdir(dirname(_0xeb521d),{'recursive':!![]}),await writeFile(_0xeb521d,JSON[_0x24b4e0(0x73)](_0xd12aab,null,0x2),_0x24b4e0(0x67));}
@@ -1 +1 @@
1
- (function(_0x534392,_0x3c417e){const _0x104536=a234_0x3398,_0x53b715=_0x534392();while(!![]){try{const _0x225fb6=parseInt(_0x104536(0x103))/0x1*(parseInt(_0x104536(0xf8))/0x2)+parseInt(_0x104536(0x113))/0x3+-parseInt(_0x104536(0xde))/0x4+parseInt(_0x104536(0xdf))/0x5+parseInt(_0x104536(0xfd))/0x6+-parseInt(_0x104536(0x121))/0x7*(-parseInt(_0x104536(0x118))/0x8)+-parseInt(_0x104536(0xf9))/0x9;if(_0x225fb6===_0x3c417e)break;else _0x53b715['push'](_0x53b715['shift']());}catch(_0x3f4d5){_0x53b715['push'](_0x53b715['shift']());}}}(a234_0x349d,0x2dd86));function a234_0x349d(){const _0x27078b=['Derived-table\x20JOIN\x20targets\x20are\x20not\x20supported.','trim','tableName','reduce','add','unknown','1344924ljuQyt','1474780qmgzcd','cross','MyBatis\x20dynamic\x20JOIN\x20predicates\x20cannot\x20be\x20audited\x20deterministically.','Relevant\x20columns\x20do\x20not\x20form\x20a\x20complete\x20leftmost\x20index\x20prefix.','has','push','MyBatis\x20<include>\x20JOIN\x20fragments\x20cannot\x20be\x20expanded\x20statically.','replaceAll','\x5cs*\x5c.\x5cs*[\x5cw$]+','matchedPrefix','JOIN_INDEX_NOT_USABLE','alias','where','sql','unsupportedPredicate','right','test','MyBatis\x20<include>\x20fragments\x20cannot\x20be\x20expanded\x20for\x20JOIN\x20auditing.','warning','slice','INDEX_METADATA_UNAVAILABLE','columns','left','using','index','6414hGHwne','3590793NyPrPf','map','indexes','toLowerCase','842976lqXOGj','replace','INNER','matchAll','inner','OR-connected\x20JOIN\x20predicates\x20are\x20not\x20supported.','47RymvlN','length','search','max','(?:^|[^\x5cw$])','indexOf','match','exec','split','join','some','min','toUpperCase','error','full','unsupportedReason','118914LdeLpZ','from','includes','metadataAvailable','table','712cXtJWP','__sq__','The\x20dataset\x20returned\x20no\x20distinguishable\x20index\x20metadata.','natural','Not\x20every\x20JOIN\x20target\x20predicate\x20could\x20be\x20audited\x20safely.','unavailable','JOIN_PREDICATE_UNSUPPORTED','covered','filter','23373nTwxCL'];a234_0x349d=function(){return _0x27078b;};return a234_0x349d();}import{MYBATIS_DYNAMIC_END_MARKER,MYBATIS_DYNAMIC_START_MARKER,MYBATIS_INCLUDE_MARKER,normalizeSqlForStaticAnalysis}from'./sql-validator.js';export function auditSqlJoinIndexes(_0x23779a,_0x3879b0){const _0xd3e532=a234_0x3398,_0x1e5b87=[],_0x2e9f0b=normalizeSqlForStaticAnalysis(_0x23779a),_0x35ed0a=(_0x2e9f0b[_0xd3e532(0x110)]?[]:extractJoinFacts(_0x2e9f0b[_0xd3e532(0xec)]))['map'](_0x5813e8=>{const _0x5e0804=_0xd3e532;if(_0x5813e8[_0x5e0804(0xed)]||_0x5813e8[_0x5e0804(0xf4)]['length']===0x0)return _0x1e5b87[_0x5e0804(0xe4)]({'code':_0x5e0804(0x11e),'table':_0x5813e8[_0x5e0804(0x117)],'alias':_0x5813e8[_0x5e0804(0xea)],'columns':_0x5813e8[_0x5e0804(0xf4)],'reason':_0x5813e8[_0x5e0804(0x112)]??_0x5e0804(0x11c)}),{'table':_0x5813e8[_0x5e0804(0x117)],'alias':_0x5813e8[_0x5e0804(0xea)],'columns':_0x5813e8[_0x5e0804(0xf4)],'status':_0x5e0804(0x11d)};const _0x573681=resolveTableMetadata(_0x3879b0,_0x5813e8['table']),_0x41d430=(_0x573681?.[_0x5e0804(0xfb)]??[])[_0x5e0804(0xfa)](_0x51d000=>({'index':_0x51d000,'matchedPrefix':findEqualityPrefix(_0x51d000[_0x5e0804(0xf4)],_0x5813e8[_0x5e0804(0xf4)])}))['filter'](_0x28c5bd=>_0x28c5bd['matchedPrefix'][_0x5e0804(0x104)]>0x0),_0x106271=_0x41d430[_0x5e0804(0x125)]((_0x7ad683,_0x350eb3)=>!_0x7ad683||_0x350eb3['matchedPrefix'][_0x5e0804(0x104)]>_0x7ad683['matchedPrefix'][_0x5e0804(0x104)]?_0x350eb3:_0x7ad683,_0x41d430[0x0]);if(_0x106271)return{'table':_0x5813e8['table'],'alias':_0x5813e8[_0x5e0804(0xea)],'columns':_0x5813e8[_0x5e0804(0xf4)],'status':_0x5e0804(0x11f),'matchedIndex':{..._0x106271[_0x5e0804(0xf7)],'matchedPrefix':_0x106271[_0x5e0804(0xe8)]}};const _0x47a55b=_0x573681?.[_0x5e0804(0xfb)][_0x5e0804(0x120)](_0x2c740d=>_0x2c740d[_0x5e0804(0xf4)][_0x5e0804(0x10d)](_0x48dfc4=>_0x5813e8['columns']['some'](_0x1eb833=>columnNamesMatch(_0x48dfc4,_0x1eb833))))??[];if(_0x47a55b[_0x5e0804(0x104)]>0x0)return _0x1e5b87[_0x5e0804(0xe4)]({'code':_0x5e0804(0xe9),'table':_0x5813e8[_0x5e0804(0x117)],'alias':_0x5813e8[_0x5e0804(0xea)],'columns':_0x5813e8[_0x5e0804(0xf4)],'reason':_0x5e0804(0xe2)}),{'table':_0x5813e8[_0x5e0804(0x117)],'alias':_0x5813e8['alias'],'columns':_0x5813e8['columns'],'status':_0x5e0804(0xf1),'candidateIndexes':_0x47a55b};if(_0x573681&&_0x573681[_0x5e0804(0x116)]!==![]&&_0x573681[_0x5e0804(0xfb)]['length']>0x0&&_0x5813e8[_0x5e0804(0xf4)][_0x5e0804(0x104)]>0x0)return _0x1e5b87['push']({'code':'JOIN_INDEX_MISSING','table':_0x5813e8[_0x5e0804(0x117)],'alias':_0x5813e8['alias'],'columns':_0x5813e8[_0x5e0804(0xf4)],'reason':'No\x20reported\x20index\x20contains\x20the\x20JOIN\x20access\x20columns.'}),{'table':_0x5813e8['table'],'alias':_0x5813e8[_0x5e0804(0xea)],'columns':_0x5813e8[_0x5e0804(0xf4)],'status':_0x5e0804(0xf1)};return _0x1e5b87[_0x5e0804(0xe4)]({'code':_0x5e0804(0xf3),'table':_0x5813e8['table'],'alias':_0x5813e8[_0x5e0804(0xea)],'columns':_0x5813e8[_0x5e0804(0xf4)],'reason':_0x573681?_0x5e0804(0x11a):'No\x20dataset\x20metadata\x20matched\x20the\x20JOIN\x20table.'}),{'table':_0x5813e8[_0x5e0804(0x117)],'alias':_0x5813e8[_0x5e0804(0xea)],'columns':_0x5813e8[_0x5e0804(0xf4)],'status':_0x5e0804(0x11d)};});return{'checked':_0x35ed0a[_0xd3e532(0x104)]>0x0,'joins':_0x35ed0a,'warnings':_0x1e5b87};}function a234_0x3398(_0x44a2dc,_0x33b0ad){_0x44a2dc=_0x44a2dc-0xdc;const _0x349dc2=a234_0x349d();let _0x339809=_0x349dc2[_0x44a2dc];return _0x339809;}function extractJoinFacts(_0x1e77e8){const _0x19747a=a234_0x3398,_0x4c7844=maskNestedQueries(stripSqlNoise(_0x1e77e8)),_0x4c10ca=maskQuotedIdentifiers(_0x4c7844),_0x3ed8da=[],_0x301e4b=new Set(),_0x11ec98=/\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 _0x7d5bdd of _0x4c7844[_0x19747a(0x100)](_0x11ec98)){const _0xf58152=_0x7d5bdd['index']??0x0,_0x1a8c69=_0x7d5bdd[0x0][_0x19747a(0x105)](/\bJOIN\b/i),_0x7e6af3=_0xf58152+Math[_0x19747a(0x106)](0x0,_0x1a8c69);if(!/^JOIN\b/i[_0x19747a(0xef)](_0x4c10ca[_0x19747a(0xf2)](_0x7e6af3)))continue;_0x301e4b[_0x19747a(0xdc)](_0x7e6af3);const _0x128864=normalizeIdentifier(_0x7d5bdd[0x1]||_0x19747a(0xff)),_0x292dce=normalizeIdentifier(_0x7d5bdd[0x2]??''),_0x29040e=normalizeIdentifier(_0x7d5bdd[0x3]||_0x292dce[_0x19747a(0x10b)]('.')['at'](-0x1)||_0x292dce),_0x4db3ba=[],_0x530b52=_0x292dce===_0x19747a(0x119);let _0x3ccfe9=_0x128864===_0x19747a(0xee)||_0x128864===_0x19747a(0x111)||_0x530b52,_0x57eab6=_0x3ccfe9?_0x530b52?_0x19747a(0x122):_0x128864['toUpperCase']()+'\x20JOIN\x20direction\x20is\x20not\x20supported\x20by\x20static\x20index\x20auditing.':undefined;const _0x12b03a=stripOuterParentheses(_0x7d5bdd[0x4]??''),_0x390ea5=_0x12b03a['includes'](MYBATIS_DYNAMIC_START_MARKER)||_0x12b03a[_0x19747a(0x115)](MYBATIS_DYNAMIC_END_MARKER),_0x48e792=_0x12b03a[_0x19747a(0x115)](MYBATIS_INCLUDE_MARKER);_0x390ea5&&(_0x3ccfe9=!![],_0x57eab6??=_0x19747a(0xe1));_0x48e792&&(_0x3ccfe9=!![],_0x57eab6??=_0x19747a(0xe5));const _0x3db732=_0x12b03a[_0x19747a(0xe6)](MYBATIS_DYNAMIC_START_MARKER,'\x20')[_0x19747a(0xe6)](MYBATIS_DYNAMIC_END_MARKER,'\x20')['replaceAll'](MYBATIS_INCLUDE_MARKER,'\x20');hasTopLevelKeyword(_0x3db732,'OR')&&(_0x3ccfe9=!![],_0x57eab6??=_0x19747a(0x102));for(const _0x1d4a8a of splitTopLevelAnd(_0x3db732)){const _0x1f5a72=stripOuterParentheses(_0x1d4a8a);if(hasTopLevelKeyword(_0x1f5a72,'OR')){_0x3ccfe9=!![],_0x57eab6??='OR-connected\x20JOIN\x20predicates\x20are\x20not\x20supported.';continue;}const _0x2c8b18=splitEquality(_0x1f5a72);if(!_0x2c8b18){containsColumnReference(_0x1d4a8a,_0x29040e)&&(_0x3ccfe9=!![]);continue;}const _0x1d8d20=parseDirectColumnReference(_0x2c8b18[0x0],_0x29040e),_0x1abcdc=parseDirectColumnReference(_0x2c8b18[0x1],_0x29040e),_0x1f661a=containsColumnReference(_0x2c8b18[0x0],_0x29040e),_0x3fc613=containsColumnReference(_0x2c8b18[0x1],_0x29040e),_0x196a22=_0x1d8d20&&!_0x3fc613?_0x1d8d20:_0x1abcdc&&!_0x1f661a?_0x1abcdc:null;if(_0x196a22&&!_0x4db3ba['includes'](_0x196a22))_0x4db3ba[_0x19747a(0xe4)](_0x196a22);else!_0x196a22&&containsColumnReference(_0x1d4a8a,_0x29040e)&&(_0x3ccfe9=!![]);}_0x3ed8da[_0x19747a(0xe4)]({'table':_0x292dce,'alias':_0x29040e,'columns':_0x4db3ba,'unsupportedPredicate':_0x3ccfe9,'unsupportedReason':_0x57eab6,'containsUnresolvedInclude':_0x48e792,'position':_0x7e6af3});}for(const _0xbf49bd of _0x4c10ca[_0x19747a(0x100)](/\bJOIN\b/gi)){const _0x22d99e=_0xbf49bd[_0x19747a(0xf7)]??0x0;if(_0x301e4b[_0x19747a(0xe3)](_0x22d99e))continue;const _0x4e0d00=/^\s+([`"\w$.]+)(?:\s+(?:AS\s+)?([`"\w$]+))?/['exec'](_0x4c7844[_0x19747a(0xf2)](_0x22d99e+_0xbf49bd[0x0]['length'])),_0x58e344=normalizeIdentifier(_0x4e0d00?.[0x1]||'unknown'),_0x27778d=normalizeIdentifier(_0x4e0d00?.[0x2]||''),_0x8ad45b=isSqlClauseKeyword(_0x27778d)?_0x58e344[_0x19747a(0x10b)]('.')['at'](-0x1)||_0x58e344:_0x27778d||_0x58e344['split']('.')['at'](-0x1)||_0x58e344;_0x3ed8da[_0x19747a(0xe4)]({'table':_0x58e344,'alias':_0x8ad45b,'columns':[],'unsupportedPredicate':!![],'unsupportedReason':'Only\x20explicit\x20table\x20JOIN\x20clauses\x20with\x20an\x20ON\x20predicate\x20are\x20supported.','position':_0x22d99e});}const _0x53815c=_0x4c10ca[_0x19747a(0x108)](MYBATIS_INCLUDE_MARKER);return _0x53815c>=0x0&&!_0x3ed8da[_0x19747a(0x10d)](_0x1abdce=>_0x1abdce['containsUnresolvedInclude'])&&_0x3ed8da[_0x19747a(0xe4)]({'table':'unknown','alias':_0x19747a(0xdd),'columns':[],'unsupportedPredicate':!![],'unsupportedReason':_0x19747a(0xf0),'containsUnresolvedInclude':!![],'position':_0x53815c}),_0x3ed8da['sort']((_0xd370de,_0x24237e)=>_0xd370de['position']-_0x24237e['position']);}function stripSqlNoise(_0x557aeb){const _0x3f7516=a234_0x3398,_0x5ec119=Array['from'](_0x557aeb),_0x1c146b=(_0x3eaf14,_0xdff099)=>{for(let _0x4206ca=_0x3eaf14;_0x4206ca<_0xdff099;_0x4206ca+=0x1){_0x5ec119[_0x4206ca]!=='\x0a'&&_0x5ec119[_0x4206ca]!=='\x0d'&&(_0x5ec119[_0x4206ca]='\x20');}};for(let _0x567d4a=0x0;_0x567d4a<_0x5ec119[_0x3f7516(0x104)];_0x567d4a+=0x1){const _0x54efef=_0x5ec119[_0x567d4a],_0x5cc204=_0x5ec119[_0x567d4a+0x1];if(_0x54efef==='\x27'||_0x54efef==='\x22'||_0x54efef==='`'){const _0x5688f7=_0x54efef,_0x111fcd=_0x567d4a;_0x567d4a+=0x1;while(_0x567d4a<_0x5ec119['length']){if(_0x5ec119[_0x567d4a]==='\x5c'&&_0x567d4a+0x1<_0x5ec119[_0x3f7516(0x104)]){_0x567d4a+=0x2;continue;}if(_0x5ec119[_0x567d4a]!==_0x5688f7){_0x567d4a+=0x1;continue;}if(_0x5ec119[_0x567d4a+0x1]===_0x5688f7){_0x567d4a+=0x2;continue;}break;}if(_0x5688f7==='\x27')_0x1c146b(_0x111fcd,Math['min'](_0x567d4a+0x1,_0x5ec119[_0x3f7516(0x104)]));continue;}if(_0x54efef==='-'&&_0x5cc204==='-'){const _0x5ad658=_0x567d4a;while(_0x567d4a<_0x5ec119[_0x3f7516(0x104)]&&_0x5ec119[_0x567d4a]!=='\x0a')_0x567d4a+=0x1;_0x1c146b(_0x5ad658,_0x567d4a);continue;}if(_0x54efef==='/'&&_0x5cc204==='*'){const _0x2cab41=_0x567d4a;_0x567d4a+=0x2;while(_0x567d4a<_0x5ec119['length']&&!(_0x5ec119[_0x567d4a]==='*'&&_0x5ec119[_0x567d4a+0x1]==='/')){_0x567d4a+=0x1;}_0x567d4a=Math[_0x3f7516(0x10e)](_0x567d4a+0x1,_0x5ec119[_0x3f7516(0x104)]-0x1),_0x1c146b(_0x2cab41,_0x567d4a+0x1);continue;}if(_0x54efef==='#'&&_0x5cc204!=='{'){const _0x36380c=_0x567d4a;while(_0x567d4a<_0x5ec119[_0x3f7516(0x104)]&&_0x5ec119[_0x567d4a]!=='\x0a')_0x567d4a+=0x1;_0x1c146b(_0x36380c,_0x567d4a);continue;}if((_0x54efef==='#'||_0x54efef==='$')&&_0x5cc204==='{'){const _0x278e5f=_0x567d4a;_0x567d4a+=0x2;while(_0x567d4a<_0x5ec119[_0x3f7516(0x104)]&&_0x5ec119[_0x567d4a]!=='}')_0x567d4a+=0x1;_0x1c146b(_0x278e5f,Math[_0x3f7516(0x10e)](_0x567d4a+0x1,_0x5ec119['length']));}}return _0x5ec119[_0x3f7516(0x10c)]('');}function maskQuotedIdentifiers(_0x37711b){const _0x4a67c3=a234_0x3398,_0x3b2c52=Array[_0x4a67c3(0x114)](_0x37711b);for(let _0x176413=0x0;_0x176413<_0x3b2c52[_0x4a67c3(0x104)];_0x176413+=0x1){const _0x14ab0b=_0x3b2c52[_0x176413];if(_0x14ab0b!=='\x22'&&_0x14ab0b!=='`')continue;_0x176413+=0x1;while(_0x176413<_0x3b2c52['length']){if(_0x3b2c52[_0x176413]===_0x14ab0b){if(_0x3b2c52[_0x176413+0x1]===_0x14ab0b){_0x3b2c52[_0x176413]='\x20',_0x3b2c52[_0x176413+0x1]='\x20',_0x176413+=0x2;continue;}break;}_0x3b2c52[_0x176413]='\x20',_0x176413+=0x1;}}return _0x3b2c52[_0x4a67c3(0x10c)]('');}function maskNestedQueries(_0x1975c0){const _0x48f7aa=a234_0x3398,_0x21232c=Array[_0x48f7aa(0x114)](_0x1975c0);for(let _0x4a6313=0x0;_0x4a6313<_0x21232c['length'];_0x4a6313+=0x1){if(_0x21232c[_0x4a6313]!=='(')continue;const _0x4d1325=_0x1975c0[_0x48f7aa(0xf2)](_0x4a6313+0x1);if(!/^\s*(?:SELECT|WITH)\b/i[_0x48f7aa(0xef)](_0x4d1325))continue;let _0x26758c=0x1,_0x2958dc=_0x4a6313+0x1;for(;_0x2958dc<_0x21232c['length']&&_0x26758c>0x0;_0x2958dc+=0x1){if(_0x21232c[_0x2958dc]==='(')_0x26758c+=0x1;if(_0x21232c[_0x2958dc]===')')_0x26758c-=0x1;}if(_0x26758c!==0x0)continue;for(let _0x3d72fb=_0x4a6313;_0x3d72fb<_0x2958dc;_0x3d72fb+=0x1){_0x21232c[_0x3d72fb]='\x20';}const _0x235b70=_0x48f7aa(0x119);for(let _0x383a4c=0x0;_0x383a4c<_0x235b70[_0x48f7aa(0x104)]&&_0x4a6313+_0x383a4c<_0x2958dc;_0x383a4c+=0x1){_0x21232c[_0x4a6313+_0x383a4c]=_0x235b70[_0x383a4c];}_0x4a6313=_0x2958dc-0x1;}return _0x21232c[_0x48f7aa(0x10c)]('');}function splitTopLevelAnd(_0x268777){const _0xafda6e=a234_0x3398,_0x5dfc46=[];let _0x4bbcbf=0x0,_0x4aa20d=0x0;for(let _0x4d0087=0x0;_0x4d0087<_0x268777[_0xafda6e(0x104)];_0x4d0087+=0x1){const _0x2f08dd=_0x268777[_0x4d0087];if(_0x2f08dd==='(')_0x4bbcbf+=0x1;if(_0x2f08dd===')')_0x4bbcbf=Math[_0xafda6e(0x106)](0x0,_0x4bbcbf-0x1);_0x4bbcbf===0x0&&_0x268777[_0xafda6e(0xf2)](_0x4d0087)[_0xafda6e(0x109)](/^AND\b/i)&&(_0x4d0087===0x0||/\s/[_0xafda6e(0xef)](_0x268777[_0x4d0087-0x1]??''))&&(_0x5dfc46[_0xafda6e(0xe4)](_0x268777[_0xafda6e(0xf2)](_0x4aa20d,_0x4d0087)[_0xafda6e(0x123)]()),_0x4d0087+=0x2,_0x4aa20d=_0x4d0087+0x1);}const _0x4cc5aa=_0x268777[_0xafda6e(0xf2)](_0x4aa20d)[_0xafda6e(0x123)]();if(_0x4cc5aa)_0x5dfc46[_0xafda6e(0xe4)](_0x4cc5aa);return _0x5dfc46;}function hasTopLevelKeyword(_0x127448,_0xec37e7){const _0x10add4=a234_0x3398;let _0xfce889=0x0;for(let _0x876520=0x0;_0x876520<_0x127448[_0x10add4(0x104)];_0x876520+=0x1){const _0x507497=_0x127448[_0x876520];if(_0x507497==='(')_0xfce889+=0x1;if(_0x507497===')')_0xfce889=Math[_0x10add4(0x106)](0x0,_0xfce889-0x1);if(_0xfce889!==0x0)continue;const _0x234cd0=_0x127448['slice'](_0x876520,_0x876520+_0xec37e7[_0x10add4(0x104)]),_0x52ec19=_0x127448[_0x876520-0x1]??'\x20',_0x508172=_0x127448[_0x876520+_0xec37e7['length']]??'\x20';if(_0x234cd0[_0x10add4(0x10f)]()===_0xec37e7[_0x10add4(0x10f)]()&&!/[\w$]/[_0x10add4(0xef)](_0x52ec19)&&!/[\w$]/[_0x10add4(0xef)](_0x508172))return!![];}return![];}function splitEquality(_0x5c2332){const _0xe17b1a=a234_0x3398,_0x3f554e=stripOuterParentheses(_0x5c2332);let _0x47582a=0x0,_0x9bb9e2;for(let _0x4ff12f=0x0;_0x4ff12f<_0x3f554e[_0xe17b1a(0x104)];_0x4ff12f+=0x1){const _0x2676b1=_0x3f554e[_0x4ff12f];if(_0x2676b1==='(')_0x47582a+=0x1;if(_0x2676b1===')')_0x47582a=Math['max'](0x0,_0x47582a-0x1);const _0x43181d=_0x3f554e[_0x4ff12f-0x1]??'',_0x563ba8=_0x3f554e[_0x4ff12f+0x1]??'';if(_0x2676b1==='='&&_0x47582a===0x0&&!/[!<>=:]/[_0xe17b1a(0xef)](_0x43181d)&&_0x563ba8!=='='){if(_0x9bb9e2!==undefined)return null;_0x9bb9e2=_0x4ff12f;}}return _0x9bb9e2===undefined?null:[_0x3f554e[_0xe17b1a(0xf2)](0x0,_0x9bb9e2)['trim'](),_0x3f554e[_0xe17b1a(0xf2)](_0x9bb9e2+0x1)['trim']()];}function parseDirectColumnReference(_0x4dd28a,_0x3e38c8){const _0x2dfc78=a234_0x3398,_0x26b6f1=/^([`"]?[\w$]+[`"]?)\s*\.\s*([`"]?[\w$]+[`"]?)$/[_0x2dfc78(0x10a)](stripOuterParentheses(_0x4dd28a));if(!_0x26b6f1)return null;if(normalizeIdentifier(_0x26b6f1[0x1]??'')!==normalizeIdentifier(_0x3e38c8))return null;return normalizeIdentifier(_0x26b6f1[0x2]??'');}function containsColumnReference(_0x431319,_0x5206c3){const _0x32d260=a234_0x3398,_0x20b26a=_0x431319[_0x32d260(0xfe)](/[`"]/g,''),_0x4bdfb9=_0x5206c3[_0x32d260(0xfe)](/[.*+?^${}()|[\]\\]/g,'\x5c$&');return new RegExp(_0x32d260(0x107)+_0x4bdfb9+_0x32d260(0xe7),'i')['test'](_0x20b26a);}function findEqualityPrefix(_0x46cdc2,_0x23781a){const _0x43cb77=a234_0x3398,_0x574bc8=new Set(_0x23781a[_0x43cb77(0xfa)](normalizeIdentifier)),_0xa3f77d=[];for(const _0x5375ef of _0x46cdc2){if(!_0x574bc8['has'](normalizeIdentifier(_0x5375ef)))break;_0xa3f77d[_0x43cb77(0xe4)](_0x5375ef);}return _0xa3f77d;}function resolveTableMetadata(_0x3d1d64,_0x1376cd){const _0x31ee5f=a234_0x3398,_0x1b6d7c=normalizeIdentifier(_0x1376cd),_0x364c51=_0x3d1d64[_0x31ee5f(0x120)](_0x104b46=>normalizeIdentifier(_0x104b46[_0x31ee5f(0x124)])===_0x1b6d7c);if(_0x364c51[_0x31ee5f(0x104)]===0x1)return _0x364c51[0x0];const _0x1c5347=_0x1b6d7c[_0x31ee5f(0x115)]('.'),_0x4d2315=_0x1b6d7c[_0x31ee5f(0x10b)]('.')['at'](-0x1),_0x3af596=_0x3d1d64[_0x31ee5f(0x120)](_0x571151=>{const _0x378a51=_0x31ee5f,_0x50b496=normalizeIdentifier(_0x571151[_0x378a51(0x124)]);if(_0x1c5347&&_0x50b496['includes']('.'))return![];return _0x50b496[_0x378a51(0x10b)]('.')['at'](-0x1)===_0x4d2315;});return _0x3af596[_0x31ee5f(0x104)]===0x1?_0x3af596[0x0]:undefined;}function columnNamesMatch(_0x1e2be2,_0x194f4f){return normalizeIdentifier(_0x1e2be2)===normalizeIdentifier(_0x194f4f);}function normalizeIdentifier(_0x108aa7){const _0x368cca=a234_0x3398;return _0x108aa7[_0x368cca(0xfe)](/[`"]/g,'')[_0x368cca(0x123)]()[_0x368cca(0xfc)]();}function isSqlClauseKeyword(_0x3069db){const _0x18f5f9=a234_0x3398;return new Set(['on',_0x18f5f9(0xf6),_0x18f5f9(0xeb),_0x18f5f9(0x10c),_0x18f5f9(0x101),_0x18f5f9(0xf5),'right',_0x18f5f9(0x111),_0x18f5f9(0xe0),_0x18f5f9(0x11b)])['has'](_0x3069db);}function stripOuterParentheses(_0x53fa91){const _0x7c62b3=a234_0x3398;let _0x2ad0fe=_0x53fa91['trim']();while(_0x2ad0fe['startsWith']('(')&&_0x2ad0fe['endsWith'](')')){let _0x241629=0x0,_0x4543de=!![];for(let _0x650bee=0x0;_0x650bee<_0x2ad0fe[_0x7c62b3(0x104)];_0x650bee+=0x1){if(_0x2ad0fe[_0x650bee]==='(')_0x241629+=0x1;if(_0x2ad0fe[_0x650bee]===')')_0x241629-=0x1;if(_0x241629===0x0&&_0x650bee<_0x2ad0fe['length']-0x1){_0x4543de=![];break;}}if(!_0x4543de||_0x241629!==0x0)break;_0x2ad0fe=_0x2ad0fe[_0x7c62b3(0xf2)](0x1,-0x1)['trim']();}return _0x2ad0fe;}
1
+ (function(_0x52fe6c,_0x1bc4e2){const _0x44a11b=a242_0x4ac5,_0x545c04=_0x52fe6c();while(!![]){try{const _0x5ea8f2=parseInt(_0x44a11b(0x1e7))/0x1+-parseInt(_0x44a11b(0x1db))/0x2+parseInt(_0x44a11b(0x20d))/0x3*(-parseInt(_0x44a11b(0x1d8))/0x4)+parseInt(_0x44a11b(0x1f3))/0x5+-parseInt(_0x44a11b(0x1e8))/0x6*(parseInt(_0x44a11b(0x1e1))/0x7)+parseInt(_0x44a11b(0x1e9))/0x8*(-parseInt(_0x44a11b(0x210))/0x9)+-parseInt(_0x44a11b(0x20a))/0xa*(-parseInt(_0x44a11b(0x1fc))/0xb);if(_0x5ea8f2===_0x1bc4e2)break;else _0x545c04['push'](_0x545c04['shift']());}catch(_0x21efd6){_0x545c04['push'](_0x545c04['shift']());}}}(a242_0x8568,0x6ef4f));function a242_0x8568(){const _0x527d00=['filter','6861130XJeXte','trim','JOIN_INDEX_MISSING','3rHaFlr','some','JOIN_PREDICATE_UNSUPPORTED','9jPhSpG','max','min','matchedPrefix','INDEX_METADATA_UNAVAILABLE','indexes','slice','split','map','covered','Relevant\x20columns\x20do\x20not\x20form\x20a\x20complete\x20leftmost\x20index\x20prefix.','add','Not\x20every\x20JOIN\x20target\x20predicate\x20could\x20be\x20audited\x20safely.','join','unsupportedReason','using','\x20JOIN\x20direction\x20is\x20not\x20supported\x20by\x20static\x20index\x20auditing.','search','__sq__','error','from','2805284ubSOeW','The\x20dataset\x20returned\x20no\x20distinguishable\x20index\x20metadata.','INNER','1712224rXFxsa','push','metadataAvailable','indexOf','test','natural','14gTVNJb','length','columns','reduce','MyBatis\x20<include>\x20fragments\x20cannot\x20be\x20expanded\x20for\x20JOIN\x20auditing.','MyBatis\x20<include>\x20JOIN\x20fragments\x20cannot\x20be\x20expanded\x20statically.','259381oSGead','487206CMDYrX','3262312EJXOhn','tableName','match','\x5cs*\x5c.\x5cs*[\x5cw$]+','startsWith','left','replaceAll','toUpperCase','has','full','1321915xnvVuR','exec','table','OR-connected\x20JOIN\x20predicates\x20are\x20not\x20supported.','index','Derived-table\x20JOIN\x20targets\x20are\x20not\x20supported.','alias','unavailable','matchAll','33lPQigy','replace','Only\x20explicit\x20table\x20JOIN\x20clauses\x20with\x20an\x20ON\x20predicate\x20are\x20supported.','(?:^|[^\x5cw$])','inner','No\x20dataset\x20metadata\x20matched\x20the\x20JOIN\x20table.','unknown','\x5c$&','toLowerCase','includes','containsUnresolvedInclude','position','warning'];a242_0x8568=function(){return _0x527d00;};return a242_0x8568();}import{MYBATIS_DYNAMIC_END_MARKER,MYBATIS_DYNAMIC_START_MARKER,MYBATIS_INCLUDE_MARKER,normalizeSqlForStaticAnalysis}from'./sql-validator.js';export function auditSqlJoinIndexes(_0x1b430f,_0x369d9f){const _0x248553=a242_0x4ac5,_0x2c0630=[],_0x1edfed=normalizeSqlForStaticAnalysis(_0x1b430f),_0x18df5a=(_0x1edfed[_0x248553(0x1d6)]?[]:extractJoinFacts(_0x1edfed['sql']))[_0x248553(0x218)](_0x2c7a58=>{const _0x316a8f=_0x248553;if(_0x2c7a58['unsupportedPredicate']||_0x2c7a58[_0x316a8f(0x1e3)][_0x316a8f(0x1e2)]===0x0)return _0x2c0630[_0x316a8f(0x1dc)]({'code':_0x316a8f(0x20f),'table':_0x2c7a58['table'],'alias':_0x2c7a58['alias'],'columns':_0x2c7a58[_0x316a8f(0x1e3)],'reason':_0x2c7a58[_0x316a8f(0x21e)]??_0x316a8f(0x21c)}),{'table':_0x2c7a58[_0x316a8f(0x1f5)],'alias':_0x2c7a58[_0x316a8f(0x1f9)],'columns':_0x2c7a58['columns'],'status':_0x316a8f(0x1fa)};const _0x8bfadd=resolveTableMetadata(_0x369d9f,_0x2c7a58['table']),_0x41d365=(_0x8bfadd?.[_0x316a8f(0x215)]??[])['map'](_0x56b539=>({'index':_0x56b539,'matchedPrefix':findEqualityPrefix(_0x56b539['columns'],_0x2c7a58['columns'])}))[_0x316a8f(0x209)](_0x38c91d=>_0x38c91d[_0x316a8f(0x213)]['length']>0x0),_0x5c3669=_0x41d365[_0x316a8f(0x1e4)]((_0x4c1fec,_0x4fb043)=>!_0x4c1fec||_0x4fb043[_0x316a8f(0x213)][_0x316a8f(0x1e2)]>_0x4c1fec[_0x316a8f(0x213)]['length']?_0x4fb043:_0x4c1fec,_0x41d365[0x0]);if(_0x5c3669)return{'table':_0x2c7a58['table'],'alias':_0x2c7a58['alias'],'columns':_0x2c7a58[_0x316a8f(0x1e3)],'status':_0x316a8f(0x219),'matchedIndex':{..._0x5c3669['index'],'matchedPrefix':_0x5c3669[_0x316a8f(0x213)]}};const _0x87dd9b=_0x8bfadd?.['indexes']['filter'](_0x14c0e5=>_0x14c0e5['columns'][_0x316a8f(0x20e)](_0x57e060=>_0x2c7a58['columns'][_0x316a8f(0x20e)](_0x106f73=>columnNamesMatch(_0x57e060,_0x106f73))))??[];if(_0x87dd9b[_0x316a8f(0x1e2)]>0x0)return _0x2c0630[_0x316a8f(0x1dc)]({'code':'JOIN_INDEX_NOT_USABLE','table':_0x2c7a58['table'],'alias':_0x2c7a58[_0x316a8f(0x1f9)],'columns':_0x2c7a58['columns'],'reason':_0x316a8f(0x21a)}),{'table':_0x2c7a58[_0x316a8f(0x1f5)],'alias':_0x2c7a58[_0x316a8f(0x1f9)],'columns':_0x2c7a58[_0x316a8f(0x1e3)],'status':'warning','candidateIndexes':_0x87dd9b};if(_0x8bfadd&&_0x8bfadd[_0x316a8f(0x1dd)]!==![]&&_0x8bfadd[_0x316a8f(0x215)][_0x316a8f(0x1e2)]>0x0&&_0x2c7a58[_0x316a8f(0x1e3)]['length']>0x0)return _0x2c0630['push']({'code':_0x316a8f(0x20c),'table':_0x2c7a58['table'],'alias':_0x2c7a58[_0x316a8f(0x1f9)],'columns':_0x2c7a58[_0x316a8f(0x1e3)],'reason':'No\x20reported\x20index\x20contains\x20the\x20JOIN\x20access\x20columns.'}),{'table':_0x2c7a58[_0x316a8f(0x1f5)],'alias':_0x2c7a58[_0x316a8f(0x1f9)],'columns':_0x2c7a58[_0x316a8f(0x1e3)],'status':_0x316a8f(0x208)};return _0x2c0630[_0x316a8f(0x1dc)]({'code':_0x316a8f(0x214),'table':_0x2c7a58[_0x316a8f(0x1f5)],'alias':_0x2c7a58[_0x316a8f(0x1f9)],'columns':_0x2c7a58[_0x316a8f(0x1e3)],'reason':_0x8bfadd?_0x316a8f(0x1d9):_0x316a8f(0x201)}),{'table':_0x2c7a58[_0x316a8f(0x1f5)],'alias':_0x2c7a58[_0x316a8f(0x1f9)],'columns':_0x2c7a58[_0x316a8f(0x1e3)],'status':'unavailable'};});return{'checked':_0x18df5a[_0x248553(0x1e2)]>0x0,'joins':_0x18df5a,'warnings':_0x2c0630};}function extractJoinFacts(_0x486cc6){const _0x31eea0=a242_0x4ac5,_0x534740=maskNestedQueries(stripSqlNoise(_0x486cc6)),_0x541c6d=maskQuotedIdentifiers(_0x534740),_0x3fd60f=[],_0x5420d1=new Set(),_0x4d20ae=/\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 _0x401cd4 of _0x534740[_0x31eea0(0x1fb)](_0x4d20ae)){const _0x4b1592=_0x401cd4['index']??0x0,_0x4d5c70=_0x401cd4[0x0][_0x31eea0(0x1d4)](/\bJOIN\b/i),_0x3ff1fd=_0x4b1592+Math[_0x31eea0(0x211)](0x0,_0x4d5c70);if(!/^JOIN\b/i[_0x31eea0(0x1df)](_0x541c6d[_0x31eea0(0x216)](_0x3ff1fd)))continue;_0x5420d1[_0x31eea0(0x21b)](_0x3ff1fd);const _0x145b7e=normalizeIdentifier(_0x401cd4[0x1]||_0x31eea0(0x1da)),_0x177f44=normalizeIdentifier(_0x401cd4[0x2]??''),_0x2a7edd=normalizeIdentifier(_0x401cd4[0x3]||_0x177f44[_0x31eea0(0x217)]('.')['at'](-0x1)||_0x177f44),_0x44f891=[],_0x43f4c6=_0x177f44===_0x31eea0(0x1d5);let _0x415d3c=_0x145b7e==='right'||_0x145b7e===_0x31eea0(0x1f2)||_0x43f4c6,_0x15eeb1=_0x415d3c?_0x43f4c6?_0x31eea0(0x1f8):_0x145b7e['toUpperCase']()+_0x31eea0(0x220):undefined;const _0x20eeda=stripOuterParentheses(_0x401cd4[0x4]??''),_0x64a3a1=_0x20eeda[_0x31eea0(0x205)](MYBATIS_DYNAMIC_START_MARKER)||_0x20eeda[_0x31eea0(0x205)](MYBATIS_DYNAMIC_END_MARKER),_0x53ce67=_0x20eeda['includes'](MYBATIS_INCLUDE_MARKER);_0x64a3a1&&(_0x415d3c=!![],_0x15eeb1??='MyBatis\x20dynamic\x20JOIN\x20predicates\x20cannot\x20be\x20audited\x20deterministically.');_0x53ce67&&(_0x415d3c=!![],_0x15eeb1??=_0x31eea0(0x1e6));const _0x257aed=_0x20eeda[_0x31eea0(0x1ef)](MYBATIS_DYNAMIC_START_MARKER,'\x20')[_0x31eea0(0x1ef)](MYBATIS_DYNAMIC_END_MARKER,'\x20')['replaceAll'](MYBATIS_INCLUDE_MARKER,'\x20');hasTopLevelKeyword(_0x257aed,'OR')&&(_0x415d3c=!![],_0x15eeb1??=_0x31eea0(0x1f6));for(const _0x3cf578 of splitTopLevelAnd(_0x257aed)){const _0xb0f552=stripOuterParentheses(_0x3cf578);if(hasTopLevelKeyword(_0xb0f552,'OR')){_0x415d3c=!![],_0x15eeb1??=_0x31eea0(0x1f6);continue;}const _0x10a3f9=splitEquality(_0xb0f552);if(!_0x10a3f9){containsColumnReference(_0x3cf578,_0x2a7edd)&&(_0x415d3c=!![]);continue;}const _0x4d53a9=parseDirectColumnReference(_0x10a3f9[0x0],_0x2a7edd),_0x459e3c=parseDirectColumnReference(_0x10a3f9[0x1],_0x2a7edd),_0x23c351=containsColumnReference(_0x10a3f9[0x0],_0x2a7edd),_0x5e171b=containsColumnReference(_0x10a3f9[0x1],_0x2a7edd),_0x484167=_0x4d53a9&&!_0x5e171b?_0x4d53a9:_0x459e3c&&!_0x23c351?_0x459e3c:null;if(_0x484167&&!_0x44f891[_0x31eea0(0x205)](_0x484167))_0x44f891[_0x31eea0(0x1dc)](_0x484167);else!_0x484167&&containsColumnReference(_0x3cf578,_0x2a7edd)&&(_0x415d3c=!![]);}_0x3fd60f[_0x31eea0(0x1dc)]({'table':_0x177f44,'alias':_0x2a7edd,'columns':_0x44f891,'unsupportedPredicate':_0x415d3c,'unsupportedReason':_0x15eeb1,'containsUnresolvedInclude':_0x53ce67,'position':_0x3ff1fd});}for(const _0x55d4bf of _0x541c6d[_0x31eea0(0x1fb)](/\bJOIN\b/gi)){const _0x8a3258=_0x55d4bf[_0x31eea0(0x1f7)]??0x0;if(_0x5420d1['has'](_0x8a3258))continue;const _0x16ab03=/^\s+([`"\w$.]+)(?:\s+(?:AS\s+)?([`"\w$]+))?/['exec'](_0x534740[_0x31eea0(0x216)](_0x8a3258+_0x55d4bf[0x0][_0x31eea0(0x1e2)])),_0x5c0dd7=normalizeIdentifier(_0x16ab03?.[0x1]||_0x31eea0(0x202)),_0x4924a5=normalizeIdentifier(_0x16ab03?.[0x2]||''),_0x238b12=isSqlClauseKeyword(_0x4924a5)?_0x5c0dd7[_0x31eea0(0x217)]('.')['at'](-0x1)||_0x5c0dd7:_0x4924a5||_0x5c0dd7[_0x31eea0(0x217)]('.')['at'](-0x1)||_0x5c0dd7;_0x3fd60f[_0x31eea0(0x1dc)]({'table':_0x5c0dd7,'alias':_0x238b12,'columns':[],'unsupportedPredicate':!![],'unsupportedReason':_0x31eea0(0x1fe),'position':_0x8a3258});}const _0x550bdd=_0x541c6d[_0x31eea0(0x1de)](MYBATIS_INCLUDE_MARKER);return _0x550bdd>=0x0&&!_0x3fd60f[_0x31eea0(0x20e)](_0x57dd0d=>_0x57dd0d[_0x31eea0(0x206)])&&_0x3fd60f[_0x31eea0(0x1dc)]({'table':'unknown','alias':_0x31eea0(0x202),'columns':[],'unsupportedPredicate':!![],'unsupportedReason':_0x31eea0(0x1e5),'containsUnresolvedInclude':!![],'position':_0x550bdd}),_0x3fd60f['sort']((_0x36993f,_0x5a31ca)=>_0x36993f[_0x31eea0(0x207)]-_0x5a31ca[_0x31eea0(0x207)]);}function stripSqlNoise(_0x3de0fc){const _0x14fe61=a242_0x4ac5,_0x695ad6=Array[_0x14fe61(0x1d7)](_0x3de0fc),_0x350e92=(_0x4f319a,_0x849427)=>{for(let _0x195709=_0x4f319a;_0x195709<_0x849427;_0x195709+=0x1){_0x695ad6[_0x195709]!=='\x0a'&&_0x695ad6[_0x195709]!=='\x0d'&&(_0x695ad6[_0x195709]='\x20');}};for(let _0x4d482b=0x0;_0x4d482b<_0x695ad6[_0x14fe61(0x1e2)];_0x4d482b+=0x1){const _0x447c10=_0x695ad6[_0x4d482b],_0x38134d=_0x695ad6[_0x4d482b+0x1];if(_0x447c10==='\x27'||_0x447c10==='\x22'||_0x447c10==='`'){const _0x329621=_0x447c10,_0x376c75=_0x4d482b;_0x4d482b+=0x1;while(_0x4d482b<_0x695ad6[_0x14fe61(0x1e2)]){if(_0x695ad6[_0x4d482b]==='\x5c'&&_0x4d482b+0x1<_0x695ad6[_0x14fe61(0x1e2)]){_0x4d482b+=0x2;continue;}if(_0x695ad6[_0x4d482b]!==_0x329621){_0x4d482b+=0x1;continue;}if(_0x695ad6[_0x4d482b+0x1]===_0x329621){_0x4d482b+=0x2;continue;}break;}if(_0x329621==='\x27')_0x350e92(_0x376c75,Math[_0x14fe61(0x212)](_0x4d482b+0x1,_0x695ad6[_0x14fe61(0x1e2)]));continue;}if(_0x447c10==='-'&&_0x38134d==='-'){const _0x28a263=_0x4d482b;while(_0x4d482b<_0x695ad6[_0x14fe61(0x1e2)]&&_0x695ad6[_0x4d482b]!=='\x0a')_0x4d482b+=0x1;_0x350e92(_0x28a263,_0x4d482b);continue;}if(_0x447c10==='/'&&_0x38134d==='*'){const _0x569068=_0x4d482b;_0x4d482b+=0x2;while(_0x4d482b<_0x695ad6['length']&&!(_0x695ad6[_0x4d482b]==='*'&&_0x695ad6[_0x4d482b+0x1]==='/')){_0x4d482b+=0x1;}_0x4d482b=Math[_0x14fe61(0x212)](_0x4d482b+0x1,_0x695ad6[_0x14fe61(0x1e2)]-0x1),_0x350e92(_0x569068,_0x4d482b+0x1);continue;}if(_0x447c10==='#'&&_0x38134d!=='{'){const _0x223e05=_0x4d482b;while(_0x4d482b<_0x695ad6[_0x14fe61(0x1e2)]&&_0x695ad6[_0x4d482b]!=='\x0a')_0x4d482b+=0x1;_0x350e92(_0x223e05,_0x4d482b);continue;}if((_0x447c10==='#'||_0x447c10==='$')&&_0x38134d==='{'){const _0x5ab1ab=_0x4d482b;_0x4d482b+=0x2;while(_0x4d482b<_0x695ad6['length']&&_0x695ad6[_0x4d482b]!=='}')_0x4d482b+=0x1;_0x350e92(_0x5ab1ab,Math[_0x14fe61(0x212)](_0x4d482b+0x1,_0x695ad6[_0x14fe61(0x1e2)]));}}return _0x695ad6[_0x14fe61(0x21d)]('');}function maskQuotedIdentifiers(_0x4935e5){const _0x59fb2d=a242_0x4ac5,_0x1b5038=Array[_0x59fb2d(0x1d7)](_0x4935e5);for(let _0x22595f=0x0;_0x22595f<_0x1b5038['length'];_0x22595f+=0x1){const _0x1cd930=_0x1b5038[_0x22595f];if(_0x1cd930!=='\x22'&&_0x1cd930!=='`')continue;_0x22595f+=0x1;while(_0x22595f<_0x1b5038['length']){if(_0x1b5038[_0x22595f]===_0x1cd930){if(_0x1b5038[_0x22595f+0x1]===_0x1cd930){_0x1b5038[_0x22595f]='\x20',_0x1b5038[_0x22595f+0x1]='\x20',_0x22595f+=0x2;continue;}break;}_0x1b5038[_0x22595f]='\x20',_0x22595f+=0x1;}}return _0x1b5038[_0x59fb2d(0x21d)]('');}function maskNestedQueries(_0x596dd3){const _0x23da26=a242_0x4ac5,_0x259731=Array[_0x23da26(0x1d7)](_0x596dd3);for(let _0x144b2d=0x0;_0x144b2d<_0x259731[_0x23da26(0x1e2)];_0x144b2d+=0x1){if(_0x259731[_0x144b2d]!=='(')continue;const _0x4d963a=_0x596dd3[_0x23da26(0x216)](_0x144b2d+0x1);if(!/^\s*(?:SELECT|WITH)\b/i['test'](_0x4d963a))continue;let _0x26139f=0x1,_0x234d11=_0x144b2d+0x1;for(;_0x234d11<_0x259731[_0x23da26(0x1e2)]&&_0x26139f>0x0;_0x234d11+=0x1){if(_0x259731[_0x234d11]==='(')_0x26139f+=0x1;if(_0x259731[_0x234d11]===')')_0x26139f-=0x1;}if(_0x26139f!==0x0)continue;for(let _0x4bf7b3=_0x144b2d;_0x4bf7b3<_0x234d11;_0x4bf7b3+=0x1){_0x259731[_0x4bf7b3]='\x20';}const _0x1ad9de=_0x23da26(0x1d5);for(let _0xb39a32=0x0;_0xb39a32<_0x1ad9de[_0x23da26(0x1e2)]&&_0x144b2d+_0xb39a32<_0x234d11;_0xb39a32+=0x1){_0x259731[_0x144b2d+_0xb39a32]=_0x1ad9de[_0xb39a32];}_0x144b2d=_0x234d11-0x1;}return _0x259731[_0x23da26(0x21d)]('');}function splitTopLevelAnd(_0x5a0e0c){const _0x145905=a242_0x4ac5,_0x24710d=[];let _0x22e37a=0x0,_0x1e638b=0x0;for(let _0xc029ed=0x0;_0xc029ed<_0x5a0e0c['length'];_0xc029ed+=0x1){const _0x202a23=_0x5a0e0c[_0xc029ed];if(_0x202a23==='(')_0x22e37a+=0x1;if(_0x202a23===')')_0x22e37a=Math[_0x145905(0x211)](0x0,_0x22e37a-0x1);_0x22e37a===0x0&&_0x5a0e0c['slice'](_0xc029ed)[_0x145905(0x1eb)](/^AND\b/i)&&(_0xc029ed===0x0||/\s/['test'](_0x5a0e0c[_0xc029ed-0x1]??''))&&(_0x24710d['push'](_0x5a0e0c[_0x145905(0x216)](_0x1e638b,_0xc029ed)[_0x145905(0x20b)]()),_0xc029ed+=0x2,_0x1e638b=_0xc029ed+0x1);}const _0x4e6804=_0x5a0e0c[_0x145905(0x216)](_0x1e638b)[_0x145905(0x20b)]();if(_0x4e6804)_0x24710d[_0x145905(0x1dc)](_0x4e6804);return _0x24710d;}function hasTopLevelKeyword(_0x19e3e6,_0x510d60){const _0x46d77c=a242_0x4ac5;let _0x483012=0x0;for(let _0x766ad4=0x0;_0x766ad4<_0x19e3e6[_0x46d77c(0x1e2)];_0x766ad4+=0x1){const _0x3633a8=_0x19e3e6[_0x766ad4];if(_0x3633a8==='(')_0x483012+=0x1;if(_0x3633a8===')')_0x483012=Math[_0x46d77c(0x211)](0x0,_0x483012-0x1);if(_0x483012!==0x0)continue;const _0x3f91d1=_0x19e3e6[_0x46d77c(0x216)](_0x766ad4,_0x766ad4+_0x510d60[_0x46d77c(0x1e2)]),_0x5ea88f=_0x19e3e6[_0x766ad4-0x1]??'\x20',_0x3884cd=_0x19e3e6[_0x766ad4+_0x510d60[_0x46d77c(0x1e2)]]??'\x20';if(_0x3f91d1[_0x46d77c(0x1f0)]()===_0x510d60[_0x46d77c(0x1f0)]()&&!/[\w$]/['test'](_0x5ea88f)&&!/[\w$]/['test'](_0x3884cd))return!![];}return![];}function splitEquality(_0x22f5b9){const _0xd7d192=a242_0x4ac5,_0x363942=stripOuterParentheses(_0x22f5b9);let _0x434037=0x0,_0x174ae4;for(let _0x263112=0x0;_0x263112<_0x363942[_0xd7d192(0x1e2)];_0x263112+=0x1){const _0x469d58=_0x363942[_0x263112];if(_0x469d58==='(')_0x434037+=0x1;if(_0x469d58===')')_0x434037=Math['max'](0x0,_0x434037-0x1);const _0x374796=_0x363942[_0x263112-0x1]??'',_0x20a94d=_0x363942[_0x263112+0x1]??'';if(_0x469d58==='='&&_0x434037===0x0&&!/[!<>=:]/['test'](_0x374796)&&_0x20a94d!=='='){if(_0x174ae4!==undefined)return null;_0x174ae4=_0x263112;}}return _0x174ae4===undefined?null:[_0x363942[_0xd7d192(0x216)](0x0,_0x174ae4)['trim'](),_0x363942[_0xd7d192(0x216)](_0x174ae4+0x1)[_0xd7d192(0x20b)]()];}function parseDirectColumnReference(_0x4de687,_0x37b8f7){const _0x2ae6b5=a242_0x4ac5,_0x1d33f4=/^([`"]?[\w$]+[`"]?)\s*\.\s*([`"]?[\w$]+[`"]?)$/[_0x2ae6b5(0x1f4)](stripOuterParentheses(_0x4de687));if(!_0x1d33f4)return null;if(normalizeIdentifier(_0x1d33f4[0x1]??'')!==normalizeIdentifier(_0x37b8f7))return null;return normalizeIdentifier(_0x1d33f4[0x2]??'');}function a242_0x4ac5(_0x4c5d7d,_0x3cb6d7){_0x4c5d7d=_0x4c5d7d-0x1d4;const _0x8568b6=a242_0x8568();let _0x4ac545=_0x8568b6[_0x4c5d7d];return _0x4ac545;}function containsColumnReference(_0x36ab0a,_0x453c46){const _0x1bce7e=a242_0x4ac5,_0x3eab82=_0x36ab0a[_0x1bce7e(0x1fd)](/[`"]/g,''),_0x5221a7=_0x453c46[_0x1bce7e(0x1fd)](/[.*+?^${}()|[\]\\]/g,_0x1bce7e(0x203));return new RegExp(_0x1bce7e(0x1ff)+_0x5221a7+_0x1bce7e(0x1ec),'i')['test'](_0x3eab82);}function findEqualityPrefix(_0x563213,_0x5c5478){const _0x3e393c=a242_0x4ac5,_0x3af6b9=new Set(_0x5c5478[_0x3e393c(0x218)](normalizeIdentifier)),_0x346a5b=[];for(const _0x1f28a3 of _0x563213){if(!_0x3af6b9[_0x3e393c(0x1f1)](normalizeIdentifier(_0x1f28a3)))break;_0x346a5b[_0x3e393c(0x1dc)](_0x1f28a3);}return _0x346a5b;}function resolveTableMetadata(_0x258f0e,_0x3ac690){const _0x75df6a=a242_0x4ac5,_0x3b16a0=normalizeIdentifier(_0x3ac690),_0x306e2c=_0x258f0e['filter'](_0x3c8200=>normalizeIdentifier(_0x3c8200['tableName'])===_0x3b16a0);if(_0x306e2c[_0x75df6a(0x1e2)]===0x1)return _0x306e2c[0x0];const _0x2726c2=_0x3b16a0[_0x75df6a(0x205)]('.'),_0x397203=_0x3b16a0['split']('.')['at'](-0x1),_0x1d266b=_0x258f0e[_0x75df6a(0x209)](_0x3ea596=>{const _0x57f50f=_0x75df6a,_0x181701=normalizeIdentifier(_0x3ea596[_0x57f50f(0x1ea)]);if(_0x2726c2&&_0x181701['includes']('.'))return![];return _0x181701[_0x57f50f(0x217)]('.')['at'](-0x1)===_0x397203;});return _0x1d266b[_0x75df6a(0x1e2)]===0x1?_0x1d266b[0x0]:undefined;}function columnNamesMatch(_0x403e59,_0x10bfd3){return normalizeIdentifier(_0x403e59)===normalizeIdentifier(_0x10bfd3);}function normalizeIdentifier(_0x5e01ed){const _0x2ac06b=a242_0x4ac5;return _0x5e01ed[_0x2ac06b(0x1fd)](/[`"]/g,'')[_0x2ac06b(0x20b)]()[_0x2ac06b(0x204)]();}function isSqlClauseKeyword(_0x498992){const _0x58a72d=a242_0x4ac5;return new Set(['on',_0x58a72d(0x21f),'where',_0x58a72d(0x21d),_0x58a72d(0x200),_0x58a72d(0x1ee),'right','full','cross',_0x58a72d(0x1e0)])[_0x58a72d(0x1f1)](_0x498992);}function stripOuterParentheses(_0x5a2a4f){const _0x28bc77=a242_0x4ac5;let _0x53a17f=_0x5a2a4f[_0x28bc77(0x20b)]();while(_0x53a17f[_0x28bc77(0x1ed)]('(')&&_0x53a17f['endsWith'](')')){let _0x474be8=0x0,_0x7443c8=!![];for(let _0x20cfc5=0x0;_0x20cfc5<_0x53a17f[_0x28bc77(0x1e2)];_0x20cfc5+=0x1){if(_0x53a17f[_0x20cfc5]==='(')_0x474be8+=0x1;if(_0x53a17f[_0x20cfc5]===')')_0x474be8-=0x1;if(_0x474be8===0x0&&_0x20cfc5<_0x53a17f[_0x28bc77(0x1e2)]-0x1){_0x7443c8=![];break;}}if(!_0x7443c8||_0x474be8!==0x0)break;_0x53a17f=_0x53a17f['slice'](0x1,-0x1)['trim']();}return _0x53a17f;}
@@ -1 +1 @@
1
- const a235_0xe342db=a235_0x172e;(function(_0x28cd2d,_0x4fc02f){const _0x55e941=a235_0x172e,_0x336a7f=_0x28cd2d();while(!![]){try{const _0x1bfea6=-parseInt(_0x55e941(0x8b))/0x1*(-parseInt(_0x55e941(0x85))/0x2)+parseInt(_0x55e941(0x7f))/0x3*(parseInt(_0x55e941(0x87))/0x4)+-parseInt(_0x55e941(0x82))/0x5+parseInt(_0x55e941(0x8c))/0x6*(parseInt(_0x55e941(0x88))/0x7)+-parseInt(_0x55e941(0x83))/0x8+-parseInt(_0x55e941(0x84))/0x9+parseInt(_0x55e941(0x8a))/0xa;if(_0x1bfea6===_0x4fc02f)break;else _0x336a7f['push'](_0x336a7f['shift']());}catch(_0x33bda2){_0x336a7f['push'](_0x336a7f['shift']());}}}(a235_0x2ee4,0xa78b1));import{resolve}from'node:path';import{findProjectRootDirectory}from'../../context.js';const DOT_DIR=a235_0xe342db(0x80),LOCK_FILE_NAME=a235_0xe342db(0x89),TRASH_DIR_NAME=a235_0xe342db(0x81);function a235_0x172e(_0x2aeb0f,_0x30a151){_0x2aeb0f=_0x2aeb0f-0x7f;const _0x2ee4c3=a235_0x2ee4();let _0x172e9d=_0x2ee4c3[_0x2aeb0f];return _0x172e9d;}function a235_0x2ee4(){const _0xeb6441=['sql-trash','5252155iQAjGp','6531288CADWUX','3819312PSRIam','82118dFhTfG','/sql','539544cPJjKt','57253FVwFHH','sql.lock.json','9091920LPRtUf','20nrFrFh','618GczLUP','9VIUYlg','.rabetbase'];a235_0x2ee4=function(){return _0xeb6441;};return a235_0x2ee4();}export function loadSqlProjectConfig(_0x1797b8,_0x5c2f49){const _0x5a5841=a235_0xe342db,_0x37c438=resolve(_0x5c2f49??findProjectRootDirectory()),_0xc195b=DOT_DIR+_0x5a5841(0x86),_0x2b2352=_0xc195b+'/'+_0x1797b8;return{'projectRoot':_0x37c438,'appCode':_0x1797b8,'sqlWorkspaceRoot':_0xc195b,'sqlRoot':_0x2b2352,'sqlRootDir':resolve(_0x37c438,DOT_DIR,'sql',_0x1797b8),'lockFilePath':resolve(_0x37c438,DOT_DIR,LOCK_FILE_NAME),'trashDir':resolve(_0x37c438,DOT_DIR,TRASH_DIR_NAME)};}
1
+ const a243_0x509b79=a243_0xb2ea;(function(_0x158f62,_0x4ba48d){const _0x376331=a243_0xb2ea,_0x2d57b2=_0x158f62();while(!![]){try{const _0x3af60e=-parseInt(_0x376331(0x75))/0x1*(-parseInt(_0x376331(0x7c))/0x2)+-parseInt(_0x376331(0x7d))/0x3+-parseInt(_0x376331(0x76))/0x4*(parseInt(_0x376331(0x73))/0x5)+parseInt(_0x376331(0x7a))/0x6+-parseInt(_0x376331(0x77))/0x7+-parseInt(_0x376331(0x71))/0x8+parseInt(_0x376331(0x72))/0x9*(parseInt(_0x376331(0x78))/0xa);if(_0x3af60e===_0x4ba48d)break;else _0x2d57b2['push'](_0x2d57b2['shift']());}catch(_0x39c54f){_0x2d57b2['push'](_0x2d57b2['shift']());}}}(a243_0x1673,0xed27a));import{resolve}from'node:path';import{findProjectRootDirectory}from'../../context.js';const DOT_DIR=a243_0x509b79(0x79),LOCK_FILE_NAME=a243_0x509b79(0x7b),TRASH_DIR_NAME=a243_0x509b79(0x74);export function loadSqlProjectConfig(_0x2ee4bb,_0x5e59af){const _0xcd5e78=resolve(_0x5e59af??findProjectRootDirectory()),_0x13cf2a=DOT_DIR+'/sql',_0xa23d9e=_0x13cf2a+'/'+_0x2ee4bb;return{'projectRoot':_0xcd5e78,'appCode':_0x2ee4bb,'sqlWorkspaceRoot':_0x13cf2a,'sqlRoot':_0xa23d9e,'sqlRootDir':resolve(_0xcd5e78,DOT_DIR,'sql',_0x2ee4bb),'lockFilePath':resolve(_0xcd5e78,DOT_DIR,LOCK_FILE_NAME),'trashDir':resolve(_0xcd5e78,DOT_DIR,TRASH_DIR_NAME)};}function a243_0xb2ea(_0x2752e0,_0x116831){_0x2752e0=_0x2752e0-0x71;const _0x167355=a243_0x1673();let _0xb2ea7d=_0x167355[_0x2752e0];return _0xb2ea7d;}function a243_0x1673(){const _0x30be92=['sql-trash','1157735FujesN','4CYeOES','2547804pdNTIJ','22380390uOXSKr','.rabetbase','3652116fKWGwp','sql.lock.json','2SzOuxz','5824143hLcFze','4378416OBRqmu','9WOSsmB','902095MhXSzm'];a243_0x1673=function(){return _0x30be92;};return a243_0x1673();}
@@ -1 +1 @@
1
- (function(_0x4d980d,_0x44daed){const _0x50fc06=a236_0x5740,_0x2db521=_0x4d980d();while(!![]){try{const _0x4d86fd=-parseInt(_0x50fc06(0x132))/0x1+-parseInt(_0x50fc06(0x116))/0x2*(-parseInt(_0x50fc06(0x119))/0x3)+parseInt(_0x50fc06(0x12e))/0x4*(parseInt(_0x50fc06(0x11f))/0x5)+parseInt(_0x50fc06(0x12a))/0x6*(-parseInt(_0x50fc06(0x122))/0x7)+-parseInt(_0x50fc06(0x120))/0x8*(-parseInt(_0x50fc06(0x12f))/0x9)+-parseInt(_0x50fc06(0x11a))/0xa+parseInt(_0x50fc06(0x117))/0xb;if(_0x4d86fd===_0x44daed)break;else _0x2db521['push'](_0x2db521['shift']());}catch(_0x257cdc){_0x2db521['push'](_0x2db521['shift']());}}}(a236_0x1f2f,0x218ca));import{readdir,stat}from'node:fs/promises';function a236_0x5740(_0x36d052,_0x3297c1){_0x36d052=_0x36d052-0x113;const _0x1f2fa9=a236_0x1f2f();let _0x574028=_0x1f2fa9[_0x36d052];return _0x574028;}import{extname,join,relative}from'node:path';import{buildDefaultSqlFileName,buildSqlRelativePath}from'./utils.js';function extensionToMode(_0x515627){const _0xfab70b=a236_0x5740;if(_0x515627==='.sql')return _0xfab70b(0x124);if(_0x515627===_0xfab70b(0x11b))return _0xfab70b(0x12d);return undefined;}async function scanSqlFilesRecursively(_0xb2cbb2,_0x30a24c){const _0x5dc5c5=a236_0x5740,_0x3e55ff=[];try{const _0x237b17=await readdir(_0xb2cbb2,{'withFileTypes':!![]});for(const _0x489b22 of _0x237b17){const _0x474b21=join(_0xb2cbb2,_0x489b22['name']);if(_0x489b22[_0x5dc5c5(0x121)]()){_0x3e55ff[_0x5dc5c5(0x127)](...await scanSqlFilesRecursively(_0x474b21,_0x30a24c));continue;}if(!_0x489b22[_0x5dc5c5(0x11e)]())continue;const _0x12274e=extname(_0x489b22[_0x5dc5c5(0x131)])[_0x5dc5c5(0x11d)](),_0x5e5a3b=extensionToMode(_0x12274e);if(!_0x5e5a3b)continue;const _0x336b2e=relative(_0x30a24c,_0x474b21)[_0x5dc5c5(0x125)](/\\/g,'/'),_0x179e26=_0x336b2e['split']('/')[_0x5dc5c5(0x118)](Boolean),_0x48c9b2=parseSqlPath(_0x179e26,_0x489b22['name'],_0x12274e);if(!_0x48c9b2)continue;_0x3e55ff['push']({'sqlCode':_0x48c9b2['sqlCode'],'sqlName':_0x48c9b2[_0x5dc5c5(0x12c)],'dbDirectory':_0x179e26[0x0],'filePath':_0x474b21,'relativePath':_0x336b2e,'lockKey':_0x48c9b2[_0x5dc5c5(0x128)],'mode':_0x5e5a3b});}}catch(_0x18fa52){if(_0x18fa52['code']!==_0x5dc5c5(0x114))throw _0x18fa52;}return _0x3e55ff;}export async function scanLocalSqlQueries(_0x5893f4){const _0x3fda68=a236_0x5740;return scanSqlFilesRecursively(_0x5893f4[_0x3fda68(0x130)],_0x5893f4[_0x3fda68(0x130)]);}export function resolveLocalSqlFilePath(_0x4ea887,_0x39a685,_0x196f2d){const _0x5cb649=a236_0x5740,_0x305164=_0x196f2d?.['path']||(_0x196f2d?.['sqlName']||_0x196f2d?.[_0x5cb649(0x123)]?buildSqlRelativePath(_0x39a685,_0x196f2d?.['sqlName'],_0x196f2d?.[_0x5cb649(0x123)],_0x196f2d?.[_0x5cb649(0x126)]||_0x5cb649(0x124),_0x196f2d?.[_0x5cb649(0x129)]):buildDefaultSqlFileName(_0x39a685,_0x196f2d?.[_0x5cb649(0x126)]||_0x5cb649(0x124)));return join(_0x4ea887[_0x5cb649(0x130)],_0x305164);}export async function directoryExists(_0x4ca93c){const _0x9c4a30=a236_0x5740;try{const _0x13e494=await stat(_0x4ca93c);return _0x13e494[_0x9c4a30(0x121)]();}catch{return![];}}function parseSqlPath(_0x2b7e47,_0x4a8c8b,_0x2075b0){const _0x4762f2=a236_0x5740,_0x9d4304=_0x4a8c8b[_0x4762f2(0x12b)](0x0,-_0x2075b0[_0x4762f2(0x115)]);if(_0x2b7e47[_0x4762f2(0x115)]<0x2)return null;const _0x2387ac=_0x9d4304[_0x4762f2(0x11c)]('_');if(_0x2387ac<=0x0||_0x2387ac>=_0x9d4304['length']-0x1)return null;const _0x40cea5=_0x9d4304['slice'](0x0,_0x2387ac);if(!isLikelySqlCode(_0x40cea5))return null;return{'sqlCode':_0x40cea5,'sqlName':_0x9d4304[_0x4762f2(0x12b)](_0x2387ac+0x1)};}function isLikelySqlCode(_0x3a03ca){const _0x35b597=a236_0x5740;return/^[A-Za-z0-9-]+-[A-Za-z0-9-]+$/[_0x35b597(0x113)](_0x3a03ca);}function a236_0x1f2f(){const _0xba6897=['mode','push','sqlCode','dbId','355770WgpzuP','slice','sqlName','mybatisXml','12oQFAhv','117Kytxxo','sqlRootDir','name','118838LThcSr','test','ENOENT','length','162942PpHpvb','953876hJuwRk','filter','3RiLwIO','821420cBJZhP','.xml','indexOf','toLowerCase','isFile','400955zpLeId','66168DuWraT','isDirectory','21lXCtxi','dbName','sql','replace'];a236_0x1f2f=function(){return _0xba6897;};return a236_0x1f2f();}
1
+ (function(_0x4c4695,_0x5aa9cc){const _0x3d5d8a=a244_0x9e72,_0x3c8d79=_0x4c4695();while(!![]){try{const _0x3a1e6a=parseInt(_0x3d5d8a(0x128))/0x1*(parseInt(_0x3d5d8a(0x123))/0x2)+-parseInt(_0x3d5d8a(0x124))/0x3*(parseInt(_0x3d5d8a(0x12e))/0x4)+parseInt(_0x3d5d8a(0x11d))/0x5*(-parseInt(_0x3d5d8a(0x11a))/0x6)+parseInt(_0x3d5d8a(0x133))/0x7*(-parseInt(_0x3d5d8a(0x122))/0x8)+parseInt(_0x3d5d8a(0x127))/0x9+parseInt(_0x3d5d8a(0x126))/0xa*(parseInt(_0x3d5d8a(0x139))/0xb)+-parseInt(_0x3d5d8a(0x125))/0xc;if(_0x3a1e6a===_0x5aa9cc)break;else _0x3c8d79['push'](_0x3c8d79['shift']());}catch(_0x3c7a38){_0x3c8d79['push'](_0x3c8d79['shift']());}}}(a244_0xedb7,0x6bede));function a244_0xedb7(){const _0x22a5c8=['indexOf','length','dbId','404dHmbCL','slice','ENOENT','replace','toLowerCase','7YtqmLw','split','push','dbName','sqlCode','mode','320078JdDbKW','path','filter','30NGJtYt','mybatisXml','sql','876055GVzzMz','code','test','.sql','sqlName','289760HGtFhB','94816DEOWyj','5007TmlrzV','2917596WbgSlE','260LnCAPH','3112155UQhdBT','14ypopLH','name','sqlRootDir'];a244_0xedb7=function(){return _0x22a5c8;};return a244_0xedb7();}import{readdir,stat}from'node:fs/promises';function a244_0x9e72(_0x4c8a48,_0xc549e3){_0x4c8a48=_0x4c8a48-0x119;const _0xedb7b3=a244_0xedb7();let _0x9e7256=_0xedb7b3[_0x4c8a48];return _0x9e7256;}import{extname,join,relative}from'node:path';import{buildDefaultSqlFileName,buildSqlRelativePath}from'./utils.js';function extensionToMode(_0x21383e){const _0x2c9903=a244_0x9e72;if(_0x21383e===_0x2c9903(0x120))return _0x2c9903(0x11c);if(_0x21383e==='.xml')return _0x2c9903(0x11b);return undefined;}async function scanSqlFilesRecursively(_0x4fe100,_0x1271f9){const _0x185f1d=a244_0x9e72,_0x5a3426=[];try{const _0x4e17db=await readdir(_0x4fe100,{'withFileTypes':!![]});for(const _0x45c9a5 of _0x4e17db){const _0x115610=join(_0x4fe100,_0x45c9a5[_0x185f1d(0x129)]);if(_0x45c9a5['isDirectory']()){_0x5a3426[_0x185f1d(0x135)](...await scanSqlFilesRecursively(_0x115610,_0x1271f9));continue;}if(!_0x45c9a5['isFile']())continue;const _0x238035=extname(_0x45c9a5['name'])[_0x185f1d(0x132)](),_0x2e9cad=extensionToMode(_0x238035);if(!_0x2e9cad)continue;const _0x110634=relative(_0x1271f9,_0x115610)[_0x185f1d(0x131)](/\\/g,'/'),_0x257d3f=_0x110634[_0x185f1d(0x134)]('/')[_0x185f1d(0x119)](Boolean),_0x3912fe=parseSqlPath(_0x257d3f,_0x45c9a5['name'],_0x238035);if(!_0x3912fe)continue;_0x5a3426[_0x185f1d(0x135)]({'sqlCode':_0x3912fe['sqlCode'],'sqlName':_0x3912fe[_0x185f1d(0x121)],'dbDirectory':_0x257d3f[0x0],'filePath':_0x115610,'relativePath':_0x110634,'lockKey':_0x3912fe[_0x185f1d(0x137)],'mode':_0x2e9cad});}}catch(_0x127cb6){if(_0x127cb6[_0x185f1d(0x11e)]!==_0x185f1d(0x130))throw _0x127cb6;}return _0x5a3426;}export async function scanLocalSqlQueries(_0x20e121){const _0x22f934=a244_0x9e72;return scanSqlFilesRecursively(_0x20e121[_0x22f934(0x12a)],_0x20e121[_0x22f934(0x12a)]);}export function resolveLocalSqlFilePath(_0x11f695,_0x489767,_0x5c63c3){const _0x565c66=a244_0x9e72,_0x29893c=_0x5c63c3?.[_0x565c66(0x13a)]||(_0x5c63c3?.[_0x565c66(0x121)]||_0x5c63c3?.['dbName']?buildSqlRelativePath(_0x489767,_0x5c63c3?.[_0x565c66(0x121)],_0x5c63c3?.[_0x565c66(0x136)],_0x5c63c3?.[_0x565c66(0x138)]||_0x565c66(0x11c),_0x5c63c3?.[_0x565c66(0x12d)]):buildDefaultSqlFileName(_0x489767,_0x5c63c3?.[_0x565c66(0x138)]||_0x565c66(0x11c)));return join(_0x11f695[_0x565c66(0x12a)],_0x29893c);}export async function directoryExists(_0x302270){try{const _0x51e88=await stat(_0x302270);return _0x51e88['isDirectory']();}catch{return![];}}function parseSqlPath(_0x51ce67,_0x46d8c3,_0x2f46a4){const _0x55d9cd=a244_0x9e72,_0x34ba07=_0x46d8c3['slice'](0x0,-_0x2f46a4[_0x55d9cd(0x12c)]);if(_0x51ce67['length']<0x2)return null;const _0x2d850a=_0x34ba07[_0x55d9cd(0x12b)]('_');if(_0x2d850a<=0x0||_0x2d850a>=_0x34ba07[_0x55d9cd(0x12c)]-0x1)return null;const _0x3de8a4=_0x34ba07[_0x55d9cd(0x12f)](0x0,_0x2d850a);if(!isLikelySqlCode(_0x3de8a4))return null;return{'sqlCode':_0x3de8a4,'sqlName':_0x34ba07[_0x55d9cd(0x12f)](_0x2d850a+0x1)};}function isLikelySqlCode(_0x33d993){const _0xfddacb=a244_0x9e72;return/^[A-Za-z0-9-]+-[A-Za-z0-9-]+$/[_0xfddacb(0x11f)](_0x33d993);}
@@ -1 +1 @@
1
- function a237_0xa411(_0x3ad205,_0x336b1d){_0x3ad205=_0x3ad205-0x1ba;const _0xd8717d=a237_0xd871();let _0xa411b8=_0xd8717d[_0x3ad205];return _0xa411b8;}(function(_0x9c5e53,_0x54daa9){const _0x218d79=a237_0xa411,_0xdf9326=_0x9c5e53();while(!![]){try{const _0x3f91a2=parseInt(_0x218d79(0x1c0))/0x1*(parseInt(_0x218d79(0x1c6))/0x2)+parseInt(_0x218d79(0x1bd))/0x3+parseInt(_0x218d79(0x1be))/0x4*(-parseInt(_0x218d79(0x1c2))/0x5)+parseInt(_0x218d79(0x1c7))/0x6*(parseInt(_0x218d79(0x1c8))/0x7)+parseInt(_0x218d79(0x1bf))/0x8+-parseInt(_0x218d79(0x1c5))/0x9*(-parseInt(_0x218d79(0x1c3))/0xa)+-parseInt(_0x218d79(0x1ba))/0xb;if(_0x3f91a2===_0x54daa9)break;else _0xdf9326['push'](_0xdf9326['shift']());}catch(_0x4bafc9){_0xdf9326['push'](_0xdf9326['shift']());}}}(a237_0xd871,0x5ebf4));import{readFile}from'node:fs/promises';import a237_0xee18fa from'node:crypto';export function computeSqlContentHash(_0x545a4d){const _0x27696f=a237_0xa411;return a237_0xee18fa[_0x27696f(0x1bc)]('md5')[_0x27696f(0x1bb)](_0x545a4d)['digest'](_0x27696f(0x1c1));}export async function computeSqlFileHash(_0x30975e){const _0x34990b=a237_0xa411,_0x59bbfc=await readFile(_0x30975e,_0x34990b(0x1c4));return computeSqlContentHash(_0x59bbfc);}function a237_0xd871(){const _0x1fd46d=['11767998isLiHP','update','createHash','1454043bOTHjb','2550452zqbDLh','4888032AevUUM','1079mBhsiy','hex','5bjJnnf','10yPWjSI','utf8','581697ECwPLz','404OFlkia','18006SVcTRW','1673hUArqJ'];a237_0xd871=function(){return _0x1fd46d;};return a237_0xd871();}
1
+ (function(_0x132b9f,_0x3d58f1){const _0x313128=a245_0x30de,_0x401f87=_0x132b9f();while(!![]){try{const _0x18d268=-parseInt(_0x313128(0x1ec))/0x1*(-parseInt(_0x313128(0x1e9))/0x2)+parseInt(_0x313128(0x1e7))/0x3+parseInt(_0x313128(0x1e5))/0x4+-parseInt(_0x313128(0x1e4))/0x5+parseInt(_0x313128(0x1e6))/0x6*(-parseInt(_0x313128(0x1e3))/0x7)+-parseInt(_0x313128(0x1e8))/0x8+-parseInt(_0x313128(0x1eb))/0x9;if(_0x18d268===_0x3d58f1)break;else _0x401f87['push'](_0x401f87['shift']());}catch(_0x8036b){_0x401f87['push'](_0x401f87['shift']());}}}(a245_0x4e2f,0x8e162));function a245_0x30de(_0x404450,_0x4114e8){_0x404450=_0x404450-0x1e1;const _0x4e2f22=a245_0x4e2f();let _0x30de2b=_0x4e2f22[_0x404450];return _0x30de2b;}import{readFile}from'node:fs/promises';import a245_0x542d81 from'node:crypto';function a245_0x4e2f(){const _0x3647d6=['2951574rDQuHS','3196328ZCRhBu','2GtbzNH','utf8','3956499NsPWQs','1124414AUUpWv','md5','createHash','3724YLwmjW','3408840IdrjrS','4475000zTibYb','12678HAJoxS'];a245_0x4e2f=function(){return _0x3647d6;};return a245_0x4e2f();}export function computeSqlContentHash(_0x510073){const _0x1f069b=a245_0x30de;return a245_0x542d81[_0x1f069b(0x1e2)](_0x1f069b(0x1e1))['update'](_0x510073)['digest']('hex');}export async function computeSqlFileHash(_0x118fb4){const _0xe43e=a245_0x30de,_0x3e0ee1=await readFile(_0x118fb4,_0xe43e(0x1ea));return computeSqlContentHash(_0x3e0ee1);}
@@ -1 +1 @@
1
- function a238_0x3c81(_0x43e041,_0x2fbd02){_0x43e041=_0x43e041-0x114;const _0x38bb3f=a238_0x38bb();let _0x3c81b5=_0x38bb3f[_0x43e041];return _0x3c81b5;}function a238_0x38bb(){const _0xb33e31=['110642LiatGv','738906TfxrUe','8ATPNQu','apps','9675250QYMipL','code','3gLfhvf','Check\x20.rabetbase/sql.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.',':\x20sqlRoot\x20mismatch\x20—\x20current\x20\x22','16eaevOF','323157qCoTgf','272294UtZFxH','264Eovqlb','Failed\x20to\x20read\x20SQL\x20lock\x20file:\x20','lastSync','27rCVUVk','sqlRoot','11990yImvqL','\x22.\x20','126boaXIv','ENOENT','parse','63210dMudRf','sqls','\x22\x20vs\x20lock\x20\x22','utf8'];a238_0x38bb=function(){return _0xb33e31;};return a238_0x38bb();}(function(_0x28875d,_0x2ad8fc){const _0x5f3fec=a238_0x3c81,_0xb0c089=_0x28875d();while(!![]){try{const _0x596808=-parseInt(_0x5f3fec(0x11b))/0x1*(parseInt(_0x5f3fec(0x115))/0x2)+-parseInt(_0x5f3fec(0x11f))/0x3*(-parseInt(_0x5f3fec(0x11e))/0x4)+parseInt(_0x5f3fec(0x12b))/0x5*(-parseInt(_0x5f3fec(0x128))/0x6)+parseInt(_0x5f3fec(0x116))/0x7*(parseInt(_0x5f3fec(0x117))/0x8)+-parseInt(_0x5f3fec(0x124))/0x9*(-parseInt(_0x5f3fec(0x126))/0xa)+parseInt(_0x5f3fec(0x120))/0xb*(-parseInt(_0x5f3fec(0x121))/0xc)+parseInt(_0x5f3fec(0x119))/0xd;if(_0x596808===_0x2ad8fc)break;else _0xb0c089['push'](_0xb0c089['shift']());}catch(_0x200bd0){_0xb0c089['push'](_0xb0c089['shift']());}}}(a238_0x38bb,0x4b418));import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';export function createEmptySqlLock(){return{'apps':{}};}export function ensureSqlLockScope(_0x4202db,_0x54d85f,_0x60fc5,_0x2678c7){const _0x2d53b7=a238_0x3c81,_0x24aef4=_0x4202db??createEmptySqlLock();let _0xe126f6=_0x24aef4[_0x2d53b7(0x118)][_0x54d85f];if(!_0xe126f6)return _0xe126f6={'sqlRoot':_0x60fc5,'lastSync':'','sqls':{}},_0x24aef4[_0x2d53b7(0x118)][_0x54d85f]=_0xe126f6,{'lockData':_0x24aef4,'appLock':_0xe126f6};if(!_0xe126f6[_0x2d53b7(0x125)])_0xe126f6['sqlRoot']=_0x60fc5;else{if(_0xe126f6[_0x2d53b7(0x125)]!==_0x60fc5)throw new Error(_0x2678c7+_0x2d53b7(0x11d)+_0x60fc5+_0x2d53b7(0x12d)+_0xe126f6['sqlRoot']+_0x2d53b7(0x127)+_0x2d53b7(0x11c));}return!_0xe126f6[_0x2d53b7(0x12c)]&&(_0xe126f6[_0x2d53b7(0x12c)]={}),!_0xe126f6[_0x2d53b7(0x123)]&&(_0xe126f6[_0x2d53b7(0x123)]=''),{'lockData':_0x24aef4,'appLock':_0xe126f6};}export async function readSqlLockFile(_0x37965f){const _0x41d891=a238_0x3c81;try{const _0x3bf20b=await readFile(_0x37965f,_0x41d891(0x114));return JSON[_0x41d891(0x12a)](_0x3bf20b);}catch(_0x2a7996){if(_0x2a7996[_0x41d891(0x11a)]===_0x41d891(0x129))return null;throw new Error(_0x41d891(0x122)+String(_0x2a7996));}}export async function writeSqlLockFile(_0x10f468,_0x4f8a29){const _0x1a8ed1=a238_0x3c81;await mkdir(dirname(_0x10f468),{'recursive':!![]}),await writeFile(_0x10f468,JSON['stringify'](_0x4f8a29,null,0x2),_0x1a8ed1(0x114));}
1
+ (function(_0x5e0f97,_0x5e5054){const _0x1dd703=a246_0x4d9e,_0x49186c=_0x5e0f97();while(!![]){try{const _0x3576f2=parseInt(_0x1dd703(0x85))/0x1+parseInt(_0x1dd703(0x7b))/0x2*(-parseInt(_0x1dd703(0x81))/0x3)+parseInt(_0x1dd703(0x77))/0x4*(parseInt(_0x1dd703(0x89))/0x5)+-parseInt(_0x1dd703(0x7a))/0x6*(-parseInt(_0x1dd703(0x82))/0x7)+parseInt(_0x1dd703(0x74))/0x8+parseInt(_0x1dd703(0x7d))/0x9*(parseInt(_0x1dd703(0x7f))/0xa)+-parseInt(_0x1dd703(0x7e))/0xb;if(_0x3576f2===_0x5e5054)break;else _0x49186c['push'](_0x49186c['shift']());}catch(_0x44ee80){_0x49186c['push'](_0x49186c['shift']());}}}(a246_0x1153,0x3dbea));import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';function a246_0x4d9e(_0x2a3e9b,_0x19b416){_0x2a3e9b=_0x2a3e9b-0x73;const _0x1153d0=a246_0x1153();let _0x4d9eb2=_0x1153d0[_0x2a3e9b];return _0x4d9eb2;}function a246_0x1153(){const _0x597500=['28862dqcePl','ENOENT','1333845gvCWVB','9470406wVZppk','10AvNvTq','code','60bgkkka','16541WGUphG','utf8','lastSync','315888cfhQqR','\x22.\x20','apps','sqlRoot','16565xIvVzA','stringify','\x22\x20vs\x20lock\x20\x22','3974784cDQdYv','sqls',':\x20sqlRoot\x20mismatch\x20—\x20current\x20\x22','496jxsHVF','parse','Check\x20.rabetbase/sql.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.','78hZbtxw'];a246_0x1153=function(){return _0x597500;};return a246_0x1153();}export function createEmptySqlLock(){return{'apps':{}};}export function ensureSqlLockScope(_0x7a6435,_0x1c0ae3,_0xd7833f,_0x54d4b7){const _0x4bf598=a246_0x4d9e,_0x30d6e0=_0x7a6435??createEmptySqlLock();let _0x37c65c=_0x30d6e0[_0x4bf598(0x87)][_0x1c0ae3];if(!_0x37c65c)return _0x37c65c={'sqlRoot':_0xd7833f,'lastSync':'','sqls':{}},_0x30d6e0['apps'][_0x1c0ae3]=_0x37c65c,{'lockData':_0x30d6e0,'appLock':_0x37c65c};if(!_0x37c65c['sqlRoot'])_0x37c65c[_0x4bf598(0x88)]=_0xd7833f;else{if(_0x37c65c[_0x4bf598(0x88)]!==_0xd7833f)throw new Error(_0x54d4b7+_0x4bf598(0x76)+_0xd7833f+_0x4bf598(0x73)+_0x37c65c[_0x4bf598(0x88)]+_0x4bf598(0x86)+_0x4bf598(0x79));}return!_0x37c65c[_0x4bf598(0x75)]&&(_0x37c65c[_0x4bf598(0x75)]={}),!_0x37c65c[_0x4bf598(0x84)]&&(_0x37c65c['lastSync']=''),{'lockData':_0x30d6e0,'appLock':_0x37c65c};}export async function readSqlLockFile(_0x1e12b2){const _0x4f1b8c=a246_0x4d9e;try{const _0x188de6=await readFile(_0x1e12b2,_0x4f1b8c(0x83));return JSON[_0x4f1b8c(0x78)](_0x188de6);}catch(_0x388f81){if(_0x388f81[_0x4f1b8c(0x80)]===_0x4f1b8c(0x7c))return null;throw new Error('Failed\x20to\x20read\x20SQL\x20lock\x20file:\x20'+String(_0x388f81));}}export async function writeSqlLockFile(_0x301088,_0x47993e){const _0x1bb3bc=a246_0x4d9e;await mkdir(dirname(_0x301088),{'recursive':!![]}),await writeFile(_0x301088,JSON[_0x1bb3bc(0x8a)](_0x47993e,null,0x2),'utf8');}
@@ -1 +1 @@
1
- function a240_0x3c57(_0x4220a7,_0x5453f6){_0x4220a7=_0x4220a7-0xae;const _0x32eb9=a240_0x32eb();let _0x3c5710=_0x32eb9[_0x4220a7];return _0x3c5710;}(function(_0x3e2291,_0x1ee319){const _0x513ac2=a240_0x3c57,_0x4708f2=_0x3e2291();while(!![]){try{const _0x130f76=-parseInt(_0x513ac2(0xbf))/0x1*(parseInt(_0x513ac2(0xb6))/0x2)+parseInt(_0x513ac2(0xb3))/0x3+parseInt(_0x513ac2(0xb4))/0x4+-parseInt(_0x513ac2(0xbd))/0x5+-parseInt(_0x513ac2(0xb9))/0x6*(parseInt(_0x513ac2(0xbb))/0x7)+-parseInt(_0x513ac2(0xc0))/0x8*(parseInt(_0x513ac2(0xaf))/0x9)+parseInt(_0x513ac2(0xba))/0xa;if(_0x130f76===_0x1ee319)break;else _0x4708f2['push'](_0x4708f2['shift']());}catch(_0x229232){_0x4708f2['push'](_0x4708f2['shift']());}}}(a240_0x32eb,0x755ec));function a240_0x32eb(){const _0x15bf9a=['db-','2NolZis','trim','test','2639022JlcBpG','19385460xbbeMh','7wmJNme','trimStart','3007355XPxZuc','.sql','469905YTcPnn','1137664TzTOFZ','unknown-db','27PqpQOd','mybatisXml','replace','sql','942051KQvTKf','664088eQBdXj'];a240_0x32eb=function(){return _0x15bf9a;};return a240_0x32eb();}export function detectSqlMode(_0xa3f230){const _0x14ed54=a240_0x3c57,_0x4bcfbf=_0xa3f230[_0x14ed54(0xbc)]();if(/^<(select|insert|update|delete)\b/i[_0x14ed54(0xb8)](_0x4bcfbf))return _0x14ed54(0xb0);return _0x14ed54(0xb2);}export function getSqlFileExtension(_0x13d91d){const _0xbfdb22=a240_0x3c57;return _0x13d91d===_0xbfdb22(0xb0)?'.xml':_0xbfdb22(0xbe);}export function buildDefaultSqlFileName(_0x559272,_0x5afe3e){return''+_0x559272+getSqlFileExtension(_0x5afe3e);}export function sanitizeSqlPathSegment(_0x51e29a,_0x46856d){const _0x1ab400=a240_0x3c57,_0x4e004e=String(_0x51e29a??'')[_0x1ab400(0xb7)](),_0x518f1a=_0x4e004e[_0x1ab400(0xb1)](/[<>:"/\\|?*\u0000-\u001F]/g,'-')[_0x1ab400(0xb1)](/\s+/g,'-')[_0x1ab400(0xb1)](/-+/g,'-')[_0x1ab400(0xb1)](/^\.+/,'')[_0x1ab400(0xb1)](/\.+$/,'')[_0x1ab400(0xb1)](/^-+/,'')[_0x1ab400(0xb1)](/-+$/,'');return _0x518f1a||_0x46856d;}export function buildDbDirectoryName(_0x94c104,_0x2480ea){const _0x473cd6=a240_0x3c57;return sanitizeSqlPathSegment(_0x94c104,_0x2480ea!=null?_0x473cd6(0xb5)+_0x2480ea:_0x473cd6(0xae));}export function buildSqlRelativePath(_0x54d7f3,_0x475615,_0x5f2b4d,_0x728011,_0x276224){const _0x3e24e1=buildDbDirectoryName(_0x5f2b4d,_0x276224),_0xc97b6a=sanitizeSqlPathSegment(_0x54d7f3,'unknown-sql'),_0x58f767=sanitizeSqlPathSegment(_0x475615,_0xc97b6a);return _0x3e24e1+'/'+_0xc97b6a+'_'+_0x58f767+getSqlFileExtension(_0x728011);}
1
+ (function(_0x4e13e0,_0x4a1f96){const _0x29ae26=a248_0x3d9a,_0x216ae4=_0x4e13e0();while(!![]){try{const _0x2bb640=parseInt(_0x29ae26(0x190))/0x1*(parseInt(_0x29ae26(0x193))/0x2)+-parseInt(_0x29ae26(0x187))/0x3+-parseInt(_0x29ae26(0x18b))/0x4*(parseInt(_0x29ae26(0x195))/0x5)+parseInt(_0x29ae26(0x188))/0x6+-parseInt(_0x29ae26(0x18f))/0x7+parseInt(_0x29ae26(0x186))/0x8*(-parseInt(_0x29ae26(0x189))/0x9)+parseInt(_0x29ae26(0x18d))/0xa;if(_0x2bb640===_0x4a1f96)break;else _0x216ae4['push'](_0x216ae4['shift']());}catch(_0x5bfea9){_0x216ae4['push'](_0x216ae4['shift']());}}}(a248_0x1716,0xabfbc));function a248_0x3d9a(_0x180e8d,_0x36ba36){_0x180e8d=_0x180e8d-0x183;const _0x171657=a248_0x1716();let _0x3d9a2b=_0x171657[_0x180e8d];return _0x3d9a2b;}export function detectSqlMode(_0x2e5667){const _0x292002=a248_0x3d9a,_0x1f792f=_0x2e5667[_0x292002(0x18e)]();if(/^<(select|insert|update|delete)\b/i[_0x292002(0x194)](_0x1f792f))return _0x292002(0x192);return'sql';}function a248_0x1716(){const _0x2a4beb=['unknown-db','4tEhPMv','unknown-sql','5957330GxhXhE','trimStart','1107561lidrGc','40559DZAJSC','trim','mybatisXml','48hVDKou','test','4026235pryzth','.sql','replace','.xml','1407712LTxLih','1598538DPeTMl','4845450kvqLLs','9xGLouN'];a248_0x1716=function(){return _0x2a4beb;};return a248_0x1716();}export function getSqlFileExtension(_0x4b9a8b){const _0x5a1706=a248_0x3d9a;return _0x4b9a8b==='mybatisXml'?_0x5a1706(0x185):_0x5a1706(0x183);}export function buildDefaultSqlFileName(_0x3faded,_0x316927){return''+_0x3faded+getSqlFileExtension(_0x316927);}export function sanitizeSqlPathSegment(_0x5b5bdf,_0x432581){const _0x4a799c=a248_0x3d9a,_0x206133=String(_0x5b5bdf??'')[_0x4a799c(0x191)](),_0x3975be=_0x206133[_0x4a799c(0x184)](/[<>:"/\\|?*\u0000-\u001F]/g,'-')['replace'](/\s+/g,'-')[_0x4a799c(0x184)](/-+/g,'-')['replace'](/^\.+/,'')[_0x4a799c(0x184)](/\.+$/,'')['replace'](/^-+/,'')['replace'](/-+$/,'');return _0x3975be||_0x432581;}export function buildDbDirectoryName(_0x15a727,_0x203c9b){const _0x6b840c=a248_0x3d9a;return sanitizeSqlPathSegment(_0x15a727,_0x203c9b!=null?'db-'+_0x203c9b:_0x6b840c(0x18a));}export function buildSqlRelativePath(_0x3f82a0,_0x326f6d,_0x205c98,_0x2b4aff,_0xd2bb08){const _0x5dc5a4=a248_0x3d9a,_0x1baa67=buildDbDirectoryName(_0x205c98,_0xd2bb08),_0x2fd663=sanitizeSqlPathSegment(_0x3f82a0,_0x5dc5a4(0x18c)),_0x2f49cf=sanitizeSqlPathSegment(_0x326f6d,_0x2fd663);return _0x1baa67+'/'+_0x2fd663+'_'+_0x2f49cf+getSqlFileExtension(_0x2b4aff);}
@@ -1 +1 @@
1
- const a241_0x34dcee=a241_0x1406;(function(_0x7f460a,_0x491a68){const _0x28db8a=a241_0x1406,_0x2e1ad9=_0x7f460a();while(!![]){try{const _0x241c5b=-parseInt(_0x28db8a(0x135))/0x1+parseInt(_0x28db8a(0x103))/0x2+parseInt(_0x28db8a(0xe2))/0x3*(-parseInt(_0x28db8a(0xeb))/0x4)+-parseInt(_0x28db8a(0x10f))/0x5*(-parseInt(_0x28db8a(0xff))/0x6)+parseInt(_0x28db8a(0x117))/0x7+parseInt(_0x28db8a(0x112))/0x8+-parseInt(_0x28db8a(0xfc))/0x9;if(_0x241c5b===_0x491a68)break;else _0x2e1ad9['push'](_0x2e1ad9['shift']());}catch(_0x47671b){_0x2e1ad9['push'](_0x2e1ad9['shift']());}}}(a241_0x3052,0x7eceb));const MYBATIS_OUTER_TAGS=new Map([[a241_0x34dcee(0xea),a241_0x34dcee(0x120)],['insert',a241_0x34dcee(0x123)],[a241_0x34dcee(0x132),'UPDATE'],['delete',a241_0x34dcee(0x125)]]),MYBATIS_DYNAMIC_TAGS=new Set(['if','where','foreach','choose',a241_0x34dcee(0xfb),a241_0x34dcee(0x105),'trim',a241_0x34dcee(0xf3),'bind',a241_0x34dcee(0xe6),'property']),MYBATIS_BRANCH_TAGS=new Set(['if',a241_0x34dcee(0x129),a241_0x34dcee(0xe3),a241_0x34dcee(0xfb),a241_0x34dcee(0x105)]);export const MYBATIS_DYNAMIC_START_MARKER=a241_0x34dcee(0xfe);export const MYBATIS_DYNAMIC_END_MARKER=a241_0x34dcee(0xe1);function a241_0x3052(){const _0x371ee1=['Unterminated\x20XML\x20declaration.','set','&gt;','<![CDATA[','match','property','reason','Invalid\x20attributes\x20on\x20MyBatis\x20XML\x20tag:\x20<','Unsupported\x20MyBatis\x20XML\x20tag:\x20<','when','12846519CCStev','SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT','__RABETBASE_MYBATIS_DYNAMIC_START__','265116mtWxbh','exec','MyBatis\x20dynamic\x20tag\x20must\x20be\x20inside\x20the\x20statement\x20wrapper:\x20<','UNKNOWN','1045370BdReAb','length','otherwise','Invalid\x20XML\x20entity\x20reference.','replace','Unclosed\x20MyBatis\x20XML\x20tag:\x20<','\x20WHERE\x20','mybatisXml','from','indexOf','add','join','115RLTcYh','WITH','-->','7098472kZqowm','type','trim','&amp;','toUpperCase','5253801aNUWnY','DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save','toLowerCase','SQL\x20text\x20must\x20be\x20inside\x20the\x20MyBatis\x20statement\x20wrapper.','test','UPDATE','DDL\x20statements\x20are\x20blocked\x20from\x20auto-save','Unterminated\x20CDATA\x20section.','MyBatis\x20dynamic\x20tag\x20names\x20must\x20be\x20lowercase:\x20<','SELECT','outer','has','INSERT',']]>','DELETE','statementType','MyBatis\x20XML\x20must\x20contain\x20exactly\x20one\x20complete\x20statement\x20wrapper.','Unable\x20to\x20detect\x20SQL\x20type.\x20','foreach','rawName','slice','Invalid\x20MyBatis\x20XML\x20closing\x20tag:\x20</','SQL\x20contains\x20blocked\x20DELETE\x20or\x20DDL\x20statements','error','tagName','Unterminated\x20MyBatis\x20XML\x20tag.','&apos;','update','\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.','sql','488975VSJNhG','\x20with\x20parameters:\x20','replaceAll','Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.',')\x5cb','SQL\x20content\x20is\x20empty','MyBatis\x20<property>\x20must\x20be\x20a\x20self-closing\x20direct\x20child\x20of\x20<include>.','parseInt','__RABETBASE_MYBATIS_DYNAMIC_END__','20973THIUyD','choose','__RABETBASE_MYBATIS_INCLUDE_UNRESOLVED__','^<\x5cs*(?:','include','\x20SET\x20','startsWith','matchAll','select','424ZzqDaz','Multiple\x20MyBatis\x20statement\x20wrappers\x20are\x20not\x20supported.','keys','\x20query\x20targeting\x20','<!--','Mismatched\x20MyBatis\x20XML\x20closing\x20tag:\x20</','push'];a241_0x3052=function(){return _0x371ee1;};return a241_0x3052();}export const MYBATIS_INCLUDE_MARKER=a241_0x34dcee(0xe4);const UNRESOLVED_SQL_FRAGMENT='__RABETBASE_UNRESOLVED_SQL_FRAGMENT__',MYBATIS_OUTER_TAG_PATTERN=new RegExp(a241_0x34dcee(0xe5)+[...MYBATIS_OUTER_TAGS[a241_0x34dcee(0xed)]()][a241_0x34dcee(0x10e)]('|')+a241_0x34dcee(0xdd),'i');export function normalizeSqlForStaticAnalysis(_0x134d66){const _0x34b1ee=a241_0x34dcee,_0x37700b=typeof _0x134d66==='string'?_0x134d66:'';if(!startsWithMybatisStatementWrapper(_0x37700b))return{'sql':_0x37700b,'mode':_0x34b1ee(0x134)};let _0x4ffc66=0x0,_0x439f5a='',_0x41c7a8,_0xa85484=![],_0x1eb776=![];const _0x150154=[];while(_0x4ffc66<_0x37700b[_0x34b1ee(0x104)]){if(_0x37700b[_0x34b1ee(0xe8)](_0x34b1ee(0xef),_0x4ffc66)){const _0x350bc2=_0x37700b[_0x34b1ee(0x10c)](_0x34b1ee(0x111),_0x4ffc66+0x4);if(_0x350bc2<0x0)return invalidMybatisSource('Unterminated\x20XML\x20comment.');_0x439f5a+='\x20',_0x4ffc66=_0x350bc2+0x3;continue;}if(_0x37700b['startsWith'](_0x34b1ee(0xf5),_0x4ffc66)){if(!_0xa85484||_0x1eb776)return invalidMybatisSource('CDATA\x20sections\x20must\x20be\x20inside\x20the\x20MyBatis\x20statement\x20wrapper.');const _0xda564e=_0x37700b[_0x34b1ee(0x10c)](_0x34b1ee(0x124),_0x4ffc66+0x9);if(_0xda564e<0x0)return invalidMybatisSource(_0x34b1ee(0x11e));_0x439f5a+=_0x37700b[_0x34b1ee(0x12b)](_0x4ffc66+0x9,_0xda564e),_0x4ffc66=_0xda564e+0x3;continue;}if(_0x37700b['startsWith']('<?',_0x4ffc66)){if(_0xa85484)return invalidMybatisSource('XML\x20declarations\x20must\x20precede\x20the\x20MyBatis\x20statement\x20wrapper.');const _0x4c7f34=_0x37700b[_0x34b1ee(0x10c)]('?>',_0x4ffc66+0x2);if(_0x4c7f34<0x0)return invalidMybatisSource(_0x34b1ee(0xf2));_0x439f5a+='\x20',_0x4ffc66=_0x4c7f34+0x2;continue;}if(_0x37700b[_0x4ffc66]!=='<'){const _0xc05f3=_0x37700b['indexOf']('<',_0x4ffc66),_0x9b4fef=_0xc05f3<0x0?_0x37700b['length']:_0xc05f3,_0x330331=_0x37700b['slice'](_0x4ffc66,_0x9b4fef);if((!_0xa85484||_0x1eb776)&&_0x330331[_0x34b1ee(0x114)]())return invalidMybatisSource(_0x34b1ee(0x11a));if(_0xa85484&&!_0x1eb776){const _0x2f1b93=decodeXmlEntities(_0x330331);if(_0x2f1b93===null)return invalidMybatisSource(_0x34b1ee(0x106));_0x439f5a+=_0x2f1b93;}else _0x439f5a+='\x20';_0x4ffc66=_0x9b4fef;continue;}const _0x1ba31d=findXmlTagEnd(_0x37700b,_0x4ffc66);if(_0x1ba31d<0x0)return invalidMybatisSource(_0x34b1ee(0x130));const _0x1a1832=_0x37700b['slice'](_0x4ffc66,_0x1ba31d+0x1),_0x2edf71=/^<\s*(\/?)\s*([A-Za-z][\w:-]*)([\s\S]*?)(\/?)\s*>$/[_0x34b1ee(0x100)](_0x1a1832);if(!_0x2edf71)return invalidMybatisSource('Invalid\x20MyBatis\x20XML\x20tag.');const _0x33f4b9=_0x2edf71[0x1]==='/',_0x525012=_0x2edf71[0x2]??'',_0x28e951=_0x525012[_0x34b1ee(0x119)](),_0x2543b0=_0x2edf71[0x3]??'',_0x2c01ae=_0x2edf71[0x4]==='/',_0x4c5051=MYBATIS_OUTER_TAGS['get'](_0x28e951);if(!_0x4c5051&&!MYBATIS_DYNAMIC_TAGS['has'](_0x28e951))return invalidMybatisSource(_0x34b1ee(0xfa)+_0x28e951+'>.');if(!_0x4c5051&&_0x525012!==_0x28e951)return invalidMybatisSource(_0x34b1ee(0x11f)+_0x525012+'>.');if(_0x33f4b9){if(_0x2543b0[_0x34b1ee(0x114)]()||_0x2c01ae)return invalidMybatisSource(_0x34b1ee(0x12c)+_0x525012+'>.');const _0x5e5fb9=_0x150154['at'](-0x1);if(!_0x5e5fb9||(_0x5e5fb9[_0x34b1ee(0x121)]?_0x5e5fb9[_0x34b1ee(0x12f)]!==_0x28e951:_0x5e5fb9[_0x34b1ee(0x12a)]!==_0x525012))return invalidMybatisSource(_0x34b1ee(0xf0)+_0x525012+'>.');_0x150154['pop']();if(_0x5e5fb9[_0x34b1ee(0x121)])_0x1eb776=!![];_0x439f5a+=MYBATIS_BRANCH_TAGS[_0x34b1ee(0x122)](_0x28e951)?'\x20'+MYBATIS_DYNAMIC_END_MARKER+'\x20':'\x20';}else{if(!hasWellFormedXmlAttributes(_0x2543b0))return invalidMybatisSource(_0x34b1ee(0xf9)+_0x525012+'>.');if(_0x28e951===_0x34b1ee(0xf7)&&(!_0x2c01ae||_0x150154['at'](-0x1)?.[_0x34b1ee(0x12f)]!==_0x34b1ee(0xe6)))return invalidMybatisSource(_0x34b1ee(0xdf));if(_0x4c5051){if(_0xa85484||_0x150154['length']>0x0)return invalidMybatisSource(_0x34b1ee(0xec));_0xa85484=!![],_0x1eb776=_0x2c01ae,_0x41c7a8=_0x4c5051;}else{if(!_0xa85484||_0x1eb776)return invalidMybatisSource(_0x34b1ee(0x101)+_0x525012+'>.');}_0x439f5a+=_0x28e951==='where'?_0x34b1ee(0x109):_0x28e951===_0x34b1ee(0xf3)?_0x34b1ee(0xe7):_0x28e951==='include'?'\x20'+MYBATIS_INCLUDE_MARKER+'\x20':MYBATIS_BRANCH_TAGS['has'](_0x28e951)&&!_0x2c01ae?'\x20'+MYBATIS_DYNAMIC_START_MARKER+'\x20':'\x20',!_0x2c01ae&&_0x150154[_0x34b1ee(0xf1)]({'rawName':_0x525012,'tagName':_0x28e951,'outer':!!_0x4c5051});}_0x4ffc66=_0x1ba31d+0x1;}if(_0x150154['length']>0x0)return invalidMybatisSource(_0x34b1ee(0x108)+_0x150154['at'](-0x1)?.[_0x34b1ee(0x12a)]+'>.');if(!_0xa85484||!_0x1eb776)return invalidMybatisSource(_0x34b1ee(0x127));return{'sql':_0x439f5a[_0x34b1ee(0x114)](),'mode':'mybatisXml',..._0x41c7a8?{'statementType':_0x41c7a8}:{}};}function hasWellFormedXmlAttributes(_0x541fed){const _0x198460=a241_0x34dcee;let _0xdcceb4=0x0;const _0x2ebbed=new Set();while(_0xdcceb4<_0x541fed['length']){while(_0xdcceb4<_0x541fed[_0x198460(0x104)]&&/\s/[_0x198460(0x11b)](_0x541fed[_0xdcceb4]??''))_0xdcceb4+=0x1;if(_0xdcceb4>=_0x541fed[_0x198460(0x104)])return!![];const _0x5a08b8=/^[A-Za-z_:][\w:.-]*/[_0x198460(0x100)](_0x541fed[_0x198460(0x12b)](_0xdcceb4)),_0x28c3e8=_0x5a08b8?.[0x0];if(!_0x28c3e8||_0x2ebbed['has'](_0x28c3e8))return![];_0x2ebbed[_0x198460(0x10d)](_0x28c3e8),_0xdcceb4+=_0x28c3e8[_0x198460(0x104)];while(_0xdcceb4<_0x541fed[_0x198460(0x104)]&&/\s/[_0x198460(0x11b)](_0x541fed[_0xdcceb4]??''))_0xdcceb4+=0x1;if(_0x541fed[_0xdcceb4]!=='=')return![];_0xdcceb4+=0x1;while(_0xdcceb4<_0x541fed[_0x198460(0x104)]&&/\s/['test'](_0x541fed[_0xdcceb4]??''))_0xdcceb4+=0x1;const _0x3526f9=_0x541fed[_0xdcceb4];if(_0x3526f9!=='\x22'&&_0x3526f9!=='\x27')return![];_0xdcceb4+=0x1;const _0x51107d=_0x541fed[_0x198460(0x10c)](_0x3526f9,_0xdcceb4);if(_0x51107d<0x0)return![];if(decodeXmlEntities(_0x541fed[_0x198460(0x12b)](_0xdcceb4,_0x51107d))===null)return![];_0xdcceb4=_0x51107d+0x1;}return!![];}function startsWithMybatisStatementWrapper(_0x70acc5){const _0x3a6ab9=a241_0x34dcee;let _0x571a04=0x0;const _0x244e21=()=>{const _0x2d1920=a241_0x1406;while(_0x571a04<_0x70acc5[_0x2d1920(0x104)]&&/\s/['test'](_0x70acc5[_0x571a04]??''))_0x571a04+=0x1;};_0x244e21();while(_0x571a04<_0x70acc5[_0x3a6ab9(0x104)]){if(_0x70acc5['startsWith'](_0x3a6ab9(0xef),_0x571a04)){const _0x4cf144=_0x70acc5[_0x3a6ab9(0x10c)]('-->',_0x571a04+0x4);if(_0x4cf144<0x0)return!![];_0x571a04=_0x4cf144+0x3,_0x244e21();continue;}if(_0x70acc5[_0x3a6ab9(0xe8)]('<?',_0x571a04)){const _0x592df7=_0x70acc5[_0x3a6ab9(0x10c)]('?>',_0x571a04+0x2);if(_0x592df7<0x0)return!![];_0x571a04=_0x592df7+0x2,_0x244e21();continue;}break;}return MYBATIS_OUTER_TAG_PATTERN['test'](_0x70acc5[_0x3a6ab9(0x12b)](_0x571a04));}function invalidMybatisSource(_0x55b8f9){const _0x8e56e5=a241_0x34dcee;return{'sql':'','mode':_0x8e56e5(0x10a),'error':_0x55b8f9};}function findXmlTagEnd(_0x59db72,_0xc3f794){let _0x3ee8e9;for(let _0x4fc0e2=_0xc3f794+0x1;_0x4fc0e2<_0x59db72['length'];_0x4fc0e2+=0x1){const _0x3b97ee=_0x59db72[_0x4fc0e2];if(_0x3ee8e9){if(_0x3b97ee===_0x3ee8e9)_0x3ee8e9=undefined;continue;}if(_0x3b97ee==='\x22'||_0x3b97ee==='\x27'){_0x3ee8e9=_0x3b97ee;continue;}if(_0x3b97ee==='>')return _0x4fc0e2;}return-0x1;}function decodeXmlEntities(_0x25e59c){const _0x2e9334=a241_0x34dcee;let _0x53051b=![];const _0x536231=_0x25e59c[_0x2e9334(0x107)](/&(?:#x[0-9a-f]+;|#[0-9]+;|[A-Za-z_:][\w:.-]*;)?/g,_0x3fa37d=>{const _0x564786=_0x2e9334;if(_0x3fa37d==='&lt;')return'<';if(_0x3fa37d===_0x564786(0xf4))return'>';if(_0x3fa37d==='&quot;')return'\x22';if(_0x3fa37d===_0x564786(0x131))return'\x27';if(_0x3fa37d===_0x564786(0x115))return'&';const _0x54b864=/^&#(?:x([0-9a-f]+)|([0-9]+));$/[_0x564786(0x100)](_0x3fa37d);if(_0x54b864){const _0x1c7589=_0x54b864[0x1],_0x169748=_0x54b864[0x2],_0x34f2c7=Number[_0x564786(0xe0)](_0x1c7589??_0x169748??'',_0x1c7589?0x10:0xa);if(isValidXmlCharacter(_0x34f2c7))return String['fromCodePoint'](_0x34f2c7);}return _0x53051b=!![],'';});return _0x53051b?null:_0x536231;}function isValidXmlCharacter(_0x3cfb10){return _0x3cfb10===0x9||_0x3cfb10===0xa||_0x3cfb10===0xd||_0x3cfb10>=0x20&&_0x3cfb10<=0xd7ff||_0x3cfb10>=0xe000&&_0x3cfb10<=0xfffd||_0x3cfb10>=0x10000&&_0x3cfb10<=0x10ffff;}export function detectSqlType(_0x5b4262){return detectNormalizedSqlType(normalizeSqlForStaticAnalysis(_0x5b4262));}function detectNormalizedSqlType(_0x2ea95b){const _0x14de93=a241_0x34dcee;if(_0x2ea95b['error'])return{'type':_0x14de93(0x102),'isSelectOnly':![],'isDangerous':![],'reason':_0x2ea95b[_0x14de93(0x12e)]};if(!_0x2ea95b[_0x14de93(0x134)]['trim']())return{'type':_0x14de93(0x102),'isSelectOnly':![],'isDangerous':![],'reason':_0x14de93(0xde)};const _0x1d5476=stripStaticAnalysisMarkers(_0x2ea95b[_0x14de93(0x134)])[_0x14de93(0x107)](/#\{[^}]*\}/g,'?')[_0x14de93(0x107)](/\$\{[^}]*\}/g,'?')[_0x14de93(0x107)](/@[^(\s]+(\([^)]*\))?/g,'')[_0x14de93(0x107)](/\/\*[\s\S]*?\*\//g,'')[_0x14de93(0x114)](),_0x39ee0f=_0x1d5476['split']('\x0a');let _0x3da6aa='';for(const _0x589124 of _0x39ee0f){const _0x2dfcba=_0x589124[_0x14de93(0x114)]();if(!_0x2dfcba||_0x2dfcba[_0x14de93(0xe8)]('--')||_0x2dfcba[_0x14de93(0xe8)]('/*'))continue;_0x3da6aa=_0x2dfcba;break;}const _0x51fe62=_0x3da6aa[_0x14de93(0x116)](),_0x2b6b8d=_0x2ea95b[_0x14de93(0x126)],_0x56c63e=maskSqlTextForBlockedKeywordScan(_0x1d5476),_0x4a5420=/\b(DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x14de93(0x11b)](_0x56c63e);if(_0x2b6b8d==='SELECT'||!_0x2b6b8d&&(_0x51fe62[_0x14de93(0xe8)]('SELECT')||_0x51fe62['startsWith'](_0x14de93(0x110)))){const _0x279c7a=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x14de93(0x11b)](_0x1d5476);return{'type':_0x14de93(0x120),'isSelectOnly':!_0x279c7a,'isDangerous':_0x279c7a,'reason':_0x279c7a?_0x14de93(0xfd):undefined};}if(_0x2b6b8d===_0x14de93(0x123)||!_0x2b6b8d&&_0x51fe62[_0x14de93(0xe8)](_0x14de93(0x123)))return{'type':_0x14de93(0x123),'isSelectOnly':![],'isDangerous':_0x4a5420,'reason':_0x4a5420?_0x14de93(0x12d):undefined};if(_0x2b6b8d===_0x14de93(0x11c)||!_0x2b6b8d&&_0x51fe62['startsWith'](_0x14de93(0x11c)))return{'type':_0x14de93(0x11c),'isSelectOnly':![],'isDangerous':_0x4a5420,'reason':_0x4a5420?_0x14de93(0x12d):undefined};if(_0x2b6b8d==='DELETE'||!_0x2b6b8d&&_0x51fe62['startsWith'](_0x14de93(0x125)))return{'type':_0x14de93(0x125),'isSelectOnly':![],'isDangerous':!![],'reason':_0x14de93(0x118)};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i[_0x14de93(0x11b)](_0x51fe62))return{'type':'DDL','isSelectOnly':![],'isDangerous':!![],'reason':_0x14de93(0x11d)};return{'type':_0x14de93(0x102),'isSelectOnly':![],'isDangerous':![]};}function stripStaticAnalysisMarkers(_0xebc666){const _0xa4c117=a241_0x34dcee;return _0xebc666[_0xa4c117(0xdb)](MYBATIS_DYNAMIC_START_MARKER,'\x20')['replaceAll'](MYBATIS_DYNAMIC_END_MARKER,'\x20')[_0xa4c117(0xdb)](MYBATIS_INCLUDE_MARKER,'\x20'+UNRESOLVED_SQL_FRAGMENT+'\x20');}function maskSqlTextForBlockedKeywordScan(_0x5e01ad){const _0x2cc240=a241_0x34dcee;return _0x5e01ad[_0x2cc240(0x107)](/'(?:''|\\.|[^'])*'/g,'\x20')[_0x2cc240(0x107)](/"(?:""|\\.|[^"])*"/g,'\x20')['replace'](/`(?:``|\\.|[^`])*`/g,'\x20')[_0x2cc240(0x107)](/--.*$/gm,'\x20')[_0x2cc240(0x107)](/#.*$/gm,'\x20')[_0x2cc240(0x107)](/\/\*[\s\S]*?\*\//g,'\x20');}function extractTables(_0xb8ceac){const _0xe257=a241_0x34dcee,_0x5bda9d=_0xb8ceac[_0xe257(0x107)](/#\{[^}]*\}/g,'?')[_0xe257(0x107)](/\$\{[^}]*\}/g,'?')[_0xe257(0x107)](/'[^']*'/g,'\x27\x27')[_0xe257(0x107)](/--.*$/gm,'')[_0xe257(0x107)](/\/\*[\s\S]*?\*\//g,''),_0x5234fb=[],_0x5a272e=_0x5bda9d[_0xe257(0xf6)](/FROM\s+([^\s,)(]+)/i);addTable(_0x5234fb,_0x5a272e?.[0x1]);for(const _0x7c573b of _0x5bda9d[_0xe257(0xe9)](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){addTable(_0x5234fb,_0x7c573b[0x1]);}const _0x12f1d1=_0x5bda9d[_0xe257(0xf6)](/INTO\s+([^\s(]+)/i);addTable(_0x5234fb,_0x12f1d1?.[0x1]);const _0x174a9e=_0x5bda9d[_0xe257(0xf6)](/UPDATE\s+([^\s,)(]+)/i);return addTable(_0x5234fb,_0x174a9e?.[0x1]),_0x5234fb;}function addTable(_0x5507b6,_0x6b8a3d){const _0x28d2ee=a241_0x34dcee,_0x342e6a=_0x6b8a3d?.[_0x28d2ee(0x107)](/[`"]/g,'');_0x342e6a&&_0x342e6a!==UNRESOLVED_SQL_FRAGMENT&&!_0x5507b6['includes'](_0x342e6a)&&_0x5507b6['push'](_0x342e6a);}function extractParameters(_0x22e8a9){const _0xf1e058=a241_0x34dcee,_0x360ee7=new Set();for(const _0x54d02f of _0x22e8a9[_0xf1e058(0xe9)](/[#$]\{\s*([A-Za-z_][\w.]*)\s*(?=[,}])/g)){if(_0x54d02f[0x1])_0x360ee7[_0xf1e058(0x10d)](_0x54d02f[0x1]);}return Array[_0xf1e058(0x10b)](_0x360ee7);}function a241_0x1406(_0x212930,_0x43a7d2){_0x212930=_0x212930-0xda;const _0x305208=a241_0x3052();let _0x1406c9=_0x305208[_0x212930];return _0x1406c9;}export function validateSql(_0x25526f){const _0x843a1c=a241_0x34dcee,_0x256a68=normalizeSqlForStaticAnalysis(_0x25526f),_0x54dd25=detectNormalizedSqlType(_0x256a68),_0x47a305=stripStaticAnalysisMarkers(_0x256a68['sql']),_0x547e3c=_0x256a68[_0x843a1c(0x12e)]?[]:extractTables(_0x47a305),_0x2e0004=_0x256a68['error']?[]:extractParameters(_0x47a305);if(_0x54dd25['isDangerous'])return{'valid':![],'sqlType':_0x54dd25,'tables':_0x547e3c,'parameters':_0x2e0004,'message':_0x54dd25[_0x843a1c(0xf8)]||_0x54dd25[_0x843a1c(0x113)]+_0x843a1c(0x133)};if(_0x54dd25[_0x843a1c(0x113)]==='UNKNOWN')return{'valid':![],'sqlType':_0x54dd25,'tables':_0x547e3c,'parameters':_0x2e0004,'message':_0x256a68[_0x843a1c(0x12e)]?_0x843a1c(0x128)+_0x256a68[_0x843a1c(0x12e)]:_0x843a1c(0xdc)};return{'valid':!![],'sqlType':_0x54dd25,'tables':_0x547e3c,'parameters':_0x2e0004,'message':_0x54dd25[_0x843a1c(0x113)]+_0x843a1c(0xee)+(_0x547e3c[_0x843a1c(0x104)]?_0x547e3c[_0x843a1c(0x10e)](',\x20'):'unknown\x20table(s)')+(_0x2e0004['length']?_0x843a1c(0xda)+_0x2e0004[_0x843a1c(0x10e)](',\x20'):'')};}
1
+ function a249_0x505d(){const _0x4ad064=['627695AGoMrr','621296nvBSSH','fromCodePoint','rawName','Invalid\x20MyBatis\x20XML\x20tag.','tagName','set','property','MyBatis\x20XML\x20must\x20contain\x20exactly\x20one\x20complete\x20statement\x20wrapper.','Unable\x20to\x20detect\x20SQL\x20type.\x20','get','type','723432AsWDPY','6RoLBpt','UNKNOWN','join','__RABETBASE_MYBATIS_INCLUDE_UNRESOLVED__','keys','__RABETBASE_UNRESOLVED_SQL_FRAGMENT__','&apos;','toLowerCase','Invalid\x20attributes\x20on\x20MyBatis\x20XML\x20tag:\x20<','884556JIYiLR','slice','Invalid\x20XML\x20entity\x20reference.','length','test','replaceAll','23684bsxnwu','WITH','^<\x5cs*(?:','Unterminated\x20XML\x20comment.','match','1140980TCzxzW','8wDkvOo','string','&amp;','\x20query\x20targeting\x20','\x20WHERE\x20','includes','Unterminated\x20MyBatis\x20XML\x20tag.','insert','otherwise','push','&lt;','isDangerous','when','27EEauKT','matchAll','select','Mismatched\x20MyBatis\x20XML\x20closing\x20tag:\x20</','__RABETBASE_MYBATIS_DYNAMIC_START__','SQL\x20contains\x20blocked\x20DELETE\x20or\x20DDL\x20statements','from','has','\x20with\x20parameters:\x20','UPDATE','include','DELETE','add','3603131zEiFht','where','update','exec','Unsupported\x20MyBatis\x20XML\x20tag:\x20<','foreach','MyBatis\x20<property>\x20must\x20be\x20a\x20self-closing\x20direct\x20child\x20of\x20<include>.','__RABETBASE_MYBATIS_DYNAMIC_END__','pop','SELECT','trim','&quot;','sql','SQL\x20content\x20is\x20empty','MyBatis\x20dynamic\x20tag\x20must\x20be\x20inside\x20the\x20statement\x20wrapper:\x20<','<!--','\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.',')\x5cb','choose','split','indexOf','startsWith','outer','mybatisXml','replace','INSERT','\x20SET\x20','toUpperCase','DDL','Invalid\x20MyBatis\x20XML\x20closing\x20tag:\x20</','-->','Unclosed\x20MyBatis\x20XML\x20tag:\x20<','SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT','Multiple\x20MyBatis\x20statement\x20wrappers\x20are\x20not\x20supported.','error','Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.','reason','parseInt'];a249_0x505d=function(){return _0x4ad064;};return a249_0x505d();}const a249_0x3c89cd=a249_0x53ac;(function(_0x1092c9,_0x5301a5){const _0x49a823=a249_0x53ac,_0x26f7bf=_0x1092c9();while(!![]){try{const _0x403af0=parseInt(_0x49a823(0x1cc))/0x1+parseInt(_0x49a823(0x1bc))/0x2+-parseInt(_0x49a823(0x1c6))/0x3+-parseInt(_0x49a823(0x1d2))/0x4*(-parseInt(_0x49a823(0x1b0))/0x5)+parseInt(_0x49a823(0x1bd))/0x6*(parseInt(_0x49a823(0x1ec))/0x7)+-parseInt(_0x49a823(0x1b1))/0x8+parseInt(_0x49a823(0x1df))/0x9*(-parseInt(_0x49a823(0x1d1))/0xa);if(_0x403af0===_0x5301a5)break;else _0x26f7bf['push'](_0x26f7bf['shift']());}catch(_0x216613){_0x26f7bf['push'](_0x26f7bf['shift']());}}}(a249_0x505d,0x6a8b3));const MYBATIS_OUTER_TAGS=new Map([[a249_0x3c89cd(0x1e1),a249_0x3c89cd(0x1f5)],[a249_0x3c89cd(0x1d9),a249_0x3c89cd(0x205)],[a249_0x3c89cd(0x1ee),a249_0x3c89cd(0x1e8)],['delete','DELETE']]),MYBATIS_DYNAMIC_TAGS=new Set(['if','where',a249_0x3c89cd(0x1f1),a249_0x3c89cd(0x1fe),'when',a249_0x3c89cd(0x1da),a249_0x3c89cd(0x1f6),a249_0x3c89cd(0x1b6),'bind',a249_0x3c89cd(0x1e9),a249_0x3c89cd(0x1b7)]),MYBATIS_BRANCH_TAGS=new Set(['if',a249_0x3c89cd(0x1f1),'choose',a249_0x3c89cd(0x1de),'otherwise']);export const MYBATIS_DYNAMIC_START_MARKER=a249_0x3c89cd(0x1e3);export const MYBATIS_DYNAMIC_END_MARKER=a249_0x3c89cd(0x1f3);export const MYBATIS_INCLUDE_MARKER=a249_0x3c89cd(0x1c0);const UNRESOLVED_SQL_FRAGMENT=a249_0x3c89cd(0x1c2),MYBATIS_OUTER_TAG_PATTERN=new RegExp(a249_0x3c89cd(0x1ce)+[...MYBATIS_OUTER_TAGS[a249_0x3c89cd(0x1c1)]()][a249_0x3c89cd(0x1bf)]('|')+a249_0x3c89cd(0x1fd),'i');export function normalizeSqlForStaticAnalysis(_0x3deadf){const _0x2c7aeb=a249_0x3c89cd,_0x3c401b=typeof _0x3deadf===_0x2c7aeb(0x1d3)?_0x3deadf:'';if(!startsWithMybatisStatementWrapper(_0x3c401b))return{'sql':_0x3c401b,'mode':_0x2c7aeb(0x1f8)};let _0x1431ba=0x0,_0x3a475f='',_0xfaf6fa,_0xde1d6d=![],_0x5010ec=![];const _0x529504=[];while(_0x1431ba<_0x3c401b[_0x2c7aeb(0x1c9)]){if(_0x3c401b['startsWith'](_0x2c7aeb(0x1fb),_0x1431ba)){const _0x396d44=_0x3c401b[_0x2c7aeb(0x200)](_0x2c7aeb(0x20a),_0x1431ba+0x4);if(_0x396d44<0x0)return invalidMybatisSource(_0x2c7aeb(0x1cf));_0x3a475f+='\x20',_0x1431ba=_0x396d44+0x3;continue;}if(_0x3c401b[_0x2c7aeb(0x201)]('<![CDATA[',_0x1431ba)){if(!_0xde1d6d||_0x5010ec)return invalidMybatisSource('CDATA\x20sections\x20must\x20be\x20inside\x20the\x20MyBatis\x20statement\x20wrapper.');const _0x497f8e=_0x3c401b[_0x2c7aeb(0x200)](']]>',_0x1431ba+0x9);if(_0x497f8e<0x0)return invalidMybatisSource('Unterminated\x20CDATA\x20section.');_0x3a475f+=_0x3c401b['slice'](_0x1431ba+0x9,_0x497f8e),_0x1431ba=_0x497f8e+0x3;continue;}if(_0x3c401b['startsWith']('<?',_0x1431ba)){if(_0xde1d6d)return invalidMybatisSource('XML\x20declarations\x20must\x20precede\x20the\x20MyBatis\x20statement\x20wrapper.');const _0x12d36f=_0x3c401b[_0x2c7aeb(0x200)]('?>',_0x1431ba+0x2);if(_0x12d36f<0x0)return invalidMybatisSource('Unterminated\x20XML\x20declaration.');_0x3a475f+='\x20',_0x1431ba=_0x12d36f+0x2;continue;}if(_0x3c401b[_0x1431ba]!=='<'){const _0xa61cfa=_0x3c401b['indexOf']('<',_0x1431ba),_0x56f304=_0xa61cfa<0x0?_0x3c401b[_0x2c7aeb(0x1c9)]:_0xa61cfa,_0x5eb41d=_0x3c401b['slice'](_0x1431ba,_0x56f304);if((!_0xde1d6d||_0x5010ec)&&_0x5eb41d[_0x2c7aeb(0x1f6)]())return invalidMybatisSource('SQL\x20text\x20must\x20be\x20inside\x20the\x20MyBatis\x20statement\x20wrapper.');if(_0xde1d6d&&!_0x5010ec){const _0xf1d880=decodeXmlEntities(_0x5eb41d);if(_0xf1d880===null)return invalidMybatisSource(_0x2c7aeb(0x1c8));_0x3a475f+=_0xf1d880;}else _0x3a475f+='\x20';_0x1431ba=_0x56f304;continue;}const _0x3d86f8=findXmlTagEnd(_0x3c401b,_0x1431ba);if(_0x3d86f8<0x0)return invalidMybatisSource(_0x2c7aeb(0x1d8));const _0x4fdeca=_0x3c401b[_0x2c7aeb(0x1c7)](_0x1431ba,_0x3d86f8+0x1),_0x32e89=/^<\s*(\/?)\s*([A-Za-z][\w:-]*)([\s\S]*?)(\/?)\s*>$/[_0x2c7aeb(0x1ef)](_0x4fdeca);if(!_0x32e89)return invalidMybatisSource(_0x2c7aeb(0x1b4));const _0x4330c8=_0x32e89[0x1]==='/',_0x2f0a49=_0x32e89[0x2]??'',_0x2fc19e=_0x2f0a49[_0x2c7aeb(0x1c4)](),_0x21895a=_0x32e89[0x3]??'',_0x1bd2c5=_0x32e89[0x4]==='/',_0x30c1fa=MYBATIS_OUTER_TAGS[_0x2c7aeb(0x1ba)](_0x2fc19e);if(!_0x30c1fa&&!MYBATIS_DYNAMIC_TAGS[_0x2c7aeb(0x1e6)](_0x2fc19e))return invalidMybatisSource(_0x2c7aeb(0x1f0)+_0x2fc19e+'>.');if(!_0x30c1fa&&_0x2f0a49!==_0x2fc19e)return invalidMybatisSource('MyBatis\x20dynamic\x20tag\x20names\x20must\x20be\x20lowercase:\x20<'+_0x2f0a49+'>.');if(_0x4330c8){if(_0x21895a['trim']()||_0x1bd2c5)return invalidMybatisSource(_0x2c7aeb(0x209)+_0x2f0a49+'>.');const _0x35ff67=_0x529504['at'](-0x1);if(!_0x35ff67||(_0x35ff67[_0x2c7aeb(0x202)]?_0x35ff67[_0x2c7aeb(0x1b5)]!==_0x2fc19e:_0x35ff67[_0x2c7aeb(0x1b3)]!==_0x2f0a49))return invalidMybatisSource(_0x2c7aeb(0x1e2)+_0x2f0a49+'>.');_0x529504[_0x2c7aeb(0x1f4)]();if(_0x35ff67['outer'])_0x5010ec=!![];_0x3a475f+=MYBATIS_BRANCH_TAGS[_0x2c7aeb(0x1e6)](_0x2fc19e)?'\x20'+MYBATIS_DYNAMIC_END_MARKER+'\x20':'\x20';}else{if(!hasWellFormedXmlAttributes(_0x21895a))return invalidMybatisSource(_0x2c7aeb(0x1c5)+_0x2f0a49+'>.');if(_0x2fc19e==='property'&&(!_0x1bd2c5||_0x529504['at'](-0x1)?.[_0x2c7aeb(0x1b5)]!==_0x2c7aeb(0x1e9)))return invalidMybatisSource(_0x2c7aeb(0x1f2));if(_0x30c1fa){if(_0xde1d6d||_0x529504['length']>0x0)return invalidMybatisSource(_0x2c7aeb(0x20d));_0xde1d6d=!![],_0x5010ec=_0x1bd2c5,_0xfaf6fa=_0x30c1fa;}else{if(!_0xde1d6d||_0x5010ec)return invalidMybatisSource(_0x2c7aeb(0x1fa)+_0x2f0a49+'>.');}_0x3a475f+=_0x2fc19e===_0x2c7aeb(0x1ed)?_0x2c7aeb(0x1d6):_0x2fc19e===_0x2c7aeb(0x1b6)?_0x2c7aeb(0x206):_0x2fc19e==='include'?'\x20'+MYBATIS_INCLUDE_MARKER+'\x20':MYBATIS_BRANCH_TAGS[_0x2c7aeb(0x1e6)](_0x2fc19e)&&!_0x1bd2c5?'\x20'+MYBATIS_DYNAMIC_START_MARKER+'\x20':'\x20',!_0x1bd2c5&&_0x529504['push']({'rawName':_0x2f0a49,'tagName':_0x2fc19e,'outer':!!_0x30c1fa});}_0x1431ba=_0x3d86f8+0x1;}if(_0x529504[_0x2c7aeb(0x1c9)]>0x0)return invalidMybatisSource(_0x2c7aeb(0x20b)+_0x529504['at'](-0x1)?.['rawName']+'>.');if(!_0xde1d6d||!_0x5010ec)return invalidMybatisSource(_0x2c7aeb(0x1b8));return{'sql':_0x3a475f[_0x2c7aeb(0x1f6)](),'mode':_0x2c7aeb(0x203),..._0xfaf6fa?{'statementType':_0xfaf6fa}:{}};}function hasWellFormedXmlAttributes(_0x587599){const _0x370259=a249_0x3c89cd;let _0x12db12=0x0;const _0x411d93=new Set();while(_0x12db12<_0x587599[_0x370259(0x1c9)]){while(_0x12db12<_0x587599['length']&&/\s/[_0x370259(0x1ca)](_0x587599[_0x12db12]??''))_0x12db12+=0x1;if(_0x12db12>=_0x587599[_0x370259(0x1c9)])return!![];const _0x1d5b5f=/^[A-Za-z_:][\w:.-]*/['exec'](_0x587599[_0x370259(0x1c7)](_0x12db12)),_0x1b65e0=_0x1d5b5f?.[0x0];if(!_0x1b65e0||_0x411d93[_0x370259(0x1e6)](_0x1b65e0))return![];_0x411d93[_0x370259(0x1eb)](_0x1b65e0),_0x12db12+=_0x1b65e0[_0x370259(0x1c9)];while(_0x12db12<_0x587599[_0x370259(0x1c9)]&&/\s/[_0x370259(0x1ca)](_0x587599[_0x12db12]??''))_0x12db12+=0x1;if(_0x587599[_0x12db12]!=='=')return![];_0x12db12+=0x1;while(_0x12db12<_0x587599[_0x370259(0x1c9)]&&/\s/[_0x370259(0x1ca)](_0x587599[_0x12db12]??''))_0x12db12+=0x1;const _0x1a703d=_0x587599[_0x12db12];if(_0x1a703d!=='\x22'&&_0x1a703d!=='\x27')return![];_0x12db12+=0x1;const _0x5130ba=_0x587599[_0x370259(0x200)](_0x1a703d,_0x12db12);if(_0x5130ba<0x0)return![];if(decodeXmlEntities(_0x587599[_0x370259(0x1c7)](_0x12db12,_0x5130ba))===null)return![];_0x12db12=_0x5130ba+0x1;}return!![];}function startsWithMybatisStatementWrapper(_0x13f800){const _0x4624f4=a249_0x3c89cd;let _0x59031b=0x0;const _0xd2eb64=()=>{const _0x621663=a249_0x53ac;while(_0x59031b<_0x13f800[_0x621663(0x1c9)]&&/\s/[_0x621663(0x1ca)](_0x13f800[_0x59031b]??''))_0x59031b+=0x1;};_0xd2eb64();while(_0x59031b<_0x13f800[_0x4624f4(0x1c9)]){if(_0x13f800['startsWith'](_0x4624f4(0x1fb),_0x59031b)){const _0x570fc3=_0x13f800['indexOf'](_0x4624f4(0x20a),_0x59031b+0x4);if(_0x570fc3<0x0)return!![];_0x59031b=_0x570fc3+0x3,_0xd2eb64();continue;}if(_0x13f800[_0x4624f4(0x201)]('<?',_0x59031b)){const _0x58953f=_0x13f800[_0x4624f4(0x200)]('?>',_0x59031b+0x2);if(_0x58953f<0x0)return!![];_0x59031b=_0x58953f+0x2,_0xd2eb64();continue;}break;}return MYBATIS_OUTER_TAG_PATTERN[_0x4624f4(0x1ca)](_0x13f800[_0x4624f4(0x1c7)](_0x59031b));}function invalidMybatisSource(_0x7d97f5){const _0x3dd1e7=a249_0x3c89cd;return{'sql':'','mode':_0x3dd1e7(0x203),'error':_0x7d97f5};}function findXmlTagEnd(_0x4312a9,_0x1ca11f){const _0x3f17f2=a249_0x3c89cd;let _0x539646;for(let _0x3451b3=_0x1ca11f+0x1;_0x3451b3<_0x4312a9[_0x3f17f2(0x1c9)];_0x3451b3+=0x1){const _0x2c4a7c=_0x4312a9[_0x3451b3];if(_0x539646){if(_0x2c4a7c===_0x539646)_0x539646=undefined;continue;}if(_0x2c4a7c==='\x22'||_0x2c4a7c==='\x27'){_0x539646=_0x2c4a7c;continue;}if(_0x2c4a7c==='>')return _0x3451b3;}return-0x1;}function decodeXmlEntities(_0x53b10d){const _0x5306fc=a249_0x3c89cd;let _0x2328fd=![];const _0x323920=_0x53b10d[_0x5306fc(0x204)](/&(?:#x[0-9a-f]+;|#[0-9]+;|[A-Za-z_:][\w:.-]*;)?/g,_0x11ab95=>{const _0x55505c=_0x5306fc;if(_0x11ab95===_0x55505c(0x1dc))return'<';if(_0x11ab95==='&gt;')return'>';if(_0x11ab95===_0x55505c(0x1f7))return'\x22';if(_0x11ab95===_0x55505c(0x1c3))return'\x27';if(_0x11ab95===_0x55505c(0x1d4))return'&';const _0x6a6f17=/^&#(?:x([0-9a-f]+)|([0-9]+));$/[_0x55505c(0x1ef)](_0x11ab95);if(_0x6a6f17){const _0x28a934=_0x6a6f17[0x1],_0x191d85=_0x6a6f17[0x2],_0x435ccc=Number[_0x55505c(0x1af)](_0x28a934??_0x191d85??'',_0x28a934?0x10:0xa);if(isValidXmlCharacter(_0x435ccc))return String[_0x55505c(0x1b2)](_0x435ccc);}return _0x2328fd=!![],'';});return _0x2328fd?null:_0x323920;}function isValidXmlCharacter(_0x5a3962){return _0x5a3962===0x9||_0x5a3962===0xa||_0x5a3962===0xd||_0x5a3962>=0x20&&_0x5a3962<=0xd7ff||_0x5a3962>=0xe000&&_0x5a3962<=0xfffd||_0x5a3962>=0x10000&&_0x5a3962<=0x10ffff;}export function detectSqlType(_0x805bcf){return detectNormalizedSqlType(normalizeSqlForStaticAnalysis(_0x805bcf));}function detectNormalizedSqlType(_0x8280ba){const _0x5a74ad=a249_0x3c89cd;if(_0x8280ba[_0x5a74ad(0x20e)])return{'type':_0x5a74ad(0x1be),'isSelectOnly':![],'isDangerous':![],'reason':_0x8280ba[_0x5a74ad(0x20e)]};if(!_0x8280ba[_0x5a74ad(0x1f8)][_0x5a74ad(0x1f6)]())return{'type':_0x5a74ad(0x1be),'isSelectOnly':![],'isDangerous':![],'reason':_0x5a74ad(0x1f9)};const _0x3b43f0=stripStaticAnalysisMarkers(_0x8280ba[_0x5a74ad(0x1f8)])['replace'](/#\{[^}]*\}/g,'?')[_0x5a74ad(0x204)](/\$\{[^}]*\}/g,'?')[_0x5a74ad(0x204)](/@[^(\s]+(\([^)]*\))?/g,'')[_0x5a74ad(0x204)](/\/\*[\s\S]*?\*\//g,'')['trim'](),_0x56c532=_0x3b43f0[_0x5a74ad(0x1ff)]('\x0a');let _0x213ffc='';for(const _0x3338dc of _0x56c532){const _0x475979=_0x3338dc[_0x5a74ad(0x1f6)]();if(!_0x475979||_0x475979[_0x5a74ad(0x201)]('--')||_0x475979[_0x5a74ad(0x201)]('/*'))continue;_0x213ffc=_0x475979;break;}const _0x1193cd=_0x213ffc[_0x5a74ad(0x207)](),_0x395013=_0x8280ba['statementType'],_0x4ae781=maskSqlTextForBlockedKeywordScan(_0x3b43f0),_0x5e9cc1=/\b(DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x5a74ad(0x1ca)](_0x4ae781);if(_0x395013===_0x5a74ad(0x1f5)||!_0x395013&&(_0x1193cd[_0x5a74ad(0x201)](_0x5a74ad(0x1f5))||_0x1193cd[_0x5a74ad(0x201)](_0x5a74ad(0x1cd)))){const _0x1a4845=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x5a74ad(0x1ca)](_0x3b43f0);return{'type':_0x5a74ad(0x1f5),'isSelectOnly':!_0x1a4845,'isDangerous':_0x1a4845,'reason':_0x1a4845?_0x5a74ad(0x20c):undefined};}if(_0x395013===_0x5a74ad(0x205)||!_0x395013&&_0x1193cd[_0x5a74ad(0x201)](_0x5a74ad(0x205)))return{'type':_0x5a74ad(0x205),'isSelectOnly':![],'isDangerous':_0x5e9cc1,'reason':_0x5e9cc1?_0x5a74ad(0x1e4):undefined};if(_0x395013===_0x5a74ad(0x1e8)||!_0x395013&&_0x1193cd[_0x5a74ad(0x201)](_0x5a74ad(0x1e8)))return{'type':_0x5a74ad(0x1e8),'isSelectOnly':![],'isDangerous':_0x5e9cc1,'reason':_0x5e9cc1?_0x5a74ad(0x1e4):undefined};if(_0x395013===_0x5a74ad(0x1ea)||!_0x395013&&_0x1193cd['startsWith'](_0x5a74ad(0x1ea)))return{'type':'DELETE','isSelectOnly':![],'isDangerous':!![],'reason':'DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save'};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i[_0x5a74ad(0x1ca)](_0x1193cd))return{'type':_0x5a74ad(0x208),'isSelectOnly':![],'isDangerous':!![],'reason':'DDL\x20statements\x20are\x20blocked\x20from\x20auto-save'};return{'type':_0x5a74ad(0x1be),'isSelectOnly':![],'isDangerous':![]};}function a249_0x53ac(_0x9706f4,_0x3f7173){_0x9706f4=_0x9706f4-0x1ae;const _0x505d31=a249_0x505d();let _0x53acdb=_0x505d31[_0x9706f4];return _0x53acdb;}function stripStaticAnalysisMarkers(_0x198e8c){const _0x467ee8=a249_0x3c89cd;return _0x198e8c[_0x467ee8(0x1cb)](MYBATIS_DYNAMIC_START_MARKER,'\x20')[_0x467ee8(0x1cb)](MYBATIS_DYNAMIC_END_MARKER,'\x20')[_0x467ee8(0x1cb)](MYBATIS_INCLUDE_MARKER,'\x20'+UNRESOLVED_SQL_FRAGMENT+'\x20');}function maskSqlTextForBlockedKeywordScan(_0x528e02){const _0x536235=a249_0x3c89cd;return _0x528e02[_0x536235(0x204)](/'(?:''|\\.|[^'])*'/g,'\x20')[_0x536235(0x204)](/"(?:""|\\.|[^"])*"/g,'\x20')[_0x536235(0x204)](/`(?:``|\\.|[^`])*`/g,'\x20')['replace'](/--.*$/gm,'\x20')[_0x536235(0x204)](/#.*$/gm,'\x20')[_0x536235(0x204)](/\/\*[\s\S]*?\*\//g,'\x20');}function extractTables(_0x33926e){const _0xf87ef1=a249_0x3c89cd,_0xbdc3a4=_0x33926e['replace'](/#\{[^}]*\}/g,'?')[_0xf87ef1(0x204)](/\$\{[^}]*\}/g,'?')[_0xf87ef1(0x204)](/'[^']*'/g,'\x27\x27')['replace'](/--.*$/gm,'')['replace'](/\/\*[\s\S]*?\*\//g,''),_0x46c3b2=[],_0x519872=_0xbdc3a4[_0xf87ef1(0x1d0)](/FROM\s+([^\s,)(]+)/i);addTable(_0x46c3b2,_0x519872?.[0x1]);for(const _0x1b61c7 of _0xbdc3a4['matchAll'](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){addTable(_0x46c3b2,_0x1b61c7[0x1]);}const _0x5d8a38=_0xbdc3a4[_0xf87ef1(0x1d0)](/INTO\s+([^\s(]+)/i);addTable(_0x46c3b2,_0x5d8a38?.[0x1]);const _0xe21cc2=_0xbdc3a4[_0xf87ef1(0x1d0)](/UPDATE\s+([^\s,)(]+)/i);return addTable(_0x46c3b2,_0xe21cc2?.[0x1]),_0x46c3b2;}function addTable(_0x2112e3,_0x1a8b79){const _0x57850d=a249_0x3c89cd,_0x4cfef8=_0x1a8b79?.[_0x57850d(0x204)](/[`"]/g,'');_0x4cfef8&&_0x4cfef8!==UNRESOLVED_SQL_FRAGMENT&&!_0x2112e3[_0x57850d(0x1d7)](_0x4cfef8)&&_0x2112e3[_0x57850d(0x1db)](_0x4cfef8);}function extractParameters(_0x30e824){const _0x1b8332=a249_0x3c89cd,_0x5e6175=new Set();for(const _0x35343a of _0x30e824[_0x1b8332(0x1e0)](/[#$]\{\s*([A-Za-z_][\w.]*)\s*(?=[,}])/g)){if(_0x35343a[0x1])_0x5e6175[_0x1b8332(0x1eb)](_0x35343a[0x1]);}return Array[_0x1b8332(0x1e5)](_0x5e6175);}export function validateSql(_0xec84){const _0xb1b7c0=a249_0x3c89cd,_0x35115d=normalizeSqlForStaticAnalysis(_0xec84),_0x5a183b=detectNormalizedSqlType(_0x35115d),_0x150b37=stripStaticAnalysisMarkers(_0x35115d[_0xb1b7c0(0x1f8)]),_0x2a0875=_0x35115d[_0xb1b7c0(0x20e)]?[]:extractTables(_0x150b37),_0x2cb69e=_0x35115d[_0xb1b7c0(0x20e)]?[]:extractParameters(_0x150b37);if(_0x5a183b[_0xb1b7c0(0x1dd)])return{'valid':![],'sqlType':_0x5a183b,'tables':_0x2a0875,'parameters':_0x2cb69e,'message':_0x5a183b[_0xb1b7c0(0x1ae)]||_0x5a183b[_0xb1b7c0(0x1bb)]+_0xb1b7c0(0x1fc)};if(_0x5a183b[_0xb1b7c0(0x1bb)]===_0xb1b7c0(0x1be))return{'valid':![],'sqlType':_0x5a183b,'tables':_0x2a0875,'parameters':_0x2cb69e,'message':_0x35115d[_0xb1b7c0(0x20e)]?_0xb1b7c0(0x1b9)+_0x35115d[_0xb1b7c0(0x20e)]:_0xb1b7c0(0x20f)};return{'valid':!![],'sqlType':_0x5a183b,'tables':_0x2a0875,'parameters':_0x2cb69e,'message':_0x5a183b['type']+_0xb1b7c0(0x1d5)+(_0x2a0875['length']?_0x2a0875[_0xb1b7c0(0x1bf)](',\x20'):'unknown\x20table(s)')+(_0x2cb69e[_0xb1b7c0(0x1c9)]?_0xb1b7c0(0x1e7)+_0x2cb69e[_0xb1b7c0(0x1bf)](',\x20'):'')};}
package/lib/errors.js CHANGED
@@ -1 +1 @@
1
- function a242_0x8789(_0x2cc7da,_0x2d5960){_0x2cc7da=_0x2cc7da-0x111;const _0x1e92e2=a242_0x1e92();let _0x8789c7=_0x1e92e2[_0x2cc7da];return _0x8789c7;}const a242_0x4bf622=a242_0x8789;(function(_0x96a3ac,_0x1f426c){const _0x37105a=a242_0x8789,_0x2fc5f1=_0x96a3ac();while(!![]){try{const _0x32a96c=-parseInt(_0x37105a(0x124))/0x1+parseInt(_0x37105a(0x122))/0x2*(-parseInt(_0x37105a(0x128))/0x3)+-parseInt(_0x37105a(0x123))/0x4*(parseInt(_0x37105a(0x116))/0x5)+parseInt(_0x37105a(0x12e))/0x6+-parseInt(_0x37105a(0x12f))/0x7*(parseInt(_0x37105a(0x121))/0x8)+-parseInt(_0x37105a(0x129))/0x9*(parseInt(_0x37105a(0x113))/0xa)+parseInt(_0x37105a(0x111))/0xb*(parseInt(_0x37105a(0x11a))/0xc);if(_0x32a96c===_0x1f426c)break;else _0x2fc5f1['push'](_0x2fc5f1['shift']());}catch(_0x292d10){_0x2fc5f1['push'](_0x2fc5f1['shift']());}}}(a242_0x1e92,0xbe0e4));import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';function a242_0x1e92(){const _0x433a6f=['110TalEmB','validation','\x20--help`\x20to\x20see\x20available\x20commands.','1655bsYVSK','\x20workspace\x20add\x20<name>\x20--appcode\x20<code>\x20--global`\x20registers\x20a\x20reusable\x20global\x20app\x20profile.','Set\x20appcode\x20via\x20`','Check\x20your\x20internet\x20connection\x20and\x20try\x20again.','12CpunKY','auth_required','cancelled','Missing\x20required\x20flag:\x20--','Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.','Not\x20in\x20a\x20','Unknown\x20command:\x20','8ZGRKIw','109828EAAKHB','18724uETXGA','980607eJuNyM','network_error','unknown_command','Run\x20`','30PkFHaa','1103877RmcRZE','apiError','config_missing','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.\x0a\x20\x20\x20\x20\x20\x20\x20Tip:\x20`','\x20project\x20directory','5983314CJyQxh','8984731CCSZSz','60424353TrlgkV','Authentication\x20required'];a242_0x1e92=function(){return _0x433a6f;};return a242_0x1e92();}export{CliError};const baseCliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a242_0x4bf622(0x127)+CLI_BIN_NAME+'\x20auth`\x20to\x20login\x20first.','configMissingHint':a242_0x4bf622(0x118)+CLI_BIN_NAME+a242_0x4bf622(0x12c)+CLI_BIN_NAME+'\x20workspace\x20add\x20<name>\x20--appcode\x20<code>\x20--global`\x20registers\x20a\x20reusable\x20global\x20app\x20profile.','notInProjectHint':a242_0x4bf622(0x11e)});export const CliErrors={'authRequired'(_0x4672a6){const _0x2c3203=a242_0x4bf622;return new CliError(_0x2c3203(0x11b),0x1,_0x2c3203(0x112),_0x4672a6??_0x2c3203(0x127)+CLI_BIN_NAME+'\x20auth`\x20to\x20login\x20first.');},'configMissing'(_0x115c6f){const _0x3ab842=a242_0x4bf622;return new CliError(_0x3ab842(0x12b),0x1,'Configuration\x20file\x20not\x20found',_0x115c6f??_0x3ab842(0x118)+CLI_BIN_NAME+'\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.\x0a\x20\x20\x20\x20\x20\x20\x20Tip:\x20`'+CLI_BIN_NAME+_0x3ab842(0x117));},'notInProject'(){const _0x241020=a242_0x4bf622;return new CliError('not_in_project',0x1,_0x241020(0x11f)+CLI_BIN_NAME+_0x241020(0x12d),_0x241020(0x11e));},'apiError'(_0x1950c9,_0x537214){const _0x163083=a242_0x4bf622;return baseCliErrors[_0x163083(0x12a)](_0x1950c9,_0x537214);},'networkError'(_0x1c27d4){const _0x4bb52d=a242_0x4bf622;return new CliError(_0x4bb52d(0x125),0x2,'Network\x20error:\x20'+_0x1c27d4,_0x4bb52d(0x119));},'unknownCommand'(_0x55b023){const _0x45ff22=a242_0x4bf622;return new CliError(_0x45ff22(0x126),0x1,_0x45ff22(0x120)+_0x55b023,_0x45ff22(0x127)+CLI_BIN_NAME+_0x45ff22(0x115));},'flagMissing'(_0x58b537,_0x56e2c0){const _0x526983=a242_0x4bf622;return new CliError('flag_missing',0x1,_0x526983(0x11d)+_0x58b537,_0x56e2c0);},'validation'(_0xb6ebfd,_0xd7069){const _0x5705bf=a242_0x4bf622;return baseCliErrors[_0x5705bf(0x114)](_0xb6ebfd,_0xd7069);},'cancelled'(_0x2b04de){const _0x3e8339=a242_0x4bf622;return new CliError(_0x3e8339(0x11c),0x0,_0x2b04de??'Operation\x20cancelled.');}};
1
+ function a250_0x5a98(){const _0x23d2c7=['config_missing','90HkSZLb','flag_missing','Run\x20`','\x20auth`\x20to\x20login\x20first.','65974mrtOjA','3XhLQxo','\x20workspace\x20add\x20<name>\x20--appcode\x20<code>\x20--global`\x20registers\x20a\x20reusable\x20global\x20app\x20profile.','not_in_project','1047970VQAlZP','6858gjOmBV','auth_required','validation','557832PPmgrM','apiError','9922450DVHLcL','Check\x20your\x20internet\x20connection\x20and\x20try\x20again.','303608nTwKzM','Set\x20appcode\x20via\x20`','1778mDzDsw','Missing\x20required\x20flag:\x20--','\x20--help`\x20to\x20see\x20available\x20commands.','Authentication\x20required','Not\x20in\x20a\x20','network_error','252gEMhpw','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.\x0a\x20\x20\x20\x20\x20\x20\x20Tip:\x20`','2wQlBdI','1176848YzQtpl','cancelled','Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.'];a250_0x5a98=function(){return _0x23d2c7;};return a250_0x5a98();}const a250_0x46693e=a250_0x4e2c;function a250_0x4e2c(_0x1aa427,_0x3e134a){_0x1aa427=_0x1aa427-0x67;const _0x5a983c=a250_0x5a98();let _0x4e2c9f=_0x5a983c[_0x1aa427];return _0x4e2c9f;}(function(_0x3a4e2c,_0x504548){const _0x3c8527=a250_0x4e2c,_0x2f7b4a=_0x3a4e2c();while(!![]){try{const _0x4e4aa7=parseInt(_0x3c8527(0x7e))/0x1*(-parseInt(_0x3c8527(0x68))/0x2)+-parseInt(_0x3c8527(0x69))/0x3*(parseInt(_0x3c8527(0x7f))/0x4)+parseInt(_0x3c8527(0x6c))/0x5+parseInt(_0x3c8527(0x6d))/0x6*(parseInt(_0x3c8527(0x76))/0x7)+parseInt(_0x3c8527(0x74))/0x8*(parseInt(_0x3c8527(0x83))/0x9)+-parseInt(_0x3c8527(0x72))/0xa+-parseInt(_0x3c8527(0x70))/0xb*(-parseInt(_0x3c8527(0x7c))/0xc);if(_0x4e4aa7===_0x504548)break;else _0x2f7b4a['push'](_0x2f7b4a['shift']());}catch(_0x53fff5){_0x2f7b4a['push'](_0x2f7b4a['shift']());}}}(a250_0x5a98,0x9084b));import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';export{CliError};const baseCliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a250_0x46693e(0x85)+CLI_BIN_NAME+a250_0x46693e(0x67),'configMissingHint':a250_0x46693e(0x75)+CLI_BIN_NAME+a250_0x46693e(0x7d)+CLI_BIN_NAME+a250_0x46693e(0x6a),'notInProjectHint':a250_0x46693e(0x81)});export const CliErrors={'authRequired'(_0x3853aa){const _0xd41d5f=a250_0x46693e;return new CliError(_0xd41d5f(0x6e),0x1,_0xd41d5f(0x79),_0x3853aa??_0xd41d5f(0x85)+CLI_BIN_NAME+_0xd41d5f(0x67));},'configMissing'(_0x5bda06){const _0x23c15f=a250_0x46693e;return new CliError(_0x23c15f(0x82),0x1,'Configuration\x20file\x20not\x20found',_0x5bda06??_0x23c15f(0x75)+CLI_BIN_NAME+'\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.\x0a\x20\x20\x20\x20\x20\x20\x20Tip:\x20`'+CLI_BIN_NAME+_0x23c15f(0x6a));},'notInProject'(){const _0x58d812=a250_0x46693e;return new CliError(_0x58d812(0x6b),0x1,_0x58d812(0x7a)+CLI_BIN_NAME+'\x20project\x20directory',_0x58d812(0x81));},'apiError'(_0x488581,_0x5425ab){const _0x3ed7fc=a250_0x46693e;return baseCliErrors[_0x3ed7fc(0x71)](_0x488581,_0x5425ab);},'networkError'(_0x44b196){const _0xe5a52e=a250_0x46693e;return new CliError(_0xe5a52e(0x7b),0x2,'Network\x20error:\x20'+_0x44b196,_0xe5a52e(0x73));},'unknownCommand'(_0x34189b){const _0x5c73e9=a250_0x46693e;return new CliError('unknown_command',0x1,'Unknown\x20command:\x20'+_0x34189b,_0x5c73e9(0x85)+CLI_BIN_NAME+_0x5c73e9(0x78));},'flagMissing'(_0x2e9371,_0x1f7031){const _0x3f7fcc=a250_0x46693e;return new CliError(_0x3f7fcc(0x84),0x1,_0x3f7fcc(0x77)+_0x2e9371,_0x1f7031);},'validation'(_0x415e3b,_0x11810c){const _0x4b9f41=a250_0x46693e;return baseCliErrors[_0x4b9f41(0x6f)](_0x415e3b,_0x11810c);},'cancelled'(_0x3e3111){const _0x461f2f=a250_0x46693e;return new CliError(_0x461f2f(0x80),0x0,_0x3e3111??'Operation\x20cancelled.');}};
@@ -1 +1 @@
1
- (function(_0x179412,_0x326ffb){const _0x5e73f8=a243_0x1139,_0x379e88=_0x179412();while(!![]){try{const _0xe8344=parseInt(_0x5e73f8(0x1b3))/0x1*(-parseInt(_0x5e73f8(0x1b0))/0x2)+-parseInt(_0x5e73f8(0x1bb))/0x3+-parseInt(_0x5e73f8(0x1b4))/0x4+parseInt(_0x5e73f8(0x1af))/0x5*(-parseInt(_0x5e73f8(0x1bc))/0x6)+parseInt(_0x5e73f8(0x1bd))/0x7*(-parseInt(_0x5e73f8(0x1b6))/0x8)+-parseInt(_0x5e73f8(0x1b8))/0x9*(-parseInt(_0x5e73f8(0x1b9))/0xa)+-parseInt(_0x5e73f8(0x1ba))/0xb*(-parseInt(_0x5e73f8(0x1b2))/0xc);if(_0xe8344===_0x326ffb)break;else _0x379e88['push'](_0x379e88['shift']());}catch(_0x4b5b09){_0x379e88['push'](_0x379e88['shift']());}}}(a243_0x4a84,0xeb1d8));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a243_0x1c722b}from'@lovrabet/cli-framework';function a243_0x1139(_0x53508b,_0x214df0){_0x53508b=_0x53508b-0x1af;const _0x4a8432=a243_0x4a84();let _0x1139e1=_0x4a8432[_0x53508b];return _0x1139e1;}function a243_0x4a84(){const _0x23bebf=['7lnDicS','1750ROsGOS','62plOZQG','map','72EpnzKn','7586fsEnxI','6152120JHKXsV','yes','398408somUxz','name','9bjfweL','932970bojeAB','7465271VdAAuh','3314502bRklEz','4704rlMxHH'];a243_0x4a84=function(){return _0x23bebf;};return a243_0x4a84();}import{EXPLICIT_YES_FLAG_DESCRIPTION,requiresExplicitYes}from'../framework/explicit-yes.js';export function buildAllFlags(_0x197af8){const _0x1faa81=a243_0x1139,_0xf4f0bc=a243_0x1c722b(_0x197af8,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});if(!requiresExplicitYes(_0x197af8))return _0xf4f0bc;return _0xf4f0bc[_0x1faa81(0x1b1)](_0x1e9d9f=>_0x1e9d9f[_0x1faa81(0x1b7)]===_0x1faa81(0x1b5)?{..._0x1e9d9f,'description':EXPLICIT_YES_FLAG_DESCRIPTION}:_0x1e9d9f);}
1
+ function a251_0x31d0(){const _0x310025=['209wUMblV','name','4435984WMOrXk','5142912HTdeUy','16cbJOjP','3568446peLmeJ','12RVOHvx','3442776pOmOJw','10kFHprL','3382641HBSKcP','map','1fpGaiY','1717420OVCGhk','1633332jVnTqL'];a251_0x31d0=function(){return _0x310025;};return a251_0x31d0();}(function(_0x790dff,_0x1a40ea){const _0x2efff6=a251_0x1f04,_0x3942e0=_0x790dff();while(!![]){try{const _0x220480=parseInt(_0x2efff6(0x9b))/0x1*(-parseInt(_0x2efff6(0x9d))/0x2)+-parseInt(_0x2efff6(0x95))/0x3+parseInt(_0x2efff6(0x96))/0x4*(-parseInt(_0x2efff6(0x9c))/0x5)+-parseInt(_0x2efff6(0x93))/0x6+parseInt(_0x2efff6(0x92))/0x7*(-parseInt(_0x2efff6(0x94))/0x8)+-parseInt(_0x2efff6(0x99))/0x9*(-parseInt(_0x2efff6(0x98))/0xa)+-parseInt(_0x2efff6(0x9e))/0xb*(-parseInt(_0x2efff6(0x97))/0xc);if(_0x220480===_0x1a40ea)break;else _0x3942e0['push'](_0x3942e0['shift']());}catch(_0x431082){_0x3942e0['push'](_0x3942e0['shift']());}}}(a251_0x31d0,0xa2887));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a251_0x411676}from'@lovrabet/cli-framework';function a251_0x1f04(_0x5024c3,_0x510d4d){_0x5024c3=_0x5024c3-0x92;const _0x31d084=a251_0x31d0();let _0x1f048d=_0x31d084[_0x5024c3];return _0x1f048d;}import{EXPLICIT_YES_FLAG_DESCRIPTION,requiresExplicitYes}from'../framework/explicit-yes.js';export function buildAllFlags(_0x160b76){const _0x8b1bba=a251_0x1f04,_0x5004da=a251_0x411676(_0x160b76,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});if(!requiresExplicitYes(_0x160b76))return _0x5004da;return _0x5004da[_0x8b1bba(0x9a)](_0x411286=>_0x411286[_0x8b1bba(0x9f)]==='yes'?{..._0x411286,'description':EXPLICIT_YES_FLAG_DESCRIPTION}:_0x411286);}
@@ -1 +1 @@
1
- function a244_0x3a58(){var _0x5745e3=['26112810eBfUsg','420GDIJYY','7674MFXsBT','defaultFormat','284QKAJrN','969980iIarrz','6141969PMkrAz','def','2517cqIbio','format','flags','1470QVdrDg','486300ALITNm','138112SgDSno','compress'];a244_0x3a58=function(){return _0x5745e3;};return a244_0x3a58();}(function(_0x8c0ab,_0x5aeab6){var _0x560320=a244_0x31e5,_0x50f903=_0x8c0ab();while(!![]){try{var _0x42f807=-parseInt(_0x560320(0xf1))/0x1+-parseInt(_0x560320(0xf0))/0x2*(-parseInt(_0x560320(0xf4))/0x3)+parseInt(_0x560320(0xf8))/0x4+-parseInt(_0x560320(0xf7))/0x5*(-parseInt(_0x560320(0xee))/0x6)+parseInt(_0x560320(0xed))/0x7*(-parseInt(_0x560320(0xea))/0x8)+-parseInt(_0x560320(0xf2))/0x9+parseInt(_0x560320(0xec))/0xa;if(_0x42f807===_0x5aeab6)break;else _0x50f903['push'](_0x50f903['shift']());}catch(_0x1df2b3){_0x50f903['push'](_0x50f903['shift']());}}}(a244_0x3a58,0x83c6f));import{resolveOutputConfig}from'@lovrabet/cli-framework';function a244_0x31e5(_0x15cb4f,_0x20cf0e){_0x15cb4f=_0x15cb4f-0xea;var _0x3a58ab=a244_0x3a58();var _0x31e581=_0x3a58ab[_0x15cb4f];return _0x31e581;}export function usesStructuredErrorOutput(_0x4a80bd){return _0x4a80bd?.['structuredErrors']===!![];}export function resolveErrorOutputFormat(_0x364648){var _0xc567ef=a244_0x31e5;if(!_0x364648['def'])return _0x364648['defaultFormat']??_0xc567ef(0xeb);return resolveOutputConfig({'flags':_0x364648[_0xc567ef(0xf6)]??{},'def':_0x364648[_0xc567ef(0xf3)],'configDefault':_0x364648[_0xc567ef(0xef)]})[_0xc567ef(0xf5)];}
1
+ (function(_0x34c70b,_0x385a60){var _0x192532=a252_0x3196,_0x20ac1b=_0x34c70b();while(!![]){try{var _0x49e9d4=parseInt(_0x192532(0x13e))/0x1+parseInt(_0x192532(0x139))/0x2+-parseInt(_0x192532(0x13c))/0x3*(parseInt(_0x192532(0x137))/0x4)+-parseInt(_0x192532(0x13d))/0x5*(-parseInt(_0x192532(0x13a))/0x6)+parseInt(_0x192532(0x141))/0x7*(-parseInt(_0x192532(0x13b))/0x8)+-parseInt(_0x192532(0x140))/0x9+-parseInt(_0x192532(0x145))/0xa*(parseInt(_0x192532(0x144))/0xb);if(_0x49e9d4===_0x385a60)break;else _0x20ac1b['push'](_0x20ac1b['shift']());}catch(_0x26541c){_0x20ac1b['push'](_0x20ac1b['shift']());}}}(a252_0x3521,0xa5598));function a252_0x3521(){var _0x34cb9b=['format','1569684yHOExB','defaultFormat','1723396rGAZHq','3972iDBwCV','1096jRPDdy','6HnTzMz','8580lbAGVv','828372KfMQZh','flags','912618JCcyIE','45983yeRGQE','compress','def','3988523hTflPu','10jHEHxG'];a252_0x3521=function(){return _0x34cb9b;};return a252_0x3521();}import{resolveOutputConfig}from'@lovrabet/cli-framework';function a252_0x3196(_0x2191a0,_0xb41581){_0x2191a0=_0x2191a0-0x136;var _0x3521e5=a252_0x3521();var _0x319616=_0x3521e5[_0x2191a0];return _0x319616;}export function usesStructuredErrorOutput(_0x2132fb){return _0x2132fb?.['structuredErrors']===!![];}export function resolveErrorOutputFormat(_0x5e7290){var _0x292a4c=a252_0x3196;if(!_0x5e7290[_0x292a4c(0x143)])return _0x5e7290[_0x292a4c(0x138)]??_0x292a4c(0x142);return resolveOutputConfig({'flags':_0x5e7290[_0x292a4c(0x13f)]??{},'def':_0x5e7290[_0x292a4c(0x143)],'configDefault':_0x5e7290['defaultFormat']})[_0x292a4c(0x136)];}
@@ -1 +1 @@
1
- const a245_0x2e5b98=a245_0x3e1c;(function(_0x136675,_0x393cf2){const _0x566275=a245_0x3e1c,_0xfc101e=_0x136675();while(!![]){try{const _0x177cb2=parseInt(_0x566275(0x145))/0x1+-parseInt(_0x566275(0x144))/0x2*(parseInt(_0x566275(0x148))/0x3)+parseInt(_0x566275(0x13f))/0x4*(-parseInt(_0x566275(0x139))/0x5)+parseInt(_0x566275(0x141))/0x6+-parseInt(_0x566275(0x13d))/0x7*(-parseInt(_0x566275(0x147))/0x8)+-parseInt(_0x566275(0x142))/0x9*(-parseInt(_0x566275(0x13b))/0xa)+-parseInt(_0x566275(0x13e))/0xb;if(_0x177cb2===_0x393cf2)break;else _0xfc101e['push'](_0xfc101e['shift']());}catch(_0x13e75e){_0xfc101e['push'](_0xfc101e['shift']());}}}(a245_0x209b,0xd921f));function a245_0x3e1c(_0x2cae3c,_0x5c1fd1){_0x2cae3c=_0x2cae3c-0x137;const _0x209be7=a245_0x209b();let _0x3e1c4b=_0x209be7[_0x2cae3c];return _0x3e1c4b;}function a245_0x209b(){const _0x21c9aa=['558RHxtCY','323303kmSuUv','Required\x20for\x20execution\x20after\x20reviewing\x20the\x20--dry-run\x20plan','8KJAOOw','4227guODvV','has','command','menu\x20delete','9560zhDqmT','notification\x20config-delete','1130ZQLfOZ','notification\x20config-update','7269647FlYlco','14232504LBLtYx','2256KZdxWw','service','4367742Hodcki','124641BAQIHL','kb\x20delete'];a245_0x209b=function(){return _0x21c9aa;};return a245_0x209b();}const EXPLICIT_YES_COMMANDS=new Set([a245_0x2e5b98(0x138),a245_0x2e5b98(0x143),a245_0x2e5b98(0x13c),a245_0x2e5b98(0x13a)]);export const EXPLICIT_YES_FLAG_DESCRIPTION=a245_0x2e5b98(0x146);export function requiresExplicitYes(_0x50dcfc){const _0x2dc977=a245_0x2e5b98;return EXPLICIT_YES_COMMANDS[_0x2dc977(0x149)](_0x50dcfc[_0x2dc977(0x140)]+'\x20'+_0x50dcfc[_0x2dc977(0x137)]);}
1
+ const a253_0x43e32f=a253_0x4325;(function(_0x1cac62,_0x5bcf6a){const _0x9d5836=a253_0x4325,_0x26b645=_0x1cac62();while(!![]){try{const _0x546b15=-parseInt(_0x9d5836(0xcc))/0x1*(parseInt(_0x9d5836(0xc7))/0x2)+parseInt(_0x9d5836(0xd2))/0x3+parseInt(_0x9d5836(0xd0))/0x4*(-parseInt(_0x9d5836(0xcd))/0x5)+-parseInt(_0x9d5836(0xc6))/0x6*(-parseInt(_0x9d5836(0xc5))/0x7)+-parseInt(_0x9d5836(0xcf))/0x8+parseInt(_0x9d5836(0xc3))/0x9*(-parseInt(_0x9d5836(0xd1))/0xa)+-parseInt(_0x9d5836(0xc2))/0xb*(-parseInt(_0x9d5836(0xce))/0xc);if(_0x546b15===_0x5bcf6a)break;else _0x26b645['push'](_0x26b645['shift']());}catch(_0x7eb94a){_0x26b645['push'](_0x26b645['shift']());}}}(a253_0x2a1d,0xd9938));const EXPLICIT_YES_COMMANDS=new Set([a253_0x43e32f(0xc4),a253_0x43e32f(0xcb),a253_0x43e32f(0xc1),a253_0x43e32f(0xc9)]);export const EXPLICIT_YES_FLAG_DESCRIPTION=a253_0x43e32f(0xca);function a253_0x4325(_0x36ae46,_0x3d7388){_0x36ae46=_0x36ae46-0xc1;const _0x2a1d53=a253_0x2a1d();let _0x4325cf=_0x2a1d53[_0x36ae46];return _0x4325cf;}function a253_0x2a1d(){const _0x51d852=['notification\x20config-delete','Required\x20for\x20execution\x20after\x20reviewing\x20the\x20--dry-run\x20plan','kb\x20delete','2JMaAoW','8638395rkqVqs','12pXmStR','1694080XavGSX','4ShYvFX','10ENolMf','1568820WKzayF','notification\x20config-update','44334807LeMeXn','12945294RqAEcJ','menu\x20delete','1078bORZkz','19674MPKXrl','789346DMhwRa','service'];a253_0x2a1d=function(){return _0x51d852;};return a253_0x2a1d();}export function requiresExplicitYes(_0x5a35a5){const _0x30e801=a253_0x43e32f;return EXPLICIT_YES_COMMANDS['has'](_0x5a35a5[_0x30e801(0xc8)]+'\x20'+_0x5a35a5['command']);}
@@ -1 +1 @@
1
- const a246_0x48f3cd=a246_0x2949;(function(_0xd7e027,_0x2edbcf){const _0x177f23=a246_0x2949,_0x15de53=_0xd7e027();while(!![]){try{const _0x2b3bec=parseInt(_0x177f23(0x159))/0x1+parseInt(_0x177f23(0x158))/0x2*(parseInt(_0x177f23(0x15d))/0x3)+-parseInt(_0x177f23(0x15a))/0x4+-parseInt(_0x177f23(0x157))/0x5+parseInt(_0x177f23(0x156))/0x6+parseInt(_0x177f23(0x15e))/0x7+-parseInt(_0x177f23(0x15c))/0x8*(parseInt(_0x177f23(0x160))/0x9);if(_0x2b3bec===_0x2edbcf)break;else _0x15de53['push'](_0x15de53['shift']());}catch(_0x5c6fcd){_0x15de53['push'](_0x15de53['shift']());}}}(a246_0x46fb,0xb1efe));import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers[a246_0x48f3cd(0x15f)];function a246_0x2949(_0x1c4cff,_0x4972d3){_0x1c4cff=_0x1c4cff-0x156;const _0x46fbc3=a246_0x46fb();let _0x294912=_0x46fbc3[_0x1c4cff];return _0x294912;}function a246_0x46fb(){const _0x315dd8=['2889624hyEdtO','5761255OwLnYE','2kMoFYy','1455174uqTmGC','4452404KzISDw','validateFlags','134504FgLXIo','3446514zLfWIh','5597585GRgdQE','parseFlags','477IEPuSn'];a246_0x46fb=function(){return _0x315dd8;};return a246_0x46fb();}export const validateFlags=helpers[a246_0x48f3cd(0x15b)];
1
+ const a254_0x461355=a254_0x20d1;(function(_0x3393ab,_0x30d0d1){const _0x44415d=a254_0x20d1,_0x25456e=_0x3393ab();while(!![]){try{const _0x210fb2=parseInt(_0x44415d(0x163))/0x1+parseInt(_0x44415d(0x16c))/0x2*(-parseInt(_0x44415d(0x16a))/0x3)+-parseInt(_0x44415d(0x170))/0x4*(parseInt(_0x44415d(0x166))/0x5)+parseInt(_0x44415d(0x16f))/0x6*(-parseInt(_0x44415d(0x169))/0x7)+-parseInt(_0x44415d(0x16b))/0x8+-parseInt(_0x44415d(0x167))/0x9*(parseInt(_0x44415d(0x165))/0xa)+-parseInt(_0x44415d(0x16d))/0xb*(-parseInt(_0x44415d(0x164))/0xc);if(_0x210fb2===_0x30d0d1)break;else _0x25456e['push'](_0x25456e['shift']());}catch(_0x36dec2){_0x25456e['push'](_0x25456e['shift']());}}}(a254_0x95cc,0xd568d));import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);function a254_0x20d1(_0x30b8d7,_0x5208b8){_0x30b8d7=_0x30b8d7-0x163;const _0x95cc69=a254_0x95cc();let _0x20d1b4=_0x95cc69[_0x30b8d7];return _0x20d1b4;}export const parseFlags=helpers[a254_0x461355(0x16e)];function a254_0x95cc(){const _0x3d8034=['96qpfqPN','315470LfBjpz','945095YBlIly','9VlaWFB','validateFlags','7unbmTT','2296347CaxPih','11904792RMqCGG','2KMeRnk','3553451mDyNWv','parseFlags','518622QPvbRU','4EIgWNU','850348dUXfTp'];a254_0x95cc=function(){return _0x3d8034;};return a254_0x95cc();}export const validateFlags=helpers[a254_0x461355(0x168)];
@@ -1 +1 @@
1
- (function(_0x5307c1,_0x17a0e4){const _0x1ca25f=a247_0x14f2,_0x4c4695=_0x5307c1();while(!![]){try{const _0xb97948=-parseInt(_0x1ca25f(0x79))/0x1+-parseInt(_0x1ca25f(0x85))/0x2*(parseInt(_0x1ca25f(0x82))/0x3)+-parseInt(_0x1ca25f(0x7b))/0x4+parseInt(_0x1ca25f(0x83))/0x5*(-parseInt(_0x1ca25f(0x7d))/0x6)+-parseInt(_0x1ca25f(0x87))/0x7*(-parseInt(_0x1ca25f(0x84))/0x8)+-parseInt(_0x1ca25f(0x81))/0x9+parseInt(_0x1ca25f(0x80))/0xa;if(_0xb97948===_0x17a0e4)break;else _0x4c4695['push'](_0x4c4695['shift']());}catch(_0x527f63){_0x4c4695['push'](_0x4c4695['shift']());}}}(a247_0x32c1,0x2d43f));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 a247_0x32c1(){const _0x42e8df=['\x20[args]\x20[flags]','8453520mOzCcc','544491gUBktg','561dHEeRy','20ynuyhR','89288FmZSZh','562JCPjKy','generateCommandHelp','49mHNqQm','generateFullHelp','replace','generateServiceHelp','184513lzyllk','Requires\x20--yes\x20to\x20confirm,\x20or\x20interactive\x20prompt.','848356sHtlsx','get','342636OMEtgb','Requires\x20appcode\x20(set\x20via\x20`'];a247_0x32c1=function(){return _0x42e8df;};return a247_0x32c1();}function createGenerators(){const _0x860376=a247_0x14f2;return createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':serviceRegistry,'getServiceEntry':getServiceEntry,'getServiceDefinitions':_0x51b31a=>serviceGroups[_0x860376(0x7c)](_0x51b31a),'buildAllFlags':buildAllFlags,'appPrerequisiteText':_0x860376(0x7e)+CLI_BIN_NAME+'\x20workspace\x20init`\x20or\x20--appcode).','serviceUsageSuffix':_0x860376(0x7f)});}function a247_0x14f2(_0x105f72,_0x4f391c){_0x105f72=_0x105f72-0x78;const _0x32c1f7=a247_0x32c1();let _0x14f281=_0x32c1f7[_0x105f72];return _0x14f281;}export function generateCommandHelp(_0x1dbc80){const _0x4e4524=a247_0x14f2,_0x49881c=createGenerators()[_0x4e4524(0x86)](_0x1dbc80);if(!requiresExplicitYes(_0x1dbc80))return _0x49881c;return _0x49881c[_0x4e4524(0x89)](_0x4e4524(0x7a),'Requires\x20explicit\x20--yes\x20for\x20execution;\x20use\x20--dry-run\x20to\x20preview.');}export function generateServiceHelp(_0x11322d){const _0x379f02=a247_0x14f2;return createGenerators()[_0x379f02(0x78)](_0x11322d);}export function generateFullHelp(){const _0x1938a3=a247_0x14f2;return createGenerators()[_0x1938a3(0x88)]();}
1
+ function a255_0x19d0(_0x817085,_0x1b1807){_0x817085=_0x817085-0x1d0;const _0x327ba4=a255_0x327b();let _0x19d0a5=_0x327ba4[_0x817085];return _0x19d0a5;}(function(_0x383bed,_0x43f851){const _0x27a444=a255_0x19d0,_0x320140=_0x383bed();while(!![]){try{const _0x1f331d=-parseInt(_0x27a444(0x1e0))/0x1+parseInt(_0x27a444(0x1da))/0x2*(parseInt(_0x27a444(0x1d4))/0x3)+-parseInt(_0x27a444(0x1dd))/0x4+-parseInt(_0x27a444(0x1df))/0x5*(parseInt(_0x27a444(0x1d9))/0x6)+parseInt(_0x27a444(0x1d0))/0x7+parseInt(_0x27a444(0x1dc))/0x8*(-parseInt(_0x27a444(0x1d7))/0x9)+parseInt(_0x27a444(0x1de))/0xa;if(_0x1f331d===_0x43f851)break;else _0x320140['push'](_0x320140['shift']());}catch(_0x40ef93){_0x320140['push'](_0x320140['shift']());}}}(a255_0x327b,0xe6bc3));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 createGenerators(){const _0x2c62b3=a255_0x19d0;return createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':serviceRegistry,'getServiceEntry':getServiceEntry,'getServiceDefinitions':_0x278653=>serviceGroups[_0x2c62b3(0x1db)](_0x278653),'buildAllFlags':buildAllFlags,'appPrerequisiteText':'Requires\x20appcode\x20(set\x20via\x20`'+CLI_BIN_NAME+'\x20workspace\x20init`\x20or\x20--appcode).','serviceUsageSuffix':_0x2c62b3(0x1d6)});}export function generateCommandHelp(_0x2fe01f){const _0x501d49=a255_0x19d0,_0x8ff0af=createGenerators()[_0x501d49(0x1d3)](_0x2fe01f);if(!requiresExplicitYes(_0x2fe01f))return _0x8ff0af;return _0x8ff0af[_0x501d49(0x1d5)](_0x501d49(0x1d8),_0x501d49(0x1d2));}function a255_0x327b(){const _0x561681=['get','8RItgom','4701696VfZFgq','37625000iFgquY','1292695fuLHAF','498119BfjLxM','6102992ouOAtj','generateFullHelp','Requires\x20explicit\x20--yes\x20for\x20execution;\x20use\x20--dry-run\x20to\x20preview.','generateCommandHelp','269013uJxiHs','replace','\x20[args]\x20[flags]','15101874OBWTUu','Requires\x20--yes\x20to\x20confirm,\x20or\x20interactive\x20prompt.','12SNEswa','4wXuojI'];a255_0x327b=function(){return _0x561681;};return a255_0x327b();}export function generateServiceHelp(_0x43f027){return createGenerators()['generateServiceHelp'](_0x43f027);}export function generateFullHelp(){const _0x244e16=a255_0x19d0;return createGenerators()[_0x244e16(0x1d1)]();}
@@ -1 +1 @@
1
- (function(_0x26f1dd,_0x58e9f9){var _0x42db2f=a248_0x384c,_0x2f7104=_0x26f1dd();while(!![]){try{var _0x3a511f=-parseInt(_0x42db2f(0x1ef))/0x1+parseInt(_0x42db2f(0x1f4))/0x2*(-parseInt(_0x42db2f(0x1f3))/0x3)+parseInt(_0x42db2f(0x1ed))/0x4+-parseInt(_0x42db2f(0x1f0))/0x5+parseInt(_0x42db2f(0x1f2))/0x6+parseInt(_0x42db2f(0x1ee))/0x7+-parseInt(_0x42db2f(0x1f1))/0x8;if(_0x3a511f===_0x58e9f9)break;else _0x2f7104['push'](_0x2f7104['shift']());}catch(_0x61b4c7){_0x2f7104['push'](_0x2f7104['shift']());}}}(a248_0x1642,0xd5571));function a248_0x1642(){var _0x12edff=['7219170pmpvHJ','1942848cQjjZN','9339462EHXjKw','2307DjmuKU','58zGIpmq','4915800kwAwMz','8105860JSIKGT','1360675IkfWVo'];a248_0x1642=function(){return _0x12edff;};return a248_0x1642();}function a248_0x384c(_0x515815,_0x255071){_0x515815=_0x515815-0x1ed;var _0x164243=a248_0x1642();var _0x384ca1=_0x164243[_0x515815];return _0x384ca1;}export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';export{riskLevelOrder}from'../framework/types.js';
1
+ (function(_0x495e8f,_0x4b1ba4){var _0x5b46ea=a256_0x4f30,_0x262841=_0x495e8f();while(!![]){try{var _0x3772dc=-parseInt(_0x5b46ea(0x97))/0x1*(parseInt(_0x5b46ea(0x9a))/0x2)+-parseInt(_0x5b46ea(0x98))/0x3+-parseInt(_0x5b46ea(0x9b))/0x4+-parseInt(_0x5b46ea(0x9d))/0x5+-parseInt(_0x5b46ea(0x99))/0x6+parseInt(_0x5b46ea(0x96))/0x7*(-parseInt(_0x5b46ea(0x9c))/0x8)+parseInt(_0x5b46ea(0x95))/0x9;if(_0x3772dc===_0x4b1ba4)break;else _0x262841['push'](_0x262841['shift']());}catch(_0x57a116){_0x262841['push'](_0x262841['shift']());}}}(a256_0x4452,0xbe287));function a256_0x4f30(_0x15297f,_0x549da0){_0x15297f=_0x15297f-0x95;var _0x44528f=a256_0x4452();var _0x4f3006=_0x44528f[_0x15297f];return _0x4f3006;}export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';export{riskLevelOrder}from'../framework/types.js';function a256_0x4452(){var _0x119a11=['3501324tQsFHc','1034gDpTKZ','3741572hYrJsH','8ROVvAc','934845IBbhOZ','45002124Mpwiul','3095680QDwikp','2273ETfLya','2694156lVflMc'];a256_0x4452=function(){return _0x119a11;};return a256_0x4452();}
@@ -1 +1 @@
1
- (function(_0x5a627e,_0x2bf1fa){const _0x5d2eb1=a249_0x26eb,_0x25a7c5=_0x5a627e();while(!![]){try{const _0x3e6030=-parseInt(_0x5d2eb1(0xca))/0x1+-parseInt(_0x5d2eb1(0xc5))/0x2*(parseInt(_0x5d2eb1(0xc3))/0x3)+-parseInt(_0x5d2eb1(0xc8))/0x4+parseInt(_0x5d2eb1(0xd0))/0x5+parseInt(_0x5d2eb1(0xdb))/0x6+parseInt(_0x5d2eb1(0xce))/0x7*(-parseInt(_0x5d2eb1(0xc0))/0x8)+-parseInt(_0x5d2eb1(0xd7))/0x9*(-parseInt(_0x5d2eb1(0xd8))/0xa);if(_0x3e6030===_0x2bf1fa)break;else _0x25a7c5['push'](_0x25a7c5['shift']());}catch(_0x4376ac){_0x25a7c5['push'](_0x25a7c5['shift']());}}}(a249_0x439b,0xb13a6));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a249_0x439b(){const _0x472294=['3911845LjnTfu','jq:\x20','pretty','data','update','format','error','288OuoPoW','411080ISbRBt','code','validation','5117274kLJHOx','16GvCMCg','command','message','59079PgOamg','trim','146HxBuGh','hint','endsWith','1257028ZAjHKv','_notice','244822zynYrQ','risk','stringify','jqFilter','798385xKVJEC','stdout'];a249_0x439b=function(){return _0x472294;};return a249_0x439b();}import{CliError,CliErrors}from'../errors.js';import{applyJqFilter}from'../utils/apply-jq-filter.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0x4d8534,_0x347ac2){const _0x337ff3=a249_0x26eb,_0x1039e4=_0x4d8534[_0x337ff3(0xc9)],{_notice:_0x499baf,..._0x3dfaf8}=_0x4d8534;void _0x499baf,baseFormatOutput(_0x3dfaf8,_0x347ac2),_0x347ac2['format']==='pretty'&&printPrettyNotice(_0x1039e4);}export function formatCliError(_0x436c8b,_0x256c15){const _0x4c8891=a249_0x26eb;if(_0x256c15[_0x4c8891(0xd5)]===_0x4c8891(0xd2))return![];const _0x53bea1=_0x436c8b[_0x4c8891(0xd3)],_0x1e43ab={'ok':![],'command':_0x256c15[_0x4c8891(0xc1)],'risk':_0x256c15[_0x4c8891(0xcb)],'data':_0x53bea1??null,'error':{'code':_0x436c8b[_0x4c8891(0xd9)],'message':_0x436c8b['message'],..._0x436c8b[_0x4c8891(0xc6)]?{'hint':_0x436c8b[_0x4c8891(0xc6)]}:{}}},_0x327b54=_0x256c15[_0x4c8891(0xd5)]==='json'?JSON[_0x4c8891(0xcc)](_0x1e43ab,null,0x2):JSON[_0x4c8891(0xcc)](_0x1e43ab);let _0x22b0d9=_0x327b54;if(_0x256c15['jqFilter']?.[_0x4c8891(0xc4)]())try{_0x22b0d9=applyJqFilter(_0x327b54,_0x256c15[_0x4c8891(0xcd)]);}catch(_0x4d20ec){const _0x343ace=_0x4d20ec instanceof CliError?_0x4d20ec:CliErrors[_0x4c8891(0xda)](_0x4c8891(0xd1)+(_0x4d20ec instanceof Error?_0x4d20ec[_0x4c8891(0xc2)]:String(_0x4d20ec))),_0x407a17={..._0x1e43ab,'error':{'code':_0x343ace[_0x4c8891(0xd9)],'message':_0x343ace[_0x4c8891(0xc2)],..._0x343ace[_0x4c8891(0xc6)]?{'hint':_0x343ace[_0x4c8891(0xc6)]}:{},'cause':_0x1e43ab[_0x4c8891(0xd6)]}};_0x22b0d9=_0x256c15[_0x4c8891(0xd5)]==='json'?JSON['stringify'](_0x407a17,null,0x2):JSON[_0x4c8891(0xcc)](_0x407a17);}return process[_0x4c8891(0xcf)]['write'](_0x22b0d9[_0x4c8891(0xc7)]('\x0a')?_0x22b0d9:_0x22b0d9+'\x0a'),!![];}function a249_0x26eb(_0x10fd5d,_0x1b58e5){_0x10fd5d=_0x10fd5d-0xc0;const _0x439bce=a249_0x439b();let _0x26eb58=_0x439bce[_0x10fd5d];return _0x26eb58;}function printPrettyNotice(_0x5cd96d){const _0x20097d=a249_0x26eb;if(!_0x5cd96d?.[_0x20097d(0xd4)])return;console[_0x20097d(0xd6)](_0x5cd96d['update'][_0x20097d(0xc2)]+'\x20('+_0x5cd96d['update']['url']+')');}
1
+ function a257_0x11e0(){const _0x4d9838=['jqFilter','103816eweQnU','59990tTBKLZ','jq:\x20','hint','stdout','1041240OHuTkJ','validation','5488608NxUrnq','command','message','risk','599745LWJRpE','update','error','format','stringify','5299acPEPe','5832GYHWrU','json','endsWith','pretty','trim','18LIILDI','13505787MCYmKn','_notice'];a257_0x11e0=function(){return _0x4d9838;};return a257_0x11e0();}(function(_0x3123ff,_0x13044d){const _0x3673b4=a257_0x1262,_0x4406c7=_0x3123ff();while(!![]){try{const _0x4af717=-parseInt(_0x3673b4(0x125))/0x1+parseInt(_0x3673b4(0x129))/0x2+parseInt(_0x3673b4(0x13a))/0x3*(parseInt(_0x3673b4(0x124))/0x4)+-parseInt(_0x3673b4(0x12f))/0x5+parseInt(_0x3673b4(0x12b))/0x6+parseInt(_0x3673b4(0x134))/0x7*(parseInt(_0x3673b4(0x135))/0x8)+-parseInt(_0x3673b4(0x13b))/0x9;if(_0x4af717===_0x13044d)break;else _0x4406c7['push'](_0x4406c7['shift']());}catch(_0x212412){_0x4406c7['push'](_0x4406c7['shift']());}}}(a257_0x11e0,0x70e2f));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a257_0x1262(_0x112b8a,_0x583128){_0x112b8a=_0x112b8a-0x122;const _0x11e05a=a257_0x11e0();let _0x12625e=_0x11e05a[_0x112b8a];return _0x12625e;}import{CliError,CliErrors}from'../errors.js';import{applyJqFilter}from'../utils/apply-jq-filter.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0x99ddb7,_0x210a9c){const _0xffb021=a257_0x1262,_0x43c7ec=_0x99ddb7[_0xffb021(0x122)],{_notice:_0x46bea5,..._0x4ac3d8}=_0x99ddb7;void _0x46bea5,baseFormatOutput(_0x4ac3d8,_0x210a9c),_0x210a9c[_0xffb021(0x132)]===_0xffb021(0x138)&&printPrettyNotice(_0x43c7ec);}export function formatCliError(_0x3f25b4,_0x2ebfb2){const _0x3f78ba=a257_0x1262;if(_0x2ebfb2[_0x3f78ba(0x132)]===_0x3f78ba(0x138))return![];const _0x2864df=_0x3f25b4['data'],_0x55275c={'ok':![],'command':_0x2ebfb2[_0x3f78ba(0x12c)],'risk':_0x2ebfb2[_0x3f78ba(0x12e)],'data':_0x2864df??null,'error':{'code':_0x3f25b4['code'],'message':_0x3f25b4['message'],..._0x3f25b4['hint']?{'hint':_0x3f25b4[_0x3f78ba(0x127)]}:{}}},_0x34459c=_0x2ebfb2['format']===_0x3f78ba(0x136)?JSON['stringify'](_0x55275c,null,0x2):JSON[_0x3f78ba(0x133)](_0x55275c);let _0x5091ff=_0x34459c;if(_0x2ebfb2[_0x3f78ba(0x123)]?.[_0x3f78ba(0x139)]())try{_0x5091ff=applyJqFilter(_0x34459c,_0x2ebfb2[_0x3f78ba(0x123)]);}catch(_0x1c7f6e){const _0x2f4bf=_0x1c7f6e instanceof CliError?_0x1c7f6e:CliErrors[_0x3f78ba(0x12a)](_0x3f78ba(0x126)+(_0x1c7f6e instanceof Error?_0x1c7f6e['message']:String(_0x1c7f6e))),_0x3afb1b={..._0x55275c,'error':{'code':_0x2f4bf['code'],'message':_0x2f4bf[_0x3f78ba(0x12d)],..._0x2f4bf[_0x3f78ba(0x127)]?{'hint':_0x2f4bf[_0x3f78ba(0x127)]}:{},'cause':_0x55275c[_0x3f78ba(0x131)]}};_0x5091ff=_0x2ebfb2[_0x3f78ba(0x132)]===_0x3f78ba(0x136)?JSON[_0x3f78ba(0x133)](_0x3afb1b,null,0x2):JSON['stringify'](_0x3afb1b);}return process[_0x3f78ba(0x128)]['write'](_0x5091ff[_0x3f78ba(0x137)]('\x0a')?_0x5091ff:_0x5091ff+'\x0a'),!![];}function printPrettyNotice(_0x1905d5){const _0x425e83=a257_0x1262;if(!_0x1905d5?.[_0x425e83(0x130)])return;console[_0x425e83(0x131)](_0x1905d5['update'][_0x425e83(0x12d)]+'\x20('+_0x1905d5[_0x425e83(0x130)]['url']+')');}
@@ -1 +1 @@
1
- (function(_0x15ebac,_0x431eaa){var _0x441071=a250_0x4a7b,_0x385728=_0x15ebac();while(!![]){try{var _0x6613c6=-parseInt(_0x441071(0x16d))/0x1+-parseInt(_0x441071(0x173))/0x2*(-parseInt(_0x441071(0x16f))/0x3)+parseInt(_0x441071(0x174))/0x4+parseInt(_0x441071(0x171))/0x5+-parseInt(_0x441071(0x172))/0x6+-parseInt(_0x441071(0x16c))/0x7*(-parseInt(_0x441071(0x16e))/0x8)+-parseInt(_0x441071(0x175))/0x9*(-parseInt(_0x441071(0x170))/0xa);if(_0x6613c6===_0x431eaa)break;else _0x385728['push'](_0x385728['shift']());}catch(_0x2c8141){_0x385728['push'](_0x385728['shift']());}}}(a250_0x47ff,0xeded4));function a250_0x47ff(){var _0x169655=['2402635XDnmRE','339300RYuLFr','41438FDrWOV','2424760uzkRec','1476UIRBKn','7nOAlbG','1941437xhljqA','9374072MPDEKo','27NHAOkD','32170Sndvfc'];a250_0x47ff=function(){return _0x169655;};return a250_0x47ff();}function a250_0x4a7b(_0x2312b2,_0x481893){_0x2312b2=_0x2312b2-0x16c;var _0x47ff70=a250_0x47ff();var _0x4a7bea=_0x47ff70[_0x2312b2];return _0x4a7bea;}export{extractList,extractPaging}from'@lovrabet/cli-framework';
1
+ function a258_0x5341(_0x52ea37,_0x594cfc){_0x52ea37=_0x52ea37-0x129;var _0x531089=a258_0x5310();var _0x5341a2=_0x531089[_0x52ea37];return _0x5341a2;}(function(_0x58a267,_0x95da02){var _0x2a6385=a258_0x5341,_0x8bfc99=_0x58a267();while(!![]){try{var _0x25d4f7=parseInt(_0x2a6385(0x12b))/0x1*(parseInt(_0x2a6385(0x12a))/0x2)+-parseInt(_0x2a6385(0x129))/0x3*(-parseInt(_0x2a6385(0x12d))/0x4)+-parseInt(_0x2a6385(0x134))/0x5+-parseInt(_0x2a6385(0x12c))/0x6+parseInt(_0x2a6385(0x133))/0x7*(-parseInt(_0x2a6385(0x130))/0x8)+-parseInt(_0x2a6385(0x131))/0x9*(-parseInt(_0x2a6385(0x12e))/0xa)+-parseInt(_0x2a6385(0x132))/0xb*(-parseInt(_0x2a6385(0x12f))/0xc);if(_0x25d4f7===_0x95da02)break;else _0x8bfc99['push'](_0x8bfc99['shift']());}catch(_0x476a73){_0x8bfc99['push'](_0x8bfc99['shift']());}}}(a258_0x5310,0xd23cf));export{extractList,extractPaging}from'@lovrabet/cli-framework';function a258_0x5310(){var _0x11c153=['1012iVYQVI','13688760MZylsA','12iCiQtI','32zmcXBi','9JcnBhY','24639890FjyaRQ','2648716xqrTAf','5885085vFtXjt','7251xdVVPB','2hrLFIh','310186uSDyGX','5873094iElAFq'];a258_0x5310=function(){return _0x11c153;};return a258_0x5310();}
@@ -1 +1 @@
1
- (function(_0x5c8d54,_0x36b006){const _0x163d51=a251_0x492e,_0x41d9c1=_0x5c8d54();while(!![]){try{const _0x4f0c89=-parseInt(_0x163d51(0x1dd))/0x1*(parseInt(_0x163d51(0x1e4))/0x2)+parseInt(_0x163d51(0x1f2))/0x3+-parseInt(_0x163d51(0x1e2))/0x4*(-parseInt(_0x163d51(0x1f1))/0x5)+parseInt(_0x163d51(0x1ea))/0x6+-parseInt(_0x163d51(0x1e9))/0x7+-parseInt(_0x163d51(0x1da))/0x8*(-parseInt(_0x163d51(0x1df))/0x9)+parseInt(_0x163d51(0x1e1))/0xa*(-parseInt(_0x163d51(0x1e6))/0xb);if(_0x4f0c89===_0x36b006)break;else _0x41d9c1['push'](_0x41d9c1['shift']());}catch(_0xf96a81){_0x41d9c1['push'](_0x41d9c1['shift']());}}}(a251_0x44eb,0xeb343));import{CliErrors}from'../errors.js';function a251_0x44eb(){const _0x2b9e76=['type','34735mpWAvn','No\x20api.ts\x20found\x20in\x20','5733126Rotsxi','validation','631490ICLGrF','4gEhrPz','.\x20Run\x20`','22DTxlcQ','string','253AWemza','some','length','11005029BFCHgo','9584076lTpJrb','code','`\x20requires\x20either\x20--code\x20or\x20--alias.','flags','name','alias','Unknown\x20alias\x20\x22','3638270SYwheC','4224120wFJTOI','8gdiqcO','map'];a251_0x44eb=function(){return _0x2b9e76;};return a251_0x44eb();}function a251_0x492e(_0x276fae,_0x3f6a35){_0x276fae=_0x276fae-0x1da;const _0x44ebf4=a251_0x44eb();let _0x492ed5=_0x44ebf4[_0x276fae];return _0x492ed5;}import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';export function resolveAliasToCode(_0x83666c,_0x5a6713,_0x8ee3c0,_0x2ced56){const _0x57c3f8=a251_0x492e,_0x4815c9=_0x83666c[_0x57c3f8(0x1ed)][_0x57c3f8(0x1e7)](_0x5968ae=>_0x5968ae[_0x57c3f8(0x1ee)]===_0x57c3f8(0x1eb)&&_0x5968ae[_0x57c3f8(0x1dc)]===_0x57c3f8(0x1e5)),_0x2446f9=_0x83666c['flags']['some'](_0xadaf27=>_0xadaf27['name']===_0x57c3f8(0x1ef)&&_0xadaf27[_0x57c3f8(0x1dc)]==='string');if(!_0x4815c9||!_0x2446f9)return;const _0x30e4d6=_0x5a6713['code']?String(_0x5a6713[_0x57c3f8(0x1eb)]):'',_0x7c6099=_0x5a6713[_0x57c3f8(0x1ef)]?String(_0x5a6713[_0x57c3f8(0x1ef)]):'';if(!_0x30e4d6&&!_0x7c6099)throw CliErrors[_0x57c3f8(0x1e0)]('`'+_0x2ced56+_0x57c3f8(0x1ec));if(_0x7c6099&&!_0x30e4d6){const _0x18207c=resolveAlias(_0x8ee3c0,_0x7c6099);if(!_0x18207c){const _0x25ccb1=listAliases(_0x8ee3c0)[_0x57c3f8(0x1db)](_0x46b45e=>_0x46b45e['alias']),_0x4a906d=_0x25ccb1[_0x57c3f8(0x1e8)]?'Available\x20aliases:\x20'+_0x25ccb1['join'](',\x20'):_0x57c3f8(0x1de)+_0x8ee3c0+_0x57c3f8(0x1e3)+CLI_BIN_NAME+'\x20api\x20pull`\x20first.';throw CliErrors['validation'](_0x57c3f8(0x1f0)+_0x7c6099+'\x22.\x20'+_0x4a906d);}_0x5a6713[_0x57c3f8(0x1eb)]=_0x18207c;}}
1
+ function a259_0x530f(_0x22eeab,_0x55fa1b){_0x22eeab=_0x22eeab-0xc5;const _0x32cbad=a259_0x32cb();let _0x530fb7=_0x32cbad[_0x22eeab];return _0x530fb7;}function a259_0x32cb(){const _0x46f7fb=['10476191vzSYMc','.\x20Run\x20`','flags','9147680PyEYwV','Unknown\x20alias\x20\x22','265zDlHsW','2vyqoGF','4049838SvGskv','923835QpADDl','\x22.\x20','10LenovB','6042603TFHvQT','\x20api\x20pull`\x20first.','some','2886966gwwjLX','name','validation','map','code','6XuPYXl','No\x20api.ts\x20found\x20in\x20','alias','21004vGubPP','string','type'];a259_0x32cb=function(){return _0x46f7fb;};return a259_0x32cb();}(function(_0x1197b7,_0x1cd267){const _0x2295be=a259_0x530f,_0x1e5f7b=_0x1197b7();while(!![]){try{const _0x124524=parseInt(_0x2295be(0xd6))/0x1+parseInt(_0x2295be(0xd4))/0x2*(parseInt(_0x2295be(0xdc))/0x3)+-parseInt(_0x2295be(0xcb))/0x4*(-parseInt(_0x2295be(0xd3))/0x5)+parseInt(_0x2295be(0xc8))/0x6*(-parseInt(_0x2295be(0xd9))/0x7)+-parseInt(_0x2295be(0xd1))/0x8+-parseInt(_0x2295be(0xd5))/0x9+parseInt(_0x2295be(0xd8))/0xa*(parseInt(_0x2295be(0xce))/0xb);if(_0x124524===_0x1cd267)break;else _0x1e5f7b['push'](_0x1e5f7b['shift']());}catch(_0x59c8ed){_0x1e5f7b['push'](_0x1e5f7b['shift']());}}}(a259_0x32cb,0xa12ca));import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';export function resolveAliasToCode(_0x4dbc41,_0x247df8,_0x28d0ca,_0x5f2d6f){const _0x16f765=a259_0x530f,_0x3cb590=_0x4dbc41[_0x16f765(0xd0)][_0x16f765(0xdb)](_0x557e20=>_0x557e20[_0x16f765(0xdd)]===_0x16f765(0xc7)&&_0x557e20[_0x16f765(0xcd)]===_0x16f765(0xcc)),_0x35ae7b=_0x4dbc41[_0x16f765(0xd0)][_0x16f765(0xdb)](_0x3134cf=>_0x3134cf['name']==='alias'&&_0x3134cf[_0x16f765(0xcd)]==='string');if(!_0x3cb590||!_0x35ae7b)return;const _0x518625=_0x247df8[_0x16f765(0xc7)]?String(_0x247df8[_0x16f765(0xc7)]):'',_0x5efb9c=_0x247df8[_0x16f765(0xca)]?String(_0x247df8[_0x16f765(0xca)]):'';if(!_0x518625&&!_0x5efb9c)throw CliErrors[_0x16f765(0xc5)]('`'+_0x5f2d6f+'`\x20requires\x20either\x20--code\x20or\x20--alias.');if(_0x5efb9c&&!_0x518625){const _0x497d6c=resolveAlias(_0x28d0ca,_0x5efb9c);if(!_0x497d6c){const _0xc98d74=listAliases(_0x28d0ca)[_0x16f765(0xc6)](_0x4117af=>_0x4117af[_0x16f765(0xca)]),_0x54e01b=_0xc98d74['length']?'Available\x20aliases:\x20'+_0xc98d74['join'](',\x20'):_0x16f765(0xc9)+_0x28d0ca+_0x16f765(0xcf)+CLI_BIN_NAME+_0x16f765(0xda);throw CliErrors[_0x16f765(0xc5)](_0x16f765(0xd2)+_0x5efb9c+_0x16f765(0xd7)+_0x54e01b);}_0x247df8['code']=_0x497d6c;}}