@lovrabet/rabetbase-cli 2.5.3-beta.1 → 2.5.3-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 (374) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/api/generate-sdk-config-file.js +1 -1
  5. package/lib/auth/auth-server-ui.js +1 -1
  6. package/lib/auth/auth-server.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/logs.d.ts +7 -0
  38. package/lib/commands/bff/logs.js +1 -0
  39. package/lib/commands/bff/pull.js +1 -1
  40. package/lib/commands/bff/push.js +1 -1
  41. package/lib/commands/bff/status.js +1 -1
  42. package/lib/commands/cli-skill/index.js +1 -1
  43. package/lib/commands/cli-update.js +1 -1
  44. package/lib/commands/codegen/index.js +1 -1
  45. package/lib/commands/codegen/sdk.js +1 -1
  46. package/lib/commands/codegen/sql.js +1 -1
  47. package/lib/commands/common/app-registry.js +1 -1
  48. package/lib/commands/common/app-selector.js +1 -1
  49. package/lib/commands/common/async-task.js +1 -1
  50. package/lib/commands/common/dry-run.js +1 -1
  51. package/lib/commands/common/flags.js +1 -1
  52. package/lib/commands/common/local-file.js +1 -1
  53. package/lib/commands/common/validate.js +1 -1
  54. package/lib/commands/config/delete.js +1 -1
  55. package/lib/commands/config/get.js +1 -1
  56. package/lib/commands/config/index.js +1 -1
  57. package/lib/commands/config/init.js +1 -1
  58. package/lib/commands/config/list.js +1 -1
  59. package/lib/commands/config/set.js +1 -1
  60. package/lib/commands/config/shared.js +1 -1
  61. package/lib/commands/dataset/batch-design.d.ts +21 -0
  62. package/lib/commands/dataset/batch-design.js +1 -0
  63. package/lib/commands/dataset/business-group-update.js +1 -1
  64. package/lib/commands/dataset/business-groups.js +1 -1
  65. package/lib/commands/dataset/capability.js +1 -1
  66. package/lib/commands/dataset/delete.js +1 -1
  67. package/lib/commands/dataset/detail.js +1 -1
  68. package/lib/commands/dataset/extend-update.js +1 -1
  69. package/lib/commands/dataset/field-restore.js +1 -1
  70. package/lib/commands/dataset/field-update.js +1 -1
  71. package/lib/commands/dataset/generate.js +1 -1
  72. package/lib/commands/dataset/index.js +1 -1
  73. package/lib/commands/dataset/list.js +1 -1
  74. package/lib/commands/dataset/operations.js +1 -1
  75. package/lib/commands/dataset/relation-audit.js +1 -1
  76. package/lib/commands/dataset/relation-create.js +1 -1
  77. package/lib/commands/dataset/relation-delete.js +1 -1
  78. package/lib/commands/dataset/relation-shared.js +1 -1
  79. package/lib/commands/dataset/relation-update.js +1 -1
  80. package/lib/commands/dataset/relations.js +1 -1
  81. package/lib/commands/dataset/rename.js +1 -1
  82. package/lib/commands/dataset/restore.js +1 -1
  83. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  84. package/lib/commands/db/analysis-batching.js +1 -1
  85. package/lib/commands/db/analyze-batch-plan.js +1 -1
  86. package/lib/commands/db/analyze-cancel.js +1 -1
  87. package/lib/commands/db/analyze-start.js +1 -1
  88. package/lib/commands/db/analyze-status.js +1 -1
  89. package/lib/commands/db/create.js +1 -1
  90. package/lib/commands/db/delete.js +1 -1
  91. package/lib/commands/db/detail.js +1 -1
  92. package/lib/commands/db/diff-refresh-start.js +1 -1
  93. package/lib/commands/db/diff-refresh-status.js +1 -1
  94. package/lib/commands/db/diff.js +1 -1
  95. package/lib/commands/db/index.js +1 -1
  96. package/lib/commands/db/list.js +1 -1
  97. package/lib/commands/db/shared.js +1 -1
  98. package/lib/commands/db/table-diff-shared.js +1 -1
  99. package/lib/commands/db/tables.js +1 -1
  100. package/lib/commands/db/test.js +1 -1
  101. package/lib/commands/db/update.js +1 -1
  102. package/lib/commands/deployment/index.js +1 -1
  103. package/lib/commands/deployment/sync-all.js +1 -1
  104. package/lib/commands/deployment/sync-jobs.js +1 -1
  105. package/lib/commands/deployment/sync-status.js +1 -1
  106. package/lib/commands/doctor.js +1 -1
  107. package/lib/commands/file/index.js +1 -1
  108. package/lib/commands/flow/create.d.ts +2 -0
  109. package/lib/commands/flow/create.js +1 -0
  110. package/lib/commands/flow/detail.d.ts +2 -0
  111. package/lib/commands/flow/detail.js +1 -0
  112. package/lib/commands/flow/index.d.ts +3 -0
  113. package/lib/commands/flow/index.js +1 -0
  114. package/lib/commands/flow/list.d.ts +2 -0
  115. package/lib/commands/flow/list.js +1 -0
  116. package/lib/commands/flow/publish.d.ts +2 -0
  117. package/lib/commands/flow/publish.js +1 -0
  118. package/lib/commands/flow/runtime-resources-shared.d.ts +40 -0
  119. package/lib/commands/flow/runtime-resources-shared.js +1 -0
  120. package/lib/commands/flow/runtime-role-list.d.ts +2 -0
  121. package/lib/commands/flow/runtime-role-list.js +1 -0
  122. package/lib/commands/flow/runtime-role-user-list.d.ts +2 -0
  123. package/lib/commands/flow/runtime-role-user-list.js +1 -0
  124. package/lib/commands/flow/runtime-user-search.d.ts +2 -0
  125. package/lib/commands/flow/runtime-user-search.js +1 -0
  126. package/lib/commands/flow/shared.d.ts +41 -0
  127. package/lib/commands/flow/shared.js +1 -0
  128. package/lib/commands/flow/update.d.ts +2 -0
  129. package/lib/commands/flow/update.js +1 -0
  130. package/lib/commands/flow/validate.d.ts +3 -0
  131. package/lib/commands/flow/validate.js +1 -0
  132. package/lib/commands/instant-api-policy/current.js +1 -1
  133. package/lib/commands/instant-api-policy/index.js +1 -1
  134. package/lib/commands/instant-api-policy/init.js +1 -1
  135. package/lib/commands/instant-api-policy/publish.js +1 -1
  136. package/lib/commands/instant-api-policy/pull.js +1 -1
  137. package/lib/commands/instant-api-policy/revision.js +1 -1
  138. package/lib/commands/instant-api-policy/revisions.js +1 -1
  139. package/lib/commands/instant-api-policy/rollback.js +1 -1
  140. package/lib/commands/instant-api-policy/shared.js +1 -1
  141. package/lib/commands/instant-api-policy/validate.js +1 -1
  142. package/lib/commands/issue/index.js +1 -1
  143. package/lib/commands/issue/nudge.js +1 -1
  144. package/lib/commands/issue/report.js +1 -1
  145. package/lib/commands/issue/shared.js +1 -1
  146. package/lib/commands/kb/create.js +1 -1
  147. package/lib/commands/kb/delete.js +1 -1
  148. package/lib/commands/kb/detail.js +1 -1
  149. package/lib/commands/kb/index.js +1 -1
  150. package/lib/commands/kb/list.js +1 -1
  151. package/lib/commands/kb/search.js +1 -1
  152. package/lib/commands/kb/shared.js +1 -1
  153. package/lib/commands/kb/update.js +1 -1
  154. package/lib/commands/logs/index.js +1 -1
  155. package/lib/commands/menu/asset-update.js +1 -1
  156. package/lib/commands/menu/delete.js +1 -1
  157. package/lib/commands/menu/external-link-create.js +1 -1
  158. package/lib/commands/menu/external-link-update.js +1 -1
  159. package/lib/commands/menu/group-create.js +1 -1
  160. package/lib/commands/menu/group-update.js +1 -1
  161. package/lib/commands/menu/index.js +1 -1
  162. package/lib/commands/menu/list.js +1 -1
  163. package/lib/commands/menu/move.js +1 -1
  164. package/lib/commands/menu/regroup-start.js +1 -1
  165. package/lib/commands/menu/rename.js +1 -1
  166. package/lib/commands/menu/shared/compare-table.js +1 -1
  167. package/lib/commands/menu/shared/delete-plan.js +1 -1
  168. package/lib/commands/menu/shared/facts.js +1 -1
  169. package/lib/commands/menu/shared/index.js +1 -1
  170. package/lib/commands/menu/shared/inquirer.js +1 -1
  171. package/lib/commands/menu/shared/local-pages.js +1 -1
  172. package/lib/commands/menu/shared/logic.js +1 -1
  173. package/lib/commands/menu/shared/mutations.js +1 -1
  174. package/lib/commands/menu/shared/service.js +1 -1
  175. package/lib/commands/menu/shared/sync-core.js +1 -1
  176. package/lib/commands/menu/shared/update-core.js +1 -1
  177. package/lib/commands/menu/shared/valid-url.js +1 -1
  178. package/lib/commands/menu/sync.js +1 -1
  179. package/lib/commands/menu/visibility-update.js +1 -1
  180. package/lib/commands/notification/config-create.js +1 -1
  181. package/lib/commands/notification/config-delete.js +1 -1
  182. package/lib/commands/notification/config-list.js +1 -1
  183. package/lib/commands/notification/config-update.js +1 -1
  184. package/lib/commands/notification/index.js +1 -1
  185. package/lib/commands/notification/shared.js +1 -1
  186. package/lib/commands/ocr/index.js +1 -1
  187. package/lib/commands/page/create.js +1 -1
  188. package/lib/commands/page/custom/detail.js +1 -1
  189. package/lib/commands/page/custom/list.js +1 -1
  190. package/lib/commands/page/custom/publish.js +1 -1
  191. package/lib/commands/page/custom/shared.js +1 -1
  192. package/lib/commands/page/custom/syntax.js +1 -1
  193. package/lib/commands/page/custom/update.js +1 -1
  194. package/lib/commands/page/data-list-status.js +1 -1
  195. package/lib/commands/page/generate-start.js +1 -1
  196. package/lib/commands/page/generate-status.js +1 -1
  197. package/lib/commands/page/index.js +1 -1
  198. package/lib/commands/page/pull.js +1 -1
  199. package/lib/commands/page/push.js +1 -1
  200. package/lib/commands/page/relation-audit.js +1 -1
  201. package/lib/commands/page/restore.js +1 -1
  202. package/lib/commands/page/shared.js +1 -1
  203. package/lib/commands/page/sync.js +1 -1
  204. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  205. package/lib/commands/project/create/format-elapsed.js +1 -1
  206. package/lib/commands/project/create/main.js +1 -1
  207. package/lib/commands/project/create/materialize-project-template.js +1 -1
  208. package/lib/commands/project/create/project-name.js +1 -1
  209. package/lib/commands/project/create/project-template-archive.js +1 -1
  210. package/lib/commands/project/create/project-template-path.js +1 -1
  211. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  212. package/lib/commands/project/create/use-format-code.js +1 -1
  213. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  214. package/lib/commands/project/domain-routing-sync.js +1 -1
  215. package/lib/commands/project/index.js +1 -1
  216. package/lib/commands/project/upgrade.js +1 -1
  217. package/lib/commands/registry.js +1 -1
  218. package/lib/commands/role/delete.js +1 -1
  219. package/lib/commands/role/detail.js +1 -1
  220. package/lib/commands/role/index.js +1 -1
  221. package/lib/commands/role/list.js +1 -1
  222. package/lib/commands/role/shared.js +1 -1
  223. package/lib/commands/role/update.js +1 -1
  224. package/lib/commands/role/user-add.js +1 -1
  225. package/lib/commands/role/user-remove.js +1 -1
  226. package/lib/commands/role/user-resolve.js +1 -1
  227. package/lib/commands/rule/get.js +1 -1
  228. package/lib/commands/rule/index.js +1 -1
  229. package/lib/commands/rule/list.js +1 -1
  230. package/lib/commands/rule/set.js +1 -1
  231. package/lib/commands/rule/shared.js +1 -1
  232. package/lib/commands/run/index.js +1 -1
  233. package/lib/commands/schema.js +1 -1
  234. package/lib/commands/sql/create.js +1 -1
  235. package/lib/commands/sql/delete.js +1 -1
  236. package/lib/commands/sql/detail.js +1 -1
  237. package/lib/commands/sql/exec.js +1 -1
  238. package/lib/commands/sql/index.js +1 -1
  239. package/lib/commands/sql/list.js +1 -1
  240. package/lib/commands/sql/pull.js +1 -1
  241. package/lib/commands/sql/push.js +1 -1
  242. package/lib/commands/sql/shared.js +1 -1
  243. package/lib/commands/sql/status.js +1 -1
  244. package/lib/commands/sql/validate.js +1 -1
  245. package/lib/commands/task/index.js +1 -1
  246. package/lib/commands/task/status.js +1 -1
  247. package/lib/commands/tenant/index.js +1 -1
  248. package/lib/commands/tenant/members-list.js +1 -1
  249. package/lib/commands/tenant/shared.js +1 -1
  250. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  251. package/lib/commands/user-account/index.js +1 -1
  252. package/lib/commands/workspace/add.js +1 -1
  253. package/lib/commands/workspace/index.js +1 -1
  254. package/lib/commands/workspace/remove.js +1 -1
  255. package/lib/config/domain-config.js +1 -1
  256. package/lib/config/project-domain-routing.js +1 -1
  257. package/lib/config/region-config.js +1 -1
  258. package/lib/config/schema.js +1 -1
  259. package/lib/constant/cdn.js +1 -1
  260. package/lib/constant/cli.js +1 -1
  261. package/lib/constant/defaults.js +1 -1
  262. package/lib/constant/domain.js +1 -1
  263. package/lib/constant/env.js +1 -1
  264. package/lib/constant/output.js +1 -1
  265. package/lib/constant/paths.js +1 -1
  266. package/lib/constant/region.js +1 -1
  267. package/lib/constant/risk.js +1 -1
  268. package/lib/constant/routing-profile.js +1 -1
  269. package/lib/context/app-resolver.js +1 -1
  270. package/lib/context/auth-resolver.js +1 -1
  271. package/lib/context/config-loader.js +1 -1
  272. package/lib/context.js +1 -1
  273. package/lib/core/alias-resolver.js +1 -1
  274. package/lib/core/api-client.d.ts +170 -1
  275. package/lib/core/api-client.js +1 -1
  276. package/lib/core/bff/config.js +1 -1
  277. package/lib/core/bff/file-system.js +1 -1
  278. package/lib/core/bff/hash.js +1 -1
  279. package/lib/core/bff/hook-directory.d.ts +55 -0
  280. package/lib/core/bff/hook-directory.js +1 -0
  281. package/lib/core/bff/lock.js +1 -1
  282. package/lib/core/bff/types.d.ts +15 -0
  283. package/lib/core/bff/utils.js +1 -1
  284. package/lib/core/db-resolver.js +1 -1
  285. package/lib/core/flow-config.d.ts +628 -0
  286. package/lib/core/flow-config.js +1 -0
  287. package/lib/core/instant-api-policy/config.js +1 -1
  288. package/lib/core/kb-search-client.js +1 -1
  289. package/lib/core/page/file-system.js +1 -1
  290. package/lib/core/page/hash.js +1 -1
  291. package/lib/core/page/lock.js +1 -1
  292. package/lib/core/page/lr-smart-jsx.js +1 -1
  293. package/lib/core/sql-index-auditor.js +1 -1
  294. package/lib/core/sql-sync/config.js +1 -1
  295. package/lib/core/sql-sync/file-system.js +1 -1
  296. package/lib/core/sql-sync/hash.js +1 -1
  297. package/lib/core/sql-sync/lock.js +1 -1
  298. package/lib/core/sql-sync/utils.js +1 -1
  299. package/lib/core/sql-validator.js +1 -1
  300. package/lib/errors.js +1 -1
  301. package/lib/framework/build-all-flags.js +1 -1
  302. package/lib/framework/error-output.js +1 -1
  303. package/lib/framework/explicit-yes.js +1 -1
  304. package/lib/framework/flags.js +1 -1
  305. package/lib/framework/help.js +1 -1
  306. package/lib/framework/index.js +1 -1
  307. package/lib/framework/output.js +1 -1
  308. package/lib/framework/response.js +1 -1
  309. package/lib/framework/runner-alias.js +1 -1
  310. package/lib/framework/runner.js +1 -1
  311. package/lib/framework/schema-export.js +1 -1
  312. package/lib/framework/supported-flags.js +1 -1
  313. package/lib/framework/types.js +1 -1
  314. package/lib/generated/build-info.d.ts +4 -4
  315. package/lib/generated/build-info.js +1 -1
  316. package/lib/generated/official-routing.js +1 -1
  317. package/lib/generated/routing-contract.js +1 -1
  318. package/lib/help.js +1 -1
  319. package/lib/postinstall.js +1 -1
  320. package/lib/runtime/confirmation.js +1 -1
  321. package/lib/runtime/event.js +1 -1
  322. package/lib/runtime/index.js +1 -1
  323. package/lib/runtime/queue.js +1 -1
  324. package/lib/runtime/resolve.js +1 -1
  325. package/lib/skills/builtin-skill.js +1 -1
  326. package/lib/skills/main.js +1 -1
  327. package/lib/skills/npx-skills-add.js +1 -1
  328. package/lib/skills/skill-presence.js +1 -1
  329. package/lib/telemetry/cli-command-trace.js +1 -1
  330. package/lib/telemetry/cli-help-trace.js +1 -1
  331. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  332. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  333. package/lib/telemetry/send-cli-trace-log.js +1 -1
  334. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  335. package/lib/utils/ai_config.js +1 -1
  336. package/lib/utils/apply-jq-filter.js +1 -1
  337. package/lib/utils/cdn-config.js +1 -1
  338. package/lib/utils/check-sdk-version.js +1 -1
  339. package/lib/utils/cli-version-check.js +1 -1
  340. package/lib/utils/cli-version-policy.js +1 -1
  341. package/lib/utils/config.js +1 -1
  342. package/lib/utils/entity-with-id.js +1 -1
  343. package/lib/utils/file-utils.js +1 -1
  344. package/lib/utils/guides-cdn.js +1 -1
  345. package/lib/utils/http-client.js +1 -1
  346. package/lib/utils/is-non-interactive.js +1 -1
  347. package/lib/utils/logger.js +1 -1
  348. package/lib/utils/params.js +1 -1
  349. package/lib/utils/platform.js +1 -1
  350. package/lib/utils/sleep.js +1 -1
  351. package/lib/utils/template-replacer.js +1 -1
  352. package/lib/utils/update-notice.js +1 -1
  353. package/lib/utils/version.js +1 -1
  354. package/lib/utils/with-active-cookie.js +1 -1
  355. package/lib/utils/write-cli-side-channel.js +1 -1
  356. package/package.json +1 -1
  357. package/skills/rabetbase/SKILL.md +22 -4
  358. package/skills/rabetbase/guides/approval-flow-development-workflow.md +137 -0
  359. package/skills/rabetbase/guides/backend-function.md +19 -9
  360. package/skills/rabetbase/guides/bff-creation-workflow.md +10 -1
  361. package/skills/rabetbase/guides/conflict-detection.md +2 -0
  362. package/skills/rabetbase/guides/sdk-client-generation.md +1 -0
  363. package/skills/rabetbase/knowledge/approval-flow/config-json-schema.md +290 -0
  364. package/skills/rabetbase/references/rabetbase-bff-create.md +1 -1
  365. package/skills/rabetbase/references/rabetbase-bff-logs.md +47 -0
  366. package/skills/rabetbase/references/rabetbase-bff-pull.md +7 -3
  367. package/skills/rabetbase/references/rabetbase-bff-push.md +10 -2
  368. package/skills/rabetbase/references/rabetbase-dataset-generate.md +52 -2
  369. package/skills/rabetbase/references/rabetbase-flow-commands.md +86 -0
  370. package/skills/rabetbase/references/rabetbase-flow-resources.md +83 -0
  371. package/skills/rabetbase/references/rabetbase-flow-runtime-boundary.md +25 -0
  372. package/skills/rabetbase/references/rabetbase-instant-api-policy.md +103 -11
  373. package/skills/rabetbase/references/rabetbase-notification-config-list.md +17 -0
  374. package/skills/rabetbase.manifest.json +9 -3
@@ -1 +1 @@
1
- (function(_0x5f2ce2,_0x3c09cd){const _0x3cb069=a263_0x4570,_0x5b39bb=_0x5f2ce2();while(!![]){try{const _0x5936d1=parseInt(_0x3cb069(0xaa))/0x1*(parseInt(_0x3cb069(0xc4))/0x2)+-parseInt(_0x3cb069(0xa9))/0x3+parseInt(_0x3cb069(0xac))/0x4*(-parseInt(_0x3cb069(0xb8))/0x5)+-parseInt(_0x3cb069(0xc3))/0x6*(parseInt(_0x3cb069(0xaf))/0x7)+-parseInt(_0x3cb069(0xb1))/0x8*(-parseInt(_0x3cb069(0xc2))/0x9)+parseInt(_0x3cb069(0xba))/0xa*(parseInt(_0x3cb069(0xa7))/0xb)+parseInt(_0x3cb069(0xad))/0xc;if(_0x5936d1===_0x3c09cd)break;else _0x5b39bb['push'](_0x5b39bb['shift']());}catch(_0x662e82){_0x5b39bb['push'](_0x5b39bb['shift']());}}}(a263_0x4e8c,0xe9ff5));import{readdir,stat}from'node:fs/promises';import{extname,join,relative}from'node:path';import{buildDefaultSqlFileName,buildSqlRelativePath}from'./utils.js';function extensionToMode(_0x53e6d2){const _0x4bb234=a263_0x4570;if(_0x53e6d2===_0x4bb234(0xb7))return _0x4bb234(0xb2);if(_0x53e6d2===_0x4bb234(0xb5))return _0x4bb234(0xc5);return undefined;}function a263_0x4570(_0x3fcdab,_0x17c908){_0x3fcdab=_0x3fcdab-0xa7;const _0x4e8ce2=a263_0x4e8c();let _0x4570d7=_0x4e8ce2[_0x3fcdab];return _0x4570d7;}async function scanSqlFilesRecursively(_0x31bd41,_0x19a530){const _0x25b329=a263_0x4570,_0x4d3823=[];try{const _0x1fc0c1=await readdir(_0x31bd41,{'withFileTypes':!![]});for(const _0x2cb42b of _0x1fc0c1){const _0x32caf8=join(_0x31bd41,_0x2cb42b[_0x25b329(0xbe)]);if(_0x2cb42b['isDirectory']()){_0x4d3823['push'](...await scanSqlFilesRecursively(_0x32caf8,_0x19a530));continue;}if(!_0x2cb42b['isFile']())continue;const _0x244d19=extname(_0x2cb42b[_0x25b329(0xbe)])[_0x25b329(0xb9)](),_0x487b01=extensionToMode(_0x244d19);if(!_0x487b01)continue;const _0x4e173d=relative(_0x19a530,_0x32caf8)[_0x25b329(0xb4)](/\\/g,'/'),_0x436e8d=_0x4e173d[_0x25b329(0xc1)]('/')[_0x25b329(0xa8)](Boolean),_0x145396=parseSqlPath(_0x436e8d,_0x2cb42b[_0x25b329(0xbe)],_0x244d19);if(!_0x145396)continue;_0x4d3823['push']({'sqlCode':_0x145396[_0x25b329(0xc6)],'sqlName':_0x145396[_0x25b329(0xc0)],'dbDirectory':_0x436e8d[0x0],'filePath':_0x32caf8,'relativePath':_0x4e173d,'lockKey':_0x145396[_0x25b329(0xc6)],'mode':_0x487b01});}}catch(_0x4f3e4d){if(_0x4f3e4d['code']!==_0x25b329(0xbc))throw _0x4f3e4d;}return _0x4d3823;}export async function scanLocalSqlQueries(_0x2bb64f){const _0x4295bd=a263_0x4570;return scanSqlFilesRecursively(_0x2bb64f[_0x4295bd(0xb3)],_0x2bb64f[_0x4295bd(0xb3)]);}export function resolveLocalSqlFilePath(_0x57efd4,_0x3ce81f,_0x4c83a5){const _0x384596=a263_0x4570,_0x4678b2=_0x4c83a5?.[_0x384596(0xb6)]||(_0x4c83a5?.['sqlName']||_0x4c83a5?.[_0x384596(0xbf)]?buildSqlRelativePath(_0x3ce81f,_0x4c83a5?.[_0x384596(0xc0)],_0x4c83a5?.[_0x384596(0xbf)],_0x4c83a5?.[_0x384596(0xbb)]||_0x384596(0xb2),_0x4c83a5?.[_0x384596(0xae)]):buildDefaultSqlFileName(_0x3ce81f,_0x4c83a5?.[_0x384596(0xbb)]||_0x384596(0xb2)));return join(_0x57efd4['sqlRootDir'],_0x4678b2);}export async function directoryExists(_0x375666){try{const _0x2e1f6d=await stat(_0x375666);return _0x2e1f6d['isDirectory']();}catch{return![];}}function parseSqlPath(_0x43d603,_0x33fc71,_0x2c2ebd){const _0x461138=a263_0x4570,_0x4815e8=_0x33fc71[_0x461138(0xb0)](0x0,-_0x2c2ebd[_0x461138(0xbd)]);if(_0x43d603[_0x461138(0xbd)]<0x2)return null;const _0x414100=_0x4815e8['indexOf']('_');if(_0x414100<=0x0||_0x414100>=_0x4815e8[_0x461138(0xbd)]-0x1)return null;const _0x4926ac=_0x4815e8[_0x461138(0xb0)](0x0,_0x414100);if(!isLikelySqlCode(_0x4926ac))return null;return{'sqlCode':_0x4926ac,'sqlName':_0x4815e8[_0x461138(0xb0)](_0x414100+0x1)};}function a263_0x4e8c(){const _0x331247=['288UjebBc','6qmMOmo','2cKmbnu','mybatisXml','sqlCode','18210126fdcmdA','filter','2516574JRjyuL','1094459NeKQpj','test','5164596NCwXyd','4238532xSiEbp','dbId','5541004KuhgVi','slice','194224DVVTjA','sql','sqlRootDir','replace','.xml','path','.sql','5INTxdO','toLowerCase','10DWzbCy','mode','ENOENT','length','name','dbName','sqlName','split'];a263_0x4e8c=function(){return _0x331247;};return a263_0x4e8c();}function isLikelySqlCode(_0x22211b){const _0x16f3fb=a263_0x4570;return/^[A-Za-z0-9-]+-[A-Za-z0-9-]+$/[_0x16f3fb(0xab)](_0x22211b);}
1
+ (function(_0xbcc238,_0x5907ce){const _0x3c1dcf=a279_0x2539,_0x328bcf=_0xbcc238();while(!![]){try{const _0x434765=-parseInt(_0x3c1dcf(0x120))/0x1+-parseInt(_0x3c1dcf(0x112))/0x2*(parseInt(_0x3c1dcf(0x117))/0x3)+-parseInt(_0x3c1dcf(0x105))/0x4+parseInt(_0x3c1dcf(0x11b))/0x5+-parseInt(_0x3c1dcf(0x123))/0x6*(parseInt(_0x3c1dcf(0x11a))/0x7)+-parseInt(_0x3c1dcf(0x114))/0x8*(-parseInt(_0x3c1dcf(0x104))/0x9)+-parseInt(_0x3c1dcf(0x11e))/0xa*(-parseInt(_0x3c1dcf(0x10f))/0xb);if(_0x434765===_0x5907ce)break;else _0x328bcf['push'](_0x328bcf['shift']());}catch(_0x152f3f){_0x328bcf['push'](_0x328bcf['shift']());}}}(a279_0x3928,0x8befa));import{readdir,stat}from'node:fs/promises';import{extname,join,relative}from'node:path';import{buildDefaultSqlFileName,buildSqlRelativePath}from'./utils.js';function a279_0x3928(){const _0x1bf635=['60cWLdwB','replace','686155EANlCR','indexOf','test','220788mVYbjl','ENOENT','split','1281573oSWyOL','1718664RSgaku','mybatisXml','isFile','filter','sql','.sql','mode','sqlName','name','push','5984022uqvxbr','sqlRootDir','dbName','1486kCpTtS','slice','8XzkmxX','length','dbId','4038lUAYpR','sqlCode','toLowerCase','196IAsrXE','1565060vdHAHa','isDirectory','.xml'];a279_0x3928=function(){return _0x1bf635;};return a279_0x3928();}function extensionToMode(_0x432088){const _0x553b00=a279_0x2539;if(_0x432088===_0x553b00(0x10a))return _0x553b00(0x109);if(_0x432088===_0x553b00(0x11d))return _0x553b00(0x106);return undefined;}async function scanSqlFilesRecursively(_0x5711bf,_0x5a5a90){const _0x5391f7=a279_0x2539,_0x504e7b=[];try{const _0xbc3884=await readdir(_0x5711bf,{'withFileTypes':!![]});for(const _0x102c2e of _0xbc3884){const _0x556397=join(_0x5711bf,_0x102c2e[_0x5391f7(0x10d)]);if(_0x102c2e[_0x5391f7(0x11c)]()){_0x504e7b[_0x5391f7(0x10e)](...await scanSqlFilesRecursively(_0x556397,_0x5a5a90));continue;}if(!_0x102c2e[_0x5391f7(0x107)]())continue;const _0x4927d3=extname(_0x102c2e['name'])[_0x5391f7(0x119)](),_0xd03004=extensionToMode(_0x4927d3);if(!_0xd03004)continue;const _0x310423=relative(_0x5a5a90,_0x556397)[_0x5391f7(0x11f)](/\\/g,'/'),_0x4392c8=_0x310423[_0x5391f7(0x125)]('/')[_0x5391f7(0x108)](Boolean),_0x3c9c16=parseSqlPath(_0x4392c8,_0x102c2e[_0x5391f7(0x10d)],_0x4927d3);if(!_0x3c9c16)continue;_0x504e7b[_0x5391f7(0x10e)]({'sqlCode':_0x3c9c16[_0x5391f7(0x118)],'sqlName':_0x3c9c16['sqlName'],'dbDirectory':_0x4392c8[0x0],'filePath':_0x556397,'relativePath':_0x310423,'lockKey':_0x3c9c16['sqlCode'],'mode':_0xd03004});}}catch(_0x344efa){if(_0x344efa['code']!==_0x5391f7(0x124))throw _0x344efa;}return _0x504e7b;}function a279_0x2539(_0x500a40,_0x3db8ad){_0x500a40=_0x500a40-0x104;const _0x39289d=a279_0x3928();let _0x253993=_0x39289d[_0x500a40];return _0x253993;}export async function scanLocalSqlQueries(_0x18e10f){const _0x39e1f7=a279_0x2539;return scanSqlFilesRecursively(_0x18e10f[_0x39e1f7(0x110)],_0x18e10f[_0x39e1f7(0x110)]);}export function resolveLocalSqlFilePath(_0x1d0004,_0x3f5cd7,_0x559aa9){const _0x39f90b=a279_0x2539,_0x1051ff=_0x559aa9?.['path']||(_0x559aa9?.[_0x39f90b(0x10c)]||_0x559aa9?.[_0x39f90b(0x111)]?buildSqlRelativePath(_0x3f5cd7,_0x559aa9?.[_0x39f90b(0x10c)],_0x559aa9?.[_0x39f90b(0x111)],_0x559aa9?.['mode']||'sql',_0x559aa9?.[_0x39f90b(0x116)]):buildDefaultSqlFileName(_0x3f5cd7,_0x559aa9?.[_0x39f90b(0x10b)]||_0x39f90b(0x109)));return join(_0x1d0004['sqlRootDir'],_0x1051ff);}export async function directoryExists(_0xc2aca7){try{const _0x2ec360=await stat(_0xc2aca7);return _0x2ec360['isDirectory']();}catch{return![];}}function parseSqlPath(_0x396a94,_0x143c2a,_0x419e36){const _0x54fb19=a279_0x2539,_0x1ec321=_0x143c2a['slice'](0x0,-_0x419e36['length']);if(_0x396a94[_0x54fb19(0x115)]<0x2)return null;const _0xdcb45a=_0x1ec321[_0x54fb19(0x121)]('_');if(_0xdcb45a<=0x0||_0xdcb45a>=_0x1ec321[_0x54fb19(0x115)]-0x1)return null;const _0x466e0b=_0x1ec321[_0x54fb19(0x113)](0x0,_0xdcb45a);if(!isLikelySqlCode(_0x466e0b))return null;return{'sqlCode':_0x466e0b,'sqlName':_0x1ec321[_0x54fb19(0x113)](_0xdcb45a+0x1)};}function isLikelySqlCode(_0x5cefe5){const _0x429488=a279_0x2539;return/^[A-Za-z0-9-]+-[A-Za-z0-9-]+$/[_0x429488(0x122)](_0x5cefe5);}
@@ -1 +1 @@
1
- (function(_0x1301fa,_0x3c2fad){const _0x400422=a264_0x4e8e,_0x3739d8=_0x1301fa();while(!![]){try{const _0x1510e6=parseInt(_0x400422(0x1dd))/0x1*(-parseInt(_0x400422(0x1df))/0x2)+parseInt(_0x400422(0x1d8))/0x3+parseInt(_0x400422(0x1da))/0x4+parseInt(_0x400422(0x1db))/0x5+-parseInt(_0x400422(0x1e1))/0x6*(-parseInt(_0x400422(0x1e4))/0x7)+parseInt(_0x400422(0x1d9))/0x8+parseInt(_0x400422(0x1e3))/0x9*(-parseInt(_0x400422(0x1e0))/0xa);if(_0x1510e6===_0x3c2fad)break;else _0x3739d8['push'](_0x3739d8['shift']());}catch(_0x206c2a){_0x3739d8['push'](_0x3739d8['shift']());}}}(a264_0x4fc3,0x840d3));import{readFile}from'node:fs/promises';import a264_0x297fe0 from'node:crypto';export function computeSqlContentHash(_0x34ea46){const _0x4b5fbe=a264_0x4e8e;return a264_0x297fe0['createHash'](_0x4b5fbe(0x1de))[_0x4b5fbe(0x1dc)](_0x34ea46)['digest']('hex');}function a264_0x4fc3(){const _0x47b40c=['2455176OiYszx','4893765pgIJeo','update','6oMOvha','md5','168106DZGtqm','30tbIhcE','745530fNpfNI','utf8','5217489hFLhLD','7ywRqtm','1671375tlwlvg','4083496wXTnZh'];a264_0x4fc3=function(){return _0x47b40c;};return a264_0x4fc3();}function a264_0x4e8e(_0x57e3de,_0x52da34){_0x57e3de=_0x57e3de-0x1d8;const _0x4fc3e9=a264_0x4fc3();let _0x4e8ec=_0x4fc3e9[_0x57e3de];return _0x4e8ec;}export async function computeSqlFileHash(_0x372c30){const _0x54a946=a264_0x4e8e,_0x3db966=await readFile(_0x372c30,_0x54a946(0x1e2));return computeSqlContentHash(_0x3db966);}
1
+ (function(_0x1cef93,_0x16dfb2){const _0x517dd3=a280_0x26d5,_0x4e62a5=_0x1cef93();while(!![]){try{const _0x3ebd3c=-parseInt(_0x517dd3(0x12a))/0x1*(-parseInt(_0x517dd3(0x12e))/0x2)+parseInt(_0x517dd3(0x12c))/0x3*(parseInt(_0x517dd3(0x129))/0x4)+parseInt(_0x517dd3(0x134))/0x5*(-parseInt(_0x517dd3(0x126))/0x6)+-parseInt(_0x517dd3(0x128))/0x7*(parseInt(_0x517dd3(0x12d))/0x8)+parseInt(_0x517dd3(0x132))/0x9*(-parseInt(_0x517dd3(0x123))/0xa)+parseInt(_0x517dd3(0x12b))/0xb*(parseInt(_0x517dd3(0x125))/0xc)+-parseInt(_0x517dd3(0x12f))/0xd*(-parseInt(_0x517dd3(0x136))/0xe);if(_0x3ebd3c===_0x16dfb2)break;else _0x4e62a5['push'](_0x4e62a5['shift']());}catch(_0x55351d){_0x4e62a5['push'](_0x4e62a5['shift']());}}}(a280_0x4db8,0x2a661));import{readFile}from'node:fs/promises';import a280_0x1afbb3 from'node:crypto';function a280_0x4db8(){const _0x52e0bc=['13mmXtlb','md5','update','2574KlJFKU','digest','337085fvfyso','utf8','8447082yCthyw','11300SMdCHu','hex','12KfQfHY','24MKoZKt','createHash','7qAaVhc','61544pDnSqG','9413DzhQWZ','10109jAQIhv','45vETail','1753336ytEPkQ','32EcIHEx'];a280_0x4db8=function(){return _0x52e0bc;};return a280_0x4db8();}function a280_0x26d5(_0x5a1333,_0x4287fb){_0x5a1333=_0x5a1333-0x123;const _0x4db8d2=a280_0x4db8();let _0x26d5dd=_0x4db8d2[_0x5a1333];return _0x26d5dd;}export function computeSqlContentHash(_0x1c9022){const _0x229d44=a280_0x26d5;return a280_0x1afbb3[_0x229d44(0x127)](_0x229d44(0x130))[_0x229d44(0x131)](_0x1c9022)[_0x229d44(0x133)](_0x229d44(0x124));}export async function computeSqlFileHash(_0x49628e){const _0x42c4ef=a280_0x26d5,_0x5ad9cf=await readFile(_0x49628e,_0x42c4ef(0x135));return computeSqlContentHash(_0x5ad9cf);}
@@ -1 +1 @@
1
- (function(_0x5743f5,_0xf506da){const _0x14a7ee=a265_0x1e77,_0x9b9ac7=_0x5743f5();while(!![]){try{const _0x199630=parseInt(_0x14a7ee(0xc9))/0x1+-parseInt(_0x14a7ee(0xc3))/0x2+-parseInt(_0x14a7ee(0xc8))/0x3*(-parseInt(_0x14a7ee(0xc4))/0x4)+-parseInt(_0x14a7ee(0xd0))/0x5+-parseInt(_0x14a7ee(0xcc))/0x6*(parseInt(_0x14a7ee(0xd4))/0x7)+-parseInt(_0x14a7ee(0xcf))/0x8*(parseInt(_0x14a7ee(0xcb))/0x9)+-parseInt(_0x14a7ee(0xcd))/0xa*(-parseInt(_0x14a7ee(0xc5))/0xb);if(_0x199630===_0xf506da)break;else _0x9b9ac7['push'](_0x9b9ac7['shift']());}catch(_0x154c88){_0x9b9ac7['push'](_0x9b9ac7['shift']());}}}(a265_0x4d40,0x7a1a3));import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';function a265_0x1e77(_0x23166e,_0x24ad6f){_0x23166e=_0x23166e-0xc3;const _0x4d40fe=a265_0x4d40();let _0x1e779d=_0x4d40fe[_0x23166e];return _0x1e779d;}function a265_0x4d40(){const _0x1f738a=['9rJbwUT','1266AzpWmQ','5930oNORlG','code','1799864xRBZvi','3606725MjtVSt','sqlRoot','Check\x20.rabetbase/sql.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.','apps','3136lZsNIS','\x22.\x20','1938588iPTmOS','3841476RRUxbH','22264ZYeAuB','\x22\x20vs\x20lock\x20\x22','lastSync','3HAZjwU','349680GPNVmT','ENOENT'];a265_0x4d40=function(){return _0x1f738a;};return a265_0x4d40();}export function createEmptySqlLock(){return{'apps':{}};}export function ensureSqlLockScope(_0x1ddb4a,_0x5eca6a,_0x4a952c,_0x24a020){const _0x39f9cd=a265_0x1e77,_0x2442e8=_0x1ddb4a??createEmptySqlLock();let _0x54574f=_0x2442e8[_0x39f9cd(0xd3)][_0x5eca6a];if(!_0x54574f)return _0x54574f={'sqlRoot':_0x4a952c,'lastSync':'','sqls':{}},_0x2442e8[_0x39f9cd(0xd3)][_0x5eca6a]=_0x54574f,{'lockData':_0x2442e8,'appLock':_0x54574f};if(!_0x54574f[_0x39f9cd(0xd1)])_0x54574f['sqlRoot']=_0x4a952c;else{if(_0x54574f[_0x39f9cd(0xd1)]!==_0x4a952c)throw new Error(_0x24a020+':\x20sqlRoot\x20mismatch\x20—\x20current\x20\x22'+_0x4a952c+_0x39f9cd(0xc6)+_0x54574f[_0x39f9cd(0xd1)]+_0x39f9cd(0xd5)+_0x39f9cd(0xd2));}return!_0x54574f['sqls']&&(_0x54574f['sqls']={}),!_0x54574f['lastSync']&&(_0x54574f[_0x39f9cd(0xc7)]=''),{'lockData':_0x2442e8,'appLock':_0x54574f};}export async function readSqlLockFile(_0x506e42){const _0x541411=a265_0x1e77;try{const _0x1ffcad=await readFile(_0x506e42,'utf8');return JSON['parse'](_0x1ffcad);}catch(_0x51c70b){if(_0x51c70b[_0x541411(0xce)]===_0x541411(0xca))return null;throw new Error('Failed\x20to\x20read\x20SQL\x20lock\x20file:\x20'+String(_0x51c70b));}}export async function writeSqlLockFile(_0x57e72a,_0x59f2cc){await mkdir(dirname(_0x57e72a),{'recursive':!![]}),await writeFile(_0x57e72a,JSON['stringify'](_0x59f2cc,null,0x2),'utf8');}
1
+ function a281_0x3045(){const _0x2d4c00=['apps','utf8','14287734kgSjSL','97592ERkzdn','sqls','3362484IjVUFH','lastSync','stringify','8321335JoDvIU','2148839BOnNck',':\x20sqlRoot\x20mismatch\x20—\x20current\x20\x22','21376OGDcDf','sqlRoot','58IagJFO','\x22.\x20','code','4mveXuB','ENOENT','Check\x20.rabetbase/sql.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.','10933938NMAouM','parse'];a281_0x3045=function(){return _0x2d4c00;};return a281_0x3045();}(function(_0x34a76f,_0x2d0808){const _0x37bf78=a281_0x115b,_0x1ceec7=_0x34a76f();while(!![]){try{const _0x99b75c=parseInt(_0x37bf78(0x150))/0x1*(parseInt(_0x37bf78(0x152))/0x2)+-parseInt(_0x37bf78(0x15f))/0x3+-parseInt(_0x37bf78(0x155))/0x4*(parseInt(_0x37bf78(0x162))/0x5)+parseInt(_0x37bf78(0x158))/0x6+-parseInt(_0x37bf78(0x14e))/0x7+-parseInt(_0x37bf78(0x15d))/0x8+parseInt(_0x37bf78(0x15c))/0x9;if(_0x99b75c===_0x2d0808)break;else _0x1ceec7['push'](_0x1ceec7['shift']());}catch(_0x2206c2){_0x1ceec7['push'](_0x1ceec7['shift']());}}}(a281_0x3045,0xe1f2a));import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';function a281_0x115b(_0x52e267,_0x369909){_0x52e267=_0x52e267-0x14e;const _0x30459d=a281_0x3045();let _0x115b84=_0x30459d[_0x52e267];return _0x115b84;}export function createEmptySqlLock(){return{'apps':{}};}export function ensureSqlLockScope(_0x261d0f,_0x2ba8fb,_0x4ced5a,_0x1b4c67){const _0xeb8aa6=a281_0x115b,_0x51b9b5=_0x261d0f??createEmptySqlLock();let _0x322d9d=_0x51b9b5[_0xeb8aa6(0x15a)][_0x2ba8fb];if(!_0x322d9d)return _0x322d9d={'sqlRoot':_0x4ced5a,'lastSync':'','sqls':{}},_0x51b9b5[_0xeb8aa6(0x15a)][_0x2ba8fb]=_0x322d9d,{'lockData':_0x51b9b5,'appLock':_0x322d9d};if(!_0x322d9d[_0xeb8aa6(0x151)])_0x322d9d['sqlRoot']=_0x4ced5a;else{if(_0x322d9d['sqlRoot']!==_0x4ced5a)throw new Error(_0x1b4c67+_0xeb8aa6(0x14f)+_0x4ced5a+'\x22\x20vs\x20lock\x20\x22'+_0x322d9d['sqlRoot']+_0xeb8aa6(0x153)+_0xeb8aa6(0x157));}return!_0x322d9d[_0xeb8aa6(0x15e)]&&(_0x322d9d['sqls']={}),!_0x322d9d['lastSync']&&(_0x322d9d[_0xeb8aa6(0x160)]=''),{'lockData':_0x51b9b5,'appLock':_0x322d9d};}export async function readSqlLockFile(_0x41640a){const _0x2db059=a281_0x115b;try{const _0x5e713b=await readFile(_0x41640a,_0x2db059(0x15b));return JSON[_0x2db059(0x159)](_0x5e713b);}catch(_0x19509f){if(_0x19509f[_0x2db059(0x154)]===_0x2db059(0x156))return null;throw new Error('Failed\x20to\x20read\x20SQL\x20lock\x20file:\x20'+String(_0x19509f));}}export async function writeSqlLockFile(_0x8b4b5a,_0x3cb0fe){const _0x42d9ad=a281_0x115b;await mkdir(dirname(_0x8b4b5a),{'recursive':!![]}),await writeFile(_0x8b4b5a,JSON[_0x42d9ad(0x161)](_0x3cb0fe,null,0x2),_0x42d9ad(0x15b));}
@@ -1 +1 @@
1
- function a267_0x3ae8(){const _0x2d477b=['1058344atukCY','.sql','1317012RacXdX','trim','1571256SJAvOj','457406ENoSbV','mybatisXml','427lpOZho','replace','1612sFXvyo','sql','10895kjpyxl','unknown-sql','4yyjICu','1671210VVHBjm','.xml','unknown-db','db-','68844OFyTLO'];a267_0x3ae8=function(){return _0x2d477b;};return a267_0x3ae8();}(function(_0x175cec,_0x61443c){const _0x469508=a267_0x5510,_0x1cb276=_0x175cec();while(!![]){try{const _0x54b960=-parseInt(_0x469508(0x126))/0x1+parseInt(_0x469508(0x11b))/0x2*(parseInt(_0x469508(0x123))/0x3)+-parseInt(_0x469508(0x117))/0x4*(parseInt(_0x469508(0x119))/0x5)+parseInt(_0x469508(0x120))/0x6*(parseInt(_0x469508(0x115))/0x7)+-parseInt(_0x469508(0x121))/0x8+parseInt(_0x469508(0x125))/0x9+parseInt(_0x469508(0x11c))/0xa;if(_0x54b960===_0x61443c)break;else _0x1cb276['push'](_0x1cb276['shift']());}catch(_0x39d880){_0x1cb276['push'](_0x1cb276['shift']());}}}(a267_0x3ae8,0x6e4cf));export function detectSqlMode(_0x191083){const _0x45919c=a267_0x5510,_0x1efbbd=_0x191083['trimStart']();if(/^<(select|insert|update|delete)\b/i['test'](_0x1efbbd))return _0x45919c(0x127);return _0x45919c(0x118);}export function getSqlFileExtension(_0x566426){const _0xb80006=a267_0x5510;return _0x566426===_0xb80006(0x127)?_0xb80006(0x11d):_0xb80006(0x122);}export function buildDefaultSqlFileName(_0x567999,_0x2794cc){return''+_0x567999+getSqlFileExtension(_0x2794cc);}export function sanitizeSqlPathSegment(_0x3c6f3f,_0x3888de){const _0x85d534=a267_0x5510,_0x4857c6=String(_0x3c6f3f??'')[_0x85d534(0x124)](),_0x120773=_0x4857c6['replace'](/[<>:"/\\|?*\u0000-\u001F]/g,'-')['replace'](/\s+/g,'-')['replace'](/-+/g,'-')[_0x85d534(0x116)](/^\.+/,'')['replace'](/\.+$/,'')['replace'](/^-+/,'')['replace'](/-+$/,'');return _0x120773||_0x3888de;}export function buildDbDirectoryName(_0x2de34b,_0x5d0d6a){const _0x5f576c=a267_0x5510;return sanitizeSqlPathSegment(_0x2de34b,_0x5d0d6a!=null?_0x5f576c(0x11f)+_0x5d0d6a:_0x5f576c(0x11e));}function a267_0x5510(_0x4c9518,_0x453f00){_0x4c9518=_0x4c9518-0x115;const _0x3ae848=a267_0x3ae8();let _0x551000=_0x3ae848[_0x4c9518];return _0x551000;}export function buildSqlRelativePath(_0x3d2524,_0x14a733,_0x99527a,_0x59f905,_0x3dc640){const _0x395b16=a267_0x5510,_0x273243=buildDbDirectoryName(_0x99527a,_0x3dc640),_0x288737=sanitizeSqlPathSegment(_0x3d2524,_0x395b16(0x11a)),_0x5d0c4d=sanitizeSqlPathSegment(_0x14a733,_0x288737);return _0x273243+'/'+_0x288737+'_'+_0x5d0c4d+getSqlFileExtension(_0x59f905);}
1
+ (function(_0x4e6064,_0x15e0e3){const _0x572ee5=a283_0x3d3d,_0x1f07b9=_0x4e6064();while(!![]){try{const _0x52df28=parseInt(_0x572ee5(0x1b1))/0x1*(parseInt(_0x572ee5(0x1ba))/0x2)+-parseInt(_0x572ee5(0x1b6))/0x3*(-parseInt(_0x572ee5(0x1c3))/0x4)+-parseInt(_0x572ee5(0x1b3))/0x5+-parseInt(_0x572ee5(0x1bc))/0x6*(parseInt(_0x572ee5(0x1c2))/0x7)+parseInt(_0x572ee5(0x1b4))/0x8*(parseInt(_0x572ee5(0x1c5))/0x9)+parseInt(_0x572ee5(0x1b9))/0xa*(parseInt(_0x572ee5(0x1c6))/0xb)+-parseInt(_0x572ee5(0x1bf))/0xc*(parseInt(_0x572ee5(0x1c7))/0xd);if(_0x52df28===_0x15e0e3)break;else _0x1f07b9['push'](_0x1f07b9['shift']());}catch(_0x5ca505){_0x1f07b9['push'](_0x1f07b9['shift']());}}}(a283_0x5865,0x22749));export function detectSqlMode(_0x21effb){const _0x14e8d2=a283_0x3d3d,_0xb67419=_0x21effb[_0x14e8d2(0x1b5)]();if(/^<(select|insert|update|delete)\b/i[_0x14e8d2(0x1bb)](_0xb67419))return'mybatisXml';return _0x14e8d2(0x1b2);}export function getSqlFileExtension(_0x36a1fb){const _0x23cf6c=a283_0x3d3d;return _0x36a1fb===_0x23cf6c(0x1c0)?_0x23cf6c(0x1b7):_0x23cf6c(0x1bd);}export function buildDefaultSqlFileName(_0x1e9683,_0x4012ce){return''+_0x1e9683+getSqlFileExtension(_0x4012ce);}function a283_0x3d3d(_0x36bd19,_0x25d0ac){_0x36bd19=_0x36bd19-0x1b1;const _0x586542=a283_0x5865();let _0x3d3d6f=_0x586542[_0x36bd19];return _0x3d3d6f;}function a283_0x5865(){const _0xb9e5d2=['sql','1234015LaPugI','8JASLjt','trimStart','3ujoqLv','.xml','trim','957260ACHYFj','7162yeRabB','test','17022HEIMyG','.sql','unknown-db','924Taapur','mybatisXml','replace','476UTpWCY','989428mrQEAy','unknown-sql','1433583VEepdj','22EHApMf','49465azeORb','77KziypJ'];a283_0x5865=function(){return _0xb9e5d2;};return a283_0x5865();}export function sanitizeSqlPathSegment(_0x97e5a4,_0x514b58){const _0x22ec80=a283_0x3d3d,_0x322c76=String(_0x97e5a4??'')[_0x22ec80(0x1b8)](),_0x5c2134=_0x322c76[_0x22ec80(0x1c1)](/[<>:"/\\|?*\u0000-\u001F]/g,'-')[_0x22ec80(0x1c1)](/\s+/g,'-')[_0x22ec80(0x1c1)](/-+/g,'-')['replace'](/^\.+/,'')[_0x22ec80(0x1c1)](/\.+$/,'')[_0x22ec80(0x1c1)](/^-+/,'')[_0x22ec80(0x1c1)](/-+$/,'');return _0x5c2134||_0x514b58;}export function buildDbDirectoryName(_0x568ac7,_0x1162c8){const _0x20d446=a283_0x3d3d;return sanitizeSqlPathSegment(_0x568ac7,_0x1162c8!=null?'db-'+_0x1162c8:_0x20d446(0x1be));}export function buildSqlRelativePath(_0x105714,_0x330e6b,_0x10723a,_0x415e35,_0x46d922){const _0x47f436=a283_0x3d3d,_0x19a19d=buildDbDirectoryName(_0x10723a,_0x46d922),_0x47239d=sanitizeSqlPathSegment(_0x105714,_0x47f436(0x1c4)),_0x57f760=sanitizeSqlPathSegment(_0x330e6b,_0x47239d);return _0x19a19d+'/'+_0x47239d+'_'+_0x57f760+getSqlFileExtension(_0x415e35);}
@@ -1 +1 @@
1
- const a268_0x18081a=a268_0x36b4;(function(_0x4804c5,_0x479d50){const _0x4792b9=a268_0x36b4,_0x59c1cb=_0x4804c5();while(!![]){try{const _0x2d267a=parseInt(_0x4792b9(0x135))/0x1+parseInt(_0x4792b9(0xf5))/0x2+-parseInt(_0x4792b9(0x114))/0x3*(parseInt(_0x4792b9(0x11f))/0x4)+-parseInt(_0x4792b9(0x136))/0x5*(parseInt(_0x4792b9(0x13a))/0x6)+-parseInt(_0x4792b9(0x116))/0x7*(parseInt(_0x4792b9(0xfd))/0x8)+parseInt(_0x4792b9(0x12b))/0x9+-parseInt(_0x4792b9(0x11a))/0xa*(-parseInt(_0x4792b9(0xed))/0xb);if(_0x2d267a===_0x479d50)break;else _0x59c1cb['push'](_0x59c1cb['shift']());}catch(_0x139d9f){_0x59c1cb['push'](_0x59c1cb['shift']());}}}(a268_0x3a79,0x7b22e));const MYBATIS_OUTER_TAGS=new Map([[a268_0x18081a(0x11b),a268_0x18081a(0x113)],[a268_0x18081a(0x109),a268_0x18081a(0x127)],['update',a268_0x18081a(0x11c)],['delete','DELETE']]),MYBATIS_DYNAMIC_TAGS=new Set(['if',a268_0x18081a(0xf3),'foreach',a268_0x18081a(0x110),'when',a268_0x18081a(0x124),'trim','set',a268_0x18081a(0xf8),a268_0x18081a(0x129),a268_0x18081a(0xe5)]),MYBATIS_BRANCH_TAGS=new Set(['if','foreach','choose',a268_0x18081a(0x13d),a268_0x18081a(0x124)]);export const MYBATIS_DYNAMIC_START_MARKER=a268_0x18081a(0x134);export const MYBATIS_DYNAMIC_END_MARKER=a268_0x18081a(0x137);export const MYBATIS_INCLUDE_MARKER=a268_0x18081a(0x10c);const UNRESOLVED_SQL_FRAGMENT=a268_0x18081a(0xf1),MYBATIS_OUTER_TAG_PATTERN=new RegExp(a268_0x18081a(0x101)+[...MYBATIS_OUTER_TAGS[a268_0x18081a(0x121)]()][a268_0x18081a(0xec)]('|')+')\x5cb','i');export function normalizeSqlForStaticAnalysis(_0x4a9bfb){const _0x2045ec=a268_0x18081a,_0x2c722e=typeof _0x4a9bfb===_0x2045ec(0x111)?_0x4a9bfb:'';if(!startsWithMybatisStatementWrapper(_0x2c722e))return{'sql':_0x2c722e,'mode':_0x2045ec(0x107)};let _0x28868f=0x0,_0x39e1e5='',_0x2b04bd,_0x5894a4=![],_0x54c4d1=![];const _0x341686=[];while(_0x28868f<_0x2c722e[_0x2045ec(0x13c)]){if(_0x2c722e[_0x2045ec(0x118)](_0x2045ec(0x115),_0x28868f)){const _0x2242e5=_0x2c722e[_0x2045ec(0x12a)](_0x2045ec(0x131),_0x28868f+0x4);if(_0x2242e5<0x0)return invalidMybatisSource('Unterminated\x20XML\x20comment.');_0x39e1e5+='\x20',_0x28868f=_0x2242e5+0x3;continue;}if(_0x2c722e[_0x2045ec(0x118)]('<![CDATA[',_0x28868f)){if(!_0x5894a4||_0x54c4d1)return invalidMybatisSource(_0x2045ec(0xe8));const _0x2f00e5=_0x2c722e[_0x2045ec(0x12a)](']]>',_0x28868f+0x9);if(_0x2f00e5<0x0)return invalidMybatisSource('Unterminated\x20CDATA\x20section.');_0x39e1e5+=_0x2c722e[_0x2045ec(0x122)](_0x28868f+0x9,_0x2f00e5),_0x28868f=_0x2f00e5+0x3;continue;}if(_0x2c722e[_0x2045ec(0x118)]('<?',_0x28868f)){if(_0x5894a4)return invalidMybatisSource(_0x2045ec(0x120));const _0x4267c6=_0x2c722e[_0x2045ec(0x12a)]('?>',_0x28868f+0x2);if(_0x4267c6<0x0)return invalidMybatisSource(_0x2045ec(0x125));_0x39e1e5+='\x20',_0x28868f=_0x4267c6+0x2;continue;}if(_0x2c722e[_0x28868f]!=='<'){const _0x514945=_0x2c722e[_0x2045ec(0x12a)]('<',_0x28868f),_0x2c1ca9=_0x514945<0x0?_0x2c722e['length']:_0x514945,_0x44b200=_0x2c722e['slice'](_0x28868f,_0x2c1ca9);if((!_0x5894a4||_0x54c4d1)&&_0x44b200[_0x2045ec(0xe7)]())return invalidMybatisSource(_0x2045ec(0xe4));if(_0x5894a4&&!_0x54c4d1){const _0x230b6a=decodeXmlEntities(_0x44b200);if(_0x230b6a===null)return invalidMybatisSource('Invalid\x20XML\x20entity\x20reference.');_0x39e1e5+=_0x230b6a;}else _0x39e1e5+='\x20';_0x28868f=_0x2c1ca9;continue;}const _0x156529=findXmlTagEnd(_0x2c722e,_0x28868f);if(_0x156529<0x0)return invalidMybatisSource(_0x2045ec(0x100));const _0x5d100b=_0x2c722e[_0x2045ec(0x122)](_0x28868f,_0x156529+0x1),_0x535eac=/^<\s*(\/?)\s*([A-Za-z][\w:-]*)([\s\S]*?)(\/?)\s*>$/['exec'](_0x5d100b);if(!_0x535eac)return invalidMybatisSource('Invalid\x20MyBatis\x20XML\x20tag.');const _0x511c81=_0x535eac[0x1]==='/',_0x5b16aa=_0x535eac[0x2]??'',_0xdebc83=_0x5b16aa[_0x2045ec(0x132)](),_0x553bf8=_0x535eac[0x3]??'',_0x1d2d1f=_0x535eac[0x4]==='/',_0x38c9a5=MYBATIS_OUTER_TAGS[_0x2045ec(0xf6)](_0xdebc83);if(!_0x38c9a5&&!MYBATIS_DYNAMIC_TAGS[_0x2045ec(0x102)](_0xdebc83))return invalidMybatisSource(_0x2045ec(0x12d)+_0xdebc83+'>.');if(!_0x38c9a5&&_0x5b16aa!==_0xdebc83)return invalidMybatisSource(_0x2045ec(0x10f)+_0x5b16aa+'>.');if(_0x511c81){if(_0x553bf8[_0x2045ec(0xe7)]()||_0x1d2d1f)return invalidMybatisSource(_0x2045ec(0x12f)+_0x5b16aa+'>.');const _0x272851=_0x341686['at'](-0x1);if(!_0x272851||(_0x272851['outer']?_0x272851[_0x2045ec(0x103)]!==_0xdebc83:_0x272851[_0x2045ec(0x104)]!==_0x5b16aa))return invalidMybatisSource('Mismatched\x20MyBatis\x20XML\x20closing\x20tag:\x20</'+_0x5b16aa+'>.');_0x341686[_0x2045ec(0xf9)]();if(_0x272851[_0x2045ec(0x140)])_0x54c4d1=!![];_0x39e1e5+=MYBATIS_BRANCH_TAGS[_0x2045ec(0x102)](_0xdebc83)?'\x20'+MYBATIS_DYNAMIC_END_MARKER+'\x20':'\x20';}else{if(!hasWellFormedXmlAttributes(_0x553bf8))return invalidMybatisSource(_0x2045ec(0x117)+_0x5b16aa+'>.');if(_0xdebc83===_0x2045ec(0xe5)&&(!_0x1d2d1f||_0x341686['at'](-0x1)?.[_0x2045ec(0x103)]!=='include'))return invalidMybatisSource(_0x2045ec(0xe9));if(_0x38c9a5){if(_0x5894a4||_0x341686[_0x2045ec(0x13c)]>0x0)return invalidMybatisSource(_0x2045ec(0xe6));_0x5894a4=!![],_0x54c4d1=_0x1d2d1f,_0x2b04bd=_0x38c9a5;}else{if(!_0x5894a4||_0x54c4d1)return invalidMybatisSource(_0x2045ec(0xff)+_0x5b16aa+'>.');}_0x39e1e5+=_0xdebc83===_0x2045ec(0xf3)?'\x20WHERE\x20':_0xdebc83===_0x2045ec(0x108)?_0x2045ec(0xf2):_0xdebc83===_0x2045ec(0x129)?'\x20'+MYBATIS_INCLUDE_MARKER+'\x20':MYBATIS_BRANCH_TAGS['has'](_0xdebc83)&&!_0x1d2d1f?'\x20'+MYBATIS_DYNAMIC_START_MARKER+'\x20':'\x20',!_0x1d2d1f&&_0x341686[_0x2045ec(0xeb)]({'rawName':_0x5b16aa,'tagName':_0xdebc83,'outer':!!_0x38c9a5});}_0x28868f=_0x156529+0x1;}if(_0x341686[_0x2045ec(0x13c)]>0x0)return invalidMybatisSource(_0x2045ec(0x11e)+_0x341686['at'](-0x1)?.[_0x2045ec(0x104)]+'>.');if(!_0x5894a4||!_0x54c4d1)return invalidMybatisSource(_0x2045ec(0xf4));return{'sql':_0x39e1e5[_0x2045ec(0xe7)](),'mode':_0x2045ec(0xf7),..._0x2b04bd?{'statementType':_0x2b04bd}:{}};}function hasWellFormedXmlAttributes(_0x21220a){const _0x23c268=a268_0x18081a;let _0xe9f684=0x0;const _0x955e00=new Set();while(_0xe9f684<_0x21220a[_0x23c268(0x13c)]){while(_0xe9f684<_0x21220a[_0x23c268(0x13c)]&&/\s/['test'](_0x21220a[_0xe9f684]??''))_0xe9f684+=0x1;if(_0xe9f684>=_0x21220a['length'])return!![];const _0x31bef6=/^[A-Za-z_:][\w:.-]*/[_0x23c268(0x126)](_0x21220a[_0x23c268(0x122)](_0xe9f684)),_0x3d6458=_0x31bef6?.[0x0];if(!_0x3d6458||_0x955e00[_0x23c268(0x102)](_0x3d6458))return![];_0x955e00[_0x23c268(0x10e)](_0x3d6458),_0xe9f684+=_0x3d6458[_0x23c268(0x13c)];while(_0xe9f684<_0x21220a['length']&&/\s/['test'](_0x21220a[_0xe9f684]??''))_0xe9f684+=0x1;if(_0x21220a[_0xe9f684]!=='=')return![];_0xe9f684+=0x1;while(_0xe9f684<_0x21220a[_0x23c268(0x13c)]&&/\s/[_0x23c268(0x13b)](_0x21220a[_0xe9f684]??''))_0xe9f684+=0x1;const _0x5db30c=_0x21220a[_0xe9f684];if(_0x5db30c!=='\x22'&&_0x5db30c!=='\x27')return![];_0xe9f684+=0x1;const _0xb679cf=_0x21220a[_0x23c268(0x12a)](_0x5db30c,_0xe9f684);if(_0xb679cf<0x0)return![];if(decodeXmlEntities(_0x21220a[_0x23c268(0x122)](_0xe9f684,_0xb679cf))===null)return![];_0xe9f684=_0xb679cf+0x1;}return!![];}function startsWithMybatisStatementWrapper(_0x5a0591){const _0x42ddc2=a268_0x18081a;let _0x2e4ecd=0x0;const _0x457b82=()=>{const _0x3277fd=a268_0x36b4;while(_0x2e4ecd<_0x5a0591['length']&&/\s/[_0x3277fd(0x13b)](_0x5a0591[_0x2e4ecd]??''))_0x2e4ecd+=0x1;};_0x457b82();while(_0x2e4ecd<_0x5a0591['length']){if(_0x5a0591['startsWith']('<!--',_0x2e4ecd)){const _0x2ed3c6=_0x5a0591[_0x42ddc2(0x12a)]('-->',_0x2e4ecd+0x4);if(_0x2ed3c6<0x0)return!![];_0x2e4ecd=_0x2ed3c6+0x3,_0x457b82();continue;}if(_0x5a0591[_0x42ddc2(0x118)]('<?',_0x2e4ecd)){const _0x442bbe=_0x5a0591[_0x42ddc2(0x12a)]('?>',_0x2e4ecd+0x2);if(_0x442bbe<0x0)return!![];_0x2e4ecd=_0x442bbe+0x2,_0x457b82();continue;}break;}return MYBATIS_OUTER_TAG_PATTERN[_0x42ddc2(0x13b)](_0x5a0591['slice'](_0x2e4ecd));}function invalidMybatisSource(_0x1d8e30){const _0x201337=a268_0x18081a;return{'sql':'','mode':_0x201337(0xf7),'error':_0x1d8e30};}function findXmlTagEnd(_0x56da9a,_0x251aa6){const _0x100f4e=a268_0x18081a;let _0x569f8d;for(let _0x4338ea=_0x251aa6+0x1;_0x4338ea<_0x56da9a[_0x100f4e(0x13c)];_0x4338ea+=0x1){const _0x4d13eb=_0x56da9a[_0x4338ea];if(_0x569f8d){if(_0x4d13eb===_0x569f8d)_0x569f8d=undefined;continue;}if(_0x4d13eb==='\x22'||_0x4d13eb==='\x27'){_0x569f8d=_0x4d13eb;continue;}if(_0x4d13eb==='>')return _0x4338ea;}return-0x1;}function decodeXmlEntities(_0x3de34d){let _0x1836d4=![];const _0x5d4be7=_0x3de34d['replace'](/&(?:#x[0-9a-f]+;|#[0-9]+;|[A-Za-z_:][\w:.-]*;)?/g,_0xaa342e=>{const _0x3cb016=a268_0x36b4;if(_0xaa342e===_0x3cb016(0x130))return'<';if(_0xaa342e===_0x3cb016(0x10d))return'>';if(_0xaa342e===_0x3cb016(0x128))return'\x22';if(_0xaa342e===_0x3cb016(0x10a))return'\x27';if(_0xaa342e==='&amp;')return'&';const _0x5b3b3a=/^&#(?:x([0-9a-f]+)|([0-9]+));$/[_0x3cb016(0x126)](_0xaa342e);if(_0x5b3b3a){const _0xa72075=_0x5b3b3a[0x1],_0x206354=_0x5b3b3a[0x2],_0x2758c1=Number[_0x3cb016(0x10b)](_0xa72075??_0x206354??'',_0xa72075?0x10:0xa);if(isValidXmlCharacter(_0x2758c1))return String['fromCodePoint'](_0x2758c1);}return _0x1836d4=!![],'';});return _0x1836d4?null:_0x5d4be7;}function isValidXmlCharacter(_0x5814d4){return _0x5814d4===0x9||_0x5814d4===0xa||_0x5814d4===0xd||_0x5814d4>=0x20&&_0x5814d4<=0xd7ff||_0x5814d4>=0xe000&&_0x5814d4<=0xfffd||_0x5814d4>=0x10000&&_0x5814d4<=0x10ffff;}function a268_0x3a79(){const _0x3a101f=['include','indexOf','1350567DCNwss','error','Unsupported\x20MyBatis\x20XML\x20tag:\x20<','SQL\x20contains\x20blocked\x20DELETE\x20or\x20DDL\x20statements','Invalid\x20MyBatis\x20XML\x20closing\x20tag:\x20</','&lt;','-->','toLowerCase','match','__RABETBASE_MYBATIS_DYNAMIC_START__','971723SaRGhw','3385wsfOGy','__RABETBASE_MYBATIS_DYNAMIC_END__','\x20with\x20parameters:\x20','SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT','5550ZWjxfu','test','length','when','DELETE','WITH','outer','SQL\x20text\x20must\x20be\x20inside\x20the\x20MyBatis\x20statement\x20wrapper.','property','Multiple\x20MyBatis\x20statement\x20wrappers\x20are\x20not\x20supported.','trim','CDATA\x20sections\x20must\x20be\x20inside\x20the\x20MyBatis\x20statement\x20wrapper.','MyBatis\x20<property>\x20must\x20be\x20a\x20self-closing\x20direct\x20child\x20of\x20<include>.','unknown\x20table(s)','push','join','66nMIvYf','Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.','includes','replaceAll','__RABETBASE_UNRESOLVED_SQL_FRAGMENT__','\x20SET\x20','where','MyBatis\x20XML\x20must\x20contain\x20exactly\x20one\x20complete\x20statement\x20wrapper.','1843232CFnehi','get','mybatisXml','bind','pop','UNKNOWN','\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.','replace','1973096hnuWPk','split','MyBatis\x20dynamic\x20tag\x20must\x20be\x20inside\x20the\x20statement\x20wrapper:\x20<','Unterminated\x20MyBatis\x20XML\x20tag.','^<\x5cs*(?:','has','tagName','rawName','matchAll','Unable\x20to\x20detect\x20SQL\x20type.\x20','sql','set','insert','&apos;','parseInt','__RABETBASE_MYBATIS_INCLUDE_UNRESOLVED__','&gt;','add','MyBatis\x20dynamic\x20tag\x20names\x20must\x20be\x20lowercase:\x20<','choose','string','type','SELECT','942MvDjbf','<!--','7JinfZd','Invalid\x20attributes\x20on\x20MyBatis\x20XML\x20tag:\x20<','startsWith','DDL\x20statements\x20are\x20blocked\x20from\x20auto-save','101750IbrwdK','select','UPDATE','DDL','Unclosed\x20MyBatis\x20XML\x20tag:\x20<','9264bxEeVk','XML\x20declarations\x20must\x20precede\x20the\x20MyBatis\x20statement\x20wrapper.','keys','slice','statementType','otherwise','Unterminated\x20XML\x20declaration.','exec','INSERT','&quot;'];a268_0x3a79=function(){return _0x3a101f;};return a268_0x3a79();}export function detectSqlType(_0x5da672){return detectNormalizedSqlType(normalizeSqlForStaticAnalysis(_0x5da672));}function detectNormalizedSqlType(_0x5bad0d){const _0x38083e=a268_0x18081a;if(_0x5bad0d[_0x38083e(0x12c)])return{'type':_0x38083e(0xfa),'isSelectOnly':![],'isDangerous':![],'reason':_0x5bad0d[_0x38083e(0x12c)]};if(!_0x5bad0d[_0x38083e(0x107)]['trim']())return{'type':_0x38083e(0xfa),'isSelectOnly':![],'isDangerous':![],'reason':'SQL\x20content\x20is\x20empty'};const _0x3fbd3f=stripStaticAnalysisMarkers(_0x5bad0d['sql'])[_0x38083e(0xfc)](/#\{[^}]*\}/g,'?')[_0x38083e(0xfc)](/\$\{[^}]*\}/g,'?')[_0x38083e(0xfc)](/@[^(\s]+(\([^)]*\))?/g,'')['replace'](/\/\*[\s\S]*?\*\//g,'')[_0x38083e(0xe7)](),_0x4a3b16=_0x3fbd3f[_0x38083e(0xfe)]('\x0a');let _0x4434db='';for(const _0x4f97ac of _0x4a3b16){const _0x14ba93=_0x4f97ac['trim']();if(!_0x14ba93||_0x14ba93[_0x38083e(0x118)]('--')||_0x14ba93['startsWith']('/*'))continue;_0x4434db=_0x14ba93;break;}const _0x858642=_0x4434db['toUpperCase'](),_0x505c39=_0x5bad0d[_0x38083e(0x123)],_0x178292=maskSqlTextForBlockedKeywordScan(_0x3fbd3f),_0x533980=/\b(DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i['test'](_0x178292);if(_0x505c39===_0x38083e(0x113)||!_0x505c39&&(_0x858642['startsWith'](_0x38083e(0x113))||_0x858642[_0x38083e(0x118)](_0x38083e(0x13f)))){const _0x1ee446=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x38083e(0x13b)](_0x3fbd3f);return{'type':'SELECT','isSelectOnly':!_0x1ee446,'isDangerous':_0x1ee446,'reason':_0x1ee446?_0x38083e(0x139):undefined};}if(_0x505c39===_0x38083e(0x127)||!_0x505c39&&_0x858642[_0x38083e(0x118)](_0x38083e(0x127)))return{'type':'INSERT','isSelectOnly':![],'isDangerous':_0x533980,'reason':_0x533980?'SQL\x20contains\x20blocked\x20DELETE\x20or\x20DDL\x20statements':undefined};if(_0x505c39===_0x38083e(0x11c)||!_0x505c39&&_0x858642[_0x38083e(0x118)](_0x38083e(0x11c)))return{'type':_0x38083e(0x11c),'isSelectOnly':![],'isDangerous':_0x533980,'reason':_0x533980?_0x38083e(0x12e):undefined};if(_0x505c39===_0x38083e(0x13e)||!_0x505c39&&_0x858642[_0x38083e(0x118)](_0x38083e(0x13e)))return{'type':_0x38083e(0x13e),'isSelectOnly':![],'isDangerous':!![],'reason':'DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save'};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i[_0x38083e(0x13b)](_0x858642))return{'type':_0x38083e(0x11d),'isSelectOnly':![],'isDangerous':!![],'reason':_0x38083e(0x119)};return{'type':_0x38083e(0xfa),'isSelectOnly':![],'isDangerous':![]};}function a268_0x36b4(_0x246316,_0x96fa64){_0x246316=_0x246316-0xe4;const _0x3a79d1=a268_0x3a79();let _0x36b4b6=_0x3a79d1[_0x246316];return _0x36b4b6;}function stripStaticAnalysisMarkers(_0x2be65c){const _0x489b12=a268_0x18081a;return _0x2be65c[_0x489b12(0xf0)](MYBATIS_DYNAMIC_START_MARKER,'\x20')['replaceAll'](MYBATIS_DYNAMIC_END_MARKER,'\x20')[_0x489b12(0xf0)](MYBATIS_INCLUDE_MARKER,'\x20'+UNRESOLVED_SQL_FRAGMENT+'\x20');}function maskSqlTextForBlockedKeywordScan(_0x32c0dc){const _0x2192c7=a268_0x18081a;return _0x32c0dc[_0x2192c7(0xfc)](/'(?:''|\\.|[^'])*'/g,'\x20')['replace'](/"(?:""|\\.|[^"])*"/g,'\x20')[_0x2192c7(0xfc)](/`(?:``|\\.|[^`])*`/g,'\x20')[_0x2192c7(0xfc)](/--.*$/gm,'\x20')[_0x2192c7(0xfc)](/#.*$/gm,'\x20')[_0x2192c7(0xfc)](/\/\*[\s\S]*?\*\//g,'\x20');}function extractTables(_0x5a8240){const _0xbf0a5f=a268_0x18081a,_0x364621=_0x5a8240[_0xbf0a5f(0xfc)](/#\{[^}]*\}/g,'?')['replace'](/\$\{[^}]*\}/g,'?')[_0xbf0a5f(0xfc)](/'[^']*'/g,'\x27\x27')[_0xbf0a5f(0xfc)](/--.*$/gm,'')[_0xbf0a5f(0xfc)](/\/\*[\s\S]*?\*\//g,''),_0x34034b=[],_0xa6d260=_0x364621[_0xbf0a5f(0x133)](/FROM\s+([^\s,)(]+)/i);addTable(_0x34034b,_0xa6d260?.[0x1]);for(const _0x41438b of _0x364621[_0xbf0a5f(0x105)](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){addTable(_0x34034b,_0x41438b[0x1]);}const _0x44621a=_0x364621['match'](/INTO\s+([^\s(]+)/i);addTable(_0x34034b,_0x44621a?.[0x1]);const _0x56f184=_0x364621['match'](/UPDATE\s+([^\s,)(]+)/i);return addTable(_0x34034b,_0x56f184?.[0x1]),_0x34034b;}function addTable(_0x7d3b52,_0x15c6f4){const _0x578c80=a268_0x18081a,_0x109159=_0x15c6f4?.[_0x578c80(0xfc)](/[`"]/g,'');_0x109159&&_0x109159!==UNRESOLVED_SQL_FRAGMENT&&!_0x7d3b52[_0x578c80(0xef)](_0x109159)&&_0x7d3b52[_0x578c80(0xeb)](_0x109159);}function extractParameters(_0x257c39){const _0x381b32=a268_0x18081a,_0x2b7254=new Set();for(const _0x3c6273 of _0x257c39['matchAll'](/[#$]\{\s*([A-Za-z_][\w.]*)\s*(?=[,}])/g)){if(_0x3c6273[0x1])_0x2b7254[_0x381b32(0x10e)](_0x3c6273[0x1]);}return Array['from'](_0x2b7254);}export function validateSql(_0x2772e4){const _0x302ee0=a268_0x18081a,_0x5b316a=normalizeSqlForStaticAnalysis(_0x2772e4),_0x44e483=detectNormalizedSqlType(_0x5b316a),_0x22889f=stripStaticAnalysisMarkers(_0x5b316a['sql']),_0x1a1477=_0x5b316a[_0x302ee0(0x12c)]?[]:extractTables(_0x22889f),_0x3af217=_0x5b316a[_0x302ee0(0x12c)]?[]:extractParameters(_0x22889f);if(_0x44e483['isDangerous'])return{'valid':![],'sqlType':_0x44e483,'tables':_0x1a1477,'parameters':_0x3af217,'message':_0x44e483['reason']||_0x44e483[_0x302ee0(0x112)]+_0x302ee0(0xfb)};if(_0x44e483[_0x302ee0(0x112)]===_0x302ee0(0xfa))return{'valid':![],'sqlType':_0x44e483,'tables':_0x1a1477,'parameters':_0x3af217,'message':_0x5b316a[_0x302ee0(0x12c)]?_0x302ee0(0x106)+_0x5b316a[_0x302ee0(0x12c)]:_0x302ee0(0xee)};return{'valid':!![],'sqlType':_0x44e483,'tables':_0x1a1477,'parameters':_0x3af217,'message':_0x44e483[_0x302ee0(0x112)]+'\x20query\x20targeting\x20'+(_0x1a1477[_0x302ee0(0x13c)]?_0x1a1477[_0x302ee0(0xec)](',\x20'):_0x302ee0(0xea))+(_0x3af217[_0x302ee0(0x13c)]?_0x302ee0(0x138)+_0x3af217['join'](',\x20'):'')};}
1
+ const a284_0x3ab3f4=a284_0x50f1;(function(_0x3cca1c,_0x57a58f){const _0x5b1421=a284_0x50f1,_0x2f0a56=_0x3cca1c();while(!![]){try{const _0x2c9183=-parseInt(_0x5b1421(0xb1))/0x1*(parseInt(_0x5b1421(0xab))/0x2)+parseInt(_0x5b1421(0xde))/0x3*(parseInt(_0x5b1421(0x9c))/0x4)+parseInt(_0x5b1421(0xc8))/0x5*(parseInt(_0x5b1421(0xf1))/0x6)+parseInt(_0x5b1421(0xac))/0x7*(-parseInt(_0x5b1421(0xe4))/0x8)+parseInt(_0x5b1421(0xd8))/0x9+parseInt(_0x5b1421(0xa7))/0xa*(-parseInt(_0x5b1421(0xd4))/0xb)+-parseInt(_0x5b1421(0xd6))/0xc*(-parseInt(_0x5b1421(0xb4))/0xd);if(_0x2c9183===_0x57a58f)break;else _0x2f0a56['push'](_0x2f0a56['shift']());}catch(_0x257ca9){_0x2f0a56['push'](_0x2f0a56['shift']());}}}(a284_0x2b59,0x3ba48));const MYBATIS_OUTER_TAGS=new Map([[a284_0x3ab3f4(0xb2),'SELECT'],[a284_0x3ab3f4(0xae),a284_0x3ab3f4(0xb3)],[a284_0x3ab3f4(0xdf),a284_0x3ab3f4(0xc9)],[a284_0x3ab3f4(0xe5),a284_0x3ab3f4(0xe0)]]),MYBATIS_DYNAMIC_TAGS=new Set(['if',a284_0x3ab3f4(0xfb),a284_0x3ab3f4(0xad),a284_0x3ab3f4(0xe9),a284_0x3ab3f4(0xbc),'otherwise',a284_0x3ab3f4(0xb5),'set','bind','include',a284_0x3ab3f4(0xf5)]),MYBATIS_BRANCH_TAGS=new Set(['if','foreach',a284_0x3ab3f4(0xe9),a284_0x3ab3f4(0xbc),a284_0x3ab3f4(0xd1)]);export const MYBATIS_DYNAMIC_START_MARKER=a284_0x3ab3f4(0xd7);export const MYBATIS_DYNAMIC_END_MARKER='__RABETBASE_MYBATIS_DYNAMIC_END__';export const MYBATIS_INCLUDE_MARKER=a284_0x3ab3f4(0xef);const UNRESOLVED_SQL_FRAGMENT=a284_0x3ab3f4(0xb8),MYBATIS_OUTER_TAG_PATTERN=new RegExp(a284_0x3ab3f4(0xaa)+[...MYBATIS_OUTER_TAGS[a284_0x3ab3f4(0xc1)]()][a284_0x3ab3f4(0xeb)]('|')+')\x5cb','i');export function normalizeSqlForStaticAnalysis(_0x4ce25c){const _0x2bc6dd=a284_0x3ab3f4,_0x23c5a3=typeof _0x4ce25c===_0x2bc6dd(0xa2)?_0x4ce25c:'';if(!startsWithMybatisStatementWrapper(_0x23c5a3))return{'sql':_0x23c5a3,'mode':_0x2bc6dd(0xee)};let _0x16c2d5=0x0,_0x4607a0='',_0x1d357b,_0x3b2759=![],_0x4bd089=![];const _0x10d06f=[];while(_0x16c2d5<_0x23c5a3[_0x2bc6dd(0xd9)]){if(_0x23c5a3[_0x2bc6dd(0xfa)]('<!--',_0x16c2d5)){const _0x1ed66=_0x23c5a3[_0x2bc6dd(0xb9)](_0x2bc6dd(0xec),_0x16c2d5+0x4);if(_0x1ed66<0x0)return invalidMybatisSource(_0x2bc6dd(0xfd));_0x4607a0+='\x20',_0x16c2d5=_0x1ed66+0x3;continue;}if(_0x23c5a3[_0x2bc6dd(0xfa)](_0x2bc6dd(0xfc),_0x16c2d5)){if(!_0x3b2759||_0x4bd089)return invalidMybatisSource('CDATA\x20sections\x20must\x20be\x20inside\x20the\x20MyBatis\x20statement\x20wrapper.');const _0x10e482=_0x23c5a3[_0x2bc6dd(0xb9)](_0x2bc6dd(0xea),_0x16c2d5+0x9);if(_0x10e482<0x0)return invalidMybatisSource(_0x2bc6dd(0xc0));_0x4607a0+=_0x23c5a3[_0x2bc6dd(0xb6)](_0x16c2d5+0x9,_0x10e482),_0x16c2d5=_0x10e482+0x3;continue;}if(_0x23c5a3[_0x2bc6dd(0xfa)]('<?',_0x16c2d5)){if(_0x3b2759)return invalidMybatisSource(_0x2bc6dd(0xa4));const _0x17accb=_0x23c5a3['indexOf']('?>',_0x16c2d5+0x2);if(_0x17accb<0x0)return invalidMybatisSource(_0x2bc6dd(0x9f));_0x4607a0+='\x20',_0x16c2d5=_0x17accb+0x2;continue;}if(_0x23c5a3[_0x16c2d5]!=='<'){const _0x5e08ed=_0x23c5a3['indexOf']('<',_0x16c2d5),_0x188b67=_0x5e08ed<0x0?_0x23c5a3['length']:_0x5e08ed,_0x40fd7e=_0x23c5a3['slice'](_0x16c2d5,_0x188b67);if((!_0x3b2759||_0x4bd089)&&_0x40fd7e['trim']())return invalidMybatisSource(_0x2bc6dd(0xf3));if(_0x3b2759&&!_0x4bd089){const _0x1bab4d=decodeXmlEntities(_0x40fd7e);if(_0x1bab4d===null)return invalidMybatisSource(_0x2bc6dd(0xf7));_0x4607a0+=_0x1bab4d;}else _0x4607a0+='\x20';_0x16c2d5=_0x188b67;continue;}const _0x551de8=findXmlTagEnd(_0x23c5a3,_0x16c2d5);if(_0x551de8<0x0)return invalidMybatisSource(_0x2bc6dd(0xcd));const _0x168dd6=_0x23c5a3[_0x2bc6dd(0xb6)](_0x16c2d5,_0x551de8+0x1),_0x5a0648=/^<\s*(\/?)\s*([A-Za-z][\w:-]*)([\s\S]*?)(\/?)\s*>$/[_0x2bc6dd(0xed)](_0x168dd6);if(!_0x5a0648)return invalidMybatisSource(_0x2bc6dd(0xc6));const _0x3ee21d=_0x5a0648[0x1]==='/',_0x24b68b=_0x5a0648[0x2]??'',_0x47f451=_0x24b68b['toLowerCase'](),_0x168d73=_0x5a0648[0x3]??'',_0x15907e=_0x5a0648[0x4]==='/',_0x1b1145=MYBATIS_OUTER_TAGS['get'](_0x47f451);if(!_0x1b1145&&!MYBATIS_DYNAMIC_TAGS[_0x2bc6dd(0xe6)](_0x47f451))return invalidMybatisSource(_0x2bc6dd(0xc4)+_0x47f451+'>.');if(!_0x1b1145&&_0x24b68b!==_0x47f451)return invalidMybatisSource(_0x2bc6dd(0xe8)+_0x24b68b+'>.');if(_0x3ee21d){if(_0x168d73[_0x2bc6dd(0xb5)]()||_0x15907e)return invalidMybatisSource(_0x2bc6dd(0xf6)+_0x24b68b+'>.');const _0x575236=_0x10d06f['at'](-0x1);if(!_0x575236||(_0x575236[_0x2bc6dd(0xaf)]?_0x575236['tagName']!==_0x47f451:_0x575236['rawName']!==_0x24b68b))return invalidMybatisSource(_0x2bc6dd(0xc7)+_0x24b68b+'>.');_0x10d06f[_0x2bc6dd(0xba)]();if(_0x575236[_0x2bc6dd(0xaf)])_0x4bd089=!![];_0x4607a0+=MYBATIS_BRANCH_TAGS[_0x2bc6dd(0xe6)](_0x47f451)?'\x20'+MYBATIS_DYNAMIC_END_MARKER+'\x20':'\x20';}else{if(!hasWellFormedXmlAttributes(_0x168d73))return invalidMybatisSource(_0x2bc6dd(0xf9)+_0x24b68b+'>.');if(_0x47f451===_0x2bc6dd(0xf5)&&(!_0x15907e||_0x10d06f['at'](-0x1)?.[_0x2bc6dd(0xa3)]!==_0x2bc6dd(0xa6)))return invalidMybatisSource('MyBatis\x20<property>\x20must\x20be\x20a\x20self-closing\x20direct\x20child\x20of\x20<include>.');if(_0x1b1145){if(_0x3b2759||_0x10d06f[_0x2bc6dd(0xd9)]>0x0)return invalidMybatisSource(_0x2bc6dd(0xe7));_0x3b2759=!![],_0x4bd089=_0x15907e,_0x1d357b=_0x1b1145;}else{if(!_0x3b2759||_0x4bd089)return invalidMybatisSource(_0x2bc6dd(0xc5)+_0x24b68b+'>.');}_0x4607a0+=_0x47f451===_0x2bc6dd(0xfb)?_0x2bc6dd(0xd5):_0x47f451===_0x2bc6dd(0x9a)?_0x2bc6dd(0xcb):_0x47f451===_0x2bc6dd(0xa6)?'\x20'+MYBATIS_INCLUDE_MARKER+'\x20':MYBATIS_BRANCH_TAGS[_0x2bc6dd(0xe6)](_0x47f451)&&!_0x15907e?'\x20'+MYBATIS_DYNAMIC_START_MARKER+'\x20':'\x20',!_0x15907e&&_0x10d06f['push']({'rawName':_0x24b68b,'tagName':_0x47f451,'outer':!!_0x1b1145});}_0x16c2d5=_0x551de8+0x1;}if(_0x10d06f[_0x2bc6dd(0xd9)]>0x0)return invalidMybatisSource('Unclosed\x20MyBatis\x20XML\x20tag:\x20<'+_0x10d06f['at'](-0x1)?.[_0x2bc6dd(0xa9)]+'>.');if(!_0x3b2759||!_0x4bd089)return invalidMybatisSource(_0x2bc6dd(0xd3));return{'sql':_0x4607a0[_0x2bc6dd(0xb5)](),'mode':_0x2bc6dd(0xbf),..._0x1d357b?{'statementType':_0x1d357b}:{}};}function hasWellFormedXmlAttributes(_0x5bda43){const _0x46dea2=a284_0x3ab3f4;let _0x435148=0x0;const _0x9ead10=new Set();while(_0x435148<_0x5bda43[_0x46dea2(0xd9)]){while(_0x435148<_0x5bda43['length']&&/\s/[_0x46dea2(0xdd)](_0x5bda43[_0x435148]??''))_0x435148+=0x1;if(_0x435148>=_0x5bda43[_0x46dea2(0xd9)])return!![];const _0x4a8ad9=/^[A-Za-z_:][\w:.-]*/[_0x46dea2(0xed)](_0x5bda43[_0x46dea2(0xb6)](_0x435148)),_0x3bea42=_0x4a8ad9?.[0x0];if(!_0x3bea42||_0x9ead10[_0x46dea2(0xe6)](_0x3bea42))return![];_0x9ead10['add'](_0x3bea42),_0x435148+=_0x3bea42[_0x46dea2(0xd9)];while(_0x435148<_0x5bda43[_0x46dea2(0xd9)]&&/\s/[_0x46dea2(0xdd)](_0x5bda43[_0x435148]??''))_0x435148+=0x1;if(_0x5bda43[_0x435148]!=='=')return![];_0x435148+=0x1;while(_0x435148<_0x5bda43['length']&&/\s/[_0x46dea2(0xdd)](_0x5bda43[_0x435148]??''))_0x435148+=0x1;const _0x1c9cbe=_0x5bda43[_0x435148];if(_0x1c9cbe!=='\x22'&&_0x1c9cbe!=='\x27')return![];_0x435148+=0x1;const _0x37888a=_0x5bda43[_0x46dea2(0xb9)](_0x1c9cbe,_0x435148);if(_0x37888a<0x0)return![];if(decodeXmlEntities(_0x5bda43[_0x46dea2(0xb6)](_0x435148,_0x37888a))===null)return![];_0x435148=_0x37888a+0x1;}return!![];}function a284_0x50f1(_0x5f383a,_0x34fc04){_0x5f383a=_0x5f383a-0x9a;const _0x2b597e=a284_0x2b59();let _0x50f150=_0x2b597e[_0x5f383a];return _0x50f150;}function a284_0x2b59(){const _0x450438=['from','mybatisXml','Unterminated\x20CDATA\x20section.','keys','matchAll','error','Unsupported\x20MyBatis\x20XML\x20tag:\x20<','MyBatis\x20dynamic\x20tag\x20must\x20be\x20inside\x20the\x20statement\x20wrapper:\x20<','Invalid\x20MyBatis\x20XML\x20tag.','Mismatched\x20MyBatis\x20XML\x20closing\x20tag:\x20</','5fGgrlB','UPDATE','parseInt','\x20SET\x20','Unable\x20to\x20detect\x20SQL\x20type.\x20','Unterminated\x20MyBatis\x20XML\x20tag.','&quot;','DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save','<!--','otherwise','add','MyBatis\x20XML\x20must\x20contain\x20exactly\x20one\x20complete\x20statement\x20wrapper.','143CuLkMQ','\x20WHERE\x20','195732eTFxoj','__RABETBASE_MYBATIS_DYNAMIC_START__','1770210pZmmcX','length','fromCodePoint','SELECT','DDL\x20statements\x20are\x20blocked\x20from\x20auto-save','test','1351539rTVnJO','update','DELETE','split','reason','SQL\x20content\x20is\x20empty','32RILYvw','delete','has','Multiple\x20MyBatis\x20statement\x20wrappers\x20are\x20not\x20supported.','MyBatis\x20dynamic\x20tag\x20names\x20must\x20be\x20lowercase:\x20<','choose',']]>','join','-->','exec','sql','__RABETBASE_MYBATIS_INCLUDE_UNRESOLVED__','&lt;','349158bBZgdI','WITH','SQL\x20text\x20must\x20be\x20inside\x20the\x20MyBatis\x20statement\x20wrapper.','replaceAll','property','Invalid\x20MyBatis\x20XML\x20closing\x20tag:\x20</','Invalid\x20XML\x20entity\x20reference.','toUpperCase','Invalid\x20attributes\x20on\x20MyBatis\x20XML\x20tag:\x20<','startsWith','where','<![CDATA[','Unterminated\x20XML\x20comment.','set','UNKNOWN','4YKghCs','\x20with\x20parameters:\x20','&amp;','Unterminated\x20XML\x20declaration.','SQL\x20contains\x20blocked\x20DELETE\x20or\x20DDL\x20statements','push','string','tagName','XML\x20declarations\x20must\x20precede\x20the\x20MyBatis\x20statement\x20wrapper.','type','include','83470kLEXKO','Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.','rawName','^<\x5cs*(?:','30468NCoLOy','538937fnhRqC','foreach','insert','outer','replace','4aRXGTS','select','INSERT','13snCNYe','trim','slice','unknown\x20table(s)','__RABETBASE_UNRESOLVED_SQL_FRAGMENT__','indexOf','pop','&gt;','when','match'];a284_0x2b59=function(){return _0x450438;};return a284_0x2b59();}function startsWithMybatisStatementWrapper(_0xad77f){const _0x437393=a284_0x3ab3f4;let _0x2ae26a=0x0;const _0x558aab=()=>{const _0x57ac4c=a284_0x50f1;while(_0x2ae26a<_0xad77f[_0x57ac4c(0xd9)]&&/\s/[_0x57ac4c(0xdd)](_0xad77f[_0x2ae26a]??''))_0x2ae26a+=0x1;};_0x558aab();while(_0x2ae26a<_0xad77f[_0x437393(0xd9)]){if(_0xad77f['startsWith'](_0x437393(0xd0),_0x2ae26a)){const _0x22f49a=_0xad77f['indexOf'](_0x437393(0xec),_0x2ae26a+0x4);if(_0x22f49a<0x0)return!![];_0x2ae26a=_0x22f49a+0x3,_0x558aab();continue;}if(_0xad77f[_0x437393(0xfa)]('<?',_0x2ae26a)){const _0x1e47c9=_0xad77f['indexOf']('?>',_0x2ae26a+0x2);if(_0x1e47c9<0x0)return!![];_0x2ae26a=_0x1e47c9+0x2,_0x558aab();continue;}break;}return MYBATIS_OUTER_TAG_PATTERN['test'](_0xad77f[_0x437393(0xb6)](_0x2ae26a));}function invalidMybatisSource(_0x1bd5d8){const _0x4ca939=a284_0x3ab3f4;return{'sql':'','mode':_0x4ca939(0xbf),'error':_0x1bd5d8};}function findXmlTagEnd(_0x32f2c7,_0xf7a5e7){const _0x263196=a284_0x3ab3f4;let _0x5326e5;for(let _0x36f230=_0xf7a5e7+0x1;_0x36f230<_0x32f2c7[_0x263196(0xd9)];_0x36f230+=0x1){const _0x32a457=_0x32f2c7[_0x36f230];if(_0x5326e5){if(_0x32a457===_0x5326e5)_0x5326e5=undefined;continue;}if(_0x32a457==='\x22'||_0x32a457==='\x27'){_0x5326e5=_0x32a457;continue;}if(_0x32a457==='>')return _0x36f230;}return-0x1;}function decodeXmlEntities(_0x3dd5ad){const _0x4b0a48=a284_0x3ab3f4;let _0x43a2be=![];const _0x1e2683=_0x3dd5ad[_0x4b0a48(0xb0)](/&(?:#x[0-9a-f]+;|#[0-9]+;|[A-Za-z_:][\w:.-]*;)?/g,_0x580084=>{const _0x3c7195=_0x4b0a48;if(_0x580084===_0x3c7195(0xf0))return'<';if(_0x580084===_0x3c7195(0xbb))return'>';if(_0x580084===_0x3c7195(0xce))return'\x22';if(_0x580084==='&apos;')return'\x27';if(_0x580084===_0x3c7195(0x9e))return'&';const _0x214271=/^&#(?:x([0-9a-f]+)|([0-9]+));$/['exec'](_0x580084);if(_0x214271){const _0x3d15ff=_0x214271[0x1],_0x336737=_0x214271[0x2],_0xa7ef0c=Number[_0x3c7195(0xca)](_0x3d15ff??_0x336737??'',_0x3d15ff?0x10:0xa);if(isValidXmlCharacter(_0xa7ef0c))return String[_0x3c7195(0xda)](_0xa7ef0c);}return _0x43a2be=!![],'';});return _0x43a2be?null:_0x1e2683;}function isValidXmlCharacter(_0x5abe41){return _0x5abe41===0x9||_0x5abe41===0xa||_0x5abe41===0xd||_0x5abe41>=0x20&&_0x5abe41<=0xd7ff||_0x5abe41>=0xe000&&_0x5abe41<=0xfffd||_0x5abe41>=0x10000&&_0x5abe41<=0x10ffff;}export function detectSqlType(_0x364187){return detectNormalizedSqlType(normalizeSqlForStaticAnalysis(_0x364187));}function detectNormalizedSqlType(_0x4b2083){const _0x599944=a284_0x3ab3f4;if(_0x4b2083['error'])return{'type':'UNKNOWN','isSelectOnly':![],'isDangerous':![],'reason':_0x4b2083[_0x599944(0xc3)]};if(!_0x4b2083[_0x599944(0xee)]['trim']())return{'type':'UNKNOWN','isSelectOnly':![],'isDangerous':![],'reason':_0x599944(0xe3)};const _0x2584f5=stripStaticAnalysisMarkers(_0x4b2083[_0x599944(0xee)])[_0x599944(0xb0)](/#\{[^}]*\}/g,'?')[_0x599944(0xb0)](/\$\{[^}]*\}/g,'?')[_0x599944(0xb0)](/@[^(\s]+(\([^)]*\))?/g,'')[_0x599944(0xb0)](/\/\*[\s\S]*?\*\//g,'')[_0x599944(0xb5)](),_0x1814b9=_0x2584f5[_0x599944(0xe1)]('\x0a');let _0x2f23d5='';for(const _0x112dbb of _0x1814b9){const _0x576742=_0x112dbb[_0x599944(0xb5)]();if(!_0x576742||_0x576742[_0x599944(0xfa)]('--')||_0x576742[_0x599944(0xfa)]('/*'))continue;_0x2f23d5=_0x576742;break;}const _0x844797=_0x2f23d5[_0x599944(0xf8)](),_0x152f7c=_0x4b2083['statementType'],_0x1ec8d9=maskSqlTextForBlockedKeywordScan(_0x2584f5),_0x56ab40=/\b(DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x599944(0xdd)](_0x1ec8d9);if(_0x152f7c===_0x599944(0xdb)||!_0x152f7c&&(_0x844797[_0x599944(0xfa)](_0x599944(0xdb))||_0x844797['startsWith'](_0x599944(0xf2)))){const _0x1dd64c=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x599944(0xdd)](_0x2584f5);return{'type':_0x599944(0xdb),'isSelectOnly':!_0x1dd64c,'isDangerous':_0x1dd64c,'reason':_0x1dd64c?'SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT':undefined};}if(_0x152f7c===_0x599944(0xb3)||!_0x152f7c&&_0x844797[_0x599944(0xfa)](_0x599944(0xb3)))return{'type':_0x599944(0xb3),'isSelectOnly':![],'isDangerous':_0x56ab40,'reason':_0x56ab40?_0x599944(0xa0):undefined};if(_0x152f7c==='UPDATE'||!_0x152f7c&&_0x844797[_0x599944(0xfa)](_0x599944(0xc9)))return{'type':'UPDATE','isSelectOnly':![],'isDangerous':_0x56ab40,'reason':_0x56ab40?_0x599944(0xa0):undefined};if(_0x152f7c==='DELETE'||!_0x152f7c&&_0x844797[_0x599944(0xfa)](_0x599944(0xe0)))return{'type':_0x599944(0xe0),'isSelectOnly':![],'isDangerous':!![],'reason':_0x599944(0xcf)};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i[_0x599944(0xdd)](_0x844797))return{'type':'DDL','isSelectOnly':![],'isDangerous':!![],'reason':_0x599944(0xdc)};return{'type':_0x599944(0x9b),'isSelectOnly':![],'isDangerous':![]};}function stripStaticAnalysisMarkers(_0x827b22){const _0x572f3e=a284_0x3ab3f4;return _0x827b22[_0x572f3e(0xf4)](MYBATIS_DYNAMIC_START_MARKER,'\x20')[_0x572f3e(0xf4)](MYBATIS_DYNAMIC_END_MARKER,'\x20')[_0x572f3e(0xf4)](MYBATIS_INCLUDE_MARKER,'\x20'+UNRESOLVED_SQL_FRAGMENT+'\x20');}function maskSqlTextForBlockedKeywordScan(_0x5491fb){const _0x12a5f4=a284_0x3ab3f4;return _0x5491fb[_0x12a5f4(0xb0)](/'(?:''|\\.|[^'])*'/g,'\x20')['replace'](/"(?:""|\\.|[^"])*"/g,'\x20')[_0x12a5f4(0xb0)](/`(?:``|\\.|[^`])*`/g,'\x20')[_0x12a5f4(0xb0)](/--.*$/gm,'\x20')[_0x12a5f4(0xb0)](/#.*$/gm,'\x20')[_0x12a5f4(0xb0)](/\/\*[\s\S]*?\*\//g,'\x20');}function extractTables(_0x50e8d7){const _0x15c557=a284_0x3ab3f4,_0x4712b8=_0x50e8d7[_0x15c557(0xb0)](/#\{[^}]*\}/g,'?')[_0x15c557(0xb0)](/\$\{[^}]*\}/g,'?')[_0x15c557(0xb0)](/'[^']*'/g,'\x27\x27')[_0x15c557(0xb0)](/--.*$/gm,'')[_0x15c557(0xb0)](/\/\*[\s\S]*?\*\//g,''),_0x2713f0=[],_0x159152=_0x4712b8[_0x15c557(0xbd)](/FROM\s+([^\s,)(]+)/i);addTable(_0x2713f0,_0x159152?.[0x1]);for(const _0x289b4e of _0x4712b8['matchAll'](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){addTable(_0x2713f0,_0x289b4e[0x1]);}const _0x25d583=_0x4712b8[_0x15c557(0xbd)](/INTO\s+([^\s(]+)/i);addTable(_0x2713f0,_0x25d583?.[0x1]);const _0x45df50=_0x4712b8['match'](/UPDATE\s+([^\s,)(]+)/i);return addTable(_0x2713f0,_0x45df50?.[0x1]),_0x2713f0;}function addTable(_0x158d39,_0x52d8c6){const _0x5878a4=a284_0x3ab3f4,_0x94af64=_0x52d8c6?.['replace'](/[`"]/g,'');_0x94af64&&_0x94af64!==UNRESOLVED_SQL_FRAGMENT&&!_0x158d39['includes'](_0x94af64)&&_0x158d39[_0x5878a4(0xa1)](_0x94af64);}function extractParameters(_0x3555c2){const _0x5806d9=a284_0x3ab3f4,_0x69595e=new Set();for(const _0x138b58 of _0x3555c2[_0x5806d9(0xc2)](/[#$]\{\s*([A-Za-z_][\w.]*)\s*(?=[,}])/g)){if(_0x138b58[0x1])_0x69595e[_0x5806d9(0xd2)](_0x138b58[0x1]);}return Array[_0x5806d9(0xbe)](_0x69595e);}export function validateSql(_0x1ee76e){const _0x5c525b=a284_0x3ab3f4,_0x44f1f5=normalizeSqlForStaticAnalysis(_0x1ee76e),_0x500b46=detectNormalizedSqlType(_0x44f1f5),_0x24dd6d=stripStaticAnalysisMarkers(_0x44f1f5['sql']),_0x35f5bb=_0x44f1f5[_0x5c525b(0xc3)]?[]:extractTables(_0x24dd6d),_0x51ee4d=_0x44f1f5[_0x5c525b(0xc3)]?[]:extractParameters(_0x24dd6d);if(_0x500b46['isDangerous'])return{'valid':![],'sqlType':_0x500b46,'tables':_0x35f5bb,'parameters':_0x51ee4d,'message':_0x500b46[_0x5c525b(0xe2)]||_0x500b46['type']+'\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.'};if(_0x500b46['type']===_0x5c525b(0x9b))return{'valid':![],'sqlType':_0x500b46,'tables':_0x35f5bb,'parameters':_0x51ee4d,'message':_0x44f1f5[_0x5c525b(0xc3)]?_0x5c525b(0xcc)+_0x44f1f5['error']:_0x5c525b(0xa8)};return{'valid':!![],'sqlType':_0x500b46,'tables':_0x35f5bb,'parameters':_0x51ee4d,'message':_0x500b46[_0x5c525b(0xa5)]+'\x20query\x20targeting\x20'+(_0x35f5bb[_0x5c525b(0xd9)]?_0x35f5bb[_0x5c525b(0xeb)](',\x20'):_0x5c525b(0xb7))+(_0x51ee4d[_0x5c525b(0xd9)]?_0x5c525b(0x9d)+_0x51ee4d['join'](',\x20'):'')};}
package/lib/errors.js CHANGED
@@ -1 +1 @@
1
- function a269_0x3725(_0x42a1aa,_0x4736a4){_0x42a1aa=_0x42a1aa-0x113;const _0xbdc6ae=a269_0xbdc6();let _0x372542=_0xbdc6ae[_0x42a1aa];return _0x372542;}const a269_0x624b95=a269_0x3725;(function(_0x24f394,_0x253e15){const _0x56d34f=a269_0x3725,_0x39d43a=_0x24f394();while(!![]){try{const _0x1534b1=parseInt(_0x56d34f(0x113))/0x1*(parseInt(_0x56d34f(0x122))/0x2)+-parseInt(_0x56d34f(0x127))/0x3*(-parseInt(_0x56d34f(0x12d))/0x4)+parseInt(_0x56d34f(0x11c))/0x5*(parseInt(_0x56d34f(0x116))/0x6)+parseInt(_0x56d34f(0x11e))/0x7*(-parseInt(_0x56d34f(0x121))/0x8)+parseInt(_0x56d34f(0x129))/0x9+-parseInt(_0x56d34f(0x120))/0xa+-parseInt(_0x56d34f(0x123))/0xb;if(_0x1534b1===_0x253e15)break;else _0x39d43a['push'](_0x39d43a['shift']());}catch(_0x35f373){_0x39d43a['push'](_0x39d43a['shift']());}}}(a269_0xbdc6,0x574a3));import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';function a269_0xbdc6(){const _0xb0dc82=['6792082pyYnHH','Not\x20in\x20a\x20','config_missing','\x20--help`\x20to\x20see\x20available\x20commands.','251133GykLKF','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.\x0a\x20\x20\x20\x20\x20\x20\x20Tip:\x20`','2844180FYiUjB','network_error','apiError','\x20auth`\x20to\x20login\x20first.','28CgPjck','\x20workspace\x20add\x20<name>\x20--appcode\x20<code>\x20--global`\x20registers\x20a\x20reusable\x20global\x20app\x20profile.','auth_required','unknown_command','cancelled','5kqUNuk','Configuration\x20file\x20not\x20found','Operation\x20cancelled.','4872ieUNIm','not_in_project','Set\x20appcode\x20via\x20`','Run\x20`','Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.','Check\x20your\x20internet\x20connection\x20and\x20try\x20again.','2120TkgUon','validation','2863SnnwAO','Authentication\x20required','2286840zAcczp','6040NygzPU','106478NLYdfJ'];a269_0xbdc6=function(){return _0xb0dc82;};return a269_0xbdc6();}export{CliError};const baseCliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':'Run\x20`'+CLI_BIN_NAME+a269_0x624b95(0x12c),'configMissingHint':a269_0x624b95(0x118)+CLI_BIN_NAME+a269_0x624b95(0x128)+CLI_BIN_NAME+a269_0x624b95(0x12e),'notInProjectHint':a269_0x624b95(0x11a)});export const CliErrors={'authRequired'(_0x347461){const _0x51a4aa=a269_0x624b95;return new CliError(_0x51a4aa(0x12f),0x1,_0x51a4aa(0x11f),_0x347461??'Run\x20`'+CLI_BIN_NAME+'\x20auth`\x20to\x20login\x20first.');},'configMissing'(_0x3450a4){const _0x35a94a=a269_0x624b95;return new CliError(_0x35a94a(0x125),0x1,_0x35a94a(0x114),_0x3450a4??'Set\x20appcode\x20via\x20`'+CLI_BIN_NAME+_0x35a94a(0x128)+CLI_BIN_NAME+_0x35a94a(0x12e));},'notInProject'(){const _0x275232=a269_0x624b95;return new CliError(_0x275232(0x117),0x1,_0x275232(0x124)+CLI_BIN_NAME+'\x20project\x20directory','Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.');},'apiError'(_0x3b88f2,_0x455bac){const _0x1c18f1=a269_0x624b95;return baseCliErrors[_0x1c18f1(0x12b)](_0x3b88f2,_0x455bac);},'networkError'(_0x3b2427){const _0x2adf89=a269_0x624b95;return new CliError(_0x2adf89(0x12a),0x2,'Network\x20error:\x20'+_0x3b2427,_0x2adf89(0x11b));},'unknownCommand'(_0x468eae){const _0x1470cd=a269_0x624b95;return new CliError(_0x1470cd(0x130),0x1,'Unknown\x20command:\x20'+_0x468eae,_0x1470cd(0x119)+CLI_BIN_NAME+_0x1470cd(0x126));},'flagMissing'(_0x4b25cc,_0x5839f0){return new CliError('flag_missing',0x1,'Missing\x20required\x20flag:\x20--'+_0x4b25cc,_0x5839f0);},'validation'(_0x4d8a1d,_0x5c10cb){const _0x4575ff=a269_0x624b95;return baseCliErrors[_0x4575ff(0x11d)](_0x4d8a1d,_0x5c10cb);},'cancelled'(_0x3b7818){const _0x1ce234=a269_0x624b95;return new CliError(_0x1ce234(0x131),0x0,_0x3b7818??_0x1ce234(0x115));}};
1
+ const a285_0x565d80=a285_0x5774;function a285_0x3202(){const _0x220ef5=['Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.','\x20project\x20directory','601741SeHBDH','1301907BMVlAd','4aIKBjq','Network\x20error:\x20','apiError','\x20--help`\x20to\x20see\x20available\x20commands.','Run\x20`','Check\x20your\x20internet\x20connection\x20and\x20try\x20again.','Configuration\x20file\x20not\x20found','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.\x0a\x20\x20\x20\x20\x20\x20\x20Tip:\x20`','576452AhSyiD','flag_missing','Missing\x20required\x20flag:\x20--','config_missing','Authentication\x20required','Set\x20appcode\x20via\x20`','Operation\x20cancelled.','\x20workspace\x20add\x20<name>\x20--appcode\x20<code>\x20--global`\x20registers\x20a\x20reusable\x20global\x20app\x20profile.','cancelled','333160ZnQCUa','unknown_command','3633156AxRLaF','\x20auth`\x20to\x20login\x20first.','5265544rBmYxo','not_in_project','Not\x20in\x20a\x20','1349593pgoDar'];a285_0x3202=function(){return _0x220ef5;};return a285_0x3202();}(function(_0x49fcdd,_0x581101){const _0x1dca3b=a285_0x5774,_0x3c1c58=_0x49fcdd();while(!![]){try{const _0xea4126=parseInt(_0x1dca3b(0x16e))/0x1+-parseInt(_0x1dca3b(0x178))/0x2+parseInt(_0x1dca3b(0x16f))/0x3+parseInt(_0x1dca3b(0x170))/0x4*(-parseInt(_0x1dca3b(0x164))/0x5)+parseInt(_0x1dca3b(0x166))/0x6+-parseInt(_0x1dca3b(0x16b))/0x7+-parseInt(_0x1dca3b(0x168))/0x8;if(_0xea4126===_0x581101)break;else _0x3c1c58['push'](_0x3c1c58['shift']());}catch(_0x54bf91){_0x3c1c58['push'](_0x3c1c58['shift']());}}}(a285_0x3202,0x6a4ba));import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';export{CliError};function a285_0x5774(_0x5b9560,_0x2bfc34){_0x5b9560=_0x5b9560-0x15d;const _0x32027e=a285_0x3202();let _0x5774e1=_0x32027e[_0x5b9560];return _0x5774e1;}const baseCliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a285_0x565d80(0x174)+CLI_BIN_NAME+a285_0x565d80(0x167),'configMissingHint':a285_0x565d80(0x160)+CLI_BIN_NAME+'\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.\x0a\x20\x20\x20\x20\x20\x20\x20Tip:\x20`'+CLI_BIN_NAME+a285_0x565d80(0x162),'notInProjectHint':a285_0x565d80(0x16c)});export const CliErrors={'authRequired'(_0x279181){const _0x376181=a285_0x565d80;return new CliError('auth_required',0x1,_0x376181(0x15f),_0x279181??_0x376181(0x174)+CLI_BIN_NAME+_0x376181(0x167));},'configMissing'(_0x2791be){const _0x16e3c5=a285_0x565d80;return new CliError(_0x16e3c5(0x15e),0x1,_0x16e3c5(0x176),_0x2791be??_0x16e3c5(0x160)+CLI_BIN_NAME+_0x16e3c5(0x177)+CLI_BIN_NAME+_0x16e3c5(0x162));},'notInProject'(){const _0x1c3ecb=a285_0x565d80;return new CliError(_0x1c3ecb(0x169),0x1,_0x1c3ecb(0x16a)+CLI_BIN_NAME+_0x1c3ecb(0x16d),_0x1c3ecb(0x16c));},'apiError'(_0x55d727,_0x33afc1){const _0x50b1e5=a285_0x565d80;return baseCliErrors[_0x50b1e5(0x172)](_0x55d727,_0x33afc1);},'networkError'(_0x1a6c74){const _0x4df8f6=a285_0x565d80;return new CliError('network_error',0x2,_0x4df8f6(0x171)+_0x1a6c74,_0x4df8f6(0x175));},'unknownCommand'(_0x57ede0){const _0x597769=a285_0x565d80;return new CliError(_0x597769(0x165),0x1,'Unknown\x20command:\x20'+_0x57ede0,_0x597769(0x174)+CLI_BIN_NAME+_0x597769(0x173));},'flagMissing'(_0x44ca98,_0x2f6ba1){const _0x539eb2=a285_0x565d80;return new CliError(_0x539eb2(0x179),0x1,_0x539eb2(0x15d)+_0x44ca98,_0x2f6ba1);},'validation'(_0x12f2a8,_0x3d0d02){return baseCliErrors['validation'](_0x12f2a8,_0x3d0d02);},'cancelled'(_0x3685f6){const _0x36ceac=a285_0x565d80;return new CliError(_0x36ceac(0x163),0x0,_0x3685f6??_0x36ceac(0x161));}};
@@ -1 +1 @@
1
- function a270_0xaded(_0x16230e,_0x2cbc66){_0x16230e=_0x16230e-0x1e6;const _0xa20282=a270_0xa202();let _0xaded4=_0xa20282[_0x16230e];return _0xaded4;}(function(_0x3b5907,_0x316a07){const _0x37225a=a270_0xaded,_0x44adf8=_0x3b5907();while(!![]){try{const _0x2762d7=-parseInt(_0x37225a(0x1e6))/0x1+-parseInt(_0x37225a(0x1ee))/0x2+parseInt(_0x37225a(0x1f2))/0x3+-parseInt(_0x37225a(0x1ea))/0x4*(parseInt(_0x37225a(0x1e8))/0x5)+-parseInt(_0x37225a(0x1f1))/0x6*(parseInt(_0x37225a(0x1e7))/0x7)+parseInt(_0x37225a(0x1ed))/0x8*(parseInt(_0x37225a(0x1e9))/0x9)+-parseInt(_0x37225a(0x1f0))/0xa*(-parseInt(_0x37225a(0x1ef))/0xb);if(_0x2762d7===_0x316a07)break;else _0x44adf8['push'](_0x44adf8['shift']());}catch(_0x6fde32){_0x44adf8['push'](_0x44adf8['shift']());}}}(a270_0xa202,0x45514));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a270_0x5034f9}from'@lovrabet/cli-framework';function a270_0xa202(){const _0x8f875d=['6SsvkEv','84840ACayRe','445207gLGrPO','2956163TiWPAQ','64755SfOBaw','38853VaKZPb','60JeQFkV','map','name','456gyKpIw','35636GvYdsw','11tYrMBO','10891740vUwFKP'];a270_0xa202=function(){return _0x8f875d;};return a270_0xa202();}import{EXPLICIT_YES_FLAG_DESCRIPTION,requiresExplicitYes}from'../framework/explicit-yes.js';export function buildAllFlags(_0xa1d246){const _0x11c81d=a270_0xaded,_0x16aa57=a270_0x5034f9(_0xa1d246,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});if(!requiresExplicitYes(_0xa1d246))return _0x16aa57;return _0x16aa57[_0x11c81d(0x1eb)](_0x3d2ef8=>_0x3d2ef8[_0x11c81d(0x1ec)]==='yes'?{..._0x3d2ef8,'description':EXPLICIT_YES_FLAG_DESCRIPTION}:_0x3d2ef8);}
1
+ (function(_0x5f49b8,_0x3c63d8){const _0x518786=a286_0x531f,_0x507f78=_0x5f49b8();while(!![]){try{const _0x5c6bb3=-parseInt(_0x518786(0x1fb))/0x1+-parseInt(_0x518786(0x1f3))/0x2+parseInt(_0x518786(0x1f5))/0x3*(-parseInt(_0x518786(0x1f6))/0x4)+parseInt(_0x518786(0x1fd))/0x5*(parseInt(_0x518786(0x1fa))/0x6)+-parseInt(_0x518786(0x1f9))/0x7+-parseInt(_0x518786(0x1f8))/0x8+-parseInt(_0x518786(0x1fe))/0x9*(-parseInt(_0x518786(0x1f4))/0xa);if(_0x5c6bb3===_0x3c63d8)break;else _0x507f78['push'](_0x507f78['shift']());}catch(_0x5b9281){_0x507f78['push'](_0x507f78['shift']());}}}(a286_0x26bb,0xabbd8));function a286_0x531f(_0x13a3c9,_0x285a21){_0x13a3c9=_0x13a3c9-0x1f2;const _0x26bbb0=a286_0x26bb();let _0x531fd7=_0x26bbb0[_0x13a3c9];return _0x531fd7;}import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a286_0x5f17c9}from'@lovrabet/cli-framework';import{EXPLICIT_YES_FLAG_DESCRIPTION,requiresExplicitYes}from'../framework/explicit-yes.js';export function buildAllFlags(_0x3e55dc){const _0xda049b=a286_0x531f,_0x3ef490=a286_0x5f17c9(_0x3e55dc,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});if(!requiresExplicitYes(_0x3e55dc))return _0x3ef490;return _0x3ef490[_0xda049b(0x1f2)](_0x43c788=>_0x43c788[_0xda049b(0x1f7)]===_0xda049b(0x1fc)?{..._0x43c788,'description':EXPLICIT_YES_FLAG_DESCRIPTION}:_0x43c788);}function a286_0x26bb(){const _0x2abac4=['name','4373056soOWpt','8836177iiyheO','6IHYQDA','704438ZTHcAC','yes','6617870qRusrW','323991WYVzFv','map','1698354bejQpV','1030heSXVj','579279CCVklT','20rqolCH'];a286_0x26bb=function(){return _0x2abac4;};return a286_0x26bb();}
@@ -1 +1 @@
1
- (function(_0x5e346e,_0x1cb68b){var _0x3d17d1=a271_0x3655,_0x11e8bd=_0x5e346e();while(!![]){try{var _0xc947f6=parseInt(_0x3d17d1(0xe0))/0x1*(parseInt(_0x3d17d1(0xdd))/0x2)+parseInt(_0x3d17d1(0xdb))/0x3+parseInt(_0x3d17d1(0xdf))/0x4+-parseInt(_0x3d17d1(0xdc))/0x5*(-parseInt(_0x3d17d1(0xd6))/0x6)+-parseInt(_0x3d17d1(0xd4))/0x7+parseInt(_0x3d17d1(0xda))/0x8+-parseInt(_0x3d17d1(0xd8))/0x9;if(_0xc947f6===_0x1cb68b)break;else _0x11e8bd['push'](_0x11e8bd['shift']());}catch(_0x41450f){_0x11e8bd['push'](_0x11e8bd['shift']());}}}(a271_0x3f51,0xb80ad));import{resolveOutputConfig}from'@lovrabet/cli-framework';export function usesStructuredErrorOutput(_0x1a06d7){var _0x321959=a271_0x3655;return _0x1a06d7?.[_0x321959(0xd7)]===!![];}function a271_0x3655(_0x2022f8,_0x336fac){_0x2022f8=_0x2022f8-0xd4;var _0x3f5198=a271_0x3f51();var _0x365591=_0x3f5198[_0x2022f8];return _0x365591;}export function resolveErrorOutputFormat(_0x51ad41){var _0x3b7e09=a271_0x3655;if(!_0x51ad41['def'])return _0x51ad41[_0x3b7e09(0xd5)]??_0x3b7e09(0xd9);return resolveOutputConfig({'flags':_0x51ad41['flags']??{},'def':_0x51ad41[_0x3b7e09(0xde)],'configDefault':_0x51ad41[_0x3b7e09(0xd5)]})[_0x3b7e09(0xe1)];}function a271_0x3f51(){var _0x20bdb3=['format','8457064UFRuiD','defaultFormat','451092ZPmWuI','structuredErrors','17009136fGefOM','compress','5982376YsfaKz','1246590ioTzae','90tmAyWZ','16Dpckft','def','740232lpflBW','143779YgGQXl'];a271_0x3f51=function(){return _0x20bdb3;};return a271_0x3f51();}
1
+ (function(_0x43bd5b,_0x53373a){var _0x35378a=a287_0x2b41,_0x5b81a4=_0x43bd5b();while(!![]){try{var _0x3e72b6=parseInt(_0x35378a(0xc4))/0x1+parseInt(_0x35378a(0xc0))/0x2+parseInt(_0x35378a(0xc3))/0x3*(parseInt(_0x35378a(0xc2))/0x4)+-parseInt(_0x35378a(0xbe))/0x5+-parseInt(_0x35378a(0xbf))/0x6+parseInt(_0x35378a(0xbd))/0x7+-parseInt(_0x35378a(0xbc))/0x8;if(_0x3e72b6===_0x53373a)break;else _0x5b81a4['push'](_0x5b81a4['shift']());}catch(_0x2863d8){_0x5b81a4['push'](_0x5b81a4['shift']());}}}(a287_0x559d,0x29f31));import{resolveOutputConfig}from'@lovrabet/cli-framework';export function usesStructuredErrorOutput(_0x345388){return _0x345388?.['structuredErrors']===!![];}function a287_0x2b41(_0x2ed509,_0x5d2162){_0x2ed509=_0x2ed509-0xbb;var _0x559de3=a287_0x559d();var _0x2b41e2=_0x559de3[_0x2ed509];return _0x2b41e2;}export function resolveErrorOutputFormat(_0x182218){var _0x4e83c3=a287_0x2b41;if(!_0x182218['def'])return _0x182218['defaultFormat']??_0x4e83c3(0xbb);return resolveOutputConfig({'flags':_0x182218['flags']??{},'def':_0x182218[_0x4e83c3(0xc5)],'configDefault':_0x182218[_0x4e83c3(0xc1)]})['format'];}function a287_0x559d(){var _0x22980f=['defaultFormat','4Xmsotg','946032gKvdwz','179586mzfcqI','def','compress','2653440TZEAXa','852985ThIeXJ','179315WpEkel','2042538oZUpuQ','526012xmPyuC'];a287_0x559d=function(){return _0x22980f;};return a287_0x559d();}
@@ -1 +1 @@
1
- function a272_0x4d96(_0x5ed86b,_0x242c82){_0x5ed86b=_0x5ed86b-0x141;const _0x2b3501=a272_0x2b35();let _0x4d9675=_0x2b3501[_0x5ed86b];return _0x4d9675;}const a272_0x5910b7=a272_0x4d96;(function(_0xba6ac8,_0x3408b1){const _0x137909=a272_0x4d96,_0x5da68b=_0xba6ac8();while(!![]){try{const _0x2a1b1c=parseInt(_0x137909(0x143))/0x1+-parseInt(_0x137909(0x146))/0x2*(parseInt(_0x137909(0x14a))/0x3)+parseInt(_0x137909(0x14d))/0x4*(parseInt(_0x137909(0x142))/0x5)+-parseInt(_0x137909(0x144))/0x6+-parseInt(_0x137909(0x147))/0x7+parseInt(_0x137909(0x148))/0x8*(parseInt(_0x137909(0x141))/0x9)+parseInt(_0x137909(0x14f))/0xa;if(_0x2a1b1c===_0x3408b1)break;else _0x5da68b['push'](_0x5da68b['shift']());}catch(_0x572fb5){_0x5da68b['push'](_0x5da68b['shift']());}}}(a272_0x2b35,0x497d1));const EXPLICIT_YES_COMMANDS=new Set([a272_0x5910b7(0x14c),a272_0x5910b7(0x150),a272_0x5910b7(0x14e),a272_0x5910b7(0x145)]);export const EXPLICIT_YES_FLAG_DESCRIPTION=a272_0x5910b7(0x14b);export function requiresExplicitYes(_0x4f429a){const _0x481079=a272_0x5910b7;return EXPLICIT_YES_COMMANDS['has'](_0x4f429a['service']+'\x20'+_0x4f429a[_0x481079(0x149)]);}function a272_0x2b35(){const _0x2a4814=['341437YIrwEW','2358966aSlGYe','notification\x20config-delete','70410fLqGHf','3673348uavesX','37208pGbLeE','command','42iGCgeJ','Required\x20for\x20execution\x20after\x20reviewing\x20the\x20--dry-run\x20plan','menu\x20delete','228uPmjmf','notification\x20config-update','10002920DzkQKF','kb\x20delete','657cRgQej','2680nEhMHA'];a272_0x2b35=function(){return _0x2a4814;};return a272_0x2b35();}
1
+ function a288_0x5331(_0x46ab09,_0x39dcd8){_0x46ab09=_0x46ab09-0x1c4;const _0xdb8c76=a288_0xdb8c();let _0x533138=_0xdb8c76[_0x46ab09];return _0x533138;}const a288_0x5ad891=a288_0x5331;(function(_0xca97b8,_0x51b0ba){const _0x48b55e=a288_0x5331,_0x259deb=_0xca97b8();while(!![]){try{const _0x4ed778=-parseInt(_0x48b55e(0x1ca))/0x1*(parseInt(_0x48b55e(0x1c4))/0x2)+-parseInt(_0x48b55e(0x1d2))/0x3+-parseInt(_0x48b55e(0x1d3))/0x4+parseInt(_0x48b55e(0x1c7))/0x5+-parseInt(_0x48b55e(0x1d1))/0x6*(-parseInt(_0x48b55e(0x1c8))/0x7)+-parseInt(_0x48b55e(0x1cc))/0x8+parseInt(_0x48b55e(0x1cb))/0x9;if(_0x4ed778===_0x51b0ba)break;else _0x259deb['push'](_0x259deb['shift']());}catch(_0xde73bf){_0x259deb['push'](_0x259deb['shift']());}}}(a288_0xdb8c,0x30c2f));const EXPLICIT_YES_COMMANDS=new Set([a288_0x5ad891(0x1ce),a288_0x5ad891(0x1cd),'notification\x20config-update',a288_0x5ad891(0x1c9)]);export const EXPLICIT_YES_FLAG_DESCRIPTION=a288_0x5ad891(0x1cf);export function requiresExplicitYes(_0x99d488){const _0x49c0a4=a288_0x5ad891;return EXPLICIT_YES_COMMANDS[_0x49c0a4(0x1d0)](_0x99d488[_0x49c0a4(0x1c6)]+'\x20'+_0x99d488[_0x49c0a4(0x1c5)]);}function a288_0xdb8c(){const _0x58b58d=['command','service','838690UcOZUu','21YzPLCD','notification\x20config-delete','8542zRKBpm','6469119fWhljP','1919904tDTUgE','kb\x20delete','menu\x20delete','Required\x20for\x20execution\x20after\x20reviewing\x20the\x20--dry-run\x20plan','has','525930nRFQxN','40197xNtYLr','1521304AqFTcO','74lATDrN'];a288_0xdb8c=function(){return _0x58b58d;};return a288_0xdb8c();}
@@ -1 +1 @@
1
- const a273_0x3e7c9c=a273_0x7fc0;function a273_0x28e2(){const _0x15740a=['8IjXOdY','310729yklyyZ','12552fWkmzz','161XYDZbI','2249322OTuyRv','2bPDTlY','459448BuXOxZ','15485830aIwHfA','79299EhXJLW','parseFlags','validateFlags','24aHTGDt','3915NDDNSy','6889473fFQgNB'];a273_0x28e2=function(){return _0x15740a;};return a273_0x28e2();}(function(_0x38b273,_0x4d7185){const _0x58f3ae=a273_0x7fc0,_0x18f74d=_0x38b273();while(!![]){try{const _0x449ecc=-parseInt(_0x58f3ae(0x118))/0x1*(-parseInt(_0x58f3ae(0x11c))/0x2)+parseInt(_0x58f3ae(0x11b))/0x3*(-parseInt(_0x58f3ae(0x117))/0x4)+parseInt(_0x58f3ae(0x115))/0x5*(parseInt(_0x58f3ae(0x119))/0x6)+parseInt(_0x58f3ae(0x11a))/0x7*(parseInt(_0x58f3ae(0x11d))/0x8)+parseInt(_0x58f3ae(0x116))/0x9+-parseInt(_0x58f3ae(0x110))/0xa+-parseInt(_0x58f3ae(0x111))/0xb*(parseInt(_0x58f3ae(0x114))/0xc);if(_0x449ecc===_0x4d7185)break;else _0x18f74d['push'](_0x18f74d['shift']());}catch(_0x2cc9ce){_0x18f74d['push'](_0x18f74d['shift']());}}}(a273_0x28e2,0xed752));import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers[a273_0x3e7c9c(0x112)];function a273_0x7fc0(_0x5dea5f,_0x319d28){_0x5dea5f=_0x5dea5f-0x110;const _0x28e228=a273_0x28e2();let _0x7fc0e5=_0x28e228[_0x5dea5f];return _0x7fc0e5;}export const validateFlags=helpers[a273_0x3e7c9c(0x113)];
1
+ const a289_0x4c6ba1=a289_0x5c57;function a289_0x5c53(){const _0x5ae16c=['24ynHPdQ','1207073DZabCh','validateFlags','132843pWayQl','4710627KDaZYV','165667MhfuaZ','994694eQQNRj','36OcdGMo','833815ZyaaQC','parseFlags','2432958ftNRzb'];a289_0x5c53=function(){return _0x5ae16c;};return a289_0x5c53();}(function(_0x2a8596,_0x309891){const _0xe63808=a289_0x5c57,_0x1b0b1f=_0x2a8596();while(!![]){try{const _0x5f0552=parseInt(_0xe63808(0x1ce))/0x1+parseInt(_0xe63808(0x1cf))/0x2+parseInt(_0xe63808(0x1d7))/0x3*(parseInt(_0xe63808(0x1d0))/0x4)+-parseInt(_0xe63808(0x1d1))/0x5+parseInt(_0xe63808(0x1d3))/0x6+parseInt(_0xe63808(0x1d5))/0x7*(-parseInt(_0xe63808(0x1d4))/0x8)+-parseInt(_0xe63808(0x1d8))/0x9;if(_0x5f0552===_0x309891)break;else _0x1b0b1f['push'](_0x1b0b1f['shift']());}catch(_0x1a8144){_0x1b0b1f['push'](_0x1b0b1f['shift']());}}}(a289_0x5c53,0x3f5e1));import{createFlagHelpers}from'@lovrabet/cli-framework';function a289_0x5c57(_0x1ed717,_0x326099){_0x1ed717=_0x1ed717-0x1ce;const _0x5c5355=a289_0x5c53();let _0x5c57fd=_0x5c5355[_0x1ed717];return _0x5c57fd;}import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers[a289_0x4c6ba1(0x1d2)];export const validateFlags=helpers[a289_0x4c6ba1(0x1d6)];
@@ -1 +1 @@
1
- (function(_0x7f1030,_0x963a6){const _0x4af81a=a274_0x1d28,_0x4f228c=_0x7f1030();while(!![]){try{const _0x2697ca=parseInt(_0x4af81a(0x102))/0x1+parseInt(_0x4af81a(0x103))/0x2*(-parseInt(_0x4af81a(0x108))/0x3)+-parseInt(_0x4af81a(0x10c))/0x4*(parseInt(_0x4af81a(0x10d))/0x5)+parseInt(_0x4af81a(0x101))/0x6*(-parseInt(_0x4af81a(0x100))/0x7)+parseInt(_0x4af81a(0x109))/0x8+-parseInt(_0x4af81a(0x107))/0x9+parseInt(_0x4af81a(0x10a))/0xa;if(_0x2697ca===_0x963a6)break;else _0x4f228c['push'](_0x4f228c['shift']());}catch(_0x9f0648){_0x4f228c['push'](_0x4f228c['shift']());}}}(a274_0x9544,0xeb3c1));function a274_0x9544(){const _0x431ae1=['generateFullHelp','42GYvkbB','120738CqJEtq','65600IDwGLl','22wqFsaS','Requires\x20explicit\x20--yes\x20for\x20execution;\x20use\x20--dry-run\x20to\x20preview.','replace','generateCommandHelp','262404cWgCFZ','239172gObzyC','6719320wCxSIE','12313580hHTCtU','\x20[args]\x20[flags]','585976mrdXVC','5ZGepJR','generateServiceHelp'];a274_0x9544=function(){return _0x431ae1;};return a274_0x9544();}import{createHelpGenerators}from'@lovrabet/cli-framework';function a274_0x1d28(_0x412542,_0x53f549){_0x412542=_0x412542-0xfe;const _0x95442c=a274_0x9544();let _0x1d28ff=_0x95442c[_0x412542];return _0x1d28ff;}import{buildAllFlags}from'../framework/build-all-flags.js';import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{requiresExplicitYes}from'../framework/explicit-yes.js';function createGenerators(){const _0x1b80c4=a274_0x1d28;return createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':serviceRegistry,'getServiceEntry':getServiceEntry,'getServiceDefinitions':_0x3af5c3=>serviceGroups['get'](_0x3af5c3),'buildAllFlags':buildAllFlags,'appPrerequisiteText':'Requires\x20appcode\x20(set\x20via\x20`'+CLI_BIN_NAME+'\x20workspace\x20init`\x20or\x20--appcode).','serviceUsageSuffix':_0x1b80c4(0x10b)});}export function generateCommandHelp(_0x5e612c){const _0x3cf967=a274_0x1d28,_0x3bf9b3=createGenerators()[_0x3cf967(0x106)](_0x5e612c);if(!requiresExplicitYes(_0x5e612c))return _0x3bf9b3;return _0x3bf9b3[_0x3cf967(0x105)]('Requires\x20--yes\x20to\x20confirm,\x20or\x20interactive\x20prompt.',_0x3cf967(0x104));}export function generateServiceHelp(_0xf1ec5b){const _0x5ba719=a274_0x1d28;return createGenerators()[_0x5ba719(0xfe)](_0xf1ec5b);}export function generateFullHelp(){const _0x168453=a274_0x1d28;return createGenerators()[_0x168453(0xff)]();}
1
+ (function(_0x563662,_0x1c0817){const _0x21a7ba=a290_0x5df5,_0x29d9a9=_0x563662();while(!![]){try{const _0x15af07=-parseInt(_0x21a7ba(0x19d))/0x1*(parseInt(_0x21a7ba(0x1a0))/0x2)+-parseInt(_0x21a7ba(0x19c))/0x3+parseInt(_0x21a7ba(0x1a1))/0x4+-parseInt(_0x21a7ba(0x1a6))/0x5*(parseInt(_0x21a7ba(0x19e))/0x6)+-parseInt(_0x21a7ba(0x1a7))/0x7*(-parseInt(_0x21a7ba(0x1a4))/0x8)+parseInt(_0x21a7ba(0x1a3))/0x9+-parseInt(_0x21a7ba(0x1a8))/0xa;if(_0x15af07===_0x1c0817)break;else _0x29d9a9['push'](_0x29d9a9['shift']());}catch(_0x7ae74d){_0x29d9a9['push'](_0x29d9a9['shift']());}}}(a290_0x3a76,0x38ae0));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';function a290_0x5df5(_0x1405f8,_0x111e8c){_0x1405f8=_0x1405f8-0x19b;const _0x3a76c0=a290_0x3a76();let _0x5df5d7=_0x3a76c0[_0x1405f8];return _0x5df5d7;}import{requiresExplicitYes}from'../framework/explicit-yes.js';function createGenerators(){const _0x18f4c0=a290_0x5df5;return createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':serviceRegistry,'getServiceEntry':getServiceEntry,'getServiceDefinitions':_0x319b21=>serviceGroups[_0x18f4c0(0x1a9)](_0x319b21),'buildAllFlags':buildAllFlags,'appPrerequisiteText':'Requires\x20appcode\x20(set\x20via\x20`'+CLI_BIN_NAME+_0x18f4c0(0x1a2),'serviceUsageSuffix':'\x20[args]\x20[flags]'});}export function generateCommandHelp(_0x4031cd){const _0x4f3711=a290_0x5df5,_0x32f3e9=createGenerators()['generateCommandHelp'](_0x4031cd);if(!requiresExplicitYes(_0x4031cd))return _0x32f3e9;return _0x32f3e9[_0x4f3711(0x19f)](_0x4f3711(0x19b),'Requires\x20explicit\x20--yes\x20for\x20execution;\x20use\x20--dry-run\x20to\x20preview.');}function a290_0x3a76(){const _0x5a96db=['1GfhbkA','120486ZIVQKO','replace','713046MDlJyM','1825536GXpaOn','\x20workspace\x20init`\x20or\x20--appcode).','1857168qeQmQv','13072MMLHKP','generateServiceHelp','55JIAPGN','1785WzPaNs','2404640duLlNA','get','Requires\x20--yes\x20to\x20confirm,\x20or\x20interactive\x20prompt.','88104MoQNnB'];a290_0x3a76=function(){return _0x5a96db;};return a290_0x3a76();}export function generateServiceHelp(_0x3d5f23){const _0x11904a=a290_0x5df5;return createGenerators()[_0x11904a(0x1a5)](_0x3d5f23);}export function generateFullHelp(){return createGenerators()['generateFullHelp']();}
@@ -1 +1 @@
1
- (function(_0xf9633a,_0x117af0){var _0x1fd10e=a275_0x57bd,_0x531aaa=_0xf9633a();while(!![]){try{var _0x17eee8=-parseInt(_0x1fd10e(0x16d))/0x1*(parseInt(_0x1fd10e(0x16b))/0x2)+-parseInt(_0x1fd10e(0x167))/0x3*(-parseInt(_0x1fd10e(0x166))/0x4)+parseInt(_0x1fd10e(0x169))/0x5+-parseInt(_0x1fd10e(0x16f))/0x6+-parseInt(_0x1fd10e(0x165))/0x7*(parseInt(_0x1fd10e(0x168))/0x8)+parseInt(_0x1fd10e(0x16c))/0x9+parseInt(_0x1fd10e(0x16e))/0xa*(parseInt(_0x1fd10e(0x16a))/0xb);if(_0x17eee8===_0x117af0)break;else _0x531aaa['push'](_0x531aaa['shift']());}catch(_0x20c8c3){_0x531aaa['push'](_0x531aaa['shift']());}}}(a275_0x4006,0xc2c85));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 a275_0x57bd(_0x3de3de,_0x411787){_0x3de3de=_0x3de3de-0x165;var _0x4006e6=a275_0x4006();var _0x57bd71=_0x4006e6[_0x3de3de];return _0x57bd71;}export{riskLevelOrder}from'../framework/types.js';function a275_0x4006(){var _0x240f9a=['1238742ROZRfX','10099607GkHNqZ','724jTgniD','12237jvDQAU','8aTUwFU','4429640wrjQiV','5039672KnGXpw','26IYibwx','3923766RVNFTs','5482NLVYdG','10pPTJlb'];a275_0x4006=function(){return _0x240f9a;};return a275_0x4006();}
1
+ (function(_0x38df58,_0x38316b){var _0x1f60bd=a291_0x2605,_0x125c66=_0x38df58();while(!![]){try{var _0x419c6c=-parseInt(_0x1f60bd(0x100))/0x1*(parseInt(_0x1f60bd(0xf8))/0x2)+-parseInt(_0x1f60bd(0xfd))/0x3+-parseInt(_0x1f60bd(0xfa))/0x4+parseInt(_0x1f60bd(0x101))/0x5*(parseInt(_0x1f60bd(0xff))/0x6)+-parseInt(_0x1f60bd(0xf9))/0x7+parseInt(_0x1f60bd(0xfc))/0x8+parseInt(_0x1f60bd(0xfe))/0x9*(parseInt(_0x1f60bd(0xfb))/0xa);if(_0x419c6c===_0x38316b)break;else _0x125c66['push'](_0x125c66['shift']());}catch(_0x12970e){_0x125c66['push'](_0x125c66['shift']());}}}(a291_0x22e8,0xd416e));export{runCommand}from'../framework/runner.js';function a291_0x22e8(){var _0x529f51=['7727300IddpNw','3647532MPkqCI','10DOasVf','6898320OZJZJl','2503947QKFdvI','29426013cxhaut','3906ZXoSUa','2hhFDES','605VADckU','491468UUzVbS'];a291_0x22e8=function(){return _0x529f51;};return a291_0x22e8();}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 a291_0x2605(_0x9f5092,_0x203f61){_0x9f5092=_0x9f5092-0xf8;var _0x22e8ad=a291_0x22e8();var _0x2605f3=_0x22e8ad[_0x9f5092];return _0x2605f3;}export{riskLevelOrder}from'../framework/types.js';
@@ -1 +1 @@
1
- (function(_0x420c9c,_0x2f6c34){const _0x5c9e50=a276_0x33d0,_0x22fe26=_0x420c9c();while(!![]){try{const _0x5a6a03=-parseInt(_0x5c9e50(0x102))/0x1*(-parseInt(_0x5c9e50(0x10d))/0x2)+parseInt(_0x5c9e50(0x113))/0x3+-parseInt(_0x5c9e50(0x10e))/0x4+parseInt(_0x5c9e50(0x109))/0x5*(parseInt(_0x5c9e50(0x10a))/0x6)+-parseInt(_0x5c9e50(0x101))/0x7+parseInt(_0x5c9e50(0x107))/0x8*(-parseInt(_0x5c9e50(0x106))/0x9)+parseInt(_0x5c9e50(0x104))/0xa;if(_0x5a6a03===_0x2f6c34)break;else _0x22fe26['push'](_0x22fe26['shift']());}catch(_0x1a02d9){_0x22fe26['push'](_0x22fe26['shift']());}}}(a276_0x1708,0xcd85e));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliError,CliErrors}from'../errors.js';import{applyJqFilter}from'../utils/apply-jq-filter.js';function a276_0x33d0(_0x4c8898,_0x4ef132){_0x4c8898=_0x4c8898-0xfc;const _0x17088d=a276_0x1708();let _0x33d0a0=_0x17088d[_0x4c8898];return _0x33d0a0;}const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0x465f88,_0x48d928){const _0x3171b5=a276_0x33d0,_0x21fe1c=_0x465f88[_0x3171b5(0x110)],{_notice:_0xbfdeca,..._0x26434e}=_0x465f88;void _0xbfdeca,baseFormatOutput(_0x26434e,_0x48d928),_0x48d928[_0x3171b5(0x103)]===_0x3171b5(0x108)&&printPrettyNotice(_0x21fe1c);}function a276_0x1708(){const _0x634efa=['jq:\x20','4745724oatBqs','message','write','risk','code','validation','stdout','jqFilter','stringify','3387699lbGCER','89Vkuqpl','format','6000850vJquLH','data','11662659xKixav','8tiJsTC','pretty','1580yiJwUx','1956xoDKkD','trim','hint','30260MOKyRM','4039796cJBNPU','update','_notice','error'];a276_0x1708=function(){return _0x634efa;};return a276_0x1708();}export function formatCliError(_0x50bd07,_0xebaf4c){const _0x2a71d3=a276_0x33d0;if(_0xebaf4c[_0x2a71d3(0x103)]==='pretty')return![];const _0x1e454f=_0x50bd07[_0x2a71d3(0x105)],_0x578a93={'ok':![],'command':_0xebaf4c['command'],'risk':_0xebaf4c[_0x2a71d3(0x116)],'data':_0x1e454f??null,'error':{'code':_0x50bd07[_0x2a71d3(0xfc)],'message':_0x50bd07[_0x2a71d3(0x114)],..._0x50bd07[_0x2a71d3(0x10c)]?{'hint':_0x50bd07['hint']}:{}}},_0xf4af3b=_0xebaf4c[_0x2a71d3(0x103)]==='json'?JSON['stringify'](_0x578a93,null,0x2):JSON[_0x2a71d3(0x100)](_0x578a93);let _0x1c03c7=_0xf4af3b;if(_0xebaf4c[_0x2a71d3(0xff)]?.[_0x2a71d3(0x10b)]())try{_0x1c03c7=applyJqFilter(_0xf4af3b,_0xebaf4c['jqFilter']);}catch(_0x116d18){const _0x280e43=_0x116d18 instanceof CliError?_0x116d18:CliErrors[_0x2a71d3(0xfd)](_0x2a71d3(0x112)+(_0x116d18 instanceof Error?_0x116d18[_0x2a71d3(0x114)]:String(_0x116d18))),_0x586378={..._0x578a93,'error':{'code':_0x280e43[_0x2a71d3(0xfc)],'message':_0x280e43[_0x2a71d3(0x114)],..._0x280e43[_0x2a71d3(0x10c)]?{'hint':_0x280e43[_0x2a71d3(0x10c)]}:{},'cause':_0x578a93[_0x2a71d3(0x111)]}};_0x1c03c7=_0xebaf4c[_0x2a71d3(0x103)]==='json'?JSON[_0x2a71d3(0x100)](_0x586378,null,0x2):JSON[_0x2a71d3(0x100)](_0x586378);}return process[_0x2a71d3(0xfe)][_0x2a71d3(0x115)](_0x1c03c7['endsWith']('\x0a')?_0x1c03c7:_0x1c03c7+'\x0a'),!![];}function printPrettyNotice(_0x362a2c){const _0x36bdcc=a276_0x33d0;if(!_0x362a2c?.[_0x36bdcc(0x10f)])return;console[_0x36bdcc(0x111)](_0x362a2c['update'][_0x36bdcc(0x114)]+'\x20('+_0x362a2c[_0x36bdcc(0x10f)]['url']+')');}
1
+ (function(_0x3a1e91,_0x4b8671){const _0x5dad50=a292_0x3ee5,_0x198f5f=_0x3a1e91();while(!![]){try{const _0x12cc76=parseInt(_0x5dad50(0xb0))/0x1*(parseInt(_0x5dad50(0xa6))/0x2)+-parseInt(_0x5dad50(0x9f))/0x3*(-parseInt(_0x5dad50(0xa5))/0x4)+parseInt(_0x5dad50(0xac))/0x5*(-parseInt(_0x5dad50(0xa7))/0x6)+-parseInt(_0x5dad50(0xae))/0x7+parseInt(_0x5dad50(0x95))/0x8+parseInt(_0x5dad50(0xa9))/0x9*(parseInt(_0x5dad50(0xa8))/0xa)+-parseInt(_0x5dad50(0xa4))/0xb;if(_0x12cc76===_0x4b8671)break;else _0x198f5f['push'](_0x198f5f['shift']());}catch(_0x5789b0){_0x198f5f['push'](_0x198f5f['shift']());}}}(a292_0x32d5,0x6ebca));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a292_0x3ee5(_0x4ca0d6,_0x5e557b){_0x4ca0d6=_0x4ca0d6-0x94;const _0x32d5c5=a292_0x32d5();let _0x3ee556=_0x32d5c5[_0x4ca0d6];return _0x3ee556;}import{CliError,CliErrors}from'../errors.js';import{applyJqFilter}from'../utils/apply-jq-filter.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0x41b2ca,_0x3533a5){const _0x4ed5e1=a292_0x3ee5,_0x385e87=_0x41b2ca['_notice'],{_notice:_0x1917b4,..._0x213886}=_0x41b2ca;void _0x1917b4,baseFormatOutput(_0x213886,_0x3533a5),_0x3533a5[_0x4ed5e1(0x9e)]===_0x4ed5e1(0x98)&&printPrettyNotice(_0x385e87);}export function formatCliError(_0x132f96,_0x39fb9f){const _0x14ecc5=a292_0x3ee5;if(_0x39fb9f['format']===_0x14ecc5(0x98))return![];const _0x432f8c=_0x132f96[_0x14ecc5(0xa3)],_0x2c14aa={'ok':![],'command':_0x39fb9f[_0x14ecc5(0x94)],'risk':_0x39fb9f[_0x14ecc5(0x9a)],'data':_0x432f8c??null,'error':{'code':_0x132f96[_0x14ecc5(0x97)],'message':_0x132f96[_0x14ecc5(0x9b)],..._0x132f96[_0x14ecc5(0xaa)]?{'hint':_0x132f96[_0x14ecc5(0xaa)]}:{}}},_0x445df9=_0x39fb9f[_0x14ecc5(0x9e)]==='json'?JSON[_0x14ecc5(0x96)](_0x2c14aa,null,0x2):JSON[_0x14ecc5(0x96)](_0x2c14aa);let _0x99a133=_0x445df9;if(_0x39fb9f[_0x14ecc5(0x9d)]?.[_0x14ecc5(0x99)]())try{_0x99a133=applyJqFilter(_0x445df9,_0x39fb9f[_0x14ecc5(0x9d)]);}catch(_0x3e44c5){const _0x539f27=_0x3e44c5 instanceof CliError?_0x3e44c5:CliErrors['validation'](_0x14ecc5(0xa2)+(_0x3e44c5 instanceof Error?_0x3e44c5[_0x14ecc5(0x9b)]:String(_0x3e44c5))),_0x5d333f={..._0x2c14aa,'error':{'code':_0x539f27['code'],'message':_0x539f27[_0x14ecc5(0x9b)],..._0x539f27[_0x14ecc5(0xaa)]?{'hint':_0x539f27['hint']}:{},'cause':_0x2c14aa['error']}};_0x99a133=_0x39fb9f[_0x14ecc5(0x9e)]===_0x14ecc5(0xab)?JSON[_0x14ecc5(0x96)](_0x5d333f,null,0x2):JSON['stringify'](_0x5d333f);}return process['stdout'][_0x14ecc5(0xad)](_0x99a133[_0x14ecc5(0x9c)]('\x0a')?_0x99a133:_0x99a133+'\x0a'),!![];}function a292_0x32d5(){const _0x536777=['7004696dLjzwj','stringify','code','pretty','trim','risk','message','endsWith','jqFilter','format','3wlpSBh','error','update','jq:\x20','data','8358119HRGQgQ','2247636MaPMEy','110qVKVjb','15894LtMfvc','370iivNSm','73881LeXAxG','hint','json','1420nVzUfn','write','4621652hQrmvT','url','16086WSSwpz','command'];a292_0x32d5=function(){return _0x536777;};return a292_0x32d5();}function printPrettyNotice(_0x27ab53){const _0x1f1a98=a292_0x3ee5;if(!_0x27ab53?.[_0x1f1a98(0xa1)])return;console[_0x1f1a98(0xa0)](_0x27ab53['update']['message']+'\x20('+_0x27ab53[_0x1f1a98(0xa1)][_0x1f1a98(0xaf)]+')');}
@@ -1 +1 @@
1
- function a277_0x1aff(_0x3ba65b,_0x1803ba){_0x3ba65b=_0x3ba65b-0x126;var _0x2f7938=a277_0x2f79();var _0x1afffe=_0x2f7938[_0x3ba65b];return _0x1afffe;}(function(_0x5c7950,_0x29869b){var _0x540a40=a277_0x1aff,_0x31a52a=_0x5c7950();while(!![]){try{var _0x2eb8c8=parseInt(_0x540a40(0x128))/0x1+parseInt(_0x540a40(0x127))/0x2+parseInt(_0x540a40(0x12b))/0x3+parseInt(_0x540a40(0x12c))/0x4+parseInt(_0x540a40(0x126))/0x5*(parseInt(_0x540a40(0x12d))/0x6)+parseInt(_0x540a40(0x12a))/0x7+-parseInt(_0x540a40(0x129))/0x8;if(_0x2eb8c8===_0x29869b)break;else _0x31a52a['push'](_0x31a52a['shift']());}catch(_0x486cbf){_0x31a52a['push'](_0x31a52a['shift']());}}}(a277_0x2f79,0x43df1));function a277_0x2f79(){var _0x1e57b1=['2859594aYcYQU','5XIPybh','693510OCNFGs','307974JFYsBd','12929224bXgIBH','1285956Psnste','277587yxqrNS','1946356AmVsYb'];a277_0x2f79=function(){return _0x1e57b1;};return a277_0x2f79();}export{extractList,extractPaging}from'@lovrabet/cli-framework';
1
+ (function(_0x21ada6,_0x466818){var _0x2303f0=a293_0x776f,_0x3be0e8=_0x21ada6();while(!![]){try{var _0x3541f3=-parseInt(_0x2303f0(0xb2))/0x1*(parseInt(_0x2303f0(0xae))/0x2)+-parseInt(_0x2303f0(0xb6))/0x3+parseInt(_0x2303f0(0xb0))/0x4*(parseInt(_0x2303f0(0xb4))/0x5)+-parseInt(_0x2303f0(0xac))/0x6+parseInt(_0x2303f0(0xad))/0x7*(-parseInt(_0x2303f0(0xb3))/0x8)+parseInt(_0x2303f0(0xb1))/0x9*(-parseInt(_0x2303f0(0xab))/0xa)+-parseInt(_0x2303f0(0xaf))/0xb*(-parseInt(_0x2303f0(0xb5))/0xc);if(_0x3541f3===_0x466818)break;else _0x3be0e8['push'](_0x3be0e8['shift']());}catch(_0x3c1a21){_0x3be0e8['push'](_0x3be0e8['shift']());}}}(a293_0x4715,0x3d912));function a293_0x776f(_0x1ccc7a,_0x679ea8){_0x1ccc7a=_0x1ccc7a-0xab;var _0x47157a=a293_0x4715();var _0x776fbf=_0x47157a[_0x1ccc7a];return _0x776fbf;}function a293_0x4715(){var _0x375ddb=['13UvDXxr','2784vALJge','25JBLKjd','3275532epAgls','686940EkdQYo','90ommfQM','413406ightrh','7560WAbqIO','26578vcOjan','44UdgJkw','33580kTXmaM','35163zTAzDm'];a293_0x4715=function(){return _0x375ddb;};return a293_0x4715();}export{extractList,extractPaging}from'@lovrabet/cli-framework';
@@ -1 +1 @@
1
- (function(_0x233eb7,_0x19a5fe){const _0x4d8d9f=a278_0x4a7b,_0xdc6f54=_0x233eb7();while(!![]){try{const _0x2a537e=-parseInt(_0x4d8d9f(0x71))/0x1*(-parseInt(_0x4d8d9f(0x67))/0x2)+parseInt(_0x4d8d9f(0x7b))/0x3+parseInt(_0x4d8d9f(0x65))/0x4*(-parseInt(_0x4d8d9f(0x75))/0x5)+parseInt(_0x4d8d9f(0x7d))/0x6*(-parseInt(_0x4d8d9f(0x74))/0x7)+-parseInt(_0x4d8d9f(0x6a))/0x8+-parseInt(_0x4d8d9f(0x6d))/0x9*(parseInt(_0x4d8d9f(0x72))/0xa)+parseInt(_0x4d8d9f(0x6c))/0xb*(parseInt(_0x4d8d9f(0x64))/0xc);if(_0x2a537e===_0x19a5fe)break;else _0xdc6f54['push'](_0xdc6f54['shift']());}catch(_0x21a31e){_0xdc6f54['push'](_0xdc6f54['shift']());}}}(a278_0x3e24,0x5b10f));function a278_0x3e24(){const _0x2d292d=['63996iPoWoE','2876QhtcwK','map','11266qvCxla','.\x20Run\x20`','some','1961920nArmcb','code','2244PJGoYx','683919vLhoKS','No\x20api.ts\x20found\x20in\x20','flags','join','62NjGdju','30OXxrAj','length','291515KGbgeE','3695jmiOII','type','name','\x22.\x20','alias','Unknown\x20alias\x20\x22','445824jXyZNd','`\x20requires\x20either\x20--code\x20or\x20--alias.','30QKNNvu'];a278_0x3e24=function(){return _0x2d292d;};return a278_0x3e24();}import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';function a278_0x4a7b(_0x614c00,_0x2ef800){_0x614c00=_0x614c00-0x64;const _0x3e2411=a278_0x3e24();let _0x4a7b49=_0x3e2411[_0x614c00];return _0x4a7b49;}import{CLI_BIN_NAME}from'../constant/cli.js';export function resolveAliasToCode(_0x186178,_0x21883d,_0x5f3324,_0xd863fb){const _0x54626b=a278_0x4a7b,_0x9aa41c=_0x186178[_0x54626b(0x6f)][_0x54626b(0x69)](_0x58f4da=>_0x58f4da[_0x54626b(0x77)]===_0x54626b(0x6b)&&_0x58f4da[_0x54626b(0x76)]==='string'),_0x6d04df=_0x186178[_0x54626b(0x6f)][_0x54626b(0x69)](_0x4e5f38=>_0x4e5f38[_0x54626b(0x77)]===_0x54626b(0x79)&&_0x4e5f38[_0x54626b(0x76)]==='string');if(!_0x9aa41c||!_0x6d04df)return;const _0x1a94f1=_0x21883d[_0x54626b(0x6b)]?String(_0x21883d[_0x54626b(0x6b)]):'',_0x75c79e=_0x21883d[_0x54626b(0x79)]?String(_0x21883d[_0x54626b(0x79)]):'';if(!_0x1a94f1&&!_0x75c79e)throw CliErrors['validation']('`'+_0xd863fb+_0x54626b(0x7c));if(_0x75c79e&&!_0x1a94f1){const _0x9e833c=resolveAlias(_0x5f3324,_0x75c79e);if(!_0x9e833c){const _0x331410=listAliases(_0x5f3324)[_0x54626b(0x66)](_0x272e84=>_0x272e84[_0x54626b(0x79)]),_0x5e5c25=_0x331410[_0x54626b(0x73)]?'Available\x20aliases:\x20'+_0x331410[_0x54626b(0x70)](',\x20'):_0x54626b(0x6e)+_0x5f3324+_0x54626b(0x68)+CLI_BIN_NAME+'\x20api\x20pull`\x20first.';throw CliErrors['validation'](_0x54626b(0x7a)+_0x75c79e+_0x54626b(0x78)+_0x5e5c25);}_0x21883d['code']=_0x9e833c;}}
1
+ function a294_0x1cd0(){const _0xb6dd79=['code','`\x20requires\x20either\x20--code\x20or\x20--alias.','name','9760086AbWDMb','7914USYEij','10836120IwJfit','type','\x22.\x20','No\x20api.ts\x20found\x20in\x20','\x20api\x20pull`\x20first.','Unknown\x20alias\x20\x22','string','993AFLvJb','some','.\x20Run\x20`','4418796iUgjQg','Available\x20aliases:\x20','join','5836607hRREIh','alias','length','validation','flags','6WnvFRF','7075395qHkAhF','1377038ccXatr','map'];a294_0x1cd0=function(){return _0xb6dd79;};return a294_0x1cd0();}(function(_0x1c7a14,_0x5aae07){const _0xf04d2e=a294_0x93a5,_0x41d43d=_0x1c7a14();while(!![]){try{const _0xfdfd19=-parseInt(_0xf04d2e(0xdc))/0x1+-parseInt(_0xf04d2e(0xe2))/0x2*(-parseInt(_0xf04d2e(0xea))/0x3)+parseInt(_0xf04d2e(0xed))/0x4+-parseInt(_0xf04d2e(0xdb))/0x5+-parseInt(_0xf04d2e(0xda))/0x6*(-parseInt(_0xf04d2e(0xf0))/0x7)+parseInt(_0xf04d2e(0xe3))/0x8+-parseInt(_0xf04d2e(0xe1))/0x9;if(_0xfdfd19===_0x5aae07)break;else _0x41d43d['push'](_0x41d43d['shift']());}catch(_0x4d922f){_0x41d43d['push'](_0x41d43d['shift']());}}}(a294_0x1cd0,0xb14c3));import{CliErrors}from'../errors.js';function a294_0x93a5(_0x2b59e4,_0x26ba9a){_0x2b59e4=_0x2b59e4-0xd8;const _0x1cd03c=a294_0x1cd0();let _0x93a56d=_0x1cd03c[_0x2b59e4];return _0x93a56d;}import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';export function resolveAliasToCode(_0x140a95,_0x1e3429,_0x485f56,_0x565343){const _0x129d81=a294_0x93a5,_0xf54f3f=_0x140a95[_0x129d81(0xd9)][_0x129d81(0xeb)](_0x3671f1=>_0x3671f1[_0x129d81(0xe0)]===_0x129d81(0xde)&&_0x3671f1[_0x129d81(0xe4)]===_0x129d81(0xe9)),_0x273a7c=_0x140a95[_0x129d81(0xd9)]['some'](_0x487068=>_0x487068[_0x129d81(0xe0)]===_0x129d81(0xf1)&&_0x487068[_0x129d81(0xe4)]===_0x129d81(0xe9));if(!_0xf54f3f||!_0x273a7c)return;const _0x3f4513=_0x1e3429[_0x129d81(0xde)]?String(_0x1e3429[_0x129d81(0xde)]):'',_0x437922=_0x1e3429['alias']?String(_0x1e3429[_0x129d81(0xf1)]):'';if(!_0x3f4513&&!_0x437922)throw CliErrors[_0x129d81(0xd8)]('`'+_0x565343+_0x129d81(0xdf));if(_0x437922&&!_0x3f4513){const _0x457bcc=resolveAlias(_0x485f56,_0x437922);if(!_0x457bcc){const _0x50651b=listAliases(_0x485f56)[_0x129d81(0xdd)](_0x2a4608=>_0x2a4608[_0x129d81(0xf1)]),_0x46562c=_0x50651b[_0x129d81(0xf2)]?_0x129d81(0xee)+_0x50651b[_0x129d81(0xef)](',\x20'):_0x129d81(0xe6)+_0x485f56+_0x129d81(0xec)+CLI_BIN_NAME+_0x129d81(0xe7);throw CliErrors[_0x129d81(0xd8)](_0x129d81(0xe8)+_0x437922+_0x129d81(0xe5)+_0x46562c);}_0x1e3429[_0x129d81(0xde)]=_0x457bcc;}}
@@ -1 +1 @@
1
- (function(_0x11c3bc,_0x17934e){const _0xbab801=a279_0x3a48,_0x50ceb5=_0x11c3bc();while(!![]){try{const _0x1e44b4=parseInt(_0xbab801(0x12f))/0x1*(parseInt(_0xbab801(0x146))/0x2)+-parseInt(_0xbab801(0x12b))/0x3+-parseInt(_0xbab801(0x174))/0x4*(-parseInt(_0xbab801(0x143))/0x5)+-parseInt(_0xbab801(0x17b))/0x6+-parseInt(_0xbab801(0x161))/0x7*(parseInt(_0xbab801(0x17a))/0x8)+-parseInt(_0xbab801(0x14a))/0x9+parseInt(_0xbab801(0x167))/0xa;if(_0x1e44b4===_0x17934e)break;else _0x50ceb5['push'](_0x50ceb5['shift']());}catch(_0x397583){_0x50ceb5['push'](_0x50ceb5['shift']());}}}(a279_0x21a3,0x8c25d));import{resolveCommandAuthMode,runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';import{getCookie}from'../auth/get-cookie.js';import{getApiDomain}from'../constant/domain.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{DEFAULT_API_DIR}from'../constant/paths.js';import{isNonInteractive as a279_0x3fd8e2}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x28b814){const _0x1a4ca7=a279_0x3a48;return typeof _0x28b814===_0x1a4ca7(0x16f)&&_0x28b814['trim']()?_0x28b814[_0x1a4ca7(0x151)]():undefined;}function resolveEnvAppCode(){const _0x502fb7=a279_0x3a48,_0x4a953f=stringFlag(process.env.RABETBASE_APPCODE);if(_0x4a953f)return{'name':_0x502fb7(0x168),'value':_0x4a953f};const _0x5b584b=stringFlag(process.env.LOVRABET_APPCODE);if(_0x5b584b)return{'name':_0x502fb7(0x138),'value':_0x5b584b};return undefined;}function hasExplicitAppCode(_0x163496,_0x4d8d0e){const _0x1e125e=a279_0x3a48;return!!(stringFlag(_0x163496[_0x1e125e(0x162)])||stringFlag(_0x4d8d0e['appcode']));}function assertEnvAppCodeNotIgnored(_0x5bfae2,_0xe32790,_0x3cb5f6){const _0xae3f49=a279_0x3a48;if(!_0xe32790||_0x3cb5f6||_0x5bfae2===_0xe32790[_0xae3f49(0x160)])return;const _0x3c4ce9=_0x5bfae2?_0xae3f49(0x175)+_0x5bfae2+'\x22.':'No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.';throw CliErrors[_0xae3f49(0x16a)](_0xe32790[_0xae3f49(0x153)]+'='+_0xe32790[_0xae3f49(0x160)]+_0xae3f49(0x15c)+_0x3c4ce9+'\x20'+('To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$'+_0xe32790['name']+'\x22.'));}export function createPipelineEnv(_0x594114,_0x1e843c,_0x5a27c9=[]){const _0x37bcf6=a279_0x3a48;return{'rawFlags':_0x1e843c,'args':_0x5a27c9,'resolveAppCode':()=>_0x594114['appCode'],'resolveCookie':()=>_0x594114[_0x37bcf6(0x13c)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a279_0x3fd8e2(_0x1e843c),'defaultFormat':_0x594114[_0x37bcf6(0x140)],'defaultPageSize':_0x594114[_0x37bcf6(0x137)],'defaultVerbose':_0x594114[_0x37bcf6(0x136)],'apiDir':_0x594114[_0x37bcf6(0x179)],'riskLevel':_0x594114[_0x37bcf6(0x171)],'selectedAppName':_0x594114[_0x37bcf6(0x172)],'mergedCli':{'defaultApp':_0x594114[_0x37bcf6(0x159)],'currentApp':_0x594114[_0x37bcf6(0x127)],'appCode':_0x594114[_0x37bcf6(0x150)],'apps':_0x594114[_0x37bcf6(0x152)]}};}export function createRabetbaseRunnerAdapter(_0x579c57={}){const _0x4dacdc=a279_0x3a48;return{'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0x4dacdc(0x163)](_0x565528=>PIPELINE_FLAG_NAMES[_0x4dacdc(0x16e)](_0x565528[_0x4dacdc(0x153)]))[_0x4dacdc(0x155)](({name:_0x5c3556,type:_0x420dff,description:_0x19f332})=>({'name':_0x5c3556,'type':_0x420dff,'description':_0x19f332})),'formatOutput':_0x579c57[_0x4dacdc(0x12a)]??formatOutput,'getCommandLabel'(_0x1b87a0){const _0x3547f7=_0x4dacdc;return CLI_BIN_NAME+'\x20'+_0x1b87a0[_0x3547f7(0x130)]+'\x20'+_0x1b87a0['command'];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x2bf24b,{def:_0x2e9543}){const _0x5ec18e=_0x4dacdc,_0x3a8822=_0x2bf24b[_0x5ec18e(0x15d)]('Edit\x20the\x20config\x20file\x20manually')?_0x5ec18e(0x135):_0x5ec18e(0x14f)+_0x2e9543['risk']+'\x22\x20if\x20this\x20operation\x20is\x20intended.\x20'+'AI\x20Agents\x20and\x20automated\x20scripts\x20must\x20not\x20modify\x20riskLevel\x20or\x20attempt\x20to\x20elevate\x20it.';return CliErrors[_0x5ec18e(0x16a)](_0x2bf24b+_0x5ec18e(0x128)+_0x3a8822);}},async 'prepare'(_0x128327,_0x14a0fe,_0x5e5f08,_0x48add1){const _0x3c741a=_0x4dacdc,_0xddb0c=_0x14a0fe[_0x3c741a(0x179)]||DEFAULT_API_DIR;resolveAliasToCode(_0x128327,_0x5e5f08,_0xddb0c,_0x48add1);const _0x1a620a=resolveCommandAuthMode(_0x128327);let _0x52dc6e='';if(_0x1a620a!==_0x3c741a(0x17c)){_0x52dc6e=_0x14a0fe['resolveCookie']()||'';if(!_0x52dc6e){if(_0x1a620a==='required')throw CliErrors[_0x3c741a(0x170)]();}else{const {setActiveCookie:_0x2ca5c2}=await import(_0x3c741a(0x14e));_0x2ca5c2(_0x52dc6e);}}const _0x48ab99=_0x14a0fe['resolveAppCode']()??'';if(_0x128327[_0x3c741a(0x15a)]!==![]){const _0x2a51d0=hasExplicitAppCode(_0x5e5f08,_0x14a0fe[_0x3c741a(0x176)]),_0x155933=_0x14a0fe[_0x3c741a(0x15b)]?.[_0x3c741a(0x152)]??{},_0x59f472=_0x14a0fe['selectedAppName']||_0x14a0fe[_0x3c741a(0x15b)]?.[_0x3c741a(0x127)]||_0x14a0fe[_0x3c741a(0x15b)]?.[_0x3c741a(0x159)];if(!_0x2a51d0&&_0x59f472&&!_0x155933[_0x59f472]){const _0x5edf4e=Object['keys'](_0x155933);throw CliErrors[_0x3c741a(0x16a)](_0x3c741a(0x12c)+_0x59f472+_0x3c741a(0x149),_0x5edf4e[_0x3c741a(0x142)]>0x0?_0x3c741a(0x132)+_0x5edf4e[_0x3c741a(0x131)](',\x20')+'.\x20Use\x20--app/--appcode,\x20or\x20run\x20`'+CLI_BIN_NAME+_0x3c741a(0x12e):_0x3c741a(0x16c)+CLI_BIN_NAME+'\x20config\x20delete\x20defaultApp`\x20to\x20repair\x20the\x20selection.');}assertEnvAppCodeNotIgnored(_0x48ab99,resolveEnvAppCode(),_0x2a51d0);if(!_0x48ab99){const _0x8cd94=Object['keys'](_0x155933);if(!_0x59f472&&_0x8cd94[_0x3c741a(0x142)]>0x1)throw CliErrors['configMissing']('Multiple\x20apps\x20are\x20configured\x20but\x20no\x20default\x20app\x20is\x20selected.\x20Use\x20--app\x20<name>\x20or\x20run\x20`'+CLI_BIN_NAME+_0x3c741a(0x13b)+_0x8cd94[_0x3c741a(0x131)](',\x20')+'.');throw CliErrors[_0x3c741a(0x156)](_0x3c741a(0x139)+CLI_BIN_NAME+_0x3c741a(0x144));}}return{'defaults':{'booleans':{'verbose':_0x14a0fe[_0x3c741a(0x157)]},'numbers':{'pagesize':_0x14a0fe[_0x3c741a(0x15e)]}},'extras':{'appCode':_0x48ab99,'cookie':_0x52dc6e,'apiDomain':_0x14a0fe[_0x3c741a(0x141)](),'apiDir':_0xddb0c,'selectedAppName':_0x14a0fe['selectedAppName'],'mergedCli':_0x14a0fe['mergedCli']}};},'confirmHighRisk':_0x579c57[_0x4dacdc(0x14b)]??(async({env:_0x790e59,commandLabel:_0x1e054e})=>{const _0x4cb172=_0x4dacdc;if(_0x790e59[_0x4cb172(0x178)])throw CliErrors[_0x4cb172(0x16a)](_0x4cb172(0x14c)+_0x1e054e+'`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.');await requireConfirmationPrompt({'lines':[_0x4cb172(0x173)+_0x1e054e,_0x4cb172(0x14d)],'createCancelledError':_0x3a7cc4=>CliErrors[_0x4cb172(0x133)](_0x3a7cc4)});}),async 'finalize'(){await clearRabetbaseCommandState();}};}const terminalRunnerAdapter=createRabetbaseRunnerAdapter();async function clearRabetbaseCommandState(){const _0x1b7522=a279_0x3a48,{clearActiveCookie:_0xd65922}=await import(_0x1b7522(0x14e));_0xd65922();}export async function finalizeRabetbaseRuntimeState(){const _0x4f8f9f=a279_0x3a48;try{await clearRabetbaseCommandState();}finally{const [{initDomains:_0x1a12f0},{initEnv:_0x10e592}]=await Promise[_0x4f8f9f(0x16b)]([import(_0x4f8f9f(0x15f)),import(_0x4f8f9f(0x12d))]);_0x1a12f0(),_0x10e592('production');}}export async function runCommand(_0x35c099,_0x2b8d09,_0x70bd06=terminalRunnerAdapter){const _0x548776=a279_0x3a48;assertRejectedFlags(_0x35c099,_0x2b8d09[_0x548776(0x176)]),await runCommandWithAdapter(shouldAttachUpdateNotice(_0x35c099)?withUpdateNotice(_0x35c099):_0x35c099,_0x2b8d09,_0x70bd06);}function assertRejectedFlags(_0x43f989,_0x59b375){const _0x4dcf0f=a279_0x3a48;for(const _0x4fa557 of _0x43f989[_0x4dcf0f(0x16d)]??[]){const _0x13a09f=GLOBAL_FLAGS['find'](_0x268c0c=>_0x268c0c[_0x4dcf0f(0x153)]===_0x4fa557[_0x4dcf0f(0x153)]),_0x3145b2=new Set([_0x4fa557['name'],toCamelCase(_0x4fa557[_0x4dcf0f(0x153)]),_0x13a09f?.[_0x4dcf0f(0x166)]]),_0x1de9ac=[..._0x3145b2][_0x4dcf0f(0x13e)](_0x465649=>{if(!_0x465649)return![];const _0x358281=_0x59b375[_0x465649];return _0x358281!==undefined&&_0x358281!==null&&_0x358281!==![];});if(_0x1de9ac)throw CliErrors['validation'](_0x4fa557[_0x4dcf0f(0x154)],_0x4fa557[_0x4dcf0f(0x13a)]);}}function toCamelCase(_0x452172){const _0x2f6977=a279_0x3a48;return _0x452172[_0x2f6977(0x129)](/-([a-z])/g,(_0x568e47,_0x35d4d4)=>_0x35d4d4[_0x2f6977(0x147)]());}function shouldAttachUpdateNotice(_0x5897c4){const _0x516ed6=a279_0x3a48;if(_0x5897c4[_0x516ed6(0x13d)]===![])return![];return![_0x516ed6(0x134),_0x516ed6(0x148),_0x516ed6(0x145)][_0x516ed6(0x15d)](_0x5897c4[_0x516ed6(0x130)]);}function withUpdateNotice(_0x536cc9){return{..._0x536cc9,async 'execute'(_0x1bd63b){const _0x7e2229=a279_0x3a48,_0x2463ce=shouldResolveUpdateNotice(_0x1bd63b)?resolveLatestUpdateNotice()[_0x7e2229(0x169)](()=>null):Promise[_0x7e2229(0x158)](null),_0x40042c=await _0x536cc9['execute'](_0x1bd63b);return attachUpdateNotice(_0x40042c,await _0x2463ce);}};}function a279_0x21a3(){const _0x58a93c=['all','Use\x20--appcode,\x20add\x20the\x20app\x20to\x20the\x20project\x20workspace,\x20or\x20run\x20`','rejectedFlags','has','string','authRequired','riskLevel','explicitAppName','⚠\x20\x20High-risk\x20operation:\x20','393332eQehaO','Current\x20resolved\x20appcode\x20is\x20\x22','rawFlags','_notice','isNonInteractive','apiDir','152KHYTRS','3200886iKeirL','none','currentApp','\x0a\x20\x20','replace','formatOutput','2287890XERJTC','App\x20\x22','../constant/env.js','\x20config\x20delete\x20defaultApp`\x20to\x20repair\x20the\x20selection.','18KFGlig','service','join','Available:\x20','cancelled','update','AI\x20Agents\x20and\x20automated\x20scripts\x20must\x20not\x20modify\x20riskLevel\x20or\x20attempt\x20to\x20elevate\x20it.','verbose','pageSize','LOVRABET_APPCODE','Set\x20appcode\x20via\x20`','hint','\x20workspace\x20use\x20--app\x20<name>`.\x20Available:\x20','cookie','hasFormat','some','nonInteractive','format','resolveApiDomain','length','45MOjiXu','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','doctor','98652HkAYwC','toUpperCase','schema','\x22\x20is\x20selected\x20but\x20not\x20defined\x20in\x20the\x20effective\x20project\x20apps.','3585510HArlEr','confirmHighRisk','High-risk\x20operation\x20`','\x20\x20\x20Continue?\x20[y/N]\x20','../core/api-client.js','A\x20human\x20user\x20may\x20review\x20the\x20active\x20risk\x20ceilings\x20and\x20manually\x20edit\x20the\x20applicable\x20.rabetbase.json\x20file\x20to\x20set\x20riskLevel\x20to\x20\x22','appCode','trim','apps','name','message','map','configMissing','defaultVerbose','resolve','defaultApp','requiresAppCode','mergedCli','\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20','includes','defaultPageSize','../constant/domain.js','value','135667JHWqWM','appcode','filter','object','pretty','meowKey','8639200dbFDHO','RABETBASE_APPCODE','catch','validation'];a279_0x21a3=function(){return _0x58a93c;};return a279_0x21a3();}function a279_0x3a48(_0x8bc824,_0xe94a12){_0x8bc824=_0x8bc824-0x127;const _0x21a31c=a279_0x21a3();let _0x3a48d7=_0x21a31c[_0x8bc824];return _0x3a48d7;}function shouldResolveUpdateNotice(_0x3716f2){const _0x1ce590=a279_0x3a48;return _0x3716f2[_0x1ce590(0x140)]===_0x1ce590(0x165)&&!_0x3716f2[_0x1ce590(0x13f)];}function attachUpdateNotice(_0x5380c7,_0x1978ee){const _0x41eb62=a279_0x3a48;if(!_0x1978ee||!_0x5380c7||typeof _0x5380c7!==_0x41eb62(0x164))return _0x5380c7;const _0x11dfee=_0x5380c7,_0x2651aa=typeof _0x11dfee[_0x41eb62(0x177)]===_0x41eb62(0x164)&&_0x11dfee[_0x41eb62(0x177)]!==null?_0x11dfee[_0x41eb62(0x177)]:{};return{..._0x11dfee,'_notice':{..._0x2651aa,'update':_0x1978ee}};}
1
+ (function(_0x1e3dcf,_0x15bc76){const _0x578f98=a295_0x2475,_0x21f7d2=_0x1e3dcf();while(!![]){try{const _0x2e3013=-parseInt(_0x578f98(0x178))/0x1+parseInt(_0x578f98(0x166))/0x2*(parseInt(_0x578f98(0x147))/0x3)+-parseInt(_0x578f98(0x14d))/0x4*(parseInt(_0x578f98(0x160))/0x5)+parseInt(_0x578f98(0x156))/0x6*(-parseInt(_0x578f98(0x15b))/0x7)+parseInt(_0x578f98(0x161))/0x8+parseInt(_0x578f98(0x148))/0x9+parseInt(_0x578f98(0x19a))/0xa*(parseInt(_0x578f98(0x149))/0xb);if(_0x2e3013===_0x15bc76)break;else _0x21f7d2['push'](_0x21f7d2['shift']());}catch(_0x12298b){_0x21f7d2['push'](_0x21f7d2['shift']());}}}(a295_0x471f,0x32dd6));import{resolveCommandAuthMode,runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';import{getCookie}from'../auth/get-cookie.js';import{getApiDomain}from'../constant/domain.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{DEFAULT_API_DIR}from'../constant/paths.js';import{isNonInteractive as a295_0x27d548}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x54a059){const _0x5a46bf=a295_0x2475;return typeof _0x54a059===_0x5a46bf(0x146)&&_0x54a059[_0x5a46bf(0x18c)]()?_0x54a059[_0x5a46bf(0x18c)]():undefined;}function resolveEnvAppCode(){const _0x285a17=a295_0x2475,_0x1752ba=stringFlag(process.env.RABETBASE_APPCODE);if(_0x1752ba)return{'name':_0x285a17(0x153),'value':_0x1752ba};const _0x5b9889=stringFlag(process.env.LOVRABET_APPCODE);if(_0x5b9889)return{'name':_0x285a17(0x199),'value':_0x5b9889};return undefined;}function a295_0x471f(){const _0x57d9ef=['selectedAppName','LOVRABET_APPCODE','10hgWpaq','name','message','hint','requiresAppCode','string','3ymNmIF','1735929ZAUOze','1051743RGOGUp','\x22\x20is\x20selected\x20but\x20not\x20defined\x20in\x20the\x20effective\x20project\x20apps.','nonInteractive','production','4vJGnCX','format','Use\x20--appcode,\x20add\x20the\x20app\x20to\x20the\x20project\x20workspace,\x20or\x20run\x20`','pretty','isNonInteractive','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','RABETBASE_APPCODE','Edit\x20the\x20config\x20file\x20manually','doctor','10158nscgZu','filter','_notice','\x20workspace\x20use\x20--app\x20<name>`.\x20Available:\x20','appcode','1211lNSnMI','value','object','\x20\x20\x20Continue?\x20[y/N]\x20','has','1713890FEFtOS','1972712LNdCaO','\x0a\x20\x20','\x20config\x20delete\x20defaultApp`\x20to\x20repair\x20the\x20selection.','formatOutput','rawFlags','770402PfRxEx','defaultVerbose','join','authRequired','explicitAppName','includes','meowKey','⚠\x20\x20High-risk\x20operation:\x20','apps','../constant/env.js','defaultPageSize','\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20','To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$','some','configMissing','AI\x20Agents\x20and\x20automated\x20scripts\x20must\x20not\x20modify\x20riskLevel\x20or\x20attempt\x20to\x20elevate\x20it.','command','replace','76275QSzCUE','confirmHighRisk','pageSize','App\x20\x22','../core/api-client.js','find','keys','apiDir','High-risk\x20operation\x20`','cancelled','defaultApp','length','resolveAppCode','Current\x20resolved\x20appcode\x20is\x20\x22','resolveApiDomain','Multiple\x20apps\x20are\x20configured\x20but\x20no\x20default\x20app\x20is\x20selected.\x20Use\x20--app\x20<name>\x20or\x20run\x20`','execute','.\x20Use\x20--app/--appcode,\x20or\x20run\x20`','service','update','trim','currentApp','appCode','none','schema','\x22\x20if\x20this\x20operation\x20is\x20intended.\x20','validation','Available:\x20','risk','No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.','all','mergedCli'];a295_0x471f=function(){return _0x57d9ef;};return a295_0x471f();}function a295_0x2475(_0x202e39,_0x4c5a83){_0x202e39=_0x202e39-0x144;const _0x471f17=a295_0x471f();let _0x2475b4=_0x471f17[_0x202e39];return _0x2475b4;}function hasExplicitAppCode(_0xc9e69f,_0x3256c5){const _0x1db3f0=a295_0x2475;return!!(stringFlag(_0xc9e69f[_0x1db3f0(0x15a)])||stringFlag(_0x3256c5[_0x1db3f0(0x15a)]));}function assertEnvAppCodeNotIgnored(_0x214fd8,_0x2d8c1b,_0x3d8d80){const _0xe1ac9d=a295_0x2475;if(!_0x2d8c1b||_0x3d8d80||_0x214fd8===_0x2d8c1b['value'])return;const _0x3aeb69=_0x214fd8?_0xe1ac9d(0x185)+_0x214fd8+'\x22.':_0xe1ac9d(0x195);throw CliErrors[_0xe1ac9d(0x192)](_0x2d8c1b[_0xe1ac9d(0x19b)]+'='+_0x2d8c1b[_0xe1ac9d(0x15c)]+_0xe1ac9d(0x171)+_0x3aeb69+'\x20'+(_0xe1ac9d(0x172)+_0x2d8c1b[_0xe1ac9d(0x19b)]+'\x22.'));}export function createPipelineEnv(_0x2a0700,_0x303ffd,_0x198a90=[]){const _0x5f34d5=a295_0x2475;return{'rawFlags':_0x303ffd,'args':_0x198a90,'resolveAppCode':()=>_0x2a0700['appCode'],'resolveCookie':()=>_0x2a0700['cookie']||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a295_0x27d548(_0x303ffd),'defaultFormat':_0x2a0700[_0x5f34d5(0x14e)],'defaultPageSize':_0x2a0700[_0x5f34d5(0x17a)],'defaultVerbose':_0x2a0700['verbose'],'apiDir':_0x2a0700[_0x5f34d5(0x17f)],'riskLevel':_0x2a0700['riskLevel'],'selectedAppName':_0x2a0700[_0x5f34d5(0x16a)],'mergedCli':{'defaultApp':_0x2a0700[_0x5f34d5(0x182)],'currentApp':_0x2a0700['currentApp'],'appCode':_0x2a0700[_0x5f34d5(0x18e)],'apps':_0x2a0700[_0x5f34d5(0x16e)]}};}export function createRabetbaseRunnerAdapter(_0x2e37ef={}){const _0x766989=a295_0x2475;return{'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0x766989(0x157)](_0x126925=>PIPELINE_FLAG_NAMES[_0x766989(0x15f)](_0x126925[_0x766989(0x19b)]))['map'](({name:_0x551676,type:_0x1c7267,description:_0xe1b8d9})=>({'name':_0x551676,'type':_0x1c7267,'description':_0xe1b8d9})),'formatOutput':_0x2e37ef[_0x766989(0x164)]??formatOutput,'getCommandLabel'(_0x1a4cb7){const _0x1bb95a=_0x766989;return CLI_BIN_NAME+'\x20'+_0x1a4cb7[_0x1bb95a(0x18a)]+'\x20'+_0x1a4cb7[_0x1bb95a(0x176)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0xca2ee2,{def:_0x19bde5}){const _0x2c6ed5=_0x766989,_0x92dfc5=_0xca2ee2[_0x2c6ed5(0x16b)](_0x2c6ed5(0x154))?_0x2c6ed5(0x175):'A\x20human\x20user\x20may\x20review\x20the\x20active\x20risk\x20ceilings\x20and\x20manually\x20edit\x20the\x20applicable\x20.rabetbase.json\x20file\x20to\x20set\x20riskLevel\x20to\x20\x22'+_0x19bde5[_0x2c6ed5(0x194)]+_0x2c6ed5(0x191)+'AI\x20Agents\x20and\x20automated\x20scripts\x20must\x20not\x20modify\x20riskLevel\x20or\x20attempt\x20to\x20elevate\x20it.';return CliErrors[_0x2c6ed5(0x192)](_0xca2ee2+_0x2c6ed5(0x162)+_0x92dfc5);}},async 'prepare'(_0x2f4714,_0x56fcf8,_0x522814,_0x3681c7){const _0x2e8a68=_0x766989,_0x1a2aee=_0x56fcf8[_0x2e8a68(0x17f)]||DEFAULT_API_DIR;resolveAliasToCode(_0x2f4714,_0x522814,_0x1a2aee,_0x3681c7);const _0x3393d4=resolveCommandAuthMode(_0x2f4714);let _0x2091f9='';if(_0x3393d4!==_0x2e8a68(0x18f)){_0x2091f9=_0x56fcf8['resolveCookie']()||'';if(!_0x2091f9){if(_0x3393d4==='required')throw CliErrors[_0x2e8a68(0x169)]();}else{const {setActiveCookie:_0x45a6ca}=await import('../core/api-client.js');_0x45a6ca(_0x2091f9);}}const _0x5a4fa8=_0x56fcf8[_0x2e8a68(0x184)]()??'';if(_0x2f4714[_0x2e8a68(0x145)]!==![]){const _0x19ce0f=hasExplicitAppCode(_0x522814,_0x56fcf8['rawFlags']),_0x381b1c=_0x56fcf8['mergedCli']?.[_0x2e8a68(0x16e)]??{},_0x46b597=_0x56fcf8[_0x2e8a68(0x198)]||_0x56fcf8['mergedCli']?.[_0x2e8a68(0x18d)]||_0x56fcf8[_0x2e8a68(0x197)]?.[_0x2e8a68(0x182)];if(!_0x19ce0f&&_0x46b597&&!_0x381b1c[_0x46b597]){const _0xba47dc=Object[_0x2e8a68(0x17e)](_0x381b1c);throw CliErrors[_0x2e8a68(0x192)](_0x2e8a68(0x17b)+_0x46b597+_0x2e8a68(0x14a),_0xba47dc[_0x2e8a68(0x183)]>0x0?_0x2e8a68(0x193)+_0xba47dc[_0x2e8a68(0x168)](',\x20')+_0x2e8a68(0x189)+CLI_BIN_NAME+'\x20config\x20delete\x20defaultApp`\x20to\x20repair\x20the\x20selection.':_0x2e8a68(0x14f)+CLI_BIN_NAME+_0x2e8a68(0x163));}assertEnvAppCodeNotIgnored(_0x5a4fa8,resolveEnvAppCode(),_0x19ce0f);if(!_0x5a4fa8){const _0x5be4bf=Object['keys'](_0x381b1c);if(!_0x46b597&&_0x5be4bf['length']>0x1)throw CliErrors[_0x2e8a68(0x174)](_0x2e8a68(0x187)+CLI_BIN_NAME+_0x2e8a68(0x159)+_0x5be4bf['join'](',\x20')+'.');throw CliErrors[_0x2e8a68(0x174)]('Set\x20appcode\x20via\x20`'+CLI_BIN_NAME+'\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.');}}return{'defaults':{'booleans':{'verbose':_0x56fcf8[_0x2e8a68(0x167)]},'numbers':{'pagesize':_0x56fcf8[_0x2e8a68(0x170)]}},'extras':{'appCode':_0x5a4fa8,'cookie':_0x2091f9,'apiDomain':_0x56fcf8[_0x2e8a68(0x186)](),'apiDir':_0x1a2aee,'selectedAppName':_0x56fcf8[_0x2e8a68(0x198)],'mergedCli':_0x56fcf8[_0x2e8a68(0x197)]}};},'confirmHighRisk':_0x2e37ef[_0x766989(0x179)]??(async({env:_0x482c31,commandLabel:_0x30f044})=>{const _0x235643=_0x766989;if(_0x482c31[_0x235643(0x151)])throw CliErrors['validation'](_0x235643(0x180)+_0x30f044+_0x235643(0x152));await requireConfirmationPrompt({'lines':[_0x235643(0x16d)+_0x30f044,_0x235643(0x15e)],'createCancelledError':_0x4ef0d4=>CliErrors[_0x235643(0x181)](_0x4ef0d4)});}),async 'finalize'(){await clearRabetbaseCommandState();}};}const terminalRunnerAdapter=createRabetbaseRunnerAdapter();async function clearRabetbaseCommandState(){const _0x2bcd4a=a295_0x2475,{clearActiveCookie:_0x40f8fe}=await import(_0x2bcd4a(0x17c));_0x40f8fe();}export async function finalizeRabetbaseRuntimeState(){const _0xae751a=a295_0x2475;try{await clearRabetbaseCommandState();}finally{const [{initDomains:_0x320e6c},{initEnv:_0x3e4725}]=await Promise[_0xae751a(0x196)]([import('../constant/domain.js'),import(_0xae751a(0x16f))]);_0x320e6c(),_0x3e4725(_0xae751a(0x14c));}}export async function runCommand(_0x3cf2ee,_0x54e890,_0x1a274c=terminalRunnerAdapter){const _0x10ff94=a295_0x2475;assertRejectedFlags(_0x3cf2ee,_0x54e890[_0x10ff94(0x165)]),await runCommandWithAdapter(shouldAttachUpdateNotice(_0x3cf2ee)?withUpdateNotice(_0x3cf2ee):_0x3cf2ee,_0x54e890,_0x1a274c);}function assertRejectedFlags(_0x8826c,_0x3d6b65){const _0x52ce86=a295_0x2475;for(const _0x196700 of _0x8826c['rejectedFlags']??[]){const _0x56b6c8=GLOBAL_FLAGS[_0x52ce86(0x17d)](_0x2b5940=>_0x2b5940['name']===_0x196700[_0x52ce86(0x19b)]),_0x5b1e27=new Set([_0x196700[_0x52ce86(0x19b)],toCamelCase(_0x196700['name']),_0x56b6c8?.[_0x52ce86(0x16c)]]),_0x4e7a19=[..._0x5b1e27][_0x52ce86(0x173)](_0x914c12=>{if(!_0x914c12)return![];const _0x505c69=_0x3d6b65[_0x914c12];return _0x505c69!==undefined&&_0x505c69!==null&&_0x505c69!==![];});if(_0x4e7a19)throw CliErrors[_0x52ce86(0x192)](_0x196700[_0x52ce86(0x19c)],_0x196700[_0x52ce86(0x144)]);}}function toCamelCase(_0x469397){const _0x495826=a295_0x2475;return _0x469397[_0x495826(0x177)](/-([a-z])/g,(_0x5a2128,_0x2ad1b2)=>_0x2ad1b2['toUpperCase']());}function shouldAttachUpdateNotice(_0x1242c8){const _0x237505=a295_0x2475;if(_0x1242c8['hasFormat']===![])return![];return![_0x237505(0x18b),_0x237505(0x190),_0x237505(0x155)][_0x237505(0x16b)](_0x1242c8[_0x237505(0x18a)]);}function withUpdateNotice(_0x961a67){return{..._0x961a67,async 'execute'(_0x2125d2){const _0x427951=a295_0x2475,_0x21f859=shouldResolveUpdateNotice(_0x2125d2)?resolveLatestUpdateNotice()['catch'](()=>null):Promise['resolve'](null),_0xb4974=await _0x961a67[_0x427951(0x188)](_0x2125d2);return attachUpdateNotice(_0xb4974,await _0x21f859);}};}function shouldResolveUpdateNotice(_0x31c928){const _0x782ba3=a295_0x2475;return _0x31c928[_0x782ba3(0x14e)]===_0x782ba3(0x150)&&!_0x31c928[_0x782ba3(0x14b)];}function attachUpdateNotice(_0x53c319,_0x3ee622){const _0x3c7a6d=a295_0x2475;if(!_0x3ee622||!_0x53c319||typeof _0x53c319!=='object')return _0x53c319;const _0x26e7a=_0x53c319,_0xe60592=typeof _0x26e7a['_notice']===_0x3c7a6d(0x15d)&&_0x26e7a[_0x3c7a6d(0x158)]!==null?_0x26e7a[_0x3c7a6d(0x158)]:{};return{..._0x26e7a,'_notice':{..._0xe60592,'update':_0x3ee622}};}
@@ -1 +1 @@
1
- (function(_0x2cd282,_0x2954e4){const _0x305af2=a280_0x5034,_0x4d9bc3=_0x2cd282();while(!![]){try{const _0xfc468d=parseInt(_0x305af2(0x8d))/0x1+-parseInt(_0x305af2(0x89))/0x2*(parseInt(_0x305af2(0x87))/0x3)+-parseInt(_0x305af2(0x88))/0x4*(-parseInt(_0x305af2(0x8b))/0x5)+parseInt(_0x305af2(0x86))/0x6*(-parseInt(_0x305af2(0x8c))/0x7)+parseInt(_0x305af2(0x83))/0x8*(-parseInt(_0x305af2(0x84))/0x9)+parseInt(_0x305af2(0x8e))/0xa+parseInt(_0x305af2(0x8a))/0xb;if(_0xfc468d===_0x2954e4)break;else _0x4d9bc3['push'](_0x4d9bc3['shift']());}catch(_0x461dbd){_0x4d9bc3['push'](_0x4d9bc3['shift']());}}}(a280_0x1fcc,0x29db0));import{buildSchemaPayload as a280_0x5716be}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';function a280_0x1fcc(){const _0x339028=['../commands/registry.js','896838askUhT','9rTsCmr','52NDchrk','204908Pniddw','3909246HrPOQk','39810gAqHHX','14NglprE','217088NqrOvs','1970810koVMBX','254168nReRsA','27OVzQZo'];a280_0x1fcc=function(){return _0x339028;};return a280_0x1fcc();}import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';function a280_0x5034(_0x5947bc,_0x340101){_0x5947bc=_0x5947bc-0x83;const _0x1fcc0e=a280_0x1fcc();let _0x50342c=_0x1fcc0e[_0x5947bc];return _0x50342c;}import{getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const _0x3b16aa=a280_0x5034,{serviceRegistry:_0x53897b,findDefinition:_0x2d22d6}=await import(_0x3b16aa(0x85));return a280_0x5716be({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x53897b,'buildAllFlags':buildAllFlags,'findDefinition':_0x2d22d6});}
1
+ function a296_0x56f6(_0x352c6d,_0x5234ea){_0x352c6d=_0x352c6d-0x119;const _0x41be62=a296_0x41be();let _0x56f68b=_0x41be62[_0x352c6d];return _0x56f68b;}function a296_0x41be(){const _0x5adef9=['1618715GSyxBv','88HPmcrM','487641uSEAPX','14301954YEPobP','6255144hnCdKK','166376ypSqRG','474bjLZSy','2139tqnNEX','625868BQodKH'];a296_0x41be=function(){return _0x5adef9;};return a296_0x41be();}(function(_0x7e9a49,_0x433373){const _0x4a3387=a296_0x56f6,_0xfcc15e=_0x7e9a49();while(!![]){try{const _0x5904c5=parseInt(_0x4a3387(0x11a))/0x1*(parseInt(_0x4a3387(0x119))/0x2)+-parseInt(_0x4a3387(0x11e))/0x3+parseInt(_0x4a3387(0x11b))/0x4+parseInt(_0x4a3387(0x11c))/0x5+parseInt(_0x4a3387(0x120))/0x6+parseInt(_0x4a3387(0x121))/0x7*(parseInt(_0x4a3387(0x11d))/0x8)+-parseInt(_0x4a3387(0x11f))/0x9;if(_0x5904c5===_0x433373)break;else _0xfcc15e['push'](_0xfcc15e['shift']());}catch(_0x52736d){_0xfcc15e['push'](_0xfcc15e['shift']());}}}(a296_0x41be,0x83b50));import{buildSchemaPayload as a296_0x501e9c}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const {serviceRegistry:_0x49db85,findDefinition:_0x371999}=await import('../commands/registry.js');return a296_0x501e9c({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x49db85,'buildAllFlags':buildAllFlags,'findDefinition':_0x371999});}
@@ -1 +1 @@
1
- (function(_0x33902f,_0x37d140){const _0x2893bf=a281_0xd3f8,_0x2ea572=_0x33902f();while(!![]){try{const _0x18f76f=parseInt(_0x2893bf(0xc5))/0x1+-parseInt(_0x2893bf(0xae))/0x2*(-parseInt(_0x2893bf(0xc2))/0x3)+parseInt(_0x2893bf(0xad))/0x4+parseInt(_0x2893bf(0xb6))/0x5*(parseInt(_0x2893bf(0xbf))/0x6)+-parseInt(_0x2893bf(0xaf))/0x7+parseInt(_0x2893bf(0xb2))/0x8+-parseInt(_0x2893bf(0xbb))/0x9*(parseInt(_0x2893bf(0xb3))/0xa);if(_0x18f76f===_0x37d140)break;else _0x2ea572['push'](_0x2ea572['shift']());}catch(_0x26ff12){_0x2ea572['push'](_0x2ea572['shift']());}}}(a281_0x3a79,0xb2f6e));import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{CliErrors}from'../errors.js';export function assertSupportedCommandFlags(_0x5953ef,_0x192d30){const _0x1455d1=a281_0xd3f8;if(!_0x5953ef['strictFlags'])return;const _0xac82e4=new Set([_0x1455d1(0xc1),_0x1455d1(0xbc)]),_0x3bcc7c=GLOBAL_FLAGS[_0x1455d1(0xb7)](_0x14d401=>PIPELINE_FLAG_NAMES[_0x1455d1(0xc6)](_0x14d401['name']));for(const _0x3053d9 of[..._0x5953ef['flags'],..._0x3bcc7c]){addFlagCandidates(_0xac82e4,_0x3053d9);}for(const [_0x437b27,_0x4ba1d7]of Object[_0x1455d1(0xc3)](_0x192d30)){if(!isExplicitValue(_0x4ba1d7)||_0xac82e4[_0x1455d1(0xc6)](_0x437b27))continue;const _0x1556dd=GLOBAL_FLAGS[_0x1455d1(0xb9)](_0x19947c=>_0x19947c[_0x1455d1(0xc8)]===_0x437b27)?.[_0x1455d1(0xbd)]??toKebabCase(_0x437b27);throw CliErrors['validation'](_0x1455d1(0xc0)+_0x1556dd+_0x1455d1(0xc4)+CLI_BIN_NAME+'\x20'+_0x5953ef[_0x1455d1(0xb5)]+'\x20'+_0x5953ef['command']+'`.',_0x1455d1(0xc7)+CLI_BIN_NAME+'\x20'+_0x5953ef[_0x1455d1(0xb5)]+'\x20'+_0x5953ef['command']+_0x1455d1(0xb4));}}function addFlagCandidates(_0x30ffe3,_0x5e1d81){const _0xa25cad=a281_0xd3f8,_0x30f2d3=_0xa25cad(0xc8)in _0x5e1d81?[_0x5e1d81[_0xa25cad(0xbd)],_0x5e1d81[_0xa25cad(0xc8)]]:[_0x5e1d81[_0xa25cad(0xbd)],_0x5e1d81[_0xa25cad(0xb1)]];for(const _0xfe4ef1 of _0x30f2d3){if(!_0xfe4ef1)continue;_0x30ffe3['add'](_0xfe4ef1),_0x30ffe3[_0xa25cad(0xbe)](toCamelCase(_0xfe4ef1));}}function isExplicitValue(_0x9ab0a1){const _0x4c3f32=a281_0xd3f8;return _0x9ab0a1!==undefined&&_0x9ab0a1!==null&&_0x9ab0a1!==![]&&(!Array[_0x4c3f32(0xb8)](_0x9ab0a1)||_0x9ab0a1[_0x4c3f32(0xac)]>0x0);}function a281_0xd3f8(_0x3c67cb,_0x16bc2d){_0x3c67cb=_0x3c67cb-0xac;const _0x3a7934=a281_0x3a79();let _0xd3f836=_0x3a7934[_0x3c67cb];return _0xd3f836;}function toCamelCase(_0x1e1c84){const _0x2bdb71=a281_0xd3f8;return _0x1e1c84[_0x2bdb71(0xb0)](/-([a-z])/g,(_0x1de80e,_0x365631)=>_0x365631[_0x2bdb71(0xba)]());}function toKebabCase(_0x3d874c){const _0x31010c=a281_0xd3f8;return _0x3d874c[_0x31010c(0xb0)](/([a-z0-9])([A-Z])/g,_0x31010c(0xc9))['toLowerCase']();}function a281_0x3a79(){const _0x401549=['length','583656HOXJIZ','1455604mNDWFK','5354363ZMNTAg','replace','alias','8572400SgSWHE','5962730LmHWmd','\x20--help`\x20to\x20view\x20the\x20current\x20command\x20contract.','service','10ysPeJD','filter','isArray','find','toUpperCase','9RTdkpp','version','name','add','437748PieqcT','Unsupported\x20flag\x20--','help','3oaauRo','entries','\x20for\x20`','3038koopdb','has','Run\x20`','meowKey','$1-$2'];a281_0x3a79=function(){return _0x401549;};return a281_0x3a79();}
1
+ (function(_0x497a1f,_0xfc7618){const _0xb65e27=a297_0x4e3e,_0x182f0a=_0x497a1f();while(!![]){try{const _0x28d564=parseInt(_0xb65e27(0xe6))/0x1*(-parseInt(_0xb65e27(0xde))/0x2)+parseInt(_0xb65e27(0xf9))/0x3*(-parseInt(_0xb65e27(0xe7))/0x4)+parseInt(_0xb65e27(0xe3))/0x5*(parseInt(_0xb65e27(0xf2))/0x6)+-parseInt(_0xb65e27(0xed))/0x7*(-parseInt(_0xb65e27(0xec))/0x8)+parseInt(_0xb65e27(0xe0))/0x9+parseInt(_0xb65e27(0xea))/0xa+parseInt(_0xb65e27(0xdf))/0xb;if(_0x28d564===_0xfc7618)break;else _0x182f0a['push'](_0x182f0a['shift']());}catch(_0x2079d5){_0x182f0a['push'](_0x182f0a['shift']());}}}(a297_0x4939,0x3a084));import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';function a297_0x4e3e(_0x141843,_0x290d09){_0x141843=_0x141843-0xdc;const _0x4939c1=a297_0x4939();let _0x4e3e68=_0x4939c1[_0x141843];return _0x4e3e68;}function a297_0x4939(){const _0xd7bf45=['2914457MAeufi','meowKey','toLowerCase','name','Unsupported\x20flag\x20--','194118cZfdeC','version','help','has','$1-$2','filter','add','1085541reWZih','alias','find','command','service','43108DOYNre','1092949wtKOyd','2774709CGaQEg','validation','length','20StHiGs','isArray','toUpperCase','21TtCOwF','4CZnSKi','replace','\x20--help`\x20to\x20view\x20the\x20current\x20command\x20contract.','987580npLKBy','entries','8xUwEnl'];a297_0x4939=function(){return _0xd7bf45;};return a297_0x4939();}import{CliErrors}from'../errors.js';export function assertSupportedCommandFlags(_0x288465,_0x45fe56){const _0x303434=a297_0x4e3e;if(!_0x288465['strictFlags'])return;const _0x439582=new Set([_0x303434(0xf4),_0x303434(0xf3)]),_0x48b879=GLOBAL_FLAGS[_0x303434(0xf7)](_0x13546b=>PIPELINE_FLAG_NAMES[_0x303434(0xf5)](_0x13546b[_0x303434(0xf0)]));for(const _0xa03654 of[..._0x288465['flags'],..._0x48b879]){addFlagCandidates(_0x439582,_0xa03654);}for(const [_0x3ab0e1,_0x22c1c3]of Object[_0x303434(0xeb)](_0x45fe56)){if(!isExplicitValue(_0x22c1c3)||_0x439582[_0x303434(0xf5)](_0x3ab0e1))continue;const _0x15ca4b=GLOBAL_FLAGS[_0x303434(0xfb)](_0xa6d034=>_0xa6d034[_0x303434(0xee)]===_0x3ab0e1)?.['name']??toKebabCase(_0x3ab0e1);throw CliErrors[_0x303434(0xe1)](_0x303434(0xf1)+_0x15ca4b+'\x20for\x20`'+CLI_BIN_NAME+'\x20'+_0x288465[_0x303434(0xdd)]+'\x20'+_0x288465[_0x303434(0xdc)]+'`.','Run\x20`'+CLI_BIN_NAME+'\x20'+_0x288465[_0x303434(0xdd)]+'\x20'+_0x288465[_0x303434(0xdc)]+_0x303434(0xe9));}}function addFlagCandidates(_0x52f9a0,_0x28623f){const _0x3eb2f4=a297_0x4e3e,_0x24bf42=_0x3eb2f4(0xee)in _0x28623f?[_0x28623f[_0x3eb2f4(0xf0)],_0x28623f['meowKey']]:[_0x28623f[_0x3eb2f4(0xf0)],_0x28623f[_0x3eb2f4(0xfa)]];for(const _0x362ed7 of _0x24bf42){if(!_0x362ed7)continue;_0x52f9a0[_0x3eb2f4(0xf8)](_0x362ed7),_0x52f9a0['add'](toCamelCase(_0x362ed7));}}function isExplicitValue(_0x15a103){const _0x408172=a297_0x4e3e;return _0x15a103!==undefined&&_0x15a103!==null&&_0x15a103!==![]&&(!Array[_0x408172(0xe4)](_0x15a103)||_0x15a103[_0x408172(0xe2)]>0x0);}function toCamelCase(_0x5952d6){const _0x569885=a297_0x4e3e;return _0x5952d6[_0x569885(0xe8)](/-([a-z])/g,(_0x16c31f,_0x56432f)=>_0x56432f[_0x569885(0xe5)]());}function toKebabCase(_0x5312ab){const _0x3b3ac8=a297_0x4e3e;return _0x5312ab[_0x3b3ac8(0xe8)](/([a-z0-9])([A-Z])/g,_0x3b3ac8(0xf6))[_0x3b3ac8(0xef)]();}
@@ -1 +1 @@
1
- function a282_0x1c42(_0x4541e6,_0x19c190){_0x4541e6=_0x4541e6-0x1ec;var _0x42355b=a282_0x4235();var _0x1c429e=_0x42355b[_0x4541e6];return _0x1c429e;}(function(_0x496615,_0x413d45){var _0x4e0dc3=a282_0x1c42,_0x557718=_0x496615();while(!![]){try{var _0x17818c=parseInt(_0x4e0dc3(0x1ef))/0x1*(-parseInt(_0x4e0dc3(0x1ed))/0x2)+-parseInt(_0x4e0dc3(0x1f4))/0x3*(-parseInt(_0x4e0dc3(0x1ee))/0x4)+parseInt(_0x4e0dc3(0x1f2))/0x5*(parseInt(_0x4e0dc3(0x1f5))/0x6)+parseInt(_0x4e0dc3(0x1f3))/0x7*(-parseInt(_0x4e0dc3(0x1f0))/0x8)+parseInt(_0x4e0dc3(0x1f1))/0x9+-parseInt(_0x4e0dc3(0x1ec))/0xa+-parseInt(_0x4e0dc3(0x1f6))/0xb;if(_0x17818c===_0x413d45)break;else _0x557718['push'](_0x557718['shift']());}catch(_0x2c1f8f){_0x557718['push'](_0x557718['shift']());}}}(a282_0x4235,0x18c28));export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat,commandAllowsOptionalAuth,commandRequiresAuth,formatDeprecatedCommandMessage,resolveCommandAuthMode}from'@lovrabet/cli-framework';function a282_0x4235(){var _0x5ae5be=['1734240hlyAyc','2IodLiU','348cdyTIG','102181OvwRrL','1256aqHZQX','1240956cVFcJE','130CJJpmH','3052nAPNLd','5034jGtjuk','42450QnsZCT','245817WsghdY'];a282_0x4235=function(){return _0x5ae5be;};return a282_0x4235();}
1
+ function a298_0x3890(_0x300f53,_0x2d9591){_0x300f53=_0x300f53-0x14b;var _0x3ebd60=a298_0x3ebd();var _0x3890d8=_0x3ebd60[_0x300f53];return _0x3890d8;}(function(_0x4988c9,_0x11c714){var _0x39f475=a298_0x3890,_0x429b68=_0x4988c9();while(!![]){try{var _0x45374b=parseInt(_0x39f475(0x14c))/0x1+parseInt(_0x39f475(0x14b))/0x2*(-parseInt(_0x39f475(0x152))/0x3)+-parseInt(_0x39f475(0x150))/0x4+parseInt(_0x39f475(0x154))/0x5*(parseInt(_0x39f475(0x14f))/0x6)+-parseInt(_0x39f475(0x14d))/0x7*(-parseInt(_0x39f475(0x153))/0x8)+-parseInt(_0x39f475(0x14e))/0x9+-parseInt(_0x39f475(0x151))/0xa;if(_0x45374b===_0x11c714)break;else _0x429b68['push'](_0x429b68['shift']());}catch(_0x5a3223){_0x429b68['push'](_0x429b68['shift']());}}}(a298_0x3ebd,0xea38a));function a298_0x3ebd(){var _0x3b6204=['3756180KlWoAQ','513716sciuLX','7696030WCkIkt','1298079mVxvee','608bTcQdk','15axtNfJ','6pIyUqw','1384407HvGKfQ','92162JEIJFF','9968688gRkPKF'];a298_0x3ebd=function(){return _0x3b6204;};return a298_0x3ebd();}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat,commandAllowsOptionalAuth,commandRequiresAuth,formatDeprecatedCommandMessage,resolveCommandAuthMode}from'@lovrabet/cli-framework';
@@ -1,4 +1,4 @@
1
- export declare const VERSION = "2.5.3-beta.1";
2
- export declare const GIT_TAG = "v2.5.3-beta.1";
3
- export declare const GIT_COMMIT = "bb7d5183";
4
- export declare const BUILD_TIME = "2026-09-10T02:00:22.032Z";
1
+ export declare const VERSION = "2.5.3-beta.2";
2
+ export declare const GIT_TAG = "v2.5.3-beta.2";
3
+ export declare const GIT_COMMIT = "0c830ca3";
4
+ export declare const BUILD_TIME = "2026-09-10T12:10:35.825Z";
@@ -1 +1 @@
1
- const a283_0x1cedca=a283_0x34c3;function a283_0x34c3(_0x20ebd3,_0x58785b){_0x20ebd3=_0x20ebd3-0x107;const _0x221271=a283_0x2212();let _0x34c38b=_0x221271[_0x20ebd3];return _0x34c38b;}function a283_0x2212(){const _0x56b3cb=['5uKwzUw','8297030VxAudN','805718mykqQj','621fvgpOa','6947382CZBEGP','3834436BuQuCr','2628249kYnjCN','91024nySFGu','1BmGCHm','2026-09-10T02:00:22.032Z','10hPEzES','30643261dUfTLQ','v2.5.3-beta.1'];a283_0x2212=function(){return _0x56b3cb;};return a283_0x2212();}(function(_0x34ad13,_0x172881){const _0x3fe8da=a283_0x34c3,_0x44489e=_0x34ad13();while(!![]){try{const _0x1003c1=-parseInt(_0x3fe8da(0x109))/0x1*(-parseInt(_0x3fe8da(0x110))/0x2)+-parseInt(_0x3fe8da(0x107))/0x3+parseInt(_0x3fe8da(0x113))/0x4+parseInt(_0x3fe8da(0x10e))/0x5*(parseInt(_0x3fe8da(0x112))/0x6)+parseInt(_0x3fe8da(0x10f))/0x7+-parseInt(_0x3fe8da(0x108))/0x8*(-parseInt(_0x3fe8da(0x111))/0x9)+parseInt(_0x3fe8da(0x10b))/0xa*(-parseInt(_0x3fe8da(0x10c))/0xb);if(_0x1003c1===_0x172881)break;else _0x44489e['push'](_0x44489e['shift']());}catch(_0x58d445){_0x44489e['push'](_0x44489e['shift']());}}}(a283_0x2212,0xca1ff));export const VERSION='2.5.3-beta.1';export const GIT_TAG=a283_0x1cedca(0x10d);export const GIT_COMMIT='bb7d5183';export const BUILD_TIME=a283_0x1cedca(0x10a);
1
+ const a299_0x251ce3=a299_0x39fd;(function(_0x8f666d,_0x3aeee3){const _0xd7169d=a299_0x39fd,_0x114864=_0x8f666d();while(!![]){try{const _0x345056=-parseInt(_0xd7169d(0x1ee))/0x1+-parseInt(_0xd7169d(0x1f0))/0x2+parseInt(_0xd7169d(0x1ef))/0x3*(parseInt(_0xd7169d(0x1eb))/0x4)+-parseInt(_0xd7169d(0x1f4))/0x5+-parseInt(_0xd7169d(0x1f5))/0x6*(-parseInt(_0xd7169d(0x1ec))/0x7)+-parseInt(_0xd7169d(0x1f2))/0x8+parseInt(_0xd7169d(0x1ed))/0x9;if(_0x345056===_0x3aeee3)break;else _0x114864['push'](_0x114864['shift']());}catch(_0x1576fc){_0x114864['push'](_0x114864['shift']());}}}(a299_0x3fe3,0x84621));export const VERSION='2.5.3-beta.2';export const GIT_TAG='v2.5.3-beta.2';export const GIT_COMMIT=a299_0x251ce3(0x1f1);function a299_0x39fd(_0x105ef8,_0x4b42af){_0x105ef8=_0x105ef8-0x1eb;const _0x3fe327=a299_0x3fe3();let _0x39fd73=_0x3fe327[_0x105ef8];return _0x39fd73;}function a299_0x3fe3(){const _0x1c133f=['139208EnIiGf','3720101PVQIFa','10045647ZSkrjG','597522IMfMuo','57dqmfZk','874510OfZalD','0c830ca3','2686624deWaPA','2026-09-10T12:10:35.825Z','1980090mmcdSf','6KijMao'];a299_0x3fe3=function(){return _0x1c133f;};return a299_0x3fe3();}export const BUILD_TIME=a299_0x251ce3(0x1f3);
@@ -1 +1 @@
1
- const a284_0x47e2d4=a284_0x2eb6;(function(_0x225432,_0x3061b4){const _0x34937b=a284_0x2eb6,_0x62634d=_0x225432();while(!![]){try{const _0x2d6d17=-parseInt(_0x34937b(0x83))/0x1+parseInt(_0x34937b(0x8e))/0x2*(parseInt(_0x34937b(0x9d))/0x3)+parseInt(_0x34937b(0x96))/0x4+-parseInt(_0x34937b(0x7c))/0x5+parseInt(_0x34937b(0x7e))/0x6+parseInt(_0x34937b(0x94))/0x7+-parseInt(_0x34937b(0x82))/0x8;if(_0x2d6d17===_0x3061b4)break;else _0x62634d['push'](_0x62634d['shift']());}catch(_0x5e91c0){_0x62634d['push'](_0x62634d['shift']());}}}(a284_0x56bb,0x4416c));function a284_0x56bb(){const _0x5aacf7=['https://daily-api.lovrabet.com','global','172655TjtFFq','https://app.lovrabet.com','2210352epqBtp','https://skills.lovrabet.ai','https://user.lovrabet.id','https://cdnjs.cloudflare.com/ajax/libs','https://skills.lovrabet.id','https://skills-daily.lovrabet.com','Indonesia','3dkCBKy','https://skills.lovrabet.com','Global','https://daily.lovrabet.com','https://api.lovrabet.id','https://runtime.lovrabet.ai','1557125hlXCay','https://g.alicdn.com/code/lib','2839038rHlkoW','https://daily-runtime.lovrabet.com','Mainland\x20China','https://dev.lovrabet.ai','5148480KEBhYS','75520FZnrry','https://api.lovrabet.ai','https://dev.lovrabet.com','indonesia','china','https://api.lovrabet.com','https://app.lovrabet.id','https://g.lovrabet.id','https://dev.lovrabet.id','https://runtime.lovrabet.com','https://runtime.lovrabet.id','517942hAfNaL','https://g.lovrabet.com','https://user.lovrabet.ai','3106fb4f7940b1f4446307e8a7f0c6f6e4a71affd6f8ebe7e5f23e055c08ca3f'];a284_0x56bb=function(){return _0x5aacf7;};return a284_0x56bb();}export const ROUTING_CATALOG_DIGEST=a284_0x47e2d4(0x91);export const DEFAULT_REGION='cn';export const REGION_VALUES=['cn','id',a284_0x47e2d4(0x93)];function a284_0x2eb6(_0x371a36,_0x19ad89){_0x371a36=_0x371a36-0x77;const _0x56bba3=a284_0x56bb();let _0x2eb6ac=_0x56bba3[_0x371a36];return _0x2eb6ac;}export const ENABLED_REGION_VALUES=['cn','id'];export const OFFICIAL_ROUTING_PROFILES={'cn':{'enabled':!![],'label':a284_0x47e2d4(0x80),'aliases':[a284_0x47e2d4(0x87)],'serviceDomains':{'production':{'user':'https://user.lovrabet.com','api':a284_0x47e2d4(0x88),'runtime':a284_0x47e2d4(0x8c),'skill':a284_0x47e2d4(0x77),'kb':a284_0x47e2d4(0x88),'app':a284_0x47e2d4(0x95)},'daily':{'user':'https://user-daily.lovrabet.com','api':a284_0x47e2d4(0x92),'runtime':a284_0x47e2d4(0x7f),'skill':a284_0x47e2d4(0x9b),'kb':a284_0x47e2d4(0x92),'app':a284_0x47e2d4(0x79)}},'cdn':{'libraries':a284_0x47e2d4(0x7d),'lovrabet':a284_0x47e2d4(0x8f)},'local':{'origin':a284_0x47e2d4(0x85)}},'id':{'enabled':!![],'label':a284_0x47e2d4(0x9c),'aliases':[a284_0x47e2d4(0x86)],'serviceDomains':{'production':{'user':a284_0x47e2d4(0x98),'api':a284_0x47e2d4(0x7a),'runtime':a284_0x47e2d4(0x8d),'skill':a284_0x47e2d4(0x9a),'kb':a284_0x47e2d4(0x7a),'app':a284_0x47e2d4(0x89)}},'cdn':{'libraries':'https://cdnjs.cloudflare.com/ajax/libs','lovrabet':a284_0x47e2d4(0x8a)},'local':{'origin':a284_0x47e2d4(0x8b)}},'global':{'enabled':![],'label':a284_0x47e2d4(0x78),'aliases':[],'serviceDomains':{'production':{'user':a284_0x47e2d4(0x90),'api':a284_0x47e2d4(0x84),'runtime':a284_0x47e2d4(0x7b),'skill':a284_0x47e2d4(0x97),'kb':'https://api.lovrabet.ai','app':'https://app.lovrabet.ai'}},'cdn':{'libraries':a284_0x47e2d4(0x99)},'local':{'origin':a284_0x47e2d4(0x81)}}};export const REGION_ALIASES={'china':'cn','indonesia':'id'};
1
+ const a300_0x503daa=a300_0x33c7;(function(_0x441a7e,_0x599b22){const _0x54daaf=a300_0x33c7,_0x24939d=_0x441a7e();while(!![]){try{const _0x18d946=parseInt(_0x54daaf(0xd3))/0x1*(parseInt(_0x54daaf(0xd4))/0x2)+-parseInt(_0x54daaf(0xd5))/0x3+parseInt(_0x54daaf(0xf4))/0x4*(parseInt(_0x54daaf(0xe9))/0x5)+parseInt(_0x54daaf(0xee))/0x6*(parseInt(_0x54daaf(0xd1))/0x7)+-parseInt(_0x54daaf(0xf1))/0x8+parseInt(_0x54daaf(0xf0))/0x9+parseInt(_0x54daaf(0xef))/0xa*(-parseInt(_0x54daaf(0xde))/0xb);if(_0x18d946===_0x599b22)break;else _0x24939d['push'](_0x24939d['shift']());}catch(_0x3ba37a){_0x24939d['push'](_0x24939d['shift']());}}}(a300_0x1506,0xe3306));function a300_0x33c7(_0x488618,_0x517f0c){_0x488618=_0x488618-0xd0;const _0x1506c8=a300_0x1506();let _0x33c7f4=_0x1506c8[_0x488618];return _0x33c7f4;}export const ROUTING_CATALOG_DIGEST=a300_0x503daa(0xe5);function a300_0x1506(){const _0x444afb=['5496475IvYbdq','Mainland\x20China','https://skills-daily.lovrabet.com','https://daily-runtime.lovrabet.com','https://g.alicdn.com/code/lib','3168312ubhvYV','2098610atJJrX','12545073izoyDX','12559664jXploY','https://api.lovrabet.id','https://dev.lovrabet.com','4WikUut','https://api.lovrabet.ai','21NrSnkR','https://skills.lovrabet.com','521377Jvhdqz','2AONUls','4405854nxLKZp','https://daily-api.lovrabet.com','https://user.lovrabet.id','https://runtime.lovrabet.id','https://api.lovrabet.com','https://dev.lovrabet.ai','https://g.lovrabet.id','Indonesia','https://cdnjs.cloudflare.com/ajax/libs','33fGICFb','https://runtime.lovrabet.ai','https://app.lovrabet.ai','https://dev.lovrabet.id','https://user.lovrabet.com','Global','china','3106fb4f7940b1f4446307e8a7f0c6f6e4a71affd6f8ebe7e5f23e055c08ca3f','https://skills.lovrabet.ai','https://app.lovrabet.com','indonesia'];a300_0x1506=function(){return _0x444afb;};return a300_0x1506();}export const DEFAULT_REGION='cn';export const REGION_VALUES=['cn','id','global'];export const ENABLED_REGION_VALUES=['cn','id'];export const OFFICIAL_ROUTING_PROFILES={'cn':{'enabled':!![],'label':a300_0x503daa(0xea),'aliases':[a300_0x503daa(0xe4)],'serviceDomains':{'production':{'user':a300_0x503daa(0xe2),'api':'https://api.lovrabet.com','runtime':'https://runtime.lovrabet.com','skill':a300_0x503daa(0xd2),'kb':a300_0x503daa(0xd9),'app':a300_0x503daa(0xe7)},'daily':{'user':'https://user-daily.lovrabet.com','api':a300_0x503daa(0xd6),'runtime':a300_0x503daa(0xec),'skill':a300_0x503daa(0xeb),'kb':'https://daily-api.lovrabet.com','app':'https://daily.lovrabet.com'}},'cdn':{'libraries':a300_0x503daa(0xed),'lovrabet':'https://g.lovrabet.com'},'local':{'origin':a300_0x503daa(0xf3)}},'id':{'enabled':!![],'label':a300_0x503daa(0xdc),'aliases':[a300_0x503daa(0xe8)],'serviceDomains':{'production':{'user':a300_0x503daa(0xd7),'api':a300_0x503daa(0xf2),'runtime':a300_0x503daa(0xd8),'skill':'https://skills.lovrabet.id','kb':a300_0x503daa(0xf2),'app':'https://app.lovrabet.id'}},'cdn':{'libraries':a300_0x503daa(0xdd),'lovrabet':a300_0x503daa(0xdb)},'local':{'origin':a300_0x503daa(0xe1)}},'global':{'enabled':![],'label':a300_0x503daa(0xe3),'aliases':[],'serviceDomains':{'production':{'user':'https://user.lovrabet.ai','api':a300_0x503daa(0xd0),'runtime':a300_0x503daa(0xdf),'skill':a300_0x503daa(0xe6),'kb':a300_0x503daa(0xd0),'app':a300_0x503daa(0xe0)}},'cdn':{'libraries':a300_0x503daa(0xdd)},'local':{'origin':a300_0x503daa(0xda)}}};export const REGION_ALIASES={'china':'cn','indonesia':'id'};