@lovrabet/rabetbase-cli 2.5.8 → 2.5.9-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 (384) hide show
  1. package/README.md +6 -6
  2. package/lib/api/api-doc.js +1 -1
  3. package/lib/api/api-group.js +1 -1
  4. package/lib/api/fetch-model-list.js +1 -1
  5. package/lib/api/generate-api-file.js +1 -1
  6. package/lib/api/generate-sdk-config-file.js +1 -1
  7. package/lib/api/legacy-api-file.js +1 -1
  8. package/lib/api/model-registry-file.js +1 -1
  9. package/lib/api/model-registry-scaffold.js +1 -1
  10. package/lib/api/model-source.js +1 -1
  11. package/lib/auth/auth-server-ui.js +1 -1
  12. package/lib/auth/auth-server.js +1 -1
  13. package/lib/auth/constant.js +1 -1
  14. package/lib/auth/get-cookie.js +1 -1
  15. package/lib/auth/get-session-user.js +1 -1
  16. package/lib/auth/is-session-valid.js +1 -1
  17. package/lib/auth/login-success-html.js +1 -1
  18. package/lib/auth/logout.js +1 -1
  19. package/lib/cli-flags.js +1 -1
  20. package/lib/cli.js +1 -1
  21. package/lib/commands/api/generate.js +1 -1
  22. package/lib/commands/api/index.js +1 -1
  23. package/lib/commands/api/list.js +1 -1
  24. package/lib/commands/api/pull.js +1 -1
  25. package/lib/commands/api/shared.js +1 -1
  26. package/lib/commands/app/detail.js +1 -1
  27. package/lib/commands/app/index.js +1 -1
  28. package/lib/commands/app/list.js +1 -1
  29. package/lib/commands/app/members-list.js +1 -1
  30. package/lib/commands/app/remote-directory.js +1 -1
  31. package/lib/commands/app/shared.js +1 -1
  32. package/lib/commands/app-config/delete.js +1 -1
  33. package/lib/commands/app-config/get.js +1 -1
  34. package/lib/commands/app-config/index.js +1 -1
  35. package/lib/commands/app-config/list.js +1 -1
  36. package/lib/commands/app-config/set.js +1 -1
  37. package/lib/commands/app-config/shared.js +1 -1
  38. package/lib/commands/auth/index.js +1 -1
  39. package/lib/commands/bff/create.js +1 -1
  40. package/lib/commands/bff/delete.js +1 -1
  41. package/lib/commands/bff/detail.js +1 -1
  42. package/lib/commands/bff/index.js +1 -1
  43. package/lib/commands/bff/list.js +1 -1
  44. package/lib/commands/bff/logs.js +1 -1
  45. package/lib/commands/bff/pull.js +1 -1
  46. package/lib/commands/bff/push.js +1 -1
  47. package/lib/commands/bff/status.js +1 -1
  48. package/lib/commands/cli-skill/index.js +1 -1
  49. package/lib/commands/cli-update.js +1 -1
  50. package/lib/commands/codegen/index.js +1 -1
  51. package/lib/commands/codegen/sdk.js +1 -1
  52. package/lib/commands/codegen/sql.js +1 -1
  53. package/lib/commands/common/app-registry.js +1 -1
  54. package/lib/commands/common/app-selector.js +1 -1
  55. package/lib/commands/common/async-task.js +1 -1
  56. package/lib/commands/common/dry-run.js +1 -1
  57. package/lib/commands/common/flags.js +1 -1
  58. package/lib/commands/common/local-file.js +1 -1
  59. package/lib/commands/common/validate.js +1 -1
  60. package/lib/commands/config/delete.js +1 -1
  61. package/lib/commands/config/get.js +1 -1
  62. package/lib/commands/config/index.js +1 -1
  63. package/lib/commands/config/init.js +1 -1
  64. package/lib/commands/config/list.js +1 -1
  65. package/lib/commands/config/set.js +1 -1
  66. package/lib/commands/config/shared.js +1 -1
  67. package/lib/commands/dataset/batch-design.js +1 -1
  68. package/lib/commands/dataset/business-group-update.js +1 -1
  69. package/lib/commands/dataset/business-groups.js +1 -1
  70. package/lib/commands/dataset/capability.js +1 -1
  71. package/lib/commands/dataset/cross-relation-create.js +1 -1
  72. package/lib/commands/dataset/cross-relation-delete.js +1 -1
  73. package/lib/commands/dataset/cross-relation-list.js +1 -1
  74. package/lib/commands/dataset/cross-relation-shared.js +1 -1
  75. package/lib/commands/dataset/cross-relation-update.js +1 -1
  76. package/lib/commands/dataset/delete.js +1 -1
  77. package/lib/commands/dataset/design-context.js +1 -1
  78. package/lib/commands/dataset/design-start.js +1 -1
  79. package/lib/commands/dataset/design-status.js +1 -1
  80. package/lib/commands/dataset/design-sync-retry.js +1 -1
  81. package/lib/commands/dataset/design-sync-status.js +1 -1
  82. package/lib/commands/dataset/design-validate.js +1 -1
  83. package/lib/commands/dataset/detail.js +1 -1
  84. package/lib/commands/dataset/extend-update.js +1 -1
  85. package/lib/commands/dataset/field-restore.js +1 -1
  86. package/lib/commands/dataset/field-update.js +1 -1
  87. package/lib/commands/dataset/generate.js +1 -1
  88. package/lib/commands/dataset/index.js +1 -1
  89. package/lib/commands/dataset/list.js +1 -1
  90. package/lib/commands/dataset/operations.js +1 -1
  91. package/lib/commands/dataset/relation-audit.js +1 -1
  92. package/lib/commands/dataset/relation-create.js +1 -1
  93. package/lib/commands/dataset/relation-delete.js +1 -1
  94. package/lib/commands/dataset/relation-shared.js +1 -1
  95. package/lib/commands/dataset/relation-update.js +1 -1
  96. package/lib/commands/dataset/relations.js +1 -1
  97. package/lib/commands/dataset/rename.js +1 -1
  98. package/lib/commands/dataset/restore.js +1 -1
  99. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  100. package/lib/commands/db/analysis-batching.js +1 -1
  101. package/lib/commands/db/analyze-batch-plan.js +1 -1
  102. package/lib/commands/db/analyze-cancel.js +1 -1
  103. package/lib/commands/db/analyze-start.js +1 -1
  104. package/lib/commands/db/analyze-status.js +1 -1
  105. package/lib/commands/db/create.js +1 -1
  106. package/lib/commands/db/cross-db-analysis-shared.js +1 -1
  107. package/lib/commands/db/cross-db-analyze-latest.js +1 -1
  108. package/lib/commands/db/cross-db-analyze-start.js +1 -1
  109. package/lib/commands/db/cross-db-analyze-status.js +1 -1
  110. package/lib/commands/db/delete.js +1 -1
  111. package/lib/commands/db/detail.js +1 -1
  112. package/lib/commands/db/diff-refresh-start.js +1 -1
  113. package/lib/commands/db/diff-refresh-status.js +1 -1
  114. package/lib/commands/db/diff.js +1 -1
  115. package/lib/commands/db/index.js +1 -1
  116. package/lib/commands/db/list.js +1 -1
  117. package/lib/commands/db/shared.js +1 -1
  118. package/lib/commands/db/table-diff-shared.js +1 -1
  119. package/lib/commands/db/tables.js +1 -1
  120. package/lib/commands/db/test.js +1 -1
  121. package/lib/commands/db/update.js +1 -1
  122. package/lib/commands/deployment/index.js +1 -1
  123. package/lib/commands/deployment/sync-all.js +1 -1
  124. package/lib/commands/deployment/sync-jobs.js +1 -1
  125. package/lib/commands/deployment/sync-status.js +1 -1
  126. package/lib/commands/doctor.js +1 -1
  127. package/lib/commands/file/index.js +1 -1
  128. package/lib/commands/flow/create.js +1 -1
  129. package/lib/commands/flow/detail.js +1 -1
  130. package/lib/commands/flow/index.js +1 -1
  131. package/lib/commands/flow/list.js +1 -1
  132. package/lib/commands/flow/page-list.js +1 -1
  133. package/lib/commands/flow/publish.js +1 -1
  134. package/lib/commands/flow/runtime-resources-shared.js +1 -1
  135. package/lib/commands/flow/runtime-role-list.js +1 -1
  136. package/lib/commands/flow/runtime-role-user-list.js +1 -1
  137. package/lib/commands/flow/runtime-user-search.js +1 -1
  138. package/lib/commands/flow/shared.js +1 -1
  139. package/lib/commands/flow/update.js +1 -1
  140. package/lib/commands/flow/validate.js +1 -1
  141. package/lib/commands/instant-api-policy/current.js +1 -1
  142. package/lib/commands/instant-api-policy/index.js +1 -1
  143. package/lib/commands/instant-api-policy/init.js +1 -1
  144. package/lib/commands/instant-api-policy/publish.js +1 -1
  145. package/lib/commands/instant-api-policy/pull.js +1 -1
  146. package/lib/commands/instant-api-policy/revision.js +1 -1
  147. package/lib/commands/instant-api-policy/revisions.js +1 -1
  148. package/lib/commands/instant-api-policy/rollback.js +1 -1
  149. package/lib/commands/instant-api-policy/shared.js +1 -1
  150. package/lib/commands/instant-api-policy/validate.js +1 -1
  151. package/lib/commands/issue/index.js +1 -1
  152. package/lib/commands/issue/nudge.js +1 -1
  153. package/lib/commands/issue/report.js +1 -1
  154. package/lib/commands/issue/shared.js +1 -1
  155. package/lib/commands/kb/create.js +1 -1
  156. package/lib/commands/kb/delete.js +1 -1
  157. package/lib/commands/kb/detail.js +1 -1
  158. package/lib/commands/kb/index.js +1 -1
  159. package/lib/commands/kb/list.js +1 -1
  160. package/lib/commands/kb/search.js +1 -1
  161. package/lib/commands/kb/shared.d.ts +8 -5
  162. package/lib/commands/kb/shared.js +1 -1
  163. package/lib/commands/kb/update.js +1 -1
  164. package/lib/commands/logs/index.js +1 -1
  165. package/lib/commands/menu/asset-update.js +1 -1
  166. package/lib/commands/menu/delete.js +1 -1
  167. package/lib/commands/menu/external-link-create.js +1 -1
  168. package/lib/commands/menu/external-link-update.js +1 -1
  169. package/lib/commands/menu/group-create.js +1 -1
  170. package/lib/commands/menu/group-update.js +1 -1
  171. package/lib/commands/menu/index.js +1 -1
  172. package/lib/commands/menu/list.js +1 -1
  173. package/lib/commands/menu/move.js +1 -1
  174. package/lib/commands/menu/regroup-start.js +1 -1
  175. package/lib/commands/menu/rename.js +1 -1
  176. package/lib/commands/menu/shared/compare-table.js +1 -1
  177. package/lib/commands/menu/shared/delete-plan.js +1 -1
  178. package/lib/commands/menu/shared/facts.js +1 -1
  179. package/lib/commands/menu/shared/index.js +1 -1
  180. package/lib/commands/menu/shared/inquirer.js +1 -1
  181. package/lib/commands/menu/shared/local-pages.js +1 -1
  182. package/lib/commands/menu/shared/logic.js +1 -1
  183. package/lib/commands/menu/shared/mutations.js +1 -1
  184. package/lib/commands/menu/shared/path.js +1 -1
  185. package/lib/commands/menu/shared/service.js +1 -1
  186. package/lib/commands/menu/shared/subapp-assets.js +1 -1
  187. package/lib/commands/menu/shared/sync-core.js +1 -1
  188. package/lib/commands/menu/shared/update-core.js +1 -1
  189. package/lib/commands/menu/shared/valid-url.js +1 -1
  190. package/lib/commands/menu/subapp-assets-status.js +1 -1
  191. package/lib/commands/menu/subapp-assets-update.js +1 -1
  192. package/lib/commands/menu/sync.js +1 -1
  193. package/lib/commands/menu/visibility-update.js +1 -1
  194. package/lib/commands/notification/config-create.js +1 -1
  195. package/lib/commands/notification/config-delete.js +1 -1
  196. package/lib/commands/notification/config-list.js +1 -1
  197. package/lib/commands/notification/config-update.js +1 -1
  198. package/lib/commands/notification/index.js +1 -1
  199. package/lib/commands/notification/shared.js +1 -1
  200. package/lib/commands/ocr/index.js +1 -1
  201. package/lib/commands/page/create.js +1 -1
  202. package/lib/commands/page/custom/detail.js +1 -1
  203. package/lib/commands/page/custom/list.js +1 -1
  204. package/lib/commands/page/custom/publish.js +1 -1
  205. package/lib/commands/page/custom/shared.js +1 -1
  206. package/lib/commands/page/custom/syntax.js +1 -1
  207. package/lib/commands/page/custom/update.js +1 -1
  208. package/lib/commands/page/data-list-status.js +1 -1
  209. package/lib/commands/page/generate-start.js +1 -1
  210. package/lib/commands/page/generate-status.js +1 -1
  211. package/lib/commands/page/index.js +1 -1
  212. package/lib/commands/page/pull.js +1 -1
  213. package/lib/commands/page/push.js +1 -1
  214. package/lib/commands/page/relation-audit.js +1 -1
  215. package/lib/commands/page/restore.js +1 -1
  216. package/lib/commands/page/shared.js +1 -1
  217. package/lib/commands/page/sync.js +1 -1
  218. package/lib/commands/project/api-architecture-upgrade.js +1 -1
  219. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  220. package/lib/commands/project/create/format-elapsed.js +1 -1
  221. package/lib/commands/project/create/main.js +1 -1
  222. package/lib/commands/project/create/materialize-project-template.js +1 -1
  223. package/lib/commands/project/create/project-name.js +1 -1
  224. package/lib/commands/project/create/project-template-archive.js +1 -1
  225. package/lib/commands/project/create/project-template-path.js +1 -1
  226. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  227. package/lib/commands/project/create/use-format-code.js +1 -1
  228. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  229. package/lib/commands/project/domain-routing-sync.js +1 -1
  230. package/lib/commands/project/index.js +1 -1
  231. package/lib/commands/project/upgrade.js +1 -1
  232. package/lib/commands/registry.js +1 -1
  233. package/lib/commands/role/delete.js +1 -1
  234. package/lib/commands/role/detail.js +1 -1
  235. package/lib/commands/role/index.js +1 -1
  236. package/lib/commands/role/list.js +1 -1
  237. package/lib/commands/role/shared.js +1 -1
  238. package/lib/commands/role/update.js +1 -1
  239. package/lib/commands/role/user-add.js +1 -1
  240. package/lib/commands/role/user-remove.js +1 -1
  241. package/lib/commands/role/user-resolve.js +1 -1
  242. package/lib/commands/rule/get.js +1 -1
  243. package/lib/commands/rule/index.js +1 -1
  244. package/lib/commands/rule/list.js +1 -1
  245. package/lib/commands/rule/set.js +1 -1
  246. package/lib/commands/rule/shared.d.ts +5 -3
  247. package/lib/commands/rule/shared.js +1 -1
  248. package/lib/commands/run/index.js +1 -1
  249. package/lib/commands/schema.js +1 -1
  250. package/lib/commands/sql/create.js +1 -1
  251. package/lib/commands/sql/delete.js +1 -1
  252. package/lib/commands/sql/detail.js +1 -1
  253. package/lib/commands/sql/exec.js +1 -1
  254. package/lib/commands/sql/index.js +1 -1
  255. package/lib/commands/sql/list.js +1 -1
  256. package/lib/commands/sql/pull.js +1 -1
  257. package/lib/commands/sql/push.js +1 -1
  258. package/lib/commands/sql/shared.js +1 -1
  259. package/lib/commands/sql/status.js +1 -1
  260. package/lib/commands/sql/validate.js +1 -1
  261. package/lib/commands/task/index.js +1 -1
  262. package/lib/commands/task/status.js +1 -1
  263. package/lib/commands/tenant/index.js +1 -1
  264. package/lib/commands/tenant/members-list.js +1 -1
  265. package/lib/commands/tenant/shared.js +1 -1
  266. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  267. package/lib/commands/user-account/feishu-bind.js +1 -1
  268. package/lib/commands/user-account/index.js +1 -1
  269. package/lib/commands/workspace/add.js +1 -1
  270. package/lib/commands/workspace/index.js +1 -1
  271. package/lib/commands/workspace/remove.js +1 -1
  272. package/lib/config/domain-config.js +1 -1
  273. package/lib/config/project-domain-routing.js +1 -1
  274. package/lib/config/region-config.js +1 -1
  275. package/lib/config/schema.js +1 -1
  276. package/lib/constant/cdn.js +1 -1
  277. package/lib/constant/cli.js +1 -1
  278. package/lib/constant/defaults.js +1 -1
  279. package/lib/constant/domain.js +1 -1
  280. package/lib/constant/env.js +1 -1
  281. package/lib/constant/output.js +1 -1
  282. package/lib/constant/paths.js +1 -1
  283. package/lib/constant/region.js +1 -1
  284. package/lib/constant/risk.js +1 -1
  285. package/lib/constant/routing-profile.js +1 -1
  286. package/lib/context/app-resolver.js +1 -1
  287. package/lib/context/auth-resolver.js +1 -1
  288. package/lib/context/config-loader.js +1 -1
  289. package/lib/context.js +1 -1
  290. package/lib/core/alias-resolver.js +1 -1
  291. package/lib/core/api-client.d.ts +14 -11
  292. package/lib/core/api-client.js +1 -1
  293. package/lib/core/bff/config.js +1 -1
  294. package/lib/core/bff/file-system.js +1 -1
  295. package/lib/core/bff/hash.js +1 -1
  296. package/lib/core/bff/hook-directory.js +1 -1
  297. package/lib/core/bff/lock.js +1 -1
  298. package/lib/core/bff/utils.js +1 -1
  299. package/lib/core/cross-db-analysis.js +1 -1
  300. package/lib/core/cross-db-relation.js +1 -1
  301. package/lib/core/db-resolver.js +1 -1
  302. package/lib/core/flow-config.js +1 -1
  303. package/lib/core/instant-api-policy/config.js +1 -1
  304. package/lib/core/kb-management-client.d.ts +2 -2
  305. package/lib/core/kb-management-client.js +1 -1
  306. package/lib/core/kb-search-client.d.ts +3 -1
  307. package/lib/core/kb-search-client.js +1 -1
  308. package/lib/core/page/file-system.js +1 -1
  309. package/lib/core/page/hash.js +1 -1
  310. package/lib/core/page/lock.js +1 -1
  311. package/lib/core/page/lr-smart-jsx.js +1 -1
  312. package/lib/core/sql-index-auditor.js +1 -1
  313. package/lib/core/sql-sync/config.js +1 -1
  314. package/lib/core/sql-sync/file-system.js +1 -1
  315. package/lib/core/sql-sync/hash.js +1 -1
  316. package/lib/core/sql-sync/lock.js +1 -1
  317. package/lib/core/sql-sync/utils.js +1 -1
  318. package/lib/core/sql-validator.js +1 -1
  319. package/lib/errors.js +1 -1
  320. package/lib/framework/build-all-flags.js +1 -1
  321. package/lib/framework/error-output.js +1 -1
  322. package/lib/framework/explicit-yes.js +1 -1
  323. package/lib/framework/flags.js +1 -1
  324. package/lib/framework/help.js +1 -1
  325. package/lib/framework/index.js +1 -1
  326. package/lib/framework/output.js +1 -1
  327. package/lib/framework/response.js +1 -1
  328. package/lib/framework/runner-alias.js +1 -1
  329. package/lib/framework/runner.js +1 -1
  330. package/lib/framework/schema-export.js +1 -1
  331. package/lib/framework/supported-flags.js +1 -1
  332. package/lib/framework/types.js +1 -1
  333. package/lib/generated/build-info.d.ts +4 -4
  334. package/lib/generated/build-info.js +1 -1
  335. package/lib/generated/official-routing.js +1 -1
  336. package/lib/generated/routing-contract.js +1 -1
  337. package/lib/help.js +1 -1
  338. package/lib/postinstall.js +1 -1
  339. package/lib/runtime/confirmation.js +1 -1
  340. package/lib/runtime/event.js +1 -1
  341. package/lib/runtime/index.js +1 -1
  342. package/lib/runtime/queue.js +1 -1
  343. package/lib/runtime/resolve.js +1 -1
  344. package/lib/services/dataset-design/checkpoint.js +1 -1
  345. package/lib/services/dataset-design/commands.js +1 -1
  346. package/lib/services/dataset-design/contract.js +1 -1
  347. package/lib/skills/builtin-skill.js +1 -1
  348. package/lib/skills/main.js +1 -1
  349. package/lib/skills/npx-skills-add.js +1 -1
  350. package/lib/skills/skill-presence.js +1 -1
  351. package/lib/telemetry/cli-command-trace.js +1 -1
  352. package/lib/telemetry/cli-help-trace.js +1 -1
  353. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  354. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  355. package/lib/telemetry/send-cli-trace-log.js +1 -1
  356. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  357. package/lib/utils/ai_config.js +1 -1
  358. package/lib/utils/apply-jq-filter.js +1 -1
  359. package/lib/utils/cdn-config.js +1 -1
  360. package/lib/utils/check-sdk-version.js +1 -1
  361. package/lib/utils/cli-version-check.js +1 -1
  362. package/lib/utils/cli-version-policy.js +1 -1
  363. package/lib/utils/config.js +1 -1
  364. package/lib/utils/entity-with-id.js +1 -1
  365. package/lib/utils/file-utils.js +1 -1
  366. package/lib/utils/guides-cdn.js +1 -1
  367. package/lib/utils/http-client.js +1 -1
  368. package/lib/utils/is-non-interactive.js +1 -1
  369. package/lib/utils/logger.js +1 -1
  370. package/lib/utils/params.js +1 -1
  371. package/lib/utils/platform.js +1 -1
  372. package/lib/utils/sleep.js +1 -1
  373. package/lib/utils/template-replacer.js +1 -1
  374. package/lib/utils/update-notice.js +1 -1
  375. package/lib/utils/version.js +1 -1
  376. package/lib/utils/with-active-cookie.js +1 -1
  377. package/lib/utils/write-cli-side-channel.js +1 -1
  378. package/package.json +1 -1
  379. package/skills/rabetbase/SKILL.md +1 -1
  380. package/skills/rabetbase/references/rabetbase-kb.md +17 -15
  381. package/skills/rabetbase/references/rabetbase-rule.md +8 -6
  382. package/skills/rabetbase-dataset-generation/SKILL.md +1 -1
  383. package/skills/rabetbase-page-generation/SKILL.md +1 -1
  384. package/skills/rabetbase.manifest.json +3 -3
@@ -1 +1 @@
1
- (function(_0x730652,_0x4f315d){const _0x383ca0=a186_0x86ea,_0x575243=_0x730652();while(!![]){try{const _0x30aed9=-parseInt(_0x383ca0(0xd3))/0x1*(-parseInt(_0x383ca0(0xbd))/0x2)+parseInt(_0x383ca0(0xcf))/0x3+-parseInt(_0x383ca0(0xc8))/0x4+-parseInt(_0x383ca0(0xa5))/0x5*(parseInt(_0x383ca0(0xe9))/0x6)+-parseInt(_0x383ca0(0xed))/0x7*(-parseInt(_0x383ca0(0xc7))/0x8)+parseInt(_0x383ca0(0xca))/0x9*(parseInt(_0x383ca0(0xc9))/0xa)+-parseInt(_0x383ca0(0xaf))/0xb*(parseInt(_0x383ca0(0xeb))/0xc);if(_0x30aed9===_0x4f315d)break;else _0x575243['push'](_0x575243['shift']());}catch(_0x286f53){_0x575243['push'](_0x575243['shift']());}}}(a186_0x4592,0xeb3fc));import{updateMenuCdnUrl,getOnlineMenuList}from'../../../commands/menu/shared/service.js';import{isUrlReachable,isValidCssHttpsUrl,isValidJsHttpsUrl}from'../../../commands/menu/shared/valid-url.js';import{logger}from'../../../utils/logger.js';function validateParams(_0x202883){const _0x51830f=a186_0x86ea,_0x2d8115=[];return _0x202883[_0x51830f(0xe4)]&&!isValidJsHttpsUrl(_0x202883[_0x51830f(0xe4)])&&_0x2d8115[_0x51830f(0xe6)]({'field':_0x51830f(0xe4),'message':_0x51830f(0xd4)}),_0x202883[_0x51830f(0xde)]&&!isValidCssHttpsUrl(_0x202883[_0x51830f(0xde)])&&_0x2d8115[_0x51830f(0xe6)]({'field':_0x51830f(0xde),'message':_0x51830f(0xce)}),_0x2d8115;}export async function runMenuUpdateCore(_0x463044,_0x5ab627,_0x20838e,_0x1f31f8={}){const _0x28b73d=a186_0x86ea,_0x8ff921=parseUpdateParamsFlag(_0x20838e),_0x15883b=normalizeMode(_0x1f31f8[_0x28b73d(0xc4)]);validateSelection(_0x1f31f8[_0x28b73d(0xad)]);const _0x5f262f=[];if(_0x8ff921['jsUrl'])_0x5f262f[_0x28b73d(0xe6)](_0x8ff921[_0x28b73d(0xe4)]);if(_0x8ff921[_0x28b73d(0xde)])_0x5f262f[_0x28b73d(0xe6)](_0x8ff921[_0x28b73d(0xde)]);const _0xe2e0e4=validateParams(_0x8ff921);if(_0xe2e0e4[_0x28b73d(0xb7)]>0x0){const _0x569504=_0xe2e0e4[_0x28b73d(0xb6)](_0x28974a=>_0x28b73d(0xc0)+_0x28974a[_0x28b73d(0xab)]+':\x20'+_0x28974a[_0x28b73d(0xe5)])[_0x28b73d(0xdf)](';\x20');throw new Error(_0x28b73d(0xa3)+_0x569504);}if(_0x5f262f[_0x28b73d(0xb7)]===0x0)throw new Error('Invalid\x20--params:\x20menu\x20asset-update\x20requires\x20at\x20least\x20one\x20explicit\x20JS/CSS\x20URL.\x20'+'Pass\x20--params\x20\x27{\x22jsUrl\x22:\x22https://...js\x22,\x22cssUrl\x22:\x22https://...css\x22}\x27\x20to\x20update\x20assets.');logger[_0x28b73d(0xec)](process[_0x28b73d(0xf0)]()),logger['info'](_0x28b73d(0xf1),_0x28b73d(0xd5),{'appCode':_0x463044,'jsUrl':_0x8ff921[_0x28b73d(0xe4)],'cssUrl':_0x8ff921[_0x28b73d(0xde)],'mode':_0x15883b,'dryRun':_0x1f31f8[_0x28b73d(0xcb)]===!![]});if(_0x8ff921['jsUrl']){const _0xe750d0=await isUrlReachable(_0x8ff921[_0x28b73d(0xe4)]);if(!_0xe750d0)throw new Error(_0x28b73d(0xa9)+_0x8ff921['jsUrl']);}if(_0x8ff921[_0x28b73d(0xde)]){const _0x277dde=await isUrlReachable(_0x8ff921[_0x28b73d(0xde)]);if(!_0x277dde)throw new Error(_0x28b73d(0xdc)+_0x8ff921['cssUrl']);}const _0x53795b=await getOnlineMenuList(_0x463044,_0x5ab627),_0x286180=_0x53795b['filter'](_0x26331a=>_0x26331a[_0x28b73d(0xd1)][_0x28b73d(0xb7)]>0x0),_0x29a01d=selectMenusForUpdate(_0x286180,_0x1f31f8[_0x28b73d(0xad)]);if(_0x29a01d['length']===0x0)return{'updated':0x0,'failed':0x0,'skipped':!![],'dryRun':_0x1f31f8[_0x28b73d(0xcb)]===!![]};const _0x2bd7f1=_0x29a01d[_0x28b73d(0xb6)](_0x93760c=>buildMenuUpdateDiff(_0x93760c,_0x8ff921,_0x15883b,_0x1f31f8[_0x28b73d(0xba)]===!![],_0x1f31f8['loadScriptMode']));if(_0x1f31f8[_0x28b73d(0xcb)])return{'updated':0x0,'failed':0x0,'skipped':![],'dryRun':!![],'diffs':_0x2bd7f1};const _0x29c04f=await Promise[_0x28b73d(0xb1)](_0x29a01d[_0x28b73d(0xb6)]((_0x31a241,_0x240cbb)=>updateMenuCdnUrl(_0x463044,_0x5ab627,{'id':_0x31a241['id'],'label':_0x31a241[_0x28b73d(0xda)],'path':_0x31a241['path'],'resources':_0x2bd7f1[_0x240cbb]['after'][_0x28b73d(0xd1)],'extend':_0x31a241[_0x28b73d(0xd7)]??null,'loadScriptMode':_0x1f31f8['loadScriptMode']}))),_0x31ac05=_0x29c04f[_0x28b73d(0xd0)](_0x2bf8df=>_0x2bf8df[_0x28b73d(0xc5)]===_0x28b73d(0xee))[_0x28b73d(0xb6)](_0x581dcd=>_0x581dcd[_0x28b73d(0xb4)]),_0x5cd9d5=_0x29c04f[_0x28b73d(0xd0)](_0x3f852b=>_0x3f852b[_0x28b73d(0xc5)]===_0x28b73d(0xb5))[_0x28b73d(0xb7)];return logger[_0x28b73d(0xef)](_0x28b73d(0xf1),_0x28b73d(0xd2),{'count':_0x29a01d[_0x28b73d(0xb7)],'resources':_0x5f262f}),{'updated':_0x31ac05[_0x28b73d(0xb7)],'failed':_0x5cd9d5,'skipped':![],'menus':_0x31ac05};}function validateSelection(_0x5199fc){const _0x40af56=a186_0x86ea;if(!_0x5199fc)throw new Error(_0x40af56(0xc2));if(_0x5199fc[_0x40af56(0xe1)]&&(_0x5199fc['menuIds'][_0x40af56(0xb7)]>0x0||_0x5199fc['paths'][_0x40af56(0xb7)]>0x0))throw new Error(_0x40af56(0xe0));if(!_0x5199fc[_0x40af56(0xe1)]&&_0x5199fc[_0x40af56(0xc6)][_0x40af56(0xb7)]===0x0&&_0x5199fc['paths']['length']===0x0)throw new Error(_0x40af56(0xc2));}function a186_0x86ea(_0x5ae814,_0x5963b9){_0x5ae814=_0x5ae814-0xa3;const _0x459285=a186_0x4592();let _0x86ea8=_0x459285[_0x5ae814];return _0x86ea8;}export function selectMenusForUpdate(_0x9a40c7,_0x15ac5f){const _0xf9c769=a186_0x86ea;validateSelection(_0x15ac5f);if(_0x15ac5f[_0xf9c769(0xe1)])return _0x9a40c7;const _0x537a82=new Set(_0x9a40c7[_0xf9c769(0xb6)](_0x3855e6=>_0x3855e6['id'])),_0x5d928a=new Set(_0x9a40c7['map'](_0x4bf895=>_0x4bf895[_0xf9c769(0xcc)])),_0x2645c5=_0x15ac5f[_0xf9c769(0xc6)][_0xf9c769(0xd0)](_0xdb8ba7=>!_0x537a82['has'](_0xdb8ba7)),_0x41e701=_0x15ac5f[_0xf9c769(0xd8)][_0xf9c769(0xd0)](_0x4357f5=>!_0x5d928a[_0xf9c769(0xdb)](_0x4357f5));if(_0x2645c5[_0xf9c769(0xb7)]>0x0||_0x41e701[_0xf9c769(0xb7)]>0x0){const _0x56d413=[..._0x2645c5[_0xf9c769(0xb6)](_0x1bfc49=>String(_0x1bfc49)),..._0x41e701][_0xf9c769(0xdf)](',\x20');throw new Error(_0xf9c769(0xae)+_0x56d413);}const _0x32f6e1=new Set(_0x15ac5f[_0xf9c769(0xc6)]),_0x4a7753=new Set(_0x15ac5f[_0xf9c769(0xd8)]);return _0x9a40c7[_0xf9c769(0xd0)](_0x188c81=>_0x32f6e1[_0xf9c769(0xdb)](_0x188c81['id'])||_0x4a7753[_0xf9c769(0xdb)](_0x188c81[_0xf9c769(0xcc)]));}function normalizeMode(_0x3a5a85){const _0x2d64c1=a186_0x86ea;if(!_0x3a5a85)return _0x2d64c1(0xa6);if(_0x3a5a85===_0x2d64c1(0xe7)||_0x3a5a85===_0x2d64c1(0xa6))return _0x3a5a85;throw new Error(_0x2d64c1(0xd9)+_0x3a5a85+_0x2d64c1(0xbf));}function buildMenuUpdateDiff(_0x4d1dcf,_0x4fc285,_0x59b567,_0x17dcbc,_0x34329f){const _0x16a798=a186_0x86ea,_0x1cf485=[..._0x4d1dcf[_0x16a798(0xd1)]];_0x59b567===_0x16a798(0xa6)&&assertUnambiguousPatchResources(_0x4d1dcf,_0x1cf485,_0x4fc285);const _0x372465=_0x59b567===_0x16a798(0xa6)?patchResources(_0x1cf485,_0x4fc285):replaceResources(_0x4fc285),_0x2588cf=[],_0x3b2b80=_0x1cf485['some'](isJsResource),_0x3f078a=_0x372465[_0x16a798(0xa7)](isJsResource);if(_0x3b2b80&&!_0x3f078a){const _0x5127c7=_0x16a798(0xbc)+_0x4d1dcf[_0x16a798(0xda)]+_0x16a798(0xc3)+_0x4d1dcf['path']+_0x16a798(0xdd)+_0x16a798(0xa4);if(!_0x17dcbc)throw new Error(_0x5127c7);_0x2588cf[_0x16a798(0xe6)](_0x5127c7);}const _0x468b89=_0x1cf485[_0x16a798(0xa7)](isCssResource),_0x1650d1=_0x372465['some'](isCssResource);_0x468b89&&!_0x1650d1&&_0x2588cf[_0x16a798(0xe6)](_0x16a798(0xb0)+_0x4d1dcf[_0x16a798(0xda)]+_0x16a798(0xc3)+_0x4d1dcf[_0x16a798(0xcc)]+').');const _0x2c2a03=typeof _0x4d1dcf[_0x16a798(0xd7)]?.[_0x16a798(0xb3)]==='string'?_0x4d1dcf[_0x16a798(0xd7)]['loadScriptMode']:null,_0x283875=_0x34329f?{'loadScriptMode':_0x2c2a03}:{},_0x31aa2d=_0x34329f?{'loadScriptMode':_0x34329f}:{};return{'id':_0x4d1dcf['id'],'label':_0x4d1dcf['label'],'path':_0x4d1dcf[_0x16a798(0xcc)],'mode':_0x59b567,'before':{'resources':_0x1cf485,..._0x283875},'after':{'resources':_0x372465,..._0x31aa2d},'warnings':_0x2588cf};}function replaceResources(_0x1e7ae2){const _0x5a326b=a186_0x86ea;return[_0x1e7ae2[_0x5a326b(0xe4)],_0x1e7ae2[_0x5a326b(0xde)]][_0x5a326b(0xd0)](_0xb9512=>!!_0xb9512);}function a186_0x4592(){const _0x84c177=[').\x20','cssUrl','join','--all\x20cannot\x20be\x20combined\x20with\x20--menu-ids\x20or\x20--paths.','all','unshift','isArray','jsUrl','message','push','replace','menu\x20asset-update\x20cannot\x20patch\x20','66yCylMG','string','852VRhofM','setLogPath','14UUqdOs','fulfilled','info','cwd','menu-asset-update','Invalid\x20--params:\x20','Use\x20--mode\x20patch\x20to\x20preserve\x20it,\x20pass\x20jsUrl,\x20or\x20add\x20--force\x20for\x20an\x20intentional\x20removal.','448965inhITQ','patch','some','.css','JS\x20URL\x20is\x20unreachable:\x20','split','field','endsWith','selection','menu\x20asset-update\x20selectors\x20did\x20not\x20match\x20resource-bearing\x20menus:\x20','319121zGxQrH','menu\x20asset-update\x20will\x20remove\x20existing\x20CSS\x20resource\x20for\x20\x22','allSettled','\x20existing\x20CSS\x20resources\x20for\x20\x22','loadScriptMode','value','rejected','map','length','.js','trim','force','object','menu\x20asset-update\x20would\x20remove\x20existing\x20JS\x20resource\x20for\x20\x22','652CqbTnk','with\x20a\x20single\x20jsUrl.\x20Review\x20a\x20dry-run\x20and\x20use\x20--mode\x20replace\x20only\x20when\x20intentionally\x20rewriting\x20the\x20complete\x20resource\x20set.','.\x20Allowed\x20values:\x20replace,\x20patch','--params.','toLowerCase','menu\x20asset-update\x20requires\x20an\x20explicit\x20target:\x20pass\x20--all,\x20--menu-ids,\x20or\x20--paths.','\x22\x20(','mode','status','menuIds','3933160EIKkGA','259644VMMoGj','60DrWmDm','183564JRTJMc','dryRun','path','\x20existing\x20JS\x20resources\x20for\x20\x22','CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','4933461FMUgFa','filter','resources','Menu\x20asset\x20update\x20completed','4067Meszff','JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','Start\x20non-interactive\x20menu\x20asset\x20update','with\x20a\x20single\x20cssUrl.\x20Review\x20a\x20dry-run\x20and\x20use\x20--mode\x20replace\x20only\x20when\x20intentionally\x20rewriting\x20the\x20complete\x20resource\x20set.','extend','paths','Invalid\x20--mode:\x20','label','has','CSS\x20URL\x20is\x20unreachable:\x20'];a186_0x4592=function(){return _0x84c177;};return a186_0x4592();}function assertUnambiguousPatchResources(_0x315c14,_0xcda089,_0x211cd7){const _0x131a9e=a186_0x86ea,_0x1c13f1=_0xcda089[_0x131a9e(0xd0)](isJsResource)[_0x131a9e(0xb7)];if(_0x211cd7['jsUrl']&&_0x1c13f1>0x1)throw new Error(_0x131a9e(0xe8)+_0x1c13f1+_0x131a9e(0xcd)+_0x315c14[_0x131a9e(0xda)]+'\x22\x20('+_0x315c14[_0x131a9e(0xcc)]+')\x20'+_0x131a9e(0xbe));const _0x3b5319=_0xcda089[_0x131a9e(0xd0)](isCssResource)[_0x131a9e(0xb7)];if(_0x211cd7[_0x131a9e(0xde)]&&_0x3b5319>0x1)throw new Error(_0x131a9e(0xe8)+_0x3b5319+_0x131a9e(0xb2)+_0x315c14['label']+_0x131a9e(0xc3)+_0x315c14[_0x131a9e(0xcc)]+')\x20'+_0x131a9e(0xd6));}function patchResources(_0x20c2ce,_0x422802){const _0x172025=a186_0x86ea;let _0x38de98=![],_0x38ab25=![];const _0x2321d1=[];for(const _0x25bc8b of _0x20c2ce){if(isJsResource(_0x25bc8b)){if(_0x422802[_0x172025(0xe4)]&&!_0x38de98)_0x2321d1[_0x172025(0xe6)](_0x422802[_0x172025(0xe4)]),_0x38de98=!![];else!_0x422802[_0x172025(0xe4)]&&_0x2321d1['push'](_0x25bc8b);continue;}if(isCssResource(_0x25bc8b)){if(_0x422802[_0x172025(0xde)]&&!_0x38ab25)_0x2321d1['push'](_0x422802[_0x172025(0xde)]),_0x38ab25=!![];else!_0x422802[_0x172025(0xde)]&&_0x2321d1[_0x172025(0xe6)](_0x25bc8b);continue;}_0x2321d1[_0x172025(0xe6)](_0x25bc8b);}return _0x422802['jsUrl']&&!_0x38de98&&_0x2321d1[_0x172025(0xe2)](_0x422802['jsUrl']),_0x422802[_0x172025(0xde)]&&!_0x38ab25&&_0x2321d1[_0x172025(0xe6)](_0x422802[_0x172025(0xde)]),_0x2321d1;}function isJsResource(_0x5ca3ca){const _0x4a65ae=a186_0x86ea;return stripQuery(_0x5ca3ca)['toLowerCase']()[_0x4a65ae(0xac)](_0x4a65ae(0xb8));}function isCssResource(_0x266b8e){const _0x33f5e7=a186_0x86ea;return stripQuery(_0x266b8e)[_0x33f5e7(0xc1)]()[_0x33f5e7(0xac)](_0x33f5e7(0xa8));}function stripQuery(_0x158caa){const _0x5e8f62=a186_0x86ea;return _0x158caa[_0x5e8f62(0xaa)]('?')[0x0]??_0x158caa;}function parseUpdateParamsFlag(_0x5e7b9c){const _0x263c12=a186_0x86ea;if(!_0x5e7b9c||typeof _0x5e7b9c!==_0x263c12(0xea))return{};try{const _0x4d4e01=JSON['parse'](_0x5e7b9c);if(typeof _0x4d4e01!==_0x263c12(0xbb)||_0x4d4e01===null||Array[_0x263c12(0xe3)](_0x4d4e01))return{};return{'jsUrl':typeof _0x4d4e01['jsUrl']===_0x263c12(0xea)?_0x4d4e01[_0x263c12(0xe4)][_0x263c12(0xb9)]():undefined,'cssUrl':typeof _0x4d4e01['cssUrl']===_0x263c12(0xea)?_0x4d4e01[_0x263c12(0xde)][_0x263c12(0xb9)]():undefined};}catch{return{};}}
1
+ (function(_0x32302f,_0x2a570f){const _0x4f638d=a186_0x21e5,_0x53660c=_0x32302f();while(!![]){try{const _0x32bb87=-parseInt(_0x4f638d(0x1a4))/0x1*(parseInt(_0x4f638d(0x1b3))/0x2)+-parseInt(_0x4f638d(0x1b9))/0x3*(parseInt(_0x4f638d(0x1e1))/0x4)+parseInt(_0x4f638d(0x1b2))/0x5*(-parseInt(_0x4f638d(0x1a5))/0x6)+-parseInt(_0x4f638d(0x1c5))/0x7+parseInt(_0x4f638d(0x1c7))/0x8+-parseInt(_0x4f638d(0x1d7))/0x9+parseInt(_0x4f638d(0x1c2))/0xa*(parseInt(_0x4f638d(0x1d4))/0xb);if(_0x32bb87===_0x2a570f)break;else _0x53660c['push'](_0x53660c['shift']());}catch(_0x1d8fc4){_0x53660c['push'](_0x53660c['shift']());}}}(a186_0x4475,0x5d404));import{updateMenuCdnUrl,getOnlineMenuList}from'../../../commands/menu/shared/service.js';import{isUrlReachable,isValidCssHttpsUrl,isValidJsHttpsUrl}from'../../../commands/menu/shared/valid-url.js';import{logger}from'../../../utils/logger.js';function a186_0x4475(){const _0x2ba635=['all','menu\x20asset-update\x20requires\x20an\x20explicit\x20target:\x20pass\x20--all,\x20--menu-ids,\x20or\x20--paths.','resources','object','toLowerCase',').\x20','some','info','JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','force','length','dryRun','80DJuMdI','8HLXcNz','Use\x20--mode\x20patch\x20to\x20preserve\x20it,\x20pass\x20jsUrl,\x20or\x20add\x20--force\x20for\x20an\x20intentional\x20removal.','trim','rejected','--all\x20cannot\x20be\x20combined\x20with\x20--menu-ids\x20or\x20--paths.','menu\x20asset-update\x20cannot\x20patch\x20','172332xaNisC','with\x20a\x20single\x20jsUrl.\x20Review\x20a\x20dry-run\x20and\x20use\x20--mode\x20replace\x20only\x20when\x20intentionally\x20rewriting\x20the\x20complete\x20resource\x20set.','extend','.css','\x22\x20(','fulfilled','CSS\x20URL\x20is\x20unreachable:\x20','map','.\x20Allowed\x20values:\x20replace,\x20patch','1681180UHbeMU','menu\x20asset-update\x20selectors\x20did\x20not\x20match\x20resource-bearing\x20menus:\x20','setLogPath','2609201EjOyUc','cssUrl','1116336WHjveu','menuIds','Pass\x20--params\x20\x27{\x22jsUrl\x22:\x22https://...js\x22,\x22cssUrl\x22:\x22https://...css\x22}\x27\x20to\x20update\x20assets.','field','after','status','jsUrl','loadScriptMode','menu\x20asset-update\x20will\x20remove\x20existing\x20CSS\x20resource\x20for\x20\x22','path','Menu\x20asset\x20update\x20completed','\x20existing\x20CSS\x20resources\x20for\x20\x22','with\x20a\x20single\x20cssUrl.\x20Review\x20a\x20dry-run\x20and\x20use\x20--mode\x20replace\x20only\x20when\x20intentionally\x20rewriting\x20the\x20complete\x20resource\x20set.','88HMscXP','menu-asset-update','paths','2895651nAxvqy','label','endsWith','split','unshift','string','message','join','isArray','.js','4fihqir','parse','JS\x20URL\x20is\x20unreachable:\x20','patch','push','Invalid\x20--params:\x20','has','filter','Invalid\x20--mode:\x20','--params.','allSettled','menu\x20asset-update\x20would\x20remove\x20existing\x20JS\x20resource\x20for\x20\x22','28947hBqclO','88056EnbwPv'];a186_0x4475=function(){return _0x2ba635;};return a186_0x4475();}function validateParams(_0x36fb0d){const _0x158dc5=a186_0x21e5,_0x5740fe=[];return _0x36fb0d[_0x158dc5(0x1cd)]&&!isValidJsHttpsUrl(_0x36fb0d[_0x158dc5(0x1cd)])&&_0x5740fe[_0x158dc5(0x1e5)]({'field':_0x158dc5(0x1cd),'message':_0x158dc5(0x1ae)}),_0x36fb0d[_0x158dc5(0x1c6)]&&!isValidCssHttpsUrl(_0x36fb0d['cssUrl'])&&_0x5740fe[_0x158dc5(0x1e5)]({'field':'cssUrl','message':'CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL'}),_0x5740fe;}export async function runMenuUpdateCore(_0xfc3039,_0x43d29e,_0x3e12eb,_0x31ca9b={}){const _0x49df87=a186_0x21e5,_0x5eb037=parseUpdateParamsFlag(_0x3e12eb),_0x535677=normalizeMode(_0x31ca9b['mode']);validateSelection(_0x31ca9b['selection']);const _0x5a341b=[];if(_0x5eb037[_0x49df87(0x1cd)])_0x5a341b[_0x49df87(0x1e5)](_0x5eb037[_0x49df87(0x1cd)]);if(_0x5eb037['cssUrl'])_0x5a341b[_0x49df87(0x1e5)](_0x5eb037[_0x49df87(0x1c6)]);const _0xcb298c=validateParams(_0x5eb037);if(_0xcb298c[_0x49df87(0x1b0)]>0x0){const _0x1d961b=_0xcb298c[_0x49df87(0x1c0)](_0x95534b=>_0x49df87(0x1ea)+_0x95534b[_0x49df87(0x1ca)]+':\x20'+_0x95534b[_0x49df87(0x1dd)])[_0x49df87(0x1de)](';\x20');throw new Error(_0x49df87(0x1e6)+_0x1d961b);}if(_0x5a341b['length']===0x0)throw new Error('Invalid\x20--params:\x20menu\x20asset-update\x20requires\x20at\x20least\x20one\x20explicit\x20JS/CSS\x20URL.\x20'+_0x49df87(0x1c9));logger[_0x49df87(0x1c4)](process['cwd']()),logger[_0x49df87(0x1ad)](_0x49df87(0x1d5),'Start\x20non-interactive\x20menu\x20asset\x20update',{'appCode':_0xfc3039,'jsUrl':_0x5eb037['jsUrl'],'cssUrl':_0x5eb037[_0x49df87(0x1c6)],'mode':_0x535677,'dryRun':_0x31ca9b['dryRun']===!![]});if(_0x5eb037[_0x49df87(0x1cd)]){const _0x4826c3=await isUrlReachable(_0x5eb037[_0x49df87(0x1cd)]);if(!_0x4826c3)throw new Error(_0x49df87(0x1e3)+_0x5eb037['jsUrl']);}if(_0x5eb037[_0x49df87(0x1c6)]){const _0x56ac3c=await isUrlReachable(_0x5eb037[_0x49df87(0x1c6)]);if(!_0x56ac3c)throw new Error(_0x49df87(0x1bf)+_0x5eb037[_0x49df87(0x1c6)]);}const _0x366000=await getOnlineMenuList(_0xfc3039,_0x43d29e),_0x59cd68=_0x366000[_0x49df87(0x1e8)](_0x1cff40=>_0x1cff40[_0x49df87(0x1a8)][_0x49df87(0x1b0)]>0x0),_0x1d1d5a=selectMenusForUpdate(_0x59cd68,_0x31ca9b['selection']);if(_0x1d1d5a[_0x49df87(0x1b0)]===0x0)return{'updated':0x0,'failed':0x0,'skipped':!![],'dryRun':_0x31ca9b[_0x49df87(0x1b1)]===!![]};const _0x40c4c8=_0x1d1d5a[_0x49df87(0x1c0)](_0x57bdcd=>buildMenuUpdateDiff(_0x57bdcd,_0x5eb037,_0x535677,_0x31ca9b[_0x49df87(0x1af)]===!![],_0x31ca9b[_0x49df87(0x1ce)]));if(_0x31ca9b[_0x49df87(0x1b1)])return{'updated':0x0,'failed':0x0,'skipped':![],'dryRun':!![],'diffs':_0x40c4c8};const _0x1e5c52=await Promise[_0x49df87(0x1eb)](_0x1d1d5a[_0x49df87(0x1c0)]((_0x2537ae,_0x1ccb50)=>updateMenuCdnUrl(_0xfc3039,_0x43d29e,{'id':_0x2537ae['id'],'label':_0x2537ae[_0x49df87(0x1d8)],'path':_0x2537ae[_0x49df87(0x1d0)],'resources':_0x40c4c8[_0x1ccb50][_0x49df87(0x1cb)]['resources'],'extend':_0x2537ae[_0x49df87(0x1bb)]??null,'loadScriptMode':_0x31ca9b[_0x49df87(0x1ce)]}))),_0x151417=_0x1e5c52['filter'](_0x22f53e=>_0x22f53e[_0x49df87(0x1cc)]===_0x49df87(0x1be))[_0x49df87(0x1c0)](_0x5db50d=>_0x5db50d['value']),_0x522906=_0x1e5c52[_0x49df87(0x1e8)](_0x49d01d=>_0x49d01d[_0x49df87(0x1cc)]===_0x49df87(0x1b6))[_0x49df87(0x1b0)];return logger[_0x49df87(0x1ad)]('menu-asset-update',_0x49df87(0x1d1),{'count':_0x1d1d5a['length'],'resources':_0x5a341b}),{'updated':_0x151417['length'],'failed':_0x522906,'skipped':![],'menus':_0x151417};}function validateSelection(_0x383ec8){const _0x354363=a186_0x21e5;if(!_0x383ec8)throw new Error(_0x354363(0x1a7));if(_0x383ec8[_0x354363(0x1a6)]&&(_0x383ec8[_0x354363(0x1c8)]['length']>0x0||_0x383ec8['paths'][_0x354363(0x1b0)]>0x0))throw new Error(_0x354363(0x1b7));if(!_0x383ec8[_0x354363(0x1a6)]&&_0x383ec8['menuIds']['length']===0x0&&_0x383ec8['paths'][_0x354363(0x1b0)]===0x0)throw new Error(_0x354363(0x1a7));}export function selectMenusForUpdate(_0x37f05e,_0x4b568c){const _0x206fd4=a186_0x21e5;validateSelection(_0x4b568c);if(_0x4b568c[_0x206fd4(0x1a6)])return _0x37f05e;const _0x380319=new Set(_0x37f05e[_0x206fd4(0x1c0)](_0xb0e38a=>_0xb0e38a['id'])),_0x4e2bc8=new Set(_0x37f05e[_0x206fd4(0x1c0)](_0x42b4c2=>_0x42b4c2['path'])),_0x24e1fa=_0x4b568c[_0x206fd4(0x1c8)][_0x206fd4(0x1e8)](_0xefa729=>!_0x380319[_0x206fd4(0x1e7)](_0xefa729)),_0x26b937=_0x4b568c[_0x206fd4(0x1d6)]['filter'](_0x23b34e=>!_0x4e2bc8[_0x206fd4(0x1e7)](_0x23b34e));if(_0x24e1fa[_0x206fd4(0x1b0)]>0x0||_0x26b937[_0x206fd4(0x1b0)]>0x0){const _0x3a5484=[..._0x24e1fa[_0x206fd4(0x1c0)](_0x4c57da=>String(_0x4c57da)),..._0x26b937][_0x206fd4(0x1de)](',\x20');throw new Error(_0x206fd4(0x1c3)+_0x3a5484);}const _0x154cd6=new Set(_0x4b568c[_0x206fd4(0x1c8)]),_0x293442=new Set(_0x4b568c[_0x206fd4(0x1d6)]);return _0x37f05e['filter'](_0x40f55e=>_0x154cd6[_0x206fd4(0x1e7)](_0x40f55e['id'])||_0x293442[_0x206fd4(0x1e7)](_0x40f55e[_0x206fd4(0x1d0)]));}function normalizeMode(_0x331001){const _0x4ccc0e=a186_0x21e5;if(!_0x331001)return _0x4ccc0e(0x1e4);if(_0x331001==='replace'||_0x331001===_0x4ccc0e(0x1e4))return _0x331001;throw new Error(_0x4ccc0e(0x1e9)+_0x331001+_0x4ccc0e(0x1c1));}function buildMenuUpdateDiff(_0x491df0,_0x5d6782,_0x547d3a,_0x95a37f,_0x24fc75){const _0x2dbf67=a186_0x21e5,_0x37f7ff=[..._0x491df0[_0x2dbf67(0x1a8)]];_0x547d3a===_0x2dbf67(0x1e4)&&assertUnambiguousPatchResources(_0x491df0,_0x37f7ff,_0x5d6782);const _0x244cd3=_0x547d3a===_0x2dbf67(0x1e4)?patchResources(_0x37f7ff,_0x5d6782):replaceResources(_0x5d6782),_0x176eec=[],_0x3c6c79=_0x37f7ff[_0x2dbf67(0x1ac)](isJsResource),_0x418a33=_0x244cd3['some'](isJsResource);if(_0x3c6c79&&!_0x418a33){const _0x24b958=_0x2dbf67(0x1ec)+_0x491df0[_0x2dbf67(0x1d8)]+_0x2dbf67(0x1bd)+_0x491df0[_0x2dbf67(0x1d0)]+_0x2dbf67(0x1ab)+_0x2dbf67(0x1b4);if(!_0x95a37f)throw new Error(_0x24b958);_0x176eec[_0x2dbf67(0x1e5)](_0x24b958);}const _0x12ccec=_0x37f7ff[_0x2dbf67(0x1ac)](isCssResource),_0x290f9f=_0x244cd3[_0x2dbf67(0x1ac)](isCssResource);_0x12ccec&&!_0x290f9f&&_0x176eec['push'](_0x2dbf67(0x1cf)+_0x491df0[_0x2dbf67(0x1d8)]+_0x2dbf67(0x1bd)+_0x491df0[_0x2dbf67(0x1d0)]+').');const _0x44f5c2=typeof _0x491df0[_0x2dbf67(0x1bb)]?.[_0x2dbf67(0x1ce)]===_0x2dbf67(0x1dc)?_0x491df0['extend']['loadScriptMode']:null,_0x174288=_0x24fc75?{'loadScriptMode':_0x44f5c2}:{},_0x5d192c=_0x24fc75?{'loadScriptMode':_0x24fc75}:{};return{'id':_0x491df0['id'],'label':_0x491df0['label'],'path':_0x491df0[_0x2dbf67(0x1d0)],'mode':_0x547d3a,'before':{'resources':_0x37f7ff,..._0x174288},'after':{'resources':_0x244cd3,..._0x5d192c},'warnings':_0x176eec};}function replaceResources(_0x465669){const _0x55e29=a186_0x21e5;return[_0x465669[_0x55e29(0x1cd)],_0x465669[_0x55e29(0x1c6)]]['filter'](_0x4d4698=>!!_0x4d4698);}function assertUnambiguousPatchResources(_0x386619,_0x406bbf,_0x3a7967){const _0x31cfb9=a186_0x21e5,_0x5cbd15=_0x406bbf['filter'](isJsResource)[_0x31cfb9(0x1b0)];if(_0x3a7967['jsUrl']&&_0x5cbd15>0x1)throw new Error(_0x31cfb9(0x1b8)+_0x5cbd15+'\x20existing\x20JS\x20resources\x20for\x20\x22'+_0x386619['label']+_0x31cfb9(0x1bd)+_0x386619[_0x31cfb9(0x1d0)]+')\x20'+_0x31cfb9(0x1ba));const _0xc1a54e=_0x406bbf[_0x31cfb9(0x1e8)](isCssResource)['length'];if(_0x3a7967[_0x31cfb9(0x1c6)]&&_0xc1a54e>0x1)throw new Error(_0x31cfb9(0x1b8)+_0xc1a54e+_0x31cfb9(0x1d2)+_0x386619[_0x31cfb9(0x1d8)]+_0x31cfb9(0x1bd)+_0x386619['path']+')\x20'+_0x31cfb9(0x1d3));}function patchResources(_0x334037,_0x1e6ef2){const _0x443b88=a186_0x21e5;let _0x1fe90e=![],_0x1469c6=![];const _0xa75ef7=[];for(const _0x589465 of _0x334037){if(isJsResource(_0x589465)){if(_0x1e6ef2[_0x443b88(0x1cd)]&&!_0x1fe90e)_0xa75ef7[_0x443b88(0x1e5)](_0x1e6ef2[_0x443b88(0x1cd)]),_0x1fe90e=!![];else!_0x1e6ef2[_0x443b88(0x1cd)]&&_0xa75ef7[_0x443b88(0x1e5)](_0x589465);continue;}if(isCssResource(_0x589465)){if(_0x1e6ef2['cssUrl']&&!_0x1469c6)_0xa75ef7['push'](_0x1e6ef2[_0x443b88(0x1c6)]),_0x1469c6=!![];else!_0x1e6ef2['cssUrl']&&_0xa75ef7[_0x443b88(0x1e5)](_0x589465);continue;}_0xa75ef7[_0x443b88(0x1e5)](_0x589465);}return _0x1e6ef2[_0x443b88(0x1cd)]&&!_0x1fe90e&&_0xa75ef7[_0x443b88(0x1db)](_0x1e6ef2[_0x443b88(0x1cd)]),_0x1e6ef2[_0x443b88(0x1c6)]&&!_0x1469c6&&_0xa75ef7[_0x443b88(0x1e5)](_0x1e6ef2['cssUrl']),_0xa75ef7;}function isJsResource(_0xaadd28){const _0xce7451=a186_0x21e5;return stripQuery(_0xaadd28)[_0xce7451(0x1aa)]()[_0xce7451(0x1d9)](_0xce7451(0x1e0));}function a186_0x21e5(_0x402a43,_0x38aa5d){_0x402a43=_0x402a43-0x1a4;const _0x447572=a186_0x4475();let _0x21e5ed=_0x447572[_0x402a43];return _0x21e5ed;}function isCssResource(_0x5c16cb){const _0x5c1824=a186_0x21e5;return stripQuery(_0x5c16cb)['toLowerCase']()[_0x5c1824(0x1d9)](_0x5c1824(0x1bc));}function stripQuery(_0xfce4e3){const _0x2d0a4d=a186_0x21e5;return _0xfce4e3[_0x2d0a4d(0x1da)]('?')[0x0]??_0xfce4e3;}function parseUpdateParamsFlag(_0x247a95){const _0x275f80=a186_0x21e5;if(!_0x247a95||typeof _0x247a95!=='string')return{};try{const _0x117035=JSON[_0x275f80(0x1e2)](_0x247a95);if(typeof _0x117035!==_0x275f80(0x1a9)||_0x117035===null||Array[_0x275f80(0x1df)](_0x117035))return{};return{'jsUrl':typeof _0x117035[_0x275f80(0x1cd)]===_0x275f80(0x1dc)?_0x117035[_0x275f80(0x1cd)][_0x275f80(0x1b5)]():undefined,'cssUrl':typeof _0x117035[_0x275f80(0x1c6)]===_0x275f80(0x1dc)?_0x117035['cssUrl'][_0x275f80(0x1b5)]():undefined};}catch{return{};}}
@@ -1 +1 @@
1
- (function(_0x217576,_0x4cc439){const _0x269f45=a187_0x37eb,_0x1c77cf=_0x217576();while(!![]){try{const _0x3851f6=-parseInt(_0x269f45(0x85))/0x1+-parseInt(_0x269f45(0x87))/0x2+parseInt(_0x269f45(0x83))/0x3+parseInt(_0x269f45(0x84))/0x4*(parseInt(_0x269f45(0x7c))/0x5)+-parseInt(_0x269f45(0x7f))/0x6*(-parseInt(_0x269f45(0x7d))/0x7)+parseInt(_0x269f45(0x8a))/0x8+-parseInt(_0x269f45(0x81))/0x9*(-parseInt(_0x269f45(0x86))/0xa);if(_0x3851f6===_0x4cc439)break;else _0x1c77cf['push'](_0x1c77cf['shift']());}catch(_0x16fbad){_0x1c77cf['push'](_0x1c77cf['shift']());}}}(a187_0x111b,0x99567));function a187_0x37eb(_0x51712f,_0x3e7966){_0x51712f=_0x51712f-0x7c;const _0x111bea=a187_0x111b();let _0x37eb29=_0x111bea[_0x51712f];return _0x37eb29;}function a187_0x111b(){const _0x5cf2bd=['884106VVKHpe','148bNhmko','769769LYwcXz','61760NNtkRc','2481792dHsOPB','bytes=0-0','trim','5904840ngGUoe','5740tSmoHB','27923TJbyWu','test','438Spjgtl','GET','1854RKokes','HEAD'];a187_0x111b=function(){return _0x5cf2bd;};return a187_0x111b();}export function isValidJsHttpsUrl(_0x410f42){const _0x3a31ab=a187_0x37eb;return/^https:\/\/.+\.js(\?.*)?$/[_0x3a31ab(0x7e)](_0x410f42[_0x3a31ab(0x89)]());}export function isValidCssHttpsUrl(_0x2b61c8){const _0x5b8996=a187_0x37eb;return/^https:\/\/.+\.css(\?.*)?$/[_0x5b8996(0x7e)](_0x2b61c8[_0x5b8996(0x89)]());}export async function isUrlReachable(_0x3a56ba){const _0x2723d5=a187_0x37eb;try{const _0xac43b7=await fetch(_0x3a56ba,{'method':_0x2723d5(0x82)});if(_0xac43b7['ok'])return!![];}catch{}try{const _0x4fef4b=await fetch(_0x3a56ba,{'method':_0x2723d5(0x80),'headers':{'Range':_0x2723d5(0x88)}}),_0x58262f=_0x4fef4b['ok'];try{await _0x4fef4b['body']?.['cancel']();}catch{}return _0x58262f;}catch{return![];}}
1
+ (function(_0x480563,_0x26d363){const _0x41feb6=a187_0x37fb,_0x259622=_0x480563();while(!![]){try{const _0x3e64c5=-parseInt(_0x41feb6(0x1cb))/0x1*(-parseInt(_0x41feb6(0x1c5))/0x2)+parseInt(_0x41feb6(0x1ca))/0x3*(parseInt(_0x41feb6(0x1c7))/0x4)+parseInt(_0x41feb6(0x1d2))/0x5+parseInt(_0x41feb6(0x1cf))/0x6*(parseInt(_0x41feb6(0x1ce))/0x7)+parseInt(_0x41feb6(0x1d3))/0x8+-parseInt(_0x41feb6(0x1c9))/0x9+-parseInt(_0x41feb6(0x1d1))/0xa*(parseInt(_0x41feb6(0x1cc))/0xb);if(_0x3e64c5===_0x26d363)break;else _0x259622['push'](_0x259622['shift']());}catch(_0xa341d4){_0x259622['push'](_0x259622['shift']());}}}(a187_0x246e,0x4a311));export function isValidJsHttpsUrl(_0x4a6c1a){const _0x2b6fd2=a187_0x37fb;return/^https:\/\/.+\.js(\?.*)?$/['test'](_0x4a6c1a[_0x2b6fd2(0x1c6)]());}function a187_0x246e(){const _0x17d2e3=['400qJEvEZ','trim','152dvmavL','HEAD','5324346YAMYPI','8529cnVtkK','1042bgwOsI','11xCtFdo','body','7WjJUpJ','3172446YlSaYv','bytes=0-0','2033820quBJZr','839190QnlQqT','686816jWZAwH','test'];a187_0x246e=function(){return _0x17d2e3;};return a187_0x246e();}export function isValidCssHttpsUrl(_0x4fc51e){const _0x3af5d0=a187_0x37fb;return/^https:\/\/.+\.css(\?.*)?$/[_0x3af5d0(0x1c4)](_0x4fc51e['trim']());}function a187_0x37fb(_0x150bf6,_0x32863e){_0x150bf6=_0x150bf6-0x1c4;const _0x246e95=a187_0x246e();let _0x37fb1c=_0x246e95[_0x150bf6];return _0x37fb1c;}export async function isUrlReachable(_0x22bce5){const _0x2a198d=a187_0x37fb;try{const _0xa28e9b=await fetch(_0x22bce5,{'method':_0x2a198d(0x1c8)});if(_0xa28e9b['ok'])return!![];}catch{}try{const _0x1e2e44=await fetch(_0x22bce5,{'method':'GET','headers':{'Range':_0x2a198d(0x1d0)}}),_0x5a4bf5=_0x1e2e44['ok'];try{await _0x1e2e44[_0x2a198d(0x1cd)]?.['cancel']();}catch{}return _0x5a4bf5;}catch{return![];}}
@@ -1 +1 @@
1
- const a188_0x4a783e=a188_0x1977;(function(_0x1230ae,_0x11c585){const _0x3aeb05=a188_0x1977,_0x1f5677=_0x1230ae();while(!![]){try{const _0x115d4f=-parseInt(_0x3aeb05(0x17a))/0x1*(parseInt(_0x3aeb05(0x173))/0x2)+-parseInt(_0x3aeb05(0x180))/0x3+-parseInt(_0x3aeb05(0x178))/0x4+-parseInt(_0x3aeb05(0x183))/0x5+parseInt(_0x3aeb05(0x179))/0x6+parseInt(_0x3aeb05(0x172))/0x7*(parseInt(_0x3aeb05(0x177))/0x8)+parseInt(_0x3aeb05(0x182))/0x9*(parseInt(_0x3aeb05(0x17b))/0xa);if(_0x115d4f===_0x11c585)break;else _0x1f5677['push'](_0x1f5677['shift']());}catch(_0x78d4ea){_0x1f5677['push'](_0x1f5677['shift']());}}}(a188_0x4ed7,0x2e74d));import{getSmartAppRecord}from'../../core/api-client.js';function a188_0x1977(_0x21e70a,_0x527bdc){_0x21e70a=_0x21e70a-0x172;const _0x4ed703=a188_0x4ed7();let _0x197718=_0x4ed703[_0x21e70a];return _0x197718;}import{getOnlineMenuList}from'../../commands/menu/shared/service.js';import{buildSubappAssetsStatus,getSubappSelector,SUBAPP_ASSET_SELECTOR_FLAGS}from'../../commands/menu/shared/subapp-assets.js';export const menuSubappAssetsStatus={'service':a188_0x4a783e(0x181),'command':a188_0x4a783e(0x176),'description':a188_0x4a783e(0x174),'risk':a188_0x4a783e(0x17f),'strictFlags':!![],'flags':SUBAPP_ASSET_SELECTOR_FLAGS,async 'validate'(_0x535d57){getSubappSelector(_0x535d57);},async 'execute'(_0x3394ed){const _0x460e68=a188_0x4a783e,{appCode:_0x164d05,appName:_0x1a3da0}=getSubappSelector(_0x3394ed),[_0x131a5e,_0x195480]=await Promise[_0x460e68(0x17e)]([getSmartAppRecord(_0x164d05,_0x3394ed[_0x460e68(0x175)]),getOnlineMenuList(_0x164d05,_0x3394ed[_0x460e68(0x175)])]),_0x4a69c6={'appCode':_0x164d05,...buildSubappAssetsStatus(_0x131a5e,_0x195480,_0x1a3da0)};return{'ok':!![],'data':_0x4a69c6,'message':_0x460e68(0x17c)+_0x4a69c6[_0x460e68(0x17d)]+_0x460e68(0x185)+_0x1a3da0+_0x460e68(0x184)+_0x164d05+'.'};}};function a188_0x4ed7(){const _0x96ef98=['89878BsrIcU','1706460vxiTNG','Inspected\x20','boundMenus','all','read','508671oKkSyZ','menu','9kzIwGH','633120FyIyKQ','\x20in\x20menu\x20host\x20','\x20menu(s)\x20for\x20','4179BCxBad','4jaJupb','Inspect\x20shared\x20frontend\x20subapp\x20resources\x20and\x20menu\x20fallbacks\x20in\x20the\x20selected\x20menu\x20host','cookie','subapp-assets-status','4712oIztaA','844308tiLAsB','2130120rsRCcE'];a188_0x4ed7=function(){return _0x96ef98;};return a188_0x4ed7();}
1
+ const a188_0x1e3e4a=a188_0x2378;function a188_0x64fe(){const _0x2f9dbf=['\x20menu(s)\x20for\x20','all','cookie','3075292BBAUVM','\x20in\x20menu\x20host\x20','Inspected\x20','Inspect\x20shared\x20frontend\x20subapp\x20resources\x20and\x20menu\x20fallbacks\x20in\x20the\x20selected\x20menu\x20host','3rFKFkc','138RHOzkc','283260JsclLq','242669pqzJKE','menu','70kIFqud','4076664DCbotk','127676EUjBDK','2789586sBbbji','481282ihUGXc','80YrEcwo'];a188_0x64fe=function(){return _0x2f9dbf;};return a188_0x64fe();}(function(_0x1e86c5,_0x51a99c){const _0x1b20af=a188_0x2378,_0x33f897=_0x1e86c5();while(!![]){try{const _0xeba50f=-parseInt(_0x1b20af(0x15d))/0x1+parseInt(_0x1b20af(0x156))/0x2*(parseInt(_0x1b20af(0x154))/0x3)+parseInt(_0x1b20af(0x15b))/0x4*(-parseInt(_0x1b20af(0x159))/0x5)+parseInt(_0x1b20af(0x155))/0x6*(-parseInt(_0x1b20af(0x157))/0x7)+-parseInt(_0x1b20af(0x15a))/0x8+parseInt(_0x1b20af(0x15c))/0x9+parseInt(_0x1b20af(0x14c))/0xa*(parseInt(_0x1b20af(0x150))/0xb);if(_0xeba50f===_0x51a99c)break;else _0x33f897['push'](_0x33f897['shift']());}catch(_0x5c94b8){_0x33f897['push'](_0x33f897['shift']());}}}(a188_0x64fe,0x6e9e0));import{getSmartAppRecord}from'../../core/api-client.js';import{getOnlineMenuList}from'../../commands/menu/shared/service.js';import{buildSubappAssetsStatus,getSubappSelector,SUBAPP_ASSET_SELECTOR_FLAGS}from'../../commands/menu/shared/subapp-assets.js';function a188_0x2378(_0x1dd1e5,_0x375f00){_0x1dd1e5=_0x1dd1e5-0x14c;const _0x64fe45=a188_0x64fe();let _0x237898=_0x64fe45[_0x1dd1e5];return _0x237898;}export const menuSubappAssetsStatus={'service':a188_0x1e3e4a(0x158),'command':'subapp-assets-status','description':a188_0x1e3e4a(0x153),'risk':'read','strictFlags':!![],'flags':SUBAPP_ASSET_SELECTOR_FLAGS,async 'validate'(_0x95b5f1){getSubappSelector(_0x95b5f1);},async 'execute'(_0x45c98b){const _0x562122=a188_0x1e3e4a,{appCode:_0x4a002b,appName:_0x1e49b7}=getSubappSelector(_0x45c98b),[_0x56a460,_0x10a444]=await Promise[_0x562122(0x14e)]([getSmartAppRecord(_0x4a002b,_0x45c98b[_0x562122(0x14f)]),getOnlineMenuList(_0x4a002b,_0x45c98b[_0x562122(0x14f)])]),_0x11de13={'appCode':_0x4a002b,...buildSubappAssetsStatus(_0x56a460,_0x10a444,_0x1e49b7)};return{'ok':!![],'data':_0x11de13,'message':_0x562122(0x152)+_0x11de13['boundMenus']+_0x562122(0x14d)+_0x1e49b7+_0x562122(0x151)+_0x4a002b+'.'};}};
@@ -1 +1 @@
1
- const a189_0xfb56cf=a189_0x1ef3;(function(_0x399cd1,_0x593083){const _0x14f13b=a189_0x1ef3,_0x28f7b3=_0x399cd1();while(!![]){try{const _0x28e6a2=parseInt(_0x14f13b(0x180))/0x1*(-parseInt(_0x14f13b(0x18b))/0x2)+-parseInt(_0x14f13b(0x17a))/0x3+parseInt(_0x14f13b(0x1a5))/0x4*(parseInt(_0x14f13b(0x1ab))/0x5)+parseInt(_0x14f13b(0x190))/0x6+-parseInt(_0x14f13b(0x1a1))/0x7*(-parseInt(_0x14f13b(0x16f))/0x8)+parseInt(_0x14f13b(0x158))/0x9*(parseInt(_0x14f13b(0x15d))/0xa)+parseInt(_0x14f13b(0x198))/0xb*(-parseInt(_0x14f13b(0x195))/0xc);if(_0x28e6a2===_0x593083)break;else _0x28f7b3['push'](_0x28f7b3['shift']());}catch(_0x2aff8c){_0x28f7b3['push'](_0x28f7b3['shift']());}}}(a189_0x4c10,0xd3d81));import{createHash}from'node:crypto';import{isDeepStrictEqual}from'node:util';import{getSmartAppRecord,updateSmartAppRecord}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a189_0x4c10(){const _0x158c6c=['7483CMDGdh','length','digest','--resources\x20is\x20required.','5872xmsLtb','protocol','appCode','App\x20assets\x20or\x20update\x20target\x20changed\x20since\x20preview;\x20the\x20fingerprint\x20does\x20not\x20match.\x20Run\x20a\x20new\x20dry-run.','enableOpenApi','expectedHash','4050GvdsdG','Existing\x20subapp.resources\x20must\x20be\x20an\x20array\x20of\x20URLs.','6642FGqOdM','directDbEnabled','filter','\x20must\x20be\x20a\x20JSON\x20array.','isArray','21030PMdWtC','join','appName','tenantColumn','update','apiError','has','Expected\x20exactly\x20one\x20existing\x20subapp\x20entry\x20for\x20','validation','stringify','At\x20least\x20one\x20resource\x20URL\x20is\x20required.','Updated\x20shared\x20resources\x20for\x20','keys','.\x20Refusing\x20update.','Resources\x20need\x20one\x20JS\x20entry\x20and\x20no\x20duplicate\x20URLs.',']\x20must\x20be\x20an\x20absolute\x20HTTPS\x20URL.','object','enableAutoSync','9392eXxFxS','Preview\x20fingerprint\x20binding\x20the\x20host,\x20subapp,\x20resource\x20URLs\x20and\x20current\x20config;\x20required\x20for\x20writes',';\x20found\x20','some','resources','Existing\x20subapp.resources\x20must\x20be\x20a\x20JSON\x20string.','subapp-assets-update','not\x20HTTPS','parse','map','string','2813118PSNIrO','Unknown\x20app.extend\x20fields:\x20','resources[','app.extend.assets\x20must\x20be\x20a\x20JSON\x20string;\x20refusing\x20update.','Would\x20update\x20shared\x20assets\x20for\x20','directDbId','5qUxmUW',']\x20must\x20be\x20a\x20URL\x20string.','App\x20ID\x20or\x20publish\x20status\x20is\x20missing;\x20refusing\x20a\x20generic\x20app\x20update.','skinColor','app.extend.assets','assets','expected-hash','menu','trim','before','Shared\x20assets\x20already\x20match\x20the\x20requested\x20URLs.','129566CMqhFb','str','enableSample','Existing\x20subapp.resources\x20contains\x20invalid\x20JSON.','\x20in\x20menu\x20host\x20','4674708jiuiDV','\x20contains\x20invalid\x20JSON.','isSafeInteger','entries','unchanged','12nvnsnp','--expected-hash\x20from\x20a\x20dry-run\x20is\x20required.','/smartapi/app/update','29104724uIyJjZ','appPublishStatus','accessKey','Management\x20app\x20assets\x20already\x20match;\x20independent\x20deployment\x20not\x20verified.','nextExtend','write','cookie','--resources\x20must\x20be\x20a\x20JSON\x20array\x20of\x20HTTPS\x20URLs.','JSON\x20array\x20of\x20HTTPS\x20resource\x20URLs'];a189_0x4c10=function(){return _0x158c6c;};return a189_0x4c10();}import{getSubappSelector,SUBAPP_ASSET_SELECTOR_FLAGS}from'../../commands/menu/shared/subapp-assets.js';const KNOWN_EXTEND_KEYS=new Set([a189_0xfb56cf(0x183),a189_0xfb56cf(0x1a9),a189_0xfb56cf(0x19a),a189_0xfb56cf(0x185),a189_0xfb56cf(0x160),a189_0xfb56cf(0x18d),'vipDeploy',a189_0xfb56cf(0x16e),a189_0xfb56cf(0x17f),a189_0xfb56cf(0x159)]);function parseObject(_0x30b550,_0x1b2cc5){const _0x13ae65=a189_0xfb56cf;let _0x501b89=_0x30b550;if(typeof _0x30b550===_0x13ae65(0x179))try{_0x501b89=JSON[_0x13ae65(0x177)](_0x30b550);}catch{throw CliErrors[_0x13ae65(0x165)](_0x1b2cc5+_0x13ae65(0x191));}if(!_0x501b89||typeof _0x501b89!==_0x13ae65(0x16d)||Array[_0x13ae65(0x15c)](_0x501b89))throw CliErrors[_0x13ae65(0x165)](_0x1b2cc5+'\x20must\x20be\x20a\x20JSON\x20object.');return _0x501b89;}function a189_0x1ef3(_0x5a6ebf,_0x44184e){_0x5a6ebf=_0x5a6ebf-0x157;const _0x4c1048=a189_0x4c10();let _0x1ef3b3=_0x4c1048[_0x5a6ebf];return _0x1ef3b3;}function parseArray(_0x100b31,_0x3caa96){const _0x2ab074=a189_0xfb56cf;let _0x4a1dcd;try{_0x4a1dcd=JSON[_0x2ab074(0x177)](_0x100b31);}catch{throw CliErrors[_0x2ab074(0x165)](_0x3caa96+_0x2ab074(0x191));}if(!Array[_0x2ab074(0x15c)](_0x4a1dcd))throw CliErrors[_0x2ab074(0x165)](_0x3caa96+_0x2ab074(0x15b));return _0x4a1dcd['map']((_0x257c44,_0x373571)=>parseObject(_0x257c44,_0x3caa96+'['+_0x373571+']'));}function validateResources(_0x3bf77c){const _0x471a24=a189_0xfb56cf;if(_0x3bf77c[_0x471a24(0x1a2)]===0x0)throw CliErrors['validation'](_0x471a24(0x167));for(const [_0x56a5ef,_0x27ee5b]of _0x3bf77c[_0x471a24(0x193)]()){if(typeof _0x27ee5b!==_0x471a24(0x179))throw CliErrors[_0x471a24(0x165)](_0x471a24(0x17c)+_0x56a5ef+_0x471a24(0x181));try{if(new URL(_0x27ee5b)[_0x471a24(0x1a6)]!=='https:')throw new Error(_0x471a24(0x176));}catch{throw CliErrors[_0x471a24(0x165)](_0x471a24(0x17c)+_0x56a5ef+_0x471a24(0x16c));}}if(new Set(_0x3bf77c)['size']!==_0x3bf77c[_0x471a24(0x1a2)]||!_0x3bf77c[_0x471a24(0x172)](_0x4b43ca=>/\.m?js(?:[?#]|$)/i['test'](_0x4b43ca)))throw CliErrors[_0x471a24(0x165)](_0x471a24(0x16b));return _0x3bf77c;}function prepare(_0x7a9831,_0x594ee0,_0x5c0ce6){const _0x59edd1=a189_0xfb56cf;if(!Number[_0x59edd1(0x192)](_0x7a9831['id'])||(_0x7a9831['id']??0x0)<=0x0||typeof _0x7a9831[_0x59edd1(0x199)]!=='string'||!_0x7a9831[_0x59edd1(0x199)])throw CliErrors[_0x59edd1(0x165)](_0x59edd1(0x182));const _0x5251af=parseObject(_0x7a9831['extend'],'app.extend'),_0x2e0de2=Object[_0x59edd1(0x169)](_0x5251af)[_0x59edd1(0x15a)](_0x5eae0d=>!KNOWN_EXTEND_KEYS[_0x59edd1(0x163)](_0x5eae0d));if(_0x2e0de2[_0x59edd1(0x1a2)])throw CliErrors[_0x59edd1(0x165)](_0x59edd1(0x17b)+_0x2e0de2[_0x59edd1(0x15e)](',\x20')+_0x59edd1(0x16a));if(typeof _0x5251af[_0x59edd1(0x185)]!==_0x59edd1(0x179))throw CliErrors[_0x59edd1(0x165)](_0x59edd1(0x17d));const _0x31959c=parseArray(_0x5251af[_0x59edd1(0x185)],_0x59edd1(0x184)),_0x1a7054=_0x31959c[_0x59edd1(0x15a)](_0x3c2dcc=>_0x3c2dcc[_0x59edd1(0x15f)]===_0x594ee0);if(_0x1a7054[_0x59edd1(0x1a2)]!==0x1)throw CliErrors[_0x59edd1(0x165)](_0x59edd1(0x164)+_0x594ee0+_0x59edd1(0x171)+_0x1a7054[_0x59edd1(0x1a2)]+'.');const _0x52acde=_0x1a7054[0x0];if(typeof _0x52acde['resources']!=='string')throw CliErrors[_0x59edd1(0x165)](_0x59edd1(0x174));let _0x337134;try{_0x337134=JSON['parse'](_0x52acde[_0x59edd1(0x173)]);}catch{throw CliErrors['validation'](_0x59edd1(0x18e));}if(!Array[_0x59edd1(0x15c)](_0x337134)||_0x337134['some'](_0x254c95=>typeof _0x254c95!==_0x59edd1(0x179)))throw CliErrors[_0x59edd1(0x165)](_0x59edd1(0x157));const _0x5893a6=_0x31959c[_0x59edd1(0x178)](_0x14cf54=>_0x14cf54===_0x52acde?{..._0x14cf54,'resources':JSON[_0x59edd1(0x166)](_0x5c0ce6)}:_0x14cf54),_0x111546={..._0x5251af,'assets':JSON[_0x59edd1(0x166)](_0x5893a6)},_0x1579e2=createHash('sha256')[_0x59edd1(0x161)](JSON[_0x59edd1(0x166)]({'appCode':_0x7a9831[_0x59edd1(0x1a7)],'id':_0x7a9831['id'],'appPublishStatus':_0x7a9831[_0x59edd1(0x199)],'extend':_0x5251af,'appName':_0x594ee0,'resources':_0x5c0ce6}))[_0x59edd1(0x1a3)]('hex');return{'before':_0x337134,'nextExtend':_0x111546,'expectedHash':_0x1579e2,'unchanged':isDeepStrictEqual(_0x337134,_0x5c0ce6)};}function flags(_0x4316be){const _0x20759e=a189_0xfb56cf,{appCode:_0x1ba1b7,appName:_0x3c303a}=getSubappSelector(_0x4316be),_0x214c68=_0x4316be[_0x20759e(0x18c)](_0x20759e(0x173))['trim']();if(!_0x214c68)throw CliErrors[_0x20759e(0x165)](_0x20759e(0x1a4));let _0x29930f;try{_0x29930f=JSON[_0x20759e(0x177)](_0x214c68);}catch{throw CliErrors[_0x20759e(0x165)](_0x20759e(0x19f));}if(!Array[_0x20759e(0x15c)](_0x29930f))throw CliErrors['validation'](_0x20759e(0x19f));return{'appCode':_0x1ba1b7,'appName':_0x3c303a,'resources':validateResources(_0x29930f)};}export const menuSubappAssetsUpdate={'service':a189_0xfb56cf(0x187),'command':a189_0xfb56cf(0x175),'description':'Update\x20one\x20frontend\x20subapp\x20resource\x20URL\x20set\x20in\x20the\x20selected\x20menu\x20host','risk':a189_0xfb56cf(0x19d),'strictFlags':!![],'flags':[...SUBAPP_ASSET_SELECTOR_FLAGS,{'name':a189_0xfb56cf(0x173),'type':'string','required':!![],'description':a189_0xfb56cf(0x1a0)},{'name':a189_0xfb56cf(0x186),'type':'string','description':a189_0xfb56cf(0x170)}],async 'validate'(_0x35968f){flags(_0x35968f);},async 'dryRun'(_0x2c664c){const _0x368ece=a189_0xfb56cf,{appCode:_0x584b6b,appName:_0x394137,resources:_0x54bb56}=flags(_0x2c664c),_0x107084=await getSmartAppRecord(_0x584b6b,_0x2c664c[_0x368ece(0x19e)]),_0x3be4d0=prepare(_0x107084,_0x394137,_0x54bb56);return{'method':'POST','url':_0x368ece(0x197),'body':{'preview':{'appCode':_0x584b6b,'appName':_0x394137,'before':_0x3be4d0[_0x368ece(0x189)],'after':_0x54bb56,'expectedHash':_0x3be4d0[_0x368ece(0x1aa)],'unchanged':_0x3be4d0[_0x368ece(0x194)],'remoteContentVerified':![],'independentDeploymentVerified':![]}},'description':_0x3be4d0[_0x368ece(0x194)]?_0x368ece(0x18a):_0x368ece(0x17e)+_0x394137+'.'};},async 'execute'(_0x357146){const _0xa9642e=a189_0xfb56cf,{appCode:_0x3c124e,appName:_0x4761b5,resources:_0x4f42c}=flags(_0x357146),_0x21ac84=_0x357146[_0xa9642e(0x18c)]('expected-hash')[_0xa9642e(0x188)]();if(!/^[a-f0-9]{64}$/i['test'](_0x21ac84))throw CliErrors['validation'](_0xa9642e(0x196));const _0x4fe9c0=await getSmartAppRecord(_0x3c124e,_0x357146[_0xa9642e(0x19e)]),_0xc72dc5=prepare(_0x4fe9c0,_0x4761b5,_0x4f42c);if(_0x21ac84!==_0xc72dc5[_0xa9642e(0x1aa)])throw CliErrors['validation'](_0xa9642e(0x1a8));if(_0xc72dc5[_0xa9642e(0x194)])return{'ok':!![],'data':{'appCode':_0x3c124e,'appName':_0x4761b5,'updated':![],'managementConfirmed':!![],'independentDeploymentVerified':![],'remoteContentVerified':![]},'message':_0xa9642e(0x19b)};await updateSmartAppRecord({'id':_0x4fe9c0['id'],'appCode':_0x3c124e,'appPublishStatus':_0x4fe9c0[_0xa9642e(0x199)],'extend':_0xc72dc5[_0xa9642e(0x19c)]},_0x357146[_0xa9642e(0x19e)]);const _0x518153=await getSmartAppRecord(_0x3c124e,_0x357146[_0xa9642e(0x19e)]),_0x42b875=parseObject(_0x518153['extend'],'verified\x20app.extend');if(_0x518153['id']!==_0x4fe9c0['id']||_0x518153[_0xa9642e(0x199)]!==_0x4fe9c0[_0xa9642e(0x199)]||!isDeepStrictEqual(_0x42b875,_0xc72dc5[_0xa9642e(0x19c)]))throw CliErrors[_0xa9642e(0x162)]('App\x20asset\x20update\x20verification\x20failed;\x20inspect\x20the\x20app\x20before\x20retrying.');return{'ok':!![],'data':{'appCode':_0x3c124e,'appName':_0x4761b5,'updated':!![],'resources':_0x4f42c,'managementConfirmed':!![],'independentDeploymentVerified':![],'remoteContentVerified':![]},'message':_0xa9642e(0x168)+_0x4761b5+_0xa9642e(0x18f)+_0x3c124e+';\x20independent\x20deployment\x20not\x20verified.'};}};
1
+ const a189_0x5c143e=a189_0x107f;(function(_0x156091,_0x304683){const _0x2bb03e=a189_0x107f,_0xa2f6f6=_0x156091();while(!![]){try{const _0xa9e90f=parseInt(_0x2bb03e(0x10c))/0x1+parseInt(_0x2bb03e(0xce))/0x2+parseInt(_0x2bb03e(0xc3))/0x3+parseInt(_0x2bb03e(0xf4))/0x4+-parseInt(_0x2bb03e(0xdf))/0x5*(parseInt(_0x2bb03e(0xe8))/0x6)+-parseInt(_0x2bb03e(0xe4))/0x7*(parseInt(_0x2bb03e(0x100))/0x8)+-parseInt(_0x2bb03e(0xc1))/0x9;if(_0xa9e90f===_0x304683)break;else _0xa2f6f6['push'](_0xa2f6f6['shift']());}catch(_0x339221){_0xa2f6f6['push'](_0xa2f6f6['shift']());}}}(a189_0x4b02,0x70119));import{createHash}from'node:crypto';import{isDeepStrictEqual}from'node:util';function a189_0x107f(_0x5deed0,_0x2e62bd){_0x5deed0=_0x5deed0-0xbd;const _0x4b02c1=a189_0x4b02();let _0x107ffd=_0x4b02c1[_0x5deed0];return _0x107ffd;}import{getSmartAppRecord,updateSmartAppRecord}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a189_0x4b02(){const _0x365a20=['app.extend.assets','enableAutoSync','assets','string','isSafeInteger','--expected-hash\x20from\x20a\x20dry-run\x20is\x20required.','490PVtDjd','--resources\x20is\x20required.','Management\x20app\x20assets\x20already\x20match;\x20independent\x20deployment\x20not\x20verified.','length','--resources\x20must\x20be\x20a\x20JSON\x20array\x20of\x20HTTPS\x20URLs.','6594yEixXg','enableSample','entries','App\x20asset\x20update\x20verification\x20failed;\x20inspect\x20the\x20app\x20before\x20retrying.','20970cyRChP','\x20must\x20be\x20a\x20JSON\x20array.','/smartapi/app/update','expectedHash','Resources\x20need\x20one\x20JS\x20entry\x20and\x20no\x20duplicate\x20URLs.','\x20contains\x20invalid\x20JSON.','\x20in\x20menu\x20host\x20',';\x20found\x20',';\x20independent\x20deployment\x20not\x20verified.','apiError','parse','stringify','198848bvhYXs','directDbId','.\x20Refusing\x20update.','At\x20least\x20one\x20resource\x20URL\x20is\x20required.','trim','test','App\x20ID\x20or\x20publish\x20status\x20is\x20missing;\x20refusing\x20a\x20generic\x20app\x20update.','appName','str','update','expected-hash','size','6376BneOBy','POST','write','isArray','resources[','Unknown\x20app.extend\x20fields:\x20','Would\x20update\x20shared\x20assets\x20for\x20','app.extend.assets\x20must\x20be\x20a\x20JSON\x20string;\x20refusing\x20update.','Existing\x20subapp.resources\x20must\x20be\x20a\x20JSON\x20string.','Expected\x20exactly\x20one\x20existing\x20subapp\x20entry\x20for\x20',']\x20must\x20be\x20an\x20absolute\x20HTTPS\x20URL.','Updated\x20shared\x20resources\x20for\x20','697658ytymzs','object','nextExtend','filter','appPublishStatus','unchanged','1226736liBwcs','sha256','2197401wDjROY','join',']\x20must\x20be\x20a\x20URL\x20string.','not\x20HTTPS','has','cookie','extend','some','Existing\x20subapp.resources\x20must\x20be\x20an\x20array\x20of\x20URLs.','\x20must\x20be\x20a\x20JSON\x20object.','enableOpenApi','417568QMJIlG','appCode','resources','subapp-assets-update','before','vipDeploy','Existing\x20subapp.resources\x20contains\x20invalid\x20JSON.','validation','menu','https:','map'];a189_0x4b02=function(){return _0x365a20;};return a189_0x4b02();}import{getSubappSelector,SUBAPP_ASSET_SELECTOR_FLAGS}from'../../commands/menu/shared/subapp-assets.js';const KNOWN_EXTEND_KEYS=new Set(['skinColor',a189_0x5c143e(0xcd),'accessKey',a189_0x5c143e(0xdb),'tenantColumn',a189_0x5c143e(0xe5),a189_0x5c143e(0xd3),a189_0x5c143e(0xda),a189_0x5c143e(0xf5),'directDbEnabled']);function parseObject(_0x1ff76f,_0x1a9d38){const _0x5476cc=a189_0x5c143e;let _0x47a87f=_0x1ff76f;if(typeof _0x1ff76f===_0x5476cc(0xdc))try{_0x47a87f=JSON[_0x5476cc(0xf2)](_0x1ff76f);}catch{throw CliErrors['validation'](_0x1a9d38+_0x5476cc(0xed));}if(!_0x47a87f||typeof _0x47a87f!==_0x5476cc(0x10d)||Array[_0x5476cc(0x103)](_0x47a87f))throw CliErrors[_0x5476cc(0xd5)](_0x1a9d38+_0x5476cc(0xcc));return _0x47a87f;}function parseArray(_0x553938,_0x20620c){const _0x4bee16=a189_0x5c143e;let _0xe2748;try{_0xe2748=JSON[_0x4bee16(0xf2)](_0x553938);}catch{throw CliErrors['validation'](_0x20620c+_0x4bee16(0xed));}if(!Array[_0x4bee16(0x103)](_0xe2748))throw CliErrors['validation'](_0x20620c+_0x4bee16(0xe9));return _0xe2748['map']((_0x57f06b,_0x3077de)=>parseObject(_0x57f06b,_0x20620c+'['+_0x3077de+']'));}function validateResources(_0x43c09b){const _0x5a31d7=a189_0x5c143e;if(_0x43c09b[_0x5a31d7(0xe2)]===0x0)throw CliErrors[_0x5a31d7(0xd5)](_0x5a31d7(0xf7));for(const [_0x7d3a1,_0x55f450]of _0x43c09b[_0x5a31d7(0xe6)]()){if(typeof _0x55f450!==_0x5a31d7(0xdc))throw CliErrors[_0x5a31d7(0xd5)](_0x5a31d7(0x104)+_0x7d3a1+_0x5a31d7(0xc5));try{if(new URL(_0x55f450)['protocol']!==_0x5a31d7(0xd7))throw new Error(_0x5a31d7(0xc6));}catch{throw CliErrors[_0x5a31d7(0xd5)](_0x5a31d7(0x104)+_0x7d3a1+_0x5a31d7(0x10a));}}if(new Set(_0x43c09b)[_0x5a31d7(0xff)]!==_0x43c09b['length']||!_0x43c09b['some'](_0x449e60=>/\.m?js(?:[?#]|$)/i[_0x5a31d7(0xf9)](_0x449e60)))throw CliErrors['validation'](_0x5a31d7(0xec));return _0x43c09b;}function prepare(_0x38f8dd,_0x1e1efc,_0x3fe0ad){const _0x41f86f=a189_0x5c143e;if(!Number[_0x41f86f(0xdd)](_0x38f8dd['id'])||(_0x38f8dd['id']??0x0)<=0x0||typeof _0x38f8dd[_0x41f86f(0xbf)]!==_0x41f86f(0xdc)||!_0x38f8dd[_0x41f86f(0xbf)])throw CliErrors['validation'](_0x41f86f(0xfa));const _0x9ff0f5=parseObject(_0x38f8dd[_0x41f86f(0xc9)],'app.extend'),_0x872af8=Object['keys'](_0x9ff0f5)[_0x41f86f(0xbe)](_0x2e71b7=>!KNOWN_EXTEND_KEYS[_0x41f86f(0xc7)](_0x2e71b7));if(_0x872af8[_0x41f86f(0xe2)])throw CliErrors[_0x41f86f(0xd5)](_0x41f86f(0x105)+_0x872af8[_0x41f86f(0xc4)](',\x20')+_0x41f86f(0xf6));if(typeof _0x9ff0f5['assets']!=='string')throw CliErrors[_0x41f86f(0xd5)](_0x41f86f(0x107));const _0x1d39a8=parseArray(_0x9ff0f5[_0x41f86f(0xdb)],_0x41f86f(0xd9)),_0x102a6b=_0x1d39a8[_0x41f86f(0xbe)](_0x49e41b=>_0x49e41b[_0x41f86f(0xfb)]===_0x1e1efc);if(_0x102a6b[_0x41f86f(0xe2)]!==0x1)throw CliErrors['validation'](_0x41f86f(0x109)+_0x1e1efc+_0x41f86f(0xef)+_0x102a6b['length']+'.');const _0x86eda7=_0x102a6b[0x0];if(typeof _0x86eda7[_0x41f86f(0xd0)]!==_0x41f86f(0xdc))throw CliErrors[_0x41f86f(0xd5)](_0x41f86f(0x108));let _0x276233;try{_0x276233=JSON[_0x41f86f(0xf2)](_0x86eda7[_0x41f86f(0xd0)]);}catch{throw CliErrors['validation'](_0x41f86f(0xd4));}if(!Array['isArray'](_0x276233)||_0x276233[_0x41f86f(0xca)](_0x4f1915=>typeof _0x4f1915!=='string'))throw CliErrors[_0x41f86f(0xd5)](_0x41f86f(0xcb));const _0x3cb4cd=_0x1d39a8[_0x41f86f(0xd8)](_0x1942a6=>_0x1942a6===_0x86eda7?{..._0x1942a6,'resources':JSON[_0x41f86f(0xf3)](_0x3fe0ad)}:_0x1942a6),_0x2a65df={..._0x9ff0f5,'assets':JSON[_0x41f86f(0xf3)](_0x3cb4cd)},_0x3afb0b=createHash(_0x41f86f(0xc2))[_0x41f86f(0xfd)](JSON[_0x41f86f(0xf3)]({'appCode':_0x38f8dd[_0x41f86f(0xcf)],'id':_0x38f8dd['id'],'appPublishStatus':_0x38f8dd[_0x41f86f(0xbf)],'extend':_0x9ff0f5,'appName':_0x1e1efc,'resources':_0x3fe0ad}))['digest']('hex');return{'before':_0x276233,'nextExtend':_0x2a65df,'expectedHash':_0x3afb0b,'unchanged':isDeepStrictEqual(_0x276233,_0x3fe0ad)};}function flags(_0x5e57ee){const _0x562618=a189_0x5c143e,{appCode:_0x1aa203,appName:_0x519bf6}=getSubappSelector(_0x5e57ee),_0x49893b=_0x5e57ee[_0x562618(0xfc)](_0x562618(0xd0))[_0x562618(0xf8)]();if(!_0x49893b)throw CliErrors[_0x562618(0xd5)](_0x562618(0xe0));let _0xc53497;try{_0xc53497=JSON[_0x562618(0xf2)](_0x49893b);}catch{throw CliErrors['validation'](_0x562618(0xe3));}if(!Array[_0x562618(0x103)](_0xc53497))throw CliErrors['validation'](_0x562618(0xe3));return{'appCode':_0x1aa203,'appName':_0x519bf6,'resources':validateResources(_0xc53497)};}export const menuSubappAssetsUpdate={'service':a189_0x5c143e(0xd6),'command':a189_0x5c143e(0xd1),'description':'Update\x20one\x20frontend\x20subapp\x20resource\x20URL\x20set\x20in\x20the\x20selected\x20menu\x20host','risk':a189_0x5c143e(0x102),'strictFlags':!![],'flags':[...SUBAPP_ASSET_SELECTOR_FLAGS,{'name':'resources','type':'string','required':!![],'description':'JSON\x20array\x20of\x20HTTPS\x20resource\x20URLs'},{'name':a189_0x5c143e(0xfe),'type':'string','description':'Preview\x20fingerprint\x20binding\x20the\x20host,\x20subapp,\x20resource\x20URLs\x20and\x20current\x20config;\x20required\x20for\x20writes'}],async 'validate'(_0x3f6286){flags(_0x3f6286);},async 'dryRun'(_0x394b59){const _0x488667=a189_0x5c143e,{appCode:_0x441268,appName:_0x33dee8,resources:_0x884014}=flags(_0x394b59),_0x2a5fbc=await getSmartAppRecord(_0x441268,_0x394b59['cookie']),_0x183e42=prepare(_0x2a5fbc,_0x33dee8,_0x884014);return{'method':_0x488667(0x101),'url':_0x488667(0xea),'body':{'preview':{'appCode':_0x441268,'appName':_0x33dee8,'before':_0x183e42[_0x488667(0xd2)],'after':_0x884014,'expectedHash':_0x183e42[_0x488667(0xeb)],'unchanged':_0x183e42[_0x488667(0xc0)],'remoteContentVerified':![],'independentDeploymentVerified':![]}},'description':_0x183e42[_0x488667(0xc0)]?'Shared\x20assets\x20already\x20match\x20the\x20requested\x20URLs.':_0x488667(0x106)+_0x33dee8+'.'};},async 'execute'(_0x50a53d){const _0x527e41=a189_0x5c143e,{appCode:_0x7220ed,appName:_0x8a17c1,resources:_0x5234ef}=flags(_0x50a53d),_0x18f5ad=_0x50a53d[_0x527e41(0xfc)](_0x527e41(0xfe))[_0x527e41(0xf8)]();if(!/^[a-f0-9]{64}$/i[_0x527e41(0xf9)](_0x18f5ad))throw CliErrors['validation'](_0x527e41(0xde));const _0x508b54=await getSmartAppRecord(_0x7220ed,_0x50a53d[_0x527e41(0xc8)]),_0x57ffd8=prepare(_0x508b54,_0x8a17c1,_0x5234ef);if(_0x18f5ad!==_0x57ffd8['expectedHash'])throw CliErrors[_0x527e41(0xd5)]('App\x20assets\x20or\x20update\x20target\x20changed\x20since\x20preview;\x20the\x20fingerprint\x20does\x20not\x20match.\x20Run\x20a\x20new\x20dry-run.');if(_0x57ffd8[_0x527e41(0xc0)])return{'ok':!![],'data':{'appCode':_0x7220ed,'appName':_0x8a17c1,'updated':![],'managementConfirmed':!![],'independentDeploymentVerified':![],'remoteContentVerified':![]},'message':_0x527e41(0xe1)};await updateSmartAppRecord({'id':_0x508b54['id'],'appCode':_0x7220ed,'appPublishStatus':_0x508b54['appPublishStatus'],'extend':_0x57ffd8[_0x527e41(0xbd)]},_0x50a53d[_0x527e41(0xc8)]);const _0x509a94=await getSmartAppRecord(_0x7220ed,_0x50a53d[_0x527e41(0xc8)]),_0x53f264=parseObject(_0x509a94[_0x527e41(0xc9)],'verified\x20app.extend');if(_0x509a94['id']!==_0x508b54['id']||_0x509a94[_0x527e41(0xbf)]!==_0x508b54[_0x527e41(0xbf)]||!isDeepStrictEqual(_0x53f264,_0x57ffd8[_0x527e41(0xbd)]))throw CliErrors[_0x527e41(0xf1)](_0x527e41(0xe7));return{'ok':!![],'data':{'appCode':_0x7220ed,'appName':_0x8a17c1,'updated':!![],'resources':_0x5234ef,'managementConfirmed':!![],'independentDeploymentVerified':![],'remoteContentVerified':![]},'message':_0x527e41(0x10b)+_0x8a17c1+_0x527e41(0xee)+_0x7220ed+_0x527e41(0xf0)};}};
@@ -1 +1 @@
1
- const a190_0x3ca01a=a190_0x57c1;(function(_0x3748f7,_0x484a53){const _0xcb02dd=a190_0x57c1,_0x424e8f=_0x3748f7();while(!![]){try{const _0x23fc0f=-parseInt(_0xcb02dd(0x202))/0x1*(-parseInt(_0xcb02dd(0x1ca))/0x2)+-parseInt(_0xcb02dd(0x1d0))/0x3*(parseInt(_0xcb02dd(0x203))/0x4)+-parseInt(_0xcb02dd(0x1e4))/0x5*(parseInt(_0xcb02dd(0x1ef))/0x6)+parseInt(_0xcb02dd(0x1d7))/0x7+-parseInt(_0xcb02dd(0x1e2))/0x8+parseInt(_0xcb02dd(0x1dd))/0x9*(parseInt(_0xcb02dd(0x1f1))/0xa)+-parseInt(_0xcb02dd(0x1fe))/0xb*(parseInt(_0xcb02dd(0x204))/0xc);if(_0x23fc0f===_0x484a53)break;else _0x424e8f['push'](_0x424e8f['shift']());}catch(_0x2808ae){_0x424e8f['push'](_0x424e8f['shift']());}}}(a190_0xf6b9,0x704f0));import a190_0x47f50b from'chalk';function a190_0xf6b9(){const _0x3e5934=['Created\x20','filter','\x20\x20✓\x20Selected:\x20','length','localPages','979BXaqpB','message','\x20menu(s)...','\x20menu(s)\x20with\x20JS:\x20','90344oUBZcS','1645516AgBqaZ','11940PnPZOA','selectedAppName','Confirm\x20non-interactive\x20sync;\x20without\x20--paths,\x20create\x20all\x20missing\x20local\x20pages','menu','appName','yellow','cookie','boolean','\x20\x20Cancelled.','menu\x20sync\x20requires\x20a\x20project\x20context\x20or\x20explicit\x20--appcode.\x20','string','onlineMenuList','gray','appcode','\x20local\x20microfrontend\x20menu(s).','\x20menu(s)\x20created','8bxuJVP','No\x20local\x20microfrontend\x20menus\x20would\x20be\x20created.','Register\x20local\x20pages\x20as\x20platform\x20menus','sync','Tip:\x20For\x20frontend\x20subapps,\x20prefer\x20Agent-planned\x20menu\x20groups\x20and\x20shared\x20resources.\x20This\x20manual\x20sync\x20workflow\x20remains\x20available\x20as\x20a\x20fallback.','cyan','3dRfblN','Exact\x20comma-separated\x20local\x20page\x20paths\x20to\x20sync','onlinePaths','Preview\x20with\x20--dry-run,\x20then\x20reuse\x20the\x20same\x20--paths\x20and\x20--params\x20with\x20--yes.','flag','str','failed','3254965HooeuC','jsUrl','created','\x20\x20Create\x20','targetPages','\x20failed.','9EGxtAH','Prefer\x20appName\x20for\x20shared\x20subapp\x20resources\x20and\x20parentId\x20for\x20planned\x20groups.\x20','yes','validation','JSON:\x20{\x22appName\x22:\x22store-app\x22,\x22parentId\x22:42,\x22visible\x22:false};\x20jsUrl\x20and\x20cssUrl\x20remain\x20available\x20for\x20individual\x20menu\x20resources.','2815008FGrjgR','Creating\x20','80MGchZH','Menu\x20creation\x20failed','skipped','params','✓\x20Menu\x20sync\x20completed:\x20','Menu\x20sync\x20completed:\x20','trim','\x20page(s)','paths','Run\x20inside\x20a\x20directory\x20with\x20.rabetbase.json,\x20or\x20pass\x20--appcode\x20<code>.','✓\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform','34416lYyxwc','map','5772310JeuybK','Failed\x20to\x20fetch\x20online\x20menu\x20list','menu\x20sync\x20--paths\x20requires\x20--yes\x20for\x20execution.','\x20menu(s)\x20bound\x20to\x20','appCode','Fetching\x20online\x20menu\x20list...','cssUrl','rawFlags'];a190_0xf6b9=function(){return _0x3e5934;};return a190_0xf6b9();}function a190_0x57c1(_0x34bb25,_0x2f9595){_0x34bb25=_0x34bb25-0x1bc;const _0xf6b9b3=a190_0xf6b9();let _0x57c1e0=_0xf6b9b3[_0x34bb25];return _0x57c1e0;}import{buildCompareRows,doCreateMenus,fetchMenuData}from'../../commands/menu/shared/logic.js';import{renderCompareTable,renderSyncSummary}from'../../commands/menu/shared/compare-table.js';import{selectPages,askJsUrl,askCssUrl,askConfirm,startSpinner,stopSpinner,isInteractive,requireInteractive}from'../../commands/menu/shared/inquirer.js';import{CliErrors}from'../../errors.js';import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';import{parseMenuSyncParams,resolvePage,runMenuSyncCore}from'../../commands/menu/shared/sync-core.js';import{getLocalPages}from'../../commands/menu/shared/local-pages.js';import{isInProject}from'../../context.js';import{assertSharedResourcesConfigured}from'../../commands/menu/shared/subapp-assets.js';export const menuSync={'service':a190_0x3ca01a(0x1bd),'command':a190_0x3ca01a(0x1cd),'description':a190_0x3ca01a(0x1cc),'risk':'write','flags':[{'name':a190_0x3ca01a(0x1e7),'type':'string','description':a190_0x3ca01a(0x1de)+a190_0x3ca01a(0x1e1)},{'name':a190_0x3ca01a(0x1ec),'type':a190_0x3ca01a(0x1c4),'description':a190_0x3ca01a(0x1d1)},{'name':a190_0x3ca01a(0x1df),'type':a190_0x3ca01a(0x1c1),'description':a190_0x3ca01a(0x1bc)}],async 'dryRun'(_0x9e7b51){const _0x205bf4=a190_0x3ca01a;ensureRunnableContext(_0x9e7b51['rawFlags'],_0x9e7b51[_0x205bf4(0x205)]);const _0x39e063=await runMenuSyncCore(_0x9e7b51['appCode'],_0x9e7b51['cookie'],parsePaths(_0x9e7b51[_0x205bf4(0x1d5)](_0x205bf4(0x1ec))),_0x9e7b51['str']('params'),{'dryRun':!![]});return{'method':'POST','url':'/smartapi/menu/create','body':_0x39e063,'description':_0x39e063[_0x205bf4(0x1e6)]?_0x205bf4(0x1cb):'Would\x20create\x20'+_0x39e063[_0x205bf4(0x1db)]['length']+_0x205bf4(0x1c8)};},async 'execute'(_0x91ce80){const _0x428c29=a190_0x3ca01a;ensureRunnableContext(_0x91ce80[_0x428c29(0x1f8)],_0x91ce80[_0x428c29(0x205)]);const _0x278246=_0x91ce80[_0x428c29(0x1d4)]('yes'),_0x1010fc=_0x91ce80[_0x428c29(0x1d5)](_0x428c29(0x1e7)),_0x5a0977=parsePaths(_0x91ce80[_0x428c29(0x1d5)]('paths')),_0xe9403d=parseMenuSyncParams(_0x1010fc);if(_0x278246){const _0x27d6a6=await runMenuSyncCore(_0x91ce80[_0x428c29(0x1f5)],_0x91ce80['cookie'],_0x5a0977,_0x1010fc);if(_0x27d6a6['skipped']){const _0x148024=getLocalPages();_0x148024[_0x428c29(0x1fc)]===0x0?writeCliSideChannelLine('!\x20No\x20local\x20pages\x20found\x20in\x20src/pages'):writeCliSideChannelLine(_0x428c29(0x1ee));}else writeCliSideChannelLine(_0x428c29(0x1e8)+_0x27d6a6[_0x428c29(0x1d9)]+_0x428c29(0x1c9));return{'ok':!![],'data':_0x27d6a6,'message':_0x27d6a6['skipped']?'Menu\x20sync\x20skipped':'Menu\x20sync\x20completed:\x20'+_0x27d6a6[_0x428c29(0x1d9)]+'\x20created.'};}if(_0x5a0977[_0x428c29(0x1fc)]>0x0)throw CliErrors['validation'](_0x428c29(0x1f3),_0x428c29(0x1d3));if(!isInteractive()&&_0x1010fc)throw CliErrors[_0x428c29(0x1e0)]('Non-interactive\x20menu\x20sync\x20requires\x20--yes.',_0x428c29(0x1d3));requireInteractive(),writeCliSideChannelLine(_0x428c29(0x1ce));const _0x1025b7=startSpinner(_0x428c29(0x1f6));let _0x372d07,_0x9480af,_0x334ea8;try{const _0xd18165=await fetchMenuData(_0x91ce80[_0x428c29(0x1f5)],_0x91ce80[_0x428c29(0x1c0)]);_0x372d07=_0xd18165[_0x428c29(0x1fd)],_0x9480af=_0xd18165[_0x428c29(0x1d2)],_0x334ea8=_0xd18165[_0x428c29(0x1c5)],stopSpinner(_0x1025b7,'Online\x20menu\x20list\x20fetched',!![]);}catch(_0x1e277b){stopSpinner(_0x1025b7,_0x428c29(0x1f2),![]);throw CliErrors['validation'](_0x1e277b instanceof Error?_0x1e277b[_0x428c29(0x1ff)]:_0x428c29(0x1f2));}if(_0x372d07['length']===0x0)return writeCliSideChannelLine(a190_0x47f50b[_0x428c29(0x1bf)]('\x20\x20!\x20No\x20local\x20pages\x20found,\x20please\x20create\x20pages\x20first')),{'ok':!![]};const _0x5bd618=buildCompareRows(_0x372d07,_0x9480af);writeCliSideChannelLine(renderCompareTable(_0x5bd618)),writeCliSideChannelLine('');const _0x10f2f8=await selectPages(_0x372d07,_0x9480af);writeCliSideChannelLine(''),writeCliSideChannelLine(a190_0x47f50b[_0x428c29(0x1cf)](_0x428c29(0x1fb)+_0x10f2f8[_0x428c29(0x1fc)]+_0x428c29(0x1eb)));const _0x5421fb=_0xe9403d['jsUrl']&&_0xe9403d[_0x428c29(0x1f7)];if(!_0x5421fb){writeCliSideChannelLine(renderSyncSummary(_0x10f2f8,_0x9480af['size']>0x0));const _0x217347=await askConfirm('\x20\x20Continue\x20with\x20creation?');if(!_0x217347)return writeCliSideChannelLine(a190_0x47f50b[_0x428c29(0x1c6)]('\x20\x20Cancelled.')),{'ok':!![]};}let _0x3cae72=_0xe9403d[_0x428c29(0x1d8)],_0x41a93f=_0xe9403d[_0x428c29(0x1f7)];!_0x3cae72&&!_0xe9403d['appName']&&(_0x3cae72=await askJsUrl());!_0x41a93f&&!_0xe9403d['appName']&&(_0x41a93f=await askCssUrl());const _0x415a19=await askConfirm(_0xe9403d[_0x428c29(0x1be)]?_0x428c29(0x1da)+_0x10f2f8[_0x428c29(0x1fc)]+_0x428c29(0x1f4)+_0xe9403d['appName']+'?':_0x428c29(0x1da)+_0x10f2f8[_0x428c29(0x1fc)]+_0x428c29(0x201)+_0x3cae72+'\x20and\x20CSS:\x20'+_0x41a93f+'?');if(!_0x415a19)return writeCliSideChannelLine(a190_0x47f50b[_0x428c29(0x1c6)](_0x428c29(0x1c2))),{'ok':!![]};const _0x53f715=[_0x3cae72,_0x41a93f][_0x428c29(0x1fa)](_0x3efe00=>Boolean(_0x3efe00));_0xe9403d['appName']&&_0x53f715[_0x428c29(0x1fc)]===0x0&&await assertSharedResourcesConfigured(_0x91ce80[_0x428c29(0x1f5)],_0x91ce80[_0x428c29(0x1c0)],_0xe9403d[_0x428c29(0x1be)]);const _0x1d450e=startSpinner(_0x428c29(0x1e3)+_0x10f2f8['length']+_0x428c29(0x200));try{const _0x3f1c47=_0x10f2f8[_0x428c29(0x1f0)](_0x14af47=>resolvePage(_0x14af47,_0xe9403d,_0x334ea8)),_0x375aba=await doCreateMenus(_0x91ce80['appCode'],_0x91ce80[_0x428c29(0x1c0)],_0x3f1c47,_0x53f715,_0xe9403d[_0x428c29(0x1be)]?{'appName':_0xe9403d[_0x428c29(0x1be)]}:undefined);return stopSpinner(_0x1d450e,_0x428c29(0x1f9)+_0x375aba[_0x428c29(0x1d9)]+'\x20menu(s)',!![]),{'ok':!![],'data':_0x375aba,'message':_0x428c29(0x1e9)+_0x375aba[_0x428c29(0x1d9)]+'\x20created,\x20'+_0x375aba[_0x428c29(0x1d6)]+_0x428c29(0x1dc)};}catch(_0x465fc7){stopSpinner(_0x1d450e,_0x428c29(0x1e5),![]);throw CliErrors[_0x428c29(0x1e0)](_0x465fc7 instanceof Error?_0x465fc7[_0x428c29(0x1ff)]:_0x428c29(0x1e5));}}};function ensureRunnableContext(_0x2362f5,_0x540658){const _0x18dc47=a190_0x3ca01a,_0x573eed=_0x2362f5['appcode']?String(_0x2362f5[_0x18dc47(0x1c7)])[_0x18dc47(0x1ea)]():'';if(!isInProject()&&!_0x540658&&!_0x573eed)throw CliErrors[_0x18dc47(0x1e0)](_0x18dc47(0x1c3)+_0x18dc47(0x1ed));}function parsePaths(_0x5b9a85){const _0x1b4f60=a190_0x3ca01a;return[...new Set(_0x5b9a85['split'](',')[_0x1b4f60(0x1f0)](_0xd88efe=>_0xd88efe[_0x1b4f60(0x1ea)]())[_0x1b4f60(0x1fa)](Boolean))];}
1
+ const a190_0x5b154a=a190_0xcb56;(function(_0x423520,_0x3cc4a3){const _0x4098b7=a190_0xcb56,_0x32c111=_0x423520();while(!![]){try{const _0x26061d=parseInt(_0x4098b7(0xdd))/0x1*(parseInt(_0x4098b7(0xde))/0x2)+parseInt(_0x4098b7(0xcc))/0x3+-parseInt(_0x4098b7(0xf6))/0x4*(parseInt(_0x4098b7(0xce))/0x5)+parseInt(_0x4098b7(0xdf))/0x6*(parseInt(_0x4098b7(0xf9))/0x7)+-parseInt(_0x4098b7(0xd3))/0x8+parseInt(_0x4098b7(0xda))/0x9+-parseInt(_0x4098b7(0x101))/0xa;if(_0x26061d===_0x3cc4a3)break;else _0x32c111['push'](_0x32c111['shift']());}catch(_0xbb03e3){_0x32c111['push'](_0x32c111['shift']());}}}(a190_0x2776,0xddcd8));function a190_0xcb56(_0x29548b,_0xd3b09e){_0x29548b=_0x29548b-0xc6;const _0x27763b=a190_0x2776();let _0xcb5616=_0x27763b[_0x29548b];return _0xcb5616;}import a190_0x131ff2 from'chalk';import{buildCompareRows,doCreateMenus,fetchMenuData}from'../../commands/menu/shared/logic.js';import{renderCompareTable,renderSyncSummary}from'../../commands/menu/shared/compare-table.js';import{selectPages,askJsUrl,askCssUrl,askConfirm,startSpinner,stopSpinner,isInteractive,requireInteractive}from'../../commands/menu/shared/inquirer.js';import{CliErrors}from'../../errors.js';import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';import{parseMenuSyncParams,resolvePage,runMenuSyncCore}from'../../commands/menu/shared/sync-core.js';import{getLocalPages}from'../../commands/menu/shared/local-pages.js';function a190_0x2776(){const _0x15628b=['split','POST','Exact\x20comma-separated\x20local\x20page\x20paths\x20to\x20sync','JSON:\x20{\x22appName\x22:\x22store-app\x22,\x22parentId\x22:42,\x22visible\x22:false};\x20jsUrl\x20and\x20cssUrl\x20remain\x20available\x20for\x20individual\x20menu\x20resources.','appCode','yellow','menu','\x20menu(s)\x20created','message','\x20page(s)','rawFlags','Preview\x20with\x20--dry-run,\x20then\x20reuse\x20the\x20same\x20--paths\x20and\x20--params\x20with\x20--yes.','yes','validation','trim','8dWAvtr','gray','string','686TXZYaY','No\x20local\x20microfrontend\x20menus\x20would\x20be\x20created.','\x20local\x20microfrontend\x20menu(s).','length','\x20\x20✓\x20Selected:\x20','str','flag','\x20created.','30209970pXujid','sync','boolean','cookie','paths','Register\x20local\x20pages\x20as\x20platform\x20menus','selectedAppName','Fetching\x20online\x20menu\x20list...','onlineMenuList','map','\x20\x20!\x20No\x20local\x20pages\x20found,\x20please\x20create\x20pages\x20first','Failed\x20to\x20fetch\x20online\x20menu\x20list','Menu\x20creation\x20failed','\x20created,\x20','\x20\x20Cancelled.','4953138gkuWsS','appcode','1277520vacEVC','cyan','Creating\x20','targetPages','write','3569648XCbfSl','menu\x20sync\x20--paths\x20requires\x20--yes\x20for\x20execution.','Confirm\x20non-interactive\x20sync;\x20without\x20--paths,\x20create\x20all\x20missing\x20local\x20pages','Menu\x20sync\x20completed:\x20','/smartapi/menu/create','onlinePaths','✓\x20Menu\x20sync\x20completed:\x20','10245501RorpAQ','Online\x20menu\x20list\x20fetched','\x20\x20Continue\x20with\x20creation?','41273gJDtas','76mElSBx','32382eAEEfJ','skipped','\x20\x20Create\x20','jsUrl','Created\x20','created','params','appName'];a190_0x2776=function(){return _0x15628b;};return a190_0x2776();}import{isInProject}from'../../context.js';import{assertSharedResourcesConfigured}from'../../commands/menu/shared/subapp-assets.js';export const menuSync={'service':a190_0x5b154a(0xed),'command':a190_0x5b154a(0x102),'description':a190_0x5b154a(0x106),'risk':a190_0x5b154a(0xd2),'flags':[{'name':a190_0x5b154a(0xe5),'type':'string','description':'Prefer\x20appName\x20for\x20shared\x20subapp\x20resources\x20and\x20parentId\x20for\x20planned\x20groups.\x20'+a190_0x5b154a(0xea)},{'name':a190_0x5b154a(0x105),'type':a190_0x5b154a(0xf8),'description':a190_0x5b154a(0xe9)},{'name':a190_0x5b154a(0xf3),'type':a190_0x5b154a(0x103),'description':a190_0x5b154a(0xd5)}],async 'dryRun'(_0x569ad8){const _0x529ee0=a190_0x5b154a;ensureRunnableContext(_0x569ad8['rawFlags'],_0x569ad8[_0x529ee0(0x107)]);const _0x3f3d99=await runMenuSyncCore(_0x569ad8[_0x529ee0(0xeb)],_0x569ad8[_0x529ee0(0x104)],parsePaths(_0x569ad8[_0x529ee0(0xfe)](_0x529ee0(0x105))),_0x569ad8[_0x529ee0(0xfe)](_0x529ee0(0xe5)),{'dryRun':!![]});return{'method':_0x529ee0(0xe8),'url':_0x529ee0(0xd7),'body':_0x3f3d99,'description':_0x3f3d99[_0x529ee0(0xe0)]?_0x529ee0(0xfa):'Would\x20create\x20'+_0x3f3d99[_0x529ee0(0xd1)]['length']+_0x529ee0(0xfb)};},async 'execute'(_0x14a549){const _0x2d69f7=a190_0x5b154a;ensureRunnableContext(_0x14a549[_0x2d69f7(0xf1)],_0x14a549[_0x2d69f7(0x107)]);const _0x17610f=_0x14a549[_0x2d69f7(0xff)](_0x2d69f7(0xf3)),_0x1076cd=_0x14a549[_0x2d69f7(0xfe)]('params'),_0x16d0ce=parsePaths(_0x14a549[_0x2d69f7(0xfe)](_0x2d69f7(0x105))),_0x101a1a=parseMenuSyncParams(_0x1076cd);if(_0x17610f){const _0x15761f=await runMenuSyncCore(_0x14a549[_0x2d69f7(0xeb)],_0x14a549['cookie'],_0x16d0ce,_0x1076cd);if(_0x15761f[_0x2d69f7(0xe0)]){const _0x397293=getLocalPages();_0x397293[_0x2d69f7(0xfc)]===0x0?writeCliSideChannelLine('!\x20No\x20local\x20pages\x20found\x20in\x20src/pages'):writeCliSideChannelLine('✓\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform');}else writeCliSideChannelLine(_0x2d69f7(0xd9)+_0x15761f[_0x2d69f7(0xe4)]+_0x2d69f7(0xee));return{'ok':!![],'data':_0x15761f,'message':_0x15761f[_0x2d69f7(0xe0)]?'Menu\x20sync\x20skipped':_0x2d69f7(0xd6)+_0x15761f[_0x2d69f7(0xe4)]+_0x2d69f7(0x100)};}if(_0x16d0ce[_0x2d69f7(0xfc)]>0x0)throw CliErrors[_0x2d69f7(0xf4)](_0x2d69f7(0xd4),_0x2d69f7(0xf2));if(!isInteractive()&&_0x1076cd)throw CliErrors[_0x2d69f7(0xf4)]('Non-interactive\x20menu\x20sync\x20requires\x20--yes.',_0x2d69f7(0xf2));requireInteractive(),writeCliSideChannelLine('Tip:\x20For\x20frontend\x20subapps,\x20prefer\x20Agent-planned\x20menu\x20groups\x20and\x20shared\x20resources.\x20This\x20manual\x20sync\x20workflow\x20remains\x20available\x20as\x20a\x20fallback.');const _0xe3a3ef=startSpinner(_0x2d69f7(0x108));let _0xfd3a2e,_0x22cc9f,_0x1daadb;try{const _0x45ffd6=await fetchMenuData(_0x14a549[_0x2d69f7(0xeb)],_0x14a549[_0x2d69f7(0x104)]);_0xfd3a2e=_0x45ffd6['localPages'],_0x22cc9f=_0x45ffd6[_0x2d69f7(0xd8)],_0x1daadb=_0x45ffd6[_0x2d69f7(0x109)],stopSpinner(_0xe3a3ef,_0x2d69f7(0xdb),!![]);}catch(_0x17b2a3){stopSpinner(_0xe3a3ef,_0x2d69f7(0xc8),![]);throw CliErrors['validation'](_0x17b2a3 instanceof Error?_0x17b2a3[_0x2d69f7(0xef)]:_0x2d69f7(0xc8));}if(_0xfd3a2e[_0x2d69f7(0xfc)]===0x0)return writeCliSideChannelLine(a190_0x131ff2[_0x2d69f7(0xec)](_0x2d69f7(0xc7))),{'ok':!![]};const _0x579925=buildCompareRows(_0xfd3a2e,_0x22cc9f);writeCliSideChannelLine(renderCompareTable(_0x579925)),writeCliSideChannelLine('');const _0x351c9a=await selectPages(_0xfd3a2e,_0x22cc9f);writeCliSideChannelLine(''),writeCliSideChannelLine(a190_0x131ff2[_0x2d69f7(0xcf)](_0x2d69f7(0xfd)+_0x351c9a[_0x2d69f7(0xfc)]+_0x2d69f7(0xf0)));const _0x5df45d=_0x101a1a[_0x2d69f7(0xe2)]&&_0x101a1a['cssUrl'];if(!_0x5df45d){writeCliSideChannelLine(renderSyncSummary(_0x351c9a,_0x22cc9f['size']>0x0));const _0x52fee3=await askConfirm(_0x2d69f7(0xdc));if(!_0x52fee3)return writeCliSideChannelLine(a190_0x131ff2[_0x2d69f7(0xf7)](_0x2d69f7(0xcb))),{'ok':!![]};}let _0x1028f8=_0x101a1a['jsUrl'],_0x5d19da=_0x101a1a['cssUrl'];!_0x1028f8&&!_0x101a1a[_0x2d69f7(0xe6)]&&(_0x1028f8=await askJsUrl());!_0x5d19da&&!_0x101a1a[_0x2d69f7(0xe6)]&&(_0x5d19da=await askCssUrl());const _0x854850=await askConfirm(_0x101a1a['appName']?_0x2d69f7(0xe1)+_0x351c9a[_0x2d69f7(0xfc)]+'\x20menu(s)\x20bound\x20to\x20'+_0x101a1a['appName']+'?':'\x20\x20Create\x20'+_0x351c9a[_0x2d69f7(0xfc)]+'\x20menu(s)\x20with\x20JS:\x20'+_0x1028f8+'\x20and\x20CSS:\x20'+_0x5d19da+'?');if(!_0x854850)return writeCliSideChannelLine(a190_0x131ff2[_0x2d69f7(0xf7)](_0x2d69f7(0xcb))),{'ok':!![]};const _0x702209=[_0x1028f8,_0x5d19da]['filter'](_0x59c1c4=>Boolean(_0x59c1c4));_0x101a1a[_0x2d69f7(0xe6)]&&_0x702209[_0x2d69f7(0xfc)]===0x0&&await assertSharedResourcesConfigured(_0x14a549[_0x2d69f7(0xeb)],_0x14a549[_0x2d69f7(0x104)],_0x101a1a[_0x2d69f7(0xe6)]);const _0xbe85de=startSpinner(_0x2d69f7(0xd0)+_0x351c9a['length']+'\x20menu(s)...');try{const _0x342a75=_0x351c9a[_0x2d69f7(0xc6)](_0x3b6fe9=>resolvePage(_0x3b6fe9,_0x101a1a,_0x1daadb)),_0x53304d=await doCreateMenus(_0x14a549[_0x2d69f7(0xeb)],_0x14a549[_0x2d69f7(0x104)],_0x342a75,_0x702209,_0x101a1a[_0x2d69f7(0xe6)]?{'appName':_0x101a1a['appName']}:undefined);return stopSpinner(_0xbe85de,_0x2d69f7(0xe3)+_0x53304d[_0x2d69f7(0xe4)]+'\x20menu(s)',!![]),{'ok':!![],'data':_0x53304d,'message':_0x2d69f7(0xd6)+_0x53304d[_0x2d69f7(0xe4)]+_0x2d69f7(0xca)+_0x53304d['failed']+'\x20failed.'};}catch(_0x1ae36e){stopSpinner(_0xbe85de,_0x2d69f7(0xc9),![]);throw CliErrors[_0x2d69f7(0xf4)](_0x1ae36e instanceof Error?_0x1ae36e['message']:'Menu\x20creation\x20failed');}}};function ensureRunnableContext(_0xb34f39,_0x5d8f9f){const _0x1b02c9=a190_0x5b154a,_0x5be0ed=_0xb34f39['appcode']?String(_0xb34f39[_0x1b02c9(0xcd)])[_0x1b02c9(0xf5)]():'';if(!isInProject()&&!_0x5d8f9f&&!_0x5be0ed)throw CliErrors[_0x1b02c9(0xf4)]('menu\x20sync\x20requires\x20a\x20project\x20context\x20or\x20explicit\x20--appcode.\x20'+'Run\x20inside\x20a\x20directory\x20with\x20.rabetbase.json,\x20or\x20pass\x20--appcode\x20<code>.');}function parsePaths(_0x15125b){const _0x423250=a190_0x5b154a;return[...new Set(_0x15125b[_0x423250(0xe7)](',')['map'](_0x1b87c4=>_0x1b87c4['trim']())['filter'](Boolean))];}
@@ -1 +1 @@
1
- const a191_0x10de07=a191_0x5d3c;(function(_0x1c4f2e,_0x11f921){const _0x4a1440=a191_0x5d3c,_0xe22af6=_0x1c4f2e();while(!![]){try{const _0x38d4a9=-parseInt(_0x4a1440(0x146))/0x1*(parseInt(_0x4a1440(0x141))/0x2)+parseInt(_0x4a1440(0x15f))/0x3+-parseInt(_0x4a1440(0x117))/0x4+-parseInt(_0x4a1440(0x168))/0x5+parseInt(_0x4a1440(0x12e))/0x6*(-parseInt(_0x4a1440(0x17e))/0x7)+-parseInt(_0x4a1440(0x160))/0x8+parseInt(_0x4a1440(0x10e))/0x9*(parseInt(_0x4a1440(0x137))/0xa);if(_0x38d4a9===_0x11f921)break;else _0xe22af6['push'](_0xe22af6['shift']());}catch(_0x50a46e){_0xe22af6['push'](_0xe22af6['shift']());}}}(a191_0x5a35,0xa5262));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{fetchMenuSnapshot}from'../../commands/menu/shared/facts.js';function a191_0x5a35(){const _0x37135c=['9399456gbaLcC','isSafeInteger','visibility-update','Menu\x20path\x20selector\x20not\x20found:\x20','menu_verification_failed','Menu\x20','\x20skipped,\x20','get','5042525uOaBSi','update-recovery','Menu\x20visibility\x20update\x20completed:\x20','boolean','Selected\x20','warnings','cookie','expectedCount','Response\x20was\x20lost\x20and\x20menu\x20','recovered','paths','Requested\x20menu\x20visibility','set','\x20updated,\x20','Run\x20the\x20command\x20with\x20--dry-run\x20again\x20and\x20update\x20--expected-count.','expectVisible','validation','\x20visibility\x20update\x20could\x20not\x20be\x20verified','update-menu-visibility','message','requestedVisible','expect-visible','224eBxXFb','byId','\x20menu(s);\x20skipped\x20','The\x20update\x20may\x20have\x20taken\x20effect;\x20inspect\x20the\x20latest\x20menu\x20facts\x20before\x20retrying.','join','update','menu\x20list','depth','targets','/smartapi/menu/update','flagMissing','rawFlags','menu','values','appCode','45XUiLzD','menu_selector_not_found','menu-ids','verify\x20menu\x20visibility\x20update','Use\x20--menu-ids\x20with\x20one\x20or\x20more\x20of:\x20','code','\x20must\x20be\x20true\x20or\x20false.','Response\x20was\x20lost\x20for\x20menu\x20','Updated\x20visibility\x20for\x20','2560996QrwHdI','Final\x20menu\x20visibility\x20readback\x20failed.','has','menus','type','menuIds','hash','string','length','\x20visible\x20did\x20not\x20match\x20the\x20requested\x20state.','failed','\x20menu(s),\x20expected\x20','--menu-ids\x20must\x20contain\x20positive\x20safe\x20integers.','false','true','childrenIds','update\x20visibility\x20for','Abort\x20unless\x20the\x20exact\x20number\x20of\x20selected\x20menus\x20matches','path','parentId','rabetbase\x20menu\x20list\x20--format\x20compress','update\x20menu\x20visibility','split','150186pKruRM','push','childrenCount','beforeById','num','Menu\x20visibility\x20update\x20could\x20not\x20be\x20verified\x20for\x20id(s):\x20','url','menu_expected_count_mismatch','before','9121550mhUoET','plannedActions','pageId','\x20changed\x20unexpectedly.','sort','menu_selector_ambiguous','Visibility\x20update\x20requests\x20completed\x20but\x20readback\x20could\x20not\x20confirm\x20the\x20requested\x20state','Menu\x20path\x20selector\x20matched\x20multiple\x20menus:\x20','str','\x20failed.','11156AEPfgC','number','stringify','menu_permission_denied','POST','149GnQxwJ','Run\x20`rabetbase\x20menu\x20list\x20--format\x20compress`\x20and\x20use\x20an\x20exact\x20current\x20path.','plan','updated','resources','Menu\x20id\x20selector(s)\x20not\x20found:\x20','pageType','Abort\x20unless\x20every\x20selected\x20menu\x20has\x20this\x20visibility','menu\x20visibility-update\x20requires\x20--menu-ids\x20or\x20--paths.','resourcesValid','menu_state_drift','expected-count','datasetCode','filter','modelType','verification','Would\x20update\x20visibility\x20for\x20','label','trim','\x20was\x20not\x20found\x20during\x20visibility\x20verification.','isArray','datasetId','visible','map','Exact\x20comma-separated\x20menu\x20IDs\x20to\x20update','1714425hoDGWr'];a191_0x5a35=function(){return _0x37135c;};return a191_0x5a35();}import{asVerificationError,assertVerified,describeMenuErrorCause,fetchMutationSnapshot,hasFlag,isMenuResponseLoss,mapMenuApiError,menuDryRunResult,menuError,menuFailure,mutationResult,recheckMutationSnapshot}from'../../commands/menu/shared/mutations.js';import{updateMenuEntity}from'../../commands/menu/shared/service.js';import{CliErrors}from'../../errors.js';const BACKEND=[{'method':a191_0x10de07(0x145),'path':'/smartapi/menu/update'}];export const menuVisibilityUpdate={'service':a191_0x10de07(0x10b),'command':a191_0x10de07(0x162),'description':'Set\x20exact\x20menus\x20visible\x20or\x20hidden\x20without\x20changing\x20their\x20routes\x20or\x20resources','risk':'write','structuredErrors':!![],'flags':[{'name':a191_0x10de07(0x110),'type':a191_0x10de07(0x11e),'description':a191_0x10de07(0x15e)},{'name':'paths','type':a191_0x10de07(0x11e),'description':'Exact\x20comma-separated\x20menu\x20paths\x20to\x20update'},{'name':'visible','type':a191_0x10de07(0x16b),'required':!![],'description':a191_0x10de07(0x173)},{'name':a191_0x10de07(0x17d),'type':'boolean','description':a191_0x10de07(0x14d)},{'name':a191_0x10de07(0x151),'type':a191_0x10de07(0x142),'description':a191_0x10de07(0x128)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x2fe318){parseInput(_0x2fe318);},async 'dryRun'(_0x4a2580){const _0x1aec92=a191_0x10de07,_0x136f2a=await buildPlan(_0x4a2580,!![]),_0x523349=_0x136f2a[_0x1aec92(0x148)]['plannedActions']?.[_0x1aec92(0x11f)]??0x0,_0x48c153=_0x136f2a[_0x1aec92(0x148)][_0x1aec92(0x107)][_0x1aec92(0x11f)]-_0x523349;return menuDryRunResult(_0x136f2a[_0x1aec92(0x148)],{'method':_0x1aec92(0x145),'url':_0x1aec92(0x108),'body':{'updates':_0x136f2a[_0x1aec92(0x148)][_0x1aec92(0x138)]?.[_0x1aec92(0x15d)](_0x5a5121=>_0x5a5121['body'])??[]},'description':_0x1aec92(0x156)+_0x523349+'\x20menu(s);\x20skip\x20'+_0x48c153+'\x20unchanged\x20menu(s).'});},async 'execute'(_0x5aa727){const _0x37a0b9=a191_0x10de07,_0x35a03c=await buildPlan(_0x5aa727,![]);await recheckMutationSnapshot(_0x5aa727,_0x35a03c[_0x37a0b9(0x148)],'update\x20menu\x20visibility');const _0x555c48=[],_0x5d573c=[],_0x223be9=[];for(const _0x463a31 of _0x35a03c[_0x37a0b9(0x148)][_0x37a0b9(0x107)]){if(_0x463a31[_0x37a0b9(0x136)]['visible']===_0x35a03c[_0x37a0b9(0x148)][_0x37a0b9(0x17c)]){_0x555c48[_0x37a0b9(0x12f)]({'id':_0x463a31['id'],'updated':![],'skipped':!![]});continue;}try{await updateMenuEntity(_0x5aa727[_0x37a0b9(0x10d)],_0x5aa727[_0x37a0b9(0x16e)],{'id':_0x463a31['id'],'visible':_0x35a03c[_0x37a0b9(0x148)]['requestedVisible']}),_0x555c48[_0x37a0b9(0x12f)]({'id':_0x463a31['id'],'updated':!![],'skipped':![]});}catch(_0x6ea2b1){const _0x541f8e=mapMenuApiError(_0x6ea2b1,_0x37a0b9(0x127),_0x463a31['id']);if(isMenuResponseLoss(_0x6ea2b1)&&_0x541f8e[_0x37a0b9(0x113)]!==_0x37a0b9(0x144)){_0x223be9[_0x37a0b9(0x12f)](_0x463a31['id']);continue;}_0x5d573c[_0x37a0b9(0x12f)]({'id':_0x463a31['id'],'stage':_0x37a0b9(0x104),'code':_0x541f8e['code'],'message':_0x541f8e['message']});}}let _0x49fdc0;try{_0x49fdc0=await fetchMenuSnapshot(_0x5aa727[_0x37a0b9(0x10d)],_0x5aa727[_0x37a0b9(0x16e)]);}catch(_0x3b79eb){const _0x25c599=describeMenuErrorCause(_0x3b79eb,_0x37a0b9(0x111)),_0x9a8ce9=_0x223be9[_0x37a0b9(0x15d)](_0x563bb1=>({'id':_0x563bb1,'stage':_0x37a0b9(0x169),'code':_0x37a0b9(0x164),'message':_0x37a0b9(0x115)+_0x563bb1+'\x20and\x20final\x20state\x20could\x20not\x20be\x20read.','requestedStateConfirmed':![],'recovered':![]})),_0x190620={'stage':'verification','code':_0x37a0b9(0x164),'message':_0x37a0b9(0x118),'targetIds':_0x35a03c['plan']['targets'][_0x37a0b9(0x15d)](_0x52eb1f=>_0x52eb1f['id']),'requestedStateConfirmed':![],..._0x25c599};throw menuFailure(asVerificationError(_0x3b79eb,_0x37a0b9(0x13d)),_0x35a03c[_0x37a0b9(0x148)],{'stage':_0x37a0b9(0x155),'succeeded':_0x555c48,'failedRecords':[..._0x5d573c,..._0x9a8ce9,_0x190620],'warnings':[_0x37a0b9(0x181)],'verification':{'status':_0x37a0b9(0x121),'recoveredCount':0x0,'lookupCommand':_0x37a0b9(0x12b)}});}const _0x372524=[];for(const _0x43d25a of _0x555c48){const _0x7bd1c4=Number(_0x43d25a['id']),_0x1315fb=_0x35a03c['beforeById']['get'](_0x7bd1c4),_0x27c999=_0x49fdc0[_0x37a0b9(0x17f)][_0x37a0b9(0x167)](_0x7bd1c4);try{verifyVisibilityUpdate(_0x1315fb,_0x27c999,_0x35a03c['plan'][_0x37a0b9(0x17c)]);}catch(_0x4497b7){const _0x29b51f=asVerificationError(_0x4497b7,_0x37a0b9(0x165)+_0x7bd1c4+_0x37a0b9(0x179));_0x372524[_0x37a0b9(0x12f)]({'id':_0x7bd1c4,'stage':_0x37a0b9(0x155),'code':_0x29b51f['code'],'message':_0x29b51f[_0x37a0b9(0x17b)],'requestedStateConfirmed':![]});}}for(const _0x48c050 of _0x223be9){const _0x252922=_0x35a03c[_0x37a0b9(0x131)][_0x37a0b9(0x167)](_0x48c050),_0x59bae0=_0x49fdc0[_0x37a0b9(0x17f)][_0x37a0b9(0x167)](_0x48c050);try{verifyVisibilityUpdate(_0x252922,_0x59bae0,_0x35a03c[_0x37a0b9(0x148)]['requestedVisible']),_0x555c48[_0x37a0b9(0x12f)]({'id':_0x48c050,'updated':!![],'skipped':![],'recovered':!![]});}catch(_0x4699f7){const _0x169f0c=asVerificationError(_0x4699f7,_0x37a0b9(0x170)+_0x48c050+'\x20visibility\x20could\x20not\x20be\x20verified\x20safely');_0x372524[_0x37a0b9(0x12f)]({'id':_0x48c050,'stage':_0x37a0b9(0x169),'code':_0x169f0c['code'],'message':_0x169f0c[_0x37a0b9(0x17b)],'requestedStateConfirmed':![],'recovered':![]});}}if(_0x372524['length']>0x0){const _0x41f3b2=_0x372524[_0x37a0b9(0x15d)](_0x405ea8=>Number(_0x405ea8['id'])),_0x3bbd4d=_0x555c48['filter'](_0x4f2448=>_0x4f2448[_0x37a0b9(0x171)]===!![])[_0x37a0b9(0x11f)],_0x162f9d=menuError(_0x37a0b9(0x164),_0x37a0b9(0x133)+_0x41f3b2['join'](',\x20')+'.','Inspect\x20current\x20menu\x20facts\x20before\x20retrying\x20any\x20target.');throw menuFailure(_0x162f9d,_0x35a03c[_0x37a0b9(0x148)],{'stage':_0x37a0b9(0x155),'succeeded':_0x555c48,'failedRecords':[..._0x5d573c,..._0x372524],'warnings':['One\x20or\x20more\x20updates\x20may\x20have\x20changed\x20fields\x20outside\x20visibility;\x20inspect\x20current\x20menu\x20facts\x20before\x20retrying.'],'verification':{'status':_0x37a0b9(0x121),..._0x41f3b2[_0x37a0b9(0x11f)]===0x1?{'targetId':_0x41f3b2[0x0]}:{'targetIds':_0x41f3b2},'recoveredCount':_0x3bbd4d,'lookupCommand':_0x37a0b9(0x12b)}});}const _0x4e5b0f=_0x555c48[_0x37a0b9(0x153)](_0x4b4e76=>_0x4b4e76[_0x37a0b9(0x149)]===!![])[_0x37a0b9(0x11f)],_0x2a5a9e=_0x555c48[_0x37a0b9(0x11f)]-_0x4e5b0f,_0x491b8d={..._0x35a03c['plan'],'succeeded':_0x555c48,'failed':_0x5d573c,'warnings':_0x5d573c[_0x37a0b9(0x11f)]>0x0?[..._0x35a03c[_0x37a0b9(0x148)][_0x37a0b9(0x16d)],'Failed\x20update\x20requests\x20were\x20not\x20retried;\x20inspect\x20current\x20menu\x20facts\x20before\x20retrying.']:_0x35a03c['plan'][_0x37a0b9(0x16d)],'verification':{'checkedBy':_0x37a0b9(0x105),'snapshotHash':_0x49fdc0[_0x37a0b9(0x11d)],'matchesRequestedState':_0x5d573c[_0x37a0b9(0x11f)]===0x0,'recoveredCount':_0x223be9[_0x37a0b9(0x11f)]}};return{'ok':_0x5d573c[_0x37a0b9(0x11f)]===0x0,'data':_0x491b8d,'message':_0x5d573c[_0x37a0b9(0x11f)]===0x0?_0x37a0b9(0x116)+_0x4e5b0f+_0x37a0b9(0x180)+_0x2a5a9e+'\x20unchanged\x20menu(s).':_0x37a0b9(0x16a)+_0x4e5b0f+_0x37a0b9(0x175)+_0x2a5a9e+_0x37a0b9(0x166)+_0x5d573c[_0x37a0b9(0x11f)]+_0x37a0b9(0x140)};}};function parseInput(_0x39ec8f){const _0x339647=a191_0x10de07,_0x2d39d9=parseMenuIds(_0x39ec8f[_0x339647(0x13f)](_0x339647(0x110))),_0x557bf4=parseCsv(_0x39ec8f[_0x339647(0x13f)](_0x339647(0x172)));if(_0x2d39d9['length']===0x0&&_0x557bf4[_0x339647(0x11f)]===0x0)throw CliErrors[_0x339647(0x178)](_0x339647(0x14e));const _0x9fa5f0=parseBooleanFlag(_0x39ec8f,_0x339647(0x15c),!![]),_0x1c5709=parseBooleanFlag(_0x39ec8f,_0x339647(0x17d),![]);let _0x3a48d8;if(hasFlag(_0x39ec8f,_0x339647(0x151))){_0x3a48d8=_0x39ec8f[_0x339647(0x132)](_0x339647(0x151));if(!Number[_0x339647(0x161)](_0x3a48d8)||_0x3a48d8<0x0)throw CliErrors[_0x339647(0x178)]('--expected-count\x20must\x20be\x20a\x20non-negative\x20integer.');}return{'menuIds':_0x2d39d9,'paths':_0x557bf4,'visible':_0x9fa5f0,'expectVisible':_0x1c5709,'expectedCount':_0x3a48d8};}async function buildPlan(_0xeba4d9,_0x1ed861){const _0x549c91=a191_0x10de07,_0x268216=parseInput(_0xeba4d9),_0x4a23f4=await fetchMutationSnapshot(_0xeba4d9,_0x549c91(0x12c)),_0x3b7c67=selectTargets(_0x4a23f4[_0x549c91(0x11a)],_0x268216['menuIds'],_0x268216[_0x549c91(0x172)]);if(_0x268216['expectedCount']!==undefined&&_0x3b7c67[_0x549c91(0x11f)]!==_0x268216['expectedCount'])throw menuError(_0x549c91(0x135),_0x549c91(0x16c)+_0x3b7c67[_0x549c91(0x11f)]+_0x549c91(0x122)+_0x268216[_0x549c91(0x16f)]+'.',_0x549c91(0x176));if(_0x268216[_0x549c91(0x177)]!==undefined){const _0x56d3e8=_0x3b7c67[_0x549c91(0x153)](_0x4dbb8e=>_0x4dbb8e[_0x549c91(0x15c)]!==_0x268216[_0x549c91(0x177)]);if(_0x56d3e8[_0x549c91(0x11f)]>0x0)throw menuError(_0x549c91(0x150),'Selected\x20menu\x20visibility\x20changed\x20for\x20id(s):\x20'+_0x56d3e8['map'](_0x3d0f6f=>_0x3d0f6f['id'])[_0x549c91(0x103)](',\x20')+'.','Run\x20the\x20command\x20with\x20--dry-run\x20again\x20and\x20update\x20--expect-visible.');}const _0x30907b=_0x3b7c67[_0x549c91(0x15d)](_0x121bda=>({'id':_0x121bda['id'],'label':_0x121bda['label'],'path':_0x121bda[_0x549c91(0x129)],'before':{'visible':_0x121bda['visible']},'after':{'visible':_0x268216[_0x549c91(0x15c)]}})),_0x2be6d4=_0x30907b[_0x549c91(0x153)](_0x13938d=>_0x13938d[_0x549c91(0x136)][_0x549c91(0x15c)]!==_0x268216[_0x549c91(0x15c)])[_0x549c91(0x15d)](_0x169015=>({'stage':_0x549c91(0x17a),'method':_0x549c91(0x145),'path':'/smartapi/menu/update','body':{'appCode':_0xeba4d9['appCode'],'id':_0x169015['id'],'visible':_0x268216[_0x549c91(0x15c)]}})),_0x4d41e2=mutationResult({'operation':_0x549c91(0x162),'selector':{'menuIds':_0x268216[_0x549c91(0x11c)],'paths':_0x268216['paths']},'before':{'menus':_0x3b7c67['map'](_0x55d202=>({'id':_0x55d202['id'],'path':_0x55d202['path'],'visible':_0x55d202['visible']}))},'after':{'menus':_0x3b7c67[_0x549c91(0x15d)](_0x5e1c5a=>({'id':_0x5e1c5a['id'],'path':_0x5e1c5a[_0x549c91(0x129)],'visible':_0x268216[_0x549c91(0x15c)]}))},'dryRun':_0x1ed861,'backend':[...BACKEND],'plannedActions':_0x2be6d4,'snapshotHash':_0x4a23f4[_0x549c91(0x11d)],'warnings':_0x2be6d4[_0x549c91(0x11f)]===0x0?['Every\x20selected\x20menu\x20already\x20has\x20the\x20requested\x20visibility;\x20no\x20write\x20is\x20needed.']:[]});return{'plan':{..._0x4d41e2,'requestedVisible':_0x268216[_0x549c91(0x15c)],'targets':_0x30907b},'beforeById':new Map(_0x3b7c67[_0x549c91(0x15d)](_0x6ae16=>[_0x6ae16['id'],_0x6ae16]))};}function a191_0x5d3c(_0x1f7cb6,_0x5a6efa){_0x1f7cb6=_0x1f7cb6-0x103;const _0x5a35aa=a191_0x5a35();let _0x5d3cef=_0x5a35aa[_0x1f7cb6];return _0x5d3cef;}function selectTargets(_0x47b866,_0x380f62,_0x2db266){const _0x590009=a191_0x10de07,_0xed68cb=new Map(_0x47b866['map'](_0x368a5d=>[_0x368a5d['id'],_0x368a5d])),_0x2d4856=new Map(),_0x2b98bf=_0x380f62[_0x590009(0x153)](_0x4600af=>!_0xed68cb[_0x590009(0x119)](_0x4600af));if(_0x2b98bf[_0x590009(0x11f)]>0x0)throw menuError(_0x590009(0x10f),_0x590009(0x14b)+_0x2b98bf[_0x590009(0x103)](',\x20')+'.','Run\x20`rabetbase\x20menu\x20list\x20--format\x20compress`\x20and\x20use\x20exact\x20current\x20ids.');for(const _0x1651ae of _0x380f62){_0x2d4856[_0x590009(0x174)](_0x1651ae,_0xed68cb[_0x590009(0x167)](_0x1651ae));}for(const _0x6459a0 of _0x2db266){const _0x20c294=_0x47b866[_0x590009(0x153)](_0x241cd6=>_0x241cd6[_0x590009(0x129)]===_0x6459a0);if(_0x20c294['length']===0x0)throw menuError(_0x590009(0x10f),_0x590009(0x163)+JSON[_0x590009(0x143)](_0x6459a0)+'.',_0x590009(0x147));if(_0x20c294['length']>0x1)throw menuError(_0x590009(0x13c),_0x590009(0x13e)+JSON[_0x590009(0x143)](_0x6459a0)+'.',_0x590009(0x112)+_0x20c294[_0x590009(0x15d)](_0x1385d2=>_0x1385d2['id'])[_0x590009(0x103)](',\x20')+'.');const _0x1f16b7=_0x20c294[0x0];_0x2d4856['set'](_0x1f16b7['id'],_0x1f16b7);}return[..._0x2d4856[_0x590009(0x10c)]()];}function parseMenuIds(_0x52363a){const _0x4e850e=a191_0x10de07,_0x37c182=parseCsv(_0x52363a),_0x2282af=_0x37c182[_0x4e850e(0x15d)](Number);if(_0x2282af['some'](_0x1c81d1=>!Number[_0x4e850e(0x161)](_0x1c81d1)||_0x1c81d1<=0x0))throw CliErrors[_0x4e850e(0x178)](_0x4e850e(0x123));return[...new Set(_0x2282af)];}function parseCsv(_0x2bfc1c){const _0xdd7f93=a191_0x10de07;return[...new Set(_0x2bfc1c[_0xdd7f93(0x12d)](',')[_0xdd7f93(0x15d)](_0x594898=>_0x594898[_0xdd7f93(0x158)]())[_0xdd7f93(0x153)](Boolean))];}function parseBooleanFlag(_0x24e803,_0x262690,_0x205537){const _0x4a7500=a191_0x10de07;if(!hasFlag(_0x24e803,_0x262690)){if(_0x205537)throw CliErrors[_0x4a7500(0x109)](_0x262690);return undefined;}const _0x16b050=_0x24e803[_0x4a7500(0x10a)][_0x262690];if(_0x16b050===!![]||_0x16b050===![])return _0x16b050;if(_0x16b050===_0x4a7500(0x125))return!![];if(_0x16b050===_0x4a7500(0x124))return![];throw CliErrors['validation']('--'+_0x262690+_0x4a7500(0x114));}function verifyVisibilityUpdate(_0x1bc08c,_0x220106,_0x119276){const _0x4c0793=a191_0x10de07;assertVerified(!!_0x220106,_0x4c0793(0x165)+_0x1bc08c['id']+_0x4c0793(0x159)),assertVerified(_0x220106[_0x4c0793(0x15c)]===_0x119276,_0x4c0793(0x165)+_0x1bc08c['id']+_0x4c0793(0x120));const _0x177a78=[['id',_0x220106['id'],_0x1bc08c['id']],[_0x4c0793(0x12a),_0x220106['parentId'],_0x1bc08c[_0x4c0793(0x12a)]],[_0x4c0793(0x106),_0x220106[_0x4c0793(0x106)],_0x1bc08c[_0x4c0793(0x106)]],[_0x4c0793(0x157),_0x220106[_0x4c0793(0x157)],_0x1bc08c[_0x4c0793(0x157)]],[_0x4c0793(0x129),_0x220106[_0x4c0793(0x129)],_0x1bc08c[_0x4c0793(0x129)]],[_0x4c0793(0x134),_0x220106[_0x4c0793(0x134)],_0x1bc08c[_0x4c0793(0x134)]],['type',_0x220106[_0x4c0793(0x11b)],_0x1bc08c[_0x4c0793(0x11b)]],['sort',_0x220106[_0x4c0793(0x13b)],_0x1bc08c[_0x4c0793(0x13b)]],[_0x4c0793(0x14a),_0x220106['resources'],_0x1bc08c[_0x4c0793(0x14a)]],['resourcesValid',_0x220106[_0x4c0793(0x14f)],_0x1bc08c[_0x4c0793(0x14f)]],[_0x4c0793(0x126),_0x220106['childrenIds'],_0x1bc08c[_0x4c0793(0x126)]],[_0x4c0793(0x130),_0x220106[_0x4c0793(0x130)],_0x1bc08c[_0x4c0793(0x130)]],[_0x4c0793(0x139),_0x220106['pageId'],_0x1bc08c[_0x4c0793(0x139)]],[_0x4c0793(0x14c),_0x220106[_0x4c0793(0x14c)],_0x1bc08c[_0x4c0793(0x14c)]],[_0x4c0793(0x154),_0x220106[_0x4c0793(0x154)],_0x1bc08c[_0x4c0793(0x154)]],[_0x4c0793(0x15b),_0x220106[_0x4c0793(0x15b)],_0x1bc08c[_0x4c0793(0x15b)]],[_0x4c0793(0x152),_0x220106[_0x4c0793(0x152)],_0x1bc08c['datasetCode']]];for(const [_0x242abe,_0x354dfa,_0x3e9edb]of _0x177a78){assertVerified(sameValue(_0x354dfa,_0x3e9edb),_0x4c0793(0x165)+_0x1bc08c['id']+'\x20'+_0x242abe+_0x4c0793(0x13a));}}function sameValue(_0x3bae96,_0x1cfdf5){const _0x12dc85=a191_0x10de07;if(Array[_0x12dc85(0x15a)](_0x3bae96)||Array[_0x12dc85(0x15a)](_0x1cfdf5))return JSON[_0x12dc85(0x143)](_0x3bae96)===JSON[_0x12dc85(0x143)](_0x1cfdf5);return _0x3bae96===_0x1cfdf5;}
1
+ const a191_0x190d35=a191_0x161a;(function(_0x531383,_0x33df41){const _0x238f17=a191_0x161a,_0x3bbd67=_0x531383();while(!![]){try{const _0x471982=parseInt(_0x238f17(0x129))/0x1+parseInt(_0x238f17(0x17b))/0x2*(-parseInt(_0x238f17(0x14d))/0x3)+-parseInt(_0x238f17(0x13f))/0x4*(-parseInt(_0x238f17(0x16a))/0x5)+parseInt(_0x238f17(0x128))/0x6*(parseInt(_0x238f17(0x14b))/0x7)+parseInt(_0x238f17(0x178))/0x8+parseInt(_0x238f17(0x143))/0x9*(-parseInt(_0x238f17(0x182))/0xa)+-parseInt(_0x238f17(0x16d))/0xb;if(_0x471982===_0x33df41)break;else _0x3bbd67['push'](_0x3bbd67['shift']());}catch(_0x58bd15){_0x3bbd67['push'](_0x3bbd67['shift']());}}}(a191_0x4114,0x3acca));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{fetchMenuSnapshot}from'../../commands/menu/shared/facts.js';import{asVerificationError,assertVerified,describeMenuErrorCause,fetchMutationSnapshot,hasFlag,isMenuResponseLoss,mapMenuApiError,menuDryRunResult,menuError,menuFailure,mutationResult,recheckMutationSnapshot}from'../../commands/menu/shared/mutations.js';function a191_0x4114(){const _0x5e0997=['childrenCount','label','length','expectedCount','menu_state_drift','\x20must\x20be\x20true\x20or\x20false.','rabetbase\x20menu\x20list\x20--format\x20compress','The\x20update\x20may\x20have\x20taken\x20effect;\x20inspect\x20the\x20latest\x20menu\x20facts\x20before\x20retrying.','menu-ids','validation','type','update-recovery','paths','Menu\x20path\x20selector\x20matched\x20multiple\x20menus:\x20','menu_expected_count_mismatch','Would\x20update\x20visibility\x20for\x20','push','expected-count','some','/smartapi/menu/update','updated','Every\x20selected\x20menu\x20already\x20has\x20the\x20requested\x20visibility;\x20no\x20write\x20is\x20needed.','url','\x20skipped,\x20','rawFlags','\x20visible\x20did\x20not\x20match\x20the\x20requested\x20state.','menu_selector_not_found','565140CgzLaZ','262185NgtYyQ','pageType','warnings','cookie','Menu\x20visibility\x20update\x20completed:\x20','byId','Menu\x20id\x20selector(s)\x20not\x20found:\x20','\x20visibility\x20could\x20not\x20be\x20verified\x20safely','Menu\x20path\x20selector\x20not\x20found:\x20','\x20unchanged\x20menu(s).','update\x20menu\x20visibility','depth','verify\x20menu\x20visibility\x20update','path','update-menu-visibility','Final\x20menu\x20visibility\x20readback\x20failed.','Response\x20was\x20lost\x20and\x20menu\x20','write','code','visible','update\x20visibility\x20for','\x20failed.','12voNrxm','stringify','before','expectVisible','1249137mrtdVu','verification','filter','targets','Selected\x20menu\x20visibility\x20changed\x20for\x20id(s):\x20','\x20changed\x20unexpectedly.','Run\x20the\x20command\x20with\x20--dry-run\x20again\x20and\x20update\x20--expected-count.','join','21McVeCi','Abort\x20unless\x20the\x20exact\x20number\x20of\x20selected\x20menus\x20matches','8097FJrUoE','Selected\x20','Run\x20`rabetbase\x20menu\x20list\x20--format\x20compress`\x20and\x20use\x20exact\x20current\x20ids.','\x20menu(s);\x20skipped\x20','isArray','parentId','menu_verification_failed','map','Set\x20exact\x20menus\x20visible\x20or\x20hidden\x20without\x20changing\x20their\x20routes\x20or\x20resources','has','Exact\x20comma-separated\x20menu\x20paths\x20to\x20update','sort','Run\x20`rabetbase\x20menu\x20list\x20--format\x20compress`\x20and\x20use\x20an\x20exact\x20current\x20path.','datasetCode','number','appCode','visibility-update','--menu-ids\x20must\x20contain\x20positive\x20safe\x20integers.','plannedActions','message','menuIds','datasetId','One\x20or\x20more\x20updates\x20may\x20have\x20changed\x20fields\x20outside\x20visibility;\x20inspect\x20current\x20menu\x20facts\x20before\x20retrying.','plan','Updated\x20visibility\x20for\x20','set','trim','menu','POST','335165iFeheo','Menu\x20','menu\x20list','4590872QNwtHH','boolean','failed','flagMissing','modelType','hash','Exact\x20comma-separated\x20menu\x20IDs\x20to\x20update','childrenIds','\x20was\x20not\x20found\x20during\x20visibility\x20verification.','get','str','3095624enaYVG','num','resources','146gFDgiL','\x20menu(s),\x20expected\x20','expect-visible','menus','Failed\x20update\x20requests\x20were\x20not\x20retried;\x20inspect\x20current\x20menu\x20facts\x20before\x20retrying.','Visibility\x20update\x20requests\x20completed\x20but\x20readback\x20could\x20not\x20confirm\x20the\x20requested\x20state','requestedVisible','20ZkpvSG','pageId','beforeById','resourcesValid'];a191_0x4114=function(){return _0x5e0997;};return a191_0x4114();}import{updateMenuEntity}from'../../commands/menu/shared/service.js';import{CliErrors}from'../../errors.js';const BACKEND=[{'method':a191_0x190d35(0x169),'path':'/smartapi/menu/update'}];export const menuVisibilityUpdate={'service':a191_0x190d35(0x168),'command':a191_0x190d35(0x15d),'description':a191_0x190d35(0x155),'risk':a191_0x190d35(0x13a),'structuredErrors':!![],'flags':[{'name':'menu-ids','type':'string','description':a191_0x190d35(0x173)},{'name':'paths','type':'string','description':a191_0x190d35(0x157)},{'name':a191_0x190d35(0x13c),'type':a191_0x190d35(0x16e),'required':!![],'description':'Requested\x20menu\x20visibility'},{'name':a191_0x190d35(0x17d),'type':a191_0x190d35(0x16e),'description':'Abort\x20unless\x20every\x20selected\x20menu\x20has\x20this\x20visibility'},{'name':'expected-count','type':a191_0x190d35(0x15b),'description':a191_0x190d35(0x14c)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x50071d){parseInput(_0x50071d);},async 'dryRun'(_0x2929cb){const _0x31a1f0=a191_0x190d35,_0x4c753b=await buildPlan(_0x2929cb,!![]),_0x473dc0=_0x4c753b[_0x31a1f0(0x164)][_0x31a1f0(0x15f)]?.[_0x31a1f0(0x188)]??0x0,_0x2d8566=_0x4c753b[_0x31a1f0(0x164)]['targets'][_0x31a1f0(0x188)]-_0x473dc0;return menuDryRunResult(_0x4c753b[_0x31a1f0(0x164)],{'method':_0x31a1f0(0x169),'url':_0x31a1f0(0x199),'body':{'updates':_0x4c753b['plan'][_0x31a1f0(0x15f)]?.['map'](_0x486f01=>_0x486f01['body'])??[]},'description':_0x31a1f0(0x195)+_0x473dc0+'\x20menu(s);\x20skip\x20'+_0x2d8566+_0x31a1f0(0x132)});},async 'execute'(_0x5a8c66){const _0x58a6dd=a191_0x190d35,_0x1fb75b=await buildPlan(_0x5a8c66,![]);await recheckMutationSnapshot(_0x5a8c66,_0x1fb75b['plan'],_0x58a6dd(0x133));const _0x4d748f=[],_0x1936e3=[],_0x5ad471=[];for(const _0x2e6f20 of _0x1fb75b[_0x58a6dd(0x164)][_0x58a6dd(0x146)]){if(_0x2e6f20[_0x58a6dd(0x141)][_0x58a6dd(0x13c)]===_0x1fb75b[_0x58a6dd(0x164)][_0x58a6dd(0x181)]){_0x4d748f[_0x58a6dd(0x196)]({'id':_0x2e6f20['id'],'updated':![],'skipped':!![]});continue;}try{await updateMenuEntity(_0x5a8c66[_0x58a6dd(0x15c)],_0x5a8c66['cookie'],{'id':_0x2e6f20['id'],'visible':_0x1fb75b[_0x58a6dd(0x164)]['requestedVisible']}),_0x4d748f['push']({'id':_0x2e6f20['id'],'updated':!![],'skipped':![]});}catch(_0x5991c0){const _0x5bf9cb=mapMenuApiError(_0x5991c0,_0x58a6dd(0x13d),_0x2e6f20['id']);if(isMenuResponseLoss(_0x5991c0)&&_0x5bf9cb[_0x58a6dd(0x13b)]!=='menu_permission_denied'){_0x5ad471[_0x58a6dd(0x196)](_0x2e6f20['id']);continue;}_0x1936e3[_0x58a6dd(0x196)]({'id':_0x2e6f20['id'],'stage':'update','code':_0x5bf9cb[_0x58a6dd(0x13b)],'message':_0x5bf9cb[_0x58a6dd(0x160)]});}}let _0x34a565;try{_0x34a565=await fetchMenuSnapshot(_0x5a8c66['appCode'],_0x5a8c66[_0x58a6dd(0x12c)]);}catch(_0x1d86ba){const _0x3bc879=describeMenuErrorCause(_0x1d86ba,_0x58a6dd(0x135)),_0x5cdd48=_0x5ad471[_0x58a6dd(0x154)](_0x4e6507=>({'id':_0x4e6507,'stage':'update-recovery','code':_0x58a6dd(0x153),'message':'Response\x20was\x20lost\x20for\x20menu\x20'+_0x4e6507+'\x20and\x20final\x20state\x20could\x20not\x20be\x20read.','requestedStateConfirmed':![],'recovered':![]})),_0x2b507c={'stage':_0x58a6dd(0x144),'code':_0x58a6dd(0x153),'message':_0x58a6dd(0x138),'targetIds':_0x1fb75b[_0x58a6dd(0x164)]['targets'][_0x58a6dd(0x154)](_0x4e5044=>_0x4e5044['id']),'requestedStateConfirmed':![],..._0x3bc879};throw menuFailure(asVerificationError(_0x1d86ba,_0x58a6dd(0x180)),_0x1fb75b[_0x58a6dd(0x164)],{'stage':_0x58a6dd(0x144),'succeeded':_0x4d748f,'failedRecords':[..._0x1936e3,..._0x5cdd48,_0x2b507c],'warnings':[_0x58a6dd(0x18d)],'verification':{'status':_0x58a6dd(0x16f),'recoveredCount':0x0,'lookupCommand':_0x58a6dd(0x18c)}});}const _0x31c1ba=[];for(const _0x39377b of _0x4d748f){const _0xba2a93=Number(_0x39377b['id']),_0x46a8f2=_0x1fb75b[_0x58a6dd(0x184)][_0x58a6dd(0x176)](_0xba2a93),_0x2e841b=_0x34a565[_0x58a6dd(0x12e)]['get'](_0xba2a93);try{verifyVisibilityUpdate(_0x46a8f2,_0x2e841b,_0x1fb75b[_0x58a6dd(0x164)][_0x58a6dd(0x181)]);}catch(_0x3e1308){const _0x4183d3=asVerificationError(_0x3e1308,_0x58a6dd(0x16b)+_0xba2a93+'\x20visibility\x20update\x20could\x20not\x20be\x20verified');_0x31c1ba[_0x58a6dd(0x196)]({'id':_0xba2a93,'stage':_0x58a6dd(0x144),'code':_0x4183d3['code'],'message':_0x4183d3[_0x58a6dd(0x160)],'requestedStateConfirmed':![]});}}for(const _0x1cd2a9 of _0x5ad471){const _0x335fb0=_0x1fb75b[_0x58a6dd(0x184)][_0x58a6dd(0x176)](_0x1cd2a9),_0x274bbf=_0x34a565[_0x58a6dd(0x12e)]['get'](_0x1cd2a9);try{verifyVisibilityUpdate(_0x335fb0,_0x274bbf,_0x1fb75b[_0x58a6dd(0x164)][_0x58a6dd(0x181)]),_0x4d748f[_0x58a6dd(0x196)]({'id':_0x1cd2a9,'updated':!![],'skipped':![],'recovered':!![]});}catch(_0x55442e){const _0x458426=asVerificationError(_0x55442e,_0x58a6dd(0x139)+_0x1cd2a9+_0x58a6dd(0x130));_0x31c1ba['push']({'id':_0x1cd2a9,'stage':_0x58a6dd(0x191),'code':_0x458426[_0x58a6dd(0x13b)],'message':_0x458426['message'],'requestedStateConfirmed':![],'recovered':![]});}}if(_0x31c1ba['length']>0x0){const _0x52ed1c=_0x31c1ba[_0x58a6dd(0x154)](_0x251f12=>Number(_0x251f12['id'])),_0x233c7e=_0x4d748f[_0x58a6dd(0x145)](_0x48f6b0=>_0x48f6b0['recovered']===!![])[_0x58a6dd(0x188)],_0x62f001=menuError(_0x58a6dd(0x153),'Menu\x20visibility\x20update\x20could\x20not\x20be\x20verified\x20for\x20id(s):\x20'+_0x52ed1c['join'](',\x20')+'.','Inspect\x20current\x20menu\x20facts\x20before\x20retrying\x20any\x20target.');throw menuFailure(_0x62f001,_0x1fb75b['plan'],{'stage':_0x58a6dd(0x144),'succeeded':_0x4d748f,'failedRecords':[..._0x1936e3,..._0x31c1ba],'warnings':[_0x58a6dd(0x163)],'verification':{'status':'failed',..._0x52ed1c[_0x58a6dd(0x188)]===0x1?{'targetId':_0x52ed1c[0x0]}:{'targetIds':_0x52ed1c},'recoveredCount':_0x233c7e,'lookupCommand':_0x58a6dd(0x18c)}});}const _0x76af33=_0x4d748f[_0x58a6dd(0x145)](_0x1fad1a=>_0x1fad1a[_0x58a6dd(0x121)]===!![])[_0x58a6dd(0x188)],_0x2c6700=_0x4d748f[_0x58a6dd(0x188)]-_0x76af33,_0x564f22={..._0x1fb75b['plan'],'succeeded':_0x4d748f,'failed':_0x1936e3,'warnings':_0x1936e3[_0x58a6dd(0x188)]>0x0?[..._0x1fb75b[_0x58a6dd(0x164)][_0x58a6dd(0x12b)],_0x58a6dd(0x17f)]:_0x1fb75b[_0x58a6dd(0x164)]['warnings'],'verification':{'checkedBy':_0x58a6dd(0x16c),'snapshotHash':_0x34a565[_0x58a6dd(0x172)],'matchesRequestedState':_0x1936e3[_0x58a6dd(0x188)]===0x0,'recoveredCount':_0x5ad471[_0x58a6dd(0x188)]}};return{'ok':_0x1936e3[_0x58a6dd(0x188)]===0x0,'data':_0x564f22,'message':_0x1936e3['length']===0x0?_0x58a6dd(0x165)+_0x76af33+_0x58a6dd(0x150)+_0x2c6700+'\x20unchanged\x20menu(s).':_0x58a6dd(0x12d)+_0x76af33+'\x20updated,\x20'+_0x2c6700+_0x58a6dd(0x124)+_0x1936e3[_0x58a6dd(0x188)]+_0x58a6dd(0x13e)};}};function a191_0x161a(_0x1986f0,_0x14c4c4){_0x1986f0=_0x1986f0-0x121;const _0x4114a0=a191_0x4114();let _0x161ac9=_0x4114a0[_0x1986f0];return _0x161ac9;}function parseInput(_0x36627b){const _0x89ae6d=a191_0x190d35,_0x4ce574=parseMenuIds(_0x36627b[_0x89ae6d(0x177)](_0x89ae6d(0x18e))),_0x4a1afb=parseCsv(_0x36627b['str'](_0x89ae6d(0x192)));if(_0x4ce574[_0x89ae6d(0x188)]===0x0&&_0x4a1afb[_0x89ae6d(0x188)]===0x0)throw CliErrors['validation']('menu\x20visibility-update\x20requires\x20--menu-ids\x20or\x20--paths.');const _0x53e4b3=parseBooleanFlag(_0x36627b,_0x89ae6d(0x13c),!![]),_0x5925ef=parseBooleanFlag(_0x36627b,'expect-visible',![]);let _0x4d49dd;if(hasFlag(_0x36627b,_0x89ae6d(0x197))){_0x4d49dd=_0x36627b[_0x89ae6d(0x179)](_0x89ae6d(0x197));if(!Number['isSafeInteger'](_0x4d49dd)||_0x4d49dd<0x0)throw CliErrors[_0x89ae6d(0x18f)]('--expected-count\x20must\x20be\x20a\x20non-negative\x20integer.');}return{'menuIds':_0x4ce574,'paths':_0x4a1afb,'visible':_0x53e4b3,'expectVisible':_0x5925ef,'expectedCount':_0x4d49dd};}async function buildPlan(_0x25cc81,_0xe635d){const _0xc77fae=a191_0x190d35,_0x443b46=parseInput(_0x25cc81),_0x4b9c14=await fetchMutationSnapshot(_0x25cc81,_0xc77fae(0x133)),_0x29a617=selectTargets(_0x4b9c14[_0xc77fae(0x17e)],_0x443b46['menuIds'],_0x443b46[_0xc77fae(0x192)]);if(_0x443b46['expectedCount']!==undefined&&_0x29a617[_0xc77fae(0x188)]!==_0x443b46['expectedCount'])throw menuError(_0xc77fae(0x194),_0xc77fae(0x14e)+_0x29a617[_0xc77fae(0x188)]+_0xc77fae(0x17c)+_0x443b46[_0xc77fae(0x189)]+'.',_0xc77fae(0x149));if(_0x443b46[_0xc77fae(0x142)]!==undefined){const _0x54a526=_0x29a617[_0xc77fae(0x145)](_0x2d2d87=>_0x2d2d87[_0xc77fae(0x13c)]!==_0x443b46[_0xc77fae(0x142)]);if(_0x54a526['length']>0x0)throw menuError(_0xc77fae(0x18a),_0xc77fae(0x147)+_0x54a526[_0xc77fae(0x154)](_0x338308=>_0x338308['id'])[_0xc77fae(0x14a)](',\x20')+'.','Run\x20the\x20command\x20with\x20--dry-run\x20again\x20and\x20update\x20--expect-visible.');}const _0xce7a95=_0x29a617[_0xc77fae(0x154)](_0x4153db=>({'id':_0x4153db['id'],'label':_0x4153db['label'],'path':_0x4153db['path'],'before':{'visible':_0x4153db['visible']},'after':{'visible':_0x443b46['visible']}})),_0x2f0473=_0xce7a95['filter'](_0x22be0a=>_0x22be0a[_0xc77fae(0x141)][_0xc77fae(0x13c)]!==_0x443b46[_0xc77fae(0x13c)])['map'](_0xc42811=>({'stage':_0xc77fae(0x137),'method':_0xc77fae(0x169),'path':_0xc77fae(0x199),'body':{'appCode':_0x25cc81[_0xc77fae(0x15c)],'id':_0xc42811['id'],'visible':_0x443b46[_0xc77fae(0x13c)]}})),_0x4d7ae0=mutationResult({'operation':_0xc77fae(0x15d),'selector':{'menuIds':_0x443b46[_0xc77fae(0x161)],'paths':_0x443b46['paths']},'before':{'menus':_0x29a617[_0xc77fae(0x154)](_0x1bb013=>({'id':_0x1bb013['id'],'path':_0x1bb013[_0xc77fae(0x136)],'visible':_0x1bb013[_0xc77fae(0x13c)]}))},'after':{'menus':_0x29a617[_0xc77fae(0x154)](_0x1dda09=>({'id':_0x1dda09['id'],'path':_0x1dda09[_0xc77fae(0x136)],'visible':_0x443b46['visible']}))},'dryRun':_0xe635d,'backend':[...BACKEND],'plannedActions':_0x2f0473,'snapshotHash':_0x4b9c14['hash'],'warnings':_0x2f0473[_0xc77fae(0x188)]===0x0?[_0xc77fae(0x122)]:[]});return{'plan':{..._0x4d7ae0,'requestedVisible':_0x443b46[_0xc77fae(0x13c)],'targets':_0xce7a95},'beforeById':new Map(_0x29a617[_0xc77fae(0x154)](_0x257f38=>[_0x257f38['id'],_0x257f38]))};}function selectTargets(_0x5f4d56,_0x232076,_0x3a0e9a){const _0x152171=a191_0x190d35,_0x55f2bb=new Map(_0x5f4d56[_0x152171(0x154)](_0x51bbc6=>[_0x51bbc6['id'],_0x51bbc6])),_0x25278b=new Map(),_0x113245=_0x232076[_0x152171(0x145)](_0x10eb90=>!_0x55f2bb[_0x152171(0x156)](_0x10eb90));if(_0x113245[_0x152171(0x188)]>0x0)throw menuError(_0x152171(0x127),_0x152171(0x12f)+_0x113245[_0x152171(0x14a)](',\x20')+'.',_0x152171(0x14f));for(const _0x5eee9e of _0x232076){_0x25278b[_0x152171(0x166)](_0x5eee9e,_0x55f2bb[_0x152171(0x176)](_0x5eee9e));}for(const _0x1bc9f0 of _0x3a0e9a){const _0x26c20b=_0x5f4d56[_0x152171(0x145)](_0x3bfb21=>_0x3bfb21[_0x152171(0x136)]===_0x1bc9f0);if(_0x26c20b['length']===0x0)throw menuError('menu_selector_not_found',_0x152171(0x131)+JSON['stringify'](_0x1bc9f0)+'.',_0x152171(0x159));if(_0x26c20b[_0x152171(0x188)]>0x1)throw menuError('menu_selector_ambiguous',_0x152171(0x193)+JSON['stringify'](_0x1bc9f0)+'.','Use\x20--menu-ids\x20with\x20one\x20or\x20more\x20of:\x20'+_0x26c20b[_0x152171(0x154)](_0x2d2f62=>_0x2d2f62['id'])[_0x152171(0x14a)](',\x20')+'.');const _0x659928=_0x26c20b[0x0];_0x25278b[_0x152171(0x166)](_0x659928['id'],_0x659928);}return[..._0x25278b['values']()];}function parseMenuIds(_0xfd8b61){const _0x4ade22=a191_0x190d35,_0x252560=parseCsv(_0xfd8b61),_0x38654b=_0x252560[_0x4ade22(0x154)](Number);if(_0x38654b[_0x4ade22(0x198)](_0x156020=>!Number['isSafeInteger'](_0x156020)||_0x156020<=0x0))throw CliErrors[_0x4ade22(0x18f)](_0x4ade22(0x15e));return[...new Set(_0x38654b)];}function parseCsv(_0x1acc58){const _0x36d646=a191_0x190d35;return[...new Set(_0x1acc58['split'](',')['map'](_0xcbd1db=>_0xcbd1db[_0x36d646(0x167)]())['filter'](Boolean))];}function parseBooleanFlag(_0x2f0d83,_0x3c83ac,_0x35291f){const _0x5609cd=a191_0x190d35;if(!hasFlag(_0x2f0d83,_0x3c83ac)){if(_0x35291f)throw CliErrors[_0x5609cd(0x170)](_0x3c83ac);return undefined;}const _0x16c84b=_0x2f0d83[_0x5609cd(0x125)][_0x3c83ac];if(_0x16c84b===!![]||_0x16c84b===![])return _0x16c84b;if(_0x16c84b==='true')return!![];if(_0x16c84b==='false')return![];throw CliErrors[_0x5609cd(0x18f)]('--'+_0x3c83ac+_0x5609cd(0x18b));}function verifyVisibilityUpdate(_0x5a7097,_0x3c8536,_0x5186a2){const _0x2b325e=a191_0x190d35;assertVerified(!!_0x3c8536,_0x2b325e(0x16b)+_0x5a7097['id']+_0x2b325e(0x175)),assertVerified(_0x3c8536[_0x2b325e(0x13c)]===_0x5186a2,_0x2b325e(0x16b)+_0x5a7097['id']+_0x2b325e(0x126));const _0x10b9d3=[['id',_0x3c8536['id'],_0x5a7097['id']],[_0x2b325e(0x152),_0x3c8536[_0x2b325e(0x152)],_0x5a7097[_0x2b325e(0x152)]],[_0x2b325e(0x134),_0x3c8536[_0x2b325e(0x134)],_0x5a7097[_0x2b325e(0x134)]],['label',_0x3c8536[_0x2b325e(0x187)],_0x5a7097[_0x2b325e(0x187)]],[_0x2b325e(0x136),_0x3c8536['path'],_0x5a7097['path']],['url',_0x3c8536[_0x2b325e(0x123)],_0x5a7097['url']],[_0x2b325e(0x190),_0x3c8536[_0x2b325e(0x190)],_0x5a7097[_0x2b325e(0x190)]],[_0x2b325e(0x158),_0x3c8536[_0x2b325e(0x158)],_0x5a7097[_0x2b325e(0x158)]],[_0x2b325e(0x17a),_0x3c8536[_0x2b325e(0x17a)],_0x5a7097[_0x2b325e(0x17a)]],[_0x2b325e(0x185),_0x3c8536[_0x2b325e(0x185)],_0x5a7097[_0x2b325e(0x185)]],[_0x2b325e(0x174),_0x3c8536[_0x2b325e(0x174)],_0x5a7097[_0x2b325e(0x174)]],[_0x2b325e(0x186),_0x3c8536['childrenCount'],_0x5a7097[_0x2b325e(0x186)]],[_0x2b325e(0x183),_0x3c8536[_0x2b325e(0x183)],_0x5a7097[_0x2b325e(0x183)]],[_0x2b325e(0x12a),_0x3c8536['pageType'],_0x5a7097[_0x2b325e(0x12a)]],[_0x2b325e(0x171),_0x3c8536[_0x2b325e(0x171)],_0x5a7097[_0x2b325e(0x171)]],[_0x2b325e(0x162),_0x3c8536['datasetId'],_0x5a7097[_0x2b325e(0x162)]],[_0x2b325e(0x15a),_0x3c8536[_0x2b325e(0x15a)],_0x5a7097[_0x2b325e(0x15a)]]];for(const [_0x13c2f2,_0x2f4a38,_0x272b71]of _0x10b9d3){assertVerified(sameValue(_0x2f4a38,_0x272b71),_0x2b325e(0x16b)+_0x5a7097['id']+'\x20'+_0x13c2f2+_0x2b325e(0x148));}}function sameValue(_0x56c330,_0x2d56cc){const _0x375e70=a191_0x190d35;if(Array[_0x375e70(0x151)](_0x56c330)||Array['isArray'](_0x2d56cc))return JSON[_0x375e70(0x140)](_0x56c330)===JSON[_0x375e70(0x140)](_0x2d56cc);return _0x56c330===_0x2d56cc;}
@@ -1 +1 @@
1
- const a192_0x23765b=a192_0x29f7;(function(_0x1d2799,_0x3b3839){const _0x35f3f4=a192_0x29f7,_0x34d52a=_0x1d2799();while(!![]){try{const _0x2f5c5f=-parseInt(_0x35f3f4(0x179))/0x1+-parseInt(_0x35f3f4(0x166))/0x2+-parseInt(_0x35f3f4(0x16a))/0x3*(parseInt(_0x35f3f4(0x172))/0x4)+-parseInt(_0x35f3f4(0x177))/0x5*(-parseInt(_0x35f3f4(0x17b))/0x6)+-parseInt(_0x35f3f4(0x163))/0x7+parseInt(_0x35f3f4(0x16c))/0x8*(parseInt(_0x35f3f4(0x165))/0x9)+parseInt(_0x35f3f4(0x15e))/0xa;if(_0x2f5c5f===_0x3b3839)break;else _0x34d52a['push'](_0x34d52a['shift']());}catch(_0x2f1dde){_0x34d52a['push'](_0x34d52a['shift']());}}}(a192_0x421a,0x2a525));import{asDryRunResult}from'../../commands/common/dry-run.js';import{createNotificationChannelConfig,getNotificationChannelConfig,isPlatformTransportFailure}from'../../core/api-client.js';import{assertSingleNotificationSource,createMutationInput,DEFAULT_NOTIFICATION_CONNECT_TIMEOUT,DEFAULT_NOTIFICATION_READ_TIMEOUT,normalizeExactNotificationConfig,notificationError,notificationLookupCommand,NOTIFICATION_APP_FLAG,NOTIFICATION_INPUT_FLAGS,projectNotificationConfig,readNotificationDocument,safeApiFailure}from'../../commands/notification/shared.js';const CREATE_PATH=a192_0x23765b(0x16f);async function prepareCreate(_0x7b8577){const _0x9ee4a0=a192_0x23765b,_0x1cd0cc=await readNotificationDocument(_0x7b8577,'create'),_0x207852=createMutationInput(_0x7b8577['appCode'],_0x1cd0cc);return{'document':_0x1cd0cc,'input':_0x207852,'planned':projectNotificationConfig({'appCode':_0x7b8577[_0x9ee4a0(0x176)],'configName':_0x1cd0cc[_0x9ee4a0(0x162)],'channelType':_0x1cd0cc[_0x9ee4a0(0x16e)],'endpointUrl':_0x1cd0cc[_0x9ee4a0(0x168)],'channelConfig':_0x1cd0cc['channelConfig'],'description':_0x1cd0cc['description'],'connectTimeout':_0x1cd0cc[_0x9ee4a0(0x171)]??DEFAULT_NOTIFICATION_CONNECT_TIMEOUT,'readTimeout':_0x1cd0cc['readTimeout']??DEFAULT_NOTIFICATION_READ_TIMEOUT})};}export const notificationConfigCreate={'service':a192_0x23765b(0x167),'command':a192_0x23765b(0x160),'description':a192_0x23765b(0x170),'risk':a192_0x23765b(0x15d),'requiresAppCode':!![],'structuredErrors':!![],'flags':[...NOTIFICATION_INPUT_FLAGS,NOTIFICATION_APP_FLAG],async 'validate'(_0x359319){assertSingleNotificationSource(_0x359319);},async 'dryRun'(_0x3e6b97){const _0xcd3226=a192_0x23765b,_0x4e8af8=await prepareCreate(_0x3e6b97),_0x3d1f8d=notificationLookupCommand(_0x3e6b97[_0xcd3226(0x176)],_0x4e8af8['document']['channelType']);return asDryRunResult({'operation':_0xcd3226(0x169),'selector':{'appCode':_0x3e6b97['appCode'],'configName':_0x4e8af8['document'][_0xcd3226(0x162)],'channelType':_0x4e8af8[_0xcd3226(0x15b)][_0xcd3226(0x16e)]},'before':null,'after':_0x4e8af8[_0xcd3226(0x175)],'dryRun':!![],'backend':{'method':_0xcd3226(0x16b),'path':CREATE_PATH},'warnings':[],'verification':{'status':_0xcd3226(0x175),'lookupCommand':_0x3d1f8d}},{'method':'POST','url':CREATE_PATH});},async 'execute'(_0x543334){const _0x2159a1=a192_0x23765b,_0x4bfa1d=await prepareCreate(_0x543334),_0x1c41f4=notificationLookupCommand(_0x543334[_0x2159a1(0x176)],_0x4bfa1d[_0x2159a1(0x15b)][_0x2159a1(0x16e)]);let _0x417e96;try{_0x417e96=await createNotificationChannelConfig(_0x4bfa1d[_0x2159a1(0x174)]);}catch(_0x3226ab){if(isPlatformTransportFailure(_0x3226ab))throw notificationError(_0x2159a1(0x15a),_0x2159a1(0x178),_0x2159a1(0x173)+_0x1c41f4+';\x20do\x20not\x20resubmit.');throw safeApiFailure(_0x2159a1(0x169),_0x2159a1(0x16d),_0x2159a1(0x173)+_0x1c41f4+_0x2159a1(0x15f));}if(!Number['isSafeInteger'](_0x417e96)||_0x417e96<=0x0)throw notificationError(_0x2159a1(0x15a),'Notification\x20config\x20create\x20returned\x20no\x20usable\x20server\x20ID.','Inspect\x20with\x20'+_0x1c41f4+_0x2159a1(0x15c));let _0x1a7c89;try{const _0x2f9ed6=await getNotificationChannelConfig(_0x417e96,_0x543334[_0x2159a1(0x176)]);_0x1a7c89=normalizeExactNotificationConfig(_0x2f9ed6,_0x417e96,_0x543334[_0x2159a1(0x176)]);}catch{throw safeApiFailure(_0x2159a1(0x169),_0x2159a1(0x17a),'Inspect\x20with\x20'+_0x1c41f4+_0x2159a1(0x164));}return{'ok':!![],'data':{'operation':_0x2159a1(0x169),'selector':{'appCode':_0x1a7c89[_0x2159a1(0x176)],'id':_0x1a7c89['id'],'configCode':_0x1a7c89['configCode'],'configName':_0x1a7c89[_0x2159a1(0x162)],'channelType':_0x1a7c89[_0x2159a1(0x16e)]},'before':null,'after':projectNotificationConfig(_0x1a7c89),'dryRun':![],'backend':{'method':'POST','path':CREATE_PATH},'warnings':[],'verification':{'status':_0x2159a1(0x161),'lookupCommand':_0x1c41f4}},'message':_0x2159a1(0x159)+_0x1a7c89['id']};}};function a192_0x29f7(_0x29505d,_0x3630d1){_0x29505d=_0x29505d-0x159;const _0x421af5=a192_0x421a();let _0x29f72f=_0x421af5[_0x29505d];return _0x29f72f;}function a192_0x421a(){const _0x97c148=['config-create','verified','configName','1854167exqPnA',';\x20do\x20not\x20resubmit\x20automatically.','567441lXPkKV','422500BdmJRY','notification','endpointUrl','create','171489VEQSuL','POST','16zPqeil','mutation','channelType','/notification/channel-config/create','Create\x20an\x20app-level\x20notification\x20config\x20from\x20a\x20secure\x20JSON\x20source','connectTimeout','8vqWCCW','Inspect\x20with\x20','input','planned','appCode','49795OUVVbk','Notification\x20config\x20create\x20outcome\x20is\x20unknown\x20because\x20no\x20server\x20ID\x20was\x20received.','39494CmofvG','verification','30ndzYLb','Created\x20notification\x20config\x20','notification_config_create_outcome_unknown','document',';\x20do\x20not\x20resubmit.','write','6274070FGTxEB',';\x20no\x20automatic\x20retry\x20was\x20attempted.'];a192_0x421a=function(){return _0x97c148;};return a192_0x421a();}
1
+ const a192_0x20696f=a192_0x236f;(function(_0x233a30,_0x13e53c){const _0x520544=a192_0x236f,_0x238515=_0x233a30();while(!![]){try{const _0x21c879=-parseInt(_0x520544(0x181))/0x1+parseInt(_0x520544(0x186))/0x2+-parseInt(_0x520544(0x1a2))/0x3*(-parseInt(_0x520544(0x1a5))/0x4)+-parseInt(_0x520544(0x1a3))/0x5*(-parseInt(_0x520544(0x1a6))/0x6)+parseInt(_0x520544(0x194))/0x7+parseInt(_0x520544(0x192))/0x8*(parseInt(_0x520544(0x18d))/0x9)+parseInt(_0x520544(0x1a1))/0xa*(-parseInt(_0x520544(0x19c))/0xb);if(_0x21c879===_0x13e53c)break;else _0x238515['push'](_0x238515['shift']());}catch(_0x35a4f0){_0x238515['push'](_0x238515['shift']());}}}(a192_0x206b,0xb3881));import{asDryRunResult}from'../../commands/common/dry-run.js';import{createNotificationChannelConfig,getNotificationChannelConfig,isPlatformTransportFailure}from'../../core/api-client.js';import{assertSingleNotificationSource,createMutationInput,DEFAULT_NOTIFICATION_CONNECT_TIMEOUT,DEFAULT_NOTIFICATION_READ_TIMEOUT,normalizeExactNotificationConfig,notificationError,notificationLookupCommand,NOTIFICATION_APP_FLAG,NOTIFICATION_INPUT_FLAGS,projectNotificationConfig,readNotificationDocument,safeApiFailure}from'../../commands/notification/shared.js';function a192_0x206b(){const _0x314514=['connectTimeout','13624666CxOgAJ','channelType',';\x20no\x20automatic\x20retry\x20was\x20attempted.',';\x20do\x20not\x20resubmit\x20automatically.','Inspect\x20with\x20','20bzUKyz','231747vhVqcj','2859365DqHWZZ','config-create','76uLLHor','6Npcvtw','Notification\x20config\x20create\x20returned\x20no\x20usable\x20server\x20ID.','input','696631SXxAMH','/notification/channel-config/create','notification','readTimeout','planned','2492812iYAcOV','verification','configName','endpointUrl','channelConfig','write','Notification\x20config\x20create\x20outcome\x20is\x20unknown\x20because\x20no\x20server\x20ID\x20was\x20received.','1448073XiFncO','verified','Created\x20notification\x20config\x20','POST',';\x20do\x20not\x20resubmit.','8QnuCnH','mutation','3236079uOZcpF','create','description','document','appCode','configCode','notification_config_create_outcome_unknown'];a192_0x206b=function(){return _0x314514;};return a192_0x206b();}const CREATE_PATH=a192_0x20696f(0x182);async function prepareCreate(_0x4e0b75){const _0x517d36=a192_0x20696f,_0x480165=await readNotificationDocument(_0x4e0b75,_0x517d36(0x195)),_0x13250a=createMutationInput(_0x4e0b75[_0x517d36(0x198)],_0x480165);return{'document':_0x480165,'input':_0x13250a,'planned':projectNotificationConfig({'appCode':_0x4e0b75[_0x517d36(0x198)],'configName':_0x480165[_0x517d36(0x188)],'channelType':_0x480165[_0x517d36(0x19d)],'endpointUrl':_0x480165[_0x517d36(0x189)],'channelConfig':_0x480165[_0x517d36(0x18a)],'description':_0x480165[_0x517d36(0x196)],'connectTimeout':_0x480165[_0x517d36(0x19b)]??DEFAULT_NOTIFICATION_CONNECT_TIMEOUT,'readTimeout':_0x480165[_0x517d36(0x184)]??DEFAULT_NOTIFICATION_READ_TIMEOUT})};}function a192_0x236f(_0x1a3d00,_0x3d4ade){_0x1a3d00=_0x1a3d00-0x181;const _0x206bb9=a192_0x206b();let _0x236fb1=_0x206bb9[_0x1a3d00];return _0x236fb1;}export const notificationConfigCreate={'service':a192_0x20696f(0x183),'command':a192_0x20696f(0x1a4),'description':'Create\x20an\x20app-level\x20notification\x20config\x20from\x20a\x20secure\x20JSON\x20source','risk':a192_0x20696f(0x18b),'requiresAppCode':!![],'structuredErrors':!![],'flags':[...NOTIFICATION_INPUT_FLAGS,NOTIFICATION_APP_FLAG],async 'validate'(_0x24d216){assertSingleNotificationSource(_0x24d216);},async 'dryRun'(_0x322f3c){const _0x33dc7f=a192_0x20696f,_0x435230=await prepareCreate(_0x322f3c),_0x10de9b=notificationLookupCommand(_0x322f3c[_0x33dc7f(0x198)],_0x435230['document'][_0x33dc7f(0x19d)]);return asDryRunResult({'operation':_0x33dc7f(0x195),'selector':{'appCode':_0x322f3c[_0x33dc7f(0x198)],'configName':_0x435230[_0x33dc7f(0x197)][_0x33dc7f(0x188)],'channelType':_0x435230['document'][_0x33dc7f(0x19d)]},'before':null,'after':_0x435230[_0x33dc7f(0x185)],'dryRun':!![],'backend':{'method':_0x33dc7f(0x190),'path':CREATE_PATH},'warnings':[],'verification':{'status':_0x33dc7f(0x185),'lookupCommand':_0x10de9b}},{'method':_0x33dc7f(0x190),'url':CREATE_PATH});},async 'execute'(_0x1be3b4){const _0x8eb697=a192_0x20696f,_0x195456=await prepareCreate(_0x1be3b4),_0x282004=notificationLookupCommand(_0x1be3b4[_0x8eb697(0x198)],_0x195456[_0x8eb697(0x197)]['channelType']);let _0x28662b;try{_0x28662b=await createNotificationChannelConfig(_0x195456[_0x8eb697(0x1a8)]);}catch(_0x4a463f){if(isPlatformTransportFailure(_0x4a463f))throw notificationError(_0x8eb697(0x19a),_0x8eb697(0x18c),_0x8eb697(0x1a0)+_0x282004+_0x8eb697(0x191));throw safeApiFailure(_0x8eb697(0x195),_0x8eb697(0x193),_0x8eb697(0x1a0)+_0x282004+_0x8eb697(0x19e));}if(!Number['isSafeInteger'](_0x28662b)||_0x28662b<=0x0)throw notificationError('notification_config_create_outcome_unknown',_0x8eb697(0x1a7),_0x8eb697(0x1a0)+_0x282004+_0x8eb697(0x191));let _0x269b3f;try{const _0x14b2db=await getNotificationChannelConfig(_0x28662b,_0x1be3b4[_0x8eb697(0x198)]);_0x269b3f=normalizeExactNotificationConfig(_0x14b2db,_0x28662b,_0x1be3b4[_0x8eb697(0x198)]);}catch{throw safeApiFailure(_0x8eb697(0x195),_0x8eb697(0x187),_0x8eb697(0x1a0)+_0x282004+_0x8eb697(0x19f));}return{'ok':!![],'data':{'operation':_0x8eb697(0x195),'selector':{'appCode':_0x269b3f[_0x8eb697(0x198)],'id':_0x269b3f['id'],'configCode':_0x269b3f[_0x8eb697(0x199)],'configName':_0x269b3f[_0x8eb697(0x188)],'channelType':_0x269b3f['channelType']},'before':null,'after':projectNotificationConfig(_0x269b3f),'dryRun':![],'backend':{'method':_0x8eb697(0x190),'path':CREATE_PATH},'warnings':[],'verification':{'status':_0x8eb697(0x18e),'lookupCommand':_0x282004}},'message':_0x8eb697(0x18f)+_0x269b3f['id']};}};
@@ -1 +1 @@
1
- const a193_0x1de247=a193_0x387f;(function(_0x474e7f,_0x4db15a){const _0x4f01de=a193_0x387f,_0xba42eb=_0x474e7f();while(!![]){try{const _0x495040=parseInt(_0x4f01de(0xc7))/0x1*(-parseInt(_0x4f01de(0xd2))/0x2)+parseInt(_0x4f01de(0xc8))/0x3*(-parseInt(_0x4f01de(0xd8))/0x4)+parseInt(_0x4f01de(0xdd))/0x5*(-parseInt(_0x4f01de(0xca))/0x6)+-parseInt(_0x4f01de(0xd6))/0x7+-parseInt(_0x4f01de(0xcc))/0x8+parseInt(_0x4f01de(0xc3))/0x9*(-parseInt(_0x4f01de(0xc1))/0xa)+-parseInt(_0x4f01de(0xda))/0xb*(-parseInt(_0x4f01de(0xd5))/0xc);if(_0x495040===_0x4db15a)break;else _0xba42eb['push'](_0xba42eb['shift']());}catch(_0x11aa26){_0xba42eb['push'](_0xba42eb['shift']());}}}(a193_0x3b5c,0x2f7df));import{asDryRunResult}from'../../commands/common/dry-run.js';import{deleteNotificationChannelConfig,isPlatformTransportFailure,listNotificationChannelConfigs}from'../../core/api-client.js';function a193_0x3b5c(){const _0x3ad2fd=['mutation','unshift','313998juUvpN','channelType',';\x20no\x20automatic\x20retry\x20was\x20attempted.','4428UpbpTL','2582223EEOCdS','appCode','8732AFeSoa','high-risk-write','46431zWVQQd','\x20delete\x20could\x20not\x20be\x20verified.','Delete\x20an\x20app-level\x20notification\x20config\x20after\x20exact\x20preflight','7505ATiWzc','notification_config_delete_outcome_unknown','Notification\x20config\x20','/notification/channel-config/delete','planned','some','config-delete','notification','10avcITu','verified','686133NRrPzv','POST',';\x20do\x20not\x20resubmit\x20automatically.','delete','1wKgrET','381YxaqGc','Inspect\x20with\x20','996FwbqbF','\x20remains\x20present\x20after\x20delete.','1875920ndeTQZ','notification_config_delete_verification_unavailable','before','Delete\x20response\x20was\x20unavailable;\x20list\x20readback\x20proved\x20ID\x20absence\x20without\x20resubmitting.'];a193_0x3b5c=function(){return _0x3ad2fd;};return a193_0x3b5c();}import{notificationError,notificationLookupCommand,notificationSelector,NOTIFICATION_APP_FLAG,NOTIFICATION_ID_FLAG,projectNotificationConfig,readNotificationId,requireNotificationExplicitYes,requireExactNotificationConfig,safeApiFailure,validateNotificationDeleteReadback}from'../../commands/notification/shared.js';const DELETE_PATH=a193_0x1de247(0xe0),REFERENCE_WARNING='Deleting\x20this\x20app-level\x20config\x20may\x20make\x20dataset-level\x20channels\x20that\x20reference\x20it\x20unavailable;\x20dataset\x20references\x20were\x20not\x20verified\x20by\x20the\x20CLI.';async function prepareDelete(_0x1a97b5){const _0x4a6ead=a193_0x1de247,_0xfea6cd=readNotificationId(_0x1a97b5),_0x34311a=await requireExactNotificationConfig(_0x1a97b5[_0x4a6ead(0xd7)],_0xfea6cd,_0x4a6ead(0xc6));return{'id':_0xfea6cd,'before':_0x34311a};}function a193_0x387f(_0x4650a0,_0x243cdb){_0x4650a0=_0x4650a0-0xbf;const _0x3b5c52=a193_0x3b5c();let _0x387fa7=_0x3b5c52[_0x4650a0];return _0x387fa7;}export const notificationConfigDelete={'service':a193_0x1de247(0xc0),'command':a193_0x1de247(0xbf),'description':a193_0x1de247(0xdc),'risk':a193_0x1de247(0xd9),'requiresAppCode':!![],'structuredErrors':!![],'flags':[NOTIFICATION_ID_FLAG,NOTIFICATION_APP_FLAG],async 'validate'(_0x10d214){readNotificationId(_0x10d214),requireNotificationExplicitYes(_0x10d214);},async 'dryRun'(_0x11fa61){const _0x36c49d=a193_0x1de247,_0x546f6b=await prepareDelete(_0x11fa61),_0x413336=notificationLookupCommand(_0x11fa61[_0x36c49d(0xd7)],_0x546f6b['before'][_0x36c49d(0xd3)]);return asDryRunResult({'operation':'delete','selector':notificationSelector(_0x546f6b[_0x36c49d(0xce)]),'before':projectNotificationConfig(_0x546f6b[_0x36c49d(0xce)]),'after':null,'dryRun':!![],'backend':{'method':_0x36c49d(0xc4),'path':DELETE_PATH},'warnings':[REFERENCE_WARNING],'verification':{'status':_0x36c49d(0xe1),'lookupCommand':_0x413336}},{'method':_0x36c49d(0xc4),'url':DELETE_PATH});},async 'execute'(_0x19dc9a){const _0x501d60=a193_0x1de247;requireNotificationExplicitYes(_0x19dc9a);const _0x5f3c6c=await prepareDelete(_0x19dc9a),_0x44c34f=notificationLookupCommand(_0x19dc9a[_0x501d60(0xd7)],_0x5f3c6c[_0x501d60(0xce)][_0x501d60(0xd3)]);let _0x3d90d5=![];try{await deleteNotificationChannelConfig(_0x5f3c6c['id'],_0x19dc9a[_0x501d60(0xd7)]);}catch(_0x2f418f){if(!isPlatformTransportFailure(_0x2f418f))throw safeApiFailure(_0x501d60(0xc6),_0x501d60(0xd0),'Inspect\x20with\x20'+_0x44c34f+_0x501d60(0xd4));_0x3d90d5=!![];}let _0x2b0d42;try{_0x2b0d42=await listNotificationChannelConfigs(_0x19dc9a['appCode'],_0x5f3c6c[_0x501d60(0xce)][_0x501d60(0xd3)]),validateNotificationDeleteReadback(_0x2b0d42,_0x19dc9a[_0x501d60(0xd7)],_0x5f3c6c[_0x501d60(0xce)][_0x501d60(0xd3)]);}catch{throw notificationError(_0x3d90d5?_0x501d60(0xde):_0x501d60(0xcd),_0x501d60(0xdf)+_0x5f3c6c['id']+_0x501d60(0xdb),_0x501d60(0xc9)+_0x44c34f+_0x501d60(0xc5));}if(_0x2b0d42[_0x501d60(0xe2)](_0x5e9b81=>_0x5e9b81['id']===_0x5f3c6c['id']))throw notificationError(_0x3d90d5?'notification_config_delete_outcome_unknown':'notification_config_delete_verification_failed',_0x501d60(0xdf)+_0x5f3c6c['id']+_0x501d60(0xcb),_0x501d60(0xc9)+_0x44c34f+_0x501d60(0xc5));const _0x4185bf=[REFERENCE_WARNING];return _0x3d90d5&&_0x4185bf[_0x501d60(0xd1)](_0x501d60(0xcf)),{'ok':!![],'data':{'operation':_0x501d60(0xc6),'selector':notificationSelector(_0x5f3c6c[_0x501d60(0xce)]),'before':projectNotificationConfig(_0x5f3c6c[_0x501d60(0xce)]),'after':null,'dryRun':![],'backend':{'method':'POST','path':DELETE_PATH},'warnings':_0x4185bf,'verification':{'status':_0x501d60(0xc2),'absenceConfirmed':!![],'recoveredAfterUnknownResponse':_0x3d90d5,'lookupCommand':_0x44c34f}},'message':'Deleted\x20notification\x20config\x20'+_0x5f3c6c['id']};}};
1
+ const a193_0x5e6fab=a193_0x2352;(function(_0xbf5653,_0x9357c2){const _0x5f296d=a193_0x2352,_0x57c18f=_0xbf5653();while(!![]){try{const _0x506dc3=parseInt(_0x5f296d(0x14e))/0x1+-parseInt(_0x5f296d(0x150))/0x2+-parseInt(_0x5f296d(0x151))/0x3+parseInt(_0x5f296d(0x152))/0x4*(-parseInt(_0x5f296d(0x148))/0x5)+-parseInt(_0x5f296d(0x13c))/0x6+-parseInt(_0x5f296d(0x145))/0x7*(parseInt(_0x5f296d(0x13a))/0x8)+parseInt(_0x5f296d(0x13d))/0x9;if(_0x506dc3===_0x9357c2)break;else _0x57c18f['push'](_0x57c18f['shift']());}catch(_0x4eba1f){_0x57c18f['push'](_0x57c18f['shift']());}}}(a193_0x1b3f,0xaaec9));function a193_0x1b3f(){const _0x4e047a=['notification_config_delete_outcome_unknown','channelType','\x20remains\x20present\x20after\x20delete.','POST','269776cFgnUk','high-risk-write','1800824tznjHG','69051WBRIKF','4QMHcfG','notification','before','Delete\x20response\x20was\x20unavailable;\x20list\x20readback\x20proved\x20ID\x20absence\x20without\x20resubmitting.',';\x20no\x20automatic\x20retry\x20was\x20attempted.','appCode','planned','Deleting\x20this\x20app-level\x20config\x20may\x20make\x20dataset-level\x20channels\x20that\x20reference\x20it\x20unavailable;\x20dataset\x20references\x20were\x20not\x20verified\x20by\x20the\x20CLI.','8GWdUgE','Notification\x20config\x20','2883300USGBUD','27417303cxpAgv',';\x20do\x20not\x20resubmit\x20automatically.','Delete\x20an\x20app-level\x20notification\x20config\x20after\x20exact\x20preflight','mutation','/notification/channel-config/delete','notification_config_delete_verification_unavailable','verified','delete','4934209qDxNZG','unshift','some','2535860sCLPeX','Inspect\x20with\x20'];a193_0x1b3f=function(){return _0x4e047a;};return a193_0x1b3f();}import{asDryRunResult}from'../../commands/common/dry-run.js';import{deleteNotificationChannelConfig,isPlatformTransportFailure,listNotificationChannelConfigs}from'../../core/api-client.js';import{notificationError,notificationLookupCommand,notificationSelector,NOTIFICATION_APP_FLAG,NOTIFICATION_ID_FLAG,projectNotificationConfig,readNotificationId,requireNotificationExplicitYes,requireExactNotificationConfig,safeApiFailure,validateNotificationDeleteReadback}from'../../commands/notification/shared.js';const DELETE_PATH=a193_0x5e6fab(0x141),REFERENCE_WARNING=a193_0x5e6fab(0x139);function a193_0x2352(_0x557548,_0x1a6eb6){_0x557548=_0x557548-0x136;const _0x1b3f2e=a193_0x1b3f();let _0x2352af=_0x1b3f2e[_0x557548];return _0x2352af;}async function prepareDelete(_0x266981){const _0x1a6344=a193_0x5e6fab,_0x3a9c1a=readNotificationId(_0x266981),_0x492e42=await requireExactNotificationConfig(_0x266981[_0x1a6344(0x137)],_0x3a9c1a,_0x1a6344(0x144));return{'id':_0x3a9c1a,'before':_0x492e42};}export const notificationConfigDelete={'service':a193_0x5e6fab(0x153),'command':'config-delete','description':a193_0x5e6fab(0x13f),'risk':a193_0x5e6fab(0x14f),'requiresAppCode':!![],'structuredErrors':!![],'flags':[NOTIFICATION_ID_FLAG,NOTIFICATION_APP_FLAG],async 'validate'(_0x59ef4f){readNotificationId(_0x59ef4f),requireNotificationExplicitYes(_0x59ef4f);},async 'dryRun'(_0xb9125c){const _0x2023da=a193_0x5e6fab,_0x2e55b1=await prepareDelete(_0xb9125c),_0x1bff2b=notificationLookupCommand(_0xb9125c[_0x2023da(0x137)],_0x2e55b1[_0x2023da(0x154)]['channelType']);return asDryRunResult({'operation':_0x2023da(0x144),'selector':notificationSelector(_0x2e55b1[_0x2023da(0x154)]),'before':projectNotificationConfig(_0x2e55b1[_0x2023da(0x154)]),'after':null,'dryRun':!![],'backend':{'method':_0x2023da(0x14d),'path':DELETE_PATH},'warnings':[REFERENCE_WARNING],'verification':{'status':_0x2023da(0x138),'lookupCommand':_0x1bff2b}},{'method':'POST','url':DELETE_PATH});},async 'execute'(_0x4cf9cf){const _0xe6a9e6=a193_0x5e6fab;requireNotificationExplicitYes(_0x4cf9cf);const _0x30cc5e=await prepareDelete(_0x4cf9cf),_0x120e2b=notificationLookupCommand(_0x4cf9cf[_0xe6a9e6(0x137)],_0x30cc5e[_0xe6a9e6(0x154)]['channelType']);let _0x1828ba=![];try{await deleteNotificationChannelConfig(_0x30cc5e['id'],_0x4cf9cf['appCode']);}catch(_0x1159c5){if(!isPlatformTransportFailure(_0x1159c5))throw safeApiFailure(_0xe6a9e6(0x144),_0xe6a9e6(0x140),_0xe6a9e6(0x149)+_0x120e2b+_0xe6a9e6(0x136));_0x1828ba=!![];}let _0x29696b;try{_0x29696b=await listNotificationChannelConfigs(_0x4cf9cf[_0xe6a9e6(0x137)],_0x30cc5e[_0xe6a9e6(0x154)][_0xe6a9e6(0x14b)]),validateNotificationDeleteReadback(_0x29696b,_0x4cf9cf['appCode'],_0x30cc5e[_0xe6a9e6(0x154)]['channelType']);}catch{throw notificationError(_0x1828ba?_0xe6a9e6(0x14a):_0xe6a9e6(0x142),_0xe6a9e6(0x13b)+_0x30cc5e['id']+'\x20delete\x20could\x20not\x20be\x20verified.','Inspect\x20with\x20'+_0x120e2b+_0xe6a9e6(0x13e));}if(_0x29696b[_0xe6a9e6(0x147)](_0x54b56e=>_0x54b56e['id']===_0x30cc5e['id']))throw notificationError(_0x1828ba?_0xe6a9e6(0x14a):'notification_config_delete_verification_failed',_0xe6a9e6(0x13b)+_0x30cc5e['id']+_0xe6a9e6(0x14c),_0xe6a9e6(0x149)+_0x120e2b+_0xe6a9e6(0x13e));const _0x443618=[REFERENCE_WARNING];return _0x1828ba&&_0x443618[_0xe6a9e6(0x146)](_0xe6a9e6(0x155)),{'ok':!![],'data':{'operation':_0xe6a9e6(0x144),'selector':notificationSelector(_0x30cc5e['before']),'before':projectNotificationConfig(_0x30cc5e[_0xe6a9e6(0x154)]),'after':null,'dryRun':![],'backend':{'method':_0xe6a9e6(0x14d),'path':DELETE_PATH},'warnings':_0x443618,'verification':{'status':_0xe6a9e6(0x143),'absenceConfirmed':!![],'recoveredAfterUnknownResponse':_0x1828ba,'lookupCommand':_0x120e2b}},'message':'Deleted\x20notification\x20config\x20'+_0x30cc5e['id']};}};
@@ -1 +1 @@
1
- const a194_0x2665d8=a194_0x49a3;function a194_0x49a3(_0x342abf,_0x72b832){_0x342abf=_0x342abf-0x165;const _0x2fce47=a194_0x2fce();let _0x49a384=_0x2fce47[_0x342abf];return _0x49a384;}(function(_0x1b2f01,_0x295665){const _0x349b66=a194_0x49a3,_0x1acbca=_0x1b2f01();while(!![]){try{const _0x3f65e7=parseInt(_0x349b66(0x178))/0x1*(parseInt(_0x349b66(0x17c))/0x2)+parseInt(_0x349b66(0x17a))/0x3*(-parseInt(_0x349b66(0x16a))/0x4)+parseInt(_0x349b66(0x16b))/0x5*(-parseInt(_0x349b66(0x17e))/0x6)+parseInt(_0x349b66(0x168))/0x7+parseInt(_0x349b66(0x16c))/0x8*(-parseInt(_0x349b66(0x177))/0x9)+-parseInt(_0x349b66(0x167))/0xa+parseInt(_0x349b66(0x170))/0xb;if(_0x3f65e7===_0x295665)break;else _0x1acbca['push'](_0x1acbca['shift']());}catch(_0x2d11f8){_0x1acbca['push'](_0x1acbca['shift']());}}}(a194_0x2fce,0x9dd6e));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{listNotificationChannelConfigs}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a194_0x2fce(){const _0x18a9e2=['trim','all','--all\x20and\x20--type\x20are\x20mutually\x20exclusive.','appCode','length','bool','477boifSn','7KRxZfr','\x20notification\x20config(s)\x20across\x20all\x20channel\x20types','9pCksKF','\x20notification\x20config(s)','185066HrIfoC','List\x20configs\x20for\x20every\x20supported\x20notification\x20channel\x20type','17526WzluKk','Found\x20','map','List\x20app-level\x20notification\x20configs\x20and\x20their\x20configCode\x20values','4809720CMlBKe','6166181kevaNN','type','1020716AuizzH','5ptDdMy','99832WAhKgP','Notification\x20channel\x20type','boolean','Use\x20--all,\x20or\x20query\x20one\x20explicit\x20--type.','11315843CoMhVB'];a194_0x2fce=function(){return _0x18a9e2;};return a194_0x2fce();}import{NOTIFICATION_CHANNEL_TYPES,projectNotificationListConfig,readNotificationChannelType}from'../../commands/notification/shared.js';export const notificationConfigList={'service':'notification','command':'config-list','description':a194_0x2665d8(0x166),'risk':'read','flags':[APPCODE_FLAG_OPTIONAL,{'name':a194_0x2665d8(0x169),'type':'string','description':a194_0x2665d8(0x16d),'enum':NOTIFICATION_CHANNEL_TYPES},{'name':a194_0x2665d8(0x172),'type':a194_0x2665d8(0x16e),'default':![],'description':a194_0x2665d8(0x17d)}],async 'validate'(_0x5e318f){const _0x331ac4=a194_0x2665d8;if(_0x5e318f['bool'](_0x331ac4(0x172))&&_0x5e318f['str'](_0x331ac4(0x169))[_0x331ac4(0x171)]())throw CliErrors['validation'](_0x331ac4(0x173),_0x331ac4(0x16f));if(_0x5e318f[_0x331ac4(0x176)](_0x331ac4(0x172)))return;readNotificationChannelType(_0x5e318f);},async 'execute'(_0x5f5252){const _0x507cfa=a194_0x2665d8;if(_0x5f5252[_0x507cfa(0x176)](_0x507cfa(0x172))){const _0x5e26fb=await Promise[_0x507cfa(0x172)](NOTIFICATION_CHANNEL_TYPES[_0x507cfa(0x165)](_0x409708=>listNotificationChannelConfigs(_0x5f5252[_0x507cfa(0x174)],_0x409708))),_0x345544=_0x5e26fb['flat']()[_0x507cfa(0x165)](projectNotificationListConfig);return{'ok':!![],'data':{'appCode':_0x5f5252[_0x507cfa(0x174)],'channelTypes':NOTIFICATION_CHANNEL_TYPES,'count':_0x345544[_0x507cfa(0x175)],'configs':_0x345544},'message':'Found\x20'+_0x345544[_0x507cfa(0x175)]+_0x507cfa(0x179)};}const _0xfecf2a=readNotificationChannelType(_0x5f5252),_0x1ee54b=await listNotificationChannelConfigs(_0x5f5252['appCode'],_0xfecf2a),_0x3d0d5c=_0x1ee54b[_0x507cfa(0x165)](projectNotificationListConfig);return{'ok':!![],'data':{'appCode':_0x5f5252[_0x507cfa(0x174)],'channelType':_0xfecf2a,'count':_0x3d0d5c[_0x507cfa(0x175)],'configs':_0x3d0d5c},'message':_0x507cfa(0x17f)+_0x3d0d5c[_0x507cfa(0x175)]+'\x20'+_0xfecf2a+_0x507cfa(0x17b)};}};
1
+ const a194_0x2402b6=a194_0x4190;function a194_0x4190(_0x52cb18,_0x288f13){_0x52cb18=_0x52cb18-0x166;const _0x196a9c=a194_0x196a();let _0x419030=_0x196a9c[_0x52cb18];return _0x419030;}(function(_0x267448,_0x4225b5){const _0x2c595b=a194_0x4190,_0x451022=_0x267448();while(!![]){try{const _0x351035=parseInt(_0x2c595b(0x17e))/0x1*(-parseInt(_0x2c595b(0x17b))/0x2)+parseInt(_0x2c595b(0x172))/0x3*(parseInt(_0x2c595b(0x171))/0x4)+parseInt(_0x2c595b(0x183))/0x5+-parseInt(_0x2c595b(0x181))/0x6*(parseInt(_0x2c595b(0x173))/0x7)+parseInt(_0x2c595b(0x16c))/0x8*(-parseInt(_0x2c595b(0x16f))/0x9)+-parseInt(_0x2c595b(0x177))/0xa+parseInt(_0x2c595b(0x170))/0xb;if(_0x351035===_0x4225b5)break;else _0x451022['push'](_0x451022['shift']());}catch(_0x46edbe){_0x451022['push'](_0x451022['shift']());}}}(a194_0x196a,0x844cc));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{listNotificationChannelConfigs}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{NOTIFICATION_CHANNEL_TYPES,projectNotificationListConfig,readNotificationChannelType}from'../../commands/notification/shared.js';function a194_0x196a(){const _0x38a6d9=['4hGyXYH','1408326eBFJLy','1883wIMqFn','bool','appCode','all','9674720OqOUBK','Use\x20--all,\x20or\x20query\x20one\x20explicit\x20--type.','Notification\x20channel\x20type','map','156802WMpEhx','trim','List\x20app-level\x20notification\x20configs\x20and\x20their\x20configCode\x20values','7xzmIyG','boolean','List\x20configs\x20for\x20every\x20supported\x20notification\x20channel\x20type','678xOqWrt','length','3450325ULonXM','notification','config-list','str','string','\x20notification\x20config(s)\x20across\x20all\x20channel\x20types','type','376048ZounCj','--all\x20and\x20--type\x20are\x20mutually\x20exclusive.','Found\x20','54KYNviG','13322155RDcssP'];a194_0x196a=function(){return _0x38a6d9;};return a194_0x196a();}export const notificationConfigList={'service':a194_0x2402b6(0x166),'command':a194_0x2402b6(0x167),'description':a194_0x2402b6(0x17d),'risk':'read','flags':[APPCODE_FLAG_OPTIONAL,{'name':a194_0x2402b6(0x16b),'type':a194_0x2402b6(0x169),'description':a194_0x2402b6(0x179),'enum':NOTIFICATION_CHANNEL_TYPES},{'name':'all','type':a194_0x2402b6(0x17f),'default':![],'description':a194_0x2402b6(0x180)}],async 'validate'(_0x5d5e11){const _0x39045f=a194_0x2402b6;if(_0x5d5e11[_0x39045f(0x174)]('all')&&_0x5d5e11[_0x39045f(0x168)](_0x39045f(0x16b))[_0x39045f(0x17c)]())throw CliErrors['validation'](_0x39045f(0x16d),_0x39045f(0x178));if(_0x5d5e11[_0x39045f(0x174)](_0x39045f(0x176)))return;readNotificationChannelType(_0x5d5e11);},async 'execute'(_0x2b66cd){const _0x3f5504=a194_0x2402b6;if(_0x2b66cd[_0x3f5504(0x174)]('all')){const _0x40fab4=await Promise[_0x3f5504(0x176)](NOTIFICATION_CHANNEL_TYPES[_0x3f5504(0x17a)](_0x13a24d=>listNotificationChannelConfigs(_0x2b66cd[_0x3f5504(0x175)],_0x13a24d))),_0x303b89=_0x40fab4['flat']()['map'](projectNotificationListConfig);return{'ok':!![],'data':{'appCode':_0x2b66cd[_0x3f5504(0x175)],'channelTypes':NOTIFICATION_CHANNEL_TYPES,'count':_0x303b89[_0x3f5504(0x182)],'configs':_0x303b89},'message':'Found\x20'+_0x303b89[_0x3f5504(0x182)]+_0x3f5504(0x16a)};}const _0x30a243=readNotificationChannelType(_0x2b66cd),_0x10037b=await listNotificationChannelConfigs(_0x2b66cd[_0x3f5504(0x175)],_0x30a243),_0x421dad=_0x10037b[_0x3f5504(0x17a)](projectNotificationListConfig);return{'ok':!![],'data':{'appCode':_0x2b66cd[_0x3f5504(0x175)],'channelType':_0x30a243,'count':_0x421dad[_0x3f5504(0x182)],'configs':_0x421dad},'message':_0x3f5504(0x16e)+_0x421dad['length']+'\x20'+_0x30a243+'\x20notification\x20config(s)'};}};
@@ -1 +1 @@
1
- function a195_0x4f2f(_0x11614c,_0x38ef58){_0x11614c=_0x11614c-0x1d7;const _0x1412cf=a195_0x1412();let _0x4f2fa7=_0x1412cf[_0x11614c];return _0x4f2fa7;}function a195_0x1412(){const _0x466ebb=['18nhqIJx','mutation','238562RbKeQC','\x20via\x20','appCode','5226UpFvQo','Inspect\x20with\x20--id\x20','4243294eynryw',';\x20do\x20not\x20resubmit\x20automatically.','/notification/channel-config/update','payload','POST','Inspect\x20ID\x20','128429yPutyl','verified','Notification\x20config\x20','high-risk-write','planned','2132220MjWypQ','notification_config_update_verification_failed',';\x20no\x20automatic\x20retry\x20was\x20attempted.','notification_config_update_outcome_unknown','before','patch','142327vgKPRE','10pBZfBD','333010UYizNP','verifiedFields','channelType','provesChange','Update\x20an\x20app-level\x20notification\x20config\x20from\x20a\x20secure\x20JSON\x20patch','8CGvyfa','update','notification_config_update_verification_unavailable','allMatch','9kPLRfT','notification','\x20with\x20'];a195_0x1412=function(){return _0x466ebb;};return a195_0x1412();}const a195_0x4d8736=a195_0x4f2f;(function(_0x1561ec,_0x24c254){const _0x7c4fa3=a195_0x4f2f,_0x34f4ea=_0x1561ec();while(!![]){try{const _0x199ed5=-parseInt(_0x7c4fa3(0x1dc))/0x1+-parseInt(_0x7c4fa3(0x1ec))/0x2*(parseInt(_0x7c4fa3(0x1e7))/0x3)+parseInt(_0x7c4fa3(0x1fc))/0x4+-parseInt(_0x7c4fa3(0x1dd))/0x5*(parseInt(_0x7c4fa3(0x1ef))/0x6)+parseInt(_0x7c4fa3(0x1f7))/0x7*(parseInt(_0x7c4fa3(0x1e3))/0x8)+-parseInt(_0x7c4fa3(0x1ea))/0x9*(parseInt(_0x7c4fa3(0x1de))/0xa)+parseInt(_0x7c4fa3(0x1f1))/0xb;if(_0x199ed5===_0x24c254)break;else _0x34f4ea['push'](_0x34f4ea['shift']());}catch(_0x1960a4){_0x34f4ea['push'](_0x34f4ea['shift']());}}}(a195_0x1412,0x5a002));import{asDryRunResult}from'../../commands/common/dry-run.js';import{getNotificationChannelConfig,isPlatformTransportFailure,updateNotificationChannelConfig}from'../../core/api-client.js';import{assertSingleNotificationSource,mergeUpdateInput,normalizeExactNotificationConfig,notificationError,notificationLookupCommand,notificationSelector,NOTIFICATION_APP_FLAG,NOTIFICATION_ID_FLAG,NOTIFICATION_INPUT_FLAGS,plannedUpdateProjection,projectNotificationConfig,readNotificationDocument,readNotificationId,requestedSafeFieldsMatch,requireNotificationExplicitYes,requireExactNotificationConfig,safeApiFailure}from'../../commands/notification/shared.js';const UPDATE_PATH=a195_0x4d8736(0x1f3);async function prepareUpdate(_0x27c91e){const _0x538bd0=a195_0x4d8736,_0x19656e=readNotificationId(_0x27c91e),_0x5cb3fd=await readNotificationDocument(_0x27c91e,_0x538bd0(0x1e4)),_0xc7f24=await requireExactNotificationConfig(_0x27c91e['appCode'],_0x19656e,_0x538bd0(0x1e4));return{'id':_0x19656e,'patch':_0x5cb3fd,'before':_0xc7f24,'payload':mergeUpdateInput(_0xc7f24,_0x5cb3fd),'planned':plannedUpdateProjection(_0xc7f24,_0x5cb3fd)};}export const notificationConfigUpdate={'service':a195_0x4d8736(0x1e8),'command':'config-update','description':a195_0x4d8736(0x1e2),'risk':a195_0x4d8736(0x1fa),'requiresAppCode':!![],'structuredErrors':!![],'flags':[NOTIFICATION_ID_FLAG,...NOTIFICATION_INPUT_FLAGS,NOTIFICATION_APP_FLAG],async 'validate'(_0x5a4863){readNotificationId(_0x5a4863),assertSingleNotificationSource(_0x5a4863),requireNotificationExplicitYes(_0x5a4863);},async 'dryRun'(_0x46e8d8){const _0x1993d9=a195_0x4d8736,_0x54905e=await prepareUpdate(_0x46e8d8),_0x8e5c91=notificationLookupCommand(_0x46e8d8['appCode'],_0x54905e[_0x1993d9(0x1da)][_0x1993d9(0x1e0)]);return asDryRunResult({'operation':'update','selector':notificationSelector(_0x54905e[_0x1993d9(0x1da)]),'before':projectNotificationConfig(_0x54905e[_0x1993d9(0x1da)]),'after':_0x54905e['planned'],'dryRun':!![],'backend':{'method':_0x1993d9(0x1f5),'path':UPDATE_PATH},'warnings':[],'verification':{'status':_0x1993d9(0x1fb),'lookupCommand':_0x8e5c91}},{'method':_0x1993d9(0x1f5),'url':UPDATE_PATH});},async 'execute'(_0x47e54c){const _0x137779=a195_0x4d8736;requireNotificationExplicitYes(_0x47e54c);const _0x282dc9=await prepareUpdate(_0x47e54c),_0x58c27e=notificationLookupCommand(_0x47e54c[_0x137779(0x1ee)],_0x282dc9[_0x137779(0x1da)]['channelType']);let _0x40e7a4=![];try{await updateNotificationChannelConfig(_0x282dc9[_0x137779(0x1f4)]);}catch(_0x596205){if(!isPlatformTransportFailure(_0x596205))throw safeApiFailure('update',_0x137779(0x1eb),_0x137779(0x1f6)+_0x282dc9['id']+_0x137779(0x1e9)+_0x58c27e+_0x137779(0x1d8));_0x40e7a4=!![];}let _0x34a920;try{const _0x1a1773=await getNotificationChannelConfig(_0x282dc9['id'],_0x47e54c[_0x137779(0x1ee)]);_0x34a920=normalizeExactNotificationConfig(_0x1a1773,_0x282dc9['id'],_0x47e54c['appCode']);}catch{throw notificationError(_0x40e7a4?_0x137779(0x1d9):_0x137779(0x1e5),_0x137779(0x1f9)+_0x282dc9['id']+'\x20update\x20could\x20not\x20be\x20verified\x20by\x20exact\x20ID.',_0x137779(0x1f0)+_0x282dc9['id']+_0x137779(0x1ed)+_0x58c27e+_0x137779(0x1f2));}const _0x10621d=requestedSafeFieldsMatch(_0x282dc9['before'],_0x34a920,_0x282dc9[_0x137779(0x1db)]);if(!_0x10621d[_0x137779(0x1e6)]||_0x40e7a4&&!_0x10621d[_0x137779(0x1e1)])throw notificationError(_0x40e7a4?_0x137779(0x1d9):_0x137779(0x1d7),_0x137779(0x1f9)+_0x282dc9['id']+'\x20readback\x20does\x20not\x20prove\x20the\x20requested\x20update.',_0x137779(0x1f0)+_0x282dc9['id']+'\x20via\x20'+_0x58c27e+_0x137779(0x1f2));const _0x253737=_0x40e7a4?['Update\x20response\x20was\x20unavailable;\x20exact-ID\x20readback\x20proved\x20changed\x20safe\x20fields\x20without\x20resubmitting.']:[];return{'ok':!![],'data':{'operation':_0x137779(0x1e4),'selector':notificationSelector(_0x34a920),'before':projectNotificationConfig(_0x282dc9[_0x137779(0x1da)]),'after':projectNotificationConfig(_0x34a920),'dryRun':![],'backend':{'method':_0x137779(0x1f5),'path':UPDATE_PATH},'warnings':_0x253737,'verification':{'status':_0x137779(0x1f8),'recoveredAfterUnknownResponse':_0x40e7a4,'verifiedFields':_0x10621d[_0x137779(0x1df)],'lookupCommand':_0x58c27e}},'message':'Updated\x20notification\x20config\x20'+_0x34a920['id']};}};
1
+ function a195_0x55fd(_0x31850f,_0x52485c){_0x31850f=_0x31850f-0x6c;const _0x4d7bcb=a195_0x4d7b();let _0x55fd0f=_0x4d7bcb[_0x31850f];return _0x55fd0f;}const a195_0x13b8bc=a195_0x55fd;(function(_0x30e301,_0x5892e2){const _0x4053d8=a195_0x55fd,_0x5a3962=_0x30e301();while(!![]){try{const _0x9138e6=-parseInt(_0x4053d8(0x77))/0x1*(parseInt(_0x4053d8(0x71))/0x2)+parseInt(_0x4053d8(0x87))/0x3+-parseInt(_0x4053d8(0x88))/0x4*(-parseInt(_0x4053d8(0x7f))/0x5)+-parseInt(_0x4053d8(0x7c))/0x6*(parseInt(_0x4053d8(0x8b))/0x7)+-parseInt(_0x4053d8(0x6f))/0x8+-parseInt(_0x4053d8(0x6e))/0x9*(parseInt(_0x4053d8(0x76))/0xa)+-parseInt(_0x4053d8(0x72))/0xb*(-parseInt(_0x4053d8(0x73))/0xc);if(_0x9138e6===_0x5892e2)break;else _0x5a3962['push'](_0x5a3962['shift']());}catch(_0x5be1bc){_0x5a3962['push'](_0x5a3962['shift']());}}}(a195_0x4d7b,0x3b068));import{asDryRunResult}from'../../commands/common/dry-run.js';import{getNotificationChannelConfig,isPlatformTransportFailure,updateNotificationChannelConfig}from'../../core/api-client.js';import{assertSingleNotificationSource,mergeUpdateInput,normalizeExactNotificationConfig,notificationError,notificationLookupCommand,notificationSelector,NOTIFICATION_APP_FLAG,NOTIFICATION_ID_FLAG,NOTIFICATION_INPUT_FLAGS,plannedUpdateProjection,projectNotificationConfig,readNotificationDocument,readNotificationId,requestedSafeFieldsMatch,requireNotificationExplicitYes,requireExactNotificationConfig,safeApiFailure}from'../../commands/notification/shared.js';const UPDATE_PATH=a195_0x13b8bc(0x70);async function prepareUpdate(_0x464f1e){const _0x2be1df=a195_0x13b8bc,_0x39932e=readNotificationId(_0x464f1e),_0x4b6ff5=await readNotificationDocument(_0x464f1e,_0x2be1df(0x6d)),_0x580116=await requireExactNotificationConfig(_0x464f1e[_0x2be1df(0x74)],_0x39932e,_0x2be1df(0x6d));return{'id':_0x39932e,'patch':_0x4b6ff5,'before':_0x580116,'payload':mergeUpdateInput(_0x580116,_0x4b6ff5),'planned':plannedUpdateProjection(_0x580116,_0x4b6ff5)};}export const notificationConfigUpdate={'service':'notification','command':'config-update','description':a195_0x13b8bc(0x91),'risk':a195_0x13b8bc(0x8f),'requiresAppCode':!![],'structuredErrors':!![],'flags':[NOTIFICATION_ID_FLAG,...NOTIFICATION_INPUT_FLAGS,NOTIFICATION_APP_FLAG],async 'validate'(_0x4eb9fc){readNotificationId(_0x4eb9fc),assertSingleNotificationSource(_0x4eb9fc),requireNotificationExplicitYes(_0x4eb9fc);},async 'dryRun'(_0x5766c5){const _0x2fe966=a195_0x13b8bc,_0x2366dd=await prepareUpdate(_0x5766c5),_0x8e1998=notificationLookupCommand(_0x5766c5[_0x2fe966(0x74)],_0x2366dd[_0x2fe966(0x7d)][_0x2fe966(0x7b)]);return asDryRunResult({'operation':'update','selector':notificationSelector(_0x2366dd['before']),'before':projectNotificationConfig(_0x2366dd[_0x2fe966(0x7d)]),'after':_0x2366dd[_0x2fe966(0x8e)],'dryRun':!![],'backend':{'method':_0x2fe966(0x8c),'path':UPDATE_PATH},'warnings':[],'verification':{'status':_0x2fe966(0x8e),'lookupCommand':_0x8e1998}},{'method':_0x2fe966(0x8c),'url':UPDATE_PATH});},async 'execute'(_0xf60063){const _0x29a125=a195_0x13b8bc;requireNotificationExplicitYes(_0xf60063);const _0xc7fc40=await prepareUpdate(_0xf60063),_0x2a8c5b=notificationLookupCommand(_0xf60063[_0x29a125(0x74)],_0xc7fc40[_0x29a125(0x7d)][_0x29a125(0x7b)]);let _0x4ca3f7=![];try{await updateNotificationChannelConfig(_0xc7fc40[_0x29a125(0x79)]);}catch(_0x4afeb4){if(!isPlatformTransportFailure(_0x4afeb4))throw safeApiFailure(_0x29a125(0x6d),_0x29a125(0x78),_0x29a125(0x8a)+_0xc7fc40['id']+_0x29a125(0x8d)+_0x2a8c5b+_0x29a125(0x75));_0x4ca3f7=!![];}let _0x5b92f2;try{const _0x55ee07=await getNotificationChannelConfig(_0xc7fc40['id'],_0xf60063[_0x29a125(0x74)]);_0x5b92f2=normalizeExactNotificationConfig(_0x55ee07,_0xc7fc40['id'],_0xf60063[_0x29a125(0x74)]);}catch{throw notificationError(_0x4ca3f7?_0x29a125(0x82):'notification_config_update_verification_unavailable',_0x29a125(0x80)+_0xc7fc40['id']+_0x29a125(0x83),_0x29a125(0x7e)+_0xc7fc40['id']+_0x29a125(0x81)+_0x2a8c5b+_0x29a125(0x7a));}const _0x577ee3=requestedSafeFieldsMatch(_0xc7fc40[_0x29a125(0x7d)],_0x5b92f2,_0xc7fc40[_0x29a125(0x90)]);if(!_0x577ee3[_0x29a125(0x6c)]||_0x4ca3f7&&!_0x577ee3[_0x29a125(0x92)])throw notificationError(_0x4ca3f7?_0x29a125(0x82):'notification_config_update_verification_failed',_0x29a125(0x80)+_0xc7fc40['id']+_0x29a125(0x89),_0x29a125(0x7e)+_0xc7fc40['id']+_0x29a125(0x81)+_0x2a8c5b+';\x20do\x20not\x20resubmit\x20automatically.');const _0x144f42=_0x4ca3f7?['Update\x20response\x20was\x20unavailable;\x20exact-ID\x20readback\x20proved\x20changed\x20safe\x20fields\x20without\x20resubmitting.']:[];return{'ok':!![],'data':{'operation':_0x29a125(0x6d),'selector':notificationSelector(_0x5b92f2),'before':projectNotificationConfig(_0xc7fc40[_0x29a125(0x7d)]),'after':projectNotificationConfig(_0x5b92f2),'dryRun':![],'backend':{'method':_0x29a125(0x8c),'path':UPDATE_PATH},'warnings':_0x144f42,'verification':{'status':_0x29a125(0x85),'recoveredAfterUnknownResponse':_0x4ca3f7,'verifiedFields':_0x577ee3[_0x29a125(0x84)],'lookupCommand':_0x2a8c5b}},'message':_0x29a125(0x86)+_0x5b92f2['id']};}};function a195_0x4d7b(){const _0x148cc1=['channelType','18tcpmxf','before','Inspect\x20with\x20--id\x20','15LWeJeq','Notification\x20config\x20','\x20via\x20','notification_config_update_outcome_unknown','\x20update\x20could\x20not\x20be\x20verified\x20by\x20exact\x20ID.','verifiedFields','verified','Updated\x20notification\x20config\x20','719664TMoTbH','26936PzUjHZ','\x20readback\x20does\x20not\x20prove\x20the\x20requested\x20update.','Inspect\x20ID\x20','208957JVaewZ','POST','\x20with\x20','planned','high-risk-write','patch','Update\x20an\x20app-level\x20notification\x20config\x20from\x20a\x20secure\x20JSON\x20patch','provesChange','allMatch','update','3861153tUmCbQ','1511960RKnWHP','/notification/channel-config/update','20egNoaT','8969983YJWqmD','12roSdQT','appCode',';\x20no\x20automatic\x20retry\x20was\x20attempted.','10wCheMh','12621NlKyVE','mutation','payload',';\x20do\x20not\x20resubmit\x20automatically.'];a195_0x4d7b=function(){return _0x148cc1;};return a195_0x4d7b();}
@@ -1 +1 @@
1
- function a196_0x67b1(){const _0x1a18d5=['2515702varPyi','81NKxnQy','8TdCSfg','6tdIiLb','3322737LTANZk','436120vHJkSZ','1958316huzeEK','658366fbDSWQ','1wjcRdE','463108heRcbN','1415LEIsgP','5214CqlQYU'];a196_0x67b1=function(){return _0x1a18d5;};return a196_0x67b1();}(function(_0x4e8c55,_0x4304ba){const _0x2d31d8=a196_0x31db,_0x30e78a=_0x4e8c55();while(!![]){try{const _0x590cd4=parseInt(_0x2d31d8(0x11e))/0x1*(parseInt(_0x2d31d8(0x129))/0x2)+-parseInt(_0x2d31d8(0x125))/0x3*(parseInt(_0x2d31d8(0x11f))/0x4)+parseInt(_0x2d31d8(0x120))/0x5*(parseInt(_0x2d31d8(0x121))/0x6)+parseInt(_0x2d31d8(0x122))/0x7*(-parseInt(_0x2d31d8(0x124))/0x8)+-parseInt(_0x2d31d8(0x123))/0x9*(-parseInt(_0x2d31d8(0x127))/0xa)+-parseInt(_0x2d31d8(0x126))/0xb+parseInt(_0x2d31d8(0x128))/0xc;if(_0x590cd4===_0x4304ba)break;else _0x30e78a['push'](_0x30e78a['shift']());}catch(_0x57103a){_0x30e78a['push'](_0x30e78a['shift']());}}}(a196_0x67b1,0x3a0ec));import{notificationConfigList}from'../../commands/notification/config-list.js';import{notificationConfigCreate}from'../../commands/notification/config-create.js';import{notificationConfigUpdate}from'../../commands/notification/config-update.js';import{notificationConfigDelete}from'../../commands/notification/config-delete.js';function a196_0x31db(_0x45eb76,_0x409ae9){_0x45eb76=_0x45eb76-0x11e;const _0x67b18d=a196_0x67b1();let _0x31dba5=_0x67b18d[_0x45eb76];return _0x31dba5;}export const notificationDefinitions=[notificationConfigList,notificationConfigCreate,notificationConfigUpdate,notificationConfigDelete];
1
+ (function(_0x159ff1,_0x2a3b08){const _0x81c7ef=a196_0x1c0d,_0x1ae82a=_0x159ff1();while(!![]){try{const _0x3d5b7c=parseInt(_0x81c7ef(0x189))/0x1*(-parseInt(_0x81c7ef(0x18e))/0x2)+parseInt(_0x81c7ef(0x18a))/0x3+-parseInt(_0x81c7ef(0x190))/0x4*(-parseInt(_0x81c7ef(0x187))/0x5)+-parseInt(_0x81c7ef(0x18b))/0x6*(-parseInt(_0x81c7ef(0x188))/0x7)+-parseInt(_0x81c7ef(0x18c))/0x8+parseInt(_0x81c7ef(0x18f))/0x9+parseInt(_0x81c7ef(0x191))/0xa*(-parseInt(_0x81c7ef(0x18d))/0xb);if(_0x3d5b7c===_0x2a3b08)break;else _0x1ae82a['push'](_0x1ae82a['shift']());}catch(_0x2a31c6){_0x1ae82a['push'](_0x1ae82a['shift']());}}}(a196_0xfd6d,0xbe50d));import{notificationConfigList}from'../../commands/notification/config-list.js';import{notificationConfigCreate}from'../../commands/notification/config-create.js';import{notificationConfigUpdate}from'../../commands/notification/config-update.js';function a196_0x1c0d(_0x25a07c,_0x4afa79){_0x25a07c=_0x25a07c-0x187;const _0xfd6d0a=a196_0xfd6d();let _0x1c0d02=_0xfd6d0a[_0x25a07c];return _0x1c0d02;}function a196_0xfd6d(){const _0x53114a=['3333RzAocA','180YdggaK','3951405zgzlfB','2463248VhGfyW','15430zypDkC','5dZpRoV','1153495gkYkFx','6113ZGCDEA','208275FakRSo','54dxqfmM','6480920HLFVUe'];a196_0xfd6d=function(){return _0x53114a;};return a196_0xfd6d();}import{notificationConfigDelete}from'../../commands/notification/config-delete.js';export const notificationDefinitions=[notificationConfigList,notificationConfigCreate,notificationConfigUpdate,notificationConfigDelete];