@lovrabet/rabetbase-cli 2.5.4-beta.5 → 2.5.5-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (379) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/api-group.js +1 -1
  3. package/lib/api/fetch-model-list.js +1 -1
  4. package/lib/api/generate-api-file.js +1 -1
  5. package/lib/api/generate-sdk-config-file.js +1 -1
  6. package/lib/api/legacy-api-file.js +1 -1
  7. package/lib/api/model-registry-file.js +1 -1
  8. package/lib/api/model-registry-scaffold.js +1 -1
  9. package/lib/api/model-source.js +1 -1
  10. package/lib/auth/auth-server-ui.js +1 -1
  11. package/lib/auth/auth-server.js +1 -1
  12. package/lib/auth/constant.js +1 -1
  13. package/lib/auth/get-cookie.js +1 -1
  14. package/lib/auth/get-session-user.js +1 -1
  15. package/lib/auth/is-session-valid.js +1 -1
  16. package/lib/auth/login-success-html.js +1 -1
  17. package/lib/auth/logout.js +1 -1
  18. package/lib/cli-flags.js +1 -1
  19. package/lib/cli.js +1 -1
  20. package/lib/commands/api/generate.js +1 -1
  21. package/lib/commands/api/index.js +1 -1
  22. package/lib/commands/api/list.js +1 -1
  23. package/lib/commands/api/pull.js +1 -1
  24. package/lib/commands/api/shared.js +1 -1
  25. package/lib/commands/app/detail.js +1 -1
  26. package/lib/commands/app/index.js +1 -1
  27. package/lib/commands/app/list.js +1 -1
  28. package/lib/commands/app/members-list.js +1 -1
  29. package/lib/commands/app/remote-directory.js +1 -1
  30. package/lib/commands/app/shared.js +1 -1
  31. package/lib/commands/app-config/delete.js +1 -1
  32. package/lib/commands/app-config/get.js +1 -1
  33. package/lib/commands/app-config/index.js +1 -1
  34. package/lib/commands/app-config/list.js +1 -1
  35. package/lib/commands/app-config/set.js +1 -1
  36. package/lib/commands/app-config/shared.js +1 -1
  37. package/lib/commands/auth/index.js +1 -1
  38. package/lib/commands/bff/create.js +1 -1
  39. package/lib/commands/bff/delete.js +1 -1
  40. package/lib/commands/bff/detail.js +1 -1
  41. package/lib/commands/bff/index.js +1 -1
  42. package/lib/commands/bff/list.js +1 -1
  43. package/lib/commands/bff/logs.js +1 -1
  44. package/lib/commands/bff/pull.js +1 -1
  45. package/lib/commands/bff/push.js +1 -1
  46. package/lib/commands/bff/status.js +1 -1
  47. package/lib/commands/cli-skill/index.js +1 -1
  48. package/lib/commands/cli-update.js +1 -1
  49. package/lib/commands/codegen/index.js +1 -1
  50. package/lib/commands/codegen/sdk.js +1 -1
  51. package/lib/commands/codegen/sql.js +1 -1
  52. package/lib/commands/common/app-registry.js +1 -1
  53. package/lib/commands/common/app-selector.js +1 -1
  54. package/lib/commands/common/async-task.js +1 -1
  55. package/lib/commands/common/dry-run.js +1 -1
  56. package/lib/commands/common/flags.js +1 -1
  57. package/lib/commands/common/local-file.js +1 -1
  58. package/lib/commands/common/validate.js +1 -1
  59. package/lib/commands/config/delete.js +1 -1
  60. package/lib/commands/config/get.js +1 -1
  61. package/lib/commands/config/index.js +1 -1
  62. package/lib/commands/config/init.js +1 -1
  63. package/lib/commands/config/list.js +1 -1
  64. package/lib/commands/config/set.js +1 -1
  65. package/lib/commands/config/shared.js +1 -1
  66. package/lib/commands/dataset/batch-design.js +1 -1
  67. package/lib/commands/dataset/business-group-update.js +1 -1
  68. package/lib/commands/dataset/business-groups.js +1 -1
  69. package/lib/commands/dataset/capability.js +1 -1
  70. package/lib/commands/dataset/cross-relation-create.js +1 -1
  71. package/lib/commands/dataset/cross-relation-delete.js +1 -1
  72. package/lib/commands/dataset/cross-relation-list.js +1 -1
  73. package/lib/commands/dataset/cross-relation-shared.js +1 -1
  74. package/lib/commands/dataset/cross-relation-update.js +1 -1
  75. package/lib/commands/dataset/delete.js +1 -1
  76. package/lib/commands/dataset/detail.js +1 -1
  77. package/lib/commands/dataset/extend-update.js +1 -1
  78. package/lib/commands/dataset/field-restore.js +1 -1
  79. package/lib/commands/dataset/field-update.js +1 -1
  80. package/lib/commands/dataset/generate.js +1 -1
  81. package/lib/commands/dataset/index.js +1 -1
  82. package/lib/commands/dataset/list.js +1 -1
  83. package/lib/commands/dataset/operations.js +1 -1
  84. package/lib/commands/dataset/relation-audit.js +1 -1
  85. package/lib/commands/dataset/relation-create.js +1 -1
  86. package/lib/commands/dataset/relation-delete.js +1 -1
  87. package/lib/commands/dataset/relation-shared.js +1 -1
  88. package/lib/commands/dataset/relation-update.js +1 -1
  89. package/lib/commands/dataset/relations.js +1 -1
  90. package/lib/commands/dataset/rename.js +1 -1
  91. package/lib/commands/dataset/restore.js +1 -1
  92. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  93. package/lib/commands/db/analysis-batching.js +1 -1
  94. package/lib/commands/db/analyze-batch-plan.js +1 -1
  95. package/lib/commands/db/analyze-cancel.js +1 -1
  96. package/lib/commands/db/analyze-start.js +1 -1
  97. package/lib/commands/db/analyze-status.js +1 -1
  98. package/lib/commands/db/create.js +1 -1
  99. package/lib/commands/db/delete.js +1 -1
  100. package/lib/commands/db/detail.js +1 -1
  101. package/lib/commands/db/diff-refresh-start.js +1 -1
  102. package/lib/commands/db/diff-refresh-status.js +1 -1
  103. package/lib/commands/db/diff.js +1 -1
  104. package/lib/commands/db/index.js +1 -1
  105. package/lib/commands/db/list.js +1 -1
  106. package/lib/commands/db/shared.js +1 -1
  107. package/lib/commands/db/table-diff-shared.js +1 -1
  108. package/lib/commands/db/tables.js +1 -1
  109. package/lib/commands/db/test.js +1 -1
  110. package/lib/commands/db/update.js +1 -1
  111. package/lib/commands/deployment/index.js +1 -1
  112. package/lib/commands/deployment/sync-all.js +1 -1
  113. package/lib/commands/deployment/sync-jobs.js +1 -1
  114. package/lib/commands/deployment/sync-status.js +1 -1
  115. package/lib/commands/doctor.js +1 -1
  116. package/lib/commands/file/index.js +1 -1
  117. package/lib/commands/flow/create.js +1 -1
  118. package/lib/commands/flow/detail.js +1 -1
  119. package/lib/commands/flow/index.js +1 -1
  120. package/lib/commands/flow/list.js +1 -1
  121. package/lib/commands/flow/publish.js +1 -1
  122. package/lib/commands/flow/runtime-resources-shared.js +1 -1
  123. package/lib/commands/flow/runtime-role-list.js +1 -1
  124. package/lib/commands/flow/runtime-role-user-list.js +1 -1
  125. package/lib/commands/flow/runtime-user-search.js +1 -1
  126. package/lib/commands/flow/shared.js +1 -1
  127. package/lib/commands/flow/update.js +1 -1
  128. package/lib/commands/flow/validate.js +1 -1
  129. package/lib/commands/instant-api-policy/current.js +1 -1
  130. package/lib/commands/instant-api-policy/index.js +1 -1
  131. package/lib/commands/instant-api-policy/init.js +1 -1
  132. package/lib/commands/instant-api-policy/publish.js +1 -1
  133. package/lib/commands/instant-api-policy/pull.js +1 -1
  134. package/lib/commands/instant-api-policy/revision.js +1 -1
  135. package/lib/commands/instant-api-policy/revisions.js +1 -1
  136. package/lib/commands/instant-api-policy/rollback.js +1 -1
  137. package/lib/commands/instant-api-policy/shared.js +1 -1
  138. package/lib/commands/instant-api-policy/validate.js +1 -1
  139. package/lib/commands/issue/index.js +1 -1
  140. package/lib/commands/issue/nudge.js +1 -1
  141. package/lib/commands/issue/report.js +1 -1
  142. package/lib/commands/issue/shared.js +1 -1
  143. package/lib/commands/kb/create.js +1 -1
  144. package/lib/commands/kb/delete.js +1 -1
  145. package/lib/commands/kb/detail.js +1 -1
  146. package/lib/commands/kb/index.js +1 -1
  147. package/lib/commands/kb/list.js +1 -1
  148. package/lib/commands/kb/search.js +1 -1
  149. package/lib/commands/kb/shared.js +1 -1
  150. package/lib/commands/kb/update.js +1 -1
  151. package/lib/commands/logs/index.js +1 -1
  152. package/lib/commands/menu/asset-update.js +1 -1
  153. package/lib/commands/menu/delete.js +1 -1
  154. package/lib/commands/menu/external-link-create.js +1 -1
  155. package/lib/commands/menu/external-link-update.js +1 -1
  156. package/lib/commands/menu/group-create.js +1 -1
  157. package/lib/commands/menu/group-update.js +1 -1
  158. package/lib/commands/menu/index.js +1 -1
  159. package/lib/commands/menu/list.js +1 -1
  160. package/lib/commands/menu/move.js +1 -1
  161. package/lib/commands/menu/regroup-start.js +1 -1
  162. package/lib/commands/menu/rename.js +1 -1
  163. package/lib/commands/menu/shared/compare-table.js +1 -1
  164. package/lib/commands/menu/shared/delete-plan.js +1 -1
  165. package/lib/commands/menu/shared/facts.js +1 -1
  166. package/lib/commands/menu/shared/index.js +1 -1
  167. package/lib/commands/menu/shared/inquirer.js +1 -1
  168. package/lib/commands/menu/shared/local-pages.js +1 -1
  169. package/lib/commands/menu/shared/logic.js +1 -1
  170. package/lib/commands/menu/shared/mutations.js +1 -1
  171. package/lib/commands/menu/shared/path.js +1 -1
  172. package/lib/commands/menu/shared/service.js +1 -1
  173. package/lib/commands/menu/shared/subapp-assets.js +1 -1
  174. package/lib/commands/menu/shared/sync-core.js +1 -1
  175. package/lib/commands/menu/shared/update-core.js +1 -1
  176. package/lib/commands/menu/shared/valid-url.js +1 -1
  177. package/lib/commands/menu/subapp-assets-status.js +1 -1
  178. package/lib/commands/menu/subapp-assets-update.js +1 -1
  179. package/lib/commands/menu/sync.js +1 -1
  180. package/lib/commands/menu/visibility-update.js +1 -1
  181. package/lib/commands/notification/config-create.js +1 -1
  182. package/lib/commands/notification/config-delete.js +1 -1
  183. package/lib/commands/notification/config-list.js +1 -1
  184. package/lib/commands/notification/config-update.js +1 -1
  185. package/lib/commands/notification/index.js +1 -1
  186. package/lib/commands/notification/shared.js +1 -1
  187. package/lib/commands/ocr/index.js +1 -1
  188. package/lib/commands/page/create.js +1 -1
  189. package/lib/commands/page/custom/detail.js +1 -1
  190. package/lib/commands/page/custom/list.js +1 -1
  191. package/lib/commands/page/custom/publish.js +1 -1
  192. package/lib/commands/page/custom/shared.js +1 -1
  193. package/lib/commands/page/custom/syntax.js +1 -1
  194. package/lib/commands/page/custom/update.js +1 -1
  195. package/lib/commands/page/data-list-status.js +1 -1
  196. package/lib/commands/page/generate-start.js +1 -1
  197. package/lib/commands/page/generate-status.js +1 -1
  198. package/lib/commands/page/index.js +1 -1
  199. package/lib/commands/page/pull.js +1 -1
  200. package/lib/commands/page/push.js +1 -1
  201. package/lib/commands/page/relation-audit.js +1 -1
  202. package/lib/commands/page/restore.js +1 -1
  203. package/lib/commands/page/shared.js +1 -1
  204. package/lib/commands/page/sync.js +1 -1
  205. package/lib/commands/project/api-architecture-upgrade.js +1 -1
  206. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  207. package/lib/commands/project/create/format-elapsed.js +1 -1
  208. package/lib/commands/project/create/main.js +1 -1
  209. package/lib/commands/project/create/materialize-project-template.js +1 -1
  210. package/lib/commands/project/create/project-name.js +1 -1
  211. package/lib/commands/project/create/project-template-archive.js +1 -1
  212. package/lib/commands/project/create/project-template-path.js +1 -1
  213. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  214. package/lib/commands/project/create/use-format-code.js +1 -1
  215. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  216. package/lib/commands/project/domain-routing-sync.js +1 -1
  217. package/lib/commands/project/index.js +1 -1
  218. package/lib/commands/project/upgrade.js +1 -1
  219. package/lib/commands/registry.js +1 -1
  220. package/lib/commands/role/delete.js +1 -1
  221. package/lib/commands/role/detail.js +1 -1
  222. package/lib/commands/role/index.js +1 -1
  223. package/lib/commands/role/list.js +1 -1
  224. package/lib/commands/role/shared.js +1 -1
  225. package/lib/commands/role/update.js +1 -1
  226. package/lib/commands/role/user-add.js +1 -1
  227. package/lib/commands/role/user-remove.js +1 -1
  228. package/lib/commands/role/user-resolve.js +1 -1
  229. package/lib/commands/rule/get.js +1 -1
  230. package/lib/commands/rule/index.js +1 -1
  231. package/lib/commands/rule/list.js +1 -1
  232. package/lib/commands/rule/set.js +1 -1
  233. package/lib/commands/rule/shared.js +1 -1
  234. package/lib/commands/run/index.js +1 -1
  235. package/lib/commands/schema.js +1 -1
  236. package/lib/commands/sql/create.js +1 -1
  237. package/lib/commands/sql/delete.js +1 -1
  238. package/lib/commands/sql/detail.js +1 -1
  239. package/lib/commands/sql/exec.js +1 -1
  240. package/lib/commands/sql/index.js +1 -1
  241. package/lib/commands/sql/list.js +1 -1
  242. package/lib/commands/sql/pull.js +1 -1
  243. package/lib/commands/sql/push.js +1 -1
  244. package/lib/commands/sql/shared.js +1 -1
  245. package/lib/commands/sql/status.js +1 -1
  246. package/lib/commands/sql/validate.js +1 -1
  247. package/lib/commands/task/index.js +1 -1
  248. package/lib/commands/task/status.js +1 -1
  249. package/lib/commands/tenant/index.js +1 -1
  250. package/lib/commands/tenant/members-list.js +1 -1
  251. package/lib/commands/tenant/shared.js +1 -1
  252. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  253. package/lib/commands/user-account/feishu-bind.js +1 -1
  254. package/lib/commands/user-account/index.js +1 -1
  255. package/lib/commands/workspace/add.js +1 -1
  256. package/lib/commands/workspace/index.js +1 -1
  257. package/lib/commands/workspace/remove.js +1 -1
  258. package/lib/config/domain-config.js +1 -1
  259. package/lib/config/project-domain-routing.js +1 -1
  260. package/lib/config/region-config.js +1 -1
  261. package/lib/config/schema.js +1 -1
  262. package/lib/constant/cdn.js +1 -1
  263. package/lib/constant/cli.js +1 -1
  264. package/lib/constant/defaults.js +1 -1
  265. package/lib/constant/domain.js +1 -1
  266. package/lib/constant/env.js +1 -1
  267. package/lib/constant/output.js +1 -1
  268. package/lib/constant/paths.js +1 -1
  269. package/lib/constant/region.js +1 -1
  270. package/lib/constant/risk.js +1 -1
  271. package/lib/constant/routing-profile.js +1 -1
  272. package/lib/context/app-resolver.js +1 -1
  273. package/lib/context/auth-resolver.js +1 -1
  274. package/lib/context/config-loader.js +1 -1
  275. package/lib/context.js +1 -1
  276. package/lib/core/alias-resolver.js +1 -1
  277. package/lib/core/api-client.js +1 -1
  278. package/lib/core/bff/config.js +1 -1
  279. package/lib/core/bff/file-system.js +1 -1
  280. package/lib/core/bff/hash.js +1 -1
  281. package/lib/core/bff/hook-directory.js +1 -1
  282. package/lib/core/bff/lock.js +1 -1
  283. package/lib/core/bff/utils.js +1 -1
  284. package/lib/core/cross-db-relation.js +1 -1
  285. package/lib/core/db-resolver.js +1 -1
  286. package/lib/core/flow-config.js +1 -1
  287. package/lib/core/instant-api-policy/config.js +1 -1
  288. package/lib/core/kb-search-client.js +1 -1
  289. package/lib/core/page/file-system.js +1 -1
  290. package/lib/core/page/hash.js +1 -1
  291. package/lib/core/page/lock.js +1 -1
  292. package/lib/core/page/lr-smart-jsx.js +1 -1
  293. package/lib/core/sql-index-auditor.js +1 -1
  294. package/lib/core/sql-sync/config.js +1 -1
  295. package/lib/core/sql-sync/file-system.js +1 -1
  296. package/lib/core/sql-sync/hash.js +1 -1
  297. package/lib/core/sql-sync/lock.js +1 -1
  298. package/lib/core/sql-sync/utils.js +1 -1
  299. package/lib/core/sql-validator.js +1 -1
  300. package/lib/errors.js +1 -1
  301. package/lib/framework/build-all-flags.js +1 -1
  302. package/lib/framework/error-output.js +1 -1
  303. package/lib/framework/explicit-yes.js +1 -1
  304. package/lib/framework/flags.js +1 -1
  305. package/lib/framework/help.js +1 -1
  306. package/lib/framework/index.js +1 -1
  307. package/lib/framework/output.js +1 -1
  308. package/lib/framework/response.js +1 -1
  309. package/lib/framework/runner-alias.js +1 -1
  310. package/lib/framework/runner.js +1 -1
  311. package/lib/framework/schema-export.js +1 -1
  312. package/lib/framework/supported-flags.js +1 -1
  313. package/lib/framework/types.js +1 -1
  314. package/lib/generated/build-info.d.ts +4 -4
  315. package/lib/generated/build-info.js +1 -1
  316. package/lib/generated/official-routing.js +1 -1
  317. package/lib/generated/routing-contract.js +1 -1
  318. package/lib/help.js +1 -1
  319. package/lib/postinstall.js +1 -1
  320. package/lib/runtime/confirmation.js +1 -1
  321. package/lib/runtime/event.js +1 -1
  322. package/lib/runtime/index.js +1 -1
  323. package/lib/runtime/queue.js +1 -1
  324. package/lib/runtime/resolve.js +1 -1
  325. package/lib/skills/builtin-skill.js +1 -1
  326. package/lib/skills/main.js +1 -1
  327. package/lib/skills/npx-skills-add.js +1 -1
  328. package/lib/skills/skill-presence.js +1 -1
  329. package/lib/telemetry/cli-command-trace.js +1 -1
  330. package/lib/telemetry/cli-help-trace.js +1 -1
  331. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  332. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  333. package/lib/telemetry/send-cli-trace-log.js +1 -1
  334. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  335. package/lib/utils/ai_config.js +1 -1
  336. package/lib/utils/apply-jq-filter.js +1 -1
  337. package/lib/utils/cdn-config.js +1 -1
  338. package/lib/utils/check-sdk-version.js +1 -1
  339. package/lib/utils/cli-version-check.js +1 -1
  340. package/lib/utils/cli-version-policy.js +1 -1
  341. package/lib/utils/config.js +1 -1
  342. package/lib/utils/entity-with-id.js +1 -1
  343. package/lib/utils/file-utils.js +1 -1
  344. package/lib/utils/guides-cdn.js +1 -1
  345. package/lib/utils/http-client.js +1 -1
  346. package/lib/utils/is-non-interactive.js +1 -1
  347. package/lib/utils/logger.js +1 -1
  348. package/lib/utils/params.js +1 -1
  349. package/lib/utils/platform.js +1 -1
  350. package/lib/utils/sleep.js +1 -1
  351. package/lib/utils/template-replacer.js +1 -1
  352. package/lib/utils/update-notice.js +1 -1
  353. package/lib/utils/version.js +1 -1
  354. package/lib/utils/with-active-cookie.js +1 -1
  355. package/lib/utils/write-cli-side-channel.js +1 -1
  356. package/package.json +2 -1
  357. package/skills/rabetbase/SKILL.md +1 -1
  358. package/skills/rabetbase-page-generation/SKILL.md +35 -0
  359. package/skills/rabetbase-page-generation/references/component-baseline.md +18 -0
  360. package/skills/rabetbase-page-generation/references/generation.md +77 -0
  361. package/skills/rabetbase-page-generation/templates/onepage/build.mjs +63 -0
  362. package/skills/rabetbase-page-generation/templates/onepage/create/README.md +20 -0
  363. package/skills/rabetbase-page-generation/templates/onepage/create/index.jsx +4 -0
  364. package/skills/rabetbase-page-generation/templates/onepage/create/preview.png +0 -0
  365. package/skills/rabetbase-page-generation/templates/onepage/detail/README.md +20 -0
  366. package/skills/rabetbase-page-generation/templates/onepage/detail/index.jsx +194 -0
  367. package/skills/rabetbase-page-generation/templates/onepage/detail/preview.png +0 -0
  368. package/skills/rabetbase-page-generation/templates/onepage/list/README.md +20 -0
  369. package/skills/rabetbase-page-generation/templates/onepage/list/index.jsx +717 -0
  370. package/skills/rabetbase-page-generation/templates/onepage/list/preview.png +0 -0
  371. package/skills/rabetbase-page-generation/templates/onepage/shared/editor.jsx +395 -0
  372. package/skills/rabetbase-page-generation/templates/onepage/shared/model.js +141 -0
  373. package/skills/rabetbase-page-generation/templates/onepage/shared/page.css +377 -0
  374. package/skills/rabetbase-page-generation/templates/onepage/shared/record-layout.jsx +90 -0
  375. package/skills/rabetbase-page-generation/templates/onepage/shared/responsive.jsx +70 -0
  376. package/skills/rabetbase-page-generation/templates/onepage/update/README.md +21 -0
  377. package/skills/rabetbase-page-generation/templates/onepage/update/index.jsx +4 -0
  378. package/skills/rabetbase-page-generation/templates/onepage/update/preview.png +0 -0
  379. package/skills/rabetbase.manifest.json +3 -3
@@ -1 +1 @@
1
- const a287_0x42ed67=a287_0x2794;(function(_0x214dc0,_0x1e6ec2){const _0x39e569=a287_0x2794,_0x42f740=_0x214dc0();while(!![]){try{const _0x14af4e=-parseInt(_0x39e569(0x198))/0x1+parseInt(_0x39e569(0x1a3))/0x2+parseInt(_0x39e569(0x14b))/0x3*(-parseInt(_0x39e569(0x10c))/0x4)+-parseInt(_0x39e569(0x1c2))/0x5+parseInt(_0x39e569(0x164))/0x6*(parseInt(_0x39e569(0x1f3))/0x7)+parseInt(_0x39e569(0x249))/0x8*(-parseInt(_0x39e569(0x182))/0x9)+parseInt(_0x39e569(0x180))/0xa*(parseInt(_0x39e569(0x1ee))/0xb);if(_0x14af4e===_0x1e6ec2)break;else _0x42f740['push'](_0x42f740['shift']());}catch(_0xf755cd){_0x42f740['push'](_0x42f740['shift']());}}}(a287_0x4293,0xb4d64));import{randomUUID}from'node:crypto';import{chmod,link,readFile,rename,stat,unlink,writeFile}from'node:fs/promises';import{resolve}from'node:path';export const FLOW_CONFIG_JSON_SCHEMA={'$schema':a287_0x42ed67(0x21c),'$id':'https://lovrabet.com/schema/rabetbase-flow-config.json','title':'Rabetbase\x20FlowConfig','type':'object','required':[a287_0x42ed67(0x1d4),'flowType',a287_0x42ed67(0x25c)],'$defs':{'userId':{'anyOf':[{'type':a287_0x42ed67(0x129),'minLength':0x1},{'type':a287_0x42ed67(0x147),'minimum':0x1}]},'position':{'type':'object','required':['x','y'],'properties':{'x':{'type':'number','minimum':0x0},'y':{'type':a287_0x42ed67(0x227),'minimum':0x0}},'additionalProperties':!![]},'timeAmount':{'type':a287_0x42ed67(0x241),'required':[a287_0x42ed67(0x169),a287_0x42ed67(0x15e)],'properties':{'value':{'type':'integer','minimum':0x1},'unit':{'enum':[a287_0x42ed67(0x138),a287_0x42ed67(0x172),a287_0x42ed67(0x115),a287_0x42ed67(0x245)]}},'additionalProperties':!![]},'flowNode':{'type':a287_0x42ed67(0x241),'required':['id',a287_0x42ed67(0x14f),a287_0x42ed67(0x1e5),a287_0x42ed67(0x11d)],'properties':{'id':{'type':a287_0x42ed67(0x129),'pattern':a287_0x42ed67(0x10a)},'type':{'enum':[a287_0x42ed67(0x243),'END','APPROVAL',a287_0x42ed67(0x1b2),a287_0x42ed67(0x12e),a287_0x42ed67(0x256)]},'name':{'type':a287_0x42ed67(0x129),'minLength':0x1},'path':{'type':'string','minLength':0x1},'position':{'$ref':'#/$defs/position'},'approvalMode':{'enum':[a287_0x42ed67(0x236),a287_0x42ed67(0x1cd),'ANY']},'taskMode':{'enum':[a287_0x42ed67(0x196),a287_0x42ed67(0x23a)]},'assignee':{'type':'object','required':[a287_0x42ed67(0x12f)],'properties':{'strategy':{'enum':[a287_0x42ed67(0x18c),a287_0x42ed67(0x1d1)]},'userIds':{'type':a287_0x42ed67(0x1ba),'minItems':0x1,'items':{'$ref':a287_0x42ed67(0x174)}},'roleId':{'anyOf':[{'type':'integer','minimum':0x1},{'type':'string','pattern':a287_0x42ed67(0x1a7)}]}},'additionalProperties':!![]},'transferCandidates':{'type':'object','required':[a287_0x42ed67(0x12f),a287_0x42ed67(0x116)],'properties':{'strategy':{'const':a287_0x42ed67(0x18c)},'userIds':{'type':a287_0x42ed67(0x1ba),'minItems':0x1,'items':{'$ref':'#/$defs/userId'}}},'additionalProperties':!![]},'sequential':{'type':a287_0x42ed67(0x1db)},'result':{'enum':[a287_0x42ed67(0x1e0),a287_0x42ed67(0x144)]},'scriptName':{'type':a287_0x42ed67(0x129),'minLength':0x1},'resultVariable':{'type':a287_0x42ed67(0x129),'pattern':'^[A-Za-z_][A-Za-z0-9_]*$'},'async':{'type':a287_0x42ed67(0x241),'properties':{'enabled':{'type':a287_0x42ed67(0x1db)},'retryCount':{'type':a287_0x42ed67(0x147),'minimum':0x1,'maximum':0xa},'retryInterval':{'$ref':'#/$defs/timeAmount'}},'additionalProperties':!![]},'timeout':{'type':'object','properties':{'enabled':{'type':a287_0x42ed67(0x1db)},'duration':{'$ref':a287_0x42ed67(0x1d6)},'action':{'enum':['AUTO_APPROVE',a287_0x42ed67(0x17c),a287_0x42ed67(0x12d)]},'interrupting':{'type':a287_0x42ed67(0x1db)},'scriptName':{'type':a287_0x42ed67(0x129),'minLength':0x1},'resultVariable':{'type':a287_0x42ed67(0x129),'pattern':a287_0x42ed67(0x10a)}},'additionalProperties':!![]},'cc':{'type':a287_0x42ed67(0x241),'required':[a287_0x42ed67(0x1c5)],'properties':{'recipientUserIds':{'type':'array','minItems':0x1,'maxItems':0x64,'uniqueItems':!![],'items':{'type':a287_0x42ed67(0x129),'minLength':0x1}},'visible':{'type':a287_0x42ed67(0x1ba),'uniqueItems':!![],'items':{'type':a287_0x42ed67(0x129),'minLength':0x1}},'readSources':![]},'additionalProperties':!![]},'config':{'type':a287_0x42ed67(0x241),'required':[a287_0x42ed67(0x255),'template'],'properties':{'version':{'enum':['v1']},'configCode':{'type':a287_0x42ed67(0x129),'minLength':0x1},'failurePolicy':{'enum':[a287_0x42ed67(0x231),a287_0x42ed67(0x244)]},'template':{'type':a287_0x42ed67(0x241),'required':[a287_0x42ed67(0x163),a287_0x42ed67(0x207)],'properties':{'title':{'type':a287_0x42ed67(0x129),'minLength':0x1},'summary':{'type':a287_0x42ed67(0x129),'minLength':0x1},'detailMarkdown':{'type':a287_0x42ed67(0x129)},'facts':{'type':a287_0x42ed67(0x1ba),'maxItems':0x8,'items':{'type':a287_0x42ed67(0x241),'required':[a287_0x42ed67(0x15b),'value'],'properties':{'label':{'type':a287_0x42ed67(0x129),'minLength':0x1},'value':{'type':a287_0x42ed67(0x129),'minLength':0x1}},'additionalProperties':!![]}},'actions':{'type':a287_0x42ed67(0x1ba),'maxItems':0x2,'items':{'type':a287_0x42ed67(0x241),'required':['text',a287_0x42ed67(0x185)],'properties':{'text':{'type':a287_0x42ed67(0x129),'minLength':0x1},'url':{'type':a287_0x42ed67(0x129),'minLength':0x1}},'additionalProperties':!![]}}},'additionalProperties':!![]},'recipients':{'type':a287_0x42ed67(0x1ba),'items':{'type':a287_0x42ed67(0x241),'required':['type',a287_0x42ed67(0x169)],'properties':{'type':{'enum':['USER',a287_0x42ed67(0x1d1),'EMAIL']},'value':{'type':a287_0x42ed67(0x129),'minLength':0x1},'role':{'enum':['TO','CC','BCC']}},'additionalProperties':!![]}}},'additionalProperties':!![]},'form':![],'formPermission':![]},'additionalProperties':!![]},'flowEdge':{'type':a287_0x42ed67(0x241),'properties':{'id':{'type':a287_0x42ed67(0x129),'pattern':a287_0x42ed67(0x10a)},'source':{'type':'string','minLength':0x1},'target':{'type':a287_0x42ed67(0x129),'minLength':0x1},'sourceNodeId':{'type':a287_0x42ed67(0x129),'minLength':0x1},'targetNodeId':{'type':a287_0x42ed67(0x129),'minLength':0x1},'conditionType':{'enum':['ALWAYS','APPROVED','REJECTED',a287_0x42ed67(0x1de)]},'expression':{'type':a287_0x42ed67(0x129)},'defaultFlow':{'type':a287_0x42ed67(0x1db)},'name':{'type':a287_0x42ed67(0x129)},'waypoints':{'type':a287_0x42ed67(0x1ba),'items':{'$ref':'#/$defs/position'}}},'allOf':[{'anyOf':[{'required':[a287_0x42ed67(0x125)]},{'required':[a287_0x42ed67(0x10f)]}]},{'anyOf':[{'required':[a287_0x42ed67(0x197)]},{'required':[a287_0x42ed67(0x259)]}]}],'additionalProperties':!![]}},'properties':{'id':![],'appCode':![],'flowName':{'type':a287_0x42ed67(0x129),'minLength':0x1},'flowDesc':{'type':'string'},'flowType':{'enum':[a287_0x42ed67(0x135),a287_0x42ed67(0x1bd)]},'datasetCode':{'type':a287_0x42ed67(0x129),'minLength':0x1},'pageId':{'type':a287_0x42ed67(0x147)},'templateName':![],'flowJson':{'type':a287_0x42ed67(0x241),'required':['nodes',a287_0x42ed67(0x14c)],'properties':{'flowKey':![],'flowCode':![],'flowName':![],'bindDatasetCode':![],'datasetCode':![],'appCode':![],'pageId':![],'templateName':![],'schemaVersion':{'type':a287_0x42ed67(0x129),'const':'approval.simple-flow.v1','description':a287_0x42ed67(0x23d)},'formSchema':![],'formDefinitions':![],'formPermissions':![],'pageMode':{'const':'CUSTOM_PAGE'},'startPageId':![],'startPath':{'type':'string','minLength':0x1},'nodes':{'type':a287_0x42ed67(0x1ba),'minItems':0x1,'items':{'$ref':a287_0x42ed67(0x156)}},'edges':{'type':a287_0x42ed67(0x1ba),'minItems':0x1,'items':{'$ref':'#/$defs/flowEdge'}}},'additionalProperties':!![]}},'additionalProperties':!![]};const REMOVED_FLOW_JSON_FIELDS=[a287_0x42ed67(0x141),a287_0x42ed67(0x260),'flowName',a287_0x42ed67(0x218),a287_0x42ed67(0x1f0),a287_0x42ed67(0xff),'pageId',a287_0x42ed67(0x1e8)],REMOVED_ROOT_FIELDS=['id',a287_0x42ed67(0xff),a287_0x42ed67(0x1e8)],DEFAULT_FLOW_SCHEMA_VERSION=a287_0x42ed67(0x132),NODE_TYPES=new Set([a287_0x42ed67(0x243),a287_0x42ed67(0x232),a287_0x42ed67(0x196),'CONDITION',a287_0x42ed67(0x12e),a287_0x42ed67(0x256)]),CONDITION_TYPES=new Set([a287_0x42ed67(0x12b),a287_0x42ed67(0x1e0),a287_0x42ed67(0x144),a287_0x42ed67(0x1de)]),APPROVAL_MODES=new Set(['SINGLE',a287_0x42ed67(0x1cd),'ANY']),APPROVAL_TASK_MODES=new Set([a287_0x42ed67(0x196),'HANDLE']),FLOW_TIME_UNITS=new Set([a287_0x42ed67(0x138),'MINUTES',a287_0x42ed67(0x115),a287_0x42ed67(0x245)]),APPROVAL_TIMEOUT_ACTIONS=new Set([a287_0x42ed67(0x120),'AUTO_REJECT',a287_0x42ed67(0x12d)]),FLOW_TYPES=new Set(['FORM_FLOW','INDEPENDENT_FLOW']),FLOW_PAGE_MODES=new Set([a287_0x42ed67(0x24b),a287_0x42ed67(0x151)]),BPMN_ID_PATTERN=/^[A-Za-z_][A-Za-z0-9_]*$/,VARIABLE_PATTERN=/^[A-Za-z_][A-Za-z0-9_]*$/,NOTIFICATION_PLACEHOLDER_PATTERN=/\$\{([^{}]+)\}/g,NOTIFICATION_ACTION_URL_PLACEHOLDER_PATTERN=/^\$\{(?:event|context|variables)\.[^{}]+\}$/,NOTIFICATION_FAILURE_POLICIES=new Set([a287_0x42ed67(0x231),'FAIL']),NOTIFICATION_RECIPIENT_TYPES=new Set([a287_0x42ed67(0x119),a287_0x42ed67(0x1d1),a287_0x42ed67(0x22a)]),NOTIFICATION_RECIPIENT_ROLES=new Set(['TO','CC',a287_0x42ed67(0x1d5)]),MAX_NOTIFICATION_FACTS=0x8,MAX_NOTIFICATION_ACTIONS=0x2,MAX_ASYNC_RETRY_COUNT=0xa,MAX_CC_RECIPIENTS=0x64,DEFAULT_SCRIPT_RESULT_VARIABLE=a287_0x42ed67(0x18e),UNSUPPORTED_FORM_MESSAGE=a287_0x42ed67(0x15c),UNSUPPORTED_PLATFORM_FORM_MESSAGE=a287_0x42ed67(0x22b),RESERVED_RESULT_VARIABLES=new Set([a287_0x42ed67(0x114),'approved',a287_0x42ed67(0x1a2),a287_0x42ed67(0x1b5),a287_0x42ed67(0x1eb),'approval_sys_initiatorUsername',a287_0x42ed67(0x155),a287_0x42ed67(0x13c),a287_0x42ed67(0x252),a287_0x42ed67(0x203)]);export function normalizeFlowConfig(_0x3dfaa4){const _0x4dcf27=a287_0x42ed67;if(!isRecord(_0x3dfaa4))throw new TypeError(_0x4dcf27(0x128));const _0x2c2302=cloneJsonValue(_0x3dfaa4),_0x37f439=_0x2c2302[_0x4dcf27(0x25c)],_0x372f56=isRecord(_0x37f439)?cloneJsonValue(_0x37f439):{},_0x4e5447=[],_0x3b6b96=[];for(const _0xa7de4b of REMOVED_ROOT_FIELDS){if(!Object[_0x4dcf27(0x192)][_0x4dcf27(0x127)][_0x4dcf27(0x189)](_0x2c2302,_0xa7de4b))continue;delete _0x2c2302[_0xa7de4b],_0x3b6b96['push'](_0xa7de4b),_0x4e5447['push']({'code':_0x4dcf27(0x170),'path':_0xa7de4b,'message':_0xa7de4b+_0x4dcf27(0x230)});}for(const _0x33e384 of REMOVED_FLOW_JSON_FIELDS){if(!Object[_0x4dcf27(0x192)]['hasOwnProperty'][_0x4dcf27(0x189)](_0x372f56,_0x33e384))continue;const _0x354c31=_0x4dcf27(0x1b6)+_0x33e384;delete _0x372f56[_0x33e384],_0x3b6b96[_0x4dcf27(0x1fb)](_0x354c31),_0x4e5447['push']({'code':'legacy_field_removed','path':_0x354c31,'message':_0x354c31+_0x4dcf27(0x230)});}if(Object['prototype'][_0x4dcf27(0x127)][_0x4dcf27(0x189)](_0x372f56,_0x4dcf27(0x1ec))){const _0x1b6f63=_0x372f56[_0x4dcf27(0x1ec)],_0x476247=typeof _0x1b6f63==='string'?_0x1b6f63['trim']():_0x1b6f63;if(isEmptyJsonValue(_0x1b6f63)||_0x476247===DEFAULT_FLOW_SCHEMA_VERSION){const _0x4df545='flowJson.schemaVersion';delete _0x372f56['schemaVersion'],_0x3b6b96[_0x4dcf27(0x1fb)](_0x4df545),_0x4e5447[_0x4dcf27(0x1fb)]({'code':'legacy_field_removed','path':_0x4df545,'message':_0x4df545+_0x4dcf27(0x211)+DEFAULT_FLOW_SCHEMA_VERSION+_0x4dcf27(0x167)});}}removeEmptyMetadata(_0x372f56,_0x4dcf27(0x25c),_0x4e5447,_0x3b6b96);_0x2c2302['flowType']===_0x4dcf27(0x1bd)&&!Object[_0x4dcf27(0x192)][_0x4dcf27(0x127)][_0x4dcf27(0x189)](_0x372f56,_0x4dcf27(0x254))&&(_0x372f56[_0x4dcf27(0x254)]=_0x4dcf27(0x24b));_0x2c2302['flowJson']=_0x372f56;if(typeof _0x2c2302['flowName']===_0x4dcf27(0x129))_0x2c2302[_0x4dcf27(0x1d4)]=_0x2c2302['flowName'][_0x4dcf27(0x1dd)]();return{'config':_0x2c2302,'warnings':_0x4e5447,'removedPaths':_0x3b6b96};}export function validateFlowConfig(_0x2a1aad){const _0x13514b=a287_0x42ed67;let _0x3197a1;try{_0x3197a1=normalizeFlowConfig(_0x2a1aad);}catch(_0x17ddb8){const _0x278e05=_0x17ddb8 instanceof Error?_0x17ddb8[_0x13514b(0x205)]:String(_0x17ddb8),_0x1d2207={'flowJson':{}};return{'valid':![],'errors':[{'path':'$','message':_0x278e05}],'warnings':[],'normalized':_0x1d2207,'validationConfig':_0x1d2207};}const _0x13a588=_0x3197a1[_0x13514b(0x242)],_0x2ca4f6=cloneJsonValue(_0x13a588),_0x3931ba=_0x2ca4f6['flowJson'];_0x3931ba[_0x13514b(0x141)]='__rabetbase_local_validation__',_0x3931ba[_0x13514b(0x1d4)]=_0x13a588[_0x13514b(0x1d4)];typeof _0x13a588[_0x13514b(0x1f0)]===_0x13514b(0x129)&&_0x13a588[_0x13514b(0x1f0)][_0x13514b(0x1dd)]()&&(_0x3931ba[_0x13514b(0x218)]=_0x13a588['datasetCode']['trim']());const _0x1006cc=[];return validateOuterMetadata(_0x13a588,_0x1006cc),validateFlowClassification(_0x13a588,_0x1006cc),validateGraph(_0x13a588[_0x13514b(0x25c)],_0x1006cc),{'valid':_0x1006cc['length']===0x0,'errors':_0x1006cc,'warnings':_0x3197a1[_0x13514b(0x1da)],'normalized':_0x13a588,'validationConfig':_0x2ca4f6};}function validateFlowClassification(_0x2b97fb,_0x230871){const _0x58f48d=a287_0x42ed67;if(!isRecord(_0x2b97fb[_0x58f48d(0x25c)]))return;const _0xd56326=_0x2b97fb[_0x58f48d(0x210)],_0x2c6e39=_0x2b97fb['flowJson'][_0x58f48d(0x254)];_0x2c6e39!==undefined&&(typeof _0x2c6e39!=='string'||!FLOW_PAGE_MODES[_0x58f48d(0x18b)](_0x2c6e39))&&_0x230871['push']({'path':'flowJson.pageMode','message':_0x58f48d(0x21e)+String(_0x2c6e39)+'.'});_0xd56326===_0x58f48d(0x135)&&_0x2c6e39!==undefined&&_0x230871[_0x58f48d(0x1fb)]({'path':'flowJson.pageMode','message':_0x58f48d(0x17d)});_0xd56326==='INDEPENDENT_FLOW'&&_0x2c6e39===_0x58f48d(0x151)&&_0x230871['push']({'path':_0x58f48d(0x224),'message':UNSUPPORTED_PLATFORM_FORM_MESSAGE});(_0xd56326===_0x58f48d(0x135)||_0xd56326===_0x58f48d(0x1bd))&&validateCustomPageNavigation(_0x2b97fb,_0xd56326,_0x2c6e39,_0x230871);if(_0xd56326!==_0x58f48d(0x135)||!Array[_0x58f48d(0x186)](_0x2b97fb['flowJson'][_0x58f48d(0x1c1)]))return;_0x2b97fb[_0x58f48d(0x25c)][_0x58f48d(0x1c1)][_0x58f48d(0x204)]((_0x3ac150,_0x54571d)=>{const _0x342ee3=_0x58f48d;isRecord(_0x3ac150)&&_0x3ac150['type']==='APPROVAL'&&_0x3ac150[_0x342ee3(0x166)]===_0x342ee3(0x23a)&&_0x230871[_0x342ee3(0x1fb)]({'path':'flowJson.nodes['+_0x54571d+'].taskMode','message':'FORM_FLOW\x20is\x20an\x20approval\x20flow\x20and\x20cannot\x20contain\x20HANDLE\x20tasks;\x20use\x20INDEPENDENT_FLOW\x20for\x20workflows.'});});}function validateCustomPageNavigation(_0x7c65e7,_0x17ac96,_0x31f76d,_0x2debfe){const _0x370543=a287_0x42ed67,_0x3bf695=_0x7c65e7[_0x370543(0x25c)][_0x370543(0x1dc)];_0x3bf695!==undefined&&_0x2debfe['push']({'path':'flowJson.startPageId','message':'startPageId\x20is\x20no\x20longer\x20supported;\x20use\x20startPath\x20instead.'});const _0x51ff2c=_0x7c65e7[_0x370543(0x25c)][_0x370543(0x20c)];_0x51ff2c!==undefined&&(typeof _0x51ff2c!==_0x370543(0x129)||_0x51ff2c[_0x370543(0x1dd)]()==='')&&_0x2debfe['push']({'path':'flowJson.startPath','message':_0x370543(0x25f)});const _0xef691=Array[_0x370543(0x186)](_0x7c65e7[_0x370543(0x25c)][_0x370543(0x1c1)])?_0x7c65e7[_0x370543(0x25c)][_0x370543(0x1c1)][_0x370543(0x19d)]((_0x1ab21e,_0x4f7c07)=>({'node':_0x1ab21e,'index':_0x4f7c07}))['filter'](({node:_0x468312})=>isRecord(_0x468312)&&_0x468312[_0x370543(0x1ce)]!==undefined):[],_0x213d7d=_0x51ff2c!==undefined||_0xef691[_0x370543(0x16c)]>0x0,_0x4032eb=_0x31f76d===undefined&&_0x17ac96===_0x370543(0x1bd)?_0x370543(0x24b):_0x31f76d;_0x213d7d&&(_0x17ac96!==_0x370543(0x1bd)||_0x4032eb!==_0x370543(0x24b))&&(_0x51ff2c!==undefined&&_0x2debfe['push']({'path':_0x370543(0x17a),'message':_0x370543(0x110)}),_0xef691[_0x370543(0x204)](({index:_0x388530})=>{const _0x30bedc=_0x370543;_0x2debfe[_0x30bedc(0x1fb)]({'path':_0x30bedc(0x18d)+_0x388530+_0x30bedc(0x19b),'message':_0x30bedc(0x1a9)});}));}export async function writeNormalizedFlowConfig(_0x3b3488,_0x360de4,_0x57f3f1={}){const _0x6ec0eb=a287_0x42ed67,_0x5cb599=resolve(_0x3b3488),_0x8a94cc=_0x5cb599+'.'+process[_0x6ec0eb(0x1fe)]+'.'+randomUUID()+_0x6ec0eb(0xfd),_0x446343=JSON[_0x6ec0eb(0x157)](_0x360de4,null,0x2)+'\x0a';let _0x4eead0;try{try{_0x4eead0=(await stat(_0x5cb599))['mode']&0x1ff;}catch{_0x4eead0=undefined;}await writeFile(_0x8a94cc,_0x446343,{'encoding':_0x6ec0eb(0x102),'flag':'wx','mode':_0x4eead0??0x1a4});if(_0x4eead0!==undefined)await chmod(_0x8a94cc,_0x4eead0);_0x57f3f1[_0x6ec0eb(0xfe)]===![]?(await link(_0x8a94cc,_0x5cb599),await unlink(_0x8a94cc)):await rename(_0x8a94cc,_0x5cb599);}finally{await unlink(_0x8a94cc)[_0x6ec0eb(0x1c4)](()=>undefined);}}function validateOuterMetadata(_0x4a4682,_0x264c8c){const _0xb6c7f2=a287_0x42ed67;(typeof _0x4a4682[_0xb6c7f2(0x1d4)]!==_0xb6c7f2(0x129)||_0x4a4682[_0xb6c7f2(0x1d4)][_0xb6c7f2(0x1dd)]()==='')&&_0x264c8c[_0xb6c7f2(0x1fb)]({'path':_0xb6c7f2(0x1d4),'message':_0xb6c7f2(0x190)});_0x4a4682['flowDesc']!==undefined&&typeof _0x4a4682[_0xb6c7f2(0x24a)]!==_0xb6c7f2(0x129)&&_0x264c8c[_0xb6c7f2(0x1fb)]({'path':_0xb6c7f2(0x24a),'message':_0xb6c7f2(0x1ca)});if(_0x4a4682[_0xb6c7f2(0x210)]===undefined||_0x4a4682['flowType']===null)_0x264c8c[_0xb6c7f2(0x1fb)]({'path':_0xb6c7f2(0x210),'message':_0xb6c7f2(0x24f)});else(typeof _0x4a4682['flowType']!==_0xb6c7f2(0x129)||!FLOW_TYPES[_0xb6c7f2(0x18b)](_0x4a4682[_0xb6c7f2(0x210)]))&&_0x264c8c['push']({'path':_0xb6c7f2(0x210),'message':_0xb6c7f2(0x216)+String(_0x4a4682[_0xb6c7f2(0x210)])+'.'});_0x4a4682[_0xb6c7f2(0x1f0)]!==undefined&&typeof _0x4a4682[_0xb6c7f2(0x1f0)]!==_0xb6c7f2(0x129)&&_0x264c8c[_0xb6c7f2(0x1fb)]({'path':_0xb6c7f2(0x1f0),'message':_0xb6c7f2(0x1c8)}),_0x4a4682['pageId']!==undefined&&(!Number[_0xb6c7f2(0x176)](_0x4a4682[_0xb6c7f2(0x19c)])||_0x4a4682['pageId']<0x0)&&_0x264c8c[_0xb6c7f2(0x1fb)]({'path':_0xb6c7f2(0x19c),'message':_0xb6c7f2(0x25a)}),_0x4a4682[_0xb6c7f2(0x210)]===_0xb6c7f2(0x1bd)&&_0x4a4682[_0xb6c7f2(0x1f0)]!==undefined&&_0x264c8c[_0xb6c7f2(0x1fb)]({'path':_0xb6c7f2(0x1f0),'message':_0xb6c7f2(0x159)}),_0x4a4682['flowType']===_0xb6c7f2(0x1bd)&&_0x4a4682[_0xb6c7f2(0x19c)]!==undefined&&_0x264c8c['push']({'path':_0xb6c7f2(0x19c),'message':'INDEPENDENT_FLOW\x20cannot\x20bind\x20pageId.'});}function validateGraph(_0x5c3e03,_0x4ffc07){const _0x34d978=a287_0x42ed67;if(!isRecord(_0x5c3e03)){_0x4ffc07[_0x34d978(0x1fb)]({'path':_0x34d978(0x25c),'message':_0x34d978(0xfc)});return;}!Array[_0x34d978(0x186)](_0x5c3e03[_0x34d978(0x1c1)])&&_0x4ffc07['push']({'path':'flowJson.nodes','message':_0x34d978(0x1f8)});!Array['isArray'](_0x5c3e03[_0x34d978(0x14c)])&&_0x4ffc07[_0x34d978(0x1fb)]({'path':_0x34d978(0x193),'message':'edges\x20must\x20be\x20an\x20array.'});Object[_0x34d978(0x192)][_0x34d978(0x127)]['call'](_0x5c3e03,_0x34d978(0x1ec))&&_0x4ffc07[_0x34d978(0x1fb)]({'path':_0x34d978(0x109),'message':_0x34d978(0x134)+String(_0x5c3e03[_0x34d978(0x1ec)])+_0x34d978(0x11b)+DEFAULT_FLOW_SCHEMA_VERSION+'.'});for(const _0xb114da of[_0x34d978(0xfb),_0x34d978(0x20e),_0x34d978(0x148)]){Object[_0x34d978(0x192)][_0x34d978(0x127)]['call'](_0x5c3e03,_0xb114da)&&_0x4ffc07[_0x34d978(0x1fb)]({'path':_0x34d978(0x1b6)+_0xb114da,'message':UNSUPPORTED_FORM_MESSAGE});}if(!Array[_0x34d978(0x186)](_0x5c3e03[_0x34d978(0x1c1)])||!Array[_0x34d978(0x186)](_0x5c3e03[_0x34d978(0x14c)]))return;const _0x1e0943=new Map(),_0x3ee53b=[],_0x7b660=[],_0x4ddd20=new Map(),_0x51961b=new Map(),_0x55683d=new Set();let _0x4710ef=0x0;_0x5c3e03['nodes'][_0x34d978(0x204)]((_0x7cbad5,_0x2e2a80)=>{const _0x53df62=_0x34d978,_0x21bb99=_0x53df62(0x18d)+_0x2e2a80+']';if(!isRecord(_0x7cbad5)){_0x4ffc07['push']({'path':_0x21bb99,'message':_0x53df62(0x13a)});return;}const _0x472528=_0x7cbad5;if(typeof _0x472528['id']!==_0x53df62(0x129)||!BPMN_ID_PATTERN['test'](_0x472528['id']))_0x4ffc07['push']({'path':_0x21bb99+_0x53df62(0x1f7),'message':_0x53df62(0x257)});else _0x1e0943['has'](_0x472528['id'])?_0x4ffc07['push']({'path':_0x21bb99+'.id','message':_0x53df62(0x22c)+_0x472528['id']+'.'}):(_0x1e0943[_0x53df62(0x237)](_0x472528['id'],_0x472528),_0x55683d[_0x53df62(0x168)](_0x472528['id']));if(!NODE_TYPES['has'](_0x472528[_0x53df62(0x14f)]))_0x4ffc07[_0x53df62(0x1fb)]({'path':_0x21bb99+_0x53df62(0x20a),'message':_0x53df62(0x1ed)+String(_0x472528[_0x53df62(0x14f)])+'.'});else{if(_0x472528[_0x53df62(0x14f)]===_0x53df62(0x243))_0x3ee53b[_0x53df62(0x1fb)](_0x472528['id']);else _0x472528[_0x53df62(0x14f)]===_0x53df62(0x232)&&_0x7b660[_0x53df62(0x1fb)](_0x472528['id']);}_0x472528[_0x53df62(0x14f)]===_0x53df62(0x196)&&(_0x472528[_0x53df62(0x166)]===undefined||_0x472528[_0x53df62(0x166)]===_0x53df62(0x196))&&(_0x4710ef+=0x1);validateNode(_0x472528,_0x21bb99,_0x4ffc07);if(_0x472528['type']===_0x53df62(0x12e)){const _0x47dd1a=resolveEffectiveResultVariable(_0x472528[_0x53df62(0x1d8)],![]);_0x47dd1a&&(registerResultVariableOwner(_0x51961b,_0x47dd1a,_0x472528['id'],_0x4ffc07),!_0x4ddd20[_0x53df62(0x18b)](_0x47dd1a)&&_0x4ddd20[_0x53df62(0x237)](_0x47dd1a,_0x472528['id']));}if(_0x472528[_0x53df62(0x14f)]==='APPROVAL'&&isRecord(_0x472528['timeout'])&&_0x472528['timeout'][_0x53df62(0xfa)]===!![]&&_0x472528[_0x53df62(0x222)]['action']==='EXECUTE_BFF'){const _0x2d2ef1=resolveEffectiveResultVariable(_0x472528[_0x53df62(0x222)]['resultVariable'],!![]);_0x2d2ef1&&registerResultVariableOwner(_0x51961b,_0x2d2ef1,_0x472528['id']+'.timeout',_0x4ffc07);}});_0x3ee53b['length']!==0x1&&_0x4ffc07[_0x34d978(0x1fb)]({'path':_0x34d978(0x226),'message':'Flow\x20must\x20contain\x20exactly\x20one\x20START\x20node.'});_0x7b660[_0x34d978(0x16c)]===0x0&&_0x4ffc07[_0x34d978(0x1fb)]({'path':'flowJson.nodes','message':'Flow\x20must\x20contain\x20at\x20least\x20one\x20END\x20node.'});const _0x46781c=new Map(),_0x152e06=new Map(),_0x4ee49e=new Map(),_0x10add0=new Set();_0x5c3e03[_0x34d978(0x14c)]['forEach']((_0x5e2bd4,_0x2a7af8)=>{const _0x33d995=_0x34d978,_0x4b9b5f=_0x33d995(0x1be)+_0x2a7af8+']';if(!isRecord(_0x5e2bd4)){_0x4ffc07[_0x33d995(0x1fb)]({'path':_0x4b9b5f,'message':_0x33d995(0x12a)});return;}const _0x44cc72=_0x5e2bd4;_0x4ee49e[_0x33d995(0x237)](_0x44cc72,_0x4b9b5f);const _0x4cf2bf=resolveEdgeEndpoint(_0x44cc72[_0x33d995(0x125)],_0x44cc72[_0x33d995(0x10f)]),_0x269ff1=resolveEdgeEndpoint(_0x44cc72[_0x33d995(0x197)],_0x44cc72[_0x33d995(0x259)]);if(!_0x4cf2bf)_0x4ffc07['push']({'path':_0x4b9b5f+_0x33d995(0x1a4),'message':_0x33d995(0x1f2)});if(!_0x269ff1)_0x4ffc07[_0x33d995(0x1fb)]({'path':_0x4b9b5f+_0x33d995(0x1c7),'message':_0x33d995(0x23c)});_0x4cf2bf&&!_0x1e0943[_0x33d995(0x18b)](_0x4cf2bf)&&_0x4ffc07[_0x33d995(0x1fb)]({'path':_0x4b9b5f+_0x33d995(0x1a4),'message':_0x33d995(0x139)+_0x4cf2bf+'.'});_0x269ff1&&!_0x1e0943[_0x33d995(0x18b)](_0x269ff1)&&_0x4ffc07[_0x33d995(0x1fb)]({'path':_0x4b9b5f+'.target','message':_0x33d995(0x248)+_0x269ff1+'.'});if(_0x44cc72['id']!==undefined){if(typeof _0x44cc72['id']!==_0x33d995(0x129)||!BPMN_ID_PATTERN[_0x33d995(0x240)](_0x44cc72['id']))_0x4ffc07[_0x33d995(0x1fb)]({'path':_0x4b9b5f+_0x33d995(0x1f7),'message':_0x33d995(0x1a5)});else{if(_0x55683d[_0x33d995(0x18b)](_0x44cc72['id']))_0x4ffc07[_0x33d995(0x1fb)]({'path':_0x4b9b5f+_0x33d995(0x1f7),'message':'Duplicate\x20BPMN\x20element\x20id:\x20'+_0x44cc72['id']+'.'});else!_0x55683d['has'](_0x44cc72['id'])&&_0x55683d[_0x33d995(0x168)](_0x44cc72['id']);}}if(_0x4cf2bf&&_0x269ff1){const _0x4ec7ec=_0x4cf2bf+'\x00'+_0x269ff1+'\x00'+(_0x44cc72[_0x33d995(0x11c)]??_0x33d995(0x12b));_0x10add0[_0x33d995(0x18b)](_0x4ec7ec)?_0x4ffc07[_0x33d995(0x1fb)]({'path':_0x4b9b5f,'message':'Duplicate\x20edge\x20route:\x20'+_0x4cf2bf+_0x33d995(0x118)+_0x269ff1+'\x20('+(_0x44cc72[_0x33d995(0x11c)]??_0x33d995(0x12b))+').'}):_0x10add0[_0x33d995(0x168)](_0x4ec7ec);}validateEdge(_0x44cc72,_0x4b9b5f,_0x4ffc07),_0x4cf2bf&&_0x269ff1&&(_0x46781c['get'](_0x4cf2bf)?.[_0x33d995(0x1fb)](_0x44cc72)??_0x46781c[_0x33d995(0x237)](_0x4cf2bf,[_0x44cc72]),_0x152e06[_0x33d995(0x1e3)](_0x269ff1)?.[_0x33d995(0x1fb)](_0x44cc72)??_0x152e06['set'](_0x269ff1,[_0x44cc72]));});if(_0x3ee53b[_0x34d978(0x16c)]!==0x1)return;validateGraphShape(_0x1e0943,_0x3ee53b[0x0],_0x7b660,_0x46781c,_0x152e06,_0x4ee49e,_0x4ffc07),validateScriptResultReferences(_0x1e0943,_0x3ee53b[0x0],_0x46781c,_0x152e06,_0x4ee49e,_0x4ddd20,_0x4ffc07),validateApprovalResults(_0x1e0943,_0x4710ef,_0x7b660,_0x4ffc07);}function validateNode(_0x553a0a,_0x29714d,_0x31cbea){const _0xfbc7d2=a287_0x42ed67;for(const _0x1cb648 of['form','formPermission']){Object[_0xfbc7d2(0x192)][_0xfbc7d2(0x127)]['call'](_0x553a0a,_0x1cb648)&&_0x31cbea[_0xfbc7d2(0x1fb)]({'path':_0x29714d+'.'+_0x1cb648,'message':UNSUPPORTED_FORM_MESSAGE});}if(!NODE_TYPES[_0xfbc7d2(0x18b)](_0x553a0a[_0xfbc7d2(0x14f)]))return;(typeof _0x553a0a[_0xfbc7d2(0x1e5)]!==_0xfbc7d2(0x129)||_0x553a0a[_0xfbc7d2(0x1e5)][_0xfbc7d2(0x1dd)]()==='')&&_0x31cbea['push']({'path':_0x29714d+_0xfbc7d2(0x10b),'message':'Every\x20node\x20requires\x20a\x20non-empty\x20name.'});_0x553a0a['pageId']!==undefined&&_0x31cbea[_0xfbc7d2(0x1fb)]({'path':_0x29714d+_0xfbc7d2(0x234),'message':_0xfbc7d2(0x13f)});if(_0x553a0a['path']!==undefined){if(typeof _0x553a0a['path']!==_0xfbc7d2(0x129)||_0x553a0a[_0xfbc7d2(0x1ce)][_0xfbc7d2(0x1dd)]()==='')_0x31cbea[_0xfbc7d2(0x1fb)]({'path':_0x29714d+_0xfbc7d2(0x111),'message':_0xfbc7d2(0x160)});else _0x553a0a[_0xfbc7d2(0x14f)]!==_0xfbc7d2(0x196)&&_0x553a0a[_0xfbc7d2(0x14f)]!=='END'&&_0x31cbea[_0xfbc7d2(0x1fb)]({'path':_0x29714d+_0xfbc7d2(0x111),'message':_0xfbc7d2(0x140)});}const _0x32ce6f=_0x553a0a[_0xfbc7d2(0x11d)];if(!isRecord(_0x32ce6f))_0x31cbea[_0xfbc7d2(0x1fb)]({'path':_0x29714d+_0xfbc7d2(0x219),'message':_0xfbc7d2(0x17b)});else for(const _0x4bf6cb of['x','y']){const _0x1d3b87=_0x32ce6f[_0x4bf6cb];(typeof _0x1d3b87!==_0xfbc7d2(0x227)||!Number['isFinite'](_0x1d3b87)||_0x1d3b87<0x0)&&_0x31cbea[_0xfbc7d2(0x1fb)]({'path':_0x29714d+_0xfbc7d2(0x208)+_0x4bf6cb,'message':_0xfbc7d2(0x24d)+_0x4bf6cb+_0xfbc7d2(0x1b9)});}if(_0x553a0a[_0xfbc7d2(0x14f)]===_0xfbc7d2(0x196)){const _0x314470=_0x553a0a['approvalMode']??_0xfbc7d2(0x236),_0x52bb32=_0x553a0a['taskMode']??_0xfbc7d2(0x196);!APPROVAL_TASK_MODES[_0xfbc7d2(0x18b)](_0x52bb32)&&_0x31cbea[_0xfbc7d2(0x1fb)]({'path':_0x29714d+_0xfbc7d2(0x1e6),'message':'Unsupported\x20task\x20mode:\x20'+String(_0x52bb32)+'.'});!APPROVAL_MODES[_0xfbc7d2(0x18b)](_0x314470)&&_0x31cbea[_0xfbc7d2(0x1fb)]({'path':_0x29714d+'.approvalMode','message':_0xfbc7d2(0x220)+String(_0x314470)+'.'});if(!isRecord(_0x553a0a[_0xfbc7d2(0x107)]))_0x31cbea['push']({'path':_0x29714d+_0xfbc7d2(0x137),'message':_0xfbc7d2(0x1b1)});else{const _0x2a634d=_0x553a0a[_0xfbc7d2(0x107)][_0xfbc7d2(0x12f)];_0x2a634d!==_0xfbc7d2(0x18c)&&_0x2a634d!=='ROLE'&&_0x31cbea['push']({'path':_0x29714d+_0xfbc7d2(0x13d),'message':_0xfbc7d2(0x223)});if(_0x2a634d===_0xfbc7d2(0x18c)){const _0x1cbb66=_0x553a0a[_0xfbc7d2(0x107)]['userIds'];if(!Array[_0xfbc7d2(0x186)](_0x1cbb66)||_0x1cbb66[_0xfbc7d2(0x16c)]===0x0)_0x31cbea['push']({'path':_0x29714d+_0xfbc7d2(0x1a1),'message':_0xfbc7d2(0x14e)});else{const _0x34031b=_0x1cbb66['findIndex'](_0x1bbcd7=>!isValidUserId(_0x1bbcd7));_0x34031b>=0x0&&_0x31cbea[_0xfbc7d2(0x1fb)]({'path':_0x29714d+_0xfbc7d2(0x1cf)+_0x34031b+']','message':_0xfbc7d2(0x1f6)});const _0x23ebf6=new Set(_0x1cbb66[_0xfbc7d2(0x17e)](isValidUserId)[_0xfbc7d2(0x19d)](_0x4c90cb=>String(_0x4c90cb)[_0xfbc7d2(0x1dd)]()));_0x314470===_0xfbc7d2(0x236)&&_0x23ebf6[_0xfbc7d2(0x21d)]>0x1&&_0x31cbea[_0xfbc7d2(0x1fb)]({'path':_0x29714d+'.assignee.userIds','message':_0xfbc7d2(0x1d3)});}}if(_0x2a634d===_0xfbc7d2(0x1d1)){const _0x173674=_0x553a0a[_0xfbc7d2(0x107)][_0xfbc7d2(0x1cb)],_0x3924de=typeof _0x173674===_0xfbc7d2(0x227)||typeof _0x173674==='string'?Number(String(_0x173674)[_0xfbc7d2(0x1dd)]()):Number[_0xfbc7d2(0x20b)];(!Number[_0xfbc7d2(0x1ae)](_0x3924de)||_0x3924de<=0x0)&&_0x31cbea[_0xfbc7d2(0x1fb)]({'path':_0x29714d+_0xfbc7d2(0x22e),'message':_0xfbc7d2(0x13e)});}}if(_0x553a0a[_0xfbc7d2(0x11f)]!==undefined){if(!isRecord(_0x553a0a[_0xfbc7d2(0x11f)]))_0x31cbea['push']({'path':_0x29714d+_0xfbc7d2(0x152),'message':_0xfbc7d2(0x25b)});else{if(_0x553a0a[_0xfbc7d2(0x11f)][_0xfbc7d2(0x12f)]!==_0xfbc7d2(0x18c))_0x31cbea[_0xfbc7d2(0x1fb)]({'path':_0x29714d+_0xfbc7d2(0x24e),'message':_0xfbc7d2(0x1c0)});else{const _0x241d10=_0x553a0a[_0xfbc7d2(0x11f)][_0xfbc7d2(0x116)];if(!Array[_0xfbc7d2(0x186)](_0x241d10)||_0x241d10[_0xfbc7d2(0x16c)]===0x0)_0x31cbea[_0xfbc7d2(0x1fb)]({'path':_0x29714d+_0xfbc7d2(0x195),'message':_0xfbc7d2(0x1b7)});else{const _0x20513d=_0x241d10[_0xfbc7d2(0x238)](_0x300202=>!isValidUserId(_0x300202));_0x20513d>=0x0&&_0x31cbea['push']({'path':_0x29714d+_0xfbc7d2(0x1ef)+_0x20513d+']','message':_0xfbc7d2(0x21b)});}}}}}_0x553a0a[_0xfbc7d2(0x15a)]!==undefined&&typeof _0x553a0a['sequential']!==_0xfbc7d2(0x1db)&&_0x31cbea[_0xfbc7d2(0x1fb)]({'path':_0x29714d+_0xfbc7d2(0x131),'message':_0xfbc7d2(0x175)});if(_0x553a0a[_0xfbc7d2(0x14f)]==='SCRIPT'){(typeof _0x553a0a[_0xfbc7d2(0x122)]!=='string'||_0x553a0a['scriptName'][_0xfbc7d2(0x1dd)]()==='')&&_0x31cbea[_0xfbc7d2(0x1fb)]({'path':_0x29714d+'.scriptName','message':_0xfbc7d2(0x179)});if(_0x553a0a[_0xfbc7d2(0x1d8)]!==undefined){if(typeof _0x553a0a[_0xfbc7d2(0x1d8)]!=='string'||!VARIABLE_PATTERN[_0xfbc7d2(0x240)](_0x553a0a['resultVariable']))_0x31cbea[_0xfbc7d2(0x1fb)]({'path':_0x29714d+'.resultVariable','message':'resultVariable\x20must\x20match\x20[A-Za-z_][A-Za-z0-9_]*.'});else(RESERVED_RESULT_VARIABLES[_0xfbc7d2(0x18b)](_0x553a0a[_0xfbc7d2(0x1d8)])||_0x553a0a[_0xfbc7d2(0x1d8)][_0xfbc7d2(0x16e)](_0xfbc7d2(0x161)))&&_0x31cbea['push']({'path':_0x29714d+_0xfbc7d2(0x19a),'message':_0xfbc7d2(0x1ad)+_0x553a0a[_0xfbc7d2(0x1d8)]+'.'});}}validateAsyncExecution(_0x553a0a,_0x29714d,_0x31cbea),validateApprovalTimeout(_0x553a0a,_0x29714d,_0x31cbea),validateCcConfig(_0x553a0a,_0x29714d,_0x31cbea),_0x553a0a[_0xfbc7d2(0x14f)]===_0xfbc7d2(0x256)&&validateNotificationConfig(_0x553a0a['config'],_0x29714d+_0xfbc7d2(0x108),_0x31cbea);}function validateAsyncExecution(_0x43f368,_0x5a4f77,_0x428a26){const _0x3081d0=a287_0x42ed67;if(_0x43f368[_0x3081d0(0x10e)]===undefined)return;if(!isRecord(_0x43f368[_0x3081d0(0x10e)])){_0x428a26[_0x3081d0(0x1fb)]({'path':_0x5a4f77+'.async','message':_0x3081d0(0x19e)});return;}if(_0x43f368['async'][_0x3081d0(0xfa)]!==undefined&&typeof _0x43f368[_0x3081d0(0x10e)]['enabled']!==_0x3081d0(0x1db)){_0x428a26[_0x3081d0(0x1fb)]({'path':_0x5a4f77+_0x3081d0(0x258),'message':'async.enabled\x20must\x20be\x20a\x20boolean.'});return;}if(_0x43f368[_0x3081d0(0x10e)][_0x3081d0(0xfa)]!==!![])return;_0x43f368[_0x3081d0(0x14f)]!==_0x3081d0(0x12e)&&_0x428a26[_0x3081d0(0x1fb)]({'path':_0x5a4f77+_0x3081d0(0x173),'message':_0x3081d0(0x199)});const _0x4bf636=_0x43f368['async']['retryCount']??0x3;(!Number['isInteger'](_0x4bf636)||_0x4bf636<0x1||_0x4bf636>MAX_ASYNC_RETRY_COUNT)&&_0x428a26[_0x3081d0(0x1fb)]({'path':_0x5a4f77+'.async.retryCount','message':_0x3081d0(0x183)+MAX_ASYNC_RETRY_COUNT+'.'}),_0x43f368['async']['retryInterval']!==undefined&&validateTimeAmount(_0x43f368[_0x3081d0(0x10e)]['retryInterval'],_0x5a4f77+_0x3081d0(0x106),_0x428a26);}function validateApprovalTimeout(_0x53683e,_0x9341f4,_0x180d00){const _0xb47829=a287_0x42ed67;if(_0x53683e['timeout']===undefined)return;if(!isRecord(_0x53683e['timeout'])){_0x180d00[_0xb47829(0x1fb)]({'path':_0x9341f4+_0xb47829(0x239),'message':'timeout\x20must\x20be\x20an\x20object.'});return;}if(_0x53683e[_0xb47829(0x222)]['enabled']!==undefined&&typeof _0x53683e['timeout'][_0xb47829(0xfa)]!=='boolean'){_0x180d00[_0xb47829(0x1fb)]({'path':_0x9341f4+_0xb47829(0x12c),'message':_0xb47829(0x209)});return;}if(_0x53683e[_0xb47829(0x222)][_0xb47829(0xfa)]!==!![])return;if(_0x53683e[_0xb47829(0x222)]['interrupting']!==undefined&&typeof _0x53683e[_0xb47829(0x222)][_0xb47829(0x22d)]!==_0xb47829(0x1db)){_0x180d00[_0xb47829(0x1fb)]({'path':_0x9341f4+'.timeout.interrupting','message':_0xb47829(0x221)});return;}_0x53683e['type']!==_0xb47829(0x196)&&_0x180d00['push']({'path':_0x9341f4+_0xb47829(0x239),'message':_0xb47829(0x229)});validateTimeAmount(_0x53683e[_0xb47829(0x222)][_0xb47829(0x191)],_0x9341f4+_0xb47829(0x16b),_0x180d00);const _0x1e9ee8=_0x53683e[_0xb47829(0x222)][_0xb47829(0x146)];if(!APPROVAL_TIMEOUT_ACTIONS['has'](_0x1e9ee8)){_0x180d00[_0xb47829(0x1fb)]({'path':_0x9341f4+_0xb47829(0x1f9),'message':'timeout.action\x20must\x20be\x20AUTO_APPROVE,\x20AUTO_REJECT,\x20or\x20EXECUTE_BFF.'});return;}(_0x53683e['taskMode']??_0xb47829(0x196))===_0xb47829(0x23a)&&_0x1e9ee8!==_0xb47829(0x12d)&&_0x180d00['push']({'path':_0x9341f4+'.timeout.action','message':'HANDLE\x20task\x20timeout\x20only\x20supports\x20EXECUTE_BFF.'});const _0x50afb8=_0x53683e[_0xb47829(0x222)]['interrupting']??_0x1e9ee8!==_0xb47829(0x12d);if(_0x1e9ee8==='EXECUTE_BFF')_0x50afb8&&_0x180d00[_0xb47829(0x1fb)]({'path':_0x9341f4+'.timeout.interrupting','message':_0xb47829(0x235)}),(typeof _0x53683e['timeout'][_0xb47829(0x122)]!==_0xb47829(0x129)||_0x53683e[_0xb47829(0x222)]['scriptName'][_0xb47829(0x1dd)]()==='')&&_0x180d00[_0xb47829(0x1fb)]({'path':_0x9341f4+_0xb47829(0x11a),'message':_0xb47829(0x1d7)}),validateOptionalResultVariable(_0x53683e['timeout'][_0xb47829(0x1d8)],_0x9341f4+'.timeout.resultVariable',_0x180d00);else!_0x50afb8&&_0x180d00[_0xb47829(0x1fb)]({'path':_0x9341f4+_0xb47829(0x1c9),'message':_0x1e9ee8+_0xb47829(0x18f)});}function validateTimeAmount(_0x166dd8,_0x2f4735,_0x3dfdf7){const _0x2e8c56=a287_0x42ed67;if(!isRecord(_0x166dd8)){_0x3dfdf7[_0x2e8c56(0x1fb)]({'path':_0x2f4735,'message':_0x2e8c56(0x1b3)});return;}(!Number['isInteger'](_0x166dd8[_0x2e8c56(0x169)])||Number(_0x166dd8[_0x2e8c56(0x169)])<=0x0)&&_0x3dfdf7[_0x2e8c56(0x1fb)]({'path':_0x2f4735+_0x2e8c56(0x181),'message':_0x2e8c56(0x225)}),!FLOW_TIME_UNITS[_0x2e8c56(0x18b)](_0x166dd8['unit'])&&_0x3dfdf7['push']({'path':_0x2f4735+_0x2e8c56(0x253),'message':_0x2e8c56(0x1ea)});}function validateOptionalResultVariable(_0x3b3ff2,_0x12bf7e,_0x2b40a4){const _0x5004b6=a287_0x42ed67;if(_0x3b3ff2===undefined||_0x3b3ff2===null||_0x3b3ff2==='')return;if(typeof _0x3b3ff2!=='string'||!VARIABLE_PATTERN[_0x5004b6(0x240)](_0x3b3ff2))_0x2b40a4[_0x5004b6(0x1fb)]({'path':_0x12bf7e,'message':_0x5004b6(0x19f)});else(RESERVED_RESULT_VARIABLES[_0x5004b6(0x18b)](_0x3b3ff2)||_0x3b3ff2['startsWith']('approval_sys_'))&&_0x2b40a4[_0x5004b6(0x1fb)]({'path':_0x12bf7e,'message':_0x5004b6(0x1ad)+_0x3b3ff2+'.'});}function validateCcConfig(_0x4f6999,_0x10ce86,_0x48d71c){const _0xaa5a94=a287_0x42ed67;if(_0x4f6999['cc']===undefined)return;if(!isRecord(_0x4f6999['cc'])){_0x48d71c[_0xaa5a94(0x1fb)]({'path':_0x10ce86+_0xaa5a94(0x14d),'message':'cc\x20must\x20be\x20an\x20object.'});return;}_0x4f6999['type']!=='END'&&_0x4f6999['type']!=='APPROVAL'&&_0x48d71c[_0xaa5a94(0x1fb)]({'path':_0x10ce86+'.cc','message':_0xaa5a94(0x16a)});Object['prototype'][_0xaa5a94(0x127)][_0xaa5a94(0x189)](_0x4f6999['cc'],'readSources')&&_0x48d71c[_0xaa5a94(0x1fb)]({'path':_0x10ce86+_0xaa5a94(0x113),'message':UNSUPPORTED_FORM_MESSAGE});const _0x59506e=_0x4f6999['cc'][_0xaa5a94(0x1c5)];if(!Array['isArray'](_0x59506e)||_0x59506e[_0xaa5a94(0x16c)]===0x0)_0x48d71c['push']({'path':_0x10ce86+_0xaa5a94(0x136),'message':_0xaa5a94(0x228)});else{_0x59506e[_0xaa5a94(0x16c)]>MAX_CC_RECIPIENTS&&_0x48d71c[_0xaa5a94(0x1fb)]({'path':_0x10ce86+_0xaa5a94(0x136),'message':_0xaa5a94(0x194)+MAX_CC_RECIPIENTS+'\x20users.'});const _0x27169a=new Set();_0x59506e['forEach']((_0x433589,_0x3bb0c8)=>{const _0x1a6a32=_0xaa5a94;if(typeof _0x433589!=='string'||_0x433589[_0x1a6a32(0x1dd)]()==='')_0x48d71c['push']({'path':_0x10ce86+_0x1a6a32(0x1cc)+_0x3bb0c8+']','message':_0x1a6a32(0x16d)});else _0x27169a[_0x1a6a32(0x18b)](_0x433589[_0x1a6a32(0x1dd)]())?_0x48d71c['push']({'path':_0x10ce86+_0x1a6a32(0x1cc)+_0x3bb0c8+']','message':'Duplicate\x20cc\x20recipient\x20userId:\x20'+_0x433589[_0x1a6a32(0x1dd)]()+'.'}):_0x27169a[_0x1a6a32(0x168)](_0x433589[_0x1a6a32(0x1dd)]());});}validateStringArray(_0x4f6999['cc'][_0xaa5a94(0x1a8)],_0x10ce86+_0xaa5a94(0x1d0),_0x48d71c);}function validateStringArray(_0x2d54a9,_0x416bf6,_0x4210e8){const _0x31adce=a287_0x42ed67;if(_0x2d54a9===undefined)return;if(!Array[_0x31adce(0x186)](_0x2d54a9)){_0x4210e8[_0x31adce(0x1fb)]({'path':_0x416bf6,'message':_0x31adce(0x247)});return;}const _0xc31f28=new Set();_0x2d54a9[_0x31adce(0x204)]((_0x2ddb71,_0xf3ada6)=>{const _0x1273ce=_0x31adce;if(typeof _0x2ddb71!=='string'||_0x2ddb71[_0x1273ce(0x1dd)]()==='')_0x4210e8[_0x1273ce(0x1fb)]({'path':_0x416bf6+'['+_0xf3ada6+']','message':_0x1273ce(0x21f)});else _0xc31f28[_0x1273ce(0x18b)](_0x2ddb71['trim']())?_0x4210e8['push']({'path':_0x416bf6+'['+_0xf3ada6+']','message':_0x1273ce(0x162)+_0x2ddb71[_0x1273ce(0x1dd)]()+'.'}):_0xc31f28['add'](_0x2ddb71[_0x1273ce(0x1dd)]());});}function validateNotificationConfig(_0x926648,_0x20c89a,_0xa6c5b3){const _0x1c84f2=a287_0x42ed67;if(!isRecord(_0x926648)){_0xa6c5b3[_0x1c84f2(0x1fb)]({'path':_0x20c89a,'message':_0x1c84f2(0x25d)});return;}if(_0x926648[_0x1c84f2(0x1a6)]!==undefined&&_0x926648[_0x1c84f2(0x1a6)]!==null){if(typeof _0x926648[_0x1c84f2(0x1a6)]!==_0x1c84f2(0x129))_0xa6c5b3[_0x1c84f2(0x1fb)]({'path':_0x20c89a+_0x1c84f2(0x105),'message':_0x1c84f2(0x1f4)});else _0x926648[_0x1c84f2(0x1a6)][_0x1c84f2(0x1dd)]()&&_0x926648[_0x1c84f2(0x1a6)][_0x1c84f2(0x1dd)]()!=='v1'&&_0xa6c5b3['push']({'path':_0x20c89a+_0x1c84f2(0x105),'message':_0x1c84f2(0x246)+_0x926648['version']+'.'});}const _0x2c82fc=requireNotificationString(_0x926648['configCode'],_0x20c89a+_0x1c84f2(0x23b),_0x1c84f2(0x22f),_0xa6c5b3);_0x2c82fc?.[_0x1c84f2(0x165)]('${')&&_0xa6c5b3[_0x1c84f2(0x1fb)]({'path':_0x20c89a+_0x1c84f2(0x23b),'message':'Notification\x20configCode\x20must\x20be\x20a\x20fixed\x20value.'});if(_0x926648[_0x1c84f2(0x1bc)]!==undefined&&_0x926648[_0x1c84f2(0x1bc)]!==null){if(typeof _0x926648[_0x1c84f2(0x1bc)]!==_0x1c84f2(0x129))_0xa6c5b3[_0x1c84f2(0x1fb)]({'path':_0x20c89a+'.failurePolicy','message':_0x1c84f2(0x21a)});else!NOTIFICATION_FAILURE_POLICIES[_0x1c84f2(0x18b)](_0x926648[_0x1c84f2(0x1bc)][_0x1c84f2(0x1dd)]()[_0x1c84f2(0x158)]())&&_0xa6c5b3['push']({'path':_0x20c89a+_0x1c84f2(0x187),'message':_0x1c84f2(0x215)});}!isRecord(_0x926648[_0x1c84f2(0x124)])?_0xa6c5b3[_0x1c84f2(0x1fb)]({'path':_0x20c89a+_0x1c84f2(0x130),'message':_0x1c84f2(0x133)}):validateNotificationTemplate(_0x926648['template'],_0x20c89a+_0x1c84f2(0x130),_0xa6c5b3),validateNotificationRecipients(_0x926648[_0x1c84f2(0x1ac)],_0x20c89a+_0x1c84f2(0x251),_0xa6c5b3);}function validateNotificationTemplate(_0x5db74a,_0x5c2658,_0x1498a2){const _0x49f82c=a287_0x42ed67;for(const _0x4d632a of[_0x49f82c(0x163),_0x49f82c(0x207)]){const _0x34cab5=requireNotificationString(_0x5db74a[_0x4d632a],_0x5c2658+'.'+_0x4d632a,_0x49f82c(0x117)+_0x4d632a+'\x20is\x20required.',_0x1498a2);if(_0x34cab5)validateNotificationPlaceholders(_0x34cab5,_0x5c2658+'.'+_0x4d632a,_0x1498a2);}_0x5db74a[_0x49f82c(0x1bf)]!==undefined&&_0x5db74a[_0x49f82c(0x1bf)]!==null&&(typeof _0x5db74a[_0x49f82c(0x1bf)]!=='string'?_0x1498a2[_0x49f82c(0x1fb)]({'path':_0x5c2658+_0x49f82c(0x13b),'message':_0x49f82c(0x1bb)}):validateNotificationPlaceholders(_0x5db74a[_0x49f82c(0x1bf)],_0x5c2658+'.detailMarkdown',_0x1498a2)),validateNotificationFacts(_0x5db74a[_0x49f82c(0x16f)],_0x5c2658+_0x49f82c(0x1b8),_0x1498a2),validateNotificationActions(_0x5db74a[_0x49f82c(0x1b4)],_0x5c2658+_0x49f82c(0x1b0),_0x1498a2);}function validateNotificationFacts(_0x4cd85b,_0x3ea9cd,_0x4d4084){const _0x4dd596=a287_0x42ed67;if(_0x4cd85b===undefined||_0x4cd85b===null)return;if(!Array['isArray'](_0x4cd85b)){_0x4d4084[_0x4dd596(0x1fb)]({'path':_0x3ea9cd,'message':_0x4dd596(0x1e7)});return;}_0x4cd85b[_0x4dd596(0x16c)]>MAX_NOTIFICATION_FACTS&&_0x4d4084[_0x4dd596(0x1fb)]({'path':_0x3ea9cd,'message':'Notification\x20template\x20supports\x20at\x20most\x20'+MAX_NOTIFICATION_FACTS+_0x4dd596(0x104)}),_0x4cd85b[_0x4dd596(0x204)]((_0x51b4cb,_0x1631e5)=>{const _0x3f7975=_0x4dd596,_0x8c47ac=_0x3ea9cd+'['+_0x1631e5+']';if(!isRecord(_0x51b4cb)){_0x4d4084[_0x3f7975(0x1fb)]({'path':_0x8c47ac,'message':_0x3f7975(0x217)});return;}for(const _0x17e7a8 of[_0x3f7975(0x15b),_0x3f7975(0x169)]){const _0x33cce9=requireNotificationString(_0x51b4cb[_0x17e7a8],_0x8c47ac+'.'+_0x17e7a8,_0x3f7975(0x213)+_0x17e7a8+'\x20is\x20required.',_0x4d4084);_0x33cce9&&validateNotificationPlaceholders(_0x33cce9,_0x8c47ac+'.'+_0x17e7a8,_0x4d4084);}});}function validateNotificationActions(_0x1c8751,_0x4681ce,_0x3d08de){const _0x597e73=a287_0x42ed67;if(_0x1c8751===undefined||_0x1c8751===null)return;if(!Array['isArray'](_0x1c8751)){_0x3d08de['push']({'path':_0x4681ce,'message':'Notification\x20template.actions\x20must\x20be\x20an\x20array.'});return;}_0x1c8751['length']>MAX_NOTIFICATION_ACTIONS&&_0x3d08de[_0x597e73(0x1fb)]({'path':_0x4681ce,'message':_0x597e73(0x200)+MAX_NOTIFICATION_ACTIONS+'\x20actions.'}),_0x1c8751[_0x597e73(0x204)]((_0x36e72b,_0x565559)=>{const _0x554fa3=_0x597e73,_0x5b404f=_0x4681ce+'['+_0x565559+']';if(!isRecord(_0x36e72b)){_0x3d08de[_0x554fa3(0x1fb)]({'path':_0x5b404f,'message':_0x554fa3(0x10d)});return;}const _0x2c37b8=requireNotificationString(_0x36e72b[_0x554fa3(0x1d9)],_0x5b404f+'.text',_0x554fa3(0x20d),_0x3d08de);if(_0x2c37b8)validateNotificationPlaceholders(_0x2c37b8,_0x5b404f+'.text',_0x3d08de);const _0x583bcc=requireNotificationString(_0x36e72b[_0x554fa3(0x185)],_0x5b404f+_0x554fa3(0x121),'Notification\x20action.url\x20is\x20required.',_0x3d08de);if(!_0x583bcc)return;validateNotificationPlaceholders(_0x583bcc,_0x5b404f+_0x554fa3(0x121),_0x3d08de),!/^https?:\/\//i[_0x554fa3(0x240)](_0x583bcc)&&!NOTIFICATION_ACTION_URL_PLACEHOLDER_PATTERN[_0x554fa3(0x240)](_0x583bcc)&&_0x3d08de[_0x554fa3(0x1fb)]({'path':_0x5b404f+_0x554fa3(0x121),'message':'Notification\x20action.url\x20must\x20use\x20http/https\x20or\x20a\x20complete\x20supported\x20placeholder.'});});}function a287_0x4293(){const _0x21d3d6=['assignee.strategy\x20must\x20be\x20FIXED\x20or\x20ROLE.','flowJson.pageMode','duration\x20value\x20must\x20be\x20a\x20positive\x20integer.','flowJson.nodes','number','cc.recipientUserIds\x20must\x20be\x20a\x20non-empty\x20array.','timeout\x20is\x20only\x20supported\x20by\x20APPROVAL\x20node.','EMAIL','PLATFORM_FORM\x20is\x20not\x20supported\x20by\x20this\x20rabetbase\x20version;\x20use\x20INDEPENDENT_FLOW\x20with\x20CUSTOM_PAGE.','Duplicate\x20node\x20id:\x20','interrupting','.assignee.roleId','Notification\x20configCode\x20is\x20required.','\x20is\x20not\x20part\x20of\x20the\x20portable\x20FlowConfig\x20and\x20was\x20removed.','CONTINUE','END','waypoint\x20must\x20contain\x20numeric\x20x\x20and\x20y\x20coordinates.','.pageId','EXECUTE_BFF\x20timeout\x20must\x20not\x20interrupt\x20the\x20approval\x20task.','SINGLE','set','findIndex','.timeout','HANDLE','.configCode','edge\x20target\x20is\x20required.','Accepted\x20as\x20legacy\x20input\x20and\x20removed\x20during\x20normalization;\x20other\x20versions\x20are\x20unsupported.','CONDITION\x20default\x20edge\x20must\x20not\x20define\x20expression.','Notification\x20recipient.value\x20is\x20required.','test','object','config','START','FAIL','DAYS','Unsupported\x20notification\x20version:\x20','value\x20must\x20be\x20an\x20array.','Edge\x20target\x20node\x20not\x20found:\x20','1300504BzVXUe','flowDesc','CUSTOM_PAGE','result','position.','.transferCandidates.strategy','flowType\x20is\x20required.','metadata','.recipients','approval_sys_operationType','.unit','pageMode','configCode','NOTIFICATION','node\x20id\x20must\x20match\x20[A-Za-z_][A-Za-z0-9_]*.','.async.enabled','targetNodeId','pageId\x20must\x20be\x20a\x20non-negative\x20integer.','transferCandidates\x20must\x20be\x20an\x20object.','flowJson','NOTIFICATION\x20node\x20requires\x20config.','entries','startPath\x20must\x20be\x20a\x20non-empty\x20string.','flowCode','enabled','formSchema','flowJson\x20must\x20be\x20an\x20object.','.tmp','overwrite','appCode','isFinite','APPROVAL\x20node\x20requires\x20exactly\x20one\x20REJECTED\x20outgoing\x20edge.','utf8','Unsupported\x20notification\x20placeholder:\x20','\x20facts.','.version','.async.retryInterval','assignee','.config','flowJson.schemaVersion','^[A-Za-z_][A-Za-z0-9_]*$','.name','8DLUkDe','Notification\x20action\x20must\x20be\x20an\x20object.','async','sourceNodeId','startPath\x20applies\x20only\x20to\x20INDEPENDENT_FLOW\x20with\x20CUSTOM_PAGE.','.path','.expression','.cc.readSources','formData','HOURS','userIds','Notification\x20template.','\x20->\x20','USER','.timeout.scriptName','.\x20This\x20CLI\x20supports\x20only\x20','conditionType','position','Notification\x20recipient.type\x20is\x20required.','transferCandidates','AUTO_APPROVE','.url','scriptName','.waypoints[','template','source','Node\x20is\x20not\x20reachable\x20from\x20START.','hasOwnProperty','FlowConfig\x20must\x20be\x20a\x20JSON\x20object.','string','edge\x20must\x20be\x20an\x20object.','ALWAYS','.timeout.enabled','EXECUTE_BFF','SCRIPT','strategy','.template','.sequential','approval.simple-flow.v1','NOTIFICATION\x20node\x20requires\x20template.','Unsupported\x20schemaVersion:\x20','FORM_FLOW','.cc.recipientUserIds','.assignee','SECONDS','Edge\x20source\x20node\x20not\x20found:\x20','node\x20must\x20be\x20an\x20object.','.detailMarkdown','approval_sys_pageId','.assignee.strategy','ROLE\x20assignee\x20requires\x20a\x20positive\x20integer\x20roleId.','node\x20pageId\x20is\x20no\x20longer\x20supported;\x20use\x20node\x20path\x20instead.','node\x20path\x20is\x20supported\x20only\x20on\x20APPROVAL\x20or\x20END\x20nodes.','flowKey','role','replace','REJECTED','Node\x20cannot\x20reach\x20any\x20END.','action','integer','formPermissions','\x20must\x20be\x20a\x20finite\x20number.','Notification\x20recipient.role\x20must\x20be\x20a\x20string.','838461QlYbbb','edges','.cc','FIXED\x20assignee\x20requires\x20userIds.','type','EXPRESSION\x20edge\x20requires\x20expression.','PLATFORM_FORM','.transferCandidates','CONDITION\x20node\x20requires\x20exactly\x20one\x20default\x20outgoing\x20edge.','Node\x20has\x20no\x20incoming\x20edge.','approval_sys_datasetCode','#/$defs/flowNode','stringify','toUpperCase','INDEPENDENT_FLOW\x20cannot\x20bind\x20datasetCode.','sequential','label','Custom\x20form\x20configuration\x20is\x20not\x20supported\x20by\x20this\x20rabetbase\x20version;\x20use\x20a\x20business\x20custom\x20page\x20instead.','\x20was\x20empty\x20and\x20was\x20removed.','unit','parse','node\x20path\x20must\x20be\x20a\x20non-empty\x20string.','approval_sys_','Duplicate\x20value:\x20','title','834sBFOaI','includes','taskMode','\x20value\x20and\x20was\x20removed\x20from\x20the\x20portable\x20FlowConfig.','add','value','Default\x20cc\x20is\x20only\x20supported\x20by\x20APPROVAL\x20or\x20END\x20node.','.timeout.duration','length','cc\x20recipient\x20userId\x20must\x20be\x20a\x20non-empty\x20string.','startsWith','facts','legacy_field_removed','A\x20default\x20flow\x20must\x20use\x20conditionType\x20ALWAYS.','MINUTES','.async','#/$defs/userId','sequential\x20must\x20be\x20a\x20boolean.','isInteger','waypoints','Approval\x20flow\x20requires\x20an\x20END\x20node\x20with\x20result\x20','SCRIPT\x20node\x20requires\x20scriptName.','flowJson.startPath','Every\x20node\x20requires\x20position.x\x20and\x20position.y.','AUTO_REJECT','pageMode\x20applies\x20only\x20to\x20INDEPENDENT_FLOW.','filter','CONDITION\x20non-default\x20edge\x20requires\x20a\x20non-empty\x20expression.','91820OHPDbR','.value','27eRBqva','SCRIPT\x20async\x20retryCount\x20must\x20be\x20between\x201\x20and\x20','APPROVAL\x20node\x20requires\x20exactly\x20one\x20APPROVED\x20outgoing\x20edge.','url','isArray','.failurePolicy','keys','call','slice','has','FIXED','flowJson.nodes[','scriptResult','\x20timeout\x20must\x20interrupt\x20the\x20approval\x20task.','flowName\x20is\x20required.','duration','prototype','flowJson.edges','cc.recipientUserIds\x20supports\x20at\x20most\x20','.transferCandidates.userIds','APPROVAL','target','449330LvaQYR','async\x20execution\x20is\x20only\x20supported\x20by\x20SCRIPT\x20node.','.resultVariable','].path','pageId','map','async\x20must\x20be\x20an\x20object.','resultVariable\x20must\x20match\x20[A-Za-z_][A-Za-z0-9_]*.','Notification\x20recipient\x20must\x20be\x20an\x20object.','.assignee.userIds','approval_sys_appCode','1963398EdPrEq','.source','edge\x20id\x20must\x20match\x20[A-Za-z_][A-Za-z0-9_]*.','version','^[1-9][0-9]*$','visible','node\x20path\x20applies\x20only\x20to\x20INDEPENDENT_FLOW\x20with\x20CUSTOM_PAGE.','defaultFlow','Notification\x20recipient.role\x20must\x20be\x20TO,\x20CC,\x20or\x20BCC.','recipients','Reserved\x20resultVariable:\x20','isSafeInteger','APPROVAL\x20task\x20decision\x20edges\x20must\x20not\x20be\x20default\x20flows.','.actions','APPROVAL\x20node\x20requires\x20assignee.','CONDITION','duration\x20requires\x20value\x20and\x20unit.','actions','approval_sys_processInstanceId','flowJson.','FIXED\x20transferCandidates\x20requires\x20non-empty\x20userIds.','.facts','\x20must\x20be\x20a\x20finite\x20number\x20greater\x20than\x20or\x20equal\x20to\x200.','array','Notification\x20template.detailMarkdown\x20must\x20be\x20a\x20string.','failurePolicy','INDEPENDENT_FLOW','flowJson.edges[','detailMarkdown','transferCandidates\x20currently\x20supports\x20FIXED\x20only.','nodes','4933435CuuAxv','CONDITION\x20default\x20edge\x20must\x20use\x20conditionType\x20ALWAYS.','catch','recipientUserIds','context','.target','datasetCode\x20must\x20be\x20a\x20string.','.timeout.interrupting','flowDesc\x20must\x20be\x20a\x20string.','roleId','.cc.recipientUserIds[','ALL','path','.assignee.userIds[','.cc.visible','ROLE','A\x20default\x20flow\x20must\x20not\x20have\x20an\x20expression.','SINGLE\x20approval\x20supports\x20only\x20one\x20fixed\x20user.','flowName','BCC','#/$defs/timeAmount','EXECUTE_BFF\x20timeout\x20requires\x20scriptName.','resultVariable','text','warnings','boolean','startPageId','trim','EXPRESSION','.waypoints','APPROVED','Duplicate\x20resultVariable:\x20','Explicit\x20notification\x20recipients\x20require\x20at\x20least\x20one\x20TO.','get','HANDLE\x20task\x20requires\x20exactly\x20one\x20outgoing\x20edge.','name','.taskMode','Notification\x20template.facts\x20must\x20be\x20an\x20array.','templateName','some','duration\x20unit\x20must\x20be\x20SECONDS,\x20MINUTES,\x20HOURS,\x20or\x20DAYS.','approval_sys_initiatorUserId','schemaVersion','Unsupported\x20node\x20type:\x20','2343cslewx','.transferCandidates.userIds[','datasetCode','START\x20node\x20must\x20not\x20have\x20incoming\x20edges.','edge\x20source\x20is\x20required.','14399EImkSW','Notification\x20version\x20must\x20be\x20a\x20string.','.defaultFlow','fixed\x20assignee\x20userId\x20must\x20be\x20a\x20non-empty\x20string\x20or\x20positive\x20integer.','.id','nodes\x20must\x20be\x20an\x20array.','.timeout.action','.role','push','APPROVAL\x20node\x20outgoing\x20edges\x20must\x20use\x20APPROVED\x20or\x20REJECTED.','CONDITION\x20non-default\x20edge\x20must\x20use\x20conditionType\x20EXPRESSION.','pid','HANDLE\x20task\x20outgoing\x20edge\x20must\x20use\x20ALWAYS\x20without\x20defaultFlow\x20or\x20expression.','Notification\x20template\x20supports\x20at\x20most\x20','expression','.conditionType','approval_sys_dataId','forEach','message','waypoint.','summary','.position.','timeout.enabled\x20must\x20be\x20a\x20boolean.','.type','NaN','startPath','Notification\x20action.text\x20is\x20required.','formDefinitions','flowJson.nodes.','flowType','\x20was\x20empty\x20or\x20used\x20the\x20default\x20','Expression\x20references\x20SCRIPT\x20resultVariable\x20','Notification\x20fact.','Notification\x20text\x20contains\x20a\x20malformed\x20placeholder.','failurePolicy\x20must\x20be\x20CONTINUE\x20or\x20FAIL.','Unsupported\x20flowType:\x20','Notification\x20fact\x20must\x20be\x20an\x20object.','bindDatasetCode','.position','failurePolicy\x20must\x20be\x20a\x20string.','transfer\x20candidate\x20userId\x20must\x20be\x20a\x20non-empty\x20string\x20or\x20positive\x20integer.','https://json-schema.org/draft/2020-12/schema','size','Unsupported\x20pageMode:\x20','value\x20must\x20be\x20a\x20non-empty\x20string.','Unsupported\x20approval\x20mode:\x20','timeout.interrupting\x20must\x20be\x20a\x20boolean.','timeout'];a287_0x4293=function(){return _0x21d3d6;};return a287_0x4293();}function validateNotificationRecipients(_0x1f2a50,_0x59ffba,_0x50da0d){const _0xd52054=a287_0x42ed67;if(_0x1f2a50===undefined||_0x1f2a50===null)return;if(!Array[_0xd52054(0x186)](_0x1f2a50)){_0x50da0d[_0xd52054(0x1fb)]({'path':_0x59ffba,'message':'Notification\x20recipients\x20must\x20be\x20an\x20array.'});return;}let _0x15c3d4=![];_0x1f2a50[_0xd52054(0x204)]((_0x324d87,_0x458dfd)=>{const _0xb075c6=_0xd52054,_0x18c5f1=_0x59ffba+'['+_0x458dfd+']';if(!isRecord(_0x324d87)){_0x50da0d[_0xb075c6(0x1fb)]({'path':_0x18c5f1,'message':_0xb075c6(0x1a0)});return;}const _0x2a786f=requireNotificationString(_0x324d87[_0xb075c6(0x14f)],_0x18c5f1+_0xb075c6(0x20a),_0xb075c6(0x11e),_0x50da0d);_0x2a786f&&!NOTIFICATION_RECIPIENT_TYPES[_0xb075c6(0x18b)](_0x2a786f[_0xb075c6(0x158)]())&&_0x50da0d[_0xb075c6(0x1fb)]({'path':_0x18c5f1+'.type','message':'Notification\x20recipient.type\x20must\x20be\x20USER,\x20ROLE,\x20or\x20EMAIL.'});let _0x1ae413='TO';_0x324d87[_0xb075c6(0x142)]!==undefined&&_0x324d87[_0xb075c6(0x142)]!==null&&(typeof _0x324d87['role']!=='string'?(_0x50da0d[_0xb075c6(0x1fb)]({'path':_0x18c5f1+'.role','message':_0xb075c6(0x14a)}),_0x1ae413=''):(_0x1ae413=_0x324d87[_0xb075c6(0x142)]['trim']()[_0xb075c6(0x158)](),!NOTIFICATION_RECIPIENT_ROLES[_0xb075c6(0x18b)](_0x1ae413)&&_0x50da0d[_0xb075c6(0x1fb)]({'path':_0x18c5f1+_0xb075c6(0x1fa),'message':_0xb075c6(0x1ab)})));if(_0x1ae413==='TO')_0x15c3d4=!![];const _0x412e03=requireNotificationString(_0x324d87[_0xb075c6(0x169)],_0x18c5f1+'.value',_0xb075c6(0x23f),_0x50da0d);_0x412e03&&validateNotificationPlaceholders(_0x412e03,_0x18c5f1+'.value',_0x50da0d);}),_0x1f2a50[_0xd52054(0x16c)]>0x0&&!_0x15c3d4&&_0x50da0d[_0xd52054(0x1fb)]({'path':_0x59ffba,'message':_0xd52054(0x1e2)});}function requireNotificationString(_0x1af8ec,_0x55d4e1,_0xa64955,_0x491430){const _0xb74828=a287_0x42ed67;if(typeof _0x1af8ec!=='string'||_0x1af8ec['trim']()==='')return _0x491430[_0xb74828(0x1fb)]({'path':_0x55d4e1,'message':_0xa64955}),undefined;return _0x1af8ec[_0xb74828(0x1dd)]();}function validateNotificationPlaceholders(_0x1f1def,_0x3bff26,_0x3c61f9){const _0x152cf6=a287_0x42ed67;for(const _0x320068 of _0x1f1def['matchAll'](NOTIFICATION_PLACEHOLDER_PATTERN)){const _0xfee8e=_0x320068[0x1]?.[_0x152cf6(0x1dd)]()??'',_0x58786f=_0xfee8e['indexOf']('.'),_0x3a282b=_0x58786f>=0x0?_0xfee8e[_0x152cf6(0x18a)](0x0,_0x58786f):_0xfee8e,_0x36d8bb=_0x58786f>=0x0?_0xfee8e[_0x152cf6(0x18a)](_0x58786f+0x1)['trim']():'';(!['event',_0x152cf6(0x1c6),'variables'][_0x152cf6(0x165)](_0x3a282b)||_0x36d8bb==='')&&_0x3c61f9['push']({'path':_0x3bff26,'message':_0x152cf6(0x103)+_0x320068[0x0]+'.'});}_0x1f1def[_0x152cf6(0x143)](NOTIFICATION_PLACEHOLDER_PATTERN,'')[_0x152cf6(0x165)]('${')&&_0x3c61f9[_0x152cf6(0x1fb)]({'path':_0x3bff26,'message':_0x152cf6(0x214)});}function validateEdge(_0x45e9aa,_0xd0dc00,_0x244315){const _0x248443=a287_0x42ed67;_0x45e9aa[_0x248443(0x1e5)]!==undefined&&typeof _0x45e9aa['name']!==_0x248443(0x129)&&_0x244315[_0x248443(0x1fb)]({'path':_0xd0dc00+_0x248443(0x10b),'message':'edge\x20name\x20must\x20be\x20a\x20string.'}),_0x45e9aa['defaultFlow']!==undefined&&typeof _0x45e9aa['defaultFlow']!=='boolean'&&_0x244315[_0x248443(0x1fb)]({'path':_0xd0dc00+_0x248443(0x1f5),'message':'defaultFlow\x20must\x20be\x20a\x20boolean.'}),_0x45e9aa[_0x248443(0x177)]!==undefined&&(!Array[_0x248443(0x186)](_0x45e9aa[_0x248443(0x177)])?_0x244315[_0x248443(0x1fb)]({'path':_0xd0dc00+_0x248443(0x1df),'message':'waypoints\x20must\x20be\x20an\x20array.'}):_0x45e9aa[_0x248443(0x177)][_0x248443(0x204)]((_0x479e28,_0x349615)=>{const _0x3cc128=_0x248443;if(!isRecord(_0x479e28)){_0x244315[_0x3cc128(0x1fb)]({'path':_0xd0dc00+_0x3cc128(0x123)+_0x349615+']','message':_0x3cc128(0x233)});return;}for(const _0x4a0754 of['x','y']){const _0x4c709b=_0x479e28[_0x4a0754];(typeof _0x4c709b!==_0x3cc128(0x227)||!Number[_0x3cc128(0x100)](_0x4c709b))&&_0x244315[_0x3cc128(0x1fb)]({'path':_0xd0dc00+_0x3cc128(0x123)+_0x349615+'].'+_0x4a0754,'message':_0x3cc128(0x206)+_0x4a0754+_0x3cc128(0x149)});}})),_0x45e9aa[_0x248443(0x11c)]!==undefined&&!CONDITION_TYPES['has'](_0x45e9aa[_0x248443(0x11c)])&&_0x244315['push']({'path':_0xd0dc00+_0x248443(0x202),'message':'Unsupported\x20condition\x20type:\x20'+String(_0x45e9aa[_0x248443(0x11c)])+'.'}),_0x45e9aa[_0x248443(0x11c)]==='EXPRESSION'&&(typeof _0x45e9aa[_0x248443(0x201)]!==_0x248443(0x129)||_0x45e9aa[_0x248443(0x201)]['trim']()==='')&&_0x244315[_0x248443(0x1fb)]({'path':_0xd0dc00+_0x248443(0x112),'message':_0x248443(0x150)}),_0x45e9aa[_0x248443(0x1aa)]===!![]&&_0x45e9aa['conditionType']!==_0x248443(0x12b)&&_0x244315[_0x248443(0x1fb)]({'path':_0xd0dc00+_0x248443(0x1f5),'message':_0x248443(0x171)}),_0x45e9aa[_0x248443(0x1aa)]===!![]&&typeof _0x45e9aa['expression']===_0x248443(0x129)&&_0x45e9aa[_0x248443(0x201)][_0x248443(0x1dd)]()!==''&&_0x244315[_0x248443(0x1fb)]({'path':_0xd0dc00+'.expression','message':_0x248443(0x1d2)});}function validateGraphShape(_0x8c733,_0x2fa3d9,_0x3ba089,_0x5cdf9f,_0x139585,_0x418542,_0x2863e6){const _0x183717=a287_0x42ed67;for(const [_0x40d866,_0x1177e8]of _0x8c733){const _0x2faa9c=_0x139585['get'](_0x40d866)??[],_0x32014f=_0x5cdf9f['get'](_0x40d866)??[];_0x1177e8['type']!==_0x183717(0x243)&&_0x2faa9c['length']===0x0&&_0x2863e6['push']({'path':_0x183717(0x20f)+_0x40d866,'message':_0x183717(0x154)});_0x1177e8[_0x183717(0x14f)]!=='END'&&_0x32014f[_0x183717(0x16c)]===0x0&&_0x2863e6['push']({'path':'flowJson.nodes.'+_0x40d866,'message':'Node\x20has\x20no\x20outgoing\x20edge.'});_0x1177e8[_0x183717(0x14f)]===_0x183717(0x243)&&_0x2faa9c['length']>0x0&&_0x2863e6[_0x183717(0x1fb)]({'path':_0x183717(0x20f)+_0x40d866,'message':_0x183717(0x1f1)});_0x1177e8[_0x183717(0x14f)]===_0x183717(0x232)&&_0x32014f[_0x183717(0x16c)]>0x0&&_0x2863e6[_0x183717(0x1fb)]({'path':_0x183717(0x20f)+_0x40d866,'message':'END\x20node\x20must\x20not\x20have\x20outgoing\x20edges.'});if(_0x1177e8[_0x183717(0x14f)]==='CONDITION'){_0x32014f[_0x183717(0x16c)]<0x2&&_0x2863e6[_0x183717(0x1fb)]({'path':'flowJson.nodes.'+_0x40d866,'message':'CONDITION\x20node\x20requires\x20at\x20least\x20two\x20outgoing\x20edges.'});const _0x1a420b=_0x32014f['filter'](_0x4669f6=>_0x4669f6[_0x183717(0x1aa)]===!![]);_0x1a420b[_0x183717(0x16c)]!==0x1&&_0x2863e6[_0x183717(0x1fb)]({'path':_0x183717(0x20f)+_0x40d866,'message':_0x183717(0x153)});if(_0x1a420b[_0x183717(0x16c)]===0x1){const _0xef9c28=_0x1a420b[0x0],_0x94c4fe=_0x418542['get'](_0xef9c28)??_0x183717(0x193);_0xef9c28[_0x183717(0x11c)]!==_0x183717(0x12b)&&_0x2863e6['push']({'path':_0x94c4fe+'.conditionType','message':_0x183717(0x1c3)});_0xef9c28[_0x183717(0x201)]!==undefined&&_0x2863e6['push']({'path':_0x94c4fe+_0x183717(0x112),'message':_0x183717(0x23e)});for(const _0x5be15f of _0x32014f){if(_0x5be15f===_0xef9c28)continue;const _0x436c82=_0x418542['get'](_0x5be15f)??_0x183717(0x193);if(_0x5be15f[_0x183717(0x11c)]!=='EXPRESSION')_0x2863e6['push']({'path':_0x436c82+'.conditionType','message':_0x183717(0x1fd)});else(typeof _0x5be15f['expression']!==_0x183717(0x129)||_0x5be15f[_0x183717(0x201)][_0x183717(0x1dd)]()==='')&&_0x2863e6['push']({'path':_0x436c82+_0x183717(0x112),'message':_0x183717(0x17f)});}}}if(_0x1177e8[_0x183717(0x14f)]===_0x183717(0x196)&&(_0x1177e8[_0x183717(0x166)]??_0x183717(0x196))===_0x183717(0x23a)){if(_0x32014f[_0x183717(0x16c)]!==0x1)_0x2863e6[_0x183717(0x1fb)]({'path':_0x183717(0x20f)+_0x40d866,'message':_0x183717(0x1e4)});else{const _0x2ea0a0=_0x32014f[0x0];((_0x2ea0a0[_0x183717(0x11c)]??_0x183717(0x12b))!==_0x183717(0x12b)||_0x2ea0a0['defaultFlow']===!![]||typeof _0x2ea0a0[_0x183717(0x201)]===_0x183717(0x129)&&_0x2ea0a0['expression']['trim']()!=='')&&_0x2863e6[_0x183717(0x1fb)]({'path':_0x418542['get'](_0x2ea0a0)??_0x183717(0x193),'message':_0x183717(0x1ff)});}}else{if(_0x1177e8[_0x183717(0x14f)]===_0x183717(0x196)){const _0xedd219=_0x32014f[_0x183717(0x19d)](_0x27baa8=>_0x27baa8[_0x183717(0x11c)]??'ALWAYS'),_0x2fe32e=_0xedd219[_0x183717(0x17e)](_0xe7e243=>_0xe7e243!==_0x183717(0x1e0)&&_0xe7e243!==_0x183717(0x144));_0x2fe32e[_0x183717(0x16c)]>0x0&&_0x2863e6[_0x183717(0x1fb)]({'path':_0x183717(0x20f)+_0x40d866,'message':_0x183717(0x1fc)}),_0xedd219[_0x183717(0x17e)](_0xee2c14=>_0xee2c14===_0x183717(0x1e0))[_0x183717(0x16c)]!==0x1&&_0x2863e6[_0x183717(0x1fb)]({'path':_0x183717(0x20f)+_0x40d866,'message':_0x183717(0x184)}),_0xedd219['filter'](_0x38bcd3=>_0x38bcd3===_0x183717(0x144))[_0x183717(0x16c)]!==0x1&&_0x2863e6['push']({'path':'flowJson.nodes.'+_0x40d866,'message':_0x183717(0x101)}),_0x32014f[_0x183717(0x1e9)](_0x40ea44=>_0x40ea44['defaultFlow']===!![])&&_0x2863e6[_0x183717(0x1fb)]({'path':_0x183717(0x20f)+_0x40d866,'message':_0x183717(0x1af)});}}}const _0x39d4f8=new Set(),_0xda4d2a=_0x40eaf9=>{const _0x560676=_0x183717;if(_0x39d4f8[_0x560676(0x18b)](_0x40eaf9))return;_0x39d4f8['add'](_0x40eaf9);for(const _0x2298f6 of _0x5cdf9f[_0x560676(0x1e3)](_0x40eaf9)??[]){const _0x88bf39=resolveEdgeEndpoint(_0x2298f6['target'],_0x2298f6[_0x560676(0x259)]);if(_0x88bf39&&_0x8c733['has'](_0x88bf39))_0xda4d2a(_0x88bf39);}};_0xda4d2a(_0x2fa3d9);for(const _0x46df7a of _0x8c733[_0x183717(0x188)]()){!_0x39d4f8[_0x183717(0x18b)](_0x46df7a)&&_0x2863e6[_0x183717(0x1fb)]({'path':_0x183717(0x20f)+_0x46df7a,'message':_0x183717(0x126)});}const _0x53c7a9=_0x3ba089[_0x183717(0x1e9)](_0x439c20=>_0x39d4f8[_0x183717(0x18b)](_0x439c20));if(!_0x53c7a9){_0x2863e6[_0x183717(0x1fb)]({'path':'flowJson.edges','message':'No\x20END\x20node\x20is\x20reachable\x20from\x20START.'});return;}const _0x2ed5ac=new Set(),_0x10d968=_0x48d1d0=>{const _0x157245=_0x183717;if(_0x2ed5ac[_0x157245(0x18b)](_0x48d1d0))return;_0x2ed5ac['add'](_0x48d1d0);for(const _0x5ef43d of _0x139585[_0x157245(0x1e3)](_0x48d1d0)??[]){const _0x6f6f97=resolveEdgeEndpoint(_0x5ef43d['source'],_0x5ef43d[_0x157245(0x10f)]);if(_0x6f6f97&&_0x8c733[_0x157245(0x18b)](_0x6f6f97))_0x10d968(_0x6f6f97);}};for(const _0x285593 of _0x3ba089){if(_0x8c733[_0x183717(0x18b)](_0x285593))_0x10d968(_0x285593);}for(const _0x2000a6 of _0x39d4f8){!_0x2ed5ac['has'](_0x2000a6)&&_0x2863e6[_0x183717(0x1fb)]({'path':'flowJson.nodes.'+_0x2000a6,'message':_0x183717(0x145)});}}function validateApprovalResults(_0x12c17c,_0x1a3082,_0x2f6ca6,_0x5995e2){const _0x2d26bc=a287_0x42ed67;if(_0x1a3082===0x0)return;const _0x2058f8=new Set(_0x2f6ca6[_0x2d26bc(0x19d)](_0x511a62=>_0x12c17c[_0x2d26bc(0x1e3)](_0x511a62)?.[_0x2d26bc(0x24c)])[_0x2d26bc(0x17e)](_0x24e42e=>typeof _0x24e42e===_0x2d26bc(0x129)));for(const _0x2389e6 of[_0x2d26bc(0x1e0),_0x2d26bc(0x144)]){!_0x2058f8[_0x2d26bc(0x18b)](_0x2389e6)&&_0x5995e2['push']({'path':_0x2d26bc(0x226),'message':_0x2d26bc(0x178)+_0x2389e6+'.'});}}function validateScriptResultReferences(_0x1f984d,_0x286519,_0x24d302,_0x46e11e,_0x298619,_0xcadf79,_0x469838){const _0x506e0b=a287_0x42ed67;if(_0xcadf79['size']===0x0)return;const _0x3220f1=new Set(),_0x2305b6=_0x340023=>{const _0x4f2a3d=a287_0x2794;if(!_0x3220f1['has'](_0x340023)&&_0x1f984d[_0x4f2a3d(0x18b)](_0x340023)){_0x3220f1['add'](_0x340023);for(const _0x37c415 of _0x24d302['get'](_0x340023)??[]){const _0x48de67=resolveEdgeEndpoint(_0x37c415[_0x4f2a3d(0x197)],_0x37c415[_0x4f2a3d(0x259)]);if(_0x48de67)_0x2305b6(_0x48de67);}}};_0x2305b6(_0x286519);const _0x28931b=new Map();for(const _0x13a022 of _0x3220f1){_0x28931b[_0x506e0b(0x237)](_0x13a022,_0x13a022===_0x286519?new Set([_0x286519]):new Set(_0x3220f1));}let _0x21e0e7=!![];while(_0x21e0e7){_0x21e0e7=![];for(const _0x2c7c25 of _0x3220f1){if(_0x2c7c25===_0x286519)continue;const _0x4ce30a=(_0x46e11e[_0x506e0b(0x1e3)](_0x2c7c25)??[])[_0x506e0b(0x19d)](_0x3391bd=>resolveEdgeEndpoint(_0x3391bd[_0x506e0b(0x125)],_0x3391bd[_0x506e0b(0x10f)]))['filter'](_0x1c3bfd=>Boolean(_0x1c3bfd&&_0x3220f1[_0x506e0b(0x18b)](_0x1c3bfd)));if(_0x4ce30a[_0x506e0b(0x16c)]===0x0)continue;const _0x3c6e90=new Set(_0x28931b[_0x506e0b(0x1e3)](_0x4ce30a[0x0])??[]);for(const _0x5de646 of _0x4ce30a['slice'](0x1)){const _0x51c8b5=_0x28931b[_0x506e0b(0x1e3)](_0x5de646)??new Set();for(const _0x59a251 of _0x3c6e90){if(!_0x51c8b5[_0x506e0b(0x18b)](_0x59a251))_0x3c6e90['delete'](_0x59a251);}}_0x3c6e90[_0x506e0b(0x168)](_0x2c7c25);const _0x30b9ae=_0x28931b['get'](_0x2c7c25);!setsEqual(_0x30b9ae,_0x3c6e90)&&(_0x28931b['set'](_0x2c7c25,_0x3c6e90),_0x21e0e7=!![]);}}for(const [_0x178fa9,_0x1f005b]of _0x24d302){const _0x5b69d8=_0x28931b['get'](_0x178fa9);if(!_0x5b69d8)continue;for(const _0x37fe6 of _0x1f005b){if(_0x37fe6['conditionType']!==_0x506e0b(0x1de)||typeof _0x37fe6[_0x506e0b(0x201)]!==_0x506e0b(0x129))continue;for(const [_0x2f7f72,_0x26a5c1]of _0xcadf79){expressionReferencesVariable(_0x37fe6['expression'],_0x2f7f72)&&!_0x5b69d8[_0x506e0b(0x18b)](_0x26a5c1)&&_0x469838[_0x506e0b(0x1fb)]({'path':(_0x298619[_0x506e0b(0x1e3)](_0x37fe6)??_0x506e0b(0x193))+'.expression','message':_0x506e0b(0x212)+_0x2f7f72+',\x20but\x20node\x20'+_0x26a5c1+'\x20is\x20not\x20on\x20every\x20upstream\x20path\x20to\x20'+_0x178fa9+'.'});}}}}function a287_0x2794(_0x1ecf13,_0x540b67){_0x1ecf13=_0x1ecf13-0xfa;const _0x429382=a287_0x4293();let _0x279430=_0x429382[_0x1ecf13];return _0x279430;}function expressionReferencesVariable(_0x24271d,_0x2f0491){const _0x3f3764=a287_0x42ed67;let _0xb32e21=0x0;while(_0xb32e21<_0x24271d[_0x3f3764(0x16c)]){const _0x281fff=_0x24271d[_0xb32e21];if(_0x281fff==='\x27'||_0x281fff==='\x22'){_0xb32e21=skipQuotedExpressionSegment(_0x24271d,_0xb32e21,_0x281fff);continue;}if(!/[A-Za-z_]/[_0x3f3764(0x240)](_0x281fff)){_0xb32e21+=0x1;continue;}const _0x4a1d9f=_0xb32e21;_0xb32e21+=0x1;while(_0xb32e21<_0x24271d[_0x3f3764(0x16c)]&&/[A-Za-z0-9_]/['test'](_0x24271d[_0xb32e21])){_0xb32e21+=0x1;}if(_0x24271d['slice'](_0x4a1d9f,_0xb32e21)!==_0x2f0491)continue;let _0x3e6d83=_0x4a1d9f-0x1;while(_0x3e6d83>=0x0&&/\s/['test'](_0x24271d[_0x3e6d83])){_0x3e6d83-=0x1;}if(_0x24271d[_0x3e6d83]!=='.')return!![];}return![];}function skipQuotedExpressionSegment(_0x5528e3,_0x31060f,_0x26e604){const _0x33f1ec=a287_0x42ed67;let _0x33cb75=_0x31060f+0x1;while(_0x33cb75<_0x5528e3[_0x33f1ec(0x16c)]){if(_0x5528e3[_0x33cb75]==='\x5c'){_0x33cb75+=0x2;continue;}if(_0x5528e3[_0x33cb75]===_0x26e604)return _0x33cb75+0x1;_0x33cb75+=0x1;}return _0x33cb75;}function resolveEffectiveResultVariable(_0x48525f,_0x48ce4e){const _0xd596ff=a287_0x42ed67;if(_0x48525f===undefined||_0x48525f===null||_0x48ce4e&&_0x48525f==='')return DEFAULT_SCRIPT_RESULT_VARIABLE;if(typeof _0x48525f!==_0xd596ff(0x129)||!VARIABLE_PATTERN['test'](_0x48525f)||RESERVED_RESULT_VARIABLES['has'](_0x48525f)||_0x48525f[_0xd596ff(0x16e)]('approval_sys_'))return undefined;return _0x48525f;}function registerResultVariableOwner(_0x1adfbe,_0x2d7327,_0x16ddb1,_0x59e6c6){const _0x142222=a287_0x42ed67;if(_0x1adfbe[_0x142222(0x18b)](_0x2d7327)){_0x59e6c6[_0x142222(0x1fb)]({'path':'flowJson.nodes','message':_0x142222(0x1e1)+_0x2d7327+'.'});return;}_0x1adfbe[_0x142222(0x237)](_0x2d7327,_0x16ddb1);}function setsEqual(_0x195c40,_0x348a21){const _0x4ca7b2=a287_0x42ed67;return _0x195c40[_0x4ca7b2(0x21d)]===_0x348a21[_0x4ca7b2(0x21d)]&&[..._0x195c40]['every'](_0x56107e=>_0x348a21['has'](_0x56107e));}function isValidUserId(_0x34a972){const _0x2ad2b7=a287_0x42ed67;if(typeof _0x34a972===_0x2ad2b7(0x129))return _0x34a972[_0x2ad2b7(0x1dd)]()['length']>0x0;return Number[_0x2ad2b7(0x1ae)](_0x34a972)&&Number(_0x34a972)>0x0;}function resolveEdgeEndpoint(_0xb3cac,_0x42902a){const _0x3884ef=a287_0x42ed67;if(typeof _0xb3cac===_0x3884ef(0x129)&&_0xb3cac[_0x3884ef(0x1dd)]())return _0xb3cac[_0x3884ef(0x1dd)]();if(typeof _0x42902a==='string'&&_0x42902a[_0x3884ef(0x1dd)]())return _0x42902a[_0x3884ef(0x1dd)]();return undefined;}function removeEmptyMetadata(_0x551e3e,_0x320be7,_0x57d9e3,_0x2bd202){const _0x2dc2a7=a287_0x42ed67;if(Array[_0x2dc2a7(0x186)](_0x551e3e)){_0x551e3e['forEach']((_0x4fe9c7,_0xa47a0)=>removeEmptyMetadata(_0x4fe9c7,_0x320be7+'['+_0xa47a0+']',_0x57d9e3,_0x2bd202));return;}if(!isRecord(_0x551e3e))return;for(const [_0x5d7098,_0x562482]of Object[_0x2dc2a7(0x25e)](_0x551e3e)){const _0x160b0f=_0x320be7+'.'+_0x5d7098;if(_0x5d7098===_0x2dc2a7(0x250)&&isEmptyJsonValue(_0x562482)){delete _0x551e3e[_0x5d7098],_0x2bd202['push'](_0x160b0f),_0x57d9e3[_0x2dc2a7(0x1fb)]({'code':'empty_metadata_removed','path':_0x160b0f,'message':_0x160b0f+_0x2dc2a7(0x15d)});continue;}removeEmptyMetadata(_0x562482,_0x160b0f,_0x57d9e3,_0x2bd202);}}function isEmptyJsonValue(_0x5ee825){const _0x3e7f2a=a287_0x42ed67;if(_0x5ee825===null||_0x5ee825===undefined)return!![];if(typeof _0x5ee825===_0x3e7f2a(0x129))return _0x5ee825[_0x3e7f2a(0x1dd)]()==='';if(Array[_0x3e7f2a(0x186)](_0x5ee825))return _0x5ee825['length']===0x0;return isRecord(_0x5ee825)&&Object[_0x3e7f2a(0x188)](_0x5ee825)[_0x3e7f2a(0x16c)]===0x0;}function isRecord(_0x5b123b){const _0x2d4f2f=a287_0x42ed67;return typeof _0x5b123b===_0x2d4f2f(0x241)&&_0x5b123b!==null&&!Array[_0x2d4f2f(0x186)](_0x5b123b);}function cloneJsonValue(_0x127a49){const _0x58f05d=a287_0x42ed67;return JSON[_0x58f05d(0x15f)](JSON[_0x58f05d(0x157)](_0x127a49));}export async function readFlowConfigFile(_0x1c7247){const _0x437ca8=await readFile(resolve(_0x1c7247),'utf8');return JSON['parse'](_0x437ca8);}
1
+ const a287_0x8cf25c=a287_0x3c35;(function(_0x2514b3,_0x2a1707){const _0xaff9c8=a287_0x3c35,_0x4a3b54=_0x2514b3();while(!![]){try{const _0x26d730=-parseInt(_0xaff9c8(0x2f0))/0x1*(parseInt(_0xaff9c8(0x1d4))/0x2)+parseInt(_0xaff9c8(0x290))/0x3*(-parseInt(_0xaff9c8(0x2d0))/0x4)+parseInt(_0xaff9c8(0x30b))/0x5*(parseInt(_0xaff9c8(0x1c1))/0x6)+parseInt(_0xaff9c8(0x259))/0x7*(-parseInt(_0xaff9c8(0x1b7))/0x8)+parseInt(_0xaff9c8(0x257))/0x9+-parseInt(_0xaff9c8(0x2a8))/0xa+parseInt(_0xaff9c8(0x233))/0xb;if(_0x26d730===_0x2a1707)break;else _0x4a3b54['push'](_0x4a3b54['shift']());}catch(_0x25912b){_0x4a3b54['push'](_0x4a3b54['shift']());}}}(a287_0x182b,0x88390));import{randomUUID}from'node:crypto';import{chmod,link,readFile,rename,stat,unlink,writeFile}from'node:fs/promises';import{resolve}from'node:path';export const FLOW_CONFIG_JSON_SCHEMA={'$schema':a287_0x8cf25c(0x207),'$id':a287_0x8cf25c(0x31f),'title':a287_0x8cf25c(0x1c8),'type':a287_0x8cf25c(0x2c7),'required':[a287_0x8cf25c(0x1fa),a287_0x8cf25c(0x286),a287_0x8cf25c(0x2fb)],'$defs':{'userId':{'anyOf':[{'type':a287_0x8cf25c(0x1da),'minLength':0x1},{'type':a287_0x8cf25c(0x245),'minimum':0x1}]},'position':{'type':a287_0x8cf25c(0x2c7),'required':['x','y'],'properties':{'x':{'type':a287_0x8cf25c(0x22f),'minimum':0x0},'y':{'type':'number','minimum':0x0}},'additionalProperties':!![]},'timeAmount':{'type':a287_0x8cf25c(0x2c7),'required':[a287_0x8cf25c(0x1c0),'unit'],'properties':{'value':{'type':a287_0x8cf25c(0x245),'minimum':0x1},'unit':{'enum':[a287_0x8cf25c(0x2d9),a287_0x8cf25c(0x31b),a287_0x8cf25c(0x254),'DAYS']}},'additionalProperties':!![]},'flowNode':{'type':a287_0x8cf25c(0x2c7),'required':['id','type','name','position'],'properties':{'id':{'type':a287_0x8cf25c(0x1da),'pattern':a287_0x8cf25c(0x2a3)},'type':{'enum':['START',a287_0x8cf25c(0x20c),a287_0x8cf25c(0x307),a287_0x8cf25c(0x300),a287_0x8cf25c(0x1df),a287_0x8cf25c(0x2ea)]},'name':{'type':'string','minLength':0x1},'path':{'type':a287_0x8cf25c(0x1da),'minLength':0x1},'position':{'$ref':a287_0x8cf25c(0x241)},'approvalMode':{'enum':[a287_0x8cf25c(0x2e2),'ALL',a287_0x8cf25c(0x288)]},'taskMode':{'enum':['APPROVAL','HANDLE']},'assignee':{'type':'object','required':['strategy'],'properties':{'strategy':{'enum':['FIXED',a287_0x8cf25c(0x278)]},'userIds':{'type':a287_0x8cf25c(0x2db),'minItems':0x1,'items':{'$ref':a287_0x8cf25c(0x1f8)}},'roleId':{'anyOf':[{'type':'integer','minimum':0x1},{'type':a287_0x8cf25c(0x1da),'pattern':a287_0x8cf25c(0x211)}]}},'additionalProperties':!![]},'transferCandidates':{'type':a287_0x8cf25c(0x2c7),'required':[a287_0x8cf25c(0x2f6),a287_0x8cf25c(0x1d7)],'properties':{'strategy':{'const':a287_0x8cf25c(0x309)},'userIds':{'type':a287_0x8cf25c(0x2db),'minItems':0x1,'items':{'$ref':'#/$defs/userId'}}},'additionalProperties':!![]},'sequential':{'type':a287_0x8cf25c(0x1e4)},'result':{'enum':[a287_0x8cf25c(0x253),a287_0x8cf25c(0x2cf)]},'scriptName':{'type':a287_0x8cf25c(0x1da),'minLength':0x1},'resultVariable':{'type':a287_0x8cf25c(0x1da),'pattern':a287_0x8cf25c(0x2a3)},'async':{'type':'object','properties':{'enabled':{'type':a287_0x8cf25c(0x1e4)},'retryCount':{'type':a287_0x8cf25c(0x245),'minimum':0x1,'maximum':0xa},'retryInterval':{'$ref':a287_0x8cf25c(0x2da)}},'additionalProperties':!![]},'timeout':{'type':a287_0x8cf25c(0x2c7),'properties':{'enabled':{'type':'boolean'},'duration':{'$ref':a287_0x8cf25c(0x2da)},'action':{'enum':[a287_0x8cf25c(0x214),a287_0x8cf25c(0x25a),'EXECUTE_BFF']},'interrupting':{'type':a287_0x8cf25c(0x1e4)},'scriptName':{'type':a287_0x8cf25c(0x1da),'minLength':0x1},'resultVariable':{'type':a287_0x8cf25c(0x1da),'pattern':a287_0x8cf25c(0x2a3)}},'additionalProperties':!![]},'cc':{'type':a287_0x8cf25c(0x2c7),'required':[a287_0x8cf25c(0x28f)],'properties':{'recipientUserIds':{'type':a287_0x8cf25c(0x2db),'minItems':0x1,'maxItems':0x64,'uniqueItems':!![],'items':{'type':'string','minLength':0x1}},'visible':{'type':a287_0x8cf25c(0x2db),'uniqueItems':!![],'items':{'type':a287_0x8cf25c(0x1da),'minLength':0x1}},'readSources':![]},'additionalProperties':!![]},'config':{'type':a287_0x8cf25c(0x2c7),'required':['configCode',a287_0x8cf25c(0x1b9)],'properties':{'version':{'enum':['v1']},'configCode':{'type':a287_0x8cf25c(0x1da),'minLength':0x1},'failurePolicy':{'enum':[a287_0x8cf25c(0x280),a287_0x8cf25c(0x293)]},'template':{'type':'object','required':['title','summary'],'properties':{'title':{'type':'string','minLength':0x1},'summary':{'type':a287_0x8cf25c(0x1da),'minLength':0x1},'detailMarkdown':{'type':a287_0x8cf25c(0x1da)},'facts':{'type':a287_0x8cf25c(0x2db),'maxItems':0x8,'items':{'type':a287_0x8cf25c(0x2c7),'required':[a287_0x8cf25c(0x311),a287_0x8cf25c(0x1c0)],'properties':{'label':{'type':a287_0x8cf25c(0x1da),'minLength':0x1},'value':{'type':a287_0x8cf25c(0x1da),'minLength':0x1}},'additionalProperties':!![]}},'actions':{'type':a287_0x8cf25c(0x2db),'maxItems':0x2,'items':{'type':a287_0x8cf25c(0x2c7),'required':[a287_0x8cf25c(0x26b),a287_0x8cf25c(0x23c)],'properties':{'text':{'type':'string','minLength':0x1},'url':{'type':a287_0x8cf25c(0x1da),'minLength':0x1}},'additionalProperties':!![]}}},'additionalProperties':!![]},'recipients':{'type':a287_0x8cf25c(0x2db),'items':{'type':a287_0x8cf25c(0x2c7),'required':[a287_0x8cf25c(0x23e),a287_0x8cf25c(0x1c0)],'properties':{'type':{'enum':[a287_0x8cf25c(0x28b),a287_0x8cf25c(0x278),a287_0x8cf25c(0x267)]},'value':{'type':a287_0x8cf25c(0x1da),'minLength':0x1},'role':{'enum':['TO','CC',a287_0x8cf25c(0x287)]}},'additionalProperties':!![]}}},'additionalProperties':!![]},'form':![],'formPermission':![]},'additionalProperties':!![]},'flowEdge':{'type':a287_0x8cf25c(0x2c7),'properties':{'id':{'type':a287_0x8cf25c(0x1da),'pattern':a287_0x8cf25c(0x2a3)},'source':{'type':a287_0x8cf25c(0x1da),'minLength':0x1},'target':{'type':a287_0x8cf25c(0x1da),'minLength':0x1},'sourceNodeId':{'type':a287_0x8cf25c(0x1da),'minLength':0x1},'targetNodeId':{'type':a287_0x8cf25c(0x1da),'minLength':0x1},'conditionType':{'enum':['ALWAYS',a287_0x8cf25c(0x253),a287_0x8cf25c(0x2cf),'EXPRESSION']},'expression':{'type':a287_0x8cf25c(0x1da)},'defaultFlow':{'type':'boolean'},'name':{'type':a287_0x8cf25c(0x1da)},'waypoints':{'type':a287_0x8cf25c(0x2db),'items':{'$ref':a287_0x8cf25c(0x241)}}},'allOf':[{'anyOf':[{'required':[a287_0x8cf25c(0x25d)]},{'required':[a287_0x8cf25c(0x26f)]}]},{'anyOf':[{'required':['target']},{'required':[a287_0x8cf25c(0x25e)]}]}],'additionalProperties':!![]}},'properties':{'id':![],'appCode':![],'flowName':{'type':a287_0x8cf25c(0x1da),'minLength':0x1},'flowDesc':{'type':a287_0x8cf25c(0x1da)},'flowType':{'enum':[a287_0x8cf25c(0x1e0),a287_0x8cf25c(0x315)]},'datasetCode':{'type':a287_0x8cf25c(0x1da),'minLength':0x1},'pageId':{'type':a287_0x8cf25c(0x245)},'templateName':![],'flowJson':{'type':'object','required':[a287_0x8cf25c(0x24b),a287_0x8cf25c(0x1e7)],'properties':{'flowKey':![],'flowCode':![],'flowName':![],'bindDatasetCode':![],'datasetCode':![],'appCode':![],'pageId':![],'templateName':![],'schemaVersion':{'type':a287_0x8cf25c(0x1da),'const':a287_0x8cf25c(0x21d),'description':'Accepted\x20as\x20legacy\x20input\x20and\x20removed\x20during\x20normalization;\x20other\x20versions\x20are\x20unsupported.'},'formSchema':![],'formDefinitions':![],'formPermissions':![],'pageMode':{'const':'CUSTOM_PAGE'},'startPageId':![],'startPath':{'type':a287_0x8cf25c(0x1da),'minLength':0x1},'nodes':{'type':a287_0x8cf25c(0x2db),'minItems':0x1,'items':{'$ref':a287_0x8cf25c(0x1ff)}},'edges':{'type':a287_0x8cf25c(0x2db),'minItems':0x1,'items':{'$ref':a287_0x8cf25c(0x1f3)}}},'additionalProperties':!![]}},'additionalProperties':!![]};const REMOVED_FLOW_JSON_FIELDS=[a287_0x8cf25c(0x27e),a287_0x8cf25c(0x249),'flowName',a287_0x8cf25c(0x28a),a287_0x8cf25c(0x204),a287_0x8cf25c(0x2e3),'pageId',a287_0x8cf25c(0x1c2)],REMOVED_ROOT_FIELDS=['id','appCode','templateName'],DEFAULT_FLOW_SCHEMA_VERSION=a287_0x8cf25c(0x21d),NODE_TYPES=new Set(['START',a287_0x8cf25c(0x20c),'APPROVAL','CONDITION',a287_0x8cf25c(0x1df),a287_0x8cf25c(0x2ea)]),CONDITION_TYPES=new Set(['ALWAYS',a287_0x8cf25c(0x253),a287_0x8cf25c(0x2cf),a287_0x8cf25c(0x21b)]),APPROVAL_MODES=new Set(['SINGLE',a287_0x8cf25c(0x2ad),a287_0x8cf25c(0x288)]),APPROVAL_TASK_MODES=new Set([a287_0x8cf25c(0x307),a287_0x8cf25c(0x1f1)]),FLOW_TIME_UNITS=new Set([a287_0x8cf25c(0x2d9),a287_0x8cf25c(0x31b),a287_0x8cf25c(0x254),a287_0x8cf25c(0x2dc)]),APPROVAL_TIMEOUT_ACTIONS=new Set(['AUTO_APPROVE',a287_0x8cf25c(0x25a),a287_0x8cf25c(0x2c3)]),FLOW_TYPES=new Set([a287_0x8cf25c(0x1e0),a287_0x8cf25c(0x315)]),FLOW_PAGE_MODES=new Set([a287_0x8cf25c(0x230),a287_0x8cf25c(0x292)]),BPMN_ID_PATTERN=/^[A-Za-z_][A-Za-z0-9_]*$/,VARIABLE_PATTERN=/^[A-Za-z_][A-Za-z0-9_]*$/,NOTIFICATION_PLACEHOLDER_PATTERN=/\$\{([^{}]+)\}/g,NOTIFICATION_ACTION_URL_PLACEHOLDER_PATTERN=/^\$\{(?:event|context|variables)\.[^{}]+\}$/,NOTIFICATION_FAILURE_POLICIES=new Set([a287_0x8cf25c(0x280),a287_0x8cf25c(0x293)]),NOTIFICATION_RECIPIENT_TYPES=new Set([a287_0x8cf25c(0x28b),a287_0x8cf25c(0x278),a287_0x8cf25c(0x267)]),NOTIFICATION_RECIPIENT_ROLES=new Set(['TO','CC',a287_0x8cf25c(0x287)]),MAX_NOTIFICATION_FACTS=0x8,MAX_NOTIFICATION_ACTIONS=0x2,MAX_ASYNC_RETRY_COUNT=0xa,MAX_CC_RECIPIENTS=0x64,DEFAULT_SCRIPT_RESULT_VARIABLE=a287_0x8cf25c(0x1ee),UNSUPPORTED_FORM_MESSAGE=a287_0x8cf25c(0x24a),UNSUPPORTED_PLATFORM_FORM_MESSAGE=a287_0x8cf25c(0x27a),RESERVED_RESULT_VARIABLES=new Set([a287_0x8cf25c(0x2ca),a287_0x8cf25c(0x1f5),a287_0x8cf25c(0x2a4),a287_0x8cf25c(0x222),a287_0x8cf25c(0x213),a287_0x8cf25c(0x2a1),a287_0x8cf25c(0x252),'approval_sys_pageId',a287_0x8cf25c(0x303),a287_0x8cf25c(0x308)]);export function normalizeFlowConfig(_0x1ea783){const _0x4bf56d=a287_0x8cf25c;if(!isRecord(_0x1ea783))throw new TypeError('FlowConfig\x20must\x20be\x20a\x20JSON\x20object.');const _0x388f2a=cloneJsonValue(_0x1ea783),_0x3facda=_0x388f2a[_0x4bf56d(0x2fb)],_0x3f9721=isRecord(_0x3facda)?cloneJsonValue(_0x3facda):{},_0x579740=[],_0x5d3dd3=[];for(const _0x52d4bf of REMOVED_ROOT_FIELDS){if(!Object['prototype'][_0x4bf56d(0x1de)]['call'](_0x388f2a,_0x52d4bf))continue;delete _0x388f2a[_0x52d4bf],_0x5d3dd3[_0x4bf56d(0x1db)](_0x52d4bf),_0x579740[_0x4bf56d(0x1db)]({'code':'legacy_field_removed','path':_0x52d4bf,'message':_0x52d4bf+_0x4bf56d(0x2bc)});}for(const _0x36b92e of REMOVED_FLOW_JSON_FIELDS){if(!Object[_0x4bf56d(0x2ac)][_0x4bf56d(0x1de)][_0x4bf56d(0x2c6)](_0x3f9721,_0x36b92e))continue;const _0x445da7='flowJson.'+_0x36b92e;delete _0x3f9721[_0x36b92e],_0x5d3dd3[_0x4bf56d(0x1db)](_0x445da7),_0x579740['push']({'code':_0x4bf56d(0x2cc),'path':_0x445da7,'message':_0x445da7+_0x4bf56d(0x2bc)});}if(Object[_0x4bf56d(0x2ac)][_0x4bf56d(0x1de)][_0x4bf56d(0x2c6)](_0x3f9721,_0x4bf56d(0x2af))){const _0x5e6b17=_0x3f9721[_0x4bf56d(0x2af)],_0x20f75a=typeof _0x5e6b17===_0x4bf56d(0x1da)?_0x5e6b17['trim']():_0x5e6b17;if(isEmptyJsonValue(_0x5e6b17)||_0x20f75a===DEFAULT_FLOW_SCHEMA_VERSION){const _0x4db7e1=_0x4bf56d(0x221);delete _0x3f9721['schemaVersion'],_0x5d3dd3['push'](_0x4db7e1),_0x579740[_0x4bf56d(0x1db)]({'code':'legacy_field_removed','path':_0x4db7e1,'message':_0x4db7e1+'\x20was\x20empty\x20or\x20used\x20the\x20default\x20'+DEFAULT_FLOW_SCHEMA_VERSION+_0x4bf56d(0x235)});}}removeEmptyMetadata(_0x3f9721,'flowJson',_0x579740,_0x5d3dd3);_0x388f2a[_0x4bf56d(0x286)]===_0x4bf56d(0x315)&&!Object[_0x4bf56d(0x2ac)][_0x4bf56d(0x1de)][_0x4bf56d(0x2c6)](_0x3f9721,_0x4bf56d(0x212))&&(_0x3f9721['pageMode']=_0x4bf56d(0x230));_0x388f2a['flowJson']=_0x3f9721;if(typeof _0x388f2a[_0x4bf56d(0x1fa)]==='string')_0x388f2a[_0x4bf56d(0x1fa)]=_0x388f2a['flowName']['trim']();return{'config':_0x388f2a,'warnings':_0x579740,'removedPaths':_0x5d3dd3};}export function validateFlowConfig(_0x3e97cc){const _0x54e224=a287_0x8cf25c;let _0x5054e8;try{_0x5054e8=normalizeFlowConfig(_0x3e97cc);}catch(_0x802251){const _0x58aa13=_0x802251 instanceof Error?_0x802251['message']:String(_0x802251),_0x35aeea={'flowJson':{}};return{'valid':![],'errors':[{'path':'$','message':_0x58aa13}],'warnings':[],'normalized':_0x35aeea,'validationConfig':_0x35aeea};}const _0xa55f8d=_0x5054e8[_0x54e224(0x28d)],_0x2f7997=cloneJsonValue(_0xa55f8d),_0x3cd3e5=_0x2f7997[_0x54e224(0x2fb)];_0x3cd3e5[_0x54e224(0x27e)]=_0x54e224(0x237),_0x3cd3e5[_0x54e224(0x1fa)]=_0xa55f8d[_0x54e224(0x1fa)];typeof _0xa55f8d[_0x54e224(0x204)]==='string'&&_0xa55f8d['datasetCode'][_0x54e224(0x1d3)]()&&(_0x3cd3e5[_0x54e224(0x28a)]=_0xa55f8d[_0x54e224(0x204)][_0x54e224(0x1d3)]());const _0x404d7d=[];return validateOuterMetadata(_0xa55f8d,_0x404d7d),validateFlowClassification(_0xa55f8d,_0x404d7d),validateGraph(_0xa55f8d[_0x54e224(0x2fb)],_0x404d7d),{'valid':_0x404d7d[_0x54e224(0x318)]===0x0,'errors':_0x404d7d,'warnings':_0x5054e8['warnings'],'normalized':_0xa55f8d,'validationConfig':_0x2f7997};}function validateFlowClassification(_0x4df875,_0x1c25be){const _0x328cf6=a287_0x8cf25c;if(!isRecord(_0x4df875['flowJson']))return;const _0x28cc01=_0x4df875[_0x328cf6(0x286)],_0x5d4f3c=_0x4df875[_0x328cf6(0x2fb)][_0x328cf6(0x212)];_0x5d4f3c!==undefined&&(typeof _0x5d4f3c!==_0x328cf6(0x1da)||!FLOW_PAGE_MODES[_0x328cf6(0x2ae)](_0x5d4f3c))&&_0x1c25be[_0x328cf6(0x1db)]({'path':_0x328cf6(0x283),'message':_0x328cf6(0x23a)+String(_0x5d4f3c)+'.'});_0x28cc01===_0x328cf6(0x1e0)&&_0x5d4f3c!==undefined&&_0x1c25be[_0x328cf6(0x1db)]({'path':'flowJson.pageMode','message':_0x328cf6(0x22c)});_0x28cc01===_0x328cf6(0x315)&&_0x5d4f3c==='PLATFORM_FORM'&&_0x1c25be['push']({'path':'flowJson.pageMode','message':UNSUPPORTED_PLATFORM_FORM_MESSAGE});(_0x28cc01===_0x328cf6(0x1e0)||_0x28cc01===_0x328cf6(0x315))&&validateCustomPageNavigation(_0x4df875,_0x28cc01,_0x5d4f3c,_0x1c25be);if(_0x28cc01!==_0x328cf6(0x1e0)||!Array[_0x328cf6(0x2df)](_0x4df875[_0x328cf6(0x2fb)][_0x328cf6(0x24b)]))return;_0x4df875[_0x328cf6(0x2fb)][_0x328cf6(0x24b)][_0x328cf6(0x236)]((_0x43751f,_0x48d12e)=>{const _0x4e8649=_0x328cf6;isRecord(_0x43751f)&&_0x43751f[_0x4e8649(0x23e)]===_0x4e8649(0x307)&&_0x43751f[_0x4e8649(0x2a0)]==='HANDLE'&&_0x1c25be['push']({'path':_0x4e8649(0x2fa)+_0x48d12e+_0x4e8649(0x2e4),'message':_0x4e8649(0x1cb)});});}function validateCustomPageNavigation(_0x4af14d,_0x5edb3b,_0x252f6c,_0xc29c9c){const _0x2284fc=a287_0x8cf25c,_0x5d9953=_0x4af14d[_0x2284fc(0x2fb)][_0x2284fc(0x2b2)];_0x5d9953!==undefined&&_0xc29c9c['push']({'path':_0x2284fc(0x304),'message':_0x2284fc(0x1ec)});const _0x417f70=_0x4af14d['flowJson'][_0x2284fc(0x240)];_0x417f70!==undefined&&(typeof _0x417f70!==_0x2284fc(0x1da)||_0x417f70[_0x2284fc(0x1d3)]()==='')&&_0xc29c9c[_0x2284fc(0x1db)]({'path':_0x2284fc(0x1c7),'message':_0x2284fc(0x1bf)});const _0x2eaa0c=Array[_0x2284fc(0x2df)](_0x4af14d[_0x2284fc(0x2fb)][_0x2284fc(0x24b)])?_0x4af14d[_0x2284fc(0x2fb)][_0x2284fc(0x24b)][_0x2284fc(0x2ab)]((_0x3c0bfd,_0x28991e)=>({'node':_0x3c0bfd,'index':_0x28991e}))[_0x2284fc(0x255)](({node:_0x540bb0})=>isRecord(_0x540bb0)&&_0x540bb0['path']!==undefined):[],_0xf58da5=_0x417f70!==undefined||_0x2eaa0c[_0x2284fc(0x318)]>0x0,_0x479509=_0x252f6c===undefined&&_0x5edb3b===_0x2284fc(0x315)?_0x2284fc(0x230):_0x252f6c;_0xf58da5&&(_0x5edb3b!=='INDEPENDENT_FLOW'||_0x479509!=='CUSTOM_PAGE')&&(_0x417f70!==undefined&&_0xc29c9c[_0x2284fc(0x1db)]({'path':_0x2284fc(0x1c7),'message':'startPath\x20applies\x20only\x20to\x20INDEPENDENT_FLOW\x20with\x20CUSTOM_PAGE.'}),_0x2eaa0c[_0x2284fc(0x236)](({index:_0x3a949e})=>{const _0x37d374=_0x2284fc;_0xc29c9c[_0x37d374(0x1db)]({'path':_0x37d374(0x2fa)+_0x3a949e+_0x37d374(0x265),'message':'node\x20path\x20applies\x20only\x20to\x20INDEPENDENT_FLOW\x20with\x20CUSTOM_PAGE.'});}));}export async function writeNormalizedFlowConfig(_0x461c0d,_0x3c2706,_0x3b8978={}){const _0x2a0a1f=a287_0x8cf25c,_0x2addab=resolve(_0x461c0d),_0x5cd8a9=_0x2addab+'.'+process['pid']+'.'+randomUUID()+_0x2a0a1f(0x262),_0x147c4a=JSON[_0x2a0a1f(0x246)](_0x3c2706,null,0x2)+'\x0a';let _0x153ac3;try{try{_0x153ac3=(await stat(_0x2addab))['mode']&0x1ff;}catch{_0x153ac3=undefined;}await writeFile(_0x5cd8a9,_0x147c4a,{'encoding':_0x2a0a1f(0x219),'flag':'wx','mode':_0x153ac3??0x1a4});if(_0x153ac3!==undefined)await chmod(_0x5cd8a9,_0x153ac3);_0x3b8978[_0x2a0a1f(0x270)]===![]?(await link(_0x5cd8a9,_0x2addab),await unlink(_0x5cd8a9)):await rename(_0x5cd8a9,_0x2addab);}finally{await unlink(_0x5cd8a9)[_0x2a0a1f(0x2fc)](()=>undefined);}}function validateOuterMetadata(_0x4b8c86,_0x5ecbe2){const _0x14598d=a287_0x8cf25c;(typeof _0x4b8c86[_0x14598d(0x1fa)]!==_0x14598d(0x1da)||_0x4b8c86['flowName'][_0x14598d(0x1d3)]()==='')&&_0x5ecbe2[_0x14598d(0x1db)]({'path':_0x14598d(0x1fa),'message':_0x14598d(0x2e1)});_0x4b8c86[_0x14598d(0x2e5)]!==undefined&&typeof _0x4b8c86[_0x14598d(0x2e5)]!=='string'&&_0x5ecbe2[_0x14598d(0x1db)]({'path':'flowDesc','message':_0x14598d(0x26c)});if(_0x4b8c86['flowType']===undefined||_0x4b8c86['flowType']===null)_0x5ecbe2[_0x14598d(0x1db)]({'path':_0x14598d(0x286),'message':_0x14598d(0x25c)});else(typeof _0x4b8c86['flowType']!==_0x14598d(0x1da)||!FLOW_TYPES[_0x14598d(0x2ae)](_0x4b8c86[_0x14598d(0x286)]))&&_0x5ecbe2[_0x14598d(0x1db)]({'path':_0x14598d(0x286),'message':_0x14598d(0x2ff)+String(_0x4b8c86[_0x14598d(0x286)])+'.'});_0x4b8c86['datasetCode']!==undefined&&typeof _0x4b8c86[_0x14598d(0x204)]!==_0x14598d(0x1da)&&_0x5ecbe2[_0x14598d(0x1db)]({'path':'datasetCode','message':_0x14598d(0x268)}),_0x4b8c86['pageId']!==undefined&&(!Number['isInteger'](_0x4b8c86[_0x14598d(0x2f3)])||_0x4b8c86['pageId']<0x0)&&_0x5ecbe2[_0x14598d(0x1db)]({'path':_0x14598d(0x2f3),'message':'pageId\x20must\x20be\x20a\x20non-negative\x20integer.'}),_0x4b8c86[_0x14598d(0x286)]==='INDEPENDENT_FLOW'&&_0x4b8c86[_0x14598d(0x204)]!==undefined&&_0x5ecbe2[_0x14598d(0x1db)]({'path':_0x14598d(0x204),'message':_0x14598d(0x305)}),_0x4b8c86['flowType']===_0x14598d(0x315)&&_0x4b8c86[_0x14598d(0x2f3)]!==undefined&&_0x5ecbe2['push']({'path':_0x14598d(0x2f3),'message':_0x14598d(0x1fb)});}function validateGraph(_0x589d41,_0x52bae6){const _0x47a8e9=a287_0x8cf25c;if(!isRecord(_0x589d41)){_0x52bae6['push']({'path':_0x47a8e9(0x2fb),'message':_0x47a8e9(0x266)});return;}!Array[_0x47a8e9(0x2df)](_0x589d41[_0x47a8e9(0x24b)])&&_0x52bae6[_0x47a8e9(0x1db)]({'path':'flowJson.nodes','message':_0x47a8e9(0x2ef)});!Array['isArray'](_0x589d41[_0x47a8e9(0x1e7)])&&_0x52bae6['push']({'path':_0x47a8e9(0x247),'message':_0x47a8e9(0x2b7)});Object[_0x47a8e9(0x2ac)][_0x47a8e9(0x1de)][_0x47a8e9(0x2c6)](_0x589d41,'schemaVersion')&&_0x52bae6[_0x47a8e9(0x1db)]({'path':_0x47a8e9(0x221),'message':_0x47a8e9(0x1d2)+String(_0x589d41[_0x47a8e9(0x2af)])+_0x47a8e9(0x28e)+DEFAULT_FLOW_SCHEMA_VERSION+'.'});for(const _0x270225 of[_0x47a8e9(0x273),_0x47a8e9(0x1bd),_0x47a8e9(0x239)]){Object[_0x47a8e9(0x2ac)][_0x47a8e9(0x1de)][_0x47a8e9(0x2c6)](_0x589d41,_0x270225)&&_0x52bae6[_0x47a8e9(0x1db)]({'path':_0x47a8e9(0x23d)+_0x270225,'message':UNSUPPORTED_FORM_MESSAGE});}if(!Array[_0x47a8e9(0x2df)](_0x589d41[_0x47a8e9(0x24b)])||!Array[_0x47a8e9(0x2df)](_0x589d41[_0x47a8e9(0x1e7)]))return;const _0x37ab1d=new Map(),_0x1554bd=[],_0x44d7b8=[],_0x19506c=new Map(),_0x4f9224=new Map(),_0xff4204=new Set();let _0x126ba6=0x0;_0x589d41[_0x47a8e9(0x24b)][_0x47a8e9(0x236)]((_0x45a113,_0xd8b788)=>{const _0x4e9c58=_0x47a8e9,_0x608797=_0x4e9c58(0x2fa)+_0xd8b788+']';if(!isRecord(_0x45a113)){_0x52bae6[_0x4e9c58(0x1db)]({'path':_0x608797,'message':_0x4e9c58(0x1cf)});return;}const _0x26aff1=_0x45a113;if(typeof _0x26aff1['id']!==_0x4e9c58(0x1da)||!BPMN_ID_PATTERN[_0x4e9c58(0x1ea)](_0x26aff1['id']))_0x52bae6['push']({'path':_0x608797+_0x4e9c58(0x2d3),'message':'node\x20id\x20must\x20match\x20[A-Za-z_][A-Za-z0-9_]*.'});else _0x37ab1d[_0x4e9c58(0x2ae)](_0x26aff1['id'])?_0x52bae6['push']({'path':_0x608797+'.id','message':'Duplicate\x20node\x20id:\x20'+_0x26aff1['id']+'.'}):(_0x37ab1d['set'](_0x26aff1['id'],_0x26aff1),_0xff4204[_0x4e9c58(0x238)](_0x26aff1['id']));if(!NODE_TYPES[_0x4e9c58(0x2ae)](_0x26aff1[_0x4e9c58(0x23e)]))_0x52bae6[_0x4e9c58(0x1db)]({'path':_0x608797+_0x4e9c58(0x20e),'message':_0x4e9c58(0x2ba)+String(_0x26aff1[_0x4e9c58(0x23e)])+'.'});else{if(_0x26aff1[_0x4e9c58(0x23e)]===_0x4e9c58(0x209))_0x1554bd[_0x4e9c58(0x1db)](_0x26aff1['id']);else _0x26aff1[_0x4e9c58(0x23e)]===_0x4e9c58(0x20c)&&_0x44d7b8['push'](_0x26aff1['id']);}_0x26aff1[_0x4e9c58(0x23e)]===_0x4e9c58(0x307)&&(_0x26aff1['taskMode']===undefined||_0x26aff1[_0x4e9c58(0x2a0)]===_0x4e9c58(0x307))&&(_0x126ba6+=0x1);validateNode(_0x26aff1,_0x608797,_0x52bae6);if(_0x26aff1[_0x4e9c58(0x23e)]===_0x4e9c58(0x1df)){const _0x206c23=resolveEffectiveResultVariable(_0x26aff1['resultVariable'],![]);_0x206c23&&(registerResultVariableOwner(_0x4f9224,_0x206c23,_0x26aff1['id'],_0x52bae6),!_0x19506c[_0x4e9c58(0x2ae)](_0x206c23)&&_0x19506c[_0x4e9c58(0x1e2)](_0x206c23,_0x26aff1['id']));}if(_0x26aff1[_0x4e9c58(0x23e)]===_0x4e9c58(0x307)&&isRecord(_0x26aff1['timeout'])&&_0x26aff1[_0x4e9c58(0x24f)]['enabled']===!![]&&_0x26aff1['timeout'][_0x4e9c58(0x31e)]===_0x4e9c58(0x2c3)){const _0x369034=resolveEffectiveResultVariable(_0x26aff1[_0x4e9c58(0x24f)][_0x4e9c58(0x234)],!![]);_0x369034&&registerResultVariableOwner(_0x4f9224,_0x369034,_0x26aff1['id']+_0x4e9c58(0x216),_0x52bae6);}});_0x1554bd['length']!==0x1&&_0x52bae6[_0x47a8e9(0x1db)]({'path':_0x47a8e9(0x2e0),'message':_0x47a8e9(0x277)});_0x44d7b8[_0x47a8e9(0x318)]===0x0&&_0x52bae6['push']({'path':'flowJson.nodes','message':_0x47a8e9(0x217)});const _0x1f3374=new Map(),_0x2d3a90=new Map(),_0x4674b0=new Map(),_0x3d1802=new Set();_0x589d41[_0x47a8e9(0x1e7)]['forEach']((_0x31d77f,_0x477aa9)=>{const _0x21688a=_0x47a8e9,_0x510eeb=_0x21688a(0x2c1)+_0x477aa9+']';if(!isRecord(_0x31d77f)){_0x52bae6[_0x21688a(0x1db)]({'path':_0x510eeb,'message':_0x21688a(0x26d)});return;}const _0x4e9fb0=_0x31d77f;_0x4674b0[_0x21688a(0x1e2)](_0x4e9fb0,_0x510eeb);const _0x477c96=resolveEdgeEndpoint(_0x4e9fb0[_0x21688a(0x25d)],_0x4e9fb0['sourceNodeId']),_0x3d7869=resolveEdgeEndpoint(_0x4e9fb0[_0x21688a(0x25f)],_0x4e9fb0[_0x21688a(0x25e)]);if(!_0x477c96)_0x52bae6[_0x21688a(0x1db)]({'path':_0x510eeb+_0x21688a(0x2d7),'message':'edge\x20source\x20is\x20required.'});if(!_0x3d7869)_0x52bae6[_0x21688a(0x1db)]({'path':_0x510eeb+_0x21688a(0x298),'message':_0x21688a(0x1dc)});_0x477c96&&!_0x37ab1d['has'](_0x477c96)&&_0x52bae6[_0x21688a(0x1db)]({'path':_0x510eeb+_0x21688a(0x2d7),'message':_0x21688a(0x229)+_0x477c96+'.'});_0x3d7869&&!_0x37ab1d[_0x21688a(0x2ae)](_0x3d7869)&&_0x52bae6[_0x21688a(0x1db)]({'path':_0x510eeb+_0x21688a(0x298),'message':_0x21688a(0x316)+_0x3d7869+'.'});if(_0x4e9fb0['id']!==undefined){if(typeof _0x4e9fb0['id']!==_0x21688a(0x1da)||!BPMN_ID_PATTERN[_0x21688a(0x1ea)](_0x4e9fb0['id']))_0x52bae6[_0x21688a(0x1db)]({'path':_0x510eeb+_0x21688a(0x2d3),'message':_0x21688a(0x282)});else{if(_0xff4204[_0x21688a(0x2ae)](_0x4e9fb0['id']))_0x52bae6[_0x21688a(0x1db)]({'path':_0x510eeb+_0x21688a(0x2d3),'message':_0x21688a(0x27f)+_0x4e9fb0['id']+'.'});else!_0xff4204[_0x21688a(0x2ae)](_0x4e9fb0['id'])&&_0xff4204[_0x21688a(0x238)](_0x4e9fb0['id']);}}if(_0x477c96&&_0x3d7869){const _0x40a087=_0x477c96+'\x00'+_0x3d7869+'\x00'+(_0x4e9fb0[_0x21688a(0x297)]??_0x21688a(0x1fe));_0x3d1802[_0x21688a(0x2ae)](_0x40a087)?_0x52bae6[_0x21688a(0x1db)]({'path':_0x510eeb,'message':_0x21688a(0x276)+_0x477c96+_0x21688a(0x1d9)+_0x3d7869+'\x20('+(_0x4e9fb0[_0x21688a(0x297)]??_0x21688a(0x1fe))+').'}):_0x3d1802['add'](_0x40a087);}validateEdge(_0x4e9fb0,_0x510eeb,_0x52bae6),_0x477c96&&_0x3d7869&&(_0x1f3374[_0x21688a(0x22d)](_0x477c96)?.['push'](_0x4e9fb0)??_0x1f3374[_0x21688a(0x1e2)](_0x477c96,[_0x4e9fb0]),_0x2d3a90['get'](_0x3d7869)?.[_0x21688a(0x1db)](_0x4e9fb0)??_0x2d3a90[_0x21688a(0x1e2)](_0x3d7869,[_0x4e9fb0]));});if(_0x1554bd[_0x47a8e9(0x318)]!==0x1)return;validateGraphShape(_0x37ab1d,_0x1554bd[0x0],_0x44d7b8,_0x1f3374,_0x2d3a90,_0x4674b0,_0x52bae6),validateScriptResultReferences(_0x37ab1d,_0x1554bd[0x0],_0x1f3374,_0x2d3a90,_0x4674b0,_0x19506c,_0x52bae6),validateApprovalResults(_0x37ab1d,_0x126ba6,_0x44d7b8,_0x52bae6);}function a287_0x182b(){const _0x4fd0be=['waypoints','boolean','.waypoints[','NOTIFICATION\x20node\x20requires\x20template.','edges','detailMarkdown','Notification\x20recipient.role\x20must\x20be\x20TO,\x20CC,\x20or\x20BCC.','test','cc.recipientUserIds\x20must\x20be\x20a\x20non-empty\x20array.','startPageId\x20is\x20no\x20longer\x20supported;\x20use\x20startPath\x20instead.','cc\x20recipient\x20userId\x20must\x20be\x20a\x20non-empty\x20string.','scriptResult','.cc.recipientUserIds[','matchAll','HANDLE','role','#/$defs/flowEdge','empty_metadata_removed','approved','cc\x20must\x20be\x20an\x20object.','\x20is\x20required.','#/$defs/userId','context','flowName','INDEPENDENT_FLOW\x20cannot\x20bind\x20pageId.','.text','isSafeInteger','ALWAYS','#/$defs/flowNode','\x20must\x20be\x20a\x20finite\x20number.','.transferCandidates.userIds','.cc.visible','indexOf','datasetCode','transfer\x20candidate\x20userId\x20must\x20be\x20a\x20non-empty\x20string\x20or\x20positive\x20integer.','APPROVAL\x20node\x20outgoing\x20edges\x20must\x20use\x20APPROVED\x20or\x20REJECTED.','https://json-schema.org/draft/2020-12/schema','Unsupported\x20notification\x20version:\x20','START','Node\x20cannot\x20reach\x20any\x20END.','Duplicate\x20resultVariable:\x20','END','.cc','.type','timeout.enabled\x20must\x20be\x20a\x20boolean.','timeout\x20must\x20be\x20an\x20object.','^[1-9][0-9]*$','pageMode','approval_sys_initiatorUserId','AUTO_APPROVE','retryInterval','.timeout','Flow\x20must\x20contain\x20at\x20least\x20one\x20END\x20node.','form','utf8','.assignee.roleId','EXPRESSION','.path','approval.simple-flow.v1','Node\x20has\x20no\x20incoming\x20edge.','Unsupported\x20condition\x20type:\x20','waypoint.','flowJson.schemaVersion','approval_sys_processInstanceId','Default\x20cc\x20is\x20only\x20supported\x20by\x20APPROVAL\x20or\x20END\x20node.','START\x20node\x20must\x20not\x20have\x20incoming\x20edges.','.configCode','HANDLE\x20task\x20timeout\x20only\x20supports\x20EXECUTE_BFF.','.assignee.userIds','Notification\x20recipients\x20must\x20be\x20an\x20array.','Edge\x20source\x20node\x20not\x20found:\x20','CONDITION\x20non-default\x20edge\x20requires\x20a\x20non-empty\x20expression.','.facts','pageMode\x20applies\x20only\x20to\x20INDEPENDENT_FLOW.','get','interrupting','number','CUSTOM_PAGE','duration\x20value\x20must\x20be\x20a\x20positive\x20integer.','APPROVAL\x20task\x20decision\x20edges\x20must\x20not\x20be\x20default\x20flows.','25100669NiTiXu','resultVariable','\x20value\x20and\x20was\x20removed\x20from\x20the\x20portable\x20FlowConfig.','forEach','__rabetbase_local_validation__','add','formPermissions','Unsupported\x20pageMode:\x20','path','url','flowJson.','type','.name','startPath','#/$defs/position','SINGLE\x20approval\x20supports\x20only\x20one\x20fixed\x20user.','defaultFlow\x20must\x20be\x20a\x20boolean.','.detailMarkdown','integer','stringify','flowJson.edges','HANDLE\x20task\x20outgoing\x20edge\x20must\x20use\x20ALWAYS\x20without\x20defaultFlow\x20or\x20expression.','flowCode','Custom\x20form\x20configuration\x20is\x20not\x20supported\x20by\x20this\x20rabetbase\x20version;\x20use\x20a\x20business\x20custom\x20page\x20instead.','nodes','.value','.defaultFlow','Notification\x20recipient.role\x20must\x20be\x20a\x20string.','timeout','isInteger','\x20was\x20empty\x20and\x20was\x20removed.','approval_sys_datasetCode','APPROVED','HOURS','filter','Expression\x20references\x20SCRIPT\x20resultVariable\x20','8283942jyrdgf','startsWith','679FAtWXn','AUTO_REJECT','\x20actions.','flowType\x20is\x20required.','source','targetNodeId','target','.conditionType','\x20users.','.tmp','Notification\x20recipient.type\x20must\x20be\x20USER,\x20ROLE,\x20or\x20EMAIL.','version','].path','flowJson\x20must\x20be\x20an\x20object.','EMAIL','datasetCode\x20must\x20be\x20a\x20string.','replace','cc.recipientUserIds\x20supports\x20at\x20most\x20','text','flowDesc\x20must\x20be\x20a\x20string.','edge\x20must\x20be\x20an\x20object.','.url','sourceNodeId','overwrite','name','Notification\x20template.actions\x20must\x20be\x20an\x20array.','formSchema','.async','Node\x20is\x20not\x20reachable\x20from\x20START.','Duplicate\x20edge\x20route:\x20','Flow\x20must\x20contain\x20exactly\x20one\x20START\x20node.','ROLE','transferCandidates\x20must\x20be\x20an\x20object.','PLATFORM_FORM\x20is\x20not\x20supported\x20by\x20this\x20rabetbase\x20version;\x20use\x20INDEPENDENT_FLOW\x20with\x20CUSTOM_PAGE.','defaultFlow','\x20facts.','.timeout.resultVariable','flowKey','Duplicate\x20BPMN\x20element\x20id:\x20','CONTINUE','failurePolicy\x20must\x20be\x20a\x20string.','edge\x20id\x20must\x20match\x20[A-Za-z_][A-Za-z0-9_]*.','flowJson.pageMode','approval_sys_','.timeout.action','flowType','BCC','ANY','.assignee.strategy','bindDatasetCode','USER','Notification\x20configCode\x20is\x20required.','config','.\x20This\x20CLI\x20supports\x20only\x20','recipientUserIds','3zejwqe','parse','PLATFORM_FORM','FAIL','Notification\x20recipient\x20must\x20be\x20an\x20object.','Duplicate\x20value:\x20','enabled','conditionType','.target','Notification\x20recipient.type\x20is\x20required.','.resultVariable','visible','keys','timeout.interrupting\x20must\x20be\x20a\x20boolean.','node\x20path\x20must\x20be\x20a\x20non-empty\x20string.','Node\x20has\x20no\x20outgoing\x20edge.','taskMode','approval_sys_initiatorUsername','.taskMode','^[A-Za-z_][A-Za-z0-9_]*$','approval_sys_appCode','Notification\x20template\x20supports\x20at\x20most\x20','failurePolicy','FIXED\x20transferCandidates\x20requires\x20non-empty\x20userIds.','5817610KrTqXY','node\x20path\x20is\x20supported\x20only\x20on\x20APPROVAL\x20or\x20END\x20nodes.','Notification\x20action.text\x20is\x20required.','map','prototype','ALL','has','schemaVersion','size','Notification\x20fact.','startPageId','variables','Notification\x20action.url\x20must\x20use\x20http/https\x20or\x20a\x20complete\x20supported\x20placeholder.','formPermission','every','edges\x20must\x20be\x20an\x20array.','END\x20node\x20must\x20not\x20have\x20outgoing\x20edges.','failurePolicy\x20must\x20be\x20CONTINUE\x20or\x20FAIL.','Unsupported\x20node\x20type:\x20','actions','\x20is\x20not\x20part\x20of\x20the\x20portable\x20FlowConfig\x20and\x20was\x20removed.','async\x20must\x20be\x20an\x20object.',',\x20but\x20node\x20','NOTIFICATION\x20node\x20requires\x20config.','duration\x20requires\x20value\x20and\x20unit.','flowJson.edges[','.transferCandidates.strategy','EXECUTE_BFF','Explicit\x20notification\x20recipients\x20require\x20at\x20least\x20one\x20TO.','recipients','call','object','APPROVAL\x20node\x20requires\x20assignee.','\x20timeout\x20must\x20interrupt\x20the\x20approval\x20task.','formData','some','legacy_field_removed','position','roleId','REJECTED','3604980AKrQuG','.recipients','edge\x20name\x20must\x20be\x20a\x20string.','.id','.role','.timeout.scriptName','.pageId','.source','value\x20must\x20be\x20a\x20non-empty\x20string.','SECONDS','#/$defs/timeAmount','array','DAYS','summary','sequential\x20must\x20be\x20a\x20boolean.','isArray','flowJson.nodes','flowName\x20is\x20required.','SINGLE','appCode','].taskMode','flowDesc','\x20must\x20be\x20a\x20finite\x20number\x20greater\x20than\x20or\x20equal\x20to\x200.','value\x20must\x20be\x20an\x20array.','result','.timeout.enabled','NOTIFICATION','.scriptName','.timeout.interrupting','.unit','timeout\x20is\x20only\x20supported\x20by\x20APPROVAL\x20node.','nodes\x20must\x20be\x20an\x20array.','829MBalmM','toUpperCase','Duplicate\x20cc\x20recipient\x20userId:\x20','pageId','sequential','.transferCandidates','strategy','SCRIPT\x20async\x20retryCount\x20must\x20be\x20between\x201\x20and\x20','title','includes','flowJson.nodes[','flowJson','catch','.actions','async.enabled\x20must\x20be\x20a\x20boolean.','Unsupported\x20flowType:\x20','CONDITION','Notification\x20fact\x20must\x20be\x20an\x20object.','.transferCandidates.userIds[','approval_sys_operationType','flowJson.startPageId','INDEPENDENT_FLOW\x20cannot\x20bind\x20datasetCode.','entries','APPROVAL','approval_sys_dataId','FIXED','.expression','2229065cszuxL','CONDITION\x20default\x20edge\x20must\x20use\x20conditionType\x20ALWAYS.','flowJson.nodes.','.failurePolicy','Unsupported\x20approval\x20mode:\x20','scriptName','label','assignee','findIndex','.cc.recipientUserIds','INDEPENDENT_FLOW','Edge\x20target\x20node\x20not\x20found:\x20','async\x20execution\x20is\x20only\x20supported\x20by\x20SCRIPT\x20node.','length','async','duration\x20unit\x20must\x20be\x20SECONDS,\x20MINUTES,\x20HOURS,\x20or\x20DAYS.','MINUTES','.version','transferCandidates','action','https://lovrabet.com/schema/rabetbase-flow-config.json','.timeout.duration','.template','67528YdrXHP','.waypoints','template','.sequential','facts','fixed\x20assignee\x20userId\x20must\x20be\x20a\x20non-empty\x20string\x20or\x20positive\x20integer.','formDefinitions','slice','startPath\x20must\x20be\x20a\x20non-empty\x20string.','value','6vBlvqS','templateName','approvalMode','waypoint\x20must\x20contain\x20numeric\x20x\x20and\x20y\x20coordinates.','delete','duration','flowJson.startPath','Rabetbase\x20FlowConfig','A\x20default\x20flow\x20must\x20use\x20conditionType\x20ALWAYS.','event','FORM_FLOW\x20is\x20an\x20approval\x20flow\x20and\x20cannot\x20contain\x20HANDLE\x20tasks;\x20use\x20INDEPENDENT_FLOW\x20for\x20workflows.','transferCandidates\x20currently\x20supports\x20FIXED\x20only.','resultVariable\x20must\x20match\x20[A-Za-z_][A-Za-z0-9_]*.','Reserved\x20resultVariable:\x20','node\x20must\x20be\x20an\x20object.','EXECUTE_BFF\x20timeout\x20must\x20not\x20interrupt\x20the\x20approval\x20task.','expression','Unsupported\x20schemaVersion:\x20','trim','1902OueavS','readSources','HANDLE\x20task\x20requires\x20exactly\x20one\x20outgoing\x20edge.','userIds','.config','\x20->\x20','string','push','edge\x20target\x20is\x20required.','metadata','hasOwnProperty','SCRIPT','FORM_FLOW','EXPRESSION\x20edge\x20requires\x20expression.','set'];a287_0x182b=function(){return _0x4fd0be;};return a287_0x182b();}function validateNode(_0x1cc795,_0x2ba99f,_0xfa54fc){const _0x2db691=a287_0x8cf25c;for(const _0x31a857 of[_0x2db691(0x218),_0x2db691(0x2b5)]){Object[_0x2db691(0x2ac)][_0x2db691(0x1de)]['call'](_0x1cc795,_0x31a857)&&_0xfa54fc[_0x2db691(0x1db)]({'path':_0x2ba99f+'.'+_0x31a857,'message':UNSUPPORTED_FORM_MESSAGE});}if(!NODE_TYPES['has'](_0x1cc795[_0x2db691(0x23e)]))return;(typeof _0x1cc795['name']!==_0x2db691(0x1da)||_0x1cc795[_0x2db691(0x271)][_0x2db691(0x1d3)]()==='')&&_0xfa54fc[_0x2db691(0x1db)]({'path':_0x2ba99f+'.name','message':'Every\x20node\x20requires\x20a\x20non-empty\x20name.'});_0x1cc795[_0x2db691(0x2f3)]!==undefined&&_0xfa54fc[_0x2db691(0x1db)]({'path':_0x2ba99f+_0x2db691(0x2d6),'message':'node\x20pageId\x20is\x20no\x20longer\x20supported;\x20use\x20node\x20path\x20instead.'});if(_0x1cc795[_0x2db691(0x23b)]!==undefined){if(typeof _0x1cc795[_0x2db691(0x23b)]!==_0x2db691(0x1da)||_0x1cc795[_0x2db691(0x23b)][_0x2db691(0x1d3)]()==='')_0xfa54fc['push']({'path':_0x2ba99f+_0x2db691(0x21c),'message':_0x2db691(0x29e)});else _0x1cc795[_0x2db691(0x23e)]!==_0x2db691(0x307)&&_0x1cc795[_0x2db691(0x23e)]!==_0x2db691(0x20c)&&_0xfa54fc[_0x2db691(0x1db)]({'path':_0x2ba99f+'.path','message':_0x2db691(0x2a9)});}const _0x3eb26d=_0x1cc795[_0x2db691(0x2cd)];if(!isRecord(_0x3eb26d))_0xfa54fc['push']({'path':_0x2ba99f+'.position','message':'Every\x20node\x20requires\x20position.x\x20and\x20position.y.'});else for(const _0x5c2209 of['x','y']){const _0x4d563a=_0x3eb26d[_0x5c2209];(typeof _0x4d563a!=='number'||!Number['isFinite'](_0x4d563a)||_0x4d563a<0x0)&&_0xfa54fc[_0x2db691(0x1db)]({'path':_0x2ba99f+'.position.'+_0x5c2209,'message':'position.'+_0x5c2209+_0x2db691(0x2e6)});}if(_0x1cc795[_0x2db691(0x23e)]===_0x2db691(0x307)){const _0x47acf3=_0x1cc795[_0x2db691(0x1c3)]??'SINGLE',_0x372deb=_0x1cc795[_0x2db691(0x2a0)]??_0x2db691(0x307);!APPROVAL_TASK_MODES[_0x2db691(0x2ae)](_0x372deb)&&_0xfa54fc['push']({'path':_0x2ba99f+_0x2db691(0x2a2),'message':'Unsupported\x20task\x20mode:\x20'+String(_0x372deb)+'.'});!APPROVAL_MODES[_0x2db691(0x2ae)](_0x47acf3)&&_0xfa54fc[_0x2db691(0x1db)]({'path':_0x2ba99f+'.approvalMode','message':_0x2db691(0x30f)+String(_0x47acf3)+'.'});if(!isRecord(_0x1cc795[_0x2db691(0x312)]))_0xfa54fc[_0x2db691(0x1db)]({'path':_0x2ba99f+'.assignee','message':_0x2db691(0x2c8)});else{const _0xda3a=_0x1cc795[_0x2db691(0x312)][_0x2db691(0x2f6)];_0xda3a!==_0x2db691(0x309)&&_0xda3a!==_0x2db691(0x278)&&_0xfa54fc[_0x2db691(0x1db)]({'path':_0x2ba99f+_0x2db691(0x289),'message':'assignee.strategy\x20must\x20be\x20FIXED\x20or\x20ROLE.'});if(_0xda3a==='FIXED'){const _0x54a7da=_0x1cc795[_0x2db691(0x312)][_0x2db691(0x1d7)];if(!Array[_0x2db691(0x2df)](_0x54a7da)||_0x54a7da[_0x2db691(0x318)]===0x0)_0xfa54fc['push']({'path':_0x2ba99f+'.assignee.userIds','message':'FIXED\x20assignee\x20requires\x20userIds.'});else{const _0x110c18=_0x54a7da[_0x2db691(0x313)](_0x148149=>!isValidUserId(_0x148149));_0x110c18>=0x0&&_0xfa54fc[_0x2db691(0x1db)]({'path':_0x2ba99f+'.assignee.userIds['+_0x110c18+']','message':_0x2db691(0x1bc)});const _0x10ea52=new Set(_0x54a7da['filter'](isValidUserId)['map'](_0x58c8d9=>String(_0x58c8d9)[_0x2db691(0x1d3)]()));_0x47acf3==='SINGLE'&&_0x10ea52[_0x2db691(0x2b0)]>0x1&&_0xfa54fc[_0x2db691(0x1db)]({'path':_0x2ba99f+_0x2db691(0x227),'message':_0x2db691(0x242)});}}if(_0xda3a==='ROLE'){const _0x24e380=_0x1cc795[_0x2db691(0x312)][_0x2db691(0x2ce)],_0x45d507=typeof _0x24e380==='number'||typeof _0x24e380===_0x2db691(0x1da)?Number(String(_0x24e380)['trim']()):Number['NaN'];(!Number['isSafeInteger'](_0x45d507)||_0x45d507<=0x0)&&_0xfa54fc['push']({'path':_0x2ba99f+_0x2db691(0x21a),'message':'ROLE\x20assignee\x20requires\x20a\x20positive\x20integer\x20roleId.'});}}if(_0x1cc795[_0x2db691(0x31d)]!==undefined){if(!isRecord(_0x1cc795[_0x2db691(0x31d)]))_0xfa54fc[_0x2db691(0x1db)]({'path':_0x2ba99f+_0x2db691(0x2f5),'message':_0x2db691(0x279)});else{if(_0x1cc795['transferCandidates'][_0x2db691(0x2f6)]!==_0x2db691(0x309))_0xfa54fc[_0x2db691(0x1db)]({'path':_0x2ba99f+_0x2db691(0x2c2),'message':_0x2db691(0x1cc)});else{const _0x1b53c7=_0x1cc795[_0x2db691(0x31d)]['userIds'];if(!Array[_0x2db691(0x2df)](_0x1b53c7)||_0x1b53c7[_0x2db691(0x318)]===0x0)_0xfa54fc[_0x2db691(0x1db)]({'path':_0x2ba99f+_0x2db691(0x201),'message':_0x2db691(0x2a7)});else{const _0x250a80=_0x1b53c7[_0x2db691(0x313)](_0x26840f=>!isValidUserId(_0x26840f));_0x250a80>=0x0&&_0xfa54fc[_0x2db691(0x1db)]({'path':_0x2ba99f+_0x2db691(0x302)+_0x250a80+']','message':_0x2db691(0x205)});}}}}}_0x1cc795['sequential']!==undefined&&typeof _0x1cc795[_0x2db691(0x2f4)]!==_0x2db691(0x1e4)&&_0xfa54fc[_0x2db691(0x1db)]({'path':_0x2ba99f+_0x2db691(0x1ba),'message':_0x2db691(0x2de)});if(_0x1cc795[_0x2db691(0x23e)]===_0x2db691(0x1df)){(typeof _0x1cc795[_0x2db691(0x310)]!=='string'||_0x1cc795[_0x2db691(0x310)]['trim']()==='')&&_0xfa54fc[_0x2db691(0x1db)]({'path':_0x2ba99f+_0x2db691(0x2eb),'message':'SCRIPT\x20node\x20requires\x20scriptName.'});if(_0x1cc795['resultVariable']!==undefined){if(typeof _0x1cc795[_0x2db691(0x234)]!=='string'||!VARIABLE_PATTERN[_0x2db691(0x1ea)](_0x1cc795[_0x2db691(0x234)]))_0xfa54fc[_0x2db691(0x1db)]({'path':_0x2ba99f+_0x2db691(0x29a),'message':_0x2db691(0x1cd)});else(RESERVED_RESULT_VARIABLES[_0x2db691(0x2ae)](_0x1cc795[_0x2db691(0x234)])||_0x1cc795['resultVariable'][_0x2db691(0x258)](_0x2db691(0x284)))&&_0xfa54fc[_0x2db691(0x1db)]({'path':_0x2ba99f+_0x2db691(0x29a),'message':_0x2db691(0x1ce)+_0x1cc795[_0x2db691(0x234)]+'.'});}}validateAsyncExecution(_0x1cc795,_0x2ba99f,_0xfa54fc),validateApprovalTimeout(_0x1cc795,_0x2ba99f,_0xfa54fc),validateCcConfig(_0x1cc795,_0x2ba99f,_0xfa54fc),_0x1cc795['type']===_0x2db691(0x2ea)&&validateNotificationConfig(_0x1cc795[_0x2db691(0x28d)],_0x2ba99f+_0x2db691(0x1d8),_0xfa54fc);}function validateAsyncExecution(_0x21a114,_0x66bbbb,_0x5e0d7a){const _0x181949=a287_0x8cf25c;if(_0x21a114[_0x181949(0x319)]===undefined)return;if(!isRecord(_0x21a114[_0x181949(0x319)])){_0x5e0d7a[_0x181949(0x1db)]({'path':_0x66bbbb+_0x181949(0x274),'message':_0x181949(0x2bd)});return;}if(_0x21a114[_0x181949(0x319)][_0x181949(0x296)]!==undefined&&typeof _0x21a114['async'][_0x181949(0x296)]!==_0x181949(0x1e4)){_0x5e0d7a[_0x181949(0x1db)]({'path':_0x66bbbb+'.async.enabled','message':_0x181949(0x2fe)});return;}if(_0x21a114['async'][_0x181949(0x296)]!==!![])return;_0x21a114['type']!==_0x181949(0x1df)&&_0x5e0d7a['push']({'path':_0x66bbbb+_0x181949(0x274),'message':_0x181949(0x317)});const _0x664e28=_0x21a114['async']['retryCount']??0x3;(!Number[_0x181949(0x250)](_0x664e28)||_0x664e28<0x1||_0x664e28>MAX_ASYNC_RETRY_COUNT)&&_0x5e0d7a[_0x181949(0x1db)]({'path':_0x66bbbb+'.async.retryCount','message':_0x181949(0x2f7)+MAX_ASYNC_RETRY_COUNT+'.'}),_0x21a114['async'][_0x181949(0x215)]!==undefined&&validateTimeAmount(_0x21a114[_0x181949(0x319)][_0x181949(0x215)],_0x66bbbb+'.async.retryInterval',_0x5e0d7a);}function a287_0x3c35(_0x1291ee,_0x27d0c6){_0x1291ee=_0x1291ee-0x1b5;const _0x182b79=a287_0x182b();let _0x3c3577=_0x182b79[_0x1291ee];return _0x3c3577;}function validateApprovalTimeout(_0x51ad82,_0x2589c8,_0x3ac0f0){const _0x5c4d99=a287_0x8cf25c;if(_0x51ad82[_0x5c4d99(0x24f)]===undefined)return;if(!isRecord(_0x51ad82[_0x5c4d99(0x24f)])){_0x3ac0f0['push']({'path':_0x2589c8+_0x5c4d99(0x216),'message':_0x5c4d99(0x210)});return;}if(_0x51ad82[_0x5c4d99(0x24f)][_0x5c4d99(0x296)]!==undefined&&typeof _0x51ad82[_0x5c4d99(0x24f)][_0x5c4d99(0x296)]!==_0x5c4d99(0x1e4)){_0x3ac0f0['push']({'path':_0x2589c8+_0x5c4d99(0x2e9),'message':_0x5c4d99(0x20f)});return;}if(_0x51ad82['timeout']['enabled']!==!![])return;if(_0x51ad82['timeout'][_0x5c4d99(0x22e)]!==undefined&&typeof _0x51ad82['timeout'][_0x5c4d99(0x22e)]!==_0x5c4d99(0x1e4)){_0x3ac0f0[_0x5c4d99(0x1db)]({'path':_0x2589c8+_0x5c4d99(0x2ec),'message':_0x5c4d99(0x29d)});return;}_0x51ad82[_0x5c4d99(0x23e)]!==_0x5c4d99(0x307)&&_0x3ac0f0[_0x5c4d99(0x1db)]({'path':_0x2589c8+'.timeout','message':_0x5c4d99(0x2ee)});validateTimeAmount(_0x51ad82[_0x5c4d99(0x24f)][_0x5c4d99(0x1c6)],_0x2589c8+_0x5c4d99(0x1b5),_0x3ac0f0);const _0x5c67d3=_0x51ad82[_0x5c4d99(0x24f)][_0x5c4d99(0x31e)];if(!APPROVAL_TIMEOUT_ACTIONS['has'](_0x5c67d3)){_0x3ac0f0[_0x5c4d99(0x1db)]({'path':_0x2589c8+_0x5c4d99(0x285),'message':'timeout.action\x20must\x20be\x20AUTO_APPROVE,\x20AUTO_REJECT,\x20or\x20EXECUTE_BFF.'});return;}(_0x51ad82[_0x5c4d99(0x2a0)]??_0x5c4d99(0x307))===_0x5c4d99(0x1f1)&&_0x5c67d3!=='EXECUTE_BFF'&&_0x3ac0f0['push']({'path':_0x2589c8+'.timeout.action','message':_0x5c4d99(0x226)});const _0x14f781=_0x51ad82[_0x5c4d99(0x24f)][_0x5c4d99(0x22e)]??_0x5c67d3!==_0x5c4d99(0x2c3);if(_0x5c67d3===_0x5c4d99(0x2c3))_0x14f781&&_0x3ac0f0['push']({'path':_0x2589c8+_0x5c4d99(0x2ec),'message':_0x5c4d99(0x1d0)}),(typeof _0x51ad82[_0x5c4d99(0x24f)][_0x5c4d99(0x310)]!==_0x5c4d99(0x1da)||_0x51ad82[_0x5c4d99(0x24f)]['scriptName']['trim']()==='')&&_0x3ac0f0[_0x5c4d99(0x1db)]({'path':_0x2589c8+_0x5c4d99(0x2d5),'message':'EXECUTE_BFF\x20timeout\x20requires\x20scriptName.'}),validateOptionalResultVariable(_0x51ad82[_0x5c4d99(0x24f)]['resultVariable'],_0x2589c8+_0x5c4d99(0x27d),_0x3ac0f0);else!_0x14f781&&_0x3ac0f0[_0x5c4d99(0x1db)]({'path':_0x2589c8+_0x5c4d99(0x2ec),'message':_0x5c67d3+_0x5c4d99(0x2c9)});}function validateTimeAmount(_0xff7374,_0x1c3a23,_0x1207fb){const _0x43f884=a287_0x8cf25c;if(!isRecord(_0xff7374)){_0x1207fb[_0x43f884(0x1db)]({'path':_0x1c3a23,'message':_0x43f884(0x2c0)});return;}(!Number[_0x43f884(0x250)](_0xff7374[_0x43f884(0x1c0)])||Number(_0xff7374['value'])<=0x0)&&_0x1207fb[_0x43f884(0x1db)]({'path':_0x1c3a23+_0x43f884(0x24c),'message':_0x43f884(0x231)}),!FLOW_TIME_UNITS[_0x43f884(0x2ae)](_0xff7374['unit'])&&_0x1207fb[_0x43f884(0x1db)]({'path':_0x1c3a23+_0x43f884(0x2ed),'message':_0x43f884(0x31a)});}function validateOptionalResultVariable(_0x51c9cf,_0x1bbe87,_0x387abf){const _0x1d1e4f=a287_0x8cf25c;if(_0x51c9cf===undefined||_0x51c9cf===null||_0x51c9cf==='')return;if(typeof _0x51c9cf!==_0x1d1e4f(0x1da)||!VARIABLE_PATTERN[_0x1d1e4f(0x1ea)](_0x51c9cf))_0x387abf['push']({'path':_0x1bbe87,'message':_0x1d1e4f(0x1cd)});else(RESERVED_RESULT_VARIABLES[_0x1d1e4f(0x2ae)](_0x51c9cf)||_0x51c9cf[_0x1d1e4f(0x258)](_0x1d1e4f(0x284)))&&_0x387abf[_0x1d1e4f(0x1db)]({'path':_0x1bbe87,'message':'Reserved\x20resultVariable:\x20'+_0x51c9cf+'.'});}function validateCcConfig(_0x50bfac,_0x84de71,_0x5aa82a){const _0x59b4e9=a287_0x8cf25c;if(_0x50bfac['cc']===undefined)return;if(!isRecord(_0x50bfac['cc'])){_0x5aa82a['push']({'path':_0x84de71+_0x59b4e9(0x20d),'message':_0x59b4e9(0x1f6)});return;}_0x50bfac[_0x59b4e9(0x23e)]!==_0x59b4e9(0x20c)&&_0x50bfac[_0x59b4e9(0x23e)]!==_0x59b4e9(0x307)&&_0x5aa82a[_0x59b4e9(0x1db)]({'path':_0x84de71+_0x59b4e9(0x20d),'message':_0x59b4e9(0x223)});Object[_0x59b4e9(0x2ac)][_0x59b4e9(0x1de)][_0x59b4e9(0x2c6)](_0x50bfac['cc'],_0x59b4e9(0x1d5))&&_0x5aa82a[_0x59b4e9(0x1db)]({'path':_0x84de71+'.cc.readSources','message':UNSUPPORTED_FORM_MESSAGE});const _0x93118=_0x50bfac['cc'][_0x59b4e9(0x28f)];if(!Array[_0x59b4e9(0x2df)](_0x93118)||_0x93118[_0x59b4e9(0x318)]===0x0)_0x5aa82a[_0x59b4e9(0x1db)]({'path':_0x84de71+_0x59b4e9(0x314),'message':_0x59b4e9(0x1eb)});else{_0x93118['length']>MAX_CC_RECIPIENTS&&_0x5aa82a[_0x59b4e9(0x1db)]({'path':_0x84de71+_0x59b4e9(0x314),'message':_0x59b4e9(0x26a)+MAX_CC_RECIPIENTS+_0x59b4e9(0x261)});const _0x521cde=new Set();_0x93118[_0x59b4e9(0x236)]((_0x43e44a,_0x5118d7)=>{const _0x2fd1a3=_0x59b4e9;if(typeof _0x43e44a!==_0x2fd1a3(0x1da)||_0x43e44a['trim']()==='')_0x5aa82a[_0x2fd1a3(0x1db)]({'path':_0x84de71+'.cc.recipientUserIds['+_0x5118d7+']','message':_0x2fd1a3(0x1ed)});else _0x521cde[_0x2fd1a3(0x2ae)](_0x43e44a[_0x2fd1a3(0x1d3)]())?_0x5aa82a['push']({'path':_0x84de71+_0x2fd1a3(0x1ef)+_0x5118d7+']','message':_0x2fd1a3(0x2f2)+_0x43e44a['trim']()+'.'}):_0x521cde[_0x2fd1a3(0x238)](_0x43e44a[_0x2fd1a3(0x1d3)]());});}validateStringArray(_0x50bfac['cc'][_0x59b4e9(0x29b)],_0x84de71+_0x59b4e9(0x202),_0x5aa82a);}function validateStringArray(_0x440f32,_0x4267ac,_0xf5d352){const _0x2be6de=a287_0x8cf25c;if(_0x440f32===undefined)return;if(!Array['isArray'](_0x440f32)){_0xf5d352[_0x2be6de(0x1db)]({'path':_0x4267ac,'message':_0x2be6de(0x2e7)});return;}const _0x19f924=new Set();_0x440f32[_0x2be6de(0x236)]((_0x49b30c,_0x452f3e)=>{const _0x25a64b=_0x2be6de;if(typeof _0x49b30c!==_0x25a64b(0x1da)||_0x49b30c[_0x25a64b(0x1d3)]()==='')_0xf5d352[_0x25a64b(0x1db)]({'path':_0x4267ac+'['+_0x452f3e+']','message':_0x25a64b(0x2d8)});else _0x19f924[_0x25a64b(0x2ae)](_0x49b30c[_0x25a64b(0x1d3)]())?_0xf5d352[_0x25a64b(0x1db)]({'path':_0x4267ac+'['+_0x452f3e+']','message':_0x25a64b(0x295)+_0x49b30c[_0x25a64b(0x1d3)]()+'.'}):_0x19f924['add'](_0x49b30c[_0x25a64b(0x1d3)]());});}function validateNotificationConfig(_0x2f8761,_0x2ff5c6,_0x2c3afa){const _0x56b86a=a287_0x8cf25c;if(!isRecord(_0x2f8761)){_0x2c3afa['push']({'path':_0x2ff5c6,'message':_0x56b86a(0x2bf)});return;}if(_0x2f8761[_0x56b86a(0x264)]!==undefined&&_0x2f8761[_0x56b86a(0x264)]!==null){if(typeof _0x2f8761[_0x56b86a(0x264)]!=='string')_0x2c3afa['push']({'path':_0x2ff5c6+_0x56b86a(0x31c),'message':'Notification\x20version\x20must\x20be\x20a\x20string.'});else _0x2f8761[_0x56b86a(0x264)][_0x56b86a(0x1d3)]()&&_0x2f8761[_0x56b86a(0x264)][_0x56b86a(0x1d3)]()!=='v1'&&_0x2c3afa[_0x56b86a(0x1db)]({'path':_0x2ff5c6+_0x56b86a(0x31c),'message':_0x56b86a(0x208)+_0x2f8761[_0x56b86a(0x264)]+'.'});}const _0x4e71a3=requireNotificationString(_0x2f8761['configCode'],_0x2ff5c6+_0x56b86a(0x225),_0x56b86a(0x28c),_0x2c3afa);_0x4e71a3?.[_0x56b86a(0x2f9)]('${')&&_0x2c3afa['push']({'path':_0x2ff5c6+_0x56b86a(0x225),'message':'Notification\x20configCode\x20must\x20be\x20a\x20fixed\x20value.'});if(_0x2f8761[_0x56b86a(0x2a6)]!==undefined&&_0x2f8761[_0x56b86a(0x2a6)]!==null){if(typeof _0x2f8761[_0x56b86a(0x2a6)]!==_0x56b86a(0x1da))_0x2c3afa['push']({'path':_0x2ff5c6+_0x56b86a(0x30e),'message':_0x56b86a(0x281)});else!NOTIFICATION_FAILURE_POLICIES[_0x56b86a(0x2ae)](_0x2f8761['failurePolicy'][_0x56b86a(0x1d3)]()[_0x56b86a(0x2f1)]())&&_0x2c3afa[_0x56b86a(0x1db)]({'path':_0x2ff5c6+_0x56b86a(0x30e),'message':_0x56b86a(0x2b9)});}!isRecord(_0x2f8761[_0x56b86a(0x1b9)])?_0x2c3afa[_0x56b86a(0x1db)]({'path':_0x2ff5c6+_0x56b86a(0x1b6),'message':_0x56b86a(0x1e6)}):validateNotificationTemplate(_0x2f8761[_0x56b86a(0x1b9)],_0x2ff5c6+_0x56b86a(0x1b6),_0x2c3afa),validateNotificationRecipients(_0x2f8761[_0x56b86a(0x2c5)],_0x2ff5c6+_0x56b86a(0x2d1),_0x2c3afa);}function validateNotificationTemplate(_0x2f83b0,_0xe9dcbe,_0x56d5cb){const _0x1d6366=a287_0x8cf25c;for(const _0x53126e of[_0x1d6366(0x2f8),_0x1d6366(0x2dd)]){const _0x2dc9c6=requireNotificationString(_0x2f83b0[_0x53126e],_0xe9dcbe+'.'+_0x53126e,'Notification\x20template.'+_0x53126e+_0x1d6366(0x1f7),_0x56d5cb);if(_0x2dc9c6)validateNotificationPlaceholders(_0x2dc9c6,_0xe9dcbe+'.'+_0x53126e,_0x56d5cb);}_0x2f83b0[_0x1d6366(0x1e8)]!==undefined&&_0x2f83b0[_0x1d6366(0x1e8)]!==null&&(typeof _0x2f83b0[_0x1d6366(0x1e8)]!==_0x1d6366(0x1da)?_0x56d5cb['push']({'path':_0xe9dcbe+_0x1d6366(0x244),'message':'Notification\x20template.detailMarkdown\x20must\x20be\x20a\x20string.'}):validateNotificationPlaceholders(_0x2f83b0[_0x1d6366(0x1e8)],_0xe9dcbe+_0x1d6366(0x244),_0x56d5cb)),validateNotificationFacts(_0x2f83b0[_0x1d6366(0x1bb)],_0xe9dcbe+_0x1d6366(0x22b),_0x56d5cb),validateNotificationActions(_0x2f83b0[_0x1d6366(0x2bb)],_0xe9dcbe+_0x1d6366(0x2fd),_0x56d5cb);}function validateNotificationFacts(_0x1516eb,_0x3b2618,_0xf7a46b){const _0x263ae3=a287_0x8cf25c;if(_0x1516eb===undefined||_0x1516eb===null)return;if(!Array[_0x263ae3(0x2df)](_0x1516eb)){_0xf7a46b['push']({'path':_0x3b2618,'message':'Notification\x20template.facts\x20must\x20be\x20an\x20array.'});return;}_0x1516eb[_0x263ae3(0x318)]>MAX_NOTIFICATION_FACTS&&_0xf7a46b['push']({'path':_0x3b2618,'message':'Notification\x20template\x20supports\x20at\x20most\x20'+MAX_NOTIFICATION_FACTS+_0x263ae3(0x27c)}),_0x1516eb[_0x263ae3(0x236)]((_0x6d0d2f,_0x456178)=>{const _0xf43599=_0x263ae3,_0x4dbc39=_0x3b2618+'['+_0x456178+']';if(!isRecord(_0x6d0d2f)){_0xf7a46b['push']({'path':_0x4dbc39,'message':_0xf43599(0x301)});return;}for(const _0x1c8c4b of[_0xf43599(0x311),_0xf43599(0x1c0)]){const _0x314c55=requireNotificationString(_0x6d0d2f[_0x1c8c4b],_0x4dbc39+'.'+_0x1c8c4b,_0xf43599(0x2b1)+_0x1c8c4b+'\x20is\x20required.',_0xf7a46b);_0x314c55&&validateNotificationPlaceholders(_0x314c55,_0x4dbc39+'.'+_0x1c8c4b,_0xf7a46b);}});}function validateNotificationActions(_0x4cef8a,_0x308bc4,_0x260cd9){const _0x194175=a287_0x8cf25c;if(_0x4cef8a===undefined||_0x4cef8a===null)return;if(!Array['isArray'](_0x4cef8a)){_0x260cd9[_0x194175(0x1db)]({'path':_0x308bc4,'message':_0x194175(0x272)});return;}_0x4cef8a[_0x194175(0x318)]>MAX_NOTIFICATION_ACTIONS&&_0x260cd9[_0x194175(0x1db)]({'path':_0x308bc4,'message':_0x194175(0x2a5)+MAX_NOTIFICATION_ACTIONS+_0x194175(0x25b)}),_0x4cef8a[_0x194175(0x236)]((_0x240550,_0x1c5a0d)=>{const _0xf59a5d=_0x194175,_0xc80927=_0x308bc4+'['+_0x1c5a0d+']';if(!isRecord(_0x240550)){_0x260cd9['push']({'path':_0xc80927,'message':'Notification\x20action\x20must\x20be\x20an\x20object.'});return;}const _0x261f90=requireNotificationString(_0x240550[_0xf59a5d(0x26b)],_0xc80927+_0xf59a5d(0x1fc),_0xf59a5d(0x2aa),_0x260cd9);if(_0x261f90)validateNotificationPlaceholders(_0x261f90,_0xc80927+_0xf59a5d(0x1fc),_0x260cd9);const _0x7dd010=requireNotificationString(_0x240550[_0xf59a5d(0x23c)],_0xc80927+_0xf59a5d(0x26e),'Notification\x20action.url\x20is\x20required.',_0x260cd9);if(!_0x7dd010)return;validateNotificationPlaceholders(_0x7dd010,_0xc80927+_0xf59a5d(0x26e),_0x260cd9),!/^https?:\/\//i[_0xf59a5d(0x1ea)](_0x7dd010)&&!NOTIFICATION_ACTION_URL_PLACEHOLDER_PATTERN[_0xf59a5d(0x1ea)](_0x7dd010)&&_0x260cd9['push']({'path':_0xc80927+_0xf59a5d(0x26e),'message':_0xf59a5d(0x2b4)});});}function validateNotificationRecipients(_0x114794,_0x170707,_0x1e6077){const _0x486554=a287_0x8cf25c;if(_0x114794===undefined||_0x114794===null)return;if(!Array[_0x486554(0x2df)](_0x114794)){_0x1e6077[_0x486554(0x1db)]({'path':_0x170707,'message':_0x486554(0x228)});return;}let _0x20d9a1=![];_0x114794[_0x486554(0x236)]((_0x5ca662,_0xeb077c)=>{const _0x20885e=_0x486554,_0x327cf3=_0x170707+'['+_0xeb077c+']';if(!isRecord(_0x5ca662)){_0x1e6077['push']({'path':_0x327cf3,'message':_0x20885e(0x294)});return;}const _0x2e415f=requireNotificationString(_0x5ca662[_0x20885e(0x23e)],_0x327cf3+'.type',_0x20885e(0x299),_0x1e6077);_0x2e415f&&!NOTIFICATION_RECIPIENT_TYPES[_0x20885e(0x2ae)](_0x2e415f['toUpperCase']())&&_0x1e6077['push']({'path':_0x327cf3+_0x20885e(0x20e),'message':_0x20885e(0x263)});let _0x26839d='TO';_0x5ca662[_0x20885e(0x1f2)]!==undefined&&_0x5ca662['role']!==null&&(typeof _0x5ca662[_0x20885e(0x1f2)]!=='string'?(_0x1e6077[_0x20885e(0x1db)]({'path':_0x327cf3+_0x20885e(0x2d4),'message':_0x20885e(0x24e)}),_0x26839d=''):(_0x26839d=_0x5ca662['role'][_0x20885e(0x1d3)]()[_0x20885e(0x2f1)](),!NOTIFICATION_RECIPIENT_ROLES[_0x20885e(0x2ae)](_0x26839d)&&_0x1e6077[_0x20885e(0x1db)]({'path':_0x327cf3+_0x20885e(0x2d4),'message':_0x20885e(0x1e9)})));if(_0x26839d==='TO')_0x20d9a1=!![];const _0x26c0ef=requireNotificationString(_0x5ca662[_0x20885e(0x1c0)],_0x327cf3+_0x20885e(0x24c),'Notification\x20recipient.value\x20is\x20required.',_0x1e6077);_0x26c0ef&&validateNotificationPlaceholders(_0x26c0ef,_0x327cf3+_0x20885e(0x24c),_0x1e6077);}),_0x114794[_0x486554(0x318)]>0x0&&!_0x20d9a1&&_0x1e6077[_0x486554(0x1db)]({'path':_0x170707,'message':_0x486554(0x2c4)});}function requireNotificationString(_0x1dfca1,_0x1f09f1,_0xa06c4f,_0x13bc0c){const _0x315ef3=a287_0x8cf25c;if(typeof _0x1dfca1!==_0x315ef3(0x1da)||_0x1dfca1[_0x315ef3(0x1d3)]()==='')return _0x13bc0c[_0x315ef3(0x1db)]({'path':_0x1f09f1,'message':_0xa06c4f}),undefined;return _0x1dfca1[_0x315ef3(0x1d3)]();}function validateNotificationPlaceholders(_0x594adb,_0x2b75b1,_0x2b9d58){const _0x463c15=a287_0x8cf25c;for(const _0x581a5c of _0x594adb[_0x463c15(0x1f0)](NOTIFICATION_PLACEHOLDER_PATTERN)){const _0x402758=_0x581a5c[0x1]?.['trim']()??'',_0x5af08b=_0x402758[_0x463c15(0x203)]('.'),_0x1e1613=_0x5af08b>=0x0?_0x402758[_0x463c15(0x1be)](0x0,_0x5af08b):_0x402758,_0x5d3c11=_0x5af08b>=0x0?_0x402758[_0x463c15(0x1be)](_0x5af08b+0x1)[_0x463c15(0x1d3)]():'';(![_0x463c15(0x1ca),_0x463c15(0x1f9),_0x463c15(0x2b3)][_0x463c15(0x2f9)](_0x1e1613)||_0x5d3c11==='')&&_0x2b9d58['push']({'path':_0x2b75b1,'message':'Unsupported\x20notification\x20placeholder:\x20'+_0x581a5c[0x0]+'.'});}_0x594adb[_0x463c15(0x269)](NOTIFICATION_PLACEHOLDER_PATTERN,'')[_0x463c15(0x2f9)]('${')&&_0x2b9d58['push']({'path':_0x2b75b1,'message':'Notification\x20text\x20contains\x20a\x20malformed\x20placeholder.'});}function validateEdge(_0x5e21bd,_0x1d18bd,_0x2bd912){const _0xaaa425=a287_0x8cf25c;_0x5e21bd['name']!==undefined&&typeof _0x5e21bd[_0xaaa425(0x271)]!==_0xaaa425(0x1da)&&_0x2bd912[_0xaaa425(0x1db)]({'path':_0x1d18bd+_0xaaa425(0x23f),'message':_0xaaa425(0x2d2)}),_0x5e21bd['defaultFlow']!==undefined&&typeof _0x5e21bd['defaultFlow']!=='boolean'&&_0x2bd912[_0xaaa425(0x1db)]({'path':_0x1d18bd+_0xaaa425(0x24d),'message':_0xaaa425(0x243)}),_0x5e21bd[_0xaaa425(0x1e3)]!==undefined&&(!Array[_0xaaa425(0x2df)](_0x5e21bd[_0xaaa425(0x1e3)])?_0x2bd912['push']({'path':_0x1d18bd+_0xaaa425(0x1b8),'message':'waypoints\x20must\x20be\x20an\x20array.'}):_0x5e21bd[_0xaaa425(0x1e3)][_0xaaa425(0x236)]((_0x31bba9,_0x322fb3)=>{const _0x4543be=_0xaaa425;if(!isRecord(_0x31bba9)){_0x2bd912[_0x4543be(0x1db)]({'path':_0x1d18bd+_0x4543be(0x1e5)+_0x322fb3+']','message':_0x4543be(0x1c4)});return;}for(const _0x400d97 of['x','y']){const _0x2e7ee0=_0x31bba9[_0x400d97];(typeof _0x2e7ee0!==_0x4543be(0x22f)||!Number['isFinite'](_0x2e7ee0))&&_0x2bd912[_0x4543be(0x1db)]({'path':_0x1d18bd+'.waypoints['+_0x322fb3+'].'+_0x400d97,'message':_0x4543be(0x220)+_0x400d97+_0x4543be(0x200)});}})),_0x5e21bd[_0xaaa425(0x297)]!==undefined&&!CONDITION_TYPES['has'](_0x5e21bd[_0xaaa425(0x297)])&&_0x2bd912[_0xaaa425(0x1db)]({'path':_0x1d18bd+_0xaaa425(0x260),'message':_0xaaa425(0x21f)+String(_0x5e21bd[_0xaaa425(0x297)])+'.'}),_0x5e21bd[_0xaaa425(0x297)]===_0xaaa425(0x21b)&&(typeof _0x5e21bd[_0xaaa425(0x1d1)]!==_0xaaa425(0x1da)||_0x5e21bd[_0xaaa425(0x1d1)][_0xaaa425(0x1d3)]()==='')&&_0x2bd912[_0xaaa425(0x1db)]({'path':_0x1d18bd+_0xaaa425(0x30a),'message':_0xaaa425(0x1e1)}),_0x5e21bd[_0xaaa425(0x27b)]===!![]&&_0x5e21bd[_0xaaa425(0x297)]!==_0xaaa425(0x1fe)&&_0x2bd912[_0xaaa425(0x1db)]({'path':_0x1d18bd+_0xaaa425(0x24d),'message':_0xaaa425(0x1c9)}),_0x5e21bd[_0xaaa425(0x27b)]===!![]&&typeof _0x5e21bd['expression']===_0xaaa425(0x1da)&&_0x5e21bd['expression'][_0xaaa425(0x1d3)]()!==''&&_0x2bd912['push']({'path':_0x1d18bd+'.expression','message':'A\x20default\x20flow\x20must\x20not\x20have\x20an\x20expression.'});}function validateGraphShape(_0x10816f,_0x2a4a90,_0x241e39,_0x2def50,_0x4f0158,_0x50874d,_0x336d82){const _0x38ed16=a287_0x8cf25c;for(const [_0x4b87d7,_0x544632]of _0x10816f){const _0x2ddc28=_0x4f0158[_0x38ed16(0x22d)](_0x4b87d7)??[],_0x380d71=_0x2def50[_0x38ed16(0x22d)](_0x4b87d7)??[];_0x544632['type']!==_0x38ed16(0x209)&&_0x2ddc28[_0x38ed16(0x318)]===0x0&&_0x336d82[_0x38ed16(0x1db)]({'path':'flowJson.nodes.'+_0x4b87d7,'message':_0x38ed16(0x21e)});_0x544632[_0x38ed16(0x23e)]!==_0x38ed16(0x20c)&&_0x380d71['length']===0x0&&_0x336d82['push']({'path':_0x38ed16(0x30d)+_0x4b87d7,'message':_0x38ed16(0x29f)});_0x544632[_0x38ed16(0x23e)]===_0x38ed16(0x209)&&_0x2ddc28[_0x38ed16(0x318)]>0x0&&_0x336d82['push']({'path':_0x38ed16(0x30d)+_0x4b87d7,'message':_0x38ed16(0x224)});_0x544632[_0x38ed16(0x23e)]===_0x38ed16(0x20c)&&_0x380d71[_0x38ed16(0x318)]>0x0&&_0x336d82[_0x38ed16(0x1db)]({'path':'flowJson.nodes.'+_0x4b87d7,'message':_0x38ed16(0x2b8)});if(_0x544632[_0x38ed16(0x23e)]==='CONDITION'){_0x380d71['length']<0x2&&_0x336d82[_0x38ed16(0x1db)]({'path':_0x38ed16(0x30d)+_0x4b87d7,'message':'CONDITION\x20node\x20requires\x20at\x20least\x20two\x20outgoing\x20edges.'});const _0x8f7b02=_0x380d71['filter'](_0x40ec54=>_0x40ec54['defaultFlow']===!![]);_0x8f7b02['length']!==0x1&&_0x336d82[_0x38ed16(0x1db)]({'path':_0x38ed16(0x30d)+_0x4b87d7,'message':'CONDITION\x20node\x20requires\x20exactly\x20one\x20default\x20outgoing\x20edge.'});if(_0x8f7b02[_0x38ed16(0x318)]===0x1){const _0x470ab5=_0x8f7b02[0x0],_0x170143=_0x50874d[_0x38ed16(0x22d)](_0x470ab5)??'flowJson.edges';_0x470ab5[_0x38ed16(0x297)]!==_0x38ed16(0x1fe)&&_0x336d82['push']({'path':_0x170143+_0x38ed16(0x260),'message':_0x38ed16(0x30c)});_0x470ab5[_0x38ed16(0x1d1)]!==undefined&&_0x336d82[_0x38ed16(0x1db)]({'path':_0x170143+_0x38ed16(0x30a),'message':'CONDITION\x20default\x20edge\x20must\x20not\x20define\x20expression.'});for(const _0x3132e4 of _0x380d71){if(_0x3132e4===_0x470ab5)continue;const _0x33e2f2=_0x50874d[_0x38ed16(0x22d)](_0x3132e4)??_0x38ed16(0x247);if(_0x3132e4[_0x38ed16(0x297)]!==_0x38ed16(0x21b))_0x336d82['push']({'path':_0x33e2f2+_0x38ed16(0x260),'message':'CONDITION\x20non-default\x20edge\x20must\x20use\x20conditionType\x20EXPRESSION.'});else(typeof _0x3132e4[_0x38ed16(0x1d1)]!=='string'||_0x3132e4[_0x38ed16(0x1d1)][_0x38ed16(0x1d3)]()==='')&&_0x336d82[_0x38ed16(0x1db)]({'path':_0x33e2f2+'.expression','message':_0x38ed16(0x22a)});}}}if(_0x544632[_0x38ed16(0x23e)]===_0x38ed16(0x307)&&(_0x544632[_0x38ed16(0x2a0)]??'APPROVAL')===_0x38ed16(0x1f1)){if(_0x380d71[_0x38ed16(0x318)]!==0x1)_0x336d82[_0x38ed16(0x1db)]({'path':_0x38ed16(0x30d)+_0x4b87d7,'message':_0x38ed16(0x1d6)});else{const _0x4c8621=_0x380d71[0x0];((_0x4c8621[_0x38ed16(0x297)]??_0x38ed16(0x1fe))!==_0x38ed16(0x1fe)||_0x4c8621['defaultFlow']===!![]||typeof _0x4c8621[_0x38ed16(0x1d1)]===_0x38ed16(0x1da)&&_0x4c8621[_0x38ed16(0x1d1)][_0x38ed16(0x1d3)]()!=='')&&_0x336d82[_0x38ed16(0x1db)]({'path':_0x50874d[_0x38ed16(0x22d)](_0x4c8621)??_0x38ed16(0x247),'message':_0x38ed16(0x248)});}}else{if(_0x544632[_0x38ed16(0x23e)]===_0x38ed16(0x307)){const _0x4c734d=_0x380d71[_0x38ed16(0x2ab)](_0x32fb0f=>_0x32fb0f[_0x38ed16(0x297)]??_0x38ed16(0x1fe)),_0x5508de=_0x4c734d[_0x38ed16(0x255)](_0x555a02=>_0x555a02!=='APPROVED'&&_0x555a02!=='REJECTED');_0x5508de[_0x38ed16(0x318)]>0x0&&_0x336d82[_0x38ed16(0x1db)]({'path':_0x38ed16(0x30d)+_0x4b87d7,'message':_0x38ed16(0x206)}),_0x4c734d[_0x38ed16(0x255)](_0x17db38=>_0x17db38===_0x38ed16(0x253))['length']!==0x1&&_0x336d82[_0x38ed16(0x1db)]({'path':_0x38ed16(0x30d)+_0x4b87d7,'message':'APPROVAL\x20node\x20requires\x20exactly\x20one\x20APPROVED\x20outgoing\x20edge.'}),_0x4c734d[_0x38ed16(0x255)](_0x169093=>_0x169093==='REJECTED')[_0x38ed16(0x318)]!==0x1&&_0x336d82[_0x38ed16(0x1db)]({'path':_0x38ed16(0x30d)+_0x4b87d7,'message':'APPROVAL\x20node\x20requires\x20exactly\x20one\x20REJECTED\x20outgoing\x20edge.'}),_0x380d71[_0x38ed16(0x2cb)](_0x3bc2f7=>_0x3bc2f7['defaultFlow']===!![])&&_0x336d82['push']({'path':'flowJson.nodes.'+_0x4b87d7,'message':_0x38ed16(0x232)});}}}const _0x1b9a71=new Set(),_0x5345dd=_0x8884c4=>{const _0x97230=_0x38ed16;if(_0x1b9a71[_0x97230(0x2ae)](_0x8884c4))return;_0x1b9a71[_0x97230(0x238)](_0x8884c4);for(const _0x351614 of _0x2def50[_0x97230(0x22d)](_0x8884c4)??[]){const _0x281752=resolveEdgeEndpoint(_0x351614[_0x97230(0x25f)],_0x351614[_0x97230(0x25e)]);if(_0x281752&&_0x10816f[_0x97230(0x2ae)](_0x281752))_0x5345dd(_0x281752);}};_0x5345dd(_0x2a4a90);for(const _0x198a36 of _0x10816f[_0x38ed16(0x29c)]()){!_0x1b9a71['has'](_0x198a36)&&_0x336d82[_0x38ed16(0x1db)]({'path':_0x38ed16(0x30d)+_0x198a36,'message':_0x38ed16(0x275)});}const _0xc9ad1=_0x241e39[_0x38ed16(0x2cb)](_0x272282=>_0x1b9a71[_0x38ed16(0x2ae)](_0x272282));if(!_0xc9ad1){_0x336d82[_0x38ed16(0x1db)]({'path':'flowJson.edges','message':'No\x20END\x20node\x20is\x20reachable\x20from\x20START.'});return;}const _0x35102a=new Set(),_0x51f402=_0x22c912=>{const _0x11195f=_0x38ed16;if(_0x35102a[_0x11195f(0x2ae)](_0x22c912))return;_0x35102a[_0x11195f(0x238)](_0x22c912);for(const _0x4d1ba8 of _0x4f0158['get'](_0x22c912)??[]){const _0x5ac9cd=resolveEdgeEndpoint(_0x4d1ba8[_0x11195f(0x25d)],_0x4d1ba8[_0x11195f(0x26f)]);if(_0x5ac9cd&&_0x10816f['has'](_0x5ac9cd))_0x51f402(_0x5ac9cd);}};for(const _0x2bfeb1 of _0x241e39){if(_0x10816f['has'](_0x2bfeb1))_0x51f402(_0x2bfeb1);}for(const _0x2e9eab of _0x1b9a71){!_0x35102a[_0x38ed16(0x2ae)](_0x2e9eab)&&_0x336d82[_0x38ed16(0x1db)]({'path':_0x38ed16(0x30d)+_0x2e9eab,'message':_0x38ed16(0x20a)});}}function validateApprovalResults(_0xb8ad,_0x3e94ca,_0x24684f,_0x455aa4){const _0x2dd0c1=a287_0x8cf25c;if(_0x3e94ca===0x0)return;const _0x1dfee0=new Set(_0x24684f[_0x2dd0c1(0x2ab)](_0x5cf086=>_0xb8ad['get'](_0x5cf086)?.[_0x2dd0c1(0x2e8)])[_0x2dd0c1(0x255)](_0x3b80f2=>typeof _0x3b80f2===_0x2dd0c1(0x1da)));for(const _0x52ee4d of['APPROVED',_0x2dd0c1(0x2cf)]){!_0x1dfee0[_0x2dd0c1(0x2ae)](_0x52ee4d)&&_0x455aa4[_0x2dd0c1(0x1db)]({'path':_0x2dd0c1(0x2e0),'message':'Approval\x20flow\x20requires\x20an\x20END\x20node\x20with\x20result\x20'+_0x52ee4d+'.'});}}function validateScriptResultReferences(_0x22e431,_0x376a15,_0xaa4b21,_0x46ce93,_0xb20e78,_0x366690,_0x4334a0){const _0x2e9e8a=a287_0x8cf25c;if(_0x366690[_0x2e9e8a(0x2b0)]===0x0)return;const _0x4b38c7=new Set(),_0x2ac6d5=_0x2a027d=>{const _0x1b02ba=_0x2e9e8a;if(!_0x4b38c7[_0x1b02ba(0x2ae)](_0x2a027d)&&_0x22e431['has'](_0x2a027d)){_0x4b38c7['add'](_0x2a027d);for(const _0x267b49 of _0xaa4b21['get'](_0x2a027d)??[]){const _0x512f15=resolveEdgeEndpoint(_0x267b49[_0x1b02ba(0x25f)],_0x267b49['targetNodeId']);if(_0x512f15)_0x2ac6d5(_0x512f15);}}};_0x2ac6d5(_0x376a15);const _0xc56bc2=new Map();for(const _0xcdfeec of _0x4b38c7){_0xc56bc2[_0x2e9e8a(0x1e2)](_0xcdfeec,_0xcdfeec===_0x376a15?new Set([_0x376a15]):new Set(_0x4b38c7));}let _0x4f276a=!![];while(_0x4f276a){_0x4f276a=![];for(const _0x5533fa of _0x4b38c7){if(_0x5533fa===_0x376a15)continue;const _0x201794=(_0x46ce93[_0x2e9e8a(0x22d)](_0x5533fa)??[])[_0x2e9e8a(0x2ab)](_0x4375bb=>resolveEdgeEndpoint(_0x4375bb[_0x2e9e8a(0x25d)],_0x4375bb[_0x2e9e8a(0x26f)]))[_0x2e9e8a(0x255)](_0x18ad08=>Boolean(_0x18ad08&&_0x4b38c7[_0x2e9e8a(0x2ae)](_0x18ad08)));if(_0x201794[_0x2e9e8a(0x318)]===0x0)continue;const _0x2f39a3=new Set(_0xc56bc2[_0x2e9e8a(0x22d)](_0x201794[0x0])??[]);for(const _0x30ad1d of _0x201794['slice'](0x1)){const _0x2c5264=_0xc56bc2[_0x2e9e8a(0x22d)](_0x30ad1d)??new Set();for(const _0x51a5ed of _0x2f39a3){if(!_0x2c5264[_0x2e9e8a(0x2ae)](_0x51a5ed))_0x2f39a3[_0x2e9e8a(0x1c5)](_0x51a5ed);}}_0x2f39a3[_0x2e9e8a(0x238)](_0x5533fa);const _0x120ee0=_0xc56bc2['get'](_0x5533fa);!setsEqual(_0x120ee0,_0x2f39a3)&&(_0xc56bc2[_0x2e9e8a(0x1e2)](_0x5533fa,_0x2f39a3),_0x4f276a=!![]);}}for(const [_0x5c694d,_0x203253]of _0xaa4b21){const _0x19cfd5=_0xc56bc2[_0x2e9e8a(0x22d)](_0x5c694d);if(!_0x19cfd5)continue;for(const _0x4855db of _0x203253){if(_0x4855db[_0x2e9e8a(0x297)]!==_0x2e9e8a(0x21b)||typeof _0x4855db['expression']!=='string')continue;for(const [_0x3108e3,_0x2b270]of _0x366690){expressionReferencesVariable(_0x4855db['expression'],_0x3108e3)&&!_0x19cfd5[_0x2e9e8a(0x2ae)](_0x2b270)&&_0x4334a0[_0x2e9e8a(0x1db)]({'path':(_0xb20e78[_0x2e9e8a(0x22d)](_0x4855db)??_0x2e9e8a(0x247))+_0x2e9e8a(0x30a),'message':_0x2e9e8a(0x256)+_0x3108e3+_0x2e9e8a(0x2be)+_0x2b270+'\x20is\x20not\x20on\x20every\x20upstream\x20path\x20to\x20'+_0x5c694d+'.'});}}}}function expressionReferencesVariable(_0x35fb5d,_0x3b5fb6){const _0x522ffb=a287_0x8cf25c;let _0x293458=0x0;while(_0x293458<_0x35fb5d[_0x522ffb(0x318)]){const _0x280fff=_0x35fb5d[_0x293458];if(_0x280fff==='\x27'||_0x280fff==='\x22'){_0x293458=skipQuotedExpressionSegment(_0x35fb5d,_0x293458,_0x280fff);continue;}if(!/[A-Za-z_]/['test'](_0x280fff)){_0x293458+=0x1;continue;}const _0x227317=_0x293458;_0x293458+=0x1;while(_0x293458<_0x35fb5d['length']&&/[A-Za-z0-9_]/[_0x522ffb(0x1ea)](_0x35fb5d[_0x293458])){_0x293458+=0x1;}if(_0x35fb5d[_0x522ffb(0x1be)](_0x227317,_0x293458)!==_0x3b5fb6)continue;let _0x54ce7c=_0x227317-0x1;while(_0x54ce7c>=0x0&&/\s/[_0x522ffb(0x1ea)](_0x35fb5d[_0x54ce7c])){_0x54ce7c-=0x1;}if(_0x35fb5d[_0x54ce7c]!=='.')return!![];}return![];}function skipQuotedExpressionSegment(_0x5152b6,_0x2ea36e,_0x322f17){let _0x141381=_0x2ea36e+0x1;while(_0x141381<_0x5152b6['length']){if(_0x5152b6[_0x141381]==='\x5c'){_0x141381+=0x2;continue;}if(_0x5152b6[_0x141381]===_0x322f17)return _0x141381+0x1;_0x141381+=0x1;}return _0x141381;}function resolveEffectiveResultVariable(_0x3f41cf,_0x27d974){const _0x5eba17=a287_0x8cf25c;if(_0x3f41cf===undefined||_0x3f41cf===null||_0x27d974&&_0x3f41cf==='')return DEFAULT_SCRIPT_RESULT_VARIABLE;if(typeof _0x3f41cf!=='string'||!VARIABLE_PATTERN[_0x5eba17(0x1ea)](_0x3f41cf)||RESERVED_RESULT_VARIABLES['has'](_0x3f41cf)||_0x3f41cf['startsWith'](_0x5eba17(0x284)))return undefined;return _0x3f41cf;}function registerResultVariableOwner(_0x4acc40,_0x3dc654,_0x54dfc0,_0x36f9d3){const _0x34f8ad=a287_0x8cf25c;if(_0x4acc40[_0x34f8ad(0x2ae)](_0x3dc654)){_0x36f9d3[_0x34f8ad(0x1db)]({'path':'flowJson.nodes','message':_0x34f8ad(0x20b)+_0x3dc654+'.'});return;}_0x4acc40[_0x34f8ad(0x1e2)](_0x3dc654,_0x54dfc0);}function setsEqual(_0x48fd59,_0x2187c0){const _0x393492=a287_0x8cf25c;return _0x48fd59['size']===_0x2187c0[_0x393492(0x2b0)]&&[..._0x48fd59][_0x393492(0x2b6)](_0x8c3b79=>_0x2187c0[_0x393492(0x2ae)](_0x8c3b79));}function isValidUserId(_0x5e4754){const _0x1638ab=a287_0x8cf25c;if(typeof _0x5e4754===_0x1638ab(0x1da))return _0x5e4754[_0x1638ab(0x1d3)]()['length']>0x0;return Number[_0x1638ab(0x1fd)](_0x5e4754)&&Number(_0x5e4754)>0x0;}function resolveEdgeEndpoint(_0x2fefcc,_0x1da43a){const _0x48862c=a287_0x8cf25c;if(typeof _0x2fefcc===_0x48862c(0x1da)&&_0x2fefcc['trim']())return _0x2fefcc['trim']();if(typeof _0x1da43a===_0x48862c(0x1da)&&_0x1da43a['trim']())return _0x1da43a['trim']();return undefined;}function removeEmptyMetadata(_0x250efc,_0x455f4f,_0x5b17a1,_0x23df5c){const _0x4c1569=a287_0x8cf25c;if(Array[_0x4c1569(0x2df)](_0x250efc)){_0x250efc[_0x4c1569(0x236)]((_0x1d2f7b,_0x3ef439)=>removeEmptyMetadata(_0x1d2f7b,_0x455f4f+'['+_0x3ef439+']',_0x5b17a1,_0x23df5c));return;}if(!isRecord(_0x250efc))return;for(const [_0x569bd5,_0x1b9457]of Object[_0x4c1569(0x306)](_0x250efc)){const _0x387dd3=_0x455f4f+'.'+_0x569bd5;if(_0x569bd5===_0x4c1569(0x1dd)&&isEmptyJsonValue(_0x1b9457)){delete _0x250efc[_0x569bd5],_0x23df5c[_0x4c1569(0x1db)](_0x387dd3),_0x5b17a1['push']({'code':_0x4c1569(0x1f4),'path':_0x387dd3,'message':_0x387dd3+_0x4c1569(0x251)});continue;}removeEmptyMetadata(_0x1b9457,_0x387dd3,_0x5b17a1,_0x23df5c);}}function isEmptyJsonValue(_0x87eedf){const _0x2c7e66=a287_0x8cf25c;if(_0x87eedf===null||_0x87eedf===undefined)return!![];if(typeof _0x87eedf===_0x2c7e66(0x1da))return _0x87eedf[_0x2c7e66(0x1d3)]()==='';if(Array[_0x2c7e66(0x2df)](_0x87eedf))return _0x87eedf[_0x2c7e66(0x318)]===0x0;return isRecord(_0x87eedf)&&Object[_0x2c7e66(0x29c)](_0x87eedf)['length']===0x0;}function isRecord(_0x37e695){const _0xc3bcb6=a287_0x8cf25c;return typeof _0x37e695===_0xc3bcb6(0x2c7)&&_0x37e695!==null&&!Array[_0xc3bcb6(0x2df)](_0x37e695);}function cloneJsonValue(_0x47aa71){const _0x470dbe=a287_0x8cf25c;return JSON['parse'](JSON[_0x470dbe(0x246)](_0x47aa71));}export async function readFlowConfigFile(_0x1cf172){const _0x20d176=a287_0x8cf25c,_0x50bcd1=await readFile(resolve(_0x1cf172),_0x20d176(0x219));return JSON[_0x20d176(0x291)](_0x50bcd1);}
@@ -1 +1 @@
1
- const a288_0x19ee56=a288_0x2cc1;(function(_0x33c054,_0x2809a3){const _0x40a1e6=a288_0x2cc1,_0x53da08=_0x33c054();while(!![]){try{const _0x171d95=parseInt(_0x40a1e6(0x1ac))/0x1*(-parseInt(_0x40a1e6(0x1d3))/0x2)+parseInt(_0x40a1e6(0x1bf))/0x3*(-parseInt(_0x40a1e6(0x199))/0x4)+-parseInt(_0x40a1e6(0x1d2))/0x5+parseInt(_0x40a1e6(0x1c9))/0x6*(parseInt(_0x40a1e6(0x192))/0x7)+-parseInt(_0x40a1e6(0x1b8))/0x8+-parseInt(_0x40a1e6(0x1d1))/0x9*(-parseInt(_0x40a1e6(0x1a4))/0xa)+parseInt(_0x40a1e6(0x1a1))/0xb*(parseInt(_0x40a1e6(0x1ca))/0xc);if(_0x171d95===_0x2809a3)break;else _0x53da08['push'](_0x53da08['shift']());}catch(_0xa95792){_0x53da08['push'](_0x53da08['shift']());}}}(a288_0x45d9,0xe0a2e));import{randomUUID}from'node:crypto';import{mkdir,readFile,rename,stat,unlink,writeFile}from'node:fs/promises';import{dirname,resolve}from'node:path';import{TextDecoder}from'node:util';function a288_0x45d9(){const _0x47f3ec=['113QNlZFF','Instant\x20API\x20policy\x20file\x20exceeds\x20the\x201\x20MiB\x20CLI\x20limit.','force','Review\x20local\x20changes,\x20then\x20rerun\x20with\x20--force\x20--yes\x20if\x20replacement\x20is\x20intended.','policyRoot','allow','decode','rules','code','utf8','pid','defaults','8490296YJYdvv','policy.json','includes','Instant\x20API\x20policy\x20file\x20is\x20not\x20valid\x20JSON:\x20','instant_api_policy_json_invalid','string','Review\x20the\x20file\x20before\x20retrying.','6LiTnOp','Instant\x20API\x20policy\x20file\x20already\x20exists:\x20','unchanged','instantApi','object','trim','overwritten','instant_api_policy_file_unwritable','appCode\x20cannot\x20be\x20used\x20as\x20the\x20fixed\x20Instant\x20API\x20policy\x20directory\x20name.','instant_api_policy_file_invalid','6vqOilM','2664beEpzJ','instant_api_policy_file_missing','Instant\x20API\x20policy\x20file\x20is\x20not\x20valid\x20UTF-8:\x20','version','instant_api_policy_file_unreadable','instant_api_policy_file_too_large','Run\x20`rabetbase\x20instant-api-policy\x20init`\x20or\x20`rabetbase\x20instant-api-policy\x20pull`\x20first.','935433fcgZQt','1895195WcDuBz','20066PzgFzP','instant_api_policy_rules_invalid','3060743ifXpPa','length','Cannot\x20inspect\x20Instant\x20API\x20policy\x20file:\x20','EEXIST','Cannot\x20replace\x20Instant\x20API\x20policy\x20file:\x20','instant_api_policy_version_invalid','policyFilePath','2144172ChduEV','Instant\x20API\x20policy\x20version\x20must\x20be\x20\x221\x22\x20or\x20\x222\x22.','catch','isArray','.tmp','Policy\x20defaults.instantApi\x20is\x20required.','instant_api_policy_app_code_invalid','byteLength','173690MDQNZJ','parse','Instant\x20API\x20policy\x20path\x20is\x20not\x20a\x20regular\x20file:\x20','60auhWCE','instant_api_policy_file_exists','Cannot\x20write\x20Instant\x20API\x20policy\x20file:\x20','stringify','Instant\x20API\x20policy\x20file\x20was\x20created\x20concurrently:\x20','utf-8','appCode','Instant\x20API\x20policy\x20file\x20does\x20not\x20exist:\x20'];a288_0x45d9=function(){return _0x47f3ec;};return a288_0x45d9();}import{findProjectRootDirectory}from'../../context.js';import{CliError}from'../../errors.js';export const INSTANT_API_POLICY_RELATIVE_ROOT='.rabetbase/instant-api-policy';export const INSTANT_API_POLICY_FILE_NAME=a288_0x19ee56(0x1b9);export const MAX_INSTANT_API_POLICY_BYTES=0x400*0x400;export function instantApiPolicyError(_0x227888,_0xc909e2,_0x53fa81){return new CliError(_0x227888,0x1,_0xc909e2,_0x53fa81);}export function loadInstantApiPolicyLocalConfig(_0x507f64,_0x4de7d8){assertSafeAppCode(_0x507f64);const _0x969514=resolve(_0x4de7d8??findProjectRootDirectory()),_0x11c5db=INSTANT_API_POLICY_RELATIVE_ROOT+'/'+_0x507f64+'/'+INSTANT_API_POLICY_FILE_NAME,_0x301dca=resolve(_0x969514,INSTANT_API_POLICY_RELATIVE_ROOT,_0x507f64),_0xf021ca=resolve(_0x301dca,INSTANT_API_POLICY_FILE_NAME);return{'projectRoot':_0x969514,'appCode':_0x507f64,'policyRoot':_0x301dca,'policyFilePath':_0xf021ca,'policyRelativePath':_0x11c5db};}export function createDefaultInstantApiPolicyConfig(_0x57f8de,_0x35688f=a288_0x19ee56(0x1b1)){return assertSafeAppCode(_0x57f8de),{'version':'2','appCode':_0x57f8de,'defaults':{'instantApi':_0x35688f},'rules':[]};}export async function readInstantApiPolicyConfigFile(_0xe20ef0){const _0x9c1d08=a288_0x19ee56;let _0x133530;try{_0x133530=await stat(_0xe20ef0[_0x9c1d08(0x198)]);}catch(_0x584e49){throw instantApiPolicyError(_0x9c1d08(0x1cb),_0x9c1d08(0x1ab)+_0xe20ef0[_0x9c1d08(0x198)],_0x9c1d08(0x1d0));}if(!_0x133530['isFile']())throw instantApiPolicyError(_0x9c1d08(0x1c8),_0x9c1d08(0x1a3)+_0xe20ef0[_0x9c1d08(0x198)]);if(_0x133530['size']>MAX_INSTANT_API_POLICY_BYTES)throw instantApiPolicyError(_0x9c1d08(0x1cf),_0x9c1d08(0x1ad));let _0x3e1b44;try{_0x3e1b44=await readFile(_0xe20ef0['policyFilePath']);}catch{throw instantApiPolicyError(_0x9c1d08(0x1ce),'Cannot\x20read\x20Instant\x20API\x20policy\x20file:\x20'+_0xe20ef0[_0x9c1d08(0x198)]);}if(_0x3e1b44[_0x9c1d08(0x1a0)]>MAX_INSTANT_API_POLICY_BYTES)throw instantApiPolicyError('instant_api_policy_file_too_large',_0x9c1d08(0x1ad));let _0x1c4d4a;try{_0x1c4d4a=new TextDecoder(_0x9c1d08(0x1a9),{'fatal':!![],'ignoreBOM':!![]})[_0x9c1d08(0x1b2)](_0x3e1b44);}catch{throw instantApiPolicyError(_0x9c1d08(0x1c8),_0x9c1d08(0x1cc)+_0xe20ef0[_0x9c1d08(0x198)]);}let _0x9d9baa;try{_0x9d9baa=JSON[_0x9c1d08(0x1a2)](_0x1c4d4a);}catch{throw instantApiPolicyError('instant_api_policy_json_invalid',_0x9c1d08(0x1bb)+_0xe20ef0[_0x9c1d08(0x198)]);}return assertLocalPolicyContract(_0x9d9baa,_0xe20ef0[_0x9c1d08(0x1aa)]);}export async function writeInstantApiPolicyConfigFile(_0x23243a,_0x4a6232,_0x42ed75={}){const _0x1e49fe=a288_0x19ee56,_0x5d0361=assertLocalPolicyContract(_0x4a6232,_0x23243a[_0x1e49fe(0x1aa)]),_0x751ed9=JSON[_0x1e49fe(0x1a7)](_0x5d0361,null,0x2)+'\x0a';if(Buffer['byteLength'](_0x751ed9,_0x1e49fe(0x1b5))>MAX_INSTANT_API_POLICY_BYTES)throw instantApiPolicyError(_0x1e49fe(0x1cf),'Instant\x20API\x20policy\x20file\x20exceeds\x20the\x201\x20MiB\x20CLI\x20limit.');await mkdir(_0x23243a[_0x1e49fe(0x1b0)],{'recursive':!![]});let _0x3c743d;try{_0x3c743d=await readFile(_0x23243a['policyFilePath'],_0x1e49fe(0x1b5));}catch(_0x3e9206){if(!isMissingFile(_0x3e9206))throw instantApiPolicyError(_0x1e49fe(0x1ce),_0x1e49fe(0x194)+_0x23243a[_0x1e49fe(0x198)]);}if(_0x3c743d===_0x751ed9)return{'action':_0x1e49fe(0x1c1),'filePath':_0x23243a[_0x1e49fe(0x198)]};if(_0x3c743d!==undefined&&!_0x42ed75[_0x1e49fe(0x1ae)])throw instantApiPolicyError(_0x1e49fe(0x1a5),_0x1e49fe(0x1c0)+_0x23243a[_0x1e49fe(0x198)],_0x1e49fe(0x1af));if(_0x3c743d===undefined)try{return await writeFile(_0x23243a['policyFilePath'],_0x751ed9,{'encoding':_0x1e49fe(0x1b5),'flag':'wx'}),{'action':'created','filePath':_0x23243a[_0x1e49fe(0x198)]};}catch(_0x299878){if(!isAlreadyExists(_0x299878))throw instantApiPolicyError(_0x1e49fe(0x1c6),_0x1e49fe(0x1a6)+_0x23243a[_0x1e49fe(0x198)]);if(!_0x42ed75['force'])throw instantApiPolicyError(_0x1e49fe(0x1a5),_0x1e49fe(0x1a8)+_0x23243a['policyFilePath'],_0x1e49fe(0x1be));}const _0x5c74b6=resolve(dirname(_0x23243a[_0x1e49fe(0x198)]),'.'+INSTANT_API_POLICY_FILE_NAME+'.'+process[_0x1e49fe(0x1b6)]+'.'+randomUUID()+_0x1e49fe(0x19d));try{await writeFile(_0x5c74b6,_0x751ed9,{'encoding':_0x1e49fe(0x1b5),'flag':'wx'}),await rename(_0x5c74b6,_0x23243a['policyFilePath']);}catch{await unlink(_0x5c74b6)[_0x1e49fe(0x19b)](()=>undefined);throw instantApiPolicyError(_0x1e49fe(0x1c6),_0x1e49fe(0x196)+_0x23243a[_0x1e49fe(0x198)]);}return{'action':_0x1e49fe(0x1c5),'filePath':_0x23243a[_0x1e49fe(0x198)]};}function assertSafeAppCode(_0x4159e2){const _0x5e37a4=a288_0x19ee56,_0x506744=_0x4159e2[_0x5e37a4(0x1c4)]();if(!_0x506744||_0x506744!==_0x4159e2||_0x506744[_0x5e37a4(0x193)]>0x64||_0x506744==='.'||_0x506744==='..'||_0x506744[_0x5e37a4(0x1ba)]('/')||_0x506744['includes']('\x5c')||_0x506744[_0x5e37a4(0x1ba)]('\x00'))throw instantApiPolicyError(_0x5e37a4(0x19f),_0x5e37a4(0x1c7));}function assertLocalPolicyContract(_0x4055bf,_0x20150b){const _0x5c59bc=a288_0x19ee56;if(!isObject(_0x4055bf))throw instantApiPolicyError(_0x5c59bc(0x1bc),'Instant\x20API\x20policy\x20JSON\x20root\x20must\x20be\x20an\x20object.');if(_0x4055bf['version']!=='1'&&_0x4055bf[_0x5c59bc(0x1cd)]!=='2')throw instantApiPolicyError(_0x5c59bc(0x197),_0x5c59bc(0x19a),'version\x20is\x20the\x20JSON\x20schema\x20version;\x20published\x20history\x20uses\x20the\x20separate\x20revision\x20field.');if(_0x4055bf[_0x5c59bc(0x1aa)]!==_0x20150b)throw instantApiPolicyError('instant_api_policy_app_code_mismatch','Policy\x20appCode\x20must\x20match\x20the\x20selected\x20application\x20'+_0x20150b+'.');if(!isObject(_0x4055bf['defaults'])||typeof _0x4055bf[_0x5c59bc(0x1b7)][_0x5c59bc(0x1c2)]!==_0x5c59bc(0x1bd))throw instantApiPolicyError('instant_api_policy_defaults_invalid',_0x5c59bc(0x19e));if(_0x4055bf['rules']!==undefined&&_0x4055bf['rules']!==null&&!Array[_0x5c59bc(0x19c)](_0x4055bf[_0x5c59bc(0x1b3)]))throw instantApiPolicyError(_0x5c59bc(0x191),'Policy\x20rules\x20must\x20be\x20an\x20array\x20or\x20null.');return _0x4055bf;}function a288_0x2cc1(_0x356583,_0x4af705){_0x356583=_0x356583-0x191;const _0x45d9f8=a288_0x45d9();let _0x2cc1c2=_0x45d9f8[_0x356583];return _0x2cc1c2;}function isObject(_0x5377d1){const _0x5c06a4=a288_0x19ee56;return _0x5377d1!==null&&typeof _0x5377d1===_0x5c06a4(0x1c3)&&!Array[_0x5c06a4(0x19c)](_0x5377d1);}function isMissingFile(_0x2529b8){const _0x1961d4=a288_0x19ee56;return Boolean(_0x2529b8&&typeof _0x2529b8===_0x1961d4(0x1c3)&&_0x2529b8[_0x1961d4(0x1b4)]==='ENOENT');}function isAlreadyExists(_0x33658b){const _0x334d92=a288_0x19ee56;return Boolean(_0x33658b&&typeof _0x33658b==='object'&&_0x33658b[_0x334d92(0x1b4)]===_0x334d92(0x195));}
1
+ const a288_0x1f47a7=a288_0x5d1a;(function(_0x2edf7a,_0x382b03){const _0x2b9b0d=a288_0x5d1a,_0x24ea4e=_0x2edf7a();while(!![]){try{const _0x36a72b=-parseInt(_0x2b9b0d(0x172))/0x1+-parseInt(_0x2b9b0d(0x168))/0x2*(-parseInt(_0x2b9b0d(0x147))/0x3)+parseInt(_0x2b9b0d(0x177))/0x4+parseInt(_0x2b9b0d(0x16a))/0x5+parseInt(_0x2b9b0d(0x158))/0x6*(-parseInt(_0x2b9b0d(0x161))/0x7)+parseInt(_0x2b9b0d(0x16b))/0x8*(parseInt(_0x2b9b0d(0x17b))/0x9)+parseInt(_0x2b9b0d(0x17a))/0xa;if(_0x36a72b===_0x382b03)break;else _0x24ea4e['push'](_0x24ea4e['shift']());}catch(_0x4ae71f){_0x24ea4e['push'](_0x24ea4e['shift']());}}}(a288_0x3f8f,0xf196f));import{randomUUID}from'node:crypto';import{mkdir,readFile,rename,stat,unlink,writeFile}from'node:fs/promises';import{dirname,resolve}from'node:path';import{TextDecoder}from'node:util';import{findProjectRootDirectory}from'../../context.js';import{CliError}from'../../errors.js';export const INSTANT_API_POLICY_RELATIVE_ROOT=a288_0x1f47a7(0x167);export const INSTANT_API_POLICY_FILE_NAME=a288_0x1f47a7(0x166);export const MAX_INSTANT_API_POLICY_BYTES=0x400*0x400;export function instantApiPolicyError(_0x366df0,_0x5e8151,_0x295c8c){return new CliError(_0x366df0,0x1,_0x5e8151,_0x295c8c);}export function loadInstantApiPolicyLocalConfig(_0x188895,_0x57cd1c){assertSafeAppCode(_0x188895);const _0x22f60d=resolve(_0x57cd1c??findProjectRootDirectory()),_0x5c3ba5=INSTANT_API_POLICY_RELATIVE_ROOT+'/'+_0x188895+'/'+INSTANT_API_POLICY_FILE_NAME,_0x57e21a=resolve(_0x22f60d,INSTANT_API_POLICY_RELATIVE_ROOT,_0x188895),_0x150e68=resolve(_0x57e21a,INSTANT_API_POLICY_FILE_NAME);return{'projectRoot':_0x22f60d,'appCode':_0x188895,'policyRoot':_0x57e21a,'policyFilePath':_0x150e68,'policyRelativePath':_0x5c3ba5};}export function createDefaultInstantApiPolicyConfig(_0x2a0dc7,_0x5bfcc7=a288_0x1f47a7(0x178)){return assertSafeAppCode(_0x2a0dc7),{'version':'2','appCode':_0x2a0dc7,'defaults':{'instantApi':_0x5bfcc7},'rules':[]};}function a288_0x5d1a(_0x20946a,_0x1d997c){_0x20946a=_0x20946a-0x13d;const _0x3f8fdc=a288_0x3f8f();let _0x5d1ad8=_0x3f8fdc[_0x20946a];return _0x5d1ad8;}export async function readInstantApiPolicyConfigFile(_0x5f4249){const _0x518085=a288_0x1f47a7;let _0x5d65f7;try{_0x5d65f7=await stat(_0x5f4249['policyFilePath']);}catch(_0x513431){throw instantApiPolicyError(_0x518085(0x155),_0x518085(0x157)+_0x5f4249['policyFilePath'],_0x518085(0x15f));}if(!_0x5d65f7[_0x518085(0x15a)]())throw instantApiPolicyError(_0x518085(0x175),_0x518085(0x163)+_0x5f4249[_0x518085(0x16f)]);if(_0x5d65f7[_0x518085(0x141)]>MAX_INSTANT_API_POLICY_BYTES)throw instantApiPolicyError(_0x518085(0x153),_0x518085(0x149));let _0x24e480;try{_0x24e480=await readFile(_0x5f4249[_0x518085(0x16f)]);}catch{throw instantApiPolicyError(_0x518085(0x16c),_0x518085(0x144)+_0x5f4249[_0x518085(0x16f)]);}if(_0x24e480[_0x518085(0x140)]>MAX_INSTANT_API_POLICY_BYTES)throw instantApiPolicyError('instant_api_policy_file_too_large',_0x518085(0x149));let _0x525bf2;try{_0x525bf2=new TextDecoder(_0x518085(0x164),{'fatal':!![],'ignoreBOM':!![]})[_0x518085(0x145)](_0x24e480);}catch{throw instantApiPolicyError(_0x518085(0x175),_0x518085(0x13d)+_0x5f4249[_0x518085(0x16f)]);}let _0x35fefe;try{_0x35fefe=JSON[_0x518085(0x15e)](_0x525bf2);}catch{throw instantApiPolicyError(_0x518085(0x150),'Instant\x20API\x20policy\x20file\x20is\x20not\x20valid\x20JSON:\x20'+_0x5f4249[_0x518085(0x16f)]);}return assertLocalPolicyContract(_0x35fefe,_0x5f4249[_0x518085(0x14f)]);}export async function writeInstantApiPolicyConfigFile(_0x3bc0d1,_0x2bc2ef,_0x4b8db1={}){const _0x1df1f5=a288_0x1f47a7,_0x4c1794=assertLocalPolicyContract(_0x2bc2ef,_0x3bc0d1[_0x1df1f5(0x14f)]),_0x381fab=JSON['stringify'](_0x4c1794,null,0x2)+'\x0a';if(Buffer[_0x1df1f5(0x140)](_0x381fab,_0x1df1f5(0x16d))>MAX_INSTANT_API_POLICY_BYTES)throw instantApiPolicyError('instant_api_policy_file_too_large',_0x1df1f5(0x149));await mkdir(_0x3bc0d1[_0x1df1f5(0x170)],{'recursive':!![]});let _0x2354c5;try{_0x2354c5=await readFile(_0x3bc0d1[_0x1df1f5(0x16f)],_0x1df1f5(0x16d));}catch(_0x4eb012){if(!isMissingFile(_0x4eb012))throw instantApiPolicyError(_0x1df1f5(0x16c),_0x1df1f5(0x14b)+_0x3bc0d1[_0x1df1f5(0x16f)]);}if(_0x2354c5===_0x381fab)return{'action':_0x1df1f5(0x16e),'filePath':_0x3bc0d1[_0x1df1f5(0x16f)]};if(_0x2354c5!==undefined&&!_0x4b8db1[_0x1df1f5(0x17d)])throw instantApiPolicyError('instant_api_policy_file_exists',_0x1df1f5(0x176)+_0x3bc0d1[_0x1df1f5(0x16f)],_0x1df1f5(0x15b));if(_0x2354c5===undefined)try{return await writeFile(_0x3bc0d1['policyFilePath'],_0x381fab,{'encoding':_0x1df1f5(0x16d),'flag':'wx'}),{'action':_0x1df1f5(0x171),'filePath':_0x3bc0d1[_0x1df1f5(0x16f)]};}catch(_0x2590c1){if(!isAlreadyExists(_0x2590c1))throw instantApiPolicyError('instant_api_policy_file_unwritable','Cannot\x20write\x20Instant\x20API\x20policy\x20file:\x20'+_0x3bc0d1[_0x1df1f5(0x16f)]);if(!_0x4b8db1['force'])throw instantApiPolicyError(_0x1df1f5(0x151),'Instant\x20API\x20policy\x20file\x20was\x20created\x20concurrently:\x20'+_0x3bc0d1[_0x1df1f5(0x16f)],'Review\x20the\x20file\x20before\x20retrying.');}const _0x285c81=resolve(dirname(_0x3bc0d1['policyFilePath']),'.'+INSTANT_API_POLICY_FILE_NAME+'.'+process['pid']+'.'+randomUUID()+_0x1df1f5(0x14d));try{await writeFile(_0x285c81,_0x381fab,{'encoding':_0x1df1f5(0x16d),'flag':'wx'}),await rename(_0x285c81,_0x3bc0d1['policyFilePath']);}catch{await unlink(_0x285c81)['catch'](()=>undefined);throw instantApiPolicyError(_0x1df1f5(0x162),_0x1df1f5(0x154)+_0x3bc0d1['policyFilePath']);}return{'action':_0x1df1f5(0x14a),'filePath':_0x3bc0d1[_0x1df1f5(0x16f)]};}function assertSafeAppCode(_0x22946d){const _0x5cc1ae=a288_0x1f47a7,_0x5bd2db=_0x22946d[_0x5cc1ae(0x13e)]();if(!_0x5bd2db||_0x5bd2db!==_0x22946d||_0x5bd2db[_0x5cc1ae(0x146)]>0x64||_0x5bd2db==='.'||_0x5bd2db==='..'||_0x5bd2db['includes']('/')||_0x5bd2db[_0x5cc1ae(0x14e)]('\x5c')||_0x5bd2db[_0x5cc1ae(0x14e)]('\x00'))throw instantApiPolicyError(_0x5cc1ae(0x169),_0x5cc1ae(0x14c));}function a288_0x3f8f(){const _0x3d9007=['utf8','unchanged','policyFilePath','policyRoot','created','1033784EUcszv','version\x20is\x20the\x20JSON\x20schema\x20version;\x20published\x20history\x20uses\x20the\x20separate\x20revision\x20field.','version','instant_api_policy_file_invalid','Instant\x20API\x20policy\x20file\x20already\x20exists:\x20','2654512HpvBll','allow','rules','561200ifqoQF','436851rtqsXv','Policy\x20rules\x20must\x20be\x20an\x20array\x20or\x20null.','force','Instant\x20API\x20policy\x20file\x20is\x20not\x20valid\x20UTF-8:\x20','trim','code','byteLength','size','ENOENT','isArray','Cannot\x20read\x20Instant\x20API\x20policy\x20file:\x20','decode','length','1440822cthSWx','Instant\x20API\x20policy\x20version\x20must\x20be\x20\x221\x22\x20or\x20\x222\x22.','Instant\x20API\x20policy\x20file\x20exceeds\x20the\x201\x20MiB\x20CLI\x20limit.','overwritten','Cannot\x20inspect\x20Instant\x20API\x20policy\x20file:\x20','appCode\x20cannot\x20be\x20used\x20as\x20the\x20fixed\x20Instant\x20API\x20policy\x20directory\x20name.','.tmp','includes','appCode','instant_api_policy_json_invalid','instant_api_policy_file_exists','defaults','instant_api_policy_file_too_large','Cannot\x20replace\x20Instant\x20API\x20policy\x20file:\x20','instant_api_policy_file_missing','Policy\x20defaults.instantApi\x20is\x20required.','Instant\x20API\x20policy\x20file\x20does\x20not\x20exist:\x20','29058TOjLAX','instant_api_policy_defaults_invalid','isFile','Review\x20local\x20changes,\x20then\x20rerun\x20with\x20--force\x20--yes\x20if\x20replacement\x20is\x20intended.','instantApi','Instant\x20API\x20policy\x20JSON\x20root\x20must\x20be\x20an\x20object.','parse','Run\x20`rabetbase\x20instant-api-policy\x20init`\x20or\x20`rabetbase\x20instant-api-policy\x20pull`\x20first.','instant_api_policy_rules_invalid','1918XcmPkL','instant_api_policy_file_unwritable','Instant\x20API\x20policy\x20path\x20is\x20not\x20a\x20regular\x20file:\x20','utf-8','object','policy.json','.rabetbase/instant-api-policy','4ETandO','instant_api_policy_app_code_invalid','4952375YfoTuN','112gORgfn','instant_api_policy_file_unreadable'];a288_0x3f8f=function(){return _0x3d9007;};return a288_0x3f8f();}function assertLocalPolicyContract(_0x1d2b0d,_0x271b27){const _0x280032=a288_0x1f47a7;if(!isObject(_0x1d2b0d))throw instantApiPolicyError(_0x280032(0x150),_0x280032(0x15d));if(_0x1d2b0d[_0x280032(0x174)]!=='1'&&_0x1d2b0d[_0x280032(0x174)]!=='2')throw instantApiPolicyError('instant_api_policy_version_invalid',_0x280032(0x148),_0x280032(0x173));if(_0x1d2b0d[_0x280032(0x14f)]!==_0x271b27)throw instantApiPolicyError('instant_api_policy_app_code_mismatch','Policy\x20appCode\x20must\x20match\x20the\x20selected\x20application\x20'+_0x271b27+'.');if(!isObject(_0x1d2b0d['defaults'])||typeof _0x1d2b0d[_0x280032(0x152)][_0x280032(0x15c)]!=='string')throw instantApiPolicyError(_0x280032(0x159),_0x280032(0x156));if(_0x1d2b0d[_0x280032(0x179)]!==undefined&&_0x1d2b0d[_0x280032(0x179)]!==null&&!Array[_0x280032(0x143)](_0x1d2b0d[_0x280032(0x179)]))throw instantApiPolicyError(_0x280032(0x160),_0x280032(0x17c));return _0x1d2b0d;}function isObject(_0x24d448){const _0x1f9a40=a288_0x1f47a7;return _0x24d448!==null&&typeof _0x24d448==='object'&&!Array[_0x1f9a40(0x143)](_0x24d448);}function isMissingFile(_0x4e2992){const _0x54905d=a288_0x1f47a7;return Boolean(_0x4e2992&&typeof _0x4e2992===_0x54905d(0x165)&&_0x4e2992[_0x54905d(0x13f)]===_0x54905d(0x142));}function isAlreadyExists(_0x57bdaa){const _0x5b62ef=a288_0x1f47a7;return Boolean(_0x57bdaa&&typeof _0x57bdaa===_0x5b62ef(0x165)&&_0x57bdaa['code']==='EEXIST');}
@@ -1 +1 @@
1
- const a289_0x1df4cf=a289_0x11c9;function a289_0x11c9(_0xe7f1cb,_0x38c8bc){_0xe7f1cb=_0xe7f1cb-0x11f;const _0x13de66=a289_0x13de();let _0x11c9a4=_0x13de66[_0xe7f1cb];return _0x11c9a4;}(function(_0x42d8c8,_0x3c2004){const _0x5ad8e8=a289_0x11c9,_0x491962=_0x42d8c8();while(!![]){try{const _0x320aa3=parseInt(_0x5ad8e8(0x164))/0x1*(-parseInt(_0x5ad8e8(0x161))/0x2)+parseInt(_0x5ad8e8(0x14c))/0x3*(parseInt(_0x5ad8e8(0x16b))/0x4)+parseInt(_0x5ad8e8(0x15a))/0x5+-parseInt(_0x5ad8e8(0x131))/0x6+-parseInt(_0x5ad8e8(0x16f))/0x7+-parseInt(_0x5ad8e8(0x159))/0x8*(-parseInt(_0x5ad8e8(0x142))/0x9)+-parseInt(_0x5ad8e8(0x134))/0xa*(-parseInt(_0x5ad8e8(0x145))/0xb);if(_0x320aa3===_0x3c2004)break;else _0x491962['push'](_0x491962['shift']());}catch(_0xf07ff5){_0x491962['push'](_0x491962['shift']());}}}(a289_0x13de,0x6a1f6));import{CliError,CliErrors}from'../errors.js';const RESPONSE_KEYS=[a289_0x1df4cf(0x15c),a289_0x1df4cf(0x15d),'total','hits',a289_0x1df4cf(0x143),a289_0x1df4cf(0x173)],HIT_KEYS=[a289_0x1df4cf(0x171),a289_0x1df4cf(0x12f),a289_0x1df4cf(0x150),a289_0x1df4cf(0x15e),a289_0x1df4cf(0x165),a289_0x1df4cf(0x170),a289_0x1df4cf(0x154),a289_0x1df4cf(0x16d),'rawScore',a289_0x1df4cf(0x14f),'scoreKind'];export function normalizeKbServiceOrigin(_0x4eb303){const _0x335053=a289_0x1df4cf,_0x5d3e4d=()=>CliErrors[_0x335053(0x127)](_0x335053(0x125)),_0x3bb0fb=_0x4eb303?.[_0x335053(0x148)]();if(!_0x3bb0fb||/[\u0000-\u0020\u007f]/[_0x335053(0x178)](_0x3bb0fb)||!/^https:\/\/[^/?#@\\]+\/?$/i[_0x335053(0x178)](_0x3bb0fb))throw _0x5d3e4d();let _0x330910;try{_0x330910=new URL(_0x3bb0fb);}catch{throw _0x5d3e4d();}if(_0x330910[_0x335053(0x15f)]!==_0x335053(0x153)||!_0x330910['hostname']||_0x330910[_0x335053(0x132)]||_0x330910[_0x335053(0x15b)]||_0x330910[_0x335053(0x158)]!=='/'||_0x330910[_0x335053(0x157)]||_0x330910[_0x335053(0x130)])throw _0x5d3e4d();return _0x330910[_0x335053(0x168)];}export async function searchDirectKnowledge(_0x25dccb){const _0x336401=a289_0x1df4cf,_0x30f732=_0x25dccb[_0x336401(0x155)][_0x336401(0x148)](),_0x5ad898=_0x25dccb[_0x336401(0x12c)][_0x336401(0x148)]();if(!_0x30f732)throw CliErrors[_0x336401(0x127)](_0x336401(0x12b));if(!_0x25dccb[_0x336401(0x16a)][_0x336401(0x148)]())throw CliErrors['authRequired']();if(!_0x5ad898)throw CliErrors['validation']('Knowledge\x20search\x20query\x20is\x20required.');validateTopK(_0x25dccb[_0x336401(0x14e)]);const _0x5d9ea1=normalizeKbServiceOrigin(_0x25dccb[_0x336401(0x137)]),_0x5288d8=AbortSignal[_0x336401(0x13b)](0xea60),_0x168105=_0x25dccb[_0x336401(0x152)]?AbortSignal[_0x336401(0x122)]([_0x25dccb[_0x336401(0x152)],_0x5288d8]):_0x5288d8;let _0x58c646;try{_0x58c646=await fetch(_0x5d9ea1+'/v2/development/apps/'+encodeURIComponent(_0x30f732)+'/knowledge/search',{'method':_0x336401(0x139),'redirect':_0x336401(0x175),'headers':{'Content-Type':_0x336401(0x13d),'Cookie':_0x25dccb[_0x336401(0x16a)],'X-Invoke-Source':'cli:rabetbase'},'body':JSON[_0x336401(0x16c)]({'query':_0x5ad898,..._0x25dccb[_0x336401(0x14e)]!==undefined?{'topK':_0x25dccb[_0x336401(0x14e)]}:{}}),'signal':_0x168105});}catch(_0x4943e9){if(_0x25dccb[_0x336401(0x152)]?.[_0x336401(0x120)])throw new DOMException(_0x336401(0x147),_0x336401(0x149));if(_0x4943e9 instanceof Error&&_0x4943e9['name']===_0x336401(0x160))throw CliErrors[_0x336401(0x13f)]('KB\x20Service\x20knowledge\x20search\x20request\x20timed\x20out.');throw CliErrors[_0x336401(0x13f)](_0x336401(0x12a));}if(_0x58c646['status']===0x191)throw CliErrors[_0x336401(0x126)]();if(_0x58c646['status']===0x1ad)throw CliErrors[_0x336401(0x141)](_0x336401(0x14d));if(!_0x58c646['ok'])throw CliErrors[_0x336401(0x141)](_0x336401(0x129)+_0x58c646[_0x336401(0x174)]+').');if(!hasNoStore(_0x58c646[_0x336401(0x13c)]))throw CliErrors['apiError']('KB\x20Service\x20knowledge\x20search\x20response\x20is\x20missing\x20Cache-Control:\x20no-store.');if(!(_0x58c646['headers'][_0x336401(0x179)](_0x336401(0x163))??'')[_0x336401(0x162)]()['includes']('application/json'))throw CliErrors[_0x336401(0x141)](_0x336401(0x140));let _0x4fdfa3;try{_0x4fdfa3=await _0x58c646[_0x336401(0x133)]();}catch(_0x1f773d){if(_0x25dccb[_0x336401(0x152)]?.[_0x336401(0x120)])throw new DOMException(_0x336401(0x147),'AbortError');if(_0x5288d8[_0x336401(0x120)]||_0x1f773d instanceof Error&&_0x1f773d[_0x336401(0x12e)]===_0x336401(0x160))throw CliErrors[_0x336401(0x13f)](_0x336401(0x166));throw CliErrors[_0x336401(0x141)]('KB\x20Service\x20knowledge\x20search\x20returned\x20invalid\x20JSON.');}try{const _0x5dc917=requireExactRecord(_0x4fdfa3,[_0x336401(0x176),_0x336401(0x143),'timingsMs'],_0x336401(0x177));if(!Array[_0x336401(0x156)](_0x5dc917['hits']))throw invalidContract(_0x336401(0x176));return parseDevelopmentSearchResponse({'schemaVersion':0x2,'profile':_0x336401(0x14a),'total':_0x5dc917[_0x336401(0x176)][_0x336401(0x167)],'hits':_0x5dc917[_0x336401(0x176)],'strategyFingerprint':_0x5dc917['strategyFingerprint'],'timingsMs':_0x5dc917[_0x336401(0x173)]},_0x25dccb[_0x336401(0x14e)]??0xa);}catch(_0x23782e){if(_0x23782e instanceof CliError)throw CliErrors['apiError'](_0x336401(0x121));throw _0x23782e;}}function validateTopK(_0x42cf18){const _0x7cd4a5=a289_0x1df4cf;if(_0x42cf18!==undefined&&(!Number[_0x7cd4a5(0x172)](_0x42cf18)||_0x42cf18<0x1||_0x42cf18>0x32))throw CliErrors[_0x7cd4a5(0x127)](_0x7cd4a5(0x144));}function a289_0x13de(){const _0x4a8115=['chunkId','object','signal','https:','tags','appCode','isArray','search','pathname','232OpIrCl','926720VdhvMc','password','schemaVersion','profile','scope','protocol','TimeoutError','2HfjTnQ','toLowerCase','content-type','670974XLgCfg','title','KB\x20Service\x20knowledge\x20search\x20request\x20timed\x20out.','length','origin','cache-control','cookie','4QWsyRH','stringify','rank','hits[','1061774EArNaO','text','documentId','isSafeInteger','timingsMs','status','error','hits','response','test','get','isFinite','aborted','KB\x20Service\x20knowledge\x20search\x20returned\x20an\x20invalid\x20response\x20contract.','any','split','rawScore','Invalid\x20--kb-service-url:\x20expected\x20an\x20HTTPS\x20origin\x20without\x20credentials,\x20path,\x20query,\x20or\x20fragment.','authRequired','validation','no-store','KB\x20Service\x20knowledge\x20search\x20failed\x20(HTTP\x20','KB\x20Service\x20knowledge\x20search\x20request\x20failed.','Knowledge\x20search\x20appCode\x20is\x20required.','query','string','name','revision','hash','3408456WsSWUt','username','json','910790MeyGSU','total','map','serviceUrl','\x20contract.','POST','scoreKind','timeout','headers','application/json','entries','networkError','KB\x20Service\x20knowledge\x20search\x20returned\x20a\x20non-JSON\x20content\x20type.','apiError','228564iPUQbv','strategyFingerprint','Knowledge\x20search\x20topK\x20must\x20be\x20an\x20integer\x20from\x201\x20through\x2050.','11jeGfsC','some','Knowledge\x20search\x20cancelled.','trim','AbortError','development','sort','2437509kKIfnv','KB\x20Service\x20knowledge\x20search\x20was\x20rate\x20limited\x20(HTTP\x20429).','topK','finalScore'];a289_0x13de=function(){return _0x4a8115;};return a289_0x13de();}function hasNoStore(_0x589b1c){const _0x1acd59=a289_0x1df4cf;return(_0x589b1c[_0x1acd59(0x179)](_0x1acd59(0x169))??'')[_0x1acd59(0x123)](',')[_0x1acd59(0x146)](_0x5c4489=>_0x5c4489[_0x1acd59(0x148)]()[_0x1acd59(0x162)]()===_0x1acd59(0x128));}function parseDevelopmentSearchResponse(_0x1f74f2,_0x20ac59){const _0x50fe4b=a289_0x1df4cf,_0x125da4=requireExactRecord(_0x1f74f2,RESPONSE_KEYS,_0x50fe4b(0x177));if(_0x125da4['schemaVersion']!==0x2||_0x125da4[_0x50fe4b(0x15d)]!==_0x50fe4b(0x14a))throw invalidContract(_0x50fe4b(0x15d));if(!Array['isArray'](_0x125da4[_0x50fe4b(0x176)])||_0x125da4[_0x50fe4b(0x176)][_0x50fe4b(0x167)]>(_0x20ac59??0x32))throw invalidContract('hits');if(typeof _0x125da4['strategyFingerprint']!==_0x50fe4b(0x12d)||!/^sha256:[0-9a-f]{64}$/['test'](_0x125da4['strategyFingerprint']))throw invalidContract('strategyFingerprint');const _0x53764f=requireRecord(_0x125da4[_0x50fe4b(0x173)],_0x50fe4b(0x173)),_0xd090fb={};for(const [_0x4f7b59,_0xd88340]of Object[_0x50fe4b(0x13e)](_0x53764f)){if(!/^[A-Za-z][A-Za-z0-9]*$/[_0x50fe4b(0x178)](_0x4f7b59)||typeof _0xd88340!=='number'||!Number[_0x50fe4b(0x11f)](_0xd88340)||_0xd88340<0x0)throw invalidContract(_0x50fe4b(0x173));_0xd090fb[_0x4f7b59]=_0xd88340;}const _0x1a902c=_0x125da4['hits'][_0x50fe4b(0x136)]((_0x1c0a3e,_0x431654)=>parseHit(_0x1c0a3e,_0x431654));if(!Number['isSafeInteger'](_0x125da4['total'])||_0x125da4[_0x50fe4b(0x135)]!==_0x1a902c[_0x50fe4b(0x167)])throw invalidContract('total');return{'schemaVersion':_0x125da4['schemaVersion'],'profile':_0x125da4[_0x50fe4b(0x15d)],'total':_0x125da4[_0x50fe4b(0x135)],'strategyFingerprint':_0x125da4[_0x50fe4b(0x143)],'timingsMs':_0xd090fb,'hits':_0x1a902c};}function parseHit(_0x25ac5c,_0x43c344){const _0x2c49ec=a289_0x1df4cf,_0x279716=requireExactRecord(_0x25ac5c,HIT_KEYS,_0x2c49ec(0x16e)+_0x43c344+']'),_0x555a4b=_0x28aeb1=>{const _0x4b42bc=_0x2c49ec,_0x24994d=_0x279716[_0x28aeb1];if(typeof _0x24994d!==_0x4b42bc(0x12d)||!_0x24994d)throw invalidContract(_0x28aeb1);return _0x24994d;};if(!Number[_0x2c49ec(0x172)](_0x279716[_0x2c49ec(0x12f)])||_0x279716[_0x2c49ec(0x12f)]<0x1)throw invalidContract('revision');if(_0x279716['scope']!=='public'&&_0x279716[_0x2c49ec(0x15e)]!=='company')throw invalidContract(_0x2c49ec(0x15e));if(typeof _0x279716['title']!==_0x2c49ec(0x12d)||typeof _0x279716[_0x2c49ec(0x170)]!==_0x2c49ec(0x12d))throw invalidContract(_0x2c49ec(0x170));if(!Array[_0x2c49ec(0x156)](_0x279716[_0x2c49ec(0x154)])||_0x279716['tags'][_0x2c49ec(0x146)](_0xcdcc88=>typeof _0xcdcc88!=='string'))throw invalidContract(_0x2c49ec(0x154));if(!Number[_0x2c49ec(0x172)](_0x279716[_0x2c49ec(0x16d)])||_0x279716[_0x2c49ec(0x16d)]!==_0x43c344+0x1)throw invalidContract(_0x2c49ec(0x16d));if(!isFiniteNumber(_0x279716[_0x2c49ec(0x124)])||!isFiniteNumber(_0x279716[_0x2c49ec(0x14f)]))throw invalidContract('score');return{'documentId':_0x555a4b(_0x2c49ec(0x171)),'revision':_0x279716[_0x2c49ec(0x12f)],'chunkId':_0x555a4b(_0x2c49ec(0x150)),'scope':_0x279716['scope'],'title':_0x279716[_0x2c49ec(0x165)],'text':_0x279716['text'],'tags':[..._0x279716[_0x2c49ec(0x154)]],'rank':_0x279716['rank'],'rawScore':_0x279716['rawScore'],'finalScore':_0x279716[_0x2c49ec(0x14f)],'scoreKind':_0x555a4b(_0x2c49ec(0x13a))};}function requireExactRecord(_0x4d9aa1,_0x13d788,_0x23dc0d){const _0x178f20=a289_0x1df4cf,_0x35fd7c=requireRecord(_0x4d9aa1,_0x23dc0d),_0x119c33=Object['keys'](_0x35fd7c)['sort'](),_0x580d13=[..._0x13d788][_0x178f20(0x14b)]();if(_0x119c33[_0x178f20(0x167)]!==_0x580d13['length']||_0x119c33[_0x178f20(0x146)]((_0x329c2f,_0x3e69ff)=>_0x329c2f!==_0x580d13[_0x3e69ff]))throw invalidContract(_0x23dc0d);return _0x35fd7c;}function requireRecord(_0x532583,_0x2e1010){const _0x3f435f=a289_0x1df4cf;if(!_0x532583||typeof _0x532583!==_0x3f435f(0x151)||Array[_0x3f435f(0x156)](_0x532583))throw invalidContract(_0x2e1010);return _0x532583;}function isFiniteNumber(_0x263809){const _0x2c4688=a289_0x1df4cf;return typeof _0x263809==='number'&&Number[_0x2c4688(0x11f)](_0x263809);}function invalidContract(_0x1575bb){const _0x171d8c=a289_0x1df4cf;return CliErrors[_0x171d8c(0x141)]('SmartCode\x20knowledge\x20search\x20returned\x20an\x20invalid\x20'+_0x1575bb+_0x171d8c(0x138));}
1
+ const a289_0x5679c2=a289_0x8775;(function(_0x5de85a,_0x23b53d){const _0x11d846=a289_0x8775,_0x14bc6c=_0x5de85a();while(!![]){try{const _0x561eda=-parseInt(_0x11d846(0x201))/0x1+-parseInt(_0x11d846(0x1dd))/0x2+parseInt(_0x11d846(0x1f8))/0x3*(parseInt(_0x11d846(0x1e2))/0x4)+parseInt(_0x11d846(0x1d3))/0x5*(-parseInt(_0x11d846(0x206))/0x6)+-parseInt(_0x11d846(0x1fc))/0x7+-parseInt(_0x11d846(0x1ec))/0x8+parseInt(_0x11d846(0x1f0))/0x9*(parseInt(_0x11d846(0x215))/0xa);if(_0x561eda===_0x23b53d)break;else _0x14bc6c['push'](_0x14bc6c['shift']());}catch(_0x16ab46){_0x14bc6c['push'](_0x14bc6c['shift']());}}}(a289_0x5886,0xc5569));function a289_0x5886(){const _0x26c4f5=['total','hostname','status','headers','stringify','KB\x20Service\x20knowledge\x20search\x20request\x20timed\x20out.','no-store','any','5210110eTAdGU','isSafeInteger','name','cookie','split','tags','strategyFingerprint','content-type','trim','KB\x20Service\x20knowledge\x20search\x20returned\x20invalid\x20JSON.','public','documentId','KB\x20Service\x20knowledge\x20search\x20returned\x20an\x20invalid\x20response\x20contract.','TimeoutError','https:','hash','number','KB\x20Service\x20knowledge\x20search\x20response\x20is\x20missing\x20Cache-Control:\x20no-store.','timeout','test','aborted','error','KB\x20Service\x20knowledge\x20search\x20failed\x20(HTTP\x20','revision','timingsMs','application/json','61600MNgvWb','some','length','title','development','signal','chunkId','query','pathname','finalScore','410540wJMjPQ','rank','string','response','entries','888564umWoys','SmartCode\x20knowledge\x20search\x20returned\x20an\x20invalid\x20','validation','Invalid\x20--kb-service-url:\x20expected\x20an\x20HTTPS\x20origin\x20without\x20credentials,\x20path,\x20query,\x20or\x20fragment.','/knowledge/search','\x20contract.','Knowledge\x20search\x20appCode\x20is\x20required.','AbortError','profile','KB\x20Service\x20knowledge\x20search\x20request\x20failed.','12006952MXFbaz','protocol','hits','map','81WrZwaf','authRequired','KB\x20Service\x20knowledge\x20search\x20was\x20rate\x20limited\x20(HTTP\x20429).','networkError','Knowledge\x20search\x20query\x20is\x20required.','company','topK','Knowledge\x20search\x20topK\x20must\x20be\x20an\x20integer\x20from\x201\x20through\x2050.','6aeXSpo','toLowerCase','KB\x20Service\x20knowledge\x20search\x20returned\x20a\x20non-JSON\x20content\x20type.','isArray','3927161iAeeiD','Knowledge\x20search\x20cancelled.','sort','rawScore','hits[','1257122BcARJH','object','username','/v2/development/apps/','search','390dqeWax','POST','isFinite','schemaVersion','scope','text','apiError'];a289_0x5886=function(){return _0x26c4f5;};return a289_0x5886();}import{CliError,CliErrors}from'../errors.js';const RESPONSE_KEYS=[a289_0x5679c2(0x209),a289_0x5679c2(0x1ea),'total',a289_0x5679c2(0x1ee),a289_0x5679c2(0x21b),a289_0x5679c2(0x1d1)],HIT_KEYS=[a289_0x5679c2(0x220),a289_0x5679c2(0x1d0),a289_0x5679c2(0x1d9),a289_0x5679c2(0x20a),a289_0x5679c2(0x1d6),a289_0x5679c2(0x20b),'tags',a289_0x5679c2(0x1de),a289_0x5679c2(0x1ff),'finalScore','scoreKind'];export function normalizeKbServiceOrigin(_0x45e0b5){const _0x4822f4=a289_0x5679c2,_0x4557bd=()=>CliErrors['validation'](_0x4822f4(0x1e5)),_0x127022=_0x45e0b5?.[_0x4822f4(0x21d)]();if(!_0x127022||/[\u0000-\u0020\u007f]/[_0x4822f4(0x1cc)](_0x127022)||!/^https:\/\/[^/?#@\\]+\/?$/i[_0x4822f4(0x1cc)](_0x127022))throw _0x4557bd();let _0x3cfcd2;try{_0x3cfcd2=new URL(_0x127022);}catch{throw _0x4557bd();}if(_0x3cfcd2[_0x4822f4(0x1ed)]!==_0x4822f4(0x223)||!_0x3cfcd2[_0x4822f4(0x20e)]||_0x3cfcd2[_0x4822f4(0x203)]||_0x3cfcd2['password']||_0x3cfcd2[_0x4822f4(0x1db)]!=='/'||_0x3cfcd2[_0x4822f4(0x205)]||_0x3cfcd2[_0x4822f4(0x1c8)])throw _0x4557bd();return _0x3cfcd2['origin'];}export async function searchDirectKnowledge(_0x285e86){const _0x263424=a289_0x5679c2,_0x302937=_0x285e86['appCode'][_0x263424(0x21d)](),_0x5bf676=_0x285e86[_0x263424(0x1da)][_0x263424(0x21d)]();if(!_0x302937)throw CliErrors[_0x263424(0x1e4)](_0x263424(0x1e8));if(!_0x285e86[_0x263424(0x218)][_0x263424(0x21d)]())throw CliErrors[_0x263424(0x1f1)]();if(!_0x5bf676)throw CliErrors[_0x263424(0x1e4)](_0x263424(0x1f4));validateTopK(_0x285e86[_0x263424(0x1f6)]);const _0x4cecaf=normalizeKbServiceOrigin(_0x285e86['serviceUrl']),_0x44108c=AbortSignal[_0x263424(0x1cb)](0xea60),_0x778368=_0x285e86[_0x263424(0x1d8)]?AbortSignal[_0x263424(0x214)]([_0x285e86[_0x263424(0x1d8)],_0x44108c]):_0x44108c;let _0x3d9150;try{_0x3d9150=await fetch(_0x4cecaf+_0x263424(0x204)+encodeURIComponent(_0x302937)+_0x263424(0x1e6),{'method':_0x263424(0x207),'redirect':_0x263424(0x1ce),'headers':{'Content-Type':'application/json','Cookie':_0x285e86[_0x263424(0x218)],'X-Invoke-Source':'cli:rabetbase'},'body':JSON[_0x263424(0x211)]({'query':_0x5bf676,..._0x285e86['topK']!==undefined?{'topK':_0x285e86[_0x263424(0x1f6)]}:{}}),'signal':_0x778368});}catch(_0x1e6188){if(_0x285e86['signal']?.[_0x263424(0x1cd)])throw new DOMException(_0x263424(0x1fd),_0x263424(0x1e9));if(_0x1e6188 instanceof Error&&_0x1e6188[_0x263424(0x217)]==='TimeoutError')throw CliErrors[_0x263424(0x1f3)](_0x263424(0x212));throw CliErrors[_0x263424(0x1f3)](_0x263424(0x1eb));}if(_0x3d9150[_0x263424(0x20f)]===0x191)throw CliErrors[_0x263424(0x1f1)]();if(_0x3d9150[_0x263424(0x20f)]===0x1ad)throw CliErrors[_0x263424(0x20c)](_0x263424(0x1f2));if(!_0x3d9150['ok'])throw CliErrors[_0x263424(0x20c)](_0x263424(0x1cf)+_0x3d9150['status']+').');if(!hasNoStore(_0x3d9150[_0x263424(0x210)]))throw CliErrors[_0x263424(0x20c)](_0x263424(0x1ca));if(!(_0x3d9150[_0x263424(0x210)]['get'](_0x263424(0x21c))??'')[_0x263424(0x1f9)]()['includes'](_0x263424(0x1d2)))throw CliErrors[_0x263424(0x20c)](_0x263424(0x1fa));let _0x15b30a;try{_0x15b30a=await _0x3d9150['json']();}catch(_0x4d42bd){if(_0x285e86[_0x263424(0x1d8)]?.[_0x263424(0x1cd)])throw new DOMException(_0x263424(0x1fd),_0x263424(0x1e9));if(_0x44108c[_0x263424(0x1cd)]||_0x4d42bd instanceof Error&&_0x4d42bd[_0x263424(0x217)]===_0x263424(0x222))throw CliErrors[_0x263424(0x1f3)](_0x263424(0x212));throw CliErrors[_0x263424(0x20c)](_0x263424(0x21e));}try{const _0x467b04=requireExactRecord(_0x15b30a,[_0x263424(0x1ee),'strategyFingerprint',_0x263424(0x1d1)],_0x263424(0x1e0));if(!Array[_0x263424(0x1fb)](_0x467b04[_0x263424(0x1ee)]))throw invalidContract('hits');return parseDevelopmentSearchResponse({'schemaVersion':0x2,'profile':_0x263424(0x1d7),'total':_0x467b04['hits']['length'],'hits':_0x467b04[_0x263424(0x1ee)],'strategyFingerprint':_0x467b04[_0x263424(0x21b)],'timingsMs':_0x467b04['timingsMs']},_0x285e86[_0x263424(0x1f6)]??0xa);}catch(_0x3860d3){if(_0x3860d3 instanceof CliError)throw CliErrors[_0x263424(0x20c)](_0x263424(0x221));throw _0x3860d3;}}function validateTopK(_0x4e9171){const _0x2f7e2c=a289_0x5679c2;if(_0x4e9171!==undefined&&(!Number[_0x2f7e2c(0x216)](_0x4e9171)||_0x4e9171<0x1||_0x4e9171>0x32))throw CliErrors['validation'](_0x2f7e2c(0x1f7));}function hasNoStore(_0x416300){const _0x1698cb=a289_0x5679c2;return(_0x416300['get']('cache-control')??'')[_0x1698cb(0x219)](',')[_0x1698cb(0x1d4)](_0x133488=>_0x133488['trim']()[_0x1698cb(0x1f9)]()===_0x1698cb(0x213));}function parseDevelopmentSearchResponse(_0x2776d0,_0x525756){const _0x428843=a289_0x5679c2,_0x1f5a4e=requireExactRecord(_0x2776d0,RESPONSE_KEYS,'response');if(_0x1f5a4e[_0x428843(0x209)]!==0x2||_0x1f5a4e[_0x428843(0x1ea)]!=='development')throw invalidContract('profile');if(!Array['isArray'](_0x1f5a4e[_0x428843(0x1ee)])||_0x1f5a4e[_0x428843(0x1ee)][_0x428843(0x1d5)]>(_0x525756??0x32))throw invalidContract(_0x428843(0x1ee));if(typeof _0x1f5a4e[_0x428843(0x21b)]!==_0x428843(0x1df)||!/^sha256:[0-9a-f]{64}$/[_0x428843(0x1cc)](_0x1f5a4e[_0x428843(0x21b)]))throw invalidContract(_0x428843(0x21b));const _0x22db48=requireRecord(_0x1f5a4e[_0x428843(0x1d1)],_0x428843(0x1d1)),_0x4595d4={};for(const [_0x2c30cf,_0x3910dd]of Object[_0x428843(0x1e1)](_0x22db48)){if(!/^[A-Za-z][A-Za-z0-9]*$/['test'](_0x2c30cf)||typeof _0x3910dd!=='number'||!Number[_0x428843(0x208)](_0x3910dd)||_0x3910dd<0x0)throw invalidContract(_0x428843(0x1d1));_0x4595d4[_0x2c30cf]=_0x3910dd;}const _0x2c910b=_0x1f5a4e[_0x428843(0x1ee)][_0x428843(0x1ef)]((_0x5dd356,_0x488913)=>parseHit(_0x5dd356,_0x488913));if(!Number[_0x428843(0x216)](_0x1f5a4e['total'])||_0x1f5a4e[_0x428843(0x20d)]!==_0x2c910b[_0x428843(0x1d5)])throw invalidContract('total');return{'schemaVersion':_0x1f5a4e[_0x428843(0x209)],'profile':_0x1f5a4e[_0x428843(0x1ea)],'total':_0x1f5a4e[_0x428843(0x20d)],'strategyFingerprint':_0x1f5a4e[_0x428843(0x21b)],'timingsMs':_0x4595d4,'hits':_0x2c910b};}function a289_0x8775(_0x5b02d0,_0x8e59cf){_0x5b02d0=_0x5b02d0-0x1c8;const _0x58863a=a289_0x5886();let _0x877585=_0x58863a[_0x5b02d0];return _0x877585;}function parseHit(_0xc09d15,_0x475508){const _0x3debd5=a289_0x5679c2,_0x2bef6d=requireExactRecord(_0xc09d15,HIT_KEYS,_0x3debd5(0x200)+_0x475508+']'),_0x2b8aca=_0xbb9251=>{const _0x21408b=_0x3debd5,_0x6ee997=_0x2bef6d[_0xbb9251];if(typeof _0x6ee997!==_0x21408b(0x1df)||!_0x6ee997)throw invalidContract(_0xbb9251);return _0x6ee997;};if(!Number[_0x3debd5(0x216)](_0x2bef6d[_0x3debd5(0x1d0)])||_0x2bef6d[_0x3debd5(0x1d0)]<0x1)throw invalidContract(_0x3debd5(0x1d0));if(_0x2bef6d[_0x3debd5(0x20a)]!==_0x3debd5(0x21f)&&_0x2bef6d[_0x3debd5(0x20a)]!==_0x3debd5(0x1f5))throw invalidContract(_0x3debd5(0x20a));if(typeof _0x2bef6d[_0x3debd5(0x1d6)]!=='string'||typeof _0x2bef6d[_0x3debd5(0x20b)]!==_0x3debd5(0x1df))throw invalidContract(_0x3debd5(0x20b));if(!Array[_0x3debd5(0x1fb)](_0x2bef6d[_0x3debd5(0x21a)])||_0x2bef6d[_0x3debd5(0x21a)]['some'](_0x39e6ca=>typeof _0x39e6ca!==_0x3debd5(0x1df)))throw invalidContract(_0x3debd5(0x21a));if(!Number[_0x3debd5(0x216)](_0x2bef6d[_0x3debd5(0x1de)])||_0x2bef6d[_0x3debd5(0x1de)]!==_0x475508+0x1)throw invalidContract(_0x3debd5(0x1de));if(!isFiniteNumber(_0x2bef6d[_0x3debd5(0x1ff)])||!isFiniteNumber(_0x2bef6d[_0x3debd5(0x1dc)]))throw invalidContract('score');return{'documentId':_0x2b8aca(_0x3debd5(0x220)),'revision':_0x2bef6d[_0x3debd5(0x1d0)],'chunkId':_0x2b8aca(_0x3debd5(0x1d9)),'scope':_0x2bef6d[_0x3debd5(0x20a)],'title':_0x2bef6d[_0x3debd5(0x1d6)],'text':_0x2bef6d[_0x3debd5(0x20b)],'tags':[..._0x2bef6d[_0x3debd5(0x21a)]],'rank':_0x2bef6d[_0x3debd5(0x1de)],'rawScore':_0x2bef6d['rawScore'],'finalScore':_0x2bef6d[_0x3debd5(0x1dc)],'scoreKind':_0x2b8aca('scoreKind')};}function requireExactRecord(_0x32f23f,_0x4cb63a,_0x475395){const _0x2a9474=a289_0x5679c2,_0x5a8479=requireRecord(_0x32f23f,_0x475395),_0x300f0a=Object['keys'](_0x5a8479)[_0x2a9474(0x1fe)](),_0x49296a=[..._0x4cb63a][_0x2a9474(0x1fe)]();if(_0x300f0a[_0x2a9474(0x1d5)]!==_0x49296a[_0x2a9474(0x1d5)]||_0x300f0a[_0x2a9474(0x1d4)]((_0x3c1bc4,_0x430c82)=>_0x3c1bc4!==_0x49296a[_0x430c82]))throw invalidContract(_0x475395);return _0x5a8479;}function requireRecord(_0x5c8d9c,_0x3a1698){const _0x7dd147=a289_0x5679c2;if(!_0x5c8d9c||typeof _0x5c8d9c!==_0x7dd147(0x202)||Array[_0x7dd147(0x1fb)](_0x5c8d9c))throw invalidContract(_0x3a1698);return _0x5c8d9c;}function isFiniteNumber(_0x518c3f){const _0x4f8fe9=a289_0x5679c2;return typeof _0x518c3f===_0x4f8fe9(0x1c9)&&Number[_0x4f8fe9(0x208)](_0x518c3f);}function invalidContract(_0x50296b){const _0x4c8d99=a289_0x5679c2;return CliErrors['apiError'](_0x4c8d99(0x1e3)+_0x50296b+_0x4c8d99(0x1e7));}
@@ -1 +1 @@
1
- (function(_0x2ea2aa,_0xe2d1cf){const _0x3dc8f0=a290_0x22ac,_0x556e7f=_0x2ea2aa();while(!![]){try{const _0x29b713=-parseInt(_0x3dc8f0(0x198))/0x1*(-parseInt(_0x3dc8f0(0x18d))/0x2)+parseInt(_0x3dc8f0(0x18a))/0x3+parseInt(_0x3dc8f0(0x193))/0x4+parseInt(_0x3dc8f0(0x194))/0x5*(parseInt(_0x3dc8f0(0x187))/0x6)+-parseInt(_0x3dc8f0(0x18b))/0x7*(parseInt(_0x3dc8f0(0x188))/0x8)+-parseInt(_0x3dc8f0(0x183))/0x9+-parseInt(_0x3dc8f0(0x180))/0xa;if(_0x29b713===_0xe2d1cf)break;else _0x556e7f['push'](_0x556e7f['shift']());}catch(_0x94192d){_0x556e7f['push'](_0x556e7f['shift']());}}}(a290_0x529e,0xdae7b));import{constants}from'node:fs';import{access,lstat,mkdir,readFile,readdir}from'node:fs/promises';import{dirname,join,relative,resolve,sep}from'node:path';import{CliErrors}from'../../errors.js';export function loadPageProjectConfig(_0x20c7f8,_0x141502=process['cwd']()){const _0x412f70=a290_0x22ac,_0x289668=resolve(_0x141502),_0x4b0c11=join(_0x289668,'.rabetbase','page');return{'projectRoot':_0x289668,'pagesBaseDir':_0x4b0c11,'appPagesDir':join(_0x4b0c11,_0x20c7f8),'lockFilePath':join(_0x289668,_0x412f70(0x189),_0x412f70(0x18f))};}export function buildPageFileName(_0x28d3ef,_0x4a0473){const _0x33053e=a290_0x22ac;return _0x28d3ef+'-'+_0x4a0473[_0x33053e(0x18e)]()+_0x33053e(0x181);}function a290_0x22ac(_0x2f7492,_0x3ab336){_0x2f7492=_0x2f7492-0x17f;const _0x529e96=a290_0x529e();let _0x22ac7a=_0x529e96[_0x2f7492];return _0x22ac7a;}function a290_0x529e(){const _0xe4cf67=['12dKLrUC','14301088wyzltE','.rabetbase','1250526XAhCSE','7qTkbIv','flagMissing','8dEsZWO','toUpperCase','page.lock.json','localeCompare','appPagesDir','split','4054424HNMdsi','3664410pfDLic','validation','Unsupported\x20file\x20in\x20page\x20directory:\x20','Page\x20directory\x20is\x20not\x20a\x20directory:\x20','349603xNThPK','trim','name','page-dir','9590660VTvwgi','.json','utf8','5861583gcHYAy','isDirectory','F_OK','sort'];a290_0x529e=function(){return _0xe4cf67;};return a290_0x529e();}export function resolvePageFilePath(_0x44e909,_0xeb8fc3,_0x239e88){const _0x46e870=a290_0x22ac;return join(_0x44e909[_0x46e870(0x191)],buildPageFileName(_0xeb8fc3,_0x239e88));}export async function ensureParentDirectory(_0x8c3a03){await mkdir(dirname(_0x8c3a03),{'recursive':!![]});}export async function fileExists(_0x454d65){const _0x3167bd=a290_0x22ac;try{return await access(_0x454d65,constants[_0x3167bd(0x185)]),!![];}catch{return![];}}export async function readCustomPageDirectory(_0x12127a){const _0x21a8be=a290_0x22ac,_0x4c6e05=_0x12127a[_0x21a8be(0x199)]();if(!_0x4c6e05)throw CliErrors[_0x21a8be(0x18c)](_0x21a8be(0x17f));const _0x54fa4f=resolve(_0x4c6e05);let _0x82a34a;try{_0x82a34a=await lstat(_0x54fa4f);}catch{throw CliErrors[_0x21a8be(0x195)]('Page\x20directory\x20not\x20found:\x20'+_0x4c6e05);}if(!_0x82a34a[_0x21a8be(0x184)]())throw CliErrors[_0x21a8be(0x195)](_0x21a8be(0x197)+_0x4c6e05);const _0x3510bb={};return await readDirectory(_0x54fa4f,_0x54fa4f,_0x3510bb),_0x3510bb;}async function readDirectory(_0x3b9014,_0x3e5059,_0x3bc4a9){const _0x199143=a290_0x22ac,_0x23f552=await readdir(_0x3e5059,{'withFileTypes':!![]});for(const _0x7c9c13 of _0x23f552[_0x199143(0x186)]((_0x116671,_0x489510)=>_0x116671[_0x199143(0x19a)][_0x199143(0x190)](_0x489510[_0x199143(0x19a)]))){const _0x67b601=join(_0x3e5059,_0x7c9c13['name']);if(_0x7c9c13[_0x199143(0x184)]()){await readDirectory(_0x3b9014,_0x67b601,_0x3bc4a9);continue;}if(!_0x7c9c13['isFile']())throw CliErrors[_0x199143(0x195)](_0x199143(0x196)+_0x67b601);_0x3bc4a9[relative(_0x3b9014,_0x67b601)[_0x199143(0x192)](sep)['join']('/')]=await readFile(_0x67b601,_0x199143(0x182));}}
1
+ const a290_0x7d4b28=a290_0x43dd;(function(_0x5259ca,_0x2de1a9){const _0x189e31=a290_0x43dd,_0x1d99ab=_0x5259ca();while(!![]){try{const _0x1a37a3=-parseInt(_0x189e31(0x1c3))/0x1+parseInt(_0x189e31(0x1d5))/0x2+-parseInt(_0x189e31(0x1c6))/0x3+parseInt(_0x189e31(0x1ce))/0x4+-parseInt(_0x189e31(0x1d8))/0x5+-parseInt(_0x189e31(0x1dc))/0x6*(parseInt(_0x189e31(0x1cb))/0x7)+parseInt(_0x189e31(0x1dd))/0x8*(parseInt(_0x189e31(0x1d3))/0x9);if(_0x1a37a3===_0x2de1a9)break;else _0x1d99ab['push'](_0x1d99ab['shift']());}catch(_0x2801b6){_0x1d99ab['push'](_0x1d99ab['shift']());}}}(a290_0x5272,0x1bf4b));function a290_0x43dd(_0x4be5ae,_0x142b7a){_0x4be5ae=_0x4be5ae-0x1c2;const _0x527254=a290_0x5272();let _0x43dd06=_0x527254[_0x4be5ae];return _0x43dd06;}import{constants}from'node:fs';import{access,lstat,mkdir,readFile,readdir}from'node:fs/promises';import{dirname,join,relative,resolve,sep}from'node:path';import{CliErrors}from'../../errors.js';function a290_0x5272(){const _0x5aacb3=['join','34408JjSAej','sort','page-dir','531273pFJuuL','isFile','cwd','name','Page\x20directory\x20not\x20found:\x20','14xZNaCs','validation','isDirectory','38064axTpDo','F_OK','localeCompare','.json','Unsupported\x20file\x20in\x20page\x20directory:\x20','13518jXinkX','split','448120hrSZnp','flagMissing','appPagesDir','949960RuLiRD','utf8','.rabetbase','toUpperCase','572124cPLZPB','2520FjMTOD','Page\x20directory\x20is\x20not\x20a\x20directory:\x20'];a290_0x5272=function(){return _0x5aacb3;};return a290_0x5272();}export function loadPageProjectConfig(_0x46aa39,_0x5b92c2=process[a290_0x7d4b28(0x1c8)]()){const _0x45fe0=a290_0x7d4b28,_0xc64ba5=resolve(_0x5b92c2),_0xbfe17c=join(_0xc64ba5,'.rabetbase','page');return{'projectRoot':_0xc64ba5,'pagesBaseDir':_0xbfe17c,'appPagesDir':join(_0xbfe17c,_0x46aa39),'lockFilePath':join(_0xc64ba5,_0x45fe0(0x1da),'page.lock.json')};}export function buildPageFileName(_0x5a7a8b,_0x315f37){const _0x282b78=a290_0x7d4b28;return _0x5a7a8b+'-'+_0x315f37[_0x282b78(0x1db)]()+_0x282b78(0x1d1);}export function resolvePageFilePath(_0x750dfd,_0x271018,_0x1f2806){const _0x58420d=a290_0x7d4b28;return join(_0x750dfd[_0x58420d(0x1d7)],buildPageFileName(_0x271018,_0x1f2806));}export async function ensureParentDirectory(_0x5730fb){await mkdir(dirname(_0x5730fb),{'recursive':!![]});}export async function fileExists(_0x4e4f70){const _0x3815ea=a290_0x7d4b28;try{return await access(_0x4e4f70,constants[_0x3815ea(0x1cf)]),!![];}catch{return![];}}export async function readCustomPageDirectory(_0x24d58a){const _0x2a2619=a290_0x7d4b28,_0x56b026=_0x24d58a['trim']();if(!_0x56b026)throw CliErrors[_0x2a2619(0x1d6)](_0x2a2619(0x1c5));const _0xc182f8=resolve(_0x56b026);let _0x5315e1;try{_0x5315e1=await lstat(_0xc182f8);}catch{throw CliErrors[_0x2a2619(0x1cc)](_0x2a2619(0x1ca)+_0x56b026);}if(!_0x5315e1[_0x2a2619(0x1cd)]())throw CliErrors[_0x2a2619(0x1cc)](_0x2a2619(0x1de)+_0x56b026);const _0x54ebe4={};return await readDirectory(_0xc182f8,_0xc182f8,_0x54ebe4),_0x54ebe4;}async function readDirectory(_0x54f7cf,_0x340896,_0x2e15ba){const _0x4149b4=a290_0x7d4b28,_0x139de9=await readdir(_0x340896,{'withFileTypes':!![]});for(const _0x3cdbad of _0x139de9[_0x4149b4(0x1c4)]((_0x23ba2c,_0x5901a6)=>_0x23ba2c[_0x4149b4(0x1c9)][_0x4149b4(0x1d0)](_0x5901a6['name']))){const _0x3e6c9e=join(_0x340896,_0x3cdbad[_0x4149b4(0x1c9)]);if(_0x3cdbad['isDirectory']()){await readDirectory(_0x54f7cf,_0x3e6c9e,_0x2e15ba);continue;}if(!_0x3cdbad[_0x4149b4(0x1c7)]())throw CliErrors[_0x4149b4(0x1cc)](_0x4149b4(0x1d2)+_0x3e6c9e);_0x2e15ba[relative(_0x54f7cf,_0x3e6c9e)[_0x4149b4(0x1d4)](sep)[_0x4149b4(0x1c2)]('/')]=await readFile(_0x3e6c9e,_0x4149b4(0x1d9));}}
@@ -1 +1 @@
1
- function a291_0x2b0b(_0x5aeb23,_0x115b84){_0x5aeb23=_0x5aeb23-0xe6;const _0x27fba1=a291_0x27fb();let _0x2b0bfa=_0x27fba1[_0x5aeb23];return _0x2b0bfa;}(function(_0x2389f2,_0x1822dc){const _0x836c8a=a291_0x2b0b,_0x594831=_0x2389f2();while(!![]){try{const _0x18a534=-parseInt(_0x836c8a(0xef))/0x1+parseInt(_0x836c8a(0xed))/0x2+parseInt(_0x836c8a(0xf0))/0x3+-parseInt(_0x836c8a(0xeb))/0x4+parseInt(_0x836c8a(0xe6))/0x5+-parseInt(_0x836c8a(0xf1))/0x6*(-parseInt(_0x836c8a(0xee))/0x7)+-parseInt(_0x836c8a(0xe9))/0x8;if(_0x18a534===_0x1822dc)break;else _0x594831['push'](_0x594831['shift']());}catch(_0x17e3e7){_0x594831['push'](_0x594831['shift']());}}}(a291_0x27fb,0x6bd1f));import a291_0x3989fd from'node:crypto';import{readFile}from'node:fs/promises';export function serializePageSchemaForFile(_0x16c78b){const _0x540408=a291_0x2b0b;return JSON[_0x540408(0xec)](JSON[_0x540408(0xea)](_0x16c78b),null,0x2)+'\x0a';}export function computePageContentHash(_0x4e05d0){const _0x108d3c=a291_0x2b0b;return a291_0x3989fd['createHash'](_0x108d3c(0xf2))[_0x108d3c(0xe8)](_0x4e05d0)[_0x108d3c(0xe7)]('hex');}export function computeSerializedSchemaHash(_0x2d7e91){return computePageContentHash(serializePageSchemaForFile(_0x2d7e91));}export async function computePageFileHash(_0x48e83d){const _0x1008d3=await readFile(_0x48e83d,'utf8');return computePageContentHash(_0x1008d3);}function a291_0x27fb(){const _0x54b380=['105574ZCfNYE','798900IZjkXu','473808shhUaB','186xeGrVz','md5','2323155eIOtEO','digest','update','148816EgiWIz','parse','2338788ddTDUD','stringify','1507442TXuktx'];a291_0x27fb=function(){return _0x54b380;};return a291_0x27fb();}
1
+ (function(_0x435985,_0x358994){const _0x15bcf4=a291_0x4b49,_0x13bffb=_0x435985();while(!![]){try{const _0x210f64=-parseInt(_0x15bcf4(0xec))/0x1+parseInt(_0x15bcf4(0xea))/0x2+parseInt(_0x15bcf4(0xf4))/0x3+parseInt(_0x15bcf4(0xf6))/0x4*(parseInt(_0x15bcf4(0xe9))/0x5)+parseInt(_0x15bcf4(0xf8))/0x6*(parseInt(_0x15bcf4(0xe8))/0x7)+parseInt(_0x15bcf4(0xee))/0x8+-parseInt(_0x15bcf4(0xf2))/0x9;if(_0x210f64===_0x358994)break;else _0x13bffb['push'](_0x13bffb['shift']());}catch(_0x5e9599){_0x13bffb['push'](_0x13bffb['shift']());}}}(a291_0x5a7b,0xe50fc));import a291_0xd57589 from'node:crypto';function a291_0x5a7b(){const _0xe0da3c=['12ZhKQmz','709219wcObME','102815NfzetK','3595198UbDHSX','stringify','284147xGQBQp','parse','14385992flgaGM','hex','digest','update','32344695LPVsxj','createHash','2127933pHuseJ','md5','60XOZYMT','utf8'];a291_0x5a7b=function(){return _0xe0da3c;};return a291_0x5a7b();}function a291_0x4b49(_0x40e03e,_0x2401ac){_0x40e03e=_0x40e03e-0xe8;const _0x5a7b5e=a291_0x5a7b();let _0x4b49b6=_0x5a7b5e[_0x40e03e];return _0x4b49b6;}import{readFile}from'node:fs/promises';export function serializePageSchemaForFile(_0x3f369e){const _0x499d46=a291_0x4b49;return JSON[_0x499d46(0xeb)](JSON[_0x499d46(0xed)](_0x3f369e),null,0x2)+'\x0a';}export function computePageContentHash(_0xaef73e){const _0x2f64e5=a291_0x4b49;return a291_0xd57589[_0x2f64e5(0xf3)](_0x2f64e5(0xf5))[_0x2f64e5(0xf1)](_0xaef73e)[_0x2f64e5(0xf0)](_0x2f64e5(0xef));}export function computeSerializedSchemaHash(_0x284d9e){return computePageContentHash(serializePageSchemaForFile(_0x284d9e));}export async function computePageFileHash(_0x5fb8c2){const _0x19cd80=a291_0x4b49,_0x5ae8bb=await readFile(_0x5fb8c2,_0x19cd80(0xf7));return computePageContentHash(_0x5ae8bb);}