@lovrabet/rabetbase-cli 2.4.7-beta.1 → 2.4.7-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 (329) hide show
  1. package/README.md +4 -4
  2. package/lib/api/api-doc.js +1 -1
  3. package/lib/api/fetch-model-list.js +1 -1
  4. package/lib/api/generate-api-file.js +1 -1
  5. package/lib/auth/auth-server-ui.js +1 -1
  6. package/lib/auth/auth-server.js +1 -1
  7. package/lib/auth/constant.js +1 -1
  8. package/lib/auth/get-cookie.js +1 -1
  9. package/lib/auth/get-session-user.js +1 -1
  10. package/lib/auth/is-session-valid.js +1 -1
  11. package/lib/auth/login-success-html.js +1 -1
  12. package/lib/auth/logout.js +1 -1
  13. package/lib/cli-flags.js +1 -1
  14. package/lib/cli.js +1 -1
  15. package/lib/commands/api/generate.js +1 -1
  16. package/lib/commands/api/index.js +1 -1
  17. package/lib/commands/api/list.js +1 -1
  18. package/lib/commands/api/pull.js +1 -1
  19. package/lib/commands/api/shared.js +1 -1
  20. package/lib/commands/app/index.js +1 -1
  21. package/lib/commands/app/list.js +1 -1
  22. package/lib/commands/app/members-list.js +1 -1
  23. package/lib/commands/app/remote-directory.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app-config/delete.js +1 -1
  26. package/lib/commands/app-config/get.js +1 -1
  27. package/lib/commands/app-config/index.js +1 -1
  28. package/lib/commands/app-config/list.js +1 -1
  29. package/lib/commands/app-config/set.js +1 -1
  30. package/lib/commands/app-config/shared.js +1 -1
  31. package/lib/commands/auth/index.js +1 -1
  32. package/lib/commands/bff/create.js +1 -1
  33. package/lib/commands/bff/delete.js +1 -1
  34. package/lib/commands/bff/detail.js +1 -1
  35. package/lib/commands/bff/index.js +1 -1
  36. package/lib/commands/bff/list.js +1 -1
  37. package/lib/commands/bff/pull.js +1 -1
  38. package/lib/commands/bff/push.js +1 -1
  39. package/lib/commands/bff/status.js +1 -1
  40. package/lib/commands/cli-skill/index.js +1 -1
  41. package/lib/commands/cli-update.js +1 -1
  42. package/lib/commands/codegen/index.js +1 -1
  43. package/lib/commands/codegen/sdk.js +1 -1
  44. package/lib/commands/codegen/sql.js +1 -1
  45. package/lib/commands/common/app-registry.js +1 -1
  46. package/lib/commands/common/app-selector.js +1 -1
  47. package/lib/commands/common/async-task.js +1 -1
  48. package/lib/commands/common/dry-run.js +1 -1
  49. package/lib/commands/common/flags.d.ts +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/get.js +1 -1
  54. package/lib/commands/config/index.js +1 -1
  55. package/lib/commands/config/list.js +1 -1
  56. package/lib/commands/config/set.js +1 -1
  57. package/lib/commands/config/shared.js +1 -1
  58. package/lib/commands/data/filter.js +1 -1
  59. package/lib/commands/data/getOne.js +1 -1
  60. package/lib/commands/data/index.js +1 -1
  61. package/lib/commands/data/shared.js +1 -1
  62. package/lib/commands/dataset/business-group-update.js +1 -1
  63. package/lib/commands/dataset/business-groups.js +1 -1
  64. package/lib/commands/dataset/capability.js +1 -1
  65. package/lib/commands/dataset/delete.js +1 -1
  66. package/lib/commands/dataset/detail.js +1 -1
  67. package/lib/commands/dataset/extend-update.js +1 -1
  68. package/lib/commands/dataset/field-update.js +1 -1
  69. package/lib/commands/dataset/generate.js +1 -1
  70. package/lib/commands/dataset/index.js +1 -1
  71. package/lib/commands/dataset/list.js +1 -1
  72. package/lib/commands/dataset/operations.js +1 -1
  73. package/lib/commands/dataset/relation-audit.js +1 -1
  74. package/lib/commands/dataset/relation-create.js +1 -1
  75. package/lib/commands/dataset/relation-delete.js +1 -1
  76. package/lib/commands/dataset/relation-shared.js +1 -1
  77. package/lib/commands/dataset/relation-update.js +1 -1
  78. package/lib/commands/dataset/relations.js +1 -1
  79. package/lib/commands/dataset/rename.js +1 -1
  80. package/lib/commands/dataset/restore.js +1 -1
  81. package/lib/commands/db/analysis-batching.js +1 -1
  82. package/lib/commands/db/analyze-batch-plan.js +1 -1
  83. package/lib/commands/db/analyze-cancel.js +1 -1
  84. package/lib/commands/db/analyze-start.js +1 -1
  85. package/lib/commands/db/analyze-status.js +1 -1
  86. package/lib/commands/db/create.js +1 -1
  87. package/lib/commands/db/delete.js +1 -1
  88. package/lib/commands/db/detail.js +1 -1
  89. package/lib/commands/db/diff-refresh-start.js +1 -1
  90. package/lib/commands/db/diff-refresh-status.js +1 -1
  91. package/lib/commands/db/diff.js +1 -1
  92. package/lib/commands/db/index.js +1 -1
  93. package/lib/commands/db/list.js +1 -1
  94. package/lib/commands/db/shared.js +1 -1
  95. package/lib/commands/db/tables.js +1 -1
  96. package/lib/commands/db/test.js +1 -1
  97. package/lib/commands/db/update.js +1 -1
  98. package/lib/commands/doctor.js +1 -1
  99. package/lib/commands/file/index.js +1 -1
  100. package/lib/commands/init/index.js +1 -1
  101. package/lib/commands/issue/index.js +1 -1
  102. package/lib/commands/issue/nudge.js +1 -1
  103. package/lib/commands/issue/report.js +1 -1
  104. package/lib/commands/issue/shared.js +1 -1
  105. package/lib/commands/kb/create.js +1 -1
  106. package/lib/commands/kb/delete.js +1 -1
  107. package/lib/commands/kb/detail.js +1 -1
  108. package/lib/commands/kb/index.js +1 -1
  109. package/lib/commands/kb/list.js +1 -1
  110. package/lib/commands/kb/search.js +1 -1
  111. package/lib/commands/kb/shared.js +1 -1
  112. package/lib/commands/kb/update.js +1 -1
  113. package/lib/commands/logs/index.js +1 -1
  114. package/lib/commands/menu/asset-update.js +1 -1
  115. package/lib/commands/menu/delete.js +1 -1
  116. package/lib/commands/menu/external-link-create.js +1 -1
  117. package/lib/commands/menu/external-link-update.js +1 -1
  118. package/lib/commands/menu/group-create.js +1 -1
  119. package/lib/commands/menu/group-update.js +1 -1
  120. package/lib/commands/menu/index.js +1 -1
  121. package/lib/commands/menu/list.js +1 -1
  122. package/lib/commands/menu/move.js +1 -1
  123. package/lib/commands/menu/regroup-start.js +1 -1
  124. package/lib/commands/menu/rename.js +1 -1
  125. package/lib/commands/menu/shared/compare-table.js +1 -1
  126. package/lib/commands/menu/shared/delete-plan.js +1 -1
  127. package/lib/commands/menu/shared/facts.js +1 -1
  128. package/lib/commands/menu/shared/index.js +1 -1
  129. package/lib/commands/menu/shared/inquirer.js +1 -1
  130. package/lib/commands/menu/shared/local-pages.js +1 -1
  131. package/lib/commands/menu/shared/logic.js +1 -1
  132. package/lib/commands/menu/shared/mutations.js +1 -1
  133. package/lib/commands/menu/shared/service.js +1 -1
  134. package/lib/commands/menu/shared/sync-core.js +1 -1
  135. package/lib/commands/menu/shared/update-core.js +1 -1
  136. package/lib/commands/menu/shared/valid-url.js +1 -1
  137. package/lib/commands/menu/sync.js +1 -1
  138. package/lib/commands/menu/visibility-update.js +1 -1
  139. package/lib/commands/notification/config-create.js +1 -1
  140. package/lib/commands/notification/config-delete.js +1 -1
  141. package/lib/commands/notification/config-list.js +1 -1
  142. package/lib/commands/notification/config-update.js +1 -1
  143. package/lib/commands/notification/index.js +1 -1
  144. package/lib/commands/notification/shared.js +1 -1
  145. package/lib/commands/ocr/index.js +1 -1
  146. package/lib/commands/page/create.js +1 -1
  147. package/lib/commands/page/custom/detail.js +1 -1
  148. package/lib/commands/page/custom/list.js +1 -1
  149. package/lib/commands/page/custom/publish.js +1 -1
  150. package/lib/commands/page/custom/shared.js +1 -1
  151. package/lib/commands/page/custom/syntax.js +1 -1
  152. package/lib/commands/page/custom/template.js +1 -1
  153. package/lib/commands/page/custom/update.js +1 -1
  154. package/lib/commands/page/data-list-status.js +1 -1
  155. package/lib/commands/page/generate-start.js +1 -1
  156. package/lib/commands/page/generate-status.js +1 -1
  157. package/lib/commands/page/index.js +1 -1
  158. package/lib/commands/page/pull.js +1 -1
  159. package/lib/commands/page/push.js +1 -1
  160. package/lib/commands/page/relation-audit.js +1 -1
  161. package/lib/commands/page/restore.js +1 -1
  162. package/lib/commands/page/shared.js +1 -1
  163. package/lib/commands/page/sync.js +1 -1
  164. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  165. package/lib/commands/project/create/format-elapsed.js +1 -1
  166. package/lib/commands/project/create/main.js +1 -1
  167. package/lib/commands/project/create/materialize-project-template.js +1 -1
  168. package/lib/commands/project/create/project-name.js +1 -1
  169. package/lib/commands/project/create/project-template-archive.js +1 -1
  170. package/lib/commands/project/create/project-template-path.js +1 -1
  171. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  172. package/lib/commands/project/create/use-format-code.js +1 -1
  173. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  174. package/lib/commands/project/index.js +1 -1
  175. package/lib/commands/project/upgrade.js +1 -1
  176. package/lib/commands/registry.js +1 -1
  177. package/lib/commands/role/delete.js +1 -1
  178. package/lib/commands/role/detail.js +1 -1
  179. package/lib/commands/role/index.js +1 -1
  180. package/lib/commands/role/list.js +1 -1
  181. package/lib/commands/role/shared.js +1 -1
  182. package/lib/commands/role/update.js +1 -1
  183. package/lib/commands/role/user-add.js +1 -1
  184. package/lib/commands/role/user-remove.js +1 -1
  185. package/lib/commands/role/user-resolve.js +1 -1
  186. package/lib/commands/run/index.js +1 -1
  187. package/lib/commands/schema.js +1 -1
  188. package/lib/commands/sql/create.js +1 -1
  189. package/lib/commands/sql/delete.js +1 -1
  190. package/lib/commands/sql/detail.js +1 -1
  191. package/lib/commands/sql/exec.js +1 -1
  192. package/lib/commands/sql/index.js +1 -1
  193. package/lib/commands/sql/list.js +1 -1
  194. package/lib/commands/sql/pull.js +1 -1
  195. package/lib/commands/sql/push.js +1 -1
  196. package/lib/commands/sql/shared.js +1 -1
  197. package/lib/commands/sql/status.js +1 -1
  198. package/lib/commands/sql/validate.js +1 -1
  199. package/lib/commands/task/index.js +1 -1
  200. package/lib/commands/task/status.js +1 -1
  201. package/lib/commands/tenant/index.js +1 -1
  202. package/lib/commands/tenant/members-list.js +1 -1
  203. package/lib/commands/tenant/shared.js +1 -1
  204. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  205. package/lib/commands/user-account/index.js +1 -1
  206. package/lib/commands/workspace/add.js +1 -1
  207. package/lib/commands/workspace/index.js +1 -1
  208. package/lib/commands/workspace/remove.js +1 -1
  209. package/lib/config/schema.js +1 -1
  210. package/lib/constant/cdn.js +1 -1
  211. package/lib/constant/cli.js +1 -1
  212. package/lib/constant/defaults.js +1 -1
  213. package/lib/constant/domain.js +1 -1
  214. package/lib/constant/env.js +1 -1
  215. package/lib/constant/output.js +1 -1
  216. package/lib/constant/paths.js +1 -1
  217. package/lib/constant/risk.js +1 -1
  218. package/lib/context/app-resolver.js +1 -1
  219. package/lib/context/auth-resolver.js +1 -1
  220. package/lib/context/config-loader.js +1 -1
  221. package/lib/context.js +1 -1
  222. package/lib/core/alias-resolver.js +1 -1
  223. package/lib/core/api-client.d.ts +1 -1
  224. package/lib/core/api-client.js +1 -1
  225. package/lib/core/bff/config.d.ts +1 -1
  226. package/lib/core/bff/config.js +1 -1
  227. package/lib/core/bff/file-system.d.ts +1 -1
  228. package/lib/core/bff/file-system.js +1 -1
  229. package/lib/core/bff/hash.d.ts +1 -1
  230. package/lib/core/bff/hash.js +1 -1
  231. package/lib/core/bff/lock.d.ts +2 -2
  232. package/lib/core/bff/lock.js +1 -1
  233. package/lib/core/bff/types.d.ts +1 -1
  234. package/lib/core/bff/utils.d.ts +2 -2
  235. package/lib/core/bff/utils.js +1 -1
  236. package/lib/core/db-resolver.js +1 -1
  237. package/lib/core/page/file-system.js +1 -1
  238. package/lib/core/page/hash.js +1 -1
  239. package/lib/core/page/lock.js +1 -1
  240. package/lib/core/sql-index-auditor.js +1 -1
  241. package/lib/core/sql-sync/config.js +1 -1
  242. package/lib/core/sql-sync/file-system.js +1 -1
  243. package/lib/core/sql-sync/hash.js +1 -1
  244. package/lib/core/sql-sync/lock.js +1 -1
  245. package/lib/core/sql-sync/utils.js +1 -1
  246. package/lib/core/sql-validator.js +1 -1
  247. package/lib/errors.js +1 -1
  248. package/lib/framework/build-all-flags.js +1 -1
  249. package/lib/framework/error-output.js +1 -1
  250. package/lib/framework/explicit-yes.js +1 -1
  251. package/lib/framework/flags.js +1 -1
  252. package/lib/framework/help.js +1 -1
  253. package/lib/framework/index.js +1 -1
  254. package/lib/framework/output.js +1 -1
  255. package/lib/framework/response.js +1 -1
  256. package/lib/framework/runner-alias.js +1 -1
  257. package/lib/framework/runner.js +1 -1
  258. package/lib/framework/schema-export.js +1 -1
  259. package/lib/framework/types.js +1 -1
  260. package/lib/generated/build-info.d.ts +4 -4
  261. package/lib/generated/build-info.js +1 -1
  262. package/lib/help.js +1 -1
  263. package/lib/postinstall.js +1 -1
  264. package/lib/runtime/confirmation.js +1 -1
  265. package/lib/runtime/event.js +1 -1
  266. package/lib/runtime/index.js +1 -1
  267. package/lib/runtime/queue.js +1 -1
  268. package/lib/runtime/resolve.js +1 -1
  269. package/lib/skills/builtin-skill.js +1 -1
  270. package/lib/skills/main.js +1 -1
  271. package/lib/skills/npx-skills-add.js +1 -1
  272. package/lib/skills/skill-presence.js +1 -1
  273. package/lib/telemetry/cli-command-trace.js +1 -1
  274. package/lib/telemetry/cli-help-trace.js +1 -1
  275. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  276. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  277. package/lib/telemetry/send-cli-trace-log.js +1 -1
  278. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  279. package/lib/utils/ai_config.js +1 -1
  280. package/lib/utils/apply-jq-filter.js +1 -1
  281. package/lib/utils/cdn-config.js +1 -1
  282. package/lib/utils/check-sdk-version.js +1 -1
  283. package/lib/utils/cli-version-check.js +1 -1
  284. package/lib/utils/cli-version-policy.js +1 -1
  285. package/lib/utils/config.js +1 -1
  286. package/lib/utils/entity-with-id.js +1 -1
  287. package/lib/utils/file-utils.js +1 -1
  288. package/lib/utils/guides-cdn.js +1 -1
  289. package/lib/utils/http-client.js +1 -1
  290. package/lib/utils/is-non-interactive.js +1 -1
  291. package/lib/utils/logger.js +1 -1
  292. package/lib/utils/params.js +1 -1
  293. package/lib/utils/platform.js +1 -1
  294. package/lib/utils/rules-cdn.js +1 -1
  295. package/lib/utils/sleep.js +1 -1
  296. package/lib/utils/template-replacer.js +1 -1
  297. package/lib/utils/update-notice.js +1 -1
  298. package/lib/utils/version.js +1 -1
  299. package/lib/utils/with-active-cookie.js +1 -1
  300. package/lib/utils/write-cli-side-channel.js +1 -1
  301. package/package.json +2 -2
  302. package/sidecar/flags.json +1 -1
  303. package/skills/rabetbase/SKILL.md +28 -28
  304. package/skills/rabetbase/guides/backend-function.md +30 -30
  305. package/skills/rabetbase/guides/best-practices.md +8 -8
  306. package/skills/rabetbase/guides/bff-creation-workflow.md +16 -16
  307. package/skills/rabetbase/guides/conflict-detection.md +3 -3
  308. package/skills/rabetbase/guides/custom-page-workflow.md +8 -8
  309. package/skills/rabetbase/guides/data-api-guidelines.md +6 -6
  310. package/skills/rabetbase/guides/legacy-application-blueprint-workflow.md +8 -8
  311. package/skills/rabetbase/guides/sql-creation-workflow.md +2 -2
  312. package/skills/rabetbase/guides/troubleshooting.md +6 -6
  313. package/skills/rabetbase/guides/typescript-sdk.md +10 -10
  314. package/skills/rabetbase/knowledge/page-schema/LrSmartTable.md +1 -1
  315. package/skills/rabetbase/knowledge/page-schema/external-resources-usage.md +10 -10
  316. package/skills/rabetbase/references/rabetbase-app-config.md +2 -2
  317. package/skills/rabetbase/references/rabetbase-bff-create.md +3 -3
  318. package/skills/rabetbase/references/rabetbase-bff-delete.md +1 -1
  319. package/skills/rabetbase/references/rabetbase-bff-detail.md +4 -4
  320. package/skills/rabetbase/references/rabetbase-bff-list.md +8 -8
  321. package/skills/rabetbase/references/rabetbase-bff-pull.md +1 -1
  322. package/skills/rabetbase/references/rabetbase-bff-push.md +3 -3
  323. package/skills/rabetbase/references/rabetbase-bff-status.md +1 -1
  324. package/skills/rabetbase/references/rabetbase-codegen-sql.md +3 -3
  325. package/skills/rabetbase/references/rabetbase-dataset-detail.md +1 -1
  326. package/skills/rabetbase/references/rabetbase-notification-config-list.md +3 -3
  327. package/skills/rabetbase.manifest.json +3 -3
  328. package/templates/rules/lovrabet_rules.mdc.tpl +7 -7
  329. package/templates/skill/SKILL.md.tpl +12 -12
@@ -1 +1 @@
1
- const a227_0x4cf7a8=a227_0x3347;(function(_0x49b999,_0x1d8263){const _0x5e5cc7=a227_0x3347,_0x4a00dc=_0x49b999();while(!![]){try{const _0x5ef74d=parseInt(_0x5e5cc7(0x1ae))/0x1+-parseInt(_0x5e5cc7(0x1a6))/0x2+parseInt(_0x5e5cc7(0x1aa))/0x3*(-parseInt(_0x5e5cc7(0x1ad))/0x4)+parseInt(_0x5e5cc7(0x1ac))/0x5*(parseInt(_0x5e5cc7(0x1a0))/0x6)+-parseInt(_0x5e5cc7(0x1b3))/0x7*(parseInt(_0x5e5cc7(0x1a9))/0x8)+-parseInt(_0x5e5cc7(0x1b0))/0x9*(parseInt(_0x5e5cc7(0x1b4))/0xa)+parseInt(_0x5e5cc7(0x1a2))/0xb;if(_0x5ef74d===_0x1d8263)break;else _0x4a00dc['push'](_0x4a00dc['shift']());}catch(_0x12ad28){_0x4a00dc['push'](_0x4a00dc['shift']());}}}(a227_0x4e68,0x64e8c));export const DEFAULT_BFF_SCRIPT_DESCRIPTION=a227_0x4cf7a8(0x1a1);const LEGACY_DEFAULT_BFF_SCRIPT_DESCRIPTION='TODO:\x20add\x20script\x20description';export function snakeToCamel(_0x2309a6){const _0x398efb=a227_0x4cf7a8;return _0x2309a6['toLowerCase']()['replace'](/_([a-z])/g,(_0x3be80e,_0x28a928)=>_0x28a928[_0x398efb(0x1b7)]());}export function findHookLocationByRemoteId(_0x3cd516,_0x5f2e8a){const _0x149646=a227_0x4cf7a8;if(!_0x5f2e8a)return undefined;for(const _0x30cf97 of Object[_0x149646(0x1b8)](_0x3cd516)){if(_0x30cf97[_0x149646(0x1a7)]===_0x5f2e8a&&_0x30cf97[_0x149646(0x1a5)]&&_0x30cf97[_0x149646(0x1b6)]&&_0x30cf97[_0x149646(0x19e)])return{'datasetCode':_0x30cf97[_0x149646(0x1a5)],'operationType':_0x30cf97[_0x149646(0x1b6)],'functionNode':_0x30cf97['functionNode']};}return undefined;}export function extractScriptDescription(_0x4d0984){const _0xbd9801=a227_0x4cf7a8,_0x32d7d8=_0x4d0984['match'](/^\s*\/\*\*([\s\S]*?)\*\//);if(!_0x32d7d8?.[0x1])return undefined;const _0x1527fe=_0x32d7d8[0x1],_0x153434=_0x2e205f=>{const _0x4890ba=a227_0x3347,_0x50b65b=_0x2e205f?.[_0x4890ba(0x1af)]();if(!_0x50b65b||_0x50b65b===DEFAULT_BFF_SCRIPT_DESCRIPTION||_0x50b65b===LEGACY_DEFAULT_BFF_SCRIPT_DESCRIPTION)return undefined;return _0x50b65b;},_0x4aa2ff=_0x1527fe[_0xbd9801(0x1b2)](/^\s*\*\s*\[\s*脚本描述\s*]\s*(.+)$/m);if(_0x4aa2ff)return _0x153434(_0x4aa2ff[0x1]);const _0x2498bb=_0x1527fe[_0xbd9801(0x1a8)](/\r?\n/)[_0xbd9801(0x19f)](_0x4d9392=>_0x4d9392[_0xbd9801(0x1a4)](/^\s*\*\s?/,'')['trim']()),_0x1a35e3=_0x2498bb[_0xbd9801(0x1a3)](_0x505502=>/^\[\s*脚本类型\s*]\s*\S+/['test'](_0x505502))&&_0x2498bb['some'](_0xf2e2fb=>/^\[\s*脚本名称\s*]\s*\S+/[_0xbd9801(0x1ab)](_0xf2e2fb));if(!_0x1a35e3)return undefined;for(const _0x55e551 of _0x2498bb){if(!_0x55e551||_0x55e551['startsWith']('@')||/^\[[^\]]+]\s*/[_0xbd9801(0x1ab)](_0x55e551))continue;return _0x153434(_0x55e551);}return undefined;}export function isValidBffFunctionName(_0x4d6539){const _0x3fe4cd=a227_0x4cf7a8;return/^[A-Za-z_$][A-Za-z0-9_$]*$/[_0x3fe4cd(0x1ab)](_0x4d6539);}function a227_0x4e68(){const _0x486273=['563871SIMwZK','trim','837nknRDz','after','match','40243XziosD','10020YYUmGl','toLowerCase','operationType','toUpperCase','values','functionNode','map','435360vxpbUY','TODO:\x20补充脚本功能描述','5794789WeXOfP','some','replace','datasetCode','424720lxGbmJ','remoteId','split','1064zpPGFQ','345309vYacjQ','test','35DuliZe','4kwThuG'];a227_0x4e68=function(){return _0x486273;};return a227_0x4e68();}function a227_0x3347(_0x1d0daa,_0x587540){_0x1d0daa=_0x1d0daa-0x19e;const _0x4e685f=a227_0x4e68();let _0x33474f=_0x4e685f[_0x1d0daa];return _0x33474f;}export function normalizeHookFunctionNode(_0x10f92){const _0x270a3f=a227_0x4cf7a8;if(!_0x10f92)return undefined;const _0x253489=_0x10f92['trim']()[_0x270a3f(0x1b5)]();if(_0x253489==='before'||_0x253489===_0x270a3f(0x1b1))return _0x253489;return undefined;}
1
+ const a227_0x46e680=a227_0x412f;(function(_0x4fae8b,_0x4c307a){const _0x340695=a227_0x412f,_0x5533fe=_0x4fae8b();while(!![]){try{const _0x4c0190=parseInt(_0x340695(0x7d))/0x1+parseInt(_0x340695(0x83))/0x2*(parseInt(_0x340695(0x8a))/0x3)+-parseInt(_0x340695(0x8f))/0x4*(parseInt(_0x340695(0x90))/0x5)+-parseInt(_0x340695(0x92))/0x6*(parseInt(_0x340695(0x7c))/0x7)+parseInt(_0x340695(0x7b))/0x8*(-parseInt(_0x340695(0x89))/0x9)+-parseInt(_0x340695(0x81))/0xa+-parseInt(_0x340695(0x91))/0xb*(parseInt(_0x340695(0x87))/0xc);if(_0x4c0190===_0x4c307a)break;else _0x5533fe['push'](_0x5533fe['shift']());}catch(_0x4c4635){_0x5533fe['push'](_0x5533fe['shift']());}}}(a227_0x29c4,0x82052));export const DEFAULT_BFF_SCRIPT_DESCRIPTION='TODO:\x20补充脚本功能描述';const LEGACY_DEFAULT_BFF_SCRIPT_DESCRIPTION=a227_0x46e680(0x93);export function snakeToCamel(_0x493892){const _0xcd85e5=a227_0x46e680;return _0x493892[_0xcd85e5(0x86)]()[_0xcd85e5(0x88)](/_([a-z])/g,(_0x47879e,_0x446f9b)=>_0x446f9b[_0xcd85e5(0x7e)]());}function a227_0x412f(_0x175cf4,_0x213dff){_0x175cf4=_0x175cf4-0x7b;const _0x29c4c7=a227_0x29c4();let _0x412fb1=_0x29c4c7[_0x175cf4];return _0x412fb1;}export function findHookLocationByRemoteId(_0x51805c,_0x2730a2){const _0x2c4179=a227_0x46e680;if(!_0x2730a2)return undefined;for(const _0x31eabf of Object[_0x2c4179(0x8d)](_0x51805c)){if(_0x31eabf['remoteId']===_0x2730a2&&_0x31eabf[_0x2c4179(0x7f)]&&_0x31eabf[_0x2c4179(0x8c)]&&_0x31eabf['functionNode'])return{'datasetCode':_0x31eabf[_0x2c4179(0x7f)],'operationType':_0x31eabf[_0x2c4179(0x8c)],'functionNode':_0x31eabf['functionNode']};}return undefined;}export function extractScriptDescription(_0xe865e2){const _0x47bfe9=a227_0x46e680,_0x247361=_0xe865e2[_0x47bfe9(0x95)](/^\s*\/\*\*([\s\S]*?)\*\//);if(!_0x247361?.[0x1])return undefined;const _0x10b8f8=_0x247361[0x1],_0x124bee=_0x2a315a=>{const _0x1905e2=_0x2a315a?.['trim']();if(!_0x1905e2||_0x1905e2===DEFAULT_BFF_SCRIPT_DESCRIPTION||_0x1905e2===LEGACY_DEFAULT_BFF_SCRIPT_DESCRIPTION)return undefined;return _0x1905e2;},_0x697737=_0x10b8f8[_0x47bfe9(0x95)](/^\s*\*\s*\[\s*脚本描述\s*]\s*(.+)$/m);if(_0x697737)return _0x124bee(_0x697737[0x1]);const _0x2d0905=_0x10b8f8[_0x47bfe9(0x82)](/\r?\n/)[_0x47bfe9(0x85)](_0x5b3aa1=>_0x5b3aa1[_0x47bfe9(0x88)](/^\s*\*\s?/,'')[_0x47bfe9(0x94)]()),_0x1688dc=_0x2d0905[_0x47bfe9(0x8e)](_0x49db80=>/^\[\s*脚本类型\s*]\s*\S+/['test'](_0x49db80))&&_0x2d0905['some'](_0x5f22e7=>/^\[\s*脚本名称\s*]\s*\S+/['test'](_0x5f22e7));if(!_0x1688dc)return undefined;for(const _0x43c307 of _0x2d0905){if(!_0x43c307||_0x43c307[_0x47bfe9(0x84)]('@')||/^\[[^\]]+]\s*/[_0x47bfe9(0x96)](_0x43c307))continue;return _0x124bee(_0x43c307);}return undefined;}export function isValidBffFunctionName(_0x24461e){const _0x56d752=a227_0x46e680;return/^[A-Za-z_$][A-Za-z0-9_$]*$/[_0x56d752(0x96)](_0x24461e);}export function normalizeHookFunctionNode(_0x2fbb16){const _0x1c6c6d=a227_0x46e680;if(!_0x2fbb16)return undefined;const _0x250b0c=_0x2fbb16[_0x1c6c6d(0x94)]()[_0x1c6c6d(0x86)]();if(_0x250b0c===_0x1c6c6d(0x8b)||_0x250b0c===_0x1c6c6d(0x80))return _0x250b0c;return undefined;}function a227_0x29c4(){const _0x541577=['replace','3429585IbCrcA','6051ebUlIl','before','operationType','values','some','816amtkps','7270VIrfJA','11Vrtqje','48tlhBRW','TODO:\x20add\x20script\x20description','trim','match','test','8fOTVbw','145201bZMhzA','1047433qGMHWN','toUpperCase','datasetCode','after','1991160TKZaCn','split','968CQIGRj','startsWith','map','toLowerCase','5380296vvqjrr'];a227_0x29c4=function(){return _0x541577;};return a227_0x29c4();}
@@ -1 +1 @@
1
- (function(_0x1fa267,_0xa1a3e6){const _0x1cde97=a228_0x4b48,_0x308339=_0x1fa267();while(!![]){try{const _0x92a976=-parseInt(_0x1cde97(0x96))/0x1+parseInt(_0x1cde97(0x8f))/0x2*(parseInt(_0x1cde97(0x84))/0x3)+parseInt(_0x1cde97(0x81))/0x4+-parseInt(_0x1cde97(0x93))/0x5+parseInt(_0x1cde97(0x88))/0x6+-parseInt(_0x1cde97(0x87))/0x7+parseInt(_0x1cde97(0x91))/0x8*(parseInt(_0x1cde97(0x85))/0x9);if(_0x92a976===_0xa1a3e6)break;else _0x308339['push'](_0x308339['shift']());}catch(_0x22572b){_0x308339['push'](_0x308339['shift']());}}}(a228_0x4b36,0x42713));import{listDatasets}from'../core/api-client.js';const cache=new Map();export async function listDatabases(_0x440cf5){const _0x231b55=a228_0x4b48;if(cache[_0x231b55(0x8e)](_0x440cf5))return cache[_0x231b55(0x90)](_0x440cf5);const _0x44b738=await listDatasets(_0x440cf5),_0x1ffaec=new Map();for(const _0x12351b of _0x44b738){const _0x4b7102=_0x12351b[_0x231b55(0x92)];_0x4b7102?.[_0x231b55(0x8a)]!=null&&_0x1ffaec['set'](_0x4b7102['dbId'],_0x4b7102[_0x231b55(0x7e)]??_0x231b55(0x97)+_0x4b7102[_0x231b55(0x8a)]);}const _0x5067c8=[..._0x1ffaec['entries']()]['map'](([_0x77dd7c,_0x57780])=>({'dbId':_0x77dd7c,'dbName':_0x57780}));return cache[_0x231b55(0x7f)](_0x440cf5,_0x5067c8),_0x5067c8;}function a228_0x4b48(_0x3a61ba,_0x2a9ea0){_0x3a61ba=_0x3a61ba-0x7e;const _0x4b366f=a228_0x4b36();let _0x4b48ba=_0x4b366f[_0x3a61ba];return _0x4b48ba;}export async function resolveDb(_0x1afdbc,_0x576163){const _0x1fbe63=a228_0x4b48,_0x179c6d=await listDatabases(_0x1afdbc);if(_0x179c6d[_0x1fbe63(0x99)]===0x0)return{'resolved':[],'error':_0x1fbe63(0x95)+_0x1afdbc+_0x1fbe63(0x8c)};if(!_0x576163)return{'resolved':_0x179c6d};const _0x29ff1b=Number(_0x576163);if(!Number['isNaN'](_0x29ff1b)){const _0x247280=_0x179c6d[_0x1fbe63(0x8d)](_0x281f0e=>_0x281f0e['dbId']===_0x29ff1b);if(_0x247280)return{'resolved':[_0x247280]};}const _0x1ff1f5=_0x576163[_0x1fbe63(0x82)](),_0x2e9583=_0x179c6d['filter'](_0x406733=>_0x406733['dbName']['toLowerCase']()[_0x1fbe63(0x98)](_0x1ff1f5));if(_0x2e9583[_0x1fbe63(0x99)]>0x0)return{'resolved':_0x2e9583};const _0x51b888=_0x179c6d[_0x1fbe63(0x9a)](_0xc19939=>_0xc19939[_0x1fbe63(0x7e)]+'\x20('+_0xc19939[_0x1fbe63(0x8a)]+')')[_0x1fbe63(0x83)](',\x20');return{'resolved':[],'error':_0x1fbe63(0x8b)+_0x576163+'\x22\x20under\x20app\x20\x22'+_0x1afdbc+_0x1fbe63(0x89)+_0x51b888+_0x1fbe63(0x80)};}export async function resolveOneDb(_0x48ec8f,_0x4de221){const _0x227af8=a228_0x4b48,{resolved:_0x36b669,error:_0x3413cc}=await resolveDb(_0x48ec8f,_0x4de221);if(_0x3413cc)return{'db':null,'error':_0x3413cc};if(_0x36b669[_0x227af8(0x99)]===0x1)return{'db':_0x36b669[0x0]};if(!_0x4de221){const _0x5b9049=_0x36b669[_0x227af8(0x9a)](_0x4c2161=>_0x4c2161[_0x227af8(0x7e)]+'\x20('+_0x4c2161[_0x227af8(0x8a)]+')')[_0x227af8(0x83)](',\x20');return{'db':null,'error':_0x227af8(0x94)+_0x5b9049};}const _0x3dc4ae=_0x36b669['map'](_0x1c0a18=>_0x1c0a18[_0x227af8(0x7e)]+'\x20('+_0x1c0a18[_0x227af8(0x8a)]+')')[_0x227af8(0x83)](',\x20');return{'db':null,'error':'\x22'+_0x4de221+'\x22\x20matches\x20multiple\x20databases:\x20'+_0x3dc4ae+_0x227af8(0x86)};}export async function getDbName(_0x4717f2,_0x1b1650){const _0xd1612c=a228_0x4b48,_0x7d4ca3=await listDatabases(_0x4717f2);return _0x7d4ca3[_0xd1612c(0x8d)](_0x282ab5=>_0x282ab5[_0xd1612c(0x8a)]===_0x1b1650)?.[_0xd1612c(0x7e)];}function a228_0x4b36(){const _0x52b10b=['Multiple\x20databases\x20found.\x20Specify\x20one\x20with\x20--db:\x20','No\x20linked\x20databases\x20found\x20under\x20app\x20\x22','293647alDRJI','db-','includes','length','map','dbName','set','.\x20If\x20this\x20db\x20belongs\x20to\x20another\x20app,\x20rerun\x20with\x20--appcode\x20<appCode>.','1512860SuWjGp','toLowerCase','join','90KPNFRN','9rxSFNa','.\x20Be\x20more\x20specific.','2725044JfVFaT','2485302yPOKnT','\x22.\x20Available:\x20','dbId','No\x20database\x20matching\x20\x22','\x22.\x20Make\x20sure\x20datasets\x20have\x20been\x20created.','find','has','3670BqdPIG','get','4940168dBLNWF','dbtableConfig','2549585BDDmqL'];a228_0x4b36=function(){return _0x52b10b;};return a228_0x4b36();}
1
+ (function(_0x130698,_0x722b98){const _0x2187fb=a228_0x52d8,_0x2fc220=_0x130698();while(!![]){try{const _0x153208=parseInt(_0x2187fb(0x1bc))/0x1+-parseInt(_0x2187fb(0x1ac))/0x2*(-parseInt(_0x2187fb(0x1af))/0x3)+parseInt(_0x2187fb(0x1b2))/0x4+parseInt(_0x2187fb(0x1c6))/0x5*(-parseInt(_0x2187fb(0x1b7))/0x6)+-parseInt(_0x2187fb(0x1be))/0x7*(parseInt(_0x2187fb(0x1b6))/0x8)+parseInt(_0x2187fb(0x1c7))/0x9*(parseInt(_0x2187fb(0x1a9))/0xa)+-parseInt(_0x2187fb(0x1bd))/0xb;if(_0x153208===_0x722b98)break;else _0x2fc220['push'](_0x2fc220['shift']());}catch(_0x2a3e05){_0x2fc220['push'](_0x2fc220['shift']());}}}(a228_0x4bde,0x34470));import{listDatasets}from'../core/api-client.js';const cache=new Map();function a228_0x4bde(){const _0x5463d7=['3673296NFpKOi','1763629uIPVUq','includes','dbId','set','No\x20linked\x20databases\x20found\x20under\x20app\x20\x22','.\x20If\x20this\x20db\x20belongs\x20to\x20another\x20app,\x20rerun\x20with\x20--appcode\x20<appCode>.','has','.\x20Be\x20more\x20specific.','5XHcNsa','1475802ZLrtfB','find','length','10gbdENP','get','dbName','2lKgQkZ','\x22\x20under\x20app\x20\x22','\x22\x20matches\x20multiple\x20databases:\x20','1272966zKNsoi','entries','dbtableConfig','792060FFNKzf','No\x20database\x20matching\x20\x22','isNaN','\x22.\x20Available:\x20','8IBdWOo','1790862UvTmom','\x22.\x20Make\x20sure\x20datasets\x20have\x20been\x20created.','db-','join','map','312173tIkZGN'];a228_0x4bde=function(){return _0x5463d7;};return a228_0x4bde();}export async function listDatabases(_0x159789){const _0x2fa1da=a228_0x52d8;if(cache[_0x2fa1da(0x1c4)](_0x159789))return cache[_0x2fa1da(0x1aa)](_0x159789);const _0x1d2d54=await listDatasets(_0x159789),_0x14b17c=new Map();for(const _0xbda27b of _0x1d2d54){const _0x191d0c=_0xbda27b[_0x2fa1da(0x1b1)];_0x191d0c?.[_0x2fa1da(0x1c0)]!=null&&_0x14b17c['set'](_0x191d0c[_0x2fa1da(0x1c0)],_0x191d0c[_0x2fa1da(0x1ab)]??_0x2fa1da(0x1b9)+_0x191d0c[_0x2fa1da(0x1c0)]);}const _0x4596cd=[..._0x14b17c[_0x2fa1da(0x1b0)]()]['map'](([_0x1b1b68,_0x2136de])=>({'dbId':_0x1b1b68,'dbName':_0x2136de}));return cache[_0x2fa1da(0x1c1)](_0x159789,_0x4596cd),_0x4596cd;}export async function resolveDb(_0x3d8591,_0x540d3a){const _0x39d411=a228_0x52d8,_0x41dbc5=await listDatabases(_0x3d8591);if(_0x41dbc5[_0x39d411(0x1a8)]===0x0)return{'resolved':[],'error':_0x39d411(0x1c2)+_0x3d8591+_0x39d411(0x1b8)};if(!_0x540d3a)return{'resolved':_0x41dbc5};const _0x283e93=Number(_0x540d3a);if(!Number[_0x39d411(0x1b4)](_0x283e93)){const _0x5e9b8d=_0x41dbc5[_0x39d411(0x1c8)](_0x5e5e8f=>_0x5e5e8f[_0x39d411(0x1c0)]===_0x283e93);if(_0x5e9b8d)return{'resolved':[_0x5e9b8d]};}const _0x193480=_0x540d3a['toLowerCase'](),_0x5eb4af=_0x41dbc5['filter'](_0x179514=>_0x179514[_0x39d411(0x1ab)]['toLowerCase']()[_0x39d411(0x1bf)](_0x193480));if(_0x5eb4af[_0x39d411(0x1a8)]>0x0)return{'resolved':_0x5eb4af};const _0x4b66f6=_0x41dbc5[_0x39d411(0x1bb)](_0x498090=>_0x498090['dbName']+'\x20('+_0x498090[_0x39d411(0x1c0)]+')')[_0x39d411(0x1ba)](',\x20');return{'resolved':[],'error':_0x39d411(0x1b3)+_0x540d3a+_0x39d411(0x1ad)+_0x3d8591+_0x39d411(0x1b5)+_0x4b66f6+_0x39d411(0x1c3)};}function a228_0x52d8(_0x279daf,_0x5b341c){_0x279daf=_0x279daf-0x1a8;const _0x4bdeff=a228_0x4bde();let _0x52d8e6=_0x4bdeff[_0x279daf];return _0x52d8e6;}export async function resolveOneDb(_0x597901,_0x32b9db){const _0xe9ef49=a228_0x52d8,{resolved:_0x3990c0,error:_0x558f4}=await resolveDb(_0x597901,_0x32b9db);if(_0x558f4)return{'db':null,'error':_0x558f4};if(_0x3990c0['length']===0x1)return{'db':_0x3990c0[0x0]};if(!_0x32b9db){const _0x3d4317=_0x3990c0[_0xe9ef49(0x1bb)](_0x10ecd8=>_0x10ecd8[_0xe9ef49(0x1ab)]+'\x20('+_0x10ecd8[_0xe9ef49(0x1c0)]+')')[_0xe9ef49(0x1ba)](',\x20');return{'db':null,'error':'Multiple\x20databases\x20found.\x20Specify\x20one\x20with\x20--db:\x20'+_0x3d4317};}const _0x5e05ea=_0x3990c0[_0xe9ef49(0x1bb)](_0x59680f=>_0x59680f[_0xe9ef49(0x1ab)]+'\x20('+_0x59680f[_0xe9ef49(0x1c0)]+')')[_0xe9ef49(0x1ba)](',\x20');return{'db':null,'error':'\x22'+_0x32b9db+_0xe9ef49(0x1ae)+_0x5e05ea+_0xe9ef49(0x1c5)};}export async function getDbName(_0x3fb9d9,_0x351c10){const _0x21d3f1=a228_0x52d8,_0x5dadf1=await listDatabases(_0x3fb9d9);return _0x5dadf1[_0x21d3f1(0x1c8)](_0x4a33b2=>_0x4a33b2[_0x21d3f1(0x1c0)]===_0x351c10)?.['dbName'];}
@@ -1 +1 @@
1
- const a229_0x39ba38=a229_0x58ff;(function(_0x165001,_0x1b98ab){const _0x3ed581=a229_0x58ff,_0x3963cb=_0x165001();while(!![]){try{const _0x4566ae=-parseInt(_0x3ed581(0x1fa))/0x1+-parseInt(_0x3ed581(0x1f7))/0x2*(parseInt(_0x3ed581(0x1fc))/0x3)+-parseInt(_0x3ed581(0x1f5))/0x4*(parseInt(_0x3ed581(0x1f3))/0x5)+parseInt(_0x3ed581(0x1fd))/0x6*(parseInt(_0x3ed581(0x1f8))/0x7)+parseInt(_0x3ed581(0x1f9))/0x8*(-parseInt(_0x3ed581(0x1fb))/0x9)+parseInt(_0x3ed581(0x1f2))/0xa+parseInt(_0x3ed581(0x1ff))/0xb;if(_0x4566ae===_0x1b98ab)break;else _0x3963cb['push'](_0x3963cb['shift']());}catch(_0x5ea6b5){_0x3963cb['push'](_0x3963cb['shift']());}}}(a229_0x2955,0x4de2a));import{constants}from'node:fs';import{access,mkdir}from'node:fs/promises';import{dirname,join,resolve}from'node:path';function a229_0x2955(){const _0x5cbb5a=['appPagesDir','2872800nGLfKg','278980OHXUkH','toUpperCase','4jivQYn','.rabetbase','731964FMAZOn','7fRwQbX','1869008NfZlxx','240040kUPjWI','9fAurmy','3kDrpKB','2698350kqJujE','page.lock.json','5252027CjcVee','cwd','page'];a229_0x2955=function(){return _0x5cbb5a;};return a229_0x2955();}export function loadPageProjectConfig(_0x503fcf,_0x269653=process[a229_0x39ba38(0x200)]()){const _0x5e0652=a229_0x39ba38,_0x1f2c21=resolve(_0x269653),_0x203461=join(_0x1f2c21,_0x5e0652(0x1f6),_0x5e0652(0x201));return{'projectRoot':_0x1f2c21,'pagesBaseDir':_0x203461,'appPagesDir':join(_0x203461,_0x503fcf),'lockFilePath':join(_0x1f2c21,'.rabetbase',_0x5e0652(0x1fe))};}export function buildPageFileName(_0x3730c3,_0x22c432){const _0x4568b7=a229_0x39ba38;return _0x3730c3+'-'+String(_0x22c432)[_0x4568b7(0x1f4)]()+'.json';}export function resolvePageFilePath(_0x4527a7,_0x3b56af,_0x123001){const _0x44b5e7=a229_0x39ba38;return join(_0x4527a7[_0x44b5e7(0x202)],buildPageFileName(_0x3b56af,_0x123001));}function a229_0x58ff(_0x2fbf03,_0x25c70a){_0x2fbf03=_0x2fbf03-0x1f2;const _0x295551=a229_0x2955();let _0x58ff99=_0x295551[_0x2fbf03];return _0x58ff99;}export async function ensureParentDirectory(_0x3d9725){await mkdir(dirname(_0x3d9725),{'recursive':!![]});}export async function fileExists(_0x555cce){try{return await access(_0x555cce,constants['F_OK']),!![];}catch{return![];}}
1
+ function a229_0x375b(){const _0xfa25ef=['3795585lKbZZl','4199586hmiQYx','cwd','appPagesDir','.rabetbase','4rAQDah','8UpXBhW','4184110jlZbJa','page.lock.json','353322CgLozA','820304Moujcx','.json','page','18254304YkOegP','1290774sCfVnp'];a229_0x375b=function(){return _0xfa25ef;};return a229_0x375b();}function a229_0x5228(_0x3d2be8,_0x33dd3d){_0x3d2be8=_0x3d2be8-0xbe;const _0x375b83=a229_0x375b();let _0x52289d=_0x375b83[_0x3d2be8];return _0x52289d;}const a229_0x52b8c4=a229_0x5228;(function(_0x93065,_0x3a7c38){const _0x502cfc=a229_0x5228,_0x5c55de=_0x93065();while(!![]){try{const _0x58e77b=-parseInt(_0x502cfc(0xc7))/0x1+parseInt(_0x502cfc(0xcb))/0x2+-parseInt(_0x502cfc(0xc6))/0x3+-parseInt(_0x502cfc(0xc2))/0x4*(parseInt(_0x502cfc(0xcc))/0x5)+-parseInt(_0x502cfc(0xbe))/0x6+parseInt(_0x502cfc(0xc4))/0x7+parseInt(_0x502cfc(0xc3))/0x8*(parseInt(_0x502cfc(0xca))/0x9);if(_0x58e77b===_0x3a7c38)break;else _0x5c55de['push'](_0x5c55de['shift']());}catch(_0x472853){_0x5c55de['push'](_0x5c55de['shift']());}}}(a229_0x375b,0xd5707));import{constants}from'node:fs';import{access,mkdir}from'node:fs/promises';import{dirname,join,resolve}from'node:path';export function loadPageProjectConfig(_0x4b7259,_0x16268d=process[a229_0x52b8c4(0xbf)]()){const _0xa4769d=a229_0x52b8c4,_0x2b391e=resolve(_0x16268d),_0x484734=join(_0x2b391e,_0xa4769d(0xc1),_0xa4769d(0xc9));return{'projectRoot':_0x2b391e,'pagesBaseDir':_0x484734,'appPagesDir':join(_0x484734,_0x4b7259),'lockFilePath':join(_0x2b391e,_0xa4769d(0xc1),_0xa4769d(0xc5))};}export function buildPageFileName(_0x4ec12f,_0xabdfce){const _0x265526=a229_0x52b8c4;return _0x4ec12f+'-'+String(_0xabdfce)['toUpperCase']()+_0x265526(0xc8);}export function resolvePageFilePath(_0x105728,_0x3c8b22,_0x76e2ab){const _0x1f6cc5=a229_0x52b8c4;return join(_0x105728[_0x1f6cc5(0xc0)],buildPageFileName(_0x3c8b22,_0x76e2ab));}export async function ensureParentDirectory(_0x3d8cba){await mkdir(dirname(_0x3d8cba),{'recursive':!![]});}export async function fileExists(_0x1968b8){try{return await access(_0x1968b8,constants['F_OK']),!![];}catch{return![];}}
@@ -1 +1 @@
1
- (function(_0x4afadb,_0x3ef1f7){const _0x585312=a230_0x51ae,_0x1f39a1=_0x4afadb();while(!![]){try{const _0x269ea2=-parseInt(_0x585312(0x185))/0x1+parseInt(_0x585312(0x188))/0x2+parseInt(_0x585312(0x182))/0x3*(parseInt(_0x585312(0x190))/0x4)+parseInt(_0x585312(0x192))/0x5*(-parseInt(_0x585312(0x18b))/0x6)+parseInt(_0x585312(0x186))/0x7+parseInt(_0x585312(0x18d))/0x8*(parseInt(_0x585312(0x18e))/0x9)+-parseInt(_0x585312(0x18c))/0xa;if(_0x269ea2===_0x3ef1f7)break;else _0x1f39a1['push'](_0x1f39a1['shift']());}catch(_0x322684){_0x1f39a1['push'](_0x1f39a1['shift']());}}}(a230_0x2b9b,0xcb466));function a230_0x51ae(_0x342f8a,_0x338a6f){_0x342f8a=_0x342f8a-0x182;const _0x2b9bad=a230_0x2b9b();let _0x51ae43=_0x2b9bad[_0x342f8a];return _0x51ae43;}import a230_0x5c4ad4 from'node:crypto';import{readFile}from'node:fs/promises';export function serializePageSchemaForFile(_0x1d28a9){const _0xc5024b=a230_0x51ae;return JSON[_0xc5024b(0x18a)](JSON[_0xc5024b(0x187)](_0x1d28a9),null,0x2)+'\x0a';}function a230_0x2b9b(){const _0x1572b8=['parse','1049286oFaUTu','hex','stringify','30WVoDgH','18923360ptWxyu','3456536GOaawg','9ZVZzAo','createHash','43804GJBtWa','digest','388780ZLxKLg','411sIotvs','md5','utf8','992161AUXOXT','11542258WKdVII'];a230_0x2b9b=function(){return _0x1572b8;};return a230_0x2b9b();}export function computePageContentHash(_0x523c70){const _0x1f8237=a230_0x51ae;return a230_0x5c4ad4[_0x1f8237(0x18f)](_0x1f8237(0x183))['update'](_0x523c70)[_0x1f8237(0x191)](_0x1f8237(0x189));}export function computeSerializedSchemaHash(_0x1618fb){return computePageContentHash(serializePageSchemaForFile(_0x1618fb));}export async function computePageFileHash(_0x55c8ee){const _0x36eee6=a230_0x51ae,_0x1b23cd=await readFile(_0x55c8ee,_0x36eee6(0x184));return computePageContentHash(_0x1b23cd);}
1
+ function a230_0x3fd4(_0x344286,_0x458a8f){_0x344286=_0x344286-0x70;const _0x3f34c6=a230_0x3f34();let _0x3fd43c=_0x3f34c6[_0x344286];return _0x3fd43c;}(function(_0xc62031,_0x4c770c){const _0x5039c8=a230_0x3fd4,_0x1fdf63=_0xc62031();while(!![]){try{const _0x515222=-parseInt(_0x5039c8(0x7b))/0x1*(-parseInt(_0x5039c8(0x70))/0x2)+-parseInt(_0x5039c8(0x73))/0x3+parseInt(_0x5039c8(0x77))/0x4+parseInt(_0x5039c8(0x7e))/0x5*(-parseInt(_0x5039c8(0x78))/0x6)+-parseInt(_0x5039c8(0x75))/0x7*(parseInt(_0x5039c8(0x80))/0x8)+parseInt(_0x5039c8(0x7f))/0x9+parseInt(_0x5039c8(0x74))/0xa;if(_0x515222===_0x4c770c)break;else _0x1fdf63['push'](_0x1fdf63['shift']());}catch(_0x5b8e7f){_0x1fdf63['push'](_0x1fdf63['shift']());}}}(a230_0x3f34,0x8d805));import a230_0x5b344a from'node:crypto';import{readFile}from'node:fs/promises';export function serializePageSchemaForFile(_0x4e5cb1){const _0x5326ae=a230_0x3fd4;return JSON[_0x5326ae(0x76)](JSON[_0x5326ae(0x71)](_0x4e5cb1),null,0x2)+'\x0a';}export function computePageContentHash(_0x1171c0){const _0x50c340=a230_0x3fd4;return a230_0x5b344a[_0x50c340(0x7d)](_0x50c340(0x7c))['update'](_0x1171c0)[_0x50c340(0x7a)](_0x50c340(0x79));}function a230_0x3f34(){const _0x3db1a0=['1143588xkmEff','hex','digest','17GDgVGd','md5','createHash','15rexqiG','7438977SOdnvp','16OrCFcw','46866DiojKo','parse','utf8','47262xmSorN','1986130uqxEtg','3557582fAfbHy','stringify','3040248kcCblA'];a230_0x3f34=function(){return _0x3db1a0;};return a230_0x3f34();}export function computeSerializedSchemaHash(_0x4eaf1c){return computePageContentHash(serializePageSchemaForFile(_0x4eaf1c));}export async function computePageFileHash(_0x4c888b){const _0x4d4ce2=a230_0x3fd4,_0x591cbc=await readFile(_0x4c888b,_0x4d4ce2(0x72));return computePageContentHash(_0x591cbc);}
@@ -1 +1 @@
1
- (function(_0x546762,_0x2022c9){const _0x45aa20=a231_0x5d1f,_0x28700c=_0x546762();while(!![]){try{const _0x4aa18f=parseInt(_0x45aa20(0x1b1))/0x1*(parseInt(_0x45aa20(0x1bf))/0x2)+-parseInt(_0x45aa20(0x1b0))/0x3*(-parseInt(_0x45aa20(0x1ae))/0x4)+parseInt(_0x45aa20(0x1be))/0x5*(parseInt(_0x45aa20(0x1bb))/0x6)+-parseInt(_0x45aa20(0x1c0))/0x7*(parseInt(_0x45aa20(0x1b2))/0x8)+parseInt(_0x45aa20(0x1ac))/0x9*(parseInt(_0x45aa20(0x1b6))/0xa)+-parseInt(_0x45aa20(0x1b4))/0xb*(-parseInt(_0x45aa20(0x1ad))/0xc)+-parseInt(_0x45aa20(0x1b8))/0xd;if(_0x4aa18f===_0x2022c9)break;else _0x28700c['push'](_0x28700c['shift']());}catch(_0x420442){_0x28700c['push'](_0x28700c['shift']());}}}(a231_0x1766,0x434de));import{mkdir,readFile,writeFile}from'node:fs/promises';function a231_0x1766(){const _0x282fad=['apps','459503UJTVKs','stringify','1881670PVJKsr','object','12083916GhvbIE','utf8','Failed\x20to\x20read\x20page\x20lock\x20file:\x20','1465242SUAKKN','lastSync','pages','5ijPIfV','2sRSJUh','105kOmzAy','18NPImAG','12CDFtXR','1016956zsmqyq','parse','3ZwCEUV','435432lpBqae','78280xxIVGE'];a231_0x1766=function(){return _0x282fad;};return a231_0x1766();}import{dirname}from'node:path';export function createEmptyPageLock(){return{'apps':{}};}export function ensurePageLockScope(_0x4b5438,_0x1e2e5d){const _0x3b1636=a231_0x5d1f,_0x3aa0cf={'apps':_0x4b5438[_0x3b1636(0x1b3)]&&typeof _0x4b5438[_0x3b1636(0x1b3)]===_0x3b1636(0x1b7)?_0x4b5438[_0x3b1636(0x1b3)]:{}};let _0xc531a3=_0x3aa0cf[_0x3b1636(0x1b3)][_0x1e2e5d];if(!_0xc531a3)return _0xc531a3={'lastSync':'','pages':{}},_0x3aa0cf[_0x3b1636(0x1b3)][_0x1e2e5d]=_0xc531a3,{'lockData':_0x3aa0cf,'appLock':_0xc531a3};return!_0xc531a3['lastSync']&&(_0xc531a3[_0x3b1636(0x1bc)]=''),(!_0xc531a3[_0x3b1636(0x1bd)]||typeof _0xc531a3[_0x3b1636(0x1bd)]!==_0x3b1636(0x1b7))&&(_0xc531a3[_0x3b1636(0x1bd)]={}),{'lockData':_0x3aa0cf,'appLock':_0xc531a3};}export async function readPageLockFile(_0x203904){const _0x5b22ac=a231_0x5d1f;try{const _0x29b7dc=await readFile(_0x203904,_0x5b22ac(0x1b9)),_0x5c29ee=JSON[_0x5b22ac(0x1af)](_0x29b7dc);return{'apps':_0x5c29ee[_0x5b22ac(0x1b3)]&&typeof _0x5c29ee[_0x5b22ac(0x1b3)]==='object'?_0x5c29ee[_0x5b22ac(0x1b3)]:{}};}catch(_0x2d22fa){if(_0x2d22fa['code']==='ENOENT')return null;throw new Error(_0x5b22ac(0x1ba)+String(_0x2d22fa));}}function a231_0x5d1f(_0x5a23ad,_0x71a8){_0x5a23ad=_0x5a23ad-0x1ac;const _0x1766ad=a231_0x1766();let _0x5d1fbd=_0x1766ad[_0x5a23ad];return _0x5d1fbd;}export async function writePageLockFile(_0x5b676c,_0x20e9c7){const _0x4dd79f=a231_0x5d1f;await mkdir(dirname(_0x5b676c),{'recursive':!![]}),await writeFile(_0x5b676c,JSON[_0x4dd79f(0x1b5)](_0x20e9c7,null,0x2),_0x4dd79f(0x1b9));}
1
+ (function(_0x182973,_0x2e2203){const _0x10c84f=a231_0x1361,_0x241445=_0x182973();while(!![]){try{const _0x3dfbc9=-parseInt(_0x10c84f(0x1a6))/0x1*(parseInt(_0x10c84f(0x1a3))/0x2)+-parseInt(_0x10c84f(0x191))/0x3*(parseInt(_0x10c84f(0x192))/0x4)+parseInt(_0x10c84f(0x1a1))/0x5*(-parseInt(_0x10c84f(0x198))/0x6)+-parseInt(_0x10c84f(0x1a2))/0x7*(parseInt(_0x10c84f(0x197))/0x8)+parseInt(_0x10c84f(0x196))/0x9*(-parseInt(_0x10c84f(0x193))/0xa)+-parseInt(_0x10c84f(0x1a5))/0xb*(parseInt(_0x10c84f(0x19c))/0xc)+parseInt(_0x10c84f(0x19f))/0xd;if(_0x3dfbc9===_0x2e2203)break;else _0x241445['push'](_0x241445['shift']());}catch(_0x3f434a){_0x241445['push'](_0x241445['shift']());}}}(a231_0x274e,0x9509a));import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';export function createEmptyPageLock(){return{'apps':{}};}export function ensurePageLockScope(_0x42534c,_0x1032cb){const _0x4485fc=a231_0x1361,_0x5308bf={'apps':_0x42534c[_0x4485fc(0x19a)]&&typeof _0x42534c[_0x4485fc(0x19a)]===_0x4485fc(0x19e)?_0x42534c[_0x4485fc(0x19a)]:{}};let _0x103c44=_0x5308bf[_0x4485fc(0x19a)][_0x1032cb];if(!_0x103c44)return _0x103c44={'lastSync':'','pages':{}},_0x5308bf[_0x4485fc(0x19a)][_0x1032cb]=_0x103c44,{'lockData':_0x5308bf,'appLock':_0x103c44};return!_0x103c44['lastSync']&&(_0x103c44[_0x4485fc(0x199)]=''),(!_0x103c44[_0x4485fc(0x1a4)]||typeof _0x103c44[_0x4485fc(0x1a4)]!=='object')&&(_0x103c44['pages']={}),{'lockData':_0x5308bf,'appLock':_0x103c44};}export async function readPageLockFile(_0x24ee66){const _0x2208f0=a231_0x1361;try{const _0x414596=await readFile(_0x24ee66,_0x2208f0(0x19d)),_0x4f56ec=JSON[_0x2208f0(0x195)](_0x414596);return{'apps':_0x4f56ec[_0x2208f0(0x19a)]&&typeof _0x4f56ec[_0x2208f0(0x19a)]===_0x2208f0(0x19e)?_0x4f56ec['apps']:{}};}catch(_0x1f2d5e){if(_0x1f2d5e[_0x2208f0(0x1a0)]===_0x2208f0(0x194))return null;throw new Error(_0x2208f0(0x19b)+String(_0x1f2d5e));}}function a231_0x1361(_0x557bd9,_0x5c370a){_0x557bd9=_0x557bd9-0x191;const _0x274e4d=a231_0x274e();let _0x13614f=_0x274e4d[_0x557bd9];return _0x13614f;}function a231_0x274e(){const _0x5c2a46=['lastSync','apps','Failed\x20to\x20read\x20page\x20lock\x20file:\x20','2394312IRiihy','utf8','object','51029758frOGbA','code','279135PrUtpq','5648468usRfje','6dgRjRd','pages','22creVUT','263814FeYwqB','333633qIMvvH','12Fstxrc','36250dzrhTl','ENOENT','parse','225alOScG','8oLeNEB','96rYVYgB'];a231_0x274e=function(){return _0x5c2a46;};return a231_0x274e();}export async function writePageLockFile(_0x212ce1,_0x1b5d08){const _0x1c4dbe=a231_0x1361;await mkdir(dirname(_0x212ce1),{'recursive':!![]}),await writeFile(_0x212ce1,JSON['stringify'](_0x1b5d08,null,0x2),_0x1c4dbe(0x19d));}
@@ -1 +1 @@
1
- (function(_0x521e9c,_0x41e30b){const _0x32340f=a233_0x479c,_0x50751d=_0x521e9c();while(!![]){try{const _0x489e80=-parseInt(_0x32340f(0x132))/0x1+-parseInt(_0x32340f(0x134))/0x2+parseInt(_0x32340f(0x101))/0x3+-parseInt(_0x32340f(0x133))/0x4*(parseInt(_0x32340f(0x149))/0x5)+parseInt(_0x32340f(0x102))/0x6*(-parseInt(_0x32340f(0x140))/0x7)+parseInt(_0x32340f(0x12b))/0x8*(-parseInt(_0x32340f(0x143))/0x9)+parseInt(_0x32340f(0x127))/0xa*(parseInt(_0x32340f(0x109))/0xb);if(_0x489e80===_0x41e30b)break;else _0x50751d['push'](_0x50751d['shift']());}catch(_0x24bc76){_0x50751d['push'](_0x50751d['shift']());}}}(a233_0x8658,0x2dcd8));import{MYBATIS_DYNAMIC_END_MARKER,MYBATIS_DYNAMIC_START_MARKER,MYBATIS_INCLUDE_MARKER,normalizeSqlForStaticAnalysis}from'./sql-validator.js';export function auditSqlJoinIndexes(_0x551dcd,_0x3d5953){const _0x50bc13=a233_0x479c,_0x78d4e1=[],_0x3a986b=normalizeSqlForStaticAnalysis(_0x551dcd),_0x586e33=(_0x3a986b[_0x50bc13(0x114)]?[]:extractJoinFacts(_0x3a986b[_0x50bc13(0x139)]))[_0x50bc13(0x12f)](_0x273c5a=>{const _0x43441d=_0x50bc13;if(_0x273c5a[_0x43441d(0x12e)]||_0x273c5a['columns'][_0x43441d(0x131)]===0x0)return _0x78d4e1[_0x43441d(0x130)]({'code':_0x43441d(0x13c),'table':_0x273c5a[_0x43441d(0x142)],'alias':_0x273c5a['alias'],'columns':_0x273c5a['columns'],'reason':_0x273c5a[_0x43441d(0x103)]??_0x43441d(0x12d)}),{'table':_0x273c5a[_0x43441d(0x142)],'alias':_0x273c5a[_0x43441d(0x11a)],'columns':_0x273c5a['columns'],'status':_0x43441d(0x119)};const _0x2d1c29=resolveTableMetadata(_0x3d5953,_0x273c5a[_0x43441d(0x142)]),_0x4d2943=(_0x2d1c29?.[_0x43441d(0x11b)]??[])['map'](_0xcebdcd=>({'index':_0xcebdcd,'matchedPrefix':findEqualityPrefix(_0xcebdcd[_0x43441d(0x136)],_0x273c5a['columns'])}))[_0x43441d(0x145)](_0x7110eb=>_0x7110eb[_0x43441d(0x144)][_0x43441d(0x131)]>0x0),_0x1acac2=_0x4d2943[_0x43441d(0x13e)]((_0x5bff3a,_0x2d7214)=>!_0x5bff3a||_0x2d7214[_0x43441d(0x144)][_0x43441d(0x131)]>_0x5bff3a[_0x43441d(0x144)][_0x43441d(0x131)]?_0x2d7214:_0x5bff3a,_0x4d2943[0x0]);if(_0x1acac2)return{'table':_0x273c5a[_0x43441d(0x142)],'alias':_0x273c5a['alias'],'columns':_0x273c5a[_0x43441d(0x136)],'status':_0x43441d(0x123),'matchedIndex':{..._0x1acac2[_0x43441d(0x122)],'matchedPrefix':_0x1acac2[_0x43441d(0x144)]}};const _0x537646=_0x2d1c29?.[_0x43441d(0x11b)][_0x43441d(0x145)](_0x287e16=>_0x287e16[_0x43441d(0x136)][_0x43441d(0x10b)](_0x2fc2f2=>_0x273c5a[_0x43441d(0x136)]['some'](_0x1f8a51=>columnNamesMatch(_0x2fc2f2,_0x1f8a51))))??[];if(_0x537646[_0x43441d(0x131)]>0x0)return _0x78d4e1[_0x43441d(0x130)]({'code':_0x43441d(0x118),'table':_0x273c5a['table'],'alias':_0x273c5a[_0x43441d(0x11a)],'columns':_0x273c5a[_0x43441d(0x136)],'reason':_0x43441d(0x11c)}),{'table':_0x273c5a[_0x43441d(0x142)],'alias':_0x273c5a['alias'],'columns':_0x273c5a['columns'],'status':_0x43441d(0x135),'candidateIndexes':_0x537646};if(_0x2d1c29&&_0x2d1c29[_0x43441d(0x121)]!==![]&&_0x2d1c29['indexes'][_0x43441d(0x131)]>0x0&&_0x273c5a[_0x43441d(0x136)][_0x43441d(0x131)]>0x0)return _0x78d4e1[_0x43441d(0x130)]({'code':_0x43441d(0x125),'table':_0x273c5a[_0x43441d(0x142)],'alias':_0x273c5a[_0x43441d(0x11a)],'columns':_0x273c5a[_0x43441d(0x136)],'reason':_0x43441d(0x104)}),{'table':_0x273c5a[_0x43441d(0x142)],'alias':_0x273c5a[_0x43441d(0x11a)],'columns':_0x273c5a[_0x43441d(0x136)],'status':'warning'};return _0x78d4e1[_0x43441d(0x130)]({'code':_0x43441d(0x146),'table':_0x273c5a['table'],'alias':_0x273c5a[_0x43441d(0x11a)],'columns':_0x273c5a[_0x43441d(0x136)],'reason':_0x2d1c29?'The\x20dataset\x20returned\x20no\x20distinguishable\x20index\x20metadata.':'No\x20dataset\x20metadata\x20matched\x20the\x20JOIN\x20table.'}),{'table':_0x273c5a[_0x43441d(0x142)],'alias':_0x273c5a[_0x43441d(0x11a)],'columns':_0x273c5a[_0x43441d(0x136)],'status':_0x43441d(0x119)};});return{'checked':_0x586e33['length']>0x0,'joins':_0x586e33,'warnings':_0x78d4e1};}function extractJoinFacts(_0x57e7f4){const _0x171a53=a233_0x479c,_0x5b3942=maskNestedQueries(stripSqlNoise(_0x57e7f4)),_0x447b35=maskQuotedIdentifiers(_0x5b3942),_0xb4af3b=[],_0x5de238=new Set(),_0x1a9c2b=/\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 _0x33129b of _0x5b3942[_0x171a53(0x11f)](_0x1a9c2b)){const _0x370c1a=_0x33129b[_0x171a53(0x122)]??0x0,_0x57260c=_0x33129b[0x0][_0x171a53(0x138)](/\bJOIN\b/i),_0x45e9c0=_0x370c1a+Math[_0x171a53(0x129)](0x0,_0x57260c);if(!/^JOIN\b/i[_0x171a53(0x113)](_0x447b35['slice'](_0x45e9c0)))continue;_0x5de238['add'](_0x45e9c0);const _0x253e0d=normalizeIdentifier(_0x33129b[0x1]||'INNER'),_0x541466=normalizeIdentifier(_0x33129b[0x2]??''),_0x49dc48=normalizeIdentifier(_0x33129b[0x3]||_0x541466[_0x171a53(0x141)]('.')['at'](-0x1)||_0x541466),_0x47e965=[],_0x2a810e=_0x541466===_0x171a53(0x13f);let _0x41bfc0=_0x253e0d===_0x171a53(0x10e)||_0x253e0d==='full'||_0x2a810e,_0x345e66=_0x41bfc0?_0x2a810e?_0x171a53(0x12a):_0x253e0d[_0x171a53(0x10c)]()+'\x20JOIN\x20direction\x20is\x20not\x20supported\x20by\x20static\x20index\x20auditing.':undefined;const _0xc0d7ac=stripOuterParentheses(_0x33129b[0x4]??''),_0x2f134a=_0xc0d7ac[_0x171a53(0x13d)](MYBATIS_DYNAMIC_START_MARKER)||_0xc0d7ac[_0x171a53(0x13d)](MYBATIS_DYNAMIC_END_MARKER),_0x2f0d1a=_0xc0d7ac[_0x171a53(0x13d)](MYBATIS_INCLUDE_MARKER);_0x2f134a&&(_0x41bfc0=!![],_0x345e66??='MyBatis\x20dynamic\x20JOIN\x20predicates\x20cannot\x20be\x20audited\x20deterministically.');_0x2f0d1a&&(_0x41bfc0=!![],_0x345e66??=_0x171a53(0x10d));const _0x989389=_0xc0d7ac[_0x171a53(0x128)](MYBATIS_DYNAMIC_START_MARKER,'\x20')[_0x171a53(0x128)](MYBATIS_DYNAMIC_END_MARKER,'\x20')[_0x171a53(0x128)](MYBATIS_INCLUDE_MARKER,'\x20');hasTopLevelKeyword(_0x989389,'OR')&&(_0x41bfc0=!![],_0x345e66??=_0x171a53(0x105));for(const _0x4600c0 of splitTopLevelAnd(_0x989389)){const _0xf953b9=stripOuterParentheses(_0x4600c0);if(hasTopLevelKeyword(_0xf953b9,'OR')){_0x41bfc0=!![],_0x345e66??=_0x171a53(0x105);continue;}const _0x468688=splitEquality(_0xf953b9);if(!_0x468688){containsColumnReference(_0x4600c0,_0x49dc48)&&(_0x41bfc0=!![]);continue;}const _0x40750c=parseDirectColumnReference(_0x468688[0x0],_0x49dc48),_0x271a49=parseDirectColumnReference(_0x468688[0x1],_0x49dc48),_0x49f7fe=containsColumnReference(_0x468688[0x0],_0x49dc48),_0x1ecfbb=containsColumnReference(_0x468688[0x1],_0x49dc48),_0x18fd04=_0x40750c&&!_0x1ecfbb?_0x40750c:_0x271a49&&!_0x49f7fe?_0x271a49:null;if(_0x18fd04&&!_0x47e965[_0x171a53(0x13d)](_0x18fd04))_0x47e965[_0x171a53(0x130)](_0x18fd04);else!_0x18fd04&&containsColumnReference(_0x4600c0,_0x49dc48)&&(_0x41bfc0=!![]);}_0xb4af3b[_0x171a53(0x130)]({'table':_0x541466,'alias':_0x49dc48,'columns':_0x47e965,'unsupportedPredicate':_0x41bfc0,'unsupportedReason':_0x345e66,'containsUnresolvedInclude':_0x2f0d1a,'position':_0x45e9c0});}for(const _0x4998c1 of _0x447b35['matchAll'](/\bJOIN\b/gi)){const _0x236300=_0x4998c1[_0x171a53(0x122)]??0x0;if(_0x5de238['has'](_0x236300))continue;const _0x4246f8=/^\s+([`"\w$.]+)(?:\s+(?:AS\s+)?([`"\w$]+))?/[_0x171a53(0x107)](_0x5b3942[_0x171a53(0x111)](_0x236300+_0x4998c1[0x0][_0x171a53(0x131)])),_0x4bc9b2=normalizeIdentifier(_0x4246f8?.[0x1]||_0x171a53(0x108)),_0x1dcb9c=normalizeIdentifier(_0x4246f8?.[0x2]||''),_0x159f23=isSqlClauseKeyword(_0x1dcb9c)?_0x4bc9b2['split']('.')['at'](-0x1)||_0x4bc9b2:_0x1dcb9c||_0x4bc9b2[_0x171a53(0x141)]('.')['at'](-0x1)||_0x4bc9b2;_0xb4af3b[_0x171a53(0x130)]({'table':_0x4bc9b2,'alias':_0x159f23,'columns':[],'unsupportedPredicate':!![],'unsupportedReason':_0x171a53(0x117),'position':_0x236300});}const _0xd79131=_0x447b35[_0x171a53(0x13a)](MYBATIS_INCLUDE_MARKER);return _0xd79131>=0x0&&!_0xb4af3b[_0x171a53(0x10b)](_0x4772e4=>_0x4772e4[_0x171a53(0x10a)])&&_0xb4af3b[_0x171a53(0x130)]({'table':'unknown','alias':_0x171a53(0x108),'columns':[],'unsupportedPredicate':!![],'unsupportedReason':'MyBatis\x20<include>\x20fragments\x20cannot\x20be\x20expanded\x20for\x20JOIN\x20auditing.','containsUnresolvedInclude':!![],'position':_0xd79131}),_0xb4af3b[_0x171a53(0x120)]((_0x39777c,_0x45bcff)=>_0x39777c[_0x171a53(0x148)]-_0x45bcff[_0x171a53(0x148)]);}function stripSqlNoise(_0x2d45db){const _0x51bd6d=a233_0x479c,_0x3834c5=Array[_0x51bd6d(0x126)](_0x2d45db),_0x5606ba=(_0x3e249b,_0x5cfb17)=>{for(let _0x587cbc=_0x3e249b;_0x587cbc<_0x5cfb17;_0x587cbc+=0x1){_0x3834c5[_0x587cbc]!=='\x0a'&&_0x3834c5[_0x587cbc]!=='\x0d'&&(_0x3834c5[_0x587cbc]='\x20');}};for(let _0xca092b=0x0;_0xca092b<_0x3834c5[_0x51bd6d(0x131)];_0xca092b+=0x1){const _0x141aeb=_0x3834c5[_0xca092b],_0x1a8ec6=_0x3834c5[_0xca092b+0x1];if(_0x141aeb==='\x27'||_0x141aeb==='\x22'||_0x141aeb==='`'){const _0x44935a=_0x141aeb,_0x4a5a65=_0xca092b;_0xca092b+=0x1;while(_0xca092b<_0x3834c5[_0x51bd6d(0x131)]){if(_0x3834c5[_0xca092b]==='\x5c'&&_0xca092b+0x1<_0x3834c5['length']){_0xca092b+=0x2;continue;}if(_0x3834c5[_0xca092b]!==_0x44935a){_0xca092b+=0x1;continue;}if(_0x3834c5[_0xca092b+0x1]===_0x44935a){_0xca092b+=0x2;continue;}break;}if(_0x44935a==='\x27')_0x5606ba(_0x4a5a65,Math['min'](_0xca092b+0x1,_0x3834c5[_0x51bd6d(0x131)]));continue;}if(_0x141aeb==='-'&&_0x1a8ec6==='-'){const _0x26cdc2=_0xca092b;while(_0xca092b<_0x3834c5[_0x51bd6d(0x131)]&&_0x3834c5[_0xca092b]!=='\x0a')_0xca092b+=0x1;_0x5606ba(_0x26cdc2,_0xca092b);continue;}if(_0x141aeb==='/'&&_0x1a8ec6==='*'){const _0x5d8cff=_0xca092b;_0xca092b+=0x2;while(_0xca092b<_0x3834c5[_0x51bd6d(0x131)]&&!(_0x3834c5[_0xca092b]==='*'&&_0x3834c5[_0xca092b+0x1]==='/')){_0xca092b+=0x1;}_0xca092b=Math[_0x51bd6d(0x116)](_0xca092b+0x1,_0x3834c5[_0x51bd6d(0x131)]-0x1),_0x5606ba(_0x5d8cff,_0xca092b+0x1);continue;}if(_0x141aeb==='#'&&_0x1a8ec6!=='{'){const _0x32023f=_0xca092b;while(_0xca092b<_0x3834c5['length']&&_0x3834c5[_0xca092b]!=='\x0a')_0xca092b+=0x1;_0x5606ba(_0x32023f,_0xca092b);continue;}if((_0x141aeb==='#'||_0x141aeb==='$')&&_0x1a8ec6==='{'){const _0x121c7d=_0xca092b;_0xca092b+=0x2;while(_0xca092b<_0x3834c5[_0x51bd6d(0x131)]&&_0x3834c5[_0xca092b]!=='}')_0xca092b+=0x1;_0x5606ba(_0x121c7d,Math['min'](_0xca092b+0x1,_0x3834c5[_0x51bd6d(0x131)]));}}return _0x3834c5[_0x51bd6d(0x147)]('');}function a233_0x8658(){const _0x3753a1=['position','20110zyilvT','left','where','590388NjtyNh','228oDtfGy','unsupportedReason','No\x20reported\x20index\x20contains\x20the\x20JOIN\x20access\x20columns.','OR-connected\x20JOIN\x20predicates\x20are\x20not\x20supported.','has','exec','unknown','1187219RpktTm','containsUnresolvedInclude','some','toUpperCase','MyBatis\x20<include>\x20JOIN\x20fragments\x20cannot\x20be\x20expanded\x20statically.','right','endsWith','\x5c$&','slice','(?:^|[^\x5cw$])','test','error','tableName','min','Only\x20explicit\x20table\x20JOIN\x20clauses\x20with\x20an\x20ON\x20predicate\x20are\x20supported.','JOIN_INDEX_NOT_USABLE','unavailable','alias','indexes','Relevant\x20columns\x20do\x20not\x20form\x20a\x20complete\x20leftmost\x20index\x20prefix.','using','full','matchAll','sort','metadataAvailable','index','covered','inner','JOIN_INDEX_MISSING','from','90avTXpW','replaceAll','max','Derived-table\x20JOIN\x20targets\x20are\x20not\x20supported.','8YrxSRG','trim','Not\x20every\x20JOIN\x20target\x20predicate\x20could\x20be\x20audited\x20safely.','unsupportedPredicate','map','push','length','368337ugiBsT','104vqLDeJ','645734ZmyiAP','warning','columns','replace','search','sql','indexOf','cross','JOIN_PREDICATE_UNSUPPORTED','includes','reduce','__sq__','28301ZCQCZb','split','table','280251AkIVuq','matchedPrefix','filter','INDEX_METADATA_UNAVAILABLE','join'];a233_0x8658=function(){return _0x3753a1;};return a233_0x8658();}function maskQuotedIdentifiers(_0x243bba){const _0x1a2a11=a233_0x479c,_0x2e1eba=Array[_0x1a2a11(0x126)](_0x243bba);for(let _0x55e2ab=0x0;_0x55e2ab<_0x2e1eba[_0x1a2a11(0x131)];_0x55e2ab+=0x1){const _0x5b0f48=_0x2e1eba[_0x55e2ab];if(_0x5b0f48!=='\x22'&&_0x5b0f48!=='`')continue;_0x55e2ab+=0x1;while(_0x55e2ab<_0x2e1eba['length']){if(_0x2e1eba[_0x55e2ab]===_0x5b0f48){if(_0x2e1eba[_0x55e2ab+0x1]===_0x5b0f48){_0x2e1eba[_0x55e2ab]='\x20',_0x2e1eba[_0x55e2ab+0x1]='\x20',_0x55e2ab+=0x2;continue;}break;}_0x2e1eba[_0x55e2ab]='\x20',_0x55e2ab+=0x1;}}return _0x2e1eba['join']('');}function a233_0x479c(_0x216ed6,_0x3b0b75){_0x216ed6=_0x216ed6-0x100;const _0x8658d6=a233_0x8658();let _0x479ccc=_0x8658d6[_0x216ed6];return _0x479ccc;}function maskNestedQueries(_0x2371e9){const _0x1e31e8=a233_0x479c,_0x59def2=Array['from'](_0x2371e9);for(let _0x3100cb=0x0;_0x3100cb<_0x59def2['length'];_0x3100cb+=0x1){if(_0x59def2[_0x3100cb]!=='(')continue;const _0x654bfb=_0x2371e9[_0x1e31e8(0x111)](_0x3100cb+0x1);if(!/^\s*(?:SELECT|WITH)\b/i[_0x1e31e8(0x113)](_0x654bfb))continue;let _0x3db306=0x1,_0x398bda=_0x3100cb+0x1;for(;_0x398bda<_0x59def2[_0x1e31e8(0x131)]&&_0x3db306>0x0;_0x398bda+=0x1){if(_0x59def2[_0x398bda]==='(')_0x3db306+=0x1;if(_0x59def2[_0x398bda]===')')_0x3db306-=0x1;}if(_0x3db306!==0x0)continue;for(let _0x1635e1=_0x3100cb;_0x1635e1<_0x398bda;_0x1635e1+=0x1){_0x59def2[_0x1635e1]='\x20';}const _0xf6634f=_0x1e31e8(0x13f);for(let _0x584211=0x0;_0x584211<_0xf6634f[_0x1e31e8(0x131)]&&_0x3100cb+_0x584211<_0x398bda;_0x584211+=0x1){_0x59def2[_0x3100cb+_0x584211]=_0xf6634f[_0x584211];}_0x3100cb=_0x398bda-0x1;}return _0x59def2[_0x1e31e8(0x147)]('');}function splitTopLevelAnd(_0x5406da){const _0x312ce0=a233_0x479c,_0x4ce180=[];let _0x3a8248=0x0,_0x523791=0x0;for(let _0x42d248=0x0;_0x42d248<_0x5406da['length'];_0x42d248+=0x1){const _0x4399bc=_0x5406da[_0x42d248];if(_0x4399bc==='(')_0x3a8248+=0x1;if(_0x4399bc===')')_0x3a8248=Math[_0x312ce0(0x129)](0x0,_0x3a8248-0x1);_0x3a8248===0x0&&_0x5406da[_0x312ce0(0x111)](_0x42d248)['match'](/^AND\b/i)&&(_0x42d248===0x0||/\s/[_0x312ce0(0x113)](_0x5406da[_0x42d248-0x1]??''))&&(_0x4ce180['push'](_0x5406da[_0x312ce0(0x111)](_0x523791,_0x42d248)[_0x312ce0(0x12c)]()),_0x42d248+=0x2,_0x523791=_0x42d248+0x1);}const _0x59dfe3=_0x5406da[_0x312ce0(0x111)](_0x523791)[_0x312ce0(0x12c)]();if(_0x59dfe3)_0x4ce180['push'](_0x59dfe3);return _0x4ce180;}function hasTopLevelKeyword(_0x3a64f6,_0x168ce3){const _0x5389b5=a233_0x479c;let _0x49987b=0x0;for(let _0x1f49f0=0x0;_0x1f49f0<_0x3a64f6[_0x5389b5(0x131)];_0x1f49f0+=0x1){const _0x55b7e8=_0x3a64f6[_0x1f49f0];if(_0x55b7e8==='(')_0x49987b+=0x1;if(_0x55b7e8===')')_0x49987b=Math[_0x5389b5(0x129)](0x0,_0x49987b-0x1);if(_0x49987b!==0x0)continue;const _0x449698=_0x3a64f6[_0x5389b5(0x111)](_0x1f49f0,_0x1f49f0+_0x168ce3[_0x5389b5(0x131)]),_0x2762de=_0x3a64f6[_0x1f49f0-0x1]??'\x20',_0xe9ab4d=_0x3a64f6[_0x1f49f0+_0x168ce3[_0x5389b5(0x131)]]??'\x20';if(_0x449698[_0x5389b5(0x10c)]()===_0x168ce3[_0x5389b5(0x10c)]()&&!/[\w$]/[_0x5389b5(0x113)](_0x2762de)&&!/[\w$]/['test'](_0xe9ab4d))return!![];}return![];}function splitEquality(_0x3b9396){const _0x44defe=a233_0x479c,_0x40a347=stripOuterParentheses(_0x3b9396);let _0x3fcd17=0x0,_0x187a03;for(let _0x6fed9f=0x0;_0x6fed9f<_0x40a347[_0x44defe(0x131)];_0x6fed9f+=0x1){const _0x38cd3b=_0x40a347[_0x6fed9f];if(_0x38cd3b==='(')_0x3fcd17+=0x1;if(_0x38cd3b===')')_0x3fcd17=Math[_0x44defe(0x129)](0x0,_0x3fcd17-0x1);const _0x2ccd6a=_0x40a347[_0x6fed9f-0x1]??'',_0xfd3655=_0x40a347[_0x6fed9f+0x1]??'';if(_0x38cd3b==='='&&_0x3fcd17===0x0&&!/[!<>=:]/[_0x44defe(0x113)](_0x2ccd6a)&&_0xfd3655!=='='){if(_0x187a03!==undefined)return null;_0x187a03=_0x6fed9f;}}return _0x187a03===undefined?null:[_0x40a347[_0x44defe(0x111)](0x0,_0x187a03)['trim'](),_0x40a347[_0x44defe(0x111)](_0x187a03+0x1)[_0x44defe(0x12c)]()];}function parseDirectColumnReference(_0xf72def,_0x5e80ae){const _0x3c6677=a233_0x479c,_0x199462=/^([`"]?[\w$]+[`"]?)\s*\.\s*([`"]?[\w$]+[`"]?)$/[_0x3c6677(0x107)](stripOuterParentheses(_0xf72def));if(!_0x199462)return null;if(normalizeIdentifier(_0x199462[0x1]??'')!==normalizeIdentifier(_0x5e80ae))return null;return normalizeIdentifier(_0x199462[0x2]??'');}function containsColumnReference(_0x37e362,_0x28da62){const _0x35349c=a233_0x479c,_0x2845ec=_0x37e362[_0x35349c(0x137)](/[`"]/g,''),_0x3d70b5=_0x28da62[_0x35349c(0x137)](/[.*+?^${}()|[\]\\]/g,_0x35349c(0x110));return new RegExp(_0x35349c(0x112)+_0x3d70b5+'\x5cs*\x5c.\x5cs*[\x5cw$]+','i')[_0x35349c(0x113)](_0x2845ec);}function findEqualityPrefix(_0x123330,_0x4ba805){const _0x58b74b=a233_0x479c,_0x4da521=new Set(_0x4ba805[_0x58b74b(0x12f)](normalizeIdentifier)),_0x1934d5=[];for(const _0x1a4800 of _0x123330){if(!_0x4da521[_0x58b74b(0x106)](normalizeIdentifier(_0x1a4800)))break;_0x1934d5[_0x58b74b(0x130)](_0x1a4800);}return _0x1934d5;}function resolveTableMetadata(_0x441a31,_0xea8756){const _0x59a36b=a233_0x479c,_0x2122f7=normalizeIdentifier(_0xea8756),_0x14e3e2=_0x441a31[_0x59a36b(0x145)](_0x5dfaef=>normalizeIdentifier(_0x5dfaef[_0x59a36b(0x115)])===_0x2122f7);if(_0x14e3e2[_0x59a36b(0x131)]===0x1)return _0x14e3e2[0x0];const _0x1ca2ed=_0x2122f7[_0x59a36b(0x13d)]('.'),_0xf7e96e=_0x2122f7['split']('.')['at'](-0x1),_0x6e061=_0x441a31[_0x59a36b(0x145)](_0x182409=>{const _0x2802a8=_0x59a36b,_0x157b72=normalizeIdentifier(_0x182409[_0x2802a8(0x115)]);if(_0x1ca2ed&&_0x157b72[_0x2802a8(0x13d)]('.'))return![];return _0x157b72[_0x2802a8(0x141)]('.')['at'](-0x1)===_0xf7e96e;});return _0x6e061[_0x59a36b(0x131)]===0x1?_0x6e061[0x0]:undefined;}function columnNamesMatch(_0x7e29c1,_0x456b15){return normalizeIdentifier(_0x7e29c1)===normalizeIdentifier(_0x456b15);}function normalizeIdentifier(_0x57d0b2){const _0xbeb542=a233_0x479c;return _0x57d0b2[_0xbeb542(0x137)](/[`"]/g,'')['trim']()['toLowerCase']();}function isSqlClauseKeyword(_0x54ddbf){const _0x325cab=a233_0x479c;return new Set(['on',_0x325cab(0x11d),_0x325cab(0x100),_0x325cab(0x147),_0x325cab(0x124),_0x325cab(0x14a),_0x325cab(0x10e),_0x325cab(0x11e),_0x325cab(0x13b),'natural'])['has'](_0x54ddbf);}function stripOuterParentheses(_0x5dcf21){const _0x278120=a233_0x479c;let _0x3fccd3=_0x5dcf21[_0x278120(0x12c)]();while(_0x3fccd3['startsWith']('(')&&_0x3fccd3[_0x278120(0x10f)](')')){let _0x5c6772=0x0,_0x43baf8=!![];for(let _0x53d789=0x0;_0x53d789<_0x3fccd3['length'];_0x53d789+=0x1){if(_0x3fccd3[_0x53d789]==='(')_0x5c6772+=0x1;if(_0x3fccd3[_0x53d789]===')')_0x5c6772-=0x1;if(_0x5c6772===0x0&&_0x53d789<_0x3fccd3[_0x278120(0x131)]-0x1){_0x43baf8=![];break;}}if(!_0x43baf8||_0x5c6772!==0x0)break;_0x3fccd3=_0x3fccd3[_0x278120(0x111)](0x1,-0x1)[_0x278120(0x12c)]();}return _0x3fccd3;}
1
+ (function(_0x25ff66,_0x4637a8){const _0x4fbb96=a233_0x1450,_0x15911d=_0x25ff66();while(!![]){try{const _0x404ac5=parseInt(_0x4fbb96(0x10c))/0x1+parseInt(_0x4fbb96(0x13d))/0x2*(-parseInt(_0x4fbb96(0x142))/0x3)+parseInt(_0x4fbb96(0x112))/0x4+-parseInt(_0x4fbb96(0x107))/0x5*(parseInt(_0x4fbb96(0x13a))/0x6)+-parseInt(_0x4fbb96(0x13b))/0x7*(-parseInt(_0x4fbb96(0x102))/0x8)+-parseInt(_0x4fbb96(0x117))/0x9*(parseInt(_0x4fbb96(0x104))/0xa)+parseInt(_0x4fbb96(0x106))/0xb;if(_0x404ac5===_0x4637a8)break;else _0x15911d['push'](_0x15911d['shift']());}catch(_0x48e189){_0x15911d['push'](_0x15911d['shift']());}}}(a233_0x5439,0x24a94));import{MYBATIS_DYNAMIC_END_MARKER,MYBATIS_DYNAMIC_START_MARKER,MYBATIS_INCLUDE_MARKER,normalizeSqlForStaticAnalysis}from'./sql-validator.js';function a233_0x5439(){const _0x415ccb=['includes','from','cross','match','MyBatis\x20<include>\x20fragments\x20cannot\x20be\x20expanded\x20for\x20JOIN\x20auditing.','push','table','1398948kvPFrM','4130rlMVHY','right','918TTDTUv','add','containsUnresolvedInclude','natural','replaceAll','1359XjJTRJ','unsupportedPredicate','Derived-table\x20JOIN\x20targets\x20are\x20not\x20supported.','__sq__','search','toUpperCase','map','JOIN_PREDICATE_UNSUPPORTED','MyBatis\x20dynamic\x20JOIN\x20predicates\x20cannot\x20be\x20audited\x20deterministically.','has','full','\x5cs*\x5c.\x5cs*[\x5cw$]+','using','MyBatis\x20<include>\x20JOIN\x20fragments\x20cannot\x20be\x20expanded\x20statically.','1880WwLTjW','\x5c$&','450eMYpsN','INNER','1894574kOHjaF','5EPznfA','indexOf','exec','replace','index','260013lvjLeT','some','matchAll','columns','warning','matchedPrefix','1157448crCUvg','startsWith','No\x20reported\x20index\x20contains\x20the\x20JOIN\x20access\x20columns.','unsupportedReason','split','53802QjTjeP','The\x20dataset\x20returned\x20no\x20distinguishable\x20index\x20metadata.','min','OR-connected\x20JOIN\x20predicates\x20are\x20not\x20supported.','endsWith','test','Relevant\x20columns\x20do\x20not\x20form\x20a\x20complete\x20leftmost\x20index\x20prefix.','JOIN_INDEX_NOT_USABLE','left','indexes','filter','toLowerCase','sql','slice','inner','alias','sort','trim','Not\x20every\x20JOIN\x20target\x20predicate\x20could\x20be\x20audited\x20safely.','length','unknown','join','Only\x20explicit\x20table\x20JOIN\x20clauses\x20with\x20an\x20ON\x20predicate\x20are\x20supported.','INDEX_METADATA_UNAVAILABLE','position','JOIN_INDEX_MISSING','error','max'];a233_0x5439=function(){return _0x415ccb;};return a233_0x5439();}export function auditSqlJoinIndexes(_0x82b37e,_0x1b0ae3){const _0x13556b=a233_0x1450,_0x124bb5=[],_0x29b660=normalizeSqlForStaticAnalysis(_0x82b37e),_0x38cec1=(_0x29b660[_0x13556b(0x131)]?[]:extractJoinFacts(_0x29b660[_0x13556b(0x123)]))[_0x13556b(0x148)](_0x23efc8=>{const _0x50d22c=_0x13556b;if(_0x23efc8[_0x50d22c(0x143)]||_0x23efc8[_0x50d22c(0x10f)][_0x50d22c(0x12a)]===0x0)return _0x124bb5[_0x50d22c(0x138)]({'code':_0x50d22c(0x149),'table':_0x23efc8[_0x50d22c(0x139)],'alias':_0x23efc8[_0x50d22c(0x126)],'columns':_0x23efc8[_0x50d22c(0x10f)],'reason':_0x23efc8[_0x50d22c(0x115)]??_0x50d22c(0x129)}),{'table':_0x23efc8['table'],'alias':_0x23efc8['alias'],'columns':_0x23efc8[_0x50d22c(0x10f)],'status':'unavailable'};const _0x332dac=resolveTableMetadata(_0x1b0ae3,_0x23efc8[_0x50d22c(0x139)]),_0x1b95f3=(_0x332dac?.[_0x50d22c(0x120)]??[])[_0x50d22c(0x148)](_0xe7f6b6=>({'index':_0xe7f6b6,'matchedPrefix':findEqualityPrefix(_0xe7f6b6['columns'],_0x23efc8['columns'])}))['filter'](_0x2f2d48=>_0x2f2d48['matchedPrefix'][_0x50d22c(0x12a)]>0x0),_0x4f4bc9=_0x1b95f3['reduce']((_0x19242e,_0x1060e6)=>!_0x19242e||_0x1060e6[_0x50d22c(0x111)][_0x50d22c(0x12a)]>_0x19242e[_0x50d22c(0x111)][_0x50d22c(0x12a)]?_0x1060e6:_0x19242e,_0x1b95f3[0x0]);if(_0x4f4bc9)return{'table':_0x23efc8[_0x50d22c(0x139)],'alias':_0x23efc8['alias'],'columns':_0x23efc8[_0x50d22c(0x10f)],'status':'covered','matchedIndex':{..._0x4f4bc9[_0x50d22c(0x10b)],'matchedPrefix':_0x4f4bc9[_0x50d22c(0x111)]}};const _0x36abc3=_0x332dac?.[_0x50d22c(0x120)][_0x50d22c(0x121)](_0x596a8c=>_0x596a8c['columns']['some'](_0xd8171a=>_0x23efc8['columns'][_0x50d22c(0x10d)](_0x19fb17=>columnNamesMatch(_0xd8171a,_0x19fb17))))??[];if(_0x36abc3['length']>0x0)return _0x124bb5[_0x50d22c(0x138)]({'code':_0x50d22c(0x11e),'table':_0x23efc8[_0x50d22c(0x139)],'alias':_0x23efc8[_0x50d22c(0x126)],'columns':_0x23efc8['columns'],'reason':_0x50d22c(0x11d)}),{'table':_0x23efc8[_0x50d22c(0x139)],'alias':_0x23efc8[_0x50d22c(0x126)],'columns':_0x23efc8['columns'],'status':_0x50d22c(0x110),'candidateIndexes':_0x36abc3};if(_0x332dac&&_0x332dac['metadataAvailable']!==![]&&_0x332dac[_0x50d22c(0x120)][_0x50d22c(0x12a)]>0x0&&_0x23efc8[_0x50d22c(0x10f)][_0x50d22c(0x12a)]>0x0)return _0x124bb5[_0x50d22c(0x138)]({'code':_0x50d22c(0x130),'table':_0x23efc8[_0x50d22c(0x139)],'alias':_0x23efc8[_0x50d22c(0x126)],'columns':_0x23efc8['columns'],'reason':_0x50d22c(0x114)}),{'table':_0x23efc8['table'],'alias':_0x23efc8[_0x50d22c(0x126)],'columns':_0x23efc8['columns'],'status':_0x50d22c(0x110)};return _0x124bb5[_0x50d22c(0x138)]({'code':_0x50d22c(0x12e),'table':_0x23efc8[_0x50d22c(0x139)],'alias':_0x23efc8[_0x50d22c(0x126)],'columns':_0x23efc8[_0x50d22c(0x10f)],'reason':_0x332dac?_0x50d22c(0x118):'No\x20dataset\x20metadata\x20matched\x20the\x20JOIN\x20table.'}),{'table':_0x23efc8[_0x50d22c(0x139)],'alias':_0x23efc8[_0x50d22c(0x126)],'columns':_0x23efc8[_0x50d22c(0x10f)],'status':'unavailable'};});return{'checked':_0x38cec1['length']>0x0,'joins':_0x38cec1,'warnings':_0x124bb5};}function a233_0x1450(_0x17bf43,_0x350e3f){_0x17bf43=_0x17bf43-0xfc;const _0x54394d=a233_0x5439();let _0x1450e6=_0x54394d[_0x17bf43];return _0x1450e6;}function extractJoinFacts(_0x51ecd8){const _0xf6af15=a233_0x1450,_0x55100c=maskNestedQueries(stripSqlNoise(_0x51ecd8)),_0x15933d=maskQuotedIdentifiers(_0x55100c),_0x329365=[],_0x316d09=new Set(),_0x229d63=/\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 _0x348c69 of _0x55100c['matchAll'](_0x229d63)){const _0x370221=_0x348c69[_0xf6af15(0x10b)]??0x0,_0x40857a=_0x348c69[0x0][_0xf6af15(0x146)](/\bJOIN\b/i),_0x57f83b=_0x370221+Math['max'](0x0,_0x40857a);if(!/^JOIN\b/i['test'](_0x15933d[_0xf6af15(0x124)](_0x57f83b)))continue;_0x316d09[_0xf6af15(0x13e)](_0x57f83b);const _0x5bc429=normalizeIdentifier(_0x348c69[0x1]||_0xf6af15(0x105)),_0x473ca8=normalizeIdentifier(_0x348c69[0x2]??''),_0x3ee6f0=normalizeIdentifier(_0x348c69[0x3]||_0x473ca8[_0xf6af15(0x116)]('.')['at'](-0x1)||_0x473ca8),_0x4ff705=[],_0x5334bc=_0x473ca8===_0xf6af15(0x145);let _0xf09dd8=_0x5bc429===_0xf6af15(0x13c)||_0x5bc429===_0xf6af15(0xfe)||_0x5334bc,_0x5624c6=_0xf09dd8?_0x5334bc?_0xf6af15(0x144):_0x5bc429[_0xf6af15(0x147)]()+'\x20JOIN\x20direction\x20is\x20not\x20supported\x20by\x20static\x20index\x20auditing.':undefined;const _0x32989e=stripOuterParentheses(_0x348c69[0x4]??''),_0x24c85f=_0x32989e['includes'](MYBATIS_DYNAMIC_START_MARKER)||_0x32989e[_0xf6af15(0x133)](MYBATIS_DYNAMIC_END_MARKER),_0x5a3c56=_0x32989e['includes'](MYBATIS_INCLUDE_MARKER);_0x24c85f&&(_0xf09dd8=!![],_0x5624c6??=_0xf6af15(0xfc));_0x5a3c56&&(_0xf09dd8=!![],_0x5624c6??=_0xf6af15(0x101));const _0x4db2eb=_0x32989e[_0xf6af15(0x141)](MYBATIS_DYNAMIC_START_MARKER,'\x20')[_0xf6af15(0x141)](MYBATIS_DYNAMIC_END_MARKER,'\x20')[_0xf6af15(0x141)](MYBATIS_INCLUDE_MARKER,'\x20');hasTopLevelKeyword(_0x4db2eb,'OR')&&(_0xf09dd8=!![],_0x5624c6??=_0xf6af15(0x11a));for(const _0x21e561 of splitTopLevelAnd(_0x4db2eb)){const _0x642dd8=stripOuterParentheses(_0x21e561);if(hasTopLevelKeyword(_0x642dd8,'OR')){_0xf09dd8=!![],_0x5624c6??=_0xf6af15(0x11a);continue;}const _0x36d570=splitEquality(_0x642dd8);if(!_0x36d570){containsColumnReference(_0x21e561,_0x3ee6f0)&&(_0xf09dd8=!![]);continue;}const _0x395455=parseDirectColumnReference(_0x36d570[0x0],_0x3ee6f0),_0x21ae5c=parseDirectColumnReference(_0x36d570[0x1],_0x3ee6f0),_0x35550f=containsColumnReference(_0x36d570[0x0],_0x3ee6f0),_0x336523=containsColumnReference(_0x36d570[0x1],_0x3ee6f0),_0x5be561=_0x395455&&!_0x336523?_0x395455:_0x21ae5c&&!_0x35550f?_0x21ae5c:null;if(_0x5be561&&!_0x4ff705[_0xf6af15(0x133)](_0x5be561))_0x4ff705[_0xf6af15(0x138)](_0x5be561);else!_0x5be561&&containsColumnReference(_0x21e561,_0x3ee6f0)&&(_0xf09dd8=!![]);}_0x329365['push']({'table':_0x473ca8,'alias':_0x3ee6f0,'columns':_0x4ff705,'unsupportedPredicate':_0xf09dd8,'unsupportedReason':_0x5624c6,'containsUnresolvedInclude':_0x5a3c56,'position':_0x57f83b});}for(const _0x51952a of _0x15933d[_0xf6af15(0x10e)](/\bJOIN\b/gi)){const _0x214e8d=_0x51952a[_0xf6af15(0x10b)]??0x0;if(_0x316d09['has'](_0x214e8d))continue;const _0x46f9fb=/^\s+([`"\w$.]+)(?:\s+(?:AS\s+)?([`"\w$]+))?/['exec'](_0x55100c[_0xf6af15(0x124)](_0x214e8d+_0x51952a[0x0][_0xf6af15(0x12a)])),_0x326c2c=normalizeIdentifier(_0x46f9fb?.[0x1]||_0xf6af15(0x12b)),_0x52245b=normalizeIdentifier(_0x46f9fb?.[0x2]||''),_0x3db7e4=isSqlClauseKeyword(_0x52245b)?_0x326c2c[_0xf6af15(0x116)]('.')['at'](-0x1)||_0x326c2c:_0x52245b||_0x326c2c[_0xf6af15(0x116)]('.')['at'](-0x1)||_0x326c2c;_0x329365[_0xf6af15(0x138)]({'table':_0x326c2c,'alias':_0x3db7e4,'columns':[],'unsupportedPredicate':!![],'unsupportedReason':_0xf6af15(0x12d),'position':_0x214e8d});}const _0x2aac56=_0x15933d[_0xf6af15(0x108)](MYBATIS_INCLUDE_MARKER);return _0x2aac56>=0x0&&!_0x329365[_0xf6af15(0x10d)](_0x1727de=>_0x1727de[_0xf6af15(0x13f)])&&_0x329365[_0xf6af15(0x138)]({'table':'unknown','alias':_0xf6af15(0x12b),'columns':[],'unsupportedPredicate':!![],'unsupportedReason':_0xf6af15(0x137),'containsUnresolvedInclude':!![],'position':_0x2aac56}),_0x329365[_0xf6af15(0x127)]((_0x57624e,_0x1ae433)=>_0x57624e[_0xf6af15(0x12f)]-_0x1ae433[_0xf6af15(0x12f)]);}function stripSqlNoise(_0x4ea8b4){const _0xdc1b1e=a233_0x1450,_0x4b2a9f=Array[_0xdc1b1e(0x134)](_0x4ea8b4),_0x33397c=(_0x1c0976,_0x2c8901)=>{for(let _0x2cca79=_0x1c0976;_0x2cca79<_0x2c8901;_0x2cca79+=0x1){_0x4b2a9f[_0x2cca79]!=='\x0a'&&_0x4b2a9f[_0x2cca79]!=='\x0d'&&(_0x4b2a9f[_0x2cca79]='\x20');}};for(let _0x3857b2=0x0;_0x3857b2<_0x4b2a9f['length'];_0x3857b2+=0x1){const _0x50e1b9=_0x4b2a9f[_0x3857b2],_0x3da76e=_0x4b2a9f[_0x3857b2+0x1];if(_0x50e1b9==='\x27'||_0x50e1b9==='\x22'||_0x50e1b9==='`'){const _0x554f9d=_0x50e1b9,_0x25dde4=_0x3857b2;_0x3857b2+=0x1;while(_0x3857b2<_0x4b2a9f[_0xdc1b1e(0x12a)]){if(_0x4b2a9f[_0x3857b2]==='\x5c'&&_0x3857b2+0x1<_0x4b2a9f['length']){_0x3857b2+=0x2;continue;}if(_0x4b2a9f[_0x3857b2]!==_0x554f9d){_0x3857b2+=0x1;continue;}if(_0x4b2a9f[_0x3857b2+0x1]===_0x554f9d){_0x3857b2+=0x2;continue;}break;}if(_0x554f9d==='\x27')_0x33397c(_0x25dde4,Math[_0xdc1b1e(0x119)](_0x3857b2+0x1,_0x4b2a9f[_0xdc1b1e(0x12a)]));continue;}if(_0x50e1b9==='-'&&_0x3da76e==='-'){const _0x574176=_0x3857b2;while(_0x3857b2<_0x4b2a9f[_0xdc1b1e(0x12a)]&&_0x4b2a9f[_0x3857b2]!=='\x0a')_0x3857b2+=0x1;_0x33397c(_0x574176,_0x3857b2);continue;}if(_0x50e1b9==='/'&&_0x3da76e==='*'){const _0x4e1206=_0x3857b2;_0x3857b2+=0x2;while(_0x3857b2<_0x4b2a9f[_0xdc1b1e(0x12a)]&&!(_0x4b2a9f[_0x3857b2]==='*'&&_0x4b2a9f[_0x3857b2+0x1]==='/')){_0x3857b2+=0x1;}_0x3857b2=Math[_0xdc1b1e(0x119)](_0x3857b2+0x1,_0x4b2a9f[_0xdc1b1e(0x12a)]-0x1),_0x33397c(_0x4e1206,_0x3857b2+0x1);continue;}if(_0x50e1b9==='#'&&_0x3da76e!=='{'){const _0x48c68a=_0x3857b2;while(_0x3857b2<_0x4b2a9f[_0xdc1b1e(0x12a)]&&_0x4b2a9f[_0x3857b2]!=='\x0a')_0x3857b2+=0x1;_0x33397c(_0x48c68a,_0x3857b2);continue;}if((_0x50e1b9==='#'||_0x50e1b9==='$')&&_0x3da76e==='{'){const _0xef55f4=_0x3857b2;_0x3857b2+=0x2;while(_0x3857b2<_0x4b2a9f[_0xdc1b1e(0x12a)]&&_0x4b2a9f[_0x3857b2]!=='}')_0x3857b2+=0x1;_0x33397c(_0xef55f4,Math[_0xdc1b1e(0x119)](_0x3857b2+0x1,_0x4b2a9f[_0xdc1b1e(0x12a)]));}}return _0x4b2a9f[_0xdc1b1e(0x12c)]('');}function maskQuotedIdentifiers(_0x273cc9){const _0x1e827f=a233_0x1450,_0x2f23b9=Array[_0x1e827f(0x134)](_0x273cc9);for(let _0x19b9cd=0x0;_0x19b9cd<_0x2f23b9['length'];_0x19b9cd+=0x1){const _0xc88678=_0x2f23b9[_0x19b9cd];if(_0xc88678!=='\x22'&&_0xc88678!=='`')continue;_0x19b9cd+=0x1;while(_0x19b9cd<_0x2f23b9[_0x1e827f(0x12a)]){if(_0x2f23b9[_0x19b9cd]===_0xc88678){if(_0x2f23b9[_0x19b9cd+0x1]===_0xc88678){_0x2f23b9[_0x19b9cd]='\x20',_0x2f23b9[_0x19b9cd+0x1]='\x20',_0x19b9cd+=0x2;continue;}break;}_0x2f23b9[_0x19b9cd]='\x20',_0x19b9cd+=0x1;}}return _0x2f23b9[_0x1e827f(0x12c)]('');}function maskNestedQueries(_0x812cc2){const _0x47891c=a233_0x1450,_0x7b8f1d=Array[_0x47891c(0x134)](_0x812cc2);for(let _0x2ff072=0x0;_0x2ff072<_0x7b8f1d['length'];_0x2ff072+=0x1){if(_0x7b8f1d[_0x2ff072]!=='(')continue;const _0x36c1a4=_0x812cc2[_0x47891c(0x124)](_0x2ff072+0x1);if(!/^\s*(?:SELECT|WITH)\b/i[_0x47891c(0x11c)](_0x36c1a4))continue;let _0x321c6a=0x1,_0x2d24a=_0x2ff072+0x1;for(;_0x2d24a<_0x7b8f1d['length']&&_0x321c6a>0x0;_0x2d24a+=0x1){if(_0x7b8f1d[_0x2d24a]==='(')_0x321c6a+=0x1;if(_0x7b8f1d[_0x2d24a]===')')_0x321c6a-=0x1;}if(_0x321c6a!==0x0)continue;for(let _0x50dde8=_0x2ff072;_0x50dde8<_0x2d24a;_0x50dde8+=0x1){_0x7b8f1d[_0x50dde8]='\x20';}const _0x235abf=_0x47891c(0x145);for(let _0x5cc82f=0x0;_0x5cc82f<_0x235abf['length']&&_0x2ff072+_0x5cc82f<_0x2d24a;_0x5cc82f+=0x1){_0x7b8f1d[_0x2ff072+_0x5cc82f]=_0x235abf[_0x5cc82f];}_0x2ff072=_0x2d24a-0x1;}return _0x7b8f1d[_0x47891c(0x12c)]('');}function splitTopLevelAnd(_0xb1d878){const _0x36d805=a233_0x1450,_0x5ef469=[];let _0x203e8f=0x0,_0x429557=0x0;for(let _0x27cbcc=0x0;_0x27cbcc<_0xb1d878[_0x36d805(0x12a)];_0x27cbcc+=0x1){const _0x3905fc=_0xb1d878[_0x27cbcc];if(_0x3905fc==='(')_0x203e8f+=0x1;if(_0x3905fc===')')_0x203e8f=Math[_0x36d805(0x132)](0x0,_0x203e8f-0x1);_0x203e8f===0x0&&_0xb1d878[_0x36d805(0x124)](_0x27cbcc)[_0x36d805(0x136)](/^AND\b/i)&&(_0x27cbcc===0x0||/\s/[_0x36d805(0x11c)](_0xb1d878[_0x27cbcc-0x1]??''))&&(_0x5ef469['push'](_0xb1d878['slice'](_0x429557,_0x27cbcc)[_0x36d805(0x128)]()),_0x27cbcc+=0x2,_0x429557=_0x27cbcc+0x1);}const _0x1eadd5=_0xb1d878[_0x36d805(0x124)](_0x429557)[_0x36d805(0x128)]();if(_0x1eadd5)_0x5ef469['push'](_0x1eadd5);return _0x5ef469;}function hasTopLevelKeyword(_0x16b076,_0x38ea53){const _0x518cdc=a233_0x1450;let _0x2db76a=0x0;for(let _0x36be8c=0x0;_0x36be8c<_0x16b076['length'];_0x36be8c+=0x1){const _0x3baca3=_0x16b076[_0x36be8c];if(_0x3baca3==='(')_0x2db76a+=0x1;if(_0x3baca3===')')_0x2db76a=Math[_0x518cdc(0x132)](0x0,_0x2db76a-0x1);if(_0x2db76a!==0x0)continue;const _0x225d8c=_0x16b076['slice'](_0x36be8c,_0x36be8c+_0x38ea53['length']),_0x19a060=_0x16b076[_0x36be8c-0x1]??'\x20',_0x4e5e4d=_0x16b076[_0x36be8c+_0x38ea53[_0x518cdc(0x12a)]]??'\x20';if(_0x225d8c[_0x518cdc(0x147)]()===_0x38ea53[_0x518cdc(0x147)]()&&!/[\w$]/[_0x518cdc(0x11c)](_0x19a060)&&!/[\w$]/[_0x518cdc(0x11c)](_0x4e5e4d))return!![];}return![];}function splitEquality(_0x1fe8f6){const _0x33aba0=a233_0x1450,_0x445ea4=stripOuterParentheses(_0x1fe8f6);let _0x893b91=0x0,_0x5ab2fb;for(let _0x19f22e=0x0;_0x19f22e<_0x445ea4[_0x33aba0(0x12a)];_0x19f22e+=0x1){const _0x219f97=_0x445ea4[_0x19f22e];if(_0x219f97==='(')_0x893b91+=0x1;if(_0x219f97===')')_0x893b91=Math[_0x33aba0(0x132)](0x0,_0x893b91-0x1);const _0x148a23=_0x445ea4[_0x19f22e-0x1]??'',_0x34d4a4=_0x445ea4[_0x19f22e+0x1]??'';if(_0x219f97==='='&&_0x893b91===0x0&&!/[!<>=:]/[_0x33aba0(0x11c)](_0x148a23)&&_0x34d4a4!=='='){if(_0x5ab2fb!==undefined)return null;_0x5ab2fb=_0x19f22e;}}return _0x5ab2fb===undefined?null:[_0x445ea4[_0x33aba0(0x124)](0x0,_0x5ab2fb)[_0x33aba0(0x128)](),_0x445ea4['slice'](_0x5ab2fb+0x1)[_0x33aba0(0x128)]()];}function parseDirectColumnReference(_0xe6f8e5,_0x530b53){const _0x10a99e=a233_0x1450,_0x454056=/^([`"]?[\w$]+[`"]?)\s*\.\s*([`"]?[\w$]+[`"]?)$/[_0x10a99e(0x109)](stripOuterParentheses(_0xe6f8e5));if(!_0x454056)return null;if(normalizeIdentifier(_0x454056[0x1]??'')!==normalizeIdentifier(_0x530b53))return null;return normalizeIdentifier(_0x454056[0x2]??'');}function containsColumnReference(_0x21dc4f,_0x3f06bd){const _0x50745d=a233_0x1450,_0x23c256=_0x21dc4f[_0x50745d(0x10a)](/[`"]/g,''),_0x2b07c4=_0x3f06bd[_0x50745d(0x10a)](/[.*+?^${}()|[\]\\]/g,_0x50745d(0x103));return new RegExp('(?:^|[^\x5cw$])'+_0x2b07c4+_0x50745d(0xff),'i')[_0x50745d(0x11c)](_0x23c256);}function findEqualityPrefix(_0x1e7cae,_0x142233){const _0xf750f8=a233_0x1450,_0x76ab61=new Set(_0x142233[_0xf750f8(0x148)](normalizeIdentifier)),_0x2f9d84=[];for(const _0x4ce794 of _0x1e7cae){if(!_0x76ab61[_0xf750f8(0xfd)](normalizeIdentifier(_0x4ce794)))break;_0x2f9d84['push'](_0x4ce794);}return _0x2f9d84;}function resolveTableMetadata(_0xa7eee5,_0x2098c0){const _0x7d2d36=a233_0x1450,_0x3ed6a6=normalizeIdentifier(_0x2098c0),_0x27d28d=_0xa7eee5[_0x7d2d36(0x121)](_0x20aef7=>normalizeIdentifier(_0x20aef7['tableName'])===_0x3ed6a6);if(_0x27d28d[_0x7d2d36(0x12a)]===0x1)return _0x27d28d[0x0];const _0x11ed84=_0x3ed6a6[_0x7d2d36(0x133)]('.'),_0x1facaa=_0x3ed6a6[_0x7d2d36(0x116)]('.')['at'](-0x1),_0x2f5b95=_0xa7eee5[_0x7d2d36(0x121)](_0x41bfe3=>{const _0x57a394=_0x7d2d36,_0x5c32ab=normalizeIdentifier(_0x41bfe3['tableName']);if(_0x11ed84&&_0x5c32ab['includes']('.'))return![];return _0x5c32ab[_0x57a394(0x116)]('.')['at'](-0x1)===_0x1facaa;});return _0x2f5b95['length']===0x1?_0x2f5b95[0x0]:undefined;}function columnNamesMatch(_0x51c5bd,_0x13b5c1){return normalizeIdentifier(_0x51c5bd)===normalizeIdentifier(_0x13b5c1);}function normalizeIdentifier(_0x237bb6){const _0x3988eb=a233_0x1450;return _0x237bb6[_0x3988eb(0x10a)](/[`"]/g,'')[_0x3988eb(0x128)]()[_0x3988eb(0x122)]();}function isSqlClauseKeyword(_0x57877e){const _0x3d8a62=a233_0x1450;return new Set(['on',_0x3d8a62(0x100),'where',_0x3d8a62(0x12c),_0x3d8a62(0x125),_0x3d8a62(0x11f),_0x3d8a62(0x13c),_0x3d8a62(0xfe),_0x3d8a62(0x135),_0x3d8a62(0x140)])[_0x3d8a62(0xfd)](_0x57877e);}function stripOuterParentheses(_0x2cb1ae){const _0x901931=a233_0x1450;let _0x453e2a=_0x2cb1ae[_0x901931(0x128)]();while(_0x453e2a[_0x901931(0x113)]('(')&&_0x453e2a[_0x901931(0x11b)](')')){let _0x31b39b=0x0,_0x43995a=!![];for(let _0x236a80=0x0;_0x236a80<_0x453e2a['length'];_0x236a80+=0x1){if(_0x453e2a[_0x236a80]==='(')_0x31b39b+=0x1;if(_0x453e2a[_0x236a80]===')')_0x31b39b-=0x1;if(_0x31b39b===0x0&&_0x236a80<_0x453e2a[_0x901931(0x12a)]-0x1){_0x43995a=![];break;}}if(!_0x43995a||_0x31b39b!==0x0)break;_0x453e2a=_0x453e2a[_0x901931(0x124)](0x1,-0x1)['trim']();}return _0x453e2a;}
@@ -1 +1 @@
1
- const a234_0x177e98=a234_0x4d73;(function(_0x12577f,_0x603e82){const _0x44fac6=a234_0x4d73,_0x1d1943=_0x12577f();while(!![]){try{const _0x79f0b9=parseInt(_0x44fac6(0xda))/0x1*(parseInt(_0x44fac6(0xd0))/0x2)+parseInt(_0x44fac6(0xdb))/0x3+parseInt(_0x44fac6(0xd7))/0x4*(-parseInt(_0x44fac6(0xcd))/0x5)+parseInt(_0x44fac6(0xd9))/0x6*(parseInt(_0x44fac6(0xd4))/0x7)+-parseInt(_0x44fac6(0xd2))/0x8+-parseInt(_0x44fac6(0xcf))/0x9*(-parseInt(_0x44fac6(0xd6))/0xa)+parseInt(_0x44fac6(0xd5))/0xb*(-parseInt(_0x44fac6(0xce))/0xc);if(_0x79f0b9===_0x603e82)break;else _0x1d1943['push'](_0x1d1943['shift']());}catch(_0x29b470){_0x1d1943['push'](_0x1d1943['shift']());}}}(a234_0x5089,0x2b2c5));function a234_0x5089(){const _0x49aa3c=['656433irJSlS','12286PZAzOx','sql-trash','1295168xUKltg','sql.lock.json','35EObDgI','143HZbLkj','30sNcUzn','159356lQyLmB','.rabetbase','254406USCEPP','47xTQigt','934575fQoXeb','/sql','10GFirWE','565524xtQfro'];a234_0x5089=function(){return _0x49aa3c;};return a234_0x5089();}import{resolve}from'node:path';import{findProjectRootDirectory}from'../../context.js';const DOT_DIR=a234_0x177e98(0xd8),LOCK_FILE_NAME=a234_0x177e98(0xd3),TRASH_DIR_NAME=a234_0x177e98(0xd1);function a234_0x4d73(_0x1ee3c5,_0x26f006){_0x1ee3c5=_0x1ee3c5-0xcd;const _0x508946=a234_0x5089();let _0x4d7391=_0x508946[_0x1ee3c5];return _0x4d7391;}export function loadSqlProjectConfig(_0x292670,_0x567b59){const _0x287e68=a234_0x177e98,_0x14a6ea=resolve(_0x567b59??findProjectRootDirectory()),_0x1cb756=DOT_DIR+_0x287e68(0xdc),_0x146ebd=_0x1cb756+'/'+_0x292670;return{'projectRoot':_0x14a6ea,'appCode':_0x292670,'sqlWorkspaceRoot':_0x1cb756,'sqlRoot':_0x146ebd,'sqlRootDir':resolve(_0x14a6ea,DOT_DIR,'sql',_0x292670),'lockFilePath':resolve(_0x14a6ea,DOT_DIR,LOCK_FILE_NAME),'trashDir':resolve(_0x14a6ea,DOT_DIR,TRASH_DIR_NAME)};}
1
+ function a234_0x2034(_0xf40134,_0x3b474b){_0xf40134=_0xf40134-0xe6;const _0x3cf88e=a234_0x3cf8();let _0x203499=_0x3cf88e[_0xf40134];return _0x203499;}const a234_0x472174=a234_0x2034;function a234_0x3cf8(){const _0x2ae7ef=['4005610iQAOcD','11709JDietW','890575RQwxya','5137620BSRJVB','12218264VBauqB','9AnkwXg','2OoLbdn','sql-trash','sql.lock.json','22KASiTx','sql','381761okKfQk','/sql','18618JKzMVT','.rabetbase','2065qXEtHt','868eMivoB'];a234_0x3cf8=function(){return _0x2ae7ef;};return a234_0x3cf8();}(function(_0x53c009,_0x88fb8e){const _0x888da=a234_0x2034,_0x576be1=_0x53c009();while(!![]){try{const _0x37c044=parseInt(_0x888da(0xf6))/0x1*(-parseInt(_0x888da(0xf1))/0x2)+parseInt(_0x888da(0xec))/0x3*(-parseInt(_0x888da(0xea))/0x4)+parseInt(_0x888da(0xed))/0x5+-parseInt(_0x888da(0xe7))/0x6*(parseInt(_0x888da(0xe9))/0x7)+parseInt(_0x888da(0xef))/0x8*(parseInt(_0x888da(0xf0))/0x9)+parseInt(_0x888da(0xeb))/0xa*(parseInt(_0x888da(0xf4))/0xb)+parseInt(_0x888da(0xee))/0xc;if(_0x37c044===_0x88fb8e)break;else _0x576be1['push'](_0x576be1['shift']());}catch(_0x355f1a){_0x576be1['push'](_0x576be1['shift']());}}}(a234_0x3cf8,0xc101e));import{resolve}from'node:path';import{findProjectRootDirectory}from'../../context.js';const DOT_DIR=a234_0x472174(0xe8),LOCK_FILE_NAME=a234_0x472174(0xf3),TRASH_DIR_NAME=a234_0x472174(0xf2);export function loadSqlProjectConfig(_0x17762f,_0x5cc98d){const _0x2f5fb7=a234_0x472174,_0x3dfde2=resolve(_0x5cc98d??findProjectRootDirectory()),_0x1a665b=DOT_DIR+_0x2f5fb7(0xe6),_0x424725=_0x1a665b+'/'+_0x17762f;return{'projectRoot':_0x3dfde2,'appCode':_0x17762f,'sqlWorkspaceRoot':_0x1a665b,'sqlRoot':_0x424725,'sqlRootDir':resolve(_0x3dfde2,DOT_DIR,_0x2f5fb7(0xf5),_0x17762f),'lockFilePath':resolve(_0x3dfde2,DOT_DIR,LOCK_FILE_NAME),'trashDir':resolve(_0x3dfde2,DOT_DIR,TRASH_DIR_NAME)};}
@@ -1 +1 @@
1
- (function(_0x11bf63,_0x55a60f){const _0x4792ba=a235_0x5e77,_0x299def=_0x11bf63();while(!![]){try{const _0x3c659a=parseInt(_0x4792ba(0xd0))/0x1+-parseInt(_0x4792ba(0xd3))/0x2+-parseInt(_0x4792ba(0xbc))/0x3*(-parseInt(_0x4792ba(0xc7))/0x4)+parseInt(_0x4792ba(0xbd))/0x5+-parseInt(_0x4792ba(0xc4))/0x6+parseInt(_0x4792ba(0xcd))/0x7*(-parseInt(_0x4792ba(0xd5))/0x8)+-parseInt(_0x4792ba(0xb8))/0x9*(parseInt(_0x4792ba(0xbf))/0xa);if(_0x3c659a===_0x55a60f)break;else _0x299def['push'](_0x299def['shift']());}catch(_0xc858c6){_0x299def['push'](_0x299def['shift']());}}}(a235_0x24d5,0x2dca0));import{readdir,stat}from'node:fs/promises';import{extname,join,relative}from'node:path';import{buildDefaultSqlFileName,buildSqlRelativePath}from'./utils.js';function extensionToMode(_0x51ef28){const _0x1df82a=a235_0x5e77;if(_0x51ef28==='.sql')return _0x1df82a(0xbe);if(_0x51ef28===_0x1df82a(0xb9))return _0x1df82a(0xcf);return undefined;}function a235_0x24d5(){const _0x1179d1=['1029396nsBJVv','path','name','4nuQZGu','sqlName','sqlRootDir','isDirectory','dbId','code','791CUsQcF','length','mybatisXml','121620YlIVzC','slice','sqlCode','524220vQxFfw','mode','6792kDnnYr','isFile','468ArydQR','.xml','split','indexOf','961941gHuZBR','1500590zQlSsP','sql','4850AHnksO','replace','dbName','push','test'];a235_0x24d5=function(){return _0x1179d1;};return a235_0x24d5();}async function scanSqlFilesRecursively(_0x23cd3a,_0x3ab10e){const _0x1ea7eb=a235_0x5e77,_0x3075e4=[];try{const _0x2a9b06=await readdir(_0x23cd3a,{'withFileTypes':!![]});for(const _0x5ab284 of _0x2a9b06){const _0x242c8f=join(_0x23cd3a,_0x5ab284['name']);if(_0x5ab284[_0x1ea7eb(0xca)]()){_0x3075e4[_0x1ea7eb(0xc2)](...await scanSqlFilesRecursively(_0x242c8f,_0x3ab10e));continue;}if(!_0x5ab284[_0x1ea7eb(0xd6)]())continue;const _0xfe6e58=extname(_0x5ab284[_0x1ea7eb(0xc6)])['toLowerCase'](),_0x33bc10=extensionToMode(_0xfe6e58);if(!_0x33bc10)continue;const _0x232177=relative(_0x3ab10e,_0x242c8f)[_0x1ea7eb(0xc0)](/\\/g,'/'),_0x44df10=_0x232177[_0x1ea7eb(0xba)]('/')['filter'](Boolean),_0x26f079=parseSqlPath(_0x44df10,_0x5ab284[_0x1ea7eb(0xc6)],_0xfe6e58);if(!_0x26f079)continue;_0x3075e4['push']({'sqlCode':_0x26f079[_0x1ea7eb(0xd2)],'sqlName':_0x26f079[_0x1ea7eb(0xc8)],'dbDirectory':_0x44df10[0x0],'filePath':_0x242c8f,'relativePath':_0x232177,'lockKey':_0x26f079[_0x1ea7eb(0xd2)],'mode':_0x33bc10});}}catch(_0x226fd2){if(_0x226fd2[_0x1ea7eb(0xcc)]!=='ENOENT')throw _0x226fd2;}return _0x3075e4;}export async function scanLocalSqlQueries(_0x150da4){const _0x17f660=a235_0x5e77;return scanSqlFilesRecursively(_0x150da4['sqlRootDir'],_0x150da4[_0x17f660(0xc9)]);}function a235_0x5e77(_0x5ea062,_0x285a70){_0x5ea062=_0x5ea062-0xb8;const _0x24d529=a235_0x24d5();let _0x5e77c0=_0x24d529[_0x5ea062];return _0x5e77c0;}export function resolveLocalSqlFilePath(_0x359bd6,_0x15b238,_0x1719ef){const _0x1894e9=a235_0x5e77,_0x545d1c=_0x1719ef?.[_0x1894e9(0xc5)]||(_0x1719ef?.[_0x1894e9(0xc8)]||_0x1719ef?.[_0x1894e9(0xc1)]?buildSqlRelativePath(_0x15b238,_0x1719ef?.[_0x1894e9(0xc8)],_0x1719ef?.[_0x1894e9(0xc1)],_0x1719ef?.[_0x1894e9(0xd4)]||_0x1894e9(0xbe),_0x1719ef?.[_0x1894e9(0xcb)]):buildDefaultSqlFileName(_0x15b238,_0x1719ef?.[_0x1894e9(0xd4)]||_0x1894e9(0xbe)));return join(_0x359bd6[_0x1894e9(0xc9)],_0x545d1c);}export async function directoryExists(_0x3b809a){try{const _0x5cd45b=await stat(_0x3b809a);return _0x5cd45b['isDirectory']();}catch{return![];}}function parseSqlPath(_0x37c4e9,_0x329ec1,_0x507dea){const _0x252e2d=a235_0x5e77,_0x2c5699=_0x329ec1[_0x252e2d(0xd1)](0x0,-_0x507dea[_0x252e2d(0xce)]);if(_0x37c4e9[_0x252e2d(0xce)]<0x2)return null;const _0x326fab=_0x2c5699[_0x252e2d(0xbb)]('_');if(_0x326fab<=0x0||_0x326fab>=_0x2c5699[_0x252e2d(0xce)]-0x1)return null;const _0x216639=_0x2c5699[_0x252e2d(0xd1)](0x0,_0x326fab);if(!isLikelySqlCode(_0x216639))return null;return{'sqlCode':_0x216639,'sqlName':_0x2c5699[_0x252e2d(0xd1)](_0x326fab+0x1)};}function isLikelySqlCode(_0x2fbc13){const _0x46d6f0=a235_0x5e77;return/^[A-Za-z0-9-]+-[A-Za-z0-9-]+$/[_0x46d6f0(0xc3)](_0x2fbc13);}
1
+ (function(_0x2cab53,_0x489e97){const _0x1bfc4f=a235_0x22f6,_0x44000a=_0x2cab53();while(!![]){try{const _0x170d98=parseInt(_0x1bfc4f(0xcc))/0x1+parseInt(_0x1bfc4f(0xb4))/0x2*(parseInt(_0x1bfc4f(0xc8))/0x3)+parseInt(_0x1bfc4f(0xd0))/0x4*(parseInt(_0x1bfc4f(0xb8))/0x5)+parseInt(_0x1bfc4f(0xcf))/0x6+-parseInt(_0x1bfc4f(0xbe))/0x7+parseInt(_0x1bfc4f(0xcd))/0x8*(parseInt(_0x1bfc4f(0xc6))/0x9)+-parseInt(_0x1bfc4f(0xc2))/0xa;if(_0x170d98===_0x489e97)break;else _0x44000a['push'](_0x44000a['shift']());}catch(_0x35f778){_0x44000a['push'](_0x44000a['shift']());}}}(a235_0x2b49,0xc6793));import{readdir,stat}from'node:fs/promises';import{extname,join,relative}from'node:path';import{buildDefaultSqlFileName,buildSqlRelativePath}from'./utils.js';function a235_0x2b49(){const _0x29e9bb=['.xml','sqlName','name','125505CkiADw','sqlRootDir','37368KQeGid','dbId','ENOENT','code','848585rOYbOr','472DtxrxQ','dbName','8830236otlCBG','8TLLtRF','mode','74GalnXu','test','length','.sql','1590810nrUKlm','push','sql','path','toLowerCase','slice','5029920SQJkWw','sqlCode','filter','replace','27087350oXKaPK'];a235_0x2b49=function(){return _0x29e9bb;};return a235_0x2b49();}function extensionToMode(_0x4ffb7a){const _0x17bf9c=a235_0x22f6;if(_0x4ffb7a===_0x17bf9c(0xb7))return _0x17bf9c(0xba);if(_0x4ffb7a===_0x17bf9c(0xc3))return'mybatisXml';return undefined;}async function scanSqlFilesRecursively(_0x39e964,_0x20e1f8){const _0x3d94e3=a235_0x22f6,_0x4bfdf5=[];try{const _0xf073f9=await readdir(_0x39e964,{'withFileTypes':!![]});for(const _0xdb131b of _0xf073f9){const _0x4b68d2=join(_0x39e964,_0xdb131b[_0x3d94e3(0xc5)]);if(_0xdb131b['isDirectory']()){_0x4bfdf5[_0x3d94e3(0xb9)](...await scanSqlFilesRecursively(_0x4b68d2,_0x20e1f8));continue;}if(!_0xdb131b['isFile']())continue;const _0x47db50=extname(_0xdb131b[_0x3d94e3(0xc5)])[_0x3d94e3(0xbc)](),_0x1c452a=extensionToMode(_0x47db50);if(!_0x1c452a)continue;const _0x40eba0=relative(_0x20e1f8,_0x4b68d2)[_0x3d94e3(0xc1)](/\\/g,'/'),_0xabafdb=_0x40eba0['split']('/')[_0x3d94e3(0xc0)](Boolean),_0x2452af=parseSqlPath(_0xabafdb,_0xdb131b[_0x3d94e3(0xc5)],_0x47db50);if(!_0x2452af)continue;_0x4bfdf5[_0x3d94e3(0xb9)]({'sqlCode':_0x2452af[_0x3d94e3(0xbf)],'sqlName':_0x2452af[_0x3d94e3(0xc4)],'dbDirectory':_0xabafdb[0x0],'filePath':_0x4b68d2,'relativePath':_0x40eba0,'lockKey':_0x2452af[_0x3d94e3(0xbf)],'mode':_0x1c452a});}}catch(_0x4aef8e){if(_0x4aef8e[_0x3d94e3(0xcb)]!==_0x3d94e3(0xca))throw _0x4aef8e;}return _0x4bfdf5;}export async function scanLocalSqlQueries(_0x2c4a1f){const _0x318f5d=a235_0x22f6;return scanSqlFilesRecursively(_0x2c4a1f[_0x318f5d(0xc7)],_0x2c4a1f[_0x318f5d(0xc7)]);}export function resolveLocalSqlFilePath(_0x4a431f,_0x3c5b9a,_0x19b47b){const _0x293cb5=a235_0x22f6,_0x1e6cfd=_0x19b47b?.[_0x293cb5(0xbb)]||(_0x19b47b?.[_0x293cb5(0xc4)]||_0x19b47b?.['dbName']?buildSqlRelativePath(_0x3c5b9a,_0x19b47b?.[_0x293cb5(0xc4)],_0x19b47b?.[_0x293cb5(0xce)],_0x19b47b?.[_0x293cb5(0xb3)]||_0x293cb5(0xba),_0x19b47b?.[_0x293cb5(0xc9)]):buildDefaultSqlFileName(_0x3c5b9a,_0x19b47b?.['mode']||_0x293cb5(0xba)));return join(_0x4a431f[_0x293cb5(0xc7)],_0x1e6cfd);}function a235_0x22f6(_0x1ba5b3,_0xb359f7){_0x1ba5b3=_0x1ba5b3-0xb3;const _0x2b4980=a235_0x2b49();let _0x22f6d1=_0x2b4980[_0x1ba5b3];return _0x22f6d1;}export async function directoryExists(_0xef9d17){try{const _0x2bcc91=await stat(_0xef9d17);return _0x2bcc91['isDirectory']();}catch{return![];}}function parseSqlPath(_0x47d4a1,_0x566761,_0xf36902){const _0x53990b=a235_0x22f6,_0x1e4619=_0x566761[_0x53990b(0xbd)](0x0,-_0xf36902['length']);if(_0x47d4a1[_0x53990b(0xb6)]<0x2)return null;const _0x411f89=_0x1e4619['indexOf']('_');if(_0x411f89<=0x0||_0x411f89>=_0x1e4619['length']-0x1)return null;const _0x1858c3=_0x1e4619[_0x53990b(0xbd)](0x0,_0x411f89);if(!isLikelySqlCode(_0x1858c3))return null;return{'sqlCode':_0x1858c3,'sqlName':_0x1e4619[_0x53990b(0xbd)](_0x411f89+0x1)};}function isLikelySqlCode(_0x540814){const _0x4fd4fe=a235_0x22f6;return/^[A-Za-z0-9-]+-[A-Za-z0-9-]+$/[_0x4fd4fe(0xb5)](_0x540814);}
@@ -1 +1 @@
1
- function a236_0x1b7a(){const _0x57ebba=['2714574rrumzs','md5','hex','digest','createHash','984188jRFvrb','336312dsEVZD','1651181RUKThW','2bTmcCk','147149hYMCNp','utf8','2118660Vwlwhv','3063335pIIMRg'];a236_0x1b7a=function(){return _0x57ebba;};return a236_0x1b7a();}(function(_0x235295,_0x3724dd){const _0x5e0662=a236_0xf9a3,_0x531324=_0x235295();while(!![]){try{const _0x2d3db6=parseInt(_0x5e0662(0x134))/0x1+parseInt(_0x5e0662(0x133))/0x2*(parseInt(_0x5e0662(0x138))/0x3)+parseInt(_0x5e0662(0x130))/0x4+-parseInt(_0x5e0662(0x137))/0x5+-parseInt(_0x5e0662(0x136))/0x6+parseInt(_0x5e0662(0x132))/0x7+-parseInt(_0x5e0662(0x131))/0x8;if(_0x2d3db6===_0x3724dd)break;else _0x531324['push'](_0x531324['shift']());}catch(_0x4af908){_0x531324['push'](_0x531324['shift']());}}}(a236_0x1b7a,0x80729));import{readFile}from'node:fs/promises';function a236_0xf9a3(_0x34beb2,_0x319b56){_0x34beb2=_0x34beb2-0x130;const _0x1b7a05=a236_0x1b7a();let _0xf9a348=_0x1b7a05[_0x34beb2];return _0xf9a348;}import a236_0x23ec5d from'node:crypto';export function computeSqlContentHash(_0x4952de){const _0x570983=a236_0xf9a3;return a236_0x23ec5d[_0x570983(0x13c)](_0x570983(0x139))['update'](_0x4952de)[_0x570983(0x13b)](_0x570983(0x13a));}export async function computeSqlFileHash(_0x5e337a){const _0x4cdc18=a236_0xf9a3,_0x155591=await readFile(_0x5e337a,_0x4cdc18(0x135));return computeSqlContentHash(_0x155591);}
1
+ function a236_0x3f5d(){const _0x493a3b=['4lSWDRh','407860sYodTI','digest','1344210LmXiZt','309342EUtWui','hex','md5','1019787KLstKR','1488855qxEICP','764526PHvppL','8zFxvQF','6FWOAgW','3442275EMwFSu'];a236_0x3f5d=function(){return _0x493a3b;};return a236_0x3f5d();}function a236_0x2d4d(_0x3ad698,_0x9fa21e){_0x3ad698=_0x3ad698-0xa2;const _0x3f5d1a=a236_0x3f5d();let _0x2d4dbc=_0x3f5d1a[_0x3ad698];return _0x2d4dbc;}(function(_0x287011,_0x4c60a0){const _0x28ab0e=a236_0x2d4d,_0xae9a91=_0x287011();while(!![]){try{const _0x34341a=-parseInt(_0x28ab0e(0xac))/0x1+parseInt(_0x28ab0e(0xa9))/0x2+-parseInt(_0x28ab0e(0xa2))/0x3*(parseInt(_0x28ab0e(0xa8))/0x4)+-parseInt(_0x28ab0e(0xa3))/0x5*(-parseInt(_0x28ab0e(0xa6))/0x6)+-parseInt(_0x28ab0e(0xa4))/0x7+-parseInt(_0x28ab0e(0xa5))/0x8*(-parseInt(_0x28ab0e(0xa7))/0x9)+parseInt(_0x28ab0e(0xab))/0xa;if(_0x34341a===_0x4c60a0)break;else _0xae9a91['push'](_0xae9a91['shift']());}catch(_0x3d4572){_0xae9a91['push'](_0xae9a91['shift']());}}}(a236_0x3f5d,0x3f80c));import{readFile}from'node:fs/promises';import a236_0xb8beb1 from'node:crypto';export function computeSqlContentHash(_0x330c28){const _0x4042d0=a236_0x2d4d;return a236_0xb8beb1['createHash'](_0x4042d0(0xae))['update'](_0x330c28)[_0x4042d0(0xaa)](_0x4042d0(0xad));}export async function computeSqlFileHash(_0x504039){const _0x17bf6e=await readFile(_0x504039,'utf8');return computeSqlContentHash(_0x17bf6e);}
@@ -1 +1 @@
1
- (function(_0x174d1c,_0x230618){const _0x200aac=a237_0x3e53,_0x2a7a51=_0x174d1c();while(!![]){try{const _0x162dd4=parseInt(_0x200aac(0x1c6))/0x1*(parseInt(_0x200aac(0x1c0))/0x2)+-parseInt(_0x200aac(0x1c5))/0x3+-parseInt(_0x200aac(0x1b6))/0x4+-parseInt(_0x200aac(0x1bd))/0x5*(parseInt(_0x200aac(0x1b2))/0x6)+parseInt(_0x200aac(0x1bf))/0x7+-parseInt(_0x200aac(0x1c8))/0x8*(-parseInt(_0x200aac(0x1be))/0x9)+parseInt(_0x200aac(0x1b9))/0xa*(-parseInt(_0x200aac(0x1c1))/0xb);if(_0x162dd4===_0x230618)break;else _0x2a7a51['push'](_0x2a7a51['shift']());}catch(_0x1cf110){_0x2a7a51['push'](_0x2a7a51['shift']());}}}(a237_0x49ee,0xabaf8));import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';function a237_0x3e53(_0x223269,_0x2504a8){_0x223269=_0x223269-0x1b2;const _0x49eebe=a237_0x49ee();let _0x3e537a=_0x49eebe[_0x223269];return _0x3e537a;}export function createEmptySqlLock(){return{'apps':{}};}function a237_0x49ee(){const _0x407026=['stringify','code','sqls','20ekMxas','9yqixeI','6384987nSbXZe','623224PXlLYR','3179zhuYdt','ENOENT','lastSync','Failed\x20to\x20read\x20SQL\x20lock\x20file:\x20','2523342OTvjNf','2lYvZKw','utf8','8200496YrUxvs','11472YhBKDe','apps',':\x20sqlRoot\x20mismatch\x20—\x20current\x20\x22','\x22\x20vs\x20lock\x20\x22','3948iXBOTl','\x22.\x20','sqlRoot','34860RPslNS'];a237_0x49ee=function(){return _0x407026;};return a237_0x49ee();}export function ensureSqlLockScope(_0x5bbbf7,_0x13d629,_0x1d711d,_0x53fcf9){const _0x3fdf69=a237_0x3e53,_0x4c21a8=_0x5bbbf7??createEmptySqlLock();let _0x340538=_0x4c21a8['apps'][_0x13d629];if(!_0x340538)return _0x340538={'sqlRoot':_0x1d711d,'lastSync':'','sqls':{}},_0x4c21a8[_0x3fdf69(0x1b3)][_0x13d629]=_0x340538,{'lockData':_0x4c21a8,'appLock':_0x340538};if(!_0x340538[_0x3fdf69(0x1b8)])_0x340538['sqlRoot']=_0x1d711d;else{if(_0x340538[_0x3fdf69(0x1b8)]!==_0x1d711d)throw new Error(_0x53fcf9+_0x3fdf69(0x1b4)+_0x1d711d+_0x3fdf69(0x1b5)+_0x340538[_0x3fdf69(0x1b8)]+_0x3fdf69(0x1b7)+'Check\x20.rabetbase/sql.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.');}return!_0x340538[_0x3fdf69(0x1bc)]&&(_0x340538[_0x3fdf69(0x1bc)]={}),!_0x340538[_0x3fdf69(0x1c3)]&&(_0x340538[_0x3fdf69(0x1c3)]=''),{'lockData':_0x4c21a8,'appLock':_0x340538};}export async function readSqlLockFile(_0x4259de){const _0x4c2a60=a237_0x3e53;try{const _0xdfad4a=await readFile(_0x4259de,_0x4c2a60(0x1c7));return JSON['parse'](_0xdfad4a);}catch(_0x2236e2){if(_0x2236e2[_0x4c2a60(0x1bb)]===_0x4c2a60(0x1c2))return null;throw new Error(_0x4c2a60(0x1c4)+String(_0x2236e2));}}export async function writeSqlLockFile(_0x49ec3f,_0x9cfc04){const _0x4afb95=a237_0x3e53;await mkdir(dirname(_0x49ec3f),{'recursive':!![]}),await writeFile(_0x49ec3f,JSON[_0x4afb95(0x1ba)](_0x9cfc04,null,0x2),_0x4afb95(0x1c7));}
1
+ function a237_0x2fa7(_0x52057f,_0x39b08d){_0x52057f=_0x52057f-0xaa;const _0x4d463d=a237_0x4d46();let _0x2fa7e6=_0x4d463d[_0x52057f];return _0x2fa7e6;}function a237_0x4d46(){const _0x4d8682=['apps','27huYtZD','19340FWeerz','325194gvyTTY','utf8','Check\x20.rabetbase/sql.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.','44pMfgrm','code','202830pxbnJk',':\x20sqlRoot\x20mismatch\x20—\x20current\x20\x22','sqls','Failed\x20to\x20read\x20SQL\x20lock\x20file:\x20','ENOENT','1386266GCHDqh','lastSync','parse','410750GlHMmh','stringify','2167NwdljY','891288umyjLM','12910oVXENH','sqlRoot','4bJYLPZ'];a237_0x4d46=function(){return _0x4d8682;};return a237_0x4d46();}(function(_0x6f2b51,_0x23410f){const _0x30ffea=a237_0x2fa7,_0x48d59f=_0x6f2b51();while(!![]){try{const _0x2f55f0=-parseInt(_0x30ffea(0xb9))/0x1+-parseInt(_0x30ffea(0xbf))/0x2*(-parseInt(_0x30ffea(0xb1))/0x3)+-parseInt(_0x30ffea(0xaf))/0x4*(parseInt(_0x30ffea(0xab))/0x5)+-parseInt(_0x30ffea(0xac))/0x6+parseInt(_0x30ffea(0xb6))/0x7+-parseInt(_0x30ffea(0xbc))/0x8*(-parseInt(_0x30ffea(0xaa))/0x9)+-parseInt(_0x30ffea(0xbd))/0xa*(-parseInt(_0x30ffea(0xbb))/0xb);if(_0x2f55f0===_0x23410f)break;else _0x48d59f['push'](_0x48d59f['shift']());}catch(_0x41b59b){_0x48d59f['push'](_0x48d59f['shift']());}}}(a237_0x4d46,0x65271));import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';export function createEmptySqlLock(){return{'apps':{}};}export function ensureSqlLockScope(_0xbfbeb1,_0x200afe,_0x568a08,_0x7a59c1){const _0x211d0e=a237_0x2fa7,_0x1b2a71=_0xbfbeb1??createEmptySqlLock();let _0x4d4aeb=_0x1b2a71['apps'][_0x200afe];if(!_0x4d4aeb)return _0x4d4aeb={'sqlRoot':_0x568a08,'lastSync':'','sqls':{}},_0x1b2a71[_0x211d0e(0xc0)][_0x200afe]=_0x4d4aeb,{'lockData':_0x1b2a71,'appLock':_0x4d4aeb};if(!_0x4d4aeb['sqlRoot'])_0x4d4aeb[_0x211d0e(0xbe)]=_0x568a08;else{if(_0x4d4aeb[_0x211d0e(0xbe)]!==_0x568a08)throw new Error(_0x7a59c1+_0x211d0e(0xb2)+_0x568a08+'\x22\x20vs\x20lock\x20\x22'+_0x4d4aeb[_0x211d0e(0xbe)]+'\x22.\x20'+_0x211d0e(0xae));}return!_0x4d4aeb[_0x211d0e(0xb3)]&&(_0x4d4aeb[_0x211d0e(0xb3)]={}),!_0x4d4aeb['lastSync']&&(_0x4d4aeb[_0x211d0e(0xb7)]=''),{'lockData':_0x1b2a71,'appLock':_0x4d4aeb};}export async function readSqlLockFile(_0x1e7900){const _0x118b7e=a237_0x2fa7;try{const _0x4e9f5a=await readFile(_0x1e7900,_0x118b7e(0xad));return JSON[_0x118b7e(0xb8)](_0x4e9f5a);}catch(_0x22d0e8){if(_0x22d0e8[_0x118b7e(0xb0)]===_0x118b7e(0xb5))return null;throw new Error(_0x118b7e(0xb4)+String(_0x22d0e8));}}export async function writeSqlLockFile(_0x26ba6e,_0x576038){const _0x33653c=a237_0x2fa7;await mkdir(dirname(_0x26ba6e),{'recursive':!![]}),await writeFile(_0x26ba6e,JSON[_0x33653c(0xba)](_0x576038,null,0x2),'utf8');}
@@ -1 +1 @@
1
- (function(_0x3c2840,_0x3aaf53){const _0x4c5019=a239_0x3af8,_0x72b03e=_0x3c2840();while(!![]){try{const _0x41c48f=-parseInt(_0x4c5019(0x76))/0x1+-parseInt(_0x4c5019(0x6d))/0x2+parseInt(_0x4c5019(0x6e))/0x3*(-parseInt(_0x4c5019(0x67))/0x4)+parseInt(_0x4c5019(0x74))/0x5*(parseInt(_0x4c5019(0x71))/0x6)+-parseInt(_0x4c5019(0x69))/0x7*(parseInt(_0x4c5019(0x72))/0x8)+parseInt(_0x4c5019(0x77))/0x9*(parseInt(_0x4c5019(0x6f))/0xa)+parseInt(_0x4c5019(0x66))/0xb;if(_0x41c48f===_0x3aaf53)break;else _0x72b03e['push'](_0x72b03e['shift']());}catch(_0x211951){_0x72b03e['push'](_0x72b03e['shift']());}}}(a239_0x1550,0x8efb9));function a239_0x3af8(_0x38c43b,_0x193ecb){_0x38c43b=_0x38c43b-0x65;const _0x155014=a239_0x1550();let _0x3af818=_0x155014[_0x38c43b];return _0x3af818;}function a239_0x1550(){const _0x5f8b60=['6cQezdy','1304ObxIGv','sql','899195NDVgsm','mybatisXml','926671bnfvkl','1890cWqinA','.xml','42860708UbUTmN','1048584iRjYzp','test','41335zebFSR','replace','unknown-sql','.sql','2112840EaqdWO','12jbeHIO','23980RPYcTa','unknown-db'];a239_0x1550=function(){return _0x5f8b60;};return a239_0x1550();}export function detectSqlMode(_0x1753a8){const _0x588d1c=a239_0x3af8,_0xe0f5f3=_0x1753a8['trimStart']();if(/^<(select|insert|update|delete)\b/i[_0x588d1c(0x68)](_0xe0f5f3))return _0x588d1c(0x75);return _0x588d1c(0x73);}export function getSqlFileExtension(_0x167213){const _0x6c133d=a239_0x3af8;return _0x167213===_0x6c133d(0x75)?_0x6c133d(0x65):_0x6c133d(0x6c);}export function buildDefaultSqlFileName(_0x23a017,_0x40d204){return''+_0x23a017+getSqlFileExtension(_0x40d204);}export function sanitizeSqlPathSegment(_0x2d831a,_0xc78e4e){const _0x5a72a1=a239_0x3af8,_0x2a613e=String(_0x2d831a??'')['trim'](),_0x1db983=_0x2a613e[_0x5a72a1(0x6a)](/[<>:"/\\|?*\u0000-\u001F]/g,'-')[_0x5a72a1(0x6a)](/\s+/g,'-')[_0x5a72a1(0x6a)](/-+/g,'-')['replace'](/^\.+/,'')['replace'](/\.+$/,'')[_0x5a72a1(0x6a)](/^-+/,'')['replace'](/-+$/,'');return _0x1db983||_0xc78e4e;}export function buildDbDirectoryName(_0x238a02,_0x1bae98){const _0x2b9b72=a239_0x3af8;return sanitizeSqlPathSegment(_0x238a02,_0x1bae98!=null?'db-'+_0x1bae98:_0x2b9b72(0x70));}export function buildSqlRelativePath(_0x597c66,_0x25f7f1,_0x1de8b5,_0x2b1765,_0x2dbe64){const _0x430c00=a239_0x3af8,_0x49d3db=buildDbDirectoryName(_0x1de8b5,_0x2dbe64),_0x7b9daa=sanitizeSqlPathSegment(_0x597c66,_0x430c00(0x6b)),_0x3375c4=sanitizeSqlPathSegment(_0x25f7f1,_0x7b9daa);return _0x49d3db+'/'+_0x7b9daa+'_'+_0x3375c4+getSqlFileExtension(_0x2b1765);}
1
+ (function(_0x42abbe,_0x5d64e2){const _0x173be0=a239_0xbe57,_0x3c14b3=_0x42abbe();while(!![]){try{const _0x30fc5c=-parseInt(_0x173be0(0xb6))/0x1*(parseInt(_0x173be0(0xb2))/0x2)+-parseInt(_0x173be0(0xa6))/0x3+-parseInt(_0x173be0(0xa7))/0x4+parseInt(_0x173be0(0xab))/0x5*(parseInt(_0x173be0(0xb0))/0x6)+-parseInt(_0x173be0(0xa5))/0x7*(-parseInt(_0x173be0(0xa8))/0x8)+parseInt(_0x173be0(0xa3))/0x9+parseInt(_0x173be0(0xaf))/0xa*(parseInt(_0x173be0(0xaa))/0xb);if(_0x30fc5c===_0x5d64e2)break;else _0x3c14b3['push'](_0x3c14b3['shift']());}catch(_0x44ab3b){_0x3c14b3['push'](_0x3c14b3['shift']());}}}(a239_0x1900,0xb438e));export function detectSqlMode(_0x1889b7){const _0x1d6e19=a239_0xbe57,_0xe21637=_0x1889b7['trimStart']();if(/^<(select|insert|update|delete)\b/i[_0x1d6e19(0xa9)](_0xe21637))return _0x1d6e19(0xb1);return _0x1d6e19(0xb5);}export function getSqlFileExtension(_0x3787c0){const _0x1eb7df=a239_0xbe57;return _0x3787c0===_0x1eb7df(0xb1)?_0x1eb7df(0xb4):_0x1eb7df(0xad);}function a239_0x1900(){const _0x4e9a00=['unknown-db','.sql','replace','70zVIbkt','14082ayzBop','mybatisXml','194964MwHpVd','trim','.xml','sql','12BYfTpW','4814127lVrNrk','db-','49868ipANsG','2614611OspaWw','1446500wDzBwE','232xaiZAc','test','2450503vlPEdE','1790pXUPaC'];a239_0x1900=function(){return _0x4e9a00;};return a239_0x1900();}export function buildDefaultSqlFileName(_0x1521b4,_0x3dac00){return''+_0x1521b4+getSqlFileExtension(_0x3dac00);}export function sanitizeSqlPathSegment(_0x55f92e,_0x318730){const _0x4de829=a239_0xbe57,_0x453f52=String(_0x55f92e??'')[_0x4de829(0xb3)](),_0x32c135=_0x453f52[_0x4de829(0xae)](/[<>:"/\\|?*\u0000-\u001F]/g,'-')['replace'](/\s+/g,'-')['replace'](/-+/g,'-')['replace'](/^\.+/,'')['replace'](/\.+$/,'')[_0x4de829(0xae)](/^-+/,'')['replace'](/-+$/,'');return _0x32c135||_0x318730;}export function buildDbDirectoryName(_0x4120f0,_0x27c1ad){const _0x19e3aa=a239_0xbe57;return sanitizeSqlPathSegment(_0x4120f0,_0x27c1ad!=null?_0x19e3aa(0xa4)+_0x27c1ad:_0x19e3aa(0xac));}function a239_0xbe57(_0x5d73d9,_0x297eea){_0x5d73d9=_0x5d73d9-0xa3;const _0x1900f5=a239_0x1900();let _0xbe5707=_0x1900f5[_0x5d73d9];return _0xbe5707;}export function buildSqlRelativePath(_0x18dd4d,_0x1dc86f,_0x32617b,_0x254655,_0x5f10f8){const _0x47ad8e=buildDbDirectoryName(_0x32617b,_0x5f10f8),_0x540cf6=sanitizeSqlPathSegment(_0x18dd4d,'unknown-sql'),_0x1cd0ec=sanitizeSqlPathSegment(_0x1dc86f,_0x540cf6);return _0x47ad8e+'/'+_0x540cf6+'_'+_0x1cd0ec+getSqlFileExtension(_0x254655);}
@@ -1 +1 @@
1
- const a240_0x365b4b=a240_0x508e;function a240_0x1644(){const _0x2b34fb=['Multiple\x20MyBatis\x20statement\x20wrappers\x20are\x20not\x20supported.','SQL\x20content\x20is\x20empty','INSERT','DELETE','DDL\x20statements\x20are\x20blocked\x20from\x20auto-save','\x20with\x20parameters:\x20','include','\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.','where','match','1760464XGhllN','join','Invalid\x20MyBatis\x20XML\x20tag.','UPDATE','error','outer','toLowerCase','length','Invalid\x20MyBatis\x20XML\x20closing\x20tag:\x20</','MyBatis\x20dynamic\x20tag\x20must\x20be\x20inside\x20the\x20statement\x20wrapper:\x20<','Invalid\x20XML\x20entity\x20reference.','from','slice','SELECT','trim','Unclosed\x20MyBatis\x20XML\x20tag:\x20<','MyBatis\x20dynamic\x20tag\x20names\x20must\x20be\x20lowercase:\x20<','^<\x5cs*(?:','set','&quot;','test','has','replace','&apos;','replaceAll','DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save','\x20query\x20targeting\x20','unknown\x20table(s)','Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.','tagName','otherwise','push','Unterminated\x20XML\x20comment.','property','matchAll','2229897IdwppD','11483899aubDdW','rawName',')\x5cb','startsWith','reason','6762246dEOVgT','select','MyBatis\x20<property>\x20must\x20be\x20a\x20self-closing\x20direct\x20child\x20of\x20<include>.','includes','WITH','split','choose','pop','sql','<![CDATA[','parseInt','fromCodePoint','Unterminated\x20MyBatis\x20XML\x20tag.','exec',']]>','type','-->','Unsupported\x20MyBatis\x20XML\x20tag:\x20<','bind','UNKNOWN','3169630LgPyOU','CDATA\x20sections\x20must\x20be\x20inside\x20the\x20MyBatis\x20statement\x20wrapper.','when','&lt;','statementType','XML\x20declarations\x20must\x20precede\x20the\x20MyBatis\x20statement\x20wrapper.','indexOf','SQL\x20contains\x20blocked\x20DELETE\x20or\x20DDL\x20statements','SQL\x20text\x20must\x20be\x20inside\x20the\x20MyBatis\x20statement\x20wrapper.','delete','Unable\x20to\x20detect\x20SQL\x20type.\x20','1393852wBaIVQ','772281kiZCCS','string','__RABETBASE_MYBATIS_DYNAMIC_START__','add','keys','<!--','isDangerous'];a240_0x1644=function(){return _0x2b34fb;};return a240_0x1644();}(function(_0x32ff68,_0x3bc611){const _0x2dd454=a240_0x508e,_0x4ca39b=_0x32ff68();while(!![]){try{const _0x267ddc=-parseInt(_0x2dd454(0x1bb))/0x1+-parseInt(_0x2dd454(0x1cc))/0x2+parseInt(_0x2dd454(0x195))/0x3+parseInt(_0x2dd454(0x1ba))/0x4+parseInt(_0x2dd454(0x1af))/0x5+-parseInt(_0x2dd454(0x19b))/0x6+parseInt(_0x2dd454(0x196))/0x7;if(_0x267ddc===_0x3bc611)break;else _0x4ca39b['push'](_0x4ca39b['shift']());}catch(_0x478f42){_0x4ca39b['push'](_0x4ca39b['shift']());}}}(a240_0x1644,0x8f3c3));const MYBATIS_OUTER_TAGS=new Map([[a240_0x365b4b(0x19c),'SELECT'],['insert',a240_0x365b4b(0x1c4)],['update',a240_0x365b4b(0x1cf)],[a240_0x365b4b(0x1b8),a240_0x365b4b(0x1c5)]]),MYBATIS_DYNAMIC_TAGS=new Set(['if',a240_0x365b4b(0x1ca),'foreach',a240_0x365b4b(0x1a1),a240_0x365b4b(0x1b1),'otherwise',a240_0x365b4b(0x1da),a240_0x365b4b(0x184),a240_0x365b4b(0x1ad),a240_0x365b4b(0x1c8),a240_0x365b4b(0x193)]),MYBATIS_BRANCH_TAGS=new Set(['if','foreach',a240_0x365b4b(0x1a1),a240_0x365b4b(0x1b1),a240_0x365b4b(0x190)]);export const MYBATIS_DYNAMIC_START_MARKER=a240_0x365b4b(0x1bd);export const MYBATIS_DYNAMIC_END_MARKER='__RABETBASE_MYBATIS_DYNAMIC_END__';export const MYBATIS_INCLUDE_MARKER='__RABETBASE_MYBATIS_INCLUDE_UNRESOLVED__';const UNRESOLVED_SQL_FRAGMENT='__RABETBASE_UNRESOLVED_SQL_FRAGMENT__',MYBATIS_OUTER_TAG_PATTERN=new RegExp(a240_0x365b4b(0x183)+[...MYBATIS_OUTER_TAGS[a240_0x365b4b(0x1bf)]()]['join']('|')+a240_0x365b4b(0x198),'i');export function normalizeSqlForStaticAnalysis(_0x4718a4){const _0x4ff39a=a240_0x365b4b,_0x5cf917=typeof _0x4718a4===_0x4ff39a(0x1bc)?_0x4718a4:'';if(!startsWithMybatisStatementWrapper(_0x5cf917))return{'sql':_0x5cf917,'mode':_0x4ff39a(0x1a3)};let _0x5f7ae1=0x0,_0x118ccc='',_0xd746a1,_0x2873d7=![],_0x122ea2=![];const _0x5c14f7=[];while(_0x5f7ae1<_0x5cf917[_0x4ff39a(0x1d3)]){if(_0x5cf917[_0x4ff39a(0x199)](_0x4ff39a(0x1c0),_0x5f7ae1)){const _0x4cfd8b=_0x5cf917['indexOf'](_0x4ff39a(0x1ab),_0x5f7ae1+0x4);if(_0x4cfd8b<0x0)return invalidMybatisSource(_0x4ff39a(0x192));_0x118ccc+='\x20',_0x5f7ae1=_0x4cfd8b+0x3;continue;}if(_0x5cf917['startsWith'](_0x4ff39a(0x1a4),_0x5f7ae1)){if(!_0x2873d7||_0x122ea2)return invalidMybatisSource(_0x4ff39a(0x1b0));const _0x4f4c52=_0x5cf917[_0x4ff39a(0x1b5)](_0x4ff39a(0x1a9),_0x5f7ae1+0x9);if(_0x4f4c52<0x0)return invalidMybatisSource('Unterminated\x20CDATA\x20section.');_0x118ccc+=_0x5cf917['slice'](_0x5f7ae1+0x9,_0x4f4c52),_0x5f7ae1=_0x4f4c52+0x3;continue;}if(_0x5cf917[_0x4ff39a(0x199)]('<?',_0x5f7ae1)){if(_0x2873d7)return invalidMybatisSource(_0x4ff39a(0x1b4));const _0x36988c=_0x5cf917[_0x4ff39a(0x1b5)]('?>',_0x5f7ae1+0x2);if(_0x36988c<0x0)return invalidMybatisSource('Unterminated\x20XML\x20declaration.');_0x118ccc+='\x20',_0x5f7ae1=_0x36988c+0x2;continue;}if(_0x5cf917[_0x5f7ae1]!=='<'){const _0x5b2a7e=_0x5cf917[_0x4ff39a(0x1b5)]('<',_0x5f7ae1),_0x5ae2c8=_0x5b2a7e<0x0?_0x5cf917['length']:_0x5b2a7e,_0x68a6de=_0x5cf917[_0x4ff39a(0x1d8)](_0x5f7ae1,_0x5ae2c8);if((!_0x2873d7||_0x122ea2)&&_0x68a6de['trim']())return invalidMybatisSource(_0x4ff39a(0x1b7));if(_0x2873d7&&!_0x122ea2){const _0x5d3da7=decodeXmlEntities(_0x68a6de);if(_0x5d3da7===null)return invalidMybatisSource(_0x4ff39a(0x1d6));_0x118ccc+=_0x5d3da7;}else _0x118ccc+='\x20';_0x5f7ae1=_0x5ae2c8;continue;}const _0x2f1181=findXmlTagEnd(_0x5cf917,_0x5f7ae1);if(_0x2f1181<0x0)return invalidMybatisSource(_0x4ff39a(0x1a7));const _0x4f8014=_0x5cf917['slice'](_0x5f7ae1,_0x2f1181+0x1),_0x39134c=/^<\s*(\/?)\s*([A-Za-z][\w:-]*)([\s\S]*?)(\/?)\s*>$/[_0x4ff39a(0x1a8)](_0x4f8014);if(!_0x39134c)return invalidMybatisSource(_0x4ff39a(0x1ce));const _0x2adff6=_0x39134c[0x1]==='/',_0x585c11=_0x39134c[0x2]??'',_0x112ea5=_0x585c11[_0x4ff39a(0x1d2)](),_0xa52901=_0x39134c[0x3]??'',_0x59ffd6=_0x39134c[0x4]==='/',_0x3362f8=MYBATIS_OUTER_TAGS['get'](_0x112ea5);if(!_0x3362f8&&!MYBATIS_DYNAMIC_TAGS['has'](_0x112ea5))return invalidMybatisSource(_0x4ff39a(0x1ac)+_0x112ea5+'>.');if(!_0x3362f8&&_0x585c11!==_0x112ea5)return invalidMybatisSource(_0x4ff39a(0x1dc)+_0x585c11+'>.');if(_0x2adff6){if(_0xa52901[_0x4ff39a(0x1da)]()||_0x59ffd6)return invalidMybatisSource(_0x4ff39a(0x1d4)+_0x585c11+'>.');const _0x20035e=_0x5c14f7['at'](-0x1);if(!_0x20035e||(_0x20035e[_0x4ff39a(0x1d1)]?_0x20035e['tagName']!==_0x112ea5:_0x20035e[_0x4ff39a(0x197)]!==_0x585c11))return invalidMybatisSource('Mismatched\x20MyBatis\x20XML\x20closing\x20tag:\x20</'+_0x585c11+'>.');_0x5c14f7[_0x4ff39a(0x1a2)]();if(_0x20035e[_0x4ff39a(0x1d1)])_0x122ea2=!![];_0x118ccc+=MYBATIS_BRANCH_TAGS[_0x4ff39a(0x187)](_0x112ea5)?'\x20'+MYBATIS_DYNAMIC_END_MARKER+'\x20':'\x20';}else{if(!hasWellFormedXmlAttributes(_0xa52901))return invalidMybatisSource('Invalid\x20attributes\x20on\x20MyBatis\x20XML\x20tag:\x20<'+_0x585c11+'>.');if(_0x112ea5===_0x4ff39a(0x193)&&(!_0x59ffd6||_0x5c14f7['at'](-0x1)?.[_0x4ff39a(0x18f)]!==_0x4ff39a(0x1c8)))return invalidMybatisSource(_0x4ff39a(0x19d));if(_0x3362f8){if(_0x2873d7||_0x5c14f7[_0x4ff39a(0x1d3)]>0x0)return invalidMybatisSource(_0x4ff39a(0x1c2));_0x2873d7=!![],_0x122ea2=_0x59ffd6,_0xd746a1=_0x3362f8;}else{if(!_0x2873d7||_0x122ea2)return invalidMybatisSource(_0x4ff39a(0x1d5)+_0x585c11+'>.');}_0x118ccc+=_0x112ea5==='where'?'\x20WHERE\x20':_0x112ea5===_0x4ff39a(0x184)?'\x20SET\x20':_0x112ea5===_0x4ff39a(0x1c8)?'\x20'+MYBATIS_INCLUDE_MARKER+'\x20':MYBATIS_BRANCH_TAGS[_0x4ff39a(0x187)](_0x112ea5)&&!_0x59ffd6?'\x20'+MYBATIS_DYNAMIC_START_MARKER+'\x20':'\x20',!_0x59ffd6&&_0x5c14f7['push']({'rawName':_0x585c11,'tagName':_0x112ea5,'outer':!!_0x3362f8});}_0x5f7ae1=_0x2f1181+0x1;}if(_0x5c14f7[_0x4ff39a(0x1d3)]>0x0)return invalidMybatisSource(_0x4ff39a(0x1db)+_0x5c14f7['at'](-0x1)?.[_0x4ff39a(0x197)]+'>.');if(!_0x2873d7||!_0x122ea2)return invalidMybatisSource('MyBatis\x20XML\x20must\x20contain\x20exactly\x20one\x20complete\x20statement\x20wrapper.');return{'sql':_0x118ccc['trim'](),'mode':'mybatisXml',..._0xd746a1?{'statementType':_0xd746a1}:{}};}function hasWellFormedXmlAttributes(_0x6f2761){const _0x431cc3=a240_0x365b4b;let _0x26f5d4=0x0;const _0x45d66f=new Set();while(_0x26f5d4<_0x6f2761[_0x431cc3(0x1d3)]){while(_0x26f5d4<_0x6f2761[_0x431cc3(0x1d3)]&&/\s/['test'](_0x6f2761[_0x26f5d4]??''))_0x26f5d4+=0x1;if(_0x26f5d4>=_0x6f2761['length'])return!![];const _0x4d52c1=/^[A-Za-z_:][\w:.-]*/[_0x431cc3(0x1a8)](_0x6f2761['slice'](_0x26f5d4)),_0x25b0fe=_0x4d52c1?.[0x0];if(!_0x25b0fe||_0x45d66f[_0x431cc3(0x187)](_0x25b0fe))return![];_0x45d66f['add'](_0x25b0fe),_0x26f5d4+=_0x25b0fe['length'];while(_0x26f5d4<_0x6f2761[_0x431cc3(0x1d3)]&&/\s/[_0x431cc3(0x186)](_0x6f2761[_0x26f5d4]??''))_0x26f5d4+=0x1;if(_0x6f2761[_0x26f5d4]!=='=')return![];_0x26f5d4+=0x1;while(_0x26f5d4<_0x6f2761[_0x431cc3(0x1d3)]&&/\s/['test'](_0x6f2761[_0x26f5d4]??''))_0x26f5d4+=0x1;const _0x392477=_0x6f2761[_0x26f5d4];if(_0x392477!=='\x22'&&_0x392477!=='\x27')return![];_0x26f5d4+=0x1;const _0x28b13d=_0x6f2761['indexOf'](_0x392477,_0x26f5d4);if(_0x28b13d<0x0)return![];if(decodeXmlEntities(_0x6f2761['slice'](_0x26f5d4,_0x28b13d))===null)return![];_0x26f5d4=_0x28b13d+0x1;}return!![];}function startsWithMybatisStatementWrapper(_0x35b596){const _0x402b5e=a240_0x365b4b;let _0x2b1837=0x0;const _0x531aa8=()=>{const _0xf5c620=a240_0x508e;while(_0x2b1837<_0x35b596[_0xf5c620(0x1d3)]&&/\s/[_0xf5c620(0x186)](_0x35b596[_0x2b1837]??''))_0x2b1837+=0x1;};_0x531aa8();while(_0x2b1837<_0x35b596[_0x402b5e(0x1d3)]){if(_0x35b596[_0x402b5e(0x199)](_0x402b5e(0x1c0),_0x2b1837)){const _0x267666=_0x35b596[_0x402b5e(0x1b5)](_0x402b5e(0x1ab),_0x2b1837+0x4);if(_0x267666<0x0)return!![];_0x2b1837=_0x267666+0x3,_0x531aa8();continue;}if(_0x35b596[_0x402b5e(0x199)]('<?',_0x2b1837)){const _0x39aa62=_0x35b596['indexOf']('?>',_0x2b1837+0x2);if(_0x39aa62<0x0)return!![];_0x2b1837=_0x39aa62+0x2,_0x531aa8();continue;}break;}return MYBATIS_OUTER_TAG_PATTERN[_0x402b5e(0x186)](_0x35b596[_0x402b5e(0x1d8)](_0x2b1837));}function invalidMybatisSource(_0x3a38ab){return{'sql':'','mode':'mybatisXml','error':_0x3a38ab};}function findXmlTagEnd(_0x41ce29,_0x486a58){const _0x5eeb02=a240_0x365b4b;let _0x5efe40;for(let _0x19ccc3=_0x486a58+0x1;_0x19ccc3<_0x41ce29[_0x5eeb02(0x1d3)];_0x19ccc3+=0x1){const _0x16126c=_0x41ce29[_0x19ccc3];if(_0x5efe40){if(_0x16126c===_0x5efe40)_0x5efe40=undefined;continue;}if(_0x16126c==='\x22'||_0x16126c==='\x27'){_0x5efe40=_0x16126c;continue;}if(_0x16126c==='>')return _0x19ccc3;}return-0x1;}function decodeXmlEntities(_0x74cde){let _0xfeb2f1=![];const _0x2c2c60=_0x74cde['replace'](/&(?:#x[0-9a-f]+;|#[0-9]+;|[A-Za-z_:][\w:.-]*;)?/g,_0x5168f6=>{const _0x3aa7a1=a240_0x508e;if(_0x5168f6===_0x3aa7a1(0x1b2))return'<';if(_0x5168f6==='&gt;')return'>';if(_0x5168f6===_0x3aa7a1(0x185))return'\x22';if(_0x5168f6===_0x3aa7a1(0x189))return'\x27';if(_0x5168f6==='&amp;')return'&';const _0x4318cc=/^&#(?:x([0-9a-f]+)|([0-9]+));$/[_0x3aa7a1(0x1a8)](_0x5168f6);if(_0x4318cc){const _0x104964=_0x4318cc[0x1],_0x5158b3=_0x4318cc[0x2],_0x407286=Number[_0x3aa7a1(0x1a5)](_0x104964??_0x5158b3??'',_0x104964?0x10:0xa);if(isValidXmlCharacter(_0x407286))return String[_0x3aa7a1(0x1a6)](_0x407286);}return _0xfeb2f1=!![],'';});return _0xfeb2f1?null:_0x2c2c60;}function isValidXmlCharacter(_0x979c61){return _0x979c61===0x9||_0x979c61===0xa||_0x979c61===0xd||_0x979c61>=0x20&&_0x979c61<=0xd7ff||_0x979c61>=0xe000&&_0x979c61<=0xfffd||_0x979c61>=0x10000&&_0x979c61<=0x10ffff;}function a240_0x508e(_0x36e960,_0x44e6a0){_0x36e960=_0x36e960-0x183;const _0x1644ae=a240_0x1644();let _0x508e90=_0x1644ae[_0x36e960];return _0x508e90;}export function detectSqlType(_0x372572){return detectNormalizedSqlType(normalizeSqlForStaticAnalysis(_0x372572));}function detectNormalizedSqlType(_0xe02c3b){const _0x202f8b=a240_0x365b4b;if(_0xe02c3b[_0x202f8b(0x1d0)])return{'type':_0x202f8b(0x1ae),'isSelectOnly':![],'isDangerous':![],'reason':_0xe02c3b[_0x202f8b(0x1d0)]};if(!_0xe02c3b[_0x202f8b(0x1a3)][_0x202f8b(0x1da)]())return{'type':_0x202f8b(0x1ae),'isSelectOnly':![],'isDangerous':![],'reason':_0x202f8b(0x1c3)};const _0xcb3db3=stripStaticAnalysisMarkers(_0xe02c3b[_0x202f8b(0x1a3)])['replace'](/#\{[^}]*\}/g,'?')['replace'](/\$\{[^}]*\}/g,'?')[_0x202f8b(0x188)](/@[^(\s]+(\([^)]*\))?/g,'')[_0x202f8b(0x188)](/\/\*[\s\S]*?\*\//g,'')[_0x202f8b(0x1da)](),_0x4b1ebb=_0xcb3db3[_0x202f8b(0x1a0)]('\x0a');let _0x5aeae4='';for(const _0xbae638 of _0x4b1ebb){const _0x3b7d9c=_0xbae638[_0x202f8b(0x1da)]();if(!_0x3b7d9c||_0x3b7d9c[_0x202f8b(0x199)]('--')||_0x3b7d9c[_0x202f8b(0x199)]('/*'))continue;_0x5aeae4=_0x3b7d9c;break;}const _0x4713a8=_0x5aeae4['toUpperCase'](),_0x116bbd=_0xe02c3b[_0x202f8b(0x1b3)],_0x5c9691=maskSqlTextForBlockedKeywordScan(_0xcb3db3),_0x2e7ae2=/\b(DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x202f8b(0x186)](_0x5c9691);if(_0x116bbd===_0x202f8b(0x1d9)||!_0x116bbd&&(_0x4713a8[_0x202f8b(0x199)](_0x202f8b(0x1d9))||_0x4713a8[_0x202f8b(0x199)](_0x202f8b(0x19f)))){const _0x32ce65=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x202f8b(0x186)](_0xcb3db3);return{'type':'SELECT','isSelectOnly':!_0x32ce65,'isDangerous':_0x32ce65,'reason':_0x32ce65?'SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT':undefined};}if(_0x116bbd===_0x202f8b(0x1c4)||!_0x116bbd&&_0x4713a8[_0x202f8b(0x199)]('INSERT'))return{'type':_0x202f8b(0x1c4),'isSelectOnly':![],'isDangerous':_0x2e7ae2,'reason':_0x2e7ae2?_0x202f8b(0x1b6):undefined};if(_0x116bbd===_0x202f8b(0x1cf)||!_0x116bbd&&_0x4713a8['startsWith']('UPDATE'))return{'type':_0x202f8b(0x1cf),'isSelectOnly':![],'isDangerous':_0x2e7ae2,'reason':_0x2e7ae2?_0x202f8b(0x1b6):undefined};if(_0x116bbd===_0x202f8b(0x1c5)||!_0x116bbd&&_0x4713a8['startsWith'](_0x202f8b(0x1c5)))return{'type':_0x202f8b(0x1c5),'isSelectOnly':![],'isDangerous':!![],'reason':_0x202f8b(0x18b)};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i[_0x202f8b(0x186)](_0x4713a8))return{'type':'DDL','isSelectOnly':![],'isDangerous':!![],'reason':_0x202f8b(0x1c6)};return{'type':'UNKNOWN','isSelectOnly':![],'isDangerous':![]};}function stripStaticAnalysisMarkers(_0x3d7f3d){const _0x545ba4=a240_0x365b4b;return _0x3d7f3d[_0x545ba4(0x18a)](MYBATIS_DYNAMIC_START_MARKER,'\x20')['replaceAll'](MYBATIS_DYNAMIC_END_MARKER,'\x20')['replaceAll'](MYBATIS_INCLUDE_MARKER,'\x20'+UNRESOLVED_SQL_FRAGMENT+'\x20');}function maskSqlTextForBlockedKeywordScan(_0x3132ad){const _0x5bdc6a=a240_0x365b4b;return _0x3132ad[_0x5bdc6a(0x188)](/'(?:''|\\.|[^'])*'/g,'\x20')[_0x5bdc6a(0x188)](/"(?:""|\\.|[^"])*"/g,'\x20')['replace'](/`(?:``|\\.|[^`])*`/g,'\x20')['replace'](/--.*$/gm,'\x20')[_0x5bdc6a(0x188)](/#.*$/gm,'\x20')[_0x5bdc6a(0x188)](/\/\*[\s\S]*?\*\//g,'\x20');}function extractTables(_0x28b119){const _0x5171b8=a240_0x365b4b,_0x155426=_0x28b119[_0x5171b8(0x188)](/#\{[^}]*\}/g,'?')[_0x5171b8(0x188)](/\$\{[^}]*\}/g,'?')[_0x5171b8(0x188)](/'[^']*'/g,'\x27\x27')['replace'](/--.*$/gm,'')[_0x5171b8(0x188)](/\/\*[\s\S]*?\*\//g,''),_0x1cf452=[],_0x436cef=_0x155426[_0x5171b8(0x1cb)](/FROM\s+([^\s,)(]+)/i);addTable(_0x1cf452,_0x436cef?.[0x1]);for(const _0xfb2208 of _0x155426[_0x5171b8(0x194)](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){addTable(_0x1cf452,_0xfb2208[0x1]);}const _0x44f407=_0x155426[_0x5171b8(0x1cb)](/INTO\s+([^\s(]+)/i);addTable(_0x1cf452,_0x44f407?.[0x1]);const _0x1d6661=_0x155426[_0x5171b8(0x1cb)](/UPDATE\s+([^\s,)(]+)/i);return addTable(_0x1cf452,_0x1d6661?.[0x1]),_0x1cf452;}function addTable(_0x5b8e9e,_0xcbb81b){const _0x2c8a08=a240_0x365b4b,_0x48045d=_0xcbb81b?.[_0x2c8a08(0x188)](/[`"]/g,'');_0x48045d&&_0x48045d!==UNRESOLVED_SQL_FRAGMENT&&!_0x5b8e9e[_0x2c8a08(0x19e)](_0x48045d)&&_0x5b8e9e[_0x2c8a08(0x191)](_0x48045d);}function extractParameters(_0x1df204){const _0xd8919c=a240_0x365b4b,_0x56dc1e=new Set();for(const _0x250b83 of _0x1df204[_0xd8919c(0x194)](/[#$]\{\s*([A-Za-z_][\w.]*)\s*(?=[,}])/g)){if(_0x250b83[0x1])_0x56dc1e[_0xd8919c(0x1be)](_0x250b83[0x1]);}return Array[_0xd8919c(0x1d7)](_0x56dc1e);}export function validateSql(_0x568fd0){const _0x3787a7=a240_0x365b4b,_0x3fe8ae=normalizeSqlForStaticAnalysis(_0x568fd0),_0x568e01=detectNormalizedSqlType(_0x3fe8ae),_0x43db8a=stripStaticAnalysisMarkers(_0x3fe8ae[_0x3787a7(0x1a3)]),_0x3435bf=_0x3fe8ae[_0x3787a7(0x1d0)]?[]:extractTables(_0x43db8a),_0x5d76f2=_0x3fe8ae[_0x3787a7(0x1d0)]?[]:extractParameters(_0x43db8a);if(_0x568e01[_0x3787a7(0x1c1)])return{'valid':![],'sqlType':_0x568e01,'tables':_0x3435bf,'parameters':_0x5d76f2,'message':_0x568e01[_0x3787a7(0x19a)]||_0x568e01[_0x3787a7(0x1aa)]+_0x3787a7(0x1c9)};if(_0x568e01['type']==='UNKNOWN')return{'valid':![],'sqlType':_0x568e01,'tables':_0x3435bf,'parameters':_0x5d76f2,'message':_0x3fe8ae[_0x3787a7(0x1d0)]?_0x3787a7(0x1b9)+_0x3fe8ae[_0x3787a7(0x1d0)]:_0x3787a7(0x18e)};return{'valid':!![],'sqlType':_0x568e01,'tables':_0x3435bf,'parameters':_0x5d76f2,'message':_0x568e01[_0x3787a7(0x1aa)]+_0x3787a7(0x18c)+(_0x3435bf[_0x3787a7(0x1d3)]?_0x3435bf['join'](',\x20'):_0x3787a7(0x18d))+(_0x5d76f2['length']?_0x3787a7(0x1c7)+_0x5d76f2[_0x3787a7(0x1cd)](',\x20'):'')};}
1
+ const a240_0x628c94=a240_0xf210;(function(_0x409651,_0x512f17){const _0xfb687d=a240_0xf210,_0x2352e4=_0x409651();while(!![]){try{const _0x5741d7=parseInt(_0xfb687d(0xd8))/0x1*(parseInt(_0xfb687d(0xd7))/0x2)+parseInt(_0xfb687d(0xf4))/0x3*(-parseInt(_0xfb687d(0x117))/0x4)+parseInt(_0xfb687d(0xe4))/0x5+parseInt(_0xfb687d(0xf0))/0x6*(parseInt(_0xfb687d(0x107))/0x7)+parseInt(_0xfb687d(0x10f))/0x8*(parseInt(_0xfb687d(0xd0))/0x9)+parseInt(_0xfb687d(0xce))/0xa+-parseInt(_0xfb687d(0x104))/0xb;if(_0x5741d7===_0x512f17)break;else _0x2352e4['push'](_0x2352e4['shift']());}catch(_0x355b10){_0x2352e4['push'](_0x2352e4['shift']());}}}(a240_0x1180,0xc9370));const MYBATIS_OUTER_TAGS=new Map([[a240_0x628c94(0xee),a240_0x628c94(0xef)],[a240_0x628c94(0xc5),'INSERT'],[a240_0x628c94(0x111),a240_0x628c94(0xdb)],[a240_0x628c94(0xcf),a240_0x628c94(0xf8)]]),MYBATIS_DYNAMIC_TAGS=new Set(['if',a240_0x628c94(0xf7),'foreach',a240_0x628c94(0xc4),a240_0x628c94(0xcb),'otherwise',a240_0x628c94(0x116),a240_0x628c94(0x10e),a240_0x628c94(0xd6),a240_0x628c94(0xcd),a240_0x628c94(0xe5)]),MYBATIS_BRANCH_TAGS=new Set(['if',a240_0x628c94(0xda),a240_0x628c94(0xc4),'when',a240_0x628c94(0xea)]);export const MYBATIS_DYNAMIC_START_MARKER='__RABETBASE_MYBATIS_DYNAMIC_START__';export const MYBATIS_DYNAMIC_END_MARKER=a240_0x628c94(0xf2);export const MYBATIS_INCLUDE_MARKER=a240_0x628c94(0xde);const UNRESOLVED_SQL_FRAGMENT='__RABETBASE_UNRESOLVED_SQL_FRAGMENT__',MYBATIS_OUTER_TAG_PATTERN=new RegExp(a240_0x628c94(0xfe)+[...MYBATIS_OUTER_TAGS['keys']()][a240_0x628c94(0xe1)]('|')+')\x5cb','i');export function normalizeSqlForStaticAnalysis(_0x22078e){const _0x48cef5=a240_0x628c94,_0x2c0881=typeof _0x22078e===_0x48cef5(0xeb)?_0x22078e:'';if(!startsWithMybatisStatementWrapper(_0x2c0881))return{'sql':_0x2c0881,'mode':_0x48cef5(0xfb)};let _0x1414e7=0x0,_0x3b44db='',_0x1da906,_0x5eba00=![],_0xed8e=![];const _0x121ec2=[];while(_0x1414e7<_0x2c0881[_0x48cef5(0xe7)]){if(_0x2c0881['startsWith'](_0x48cef5(0xe2),_0x1414e7)){const _0x39f8b0=_0x2c0881[_0x48cef5(0xc9)](_0x48cef5(0xd4),_0x1414e7+0x4);if(_0x39f8b0<0x0)return invalidMybatisSource(_0x48cef5(0xf3));_0x3b44db+='\x20',_0x1414e7=_0x39f8b0+0x3;continue;}if(_0x2c0881[_0x48cef5(0xf9)](_0x48cef5(0xed),_0x1414e7)){if(!_0x5eba00||_0xed8e)return invalidMybatisSource(_0x48cef5(0xd5));const _0x5d4842=_0x2c0881[_0x48cef5(0xc9)](']]>',_0x1414e7+0x9);if(_0x5d4842<0x0)return invalidMybatisSource(_0x48cef5(0x112));_0x3b44db+=_0x2c0881[_0x48cef5(0xfa)](_0x1414e7+0x9,_0x5d4842),_0x1414e7=_0x5d4842+0x3;continue;}if(_0x2c0881[_0x48cef5(0xf9)]('<?',_0x1414e7)){if(_0x5eba00)return invalidMybatisSource(_0x48cef5(0xd2));const _0x288d8d=_0x2c0881[_0x48cef5(0xc9)]('?>',_0x1414e7+0x2);if(_0x288d8d<0x0)return invalidMybatisSource(_0x48cef5(0xfd));_0x3b44db+='\x20',_0x1414e7=_0x288d8d+0x2;continue;}if(_0x2c0881[_0x1414e7]!=='<'){const _0x138e9a=_0x2c0881['indexOf']('<',_0x1414e7),_0x3f448a=_0x138e9a<0x0?_0x2c0881[_0x48cef5(0xe7)]:_0x138e9a,_0x1c087d=_0x2c0881[_0x48cef5(0xfa)](_0x1414e7,_0x3f448a);if((!_0x5eba00||_0xed8e)&&_0x1c087d[_0x48cef5(0x116)]())return invalidMybatisSource('SQL\x20text\x20must\x20be\x20inside\x20the\x20MyBatis\x20statement\x20wrapper.');if(_0x5eba00&&!_0xed8e){const _0x2cea83=decodeXmlEntities(_0x1c087d);if(_0x2cea83===null)return invalidMybatisSource(_0x48cef5(0xf6));_0x3b44db+=_0x2cea83;}else _0x3b44db+='\x20';_0x1414e7=_0x3f448a;continue;}const _0x235f7f=findXmlTagEnd(_0x2c0881,_0x1414e7);if(_0x235f7f<0x0)return invalidMybatisSource(_0x48cef5(0xd9));const _0x196dd9=_0x2c0881['slice'](_0x1414e7,_0x235f7f+0x1),_0x288b3c=/^<\s*(\/?)\s*([A-Za-z][\w:-]*)([\s\S]*?)(\/?)\s*>$/[_0x48cef5(0xc2)](_0x196dd9);if(!_0x288b3c)return invalidMybatisSource(_0x48cef5(0xca));const _0x3423ea=_0x288b3c[0x1]==='/',_0x4a9c88=_0x288b3c[0x2]??'',_0x5809ad=_0x4a9c88['toLowerCase'](),_0x4ee9b1=_0x288b3c[0x3]??'',_0x5421e7=_0x288b3c[0x4]==='/',_0x54dad6=MYBATIS_OUTER_TAGS[_0x48cef5(0x119)](_0x5809ad);if(!_0x54dad6&&!MYBATIS_DYNAMIC_TAGS[_0x48cef5(0xfc)](_0x5809ad))return invalidMybatisSource('Unsupported\x20MyBatis\x20XML\x20tag:\x20<'+_0x5809ad+'>.');if(!_0x54dad6&&_0x4a9c88!==_0x5809ad)return invalidMybatisSource('MyBatis\x20dynamic\x20tag\x20names\x20must\x20be\x20lowercase:\x20<'+_0x4a9c88+'>.');if(_0x3423ea){if(_0x4ee9b1[_0x48cef5(0x116)]()||_0x5421e7)return invalidMybatisSource(_0x48cef5(0xff)+_0x4a9c88+'>.');const _0x1e7ff3=_0x121ec2['at'](-0x1);if(!_0x1e7ff3||(_0x1e7ff3[_0x48cef5(0xc7)]?_0x1e7ff3[_0x48cef5(0x105)]!==_0x5809ad:_0x1e7ff3[_0x48cef5(0xf5)]!==_0x4a9c88))return invalidMybatisSource('Mismatched\x20MyBatis\x20XML\x20closing\x20tag:\x20</'+_0x4a9c88+'>.');_0x121ec2[_0x48cef5(0x106)]();if(_0x1e7ff3[_0x48cef5(0xc7)])_0xed8e=!![];_0x3b44db+=MYBATIS_BRANCH_TAGS[_0x48cef5(0xfc)](_0x5809ad)?'\x20'+MYBATIS_DYNAMIC_END_MARKER+'\x20':'\x20';}else{if(!hasWellFormedXmlAttributes(_0x4ee9b1))return invalidMybatisSource(_0x48cef5(0xdc)+_0x4a9c88+'>.');if(_0x5809ad===_0x48cef5(0xe5)&&(!_0x5421e7||_0x121ec2['at'](-0x1)?.[_0x48cef5(0x105)]!==_0x48cef5(0xcd)))return invalidMybatisSource(_0x48cef5(0xe3));if(_0x54dad6){if(_0x5eba00||_0x121ec2[_0x48cef5(0xe7)]>0x0)return invalidMybatisSource(_0x48cef5(0xd3));_0x5eba00=!![],_0xed8e=_0x5421e7,_0x1da906=_0x54dad6;}else{if(!_0x5eba00||_0xed8e)return invalidMybatisSource(_0x48cef5(0x115)+_0x4a9c88+'>.');}_0x3b44db+=_0x5809ad===_0x48cef5(0xf7)?_0x48cef5(0xc1):_0x5809ad===_0x48cef5(0x10e)?_0x48cef5(0xec):_0x5809ad===_0x48cef5(0xcd)?'\x20'+MYBATIS_INCLUDE_MARKER+'\x20':MYBATIS_BRANCH_TAGS['has'](_0x5809ad)&&!_0x5421e7?'\x20'+MYBATIS_DYNAMIC_START_MARKER+'\x20':'\x20',!_0x5421e7&&_0x121ec2[_0x48cef5(0x113)]({'rawName':_0x4a9c88,'tagName':_0x5809ad,'outer':!!_0x54dad6});}_0x1414e7=_0x235f7f+0x1;}if(_0x121ec2[_0x48cef5(0xe7)]>0x0)return invalidMybatisSource(_0x48cef5(0x11b)+_0x121ec2['at'](-0x1)?.['rawName']+'>.');if(!_0x5eba00||!_0xed8e)return invalidMybatisSource(_0x48cef5(0x100));return{'sql':_0x3b44db[_0x48cef5(0x116)](),'mode':_0x48cef5(0xe6),..._0x1da906?{'statementType':_0x1da906}:{}};}function hasWellFormedXmlAttributes(_0x6720e8){const _0x4d20c0=a240_0x628c94;let _0x2ad9bd=0x0;const _0x13b741=new Set();while(_0x2ad9bd<_0x6720e8[_0x4d20c0(0xe7)]){while(_0x2ad9bd<_0x6720e8['length']&&/\s/[_0x4d20c0(0xc6)](_0x6720e8[_0x2ad9bd]??''))_0x2ad9bd+=0x1;if(_0x2ad9bd>=_0x6720e8['length'])return!![];const _0xdf6026=/^[A-Za-z_:][\w:.-]*/['exec'](_0x6720e8['slice'](_0x2ad9bd)),_0x2452fa=_0xdf6026?.[0x0];if(!_0x2452fa||_0x13b741[_0x4d20c0(0xfc)](_0x2452fa))return![];_0x13b741[_0x4d20c0(0x103)](_0x2452fa),_0x2ad9bd+=_0x2452fa[_0x4d20c0(0xe7)];while(_0x2ad9bd<_0x6720e8[_0x4d20c0(0xe7)]&&/\s/[_0x4d20c0(0xc6)](_0x6720e8[_0x2ad9bd]??''))_0x2ad9bd+=0x1;if(_0x6720e8[_0x2ad9bd]!=='=')return![];_0x2ad9bd+=0x1;while(_0x2ad9bd<_0x6720e8[_0x4d20c0(0xe7)]&&/\s/[_0x4d20c0(0xc6)](_0x6720e8[_0x2ad9bd]??''))_0x2ad9bd+=0x1;const _0x7faad2=_0x6720e8[_0x2ad9bd];if(_0x7faad2!=='\x22'&&_0x7faad2!=='\x27')return![];_0x2ad9bd+=0x1;const _0x2bd805=_0x6720e8[_0x4d20c0(0xc9)](_0x7faad2,_0x2ad9bd);if(_0x2bd805<0x0)return![];if(decodeXmlEntities(_0x6720e8[_0x4d20c0(0xfa)](_0x2ad9bd,_0x2bd805))===null)return![];_0x2ad9bd=_0x2bd805+0x1;}return!![];}function startsWithMybatisStatementWrapper(_0x172213){const _0x2237ac=a240_0x628c94;let _0x456d89=0x0;const _0x2f3667=()=>{const _0x907355=a240_0xf210;while(_0x456d89<_0x172213[_0x907355(0xe7)]&&/\s/['test'](_0x172213[_0x456d89]??''))_0x456d89+=0x1;};_0x2f3667();while(_0x456d89<_0x172213[_0x2237ac(0xe7)]){if(_0x172213['startsWith'](_0x2237ac(0xe2),_0x456d89)){const _0x525a6a=_0x172213['indexOf'](_0x2237ac(0xd4),_0x456d89+0x4);if(_0x525a6a<0x0)return!![];_0x456d89=_0x525a6a+0x3,_0x2f3667();continue;}if(_0x172213[_0x2237ac(0xf9)]('<?',_0x456d89)){const _0x177a51=_0x172213['indexOf']('?>',_0x456d89+0x2);if(_0x177a51<0x0)return!![];_0x456d89=_0x177a51+0x2,_0x2f3667();continue;}break;}return MYBATIS_OUTER_TAG_PATTERN['test'](_0x172213[_0x2237ac(0xfa)](_0x456d89));}function invalidMybatisSource(_0x195716){const _0xf14200=a240_0x628c94;return{'sql':'','mode':_0xf14200(0xe6),'error':_0x195716};}function a240_0xf210(_0x1e499b,_0x2b71e7){_0x1e499b=_0x1e499b-0xc1;const _0x11801d=a240_0x1180();let _0xf21081=_0x11801d[_0x1e499b];return _0xf21081;}function findXmlTagEnd(_0x59d539,_0x4fac2f){const _0x122cec=a240_0x628c94;let _0xd585f4;for(let _0x5a8c63=_0x4fac2f+0x1;_0x5a8c63<_0x59d539[_0x122cec(0xe7)];_0x5a8c63+=0x1){const _0x360b02=_0x59d539[_0x5a8c63];if(_0xd585f4){if(_0x360b02===_0xd585f4)_0xd585f4=undefined;continue;}if(_0x360b02==='\x22'||_0x360b02==='\x27'){_0xd585f4=_0x360b02;continue;}if(_0x360b02==='>')return _0x5a8c63;}return-0x1;}function decodeXmlEntities(_0x445049){const _0x2956a1=a240_0x628c94;let _0x108486=![];const _0x110481=_0x445049[_0x2956a1(0xe8)](/&(?:#x[0-9a-f]+;|#[0-9]+;|[A-Za-z_:][\w:.-]*;)?/g,_0x5096cd=>{const _0x2a3669=_0x2956a1;if(_0x5096cd==='&lt;')return'<';if(_0x5096cd===_0x2a3669(0xc8))return'>';if(_0x5096cd==='&quot;')return'\x22';if(_0x5096cd==='&apos;')return'\x27';if(_0x5096cd===_0x2a3669(0xcc))return'&';const _0xd54740=/^&#(?:x([0-9a-f]+)|([0-9]+));$/[_0x2a3669(0xc2)](_0x5096cd);if(_0xd54740){const _0x22f543=_0xd54740[0x1],_0x2d33c7=_0xd54740[0x2],_0x2cf492=Number[_0x2a3669(0xdd)](_0x22f543??_0x2d33c7??'',_0x22f543?0x10:0xa);if(isValidXmlCharacter(_0x2cf492))return String[_0x2a3669(0x118)](_0x2cf492);}return _0x108486=!![],'';});return _0x108486?null:_0x110481;}function isValidXmlCharacter(_0xccd7c5){return _0xccd7c5===0x9||_0xccd7c5===0xa||_0xccd7c5===0xd||_0xccd7c5>=0x20&&_0xccd7c5<=0xd7ff||_0xccd7c5>=0xe000&&_0xccd7c5<=0xfffd||_0xccd7c5>=0x10000&&_0xccd7c5<=0x10ffff;}export function detectSqlType(_0x293331){return detectNormalizedSqlType(normalizeSqlForStaticAnalysis(_0x293331));}function a240_0x1180(){const _0x5e0724=['mybatisXml','length','replace','SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT','otherwise','string','\x20SET\x20','<![CDATA[','select','SELECT','18ErugYp','split','__RABETBASE_MYBATIS_DYNAMIC_END__','Unterminated\x20XML\x20comment.','12SHFEoK','rawName','Invalid\x20XML\x20entity\x20reference.','where','DELETE','startsWith','slice','sql','has','Unterminated\x20XML\x20declaration.','^<\x5cs*(?:','Invalid\x20MyBatis\x20XML\x20closing\x20tag:\x20</','MyBatis\x20XML\x20must\x20contain\x20exactly\x20one\x20complete\x20statement\x20wrapper.','\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.','Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.','add','31641071JJEqAT','tagName','pop','1966531CKCUwf','replaceAll','from','DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save','Unable\x20to\x20detect\x20SQL\x20type.\x20','includes','UNKNOWN','set','7688LjByCS','matchAll','update','Unterminated\x20CDATA\x20section.','push','SQL\x20contains\x20blocked\x20DELETE\x20or\x20DDL\x20statements','MyBatis\x20dynamic\x20tag\x20must\x20be\x20inside\x20the\x20statement\x20wrapper:\x20<','trim','290068AmLQFb','fromCodePoint','get','error','Unclosed\x20MyBatis\x20XML\x20tag:\x20<','type','\x20WHERE\x20','exec','DDL','choose','insert','test','outer','&gt;','indexOf','Invalid\x20MyBatis\x20XML\x20tag.','when','&amp;','include','2737960NESVlU','delete','12807ePRTTH','INSERT','XML\x20declarations\x20must\x20precede\x20the\x20MyBatis\x20statement\x20wrapper.','Multiple\x20MyBatis\x20statement\x20wrappers\x20are\x20not\x20supported.','-->','CDATA\x20sections\x20must\x20be\x20inside\x20the\x20MyBatis\x20statement\x20wrapper.','bind','2HgELOJ','1233227voDqnf','Unterminated\x20MyBatis\x20XML\x20tag.','foreach','UPDATE','Invalid\x20attributes\x20on\x20MyBatis\x20XML\x20tag:\x20<','parseInt','__RABETBASE_MYBATIS_INCLUDE_UNRESOLVED__','\x20query\x20targeting\x20','statementType','join','<!--','MyBatis\x20<property>\x20must\x20be\x20a\x20self-closing\x20direct\x20child\x20of\x20<include>.','1366900kOiWCG','property'];a240_0x1180=function(){return _0x5e0724;};return a240_0x1180();}function detectNormalizedSqlType(_0x1b576a){const _0x59343f=a240_0x628c94;if(_0x1b576a['error'])return{'type':'UNKNOWN','isSelectOnly':![],'isDangerous':![],'reason':_0x1b576a[_0x59343f(0x11a)]};if(!_0x1b576a[_0x59343f(0xfb)][_0x59343f(0x116)]())return{'type':_0x59343f(0x10d),'isSelectOnly':![],'isDangerous':![],'reason':'SQL\x20content\x20is\x20empty'};const _0x270201=stripStaticAnalysisMarkers(_0x1b576a[_0x59343f(0xfb)])[_0x59343f(0xe8)](/#\{[^}]*\}/g,'?')[_0x59343f(0xe8)](/\$\{[^}]*\}/g,'?')['replace'](/@[^(\s]+(\([^)]*\))?/g,'')[_0x59343f(0xe8)](/\/\*[\s\S]*?\*\//g,'')[_0x59343f(0x116)](),_0x1313e0=_0x270201[_0x59343f(0xf1)]('\x0a');let _0x33d6bc='';for(const _0xd126db of _0x1313e0){const _0x395cde=_0xd126db[_0x59343f(0x116)]();if(!_0x395cde||_0x395cde[_0x59343f(0xf9)]('--')||_0x395cde[_0x59343f(0xf9)]('/*'))continue;_0x33d6bc=_0x395cde;break;}const _0x5355bf=_0x33d6bc['toUpperCase'](),_0xe775d9=_0x1b576a[_0x59343f(0xe0)],_0x332e0e=maskSqlTextForBlockedKeywordScan(_0x270201),_0x5340a1=/\b(DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x59343f(0xc6)](_0x332e0e);if(_0xe775d9===_0x59343f(0xef)||!_0xe775d9&&(_0x5355bf['startsWith'](_0x59343f(0xef))||_0x5355bf[_0x59343f(0xf9)]('WITH'))){const _0x1651e6=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x59343f(0xc6)](_0x270201);return{'type':_0x59343f(0xef),'isSelectOnly':!_0x1651e6,'isDangerous':_0x1651e6,'reason':_0x1651e6?_0x59343f(0xe9):undefined};}if(_0xe775d9===_0x59343f(0xd1)||!_0xe775d9&&_0x5355bf[_0x59343f(0xf9)](_0x59343f(0xd1)))return{'type':'INSERT','isSelectOnly':![],'isDangerous':_0x5340a1,'reason':_0x5340a1?_0x59343f(0x114):undefined};if(_0xe775d9===_0x59343f(0xdb)||!_0xe775d9&&_0x5355bf[_0x59343f(0xf9)](_0x59343f(0xdb)))return{'type':_0x59343f(0xdb),'isSelectOnly':![],'isDangerous':_0x5340a1,'reason':_0x5340a1?_0x59343f(0x114):undefined};if(_0xe775d9===_0x59343f(0xf8)||!_0xe775d9&&_0x5355bf[_0x59343f(0xf9)](_0x59343f(0xf8)))return{'type':'DELETE','isSelectOnly':![],'isDangerous':!![],'reason':_0x59343f(0x10a)};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i[_0x59343f(0xc6)](_0x5355bf))return{'type':_0x59343f(0xc3),'isSelectOnly':![],'isDangerous':!![],'reason':'DDL\x20statements\x20are\x20blocked\x20from\x20auto-save'};return{'type':'UNKNOWN','isSelectOnly':![],'isDangerous':![]};}function stripStaticAnalysisMarkers(_0x4397e3){const _0x90e3b7=a240_0x628c94;return _0x4397e3[_0x90e3b7(0x108)](MYBATIS_DYNAMIC_START_MARKER,'\x20')[_0x90e3b7(0x108)](MYBATIS_DYNAMIC_END_MARKER,'\x20')[_0x90e3b7(0x108)](MYBATIS_INCLUDE_MARKER,'\x20'+UNRESOLVED_SQL_FRAGMENT+'\x20');}function maskSqlTextForBlockedKeywordScan(_0x52d939){const _0x443a10=a240_0x628c94;return _0x52d939[_0x443a10(0xe8)](/'(?:''|\\.|[^'])*'/g,'\x20')[_0x443a10(0xe8)](/"(?:""|\\.|[^"])*"/g,'\x20')[_0x443a10(0xe8)](/`(?:``|\\.|[^`])*`/g,'\x20')[_0x443a10(0xe8)](/--.*$/gm,'\x20')[_0x443a10(0xe8)](/#.*$/gm,'\x20')[_0x443a10(0xe8)](/\/\*[\s\S]*?\*\//g,'\x20');}function extractTables(_0x57d103){const _0x4a1e27=a240_0x628c94,_0x44708c=_0x57d103['replace'](/#\{[^}]*\}/g,'?')[_0x4a1e27(0xe8)](/\$\{[^}]*\}/g,'?')[_0x4a1e27(0xe8)](/'[^']*'/g,'\x27\x27')[_0x4a1e27(0xe8)](/--.*$/gm,'')[_0x4a1e27(0xe8)](/\/\*[\s\S]*?\*\//g,''),_0x118051=[],_0x579d35=_0x44708c['match'](/FROM\s+([^\s,)(]+)/i);addTable(_0x118051,_0x579d35?.[0x1]);for(const _0x3ab7c3 of _0x44708c[_0x4a1e27(0x110)](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){addTable(_0x118051,_0x3ab7c3[0x1]);}const _0x111593=_0x44708c['match'](/INTO\s+([^\s(]+)/i);addTable(_0x118051,_0x111593?.[0x1]);const _0x8b861f=_0x44708c['match'](/UPDATE\s+([^\s,)(]+)/i);return addTable(_0x118051,_0x8b861f?.[0x1]),_0x118051;}function addTable(_0x304150,_0x1e82a2){const _0x5c7e69=a240_0x628c94,_0x3471d8=_0x1e82a2?.[_0x5c7e69(0xe8)](/[`"]/g,'');_0x3471d8&&_0x3471d8!==UNRESOLVED_SQL_FRAGMENT&&!_0x304150[_0x5c7e69(0x10c)](_0x3471d8)&&_0x304150[_0x5c7e69(0x113)](_0x3471d8);}function extractParameters(_0x19fbc1){const _0x45ae7b=a240_0x628c94,_0x58e65f=new Set();for(const _0xf38caa of _0x19fbc1[_0x45ae7b(0x110)](/[#$]\{\s*([A-Za-z_][\w.]*)\s*(?=[,}])/g)){if(_0xf38caa[0x1])_0x58e65f[_0x45ae7b(0x103)](_0xf38caa[0x1]);}return Array[_0x45ae7b(0x109)](_0x58e65f);}export function validateSql(_0x47657b){const _0x4234d0=a240_0x628c94,_0x80528d=normalizeSqlForStaticAnalysis(_0x47657b),_0x194044=detectNormalizedSqlType(_0x80528d),_0x54fcf4=stripStaticAnalysisMarkers(_0x80528d[_0x4234d0(0xfb)]),_0x29ea1e=_0x80528d[_0x4234d0(0x11a)]?[]:extractTables(_0x54fcf4),_0x29d089=_0x80528d[_0x4234d0(0x11a)]?[]:extractParameters(_0x54fcf4);if(_0x194044['isDangerous'])return{'valid':![],'sqlType':_0x194044,'tables':_0x29ea1e,'parameters':_0x29d089,'message':_0x194044['reason']||_0x194044[_0x4234d0(0x11c)]+_0x4234d0(0x101)};if(_0x194044['type']===_0x4234d0(0x10d))return{'valid':![],'sqlType':_0x194044,'tables':_0x29ea1e,'parameters':_0x29d089,'message':_0x80528d[_0x4234d0(0x11a)]?_0x4234d0(0x10b)+_0x80528d[_0x4234d0(0x11a)]:_0x4234d0(0x102)};return{'valid':!![],'sqlType':_0x194044,'tables':_0x29ea1e,'parameters':_0x29d089,'message':_0x194044[_0x4234d0(0x11c)]+_0x4234d0(0xdf)+(_0x29ea1e['length']?_0x29ea1e['join'](',\x20'):'unknown\x20table(s)')+(_0x29d089['length']?'\x20with\x20parameters:\x20'+_0x29d089[_0x4234d0(0xe1)](',\x20'):'')};}
package/lib/errors.js CHANGED
@@ -1 +1 @@
1
- function a241_0x3f54(){const _0x35c312=['join','\x0a\x20\x20\x20\x20\x20\x20\x20','2449332WvyiuH','Set\x20appcode\x20via\x20`','7vrerWC','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','Run\x20`','2726286YKPJev','2944590VZGbNF','1179220rAKynz','Tip:\x20`','14530MUpOiY','20lSaQjh','\x20auth`\x20to\x20login\x20first.','590032yJTFhf','177YtANwM','\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.','750211VMhhzd','12yZWToO'];a241_0x3f54=function(){return _0x35c312;};return a241_0x3f54();}function a241_0x2ac1(_0x45a169,_0x49bd49){_0x45a169=_0x45a169-0xc6;const _0x3f549b=a241_0x3f54();let _0x2ac18d=_0x3f549b[_0x45a169];return _0x2ac18d;}const a241_0x42fc0e=a241_0x2ac1;(function(_0x2bc2c6,_0x44d148){const _0x1c2c34=a241_0x2ac1,_0x3c895c=_0x2bc2c6();while(!![]){try{const _0x31eb5a=parseInt(_0x1c2c34(0xd4))/0x1+parseInt(_0x1c2c34(0xce))/0x2*(-parseInt(_0x1c2c34(0xd2))/0x3)+-parseInt(_0x1c2c34(0xd5))/0x4*(-parseInt(_0x1c2c34(0xcc))/0x5)+parseInt(_0x1c2c34(0xca))/0x6*(-parseInt(_0x1c2c34(0xc7))/0x7)+parseInt(_0x1c2c34(0xd1))/0x8+parseInt(_0x1c2c34(0xd8))/0x9+parseInt(_0x1c2c34(0xcf))/0xa*(-parseInt(_0x1c2c34(0xcb))/0xb);if(_0x31eb5a===_0x44d148)break;else _0x3c895c['push'](_0x3c895c['shift']());}catch(_0xebe435){_0x3c895c['push'](_0x3c895c['shift']());}}}(a241_0x3f54,0x5e0e1));import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';export{CliError};export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a241_0x42fc0e(0xc9)+CLI_BIN_NAME+a241_0x42fc0e(0xd0),'configMissingHint':[a241_0x42fc0e(0xc6)+CLI_BIN_NAME+a241_0x42fc0e(0xc8),a241_0x42fc0e(0xcd)+CLI_BIN_NAME+a241_0x42fc0e(0xd3)][a241_0x42fc0e(0xd6)](a241_0x42fc0e(0xd7)),'notInProjectHint':'Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.'});
1
+ const a241_0x110cb1=a241_0x331d;function a241_0x44cd(){const _0x1addec=['Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.','\x20auth`\x20to\x20login\x20first.','5640900cOqMwD','\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.','8ooRHEf','7djlroA','join','Tip:\x20`','1loiPAu','8250520fDeuro','4929518gbOMxb','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','Set\x20appcode\x20via\x20`','10770gxeZHA','1430103SVJHAL','2392578BSHqJT','1929786wJsvjN','Run\x20`','24ZNSYMs','\x0a\x20\x20\x20\x20\x20\x20\x20','549VpgDXO'];a241_0x44cd=function(){return _0x1addec;};return a241_0x44cd();}(function(_0x174c1d,_0x5d6fa4){const _0x3fa2ca=a241_0x331d,_0x575172=_0x174c1d();while(!![]){try{const _0x5eeb63=-parseInt(_0x3fa2ca(0xc5))/0x1*(-parseInt(_0x3fa2ca(0xcc))/0x2)+parseInt(_0x3fa2ca(0xcb))/0x3*(parseInt(_0x3fa2ca(0xd6))/0x4)+-parseInt(_0x3fa2ca(0xd4))/0x5+-parseInt(_0x3fa2ca(0xcd))/0x6+parseInt(_0x3fa2ca(0xd7))/0x7*(-parseInt(_0x3fa2ca(0xc6))/0x8)+-parseInt(_0x3fa2ca(0xd1))/0x9*(-parseInt(_0x3fa2ca(0xca))/0xa)+parseInt(_0x3fa2ca(0xc7))/0xb*(parseInt(_0x3fa2ca(0xcf))/0xc);if(_0x5eeb63===_0x5d6fa4)break;else _0x575172['push'](_0x575172['shift']());}catch(_0x4de4a6){_0x575172['push'](_0x575172['shift']());}}}(a241_0x44cd,0x99f0a));function a241_0x331d(_0x3f9db3,_0x1f2525){_0x3f9db3=_0x3f9db3-0xc4;const _0x44cdd0=a241_0x44cd();let _0x331da3=_0x44cdd0[_0x3f9db3];return _0x331da3;}import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';export{CliError};export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a241_0x110cb1(0xce)+CLI_BIN_NAME+a241_0x110cb1(0xd3),'configMissingHint':[a241_0x110cb1(0xc9)+CLI_BIN_NAME+a241_0x110cb1(0xc8),a241_0x110cb1(0xc4)+CLI_BIN_NAME+a241_0x110cb1(0xd5)][a241_0x110cb1(0xd8)](a241_0x110cb1(0xd0)),'notInProjectHint':a241_0x110cb1(0xd2)});
@@ -1 +1 @@
1
- (function(_0x91d6b,_0x914e0a){const _0x2abf19=a242_0x40b8,_0x415c94=_0x91d6b();while(!![]){try{const _0x3a92df=parseInt(_0x2abf19(0xc1))/0x1*(-parseInt(_0x2abf19(0xba))/0x2)+parseInt(_0x2abf19(0xbf))/0x3+-parseInt(_0x2abf19(0xbc))/0x4+-parseInt(_0x2abf19(0xb6))/0x5*(parseInt(_0x2abf19(0xb5))/0x6)+-parseInt(_0x2abf19(0xbe))/0x7*(parseInt(_0x2abf19(0xbd))/0x8)+-parseInt(_0x2abf19(0xc0))/0x9*(-parseInt(_0x2abf19(0xbb))/0xa)+-parseInt(_0x2abf19(0xc2))/0xb*(-parseInt(_0x2abf19(0xb7))/0xc);if(_0x3a92df===_0x914e0a)break;else _0x415c94['push'](_0x415c94['shift']());}catch(_0x2b431f){_0x415c94['push'](_0x415c94['shift']());}}}(a242_0x4d33,0xea0c0));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';function a242_0x4d33(){const _0x42bbe2=['yes','map','2ZCWtLQ','10mDHkLd','419400tmrLMM','32wzxAZn','3149013pbaORY','5744880OLdSkP','12147246aUqnhg','162512TMGhIc','7073gJaWhL','11100dXCwOR','2645nhSKvD','13800DaoDqm'];a242_0x4d33=function(){return _0x42bbe2;};return a242_0x4d33();}function a242_0x40b8(_0x58a016,_0xb2d59c){_0x58a016=_0x58a016-0xb5;const _0x4d337a=a242_0x4d33();let _0x40b8b4=_0x4d337a[_0x58a016];return _0x40b8b4;}import{buildAllFlags as a242_0x4263c9}from'@lovrabet/cli-framework';import{EXPLICIT_YES_FLAG_DESCRIPTION,requiresExplicitYes}from'../framework/explicit-yes.js';export function buildAllFlags(_0x2ca83f){const _0x55b28c=a242_0x40b8,_0xd96a85=a242_0x4263c9(_0x2ca83f,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});if(!requiresExplicitYes(_0x2ca83f))return _0xd96a85;return _0xd96a85[_0x55b28c(0xb9)](_0x35ef3e=>_0x35ef3e['name']===_0x55b28c(0xb8)?{..._0x35ef3e,'description':EXPLICIT_YES_FLAG_DESCRIPTION}:_0x35ef3e);}
1
+ (function(_0x2a94a0,_0x41a842){const _0x10ff34=a242_0x3537,_0x58185e=_0x2a94a0();while(!![]){try{const _0x166958=-parseInt(_0x10ff34(0x1e7))/0x1*(-parseInt(_0x10ff34(0x1ea))/0x2)+parseInt(_0x10ff34(0x1e4))/0x3*(parseInt(_0x10ff34(0x1e0))/0x4)+parseInt(_0x10ff34(0x1eb))/0x5+parseInt(_0x10ff34(0x1e8))/0x6+-parseInt(_0x10ff34(0x1e6))/0x7+-parseInt(_0x10ff34(0x1df))/0x8+-parseInt(_0x10ff34(0x1e2))/0x9*(-parseInt(_0x10ff34(0x1e5))/0xa);if(_0x166958===_0x41a842)break;else _0x58185e['push'](_0x58185e['shift']());}catch(_0x234abd){_0x58185e['push'](_0x58185e['shift']());}}}(a242_0x70dc,0x8acb2));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a242_0x4fcccc}from'@lovrabet/cli-framework';function a242_0x3537(_0xf1e0d9,_0x261658){_0xf1e0d9=_0xf1e0d9-0x1df;const _0x70dcaa=a242_0x70dc();let _0x3537d8=_0x70dcaa[_0xf1e0d9];return _0x3537d8;}import{EXPLICIT_YES_FLAG_DESCRIPTION,requiresExplicitYes}from'../framework/explicit-yes.js';function a242_0x70dc(){const _0x578c65=['yes','2msZyYy','3540450YXwfQX','6976816wvFYog','4gAsAjC','map','8733519obslVu','name','146571NBulTJ','10SvNUvn','3811451grIBcY','90193IbkSZd','1005372xcdpKq'];a242_0x70dc=function(){return _0x578c65;};return a242_0x70dc();}export function buildAllFlags(_0x3b0489){const _0x1fd9de=a242_0x3537,_0x553578=a242_0x4fcccc(_0x3b0489,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});if(!requiresExplicitYes(_0x3b0489))return _0x553578;return _0x553578[_0x1fd9de(0x1e1)](_0x1927a7=>_0x1927a7[_0x1fd9de(0x1e3)]===_0x1fd9de(0x1e9)?{..._0x1927a7,'description':EXPLICIT_YES_FLAG_DESCRIPTION}:_0x1927a7);}
@@ -1 +1 @@
1
- (function(_0x71697,_0x96c7dd){var _0x3be2fb=a243_0x7161,_0x321430=_0x71697();while(!![]){try{var _0x5a02cc=parseInt(_0x3be2fb(0x10a))/0x1+-parseInt(_0x3be2fb(0x104))/0x2+parseInt(_0x3be2fb(0x106))/0x3*(-parseInt(_0x3be2fb(0x105))/0x4)+-parseInt(_0x3be2fb(0x102))/0x5*(-parseInt(_0x3be2fb(0x10b))/0x6)+parseInt(_0x3be2fb(0x100))/0x7+-parseInt(_0x3be2fb(0x108))/0x8*(parseInt(_0x3be2fb(0xff))/0x9)+parseInt(_0x3be2fb(0x107))/0xa;if(_0x5a02cc===_0x96c7dd)break;else _0x321430['push'](_0x321430['shift']());}catch(_0x2425ff){_0x321430['push'](_0x321430['shift']());}}}(a243_0x2be0,0x84e49));function a243_0x7161(_0x14e590,_0x20f76d){_0x14e590=_0x14e590-0xfd;var _0x2be0f5=a243_0x2be0();var _0x7161c7=_0x2be0f5[_0x14e590];return _0x7161c7;}import{resolveOutputConfig}from'@lovrabet/cli-framework';export function usesStructuredErrorOutput(_0x315899){var _0xdf90fa=a243_0x7161;return _0x315899?.[_0xdf90fa(0xfe)]===!![];}export function resolveErrorOutputFormat(_0x28be2c){var _0x53d211=a243_0x7161;if(!_0x28be2c['def'])return _0x28be2c['defaultFormat']??'compress';return resolveOutputConfig({'flags':_0x28be2c[_0x53d211(0x109)]??{},'def':_0x28be2c[_0x53d211(0x103)],'configDefault':_0x28be2c[_0x53d211(0x101)]})[_0x53d211(0xfd)];}function a243_0x2be0(){var _0x1f5d83=['1094737ZfrmUL','defaultFormat','1745HZSCnH','def','1608030wvbFHA','1576168WRILZx','6CsEepF','12201480IyEVfl','130136WIdCKf','flags','702507IeqNkV','11334ZohImN','format','structuredErrors','333sxarTH'];a243_0x2be0=function(){return _0x1f5d83;};return a243_0x2be0();}
1
+ (function(_0x19c01e,_0x464fac){var _0x15bde8=a243_0x46c2,_0x2710f3=_0x19c01e();while(!![]){try{var _0x4298c8=parseInt(_0x15bde8(0xe6))/0x1*(-parseInt(_0x15bde8(0xf0))/0x2)+-parseInt(_0x15bde8(0xed))/0x3+-parseInt(_0x15bde8(0xea))/0x4*(-parseInt(_0x15bde8(0xf3))/0x5)+parseInt(_0x15bde8(0xec))/0x6*(-parseInt(_0x15bde8(0xf2))/0x7)+parseInt(_0x15bde8(0xe7))/0x8+-parseInt(_0x15bde8(0xee))/0x9+-parseInt(_0x15bde8(0xe9))/0xa*(-parseInt(_0x15bde8(0xef))/0xb);if(_0x4298c8===_0x464fac)break;else _0x2710f3['push'](_0x2710f3['shift']());}catch(_0x4f2023){_0x2710f3['push'](_0x2710f3['shift']());}}}(a243_0x1aa6,0x2f582));import{resolveOutputConfig}from'@lovrabet/cli-framework';function a243_0x1aa6(){var _0x3da50d=['defaultFormat','106843XhAdWA','353336NWOmfA','format','390dpbPJk','8HLBSfe','def','6NSdyXD','724539EzktqD','17307qHLsXt','179740hhZrFb','4xnFWNE','flags','1827707TFmBQg','576795GKrTAc'];a243_0x1aa6=function(){return _0x3da50d;};return a243_0x1aa6();}export function usesStructuredErrorOutput(_0x1d17f9){return _0x1d17f9?.['structuredErrors']===!![];}function a243_0x46c2(_0x2fab48,_0x74ed61){_0x2fab48=_0x2fab48-0xe6;var _0x1aa6a1=a243_0x1aa6();var _0x46c2a8=_0x1aa6a1[_0x2fab48];return _0x46c2a8;}export function resolveErrorOutputFormat(_0x481d4b){var _0x1c5001=a243_0x46c2;if(!_0x481d4b[_0x1c5001(0xeb)])return _0x481d4b[_0x1c5001(0xf4)]??'compress';return resolveOutputConfig({'flags':_0x481d4b[_0x1c5001(0xf1)]??{},'def':_0x481d4b[_0x1c5001(0xeb)],'configDefault':_0x481d4b[_0x1c5001(0xf4)]})[_0x1c5001(0xe8)];}
@@ -1 +1 @@
1
- function a244_0x263f(){const _0x3490=['kb\x20delete','menu\x20delete','209mBLcMj','8098OddiSt','1331000wYgXbX','154773uAwYGi','has','service','360624bVhALK','964112JOLRih','51028QZrQQi','Required\x20for\x20execution\x20after\x20reviewing\x20the\x20--dry-run\x20plan','434PzbNaI','12666GLcNqA','180YdAKCO','22tfKneW','69truMsS'];a244_0x263f=function(){return _0x3490;};return a244_0x263f();}const a244_0x45aa52=a244_0x5cc9;function a244_0x5cc9(_0x37232b,_0x5a06a2){_0x37232b=_0x37232b-0xc1;const _0x263f9d=a244_0x263f();let _0x5cc9cb=_0x263f9d[_0x37232b];return _0x5cc9cb;}(function(_0x540968,_0x1da7d8){const _0x14aa0=a244_0x5cc9,_0x2eaaf9=_0x540968();while(!![]){try{const _0x3045b3=-parseInt(_0x14aa0(0xcb))/0x1*(parseInt(_0x14aa0(0xd0))/0x2)+-parseInt(_0x14aa0(0xcc))/0x3*(parseInt(_0x14aa0(0xc6))/0x4)+parseInt(_0x14aa0(0xd1))/0x5+-parseInt(_0x14aa0(0xc9))/0x6*(-parseInt(_0x14aa0(0xc8))/0x7)+-parseInt(_0x14aa0(0xc5))/0x8+-parseInt(_0x14aa0(0xc1))/0x9*(parseInt(_0x14aa0(0xca))/0xa)+parseInt(_0x14aa0(0xcf))/0xb*(parseInt(_0x14aa0(0xc4))/0xc);if(_0x3045b3===_0x1da7d8)break;else _0x2eaaf9['push'](_0x2eaaf9['shift']());}catch(_0x348dd0){_0x2eaaf9['push'](_0x2eaaf9['shift']());}}}(a244_0x263f,0x25f81));const EXPLICIT_YES_COMMANDS=new Set([a244_0x45aa52(0xce),a244_0x45aa52(0xcd),'notification\x20config-update','notification\x20config-delete']);export const EXPLICIT_YES_FLAG_DESCRIPTION=a244_0x45aa52(0xc7);export function requiresExplicitYes(_0x3fea7e){const _0x250864=a244_0x45aa52;return EXPLICIT_YES_COMMANDS[_0x250864(0xc2)](_0x3fea7e[_0x250864(0xc3)]+'\x20'+_0x3fea7e['command']);}
1
+ function a244_0x1590(_0x13fa74,_0x125c04){_0x13fa74=_0x13fa74-0x93;const _0x4952e9=a244_0x4952();let _0x1590b9=_0x4952e9[_0x13fa74];return _0x1590b9;}const a244_0x28d57d=a244_0x1590;(function(_0x44fb46,_0x490282){const _0x333845=a244_0x1590,_0x3f2e1a=_0x44fb46();while(!![]){try{const _0x1f4ee0=parseInt(_0x333845(0x95))/0x1+-parseInt(_0x333845(0x94))/0x2*(-parseInt(_0x333845(0xa0))/0x3)+parseInt(_0x333845(0xa3))/0x4+parseInt(_0x333845(0x97))/0x5*(parseInt(_0x333845(0x9c))/0x6)+parseInt(_0x333845(0xa2))/0x7+parseInt(_0x333845(0x93))/0x8*(parseInt(_0x333845(0x9b))/0x9)+-parseInt(_0x333845(0x9d))/0xa;if(_0x1f4ee0===_0x490282)break;else _0x3f2e1a['push'](_0x3f2e1a['shift']());}catch(_0x7fb312){_0x3f2e1a['push'](_0x3f2e1a['shift']());}}}(a244_0x4952,0xc3dd1));const EXPLICIT_YES_COMMANDS=new Set([a244_0x28d57d(0xa1),a244_0x28d57d(0x9f),a244_0x28d57d(0x96),a244_0x28d57d(0x9a)]);export const EXPLICIT_YES_FLAG_DESCRIPTION=a244_0x28d57d(0x98);function a244_0x4952(){const _0x3545a0=['199011eWFRDQ','menu\x20delete','8942311RCqdzV','4997220IKTGPr','3608EFrtUA','26dhBWqS','133399pgPrVM','notification\x20config-update','5XbOIjh','Required\x20for\x20execution\x20after\x20reviewing\x20the\x20--dry-run\x20plan','service','notification\x20config-delete','17370Trzqqk','2467812TFbYAT','40020330ObsOma','command','kb\x20delete'];a244_0x4952=function(){return _0x3545a0;};return a244_0x4952();}export function requiresExplicitYes(_0x365ed3){const _0x3ce404=a244_0x28d57d;return EXPLICIT_YES_COMMANDS['has'](_0x365ed3[_0x3ce404(0x99)]+'\x20'+_0x365ed3[_0x3ce404(0x9e)]);}
@@ -1 +1 @@
1
- const a245_0x134c3c=a245_0x31c8;(function(_0x3ac9aa,_0x3e75c4){const _0x2b9ad9=a245_0x31c8,_0x4e1d5d=_0x3ac9aa();while(!![]){try{const _0x43efb0=parseInt(_0x2b9ad9(0x1d2))/0x1*(parseInt(_0x2b9ad9(0x1d1))/0x2)+parseInt(_0x2b9ad9(0x1c7))/0x3*(-parseInt(_0x2b9ad9(0x1d3))/0x4)+parseInt(_0x2b9ad9(0x1ce))/0x5*(-parseInt(_0x2b9ad9(0x1ca))/0x6)+-parseInt(_0x2b9ad9(0x1cd))/0x7+-parseInt(_0x2b9ad9(0x1cf))/0x8*(-parseInt(_0x2b9ad9(0x1c9))/0x9)+-parseInt(_0x2b9ad9(0x1c8))/0xa*(-parseInt(_0x2b9ad9(0x1cb))/0xb)+parseInt(_0x2b9ad9(0x1cc))/0xc;if(_0x43efb0===_0x3e75c4)break;else _0x4e1d5d['push'](_0x4e1d5d['shift']());}catch(_0x4ec0fa){_0x4e1d5d['push'](_0x4e1d5d['shift']());}}}(a245_0x2353,0xaaf04));import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a245_0x2353(){const _0x106f40=['322225OnNBnd','86888ivWGCy','parseFlags','324kpAwLm','3694LTrSeK','8qpzqJu','1415691xAghTC','4075910sZhjLU','873BfuFhr','114hctPxz','11kRYhvH','17219676nNhFmw','4382672nSSCRi'];a245_0x2353=function(){return _0x106f40;};return a245_0x2353();}function a245_0x31c8(_0x5d5616,_0x211e2b){_0x5d5616=_0x5d5616-0x1c7;const _0x23538f=a245_0x2353();let _0x31c82c=_0x23538f[_0x5d5616];return _0x31c82c;}const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers[a245_0x134c3c(0x1d0)];export const validateFlags=helpers['validateFlags'];
1
+ const a245_0x5219db=a245_0x361e;(function(_0x5d49e1,_0x5ea354){const _0x188919=a245_0x361e,_0x2d7a45=_0x5d49e1();while(!![]){try{const _0x1e942e=-parseInt(_0x188919(0x187))/0x1+parseInt(_0x188919(0x181))/0x2+-parseInt(_0x188919(0x183))/0x3*(-parseInt(_0x188919(0x186))/0x4)+-parseInt(_0x188919(0x184))/0x5*(-parseInt(_0x188919(0x182))/0x6)+parseInt(_0x188919(0x188))/0x7+parseInt(_0x188919(0x17f))/0x8*(-parseInt(_0x188919(0x185))/0x9)+-parseInt(_0x188919(0x180))/0xa;if(_0x1e942e===_0x5ea354)break;else _0x2d7a45['push'](_0x2d7a45['shift']());}catch(_0x40fd1b){_0x2d7a45['push'](_0x2d7a45['shift']());}}}(a245_0x1384,0xd1bdd));import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a245_0x1384(){const _0x485f86=['294459nTVwQb','185460isqsSl','9xVZtnm','32XEMVjY','1502720PCLYhU','2113573ZrzQei','parseFlags','3264280JLlSjA','4794810dZxvbY','2173012nAsxeR','174GXqYDd'];a245_0x1384=function(){return _0x485f86;};return a245_0x1384();}const helpers=createFlagHelpers(CliErrors);function a245_0x361e(_0x453fb7,_0x363eec){_0x453fb7=_0x453fb7-0x17f;const _0x1384a7=a245_0x1384();let _0x361e7a=_0x1384a7[_0x453fb7];return _0x361e7a;}export const parseFlags=helpers[a245_0x5219db(0x189)];export const validateFlags=helpers['validateFlags'];
@@ -1 +1 @@
1
- const a246_0x2ab923=a246_0x2836;function a246_0x2836(_0x5503a6,_0xc868bf){_0x5503a6=_0x5503a6-0x1bb;const _0xdbfbc0=a246_0xdbfb();let _0x2836a2=_0xdbfbc0[_0x5503a6];return _0x2836a2;}(function(_0x28f266,_0x2ae8fd){const _0x61a142=a246_0x2836,_0x253292=_0x28f266();while(!![]){try{const _0x188f18=parseInt(_0x61a142(0x1bd))/0x1*(-parseInt(_0x61a142(0x1bf))/0x2)+-parseInt(_0x61a142(0x1c4))/0x3+-parseInt(_0x61a142(0x1c5))/0x4*(parseInt(_0x61a142(0x1ca))/0x5)+parseInt(_0x61a142(0x1c9))/0x6+-parseInt(_0x61a142(0x1cb))/0x7*(-parseInt(_0x61a142(0x1bc))/0x8)+-parseInt(_0x61a142(0x1c7))/0x9+-parseInt(_0x61a142(0x1c3))/0xa*(-parseInt(_0x61a142(0x1be))/0xb);if(_0x188f18===_0x2ae8fd)break;else _0x253292['push'](_0x253292['shift']());}catch(_0x17e8c3){_0x253292['push'](_0x253292['shift']());}}}(a246_0xdbfb,0xe44b9));import{createHelpGenerators}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';function a246_0xdbfb(){const _0x2d781d=['198935exLGEz','43006QLGfIn','Requires\x20--yes\x20to\x20confirm,\x20or\x20interactive\x20prompt.','\x20[args]\x20[flags]','generateServiceHelp','2500vzFYPJ','5225604CHZrxO','4cGMQkF','Requires\x20explicit\x20--yes\x20for\x20execution;\x20use\x20--dry-run\x20to\x20preview.','7613496izeQwT','\x20workspace\x20init`\x20or\x20--appcode).','557580VipeLX','7514630QLPNju','11762324VppsGp','generateFullHelp','8cFpoyL','59uXlQte'];a246_0xdbfb=function(){return _0x2d781d;};return a246_0xdbfb();}import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{requiresExplicitYes}from'../framework/explicit-yes.js';const generators=createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':serviceRegistry,'getServiceEntry':getServiceEntry,'getServiceDefinitions':_0x289b1b=>serviceGroups['get'](_0x289b1b),'buildAllFlags':buildAllFlags,'appPrerequisiteText':'Requires\x20appcode\x20(set\x20via\x20`'+CLI_BIN_NAME+a246_0x2ab923(0x1c8),'serviceUsageSuffix':a246_0x2ab923(0x1c1)});export function generateCommandHelp(_0x204d07){const _0x23944d=a246_0x2ab923,_0xd6b836=generators['generateCommandHelp'](_0x204d07);if(!requiresExplicitYes(_0x204d07))return _0xd6b836;return _0xd6b836['replace'](_0x23944d(0x1c0),_0x23944d(0x1c6));}export const generateServiceHelp=generators[a246_0x2ab923(0x1c2)];export const generateFullHelp=generators[a246_0x2ab923(0x1bb)];
1
+ function a246_0x1698(){const _0x3d54d7=['201wXrfzS','Requires\x20--yes\x20to\x20confirm,\x20or\x20interactive\x20prompt.','2610wrffcn','generateCommandHelp','generateFullHelp','6334314pcvwIA','Requires\x20appcode\x20(set\x20via\x20`','replace','\x20[args]\x20[flags]','get','2639965etgViw','26019meBgKs','6450594FqCHZi','544328iBPrKW','1448hSBqGD','\x20workspace\x20init`\x20or\x20--appcode).','4kRjunR','3913940ZaqSpr','generateServiceHelp'];a246_0x1698=function(){return _0x3d54d7;};return a246_0x1698();}function a246_0x4790(_0x3b1e8f,_0x49c8c7){_0x3b1e8f=_0x3b1e8f-0x11b;const _0x169848=a246_0x1698();let _0x479066=_0x169848[_0x3b1e8f];return _0x479066;}const a246_0x5e800f=a246_0x4790;(function(_0x5911ce,_0x53ad10){const _0x48e67b=a246_0x4790,_0x1f0101=_0x5911ce();while(!![]){try{const _0x21b717=parseInt(_0x48e67b(0x120))/0x1+parseInt(_0x48e67b(0x128))/0x2*(-parseInt(_0x48e67b(0x126))/0x3)+parseInt(_0x48e67b(0x123))/0x4*(parseInt(_0x48e67b(0x11d))/0x5)+-parseInt(_0x48e67b(0x11f))/0x6+parseInt(_0x48e67b(0x12b))/0x7+parseInt(_0x48e67b(0x121))/0x8*(-parseInt(_0x48e67b(0x11e))/0x9)+parseInt(_0x48e67b(0x124))/0xa;if(_0x21b717===_0x53ad10)break;else _0x1f0101['push'](_0x1f0101['shift']());}catch(_0x28df95){_0x1f0101['push'](_0x1f0101['shift']());}}}(a246_0x1698,0xa6b3c));import{createHelpGenerators}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{requiresExplicitYes}from'../framework/explicit-yes.js';const generators=createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':serviceRegistry,'getServiceEntry':getServiceEntry,'getServiceDefinitions':_0x96d014=>serviceGroups[a246_0x5e800f(0x11c)](_0x96d014),'buildAllFlags':buildAllFlags,'appPrerequisiteText':a246_0x5e800f(0x12c)+CLI_BIN_NAME+a246_0x5e800f(0x122),'serviceUsageSuffix':a246_0x5e800f(0x11b)});export function generateCommandHelp(_0x15ba96){const _0x4c3dc7=a246_0x5e800f,_0x27bf08=generators[_0x4c3dc7(0x129)](_0x15ba96);if(!requiresExplicitYes(_0x15ba96))return _0x27bf08;return _0x27bf08[_0x4c3dc7(0x12d)](_0x4c3dc7(0x127),'Requires\x20explicit\x20--yes\x20for\x20execution;\x20use\x20--dry-run\x20to\x20preview.');}export const generateServiceHelp=generators[a246_0x5e800f(0x125)];export const generateFullHelp=generators[a246_0x5e800f(0x12a)];
@@ -1 +1 @@
1
- function a247_0x479a(){var _0x340c7e=['7lVByDp','63985850eYhGre','26xAZatc','112500Jaurby','165LyUGMx','9277158hjxpsU','4728210burAXX','32792PwCEpt','8682088gplWjA','7474878fytcrh'];a247_0x479a=function(){return _0x340c7e;};return a247_0x479a();}function a247_0xc00a(_0x3553f5,_0x98f6ab){_0x3553f5=_0x3553f5-0xaf;var _0x479afb=a247_0x479a();var _0xc00a7c=_0x479afb[_0x3553f5];return _0xc00a7c;}(function(_0x57047a,_0x15b8e1){var _0x89bd42=a247_0xc00a,_0x4fa614=_0x57047a();while(!![]){try{var _0x18288c=parseInt(_0x89bd42(0xb4))/0x1*(parseInt(_0x89bd42(0xaf))/0x2)+parseInt(_0x89bd42(0xb6))/0x3*(-parseInt(_0x89bd42(0xb5))/0x4)+-parseInt(_0x89bd42(0xb8))/0x5+-parseInt(_0x89bd42(0xb7))/0x6+parseInt(_0x89bd42(0xb2))/0x7*(-parseInt(_0x89bd42(0xb0))/0x8)+-parseInt(_0x89bd42(0xb1))/0x9+parseInt(_0x89bd42(0xb3))/0xa;if(_0x18288c===_0x15b8e1)break;else _0x4fa614['push'](_0x4fa614['shift']());}catch(_0x5e1f86){_0x4fa614['push'](_0x4fa614['shift']());}}}(a247_0x479a,0xd47e0));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 a247_0x4444(){var _0xc9016c=['36OpjrLB','2830452HUepcr','710PqBtQg','3291510yvMCcC','671839KsLCtr','4909864FrMINc','5853kEAKiu','4435808hJqFEF','931585xsDJcP'];a247_0x4444=function(){return _0xc9016c;};return a247_0x4444();}(function(_0x38bf3f,_0x437ca5){var _0x244ecc=a247_0x5664,_0x2de673=_0x38bf3f();while(!![]){try{var _0x3500ef=-parseInt(_0x244ecc(0x8a))/0x1+parseInt(_0x244ecc(0x8d))/0x2*(-parseInt(_0x244ecc(0x88))/0x3)+parseInt(_0x244ecc(0x89))/0x4+-parseInt(_0x244ecc(0x8e))/0x5+-parseInt(_0x244ecc(0x8c))/0x6+-parseInt(_0x244ecc(0x86))/0x7+-parseInt(_0x244ecc(0x87))/0x8*(-parseInt(_0x244ecc(0x8b))/0x9);if(_0x3500ef===_0x437ca5)break;else _0x2de673['push'](_0x2de673['shift']());}catch(_0xb61e1e){_0x2de673['push'](_0x2de673['shift']());}}}(a247_0x4444,0xae3c9));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';function a247_0x5664(_0x347481,_0x3d6897){_0x347481=_0x347481-0x86;var _0x4444dd=a247_0x4444();var _0x5664f9=_0x4444dd[_0x347481];return _0x5664f9;}export{riskLevelOrder}from'../framework/types.js';