@lovrabet/rabetbase-cli 2.5.4-beta.2 → 2.5.4-beta.3

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 (356) 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/index.js +1 -1
  26. package/lib/commands/app/list.js +1 -1
  27. package/lib/commands/app/members-list.js +1 -1
  28. package/lib/commands/app/remote-directory.js +1 -1
  29. package/lib/commands/app/shared.js +1 -1
  30. package/lib/commands/app-config/delete.js +1 -1
  31. package/lib/commands/app-config/get.js +1 -1
  32. package/lib/commands/app-config/index.js +1 -1
  33. package/lib/commands/app-config/list.js +1 -1
  34. package/lib/commands/app-config/set.js +1 -1
  35. package/lib/commands/app-config/shared.js +1 -1
  36. package/lib/commands/auth/index.js +1 -1
  37. package/lib/commands/bff/create.js +1 -1
  38. package/lib/commands/bff/delete.js +1 -1
  39. package/lib/commands/bff/detail.js +1 -1
  40. package/lib/commands/bff/index.js +1 -1
  41. package/lib/commands/bff/list.js +1 -1
  42. package/lib/commands/bff/logs.js +1 -1
  43. package/lib/commands/bff/pull.js +1 -1
  44. package/lib/commands/bff/push.js +1 -1
  45. package/lib/commands/bff/status.js +1 -1
  46. package/lib/commands/cli-skill/index.js +1 -1
  47. package/lib/commands/cli-update.js +1 -1
  48. package/lib/commands/codegen/index.js +1 -1
  49. package/lib/commands/codegen/sdk.js +1 -1
  50. package/lib/commands/codegen/sql.js +1 -1
  51. package/lib/commands/common/app-registry.js +1 -1
  52. package/lib/commands/common/app-selector.js +1 -1
  53. package/lib/commands/common/async-task.js +1 -1
  54. package/lib/commands/common/dry-run.js +1 -1
  55. package/lib/commands/common/flags.js +1 -1
  56. package/lib/commands/common/local-file.js +1 -1
  57. package/lib/commands/common/validate.js +1 -1
  58. package/lib/commands/config/delete.js +1 -1
  59. package/lib/commands/config/get.js +1 -1
  60. package/lib/commands/config/index.js +1 -1
  61. package/lib/commands/config/init.js +1 -1
  62. package/lib/commands/config/list.js +1 -1
  63. package/lib/commands/config/set.js +1 -1
  64. package/lib/commands/config/shared.js +1 -1
  65. package/lib/commands/dataset/batch-design.js +1 -1
  66. package/lib/commands/dataset/business-group-update.js +1 -1
  67. package/lib/commands/dataset/business-groups.js +1 -1
  68. package/lib/commands/dataset/capability.js +1 -1
  69. package/lib/commands/dataset/cross-relation-create.js +1 -1
  70. package/lib/commands/dataset/cross-relation-delete.js +1 -1
  71. package/lib/commands/dataset/cross-relation-list.js +1 -1
  72. package/lib/commands/dataset/cross-relation-shared.js +1 -1
  73. package/lib/commands/dataset/cross-relation-update.js +1 -1
  74. package/lib/commands/dataset/delete.js +1 -1
  75. package/lib/commands/dataset/detail.js +1 -1
  76. package/lib/commands/dataset/extend-update.js +1 -1
  77. package/lib/commands/dataset/field-restore.js +1 -1
  78. package/lib/commands/dataset/field-update.js +1 -1
  79. package/lib/commands/dataset/generate.js +1 -1
  80. package/lib/commands/dataset/index.js +1 -1
  81. package/lib/commands/dataset/list.js +1 -1
  82. package/lib/commands/dataset/operations.js +1 -1
  83. package/lib/commands/dataset/relation-audit.js +1 -1
  84. package/lib/commands/dataset/relation-create.js +1 -1
  85. package/lib/commands/dataset/relation-delete.js +1 -1
  86. package/lib/commands/dataset/relation-shared.js +1 -1
  87. package/lib/commands/dataset/relation-update.js +1 -1
  88. package/lib/commands/dataset/relations.js +1 -1
  89. package/lib/commands/dataset/rename.js +1 -1
  90. package/lib/commands/dataset/restore.js +1 -1
  91. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  92. package/lib/commands/db/analysis-batching.js +1 -1
  93. package/lib/commands/db/analyze-batch-plan.js +1 -1
  94. package/lib/commands/db/analyze-cancel.js +1 -1
  95. package/lib/commands/db/analyze-start.js +1 -1
  96. package/lib/commands/db/analyze-status.js +1 -1
  97. package/lib/commands/db/create.js +1 -1
  98. package/lib/commands/db/delete.js +1 -1
  99. package/lib/commands/db/detail.js +1 -1
  100. package/lib/commands/db/diff-refresh-start.js +1 -1
  101. package/lib/commands/db/diff-refresh-status.js +1 -1
  102. package/lib/commands/db/diff.js +1 -1
  103. package/lib/commands/db/index.js +1 -1
  104. package/lib/commands/db/list.js +1 -1
  105. package/lib/commands/db/shared.js +1 -1
  106. package/lib/commands/db/table-diff-shared.js +1 -1
  107. package/lib/commands/db/tables.js +1 -1
  108. package/lib/commands/db/test.js +1 -1
  109. package/lib/commands/db/update.js +1 -1
  110. package/lib/commands/deployment/index.js +1 -1
  111. package/lib/commands/deployment/sync-all.js +1 -1
  112. package/lib/commands/deployment/sync-jobs.js +1 -1
  113. package/lib/commands/deployment/sync-status.js +1 -1
  114. package/lib/commands/doctor.js +1 -1
  115. package/lib/commands/file/index.js +1 -1
  116. package/lib/commands/flow/create.js +1 -1
  117. package/lib/commands/flow/detail.js +1 -1
  118. package/lib/commands/flow/index.js +1 -1
  119. package/lib/commands/flow/list.js +1 -1
  120. package/lib/commands/flow/publish.js +1 -1
  121. package/lib/commands/flow/runtime-resources-shared.js +1 -1
  122. package/lib/commands/flow/runtime-role-list.js +1 -1
  123. package/lib/commands/flow/runtime-role-user-list.js +1 -1
  124. package/lib/commands/flow/runtime-user-search.js +1 -1
  125. package/lib/commands/flow/shared.js +1 -1
  126. package/lib/commands/flow/update.js +1 -1
  127. package/lib/commands/flow/validate.js +1 -1
  128. package/lib/commands/instant-api-policy/current.js +1 -1
  129. package/lib/commands/instant-api-policy/index.js +1 -1
  130. package/lib/commands/instant-api-policy/init.js +1 -1
  131. package/lib/commands/instant-api-policy/publish.js +1 -1
  132. package/lib/commands/instant-api-policy/pull.js +1 -1
  133. package/lib/commands/instant-api-policy/revision.js +1 -1
  134. package/lib/commands/instant-api-policy/revisions.js +1 -1
  135. package/lib/commands/instant-api-policy/rollback.js +1 -1
  136. package/lib/commands/instant-api-policy/shared.js +1 -1
  137. package/lib/commands/instant-api-policy/validate.js +1 -1
  138. package/lib/commands/issue/index.js +1 -1
  139. package/lib/commands/issue/nudge.js +1 -1
  140. package/lib/commands/issue/report.js +1 -1
  141. package/lib/commands/issue/shared.js +1 -1
  142. package/lib/commands/kb/create.js +1 -1
  143. package/lib/commands/kb/delete.js +1 -1
  144. package/lib/commands/kb/detail.js +1 -1
  145. package/lib/commands/kb/index.js +1 -1
  146. package/lib/commands/kb/list.js +1 -1
  147. package/lib/commands/kb/search.js +1 -1
  148. package/lib/commands/kb/shared.js +1 -1
  149. package/lib/commands/kb/update.js +1 -1
  150. package/lib/commands/logs/index.js +1 -1
  151. package/lib/commands/menu/asset-update.js +1 -1
  152. package/lib/commands/menu/delete.js +1 -1
  153. package/lib/commands/menu/external-link-create.js +1 -1
  154. package/lib/commands/menu/external-link-update.js +1 -1
  155. package/lib/commands/menu/group-create.js +1 -1
  156. package/lib/commands/menu/group-update.js +1 -1
  157. package/lib/commands/menu/index.js +1 -1
  158. package/lib/commands/menu/list.js +1 -1
  159. package/lib/commands/menu/move.js +1 -1
  160. package/lib/commands/menu/regroup-start.js +1 -1
  161. package/lib/commands/menu/rename.js +1 -1
  162. package/lib/commands/menu/shared/compare-table.js +1 -1
  163. package/lib/commands/menu/shared/delete-plan.js +1 -1
  164. package/lib/commands/menu/shared/facts.js +1 -1
  165. package/lib/commands/menu/shared/index.js +1 -1
  166. package/lib/commands/menu/shared/inquirer.js +1 -1
  167. package/lib/commands/menu/shared/local-pages.js +1 -1
  168. package/lib/commands/menu/shared/logic.js +1 -1
  169. package/lib/commands/menu/shared/mutations.js +1 -1
  170. package/lib/commands/menu/shared/service.js +1 -1
  171. package/lib/commands/menu/shared/sync-core.js +1 -1
  172. package/lib/commands/menu/shared/update-core.js +1 -1
  173. package/lib/commands/menu/shared/valid-url.js +1 -1
  174. package/lib/commands/menu/sync.js +1 -1
  175. package/lib/commands/menu/visibility-update.js +1 -1
  176. package/lib/commands/notification/config-create.js +1 -1
  177. package/lib/commands/notification/config-delete.js +1 -1
  178. package/lib/commands/notification/config-list.js +1 -1
  179. package/lib/commands/notification/config-update.js +1 -1
  180. package/lib/commands/notification/index.js +1 -1
  181. package/lib/commands/notification/shared.js +1 -1
  182. package/lib/commands/ocr/index.js +1 -1
  183. package/lib/commands/page/create.js +1 -1
  184. package/lib/commands/page/custom/detail.js +1 -1
  185. package/lib/commands/page/custom/list.js +1 -1
  186. package/lib/commands/page/custom/publish.js +1 -1
  187. package/lib/commands/page/custom/shared.js +1 -1
  188. package/lib/commands/page/custom/syntax.js +1 -1
  189. package/lib/commands/page/custom/update.js +1 -1
  190. package/lib/commands/page/data-list-status.js +1 -1
  191. package/lib/commands/page/generate-start.js +1 -1
  192. package/lib/commands/page/generate-status.js +1 -1
  193. package/lib/commands/page/index.js +1 -1
  194. package/lib/commands/page/pull.js +1 -1
  195. package/lib/commands/page/push.js +1 -1
  196. package/lib/commands/page/relation-audit.js +1 -1
  197. package/lib/commands/page/restore.js +1 -1
  198. package/lib/commands/page/shared.js +1 -1
  199. package/lib/commands/page/sync.js +1 -1
  200. package/lib/commands/project/api-architecture-upgrade.js +1 -1
  201. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  202. package/lib/commands/project/create/format-elapsed.js +1 -1
  203. package/lib/commands/project/create/main.js +1 -1
  204. package/lib/commands/project/create/materialize-project-template.js +1 -1
  205. package/lib/commands/project/create/project-name.js +1 -1
  206. package/lib/commands/project/create/project-template-archive.js +1 -1
  207. package/lib/commands/project/create/project-template-path.js +1 -1
  208. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  209. package/lib/commands/project/create/use-format-code.js +1 -1
  210. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  211. package/lib/commands/project/domain-routing-sync.js +1 -1
  212. package/lib/commands/project/index.js +1 -1
  213. package/lib/commands/project/upgrade.js +1 -1
  214. package/lib/commands/registry.js +1 -1
  215. package/lib/commands/role/delete.js +1 -1
  216. package/lib/commands/role/detail.js +1 -1
  217. package/lib/commands/role/index.js +1 -1
  218. package/lib/commands/role/list.js +1 -1
  219. package/lib/commands/role/shared.js +1 -1
  220. package/lib/commands/role/update.js +1 -1
  221. package/lib/commands/role/user-add.js +1 -1
  222. package/lib/commands/role/user-remove.js +1 -1
  223. package/lib/commands/role/user-resolve.js +1 -1
  224. package/lib/commands/rule/get.js +1 -1
  225. package/lib/commands/rule/index.js +1 -1
  226. package/lib/commands/rule/list.js +1 -1
  227. package/lib/commands/rule/set.js +1 -1
  228. package/lib/commands/rule/shared.js +1 -1
  229. package/lib/commands/run/index.js +1 -1
  230. package/lib/commands/schema.js +1 -1
  231. package/lib/commands/sql/create.js +1 -1
  232. package/lib/commands/sql/delete.js +1 -1
  233. package/lib/commands/sql/detail.js +1 -1
  234. package/lib/commands/sql/exec.js +1 -1
  235. package/lib/commands/sql/index.js +1 -1
  236. package/lib/commands/sql/list.js +1 -1
  237. package/lib/commands/sql/pull.js +1 -1
  238. package/lib/commands/sql/push.js +1 -1
  239. package/lib/commands/sql/shared.js +1 -1
  240. package/lib/commands/sql/status.js +1 -1
  241. package/lib/commands/sql/validate.js +1 -1
  242. package/lib/commands/task/index.js +1 -1
  243. package/lib/commands/task/status.js +1 -1
  244. package/lib/commands/tenant/index.js +1 -1
  245. package/lib/commands/tenant/members-list.js +1 -1
  246. package/lib/commands/tenant/shared.js +1 -1
  247. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  248. package/lib/commands/user-account/feishu-bind.d.ts +2 -0
  249. package/lib/commands/user-account/feishu-bind.js +1 -0
  250. package/lib/commands/user-account/index.js +1 -1
  251. package/lib/commands/workspace/add.js +1 -1
  252. package/lib/commands/workspace/index.js +1 -1
  253. package/lib/commands/workspace/remove.js +1 -1
  254. package/lib/config/domain-config.js +1 -1
  255. package/lib/config/project-domain-routing.js +1 -1
  256. package/lib/config/region-config.js +1 -1
  257. package/lib/config/schema.js +1 -1
  258. package/lib/constant/cdn.js +1 -1
  259. package/lib/constant/cli.js +1 -1
  260. package/lib/constant/defaults.js +1 -1
  261. package/lib/constant/domain.js +1 -1
  262. package/lib/constant/env.js +1 -1
  263. package/lib/constant/output.js +1 -1
  264. package/lib/constant/paths.js +1 -1
  265. package/lib/constant/region.js +1 -1
  266. package/lib/constant/risk.js +1 -1
  267. package/lib/constant/routing-profile.js +1 -1
  268. package/lib/context/app-resolver.js +1 -1
  269. package/lib/context/auth-resolver.js +1 -1
  270. package/lib/context/config-loader.js +1 -1
  271. package/lib/context.js +1 -1
  272. package/lib/core/alias-resolver.js +1 -1
  273. package/lib/core/api-client.d.ts +2 -0
  274. package/lib/core/api-client.js +1 -1
  275. package/lib/core/bff/config.js +1 -1
  276. package/lib/core/bff/file-system.js +1 -1
  277. package/lib/core/bff/hash.js +1 -1
  278. package/lib/core/bff/hook-directory.js +1 -1
  279. package/lib/core/bff/lock.js +1 -1
  280. package/lib/core/bff/utils.js +1 -1
  281. package/lib/core/cross-db-relation.js +1 -1
  282. package/lib/core/db-resolver.js +1 -1
  283. package/lib/core/flow-config.js +1 -1
  284. package/lib/core/instant-api-policy/config.js +1 -1
  285. package/lib/core/kb-search-client.js +1 -1
  286. package/lib/core/page/file-system.js +1 -1
  287. package/lib/core/page/hash.js +1 -1
  288. package/lib/core/page/lock.js +1 -1
  289. package/lib/core/page/lr-smart-jsx.js +1 -1
  290. package/lib/core/sql-index-auditor.js +1 -1
  291. package/lib/core/sql-sync/config.js +1 -1
  292. package/lib/core/sql-sync/file-system.js +1 -1
  293. package/lib/core/sql-sync/hash.js +1 -1
  294. package/lib/core/sql-sync/lock.js +1 -1
  295. package/lib/core/sql-sync/utils.js +1 -1
  296. package/lib/core/sql-validator.js +1 -1
  297. package/lib/errors.js +1 -1
  298. package/lib/framework/build-all-flags.js +1 -1
  299. package/lib/framework/error-output.js +1 -1
  300. package/lib/framework/explicit-yes.js +1 -1
  301. package/lib/framework/flags.js +1 -1
  302. package/lib/framework/help.js +1 -1
  303. package/lib/framework/index.js +1 -1
  304. package/lib/framework/output.js +1 -1
  305. package/lib/framework/response.js +1 -1
  306. package/lib/framework/runner-alias.js +1 -1
  307. package/lib/framework/runner.js +1 -1
  308. package/lib/framework/schema-export.js +1 -1
  309. package/lib/framework/supported-flags.js +1 -1
  310. package/lib/framework/types.js +1 -1
  311. package/lib/generated/build-info.d.ts +4 -4
  312. package/lib/generated/build-info.js +1 -1
  313. package/lib/generated/official-routing.js +1 -1
  314. package/lib/generated/routing-contract.js +1 -1
  315. package/lib/help.js +1 -1
  316. package/lib/postinstall.js +1 -1
  317. package/lib/runtime/confirmation.js +1 -1
  318. package/lib/runtime/event.js +1 -1
  319. package/lib/runtime/index.js +1 -1
  320. package/lib/runtime/queue.js +1 -1
  321. package/lib/runtime/resolve.js +1 -1
  322. package/lib/skills/builtin-skill.js +1 -1
  323. package/lib/skills/main.js +1 -1
  324. package/lib/skills/npx-skills-add.js +1 -1
  325. package/lib/skills/skill-presence.js +1 -1
  326. package/lib/telemetry/cli-command-trace.js +1 -1
  327. package/lib/telemetry/cli-help-trace.js +1 -1
  328. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  329. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  330. package/lib/telemetry/send-cli-trace-log.js +1 -1
  331. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  332. package/lib/utils/ai_config.js +1 -1
  333. package/lib/utils/apply-jq-filter.js +1 -1
  334. package/lib/utils/cdn-config.js +1 -1
  335. package/lib/utils/check-sdk-version.js +1 -1
  336. package/lib/utils/cli-version-check.js +1 -1
  337. package/lib/utils/cli-version-policy.js +1 -1
  338. package/lib/utils/config.js +1 -1
  339. package/lib/utils/entity-with-id.js +1 -1
  340. package/lib/utils/file-utils.js +1 -1
  341. package/lib/utils/guides-cdn.js +1 -1
  342. package/lib/utils/http-client.js +1 -1
  343. package/lib/utils/is-non-interactive.js +1 -1
  344. package/lib/utils/logger.js +1 -1
  345. package/lib/utils/params.js +1 -1
  346. package/lib/utils/platform.js +1 -1
  347. package/lib/utils/sleep.js +1 -1
  348. package/lib/utils/template-replacer.js +1 -1
  349. package/lib/utils/update-notice.js +1 -1
  350. package/lib/utils/version.js +1 -1
  351. package/lib/utils/with-active-cookie.js +1 -1
  352. package/lib/utils/write-cli-side-channel.js +1 -1
  353. package/package.json +1 -1
  354. package/skills/rabetbase/SKILL.md +3 -2
  355. package/skills/rabetbase/references/rabetbase-user-account.md +20 -2
  356. package/skills/rabetbase.manifest.json +3 -3
@@ -1 +1 @@
1
- (function(_0x14c73f,_0x20281e){const _0x3a4dd1=a275_0x241c,_0x502f18=_0x14c73f();while(!![]){try{const _0x3e2d60=parseInt(_0x3a4dd1(0x152))/0x1*(-parseInt(_0x3a4dd1(0x164))/0x2)+parseInt(_0x3a4dd1(0x156))/0x3*(-parseInt(_0x3a4dd1(0x17a))/0x4)+parseInt(_0x3a4dd1(0x16e))/0x5*(-parseInt(_0x3a4dd1(0x168))/0x6)+-parseInt(_0x3a4dd1(0x16f))/0x7+-parseInt(_0x3a4dd1(0x170))/0x8*(parseInt(_0x3a4dd1(0x185))/0x9)+parseInt(_0x3a4dd1(0x14d))/0xa+parseInt(_0x3a4dd1(0x187))/0xb;if(_0x3e2d60===_0x20281e)break;else _0x502f18['push'](_0x502f18['shift']());}catch(_0x5272ef){_0x502f18['push'](_0x502f18['shift']());}}}(a275_0x5e1b,0x21755));import{CliError}from'../../errors.js';export function trackedHookDirectoryMappings(_0x48896b){const _0x121fe6=a275_0x241c,_0x461c7c=[];for(const [_0x23608e,_0x320888]of Object[_0x121fe6(0x171)](_0x48896b[_0x121fe6(0x14f)])){const [_0x2a48a4,_0x4249e7]=_0x23608e[_0x121fe6(0x15b)]('/');if(_0x2a48a4!==_0x121fe6(0x15c)||!_0x4249e7||!_0x320888[_0x121fe6(0x16c)])continue;_0x461c7c['push']({'alias':_0x4249e7,'datasetCode':_0x320888[_0x121fe6(0x16c)]});}return _0x461c7c;}export function uniqueTrackedHookDirectoryByDataset(_0x2b27d2){const _0x2cc591=a275_0x241c,_0x3a2ad5=new Map();for(const _0x18ab0d of trackedHookDirectoryMappings(_0x2b27d2)){const _0x3cda11=directoryIdentity(_0x18ab0d['datasetCode']),_0x5330b3=_0x3a2ad5[_0x2cc591(0x16b)](_0x3cda11)??new Map();_0x5330b3['set'](directoryIdentity(_0x18ab0d['alias']),_0x18ab0d[_0x2cc591(0x17b)]),_0x3a2ad5['set'](_0x3cda11,_0x5330b3);}const _0x37757b=new Map();for(const [_0x1a187d,_0x2f8bee]of _0x3a2ad5){if(_0x2f8bee['size']>0x1)throw hookDirectoryError(_0x2cc591(0x159),_0x2cc591(0x184)+_0x1a187d+_0x2cc591(0x17f)+[..._0x2f8bee['values']()]['join'](',\x20')+'.',{'datasetCode':_0x1a187d,'directories':[..._0x2f8bee[_0x2cc591(0x151)]()]});_0x37757b[_0x2cc591(0x17e)](_0x1a187d,[..._0x2f8bee['values']()][0x0]);}return _0x37757b;}export function assertUnambiguousHookDirectoryMappings(_0x1e7147){const _0x5c0cfd=a275_0x241c,_0x1213a5=new Map();for(const {alias:_0x1bdfca,datasetCode:_0x37f1a1}of _0x1e7147){const _0x15726d=directoryIdentity(_0x1bdfca),_0x55be00=_0x1213a5[_0x5c0cfd(0x16b)](_0x15726d)??new Set();_0x55be00[_0x5c0cfd(0x155)](_0x37f1a1),_0x1213a5[_0x5c0cfd(0x17e)](_0x15726d,_0x55be00);}for(const [_0x51f413,_0x1bca78]of _0x1213a5){if(_0x1bca78[_0x5c0cfd(0x150)]>0x1)throw hookDirectoryError('HOOK_DIRECTORY_AMBIGUOUS',_0x5c0cfd(0x175)+_0x51f413+'\x22\x20resolves\x20to\x20multiple\x20Datasets.',{'directoryName':_0x51f413,'datasetCodes':[..._0x1bca78]});}}export function assertUnambiguousHookAliases(_0x4f592c){const _0x5e2240=a275_0x241c,_0x44ee80=[..._0x4f592c],_0x2fb12c=new Map(),_0x5853d7=new Map();for(const {alias:_0xebe7d3,datasetCode:_0x4a24d2}of _0x44ee80){const _0xd0573=directoryIdentity(_0xebe7d3),_0x38f639=directoryIdentity(_0x4a24d2),_0x18fc9d=_0x2fb12c[_0x5e2240(0x16b)](_0xd0573)??new Set();_0x18fc9d['add'](_0x4a24d2),_0x2fb12c[_0x5e2240(0x17e)](_0xd0573,_0x18fc9d);const _0x3e20aa=_0x5853d7[_0x5e2240(0x16b)](_0x38f639)??new Set();_0x3e20aa['add'](_0xebe7d3),_0x5853d7['set'](_0x38f639,_0x3e20aa);}for(const [_0xdd7c61,_0x5e6160]of _0x2fb12c){if(_0x5e6160[_0x5e2240(0x150)]>0x1)throw hookDirectoryError('HOOK_ALIAS_AMBIGUOUS',_0x5e2240(0x15a)+_0xdd7c61+_0x5e2240(0x16d),{'alias':_0xdd7c61,'datasetCodes':[..._0x5e6160]});}for(const [_0x152304,_0xaf481c]of _0x5853d7){if(_0xaf481c[_0x5e2240(0x150)]>0x1)throw hookDirectoryError(_0x5e2240(0x182),_0x5e2240(0x184)+_0x152304+'\x22\x20has\x20multiple\x20SDK\x20aliases\x20and\x20has\x20no\x20unique\x20HOOK\x20directory.',{'datasetCode':_0x152304,'aliases':[..._0xaf481c]});}}export function buildHookDirectoryIndexes(_0x1e95d0,_0x233d81=[]){const _0x3cbdfe=a275_0x241c,_0x4a79f8=[..._0x233d81];assertUnambiguousHookDirectoryMappings(_0x4a79f8[_0x3cbdfe(0x181)](([_0x1d6f0a,_0x1a83aa])=>({'alias':_0x1d6f0a,'datasetCode':_0x1a83aa})));const _0x44c464=new Map(),_0x36ad71=new Map();for(const _0x55aa9c of _0x1e95d0){appendUnique(_0x44c464,directoryIdentity(_0x55aa9c[_0x3cbdfe(0x17c)]),_0x55aa9c,_0xf3b962=>_0xf3b962[_0x3cbdfe(0x17c)]);}for(const [_0x24028b,_0x34df3c]of _0x4a79f8){appendUnique(_0x36ad71,directoryIdentity(_0x24028b),_0x34df3c,_0x3105d4=>_0x3105d4);}return{'datasetCodeToDatasets':_0x44c464,'aliasToDatasetCodes':_0x36ad71};}function a275_0x241c(_0x5e984b,_0x239487){_0x5e984b=_0x5e984b-0x14d;const _0x5e1b83=a275_0x5e1b();let _0x241c10=_0x5e1b83[_0x5e984b];return _0x241c10;}export function resolvePushHookDirectory(_0xbabc3e,_0x21e688,_0x3b6846){const _0x487e66=a275_0x241c,_0x253d03=directoryIdentity(_0xbabc3e),_0x59053e=_0x3b6846[_0x487e66(0x163)][_0x487e66(0x16b)](_0x253d03)??[],_0x29c46f=_0x3b6846[_0x487e66(0x172)][_0x487e66(0x16b)](_0x253d03)??[],_0x24e58b=new Set([..._0x59053e[_0x487e66(0x181)](_0x3ae0a6=>_0x3ae0a6[_0x487e66(0x17c)]),..._0x29c46f]);if(_0x24e58b['size']>0x1)throw hookDirectoryError(_0x487e66(0x176),'HOOK\x20directory\x20\x22'+_0xbabc3e+_0x487e66(0x169),{'directoryName':_0xbabc3e,'datasetCodes':[..._0x24e58b]});const _0x16d251=[..._0x24e58b][0x0];if(_0x16d251&&_0x21e688?.[_0x487e66(0x16c)]&&_0x16d251!==_0x21e688['datasetCode'])throw hookDirectoryError(_0x487e66(0x188),_0x487e66(0x175)+_0xbabc3e+'\x22\x20changed\x20mapping\x20from\x20Dataset\x20\x22'+_0x21e688[_0x487e66(0x16c)]+_0x487e66(0x16a)+_0x16d251+'\x22.',{'directoryName':_0xbabc3e,'datasetCode':_0x16d251,'lockedDatasetCode':_0x21e688[_0x487e66(0x16c)]});const _0x24cb5c=_0x16d251?findDatasetByCode(_0x3b6846,_0x16d251):undefined,_0x4bff43=!!_0x16d251&&_0x29c46f[_0x487e66(0x158)](_0x16d251);if(_0x24cb5c)return{'dataset':_0x24cb5c,'datasetCode':_0x24cb5c['code'],..._0x4bff43?{'alias':_0xbabc3e}:{},'directoryProtocol':_0x4bff43?'alias':_0x487e66(0x16c),'warnings':[]};const _0x223298=_0x21e688?.[_0x487e66(0x16c)];if(_0x223298){const _0x39e609=findDatasetByCode(_0x3b6846,_0x223298);if(_0x39e609)return{'dataset':_0x39e609,'datasetCode':_0x39e609[_0x487e66(0x17c)],..._0x21e688[_0x487e66(0x17b)]?{'alias':_0x21e688['alias']}:{},'directoryProtocol':_0x21e688['alias']?_0x487e66(0x17b):_0x487e66(0x16c),'warnings':[]};}if(_0x16d251||_0x223298){const _0x584b0f=_0x16d251??_0x223298;throw hookDirectoryError(_0x487e66(0x161),_0x487e66(0x175)+_0xbabc3e+_0x487e66(0x178),{'directoryName':_0xbabc3e,'datasetCode':_0x584b0f});}throw hookDirectoryError(_0x487e66(0x183),_0x487e66(0x166)+_0xbabc3e+_0x487e66(0x186),{'directoryName':_0xbabc3e});}export function preflightPushHookDirectories(_0x233402,_0x17c2a7,_0x2478f6,_0x4186a4){const _0x237510=a275_0x241c,_0x13785a=new Map(),_0x42682a=new Map();for(const _0x16dfa5 of _0x233402){if(_0x16dfa5[_0x237510(0x15e)]!==_0x237510(0x15c))continue;const _0x38b12a=_0x16dfa5[_0x237510(0x17b)];if(!_0x38b12a)throw hookDirectoryError(_0x237510(0x183),_0x237510(0x160)+_0x16dfa5[_0x237510(0x157)],{'lockKey':_0x16dfa5[_0x237510(0x157)]});let _0x186834;try{_0x186834=resolvePushHookDirectory(_0x38b12a,_0x17c2a7[_0x237510(0x14f)][_0x16dfa5[_0x237510(0x157)]],_0x2478f6);}catch(_0x4ddb01){if(_0x4186a4&&_0x4ddb01 instanceof CliError&&[_0x237510(0x161),_0x237510(0x183)][_0x237510(0x158)](_0x4ddb01[_0x237510(0x17c)])){_0x4186a4['set'](_0x16dfa5[_0x237510(0x157)],_0x4ddb01[_0x237510(0x14e)]);continue;}throw _0x4ddb01;}_0x13785a['set'](_0x16dfa5['lockKey'],_0x186834);const _0x3dd10a=_0x42682a[_0x237510(0x16b)](_0x186834[_0x237510(0x16c)])??new Set();_0x3dd10a[_0x237510(0x155)](_0x38b12a),_0x42682a[_0x237510(0x17e)](_0x186834[_0x237510(0x16c)],_0x3dd10a);}for(const [_0x7ac124,_0x45ebc5]of _0x42682a){if(_0x45ebc5[_0x237510(0x150)]>0x1)throw hookDirectoryError(_0x237510(0x159),_0x237510(0x184)+_0x7ac124+_0x237510(0x154)+[..._0x45ebc5][_0x237510(0x177)](',\x20')+'.',{'datasetCode':_0x7ac124,'directories':[..._0x45ebc5]});}return _0x13785a;}function a275_0x5e1b(){const _0x175068=['75weeNAr','427854qgJysZ','305344kiVOhR','entries','aliasToDatasetCodes','push','toLowerCase','HOOK\x20directory\x20\x22','HOOK_DIRECTORY_AMBIGUOUS','join','\x22\x20points\x20to\x20a\x20Dataset\x20that\x20is\x20absent\x20from\x20current\x20platform\x20metadata.','name','44WHZUxD','alias','code','some','set','\x22\x20has\x20multiple\x20tracked\x20HOOK\x20directories:\x20','\x22\x20differs\x20only\x20by\x20case\x20from\x20another\x20Dataset\x20code.','map','HOOK_ALIAS_AMBIGUOUS','HOOK_DIRECTORY_UNRESOLVED','Dataset\x20\x22','18rYSphk','\x22\x20to\x20a\x20Dataset\x20alias\x20or\x20datasetCode.','4124296NyWXHO','HOOK_MAPPING_DRIFT','2716110NqNRWq','message','functions','size','values','27376NnYpLp','NFC','\x22\x20is\x20represented\x20by\x20multiple\x20HOOK\x20directories:\x20','add','23259fkFSDx','lockKey','includes','HOOK_DUPLICATE_DIRECTORIES','SDK\x20alias\x20\x22','split','HOOK','Dataset\x20code\x20\x22','type','details','Incomplete\x20HOOK\x20path:\x20','HOOK_DATASET_NOT_FOUND','HOOK_DATASET_CODE_AMBIGUOUS','datasetCodeToDatasets','12gpptUc','normalize','Cannot\x20resolve\x20HOOK\x20directory\x20\x22','length','49002KeNpQK','\x22\x20collides\x20across\x20datasetCode\x20and\x20alias\x20namespaces.','\x22\x20to\x20\x22','get','datasetCode','\x22\x20resolves\x20to\x20multiple\x20Datasets.'];a275_0x5e1b=function(){return _0x175068;};return a275_0x5e1b();}export function hookDirectoryError(_0x335a3c,_0x3da091,_0x125486){const _0x10515a=a275_0x241c,_0xe41e84=new CliError(_0x335a3c,0x2,_0x335a3c+':\x20'+_0x3da091);return _0xe41e84[_0x10515a(0x15f)]=_0x125486,_0xe41e84;}function findDatasetByCode(_0x2fba41,_0xe8dc60){const _0x256926=a275_0x241c,_0x1987be=_0x2fba41['datasetCodeToDatasets'][_0x256926(0x16b)](directoryIdentity(_0xe8dc60))??[];if(_0x1987be[_0x256926(0x167)]>0x1)throw hookDirectoryError(_0x256926(0x162),_0x256926(0x15d)+_0xe8dc60+_0x256926(0x180),{'datasetCode':_0xe8dc60,'candidates':_0x1987be[_0x256926(0x181)](datasetFact)});return _0x1987be[0x0];}function directoryIdentity(_0x50ff33){const _0x27f577=a275_0x241c;return _0x50ff33[_0x27f577(0x165)](_0x27f577(0x153))[_0x27f577(0x174)]();}function appendUnique(_0x7ebd73,_0x55e3a7,_0x5b3c60,_0x29732c){const _0x5eac03=a275_0x241c,_0x8af5f4=_0x7ebd73[_0x5eac03(0x16b)](_0x55e3a7)??[];!_0x8af5f4[_0x5eac03(0x17d)](_0x19da03=>_0x29732c(_0x19da03)===_0x29732c(_0x5b3c60))&&_0x8af5f4[_0x5eac03(0x173)](_0x5b3c60),_0x7ebd73[_0x5eac03(0x17e)](_0x55e3a7,_0x8af5f4);}function datasetFact(_0x7ee948){const _0x57e86a=a275_0x241c;return{'id':_0x7ee948['id'],'name':_0x7ee948[_0x57e86a(0x179)],'datasetCode':_0x7ee948['code']};}
1
+ (function(_0x1050d7,_0x30822f){const _0x23a1a2=a276_0x47f9,_0x141d54=_0x1050d7();while(!![]){try{const _0x32601b=parseInt(_0x23a1a2(0x12c))/0x1*(-parseInt(_0x23a1a2(0x156))/0x2)+parseInt(_0x23a1a2(0x13d))/0x3*(parseInt(_0x23a1a2(0x139))/0x4)+parseInt(_0x23a1a2(0x150))/0x5*(-parseInt(_0x23a1a2(0x13a))/0x6)+-parseInt(_0x23a1a2(0x13c))/0x7+-parseInt(_0x23a1a2(0x132))/0x8*(parseInt(_0x23a1a2(0x128))/0x9)+-parseInt(_0x23a1a2(0x154))/0xa*(-parseInt(_0x23a1a2(0x135))/0xb)+parseInt(_0x23a1a2(0x14a))/0xc;if(_0x32601b===_0x30822f)break;else _0x141d54['push'](_0x141d54['shift']());}catch(_0x1dc83b){_0x141d54['push'](_0x141d54['shift']());}}}(a276_0x4a04,0xd7283));import{CliError}from'../../errors.js';export function trackedHookDirectoryMappings(_0x5f4e04){const _0x445ec9=a276_0x47f9,_0x292fb2=[];for(const [_0x592900,_0x1e49f7]of Object['entries'](_0x5f4e04['functions'])){const [_0x4295be,_0x4c6e08]=_0x592900[_0x445ec9(0x131)]('/');if(_0x4295be!==_0x445ec9(0x14d)||!_0x4c6e08||!_0x1e49f7[_0x445ec9(0x143)])continue;_0x292fb2[_0x445ec9(0x134)]({'alias':_0x4c6e08,'datasetCode':_0x1e49f7[_0x445ec9(0x143)]});}return _0x292fb2;}export function uniqueTrackedHookDirectoryByDataset(_0x1acb1d){const _0x28cf34=a276_0x47f9,_0x1efac1=new Map();for(const _0x22a5cb of trackedHookDirectoryMappings(_0x1acb1d)){const _0x2d4df6=directoryIdentity(_0x22a5cb['datasetCode']),_0xe2f172=_0x1efac1[_0x28cf34(0x12b)](_0x2d4df6)??new Map();_0xe2f172[_0x28cf34(0x141)](directoryIdentity(_0x22a5cb[_0x28cf34(0x13f)]),_0x22a5cb[_0x28cf34(0x13f)]),_0x1efac1[_0x28cf34(0x141)](_0x2d4df6,_0xe2f172);}const _0x3a1c08=new Map();for(const [_0x5184ac,_0x3343c6]of _0x1efac1){if(_0x3343c6[_0x28cf34(0x148)]>0x1)throw hookDirectoryError(_0x28cf34(0x130),'Dataset\x20\x22'+_0x5184ac+'\x22\x20has\x20multiple\x20tracked\x20HOOK\x20directories:\x20'+[..._0x3343c6[_0x28cf34(0x12a)]()][_0x28cf34(0x14c)](',\x20')+'.',{'datasetCode':_0x5184ac,'directories':[..._0x3343c6[_0x28cf34(0x12a)]()]});_0x3a1c08['set'](_0x5184ac,[..._0x3343c6['values']()][0x0]);}return _0x3a1c08;}export function assertUnambiguousHookDirectoryMappings(_0x3c2541){const _0x16f12d=a276_0x47f9,_0x3b55d4=new Map();for(const {alias:_0x59ae2e,datasetCode:_0x3f3691}of _0x3c2541){const _0x282858=directoryIdentity(_0x59ae2e),_0x3c7743=_0x3b55d4[_0x16f12d(0x12b)](_0x282858)??new Set();_0x3c7743['add'](_0x3f3691),_0x3b55d4[_0x16f12d(0x141)](_0x282858,_0x3c7743);}for(const [_0x1ed8eb,_0x115032]of _0x3b55d4){if(_0x115032[_0x16f12d(0x148)]>0x1)throw hookDirectoryError(_0x16f12d(0x142),_0x16f12d(0x153)+_0x1ed8eb+_0x16f12d(0x14f),{'directoryName':_0x1ed8eb,'datasetCodes':[..._0x115032]});}}export function assertUnambiguousHookAliases(_0x1bf918){const _0x3512a5=a276_0x47f9,_0xb2b3f3=[..._0x1bf918],_0x599ffd=new Map(),_0x1d5d5c=new Map();for(const {alias:_0x51d0c9,datasetCode:_0x4a7ce6}of _0xb2b3f3){const _0x489eee=directoryIdentity(_0x51d0c9),_0x18fc19=directoryIdentity(_0x4a7ce6),_0x8f05c0=_0x599ffd[_0x3512a5(0x12b)](_0x489eee)??new Set();_0x8f05c0[_0x3512a5(0x136)](_0x4a7ce6),_0x599ffd[_0x3512a5(0x141)](_0x489eee,_0x8f05c0);const _0x2b2269=_0x1d5d5c['get'](_0x18fc19)??new Set();_0x2b2269[_0x3512a5(0x136)](_0x51d0c9),_0x1d5d5c['set'](_0x18fc19,_0x2b2269);}for(const [_0x28598,_0x52cd08]of _0x599ffd){if(_0x52cd08[_0x3512a5(0x148)]>0x1)throw hookDirectoryError(_0x3512a5(0x138),'SDK\x20alias\x20\x22'+_0x28598+_0x3512a5(0x14f),{'alias':_0x28598,'datasetCodes':[..._0x52cd08]});}for(const [_0x5dd049,_0x396459]of _0x1d5d5c){if(_0x396459[_0x3512a5(0x148)]>0x1)throw hookDirectoryError(_0x3512a5(0x138),_0x3512a5(0x149)+_0x5dd049+'\x22\x20has\x20multiple\x20SDK\x20aliases\x20and\x20has\x20no\x20unique\x20HOOK\x20directory.',{'datasetCode':_0x5dd049,'aliases':[..._0x396459]});}}export function buildHookDirectoryIndexes(_0x1f9e48,_0x5cab36=[]){const _0xa3e14f=a276_0x47f9,_0x55d401=[..._0x5cab36];assertUnambiguousHookDirectoryMappings(_0x55d401[_0xa3e14f(0x155)](([_0x1ba8f8,_0x417d0d])=>({'alias':_0x1ba8f8,'datasetCode':_0x417d0d})));const _0x18ab3d=new Map(),_0x30ae84=new Map();for(const _0x1d459a of _0x1f9e48){appendUnique(_0x18ab3d,directoryIdentity(_0x1d459a[_0xa3e14f(0x13e)]),_0x1d459a,_0x48d38e=>_0x48d38e[_0xa3e14f(0x13e)]);}for(const [_0x310015,_0x40863a]of _0x55d401){appendUnique(_0x30ae84,directoryIdentity(_0x310015),_0x40863a,_0x4ebf51=>_0x4ebf51);}return{'datasetCodeToDatasets':_0x18ab3d,'aliasToDatasetCodes':_0x30ae84};}export function resolvePushHookDirectory(_0x21626e,_0x3d52b7,_0x1d77a3){const _0x1dbf7e=a276_0x47f9,_0x297391=directoryIdentity(_0x21626e),_0x3c4c35=_0x1d77a3[_0x1dbf7e(0x125)][_0x1dbf7e(0x12b)](_0x297391)??[],_0x3ad416=_0x1d77a3[_0x1dbf7e(0x129)]['get'](_0x297391)??[],_0xb5d5ac=new Set([..._0x3c4c35[_0x1dbf7e(0x155)](_0x1d090c=>_0x1d090c[_0x1dbf7e(0x13e)]),..._0x3ad416]);if(_0xb5d5ac[_0x1dbf7e(0x148)]>0x1)throw hookDirectoryError(_0x1dbf7e(0x142),_0x1dbf7e(0x153)+_0x21626e+'\x22\x20collides\x20across\x20datasetCode\x20and\x20alias\x20namespaces.',{'directoryName':_0x21626e,'datasetCodes':[..._0xb5d5ac]});const _0x361ed2=[..._0xb5d5ac][0x0];if(_0x361ed2&&_0x3d52b7?.[_0x1dbf7e(0x143)]&&_0x361ed2!==_0x3d52b7[_0x1dbf7e(0x143)])throw hookDirectoryError(_0x1dbf7e(0x133),'HOOK\x20directory\x20\x22'+_0x21626e+'\x22\x20changed\x20mapping\x20from\x20Dataset\x20\x22'+_0x3d52b7[_0x1dbf7e(0x143)]+_0x1dbf7e(0x144)+_0x361ed2+'\x22.',{'directoryName':_0x21626e,'datasetCode':_0x361ed2,'lockedDatasetCode':_0x3d52b7['datasetCode']});const _0x527ae1=_0x361ed2?findDatasetByCode(_0x1d77a3,_0x361ed2):undefined,_0xd40674=!!_0x361ed2&&_0x3ad416[_0x1dbf7e(0x12f)](_0x361ed2);if(_0x527ae1)return{'dataset':_0x527ae1,'datasetCode':_0x527ae1[_0x1dbf7e(0x13e)],..._0xd40674?{'alias':_0x21626e}:{},'directoryProtocol':_0xd40674?_0x1dbf7e(0x13f):_0x1dbf7e(0x143),'warnings':[]};const _0x266945=_0x3d52b7?.['datasetCode'];if(_0x266945){const _0x2bb964=findDatasetByCode(_0x1d77a3,_0x266945);if(_0x2bb964)return{'dataset':_0x2bb964,'datasetCode':_0x2bb964[_0x1dbf7e(0x13e)],..._0x3d52b7[_0x1dbf7e(0x13f)]?{'alias':_0x3d52b7[_0x1dbf7e(0x13f)]}:{},'directoryProtocol':_0x3d52b7['alias']?'alias':_0x1dbf7e(0x143),'warnings':[]};}if(_0x361ed2||_0x266945){const _0x37069c=_0x361ed2??_0x266945;throw hookDirectoryError(_0x1dbf7e(0x137),_0x1dbf7e(0x153)+_0x21626e+_0x1dbf7e(0x126),{'directoryName':_0x21626e,'datasetCode':_0x37069c});}throw hookDirectoryError(_0x1dbf7e(0x146),'Cannot\x20resolve\x20HOOK\x20directory\x20\x22'+_0x21626e+_0x1dbf7e(0x13b),{'directoryName':_0x21626e});}export function preflightPushHookDirectories(_0xedb49f,_0x45c013,_0x49aea5,_0x242e58){const _0x1387d8=a276_0x47f9,_0x36e865=new Map(),_0x2edd2e=new Map();for(const _0x1efce2 of _0xedb49f){if(_0x1efce2['type']!==_0x1387d8(0x14d))continue;const _0x59ffaa=_0x1efce2[_0x1387d8(0x13f)];if(!_0x59ffaa)throw hookDirectoryError('HOOK_DIRECTORY_UNRESOLVED',_0x1387d8(0x14e)+_0x1efce2[_0x1387d8(0x145)],{'lockKey':_0x1efce2[_0x1387d8(0x145)]});let _0x12a1bf;try{_0x12a1bf=resolvePushHookDirectory(_0x59ffaa,_0x45c013['functions'][_0x1efce2[_0x1387d8(0x145)]],_0x49aea5);}catch(_0x1e7bca){if(_0x242e58&&_0x1e7bca instanceof CliError&&[_0x1387d8(0x137),_0x1387d8(0x146)][_0x1387d8(0x12f)](_0x1e7bca[_0x1387d8(0x13e)])){_0x242e58['set'](_0x1efce2[_0x1387d8(0x145)],_0x1e7bca['message']);continue;}throw _0x1e7bca;}_0x36e865['set'](_0x1efce2[_0x1387d8(0x145)],_0x12a1bf);const _0x5eef83=_0x2edd2e[_0x1387d8(0x12b)](_0x12a1bf['datasetCode'])??new Set();_0x5eef83[_0x1387d8(0x136)](_0x59ffaa),_0x2edd2e[_0x1387d8(0x141)](_0x12a1bf[_0x1387d8(0x143)],_0x5eef83);}for(const [_0x16c577,_0x36a485]of _0x2edd2e){if(_0x36a485[_0x1387d8(0x148)]>0x1)throw hookDirectoryError(_0x1387d8(0x130),_0x1387d8(0x149)+_0x16c577+'\x22\x20is\x20represented\x20by\x20multiple\x20HOOK\x20directories:\x20'+[..._0x36a485][_0x1387d8(0x14c)](',\x20')+'.',{'datasetCode':_0x16c577,'directories':[..._0x36a485]});}return _0x36e865;}export function hookDirectoryError(_0x146d41,_0x41993d,_0x108f9b){const _0x3446b7=a276_0x47f9,_0x22c82d=new CliError(_0x146d41,0x2,_0x146d41+':\x20'+_0x41993d);return _0x22c82d[_0x3446b7(0x12e)]=_0x108f9b,_0x22c82d;}function findDatasetByCode(_0x4aee84,_0x5518af){const _0x3df98b=a276_0x47f9,_0x55d1e7=_0x4aee84[_0x3df98b(0x125)][_0x3df98b(0x12b)](directoryIdentity(_0x5518af))??[];if(_0x55d1e7[_0x3df98b(0x140)]>0x1)throw hookDirectoryError(_0x3df98b(0x127),'Dataset\x20code\x20\x22'+_0x5518af+_0x3df98b(0x152),{'datasetCode':_0x5518af,'candidates':_0x55d1e7['map'](datasetFact)});return _0x55d1e7[0x0];}function a276_0x47f9(_0x4bb511,_0x4e1a5f){_0x4bb511=_0x4bb511-0x125;const _0x4a04f7=a276_0x4a04();let _0x47f978=_0x4a04f7[_0x4bb511];return _0x47f978;}function a276_0x4a04(){const _0x423947=['\x22\x20to\x20\x22','lockKey','HOOK_DIRECTORY_UNRESOLVED','normalize','size','Dataset\x20\x22','60258852AxiShS','some','join','HOOK','Incomplete\x20HOOK\x20path:\x20','\x22\x20resolves\x20to\x20multiple\x20Datasets.','5252620NvRFlx','name','\x22\x20differs\x20only\x20by\x20case\x20from\x20another\x20Dataset\x20code.','HOOK\x20directory\x20\x22','10WPNCoG','map','12626qFoWtP','datasetCodeToDatasets','\x22\x20points\x20to\x20a\x20Dataset\x20that\x20is\x20absent\x20from\x20current\x20platform\x20metadata.','HOOK_DATASET_CODE_AMBIGUOUS','9lErGrk','aliasToDatasetCodes','values','get','89hNnvBs','toLowerCase','details','includes','HOOK_DUPLICATE_DIRECTORIES','split','10124328XlBHhT','HOOK_MAPPING_DRIFT','push','4126903jKoKTl','add','HOOK_DATASET_NOT_FOUND','HOOK_ALIAS_AMBIGUOUS','4SxlfKY','6hOlfJP','\x22\x20to\x20a\x20Dataset\x20alias\x20or\x20datasetCode.','11531625wnMnYF','29508vzXDsm','code','alias','length','set','HOOK_DIRECTORY_AMBIGUOUS','datasetCode'];a276_0x4a04=function(){return _0x423947;};return a276_0x4a04();}function directoryIdentity(_0xa5ee58){const _0x17cb91=a276_0x47f9;return _0xa5ee58[_0x17cb91(0x147)]('NFC')[_0x17cb91(0x12d)]();}function appendUnique(_0x74c96a,_0x18b0c6,_0x1b1398,_0x230678){const _0x2e48d4=a276_0x47f9,_0x59409f=_0x74c96a['get'](_0x18b0c6)??[];!_0x59409f[_0x2e48d4(0x14b)](_0x1423b1=>_0x230678(_0x1423b1)===_0x230678(_0x1b1398))&&_0x59409f['push'](_0x1b1398),_0x74c96a[_0x2e48d4(0x141)](_0x18b0c6,_0x59409f);}function datasetFact(_0x28af02){const _0x154f5a=a276_0x47f9;return{'id':_0x28af02['id'],'name':_0x28af02[_0x154f5a(0x151)],'datasetCode':_0x28af02[_0x154f5a(0x13e)]};}
@@ -1 +1 @@
1
- (function(_0x2c7731,_0x57577f){const _0x496d89=a276_0x42ad,_0x454afd=_0x2c7731();while(!![]){try{const _0x18cab1=parseInt(_0x496d89(0x12f))/0x1*(-parseInt(_0x496d89(0x138))/0x2)+parseInt(_0x496d89(0x130))/0x3+parseInt(_0x496d89(0x13c))/0x4+-parseInt(_0x496d89(0x135))/0x5+parseInt(_0x496d89(0x139))/0x6+-parseInt(_0x496d89(0x13d))/0x7*(-parseInt(_0x496d89(0x126))/0x8)+-parseInt(_0x496d89(0x12e))/0x9*(parseInt(_0x496d89(0x13a))/0xa);if(_0x18cab1===_0x57577f)break;else _0x454afd['push'](_0x454afd['shift']());}catch(_0x4aacb1){_0x454afd['push'](_0x454afd['shift']());}}}(a276_0x5d64,0x7e5de));function a276_0x5d64(){const _0x350e1d=['current\x20\x22','utf8','object','2084045AFkXKe','scriptsRoot',':\x20scriptsRoot\x20mismatch\x20—\x20','596bDNaVP','6078414ufhEnE','20914770EsBdxM','code','3435188YiqCXS','321916APsMIp','40QxMdVe','Check\x20.rabetbase/bff.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.','\x22\x20vs\x20lock\x20\x22','ENOENT','lastSync','apps','functions','Failed\x20to\x20read\x20Backend\x20Function\x20lock\x20file:\x20','9kbwBjA','364SJfyRf','3097650NXYAbC','parse'];a276_0x5d64=function(){return _0x350e1d;};return a276_0x5d64();}function a276_0x42ad(_0x1c3f9f,_0x321656){_0x1c3f9f=_0x1c3f9f-0x126;const _0x5d640e=a276_0x5d64();let _0x42ada7=_0x5d640e[_0x1c3f9f];return _0x42ada7;}import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';export function createEmptyBffLock(){return{'apps':{}};}export function ensureLockScope(_0x41e7cd,_0x10bd92,_0xa24ec0,_0x4b7d01){const _0x388ac9=a276_0x42ad,_0x5c1e8b={'apps':_0x41e7cd[_0x388ac9(0x12b)]&&typeof _0x41e7cd[_0x388ac9(0x12b)]==='object'?_0x41e7cd[_0x388ac9(0x12b)]:{}};let _0xfcda2f=_0x5c1e8b[_0x388ac9(0x12b)][_0x10bd92];if(!_0xfcda2f)return _0xfcda2f={'scriptsRoot':_0xa24ec0,'lastSync':'','functions':{}},_0x5c1e8b['apps'][_0x10bd92]=_0xfcda2f,{'lockData':_0x5c1e8b,'appLock':_0xfcda2f};if(!_0xfcda2f['scriptsRoot'])_0xfcda2f['scriptsRoot']=_0xa24ec0;else{if(_0xfcda2f[_0x388ac9(0x136)]!==_0xa24ec0)throw new Error(_0x4b7d01+_0x388ac9(0x137)+(_0x388ac9(0x132)+_0xa24ec0+_0x388ac9(0x128)+_0xfcda2f[_0x388ac9(0x136)]+'\x22.\x20')+_0x388ac9(0x127));}return!_0xfcda2f[_0x388ac9(0x12c)]&&(_0xfcda2f[_0x388ac9(0x12c)]={}),!_0xfcda2f[_0x388ac9(0x12a)]&&(_0xfcda2f[_0x388ac9(0x12a)]=''),{'lockData':_0x5c1e8b,'appLock':_0xfcda2f};}export async function readBffLockFile(_0x39cb0b){const _0x56c7e8=a276_0x42ad;try{const _0x2cfd3b=await readFile(_0x39cb0b,_0x56c7e8(0x133)),_0xe7555f=JSON[_0x56c7e8(0x131)](_0x2cfd3b);return{'apps':_0xe7555f[_0x56c7e8(0x12b)]&&typeof _0xe7555f[_0x56c7e8(0x12b)]===_0x56c7e8(0x134)?_0xe7555f[_0x56c7e8(0x12b)]:{}};}catch(_0x4a3c6b){if(_0x4a3c6b[_0x56c7e8(0x13b)]===_0x56c7e8(0x129))return null;throw new Error(_0x56c7e8(0x12d)+String(_0x4a3c6b));}}export async function writeBffLockFile(_0x204d9c,_0x4d4c74){const _0x551661=a276_0x42ad;await mkdir(dirname(_0x204d9c),{'recursive':!![]}),await writeFile(_0x204d9c,JSON['stringify'](_0x4d4c74,null,0x2),_0x551661(0x133));}
1
+ function a277_0xb44c(){const _0xc951d1=['scriptsRoot','9318336mvROvF','ENOENT','stringify','functions',':\x20scriptsRoot\x20mismatch\x20—\x20','2Ufjemw','parse','10Fjgfls','1385335rXlkEc','6qZGBjf','814254WRlXVs','19570851gAwbZD','\x22.\x20','utf8','apps','3304215qyLaYp','Failed\x20to\x20read\x20Backend\x20Function\x20lock\x20file:\x20','current\x20\x22','2505168QibWmk','object','3077418WqFPGK','lastSync','Check\x20.rabetbase/bff.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.'];a277_0xb44c=function(){return _0xc951d1;};return a277_0xb44c();}(function(_0x480add,_0x37090b){const _0x3d8dd0=a277_0xdac5,_0x25b81b=_0x480add();while(!![]){try{const _0x57232c=parseInt(_0x3d8dd0(0xe5))/0x1+parseInt(_0x3d8dd0(0xf8))/0x2*(parseInt(_0x3d8dd0(0xef))/0x3)+-parseInt(_0x3d8dd0(0xed))/0x4+parseInt(_0x3d8dd0(0xea))/0x5+-parseInt(_0x3d8dd0(0xe4))/0x6*(parseInt(_0x3d8dd0(0xfb))/0x7)+parseInt(_0x3d8dd0(0xf3))/0x8+parseInt(_0x3d8dd0(0xe6))/0x9*(-parseInt(_0x3d8dd0(0xfa))/0xa);if(_0x57232c===_0x37090b)break;else _0x25b81b['push'](_0x25b81b['shift']());}catch(_0x9ebb66){_0x25b81b['push'](_0x25b81b['shift']());}}}(a277_0xb44c,0xa2d4f));import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';export function createEmptyBffLock(){return{'apps':{}};}export function ensureLockScope(_0x4243a6,_0x347b12,_0x4c6232,_0x46de8f){const _0x2d67e6=a277_0xdac5,_0x37e281={'apps':_0x4243a6[_0x2d67e6(0xe9)]&&typeof _0x4243a6[_0x2d67e6(0xe9)]===_0x2d67e6(0xee)?_0x4243a6[_0x2d67e6(0xe9)]:{}};let _0x396cea=_0x37e281[_0x2d67e6(0xe9)][_0x347b12];if(!_0x396cea)return _0x396cea={'scriptsRoot':_0x4c6232,'lastSync':'','functions':{}},_0x37e281[_0x2d67e6(0xe9)][_0x347b12]=_0x396cea,{'lockData':_0x37e281,'appLock':_0x396cea};if(!_0x396cea[_0x2d67e6(0xf2)])_0x396cea[_0x2d67e6(0xf2)]=_0x4c6232;else{if(_0x396cea[_0x2d67e6(0xf2)]!==_0x4c6232)throw new Error(_0x46de8f+_0x2d67e6(0xf7)+(_0x2d67e6(0xec)+_0x4c6232+'\x22\x20vs\x20lock\x20\x22'+_0x396cea[_0x2d67e6(0xf2)]+_0x2d67e6(0xe7))+_0x2d67e6(0xf1));}return!_0x396cea[_0x2d67e6(0xf6)]&&(_0x396cea[_0x2d67e6(0xf6)]={}),!_0x396cea[_0x2d67e6(0xf0)]&&(_0x396cea[_0x2d67e6(0xf0)]=''),{'lockData':_0x37e281,'appLock':_0x396cea};}function a277_0xdac5(_0x1e4d1d,_0x1d56cc){_0x1e4d1d=_0x1e4d1d-0xe4;const _0xb44c64=a277_0xb44c();let _0xdac532=_0xb44c64[_0x1e4d1d];return _0xdac532;}export async function readBffLockFile(_0x237daa){const _0x352296=a277_0xdac5;try{const _0x25dc99=await readFile(_0x237daa,_0x352296(0xe8)),_0x24da58=JSON[_0x352296(0xf9)](_0x25dc99);return{'apps':_0x24da58['apps']&&typeof _0x24da58[_0x352296(0xe9)]===_0x352296(0xee)?_0x24da58['apps']:{}};}catch(_0x166244){if(_0x166244['code']===_0x352296(0xf4))return null;throw new Error(_0x352296(0xeb)+String(_0x166244));}}export async function writeBffLockFile(_0x2a3b2e,_0x217b0b){const _0x51f4d4=a277_0xdac5;await mkdir(dirname(_0x2a3b2e),{'recursive':!![]}),await writeFile(_0x2a3b2e,JSON[_0x51f4d4(0xf5)](_0x217b0b,null,0x2),_0x51f4d4(0xe8));}
@@ -1 +1 @@
1
- const a278_0x2b75e9=a278_0x4f58;(function(_0x31e6ad,_0x48aafa){const _0x115ace=a278_0x4f58,_0x46a9d8=_0x31e6ad();while(!![]){try{const _0x5c7870=-parseInt(_0x115ace(0x85))/0x1+-parseInt(_0x115ace(0x80))/0x2+-parseInt(_0x115ace(0x8b))/0x3+-parseInt(_0x115ace(0x8d))/0x4+-parseInt(_0x115ace(0x87))/0x5*(-parseInt(_0x115ace(0x98))/0x6)+-parseInt(_0x115ace(0x82))/0x7*(parseInt(_0x115ace(0x8e))/0x8)+parseInt(_0x115ace(0x7f))/0x9*(parseInt(_0x115ace(0x94))/0xa);if(_0x5c7870===_0x48aafa)break;else _0x46a9d8['push'](_0x46a9d8['shift']());}catch(_0x417a9e){_0x46a9d8['push'](_0x46a9d8['shift']());}}}(a278_0x1d90,0xefa97));export const DEFAULT_BFF_SCRIPT_DESCRIPTION='TODO:\x20补充脚本功能描述';function a278_0x4f58(_0x1f0780,_0xeb5cdd){_0x1f0780=_0x1f0780-0x7f;const _0x1d9086=a278_0x1d90();let _0x4f58e8=_0x1d9086[_0x1f0780];return _0x4f58e8;}const LEGACY_DEFAULT_BFF_SCRIPT_DESCRIPTION=a278_0x2b75e9(0x86);export function snakeToCamel(_0x3ed616){const _0x5df705=a278_0x2b75e9;return _0x3ed616[_0x5df705(0x8f)]()['replace'](/_([a-z])/g,(_0x337121,_0xac0917)=>_0xac0917['toUpperCase']());}export function findHookLocationByRemoteId(_0x18845a,_0x567ff5){const _0x3e62e4=a278_0x2b75e9;if(!_0x567ff5)return undefined;for(const [_0x4eb341,_0x55c084]of Object[_0x3e62e4(0x8c)](_0x18845a)){if(_0x55c084[_0x3e62e4(0x88)]===_0x567ff5&&_0x55c084[_0x3e62e4(0x8a)]&&_0x55c084['operationType']&&_0x55c084[_0x3e62e4(0x96)]){const _0x4f3aab=_0x4eb341[_0x3e62e4(0x92)]('/')[0x1];return{'alias':_0x4f3aab||_0x55c084['alias'],'datasetCode':_0x55c084[_0x3e62e4(0x8a)],'operationType':_0x55c084[_0x3e62e4(0x89)],'functionNode':_0x55c084[_0x3e62e4(0x96)]};}}return undefined;}function a278_0x1d90(){const _0x8ce415=['1542454yNASEJ','TODO:\x20add\x20script\x20description','1103555RJgXPF','remoteId','operationType','datasetCode','2244051YyfFVI','entries','3426496VNJCWo','1375768vJNzeF','toLowerCase','before','after','split','match','20644620LlLFbp','startsWith','functionNode','trim','6gkleZv','27nCdova','2850984XFuCKS','test','35IzjesI','map','some'];a278_0x1d90=function(){return _0x8ce415;};return a278_0x1d90();}export function extractScriptDescription(_0x5d276d){const _0x51a8b1=a278_0x2b75e9,_0x31641d=_0x5d276d[_0x51a8b1(0x93)](/^\s*\/\*\*([\s\S]*?)\*\//);if(!_0x31641d?.[0x1])return undefined;const _0x20d8fe=_0x31641d[0x1],_0x29f25d=_0x5d90a5=>{const _0x222ee8=_0x5d90a5?.['trim']();if(!_0x222ee8||_0x222ee8===DEFAULT_BFF_SCRIPT_DESCRIPTION||_0x222ee8===LEGACY_DEFAULT_BFF_SCRIPT_DESCRIPTION)return undefined;return _0x222ee8;},_0x30c565=_0x20d8fe['match'](/^\s*\*\s*\[\s*脚本描述\s*]\s*(.+)$/m);if(_0x30c565)return _0x29f25d(_0x30c565[0x1]);const _0x31615c=_0x20d8fe['split'](/\r?\n/)[_0x51a8b1(0x83)](_0x5efba2=>_0x5efba2['replace'](/^\s*\*\s?/,'')[_0x51a8b1(0x97)]()),_0x3dc1a5=_0x31615c[_0x51a8b1(0x84)](_0x28ce81=>/^\[\s*脚本类型\s*]\s*\S+/[_0x51a8b1(0x81)](_0x28ce81))&&_0x31615c[_0x51a8b1(0x84)](_0x462a33=>/^\[\s*脚本名称\s*]\s*\S+/['test'](_0x462a33));if(!_0x3dc1a5)return undefined;for(const _0x1f73f7 of _0x31615c){if(!_0x1f73f7||_0x1f73f7[_0x51a8b1(0x95)]('@')||/^\[[^\]]+]\s*/[_0x51a8b1(0x81)](_0x1f73f7))continue;return _0x29f25d(_0x1f73f7);}return undefined;}export function isValidBffFunctionName(_0x517817){const _0x3a4ce3=a278_0x2b75e9;return/^[A-Za-z_$][A-Za-z0-9_$]*$/[_0x3a4ce3(0x81)](_0x517817);}export function normalizeHookFunctionNode(_0x45719c){const _0x4457fb=a278_0x2b75e9;if(!_0x45719c)return undefined;const _0x5789f4=_0x45719c[_0x4457fb(0x97)]()[_0x4457fb(0x8f)]();if(_0x5789f4===_0x4457fb(0x90)||_0x5789f4===_0x4457fb(0x91))return _0x5789f4;return undefined;}
1
+ const a279_0x2c1fd1=a279_0x3503;(function(_0x2fd87a,_0x394fce){const _0x31033e=a279_0x3503,_0x106952=_0x2fd87a();while(!![]){try{const _0x3a10fb=parseInt(_0x31033e(0xf2))/0x1*(parseInt(_0x31033e(0xee))/0x2)+-parseInt(_0x31033e(0x105))/0x3+-parseInt(_0x31033e(0xfa))/0x4+parseInt(_0x31033e(0x100))/0x5*(parseInt(_0x31033e(0xfb))/0x6)+parseInt(_0x31033e(0xf8))/0x7+parseInt(_0x31033e(0xf9))/0x8+-parseInt(_0x31033e(0x102))/0x9;if(_0x3a10fb===_0x394fce)break;else _0x106952['push'](_0x106952['shift']());}catch(_0x28434f){_0x106952['push'](_0x106952['shift']());}}}(a279_0x2532,0x9f07a));export const DEFAULT_BFF_SCRIPT_DESCRIPTION=a279_0x2c1fd1(0xf1);const LEGACY_DEFAULT_BFF_SCRIPT_DESCRIPTION=a279_0x2c1fd1(0xef);export function snakeToCamel(_0x2471cb){const _0x3b6447=a279_0x2c1fd1;return _0x2471cb[_0x3b6447(0x106)]()['replace'](/_([a-z])/g,(_0x3c701e,_0x3547f8)=>_0x3547f8[_0x3b6447(0xf4)]());}export function findHookLocationByRemoteId(_0x3d4333,_0x11d0f4){const _0x4cffc3=a279_0x2c1fd1;if(!_0x11d0f4)return undefined;for(const [_0x328bfc,_0x23938a]of Object[_0x4cffc3(0x103)](_0x3d4333)){if(_0x23938a[_0x4cffc3(0xf3)]===_0x11d0f4&&_0x23938a[_0x4cffc3(0x108)]&&_0x23938a[_0x4cffc3(0x101)]&&_0x23938a['functionNode']){const _0xb0e838=_0x328bfc[_0x4cffc3(0xf7)]('/')[0x1];return{'alias':_0xb0e838||_0x23938a['alias'],'datasetCode':_0x23938a[_0x4cffc3(0x108)],'operationType':_0x23938a[_0x4cffc3(0x101)],'functionNode':_0x23938a[_0x4cffc3(0x107)]};}}return undefined;}function a279_0x3503(_0x5f4030,_0x4cca04){_0x5f4030=_0x5f4030-0xee;const _0x2532a4=a279_0x2532();let _0x35030d=_0x2532a4[_0x5f4030];return _0x35030d;}export function extractScriptDescription(_0x48d9fe){const _0x17333b=a279_0x2c1fd1,_0x3d8b26=_0x48d9fe[_0x17333b(0xf5)](/^\s*\/\*\*([\s\S]*?)\*\//);if(!_0x3d8b26?.[0x1])return undefined;const _0x11b5b6=_0x3d8b26[0x1],_0x28ba14=_0x9b09b4=>{const _0x2b7990=_0x17333b,_0x56747f=_0x9b09b4?.[_0x2b7990(0xf0)]();if(!_0x56747f||_0x56747f===DEFAULT_BFF_SCRIPT_DESCRIPTION||_0x56747f===LEGACY_DEFAULT_BFF_SCRIPT_DESCRIPTION)return undefined;return _0x56747f;},_0x51f34b=_0x11b5b6[_0x17333b(0xf5)](/^\s*\*\s*\[\s*脚本描述\s*]\s*(.+)$/m);if(_0x51f34b)return _0x28ba14(_0x51f34b[0x1]);const _0x502f68=_0x11b5b6['split'](/\r?\n/)['map'](_0x3357d5=>_0x3357d5[_0x17333b(0xfd)](/^\s*\*\s?/,'')[_0x17333b(0xf0)]()),_0x24471a=_0x502f68[_0x17333b(0xfc)](_0x4e8fb0=>/^\[\s*脚本类型\s*]\s*\S+/[_0x17333b(0xff)](_0x4e8fb0))&&_0x502f68[_0x17333b(0xfc)](_0x3a3c7f=>/^\[\s*脚本名称\s*]\s*\S+/[_0x17333b(0xff)](_0x3a3c7f));if(!_0x24471a)return undefined;for(const _0x22c725 of _0x502f68){if(!_0x22c725||_0x22c725[_0x17333b(0xf6)]('@')||/^\[[^\]]+]\s*/[_0x17333b(0xff)](_0x22c725))continue;return _0x28ba14(_0x22c725);}return undefined;}function a279_0x2532(){const _0x2f7591=['1txucYv','remoteId','toUpperCase','match','startsWith','split','2569238cCYlWA','6284728CvILld','1674468dkgSqR','306XHtsjR','some','replace','after','test','91495famQHn','operationType','9361548iTZRhO','entries','before','3205044tXeVBX','toLowerCase','functionNode','datasetCode','2185298NdLZRZ','TODO:\x20add\x20script\x20description','trim','TODO:\x20补充脚本功能描述'];a279_0x2532=function(){return _0x2f7591;};return a279_0x2532();}export function isValidBffFunctionName(_0x18d4f1){const _0x1bcf3e=a279_0x2c1fd1;return/^[A-Za-z_$][A-Za-z0-9_$]*$/[_0x1bcf3e(0xff)](_0x18d4f1);}export function normalizeHookFunctionNode(_0x1aab5f){const _0x3d1b56=a279_0x2c1fd1;if(!_0x1aab5f)return undefined;const _0x15aae0=_0x1aab5f[_0x3d1b56(0xf0)]()[_0x3d1b56(0x106)]();if(_0x15aae0===_0x3d1b56(0x104)||_0x15aae0===_0x3d1b56(0xfe))return _0x15aae0;return undefined;}
@@ -1 +1 @@
1
- function a279_0xabc2(_0x5d532b,_0x5650c3){_0x5d532b=_0x5d532b-0x15c;const _0xfb3a68=a279_0xfb3a();let _0xabc24=_0xfb3a68[_0x5d532b];return _0xabc24;}const a279_0x4b4867=a279_0xabc2;(function(_0x3f9ebc,_0xa1109c){const _0x3a0d6a=a279_0xabc2,_0x5ef314=_0x3f9ebc();while(!![]){try{const _0x44b99c=-parseInt(_0x3a0d6a(0x168))/0x1*(parseInt(_0x3a0d6a(0x15e))/0x2)+parseInt(_0x3a0d6a(0x15d))/0x3*(-parseInt(_0x3a0d6a(0x166))/0x4)+parseInt(_0x3a0d6a(0x160))/0x5+parseInt(_0x3a0d6a(0x164))/0x6*(parseInt(_0x3a0d6a(0x15f))/0x7)+-parseInt(_0x3a0d6a(0x15c))/0x8+-parseInt(_0x3a0d6a(0x165))/0x9+-parseInt(_0x3a0d6a(0x163))/0xa*(-parseInt(_0x3a0d6a(0x162))/0xb);if(_0x44b99c===_0xa1109c)break;else _0x5ef314['push'](_0x5ef314['shift']());}catch(_0x562a68){_0x5ef314['push'](_0x5ef314['shift']());}}}(a279_0xfb3a,0xe549c));export const CROSS_DB_RELATION_PATHS={'list':a279_0x4b4867(0x167),'create':a279_0x4b4867(0x161),'update':'/smartapi/cross-db-relation/update','delete':'/smartapi/cross-db-relation/delete'};function a279_0xfb3a(){const _0x38894f=['4764044ZSNpoK','/smartapi/cross-db-relation/query','2161JTTCmc','6692232xZuutF','3QPBGQT','1120psQAPf','784iMsuaf','2501405BpBSGt','/smartapi/cross-db-relation/create','1111lFbNsd','408040bCKTOQ','25728tnqhcJ','8323893zChofw'];a279_0xfb3a=function(){return _0x38894f;};return a279_0xfb3a();}
1
+ const a280_0x3e96e3=a280_0x4f1a;function a280_0x4f1a(_0x1e2058,_0x18ac14){_0x1e2058=_0x1e2058-0xae;const _0x3be44a=a280_0x3be4();let _0x4f1a85=_0x3be44a[_0x1e2058];return _0x4f1a85;}function a280_0x3be4(){const _0x1f868e=['124236prRKSv','10CqbrqG','244QlGKFj','3213728hQFrLZ','147958wRAJbt','/smartapi/cross-db-relation/create','1446977fhJMcY','/smartapi/cross-db-relation/delete','628240CTeuLH','12OjVPNi','62973NeeHmJ','18087ZGEfsm'];a280_0x3be4=function(){return _0x1f868e;};return a280_0x3be4();}(function(_0x34049d,_0x2d9a03){const _0x528552=a280_0x4f1a,_0x1dc7e7=_0x34049d();while(!![]){try{const _0x54f5cd=-parseInt(_0x528552(0xb1))/0x1+-parseInt(_0x528552(0xb9))/0x2+parseInt(_0x528552(0xb8))/0x3*(-parseInt(_0x528552(0xaf))/0x4)+parseInt(_0x528552(0xb5))/0x5+parseInt(_0x528552(0xb6))/0x6*(parseInt(_0x528552(0xb3))/0x7)+parseInt(_0x528552(0xb0))/0x8+-parseInt(_0x528552(0xb7))/0x9*(parseInt(_0x528552(0xae))/0xa);if(_0x54f5cd===_0x2d9a03)break;else _0x1dc7e7['push'](_0x1dc7e7['shift']());}catch(_0x1a7339){_0x1dc7e7['push'](_0x1dc7e7['shift']());}}}(a280_0x3be4,0x56e68));export const CROSS_DB_RELATION_PATHS={'list':'/smartapi/cross-db-relation/query','create':a280_0x3e96e3(0xb2),'update':'/smartapi/cross-db-relation/update','delete':a280_0x3e96e3(0xb4)};
@@ -1 +1 @@
1
- (function(_0xf52464,_0x3a04f7){const _0x23673a=a280_0x371d,_0x176761=_0xf52464();while(!![]){try{const _0x4b95dd=parseInt(_0x23673a(0x143))/0x1+parseInt(_0x23673a(0x152))/0x2+-parseInt(_0x23673a(0x156))/0x3+-parseInt(_0x23673a(0x15b))/0x4+-parseInt(_0x23673a(0x15f))/0x5*(parseInt(_0x23673a(0x15c))/0x6)+-parseInt(_0x23673a(0x149))/0x7+-parseInt(_0x23673a(0x150))/0x8*(-parseInt(_0x23673a(0x148))/0x9);if(_0x4b95dd===_0x3a04f7)break;else _0x176761['push'](_0x176761['shift']());}catch(_0x4eb00b){_0x176761['push'](_0x176761['shift']());}}}(a280_0x55c4,0x22f9c));import{listDatasets}from'../core/api-client.js';function a280_0x55c4(){const _0x87cb42=['db-','get','find','551772HfKJTF','filter','map','\x22.\x20Available:\x20','dbId','183336jowjnD','256458WgKrxp','includes','dbtableConfig','5SejeWv','Multiple\x20databases\x20found.\x20Specify\x20one\x20with\x20--db:\x20','108742zETdBq','join','.\x20Be\x20more\x20specific.','length','entries','63oQsEbU','628789zMmNOq','set','has','dbName','\x22\x20matches\x20multiple\x20databases:\x20','\x22\x20under\x20app\x20\x22','toLowerCase','275816vgEaTY','No\x20database\x20matching\x20\x22','311014DebpVb'];a280_0x55c4=function(){return _0x87cb42;};return a280_0x55c4();}const cache=new Map();export async function listDatabases(_0x3743bb){const _0x349bab=a280_0x371d;if(cache[_0x349bab(0x14b)](_0x3743bb))return cache[_0x349bab(0x154)](_0x3743bb);const _0x156291=await listDatasets(_0x3743bb),_0xc4482a=new Map();for(const _0x56ce03 of _0x156291){const _0x62da84=_0x56ce03[_0x349bab(0x15e)];_0x62da84?.['dbId']!=null&&_0xc4482a[_0x349bab(0x14a)](_0x62da84[_0x349bab(0x15a)],_0x62da84[_0x349bab(0x14c)]??_0x349bab(0x153)+_0x62da84[_0x349bab(0x15a)]);}const _0x242ece=[..._0xc4482a[_0x349bab(0x147)]()][_0x349bab(0x158)](([_0x5bb6a1,_0x41475c])=>({'dbId':_0x5bb6a1,'dbName':_0x41475c}));return cache['set'](_0x3743bb,_0x242ece),_0x242ece;}export async function resolveDb(_0x4cedb9,_0x4c9fd2){const _0x3a2b2d=a280_0x371d,_0x222864=await listDatabases(_0x4cedb9);if(_0x222864[_0x3a2b2d(0x146)]===0x0)return{'resolved':[],'error':'No\x20linked\x20databases\x20found\x20under\x20app\x20\x22'+_0x4cedb9+'\x22.\x20Make\x20sure\x20datasets\x20have\x20been\x20created.'};if(!_0x4c9fd2)return{'resolved':_0x222864};const _0x4547fd=Number(_0x4c9fd2);if(!Number['isNaN'](_0x4547fd)){const _0x198a8b=_0x222864['find'](_0xfd1d9=>_0xfd1d9[_0x3a2b2d(0x15a)]===_0x4547fd);if(_0x198a8b)return{'resolved':[_0x198a8b]};}const _0x556886=_0x4c9fd2['toLowerCase'](),_0x557ed3=_0x222864[_0x3a2b2d(0x157)](_0xab3142=>_0xab3142[_0x3a2b2d(0x14c)][_0x3a2b2d(0x14f)]()[_0x3a2b2d(0x15d)](_0x556886));if(_0x557ed3['length']>0x0)return{'resolved':_0x557ed3};const _0x1f07bd=_0x222864[_0x3a2b2d(0x158)](_0xb05558=>_0xb05558['dbName']+'\x20('+_0xb05558['dbId']+')')[_0x3a2b2d(0x144)](',\x20');return{'resolved':[],'error':_0x3a2b2d(0x151)+_0x4c9fd2+_0x3a2b2d(0x14e)+_0x4cedb9+_0x3a2b2d(0x159)+_0x1f07bd+'.\x20If\x20this\x20db\x20belongs\x20to\x20another\x20app,\x20rerun\x20with\x20--appcode\x20<appCode>.'};}export async function resolveOneDb(_0x241fe0,_0x42d3e8){const _0x56e630=a280_0x371d,{resolved:_0x408006,error:_0x2ca84b}=await resolveDb(_0x241fe0,_0x42d3e8);if(_0x2ca84b)return{'db':null,'error':_0x2ca84b};if(_0x408006[_0x56e630(0x146)]===0x1)return{'db':_0x408006[0x0]};if(!_0x42d3e8){const _0x297403=_0x408006[_0x56e630(0x158)](_0x511493=>_0x511493[_0x56e630(0x14c)]+'\x20('+_0x511493[_0x56e630(0x15a)]+')')[_0x56e630(0x144)](',\x20');return{'db':null,'error':_0x56e630(0x160)+_0x297403};}const _0x50d8e0=_0x408006[_0x56e630(0x158)](_0x56e9c9=>_0x56e9c9[_0x56e630(0x14c)]+'\x20('+_0x56e9c9[_0x56e630(0x15a)]+')')[_0x56e630(0x144)](',\x20');return{'db':null,'error':'\x22'+_0x42d3e8+_0x56e630(0x14d)+_0x50d8e0+_0x56e630(0x145)};}function a280_0x371d(_0x359105,_0x195aec){_0x359105=_0x359105-0x143;const _0x55c45e=a280_0x55c4();let _0x371d12=_0x55c45e[_0x359105];return _0x371d12;}export async function getDbName(_0x2288f8,_0x1bf69a){const _0x16b773=a280_0x371d,_0x1e3c62=await listDatabases(_0x2288f8);return _0x1e3c62[_0x16b773(0x155)](_0x9889f2=>_0x9889f2['dbId']===_0x1bf69a)?.[_0x16b773(0x14c)];}
1
+ (function(_0x41a0b7,_0x3ed81f){const _0x5c8fce=a281_0x3fdd,_0xaa5dba=_0x41a0b7();while(!![]){try{const _0x25f940=-parseInt(_0x5c8fce(0x197))/0x1*(parseInt(_0x5c8fce(0x19c))/0x2)+-parseInt(_0x5c8fce(0x193))/0x3+parseInt(_0x5c8fce(0x19b))/0x4*(parseInt(_0x5c8fce(0x191))/0x5)+parseInt(_0x5c8fce(0x187))/0x6+parseInt(_0x5c8fce(0x192))/0x7+-parseInt(_0x5c8fce(0x188))/0x8+parseInt(_0x5c8fce(0x185))/0x9;if(_0x25f940===_0x3ed81f)break;else _0xaa5dba['push'](_0xaa5dba['shift']());}catch(_0x2cd149){_0xaa5dba['push'](_0xaa5dba['shift']());}}}(a281_0x3ca6,0xcedfd));import{listDatasets}from'../core/api-client.js';const cache=new Map();export async function listDatabases(_0x25ecae){const _0x108397=a281_0x3fdd;if(cache[_0x108397(0x18f)](_0x25ecae))return cache[_0x108397(0x186)](_0x25ecae);const _0x194b0d=await listDatasets(_0x25ecae),_0x1c19a4=new Map();for(const _0x1116aa of _0x194b0d){const _0x53e87f=_0x1116aa['dbtableConfig'];_0x53e87f?.[_0x108397(0x19a)]!=null&&_0x1c19a4[_0x108397(0x18d)](_0x53e87f[_0x108397(0x19a)],_0x53e87f[_0x108397(0x190)]??'db-'+_0x53e87f['dbId']);}const _0x5a7371=[..._0x1c19a4['entries']()][_0x108397(0x194)](([_0x948ee2,_0x17bcca])=>({'dbId':_0x948ee2,'dbName':_0x17bcca}));return cache[_0x108397(0x18d)](_0x25ecae,_0x5a7371),_0x5a7371;}function a281_0x3ca6(){const _0x180547=['includes','dbId','30272EQPgqn','2SyYmHh','\x22.\x20Make\x20sure\x20datasets\x20have\x20been\x20created.','join','\x22\x20under\x20app\x20\x22','26789193hIsXWg','get','1391640KKTFcX','533944kaYkoZ','.\x20If\x20this\x20db\x20belongs\x20to\x20another\x20app,\x20rerun\x20with\x20--appcode\x20<appCode>.','No\x20linked\x20databases\x20found\x20under\x20app\x20\x22','find','isNaN','set','length','has','dbName','70xamVjv','1343874YDgtcD','3001995dbJeah','map','Multiple\x20databases\x20found.\x20Specify\x20one\x20with\x20--db:\x20','toLowerCase','1591686JiHTQG','\x22.\x20Available:\x20'];a281_0x3ca6=function(){return _0x180547;};return a281_0x3ca6();}function a281_0x3fdd(_0x36110a,_0x3f9ce3){_0x36110a=_0x36110a-0x183;const _0x3ca6ff=a281_0x3ca6();let _0x3fdd78=_0x3ca6ff[_0x36110a];return _0x3fdd78;}export async function resolveDb(_0x5b5a74,_0x58f619){const _0x567199=a281_0x3fdd,_0x8c7a1c=await listDatabases(_0x5b5a74);if(_0x8c7a1c['length']===0x0)return{'resolved':[],'error':_0x567199(0x18a)+_0x5b5a74+_0x567199(0x19d)};if(!_0x58f619)return{'resolved':_0x8c7a1c};const _0x578c84=Number(_0x58f619);if(!Number[_0x567199(0x18c)](_0x578c84)){const _0x5c3a3a=_0x8c7a1c[_0x567199(0x18b)](_0x1e711f=>_0x1e711f[_0x567199(0x19a)]===_0x578c84);if(_0x5c3a3a)return{'resolved':[_0x5c3a3a]};}const _0x125bc8=_0x58f619[_0x567199(0x196)](),_0x54bd09=_0x8c7a1c['filter'](_0x409452=>_0x409452[_0x567199(0x190)]['toLowerCase']()[_0x567199(0x199)](_0x125bc8));if(_0x54bd09[_0x567199(0x18e)]>0x0)return{'resolved':_0x54bd09};const _0x10d889=_0x8c7a1c['map'](_0x1378e6=>_0x1378e6[_0x567199(0x190)]+'\x20('+_0x1378e6[_0x567199(0x19a)]+')')[_0x567199(0x183)](',\x20');return{'resolved':[],'error':'No\x20database\x20matching\x20\x22'+_0x58f619+_0x567199(0x184)+_0x5b5a74+_0x567199(0x198)+_0x10d889+_0x567199(0x189)};}export async function resolveOneDb(_0x2af95b,_0x7d4fc5){const _0x578358=a281_0x3fdd,{resolved:_0x23bf69,error:_0x1bcf6a}=await resolveDb(_0x2af95b,_0x7d4fc5);if(_0x1bcf6a)return{'db':null,'error':_0x1bcf6a};if(_0x23bf69[_0x578358(0x18e)]===0x1)return{'db':_0x23bf69[0x0]};if(!_0x7d4fc5){const _0x2d2309=_0x23bf69[_0x578358(0x194)](_0x2ec934=>_0x2ec934[_0x578358(0x190)]+'\x20('+_0x2ec934[_0x578358(0x19a)]+')')[_0x578358(0x183)](',\x20');return{'db':null,'error':_0x578358(0x195)+_0x2d2309};}const _0x169a0e=_0x23bf69[_0x578358(0x194)](_0x4ea1e3=>_0x4ea1e3[_0x578358(0x190)]+'\x20('+_0x4ea1e3[_0x578358(0x19a)]+')')[_0x578358(0x183)](',\x20');return{'db':null,'error':'\x22'+_0x7d4fc5+'\x22\x20matches\x20multiple\x20databases:\x20'+_0x169a0e+'.\x20Be\x20more\x20specific.'};}export async function getDbName(_0x1a634f,_0x2ade2a){const _0x35812e=a281_0x3fdd,_0x418f8d=await listDatabases(_0x1a634f);return _0x418f8d[_0x35812e(0x18b)](_0x73a3d7=>_0x73a3d7[_0x35812e(0x19a)]===_0x2ade2a)?.[_0x35812e(0x190)];}
@@ -1 +1 @@
1
- const a281_0x3406bd=a281_0x102f;(function(_0x34602a,_0x4d7cdd){const _0x3bc465=a281_0x102f,_0x1906d4=_0x34602a();while(!![]){try{const _0x3a6160=parseInt(_0x3bc465(0x179))/0x1*(-parseInt(_0x3bc465(0x1b9))/0x2)+-parseInt(_0x3bc465(0x234))/0x3*(parseInt(_0x3bc465(0x241))/0x4)+parseInt(_0x3bc465(0x23a))/0x5*(parseInt(_0x3bc465(0x22d))/0x6)+-parseInt(_0x3bc465(0x290))/0x7+-parseInt(_0x3bc465(0x1db))/0x8*(parseInt(_0x3bc465(0x172))/0x9)+-parseInt(_0x3bc465(0x142))/0xa*(-parseInt(_0x3bc465(0x239))/0xb)+-parseInt(_0x3bc465(0x1e4))/0xc*(-parseInt(_0x3bc465(0x1e9))/0xd);if(_0x3a6160===_0x4d7cdd)break;else _0x1906d4['push'](_0x1906d4['shift']());}catch(_0x1d4cf4){_0x1906d4['push'](_0x1906d4['shift']());}}}(a281_0x1c91,0x810d7));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':a281_0x3406bd(0x1cf),'$id':a281_0x3406bd(0x213),'title':a281_0x3406bd(0x195),'type':a281_0x3406bd(0x190),'required':['flowName',a281_0x3406bd(0x151),a281_0x3406bd(0x283)],'$defs':{'userId':{'anyOf':[{'type':a281_0x3406bd(0x1fe),'minLength':0x1},{'type':a281_0x3406bd(0x14a),'minimum':0x1}]},'position':{'type':a281_0x3406bd(0x190),'required':['x','y'],'properties':{'x':{'type':a281_0x3406bd(0x297),'minimum':0x0},'y':{'type':a281_0x3406bd(0x297),'minimum':0x0}},'additionalProperties':!![]},'timeAmount':{'type':a281_0x3406bd(0x190),'required':[a281_0x3406bd(0x21e),a281_0x3406bd(0x284)],'properties':{'value':{'type':a281_0x3406bd(0x14a),'minimum':0x1},'unit':{'enum':[a281_0x3406bd(0x194),a281_0x3406bd(0x24a),a281_0x3406bd(0x21d),a281_0x3406bd(0x25d)]}},'additionalProperties':!![]},'flowNode':{'type':a281_0x3406bd(0x190),'required':['id',a281_0x3406bd(0x279),a281_0x3406bd(0x206),a281_0x3406bd(0x23f)],'properties':{'id':{'type':a281_0x3406bd(0x1fe),'pattern':'^[A-Za-z_][A-Za-z0-9_]*$'},'type':{'enum':[a281_0x3406bd(0x286),a281_0x3406bd(0x1a4),a281_0x3406bd(0x271),a281_0x3406bd(0x281),a281_0x3406bd(0x215),'NOTIFICATION']},'name':{'type':a281_0x3406bd(0x1fe),'minLength':0x1},'path':{'type':a281_0x3406bd(0x1fe),'minLength':0x1},'position':{'$ref':'#/$defs/position'},'approvalMode':{'enum':[a281_0x3406bd(0x27b),'ALL','ANY']},'taskMode':{'enum':['APPROVAL','HANDLE']},'assignee':{'type':a281_0x3406bd(0x190),'required':[a281_0x3406bd(0x1b8)],'properties':{'strategy':{'enum':['FIXED','ROLE']},'userIds':{'type':a281_0x3406bd(0x27a),'minItems':0x1,'items':{'$ref':a281_0x3406bd(0x157)}},'roleId':{'anyOf':[{'type':a281_0x3406bd(0x14a),'minimum':0x1},{'type':a281_0x3406bd(0x1fe),'pattern':a281_0x3406bd(0x187)}]}},'additionalProperties':!![]},'transferCandidates':{'type':a281_0x3406bd(0x190),'required':[a281_0x3406bd(0x1b8),a281_0x3406bd(0x15d)],'properties':{'strategy':{'const':a281_0x3406bd(0x19a)},'userIds':{'type':a281_0x3406bd(0x27a),'minItems':0x1,'items':{'$ref':a281_0x3406bd(0x157)}}},'additionalProperties':!![]},'sequential':{'type':a281_0x3406bd(0x28f)},'result':{'enum':[a281_0x3406bd(0x293),a281_0x3406bd(0x1cd)]},'scriptName':{'type':a281_0x3406bd(0x1fe),'minLength':0x1},'resultVariable':{'type':'string','pattern':a281_0x3406bd(0x144)},'async':{'type':a281_0x3406bd(0x190),'properties':{'enabled':{'type':a281_0x3406bd(0x28f)},'retryCount':{'type':a281_0x3406bd(0x14a),'minimum':0x1,'maximum':0xa},'retryInterval':{'$ref':a281_0x3406bd(0x208)}},'additionalProperties':!![]},'timeout':{'type':a281_0x3406bd(0x190),'properties':{'enabled':{'type':a281_0x3406bd(0x28f)},'duration':{'$ref':a281_0x3406bd(0x208)},'action':{'enum':[a281_0x3406bd(0x1f4),a281_0x3406bd(0x1f6),a281_0x3406bd(0x1c8)]},'interrupting':{'type':a281_0x3406bd(0x28f)},'scriptName':{'type':'string','minLength':0x1},'resultVariable':{'type':a281_0x3406bd(0x1fe),'pattern':a281_0x3406bd(0x144)}},'additionalProperties':!![]},'cc':{'type':a281_0x3406bd(0x190),'required':['recipientUserIds'],'properties':{'recipientUserIds':{'type':a281_0x3406bd(0x27a),'minItems':0x1,'maxItems':0x64,'uniqueItems':!![],'items':{'type':a281_0x3406bd(0x1fe),'minLength':0x1}},'visible':{'type':a281_0x3406bd(0x27a),'uniqueItems':!![],'items':{'type':'string','minLength':0x1}},'readSources':![]},'additionalProperties':!![]},'config':{'type':'object','required':[a281_0x3406bd(0x1b2),a281_0x3406bd(0x2a6)],'properties':{'version':{'enum':['v1']},'configCode':{'type':'string','minLength':0x1},'failurePolicy':{'enum':[a281_0x3406bd(0x2af),a281_0x3406bd(0x292)]},'template':{'type':a281_0x3406bd(0x190),'required':[a281_0x3406bd(0x204),a281_0x3406bd(0x15e)],'properties':{'title':{'type':a281_0x3406bd(0x1fe),'minLength':0x1},'summary':{'type':'string','minLength':0x1},'detailMarkdown':{'type':a281_0x3406bd(0x1fe)},'facts':{'type':a281_0x3406bd(0x27a),'maxItems':0x8,'items':{'type':'object','required':[a281_0x3406bd(0x158),'value'],'properties':{'label':{'type':a281_0x3406bd(0x1fe),'minLength':0x1},'value':{'type':a281_0x3406bd(0x1fe),'minLength':0x1}},'additionalProperties':!![]}},'actions':{'type':a281_0x3406bd(0x27a),'maxItems':0x2,'items':{'type':'object','required':[a281_0x3406bd(0x1f1),a281_0x3406bd(0x209)],'properties':{'text':{'type':a281_0x3406bd(0x1fe),'minLength':0x1},'url':{'type':a281_0x3406bd(0x1fe),'minLength':0x1}},'additionalProperties':!![]}}},'additionalProperties':!![]},'recipients':{'type':'array','items':{'type':'object','required':[a281_0x3406bd(0x279),a281_0x3406bd(0x21e)],'properties':{'type':{'enum':[a281_0x3406bd(0x1e2),a281_0x3406bd(0x16f),a281_0x3406bd(0x1aa)]},'value':{'type':'string','minLength':0x1},'role':{'enum':['TO','CC',a281_0x3406bd(0x1da)]}},'additionalProperties':!![]}}},'additionalProperties':!![]},'form':![],'formPermission':![]},'additionalProperties':!![]},'flowEdge':{'type':a281_0x3406bd(0x190),'properties':{'id':{'type':'string','pattern':a281_0x3406bd(0x144)},'source':{'type':a281_0x3406bd(0x1fe),'minLength':0x1},'target':{'type':a281_0x3406bd(0x1fe),'minLength':0x1},'sourceNodeId':{'type':'string','minLength':0x1},'targetNodeId':{'type':a281_0x3406bd(0x1fe),'minLength':0x1},'conditionType':{'enum':[a281_0x3406bd(0x25e),a281_0x3406bd(0x293),a281_0x3406bd(0x1cd),a281_0x3406bd(0x171)]},'expression':{'type':a281_0x3406bd(0x1fe)},'defaultFlow':{'type':'boolean'},'name':{'type':a281_0x3406bd(0x1fe)},'waypoints':{'type':'array','items':{'$ref':a281_0x3406bd(0x162)}}},'allOf':[{'anyOf':[{'required':[a281_0x3406bd(0x199)]},{'required':[a281_0x3406bd(0x22b)]}]},{'anyOf':[{'required':[a281_0x3406bd(0x257)]},{'required':[a281_0x3406bd(0x1e6)]}]}],'additionalProperties':!![]}},'properties':{'id':![],'appCode':![],'flowName':{'type':'string','minLength':0x1},'flowDesc':{'type':a281_0x3406bd(0x1fe)},'flowType':{'enum':['FORM_FLOW',a281_0x3406bd(0x19e)]},'datasetCode':{'type':a281_0x3406bd(0x1fe),'minLength':0x1},'pageId':{'type':a281_0x3406bd(0x14a)},'templateName':![],'flowJson':{'type':'object','required':[a281_0x3406bd(0x1a0),a281_0x3406bd(0x22a)],'properties':{'flowKey':![],'flowCode':![],'flowName':![],'bindDatasetCode':![],'datasetCode':![],'appCode':![],'pageId':![],'templateName':![],'schemaVersion':{'type':a281_0x3406bd(0x1fe),'const':a281_0x3406bd(0x21f),'description':a281_0x3406bd(0x210)},'formSchema':![],'formDefinitions':![],'formPermissions':![],'pageMode':{'const':'CUSTOM_PAGE'},'startPageId':![],'startPath':{'type':a281_0x3406bd(0x1fe),'minLength':0x1},'nodes':{'type':a281_0x3406bd(0x27a),'minItems':0x1,'items':{'$ref':a281_0x3406bd(0x1a9)}},'edges':{'type':a281_0x3406bd(0x27a),'minItems':0x1,'items':{'$ref':a281_0x3406bd(0x25a)}}},'additionalProperties':!![]}},'additionalProperties':!![]};const REMOVED_FLOW_JSON_FIELDS=[a281_0x3406bd(0x20f),a281_0x3406bd(0x156),a281_0x3406bd(0x14f),a281_0x3406bd(0x1f5),a281_0x3406bd(0x201),a281_0x3406bd(0x177),a281_0x3406bd(0x1af),a281_0x3406bd(0x193)],REMOVED_ROOT_FIELDS=['id',a281_0x3406bd(0x177),a281_0x3406bd(0x193)],DEFAULT_FLOW_SCHEMA_VERSION=a281_0x3406bd(0x21f),NODE_TYPES=new Set([a281_0x3406bd(0x286),a281_0x3406bd(0x1a4),a281_0x3406bd(0x271),a281_0x3406bd(0x281),a281_0x3406bd(0x215),a281_0x3406bd(0x1d8)]),CONDITION_TYPES=new Set([a281_0x3406bd(0x25e),a281_0x3406bd(0x293),a281_0x3406bd(0x1cd),a281_0x3406bd(0x171)]),APPROVAL_MODES=new Set([a281_0x3406bd(0x27b),a281_0x3406bd(0x299),a281_0x3406bd(0x1c9)]),APPROVAL_TASK_MODES=new Set([a281_0x3406bd(0x271),'HANDLE']),FLOW_TIME_UNITS=new Set(['SECONDS',a281_0x3406bd(0x24a),a281_0x3406bd(0x21d),a281_0x3406bd(0x25d)]),APPROVAL_TIMEOUT_ACTIONS=new Set([a281_0x3406bd(0x1f4),a281_0x3406bd(0x1f6),a281_0x3406bd(0x1c8)]),FLOW_TYPES=new Set(['FORM_FLOW','INDEPENDENT_FLOW']),FLOW_PAGE_MODES=new Set(['CUSTOM_PAGE',a281_0x3406bd(0x2ac)]),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([a281_0x3406bd(0x2af),a281_0x3406bd(0x292)]),NOTIFICATION_RECIPIENT_TYPES=new Set(['USER',a281_0x3406bd(0x16f),a281_0x3406bd(0x1aa)]),NOTIFICATION_RECIPIENT_ROLES=new Set(['TO','CC',a281_0x3406bd(0x1da)]),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='Custom\x20form\x20configuration\x20is\x20not\x20supported\x20by\x20this\x20rabetbase\x20version;\x20use\x20a\x20business\x20custom\x20page\x20instead.',UNSUPPORTED_PLATFORM_FORM_MESSAGE=a281_0x3406bd(0x1ac),RESERVED_RESULT_VARIABLES=new Set([a281_0x3406bd(0x176),a281_0x3406bd(0x147),'approval_sys_appCode',a281_0x3406bd(0x261),a281_0x3406bd(0x24b),'approval_sys_initiatorUsername',a281_0x3406bd(0x198),a281_0x3406bd(0x1ef),a281_0x3406bd(0x24c),a281_0x3406bd(0x196)]);export function normalizeFlowConfig(_0x540089){const _0x587928=a281_0x3406bd;if(!isRecord(_0x540089))throw new TypeError(_0x587928(0x1e0));const _0x139e2d=cloneJsonValue(_0x540089),_0x9d5e4a=_0x139e2d[_0x587928(0x283)],_0x55220b=isRecord(_0x9d5e4a)?cloneJsonValue(_0x9d5e4a):{},_0x52af1b=[],_0x15affb=[];for(const _0x1462d2 of REMOVED_ROOT_FIELDS){if(!Object[_0x587928(0x1f7)][_0x587928(0x1ed)][_0x587928(0x256)](_0x139e2d,_0x1462d2))continue;delete _0x139e2d[_0x1462d2],_0x15affb[_0x587928(0x262)](_0x1462d2),_0x52af1b[_0x587928(0x262)]({'code':_0x587928(0x24d),'path':_0x1462d2,'message':_0x1462d2+_0x587928(0x143)});}for(const _0x34a705 of REMOVED_FLOW_JSON_FIELDS){if(!Object[_0x587928(0x1f7)]['hasOwnProperty'][_0x587928(0x256)](_0x55220b,_0x34a705))continue;const _0x504ae6=_0x587928(0x237)+_0x34a705;delete _0x55220b[_0x34a705],_0x15affb['push'](_0x504ae6),_0x52af1b[_0x587928(0x262)]({'code':'legacy_field_removed','path':_0x504ae6,'message':_0x504ae6+_0x587928(0x143)});}if(Object['prototype'][_0x587928(0x1ed)][_0x587928(0x256)](_0x55220b,_0x587928(0x14d))){const _0x31667e=_0x55220b[_0x587928(0x14d)],_0x32c4ad=typeof _0x31667e===_0x587928(0x1fe)?_0x31667e[_0x587928(0x26a)]():_0x31667e;if(isEmptyJsonValue(_0x31667e)||_0x32c4ad===DEFAULT_FLOW_SCHEMA_VERSION){const _0x176150=_0x587928(0x1c5);delete _0x55220b[_0x587928(0x14d)],_0x15affb[_0x587928(0x262)](_0x176150),_0x52af1b[_0x587928(0x262)]({'code':'legacy_field_removed','path':_0x176150,'message':_0x176150+_0x587928(0x25b)+DEFAULT_FLOW_SCHEMA_VERSION+_0x587928(0x218)});}}removeEmptyMetadata(_0x55220b,_0x587928(0x283),_0x52af1b,_0x15affb);_0x139e2d[_0x587928(0x151)]==='INDEPENDENT_FLOW'&&!Object['prototype'][_0x587928(0x1ed)]['call'](_0x55220b,_0x587928(0x276))&&(_0x55220b[_0x587928(0x276)]=_0x587928(0x1c4));_0x139e2d[_0x587928(0x283)]=_0x55220b;if(typeof _0x139e2d[_0x587928(0x14f)]==='string')_0x139e2d['flowName']=_0x139e2d['flowName'][_0x587928(0x26a)]();return{'config':_0x139e2d,'warnings':_0x52af1b,'removedPaths':_0x15affb};}export function validateFlowConfig(_0x20ae3a){const _0x527f94=a281_0x3406bd;let _0x55ea6e;try{_0x55ea6e=normalizeFlowConfig(_0x20ae3a);}catch(_0xe60742){const _0x1accf3=_0xe60742 instanceof Error?_0xe60742['message']:String(_0xe60742),_0x10e2be={'flowJson':{}};return{'valid':![],'errors':[{'path':'$','message':_0x1accf3}],'warnings':[],'normalized':_0x10e2be,'validationConfig':_0x10e2be};}const _0x3f002d=_0x55ea6e[_0x527f94(0x1eb)],_0x59867a=cloneJsonValue(_0x3f002d),_0x1c24cb=_0x59867a[_0x527f94(0x283)];_0x1c24cb[_0x527f94(0x20f)]=_0x527f94(0x202),_0x1c24cb['flowName']=_0x3f002d['flowName'];typeof _0x3f002d[_0x527f94(0x201)]===_0x527f94(0x1fe)&&_0x3f002d[_0x527f94(0x201)][_0x527f94(0x26a)]()&&(_0x1c24cb['bindDatasetCode']=_0x3f002d[_0x527f94(0x201)][_0x527f94(0x26a)]());const _0x25ed8c=[];return validateOuterMetadata(_0x3f002d,_0x25ed8c),validateFlowClassification(_0x3f002d,_0x25ed8c),validateGraph(_0x3f002d[_0x527f94(0x283)],_0x25ed8c),{'valid':_0x25ed8c[_0x527f94(0x203)]===0x0,'errors':_0x25ed8c,'warnings':_0x55ea6e[_0x527f94(0x247)],'normalized':_0x3f002d,'validationConfig':_0x59867a};}function validateFlowClassification(_0x8b5121,_0x3b5f25){const _0x34bd52=a281_0x3406bd;if(!isRecord(_0x8b5121[_0x34bd52(0x283)]))return;const _0x1b0b4c=_0x8b5121[_0x34bd52(0x151)],_0x31f52a=_0x8b5121[_0x34bd52(0x283)][_0x34bd52(0x276)];_0x31f52a!==undefined&&(typeof _0x31f52a!==_0x34bd52(0x1fe)||!FLOW_PAGE_MODES[_0x34bd52(0x152)](_0x31f52a))&&_0x3b5f25['push']({'path':_0x34bd52(0x1d2),'message':_0x34bd52(0x272)+String(_0x31f52a)+'.'});_0x1b0b4c===_0x34bd52(0x17e)&&_0x31f52a!==undefined&&_0x3b5f25[_0x34bd52(0x262)]({'path':_0x34bd52(0x1d2),'message':_0x34bd52(0x188)});_0x1b0b4c==='INDEPENDENT_FLOW'&&_0x31f52a==='PLATFORM_FORM'&&_0x3b5f25[_0x34bd52(0x262)]({'path':_0x34bd52(0x1d2),'message':UNSUPPORTED_PLATFORM_FORM_MESSAGE});(_0x1b0b4c==='FORM_FLOW'||_0x1b0b4c===_0x34bd52(0x19e))&&validateCustomPageNavigation(_0x8b5121,_0x1b0b4c,_0x31f52a,_0x3b5f25);if(_0x1b0b4c!==_0x34bd52(0x17e)||!Array[_0x34bd52(0x1fb)](_0x8b5121[_0x34bd52(0x283)][_0x34bd52(0x1a0)]))return;_0x8b5121['flowJson'][_0x34bd52(0x1a0)][_0x34bd52(0x269)]((_0x5643f9,_0x52c9f6)=>{const _0x7fbedb=_0x34bd52;isRecord(_0x5643f9)&&_0x5643f9[_0x7fbedb(0x279)]===_0x7fbedb(0x271)&&_0x5643f9['taskMode']==='HANDLE'&&_0x3b5f25[_0x7fbedb(0x262)]({'path':'flowJson.nodes['+_0x52c9f6+_0x7fbedb(0x1ff),'message':_0x7fbedb(0x1bd)});});}function validateCustomPageNavigation(_0xb66e75,_0x2ee0af,_0x4aa555,_0x118143){const _0x48329e=a281_0x3406bd,_0x49a478=_0xb66e75[_0x48329e(0x283)]['startPageId'];_0x49a478!==undefined&&_0x118143['push']({'path':'flowJson.startPageId','message':_0x48329e(0x16d)});const _0x35ad31=_0xb66e75['flowJson'][_0x48329e(0x141)];_0x35ad31!==undefined&&(typeof _0x35ad31!==_0x48329e(0x1fe)||_0x35ad31['trim']()==='')&&_0x118143[_0x48329e(0x262)]({'path':_0x48329e(0x2a4),'message':_0x48329e(0x221)});const _0x300040=Array[_0x48329e(0x1fb)](_0xb66e75['flowJson'][_0x48329e(0x1a0)])?_0xb66e75['flowJson'][_0x48329e(0x1a0)][_0x48329e(0x1e5)]((_0x119f7b,_0x1c947b)=>({'node':_0x119f7b,'index':_0x1c947b}))['filter'](({node:_0x5e056a})=>isRecord(_0x5e056a)&&_0x5e056a[_0x48329e(0x223)]!==undefined):[],_0x9f3150=_0x35ad31!==undefined||_0x300040[_0x48329e(0x203)]>0x0,_0x556890=_0x4aa555===undefined&&_0x2ee0af==='INDEPENDENT_FLOW'?'CUSTOM_PAGE':_0x4aa555;_0x9f3150&&(_0x2ee0af!=='INDEPENDENT_FLOW'||_0x556890!==_0x48329e(0x1c4))&&(_0x35ad31!==undefined&&_0x118143[_0x48329e(0x262)]({'path':'flowJson.startPath','message':_0x48329e(0x220)}),_0x300040[_0x48329e(0x269)](({index:_0x4d4c6d})=>{const _0x5b21b9=_0x48329e;_0x118143[_0x5b21b9(0x262)]({'path':_0x5b21b9(0x1a5)+_0x4d4c6d+_0x5b21b9(0x255),'message':_0x5b21b9(0x164)});}));}export async function writeNormalizedFlowConfig(_0x2d056c,_0x42ea13,_0x1312f7={}){const _0x58183d=a281_0x3406bd,_0x83f354=resolve(_0x2d056c),_0x3e7799=_0x83f354+'.'+process['pid']+'.'+randomUUID()+_0x58183d(0x28a),_0x589649=JSON[_0x58183d(0x249)](_0x42ea13,null,0x2)+'\x0a';let _0x12d196;try{try{_0x12d196=(await stat(_0x83f354))['mode']&0x1ff;}catch{_0x12d196=undefined;}await writeFile(_0x3e7799,_0x589649,{'encoding':'utf8','flag':'wx','mode':_0x12d196??0x1a4});if(_0x12d196!==undefined)await chmod(_0x3e7799,_0x12d196);_0x1312f7[_0x58183d(0x1be)]===![]?(await link(_0x3e7799,_0x83f354),await unlink(_0x3e7799)):await rename(_0x3e7799,_0x83f354);}finally{await unlink(_0x3e7799)[_0x58183d(0x2ab)](()=>undefined);}}function validateOuterMetadata(_0x578105,_0x14f87f){const _0x5b4e25=a281_0x3406bd;(typeof _0x578105['flowName']!==_0x5b4e25(0x1fe)||_0x578105['flowName'][_0x5b4e25(0x26a)]()==='')&&_0x14f87f[_0x5b4e25(0x262)]({'path':'flowName','message':_0x5b4e25(0x20e)});_0x578105[_0x5b4e25(0x20a)]!==undefined&&typeof _0x578105[_0x5b4e25(0x20a)]!==_0x5b4e25(0x1fe)&&_0x14f87f[_0x5b4e25(0x262)]({'path':_0x5b4e25(0x20a),'message':_0x5b4e25(0x19d)});if(_0x578105['flowType']===undefined||_0x578105['flowType']===null)_0x14f87f[_0x5b4e25(0x262)]({'path':_0x5b4e25(0x151),'message':_0x5b4e25(0x1b4)});else(typeof _0x578105[_0x5b4e25(0x151)]!==_0x5b4e25(0x1fe)||!FLOW_TYPES[_0x5b4e25(0x152)](_0x578105[_0x5b4e25(0x151)]))&&_0x14f87f[_0x5b4e25(0x262)]({'path':_0x5b4e25(0x151),'message':_0x5b4e25(0x27d)+String(_0x578105[_0x5b4e25(0x151)])+'.'});_0x578105[_0x5b4e25(0x201)]!==undefined&&typeof _0x578105[_0x5b4e25(0x201)]!==_0x5b4e25(0x1fe)&&_0x14f87f[_0x5b4e25(0x262)]({'path':_0x5b4e25(0x201),'message':'datasetCode\x20must\x20be\x20a\x20string.'}),_0x578105[_0x5b4e25(0x1af)]!==undefined&&(!Number[_0x5b4e25(0x231)](_0x578105[_0x5b4e25(0x1af)])||_0x578105[_0x5b4e25(0x1af)]<0x0)&&_0x14f87f[_0x5b4e25(0x262)]({'path':_0x5b4e25(0x1af),'message':_0x5b4e25(0x1ce)}),_0x578105[_0x5b4e25(0x151)]===_0x5b4e25(0x19e)&&_0x578105[_0x5b4e25(0x201)]!==undefined&&_0x14f87f[_0x5b4e25(0x262)]({'path':_0x5b4e25(0x201),'message':_0x5b4e25(0x238)}),_0x578105[_0x5b4e25(0x151)]===_0x5b4e25(0x19e)&&_0x578105[_0x5b4e25(0x1af)]!==undefined&&_0x14f87f['push']({'path':_0x5b4e25(0x1af),'message':_0x5b4e25(0x28c)});}function validateGraph(_0x5a9cb9,_0xfb8c07){const _0x3b1569=a281_0x3406bd;if(!isRecord(_0x5a9cb9)){_0xfb8c07[_0x3b1569(0x262)]({'path':_0x3b1569(0x283),'message':_0x3b1569(0x1ae)});return;}!Array[_0x3b1569(0x1fb)](_0x5a9cb9[_0x3b1569(0x1a0)])&&_0xfb8c07[_0x3b1569(0x262)]({'path':_0x3b1569(0x291),'message':_0x3b1569(0x20b)});!Array[_0x3b1569(0x1fb)](_0x5a9cb9[_0x3b1569(0x22a)])&&_0xfb8c07[_0x3b1569(0x262)]({'path':_0x3b1569(0x167),'message':_0x3b1569(0x244)});Object[_0x3b1569(0x1f7)][_0x3b1569(0x1ed)][_0x3b1569(0x256)](_0x5a9cb9,_0x3b1569(0x14d))&&_0xfb8c07['push']({'path':_0x3b1569(0x1c5),'message':_0x3b1569(0x15f)+String(_0x5a9cb9[_0x3b1569(0x14d)])+'.\x20This\x20CLI\x20supports\x20only\x20'+DEFAULT_FLOW_SCHEMA_VERSION+'.'});for(const _0x53baf6 of[_0x3b1569(0x1ea),_0x3b1569(0x1d6),_0x3b1569(0x277)]){Object[_0x3b1569(0x1f7)][_0x3b1569(0x1ed)]['call'](_0x5a9cb9,_0x53baf6)&&_0xfb8c07['push']({'path':_0x3b1569(0x237)+_0x53baf6,'message':UNSUPPORTED_FORM_MESSAGE});}if(!Array[_0x3b1569(0x1fb)](_0x5a9cb9[_0x3b1569(0x1a0)])||!Array[_0x3b1569(0x1fb)](_0x5a9cb9[_0x3b1569(0x22a)]))return;const _0x33b12=new Map(),_0x55edf=[],_0x4bc0f2=[],_0x27d103=new Map(),_0x260011=new Map(),_0xc6d021=new Set();let _0x36de67=0x0;_0x5a9cb9['nodes']['forEach']((_0x22f65e,_0x2c2530)=>{const _0x190016=_0x3b1569,_0x52eab1=_0x190016(0x1a5)+_0x2c2530+']';if(!isRecord(_0x22f65e)){_0xfb8c07[_0x190016(0x262)]({'path':_0x52eab1,'message':'node\x20must\x20be\x20an\x20object.'});return;}const _0x243324=_0x22f65e;if(typeof _0x243324['id']!==_0x190016(0x1fe)||!BPMN_ID_PATTERN['test'](_0x243324['id']))_0xfb8c07['push']({'path':_0x52eab1+_0x190016(0x1a1),'message':'node\x20id\x20must\x20match\x20[A-Za-z_][A-Za-z0-9_]*.'});else _0x33b12[_0x190016(0x152)](_0x243324['id'])?_0xfb8c07[_0x190016(0x262)]({'path':_0x52eab1+_0x190016(0x1a1),'message':_0x190016(0x28d)+_0x243324['id']+'.'}):(_0x33b12[_0x190016(0x26b)](_0x243324['id'],_0x243324),_0xc6d021['add'](_0x243324['id']));if(!NODE_TYPES[_0x190016(0x152)](_0x243324['type']))_0xfb8c07[_0x190016(0x262)]({'path':_0x52eab1+_0x190016(0x267),'message':'Unsupported\x20node\x20type:\x20'+String(_0x243324[_0x190016(0x279)])+'.'});else{if(_0x243324[_0x190016(0x279)]==='START')_0x55edf['push'](_0x243324['id']);else _0x243324[_0x190016(0x279)]===_0x190016(0x1a4)&&_0x4bc0f2[_0x190016(0x262)](_0x243324['id']);}_0x243324['type']===_0x190016(0x271)&&(_0x243324[_0x190016(0x173)]===undefined||_0x243324['taskMode']===_0x190016(0x271))&&(_0x36de67+=0x1);validateNode(_0x243324,_0x52eab1,_0xfb8c07);if(_0x243324[_0x190016(0x279)]==='SCRIPT'){const _0x2256e8=resolveEffectiveResultVariable(_0x243324[_0x190016(0x28b)],![]);_0x2256e8&&(registerResultVariableOwner(_0x260011,_0x2256e8,_0x243324['id'],_0xfb8c07),!_0x27d103['has'](_0x2256e8)&&_0x27d103['set'](_0x2256e8,_0x243324['id']));}if(_0x243324['type']===_0x190016(0x271)&&isRecord(_0x243324[_0x190016(0x227)])&&_0x243324[_0x190016(0x227)]['enabled']===!![]&&_0x243324[_0x190016(0x227)][_0x190016(0x2a3)]===_0x190016(0x1c8)){const _0x4b6ce9=resolveEffectiveResultVariable(_0x243324[_0x190016(0x227)]['resultVariable'],!![]);_0x4b6ce9&&registerResultVariableOwner(_0x260011,_0x4b6ce9,_0x243324['id']+_0x190016(0x22c),_0xfb8c07);}});_0x55edf[_0x3b1569(0x203)]!==0x1&&_0xfb8c07[_0x3b1569(0x262)]({'path':'flowJson.nodes','message':_0x3b1569(0x1c2)});_0x4bc0f2[_0x3b1569(0x203)]===0x0&&_0xfb8c07['push']({'path':_0x3b1569(0x291),'message':_0x3b1569(0x25f)});const _0xbc5efb=new Map(),_0x49d431=new Map(),_0x69a235=new Map(),_0x381286=new Set();_0x5a9cb9[_0x3b1569(0x22a)][_0x3b1569(0x269)]((_0x422e96,_0x28cdba)=>{const _0x5c9427=_0x3b1569,_0x59176e=_0x5c9427(0x16c)+_0x28cdba+']';if(!isRecord(_0x422e96)){_0xfb8c07[_0x5c9427(0x262)]({'path':_0x59176e,'message':_0x5c9427(0x226)});return;}const _0x330e56=_0x422e96;_0x69a235['set'](_0x330e56,_0x59176e);const _0x5e1ab1=resolveEdgeEndpoint(_0x330e56[_0x5c9427(0x199)],_0x330e56[_0x5c9427(0x22b)]),_0x11448e=resolveEdgeEndpoint(_0x330e56[_0x5c9427(0x257)],_0x330e56[_0x5c9427(0x1e6)]);if(!_0x5e1ab1)_0xfb8c07[_0x5c9427(0x262)]({'path':_0x59176e+_0x5c9427(0x2a1),'message':_0x5c9427(0x1d7)});if(!_0x11448e)_0xfb8c07['push']({'path':_0x59176e+'.target','message':'edge\x20target\x20is\x20required.'});_0x5e1ab1&&!_0x33b12[_0x5c9427(0x152)](_0x5e1ab1)&&_0xfb8c07[_0x5c9427(0x262)]({'path':_0x59176e+'.source','message':_0x5c9427(0x233)+_0x5e1ab1+'.'});_0x11448e&&!_0x33b12[_0x5c9427(0x152)](_0x11448e)&&_0xfb8c07[_0x5c9427(0x262)]({'path':_0x59176e+_0x5c9427(0x236),'message':'Edge\x20target\x20node\x20not\x20found:\x20'+_0x11448e+'.'});if(_0x330e56['id']!==undefined){if(typeof _0x330e56['id']!==_0x5c9427(0x1fe)||!BPMN_ID_PATTERN['test'](_0x330e56['id']))_0xfb8c07[_0x5c9427(0x262)]({'path':_0x59176e+_0x5c9427(0x1a1),'message':_0x5c9427(0x1a8)});else{if(_0xc6d021[_0x5c9427(0x152)](_0x330e56['id']))_0xfb8c07[_0x5c9427(0x262)]({'path':_0x59176e+_0x5c9427(0x1a1),'message':_0x5c9427(0x20d)+_0x330e56['id']+'.'});else!_0xc6d021[_0x5c9427(0x152)](_0x330e56['id'])&&_0xc6d021[_0x5c9427(0x224)](_0x330e56['id']);}}if(_0x5e1ab1&&_0x11448e){const _0x32b517=_0x5e1ab1+'\x00'+_0x11448e+'\x00'+(_0x330e56[_0x5c9427(0x264)]??'ALWAYS');_0x381286[_0x5c9427(0x152)](_0x32b517)?_0xfb8c07[_0x5c9427(0x262)]({'path':_0x59176e,'message':_0x5c9427(0x216)+_0x5e1ab1+_0x5c9427(0x295)+_0x11448e+'\x20('+(_0x330e56[_0x5c9427(0x264)]??_0x5c9427(0x25e))+').'}):_0x381286[_0x5c9427(0x224)](_0x32b517);}validateEdge(_0x330e56,_0x59176e,_0xfb8c07),_0x5e1ab1&&_0x11448e&&(_0xbc5efb[_0x5c9427(0x1d9)](_0x5e1ab1)?.[_0x5c9427(0x262)](_0x330e56)??_0xbc5efb[_0x5c9427(0x26b)](_0x5e1ab1,[_0x330e56]),_0x49d431[_0x5c9427(0x1d9)](_0x11448e)?.['push'](_0x330e56)??_0x49d431[_0x5c9427(0x26b)](_0x11448e,[_0x330e56]));});if(_0x55edf[_0x3b1569(0x203)]!==0x1)return;validateGraphShape(_0x33b12,_0x55edf[0x0],_0x4bc0f2,_0xbc5efb,_0x49d431,_0x69a235,_0xfb8c07),validateScriptResultReferences(_0x33b12,_0x55edf[0x0],_0xbc5efb,_0x49d431,_0x69a235,_0x27d103,_0xfb8c07),validateApprovalResults(_0x33b12,_0x36de67,_0x4bc0f2,_0xfb8c07);}function validateNode(_0x418903,_0xab4347,_0x411380){const _0x17917d=a281_0x3406bd;for(const _0x4b4be5 of[_0x17917d(0x1f3),'formPermission']){Object[_0x17917d(0x1f7)][_0x17917d(0x1ed)]['call'](_0x418903,_0x4b4be5)&&_0x411380[_0x17917d(0x262)]({'path':_0xab4347+'.'+_0x4b4be5,'message':UNSUPPORTED_FORM_MESSAGE});}if(!NODE_TYPES[_0x17917d(0x152)](_0x418903[_0x17917d(0x279)]))return;(typeof _0x418903['name']!==_0x17917d(0x1fe)||_0x418903[_0x17917d(0x206)]['trim']()==='')&&_0x411380[_0x17917d(0x262)]({'path':_0xab4347+_0x17917d(0x19c),'message':'Every\x20node\x20requires\x20a\x20non-empty\x20name.'});_0x418903[_0x17917d(0x1af)]!==undefined&&_0x411380[_0x17917d(0x262)]({'path':_0xab4347+_0x17917d(0x165),'message':_0x17917d(0x214)});if(_0x418903[_0x17917d(0x223)]!==undefined){if(typeof _0x418903[_0x17917d(0x223)]!==_0x17917d(0x1fe)||_0x418903['path'][_0x17917d(0x26a)]()==='')_0x411380[_0x17917d(0x262)]({'path':_0xab4347+_0x17917d(0x2a5),'message':_0x17917d(0x170)});else _0x418903[_0x17917d(0x279)]!==_0x17917d(0x271)&&_0x418903[_0x17917d(0x279)]!==_0x17917d(0x1a4)&&_0x411380[_0x17917d(0x262)]({'path':_0xab4347+_0x17917d(0x2a5),'message':'node\x20path\x20is\x20supported\x20only\x20on\x20APPROVAL\x20or\x20END\x20nodes.'});}const _0x4ab451=_0x418903[_0x17917d(0x23f)];if(!isRecord(_0x4ab451))_0x411380[_0x17917d(0x262)]({'path':_0xab4347+_0x17917d(0x168),'message':_0x17917d(0x1e3)});else for(const _0x10de0a of['x','y']){const _0x4395b0=_0x4ab451[_0x10de0a];(typeof _0x4395b0!==_0x17917d(0x297)||!Number[_0x17917d(0x1a6)](_0x4395b0)||_0x4395b0<0x0)&&_0x411380[_0x17917d(0x262)]({'path':_0xab4347+_0x17917d(0x22f)+_0x10de0a,'message':_0x17917d(0x1ee)+_0x10de0a+_0x17917d(0x1c0)});}if(_0x418903['type']===_0x17917d(0x271)){const _0x445b18=_0x418903[_0x17917d(0x1bf)]??'SINGLE',_0x19f8ed=_0x418903[_0x17917d(0x173)]??_0x17917d(0x271);!APPROVAL_TASK_MODES[_0x17917d(0x152)](_0x19f8ed)&&_0x411380[_0x17917d(0x262)]({'path':_0xab4347+_0x17917d(0x296),'message':_0x17917d(0x24f)+String(_0x19f8ed)+'.'});!APPROVAL_MODES['has'](_0x445b18)&&_0x411380[_0x17917d(0x262)]({'path':_0xab4347+_0x17917d(0x1e1),'message':'Unsupported\x20approval\x20mode:\x20'+String(_0x445b18)+'.'});if(!isRecord(_0x418903[_0x17917d(0x26d)]))_0x411380['push']({'path':_0xab4347+'.assignee','message':_0x17917d(0x246)});else{const _0x8f24fd=_0x418903[_0x17917d(0x26d)][_0x17917d(0x1b8)];_0x8f24fd!==_0x17917d(0x19a)&&_0x8f24fd!==_0x17917d(0x16f)&&_0x411380[_0x17917d(0x262)]({'path':_0xab4347+_0x17917d(0x1ca),'message':'assignee.strategy\x20must\x20be\x20FIXED\x20or\x20ROLE.'});if(_0x8f24fd===_0x17917d(0x19a)){const _0x2290c4=_0x418903[_0x17917d(0x26d)]['userIds'];if(!Array[_0x17917d(0x1fb)](_0x2290c4)||_0x2290c4[_0x17917d(0x203)]===0x0)_0x411380[_0x17917d(0x262)]({'path':_0xab4347+'.assignee.userIds','message':_0x17917d(0x1ec)});else{const _0x43d521=_0x2290c4[_0x17917d(0x21b)](_0x46e5ec=>!isValidUserId(_0x46e5ec));_0x43d521>=0x0&&_0x411380[_0x17917d(0x262)]({'path':_0xab4347+'.assignee.userIds['+_0x43d521+']','message':_0x17917d(0x19b)});const _0x4f1dcc=new Set(_0x2290c4[_0x17917d(0x191)](isValidUserId)[_0x17917d(0x1e5)](_0x139f4b=>String(_0x139f4b)[_0x17917d(0x26a)]()));_0x445b18===_0x17917d(0x27b)&&_0x4f1dcc['size']>0x1&&_0x411380[_0x17917d(0x262)]({'path':_0xab4347+_0x17917d(0x178),'message':_0x17917d(0x14e)});}}if(_0x8f24fd===_0x17917d(0x16f)){const _0x1bb9ef=_0x418903['assignee'][_0x17917d(0x1bb)],_0x3517c4=typeof _0x1bb9ef===_0x17917d(0x297)||typeof _0x1bb9ef===_0x17917d(0x1fe)?Number(String(_0x1bb9ef)[_0x17917d(0x26a)]()):Number[_0x17917d(0x21a)];(!Number[_0x17917d(0x169)](_0x3517c4)||_0x3517c4<=0x0)&&_0x411380[_0x17917d(0x262)]({'path':_0xab4347+_0x17917d(0x24e),'message':_0x17917d(0x1a2)});}}if(_0x418903[_0x17917d(0x1e7)]!==undefined){if(!isRecord(_0x418903[_0x17917d(0x1e7)]))_0x411380[_0x17917d(0x262)]({'path':_0xab4347+'.transferCandidates','message':_0x17917d(0x14c)});else{if(_0x418903[_0x17917d(0x1e7)][_0x17917d(0x1b8)]!==_0x17917d(0x19a))_0x411380[_0x17917d(0x262)]({'path':_0xab4347+_0x17917d(0x280),'message':'transferCandidates\x20currently\x20supports\x20FIXED\x20only.'});else{const _0x427801=_0x418903[_0x17917d(0x1e7)]['userIds'];if(!Array[_0x17917d(0x1fb)](_0x427801)||_0x427801[_0x17917d(0x203)]===0x0)_0x411380['push']({'path':_0xab4347+_0x17917d(0x29f),'message':_0x17917d(0x16a)});else{const _0x47445e=_0x427801['findIndex'](_0x3899e4=>!isValidUserId(_0x3899e4));_0x47445e>=0x0&&_0x411380[_0x17917d(0x262)]({'path':_0xab4347+_0x17917d(0x27c)+_0x47445e+']','message':_0x17917d(0x260)});}}}}}_0x418903['sequential']!==undefined&&typeof _0x418903[_0x17917d(0x18d)]!==_0x17917d(0x28f)&&_0x411380[_0x17917d(0x262)]({'path':_0xab4347+'.sequential','message':_0x17917d(0x18f)});if(_0x418903[_0x17917d(0x279)]===_0x17917d(0x215)){(typeof _0x418903[_0x17917d(0x184)]!==_0x17917d(0x1fe)||_0x418903[_0x17917d(0x184)][_0x17917d(0x26a)]()==='')&&_0x411380[_0x17917d(0x262)]({'path':_0xab4347+_0x17917d(0x228),'message':_0x17917d(0x1a7)});if(_0x418903[_0x17917d(0x28b)]!==undefined){if(typeof _0x418903[_0x17917d(0x28b)]!==_0x17917d(0x1fe)||!VARIABLE_PATTERN[_0x17917d(0x285)](_0x418903[_0x17917d(0x28b)]))_0x411380[_0x17917d(0x262)]({'path':_0xab4347+_0x17917d(0x1f8),'message':_0x17917d(0x211)});else(RESERVED_RESULT_VARIABLES[_0x17917d(0x152)](_0x418903[_0x17917d(0x28b)])||_0x418903[_0x17917d(0x28b)]['startsWith'](_0x17917d(0x183)))&&_0x411380[_0x17917d(0x262)]({'path':_0xab4347+'.resultVariable','message':_0x17917d(0x1dd)+_0x418903['resultVariable']+'.'});}}validateAsyncExecution(_0x418903,_0xab4347,_0x411380),validateApprovalTimeout(_0x418903,_0xab4347,_0x411380),validateCcConfig(_0x418903,_0xab4347,_0x411380),_0x418903['type']===_0x17917d(0x1d8)&&validateNotificationConfig(_0x418903[_0x17917d(0x1eb)],_0xab4347+_0x17917d(0x29b),_0x411380);}function validateAsyncExecution(_0x191460,_0x2f8cc2,_0x57383e){const _0x45f10d=a281_0x3406bd;if(_0x191460[_0x45f10d(0x266)]===undefined)return;if(!isRecord(_0x191460['async'])){_0x57383e[_0x45f10d(0x262)]({'path':_0x2f8cc2+'.async','message':'async\x20must\x20be\x20an\x20object.'});return;}if(_0x191460[_0x45f10d(0x266)]['enabled']!==undefined&&typeof _0x191460['async']['enabled']!==_0x45f10d(0x28f)){_0x57383e['push']({'path':_0x2f8cc2+_0x45f10d(0x17b),'message':_0x45f10d(0x1d1)});return;}if(_0x191460[_0x45f10d(0x266)]['enabled']!==!![])return;_0x191460['type']!==_0x45f10d(0x215)&&_0x57383e[_0x45f10d(0x262)]({'path':_0x2f8cc2+_0x45f10d(0x275),'message':_0x45f10d(0x205)});const _0x5ba7cb=_0x191460[_0x45f10d(0x266)]['retryCount']??0x3;(!Number[_0x45f10d(0x231)](_0x5ba7cb)||_0x5ba7cb<0x1||_0x5ba7cb>MAX_ASYNC_RETRY_COUNT)&&_0x57383e[_0x45f10d(0x262)]({'path':_0x2f8cc2+'.async.retryCount','message':_0x45f10d(0x1f2)+MAX_ASYNC_RETRY_COUNT+'.'}),_0x191460['async'][_0x45f10d(0x207)]!==undefined&&validateTimeAmount(_0x191460[_0x45f10d(0x266)][_0x45f10d(0x207)],_0x2f8cc2+_0x45f10d(0x27f),_0x57383e);}function a281_0x102f(_0x2c7563,_0x917277){_0x2c7563=_0x2c7563-0x141;const _0x1c91b9=a281_0x1c91();let _0x102f71=_0x1c91b9[_0x2c7563];return _0x102f71;}function validateApprovalTimeout(_0x4d069d,_0x49374a,_0x328ff8){const _0x33af46=a281_0x3406bd;if(_0x4d069d['timeout']===undefined)return;if(!isRecord(_0x4d069d[_0x33af46(0x227)])){_0x328ff8[_0x33af46(0x262)]({'path':_0x49374a+_0x33af46(0x22c),'message':_0x33af46(0x254)});return;}if(_0x4d069d['timeout']['enabled']!==undefined&&typeof _0x4d069d[_0x33af46(0x227)][_0x33af46(0x2ad)]!=='boolean'){_0x328ff8[_0x33af46(0x262)]({'path':_0x49374a+'.timeout.enabled','message':'timeout.enabled\x20must\x20be\x20a\x20boolean.'});return;}if(_0x4d069d[_0x33af46(0x227)][_0x33af46(0x2ad)]!==!![])return;if(_0x4d069d[_0x33af46(0x227)]['interrupting']!==undefined&&typeof _0x4d069d[_0x33af46(0x227)]['interrupting']!==_0x33af46(0x28f)){_0x328ff8['push']({'path':_0x49374a+_0x33af46(0x1b7),'message':_0x33af46(0x258)});return;}_0x4d069d[_0x33af46(0x279)]!==_0x33af46(0x271)&&_0x328ff8['push']({'path':_0x49374a+'.timeout','message':_0x33af46(0x259)});validateTimeAmount(_0x4d069d[_0x33af46(0x227)]['duration'],_0x49374a+_0x33af46(0x252),_0x328ff8);const _0x12c6f2=_0x4d069d[_0x33af46(0x227)][_0x33af46(0x2a3)];if(!APPROVAL_TIMEOUT_ACTIONS[_0x33af46(0x152)](_0x12c6f2)){_0x328ff8[_0x33af46(0x262)]({'path':_0x49374a+_0x33af46(0x16b),'message':_0x33af46(0x1c6)});return;}(_0x4d069d[_0x33af46(0x173)]??_0x33af46(0x271))===_0x33af46(0x163)&&_0x12c6f2!==_0x33af46(0x1c8)&&_0x328ff8['push']({'path':_0x49374a+_0x33af46(0x16b),'message':_0x33af46(0x154)});const _0x2c2c40=_0x4d069d[_0x33af46(0x227)]['interrupting']??_0x12c6f2!==_0x33af46(0x1c8);if(_0x12c6f2===_0x33af46(0x1c8))_0x2c2c40&&_0x328ff8[_0x33af46(0x262)]({'path':_0x49374a+_0x33af46(0x1b7),'message':_0x33af46(0x1fd)}),(typeof _0x4d069d[_0x33af46(0x227)][_0x33af46(0x184)]!==_0x33af46(0x1fe)||_0x4d069d[_0x33af46(0x227)][_0x33af46(0x184)]['trim']()==='')&&_0x328ff8[_0x33af46(0x262)]({'path':_0x49374a+_0x33af46(0x268),'message':_0x33af46(0x160)}),validateOptionalResultVariable(_0x4d069d[_0x33af46(0x227)][_0x33af46(0x28b)],_0x49374a+_0x33af46(0x145),_0x328ff8);else!_0x2c2c40&&_0x328ff8[_0x33af46(0x262)]({'path':_0x49374a+_0x33af46(0x1b7),'message':_0x12c6f2+_0x33af46(0x175)});}function validateTimeAmount(_0x4e3e64,_0x559e19,_0x2e5919){const _0x4c3e0d=a281_0x3406bd;if(!isRecord(_0x4e3e64)){_0x2e5919[_0x4c3e0d(0x262)]({'path':_0x559e19,'message':_0x4c3e0d(0x2a2)});return;}(!Number[_0x4c3e0d(0x231)](_0x4e3e64[_0x4c3e0d(0x21e)])||Number(_0x4e3e64[_0x4c3e0d(0x21e)])<=0x0)&&_0x2e5919[_0x4c3e0d(0x262)]({'path':_0x559e19+'.value','message':_0x4c3e0d(0x161)}),!FLOW_TIME_UNITS[_0x4c3e0d(0x152)](_0x4e3e64['unit'])&&_0x2e5919[_0x4c3e0d(0x262)]({'path':_0x559e19+'.unit','message':_0x4c3e0d(0x242)});}function validateOptionalResultVariable(_0x25da3a,_0x3ceaec,_0x5abadd){const _0x461cf0=a281_0x3406bd;if(_0x25da3a===undefined||_0x25da3a===null||_0x25da3a==='')return;if(typeof _0x25da3a!==_0x461cf0(0x1fe)||!VARIABLE_PATTERN['test'](_0x25da3a))_0x5abadd[_0x461cf0(0x262)]({'path':_0x3ceaec,'message':_0x461cf0(0x211)});else(RESERVED_RESULT_VARIABLES[_0x461cf0(0x152)](_0x25da3a)||_0x25da3a[_0x461cf0(0x150)](_0x461cf0(0x183)))&&_0x5abadd[_0x461cf0(0x262)]({'path':_0x3ceaec,'message':'Reserved\x20resultVariable:\x20'+_0x25da3a+'.'});}function validateCcConfig(_0x2bf48c,_0x143ae4,_0x58516a){const _0x1e7ae2=a281_0x3406bd;if(_0x2bf48c['cc']===undefined)return;if(!isRecord(_0x2bf48c['cc'])){_0x58516a['push']({'path':_0x143ae4+_0x1e7ae2(0x21c),'message':_0x1e7ae2(0x18c)});return;}_0x2bf48c[_0x1e7ae2(0x279)]!==_0x1e7ae2(0x1a4)&&_0x2bf48c[_0x1e7ae2(0x279)]!==_0x1e7ae2(0x271)&&_0x58516a[_0x1e7ae2(0x262)]({'path':_0x143ae4+_0x1e7ae2(0x21c),'message':_0x1e7ae2(0x278)});Object[_0x1e7ae2(0x1f7)][_0x1e7ae2(0x1ed)][_0x1e7ae2(0x256)](_0x2bf48c['cc'],'readSources')&&_0x58516a[_0x1e7ae2(0x262)]({'path':_0x143ae4+_0x1e7ae2(0x23e),'message':UNSUPPORTED_FORM_MESSAGE});const _0x1ae637=_0x2bf48c['cc'][_0x1e7ae2(0x29e)];if(!Array[_0x1e7ae2(0x1fb)](_0x1ae637)||_0x1ae637[_0x1e7ae2(0x203)]===0x0)_0x58516a[_0x1e7ae2(0x262)]({'path':_0x143ae4+_0x1e7ae2(0x25c),'message':_0x1e7ae2(0x26c)});else{_0x1ae637[_0x1e7ae2(0x203)]>MAX_CC_RECIPIENTS&&_0x58516a[_0x1e7ae2(0x262)]({'path':_0x143ae4+'.cc.recipientUserIds','message':_0x1e7ae2(0x166)+MAX_CC_RECIPIENTS+_0x1e7ae2(0x22e)});const _0x38613d=new Set();_0x1ae637[_0x1e7ae2(0x269)]((_0x283db5,_0x21d1ea)=>{const _0x5b0736=_0x1e7ae2;if(typeof _0x283db5!=='string'||_0x283db5[_0x5b0736(0x26a)]()==='')_0x58516a[_0x5b0736(0x262)]({'path':_0x143ae4+'.cc.recipientUserIds['+_0x21d1ea+']','message':'cc\x20recipient\x20userId\x20must\x20be\x20a\x20non-empty\x20string.'});else _0x38613d[_0x5b0736(0x152)](_0x283db5[_0x5b0736(0x26a)]())?_0x58516a[_0x5b0736(0x262)]({'path':_0x143ae4+'.cc.recipientUserIds['+_0x21d1ea+']','message':_0x5b0736(0x240)+_0x283db5['trim']()+'.'}):_0x38613d[_0x5b0736(0x224)](_0x283db5[_0x5b0736(0x26a)]());});}validateStringArray(_0x2bf48c['cc']['visible'],_0x143ae4+_0x1e7ae2(0x146),_0x58516a);}function validateStringArray(_0x4a2125,_0x3a6aaf,_0x2366ad){const _0x62d0f4=a281_0x3406bd;if(_0x4a2125===undefined)return;if(!Array[_0x62d0f4(0x1fb)](_0x4a2125)){_0x2366ad['push']({'path':_0x3a6aaf,'message':'value\x20must\x20be\x20an\x20array.'});return;}const _0x19fdc5=new Set();_0x4a2125['forEach']((_0x3849d7,_0x202dcb)=>{const _0x591d64=_0x62d0f4;if(typeof _0x3849d7!==_0x591d64(0x1fe)||_0x3849d7[_0x591d64(0x26a)]()==='')_0x2366ad[_0x591d64(0x262)]({'path':_0x3a6aaf+'['+_0x202dcb+']','message':_0x591d64(0x263)});else _0x19fdc5[_0x591d64(0x152)](_0x3849d7[_0x591d64(0x26a)]())?_0x2366ad['push']({'path':_0x3a6aaf+'['+_0x202dcb+']','message':_0x591d64(0x29c)+_0x3849d7[_0x591d64(0x26a)]()+'.'}):_0x19fdc5[_0x591d64(0x224)](_0x3849d7['trim']());});}function validateNotificationConfig(_0x15591b,_0x3e1ce4,_0x238a7e){const _0x2cede1=a281_0x3406bd;if(!isRecord(_0x15591b)){_0x238a7e[_0x2cede1(0x262)]({'path':_0x3e1ce4,'message':_0x2cede1(0x155)});return;}if(_0x15591b[_0x2cede1(0x225)]!==undefined&&_0x15591b[_0x2cede1(0x225)]!==null){if(typeof _0x15591b[_0x2cede1(0x225)]!=='string')_0x238a7e[_0x2cede1(0x262)]({'path':_0x3e1ce4+_0x2cede1(0x230),'message':_0x2cede1(0x1fa)});else _0x15591b[_0x2cede1(0x225)][_0x2cede1(0x26a)]()&&_0x15591b[_0x2cede1(0x225)][_0x2cede1(0x26a)]()!=='v1'&&_0x238a7e[_0x2cede1(0x262)]({'path':_0x3e1ce4+'.version','message':_0x2cede1(0x15b)+_0x15591b[_0x2cede1(0x225)]+'.'});}const _0x221e92=requireNotificationString(_0x15591b[_0x2cede1(0x1b2)],_0x3e1ce4+_0x2cede1(0x1cb),_0x2cede1(0x294),_0x238a7e);_0x221e92?.['includes']('${')&&_0x238a7e[_0x2cede1(0x262)]({'path':_0x3e1ce4+'.configCode','message':'Notification\x20configCode\x20must\x20be\x20a\x20fixed\x20value.'});if(_0x15591b[_0x2cede1(0x1b0)]!==undefined&&_0x15591b[_0x2cede1(0x1b0)]!==null){if(typeof _0x15591b[_0x2cede1(0x1b0)]!==_0x2cede1(0x1fe))_0x238a7e['push']({'path':_0x3e1ce4+'.failurePolicy','message':'failurePolicy\x20must\x20be\x20a\x20string.'});else!NOTIFICATION_FAILURE_POLICIES[_0x2cede1(0x152)](_0x15591b[_0x2cede1(0x1b0)][_0x2cede1(0x26a)]()[_0x2cede1(0x273)]())&&_0x238a7e[_0x2cede1(0x262)]({'path':_0x3e1ce4+_0x2cede1(0x222),'message':'failurePolicy\x20must\x20be\x20CONTINUE\x20or\x20FAIL.'});}!isRecord(_0x15591b[_0x2cede1(0x2a6)])?_0x238a7e[_0x2cede1(0x262)]({'path':_0x3e1ce4+_0x2cede1(0x217),'message':_0x2cede1(0x16e)}):validateNotificationTemplate(_0x15591b[_0x2cede1(0x2a6)],_0x3e1ce4+'.template',_0x238a7e),validateNotificationRecipients(_0x15591b[_0x2cede1(0x253)],_0x3e1ce4+_0x2cede1(0x20c),_0x238a7e);}function validateNotificationTemplate(_0x20171b,_0x5cde72,_0x2fa6b5){const _0x4a2c43=a281_0x3406bd;for(const _0x5ac714 of['title','summary']){const _0x4bd61f=requireNotificationString(_0x20171b[_0x5ac714],_0x5cde72+'.'+_0x5ac714,_0x4a2c43(0x182)+_0x5ac714+_0x4a2c43(0x29a),_0x2fa6b5);if(_0x4bd61f)validateNotificationPlaceholders(_0x4bd61f,_0x5cde72+'.'+_0x5ac714,_0x2fa6b5);}_0x20171b['detailMarkdown']!==undefined&&_0x20171b[_0x4a2c43(0x200)]!==null&&(typeof _0x20171b['detailMarkdown']!==_0x4a2c43(0x1fe)?_0x2fa6b5[_0x4a2c43(0x262)]({'path':_0x5cde72+_0x4a2c43(0x1f0),'message':'Notification\x20template.detailMarkdown\x20must\x20be\x20a\x20string.'}):validateNotificationPlaceholders(_0x20171b['detailMarkdown'],_0x5cde72+_0x4a2c43(0x1f0),_0x2fa6b5)),validateNotificationFacts(_0x20171b[_0x4a2c43(0x197)],_0x5cde72+'.facts',_0x2fa6b5),validateNotificationActions(_0x20171b[_0x4a2c43(0x2a9)],_0x5cde72+_0x4a2c43(0x1f9),_0x2fa6b5);}function validateNotificationFacts(_0x177e4c,_0x20321a,_0x3568fd){const _0x4c1279=a281_0x3406bd;if(_0x177e4c===undefined||_0x177e4c===null)return;if(!Array[_0x4c1279(0x1fb)](_0x177e4c)){_0x3568fd['push']({'path':_0x20321a,'message':_0x4c1279(0x1fc)});return;}_0x177e4c[_0x4c1279(0x203)]>MAX_NOTIFICATION_FACTS&&_0x3568fd['push']({'path':_0x20321a,'message':_0x4c1279(0x15c)+MAX_NOTIFICATION_FACTS+'\x20facts.'}),_0x177e4c[_0x4c1279(0x269)]((_0x15687c,_0x1badff)=>{const _0x12de03=_0x4c1279,_0xef95cf=_0x20321a+'['+_0x1badff+']';if(!isRecord(_0x15687c)){_0x3568fd[_0x12de03(0x262)]({'path':_0xef95cf,'message':_0x12de03(0x1a3)});return;}for(const _0x3edf99 of[_0x12de03(0x158),'value']){const _0x55e495=requireNotificationString(_0x15687c[_0x3edf99],_0xef95cf+'.'+_0x3edf99,_0x12de03(0x153)+_0x3edf99+'\x20is\x20required.',_0x3568fd);_0x55e495&&validateNotificationPlaceholders(_0x55e495,_0xef95cf+'.'+_0x3edf99,_0x3568fd);}});}function validateNotificationActions(_0x513d7a,_0x68bb65,_0x41bbff){const _0x49418c=a281_0x3406bd;if(_0x513d7a===undefined||_0x513d7a===null)return;if(!Array[_0x49418c(0x1fb)](_0x513d7a)){_0x41bbff[_0x49418c(0x262)]({'path':_0x68bb65,'message':_0x49418c(0x2aa)});return;}_0x513d7a[_0x49418c(0x203)]>MAX_NOTIFICATION_ACTIONS&&_0x41bbff['push']({'path':_0x68bb65,'message':_0x49418c(0x15c)+MAX_NOTIFICATION_ACTIONS+_0x49418c(0x23d)}),_0x513d7a[_0x49418c(0x269)]((_0x18833f,_0x2c6137)=>{const _0xb0b077=_0x49418c,_0x23cc2c=_0x68bb65+'['+_0x2c6137+']';if(!isRecord(_0x18833f)){_0x41bbff[_0xb0b077(0x262)]({'path':_0x23cc2c,'message':_0xb0b077(0x18b)});return;}const _0x4ee48f=requireNotificationString(_0x18833f[_0xb0b077(0x1f1)],_0x23cc2c+_0xb0b077(0x1c7),_0xb0b077(0x243),_0x41bbff);if(_0x4ee48f)validateNotificationPlaceholders(_0x4ee48f,_0x23cc2c+_0xb0b077(0x1c7),_0x41bbff);const _0x29ccfc=requireNotificationString(_0x18833f[_0xb0b077(0x209)],_0x23cc2c+_0xb0b077(0x270),_0xb0b077(0x1b6),_0x41bbff);if(!_0x29ccfc)return;validateNotificationPlaceholders(_0x29ccfc,_0x23cc2c+_0xb0b077(0x270),_0x41bbff),!/^https?:\/\//i['test'](_0x29ccfc)&&!NOTIFICATION_ACTION_URL_PLACEHOLDER_PATTERN[_0xb0b077(0x285)](_0x29ccfc)&&_0x41bbff['push']({'path':_0x23cc2c+_0xb0b077(0x270),'message':_0xb0b077(0x2a8)});});}function validateNotificationRecipients(_0x13ccf6,_0x310e0f,_0x5e0dde){const _0x3d5fc1=a281_0x3406bd;if(_0x13ccf6===undefined||_0x13ccf6===null)return;if(!Array[_0x3d5fc1(0x1fb)](_0x13ccf6)){_0x5e0dde['push']({'path':_0x310e0f,'message':_0x3d5fc1(0x265)});return;}let _0x341f9a=![];_0x13ccf6['forEach']((_0x333e68,_0x249c1e)=>{const _0x4fc9bb=_0x3d5fc1,_0x2e4c90=_0x310e0f+'['+_0x249c1e+']';if(!isRecord(_0x333e68)){_0x5e0dde['push']({'path':_0x2e4c90,'message':_0x4fc9bb(0x149)});return;}const _0x16653a=requireNotificationString(_0x333e68[_0x4fc9bb(0x279)],_0x2e4c90+'.type','Notification\x20recipient.type\x20is\x20required.',_0x5e0dde);_0x16653a&&!NOTIFICATION_RECIPIENT_TYPES[_0x4fc9bb(0x152)](_0x16653a[_0x4fc9bb(0x273)]())&&_0x5e0dde['push']({'path':_0x2e4c90+_0x4fc9bb(0x267),'message':'Notification\x20recipient.type\x20must\x20be\x20USER,\x20ROLE,\x20or\x20EMAIL.'});let _0x22c59b='TO';_0x333e68[_0x4fc9bb(0x2ae)]!==undefined&&_0x333e68['role']!==null&&(typeof _0x333e68['role']!==_0x4fc9bb(0x1fe)?(_0x5e0dde[_0x4fc9bb(0x262)]({'path':_0x2e4c90+_0x4fc9bb(0x17d),'message':'Notification\x20recipient.role\x20must\x20be\x20a\x20string.'}),_0x22c59b=''):(_0x22c59b=_0x333e68[_0x4fc9bb(0x2ae)]['trim']()[_0x4fc9bb(0x273)](),!NOTIFICATION_RECIPIENT_ROLES[_0x4fc9bb(0x152)](_0x22c59b)&&_0x5e0dde[_0x4fc9bb(0x262)]({'path':_0x2e4c90+_0x4fc9bb(0x17d),'message':_0x4fc9bb(0x1b3)})));if(_0x22c59b==='TO')_0x341f9a=!![];const _0x5c609d=requireNotificationString(_0x333e68[_0x4fc9bb(0x21e)],_0x2e4c90+_0x4fc9bb(0x232),'Notification\x20recipient.value\x20is\x20required.',_0x5e0dde);_0x5c609d&&validateNotificationPlaceholders(_0x5c609d,_0x2e4c90+_0x4fc9bb(0x232),_0x5e0dde);}),_0x13ccf6['length']>0x0&&!_0x341f9a&&_0x5e0dde[_0x3d5fc1(0x262)]({'path':_0x310e0f,'message':_0x3d5fc1(0x1ad)});}function requireNotificationString(_0x4b9a24,_0x1d105e,_0x48a3f6,_0x2522ff){const _0x8022ca=a281_0x3406bd;if(typeof _0x4b9a24!==_0x8022ca(0x1fe)||_0x4b9a24[_0x8022ca(0x26a)]()==='')return _0x2522ff['push']({'path':_0x1d105e,'message':_0x48a3f6}),undefined;return _0x4b9a24[_0x8022ca(0x26a)]();}function validateNotificationPlaceholders(_0x9a737d,_0x5639c2,_0x20b62d){const _0x29fe29=a281_0x3406bd;for(const _0x21240d of _0x9a737d['matchAll'](NOTIFICATION_PLACEHOLDER_PATTERN)){const _0x4e53bf=_0x21240d[0x1]?.[_0x29fe29(0x26a)]()??'',_0x4e66d1=_0x4e53bf['indexOf']('.'),_0x1aa69=_0x4e66d1>=0x0?_0x4e53bf['slice'](0x0,_0x4e66d1):_0x4e53bf,_0x476fe6=_0x4e66d1>=0x0?_0x4e53bf['slice'](_0x4e66d1+0x1)[_0x29fe29(0x26a)]():'';(![_0x29fe29(0x181),'context',_0x29fe29(0x219)][_0x29fe29(0x28e)](_0x1aa69)||_0x476fe6==='')&&_0x20b62d[_0x29fe29(0x262)]({'path':_0x5639c2,'message':_0x29fe29(0x26f)+_0x21240d[0x0]+'.'});}_0x9a737d[_0x29fe29(0x18e)](NOTIFICATION_PLACEHOLDER_PATTERN,'')['includes']('${')&&_0x20b62d['push']({'path':_0x5639c2,'message':_0x29fe29(0x23c)});}function validateEdge(_0x26c40d,_0x2f8b07,_0x3f7fac){const _0x45f309=a281_0x3406bd;_0x26c40d[_0x45f309(0x206)]!==undefined&&typeof _0x26c40d[_0x45f309(0x206)]!==_0x45f309(0x1fe)&&_0x3f7fac[_0x45f309(0x262)]({'path':_0x2f8b07+'.name','message':_0x45f309(0x18a)}),_0x26c40d[_0x45f309(0x2a0)]!==undefined&&typeof _0x26c40d[_0x45f309(0x2a0)]!==_0x45f309(0x28f)&&_0x3f7fac[_0x45f309(0x262)]({'path':_0x2f8b07+_0x45f309(0x2a7),'message':_0x45f309(0x248)}),_0x26c40d[_0x45f309(0x235)]!==undefined&&(!Array[_0x45f309(0x1fb)](_0x26c40d[_0x45f309(0x235)])?_0x3f7fac[_0x45f309(0x262)]({'path':_0x2f8b07+_0x45f309(0x148),'message':_0x45f309(0x23b)}):_0x26c40d[_0x45f309(0x235)][_0x45f309(0x269)]((_0x44ab59,_0x2f3bd5)=>{const _0x1002b6=_0x45f309;if(!isRecord(_0x44ab59)){_0x3f7fac['push']({'path':_0x2f8b07+_0x1002b6(0x15a)+_0x2f3bd5+']','message':_0x1002b6(0x1b5)});return;}for(const _0x83f294 of['x','y']){const _0x1f6bb2=_0x44ab59[_0x83f294];(typeof _0x1f6bb2!==_0x1002b6(0x297)||!Number[_0x1002b6(0x1a6)](_0x1f6bb2))&&_0x3f7fac['push']({'path':_0x2f8b07+_0x1002b6(0x15a)+_0x2f3bd5+'].'+_0x83f294,'message':_0x1002b6(0x1dc)+_0x83f294+_0x1002b6(0x1bc)});}})),_0x26c40d[_0x45f309(0x264)]!==undefined&&!CONDITION_TYPES[_0x45f309(0x152)](_0x26c40d[_0x45f309(0x264)])&&_0x3f7fac[_0x45f309(0x262)]({'path':_0x2f8b07+'.conditionType','message':_0x45f309(0x1de)+String(_0x26c40d[_0x45f309(0x264)])+'.'}),_0x26c40d[_0x45f309(0x264)]===_0x45f309(0x171)&&(typeof _0x26c40d[_0x45f309(0x1ab)]!=='string'||_0x26c40d[_0x45f309(0x1ab)][_0x45f309(0x26a)]()==='')&&_0x3f7fac[_0x45f309(0x262)]({'path':_0x2f8b07+'.expression','message':_0x45f309(0x287)}),_0x26c40d['defaultFlow']===!![]&&_0x26c40d['conditionType']!==_0x45f309(0x25e)&&_0x3f7fac[_0x45f309(0x262)]({'path':_0x2f8b07+_0x45f309(0x2a7),'message':_0x45f309(0x1cc)}),_0x26c40d[_0x45f309(0x2a0)]===!![]&&typeof _0x26c40d[_0x45f309(0x1ab)]===_0x45f309(0x1fe)&&_0x26c40d[_0x45f309(0x1ab)][_0x45f309(0x26a)]()!==''&&_0x3f7fac[_0x45f309(0x262)]({'path':_0x2f8b07+_0x45f309(0x1d5),'message':'A\x20default\x20flow\x20must\x20not\x20have\x20an\x20expression.'});}function validateGraphShape(_0x8359e2,_0x83ecc1,_0x48e4c0,_0xf20880,_0x38c822,_0xa2728c,_0x3324f4){const _0x3475c1=a281_0x3406bd;for(const [_0x1b41dd,_0xdf86b0]of _0x8359e2){const _0x4fb8e5=_0x38c822[_0x3475c1(0x1d9)](_0x1b41dd)??[],_0xd050a=_0xf20880[_0x3475c1(0x1d9)](_0x1b41dd)??[];_0xdf86b0[_0x3475c1(0x279)]!==_0x3475c1(0x286)&&_0x4fb8e5[_0x3475c1(0x203)]===0x0&&_0x3324f4[_0x3475c1(0x262)]({'path':_0x3475c1(0x1df)+_0x1b41dd,'message':_0x3475c1(0x189)});_0xdf86b0[_0x3475c1(0x279)]!==_0x3475c1(0x1a4)&&_0xd050a[_0x3475c1(0x203)]===0x0&&_0x3324f4[_0x3475c1(0x262)]({'path':_0x3475c1(0x1df)+_0x1b41dd,'message':_0x3475c1(0x159)});_0xdf86b0['type']===_0x3475c1(0x286)&&_0x4fb8e5['length']>0x0&&_0x3324f4['push']({'path':_0x3475c1(0x1df)+_0x1b41dd,'message':_0x3475c1(0x1e8)});_0xdf86b0[_0x3475c1(0x279)]===_0x3475c1(0x1a4)&&_0xd050a['length']>0x0&&_0x3324f4['push']({'path':_0x3475c1(0x1df)+_0x1b41dd,'message':_0x3475c1(0x212)});if(_0xdf86b0[_0x3475c1(0x279)]==='CONDITION'){_0xd050a[_0x3475c1(0x203)]<0x2&&_0x3324f4['push']({'path':_0x3475c1(0x1df)+_0x1b41dd,'message':_0x3475c1(0x1b1)});const _0x445685=_0xd050a[_0x3475c1(0x191)](_0x7b2b86=>_0x7b2b86[_0x3475c1(0x2a0)]===!![]);_0x445685[_0x3475c1(0x203)]!==0x1&&_0x3324f4['push']({'path':'flowJson.nodes.'+_0x1b41dd,'message':_0x3475c1(0x180)});if(_0x445685[_0x3475c1(0x203)]===0x1){const _0xe6bb61=_0x445685[0x0],_0x92dc6f=_0xa2728c[_0x3475c1(0x1d9)](_0xe6bb61)??'flowJson.edges';_0xe6bb61[_0x3475c1(0x264)]!==_0x3475c1(0x25e)&&_0x3324f4[_0x3475c1(0x262)]({'path':_0x92dc6f+_0x3475c1(0x29d),'message':_0x3475c1(0x250)});_0xe6bb61[_0x3475c1(0x1ab)]!==undefined&&_0x3324f4[_0x3475c1(0x262)]({'path':_0x92dc6f+_0x3475c1(0x1d5),'message':_0x3475c1(0x282)});for(const _0x2f6b41 of _0xd050a){if(_0x2f6b41===_0xe6bb61)continue;const _0x34334b=_0xa2728c[_0x3475c1(0x1d9)](_0x2f6b41)??'flowJson.edges';if(_0x2f6b41[_0x3475c1(0x264)]!==_0x3475c1(0x171))_0x3324f4[_0x3475c1(0x262)]({'path':_0x34334b+_0x3475c1(0x29d),'message':_0x3475c1(0x298)});else(typeof _0x2f6b41[_0x3475c1(0x1ab)]!=='string'||_0x2f6b41['expression']['trim']()==='')&&_0x3324f4['push']({'path':_0x34334b+_0x3475c1(0x1d5),'message':_0x3475c1(0x17a)});}}}if(_0xdf86b0[_0x3475c1(0x279)]==='APPROVAL'&&(_0xdf86b0[_0x3475c1(0x173)]??_0x3475c1(0x271))===_0x3475c1(0x163)){if(_0xd050a['length']!==0x1)_0x3324f4[_0x3475c1(0x262)]({'path':'flowJson.nodes.'+_0x1b41dd,'message':_0x3475c1(0x1c3)});else{const _0x5453d6=_0xd050a[0x0];((_0x5453d6[_0x3475c1(0x264)]??'ALWAYS')!==_0x3475c1(0x25e)||_0x5453d6[_0x3475c1(0x2a0)]===!![]||typeof _0x5453d6[_0x3475c1(0x1ab)]===_0x3475c1(0x1fe)&&_0x5453d6[_0x3475c1(0x1ab)]['trim']()!=='')&&_0x3324f4[_0x3475c1(0x262)]({'path':_0xa2728c[_0x3475c1(0x1d9)](_0x5453d6)??_0x3475c1(0x167),'message':'HANDLE\x20task\x20outgoing\x20edge\x20must\x20use\x20ALWAYS\x20without\x20defaultFlow\x20or\x20expression.'});}}else{if(_0xdf86b0[_0x3475c1(0x279)]===_0x3475c1(0x271)){const _0x28232d=_0xd050a[_0x3475c1(0x1e5)](_0x5859a0=>_0x5859a0[_0x3475c1(0x264)]??_0x3475c1(0x25e)),_0x3be986=_0x28232d[_0x3475c1(0x191)](_0xd6215b=>_0xd6215b!=='APPROVED'&&_0xd6215b!=='REJECTED');_0x3be986[_0x3475c1(0x203)]>0x0&&_0x3324f4['push']({'path':_0x3475c1(0x1df)+_0x1b41dd,'message':_0x3475c1(0x274)}),_0x28232d[_0x3475c1(0x191)](_0x589145=>_0x589145==='APPROVED')[_0x3475c1(0x203)]!==0x1&&_0x3324f4[_0x3475c1(0x262)]({'path':_0x3475c1(0x1df)+_0x1b41dd,'message':_0x3475c1(0x17f)}),_0x28232d['filter'](_0x2c94a3=>_0x2c94a3===_0x3475c1(0x1cd))[_0x3475c1(0x203)]!==0x1&&_0x3324f4[_0x3475c1(0x262)]({'path':_0x3475c1(0x1df)+_0x1b41dd,'message':_0x3475c1(0x251)}),_0xd050a[_0x3475c1(0x288)](_0x1ad248=>_0x1ad248[_0x3475c1(0x2a0)]===!![])&&_0x3324f4['push']({'path':_0x3475c1(0x1df)+_0x1b41dd,'message':_0x3475c1(0x1d4)});}}}const _0x501131=new Set(),_0x198d0a=_0xf1feed=>{const _0x597295=_0x3475c1;if(_0x501131[_0x597295(0x152)](_0xf1feed))return;_0x501131[_0x597295(0x224)](_0xf1feed);for(const _0x493e2c of _0xf20880[_0x597295(0x1d9)](_0xf1feed)??[]){const _0x8341d0=resolveEdgeEndpoint(_0x493e2c[_0x597295(0x257)],_0x493e2c['targetNodeId']);if(_0x8341d0&&_0x8359e2[_0x597295(0x152)](_0x8341d0))_0x198d0a(_0x8341d0);}};_0x198d0a(_0x83ecc1);for(const _0x6aaed1 of _0x8359e2[_0x3475c1(0x17c)]()){!_0x501131[_0x3475c1(0x152)](_0x6aaed1)&&_0x3324f4[_0x3475c1(0x262)]({'path':_0x3475c1(0x1df)+_0x6aaed1,'message':'Node\x20is\x20not\x20reachable\x20from\x20START.'});}const _0x34d205=_0x48e4c0[_0x3475c1(0x288)](_0x2c4ed7=>_0x501131[_0x3475c1(0x152)](_0x2c4ed7));if(!_0x34d205){_0x3324f4[_0x3475c1(0x262)]({'path':_0x3475c1(0x167),'message':_0x3475c1(0x1ba)});return;}const _0x1fcd99=new Set(),_0x2f024d=_0x577afc=>{const _0x271791=_0x3475c1;if(_0x1fcd99[_0x271791(0x152)](_0x577afc))return;_0x1fcd99[_0x271791(0x224)](_0x577afc);for(const _0x3f08fc of _0x38c822['get'](_0x577afc)??[]){const _0x5152cd=resolveEdgeEndpoint(_0x3f08fc['source'],_0x3f08fc[_0x271791(0x22b)]);if(_0x5152cd&&_0x8359e2[_0x271791(0x152)](_0x5152cd))_0x2f024d(_0x5152cd);}};for(const _0x129c30 of _0x48e4c0){if(_0x8359e2['has'](_0x129c30))_0x2f024d(_0x129c30);}for(const _0x379e51 of _0x501131){!_0x1fcd99[_0x3475c1(0x152)](_0x379e51)&&_0x3324f4[_0x3475c1(0x262)]({'path':'flowJson.nodes.'+_0x379e51,'message':_0x3475c1(0x245)});}}function validateApprovalResults(_0xc420e6,_0x404f4f,_0x1f17ad,_0xe708b3){const _0x21b9e0=a281_0x3406bd;if(_0x404f4f===0x0)return;const _0x264ada=new Set(_0x1f17ad[_0x21b9e0(0x1e5)](_0x1c6f10=>_0xc420e6[_0x21b9e0(0x1d9)](_0x1c6f10)?.[_0x21b9e0(0x192)])['filter'](_0x104065=>typeof _0x104065===_0x21b9e0(0x1fe)));for(const _0x40cb39 of[_0x21b9e0(0x293),_0x21b9e0(0x1cd)]){!_0x264ada[_0x21b9e0(0x152)](_0x40cb39)&&_0xe708b3[_0x21b9e0(0x262)]({'path':_0x21b9e0(0x291),'message':_0x21b9e0(0x174)+_0x40cb39+'.'});}}function validateScriptResultReferences(_0x5c2f81,_0x2a76cb,_0x1617c0,_0x531581,_0x4cb35d,_0xab24b3,_0x1f4ef3){const _0x3f7156=a281_0x3406bd;if(_0xab24b3[_0x3f7156(0x1c1)]===0x0)return;const _0x13d05c=new Set(),_0x421693=_0x2fd266=>{const _0x1b5252=_0x3f7156;if(!_0x13d05c['has'](_0x2fd266)&&_0x5c2f81[_0x1b5252(0x152)](_0x2fd266)){_0x13d05c[_0x1b5252(0x224)](_0x2fd266);for(const _0x33bab0 of _0x1617c0[_0x1b5252(0x1d9)](_0x2fd266)??[]){const _0x36636a=resolveEdgeEndpoint(_0x33bab0['target'],_0x33bab0['targetNodeId']);if(_0x36636a)_0x421693(_0x36636a);}}};_0x421693(_0x2a76cb);const _0x6a934e=new Map();for(const _0x4f223e of _0x13d05c){_0x6a934e[_0x3f7156(0x26b)](_0x4f223e,_0x4f223e===_0x2a76cb?new Set([_0x2a76cb]):new Set(_0x13d05c));}let _0x43f89e=!![];while(_0x43f89e){_0x43f89e=![];for(const _0x943ed8 of _0x13d05c){if(_0x943ed8===_0x2a76cb)continue;const _0x4026a2=(_0x531581[_0x3f7156(0x1d9)](_0x943ed8)??[])[_0x3f7156(0x1e5)](_0x59a8c3=>resolveEdgeEndpoint(_0x59a8c3[_0x3f7156(0x199)],_0x59a8c3[_0x3f7156(0x22b)]))[_0x3f7156(0x191)](_0x4aca58=>Boolean(_0x4aca58&&_0x13d05c[_0x3f7156(0x152)](_0x4aca58)));if(_0x4026a2[_0x3f7156(0x203)]===0x0)continue;const _0x73a7a1=new Set(_0x6a934e[_0x3f7156(0x1d9)](_0x4026a2[0x0])??[]);for(const _0x11c9da of _0x4026a2[_0x3f7156(0x1d0)](0x1)){const _0x3d0f55=_0x6a934e[_0x3f7156(0x1d9)](_0x11c9da)??new Set();for(const _0x416e92 of _0x73a7a1){if(!_0x3d0f55['has'](_0x416e92))_0x73a7a1[_0x3f7156(0x289)](_0x416e92);}}_0x73a7a1[_0x3f7156(0x224)](_0x943ed8);const _0x22615d=_0x6a934e[_0x3f7156(0x1d9)](_0x943ed8);!setsEqual(_0x22615d,_0x73a7a1)&&(_0x6a934e[_0x3f7156(0x26b)](_0x943ed8,_0x73a7a1),_0x43f89e=!![]);}}for(const [_0x35c398,_0x29e271]of _0x1617c0){const _0x180b26=_0x6a934e[_0x3f7156(0x1d9)](_0x35c398);if(!_0x180b26)continue;for(const _0x282d4c of _0x29e271){if(_0x282d4c[_0x3f7156(0x264)]!==_0x3f7156(0x171)||typeof _0x282d4c[_0x3f7156(0x1ab)]!==_0x3f7156(0x1fe))continue;for(const [_0x53eee7,_0x1f66d3]of _0xab24b3){expressionReferencesVariable(_0x282d4c[_0x3f7156(0x1ab)],_0x53eee7)&&!_0x180b26[_0x3f7156(0x152)](_0x1f66d3)&&_0x1f4ef3[_0x3f7156(0x262)]({'path':(_0x4cb35d[_0x3f7156(0x1d9)](_0x282d4c)??'flowJson.edges')+_0x3f7156(0x1d5),'message':_0x3f7156(0x1d3)+_0x53eee7+_0x3f7156(0x26e)+_0x1f66d3+'\x20is\x20not\x20on\x20every\x20upstream\x20path\x20to\x20'+_0x35c398+'.'});}}}}function expressionReferencesVariable(_0x5539e7,_0x6e796b){const _0x580400=a281_0x3406bd;let _0x2d59c5=0x0;while(_0x2d59c5<_0x5539e7[_0x580400(0x203)]){const _0x42a00c=_0x5539e7[_0x2d59c5];if(_0x42a00c==='\x27'||_0x42a00c==='\x22'){_0x2d59c5=skipQuotedExpressionSegment(_0x5539e7,_0x2d59c5,_0x42a00c);continue;}if(!/[A-Za-z_]/[_0x580400(0x285)](_0x42a00c)){_0x2d59c5+=0x1;continue;}const _0x1944de=_0x2d59c5;_0x2d59c5+=0x1;while(_0x2d59c5<_0x5539e7['length']&&/[A-Za-z0-9_]/[_0x580400(0x285)](_0x5539e7[_0x2d59c5])){_0x2d59c5+=0x1;}if(_0x5539e7[_0x580400(0x1d0)](_0x1944de,_0x2d59c5)!==_0x6e796b)continue;let _0x4cfc1c=_0x1944de-0x1;while(_0x4cfc1c>=0x0&&/\s/[_0x580400(0x285)](_0x5539e7[_0x4cfc1c])){_0x4cfc1c-=0x1;}if(_0x5539e7[_0x4cfc1c]!=='.')return!![];}return![];}function skipQuotedExpressionSegment(_0x347bb7,_0x14c03b,_0x2d3221){let _0x190537=_0x14c03b+0x1;while(_0x190537<_0x347bb7['length']){if(_0x347bb7[_0x190537]==='\x5c'){_0x190537+=0x2;continue;}if(_0x347bb7[_0x190537]===_0x2d3221)return _0x190537+0x1;_0x190537+=0x1;}return _0x190537;}function resolveEffectiveResultVariable(_0x3c9047,_0x1ff1bc){const _0x2134f1=a281_0x3406bd;if(_0x3c9047===undefined||_0x3c9047===null||_0x1ff1bc&&_0x3c9047==='')return DEFAULT_SCRIPT_RESULT_VARIABLE;if(typeof _0x3c9047!==_0x2134f1(0x1fe)||!VARIABLE_PATTERN['test'](_0x3c9047)||RESERVED_RESULT_VARIABLES['has'](_0x3c9047)||_0x3c9047['startsWith']('approval_sys_'))return undefined;return _0x3c9047;}function registerResultVariableOwner(_0x3fa43d,_0x55ff55,_0x528948,_0x11f336){const _0x51552d=a281_0x3406bd;if(_0x3fa43d[_0x51552d(0x152)](_0x55ff55)){_0x11f336[_0x51552d(0x262)]({'path':_0x51552d(0x291),'message':'Duplicate\x20resultVariable:\x20'+_0x55ff55+'.'});return;}_0x3fa43d[_0x51552d(0x26b)](_0x55ff55,_0x528948);}function setsEqual(_0x1a7aa2,_0x5e35e9){const _0x58c9f1=a281_0x3406bd;return _0x1a7aa2[_0x58c9f1(0x1c1)]===_0x5e35e9[_0x58c9f1(0x1c1)]&&[..._0x1a7aa2][_0x58c9f1(0x185)](_0x1572d9=>_0x5e35e9[_0x58c9f1(0x152)](_0x1572d9));}function isValidUserId(_0x580c0e){const _0x946f28=a281_0x3406bd;if(typeof _0x580c0e==='string')return _0x580c0e[_0x946f28(0x26a)]()[_0x946f28(0x203)]>0x0;return Number[_0x946f28(0x169)](_0x580c0e)&&Number(_0x580c0e)>0x0;}function a281_0x1c91(){const _0x48a035=['Node\x20has\x20no\x20incoming\x20edge.','edge\x20name\x20must\x20be\x20a\x20string.','Notification\x20action\x20must\x20be\x20an\x20object.','cc\x20must\x20be\x20an\x20object.','sequential','replace','sequential\x20must\x20be\x20a\x20boolean.','object','filter','result','templateName','SECONDS','Rabetbase\x20FlowConfig','approval_sys_dataId','facts','approval_sys_datasetCode','source','FIXED','fixed\x20assignee\x20userId\x20must\x20be\x20a\x20non-empty\x20string\x20or\x20positive\x20integer.','.name','flowDesc\x20must\x20be\x20a\x20string.','INDEPENDENT_FLOW','utf8','nodes','.id','ROLE\x20assignee\x20requires\x20a\x20positive\x20integer\x20roleId.','Notification\x20fact\x20must\x20be\x20an\x20object.','END','flowJson.nodes[','isFinite','SCRIPT\x20node\x20requires\x20scriptName.','edge\x20id\x20must\x20match\x20[A-Za-z_][A-Za-z0-9_]*.','#/$defs/flowNode','EMAIL','expression','PLATFORM_FORM\x20is\x20not\x20supported\x20by\x20this\x20rabetbase\x20version;\x20use\x20INDEPENDENT_FLOW\x20with\x20CUSTOM_PAGE.','Explicit\x20notification\x20recipients\x20require\x20at\x20least\x20one\x20TO.','flowJson\x20must\x20be\x20an\x20object.','pageId','failurePolicy','CONDITION\x20node\x20requires\x20at\x20least\x20two\x20outgoing\x20edges.','configCode','Notification\x20recipient.role\x20must\x20be\x20TO,\x20CC,\x20or\x20BCC.','flowType\x20is\x20required.','waypoint\x20must\x20contain\x20numeric\x20x\x20and\x20y\x20coordinates.','Notification\x20action.url\x20is\x20required.','.timeout.interrupting','strategy','37438qFqGbP','No\x20END\x20node\x20is\x20reachable\x20from\x20START.','roleId','\x20must\x20be\x20a\x20finite\x20number.','FORM_FLOW\x20is\x20an\x20approval\x20flow\x20and\x20cannot\x20contain\x20HANDLE\x20tasks;\x20use\x20INDEPENDENT_FLOW\x20for\x20workflows.','overwrite','approvalMode','\x20must\x20be\x20a\x20finite\x20number\x20greater\x20than\x20or\x20equal\x20to\x200.','size','Flow\x20must\x20contain\x20exactly\x20one\x20START\x20node.','HANDLE\x20task\x20requires\x20exactly\x20one\x20outgoing\x20edge.','CUSTOM_PAGE','flowJson.schemaVersion','timeout.action\x20must\x20be\x20AUTO_APPROVE,\x20AUTO_REJECT,\x20or\x20EXECUTE_BFF.','.text','EXECUTE_BFF','ANY','.assignee.strategy','.configCode','A\x20default\x20flow\x20must\x20use\x20conditionType\x20ALWAYS.','REJECTED','pageId\x20must\x20be\x20a\x20non-negative\x20integer.','https://json-schema.org/draft/2020-12/schema','slice','async.enabled\x20must\x20be\x20a\x20boolean.','flowJson.pageMode','Expression\x20references\x20SCRIPT\x20resultVariable\x20','APPROVAL\x20task\x20decision\x20edges\x20must\x20not\x20be\x20default\x20flows.','.expression','formDefinitions','edge\x20source\x20is\x20required.','NOTIFICATION','get','BCC','384LJEnTq','waypoint.','Reserved\x20resultVariable:\x20','Unsupported\x20condition\x20type:\x20','flowJson.nodes.','FlowConfig\x20must\x20be\x20a\x20JSON\x20object.','.approvalMode','USER','Every\x20node\x20requires\x20position.x\x20and\x20position.y.','8476800DXSKPh','map','targetNodeId','transferCandidates','START\x20node\x20must\x20not\x20have\x20incoming\x20edges.','26sBzegH','formSchema','config','FIXED\x20assignee\x20requires\x20userIds.','hasOwnProperty','position.','approval_sys_pageId','.detailMarkdown','text','SCRIPT\x20async\x20retryCount\x20must\x20be\x20between\x201\x20and\x20','form','AUTO_APPROVE','bindDatasetCode','AUTO_REJECT','prototype','.resultVariable','.actions','Notification\x20version\x20must\x20be\x20a\x20string.','isArray','Notification\x20template.facts\x20must\x20be\x20an\x20array.','EXECUTE_BFF\x20timeout\x20must\x20not\x20interrupt\x20the\x20approval\x20task.','string','].taskMode','detailMarkdown','datasetCode','__rabetbase_local_validation__','length','title','async\x20execution\x20is\x20only\x20supported\x20by\x20SCRIPT\x20node.','name','retryInterval','#/$defs/timeAmount','url','flowDesc','nodes\x20must\x20be\x20an\x20array.','.recipients','Duplicate\x20BPMN\x20element\x20id:\x20','flowName\x20is\x20required.','flowKey','Accepted\x20as\x20legacy\x20input\x20and\x20removed\x20during\x20normalization;\x20other\x20versions\x20are\x20unsupported.','resultVariable\x20must\x20match\x20[A-Za-z_][A-Za-z0-9_]*.','END\x20node\x20must\x20not\x20have\x20outgoing\x20edges.','https://lovrabet.com/schema/rabetbase-flow-config.json','node\x20pageId\x20is\x20no\x20longer\x20supported;\x20use\x20node\x20path\x20instead.','SCRIPT','Duplicate\x20edge\x20route:\x20','.template','\x20value\x20and\x20was\x20removed\x20from\x20the\x20portable\x20FlowConfig.','variables','NaN','findIndex','.cc','HOURS','value','approval.simple-flow.v1','startPath\x20applies\x20only\x20to\x20INDEPENDENT_FLOW\x20with\x20CUSTOM_PAGE.','startPath\x20must\x20be\x20a\x20non-empty\x20string.','.failurePolicy','path','add','version','edge\x20must\x20be\x20an\x20object.','timeout','.scriptName','\x20was\x20empty\x20and\x20was\x20removed.','edges','sourceNodeId','.timeout','534nwwbZP','\x20users.','.position.','.version','isInteger','.value','Edge\x20source\x20node\x20not\x20found:\x20','102WDsggj','waypoints','.target','flowJson.','INDEPENDENT_FLOW\x20cannot\x20bind\x20datasetCode.','3187426NLYTeP','16305CoVPDq','waypoints\x20must\x20be\x20an\x20array.','Notification\x20text\x20contains\x20a\x20malformed\x20placeholder.','\x20actions.','.cc.readSources','position','Duplicate\x20cc\x20recipient\x20userId:\x20','13616LRHrwj','duration\x20unit\x20must\x20be\x20SECONDS,\x20MINUTES,\x20HOURS,\x20or\x20DAYS.','Notification\x20action.text\x20is\x20required.','edges\x20must\x20be\x20an\x20array.','Node\x20cannot\x20reach\x20any\x20END.','APPROVAL\x20node\x20requires\x20assignee.','warnings','defaultFlow\x20must\x20be\x20a\x20boolean.','stringify','MINUTES','approval_sys_initiatorUserId','approval_sys_operationType','legacy_field_removed','.assignee.roleId','Unsupported\x20task\x20mode:\x20','CONDITION\x20default\x20edge\x20must\x20use\x20conditionType\x20ALWAYS.','APPROVAL\x20node\x20requires\x20exactly\x20one\x20REJECTED\x20outgoing\x20edge.','.timeout.duration','recipients','timeout\x20must\x20be\x20an\x20object.','].path','call','target','timeout.interrupting\x20must\x20be\x20a\x20boolean.','timeout\x20is\x20only\x20supported\x20by\x20APPROVAL\x20node.','#/$defs/flowEdge','\x20was\x20empty\x20or\x20used\x20the\x20default\x20','.cc.recipientUserIds','DAYS','ALWAYS','Flow\x20must\x20contain\x20at\x20least\x20one\x20END\x20node.','transfer\x20candidate\x20userId\x20must\x20be\x20a\x20non-empty\x20string\x20or\x20positive\x20integer.','approval_sys_processInstanceId','push','value\x20must\x20be\x20a\x20non-empty\x20string.','conditionType','Notification\x20recipients\x20must\x20be\x20an\x20array.','async','.type','.timeout.scriptName','forEach','trim','set','cc.recipientUserIds\x20must\x20be\x20a\x20non-empty\x20array.','assignee',',\x20but\x20node\x20','Unsupported\x20notification\x20placeholder:\x20','.url','APPROVAL','Unsupported\x20pageMode:\x20','toUpperCase','APPROVAL\x20node\x20outgoing\x20edges\x20must\x20use\x20APPROVED\x20or\x20REJECTED.','.async','pageMode','formPermissions','Default\x20cc\x20is\x20only\x20supported\x20by\x20APPROVAL\x20or\x20END\x20node.','type','array','SINGLE','.transferCandidates.userIds[','Unsupported\x20flowType:\x20','metadata','.async.retryInterval','.transferCandidates.strategy','CONDITION','CONDITION\x20default\x20edge\x20must\x20not\x20define\x20expression.','flowJson','unit','test','START','EXPRESSION\x20edge\x20requires\x20expression.','some','delete','.tmp','resultVariable','INDEPENDENT_FLOW\x20cannot\x20bind\x20pageId.','Duplicate\x20node\x20id:\x20','includes','boolean','6351310psiOfU','flowJson.nodes','FAIL','APPROVED','Notification\x20configCode\x20is\x20required.','\x20->\x20','.taskMode','number','CONDITION\x20non-default\x20edge\x20must\x20use\x20conditionType\x20EXPRESSION.','ALL','\x20is\x20required.','.config','Duplicate\x20value:\x20','.conditionType','recipientUserIds','.transferCandidates.userIds','defaultFlow','.source','duration\x20requires\x20value\x20and\x20unit.','action','flowJson.startPath','.path','template','.defaultFlow','Notification\x20action.url\x20must\x20use\x20http/https\x20or\x20a\x20complete\x20supported\x20placeholder.','actions','Notification\x20template.actions\x20must\x20be\x20an\x20array.','catch','PLATFORM_FORM','enabled','role','CONTINUE','startPath','30UBwtCw','\x20is\x20not\x20part\x20of\x20the\x20portable\x20FlowConfig\x20and\x20was\x20removed.','^[A-Za-z_][A-Za-z0-9_]*$','.timeout.resultVariable','.cc.visible','approved','.waypoints','Notification\x20recipient\x20must\x20be\x20an\x20object.','integer','entries','transferCandidates\x20must\x20be\x20an\x20object.','schemaVersion','SINGLE\x20approval\x20supports\x20only\x20one\x20fixed\x20user.','flowName','startsWith','flowType','has','Notification\x20fact.','HANDLE\x20task\x20timeout\x20only\x20supports\x20EXECUTE_BFF.','NOTIFICATION\x20node\x20requires\x20config.','flowCode','#/$defs/userId','label','Node\x20has\x20no\x20outgoing\x20edge.','.waypoints[','Unsupported\x20notification\x20version:\x20','Notification\x20template\x20supports\x20at\x20most\x20','userIds','summary','Unsupported\x20schemaVersion:\x20','EXECUTE_BFF\x20timeout\x20requires\x20scriptName.','duration\x20value\x20must\x20be\x20a\x20positive\x20integer.','#/$defs/position','HANDLE','node\x20path\x20applies\x20only\x20to\x20INDEPENDENT_FLOW\x20with\x20CUSTOM_PAGE.','.pageId','cc.recipientUserIds\x20supports\x20at\x20most\x20','flowJson.edges','.position','isSafeInteger','FIXED\x20transferCandidates\x20requires\x20non-empty\x20userIds.','.timeout.action','flowJson.edges[','startPageId\x20is\x20no\x20longer\x20supported;\x20use\x20startPath\x20instead.','NOTIFICATION\x20node\x20requires\x20template.','ROLE','node\x20path\x20must\x20be\x20a\x20non-empty\x20string.','EXPRESSION','156276IRARKE','taskMode','Approval\x20flow\x20requires\x20an\x20END\x20node\x20with\x20result\x20','\x20timeout\x20must\x20interrupt\x20the\x20approval\x20task.','formData','appCode','.assignee.userIds','10pUYaub','CONDITION\x20non-default\x20edge\x20requires\x20a\x20non-empty\x20expression.','.async.enabled','keys','.role','FORM_FLOW','APPROVAL\x20node\x20requires\x20exactly\x20one\x20APPROVED\x20outgoing\x20edge.','CONDITION\x20node\x20requires\x20exactly\x20one\x20default\x20outgoing\x20edge.','event','Notification\x20template.','approval_sys_','scriptName','every','empty_metadata_removed','^[1-9][0-9]*$','pageMode\x20applies\x20only\x20to\x20INDEPENDENT_FLOW.'];a281_0x1c91=function(){return _0x48a035;};return a281_0x1c91();}function resolveEdgeEndpoint(_0x591a9a,_0x38e17c){const _0x44320c=a281_0x3406bd;if(typeof _0x591a9a==='string'&&_0x591a9a[_0x44320c(0x26a)]())return _0x591a9a['trim']();if(typeof _0x38e17c==='string'&&_0x38e17c['trim']())return _0x38e17c[_0x44320c(0x26a)]();return undefined;}function removeEmptyMetadata(_0x270fda,_0x458aae,_0x2ea90b,_0x7292e2){const _0x1093a7=a281_0x3406bd;if(Array[_0x1093a7(0x1fb)](_0x270fda)){_0x270fda[_0x1093a7(0x269)]((_0x415639,_0x24d666)=>removeEmptyMetadata(_0x415639,_0x458aae+'['+_0x24d666+']',_0x2ea90b,_0x7292e2));return;}if(!isRecord(_0x270fda))return;for(const [_0x2dcb2a,_0x5c23cf]of Object[_0x1093a7(0x14b)](_0x270fda)){const _0x4ab9c8=_0x458aae+'.'+_0x2dcb2a;if(_0x2dcb2a===_0x1093a7(0x27e)&&isEmptyJsonValue(_0x5c23cf)){delete _0x270fda[_0x2dcb2a],_0x7292e2[_0x1093a7(0x262)](_0x4ab9c8),_0x2ea90b[_0x1093a7(0x262)]({'code':_0x1093a7(0x186),'path':_0x4ab9c8,'message':_0x4ab9c8+_0x1093a7(0x229)});continue;}removeEmptyMetadata(_0x5c23cf,_0x4ab9c8,_0x2ea90b,_0x7292e2);}}function isEmptyJsonValue(_0x37f856){const _0x9f8954=a281_0x3406bd;if(_0x37f856===null||_0x37f856===undefined)return!![];if(typeof _0x37f856==='string')return _0x37f856[_0x9f8954(0x26a)]()==='';if(Array[_0x9f8954(0x1fb)](_0x37f856))return _0x37f856[_0x9f8954(0x203)]===0x0;return isRecord(_0x37f856)&&Object[_0x9f8954(0x17c)](_0x37f856)['length']===0x0;}function isRecord(_0x206d82){const _0x1c35a9=a281_0x3406bd;return typeof _0x206d82===_0x1c35a9(0x190)&&_0x206d82!==null&&!Array[_0x1c35a9(0x1fb)](_0x206d82);}function cloneJsonValue(_0x4f3362){return JSON['parse'](JSON['stringify'](_0x4f3362));}export async function readFlowConfigFile(_0x562aaf){const _0x593a54=a281_0x3406bd,_0x51896f=await readFile(resolve(_0x562aaf),_0x593a54(0x19f));return JSON['parse'](_0x51896f);}
1
+ function a282_0x1fda(_0x42b5c5,_0x20e0da){_0x42b5c5=_0x42b5c5-0xbd;const _0x55a9a0=a282_0x55a9();let _0x1fda97=_0x55a9a0[_0x42b5c5];return _0x1fda97;}const a282_0x13f12c=a282_0x1fda;(function(_0x565795,_0x9b2f45){const _0x226088=a282_0x1fda,_0x5021a8=_0x565795();while(!![]){try{const _0x11afa8=parseInt(_0x226088(0xf2))/0x1*(parseInt(_0x226088(0xd7))/0x2)+parseInt(_0x226088(0x166))/0x3*(parseInt(_0x226088(0x15a))/0x4)+parseInt(_0x226088(0x118))/0x5*(-parseInt(_0x226088(0x1a1))/0x6)+-parseInt(_0x226088(0xf4))/0x7*(parseInt(_0x226088(0x1a2))/0x8)+-parseInt(_0x226088(0xff))/0x9+parseInt(_0x226088(0x1e7))/0xa+-parseInt(_0x226088(0x20e))/0xb*(-parseInt(_0x226088(0xdb))/0xc);if(_0x11afa8===_0x9b2f45)break;else _0x5021a8['push'](_0x5021a8['shift']());}catch(_0x159a48){_0x5021a8['push'](_0x5021a8['shift']());}}}(a282_0x55a9,0x326d8));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':a282_0x13f12c(0x1ff),'$id':a282_0x13f12c(0xfb),'title':a282_0x13f12c(0x1c4),'type':a282_0x13f12c(0x1ea),'required':[a282_0x13f12c(0x19f),a282_0x13f12c(0x148),a282_0x13f12c(0xfd)],'$defs':{'userId':{'anyOf':[{'type':a282_0x13f12c(0xd2),'minLength':0x1},{'type':'integer','minimum':0x1}]},'position':{'type':'object','required':['x','y'],'properties':{'x':{'type':a282_0x13f12c(0x1fa),'minimum':0x0},'y':{'type':'number','minimum':0x0}},'additionalProperties':!![]},'timeAmount':{'type':a282_0x13f12c(0x1ea),'required':[a282_0x13f12c(0x1a9),'unit'],'properties':{'value':{'type':a282_0x13f12c(0x112),'minimum':0x1},'unit':{'enum':[a282_0x13f12c(0x205),'MINUTES',a282_0x13f12c(0x10a),a282_0x13f12c(0x1d9)]}},'additionalProperties':!![]},'flowNode':{'type':a282_0x13f12c(0x1ea),'required':['id',a282_0x13f12c(0x199),a282_0x13f12c(0x15e),a282_0x13f12c(0x109)],'properties':{'id':{'type':a282_0x13f12c(0xd2),'pattern':a282_0x13f12c(0x17f)},'type':{'enum':[a282_0x13f12c(0x158),'END',a282_0x13f12c(0x196),a282_0x13f12c(0x1aa),a282_0x13f12c(0xc9),a282_0x13f12c(0x18c)]},'name':{'type':a282_0x13f12c(0xd2),'minLength':0x1},'path':{'type':a282_0x13f12c(0xd2),'minLength':0x1},'position':{'$ref':'#/$defs/position'},'approvalMode':{'enum':[a282_0x13f12c(0x124),a282_0x13f12c(0x16d),a282_0x13f12c(0x1cf)]},'taskMode':{'enum':['APPROVAL',a282_0x13f12c(0xf9)]},'assignee':{'type':'object','required':[a282_0x13f12c(0x188)],'properties':{'strategy':{'enum':[a282_0x13f12c(0x143),a282_0x13f12c(0x1f4)]},'userIds':{'type':a282_0x13f12c(0x210),'minItems':0x1,'items':{'$ref':a282_0x13f12c(0x1b0)}},'roleId':{'anyOf':[{'type':a282_0x13f12c(0x112),'minimum':0x1},{'type':a282_0x13f12c(0xd2),'pattern':a282_0x13f12c(0x142)}]}},'additionalProperties':!![]},'transferCandidates':{'type':'object','required':[a282_0x13f12c(0x188),a282_0x13f12c(0x15c)],'properties':{'strategy':{'const':a282_0x13f12c(0x143)},'userIds':{'type':a282_0x13f12c(0x210),'minItems':0x1,'items':{'$ref':a282_0x13f12c(0x1b0)}}},'additionalProperties':!![]},'sequential':{'type':a282_0x13f12c(0xf3)},'result':{'enum':['APPROVED','REJECTED']},'scriptName':{'type':a282_0x13f12c(0xd2),'minLength':0x1},'resultVariable':{'type':'string','pattern':a282_0x13f12c(0x17f)},'async':{'type':a282_0x13f12c(0x1ea),'properties':{'enabled':{'type':a282_0x13f12c(0xf3)},'retryCount':{'type':'integer','minimum':0x1,'maximum':0xa},'retryInterval':{'$ref':'#/$defs/timeAmount'}},'additionalProperties':!![]},'timeout':{'type':a282_0x13f12c(0x1ea),'properties':{'enabled':{'type':a282_0x13f12c(0xf3)},'duration':{'$ref':a282_0x13f12c(0x18f)},'action':{'enum':[a282_0x13f12c(0x1e4),a282_0x13f12c(0x21d),a282_0x13f12c(0x13e)]},'interrupting':{'type':'boolean'},'scriptName':{'type':a282_0x13f12c(0xd2),'minLength':0x1},'resultVariable':{'type':a282_0x13f12c(0xd2),'pattern':a282_0x13f12c(0x17f)}},'additionalProperties':!![]},'cc':{'type':a282_0x13f12c(0x1ea),'required':[a282_0x13f12c(0xea)],'properties':{'recipientUserIds':{'type':a282_0x13f12c(0x210),'minItems':0x1,'maxItems':0x64,'uniqueItems':!![],'items':{'type':a282_0x13f12c(0xd2),'minLength':0x1}},'visible':{'type':a282_0x13f12c(0x210),'uniqueItems':!![],'items':{'type':a282_0x13f12c(0xd2),'minLength':0x1}},'readSources':![]},'additionalProperties':!![]},'config':{'type':'object','required':[a282_0x13f12c(0xee),a282_0x13f12c(0x15f)],'properties':{'version':{'enum':['v1']},'configCode':{'type':'string','minLength':0x1},'failurePolicy':{'enum':['CONTINUE',a282_0x13f12c(0x1e1)]},'template':{'type':'object','required':['title',a282_0x13f12c(0x115)],'properties':{'title':{'type':'string','minLength':0x1},'summary':{'type':a282_0x13f12c(0xd2),'minLength':0x1},'detailMarkdown':{'type':a282_0x13f12c(0xd2)},'facts':{'type':a282_0x13f12c(0x210),'maxItems':0x8,'items':{'type':'object','required':[a282_0x13f12c(0xe2),a282_0x13f12c(0x1a9)],'properties':{'label':{'type':'string','minLength':0x1},'value':{'type':'string','minLength':0x1}},'additionalProperties':!![]}},'actions':{'type':'array','maxItems':0x2,'items':{'type':a282_0x13f12c(0x1ea),'required':[a282_0x13f12c(0x181),a282_0x13f12c(0x1d3)],'properties':{'text':{'type':a282_0x13f12c(0xd2),'minLength':0x1},'url':{'type':a282_0x13f12c(0xd2),'minLength':0x1}},'additionalProperties':!![]}}},'additionalProperties':!![]},'recipients':{'type':a282_0x13f12c(0x210),'items':{'type':a282_0x13f12c(0x1ea),'required':['type','value'],'properties':{'type':{'enum':[a282_0x13f12c(0x1e5),a282_0x13f12c(0x1f4),a282_0x13f12c(0x182)]},'value':{'type':'string','minLength':0x1},'role':{'enum':['TO','CC',a282_0x13f12c(0x150)]}},'additionalProperties':!![]}}},'additionalProperties':!![]},'form':![],'formPermission':![]},'additionalProperties':!![]},'flowEdge':{'type':'object','properties':{'id':{'type':a282_0x13f12c(0xd2),'pattern':a282_0x13f12c(0x17f)},'source':{'type':a282_0x13f12c(0xd2),'minLength':0x1},'target':{'type':a282_0x13f12c(0xd2),'minLength':0x1},'sourceNodeId':{'type':a282_0x13f12c(0xd2),'minLength':0x1},'targetNodeId':{'type':'string','minLength':0x1},'conditionType':{'enum':[a282_0x13f12c(0x198),a282_0x13f12c(0x1b8),a282_0x13f12c(0x1db),'EXPRESSION']},'expression':{'type':a282_0x13f12c(0xd2)},'defaultFlow':{'type':a282_0x13f12c(0xf3)},'name':{'type':'string'},'waypoints':{'type':a282_0x13f12c(0x210),'items':{'$ref':a282_0x13f12c(0x1df)}}},'allOf':[{'anyOf':[{'required':[a282_0x13f12c(0x19a)]},{'required':[a282_0x13f12c(0x170)]}]},{'anyOf':[{'required':['target']},{'required':[a282_0x13f12c(0x165)]}]}],'additionalProperties':!![]}},'properties':{'id':![],'appCode':![],'flowName':{'type':'string','minLength':0x1},'flowDesc':{'type':'string'},'flowType':{'enum':[a282_0x13f12c(0x197),'INDEPENDENT_FLOW']},'datasetCode':{'type':'string','minLength':0x1},'pageId':{'type':'integer'},'templateName':![],'flowJson':{'type':a282_0x13f12c(0x1ea),'required':['nodes',a282_0x13f12c(0x1a8)],'properties':{'flowKey':![],'flowCode':![],'flowName':![],'bindDatasetCode':![],'datasetCode':![],'appCode':![],'pageId':![],'templateName':![],'schemaVersion':{'type':a282_0x13f12c(0xd2),'const':a282_0x13f12c(0x204),'description':a282_0x13f12c(0x141)},'formSchema':![],'formDefinitions':![],'formPermissions':![],'pageMode':{'const':a282_0x13f12c(0x1f5)},'startPageId':![],'startPath':{'type':a282_0x13f12c(0xd2),'minLength':0x1},'nodes':{'type':a282_0x13f12c(0x210),'minItems':0x1,'items':{'$ref':'#/$defs/flowNode'}},'edges':{'type':a282_0x13f12c(0x210),'minItems':0x1,'items':{'$ref':'#/$defs/flowEdge'}}},'additionalProperties':!![]}},'additionalProperties':!![]};const REMOVED_FLOW_JSON_FIELDS=['flowKey','flowCode','flowName',a282_0x13f12c(0x1a4),a282_0x13f12c(0x164),'appCode','pageId',a282_0x13f12c(0x1d4)],REMOVED_ROOT_FIELDS=['id',a282_0x13f12c(0x11f),a282_0x13f12c(0x1d4)],DEFAULT_FLOW_SCHEMA_VERSION=a282_0x13f12c(0x204),NODE_TYPES=new Set([a282_0x13f12c(0x158),a282_0x13f12c(0x207),a282_0x13f12c(0x196),a282_0x13f12c(0x1aa),'SCRIPT',a282_0x13f12c(0x18c)]),CONDITION_TYPES=new Set([a282_0x13f12c(0x198),a282_0x13f12c(0x1b8),a282_0x13f12c(0x1db),'EXPRESSION']),APPROVAL_MODES=new Set([a282_0x13f12c(0x124),a282_0x13f12c(0x16d),a282_0x13f12c(0x1cf)]),APPROVAL_TASK_MODES=new Set(['APPROVAL',a282_0x13f12c(0xf9)]),FLOW_TIME_UNITS=new Set([a282_0x13f12c(0x205),'MINUTES','HOURS','DAYS']),APPROVAL_TIMEOUT_ACTIONS=new Set(['AUTO_APPROVE',a282_0x13f12c(0x21d),a282_0x13f12c(0x13e)]),FLOW_TYPES=new Set([a282_0x13f12c(0x197),'INDEPENDENT_FLOW']),FLOW_PAGE_MODES=new Set([a282_0x13f12c(0x1f5),a282_0x13f12c(0xbf)]),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([a282_0x13f12c(0x173),'FAIL']),NOTIFICATION_RECIPIENT_TYPES=new Set([a282_0x13f12c(0x1e5),'ROLE',a282_0x13f12c(0x182)]),NOTIFICATION_RECIPIENT_ROLES=new Set(['TO','CC','BCC']),MAX_NOTIFICATION_FACTS=0x8,MAX_NOTIFICATION_ACTIONS=0x2,MAX_ASYNC_RETRY_COUNT=0xa,MAX_CC_RECIPIENTS=0x64,DEFAULT_SCRIPT_RESULT_VARIABLE=a282_0x13f12c(0x1fe),UNSUPPORTED_FORM_MESSAGE=a282_0x13f12c(0x192),UNSUPPORTED_PLATFORM_FORM_MESSAGE=a282_0x13f12c(0x127),RESERVED_RESULT_VARIABLES=new Set([a282_0x13f12c(0x105),a282_0x13f12c(0x1c9),a282_0x13f12c(0xe4),'approval_sys_processInstanceId',a282_0x13f12c(0xcb),a282_0x13f12c(0x221),a282_0x13f12c(0x160),a282_0x13f12c(0x10f),a282_0x13f12c(0x1c2),a282_0x13f12c(0x1ad)]);export function normalizeFlowConfig(_0x264a22){const _0x66bd2d=a282_0x13f12c;if(!isRecord(_0x264a22))throw new TypeError(_0x66bd2d(0x14f));const _0x52f682=cloneJsonValue(_0x264a22),_0x167483=_0x52f682[_0x66bd2d(0xfd)],_0x46a934=isRecord(_0x167483)?cloneJsonValue(_0x167483):{},_0x140028=[],_0x17a1d9=[];for(const _0x19c39d of REMOVED_ROOT_FIELDS){if(!Object[_0x66bd2d(0x110)][_0x66bd2d(0x21e)][_0x66bd2d(0x13b)](_0x52f682,_0x19c39d))continue;delete _0x52f682[_0x19c39d],_0x17a1d9[_0x66bd2d(0x1ba)](_0x19c39d),_0x140028[_0x66bd2d(0x1ba)]({'code':_0x66bd2d(0x11c),'path':_0x19c39d,'message':_0x19c39d+'\x20is\x20not\x20part\x20of\x20the\x20portable\x20FlowConfig\x20and\x20was\x20removed.'});}for(const _0x50b260 of REMOVED_FLOW_JSON_FIELDS){if(!Object[_0x66bd2d(0x110)][_0x66bd2d(0x21e)][_0x66bd2d(0x13b)](_0x46a934,_0x50b260))continue;const _0x2f8c9f=_0x66bd2d(0x1c3)+_0x50b260;delete _0x46a934[_0x50b260],_0x17a1d9[_0x66bd2d(0x1ba)](_0x2f8c9f),_0x140028[_0x66bd2d(0x1ba)]({'code':_0x66bd2d(0x11c),'path':_0x2f8c9f,'message':_0x2f8c9f+_0x66bd2d(0xc4)});}if(Object[_0x66bd2d(0x110)][_0x66bd2d(0x21e)]['call'](_0x46a934,_0x66bd2d(0x1ce))){const _0x11abc6=_0x46a934[_0x66bd2d(0x1ce)],_0x233ff7=typeof _0x11abc6===_0x66bd2d(0xd2)?_0x11abc6['trim']():_0x11abc6;if(isEmptyJsonValue(_0x11abc6)||_0x233ff7===DEFAULT_FLOW_SCHEMA_VERSION){const _0x2aefc9=_0x66bd2d(0xc0);delete _0x46a934[_0x66bd2d(0x1ce)],_0x17a1d9[_0x66bd2d(0x1ba)](_0x2aefc9),_0x140028['push']({'code':_0x66bd2d(0x11c),'path':_0x2aefc9,'message':_0x2aefc9+_0x66bd2d(0x161)+DEFAULT_FLOW_SCHEMA_VERSION+'\x20value\x20and\x20was\x20removed\x20from\x20the\x20portable\x20FlowConfig.'});}}removeEmptyMetadata(_0x46a934,'flowJson',_0x140028,_0x17a1d9);_0x52f682[_0x66bd2d(0x148)]===_0x66bd2d(0x209)&&!Object[_0x66bd2d(0x110)][_0x66bd2d(0x21e)][_0x66bd2d(0x13b)](_0x46a934,_0x66bd2d(0xef))&&(_0x46a934['pageMode']=_0x66bd2d(0x1f5));_0x52f682[_0x66bd2d(0xfd)]=_0x46a934;if(typeof _0x52f682['flowName']===_0x66bd2d(0xd2))_0x52f682[_0x66bd2d(0x19f)]=_0x52f682[_0x66bd2d(0x19f)]['trim']();return{'config':_0x52f682,'warnings':_0x140028,'removedPaths':_0x17a1d9};}export function validateFlowConfig(_0x2a714c){const _0x511052=a282_0x13f12c;let _0x38fff1;try{_0x38fff1=normalizeFlowConfig(_0x2a714c);}catch(_0xd95f0f){const _0x3679b2=_0xd95f0f instanceof Error?_0xd95f0f[_0x511052(0x1e3)]:String(_0xd95f0f),_0x495f26={'flowJson':{}};return{'valid':![],'errors':[{'path':'$','message':_0x3679b2}],'warnings':[],'normalized':_0x495f26,'validationConfig':_0x495f26};}const _0xbc02f1=_0x38fff1[_0x511052(0x14b)],_0x4db239=cloneJsonValue(_0xbc02f1),_0x1ca089=_0x4db239[_0x511052(0xfd)];_0x1ca089[_0x511052(0xf6)]=_0x511052(0x19b),_0x1ca089['flowName']=_0xbc02f1['flowName'];typeof _0xbc02f1['datasetCode']===_0x511052(0xd2)&&_0xbc02f1[_0x511052(0x164)][_0x511052(0x216)]()&&(_0x1ca089[_0x511052(0x1a4)]=_0xbc02f1[_0x511052(0x164)][_0x511052(0x216)]());const _0x4135f3=[];return validateOuterMetadata(_0xbc02f1,_0x4135f3),validateFlowClassification(_0xbc02f1,_0x4135f3),validateGraph(_0xbc02f1[_0x511052(0xfd)],_0x4135f3),{'valid':_0x4135f3[_0x511052(0x1dc)]===0x0,'errors':_0x4135f3,'warnings':_0x38fff1[_0x511052(0x21f)],'normalized':_0xbc02f1,'validationConfig':_0x4db239};}function validateFlowClassification(_0xc39f85,_0xf58fd7){const _0x452633=a282_0x13f12c;if(!isRecord(_0xc39f85[_0x452633(0xfd)]))return;const _0x55f9d0=_0xc39f85[_0x452633(0x148)],_0xecdee3=_0xc39f85['flowJson'][_0x452633(0xef)];_0xecdee3!==undefined&&(typeof _0xecdee3!=='string'||!FLOW_PAGE_MODES[_0x452633(0x212)](_0xecdee3))&&_0xf58fd7[_0x452633(0x1ba)]({'path':_0x452633(0x1bb),'message':_0x452633(0x125)+String(_0xecdee3)+'.'});_0x55f9d0===_0x452633(0x197)&&_0xecdee3!==undefined&&_0xf58fd7['push']({'path':_0x452633(0x1bb),'message':_0x452633(0x185)});_0x55f9d0===_0x452633(0x209)&&_0xecdee3===_0x452633(0xbf)&&_0xf58fd7[_0x452633(0x1ba)]({'path':_0x452633(0x1bb),'message':UNSUPPORTED_PLATFORM_FORM_MESSAGE});(_0x55f9d0===_0x452633(0x197)||_0x55f9d0==='INDEPENDENT_FLOW')&&validateCustomPageNavigation(_0xc39f85,_0x55f9d0,_0xecdee3,_0xf58fd7);if(_0x55f9d0!==_0x452633(0x197)||!Array[_0x452633(0x126)](_0xc39f85[_0x452633(0xfd)][_0x452633(0x138)]))return;_0xc39f85[_0x452633(0xfd)][_0x452633(0x138)]['forEach']((_0x5daf0f,_0x37d3cb)=>{const _0x37306e=_0x452633;isRecord(_0x5daf0f)&&_0x5daf0f[_0x37306e(0x199)]==='APPROVAL'&&_0x5daf0f[_0x37306e(0x1d1)]===_0x37306e(0xf9)&&_0xf58fd7[_0x37306e(0x1ba)]({'path':_0x37306e(0x1c1)+_0x37d3cb+_0x37306e(0x10c),'message':_0x37306e(0x113)});});}function validateCustomPageNavigation(_0x9571f1,_0x30ecbd,_0x463bae,_0x5e6473){const _0x2735c7=a282_0x13f12c,_0x4c0c44=_0x9571f1[_0x2735c7(0xfd)]['startPageId'];_0x4c0c44!==undefined&&_0x5e6473[_0x2735c7(0x1ba)]({'path':_0x2735c7(0xdd),'message':_0x2735c7(0x11d)});const _0x1a41ce=_0x9571f1[_0x2735c7(0xfd)][_0x2735c7(0x12f)];_0x1a41ce!==undefined&&(typeof _0x1a41ce!==_0x2735c7(0xd2)||_0x1a41ce['trim']()==='')&&_0x5e6473[_0x2735c7(0x1ba)]({'path':_0x2735c7(0xce),'message':_0x2735c7(0xdf)});const _0x5b808d=Array[_0x2735c7(0x126)](_0x9571f1[_0x2735c7(0xfd)][_0x2735c7(0x138)])?_0x9571f1[_0x2735c7(0xfd)][_0x2735c7(0x138)][_0x2735c7(0xe0)]((_0x4ec1ca,_0x4a80a5)=>({'node':_0x4ec1ca,'index':_0x4a80a5}))[_0x2735c7(0x226)](({node:_0x5f466c})=>isRecord(_0x5f466c)&&_0x5f466c[_0x2735c7(0xd8)]!==undefined):[],_0x36d68e=_0x1a41ce!==undefined||_0x5b808d['length']>0x0,_0x5e60aa=_0x463bae===undefined&&_0x30ecbd==='INDEPENDENT_FLOW'?'CUSTOM_PAGE':_0x463bae;_0x36d68e&&(_0x30ecbd!=='INDEPENDENT_FLOW'||_0x5e60aa!==_0x2735c7(0x1f5))&&(_0x1a41ce!==undefined&&_0x5e6473[_0x2735c7(0x1ba)]({'path':_0x2735c7(0xce),'message':_0x2735c7(0x123)}),_0x5b808d[_0x2735c7(0x1f2)](({index:_0x2d52ce})=>{const _0x17fdb4=_0x2735c7;_0x5e6473['push']({'path':'flowJson.nodes['+_0x2d52ce+'].path','message':_0x17fdb4(0x151)});}));}export async function writeNormalizedFlowConfig(_0x331d31,_0x175420,_0x404326={}){const _0x1205a7=a282_0x13f12c,_0xb0f143=resolve(_0x331d31),_0x27412b=_0xb0f143+'.'+process[_0x1205a7(0x190)]+'.'+randomUUID()+_0x1205a7(0x1bc),_0x49bfb6=JSON['stringify'](_0x175420,null,0x2)+'\x0a';let _0xde774a;try{try{_0xde774a=(await stat(_0xb0f143))[_0x1205a7(0x134)]&0x1ff;}catch{_0xde774a=undefined;}await writeFile(_0x27412b,_0x49bfb6,{'encoding':'utf8','flag':'wx','mode':_0xde774a??0x1a4});if(_0xde774a!==undefined)await chmod(_0x27412b,_0xde774a);_0x404326[_0x1205a7(0xd5)]===![]?(await link(_0x27412b,_0xb0f143),await unlink(_0x27412b)):await rename(_0x27412b,_0xb0f143);}finally{await unlink(_0x27412b)[_0x1205a7(0x1dd)](()=>undefined);}}function validateOuterMetadata(_0xc5c097,_0x396c9c){const _0x1d88a8=a282_0x13f12c;(typeof _0xc5c097[_0x1d88a8(0x19f)]!==_0x1d88a8(0xd2)||_0xc5c097[_0x1d88a8(0x19f)][_0x1d88a8(0x216)]()==='')&&_0x396c9c[_0x1d88a8(0x1ba)]({'path':_0x1d88a8(0x19f),'message':_0x1d88a8(0x1d8)});_0xc5c097[_0x1d88a8(0x22b)]!==undefined&&typeof _0xc5c097[_0x1d88a8(0x22b)]!==_0x1d88a8(0xd2)&&_0x396c9c[_0x1d88a8(0x1ba)]({'path':_0x1d88a8(0x22b),'message':_0x1d88a8(0xc8)});if(_0xc5c097[_0x1d88a8(0x148)]===undefined||_0xc5c097[_0x1d88a8(0x148)]===null)_0x396c9c[_0x1d88a8(0x1ba)]({'path':_0x1d88a8(0x148),'message':_0x1d88a8(0x1ec)});else(typeof _0xc5c097['flowType']!==_0x1d88a8(0xd2)||!FLOW_TYPES['has'](_0xc5c097[_0x1d88a8(0x148)]))&&_0x396c9c[_0x1d88a8(0x1ba)]({'path':_0x1d88a8(0x148),'message':'Unsupported\x20flowType:\x20'+String(_0xc5c097[_0x1d88a8(0x148)])+'.'});_0xc5c097[_0x1d88a8(0x164)]!==undefined&&typeof _0xc5c097[_0x1d88a8(0x164)]!==_0x1d88a8(0xd2)&&_0x396c9c['push']({'path':_0x1d88a8(0x164),'message':'datasetCode\x20must\x20be\x20a\x20string.'}),_0xc5c097[_0x1d88a8(0x13a)]!==undefined&&(!Number[_0x1d88a8(0x16a)](_0xc5c097['pageId'])||_0xc5c097[_0x1d88a8(0x13a)]<0x0)&&_0x396c9c[_0x1d88a8(0x1ba)]({'path':_0x1d88a8(0x13a),'message':_0x1d88a8(0x12a)}),_0xc5c097['flowType']===_0x1d88a8(0x209)&&_0xc5c097['datasetCode']!==undefined&&_0x396c9c[_0x1d88a8(0x1ba)]({'path':_0x1d88a8(0x164),'message':_0x1d88a8(0x21b)}),_0xc5c097[_0x1d88a8(0x148)]==='INDEPENDENT_FLOW'&&_0xc5c097[_0x1d88a8(0x13a)]!==undefined&&_0x396c9c[_0x1d88a8(0x1ba)]({'path':_0x1d88a8(0x13a),'message':'INDEPENDENT_FLOW\x20cannot\x20bind\x20pageId.'});}function validateGraph(_0x349e9c,_0x38411a){const _0x2b5b42=a282_0x13f12c;if(!isRecord(_0x349e9c)){_0x38411a[_0x2b5b42(0x1ba)]({'path':_0x2b5b42(0xfd),'message':_0x2b5b42(0x104)});return;}!Array['isArray'](_0x349e9c['nodes'])&&_0x38411a['push']({'path':_0x2b5b42(0x228),'message':'nodes\x20must\x20be\x20an\x20array.'});!Array[_0x2b5b42(0x126)](_0x349e9c['edges'])&&_0x38411a[_0x2b5b42(0x1ba)]({'path':'flowJson.edges','message':_0x2b5b42(0x21a)});Object[_0x2b5b42(0x110)][_0x2b5b42(0x21e)][_0x2b5b42(0x13b)](_0x349e9c,_0x2b5b42(0x1ce))&&_0x38411a[_0x2b5b42(0x1ba)]({'path':'flowJson.schemaVersion','message':_0x2b5b42(0x140)+String(_0x349e9c[_0x2b5b42(0x1ce)])+'.\x20This\x20CLI\x20supports\x20only\x20'+DEFAULT_FLOW_SCHEMA_VERSION+'.'});for(const _0xeea4f of[_0x2b5b42(0x1a7),'formDefinitions',_0x2b5b42(0xf7)]){Object['prototype'][_0x2b5b42(0x21e)][_0x2b5b42(0x13b)](_0x349e9c,_0xeea4f)&&_0x38411a[_0x2b5b42(0x1ba)]({'path':_0x2b5b42(0x1c3)+_0xeea4f,'message':UNSUPPORTED_FORM_MESSAGE});}if(!Array[_0x2b5b42(0x126)](_0x349e9c[_0x2b5b42(0x138)])||!Array['isArray'](_0x349e9c[_0x2b5b42(0x1a8)]))return;const _0x2e30c6=new Map(),_0x3d4cbe=[],_0x4bfd48=[],_0x36bd5b=new Map(),_0x3b3056=new Map(),_0x2b02d1=new Set();let _0x3d2689=0x0;_0x349e9c[_0x2b5b42(0x138)][_0x2b5b42(0x1f2)]((_0x232d29,_0x2052f4)=>{const _0x355580=_0x2b5b42,_0x26724d=_0x355580(0x1c1)+_0x2052f4+']';if(!isRecord(_0x232d29)){_0x38411a['push']({'path':_0x26724d,'message':_0x355580(0x102)});return;}const _0x2535ab=_0x232d29;if(typeof _0x2535ab['id']!=='string'||!BPMN_ID_PATTERN[_0x355580(0x154)](_0x2535ab['id']))_0x38411a['push']({'path':_0x26724d+_0x355580(0x177),'message':'node\x20id\x20must\x20match\x20[A-Za-z_][A-Za-z0-9_]*.'});else _0x2e30c6[_0x355580(0x212)](_0x2535ab['id'])?_0x38411a[_0x355580(0x1ba)]({'path':_0x26724d+_0x355580(0x177),'message':_0x355580(0x187)+_0x2535ab['id']+'.'}):(_0x2e30c6['set'](_0x2535ab['id'],_0x2535ab),_0x2b02d1[_0x355580(0x203)](_0x2535ab['id']));if(!NODE_TYPES[_0x355580(0x212)](_0x2535ab[_0x355580(0x199)]))_0x38411a[_0x355580(0x1ba)]({'path':_0x26724d+_0x355580(0x1fc),'message':_0x355580(0x13d)+String(_0x2535ab['type'])+'.'});else{if(_0x2535ab['type']==='START')_0x3d4cbe[_0x355580(0x1ba)](_0x2535ab['id']);else _0x2535ab[_0x355580(0x199)]===_0x355580(0x207)&&_0x4bfd48[_0x355580(0x1ba)](_0x2535ab['id']);}_0x2535ab[_0x355580(0x199)]===_0x355580(0x196)&&(_0x2535ab[_0x355580(0x1d1)]===undefined||_0x2535ab[_0x355580(0x1d1)]===_0x355580(0x196))&&(_0x3d2689+=0x1);validateNode(_0x2535ab,_0x26724d,_0x38411a);if(_0x2535ab[_0x355580(0x199)]===_0x355580(0xc9)){const _0x384a3b=resolveEffectiveResultVariable(_0x2535ab[_0x355580(0x223)],![]);_0x384a3b&&(registerResultVariableOwner(_0x3b3056,_0x384a3b,_0x2535ab['id'],_0x38411a),!_0x36bd5b[_0x355580(0x212)](_0x384a3b)&&_0x36bd5b['set'](_0x384a3b,_0x2535ab['id']));}if(_0x2535ab['type']===_0x355580(0x196)&&isRecord(_0x2535ab['timeout'])&&_0x2535ab[_0x355580(0x1b9)][_0x355580(0x1b5)]===!![]&&_0x2535ab[_0x355580(0x1b9)]['action']===_0x355580(0x13e)){const _0xb60562=resolveEffectiveResultVariable(_0x2535ab['timeout'][_0x355580(0x223)],!![]);_0xb60562&&registerResultVariableOwner(_0x3b3056,_0xb60562,_0x2535ab['id']+'.timeout',_0x38411a);}});_0x3d4cbe[_0x2b5b42(0x1dc)]!==0x1&&_0x38411a[_0x2b5b42(0x1ba)]({'path':_0x2b5b42(0x228),'message':_0x2b5b42(0x1f0)});_0x4bfd48[_0x2b5b42(0x1dc)]===0x0&&_0x38411a[_0x2b5b42(0x1ba)]({'path':_0x2b5b42(0x228),'message':_0x2b5b42(0x100)});const _0x33926c=new Map(),_0x215856=new Map(),_0x18f67c=new Map(),_0x4c17d7=new Set();_0x349e9c[_0x2b5b42(0x1a8)][_0x2b5b42(0x1f2)]((_0x214357,_0xadf3e3)=>{const _0x5b3155=_0x2b5b42,_0x671c8f='flowJson.edges['+_0xadf3e3+']';if(!isRecord(_0x214357)){_0x38411a[_0x5b3155(0x1ba)]({'path':_0x671c8f,'message':_0x5b3155(0x186)});return;}const _0x588230=_0x214357;_0x18f67c[_0x5b3155(0x1af)](_0x588230,_0x671c8f);const _0x27d58b=resolveEdgeEndpoint(_0x588230[_0x5b3155(0x19a)],_0x588230[_0x5b3155(0x170)]),_0x369851=resolveEdgeEndpoint(_0x588230[_0x5b3155(0xc2)],_0x588230[_0x5b3155(0x165)]);if(!_0x27d58b)_0x38411a[_0x5b3155(0x1ba)]({'path':_0x671c8f+_0x5b3155(0x189),'message':_0x5b3155(0x15b)});if(!_0x369851)_0x38411a[_0x5b3155(0x1ba)]({'path':_0x671c8f+_0x5b3155(0x130),'message':_0x5b3155(0x191)});_0x27d58b&&!_0x2e30c6['has'](_0x27d58b)&&_0x38411a[_0x5b3155(0x1ba)]({'path':_0x671c8f+_0x5b3155(0x189),'message':_0x5b3155(0x1a6)+_0x27d58b+'.'});_0x369851&&!_0x2e30c6['has'](_0x369851)&&_0x38411a['push']({'path':_0x671c8f+_0x5b3155(0x130),'message':_0x5b3155(0x135)+_0x369851+'.'});if(_0x588230['id']!==undefined){if(typeof _0x588230['id']!==_0x5b3155(0xd2)||!BPMN_ID_PATTERN['test'](_0x588230['id']))_0x38411a['push']({'path':_0x671c8f+_0x5b3155(0x177),'message':_0x5b3155(0xca)});else{if(_0x2b02d1[_0x5b3155(0x212)](_0x588230['id']))_0x38411a[_0x5b3155(0x1ba)]({'path':_0x671c8f+_0x5b3155(0x177),'message':'Duplicate\x20BPMN\x20element\x20id:\x20'+_0x588230['id']+'.'});else!_0x2b02d1[_0x5b3155(0x212)](_0x588230['id'])&&_0x2b02d1[_0x5b3155(0x203)](_0x588230['id']);}}if(_0x27d58b&&_0x369851){const _0x2995eb=_0x27d58b+'\x00'+_0x369851+'\x00'+(_0x588230['conditionType']??'ALWAYS');_0x4c17d7['has'](_0x2995eb)?_0x38411a[_0x5b3155(0x1ba)]({'path':_0x671c8f,'message':_0x5b3155(0x19e)+_0x27d58b+_0x5b3155(0x1de)+_0x369851+'\x20('+(_0x588230[_0x5b3155(0x20a)]??_0x5b3155(0x198))+').'}):_0x4c17d7['add'](_0x2995eb);}validateEdge(_0x588230,_0x671c8f,_0x38411a),_0x27d58b&&_0x369851&&(_0x33926c['get'](_0x27d58b)?.['push'](_0x588230)??_0x33926c[_0x5b3155(0x1af)](_0x27d58b,[_0x588230]),_0x215856[_0x5b3155(0x13c)](_0x369851)?.[_0x5b3155(0x1ba)](_0x588230)??_0x215856[_0x5b3155(0x1af)](_0x369851,[_0x588230]));});if(_0x3d4cbe[_0x2b5b42(0x1dc)]!==0x1)return;validateGraphShape(_0x2e30c6,_0x3d4cbe[0x0],_0x4bfd48,_0x33926c,_0x215856,_0x18f67c,_0x38411a),validateScriptResultReferences(_0x2e30c6,_0x3d4cbe[0x0],_0x33926c,_0x215856,_0x18f67c,_0x36bd5b,_0x38411a),validateApprovalResults(_0x2e30c6,_0x3d2689,_0x4bfd48,_0x38411a);}function validateNode(_0x4c5950,_0x46031c,_0x2d9dd7){const _0x161983=a282_0x13f12c;for(const _0x32e36e of['form',_0x161983(0x1d2)]){Object['prototype'][_0x161983(0x21e)][_0x161983(0x13b)](_0x4c5950,_0x32e36e)&&_0x2d9dd7['push']({'path':_0x46031c+'.'+_0x32e36e,'message':UNSUPPORTED_FORM_MESSAGE});}if(!NODE_TYPES[_0x161983(0x212)](_0x4c5950['type']))return;(typeof _0x4c5950['name']!==_0x161983(0xd2)||_0x4c5950[_0x161983(0x15e)][_0x161983(0x216)]()==='')&&_0x2d9dd7['push']({'path':_0x46031c+_0x161983(0x15d),'message':_0x161983(0xcc)});_0x4c5950['pageId']!==undefined&&_0x2d9dd7[_0x161983(0x1ba)]({'path':_0x46031c+'.pageId','message':_0x161983(0x1a3)});if(_0x4c5950[_0x161983(0xd8)]!==undefined){if(typeof _0x4c5950['path']!==_0x161983(0xd2)||_0x4c5950[_0x161983(0xd8)][_0x161983(0x216)]()==='')_0x2d9dd7[_0x161983(0x1ba)]({'path':_0x46031c+_0x161983(0x175),'message':'node\x20path\x20must\x20be\x20a\x20non-empty\x20string.'});else _0x4c5950[_0x161983(0x199)]!=='APPROVAL'&&_0x4c5950[_0x161983(0x199)]!==_0x161983(0x207)&&_0x2d9dd7[_0x161983(0x1ba)]({'path':_0x46031c+'.path','message':'node\x20path\x20is\x20supported\x20only\x20on\x20APPROVAL\x20or\x20END\x20nodes.'});}const _0x4d75b1=_0x4c5950[_0x161983(0x109)];if(!isRecord(_0x4d75b1))_0x2d9dd7[_0x161983(0x1ba)]({'path':_0x46031c+_0x161983(0x176),'message':_0x161983(0x184)});else for(const _0xa7204d of['x','y']){const _0x3fa761=_0x4d75b1[_0xa7204d];(typeof _0x3fa761!==_0x161983(0x1fa)||!Number[_0x161983(0x16e)](_0x3fa761)||_0x3fa761<0x0)&&_0x2d9dd7[_0x161983(0x1ba)]({'path':_0x46031c+'.position.'+_0xa7204d,'message':'position.'+_0xa7204d+_0x161983(0x10e)});}if(_0x4c5950[_0x161983(0x199)]===_0x161983(0x196)){const _0x13ef78=_0x4c5950[_0x161983(0x229)]??_0x161983(0x124),_0x159d4b=_0x4c5950[_0x161983(0x1d1)]??_0x161983(0x196);!APPROVAL_TASK_MODES[_0x161983(0x212)](_0x159d4b)&&_0x2d9dd7[_0x161983(0x1ba)]({'path':_0x46031c+_0x161983(0xe7),'message':'Unsupported\x20task\x20mode:\x20'+String(_0x159d4b)+'.'});!APPROVAL_MODES[_0x161983(0x212)](_0x13ef78)&&_0x2d9dd7['push']({'path':_0x46031c+_0x161983(0xeb),'message':_0x161983(0x1f1)+String(_0x13ef78)+'.'});if(!isRecord(_0x4c5950['assignee']))_0x2d9dd7[_0x161983(0x1ba)]({'path':_0x46031c+_0x161983(0x116),'message':_0x161983(0x180)});else{const _0x1888bc=_0x4c5950[_0x161983(0x119)][_0x161983(0x188)];_0x1888bc!==_0x161983(0x143)&&_0x1888bc!==_0x161983(0x1f4)&&_0x2d9dd7[_0x161983(0x1ba)]({'path':_0x46031c+_0x161983(0x167),'message':_0x161983(0x224)});if(_0x1888bc===_0x161983(0x143)){const _0x438072=_0x4c5950[_0x161983(0x119)][_0x161983(0x15c)];if(!Array[_0x161983(0x126)](_0x438072)||_0x438072[_0x161983(0x1dc)]===0x0)_0x2d9dd7[_0x161983(0x1ba)]({'path':_0x46031c+_0x161983(0xd0),'message':_0x161983(0xbd)});else{const _0x515c29=_0x438072[_0x161983(0x12c)](_0x78be62=>!isValidUserId(_0x78be62));_0x515c29>=0x0&&_0x2d9dd7[_0x161983(0x1ba)]({'path':_0x46031c+_0x161983(0x1b7)+_0x515c29+']','message':_0x161983(0x1fd)});const _0x236948=new Set(_0x438072[_0x161983(0x226)](isValidUserId)[_0x161983(0xe0)](_0x1c33fb=>String(_0x1c33fb)['trim']()));_0x13ef78==='SINGLE'&&_0x236948[_0x161983(0x10d)]>0x1&&_0x2d9dd7[_0x161983(0x1ba)]({'path':_0x46031c+'.assignee.userIds','message':_0x161983(0xda)});}}if(_0x1888bc===_0x161983(0x1f4)){const _0x1a3439=_0x4c5950[_0x161983(0x119)][_0x161983(0x1bd)],_0x4368d6=typeof _0x1a3439==='number'||typeof _0x1a3439==='string'?Number(String(_0x1a3439)[_0x161983(0x216)]()):Number[_0x161983(0x1b3)];(!Number['isSafeInteger'](_0x4368d6)||_0x4368d6<=0x0)&&_0x2d9dd7[_0x161983(0x1ba)]({'path':_0x46031c+'.assignee.roleId','message':_0x161983(0x145)});}}if(_0x4c5950[_0x161983(0xd6)]!==undefined){if(!isRecord(_0x4c5950[_0x161983(0xd6)]))_0x2d9dd7[_0x161983(0x1ba)]({'path':_0x46031c+_0x161983(0x218),'message':_0x161983(0x1b1)});else{if(_0x4c5950[_0x161983(0xd6)][_0x161983(0x188)]!=='FIXED')_0x2d9dd7['push']({'path':_0x46031c+'.transferCandidates.strategy','message':_0x161983(0x17b)});else{const _0x49d211=_0x4c5950[_0x161983(0xd6)]['userIds'];if(!Array[_0x161983(0x126)](_0x49d211)||_0x49d211[_0x161983(0x1dc)]===0x0)_0x2d9dd7['push']({'path':_0x46031c+_0x161983(0x215),'message':_0x161983(0x162)});else{const _0x4089c2=_0x49d211['findIndex'](_0xa857ba=>!isValidUserId(_0xa857ba));_0x4089c2>=0x0&&_0x2d9dd7['push']({'path':_0x46031c+'.transferCandidates.userIds['+_0x4089c2+']','message':'transfer\x20candidate\x20userId\x20must\x20be\x20a\x20non-empty\x20string\x20or\x20positive\x20integer.'});}}}}}_0x4c5950[_0x161983(0x1e2)]!==undefined&&typeof _0x4c5950[_0x161983(0x1e2)]!==_0x161983(0xf3)&&_0x2d9dd7[_0x161983(0x1ba)]({'path':_0x46031c+_0x161983(0x149),'message':_0x161983(0x22a)});if(_0x4c5950[_0x161983(0x199)]===_0x161983(0xc9)){(typeof _0x4c5950[_0x161983(0xe5)]!==_0x161983(0xd2)||_0x4c5950[_0x161983(0xe5)][_0x161983(0x216)]()==='')&&_0x2d9dd7[_0x161983(0x1ba)]({'path':_0x46031c+_0x161983(0x16b),'message':_0x161983(0x219)});if(_0x4c5950[_0x161983(0x223)]!==undefined){if(typeof _0x4c5950[_0x161983(0x223)]!=='string'||!VARIABLE_PATTERN[_0x161983(0x154)](_0x4c5950[_0x161983(0x223)]))_0x2d9dd7[_0x161983(0x1ba)]({'path':_0x46031c+_0x161983(0x1be),'message':_0x161983(0x214)});else(RESERVED_RESULT_VARIABLES[_0x161983(0x212)](_0x4c5950[_0x161983(0x223)])||_0x4c5950[_0x161983(0x223)][_0x161983(0x1f9)](_0x161983(0x131)))&&_0x2d9dd7[_0x161983(0x1ba)]({'path':_0x46031c+_0x161983(0x1be),'message':_0x161983(0x156)+_0x4c5950[_0x161983(0x223)]+'.'});}}validateAsyncExecution(_0x4c5950,_0x46031c,_0x2d9dd7),validateApprovalTimeout(_0x4c5950,_0x46031c,_0x2d9dd7),validateCcConfig(_0x4c5950,_0x46031c,_0x2d9dd7),_0x4c5950[_0x161983(0x199)]===_0x161983(0x18c)&&validateNotificationConfig(_0x4c5950[_0x161983(0x14b)],_0x46031c+_0x161983(0x1cc),_0x2d9dd7);}function validateAsyncExecution(_0x5981f8,_0x5929a7,_0x171fef){const _0x5a1312=a282_0x13f12c;if(_0x5981f8[_0x5a1312(0x1e0)]===undefined)return;if(!isRecord(_0x5981f8[_0x5a1312(0x1e0)])){_0x171fef[_0x5a1312(0x1ba)]({'path':_0x5929a7+_0x5a1312(0x1c7),'message':_0x5a1312(0x16f)});return;}if(_0x5981f8[_0x5a1312(0x1e0)][_0x5a1312(0x1b5)]!==undefined&&typeof _0x5981f8[_0x5a1312(0x1e0)][_0x5a1312(0x1b5)]!=='boolean'){_0x171fef[_0x5a1312(0x1ba)]({'path':_0x5929a7+'.async.enabled','message':_0x5a1312(0x1c0)});return;}if(_0x5981f8[_0x5a1312(0x1e0)][_0x5a1312(0x1b5)]!==!![])return;_0x5981f8[_0x5a1312(0x199)]!==_0x5a1312(0xc9)&&_0x171fef[_0x5a1312(0x1ba)]({'path':_0x5929a7+_0x5a1312(0x1c7),'message':_0x5a1312(0x20b)});const _0x271049=_0x5981f8['async'][_0x5a1312(0xd4)]??0x3;(!Number[_0x5a1312(0x16a)](_0x271049)||_0x271049<0x1||_0x271049>MAX_ASYNC_RETRY_COUNT)&&_0x171fef[_0x5a1312(0x1ba)]({'path':_0x5929a7+'.async.retryCount','message':_0x5a1312(0x144)+MAX_ASYNC_RETRY_COUNT+'.'}),_0x5981f8[_0x5a1312(0x1e0)][_0x5a1312(0x111)]!==undefined&&validateTimeAmount(_0x5981f8[_0x5a1312(0x1e0)][_0x5a1312(0x111)],_0x5929a7+_0x5a1312(0x146),_0x171fef);}function validateApprovalTimeout(_0x43f3fd,_0x188953,_0x408dee){const _0x25b49a=a282_0x13f12c;if(_0x43f3fd[_0x25b49a(0x1b9)]===undefined)return;if(!isRecord(_0x43f3fd[_0x25b49a(0x1b9)])){_0x408dee[_0x25b49a(0x1ba)]({'path':_0x188953+'.timeout','message':_0x25b49a(0xd1)});return;}if(_0x43f3fd['timeout']['enabled']!==undefined&&typeof _0x43f3fd[_0x25b49a(0x1b9)][_0x25b49a(0x1b5)]!==_0x25b49a(0xf3)){_0x408dee[_0x25b49a(0x1ba)]({'path':_0x188953+_0x25b49a(0x1ef),'message':_0x25b49a(0x1a5)});return;}if(_0x43f3fd[_0x25b49a(0x1b9)][_0x25b49a(0x1b5)]!==!![])return;if(_0x43f3fd[_0x25b49a(0x1b9)]['interrupting']!==undefined&&typeof _0x43f3fd[_0x25b49a(0x1b9)][_0x25b49a(0x178)]!=='boolean'){_0x408dee[_0x25b49a(0x1ba)]({'path':_0x188953+'.timeout.interrupting','message':_0x25b49a(0x1f3)});return;}_0x43f3fd['type']!==_0x25b49a(0x196)&&_0x408dee[_0x25b49a(0x1ba)]({'path':_0x188953+_0x25b49a(0x157),'message':_0x25b49a(0x206)});validateTimeAmount(_0x43f3fd['timeout']['duration'],_0x188953+_0x25b49a(0x1b4),_0x408dee);const _0x4ec34c=_0x43f3fd[_0x25b49a(0x1b9)][_0x25b49a(0xe9)];if(!APPROVAL_TIMEOUT_ACTIONS[_0x25b49a(0x212)](_0x4ec34c)){_0x408dee[_0x25b49a(0x1ba)]({'path':_0x188953+'.timeout.action','message':_0x25b49a(0x195)});return;}(_0x43f3fd[_0x25b49a(0x1d1)]??_0x25b49a(0x196))==='HANDLE'&&_0x4ec34c!==_0x25b49a(0x13e)&&_0x408dee[_0x25b49a(0x1ba)]({'path':_0x188953+_0x25b49a(0x227),'message':'HANDLE\x20task\x20timeout\x20only\x20supports\x20EXECUTE_BFF.'});const _0x1a8515=_0x43f3fd[_0x25b49a(0x1b9)][_0x25b49a(0x178)]??_0x4ec34c!=='EXECUTE_BFF';if(_0x4ec34c==='EXECUTE_BFF')_0x1a8515&&_0x408dee[_0x25b49a(0x1ba)]({'path':_0x188953+_0x25b49a(0x171),'message':_0x25b49a(0x14a)}),(typeof _0x43f3fd[_0x25b49a(0x1b9)]['scriptName']!=='string'||_0x43f3fd['timeout'][_0x25b49a(0xe5)][_0x25b49a(0x216)]()==='')&&_0x408dee['push']({'path':_0x188953+_0x25b49a(0x106),'message':'EXECUTE_BFF\x20timeout\x20requires\x20scriptName.'}),validateOptionalResultVariable(_0x43f3fd['timeout'][_0x25b49a(0x223)],_0x188953+_0x25b49a(0x1f6),_0x408dee);else!_0x1a8515&&_0x408dee[_0x25b49a(0x1ba)]({'path':_0x188953+_0x25b49a(0x171),'message':_0x4ec34c+_0x25b49a(0x202)});}function validateTimeAmount(_0x1cf87d,_0x3ab03a,_0x529fae){const _0x1809b5=a282_0x13f12c;if(!isRecord(_0x1cf87d)){_0x529fae[_0x1809b5(0x1ba)]({'path':_0x3ab03a,'message':_0x1809b5(0x129)});return;}(!Number[_0x1809b5(0x16a)](_0x1cf87d['value'])||Number(_0x1cf87d[_0x1809b5(0x1a9)])<=0x0)&&_0x529fae[_0x1809b5(0x1ba)]({'path':_0x3ab03a+'.value','message':_0x1809b5(0x220)}),!FLOW_TIME_UNITS[_0x1809b5(0x212)](_0x1cf87d[_0x1809b5(0x1ed)])&&_0x529fae[_0x1809b5(0x1ba)]({'path':_0x3ab03a+_0x1809b5(0x13f),'message':'duration\x20unit\x20must\x20be\x20SECONDS,\x20MINUTES,\x20HOURS,\x20or\x20DAYS.'});}function validateOptionalResultVariable(_0xb368af,_0x10c6a7,_0x26145d){const _0x472f47=a282_0x13f12c;if(_0xb368af===undefined||_0xb368af===null||_0xb368af==='')return;if(typeof _0xb368af!=='string'||!VARIABLE_PATTERN['test'](_0xb368af))_0x26145d[_0x472f47(0x1ba)]({'path':_0x10c6a7,'message':_0x472f47(0x214)});else(RESERVED_RESULT_VARIABLES['has'](_0xb368af)||_0xb368af[_0x472f47(0x1f9)]('approval_sys_'))&&_0x26145d['push']({'path':_0x10c6a7,'message':_0x472f47(0x156)+_0xb368af+'.'});}function validateCcConfig(_0x5a87f6,_0x2ffa37,_0x3237b7){const _0x3b6d68=a282_0x13f12c;if(_0x5a87f6['cc']===undefined)return;if(!isRecord(_0x5a87f6['cc'])){_0x3237b7[_0x3b6d68(0x1ba)]({'path':_0x2ffa37+'.cc','message':'cc\x20must\x20be\x20an\x20object.'});return;}_0x5a87f6[_0x3b6d68(0x199)]!==_0x3b6d68(0x207)&&_0x5a87f6[_0x3b6d68(0x199)]!=='APPROVAL'&&_0x3237b7[_0x3b6d68(0x1ba)]({'path':_0x2ffa37+_0x3b6d68(0x1c8),'message':_0x3b6d68(0x133)});Object[_0x3b6d68(0x110)][_0x3b6d68(0x21e)]['call'](_0x5a87f6['cc'],_0x3b6d68(0x1a0))&&_0x3237b7[_0x3b6d68(0x1ba)]({'path':_0x2ffa37+'.cc.readSources','message':UNSUPPORTED_FORM_MESSAGE});const _0x32166b=_0x5a87f6['cc']['recipientUserIds'];if(!Array[_0x3b6d68(0x126)](_0x32166b)||_0x32166b[_0x3b6d68(0x1dc)]===0x0)_0x3237b7[_0x3b6d68(0x1ba)]({'path':_0x2ffa37+_0x3b6d68(0x20c),'message':_0x3b6d68(0xde)});else{_0x32166b[_0x3b6d68(0x1dc)]>MAX_CC_RECIPIENTS&&_0x3237b7['push']({'path':_0x2ffa37+_0x3b6d68(0x20c),'message':_0x3b6d68(0x1eb)+MAX_CC_RECIPIENTS+_0x3b6d68(0x17d)});const _0x3f9b53=new Set();_0x32166b[_0x3b6d68(0x1f2)]((_0x38d38e,_0x50a9cb)=>{const _0x42ae6b=_0x3b6d68;if(typeof _0x38d38e!==_0x42ae6b(0xd2)||_0x38d38e['trim']()==='')_0x3237b7[_0x42ae6b(0x1ba)]({'path':_0x2ffa37+_0x42ae6b(0x20f)+_0x50a9cb+']','message':'cc\x20recipient\x20userId\x20must\x20be\x20a\x20non-empty\x20string.'});else _0x3f9b53[_0x42ae6b(0x212)](_0x38d38e[_0x42ae6b(0x216)]())?_0x3237b7[_0x42ae6b(0x1ba)]({'path':_0x2ffa37+_0x42ae6b(0x20f)+_0x50a9cb+']','message':'Duplicate\x20cc\x20recipient\x20userId:\x20'+_0x38d38e[_0x42ae6b(0x216)]()+'.'}):_0x3f9b53['add'](_0x38d38e['trim']());});}validateStringArray(_0x5a87f6['cc'][_0x3b6d68(0x147)],_0x2ffa37+_0x3b6d68(0x18e),_0x3237b7);}function validateStringArray(_0x424026,_0x4a472e,_0x39fd64){const _0x17aaef=a282_0x13f12c;if(_0x424026===undefined)return;if(!Array[_0x17aaef(0x126)](_0x424026)){_0x39fd64[_0x17aaef(0x1ba)]({'path':_0x4a472e,'message':'value\x20must\x20be\x20an\x20array.'});return;}const _0xe1c7f=new Set();_0x424026[_0x17aaef(0x1f2)]((_0x4c9e4e,_0x3fbbba)=>{const _0x2da070=_0x17aaef;if(typeof _0x4c9e4e!==_0x2da070(0xd2)||_0x4c9e4e[_0x2da070(0x216)]()==='')_0x39fd64[_0x2da070(0x1ba)]({'path':_0x4a472e+'['+_0x3fbbba+']','message':_0x2da070(0xf8)});else _0xe1c7f[_0x2da070(0x212)](_0x4c9e4e[_0x2da070(0x216)]())?_0x39fd64[_0x2da070(0x1ba)]({'path':_0x4a472e+'['+_0x3fbbba+']','message':'Duplicate\x20value:\x20'+_0x4c9e4e[_0x2da070(0x216)]()+'.'}):_0xe1c7f['add'](_0x4c9e4e[_0x2da070(0x216)]());});}function validateNotificationConfig(_0x50b9bc,_0x236827,_0x35357f){const _0x519cbf=a282_0x13f12c;if(!isRecord(_0x50b9bc)){_0x35357f[_0x519cbf(0x1ba)]({'path':_0x236827,'message':_0x519cbf(0xf5)});return;}if(_0x50b9bc[_0x519cbf(0xec)]!==undefined&&_0x50b9bc['version']!==null){if(typeof _0x50b9bc['version']!==_0x519cbf(0xd2))_0x35357f[_0x519cbf(0x1ba)]({'path':_0x236827+_0x519cbf(0xdc),'message':_0x519cbf(0x19d)});else _0x50b9bc[_0x519cbf(0xec)][_0x519cbf(0x216)]()&&_0x50b9bc[_0x519cbf(0xec)]['trim']()!=='v1'&&_0x35357f[_0x519cbf(0x1ba)]({'path':_0x236827+_0x519cbf(0xdc),'message':_0x519cbf(0x1f8)+_0x50b9bc['version']+'.'});}const _0x2f2937=requireNotificationString(_0x50b9bc[_0x519cbf(0xee)],_0x236827+'.configCode',_0x519cbf(0xf0),_0x35357f);_0x2f2937?.[_0x519cbf(0x1da)]('${')&&_0x35357f[_0x519cbf(0x1ba)]({'path':_0x236827+_0x519cbf(0x201),'message':_0x519cbf(0x225)});if(_0x50b9bc[_0x519cbf(0x14e)]!==undefined&&_0x50b9bc[_0x519cbf(0x14e)]!==null){if(typeof _0x50b9bc[_0x519cbf(0x14e)]!==_0x519cbf(0xd2))_0x35357f['push']({'path':_0x236827+_0x519cbf(0x194),'message':_0x519cbf(0x17c)});else!NOTIFICATION_FAILURE_POLICIES[_0x519cbf(0x212)](_0x50b9bc['failurePolicy'][_0x519cbf(0x216)]()['toUpperCase']())&&_0x35357f[_0x519cbf(0x1ba)]({'path':_0x236827+_0x519cbf(0x194),'message':'failurePolicy\x20must\x20be\x20CONTINUE\x20or\x20FAIL.'});}!isRecord(_0x50b9bc[_0x519cbf(0x15f)])?_0x35357f[_0x519cbf(0x1ba)]({'path':_0x236827+_0x519cbf(0x18a),'message':_0x519cbf(0x1ca)}):validateNotificationTemplate(_0x50b9bc[_0x519cbf(0x15f)],_0x236827+_0x519cbf(0x18a),_0x35357f),validateNotificationRecipients(_0x50b9bc[_0x519cbf(0x193)],_0x236827+_0x519cbf(0x117),_0x35357f);}function a282_0x55a9(){const _0xf81405=['INDEPENDENT_FLOW','conditionType','async\x20execution\x20is\x20only\x20supported\x20by\x20SCRIPT\x20node.','.cc.recipientUserIds','isSafeInteger','357401TBZRCL','.cc.recipientUserIds[','array','.detailMarkdown','has','Notification\x20recipient.role\x20must\x20be\x20TO,\x20CC,\x20or\x20BCC.','resultVariable\x20must\x20match\x20[A-Za-z_][A-Za-z0-9_]*.','.transferCandidates.userIds','trim','Duplicate\x20resultVariable:\x20','.transferCandidates','SCRIPT\x20node\x20requires\x20scriptName.','edges\x20must\x20be\x20an\x20array.','INDEPENDENT_FLOW\x20cannot\x20bind\x20datasetCode.','CONDITION\x20non-default\x20edge\x20requires\x20a\x20non-empty\x20expression.','AUTO_REJECT','hasOwnProperty','warnings','duration\x20value\x20must\x20be\x20a\x20positive\x20integer.','approval_sys_initiatorUsername','Explicit\x20notification\x20recipients\x20require\x20at\x20least\x20one\x20TO.','resultVariable','assignee.strategy\x20must\x20be\x20FIXED\x20or\x20ROLE.','Notification\x20configCode\x20must\x20be\x20a\x20fixed\x20value.','filter','.timeout.action','flowJson.nodes','approvalMode','sequential\x20must\x20be\x20a\x20boolean.','flowDesc','FIXED\x20assignee\x20requires\x20userIds.','Notification\x20action.url\x20must\x20use\x20http/https\x20or\x20a\x20complete\x20supported\x20placeholder.','PLATFORM_FORM','flowJson.schemaVersion','Notification\x20recipient.role\x20must\x20be\x20a\x20string.','target','Notification\x20template\x20supports\x20at\x20most\x20','\x20is\x20not\x20part\x20of\x20the\x20portable\x20FlowConfig\x20and\x20was\x20removed.','.url','Notification\x20text\x20contains\x20a\x20malformed\x20placeholder.','.waypoints[','flowDesc\x20must\x20be\x20a\x20string.','SCRIPT','edge\x20id\x20must\x20match\x20[A-Za-z_][A-Za-z0-9_]*.','approval_sys_initiatorUserId','Every\x20node\x20requires\x20a\x20non-empty\x20name.','flowJson.nodes.','flowJson.startPath','.waypoints','.assignee.userIds','timeout\x20must\x20be\x20an\x20object.','string','CONDITION\x20node\x20requires\x20exactly\x20one\x20default\x20outgoing\x20edge.','retryCount','overwrite','transferCandidates','60Oslfxa','path','flowJson.edges','SINGLE\x20approval\x20supports\x20only\x20one\x20fixed\x20user.','12MBDSHk','.version','flowJson.startPageId','cc.recipientUserIds\x20must\x20be\x20a\x20non-empty\x20array.','startPath\x20must\x20be\x20a\x20non-empty\x20string.','map','detailMarkdown','label','title','approval_sys_appCode','scriptName','matchAll','.taskMode','Node\x20has\x20no\x20outgoing\x20edge.','action','recipientUserIds','.approvalMode','version','replace','configCode','pageMode','Notification\x20configCode\x20is\x20required.','facts','11087NPQIXf','boolean','7AclZTC','NOTIFICATION\x20node\x20requires\x20config.','flowKey','formPermissions','value\x20must\x20be\x20a\x20non-empty\x20string.','HANDLE','entries','https://lovrabet.com/schema/rabetbase-flow-config.json','Notification\x20recipients\x20must\x20be\x20an\x20array.','flowJson','waypoints','2144025eVOqkQ','Flow\x20must\x20contain\x20at\x20least\x20one\x20END\x20node.','Node\x20is\x20not\x20reachable\x20from\x20START.','node\x20must\x20be\x20an\x20object.','END\x20node\x20must\x20not\x20have\x20outgoing\x20edges.','flowJson\x20must\x20be\x20an\x20object.','formData','.timeout.scriptName','Unsupported\x20notification\x20placeholder:\x20','delete','position','HOURS','.expression','].taskMode','size','\x20must\x20be\x20a\x20finite\x20number\x20greater\x20than\x20or\x20equal\x20to\x200.','approval_sys_pageId','prototype','retryInterval','integer','FORM_FLOW\x20is\x20an\x20approval\x20flow\x20and\x20cannot\x20contain\x20HANDLE\x20tasks;\x20use\x20INDEPENDENT_FLOW\x20for\x20workflows.','Notification\x20template.detailMarkdown\x20must\x20be\x20a\x20string.','summary','.assignee','.recipients','2013115jfgfUW','assignee','toUpperCase','EXPRESSION\x20edge\x20requires\x20expression.','legacy_field_removed','startPageId\x20is\x20no\x20longer\x20supported;\x20use\x20startPath\x20instead.',',\x20but\x20node\x20','appCode','Notification\x20action.url\x20is\x20required.','waypoint.','APPROVAL\x20node\x20requires\x20exactly\x20one\x20REJECTED\x20outgoing\x20edge.','startPath\x20applies\x20only\x20to\x20INDEPENDENT_FLOW\x20with\x20CUSTOM_PAGE.','SINGLE','Unsupported\x20pageMode:\x20','isArray','PLATFORM_FORM\x20is\x20not\x20supported\x20by\x20this\x20rabetbase\x20version;\x20use\x20INDEPENDENT_FLOW\x20with\x20CUSTOM_PAGE.','HANDLE\x20task\x20requires\x20exactly\x20one\x20outgoing\x20edge.','duration\x20requires\x20value\x20and\x20unit.','pageId\x20must\x20be\x20a\x20non-negative\x20integer.','CONDITION\x20default\x20edge\x20must\x20use\x20conditionType\x20ALWAYS.','findIndex','Notification\x20recipient.type\x20is\x20required.','Notification\x20template.actions\x20must\x20be\x20an\x20array.','startPath','.target','approval_sys_','waypoints\x20must\x20be\x20an\x20array.','Default\x20cc\x20is\x20only\x20supported\x20by\x20APPROVAL\x20or\x20END\x20node.','mode','Edge\x20target\x20node\x20not\x20found:\x20','defaultFlow\x20must\x20be\x20a\x20boolean.','APPROVAL\x20node\x20requires\x20exactly\x20one\x20APPROVED\x20outgoing\x20edge.','nodes','indexOf','pageId','call','get','Unsupported\x20node\x20type:\x20','EXECUTE_BFF','.unit','Unsupported\x20schemaVersion:\x20','Accepted\x20as\x20legacy\x20input\x20and\x20removed\x20during\x20normalization;\x20other\x20versions\x20are\x20unsupported.','^[1-9][0-9]*$','FIXED','SCRIPT\x20async\x20retryCount\x20must\x20be\x20between\x201\x20and\x20','ROLE\x20assignee\x20requires\x20a\x20positive\x20integer\x20roleId.','.async.retryInterval','visible','flowType','.sequential','EXECUTE_BFF\x20timeout\x20must\x20not\x20interrupt\x20the\x20approval\x20task.','config','actions','No\x20END\x20node\x20is\x20reachable\x20from\x20START.','failurePolicy','FlowConfig\x20must\x20be\x20a\x20JSON\x20object.','BCC','node\x20path\x20applies\x20only\x20to\x20INDEPENDENT_FLOW\x20with\x20CUSTOM_PAGE.','variables','\x20facts.','test','slice','Reserved\x20resultVariable:\x20','.timeout','START','\x20is\x20required.','1265324RGPtzN','edge\x20source\x20is\x20required.','userIds','.name','name','template','approval_sys_datasetCode','\x20was\x20empty\x20or\x20used\x20the\x20default\x20','FIXED\x20transferCandidates\x20requires\x20non-empty\x20userIds.','result','datasetCode','targetNodeId','3JtbYzr','.assignee.strategy','Notification\x20fact.','metadata','isInteger','.scriptName','Notification\x20action.text\x20is\x20required.','ALL','isFinite','async\x20must\x20be\x20an\x20object.','sourceNodeId','.timeout.interrupting','keys','CONTINUE','empty_metadata_removed','.path','.position','.id','interrupting','.defaultFlow','every','transferCandidates\x20currently\x20supports\x20FIXED\x20only.','failurePolicy\x20must\x20be\x20a\x20string.','\x20users.','event','^[A-Za-z_][A-Za-z0-9_]*$','APPROVAL\x20node\x20requires\x20assignee.','text','EMAIL','utf8','Every\x20node\x20requires\x20position.x\x20and\x20position.y.','pageMode\x20applies\x20only\x20to\x20INDEPENDENT_FLOW.','edge\x20must\x20be\x20an\x20object.','Duplicate\x20node\x20id:\x20','strategy','.source','.template','\x20actions.','NOTIFICATION','APPROVAL\x20node\x20outgoing\x20edges\x20must\x20use\x20APPROVED\x20or\x20REJECTED.','.cc.visible','#/$defs/timeAmount','pid','edge\x20target\x20is\x20required.','Custom\x20form\x20configuration\x20is\x20not\x20supported\x20by\x20this\x20rabetbase\x20version;\x20use\x20a\x20business\x20custom\x20page\x20instead.','recipients','.failurePolicy','timeout.action\x20must\x20be\x20AUTO_APPROVE,\x20AUTO_REJECT,\x20or\x20EXECUTE_BFF.','APPROVAL','FORM_FLOW','ALWAYS','type','source','__rabetbase_local_validation__','Expression\x20references\x20SCRIPT\x20resultVariable\x20','Notification\x20version\x20must\x20be\x20a\x20string.','Duplicate\x20edge\x20route:\x20','flowName','readSources','6IQvQSM','891544entzgk','node\x20pageId\x20is\x20no\x20longer\x20supported;\x20use\x20node\x20path\x20instead.','bindDatasetCode','timeout.enabled\x20must\x20be\x20a\x20boolean.','Edge\x20source\x20node\x20not\x20found:\x20','formSchema','edges','value','CONDITION','some','expression','approval_sys_dataId','Unsupported\x20condition\x20type:\x20','set','#/$defs/userId','transferCandidates\x20must\x20be\x20an\x20object.','EXPRESSION','NaN','.timeout.duration','enabled','Notification\x20recipient.value\x20is\x20required.','.assignee.userIds[','APPROVED','timeout','push','flowJson.pageMode','.tmp','roleId','.resultVariable','parse','async.enabled\x20must\x20be\x20a\x20boolean.','flowJson.nodes[','approval_sys_operationType','flowJson.','Rabetbase\x20FlowConfig','Notification\x20recipient.type\x20must\x20be\x20USER,\x20ROLE,\x20or\x20EMAIL.','Notification\x20template.facts\x20must\x20be\x20an\x20array.','.async','.cc','approved','NOTIFICATION\x20node\x20requires\x20template.','defaultFlow','.config','edge\x20name\x20must\x20be\x20a\x20string.','schemaVersion','ANY','role','taskMode','formPermission','url','templateName','Notification\x20fact\x20must\x20be\x20an\x20object.','.value','.conditionType','flowName\x20is\x20required.','DAYS','includes','REJECTED','length','catch','\x20->\x20','#/$defs/position','async','FAIL','sequential','message','AUTO_APPROVE','USER','stringify','2774110KuXIfy','Notification\x20template.','Notification\x20recipient\x20must\x20be\x20an\x20object.','object','cc.recipientUserIds\x20supports\x20at\x20most\x20','flowType\x20is\x20required.','unit','Notification\x20action\x20must\x20be\x20an\x20object.','.timeout.enabled','Flow\x20must\x20contain\x20exactly\x20one\x20START\x20node.','Unsupported\x20approval\x20mode:\x20','forEach','timeout.interrupting\x20must\x20be\x20a\x20boolean.','ROLE','CUSTOM_PAGE','.timeout.resultVariable','Approval\x20flow\x20requires\x20an\x20END\x20node\x20with\x20result\x20','Unsupported\x20notification\x20version:\x20','startsWith','number','.role','.type','fixed\x20assignee\x20userId\x20must\x20be\x20a\x20non-empty\x20string\x20or\x20positive\x20integer.','scriptResult','https://json-schema.org/draft/2020-12/schema','Node\x20cannot\x20reach\x20any\x20END.','.configCode','\x20timeout\x20must\x20interrupt\x20the\x20approval\x20task.','add','approval.simple-flow.v1','SECONDS','timeout\x20is\x20only\x20supported\x20by\x20APPROVAL\x20node.','END','\x20was\x20empty\x20and\x20was\x20removed.'];a282_0x55a9=function(){return _0xf81405;};return a282_0x55a9();}function validateNotificationTemplate(_0x164065,_0x1a50d3,_0x2b526d){const _0x55bb2b=a282_0x13f12c;for(const _0xf91927 of[_0x55bb2b(0xe3),'summary']){const _0x6116cc=requireNotificationString(_0x164065[_0xf91927],_0x1a50d3+'.'+_0xf91927,_0x55bb2b(0x1e8)+_0xf91927+_0x55bb2b(0x159),_0x2b526d);if(_0x6116cc)validateNotificationPlaceholders(_0x6116cc,_0x1a50d3+'.'+_0xf91927,_0x2b526d);}_0x164065['detailMarkdown']!==undefined&&_0x164065[_0x55bb2b(0xe1)]!==null&&(typeof _0x164065[_0x55bb2b(0xe1)]!==_0x55bb2b(0xd2)?_0x2b526d['push']({'path':_0x1a50d3+_0x55bb2b(0x211),'message':_0x55bb2b(0x114)}):validateNotificationPlaceholders(_0x164065[_0x55bb2b(0xe1)],_0x1a50d3+_0x55bb2b(0x211),_0x2b526d)),validateNotificationFacts(_0x164065[_0x55bb2b(0xf1)],_0x1a50d3+'.facts',_0x2b526d),validateNotificationActions(_0x164065[_0x55bb2b(0x14c)],_0x1a50d3+'.actions',_0x2b526d);}function validateNotificationFacts(_0x5328b0,_0x131dc4,_0x394eb3){const _0x2dfcdd=a282_0x13f12c;if(_0x5328b0===undefined||_0x5328b0===null)return;if(!Array['isArray'](_0x5328b0)){_0x394eb3[_0x2dfcdd(0x1ba)]({'path':_0x131dc4,'message':_0x2dfcdd(0x1c6)});return;}_0x5328b0[_0x2dfcdd(0x1dc)]>MAX_NOTIFICATION_FACTS&&_0x394eb3[_0x2dfcdd(0x1ba)]({'path':_0x131dc4,'message':_0x2dfcdd(0xc3)+MAX_NOTIFICATION_FACTS+_0x2dfcdd(0x153)}),_0x5328b0['forEach']((_0x2c076b,_0x3be4fc)=>{const _0x1d4305=_0x2dfcdd,_0x2723a8=_0x131dc4+'['+_0x3be4fc+']';if(!isRecord(_0x2c076b)){_0x394eb3[_0x1d4305(0x1ba)]({'path':_0x2723a8,'message':_0x1d4305(0x1d5)});return;}for(const _0x5674cb of[_0x1d4305(0xe2),_0x1d4305(0x1a9)]){const _0x5d95ab=requireNotificationString(_0x2c076b[_0x5674cb],_0x2723a8+'.'+_0x5674cb,_0x1d4305(0x168)+_0x5674cb+_0x1d4305(0x159),_0x394eb3);_0x5d95ab&&validateNotificationPlaceholders(_0x5d95ab,_0x2723a8+'.'+_0x5674cb,_0x394eb3);}});}function validateNotificationActions(_0x1d0932,_0x4cd20b,_0x25b502){const _0x2cba42=a282_0x13f12c;if(_0x1d0932===undefined||_0x1d0932===null)return;if(!Array[_0x2cba42(0x126)](_0x1d0932)){_0x25b502[_0x2cba42(0x1ba)]({'path':_0x4cd20b,'message':_0x2cba42(0x12e)});return;}_0x1d0932[_0x2cba42(0x1dc)]>MAX_NOTIFICATION_ACTIONS&&_0x25b502['push']({'path':_0x4cd20b,'message':_0x2cba42(0xc3)+MAX_NOTIFICATION_ACTIONS+_0x2cba42(0x18b)}),_0x1d0932[_0x2cba42(0x1f2)]((_0xa59ad8,_0x17af71)=>{const _0xe7ed65=_0x2cba42,_0x4fdc65=_0x4cd20b+'['+_0x17af71+']';if(!isRecord(_0xa59ad8)){_0x25b502['push']({'path':_0x4fdc65,'message':_0xe7ed65(0x1ee)});return;}const _0x33c039=requireNotificationString(_0xa59ad8[_0xe7ed65(0x181)],_0x4fdc65+'.text',_0xe7ed65(0x16c),_0x25b502);if(_0x33c039)validateNotificationPlaceholders(_0x33c039,_0x4fdc65+'.text',_0x25b502);const _0x2dab18=requireNotificationString(_0xa59ad8[_0xe7ed65(0x1d3)],_0x4fdc65+'.url',_0xe7ed65(0x120),_0x25b502);if(!_0x2dab18)return;validateNotificationPlaceholders(_0x2dab18,_0x4fdc65+_0xe7ed65(0xc5),_0x25b502),!/^https?:\/\//i['test'](_0x2dab18)&&!NOTIFICATION_ACTION_URL_PLACEHOLDER_PATTERN[_0xe7ed65(0x154)](_0x2dab18)&&_0x25b502[_0xe7ed65(0x1ba)]({'path':_0x4fdc65+_0xe7ed65(0xc5),'message':_0xe7ed65(0xbe)});});}function validateNotificationRecipients(_0x18e173,_0x5beab5,_0x175500){const _0x5828c5=a282_0x13f12c;if(_0x18e173===undefined||_0x18e173===null)return;if(!Array[_0x5828c5(0x126)](_0x18e173)){_0x175500[_0x5828c5(0x1ba)]({'path':_0x5beab5,'message':_0x5828c5(0xfc)});return;}let _0x2c729a=![];_0x18e173[_0x5828c5(0x1f2)]((_0x57f0ec,_0x4d6d09)=>{const _0x251a77=_0x5828c5,_0x238c3a=_0x5beab5+'['+_0x4d6d09+']';if(!isRecord(_0x57f0ec)){_0x175500[_0x251a77(0x1ba)]({'path':_0x238c3a,'message':_0x251a77(0x1e9)});return;}const _0x478d80=requireNotificationString(_0x57f0ec[_0x251a77(0x199)],_0x238c3a+_0x251a77(0x1fc),_0x251a77(0x12d),_0x175500);_0x478d80&&!NOTIFICATION_RECIPIENT_TYPES[_0x251a77(0x212)](_0x478d80['toUpperCase']())&&_0x175500[_0x251a77(0x1ba)]({'path':_0x238c3a+_0x251a77(0x1fc),'message':_0x251a77(0x1c5)});let _0x2e82fe='TO';_0x57f0ec[_0x251a77(0x1d0)]!==undefined&&_0x57f0ec[_0x251a77(0x1d0)]!==null&&(typeof _0x57f0ec['role']!==_0x251a77(0xd2)?(_0x175500['push']({'path':_0x238c3a+_0x251a77(0x1fb),'message':_0x251a77(0xc1)}),_0x2e82fe=''):(_0x2e82fe=_0x57f0ec['role']['trim']()[_0x251a77(0x11a)](),!NOTIFICATION_RECIPIENT_ROLES[_0x251a77(0x212)](_0x2e82fe)&&_0x175500[_0x251a77(0x1ba)]({'path':_0x238c3a+'.role','message':_0x251a77(0x213)})));if(_0x2e82fe==='TO')_0x2c729a=!![];const _0x4eaf2f=requireNotificationString(_0x57f0ec[_0x251a77(0x1a9)],_0x238c3a+_0x251a77(0x1d6),_0x251a77(0x1b6),_0x175500);_0x4eaf2f&&validateNotificationPlaceholders(_0x4eaf2f,_0x238c3a+_0x251a77(0x1d6),_0x175500);}),_0x18e173['length']>0x0&&!_0x2c729a&&_0x175500[_0x5828c5(0x1ba)]({'path':_0x5beab5,'message':_0x5828c5(0x222)});}function requireNotificationString(_0x57c4e7,_0x4320a8,_0x1831c6,_0x32bac1){const _0x7e747a=a282_0x13f12c;if(typeof _0x57c4e7!==_0x7e747a(0xd2)||_0x57c4e7[_0x7e747a(0x216)]()==='')return _0x32bac1['push']({'path':_0x4320a8,'message':_0x1831c6}),undefined;return _0x57c4e7[_0x7e747a(0x216)]();}function validateNotificationPlaceholders(_0x4142b6,_0x5c8941,_0x194a74){const _0x200556=a282_0x13f12c;for(const _0x21f3b2 of _0x4142b6[_0x200556(0xe6)](NOTIFICATION_PLACEHOLDER_PATTERN)){const _0x4b2e33=_0x21f3b2[0x1]?.[_0x200556(0x216)]()??'',_0x413223=_0x4b2e33[_0x200556(0x139)]('.'),_0x3b44db=_0x413223>=0x0?_0x4b2e33['slice'](0x0,_0x413223):_0x4b2e33,_0x42df75=_0x413223>=0x0?_0x4b2e33['slice'](_0x413223+0x1)['trim']():'';(![_0x200556(0x17e),'context',_0x200556(0x152)][_0x200556(0x1da)](_0x3b44db)||_0x42df75==='')&&_0x194a74[_0x200556(0x1ba)]({'path':_0x5c8941,'message':_0x200556(0x107)+_0x21f3b2[0x0]+'.'});}_0x4142b6[_0x200556(0xed)](NOTIFICATION_PLACEHOLDER_PATTERN,'')[_0x200556(0x1da)]('${')&&_0x194a74['push']({'path':_0x5c8941,'message':_0x200556(0xc6)});}function validateEdge(_0x217907,_0xdb29db,_0x2bdd5e){const _0x2ee75c=a282_0x13f12c;_0x217907[_0x2ee75c(0x15e)]!==undefined&&typeof _0x217907[_0x2ee75c(0x15e)]!==_0x2ee75c(0xd2)&&_0x2bdd5e[_0x2ee75c(0x1ba)]({'path':_0xdb29db+_0x2ee75c(0x15d),'message':_0x2ee75c(0x1cd)}),_0x217907['defaultFlow']!==undefined&&typeof _0x217907[_0x2ee75c(0x1cb)]!=='boolean'&&_0x2bdd5e['push']({'path':_0xdb29db+'.defaultFlow','message':_0x2ee75c(0x136)}),_0x217907['waypoints']!==undefined&&(!Array[_0x2ee75c(0x126)](_0x217907[_0x2ee75c(0xfe)])?_0x2bdd5e[_0x2ee75c(0x1ba)]({'path':_0xdb29db+_0x2ee75c(0xcf),'message':_0x2ee75c(0x132)}):_0x217907[_0x2ee75c(0xfe)][_0x2ee75c(0x1f2)]((_0x5d3033,_0x413991)=>{const _0x1f208e=_0x2ee75c;if(!isRecord(_0x5d3033)){_0x2bdd5e[_0x1f208e(0x1ba)]({'path':_0xdb29db+'.waypoints['+_0x413991+']','message':'waypoint\x20must\x20contain\x20numeric\x20x\x20and\x20y\x20coordinates.'});return;}for(const _0x4175ac of['x','y']){const _0xc2748c=_0x5d3033[_0x4175ac];(typeof _0xc2748c!=='number'||!Number['isFinite'](_0xc2748c))&&_0x2bdd5e['push']({'path':_0xdb29db+_0x1f208e(0xc7)+_0x413991+'].'+_0x4175ac,'message':_0x1f208e(0x121)+_0x4175ac+'\x20must\x20be\x20a\x20finite\x20number.'});}})),_0x217907['conditionType']!==undefined&&!CONDITION_TYPES[_0x2ee75c(0x212)](_0x217907[_0x2ee75c(0x20a)])&&_0x2bdd5e[_0x2ee75c(0x1ba)]({'path':_0xdb29db+'.conditionType','message':_0x2ee75c(0x1ae)+String(_0x217907[_0x2ee75c(0x20a)])+'.'}),_0x217907[_0x2ee75c(0x20a)]===_0x2ee75c(0x1b2)&&(typeof _0x217907[_0x2ee75c(0x1ac)]!==_0x2ee75c(0xd2)||_0x217907[_0x2ee75c(0x1ac)][_0x2ee75c(0x216)]()==='')&&_0x2bdd5e['push']({'path':_0xdb29db+_0x2ee75c(0x10b),'message':_0x2ee75c(0x11b)}),_0x217907[_0x2ee75c(0x1cb)]===!![]&&_0x217907['conditionType']!==_0x2ee75c(0x198)&&_0x2bdd5e[_0x2ee75c(0x1ba)]({'path':_0xdb29db+_0x2ee75c(0x179),'message':'A\x20default\x20flow\x20must\x20use\x20conditionType\x20ALWAYS.'}),_0x217907[_0x2ee75c(0x1cb)]===!![]&&typeof _0x217907[_0x2ee75c(0x1ac)]===_0x2ee75c(0xd2)&&_0x217907[_0x2ee75c(0x1ac)][_0x2ee75c(0x216)]()!==''&&_0x2bdd5e[_0x2ee75c(0x1ba)]({'path':_0xdb29db+_0x2ee75c(0x10b),'message':'A\x20default\x20flow\x20must\x20not\x20have\x20an\x20expression.'});}function validateGraphShape(_0x50c80d,_0x5973c4,_0x13656c,_0x3bf33f,_0x446649,_0x495a57,_0x5d05bb){const _0x22b28c=a282_0x13f12c;for(const [_0xc8d519,_0x3515d4]of _0x50c80d){const _0x4e8cd8=_0x446649['get'](_0xc8d519)??[],_0x3de100=_0x3bf33f['get'](_0xc8d519)??[];_0x3515d4[_0x22b28c(0x199)]!==_0x22b28c(0x158)&&_0x4e8cd8['length']===0x0&&_0x5d05bb[_0x22b28c(0x1ba)]({'path':_0x22b28c(0xcd)+_0xc8d519,'message':'Node\x20has\x20no\x20incoming\x20edge.'});_0x3515d4[_0x22b28c(0x199)]!=='END'&&_0x3de100[_0x22b28c(0x1dc)]===0x0&&_0x5d05bb[_0x22b28c(0x1ba)]({'path':_0x22b28c(0xcd)+_0xc8d519,'message':_0x22b28c(0xe8)});_0x3515d4[_0x22b28c(0x199)]==='START'&&_0x4e8cd8['length']>0x0&&_0x5d05bb[_0x22b28c(0x1ba)]({'path':'flowJson.nodes.'+_0xc8d519,'message':'START\x20node\x20must\x20not\x20have\x20incoming\x20edges.'});_0x3515d4[_0x22b28c(0x199)]===_0x22b28c(0x207)&&_0x3de100[_0x22b28c(0x1dc)]>0x0&&_0x5d05bb[_0x22b28c(0x1ba)]({'path':'flowJson.nodes.'+_0xc8d519,'message':_0x22b28c(0x103)});if(_0x3515d4['type']===_0x22b28c(0x1aa)){_0x3de100[_0x22b28c(0x1dc)]<0x2&&_0x5d05bb[_0x22b28c(0x1ba)]({'path':_0x22b28c(0xcd)+_0xc8d519,'message':'CONDITION\x20node\x20requires\x20at\x20least\x20two\x20outgoing\x20edges.'});const _0x44de89=_0x3de100[_0x22b28c(0x226)](_0x3d3330=>_0x3d3330[_0x22b28c(0x1cb)]===!![]);_0x44de89[_0x22b28c(0x1dc)]!==0x1&&_0x5d05bb[_0x22b28c(0x1ba)]({'path':'flowJson.nodes.'+_0xc8d519,'message':_0x22b28c(0xd3)});if(_0x44de89['length']===0x1){const _0x16b26b=_0x44de89[0x0],_0xf352d1=_0x495a57[_0x22b28c(0x13c)](_0x16b26b)??'flowJson.edges';_0x16b26b[_0x22b28c(0x20a)]!==_0x22b28c(0x198)&&_0x5d05bb[_0x22b28c(0x1ba)]({'path':_0xf352d1+_0x22b28c(0x1d7),'message':_0x22b28c(0x12b)});_0x16b26b[_0x22b28c(0x1ac)]!==undefined&&_0x5d05bb[_0x22b28c(0x1ba)]({'path':_0xf352d1+'.expression','message':'CONDITION\x20default\x20edge\x20must\x20not\x20define\x20expression.'});for(const _0xf89b48 of _0x3de100){if(_0xf89b48===_0x16b26b)continue;const _0x4989d1=_0x495a57[_0x22b28c(0x13c)](_0xf89b48)??_0x22b28c(0xd9);if(_0xf89b48[_0x22b28c(0x20a)]!==_0x22b28c(0x1b2))_0x5d05bb['push']({'path':_0x4989d1+_0x22b28c(0x1d7),'message':'CONDITION\x20non-default\x20edge\x20must\x20use\x20conditionType\x20EXPRESSION.'});else(typeof _0xf89b48[_0x22b28c(0x1ac)]!=='string'||_0xf89b48['expression']['trim']()==='')&&_0x5d05bb['push']({'path':_0x4989d1+'.expression','message':_0x22b28c(0x21c)});}}}if(_0x3515d4[_0x22b28c(0x199)]==='APPROVAL'&&(_0x3515d4['taskMode']??_0x22b28c(0x196))==='HANDLE'){if(_0x3de100[_0x22b28c(0x1dc)]!==0x1)_0x5d05bb[_0x22b28c(0x1ba)]({'path':_0x22b28c(0xcd)+_0xc8d519,'message':_0x22b28c(0x128)});else{const _0x2ff72c=_0x3de100[0x0];((_0x2ff72c[_0x22b28c(0x20a)]??'ALWAYS')!==_0x22b28c(0x198)||_0x2ff72c['defaultFlow']===!![]||typeof _0x2ff72c['expression']===_0x22b28c(0xd2)&&_0x2ff72c['expression']['trim']()!=='')&&_0x5d05bb[_0x22b28c(0x1ba)]({'path':_0x495a57[_0x22b28c(0x13c)](_0x2ff72c)??_0x22b28c(0xd9),'message':'HANDLE\x20task\x20outgoing\x20edge\x20must\x20use\x20ALWAYS\x20without\x20defaultFlow\x20or\x20expression.'});}}else{if(_0x3515d4['type']===_0x22b28c(0x196)){const _0x32f3e1=_0x3de100[_0x22b28c(0xe0)](_0x5401a1=>_0x5401a1['conditionType']??_0x22b28c(0x198)),_0x4bd193=_0x32f3e1[_0x22b28c(0x226)](_0x3f7532=>_0x3f7532!==_0x22b28c(0x1b8)&&_0x3f7532!==_0x22b28c(0x1db));_0x4bd193[_0x22b28c(0x1dc)]>0x0&&_0x5d05bb['push']({'path':_0x22b28c(0xcd)+_0xc8d519,'message':_0x22b28c(0x18d)}),_0x32f3e1[_0x22b28c(0x226)](_0x31a252=>_0x31a252===_0x22b28c(0x1b8))[_0x22b28c(0x1dc)]!==0x1&&_0x5d05bb[_0x22b28c(0x1ba)]({'path':_0x22b28c(0xcd)+_0xc8d519,'message':_0x22b28c(0x137)}),_0x32f3e1[_0x22b28c(0x226)](_0x2621b9=>_0x2621b9==='REJECTED')['length']!==0x1&&_0x5d05bb[_0x22b28c(0x1ba)]({'path':_0x22b28c(0xcd)+_0xc8d519,'message':_0x22b28c(0x122)}),_0x3de100[_0x22b28c(0x1ab)](_0x34b692=>_0x34b692[_0x22b28c(0x1cb)]===!![])&&_0x5d05bb[_0x22b28c(0x1ba)]({'path':_0x22b28c(0xcd)+_0xc8d519,'message':'APPROVAL\x20task\x20decision\x20edges\x20must\x20not\x20be\x20default\x20flows.'});}}}const _0x3212c6=new Set(),_0x3fdb14=_0x1b5dd7=>{const _0xc7916b=_0x22b28c;if(_0x3212c6[_0xc7916b(0x212)](_0x1b5dd7))return;_0x3212c6[_0xc7916b(0x203)](_0x1b5dd7);for(const _0x4c2beb of _0x3bf33f[_0xc7916b(0x13c)](_0x1b5dd7)??[]){const _0x7e2c17=resolveEdgeEndpoint(_0x4c2beb[_0xc7916b(0xc2)],_0x4c2beb[_0xc7916b(0x165)]);if(_0x7e2c17&&_0x50c80d[_0xc7916b(0x212)](_0x7e2c17))_0x3fdb14(_0x7e2c17);}};_0x3fdb14(_0x5973c4);for(const _0x1acd5d of _0x50c80d[_0x22b28c(0x172)]()){!_0x3212c6[_0x22b28c(0x212)](_0x1acd5d)&&_0x5d05bb[_0x22b28c(0x1ba)]({'path':_0x22b28c(0xcd)+_0x1acd5d,'message':_0x22b28c(0x101)});}const _0x274ef0=_0x13656c[_0x22b28c(0x1ab)](_0x3db954=>_0x3212c6[_0x22b28c(0x212)](_0x3db954));if(!_0x274ef0){_0x5d05bb[_0x22b28c(0x1ba)]({'path':_0x22b28c(0xd9),'message':_0x22b28c(0x14d)});return;}const _0x38d1ef=new Set(),_0xddb9ce=_0x412b38=>{const _0x564005=_0x22b28c;if(_0x38d1ef[_0x564005(0x212)](_0x412b38))return;_0x38d1ef[_0x564005(0x203)](_0x412b38);for(const _0x2636b2 of _0x446649[_0x564005(0x13c)](_0x412b38)??[]){const _0x496ce8=resolveEdgeEndpoint(_0x2636b2[_0x564005(0x19a)],_0x2636b2[_0x564005(0x170)]);if(_0x496ce8&&_0x50c80d[_0x564005(0x212)](_0x496ce8))_0xddb9ce(_0x496ce8);}};for(const _0x19b873 of _0x13656c){if(_0x50c80d['has'](_0x19b873))_0xddb9ce(_0x19b873);}for(const _0x304c40 of _0x3212c6){!_0x38d1ef[_0x22b28c(0x212)](_0x304c40)&&_0x5d05bb[_0x22b28c(0x1ba)]({'path':_0x22b28c(0xcd)+_0x304c40,'message':_0x22b28c(0x200)});}}function validateApprovalResults(_0x12e26c,_0x337e3e,_0x38a4ec,_0x4b6aae){const _0x96c54a=a282_0x13f12c;if(_0x337e3e===0x0)return;const _0x123c29=new Set(_0x38a4ec[_0x96c54a(0xe0)](_0x2dbd83=>_0x12e26c[_0x96c54a(0x13c)](_0x2dbd83)?.[_0x96c54a(0x163)])[_0x96c54a(0x226)](_0x3663bd=>typeof _0x3663bd===_0x96c54a(0xd2)));for(const _0x1acd6a of[_0x96c54a(0x1b8),_0x96c54a(0x1db)]){!_0x123c29[_0x96c54a(0x212)](_0x1acd6a)&&_0x4b6aae[_0x96c54a(0x1ba)]({'path':_0x96c54a(0x228),'message':_0x96c54a(0x1f7)+_0x1acd6a+'.'});}}function validateScriptResultReferences(_0x38b26c,_0x1b4dea,_0x1af10b,_0x2b4c82,_0x4990ec,_0x38de67,_0x3d7bff){const _0x4e1051=a282_0x13f12c;if(_0x38de67[_0x4e1051(0x10d)]===0x0)return;const _0x3ab23a=new Set(),_0x4cf2e3=_0x39e763=>{const _0x333995=_0x4e1051;if(!_0x3ab23a['has'](_0x39e763)&&_0x38b26c[_0x333995(0x212)](_0x39e763)){_0x3ab23a['add'](_0x39e763);for(const _0xa9da9b of _0x1af10b[_0x333995(0x13c)](_0x39e763)??[]){const _0x4b1f58=resolveEdgeEndpoint(_0xa9da9b[_0x333995(0xc2)],_0xa9da9b[_0x333995(0x165)]);if(_0x4b1f58)_0x4cf2e3(_0x4b1f58);}}};_0x4cf2e3(_0x1b4dea);const _0x3fb307=new Map();for(const _0x5307c2 of _0x3ab23a){_0x3fb307[_0x4e1051(0x1af)](_0x5307c2,_0x5307c2===_0x1b4dea?new Set([_0x1b4dea]):new Set(_0x3ab23a));}let _0x683a25=!![];while(_0x683a25){_0x683a25=![];for(const _0x40096a of _0x3ab23a){if(_0x40096a===_0x1b4dea)continue;const _0x5f1f72=(_0x2b4c82['get'](_0x40096a)??[])[_0x4e1051(0xe0)](_0x48193f=>resolveEdgeEndpoint(_0x48193f[_0x4e1051(0x19a)],_0x48193f[_0x4e1051(0x170)]))['filter'](_0x17e3c6=>Boolean(_0x17e3c6&&_0x3ab23a[_0x4e1051(0x212)](_0x17e3c6)));if(_0x5f1f72[_0x4e1051(0x1dc)]===0x0)continue;const _0x4620d5=new Set(_0x3fb307[_0x4e1051(0x13c)](_0x5f1f72[0x0])??[]);for(const _0x129e70 of _0x5f1f72['slice'](0x1)){const _0x3cf12c=_0x3fb307[_0x4e1051(0x13c)](_0x129e70)??new Set();for(const _0xe80323 of _0x4620d5){if(!_0x3cf12c[_0x4e1051(0x212)](_0xe80323))_0x4620d5[_0x4e1051(0x108)](_0xe80323);}}_0x4620d5['add'](_0x40096a);const _0x506add=_0x3fb307['get'](_0x40096a);!setsEqual(_0x506add,_0x4620d5)&&(_0x3fb307['set'](_0x40096a,_0x4620d5),_0x683a25=!![]);}}for(const [_0xb4a7c0,_0x466de8]of _0x1af10b){const _0x4fbfda=_0x3fb307[_0x4e1051(0x13c)](_0xb4a7c0);if(!_0x4fbfda)continue;for(const _0x348de0 of _0x466de8){if(_0x348de0[_0x4e1051(0x20a)]!==_0x4e1051(0x1b2)||typeof _0x348de0[_0x4e1051(0x1ac)]!=='string')continue;for(const [_0x259ca2,_0x431078]of _0x38de67){expressionReferencesVariable(_0x348de0[_0x4e1051(0x1ac)],_0x259ca2)&&!_0x4fbfda[_0x4e1051(0x212)](_0x431078)&&_0x3d7bff[_0x4e1051(0x1ba)]({'path':(_0x4990ec[_0x4e1051(0x13c)](_0x348de0)??'flowJson.edges')+_0x4e1051(0x10b),'message':_0x4e1051(0x19c)+_0x259ca2+_0x4e1051(0x11e)+_0x431078+'\x20is\x20not\x20on\x20every\x20upstream\x20path\x20to\x20'+_0xb4a7c0+'.'});}}}}function expressionReferencesVariable(_0x419b08,_0x1a0242){const _0x3f389f=a282_0x13f12c;let _0x485660=0x0;while(_0x485660<_0x419b08['length']){const _0x5335fc=_0x419b08[_0x485660];if(_0x5335fc==='\x27'||_0x5335fc==='\x22'){_0x485660=skipQuotedExpressionSegment(_0x419b08,_0x485660,_0x5335fc);continue;}if(!/[A-Za-z_]/[_0x3f389f(0x154)](_0x5335fc)){_0x485660+=0x1;continue;}const _0x536da9=_0x485660;_0x485660+=0x1;while(_0x485660<_0x419b08[_0x3f389f(0x1dc)]&&/[A-Za-z0-9_]/[_0x3f389f(0x154)](_0x419b08[_0x485660])){_0x485660+=0x1;}if(_0x419b08[_0x3f389f(0x155)](_0x536da9,_0x485660)!==_0x1a0242)continue;let _0x2ae3f9=_0x536da9-0x1;while(_0x2ae3f9>=0x0&&/\s/['test'](_0x419b08[_0x2ae3f9])){_0x2ae3f9-=0x1;}if(_0x419b08[_0x2ae3f9]!=='.')return!![];}return![];}function skipQuotedExpressionSegment(_0x57fff3,_0x5b33ac,_0x28645d){const _0x5b0baf=a282_0x13f12c;let _0x1f91d4=_0x5b33ac+0x1;while(_0x1f91d4<_0x57fff3[_0x5b0baf(0x1dc)]){if(_0x57fff3[_0x1f91d4]==='\x5c'){_0x1f91d4+=0x2;continue;}if(_0x57fff3[_0x1f91d4]===_0x28645d)return _0x1f91d4+0x1;_0x1f91d4+=0x1;}return _0x1f91d4;}function resolveEffectiveResultVariable(_0x4bbdcd,_0xb6b34b){const _0x5d56e3=a282_0x13f12c;if(_0x4bbdcd===undefined||_0x4bbdcd===null||_0xb6b34b&&_0x4bbdcd==='')return DEFAULT_SCRIPT_RESULT_VARIABLE;if(typeof _0x4bbdcd!==_0x5d56e3(0xd2)||!VARIABLE_PATTERN[_0x5d56e3(0x154)](_0x4bbdcd)||RESERVED_RESULT_VARIABLES[_0x5d56e3(0x212)](_0x4bbdcd)||_0x4bbdcd[_0x5d56e3(0x1f9)](_0x5d56e3(0x131)))return undefined;return _0x4bbdcd;}function registerResultVariableOwner(_0x1d57bc,_0x547e67,_0x329590,_0x52190b){const _0x38ba9f=a282_0x13f12c;if(_0x1d57bc[_0x38ba9f(0x212)](_0x547e67)){_0x52190b[_0x38ba9f(0x1ba)]({'path':'flowJson.nodes','message':_0x38ba9f(0x217)+_0x547e67+'.'});return;}_0x1d57bc[_0x38ba9f(0x1af)](_0x547e67,_0x329590);}function setsEqual(_0x4b7968,_0xb8b808){const _0x2d793a=a282_0x13f12c;return _0x4b7968[_0x2d793a(0x10d)]===_0xb8b808[_0x2d793a(0x10d)]&&[..._0x4b7968][_0x2d793a(0x17a)](_0x6c930d=>_0xb8b808[_0x2d793a(0x212)](_0x6c930d));}function isValidUserId(_0x57281b){const _0x37dea6=a282_0x13f12c;if(typeof _0x57281b===_0x37dea6(0xd2))return _0x57281b['trim']()[_0x37dea6(0x1dc)]>0x0;return Number[_0x37dea6(0x20d)](_0x57281b)&&Number(_0x57281b)>0x0;}function resolveEdgeEndpoint(_0x133631,_0x3700a9){const _0xa39d6e=a282_0x13f12c;if(typeof _0x133631===_0xa39d6e(0xd2)&&_0x133631['trim']())return _0x133631['trim']();if(typeof _0x3700a9===_0xa39d6e(0xd2)&&_0x3700a9[_0xa39d6e(0x216)]())return _0x3700a9[_0xa39d6e(0x216)]();return undefined;}function removeEmptyMetadata(_0x2bd840,_0x504730,_0x2c4ec0,_0x590ad2){const _0x3df664=a282_0x13f12c;if(Array[_0x3df664(0x126)](_0x2bd840)){_0x2bd840[_0x3df664(0x1f2)]((_0x387483,_0x4a9469)=>removeEmptyMetadata(_0x387483,_0x504730+'['+_0x4a9469+']',_0x2c4ec0,_0x590ad2));return;}if(!isRecord(_0x2bd840))return;for(const [_0x16bdfe,_0x25513d]of Object[_0x3df664(0xfa)](_0x2bd840)){const _0x238525=_0x504730+'.'+_0x16bdfe;if(_0x16bdfe===_0x3df664(0x169)&&isEmptyJsonValue(_0x25513d)){delete _0x2bd840[_0x16bdfe],_0x590ad2['push'](_0x238525),_0x2c4ec0[_0x3df664(0x1ba)]({'code':_0x3df664(0x174),'path':_0x238525,'message':_0x238525+_0x3df664(0x208)});continue;}removeEmptyMetadata(_0x25513d,_0x238525,_0x2c4ec0,_0x590ad2);}}function isEmptyJsonValue(_0x4b3e51){const _0x990f46=a282_0x13f12c;if(_0x4b3e51===null||_0x4b3e51===undefined)return!![];if(typeof _0x4b3e51===_0x990f46(0xd2))return _0x4b3e51[_0x990f46(0x216)]()==='';if(Array[_0x990f46(0x126)](_0x4b3e51))return _0x4b3e51[_0x990f46(0x1dc)]===0x0;return isRecord(_0x4b3e51)&&Object['keys'](_0x4b3e51)[_0x990f46(0x1dc)]===0x0;}function isRecord(_0x12b2bb){return typeof _0x12b2bb==='object'&&_0x12b2bb!==null&&!Array['isArray'](_0x12b2bb);}function cloneJsonValue(_0x298573){const _0xc96de3=a282_0x13f12c;return JSON[_0xc96de3(0x1bf)](JSON[_0xc96de3(0x1e6)](_0x298573));}export async function readFlowConfigFile(_0x12bdd4){const _0x24a2ae=a282_0x13f12c,_0x58dceb=await readFile(resolve(_0x12bdd4),_0x24a2ae(0x183));return JSON['parse'](_0x58dceb);}