@lovrabet/rabetbase-cli 2.3.6 → 2.3.7-beta.1

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 (241) 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/dry-run.js +1 -1
  48. package/lib/commands/common/flags.js +1 -1
  49. package/lib/commands/common/local-file.js +1 -0
  50. package/lib/commands/common/validate.js +1 -1
  51. package/lib/commands/config/get.js +1 -1
  52. package/lib/commands/config/index.js +1 -1
  53. package/lib/commands/config/list.js +1 -1
  54. package/lib/commands/config/set.js +1 -1
  55. package/lib/commands/config/shared.js +1 -1
  56. package/lib/commands/data/filter.js +1 -1
  57. package/lib/commands/data/getOne.js +1 -1
  58. package/lib/commands/data/index.js +1 -1
  59. package/lib/commands/data/shared.js +1 -1
  60. package/lib/commands/dataset/business-group-update.js +1 -1
  61. package/lib/commands/dataset/capability.js +1 -1
  62. package/lib/commands/dataset/delete.js +1 -1
  63. package/lib/commands/dataset/detail.js +1 -1
  64. package/lib/commands/dataset/extend-update.js +1 -1
  65. package/lib/commands/dataset/field-update.js +1 -1
  66. package/lib/commands/dataset/generate.js +1 -1
  67. package/lib/commands/dataset/index.js +1 -1
  68. package/lib/commands/dataset/list.js +1 -1
  69. package/lib/commands/dataset/operations.js +1 -1
  70. package/lib/commands/dataset/relation-audit.js +1 -1
  71. package/lib/commands/dataset/relation-create.js +1 -1
  72. package/lib/commands/dataset/relation-delete.js +1 -1
  73. package/lib/commands/dataset/relation-shared.js +1 -1
  74. package/lib/commands/dataset/relation-update.js +1 -1
  75. package/lib/commands/dataset/relations.js +1 -1
  76. package/lib/commands/dataset/rename.js +1 -1
  77. package/lib/commands/dataset/restore.js +1 -1
  78. package/lib/commands/db/analyze-cancel.js +1 -1
  79. package/lib/commands/db/analyze-start.js +1 -1
  80. package/lib/commands/db/analyze-status.js +1 -1
  81. package/lib/commands/db/create.js +1 -1
  82. package/lib/commands/db/delete.js +1 -1
  83. package/lib/commands/db/detail.js +1 -1
  84. package/lib/commands/db/diff.js +1 -1
  85. package/lib/commands/db/index.js +1 -1
  86. package/lib/commands/db/list.js +1 -1
  87. package/lib/commands/db/shared.js +1 -1
  88. package/lib/commands/db/tables.js +1 -1
  89. package/lib/commands/db/test.js +1 -1
  90. package/lib/commands/db/update.js +1 -1
  91. package/lib/commands/doctor.js +1 -1
  92. package/lib/commands/file/index.js +1 -0
  93. package/lib/commands/init/index.js +1 -1
  94. package/lib/commands/issue/index.js +1 -1
  95. package/lib/commands/issue/nudge.js +1 -1
  96. package/lib/commands/issue/report.js +1 -1
  97. package/lib/commands/issue/shared.js +1 -1
  98. package/lib/commands/logs/index.js +1 -1
  99. package/lib/commands/menu/index.js +1 -1
  100. package/lib/commands/menu/list.js +1 -1
  101. package/lib/commands/menu/shared/compare-table.js +1 -1
  102. package/lib/commands/menu/shared/index.js +1 -1
  103. package/lib/commands/menu/shared/inquirer.js +1 -1
  104. package/lib/commands/menu/shared/local-pages.js +1 -1
  105. package/lib/commands/menu/shared/logic.js +1 -1
  106. package/lib/commands/menu/shared/service.js +1 -1
  107. package/lib/commands/menu/shared/sync-core.js +1 -1
  108. package/lib/commands/menu/shared/update-core.js +1 -1
  109. package/lib/commands/menu/shared/valid-url.js +1 -1
  110. package/lib/commands/menu/sync.js +1 -1
  111. package/lib/commands/menu/update.js +1 -1
  112. package/lib/commands/page/generate-start.js +1 -1
  113. package/lib/commands/page/generate-status.js +1 -1
  114. package/lib/commands/page/index.js +1 -1
  115. package/lib/commands/page/pull.js +1 -1
  116. package/lib/commands/page/push.js +1 -1
  117. package/lib/commands/page/relation-audit.js +1 -1
  118. package/lib/commands/page/shared.js +1 -1
  119. package/lib/commands/page/standard-page-status.js +1 -1
  120. package/lib/commands/page/sync.js +1 -1
  121. package/lib/commands/permit/index.js +1 -1
  122. package/lib/commands/permit/page-get.js +1 -1
  123. package/lib/commands/permit/page-set.js +1 -1
  124. package/lib/commands/permit/role-apis-set.js +1 -1
  125. package/lib/commands/permit/role-menus-set.js +1 -1
  126. package/lib/commands/permit/role-menus.js +1 -1
  127. package/lib/commands/permit/shared.js +1 -1
  128. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  129. package/lib/commands/project/create/format-elapsed.js +1 -1
  130. package/lib/commands/project/create/main.js +1 -1
  131. package/lib/commands/project/create/non-interactive.js +1 -1
  132. package/lib/commands/project/create/project-template-path.js +1 -1
  133. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  134. package/lib/commands/project/create/use-format-code.js +1 -1
  135. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  136. package/lib/commands/project/index.js +1 -1
  137. package/lib/commands/project/init.js +1 -1
  138. package/lib/commands/project/upgrade.js +1 -1
  139. package/lib/commands/registry.js +1 -1
  140. package/lib/commands/role/create.js +1 -1
  141. package/lib/commands/role/delete.js +1 -1
  142. package/lib/commands/role/detail.js +1 -1
  143. package/lib/commands/role/index.js +1 -1
  144. package/lib/commands/role/list.js +1 -1
  145. package/lib/commands/role/shared.js +1 -1
  146. package/lib/commands/role/update.js +1 -1
  147. package/lib/commands/role/user-add.js +1 -1
  148. package/lib/commands/role/user-remove.js +1 -1
  149. package/lib/commands/role/user-resolve.js +1 -1
  150. package/lib/commands/run/index.js +1 -1
  151. package/lib/commands/schema.js +1 -1
  152. package/lib/commands/sql/create.js +1 -1
  153. package/lib/commands/sql/delete.js +1 -1
  154. package/lib/commands/sql/detail.js +1 -1
  155. package/lib/commands/sql/exec.js +1 -1
  156. package/lib/commands/sql/index.js +1 -1
  157. package/lib/commands/sql/list.js +1 -1
  158. package/lib/commands/sql/pull.js +1 -1
  159. package/lib/commands/sql/push.js +1 -1
  160. package/lib/commands/sql/save.js +1 -1
  161. package/lib/commands/sql/shared.js +1 -1
  162. package/lib/commands/sql/status.js +1 -1
  163. package/lib/commands/sql/validate.js +1 -1
  164. package/lib/commands/workspace/add.js +1 -1
  165. package/lib/commands/workspace/index.js +1 -1
  166. package/lib/commands/workspace/remove.js +1 -1
  167. package/lib/config/schema.js +1 -1
  168. package/lib/constant/cdn.js +1 -1
  169. package/lib/constant/cli.js +1 -1
  170. package/lib/constant/defaults.js +1 -1
  171. package/lib/constant/domain.js +1 -1
  172. package/lib/constant/env.js +1 -1
  173. package/lib/constant/output.js +1 -1
  174. package/lib/constant/paths.js +1 -1
  175. package/lib/constant/risk.js +1 -1
  176. package/lib/context/app-resolver.js +1 -1
  177. package/lib/context/auth-resolver.js +1 -1
  178. package/lib/context/config-loader.js +1 -1
  179. package/lib/context.js +1 -1
  180. package/lib/core/alias-resolver.js +1 -1
  181. package/lib/core/api-client.js +1 -1
  182. package/lib/core/bff/config.js +1 -1
  183. package/lib/core/bff/file-system.js +1 -1
  184. package/lib/core/bff/hash.js +1 -1
  185. package/lib/core/bff/lock.js +1 -1
  186. package/lib/core/bff/utils.js +1 -1
  187. package/lib/core/db-resolver.js +1 -1
  188. package/lib/core/page/file-system.js +1 -1
  189. package/lib/core/page/hash.js +1 -1
  190. package/lib/core/page/lock.js +1 -1
  191. package/lib/core/sql-sync/config.js +1 -1
  192. package/lib/core/sql-sync/file-system.js +1 -1
  193. package/lib/core/sql-sync/hash.js +1 -1
  194. package/lib/core/sql-sync/lock.js +1 -1
  195. package/lib/core/sql-sync/utils.js +1 -1
  196. package/lib/core/sql-validator.js +1 -1
  197. package/lib/errors.js +1 -1
  198. package/lib/framework/build-all-flags.js +1 -1
  199. package/lib/framework/flags.js +1 -1
  200. package/lib/framework/help.js +1 -1
  201. package/lib/framework/index.js +1 -1
  202. package/lib/framework/output.js +1 -1
  203. package/lib/framework/response.js +1 -1
  204. package/lib/framework/runner-alias.js +1 -1
  205. package/lib/framework/runner.js +1 -1
  206. package/lib/framework/schema-export.js +1 -1
  207. package/lib/framework/types.js +1 -1
  208. package/lib/generated/build-info.js +1 -1
  209. package/lib/help.js +1 -1
  210. package/lib/skills/main.js +1 -1
  211. package/lib/skills/npx-skills-add.js +1 -1
  212. package/lib/telemetry/cli-command-trace.js +1 -1
  213. package/lib/telemetry/cli-help-trace.js +1 -1
  214. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  215. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  216. package/lib/telemetry/send-cli-trace-log.js +1 -1
  217. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  218. package/lib/utils/ai_config.js +1 -1
  219. package/lib/utils/apply-jq-filter.js +1 -1
  220. package/lib/utils/cdn-config.js +1 -1
  221. package/lib/utils/check-sdk-version.js +1 -1
  222. package/lib/utils/cli-version-check.js +1 -1
  223. package/lib/utils/cli-version-policy.js +1 -1
  224. package/lib/utils/config.js +1 -1
  225. package/lib/utils/copy-directory.js +1 -1
  226. package/lib/utils/entity-with-id.js +1 -1
  227. package/lib/utils/file-utils.js +1 -1
  228. package/lib/utils/guides-cdn.js +1 -1
  229. package/lib/utils/http-client.js +1 -1
  230. package/lib/utils/is-non-interactive.js +1 -1
  231. package/lib/utils/logger.js +1 -1
  232. package/lib/utils/params.js +1 -1
  233. package/lib/utils/platform.js +1 -1
  234. package/lib/utils/rules-cdn.js +1 -1
  235. package/lib/utils/sleep.js +1 -1
  236. package/lib/utils/template-replacer.js +1 -1
  237. package/lib/utils/update-notice.js +1 -1
  238. package/lib/utils/version.js +1 -1
  239. package/lib/utils/with-active-cookie.js +1 -1
  240. package/lib/utils/write-cli-side-channel.js +1 -1
  241. package/package.json +1 -1
@@ -1 +1 @@
1
- const a181_0x270dc5=a181_0x1932;(function(_0xb6cc47,_0x25f24b){const _0x60987e=a181_0x1932,_0x416cd5=_0xb6cc47();while(!![]){try{const _0x54c0f6=-parseInt(_0x60987e(0x1e1))/0x1*(parseInt(_0x60987e(0x1d2))/0x2)+-parseInt(_0x60987e(0x1f8))/0x3+parseInt(_0x60987e(0x1f0))/0x4*(-parseInt(_0x60987e(0x1d1))/0x5)+-parseInt(_0x60987e(0x1e4))/0x6*(parseInt(_0x60987e(0x1d8))/0x7)+-parseInt(_0x60987e(0x1ea))/0x8*(parseInt(_0x60987e(0x1d3))/0x9)+parseInt(_0x60987e(0x1f1))/0xa*(parseInt(_0x60987e(0x1e3))/0xb)+-parseInt(_0x60987e(0x1ec))/0xc*(-parseInt(_0x60987e(0x1d9))/0xd);if(_0x54c0f6===_0x25f24b)break;else _0x416cd5['push'](_0x416cd5['shift']());}catch(_0x1799d0){_0x416cd5['push'](_0x416cd5['shift']());}}}(a181_0x3fe9,0xcdf35));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',a181_0x270dc5(0x1dd),a181_0x270dc5(0x1e8)];export function normalizeBffType(_0x1c3183){const _0x37b3ca=a181_0x270dc5;if(!_0x1c3183)return undefined;const _0x1d67e1=_0x1c3183[_0x37b3ca(0x1da)]()['toUpperCase']();return SUPPORTED_BFF_TYPES[_0x37b3ca(0x1f5)](_0x1d67e1)?_0x1d67e1:undefined;}async function scanJsFilesRecursively(_0x455230,_0x5ed6fa){const _0x4d2eb1=a181_0x270dc5,_0x579626=[];try{const _0x47d869=await readdir(_0x455230,{'withFileTypes':!![]});for(const _0x2ef39a of _0x47d869){const _0x2733aa=join(_0x455230,_0x2ef39a[_0x4d2eb1(0x1eb)]);if(_0x2ef39a[_0x4d2eb1(0x1df)]())_0x579626[_0x4d2eb1(0x1f9)](...await scanJsFilesRecursively(_0x2733aa,_0x5ed6fa+'/'+_0x2ef39a[_0x4d2eb1(0x1eb)]));else _0x2ef39a[_0x4d2eb1(0x1f3)]()&&_0x2ef39a[_0x4d2eb1(0x1eb)][_0x4d2eb1(0x1de)](_0x4d2eb1(0x1f2))&&_0x579626[_0x4d2eb1(0x1f9)]({'lockKey':_0x5ed6fa+'/'+_0x2ef39a[_0x4d2eb1(0x1eb)]['replace'](/\.js$/,''),'filePath':_0x2733aa});}}catch(_0x39e86a){if(_0x39e86a['code']!==_0x4d2eb1(0x1db))throw _0x39e86a;}return _0x579626;}async function scanFlatFunctions(_0x6185a2,_0x4f5968){const _0x33f3c5=a181_0x270dc5,_0x19de6e=join(_0x6185a2['scriptsRootDir'],_0x4f5968),_0x1f3073=await scanJsFilesRecursively(_0x19de6e,_0x4f5968);return _0x1f3073[_0x33f3c5(0x1e9)](({lockKey:_0x4fc4b9,filePath:_0x55454c})=>({'type':_0x4f5968,'name':_0x4fc4b9[_0x33f3c5(0x1d5)]('/')['at'](-0x1)??'','filePath':_0x55454c,'lockKey':_0x4fc4b9}));}async function scanHookFunctions(_0x4cc666){const _0x2e8f9b=a181_0x270dc5,_0x3b4f97=join(_0x4cc666['scriptsRootDir'],_0x2e8f9b(0x1e8)),_0x137460=[];try{const _0x324ed7=await readdir(_0x3b4f97,{'withFileTypes':!![]});for(const _0x39cbcc of _0x324ed7){if(!_0x39cbcc['isDirectory']())continue;const _0x20a3b1=_0x39cbcc[_0x2e8f9b(0x1eb)],_0x26b11e=join(_0x3b4f97,_0x20a3b1),_0x4d8a1f=await readdir(_0x26b11e,{'withFileTypes':!![]});for(const _0xf86df9 of _0x4d8a1f){if(!_0xf86df9[_0x2e8f9b(0x1df)]())continue;const _0x5d4b40=_0xf86df9[_0x2e8f9b(0x1eb)],_0x13814f=join(_0x26b11e,_0x5d4b40),_0x5233f6=await readdir(_0x13814f,{'withFileTypes':!![]});for(const _0x471c58 of _0x5233f6){if(!_0x471c58[_0x2e8f9b(0x1df)]())continue;const _0x1b2d16=_0x471c58['name'],_0x1bc61e=join(_0x13814f,_0x1b2d16),_0x758251=await readdir(_0x1bc61e,{'withFileTypes':!![]});for(const _0x171fa6 of _0x758251){if(!_0x171fa6[_0x2e8f9b(0x1f3)]()||!_0x171fa6[_0x2e8f9b(0x1eb)][_0x2e8f9b(0x1de)](_0x2e8f9b(0x1f2)))continue;const _0x81739e=_0x171fa6['name']['replace'](/\.js$/,'');_0x137460[_0x2e8f9b(0x1f9)]({'type':'HOOK','name':_0x81739e,'filePath':join(_0x1bc61e,_0x171fa6['name']),'lockKey':_0x2e8f9b(0x1e6)+_0x20a3b1+'/'+_0x5d4b40+'/'+_0x1b2d16+'/'+_0x81739e,'alias':_0x20a3b1,'operationType':_0x5d4b40,'functionNode':_0x1b2d16});}}}}}catch(_0x318d09){if(_0x318d09[_0x2e8f9b(0x1f7)]!==_0x2e8f9b(0x1db))throw _0x318d09;}return _0x137460;}export async function scanLocalBffFunctions(_0x1d01ac,_0x1da32c){const _0x5e861c=a181_0x270dc5;if(_0x1da32c===_0x5e861c(0x1fa)||_0x1da32c==='ENDPOINT')return scanFlatFunctions(_0x1d01ac,_0x1da32c);if(_0x1da32c==='HOOK')return scanHookFunctions(_0x1d01ac);const [_0x52375e,_0x422bc2,_0xb3dfff]=await Promise[_0x5e861c(0x1dc)]([scanFlatFunctions(_0x1d01ac,_0x5e861c(0x1fa)),scanFlatFunctions(_0x1d01ac,_0x5e861c(0x1dd)),scanHookFunctions(_0x1d01ac)]);return[..._0x52375e,..._0x422bc2,..._0xb3dfff];}export function resolveLocalFilePathFromLockKey(_0x2d0b34,_0x4ce961){const _0x50122d=a181_0x270dc5;return join(_0x2d0b34[_0x50122d(0x1ef)],..._0x4ce961['split']('/'))+_0x50122d(0x1f2);}function a181_0x1932(_0x58dcf8,_0x159010){_0x58dcf8=_0x58dcf8-0x1cf;const _0x3fe949=a181_0x3fe9();let _0x19322b=_0x3fe949[_0x58dcf8];return _0x19322b;}export function createHookLocationMap(_0x522db7){const _0x1cc20c=a181_0x270dc5,_0x306c6d=new Map();for(const _0x5bc8ae of _0x522db7){_0x5bc8ae[_0x1cc20c(0x1f6)]&&_0x306c6d[_0x1cc20c(0x1e2)](_0x5bc8ae[_0x1cc20c(0x1f6)],{'datasetCode':_0x5bc8ae['datasetCode'],'operationType':snakeToCamel(_0x5bc8ae[_0x1cc20c(0x1ed)]),'functionNode':_0x1cc20c(0x1d7)}),_0x5bc8ae[_0x1cc20c(0x1e5)]&&_0x306c6d[_0x1cc20c(0x1e2)](_0x5bc8ae[_0x1cc20c(0x1e5)],{'datasetCode':_0x5bc8ae['datasetCode'],'operationType':snakeToCamel(_0x5bc8ae['operationType']),'functionNode':_0x1cc20c(0x1d6)});}return _0x306c6d;}export function resolveRemoteScriptTarget(_0x5e545d,_0x1aa6f1,_0x11ea12,_0x215630,_0x549de6){const _0x2d14c4=a181_0x270dc5,_0x477d59=normalizeBffType(_0x1aa6f1[_0x2d14c4(0x1f4)]);if(!_0x477d59||!_0x1aa6f1[_0x2d14c4(0x1cf)])return null;if(_0x477d59===_0x2d14c4(0x1e8)){const _0x1fdba4=(_0x1aa6f1['id']?_0x11ea12['get'](_0x1aa6f1['id']):undefined)??findHookLocationByRemoteId(_0x215630,_0x1aa6f1['id']);if(!_0x1fdba4)return null;const _0x162c35=_0x1fdba4[_0x2d14c4(0x1e7)]||_0x549de6[_0x2d14c4(0x1d4)](_0x1fdba4[_0x2d14c4(0x1d0)]),_0x248f6f=_0x162c35??_0x1fdba4[_0x2d14c4(0x1d0)],_0x3a2bb8={..._0x1fdba4,'alias':_0x162c35},_0x3d093c='HOOK/'+_0x248f6f+'/'+_0x3a2bb8[_0x2d14c4(0x1ed)]+'/'+_0x3a2bb8[_0x2d14c4(0x1e0)]+'/'+_0x1aa6f1['functionName'];return{'lockKey':_0x3d093c,'filePath':resolveLocalFilePathFromLockKey(_0x5e545d,_0x3d093c),'type':_0x2d14c4(0x1e8),'hookLocation':_0x3a2bb8};}const _0x942084=_0x477d59+'/'+_0x1aa6f1[_0x2d14c4(0x1cf)];return{'lockKey':_0x942084,'filePath':resolveLocalFilePathFromLockKey(_0x5e545d,_0x942084),'type':_0x477d59};}export async function ensureParentDirectory(_0x4f756a){await mkdir(dirname(_0x4f756a),{'recursive':!![]});}export async function fileExists(_0xeba18d){const _0x488942=a181_0x270dc5;try{return await access(_0xeba18d,constants[_0x488942(0x1ee)]),!![];}catch{return![];}}function a181_0x3fe9(){const _0x36a741=['get','split','after','before','7xRIfCr','61380683fdMdSM','trim','ENOENT','all','ENDPOINT','endsWith','isDirectory','functionNode','2269swqAhl','set','11ktCHFE','6355266TCrkfH','afterScriptId','HOOK/','alias','HOOK','map','24aTVUOP','name','12SLqfkd','operationType','F_OK','scriptsRootDir','3004DPvcGb','4457770ISyeCq','.js','isFile','scriptType','includes','beforeScriptId','code','1762428wqGWUQ','push','COMMON','functionName','datasetCode','9615vGjxFG','668vhMumb','1425267GHdLeD'];a181_0x3fe9=function(){return _0x36a741;};return a181_0x3fe9();}export async function directoryExists(_0x21f9f8){try{const _0x2ea1ca=await stat(_0x21f9f8);return _0x2ea1ca['isDirectory']();}catch{return![];}}
1
+ const a183_0x1737ee=a183_0x2a47;(function(_0x54cda4,_0x277662){const _0x2df73d=a183_0x2a47,_0x53186e=_0x54cda4();while(!![]){try{const _0x28b770=-parseInt(_0x2df73d(0x98))/0x1*(-parseInt(_0x2df73d(0xa0))/0x2)+-parseInt(_0x2df73d(0x9e))/0x3*(-parseInt(_0x2df73d(0x90))/0x4)+-parseInt(_0x2df73d(0xa4))/0x5*(-parseInt(_0x2df73d(0xa7))/0x6)+-parseInt(_0x2df73d(0x8a))/0x7*(-parseInt(_0x2df73d(0x9d))/0x8)+-parseInt(_0x2df73d(0xaa))/0x9*(parseInt(_0x2df73d(0xa9))/0xa)+parseInt(_0x2df73d(0x86))/0xb+-parseInt(_0x2df73d(0x9a))/0xc;if(_0x28b770===_0x277662)break;else _0x53186e['push'](_0x53186e['shift']());}catch(_0x43e1cd){_0x53186e['push'](_0x53186e['shift']());}}}(a183_0x4210,0x9d843));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=[a183_0x1737ee(0xa5),a183_0x1737ee(0xa8),a183_0x1737ee(0x92)];export function normalizeBffType(_0xdb9b10){const _0x19d50a=a183_0x1737ee;if(!_0xdb9b10)return undefined;const _0x1a2af7=_0xdb9b10[_0x19d50a(0x9f)]()['toUpperCase']();return SUPPORTED_BFF_TYPES['includes'](_0x1a2af7)?_0x1a2af7:undefined;}async function scanJsFilesRecursively(_0xd353ce,_0x36db02){const _0x26507d=a183_0x1737ee,_0x3d992e=[];try{const _0x4a2a49=await readdir(_0xd353ce,{'withFileTypes':!![]});for(const _0x212f3c of _0x4a2a49){const _0x5a6241=join(_0xd353ce,_0x212f3c['name']);if(_0x212f3c[_0x26507d(0xa3)]())_0x3d992e[_0x26507d(0x87)](...await scanJsFilesRecursively(_0x5a6241,_0x36db02+'/'+_0x212f3c[_0x26507d(0x91)]));else _0x212f3c[_0x26507d(0x93)]()&&_0x212f3c['name'][_0x26507d(0xac)](_0x26507d(0x8e))&&_0x3d992e[_0x26507d(0x87)]({'lockKey':_0x36db02+'/'+_0x212f3c[_0x26507d(0x91)][_0x26507d(0x95)](/\.js$/,''),'filePath':_0x5a6241});}}catch(_0x12a303){if(_0x12a303[_0x26507d(0x94)]!==_0x26507d(0x9c))throw _0x12a303;}return _0x3d992e;}async function scanFlatFunctions(_0x5f2aa1,_0x3c54fb){const _0x23f45b=a183_0x1737ee,_0x1838d7=join(_0x5f2aa1[_0x23f45b(0x88)],_0x3c54fb),_0x58c83e=await scanJsFilesRecursively(_0x1838d7,_0x3c54fb);return _0x58c83e[_0x23f45b(0x99)](({lockKey:_0x29f49e,filePath:_0x3b4fa6})=>({'type':_0x3c54fb,'name':_0x29f49e['split']('/')['at'](-0x1)??'','filePath':_0x3b4fa6,'lockKey':_0x29f49e}));}function a183_0x4210(){const _0x3e91fc=['code','replace','datasetCode','get','31GDCnRR','map','10836768LzlrnA','beforeScriptId','ENOENT','6918904jdlbbd','15GvUdFp','trim','1622IHkyDJ','alias','operationType','isDirectory','18895HbQIWR','COMMON','set','348qoMnIx','ENDPOINT','6218650vmwfNm','9nPBOKb','after','endsWith','5038495zkJpDX','push','scriptsRootDir','before','7iDTfTu','functionName','HOOK/','afterScriptId','.js','F_OK','482308YPykGw','name','HOOK','isFile'];a183_0x4210=function(){return _0x3e91fc;};return a183_0x4210();}async function scanHookFunctions(_0x3b6e9f){const _0x3f8fb3=a183_0x1737ee,_0x15dc75=join(_0x3b6e9f[_0x3f8fb3(0x88)],'HOOK'),_0xc7d348=[];try{const _0x4f5f4b=await readdir(_0x15dc75,{'withFileTypes':!![]});for(const _0x6a5410 of _0x4f5f4b){if(!_0x6a5410[_0x3f8fb3(0xa3)]())continue;const _0x47da3d=_0x6a5410['name'],_0x5ead5a=join(_0x15dc75,_0x47da3d),_0xca5c4a=await readdir(_0x5ead5a,{'withFileTypes':!![]});for(const _0x406a91 of _0xca5c4a){if(!_0x406a91['isDirectory']())continue;const _0x3ef992=_0x406a91[_0x3f8fb3(0x91)],_0x4929d1=join(_0x5ead5a,_0x3ef992),_0x9a971a=await readdir(_0x4929d1,{'withFileTypes':!![]});for(const _0x1146f1 of _0x9a971a){if(!_0x1146f1[_0x3f8fb3(0xa3)]())continue;const _0x1098fd=_0x1146f1[_0x3f8fb3(0x91)],_0x50cde8=join(_0x4929d1,_0x1098fd),_0x4c82cb=await readdir(_0x50cde8,{'withFileTypes':!![]});for(const _0x354099 of _0x4c82cb){if(!_0x354099[_0x3f8fb3(0x93)]()||!_0x354099['name'][_0x3f8fb3(0xac)](_0x3f8fb3(0x8e)))continue;const _0x4c4c98=_0x354099[_0x3f8fb3(0x91)][_0x3f8fb3(0x95)](/\.js$/,'');_0xc7d348['push']({'type':_0x3f8fb3(0x92),'name':_0x4c4c98,'filePath':join(_0x50cde8,_0x354099[_0x3f8fb3(0x91)]),'lockKey':'HOOK/'+_0x47da3d+'/'+_0x3ef992+'/'+_0x1098fd+'/'+_0x4c4c98,'alias':_0x47da3d,'operationType':_0x3ef992,'functionNode':_0x1098fd});}}}}}catch(_0x17184e){if(_0x17184e[_0x3f8fb3(0x94)]!=='ENOENT')throw _0x17184e;}return _0xc7d348;}export async function scanLocalBffFunctions(_0x3e7130,_0x5ef936){const _0x4bf654=a183_0x1737ee;if(_0x5ef936===_0x4bf654(0xa5)||_0x5ef936===_0x4bf654(0xa8))return scanFlatFunctions(_0x3e7130,_0x5ef936);if(_0x5ef936===_0x4bf654(0x92))return scanHookFunctions(_0x3e7130);const [_0x3cd456,_0x37d88d,_0x566549]=await Promise['all']([scanFlatFunctions(_0x3e7130,_0x4bf654(0xa5)),scanFlatFunctions(_0x3e7130,'ENDPOINT'),scanHookFunctions(_0x3e7130)]);return[..._0x3cd456,..._0x37d88d,..._0x566549];}export function resolveLocalFilePathFromLockKey(_0x3e764d,_0x3b3c2d){const _0x2acb4c=a183_0x1737ee;return join(_0x3e764d[_0x2acb4c(0x88)],..._0x3b3c2d['split']('/'))+'.js';}export function createHookLocationMap(_0x365415){const _0xdde67f=a183_0x1737ee,_0x3640c9=new Map();for(const _0x411ef6 of _0x365415){_0x411ef6['beforeScriptId']&&_0x3640c9[_0xdde67f(0xa6)](_0x411ef6[_0xdde67f(0x9b)],{'datasetCode':_0x411ef6[_0xdde67f(0x96)],'operationType':snakeToCamel(_0x411ef6[_0xdde67f(0xa2)]),'functionNode':_0xdde67f(0x89)}),_0x411ef6[_0xdde67f(0x8d)]&&_0x3640c9[_0xdde67f(0xa6)](_0x411ef6[_0xdde67f(0x8d)],{'datasetCode':_0x411ef6[_0xdde67f(0x96)],'operationType':snakeToCamel(_0x411ef6['operationType']),'functionNode':_0xdde67f(0xab)});}return _0x3640c9;}export function resolveRemoteScriptTarget(_0x31e842,_0x55e046,_0x54b1f5,_0x34b33a,_0x1edc6e){const _0x5ba74c=a183_0x1737ee,_0x1258b9=normalizeBffType(_0x55e046['scriptType']);if(!_0x1258b9||!_0x55e046[_0x5ba74c(0x8b)])return null;if(_0x1258b9===_0x5ba74c(0x92)){const _0x39e118=(_0x55e046['id']?_0x54b1f5[_0x5ba74c(0x97)](_0x55e046['id']):undefined)??findHookLocationByRemoteId(_0x34b33a,_0x55e046['id']);if(!_0x39e118)return null;const _0x331694=_0x39e118[_0x5ba74c(0xa1)]||_0x1edc6e[_0x5ba74c(0x97)](_0x39e118[_0x5ba74c(0x96)]),_0x16ed62=_0x331694??_0x39e118[_0x5ba74c(0x96)],_0x28adef={..._0x39e118,'alias':_0x331694},_0x54626c=_0x5ba74c(0x8c)+_0x16ed62+'/'+_0x28adef[_0x5ba74c(0xa2)]+'/'+_0x28adef['functionNode']+'/'+_0x55e046[_0x5ba74c(0x8b)];return{'lockKey':_0x54626c,'filePath':resolveLocalFilePathFromLockKey(_0x31e842,_0x54626c),'type':_0x5ba74c(0x92),'hookLocation':_0x28adef};}const _0x8d4077=_0x1258b9+'/'+_0x55e046[_0x5ba74c(0x8b)];return{'lockKey':_0x8d4077,'filePath':resolveLocalFilePathFromLockKey(_0x31e842,_0x8d4077),'type':_0x1258b9};}export async function ensureParentDirectory(_0x18b2d3){await mkdir(dirname(_0x18b2d3),{'recursive':!![]});}function a183_0x2a47(_0x1862f0,_0x52f691){_0x1862f0=_0x1862f0-0x86;const _0x421088=a183_0x4210();let _0x2a4790=_0x421088[_0x1862f0];return _0x2a4790;}export async function fileExists(_0x40d34a){const _0x2b23b5=a183_0x1737ee;try{return await access(_0x40d34a,constants[_0x2b23b5(0x8f)]),!![];}catch{return![];}}export async function directoryExists(_0x4dd07f){try{const _0x17b0f5=await stat(_0x4dd07f);return _0x17b0f5['isDirectory']();}catch{return![];}}
@@ -1 +1 @@
1
- function a182_0x5488(_0x350fe8,_0x5f2835){_0x350fe8=_0x350fe8-0x16f;const _0x5a3497=a182_0x5a34();let _0x548835=_0x5a3497[_0x350fe8];return _0x548835;}(function(_0x5d6037,_0x59200e){const _0x4c564c=a182_0x5488,_0x150b1c=_0x5d6037();while(!![]){try{const _0x400caa=-parseInt(_0x4c564c(0x179))/0x1+parseInt(_0x4c564c(0x174))/0x2*(parseInt(_0x4c564c(0x16f))/0x3)+parseInt(_0x4c564c(0x173))/0x4+parseInt(_0x4c564c(0x171))/0x5+parseInt(_0x4c564c(0x176))/0x6*(parseInt(_0x4c564c(0x172))/0x7)+-parseInt(_0x4c564c(0x175))/0x8+-parseInt(_0x4c564c(0x170))/0x9*(-parseInt(_0x4c564c(0x178))/0xa);if(_0x400caa===_0x59200e)break;else _0x150b1c['push'](_0x150b1c['shift']());}catch(_0x6c3ef7){_0x150b1c['push'](_0x150b1c['shift']());}}}(a182_0x5a34,0xabfbf));import{readFile}from'node:fs/promises';import a182_0x536a5a from'node:crypto';export function computeContentHash(_0x216455){const _0x5c5283=a182_0x5488;return a182_0x536a5a['createHash'](_0x5c5283(0x17c))[_0x5c5283(0x17a)](_0x216455)[_0x5c5283(0x177)](_0x5c5283(0x17b));}function a182_0x5a34(){const _0x4f8f38=['4101855bIqfDc','1312024MBtrPT','1182576bQfElT','2edKfhd','2083376KjaPDf','12ByEJkN','digest','80yKjAmb','1206555gMGErG','update','hex','md5','1940667nXcWVb','37863tbhdPR'];a182_0x5a34=function(){return _0x4f8f38;};return a182_0x5a34();}export async function computeFileHash(_0x9ab83d){const _0x2a1a1c=await readFile(_0x9ab83d,'utf8');return computeContentHash(_0x2a1a1c);}
1
+ (function(_0x1fb640,_0x335637){const _0x24a9c5=a184_0x76c4,_0xde89a0=_0x1fb640();while(!![]){try{const _0xc3ea8b=-parseInt(_0x24a9c5(0x193))/0x1+parseInt(_0x24a9c5(0x190))/0x2*(parseInt(_0x24a9c5(0x188))/0x3)+parseInt(_0x24a9c5(0x18a))/0x4+-parseInt(_0x24a9c5(0x18d))/0x5*(-parseInt(_0x24a9c5(0x195))/0x6)+parseInt(_0x24a9c5(0x189))/0x7+-parseInt(_0x24a9c5(0x18e))/0x8*(-parseInt(_0x24a9c5(0x192))/0x9)+-parseInt(_0x24a9c5(0x194))/0xa;if(_0xc3ea8b===_0x335637)break;else _0xde89a0['push'](_0xde89a0['shift']());}catch(_0x5c553d){_0xde89a0['push'](_0xde89a0['shift']());}}}(a184_0xf858,0x250bb));import{readFile}from'node:fs/promises';import a184_0x261419 from'node:crypto';export function computeContentHash(_0x1c3ffb){const _0xc9d981=a184_0x76c4;return a184_0x261419[_0xc9d981(0x18c)](_0xc9d981(0x187))['update'](_0x1c3ffb)[_0xc9d981(0x18b)](_0xc9d981(0x18f));}export async function computeFileHash(_0x38f2c7){const _0x4f283c=a184_0x76c4,_0x53db7d=await readFile(_0x38f2c7,_0x4f283c(0x191));return computeContentHash(_0x53db7d);}function a184_0x76c4(_0x141dbc,_0xd496ab){_0x141dbc=_0x141dbc-0x187;const _0xf858f3=a184_0xf858();let _0x76c427=_0xf858f3[_0x141dbc];return _0x76c427;}function a184_0xf858(){const _0x258297=['40530ZNQQBv','937596vKcKeV','digest','createHash','20mQlVAn','2173648fTLwfx','hex','106UilQrd','utf8','9FROstY','210561ijnXxG','2343200HwYgAI','75174KmhgAe','md5','1959LzlOPg'];a184_0xf858=function(){return _0x258297;};return a184_0xf858();}
@@ -1 +1 @@
1
- (function(_0x597cc6,_0x1a03a0){const _0x53658b=a183_0x4e0a,_0x38a9b7=_0x597cc6();while(!![]){try{const _0x21a579=-parseInt(_0x53658b(0x10a))/0x1+parseInt(_0x53658b(0x102))/0x2+parseInt(_0x53658b(0x108))/0x3+-parseInt(_0x53658b(0x107))/0x4+-parseInt(_0x53658b(0x100))/0x5+-parseInt(_0x53658b(0x101))/0x6+parseInt(_0x53658b(0x103))/0x7;if(_0x21a579===_0x1a03a0)break;else _0x38a9b7['push'](_0x38a9b7['shift']());}catch(_0x5b8379){_0x38a9b7['push'](_0x38a9b7['shift']());}}}(a183_0x8949,0xe7914));import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';export function createEmptyBffLock(){return{'apps':{}};}export function ensureLockScope(_0x4f2402,_0x11d990,_0x205867,_0x23c01c){const _0x5654c6=a183_0x4e0a,_0x1f5d60={'apps':_0x4f2402[_0x5654c6(0xfc)]&&typeof _0x4f2402[_0x5654c6(0xfc)]===_0x5654c6(0x106)?_0x4f2402['apps']:{}};let _0x148401=_0x1f5d60[_0x5654c6(0xfc)][_0x11d990];if(!_0x148401)return _0x148401={'scriptsRoot':_0x205867,'lastSync':'','functions':{}},_0x1f5d60[_0x5654c6(0xfc)][_0x11d990]=_0x148401,{'lockData':_0x1f5d60,'appLock':_0x148401};if(!_0x148401[_0x5654c6(0x10d)])_0x148401['scriptsRoot']=_0x205867;else{if(_0x148401[_0x5654c6(0x10d)]!==_0x205867)throw new Error(_0x23c01c+':\x20scriptsRoot\x20mismatch\x20—\x20'+(_0x5654c6(0x10b)+_0x205867+'\x22\x20vs\x20lock\x20\x22'+_0x148401[_0x5654c6(0x10d)]+_0x5654c6(0x10e))+_0x5654c6(0x109));}return!_0x148401[_0x5654c6(0xfe)]&&(_0x148401[_0x5654c6(0xfe)]={}),!_0x148401['lastSync']&&(_0x148401[_0x5654c6(0xff)]=''),{'lockData':_0x1f5d60,'appLock':_0x148401};}export async function readBffLockFile(_0x1aa1b8){const _0x30d01f=a183_0x4e0a;try{const _0x3d2c76=await readFile(_0x1aa1b8,'utf8'),_0x787c7d=JSON[_0x30d01f(0x104)](_0x3d2c76);return{'apps':_0x787c7d[_0x30d01f(0xfc)]&&typeof _0x787c7d[_0x30d01f(0xfc)]===_0x30d01f(0x106)?_0x787c7d['apps']:{}};}catch(_0x5527a8){if(_0x5527a8['code']===_0x30d01f(0xfd))return null;throw new Error(_0x30d01f(0x105)+String(_0x5527a8));}}function a183_0x4e0a(_0x32a80c,_0x51421d){_0x32a80c=_0x32a80c-0xfb;const _0x894997=a183_0x8949();let _0x4e0a34=_0x894997[_0x32a80c];return _0x4e0a34;}export async function writeBffLockFile(_0x462e69,_0x5dd107){const _0xde2e0e=a183_0x4e0a;await mkdir(dirname(_0x462e69),{'recursive':!![]}),await writeFile(_0x462e69,JSON[_0xde2e0e(0xfb)](_0x5dd107,null,0x2),_0xde2e0e(0x10c));}function a183_0x8949(){const _0x4a54b7=['stringify','apps','ENOENT','functions','lastSync','1204520xlPoju','8222382QlTWLF','1597738VEsVRB','12472593WSTFMp','parse','Failed\x20to\x20read\x20BFF\x20lock\x20file:\x20','object','969324hCPILV','5065098zmNSlg','Check\x20.rabetbase/bff.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.','1466902wQHvwj','current\x20\x22','utf8','scriptsRoot','\x22.\x20'];a183_0x8949=function(){return _0x4a54b7;};return a183_0x8949();}
1
+ function a185_0x5884(_0x22d3fa,_0x3d7c0b){_0x22d3fa=_0x22d3fa-0x8d;const _0x1a6c5a=a185_0x1a6c();let _0x5884fa=_0x1a6c5a[_0x22d3fa];return _0x5884fa;}(function(_0x2181cc,_0x49d35){const _0x3f3846=a185_0x5884,_0xcf0edf=_0x2181cc();while(!![]){try{const _0x28702b=parseInt(_0x3f3846(0x9d))/0x1*(-parseInt(_0x3f3846(0xa1))/0x2)+parseInt(_0x3f3846(0x8d))/0x3+parseInt(_0x3f3846(0x92))/0x4*(parseInt(_0x3f3846(0x93))/0x5)+parseInt(_0x3f3846(0x94))/0x6+-parseInt(_0x3f3846(0x91))/0x7*(-parseInt(_0x3f3846(0xa2))/0x8)+parseInt(_0x3f3846(0x98))/0x9*(parseInt(_0x3f3846(0x97))/0xa)+-parseInt(_0x3f3846(0x8e))/0xb;if(_0x28702b===_0x49d35)break;else _0xcf0edf['push'](_0xcf0edf['shift']());}catch(_0x232c5d){_0xcf0edf['push'](_0xcf0edf['shift']());}}}(a185_0x1a6c,0x434ff));import{mkdir,readFile,writeFile}from'node:fs/promises';function a185_0x1a6c(){const _0xb528c1=[':\x20scriptsRoot\x20mismatch\x20—\x20','stringify','1085efTcOi','scriptsRoot','object','current\x20\x22','434YbKznh','176864sasIUg','Check\x20.rabetbase/bff.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.','\x22\x20vs\x20lock\x20\x22','837720RgkCTN','3626854zZEYhE','ENOENT','utf8','21FPKgTB','4wsRvrb','273305sgkUzk','516012eTNwzO','lastSync','apps','3546430bWKcKw','9vFTqcm','functions','\x22.\x20'];a185_0x1a6c=function(){return _0xb528c1;};return a185_0x1a6c();}import{dirname}from'node:path';export function createEmptyBffLock(){return{'apps':{}};}export function ensureLockScope(_0x5213b2,_0x510efd,_0x587bc9,_0x2f039c){const _0x3c598e=a185_0x5884,_0x3e4b3c={'apps':_0x5213b2['apps']&&typeof _0x5213b2[_0x3c598e(0x96)]===_0x3c598e(0x9f)?_0x5213b2[_0x3c598e(0x96)]:{}};let _0x18b90a=_0x3e4b3c[_0x3c598e(0x96)][_0x510efd];if(!_0x18b90a)return _0x18b90a={'scriptsRoot':_0x587bc9,'lastSync':'','functions':{}},_0x3e4b3c[_0x3c598e(0x96)][_0x510efd]=_0x18b90a,{'lockData':_0x3e4b3c,'appLock':_0x18b90a};if(!_0x18b90a['scriptsRoot'])_0x18b90a[_0x3c598e(0x9e)]=_0x587bc9;else{if(_0x18b90a[_0x3c598e(0x9e)]!==_0x587bc9)throw new Error(_0x2f039c+_0x3c598e(0x9b)+(_0x3c598e(0xa0)+_0x587bc9+_0x3c598e(0xa4)+_0x18b90a[_0x3c598e(0x9e)]+_0x3c598e(0x9a))+_0x3c598e(0xa3));}return!_0x18b90a['functions']&&(_0x18b90a[_0x3c598e(0x99)]={}),!_0x18b90a[_0x3c598e(0x95)]&&(_0x18b90a[_0x3c598e(0x95)]=''),{'lockData':_0x3e4b3c,'appLock':_0x18b90a};}export async function readBffLockFile(_0x3f4015){const _0x17126b=a185_0x5884;try{const _0x537a23=await readFile(_0x3f4015,'utf8'),_0x5784ec=JSON['parse'](_0x537a23);return{'apps':_0x5784ec['apps']&&typeof _0x5784ec[_0x17126b(0x96)]==='object'?_0x5784ec[_0x17126b(0x96)]:{}};}catch(_0x833c2f){if(_0x833c2f['code']===_0x17126b(0x8f))return null;throw new Error('Failed\x20to\x20read\x20BFF\x20lock\x20file:\x20'+String(_0x833c2f));}}export async function writeBffLockFile(_0x246084,_0x11d1df){const _0x3f6d78=a185_0x5884;await mkdir(dirname(_0x246084),{'recursive':!![]}),await writeFile(_0x246084,JSON[_0x3f6d78(0x9c)](_0x11d1df,null,0x2),_0x3f6d78(0x90));}
@@ -1 +1 @@
1
- (function(_0x5786db,_0x1e9f75){const _0x5692a9=a185_0x45a2,_0x37c30e=_0x5786db();while(!![]){try{const _0x5a1148=-parseInt(_0x5692a9(0x1bd))/0x1+-parseInt(_0x5692a9(0x1c4))/0x2+parseInt(_0x5692a9(0x1b9))/0x3*(parseInt(_0x5692a9(0x1c5))/0x4)+-parseInt(_0x5692a9(0x1bc))/0x5*(parseInt(_0x5692a9(0x1c0))/0x6)+-parseInt(_0x5692a9(0x1b8))/0x7*(-parseInt(_0x5692a9(0x1b6))/0x8)+parseInt(_0x5692a9(0x1c2))/0x9*(parseInt(_0x5692a9(0x1ba))/0xa)+-parseInt(_0x5692a9(0x1c7))/0xb;if(_0x5a1148===_0x1e9f75)break;else _0x37c30e['push'](_0x37c30e['shift']());}catch(_0x1d0780){_0x37c30e['push'](_0x37c30e['shift']());}}}(a185_0x1bda,0x46186));export function snakeToCamel(_0x386a28){const _0x61f71b=a185_0x45a2;return _0x386a28['toLowerCase']()[_0x61f71b(0x1c9)](/_([a-z])/g,(_0x4feff6,_0x2d8e31)=>_0x2d8e31['toUpperCase']());}function a185_0x1bda(){const _0x29872e=['test','708466DUBJpi','functionNode','replace','1080TOwBOc','before','19593HGTTIV','35625pmDiVE','325830gudmWi','toLowerCase','16370HmKlgl','34596KuYFSf','after','values','690GaRhxI','operationType','63UoXMBr','datasetCode','209148OuWVXX','88pGMqKU'];a185_0x1bda=function(){return _0x29872e;};return a185_0x1bda();}export function findHookLocationByRemoteId(_0x3b82df,_0x2ea73d){const _0x3d0899=a185_0x45a2;if(!_0x2ea73d)return undefined;for(const _0x2c7815 of Object[_0x3d0899(0x1bf)](_0x3b82df)){if(_0x2c7815['remoteId']===_0x2ea73d&&_0x2c7815['datasetCode']&&_0x2c7815['operationType']&&_0x2c7815[_0x3d0899(0x1c8)])return{'datasetCode':_0x2c7815[_0x3d0899(0x1c3)],'operationType':_0x2c7815[_0x3d0899(0x1c1)],'functionNode':_0x2c7815[_0x3d0899(0x1c8)]};}return undefined;}function a185_0x45a2(_0x4e42e8,_0x4458e0){_0x4e42e8=_0x4e42e8-0x1b6;const _0x1bdaf=a185_0x1bda();let _0x45a2d3=_0x1bdaf[_0x4e42e8];return _0x45a2d3;}export function extractScriptDescription(_0x60ac60){const _0x249354=_0x60ac60['match'](/\[\s*脚本描述\s*]\s*(.+)/);return _0x249354?.[0x1]?.['trim']()||undefined;}export function isValidBffFunctionName(_0x1fcf0c){const _0xba6bd4=a185_0x45a2;return/^[A-Za-z_$][A-Za-z0-9_$]*$/[_0xba6bd4(0x1c6)](_0x1fcf0c);}export function normalizeHookFunctionNode(_0x1993e7){const _0x55920c=a185_0x45a2;if(!_0x1993e7)return undefined;const _0x411980=_0x1993e7['trim']()[_0x55920c(0x1bb)]();if(_0x411980===_0x55920c(0x1b7)||_0x411980===_0x55920c(0x1be))return _0x411980;return undefined;}
1
+ function a187_0x2e02(_0x1aed7c,_0x1107dc){_0x1aed7c=_0x1aed7c-0x1eb;const _0x241c17=a187_0x241c();let _0x2e02f8=_0x241c17[_0x1aed7c];return _0x2e02f8;}(function(_0x10af0d,_0x30e457){const _0x410b27=a187_0x2e02,_0x2ea4fe=_0x10af0d();while(!![]){try{const _0x7d61c2=-parseInt(_0x410b27(0x1f5))/0x1+-parseInt(_0x410b27(0x1ec))/0x2+-parseInt(_0x410b27(0x1f4))/0x3+parseInt(_0x410b27(0x1f3))/0x4+parseInt(_0x410b27(0x1ee))/0x5+parseInt(_0x410b27(0x1f9))/0x6+-parseInt(_0x410b27(0x1eb))/0x7;if(_0x7d61c2===_0x30e457)break;else _0x2ea4fe['push'](_0x2ea4fe['shift']());}catch(_0x5f320e){_0x2ea4fe['push'](_0x2ea4fe['shift']());}}}(a187_0x241c,0x2302c));export function snakeToCamel(_0xe1071){const _0x262571=a187_0x2e02;return _0xe1071[_0x262571(0x1f6)]()['replace'](/_([a-z])/g,(_0x6e6d5f,_0x23bef7)=>_0x23bef7['toUpperCase']());}export function findHookLocationByRemoteId(_0x33be1f,_0x403964){const _0x2e8092=a187_0x2e02;if(!_0x403964)return undefined;for(const _0x1cbae4 of Object['values'](_0x33be1f)){if(_0x1cbae4[_0x2e8092(0x1f7)]===_0x403964&&_0x1cbae4[_0x2e8092(0x1ed)]&&_0x1cbae4[_0x2e8092(0x1fa)]&&_0x1cbae4[_0x2e8092(0x1f2)])return{'datasetCode':_0x1cbae4[_0x2e8092(0x1ed)],'operationType':_0x1cbae4[_0x2e8092(0x1fa)],'functionNode':_0x1cbae4[_0x2e8092(0x1f2)]};}return undefined;}export function extractScriptDescription(_0x589b49){const _0x407fa6=_0x589b49['match'](/\[\s*脚本描述\s*]\s*(.+)/);return _0x407fa6?.[0x1]?.['trim']()||undefined;}export function isValidBffFunctionName(_0x2f937e){const _0x181892=a187_0x2e02;return/^[A-Za-z_$][A-Za-z0-9_$]*$/[_0x181892(0x1ef)](_0x2f937e);}function a187_0x241c(){const _0x15e204=['toLowerCase','remoteId','after','1222416WMorZt','operationType','904813MLChfU','7564MIkpuq','datasetCode','189965XtUHKX','test','trim','before','functionNode','1130572eDNKTc','298494AFaokV','148429oGKkre'];a187_0x241c=function(){return _0x15e204;};return a187_0x241c();}export function normalizeHookFunctionNode(_0x283bc6){const _0x216e73=a187_0x2e02;if(!_0x283bc6)return undefined;const _0x5cb1ae=_0x283bc6[_0x216e73(0x1f0)]()[_0x216e73(0x1f6)]();if(_0x5cb1ae===_0x216e73(0x1f1)||_0x5cb1ae===_0x216e73(0x1f8))return _0x5cb1ae;return undefined;}
@@ -1 +1 @@
1
- (function(_0x33c332,_0x1e0509){const _0x327df3=a186_0x5deb,_0x419d66=_0x33c332();while(!![]){try{const _0x2b26a=-parseInt(_0x327df3(0x1fb))/0x1+-parseInt(_0x327df3(0x1f4))/0x2+parseInt(_0x327df3(0x1f8))/0x3+-parseInt(_0x327df3(0x1f1))/0x4*(parseInt(_0x327df3(0x1ff))/0x5)+parseInt(_0x327df3(0x200))/0x6+-parseInt(_0x327df3(0x1f5))/0x7+parseInt(_0x327df3(0x1f9))/0x8;if(_0x2b26a===_0x1e0509)break;else _0x419d66['push'](_0x419d66['shift']());}catch(_0x3478e2){_0x419d66['push'](_0x419d66['shift']());}}}(a186_0x1d7e,0x53bd2));function a186_0x5deb(_0x85a314,_0x2409bb){_0x85a314=_0x85a314-0x1f0;const _0x1d7e3a=a186_0x1d7e();let _0x5deb73=_0x1d7e3a[_0x85a314];return _0x5deb73;}function a186_0x1d7e(){const _0x19c031=['get','join','set','db-','Multiple\x20databases\x20found.\x20Specify\x20one\x20with\x20--db:\x20','.\x20If\x20this\x20db\x20belongs\x20to\x20another\x20app,\x20rerun\x20with\x20--appcode\x20<appCode>.','685364wkAwGb','toLowerCase','.\x20Be\x20more\x20specific.','1049622kETvUC','2224145Irefqy','map','\x22.\x20Available:\x20','818754qKLyPh','11616752SYsfGe','isNaN','678289PcJSWk','includes','dbName','\x22\x20matches\x20multiple\x20databases:\x20','5fUEdgQ','1860948rnfAux','entries','dbtableConfig','dbId','length','find','filter','No\x20database\x20matching\x20\x22'];a186_0x1d7e=function(){return _0x19c031;};return a186_0x1d7e();}import{listDatasets}from'../core/api-client.js';const cache=new Map();export async function listDatabases(_0x147443){const _0x4c2c29=a186_0x5deb;if(cache['has'](_0x147443))return cache[_0x4c2c29(0x208)](_0x147443);const _0x403928=await listDatasets(_0x147443),_0x13c725=new Map();for(const _0x36e07a of _0x403928){const _0x5296b8=_0x36e07a[_0x4c2c29(0x202)];_0x5296b8?.[_0x4c2c29(0x203)]!=null&&_0x13c725[_0x4c2c29(0x20a)](_0x5296b8[_0x4c2c29(0x203)],_0x5296b8[_0x4c2c29(0x1fd)]??_0x4c2c29(0x20b)+_0x5296b8['dbId']);}const _0x4b52ae=[..._0x13c725[_0x4c2c29(0x201)]()][_0x4c2c29(0x1f6)](([_0x17b872,_0x3a40b7])=>({'dbId':_0x17b872,'dbName':_0x3a40b7}));return cache['set'](_0x147443,_0x4b52ae),_0x4b52ae;}export async function resolveDb(_0x552b0c,_0x3d2ca5){const _0x1a4825=a186_0x5deb,_0x44a7a5=await listDatabases(_0x552b0c);if(_0x44a7a5[_0x1a4825(0x204)]===0x0)return{'resolved':[],'error':'No\x20linked\x20databases\x20found\x20under\x20app\x20\x22'+_0x552b0c+'\x22.\x20Make\x20sure\x20datasets\x20have\x20been\x20created.'};if(!_0x3d2ca5)return{'resolved':_0x44a7a5};const _0x452f98=Number(_0x3d2ca5);if(!Number[_0x1a4825(0x1fa)](_0x452f98)){const _0x36fb92=_0x44a7a5[_0x1a4825(0x205)](_0x12e271=>_0x12e271[_0x1a4825(0x203)]===_0x452f98);if(_0x36fb92)return{'resolved':[_0x36fb92]};}const _0x559c06=_0x3d2ca5[_0x1a4825(0x1f2)](),_0x42a884=_0x44a7a5[_0x1a4825(0x206)](_0x4e6cfc=>_0x4e6cfc[_0x1a4825(0x1fd)]['toLowerCase']()[_0x1a4825(0x1fc)](_0x559c06));if(_0x42a884[_0x1a4825(0x204)]>0x0)return{'resolved':_0x42a884};const _0x12035f=_0x44a7a5['map'](_0x38371c=>_0x38371c[_0x1a4825(0x1fd)]+'\x20('+_0x38371c[_0x1a4825(0x203)]+')')[_0x1a4825(0x209)](',\x20');return{'resolved':[],'error':_0x1a4825(0x207)+_0x3d2ca5+'\x22\x20under\x20app\x20\x22'+_0x552b0c+_0x1a4825(0x1f7)+_0x12035f+_0x1a4825(0x1f0)};}export async function resolveOneDb(_0x24424e,_0xeb84d0){const _0x6c41ed=a186_0x5deb,{resolved:_0x50fd9c,error:_0xf98a64}=await resolveDb(_0x24424e,_0xeb84d0);if(_0xf98a64)return{'db':null,'error':_0xf98a64};if(_0x50fd9c[_0x6c41ed(0x204)]===0x1)return{'db':_0x50fd9c[0x0]};if(!_0xeb84d0){const _0x1f444f=_0x50fd9c[_0x6c41ed(0x1f6)](_0x3c6206=>_0x3c6206[_0x6c41ed(0x1fd)]+'\x20('+_0x3c6206[_0x6c41ed(0x203)]+')')['join'](',\x20');return{'db':null,'error':_0x6c41ed(0x20c)+_0x1f444f};}const _0x36a9f9=_0x50fd9c['map'](_0x23f936=>_0x23f936[_0x6c41ed(0x1fd)]+'\x20('+_0x23f936['dbId']+')')[_0x6c41ed(0x209)](',\x20');return{'db':null,'error':'\x22'+_0xeb84d0+_0x6c41ed(0x1fe)+_0x36a9f9+_0x6c41ed(0x1f3)};}export async function getDbName(_0x4a1d17,_0xdd1021){const _0x27d2b6=a186_0x5deb,_0x567cbf=await listDatabases(_0x4a1d17);return _0x567cbf[_0x27d2b6(0x205)](_0x6b17d6=>_0x6b17d6[_0x27d2b6(0x203)]===_0xdd1021)?.['dbName'];}
1
+ (function(_0x3ee891,_0x32419f){const _0x3f463d=a188_0x50f2,_0x1a1263=_0x3ee891();while(!![]){try{const _0x37ccfa=-parseInt(_0x3f463d(0x17f))/0x1+-parseInt(_0x3f463d(0x17b))/0x2+-parseInt(_0x3f463d(0x17c))/0x3*(parseInt(_0x3f463d(0x181))/0x4)+-parseInt(_0x3f463d(0x18a))/0x5*(parseInt(_0x3f463d(0x17d))/0x6)+-parseInt(_0x3f463d(0x173))/0x7*(parseInt(_0x3f463d(0x17e))/0x8)+parseInt(_0x3f463d(0x175))/0x9*(-parseInt(_0x3f463d(0x180))/0xa)+parseInt(_0x3f463d(0x182))/0xb;if(_0x37ccfa===_0x32419f)break;else _0x1a1263['push'](_0x1a1263['shift']());}catch(_0x371600){_0x1a1263['push'](_0x1a1263['shift']());}}}(a188_0x57e6,0xd91a3));function a188_0x50f2(_0x3965d2,_0x295216){_0x3965d2=_0x3965d2-0x173;const _0x57e6ed=a188_0x57e6();let _0x50f28b=_0x57e6ed[_0x3965d2];return _0x50f28b;}import{listDatasets}from'../core/api-client.js';const cache=new Map();function a188_0x57e6(){const _0x39e456=['1695218sMZpCP','3kZOFpM','120YAqpfY','14088EDOprn','1313820QNHflf','3850rUANxm','6278092hXpywU','79715504EnvoEy','dbId','length','No\x20linked\x20databases\x20found\x20under\x20app\x20\x22','set','has','dbName','\x22\x20matches\x20multiple\x20databases:\x20','331465LtHldD','2667usRmcQ','map','14724xznrmK','join','find','get','toLowerCase','Multiple\x20databases\x20found.\x20Specify\x20one\x20with\x20--db:\x20'];a188_0x57e6=function(){return _0x39e456;};return a188_0x57e6();}export async function listDatabases(_0x32d8e7){const _0x269906=a188_0x50f2;if(cache[_0x269906(0x187)](_0x32d8e7))return cache[_0x269906(0x178)](_0x32d8e7);const _0x36d8bd=await listDatasets(_0x32d8e7),_0x170f31=new Map();for(const _0x2d6554 of _0x36d8bd){const _0x5bc1f9=_0x2d6554['dbtableConfig'];_0x5bc1f9?.['dbId']!=null&&_0x170f31[_0x269906(0x186)](_0x5bc1f9['dbId'],_0x5bc1f9[_0x269906(0x188)]??'db-'+_0x5bc1f9[_0x269906(0x183)]);}const _0x169f93=[..._0x170f31['entries']()][_0x269906(0x174)](([_0x5da805,_0x277b1f])=>({'dbId':_0x5da805,'dbName':_0x277b1f}));return cache[_0x269906(0x186)](_0x32d8e7,_0x169f93),_0x169f93;}export async function resolveDb(_0x38c477,_0x18b233){const _0x2f51c3=a188_0x50f2,_0x2f9511=await listDatabases(_0x38c477);if(_0x2f9511[_0x2f51c3(0x184)]===0x0)return{'resolved':[],'error':_0x2f51c3(0x185)+_0x38c477+'\x22.\x20Make\x20sure\x20datasets\x20have\x20been\x20created.'};if(!_0x18b233)return{'resolved':_0x2f9511};const _0x329bf3=Number(_0x18b233);if(!Number['isNaN'](_0x329bf3)){const _0x48564a=_0x2f9511[_0x2f51c3(0x177)](_0x36e624=>_0x36e624[_0x2f51c3(0x183)]===_0x329bf3);if(_0x48564a)return{'resolved':[_0x48564a]};}const _0x58bece=_0x18b233[_0x2f51c3(0x179)](),_0x2b78d6=_0x2f9511['filter'](_0x4027be=>_0x4027be['dbName'][_0x2f51c3(0x179)]()['includes'](_0x58bece));if(_0x2b78d6['length']>0x0)return{'resolved':_0x2b78d6};const _0x40490e=_0x2f9511[_0x2f51c3(0x174)](_0x4a399c=>_0x4a399c[_0x2f51c3(0x188)]+'\x20('+_0x4a399c['dbId']+')')[_0x2f51c3(0x176)](',\x20');return{'resolved':[],'error':'No\x20database\x20matching\x20\x22'+_0x18b233+'\x22\x20under\x20app\x20\x22'+_0x38c477+'\x22.\x20Available:\x20'+_0x40490e+'.\x20If\x20this\x20db\x20belongs\x20to\x20another\x20app,\x20rerun\x20with\x20--appcode\x20<appCode>.'};}export async function resolveOneDb(_0x31793e,_0x26ca8b){const _0x3dca3b=a188_0x50f2,{resolved:_0x4b5150,error:_0x37e168}=await resolveDb(_0x31793e,_0x26ca8b);if(_0x37e168)return{'db':null,'error':_0x37e168};if(_0x4b5150[_0x3dca3b(0x184)]===0x1)return{'db':_0x4b5150[0x0]};if(!_0x26ca8b){const _0x6aef45=_0x4b5150[_0x3dca3b(0x174)](_0xbdf200=>_0xbdf200[_0x3dca3b(0x188)]+'\x20('+_0xbdf200['dbId']+')')[_0x3dca3b(0x176)](',\x20');return{'db':null,'error':_0x3dca3b(0x17a)+_0x6aef45};}const _0x3cdbfd=_0x4b5150[_0x3dca3b(0x174)](_0x3798c2=>_0x3798c2[_0x3dca3b(0x188)]+'\x20('+_0x3798c2[_0x3dca3b(0x183)]+')')[_0x3dca3b(0x176)](',\x20');return{'db':null,'error':'\x22'+_0x26ca8b+_0x3dca3b(0x189)+_0x3cdbfd+'.\x20Be\x20more\x20specific.'};}export async function getDbName(_0x26f569,_0x85a7ae){const _0x2033a6=a188_0x50f2,_0xa2430c=await listDatabases(_0x26f569);return _0xa2430c['find'](_0x1df0d1=>_0x1df0d1[_0x2033a6(0x183)]===_0x85a7ae)?.[_0x2033a6(0x188)];}
@@ -1 +1 @@
1
- function a187_0x445d(_0x28b55d,_0x4affa2){_0x28b55d=_0x28b55d-0x166;const _0x526e90=a187_0x526e();let _0x445d22=_0x526e90[_0x28b55d];return _0x445d22;}(function(_0x53f4ba,_0x2588bf){const _0x184902=a187_0x445d,_0x1f598d=_0x53f4ba();while(!![]){try{const _0x3b6857=parseInt(_0x184902(0x16b))/0x1+-parseInt(_0x184902(0x169))/0x2*(parseInt(_0x184902(0x172))/0x3)+-parseInt(_0x184902(0x16f))/0x4*(parseInt(_0x184902(0x176))/0x5)+parseInt(_0x184902(0x167))/0x6*(-parseInt(_0x184902(0x174))/0x7)+-parseInt(_0x184902(0x16a))/0x8*(-parseInt(_0x184902(0x16e))/0x9)+parseInt(_0x184902(0x173))/0xa*(parseInt(_0x184902(0x168))/0xb)+-parseInt(_0x184902(0x170))/0xc*(parseInt(_0x184902(0x16d))/0xd);if(_0x3b6857===_0x2588bf)break;else _0x1f598d['push'](_0x1f598d['shift']());}catch(_0x11c158){_0x1f598d['push'](_0x1f598d['shift']());}}}(a187_0x526e,0xdd653));import{constants}from'node:fs';import{access,mkdir}from'node:fs/promises';import{dirname,join,resolve}from'node:path';export function loadPageProjectConfig(_0x172bc0,_0x5d4092=process['cwd']()){const _0x3d4c73=a187_0x445d,_0x2c8457=resolve(_0x5d4092),_0x43c152=join(_0x2c8457,'.rabetbase',_0x3d4c73(0x171));return{'projectRoot':_0x2c8457,'pagesBaseDir':_0x43c152,'appPagesDir':join(_0x43c152,_0x172bc0),'lockFilePath':join(_0x2c8457,'.rabetbase',_0x3d4c73(0x16c))};}function a187_0x526e(){const _0x5be9c5=['page','1263etPMqI','10FvvCTY','7adjLRs','appPagesDir','2617715qmXGVk','toUpperCase','2661174eGhVKL','5452139bdbGDi','5234zlInqD','8dzFxdy','1690025UfCSHs','page.lock.json','55601EqNUtm','7263882LYIuXr','4UtEdOX','48YBANqH'];a187_0x526e=function(){return _0x5be9c5;};return a187_0x526e();}export function buildPageFileName(_0x2e9f77,_0x57aeab){const _0x1cfe20=a187_0x445d;return _0x2e9f77+'-'+String(_0x57aeab)[_0x1cfe20(0x166)]()+'.json';}export function resolvePageFilePath(_0x318cba,_0x196e97,_0x45f21b){const _0x561a2f=a187_0x445d;return join(_0x318cba[_0x561a2f(0x175)],buildPageFileName(_0x196e97,_0x45f21b));}export async function ensureParentDirectory(_0x296e62){await mkdir(dirname(_0x296e62),{'recursive':!![]});}export async function fileExists(_0x5bc791){try{return await access(_0x5bc791,constants['F_OK']),!![];}catch{return![];}}
1
+ function a189_0xd59c(){const _0x28c047=['10YzlqXz','16SYfFzZ','F_OK','108082tYlUtV','5OywrMY','186297yZXAHB','1003264AblMQV','appPagesDir','toUpperCase','.rabetbase','page.lock.json','1369404zcNdmF','cwd','1386zVpnzI','3506040TXZdky','590238XFfjat','8hkzqhH','35jXkVVi','12381GYihUP','22VRInAP'];a189_0xd59c=function(){return _0x28c047;};return a189_0xd59c();}function a189_0x2cb7(_0x5b5e36,_0x1bb7fc){_0x5b5e36=_0x5b5e36-0x1ef;const _0xd59cc4=a189_0xd59c();let _0x2cb726=_0xd59cc4[_0x5b5e36];return _0x2cb726;}const a189_0x43b335=a189_0x2cb7;(function(_0x89682e,_0x5ad236){const _0x58a950=a189_0x2cb7,_0x26f963=_0x89682e();while(!![]){try{const _0x435123=-parseInt(_0x58a950(0x202))/0x1*(-parseInt(_0x58a950(0x1f1))/0x2)+-parseInt(_0x58a950(0x1f5))/0x3*(-parseInt(_0x58a950(0x200))/0x4)+parseInt(_0x58a950(0x1f4))/0x5*(parseInt(_0x58a950(0x1ff))/0x6)+-parseInt(_0x58a950(0x201))/0x7*(parseInt(_0x58a950(0x1f6))/0x8)+parseInt(_0x58a950(0x1fe))/0x9*(-parseInt(_0x58a950(0x1f0))/0xa)+-parseInt(_0x58a950(0x1ef))/0xb*(-parseInt(_0x58a950(0x1fb))/0xc)+-parseInt(_0x58a950(0x1f3))/0xd*(-parseInt(_0x58a950(0x1fd))/0xe);if(_0x435123===_0x5ad236)break;else _0x26f963['push'](_0x26f963['shift']());}catch(_0x146c40){_0x26f963['push'](_0x26f963['shift']());}}}(a189_0xd59c,0x56ff3));import{constants}from'node:fs';import{access,mkdir}from'node:fs/promises';import{dirname,join,resolve}from'node:path';export function loadPageProjectConfig(_0x28aed2,_0x3a4b28=process[a189_0x43b335(0x1fc)]()){const _0x5aeb83=a189_0x43b335,_0xc61d47=resolve(_0x3a4b28),_0x58f7f8=join(_0xc61d47,_0x5aeb83(0x1f9),'page');return{'projectRoot':_0xc61d47,'pagesBaseDir':_0x58f7f8,'appPagesDir':join(_0x58f7f8,_0x28aed2),'lockFilePath':join(_0xc61d47,_0x5aeb83(0x1f9),_0x5aeb83(0x1fa))};}export function buildPageFileName(_0x18c168,_0x33183a){const _0x384c8a=a189_0x43b335;return _0x18c168+'-'+String(_0x33183a)[_0x384c8a(0x1f8)]()+'.json';}export function resolvePageFilePath(_0x4aca38,_0x473146,_0xa00b76){const _0x5bdf8c=a189_0x43b335;return join(_0x4aca38[_0x5bdf8c(0x1f7)],buildPageFileName(_0x473146,_0xa00b76));}export async function ensureParentDirectory(_0x2b97a9){await mkdir(dirname(_0x2b97a9),{'recursive':!![]});}export async function fileExists(_0x271d7a){const _0x381fa0=a189_0x43b335;try{return await access(_0x271d7a,constants[_0x381fa0(0x1f2)]),!![];}catch{return![];}}
@@ -1 +1 @@
1
- function a188_0x319b(_0x2cff62,_0x42650b){_0x2cff62=_0x2cff62-0xe8;const _0xc5030c=a188_0xc503();let _0x319b80=_0xc5030c[_0x2cff62];return _0x319b80;}(function(_0x2174e6,_0x2b9587){const _0xc580bd=a188_0x319b,_0x210442=_0x2174e6();while(!![]){try{const _0x476f49=-parseInt(_0xc580bd(0xe9))/0x1+-parseInt(_0xc580bd(0xf6))/0x2+-parseInt(_0xc580bd(0xf0))/0x3+parseInt(_0xc580bd(0xee))/0x4+parseInt(_0xc580bd(0xeb))/0x5*(-parseInt(_0xc580bd(0xf5))/0x6)+-parseInt(_0xc580bd(0xed))/0x7+parseInt(_0xc580bd(0xf4))/0x8*(parseInt(_0xc580bd(0xf3))/0x9);if(_0x476f49===_0x2b9587)break;else _0x210442['push'](_0x210442['shift']());}catch(_0x134730){_0x210442['push'](_0x210442['shift']());}}}(a188_0xc503,0x758bf));function a188_0xc503(){const _0x2a6c1a=['utf8','15690sdENyT','md5','4760609UFcAsG','1745032RDVMju','parse','416706cROFYR','digest','update','27081HfelaL','6664xLRZOI','1182VPIDiH','792500ZRSofj','hex','createHash','stringify','627859uTcCtH'];a188_0xc503=function(){return _0x2a6c1a;};return a188_0xc503();}import a188_0x14f6df from'node:crypto';import{readFile}from'node:fs/promises';export function serializePageSchemaForFile(_0x15df59){const _0x3197ac=a188_0x319b;return JSON[_0x3197ac(0xe8)](JSON[_0x3197ac(0xef)](_0x15df59),null,0x2)+'\x0a';}export function computePageContentHash(_0x367a9d){const _0x3a9392=a188_0x319b;return a188_0x14f6df[_0x3a9392(0xf8)](_0x3a9392(0xec))[_0x3a9392(0xf2)](_0x367a9d)[_0x3a9392(0xf1)](_0x3a9392(0xf7));}export function computeSerializedSchemaHash(_0x55bc3c){return computePageContentHash(serializePageSchemaForFile(_0x55bc3c));}export async function computePageFileHash(_0x58696e){const _0x4b5ce7=a188_0x319b,_0x1045e1=await readFile(_0x58696e,_0x4b5ce7(0xea));return computePageContentHash(_0x1045e1);}
1
+ function a190_0xd067(_0x24f988,_0x19e83b){_0x24f988=_0x24f988-0x160;const _0x167113=a190_0x1671();let _0xd06780=_0x167113[_0x24f988];return _0xd06780;}(function(_0x2c6d60,_0x4a7f40){const _0x323572=a190_0xd067,_0xe3cf43=_0x2c6d60();while(!![]){try{const _0x5d231c=parseInt(_0x323572(0x166))/0x1*(parseInt(_0x323572(0x161))/0x2)+parseInt(_0x323572(0x162))/0x3+-parseInt(_0x323572(0x16d))/0x4*(-parseInt(_0x323572(0x164))/0x5)+-parseInt(_0x323572(0x168))/0x6+parseInt(_0x323572(0x169))/0x7+parseInt(_0x323572(0x160))/0x8+-parseInt(_0x323572(0x16b))/0x9;if(_0x5d231c===_0x4a7f40)break;else _0xe3cf43['push'](_0xe3cf43['shift']());}catch(_0x1e619a){_0xe3cf43['push'](_0xe3cf43['shift']());}}}(a190_0x1671,0x7af4b));import a190_0x5ec034 from'node:crypto';import{readFile}from'node:fs/promises';export function serializePageSchemaForFile(_0x809e10){const _0x5576d2=a190_0xd067;return JSON['stringify'](JSON[_0x5576d2(0x163)](_0x809e10),null,0x2)+'\x0a';}function a190_0x1671(){const _0x557643=['update','266236ISesfi','digest','hex','6740896XHifdm','40CgSFxF','1863324yVMSmm','parse','10xJLFtA','md5','26652nWSgBd','createHash','3839658pGFOjX','1064273MoWHIH','utf8','10245123pCOSsY'];a190_0x1671=function(){return _0x557643;};return a190_0x1671();}export function computePageContentHash(_0xfe917c){const _0x325ff3=a190_0xd067;return a190_0x5ec034[_0x325ff3(0x167)](_0x325ff3(0x165))[_0x325ff3(0x16c)](_0xfe917c)[_0x325ff3(0x16e)](_0x325ff3(0x16f));}export function computeSerializedSchemaHash(_0x1565cb){return computePageContentHash(serializePageSchemaForFile(_0x1565cb));}export async function computePageFileHash(_0x4b9668){const _0x12e5c6=a190_0xd067,_0x4de486=await readFile(_0x4b9668,_0x12e5c6(0x16a));return computePageContentHash(_0x4de486);}
@@ -1 +1 @@
1
- function a189_0x26f6(){const _0x4f876c=['4326064bMsvPT','2622630sUjfXw','parse','698670tcsABH','pages','5xLJbGx','395756mbDVlf','1037822RAbMyd','object','ENOENT','utf8','3671164ORXbmN','code','1001128KgEXAT','apps','lastSync','Failed\x20to\x20read\x20page\x20lock\x20file:\x20'];a189_0x26f6=function(){return _0x4f876c;};return a189_0x26f6();}(function(_0x3fb2e7,_0x3307dd){const _0xeb6f74=a189_0x3a7c,_0x1d3167=_0x3fb2e7();while(!![]){try{const _0xf355b6=parseInt(_0xeb6f74(0x1b9))/0x1+-parseInt(_0xeb6f74(0x1ba))/0x2+-parseInt(_0xeb6f74(0x1b6))/0x3+parseInt(_0xeb6f74(0x1c0))/0x4*(parseInt(_0xeb6f74(0x1b8))/0x5)+parseInt(_0xeb6f74(0x1c5))/0x6+-parseInt(_0xeb6f74(0x1be))/0x7+parseInt(_0xeb6f74(0x1c4))/0x8;if(_0xf355b6===_0x3307dd)break;else _0x1d3167['push'](_0x1d3167['shift']());}catch(_0x4cf004){_0x1d3167['push'](_0x1d3167['shift']());}}}(a189_0x26f6,0x54e00));function a189_0x3a7c(_0x25f688,_0x4200a7){_0x25f688=_0x25f688-0x1b5;const _0x26f6e3=a189_0x26f6();let _0x3a7c24=_0x26f6e3[_0x25f688];return _0x3a7c24;}import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';export function createEmptyPageLock(){return{'apps':{}};}export function ensurePageLockScope(_0x5f05e4,_0x271b25){const _0x5ae1df=a189_0x3a7c,_0x4243de={'apps':_0x5f05e4['apps']&&typeof _0x5f05e4[_0x5ae1df(0x1c1)]==='object'?_0x5f05e4[_0x5ae1df(0x1c1)]:{}};let _0x7da092=_0x4243de[_0x5ae1df(0x1c1)][_0x271b25];if(!_0x7da092)return _0x7da092={'lastSync':'','pages':{}},_0x4243de['apps'][_0x271b25]=_0x7da092,{'lockData':_0x4243de,'appLock':_0x7da092};return!_0x7da092[_0x5ae1df(0x1c2)]&&(_0x7da092[_0x5ae1df(0x1c2)]=''),(!_0x7da092[_0x5ae1df(0x1b7)]||typeof _0x7da092[_0x5ae1df(0x1b7)]!==_0x5ae1df(0x1bb))&&(_0x7da092[_0x5ae1df(0x1b7)]={}),{'lockData':_0x4243de,'appLock':_0x7da092};}export async function readPageLockFile(_0x5d7301){const _0x1b84a4=a189_0x3a7c;try{const _0x54f05a=await readFile(_0x5d7301,_0x1b84a4(0x1bd)),_0x43bfd8=JSON[_0x1b84a4(0x1b5)](_0x54f05a);return{'apps':_0x43bfd8[_0x1b84a4(0x1c1)]&&typeof _0x43bfd8[_0x1b84a4(0x1c1)]===_0x1b84a4(0x1bb)?_0x43bfd8[_0x1b84a4(0x1c1)]:{}};}catch(_0xdadec5){if(_0xdadec5[_0x1b84a4(0x1bf)]===_0x1b84a4(0x1bc))return null;throw new Error(_0x1b84a4(0x1c3)+String(_0xdadec5));}}export async function writePageLockFile(_0x48d9d1,_0x36532b){await mkdir(dirname(_0x48d9d1),{'recursive':!![]}),await writeFile(_0x48d9d1,JSON['stringify'](_0x36532b,null,0x2),'utf8');}
1
+ (function(_0x42f80c,_0x2ddb54){const _0x1171e0=a191_0x5623,_0x1e6d1d=_0x42f80c();while(!![]){try{const _0x51c91a=-parseInt(_0x1171e0(0x1cd))/0x1*(parseInt(_0x1171e0(0x1d5))/0x2)+-parseInt(_0x1171e0(0x1c4))/0x3*(-parseInt(_0x1171e0(0x1d1))/0x4)+-parseInt(_0x1171e0(0x1cb))/0x5+-parseInt(_0x1171e0(0x1c5))/0x6*(parseInt(_0x1171e0(0x1d0))/0x7)+parseInt(_0x1171e0(0x1ca))/0x8+-parseInt(_0x1171e0(0x1c6))/0x9+parseInt(_0x1171e0(0x1d3))/0xa;if(_0x51c91a===_0x2ddb54)break;else _0x1e6d1d['push'](_0x1e6d1d['shift']());}catch(_0x190f58){_0x1e6d1d['push'](_0x1e6d1d['shift']());}}}(a191_0x4f9e,0x439ba));import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';function a191_0x4f9e(){const _0x5e0b0e=['object','stringify','26144GNuDqp','147510OiGtSG','parse','32314MfYKdx','lastSync','utf8','28CgpfFa','3732XvzyVZ','code','7735060CWdLJs','Failed\x20to\x20read\x20page\x20lock\x20file:\x20','14KVsLDx','apps','651XCrUwV','77628XdsdYZ','3553749EbGsgt','pages'];a191_0x4f9e=function(){return _0x5e0b0e;};return a191_0x4f9e();}export function createEmptyPageLock(){return{'apps':{}};}export function ensurePageLockScope(_0x466044,_0x33e7a1){const _0x558eec=a191_0x5623,_0x28adb7={'apps':_0x466044[_0x558eec(0x1c3)]&&typeof _0x466044[_0x558eec(0x1c3)]===_0x558eec(0x1c8)?_0x466044[_0x558eec(0x1c3)]:{}};let _0x359f12=_0x28adb7[_0x558eec(0x1c3)][_0x33e7a1];if(!_0x359f12)return _0x359f12={'lastSync':'','pages':{}},_0x28adb7['apps'][_0x33e7a1]=_0x359f12,{'lockData':_0x28adb7,'appLock':_0x359f12};return!_0x359f12[_0x558eec(0x1ce)]&&(_0x359f12[_0x558eec(0x1ce)]=''),(!_0x359f12[_0x558eec(0x1c7)]||typeof _0x359f12[_0x558eec(0x1c7)]!==_0x558eec(0x1c8))&&(_0x359f12[_0x558eec(0x1c7)]={}),{'lockData':_0x28adb7,'appLock':_0x359f12};}export async function readPageLockFile(_0x289776){const _0x966352=a191_0x5623;try{const _0x328225=await readFile(_0x289776,'utf8'),_0x10b3bc=JSON[_0x966352(0x1cc)](_0x328225);return{'apps':_0x10b3bc[_0x966352(0x1c3)]&&typeof _0x10b3bc[_0x966352(0x1c3)]===_0x966352(0x1c8)?_0x10b3bc['apps']:{}};}catch(_0x38d32a){if(_0x38d32a[_0x966352(0x1d2)]==='ENOENT')return null;throw new Error(_0x966352(0x1d4)+String(_0x38d32a));}}function a191_0x5623(_0x4030e7,_0x418fe2){_0x4030e7=_0x4030e7-0x1c3;const _0x4f9e0c=a191_0x4f9e();let _0x56233f=_0x4f9e0c[_0x4030e7];return _0x56233f;}export async function writePageLockFile(_0x3a4ee9,_0x22e73c){const _0x5604d5=a191_0x5623;await mkdir(dirname(_0x3a4ee9),{'recursive':!![]}),await writeFile(_0x3a4ee9,JSON[_0x5604d5(0x1c9)](_0x22e73c,null,0x2),_0x5604d5(0x1cf));}
@@ -1 +1 @@
1
- function a191_0x4b89(_0x191b9b,_0x5586c4){_0x191b9b=_0x191b9b-0x90;const _0x4536ea=a191_0x4536();let _0x4b8919=_0x4536ea[_0x191b9b];return _0x4b8919;}const a191_0x191925=a191_0x4b89;(function(_0x3a1939,_0x16bcfa){const _0x380472=a191_0x4b89,_0x27cd89=_0x3a1939();while(!![]){try{const _0x200e41=parseInt(_0x380472(0x95))/0x1*(-parseInt(_0x380472(0x96))/0x2)+-parseInt(_0x380472(0x9b))/0x3+-parseInt(_0x380472(0x97))/0x4*(-parseInt(_0x380472(0x9d))/0x5)+parseInt(_0x380472(0x90))/0x6*(-parseInt(_0x380472(0x94))/0x7)+parseInt(_0x380472(0x98))/0x8*(-parseInt(_0x380472(0x9f))/0x9)+-parseInt(_0x380472(0x9c))/0xa+-parseInt(_0x380472(0x91))/0xb*(-parseInt(_0x380472(0x92))/0xc);if(_0x200e41===_0x16bcfa)break;else _0x27cd89['push'](_0x27cd89['shift']());}catch(_0x108fa0){_0x27cd89['push'](_0x27cd89['shift']());}}}(a191_0x4536,0x52aeb));function a191_0x4536(){const _0x219930=['5FLDmzC','.rabetbase','279MyHzdm','137886ljBOva','338239DXxrle','720IrusQX','sql.lock.json','35prdRwA','262bEmxGe','3236UFAGkD','2590088gngOZx','119752GQBBAo','sql-trash','/sql','1847592AMMpOy','5350710tqnBvX'];a191_0x4536=function(){return _0x219930;};return a191_0x4536();}import{resolve}from'node:path';import{findProjectRootDirectory}from'../../context.js';const DOT_DIR=a191_0x191925(0x9e),LOCK_FILE_NAME=a191_0x191925(0x93),TRASH_DIR_NAME=a191_0x191925(0x99);export function loadSqlProjectConfig(_0x404a2c,_0x2b4d5c){const _0x25fe05=a191_0x191925,_0x154567=resolve(_0x2b4d5c??findProjectRootDirectory()),_0x55d55e=DOT_DIR+_0x25fe05(0x9a),_0x5404d2=_0x55d55e+'/'+_0x404a2c;return{'projectRoot':_0x154567,'appCode':_0x404a2c,'sqlWorkspaceRoot':_0x55d55e,'sqlRoot':_0x5404d2,'sqlRootDir':resolve(_0x154567,DOT_DIR,'sql',_0x404a2c),'lockFilePath':resolve(_0x154567,DOT_DIR,LOCK_FILE_NAME),'trashDir':resolve(_0x154567,DOT_DIR,TRASH_DIR_NAME)};}
1
+ function a193_0x3a4b(_0x61e1c9,_0x505fa5){_0x61e1c9=_0x61e1c9-0xd2;const _0x3088c6=a193_0x3088();let _0x3a4b0d=_0x3088c6[_0x61e1c9];return _0x3a4b0d;}const a193_0x3cefd8=a193_0x3a4b;(function(_0x5b9099,_0x3017d0){const _0x80e7d2=a193_0x3a4b,_0x32576b=_0x5b9099();while(!![]){try{const _0x42ee16=-parseInt(_0x80e7d2(0xdd))/0x1+-parseInt(_0x80e7d2(0xd8))/0x2+parseInt(_0x80e7d2(0xdb))/0x3*(-parseInt(_0x80e7d2(0xd7))/0x4)+parseInt(_0x80e7d2(0xde))/0x5+-parseInt(_0x80e7d2(0xda))/0x6*(-parseInt(_0x80e7d2(0xd9))/0x7)+parseInt(_0x80e7d2(0xdc))/0x8*(parseInt(_0x80e7d2(0xd4))/0x9)+parseInt(_0x80e7d2(0xd5))/0xa;if(_0x42ee16===_0x3017d0)break;else _0x32576b['push'](_0x32576b['shift']());}catch(_0x405233){_0x32576b['push'](_0x32576b['shift']());}}}(a193_0x3088,0x376b0));import{resolve}from'node:path';import{findProjectRootDirectory}from'../../context.js';function a193_0x3088(){const _0x413386=['3714380DMtvBP','sql.lock.json','12dDuZyy','555006hHVUbD','159369aJVEUM','6dhyraU','14739gsFbBK','354488tIfkyw','300598wOqHJH','1906580VlsoLZ','sql','/sql','sql-trash','9wvWAvV'];a193_0x3088=function(){return _0x413386;};return a193_0x3088();}const DOT_DIR='.rabetbase',LOCK_FILE_NAME=a193_0x3cefd8(0xd6),TRASH_DIR_NAME=a193_0x3cefd8(0xd3);export function loadSqlProjectConfig(_0x10f1e3,_0x13a935){const _0x3568a2=a193_0x3cefd8,_0x453e77=resolve(_0x13a935??findProjectRootDirectory()),_0xb86c9=DOT_DIR+_0x3568a2(0xd2),_0x4692d9=_0xb86c9+'/'+_0x10f1e3;return{'projectRoot':_0x453e77,'appCode':_0x10f1e3,'sqlWorkspaceRoot':_0xb86c9,'sqlRoot':_0x4692d9,'sqlRootDir':resolve(_0x453e77,DOT_DIR,_0x3568a2(0xdf),_0x10f1e3),'lockFilePath':resolve(_0x453e77,DOT_DIR,LOCK_FILE_NAME),'trashDir':resolve(_0x453e77,DOT_DIR,TRASH_DIR_NAME)};}
@@ -1 +1 @@
1
- (function(_0x3b6dfb,_0x41a251){const _0x2404ec=a192_0xf857,_0x37d7f5=_0x3b6dfb();while(!![]){try{const _0x32c126=parseInt(_0x2404ec(0x1dd))/0x1+parseInt(_0x2404ec(0x1de))/0x2*(parseInt(_0x2404ec(0x1e7))/0x3)+-parseInt(_0x2404ec(0x1c8))/0x4*(parseInt(_0x2404ec(0x1ce))/0x5)+parseInt(_0x2404ec(0x1d1))/0x6+parseInt(_0x2404ec(0x1c9))/0x7+parseInt(_0x2404ec(0x1d6))/0x8*(parseInt(_0x2404ec(0x1db))/0x9)+parseInt(_0x2404ec(0x1ca))/0xa*(-parseInt(_0x2404ec(0x1d2))/0xb);if(_0x32c126===_0x41a251)break;else _0x37d7f5['push'](_0x37d7f5['shift']());}catch(_0xe6ae2d){_0x37d7f5['push'](_0x37d7f5['shift']());}}}(a192_0x89ab,0xf37c8));import{readdir,stat}from'node:fs/promises';import{extname,join,relative}from'node:path';import{buildDefaultSqlFileName,buildSqlRelativePath}from'./utils.js';function extensionToMode(_0xb7f830){const _0x32b0fd=a192_0xf857;if(_0xb7f830===_0x32b0fd(0x1cb))return _0x32b0fd(0x1c6);if(_0xb7f830===_0x32b0fd(0x1c7))return _0x32b0fd(0x1c5);return undefined;}function a192_0x89ab(){const _0x268465=['mode','21351NTAVWi','mybatisXml','sql','.xml','40LVRmYj','6552602WEceni','100ZJLyfR','.sql','test','slice','127980FTJYSy','dbId','push','8673360qdehrI','6062936JcHWmX','split','length','replace','2127304ZCchug','toLowerCase','sqlRootDir','name','ENOENT','63LNmkTA','filter','1938409OuAGYv','164aesSTG','isDirectory','dbName','sqlName','indexOf','code','sqlCode','path'];a192_0x89ab=function(){return _0x268465;};return a192_0x89ab();}async function scanSqlFilesRecursively(_0x261d99,_0x1243a5){const _0x1ba168=a192_0xf857,_0x2dfcab=[];try{const _0x2bc41c=await readdir(_0x261d99,{'withFileTypes':!![]});for(const _0x2f47ef of _0x2bc41c){const _0x18cfc0=join(_0x261d99,_0x2f47ef[_0x1ba168(0x1d9)]);if(_0x2f47ef['isDirectory']()){_0x2dfcab[_0x1ba168(0x1d0)](...await scanSqlFilesRecursively(_0x18cfc0,_0x1243a5));continue;}if(!_0x2f47ef['isFile']())continue;const _0x49ffb7=extname(_0x2f47ef[_0x1ba168(0x1d9)])[_0x1ba168(0x1d7)](),_0x6b4948=extensionToMode(_0x49ffb7);if(!_0x6b4948)continue;const _0x33e266=relative(_0x1243a5,_0x18cfc0)[_0x1ba168(0x1d5)](/\\/g,'/'),_0x416920=_0x33e266[_0x1ba168(0x1d3)]('/')[_0x1ba168(0x1dc)](Boolean),_0xb930d1=parseSqlPath(_0x416920,_0x2f47ef['name'],_0x49ffb7);if(!_0xb930d1)continue;_0x2dfcab[_0x1ba168(0x1d0)]({'sqlCode':_0xb930d1[_0x1ba168(0x1e4)],'sqlName':_0xb930d1[_0x1ba168(0x1e1)],'dbDirectory':_0x416920[0x0],'filePath':_0x18cfc0,'relativePath':_0x33e266,'lockKey':_0xb930d1[_0x1ba168(0x1e4)],'mode':_0x6b4948});}}catch(_0x2f4586){if(_0x2f4586[_0x1ba168(0x1e3)]!==_0x1ba168(0x1da))throw _0x2f4586;}return _0x2dfcab;}export async function scanLocalSqlQueries(_0x3593c2){const _0x210b3a=a192_0xf857;return scanSqlFilesRecursively(_0x3593c2[_0x210b3a(0x1d8)],_0x3593c2[_0x210b3a(0x1d8)]);}export function resolveLocalSqlFilePath(_0x3a2fea,_0x4d0945,_0x572622){const _0x5b92f9=a192_0xf857,_0x1fb965=_0x572622?.[_0x5b92f9(0x1e5)]||(_0x572622?.['sqlName']||_0x572622?.[_0x5b92f9(0x1e0)]?buildSqlRelativePath(_0x4d0945,_0x572622?.[_0x5b92f9(0x1e1)],_0x572622?.['dbName'],_0x572622?.[_0x5b92f9(0x1e6)]||_0x5b92f9(0x1c6),_0x572622?.[_0x5b92f9(0x1cf)]):buildDefaultSqlFileName(_0x4d0945,_0x572622?.[_0x5b92f9(0x1e6)]||_0x5b92f9(0x1c6)));return join(_0x3a2fea[_0x5b92f9(0x1d8)],_0x1fb965);}function a192_0xf857(_0x307ab0,_0x386e72){_0x307ab0=_0x307ab0-0x1c5;const _0x89ab4b=a192_0x89ab();let _0xf8576f=_0x89ab4b[_0x307ab0];return _0xf8576f;}export async function directoryExists(_0x16e864){const _0x3ad6dc=a192_0xf857;try{const _0x40ce00=await stat(_0x16e864);return _0x40ce00[_0x3ad6dc(0x1df)]();}catch{return![];}}function parseSqlPath(_0x4a2fef,_0x430d01,_0x5700c8){const _0x2463ca=a192_0xf857,_0x21da7a=_0x430d01[_0x2463ca(0x1cd)](0x0,-_0x5700c8[_0x2463ca(0x1d4)]);if(_0x4a2fef[_0x2463ca(0x1d4)]<0x2)return null;const _0x6df44=_0x21da7a[_0x2463ca(0x1e2)]('_');if(_0x6df44<=0x0||_0x6df44>=_0x21da7a['length']-0x1)return null;const _0x483d6e=_0x21da7a['slice'](0x0,_0x6df44);if(!isLikelySqlCode(_0x483d6e))return null;return{'sqlCode':_0x483d6e,'sqlName':_0x21da7a[_0x2463ca(0x1cd)](_0x6df44+0x1)};}function isLikelySqlCode(_0x301f82){const _0x37db3d=a192_0xf857;return/^[A-Za-z0-9-]+-[A-Za-z0-9-]+$/[_0x37db3d(0x1cc)](_0x301f82);}
1
+ (function(_0x179013,_0x37f893){const _0x3853b3=a194_0x23d4,_0x431385=_0x179013();while(!![]){try{const _0x1dbb05=parseInt(_0x3853b3(0x107))/0x1+-parseInt(_0x3853b3(0xf1))/0x2+parseInt(_0x3853b3(0x108))/0x3*(-parseInt(_0x3853b3(0x102))/0x4)+-parseInt(_0x3853b3(0xfe))/0x5*(-parseInt(_0x3853b3(0xff))/0x6)+parseInt(_0x3853b3(0xf8))/0x7+parseInt(_0x3853b3(0x104))/0x8*(parseInt(_0x3853b3(0xf5))/0x9)+-parseInt(_0x3853b3(0xfa))/0xa;if(_0x1dbb05===_0x37f893)break;else _0x431385['push'](_0x431385['shift']());}catch(_0x54fa22){_0x431385['push'](_0x431385['shift']());}}}(a194_0x5628,0x2ee05));function a194_0x5628(){const _0x2be906=['56KrMMvP','split','sql','267489OIteAI','6njfTzf','mode','path','sqlName','length','dbName','code','277228kpRobc','indexOf','sqlRootDir','sqlCode','297846WpvIaF','name','replace','100632eyuEoP','dbId','3922010UnkYHF','slice','mybatisXml','push','5KogQHm','1881666uTmOGD','isDirectory','toLowerCase','208628msDOde','ENOENT'];a194_0x5628=function(){return _0x2be906;};return a194_0x5628();}import{readdir,stat}from'node:fs/promises';import{extname,join,relative}from'node:path';import{buildDefaultSqlFileName,buildSqlRelativePath}from'./utils.js';function extensionToMode(_0x161adf){const _0x4a6ea5=a194_0x23d4;if(_0x161adf==='.sql')return _0x4a6ea5(0x106);if(_0x161adf==='.xml')return _0x4a6ea5(0xfc);return undefined;}async function scanSqlFilesRecursively(_0x226828,_0xb2c884){const _0x1e4edb=a194_0x23d4,_0x1e22e3=[];try{const _0xabea05=await readdir(_0x226828,{'withFileTypes':!![]});for(const _0x2261e3 of _0xabea05){const _0x354981=join(_0x226828,_0x2261e3['name']);if(_0x2261e3['isDirectory']()){_0x1e22e3[_0x1e4edb(0xfd)](...await scanSqlFilesRecursively(_0x354981,_0xb2c884));continue;}if(!_0x2261e3['isFile']())continue;const _0x2f3966=extname(_0x2261e3[_0x1e4edb(0xf6)])[_0x1e4edb(0x101)](),_0x573310=extensionToMode(_0x2f3966);if(!_0x573310)continue;const _0x2e30cd=relative(_0xb2c884,_0x354981)[_0x1e4edb(0xf7)](/\\/g,'/'),_0x69f5fb=_0x2e30cd[_0x1e4edb(0x105)]('/')['filter'](Boolean),_0x30f8f4=parseSqlPath(_0x69f5fb,_0x2261e3[_0x1e4edb(0xf6)],_0x2f3966);if(!_0x30f8f4)continue;_0x1e22e3[_0x1e4edb(0xfd)]({'sqlCode':_0x30f8f4[_0x1e4edb(0xf4)],'sqlName':_0x30f8f4['sqlName'],'dbDirectory':_0x69f5fb[0x0],'filePath':_0x354981,'relativePath':_0x2e30cd,'lockKey':_0x30f8f4['sqlCode'],'mode':_0x573310});}}catch(_0x4904ee){if(_0x4904ee[_0x1e4edb(0xf0)]!==_0x1e4edb(0x103))throw _0x4904ee;}return _0x1e22e3;}export async function scanLocalSqlQueries(_0x107b0a){const _0x4bde6c=a194_0x23d4;return scanSqlFilesRecursively(_0x107b0a[_0x4bde6c(0xf3)],_0x107b0a['sqlRootDir']);}export function resolveLocalSqlFilePath(_0x431cb5,_0x1078ab,_0x2c3ac3){const _0x5cdfdf=a194_0x23d4,_0x17559f=_0x2c3ac3?.[_0x5cdfdf(0x10a)]||(_0x2c3ac3?.[_0x5cdfdf(0x10b)]||_0x2c3ac3?.[_0x5cdfdf(0xef)]?buildSqlRelativePath(_0x1078ab,_0x2c3ac3?.[_0x5cdfdf(0x10b)],_0x2c3ac3?.[_0x5cdfdf(0xef)],_0x2c3ac3?.[_0x5cdfdf(0x109)]||_0x5cdfdf(0x106),_0x2c3ac3?.[_0x5cdfdf(0xf9)]):buildDefaultSqlFileName(_0x1078ab,_0x2c3ac3?.[_0x5cdfdf(0x109)]||_0x5cdfdf(0x106)));return join(_0x431cb5[_0x5cdfdf(0xf3)],_0x17559f);}export async function directoryExists(_0x39f33f){const _0x586c35=a194_0x23d4;try{const _0xf3608a=await stat(_0x39f33f);return _0xf3608a[_0x586c35(0x100)]();}catch{return![];}}function a194_0x23d4(_0x5561ce,_0x21471f){_0x5561ce=_0x5561ce-0xee;const _0x5628c4=a194_0x5628();let _0x23d4b4=_0x5628c4[_0x5561ce];return _0x23d4b4;}function parseSqlPath(_0x5559fd,_0x5d3ca4,_0x4a0183){const _0x1f4bc7=a194_0x23d4,_0x13a67a=_0x5d3ca4['slice'](0x0,-_0x4a0183['length']);if(_0x5559fd[_0x1f4bc7(0xee)]<0x2)return null;const _0x213fad=_0x13a67a[_0x1f4bc7(0xf2)]('_');if(_0x213fad<=0x0||_0x213fad>=_0x13a67a[_0x1f4bc7(0xee)]-0x1)return null;const _0x1104aa=_0x13a67a[_0x1f4bc7(0xfb)](0x0,_0x213fad);if(!isLikelySqlCode(_0x1104aa))return null;return{'sqlCode':_0x1104aa,'sqlName':_0x13a67a[_0x1f4bc7(0xfb)](_0x213fad+0x1)};}function isLikelySqlCode(_0x5c00c9){return/^[A-Za-z0-9-]+-[A-Za-z0-9-]+$/['test'](_0x5c00c9);}
@@ -1 +1 @@
1
- function a193_0x1d50(_0x2c2b5b,_0x171964){_0x2c2b5b=_0x2c2b5b-0x1eb;const _0xc71f86=a193_0xc71f();let _0x1d5087=_0xc71f86[_0x2c2b5b];return _0x1d5087;}(function(_0x215682,_0x561998){const _0x5a6eec=a193_0x1d50,_0x4cb18b=_0x215682();while(!![]){try{const _0x4ba6f4=-parseInt(_0x5a6eec(0x1f5))/0x1*(-parseInt(_0x5a6eec(0x1ef))/0x2)+-parseInt(_0x5a6eec(0x1fa))/0x3*(parseInt(_0x5a6eec(0x1f6))/0x4)+-parseInt(_0x5a6eec(0x1eb))/0x5*(-parseInt(_0x5a6eec(0x1f9))/0x6)+parseInt(_0x5a6eec(0x1f1))/0x7+parseInt(_0x5a6eec(0x1f4))/0x8+parseInt(_0x5a6eec(0x1ec))/0x9*(parseInt(_0x5a6eec(0x1ed))/0xa)+parseInt(_0x5a6eec(0x1f0))/0xb*(-parseInt(_0x5a6eec(0x1f2))/0xc);if(_0x4ba6f4===_0x561998)break;else _0x4cb18b['push'](_0x4cb18b['shift']());}catch(_0x359e81){_0x4cb18b['push'](_0x4cb18b['shift']());}}}(a193_0xc71f,0xdbdae));import{readFile}from'node:fs/promises';function a193_0xc71f(){const _0xead24a=['91011OtZVsq','115NMelvZ','23742fwiHnU','4100Uvvdoj','update','36HwRcOg','319CavQCB','2477615pNELLn','1088124uaPjuP','hex','1398296ztwfzN','34994WpOCcG','16SkQZld','createHash','digest','368166BtUFXb'];a193_0xc71f=function(){return _0xead24a;};return a193_0xc71f();}import a193_0x5f2f40 from'node:crypto';export function computeSqlContentHash(_0x62e6b4){const _0x2285a9=a193_0x1d50;return a193_0x5f2f40[_0x2285a9(0x1f7)]('md5')[_0x2285a9(0x1ee)](_0x62e6b4)[_0x2285a9(0x1f8)](_0x2285a9(0x1f3));}export async function computeSqlFileHash(_0x4dbe68){const _0x496a7d=await readFile(_0x4dbe68,'utf8');return computeSqlContentHash(_0x496a7d);}
1
+ (function(_0x343971,_0x47a6a4){const _0x3bb463=a195_0x2e4f,_0x1af176=_0x343971();while(!![]){try{const _0x2b2138=parseInt(_0x3bb463(0x1a5))/0x1+parseInt(_0x3bb463(0x1a7))/0x2*(-parseInt(_0x3bb463(0x19e))/0x3)+-parseInt(_0x3bb463(0x1a6))/0x4*(-parseInt(_0x3bb463(0x19b))/0x5)+parseInt(_0x3bb463(0x19d))/0x6*(parseInt(_0x3bb463(0x1a0))/0x7)+-parseInt(_0x3bb463(0x1a2))/0x8*(parseInt(_0x3bb463(0x1a4))/0x9)+-parseInt(_0x3bb463(0x19a))/0xa+parseInt(_0x3bb463(0x1a8))/0xb;if(_0x2b2138===_0x47a6a4)break;else _0x1af176['push'](_0x1af176['shift']());}catch(_0x24f1b6){_0x1af176['push'](_0x1af176['shift']());}}}(a195_0x124e,0xdecea));function a195_0x124e(){const _0x178387=['update','7EcfbYM','md5','56SIGjlj','hex','1229292agscAs','1722241fEHhyt','1589552mVnvDN','68232QLFpwd','4074026LojAKy','utf8','4522960nmXIPF','5XBHudl','createHash','5536482vqsbsU','96dXbDRs'];a195_0x124e=function(){return _0x178387;};return a195_0x124e();}import{readFile}from'node:fs/promises';import a195_0x1c0ff4 from'node:crypto';function a195_0x2e4f(_0xa1d6d8,_0x1b2888){_0xa1d6d8=_0xa1d6d8-0x19a;const _0x124ef4=a195_0x124e();let _0x2e4f95=_0x124ef4[_0xa1d6d8];return _0x2e4f95;}export function computeSqlContentHash(_0x383302){const _0x27a615=a195_0x2e4f;return a195_0x1c0ff4[_0x27a615(0x19c)](_0x27a615(0x1a1))[_0x27a615(0x19f)](_0x383302)['digest'](_0x27a615(0x1a3));}export async function computeSqlFileHash(_0x4eb11b){const _0x46ef37=a195_0x2e4f,_0x34964f=await readFile(_0x4eb11b,_0x46ef37(0x1a9));return computeSqlContentHash(_0x34964f);}
@@ -1 +1 @@
1
- (function(_0x593196,_0x340ed9){const _0x3c8a7e=a194_0x4dbe,_0x49d7d4=_0x593196();while(!![]){try{const _0x4b0841=parseInt(_0x3c8a7e(0x1cc))/0x1*(parseInt(_0x3c8a7e(0x1c4))/0x2)+-parseInt(_0x3c8a7e(0x1c7))/0x3*(parseInt(_0x3c8a7e(0x1c8))/0x4)+-parseInt(_0x3c8a7e(0x1c2))/0x5+parseInt(_0x3c8a7e(0x1c0))/0x6*(-parseInt(_0x3c8a7e(0x1bc))/0x7)+parseInt(_0x3c8a7e(0x1c1))/0x8+parseInt(_0x3c8a7e(0x1bb))/0x9*(-parseInt(_0x3c8a7e(0x1c3))/0xa)+parseInt(_0x3c8a7e(0x1bd))/0xb;if(_0x4b0841===_0x340ed9)break;else _0x49d7d4['push'](_0x49d7d4['shift']());}catch(_0x3f788e){_0x49d7d4['push'](_0x49d7d4['shift']());}}}(a194_0x42ac,0x40d80));import{mkdir,readFile,writeFile}from'node:fs/promises';function a194_0x4dbe(_0x38f506,_0xda7119){_0x38f506=_0x38f506-0x1b8;const _0x42ace2=a194_0x42ac();let _0x4dbe42=_0x42ace2[_0x38f506];return _0x4dbe42;}import{dirname}from'node:path';export function createEmptySqlLock(){return{'apps':{}};}export function ensureSqlLockScope(_0x39309b,_0x54d976,_0x5edea0,_0x58cd93){const _0xb4c2d9=a194_0x4dbe,_0x2831e1=_0x39309b??createEmptySqlLock();let _0x262e37=_0x2831e1[_0xb4c2d9(0x1c6)][_0x54d976];if(!_0x262e37)return _0x262e37={'sqlRoot':_0x5edea0,'lastSync':'','sqls':{}},_0x2831e1[_0xb4c2d9(0x1c6)][_0x54d976]=_0x262e37,{'lockData':_0x2831e1,'appLock':_0x262e37};if(!_0x262e37[_0xb4c2d9(0x1ca)])_0x262e37[_0xb4c2d9(0x1ca)]=_0x5edea0;else{if(_0x262e37[_0xb4c2d9(0x1ca)]!==_0x5edea0)throw new Error(_0x58cd93+_0xb4c2d9(0x1c9)+_0x5edea0+_0xb4c2d9(0x1be)+_0x262e37[_0xb4c2d9(0x1ca)]+_0xb4c2d9(0x1ce)+_0xb4c2d9(0x1b9));}return!_0x262e37[_0xb4c2d9(0x1cb)]&&(_0x262e37[_0xb4c2d9(0x1cb)]={}),!_0x262e37['lastSync']&&(_0x262e37[_0xb4c2d9(0x1bf)]=''),{'lockData':_0x2831e1,'appLock':_0x262e37};}export async function readSqlLockFile(_0x4be585){const _0x325ebf=a194_0x4dbe;try{const _0x16596d=await readFile(_0x4be585,'utf8');return JSON[_0x325ebf(0x1ba)](_0x16596d);}catch(_0x2b3112){if(_0x2b3112['code']===_0x325ebf(0x1b8))return null;throw new Error('Failed\x20to\x20read\x20SQL\x20lock\x20file:\x20'+String(_0x2b3112));}}function a194_0x42ac(){const _0x2676ec=['10716310CfwsQc','\x22\x20vs\x20lock\x20\x22','lastSync','1242Rzmywf','71216ZZkHiA','1752315JTehBh','16730RdcFRa','1070Rrffph','utf8','apps','330852QyMLfh','8ECtZVq',':\x20sqlRoot\x20mismatch\x20—\x20current\x20\x22','sqlRoot','sqls','269yoLxFm','stringify','\x22.\x20','ENOENT','Check\x20.rabetbase/sql.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.','parse','1521RCKoAM','259goDAne'];a194_0x42ac=function(){return _0x2676ec;};return a194_0x42ac();}export async function writeSqlLockFile(_0x21d750,_0xffbb9b){const _0x547a09=a194_0x4dbe;await mkdir(dirname(_0x21d750),{'recursive':!![]}),await writeFile(_0x21d750,JSON[_0x547a09(0x1cd)](_0xffbb9b,null,0x2),_0x547a09(0x1c5));}
1
+ (function(_0x5acc59,_0x12e3d9){const _0xd22fa2=a196_0x3e49,_0x1e0589=_0x5acc59();while(!![]){try{const _0x348443=parseInt(_0xd22fa2(0x9a))/0x1*(parseInt(_0xd22fa2(0x98))/0x2)+parseInt(_0xd22fa2(0x92))/0x3*(-parseInt(_0xd22fa2(0x93))/0x4)+-parseInt(_0xd22fa2(0xa0))/0x5*(-parseInt(_0xd22fa2(0x99))/0x6)+parseInt(_0xd22fa2(0x9e))/0x7*(-parseInt(_0xd22fa2(0xa3))/0x8)+parseInt(_0xd22fa2(0x9f))/0x9*(parseInt(_0xd22fa2(0xa5))/0xa)+-parseInt(_0xd22fa2(0x9d))/0xb+parseInt(_0xd22fa2(0x97))/0xc;if(_0x348443===_0x12e3d9)break;else _0x1e0589['push'](_0x1e0589['shift']());}catch(_0x232ffe){_0x1e0589['push'](_0x1e0589['shift']());}}}(a196_0xedeb,0xb2db5));function a196_0x3e49(_0x5c053b,_0x34284e){_0x5c053b=_0x5c053b-0x92;const _0xedebf2=a196_0xedeb();let _0x3e496e=_0xedebf2[_0x5c053b];return _0x3e496e;}import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';function a196_0xedeb(){const _0x2d4ee3=['9145620EvOusg','468994qhvLwa','69222MjjzgU','4wFWQix','Check\x20.rabetbase/sql.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.','parse','4341623qZMaAP','14nMkhya','902799mycqBG','85XrzmLV','\x22.\x20','utf8','2130176iCHxyY','stringify','10FmxEni','sqls','apps',':\x20sqlRoot\x20mismatch\x20—\x20current\x20\x22','3mLhTnN','1346916rCdyUQ','lastSync','sqlRoot','code'];a196_0xedeb=function(){return _0x2d4ee3;};return a196_0xedeb();}export function createEmptySqlLock(){return{'apps':{}};}export function ensureSqlLockScope(_0x5564b9,_0x1c9122,_0x26348e,_0x5434d7){const _0x44f489=a196_0x3e49,_0x167ac6=_0x5564b9??createEmptySqlLock();let _0x415b23=_0x167ac6[_0x44f489(0xa7)][_0x1c9122];if(!_0x415b23)return _0x415b23={'sqlRoot':_0x26348e,'lastSync':'','sqls':{}},_0x167ac6[_0x44f489(0xa7)][_0x1c9122]=_0x415b23,{'lockData':_0x167ac6,'appLock':_0x415b23};if(!_0x415b23[_0x44f489(0x95)])_0x415b23[_0x44f489(0x95)]=_0x26348e;else{if(_0x415b23[_0x44f489(0x95)]!==_0x26348e)throw new Error(_0x5434d7+_0x44f489(0xa8)+_0x26348e+'\x22\x20vs\x20lock\x20\x22'+_0x415b23[_0x44f489(0x95)]+_0x44f489(0xa1)+_0x44f489(0x9b));}return!_0x415b23[_0x44f489(0xa6)]&&(_0x415b23[_0x44f489(0xa6)]={}),!_0x415b23[_0x44f489(0x94)]&&(_0x415b23[_0x44f489(0x94)]=''),{'lockData':_0x167ac6,'appLock':_0x415b23};}export async function readSqlLockFile(_0xb0b6e6){const _0x472d12=a196_0x3e49;try{const _0x1d518a=await readFile(_0xb0b6e6,'utf8');return JSON[_0x472d12(0x9c)](_0x1d518a);}catch(_0x1763a4){if(_0x1763a4[_0x472d12(0x96)]==='ENOENT')return null;throw new Error('Failed\x20to\x20read\x20SQL\x20lock\x20file:\x20'+String(_0x1763a4));}}export async function writeSqlLockFile(_0x29dbef,_0x1e3215){const _0xfdfc9f=a196_0x3e49;await mkdir(dirname(_0x29dbef),{'recursive':!![]}),await writeFile(_0x29dbef,JSON[_0xfdfc9f(0xa4)](_0x1e3215,null,0x2),_0xfdfc9f(0xa2));}
@@ -1 +1 @@
1
- (function(_0x2913fe,_0x269006){const _0x189395=a196_0x5ee9,_0x4ad965=_0x2913fe();while(!![]){try{const _0x2a626c=-parseInt(_0x189395(0xcc))/0x1*(-parseInt(_0x189395(0xc9))/0x2)+-parseInt(_0x189395(0xbf))/0x3+parseInt(_0x189395(0xc6))/0x4*(-parseInt(_0x189395(0xca))/0x5)+parseInt(_0x189395(0xc8))/0x6*(parseInt(_0x189395(0xcb))/0x7)+parseInt(_0x189395(0xce))/0x8+-parseInt(_0x189395(0xc5))/0x9+-parseInt(_0x189395(0xcf))/0xa*(-parseInt(_0x189395(0xc7))/0xb);if(_0x2a626c===_0x269006)break;else _0x4ad965['push'](_0x4ad965['shift']());}catch(_0x49b6a6){_0x4ad965['push'](_0x4ad965['shift']());}}}(a196_0x5266,0x29ec3));function a196_0x5ee9(_0x420ed2,_0x183e5a){_0x420ed2=_0x420ed2-0xbd;const _0x5266fc=a196_0x5266();let _0x5ee9fc=_0x5266fc[_0x420ed2];return _0x5ee9fc;}function a196_0x5266(){const _0x173ada=['155332wqwhmb','515zpiKMG','21gwcOZn','3GTxljv','db-','2701168zyaeeR','5500xgyJHC','mybatisXml','trimStart','172068nhVSHM','test','unknown-sql','trim','replace','sql','2858544cbOqSh','8704ooJnHw','220YBTqVW','378342yXDBxZ'];a196_0x5266=function(){return _0x173ada;};return a196_0x5266();}export function detectSqlMode(_0x53085b){const _0x158cc4=a196_0x5ee9,_0x3aced4=_0x53085b[_0x158cc4(0xbe)]();if(/^<(select|insert|update|delete)\b/i[_0x158cc4(0xc0)](_0x3aced4))return'mybatisXml';return _0x158cc4(0xc4);}export function getSqlFileExtension(_0x4bb920){const _0x185234=a196_0x5ee9;return _0x4bb920===_0x185234(0xbd)?'.xml':'.sql';}export function buildDefaultSqlFileName(_0x51f593,_0x432cd2){return''+_0x51f593+getSqlFileExtension(_0x432cd2);}export function sanitizeSqlPathSegment(_0xc0716b,_0x4763cb){const _0x74b5d8=a196_0x5ee9,_0x661bd0=String(_0xc0716b??'')[_0x74b5d8(0xc2)](),_0x52d17c=_0x661bd0[_0x74b5d8(0xc3)](/[<>:"/\\|?*\u0000-\u001F]/g,'-')[_0x74b5d8(0xc3)](/\s+/g,'-')['replace'](/-+/g,'-')[_0x74b5d8(0xc3)](/^\.+/,'')[_0x74b5d8(0xc3)](/\.+$/,'')['replace'](/^-+/,'')['replace'](/-+$/,'');return _0x52d17c||_0x4763cb;}export function buildDbDirectoryName(_0x2ecbcc,_0x109074){const _0x572810=a196_0x5ee9;return sanitizeSqlPathSegment(_0x2ecbcc,_0x109074!=null?_0x572810(0xcd)+_0x109074:'unknown-db');}export function buildSqlRelativePath(_0x19901f,_0x4af1a9,_0x384bb6,_0x59ee7a,_0x2222ef){const _0x4cbe3e=a196_0x5ee9,_0x1151de=buildDbDirectoryName(_0x384bb6,_0x2222ef),_0x25f0ad=sanitizeSqlPathSegment(_0x19901f,_0x4cbe3e(0xc1)),_0x21a151=sanitizeSqlPathSegment(_0x4af1a9,_0x25f0ad);return _0x1151de+'/'+_0x25f0ad+'_'+_0x21a151+getSqlFileExtension(_0x59ee7a);}
1
+ function a198_0x217b(){const _0x559998=['2850085ZSnMcC','211547goABdC','.sql','unknown-sql','201920qByWlE','594HIbLNW','trimStart','977324IZBWEX','90560VbeKiy','4289940LDTxtf','3vnjkkU','test','mybatisXml','sql','16xcjKwN','replace','db-','3535828vegogX','.xml'];a198_0x217b=function(){return _0x559998;};return a198_0x217b();}(function(_0x22a1a7,_0x4bde81){const _0x57f2cf=a198_0x54aa,_0x55f887=_0x22a1a7();while(!![]){try{const _0x10dd5b=parseInt(_0x57f2cf(0x1d3))/0x1+parseInt(_0x57f2cf(0x1d4))/0x2+parseInt(_0x57f2cf(0x1d6))/0x3*(parseInt(_0x57f2cf(0x1ca))/0x4)+parseInt(_0x57f2cf(0x1cc))/0x5+-parseInt(_0x57f2cf(0x1d5))/0x6+-parseInt(_0x57f2cf(0x1cd))/0x7*(-parseInt(_0x57f2cf(0x1c7))/0x8)+-parseInt(_0x57f2cf(0x1d1))/0x9*(parseInt(_0x57f2cf(0x1d0))/0xa);if(_0x10dd5b===_0x4bde81)break;else _0x55f887['push'](_0x55f887['shift']());}catch(_0x2aaae2){_0x55f887['push'](_0x55f887['shift']());}}}(a198_0x217b,0x7778e));export function detectSqlMode(_0x516cd3){const _0x130f5b=a198_0x54aa,_0x3cafbd=_0x516cd3[_0x130f5b(0x1d2)]();if(/^<(select|insert|update|delete)\b/i[_0x130f5b(0x1d7)](_0x3cafbd))return _0x130f5b(0x1d8);return _0x130f5b(0x1c6);}export function getSqlFileExtension(_0x41218d){const _0xc924d3=a198_0x54aa;return _0x41218d===_0xc924d3(0x1d8)?_0xc924d3(0x1cb):_0xc924d3(0x1ce);}export function buildDefaultSqlFileName(_0x5f3d82,_0x2b5940){return''+_0x5f3d82+getSqlFileExtension(_0x2b5940);}function a198_0x54aa(_0x582146,_0xe1f88){_0x582146=_0x582146-0x1c6;const _0x217b25=a198_0x217b();let _0x54aa4c=_0x217b25[_0x582146];return _0x54aa4c;}export function sanitizeSqlPathSegment(_0x4a9e92,_0x59ab96){const _0x321fb7=a198_0x54aa,_0x591c45=String(_0x4a9e92??'')['trim'](),_0x23a7e8=_0x591c45[_0x321fb7(0x1c8)](/[<>:"/\\|?*\u0000-\u001F]/g,'-')[_0x321fb7(0x1c8)](/\s+/g,'-')[_0x321fb7(0x1c8)](/-+/g,'-')[_0x321fb7(0x1c8)](/^\.+/,'')[_0x321fb7(0x1c8)](/\.+$/,'')[_0x321fb7(0x1c8)](/^-+/,'')[_0x321fb7(0x1c8)](/-+$/,'');return _0x23a7e8||_0x59ab96;}export function buildDbDirectoryName(_0x4a578e,_0x2b1111){const _0x2ee825=a198_0x54aa;return sanitizeSqlPathSegment(_0x4a578e,_0x2b1111!=null?_0x2ee825(0x1c9)+_0x2b1111:'unknown-db');}export function buildSqlRelativePath(_0x27da3e,_0x29512a,_0x1b05eb,_0x265c9f,_0x4eca7b){const _0x56d7d6=a198_0x54aa,_0x50d5bf=buildDbDirectoryName(_0x1b05eb,_0x4eca7b),_0x35863a=sanitizeSqlPathSegment(_0x27da3e,_0x56d7d6(0x1cf)),_0x502bd4=sanitizeSqlPathSegment(_0x29512a,_0x35863a);return _0x50d5bf+'/'+_0x35863a+'_'+_0x502bd4+getSqlFileExtension(_0x265c9f);}
@@ -1 +1 @@
1
- (function(_0x36c52e,_0x15ff8f){const _0x272820=a197_0x4e00,_0x145fd7=_0x36c52e();while(!![]){try{const _0x4e547a=parseInt(_0x272820(0x1db))/0x1*(-parseInt(_0x272820(0x1f4))/0x2)+parseInt(_0x272820(0x1d6))/0x3*(-parseInt(_0x272820(0x1d5))/0x4)+-parseInt(_0x272820(0x1da))/0x5+parseInt(_0x272820(0x1e6))/0x6*(parseInt(_0x272820(0x1f5))/0x7)+-parseInt(_0x272820(0x1ed))/0x8+-parseInt(_0x272820(0x1e1))/0x9+-parseInt(_0x272820(0x1d7))/0xa*(-parseInt(_0x272820(0x1de))/0xb);if(_0x4e547a===_0x15ff8f)break;else _0x145fd7['push'](_0x145fd7['shift']());}catch(_0x397313){_0x145fd7['push'](_0x145fd7['shift']());}}}(a197_0x1412,0x462f8));export function detectSqlType(_0x52a4e5){const _0x200b15=a197_0x4e00;if(!_0x52a4e5?.[_0x200b15(0x1e5)]())return{'type':'UNKNOWN','isSelectOnly':![],'isDangerous':![],'reason':_0x200b15(0x1e3)};const _0x11c404=_0x52a4e5['replace'](/#\{[^}]*\}/g,'?')[_0x200b15(0x1ea)](/\$\{[^}]*\}/g,'?')[_0x200b15(0x1ea)](/@[^(\s]+(\([^)]*\))?/g,'')[_0x200b15(0x1ea)](/\/\*[\s\S]*?\*\//g,'')['trim'](),_0x1e0c8c=_0x11c404[_0x200b15(0x1d8)]('\x0a');let _0x5d2e2d='';for(const _0x40d2ff of _0x1e0c8c){const _0x4f61a1=_0x40d2ff['trim']();if(!_0x4f61a1||_0x4f61a1[_0x200b15(0x1df)]('--')||_0x4f61a1['startsWith']('/*'))continue;_0x5d2e2d=_0x4f61a1;break;}const _0x41ee6e=_0x5d2e2d[_0x200b15(0x1ee)]();if(_0x41ee6e[_0x200b15(0x1df)](_0x200b15(0x1dd))||_0x41ee6e[_0x200b15(0x1df)](_0x200b15(0x1e0))){const _0x5ca3ad=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x200b15(0x1e4)](_0x11c404);return{'type':_0x200b15(0x1dd),'isSelectOnly':!_0x5ca3ad,'isDangerous':_0x5ca3ad,'reason':_0x5ca3ad?'SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT':undefined};}if(_0x41ee6e['startsWith'](_0x200b15(0x1ef)))return{'type':_0x200b15(0x1ef),'isSelectOnly':![],'isDangerous':![]};if(_0x41ee6e[_0x200b15(0x1df)](_0x200b15(0x1e8)))return{'type':_0x200b15(0x1e8),'isSelectOnly':![],'isDangerous':![]};if(_0x41ee6e[_0x200b15(0x1df)](_0x200b15(0x1f0)))return{'type':_0x200b15(0x1f0),'isSelectOnly':![],'isDangerous':!![],'reason':'DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save'};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i['test'](_0x41ee6e))return{'type':_0x200b15(0x1d2),'isSelectOnly':![],'isDangerous':!![],'reason':_0x200b15(0x1f2)};return{'type':'UNKNOWN','isSelectOnly':![],'isDangerous':![]};}function extractTables(_0x44828c){const _0x325f26=a197_0x4e00,_0x48886f=_0x44828c[_0x325f26(0x1ea)](/#\{[^}]*\}/g,'?')['replace'](/\$\{[^}]*\}/g,'?')[_0x325f26(0x1ea)](/'[^']*'/g,'\x27\x27')[_0x325f26(0x1ea)](/--.*$/gm,'')[_0x325f26(0x1ea)](/\/\*[\s\S]*?\*\//g,''),_0x2c0ef6=[],_0x250056=_0x48886f[_0x325f26(0x1d1)](/FROM\s+([^\s,)(]+)/i);if(_0x250056?.[0x1])_0x2c0ef6[_0x325f26(0x1e2)](_0x250056[0x1][_0x325f26(0x1ea)](/[`"]/g,''));for(const _0x4d37da of _0x48886f[_0x325f26(0x1ec)](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){const _0x1be207=_0x4d37da[0x1]?.[_0x325f26(0x1ea)](/[`"]/g,'');if(_0x1be207&&!_0x2c0ef6['includes'](_0x1be207))_0x2c0ef6['push'](_0x1be207);}const _0x3becb1=_0x48886f[_0x325f26(0x1d1)](/INTO\s+([^\s(]+)/i);if(_0x3becb1?.[0x1]){const _0x364fa3=_0x3becb1[0x1][_0x325f26(0x1ea)](/[`"]/g,'');if(!_0x2c0ef6[_0x325f26(0x1d3)](_0x364fa3))_0x2c0ef6[_0x325f26(0x1e2)](_0x364fa3);}const _0x2d03fd=_0x48886f[_0x325f26(0x1d1)](/UPDATE\s+([^\s,)(]+)/i);if(_0x2d03fd?.[0x1]){const _0xa5ea42=_0x2d03fd[0x1][_0x325f26(0x1ea)](/[`"]/g,'');if(!_0x2c0ef6[_0x325f26(0x1d3)](_0xa5ea42))_0x2c0ef6[_0x325f26(0x1e2)](_0xa5ea42);}return _0x2c0ef6;}function a197_0x1412(){const _0x408424=['type','SELECT','33979DeTQxp','startsWith','WITH','679572QRLsHT','push','SQL\x20content\x20is\x20empty','test','trim','744wSZktv','join','UPDATE','\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.','replace','\x20query\x20targeting\x20','matchAll','3947008vGeppm','toUpperCase','INSERT','DELETE','\x20with\x20parameters:\x20','DDL\x20statements\x20are\x20blocked\x20from\x20auto-save','UNKNOWN','8162lrEfKv','7833SGdCFx','reason','from','match','DDL','includes','isDangerous','989628KQznPy','3TXDGvl','4670NUzGWG','split','length','2367335hCIaFJ','1CUTShL'];a197_0x1412=function(){return _0x408424;};return a197_0x1412();}function a197_0x4e00(_0x5da620,_0x43b464){_0x5da620=_0x5da620-0x1d1;const _0x141219=a197_0x1412();let _0x4e00cf=_0x141219[_0x5da620];return _0x4e00cf;}function extractParameters(_0x11cb24){const _0x1b4b9e=a197_0x4e00,_0x362696=new Set();for(const _0x1522fe of _0x11cb24[_0x1b4b9e(0x1ec)](/#\{(\w+)\}/g))if(_0x1522fe[0x1])_0x362696['add'](_0x1522fe[0x1]);for(const _0x25e824 of _0x11cb24[_0x1b4b9e(0x1ec)](/\$\{(\w+)\}/g))if(_0x25e824[0x1])_0x362696['add'](_0x25e824[0x1]);return Array[_0x1b4b9e(0x1f7)](_0x362696);}export function validateSql(_0x1c49ca){const _0x112e42=a197_0x4e00,_0xeccad5=detectSqlType(_0x1c49ca),_0x57dce9=extractTables(_0x1c49ca),_0x4cd5f2=extractParameters(_0x1c49ca);if(_0xeccad5[_0x112e42(0x1d4)])return{'valid':![],'sqlType':_0xeccad5,'tables':_0x57dce9,'parameters':_0x4cd5f2,'message':_0xeccad5[_0x112e42(0x1f6)]||_0xeccad5[_0x112e42(0x1dc)]+_0x112e42(0x1e9)};if(_0xeccad5[_0x112e42(0x1dc)]===_0x112e42(0x1f3))return{'valid':![],'sqlType':_0xeccad5,'tables':_0x57dce9,'parameters':_0x4cd5f2,'message':'Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.'};return{'valid':!![],'sqlType':_0xeccad5,'tables':_0x57dce9,'parameters':_0x4cd5f2,'message':_0xeccad5['type']+_0x112e42(0x1eb)+(_0x57dce9[_0x112e42(0x1d9)]?_0x57dce9['join'](',\x20'):'unknown\x20table(s)')+(_0x4cd5f2[_0x112e42(0x1d9)]?_0x112e42(0x1f1)+_0x4cd5f2[_0x112e42(0x1e7)](',\x20'):'')};}
1
+ (function(_0x4f9234,_0x5a06b9){const _0x4ea1cb=a199_0x2eab,_0x42b3b8=_0x4f9234();while(!![]){try{const _0x34100c=-parseInt(_0x4ea1cb(0x105))/0x1*(-parseInt(_0x4ea1cb(0xff))/0x2)+parseInt(_0x4ea1cb(0xe4))/0x3*(-parseInt(_0x4ea1cb(0x109))/0x4)+parseInt(_0x4ea1cb(0xe5))/0x5*(parseInt(_0x4ea1cb(0x10b))/0x6)+parseInt(_0x4ea1cb(0xfd))/0x7+parseInt(_0x4ea1cb(0xee))/0x8*(parseInt(_0x4ea1cb(0xf1))/0x9)+-parseInt(_0x4ea1cb(0xf9))/0xa*(-parseInt(_0x4ea1cb(0xe8))/0xb)+-parseInt(_0x4ea1cb(0xe6))/0xc*(parseInt(_0x4ea1cb(0xfb))/0xd);if(_0x34100c===_0x5a06b9)break;else _0x42b3b8['push'](_0x42b3b8['shift']());}catch(_0x424dfd){_0x42b3b8['push'](_0x42b3b8['shift']());}}}(a199_0x295d,0x858d6));function a199_0x2eab(_0x58d9f4,_0x1f913e){_0x58d9f4=_0x58d9f4-0xe3;const _0x295da1=a199_0x295d();let _0x2eabb9=_0x295da1[_0x58d9f4];return _0x2eabb9;}function a199_0x295d(){const _0x10ff0b=['1902846npHJLl','add','UPDATE','67326yPitfL','10GhkfAj','372lPpedK','SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT','72215zeWgKA','reason','push','WITH','isDangerous','trim','8IUDWog','\x20with\x20parameters:\x20','SQL\x20content\x20is\x20empty','2364507EVaslb','matchAll','replace','from','Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.','join','UNKNOWN','DDL','670ORCxtU','startsWith','1034761qXMnew','includes','7438844SKSHhC','split','2GYunAE','DELETE','INSERT','unknown\x20table(s)','type','test','974057qYUhjW','\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.','\x20query\x20targeting\x20','match','64sXoEvr','SELECT'];a199_0x295d=function(){return _0x10ff0b;};return a199_0x295d();}export function detectSqlType(_0x1159ff){const _0x102138=a199_0x2eab;if(!_0x1159ff?.[_0x102138(0xed)]())return{'type':_0x102138(0xf7),'isSelectOnly':![],'isDangerous':![],'reason':_0x102138(0xf0)};const _0x6715d=_0x1159ff[_0x102138(0xf3)](/#\{[^}]*\}/g,'?')[_0x102138(0xf3)](/\$\{[^}]*\}/g,'?')[_0x102138(0xf3)](/@[^(\s]+(\([^)]*\))?/g,'')['replace'](/\/\*[\s\S]*?\*\//g,'')['trim'](),_0x26fc32=_0x6715d[_0x102138(0xfe)]('\x0a');let _0x34720b='';for(const _0x578073 of _0x26fc32){const _0x571d9a=_0x578073[_0x102138(0xed)]();if(!_0x571d9a||_0x571d9a['startsWith']('--')||_0x571d9a[_0x102138(0xfa)]('/*'))continue;_0x34720b=_0x571d9a;break;}const _0xa436ab=_0x34720b['toUpperCase']();if(_0xa436ab[_0x102138(0xfa)](_0x102138(0x10a))||_0xa436ab[_0x102138(0xfa)](_0x102138(0xeb))){const _0xb1b41=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x102138(0x104)](_0x6715d);return{'type':_0x102138(0x10a),'isSelectOnly':!_0xb1b41,'isDangerous':_0xb1b41,'reason':_0xb1b41?_0x102138(0xe7):undefined};}if(_0xa436ab[_0x102138(0xfa)](_0x102138(0x101)))return{'type':_0x102138(0x101),'isSelectOnly':![],'isDangerous':![]};if(_0xa436ab[_0x102138(0xfa)](_0x102138(0xe3)))return{'type':_0x102138(0xe3),'isSelectOnly':![],'isDangerous':![]};if(_0xa436ab['startsWith'](_0x102138(0x100)))return{'type':_0x102138(0x100),'isSelectOnly':![],'isDangerous':!![],'reason':'DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save'};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i[_0x102138(0x104)](_0xa436ab))return{'type':_0x102138(0xf8),'isSelectOnly':![],'isDangerous':!![],'reason':'DDL\x20statements\x20are\x20blocked\x20from\x20auto-save'};return{'type':_0x102138(0xf7),'isSelectOnly':![],'isDangerous':![]};}function extractTables(_0x31d128){const _0x87ac34=a199_0x2eab,_0x26f0b7=_0x31d128[_0x87ac34(0xf3)](/#\{[^}]*\}/g,'?')[_0x87ac34(0xf3)](/\$\{[^}]*\}/g,'?')[_0x87ac34(0xf3)](/'[^']*'/g,'\x27\x27')[_0x87ac34(0xf3)](/--.*$/gm,'')['replace'](/\/\*[\s\S]*?\*\//g,''),_0x93c833=[],_0x3084b8=_0x26f0b7[_0x87ac34(0x108)](/FROM\s+([^\s,)(]+)/i);if(_0x3084b8?.[0x1])_0x93c833[_0x87ac34(0xea)](_0x3084b8[0x1][_0x87ac34(0xf3)](/[`"]/g,''));for(const _0x5ab757 of _0x26f0b7[_0x87ac34(0xf2)](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){const _0x1c5d1f=_0x5ab757[0x1]?.[_0x87ac34(0xf3)](/[`"]/g,'');if(_0x1c5d1f&&!_0x93c833['includes'](_0x1c5d1f))_0x93c833[_0x87ac34(0xea)](_0x1c5d1f);}const _0x5eb810=_0x26f0b7[_0x87ac34(0x108)](/INTO\s+([^\s(]+)/i);if(_0x5eb810?.[0x1]){const _0x446126=_0x5eb810[0x1][_0x87ac34(0xf3)](/[`"]/g,'');if(!_0x93c833[_0x87ac34(0xfc)](_0x446126))_0x93c833['push'](_0x446126);}const _0x39ce4e=_0x26f0b7['match'](/UPDATE\s+([^\s,)(]+)/i);if(_0x39ce4e?.[0x1]){const _0x2c32be=_0x39ce4e[0x1]['replace'](/[`"]/g,'');if(!_0x93c833[_0x87ac34(0xfc)](_0x2c32be))_0x93c833['push'](_0x2c32be);}return _0x93c833;}function extractParameters(_0x2be3c4){const _0x51b1a7=a199_0x2eab,_0x11a045=new Set();for(const _0xc89eec of _0x2be3c4[_0x51b1a7(0xf2)](/#\{(\w+)\}/g))if(_0xc89eec[0x1])_0x11a045[_0x51b1a7(0x10c)](_0xc89eec[0x1]);for(const _0x48766c of _0x2be3c4['matchAll'](/\$\{(\w+)\}/g))if(_0x48766c[0x1])_0x11a045['add'](_0x48766c[0x1]);return Array[_0x51b1a7(0xf4)](_0x11a045);}export function validateSql(_0x152598){const _0x5c82db=a199_0x2eab,_0xd4323e=detectSqlType(_0x152598),_0x44a456=extractTables(_0x152598),_0x4aeb8=extractParameters(_0x152598);if(_0xd4323e[_0x5c82db(0xec)])return{'valid':![],'sqlType':_0xd4323e,'tables':_0x44a456,'parameters':_0x4aeb8,'message':_0xd4323e[_0x5c82db(0xe9)]||_0xd4323e['type']+_0x5c82db(0x106)};if(_0xd4323e[_0x5c82db(0x103)]===_0x5c82db(0xf7))return{'valid':![],'sqlType':_0xd4323e,'tables':_0x44a456,'parameters':_0x4aeb8,'message':_0x5c82db(0xf5)};return{'valid':!![],'sqlType':_0xd4323e,'tables':_0x44a456,'parameters':_0x4aeb8,'message':_0xd4323e[_0x5c82db(0x103)]+_0x5c82db(0x107)+(_0x44a456['length']?_0x44a456[_0x5c82db(0xf6)](',\x20'):_0x5c82db(0x102))+(_0x4aeb8['length']?_0x5c82db(0xef)+_0x4aeb8['join'](',\x20'):'')};}
package/lib/errors.js CHANGED
@@ -1 +1 @@
1
- const a198_0x5c4451=a198_0x181d;(function(_0x5c4e17,_0x10a5e3){const _0x289cbf=a198_0x181d,_0x27a6fa=_0x5c4e17();while(!![]){try{const _0x39e7ea=-parseInt(_0x289cbf(0x7e))/0x1+-parseInt(_0x289cbf(0x84))/0x2*(parseInt(_0x289cbf(0x80))/0x3)+-parseInt(_0x289cbf(0x88))/0x4*(parseInt(_0x289cbf(0x83))/0x5)+parseInt(_0x289cbf(0x81))/0x6+parseInt(_0x289cbf(0x78))/0x7+parseInt(_0x289cbf(0x85))/0x8+-parseInt(_0x289cbf(0x7a))/0x9*(parseInt(_0x289cbf(0x7c))/0xa);if(_0x39e7ea===_0x10a5e3)break;else _0x27a6fa['push'](_0x27a6fa['shift']());}catch(_0x4ad6f9){_0x27a6fa['push'](_0x27a6fa['shift']());}}}(a198_0x196a,0xe02f5));import{CliError,createCliErrors}from'@lovrabet/cli-framework';function a198_0x181d(_0x4fe925,_0x2c1331){_0x4fe925=_0x4fe925-0x78;const _0x196ade=a198_0x196a();let _0x181db4=_0x196ade[_0x4fe925];return _0x181db4;}function a198_0x196a(){const _0x539daa=['\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.','3QmQtzH','3866526qtLyLh','Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.','15NvWUou','2194uVPVAy','6240168uUOroO','Tip:\x20`','Set\x20appcode\x20via\x20`','465932KArAVc','9221219MZCEfy','\x20auth`\x20to\x20login\x20first.','6266367rcGCgf','Run\x20`','20KYgEbk','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','80426OlJvoV'];a198_0x196a=function(){return _0x539daa;};return a198_0x196a();}import{CLI_BIN_NAME}from'./constant/cli.js';export{CliError};export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a198_0x5c4451(0x7b)+CLI_BIN_NAME+a198_0x5c4451(0x79),'configMissingHint':[a198_0x5c4451(0x87)+CLI_BIN_NAME+a198_0x5c4451(0x7d),a198_0x5c4451(0x86)+CLI_BIN_NAME+a198_0x5c4451(0x7f)]['join']('\x0a\x20\x20\x20\x20\x20\x20\x20'),'notInProjectHint':a198_0x5c4451(0x82)});
1
+ function a200_0x6afd(_0x2af5ef,_0x219b4b){_0x2af5ef=_0x2af5ef-0x14a;const _0x4a909c=a200_0x4a90();let _0x6afd80=_0x4a909c[_0x2af5ef];return _0x6afd80;}const a200_0x3e7d3d=a200_0x6afd;(function(_0x2a664f,_0x1d5dda){const _0x4e7180=a200_0x6afd,_0x1c7d60=_0x2a664f();while(!![]){try{const _0x2e18aa=-parseInt(_0x4e7180(0x15e))/0x1+parseInt(_0x4e7180(0x15a))/0x2*(-parseInt(_0x4e7180(0x159))/0x3)+parseInt(_0x4e7180(0x153))/0x4*(parseInt(_0x4e7180(0x152))/0x5)+parseInt(_0x4e7180(0x154))/0x6*(-parseInt(_0x4e7180(0x151))/0x7)+parseInt(_0x4e7180(0x14a))/0x8*(-parseInt(_0x4e7180(0x158))/0x9)+parseInt(_0x4e7180(0x14c))/0xa*(-parseInt(_0x4e7180(0x14f))/0xb)+parseInt(_0x4e7180(0x150))/0xc*(parseInt(_0x4e7180(0x15d))/0xd);if(_0x2e18aa===_0x1d5dda)break;else _0x1c7d60['push'](_0x1c7d60['shift']());}catch(_0x4345a3){_0x1c7d60['push'](_0x1c7d60['shift']());}}}(a200_0x4a90,0x336c2));import{CliError,createCliErrors}from'@lovrabet/cli-framework';function a200_0x4a90(){const _0x54963d=['26qaRRFt','555ociXGe','2125544cAVvWH','\x20auth`\x20to\x20login\x20first.','10QuZZiR','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.','4105783GjeFOl','5383272DwpHKD','7sbaJNt','890gxGXzF','7536kXCrzy','1042206JDcPaG','Set\x20appcode\x20via\x20`','Run\x20`','join','9SIDrlG','1056XQkvOX','1186xsIAiu','Tip:\x20`','\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.'];a200_0x4a90=function(){return _0x54963d;};return a200_0x4a90();}import{CLI_BIN_NAME}from'./constant/cli.js';export{CliError};export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a200_0x3e7d3d(0x156)+CLI_BIN_NAME+a200_0x3e7d3d(0x14b),'configMissingHint':[a200_0x3e7d3d(0x155)+CLI_BIN_NAME+a200_0x3e7d3d(0x14d),a200_0x3e7d3d(0x15b)+CLI_BIN_NAME+a200_0x3e7d3d(0x15c)][a200_0x3e7d3d(0x157)]('\x0a\x20\x20\x20\x20\x20\x20\x20'),'notInProjectHint':a200_0x3e7d3d(0x14e)});
@@ -1 +1 @@
1
- (function(_0x259abc,_0x1d8b1b){var _0x5c61c2=a199_0x13bd,_0x574e92=_0x259abc();while(!![]){try{var _0x2d0bac=parseInt(_0x5c61c2(0xae))/0x1*(-parseInt(_0x5c61c2(0xab))/0x2)+parseInt(_0x5c61c2(0xb0))/0x3*(-parseInt(_0x5c61c2(0xb4))/0x4)+parseInt(_0x5c61c2(0xaa))/0x5*(parseInt(_0x5c61c2(0xad))/0x6)+-parseInt(_0x5c61c2(0xb2))/0x7*(-parseInt(_0x5c61c2(0xa9))/0x8)+parseInt(_0x5c61c2(0xac))/0x9*(parseInt(_0x5c61c2(0xb1))/0xa)+-parseInt(_0x5c61c2(0xaf))/0xb*(-parseInt(_0x5c61c2(0xb5))/0xc)+-parseInt(_0x5c61c2(0xb3))/0xd;if(_0x2d0bac===_0x1d8b1b)break;else _0x574e92['push'](_0x574e92['shift']());}catch(_0x6151c9){_0x574e92['push'](_0x574e92['shift']());}}}(a199_0x481d,0x54e89));function a199_0x13bd(_0x28e97b,_0x5b8d75){_0x28e97b=_0x28e97b-0xa9;var _0x481dee=a199_0x481d();var _0x13bdd3=_0x481dee[_0x28e97b];return _0x13bdd3;}import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a199_0x3b3313}from'@lovrabet/cli-framework';export function buildAllFlags(_0x551623){return a199_0x3b3313(_0x551623,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}function a199_0x481d(){var _0x55a30e=['237325raZENN','26043UzCctf','147790rTvxDp','2930669WDLbaM','8053942yktpLh','196bFtEmo','360vlZNgo','8msZyVx','55dnRlLg','12xZzMRY','387CGvRIV','53580aGKcVY','67826uQUfDM'];a199_0x481d=function(){return _0x55a30e;};return a199_0x481d();}
1
+ (function(_0x4fd4ce,_0x3657bb){var _0x52958d=a201_0x1554,_0xd8774d=_0x4fd4ce();while(!![]){try{var _0x534f48=-parseInt(_0x52958d(0x133))/0x1+-parseInt(_0x52958d(0x132))/0x2*(-parseInt(_0x52958d(0x12a))/0x3)+-parseInt(_0x52958d(0x131))/0x4*(-parseInt(_0x52958d(0x12b))/0x5)+-parseInt(_0x52958d(0x12c))/0x6+parseInt(_0x52958d(0x12f))/0x7*(-parseInt(_0x52958d(0x12e))/0x8)+-parseInt(_0x52958d(0x134))/0x9+-parseInt(_0x52958d(0x130))/0xa*(-parseInt(_0x52958d(0x12d))/0xb);if(_0x534f48===_0x3657bb)break;else _0xd8774d['push'](_0xd8774d['shift']());}catch(_0x19eb7b){_0xd8774d['push'](_0xd8774d['shift']());}}}(a201_0x4475,0x90c0b));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a201_0x55d271}from'@lovrabet/cli-framework';function a201_0x1554(_0xdff745,_0x473c32){_0xdff745=_0xdff745-0x12a;var _0x4475ae=a201_0x4475();var _0x1554ff=_0x4475ae[_0xdff745];return _0x1554ff;}function a201_0x4475(){var _0x4e2870=['4065376izBOEJ','7KFOFki','30veoLgC','106980XMPeWD','2vdGYxL','988437sgLFtF','3045195ROnSkq','1695045UEjbvZ','80XydicF','3313350YjnLez','7286257IsJvJc'];a201_0x4475=function(){return _0x4e2870;};return a201_0x4475();}export function buildAllFlags(_0x2994fa){return a201_0x55d271(_0x2994fa,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
@@ -1 +1 @@
1
- const a200_0x297eea=a200_0x4297;(function(_0x3a0a06,_0x4bc8a8){const _0x53bb24=a200_0x4297,_0x3e22dc=_0x3a0a06();while(!![]){try{const _0x292c01=parseInt(_0x53bb24(0x9b))/0x1*(-parseInt(_0x53bb24(0x9c))/0x2)+-parseInt(_0x53bb24(0x95))/0x3*(parseInt(_0x53bb24(0x9d))/0x4)+parseInt(_0x53bb24(0xa0))/0x5*(-parseInt(_0x53bb24(0x96))/0x6)+-parseInt(_0x53bb24(0x98))/0x7+parseInt(_0x53bb24(0x99))/0x8*(-parseInt(_0x53bb24(0x9e))/0x9)+-parseInt(_0x53bb24(0x97))/0xa+parseInt(_0x53bb24(0x9f))/0xb;if(_0x292c01===_0x4bc8a8)break;else _0x3e22dc['push'](_0x3e22dc['shift']());}catch(_0x4b8a4b){_0x3e22dc['push'](_0x3e22dc['shift']());}}}(a200_0x4199,0x34494));import{createFlagHelpers}from'@lovrabet/cli-framework';function a200_0x4297(_0x53a818,_0x3884a8){_0x53a818=_0x53a818-0x95;const _0x419961=a200_0x4199();let _0x4297bb=_0x419961[_0x53a818];return _0x4297bb;}import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers[a200_0x297eea(0x9a)];export const validateFlags=helpers['validateFlags'];function a200_0x4199(){const _0x5d9e5a=['62480WOFHEb','parseFlags','7387iRRGUz','98umtASp','1150828YsZFzT','45KSxwgP','16906637QxaIjq','72525NtHsUQ','3VfCsMe','84LDbeXe','2286390ydHMLC','1416618vshKfT'];a200_0x4199=function(){return _0x5d9e5a;};return a200_0x4199();}
1
+ const a202_0x21b076=a202_0x22b3;(function(_0x269a2e,_0x13f918){const _0x196731=a202_0x22b3,_0x323a76=_0x269a2e();while(!![]){try{const _0x51c987=parseInt(_0x196731(0xa5))/0x1+parseInt(_0x196731(0xa3))/0x2+parseInt(_0x196731(0xaa))/0x3+-parseInt(_0x196731(0xa4))/0x4+-parseInt(_0x196731(0xa6))/0x5*(parseInt(_0x196731(0xa0))/0x6)+-parseInt(_0x196731(0xa2))/0x7*(-parseInt(_0x196731(0xa8))/0x8)+parseInt(_0x196731(0xa7))/0x9*(parseInt(_0x196731(0xa9))/0xa);if(_0x51c987===_0x13f918)break;else _0x323a76['push'](_0x323a76['shift']());}catch(_0x51445c){_0x323a76['push'](_0x323a76['shift']());}}}(a202_0x5eb9,0x89a22));import{createFlagHelpers}from'@lovrabet/cli-framework';function a202_0x22b3(_0x487d10,_0x1b937b){_0x487d10=_0x487d10-0xa0;const _0x5eb97a=a202_0x5eb9();let _0x22b3a5=_0x5eb97a[_0x487d10];return _0x22b3a5;}import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers['parseFlags'];export const validateFlags=helpers[a202_0x21b076(0xa1)];function a202_0x5eb9(){const _0x51ea38=['1332328NQAnLY','651552EIAUyM','51305TMjvzr','234GyYpXv','317080ndFQSB','25140JkWKYB','1349454nJbkSS','186RhsRhx','validateFlags','7bdAlph','17100AewgrE'];a202_0x5eb9=function(){return _0x51ea38;};return a202_0x5eb9();}
@@ -1 +1 @@
1
- const a201_0x29d6f3=a201_0x1686;function a201_0x1686(_0x1b8bad,_0x4216aa){_0x1b8bad=_0x1b8bad-0x1ae;const _0x26d14c=a201_0x26d1();let _0x1686ae=_0x26d14c[_0x1b8bad];return _0x1686ae;}function a201_0x26d1(){const _0x354632=['11NyJVCl','113256PLApOk','Requires\x20appcode\x20(set\x20via\x20`','\x20[args]\x20[flags]','generateCommandHelp','690616IBXrsf','generateFullHelp','310135suvaNp','\x20workspace\x20init`\x20or\x20--appcode).','745HGsRYd','1497620aETOHs','get','32LXqaqj','18bJSPpT','17994GznMCc','646541gfSDSI','14054280awuStE'];a201_0x26d1=function(){return _0x354632;};return a201_0x26d1();}(function(_0x551148,_0x2fabd2){const _0x313501=a201_0x1686,_0x3cd8e9=_0x551148();while(!![]){try{const _0x4a1a9a=parseInt(_0x313501(0x1be))/0x1+-parseInt(_0x313501(0x1b9))/0x2+parseInt(_0x313501(0x1bc))/0x3*(-parseInt(_0x313501(0x1b4))/0x4)+-parseInt(_0x313501(0x1b8))/0x5*(-parseInt(_0x313501(0x1bd))/0x6)+-parseInt(_0x313501(0x1b6))/0x7*(parseInt(_0x313501(0x1bb))/0x8)+-parseInt(_0x313501(0x1b0))/0x9+-parseInt(_0x313501(0x1ae))/0xa*(-parseInt(_0x313501(0x1af))/0xb);if(_0x4a1a9a===_0x2fabd2)break;else _0x3cd8e9['push'](_0x3cd8e9['shift']());}catch(_0x1ca954){_0x3cd8e9['push'](_0x3cd8e9['shift']());}}}(a201_0x26d1,0x7fffa));import{createHelpGenerators}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';const generators=createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':serviceRegistry,'getServiceEntry':getServiceEntry,'getServiceDefinitions':_0x94c191=>serviceGroups[a201_0x29d6f3(0x1ba)](_0x94c191),'buildAllFlags':buildAllFlags,'appPrerequisiteText':a201_0x29d6f3(0x1b1)+CLI_BIN_NAME+a201_0x29d6f3(0x1b7),'serviceUsageSuffix':a201_0x29d6f3(0x1b2)});export function generateCommandHelp(_0x3fbe13){const _0x233fe6=a201_0x29d6f3;return generators[_0x233fe6(0x1b3)](_0x3fbe13);}export const generateServiceHelp=generators['generateServiceHelp'];export const generateFullHelp=generators[a201_0x29d6f3(0x1b5)];
1
+ const a203_0x49a4c8=a203_0x4791;function a203_0x4791(_0x5e9e68,_0x21f975){_0x5e9e68=_0x5e9e68-0x6a;const _0x172dac=a203_0x172d();let _0x4791e7=_0x172dac[_0x5e9e68];return _0x4791e7;}(function(_0x36ab00,_0x1d5357){const _0x5b90e8=a203_0x4791,_0x4963b9=_0x36ab00();while(!![]){try{const _0x279025=parseInt(_0x5b90e8(0x6e))/0x1+-parseInt(_0x5b90e8(0x74))/0x2+parseInt(_0x5b90e8(0x70))/0x3*(parseInt(_0x5b90e8(0x71))/0x4)+parseInt(_0x5b90e8(0x72))/0x5*(parseInt(_0x5b90e8(0x6d))/0x6)+-parseInt(_0x5b90e8(0x76))/0x7+parseInt(_0x5b90e8(0x75))/0x8*(-parseInt(_0x5b90e8(0x73))/0x9)+parseInt(_0x5b90e8(0x6a))/0xa*(parseInt(_0x5b90e8(0x6f))/0xb);if(_0x279025===_0x1d5357)break;else _0x4963b9['push'](_0x4963b9['shift']());}catch(_0x2c74fc){_0x4963b9['push'](_0x4963b9['shift']());}}}(a203_0x172d,0x98e67));import{createHelpGenerators}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';function a203_0x172d(){const _0x595deb=['707228wwJDdA','186955DNQPrr','828vSdQjA','16662kyhbcN','21488fjxRIk','7582911WbHyjM','generateCommandHelp','17570yWgbqh','generateServiceHelp','\x20workspace\x20init`\x20or\x20--appcode).','138iNCzoa','167607lMGTrE','1441ofgwuQ','12yelRMi'];a203_0x172d=function(){return _0x595deb;};return a203_0x172d();}import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';const generators=createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':serviceRegistry,'getServiceEntry':getServiceEntry,'getServiceDefinitions':_0xbfaeed=>serviceGroups['get'](_0xbfaeed),'buildAllFlags':buildAllFlags,'appPrerequisiteText':'Requires\x20appcode\x20(set\x20via\x20`'+CLI_BIN_NAME+a203_0x49a4c8(0x6c),'serviceUsageSuffix':'\x20[args]\x20[flags]'});export function generateCommandHelp(_0x1569e8){const _0x3feb4d=a203_0x49a4c8;return generators[_0x3feb4d(0x77)](_0x1569e8);}export const generateServiceHelp=generators[a203_0x49a4c8(0x6b)];export const generateFullHelp=generators['generateFullHelp'];
@@ -1 +1 @@
1
- (function(_0x5d5099,_0x11ab03){var _0x199117=a202_0x4a40,_0x19d058=_0x5d5099();while(!![]){try{var _0x4ba6ff=-parseInt(_0x199117(0xa9))/0x1+-parseInt(_0x199117(0xa6))/0x2*(-parseInt(_0x199117(0xac))/0x3)+parseInt(_0x199117(0xa7))/0x4*(parseInt(_0x199117(0xaf))/0x5)+parseInt(_0x199117(0xad))/0x6*(-parseInt(_0x199117(0xaa))/0x7)+-parseInt(_0x199117(0xa8))/0x8+parseInt(_0x199117(0xae))/0x9*(parseInt(_0x199117(0xa5))/0xa)+parseInt(_0x199117(0xab))/0xb;if(_0x4ba6ff===_0x11ab03)break;else _0x19d058['push'](_0x19d058['shift']());}catch(_0x31feeb){_0x19d058['push'](_0x19d058['shift']());}}}(a202_0x47f5,0xecbaa));export{runCommand}from'../framework/runner.js';function a202_0x4a40(_0x557f1c,_0x2b637d){_0x557f1c=_0x557f1c-0xa5;var _0x47f5ed=a202_0x47f5();var _0x4a40cc=_0x47f5ed[_0x557f1c];return _0x4a40cc;}export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';export{riskLevelOrder}from'../framework/types.js';function a202_0x47f5(){var _0x37c848=['10670514dNjeUr','1827hUnTHJ','724425HKmBvr','86170mDOkHH','16198CrMrQG','20wyqToj','14719104ukIvhV','661009lfQuDu','7VECFGg','14135726loULWL','552oMCTAF'];a202_0x47f5=function(){return _0x37c848;};return a202_0x47f5();}
1
+ (function(_0x32e64f,_0x2e4fbc){var _0x4b2821=a204_0x5b86,_0x33ce73=_0x32e64f();while(!![]){try{var _0x15f5b1=parseInt(_0x4b2821(0x155))/0x1*(-parseInt(_0x4b2821(0x154))/0x2)+-parseInt(_0x4b2821(0x14e))/0x3+-parseInt(_0x4b2821(0x152))/0x4+-parseInt(_0x4b2821(0x151))/0x5+-parseInt(_0x4b2821(0x153))/0x6+parseInt(_0x4b2821(0x156))/0x7+-parseInt(_0x4b2821(0x150))/0x8*(-parseInt(_0x4b2821(0x14f))/0x9);if(_0x15f5b1===_0x2e4fbc)break;else _0x33ce73['push'](_0x33ce73['shift']());}catch(_0x48b6b0){_0x33ce73['push'](_0x33ce73['shift']());}}}(a204_0x55ca,0xe1a03));export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';function a204_0x55ca(){var _0x5a8d63=['38863nFDccX','10080406VVcVGr','4398435shGcEs','48675357mapXaL','8yUdmsU','7984300fKeyNc','6635764KFxLVR','6980754qeSTQP','2ngNGDy'];a204_0x55ca=function(){return _0x5a8d63;};return a204_0x55ca();}function a204_0x5b86(_0xbe220c,_0x2f5103){_0xbe220c=_0xbe220c-0x14e;var _0x55ca39=a204_0x55ca();var _0x5b86d2=_0x55ca39[_0xbe220c];return _0x5b86d2;}export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';export{riskLevelOrder}from'../framework/types.js';
@@ -1 +1 @@
1
- (function(_0x569038,_0x1c2a23){const _0x53fbe9=a203_0x53ee,_0x1ef2ca=_0x569038();while(!![]){try{const _0x5d01d4=-parseInt(_0x53fbe9(0x7a))/0x1*(-parseInt(_0x53fbe9(0x73))/0x2)+parseInt(_0x53fbe9(0x71))/0x3*(parseInt(_0x53fbe9(0x74))/0x4)+-parseInt(_0x53fbe9(0x70))/0x5*(-parseInt(_0x53fbe9(0x79))/0x6)+parseInt(_0x53fbe9(0x78))/0x7+-parseInt(_0x53fbe9(0x72))/0x8*(parseInt(_0x53fbe9(0x6f))/0x9)+-parseInt(_0x53fbe9(0x80))/0xa*(parseInt(_0x53fbe9(0x76))/0xb)+-parseInt(_0x53fbe9(0x7f))/0xc*(parseInt(_0x53fbe9(0x75))/0xd);if(_0x5d01d4===_0x1c2a23)break;else _0x1ef2ca['push'](_0x1ef2ca['shift']());}catch(_0x400dc8){_0x1ef2ca['push'](_0x1ef2ca['shift']());}}}(a203_0x438c,0x41b4f));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});function a203_0x53ee(_0x2f94fd,_0x5a87e0){_0x2f94fd=_0x2f94fd-0x6f;const _0x438c7d=a203_0x438c();let _0x53eee4=_0x438c7d[_0x2f94fd];return _0x53eee4;}export function formatOutput(_0x642901,_0x462676){const _0x4f72cf=a203_0x53ee,_0x548b98=_0x642901[_0x4f72cf(0x7e)],{_notice:_0x5d2aa4,..._0x4b7e92}=_0x642901;void _0x5d2aa4,baseFormatOutput(_0x4b7e92,_0x462676),_0x462676[_0x4f72cf(0x81)]==='pretty'&&printPrettyNotice(_0x548b98);}function a203_0x438c(){const _0xd2fc1b=['15ALHOZl','8619pUXClK','605776aHoxKR','12466EUKlZp','380nFJgtS','3818789sEDPBw','146641dEYkPR','message','1373393CrlHsw','40074WUpuoW','86IOjneg','url','update','error','_notice','12pThNnw','290Hbhzfh','format','9XSWghh'];a203_0x438c=function(){return _0xd2fc1b;};return a203_0x438c();}function printPrettyNotice(_0x5294c2){const _0x338ba7=a203_0x53ee;if(!_0x5294c2?.[_0x338ba7(0x7c)])return;console[_0x338ba7(0x7d)](_0x5294c2[_0x338ba7(0x7c)][_0x338ba7(0x77)]+'\x20('+_0x5294c2['update'][_0x338ba7(0x7b)]+')');}
1
+ (function(_0x43655e,_0x123d65){const _0x197c52=a205_0x433b,_0x5794f8=_0x43655e();while(!![]){try{const _0x2e7dba=parseInt(_0x197c52(0x14d))/0x1+parseInt(_0x197c52(0x159))/0x2+-parseInt(_0x197c52(0x14b))/0x3*(-parseInt(_0x197c52(0x153))/0x4)+-parseInt(_0x197c52(0x14e))/0x5*(parseInt(_0x197c52(0x158))/0x6)+-parseInt(_0x197c52(0x14f))/0x7+parseInt(_0x197c52(0x156))/0x8+-parseInt(_0x197c52(0x152))/0x9*(parseInt(_0x197c52(0x157))/0xa);if(_0x2e7dba===_0x123d65)break;else _0x5794f8['push'](_0x5794f8['shift']());}catch(_0x367206){_0x5794f8['push'](_0x5794f8['shift']());}}}(a205_0xd6e2,0xb9517));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a205_0x433b(_0x3ca7c5,_0x6eb4eb){_0x3ca7c5=_0x3ca7c5-0x14b;const _0xd6e24a=a205_0xd6e2();let _0x433b78=_0xd6e24a[_0x3ca7c5];return _0x433b78;}import{CliErrors}from'../errors.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});function a205_0xd6e2(){const _0x106f92=['2992790Emshel','error','9948AHjIvR','format','132859bBhWfF','1791445kdqFrn','5789483zZCgQX','update','url','9vhYTMx','1384whMjgu','message','_notice','2883448dQDiqc','8343110eamUod','12PTjvCt'];a205_0xd6e2=function(){return _0x106f92;};return a205_0xd6e2();}export function formatOutput(_0x3505bb,_0x44bf07){const _0x342881=a205_0x433b,_0x2b72d9=_0x3505bb[_0x342881(0x155)],{_notice:_0x2b6df0,..._0x1b9ae3}=_0x3505bb;void _0x2b6df0,baseFormatOutput(_0x1b9ae3,_0x44bf07),_0x44bf07[_0x342881(0x14c)]==='pretty'&&printPrettyNotice(_0x2b72d9);}function printPrettyNotice(_0x31b411){const _0x56e690=a205_0x433b;if(!_0x31b411?.['update'])return;console[_0x56e690(0x15a)](_0x31b411[_0x56e690(0x150)][_0x56e690(0x154)]+'\x20('+_0x31b411[_0x56e690(0x150)][_0x56e690(0x151)]+')');}
@@ -1 +1 @@
1
- (function(_0x47b5cf,_0x249f5f){var _0x2dee21=a204_0xc2d6,_0x21a139=_0x47b5cf();while(!![]){try{var _0x4e7a88=-parseInt(_0x2dee21(0x14b))/0x1+-parseInt(_0x2dee21(0x148))/0x2*(parseInt(_0x2dee21(0x14c))/0x3)+-parseInt(_0x2dee21(0x149))/0x4*(-parseInt(_0x2dee21(0x14d))/0x5)+-parseInt(_0x2dee21(0x14a))/0x6+parseInt(_0x2dee21(0x147))/0x7*(-parseInt(_0x2dee21(0x146))/0x8)+parseInt(_0x2dee21(0x145))/0x9+parseInt(_0x2dee21(0x14e))/0xa*(parseInt(_0x2dee21(0x144))/0xb);if(_0x4e7a88===_0x249f5f)break;else _0x21a139['push'](_0x21a139['shift']());}catch(_0x5a3376){_0x21a139['push'](_0x21a139['shift']());}}}(a204_0x96f1,0x67188));function a204_0x96f1(){var _0x301891=['4550175QnelKn','1274872WtytLW','7jLndEu','2cfvoug','8XJCKmn','3945528BZYNon','402519XCHhmv','2026059CQvZzz','1977155XIwPEP','5103310EGEiId','22yzLFEZ'];a204_0x96f1=function(){return _0x301891;};return a204_0x96f1();}function a204_0xc2d6(_0x20aebc,_0x1ba59a){_0x20aebc=_0x20aebc-0x144;var _0x96f10e=a204_0x96f1();var _0xc2d633=_0x96f10e[_0x20aebc];return _0xc2d633;}export{extractList,extractPaging}from'@lovrabet/cli-framework';
1
+ function a206_0x27f6(_0x5ad3a2,_0x5a1bfd){_0x5ad3a2=_0x5ad3a2-0xc5;var _0x53a98f=a206_0x53a9();var _0x27f6d5=_0x53a98f[_0x5ad3a2];return _0x27f6d5;}(function(_0x2b0ffc,_0x560b82){var _0x25ff63=a206_0x27f6,_0x4cb2bd=_0x2b0ffc();while(!![]){try{var _0x50dce6=-parseInt(_0x25ff63(0xc5))/0x1+-parseInt(_0x25ff63(0xc8))/0x2*(-parseInt(_0x25ff63(0xcb))/0x3)+parseInt(_0x25ff63(0xcc))/0x4+parseInt(_0x25ff63(0xcd))/0x5+parseInt(_0x25ff63(0xc9))/0x6*(-parseInt(_0x25ff63(0xca))/0x7)+parseInt(_0x25ff63(0xc6))/0x8+-parseInt(_0x25ff63(0xc7))/0x9;if(_0x50dce6===_0x560b82)break;else _0x4cb2bd['push'](_0x4cb2bd['shift']());}catch(_0x308372){_0x4cb2bd['push'](_0x4cb2bd['shift']());}}}(a206_0x53a9,0x47edd));export{extractList,extractPaging}from'@lovrabet/cli-framework';function a206_0x53a9(){var _0x9c890d=['16644HuJcCd','301VSnKzO','215019GJmDaY','374828rOYMjG','2224940AsINSH','465079MjNQeU','3708264GCkOMt','4334499UqhLjg','10zndtjk'];a206_0x53a9=function(){return _0x9c890d;};return a206_0x53a9();}
@@ -1 +1 @@
1
- (function(_0x4307a3,_0x4e3f77){const _0x452e19=a205_0x1039,_0x65db7a=_0x4307a3();while(!![]){try{const _0x393385=-parseInt(_0x452e19(0x185))/0x1+-parseInt(_0x452e19(0x183))/0x2*(parseInt(_0x452e19(0x190))/0x3)+parseInt(_0x452e19(0x186))/0x4*(-parseInt(_0x452e19(0x187))/0x5)+parseInt(_0x452e19(0x17d))/0x6*(-parseInt(_0x452e19(0x191))/0x7)+parseInt(_0x452e19(0x18f))/0x8+parseInt(_0x452e19(0x181))/0x9+-parseInt(_0x452e19(0x17c))/0xa*(-parseInt(_0x452e19(0x189))/0xb);if(_0x393385===_0x4e3f77)break;else _0x65db7a['push'](_0x65db7a['shift']());}catch(_0x264a26){_0x65db7a['push'](_0x65db7a['shift']());}}}(a205_0xc74f,0xb3e96));function a205_0xc74f(){const _0x4ac6e4=['8499152ZjFvwf','3eGOxDI','14iVIFFX','string','\x22.\x20','code','map','Available\x20aliases:\x20','some','130phvWGL','1950660nOdgpk','flags','.\x20Run\x20`','validation','6630498JtWzfe','length','1789466KHjPGA','type','639628dMkjTn','945852ntSADe','20ndFKsZ','Unknown\x20alias\x20\x22','1750045zbegQW','\x20api\x20pull`\x20first.','No\x20api.ts\x20found\x20in\x20','alias','join','`\x20requires\x20either\x20--code\x20or\x20--alias.'];a205_0xc74f=function(){return _0x4ac6e4;};return a205_0xc74f();}import{CliErrors}from'../errors.js';function a205_0x1039(_0x235aad,_0x590720){_0x235aad=_0x235aad-0x177;const _0xc74f3c=a205_0xc74f();let _0x103963=_0xc74f3c[_0x235aad];return _0x103963;}import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';export function resolveAliasToCode(_0xcadde5,_0xdc360e,_0x48b0ed,_0x54b3cf){const _0x1250d0=a205_0x1039,_0x5e9ce1=_0xcadde5[_0x1250d0(0x17e)][_0x1250d0(0x17b)](_0x2e4d16=>_0x2e4d16['name']==='code'&&_0x2e4d16[_0x1250d0(0x184)]===_0x1250d0(0x192)),_0x4c85a4=_0xcadde5[_0x1250d0(0x17e)]['some'](_0x5995c3=>_0x5995c3['name']===_0x1250d0(0x18c)&&_0x5995c3[_0x1250d0(0x184)]===_0x1250d0(0x192));if(!_0x5e9ce1||!_0x4c85a4)return;const _0xd8b994=_0xdc360e['code']?String(_0xdc360e[_0x1250d0(0x178)]):'',_0x4e5917=_0xdc360e[_0x1250d0(0x18c)]?String(_0xdc360e[_0x1250d0(0x18c)]):'';if(!_0xd8b994&&!_0x4e5917)throw CliErrors['validation']('`'+_0x54b3cf+_0x1250d0(0x18e));if(_0x4e5917&&!_0xd8b994){const _0x31597d=resolveAlias(_0x48b0ed,_0x4e5917);if(!_0x31597d){const _0x460f80=listAliases(_0x48b0ed)[_0x1250d0(0x179)](_0x54d2da=>_0x54d2da[_0x1250d0(0x18c)]),_0x45b071=_0x460f80[_0x1250d0(0x182)]?_0x1250d0(0x17a)+_0x460f80[_0x1250d0(0x18d)](',\x20'):_0x1250d0(0x18b)+_0x48b0ed+_0x1250d0(0x17f)+CLI_BIN_NAME+_0x1250d0(0x18a);throw CliErrors[_0x1250d0(0x180)](_0x1250d0(0x188)+_0x4e5917+_0x1250d0(0x177)+_0x45b071);}_0xdc360e[_0x1250d0(0x178)]=_0x31597d;}}
1
+ (function(_0x27e386,_0x1fc042){const _0x143083=a207_0x1d2c,_0x39cfbe=_0x27e386();while(!![]){try{const _0x39504d=parseInt(_0x143083(0x12c))/0x1+-parseInt(_0x143083(0x132))/0x2+-parseInt(_0x143083(0x13d))/0x3+-parseInt(_0x143083(0x133))/0x4*(-parseInt(_0x143083(0x12f))/0x5)+-parseInt(_0x143083(0x12b))/0x6*(-parseInt(_0x143083(0x139))/0x7)+-parseInt(_0x143083(0x13a))/0x8+parseInt(_0x143083(0x13b))/0x9*(parseInt(_0x143083(0x12e))/0xa);if(_0x39504d===_0x1fc042)break;else _0x39cfbe['push'](_0x39cfbe['shift']());}catch(_0x13a957){_0x39cfbe['push'](_0x39cfbe['shift']());}}}(a207_0xaaa4,0x7f19f));import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';export function resolveAliasToCode(_0x4326ea,_0x27120e,_0x680380,_0x46ffcd){const _0x24dccc=a207_0x1d2c,_0x2d5baf=_0x4326ea[_0x24dccc(0x135)]['some'](_0x5c77ca=>_0x5c77ca['name']===_0x24dccc(0x136)&&_0x5c77ca['type']===_0x24dccc(0x137)),_0xe725e3=_0x4326ea[_0x24dccc(0x135)][_0x24dccc(0x134)](_0x21672d=>_0x21672d[_0x24dccc(0x140)]===_0x24dccc(0x138)&&_0x21672d['type']==='string');if(!_0x2d5baf||!_0xe725e3)return;const _0x1d4462=_0x27120e[_0x24dccc(0x136)]?String(_0x27120e[_0x24dccc(0x136)]):'',_0x26feb0=_0x27120e['alias']?String(_0x27120e[_0x24dccc(0x138)]):'';if(!_0x1d4462&&!_0x26feb0)throw CliErrors[_0x24dccc(0x12a)]('`'+_0x46ffcd+_0x24dccc(0x141));if(_0x26feb0&&!_0x1d4462){const _0x1a4ebc=resolveAlias(_0x680380,_0x26feb0);if(!_0x1a4ebc){const _0x506ba6=listAliases(_0x680380)[_0x24dccc(0x13e)](_0x59dc6c=>_0x59dc6c['alias']),_0x14b6cc=_0x506ba6[_0x24dccc(0x13f)]?_0x24dccc(0x128)+_0x506ba6[_0x24dccc(0x13c)](',\x20'):_0x24dccc(0x129)+_0x680380+_0x24dccc(0x130)+CLI_BIN_NAME+_0x24dccc(0x12d);throw CliErrors[_0x24dccc(0x12a)](_0x24dccc(0x131)+_0x26feb0+_0x24dccc(0x127)+_0x14b6cc);}_0x27120e[_0x24dccc(0x136)]=_0x1a4ebc;}}function a207_0x1d2c(_0x20ccca,_0x62ccaf){_0x20ccca=_0x20ccca-0x127;const _0xaaa42b=a207_0xaaa4();let _0x1d2cf6=_0xaaa42b[_0x20ccca];return _0x1d2cf6;}function a207_0xaaa4(){const _0x238bbb=['some','flags','code','string','alias','147RztGHO','5164160WOrdpY','54VjhCZZ','join','1423788TMkSOC','map','length','name','`\x20requires\x20either\x20--code\x20or\x20--alias.','\x22.\x20','Available\x20aliases:\x20','No\x20api.ts\x20found\x20in\x20','validation','233154pVRNtN','211246qbObaq','\x20api\x20pull`\x20first.','276830ARmRvc','5dPdjxd','.\x20Run\x20`','Unknown\x20alias\x20\x22','369402jxWkCo','2528164TSuvXr'];a207_0xaaa4=function(){return _0x238bbb;};return a207_0xaaa4();}