@lovrabet/rabetbase-cli 2.3.12-beta.1 → 2.3.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (260) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/auth/auth-server-ui.js +1 -1
  5. package/lib/auth/auth-server.js +1 -1
  6. package/lib/auth/constant.js +1 -1
  7. package/lib/auth/get-cookie.js +1 -1
  8. package/lib/auth/get-session-user.js +1 -1
  9. package/lib/auth/is-session-valid.js +1 -1
  10. package/lib/auth/login-success-html.js +1 -1
  11. package/lib/auth/logout.js +1 -1
  12. package/lib/cli-flags.js +1 -1
  13. package/lib/cli.js +1 -1
  14. package/lib/commands/api/generate.js +1 -1
  15. package/lib/commands/api/index.js +1 -1
  16. package/lib/commands/api/list.js +1 -1
  17. package/lib/commands/api/pull.js +1 -1
  18. package/lib/commands/api/shared.js +1 -1
  19. package/lib/commands/app/add.js +1 -1
  20. package/lib/commands/app/index.js +1 -1
  21. package/lib/commands/app/list.js +1 -1
  22. package/lib/commands/app/remote-directory.js +1 -1
  23. package/lib/commands/app/remove.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app-config/delete.js +1 -1
  26. package/lib/commands/app-config/get.js +1 -1
  27. package/lib/commands/app-config/index.js +1 -1
  28. package/lib/commands/app-config/list.js +1 -1
  29. package/lib/commands/app-config/set.js +1 -1
  30. package/lib/commands/app-config/shared.js +1 -1
  31. package/lib/commands/auth/index.js +1 -1
  32. package/lib/commands/bff/create.js +1 -1
  33. package/lib/commands/bff/delete.js +1 -1
  34. package/lib/commands/bff/detail.js +1 -1
  35. package/lib/commands/bff/index.js +1 -1
  36. package/lib/commands/bff/list.js +1 -1
  37. package/lib/commands/bff/pull.js +1 -1
  38. package/lib/commands/bff/push.js +1 -1
  39. package/lib/commands/bff/status.js +1 -1
  40. package/lib/commands/cli-skill/index.js +1 -1
  41. package/lib/commands/cli-update.js +1 -1
  42. package/lib/commands/codegen/index.js +1 -1
  43. package/lib/commands/codegen/sdk.js +1 -1
  44. package/lib/commands/codegen/sql.js +1 -1
  45. package/lib/commands/common/app-registry.js +1 -1
  46. package/lib/commands/common/app-selector.js +1 -1
  47. package/lib/commands/common/async-task.js +1 -1
  48. package/lib/commands/common/dry-run.js +1 -1
  49. package/lib/commands/common/flags.js +1 -1
  50. package/lib/commands/common/local-file.js +1 -1
  51. package/lib/commands/common/validate.js +1 -1
  52. package/lib/commands/config/get.js +1 -1
  53. package/lib/commands/config/index.js +1 -1
  54. package/lib/commands/config/list.js +1 -1
  55. package/lib/commands/config/set.js +1 -1
  56. package/lib/commands/config/shared.js +1 -1
  57. package/lib/commands/data/filter.js +1 -1
  58. package/lib/commands/data/getOne.js +1 -1
  59. package/lib/commands/data/index.js +1 -1
  60. package/lib/commands/data/shared.js +1 -1
  61. package/lib/commands/dataset/business-group-update.js +1 -1
  62. package/lib/commands/dataset/capability.js +1 -1
  63. package/lib/commands/dataset/delete.js +1 -1
  64. package/lib/commands/dataset/detail.js +1 -1
  65. package/lib/commands/dataset/extend-update.js +1 -1
  66. package/lib/commands/dataset/field-update.js +1 -1
  67. package/lib/commands/dataset/generate.js +1 -1
  68. package/lib/commands/dataset/index.js +1 -1
  69. package/lib/commands/dataset/list.js +1 -1
  70. package/lib/commands/dataset/operations.js +1 -1
  71. package/lib/commands/dataset/relation-audit.js +1 -1
  72. package/lib/commands/dataset/relation-create.js +1 -1
  73. package/lib/commands/dataset/relation-delete.js +1 -1
  74. package/lib/commands/dataset/relation-shared.js +1 -1
  75. package/lib/commands/dataset/relation-update.js +1 -1
  76. package/lib/commands/dataset/relations.js +1 -1
  77. package/lib/commands/dataset/rename.js +1 -1
  78. package/lib/commands/dataset/restore.js +1 -1
  79. package/lib/commands/db/analysis-batching.js +1 -1
  80. package/lib/commands/db/analyze-batch-plan.js +1 -1
  81. package/lib/commands/db/analyze-cancel.js +1 -1
  82. package/lib/commands/db/analyze-start.js +1 -1
  83. package/lib/commands/db/analyze-status.js +1 -1
  84. package/lib/commands/db/create.js +1 -1
  85. package/lib/commands/db/delete.js +1 -1
  86. package/lib/commands/db/detail.js +1 -1
  87. package/lib/commands/db/diff.js +1 -1
  88. package/lib/commands/db/index.js +1 -1
  89. package/lib/commands/db/list.js +1 -1
  90. package/lib/commands/db/shared.js +1 -1
  91. package/lib/commands/db/tables.js +1 -1
  92. package/lib/commands/db/test.js +1 -1
  93. package/lib/commands/db/update.js +1 -1
  94. package/lib/commands/doctor.js +1 -1
  95. package/lib/commands/file/index.js +1 -1
  96. package/lib/commands/init/index.js +1 -1
  97. package/lib/commands/issue/index.js +1 -1
  98. package/lib/commands/issue/nudge.js +1 -1
  99. package/lib/commands/issue/report.js +1 -1
  100. package/lib/commands/issue/shared.js +1 -1
  101. package/lib/commands/logs/index.js +1 -1
  102. package/lib/commands/menu/delete.js +1 -1
  103. package/lib/commands/menu/external-link-create.js +1 -1
  104. package/lib/commands/menu/group-create.js +1 -1
  105. package/lib/commands/menu/group-update.js +1 -1
  106. package/lib/commands/menu/index.js +1 -1
  107. package/lib/commands/menu/list.js +1 -1
  108. package/lib/commands/menu/move.js +1 -1
  109. package/lib/commands/menu/regroup-start.js +1 -1
  110. package/lib/commands/menu/shared/compare-table.js +1 -1
  111. package/lib/commands/menu/shared/delete-plan.js +1 -1
  112. package/lib/commands/menu/shared/facts.js +1 -1
  113. package/lib/commands/menu/shared/index.js +1 -1
  114. package/lib/commands/menu/shared/inquirer.js +1 -1
  115. package/lib/commands/menu/shared/local-pages.js +1 -1
  116. package/lib/commands/menu/shared/logic.js +1 -1
  117. package/lib/commands/menu/shared/mutations.js +1 -1
  118. package/lib/commands/menu/shared/service.js +1 -1
  119. package/lib/commands/menu/shared/sync-core.js +1 -1
  120. package/lib/commands/menu/shared/update-core.js +1 -1
  121. package/lib/commands/menu/shared/valid-url.js +1 -1
  122. package/lib/commands/menu/sync.js +1 -1
  123. package/lib/commands/menu/update.js +1 -1
  124. package/lib/commands/notification/config-list.js +1 -1
  125. package/lib/commands/notification/index.js +1 -1
  126. package/lib/commands/page/generate-start.js +1 -1
  127. package/lib/commands/page/generate-status.js +1 -1
  128. package/lib/commands/page/index.js +1 -1
  129. package/lib/commands/page/pull.js +1 -1
  130. package/lib/commands/page/push.js +1 -1
  131. package/lib/commands/page/relation-audit.js +1 -1
  132. package/lib/commands/page/shared.js +1 -1
  133. package/lib/commands/page/standard-page-status.js +1 -1
  134. package/lib/commands/page/sync.js +1 -1
  135. package/lib/commands/permit/index.js +1 -1
  136. package/lib/commands/permit/page-get.js +1 -1
  137. package/lib/commands/permit/page-set.js +1 -1
  138. package/lib/commands/permit/role-apis-set.js +1 -1
  139. package/lib/commands/permit/role-menus-set.js +1 -1
  140. package/lib/commands/permit/role-menus.js +1 -1
  141. package/lib/commands/permit/shared.js +1 -1
  142. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  143. package/lib/commands/project/create/format-elapsed.js +1 -1
  144. package/lib/commands/project/create/main.js +1 -1
  145. package/lib/commands/project/create/non-interactive.js +1 -1
  146. package/lib/commands/project/create/project-template-path.js +1 -1
  147. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  148. package/lib/commands/project/create/use-format-code.js +1 -1
  149. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  150. package/lib/commands/project/index.js +1 -1
  151. package/lib/commands/project/init.js +1 -1
  152. package/lib/commands/project/upgrade.js +1 -1
  153. package/lib/commands/registry.js +1 -1
  154. package/lib/commands/role/create.js +1 -1
  155. package/lib/commands/role/delete.js +1 -1
  156. package/lib/commands/role/detail.js +1 -1
  157. package/lib/commands/role/index.js +1 -1
  158. package/lib/commands/role/list.js +1 -1
  159. package/lib/commands/role/shared.js +1 -1
  160. package/lib/commands/role/update.js +1 -1
  161. package/lib/commands/role/user-add.js +1 -1
  162. package/lib/commands/role/user-remove.js +1 -1
  163. package/lib/commands/role/user-resolve.js +1 -1
  164. package/lib/commands/run/index.js +1 -1
  165. package/lib/commands/schema.js +1 -1
  166. package/lib/commands/sql/create.js +1 -1
  167. package/lib/commands/sql/delete.js +1 -1
  168. package/lib/commands/sql/detail.js +1 -1
  169. package/lib/commands/sql/exec.js +1 -1
  170. package/lib/commands/sql/index.js +1 -1
  171. package/lib/commands/sql/list.js +1 -1
  172. package/lib/commands/sql/pull.js +1 -1
  173. package/lib/commands/sql/push.js +1 -1
  174. package/lib/commands/sql/save.js +1 -1
  175. package/lib/commands/sql/shared.js +1 -1
  176. package/lib/commands/sql/status.js +1 -1
  177. package/lib/commands/sql/validate.js +1 -1
  178. package/lib/commands/task/index.js +1 -1
  179. package/lib/commands/task/status.js +1 -1
  180. package/lib/commands/workspace/add.js +1 -1
  181. package/lib/commands/workspace/index.js +1 -1
  182. package/lib/commands/workspace/remove.js +1 -1
  183. package/lib/config/schema.js +1 -1
  184. package/lib/constant/cdn.js +1 -1
  185. package/lib/constant/cli.js +1 -1
  186. package/lib/constant/defaults.js +1 -1
  187. package/lib/constant/domain.js +1 -1
  188. package/lib/constant/env.js +1 -1
  189. package/lib/constant/output.js +1 -1
  190. package/lib/constant/paths.js +1 -1
  191. package/lib/constant/risk.js +1 -1
  192. package/lib/context/app-resolver.js +1 -1
  193. package/lib/context/auth-resolver.js +1 -1
  194. package/lib/context/config-loader.js +1 -1
  195. package/lib/context.js +1 -1
  196. package/lib/core/alias-resolver.js +1 -1
  197. package/lib/core/api-client.js +1 -1
  198. package/lib/core/bff/config.js +1 -1
  199. package/lib/core/bff/file-system.js +1 -1
  200. package/lib/core/bff/hash.js +1 -1
  201. package/lib/core/bff/lock.js +1 -1
  202. package/lib/core/bff/utils.js +1 -1
  203. package/lib/core/db-resolver.js +1 -1
  204. package/lib/core/page/file-system.js +1 -1
  205. package/lib/core/page/hash.js +1 -1
  206. package/lib/core/page/lock.js +1 -1
  207. package/lib/core/sql-index-auditor.js +1 -1
  208. package/lib/core/sql-sync/config.js +1 -1
  209. package/lib/core/sql-sync/file-system.js +1 -1
  210. package/lib/core/sql-sync/hash.js +1 -1
  211. package/lib/core/sql-sync/lock.js +1 -1
  212. package/lib/core/sql-sync/utils.js +1 -1
  213. package/lib/core/sql-validator.js +1 -1
  214. package/lib/errors.js +1 -1
  215. package/lib/framework/build-all-flags.js +1 -1
  216. package/lib/framework/error-output.js +1 -1
  217. package/lib/framework/explicit-yes.js +1 -1
  218. package/lib/framework/flags.js +1 -1
  219. package/lib/framework/help.js +1 -1
  220. package/lib/framework/index.js +1 -1
  221. package/lib/framework/output.js +1 -1
  222. package/lib/framework/response.js +1 -1
  223. package/lib/framework/runner-alias.js +1 -1
  224. package/lib/framework/runner.js +1 -1
  225. package/lib/framework/schema-export.js +1 -1
  226. package/lib/framework/types.js +1 -1
  227. package/lib/generated/build-info.js +1 -1
  228. package/lib/help.js +1 -1
  229. package/lib/skills/main.js +1 -1
  230. package/lib/skills/npx-skills-add.js +1 -1
  231. package/lib/telemetry/cli-command-trace.js +1 -1
  232. package/lib/telemetry/cli-help-trace.js +1 -1
  233. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  234. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  235. package/lib/telemetry/send-cli-trace-log.js +1 -1
  236. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  237. package/lib/utils/ai_config.js +1 -1
  238. package/lib/utils/apply-jq-filter.js +1 -1
  239. package/lib/utils/cdn-config.js +1 -1
  240. package/lib/utils/check-sdk-version.js +1 -1
  241. package/lib/utils/cli-version-check.js +1 -1
  242. package/lib/utils/cli-version-policy.js +1 -1
  243. package/lib/utils/config.js +1 -1
  244. package/lib/utils/copy-directory.js +1 -1
  245. package/lib/utils/entity-with-id.js +1 -1
  246. package/lib/utils/file-utils.js +1 -1
  247. package/lib/utils/guides-cdn.js +1 -1
  248. package/lib/utils/http-client.js +1 -1
  249. package/lib/utils/is-non-interactive.js +1 -1
  250. package/lib/utils/logger.js +1 -1
  251. package/lib/utils/params.js +1 -1
  252. package/lib/utils/platform.js +1 -1
  253. package/lib/utils/rules-cdn.js +1 -1
  254. package/lib/utils/sleep.js +1 -1
  255. package/lib/utils/template-replacer.js +1 -1
  256. package/lib/utils/update-notice.js +1 -1
  257. package/lib/utils/version.js +1 -1
  258. package/lib/utils/with-active-cookie.js +1 -1
  259. package/lib/utils/write-cli-side-channel.js +1 -1
  260. package/package.json +1 -1
@@ -1 +1 @@
1
- function a199_0xd832(_0x420911,_0x43432c){_0x420911=_0x420911-0xf8;const _0x1a9bdf=a199_0x1a9b();let _0xd832f=_0x1a9bdf[_0x420911];return _0xd832f;}const a199_0x3def78=a199_0xd832;(function(_0x51c78e,_0x14c2ff){const _0x5aa628=a199_0xd832,_0x261b83=_0x51c78e();while(!![]){try{const _0x5e9f20=-parseInt(_0x5aa628(0x108))/0x1*(parseInt(_0x5aa628(0x113))/0x2)+parseInt(_0x5aa628(0x111))/0x3+parseInt(_0x5aa628(0x11b))/0x4*(parseInt(_0x5aa628(0xfc))/0x5)+parseInt(_0x5aa628(0x104))/0x6*(-parseInt(_0x5aa628(0x11c))/0x7)+parseInt(_0x5aa628(0x10c))/0x8*(parseInt(_0x5aa628(0x10b))/0x9)+-parseInt(_0x5aa628(0x10d))/0xa*(-parseInt(_0x5aa628(0x119))/0xb)+-parseInt(_0x5aa628(0x10e))/0xc;if(_0x5e9f20===_0x14c2ff)break;else _0x261b83['push'](_0x261b83['shift']());}catch(_0x2aa9ef){_0x261b83['push'](_0x261b83['shift']());}}}(a199_0x1a9b,0x53410));import{access,mkdir,readdir,stat}from'node:fs/promises';import{constants}from'node:fs';import{dirname,join}from'node:path';import{findHookLocationByRemoteId,snakeToCamel}from'../../core/bff/utils.js';export const SUPPORTED_BFF_TYPES=['COMMON','ENDPOINT',a199_0x3def78(0x115)];export function normalizeBffType(_0x554788){const _0x4ea6bb=a199_0x3def78;if(!_0x554788)return undefined;const _0x4b6b66=_0x554788[_0x4ea6bb(0x11a)]()[_0x4ea6bb(0x118)]();return SUPPORTED_BFF_TYPES[_0x4ea6bb(0x105)](_0x4b6b66)?_0x4b6b66:undefined;}async function scanJsFilesRecursively(_0x16c3d5,_0x2a3acc){const _0x5380d7=a199_0x3def78,_0x5f28c0=[];try{const _0x1b86ed=await readdir(_0x16c3d5,{'withFileTypes':!![]});for(const _0x2e7d7c of _0x1b86ed){const _0x3b5f98=join(_0x16c3d5,_0x2e7d7c[_0x5380d7(0x102)]);if(_0x2e7d7c[_0x5380d7(0x110)]())_0x5f28c0[_0x5380d7(0x107)](...await scanJsFilesRecursively(_0x3b5f98,_0x2a3acc+'/'+_0x2e7d7c[_0x5380d7(0x102)]));else _0x2e7d7c[_0x5380d7(0x117)]()&&_0x2e7d7c[_0x5380d7(0x102)]['endsWith'](_0x5380d7(0x11f))&&_0x5f28c0[_0x5380d7(0x107)]({'lockKey':_0x2a3acc+'/'+_0x2e7d7c[_0x5380d7(0x102)][_0x5380d7(0x114)](/\.js$/,''),'filePath':_0x3b5f98});}}catch(_0x148439){if(_0x148439[_0x5380d7(0x106)]!==_0x5380d7(0x112))throw _0x148439;}return _0x5f28c0;}async function scanFlatFunctions(_0x3f609a,_0x287f2e){const _0x29dbe=a199_0x3def78,_0x20144f=join(_0x3f609a[_0x29dbe(0xf9)],_0x287f2e),_0x357fcf=await scanJsFilesRecursively(_0x20144f,_0x287f2e);return _0x357fcf[_0x29dbe(0x120)](({lockKey:_0x58623c,filePath:_0x5071b8})=>({'type':_0x287f2e,'name':_0x58623c[_0x29dbe(0xfd)]('/')['at'](-0x1)??'','filePath':_0x5071b8,'lockKey':_0x58623c}));}function a199_0x1a9b(){const _0x3b42fb=['datasetCode','isFile','toUpperCase','604681sKqBsF','trim','4YoNlLa','3807797gZHGeW','functionName','beforeScriptId','.js','map','get','all','afterScriptId','scriptsRootDir','HOOK/','ENDPOINT','15770caDyjo','split','endsWith','F_OK','before','functionNode','name','operationType','6yTBgWT','includes','code','push','415PeGCSo','alias','set','18lJVoye','1853896mlDaWM','120WHjZDg','2306268WiPIYy','COMMON','isDirectory','1572009npqyWi','ENOENT','2762wPFwKT','replace','HOOK'];a199_0x1a9b=function(){return _0x3b42fb;};return a199_0x1a9b();}async function scanHookFunctions(_0x567ed3){const _0x2c39cc=a199_0x3def78,_0x29d9aa=join(_0x567ed3['scriptsRootDir'],_0x2c39cc(0x115)),_0x2a6db7=[];try{const _0x3fa2dc=await readdir(_0x29d9aa,{'withFileTypes':!![]});for(const _0x328b04 of _0x3fa2dc){if(!_0x328b04[_0x2c39cc(0x110)]())continue;const _0x32d7f8=_0x328b04['name'],_0x4d18b3=join(_0x29d9aa,_0x32d7f8),_0x591dc7=await readdir(_0x4d18b3,{'withFileTypes':!![]});for(const _0x35e812 of _0x591dc7){if(!_0x35e812[_0x2c39cc(0x110)]())continue;const _0x2fc86b=_0x35e812[_0x2c39cc(0x102)],_0x358bd3=join(_0x4d18b3,_0x2fc86b),_0x1ecdfa=await readdir(_0x358bd3,{'withFileTypes':!![]});for(const _0x29b47a of _0x1ecdfa){if(!_0x29b47a['isDirectory']())continue;const _0x44bc44=_0x29b47a[_0x2c39cc(0x102)],_0x423f38=join(_0x358bd3,_0x44bc44),_0x46d868=await readdir(_0x423f38,{'withFileTypes':!![]});for(const _0x1ce636 of _0x46d868){if(!_0x1ce636[_0x2c39cc(0x117)]()||!_0x1ce636[_0x2c39cc(0x102)][_0x2c39cc(0xfe)]('.js'))continue;const _0x512900=_0x1ce636[_0x2c39cc(0x102)]['replace'](/\.js$/,'');_0x2a6db7[_0x2c39cc(0x107)]({'type':_0x2c39cc(0x115),'name':_0x512900,'filePath':join(_0x423f38,_0x1ce636[_0x2c39cc(0x102)]),'lockKey':_0x2c39cc(0xfa)+_0x32d7f8+'/'+_0x2fc86b+'/'+_0x44bc44+'/'+_0x512900,'alias':_0x32d7f8,'operationType':_0x2fc86b,'functionNode':_0x44bc44});}}}}}catch(_0x11c44e){if(_0x11c44e['code']!=='ENOENT')throw _0x11c44e;}return _0x2a6db7;}export async function scanLocalBffFunctions(_0x806ef0,_0x274059){const _0x53f878=a199_0x3def78;if(_0x274059===_0x53f878(0x10f)||_0x274059===_0x53f878(0xfb))return scanFlatFunctions(_0x806ef0,_0x274059);if(_0x274059===_0x53f878(0x115))return scanHookFunctions(_0x806ef0);const [_0x5e502c,_0x5e1512,_0x592ecc]=await Promise[_0x53f878(0x122)]([scanFlatFunctions(_0x806ef0,_0x53f878(0x10f)),scanFlatFunctions(_0x806ef0,'ENDPOINT'),scanHookFunctions(_0x806ef0)]);return[..._0x5e502c,..._0x5e1512,..._0x592ecc];}export function resolveLocalFilePathFromLockKey(_0x56fd48,_0x52ba97){const _0x2d151a=a199_0x3def78;return join(_0x56fd48[_0x2d151a(0xf9)],..._0x52ba97[_0x2d151a(0xfd)]('/'))+_0x2d151a(0x11f);}export function createHookLocationMap(_0x239ded){const _0x138435=a199_0x3def78,_0x1d62e2=new Map();for(const _0x5676da of _0x239ded){_0x5676da[_0x138435(0x11e)]&&_0x1d62e2[_0x138435(0x10a)](_0x5676da[_0x138435(0x11e)],{'datasetCode':_0x5676da[_0x138435(0x116)],'operationType':snakeToCamel(_0x5676da['operationType']),'functionNode':_0x138435(0x100)}),_0x5676da[_0x138435(0xf8)]&&_0x1d62e2['set'](_0x5676da[_0x138435(0xf8)],{'datasetCode':_0x5676da[_0x138435(0x116)],'operationType':snakeToCamel(_0x5676da[_0x138435(0x103)]),'functionNode':'after'});}return _0x1d62e2;}export function resolveRemoteScriptTarget(_0x1d148e,_0x4a3167,_0x16fd97,_0x5717cf,_0x45a7f6){const _0x4c44d9=a199_0x3def78,_0x1553c7=normalizeBffType(_0x4a3167['scriptType']);if(!_0x1553c7||!_0x4a3167[_0x4c44d9(0x11d)])return null;if(_0x1553c7==='HOOK'){const _0x58f033=(_0x4a3167['id']?_0x16fd97[_0x4c44d9(0x121)](_0x4a3167['id']):undefined)??findHookLocationByRemoteId(_0x5717cf,_0x4a3167['id']);if(!_0x58f033)return null;const _0x5608f6=_0x58f033[_0x4c44d9(0x109)]||_0x45a7f6['get'](_0x58f033[_0x4c44d9(0x116)]),_0x3ab07c=_0x5608f6??_0x58f033[_0x4c44d9(0x116)],_0x572501={..._0x58f033,'alias':_0x5608f6},_0x540995=_0x4c44d9(0xfa)+_0x3ab07c+'/'+_0x572501[_0x4c44d9(0x103)]+'/'+_0x572501[_0x4c44d9(0x101)]+'/'+_0x4a3167[_0x4c44d9(0x11d)];return{'lockKey':_0x540995,'filePath':resolveLocalFilePathFromLockKey(_0x1d148e,_0x540995),'type':_0x4c44d9(0x115),'hookLocation':_0x572501};}const _0x3cee87=_0x1553c7+'/'+_0x4a3167['functionName'];return{'lockKey':_0x3cee87,'filePath':resolveLocalFilePathFromLockKey(_0x1d148e,_0x3cee87),'type':_0x1553c7};}export async function ensureParentDirectory(_0x22d9b0){await mkdir(dirname(_0x22d9b0),{'recursive':!![]});}export async function fileExists(_0x474903){const _0x177a88=a199_0x3def78;try{return await access(_0x474903,constants[_0x177a88(0xff)]),!![];}catch{return![];}}export async function directoryExists(_0x5483ea){try{const _0x2e44ab=await stat(_0x5483ea);return _0x2e44ab['isDirectory']();}catch{return![];}}
1
+ const a199_0x662db5=a199_0x3ed2;function a199_0x5c39(){const _0x1ab725=['ENDPOINT','after','afterScriptId','datasetCode','operationType','678570mTIjzr','map','push','isFile','code','includes','ENOENT','F_OK','set','isDirectory','953169gZbsKN','scriptType','2262948DtIeWo','scriptsRootDir','1115276ukTqjN','1335027rsbzbT','COMMON','HOOK','8SWZZNr','509533jpmGoc','2421635YmUAkU','get','toUpperCase','.js','functionName','beforeScriptId','endsWith','split','trim','name','replace'];a199_0x5c39=function(){return _0x1ab725;};return a199_0x5c39();}function a199_0x3ed2(_0x3c8246,_0x1d41ff){_0x3c8246=_0x3c8246-0x8e;const _0x5c39cf=a199_0x5c39();let _0x3ed202=_0x5c39cf[_0x3c8246];return _0x3ed202;}(function(_0x56ed3c,_0x53b3c8){const _0x40f36a=a199_0x3ed2,_0x3960fa=_0x56ed3c();while(!![]){try{const _0x5c1199=-parseInt(_0x40f36a(0xa4))/0x1+-parseInt(_0x40f36a(0x91))/0x2+parseInt(_0x40f36a(0xa0))/0x3+-parseInt(_0x40f36a(0x9f))/0x4+parseInt(_0x40f36a(0xa5))/0x5+parseInt(_0x40f36a(0x9d))/0x6+-parseInt(_0x40f36a(0x9b))/0x7*(-parseInt(_0x40f36a(0xa3))/0x8);if(_0x5c1199===_0x53b3c8)break;else _0x3960fa['push'](_0x3960fa['shift']());}catch(_0x42899a){_0x3960fa['push'](_0x3960fa['shift']());}}}(a199_0x5c39,0x4ce90));import{access,mkdir,readdir,stat}from'node:fs/promises';import{constants}from'node:fs';import{dirname,join}from'node:path';import{findHookLocationByRemoteId,snakeToCamel}from'../../core/bff/utils.js';export const SUPPORTED_BFF_TYPES=[a199_0x662db5(0xa1),a199_0x662db5(0xb0),a199_0x662db5(0xa2)];export function normalizeBffType(_0x5a090e){const _0xef81f=a199_0x662db5;if(!_0x5a090e)return undefined;const _0x3130cf=_0x5a090e[_0xef81f(0xad)]()[_0xef81f(0xa7)]();return SUPPORTED_BFF_TYPES[_0xef81f(0x96)](_0x3130cf)?_0x3130cf:undefined;}async function scanJsFilesRecursively(_0x518d48,_0x413bce){const _0x2de31a=a199_0x662db5,_0x4a1794=[];try{const _0x2d5494=await readdir(_0x518d48,{'withFileTypes':!![]});for(const _0x264eea of _0x2d5494){const _0x1a6b26=join(_0x518d48,_0x264eea[_0x2de31a(0xae)]);if(_0x264eea[_0x2de31a(0x9a)]())_0x4a1794[_0x2de31a(0x93)](...await scanJsFilesRecursively(_0x1a6b26,_0x413bce+'/'+_0x264eea[_0x2de31a(0xae)]));else _0x264eea[_0x2de31a(0x94)]()&&_0x264eea[_0x2de31a(0xae)]['endsWith']('.js')&&_0x4a1794[_0x2de31a(0x93)]({'lockKey':_0x413bce+'/'+_0x264eea[_0x2de31a(0xae)]['replace'](/\.js$/,''),'filePath':_0x1a6b26});}}catch(_0x2ef22f){if(_0x2ef22f[_0x2de31a(0x95)]!==_0x2de31a(0x97))throw _0x2ef22f;}return _0x4a1794;}async function scanFlatFunctions(_0x4ad9df,_0x50155d){const _0xeebe53=a199_0x662db5,_0x5ed80c=join(_0x4ad9df[_0xeebe53(0x9e)],_0x50155d),_0x33c85d=await scanJsFilesRecursively(_0x5ed80c,_0x50155d);return _0x33c85d[_0xeebe53(0x92)](({lockKey:_0x3f74a0,filePath:_0x1713d7})=>({'type':_0x50155d,'name':_0x3f74a0[_0xeebe53(0xac)]('/')['at'](-0x1)??'','filePath':_0x1713d7,'lockKey':_0x3f74a0}));}async function scanHookFunctions(_0x7a9409){const _0x7f95a8=a199_0x662db5,_0x18f250=join(_0x7a9409[_0x7f95a8(0x9e)],_0x7f95a8(0xa2)),_0x10ebaa=[];try{const _0xf05ee3=await readdir(_0x18f250,{'withFileTypes':!![]});for(const _0x7373ec of _0xf05ee3){if(!_0x7373ec[_0x7f95a8(0x9a)]())continue;const _0x32ce91=_0x7373ec[_0x7f95a8(0xae)],_0x2b357d=join(_0x18f250,_0x32ce91),_0x58e2c2=await readdir(_0x2b357d,{'withFileTypes':!![]});for(const _0x10b4ba of _0x58e2c2){if(!_0x10b4ba[_0x7f95a8(0x9a)]())continue;const _0x1661dc=_0x10b4ba['name'],_0x353a48=join(_0x2b357d,_0x1661dc),_0x4c9db4=await readdir(_0x353a48,{'withFileTypes':!![]});for(const _0x18cc45 of _0x4c9db4){if(!_0x18cc45[_0x7f95a8(0x9a)]())continue;const _0x23e773=_0x18cc45[_0x7f95a8(0xae)],_0x3ba3fd=join(_0x353a48,_0x23e773),_0x3f96ac=await readdir(_0x3ba3fd,{'withFileTypes':!![]});for(const _0x30ca41 of _0x3f96ac){if(!_0x30ca41[_0x7f95a8(0x94)]()||!_0x30ca41[_0x7f95a8(0xae)][_0x7f95a8(0xab)](_0x7f95a8(0xa8)))continue;const _0xaf31c3=_0x30ca41['name'][_0x7f95a8(0xaf)](/\.js$/,'');_0x10ebaa[_0x7f95a8(0x93)]({'type':_0x7f95a8(0xa2),'name':_0xaf31c3,'filePath':join(_0x3ba3fd,_0x30ca41[_0x7f95a8(0xae)]),'lockKey':'HOOK/'+_0x32ce91+'/'+_0x1661dc+'/'+_0x23e773+'/'+_0xaf31c3,'alias':_0x32ce91,'operationType':_0x1661dc,'functionNode':_0x23e773});}}}}}catch(_0x142f7d){if(_0x142f7d[_0x7f95a8(0x95)]!==_0x7f95a8(0x97))throw _0x142f7d;}return _0x10ebaa;}export async function scanLocalBffFunctions(_0x3102f5,_0x5f494f){const _0x8ca38=a199_0x662db5;if(_0x5f494f==='COMMON'||_0x5f494f===_0x8ca38(0xb0))return scanFlatFunctions(_0x3102f5,_0x5f494f);if(_0x5f494f===_0x8ca38(0xa2))return scanHookFunctions(_0x3102f5);const [_0x542e76,_0x294690,_0x3cd59a]=await Promise['all']([scanFlatFunctions(_0x3102f5,'COMMON'),scanFlatFunctions(_0x3102f5,'ENDPOINT'),scanHookFunctions(_0x3102f5)]);return[..._0x542e76,..._0x294690,..._0x3cd59a];}export function resolveLocalFilePathFromLockKey(_0x452b81,_0xb5a21a){return join(_0x452b81['scriptsRootDir'],..._0xb5a21a['split']('/'))+'.js';}export function createHookLocationMap(_0x1fac4e){const _0x189574=a199_0x662db5,_0x397a15=new Map();for(const _0x36f17b of _0x1fac4e){_0x36f17b[_0x189574(0xaa)]&&_0x397a15[_0x189574(0x99)](_0x36f17b['beforeScriptId'],{'datasetCode':_0x36f17b[_0x189574(0x8f)],'operationType':snakeToCamel(_0x36f17b[_0x189574(0x90)]),'functionNode':'before'}),_0x36f17b[_0x189574(0x8e)]&&_0x397a15['set'](_0x36f17b[_0x189574(0x8e)],{'datasetCode':_0x36f17b[_0x189574(0x8f)],'operationType':snakeToCamel(_0x36f17b['operationType']),'functionNode':_0x189574(0xb1)});}return _0x397a15;}export function resolveRemoteScriptTarget(_0x1cfab1,_0x1b5c57,_0x381b1f,_0x8b8989,_0x1947af){const _0xe76c3b=a199_0x662db5,_0x29a0b0=normalizeBffType(_0x1b5c57[_0xe76c3b(0x9c)]);if(!_0x29a0b0||!_0x1b5c57[_0xe76c3b(0xa9)])return null;if(_0x29a0b0===_0xe76c3b(0xa2)){const _0x5cfe69=(_0x1b5c57['id']?_0x381b1f[_0xe76c3b(0xa6)](_0x1b5c57['id']):undefined)??findHookLocationByRemoteId(_0x8b8989,_0x1b5c57['id']);if(!_0x5cfe69)return null;const _0x16ae2e=_0x5cfe69['alias']||_0x1947af[_0xe76c3b(0xa6)](_0x5cfe69[_0xe76c3b(0x8f)]),_0x2daa5c=_0x16ae2e??_0x5cfe69['datasetCode'],_0x3a4555={..._0x5cfe69,'alias':_0x16ae2e},_0x5659e2='HOOK/'+_0x2daa5c+'/'+_0x3a4555[_0xe76c3b(0x90)]+'/'+_0x3a4555['functionNode']+'/'+_0x1b5c57[_0xe76c3b(0xa9)];return{'lockKey':_0x5659e2,'filePath':resolveLocalFilePathFromLockKey(_0x1cfab1,_0x5659e2),'type':_0xe76c3b(0xa2),'hookLocation':_0x3a4555};}const _0x2cccea=_0x29a0b0+'/'+_0x1b5c57['functionName'];return{'lockKey':_0x2cccea,'filePath':resolveLocalFilePathFromLockKey(_0x1cfab1,_0x2cccea),'type':_0x29a0b0};}export async function ensureParentDirectory(_0x150354){await mkdir(dirname(_0x150354),{'recursive':!![]});}export async function fileExists(_0x1edc6e){const _0x55e014=a199_0x662db5;try{return await access(_0x1edc6e,constants[_0x55e014(0x98)]),!![];}catch{return![];}}export async function directoryExists(_0x1c8e16){try{const _0x2fb2b3=await stat(_0x1c8e16);return _0x2fb2b3['isDirectory']();}catch{return![];}}
@@ -1 +1 @@
1
- (function(_0x18ab22,_0x4401eb){const _0x740c6b=a200_0x145d,_0x3908b1=_0x18ab22();while(!![]){try{const _0x1f772c=-parseInt(_0x740c6b(0x198))/0x1+-parseInt(_0x740c6b(0x19a))/0x2+parseInt(_0x740c6b(0x19c))/0x3*(parseInt(_0x740c6b(0x19d))/0x4)+-parseInt(_0x740c6b(0x19f))/0x5+-parseInt(_0x740c6b(0x199))/0x6*(parseInt(_0x740c6b(0x19b))/0x7)+parseInt(_0x740c6b(0x19e))/0x8*(parseInt(_0x740c6b(0x1a4))/0x9)+parseInt(_0x740c6b(0x1a5))/0xa;if(_0x1f772c===_0x4401eb)break;else _0x3908b1['push'](_0x3908b1['shift']());}catch(_0x2b1671){_0x3908b1['push'](_0x3908b1['shift']());}}}(a200_0x63cf,0xcb17a));import{readFile}from'node:fs/promises';function a200_0x63cf(){const _0x347341=['hex','digest','utf8','update','35460Yjxlpw','20881090frvFIg','createHash','190988ROiDmB','4764ptkKSE','2594438IrXtTL','2373kQpTqe','696930OpeKLl','8SfVnxc','1248vuawSH','2890650TCuxpk'];a200_0x63cf=function(){return _0x347341;};return a200_0x63cf();}function a200_0x145d(_0x5e3b83,_0x2b7006){_0x5e3b83=_0x5e3b83-0x197;const _0x63cf0d=a200_0x63cf();let _0x145d09=_0x63cf0d[_0x5e3b83];return _0x145d09;}import a200_0x408c94 from'node:crypto';export function computeContentHash(_0x4aef4d){const _0x4d2dfc=a200_0x145d;return a200_0x408c94[_0x4d2dfc(0x197)]('md5')[_0x4d2dfc(0x1a3)](_0x4aef4d)[_0x4d2dfc(0x1a1)](_0x4d2dfc(0x1a0));}export async function computeFileHash(_0x2d0909){const _0x8eac98=a200_0x145d,_0x5c2e75=await readFile(_0x2d0909,_0x8eac98(0x1a2));return computeContentHash(_0x5c2e75);}
1
+ function a200_0x3d68(){const _0x5e814b=['222TFheEQ','createHash','207365tRCKcq','update','hex','digest','utf8','7987688WqUiqT','md5','2080124vuMTao','2742776AjeXMd','1851897icfpfw','1771915yFXAVq','363930ZdrXDi'];a200_0x3d68=function(){return _0x5e814b;};return a200_0x3d68();}(function(_0x55b454,_0x4ab2e9){const _0x4239e3=a200_0x2608,_0x14a4cb=_0x55b454();while(!![]){try{const _0x4839aa=parseInt(_0x4239e3(0x153))/0x1+parseInt(_0x4239e3(0x150))/0x2+-parseInt(_0x4239e3(0x152))/0x3+-parseInt(_0x4239e3(0x151))/0x4+parseInt(_0x4239e3(0x157))/0x5*(-parseInt(_0x4239e3(0x155))/0x6)+-parseInt(_0x4239e3(0x154))/0x7+parseInt(_0x4239e3(0x15c))/0x8;if(_0x4839aa===_0x4ab2e9)break;else _0x14a4cb['push'](_0x14a4cb['shift']());}catch(_0x4d9566){_0x14a4cb['push'](_0x14a4cb['shift']());}}}(a200_0x3d68,0xe0d7a));import{readFile}from'node:fs/promises';import a200_0x1da60d from'node:crypto';function a200_0x2608(_0x5e4245,_0x33cb4f){_0x5e4245=_0x5e4245-0x14f;const _0x3d6864=a200_0x3d68();let _0x260880=_0x3d6864[_0x5e4245];return _0x260880;}export function computeContentHash(_0x5ecc86){const _0x370195=a200_0x2608;return a200_0x1da60d[_0x370195(0x156)](_0x370195(0x14f))[_0x370195(0x158)](_0x5ecc86)[_0x370195(0x15a)](_0x370195(0x159));}export async function computeFileHash(_0x3dfa3c){const _0x532ec7=a200_0x2608,_0x33b9a8=await readFile(_0x3dfa3c,_0x532ec7(0x15b));return computeContentHash(_0x33b9a8);}
@@ -1 +1 @@
1
- (function(_0x33d915,_0x43e240){const _0x2f6313=a201_0x231b,_0xe740ca=_0x33d915();while(!![]){try{const _0x3a2aaf=-parseInt(_0x2f6313(0xb2))/0x1*(parseInt(_0x2f6313(0xc0))/0x2)+parseInt(_0x2f6313(0xc1))/0x3+parseInt(_0x2f6313(0xc4))/0x4+parseInt(_0x2f6313(0xad))/0x5*(-parseInt(_0x2f6313(0xc2))/0x6)+parseInt(_0x2f6313(0xb3))/0x7+-parseInt(_0x2f6313(0xbf))/0x8*(parseInt(_0x2f6313(0xbe))/0x9)+parseInt(_0x2f6313(0xb4))/0xa*(parseInt(_0x2f6313(0xb8))/0xb);if(_0x3a2aaf===_0x43e240)break;else _0xe740ca['push'](_0xe740ca['shift']());}catch(_0xde79d2){_0xe740ca['push'](_0xe740ca['shift']());}}}(a201_0x7e92,0x70bca));import{mkdir,readFile,writeFile}from'node:fs/promises';function a201_0x7e92(){const _0x1e904c=['458rUGMbW','750327CQUkRT','18RhGBcc','utf8','1706164kCpRFO','1432490DkubVg','lastSync','Failed\x20to\x20read\x20BFF\x20lock\x20file:\x20','scriptsRoot','functions','3241tNaeuN','3240538fPEmEq','470WffSoE','object','apps',':\x20scriptsRoot\x20mismatch\x20—\x20','368060gnujcV','ENOENT','Check\x20.rabetbase/bff.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.','stringify','current\x20\x22','\x22.\x20','79983tGetFO','584JINaWd'];a201_0x7e92=function(){return _0x1e904c;};return a201_0x7e92();}import{dirname}from'node:path';export function createEmptyBffLock(){return{'apps':{}};}function a201_0x231b(_0x441ddf,_0x5cf224){_0x441ddf=_0x441ddf-0xad;const _0x7e9242=a201_0x7e92();let _0x231b24=_0x7e9242[_0x441ddf];return _0x231b24;}export function ensureLockScope(_0x422a5d,_0x498740,_0x34b00b,_0x227720){const _0x9d4d3a=a201_0x231b,_0x460020={'apps':_0x422a5d[_0x9d4d3a(0xb6)]&&typeof _0x422a5d['apps']===_0x9d4d3a(0xb5)?_0x422a5d[_0x9d4d3a(0xb6)]:{}};let _0x382a12=_0x460020['apps'][_0x498740];if(!_0x382a12)return _0x382a12={'scriptsRoot':_0x34b00b,'lastSync':'','functions':{}},_0x460020['apps'][_0x498740]=_0x382a12,{'lockData':_0x460020,'appLock':_0x382a12};if(!_0x382a12['scriptsRoot'])_0x382a12['scriptsRoot']=_0x34b00b;else{if(_0x382a12[_0x9d4d3a(0xb0)]!==_0x34b00b)throw new Error(_0x227720+_0x9d4d3a(0xb7)+(_0x9d4d3a(0xbc)+_0x34b00b+'\x22\x20vs\x20lock\x20\x22'+_0x382a12['scriptsRoot']+_0x9d4d3a(0xbd))+_0x9d4d3a(0xba));}return!_0x382a12[_0x9d4d3a(0xb1)]&&(_0x382a12[_0x9d4d3a(0xb1)]={}),!_0x382a12[_0x9d4d3a(0xae)]&&(_0x382a12[_0x9d4d3a(0xae)]=''),{'lockData':_0x460020,'appLock':_0x382a12};}export async function readBffLockFile(_0xe3dd42){const _0xc046dc=a201_0x231b;try{const _0x548953=await readFile(_0xe3dd42,'utf8'),_0x446ca0=JSON['parse'](_0x548953);return{'apps':_0x446ca0[_0xc046dc(0xb6)]&&typeof _0x446ca0[_0xc046dc(0xb6)]===_0xc046dc(0xb5)?_0x446ca0[_0xc046dc(0xb6)]:{}};}catch(_0x24a66e){if(_0x24a66e['code']===_0xc046dc(0xb9))return null;throw new Error(_0xc046dc(0xaf)+String(_0x24a66e));}}export async function writeBffLockFile(_0x3eeb01,_0x47ebab){const _0x5a6b4f=a201_0x231b;await mkdir(dirname(_0x3eeb01),{'recursive':!![]}),await writeFile(_0x3eeb01,JSON[_0x5a6b4f(0xbb)](_0x47ebab,null,0x2),_0x5a6b4f(0xc3));}
1
+ (function(_0x998e45,_0x16ae59){const _0x4b1143=a201_0x59a4,_0x47d028=_0x998e45();while(!![]){try{const _0x25fa47=-parseInt(_0x4b1143(0xa1))/0x1+-parseInt(_0x4b1143(0xa8))/0x2*(-parseInt(_0x4b1143(0xac))/0x3)+parseInt(_0x4b1143(0xa5))/0x4*(parseInt(_0x4b1143(0x96))/0x5)+-parseInt(_0x4b1143(0xa3))/0x6*(-parseInt(_0x4b1143(0x9a))/0x7)+parseInt(_0x4b1143(0xa4))/0x8*(parseInt(_0x4b1143(0xa0))/0x9)+-parseInt(_0x4b1143(0xaa))/0xa*(parseInt(_0x4b1143(0x9c))/0xb)+parseInt(_0x4b1143(0xa9))/0xc*(-parseInt(_0x4b1143(0x9e))/0xd);if(_0x25fa47===_0x16ae59)break;else _0x47d028['push'](_0x47d028['shift']());}catch(_0xe31485){_0x47d028['push'](_0x47d028['shift']());}}}(a201_0x2842,0xb9a88));import{mkdir,readFile,writeFile}from'node:fs/promises';function a201_0x59a4(_0x31d065,_0x439667){_0x31d065=_0x31d065-0x95;const _0x284295=a201_0x2842();let _0x59a4ca=_0x284295[_0x31d065];return _0x59a4ca;}import{dirname}from'node:path';export function createEmptyBffLock(){return{'apps':{}};}function a201_0x2842(){const _0xbf1cae=['8571549ZMCCsJ',':\x20scriptsRoot\x20mismatch\x20—\x20','34089WVlbML','scriptsRoot','871hJQywf','Check\x20.rabetbase/bff.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.','157293GnEplp','1017379lSjSAT','stringify','6eFMLmK','488HPTwvD','10492NzrccW','\x22\x20vs\x20lock\x20\x22','object','36834tYxtBN','168252IbUnha','3750CytylM','lastSync','99Cmzmms','Failed\x20to\x20read\x20BFF\x20lock\x20file:\x20','current\x20\x22','functions','1870mmfNzZ','apps','parse','\x22.\x20'];a201_0x2842=function(){return _0xbf1cae;};return a201_0x2842();}export function ensureLockScope(_0x23a8a1,_0x42003e,_0x294b98,_0xa994b0){const _0x5ff917=a201_0x59a4,_0x118c0c={'apps':_0x23a8a1['apps']&&typeof _0x23a8a1[_0x5ff917(0x97)]==='object'?_0x23a8a1[_0x5ff917(0x97)]:{}};let _0x4b82de=_0x118c0c[_0x5ff917(0x97)][_0x42003e];if(!_0x4b82de)return _0x4b82de={'scriptsRoot':_0x294b98,'lastSync':'','functions':{}},_0x118c0c['apps'][_0x42003e]=_0x4b82de,{'lockData':_0x118c0c,'appLock':_0x4b82de};if(!_0x4b82de[_0x5ff917(0x9d)])_0x4b82de[_0x5ff917(0x9d)]=_0x294b98;else{if(_0x4b82de['scriptsRoot']!==_0x294b98)throw new Error(_0xa994b0+_0x5ff917(0x9b)+(_0x5ff917(0xae)+_0x294b98+_0x5ff917(0xa6)+_0x4b82de[_0x5ff917(0x9d)]+_0x5ff917(0x99))+_0x5ff917(0x9f));}return!_0x4b82de[_0x5ff917(0x95)]&&(_0x4b82de[_0x5ff917(0x95)]={}),!_0x4b82de[_0x5ff917(0xab)]&&(_0x4b82de['lastSync']=''),{'lockData':_0x118c0c,'appLock':_0x4b82de};}export async function readBffLockFile(_0x7cf28d){const _0x43fe22=a201_0x59a4;try{const _0x580b42=await readFile(_0x7cf28d,'utf8'),_0x344066=JSON[_0x43fe22(0x98)](_0x580b42);return{'apps':_0x344066[_0x43fe22(0x97)]&&typeof _0x344066[_0x43fe22(0x97)]===_0x43fe22(0xa7)?_0x344066[_0x43fe22(0x97)]:{}};}catch(_0x43df28){if(_0x43df28['code']==='ENOENT')return null;throw new Error(_0x43fe22(0xad)+String(_0x43df28));}}export async function writeBffLockFile(_0x4f3dfd,_0x2e51bf){const _0x9f601=a201_0x59a4;await mkdir(dirname(_0x4f3dfd),{'recursive':!![]}),await writeFile(_0x4f3dfd,JSON[_0x9f601(0xa2)](_0x2e51bf,null,0x2),'utf8');}
@@ -1 +1 @@
1
- (function(_0x6697c9,_0x165624){const _0x436199=a203_0x2983,_0x47e500=_0x6697c9();while(!![]){try{const _0x109bf4=-parseInt(_0x436199(0x181))/0x1*(parseInt(_0x436199(0x17d))/0x2)+-parseInt(_0x436199(0x186))/0x3*(parseInt(_0x436199(0x17e))/0x4)+-parseInt(_0x436199(0x185))/0x5*(-parseInt(_0x436199(0x183))/0x6)+parseInt(_0x436199(0x18e))/0x7+parseInt(_0x436199(0x191))/0x8*(-parseInt(_0x436199(0x184))/0x9)+-parseInt(_0x436199(0x17f))/0xa+-parseInt(_0x436199(0x18c))/0xb*(-parseInt(_0x436199(0x188))/0xc);if(_0x109bf4===_0x165624)break;else _0x47e500['push'](_0x47e500['shift']());}catch(_0xb4a17b){_0x47e500['push'](_0x47e500['shift']());}}}(a203_0x2b9c,0x6a7bf));function a203_0x2983(_0x529a8b,_0x36370b){_0x529a8b=_0x529a8b-0x17d;const _0x2b9c0b=a203_0x2b9c();let _0x298398=_0x2b9c0b[_0x529a8b];return _0x298398;}export function snakeToCamel(_0x578598){const _0x573494=a203_0x2983;return _0x578598['toLowerCase']()[_0x573494(0x18b)](/_([a-z])/g,(_0x3c16b5,_0x2a4e6a)=>_0x2a4e6a[_0x573494(0x187)]());}function a203_0x2b9c(){const _0x536707=['684908WFjvVD','2905280VlSQHR','datasetCode','738519zImEHO','functionNode','6jQkMHj','23499UFqygl','559010LQFwsL','9xDvhTx','toUpperCase','112560UKdtTA','operationType','after','replace','2134vqbZMH','trim','3859016gAeBjm','before','match','1544egnAKT','2QHGqqy'];a203_0x2b9c=function(){return _0x536707;};return a203_0x2b9c();}export function findHookLocationByRemoteId(_0x4ea5d5,_0x3c1374){const _0x41b101=a203_0x2983;if(!_0x3c1374)return undefined;for(const _0x2e9447 of Object['values'](_0x4ea5d5)){if(_0x2e9447['remoteId']===_0x3c1374&&_0x2e9447[_0x41b101(0x180)]&&_0x2e9447[_0x41b101(0x189)]&&_0x2e9447[_0x41b101(0x182)])return{'datasetCode':_0x2e9447[_0x41b101(0x180)],'operationType':_0x2e9447[_0x41b101(0x189)],'functionNode':_0x2e9447[_0x41b101(0x182)]};}return undefined;}export function extractScriptDescription(_0x338dbc){const _0x53ece6=a203_0x2983,_0x50eca5=_0x338dbc[_0x53ece6(0x190)](/\[\s*脚本描述\s*]\s*(.+)/);return _0x50eca5?.[0x1]?.[_0x53ece6(0x18d)]()||undefined;}export function isValidBffFunctionName(_0x576f3d){return/^[A-Za-z_$][A-Za-z0-9_$]*$/['test'](_0x576f3d);}export function normalizeHookFunctionNode(_0x1c15bf){const _0x312173=a203_0x2983;if(!_0x1c15bf)return undefined;const _0x59c443=_0x1c15bf['trim']()['toLowerCase']();if(_0x59c443===_0x312173(0x18f)||_0x59c443===_0x312173(0x18a))return _0x59c443;return undefined;}
1
+ function a203_0x5cda(_0x4915e4,_0x33a340){_0x4915e4=_0x4915e4-0x16e;const _0x116b55=a203_0x116b();let _0x5cdac9=_0x116b55[_0x4915e4];return _0x5cdac9;}function a203_0x116b(){const _0x544302=['35360220bVHNTT','toLowerCase','8677710RzgZcS','4590171HpRjFu','test','trim','functionNode','124CnpWiE','remoteId','9754RCGPQs','after','8OIEAhk','values','222DIlpym','operationType','datasetCode','4096575SDAmcW','match','3193086RwCNhE','toUpperCase','114770YDaBOY'];a203_0x116b=function(){return _0x544302;};return a203_0x116b();}(function(_0x4c2e15,_0x4a6148){const _0x1e53d7=a203_0x5cda,_0x3cf312=_0x4c2e15();while(!![]){try{const _0x59e885=-parseInt(_0x1e53d7(0x17a))/0x1*(parseInt(_0x1e53d7(0x17e))/0x2)+-parseInt(_0x1e53d7(0x16e))/0x3+-parseInt(_0x1e53d7(0x178))/0x4*(-parseInt(_0x1e53d7(0x170))/0x5)+-parseInt(_0x1e53d7(0x173))/0x6+parseInt(_0x1e53d7(0x181))/0x7+-parseInt(_0x1e53d7(0x17c))/0x8*(parseInt(_0x1e53d7(0x174))/0x9)+parseInt(_0x1e53d7(0x171))/0xa;if(_0x59e885===_0x4a6148)break;else _0x3cf312['push'](_0x3cf312['shift']());}catch(_0xd7807b){_0x3cf312['push'](_0x3cf312['shift']());}}}(a203_0x116b,0xb2175));export function snakeToCamel(_0x423945){const _0x69edbf=a203_0x5cda;return _0x423945[_0x69edbf(0x172)]()['replace'](/_([a-z])/g,(_0x3c9fcc,_0x596986)=>_0x596986[_0x69edbf(0x16f)]());}export function findHookLocationByRemoteId(_0x561d29,_0x183418){const _0xe19a56=a203_0x5cda;if(!_0x183418)return undefined;for(const _0x4982ac of Object[_0xe19a56(0x17d)](_0x561d29)){if(_0x4982ac[_0xe19a56(0x179)]===_0x183418&&_0x4982ac[_0xe19a56(0x180)]&&_0x4982ac[_0xe19a56(0x17f)]&&_0x4982ac[_0xe19a56(0x177)])return{'datasetCode':_0x4982ac['datasetCode'],'operationType':_0x4982ac[_0xe19a56(0x17f)],'functionNode':_0x4982ac[_0xe19a56(0x177)]};}return undefined;}export function extractScriptDescription(_0x3266a9){const _0x4c975f=a203_0x5cda,_0x5e6ab1=_0x3266a9[_0x4c975f(0x182)](/\[\s*脚本描述\s*]\s*(.+)/);return _0x5e6ab1?.[0x1]?.[_0x4c975f(0x176)]()||undefined;}export function isValidBffFunctionName(_0x37768a){const _0x6f1976=a203_0x5cda;return/^[A-Za-z_$][A-Za-z0-9_$]*$/[_0x6f1976(0x175)](_0x37768a);}export function normalizeHookFunctionNode(_0x3ea466){const _0x2028f7=a203_0x5cda;if(!_0x3ea466)return undefined;const _0x32d473=_0x3ea466[_0x2028f7(0x176)]()[_0x2028f7(0x172)]();if(_0x32d473==='before'||_0x32d473===_0x2028f7(0x17b))return _0x32d473;return undefined;}
@@ -1 +1 @@
1
- (function(_0x15924b,_0x5628dc){const _0x331811=a204_0x297a,_0x199cae=_0x15924b();while(!![]){try{const _0x27d1c3=parseInt(_0x331811(0x94))/0x1*(-parseInt(_0x331811(0xa3))/0x2)+-parseInt(_0x331811(0x92))/0x3+parseInt(_0x331811(0x9e))/0x4+parseInt(_0x331811(0x9c))/0x5+-parseInt(_0x331811(0xa2))/0x6*(-parseInt(_0x331811(0x87))/0x7)+-parseInt(_0x331811(0x91))/0x8*(-parseInt(_0x331811(0x93))/0x9)+parseInt(_0x331811(0xa1))/0xa*(-parseInt(_0x331811(0x99))/0xb);if(_0x27d1c3===_0x5628dc)break;else _0x199cae['push'](_0x199cae['shift']());}catch(_0x352e5b){_0x199cae['push'](_0x199cae['shift']());}}}(a204_0x42b7,0x33c40));import{listDatasets}from'../core/api-client.js';function a204_0x297a(_0x4a91d5,_0x4c1d3e){_0x4a91d5=_0x4a91d5-0x84;const _0x42b794=a204_0x42b7();let _0x297ad4=_0x42b794[_0x4a91d5];return _0x297ad4;}function a204_0x42b7(){const _0x554e01=['No\x20linked\x20databases\x20found\x20under\x20app\x20\x22','set','toLowerCase','includes','isNaN','\x22.\x20Available:\x20','8EKxuwf','165828Qehmea','1210923zYakYM','153169dkQdqe','has','find','db-','No\x20database\x20matching\x20\x22','11tjptxy','entries','dbtableConfig','1558570MRfEbV','\x22.\x20Make\x20sure\x20datasets\x20have\x20been\x20created.','546608yoVXXA','.\x20Be\x20more\x20specific.','dbName','3551770xFFYjT','738rcFdfJ','2AfhYVx','\x22\x20under\x20app\x20\x22','join','filter','.\x20If\x20this\x20db\x20belongs\x20to\x20another\x20app,\x20rerun\x20with\x20--appcode\x20<appCode>.','dbId','10969puMYOF','length','map','\x22\x20matches\x20multiple\x20databases:\x20'];a204_0x42b7=function(){return _0x554e01;};return a204_0x42b7();}const cache=new Map();export async function listDatabases(_0x252bba){const _0xf23def=a204_0x297a;if(cache[_0xf23def(0x95)](_0x252bba))return cache['get'](_0x252bba);const _0xa97892=await listDatasets(_0x252bba),_0x1cd67d=new Map();for(const _0x199399 of _0xa97892){const _0x244e18=_0x199399[_0xf23def(0x9b)];_0x244e18?.[_0xf23def(0x86)]!=null&&_0x1cd67d[_0xf23def(0x8c)](_0x244e18['dbId'],_0x244e18[_0xf23def(0xa0)]??_0xf23def(0x97)+_0x244e18[_0xf23def(0x86)]);}const _0x368af4=[..._0x1cd67d[_0xf23def(0x9a)]()][_0xf23def(0x89)](([_0x20c2b5,_0x4f88d2])=>({'dbId':_0x20c2b5,'dbName':_0x4f88d2}));return cache[_0xf23def(0x8c)](_0x252bba,_0x368af4),_0x368af4;}export async function resolveDb(_0x1a8246,_0x8c2991){const _0x296d5e=a204_0x297a,_0x38ebb1=await listDatabases(_0x1a8246);if(_0x38ebb1[_0x296d5e(0x88)]===0x0)return{'resolved':[],'error':_0x296d5e(0x8b)+_0x1a8246+_0x296d5e(0x9d)};if(!_0x8c2991)return{'resolved':_0x38ebb1};const _0x80bd4d=Number(_0x8c2991);if(!Number[_0x296d5e(0x8f)](_0x80bd4d)){const _0x23e73f=_0x38ebb1['find'](_0x196569=>_0x196569[_0x296d5e(0x86)]===_0x80bd4d);if(_0x23e73f)return{'resolved':[_0x23e73f]};}const _0x311188=_0x8c2991[_0x296d5e(0x8d)](),_0xa5b1e7=_0x38ebb1[_0x296d5e(0x84)](_0x18949b=>_0x18949b[_0x296d5e(0xa0)][_0x296d5e(0x8d)]()[_0x296d5e(0x8e)](_0x311188));if(_0xa5b1e7[_0x296d5e(0x88)]>0x0)return{'resolved':_0xa5b1e7};const _0x3eb2d6=_0x38ebb1[_0x296d5e(0x89)](_0x588d0e=>_0x588d0e[_0x296d5e(0xa0)]+'\x20('+_0x588d0e[_0x296d5e(0x86)]+')')[_0x296d5e(0xa5)](',\x20');return{'resolved':[],'error':_0x296d5e(0x98)+_0x8c2991+_0x296d5e(0xa4)+_0x1a8246+_0x296d5e(0x90)+_0x3eb2d6+_0x296d5e(0x85)};}export async function resolveOneDb(_0x3ea039,_0x269a00){const _0x492a6d=a204_0x297a,{resolved:_0x36ed76,error:_0x165527}=await resolveDb(_0x3ea039,_0x269a00);if(_0x165527)return{'db':null,'error':_0x165527};if(_0x36ed76['length']===0x1)return{'db':_0x36ed76[0x0]};if(!_0x269a00){const _0x22a210=_0x36ed76[_0x492a6d(0x89)](_0x2dfa9d=>_0x2dfa9d[_0x492a6d(0xa0)]+'\x20('+_0x2dfa9d[_0x492a6d(0x86)]+')')[_0x492a6d(0xa5)](',\x20');return{'db':null,'error':'Multiple\x20databases\x20found.\x20Specify\x20one\x20with\x20--db:\x20'+_0x22a210};}const _0x507c60=_0x36ed76['map'](_0x2db287=>_0x2db287[_0x492a6d(0xa0)]+'\x20('+_0x2db287[_0x492a6d(0x86)]+')')[_0x492a6d(0xa5)](',\x20');return{'db':null,'error':'\x22'+_0x269a00+_0x492a6d(0x8a)+_0x507c60+_0x492a6d(0x9f)};}export async function getDbName(_0x5bcabb,_0x161e77){const _0x4f9f04=a204_0x297a,_0x2d6e2c=await listDatabases(_0x5bcabb);return _0x2d6e2c[_0x4f9f04(0x96)](_0x186f55=>_0x186f55['dbId']===_0x161e77)?.['dbName'];}
1
+ (function(_0x439705,_0x157356){const _0x4252e9=a204_0x27d5,_0x2fb81e=_0x439705();while(!![]){try{const _0x8934dd=parseInt(_0x4252e9(0x14a))/0x1+parseInt(_0x4252e9(0x137))/0x2+parseInt(_0x4252e9(0x142))/0x3+-parseInt(_0x4252e9(0x13e))/0x4+-parseInt(_0x4252e9(0x12e))/0x5+-parseInt(_0x4252e9(0x139))/0x6+parseInt(_0x4252e9(0x145))/0x7;if(_0x8934dd===_0x157356)break;else _0x2fb81e['push'](_0x2fb81e['shift']());}catch(_0x4963f8){_0x2fb81e['push'](_0x2fb81e['shift']());}}}(a204_0x16b0,0x9c226));import{listDatasets}from'../core/api-client.js';function a204_0x27d5(_0x521363,_0x2e1497){_0x521363=_0x521363-0x12e;const _0x16b0bb=a204_0x16b0();let _0x27d509=_0x16b0bb[_0x521363];return _0x27d509;}function a204_0x16b0(){const _0xfc5ca3=['.\x20Be\x20more\x20specific.','toLowerCase','\x22\x20matches\x20multiple\x20databases:\x20','4215952gGWdSA','No\x20database\x20matching\x20\x22','find','\x22\x20under\x20app\x20\x22','1450410fsknpO','dbtableConfig','Multiple\x20databases\x20found.\x20Specify\x20one\x20with\x20--db:\x20','8175384gLZQiI','set','.\x20If\x20this\x20db\x20belongs\x20to\x20another\x20app,\x20rerun\x20with\x20--appcode\x20<appCode>.','filter','length','225019VxuMhg','687975WXDRXe','No\x20linked\x20databases\x20found\x20under\x20app\x20\x22','entries','dbId','dbName','map','\x22.\x20Make\x20sure\x20datasets\x20have\x20been\x20created.','db-','includes','2022704hMohrw','get','6339864DgQRVe','join'];a204_0x16b0=function(){return _0xfc5ca3;};return a204_0x16b0();}const cache=new Map();export async function listDatabases(_0x97af4b){const _0x2ed9f8=a204_0x27d5;if(cache['has'](_0x97af4b))return cache[_0x2ed9f8(0x138)](_0x97af4b);const _0x67195b=await listDatasets(_0x97af4b),_0x5c3c9e=new Map();for(const _0x33ee40 of _0x67195b){const _0x2933f8=_0x33ee40[_0x2ed9f8(0x143)];_0x2933f8?.[_0x2ed9f8(0x131)]!=null&&_0x5c3c9e[_0x2ed9f8(0x146)](_0x2933f8[_0x2ed9f8(0x131)],_0x2933f8['dbName']??_0x2ed9f8(0x135)+_0x2933f8[_0x2ed9f8(0x131)]);}const _0x5aaac3=[..._0x5c3c9e[_0x2ed9f8(0x130)]()]['map'](([_0x927d3f,_0x5c5fe9])=>({'dbId':_0x927d3f,'dbName':_0x5c5fe9}));return cache[_0x2ed9f8(0x146)](_0x97af4b,_0x5aaac3),_0x5aaac3;}export async function resolveDb(_0x21cfef,_0x10199b){const _0x5d20c3=a204_0x27d5,_0x20db36=await listDatabases(_0x21cfef);if(_0x20db36[_0x5d20c3(0x149)]===0x0)return{'resolved':[],'error':_0x5d20c3(0x12f)+_0x21cfef+_0x5d20c3(0x134)};if(!_0x10199b)return{'resolved':_0x20db36};const _0x32a643=Number(_0x10199b);if(!Number['isNaN'](_0x32a643)){const _0x50eec9=_0x20db36[_0x5d20c3(0x140)](_0x4c5d78=>_0x4c5d78['dbId']===_0x32a643);if(_0x50eec9)return{'resolved':[_0x50eec9]};}const _0x4c57ac=_0x10199b[_0x5d20c3(0x13c)](),_0x590b77=_0x20db36[_0x5d20c3(0x148)](_0x510ac1=>_0x510ac1[_0x5d20c3(0x132)][_0x5d20c3(0x13c)]()[_0x5d20c3(0x136)](_0x4c57ac));if(_0x590b77[_0x5d20c3(0x149)]>0x0)return{'resolved':_0x590b77};const _0x2acef4=_0x20db36[_0x5d20c3(0x133)](_0x7861b4=>_0x7861b4[_0x5d20c3(0x132)]+'\x20('+_0x7861b4[_0x5d20c3(0x131)]+')')['join'](',\x20');return{'resolved':[],'error':_0x5d20c3(0x13f)+_0x10199b+_0x5d20c3(0x141)+_0x21cfef+'\x22.\x20Available:\x20'+_0x2acef4+_0x5d20c3(0x147)};}export async function resolveOneDb(_0x15c819,_0x46a79b){const _0x16349=a204_0x27d5,{resolved:_0x165432,error:_0x456b67}=await resolveDb(_0x15c819,_0x46a79b);if(_0x456b67)return{'db':null,'error':_0x456b67};if(_0x165432[_0x16349(0x149)]===0x1)return{'db':_0x165432[0x0]};if(!_0x46a79b){const _0x8f30f=_0x165432[_0x16349(0x133)](_0x443eb4=>_0x443eb4[_0x16349(0x132)]+'\x20('+_0x443eb4[_0x16349(0x131)]+')')['join'](',\x20');return{'db':null,'error':_0x16349(0x144)+_0x8f30f};}const _0x33a40d=_0x165432[_0x16349(0x133)](_0x16b556=>_0x16b556[_0x16349(0x132)]+'\x20('+_0x16b556[_0x16349(0x131)]+')')[_0x16349(0x13a)](',\x20');return{'db':null,'error':'\x22'+_0x46a79b+_0x16349(0x13d)+_0x33a40d+_0x16349(0x13b)};}export async function getDbName(_0x2a1dc2,_0x5cc3d4){const _0x268497=a204_0x27d5,_0x5481e8=await listDatabases(_0x2a1dc2);return _0x5481e8[_0x268497(0x140)](_0x591cce=>_0x591cce['dbId']===_0x5cc3d4)?.['dbName'];}
@@ -1 +1 @@
1
- const a205_0x13f9b7=a205_0x49ff;(function(_0x40f404,_0x2391bb){const _0x505355=a205_0x49ff,_0x2d1c7b=_0x40f404();while(!![]){try{const _0x147c20=parseInt(_0x505355(0xa4))/0x1+parseInt(_0x505355(0xa5))/0x2+parseInt(_0x505355(0xa2))/0x3*(-parseInt(_0x505355(0xa3))/0x4)+parseInt(_0x505355(0x9b))/0x5+-parseInt(_0x505355(0x9e))/0x6*(parseInt(_0x505355(0xa8))/0x7)+-parseInt(_0x505355(0x9f))/0x8*(parseInt(_0x505355(0x99))/0x9)+parseInt(_0x505355(0xa9))/0xa;if(_0x147c20===_0x2391bb)break;else _0x2d1c7b['push'](_0x2d1c7b['shift']());}catch(_0x557897){_0x2d1c7b['push'](_0x2d1c7b['shift']());}}}(a205_0x3ced,0xb3be3));import{constants}from'node:fs';import{access,mkdir}from'node:fs/promises';import{dirname,join,resolve}from'node:path';function a205_0x3ced(){const _0x2ab982=['3775308VdHBJM','6505304zvzwdS','page.lock.json','.rabetbase','4229373NAhvZZ','4MkXytX','1024224ghuIGO','417000ZZLUsl','appPagesDir','cwd','7WHRnUx','12375450xNjSZH','9iyTPId','F_OK','5590650RfGwmu','.json','page'];a205_0x3ced=function(){return _0x2ab982;};return a205_0x3ced();}function a205_0x49ff(_0x47ebe3,_0x3d8b91){_0x47ebe3=_0x47ebe3-0x99;const _0x3ced56=a205_0x3ced();let _0x49ff31=_0x3ced56[_0x47ebe3];return _0x49ff31;}export function loadPageProjectConfig(_0x44e438,_0x8aec53=process[a205_0x13f9b7(0xa7)]()){const _0x4775cf=a205_0x13f9b7,_0x3284f0=resolve(_0x8aec53),_0x4ab31d=join(_0x3284f0,_0x4775cf(0xa1),_0x4775cf(0x9d));return{'projectRoot':_0x3284f0,'pagesBaseDir':_0x4ab31d,'appPagesDir':join(_0x4ab31d,_0x44e438),'lockFilePath':join(_0x3284f0,_0x4775cf(0xa1),_0x4775cf(0xa0))};}export function buildPageFileName(_0x5f01a9,_0x26cfb5){const _0x2c46eb=a205_0x13f9b7;return _0x5f01a9+'-'+String(_0x26cfb5)['toUpperCase']()+_0x2c46eb(0x9c);}export function resolvePageFilePath(_0x56ffc8,_0x15a073,_0x31f1f0){const _0x269bef=a205_0x13f9b7;return join(_0x56ffc8[_0x269bef(0xa6)],buildPageFileName(_0x15a073,_0x31f1f0));}export async function ensureParentDirectory(_0x336909){await mkdir(dirname(_0x336909),{'recursive':!![]});}export async function fileExists(_0x63542b){const _0x15dd3e=a205_0x13f9b7;try{return await access(_0x63542b,constants[_0x15dd3e(0x9a)]),!![];}catch{return![];}}
1
+ const a205_0x521868=a205_0x4e98;(function(_0x1462fa,_0x4c6e0b){const _0x389c64=a205_0x4e98,_0x5950d3=_0x1462fa();while(!![]){try{const _0x2f5f8b=-parseInt(_0x389c64(0x76))/0x1*(parseInt(_0x389c64(0x74))/0x2)+-parseInt(_0x389c64(0x6b))/0x3+parseInt(_0x389c64(0x67))/0x4+-parseInt(_0x389c64(0x72))/0x5+-parseInt(_0x389c64(0x6a))/0x6*(-parseInt(_0x389c64(0x73))/0x7)+parseInt(_0x389c64(0x6e))/0x8+-parseInt(_0x389c64(0x69))/0x9*(parseInt(_0x389c64(0x68))/0xa);if(_0x2f5f8b===_0x4c6e0b)break;else _0x5950d3['push'](_0x5950d3['shift']());}catch(_0x25e504){_0x5950d3['push'](_0x5950d3['shift']());}}}(a205_0xc029,0xcf8f0));function a205_0xc029(){const _0x1e3d2b=['4965006xqcblb','3045633OLwHNd','F_OK','page.lock.json','11907888rMyJiq','.rabetbase','page','appPagesDir','1747315suKzia','7JFisTt','38DCKKAy','toUpperCase','76700HGXmXI','cwd','5466960EXMSMd','105930VaTWSE','9VfTqes'];a205_0xc029=function(){return _0x1e3d2b;};return a205_0xc029();}import{constants}from'node:fs';import{access,mkdir}from'node:fs/promises';import{dirname,join,resolve}from'node:path';export function loadPageProjectConfig(_0xdbe0fe,_0xc3292=process[a205_0x521868(0x77)]()){const _0x4290ee=a205_0x521868,_0x1ec98f=resolve(_0xc3292),_0x1363fd=join(_0x1ec98f,_0x4290ee(0x6f),_0x4290ee(0x70));return{'projectRoot':_0x1ec98f,'pagesBaseDir':_0x1363fd,'appPagesDir':join(_0x1363fd,_0xdbe0fe),'lockFilePath':join(_0x1ec98f,_0x4290ee(0x6f),_0x4290ee(0x6d))};}export function buildPageFileName(_0x565c40,_0x56f4bc){const _0x4be709=a205_0x521868;return _0x565c40+'-'+String(_0x56f4bc)[_0x4be709(0x75)]()+'.json';}export function resolvePageFilePath(_0x32a624,_0x1c4a30,_0x2a53a8){const _0x167a4b=a205_0x521868;return join(_0x32a624[_0x167a4b(0x71)],buildPageFileName(_0x1c4a30,_0x2a53a8));}export async function ensureParentDirectory(_0x754baa){await mkdir(dirname(_0x754baa),{'recursive':!![]});}function a205_0x4e98(_0x3c7906,_0x4d985b){_0x3c7906=_0x3c7906-0x67;const _0xc02945=a205_0xc029();let _0x4e9842=_0xc02945[_0x3c7906];return _0x4e9842;}export async function fileExists(_0x34f63d){const _0x5a63eb=a205_0x521868;try{return await access(_0x34f63d,constants[_0x5a63eb(0x6c)]),!![];}catch{return![];}}
@@ -1 +1 @@
1
- (function(_0x9d5e0b,_0x289e1c){const _0x2b7e68=a206_0x24dd,_0x11bff3=_0x9d5e0b();while(!![]){try{const _0x4bd339=parseInt(_0x2b7e68(0x15e))/0x1*(parseInt(_0x2b7e68(0x161))/0x2)+parseInt(_0x2b7e68(0x16b))/0x3*(-parseInt(_0x2b7e68(0x163))/0x4)+-parseInt(_0x2b7e68(0x166))/0x5*(parseInt(_0x2b7e68(0x164))/0x6)+parseInt(_0x2b7e68(0x160))/0x7*(-parseInt(_0x2b7e68(0x15d))/0x8)+-parseInt(_0x2b7e68(0x16a))/0x9+-parseInt(_0x2b7e68(0x15f))/0xa+parseInt(_0x2b7e68(0x162))/0xb;if(_0x4bd339===_0x289e1c)break;else _0x11bff3['push'](_0x11bff3['shift']());}catch(_0x4c20a2){_0x11bff3['push'](_0x11bff3['shift']());}}}(a206_0x20c5,0x86558));import a206_0x553093 from'node:crypto';import{readFile}from'node:fs/promises';function a206_0x24dd(_0x3fa04c,_0x18c3d7){_0x3fa04c=_0x3fa04c-0x15c;const _0x20c502=a206_0x20c5();let _0x24dd16=_0x20c502[_0x3fa04c];return _0x24dd16;}export function serializePageSchemaForFile(_0x45e97c){const _0x1d3147=a206_0x24dd;return JSON[_0x1d3147(0x169)](JSON[_0x1d3147(0x167)](_0x45e97c),null,0x2)+'\x0a';}export function computePageContentHash(_0xa71cf9){const _0x3e77ee=a206_0x24dd;return a206_0x553093[_0x3e77ee(0x16e)](_0x3e77ee(0x16d))[_0x3e77ee(0x16c)](_0xa71cf9)[_0x3e77ee(0x165)](_0x3e77ee(0x15c));}export function computeSerializedSchemaHash(_0x499e4f){return computePageContentHash(serializePageSchemaForFile(_0x499e4f));}function a206_0x20c5(){const _0x507fa5=['37907782VLZMvC','4dYduqR','186uzIpJx','digest','149095KKsDdN','parse','utf8','stringify','9632556iZOxNA','219795NQyZER','update','md5','createHash','hex','4018192GOtKvm','2zyHOus','9775120vaXJTK','7KUWJpN','651794OztzVR'];a206_0x20c5=function(){return _0x507fa5;};return a206_0x20c5();}export async function computePageFileHash(_0x3a90c2){const _0x5f0401=a206_0x24dd,_0x42944e=await readFile(_0x3a90c2,_0x5f0401(0x168));return computePageContentHash(_0x42944e);}
1
+ (function(_0x39156c,_0x3c610c){const _0x3a4956=a206_0x37ae,_0x556e1d=_0x39156c();while(!![]){try{const _0x4e9a6f=-parseInt(_0x3a4956(0xbb))/0x1+parseInt(_0x3a4956(0xc1))/0x2+parseInt(_0x3a4956(0xba))/0x3*(parseInt(_0x3a4956(0xb8))/0x4)+parseInt(_0x3a4956(0xc0))/0x5+-parseInt(_0x3a4956(0xbd))/0x6*(parseInt(_0x3a4956(0xb4))/0x7)+-parseInt(_0x3a4956(0xbf))/0x8*(parseInt(_0x3a4956(0xb6))/0x9)+parseInt(_0x3a4956(0xb7))/0xa;if(_0x4e9a6f===_0x3c610c)break;else _0x556e1d['push'](_0x556e1d['shift']());}catch(_0x10be76){_0x556e1d['push'](_0x556e1d['shift']());}}}(a206_0x4ab3,0x1a8bd));import a206_0x4f4869 from'node:crypto';function a206_0x37ae(_0x1de0ca,_0x5a534e){_0x1de0ca=_0x1de0ca-0xb3;const _0x4ab308=a206_0x4ab3();let _0x37aeb4=_0x4ab308[_0x1de0ca];return _0x37aeb4;}import{readFile}from'node:fs/promises';export function serializePageSchemaForFile(_0x424a6c){const _0x3dc702=a206_0x37ae;return JSON['stringify'](JSON[_0x3dc702(0xc2)](_0x424a6c),null,0x2)+'\x0a';}export function computePageContentHash(_0x5bf459){const _0x2b72f9=a206_0x37ae;return a206_0x4f4869[_0x2b72f9(0xbe)]('md5')[_0x2b72f9(0xb9)](_0x5bf459)[_0x2b72f9(0xb5)](_0x2b72f9(0xbc));}export function computeSerializedSchemaHash(_0xd0661){return computePageContentHash(serializePageSchemaForFile(_0xd0661));}export async function computePageFileHash(_0x5716a7){const _0x332138=a206_0x37ae,_0xad7222=await readFile(_0x5716a7,_0x332138(0xb3));return computePageContentHash(_0xad7222);}function a206_0x4ab3(){const _0x37ed63=['hex','36QgQpRb','createHash','8136xPJuTM','512000LbFWIP','259590DxuYuv','parse','utf8','135317HbNpri','digest','1629MHVPTL','3165930wWwoMy','32DWqMBB','update','18174iDuuZG','188456PCgqbn'];a206_0x4ab3=function(){return _0x37ed63;};return a206_0x4ab3();}
@@ -1 +1 @@
1
- (function(_0x191f74,_0x2162b4){const _0x178909=a207_0x48f3,_0x19848a=_0x191f74();while(!![]){try{const _0x33623b=-parseInt(_0x178909(0x1c2))/0x1+-parseInt(_0x178909(0x1c1))/0x2+-parseInt(_0x178909(0x1c0))/0x3+-parseInt(_0x178909(0x1c4))/0x4*(parseInt(_0x178909(0x1be))/0x5)+-parseInt(_0x178909(0x1c7))/0x6*(parseInt(_0x178909(0x1c9))/0x7)+-parseInt(_0x178909(0x1cc))/0x8+parseInt(_0x178909(0x1c8))/0x9;if(_0x33623b===_0x2162b4)break;else _0x19848a['push'](_0x19848a['shift']());}catch(_0x28987b){_0x19848a['push'](_0x19848a['shift']());}}}(a207_0x34dd,0xea323));function a207_0x48f3(_0x5e6016,_0x40b9ef){_0x5e6016=_0x5e6016-0x1bd;const _0x34dd37=a207_0x34dd();let _0x48f391=_0x34dd37[_0x5e6016];return _0x48f391;}import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';export function createEmptyPageLock(){return{'apps':{}};}function a207_0x34dd(){const _0x33a69b=['1029087BPiOhl','stringify','3436KplSHs','parse','code','6ZBCaIz','50495481wrAWSc','1931573wvojem','apps','Failed\x20to\x20read\x20page\x20lock\x20file:\x20','281184othPrf','object','pages','8090qAdGvA','lastSync','3935061nUFFPI','1219238KRVNlr'];a207_0x34dd=function(){return _0x33a69b;};return a207_0x34dd();}export function ensurePageLockScope(_0x1533da,_0xbe7d0a){const _0x22659a=a207_0x48f3,_0x420968={'apps':_0x1533da[_0x22659a(0x1ca)]&&typeof _0x1533da[_0x22659a(0x1ca)]===_0x22659a(0x1cd)?_0x1533da[_0x22659a(0x1ca)]:{}};let _0x26bfba=_0x420968['apps'][_0xbe7d0a];if(!_0x26bfba)return _0x26bfba={'lastSync':'','pages':{}},_0x420968['apps'][_0xbe7d0a]=_0x26bfba,{'lockData':_0x420968,'appLock':_0x26bfba};return!_0x26bfba[_0x22659a(0x1bf)]&&(_0x26bfba[_0x22659a(0x1bf)]=''),(!_0x26bfba['pages']||typeof _0x26bfba[_0x22659a(0x1bd)]!==_0x22659a(0x1cd))&&(_0x26bfba[_0x22659a(0x1bd)]={}),{'lockData':_0x420968,'appLock':_0x26bfba};}export async function readPageLockFile(_0x2703bf){const _0x4a411a=a207_0x48f3;try{const _0x3c2e74=await readFile(_0x2703bf,'utf8'),_0x4881e5=JSON[_0x4a411a(0x1c5)](_0x3c2e74);return{'apps':_0x4881e5[_0x4a411a(0x1ca)]&&typeof _0x4881e5[_0x4a411a(0x1ca)]===_0x4a411a(0x1cd)?_0x4881e5[_0x4a411a(0x1ca)]:{}};}catch(_0x257fa4){if(_0x257fa4[_0x4a411a(0x1c6)]==='ENOENT')return null;throw new Error(_0x4a411a(0x1cb)+String(_0x257fa4));}}export async function writePageLockFile(_0x117fbc,_0x62d331){const _0x20c6fb=a207_0x48f3;await mkdir(dirname(_0x117fbc),{'recursive':!![]}),await writeFile(_0x117fbc,JSON[_0x20c6fb(0x1c3)](_0x62d331,null,0x2),'utf8');}
1
+ (function(_0x1e4ed1,_0x267c66){const _0x317441=a207_0x32a4,_0x13ea69=_0x1e4ed1();while(!![]){try{const _0x43f965=parseInt(_0x317441(0x7d))/0x1+parseInt(_0x317441(0x85))/0x2+parseInt(_0x317441(0x80))/0x3*(-parseInt(_0x317441(0x81))/0x4)+parseInt(_0x317441(0x87))/0x5*(parseInt(_0x317441(0x84))/0x6)+parseInt(_0x317441(0x83))/0x7*(-parseInt(_0x317441(0x8a))/0x8)+-parseInt(_0x317441(0x82))/0x9+parseInt(_0x317441(0x89))/0xa;if(_0x43f965===_0x267c66)break;else _0x13ea69['push'](_0x13ea69['shift']());}catch(_0xf49936){_0x13ea69['push'](_0x13ea69['shift']());}}}(a207_0x4441,0x8950f));import{mkdir,readFile,writeFile}from'node:fs/promises';function a207_0x4441(){const _0x41e5ef=['object','Failed\x20to\x20read\x20page\x20lock\x20file:\x20','117JxcwJC','86660Ytwgrb','3124017EnXnGS','1632407WQFSzK','72oaFTpC','2153888ejDjUz','apps','231250VYHCwN','parse','690480uuqnXQ','16VEjmGF','lastSync','pages','utf8','stringify','519905xIGiKU'];a207_0x4441=function(){return _0x41e5ef;};return a207_0x4441();}import{dirname}from'node:path';export function createEmptyPageLock(){return{'apps':{}};}export function ensurePageLockScope(_0x21025f,_0x56765b){const _0x3a6a05=a207_0x32a4,_0x5288ed={'apps':_0x21025f[_0x3a6a05(0x86)]&&typeof _0x21025f[_0x3a6a05(0x86)]===_0x3a6a05(0x7e)?_0x21025f['apps']:{}};let _0x5cf10c=_0x5288ed[_0x3a6a05(0x86)][_0x56765b];if(!_0x5cf10c)return _0x5cf10c={'lastSync':'','pages':{}},_0x5288ed[_0x3a6a05(0x86)][_0x56765b]=_0x5cf10c,{'lockData':_0x5288ed,'appLock':_0x5cf10c};return!_0x5cf10c[_0x3a6a05(0x8b)]&&(_0x5cf10c[_0x3a6a05(0x8b)]=''),(!_0x5cf10c[_0x3a6a05(0x8c)]||typeof _0x5cf10c[_0x3a6a05(0x8c)]!==_0x3a6a05(0x7e))&&(_0x5cf10c[_0x3a6a05(0x8c)]={}),{'lockData':_0x5288ed,'appLock':_0x5cf10c};}function a207_0x32a4(_0xbf1d35,_0x49a1db){_0xbf1d35=_0xbf1d35-0x7c;const _0x444102=a207_0x4441();let _0x32a4b3=_0x444102[_0xbf1d35];return _0x32a4b3;}export async function readPageLockFile(_0x2668a1){const _0x1ea9f0=a207_0x32a4;try{const _0x2c6c24=await readFile(_0x2668a1,_0x1ea9f0(0x8d)),_0x1f198d=JSON[_0x1ea9f0(0x88)](_0x2c6c24);return{'apps':_0x1f198d[_0x1ea9f0(0x86)]&&typeof _0x1f198d[_0x1ea9f0(0x86)]===_0x1ea9f0(0x7e)?_0x1f198d['apps']:{}};}catch(_0x252dde){if(_0x252dde['code']==='ENOENT')return null;throw new Error(_0x1ea9f0(0x7f)+String(_0x252dde));}}export async function writePageLockFile(_0x26746d,_0x26608a){const _0x3fbb2b=a207_0x32a4;await mkdir(dirname(_0x26746d),{'recursive':!![]}),await writeFile(_0x26746d,JSON[_0x3fbb2b(0x7c)](_0x26608a,null,0x2),_0x3fbb2b(0x8d));}
@@ -1 +1 @@
1
- (function(_0x122245,_0xf1d1c5){const _0x3ed436=a209_0x495a,_0x18129f=_0x122245();while(!![]){try{const _0x1d355d=-parseInt(_0x3ed436(0x219))/0x1+parseInt(_0x3ed436(0x1ff))/0x2+parseInt(_0x3ed436(0x1fa))/0x3*(-parseInt(_0x3ed436(0x228))/0x4)+-parseInt(_0x3ed436(0x231))/0x5*(-parseInt(_0x3ed436(0x211))/0x6)+-parseInt(_0x3ed436(0x230))/0x7*(-parseInt(_0x3ed436(0x20b))/0x8)+parseInt(_0x3ed436(0x210))/0x9+parseInt(_0x3ed436(0x21b))/0xa*(-parseInt(_0x3ed436(0x221))/0xb);if(_0x1d355d===_0xf1d1c5)break;else _0x18129f['push'](_0x18129f['shift']());}catch(_0x3265c0){_0x18129f['push'](_0x18129f['shift']());}}}(a209_0xf03a,0x2affd));export function auditSqlJoinIndexes(_0x2d42b7,_0x117349){const _0x1fdd99=a209_0x495a,_0x469261=[],_0x260a2f=extractJoinFacts(_0x2d42b7)[_0x1fdd99(0x237)](_0x3fea0e=>{const _0x1c8540=_0x1fdd99;if(_0x3fea0e[_0x1c8540(0x22f)]||_0x3fea0e['columns'][_0x1c8540(0x207)]===0x0)return _0x469261[_0x1c8540(0x226)]({'code':_0x1c8540(0x235),'table':_0x3fea0e[_0x1c8540(0x227)],'alias':_0x3fea0e[_0x1c8540(0x1f7)],'columns':_0x3fea0e[_0x1c8540(0x1f1)],'reason':_0x3fea0e[_0x1c8540(0x22b)]??_0x1c8540(0x218)}),{'table':_0x3fea0e[_0x1c8540(0x227)],'alias':_0x3fea0e[_0x1c8540(0x1f7)],'columns':_0x3fea0e[_0x1c8540(0x1f1)],'status':_0x1c8540(0x22a)};const _0x64d778=resolveTableMetadata(_0x117349,_0x3fea0e['table']),_0x1bc862=(_0x64d778?.[_0x1c8540(0x21a)]??[])['map'](_0x30d6b0=>({'index':_0x30d6b0,'matchedPrefix':findEqualityPrefix(_0x30d6b0[_0x1c8540(0x1f1)],_0x3fea0e[_0x1c8540(0x1f1)])}))[_0x1c8540(0x208)](_0x3d4af1=>_0x3d4af1['matchedPrefix'][_0x1c8540(0x207)]>0x0),_0x376f08=_0x1bc862[_0x1c8540(0x20d)]((_0x55b6ed,_0x31c141)=>!_0x55b6ed||_0x31c141[_0x1c8540(0x20c)]['length']>_0x55b6ed[_0x1c8540(0x20c)]['length']?_0x31c141:_0x55b6ed,_0x1bc862[0x0]);if(_0x376f08)return{'table':_0x3fea0e[_0x1c8540(0x227)],'alias':_0x3fea0e[_0x1c8540(0x1f7)],'columns':_0x3fea0e[_0x1c8540(0x1f1)],'status':_0x1c8540(0x213),'matchedIndex':{..._0x376f08[_0x1c8540(0x204)],'matchedPrefix':_0x376f08[_0x1c8540(0x20c)]}};const _0x194fa=_0x64d778?.[_0x1c8540(0x21a)][_0x1c8540(0x208)](_0x56a481=>_0x56a481[_0x1c8540(0x1f1)]['some'](_0x32f8b5=>_0x3fea0e[_0x1c8540(0x1f1)][_0x1c8540(0x233)](_0x108e1f=>columnNamesMatch(_0x32f8b5,_0x108e1f))))??[];if(_0x194fa[_0x1c8540(0x207)]>0x0)return _0x469261[_0x1c8540(0x226)]({'code':_0x1c8540(0x1fb),'table':_0x3fea0e[_0x1c8540(0x227)],'alias':_0x3fea0e[_0x1c8540(0x1f7)],'columns':_0x3fea0e[_0x1c8540(0x1f1)],'reason':_0x1c8540(0x20f)}),{'table':_0x3fea0e['table'],'alias':_0x3fea0e[_0x1c8540(0x1f7)],'columns':_0x3fea0e['columns'],'status':_0x1c8540(0x236),'candidateIndexes':_0x194fa};if(_0x64d778&&_0x64d778[_0x1c8540(0x22d)]!==![]&&_0x64d778[_0x1c8540(0x21a)][_0x1c8540(0x207)]>0x0&&_0x3fea0e[_0x1c8540(0x1f1)]['length']>0x0)return _0x469261['push']({'code':_0x1c8540(0x21e),'table':_0x3fea0e[_0x1c8540(0x227)],'alias':_0x3fea0e[_0x1c8540(0x1f7)],'columns':_0x3fea0e['columns'],'reason':'No\x20reported\x20index\x20contains\x20the\x20JOIN\x20access\x20columns.'}),{'table':_0x3fea0e['table'],'alias':_0x3fea0e[_0x1c8540(0x1f7)],'columns':_0x3fea0e[_0x1c8540(0x1f1)],'status':'warning'};return _0x469261['push']({'code':_0x1c8540(0x212),'table':_0x3fea0e[_0x1c8540(0x227)],'alias':_0x3fea0e[_0x1c8540(0x1f7)],'columns':_0x3fea0e['columns'],'reason':_0x64d778?_0x1c8540(0x205):_0x1c8540(0x21d)}),{'table':_0x3fea0e[_0x1c8540(0x227)],'alias':_0x3fea0e[_0x1c8540(0x1f7)],'columns':_0x3fea0e[_0x1c8540(0x1f1)],'status':_0x1c8540(0x22a)};});return{'checked':_0x260a2f['length']>0x0,'joins':_0x260a2f,'warnings':_0x469261};}function extractJoinFacts(_0x2ed657){const _0x3f9cdf=a209_0x495a,_0x25b728=maskNestedQueries(stripSqlNoise(_0x2ed657)),_0x21a741=maskQuotedIdentifiers(_0x25b728),_0x186d1f=[],_0x59151b=new Set(),_0x1e8d60=/\b(?:(INNER|LEFT|RIGHT|FULL)(?:\s+OUTER)?\s+)?JOIN\s+([`"\w$.]+)(?:\s+(?:AS\s+)?([`"\w$]+))?\s+ON\s+([\s\S]*?)(?=\s+(?:(?:(?:INNER|LEFT|RIGHT|FULL)(?:\s+OUTER)?\s+)?JOIN\b|(?:WHERE|GROUP\s+BY|ORDER\s+BY|HAVING|LIMIT|UNION)\b)|;|$)/gi;for(const _0x31acc7 of _0x25b728[_0x3f9cdf(0x238)](_0x1e8d60)){const _0x1ac3f9=_0x31acc7[_0x3f9cdf(0x204)]??0x0,_0x178be4=_0x31acc7[0x0][_0x3f9cdf(0x229)](/\bJOIN\b/i),_0xe8f7fa=_0x1ac3f9+Math[_0x3f9cdf(0x201)](0x0,_0x178be4);if(!/^JOIN\b/i['test'](_0x21a741[_0x3f9cdf(0x20e)](_0xe8f7fa)))continue;_0x59151b[_0x3f9cdf(0x224)](_0xe8f7fa);const _0x121cfa=normalizeIdentifier(_0x31acc7[0x1]||_0x3f9cdf(0x1f8)),_0x106c6a=normalizeIdentifier(_0x31acc7[0x2]??''),_0x293f60=normalizeIdentifier(_0x31acc7[0x3]||_0x106c6a['split']('.')['at'](-0x1)||_0x106c6a),_0xb69540=[],_0x31b55a=_0x106c6a===_0x3f9cdf(0x223);let _0x324278=_0x121cfa===_0x3f9cdf(0x209)||_0x121cfa===_0x3f9cdf(0x1f3)||_0x31b55a,_0xc4c3d6=_0x324278?_0x31b55a?_0x3f9cdf(0x20a):_0x121cfa[_0x3f9cdf(0x217)]()+_0x3f9cdf(0x1f0):undefined;const _0x2027e0=stripOuterParentheses(_0x31acc7[0x4]??'');hasTopLevelKeyword(_0x2027e0,'OR')&&(_0x324278=!![],_0xc4c3d6??=_0x3f9cdf(0x220));for(const _0x55489f of splitTopLevelAnd(_0x2027e0)){const _0x52c04b=stripOuterParentheses(_0x55489f);if(hasTopLevelKeyword(_0x52c04b,'OR')){_0x324278=!![],_0xc4c3d6??=_0x3f9cdf(0x220);continue;}const _0x2a5094=splitEquality(_0x52c04b);if(!_0x2a5094){containsColumnReference(_0x55489f,_0x293f60)&&(_0x324278=!![]);continue;}const _0x1d7db4=parseDirectColumnReference(_0x2a5094[0x0],_0x293f60),_0x4220a6=parseDirectColumnReference(_0x2a5094[0x1],_0x293f60),_0x1078de=containsColumnReference(_0x2a5094[0x0],_0x293f60),_0x48574f=containsColumnReference(_0x2a5094[0x1],_0x293f60),_0x3eb81a=_0x1d7db4&&!_0x48574f?_0x1d7db4:_0x4220a6&&!_0x1078de?_0x4220a6:null;if(_0x3eb81a&&!_0xb69540[_0x3f9cdf(0x203)](_0x3eb81a))_0xb69540['push'](_0x3eb81a);else!_0x3eb81a&&containsColumnReference(_0x55489f,_0x293f60)&&(_0x324278=!![]);}_0x186d1f[_0x3f9cdf(0x226)]({'table':_0x106c6a,'alias':_0x293f60,'columns':_0xb69540,'unsupportedPredicate':_0x324278,'unsupportedReason':_0xc4c3d6,'position':_0xe8f7fa});}for(const _0x53a534 of _0x21a741['matchAll'](/\bJOIN\b/gi)){const _0xd77f7a=_0x53a534[_0x3f9cdf(0x204)]??0x0;if(_0x59151b[_0x3f9cdf(0x202)](_0xd77f7a))continue;const _0x3946e8=/^\s+([`"\w$.]+)(?:\s+(?:AS\s+)?([`"\w$]+))?/[_0x3f9cdf(0x200)](_0x25b728[_0x3f9cdf(0x20e)](_0xd77f7a+_0x53a534[0x0]['length'])),_0x4de1d6=normalizeIdentifier(_0x3946e8?.[0x1]||'unknown'),_0x4dfa51=normalizeIdentifier(_0x3946e8?.[0x2]||''),_0x4d078c=isSqlClauseKeyword(_0x4dfa51)?_0x4de1d6['split']('.')['at'](-0x1)||_0x4de1d6:_0x4dfa51||_0x4de1d6[_0x3f9cdf(0x21c)]('.')['at'](-0x1)||_0x4de1d6;_0x186d1f['push']({'table':_0x4de1d6,'alias':_0x4d078c,'columns':[],'unsupportedPredicate':!![],'unsupportedReason':'Only\x20explicit\x20table\x20JOIN\x20clauses\x20with\x20an\x20ON\x20predicate\x20are\x20supported.','position':_0xd77f7a});}return _0x186d1f['sort']((_0x1f86f6,_0x51cc60)=>_0x1f86f6[_0x3f9cdf(0x234)]-_0x51cc60['position']);}function stripSqlNoise(_0x2d4b4e){const _0x51a54f=a209_0x495a,_0x20be18=Array[_0x51a54f(0x206)](_0x2d4b4e),_0x554773=(_0x8cdb2,_0x4acbc2)=>{for(let _0x3cf307=_0x8cdb2;_0x3cf307<_0x4acbc2;_0x3cf307+=0x1){_0x20be18[_0x3cf307]!=='\x0a'&&_0x20be18[_0x3cf307]!=='\x0d'&&(_0x20be18[_0x3cf307]='\x20');}};for(let _0x45c8bd=0x0;_0x45c8bd<_0x20be18[_0x51a54f(0x207)];_0x45c8bd+=0x1){const _0x1eb763=_0x20be18[_0x45c8bd],_0x44f246=_0x20be18[_0x45c8bd+0x1];if(_0x1eb763==='\x27'||_0x1eb763==='\x22'||_0x1eb763==='`'){const _0x57a832=_0x1eb763,_0x10acaa=_0x45c8bd;_0x45c8bd+=0x1;while(_0x45c8bd<_0x20be18[_0x51a54f(0x207)]){if(_0x20be18[_0x45c8bd]==='\x5c'&&_0x45c8bd+0x1<_0x20be18['length']){_0x45c8bd+=0x2;continue;}if(_0x20be18[_0x45c8bd]!==_0x57a832){_0x45c8bd+=0x1;continue;}if(_0x20be18[_0x45c8bd+0x1]===_0x57a832){_0x45c8bd+=0x2;continue;}break;}if(_0x57a832==='\x27')_0x554773(_0x10acaa,Math[_0x51a54f(0x1f5)](_0x45c8bd+0x1,_0x20be18[_0x51a54f(0x207)]));continue;}if(_0x1eb763==='-'&&_0x44f246==='-'){const _0x5e1d47=_0x45c8bd;while(_0x45c8bd<_0x20be18[_0x51a54f(0x207)]&&_0x20be18[_0x45c8bd]!=='\x0a')_0x45c8bd+=0x1;_0x554773(_0x5e1d47,_0x45c8bd);continue;}if(_0x1eb763==='/'&&_0x44f246==='*'){const _0x5d82e4=_0x45c8bd;_0x45c8bd+=0x2;while(_0x45c8bd<_0x20be18[_0x51a54f(0x207)]&&!(_0x20be18[_0x45c8bd]==='*'&&_0x20be18[_0x45c8bd+0x1]==='/')){_0x45c8bd+=0x1;}_0x45c8bd=Math['min'](_0x45c8bd+0x1,_0x20be18[_0x51a54f(0x207)]-0x1),_0x554773(_0x5d82e4,_0x45c8bd+0x1);continue;}if(_0x1eb763==='#'&&_0x44f246!=='{'){const _0x1fca04=_0x45c8bd;while(_0x45c8bd<_0x20be18[_0x51a54f(0x207)]&&_0x20be18[_0x45c8bd]!=='\x0a')_0x45c8bd+=0x1;_0x554773(_0x1fca04,_0x45c8bd);continue;}if((_0x1eb763==='#'||_0x1eb763==='$')&&_0x44f246==='{'){const _0x2fe201=_0x45c8bd;_0x45c8bd+=0x2;while(_0x45c8bd<_0x20be18[_0x51a54f(0x207)]&&_0x20be18[_0x45c8bd]!=='}')_0x45c8bd+=0x1;_0x554773(_0x2fe201,Math[_0x51a54f(0x1f5)](_0x45c8bd+0x1,_0x20be18['length']));}}return _0x20be18[_0x51a54f(0x1fd)]('');}function maskQuotedIdentifiers(_0x386512){const _0x459847=a209_0x495a,_0x29dc86=Array['from'](_0x386512);for(let _0x34da74=0x0;_0x34da74<_0x29dc86['length'];_0x34da74+=0x1){const _0x4d2509=_0x29dc86[_0x34da74];if(_0x4d2509!=='\x22'&&_0x4d2509!=='`')continue;_0x34da74+=0x1;while(_0x34da74<_0x29dc86[_0x459847(0x207)]){if(_0x29dc86[_0x34da74]===_0x4d2509){if(_0x29dc86[_0x34da74+0x1]===_0x4d2509){_0x29dc86[_0x34da74]='\x20',_0x29dc86[_0x34da74+0x1]='\x20',_0x34da74+=0x2;continue;}break;}_0x29dc86[_0x34da74]='\x20',_0x34da74+=0x1;}}return _0x29dc86['join']('');}function maskNestedQueries(_0x36b731){const _0x1919d4=a209_0x495a,_0x5c9b7b=Array['from'](_0x36b731);for(let _0x40640a=0x0;_0x40640a<_0x5c9b7b['length'];_0x40640a+=0x1){if(_0x5c9b7b[_0x40640a]!=='(')continue;const _0x523c47=_0x36b731[_0x1919d4(0x20e)](_0x40640a+0x1);if(!/^\s*(?:SELECT|WITH)\b/i[_0x1919d4(0x21f)](_0x523c47))continue;let _0x1acb95=0x1,_0x541a96=_0x40640a+0x1;for(;_0x541a96<_0x5c9b7b[_0x1919d4(0x207)]&&_0x1acb95>0x0;_0x541a96+=0x1){if(_0x5c9b7b[_0x541a96]==='(')_0x1acb95+=0x1;if(_0x5c9b7b[_0x541a96]===')')_0x1acb95-=0x1;}if(_0x1acb95!==0x0)continue;for(let _0x1fb856=_0x40640a;_0x1fb856<_0x541a96;_0x1fb856+=0x1){_0x5c9b7b[_0x1fb856]='\x20';}const _0xa11e55=_0x1919d4(0x223);for(let _0x13e1c0=0x0;_0x13e1c0<_0xa11e55[_0x1919d4(0x207)]&&_0x40640a+_0x13e1c0<_0x541a96;_0x13e1c0+=0x1){_0x5c9b7b[_0x40640a+_0x13e1c0]=_0xa11e55[_0x13e1c0];}_0x40640a=_0x541a96-0x1;}return _0x5c9b7b[_0x1919d4(0x1fd)]('');}function splitTopLevelAnd(_0x26f845){const _0x1fa1e6=a209_0x495a,_0x86d04e=[];let _0x4adf26=0x0,_0x14e93e=0x0;for(let _0x6d468f=0x0;_0x6d468f<_0x26f845[_0x1fa1e6(0x207)];_0x6d468f+=0x1){const _0x836d21=_0x26f845[_0x6d468f];if(_0x836d21==='(')_0x4adf26+=0x1;if(_0x836d21===')')_0x4adf26=Math[_0x1fa1e6(0x201)](0x0,_0x4adf26-0x1);_0x4adf26===0x0&&_0x26f845[_0x1fa1e6(0x20e)](_0x6d468f)[_0x1fa1e6(0x239)](/^AND\b/i)&&(_0x6d468f===0x0||/\s/[_0x1fa1e6(0x21f)](_0x26f845[_0x6d468f-0x1]??''))&&(_0x86d04e[_0x1fa1e6(0x226)](_0x26f845[_0x1fa1e6(0x20e)](_0x14e93e,_0x6d468f)[_0x1fa1e6(0x22c)]()),_0x6d468f+=0x2,_0x14e93e=_0x6d468f+0x1);}const _0x2bd7a6=_0x26f845['slice'](_0x14e93e)[_0x1fa1e6(0x22c)]();if(_0x2bd7a6)_0x86d04e[_0x1fa1e6(0x226)](_0x2bd7a6);return _0x86d04e;}function hasTopLevelKeyword(_0x1ce3a8,_0x49d8ad){const _0x3112c1=a209_0x495a;let _0x4f6649=0x0;for(let _0x24c4f6=0x0;_0x24c4f6<_0x1ce3a8[_0x3112c1(0x207)];_0x24c4f6+=0x1){const _0x150a69=_0x1ce3a8[_0x24c4f6];if(_0x150a69==='(')_0x4f6649+=0x1;if(_0x150a69===')')_0x4f6649=Math['max'](0x0,_0x4f6649-0x1);if(_0x4f6649!==0x0)continue;const _0x2e08f2=_0x1ce3a8[_0x3112c1(0x20e)](_0x24c4f6,_0x24c4f6+_0x49d8ad[_0x3112c1(0x207)]),_0x4fb924=_0x1ce3a8[_0x24c4f6-0x1]??'\x20',_0x53785c=_0x1ce3a8[_0x24c4f6+_0x49d8ad[_0x3112c1(0x207)]]??'\x20';if(_0x2e08f2[_0x3112c1(0x217)]()===_0x49d8ad[_0x3112c1(0x217)]()&&!/[\w$]/[_0x3112c1(0x21f)](_0x4fb924)&&!/[\w$]/[_0x3112c1(0x21f)](_0x53785c))return!![];}return![];}function splitEquality(_0x8fed3d){const _0x43d256=a209_0x495a,_0x1872a4=stripOuterParentheses(_0x8fed3d);let _0x119c57=0x0,_0x59fa1f;for(let _0x402c99=0x0;_0x402c99<_0x1872a4[_0x43d256(0x207)];_0x402c99+=0x1){const _0x4e31e8=_0x1872a4[_0x402c99];if(_0x4e31e8==='(')_0x119c57+=0x1;if(_0x4e31e8===')')_0x119c57=Math[_0x43d256(0x201)](0x0,_0x119c57-0x1);const _0x44ca01=_0x1872a4[_0x402c99-0x1]??'',_0xfbe2c6=_0x1872a4[_0x402c99+0x1]??'';if(_0x4e31e8==='='&&_0x119c57===0x0&&!/[!<>=:]/[_0x43d256(0x21f)](_0x44ca01)&&_0xfbe2c6!=='='){if(_0x59fa1f!==undefined)return null;_0x59fa1f=_0x402c99;}}return _0x59fa1f===undefined?null:[_0x1872a4[_0x43d256(0x20e)](0x0,_0x59fa1f)[_0x43d256(0x22c)](),_0x1872a4[_0x43d256(0x20e)](_0x59fa1f+0x1)[_0x43d256(0x22c)]()];}function parseDirectColumnReference(_0x281028,_0x5cc82f){const _0x5a1b8a=a209_0x495a,_0x1936ac=/^([`"]?[\w$]+[`"]?)\s*\.\s*([`"]?[\w$]+[`"]?)$/[_0x5a1b8a(0x200)](stripOuterParentheses(_0x281028));if(!_0x1936ac)return null;if(normalizeIdentifier(_0x1936ac[0x1]??'')!==normalizeIdentifier(_0x5cc82f))return null;return normalizeIdentifier(_0x1936ac[0x2]??'');}function containsColumnReference(_0x35f186,_0x3596c7){const _0x5e86f4=a209_0x495a,_0x55924c=_0x35f186[_0x5e86f4(0x1fc)](/[`"]/g,''),_0x427832=_0x3596c7[_0x5e86f4(0x1fc)](/[.*+?^${}()|[\]\\]/g,_0x5e86f4(0x1fe));return new RegExp(_0x5e86f4(0x1f4)+_0x427832+_0x5e86f4(0x232),'i')[_0x5e86f4(0x21f)](_0x55924c);}function findEqualityPrefix(_0x4c626d,_0x2d455c){const _0x337f7c=a209_0x495a,_0x560727=new Set(_0x2d455c[_0x337f7c(0x237)](normalizeIdentifier)),_0x333eed=[];for(const _0x35ba61 of _0x4c626d){if(!_0x560727['has'](normalizeIdentifier(_0x35ba61)))break;_0x333eed['push'](_0x35ba61);}return _0x333eed;}function resolveTableMetadata(_0x680c8,_0xd89447){const _0x2bf5ec=a209_0x495a,_0x2eef90=normalizeIdentifier(_0xd89447),_0xa62be8=_0x680c8[_0x2bf5ec(0x208)](_0x409f60=>normalizeIdentifier(_0x409f60[_0x2bf5ec(0x1f9)])===_0x2eef90);if(_0xa62be8[_0x2bf5ec(0x207)]===0x1)return _0xa62be8[0x0];const _0x54fb81=_0x2eef90[_0x2bf5ec(0x203)]('.'),_0x7d49fd=_0x2eef90[_0x2bf5ec(0x21c)]('.')['at'](-0x1),_0x22eb38=_0x680c8[_0x2bf5ec(0x208)](_0x1aeb0a=>{const _0x1a48f6=_0x2bf5ec,_0x53c1ae=normalizeIdentifier(_0x1aeb0a[_0x1a48f6(0x1f9)]);if(_0x54fb81&&_0x53c1ae['includes']('.'))return![];return _0x53c1ae[_0x1a48f6(0x21c)]('.')['at'](-0x1)===_0x7d49fd;});return _0x22eb38[_0x2bf5ec(0x207)]===0x1?_0x22eb38[0x0]:undefined;}function columnNamesMatch(_0x8f06a0,_0x3937ce){return normalizeIdentifier(_0x8f06a0)===normalizeIdentifier(_0x3937ce);}function a209_0xf03a(){const _0x4c160b=['from','length','filter','right','Derived-table\x20JOIN\x20targets\x20are\x20not\x20supported.','151712XuLIGy','matchedPrefix','reduce','slice','Relevant\x20columns\x20do\x20not\x20form\x20a\x20complete\x20leftmost\x20index\x20prefix.','1639098uodReL','6cFOYjG','INDEX_METADATA_UNAVAILABLE','covered','using','left','startsWith','toUpperCase','Not\x20every\x20JOIN\x20target\x20predicate\x20could\x20be\x20audited\x20safely.','40234LsPSjq','indexes','50EOOKnR','split','No\x20dataset\x20metadata\x20matched\x20the\x20JOIN\x20table.','JOIN_INDEX_MISSING','test','OR-connected\x20JOIN\x20predicates\x20are\x20not\x20supported.','292985WhfBWW','toLowerCase','__sq__','add','inner','push','table','568hDouNH','search','unavailable','unsupportedReason','trim','metadataAvailable','natural','unsupportedPredicate','14OZHpwf','752065cudtSl','\x5cs*\x5c.\x5cs*[\x5cw$]+','some','position','JOIN_PREDICATE_UNSUPPORTED','warning','map','matchAll','match','\x20JOIN\x20direction\x20is\x20not\x20supported\x20by\x20static\x20index\x20auditing.','columns','cross','full','(?:^|[^\x5cw$])','min','endsWith','alias','INNER','tableName','2532klYtXi','JOIN_INDEX_NOT_USABLE','replace','join','\x5c$&','197838jNddAB','exec','max','has','includes','index','The\x20dataset\x20returned\x20no\x20distinguishable\x20index\x20metadata.'];a209_0xf03a=function(){return _0x4c160b;};return a209_0xf03a();}function a209_0x495a(_0x3f8dc4,_0x18c42d){_0x3f8dc4=_0x3f8dc4-0x1f0;const _0xf03a35=a209_0xf03a();let _0x495a5b=_0xf03a35[_0x3f8dc4];return _0x495a5b;}function normalizeIdentifier(_0x519371){const _0x923bb=a209_0x495a;return _0x519371[_0x923bb(0x1fc)](/[`"]/g,'')[_0x923bb(0x22c)]()[_0x923bb(0x222)]();}function isSqlClauseKeyword(_0x25481e){const _0x2c6eaf=a209_0x495a;return new Set(['on',_0x2c6eaf(0x214),'where',_0x2c6eaf(0x1fd),_0x2c6eaf(0x225),_0x2c6eaf(0x215),_0x2c6eaf(0x209),_0x2c6eaf(0x1f3),_0x2c6eaf(0x1f2),_0x2c6eaf(0x22e)])['has'](_0x25481e);}function stripOuterParentheses(_0x53e9da){const _0x47d3c5=a209_0x495a;let _0x10b6b8=_0x53e9da['trim']();while(_0x10b6b8[_0x47d3c5(0x216)]('(')&&_0x10b6b8[_0x47d3c5(0x1f6)](')')){let _0x1c2eec=0x0,_0x75ae7=!![];for(let _0x5c53e5=0x0;_0x5c53e5<_0x10b6b8[_0x47d3c5(0x207)];_0x5c53e5+=0x1){if(_0x10b6b8[_0x5c53e5]==='(')_0x1c2eec+=0x1;if(_0x10b6b8[_0x5c53e5]===')')_0x1c2eec-=0x1;if(_0x1c2eec===0x0&&_0x5c53e5<_0x10b6b8['length']-0x1){_0x75ae7=![];break;}}if(!_0x75ae7||_0x1c2eec!==0x0)break;_0x10b6b8=_0x10b6b8[_0x47d3c5(0x20e)](0x1,-0x1)[_0x47d3c5(0x22c)]();}return _0x10b6b8;}
1
+ (function(_0xde0f1a,_0x4df5d7){const _0x40987b=a209_0x1db5,_0x2f7e99=_0xde0f1a();while(!![]){try{const _0x45dee1=parseInt(_0x40987b(0x176))/0x1*(-parseInt(_0x40987b(0x14a))/0x2)+parseInt(_0x40987b(0x15c))/0x3*(parseInt(_0x40987b(0x14c))/0x4)+-parseInt(_0x40987b(0x146))/0x5+-parseInt(_0x40987b(0x168))/0x6+parseInt(_0x40987b(0x188))/0x7+parseInt(_0x40987b(0x159))/0x8*(parseInt(_0x40987b(0x177))/0x9)+-parseInt(_0x40987b(0x185))/0xa*(parseInt(_0x40987b(0x165))/0xb);if(_0x45dee1===_0x4df5d7)break;else _0x2f7e99['push'](_0x2f7e99['shift']());}catch(_0x4a636b){_0x2f7e99['push'](_0x2f7e99['shift']());}}}(a209_0xd5fd,0x48f50));export function auditSqlJoinIndexes(_0x1e9a28,_0x4767c5){const _0x4bd20e=a209_0x1db5,_0x3f1fcb=[],_0x53c3a0=extractJoinFacts(_0x1e9a28)['map'](_0x537796=>{const _0x23b3e5=a209_0x1db5;if(_0x537796[_0x23b3e5(0x162)]||_0x537796['columns'][_0x23b3e5(0x179)]===0x0)return _0x3f1fcb[_0x23b3e5(0x145)]({'code':_0x23b3e5(0x151),'table':_0x537796[_0x23b3e5(0x172)],'alias':_0x537796[_0x23b3e5(0x171)],'columns':_0x537796[_0x23b3e5(0x144)],'reason':_0x537796[_0x23b3e5(0x184)]??'Not\x20every\x20JOIN\x20target\x20predicate\x20could\x20be\x20audited\x20safely.'}),{'table':_0x537796[_0x23b3e5(0x172)],'alias':_0x537796[_0x23b3e5(0x171)],'columns':_0x537796[_0x23b3e5(0x144)],'status':'unavailable'};const _0x17c3cf=resolveTableMetadata(_0x4767c5,_0x537796[_0x23b3e5(0x172)]),_0x267c07=(_0x17c3cf?.[_0x23b3e5(0x157)]??[])[_0x23b3e5(0x17c)](_0x1adbde=>({'index':_0x1adbde,'matchedPrefix':findEqualityPrefix(_0x1adbde[_0x23b3e5(0x144)],_0x537796[_0x23b3e5(0x144)])}))[_0x23b3e5(0x183)](_0x219711=>_0x219711[_0x23b3e5(0x186)][_0x23b3e5(0x179)]>0x0),_0x27fb44=_0x267c07[_0x23b3e5(0x147)]((_0x1144d4,_0x4baaba)=>!_0x1144d4||_0x4baaba[_0x23b3e5(0x186)]['length']>_0x1144d4[_0x23b3e5(0x186)][_0x23b3e5(0x179)]?_0x4baaba:_0x1144d4,_0x267c07[0x0]);if(_0x27fb44)return{'table':_0x537796['table'],'alias':_0x537796[_0x23b3e5(0x171)],'columns':_0x537796[_0x23b3e5(0x144)],'status':'covered','matchedIndex':{..._0x27fb44['index'],'matchedPrefix':_0x27fb44[_0x23b3e5(0x186)]}};const _0x87ac3c=_0x17c3cf?.[_0x23b3e5(0x157)]['filter'](_0xe77cb8=>_0xe77cb8[_0x23b3e5(0x144)][_0x23b3e5(0x17d)](_0x34472d=>_0x537796['columns'][_0x23b3e5(0x17d)](_0x1a2f8d=>columnNamesMatch(_0x34472d,_0x1a2f8d))))??[];if(_0x87ac3c['length']>0x0)return _0x3f1fcb[_0x23b3e5(0x145)]({'code':_0x23b3e5(0x14b),'table':_0x537796[_0x23b3e5(0x172)],'alias':_0x537796[_0x23b3e5(0x171)],'columns':_0x537796[_0x23b3e5(0x144)],'reason':'Relevant\x20columns\x20do\x20not\x20form\x20a\x20complete\x20leftmost\x20index\x20prefix.'}),{'table':_0x537796['table'],'alias':_0x537796[_0x23b3e5(0x171)],'columns':_0x537796[_0x23b3e5(0x144)],'status':'warning','candidateIndexes':_0x87ac3c};if(_0x17c3cf&&_0x17c3cf[_0x23b3e5(0x16a)]!==![]&&_0x17c3cf[_0x23b3e5(0x157)][_0x23b3e5(0x179)]>0x0&&_0x537796['columns'][_0x23b3e5(0x179)]>0x0)return _0x3f1fcb[_0x23b3e5(0x145)]({'code':_0x23b3e5(0x167),'table':_0x537796[_0x23b3e5(0x172)],'alias':_0x537796['alias'],'columns':_0x537796[_0x23b3e5(0x144)],'reason':'No\x20reported\x20index\x20contains\x20the\x20JOIN\x20access\x20columns.'}),{'table':_0x537796[_0x23b3e5(0x172)],'alias':_0x537796[_0x23b3e5(0x171)],'columns':_0x537796[_0x23b3e5(0x144)],'status':_0x23b3e5(0x16e)};return _0x3f1fcb[_0x23b3e5(0x145)]({'code':_0x23b3e5(0x164),'table':_0x537796[_0x23b3e5(0x172)],'alias':_0x537796[_0x23b3e5(0x171)],'columns':_0x537796[_0x23b3e5(0x144)],'reason':_0x17c3cf?_0x23b3e5(0x161):_0x23b3e5(0x16d)}),{'table':_0x537796['table'],'alias':_0x537796['alias'],'columns':_0x537796[_0x23b3e5(0x144)],'status':'unavailable'};});return{'checked':_0x53c3a0[_0x4bd20e(0x179)]>0x0,'joins':_0x53c3a0,'warnings':_0x3f1fcb};}function extractJoinFacts(_0x1911c2){const _0x546ff5=a209_0x1db5,_0x4cedac=maskNestedQueries(stripSqlNoise(_0x1911c2)),_0x2e66ed=maskQuotedIdentifiers(_0x4cedac),_0x33a310=[],_0x5c339a=new Set(),_0x4ffd19=/\b(?:(INNER|LEFT|RIGHT|FULL)(?:\s+OUTER)?\s+)?JOIN\s+([`"\w$.]+)(?:\s+(?:AS\s+)?([`"\w$]+))?\s+ON\s+([\s\S]*?)(?=\s+(?:(?:(?:INNER|LEFT|RIGHT|FULL)(?:\s+OUTER)?\s+)?JOIN\b|(?:WHERE|GROUP\s+BY|ORDER\s+BY|HAVING|LIMIT|UNION)\b)|;|$)/gi;for(const _0x3698d0 of _0x4cedac[_0x546ff5(0x17f)](_0x4ffd19)){const _0x3d8874=_0x3698d0[_0x546ff5(0x158)]??0x0,_0x4da4b2=_0x3698d0[0x0][_0x546ff5(0x17e)](/\bJOIN\b/i),_0x42190a=_0x3d8874+Math[_0x546ff5(0x17b)](0x0,_0x4da4b2);if(!/^JOIN\b/i[_0x546ff5(0x149)](_0x2e66ed['slice'](_0x42190a)))continue;_0x5c339a[_0x546ff5(0x15f)](_0x42190a);const _0x125f58=normalizeIdentifier(_0x3698d0[0x1]||'INNER'),_0x1d70dc=normalizeIdentifier(_0x3698d0[0x2]??''),_0x236373=normalizeIdentifier(_0x3698d0[0x3]||_0x1d70dc['split']('.')['at'](-0x1)||_0x1d70dc),_0x1fdd63=[],_0x422360=_0x1d70dc===_0x546ff5(0x175);let _0x1e54a3=_0x125f58===_0x546ff5(0x15b)||_0x125f58===_0x546ff5(0x154)||_0x422360,_0x46d55a=_0x1e54a3?_0x422360?_0x546ff5(0x14f):_0x125f58['toUpperCase']()+_0x546ff5(0x173):undefined;const _0x2c6cc6=stripOuterParentheses(_0x3698d0[0x4]??'');hasTopLevelKeyword(_0x2c6cc6,'OR')&&(_0x1e54a3=!![],_0x46d55a??='OR-connected\x20JOIN\x20predicates\x20are\x20not\x20supported.');for(const _0x57ae5f of splitTopLevelAnd(_0x2c6cc6)){const _0x3d1b97=stripOuterParentheses(_0x57ae5f);if(hasTopLevelKeyword(_0x3d1b97,'OR')){_0x1e54a3=!![],_0x46d55a??=_0x546ff5(0x153);continue;}const _0x46e608=splitEquality(_0x3d1b97);if(!_0x46e608){containsColumnReference(_0x57ae5f,_0x236373)&&(_0x1e54a3=!![]);continue;}const _0x21043a=parseDirectColumnReference(_0x46e608[0x0],_0x236373),_0x1d1efd=parseDirectColumnReference(_0x46e608[0x1],_0x236373),_0x119a2c=containsColumnReference(_0x46e608[0x0],_0x236373),_0x299064=containsColumnReference(_0x46e608[0x1],_0x236373),_0x142c80=_0x21043a&&!_0x299064?_0x21043a:_0x1d1efd&&!_0x119a2c?_0x1d1efd:null;if(_0x142c80&&!_0x1fdd63[_0x546ff5(0x16b)](_0x142c80))_0x1fdd63[_0x546ff5(0x145)](_0x142c80);else!_0x142c80&&containsColumnReference(_0x57ae5f,_0x236373)&&(_0x1e54a3=!![]);}_0x33a310[_0x546ff5(0x145)]({'table':_0x1d70dc,'alias':_0x236373,'columns':_0x1fdd63,'unsupportedPredicate':_0x1e54a3,'unsupportedReason':_0x46d55a,'position':_0x42190a});}for(const _0x2447a8 of _0x2e66ed[_0x546ff5(0x17f)](/\bJOIN\b/gi)){const _0x27f736=_0x2447a8[_0x546ff5(0x158)]??0x0;if(_0x5c339a[_0x546ff5(0x152)](_0x27f736))continue;const _0x43b52f=/^\s+([`"\w$.]+)(?:\s+(?:AS\s+)?([`"\w$]+))?/[_0x546ff5(0x148)](_0x4cedac[_0x546ff5(0x182)](_0x27f736+_0x2447a8[0x0][_0x546ff5(0x179)])),_0x35caba=normalizeIdentifier(_0x43b52f?.[0x1]||_0x546ff5(0x160)),_0xabad15=normalizeIdentifier(_0x43b52f?.[0x2]||''),_0x593402=isSqlClauseKeyword(_0xabad15)?_0x35caba[_0x546ff5(0x155)]('.')['at'](-0x1)||_0x35caba:_0xabad15||_0x35caba[_0x546ff5(0x155)]('.')['at'](-0x1)||_0x35caba;_0x33a310[_0x546ff5(0x145)]({'table':_0x35caba,'alias':_0x593402,'columns':[],'unsupportedPredicate':!![],'unsupportedReason':_0x546ff5(0x178),'position':_0x27f736});}return _0x33a310[_0x546ff5(0x15d)]((_0x37bb61,_0x2457ba)=>_0x37bb61['position']-_0x2457ba[_0x546ff5(0x187)]);}function stripSqlNoise(_0x1cf98e){const _0x396d8b=a209_0x1db5,_0x22b3ab=Array[_0x396d8b(0x17a)](_0x1cf98e),_0x3784d1=(_0x18a14e,_0xbaf859)=>{for(let _0x522372=_0x18a14e;_0x522372<_0xbaf859;_0x522372+=0x1){_0x22b3ab[_0x522372]!=='\x0a'&&_0x22b3ab[_0x522372]!=='\x0d'&&(_0x22b3ab[_0x522372]='\x20');}};for(let _0x3194a3=0x0;_0x3194a3<_0x22b3ab[_0x396d8b(0x179)];_0x3194a3+=0x1){const _0x43a5e9=_0x22b3ab[_0x3194a3],_0x400fca=_0x22b3ab[_0x3194a3+0x1];if(_0x43a5e9==='\x27'||_0x43a5e9==='\x22'||_0x43a5e9==='`'){const _0x30c712=_0x43a5e9,_0x260ce2=_0x3194a3;_0x3194a3+=0x1;while(_0x3194a3<_0x22b3ab[_0x396d8b(0x179)]){if(_0x22b3ab[_0x3194a3]==='\x5c'&&_0x3194a3+0x1<_0x22b3ab[_0x396d8b(0x179)]){_0x3194a3+=0x2;continue;}if(_0x22b3ab[_0x3194a3]!==_0x30c712){_0x3194a3+=0x1;continue;}if(_0x22b3ab[_0x3194a3+0x1]===_0x30c712){_0x3194a3+=0x2;continue;}break;}if(_0x30c712==='\x27')_0x3784d1(_0x260ce2,Math['min'](_0x3194a3+0x1,_0x22b3ab[_0x396d8b(0x179)]));continue;}if(_0x43a5e9==='-'&&_0x400fca==='-'){const _0x5797c7=_0x3194a3;while(_0x3194a3<_0x22b3ab[_0x396d8b(0x179)]&&_0x22b3ab[_0x3194a3]!=='\x0a')_0x3194a3+=0x1;_0x3784d1(_0x5797c7,_0x3194a3);continue;}if(_0x43a5e9==='/'&&_0x400fca==='*'){const _0x3802da=_0x3194a3;_0x3194a3+=0x2;while(_0x3194a3<_0x22b3ab[_0x396d8b(0x179)]&&!(_0x22b3ab[_0x3194a3]==='*'&&_0x22b3ab[_0x3194a3+0x1]==='/')){_0x3194a3+=0x1;}_0x3194a3=Math[_0x396d8b(0x181)](_0x3194a3+0x1,_0x22b3ab[_0x396d8b(0x179)]-0x1),_0x3784d1(_0x3802da,_0x3194a3+0x1);continue;}if(_0x43a5e9==='#'&&_0x400fca!=='{'){const _0x5785ff=_0x3194a3;while(_0x3194a3<_0x22b3ab[_0x396d8b(0x179)]&&_0x22b3ab[_0x3194a3]!=='\x0a')_0x3194a3+=0x1;_0x3784d1(_0x5785ff,_0x3194a3);continue;}if((_0x43a5e9==='#'||_0x43a5e9==='$')&&_0x400fca==='{'){const _0x2e3c15=_0x3194a3;_0x3194a3+=0x2;while(_0x3194a3<_0x22b3ab[_0x396d8b(0x179)]&&_0x22b3ab[_0x3194a3]!=='}')_0x3194a3+=0x1;_0x3784d1(_0x2e3c15,Math[_0x396d8b(0x181)](_0x3194a3+0x1,_0x22b3ab[_0x396d8b(0x179)]));}}return _0x22b3ab['join']('');}function maskQuotedIdentifiers(_0x135a92){const _0x50cc60=a209_0x1db5,_0x1a1680=Array['from'](_0x135a92);for(let _0x342d10=0x0;_0x342d10<_0x1a1680[_0x50cc60(0x179)];_0x342d10+=0x1){const _0x286ac3=_0x1a1680[_0x342d10];if(_0x286ac3!=='\x22'&&_0x286ac3!=='`')continue;_0x342d10+=0x1;while(_0x342d10<_0x1a1680[_0x50cc60(0x179)]){if(_0x1a1680[_0x342d10]===_0x286ac3){if(_0x1a1680[_0x342d10+0x1]===_0x286ac3){_0x1a1680[_0x342d10]='\x20',_0x1a1680[_0x342d10+0x1]='\x20',_0x342d10+=0x2;continue;}break;}_0x1a1680[_0x342d10]='\x20',_0x342d10+=0x1;}}return _0x1a1680['join']('');}function maskNestedQueries(_0x13082c){const _0x3656c7=a209_0x1db5,_0x29ee68=Array['from'](_0x13082c);for(let _0x3ace86=0x0;_0x3ace86<_0x29ee68[_0x3656c7(0x179)];_0x3ace86+=0x1){if(_0x29ee68[_0x3ace86]!=='(')continue;const _0x419627=_0x13082c['slice'](_0x3ace86+0x1);if(!/^\s*(?:SELECT|WITH)\b/i[_0x3656c7(0x149)](_0x419627))continue;let _0x3af3f1=0x1,_0x105f88=_0x3ace86+0x1;for(;_0x105f88<_0x29ee68['length']&&_0x3af3f1>0x0;_0x105f88+=0x1){if(_0x29ee68[_0x105f88]==='(')_0x3af3f1+=0x1;if(_0x29ee68[_0x105f88]===')')_0x3af3f1-=0x1;}if(_0x3af3f1!==0x0)continue;for(let _0x140638=_0x3ace86;_0x140638<_0x105f88;_0x140638+=0x1){_0x29ee68[_0x140638]='\x20';}const _0x505308=_0x3656c7(0x175);for(let _0x54b790=0x0;_0x54b790<_0x505308[_0x3656c7(0x179)]&&_0x3ace86+_0x54b790<_0x105f88;_0x54b790+=0x1){_0x29ee68[_0x3ace86+_0x54b790]=_0x505308[_0x54b790];}_0x3ace86=_0x105f88-0x1;}return _0x29ee68[_0x3656c7(0x14d)]('');}function splitTopLevelAnd(_0x4a3035){const _0x5f07c7=a209_0x1db5,_0x38bfdd=[];let _0x5bba7c=0x0,_0x3a0ad5=0x0;for(let _0x3d98cb=0x0;_0x3d98cb<_0x4a3035['length'];_0x3d98cb+=0x1){const _0x2b5f8b=_0x4a3035[_0x3d98cb];if(_0x2b5f8b==='(')_0x5bba7c+=0x1;if(_0x2b5f8b===')')_0x5bba7c=Math[_0x5f07c7(0x17b)](0x0,_0x5bba7c-0x1);_0x5bba7c===0x0&&_0x4a3035[_0x5f07c7(0x182)](_0x3d98cb)[_0x5f07c7(0x14e)](/^AND\b/i)&&(_0x3d98cb===0x0||/\s/['test'](_0x4a3035[_0x3d98cb-0x1]??''))&&(_0x38bfdd[_0x5f07c7(0x145)](_0x4a3035[_0x5f07c7(0x182)](_0x3a0ad5,_0x3d98cb)['trim']()),_0x3d98cb+=0x2,_0x3a0ad5=_0x3d98cb+0x1);}const _0x599fae=_0x4a3035[_0x5f07c7(0x182)](_0x3a0ad5)[_0x5f07c7(0x16f)]();if(_0x599fae)_0x38bfdd[_0x5f07c7(0x145)](_0x599fae);return _0x38bfdd;}function a209_0xd5fd(){const _0x1ba770=['right','189951yqQnsK','sort','\x5cs*\x5c.\x5cs*[\x5cw$]+','add','unknown','The\x20dataset\x20returned\x20no\x20distinguishable\x20index\x20metadata.','unsupportedPredicate','replace','INDEX_METADATA_UNAVAILABLE','3941003SHHvOb','toLowerCase','JOIN_INDEX_MISSING','1786308NSFYlq','startsWith','metadataAvailable','includes','using','No\x20dataset\x20metadata\x20matched\x20the\x20JOIN\x20table.','warning','trim','where','alias','table','\x20JOIN\x20direction\x20is\x20not\x20supported\x20by\x20static\x20index\x20auditing.','(?:^|[^\x5cw$])','__sq__','23788fifuWE','1936773mVvdQy','Only\x20explicit\x20table\x20JOIN\x20clauses\x20with\x20an\x20ON\x20predicate\x20are\x20supported.','length','from','max','map','some','search','matchAll','toUpperCase','min','slice','filter','unsupportedReason','10EWrVOQ','matchedPrefix','position','2798572dpZTYX','columns','push','165650JWlFNI','reduce','exec','test','24WhfpVi','JOIN_INDEX_NOT_USABLE','28niEcuj','join','match','Derived-table\x20JOIN\x20targets\x20are\x20not\x20supported.','tableName','JOIN_PREDICATE_UNSUPPORTED','has','OR-connected\x20JOIN\x20predicates\x20are\x20not\x20supported.','full','split','inner','indexes','index','16JcgqQb','left'];a209_0xd5fd=function(){return _0x1ba770;};return a209_0xd5fd();}function hasTopLevelKeyword(_0x54b1ab,_0x359c4c){const _0x219c7b=a209_0x1db5;let _0x941bbc=0x0;for(let _0x3394e8=0x0;_0x3394e8<_0x54b1ab[_0x219c7b(0x179)];_0x3394e8+=0x1){const _0xd455c8=_0x54b1ab[_0x3394e8];if(_0xd455c8==='(')_0x941bbc+=0x1;if(_0xd455c8===')')_0x941bbc=Math['max'](0x0,_0x941bbc-0x1);if(_0x941bbc!==0x0)continue;const _0x1b07f4=_0x54b1ab['slice'](_0x3394e8,_0x3394e8+_0x359c4c['length']),_0x3631e7=_0x54b1ab[_0x3394e8-0x1]??'\x20',_0x1936a5=_0x54b1ab[_0x3394e8+_0x359c4c[_0x219c7b(0x179)]]??'\x20';if(_0x1b07f4[_0x219c7b(0x180)]()===_0x359c4c[_0x219c7b(0x180)]()&&!/[\w$]/[_0x219c7b(0x149)](_0x3631e7)&&!/[\w$]/['test'](_0x1936a5))return!![];}return![];}function splitEquality(_0x2577e6){const _0x331417=a209_0x1db5,_0x2e1769=stripOuterParentheses(_0x2577e6);let _0x625fe=0x0,_0x4225c4;for(let _0x2e3536=0x0;_0x2e3536<_0x2e1769[_0x331417(0x179)];_0x2e3536+=0x1){const _0x336de5=_0x2e1769[_0x2e3536];if(_0x336de5==='(')_0x625fe+=0x1;if(_0x336de5===')')_0x625fe=Math[_0x331417(0x17b)](0x0,_0x625fe-0x1);const _0x14f0a1=_0x2e1769[_0x2e3536-0x1]??'',_0x401261=_0x2e1769[_0x2e3536+0x1]??'';if(_0x336de5==='='&&_0x625fe===0x0&&!/[!<>=:]/['test'](_0x14f0a1)&&_0x401261!=='='){if(_0x4225c4!==undefined)return null;_0x4225c4=_0x2e3536;}}return _0x4225c4===undefined?null:[_0x2e1769[_0x331417(0x182)](0x0,_0x4225c4)[_0x331417(0x16f)](),_0x2e1769['slice'](_0x4225c4+0x1)[_0x331417(0x16f)]()];}function parseDirectColumnReference(_0x35e4dc,_0x4e1158){const _0x2a71c4=a209_0x1db5,_0x45a38c=/^([`"]?[\w$]+[`"]?)\s*\.\s*([`"]?[\w$]+[`"]?)$/[_0x2a71c4(0x148)](stripOuterParentheses(_0x35e4dc));if(!_0x45a38c)return null;if(normalizeIdentifier(_0x45a38c[0x1]??'')!==normalizeIdentifier(_0x4e1158))return null;return normalizeIdentifier(_0x45a38c[0x2]??'');}function containsColumnReference(_0x3b928e,_0x11c26f){const _0x46731c=a209_0x1db5,_0x519b3d=_0x3b928e['replace'](/[`"]/g,''),_0x33520c=_0x11c26f[_0x46731c(0x163)](/[.*+?^${}()|[\]\\]/g,'\x5c$&');return new RegExp(_0x46731c(0x174)+_0x33520c+_0x46731c(0x15e),'i')[_0x46731c(0x149)](_0x519b3d);}function findEqualityPrefix(_0x3247ad,_0x585120){const _0x1c2574=a209_0x1db5,_0x20d022=new Set(_0x585120[_0x1c2574(0x17c)](normalizeIdentifier)),_0x2b42aa=[];for(const _0x59e5a0 of _0x3247ad){if(!_0x20d022[_0x1c2574(0x152)](normalizeIdentifier(_0x59e5a0)))break;_0x2b42aa[_0x1c2574(0x145)](_0x59e5a0);}return _0x2b42aa;}function a209_0x1db5(_0x3d49e4,_0x4891fd){_0x3d49e4=_0x3d49e4-0x144;const _0xd5fd87=a209_0xd5fd();let _0x1db591=_0xd5fd87[_0x3d49e4];return _0x1db591;}function resolveTableMetadata(_0x1e0097,_0x516b1c){const _0x3231bd=a209_0x1db5,_0x165932=normalizeIdentifier(_0x516b1c),_0x114a2e=_0x1e0097[_0x3231bd(0x183)](_0x5b3bb5=>normalizeIdentifier(_0x5b3bb5[_0x3231bd(0x150)])===_0x165932);if(_0x114a2e[_0x3231bd(0x179)]===0x1)return _0x114a2e[0x0];const _0xf84939=_0x165932[_0x3231bd(0x16b)]('.'),_0xdfa5a6=_0x165932[_0x3231bd(0x155)]('.')['at'](-0x1),_0x10c732=_0x1e0097[_0x3231bd(0x183)](_0x581298=>{const _0x3d2d79=_0x3231bd,_0x49a745=normalizeIdentifier(_0x581298[_0x3d2d79(0x150)]);if(_0xf84939&&_0x49a745['includes']('.'))return![];return _0x49a745[_0x3d2d79(0x155)]('.')['at'](-0x1)===_0xdfa5a6;});return _0x10c732[_0x3231bd(0x179)]===0x1?_0x10c732[0x0]:undefined;}function columnNamesMatch(_0x5e0030,_0x6864f9){return normalizeIdentifier(_0x5e0030)===normalizeIdentifier(_0x6864f9);}function normalizeIdentifier(_0x931c62){const _0x38eedf=a209_0x1db5;return _0x931c62['replace'](/[`"]/g,'')['trim']()[_0x38eedf(0x166)]();}function isSqlClauseKeyword(_0x425952){const _0x3d0f25=a209_0x1db5;return new Set(['on',_0x3d0f25(0x16c),_0x3d0f25(0x170),'join',_0x3d0f25(0x156),_0x3d0f25(0x15a),_0x3d0f25(0x15b),_0x3d0f25(0x154),'cross','natural'])[_0x3d0f25(0x152)](_0x425952);}function stripOuterParentheses(_0x22e50c){const _0x25485f=a209_0x1db5;let _0xfbbafa=_0x22e50c[_0x25485f(0x16f)]();while(_0xfbbafa[_0x25485f(0x169)]('(')&&_0xfbbafa['endsWith'](')')){let _0x35e146=0x0,_0x22766a=!![];for(let _0x1a3c83=0x0;_0x1a3c83<_0xfbbafa[_0x25485f(0x179)];_0x1a3c83+=0x1){if(_0xfbbafa[_0x1a3c83]==='(')_0x35e146+=0x1;if(_0xfbbafa[_0x1a3c83]===')')_0x35e146-=0x1;if(_0x35e146===0x0&&_0x1a3c83<_0xfbbafa[_0x25485f(0x179)]-0x1){_0x22766a=![];break;}}if(!_0x22766a||_0x35e146!==0x0)break;_0xfbbafa=_0xfbbafa[_0x25485f(0x182)](0x1,-0x1)[_0x25485f(0x16f)]();}return _0xfbbafa;}
@@ -1 +1 @@
1
- const a210_0x17766d=a210_0x5293;function a210_0x5293(_0x48f7d5,_0x16a210){_0x48f7d5=_0x48f7d5-0xb5;const _0x149d95=a210_0x149d();let _0x5293b8=_0x149d95[_0x48f7d5];return _0x5293b8;}function a210_0x149d(){const _0x4a2b65=['1794678kjVSWT','4HmyilT','sql-trash','29511YANjbZ','/sql','2744eVcsvb','.rabetbase','100932WxLBSw','235IJXnjR','3926263IAOQbF','447342ZgkqIW','5913234QlcaNQ','260855oRkmQP','70kSykmB'];a210_0x149d=function(){return _0x4a2b65;};return a210_0x149d();}(function(_0x424c20,_0x57c17c){const _0x1e260e=a210_0x5293,_0x4949da=_0x424c20();while(!![]){try{const _0x2e9627=parseInt(_0x1e260e(0xc1))/0x1*(-parseInt(_0x1e260e(0xb6))/0x2)+parseInt(_0x1e260e(0xb5))/0x3+parseInt(_0x1e260e(0xbc))/0x4*(parseInt(_0x1e260e(0xbd))/0x5)+parseInt(_0x1e260e(0xc0))/0x6+parseInt(_0x1e260e(0xbf))/0x7+-parseInt(_0x1e260e(0xba))/0x8*(-parseInt(_0x1e260e(0xb8))/0x9)+parseInt(_0x1e260e(0xc2))/0xa*(-parseInt(_0x1e260e(0xbe))/0xb);if(_0x2e9627===_0x57c17c)break;else _0x4949da['push'](_0x4949da['shift']());}catch(_0x45a743){_0x4949da['push'](_0x4949da['shift']());}}}(a210_0x149d,0xe505e));import{resolve}from'node:path';import{findProjectRootDirectory}from'../../context.js';const DOT_DIR=a210_0x17766d(0xbb),LOCK_FILE_NAME='sql.lock.json',TRASH_DIR_NAME=a210_0x17766d(0xb7);export function loadSqlProjectConfig(_0x4c0773,_0x2cd28a){const _0x25e4c5=a210_0x17766d,_0x48db0d=resolve(_0x2cd28a??findProjectRootDirectory()),_0x39aa19=DOT_DIR+_0x25e4c5(0xb9),_0x1d8557=_0x39aa19+'/'+_0x4c0773;return{'projectRoot':_0x48db0d,'appCode':_0x4c0773,'sqlWorkspaceRoot':_0x39aa19,'sqlRoot':_0x1d8557,'sqlRootDir':resolve(_0x48db0d,DOT_DIR,'sql',_0x4c0773),'lockFilePath':resolve(_0x48db0d,DOT_DIR,LOCK_FILE_NAME),'trashDir':resolve(_0x48db0d,DOT_DIR,TRASH_DIR_NAME)};}
1
+ const a210_0x4bfd02=a210_0x3673;(function(_0x52f9f5,_0x34c71b){const _0x35557f=a210_0x3673,_0x48d4a1=_0x52f9f5();while(!![]){try{const _0x2cf354=-parseInt(_0x35557f(0x1a3))/0x1*(-parseInt(_0x35557f(0x1a8))/0x2)+-parseInt(_0x35557f(0x1a7))/0x3*(-parseInt(_0x35557f(0x1a4))/0x4)+parseInt(_0x35557f(0x1a0))/0x5+-parseInt(_0x35557f(0x1a2))/0x6+parseInt(_0x35557f(0x1a1))/0x7+-parseInt(_0x35557f(0x1a6))/0x8*(-parseInt(_0x35557f(0x19e))/0x9)+-parseInt(_0x35557f(0x19f))/0xa;if(_0x2cf354===_0x34c71b)break;else _0x48d4a1['push'](_0x48d4a1['shift']());}catch(_0x3ebca3){_0x48d4a1['push'](_0x48d4a1['shift']());}}}(a210_0x2c6e,0xafd33));import{resolve}from'node:path';function a210_0x2c6e(){const _0x32e96e=['26818zCGKjr','/sql','sql-trash','sql.lock.json','18zPSkLV','21158310PimlnN','241550pLfcDq','6401535XOugWJ','303510JBjIOt','73PAIDqO','236nGwyTC','.rabetbase','729392VdMIlZ','38775njKujt'];a210_0x2c6e=function(){return _0x32e96e;};return a210_0x2c6e();}import{findProjectRootDirectory}from'../../context.js';const DOT_DIR=a210_0x4bfd02(0x1a5),LOCK_FILE_NAME=a210_0x4bfd02(0x19d),TRASH_DIR_NAME=a210_0x4bfd02(0x19c);function a210_0x3673(_0x5d4254,_0x3e1864){_0x5d4254=_0x5d4254-0x19c;const _0x2c6eb6=a210_0x2c6e();let _0x36733d=_0x2c6eb6[_0x5d4254];return _0x36733d;}export function loadSqlProjectConfig(_0x3b7e2d,_0x4ae62c){const _0x16438c=a210_0x4bfd02,_0x1dc5d2=resolve(_0x4ae62c??findProjectRootDirectory()),_0x4c2731=DOT_DIR+_0x16438c(0x1a9),_0x378a3f=_0x4c2731+'/'+_0x3b7e2d;return{'projectRoot':_0x1dc5d2,'appCode':_0x3b7e2d,'sqlWorkspaceRoot':_0x4c2731,'sqlRoot':_0x378a3f,'sqlRootDir':resolve(_0x1dc5d2,DOT_DIR,'sql',_0x3b7e2d),'lockFilePath':resolve(_0x1dc5d2,DOT_DIR,LOCK_FILE_NAME),'trashDir':resolve(_0x1dc5d2,DOT_DIR,TRASH_DIR_NAME)};}
@@ -1 +1 @@
1
- (function(_0x5dde4f,_0x551765){const _0x28f6a9=a211_0x4cd9,_0x209b86=_0x5dde4f();while(!![]){try{const _0x2340ec=-parseInt(_0x28f6a9(0x87))/0x1*(-parseInt(_0x28f6a9(0x7a))/0x2)+-parseInt(_0x28f6a9(0x73))/0x3+-parseInt(_0x28f6a9(0x7e))/0x4+parseInt(_0x28f6a9(0x7b))/0x5+parseInt(_0x28f6a9(0x76))/0x6*(parseInt(_0x28f6a9(0x72))/0x7)+parseInt(_0x28f6a9(0x70))/0x8*(-parseInt(_0x28f6a9(0x89))/0x9)+parseInt(_0x28f6a9(0x7c))/0xa;if(_0x2340ec===_0x551765)break;else _0x209b86['push'](_0x209b86['shift']());}catch(_0x226d23){_0x209b86['push'](_0x209b86['shift']());}}}(a211_0x2030,0x43d94));function a211_0x2030(){const _0x4e4b30=['926397nMNpLq','sql','length','slice','sqlName','sqlRootDir','push','16tfRQCa','name','45521OHHBoX','1326867ZCoBZc','.xml','isDirectory','474XgjKRA','dbName','toLowerCase','dbId','514TyLbtj','103310UEfDjA','7668110KIcbba','path','2104024qIyGCP','code','indexOf','replace','isFile','.sql','mode','sqlCode','split','587IQsvEI','ENOENT'];a211_0x2030=function(){return _0x4e4b30;};return a211_0x2030();}import{readdir,stat}from'node:fs/promises';import{extname,join,relative}from'node:path';function a211_0x4cd9(_0x3bfb17,_0x3fe894){_0x3bfb17=_0x3bfb17-0x6d;const _0x20301d=a211_0x2030();let _0x4cd9cb=_0x20301d[_0x3bfb17];return _0x4cd9cb;}import{buildDefaultSqlFileName,buildSqlRelativePath}from'./utils.js';function extensionToMode(_0x3ab864){const _0xf90109=a211_0x4cd9;if(_0x3ab864===_0xf90109(0x83))return'sql';if(_0x3ab864===_0xf90109(0x74))return'mybatisXml';return undefined;}async function scanSqlFilesRecursively(_0x5a1c37,_0x2c4c41){const _0x45c802=a211_0x4cd9,_0x9e093b=[];try{const _0x291715=await readdir(_0x5a1c37,{'withFileTypes':!![]});for(const _0x439038 of _0x291715){const _0x4a85df=join(_0x5a1c37,_0x439038['name']);if(_0x439038[_0x45c802(0x75)]()){_0x9e093b[_0x45c802(0x6f)](...await scanSqlFilesRecursively(_0x4a85df,_0x2c4c41));continue;}if(!_0x439038[_0x45c802(0x82)]())continue;const _0x3f654d=extname(_0x439038[_0x45c802(0x71)])[_0x45c802(0x78)](),_0x4dc6e8=extensionToMode(_0x3f654d);if(!_0x4dc6e8)continue;const _0x3cbbfa=relative(_0x2c4c41,_0x4a85df)[_0x45c802(0x81)](/\\/g,'/'),_0x210a7a=_0x3cbbfa[_0x45c802(0x86)]('/')['filter'](Boolean),_0x587067=parseSqlPath(_0x210a7a,_0x439038[_0x45c802(0x71)],_0x3f654d);if(!_0x587067)continue;_0x9e093b[_0x45c802(0x6f)]({'sqlCode':_0x587067[_0x45c802(0x85)],'sqlName':_0x587067[_0x45c802(0x6d)],'dbDirectory':_0x210a7a[0x0],'filePath':_0x4a85df,'relativePath':_0x3cbbfa,'lockKey':_0x587067[_0x45c802(0x85)],'mode':_0x4dc6e8});}}catch(_0x15d848){if(_0x15d848[_0x45c802(0x7f)]!==_0x45c802(0x88))throw _0x15d848;}return _0x9e093b;}export async function scanLocalSqlQueries(_0x371f06){const _0x4d413a=a211_0x4cd9;return scanSqlFilesRecursively(_0x371f06[_0x4d413a(0x6e)],_0x371f06[_0x4d413a(0x6e)]);}export function resolveLocalSqlFilePath(_0x8d82e5,_0x250b41,_0x28415b){const _0x21c075=a211_0x4cd9,_0x146da3=_0x28415b?.[_0x21c075(0x7d)]||(_0x28415b?.[_0x21c075(0x6d)]||_0x28415b?.[_0x21c075(0x77)]?buildSqlRelativePath(_0x250b41,_0x28415b?.['sqlName'],_0x28415b?.[_0x21c075(0x77)],_0x28415b?.[_0x21c075(0x84)]||'sql',_0x28415b?.[_0x21c075(0x79)]):buildDefaultSqlFileName(_0x250b41,_0x28415b?.[_0x21c075(0x84)]||_0x21c075(0x8a)));return join(_0x8d82e5[_0x21c075(0x6e)],_0x146da3);}export async function directoryExists(_0x2653f4){const _0x55b469=a211_0x4cd9;try{const _0xc6e549=await stat(_0x2653f4);return _0xc6e549[_0x55b469(0x75)]();}catch{return![];}}function parseSqlPath(_0x44eeb6,_0x595915,_0x14714b){const _0x132c05=a211_0x4cd9,_0x376701=_0x595915[_0x132c05(0x8c)](0x0,-_0x14714b[_0x132c05(0x8b)]);if(_0x44eeb6[_0x132c05(0x8b)]<0x2)return null;const _0x45c145=_0x376701[_0x132c05(0x80)]('_');if(_0x45c145<=0x0||_0x45c145>=_0x376701[_0x132c05(0x8b)]-0x1)return null;const _0x22ad92=_0x376701['slice'](0x0,_0x45c145);if(!isLikelySqlCode(_0x22ad92))return null;return{'sqlCode':_0x22ad92,'sqlName':_0x376701['slice'](_0x45c145+0x1)};}function isLikelySqlCode(_0x3b2a1f){return/^[A-Za-z0-9-]+-[A-Za-z0-9-]+$/['test'](_0x3b2a1f);}
1
+ (function(_0x2bebbb,_0x2d8daa){const _0x331944=a211_0x2e5b,_0x267e18=_0x2bebbb();while(!![]){try{const _0x3f7521=-parseInt(_0x331944(0xbb))/0x1+-parseInt(_0x331944(0xad))/0x2+parseInt(_0x331944(0xc1))/0x3+-parseInt(_0x331944(0xaa))/0x4+-parseInt(_0x331944(0xb8))/0x5+-parseInt(_0x331944(0xb5))/0x6+parseInt(_0x331944(0xb4))/0x7*(parseInt(_0x331944(0xaf))/0x8);if(_0x3f7521===_0x2d8daa)break;else _0x267e18['push'](_0x267e18['shift']());}catch(_0x4329d6){_0x267e18['push'](_0x267e18['shift']());}}}(a211_0x3c2b,0x3d21d));function a211_0x2e5b(_0xe69ef6,_0x277e0a){_0xe69ef6=_0xe69ef6-0xa4;const _0x3c2bb5=a211_0x3c2b();let _0x2e5bac=_0x3c2bb5[_0xe69ef6];return _0x2e5bac;}import{readdir,stat}from'node:fs/promises';import{extname,join,relative}from'node:path';import{buildDefaultSqlFileName,buildSqlRelativePath}from'./utils.js';function extensionToMode(_0x1776df){const _0x3d2a64=a211_0x2e5b;if(_0x1776df===_0x3d2a64(0xb0))return _0x3d2a64(0xae);if(_0x1776df===_0x3d2a64(0xc2))return _0x3d2a64(0xa6);return undefined;}async function scanSqlFilesRecursively(_0x9c6fca,_0x112bbe){const _0x2625e8=a211_0x2e5b,_0x3eb1fa=[];try{const _0x55e785=await readdir(_0x9c6fca,{'withFileTypes':!![]});for(const _0x1a07e5 of _0x55e785){const _0x3f3d08=join(_0x9c6fca,_0x1a07e5[_0x2625e8(0xc0)]);if(_0x1a07e5['isDirectory']()){_0x3eb1fa[_0x2625e8(0xb9)](...await scanSqlFilesRecursively(_0x3f3d08,_0x112bbe));continue;}if(!_0x1a07e5[_0x2625e8(0xc3)]())continue;const _0x217ece=extname(_0x1a07e5[_0x2625e8(0xc0)])[_0x2625e8(0xbf)](),_0x237dfc=extensionToMode(_0x217ece);if(!_0x237dfc)continue;const _0x28e40e=relative(_0x112bbe,_0x3f3d08)[_0x2625e8(0xba)](/\\/g,'/'),_0x1b72ad=_0x28e40e[_0x2625e8(0xbc)]('/')[_0x2625e8(0xb7)](Boolean),_0x5cbc8b=parseSqlPath(_0x1b72ad,_0x1a07e5[_0x2625e8(0xc0)],_0x217ece);if(!_0x5cbc8b)continue;_0x3eb1fa[_0x2625e8(0xb9)]({'sqlCode':_0x5cbc8b[_0x2625e8(0xbd)],'sqlName':_0x5cbc8b[_0x2625e8(0xa5)],'dbDirectory':_0x1b72ad[0x0],'filePath':_0x3f3d08,'relativePath':_0x28e40e,'lockKey':_0x5cbc8b[_0x2625e8(0xbd)],'mode':_0x237dfc});}}catch(_0x45ddcc){if(_0x45ddcc[_0x2625e8(0xb6)]!==_0x2625e8(0xab))throw _0x45ddcc;}return _0x3eb1fa;}export async function scanLocalSqlQueries(_0x5a7ff4){const _0x6de268=a211_0x2e5b;return scanSqlFilesRecursively(_0x5a7ff4['sqlRootDir'],_0x5a7ff4[_0x6de268(0xb2)]);}function a211_0x3c2b(){const _0x393edc=['isDirectory','sqlRootDir','slice','5842697woyByH','2451876lOPbjV','code','filter','1536080WdTJLI','push','replace','262075WAIVIe','split','sqlCode','indexOf','toLowerCase','name','268965PHdDMO','.xml','isFile','length','sqlName','mybatisXml','dbId','dbName','mode','1927900XhERhw','ENOENT','test','97376TWFnAn','sql','16qrIZwL','.sql'];a211_0x3c2b=function(){return _0x393edc;};return a211_0x3c2b();}export function resolveLocalSqlFilePath(_0x48790d,_0x33cdc8,_0x5b58ad){const _0x370aa3=a211_0x2e5b,_0x598279=_0x5b58ad?.['path']||(_0x5b58ad?.['sqlName']||_0x5b58ad?.[_0x370aa3(0xa8)]?buildSqlRelativePath(_0x33cdc8,_0x5b58ad?.['sqlName'],_0x5b58ad?.['dbName'],_0x5b58ad?.[_0x370aa3(0xa9)]||'sql',_0x5b58ad?.[_0x370aa3(0xa7)]):buildDefaultSqlFileName(_0x33cdc8,_0x5b58ad?.['mode']||_0x370aa3(0xae)));return join(_0x48790d[_0x370aa3(0xb2)],_0x598279);}export async function directoryExists(_0x943aca){const _0x3c61dd=a211_0x2e5b;try{const _0x28de67=await stat(_0x943aca);return _0x28de67[_0x3c61dd(0xb1)]();}catch{return![];}}function parseSqlPath(_0x25559a,_0x5f19f1,_0x100325){const _0x1bef2c=a211_0x2e5b,_0x166e5d=_0x5f19f1['slice'](0x0,-_0x100325[_0x1bef2c(0xa4)]);if(_0x25559a[_0x1bef2c(0xa4)]<0x2)return null;const _0xcdcbac=_0x166e5d[_0x1bef2c(0xbe)]('_');if(_0xcdcbac<=0x0||_0xcdcbac>=_0x166e5d[_0x1bef2c(0xa4)]-0x1)return null;const _0x33ab4c=_0x166e5d['slice'](0x0,_0xcdcbac);if(!isLikelySqlCode(_0x33ab4c))return null;return{'sqlCode':_0x33ab4c,'sqlName':_0x166e5d[_0x1bef2c(0xb3)](_0xcdcbac+0x1)};}function isLikelySqlCode(_0x387829){const _0xa9969f=a211_0x2e5b;return/^[A-Za-z0-9-]+-[A-Za-z0-9-]+$/[_0xa9969f(0xac)](_0x387829);}
@@ -1 +1 @@
1
- (function(_0x49cc80,_0x21fd3a){const _0x33da5a=a212_0x1b5d,_0xa5c5a1=_0x49cc80();while(!![]){try{const _0xbff0e7=parseInt(_0x33da5a(0x159))/0x1+parseInt(_0x33da5a(0x15c))/0x2*(parseInt(_0x33da5a(0x151))/0x3)+-parseInt(_0x33da5a(0x154))/0x4*(-parseInt(_0x33da5a(0x152))/0x5)+-parseInt(_0x33da5a(0x150))/0x6*(parseInt(_0x33da5a(0x15d))/0x7)+-parseInt(_0x33da5a(0x156))/0x8*(parseInt(_0x33da5a(0x157))/0x9)+parseInt(_0x33da5a(0x153))/0xa+-parseInt(_0x33da5a(0x15f))/0xb;if(_0xbff0e7===_0x21fd3a)break;else _0xa5c5a1['push'](_0xa5c5a1['shift']());}catch(_0x1e5f42){_0xa5c5a1['push'](_0xa5c5a1['shift']());}}}(a212_0x142d,0x95337));import{readFile}from'node:fs/promises';import a212_0x521e57 from'node:crypto';function a212_0x142d(){const _0x34a995=['utf8','1106792zjkUIk','18cguacR','digest','1009132qUTZSG','update','createHash','246770cQuSGa','7SvNBus','hex','4485635tANbIy','6418254RGWwwR','3qquVBG','3935LnoyVj','342010UeyzrJ','6092AzydTA'];a212_0x142d=function(){return _0x34a995;};return a212_0x142d();}function a212_0x1b5d(_0x5bf39a,_0x54826e){_0x5bf39a=_0x5bf39a-0x150;const _0x142dad=a212_0x142d();let _0x1b5d77=_0x142dad[_0x5bf39a];return _0x1b5d77;}export function computeSqlContentHash(_0x20bca1){const _0x3c14aa=a212_0x1b5d;return a212_0x521e57[_0x3c14aa(0x15b)]('md5')[_0x3c14aa(0x15a)](_0x20bca1)[_0x3c14aa(0x158)](_0x3c14aa(0x15e));}export async function computeSqlFileHash(_0x1afada){const _0x2f57ff=a212_0x1b5d,_0x19ca2a=await readFile(_0x1afada,_0x2f57ff(0x155));return computeSqlContentHash(_0x19ca2a);}
1
+ (function(_0x68e3d4,_0x2df2fa){const _0x5d1990=a212_0x3bd4,_0x8887a9=_0x68e3d4();while(!![]){try{const _0x45c191=parseInt(_0x5d1990(0x133))/0x1+parseInt(_0x5d1990(0x12b))/0x2+-parseInt(_0x5d1990(0x134))/0x3+-parseInt(_0x5d1990(0x130))/0x4+-parseInt(_0x5d1990(0x132))/0x5+-parseInt(_0x5d1990(0x12e))/0x6+-parseInt(_0x5d1990(0x131))/0x7*(-parseInt(_0x5d1990(0x12c))/0x8);if(_0x45c191===_0x2df2fa)break;else _0x8887a9['push'](_0x8887a9['shift']());}catch(_0x46bb3f){_0x8887a9['push'](_0x8887a9['shift']());}}}(a212_0x24db,0x6da2b));import{readFile}from'node:fs/promises';import a212_0x56616f from'node:crypto';export function computeSqlContentHash(_0x1ec788){const _0xe3f128=a212_0x3bd4;return a212_0x56616f['createHash']('md5')['update'](_0x1ec788)[_0xe3f128(0x12d)](_0xe3f128(0x12a));}function a212_0x3bd4(_0x3f03ac,_0x51555d){_0x3f03ac=_0x3f03ac-0x12a;const _0x24db59=a212_0x24db();let _0x3bd4a2=_0x24db59[_0x3f03ac];return _0x3bd4a2;}function a212_0x24db(){const _0x47c06f=['2186072UFfuma','7UUIEXx','379710KRRDdD','72996IqzvTe','1726101fRnSRi','hex','843910VuodNa','12531224YCvChH','digest','2486760vjoXkD','utf8'];a212_0x24db=function(){return _0x47c06f;};return a212_0x24db();}export async function computeSqlFileHash(_0x27c7be){const _0x49ce5f=a212_0x3bd4,_0x11a2b9=await readFile(_0x27c7be,_0x49ce5f(0x12f));return computeSqlContentHash(_0x11a2b9);}
@@ -1 +1 @@
1
- (function(_0x45c953,_0x3cc3e5){const _0x379267=a213_0x18d1,_0x3ab8ac=_0x45c953();while(!![]){try{const _0x67fc81=-parseInt(_0x379267(0x1a6))/0x1*(parseInt(_0x379267(0x1b3))/0x2)+-parseInt(_0x379267(0x1a5))/0x3+parseInt(_0x379267(0x1a7))/0x4*(parseInt(_0x379267(0x1aa))/0x5)+parseInt(_0x379267(0x1b0))/0x6*(parseInt(_0x379267(0x1ac))/0x7)+-parseInt(_0x379267(0x1b1))/0x8+parseInt(_0x379267(0x1b4))/0x9*(-parseInt(_0x379267(0x1ad))/0xa)+-parseInt(_0x379267(0x1ab))/0xb*(-parseInt(_0x379267(0x1af))/0xc);if(_0x67fc81===_0x3cc3e5)break;else _0x3ab8ac['push'](_0x3ab8ac['shift']());}catch(_0x91b62c){_0x3ab8ac['push'](_0x3ab8ac['shift']());}}}(a213_0x3311,0x51777));import{mkdir,readFile,writeFile}from'node:fs/promises';function a213_0x3311(){const _0xef9f74=['apps','Check\x20.rabetbase/sql.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.','parse','sqls','sqlRoot','ENOENT','lastSync','135438JBtRAb','4UtDJWD','16vGcIpk','\x22\x20vs\x20lock\x20\x22','stringify','336830qlUhOB','7168546RCTRCB','7UhKmcF','10nPMmtN',':\x20sqlRoot\x20mismatch\x20—\x20current\x20\x22','12EelNcg','2857062PoShwv','957192wVPztg','Failed\x20to\x20read\x20SQL\x20lock\x20file:\x20','248026JvJybT','3625137mOumZD','code'];a213_0x3311=function(){return _0xef9f74;};return a213_0x3311();}import{dirname}from'node:path';export function createEmptySqlLock(){return{'apps':{}};}export function ensureSqlLockScope(_0x41c9ae,_0x3fe9e9,_0x329009,_0x13e85a){const _0x37b198=a213_0x18d1,_0x3834bd=_0x41c9ae??createEmptySqlLock();let _0x586d4e=_0x3834bd['apps'][_0x3fe9e9];if(!_0x586d4e)return _0x586d4e={'sqlRoot':_0x329009,'lastSync':'','sqls':{}},_0x3834bd[_0x37b198(0x19e)][_0x3fe9e9]=_0x586d4e,{'lockData':_0x3834bd,'appLock':_0x586d4e};if(!_0x586d4e['sqlRoot'])_0x586d4e['sqlRoot']=_0x329009;else{if(_0x586d4e[_0x37b198(0x1a2)]!==_0x329009)throw new Error(_0x13e85a+_0x37b198(0x1ae)+_0x329009+_0x37b198(0x1a8)+_0x586d4e['sqlRoot']+'\x22.\x20'+_0x37b198(0x19f));}return!_0x586d4e[_0x37b198(0x1a1)]&&(_0x586d4e['sqls']={}),!_0x586d4e[_0x37b198(0x1a4)]&&(_0x586d4e['lastSync']=''),{'lockData':_0x3834bd,'appLock':_0x586d4e};}export async function readSqlLockFile(_0x4edf8d){const _0x4eed9f=a213_0x18d1;try{const _0x16bc8b=await readFile(_0x4edf8d,'utf8');return JSON[_0x4eed9f(0x1a0)](_0x16bc8b);}catch(_0x38118c){if(_0x38118c[_0x4eed9f(0x19d)]===_0x4eed9f(0x1a3))return null;throw new Error(_0x4eed9f(0x1b2)+String(_0x38118c));}}function a213_0x18d1(_0x330cab,_0x4bd5fc){_0x330cab=_0x330cab-0x19d;const _0x33113e=a213_0x3311();let _0x18d118=_0x33113e[_0x330cab];return _0x18d118;}export async function writeSqlLockFile(_0x18f11b,_0x139c43){const _0x2b54a4=a213_0x18d1;await mkdir(dirname(_0x18f11b),{'recursive':!![]}),await writeFile(_0x18f11b,JSON[_0x2b54a4(0x1a9)](_0x139c43,null,0x2),'utf8');}
1
+ (function(_0x218595,_0x2f6432){const _0x39f296=a213_0x3c08,_0x1da223=_0x218595();while(!![]){try{const _0x2e1b28=-parseInt(_0x39f296(0x17b))/0x1+-parseInt(_0x39f296(0x17d))/0x2*(-parseInt(_0x39f296(0x177))/0x3)+parseInt(_0x39f296(0x17f))/0x4*(parseInt(_0x39f296(0x180))/0x5)+parseInt(_0x39f296(0x183))/0x6*(-parseInt(_0x39f296(0x179))/0x7)+-parseInt(_0x39f296(0x175))/0x8*(-parseInt(_0x39f296(0x172))/0x9)+-parseInt(_0x39f296(0x17a))/0xa+parseInt(_0x39f296(0x182))/0xb*(parseInt(_0x39f296(0x17c))/0xc);if(_0x2e1b28===_0x2f6432)break;else _0x1da223['push'](_0x1da223['shift']());}catch(_0x18f484){_0x1da223['push'](_0x1da223['shift']());}}}(a213_0x28db,0xa5444));function a213_0x3c08(_0x1059a2,_0x163acb){_0x1059a2=_0x1059a2-0x16f;const _0x28dbc8=a213_0x28db();let _0x3c0800=_0x28dbc8[_0x1059a2];return _0x3c0800;}import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';export function createEmptySqlLock(){return{'apps':{}};}export function ensureSqlLockScope(_0x1c0ce6,_0x538d33,_0x333555,_0x5cc52d){const _0x5e30d7=a213_0x3c08,_0x273c57=_0x1c0ce6??createEmptySqlLock();let _0x49bbbb=_0x273c57[_0x5e30d7(0x178)][_0x538d33];if(!_0x49bbbb)return _0x49bbbb={'sqlRoot':_0x333555,'lastSync':'','sqls':{}},_0x273c57['apps'][_0x538d33]=_0x49bbbb,{'lockData':_0x273c57,'appLock':_0x49bbbb};if(!_0x49bbbb['sqlRoot'])_0x49bbbb[_0x5e30d7(0x185)]=_0x333555;else{if(_0x49bbbb[_0x5e30d7(0x185)]!==_0x333555)throw new Error(_0x5cc52d+':\x20sqlRoot\x20mismatch\x20—\x20current\x20\x22'+_0x333555+_0x5e30d7(0x184)+_0x49bbbb['sqlRoot']+_0x5e30d7(0x170)+'Check\x20.rabetbase/sql.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.');}return!_0x49bbbb['sqls']&&(_0x49bbbb[_0x5e30d7(0x181)]={}),!_0x49bbbb[_0x5e30d7(0x171)]&&(_0x49bbbb[_0x5e30d7(0x171)]=''),{'lockData':_0x273c57,'appLock':_0x49bbbb};}export async function readSqlLockFile(_0x10805a){const _0x2d9e8c=a213_0x3c08;try{const _0x414833=await readFile(_0x10805a,'utf8');return JSON[_0x2d9e8c(0x176)](_0x414833);}catch(_0x283ebb){if(_0x283ebb[_0x2d9e8c(0x173)]===_0x2d9e8c(0x186))return null;throw new Error(_0x2d9e8c(0x174)+String(_0x283ebb));}}function a213_0x28db(){const _0x531b70=['542UwInqO','utf8','11512FUuQRs','755rEtJtP','sqls','616oFxUdR','6hgoLOq','\x22\x20vs\x20lock\x20\x22','sqlRoot','ENOENT','stringify','\x22.\x20','lastSync','10268631XhXMFs','code','Failed\x20to\x20read\x20SQL\x20lock\x20file:\x20','8AeLJHe','parse','6336pjJqdg','apps','293650JUMpgJ','10240480yVmvyn','1053551LHFxNC','138984GyzbED'];a213_0x28db=function(){return _0x531b70;};return a213_0x28db();}export async function writeSqlLockFile(_0x3ac5e0,_0x463de8){const _0x25d8a2=a213_0x3c08;await mkdir(dirname(_0x3ac5e0),{'recursive':!![]}),await writeFile(_0x3ac5e0,JSON[_0x25d8a2(0x16f)](_0x463de8,null,0x2),_0x25d8a2(0x17e));}
@@ -1 +1 @@
1
- (function(_0x1f15d6,_0x363c03){const _0x3fd110=a215_0x4456,_0x5be529=_0x1f15d6();while(!![]){try{const _0x2e7f55=-parseInt(_0x3fd110(0x116))/0x1*(parseInt(_0x3fd110(0x118))/0x2)+parseInt(_0x3fd110(0x11a))/0x3+parseInt(_0x3fd110(0x11f))/0x4+-parseInt(_0x3fd110(0x113))/0x5+parseInt(_0x3fd110(0x11c))/0x6+parseInt(_0x3fd110(0x111))/0x7+-parseInt(_0x3fd110(0x117))/0x8;if(_0x2e7f55===_0x363c03)break;else _0x5be529['push'](_0x5be529['shift']());}catch(_0x343a6f){_0x5be529['push'](_0x5be529['shift']());}}}(a215_0x6894,0x88b03));export function detectSqlMode(_0x43ea07){const _0x2c316b=a215_0x4456,_0x2564e9=_0x43ea07['trimStart']();if(/^<(select|insert|update|delete)\b/i[_0x2c316b(0x114)](_0x2564e9))return _0x2c316b(0x11e);return _0x2c316b(0x119);}function a215_0x6894(){const _0x4f8fd8=['mybatisXml','4070508qglHtm','unknown-db','2224684UeKqXN','.sql','418650tMrslz','test','db-','3826HgSpYv','13915064jJppaU','12dYUYfo','sql','2349654mdofOk','replace','1723722QOFHbN','trim'];a215_0x6894=function(){return _0x4f8fd8;};return a215_0x6894();}function a215_0x4456(_0x29c1fc,_0x19d671){_0x29c1fc=_0x29c1fc-0x111;const _0x68945c=a215_0x6894();let _0x4456f3=_0x68945c[_0x29c1fc];return _0x4456f3;}export function getSqlFileExtension(_0x54ba8b){const _0x178731=a215_0x4456;return _0x54ba8b===_0x178731(0x11e)?'.xml':_0x178731(0x112);}export function buildDefaultSqlFileName(_0x5a484a,_0x6972c4){return''+_0x5a484a+getSqlFileExtension(_0x6972c4);}export function sanitizeSqlPathSegment(_0x400b1a,_0x1db587){const _0x1868bf=a215_0x4456,_0x3d453e=String(_0x400b1a??'')[_0x1868bf(0x11d)](),_0x196d8b=_0x3d453e[_0x1868bf(0x11b)](/[<>:"/\\|?*\u0000-\u001F]/g,'-')[_0x1868bf(0x11b)](/\s+/g,'-')[_0x1868bf(0x11b)](/-+/g,'-')[_0x1868bf(0x11b)](/^\.+/,'')['replace'](/\.+$/,'')[_0x1868bf(0x11b)](/^-+/,'')[_0x1868bf(0x11b)](/-+$/,'');return _0x196d8b||_0x1db587;}export function buildDbDirectoryName(_0x32fad2,_0x42d6ae){const _0x185d07=a215_0x4456;return sanitizeSqlPathSegment(_0x32fad2,_0x42d6ae!=null?_0x185d07(0x115)+_0x42d6ae:_0x185d07(0x120));}export function buildSqlRelativePath(_0x1353f8,_0x20eb72,_0x5922f2,_0x2bdc6f,_0x5106c2){const _0x25f6c7=buildDbDirectoryName(_0x5922f2,_0x5106c2),_0x870b69=sanitizeSqlPathSegment(_0x1353f8,'unknown-sql'),_0x5ef977=sanitizeSqlPathSegment(_0x20eb72,_0x870b69);return _0x25f6c7+'/'+_0x870b69+'_'+_0x5ef977+getSqlFileExtension(_0x2bdc6f);}
1
+ (function(_0x5ac3f2,_0x31264a){const _0x71a2b4=a215_0x2cd1,_0x5bc832=_0x5ac3f2();while(!![]){try{const _0x233588=-parseInt(_0x71a2b4(0x1cf))/0x1*(parseInt(_0x71a2b4(0x1cd))/0x2)+parseInt(_0x71a2b4(0x1d4))/0x3+-parseInt(_0x71a2b4(0x1d8))/0x4+parseInt(_0x71a2b4(0x1ca))/0x5+-parseInt(_0x71a2b4(0x1d0))/0x6*(parseInt(_0x71a2b4(0x1cc))/0x7)+parseInt(_0x71a2b4(0x1cb))/0x8*(parseInt(_0x71a2b4(0x1ce))/0x9)+-parseInt(_0x71a2b4(0x1da))/0xa*(-parseInt(_0x71a2b4(0x1d5))/0xb);if(_0x233588===_0x31264a)break;else _0x5bc832['push'](_0x5bc832['shift']());}catch(_0x5286d4){_0x5bc832['push'](_0x5bc832['shift']());}}}(a215_0x244c,0xd5cd0));export function detectSqlMode(_0x163476){const _0x596536=a215_0x2cd1,_0x313648=_0x163476['trimStart']();if(/^<(select|insert|update|delete)\b/i[_0x596536(0x1d9)](_0x313648))return'mybatisXml';return _0x596536(0x1d2);}export function getSqlFileExtension(_0x390d76){const _0x15cfac=a215_0x2cd1;return _0x390d76===_0x15cfac(0x1d6)?_0x15cfac(0x1d3):'.sql';}export function buildDefaultSqlFileName(_0x119c8f,_0x14ea2a){return''+_0x119c8f+getSqlFileExtension(_0x14ea2a);}export function sanitizeSqlPathSegment(_0xbb8022,_0x38f941){const _0x5521c3=a215_0x2cd1,_0x3b54e3=String(_0xbb8022??'')[_0x5521c3(0x1c8)](),_0x58ed67=_0x3b54e3['replace'](/[<>:"/\\|?*\u0000-\u001F]/g,'-')[_0x5521c3(0x1c9)](/\s+/g,'-')[_0x5521c3(0x1c9)](/-+/g,'-')[_0x5521c3(0x1c9)](/^\.+/,'')[_0x5521c3(0x1c9)](/\.+$/,'')[_0x5521c3(0x1c9)](/^-+/,'')['replace'](/-+$/,'');return _0x58ed67||_0x38f941;}export function buildDbDirectoryName(_0x3b3ee6,_0x1e59a1){const _0x69bfaa=a215_0x2cd1;return sanitizeSqlPathSegment(_0x3b3ee6,_0x1e59a1!=null?_0x69bfaa(0x1d1)+_0x1e59a1:_0x69bfaa(0x1d7));}function a215_0x244c(){const _0x41bda4=['trim','replace','4759450eCQYyV','136264iCZhWd','112ZgBRIK','4bUJHiO','279vzxCCZ','26141RvpuDF','544890pHhmCl','db-','sql','.xml','1776231QjyEhB','11SwmMgH','mybatisXml','unknown-db','63964EtrkLq','test','3250510ciwzvd','unknown-sql'];a215_0x244c=function(){return _0x41bda4;};return a215_0x244c();}function a215_0x2cd1(_0x8a9eb,_0x304f8e){_0x8a9eb=_0x8a9eb-0x1c8;const _0x244c99=a215_0x244c();let _0x2cd194=_0x244c99[_0x8a9eb];return _0x2cd194;}export function buildSqlRelativePath(_0x3212e3,_0x228982,_0x526ca7,_0x2ec2b6,_0x90f72d){const _0x5efcf5=a215_0x2cd1,_0x4e5a3c=buildDbDirectoryName(_0x526ca7,_0x90f72d),_0x561340=sanitizeSqlPathSegment(_0x3212e3,_0x5efcf5(0x1db)),_0x5baaeb=sanitizeSqlPathSegment(_0x228982,_0x561340);return _0x4e5a3c+'/'+_0x561340+'_'+_0x5baaeb+getSqlFileExtension(_0x2ec2b6);}
@@ -1 +1 @@
1
- (function(_0x3288c3,_0x27810e){const _0x39e538=a216_0x1ac7,_0x46697f=_0x3288c3();while(!![]){try{const _0x33eed1=parseInt(_0x39e538(0x91))/0x1+-parseInt(_0x39e538(0x93))/0x2*(-parseInt(_0x39e538(0x8b))/0x3)+parseInt(_0x39e538(0xa0))/0x4+parseInt(_0x39e538(0x86))/0x5*(parseInt(_0x39e538(0x9e))/0x6)+parseInt(_0x39e538(0x7d))/0x7+parseInt(_0x39e538(0x7b))/0x8+-parseInt(_0x39e538(0x7c))/0x9;if(_0x33eed1===_0x27810e)break;else _0x46697f['push'](_0x46697f['shift']());}catch(_0x42c70d){_0x46697f['push'](_0x46697f['shift']());}}}(a216_0x25c7,0x1e871));export function detectSqlType(_0x22db10){const _0x225a57=a216_0x1ac7;if(!_0x22db10?.[_0x225a57(0x92)]())return{'type':_0x225a57(0x9a),'isSelectOnly':![],'isDangerous':![],'reason':'SQL\x20content\x20is\x20empty'};const _0x286c38=_0x22db10[_0x225a57(0x7e)](/#\{[^}]*\}/g,'?')['replace'](/\$\{[^}]*\}/g,'?')['replace'](/@[^(\s]+(\([^)]*\))?/g,'')[_0x225a57(0x7e)](/\/\*[\s\S]*?\*\//g,'')[_0x225a57(0x92)](),_0x5f3cf8=_0x286c38[_0x225a57(0x8a)]('\x0a');let _0x12f53e='';for(const _0x14143f of _0x5f3cf8){const _0x446d1b=_0x14143f[_0x225a57(0x92)]();if(!_0x446d1b||_0x446d1b[_0x225a57(0x90)]('--')||_0x446d1b['startsWith']('/*'))continue;_0x12f53e=_0x446d1b;break;}const _0x181a21=_0x12f53e[_0x225a57(0x94)]();if(_0x181a21[_0x225a57(0x90)](_0x225a57(0x85))||_0x181a21[_0x225a57(0x90)](_0x225a57(0x9f))){const _0x5619ff=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x225a57(0x97)](_0x286c38);return{'type':_0x225a57(0x85),'isSelectOnly':!_0x5619ff,'isDangerous':_0x5619ff,'reason':_0x5619ff?_0x225a57(0x95):undefined};}if(_0x181a21[_0x225a57(0x90)](_0x225a57(0x9c)))return{'type':_0x225a57(0x9c),'isSelectOnly':![],'isDangerous':![]};if(_0x181a21['startsWith'](_0x225a57(0x81)))return{'type':'UPDATE','isSelectOnly':![],'isDangerous':![]};if(_0x181a21[_0x225a57(0x90)](_0x225a57(0x7f)))return{'type':'DELETE','isSelectOnly':![],'isDangerous':!![],'reason':'DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save'};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i['test'](_0x181a21))return{'type':_0x225a57(0xa1),'isSelectOnly':![],'isDangerous':!![],'reason':_0x225a57(0x88)};return{'type':'UNKNOWN','isSelectOnly':![],'isDangerous':![]};}function extractTables(_0x5b5432){const _0x249253=a216_0x1ac7,_0x2af5ae=_0x5b5432[_0x249253(0x7e)](/#\{[^}]*\}/g,'?')[_0x249253(0x7e)](/\$\{[^}]*\}/g,'?')[_0x249253(0x7e)](/'[^']*'/g,'\x27\x27')[_0x249253(0x7e)](/--.*$/gm,'')[_0x249253(0x7e)](/\/\*[\s\S]*?\*\//g,''),_0x21bc21=[],_0x60be21=_0x2af5ae[_0x249253(0x84)](/FROM\s+([^\s,)(]+)/i);if(_0x60be21?.[0x1])_0x21bc21['push'](_0x60be21[0x1][_0x249253(0x7e)](/[`"]/g,''));for(const _0x4d17ff of _0x2af5ae[_0x249253(0x99)](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){const _0x9bb575=_0x4d17ff[0x1]?.[_0x249253(0x7e)](/[`"]/g,'');if(_0x9bb575&&!_0x21bc21[_0x249253(0x82)](_0x9bb575))_0x21bc21[_0x249253(0x96)](_0x9bb575);}const _0x33a1a5=_0x2af5ae[_0x249253(0x84)](/INTO\s+([^\s(]+)/i);if(_0x33a1a5?.[0x1]){const _0x4d934d=_0x33a1a5[0x1][_0x249253(0x7e)](/[`"]/g,'');if(!_0x21bc21['includes'](_0x4d934d))_0x21bc21[_0x249253(0x96)](_0x4d934d);}const _0x130a50=_0x2af5ae[_0x249253(0x84)](/UPDATE\s+([^\s,)(]+)/i);if(_0x130a50?.[0x1]){const _0x4a07b0=_0x130a50[0x1][_0x249253(0x7e)](/[`"]/g,'');if(!_0x21bc21['includes'](_0x4a07b0))_0x21bc21[_0x249253(0x96)](_0x4a07b0);}return _0x21bc21;}function a216_0x25c7(){const _0x5c92da=['split','60WqDdLR','\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.','isDangerous','\x20with\x20parameters:\x20','from','startsWith','246806erfttF','trim','10030OZtufp','toUpperCase','SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT','push','test','reason','matchAll','UNKNOWN','join','INSERT','add','2082BLMwUp','WITH','250532HCbXCB','DDL','779224jNfmnI','6998850PQIrAo','1362452UXOtgN','replace','DELETE','unknown\x20table(s)','UPDATE','includes','Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.','match','SELECT','2895wMSvHp','length','DDL\x20statements\x20are\x20blocked\x20from\x20auto-save','type'];a216_0x25c7=function(){return _0x5c92da;};return a216_0x25c7();}function extractParameters(_0x479cc0){const _0x1be1be=a216_0x1ac7,_0x2d7690=new Set();for(const _0x423184 of _0x479cc0[_0x1be1be(0x99)](/#\{(\w+)\}/g))if(_0x423184[0x1])_0x2d7690[_0x1be1be(0x9d)](_0x423184[0x1]);for(const _0x1046d0 of _0x479cc0[_0x1be1be(0x99)](/\$\{(\w+)\}/g))if(_0x1046d0[0x1])_0x2d7690[_0x1be1be(0x9d)](_0x1046d0[0x1]);return Array[_0x1be1be(0x8f)](_0x2d7690);}function a216_0x1ac7(_0xacd131,_0x1af998){_0xacd131=_0xacd131-0x7b;const _0x25c7a1=a216_0x25c7();let _0x1ac765=_0x25c7a1[_0xacd131];return _0x1ac765;}export function validateSql(_0x1c6d93){const _0x484390=a216_0x1ac7,_0x59142d=detectSqlType(_0x1c6d93),_0x2cbd59=extractTables(_0x1c6d93),_0x100c4c=extractParameters(_0x1c6d93);if(_0x59142d[_0x484390(0x8d)])return{'valid':![],'sqlType':_0x59142d,'tables':_0x2cbd59,'parameters':_0x100c4c,'message':_0x59142d[_0x484390(0x98)]||_0x59142d[_0x484390(0x89)]+_0x484390(0x8c)};if(_0x59142d['type']===_0x484390(0x9a))return{'valid':![],'sqlType':_0x59142d,'tables':_0x2cbd59,'parameters':_0x100c4c,'message':_0x484390(0x83)};return{'valid':!![],'sqlType':_0x59142d,'tables':_0x2cbd59,'parameters':_0x100c4c,'message':_0x59142d[_0x484390(0x89)]+'\x20query\x20targeting\x20'+(_0x2cbd59[_0x484390(0x87)]?_0x2cbd59[_0x484390(0x9b)](',\x20'):_0x484390(0x80))+(_0x100c4c[_0x484390(0x87)]?_0x484390(0x8e)+_0x100c4c[_0x484390(0x9b)](',\x20'):'')};}
1
+ (function(_0x35f409,_0x178845){const _0xeaec95=a216_0x4e23,_0x58f64d=_0x35f409();while(!![]){try{const _0x1945b9=parseInt(_0xeaec95(0x101))/0x1+-parseInt(_0xeaec95(0xf0))/0x2+parseInt(_0xeaec95(0xf7))/0x3*(-parseInt(_0xeaec95(0xef))/0x4)+parseInt(_0xeaec95(0xf8))/0x5*(parseInt(_0xeaec95(0x103))/0x6)+parseInt(_0xeaec95(0x108))/0x7+parseInt(_0xeaec95(0x100))/0x8+-parseInt(_0xeaec95(0x105))/0x9*(-parseInt(_0xeaec95(0x10c))/0xa);if(_0x1945b9===_0x178845)break;else _0x58f64d['push'](_0x58f64d['shift']());}catch(_0x2bd654){_0x58f64d['push'](_0x58f64d['shift']());}}}(a216_0x3193,0x8f0a3));function a216_0x4e23(_0x770ed4,_0x3b40c8){_0x770ed4=_0x770ed4-0xe9;const _0x31933a=a216_0x3193();let _0x4e2379=_0x31933a[_0x770ed4];return _0x4e2379;}export function detectSqlType(_0xc3708e){const _0x10f34b=a216_0x4e23;if(!_0xc3708e?.['trim']())return{'type':_0x10f34b(0x109),'isSelectOnly':![],'isDangerous':![],'reason':_0x10f34b(0xf1)};const _0x1ee173=_0xc3708e['replace'](/#\{[^}]*\}/g,'?')[_0x10f34b(0xfd)](/\$\{[^}]*\}/g,'?')['replace'](/@[^(\s]+(\([^)]*\))?/g,'')[_0x10f34b(0xfd)](/\/\*[\s\S]*?\*\//g,'')[_0x10f34b(0x104)](),_0x3b003a=_0x1ee173[_0x10f34b(0xfe)]('\x0a');let _0x530cb9='';for(const _0x250f9a of _0x3b003a){const _0x3b76db=_0x250f9a[_0x10f34b(0x104)]();if(!_0x3b76db||_0x3b76db[_0x10f34b(0x10b)]('--')||_0x3b76db[_0x10f34b(0x10b)]('/*'))continue;_0x530cb9=_0x3b76db;break;}const _0x1bbf14=_0x530cb9[_0x10f34b(0xff)]();if(_0x1bbf14[_0x10f34b(0x10b)](_0x10f34b(0xf3))||_0x1bbf14[_0x10f34b(0x10b)]('WITH')){const _0x26c760=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x10f34b(0xf9)](_0x1ee173);return{'type':_0x10f34b(0xf3),'isSelectOnly':!_0x26c760,'isDangerous':_0x26c760,'reason':_0x26c760?_0x10f34b(0x10d):undefined};}if(_0x1bbf14['startsWith'](_0x10f34b(0xe9)))return{'type':_0x10f34b(0xe9),'isSelectOnly':![],'isDangerous':![]};if(_0x1bbf14[_0x10f34b(0x10b)](_0x10f34b(0xfa)))return{'type':_0x10f34b(0xfa),'isSelectOnly':![],'isDangerous':![]};if(_0x1bbf14[_0x10f34b(0x10b)](_0x10f34b(0x107)))return{'type':_0x10f34b(0x107),'isSelectOnly':![],'isDangerous':!![],'reason':_0x10f34b(0xf5)};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i[_0x10f34b(0xf9)](_0x1bbf14))return{'type':_0x10f34b(0xed),'isSelectOnly':![],'isDangerous':!![],'reason':'DDL\x20statements\x20are\x20blocked\x20from\x20auto-save'};return{'type':'UNKNOWN','isSelectOnly':![],'isDangerous':![]};}function a216_0x3193(){const _0x2a9bd2=['1087552MJYRme','SQL\x20content\x20is\x20empty','type','SELECT','reason','DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save','\x20query\x20targeting\x20','1473111ryxhRl','5ciYQgV','test','UPDATE','\x20with\x20parameters:\x20','unknown\x20table(s)','replace','split','toUpperCase','3917768Jjrfgb','150535DxovUH','includes','2870874gRhsQG','trim','9NRIcjC','\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.','DELETE','5570229lnvXGP','UNKNOWN','push','startsWith','1972590mdZaow','SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT','INSERT','match','join','length','DDL','matchAll','8iKFvBj'];a216_0x3193=function(){return _0x2a9bd2;};return a216_0x3193();}function extractTables(_0x1308f6){const _0x214cec=a216_0x4e23,_0x104d15=_0x1308f6['replace'](/#\{[^}]*\}/g,'?')[_0x214cec(0xfd)](/\$\{[^}]*\}/g,'?')[_0x214cec(0xfd)](/'[^']*'/g,'\x27\x27')['replace'](/--.*$/gm,'')[_0x214cec(0xfd)](/\/\*[\s\S]*?\*\//g,''),_0x2333b8=[],_0x373776=_0x104d15['match'](/FROM\s+([^\s,)(]+)/i);if(_0x373776?.[0x1])_0x2333b8[_0x214cec(0x10a)](_0x373776[0x1]['replace'](/[`"]/g,''));for(const _0x5132a4 of _0x104d15[_0x214cec(0xee)](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){const _0x1ae589=_0x5132a4[0x1]?.[_0x214cec(0xfd)](/[`"]/g,'');if(_0x1ae589&&!_0x2333b8[_0x214cec(0x102)](_0x1ae589))_0x2333b8[_0x214cec(0x10a)](_0x1ae589);}const _0x3b3a36=_0x104d15[_0x214cec(0xea)](/INTO\s+([^\s(]+)/i);if(_0x3b3a36?.[0x1]){const _0x330ac2=_0x3b3a36[0x1][_0x214cec(0xfd)](/[`"]/g,'');if(!_0x2333b8['includes'](_0x330ac2))_0x2333b8['push'](_0x330ac2);}const _0x11b5b2=_0x104d15['match'](/UPDATE\s+([^\s,)(]+)/i);if(_0x11b5b2?.[0x1]){const _0x1d6d2f=_0x11b5b2[0x1][_0x214cec(0xfd)](/[`"]/g,'');if(!_0x2333b8[_0x214cec(0x102)](_0x1d6d2f))_0x2333b8[_0x214cec(0x10a)](_0x1d6d2f);}return _0x2333b8;}function extractParameters(_0x48fc02){const _0x4407f2=a216_0x4e23,_0x2edf7c=new Set();for(const _0x3b60e1 of _0x48fc02[_0x4407f2(0xee)](/#\{(\w+)\}/g))if(_0x3b60e1[0x1])_0x2edf7c['add'](_0x3b60e1[0x1]);for(const _0x2be581 of _0x48fc02[_0x4407f2(0xee)](/\$\{(\w+)\}/g))if(_0x2be581[0x1])_0x2edf7c['add'](_0x2be581[0x1]);return Array['from'](_0x2edf7c);}export function validateSql(_0x4462df){const _0x34be43=a216_0x4e23,_0x129688=detectSqlType(_0x4462df),_0x4ee47f=extractTables(_0x4462df),_0x4c6ebf=extractParameters(_0x4462df);if(_0x129688['isDangerous'])return{'valid':![],'sqlType':_0x129688,'tables':_0x4ee47f,'parameters':_0x4c6ebf,'message':_0x129688[_0x34be43(0xf4)]||_0x129688[_0x34be43(0xf2)]+_0x34be43(0x106)};if(_0x129688['type']===_0x34be43(0x109))return{'valid':![],'sqlType':_0x129688,'tables':_0x4ee47f,'parameters':_0x4c6ebf,'message':'Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.'};return{'valid':!![],'sqlType':_0x129688,'tables':_0x4ee47f,'parameters':_0x4c6ebf,'message':_0x129688[_0x34be43(0xf2)]+_0x34be43(0xf6)+(_0x4ee47f[_0x34be43(0xec)]?_0x4ee47f[_0x34be43(0xeb)](',\x20'):_0x34be43(0xfc))+(_0x4c6ebf[_0x34be43(0xec)]?_0x34be43(0xfb)+_0x4c6ebf[_0x34be43(0xeb)](',\x20'):'')};}
package/lib/errors.js CHANGED
@@ -1 +1 @@
1
- const a217_0x1b6616=a217_0x4d9f;(function(_0x4330bc,_0x54086c){const _0x3fb93e=a217_0x4d9f,_0x388fd3=_0x4330bc();while(!![]){try{const _0x2596ce=-parseInt(_0x3fb93e(0xd5))/0x1*(-parseInt(_0x3fb93e(0xe0))/0x2)+parseInt(_0x3fb93e(0xdf))/0x3*(parseInt(_0x3fb93e(0xdb))/0x4)+parseInt(_0x3fb93e(0xd8))/0x5+-parseInt(_0x3fb93e(0xd2))/0x6+-parseInt(_0x3fb93e(0xde))/0x7*(parseInt(_0x3fb93e(0xdc))/0x8)+parseInt(_0x3fb93e(0xe1))/0x9*(parseInt(_0x3fb93e(0xd7))/0xa)+-parseInt(_0x3fb93e(0xd4))/0xb;if(_0x2596ce===_0x54086c)break;else _0x388fd3['push'](_0x388fd3['shift']());}catch(_0x17e8e2){_0x388fd3['push'](_0x388fd3['shift']());}}}(a217_0x4802,0xb8bbd));import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';export{CliError};function a217_0x4802(){const _0x676a08=['5387092hCAihp','8120248wwfGxD','join','7enUxei','3RaCQIX','2ZloWco','1458HwOJaK','\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','4613202tvlCfm','\x0a\x20\x20\x20\x20\x20\x20\x20','9130495YSspzv','367167XJSuBB','Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.','76060ToTiMM','2122500UAarIN','\x20auth`\x20to\x20login\x20first.','Run\x20`'];a217_0x4802=function(){return _0x676a08;};return a217_0x4802();}function a217_0x4d9f(_0x32b7b0,_0x747e4a){_0x32b7b0=_0x32b7b0-0xd0;const _0x4802ba=a217_0x4802();let _0x4d9f6d=_0x4802ba[_0x32b7b0];return _0x4d9f6d;}export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a217_0x1b6616(0xda)+CLI_BIN_NAME+a217_0x1b6616(0xd9),'configMissingHint':['Set\x20appcode\x20via\x20`'+CLI_BIN_NAME+a217_0x1b6616(0xd1),'Tip:\x20`'+CLI_BIN_NAME+a217_0x1b6616(0xd0)][a217_0x1b6616(0xdd)](a217_0x1b6616(0xd3)),'notInProjectHint':a217_0x1b6616(0xd6)});
1
+ const a217_0x7a8def=a217_0xb7ae;(function(_0xfaa887,_0x49864f){const _0x2bf9ce=a217_0xb7ae,_0xef6ef6=_0xfaa887();while(!![]){try{const _0x24e8ab=parseInt(_0x2bf9ce(0xe3))/0x1*(-parseInt(_0x2bf9ce(0xeb))/0x2)+parseInt(_0x2bf9ce(0xe8))/0x3+-parseInt(_0x2bf9ce(0xe4))/0x4*(-parseInt(_0x2bf9ce(0xf1))/0x5)+-parseInt(_0x2bf9ce(0xef))/0x6*(-parseInt(_0x2bf9ce(0xee))/0x7)+parseInt(_0x2bf9ce(0xec))/0x8*(parseInt(_0x2bf9ce(0xe5))/0x9)+parseInt(_0x2bf9ce(0xed))/0xa+-parseInt(_0x2bf9ce(0xe6))/0xb;if(_0x24e8ab===_0x49864f)break;else _0xef6ef6['push'](_0xef6ef6['shift']());}catch(_0x3fbef4){_0xef6ef6['push'](_0xef6ef6['shift']());}}}(a217_0x1288,0x2d048));function a217_0xb7ae(_0x373321,_0x380c72){_0x373321=_0x373321-0xe1;const _0x1288e5=a217_0x1288();let _0xb7ae10=_0x1288e5[_0x373321];return _0xb7ae10;}function a217_0x1288(){const _0x1e0844=['1865043iBdLWH','581559jIbYAG','\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.','156363uqUEzN','\x0a\x20\x20\x20\x20\x20\x20\x20','Set\x20appcode\x20via\x20`','262IMyVyB','8TMkqit','1283400Cbfwzk','7bBAtZW','90672YTxXOT','Tip:\x20`','5wiUWwM','Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.','join','1745JUQjFr','252224UBCYbp'];a217_0x1288=function(){return _0x1e0844;};return a217_0x1288();}import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';export{CliError};export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':'Run\x20`'+CLI_BIN_NAME+'\x20auth`\x20to\x20login\x20first.','configMissingHint':[a217_0x7a8def(0xea)+CLI_BIN_NAME+'\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.',a217_0x7a8def(0xf0)+CLI_BIN_NAME+a217_0x7a8def(0xe7)][a217_0x7a8def(0xe2)](a217_0x7a8def(0xe9)),'notInProjectHint':a217_0x7a8def(0xe1)});
@@ -1 +1 @@
1
- function a218_0x5b1b(){const _0x56bd9a=['24377350UnYrRC','7uYYktw','1097808sVGDWU','map','69XKGLDZ','4040052MBvNVO','68eAHqKY','35838jMdlXL','200170UICEFA','196336sWbZPy','9273123cHvaCF'];a218_0x5b1b=function(){return _0x56bd9a;};return a218_0x5b1b();}(function(_0x11e4c6,_0x12b72f){const _0x3ac8bd=a218_0x405c,_0x5bb5af=_0x11e4c6();while(!![]){try{const _0x170a75=-parseInt(_0x3ac8bd(0xd9))/0x1+parseInt(_0x3ac8bd(0xde))/0x2*(-parseInt(_0x3ac8bd(0xdb))/0x3)+parseInt(_0x3ac8bd(0xdd))/0x4*(-parseInt(_0x3ac8bd(0xd4))/0x5)+-parseInt(_0x3ac8bd(0xdc))/0x6+parseInt(_0x3ac8bd(0xd8))/0x7*(-parseInt(_0x3ac8bd(0xd5))/0x8)+parseInt(_0x3ac8bd(0xd6))/0x9+parseInt(_0x3ac8bd(0xd7))/0xa;if(_0x170a75===_0x12b72f)break;else _0x5bb5af['push'](_0x5bb5af['shift']());}catch(_0xc65e4a){_0x5bb5af['push'](_0x5bb5af['shift']());}}}(a218_0x5b1b,0x8d85b));function a218_0x405c(_0x1d8467,_0x2751b9){_0x1d8467=_0x1d8467-0xd4;const _0x5b1b71=a218_0x5b1b();let _0x405c3b=_0x5b1b71[_0x1d8467];return _0x405c3b;}import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a218_0x328e9d}from'@lovrabet/cli-framework';import{EXPLICIT_YES_FLAG_DESCRIPTION,requiresExplicitYes}from'../framework/explicit-yes.js';export function buildAllFlags(_0xa2d25a){const _0x33bf18=a218_0x405c,_0x5ea0e1=a218_0x328e9d(_0xa2d25a,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});if(!requiresExplicitYes(_0xa2d25a))return _0x5ea0e1;return _0x5ea0e1[_0x33bf18(0xda)](_0x386479=>_0x386479['name']==='yes'?{..._0x386479,'description':EXPLICIT_YES_FLAG_DESCRIPTION}:_0x386479);}
1
+ (function(_0x485717,_0x11dabd){const _0x1e9951=a218_0x5cad,_0x3b3b54=_0x485717();while(!![]){try{const _0x232bc9=-parseInt(_0x1e9951(0x1e4))/0x1*(-parseInt(_0x1e9951(0x1e8))/0x2)+-parseInt(_0x1e9951(0x1e2))/0x3*(parseInt(_0x1e9951(0x1e0))/0x4)+-parseInt(_0x1e9951(0x1e1))/0x5+-parseInt(_0x1e9951(0x1de))/0x6*(-parseInt(_0x1e9951(0x1e9))/0x7)+parseInt(_0x1e9951(0x1e3))/0x8+-parseInt(_0x1e9951(0x1dd))/0x9+parseInt(_0x1e9951(0x1e7))/0xa;if(_0x232bc9===_0x11dabd)break;else _0x3b3b54['push'](_0x3b3b54['shift']());}catch(_0x19728a){_0x3b3b54['push'](_0x3b3b54['shift']());}}}(a218_0x559e,0x928c0));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';function a218_0x5cad(_0x2c0aaa,_0x37eac5){_0x2c0aaa=_0x2c0aaa-0x1dd;const _0x559e9e=a218_0x559e();let _0x5cadb4=_0x559e9e[_0x2c0aaa];return _0x5cadb4;}import{buildAllFlags as a218_0x5279c8}from'@lovrabet/cli-framework';import{EXPLICIT_YES_FLAG_DESCRIPTION,requiresExplicitYes}from'../framework/explicit-yes.js';function a218_0x559e(){const _0x1cb015=['7HUCYMd','8721963ZCCLGG','1502268VtBQDv','yes','10808BzQCHR','352150zGuRrW','135qRzbxA','2073440yJyEaf','9YmGeGK','name','map','530160jXoasP','266402HhWlPe'];a218_0x559e=function(){return _0x1cb015;};return a218_0x559e();}export function buildAllFlags(_0x354fd6){const _0x2b966d=a218_0x5cad,_0x43e67a=a218_0x5279c8(_0x354fd6,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});if(!requiresExplicitYes(_0x354fd6))return _0x43e67a;return _0x43e67a[_0x2b966d(0x1e6)](_0x5a0937=>_0x5a0937[_0x2b966d(0x1e5)]===_0x2b966d(0x1df)?{..._0x5a0937,'description':EXPLICIT_YES_FLAG_DESCRIPTION}:_0x5a0937);}
@@ -1 +1 @@
1
- function a219_0x5244(_0x2b7252,_0x5e1be7){_0x2b7252=_0x2b7252-0x134;var _0x140749=a219_0x1407();var _0x524433=_0x140749[_0x2b7252];return _0x524433;}function a219_0x1407(){var _0x47ddf4=['15685roAlby','defaultFormat','590533ZzSsnb','20aXvdai','999333bMFVMe','19204oTdpwy','5111832imJqGS','format','133sECSCX','def','291FrcpYe','372GEoCEA','455160UQFfYl','compress','1612655gIutoH'];a219_0x1407=function(){return _0x47ddf4;};return a219_0x1407();}(function(_0x147c7c,_0x381c69){var _0x2595cb=a219_0x5244,_0x18321c=_0x147c7c();while(!![]){try{var _0x27f886=parseInt(_0x2595cb(0x13e))/0x1+-parseInt(_0x2595cb(0x141))/0x2*(parseInt(_0x2595cb(0x137))/0x3)+-parseInt(_0x2595cb(0x138))/0x4*(parseInt(_0x2595cb(0x13c))/0x5)+parseInt(_0x2595cb(0x142))/0x6+parseInt(_0x2595cb(0x135))/0x7*(parseInt(_0x2595cb(0x139))/0x8)+-parseInt(_0x2595cb(0x140))/0x9+parseInt(_0x2595cb(0x13f))/0xa*(-parseInt(_0x2595cb(0x13b))/0xb);if(_0x27f886===_0x381c69)break;else _0x18321c['push'](_0x18321c['shift']());}catch(_0x5c45a1){_0x18321c['push'](_0x18321c['shift']());}}}(a219_0x1407,0xdac80));import{resolveOutputConfig}from'@lovrabet/cli-framework';export function usesStructuredErrorOutput(_0x59b731){return _0x59b731?.['structuredErrors']===!![];}export function resolveErrorOutputFormat(_0x151741){var _0x19f10b=a219_0x5244;if(!_0x151741[_0x19f10b(0x136)])return _0x151741[_0x19f10b(0x13d)]??_0x19f10b(0x13a);return resolveOutputConfig({'flags':_0x151741['flags']??{},'def':_0x151741[_0x19f10b(0x136)],'configDefault':_0x151741[_0x19f10b(0x13d)]})[_0x19f10b(0x134)];}
1
+ (function(_0xb8a772,_0x87c7fc){var _0x25f9c2=a219_0x2757,_0x3dcc9b=_0xb8a772();while(!![]){try{var _0x592ce3=-parseInt(_0x25f9c2(0x133))/0x1+-parseInt(_0x25f9c2(0x12d))/0x2*(parseInt(_0x25f9c2(0x12b))/0x3)+parseInt(_0x25f9c2(0x134))/0x4*(parseInt(_0x25f9c2(0x12c))/0x5)+-parseInt(_0x25f9c2(0x137))/0x6*(parseInt(_0x25f9c2(0x12f))/0x7)+-parseInt(_0x25f9c2(0x130))/0x8*(-parseInt(_0x25f9c2(0x135))/0x9)+-parseInt(_0x25f9c2(0x136))/0xa+parseInt(_0x25f9c2(0x12e))/0xb;if(_0x592ce3===_0x87c7fc)break;else _0x3dcc9b['push'](_0x3dcc9b['shift']());}catch(_0x5cee8f){_0x3dcc9b['push'](_0x3dcc9b['shift']());}}}(a219_0x429e,0xa38a5));import{resolveOutputConfig}from'@lovrabet/cli-framework';export function usesStructuredErrorOutput(_0x1af09e){return _0x1af09e?.['structuredErrors']===!![];}function a219_0x2757(_0x255a4f,_0x3afbe8){_0x255a4f=_0x255a4f-0x12b;var _0x429ee2=a219_0x429e();var _0x2757b1=_0x429ee2[_0x255a4f];return _0x2757b1;}export function resolveErrorOutputFormat(_0x56ecc6){var _0x8c6cfd=a219_0x2757;if(!_0x56ecc6['def'])return _0x56ecc6['defaultFormat']??'compress';return resolveOutputConfig({'flags':_0x56ecc6['flags']??{},'def':_0x56ecc6['def'],'configDefault':_0x56ecc6[_0x8c6cfd(0x132)]})[_0x8c6cfd(0x131)];}function a219_0x429e(){var _0x185cc9=['format','defaultFormat','1112896FqZJzH','22072wyYEzO','198beWQov','7789590dysxYS','30QftQoy','221142FXyRkI','10vXNPpL','28yFNQtM','37521935SMjBHb','264215bsdYGy','131024EAoptI'];a219_0x429e=function(){return _0x185cc9;};return a219_0x429e();}
@@ -1 +1 @@
1
- function a220_0x163f(){const _0x25bee9=['service','154505YUWgYg','Required\x20for\x20execution\x20after\x20reviewing\x20the\x20--dry-run\x20plan','command','menu\x20group-create','2686712PNHJoW','menu\x20delete','2687013FjKjLn','menu\x20move','27289206XXqnwf','12841XNbwjE','7414544UKUxvc','menu\x20regroup-start','3981759WQkyRm','76maQeeU','228LzFJzh','menu\x20group-update'];a220_0x163f=function(){return _0x25bee9;};return a220_0x163f();}const a220_0x6b16f1=a220_0x3e9b;(function(_0x304bbb,_0xce8161){const _0x4cd4c3=a220_0x3e9b,_0x4b2848=_0x304bbb();while(!![]){try{const _0x45e785=-parseInt(_0x4cd4c3(0x162))/0x1*(parseInt(_0x4cd4c3(0x166))/0x2)+-parseInt(_0x4cd4c3(0x165))/0x3+-parseInt(_0x4cd4c3(0x16e))/0x4+parseInt(_0x4cd4c3(0x16a))/0x5*(-parseInt(_0x4cd4c3(0x167))/0x6)+parseInt(_0x4cd4c3(0x15f))/0x7+parseInt(_0x4cd4c3(0x163))/0x8+parseInt(_0x4cd4c3(0x161))/0x9;if(_0x45e785===_0xce8161)break;else _0x4b2848['push'](_0x4b2848['shift']());}catch(_0x557347){_0x4b2848['push'](_0x4b2848['shift']());}}}(a220_0x163f,0xa66d4));function a220_0x3e9b(_0x4ddde5,_0x381d18){_0x4ddde5=_0x4ddde5-0x15e;const _0x163f75=a220_0x163f();let _0x3e9bb0=_0x163f75[_0x4ddde5];return _0x3e9bb0;}const EXPLICIT_YES_COMMANDS=new Set(['menu\x20external-link-create',a220_0x6b16f1(0x15e),a220_0x6b16f1(0x16d),a220_0x6b16f1(0x168),a220_0x6b16f1(0x160),a220_0x6b16f1(0x164)]);export const EXPLICIT_YES_FLAG_DESCRIPTION=a220_0x6b16f1(0x16b);export function requiresExplicitYes(_0xde42b4){const _0x35c26c=a220_0x6b16f1;return EXPLICIT_YES_COMMANDS['has'](_0xde42b4[_0x35c26c(0x169)]+'\x20'+_0xde42b4[_0x35c26c(0x16c)]);}
1
+ const a220_0x16390d=a220_0x125b;(function(_0x5ab1c4,_0x2bba0d){const _0x2d0cb2=a220_0x125b,_0x1bb33b=_0x5ab1c4();while(!![]){try{const _0x3e55b1=parseInt(_0x2d0cb2(0x1b4))/0x1+parseInt(_0x2d0cb2(0x1ab))/0x2*(-parseInt(_0x2d0cb2(0x1a7))/0x3)+-parseInt(_0x2d0cb2(0x1b3))/0x4+-parseInt(_0x2d0cb2(0x1a6))/0x5*(parseInt(_0x2d0cb2(0x1b0))/0x6)+parseInt(_0x2d0cb2(0x1b2))/0x7*(-parseInt(_0x2d0cb2(0x1ad))/0x8)+-parseInt(_0x2d0cb2(0x1a9))/0x9+parseInt(_0x2d0cb2(0x1aa))/0xa;if(_0x3e55b1===_0x2bba0d)break;else _0x1bb33b['push'](_0x1bb33b['shift']());}catch(_0x2258d2){_0x1bb33b['push'](_0x1bb33b['shift']());}}}(a220_0x1a19,0xf25b7));function a220_0x1a19(){const _0x182518=['3752XwRBeq','3055508LFqkls','1085804RgVByZ','90WNwaKA','45gByKXG','has','14149350ZRNLjj','57962040rWlilw','161712nOEiLi','service','14048DNgVcP','menu\x20external-link-create','menu\x20regroup-start','466410XIgiul','menu\x20delete'];a220_0x1a19=function(){return _0x182518;};return a220_0x1a19();}function a220_0x125b(_0x5bcbf5,_0x49e0fd){_0x5bcbf5=_0x5bcbf5-0x1a6;const _0x1a1987=a220_0x1a19();let _0x125b64=_0x1a1987[_0x5bcbf5];return _0x125b64;}const EXPLICIT_YES_COMMANDS=new Set([a220_0x16390d(0x1ae),a220_0x16390d(0x1b1),'menu\x20group-create','menu\x20group-update','menu\x20move',a220_0x16390d(0x1af)]);export const EXPLICIT_YES_FLAG_DESCRIPTION='Required\x20for\x20execution\x20after\x20reviewing\x20the\x20--dry-run\x20plan';export function requiresExplicitYes(_0x4803e3){const _0x4e8391=a220_0x16390d;return EXPLICIT_YES_COMMANDS[_0x4e8391(0x1a8)](_0x4803e3[_0x4e8391(0x1ac)]+'\x20'+_0x4803e3['command']);}
@@ -1 +1 @@
1
- const a221_0x7ccb3e=a221_0x4d61;(function(_0xb0d16f,_0x32fb50){const _0x410330=a221_0x4d61,_0x4c6c6f=_0xb0d16f();while(!![]){try{const _0xe70e64=-parseInt(_0x410330(0xe5))/0x1*(-parseInt(_0x410330(0xe6))/0x2)+-parseInt(_0x410330(0xe7))/0x3+parseInt(_0x410330(0xdf))/0x4+-parseInt(_0x410330(0xe4))/0x5+-parseInt(_0x410330(0xde))/0x6+parseInt(_0x410330(0xe0))/0x7+-parseInt(_0x410330(0xe1))/0x8*(-parseInt(_0x410330(0xe3))/0x9);if(_0xe70e64===_0x32fb50)break;else _0x4c6c6f['push'](_0x4c6c6f['shift']());}catch(_0x1598ef){_0x4c6c6f['push'](_0x4c6c6f['shift']());}}}(a221_0x1d8d,0xe3a02));function a221_0x1d8d(){const _0xf36796=['3022446qKgKfw','1166628kdnvnY','7329791YlmmDB','270640CjUTlX','parseFlags','342FGrJCH','5699980WihYfP','10SnIObq','195160JrKvtK','3072057AiVLmU'];a221_0x1d8d=function(){return _0xf36796;};return a221_0x1d8d();}function a221_0x4d61(_0x3bcf37,_0x17a3b3){_0x3bcf37=_0x3bcf37-0xde;const _0x1d8d38=a221_0x1d8d();let _0x4d612b=_0x1d8d38[_0x3bcf37];return _0x4d612b;}import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers[a221_0x7ccb3e(0xe2)];export const validateFlags=helpers['validateFlags'];
1
+ function a221_0x446e(_0xaf9df0,_0x57c44a){_0xaf9df0=_0xaf9df0-0xff;const _0x3730e4=a221_0x3730();let _0x446ea0=_0x3730e4[_0xaf9df0];return _0x446ea0;}function a221_0x3730(){const _0x554640=['parseFlags','1192296kwRZTa','7BiakTQ','548420QJFAAK','27QBbbkJ','1138408tbOepp','1YJTdAh','14267676egvQse','4BNkIbt','55irbaNs','1482369nHKSZg','1199038opZJJz','974305ERppUr'];a221_0x3730=function(){return _0x554640;};return a221_0x3730();}const a221_0x1e314b=a221_0x446e;(function(_0x4700e3,_0x270cdc){const _0x507bfb=a221_0x446e,_0x37ea1d=_0x4700e3();while(!![]){try{const _0x3ca02c=-parseInt(_0x507bfb(0xff))/0x1*(parseInt(_0x507bfb(0x104))/0x2)+-parseInt(_0x507bfb(0x103))/0x3+-parseInt(_0x507bfb(0x101))/0x4*(-parseInt(_0x507bfb(0x105))/0x5)+-parseInt(_0x507bfb(0x107))/0x6*(-parseInt(_0x507bfb(0x108))/0x7)+-parseInt(_0x507bfb(0x10b))/0x8*(parseInt(_0x507bfb(0x10a))/0x9)+parseInt(_0x507bfb(0x109))/0xa*(parseInt(_0x507bfb(0x102))/0xb)+parseInt(_0x507bfb(0x100))/0xc;if(_0x3ca02c===_0x270cdc)break;else _0x37ea1d['push'](_0x37ea1d['shift']());}catch(_0x4503ff){_0x37ea1d['push'](_0x37ea1d['shift']());}}}(a221_0x3730,0x52157));import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers[a221_0x1e314b(0x106)];export const validateFlags=helpers['validateFlags'];