@lovrabet/rabetbase-cli 2.5.5-beta.1 → 2.5.5-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (363) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/api-group.js +1 -1
  3. package/lib/api/fetch-model-list.js +1 -1
  4. package/lib/api/generate-api-file.js +1 -1
  5. package/lib/api/generate-sdk-config-file.js +1 -1
  6. package/lib/api/legacy-api-file.js +1 -1
  7. package/lib/api/model-registry-file.js +1 -1
  8. package/lib/api/model-registry-scaffold.js +1 -1
  9. package/lib/api/model-source.js +1 -1
  10. package/lib/auth/auth-server-ui.js +1 -1
  11. package/lib/auth/auth-server.js +1 -1
  12. package/lib/auth/constant.js +1 -1
  13. package/lib/auth/get-cookie.js +1 -1
  14. package/lib/auth/get-session-user.js +1 -1
  15. package/lib/auth/is-session-valid.js +1 -1
  16. package/lib/auth/login-success-html.js +1 -1
  17. package/lib/auth/logout.js +1 -1
  18. package/lib/cli-flags.js +1 -1
  19. package/lib/cli.js +1 -1
  20. package/lib/commands/api/generate.js +1 -1
  21. package/lib/commands/api/index.js +1 -1
  22. package/lib/commands/api/list.js +1 -1
  23. package/lib/commands/api/pull.js +1 -1
  24. package/lib/commands/api/shared.js +1 -1
  25. package/lib/commands/app/detail.js +1 -1
  26. package/lib/commands/app/index.js +1 -1
  27. package/lib/commands/app/list.js +1 -1
  28. package/lib/commands/app/members-list.js +1 -1
  29. package/lib/commands/app/remote-directory.js +1 -1
  30. package/lib/commands/app/shared.js +1 -1
  31. package/lib/commands/app-config/delete.js +1 -1
  32. package/lib/commands/app-config/get.js +1 -1
  33. package/lib/commands/app-config/index.js +1 -1
  34. package/lib/commands/app-config/list.js +1 -1
  35. package/lib/commands/app-config/set.js +1 -1
  36. package/lib/commands/app-config/shared.js +1 -1
  37. package/lib/commands/auth/index.js +1 -1
  38. package/lib/commands/bff/create.js +1 -1
  39. package/lib/commands/bff/delete.js +1 -1
  40. package/lib/commands/bff/detail.js +1 -1
  41. package/lib/commands/bff/index.js +1 -1
  42. package/lib/commands/bff/list.js +1 -1
  43. package/lib/commands/bff/logs.js +1 -1
  44. package/lib/commands/bff/pull.js +1 -1
  45. package/lib/commands/bff/push.js +1 -1
  46. package/lib/commands/bff/status.js +1 -1
  47. package/lib/commands/cli-skill/index.js +1 -1
  48. package/lib/commands/cli-update.js +1 -1
  49. package/lib/commands/codegen/index.js +1 -1
  50. package/lib/commands/codegen/sdk.js +1 -1
  51. package/lib/commands/codegen/sql.js +1 -1
  52. package/lib/commands/common/app-registry.js +1 -1
  53. package/lib/commands/common/app-selector.js +1 -1
  54. package/lib/commands/common/async-task.js +1 -1
  55. package/lib/commands/common/dry-run.js +1 -1
  56. package/lib/commands/common/flags.js +1 -1
  57. package/lib/commands/common/local-file.js +1 -1
  58. package/lib/commands/common/validate.js +1 -1
  59. package/lib/commands/config/delete.js +1 -1
  60. package/lib/commands/config/get.js +1 -1
  61. package/lib/commands/config/index.js +1 -1
  62. package/lib/commands/config/init.js +1 -1
  63. package/lib/commands/config/list.js +1 -1
  64. package/lib/commands/config/set.js +1 -1
  65. package/lib/commands/config/shared.js +1 -1
  66. package/lib/commands/dataset/batch-design.js +1 -1
  67. package/lib/commands/dataset/business-group-update.js +1 -1
  68. package/lib/commands/dataset/business-groups.js +1 -1
  69. package/lib/commands/dataset/capability.js +1 -1
  70. package/lib/commands/dataset/cross-relation-create.js +1 -1
  71. package/lib/commands/dataset/cross-relation-delete.js +1 -1
  72. package/lib/commands/dataset/cross-relation-list.js +1 -1
  73. package/lib/commands/dataset/cross-relation-shared.js +1 -1
  74. package/lib/commands/dataset/cross-relation-update.js +1 -1
  75. package/lib/commands/dataset/delete.js +1 -1
  76. package/lib/commands/dataset/detail.js +1 -1
  77. package/lib/commands/dataset/extend-update.js +1 -1
  78. package/lib/commands/dataset/field-restore.js +1 -1
  79. package/lib/commands/dataset/field-update.js +1 -1
  80. package/lib/commands/dataset/generate.js +1 -1
  81. package/lib/commands/dataset/index.js +1 -1
  82. package/lib/commands/dataset/list.js +1 -1
  83. package/lib/commands/dataset/operations.js +1 -1
  84. package/lib/commands/dataset/relation-audit.js +1 -1
  85. package/lib/commands/dataset/relation-create.js +1 -1
  86. package/lib/commands/dataset/relation-delete.js +1 -1
  87. package/lib/commands/dataset/relation-shared.js +1 -1
  88. package/lib/commands/dataset/relation-update.js +1 -1
  89. package/lib/commands/dataset/relations.js +1 -1
  90. package/lib/commands/dataset/rename.js +1 -1
  91. package/lib/commands/dataset/restore.js +1 -1
  92. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  93. package/lib/commands/db/analysis-batching.js +1 -1
  94. package/lib/commands/db/analyze-batch-plan.js +1 -1
  95. package/lib/commands/db/analyze-cancel.js +1 -1
  96. package/lib/commands/db/analyze-start.js +1 -1
  97. package/lib/commands/db/analyze-status.js +1 -1
  98. package/lib/commands/db/create.js +1 -1
  99. package/lib/commands/db/delete.js +1 -1
  100. package/lib/commands/db/detail.js +1 -1
  101. package/lib/commands/db/diff-refresh-start.js +1 -1
  102. package/lib/commands/db/diff-refresh-status.js +1 -1
  103. package/lib/commands/db/diff.js +1 -1
  104. package/lib/commands/db/index.js +1 -1
  105. package/lib/commands/db/list.js +1 -1
  106. package/lib/commands/db/shared.js +1 -1
  107. package/lib/commands/db/table-diff-shared.js +1 -1
  108. package/lib/commands/db/tables.js +1 -1
  109. package/lib/commands/db/test.js +1 -1
  110. package/lib/commands/db/update.js +1 -1
  111. package/lib/commands/deployment/index.js +1 -1
  112. package/lib/commands/deployment/sync-all.js +1 -1
  113. package/lib/commands/deployment/sync-jobs.js +1 -1
  114. package/lib/commands/deployment/sync-status.js +1 -1
  115. package/lib/commands/doctor.js +1 -1
  116. package/lib/commands/file/index.js +1 -1
  117. package/lib/commands/flow/create.js +1 -1
  118. package/lib/commands/flow/detail.js +1 -1
  119. package/lib/commands/flow/index.js +1 -1
  120. package/lib/commands/flow/list.js +1 -1
  121. package/lib/commands/flow/publish.js +1 -1
  122. package/lib/commands/flow/runtime-resources-shared.js +1 -1
  123. package/lib/commands/flow/runtime-role-list.js +1 -1
  124. package/lib/commands/flow/runtime-role-user-list.js +1 -1
  125. package/lib/commands/flow/runtime-user-search.js +1 -1
  126. package/lib/commands/flow/shared.js +1 -1
  127. package/lib/commands/flow/update.js +1 -1
  128. package/lib/commands/flow/validate.js +1 -1
  129. package/lib/commands/instant-api-policy/current.js +1 -1
  130. package/lib/commands/instant-api-policy/index.js +1 -1
  131. package/lib/commands/instant-api-policy/init.js +1 -1
  132. package/lib/commands/instant-api-policy/publish.js +1 -1
  133. package/lib/commands/instant-api-policy/pull.js +1 -1
  134. package/lib/commands/instant-api-policy/revision.js +1 -1
  135. package/lib/commands/instant-api-policy/revisions.js +1 -1
  136. package/lib/commands/instant-api-policy/rollback.js +1 -1
  137. package/lib/commands/instant-api-policy/shared.js +1 -1
  138. package/lib/commands/instant-api-policy/validate.js +1 -1
  139. package/lib/commands/issue/index.js +1 -1
  140. package/lib/commands/issue/nudge.js +1 -1
  141. package/lib/commands/issue/report.js +1 -1
  142. package/lib/commands/issue/shared.js +1 -1
  143. package/lib/commands/kb/create.js +1 -1
  144. package/lib/commands/kb/delete.js +1 -1
  145. package/lib/commands/kb/detail.js +1 -1
  146. package/lib/commands/kb/index.js +1 -1
  147. package/lib/commands/kb/list.js +1 -1
  148. package/lib/commands/kb/search.js +1 -1
  149. package/lib/commands/kb/shared.js +1 -1
  150. package/lib/commands/kb/update.js +1 -1
  151. package/lib/commands/logs/index.js +1 -1
  152. package/lib/commands/menu/asset-update.js +1 -1
  153. package/lib/commands/menu/delete.js +1 -1
  154. package/lib/commands/menu/external-link-create.js +1 -1
  155. package/lib/commands/menu/external-link-update.js +1 -1
  156. package/lib/commands/menu/group-create.js +1 -1
  157. package/lib/commands/menu/group-update.js +1 -1
  158. package/lib/commands/menu/index.js +1 -1
  159. package/lib/commands/menu/list.js +1 -1
  160. package/lib/commands/menu/move.js +1 -1
  161. package/lib/commands/menu/regroup-start.js +1 -1
  162. package/lib/commands/menu/rename.js +1 -1
  163. package/lib/commands/menu/shared/compare-table.js +1 -1
  164. package/lib/commands/menu/shared/delete-plan.js +1 -1
  165. package/lib/commands/menu/shared/facts.js +1 -1
  166. package/lib/commands/menu/shared/index.js +1 -1
  167. package/lib/commands/menu/shared/inquirer.js +1 -1
  168. package/lib/commands/menu/shared/local-pages.js +1 -1
  169. package/lib/commands/menu/shared/logic.js +1 -1
  170. package/lib/commands/menu/shared/mutations.js +1 -1
  171. package/lib/commands/menu/shared/path.js +1 -1
  172. package/lib/commands/menu/shared/service.js +1 -1
  173. package/lib/commands/menu/shared/subapp-assets.js +1 -1
  174. package/lib/commands/menu/shared/sync-core.js +1 -1
  175. package/lib/commands/menu/shared/update-core.js +1 -1
  176. package/lib/commands/menu/shared/valid-url.js +1 -1
  177. package/lib/commands/menu/subapp-assets-status.js +1 -1
  178. package/lib/commands/menu/subapp-assets-update.js +1 -1
  179. package/lib/commands/menu/sync.js +1 -1
  180. package/lib/commands/menu/visibility-update.js +1 -1
  181. package/lib/commands/notification/config-create.js +1 -1
  182. package/lib/commands/notification/config-delete.js +1 -1
  183. package/lib/commands/notification/config-list.js +1 -1
  184. package/lib/commands/notification/config-update.js +1 -1
  185. package/lib/commands/notification/index.js +1 -1
  186. package/lib/commands/notification/shared.js +1 -1
  187. package/lib/commands/ocr/index.js +1 -1
  188. package/lib/commands/page/create.js +1 -1
  189. package/lib/commands/page/custom/detail.js +1 -1
  190. package/lib/commands/page/custom/list.js +1 -1
  191. package/lib/commands/page/custom/publish.js +1 -1
  192. package/lib/commands/page/custom/shared.js +1 -1
  193. package/lib/commands/page/custom/syntax.js +1 -1
  194. package/lib/commands/page/custom/update.js +1 -1
  195. package/lib/commands/page/data-list-status.js +1 -1
  196. package/lib/commands/page/generate-start.js +1 -1
  197. package/lib/commands/page/generate-status.js +1 -1
  198. package/lib/commands/page/index.js +1 -1
  199. package/lib/commands/page/pull.js +1 -1
  200. package/lib/commands/page/push.js +1 -1
  201. package/lib/commands/page/relation-audit.js +1 -1
  202. package/lib/commands/page/restore.js +1 -1
  203. package/lib/commands/page/shared.js +1 -1
  204. package/lib/commands/page/sync.js +1 -1
  205. package/lib/commands/project/api-architecture-upgrade.js +1 -1
  206. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  207. package/lib/commands/project/create/format-elapsed.js +1 -1
  208. package/lib/commands/project/create/main.js +1 -1
  209. package/lib/commands/project/create/materialize-project-template.js +1 -1
  210. package/lib/commands/project/create/project-name.js +1 -1
  211. package/lib/commands/project/create/project-template-archive.js +1 -1
  212. package/lib/commands/project/create/project-template-path.js +1 -1
  213. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  214. package/lib/commands/project/create/use-format-code.js +1 -1
  215. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  216. package/lib/commands/project/domain-routing-sync.js +1 -1
  217. package/lib/commands/project/index.js +1 -1
  218. package/lib/commands/project/upgrade.js +1 -1
  219. package/lib/commands/registry.js +1 -1
  220. package/lib/commands/role/delete.js +1 -1
  221. package/lib/commands/role/detail.js +1 -1
  222. package/lib/commands/role/index.js +1 -1
  223. package/lib/commands/role/list.js +1 -1
  224. package/lib/commands/role/shared.js +1 -1
  225. package/lib/commands/role/update.js +1 -1
  226. package/lib/commands/role/user-add.js +1 -1
  227. package/lib/commands/role/user-remove.js +1 -1
  228. package/lib/commands/role/user-resolve.js +1 -1
  229. package/lib/commands/rule/get.js +1 -1
  230. package/lib/commands/rule/index.js +1 -1
  231. package/lib/commands/rule/list.js +1 -1
  232. package/lib/commands/rule/set.js +1 -1
  233. package/lib/commands/rule/shared.js +1 -1
  234. package/lib/commands/run/index.js +1 -1
  235. package/lib/commands/schema.js +1 -1
  236. package/lib/commands/sql/create.js +1 -1
  237. package/lib/commands/sql/delete.js +1 -1
  238. package/lib/commands/sql/detail.js +1 -1
  239. package/lib/commands/sql/exec.js +1 -1
  240. package/lib/commands/sql/index.js +1 -1
  241. package/lib/commands/sql/list.js +1 -1
  242. package/lib/commands/sql/pull.js +1 -1
  243. package/lib/commands/sql/push.js +1 -1
  244. package/lib/commands/sql/shared.js +1 -1
  245. package/lib/commands/sql/status.js +1 -1
  246. package/lib/commands/sql/validate.js +1 -1
  247. package/lib/commands/task/index.js +1 -1
  248. package/lib/commands/task/status.js +1 -1
  249. package/lib/commands/tenant/index.js +1 -1
  250. package/lib/commands/tenant/members-list.js +1 -1
  251. package/lib/commands/tenant/shared.js +1 -1
  252. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  253. package/lib/commands/user-account/feishu-bind.js +1 -1
  254. package/lib/commands/user-account/index.js +1 -1
  255. package/lib/commands/workspace/add.js +1 -1
  256. package/lib/commands/workspace/index.js +1 -1
  257. package/lib/commands/workspace/remove.js +1 -1
  258. package/lib/config/domain-config.js +1 -1
  259. package/lib/config/project-domain-routing.js +1 -1
  260. package/lib/config/region-config.js +1 -1
  261. package/lib/config/schema.js +1 -1
  262. package/lib/constant/cdn.js +1 -1
  263. package/lib/constant/cli.js +1 -1
  264. package/lib/constant/defaults.js +1 -1
  265. package/lib/constant/domain.js +1 -1
  266. package/lib/constant/env.js +1 -1
  267. package/lib/constant/output.js +1 -1
  268. package/lib/constant/paths.js +1 -1
  269. package/lib/constant/region.js +1 -1
  270. package/lib/constant/risk.js +1 -1
  271. package/lib/constant/routing-profile.js +1 -1
  272. package/lib/context/app-resolver.js +1 -1
  273. package/lib/context/auth-resolver.js +1 -1
  274. package/lib/context/config-loader.js +1 -1
  275. package/lib/context.js +1 -1
  276. package/lib/core/alias-resolver.js +1 -1
  277. package/lib/core/api-client.js +1 -1
  278. package/lib/core/bff/config.js +1 -1
  279. package/lib/core/bff/file-system.js +1 -1
  280. package/lib/core/bff/hash.js +1 -1
  281. package/lib/core/bff/hook-directory.js +1 -1
  282. package/lib/core/bff/lock.js +1 -1
  283. package/lib/core/bff/utils.js +1 -1
  284. package/lib/core/cross-db-relation.js +1 -1
  285. package/lib/core/db-resolver.js +1 -1
  286. package/lib/core/flow-config.js +1 -1
  287. package/lib/core/instant-api-policy/config.js +1 -1
  288. package/lib/core/kb-search-client.js +1 -1
  289. package/lib/core/page/file-system.js +1 -1
  290. package/lib/core/page/hash.js +1 -1
  291. package/lib/core/page/lock.js +1 -1
  292. package/lib/core/page/lr-smart-jsx.js +1 -1
  293. package/lib/core/sql-index-auditor.js +1 -1
  294. package/lib/core/sql-sync/config.js +1 -1
  295. package/lib/core/sql-sync/file-system.js +1 -1
  296. package/lib/core/sql-sync/hash.js +1 -1
  297. package/lib/core/sql-sync/lock.js +1 -1
  298. package/lib/core/sql-sync/utils.js +1 -1
  299. package/lib/core/sql-validator.js +1 -1
  300. package/lib/errors.js +1 -1
  301. package/lib/framework/build-all-flags.js +1 -1
  302. package/lib/framework/error-output.js +1 -1
  303. package/lib/framework/explicit-yes.js +1 -1
  304. package/lib/framework/flags.js +1 -1
  305. package/lib/framework/help.js +1 -1
  306. package/lib/framework/index.js +1 -1
  307. package/lib/framework/output.js +1 -1
  308. package/lib/framework/response.js +1 -1
  309. package/lib/framework/runner-alias.js +1 -1
  310. package/lib/framework/runner.js +1 -1
  311. package/lib/framework/schema-export.js +1 -1
  312. package/lib/framework/supported-flags.js +1 -1
  313. package/lib/framework/types.js +1 -1
  314. package/lib/generated/build-info.d.ts +4 -4
  315. package/lib/generated/build-info.js +1 -1
  316. package/lib/generated/official-routing.js +1 -1
  317. package/lib/generated/routing-contract.js +1 -1
  318. package/lib/help.js +1 -1
  319. package/lib/postinstall.js +1 -1
  320. package/lib/runtime/confirmation.js +1 -1
  321. package/lib/runtime/event.js +1 -1
  322. package/lib/runtime/index.js +1 -1
  323. package/lib/runtime/queue.js +1 -1
  324. package/lib/runtime/resolve.js +1 -1
  325. package/lib/skills/builtin-skill.js +1 -1
  326. package/lib/skills/main.js +1 -1
  327. package/lib/skills/npx-skills-add.js +1 -1
  328. package/lib/skills/skill-presence.js +1 -1
  329. package/lib/telemetry/cli-command-trace.js +1 -1
  330. package/lib/telemetry/cli-help-trace.js +1 -1
  331. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  332. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  333. package/lib/telemetry/send-cli-trace-log.js +1 -1
  334. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  335. package/lib/utils/ai_config.js +1 -1
  336. package/lib/utils/apply-jq-filter.js +1 -1
  337. package/lib/utils/cdn-config.js +1 -1
  338. package/lib/utils/check-sdk-version.js +1 -1
  339. package/lib/utils/cli-version-check.js +1 -1
  340. package/lib/utils/cli-version-policy.js +1 -1
  341. package/lib/utils/config.js +1 -1
  342. package/lib/utils/entity-with-id.js +1 -1
  343. package/lib/utils/file-utils.js +1 -1
  344. package/lib/utils/guides-cdn.js +1 -1
  345. package/lib/utils/http-client.js +1 -1
  346. package/lib/utils/is-non-interactive.js +1 -1
  347. package/lib/utils/logger.js +1 -1
  348. package/lib/utils/params.js +1 -1
  349. package/lib/utils/platform.js +1 -1
  350. package/lib/utils/sleep.js +1 -1
  351. package/lib/utils/template-replacer.js +1 -1
  352. package/lib/utils/update-notice.js +1 -1
  353. package/lib/utils/version.js +1 -1
  354. package/lib/utils/with-active-cookie.js +1 -1
  355. package/lib/utils/write-cli-side-channel.js +1 -1
  356. package/package.json +1 -1
  357. package/skills/rabetbase/SKILL.md +1 -1
  358. package/skills/rabetbase-page-generation/SKILL.md +13 -9
  359. package/skills/rabetbase-page-generation/references/component-baseline.md +2 -2
  360. package/skills/rabetbase-page-generation/references/generation.md +64 -15
  361. package/skills/rabetbase-page-generation/templates/onepage/build.mjs +39 -54
  362. package/skills/rabetbase-page-generation/templates/onepage/list/index.jsx +6 -2
  363. package/skills/rabetbase.manifest.json +3 -3
@@ -1 +1 @@
1
- (function(_0x433641,_0x318cf5){const _0x199b11=a281_0x2614,_0x3b8433=_0x433641();while(!![]){try{const _0x41fb85=parseInt(_0x199b11(0x84))/0x1*(parseInt(_0x199b11(0x6b))/0x2)+-parseInt(_0x199b11(0x6d))/0x3*(parseInt(_0x199b11(0x68))/0x4)+-parseInt(_0x199b11(0x6a))/0x5*(parseInt(_0x199b11(0x91))/0x6)+-parseInt(_0x199b11(0x97))/0x7+parseInt(_0x199b11(0x7a))/0x8+parseInt(_0x199b11(0x92))/0x9*(parseInt(_0x199b11(0x93))/0xa)+parseInt(_0x199b11(0x95))/0xb;if(_0x41fb85===_0x318cf5)break;else _0x3b8433['push'](_0x3b8433['shift']());}catch(_0x3b8b29){_0x3b8433['push'](_0x3b8433['shift']());}}}(a281_0x5716,0xe6a88));import{CliError}from'../../errors.js';export function trackedHookDirectoryMappings(_0x4e1d68){const _0x51d314=a281_0x2614,_0x156f64=[];for(const [_0x5ba63b,_0x5667d5]of Object['entries'](_0x4e1d68[_0x51d314(0x90)])){const [_0x484e03,_0xca6577]=_0x5ba63b[_0x51d314(0x8b)]('/');if(_0x484e03!==_0x51d314(0x85)||!_0xca6577||!_0x5667d5[_0x51d314(0x86)])continue;_0x156f64[_0x51d314(0x8a)]({'alias':_0xca6577,'datasetCode':_0x5667d5[_0x51d314(0x86)]});}return _0x156f64;}export function uniqueTrackedHookDirectoryByDataset(_0x246ea0){const _0x1522e3=a281_0x2614,_0x6aad0a=new Map();for(const _0x25f0ce of trackedHookDirectoryMappings(_0x246ea0)){const _0x176dbc=directoryIdentity(_0x25f0ce['datasetCode']),_0x58abfa=_0x6aad0a[_0x1522e3(0x66)](_0x176dbc)??new Map();_0x58abfa['set'](directoryIdentity(_0x25f0ce[_0x1522e3(0x9c)]),_0x25f0ce[_0x1522e3(0x9c)]),_0x6aad0a[_0x1522e3(0x98)](_0x176dbc,_0x58abfa);}const _0x5e17de=new Map();for(const [_0xf04603,_0x3b1168]of _0x6aad0a){if(_0x3b1168[_0x1522e3(0x8d)]>0x1)throw hookDirectoryError(_0x1522e3(0x74),_0x1522e3(0x71)+_0xf04603+'\x22\x20has\x20multiple\x20tracked\x20HOOK\x20directories:\x20'+[..._0x3b1168[_0x1522e3(0x78)]()][_0x1522e3(0x64)](',\x20')+'.',{'datasetCode':_0xf04603,'directories':[..._0x3b1168['values']()]});_0x5e17de[_0x1522e3(0x98)](_0xf04603,[..._0x3b1168[_0x1522e3(0x78)]()][0x0]);}return _0x5e17de;}export function assertUnambiguousHookDirectoryMappings(_0x598b28){const _0x339724=a281_0x2614,_0x57e324=new Map();for(const {alias:_0x4accf4,datasetCode:_0x50e637}of _0x598b28){const _0x136d93=directoryIdentity(_0x4accf4),_0x211975=_0x57e324[_0x339724(0x66)](_0x136d93)??new Set();_0x211975[_0x339724(0x79)](_0x50e637),_0x57e324['set'](_0x136d93,_0x211975);}for(const [_0x9511d,_0x431ec2]of _0x57e324){if(_0x431ec2['size']>0x1)throw hookDirectoryError('HOOK_DIRECTORY_AMBIGUOUS','HOOK\x20directory\x20\x22'+_0x9511d+_0x339724(0x8f),{'directoryName':_0x9511d,'datasetCodes':[..._0x431ec2]});}}function a281_0x2614(_0xdbd2db,_0x514f07){_0xdbd2db=_0xdbd2db-0x64;const _0x571615=a281_0x5716();let _0x26147a=_0x571615[_0xdbd2db];return _0x26147a;}function a281_0x5716(){const _0x593fa8=['\x22\x20changed\x20mapping\x20from\x20Dataset\x20\x22','normalize','push','split','\x22\x20has\x20multiple\x20SDK\x20aliases\x20and\x20has\x20no\x20unique\x20HOOK\x20directory.','size','details','\x22\x20resolves\x20to\x20multiple\x20Datasets.','functions','198mUpQIY','801135SCMVFL','170hsoLrB','HOOK_DIRECTORY_UNRESOLVED','22757669xCTzuc','code','4345397uwJkJT','set','lockKey','\x22\x20to\x20\x22','HOOK\x20directory\x20\x22','alias','join','toLowerCase','get','HOOK_DATASET_CODE_AMBIGUOUS','3811188hZQXQC','HOOK_DATASET_NOT_FOUND','185525SoFwZR','208422ibYaXe','HOOK_ALIAS_AMBIGUOUS','3hvpWOh','datasetCodeToDatasets','\x22\x20collides\x20across\x20datasetCode\x20and\x20alias\x20namespaces.','\x22\x20to\x20a\x20Dataset\x20alias\x20or\x20datasetCode.','Dataset\x20\x22','some','includes','HOOK_DUPLICATE_DIRECTORIES','length','map','SDK\x20alias\x20\x22','values','add','451712QjaAbl','\x22\x20differs\x20only\x20by\x20case\x20from\x20another\x20Dataset\x20code.','message','Dataset\x20code\x20\x22','name','Cannot\x20resolve\x20HOOK\x20directory\x20\x22','HOOK_MAPPING_DRIFT','\x22\x20points\x20to\x20a\x20Dataset\x20that\x20is\x20absent\x20from\x20current\x20platform\x20metadata.','aliasToDatasetCodes','NFC','1pezKNJ','HOOK','datasetCode','Incomplete\x20HOOK\x20path:\x20'];a281_0x5716=function(){return _0x593fa8;};return a281_0x5716();}export function assertUnambiguousHookAliases(_0x2555b8){const _0x4d739f=a281_0x2614,_0x52a527=[..._0x2555b8],_0xeb1834=new Map(),_0x33265d=new Map();for(const {alias:_0x1f7075,datasetCode:_0x1604d8}of _0x52a527){const _0x53150a=directoryIdentity(_0x1f7075),_0xe25e90=directoryIdentity(_0x1604d8),_0x2d385b=_0xeb1834['get'](_0x53150a)??new Set();_0x2d385b[_0x4d739f(0x79)](_0x1604d8),_0xeb1834[_0x4d739f(0x98)](_0x53150a,_0x2d385b);const _0x320711=_0x33265d['get'](_0xe25e90)??new Set();_0x320711['add'](_0x1f7075),_0x33265d[_0x4d739f(0x98)](_0xe25e90,_0x320711);}for(const [_0x20affb,_0x5d7944]of _0xeb1834){if(_0x5d7944[_0x4d739f(0x8d)]>0x1)throw hookDirectoryError(_0x4d739f(0x6c),_0x4d739f(0x77)+_0x20affb+_0x4d739f(0x8f),{'alias':_0x20affb,'datasetCodes':[..._0x5d7944]});}for(const [_0x246739,_0x198202]of _0x33265d){if(_0x198202['size']>0x1)throw hookDirectoryError(_0x4d739f(0x6c),_0x4d739f(0x71)+_0x246739+_0x4d739f(0x8c),{'datasetCode':_0x246739,'aliases':[..._0x198202]});}}export function buildHookDirectoryIndexes(_0x29d759,_0x25e660=[]){const _0x572318=a281_0x2614,_0x5aed8e=[..._0x25e660];assertUnambiguousHookDirectoryMappings(_0x5aed8e[_0x572318(0x76)](([_0x4b3149,_0x5d5061])=>({'alias':_0x4b3149,'datasetCode':_0x5d5061})));const _0x2b39f8=new Map(),_0x1f8e3c=new Map();for(const _0x22b90b of _0x29d759){appendUnique(_0x2b39f8,directoryIdentity(_0x22b90b[_0x572318(0x96)]),_0x22b90b,_0x4555af=>_0x4555af[_0x572318(0x96)]);}for(const [_0x27e82e,_0x286534]of _0x5aed8e){appendUnique(_0x1f8e3c,directoryIdentity(_0x27e82e),_0x286534,_0x2438ef=>_0x2438ef);}return{'datasetCodeToDatasets':_0x2b39f8,'aliasToDatasetCodes':_0x1f8e3c};}export function resolvePushHookDirectory(_0x3cdd1f,_0x7b606b,_0x58bc66){const _0x1d7070=a281_0x2614,_0x135393=directoryIdentity(_0x3cdd1f),_0xea4a32=_0x58bc66[_0x1d7070(0x6e)][_0x1d7070(0x66)](_0x135393)??[],_0x3b9b9f=_0x58bc66[_0x1d7070(0x82)][_0x1d7070(0x66)](_0x135393)??[],_0x3033de=new Set([..._0xea4a32[_0x1d7070(0x76)](_0x3b8203=>_0x3b8203[_0x1d7070(0x96)]),..._0x3b9b9f]);if(_0x3033de['size']>0x1)throw hookDirectoryError('HOOK_DIRECTORY_AMBIGUOUS',_0x1d7070(0x9b)+_0x3cdd1f+_0x1d7070(0x6f),{'directoryName':_0x3cdd1f,'datasetCodes':[..._0x3033de]});const _0x6d8506=[..._0x3033de][0x0];if(_0x6d8506&&_0x7b606b?.[_0x1d7070(0x86)]&&_0x6d8506!==_0x7b606b[_0x1d7070(0x86)])throw hookDirectoryError(_0x1d7070(0x80),'HOOK\x20directory\x20\x22'+_0x3cdd1f+_0x1d7070(0x88)+_0x7b606b[_0x1d7070(0x86)]+_0x1d7070(0x9a)+_0x6d8506+'\x22.',{'directoryName':_0x3cdd1f,'datasetCode':_0x6d8506,'lockedDatasetCode':_0x7b606b[_0x1d7070(0x86)]});const _0x56e06c=_0x6d8506?findDatasetByCode(_0x58bc66,_0x6d8506):undefined,_0x4bc8d3=!!_0x6d8506&&_0x3b9b9f[_0x1d7070(0x73)](_0x6d8506);if(_0x56e06c)return{'dataset':_0x56e06c,'datasetCode':_0x56e06c['code'],..._0x4bc8d3?{'alias':_0x3cdd1f}:{},'directoryProtocol':_0x4bc8d3?_0x1d7070(0x9c):'datasetCode','warnings':[]};const _0x4814cb=_0x7b606b?.[_0x1d7070(0x86)];if(_0x4814cb){const _0x396937=findDatasetByCode(_0x58bc66,_0x4814cb);if(_0x396937)return{'dataset':_0x396937,'datasetCode':_0x396937['code'],..._0x7b606b['alias']?{'alias':_0x7b606b[_0x1d7070(0x9c)]}:{},'directoryProtocol':_0x7b606b['alias']?_0x1d7070(0x9c):'datasetCode','warnings':[]};}if(_0x6d8506||_0x4814cb){const _0x24ed95=_0x6d8506??_0x4814cb;throw hookDirectoryError(_0x1d7070(0x69),_0x1d7070(0x9b)+_0x3cdd1f+_0x1d7070(0x81),{'directoryName':_0x3cdd1f,'datasetCode':_0x24ed95});}throw hookDirectoryError(_0x1d7070(0x94),_0x1d7070(0x7f)+_0x3cdd1f+_0x1d7070(0x70),{'directoryName':_0x3cdd1f});}export function preflightPushHookDirectories(_0x118a78,_0x5c4957,_0xc2b0fe,_0x11579c){const _0x4430c8=a281_0x2614,_0xfce598=new Map(),_0x5d4bfa=new Map();for(const _0x44f5fa of _0x118a78){if(_0x44f5fa['type']!==_0x4430c8(0x85))continue;const _0x220e2b=_0x44f5fa[_0x4430c8(0x9c)];if(!_0x220e2b)throw hookDirectoryError(_0x4430c8(0x94),_0x4430c8(0x87)+_0x44f5fa[_0x4430c8(0x99)],{'lockKey':_0x44f5fa['lockKey']});let _0x173e4d;try{_0x173e4d=resolvePushHookDirectory(_0x220e2b,_0x5c4957[_0x4430c8(0x90)][_0x44f5fa[_0x4430c8(0x99)]],_0xc2b0fe);}catch(_0x4d2753){if(_0x11579c&&_0x4d2753 instanceof CliError&&[_0x4430c8(0x69),_0x4430c8(0x94)][_0x4430c8(0x73)](_0x4d2753['code'])){_0x11579c['set'](_0x44f5fa[_0x4430c8(0x99)],_0x4d2753[_0x4430c8(0x7c)]);continue;}throw _0x4d2753;}_0xfce598['set'](_0x44f5fa[_0x4430c8(0x99)],_0x173e4d);const _0x561d84=_0x5d4bfa[_0x4430c8(0x66)](_0x173e4d[_0x4430c8(0x86)])??new Set();_0x561d84[_0x4430c8(0x79)](_0x220e2b),_0x5d4bfa[_0x4430c8(0x98)](_0x173e4d[_0x4430c8(0x86)],_0x561d84);}for(const [_0xaf10d1,_0x4ad6ab]of _0x5d4bfa){if(_0x4ad6ab[_0x4430c8(0x8d)]>0x1)throw hookDirectoryError(_0x4430c8(0x74),'Dataset\x20\x22'+_0xaf10d1+'\x22\x20is\x20represented\x20by\x20multiple\x20HOOK\x20directories:\x20'+[..._0x4ad6ab][_0x4430c8(0x64)](',\x20')+'.',{'datasetCode':_0xaf10d1,'directories':[..._0x4ad6ab]});}return _0xfce598;}export function hookDirectoryError(_0x28421f,_0x38c710,_0x218ffe){const _0x1ea6ac=a281_0x2614,_0x32c36c=new CliError(_0x28421f,0x2,_0x28421f+':\x20'+_0x38c710);return _0x32c36c[_0x1ea6ac(0x8e)]=_0x218ffe,_0x32c36c;}function findDatasetByCode(_0x1ecd34,_0x2863da){const _0x1e7aab=a281_0x2614,_0x1c249f=_0x1ecd34[_0x1e7aab(0x6e)][_0x1e7aab(0x66)](directoryIdentity(_0x2863da))??[];if(_0x1c249f[_0x1e7aab(0x75)]>0x1)throw hookDirectoryError(_0x1e7aab(0x67),_0x1e7aab(0x7d)+_0x2863da+_0x1e7aab(0x7b),{'datasetCode':_0x2863da,'candidates':_0x1c249f[_0x1e7aab(0x76)](datasetFact)});return _0x1c249f[0x0];}function directoryIdentity(_0x491c68){const _0x220c00=a281_0x2614;return _0x491c68[_0x220c00(0x89)](_0x220c00(0x83))[_0x220c00(0x65)]();}function appendUnique(_0x5398f7,_0x3273a9,_0x481666,_0x41ec1b){const _0x4c0ebc=a281_0x2614,_0x4d4c36=_0x5398f7['get'](_0x3273a9)??[];!_0x4d4c36[_0x4c0ebc(0x72)](_0x57fb35=>_0x41ec1b(_0x57fb35)===_0x41ec1b(_0x481666))&&_0x4d4c36[_0x4c0ebc(0x8a)](_0x481666),_0x5398f7[_0x4c0ebc(0x98)](_0x3273a9,_0x4d4c36);}function datasetFact(_0x182a87){const _0x2bb3b6=a281_0x2614;return{'id':_0x182a87['id'],'name':_0x182a87[_0x2bb3b6(0x7e)],'datasetCode':_0x182a87[_0x2bb3b6(0x96)]};}
1
+ (function(_0x9131fc,_0x5a12dd){const _0x307f54=a281_0x1a59,_0x397708=_0x9131fc();while(!![]){try{const _0x17ba3d=parseInt(_0x307f54(0x1f3))/0x1+parseInt(_0x307f54(0x203))/0x2+parseInt(_0x307f54(0x1ed))/0x3+parseInt(_0x307f54(0x1fa))/0x4*(-parseInt(_0x307f54(0x1f9))/0x5)+parseInt(_0x307f54(0x20d))/0x6*(parseInt(_0x307f54(0x1f6))/0x7)+-parseInt(_0x307f54(0x211))/0x8+parseInt(_0x307f54(0x1fd))/0x9*(-parseInt(_0x307f54(0x209))/0xa);if(_0x17ba3d===_0x5a12dd)break;else _0x397708['push'](_0x397708['shift']());}catch(_0x36ccf4){_0x397708['push'](_0x397708['shift']());}}}(a281_0x4877,0x37458));import{CliError}from'../../errors.js';export function trackedHookDirectoryMappings(_0x2b23f3){const _0xc85569=a281_0x1a59,_0x4fc523=[];for(const [_0x38df81,_0x370bb4]of Object['entries'](_0x2b23f3[_0xc85569(0x202)])){const [_0x440529,_0x3e2e98]=_0x38df81[_0xc85569(0x208)]('/');if(_0x440529!=='HOOK'||!_0x3e2e98||!_0x370bb4[_0xc85569(0x1f2)])continue;_0x4fc523[_0xc85569(0x20c)]({'alias':_0x3e2e98,'datasetCode':_0x370bb4['datasetCode']});}return _0x4fc523;}export function uniqueTrackedHookDirectoryByDataset(_0xbbe718){const _0x13f720=a281_0x1a59,_0x27c67b=new Map();for(const _0x26824e of trackedHookDirectoryMappings(_0xbbe718)){const _0x429403=directoryIdentity(_0x26824e[_0x13f720(0x1f2)]),_0x2769cb=_0x27c67b[_0x13f720(0x200)](_0x429403)??new Map();_0x2769cb[_0x13f720(0x1f4)](directoryIdentity(_0x26824e[_0x13f720(0x216)]),_0x26824e[_0x13f720(0x216)]),_0x27c67b[_0x13f720(0x1f4)](_0x429403,_0x2769cb);}const _0x377551=new Map();for(const [_0x5f2559,_0x326963]of _0x27c67b){if(_0x326963[_0x13f720(0x215)]>0x1)throw hookDirectoryError(_0x13f720(0x217),'Dataset\x20\x22'+_0x5f2559+'\x22\x20has\x20multiple\x20tracked\x20HOOK\x20directories:\x20'+[..._0x326963[_0x13f720(0x1e7)]()]['join'](',\x20')+'.',{'datasetCode':_0x5f2559,'directories':[..._0x326963[_0x13f720(0x1e7)]()]});_0x377551[_0x13f720(0x1f4)](_0x5f2559,[..._0x326963['values']()][0x0]);}return _0x377551;}export function assertUnambiguousHookDirectoryMappings(_0x49dc7f){const _0x4bd9d4=a281_0x1a59,_0x2922df=new Map();for(const {alias:_0x108a78,datasetCode:_0x437d43}of _0x49dc7f){const _0x7612f4=directoryIdentity(_0x108a78),_0xa42f1f=_0x2922df[_0x4bd9d4(0x200)](_0x7612f4)??new Set();_0xa42f1f[_0x4bd9d4(0x20f)](_0x437d43),_0x2922df[_0x4bd9d4(0x1f4)](_0x7612f4,_0xa42f1f);}for(const [_0x2ec0d9,_0x164c73]of _0x2922df){if(_0x164c73[_0x4bd9d4(0x215)]>0x1)throw hookDirectoryError(_0x4bd9d4(0x206),_0x4bd9d4(0x20e)+_0x2ec0d9+'\x22\x20resolves\x20to\x20multiple\x20Datasets.',{'directoryName':_0x2ec0d9,'datasetCodes':[..._0x164c73]});}}export function assertUnambiguousHookAliases(_0x496a93){const _0x33c35e=a281_0x1a59,_0x549869=[..._0x496a93],_0x22376b=new Map(),_0x2644d2=new Map();for(const {alias:_0x21bbda,datasetCode:_0x2eefb7}of _0x549869){const _0x680147=directoryIdentity(_0x21bbda),_0x27963e=directoryIdentity(_0x2eefb7),_0x7e9bc4=_0x22376b[_0x33c35e(0x200)](_0x680147)??new Set();_0x7e9bc4[_0x33c35e(0x20f)](_0x2eefb7),_0x22376b[_0x33c35e(0x1f4)](_0x680147,_0x7e9bc4);const _0x4b9904=_0x2644d2[_0x33c35e(0x200)](_0x27963e)??new Set();_0x4b9904[_0x33c35e(0x20f)](_0x21bbda),_0x2644d2[_0x33c35e(0x1f4)](_0x27963e,_0x4b9904);}for(const [_0x59d4e4,_0x592753]of _0x22376b){if(_0x592753['size']>0x1)throw hookDirectoryError(_0x33c35e(0x205),_0x33c35e(0x213)+_0x59d4e4+_0x33c35e(0x1ef),{'alias':_0x59d4e4,'datasetCodes':[..._0x592753]});}for(const [_0x5c100c,_0x9492f6]of _0x2644d2){if(_0x9492f6[_0x33c35e(0x215)]>0x1)throw hookDirectoryError('HOOK_ALIAS_AMBIGUOUS',_0x33c35e(0x1e8)+_0x5c100c+_0x33c35e(0x207),{'datasetCode':_0x5c100c,'aliases':[..._0x9492f6]});}}export function buildHookDirectoryIndexes(_0x1786d2,_0x44f6a3=[]){const _0x18a434=a281_0x1a59,_0x4bd7ea=[..._0x44f6a3];assertUnambiguousHookDirectoryMappings(_0x4bd7ea[_0x18a434(0x20b)](([_0x262f17,_0x15744b])=>({'alias':_0x262f17,'datasetCode':_0x15744b})));const _0x575aa8=new Map(),_0x41ed42=new Map();for(const _0x437168 of _0x1786d2){appendUnique(_0x575aa8,directoryIdentity(_0x437168[_0x18a434(0x1f7)]),_0x437168,_0x2505c5=>_0x2505c5['code']);}for(const [_0x47cd6f,_0xf72ed6]of _0x4bd7ea){appendUnique(_0x41ed42,directoryIdentity(_0x47cd6f),_0xf72ed6,_0x58bcf8=>_0x58bcf8);}return{'datasetCodeToDatasets':_0x575aa8,'aliasToDatasetCodes':_0x41ed42};}export function resolvePushHookDirectory(_0xdc45ca,_0x3f5c6c,_0x1efa61){const _0x268a46=a281_0x1a59,_0x1ee120=directoryIdentity(_0xdc45ca),_0x5ea025=_0x1efa61[_0x268a46(0x1e3)][_0x268a46(0x200)](_0x1ee120)??[],_0x5220ef=_0x1efa61[_0x268a46(0x1ff)][_0x268a46(0x200)](_0x1ee120)??[],_0x2044ce=new Set([..._0x5ea025[_0x268a46(0x20b)](_0x5aa95f=>_0x5aa95f[_0x268a46(0x1f7)]),..._0x5220ef]);if(_0x2044ce[_0x268a46(0x215)]>0x1)throw hookDirectoryError(_0x268a46(0x206),_0x268a46(0x20e)+_0xdc45ca+_0x268a46(0x1e4),{'directoryName':_0xdc45ca,'datasetCodes':[..._0x2044ce]});const _0x3b157c=[..._0x2044ce][0x0];if(_0x3b157c&&_0x3f5c6c?.[_0x268a46(0x1f2)]&&_0x3b157c!==_0x3f5c6c[_0x268a46(0x1f2)])throw hookDirectoryError(_0x268a46(0x1fb),'HOOK\x20directory\x20\x22'+_0xdc45ca+_0x268a46(0x204)+_0x3f5c6c[_0x268a46(0x1f2)]+_0x268a46(0x1f5)+_0x3b157c+'\x22.',{'directoryName':_0xdc45ca,'datasetCode':_0x3b157c,'lockedDatasetCode':_0x3f5c6c[_0x268a46(0x1f2)]});const _0x4bb60b=_0x3b157c?findDatasetByCode(_0x1efa61,_0x3b157c):undefined,_0x17bed8=!!_0x3b157c&&_0x5220ef[_0x268a46(0x1e6)](_0x3b157c);if(_0x4bb60b)return{'dataset':_0x4bb60b,'datasetCode':_0x4bb60b[_0x268a46(0x1f7)],..._0x17bed8?{'alias':_0xdc45ca}:{},'directoryProtocol':_0x17bed8?'alias':_0x268a46(0x1f2),'warnings':[]};const _0x58451e=_0x3f5c6c?.['datasetCode'];if(_0x58451e){const _0x540c36=findDatasetByCode(_0x1efa61,_0x58451e);if(_0x540c36)return{'dataset':_0x540c36,'datasetCode':_0x540c36[_0x268a46(0x1f7)],..._0x3f5c6c[_0x268a46(0x216)]?{'alias':_0x3f5c6c[_0x268a46(0x216)]}:{},'directoryProtocol':_0x3f5c6c['alias']?'alias':_0x268a46(0x1f2),'warnings':[]};}if(_0x3b157c||_0x58451e){const _0x3fc222=_0x3b157c??_0x58451e;throw hookDirectoryError(_0x268a46(0x210),_0x268a46(0x20e)+_0xdc45ca+_0x268a46(0x201),{'directoryName':_0xdc45ca,'datasetCode':_0x3fc222});}throw hookDirectoryError(_0x268a46(0x1e5),_0x268a46(0x1fc)+_0xdc45ca+'\x22\x20to\x20a\x20Dataset\x20alias\x20or\x20datasetCode.',{'directoryName':_0xdc45ca});}function a281_0x4877(){const _0x56c83b=['lockKey','map','push','6LyPYYQ','HOOK\x20directory\x20\x22','add','HOOK_DATASET_NOT_FOUND','957880BNtoJs','some','SDK\x20alias\x20\x22','HOOK','size','alias','HOOK_DUPLICATE_DIRECTORIES','message','type','datasetCodeToDatasets','\x22\x20collides\x20across\x20datasetCode\x20and\x20alias\x20namespaces.','HOOK_DIRECTORY_UNRESOLVED','includes','values','Dataset\x20\x22','Incomplete\x20HOOK\x20path:\x20','\x22\x20is\x20represented\x20by\x20multiple\x20HOOK\x20directories:\x20','\x22\x20differs\x20only\x20by\x20case\x20from\x20another\x20Dataset\x20code.','toLowerCase','571494VVCUBd','NFC','\x22\x20resolves\x20to\x20multiple\x20Datasets.','join','details','datasetCode','310214KMHcDb','set','\x22\x20to\x20\x22','132993vIScEC','code','normalize','2555YYdYBX','668NMdmBT','HOOK_MAPPING_DRIFT','Cannot\x20resolve\x20HOOK\x20directory\x20\x22','126wEZUyY','length','aliasToDatasetCodes','get','\x22\x20points\x20to\x20a\x20Dataset\x20that\x20is\x20absent\x20from\x20current\x20platform\x20metadata.','functions','763662QhHkGa','\x22\x20changed\x20mapping\x20from\x20Dataset\x20\x22','HOOK_ALIAS_AMBIGUOUS','HOOK_DIRECTORY_AMBIGUOUS','\x22\x20has\x20multiple\x20SDK\x20aliases\x20and\x20has\x20no\x20unique\x20HOOK\x20directory.','split','335770Qwaiti'];a281_0x4877=function(){return _0x56c83b;};return a281_0x4877();}export function preflightPushHookDirectories(_0x46bb77,_0x48790b,_0x335728,_0x5eda79){const _0x30c6cd=a281_0x1a59,_0x21c263=new Map(),_0x10357e=new Map();for(const _0x3522d4 of _0x46bb77){if(_0x3522d4[_0x30c6cd(0x1e2)]!==_0x30c6cd(0x214))continue;const _0x263063=_0x3522d4['alias'];if(!_0x263063)throw hookDirectoryError(_0x30c6cd(0x1e5),_0x30c6cd(0x1e9)+_0x3522d4['lockKey'],{'lockKey':_0x3522d4[_0x30c6cd(0x20a)]});let _0x25dae4;try{_0x25dae4=resolvePushHookDirectory(_0x263063,_0x48790b['functions'][_0x3522d4['lockKey']],_0x335728);}catch(_0x460aa0){if(_0x5eda79&&_0x460aa0 instanceof CliError&&[_0x30c6cd(0x210),_0x30c6cd(0x1e5)]['includes'](_0x460aa0[_0x30c6cd(0x1f7)])){_0x5eda79[_0x30c6cd(0x1f4)](_0x3522d4['lockKey'],_0x460aa0[_0x30c6cd(0x218)]);continue;}throw _0x460aa0;}_0x21c263[_0x30c6cd(0x1f4)](_0x3522d4[_0x30c6cd(0x20a)],_0x25dae4);const _0x5c7731=_0x10357e[_0x30c6cd(0x200)](_0x25dae4[_0x30c6cd(0x1f2)])??new Set();_0x5c7731['add'](_0x263063),_0x10357e[_0x30c6cd(0x1f4)](_0x25dae4[_0x30c6cd(0x1f2)],_0x5c7731);}for(const [_0x379a52,_0xfc945d]of _0x10357e){if(_0xfc945d[_0x30c6cd(0x215)]>0x1)throw hookDirectoryError(_0x30c6cd(0x217),_0x30c6cd(0x1e8)+_0x379a52+_0x30c6cd(0x1ea)+[..._0xfc945d][_0x30c6cd(0x1f0)](',\x20')+'.',{'datasetCode':_0x379a52,'directories':[..._0xfc945d]});}return _0x21c263;}export function hookDirectoryError(_0x3dcbd8,_0x31d22f,_0x2d8e84){const _0x21f94f=a281_0x1a59,_0x3f8c71=new CliError(_0x3dcbd8,0x2,_0x3dcbd8+':\x20'+_0x31d22f);return _0x3f8c71[_0x21f94f(0x1f1)]=_0x2d8e84,_0x3f8c71;}function a281_0x1a59(_0x1528f6,_0x429e55){_0x1528f6=_0x1528f6-0x1e2;const _0x4877e2=a281_0x4877();let _0x1a599d=_0x4877e2[_0x1528f6];return _0x1a599d;}function findDatasetByCode(_0x46d6e2,_0x403d3e){const _0x2dcfb9=a281_0x1a59,_0x44ea96=_0x46d6e2[_0x2dcfb9(0x1e3)][_0x2dcfb9(0x200)](directoryIdentity(_0x403d3e))??[];if(_0x44ea96[_0x2dcfb9(0x1fe)]>0x1)throw hookDirectoryError('HOOK_DATASET_CODE_AMBIGUOUS','Dataset\x20code\x20\x22'+_0x403d3e+_0x2dcfb9(0x1eb),{'datasetCode':_0x403d3e,'candidates':_0x44ea96[_0x2dcfb9(0x20b)](datasetFact)});return _0x44ea96[0x0];}function directoryIdentity(_0x3be7d0){const _0x1ede5e=a281_0x1a59;return _0x3be7d0[_0x1ede5e(0x1f8)](_0x1ede5e(0x1ee))[_0x1ede5e(0x1ec)]();}function appendUnique(_0x28c504,_0x5affe7,_0x4f6047,_0x44baf0){const _0x457e74=a281_0x1a59,_0x58254d=_0x28c504[_0x457e74(0x200)](_0x5affe7)??[];!_0x58254d[_0x457e74(0x212)](_0x17d659=>_0x44baf0(_0x17d659)===_0x44baf0(_0x4f6047))&&_0x58254d[_0x457e74(0x20c)](_0x4f6047),_0x28c504[_0x457e74(0x1f4)](_0x5affe7,_0x58254d);}function datasetFact(_0x33040a){const _0x3fc4de=a281_0x1a59;return{'id':_0x33040a['id'],'name':_0x33040a['name'],'datasetCode':_0x33040a[_0x3fc4de(0x1f7)]};}
@@ -1 +1 @@
1
- (function(_0x42b2cc,_0xa85951){const _0x512ca0=a282_0xf6c5,_0x9ccfbe=_0x42b2cc();while(!![]){try{const _0x44eb3d=parseInt(_0x512ca0(0xec))/0x1*(-parseInt(_0x512ca0(0xfc))/0x2)+-parseInt(_0x512ca0(0xf5))/0x3+parseInt(_0x512ca0(0xfa))/0x4+parseInt(_0x512ca0(0xf9))/0x5*(parseInt(_0x512ca0(0xf8))/0x6)+parseInt(_0x512ca0(0xf1))/0x7+parseInt(_0x512ca0(0xed))/0x8+parseInt(_0x512ca0(0x100))/0x9*(-parseInt(_0x512ca0(0xff))/0xa);if(_0x44eb3d===_0xa85951)break;else _0x9ccfbe['push'](_0x9ccfbe['shift']());}catch(_0x43967f){_0x9ccfbe['push'](_0x9ccfbe['shift']());}}}(a282_0x4ecb,0xb477e));function a282_0xf6c5(_0x5eff67,_0x2418b8){_0x5eff67=_0x5eff67-0xea;const _0x4ecbf6=a282_0x4ecb();let _0xf6c522=_0x4ecbf6[_0x5eff67];return _0xf6c522;}import{mkdir,readFile,writeFile}from'node:fs/promises';function a282_0x4ecb(){const _0x4e454e=['lastSync','parse','ENOENT','3885138ZMDSJW','\x22.\x20','functions','12qWymRl','2226795NRcdZn','5710964sCiwvo','apps','2402392MHBxxg','object','Check\x20.rabetbase/bff.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.','50TTeAeJ','538047YzIGpG','scriptsRoot','stringify','1ACNikX','4810856vIrzrZ','Failed\x20to\x20read\x20Backend\x20Function\x20lock\x20file:\x20','code','utf8','4301773eQfyeN'];a282_0x4ecb=function(){return _0x4e454e;};return a282_0x4ecb();}import{dirname}from'node:path';export function createEmptyBffLock(){return{'apps':{}};}export function ensureLockScope(_0x3dd525,_0x595bfc,_0x11982b,_0x556155){const _0xe8075a=a282_0xf6c5,_0x16413={'apps':_0x3dd525[_0xe8075a(0xfb)]&&typeof _0x3dd525[_0xe8075a(0xfb)]==='object'?_0x3dd525[_0xe8075a(0xfb)]:{}};let _0x3f3427=_0x16413['apps'][_0x595bfc];if(!_0x3f3427)return _0x3f3427={'scriptsRoot':_0x11982b,'lastSync':'','functions':{}},_0x16413['apps'][_0x595bfc]=_0x3f3427,{'lockData':_0x16413,'appLock':_0x3f3427};if(!_0x3f3427[_0xe8075a(0xea)])_0x3f3427[_0xe8075a(0xea)]=_0x11982b;else{if(_0x3f3427[_0xe8075a(0xea)]!==_0x11982b)throw new Error(_0x556155+':\x20scriptsRoot\x20mismatch\x20—\x20'+('current\x20\x22'+_0x11982b+'\x22\x20vs\x20lock\x20\x22'+_0x3f3427[_0xe8075a(0xea)]+_0xe8075a(0xf6))+_0xe8075a(0xfe));}return!_0x3f3427[_0xe8075a(0xf7)]&&(_0x3f3427[_0xe8075a(0xf7)]={}),!_0x3f3427[_0xe8075a(0xf2)]&&(_0x3f3427[_0xe8075a(0xf2)]=''),{'lockData':_0x16413,'appLock':_0x3f3427};}export async function readBffLockFile(_0x4388f5){const _0x20fcf0=a282_0xf6c5;try{const _0x2d1f24=await readFile(_0x4388f5,_0x20fcf0(0xf0)),_0x51ab89=JSON[_0x20fcf0(0xf3)](_0x2d1f24);return{'apps':_0x51ab89[_0x20fcf0(0xfb)]&&typeof _0x51ab89[_0x20fcf0(0xfb)]===_0x20fcf0(0xfd)?_0x51ab89[_0x20fcf0(0xfb)]:{}};}catch(_0x1caf6f){if(_0x1caf6f[_0x20fcf0(0xef)]===_0x20fcf0(0xf4))return null;throw new Error(_0x20fcf0(0xee)+String(_0x1caf6f));}}export async function writeBffLockFile(_0x18467b,_0x18e65a){const _0x5e7c7a=a282_0xf6c5;await mkdir(dirname(_0x18467b),{'recursive':!![]}),await writeFile(_0x18467b,JSON[_0x5e7c7a(0xeb)](_0x18e65a,null,0x2),'utf8');}
1
+ (function(_0x61fa9e,_0x186e26){const _0x236a82=a282_0x50be,_0x4687a4=_0x61fa9e();while(!![]){try{const _0x1d2880=parseInt(_0x236a82(0xb1))/0x1+-parseInt(_0x236a82(0xbe))/0x2+parseInt(_0x236a82(0xb8))/0x3*(parseInt(_0x236a82(0xc2))/0x4)+parseInt(_0x236a82(0xb2))/0x5*(parseInt(_0x236a82(0xb9))/0x6)+-parseInt(_0x236a82(0xc4))/0x7*(parseInt(_0x236a82(0xc0))/0x8)+parseInt(_0x236a82(0xbf))/0x9*(parseInt(_0x236a82(0xbc))/0xa)+-parseInt(_0x236a82(0xc1))/0xb*(parseInt(_0x236a82(0xb6))/0xc);if(_0x1d2880===_0x186e26)break;else _0x4687a4['push'](_0x4687a4['shift']());}catch(_0x35c36b){_0x4687a4['push'](_0x4687a4['shift']());}}}(a282_0x36fc,0x46d21));function a282_0x50be(_0x450661,_0x1dd1f7){_0x450661=_0x450661-0xad;const _0x36fcc6=a282_0x36fc();let _0x50be14=_0x36fcc6[_0x450661];return _0x50be14;}import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';export function createEmptyBffLock(){return{'apps':{}};}export function ensureLockScope(_0x535d04,_0x210ac0,_0x4a62b1,_0x4f27a8){const _0x304473=a282_0x50be,_0x302f53={'apps':_0x535d04[_0x304473(0xbd)]&&typeof _0x535d04[_0x304473(0xbd)]===_0x304473(0xbb)?_0x535d04['apps']:{}};let _0x413a7f=_0x302f53[_0x304473(0xbd)][_0x210ac0];if(!_0x413a7f)return _0x413a7f={'scriptsRoot':_0x4a62b1,'lastSync':'','functions':{}},_0x302f53[_0x304473(0xbd)][_0x210ac0]=_0x413a7f,{'lockData':_0x302f53,'appLock':_0x413a7f};if(!_0x413a7f[_0x304473(0xae)])_0x413a7f[_0x304473(0xae)]=_0x4a62b1;else{if(_0x413a7f[_0x304473(0xae)]!==_0x4a62b1)throw new Error(_0x4f27a8+_0x304473(0xc3)+(_0x304473(0xb0)+_0x4a62b1+_0x304473(0xb5)+_0x413a7f['scriptsRoot']+'\x22.\x20')+_0x304473(0xb7));}return!_0x413a7f[_0x304473(0xad)]&&(_0x413a7f[_0x304473(0xad)]={}),!_0x413a7f[_0x304473(0xb4)]&&(_0x413a7f[_0x304473(0xb4)]=''),{'lockData':_0x302f53,'appLock':_0x413a7f};}export async function readBffLockFile(_0x541345){const _0x336aee=a282_0x50be;try{const _0x4588ff=await readFile(_0x541345,_0x336aee(0xb3)),_0x1aefde=JSON[_0x336aee(0xba)](_0x4588ff);return{'apps':_0x1aefde[_0x336aee(0xbd)]&&typeof _0x1aefde['apps']===_0x336aee(0xbb)?_0x1aefde[_0x336aee(0xbd)]:{}};}catch(_0xfff890){if(_0xfff890['code']===_0x336aee(0xc5))return null;throw new Error('Failed\x20to\x20read\x20Backend\x20Function\x20lock\x20file:\x20'+String(_0xfff890));}}function a282_0x36fc(){const _0x13beac=['12edTyAE','Check\x20.rabetbase/bff.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.','3aAgKjE','414uYzVOB','parse','object','890rPHrzI','apps','477306MVpNBc','57465lLulZL','974392ZyUCMh','2835569LWczIE','858068wWXrAc',':\x20scriptsRoot\x20mismatch\x20—\x20','7yxTyfc','ENOENT','functions','scriptsRoot','stringify','current\x20\x22','77299YsHuaD','3495ANExol','utf8','lastSync','\x22\x20vs\x20lock\x20\x22'];a282_0x36fc=function(){return _0x13beac;};return a282_0x36fc();}export async function writeBffLockFile(_0x181d18,_0x31d2de){const _0x14aab2=a282_0x50be;await mkdir(dirname(_0x181d18),{'recursive':!![]}),await writeFile(_0x181d18,JSON[_0x14aab2(0xaf)](_0x31d2de,null,0x2),_0x14aab2(0xb3));}
@@ -1 +1 @@
1
- const a284_0x284558=a284_0x5875;function a284_0x50b7(){const _0x275df5=['3285192WzPleL','TODO:\x20补充脚本功能描述','entries','39288wJBesC','operationType','replace','some','functionNode','9xXeSgF','split','13504964yGRVUF','6132340cEmtPy','test','1184793hLhTKY','startsWith','toLowerCase','before','remoteId','alias','497WNgpLR','10DEooQj','22uuizIL','4717448wceJmG','toUpperCase','match','after','31748XNZTBN','trim','datasetCode'];a284_0x50b7=function(){return _0x275df5;};return a284_0x50b7();}(function(_0x540685,_0x2ba9dc){const _0x627669=a284_0x5875,_0x27f15b=_0x540685();while(!![]){try{const _0xf984bd=-parseInt(_0x627669(0x1c6))/0x1*(parseInt(_0x627669(0x1cb))/0x2)+parseInt(_0x627669(0x1be))/0x3+parseInt(_0x627669(0x1b1))/0x4+parseInt(_0x627669(0x1bc))/0x5+parseInt(_0x627669(0x1b4))/0x6*(parseInt(_0x627669(0x1c4))/0x7)+parseInt(_0x627669(0x1c7))/0x8*(-parseInt(_0x627669(0x1b9))/0x9)+-parseInt(_0x627669(0x1c5))/0xa*(parseInt(_0x627669(0x1bb))/0xb);if(_0xf984bd===_0x2ba9dc)break;else _0x27f15b['push'](_0x27f15b['shift']());}catch(_0x4b49f7){_0x27f15b['push'](_0x27f15b['shift']());}}}(a284_0x50b7,0xb4e6c));export const DEFAULT_BFF_SCRIPT_DESCRIPTION=a284_0x284558(0x1b2);const LEGACY_DEFAULT_BFF_SCRIPT_DESCRIPTION='TODO:\x20add\x20script\x20description';function a284_0x5875(_0x4839df,_0x198262){_0x4839df=_0x4839df-0x1af;const _0x50b7a1=a284_0x50b7();let _0x587536=_0x50b7a1[_0x4839df];return _0x587536;}export function snakeToCamel(_0x578259){const _0x134797=a284_0x284558;return _0x578259[_0x134797(0x1c0)]()[_0x134797(0x1b6)](/_([a-z])/g,(_0x562a36,_0xee404b)=>_0xee404b[_0x134797(0x1c8)]());}export function findHookLocationByRemoteId(_0x375000,_0xfa37f3){const _0x5562cd=a284_0x284558;if(!_0xfa37f3)return undefined;for(const [_0x4cba7b,_0x50149b]of Object[_0x5562cd(0x1b3)](_0x375000)){if(_0x50149b[_0x5562cd(0x1c2)]===_0xfa37f3&&_0x50149b[_0x5562cd(0x1b0)]&&_0x50149b[_0x5562cd(0x1b5)]&&_0x50149b[_0x5562cd(0x1b8)]){const _0x144d7e=_0x4cba7b[_0x5562cd(0x1ba)]('/')[0x1];return{'alias':_0x144d7e||_0x50149b[_0x5562cd(0x1c3)],'datasetCode':_0x50149b[_0x5562cd(0x1b0)],'operationType':_0x50149b[_0x5562cd(0x1b5)],'functionNode':_0x50149b[_0x5562cd(0x1b8)]};}}return undefined;}export function extractScriptDescription(_0x34f748){const _0x5b6368=a284_0x284558,_0x23b77f=_0x34f748[_0x5b6368(0x1c9)](/^\s*\/\*\*([\s\S]*?)\*\//);if(!_0x23b77f?.[0x1])return undefined;const _0x44b3e3=_0x23b77f[0x1],_0x5ceb4b=_0x4eb01c=>{const _0x1ab945=_0x5b6368,_0x3f43d1=_0x4eb01c?.[_0x1ab945(0x1af)]();if(!_0x3f43d1||_0x3f43d1===DEFAULT_BFF_SCRIPT_DESCRIPTION||_0x3f43d1===LEGACY_DEFAULT_BFF_SCRIPT_DESCRIPTION)return undefined;return _0x3f43d1;},_0x4884fa=_0x44b3e3['match'](/^\s*\*\s*\[\s*脚本描述\s*]\s*(.+)$/m);if(_0x4884fa)return _0x5ceb4b(_0x4884fa[0x1]);const _0xd79a06=_0x44b3e3['split'](/\r?\n/)['map'](_0x158889=>_0x158889[_0x5b6368(0x1b6)](/^\s*\*\s?/,'')['trim']()),_0xdfb03a=_0xd79a06[_0x5b6368(0x1b7)](_0x111eba=>/^\[\s*脚本类型\s*]\s*\S+/[_0x5b6368(0x1bd)](_0x111eba))&&_0xd79a06[_0x5b6368(0x1b7)](_0x391b95=>/^\[\s*脚本名称\s*]\s*\S+/['test'](_0x391b95));if(!_0xdfb03a)return undefined;for(const _0x161600 of _0xd79a06){if(!_0x161600||_0x161600[_0x5b6368(0x1bf)]('@')||/^\[[^\]]+]\s*/[_0x5b6368(0x1bd)](_0x161600))continue;return _0x5ceb4b(_0x161600);}return undefined;}export function isValidBffFunctionName(_0x535ea6){const _0x2bfd63=a284_0x284558;return/^[A-Za-z_$][A-Za-z0-9_$]*$/[_0x2bfd63(0x1bd)](_0x535ea6);}export function normalizeHookFunctionNode(_0x4ed09e){const _0x269c0f=a284_0x284558;if(!_0x4ed09e)return undefined;const _0x28e54a=_0x4ed09e[_0x269c0f(0x1af)]()[_0x269c0f(0x1c0)]();if(_0x28e54a===_0x269c0f(0x1c1)||_0x28e54a===_0x269c0f(0x1ca))return _0x28e54a;return undefined;}
1
+ const a284_0x5dcd14=a284_0x1405;(function(_0x39b706,_0x4658b5){const _0x40219f=a284_0x1405,_0x125f10=_0x39b706();while(!![]){try{const _0x3c8342=parseInt(_0x40219f(0x1da))/0x1+-parseInt(_0x40219f(0x1e3))/0x2*(parseInt(_0x40219f(0x1ef))/0x3)+parseInt(_0x40219f(0x1d9))/0x4*(-parseInt(_0x40219f(0x1e1))/0x5)+parseInt(_0x40219f(0x1eb))/0x6+parseInt(_0x40219f(0x1d5))/0x7*(-parseInt(_0x40219f(0x1e6))/0x8)+-parseInt(_0x40219f(0x1e4))/0x9*(-parseInt(_0x40219f(0x1e9))/0xa)+parseInt(_0x40219f(0x1ea))/0xb;if(_0x3c8342===_0x4658b5)break;else _0x125f10['push'](_0x125f10['shift']());}catch(_0x1eb1f9){_0x125f10['push'](_0x125f10['shift']());}}}(a284_0x1492,0x752e0));export const DEFAULT_BFF_SCRIPT_DESCRIPTION='TODO:\x20补充脚本功能描述';const LEGACY_DEFAULT_BFF_SCRIPT_DESCRIPTION=a284_0x5dcd14(0x1ee);function a284_0x1492(){const _0x21fe66=['toLowerCase','374952IZGEtH','entries','before','10HxafsQ','153615AMSCEb','3863940DThMJc','alias','after','TODO:\x20add\x20script\x20description','1096521eKEqsr','datasetCode','operationType','21xKxVbT','some','split','startsWith','660316EaqOxz','89962FkxjXo','test','map','replace','functionNode','match','remoteId','15LYEeny','trim','2CkESCj','6600618xJvVUT'];a284_0x1492=function(){return _0x21fe66;};return a284_0x1492();}export function snakeToCamel(_0x26c48f){const _0x413ade=a284_0x5dcd14;return _0x26c48f[_0x413ade(0x1e5)]()[_0x413ade(0x1dd)](/_([a-z])/g,(_0x5b5e76,_0x34bb77)=>_0x34bb77['toUpperCase']());}function a284_0x1405(_0x38bf00,_0x621b1a){_0x38bf00=_0x38bf00-0x1d4;const _0x14929f=a284_0x1492();let _0x140541=_0x14929f[_0x38bf00];return _0x140541;}export function findHookLocationByRemoteId(_0x49278d,_0x15bb4a){const _0x5de1a1=a284_0x5dcd14;if(!_0x15bb4a)return undefined;for(const [_0x2701c3,_0xa08c65]of Object[_0x5de1a1(0x1e7)](_0x49278d)){if(_0xa08c65[_0x5de1a1(0x1e0)]===_0x15bb4a&&_0xa08c65['datasetCode']&&_0xa08c65[_0x5de1a1(0x1d4)]&&_0xa08c65[_0x5de1a1(0x1de)]){const _0x56a09b=_0x2701c3['split']('/')[0x1];return{'alias':_0x56a09b||_0xa08c65[_0x5de1a1(0x1ec)],'datasetCode':_0xa08c65[_0x5de1a1(0x1f0)],'operationType':_0xa08c65[_0x5de1a1(0x1d4)],'functionNode':_0xa08c65[_0x5de1a1(0x1de)]};}}return undefined;}export function extractScriptDescription(_0x3d3c0d){const _0x2e21e0=a284_0x5dcd14,_0x330157=_0x3d3c0d[_0x2e21e0(0x1df)](/^\s*\/\*\*([\s\S]*?)\*\//);if(!_0x330157?.[0x1])return undefined;const _0x2fa619=_0x330157[0x1],_0x5783b4=_0x2e743b=>{const _0x141219=_0x2e21e0,_0xbdea69=_0x2e743b?.[_0x141219(0x1e2)]();if(!_0xbdea69||_0xbdea69===DEFAULT_BFF_SCRIPT_DESCRIPTION||_0xbdea69===LEGACY_DEFAULT_BFF_SCRIPT_DESCRIPTION)return undefined;return _0xbdea69;},_0x30e1d0=_0x2fa619[_0x2e21e0(0x1df)](/^\s*\*\s*\[\s*脚本描述\s*]\s*(.+)$/m);if(_0x30e1d0)return _0x5783b4(_0x30e1d0[0x1]);const _0x1be93a=_0x2fa619[_0x2e21e0(0x1d7)](/\r?\n/)[_0x2e21e0(0x1dc)](_0x547395=>_0x547395[_0x2e21e0(0x1dd)](/^\s*\*\s?/,'')[_0x2e21e0(0x1e2)]()),_0x4202ca=_0x1be93a[_0x2e21e0(0x1d6)](_0x478547=>/^\[\s*脚本类型\s*]\s*\S+/[_0x2e21e0(0x1db)](_0x478547))&&_0x1be93a[_0x2e21e0(0x1d6)](_0x123fe8=>/^\[\s*脚本名称\s*]\s*\S+/[_0x2e21e0(0x1db)](_0x123fe8));if(!_0x4202ca)return undefined;for(const _0xb03f61 of _0x1be93a){if(!_0xb03f61||_0xb03f61[_0x2e21e0(0x1d8)]('@')||/^\[[^\]]+]\s*/[_0x2e21e0(0x1db)](_0xb03f61))continue;return _0x5783b4(_0xb03f61);}return undefined;}export function isValidBffFunctionName(_0x3cc744){const _0x8b7f7b=a284_0x5dcd14;return/^[A-Za-z_$][A-Za-z0-9_$]*$/[_0x8b7f7b(0x1db)](_0x3cc744);}export function normalizeHookFunctionNode(_0x591aec){const _0x517836=a284_0x5dcd14;if(!_0x591aec)return undefined;const _0x475c6e=_0x591aec[_0x517836(0x1e2)]()[_0x517836(0x1e5)]();if(_0x475c6e===_0x517836(0x1e8)||_0x475c6e===_0x517836(0x1ed))return _0x475c6e;return undefined;}
@@ -1 +1 @@
1
- const a285_0x34d172=a285_0x39cc;function a285_0x2464(){const _0x360f42=['7238010ECDUXo','/smartapi/cross-db-relation/update','4PUbTuZ','/smartapi/cross-db-relation/query','636036VZhKXz','1919309CDDnqO','/smartapi/cross-db-relation/create','984882OhxDek','3379023klYNdG','2203596fEgENB','/smartapi/cross-db-relation/delete','1099575zwIupK','48opqhYP'];a285_0x2464=function(){return _0x360f42;};return a285_0x2464();}(function(_0x24b176,_0x380f5b){const _0x524363=a285_0x39cc,_0x560d60=_0x24b176();while(!![]){try{const _0xa7c845=-parseInt(_0x524363(0x191))/0x1+parseInt(_0x524363(0x186))/0x2+parseInt(_0x524363(0x18e))/0x3*(-parseInt(_0x524363(0x18c))/0x4)+parseInt(_0x524363(0x188))/0x5+-parseInt(_0x524363(0x18a))/0x6+parseInt(_0x524363(0x18f))/0x7*(parseInt(_0x524363(0x189))/0x8)+parseInt(_0x524363(0x192))/0x9;if(_0xa7c845===_0x380f5b)break;else _0x560d60['push'](_0x560d60['shift']());}catch(_0x1ceae6){_0x560d60['push'](_0x560d60['shift']());}}}(a285_0x2464,0xe542d));function a285_0x39cc(_0x53e203,_0x427e58){_0x53e203=_0x53e203-0x186;const _0x2464e0=a285_0x2464();let _0x39cc28=_0x2464e0[_0x53e203];return _0x39cc28;}export const CROSS_DB_RELATION_PATHS={'list':a285_0x34d172(0x18d),'create':a285_0x34d172(0x190),'update':a285_0x34d172(0x18b),'delete':a285_0x34d172(0x187)};
1
+ function a285_0x56bd(){const _0x1f312f=['1521937pZxpnA','78hnFKNd','1379mKgqiY','1479687dFdLFH','31528sguPhX','695gSuODA','4779290VoeVWF','/smartapi/cross-db-relation/delete','/smartapi/cross-db-relation/update','/smartapi/cross-db-relation/create','686652qeKbep','45yxLgWy','1991450LmMasg'];a285_0x56bd=function(){return _0x1f312f;};return a285_0x56bd();}const a285_0x58e930=a285_0x564f;(function(_0x3b586b,_0x21b961){const _0x400350=a285_0x564f,_0x265751=_0x3b586b();while(!![]){try{const _0x127738=-parseInt(_0x400350(0x1e3))/0x1+parseInt(_0x400350(0x1e2))/0x2+-parseInt(_0x400350(0x1e6))/0x3+parseInt(_0x400350(0x1e0))/0x4+-parseInt(_0x400350(0x1e8))/0x5*(-parseInt(_0x400350(0x1e4))/0x6)+-parseInt(_0x400350(0x1e5))/0x7*(parseInt(_0x400350(0x1e7))/0x8)+parseInt(_0x400350(0x1e1))/0x9*(parseInt(_0x400350(0x1e9))/0xa);if(_0x127738===_0x21b961)break;else _0x265751['push'](_0x265751['shift']());}catch(_0x315198){_0x265751['push'](_0x265751['shift']());}}}(a285_0x56bd,0xbb541));function a285_0x564f(_0x4bfe46,_0x34f3ad){_0x4bfe46=_0x4bfe46-0x1e0;const _0x56bd56=a285_0x56bd();let _0x564f11=_0x56bd56[_0x4bfe46];return _0x564f11;}export const CROSS_DB_RELATION_PATHS={'list':'/smartapi/cross-db-relation/query','create':a285_0x58e930(0x1ec),'update':a285_0x58e930(0x1eb),'delete':a285_0x58e930(0x1ea)};
@@ -1 +1 @@
1
- function a286_0x1a9b(){const _0x4f78f4=['db-','No\x20database\x20matching\x20\x22','1560836JbTcmi','.\x20Be\x20more\x20specific.','\x22.\x20Make\x20sure\x20datasets\x20have\x20been\x20created.','10712lmDoUU','has','No\x20linked\x20databases\x20found\x20under\x20app\x20\x22','map','98PBkwUo','\x22.\x20Available:\x20','length','11gIRmWA','join','7317SjJPIf','dbId','\x22\x20under\x20app\x20\x22','\x22\x20matches\x20multiple\x20databases:\x20','get','9uFzvqX','dbtableConfig','5843887ETXaVa','find','4152810muanIG','entries','.\x20If\x20this\x20db\x20belongs\x20to\x20another\x20app,\x20rerun\x20with\x20--appcode\x20<appCode>.','isNaN','toLowerCase','11293730VKqAmg','22214rxwDYB','filter','set','dbName','3288635yqVeah'];a286_0x1a9b=function(){return _0x4f78f4;};return a286_0x1a9b();}(function(_0x2b0533,_0x35ab9c){const _0x58ad4d=a286_0x5335,_0x132568=_0x2b0533();while(!![]){try{const _0xa2786c=parseInt(_0x58ad4d(0xed))/0x1*(-parseInt(_0x58ad4d(0xfb))/0x2)+-parseInt(_0x58ad4d(0xe3))/0x3*(-parseInt(_0x58ad4d(0xf4))/0x4)+parseInt(_0x58ad4d(0xf1))/0x5+-parseInt(_0x58ad4d(0xe7))/0x6+parseInt(_0x58ad4d(0xe5))/0x7+parseInt(_0x58ad4d(0xf7))/0x8*(parseInt(_0x58ad4d(0x100))/0x9)+-parseInt(_0x58ad4d(0xec))/0xa*(parseInt(_0x58ad4d(0xfe))/0xb);if(_0xa2786c===_0x35ab9c)break;else _0x132568['push'](_0x132568['shift']());}catch(_0x59bdf3){_0x132568['push'](_0x132568['shift']());}}}(a286_0x1a9b,0xcd850));import{listDatasets}from'../core/api-client.js';const cache=new Map();export async function listDatabases(_0x35fa41){const _0x586d8a=a286_0x5335;if(cache[_0x586d8a(0xf8)](_0x35fa41))return cache[_0x586d8a(0xe2)](_0x35fa41);const _0x559078=await listDatasets(_0x35fa41),_0x41c5c9=new Map();for(const _0x22fa5b of _0x559078){const _0x24d57d=_0x22fa5b[_0x586d8a(0xe4)];_0x24d57d?.[_0x586d8a(0x101)]!=null&&_0x41c5c9[_0x586d8a(0xef)](_0x24d57d[_0x586d8a(0x101)],_0x24d57d[_0x586d8a(0xf0)]??_0x586d8a(0xf2)+_0x24d57d['dbId']);}const _0x41caba=[..._0x41c5c9[_0x586d8a(0xe8)]()][_0x586d8a(0xfa)](([_0x3ebbf0,_0xe274e5])=>({'dbId':_0x3ebbf0,'dbName':_0xe274e5}));return cache[_0x586d8a(0xef)](_0x35fa41,_0x41caba),_0x41caba;}export async function resolveDb(_0x4fc5da,_0x5b7672){const _0x26c9a5=a286_0x5335,_0x4d2353=await listDatabases(_0x4fc5da);if(_0x4d2353[_0x26c9a5(0xfd)]===0x0)return{'resolved':[],'error':_0x26c9a5(0xf9)+_0x4fc5da+_0x26c9a5(0xf6)};if(!_0x5b7672)return{'resolved':_0x4d2353};const _0xb854ec=Number(_0x5b7672);if(!Number[_0x26c9a5(0xea)](_0xb854ec)){const _0x484e9f=_0x4d2353[_0x26c9a5(0xe6)](_0xef84aa=>_0xef84aa[_0x26c9a5(0x101)]===_0xb854ec);if(_0x484e9f)return{'resolved':[_0x484e9f]};}const _0x68dcec=_0x5b7672[_0x26c9a5(0xeb)](),_0x59c910=_0x4d2353[_0x26c9a5(0xee)](_0x1b0198=>_0x1b0198[_0x26c9a5(0xf0)][_0x26c9a5(0xeb)]()['includes'](_0x68dcec));if(_0x59c910[_0x26c9a5(0xfd)]>0x0)return{'resolved':_0x59c910};const _0x30337e=_0x4d2353[_0x26c9a5(0xfa)](_0xe648b7=>_0xe648b7['dbName']+'\x20('+_0xe648b7['dbId']+')')[_0x26c9a5(0xff)](',\x20');return{'resolved':[],'error':_0x26c9a5(0xf3)+_0x5b7672+_0x26c9a5(0xe0)+_0x4fc5da+_0x26c9a5(0xfc)+_0x30337e+_0x26c9a5(0xe9)};}function a286_0x5335(_0x5232d5,_0x24079c){_0x5232d5=_0x5232d5-0xe0;const _0x1a9bdb=a286_0x1a9b();let _0x533590=_0x1a9bdb[_0x5232d5];return _0x533590;}export async function resolveOneDb(_0xfa0b9f,_0x157fe7){const _0x52918d=a286_0x5335,{resolved:_0x5fc7ce,error:_0x397022}=await resolveDb(_0xfa0b9f,_0x157fe7);if(_0x397022)return{'db':null,'error':_0x397022};if(_0x5fc7ce['length']===0x1)return{'db':_0x5fc7ce[0x0]};if(!_0x157fe7){const _0xbd607c=_0x5fc7ce[_0x52918d(0xfa)](_0xe97334=>_0xe97334[_0x52918d(0xf0)]+'\x20('+_0xe97334[_0x52918d(0x101)]+')')[_0x52918d(0xff)](',\x20');return{'db':null,'error':'Multiple\x20databases\x20found.\x20Specify\x20one\x20with\x20--db:\x20'+_0xbd607c};}const _0x23163a=_0x5fc7ce[_0x52918d(0xfa)](_0x26fae1=>_0x26fae1[_0x52918d(0xf0)]+'\x20('+_0x26fae1['dbId']+')')['join'](',\x20');return{'db':null,'error':'\x22'+_0x157fe7+_0x52918d(0xe1)+_0x23163a+_0x52918d(0xf5)};}export async function getDbName(_0x14de1f,_0x7adda1){const _0x29e52b=a286_0x5335,_0x5064c7=await listDatabases(_0x14de1f);return _0x5064c7[_0x29e52b(0xe6)](_0x1e9bb3=>_0x1e9bb3[_0x29e52b(0x101)]===_0x7adda1)?.[_0x29e52b(0xf0)];}
1
+ (function(_0x5b2e32,_0x585f76){const _0x2e6cae=a286_0x32b8,_0x25c5cb=_0x5b2e32();while(!![]){try{const _0x115465=parseInt(_0x2e6cae(0x82))/0x1*(parseInt(_0x2e6cae(0x90))/0x2)+-parseInt(_0x2e6cae(0x93))/0x3*(parseInt(_0x2e6cae(0x7a))/0x4)+-parseInt(_0x2e6cae(0x8b))/0x5+parseInt(_0x2e6cae(0x7c))/0x6*(parseInt(_0x2e6cae(0x95))/0x7)+-parseInt(_0x2e6cae(0x85))/0x8+-parseInt(_0x2e6cae(0x84))/0x9+parseInt(_0x2e6cae(0x7b))/0xa*(parseInt(_0x2e6cae(0x8d))/0xb);if(_0x115465===_0x585f76)break;else _0x25c5cb['push'](_0x25c5cb['shift']());}catch(_0x283a29){_0x25c5cb['push'](_0x25c5cb['shift']());}}}(a286_0x7ba2,0x9c7a1));import{listDatasets}from'../core/api-client.js';function a286_0x7ba2(){const _0x4e2f89=['685169DwpxWB','toLowerCase','3402657wdkAio','7681200JIuhbo','set','get','map','join','has','6068100TMnzaY','No\x20database\x20matching\x20\x22','2755379LnNxlI','dbId','isNaN','2XVGKet','length','\x22\x20under\x20app\x20\x22','41274VlhRQx','filter','1232vPEIUD','\x22.\x20Make\x20sure\x20datasets\x20have\x20been\x20created.','.\x20Be\x20more\x20specific.','dbName','196ZNBpOB','90TIYTbo','31614VsOrZc','\x22\x20matches\x20multiple\x20databases:\x20','find','\x22.\x20Available:\x20','No\x20linked\x20databases\x20found\x20under\x20app\x20\x22','includes'];a286_0x7ba2=function(){return _0x4e2f89;};return a286_0x7ba2();}const cache=new Map();function a286_0x32b8(_0x575511,_0xcd1624){_0x575511=_0x575511-0x79;const _0x7ba28e=a286_0x7ba2();let _0x32b8a2=_0x7ba28e[_0x575511];return _0x32b8a2;}export async function listDatabases(_0x10a14e){const _0x5c673c=a286_0x32b8;if(cache[_0x5c673c(0x8a)](_0x10a14e))return cache[_0x5c673c(0x87)](_0x10a14e);const _0x40a19f=await listDatasets(_0x10a14e),_0x1a4e21=new Map();for(const _0x5eeac6 of _0x40a19f){const _0x353260=_0x5eeac6['dbtableConfig'];_0x353260?.['dbId']!=null&&_0x1a4e21[_0x5c673c(0x86)](_0x353260[_0x5c673c(0x8e)],_0x353260['dbName']??'db-'+_0x353260['dbId']);}const _0x30f2c8=[..._0x1a4e21['entries']()]['map'](([_0x57d730,_0x842acd])=>({'dbId':_0x57d730,'dbName':_0x842acd}));return cache[_0x5c673c(0x86)](_0x10a14e,_0x30f2c8),_0x30f2c8;}export async function resolveDb(_0x5e57dd,_0x5a944e){const _0x452531=a286_0x32b8,_0x1ec4e7=await listDatabases(_0x5e57dd);if(_0x1ec4e7['length']===0x0)return{'resolved':[],'error':_0x452531(0x80)+_0x5e57dd+_0x452531(0x96)};if(!_0x5a944e)return{'resolved':_0x1ec4e7};const _0x4adb24=Number(_0x5a944e);if(!Number[_0x452531(0x8f)](_0x4adb24)){const _0x381e2a=_0x1ec4e7[_0x452531(0x7e)](_0x52be1d=>_0x52be1d['dbId']===_0x4adb24);if(_0x381e2a)return{'resolved':[_0x381e2a]};}const _0x598045=_0x5a944e['toLowerCase'](),_0x5872b4=_0x1ec4e7[_0x452531(0x94)](_0x297bc0=>_0x297bc0[_0x452531(0x79)][_0x452531(0x83)]()[_0x452531(0x81)](_0x598045));if(_0x5872b4[_0x452531(0x91)]>0x0)return{'resolved':_0x5872b4};const _0x41c8de=_0x1ec4e7[_0x452531(0x88)](_0x4a35de=>_0x4a35de['dbName']+'\x20('+_0x4a35de['dbId']+')')[_0x452531(0x89)](',\x20');return{'resolved':[],'error':_0x452531(0x8c)+_0x5a944e+_0x452531(0x92)+_0x5e57dd+_0x452531(0x7f)+_0x41c8de+'.\x20If\x20this\x20db\x20belongs\x20to\x20another\x20app,\x20rerun\x20with\x20--appcode\x20<appCode>.'};}export async function resolveOneDb(_0x1df336,_0x6a7486){const _0x39b665=a286_0x32b8,{resolved:_0x38392c,error:_0x447c05}=await resolveDb(_0x1df336,_0x6a7486);if(_0x447c05)return{'db':null,'error':_0x447c05};if(_0x38392c[_0x39b665(0x91)]===0x1)return{'db':_0x38392c[0x0]};if(!_0x6a7486){const _0x5edef7=_0x38392c['map'](_0x205843=>_0x205843['dbName']+'\x20('+_0x205843[_0x39b665(0x8e)]+')')[_0x39b665(0x89)](',\x20');return{'db':null,'error':'Multiple\x20databases\x20found.\x20Specify\x20one\x20with\x20--db:\x20'+_0x5edef7};}const _0x549d1a=_0x38392c['map'](_0x5cc4e3=>_0x5cc4e3[_0x39b665(0x79)]+'\x20('+_0x5cc4e3['dbId']+')')[_0x39b665(0x89)](',\x20');return{'db':null,'error':'\x22'+_0x6a7486+_0x39b665(0x7d)+_0x549d1a+_0x39b665(0x97)};}export async function getDbName(_0x263b34,_0xf2aeb9){const _0x2051a0=a286_0x32b8,_0x19abca=await listDatabases(_0x263b34);return _0x19abca[_0x2051a0(0x7e)](_0x385dc6=>_0x385dc6[_0x2051a0(0x8e)]===_0xf2aeb9)?.[_0x2051a0(0x79)];}
@@ -1 +1 @@
1
- const a287_0x8cf25c=a287_0x3c35;(function(_0x2514b3,_0x2a1707){const _0xaff9c8=a287_0x3c35,_0x4a3b54=_0x2514b3();while(!![]){try{const _0x26d730=-parseInt(_0xaff9c8(0x2f0))/0x1*(parseInt(_0xaff9c8(0x1d4))/0x2)+parseInt(_0xaff9c8(0x290))/0x3*(-parseInt(_0xaff9c8(0x2d0))/0x4)+parseInt(_0xaff9c8(0x30b))/0x5*(parseInt(_0xaff9c8(0x1c1))/0x6)+parseInt(_0xaff9c8(0x259))/0x7*(-parseInt(_0xaff9c8(0x1b7))/0x8)+parseInt(_0xaff9c8(0x257))/0x9+-parseInt(_0xaff9c8(0x2a8))/0xa+parseInt(_0xaff9c8(0x233))/0xb;if(_0x26d730===_0x2a1707)break;else _0x4a3b54['push'](_0x4a3b54['shift']());}catch(_0x25912b){_0x4a3b54['push'](_0x4a3b54['shift']());}}}(a287_0x182b,0x88390));import{randomUUID}from'node:crypto';import{chmod,link,readFile,rename,stat,unlink,writeFile}from'node:fs/promises';import{resolve}from'node:path';export const FLOW_CONFIG_JSON_SCHEMA={'$schema':a287_0x8cf25c(0x207),'$id':a287_0x8cf25c(0x31f),'title':a287_0x8cf25c(0x1c8),'type':a287_0x8cf25c(0x2c7),'required':[a287_0x8cf25c(0x1fa),a287_0x8cf25c(0x286),a287_0x8cf25c(0x2fb)],'$defs':{'userId':{'anyOf':[{'type':a287_0x8cf25c(0x1da),'minLength':0x1},{'type':a287_0x8cf25c(0x245),'minimum':0x1}]},'position':{'type':a287_0x8cf25c(0x2c7),'required':['x','y'],'properties':{'x':{'type':a287_0x8cf25c(0x22f),'minimum':0x0},'y':{'type':'number','minimum':0x0}},'additionalProperties':!![]},'timeAmount':{'type':a287_0x8cf25c(0x2c7),'required':[a287_0x8cf25c(0x1c0),'unit'],'properties':{'value':{'type':a287_0x8cf25c(0x245),'minimum':0x1},'unit':{'enum':[a287_0x8cf25c(0x2d9),a287_0x8cf25c(0x31b),a287_0x8cf25c(0x254),'DAYS']}},'additionalProperties':!![]},'flowNode':{'type':a287_0x8cf25c(0x2c7),'required':['id','type','name','position'],'properties':{'id':{'type':a287_0x8cf25c(0x1da),'pattern':a287_0x8cf25c(0x2a3)},'type':{'enum':['START',a287_0x8cf25c(0x20c),a287_0x8cf25c(0x307),a287_0x8cf25c(0x300),a287_0x8cf25c(0x1df),a287_0x8cf25c(0x2ea)]},'name':{'type':'string','minLength':0x1},'path':{'type':a287_0x8cf25c(0x1da),'minLength':0x1},'position':{'$ref':a287_0x8cf25c(0x241)},'approvalMode':{'enum':[a287_0x8cf25c(0x2e2),'ALL',a287_0x8cf25c(0x288)]},'taskMode':{'enum':['APPROVAL','HANDLE']},'assignee':{'type':'object','required':['strategy'],'properties':{'strategy':{'enum':['FIXED',a287_0x8cf25c(0x278)]},'userIds':{'type':a287_0x8cf25c(0x2db),'minItems':0x1,'items':{'$ref':a287_0x8cf25c(0x1f8)}},'roleId':{'anyOf':[{'type':'integer','minimum':0x1},{'type':a287_0x8cf25c(0x1da),'pattern':a287_0x8cf25c(0x211)}]}},'additionalProperties':!![]},'transferCandidates':{'type':a287_0x8cf25c(0x2c7),'required':[a287_0x8cf25c(0x2f6),a287_0x8cf25c(0x1d7)],'properties':{'strategy':{'const':a287_0x8cf25c(0x309)},'userIds':{'type':a287_0x8cf25c(0x2db),'minItems':0x1,'items':{'$ref':'#/$defs/userId'}}},'additionalProperties':!![]},'sequential':{'type':a287_0x8cf25c(0x1e4)},'result':{'enum':[a287_0x8cf25c(0x253),a287_0x8cf25c(0x2cf)]},'scriptName':{'type':a287_0x8cf25c(0x1da),'minLength':0x1},'resultVariable':{'type':a287_0x8cf25c(0x1da),'pattern':a287_0x8cf25c(0x2a3)},'async':{'type':'object','properties':{'enabled':{'type':a287_0x8cf25c(0x1e4)},'retryCount':{'type':a287_0x8cf25c(0x245),'minimum':0x1,'maximum':0xa},'retryInterval':{'$ref':a287_0x8cf25c(0x2da)}},'additionalProperties':!![]},'timeout':{'type':a287_0x8cf25c(0x2c7),'properties':{'enabled':{'type':'boolean'},'duration':{'$ref':a287_0x8cf25c(0x2da)},'action':{'enum':[a287_0x8cf25c(0x214),a287_0x8cf25c(0x25a),'EXECUTE_BFF']},'interrupting':{'type':a287_0x8cf25c(0x1e4)},'scriptName':{'type':a287_0x8cf25c(0x1da),'minLength':0x1},'resultVariable':{'type':a287_0x8cf25c(0x1da),'pattern':a287_0x8cf25c(0x2a3)}},'additionalProperties':!![]},'cc':{'type':a287_0x8cf25c(0x2c7),'required':[a287_0x8cf25c(0x28f)],'properties':{'recipientUserIds':{'type':a287_0x8cf25c(0x2db),'minItems':0x1,'maxItems':0x64,'uniqueItems':!![],'items':{'type':'string','minLength':0x1}},'visible':{'type':a287_0x8cf25c(0x2db),'uniqueItems':!![],'items':{'type':a287_0x8cf25c(0x1da),'minLength':0x1}},'readSources':![]},'additionalProperties':!![]},'config':{'type':a287_0x8cf25c(0x2c7),'required':['configCode',a287_0x8cf25c(0x1b9)],'properties':{'version':{'enum':['v1']},'configCode':{'type':a287_0x8cf25c(0x1da),'minLength':0x1},'failurePolicy':{'enum':[a287_0x8cf25c(0x280),a287_0x8cf25c(0x293)]},'template':{'type':'object','required':['title','summary'],'properties':{'title':{'type':'string','minLength':0x1},'summary':{'type':a287_0x8cf25c(0x1da),'minLength':0x1},'detailMarkdown':{'type':a287_0x8cf25c(0x1da)},'facts':{'type':a287_0x8cf25c(0x2db),'maxItems':0x8,'items':{'type':a287_0x8cf25c(0x2c7),'required':[a287_0x8cf25c(0x311),a287_0x8cf25c(0x1c0)],'properties':{'label':{'type':a287_0x8cf25c(0x1da),'minLength':0x1},'value':{'type':a287_0x8cf25c(0x1da),'minLength':0x1}},'additionalProperties':!![]}},'actions':{'type':a287_0x8cf25c(0x2db),'maxItems':0x2,'items':{'type':a287_0x8cf25c(0x2c7),'required':[a287_0x8cf25c(0x26b),a287_0x8cf25c(0x23c)],'properties':{'text':{'type':'string','minLength':0x1},'url':{'type':a287_0x8cf25c(0x1da),'minLength':0x1}},'additionalProperties':!![]}}},'additionalProperties':!![]},'recipients':{'type':a287_0x8cf25c(0x2db),'items':{'type':a287_0x8cf25c(0x2c7),'required':[a287_0x8cf25c(0x23e),a287_0x8cf25c(0x1c0)],'properties':{'type':{'enum':[a287_0x8cf25c(0x28b),a287_0x8cf25c(0x278),a287_0x8cf25c(0x267)]},'value':{'type':a287_0x8cf25c(0x1da),'minLength':0x1},'role':{'enum':['TO','CC',a287_0x8cf25c(0x287)]}},'additionalProperties':!![]}}},'additionalProperties':!![]},'form':![],'formPermission':![]},'additionalProperties':!![]},'flowEdge':{'type':a287_0x8cf25c(0x2c7),'properties':{'id':{'type':a287_0x8cf25c(0x1da),'pattern':a287_0x8cf25c(0x2a3)},'source':{'type':a287_0x8cf25c(0x1da),'minLength':0x1},'target':{'type':a287_0x8cf25c(0x1da),'minLength':0x1},'sourceNodeId':{'type':a287_0x8cf25c(0x1da),'minLength':0x1},'targetNodeId':{'type':a287_0x8cf25c(0x1da),'minLength':0x1},'conditionType':{'enum':['ALWAYS',a287_0x8cf25c(0x253),a287_0x8cf25c(0x2cf),'EXPRESSION']},'expression':{'type':a287_0x8cf25c(0x1da)},'defaultFlow':{'type':'boolean'},'name':{'type':a287_0x8cf25c(0x1da)},'waypoints':{'type':a287_0x8cf25c(0x2db),'items':{'$ref':a287_0x8cf25c(0x241)}}},'allOf':[{'anyOf':[{'required':[a287_0x8cf25c(0x25d)]},{'required':[a287_0x8cf25c(0x26f)]}]},{'anyOf':[{'required':['target']},{'required':[a287_0x8cf25c(0x25e)]}]}],'additionalProperties':!![]}},'properties':{'id':![],'appCode':![],'flowName':{'type':a287_0x8cf25c(0x1da),'minLength':0x1},'flowDesc':{'type':a287_0x8cf25c(0x1da)},'flowType':{'enum':[a287_0x8cf25c(0x1e0),a287_0x8cf25c(0x315)]},'datasetCode':{'type':a287_0x8cf25c(0x1da),'minLength':0x1},'pageId':{'type':a287_0x8cf25c(0x245)},'templateName':![],'flowJson':{'type':'object','required':[a287_0x8cf25c(0x24b),a287_0x8cf25c(0x1e7)],'properties':{'flowKey':![],'flowCode':![],'flowName':![],'bindDatasetCode':![],'datasetCode':![],'appCode':![],'pageId':![],'templateName':![],'schemaVersion':{'type':a287_0x8cf25c(0x1da),'const':a287_0x8cf25c(0x21d),'description':'Accepted\x20as\x20legacy\x20input\x20and\x20removed\x20during\x20normalization;\x20other\x20versions\x20are\x20unsupported.'},'formSchema':![],'formDefinitions':![],'formPermissions':![],'pageMode':{'const':'CUSTOM_PAGE'},'startPageId':![],'startPath':{'type':a287_0x8cf25c(0x1da),'minLength':0x1},'nodes':{'type':a287_0x8cf25c(0x2db),'minItems':0x1,'items':{'$ref':a287_0x8cf25c(0x1ff)}},'edges':{'type':a287_0x8cf25c(0x2db),'minItems':0x1,'items':{'$ref':a287_0x8cf25c(0x1f3)}}},'additionalProperties':!![]}},'additionalProperties':!![]};const REMOVED_FLOW_JSON_FIELDS=[a287_0x8cf25c(0x27e),a287_0x8cf25c(0x249),'flowName',a287_0x8cf25c(0x28a),a287_0x8cf25c(0x204),a287_0x8cf25c(0x2e3),'pageId',a287_0x8cf25c(0x1c2)],REMOVED_ROOT_FIELDS=['id','appCode','templateName'],DEFAULT_FLOW_SCHEMA_VERSION=a287_0x8cf25c(0x21d),NODE_TYPES=new Set(['START',a287_0x8cf25c(0x20c),'APPROVAL','CONDITION',a287_0x8cf25c(0x1df),a287_0x8cf25c(0x2ea)]),CONDITION_TYPES=new Set(['ALWAYS',a287_0x8cf25c(0x253),a287_0x8cf25c(0x2cf),a287_0x8cf25c(0x21b)]),APPROVAL_MODES=new Set(['SINGLE',a287_0x8cf25c(0x2ad),a287_0x8cf25c(0x288)]),APPROVAL_TASK_MODES=new Set([a287_0x8cf25c(0x307),a287_0x8cf25c(0x1f1)]),FLOW_TIME_UNITS=new Set([a287_0x8cf25c(0x2d9),a287_0x8cf25c(0x31b),a287_0x8cf25c(0x254),a287_0x8cf25c(0x2dc)]),APPROVAL_TIMEOUT_ACTIONS=new Set(['AUTO_APPROVE',a287_0x8cf25c(0x25a),a287_0x8cf25c(0x2c3)]),FLOW_TYPES=new Set([a287_0x8cf25c(0x1e0),a287_0x8cf25c(0x315)]),FLOW_PAGE_MODES=new Set([a287_0x8cf25c(0x230),a287_0x8cf25c(0x292)]),BPMN_ID_PATTERN=/^[A-Za-z_][A-Za-z0-9_]*$/,VARIABLE_PATTERN=/^[A-Za-z_][A-Za-z0-9_]*$/,NOTIFICATION_PLACEHOLDER_PATTERN=/\$\{([^{}]+)\}/g,NOTIFICATION_ACTION_URL_PLACEHOLDER_PATTERN=/^\$\{(?:event|context|variables)\.[^{}]+\}$/,NOTIFICATION_FAILURE_POLICIES=new Set([a287_0x8cf25c(0x280),a287_0x8cf25c(0x293)]),NOTIFICATION_RECIPIENT_TYPES=new Set([a287_0x8cf25c(0x28b),a287_0x8cf25c(0x278),a287_0x8cf25c(0x267)]),NOTIFICATION_RECIPIENT_ROLES=new Set(['TO','CC',a287_0x8cf25c(0x287)]),MAX_NOTIFICATION_FACTS=0x8,MAX_NOTIFICATION_ACTIONS=0x2,MAX_ASYNC_RETRY_COUNT=0xa,MAX_CC_RECIPIENTS=0x64,DEFAULT_SCRIPT_RESULT_VARIABLE=a287_0x8cf25c(0x1ee),UNSUPPORTED_FORM_MESSAGE=a287_0x8cf25c(0x24a),UNSUPPORTED_PLATFORM_FORM_MESSAGE=a287_0x8cf25c(0x27a),RESERVED_RESULT_VARIABLES=new Set([a287_0x8cf25c(0x2ca),a287_0x8cf25c(0x1f5),a287_0x8cf25c(0x2a4),a287_0x8cf25c(0x222),a287_0x8cf25c(0x213),a287_0x8cf25c(0x2a1),a287_0x8cf25c(0x252),'approval_sys_pageId',a287_0x8cf25c(0x303),a287_0x8cf25c(0x308)]);export function normalizeFlowConfig(_0x1ea783){const _0x4bf56d=a287_0x8cf25c;if(!isRecord(_0x1ea783))throw new TypeError('FlowConfig\x20must\x20be\x20a\x20JSON\x20object.');const _0x388f2a=cloneJsonValue(_0x1ea783),_0x3facda=_0x388f2a[_0x4bf56d(0x2fb)],_0x3f9721=isRecord(_0x3facda)?cloneJsonValue(_0x3facda):{},_0x579740=[],_0x5d3dd3=[];for(const _0x52d4bf of REMOVED_ROOT_FIELDS){if(!Object['prototype'][_0x4bf56d(0x1de)]['call'](_0x388f2a,_0x52d4bf))continue;delete _0x388f2a[_0x52d4bf],_0x5d3dd3[_0x4bf56d(0x1db)](_0x52d4bf),_0x579740[_0x4bf56d(0x1db)]({'code':'legacy_field_removed','path':_0x52d4bf,'message':_0x52d4bf+_0x4bf56d(0x2bc)});}for(const _0x36b92e of REMOVED_FLOW_JSON_FIELDS){if(!Object[_0x4bf56d(0x2ac)][_0x4bf56d(0x1de)][_0x4bf56d(0x2c6)](_0x3f9721,_0x36b92e))continue;const _0x445da7='flowJson.'+_0x36b92e;delete _0x3f9721[_0x36b92e],_0x5d3dd3[_0x4bf56d(0x1db)](_0x445da7),_0x579740['push']({'code':_0x4bf56d(0x2cc),'path':_0x445da7,'message':_0x445da7+_0x4bf56d(0x2bc)});}if(Object[_0x4bf56d(0x2ac)][_0x4bf56d(0x1de)][_0x4bf56d(0x2c6)](_0x3f9721,_0x4bf56d(0x2af))){const _0x5e6b17=_0x3f9721[_0x4bf56d(0x2af)],_0x20f75a=typeof _0x5e6b17===_0x4bf56d(0x1da)?_0x5e6b17['trim']():_0x5e6b17;if(isEmptyJsonValue(_0x5e6b17)||_0x20f75a===DEFAULT_FLOW_SCHEMA_VERSION){const _0x4db7e1=_0x4bf56d(0x221);delete _0x3f9721['schemaVersion'],_0x5d3dd3['push'](_0x4db7e1),_0x579740[_0x4bf56d(0x1db)]({'code':'legacy_field_removed','path':_0x4db7e1,'message':_0x4db7e1+'\x20was\x20empty\x20or\x20used\x20the\x20default\x20'+DEFAULT_FLOW_SCHEMA_VERSION+_0x4bf56d(0x235)});}}removeEmptyMetadata(_0x3f9721,'flowJson',_0x579740,_0x5d3dd3);_0x388f2a[_0x4bf56d(0x286)]===_0x4bf56d(0x315)&&!Object[_0x4bf56d(0x2ac)][_0x4bf56d(0x1de)][_0x4bf56d(0x2c6)](_0x3f9721,_0x4bf56d(0x212))&&(_0x3f9721['pageMode']=_0x4bf56d(0x230));_0x388f2a['flowJson']=_0x3f9721;if(typeof _0x388f2a[_0x4bf56d(0x1fa)]==='string')_0x388f2a[_0x4bf56d(0x1fa)]=_0x388f2a['flowName']['trim']();return{'config':_0x388f2a,'warnings':_0x579740,'removedPaths':_0x5d3dd3};}export function validateFlowConfig(_0x3e97cc){const _0x54e224=a287_0x8cf25c;let _0x5054e8;try{_0x5054e8=normalizeFlowConfig(_0x3e97cc);}catch(_0x802251){const _0x58aa13=_0x802251 instanceof Error?_0x802251['message']:String(_0x802251),_0x35aeea={'flowJson':{}};return{'valid':![],'errors':[{'path':'$','message':_0x58aa13}],'warnings':[],'normalized':_0x35aeea,'validationConfig':_0x35aeea};}const _0xa55f8d=_0x5054e8[_0x54e224(0x28d)],_0x2f7997=cloneJsonValue(_0xa55f8d),_0x3cd3e5=_0x2f7997[_0x54e224(0x2fb)];_0x3cd3e5[_0x54e224(0x27e)]=_0x54e224(0x237),_0x3cd3e5[_0x54e224(0x1fa)]=_0xa55f8d[_0x54e224(0x1fa)];typeof _0xa55f8d[_0x54e224(0x204)]==='string'&&_0xa55f8d['datasetCode'][_0x54e224(0x1d3)]()&&(_0x3cd3e5[_0x54e224(0x28a)]=_0xa55f8d[_0x54e224(0x204)][_0x54e224(0x1d3)]());const _0x404d7d=[];return validateOuterMetadata(_0xa55f8d,_0x404d7d),validateFlowClassification(_0xa55f8d,_0x404d7d),validateGraph(_0xa55f8d[_0x54e224(0x2fb)],_0x404d7d),{'valid':_0x404d7d[_0x54e224(0x318)]===0x0,'errors':_0x404d7d,'warnings':_0x5054e8['warnings'],'normalized':_0xa55f8d,'validationConfig':_0x2f7997};}function validateFlowClassification(_0x4df875,_0x1c25be){const _0x328cf6=a287_0x8cf25c;if(!isRecord(_0x4df875['flowJson']))return;const _0x28cc01=_0x4df875[_0x328cf6(0x286)],_0x5d4f3c=_0x4df875[_0x328cf6(0x2fb)][_0x328cf6(0x212)];_0x5d4f3c!==undefined&&(typeof _0x5d4f3c!==_0x328cf6(0x1da)||!FLOW_PAGE_MODES[_0x328cf6(0x2ae)](_0x5d4f3c))&&_0x1c25be[_0x328cf6(0x1db)]({'path':_0x328cf6(0x283),'message':_0x328cf6(0x23a)+String(_0x5d4f3c)+'.'});_0x28cc01===_0x328cf6(0x1e0)&&_0x5d4f3c!==undefined&&_0x1c25be[_0x328cf6(0x1db)]({'path':'flowJson.pageMode','message':_0x328cf6(0x22c)});_0x28cc01===_0x328cf6(0x315)&&_0x5d4f3c==='PLATFORM_FORM'&&_0x1c25be['push']({'path':'flowJson.pageMode','message':UNSUPPORTED_PLATFORM_FORM_MESSAGE});(_0x28cc01===_0x328cf6(0x1e0)||_0x28cc01===_0x328cf6(0x315))&&validateCustomPageNavigation(_0x4df875,_0x28cc01,_0x5d4f3c,_0x1c25be);if(_0x28cc01!==_0x328cf6(0x1e0)||!Array[_0x328cf6(0x2df)](_0x4df875[_0x328cf6(0x2fb)][_0x328cf6(0x24b)]))return;_0x4df875[_0x328cf6(0x2fb)][_0x328cf6(0x24b)][_0x328cf6(0x236)]((_0x43751f,_0x48d12e)=>{const _0x4e8649=_0x328cf6;isRecord(_0x43751f)&&_0x43751f[_0x4e8649(0x23e)]===_0x4e8649(0x307)&&_0x43751f[_0x4e8649(0x2a0)]==='HANDLE'&&_0x1c25be['push']({'path':_0x4e8649(0x2fa)+_0x48d12e+_0x4e8649(0x2e4),'message':_0x4e8649(0x1cb)});});}function validateCustomPageNavigation(_0x4af14d,_0x5edb3b,_0x252f6c,_0xc29c9c){const _0x2284fc=a287_0x8cf25c,_0x5d9953=_0x4af14d[_0x2284fc(0x2fb)][_0x2284fc(0x2b2)];_0x5d9953!==undefined&&_0xc29c9c['push']({'path':_0x2284fc(0x304),'message':_0x2284fc(0x1ec)});const _0x417f70=_0x4af14d['flowJson'][_0x2284fc(0x240)];_0x417f70!==undefined&&(typeof _0x417f70!==_0x2284fc(0x1da)||_0x417f70[_0x2284fc(0x1d3)]()==='')&&_0xc29c9c[_0x2284fc(0x1db)]({'path':_0x2284fc(0x1c7),'message':_0x2284fc(0x1bf)});const _0x2eaa0c=Array[_0x2284fc(0x2df)](_0x4af14d[_0x2284fc(0x2fb)][_0x2284fc(0x24b)])?_0x4af14d[_0x2284fc(0x2fb)][_0x2284fc(0x24b)][_0x2284fc(0x2ab)]((_0x3c0bfd,_0x28991e)=>({'node':_0x3c0bfd,'index':_0x28991e}))[_0x2284fc(0x255)](({node:_0x540bb0})=>isRecord(_0x540bb0)&&_0x540bb0['path']!==undefined):[],_0xf58da5=_0x417f70!==undefined||_0x2eaa0c[_0x2284fc(0x318)]>0x0,_0x479509=_0x252f6c===undefined&&_0x5edb3b===_0x2284fc(0x315)?_0x2284fc(0x230):_0x252f6c;_0xf58da5&&(_0x5edb3b!=='INDEPENDENT_FLOW'||_0x479509!=='CUSTOM_PAGE')&&(_0x417f70!==undefined&&_0xc29c9c[_0x2284fc(0x1db)]({'path':_0x2284fc(0x1c7),'message':'startPath\x20applies\x20only\x20to\x20INDEPENDENT_FLOW\x20with\x20CUSTOM_PAGE.'}),_0x2eaa0c[_0x2284fc(0x236)](({index:_0x3a949e})=>{const _0x37d374=_0x2284fc;_0xc29c9c[_0x37d374(0x1db)]({'path':_0x37d374(0x2fa)+_0x3a949e+_0x37d374(0x265),'message':'node\x20path\x20applies\x20only\x20to\x20INDEPENDENT_FLOW\x20with\x20CUSTOM_PAGE.'});}));}export async function writeNormalizedFlowConfig(_0x461c0d,_0x3c2706,_0x3b8978={}){const _0x2a0a1f=a287_0x8cf25c,_0x2addab=resolve(_0x461c0d),_0x5cd8a9=_0x2addab+'.'+process['pid']+'.'+randomUUID()+_0x2a0a1f(0x262),_0x147c4a=JSON[_0x2a0a1f(0x246)](_0x3c2706,null,0x2)+'\x0a';let _0x153ac3;try{try{_0x153ac3=(await stat(_0x2addab))['mode']&0x1ff;}catch{_0x153ac3=undefined;}await writeFile(_0x5cd8a9,_0x147c4a,{'encoding':_0x2a0a1f(0x219),'flag':'wx','mode':_0x153ac3??0x1a4});if(_0x153ac3!==undefined)await chmod(_0x5cd8a9,_0x153ac3);_0x3b8978[_0x2a0a1f(0x270)]===![]?(await link(_0x5cd8a9,_0x2addab),await unlink(_0x5cd8a9)):await rename(_0x5cd8a9,_0x2addab);}finally{await unlink(_0x5cd8a9)[_0x2a0a1f(0x2fc)](()=>undefined);}}function validateOuterMetadata(_0x4b8c86,_0x5ecbe2){const _0x14598d=a287_0x8cf25c;(typeof _0x4b8c86[_0x14598d(0x1fa)]!==_0x14598d(0x1da)||_0x4b8c86['flowName'][_0x14598d(0x1d3)]()==='')&&_0x5ecbe2[_0x14598d(0x1db)]({'path':_0x14598d(0x1fa),'message':_0x14598d(0x2e1)});_0x4b8c86[_0x14598d(0x2e5)]!==undefined&&typeof _0x4b8c86[_0x14598d(0x2e5)]!=='string'&&_0x5ecbe2[_0x14598d(0x1db)]({'path':'flowDesc','message':_0x14598d(0x26c)});if(_0x4b8c86['flowType']===undefined||_0x4b8c86['flowType']===null)_0x5ecbe2[_0x14598d(0x1db)]({'path':_0x14598d(0x286),'message':_0x14598d(0x25c)});else(typeof _0x4b8c86['flowType']!==_0x14598d(0x1da)||!FLOW_TYPES[_0x14598d(0x2ae)](_0x4b8c86[_0x14598d(0x286)]))&&_0x5ecbe2[_0x14598d(0x1db)]({'path':_0x14598d(0x286),'message':_0x14598d(0x2ff)+String(_0x4b8c86[_0x14598d(0x286)])+'.'});_0x4b8c86['datasetCode']!==undefined&&typeof _0x4b8c86[_0x14598d(0x204)]!==_0x14598d(0x1da)&&_0x5ecbe2[_0x14598d(0x1db)]({'path':'datasetCode','message':_0x14598d(0x268)}),_0x4b8c86['pageId']!==undefined&&(!Number['isInteger'](_0x4b8c86[_0x14598d(0x2f3)])||_0x4b8c86['pageId']<0x0)&&_0x5ecbe2[_0x14598d(0x1db)]({'path':_0x14598d(0x2f3),'message':'pageId\x20must\x20be\x20a\x20non-negative\x20integer.'}),_0x4b8c86[_0x14598d(0x286)]==='INDEPENDENT_FLOW'&&_0x4b8c86[_0x14598d(0x204)]!==undefined&&_0x5ecbe2[_0x14598d(0x1db)]({'path':_0x14598d(0x204),'message':_0x14598d(0x305)}),_0x4b8c86['flowType']===_0x14598d(0x315)&&_0x4b8c86[_0x14598d(0x2f3)]!==undefined&&_0x5ecbe2['push']({'path':_0x14598d(0x2f3),'message':_0x14598d(0x1fb)});}function validateGraph(_0x589d41,_0x52bae6){const _0x47a8e9=a287_0x8cf25c;if(!isRecord(_0x589d41)){_0x52bae6['push']({'path':_0x47a8e9(0x2fb),'message':_0x47a8e9(0x266)});return;}!Array[_0x47a8e9(0x2df)](_0x589d41[_0x47a8e9(0x24b)])&&_0x52bae6[_0x47a8e9(0x1db)]({'path':'flowJson.nodes','message':_0x47a8e9(0x2ef)});!Array['isArray'](_0x589d41[_0x47a8e9(0x1e7)])&&_0x52bae6['push']({'path':_0x47a8e9(0x247),'message':_0x47a8e9(0x2b7)});Object[_0x47a8e9(0x2ac)][_0x47a8e9(0x1de)][_0x47a8e9(0x2c6)](_0x589d41,'schemaVersion')&&_0x52bae6[_0x47a8e9(0x1db)]({'path':_0x47a8e9(0x221),'message':_0x47a8e9(0x1d2)+String(_0x589d41[_0x47a8e9(0x2af)])+_0x47a8e9(0x28e)+DEFAULT_FLOW_SCHEMA_VERSION+'.'});for(const _0x270225 of[_0x47a8e9(0x273),_0x47a8e9(0x1bd),_0x47a8e9(0x239)]){Object[_0x47a8e9(0x2ac)][_0x47a8e9(0x1de)][_0x47a8e9(0x2c6)](_0x589d41,_0x270225)&&_0x52bae6[_0x47a8e9(0x1db)]({'path':_0x47a8e9(0x23d)+_0x270225,'message':UNSUPPORTED_FORM_MESSAGE});}if(!Array[_0x47a8e9(0x2df)](_0x589d41[_0x47a8e9(0x24b)])||!Array[_0x47a8e9(0x2df)](_0x589d41[_0x47a8e9(0x1e7)]))return;const _0x37ab1d=new Map(),_0x1554bd=[],_0x44d7b8=[],_0x19506c=new Map(),_0x4f9224=new Map(),_0xff4204=new Set();let _0x126ba6=0x0;_0x589d41[_0x47a8e9(0x24b)][_0x47a8e9(0x236)]((_0x45a113,_0xd8b788)=>{const _0x4e9c58=_0x47a8e9,_0x608797=_0x4e9c58(0x2fa)+_0xd8b788+']';if(!isRecord(_0x45a113)){_0x52bae6[_0x4e9c58(0x1db)]({'path':_0x608797,'message':_0x4e9c58(0x1cf)});return;}const _0x26aff1=_0x45a113;if(typeof _0x26aff1['id']!==_0x4e9c58(0x1da)||!BPMN_ID_PATTERN[_0x4e9c58(0x1ea)](_0x26aff1['id']))_0x52bae6['push']({'path':_0x608797+_0x4e9c58(0x2d3),'message':'node\x20id\x20must\x20match\x20[A-Za-z_][A-Za-z0-9_]*.'});else _0x37ab1d[_0x4e9c58(0x2ae)](_0x26aff1['id'])?_0x52bae6['push']({'path':_0x608797+'.id','message':'Duplicate\x20node\x20id:\x20'+_0x26aff1['id']+'.'}):(_0x37ab1d['set'](_0x26aff1['id'],_0x26aff1),_0xff4204[_0x4e9c58(0x238)](_0x26aff1['id']));if(!NODE_TYPES[_0x4e9c58(0x2ae)](_0x26aff1[_0x4e9c58(0x23e)]))_0x52bae6[_0x4e9c58(0x1db)]({'path':_0x608797+_0x4e9c58(0x20e),'message':_0x4e9c58(0x2ba)+String(_0x26aff1[_0x4e9c58(0x23e)])+'.'});else{if(_0x26aff1[_0x4e9c58(0x23e)]===_0x4e9c58(0x209))_0x1554bd[_0x4e9c58(0x1db)](_0x26aff1['id']);else _0x26aff1[_0x4e9c58(0x23e)]===_0x4e9c58(0x20c)&&_0x44d7b8['push'](_0x26aff1['id']);}_0x26aff1[_0x4e9c58(0x23e)]===_0x4e9c58(0x307)&&(_0x26aff1['taskMode']===undefined||_0x26aff1[_0x4e9c58(0x2a0)]===_0x4e9c58(0x307))&&(_0x126ba6+=0x1);validateNode(_0x26aff1,_0x608797,_0x52bae6);if(_0x26aff1[_0x4e9c58(0x23e)]===_0x4e9c58(0x1df)){const _0x206c23=resolveEffectiveResultVariable(_0x26aff1['resultVariable'],![]);_0x206c23&&(registerResultVariableOwner(_0x4f9224,_0x206c23,_0x26aff1['id'],_0x52bae6),!_0x19506c[_0x4e9c58(0x2ae)](_0x206c23)&&_0x19506c[_0x4e9c58(0x1e2)](_0x206c23,_0x26aff1['id']));}if(_0x26aff1[_0x4e9c58(0x23e)]===_0x4e9c58(0x307)&&isRecord(_0x26aff1['timeout'])&&_0x26aff1[_0x4e9c58(0x24f)]['enabled']===!![]&&_0x26aff1['timeout'][_0x4e9c58(0x31e)]===_0x4e9c58(0x2c3)){const _0x369034=resolveEffectiveResultVariable(_0x26aff1[_0x4e9c58(0x24f)][_0x4e9c58(0x234)],!![]);_0x369034&&registerResultVariableOwner(_0x4f9224,_0x369034,_0x26aff1['id']+_0x4e9c58(0x216),_0x52bae6);}});_0x1554bd['length']!==0x1&&_0x52bae6[_0x47a8e9(0x1db)]({'path':_0x47a8e9(0x2e0),'message':_0x47a8e9(0x277)});_0x44d7b8[_0x47a8e9(0x318)]===0x0&&_0x52bae6['push']({'path':'flowJson.nodes','message':_0x47a8e9(0x217)});const _0x1f3374=new Map(),_0x2d3a90=new Map(),_0x4674b0=new Map(),_0x3d1802=new Set();_0x589d41[_0x47a8e9(0x1e7)]['forEach']((_0x31d77f,_0x477aa9)=>{const _0x21688a=_0x47a8e9,_0x510eeb=_0x21688a(0x2c1)+_0x477aa9+']';if(!isRecord(_0x31d77f)){_0x52bae6[_0x21688a(0x1db)]({'path':_0x510eeb,'message':_0x21688a(0x26d)});return;}const _0x4e9fb0=_0x31d77f;_0x4674b0[_0x21688a(0x1e2)](_0x4e9fb0,_0x510eeb);const _0x477c96=resolveEdgeEndpoint(_0x4e9fb0[_0x21688a(0x25d)],_0x4e9fb0['sourceNodeId']),_0x3d7869=resolveEdgeEndpoint(_0x4e9fb0[_0x21688a(0x25f)],_0x4e9fb0[_0x21688a(0x25e)]);if(!_0x477c96)_0x52bae6[_0x21688a(0x1db)]({'path':_0x510eeb+_0x21688a(0x2d7),'message':'edge\x20source\x20is\x20required.'});if(!_0x3d7869)_0x52bae6[_0x21688a(0x1db)]({'path':_0x510eeb+_0x21688a(0x298),'message':_0x21688a(0x1dc)});_0x477c96&&!_0x37ab1d['has'](_0x477c96)&&_0x52bae6[_0x21688a(0x1db)]({'path':_0x510eeb+_0x21688a(0x2d7),'message':_0x21688a(0x229)+_0x477c96+'.'});_0x3d7869&&!_0x37ab1d[_0x21688a(0x2ae)](_0x3d7869)&&_0x52bae6[_0x21688a(0x1db)]({'path':_0x510eeb+_0x21688a(0x298),'message':_0x21688a(0x316)+_0x3d7869+'.'});if(_0x4e9fb0['id']!==undefined){if(typeof _0x4e9fb0['id']!==_0x21688a(0x1da)||!BPMN_ID_PATTERN[_0x21688a(0x1ea)](_0x4e9fb0['id']))_0x52bae6[_0x21688a(0x1db)]({'path':_0x510eeb+_0x21688a(0x2d3),'message':_0x21688a(0x282)});else{if(_0xff4204[_0x21688a(0x2ae)](_0x4e9fb0['id']))_0x52bae6[_0x21688a(0x1db)]({'path':_0x510eeb+_0x21688a(0x2d3),'message':_0x21688a(0x27f)+_0x4e9fb0['id']+'.'});else!_0xff4204[_0x21688a(0x2ae)](_0x4e9fb0['id'])&&_0xff4204[_0x21688a(0x238)](_0x4e9fb0['id']);}}if(_0x477c96&&_0x3d7869){const _0x40a087=_0x477c96+'\x00'+_0x3d7869+'\x00'+(_0x4e9fb0[_0x21688a(0x297)]??_0x21688a(0x1fe));_0x3d1802[_0x21688a(0x2ae)](_0x40a087)?_0x52bae6[_0x21688a(0x1db)]({'path':_0x510eeb,'message':_0x21688a(0x276)+_0x477c96+_0x21688a(0x1d9)+_0x3d7869+'\x20('+(_0x4e9fb0[_0x21688a(0x297)]??_0x21688a(0x1fe))+').'}):_0x3d1802['add'](_0x40a087);}validateEdge(_0x4e9fb0,_0x510eeb,_0x52bae6),_0x477c96&&_0x3d7869&&(_0x1f3374[_0x21688a(0x22d)](_0x477c96)?.['push'](_0x4e9fb0)??_0x1f3374[_0x21688a(0x1e2)](_0x477c96,[_0x4e9fb0]),_0x2d3a90['get'](_0x3d7869)?.[_0x21688a(0x1db)](_0x4e9fb0)??_0x2d3a90[_0x21688a(0x1e2)](_0x3d7869,[_0x4e9fb0]));});if(_0x1554bd[_0x47a8e9(0x318)]!==0x1)return;validateGraphShape(_0x37ab1d,_0x1554bd[0x0],_0x44d7b8,_0x1f3374,_0x2d3a90,_0x4674b0,_0x52bae6),validateScriptResultReferences(_0x37ab1d,_0x1554bd[0x0],_0x1f3374,_0x2d3a90,_0x4674b0,_0x19506c,_0x52bae6),validateApprovalResults(_0x37ab1d,_0x126ba6,_0x44d7b8,_0x52bae6);}function a287_0x182b(){const _0x4fd0be=['waypoints','boolean','.waypoints[','NOTIFICATION\x20node\x20requires\x20template.','edges','detailMarkdown','Notification\x20recipient.role\x20must\x20be\x20TO,\x20CC,\x20or\x20BCC.','test','cc.recipientUserIds\x20must\x20be\x20a\x20non-empty\x20array.','startPageId\x20is\x20no\x20longer\x20supported;\x20use\x20startPath\x20instead.','cc\x20recipient\x20userId\x20must\x20be\x20a\x20non-empty\x20string.','scriptResult','.cc.recipientUserIds[','matchAll','HANDLE','role','#/$defs/flowEdge','empty_metadata_removed','approved','cc\x20must\x20be\x20an\x20object.','\x20is\x20required.','#/$defs/userId','context','flowName','INDEPENDENT_FLOW\x20cannot\x20bind\x20pageId.','.text','isSafeInteger','ALWAYS','#/$defs/flowNode','\x20must\x20be\x20a\x20finite\x20number.','.transferCandidates.userIds','.cc.visible','indexOf','datasetCode','transfer\x20candidate\x20userId\x20must\x20be\x20a\x20non-empty\x20string\x20or\x20positive\x20integer.','APPROVAL\x20node\x20outgoing\x20edges\x20must\x20use\x20APPROVED\x20or\x20REJECTED.','https://json-schema.org/draft/2020-12/schema','Unsupported\x20notification\x20version:\x20','START','Node\x20cannot\x20reach\x20any\x20END.','Duplicate\x20resultVariable:\x20','END','.cc','.type','timeout.enabled\x20must\x20be\x20a\x20boolean.','timeout\x20must\x20be\x20an\x20object.','^[1-9][0-9]*$','pageMode','approval_sys_initiatorUserId','AUTO_APPROVE','retryInterval','.timeout','Flow\x20must\x20contain\x20at\x20least\x20one\x20END\x20node.','form','utf8','.assignee.roleId','EXPRESSION','.path','approval.simple-flow.v1','Node\x20has\x20no\x20incoming\x20edge.','Unsupported\x20condition\x20type:\x20','waypoint.','flowJson.schemaVersion','approval_sys_processInstanceId','Default\x20cc\x20is\x20only\x20supported\x20by\x20APPROVAL\x20or\x20END\x20node.','START\x20node\x20must\x20not\x20have\x20incoming\x20edges.','.configCode','HANDLE\x20task\x20timeout\x20only\x20supports\x20EXECUTE_BFF.','.assignee.userIds','Notification\x20recipients\x20must\x20be\x20an\x20array.','Edge\x20source\x20node\x20not\x20found:\x20','CONDITION\x20non-default\x20edge\x20requires\x20a\x20non-empty\x20expression.','.facts','pageMode\x20applies\x20only\x20to\x20INDEPENDENT_FLOW.','get','interrupting','number','CUSTOM_PAGE','duration\x20value\x20must\x20be\x20a\x20positive\x20integer.','APPROVAL\x20task\x20decision\x20edges\x20must\x20not\x20be\x20default\x20flows.','25100669NiTiXu','resultVariable','\x20value\x20and\x20was\x20removed\x20from\x20the\x20portable\x20FlowConfig.','forEach','__rabetbase_local_validation__','add','formPermissions','Unsupported\x20pageMode:\x20','path','url','flowJson.','type','.name','startPath','#/$defs/position','SINGLE\x20approval\x20supports\x20only\x20one\x20fixed\x20user.','defaultFlow\x20must\x20be\x20a\x20boolean.','.detailMarkdown','integer','stringify','flowJson.edges','HANDLE\x20task\x20outgoing\x20edge\x20must\x20use\x20ALWAYS\x20without\x20defaultFlow\x20or\x20expression.','flowCode','Custom\x20form\x20configuration\x20is\x20not\x20supported\x20by\x20this\x20rabetbase\x20version;\x20use\x20a\x20business\x20custom\x20page\x20instead.','nodes','.value','.defaultFlow','Notification\x20recipient.role\x20must\x20be\x20a\x20string.','timeout','isInteger','\x20was\x20empty\x20and\x20was\x20removed.','approval_sys_datasetCode','APPROVED','HOURS','filter','Expression\x20references\x20SCRIPT\x20resultVariable\x20','8283942jyrdgf','startsWith','679FAtWXn','AUTO_REJECT','\x20actions.','flowType\x20is\x20required.','source','targetNodeId','target','.conditionType','\x20users.','.tmp','Notification\x20recipient.type\x20must\x20be\x20USER,\x20ROLE,\x20or\x20EMAIL.','version','].path','flowJson\x20must\x20be\x20an\x20object.','EMAIL','datasetCode\x20must\x20be\x20a\x20string.','replace','cc.recipientUserIds\x20supports\x20at\x20most\x20','text','flowDesc\x20must\x20be\x20a\x20string.','edge\x20must\x20be\x20an\x20object.','.url','sourceNodeId','overwrite','name','Notification\x20template.actions\x20must\x20be\x20an\x20array.','formSchema','.async','Node\x20is\x20not\x20reachable\x20from\x20START.','Duplicate\x20edge\x20route:\x20','Flow\x20must\x20contain\x20exactly\x20one\x20START\x20node.','ROLE','transferCandidates\x20must\x20be\x20an\x20object.','PLATFORM_FORM\x20is\x20not\x20supported\x20by\x20this\x20rabetbase\x20version;\x20use\x20INDEPENDENT_FLOW\x20with\x20CUSTOM_PAGE.','defaultFlow','\x20facts.','.timeout.resultVariable','flowKey','Duplicate\x20BPMN\x20element\x20id:\x20','CONTINUE','failurePolicy\x20must\x20be\x20a\x20string.','edge\x20id\x20must\x20match\x20[A-Za-z_][A-Za-z0-9_]*.','flowJson.pageMode','approval_sys_','.timeout.action','flowType','BCC','ANY','.assignee.strategy','bindDatasetCode','USER','Notification\x20configCode\x20is\x20required.','config','.\x20This\x20CLI\x20supports\x20only\x20','recipientUserIds','3zejwqe','parse','PLATFORM_FORM','FAIL','Notification\x20recipient\x20must\x20be\x20an\x20object.','Duplicate\x20value:\x20','enabled','conditionType','.target','Notification\x20recipient.type\x20is\x20required.','.resultVariable','visible','keys','timeout.interrupting\x20must\x20be\x20a\x20boolean.','node\x20path\x20must\x20be\x20a\x20non-empty\x20string.','Node\x20has\x20no\x20outgoing\x20edge.','taskMode','approval_sys_initiatorUsername','.taskMode','^[A-Za-z_][A-Za-z0-9_]*$','approval_sys_appCode','Notification\x20template\x20supports\x20at\x20most\x20','failurePolicy','FIXED\x20transferCandidates\x20requires\x20non-empty\x20userIds.','5817610KrTqXY','node\x20path\x20is\x20supported\x20only\x20on\x20APPROVAL\x20or\x20END\x20nodes.','Notification\x20action.text\x20is\x20required.','map','prototype','ALL','has','schemaVersion','size','Notification\x20fact.','startPageId','variables','Notification\x20action.url\x20must\x20use\x20http/https\x20or\x20a\x20complete\x20supported\x20placeholder.','formPermission','every','edges\x20must\x20be\x20an\x20array.','END\x20node\x20must\x20not\x20have\x20outgoing\x20edges.','failurePolicy\x20must\x20be\x20CONTINUE\x20or\x20FAIL.','Unsupported\x20node\x20type:\x20','actions','\x20is\x20not\x20part\x20of\x20the\x20portable\x20FlowConfig\x20and\x20was\x20removed.','async\x20must\x20be\x20an\x20object.',',\x20but\x20node\x20','NOTIFICATION\x20node\x20requires\x20config.','duration\x20requires\x20value\x20and\x20unit.','flowJson.edges[','.transferCandidates.strategy','EXECUTE_BFF','Explicit\x20notification\x20recipients\x20require\x20at\x20least\x20one\x20TO.','recipients','call','object','APPROVAL\x20node\x20requires\x20assignee.','\x20timeout\x20must\x20interrupt\x20the\x20approval\x20task.','formData','some','legacy_field_removed','position','roleId','REJECTED','3604980AKrQuG','.recipients','edge\x20name\x20must\x20be\x20a\x20string.','.id','.role','.timeout.scriptName','.pageId','.source','value\x20must\x20be\x20a\x20non-empty\x20string.','SECONDS','#/$defs/timeAmount','array','DAYS','summary','sequential\x20must\x20be\x20a\x20boolean.','isArray','flowJson.nodes','flowName\x20is\x20required.','SINGLE','appCode','].taskMode','flowDesc','\x20must\x20be\x20a\x20finite\x20number\x20greater\x20than\x20or\x20equal\x20to\x200.','value\x20must\x20be\x20an\x20array.','result','.timeout.enabled','NOTIFICATION','.scriptName','.timeout.interrupting','.unit','timeout\x20is\x20only\x20supported\x20by\x20APPROVAL\x20node.','nodes\x20must\x20be\x20an\x20array.','829MBalmM','toUpperCase','Duplicate\x20cc\x20recipient\x20userId:\x20','pageId','sequential','.transferCandidates','strategy','SCRIPT\x20async\x20retryCount\x20must\x20be\x20between\x201\x20and\x20','title','includes','flowJson.nodes[','flowJson','catch','.actions','async.enabled\x20must\x20be\x20a\x20boolean.','Unsupported\x20flowType:\x20','CONDITION','Notification\x20fact\x20must\x20be\x20an\x20object.','.transferCandidates.userIds[','approval_sys_operationType','flowJson.startPageId','INDEPENDENT_FLOW\x20cannot\x20bind\x20datasetCode.','entries','APPROVAL','approval_sys_dataId','FIXED','.expression','2229065cszuxL','CONDITION\x20default\x20edge\x20must\x20use\x20conditionType\x20ALWAYS.','flowJson.nodes.','.failurePolicy','Unsupported\x20approval\x20mode:\x20','scriptName','label','assignee','findIndex','.cc.recipientUserIds','INDEPENDENT_FLOW','Edge\x20target\x20node\x20not\x20found:\x20','async\x20execution\x20is\x20only\x20supported\x20by\x20SCRIPT\x20node.','length','async','duration\x20unit\x20must\x20be\x20SECONDS,\x20MINUTES,\x20HOURS,\x20or\x20DAYS.','MINUTES','.version','transferCandidates','action','https://lovrabet.com/schema/rabetbase-flow-config.json','.timeout.duration','.template','67528YdrXHP','.waypoints','template','.sequential','facts','fixed\x20assignee\x20userId\x20must\x20be\x20a\x20non-empty\x20string\x20or\x20positive\x20integer.','formDefinitions','slice','startPath\x20must\x20be\x20a\x20non-empty\x20string.','value','6vBlvqS','templateName','approvalMode','waypoint\x20must\x20contain\x20numeric\x20x\x20and\x20y\x20coordinates.','delete','duration','flowJson.startPath','Rabetbase\x20FlowConfig','A\x20default\x20flow\x20must\x20use\x20conditionType\x20ALWAYS.','event','FORM_FLOW\x20is\x20an\x20approval\x20flow\x20and\x20cannot\x20contain\x20HANDLE\x20tasks;\x20use\x20INDEPENDENT_FLOW\x20for\x20workflows.','transferCandidates\x20currently\x20supports\x20FIXED\x20only.','resultVariable\x20must\x20match\x20[A-Za-z_][A-Za-z0-9_]*.','Reserved\x20resultVariable:\x20','node\x20must\x20be\x20an\x20object.','EXECUTE_BFF\x20timeout\x20must\x20not\x20interrupt\x20the\x20approval\x20task.','expression','Unsupported\x20schemaVersion:\x20','trim','1902OueavS','readSources','HANDLE\x20task\x20requires\x20exactly\x20one\x20outgoing\x20edge.','userIds','.config','\x20->\x20','string','push','edge\x20target\x20is\x20required.','metadata','hasOwnProperty','SCRIPT','FORM_FLOW','EXPRESSION\x20edge\x20requires\x20expression.','set'];a287_0x182b=function(){return _0x4fd0be;};return a287_0x182b();}function validateNode(_0x1cc795,_0x2ba99f,_0xfa54fc){const _0x2db691=a287_0x8cf25c;for(const _0x31a857 of[_0x2db691(0x218),_0x2db691(0x2b5)]){Object[_0x2db691(0x2ac)][_0x2db691(0x1de)]['call'](_0x1cc795,_0x31a857)&&_0xfa54fc[_0x2db691(0x1db)]({'path':_0x2ba99f+'.'+_0x31a857,'message':UNSUPPORTED_FORM_MESSAGE});}if(!NODE_TYPES['has'](_0x1cc795[_0x2db691(0x23e)]))return;(typeof _0x1cc795['name']!==_0x2db691(0x1da)||_0x1cc795[_0x2db691(0x271)][_0x2db691(0x1d3)]()==='')&&_0xfa54fc[_0x2db691(0x1db)]({'path':_0x2ba99f+'.name','message':'Every\x20node\x20requires\x20a\x20non-empty\x20name.'});_0x1cc795[_0x2db691(0x2f3)]!==undefined&&_0xfa54fc[_0x2db691(0x1db)]({'path':_0x2ba99f+_0x2db691(0x2d6),'message':'node\x20pageId\x20is\x20no\x20longer\x20supported;\x20use\x20node\x20path\x20instead.'});if(_0x1cc795[_0x2db691(0x23b)]!==undefined){if(typeof _0x1cc795[_0x2db691(0x23b)]!==_0x2db691(0x1da)||_0x1cc795[_0x2db691(0x23b)][_0x2db691(0x1d3)]()==='')_0xfa54fc['push']({'path':_0x2ba99f+_0x2db691(0x21c),'message':_0x2db691(0x29e)});else _0x1cc795[_0x2db691(0x23e)]!==_0x2db691(0x307)&&_0x1cc795[_0x2db691(0x23e)]!==_0x2db691(0x20c)&&_0xfa54fc[_0x2db691(0x1db)]({'path':_0x2ba99f+'.path','message':_0x2db691(0x2a9)});}const _0x3eb26d=_0x1cc795[_0x2db691(0x2cd)];if(!isRecord(_0x3eb26d))_0xfa54fc['push']({'path':_0x2ba99f+'.position','message':'Every\x20node\x20requires\x20position.x\x20and\x20position.y.'});else for(const _0x5c2209 of['x','y']){const _0x4d563a=_0x3eb26d[_0x5c2209];(typeof _0x4d563a!=='number'||!Number['isFinite'](_0x4d563a)||_0x4d563a<0x0)&&_0xfa54fc[_0x2db691(0x1db)]({'path':_0x2ba99f+'.position.'+_0x5c2209,'message':'position.'+_0x5c2209+_0x2db691(0x2e6)});}if(_0x1cc795[_0x2db691(0x23e)]===_0x2db691(0x307)){const _0x47acf3=_0x1cc795[_0x2db691(0x1c3)]??'SINGLE',_0x372deb=_0x1cc795[_0x2db691(0x2a0)]??_0x2db691(0x307);!APPROVAL_TASK_MODES[_0x2db691(0x2ae)](_0x372deb)&&_0xfa54fc['push']({'path':_0x2ba99f+_0x2db691(0x2a2),'message':'Unsupported\x20task\x20mode:\x20'+String(_0x372deb)+'.'});!APPROVAL_MODES[_0x2db691(0x2ae)](_0x47acf3)&&_0xfa54fc[_0x2db691(0x1db)]({'path':_0x2ba99f+'.approvalMode','message':_0x2db691(0x30f)+String(_0x47acf3)+'.'});if(!isRecord(_0x1cc795[_0x2db691(0x312)]))_0xfa54fc[_0x2db691(0x1db)]({'path':_0x2ba99f+'.assignee','message':_0x2db691(0x2c8)});else{const _0xda3a=_0x1cc795[_0x2db691(0x312)][_0x2db691(0x2f6)];_0xda3a!==_0x2db691(0x309)&&_0xda3a!==_0x2db691(0x278)&&_0xfa54fc[_0x2db691(0x1db)]({'path':_0x2ba99f+_0x2db691(0x289),'message':'assignee.strategy\x20must\x20be\x20FIXED\x20or\x20ROLE.'});if(_0xda3a==='FIXED'){const _0x54a7da=_0x1cc795[_0x2db691(0x312)][_0x2db691(0x1d7)];if(!Array[_0x2db691(0x2df)](_0x54a7da)||_0x54a7da[_0x2db691(0x318)]===0x0)_0xfa54fc['push']({'path':_0x2ba99f+'.assignee.userIds','message':'FIXED\x20assignee\x20requires\x20userIds.'});else{const _0x110c18=_0x54a7da[_0x2db691(0x313)](_0x148149=>!isValidUserId(_0x148149));_0x110c18>=0x0&&_0xfa54fc[_0x2db691(0x1db)]({'path':_0x2ba99f+'.assignee.userIds['+_0x110c18+']','message':_0x2db691(0x1bc)});const _0x10ea52=new Set(_0x54a7da['filter'](isValidUserId)['map'](_0x58c8d9=>String(_0x58c8d9)[_0x2db691(0x1d3)]()));_0x47acf3==='SINGLE'&&_0x10ea52[_0x2db691(0x2b0)]>0x1&&_0xfa54fc[_0x2db691(0x1db)]({'path':_0x2ba99f+_0x2db691(0x227),'message':_0x2db691(0x242)});}}if(_0xda3a==='ROLE'){const _0x24e380=_0x1cc795[_0x2db691(0x312)][_0x2db691(0x2ce)],_0x45d507=typeof _0x24e380==='number'||typeof _0x24e380===_0x2db691(0x1da)?Number(String(_0x24e380)['trim']()):Number['NaN'];(!Number['isSafeInteger'](_0x45d507)||_0x45d507<=0x0)&&_0xfa54fc['push']({'path':_0x2ba99f+_0x2db691(0x21a),'message':'ROLE\x20assignee\x20requires\x20a\x20positive\x20integer\x20roleId.'});}}if(_0x1cc795[_0x2db691(0x31d)]!==undefined){if(!isRecord(_0x1cc795[_0x2db691(0x31d)]))_0xfa54fc[_0x2db691(0x1db)]({'path':_0x2ba99f+_0x2db691(0x2f5),'message':_0x2db691(0x279)});else{if(_0x1cc795['transferCandidates'][_0x2db691(0x2f6)]!==_0x2db691(0x309))_0xfa54fc[_0x2db691(0x1db)]({'path':_0x2ba99f+_0x2db691(0x2c2),'message':_0x2db691(0x1cc)});else{const _0x1b53c7=_0x1cc795[_0x2db691(0x31d)]['userIds'];if(!Array[_0x2db691(0x2df)](_0x1b53c7)||_0x1b53c7[_0x2db691(0x318)]===0x0)_0xfa54fc[_0x2db691(0x1db)]({'path':_0x2ba99f+_0x2db691(0x201),'message':_0x2db691(0x2a7)});else{const _0x250a80=_0x1b53c7[_0x2db691(0x313)](_0x26840f=>!isValidUserId(_0x26840f));_0x250a80>=0x0&&_0xfa54fc[_0x2db691(0x1db)]({'path':_0x2ba99f+_0x2db691(0x302)+_0x250a80+']','message':_0x2db691(0x205)});}}}}}_0x1cc795['sequential']!==undefined&&typeof _0x1cc795[_0x2db691(0x2f4)]!==_0x2db691(0x1e4)&&_0xfa54fc[_0x2db691(0x1db)]({'path':_0x2ba99f+_0x2db691(0x1ba),'message':_0x2db691(0x2de)});if(_0x1cc795[_0x2db691(0x23e)]===_0x2db691(0x1df)){(typeof _0x1cc795[_0x2db691(0x310)]!=='string'||_0x1cc795[_0x2db691(0x310)]['trim']()==='')&&_0xfa54fc[_0x2db691(0x1db)]({'path':_0x2ba99f+_0x2db691(0x2eb),'message':'SCRIPT\x20node\x20requires\x20scriptName.'});if(_0x1cc795['resultVariable']!==undefined){if(typeof _0x1cc795[_0x2db691(0x234)]!=='string'||!VARIABLE_PATTERN[_0x2db691(0x1ea)](_0x1cc795[_0x2db691(0x234)]))_0xfa54fc[_0x2db691(0x1db)]({'path':_0x2ba99f+_0x2db691(0x29a),'message':_0x2db691(0x1cd)});else(RESERVED_RESULT_VARIABLES[_0x2db691(0x2ae)](_0x1cc795[_0x2db691(0x234)])||_0x1cc795['resultVariable'][_0x2db691(0x258)](_0x2db691(0x284)))&&_0xfa54fc[_0x2db691(0x1db)]({'path':_0x2ba99f+_0x2db691(0x29a),'message':_0x2db691(0x1ce)+_0x1cc795[_0x2db691(0x234)]+'.'});}}validateAsyncExecution(_0x1cc795,_0x2ba99f,_0xfa54fc),validateApprovalTimeout(_0x1cc795,_0x2ba99f,_0xfa54fc),validateCcConfig(_0x1cc795,_0x2ba99f,_0xfa54fc),_0x1cc795['type']===_0x2db691(0x2ea)&&validateNotificationConfig(_0x1cc795[_0x2db691(0x28d)],_0x2ba99f+_0x2db691(0x1d8),_0xfa54fc);}function validateAsyncExecution(_0x21a114,_0x66bbbb,_0x5e0d7a){const _0x181949=a287_0x8cf25c;if(_0x21a114[_0x181949(0x319)]===undefined)return;if(!isRecord(_0x21a114[_0x181949(0x319)])){_0x5e0d7a[_0x181949(0x1db)]({'path':_0x66bbbb+_0x181949(0x274),'message':_0x181949(0x2bd)});return;}if(_0x21a114[_0x181949(0x319)][_0x181949(0x296)]!==undefined&&typeof _0x21a114['async'][_0x181949(0x296)]!==_0x181949(0x1e4)){_0x5e0d7a[_0x181949(0x1db)]({'path':_0x66bbbb+'.async.enabled','message':_0x181949(0x2fe)});return;}if(_0x21a114['async'][_0x181949(0x296)]!==!![])return;_0x21a114['type']!==_0x181949(0x1df)&&_0x5e0d7a['push']({'path':_0x66bbbb+_0x181949(0x274),'message':_0x181949(0x317)});const _0x664e28=_0x21a114['async']['retryCount']??0x3;(!Number[_0x181949(0x250)](_0x664e28)||_0x664e28<0x1||_0x664e28>MAX_ASYNC_RETRY_COUNT)&&_0x5e0d7a[_0x181949(0x1db)]({'path':_0x66bbbb+'.async.retryCount','message':_0x181949(0x2f7)+MAX_ASYNC_RETRY_COUNT+'.'}),_0x21a114['async'][_0x181949(0x215)]!==undefined&&validateTimeAmount(_0x21a114[_0x181949(0x319)][_0x181949(0x215)],_0x66bbbb+'.async.retryInterval',_0x5e0d7a);}function a287_0x3c35(_0x1291ee,_0x27d0c6){_0x1291ee=_0x1291ee-0x1b5;const _0x182b79=a287_0x182b();let _0x3c3577=_0x182b79[_0x1291ee];return _0x3c3577;}function validateApprovalTimeout(_0x51ad82,_0x2589c8,_0x3ac0f0){const _0x5c4d99=a287_0x8cf25c;if(_0x51ad82[_0x5c4d99(0x24f)]===undefined)return;if(!isRecord(_0x51ad82[_0x5c4d99(0x24f)])){_0x3ac0f0['push']({'path':_0x2589c8+_0x5c4d99(0x216),'message':_0x5c4d99(0x210)});return;}if(_0x51ad82[_0x5c4d99(0x24f)][_0x5c4d99(0x296)]!==undefined&&typeof _0x51ad82[_0x5c4d99(0x24f)][_0x5c4d99(0x296)]!==_0x5c4d99(0x1e4)){_0x3ac0f0['push']({'path':_0x2589c8+_0x5c4d99(0x2e9),'message':_0x5c4d99(0x20f)});return;}if(_0x51ad82['timeout']['enabled']!==!![])return;if(_0x51ad82['timeout'][_0x5c4d99(0x22e)]!==undefined&&typeof _0x51ad82['timeout'][_0x5c4d99(0x22e)]!==_0x5c4d99(0x1e4)){_0x3ac0f0[_0x5c4d99(0x1db)]({'path':_0x2589c8+_0x5c4d99(0x2ec),'message':_0x5c4d99(0x29d)});return;}_0x51ad82[_0x5c4d99(0x23e)]!==_0x5c4d99(0x307)&&_0x3ac0f0[_0x5c4d99(0x1db)]({'path':_0x2589c8+'.timeout','message':_0x5c4d99(0x2ee)});validateTimeAmount(_0x51ad82[_0x5c4d99(0x24f)][_0x5c4d99(0x1c6)],_0x2589c8+_0x5c4d99(0x1b5),_0x3ac0f0);const _0x5c67d3=_0x51ad82[_0x5c4d99(0x24f)][_0x5c4d99(0x31e)];if(!APPROVAL_TIMEOUT_ACTIONS['has'](_0x5c67d3)){_0x3ac0f0[_0x5c4d99(0x1db)]({'path':_0x2589c8+_0x5c4d99(0x285),'message':'timeout.action\x20must\x20be\x20AUTO_APPROVE,\x20AUTO_REJECT,\x20or\x20EXECUTE_BFF.'});return;}(_0x51ad82[_0x5c4d99(0x2a0)]??_0x5c4d99(0x307))===_0x5c4d99(0x1f1)&&_0x5c67d3!=='EXECUTE_BFF'&&_0x3ac0f0['push']({'path':_0x2589c8+'.timeout.action','message':_0x5c4d99(0x226)});const _0x14f781=_0x51ad82[_0x5c4d99(0x24f)][_0x5c4d99(0x22e)]??_0x5c67d3!==_0x5c4d99(0x2c3);if(_0x5c67d3===_0x5c4d99(0x2c3))_0x14f781&&_0x3ac0f0['push']({'path':_0x2589c8+_0x5c4d99(0x2ec),'message':_0x5c4d99(0x1d0)}),(typeof _0x51ad82[_0x5c4d99(0x24f)][_0x5c4d99(0x310)]!==_0x5c4d99(0x1da)||_0x51ad82[_0x5c4d99(0x24f)]['scriptName']['trim']()==='')&&_0x3ac0f0[_0x5c4d99(0x1db)]({'path':_0x2589c8+_0x5c4d99(0x2d5),'message':'EXECUTE_BFF\x20timeout\x20requires\x20scriptName.'}),validateOptionalResultVariable(_0x51ad82[_0x5c4d99(0x24f)]['resultVariable'],_0x2589c8+_0x5c4d99(0x27d),_0x3ac0f0);else!_0x14f781&&_0x3ac0f0[_0x5c4d99(0x1db)]({'path':_0x2589c8+_0x5c4d99(0x2ec),'message':_0x5c67d3+_0x5c4d99(0x2c9)});}function validateTimeAmount(_0xff7374,_0x1c3a23,_0x1207fb){const _0x43f884=a287_0x8cf25c;if(!isRecord(_0xff7374)){_0x1207fb[_0x43f884(0x1db)]({'path':_0x1c3a23,'message':_0x43f884(0x2c0)});return;}(!Number[_0x43f884(0x250)](_0xff7374[_0x43f884(0x1c0)])||Number(_0xff7374['value'])<=0x0)&&_0x1207fb[_0x43f884(0x1db)]({'path':_0x1c3a23+_0x43f884(0x24c),'message':_0x43f884(0x231)}),!FLOW_TIME_UNITS[_0x43f884(0x2ae)](_0xff7374['unit'])&&_0x1207fb[_0x43f884(0x1db)]({'path':_0x1c3a23+_0x43f884(0x2ed),'message':_0x43f884(0x31a)});}function validateOptionalResultVariable(_0x51c9cf,_0x1bbe87,_0x387abf){const _0x1d1e4f=a287_0x8cf25c;if(_0x51c9cf===undefined||_0x51c9cf===null||_0x51c9cf==='')return;if(typeof _0x51c9cf!==_0x1d1e4f(0x1da)||!VARIABLE_PATTERN[_0x1d1e4f(0x1ea)](_0x51c9cf))_0x387abf['push']({'path':_0x1bbe87,'message':_0x1d1e4f(0x1cd)});else(RESERVED_RESULT_VARIABLES[_0x1d1e4f(0x2ae)](_0x51c9cf)||_0x51c9cf[_0x1d1e4f(0x258)](_0x1d1e4f(0x284)))&&_0x387abf[_0x1d1e4f(0x1db)]({'path':_0x1bbe87,'message':'Reserved\x20resultVariable:\x20'+_0x51c9cf+'.'});}function validateCcConfig(_0x50bfac,_0x84de71,_0x5aa82a){const _0x59b4e9=a287_0x8cf25c;if(_0x50bfac['cc']===undefined)return;if(!isRecord(_0x50bfac['cc'])){_0x5aa82a['push']({'path':_0x84de71+_0x59b4e9(0x20d),'message':_0x59b4e9(0x1f6)});return;}_0x50bfac[_0x59b4e9(0x23e)]!==_0x59b4e9(0x20c)&&_0x50bfac[_0x59b4e9(0x23e)]!==_0x59b4e9(0x307)&&_0x5aa82a[_0x59b4e9(0x1db)]({'path':_0x84de71+_0x59b4e9(0x20d),'message':_0x59b4e9(0x223)});Object[_0x59b4e9(0x2ac)][_0x59b4e9(0x1de)][_0x59b4e9(0x2c6)](_0x50bfac['cc'],_0x59b4e9(0x1d5))&&_0x5aa82a[_0x59b4e9(0x1db)]({'path':_0x84de71+'.cc.readSources','message':UNSUPPORTED_FORM_MESSAGE});const _0x93118=_0x50bfac['cc'][_0x59b4e9(0x28f)];if(!Array[_0x59b4e9(0x2df)](_0x93118)||_0x93118[_0x59b4e9(0x318)]===0x0)_0x5aa82a[_0x59b4e9(0x1db)]({'path':_0x84de71+_0x59b4e9(0x314),'message':_0x59b4e9(0x1eb)});else{_0x93118['length']>MAX_CC_RECIPIENTS&&_0x5aa82a[_0x59b4e9(0x1db)]({'path':_0x84de71+_0x59b4e9(0x314),'message':_0x59b4e9(0x26a)+MAX_CC_RECIPIENTS+_0x59b4e9(0x261)});const _0x521cde=new Set();_0x93118[_0x59b4e9(0x236)]((_0x43e44a,_0x5118d7)=>{const _0x2fd1a3=_0x59b4e9;if(typeof _0x43e44a!==_0x2fd1a3(0x1da)||_0x43e44a['trim']()==='')_0x5aa82a[_0x2fd1a3(0x1db)]({'path':_0x84de71+'.cc.recipientUserIds['+_0x5118d7+']','message':_0x2fd1a3(0x1ed)});else _0x521cde[_0x2fd1a3(0x2ae)](_0x43e44a[_0x2fd1a3(0x1d3)]())?_0x5aa82a['push']({'path':_0x84de71+_0x2fd1a3(0x1ef)+_0x5118d7+']','message':_0x2fd1a3(0x2f2)+_0x43e44a['trim']()+'.'}):_0x521cde[_0x2fd1a3(0x238)](_0x43e44a[_0x2fd1a3(0x1d3)]());});}validateStringArray(_0x50bfac['cc'][_0x59b4e9(0x29b)],_0x84de71+_0x59b4e9(0x202),_0x5aa82a);}function validateStringArray(_0x440f32,_0x4267ac,_0xf5d352){const _0x2be6de=a287_0x8cf25c;if(_0x440f32===undefined)return;if(!Array['isArray'](_0x440f32)){_0xf5d352[_0x2be6de(0x1db)]({'path':_0x4267ac,'message':_0x2be6de(0x2e7)});return;}const _0x19f924=new Set();_0x440f32[_0x2be6de(0x236)]((_0x49b30c,_0x452f3e)=>{const _0x25a64b=_0x2be6de;if(typeof _0x49b30c!==_0x25a64b(0x1da)||_0x49b30c[_0x25a64b(0x1d3)]()==='')_0xf5d352[_0x25a64b(0x1db)]({'path':_0x4267ac+'['+_0x452f3e+']','message':_0x25a64b(0x2d8)});else _0x19f924[_0x25a64b(0x2ae)](_0x49b30c[_0x25a64b(0x1d3)]())?_0xf5d352[_0x25a64b(0x1db)]({'path':_0x4267ac+'['+_0x452f3e+']','message':_0x25a64b(0x295)+_0x49b30c[_0x25a64b(0x1d3)]()+'.'}):_0x19f924['add'](_0x49b30c[_0x25a64b(0x1d3)]());});}function validateNotificationConfig(_0x2f8761,_0x2ff5c6,_0x2c3afa){const _0x56b86a=a287_0x8cf25c;if(!isRecord(_0x2f8761)){_0x2c3afa['push']({'path':_0x2ff5c6,'message':_0x56b86a(0x2bf)});return;}if(_0x2f8761[_0x56b86a(0x264)]!==undefined&&_0x2f8761[_0x56b86a(0x264)]!==null){if(typeof _0x2f8761[_0x56b86a(0x264)]!=='string')_0x2c3afa['push']({'path':_0x2ff5c6+_0x56b86a(0x31c),'message':'Notification\x20version\x20must\x20be\x20a\x20string.'});else _0x2f8761[_0x56b86a(0x264)][_0x56b86a(0x1d3)]()&&_0x2f8761[_0x56b86a(0x264)][_0x56b86a(0x1d3)]()!=='v1'&&_0x2c3afa[_0x56b86a(0x1db)]({'path':_0x2ff5c6+_0x56b86a(0x31c),'message':_0x56b86a(0x208)+_0x2f8761[_0x56b86a(0x264)]+'.'});}const _0x4e71a3=requireNotificationString(_0x2f8761['configCode'],_0x2ff5c6+_0x56b86a(0x225),_0x56b86a(0x28c),_0x2c3afa);_0x4e71a3?.[_0x56b86a(0x2f9)]('${')&&_0x2c3afa['push']({'path':_0x2ff5c6+_0x56b86a(0x225),'message':'Notification\x20configCode\x20must\x20be\x20a\x20fixed\x20value.'});if(_0x2f8761[_0x56b86a(0x2a6)]!==undefined&&_0x2f8761[_0x56b86a(0x2a6)]!==null){if(typeof _0x2f8761[_0x56b86a(0x2a6)]!==_0x56b86a(0x1da))_0x2c3afa['push']({'path':_0x2ff5c6+_0x56b86a(0x30e),'message':_0x56b86a(0x281)});else!NOTIFICATION_FAILURE_POLICIES[_0x56b86a(0x2ae)](_0x2f8761['failurePolicy'][_0x56b86a(0x1d3)]()[_0x56b86a(0x2f1)]())&&_0x2c3afa[_0x56b86a(0x1db)]({'path':_0x2ff5c6+_0x56b86a(0x30e),'message':_0x56b86a(0x2b9)});}!isRecord(_0x2f8761[_0x56b86a(0x1b9)])?_0x2c3afa[_0x56b86a(0x1db)]({'path':_0x2ff5c6+_0x56b86a(0x1b6),'message':_0x56b86a(0x1e6)}):validateNotificationTemplate(_0x2f8761[_0x56b86a(0x1b9)],_0x2ff5c6+_0x56b86a(0x1b6),_0x2c3afa),validateNotificationRecipients(_0x2f8761[_0x56b86a(0x2c5)],_0x2ff5c6+_0x56b86a(0x2d1),_0x2c3afa);}function validateNotificationTemplate(_0x2f83b0,_0xe9dcbe,_0x56d5cb){const _0x1d6366=a287_0x8cf25c;for(const _0x53126e of[_0x1d6366(0x2f8),_0x1d6366(0x2dd)]){const _0x2dc9c6=requireNotificationString(_0x2f83b0[_0x53126e],_0xe9dcbe+'.'+_0x53126e,'Notification\x20template.'+_0x53126e+_0x1d6366(0x1f7),_0x56d5cb);if(_0x2dc9c6)validateNotificationPlaceholders(_0x2dc9c6,_0xe9dcbe+'.'+_0x53126e,_0x56d5cb);}_0x2f83b0[_0x1d6366(0x1e8)]!==undefined&&_0x2f83b0[_0x1d6366(0x1e8)]!==null&&(typeof _0x2f83b0[_0x1d6366(0x1e8)]!==_0x1d6366(0x1da)?_0x56d5cb['push']({'path':_0xe9dcbe+_0x1d6366(0x244),'message':'Notification\x20template.detailMarkdown\x20must\x20be\x20a\x20string.'}):validateNotificationPlaceholders(_0x2f83b0[_0x1d6366(0x1e8)],_0xe9dcbe+_0x1d6366(0x244),_0x56d5cb)),validateNotificationFacts(_0x2f83b0[_0x1d6366(0x1bb)],_0xe9dcbe+_0x1d6366(0x22b),_0x56d5cb),validateNotificationActions(_0x2f83b0[_0x1d6366(0x2bb)],_0xe9dcbe+_0x1d6366(0x2fd),_0x56d5cb);}function validateNotificationFacts(_0x1516eb,_0x3b2618,_0xf7a46b){const _0x263ae3=a287_0x8cf25c;if(_0x1516eb===undefined||_0x1516eb===null)return;if(!Array[_0x263ae3(0x2df)](_0x1516eb)){_0xf7a46b['push']({'path':_0x3b2618,'message':'Notification\x20template.facts\x20must\x20be\x20an\x20array.'});return;}_0x1516eb[_0x263ae3(0x318)]>MAX_NOTIFICATION_FACTS&&_0xf7a46b['push']({'path':_0x3b2618,'message':'Notification\x20template\x20supports\x20at\x20most\x20'+MAX_NOTIFICATION_FACTS+_0x263ae3(0x27c)}),_0x1516eb[_0x263ae3(0x236)]((_0x6d0d2f,_0x456178)=>{const _0xf43599=_0x263ae3,_0x4dbc39=_0x3b2618+'['+_0x456178+']';if(!isRecord(_0x6d0d2f)){_0xf7a46b['push']({'path':_0x4dbc39,'message':_0xf43599(0x301)});return;}for(const _0x1c8c4b of[_0xf43599(0x311),_0xf43599(0x1c0)]){const _0x314c55=requireNotificationString(_0x6d0d2f[_0x1c8c4b],_0x4dbc39+'.'+_0x1c8c4b,_0xf43599(0x2b1)+_0x1c8c4b+'\x20is\x20required.',_0xf7a46b);_0x314c55&&validateNotificationPlaceholders(_0x314c55,_0x4dbc39+'.'+_0x1c8c4b,_0xf7a46b);}});}function validateNotificationActions(_0x4cef8a,_0x308bc4,_0x260cd9){const _0x194175=a287_0x8cf25c;if(_0x4cef8a===undefined||_0x4cef8a===null)return;if(!Array['isArray'](_0x4cef8a)){_0x260cd9[_0x194175(0x1db)]({'path':_0x308bc4,'message':_0x194175(0x272)});return;}_0x4cef8a[_0x194175(0x318)]>MAX_NOTIFICATION_ACTIONS&&_0x260cd9[_0x194175(0x1db)]({'path':_0x308bc4,'message':_0x194175(0x2a5)+MAX_NOTIFICATION_ACTIONS+_0x194175(0x25b)}),_0x4cef8a[_0x194175(0x236)]((_0x240550,_0x1c5a0d)=>{const _0xf59a5d=_0x194175,_0xc80927=_0x308bc4+'['+_0x1c5a0d+']';if(!isRecord(_0x240550)){_0x260cd9['push']({'path':_0xc80927,'message':'Notification\x20action\x20must\x20be\x20an\x20object.'});return;}const _0x261f90=requireNotificationString(_0x240550[_0xf59a5d(0x26b)],_0xc80927+_0xf59a5d(0x1fc),_0xf59a5d(0x2aa),_0x260cd9);if(_0x261f90)validateNotificationPlaceholders(_0x261f90,_0xc80927+_0xf59a5d(0x1fc),_0x260cd9);const _0x7dd010=requireNotificationString(_0x240550[_0xf59a5d(0x23c)],_0xc80927+_0xf59a5d(0x26e),'Notification\x20action.url\x20is\x20required.',_0x260cd9);if(!_0x7dd010)return;validateNotificationPlaceholders(_0x7dd010,_0xc80927+_0xf59a5d(0x26e),_0x260cd9),!/^https?:\/\//i[_0xf59a5d(0x1ea)](_0x7dd010)&&!NOTIFICATION_ACTION_URL_PLACEHOLDER_PATTERN[_0xf59a5d(0x1ea)](_0x7dd010)&&_0x260cd9['push']({'path':_0xc80927+_0xf59a5d(0x26e),'message':_0xf59a5d(0x2b4)});});}function validateNotificationRecipients(_0x114794,_0x170707,_0x1e6077){const _0x486554=a287_0x8cf25c;if(_0x114794===undefined||_0x114794===null)return;if(!Array[_0x486554(0x2df)](_0x114794)){_0x1e6077[_0x486554(0x1db)]({'path':_0x170707,'message':_0x486554(0x228)});return;}let _0x20d9a1=![];_0x114794[_0x486554(0x236)]((_0x5ca662,_0xeb077c)=>{const _0x20885e=_0x486554,_0x327cf3=_0x170707+'['+_0xeb077c+']';if(!isRecord(_0x5ca662)){_0x1e6077['push']({'path':_0x327cf3,'message':_0x20885e(0x294)});return;}const _0x2e415f=requireNotificationString(_0x5ca662[_0x20885e(0x23e)],_0x327cf3+'.type',_0x20885e(0x299),_0x1e6077);_0x2e415f&&!NOTIFICATION_RECIPIENT_TYPES[_0x20885e(0x2ae)](_0x2e415f['toUpperCase']())&&_0x1e6077['push']({'path':_0x327cf3+_0x20885e(0x20e),'message':_0x20885e(0x263)});let _0x26839d='TO';_0x5ca662[_0x20885e(0x1f2)]!==undefined&&_0x5ca662['role']!==null&&(typeof _0x5ca662[_0x20885e(0x1f2)]!=='string'?(_0x1e6077[_0x20885e(0x1db)]({'path':_0x327cf3+_0x20885e(0x2d4),'message':_0x20885e(0x24e)}),_0x26839d=''):(_0x26839d=_0x5ca662['role'][_0x20885e(0x1d3)]()[_0x20885e(0x2f1)](),!NOTIFICATION_RECIPIENT_ROLES[_0x20885e(0x2ae)](_0x26839d)&&_0x1e6077[_0x20885e(0x1db)]({'path':_0x327cf3+_0x20885e(0x2d4),'message':_0x20885e(0x1e9)})));if(_0x26839d==='TO')_0x20d9a1=!![];const _0x26c0ef=requireNotificationString(_0x5ca662[_0x20885e(0x1c0)],_0x327cf3+_0x20885e(0x24c),'Notification\x20recipient.value\x20is\x20required.',_0x1e6077);_0x26c0ef&&validateNotificationPlaceholders(_0x26c0ef,_0x327cf3+_0x20885e(0x24c),_0x1e6077);}),_0x114794[_0x486554(0x318)]>0x0&&!_0x20d9a1&&_0x1e6077[_0x486554(0x1db)]({'path':_0x170707,'message':_0x486554(0x2c4)});}function requireNotificationString(_0x1dfca1,_0x1f09f1,_0xa06c4f,_0x13bc0c){const _0x315ef3=a287_0x8cf25c;if(typeof _0x1dfca1!==_0x315ef3(0x1da)||_0x1dfca1[_0x315ef3(0x1d3)]()==='')return _0x13bc0c[_0x315ef3(0x1db)]({'path':_0x1f09f1,'message':_0xa06c4f}),undefined;return _0x1dfca1[_0x315ef3(0x1d3)]();}function validateNotificationPlaceholders(_0x594adb,_0x2b75b1,_0x2b9d58){const _0x463c15=a287_0x8cf25c;for(const _0x581a5c of _0x594adb[_0x463c15(0x1f0)](NOTIFICATION_PLACEHOLDER_PATTERN)){const _0x402758=_0x581a5c[0x1]?.['trim']()??'',_0x5af08b=_0x402758[_0x463c15(0x203)]('.'),_0x1e1613=_0x5af08b>=0x0?_0x402758[_0x463c15(0x1be)](0x0,_0x5af08b):_0x402758,_0x5d3c11=_0x5af08b>=0x0?_0x402758[_0x463c15(0x1be)](_0x5af08b+0x1)[_0x463c15(0x1d3)]():'';(![_0x463c15(0x1ca),_0x463c15(0x1f9),_0x463c15(0x2b3)][_0x463c15(0x2f9)](_0x1e1613)||_0x5d3c11==='')&&_0x2b9d58['push']({'path':_0x2b75b1,'message':'Unsupported\x20notification\x20placeholder:\x20'+_0x581a5c[0x0]+'.'});}_0x594adb[_0x463c15(0x269)](NOTIFICATION_PLACEHOLDER_PATTERN,'')[_0x463c15(0x2f9)]('${')&&_0x2b9d58['push']({'path':_0x2b75b1,'message':'Notification\x20text\x20contains\x20a\x20malformed\x20placeholder.'});}function validateEdge(_0x5e21bd,_0x1d18bd,_0x2bd912){const _0xaaa425=a287_0x8cf25c;_0x5e21bd['name']!==undefined&&typeof _0x5e21bd[_0xaaa425(0x271)]!==_0xaaa425(0x1da)&&_0x2bd912[_0xaaa425(0x1db)]({'path':_0x1d18bd+_0xaaa425(0x23f),'message':_0xaaa425(0x2d2)}),_0x5e21bd['defaultFlow']!==undefined&&typeof _0x5e21bd['defaultFlow']!=='boolean'&&_0x2bd912[_0xaaa425(0x1db)]({'path':_0x1d18bd+_0xaaa425(0x24d),'message':_0xaaa425(0x243)}),_0x5e21bd[_0xaaa425(0x1e3)]!==undefined&&(!Array[_0xaaa425(0x2df)](_0x5e21bd[_0xaaa425(0x1e3)])?_0x2bd912['push']({'path':_0x1d18bd+_0xaaa425(0x1b8),'message':'waypoints\x20must\x20be\x20an\x20array.'}):_0x5e21bd[_0xaaa425(0x1e3)][_0xaaa425(0x236)]((_0x31bba9,_0x322fb3)=>{const _0x4543be=_0xaaa425;if(!isRecord(_0x31bba9)){_0x2bd912[_0x4543be(0x1db)]({'path':_0x1d18bd+_0x4543be(0x1e5)+_0x322fb3+']','message':_0x4543be(0x1c4)});return;}for(const _0x400d97 of['x','y']){const _0x2e7ee0=_0x31bba9[_0x400d97];(typeof _0x2e7ee0!==_0x4543be(0x22f)||!Number['isFinite'](_0x2e7ee0))&&_0x2bd912[_0x4543be(0x1db)]({'path':_0x1d18bd+'.waypoints['+_0x322fb3+'].'+_0x400d97,'message':_0x4543be(0x220)+_0x400d97+_0x4543be(0x200)});}})),_0x5e21bd[_0xaaa425(0x297)]!==undefined&&!CONDITION_TYPES['has'](_0x5e21bd[_0xaaa425(0x297)])&&_0x2bd912[_0xaaa425(0x1db)]({'path':_0x1d18bd+_0xaaa425(0x260),'message':_0xaaa425(0x21f)+String(_0x5e21bd[_0xaaa425(0x297)])+'.'}),_0x5e21bd[_0xaaa425(0x297)]===_0xaaa425(0x21b)&&(typeof _0x5e21bd[_0xaaa425(0x1d1)]!==_0xaaa425(0x1da)||_0x5e21bd[_0xaaa425(0x1d1)][_0xaaa425(0x1d3)]()==='')&&_0x2bd912[_0xaaa425(0x1db)]({'path':_0x1d18bd+_0xaaa425(0x30a),'message':_0xaaa425(0x1e1)}),_0x5e21bd[_0xaaa425(0x27b)]===!![]&&_0x5e21bd[_0xaaa425(0x297)]!==_0xaaa425(0x1fe)&&_0x2bd912[_0xaaa425(0x1db)]({'path':_0x1d18bd+_0xaaa425(0x24d),'message':_0xaaa425(0x1c9)}),_0x5e21bd[_0xaaa425(0x27b)]===!![]&&typeof _0x5e21bd['expression']===_0xaaa425(0x1da)&&_0x5e21bd['expression'][_0xaaa425(0x1d3)]()!==''&&_0x2bd912['push']({'path':_0x1d18bd+'.expression','message':'A\x20default\x20flow\x20must\x20not\x20have\x20an\x20expression.'});}function validateGraphShape(_0x10816f,_0x2a4a90,_0x241e39,_0x2def50,_0x4f0158,_0x50874d,_0x336d82){const _0x38ed16=a287_0x8cf25c;for(const [_0x4b87d7,_0x544632]of _0x10816f){const _0x2ddc28=_0x4f0158[_0x38ed16(0x22d)](_0x4b87d7)??[],_0x380d71=_0x2def50[_0x38ed16(0x22d)](_0x4b87d7)??[];_0x544632['type']!==_0x38ed16(0x209)&&_0x2ddc28[_0x38ed16(0x318)]===0x0&&_0x336d82[_0x38ed16(0x1db)]({'path':'flowJson.nodes.'+_0x4b87d7,'message':_0x38ed16(0x21e)});_0x544632[_0x38ed16(0x23e)]!==_0x38ed16(0x20c)&&_0x380d71['length']===0x0&&_0x336d82['push']({'path':_0x38ed16(0x30d)+_0x4b87d7,'message':_0x38ed16(0x29f)});_0x544632[_0x38ed16(0x23e)]===_0x38ed16(0x209)&&_0x2ddc28[_0x38ed16(0x318)]>0x0&&_0x336d82['push']({'path':_0x38ed16(0x30d)+_0x4b87d7,'message':_0x38ed16(0x224)});_0x544632[_0x38ed16(0x23e)]===_0x38ed16(0x20c)&&_0x380d71[_0x38ed16(0x318)]>0x0&&_0x336d82[_0x38ed16(0x1db)]({'path':'flowJson.nodes.'+_0x4b87d7,'message':_0x38ed16(0x2b8)});if(_0x544632[_0x38ed16(0x23e)]==='CONDITION'){_0x380d71['length']<0x2&&_0x336d82[_0x38ed16(0x1db)]({'path':_0x38ed16(0x30d)+_0x4b87d7,'message':'CONDITION\x20node\x20requires\x20at\x20least\x20two\x20outgoing\x20edges.'});const _0x8f7b02=_0x380d71['filter'](_0x40ec54=>_0x40ec54['defaultFlow']===!![]);_0x8f7b02['length']!==0x1&&_0x336d82[_0x38ed16(0x1db)]({'path':_0x38ed16(0x30d)+_0x4b87d7,'message':'CONDITION\x20node\x20requires\x20exactly\x20one\x20default\x20outgoing\x20edge.'});if(_0x8f7b02[_0x38ed16(0x318)]===0x1){const _0x470ab5=_0x8f7b02[0x0],_0x170143=_0x50874d[_0x38ed16(0x22d)](_0x470ab5)??'flowJson.edges';_0x470ab5[_0x38ed16(0x297)]!==_0x38ed16(0x1fe)&&_0x336d82['push']({'path':_0x170143+_0x38ed16(0x260),'message':_0x38ed16(0x30c)});_0x470ab5[_0x38ed16(0x1d1)]!==undefined&&_0x336d82[_0x38ed16(0x1db)]({'path':_0x170143+_0x38ed16(0x30a),'message':'CONDITION\x20default\x20edge\x20must\x20not\x20define\x20expression.'});for(const _0x3132e4 of _0x380d71){if(_0x3132e4===_0x470ab5)continue;const _0x33e2f2=_0x50874d[_0x38ed16(0x22d)](_0x3132e4)??_0x38ed16(0x247);if(_0x3132e4[_0x38ed16(0x297)]!==_0x38ed16(0x21b))_0x336d82['push']({'path':_0x33e2f2+_0x38ed16(0x260),'message':'CONDITION\x20non-default\x20edge\x20must\x20use\x20conditionType\x20EXPRESSION.'});else(typeof _0x3132e4[_0x38ed16(0x1d1)]!=='string'||_0x3132e4[_0x38ed16(0x1d1)][_0x38ed16(0x1d3)]()==='')&&_0x336d82[_0x38ed16(0x1db)]({'path':_0x33e2f2+'.expression','message':_0x38ed16(0x22a)});}}}if(_0x544632[_0x38ed16(0x23e)]===_0x38ed16(0x307)&&(_0x544632[_0x38ed16(0x2a0)]??'APPROVAL')===_0x38ed16(0x1f1)){if(_0x380d71[_0x38ed16(0x318)]!==0x1)_0x336d82[_0x38ed16(0x1db)]({'path':_0x38ed16(0x30d)+_0x4b87d7,'message':_0x38ed16(0x1d6)});else{const _0x4c8621=_0x380d71[0x0];((_0x4c8621[_0x38ed16(0x297)]??_0x38ed16(0x1fe))!==_0x38ed16(0x1fe)||_0x4c8621['defaultFlow']===!![]||typeof _0x4c8621[_0x38ed16(0x1d1)]===_0x38ed16(0x1da)&&_0x4c8621[_0x38ed16(0x1d1)][_0x38ed16(0x1d3)]()!=='')&&_0x336d82[_0x38ed16(0x1db)]({'path':_0x50874d[_0x38ed16(0x22d)](_0x4c8621)??_0x38ed16(0x247),'message':_0x38ed16(0x248)});}}else{if(_0x544632[_0x38ed16(0x23e)]===_0x38ed16(0x307)){const _0x4c734d=_0x380d71[_0x38ed16(0x2ab)](_0x32fb0f=>_0x32fb0f[_0x38ed16(0x297)]??_0x38ed16(0x1fe)),_0x5508de=_0x4c734d[_0x38ed16(0x255)](_0x555a02=>_0x555a02!=='APPROVED'&&_0x555a02!=='REJECTED');_0x5508de[_0x38ed16(0x318)]>0x0&&_0x336d82[_0x38ed16(0x1db)]({'path':_0x38ed16(0x30d)+_0x4b87d7,'message':_0x38ed16(0x206)}),_0x4c734d[_0x38ed16(0x255)](_0x17db38=>_0x17db38===_0x38ed16(0x253))['length']!==0x1&&_0x336d82[_0x38ed16(0x1db)]({'path':_0x38ed16(0x30d)+_0x4b87d7,'message':'APPROVAL\x20node\x20requires\x20exactly\x20one\x20APPROVED\x20outgoing\x20edge.'}),_0x4c734d[_0x38ed16(0x255)](_0x169093=>_0x169093==='REJECTED')[_0x38ed16(0x318)]!==0x1&&_0x336d82[_0x38ed16(0x1db)]({'path':_0x38ed16(0x30d)+_0x4b87d7,'message':'APPROVAL\x20node\x20requires\x20exactly\x20one\x20REJECTED\x20outgoing\x20edge.'}),_0x380d71[_0x38ed16(0x2cb)](_0x3bc2f7=>_0x3bc2f7['defaultFlow']===!![])&&_0x336d82['push']({'path':'flowJson.nodes.'+_0x4b87d7,'message':_0x38ed16(0x232)});}}}const _0x1b9a71=new Set(),_0x5345dd=_0x8884c4=>{const _0x97230=_0x38ed16;if(_0x1b9a71[_0x97230(0x2ae)](_0x8884c4))return;_0x1b9a71[_0x97230(0x238)](_0x8884c4);for(const _0x351614 of _0x2def50[_0x97230(0x22d)](_0x8884c4)??[]){const _0x281752=resolveEdgeEndpoint(_0x351614[_0x97230(0x25f)],_0x351614[_0x97230(0x25e)]);if(_0x281752&&_0x10816f[_0x97230(0x2ae)](_0x281752))_0x5345dd(_0x281752);}};_0x5345dd(_0x2a4a90);for(const _0x198a36 of _0x10816f[_0x38ed16(0x29c)]()){!_0x1b9a71['has'](_0x198a36)&&_0x336d82[_0x38ed16(0x1db)]({'path':_0x38ed16(0x30d)+_0x198a36,'message':_0x38ed16(0x275)});}const _0xc9ad1=_0x241e39[_0x38ed16(0x2cb)](_0x272282=>_0x1b9a71[_0x38ed16(0x2ae)](_0x272282));if(!_0xc9ad1){_0x336d82[_0x38ed16(0x1db)]({'path':'flowJson.edges','message':'No\x20END\x20node\x20is\x20reachable\x20from\x20START.'});return;}const _0x35102a=new Set(),_0x51f402=_0x22c912=>{const _0x11195f=_0x38ed16;if(_0x35102a[_0x11195f(0x2ae)](_0x22c912))return;_0x35102a[_0x11195f(0x238)](_0x22c912);for(const _0x4d1ba8 of _0x4f0158['get'](_0x22c912)??[]){const _0x5ac9cd=resolveEdgeEndpoint(_0x4d1ba8[_0x11195f(0x25d)],_0x4d1ba8[_0x11195f(0x26f)]);if(_0x5ac9cd&&_0x10816f['has'](_0x5ac9cd))_0x51f402(_0x5ac9cd);}};for(const _0x2bfeb1 of _0x241e39){if(_0x10816f['has'](_0x2bfeb1))_0x51f402(_0x2bfeb1);}for(const _0x2e9eab of _0x1b9a71){!_0x35102a[_0x38ed16(0x2ae)](_0x2e9eab)&&_0x336d82[_0x38ed16(0x1db)]({'path':_0x38ed16(0x30d)+_0x2e9eab,'message':_0x38ed16(0x20a)});}}function validateApprovalResults(_0xb8ad,_0x3e94ca,_0x24684f,_0x455aa4){const _0x2dd0c1=a287_0x8cf25c;if(_0x3e94ca===0x0)return;const _0x1dfee0=new Set(_0x24684f[_0x2dd0c1(0x2ab)](_0x5cf086=>_0xb8ad['get'](_0x5cf086)?.[_0x2dd0c1(0x2e8)])[_0x2dd0c1(0x255)](_0x3b80f2=>typeof _0x3b80f2===_0x2dd0c1(0x1da)));for(const _0x52ee4d of['APPROVED',_0x2dd0c1(0x2cf)]){!_0x1dfee0[_0x2dd0c1(0x2ae)](_0x52ee4d)&&_0x455aa4[_0x2dd0c1(0x1db)]({'path':_0x2dd0c1(0x2e0),'message':'Approval\x20flow\x20requires\x20an\x20END\x20node\x20with\x20result\x20'+_0x52ee4d+'.'});}}function validateScriptResultReferences(_0x22e431,_0x376a15,_0xaa4b21,_0x46ce93,_0xb20e78,_0x366690,_0x4334a0){const _0x2e9e8a=a287_0x8cf25c;if(_0x366690[_0x2e9e8a(0x2b0)]===0x0)return;const _0x4b38c7=new Set(),_0x2ac6d5=_0x2a027d=>{const _0x1b02ba=_0x2e9e8a;if(!_0x4b38c7[_0x1b02ba(0x2ae)](_0x2a027d)&&_0x22e431['has'](_0x2a027d)){_0x4b38c7['add'](_0x2a027d);for(const _0x267b49 of _0xaa4b21['get'](_0x2a027d)??[]){const _0x512f15=resolveEdgeEndpoint(_0x267b49[_0x1b02ba(0x25f)],_0x267b49['targetNodeId']);if(_0x512f15)_0x2ac6d5(_0x512f15);}}};_0x2ac6d5(_0x376a15);const _0xc56bc2=new Map();for(const _0xcdfeec of _0x4b38c7){_0xc56bc2[_0x2e9e8a(0x1e2)](_0xcdfeec,_0xcdfeec===_0x376a15?new Set([_0x376a15]):new Set(_0x4b38c7));}let _0x4f276a=!![];while(_0x4f276a){_0x4f276a=![];for(const _0x5533fa of _0x4b38c7){if(_0x5533fa===_0x376a15)continue;const _0x201794=(_0x46ce93[_0x2e9e8a(0x22d)](_0x5533fa)??[])[_0x2e9e8a(0x2ab)](_0x4375bb=>resolveEdgeEndpoint(_0x4375bb[_0x2e9e8a(0x25d)],_0x4375bb[_0x2e9e8a(0x26f)]))[_0x2e9e8a(0x255)](_0x18ad08=>Boolean(_0x18ad08&&_0x4b38c7[_0x2e9e8a(0x2ae)](_0x18ad08)));if(_0x201794[_0x2e9e8a(0x318)]===0x0)continue;const _0x2f39a3=new Set(_0xc56bc2[_0x2e9e8a(0x22d)](_0x201794[0x0])??[]);for(const _0x30ad1d of _0x201794['slice'](0x1)){const _0x2c5264=_0xc56bc2[_0x2e9e8a(0x22d)](_0x30ad1d)??new Set();for(const _0x51a5ed of _0x2f39a3){if(!_0x2c5264[_0x2e9e8a(0x2ae)](_0x51a5ed))_0x2f39a3[_0x2e9e8a(0x1c5)](_0x51a5ed);}}_0x2f39a3[_0x2e9e8a(0x238)](_0x5533fa);const _0x120ee0=_0xc56bc2['get'](_0x5533fa);!setsEqual(_0x120ee0,_0x2f39a3)&&(_0xc56bc2[_0x2e9e8a(0x1e2)](_0x5533fa,_0x2f39a3),_0x4f276a=!![]);}}for(const [_0x5c694d,_0x203253]of _0xaa4b21){const _0x19cfd5=_0xc56bc2[_0x2e9e8a(0x22d)](_0x5c694d);if(!_0x19cfd5)continue;for(const _0x4855db of _0x203253){if(_0x4855db[_0x2e9e8a(0x297)]!==_0x2e9e8a(0x21b)||typeof _0x4855db['expression']!=='string')continue;for(const [_0x3108e3,_0x2b270]of _0x366690){expressionReferencesVariable(_0x4855db['expression'],_0x3108e3)&&!_0x19cfd5[_0x2e9e8a(0x2ae)](_0x2b270)&&_0x4334a0[_0x2e9e8a(0x1db)]({'path':(_0xb20e78[_0x2e9e8a(0x22d)](_0x4855db)??_0x2e9e8a(0x247))+_0x2e9e8a(0x30a),'message':_0x2e9e8a(0x256)+_0x3108e3+_0x2e9e8a(0x2be)+_0x2b270+'\x20is\x20not\x20on\x20every\x20upstream\x20path\x20to\x20'+_0x5c694d+'.'});}}}}function expressionReferencesVariable(_0x35fb5d,_0x3b5fb6){const _0x522ffb=a287_0x8cf25c;let _0x293458=0x0;while(_0x293458<_0x35fb5d[_0x522ffb(0x318)]){const _0x280fff=_0x35fb5d[_0x293458];if(_0x280fff==='\x27'||_0x280fff==='\x22'){_0x293458=skipQuotedExpressionSegment(_0x35fb5d,_0x293458,_0x280fff);continue;}if(!/[A-Za-z_]/['test'](_0x280fff)){_0x293458+=0x1;continue;}const _0x227317=_0x293458;_0x293458+=0x1;while(_0x293458<_0x35fb5d['length']&&/[A-Za-z0-9_]/[_0x522ffb(0x1ea)](_0x35fb5d[_0x293458])){_0x293458+=0x1;}if(_0x35fb5d[_0x522ffb(0x1be)](_0x227317,_0x293458)!==_0x3b5fb6)continue;let _0x54ce7c=_0x227317-0x1;while(_0x54ce7c>=0x0&&/\s/[_0x522ffb(0x1ea)](_0x35fb5d[_0x54ce7c])){_0x54ce7c-=0x1;}if(_0x35fb5d[_0x54ce7c]!=='.')return!![];}return![];}function skipQuotedExpressionSegment(_0x5152b6,_0x2ea36e,_0x322f17){let _0x141381=_0x2ea36e+0x1;while(_0x141381<_0x5152b6['length']){if(_0x5152b6[_0x141381]==='\x5c'){_0x141381+=0x2;continue;}if(_0x5152b6[_0x141381]===_0x322f17)return _0x141381+0x1;_0x141381+=0x1;}return _0x141381;}function resolveEffectiveResultVariable(_0x3f41cf,_0x27d974){const _0x5eba17=a287_0x8cf25c;if(_0x3f41cf===undefined||_0x3f41cf===null||_0x27d974&&_0x3f41cf==='')return DEFAULT_SCRIPT_RESULT_VARIABLE;if(typeof _0x3f41cf!=='string'||!VARIABLE_PATTERN[_0x5eba17(0x1ea)](_0x3f41cf)||RESERVED_RESULT_VARIABLES['has'](_0x3f41cf)||_0x3f41cf['startsWith'](_0x5eba17(0x284)))return undefined;return _0x3f41cf;}function registerResultVariableOwner(_0x4acc40,_0x3dc654,_0x54dfc0,_0x36f9d3){const _0x34f8ad=a287_0x8cf25c;if(_0x4acc40[_0x34f8ad(0x2ae)](_0x3dc654)){_0x36f9d3[_0x34f8ad(0x1db)]({'path':'flowJson.nodes','message':_0x34f8ad(0x20b)+_0x3dc654+'.'});return;}_0x4acc40[_0x34f8ad(0x1e2)](_0x3dc654,_0x54dfc0);}function setsEqual(_0x48fd59,_0x2187c0){const _0x393492=a287_0x8cf25c;return _0x48fd59['size']===_0x2187c0[_0x393492(0x2b0)]&&[..._0x48fd59][_0x393492(0x2b6)](_0x8c3b79=>_0x2187c0[_0x393492(0x2ae)](_0x8c3b79));}function isValidUserId(_0x5e4754){const _0x1638ab=a287_0x8cf25c;if(typeof _0x5e4754===_0x1638ab(0x1da))return _0x5e4754[_0x1638ab(0x1d3)]()['length']>0x0;return Number[_0x1638ab(0x1fd)](_0x5e4754)&&Number(_0x5e4754)>0x0;}function resolveEdgeEndpoint(_0x2fefcc,_0x1da43a){const _0x48862c=a287_0x8cf25c;if(typeof _0x2fefcc===_0x48862c(0x1da)&&_0x2fefcc['trim']())return _0x2fefcc['trim']();if(typeof _0x1da43a===_0x48862c(0x1da)&&_0x1da43a['trim']())return _0x1da43a['trim']();return undefined;}function removeEmptyMetadata(_0x250efc,_0x455f4f,_0x5b17a1,_0x23df5c){const _0x4c1569=a287_0x8cf25c;if(Array[_0x4c1569(0x2df)](_0x250efc)){_0x250efc[_0x4c1569(0x236)]((_0x1d2f7b,_0x3ef439)=>removeEmptyMetadata(_0x1d2f7b,_0x455f4f+'['+_0x3ef439+']',_0x5b17a1,_0x23df5c));return;}if(!isRecord(_0x250efc))return;for(const [_0x569bd5,_0x1b9457]of Object[_0x4c1569(0x306)](_0x250efc)){const _0x387dd3=_0x455f4f+'.'+_0x569bd5;if(_0x569bd5===_0x4c1569(0x1dd)&&isEmptyJsonValue(_0x1b9457)){delete _0x250efc[_0x569bd5],_0x23df5c[_0x4c1569(0x1db)](_0x387dd3),_0x5b17a1['push']({'code':_0x4c1569(0x1f4),'path':_0x387dd3,'message':_0x387dd3+_0x4c1569(0x251)});continue;}removeEmptyMetadata(_0x1b9457,_0x387dd3,_0x5b17a1,_0x23df5c);}}function isEmptyJsonValue(_0x87eedf){const _0x2c7e66=a287_0x8cf25c;if(_0x87eedf===null||_0x87eedf===undefined)return!![];if(typeof _0x87eedf===_0x2c7e66(0x1da))return _0x87eedf[_0x2c7e66(0x1d3)]()==='';if(Array[_0x2c7e66(0x2df)](_0x87eedf))return _0x87eedf[_0x2c7e66(0x318)]===0x0;return isRecord(_0x87eedf)&&Object[_0x2c7e66(0x29c)](_0x87eedf)['length']===0x0;}function isRecord(_0x37e695){const _0xc3bcb6=a287_0x8cf25c;return typeof _0x37e695===_0xc3bcb6(0x2c7)&&_0x37e695!==null&&!Array[_0xc3bcb6(0x2df)](_0x37e695);}function cloneJsonValue(_0x47aa71){const _0x470dbe=a287_0x8cf25c;return JSON['parse'](JSON[_0x470dbe(0x246)](_0x47aa71));}export async function readFlowConfigFile(_0x1cf172){const _0x20d176=a287_0x8cf25c,_0x50bcd1=await readFile(resolve(_0x1cf172),_0x20d176(0x219));return JSON[_0x20d176(0x291)](_0x50bcd1);}
1
+ function a287_0x12ee(){const _0x4e3f44=['version','5hPCinr','sequential','.assignee.userIds[','waypoint\x20must\x20contain\x20numeric\x20x\x20and\x20y\x20coordinates.','value\x20must\x20be\x20a\x20non-empty\x20string.','utf8','PLATFORM_FORM\x20is\x20not\x20supported\x20by\x20this\x20rabetbase\x20version;\x20use\x20INDEPENDENT_FLOW\x20with\x20CUSTOM_PAGE.','.url','keys','Notification\x20fact\x20must\x20be\x20an\x20object.','role','pageMode\x20applies\x20only\x20to\x20INDEPENDENT_FLOW.','.facts','flowJson.startPath','duration\x20requires\x20value\x20and\x20unit.','PLATFORM_FORM','assignee.strategy\x20must\x20be\x20FIXED\x20or\x20ROLE.','.timeout.duration','Duplicate\x20BPMN\x20element\x20id:\x20','test','Duplicate\x20edge\x20route:\x20','warnings','name','SECONDS','taskMode','value','#/$defs/flowEdge','sequential\x20must\x20be\x20a\x20boolean.','async\x20must\x20be\x20an\x20object.','object','number','transferCandidates\x20must\x20be\x20an\x20object.','.tmp','findIndex','target','schemaVersion','.assignee','CONDITION','unit','expression','6539630cABVOM','nodes','visible','catch','\x20->\x20','timeout\x20must\x20be\x20an\x20object.','Notification\x20recipient.type\x20is\x20required.','flowName\x20is\x20required.','.cc.recipientUserIds[','approval_sys_initiatorUsername','title','isSafeInteger','edges','mode','edge\x20target\x20is\x20required.','scriptName','Unsupported\x20schemaVersion:\x20','CONDITION\x20node\x20requires\x20exactly\x20one\x20default\x20outgoing\x20edge.','#/$defs/flowNode','position','ROLE\x20assignee\x20requires\x20a\x20positive\x20integer\x20roleId.','userIds','size','flowName','datasetCode','strategy','Duplicate\x20resultVariable:\x20','timeout.interrupting\x20must\x20be\x20a\x20boolean.','empty_metadata_removed','^[1-9][0-9]*$','\x20must\x20be\x20a\x20finite\x20number.','position.','type','Flow\x20must\x20contain\x20exactly\x20one\x20START\x20node.','Approval\x20flow\x20requires\x20an\x20END\x20node\x20with\x20result\x20','EXECUTE_BFF','forEach','resultVariable','variables','recipientUserIds','.cc.readSources','ALL','Notification\x20recipient.role\x20must\x20be\x20TO,\x20CC,\x20or\x20BCC.','edge\x20source\x20is\x20required.','actions','NOTIFICATION','push','startPath\x20must\x20be\x20a\x20non-empty\x20string.','Default\x20cc\x20is\x20only\x20supported\x20by\x20APPROVAL\x20or\x20END\x20node.','transferCandidates','NOTIFICATION\x20node\x20requires\x20config.','.value','every','approval_sys_dataId','failurePolicy','END\x20node\x20must\x20not\x20have\x20outgoing\x20edges.','ROLE','defaultFlow','approval_sys_datasetCode','has','flowDesc\x20must\x20be\x20a\x20string.','array','.position','CONDITION\x20non-default\x20edge\x20requires\x20a\x20non-empty\x20expression.','transferCandidates\x20currently\x20supports\x20FIXED\x20only.','flowJson','edge\x20id\x20must\x20match\x20[A-Za-z_][A-Za-z0-9_]*.','result','approved','timeout.enabled\x20must\x20be\x20a\x20boolean.','flowType\x20is\x20required.','delete','conditionType','.unit','.pageId','^[A-Za-z_][A-Za-z0-9_]*$','filter','ALWAYS','source','.transferCandidates','templateName','value\x20must\x20be\x20an\x20array.','assignee','Notification\x20template\x20supports\x20at\x20most\x20','Notification\x20configCode\x20is\x20required.','.recipients','flowDesc','summary','flowJson.pageMode','.timeout','.async.enabled','718962nIdBer','cc\x20recipient\x20userId\x20must\x20be\x20a\x20non-empty\x20string.','includes','SCRIPT','123zAbUKQ','.actions','approval_sys_','flowJson.nodes.','START\x20node\x20must\x20not\x20have\x20incoming\x20edges.','overwrite','flowType','startPath','message','Notification\x20configCode\x20must\x20be\x20a\x20fixed\x20value.','USER','HOURS','boolean','\x20timeout\x20must\x20interrupt\x20the\x20approval\x20task.','pageMode','2GBiTpp','START','action','parse','.template','pid','duration\x20unit\x20must\x20be\x20SECONDS,\x20MINUTES,\x20HOURS,\x20or\x20DAYS.','Node\x20cannot\x20reach\x20any\x20END.','.async','SCRIPT\x20node\x20requires\x20scriptName.','Flow\x20must\x20contain\x20at\x20least\x20one\x20END\x20node.','approval.simple-flow.v1','async\x20execution\x20is\x20only\x20supported\x20by\x20SCRIPT\x20node.','Notification\x20recipient.value\x20is\x20required.','enabled','.conditionType','pageId','get','FIXED\x20transferCandidates\x20requires\x20non-empty\x20userIds.','.waypoints[','APPROVED','\x20is\x20not\x20part\x20of\x20the\x20portable\x20FlowConfig\x20and\x20was\x20removed.','Unsupported\x20flowType:\x20','node\x20id\x20must\x20match\x20[A-Za-z_][A-Za-z0-9_]*.','\x20value\x20and\x20was\x20removed\x20from\x20the\x20portable\x20FlowConfig.','slice','Unsupported\x20node\x20type:\x20','bindDatasetCode','CONTINUE','startsWith','NaN','roleId','.async.retryCount','CONDITION\x20non-default\x20edge\x20must\x20use\x20conditionType\x20EXPRESSION.','Edge\x20target\x20node\x20not\x20found:\x20','config','APPROVAL\x20node\x20requires\x20exactly\x20one\x20REJECTED\x20outgoing\x20edge.','integer','Notification\x20action.text\x20is\x20required.','interrupting','label','.timeout.scriptName','indexOf','.sequential','add','HANDLE\x20task\x20timeout\x20only\x20supports\x20EXECUTE_BFF.','matchAll','HANDLE\x20task\x20outgoing\x20edge\x20must\x20use\x20ALWAYS\x20without\x20defaultFlow\x20or\x20expression.','\x20is\x20not\x20on\x20every\x20upstream\x20path\x20to\x20','EMAIL','CONDITION\x20default\x20edge\x20must\x20use\x20conditionType\x20ALWAYS.','#/$defs/position','.detailMarkdown','1684755zkrdmz','927087cbJTye','Unsupported\x20approval\x20mode:\x20','.name','.timeout.enabled','58060NonLfK','Rabetbase\x20FlowConfig','.async.retryInterval','.configCode','.config','SINGLE','node\x20path\x20must\x20be\x20a\x20non-empty\x20string.','\x20actions.','failurePolicy\x20must\x20be\x20a\x20string.','retryCount','.\x20This\x20CLI\x20supports\x20only\x20','appCode','approval_sys_operationType','isInteger','AUTO_REJECT','EXPRESSION\x20edge\x20requires\x20expression.','.position.','duration\x20value\x20must\x20be\x20a\x20positive\x20integer.','map','timeout.action\x20must\x20be\x20AUTO_APPROVE,\x20AUTO_REJECT,\x20or\x20EXECUTE_BFF.','hasOwnProperty','.assignee.roleId','datasetCode\x20must\x20be\x20a\x20string.','Node\x20is\x20not\x20reachable\x20from\x20START.','FORM_FLOW','Node\x20has\x20no\x20incoming\x20edge.','prototype','Every\x20node\x20requires\x20position.x\x20and\x20position.y.','recipients','EXPRESSION','detailMarkdown','.text','.transferCandidates.userIds[','text','edge\x20must\x20be\x20an\x20object.','path','\x20is\x20required.','flowJson.edges','INDEPENDENT_FLOW\x20cannot\x20bind\x20datasetCode.','length','formPermission','.expression','APPROVAL','END','NOTIFICATION\x20node\x20requires\x20template.','MINUTES','REJECTED','async.enabled\x20must\x20be\x20a\x20boolean.','sourceNodeId','2561112FXfttw','.cc','string','transfer\x20candidate\x20userId\x20must\x20be\x20a\x20non-empty\x20string\x20or\x20positive\x20integer.','.id','Notification\x20recipients\x20must\x20be\x20an\x20array.','entries','resultVariable\x20must\x20match\x20[A-Za-z_][A-Za-z0-9_]*.','configCode','__rabetbase_local_validation__','toUpperCase','node\x20path\x20is\x20supported\x20only\x20on\x20APPROVAL\x20or\x20END\x20nodes.','.path','event','.taskMode','replace','INDEPENDENT_FLOW\x20cannot\x20bind\x20pageId.','flowJson.nodes','nodes\x20must\x20be\x20an\x20array.','cc.recipientUserIds\x20supports\x20at\x20most\x20','flowJson.schemaVersion','Custom\x20form\x20configuration\x20is\x20not\x20supported\x20by\x20this\x20rabetbase\x20version;\x20use\x20a\x20business\x20custom\x20page\x20instead.','formData','Notification\x20recipient.role\x20must\x20be\x20a\x20string.','facts','Notification\x20template.actions\x20must\x20be\x20an\x20array.','A\x20default\x20flow\x20must\x20use\x20conditionType\x20ALWAYS.','legacy_field_removed','flowKey','.timeout.resultVariable','waypoint.','.waypoints','waypoints','.scriptName','.transferCandidates.userIds','SINGLE\x20approval\x20supports\x20only\x20one\x20fixed\x20user.','flowJson.edges[','https://json-schema.org/draft/2020-12/schema','cc\x20must\x20be\x20an\x20object.','trim','Notification\x20recipient\x20must\x20be\x20an\x20object.','INDEPENDENT_FLOW','.resultVariable','stringify','Notification\x20action.url\x20must\x20use\x20http/https\x20or\x20a\x20complete\x20supported\x20placeholder.','targetNodeId','Duplicate\x20cc\x20recipient\x20userId:\x20','FIXED','flowJson.nodes[','.assignee.strategy','.defaultFlow','call','fixed\x20assignee\x20userId\x20must\x20be\x20a\x20non-empty\x20string\x20or\x20positive\x20integer.','DAYS','Reserved\x20resultVariable:\x20','\x20must\x20be\x20a\x20finite\x20number\x20greater\x20than\x20or\x20equal\x20to\x200.','.timeout.interrupting','Notification\x20template.detailMarkdown\x20must\x20be\x20a\x20string.',',\x20but\x20node\x20','async','template','.type','startPageId','timeout','CONDITION\x20default\x20edge\x20must\x20not\x20define\x20expression.','FAIL','url','CONDITION\x20node\x20requires\x20at\x20least\x20two\x20outgoing\x20edges.','set','279260SxGooN','AUTO_APPROVE','retryInterval','edges\x20must\x20be\x20an\x20array.','Node\x20has\x20no\x20outgoing\x20edge.','.role','some','.cc.visible','startPageId\x20is\x20no\x20longer\x20supported;\x20use\x20startPath\x20instead.','BCC','Edge\x20source\x20node\x20not\x20found:\x20','Unsupported\x20pageMode:\x20','approval_sys_processInstanceId','HANDLE\x20task\x20requires\x20exactly\x20one\x20outgoing\x20edge.','SCRIPT\x20async\x20retryCount\x20must\x20be\x20between\x201\x20and\x20','Notification\x20template.','.transferCandidates.strategy','.version','approval_sys_initiatorUserId','.source','.assignee.userIds','CUSTOM_PAGE','HANDLE','Notification\x20version\x20must\x20be\x20a\x20string.','isArray','ANY','.cc.recipientUserIds','\x20users.','flowJson.','.approvalMode','waypoints\x20must\x20be\x20an\x20array.','Unsupported\x20condition\x20type:\x20','Duplicate\x20value:\x20','approval_sys_pageId','Every\x20node\x20requires\x20a\x20non-empty\x20name.','.timeout.action','Notification\x20recipient.type\x20must\x20be\x20USER,\x20ROLE,\x20or\x20EMAIL.','Unsupported\x20task\x20mode:\x20','A\x20default\x20flow\x20must\x20not\x20have\x20an\x20expression.','flowJson.startPageId'];a287_0x12ee=function(){return _0x4e3f44;};return a287_0x12ee();}const a287_0x4050df=a287_0x4188;(function(_0x36291e,_0x7391b6){const _0x345fd0=a287_0x4188,_0x14a23b=_0x36291e();while(!![]){try{const _0x2ae8a7=-parseInt(_0x345fd0(0x22d))/0x1*(parseInt(_0x345fd0(0x16e))/0x2)+parseInt(_0x345fd0(0x21e))/0x3*(parseInt(_0x345fd0(0x267))/0x4)+parseInt(_0x345fd0(0x197))/0x5*(parseInt(_0x345fd0(0x21a))/0x6)+parseInt(_0x345fd0(0x263))/0x7+parseInt(_0x345fd0(0x298))/0x8+parseInt(_0x345fd0(0x262))/0x9+-parseInt(_0x345fd0(0x1bf))/0xa;if(_0x2ae8a7===_0x7391b6)break;else _0x14a23b['push'](_0x14a23b['shift']());}catch(_0x4e3e47){_0x14a23b['push'](_0x14a23b['shift']());}}}(a287_0x12ee,0x66e76));import{randomUUID}from'node:crypto';import{chmod,link,readFile,rename,stat,unlink,writeFile}from'node:fs/promises';import{resolve}from'node:path';export const FLOW_CONFIG_JSON_SCHEMA={'$schema':a287_0x4050df(0x2bd),'$id':'https://lovrabet.com/schema/rabetbase-flow-config.json','title':a287_0x4050df(0x268),'type':a287_0x4050df(0x1b4),'required':[a287_0x4050df(0x1d6),a287_0x4050df(0x224),'flowJson'],'$defs':{'userId':{'anyOf':[{'type':a287_0x4050df(0x29a),'minLength':0x1},{'type':a287_0x4050df(0x252),'minimum':0x1}]},'position':{'type':a287_0x4050df(0x1b4),'required':['x','y'],'properties':{'x':{'type':a287_0x4050df(0x1b5),'minimum':0x0},'y':{'type':'number','minimum':0x0}},'additionalProperties':!![]},'timeAmount':{'type':a287_0x4050df(0x1b4),'required':[a287_0x4050df(0x1b0),a287_0x4050df(0x1bd)],'properties':{'value':{'type':a287_0x4050df(0x252),'minimum':0x1},'unit':{'enum':[a287_0x4050df(0x1ae),a287_0x4050df(0x294),a287_0x4050df(0x229),a287_0x4050df(0x15e)]}},'additionalProperties':!![]},'flowNode':{'type':a287_0x4050df(0x1b4),'required':['id','type','name',a287_0x4050df(0x1d2)],'properties':{'id':{'type':a287_0x4050df(0x29a),'pattern':'^[A-Za-z_][A-Za-z0-9_]*$'},'type':{'enum':['START','END',a287_0x4050df(0x291),'CONDITION',a287_0x4050df(0x21d),'NOTIFICATION']},'name':{'type':a287_0x4050df(0x29a),'minLength':0x1},'path':{'type':a287_0x4050df(0x29a),'minLength':0x1},'position':{'$ref':'#/$defs/position'},'approvalMode':{'enum':[a287_0x4050df(0x26c),a287_0x4050df(0x1e8),a287_0x4050df(0x187)]},'taskMode':{'enum':['APPROVAL','HANDLE']},'assignee':{'type':a287_0x4050df(0x1b4),'required':[a287_0x4050df(0x1d8)],'properties':{'strategy':{'enum':[a287_0x4050df(0x158),a287_0x4050df(0x1f7)]},'userIds':{'type':a287_0x4050df(0x1fc),'minItems':0x1,'items':{'$ref':'#/$defs/userId'}},'roleId':{'anyOf':[{'type':a287_0x4050df(0x252),'minimum':0x1},{'type':a287_0x4050df(0x29a),'pattern':a287_0x4050df(0x1dc)}]}},'additionalProperties':!![]},'transferCandidates':{'type':'object','required':[a287_0x4050df(0x1d8),a287_0x4050df(0x1d4)],'properties':{'strategy':{'const':a287_0x4050df(0x158)},'userIds':{'type':a287_0x4050df(0x1fc),'minItems':0x1,'items':{'$ref':'#/$defs/userId'}}},'additionalProperties':!![]},'sequential':{'type':a287_0x4050df(0x22a)},'result':{'enum':[a287_0x4050df(0x241),a287_0x4050df(0x295)]},'scriptName':{'type':'string','minLength':0x1},'resultVariable':{'type':a287_0x4050df(0x29a),'pattern':a287_0x4050df(0x20a)},'async':{'type':a287_0x4050df(0x1b4),'properties':{'enabled':{'type':a287_0x4050df(0x22a)},'retryCount':{'type':'integer','minimum':0x1,'maximum':0xa},'retryInterval':{'$ref':'#/$defs/timeAmount'}},'additionalProperties':!![]},'timeout':{'type':'object','properties':{'enabled':{'type':a287_0x4050df(0x22a)},'duration':{'$ref':'#/$defs/timeAmount'},'action':{'enum':[a287_0x4050df(0x16f),a287_0x4050df(0x275),a287_0x4050df(0x1e2)]},'interrupting':{'type':'boolean'},'scriptName':{'type':a287_0x4050df(0x29a),'minLength':0x1},'resultVariable':{'type':a287_0x4050df(0x29a),'pattern':a287_0x4050df(0x20a)}},'additionalProperties':!![]},'cc':{'type':'object','required':[a287_0x4050df(0x1e6)],'properties':{'recipientUserIds':{'type':a287_0x4050df(0x1fc),'minItems':0x1,'maxItems':0x64,'uniqueItems':!![],'items':{'type':a287_0x4050df(0x29a),'minLength':0x1}},'visible':{'type':a287_0x4050df(0x1fc),'uniqueItems':!![],'items':{'type':a287_0x4050df(0x29a),'minLength':0x1}},'readSources':![]},'additionalProperties':!![]},'config':{'type':a287_0x4050df(0x1b4),'required':[a287_0x4050df(0x2a0),'template'],'properties':{'version':{'enum':['v1']},'configCode':{'type':a287_0x4050df(0x29a),'minLength':0x1},'failurePolicy':{'enum':[a287_0x4050df(0x249),a287_0x4050df(0x16a)]},'template':{'type':'object','required':['title',a287_0x4050df(0x216)],'properties':{'title':{'type':a287_0x4050df(0x29a),'minLength':0x1},'summary':{'type':a287_0x4050df(0x29a),'minLength':0x1},'detailMarkdown':{'type':'string'},'facts':{'type':a287_0x4050df(0x1fc),'maxItems':0x8,'items':{'type':'object','required':[a287_0x4050df(0x255),'value'],'properties':{'label':{'type':'string','minLength':0x1},'value':{'type':'string','minLength':0x1}},'additionalProperties':!![]}},'actions':{'type':a287_0x4050df(0x1fc),'maxItems':0x2,'items':{'type':a287_0x4050df(0x1b4),'required':['text','url'],'properties':{'text':{'type':a287_0x4050df(0x29a),'minLength':0x1},'url':{'type':a287_0x4050df(0x29a),'minLength':0x1}},'additionalProperties':!![]}}},'additionalProperties':!![]},'recipients':{'type':'array','items':{'type':a287_0x4050df(0x1b4),'required':[a287_0x4050df(0x1df),a287_0x4050df(0x1b0)],'properties':{'type':{'enum':['USER',a287_0x4050df(0x1f7),a287_0x4050df(0x25e)]},'value':{'type':a287_0x4050df(0x29a),'minLength':0x1},'role':{'enum':['TO','CC','BCC']}},'additionalProperties':!![]}}},'additionalProperties':!![]},'form':![],'formPermission':![]},'additionalProperties':!![]},'flowEdge':{'type':a287_0x4050df(0x1b4),'properties':{'id':{'type':'string','pattern':'^[A-Za-z_][A-Za-z0-9_]*$'},'source':{'type':a287_0x4050df(0x29a),'minLength':0x1},'target':{'type':a287_0x4050df(0x29a),'minLength':0x1},'sourceNodeId':{'type':a287_0x4050df(0x29a),'minLength':0x1},'targetNodeId':{'type':a287_0x4050df(0x29a),'minLength':0x1},'conditionType':{'enum':[a287_0x4050df(0x20c),a287_0x4050df(0x241),a287_0x4050df(0x295),a287_0x4050df(0x284)]},'expression':{'type':'string'},'defaultFlow':{'type':a287_0x4050df(0x22a)},'name':{'type':a287_0x4050df(0x29a)},'waypoints':{'type':'array','items':{'$ref':a287_0x4050df(0x260)}}},'allOf':[{'anyOf':[{'required':['source']},{'required':[a287_0x4050df(0x297)]}]},{'anyOf':[{'required':['target']},{'required':[a287_0x4050df(0x156)]}]}],'additionalProperties':!![]}},'properties':{'id':![],'appCode':![],'flowName':{'type':a287_0x4050df(0x29a),'minLength':0x1},'flowDesc':{'type':a287_0x4050df(0x29a)},'flowType':{'enum':['FORM_FLOW',a287_0x4050df(0x152)]},'datasetCode':{'type':a287_0x4050df(0x29a),'minLength':0x1},'pageId':{'type':a287_0x4050df(0x252)},'templateName':![],'flowJson':{'type':a287_0x4050df(0x1b4),'required':[a287_0x4050df(0x1c0),a287_0x4050df(0x1cb)],'properties':{'flowKey':![],'flowCode':![],'flowName':![],'bindDatasetCode':![],'datasetCode':![],'appCode':![],'pageId':![],'templateName':![],'schemaVersion':{'type':a287_0x4050df(0x29a),'const':'approval.simple-flow.v1','description':'Accepted\x20as\x20legacy\x20input\x20and\x20removed\x20during\x20normalization;\x20other\x20versions\x20are\x20unsupported.'},'formSchema':![],'formDefinitions':![],'formPermissions':![],'pageMode':{'const':a287_0x4050df(0x183)},'startPageId':![],'startPath':{'type':a287_0x4050df(0x29a),'minLength':0x1},'nodes':{'type':a287_0x4050df(0x1fc),'minItems':0x1,'items':{'$ref':a287_0x4050df(0x1d1)}},'edges':{'type':a287_0x4050df(0x1fc),'minItems':0x1,'items':{'$ref':a287_0x4050df(0x1b1)}}},'additionalProperties':!![]}},'additionalProperties':!![]};const REMOVED_FLOW_JSON_FIELDS=[a287_0x4050df(0x2b4),'flowCode','flowName',a287_0x4050df(0x248),a287_0x4050df(0x1d7),a287_0x4050df(0x272),a287_0x4050df(0x23d),a287_0x4050df(0x20f)],REMOVED_ROOT_FIELDS=['id',a287_0x4050df(0x272),a287_0x4050df(0x20f)],DEFAULT_FLOW_SCHEMA_VERSION=a287_0x4050df(0x238),NODE_TYPES=new Set([a287_0x4050df(0x22e),'END',a287_0x4050df(0x291),'CONDITION',a287_0x4050df(0x21d),a287_0x4050df(0x1ec)]),CONDITION_TYPES=new Set([a287_0x4050df(0x20c),a287_0x4050df(0x241),a287_0x4050df(0x295),'EXPRESSION']),APPROVAL_MODES=new Set([a287_0x4050df(0x26c),'ALL',a287_0x4050df(0x187)]),APPROVAL_TASK_MODES=new Set([a287_0x4050df(0x291),a287_0x4050df(0x184)]),FLOW_TIME_UNITS=new Set([a287_0x4050df(0x1ae),a287_0x4050df(0x294),'HOURS',a287_0x4050df(0x15e)]),APPROVAL_TIMEOUT_ACTIONS=new Set([a287_0x4050df(0x16f),a287_0x4050df(0x275),a287_0x4050df(0x1e2)]),FLOW_TYPES=new Set([a287_0x4050df(0x27f),a287_0x4050df(0x152)]),FLOW_PAGE_MODES=new Set(['CUSTOM_PAGE',a287_0x4050df(0x1a6)]),BPMN_ID_PATTERN=/^[A-Za-z_][A-Za-z0-9_]*$/,VARIABLE_PATTERN=/^[A-Za-z_][A-Za-z0-9_]*$/,NOTIFICATION_PLACEHOLDER_PATTERN=/\$\{([^{}]+)\}/g,NOTIFICATION_ACTION_URL_PLACEHOLDER_PATTERN=/^\$\{(?:event|context|variables)\.[^{}]+\}$/,NOTIFICATION_FAILURE_POLICIES=new Set(['CONTINUE','FAIL']),NOTIFICATION_RECIPIENT_TYPES=new Set([a287_0x4050df(0x228),'ROLE',a287_0x4050df(0x25e)]),NOTIFICATION_RECIPIENT_ROLES=new Set(['TO','CC',a287_0x4050df(0x177)]),MAX_NOTIFICATION_FACTS=0x8,MAX_NOTIFICATION_ACTIONS=0x2,MAX_ASYNC_RETRY_COUNT=0xa,MAX_CC_RECIPIENTS=0x64,DEFAULT_SCRIPT_RESULT_VARIABLE='scriptResult',UNSUPPORTED_FORM_MESSAGE=a287_0x4050df(0x2ad),UNSUPPORTED_PLATFORM_FORM_MESSAGE=a287_0x4050df(0x19d),RESERVED_RESULT_VARIABLES=new Set([a287_0x4050df(0x2ae),a287_0x4050df(0x203),'approval_sys_appCode',a287_0x4050df(0x17a),a287_0x4050df(0x180),a287_0x4050df(0x1c8),a287_0x4050df(0x1f9),a287_0x4050df(0x18f),a287_0x4050df(0x273),a287_0x4050df(0x1f4)]);export function normalizeFlowConfig(_0x57a407){const _0x341294=a287_0x4050df;if(!isRecord(_0x57a407))throw new TypeError('FlowConfig\x20must\x20be\x20a\x20JSON\x20object.');const _0x5ac29b=cloneJsonValue(_0x57a407),_0x5eda6b=_0x5ac29b[_0x341294(0x200)],_0xcefde9=isRecord(_0x5eda6b)?cloneJsonValue(_0x5eda6b):{},_0xb4e4f9=[],_0x8fed57=[];for(const _0x3aafb5 of REMOVED_ROOT_FIELDS){if(!Object['prototype']['hasOwnProperty'][_0x341294(0x15c)](_0x5ac29b,_0x3aafb5))continue;delete _0x5ac29b[_0x3aafb5],_0x8fed57[_0x341294(0x1ed)](_0x3aafb5),_0xb4e4f9[_0x341294(0x1ed)]({'code':_0x341294(0x2b3),'path':_0x3aafb5,'message':_0x3aafb5+_0x341294(0x242)});}for(const _0x1ae957 of REMOVED_FLOW_JSON_FIELDS){if(!Object['prototype'][_0x341294(0x27b)][_0x341294(0x15c)](_0xcefde9,_0x1ae957))continue;const _0x452d5a='flowJson.'+_0x1ae957;delete _0xcefde9[_0x1ae957],_0x8fed57[_0x341294(0x1ed)](_0x452d5a),_0xb4e4f9[_0x341294(0x1ed)]({'code':_0x341294(0x2b3),'path':_0x452d5a,'message':_0x452d5a+_0x341294(0x242)});}if(Object[_0x341294(0x281)][_0x341294(0x27b)][_0x341294(0x15c)](_0xcefde9,_0x341294(0x1ba))){const _0x2efd0c=_0xcefde9[_0x341294(0x1ba)],_0x4b66c5=typeof _0x2efd0c==='string'?_0x2efd0c['trim']():_0x2efd0c;if(isEmptyJsonValue(_0x2efd0c)||_0x4b66c5===DEFAULT_FLOW_SCHEMA_VERSION){const _0x195605=_0x341294(0x2ac);delete _0xcefde9[_0x341294(0x1ba)],_0x8fed57['push'](_0x195605),_0xb4e4f9[_0x341294(0x1ed)]({'code':'legacy_field_removed','path':_0x195605,'message':_0x195605+'\x20was\x20empty\x20or\x20used\x20the\x20default\x20'+DEFAULT_FLOW_SCHEMA_VERSION+_0x341294(0x245)});}}removeEmptyMetadata(_0xcefde9,_0x341294(0x200),_0xb4e4f9,_0x8fed57);_0x5ac29b[_0x341294(0x224)]===_0x341294(0x152)&&!Object[_0x341294(0x281)]['hasOwnProperty'][_0x341294(0x15c)](_0xcefde9,_0x341294(0x22c))&&(_0xcefde9[_0x341294(0x22c)]='CUSTOM_PAGE');_0x5ac29b[_0x341294(0x200)]=_0xcefde9;if(typeof _0x5ac29b[_0x341294(0x1d6)]==='string')_0x5ac29b['flowName']=_0x5ac29b[_0x341294(0x1d6)][_0x341294(0x2bf)]();return{'config':_0x5ac29b,'warnings':_0xb4e4f9,'removedPaths':_0x8fed57};}export function validateFlowConfig(_0x159010){const _0x47c346=a287_0x4050df;let _0xf49239;try{_0xf49239=normalizeFlowConfig(_0x159010);}catch(_0x3885e5){const _0x2019d9=_0x3885e5 instanceof Error?_0x3885e5[_0x47c346(0x226)]:String(_0x3885e5),_0x33b36c={'flowJson':{}};return{'valid':![],'errors':[{'path':'$','message':_0x2019d9}],'warnings':[],'normalized':_0x33b36c,'validationConfig':_0x33b36c};}const _0x11b532=_0xf49239[_0x47c346(0x250)],_0x305b36=cloneJsonValue(_0x11b532),_0x57cd23=_0x305b36['flowJson'];_0x57cd23[_0x47c346(0x2b4)]=_0x47c346(0x2a1),_0x57cd23['flowName']=_0x11b532[_0x47c346(0x1d6)];typeof _0x11b532[_0x47c346(0x1d7)]===_0x47c346(0x29a)&&_0x11b532[_0x47c346(0x1d7)][_0x47c346(0x2bf)]()&&(_0x57cd23[_0x47c346(0x248)]=_0x11b532['datasetCode'][_0x47c346(0x2bf)]());const _0x315782=[];return validateOuterMetadata(_0x11b532,_0x315782),validateFlowClassification(_0x11b532,_0x315782),validateGraph(_0x11b532['flowJson'],_0x315782),{'valid':_0x315782[_0x47c346(0x28e)]===0x0,'errors':_0x315782,'warnings':_0xf49239[_0x47c346(0x1ac)],'normalized':_0x11b532,'validationConfig':_0x305b36};}function validateFlowClassification(_0x57e8f9,_0x73eff8){const _0x2b27d1=a287_0x4050df;if(!isRecord(_0x57e8f9[_0x2b27d1(0x200)]))return;const _0x5717fe=_0x57e8f9[_0x2b27d1(0x224)],_0x508166=_0x57e8f9[_0x2b27d1(0x200)]['pageMode'];_0x508166!==undefined&&(typeof _0x508166!=='string'||!FLOW_PAGE_MODES[_0x2b27d1(0x1fa)](_0x508166))&&_0x73eff8[_0x2b27d1(0x1ed)]({'path':_0x2b27d1(0x217),'message':_0x2b27d1(0x179)+String(_0x508166)+'.'});_0x5717fe===_0x2b27d1(0x27f)&&_0x508166!==undefined&&_0x73eff8[_0x2b27d1(0x1ed)]({'path':_0x2b27d1(0x217),'message':_0x2b27d1(0x1a2)});_0x5717fe===_0x2b27d1(0x152)&&_0x508166===_0x2b27d1(0x1a6)&&_0x73eff8[_0x2b27d1(0x1ed)]({'path':_0x2b27d1(0x217),'message':UNSUPPORTED_PLATFORM_FORM_MESSAGE});(_0x5717fe===_0x2b27d1(0x27f)||_0x5717fe===_0x2b27d1(0x152))&&validateCustomPageNavigation(_0x57e8f9,_0x5717fe,_0x508166,_0x73eff8);if(_0x5717fe!=='FORM_FLOW'||!Array[_0x2b27d1(0x186)](_0x57e8f9[_0x2b27d1(0x200)]['nodes']))return;_0x57e8f9[_0x2b27d1(0x200)][_0x2b27d1(0x1c0)][_0x2b27d1(0x1e3)]((_0x16301f,_0x5d3677)=>{const _0x7e2c89=_0x2b27d1;isRecord(_0x16301f)&&_0x16301f[_0x7e2c89(0x1df)]===_0x7e2c89(0x291)&&_0x16301f[_0x7e2c89(0x1af)]==='HANDLE'&&_0x73eff8[_0x7e2c89(0x1ed)]({'path':_0x7e2c89(0x159)+_0x5d3677+'].taskMode','message':'FORM_FLOW\x20is\x20an\x20approval\x20flow\x20and\x20cannot\x20contain\x20HANDLE\x20tasks;\x20use\x20INDEPENDENT_FLOW\x20for\x20workflows.'});});}function validateCustomPageNavigation(_0x4409a6,_0x39e716,_0x1d6f2c,_0x4535e6){const _0x30d8a9=a287_0x4050df,_0x2e09cf=_0x4409a6[_0x30d8a9(0x200)][_0x30d8a9(0x167)];_0x2e09cf!==undefined&&_0x4535e6[_0x30d8a9(0x1ed)]({'path':_0x30d8a9(0x195),'message':_0x30d8a9(0x176)});const _0x1fbc11=_0x4409a6[_0x30d8a9(0x200)][_0x30d8a9(0x225)];_0x1fbc11!==undefined&&(typeof _0x1fbc11!==_0x30d8a9(0x29a)||_0x1fbc11['trim']()==='')&&_0x4535e6[_0x30d8a9(0x1ed)]({'path':_0x30d8a9(0x1a4),'message':_0x30d8a9(0x1ee)});const _0x68dd93=Array[_0x30d8a9(0x186)](_0x4409a6['flowJson']['nodes'])?_0x4409a6['flowJson'][_0x30d8a9(0x1c0)]['map']((_0x357db3,_0x2cc618)=>({'node':_0x357db3,'index':_0x2cc618}))['filter'](({node:_0x351782})=>isRecord(_0x351782)&&_0x351782[_0x30d8a9(0x28a)]!==undefined):[],_0x2a1df9=_0x1fbc11!==undefined||_0x68dd93[_0x30d8a9(0x28e)]>0x0,_0x23c71b=_0x1d6f2c===undefined&&_0x39e716===_0x30d8a9(0x152)?'CUSTOM_PAGE':_0x1d6f2c;_0x2a1df9&&(_0x39e716!==_0x30d8a9(0x152)||_0x23c71b!=='CUSTOM_PAGE')&&(_0x1fbc11!==undefined&&_0x4535e6[_0x30d8a9(0x1ed)]({'path':'flowJson.startPath','message':'startPath\x20applies\x20only\x20to\x20INDEPENDENT_FLOW\x20with\x20CUSTOM_PAGE.'}),_0x68dd93['forEach'](({index:_0x52e055})=>{const _0x58f6fd=_0x30d8a9;_0x4535e6[_0x58f6fd(0x1ed)]({'path':_0x58f6fd(0x159)+_0x52e055+'].path','message':'node\x20path\x20applies\x20only\x20to\x20INDEPENDENT_FLOW\x20with\x20CUSTOM_PAGE.'});}));}export async function writeNormalizedFlowConfig(_0x5c5b7b,_0x43e4eb,_0x5dab23={}){const _0x4f5fd1=a287_0x4050df,_0x2f8d5c=resolve(_0x5c5b7b),_0x6f9016=_0x2f8d5c+'.'+process[_0x4f5fd1(0x232)]+'.'+randomUUID()+_0x4f5fd1(0x1b7),_0x395365=JSON[_0x4f5fd1(0x154)](_0x43e4eb,null,0x2)+'\x0a';let _0x3d8be7;try{try{_0x3d8be7=(await stat(_0x2f8d5c))[_0x4f5fd1(0x1cc)]&0x1ff;}catch{_0x3d8be7=undefined;}await writeFile(_0x6f9016,_0x395365,{'encoding':_0x4f5fd1(0x19c),'flag':'wx','mode':_0x3d8be7??0x1a4});if(_0x3d8be7!==undefined)await chmod(_0x6f9016,_0x3d8be7);_0x5dab23[_0x4f5fd1(0x223)]===![]?(await link(_0x6f9016,_0x2f8d5c),await unlink(_0x6f9016)):await rename(_0x6f9016,_0x2f8d5c);}finally{await unlink(_0x6f9016)[_0x4f5fd1(0x1c2)](()=>undefined);}}function validateOuterMetadata(_0x3c0802,_0xe040fe){const _0x463a50=a287_0x4050df;(typeof _0x3c0802[_0x463a50(0x1d6)]!==_0x463a50(0x29a)||_0x3c0802[_0x463a50(0x1d6)][_0x463a50(0x2bf)]()==='')&&_0xe040fe[_0x463a50(0x1ed)]({'path':_0x463a50(0x1d6),'message':_0x463a50(0x1c6)});_0x3c0802[_0x463a50(0x215)]!==undefined&&typeof _0x3c0802[_0x463a50(0x215)]!==_0x463a50(0x29a)&&_0xe040fe[_0x463a50(0x1ed)]({'path':'flowDesc','message':_0x463a50(0x1fb)});if(_0x3c0802[_0x463a50(0x224)]===undefined||_0x3c0802['flowType']===null)_0xe040fe[_0x463a50(0x1ed)]({'path':_0x463a50(0x224),'message':_0x463a50(0x205)});else(typeof _0x3c0802[_0x463a50(0x224)]!==_0x463a50(0x29a)||!FLOW_TYPES[_0x463a50(0x1fa)](_0x3c0802[_0x463a50(0x224)]))&&_0xe040fe[_0x463a50(0x1ed)]({'path':_0x463a50(0x224),'message':_0x463a50(0x243)+String(_0x3c0802[_0x463a50(0x224)])+'.'});_0x3c0802[_0x463a50(0x1d7)]!==undefined&&typeof _0x3c0802[_0x463a50(0x1d7)]!==_0x463a50(0x29a)&&_0xe040fe[_0x463a50(0x1ed)]({'path':_0x463a50(0x1d7),'message':_0x463a50(0x27d)}),_0x3c0802[_0x463a50(0x23d)]!==undefined&&(!Number['isInteger'](_0x3c0802['pageId'])||_0x3c0802[_0x463a50(0x23d)]<0x0)&&_0xe040fe[_0x463a50(0x1ed)]({'path':_0x463a50(0x23d),'message':'pageId\x20must\x20be\x20a\x20non-negative\x20integer.'}),_0x3c0802[_0x463a50(0x224)]===_0x463a50(0x152)&&_0x3c0802[_0x463a50(0x1d7)]!==undefined&&_0xe040fe[_0x463a50(0x1ed)]({'path':_0x463a50(0x1d7),'message':_0x463a50(0x28d)}),_0x3c0802['flowType']===_0x463a50(0x152)&&_0x3c0802['pageId']!==undefined&&_0xe040fe[_0x463a50(0x1ed)]({'path':_0x463a50(0x23d),'message':_0x463a50(0x2a8)});}function validateGraph(_0x1aa8bc,_0x3a9a5e){const _0x1eee28=a287_0x4050df;if(!isRecord(_0x1aa8bc)){_0x3a9a5e[_0x1eee28(0x1ed)]({'path':_0x1eee28(0x200),'message':'flowJson\x20must\x20be\x20an\x20object.'});return;}!Array[_0x1eee28(0x186)](_0x1aa8bc[_0x1eee28(0x1c0)])&&_0x3a9a5e[_0x1eee28(0x1ed)]({'path':'flowJson.nodes','message':_0x1eee28(0x2aa)});!Array['isArray'](_0x1aa8bc[_0x1eee28(0x1cb)])&&_0x3a9a5e[_0x1eee28(0x1ed)]({'path':'flowJson.edges','message':_0x1eee28(0x171)});Object[_0x1eee28(0x281)][_0x1eee28(0x27b)][_0x1eee28(0x15c)](_0x1aa8bc,'schemaVersion')&&_0x3a9a5e[_0x1eee28(0x1ed)]({'path':_0x1eee28(0x2ac),'message':_0x1eee28(0x1cf)+String(_0x1aa8bc[_0x1eee28(0x1ba)])+_0x1eee28(0x271)+DEFAULT_FLOW_SCHEMA_VERSION+'.'});for(const _0x995cd6 of['formSchema','formDefinitions','formPermissions']){Object[_0x1eee28(0x281)][_0x1eee28(0x27b)][_0x1eee28(0x15c)](_0x1aa8bc,_0x995cd6)&&_0x3a9a5e['push']({'path':_0x1eee28(0x18a)+_0x995cd6,'message':UNSUPPORTED_FORM_MESSAGE});}if(!Array[_0x1eee28(0x186)](_0x1aa8bc[_0x1eee28(0x1c0)])||!Array['isArray'](_0x1aa8bc[_0x1eee28(0x1cb)]))return;const _0x273413=new Map(),_0x729ed=[],_0x1036a5=[],_0x1100d9=new Map(),_0x2c3e29=new Map(),_0x4ef1cf=new Set();let _0x4fa55c=0x0;_0x1aa8bc[_0x1eee28(0x1c0)][_0x1eee28(0x1e3)]((_0x2b4cfc,_0x22d864)=>{const _0x33d582=_0x1eee28,_0xedbde3=_0x33d582(0x159)+_0x22d864+']';if(!isRecord(_0x2b4cfc)){_0x3a9a5e['push']({'path':_0xedbde3,'message':'node\x20must\x20be\x20an\x20object.'});return;}const _0x4cdd79=_0x2b4cfc;if(typeof _0x4cdd79['id']!=='string'||!BPMN_ID_PATTERN[_0x33d582(0x1aa)](_0x4cdd79['id']))_0x3a9a5e[_0x33d582(0x1ed)]({'path':_0xedbde3+_0x33d582(0x29c),'message':_0x33d582(0x244)});else _0x273413[_0x33d582(0x1fa)](_0x4cdd79['id'])?_0x3a9a5e['push']({'path':_0xedbde3+_0x33d582(0x29c),'message':'Duplicate\x20node\x20id:\x20'+_0x4cdd79['id']+'.'}):(_0x273413[_0x33d582(0x16d)](_0x4cdd79['id'],_0x4cdd79),_0x4ef1cf[_0x33d582(0x259)](_0x4cdd79['id']));if(!NODE_TYPES[_0x33d582(0x1fa)](_0x4cdd79['type']))_0x3a9a5e[_0x33d582(0x1ed)]({'path':_0xedbde3+_0x33d582(0x166),'message':_0x33d582(0x247)+String(_0x4cdd79[_0x33d582(0x1df)])+'.'});else{if(_0x4cdd79[_0x33d582(0x1df)]===_0x33d582(0x22e))_0x729ed['push'](_0x4cdd79['id']);else _0x4cdd79[_0x33d582(0x1df)]==='END'&&_0x1036a5['push'](_0x4cdd79['id']);}_0x4cdd79[_0x33d582(0x1df)]===_0x33d582(0x291)&&(_0x4cdd79['taskMode']===undefined||_0x4cdd79[_0x33d582(0x1af)]===_0x33d582(0x291))&&(_0x4fa55c+=0x1);validateNode(_0x4cdd79,_0xedbde3,_0x3a9a5e);if(_0x4cdd79[_0x33d582(0x1df)]===_0x33d582(0x21d)){const _0x59b7d1=resolveEffectiveResultVariable(_0x4cdd79[_0x33d582(0x1e4)],![]);_0x59b7d1&&(registerResultVariableOwner(_0x2c3e29,_0x59b7d1,_0x4cdd79['id'],_0x3a9a5e),!_0x1100d9[_0x33d582(0x1fa)](_0x59b7d1)&&_0x1100d9[_0x33d582(0x16d)](_0x59b7d1,_0x4cdd79['id']));}if(_0x4cdd79[_0x33d582(0x1df)]===_0x33d582(0x291)&&isRecord(_0x4cdd79[_0x33d582(0x168)])&&_0x4cdd79[_0x33d582(0x168)][_0x33d582(0x23b)]===!![]&&_0x4cdd79[_0x33d582(0x168)][_0x33d582(0x22f)]===_0x33d582(0x1e2)){const _0x151542=resolveEffectiveResultVariable(_0x4cdd79[_0x33d582(0x168)][_0x33d582(0x1e4)],!![]);_0x151542&&registerResultVariableOwner(_0x2c3e29,_0x151542,_0x4cdd79['id']+_0x33d582(0x218),_0x3a9a5e);}});_0x729ed[_0x1eee28(0x28e)]!==0x1&&_0x3a9a5e[_0x1eee28(0x1ed)]({'path':_0x1eee28(0x2a9),'message':_0x1eee28(0x1e0)});_0x1036a5[_0x1eee28(0x28e)]===0x0&&_0x3a9a5e['push']({'path':_0x1eee28(0x2a9),'message':_0x1eee28(0x237)});const _0x77f7e8=new Map(),_0x14c30d=new Map(),_0x20577e=new Map(),_0x5f0778=new Set();_0x1aa8bc['edges'][_0x1eee28(0x1e3)]((_0xbdaa05,_0x1c5272)=>{const _0x33b3cf=_0x1eee28,_0x3d4ecd=_0x33b3cf(0x2bc)+_0x1c5272+']';if(!isRecord(_0xbdaa05)){_0x3a9a5e['push']({'path':_0x3d4ecd,'message':_0x33b3cf(0x289)});return;}const _0x132ba9=_0xbdaa05;_0x20577e[_0x33b3cf(0x16d)](_0x132ba9,_0x3d4ecd);const _0x40dc4f=resolveEdgeEndpoint(_0x132ba9[_0x33b3cf(0x20d)],_0x132ba9[_0x33b3cf(0x297)]),_0x49d8fa=resolveEdgeEndpoint(_0x132ba9[_0x33b3cf(0x1b9)],_0x132ba9[_0x33b3cf(0x156)]);if(!_0x40dc4f)_0x3a9a5e[_0x33b3cf(0x1ed)]({'path':_0x3d4ecd+'.source','message':_0x33b3cf(0x1ea)});if(!_0x49d8fa)_0x3a9a5e[_0x33b3cf(0x1ed)]({'path':_0x3d4ecd+'.target','message':_0x33b3cf(0x1cd)});_0x40dc4f&&!_0x273413[_0x33b3cf(0x1fa)](_0x40dc4f)&&_0x3a9a5e[_0x33b3cf(0x1ed)]({'path':_0x3d4ecd+_0x33b3cf(0x181),'message':_0x33b3cf(0x178)+_0x40dc4f+'.'});_0x49d8fa&&!_0x273413[_0x33b3cf(0x1fa)](_0x49d8fa)&&_0x3a9a5e['push']({'path':_0x3d4ecd+'.target','message':_0x33b3cf(0x24f)+_0x49d8fa+'.'});if(_0x132ba9['id']!==undefined){if(typeof _0x132ba9['id']!==_0x33b3cf(0x29a)||!BPMN_ID_PATTERN[_0x33b3cf(0x1aa)](_0x132ba9['id']))_0x3a9a5e[_0x33b3cf(0x1ed)]({'path':_0x3d4ecd+'.id','message':_0x33b3cf(0x201)});else{if(_0x4ef1cf['has'](_0x132ba9['id']))_0x3a9a5e[_0x33b3cf(0x1ed)]({'path':_0x3d4ecd+'.id','message':_0x33b3cf(0x1a9)+_0x132ba9['id']+'.'});else!_0x4ef1cf['has'](_0x132ba9['id'])&&_0x4ef1cf[_0x33b3cf(0x259)](_0x132ba9['id']);}}if(_0x40dc4f&&_0x49d8fa){const _0x4f8aab=_0x40dc4f+'\x00'+_0x49d8fa+'\x00'+(_0x132ba9[_0x33b3cf(0x207)]??_0x33b3cf(0x20c));_0x5f0778['has'](_0x4f8aab)?_0x3a9a5e['push']({'path':_0x3d4ecd,'message':_0x33b3cf(0x1ab)+_0x40dc4f+_0x33b3cf(0x1c3)+_0x49d8fa+'\x20('+(_0x132ba9[_0x33b3cf(0x207)]??_0x33b3cf(0x20c))+').'}):_0x5f0778['add'](_0x4f8aab);}validateEdge(_0x132ba9,_0x3d4ecd,_0x3a9a5e),_0x40dc4f&&_0x49d8fa&&(_0x77f7e8[_0x33b3cf(0x23e)](_0x40dc4f)?.[_0x33b3cf(0x1ed)](_0x132ba9)??_0x77f7e8[_0x33b3cf(0x16d)](_0x40dc4f,[_0x132ba9]),_0x14c30d[_0x33b3cf(0x23e)](_0x49d8fa)?.['push'](_0x132ba9)??_0x14c30d['set'](_0x49d8fa,[_0x132ba9]));});if(_0x729ed['length']!==0x1)return;validateGraphShape(_0x273413,_0x729ed[0x0],_0x1036a5,_0x77f7e8,_0x14c30d,_0x20577e,_0x3a9a5e),validateScriptResultReferences(_0x273413,_0x729ed[0x0],_0x77f7e8,_0x14c30d,_0x20577e,_0x1100d9,_0x3a9a5e),validateApprovalResults(_0x273413,_0x4fa55c,_0x1036a5,_0x3a9a5e);}function validateNode(_0x4a243b,_0x5931ed,_0x4b0bae){const _0xfebd41=a287_0x4050df;for(const _0x718b57 of['form',_0xfebd41(0x28f)]){Object[_0xfebd41(0x281)][_0xfebd41(0x27b)][_0xfebd41(0x15c)](_0x4a243b,_0x718b57)&&_0x4b0bae[_0xfebd41(0x1ed)]({'path':_0x5931ed+'.'+_0x718b57,'message':UNSUPPORTED_FORM_MESSAGE});}if(!NODE_TYPES['has'](_0x4a243b[_0xfebd41(0x1df)]))return;(typeof _0x4a243b['name']!=='string'||_0x4a243b[_0xfebd41(0x1ad)][_0xfebd41(0x2bf)]()==='')&&_0x4b0bae['push']({'path':_0x5931ed+_0xfebd41(0x265),'message':_0xfebd41(0x190)});_0x4a243b[_0xfebd41(0x23d)]!==undefined&&_0x4b0bae[_0xfebd41(0x1ed)]({'path':_0x5931ed+_0xfebd41(0x209),'message':'node\x20pageId\x20is\x20no\x20longer\x20supported;\x20use\x20node\x20path\x20instead.'});if(_0x4a243b[_0xfebd41(0x28a)]!==undefined){if(typeof _0x4a243b[_0xfebd41(0x28a)]!==_0xfebd41(0x29a)||_0x4a243b[_0xfebd41(0x28a)][_0xfebd41(0x2bf)]()==='')_0x4b0bae[_0xfebd41(0x1ed)]({'path':_0x5931ed+_0xfebd41(0x2a4),'message':_0xfebd41(0x26d)});else _0x4a243b['type']!==_0xfebd41(0x291)&&_0x4a243b[_0xfebd41(0x1df)]!==_0xfebd41(0x292)&&_0x4b0bae[_0xfebd41(0x1ed)]({'path':_0x5931ed+_0xfebd41(0x2a4),'message':_0xfebd41(0x2a3)});}const _0x1b397f=_0x4a243b[_0xfebd41(0x1d2)];if(!isRecord(_0x1b397f))_0x4b0bae[_0xfebd41(0x1ed)]({'path':_0x5931ed+_0xfebd41(0x1fd),'message':_0xfebd41(0x282)});else for(const _0x26c60f of['x','y']){const _0x52e647=_0x1b397f[_0x26c60f];(typeof _0x52e647!==_0xfebd41(0x1b5)||!Number['isFinite'](_0x52e647)||_0x52e647<0x0)&&_0x4b0bae[_0xfebd41(0x1ed)]({'path':_0x5931ed+_0xfebd41(0x277)+_0x26c60f,'message':_0xfebd41(0x1de)+_0x26c60f+_0xfebd41(0x160)});}if(_0x4a243b[_0xfebd41(0x1df)]===_0xfebd41(0x291)){const _0xc100cb=_0x4a243b['approvalMode']??'SINGLE',_0x4d0eef=_0x4a243b[_0xfebd41(0x1af)]??_0xfebd41(0x291);!APPROVAL_TASK_MODES[_0xfebd41(0x1fa)](_0x4d0eef)&&_0x4b0bae[_0xfebd41(0x1ed)]({'path':_0x5931ed+_0xfebd41(0x2a6),'message':_0xfebd41(0x193)+String(_0x4d0eef)+'.'});!APPROVAL_MODES[_0xfebd41(0x1fa)](_0xc100cb)&&_0x4b0bae[_0xfebd41(0x1ed)]({'path':_0x5931ed+_0xfebd41(0x18b),'message':_0xfebd41(0x264)+String(_0xc100cb)+'.'});if(!isRecord(_0x4a243b[_0xfebd41(0x211)]))_0x4b0bae['push']({'path':_0x5931ed+_0xfebd41(0x1bb),'message':'APPROVAL\x20node\x20requires\x20assignee.'});else{const _0x37cf86=_0x4a243b[_0xfebd41(0x211)][_0xfebd41(0x1d8)];_0x37cf86!=='FIXED'&&_0x37cf86!==_0xfebd41(0x1f7)&&_0x4b0bae[_0xfebd41(0x1ed)]({'path':_0x5931ed+_0xfebd41(0x15a),'message':_0xfebd41(0x1a7)});if(_0x37cf86===_0xfebd41(0x158)){const _0x594402=_0x4a243b[_0xfebd41(0x211)][_0xfebd41(0x1d4)];if(!Array[_0xfebd41(0x186)](_0x594402)||_0x594402['length']===0x0)_0x4b0bae['push']({'path':_0x5931ed+'.assignee.userIds','message':'FIXED\x20assignee\x20requires\x20userIds.'});else{const _0x1401f6=_0x594402[_0xfebd41(0x1b8)](_0x9f385b=>!isValidUserId(_0x9f385b));_0x1401f6>=0x0&&_0x4b0bae[_0xfebd41(0x1ed)]({'path':_0x5931ed+_0xfebd41(0x199)+_0x1401f6+']','message':_0xfebd41(0x15d)});const _0x9a0f2a=new Set(_0x594402[_0xfebd41(0x20b)](isValidUserId)['map'](_0x402237=>String(_0x402237)[_0xfebd41(0x2bf)]()));_0xc100cb===_0xfebd41(0x26c)&&_0x9a0f2a[_0xfebd41(0x1d5)]>0x1&&_0x4b0bae[_0xfebd41(0x1ed)]({'path':_0x5931ed+_0xfebd41(0x182),'message':_0xfebd41(0x2bb)});}}if(_0x37cf86===_0xfebd41(0x1f7)){const _0x5dc415=_0x4a243b[_0xfebd41(0x211)][_0xfebd41(0x24c)],_0x5316a9=typeof _0x5dc415==='number'||typeof _0x5dc415===_0xfebd41(0x29a)?Number(String(_0x5dc415)[_0xfebd41(0x2bf)]()):Number[_0xfebd41(0x24b)];(!Number[_0xfebd41(0x1ca)](_0x5316a9)||_0x5316a9<=0x0)&&_0x4b0bae[_0xfebd41(0x1ed)]({'path':_0x5931ed+_0xfebd41(0x27c),'message':_0xfebd41(0x1d3)});}}if(_0x4a243b[_0xfebd41(0x1f0)]!==undefined){if(!isRecord(_0x4a243b['transferCandidates']))_0x4b0bae[_0xfebd41(0x1ed)]({'path':_0x5931ed+_0xfebd41(0x20e),'message':_0xfebd41(0x1b6)});else{if(_0x4a243b[_0xfebd41(0x1f0)][_0xfebd41(0x1d8)]!=='FIXED')_0x4b0bae[_0xfebd41(0x1ed)]({'path':_0x5931ed+_0xfebd41(0x17e),'message':_0xfebd41(0x1ff)});else{const _0x31dfc4=_0x4a243b[_0xfebd41(0x1f0)][_0xfebd41(0x1d4)];if(!Array[_0xfebd41(0x186)](_0x31dfc4)||_0x31dfc4[_0xfebd41(0x28e)]===0x0)_0x4b0bae[_0xfebd41(0x1ed)]({'path':_0x5931ed+_0xfebd41(0x2ba),'message':_0xfebd41(0x23f)});else{const _0x4d0008=_0x31dfc4[_0xfebd41(0x1b8)](_0x43d070=>!isValidUserId(_0x43d070));_0x4d0008>=0x0&&_0x4b0bae['push']({'path':_0x5931ed+_0xfebd41(0x287)+_0x4d0008+']','message':_0xfebd41(0x29b)});}}}}}_0x4a243b[_0xfebd41(0x198)]!==undefined&&typeof _0x4a243b['sequential']!==_0xfebd41(0x22a)&&_0x4b0bae[_0xfebd41(0x1ed)]({'path':_0x5931ed+_0xfebd41(0x258),'message':_0xfebd41(0x1b2)});if(_0x4a243b[_0xfebd41(0x1df)]===_0xfebd41(0x21d)){(typeof _0x4a243b[_0xfebd41(0x1ce)]!==_0xfebd41(0x29a)||_0x4a243b[_0xfebd41(0x1ce)]['trim']()==='')&&_0x4b0bae[_0xfebd41(0x1ed)]({'path':_0x5931ed+_0xfebd41(0x2b9),'message':_0xfebd41(0x236)});if(_0x4a243b['resultVariable']!==undefined){if(typeof _0x4a243b[_0xfebd41(0x1e4)]!==_0xfebd41(0x29a)||!VARIABLE_PATTERN[_0xfebd41(0x1aa)](_0x4a243b['resultVariable']))_0x4b0bae[_0xfebd41(0x1ed)]({'path':_0x5931ed+_0xfebd41(0x153),'message':_0xfebd41(0x29f)});else(RESERVED_RESULT_VARIABLES[_0xfebd41(0x1fa)](_0x4a243b['resultVariable'])||_0x4a243b['resultVariable']['startsWith']('approval_sys_'))&&_0x4b0bae[_0xfebd41(0x1ed)]({'path':_0x5931ed+'.resultVariable','message':_0xfebd41(0x15f)+_0x4a243b['resultVariable']+'.'});}}validateAsyncExecution(_0x4a243b,_0x5931ed,_0x4b0bae),validateApprovalTimeout(_0x4a243b,_0x5931ed,_0x4b0bae),validateCcConfig(_0x4a243b,_0x5931ed,_0x4b0bae),_0x4a243b['type']==='NOTIFICATION'&&validateNotificationConfig(_0x4a243b[_0xfebd41(0x250)],_0x5931ed+_0xfebd41(0x26b),_0x4b0bae);}function validateAsyncExecution(_0x562c13,_0x324735,_0x4bcf8b){const _0x2400e9=a287_0x4050df;if(_0x562c13[_0x2400e9(0x164)]===undefined)return;if(!isRecord(_0x562c13[_0x2400e9(0x164)])){_0x4bcf8b[_0x2400e9(0x1ed)]({'path':_0x324735+_0x2400e9(0x235),'message':_0x2400e9(0x1b3)});return;}if(_0x562c13[_0x2400e9(0x164)][_0x2400e9(0x23b)]!==undefined&&typeof _0x562c13[_0x2400e9(0x164)][_0x2400e9(0x23b)]!==_0x2400e9(0x22a)){_0x4bcf8b['push']({'path':_0x324735+_0x2400e9(0x219),'message':_0x2400e9(0x296)});return;}if(_0x562c13[_0x2400e9(0x164)][_0x2400e9(0x23b)]!==!![])return;_0x562c13['type']!==_0x2400e9(0x21d)&&_0x4bcf8b['push']({'path':_0x324735+'.async','message':_0x2400e9(0x239)});const _0x19b9df=_0x562c13[_0x2400e9(0x164)][_0x2400e9(0x270)]??0x3;(!Number['isInteger'](_0x19b9df)||_0x19b9df<0x1||_0x19b9df>MAX_ASYNC_RETRY_COUNT)&&_0x4bcf8b[_0x2400e9(0x1ed)]({'path':_0x324735+_0x2400e9(0x24d),'message':_0x2400e9(0x17c)+MAX_ASYNC_RETRY_COUNT+'.'}),_0x562c13['async'][_0x2400e9(0x170)]!==undefined&&validateTimeAmount(_0x562c13['async']['retryInterval'],_0x324735+_0x2400e9(0x269),_0x4bcf8b);}function validateApprovalTimeout(_0x356be2,_0x296576,_0x2a7f43){const _0x25860f=a287_0x4050df;if(_0x356be2[_0x25860f(0x168)]===undefined)return;if(!isRecord(_0x356be2['timeout'])){_0x2a7f43[_0x25860f(0x1ed)]({'path':_0x296576+'.timeout','message':_0x25860f(0x1c4)});return;}if(_0x356be2[_0x25860f(0x168)][_0x25860f(0x23b)]!==undefined&&typeof _0x356be2[_0x25860f(0x168)][_0x25860f(0x23b)]!=='boolean'){_0x2a7f43[_0x25860f(0x1ed)]({'path':_0x296576+_0x25860f(0x266),'message':_0x25860f(0x204)});return;}if(_0x356be2[_0x25860f(0x168)][_0x25860f(0x23b)]!==!![])return;if(_0x356be2[_0x25860f(0x168)][_0x25860f(0x254)]!==undefined&&typeof _0x356be2[_0x25860f(0x168)][_0x25860f(0x254)]!=='boolean'){_0x2a7f43[_0x25860f(0x1ed)]({'path':_0x296576+'.timeout.interrupting','message':_0x25860f(0x1da)});return;}_0x356be2[_0x25860f(0x1df)]!==_0x25860f(0x291)&&_0x2a7f43['push']({'path':_0x296576+_0x25860f(0x218),'message':'timeout\x20is\x20only\x20supported\x20by\x20APPROVAL\x20node.'});validateTimeAmount(_0x356be2[_0x25860f(0x168)]['duration'],_0x296576+_0x25860f(0x1a8),_0x2a7f43);const _0x543d87=_0x356be2[_0x25860f(0x168)]['action'];if(!APPROVAL_TIMEOUT_ACTIONS[_0x25860f(0x1fa)](_0x543d87)){_0x2a7f43[_0x25860f(0x1ed)]({'path':_0x296576+_0x25860f(0x191),'message':_0x25860f(0x27a)});return;}(_0x356be2['taskMode']??'APPROVAL')===_0x25860f(0x184)&&_0x543d87!==_0x25860f(0x1e2)&&_0x2a7f43['push']({'path':_0x296576+_0x25860f(0x191),'message':_0x25860f(0x25a)});const _0x46d31e=_0x356be2[_0x25860f(0x168)]['interrupting']??_0x543d87!==_0x25860f(0x1e2);if(_0x543d87===_0x25860f(0x1e2))_0x46d31e&&_0x2a7f43[_0x25860f(0x1ed)]({'path':_0x296576+'.timeout.interrupting','message':'EXECUTE_BFF\x20timeout\x20must\x20not\x20interrupt\x20the\x20approval\x20task.'}),(typeof _0x356be2[_0x25860f(0x168)][_0x25860f(0x1ce)]!==_0x25860f(0x29a)||_0x356be2[_0x25860f(0x168)]['scriptName'][_0x25860f(0x2bf)]()==='')&&_0x2a7f43['push']({'path':_0x296576+_0x25860f(0x256),'message':'EXECUTE_BFF\x20timeout\x20requires\x20scriptName.'}),validateOptionalResultVariable(_0x356be2[_0x25860f(0x168)][_0x25860f(0x1e4)],_0x296576+_0x25860f(0x2b5),_0x2a7f43);else!_0x46d31e&&_0x2a7f43[_0x25860f(0x1ed)]({'path':_0x296576+_0x25860f(0x161),'message':_0x543d87+_0x25860f(0x22b)});}function validateTimeAmount(_0x3c5083,_0x22b165,_0x54d0d4){const _0x229d1b=a287_0x4050df;if(!isRecord(_0x3c5083)){_0x54d0d4[_0x229d1b(0x1ed)]({'path':_0x22b165,'message':_0x229d1b(0x1a5)});return;}(!Number[_0x229d1b(0x274)](_0x3c5083[_0x229d1b(0x1b0)])||Number(_0x3c5083[_0x229d1b(0x1b0)])<=0x0)&&_0x54d0d4[_0x229d1b(0x1ed)]({'path':_0x22b165+'.value','message':_0x229d1b(0x278)}),!FLOW_TIME_UNITS[_0x229d1b(0x1fa)](_0x3c5083[_0x229d1b(0x1bd)])&&_0x54d0d4[_0x229d1b(0x1ed)]({'path':_0x22b165+_0x229d1b(0x208),'message':_0x229d1b(0x233)});}function validateOptionalResultVariable(_0x560631,_0xcd1311,_0x18c66b){const _0x37a99b=a287_0x4050df;if(_0x560631===undefined||_0x560631===null||_0x560631==='')return;if(typeof _0x560631!=='string'||!VARIABLE_PATTERN[_0x37a99b(0x1aa)](_0x560631))_0x18c66b[_0x37a99b(0x1ed)]({'path':_0xcd1311,'message':_0x37a99b(0x29f)});else(RESERVED_RESULT_VARIABLES[_0x37a99b(0x1fa)](_0x560631)||_0x560631['startsWith'](_0x37a99b(0x220)))&&_0x18c66b['push']({'path':_0xcd1311,'message':_0x37a99b(0x15f)+_0x560631+'.'});}function validateCcConfig(_0x1e001f,_0x11d8be,_0x308dd0){const _0x1c44c3=a287_0x4050df;if(_0x1e001f['cc']===undefined)return;if(!isRecord(_0x1e001f['cc'])){_0x308dd0[_0x1c44c3(0x1ed)]({'path':_0x11d8be+_0x1c44c3(0x299),'message':_0x1c44c3(0x2be)});return;}_0x1e001f[_0x1c44c3(0x1df)]!==_0x1c44c3(0x292)&&_0x1e001f[_0x1c44c3(0x1df)]!==_0x1c44c3(0x291)&&_0x308dd0[_0x1c44c3(0x1ed)]({'path':_0x11d8be+_0x1c44c3(0x299),'message':_0x1c44c3(0x1ef)});Object[_0x1c44c3(0x281)]['hasOwnProperty']['call'](_0x1e001f['cc'],'readSources')&&_0x308dd0['push']({'path':_0x11d8be+_0x1c44c3(0x1e7),'message':UNSUPPORTED_FORM_MESSAGE});const _0x2d9631=_0x1e001f['cc'][_0x1c44c3(0x1e6)];if(!Array['isArray'](_0x2d9631)||_0x2d9631['length']===0x0)_0x308dd0[_0x1c44c3(0x1ed)]({'path':_0x11d8be+_0x1c44c3(0x188),'message':'cc.recipientUserIds\x20must\x20be\x20a\x20non-empty\x20array.'});else{_0x2d9631[_0x1c44c3(0x28e)]>MAX_CC_RECIPIENTS&&_0x308dd0['push']({'path':_0x11d8be+_0x1c44c3(0x188),'message':_0x1c44c3(0x2ab)+MAX_CC_RECIPIENTS+_0x1c44c3(0x189)});const _0xbabcea=new Set();_0x2d9631[_0x1c44c3(0x1e3)]((_0x9f8311,_0x135d93)=>{const _0x4abd7b=_0x1c44c3;if(typeof _0x9f8311!==_0x4abd7b(0x29a)||_0x9f8311['trim']()==='')_0x308dd0[_0x4abd7b(0x1ed)]({'path':_0x11d8be+_0x4abd7b(0x1c7)+_0x135d93+']','message':_0x4abd7b(0x21b)});else _0xbabcea[_0x4abd7b(0x1fa)](_0x9f8311['trim']())?_0x308dd0[_0x4abd7b(0x1ed)]({'path':_0x11d8be+'.cc.recipientUserIds['+_0x135d93+']','message':_0x4abd7b(0x157)+_0x9f8311[_0x4abd7b(0x2bf)]()+'.'}):_0xbabcea['add'](_0x9f8311[_0x4abd7b(0x2bf)]());});}validateStringArray(_0x1e001f['cc'][_0x1c44c3(0x1c1)],_0x11d8be+_0x1c44c3(0x175),_0x308dd0);}function validateStringArray(_0x7af822,_0x16fc1d,_0x5db98e){const _0x11165d=a287_0x4050df;if(_0x7af822===undefined)return;if(!Array[_0x11165d(0x186)](_0x7af822)){_0x5db98e[_0x11165d(0x1ed)]({'path':_0x16fc1d,'message':_0x11165d(0x210)});return;}const _0x483027=new Set();_0x7af822[_0x11165d(0x1e3)]((_0x364fcc,_0x405a18)=>{const _0x4281ec=_0x11165d;if(typeof _0x364fcc!==_0x4281ec(0x29a)||_0x364fcc['trim']()==='')_0x5db98e[_0x4281ec(0x1ed)]({'path':_0x16fc1d+'['+_0x405a18+']','message':_0x4281ec(0x19b)});else _0x483027[_0x4281ec(0x1fa)](_0x364fcc[_0x4281ec(0x2bf)]())?_0x5db98e[_0x4281ec(0x1ed)]({'path':_0x16fc1d+'['+_0x405a18+']','message':_0x4281ec(0x18e)+_0x364fcc['trim']()+'.'}):_0x483027[_0x4281ec(0x259)](_0x364fcc[_0x4281ec(0x2bf)]());});}function validateNotificationConfig(_0x27ceeb,_0x1db262,_0x496180){const _0x471568=a287_0x4050df;if(!isRecord(_0x27ceeb)){_0x496180[_0x471568(0x1ed)]({'path':_0x1db262,'message':_0x471568(0x1f1)});return;}if(_0x27ceeb[_0x471568(0x196)]!==undefined&&_0x27ceeb['version']!==null){if(typeof _0x27ceeb[_0x471568(0x196)]!==_0x471568(0x29a))_0x496180[_0x471568(0x1ed)]({'path':_0x1db262+_0x471568(0x17f),'message':_0x471568(0x185)});else _0x27ceeb[_0x471568(0x196)][_0x471568(0x2bf)]()&&_0x27ceeb['version'][_0x471568(0x2bf)]()!=='v1'&&_0x496180[_0x471568(0x1ed)]({'path':_0x1db262+'.version','message':'Unsupported\x20notification\x20version:\x20'+_0x27ceeb[_0x471568(0x196)]+'.'});}const _0x4cf92b=requireNotificationString(_0x27ceeb[_0x471568(0x2a0)],_0x1db262+_0x471568(0x26a),_0x471568(0x213),_0x496180);_0x4cf92b?.[_0x471568(0x21c)]('${')&&_0x496180[_0x471568(0x1ed)]({'path':_0x1db262+_0x471568(0x26a),'message':_0x471568(0x227)});if(_0x27ceeb[_0x471568(0x1f5)]!==undefined&&_0x27ceeb['failurePolicy']!==null){if(typeof _0x27ceeb['failurePolicy']!=='string')_0x496180['push']({'path':_0x1db262+'.failurePolicy','message':_0x471568(0x26f)});else!NOTIFICATION_FAILURE_POLICIES[_0x471568(0x1fa)](_0x27ceeb[_0x471568(0x1f5)][_0x471568(0x2bf)]()[_0x471568(0x2a2)]())&&_0x496180[_0x471568(0x1ed)]({'path':_0x1db262+'.failurePolicy','message':'failurePolicy\x20must\x20be\x20CONTINUE\x20or\x20FAIL.'});}!isRecord(_0x27ceeb['template'])?_0x496180[_0x471568(0x1ed)]({'path':_0x1db262+_0x471568(0x231),'message':_0x471568(0x293)}):validateNotificationTemplate(_0x27ceeb[_0x471568(0x165)],_0x1db262+'.template',_0x496180),validateNotificationRecipients(_0x27ceeb[_0x471568(0x283)],_0x1db262+_0x471568(0x214),_0x496180);}function validateNotificationTemplate(_0xb706f9,_0x3a3452,_0x765113){const _0x4e1bad=a287_0x4050df;for(const _0x1fe815 of[_0x4e1bad(0x1c9),_0x4e1bad(0x216)]){const _0x53d795=requireNotificationString(_0xb706f9[_0x1fe815],_0x3a3452+'.'+_0x1fe815,_0x4e1bad(0x17d)+_0x1fe815+_0x4e1bad(0x28b),_0x765113);if(_0x53d795)validateNotificationPlaceholders(_0x53d795,_0x3a3452+'.'+_0x1fe815,_0x765113);}_0xb706f9[_0x4e1bad(0x285)]!==undefined&&_0xb706f9['detailMarkdown']!==null&&(typeof _0xb706f9[_0x4e1bad(0x285)]!=='string'?_0x765113[_0x4e1bad(0x1ed)]({'path':_0x3a3452+'.detailMarkdown','message':_0x4e1bad(0x162)}):validateNotificationPlaceholders(_0xb706f9['detailMarkdown'],_0x3a3452+_0x4e1bad(0x261),_0x765113)),validateNotificationFacts(_0xb706f9[_0x4e1bad(0x2b0)],_0x3a3452+_0x4e1bad(0x1a3),_0x765113),validateNotificationActions(_0xb706f9[_0x4e1bad(0x1eb)],_0x3a3452+_0x4e1bad(0x21f),_0x765113);}function validateNotificationFacts(_0x117196,_0x1473fd,_0xa14372){const _0x127a92=a287_0x4050df;if(_0x117196===undefined||_0x117196===null)return;if(!Array[_0x127a92(0x186)](_0x117196)){_0xa14372[_0x127a92(0x1ed)]({'path':_0x1473fd,'message':'Notification\x20template.facts\x20must\x20be\x20an\x20array.'});return;}_0x117196[_0x127a92(0x28e)]>MAX_NOTIFICATION_FACTS&&_0xa14372['push']({'path':_0x1473fd,'message':_0x127a92(0x212)+MAX_NOTIFICATION_FACTS+'\x20facts.'}),_0x117196[_0x127a92(0x1e3)]((_0x5da81,_0x142f95)=>{const _0x16bdf2=_0x127a92,_0x1f1402=_0x1473fd+'['+_0x142f95+']';if(!isRecord(_0x5da81)){_0xa14372[_0x16bdf2(0x1ed)]({'path':_0x1f1402,'message':_0x16bdf2(0x1a0)});return;}for(const _0x243124 of[_0x16bdf2(0x255),_0x16bdf2(0x1b0)]){const _0x5061db=requireNotificationString(_0x5da81[_0x243124],_0x1f1402+'.'+_0x243124,'Notification\x20fact.'+_0x243124+_0x16bdf2(0x28b),_0xa14372);_0x5061db&&validateNotificationPlaceholders(_0x5061db,_0x1f1402+'.'+_0x243124,_0xa14372);}});}function validateNotificationActions(_0x17b4e2,_0x58bbb6,_0x62ba45){const _0x3315e2=a287_0x4050df;if(_0x17b4e2===undefined||_0x17b4e2===null)return;if(!Array[_0x3315e2(0x186)](_0x17b4e2)){_0x62ba45['push']({'path':_0x58bbb6,'message':_0x3315e2(0x2b1)});return;}_0x17b4e2['length']>MAX_NOTIFICATION_ACTIONS&&_0x62ba45['push']({'path':_0x58bbb6,'message':_0x3315e2(0x212)+MAX_NOTIFICATION_ACTIONS+_0x3315e2(0x26e)}),_0x17b4e2[_0x3315e2(0x1e3)]((_0x57c4d9,_0x14f4b6)=>{const _0x450bc2=_0x3315e2,_0xaab032=_0x58bbb6+'['+_0x14f4b6+']';if(!isRecord(_0x57c4d9)){_0x62ba45[_0x450bc2(0x1ed)]({'path':_0xaab032,'message':'Notification\x20action\x20must\x20be\x20an\x20object.'});return;}const _0x2ed115=requireNotificationString(_0x57c4d9[_0x450bc2(0x288)],_0xaab032+_0x450bc2(0x286),_0x450bc2(0x253),_0x62ba45);if(_0x2ed115)validateNotificationPlaceholders(_0x2ed115,_0xaab032+_0x450bc2(0x286),_0x62ba45);const _0x138951=requireNotificationString(_0x57c4d9[_0x450bc2(0x16b)],_0xaab032+_0x450bc2(0x19e),'Notification\x20action.url\x20is\x20required.',_0x62ba45);if(!_0x138951)return;validateNotificationPlaceholders(_0x138951,_0xaab032+_0x450bc2(0x19e),_0x62ba45),!/^https?:\/\//i['test'](_0x138951)&&!NOTIFICATION_ACTION_URL_PLACEHOLDER_PATTERN[_0x450bc2(0x1aa)](_0x138951)&&_0x62ba45['push']({'path':_0xaab032+_0x450bc2(0x19e),'message':_0x450bc2(0x155)});});}function validateNotificationRecipients(_0x5a2b26,_0x4f7f4c,_0x3561de){const _0xb24967=a287_0x4050df;if(_0x5a2b26===undefined||_0x5a2b26===null)return;if(!Array['isArray'](_0x5a2b26)){_0x3561de[_0xb24967(0x1ed)]({'path':_0x4f7f4c,'message':_0xb24967(0x29d)});return;}let _0x5025c4=![];_0x5a2b26['forEach']((_0x52ff25,_0x1d15b2)=>{const _0x3585d3=_0xb24967,_0x548ac6=_0x4f7f4c+'['+_0x1d15b2+']';if(!isRecord(_0x52ff25)){_0x3561de[_0x3585d3(0x1ed)]({'path':_0x548ac6,'message':_0x3585d3(0x151)});return;}const _0x53d34a=requireNotificationString(_0x52ff25['type'],_0x548ac6+_0x3585d3(0x166),_0x3585d3(0x1c5),_0x3561de);_0x53d34a&&!NOTIFICATION_RECIPIENT_TYPES['has'](_0x53d34a[_0x3585d3(0x2a2)]())&&_0x3561de[_0x3585d3(0x1ed)]({'path':_0x548ac6+_0x3585d3(0x166),'message':_0x3585d3(0x192)});let _0x1992be='TO';_0x52ff25['role']!==undefined&&_0x52ff25['role']!==null&&(typeof _0x52ff25[_0x3585d3(0x1a1)]!==_0x3585d3(0x29a)?(_0x3561de[_0x3585d3(0x1ed)]({'path':_0x548ac6+_0x3585d3(0x173),'message':_0x3585d3(0x2af)}),_0x1992be=''):(_0x1992be=_0x52ff25['role'][_0x3585d3(0x2bf)]()[_0x3585d3(0x2a2)](),!NOTIFICATION_RECIPIENT_ROLES[_0x3585d3(0x1fa)](_0x1992be)&&_0x3561de[_0x3585d3(0x1ed)]({'path':_0x548ac6+_0x3585d3(0x173),'message':_0x3585d3(0x1e9)})));if(_0x1992be==='TO')_0x5025c4=!![];const _0x559322=requireNotificationString(_0x52ff25['value'],_0x548ac6+_0x3585d3(0x1f2),_0x3585d3(0x23a),_0x3561de);_0x559322&&validateNotificationPlaceholders(_0x559322,_0x548ac6+_0x3585d3(0x1f2),_0x3561de);}),_0x5a2b26[_0xb24967(0x28e)]>0x0&&!_0x5025c4&&_0x3561de['push']({'path':_0x4f7f4c,'message':'Explicit\x20notification\x20recipients\x20require\x20at\x20least\x20one\x20TO.'});}function requireNotificationString(_0x18513b,_0x25c1fe,_0x233a8d,_0x5d04b7){const _0x34acda=a287_0x4050df;if(typeof _0x18513b!==_0x34acda(0x29a)||_0x18513b[_0x34acda(0x2bf)]()==='')return _0x5d04b7['push']({'path':_0x25c1fe,'message':_0x233a8d}),undefined;return _0x18513b['trim']();}function validateNotificationPlaceholders(_0x266e97,_0x233c94,_0x1433f8){const _0x2afd06=a287_0x4050df;for(const _0x7185cd of _0x266e97[_0x2afd06(0x25b)](NOTIFICATION_PLACEHOLDER_PATTERN)){const _0xcbd433=_0x7185cd[0x1]?.[_0x2afd06(0x2bf)]()??'',_0x1f2bc4=_0xcbd433[_0x2afd06(0x257)]('.'),_0x582c46=_0x1f2bc4>=0x0?_0xcbd433[_0x2afd06(0x246)](0x0,_0x1f2bc4):_0xcbd433,_0x2b2559=_0x1f2bc4>=0x0?_0xcbd433[_0x2afd06(0x246)](_0x1f2bc4+0x1)[_0x2afd06(0x2bf)]():'';(![_0x2afd06(0x2a5),'context',_0x2afd06(0x1e5)][_0x2afd06(0x21c)](_0x582c46)||_0x2b2559==='')&&_0x1433f8[_0x2afd06(0x1ed)]({'path':_0x233c94,'message':'Unsupported\x20notification\x20placeholder:\x20'+_0x7185cd[0x0]+'.'});}_0x266e97[_0x2afd06(0x2a7)](NOTIFICATION_PLACEHOLDER_PATTERN,'')[_0x2afd06(0x21c)]('${')&&_0x1433f8['push']({'path':_0x233c94,'message':'Notification\x20text\x20contains\x20a\x20malformed\x20placeholder.'});}function validateEdge(_0x476416,_0x543774,_0x1a8787){const _0x244c89=a287_0x4050df;_0x476416['name']!==undefined&&typeof _0x476416[_0x244c89(0x1ad)]!=='string'&&_0x1a8787['push']({'path':_0x543774+_0x244c89(0x265),'message':'edge\x20name\x20must\x20be\x20a\x20string.'}),_0x476416[_0x244c89(0x1f8)]!==undefined&&typeof _0x476416['defaultFlow']!==_0x244c89(0x22a)&&_0x1a8787[_0x244c89(0x1ed)]({'path':_0x543774+_0x244c89(0x15b),'message':'defaultFlow\x20must\x20be\x20a\x20boolean.'}),_0x476416[_0x244c89(0x2b8)]!==undefined&&(!Array[_0x244c89(0x186)](_0x476416[_0x244c89(0x2b8)])?_0x1a8787[_0x244c89(0x1ed)]({'path':_0x543774+_0x244c89(0x2b7),'message':_0x244c89(0x18c)}):_0x476416[_0x244c89(0x2b8)]['forEach']((_0x38ef33,_0x5f475e)=>{const _0x44682d=_0x244c89;if(!isRecord(_0x38ef33)){_0x1a8787[_0x44682d(0x1ed)]({'path':_0x543774+_0x44682d(0x240)+_0x5f475e+']','message':_0x44682d(0x19a)});return;}for(const _0xcdbae of['x','y']){const _0x1cc917=_0x38ef33[_0xcdbae];(typeof _0x1cc917!==_0x44682d(0x1b5)||!Number['isFinite'](_0x1cc917))&&_0x1a8787['push']({'path':_0x543774+_0x44682d(0x240)+_0x5f475e+'].'+_0xcdbae,'message':_0x44682d(0x2b6)+_0xcdbae+_0x44682d(0x1dd)});}})),_0x476416['conditionType']!==undefined&&!CONDITION_TYPES[_0x244c89(0x1fa)](_0x476416[_0x244c89(0x207)])&&_0x1a8787[_0x244c89(0x1ed)]({'path':_0x543774+'.conditionType','message':_0x244c89(0x18d)+String(_0x476416[_0x244c89(0x207)])+'.'}),_0x476416[_0x244c89(0x207)]===_0x244c89(0x284)&&(typeof _0x476416['expression']!==_0x244c89(0x29a)||_0x476416['expression'][_0x244c89(0x2bf)]()==='')&&_0x1a8787[_0x244c89(0x1ed)]({'path':_0x543774+'.expression','message':_0x244c89(0x276)}),_0x476416[_0x244c89(0x1f8)]===!![]&&_0x476416[_0x244c89(0x207)]!=='ALWAYS'&&_0x1a8787[_0x244c89(0x1ed)]({'path':_0x543774+_0x244c89(0x15b),'message':_0x244c89(0x2b2)}),_0x476416['defaultFlow']===!![]&&typeof _0x476416[_0x244c89(0x1be)]==='string'&&_0x476416[_0x244c89(0x1be)][_0x244c89(0x2bf)]()!==''&&_0x1a8787[_0x244c89(0x1ed)]({'path':_0x543774+_0x244c89(0x290),'message':_0x244c89(0x194)});}function validateGraphShape(_0x4815c7,_0x169d8f,_0x1fc7ba,_0x29a3f6,_0x12eb4d,_0x1dc437,_0x544ed7){const _0x490976=a287_0x4050df;for(const [_0x27ded6,_0x5d3aa8]of _0x4815c7){const _0x1c6652=_0x12eb4d['get'](_0x27ded6)??[],_0x5ab833=_0x29a3f6[_0x490976(0x23e)](_0x27ded6)??[];_0x5d3aa8['type']!=='START'&&_0x1c6652['length']===0x0&&_0x544ed7[_0x490976(0x1ed)]({'path':'flowJson.nodes.'+_0x27ded6,'message':_0x490976(0x280)});_0x5d3aa8[_0x490976(0x1df)]!==_0x490976(0x292)&&_0x5ab833[_0x490976(0x28e)]===0x0&&_0x544ed7[_0x490976(0x1ed)]({'path':'flowJson.nodes.'+_0x27ded6,'message':_0x490976(0x172)});_0x5d3aa8[_0x490976(0x1df)]===_0x490976(0x22e)&&_0x1c6652[_0x490976(0x28e)]>0x0&&_0x544ed7[_0x490976(0x1ed)]({'path':_0x490976(0x221)+_0x27ded6,'message':_0x490976(0x222)});_0x5d3aa8[_0x490976(0x1df)]==='END'&&_0x5ab833[_0x490976(0x28e)]>0x0&&_0x544ed7[_0x490976(0x1ed)]({'path':'flowJson.nodes.'+_0x27ded6,'message':_0x490976(0x1f6)});if(_0x5d3aa8[_0x490976(0x1df)]===_0x490976(0x1bc)){_0x5ab833[_0x490976(0x28e)]<0x2&&_0x544ed7['push']({'path':'flowJson.nodes.'+_0x27ded6,'message':_0x490976(0x16c)});const _0x463ab5=_0x5ab833[_0x490976(0x20b)](_0x2f790f=>_0x2f790f[_0x490976(0x1f8)]===!![]);_0x463ab5[_0x490976(0x28e)]!==0x1&&_0x544ed7[_0x490976(0x1ed)]({'path':_0x490976(0x221)+_0x27ded6,'message':_0x490976(0x1d0)});if(_0x463ab5['length']===0x1){const _0x173d33=_0x463ab5[0x0],_0x177b1a=_0x1dc437[_0x490976(0x23e)](_0x173d33)??_0x490976(0x28c);_0x173d33[_0x490976(0x207)]!=='ALWAYS'&&_0x544ed7[_0x490976(0x1ed)]({'path':_0x177b1a+_0x490976(0x23c),'message':_0x490976(0x25f)});_0x173d33[_0x490976(0x1be)]!==undefined&&_0x544ed7[_0x490976(0x1ed)]({'path':_0x177b1a+'.expression','message':_0x490976(0x169)});for(const _0x244119 of _0x5ab833){if(_0x244119===_0x173d33)continue;const _0x4277ca=_0x1dc437[_0x490976(0x23e)](_0x244119)??'flowJson.edges';if(_0x244119[_0x490976(0x207)]!=='EXPRESSION')_0x544ed7[_0x490976(0x1ed)]({'path':_0x4277ca+_0x490976(0x23c),'message':_0x490976(0x24e)});else(typeof _0x244119[_0x490976(0x1be)]!==_0x490976(0x29a)||_0x244119['expression'][_0x490976(0x2bf)]()==='')&&_0x544ed7['push']({'path':_0x4277ca+_0x490976(0x290),'message':_0x490976(0x1fe)});}}}if(_0x5d3aa8['type']==='APPROVAL'&&(_0x5d3aa8['taskMode']??_0x490976(0x291))===_0x490976(0x184)){if(_0x5ab833[_0x490976(0x28e)]!==0x1)_0x544ed7[_0x490976(0x1ed)]({'path':_0x490976(0x221)+_0x27ded6,'message':_0x490976(0x17b)});else{const _0x4f58ec=_0x5ab833[0x0];((_0x4f58ec[_0x490976(0x207)]??_0x490976(0x20c))!==_0x490976(0x20c)||_0x4f58ec['defaultFlow']===!![]||typeof _0x4f58ec[_0x490976(0x1be)]==='string'&&_0x4f58ec['expression']['trim']()!=='')&&_0x544ed7['push']({'path':_0x1dc437['get'](_0x4f58ec)??_0x490976(0x28c),'message':_0x490976(0x25c)});}}else{if(_0x5d3aa8['type']===_0x490976(0x291)){const _0x2162d1=_0x5ab833['map'](_0x3845e2=>_0x3845e2['conditionType']??'ALWAYS'),_0x3664fa=_0x2162d1['filter'](_0x1e587f=>_0x1e587f!==_0x490976(0x241)&&_0x1e587f!==_0x490976(0x295));_0x3664fa[_0x490976(0x28e)]>0x0&&_0x544ed7['push']({'path':_0x490976(0x221)+_0x27ded6,'message':'APPROVAL\x20node\x20outgoing\x20edges\x20must\x20use\x20APPROVED\x20or\x20REJECTED.'}),_0x2162d1[_0x490976(0x20b)](_0x1de8b5=>_0x1de8b5===_0x490976(0x241))[_0x490976(0x28e)]!==0x1&&_0x544ed7[_0x490976(0x1ed)]({'path':_0x490976(0x221)+_0x27ded6,'message':'APPROVAL\x20node\x20requires\x20exactly\x20one\x20APPROVED\x20outgoing\x20edge.'}),_0x2162d1[_0x490976(0x20b)](_0x52d174=>_0x52d174==='REJECTED')[_0x490976(0x28e)]!==0x1&&_0x544ed7[_0x490976(0x1ed)]({'path':_0x490976(0x221)+_0x27ded6,'message':_0x490976(0x251)}),_0x5ab833[_0x490976(0x174)](_0x12ab41=>_0x12ab41[_0x490976(0x1f8)]===!![])&&_0x544ed7[_0x490976(0x1ed)]({'path':_0x490976(0x221)+_0x27ded6,'message':'APPROVAL\x20task\x20decision\x20edges\x20must\x20not\x20be\x20default\x20flows.'});}}}const _0x2f75c3=new Set(),_0x1b929d=_0xc02850=>{const _0x5766b9=_0x490976;if(_0x2f75c3[_0x5766b9(0x1fa)](_0xc02850))return;_0x2f75c3[_0x5766b9(0x259)](_0xc02850);for(const _0x2ca981 of _0x29a3f6['get'](_0xc02850)??[]){const _0x2555dc=resolveEdgeEndpoint(_0x2ca981[_0x5766b9(0x1b9)],_0x2ca981['targetNodeId']);if(_0x2555dc&&_0x4815c7[_0x5766b9(0x1fa)](_0x2555dc))_0x1b929d(_0x2555dc);}};_0x1b929d(_0x169d8f);for(const _0x1f6c1c of _0x4815c7[_0x490976(0x19f)]()){!_0x2f75c3[_0x490976(0x1fa)](_0x1f6c1c)&&_0x544ed7[_0x490976(0x1ed)]({'path':'flowJson.nodes.'+_0x1f6c1c,'message':_0x490976(0x27e)});}const _0x1eb6f1=_0x1fc7ba[_0x490976(0x174)](_0x4d4512=>_0x2f75c3[_0x490976(0x1fa)](_0x4d4512));if(!_0x1eb6f1){_0x544ed7[_0x490976(0x1ed)]({'path':_0x490976(0x28c),'message':'No\x20END\x20node\x20is\x20reachable\x20from\x20START.'});return;}const _0xd5cafc=new Set(),_0x39c30e=_0x387d7b=>{const _0x3df02a=_0x490976;if(_0xd5cafc['has'](_0x387d7b))return;_0xd5cafc[_0x3df02a(0x259)](_0x387d7b);for(const _0x24e3fc of _0x12eb4d[_0x3df02a(0x23e)](_0x387d7b)??[]){const _0x22ac29=resolveEdgeEndpoint(_0x24e3fc[_0x3df02a(0x20d)],_0x24e3fc[_0x3df02a(0x297)]);if(_0x22ac29&&_0x4815c7['has'](_0x22ac29))_0x39c30e(_0x22ac29);}};for(const _0x36e7fc of _0x1fc7ba){if(_0x4815c7[_0x490976(0x1fa)](_0x36e7fc))_0x39c30e(_0x36e7fc);}for(const _0x287548 of _0x2f75c3){!_0xd5cafc[_0x490976(0x1fa)](_0x287548)&&_0x544ed7[_0x490976(0x1ed)]({'path':_0x490976(0x221)+_0x287548,'message':_0x490976(0x234)});}}function a287_0x4188(_0x6630f0,_0x2ccb55){_0x6630f0=_0x6630f0-0x151;const _0x12ee06=a287_0x12ee();let _0x418809=_0x12ee06[_0x6630f0];return _0x418809;}function validateApprovalResults(_0x3f3d6a,_0x427700,_0x15e474,_0x34d2b3){const _0x417a8e=a287_0x4050df;if(_0x427700===0x0)return;const _0x34ad05=new Set(_0x15e474[_0x417a8e(0x279)](_0x337497=>_0x3f3d6a[_0x417a8e(0x23e)](_0x337497)?.[_0x417a8e(0x202)])[_0x417a8e(0x20b)](_0x2fb3c0=>typeof _0x2fb3c0===_0x417a8e(0x29a)));for(const _0x4e9f06 of['APPROVED',_0x417a8e(0x295)]){!_0x34ad05[_0x417a8e(0x1fa)](_0x4e9f06)&&_0x34d2b3[_0x417a8e(0x1ed)]({'path':_0x417a8e(0x2a9),'message':_0x417a8e(0x1e1)+_0x4e9f06+'.'});}}function validateScriptResultReferences(_0x150673,_0x447548,_0xcba363,_0x1dacd6,_0x44ba20,_0xd2809a,_0xaca381){const _0x4c79bd=a287_0x4050df;if(_0xd2809a['size']===0x0)return;const _0x11aa96=new Set(),_0x5249f9=_0x4be36a=>{const _0x4bdeaa=a287_0x4188;if(!_0x11aa96[_0x4bdeaa(0x1fa)](_0x4be36a)&&_0x150673[_0x4bdeaa(0x1fa)](_0x4be36a)){_0x11aa96['add'](_0x4be36a);for(const _0x1b9f3f of _0xcba363[_0x4bdeaa(0x23e)](_0x4be36a)??[]){const _0x1f9908=resolveEdgeEndpoint(_0x1b9f3f['target'],_0x1b9f3f[_0x4bdeaa(0x156)]);if(_0x1f9908)_0x5249f9(_0x1f9908);}}};_0x5249f9(_0x447548);const _0x1fca99=new Map();for(const _0x18d3d1 of _0x11aa96){_0x1fca99['set'](_0x18d3d1,_0x18d3d1===_0x447548?new Set([_0x447548]):new Set(_0x11aa96));}let _0x4e07ef=!![];while(_0x4e07ef){_0x4e07ef=![];for(const _0x388701 of _0x11aa96){if(_0x388701===_0x447548)continue;const _0x2f3ea5=(_0x1dacd6['get'](_0x388701)??[])[_0x4c79bd(0x279)](_0x26290f=>resolveEdgeEndpoint(_0x26290f[_0x4c79bd(0x20d)],_0x26290f[_0x4c79bd(0x297)]))[_0x4c79bd(0x20b)](_0x3540a3=>Boolean(_0x3540a3&&_0x11aa96['has'](_0x3540a3)));if(_0x2f3ea5[_0x4c79bd(0x28e)]===0x0)continue;const _0xa63a71=new Set(_0x1fca99[_0x4c79bd(0x23e)](_0x2f3ea5[0x0])??[]);for(const _0x10efd4 of _0x2f3ea5[_0x4c79bd(0x246)](0x1)){const _0x150d65=_0x1fca99['get'](_0x10efd4)??new Set();for(const _0x475041 of _0xa63a71){if(!_0x150d65['has'](_0x475041))_0xa63a71[_0x4c79bd(0x206)](_0x475041);}}_0xa63a71[_0x4c79bd(0x259)](_0x388701);const _0x58239e=_0x1fca99['get'](_0x388701);!setsEqual(_0x58239e,_0xa63a71)&&(_0x1fca99['set'](_0x388701,_0xa63a71),_0x4e07ef=!![]);}}for(const [_0x55da67,_0x5f3703]of _0xcba363){const _0x29456a=_0x1fca99[_0x4c79bd(0x23e)](_0x55da67);if(!_0x29456a)continue;for(const _0x265818 of _0x5f3703){if(_0x265818[_0x4c79bd(0x207)]!==_0x4c79bd(0x284)||typeof _0x265818[_0x4c79bd(0x1be)]!==_0x4c79bd(0x29a))continue;for(const [_0x21b277,_0x36ef61]of _0xd2809a){expressionReferencesVariable(_0x265818[_0x4c79bd(0x1be)],_0x21b277)&&!_0x29456a[_0x4c79bd(0x1fa)](_0x36ef61)&&_0xaca381['push']({'path':(_0x44ba20[_0x4c79bd(0x23e)](_0x265818)??'flowJson.edges')+_0x4c79bd(0x290),'message':'Expression\x20references\x20SCRIPT\x20resultVariable\x20'+_0x21b277+_0x4c79bd(0x163)+_0x36ef61+_0x4c79bd(0x25d)+_0x55da67+'.'});}}}}function expressionReferencesVariable(_0x2ea3cb,_0x157426){const _0x12bf90=a287_0x4050df;let _0x59cee7=0x0;while(_0x59cee7<_0x2ea3cb[_0x12bf90(0x28e)]){const _0xa8b0af=_0x2ea3cb[_0x59cee7];if(_0xa8b0af==='\x27'||_0xa8b0af==='\x22'){_0x59cee7=skipQuotedExpressionSegment(_0x2ea3cb,_0x59cee7,_0xa8b0af);continue;}if(!/[A-Za-z_]/[_0x12bf90(0x1aa)](_0xa8b0af)){_0x59cee7+=0x1;continue;}const _0x1f59b3=_0x59cee7;_0x59cee7+=0x1;while(_0x59cee7<_0x2ea3cb[_0x12bf90(0x28e)]&&/[A-Za-z0-9_]/['test'](_0x2ea3cb[_0x59cee7])){_0x59cee7+=0x1;}if(_0x2ea3cb[_0x12bf90(0x246)](_0x1f59b3,_0x59cee7)!==_0x157426)continue;let _0x482337=_0x1f59b3-0x1;while(_0x482337>=0x0&&/\s/[_0x12bf90(0x1aa)](_0x2ea3cb[_0x482337])){_0x482337-=0x1;}if(_0x2ea3cb[_0x482337]!=='.')return!![];}return![];}function skipQuotedExpressionSegment(_0x253765,_0x2a38ca,_0x28b489){const _0x3c7704=a287_0x4050df;let _0x43bc59=_0x2a38ca+0x1;while(_0x43bc59<_0x253765[_0x3c7704(0x28e)]){if(_0x253765[_0x43bc59]==='\x5c'){_0x43bc59+=0x2;continue;}if(_0x253765[_0x43bc59]===_0x28b489)return _0x43bc59+0x1;_0x43bc59+=0x1;}return _0x43bc59;}function resolveEffectiveResultVariable(_0x1d9139,_0x37d40e){const _0x180f96=a287_0x4050df;if(_0x1d9139===undefined||_0x1d9139===null||_0x37d40e&&_0x1d9139==='')return DEFAULT_SCRIPT_RESULT_VARIABLE;if(typeof _0x1d9139!=='string'||!VARIABLE_PATTERN['test'](_0x1d9139)||RESERVED_RESULT_VARIABLES['has'](_0x1d9139)||_0x1d9139[_0x180f96(0x24a)](_0x180f96(0x220)))return undefined;return _0x1d9139;}function registerResultVariableOwner(_0x215393,_0x23f4f7,_0x38829d,_0x10796d){const _0x4d5856=a287_0x4050df;if(_0x215393[_0x4d5856(0x1fa)](_0x23f4f7)){_0x10796d[_0x4d5856(0x1ed)]({'path':'flowJson.nodes','message':_0x4d5856(0x1d9)+_0x23f4f7+'.'});return;}_0x215393[_0x4d5856(0x16d)](_0x23f4f7,_0x38829d);}function setsEqual(_0x45611c,_0x16b6cd){const _0x90230f=a287_0x4050df;return _0x45611c[_0x90230f(0x1d5)]===_0x16b6cd['size']&&[..._0x45611c][_0x90230f(0x1f3)](_0x19f233=>_0x16b6cd[_0x90230f(0x1fa)](_0x19f233));}function isValidUserId(_0x5872eb){const _0x3268c1=a287_0x4050df;if(typeof _0x5872eb===_0x3268c1(0x29a))return _0x5872eb[_0x3268c1(0x2bf)]()[_0x3268c1(0x28e)]>0x0;return Number[_0x3268c1(0x1ca)](_0x5872eb)&&Number(_0x5872eb)>0x0;}function resolveEdgeEndpoint(_0x4c3c15,_0x5a1bf7){const _0x48a015=a287_0x4050df;if(typeof _0x4c3c15===_0x48a015(0x29a)&&_0x4c3c15[_0x48a015(0x2bf)]())return _0x4c3c15[_0x48a015(0x2bf)]();if(typeof _0x5a1bf7===_0x48a015(0x29a)&&_0x5a1bf7['trim']())return _0x5a1bf7[_0x48a015(0x2bf)]();return undefined;}function removeEmptyMetadata(_0x53a3dc,_0x4cd14c,_0x13f8db,_0x539c13){const _0x5e067e=a287_0x4050df;if(Array[_0x5e067e(0x186)](_0x53a3dc)){_0x53a3dc['forEach']((_0x36e8ad,_0x53a866)=>removeEmptyMetadata(_0x36e8ad,_0x4cd14c+'['+_0x53a866+']',_0x13f8db,_0x539c13));return;}if(!isRecord(_0x53a3dc))return;for(const [_0x22f9a2,_0x25b5da]of Object[_0x5e067e(0x29e)](_0x53a3dc)){const _0x1d9d10=_0x4cd14c+'.'+_0x22f9a2;if(_0x22f9a2==='metadata'&&isEmptyJsonValue(_0x25b5da)){delete _0x53a3dc[_0x22f9a2],_0x539c13[_0x5e067e(0x1ed)](_0x1d9d10),_0x13f8db[_0x5e067e(0x1ed)]({'code':_0x5e067e(0x1db),'path':_0x1d9d10,'message':_0x1d9d10+'\x20was\x20empty\x20and\x20was\x20removed.'});continue;}removeEmptyMetadata(_0x25b5da,_0x1d9d10,_0x13f8db,_0x539c13);}}function isEmptyJsonValue(_0x5eee06){const _0x18cbbc=a287_0x4050df;if(_0x5eee06===null||_0x5eee06===undefined)return!![];if(typeof _0x5eee06===_0x18cbbc(0x29a))return _0x5eee06[_0x18cbbc(0x2bf)]()==='';if(Array[_0x18cbbc(0x186)](_0x5eee06))return _0x5eee06[_0x18cbbc(0x28e)]===0x0;return isRecord(_0x5eee06)&&Object[_0x18cbbc(0x19f)](_0x5eee06)[_0x18cbbc(0x28e)]===0x0;}function isRecord(_0xabc3bf){return typeof _0xabc3bf==='object'&&_0xabc3bf!==null&&!Array['isArray'](_0xabc3bf);}function cloneJsonValue(_0x469336){const _0x40c970=a287_0x4050df;return JSON[_0x40c970(0x230)](JSON[_0x40c970(0x154)](_0x469336));}export async function readFlowConfigFile(_0x4a7360){const _0x4373e5=a287_0x4050df,_0x2755b0=await readFile(resolve(_0x4a7360),_0x4373e5(0x19c));return JSON[_0x4373e5(0x230)](_0x2755b0);}