@lovrabet/rabetbase-cli 2.5.3-beta.3 → 2.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/api-doc.js +1 -1
- package/lib/api/api-group.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/api/generate-sdk-config-file.js +1 -1
- package/lib/api/legacy-api-file.js +1 -1
- package/lib/api/model-registry-file.js +1 -1
- package/lib/api/model-registry-scaffold.js +1 -1
- package/lib/api/model-source.js +1 -1
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.js +1 -1
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/generate.js +1 -1
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/members-list.js +1 -1
- package/lib/commands/app/remote-directory.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/delete.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/app-config/list.js +1 -1
- package/lib/commands/app-config/set.js +1 -1
- package/lib/commands/app-config/shared.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/bff/create.js +1 -1
- package/lib/commands/bff/delete.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/bff/list.js +1 -1
- package/lib/commands/bff/logs.js +1 -1
- package/lib/commands/bff/pull.js +1 -1
- package/lib/commands/bff/push.js +1 -1
- package/lib/commands/bff/status.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/cli-update.js +1 -1
- package/lib/commands/codegen/index.js +1 -1
- package/lib/commands/codegen/sdk.js +1 -1
- package/lib/commands/codegen/sql.js +1 -1
- package/lib/commands/common/app-registry.js +1 -1
- package/lib/commands/common/app-selector.js +1 -1
- package/lib/commands/common/async-task.js +1 -1
- package/lib/commands/common/dry-run.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/common/validate.js +1 -1
- package/lib/commands/config/delete.js +1 -1
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/init.js +1 -1
- package/lib/commands/config/list.js +1 -1
- package/lib/commands/config/set.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/dataset/batch-design.js +1 -1
- package/lib/commands/dataset/business-group-update.js +1 -1
- package/lib/commands/dataset/business-groups.js +1 -1
- package/lib/commands/dataset/capability.js +1 -1
- package/lib/commands/dataset/cross-relation-create.js +1 -1
- package/lib/commands/dataset/cross-relation-delete.js +1 -1
- package/lib/commands/dataset/cross-relation-list.js +1 -1
- package/lib/commands/dataset/cross-relation-shared.js +1 -1
- package/lib/commands/dataset/cross-relation-update.js +1 -1
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/extend-update.js +1 -1
- package/lib/commands/dataset/field-restore.js +1 -1
- package/lib/commands/dataset/field-update.js +1 -1
- package/lib/commands/dataset/generate.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/dataset/relation-audit.js +1 -1
- package/lib/commands/dataset/relation-create.js +1 -1
- package/lib/commands/dataset/relation-delete.js +1 -1
- package/lib/commands/dataset/relation-shared.js +1 -1
- package/lib/commands/dataset/relation-update.js +1 -1
- package/lib/commands/dataset/relations.js +1 -1
- package/lib/commands/dataset/rename.js +1 -1
- package/lib/commands/dataset/restore.js +1 -1
- package/lib/commands/dataset/user-deleted-field-list.js +1 -1
- package/lib/commands/db/analysis-batching.js +1 -1
- package/lib/commands/db/analyze-batch-plan.js +1 -1
- package/lib/commands/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff-refresh-start.js +1 -1
- package/lib/commands/db/diff-refresh-status.js +1 -1
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/table-diff-shared.js +1 -1
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/deployment/index.js +1 -1
- package/lib/commands/deployment/sync-all.js +1 -1
- package/lib/commands/deployment/sync-jobs.js +1 -1
- package/lib/commands/deployment/sync-status.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/flow/create.js +1 -1
- package/lib/commands/flow/detail.js +1 -1
- package/lib/commands/flow/index.js +1 -1
- package/lib/commands/flow/list.js +1 -1
- package/lib/commands/flow/publish.js +1 -1
- package/lib/commands/flow/runtime-resources-shared.js +1 -1
- package/lib/commands/flow/runtime-role-list.js +1 -1
- package/lib/commands/flow/runtime-role-user-list.js +1 -1
- package/lib/commands/flow/runtime-user-search.js +1 -1
- package/lib/commands/flow/shared.js +1 -1
- package/lib/commands/flow/update.js +1 -1
- package/lib/commands/flow/validate.js +1 -1
- package/lib/commands/instant-api-policy/current.js +1 -1
- package/lib/commands/instant-api-policy/index.js +1 -1
- package/lib/commands/instant-api-policy/init.js +1 -1
- package/lib/commands/instant-api-policy/publish.js +1 -1
- package/lib/commands/instant-api-policy/pull.js +1 -1
- package/lib/commands/instant-api-policy/revision.js +1 -1
- package/lib/commands/instant-api-policy/revisions.js +1 -1
- package/lib/commands/instant-api-policy/rollback.js +1 -1
- package/lib/commands/instant-api-policy/shared.js +1 -1
- package/lib/commands/instant-api-policy/validate.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/nudge.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/issue/shared.js +1 -1
- package/lib/commands/kb/create.js +1 -1
- package/lib/commands/kb/delete.js +1 -1
- package/lib/commands/kb/detail.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/kb/list.js +1 -1
- package/lib/commands/kb/search.js +1 -1
- package/lib/commands/kb/shared.js +1 -1
- package/lib/commands/kb/update.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/asset-update.js +1 -1
- package/lib/commands/menu/delete.js +1 -1
- package/lib/commands/menu/external-link-create.js +1 -1
- package/lib/commands/menu/external-link-update.js +1 -1
- package/lib/commands/menu/group-create.js +1 -1
- package/lib/commands/menu/group-update.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/move.js +1 -1
- package/lib/commands/menu/regroup-start.js +1 -1
- package/lib/commands/menu/rename.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/delete-plan.js +1 -1
- package/lib/commands/menu/shared/facts.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/mutations.js +1 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/menu/visibility-update.js +1 -1
- package/lib/commands/notification/config-create.js +1 -1
- package/lib/commands/notification/config-delete.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/config-update.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/page/create.js +1 -1
- package/lib/commands/page/custom/detail.js +1 -1
- package/lib/commands/page/custom/list.js +1 -1
- package/lib/commands/page/custom/publish.js +1 -1
- package/lib/commands/page/custom/shared.js +1 -1
- package/lib/commands/page/custom/syntax.js +1 -1
- package/lib/commands/page/custom/update.js +1 -1
- package/lib/commands/page/data-list-status.js +1 -1
- package/lib/commands/page/generate-start.js +1 -1
- package/lib/commands/page/generate-status.js +1 -1
- package/lib/commands/page/index.js +1 -1
- package/lib/commands/page/pull.js +1 -1
- package/lib/commands/page/push.js +1 -1
- package/lib/commands/page/relation-audit.js +1 -1
- package/lib/commands/page/restore.js +1 -1
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/project/api-architecture-upgrade.js +1 -1
- package/lib/commands/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/materialize-project-template.js +1 -1
- package/lib/commands/project/create/project-name.js +1 -1
- package/lib/commands/project/create/project-template-archive.js +1 -1
- package/lib/commands/project/create/project-template-path.js +1 -1
- package/lib/commands/project/create/use-copy-project-template.js +1 -1
- package/lib/commands/project/create/use-format-code.js +1 -1
- package/lib/commands/project/create/use-install-dependencies.js +1 -1
- package/lib/commands/project/domain-routing-sync.js +1 -1
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/role/user-resolve.js +1 -1
- package/lib/commands/rule/get.js +1 -1
- package/lib/commands/rule/index.js +1 -1
- package/lib/commands/rule/list.js +1 -1
- package/lib/commands/rule/set.js +1 -1
- package/lib/commands/rule/shared.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/commands/task/index.js +1 -1
- package/lib/commands/task/status.js +1 -1
- package/lib/commands/tenant/index.js +1 -1
- package/lib/commands/tenant/members-list.js +1 -1
- package/lib/commands/tenant/shared.js +1 -1
- package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/add.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/commands/workspace/remove.js +1 -1
- package/lib/config/domain-config.js +1 -1
- package/lib/config/project-domain-routing.js +1 -1
- package/lib/config/region-config.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.d.ts +5 -3
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/paths.js +1 -1
- package/lib/constant/region.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/routing-profile.js +1 -1
- package/lib/context/app-resolver.js +1 -1
- package/lib/context/auth-resolver.js +1 -1
- package/lib/context/config-loader.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/hook-directory.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/cross-db-relation.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/flow-config.js +1 -1
- package/lib/core/instant-api-policy/config.js +1 -1
- package/lib/core/kb-search-client.js +1 -1
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/page/lr-smart-jsx.js +1 -1
- package/lib/core/sql-index-auditor.js +1 -1
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/error-output.js +1 -1
- package/lib/framework/explicit-yes.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/supported-flags.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/generated/official-routing.js +1 -1
- package/lib/generated/routing-contract.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
- package/lib/utils/ai_config.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cdn-config.js +1 -1
- package/lib/utils/check-sdk-version.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.d.ts +7 -0
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/config.js +1 -1
- package/lib/utils/entity-with-id.js +1 -1
- package/lib/utils/file-utils.js +1 -1
- package/lib/utils/guides-cdn.js +1 -1
- package/lib/utils/http-client.js +1 -1
- package/lib/utils/is-non-interactive.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/with-active-cookie.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +3 -1
- package/skills/rabetbase/SKILL.md +7 -5
- package/skills/rabetbase/guides/backend-function.md +5 -1
- package/skills/rabetbase/guides/bff-creation-workflow.md +3 -1
- package/skills/rabetbase/guides/cross-database-bff.md +70 -0
- package/skills/rabetbase/guides/data-api-guidelines.md +35 -33
- package/skills/rabetbase/guides/sql-creation-workflow.md +2 -0
- package/skills/rabetbase/references/rabetbase-dataset-cross-relations.md +5 -1
- package/skills/rabetbase.manifest.json +4 -3
- package/templates/README.md +41 -13
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x22cd45,_0xeb6741){const _0x40e167=a275_0x58ce,_0x493bd3=_0x22cd45();while(!![]){try{const _0x472543=-parseInt(_0x40e167(0x91))/0x1+parseInt(_0x40e167(0x76))/0x2*(parseInt(_0x40e167(0x7c))/0x3)+parseInt(_0x40e167(0x71))/0x4+-parseInt(_0x40e167(0x8d))/0x5+-parseInt(_0x40e167(0x98))/0x6*(-parseInt(_0x40e167(0x69))/0x7)+parseInt(_0x40e167(0x6b))/0x8+-parseInt(_0x40e167(0x79))/0x9;if(_0x472543===_0xeb6741)break;else _0x493bd3['push'](_0x493bd3['shift']());}catch(_0x59920c){_0x493bd3['push'](_0x493bd3['shift']());}}}(a275_0x847d,0xc124b));import{CliError}from'../../errors.js';function a275_0x847d(){const _0x11d3b9=['1267GjvqOV','datasetCode','9919136LCnugW','alias','\x22\x20changed\x20mapping\x20from\x20Dataset\x20\x22','get','Dataset\x20\x22','values','1139016cNcNmN','NFC','HOOK_ALIAS_AMBIGUOUS','HOOK_DIRECTORY_UNRESOLVED','HOOK_DIRECTORY_AMBIGUOUS','943442njgwds','HOOK\x20directory\x20\x22','toLowerCase','21579021GOVsJx','aliasToDatasetCodes','size','9ZaNGdQ','map','Incomplete\x20HOOK\x20path:\x20','\x22\x20points\x20to\x20a\x20Dataset\x20that\x20is\x20absent\x20from\x20current\x20platform\x20metadata.','HOOK','\x22\x20to\x20a\x20Dataset\x20alias\x20or\x20datasetCode.','add','includes','type','some','HOOK_DUPLICATE_DIRECTORIES','\x22\x20differs\x20only\x20by\x20case\x20from\x20another\x20Dataset\x20code.','datasetCodeToDatasets','\x22\x20has\x20multiple\x20SDK\x20aliases\x20and\x20has\x20no\x20unique\x20HOOK\x20directory.','\x22\x20resolves\x20to\x20multiple\x20Datasets.','set','push','2673300eLaOcG','message','functions','\x22\x20collides\x20across\x20datasetCode\x20and\x20alias\x20namespaces.','238472BPtKIj','lockKey','details','\x22\x20is\x20represented\x20by\x20multiple\x20HOOK\x20directories:\x20','join','SDK\x20alias\x20\x22','split','33882sDCtQD','HOOK_DATASET_NOT_FOUND','entries','Cannot\x20resolve\x20HOOK\x20directory\x20\x22','code'];a275_0x847d=function(){return _0x11d3b9;};return a275_0x847d();}export function trackedHookDirectoryMappings(_0x1934da){const _0x5cc7e4=a275_0x58ce,_0x7676a8=[];for(const [_0x240ce6,_0x396e05]of Object[_0x5cc7e4(0x66)](_0x1934da[_0x5cc7e4(0x8f)])){const [_0x571320,_0x1f614a]=_0x240ce6[_0x5cc7e4(0x97)]('/');if(_0x571320!==_0x5cc7e4(0x80)||!_0x1f614a||!_0x396e05[_0x5cc7e4(0x6a)])continue;_0x7676a8[_0x5cc7e4(0x8c)]({'alias':_0x1f614a,'datasetCode':_0x396e05[_0x5cc7e4(0x6a)]});}return _0x7676a8;}export function uniqueTrackedHookDirectoryByDataset(_0xc6b479){const _0x2f3c98=a275_0x58ce,_0x73f30a=new Map();for(const _0x305d58 of trackedHookDirectoryMappings(_0xc6b479)){const _0xa9eb8e=directoryIdentity(_0x305d58[_0x2f3c98(0x6a)]),_0x195a0f=_0x73f30a[_0x2f3c98(0x6e)](_0xa9eb8e)??new Map();_0x195a0f[_0x2f3c98(0x8b)](directoryIdentity(_0x305d58[_0x2f3c98(0x6c)]),_0x305d58[_0x2f3c98(0x6c)]),_0x73f30a[_0x2f3c98(0x8b)](_0xa9eb8e,_0x195a0f);}const _0x5e117e=new Map();for(const [_0x48c15d,_0x385aa3]of _0x73f30a){if(_0x385aa3[_0x2f3c98(0x7b)]>0x1)throw hookDirectoryError(_0x2f3c98(0x86),_0x2f3c98(0x6f)+_0x48c15d+'\x22\x20has\x20multiple\x20tracked\x20HOOK\x20directories:\x20'+[..._0x385aa3[_0x2f3c98(0x70)]()][_0x2f3c98(0x95)](',\x20')+'.',{'datasetCode':_0x48c15d,'directories':[..._0x385aa3['values']()]});_0x5e117e[_0x2f3c98(0x8b)](_0x48c15d,[..._0x385aa3[_0x2f3c98(0x70)]()][0x0]);}return _0x5e117e;}function a275_0x58ce(_0x11e368,_0x13a07a){_0x11e368=_0x11e368-0x66;const _0x847d05=a275_0x847d();let _0x58ce31=_0x847d05[_0x11e368];return _0x58ce31;}export function assertUnambiguousHookDirectoryMappings(_0x131188){const _0x11ddd5=a275_0x58ce,_0x5ebc8d=new Map();for(const {alias:_0x8e8fdd,datasetCode:_0x1191fa}of _0x131188){const _0x2fc225=directoryIdentity(_0x8e8fdd),_0x27284a=_0x5ebc8d[_0x11ddd5(0x6e)](_0x2fc225)??new Set();_0x27284a['add'](_0x1191fa),_0x5ebc8d[_0x11ddd5(0x8b)](_0x2fc225,_0x27284a);}for(const [_0x3da4ab,_0x207677]of _0x5ebc8d){if(_0x207677[_0x11ddd5(0x7b)]>0x1)throw hookDirectoryError(_0x11ddd5(0x75),_0x11ddd5(0x77)+_0x3da4ab+'\x22\x20resolves\x20to\x20multiple\x20Datasets.',{'directoryName':_0x3da4ab,'datasetCodes':[..._0x207677]});}}export function assertUnambiguousHookAliases(_0x53768c){const _0x3bb833=a275_0x58ce,_0x2e9b65=[..._0x53768c],_0x57c351=new Map(),_0x5bff91=new Map();for(const {alias:_0x581e25,datasetCode:_0x410cd2}of _0x2e9b65){const _0x5c18e6=directoryIdentity(_0x581e25),_0x1e3bcd=directoryIdentity(_0x410cd2),_0x3925b5=_0x57c351['get'](_0x5c18e6)??new Set();_0x3925b5[_0x3bb833(0x82)](_0x410cd2),_0x57c351[_0x3bb833(0x8b)](_0x5c18e6,_0x3925b5);const _0x37f742=_0x5bff91[_0x3bb833(0x6e)](_0x1e3bcd)??new Set();_0x37f742[_0x3bb833(0x82)](_0x581e25),_0x5bff91[_0x3bb833(0x8b)](_0x1e3bcd,_0x37f742);}for(const [_0x35d21e,_0x5b7048]of _0x57c351){if(_0x5b7048[_0x3bb833(0x7b)]>0x1)throw hookDirectoryError(_0x3bb833(0x73),_0x3bb833(0x96)+_0x35d21e+_0x3bb833(0x8a),{'alias':_0x35d21e,'datasetCodes':[..._0x5b7048]});}for(const [_0x143c73,_0x37c378]of _0x5bff91){if(_0x37c378[_0x3bb833(0x7b)]>0x1)throw hookDirectoryError(_0x3bb833(0x73),_0x3bb833(0x6f)+_0x143c73+_0x3bb833(0x89),{'datasetCode':_0x143c73,'aliases':[..._0x37c378]});}}export function buildHookDirectoryIndexes(_0x588e14,_0x39732c=[]){const _0x1762bf=a275_0x58ce,_0x4964d5=[..._0x39732c];assertUnambiguousHookDirectoryMappings(_0x4964d5[_0x1762bf(0x7d)](([_0xa0cc1a,_0x225905])=>({'alias':_0xa0cc1a,'datasetCode':_0x225905})));const _0x515e5f=new Map(),_0x41a128=new Map();for(const _0x4a31e2 of _0x588e14){appendUnique(_0x515e5f,directoryIdentity(_0x4a31e2[_0x1762bf(0x68)]),_0x4a31e2,_0x747605=>_0x747605[_0x1762bf(0x68)]);}for(const [_0x125151,_0xe73929]of _0x4964d5){appendUnique(_0x41a128,directoryIdentity(_0x125151),_0xe73929,_0x4903f8=>_0x4903f8);}return{'datasetCodeToDatasets':_0x515e5f,'aliasToDatasetCodes':_0x41a128};}export function resolvePushHookDirectory(_0x348007,_0x130916,_0x2f25b2){const _0x3337eb=a275_0x58ce,_0x4a9647=directoryIdentity(_0x348007),_0x3cfa1c=_0x2f25b2['datasetCodeToDatasets']['get'](_0x4a9647)??[],_0x3a0aed=_0x2f25b2[_0x3337eb(0x7a)][_0x3337eb(0x6e)](_0x4a9647)??[],_0x4b4f21=new Set([..._0x3cfa1c[_0x3337eb(0x7d)](_0x31cf29=>_0x31cf29[_0x3337eb(0x68)]),..._0x3a0aed]);if(_0x4b4f21['size']>0x1)throw hookDirectoryError('HOOK_DIRECTORY_AMBIGUOUS',_0x3337eb(0x77)+_0x348007+_0x3337eb(0x90),{'directoryName':_0x348007,'datasetCodes':[..._0x4b4f21]});const _0x5dbbd1=[..._0x4b4f21][0x0];if(_0x5dbbd1&&_0x130916?.[_0x3337eb(0x6a)]&&_0x5dbbd1!==_0x130916['datasetCode'])throw hookDirectoryError('HOOK_MAPPING_DRIFT',_0x3337eb(0x77)+_0x348007+_0x3337eb(0x6d)+_0x130916['datasetCode']+'\x22\x20to\x20\x22'+_0x5dbbd1+'\x22.',{'directoryName':_0x348007,'datasetCode':_0x5dbbd1,'lockedDatasetCode':_0x130916[_0x3337eb(0x6a)]});const _0x5b5bab=_0x5dbbd1?findDatasetByCode(_0x2f25b2,_0x5dbbd1):undefined,_0x3d052e=!!_0x5dbbd1&&_0x3a0aed[_0x3337eb(0x83)](_0x5dbbd1);if(_0x5b5bab)return{'dataset':_0x5b5bab,'datasetCode':_0x5b5bab['code'],..._0x3d052e?{'alias':_0x348007}:{},'directoryProtocol':_0x3d052e?'alias':_0x3337eb(0x6a),'warnings':[]};const _0x85ebc9=_0x130916?.['datasetCode'];if(_0x85ebc9){const _0x5d7eb3=findDatasetByCode(_0x2f25b2,_0x85ebc9);if(_0x5d7eb3)return{'dataset':_0x5d7eb3,'datasetCode':_0x5d7eb3[_0x3337eb(0x68)],..._0x130916[_0x3337eb(0x6c)]?{'alias':_0x130916[_0x3337eb(0x6c)]}:{},'directoryProtocol':_0x130916[_0x3337eb(0x6c)]?_0x3337eb(0x6c):_0x3337eb(0x6a),'warnings':[]};}if(_0x5dbbd1||_0x85ebc9){const _0x3db567=_0x5dbbd1??_0x85ebc9;throw hookDirectoryError(_0x3337eb(0x99),_0x3337eb(0x77)+_0x348007+_0x3337eb(0x7f),{'directoryName':_0x348007,'datasetCode':_0x3db567});}throw hookDirectoryError(_0x3337eb(0x74),_0x3337eb(0x67)+_0x348007+_0x3337eb(0x81),{'directoryName':_0x348007});}export function preflightPushHookDirectories(_0x472fd2,_0x352bdc,_0xd71155,_0x1a5ac7){const _0x2bfc39=a275_0x58ce,_0x28ac70=new Map(),_0x18e06d=new Map();for(const _0x162b19 of _0x472fd2){if(_0x162b19[_0x2bfc39(0x84)]!=='HOOK')continue;const _0x3bf5c4=_0x162b19[_0x2bfc39(0x6c)];if(!_0x3bf5c4)throw hookDirectoryError('HOOK_DIRECTORY_UNRESOLVED',_0x2bfc39(0x7e)+_0x162b19['lockKey'],{'lockKey':_0x162b19['lockKey']});let _0xc7d1d1;try{_0xc7d1d1=resolvePushHookDirectory(_0x3bf5c4,_0x352bdc[_0x2bfc39(0x8f)][_0x162b19[_0x2bfc39(0x92)]],_0xd71155);}catch(_0x3a56b0){if(_0x1a5ac7&&_0x3a56b0 instanceof CliError&&[_0x2bfc39(0x99),_0x2bfc39(0x74)][_0x2bfc39(0x83)](_0x3a56b0[_0x2bfc39(0x68)])){_0x1a5ac7[_0x2bfc39(0x8b)](_0x162b19[_0x2bfc39(0x92)],_0x3a56b0[_0x2bfc39(0x8e)]);continue;}throw _0x3a56b0;}_0x28ac70[_0x2bfc39(0x8b)](_0x162b19[_0x2bfc39(0x92)],_0xc7d1d1);const _0xd5b7b5=_0x18e06d[_0x2bfc39(0x6e)](_0xc7d1d1['datasetCode'])??new Set();_0xd5b7b5['add'](_0x3bf5c4),_0x18e06d[_0x2bfc39(0x8b)](_0xc7d1d1[_0x2bfc39(0x6a)],_0xd5b7b5);}for(const [_0x459b5b,_0x4512fb]of _0x18e06d){if(_0x4512fb['size']>0x1)throw hookDirectoryError(_0x2bfc39(0x86),_0x2bfc39(0x6f)+_0x459b5b+_0x2bfc39(0x94)+[..._0x4512fb]['join'](',\x20')+'.',{'datasetCode':_0x459b5b,'directories':[..._0x4512fb]});}return _0x28ac70;}export function hookDirectoryError(_0x35475d,_0xe84a56,_0x25cc18){const _0x43246c=a275_0x58ce,_0x2f45b5=new CliError(_0x35475d,0x2,_0x35475d+':\x20'+_0xe84a56);return _0x2f45b5[_0x43246c(0x93)]=_0x25cc18,_0x2f45b5;}function findDatasetByCode(_0x114594,_0x2925d7){const _0x5fb741=a275_0x58ce,_0x518136=_0x114594[_0x5fb741(0x88)]['get'](directoryIdentity(_0x2925d7))??[];if(_0x518136['length']>0x1)throw hookDirectoryError('HOOK_DATASET_CODE_AMBIGUOUS','Dataset\x20code\x20\x22'+_0x2925d7+_0x5fb741(0x87),{'datasetCode':_0x2925d7,'candidates':_0x518136['map'](datasetFact)});return _0x518136[0x0];}function directoryIdentity(_0x4fb738){const _0x1f8877=a275_0x58ce;return _0x4fb738['normalize'](_0x1f8877(0x72))[_0x1f8877(0x78)]();}function appendUnique(_0xddc69d,_0x3bd63b,_0x5af620,_0x2c05c7){const _0x3dfa51=a275_0x58ce,_0x290845=_0xddc69d[_0x3dfa51(0x6e)](_0x3bd63b)??[];!_0x290845[_0x3dfa51(0x85)](_0x7e7535=>_0x2c05c7(_0x7e7535)===_0x2c05c7(_0x5af620))&&_0x290845[_0x3dfa51(0x8c)](_0x5af620),_0xddc69d[_0x3dfa51(0x8b)](_0x3bd63b,_0x290845);}function datasetFact(_0x2afc30){return{'id':_0x2afc30['id'],'name':_0x2afc30['name'],'datasetCode':_0x2afc30['code']};}
|
|
1
|
+
(function(_0x20e84b,_0x2ffb10){const _0x490a00=a275_0xa277,_0x1a624e=_0x20e84b();while(!![]){try{const _0x15c504=parseInt(_0x490a00(0xb5))/0x1*(parseInt(_0x490a00(0xa2))/0x2)+-parseInt(_0x490a00(0xac))/0x3*(-parseInt(_0x490a00(0xb0))/0x4)+-parseInt(_0x490a00(0xcf))/0x5*(parseInt(_0x490a00(0xc6))/0x6)+-parseInt(_0x490a00(0xb9))/0x7*(-parseInt(_0x490a00(0xab))/0x8)+parseInt(_0x490a00(0xbf))/0x9*(-parseInt(_0x490a00(0xae))/0xa)+-parseInt(_0x490a00(0xc5))/0xb*(parseInt(_0x490a00(0xca))/0xc)+parseInt(_0x490a00(0xce))/0xd;if(_0x15c504===_0x2ffb10)break;else _0x1a624e['push'](_0x1a624e['shift']());}catch(_0x54034e){_0x1a624e['push'](_0x1a624e['shift']());}}}(a275_0x4121,0x56eee));import{CliError}from'../../errors.js';export function trackedHookDirectoryMappings(_0x5b65b3){const _0x5922c3=a275_0xa277,_0x3f8cc8=[];for(const [_0x514f73,_0x4d51d6]of Object[_0x5922c3(0xb3)](_0x5b65b3[_0x5922c3(0xbb)])){const [_0x138b2d,_0x6e02e6]=_0x514f73[_0x5922c3(0xaf)]('/');if(_0x138b2d!==_0x5922c3(0xba)||!_0x6e02e6||!_0x4d51d6[_0x5922c3(0xa5)])continue;_0x3f8cc8['push']({'alias':_0x6e02e6,'datasetCode':_0x4d51d6[_0x5922c3(0xa5)]});}return _0x3f8cc8;}export function uniqueTrackedHookDirectoryByDataset(_0x5de6ab){const _0x122fce=a275_0xa277,_0x1e8cc1=new Map();for(const _0x612c4b of trackedHookDirectoryMappings(_0x5de6ab)){const _0x4ea95f=directoryIdentity(_0x612c4b[_0x122fce(0xa5)]),_0x30927e=_0x1e8cc1[_0x122fce(0xc4)](_0x4ea95f)??new Map();_0x30927e['set'](directoryIdentity(_0x612c4b[_0x122fce(0xa0)]),_0x612c4b['alias']),_0x1e8cc1['set'](_0x4ea95f,_0x30927e);}const _0x12e58a=new Map();for(const [_0x26840b,_0x5e5ad0]of _0x1e8cc1){if(_0x5e5ad0['size']>0x1)throw hookDirectoryError(_0x122fce(0xd2),_0x122fce(0xc8)+_0x26840b+_0x122fce(0x9f)+[..._0x5e5ad0[_0x122fce(0xd0)]()][_0x122fce(0xb6)](',\x20')+'.',{'datasetCode':_0x26840b,'directories':[..._0x5e5ad0[_0x122fce(0xd0)]()]});_0x12e58a['set'](_0x26840b,[..._0x5e5ad0[_0x122fce(0xd0)]()][0x0]);}return _0x12e58a;}export function assertUnambiguousHookDirectoryMappings(_0x127a8e){const _0x781d15=a275_0xa277,_0x17990c=new Map();for(const {alias:_0x4d9cde,datasetCode:_0x515eaa}of _0x127a8e){const _0x23d639=directoryIdentity(_0x4d9cde),_0x336f5c=_0x17990c[_0x781d15(0xc4)](_0x23d639)??new Set();_0x336f5c[_0x781d15(0xad)](_0x515eaa),_0x17990c['set'](_0x23d639,_0x336f5c);}for(const [_0x13599c,_0x19470b]of _0x17990c){if(_0x19470b[_0x781d15(0xb4)]>0x1)throw hookDirectoryError(_0x781d15(0xcb),_0x781d15(0xc3)+_0x13599c+_0x781d15(0xc2),{'directoryName':_0x13599c,'datasetCodes':[..._0x19470b]});}}function a275_0x4121(){const _0x2f9a8e=['1095565JfQqay','values','datasetCodeToDatasets','HOOK_DUPLICATE_DIRECTORIES','name','aliasToDatasetCodes','set','\x22\x20has\x20multiple\x20tracked\x20HOOK\x20directories:\x20','alias','HOOK_MAPPING_DRIFT','79216dmQLKU','Incomplete\x20HOOK\x20path:\x20','Dataset\x20code\x20\x22','datasetCode','\x22\x20differs\x20only\x20by\x20case\x20from\x20another\x20Dataset\x20code.','map','lockKey','\x22\x20collides\x20across\x20datasetCode\x20and\x20alias\x20namespaces.','HOOK_DATASET_NOT_FOUND','283448VntstF','5601WtLuUY','add','221230lKtnht','split','1228wBpyKa','HOOK_ALIAS_AMBIGUOUS','push','entries','size','14jArncV','join','includes','\x22\x20to\x20a\x20Dataset\x20alias\x20or\x20datasetCode.','7WXFumB','HOOK','functions','type','\x22\x20points\x20to\x20a\x20Dataset\x20that\x20is\x20absent\x20from\x20current\x20platform\x20metadata.','\x22\x20changed\x20mapping\x20from\x20Dataset\x20\x22','189grGRGC','details','\x22\x20is\x20represented\x20by\x20multiple\x20HOOK\x20directories:\x20','\x22\x20resolves\x20to\x20multiple\x20Datasets.','HOOK\x20directory\x20\x22','get','9064UVvLhk','12DCMSyp','HOOK_DIRECTORY_UNRESOLVED','Dataset\x20\x22','HOOK_DATASET_CODE_AMBIGUOUS','8700LVOkBv','HOOK_DIRECTORY_AMBIGUOUS','code','message','9011275SnkVXP'];a275_0x4121=function(){return _0x2f9a8e;};return a275_0x4121();}export function assertUnambiguousHookAliases(_0x41e311){const _0x5cccc0=a275_0xa277,_0xa7e9d=[..._0x41e311],_0x3f5d23=new Map(),_0x25a4c9=new Map();for(const {alias:_0x1fe29d,datasetCode:_0x1b8854}of _0xa7e9d){const _0x3d786f=directoryIdentity(_0x1fe29d),_0x3b3f4c=directoryIdentity(_0x1b8854),_0x4dc67d=_0x3f5d23[_0x5cccc0(0xc4)](_0x3d786f)??new Set();_0x4dc67d[_0x5cccc0(0xad)](_0x1b8854),_0x3f5d23[_0x5cccc0(0x9e)](_0x3d786f,_0x4dc67d);const _0x684691=_0x25a4c9[_0x5cccc0(0xc4)](_0x3b3f4c)??new Set();_0x684691['add'](_0x1fe29d),_0x25a4c9[_0x5cccc0(0x9e)](_0x3b3f4c,_0x684691);}for(const [_0x149aa2,_0x5a0193]of _0x3f5d23){if(_0x5a0193['size']>0x1)throw hookDirectoryError(_0x5cccc0(0xb1),'SDK\x20alias\x20\x22'+_0x149aa2+'\x22\x20resolves\x20to\x20multiple\x20Datasets.',{'alias':_0x149aa2,'datasetCodes':[..._0x5a0193]});}for(const [_0x4ccba2,_0x407b14]of _0x25a4c9){if(_0x407b14[_0x5cccc0(0xb4)]>0x1)throw hookDirectoryError(_0x5cccc0(0xb1),_0x5cccc0(0xc8)+_0x4ccba2+'\x22\x20has\x20multiple\x20SDK\x20aliases\x20and\x20has\x20no\x20unique\x20HOOK\x20directory.',{'datasetCode':_0x4ccba2,'aliases':[..._0x407b14]});}}export function buildHookDirectoryIndexes(_0x3e5a4b,_0x4a20f7=[]){const _0x3029d8=a275_0xa277,_0x4c939e=[..._0x4a20f7];assertUnambiguousHookDirectoryMappings(_0x4c939e[_0x3029d8(0xa7)](([_0x52697b,_0x3ba682])=>({'alias':_0x52697b,'datasetCode':_0x3ba682})));const _0x1ba200=new Map(),_0x53741c=new Map();for(const _0x5c560f of _0x3e5a4b){appendUnique(_0x1ba200,directoryIdentity(_0x5c560f[_0x3029d8(0xcc)]),_0x5c560f,_0x35f2fb=>_0x35f2fb[_0x3029d8(0xcc)]);}for(const [_0x262548,_0x5da4d4]of _0x4c939e){appendUnique(_0x53741c,directoryIdentity(_0x262548),_0x5da4d4,_0x3aeeb8=>_0x3aeeb8);}return{'datasetCodeToDatasets':_0x1ba200,'aliasToDatasetCodes':_0x53741c};}export function resolvePushHookDirectory(_0x369090,_0x4e3a06,_0x2a9348){const _0x3265a9=a275_0xa277,_0x5ba0ef=directoryIdentity(_0x369090),_0x4c797e=_0x2a9348[_0x3265a9(0xd1)][_0x3265a9(0xc4)](_0x5ba0ef)??[],_0x54d118=_0x2a9348[_0x3265a9(0xd4)][_0x3265a9(0xc4)](_0x5ba0ef)??[],_0x481a4b=new Set([..._0x4c797e[_0x3265a9(0xa7)](_0x15e722=>_0x15e722[_0x3265a9(0xcc)]),..._0x54d118]);if(_0x481a4b['size']>0x1)throw hookDirectoryError('HOOK_DIRECTORY_AMBIGUOUS',_0x3265a9(0xc3)+_0x369090+_0x3265a9(0xa9),{'directoryName':_0x369090,'datasetCodes':[..._0x481a4b]});const _0x329072=[..._0x481a4b][0x0];if(_0x329072&&_0x4e3a06?.['datasetCode']&&_0x329072!==_0x4e3a06[_0x3265a9(0xa5)])throw hookDirectoryError(_0x3265a9(0xa1),_0x3265a9(0xc3)+_0x369090+_0x3265a9(0xbe)+_0x4e3a06[_0x3265a9(0xa5)]+'\x22\x20to\x20\x22'+_0x329072+'\x22.',{'directoryName':_0x369090,'datasetCode':_0x329072,'lockedDatasetCode':_0x4e3a06[_0x3265a9(0xa5)]});const _0x1b5f93=_0x329072?findDatasetByCode(_0x2a9348,_0x329072):undefined,_0x5d0446=!!_0x329072&&_0x54d118[_0x3265a9(0xb7)](_0x329072);if(_0x1b5f93)return{'dataset':_0x1b5f93,'datasetCode':_0x1b5f93[_0x3265a9(0xcc)],..._0x5d0446?{'alias':_0x369090}:{},'directoryProtocol':_0x5d0446?'alias':_0x3265a9(0xa5),'warnings':[]};const _0xb84a8a=_0x4e3a06?.[_0x3265a9(0xa5)];if(_0xb84a8a){const _0x33f794=findDatasetByCode(_0x2a9348,_0xb84a8a);if(_0x33f794)return{'dataset':_0x33f794,'datasetCode':_0x33f794['code'],..._0x4e3a06[_0x3265a9(0xa0)]?{'alias':_0x4e3a06['alias']}:{},'directoryProtocol':_0x4e3a06[_0x3265a9(0xa0)]?_0x3265a9(0xa0):_0x3265a9(0xa5),'warnings':[]};}if(_0x329072||_0xb84a8a){const _0x3eab8a=_0x329072??_0xb84a8a;throw hookDirectoryError(_0x3265a9(0xaa),_0x3265a9(0xc3)+_0x369090+_0x3265a9(0xbd),{'directoryName':_0x369090,'datasetCode':_0x3eab8a});}throw hookDirectoryError(_0x3265a9(0xc7),'Cannot\x20resolve\x20HOOK\x20directory\x20\x22'+_0x369090+_0x3265a9(0xb8),{'directoryName':_0x369090});}function a275_0xa277(_0x2cb5e3,_0x5ee121){_0x2cb5e3=_0x2cb5e3-0x9e;const _0x412112=a275_0x4121();let _0xa277de=_0x412112[_0x2cb5e3];return _0xa277de;}export function preflightPushHookDirectories(_0x49d64b,_0x5b848f,_0x49f75c,_0x541be2){const _0x50f1e6=a275_0xa277,_0x21fb5e=new Map(),_0x592102=new Map();for(const _0x5f432c of _0x49d64b){if(_0x5f432c[_0x50f1e6(0xbc)]!=='HOOK')continue;const _0xe64a62=_0x5f432c['alias'];if(!_0xe64a62)throw hookDirectoryError(_0x50f1e6(0xc7),_0x50f1e6(0xa3)+_0x5f432c['lockKey'],{'lockKey':_0x5f432c['lockKey']});let _0x12473c;try{_0x12473c=resolvePushHookDirectory(_0xe64a62,_0x5b848f[_0x50f1e6(0xbb)][_0x5f432c[_0x50f1e6(0xa8)]],_0x49f75c);}catch(_0x15521e){if(_0x541be2&&_0x15521e instanceof CliError&&['HOOK_DATASET_NOT_FOUND',_0x50f1e6(0xc7)][_0x50f1e6(0xb7)](_0x15521e[_0x50f1e6(0xcc)])){_0x541be2[_0x50f1e6(0x9e)](_0x5f432c[_0x50f1e6(0xa8)],_0x15521e[_0x50f1e6(0xcd)]);continue;}throw _0x15521e;}_0x21fb5e[_0x50f1e6(0x9e)](_0x5f432c['lockKey'],_0x12473c);const _0xe891c3=_0x592102[_0x50f1e6(0xc4)](_0x12473c[_0x50f1e6(0xa5)])??new Set();_0xe891c3[_0x50f1e6(0xad)](_0xe64a62),_0x592102[_0x50f1e6(0x9e)](_0x12473c[_0x50f1e6(0xa5)],_0xe891c3);}for(const [_0x5e411f,_0x4126c7]of _0x592102){if(_0x4126c7[_0x50f1e6(0xb4)]>0x1)throw hookDirectoryError(_0x50f1e6(0xd2),_0x50f1e6(0xc8)+_0x5e411f+_0x50f1e6(0xc1)+[..._0x4126c7][_0x50f1e6(0xb6)](',\x20')+'.',{'datasetCode':_0x5e411f,'directories':[..._0x4126c7]});}return _0x21fb5e;}export function hookDirectoryError(_0x204de3,_0x98d2d1,_0x577e93){const _0x448805=a275_0xa277,_0x200e1e=new CliError(_0x204de3,0x2,_0x204de3+':\x20'+_0x98d2d1);return _0x200e1e[_0x448805(0xc0)]=_0x577e93,_0x200e1e;}function findDatasetByCode(_0x55c015,_0x8352a7){const _0x4c07c7=a275_0xa277,_0x2a893d=_0x55c015[_0x4c07c7(0xd1)][_0x4c07c7(0xc4)](directoryIdentity(_0x8352a7))??[];if(_0x2a893d['length']>0x1)throw hookDirectoryError(_0x4c07c7(0xc9),_0x4c07c7(0xa4)+_0x8352a7+_0x4c07c7(0xa6),{'datasetCode':_0x8352a7,'candidates':_0x2a893d[_0x4c07c7(0xa7)](datasetFact)});return _0x2a893d[0x0];}function directoryIdentity(_0x265e14){return _0x265e14['normalize']('NFC')['toLowerCase']();}function appendUnique(_0xe706a6,_0x4e169c,_0x22faae,_0x58ab94){const _0x5e36a4=a275_0xa277,_0x170156=_0xe706a6[_0x5e36a4(0xc4)](_0x4e169c)??[];!_0x170156['some'](_0x2f8891=>_0x58ab94(_0x2f8891)===_0x58ab94(_0x22faae))&&_0x170156[_0x5e36a4(0xb2)](_0x22faae),_0xe706a6[_0x5e36a4(0x9e)](_0x4e169c,_0x170156);}function datasetFact(_0x28e523){const _0xe57314=a275_0xa277;return{'id':_0x28e523['id'],'name':_0x28e523[_0xe57314(0xd3)],'datasetCode':_0x28e523[_0xe57314(0xcc)]};}
|
package/lib/core/bff/lock.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a276_0x1737(_0x5f38fa,_0x31bcbf){_0x5f38fa=_0x5f38fa-0x1d0;const _0x255b6f=a276_0x255b();let _0x173768=_0x255b6f[_0x5f38fa];return _0x173768;}(function(_0x35563b,_0x433ec7){const _0xcec91a=a276_0x1737,_0x5d6aea=_0x35563b();while(!![]){try{const _0x4d9c42=parseInt(_0xcec91a(0x1e2))/0x1+parseInt(_0xcec91a(0x1d4))/0x2*(parseInt(_0xcec91a(0x1d2))/0x3)+parseInt(_0xcec91a(0x1dc))/0x4+-parseInt(_0xcec91a(0x1e4))/0x5+parseInt(_0xcec91a(0x1da))/0x6+parseInt(_0xcec91a(0x1d3))/0x7*(-parseInt(_0xcec91a(0x1e3))/0x8)+-parseInt(_0xcec91a(0x1d8))/0x9*(parseInt(_0xcec91a(0x1d5))/0xa);if(_0x4d9c42===_0x433ec7)break;else _0x5d6aea['push'](_0x5d6aea['shift']());}catch(_0x43f370){_0x5d6aea['push'](_0x5d6aea['shift']());}}}(a276_0x255b,0x9a321));import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';export function createEmptyBffLock(){return{'apps':{}};}function a276_0x255b(){const _0x5656e9=['parse','lastSync','scriptsRoot','code','utf8','1141113UYBySx','40jSDVaF','367450TRTQiU','apps','\x22.\x20','74319vwryJV','1719837GxKjka','80zEFJDC','4538890DExIYp',':\x20scriptsRoot\x20mismatch\x20—\x20','current\x20\x22','27ovUlhQ','object','132756NeyJCW','functions','4564152quBrcO'];a276_0x255b=function(){return _0x5656e9;};return a276_0x255b();}export function ensureLockScope(_0x530a93,_0x1c4bd4,_0x55e76c,_0x2c7451){const _0xce0bb7=a276_0x1737,_0x36ec19={'apps':_0x530a93['apps']&&typeof _0x530a93[_0xce0bb7(0x1d0)]==='object'?_0x530a93[_0xce0bb7(0x1d0)]:{}};let _0x5473a6=_0x36ec19[_0xce0bb7(0x1d0)][_0x1c4bd4];if(!_0x5473a6)return _0x5473a6={'scriptsRoot':_0x55e76c,'lastSync':'','functions':{}},_0x36ec19[_0xce0bb7(0x1d0)][_0x1c4bd4]=_0x5473a6,{'lockData':_0x36ec19,'appLock':_0x5473a6};if(!_0x5473a6[_0xce0bb7(0x1df)])_0x5473a6[_0xce0bb7(0x1df)]=_0x55e76c;else{if(_0x5473a6[_0xce0bb7(0x1df)]!==_0x55e76c)throw new Error(_0x2c7451+_0xce0bb7(0x1d6)+(_0xce0bb7(0x1d7)+_0x55e76c+'\x22\x20vs\x20lock\x20\x22'+_0x5473a6[_0xce0bb7(0x1df)]+_0xce0bb7(0x1d1))+'Check\x20.rabetbase/bff.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.');}return!_0x5473a6[_0xce0bb7(0x1db)]&&(_0x5473a6['functions']={}),!_0x5473a6[_0xce0bb7(0x1de)]&&(_0x5473a6[_0xce0bb7(0x1de)]=''),{'lockData':_0x36ec19,'appLock':_0x5473a6};}export async function readBffLockFile(_0xad9af3){const _0x5537c8=a276_0x1737;try{const _0x11d373=await readFile(_0xad9af3,'utf8'),_0x2351ff=JSON[_0x5537c8(0x1dd)](_0x11d373);return{'apps':_0x2351ff[_0x5537c8(0x1d0)]&&typeof _0x2351ff[_0x5537c8(0x1d0)]===_0x5537c8(0x1d9)?_0x2351ff[_0x5537c8(0x1d0)]:{}};}catch(_0x34f144){if(_0x34f144[_0x5537c8(0x1e0)]==='ENOENT')return null;throw new Error('Failed\x20to\x20read\x20Backend\x20Function\x20lock\x20file:\x20'+String(_0x34f144));}}export async function writeBffLockFile(_0x3b9cf3,_0x15520b){const _0x497889=a276_0x1737;await mkdir(dirname(_0x3b9cf3),{'recursive':!![]}),await writeFile(_0x3b9cf3,JSON['stringify'](_0x15520b,null,0x2),_0x497889(0x1e1));}
|
package/lib/core/bff/utils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a278_0x31bc56=a278_0x4d9a;(function(_0x32883e,_0x15668c){const _0x5c044a=a278_0x4d9a,_0x4dbebb=_0x32883e();while(!![]){try{const _0x39d775=parseInt(_0x5c044a(0x203))/0x1*(-parseInt(_0x5c044a(0x1f5))/0x2)+parseInt(_0x5c044a(0x201))/0x3*(-parseInt(_0x5c044a(0x1f4))/0x4)+-parseInt(_0x5c044a(0x1ff))/0x5+-parseInt(_0x5c044a(0x1fb))/0x6+parseInt(_0x5c044a(0x1ef))/0x7*(parseInt(_0x5c044a(0x1f7))/0x8)+-parseInt(_0x5c044a(0x1f0))/0x9+parseInt(_0x5c044a(0x1f2))/0xa;if(_0x39d775===_0x15668c)break;else _0x4dbebb['push'](_0x4dbebb['shift']());}catch(_0x91b322){_0x4dbebb['push'](_0x4dbebb['shift']());}}}(a278_0x53ac,0x6eff2));export const DEFAULT_BFF_SCRIPT_DESCRIPTION=a278_0x31bc56(0x204);function a278_0x4d9a(_0x3d37ba,_0x5bd29b){_0x3d37ba=_0x3d37ba-0x1ee;const _0x53acec=a278_0x53ac();let _0x4d9a93=_0x53acec[_0x3d37ba];return _0x4d9a93;}const LEGACY_DEFAULT_BFF_SCRIPT_DESCRIPTION='TODO:\x20add\x20script\x20description';export function snakeToCamel(_0x556f8a){const _0x376d4c=a278_0x31bc56;return _0x556f8a[_0x376d4c(0x1fc)]()[_0x376d4c(0x207)](/_([a-z])/g,(_0x47cf63,_0x164aa5)=>_0x164aa5[_0x376d4c(0x1f8)]());}export function findHookLocationByRemoteId(_0x501313,_0xec492b){const _0x457a23=a278_0x31bc56;if(!_0xec492b)return undefined;for(const [_0x4c587a,_0x4db8dc]of Object['entries'](_0x501313)){if(_0x4db8dc['remoteId']===_0xec492b&&_0x4db8dc[_0x457a23(0x1f9)]&&_0x4db8dc[_0x457a23(0x1f6)]&&_0x4db8dc[_0x457a23(0x202)]){const _0x2a6b73=_0x4c587a[_0x457a23(0x1f3)]('/')[0x1];return{'alias':_0x2a6b73||_0x4db8dc['alias'],'datasetCode':_0x4db8dc[_0x457a23(0x1f9)],'operationType':_0x4db8dc[_0x457a23(0x1f6)],'functionNode':_0x4db8dc[_0x457a23(0x202)]};}}return undefined;}export function extractScriptDescription(_0x3f2e48){const _0x1acc4f=a278_0x31bc56,_0x3d1994=_0x3f2e48[_0x1acc4f(0x1f1)](/^\s*\/\*\*([\s\S]*?)\*\//);if(!_0x3d1994?.[0x1])return undefined;const _0xdbdf3f=_0x3d1994[0x1],_0x37c1a1=_0x144fb6=>{const _0x17a82d=_0x1acc4f,_0x4018c9=_0x144fb6?.[_0x17a82d(0x200)]();if(!_0x4018c9||_0x4018c9===DEFAULT_BFF_SCRIPT_DESCRIPTION||_0x4018c9===LEGACY_DEFAULT_BFF_SCRIPT_DESCRIPTION)return undefined;return _0x4018c9;},_0x266ad5=_0xdbdf3f[_0x1acc4f(0x1f1)](/^\s*\*\s*\[\s*脚本描述\s*]\s*(.+)$/m);if(_0x266ad5)return _0x37c1a1(_0x266ad5[0x1]);const _0x438016=_0xdbdf3f[_0x1acc4f(0x1f3)](/\r?\n/)[_0x1acc4f(0x206)](_0x15dc5a=>_0x15dc5a[_0x1acc4f(0x207)](/^\s*\*\s?/,'')[_0x1acc4f(0x200)]()),_0x5c20e3=_0x438016[_0x1acc4f(0x1fd)](_0x25a70a=>/^\[\s*脚本类型\s*]\s*\S+/['test'](_0x25a70a))&&_0x438016[_0x1acc4f(0x1fd)](_0x337454=>/^\[\s*脚本名称\s*]\s*\S+/[_0x1acc4f(0x1fe)](_0x337454));if(!_0x5c20e3)return undefined;for(const _0x1ed8ee of _0x438016){if(!_0x1ed8ee||_0x1ed8ee[_0x1acc4f(0x205)]('@')||/^\[[^\]]+]\s*/[_0x1acc4f(0x1fe)](_0x1ed8ee))continue;return _0x37c1a1(_0x1ed8ee);}return undefined;}export function isValidBffFunctionName(_0x2123d3){return/^[A-Za-z_$][A-Za-z0-9_$]*$/['test'](_0x2123d3);}export function normalizeHookFunctionNode(_0x9e21cf){const _0x19af06=a278_0x31bc56;if(!_0x9e21cf)return undefined;const _0x1c542a=_0x9e21cf[_0x19af06(0x200)]()[_0x19af06(0x1fc)]();if(_0x1c542a===_0x19af06(0x1ee)||_0x1c542a===_0x19af06(0x1fa))return _0x1c542a;return undefined;}function a278_0x53ac(){const _0x5026d9=['trim','21qNONyB','functionNode','1tKbkUg','TODO:\x20补充脚本功能描述','startsWith','map','replace','before','61600bchlbK','3404061yaDUDp','match','19239630cGKtHr','split','223716lMyrbh','188770gwlcaP','operationType','144GJeVqv','toUpperCase','datasetCode','after','3446292caoxRT','toLowerCase','some','test','946110nXJwgV'];a278_0x53ac=function(){return _0x5026d9;};return a278_0x53ac();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a279_0x1985f8=a279_0x28c6;(function(_0x2c803d,_0x14e0cc){const _0x14c3d0=a279_0x28c6,_0x3e6c6d=_0x2c803d();while(!![]){try{const _0x19f34d=-parseInt(_0x14c3d0(0x122))/0x1+parseInt(_0x14c3d0(0x124))/0x2+parseInt(_0x14c3d0(0x123))/0x3+parseInt(_0x14c3d0(0x118))/0x4*(-parseInt(_0x14c3d0(0x11f))/0x5)+-parseInt(_0x14c3d0(0x121))/0x6*(parseInt(_0x14c3d0(0x119))/0x7)+-parseInt(_0x14c3d0(0x11a))/0x8*(-parseInt(_0x14c3d0(0x11c))/0x9)+-parseInt(_0x14c3d0(0x11b))/0xa;if(_0x19f34d===_0x14e0cc)break;else _0x3e6c6d['push'](_0x3e6c6d['shift']());}catch(_0x54cc2c){_0x3e6c6d['push'](_0x3e6c6d['shift']());}}}(a279_0x2e13,0xbe217));function a279_0x28c6(_0x4aff6d,_0x2444d8){_0x4aff6d=_0x4aff6d-0x118;const _0x2e130f=a279_0x2e13();let _0x28c647=_0x2e130f[_0x4aff6d];return _0x28c647;}function a279_0x2e13(){const _0x1d2857=['/smartapi/cross-db-relation/create','/smartapi/cross-db-relation/query','43205NCEeCI','/smartapi/cross-db-relation/delete','1129932bgpDfZ','218636DyQvjO','4656996DcKZTf','1575294OKsKBO','700yNFuYm','7kizDBx','3558520OIeiaP','868860WkJIeS','9jiIncQ'];a279_0x2e13=function(){return _0x1d2857;};return a279_0x2e13();}export const CROSS_DB_RELATION_PATHS={'list':a279_0x1985f8(0x11e),'create':a279_0x1985f8(0x11d),'update':'/smartapi/cross-db-relation/update','delete':a279_0x1985f8(0x120)};
|
package/lib/core/db-resolver.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3dbf68,_0xe2bbdb){const _0x5298c2=a280_0x284a,_0x28c54c=_0x3dbf68();while(!![]){try{const _0x4143dd=parseInt(_0x5298c2(0x17c))/0x1+parseInt(_0x5298c2(0x17f))/0x2+-parseInt(_0x5298c2(0x185))/0x3*(-parseInt(_0x5298c2(0x192))/0x4)+parseInt(_0x5298c2(0x188))/0x5+-parseInt(_0x5298c2(0x18f))/0x6*(parseInt(_0x5298c2(0x18c))/0x7)+parseInt(_0x5298c2(0x19a))/0x8*(-parseInt(_0x5298c2(0x18e))/0x9)+parseInt(_0x5298c2(0x196))/0xa*(-parseInt(_0x5298c2(0x18b))/0xb);if(_0x4143dd===_0xe2bbdb)break;else _0x28c54c['push'](_0x28c54c['shift']());}catch(_0x58f72a){_0x28c54c['push'](_0x28c54c['shift']());}}}(a280_0x3aa1,0xb6286));import{listDatasets}from'../core/api-client.js';const cache=new Map();export async function listDatabases(_0x437bc7){const _0x548492=a280_0x284a;if(cache[_0x548492(0x199)](_0x437bc7))return cache[_0x548492(0x191)](_0x437bc7);const _0x245ec1=await listDatasets(_0x437bc7),_0x44fda6=new Map();for(const _0x4ec45a of _0x245ec1){const _0x83683b=_0x4ec45a[_0x548492(0x193)];_0x83683b?.[_0x548492(0x187)]!=null&&_0x44fda6[_0x548492(0x18d)](_0x83683b[_0x548492(0x187)],_0x83683b[_0x548492(0x17d)]??'db-'+_0x83683b[_0x548492(0x187)]);}const _0x56d32f=[..._0x44fda6[_0x548492(0x186)]()][_0x548492(0x18a)](([_0x3408a2,_0x8fa5a5])=>({'dbId':_0x3408a2,'dbName':_0x8fa5a5}));return cache[_0x548492(0x18d)](_0x437bc7,_0x56d32f),_0x56d32f;}function a280_0x284a(_0x1c1cfa,_0x4f21bb){_0x1c1cfa=_0x1c1cfa-0x17b;const _0x3aa1e6=a280_0x3aa1();let _0x284a90=_0x3aa1e6[_0x1c1cfa];return _0x284a90;}function a280_0x3aa1(){const _0x5d47e4=['2472200Esmblf','.\x20If\x20this\x20db\x20belongs\x20to\x20another\x20app,\x20rerun\x20with\x20--appcode\x20<appCode>.','\x22.\x20Make\x20sure\x20datasets\x20have\x20been\x20created.','No\x20linked\x20databases\x20found\x20under\x20app\x20\x22','filter','.\x20Be\x20more\x20specific.','213BTOSIG','entries','dbId','2697910NccgBO','\x22.\x20Available:\x20','map','23496lLWjsa','35NbVRWX','set','3033423YiTEti','1308066QfEuUB','Multiple\x20databases\x20found.\x20Specify\x20one\x20with\x20--db:\x20','get','63416weBmus','dbtableConfig','length','join','2450twDMwo','\x22\x20matches\x20multiple\x20databases:\x20','find','has','32frdxIM','isNaN','806365sgwedT','dbName','includes'];a280_0x3aa1=function(){return _0x5d47e4;};return a280_0x3aa1();}export async function resolveDb(_0xdd9a65,_0x6532fc){const _0x1192a6=a280_0x284a,_0x4c2bd1=await listDatabases(_0xdd9a65);if(_0x4c2bd1['length']===0x0)return{'resolved':[],'error':_0x1192a6(0x182)+_0xdd9a65+_0x1192a6(0x181)};if(!_0x6532fc)return{'resolved':_0x4c2bd1};const _0x555890=Number(_0x6532fc);if(!Number[_0x1192a6(0x17b)](_0x555890)){const _0x2a6906=_0x4c2bd1[_0x1192a6(0x198)](_0x310e17=>_0x310e17[_0x1192a6(0x187)]===_0x555890);if(_0x2a6906)return{'resolved':[_0x2a6906]};}const _0x55cccd=_0x6532fc['toLowerCase'](),_0x5eaa20=_0x4c2bd1[_0x1192a6(0x183)](_0x2b1375=>_0x2b1375[_0x1192a6(0x17d)]['toLowerCase']()[_0x1192a6(0x17e)](_0x55cccd));if(_0x5eaa20[_0x1192a6(0x194)]>0x0)return{'resolved':_0x5eaa20};const _0x31d810=_0x4c2bd1[_0x1192a6(0x18a)](_0x57cb24=>_0x57cb24['dbName']+'\x20('+_0x57cb24['dbId']+')')[_0x1192a6(0x195)](',\x20');return{'resolved':[],'error':'No\x20database\x20matching\x20\x22'+_0x6532fc+'\x22\x20under\x20app\x20\x22'+_0xdd9a65+_0x1192a6(0x189)+_0x31d810+_0x1192a6(0x180)};}export async function resolveOneDb(_0x18d392,_0x393524){const _0x4337ed=a280_0x284a,{resolved:_0x484054,error:_0x8d651}=await resolveDb(_0x18d392,_0x393524);if(_0x8d651)return{'db':null,'error':_0x8d651};if(_0x484054[_0x4337ed(0x194)]===0x1)return{'db':_0x484054[0x0]};if(!_0x393524){const _0xaa2ef8=_0x484054['map'](_0x36b888=>_0x36b888[_0x4337ed(0x17d)]+'\x20('+_0x36b888[_0x4337ed(0x187)]+')')[_0x4337ed(0x195)](',\x20');return{'db':null,'error':_0x4337ed(0x190)+_0xaa2ef8};}const _0x35be07=_0x484054[_0x4337ed(0x18a)](_0x4374f5=>_0x4374f5[_0x4337ed(0x17d)]+'\x20('+_0x4374f5[_0x4337ed(0x187)]+')')[_0x4337ed(0x195)](',\x20');return{'db':null,'error':'\x22'+_0x393524+_0x4337ed(0x197)+_0x35be07+_0x4337ed(0x184)};}export async function getDbName(_0x5ba81b,_0x17b912){const _0x42405c=a280_0x284a,_0x1666e9=await listDatabases(_0x5ba81b);return _0x1666e9[_0x42405c(0x198)](_0x3f2b08=>_0x3f2b08[_0x42405c(0x187)]===_0x17b912)?.[_0x42405c(0x17d)];}
|
package/lib/core/flow-config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a281_0x358266=a281_0x4a08;(function(_0x255704,_0x1e7c19){const _0x11d309=a281_0x4a08,_0x335f09=_0x255704();while(!![]){try{const _0x4bed74=-parseInt(_0x11d309(0x250))/0x1+parseInt(_0x11d309(0x171))/0x2+-parseInt(_0x11d309(0x117))/0x3+-parseInt(_0x11d309(0x148))/0x4+-parseInt(_0x11d309(0x17d))/0x5+parseInt(_0x11d309(0x1bb))/0x6*(-parseInt(_0x11d309(0x164))/0x7)+parseInt(_0x11d309(0x16f))/0x8;if(_0x4bed74===_0x1e7c19)break;else _0x335f09['push'](_0x335f09['shift']());}catch(_0x24fc17){_0x335f09['push'](_0x335f09['shift']());}}}(a281_0x445b,0x39853));import{randomUUID}from'node:crypto';import{chmod,link,readFile,rename,stat,unlink,writeFile}from'node:fs/promises';import{resolve}from'node:path';export const FLOW_CONFIG_JSON_SCHEMA={'$schema':a281_0x358266(0x1e9),'$id':a281_0x358266(0x260),'title':a281_0x358266(0x136),'type':'object','required':[a281_0x358266(0x1e6),a281_0x358266(0x177),a281_0x358266(0x1fb)],'$defs':{'userId':{'anyOf':[{'type':a281_0x358266(0x19d),'minLength':0x1},{'type':a281_0x358266(0x221),'minimum':0x1}]},'position':{'type':a281_0x358266(0x1c7),'required':['x','y'],'properties':{'x':{'type':'number','minimum':0x0},'y':{'type':a281_0x358266(0x1f8),'minimum':0x0}},'additionalProperties':!![]},'timeAmount':{'type':a281_0x358266(0x1c7),'required':[a281_0x358266(0x114),a281_0x358266(0x161)],'properties':{'value':{'type':a281_0x358266(0x221),'minimum':0x1},'unit':{'enum':[a281_0x358266(0x21a),a281_0x358266(0x113),'HOURS',a281_0x358266(0x120)]}},'additionalProperties':!![]},'flowNode':{'type':a281_0x358266(0x1c7),'required':['id','type','name',a281_0x358266(0x208)],'properties':{'id':{'type':a281_0x358266(0x19d),'pattern':'^[A-Za-z_][A-Za-z0-9_]*$'},'type':{'enum':['START',a281_0x358266(0x207),a281_0x358266(0x1a8),a281_0x358266(0x20c),'SCRIPT',a281_0x358266(0x251)]},'name':{'type':a281_0x358266(0x19d),'minLength':0x1},'pageId':{'type':a281_0x358266(0x221),'minimum':0x1},'position':{'$ref':a281_0x358266(0x144)},'approvalMode':{'enum':[a281_0x358266(0x15f),a281_0x358266(0x110),a281_0x358266(0x10c)]},'taskMode':{'enum':[a281_0x358266(0x1a8),a281_0x358266(0x17a)]},'assignee':{'type':'object','required':[a281_0x358266(0x1a9)],'properties':{'strategy':{'enum':[a281_0x358266(0x1f6),a281_0x358266(0x191)]},'userIds':{'type':a281_0x358266(0x199),'minItems':0x1,'items':{'$ref':a281_0x358266(0x1c4)}},'roleId':{'anyOf':[{'type':'integer','minimum':0x1},{'type':'string','pattern':a281_0x358266(0x14f)}]}},'additionalProperties':!![]},'transferCandidates':{'type':a281_0x358266(0x1c7),'required':[a281_0x358266(0x1a9),a281_0x358266(0x1b4)],'properties':{'strategy':{'const':a281_0x358266(0x1f6)},'userIds':{'type':a281_0x358266(0x199),'minItems':0x1,'items':{'$ref':a281_0x358266(0x1c4)}}},'additionalProperties':!![]},'sequential':{'type':'boolean'},'result':{'enum':[a281_0x358266(0x1cc),a281_0x358266(0x1a1)]},'scriptName':{'type':a281_0x358266(0x19d),'minLength':0x1},'resultVariable':{'type':a281_0x358266(0x19d),'pattern':a281_0x358266(0x149)},'async':{'type':a281_0x358266(0x1c7),'properties':{'enabled':{'type':a281_0x358266(0x13b)},'retryCount':{'type':a281_0x358266(0x221),'minimum':0x1,'maximum':0xa},'retryInterval':{'$ref':a281_0x358266(0x1d9)}},'additionalProperties':!![]},'timeout':{'type':'object','properties':{'enabled':{'type':a281_0x358266(0x13b)},'duration':{'$ref':'#/$defs/timeAmount'},'action':{'enum':['AUTO_APPROVE',a281_0x358266(0x175),a281_0x358266(0x12f)]},'interrupting':{'type':a281_0x358266(0x13b)},'scriptName':{'type':a281_0x358266(0x19d),'minLength':0x1},'resultVariable':{'type':'string','pattern':a281_0x358266(0x149)}},'additionalProperties':!![]},'cc':{'type':a281_0x358266(0x1c7),'required':[a281_0x358266(0x24c)],'properties':{'recipientUserIds':{'type':'array','minItems':0x1,'maxItems':0x64,'uniqueItems':!![],'items':{'type':'string','minLength':0x1}},'visible':{'type':a281_0x358266(0x199),'uniqueItems':!![],'items':{'type':'string','minLength':0x1}},'readSources':![]},'additionalProperties':!![]},'config':{'type':'object','required':[a281_0x358266(0x1c2),a281_0x358266(0x1e0)],'properties':{'version':{'enum':['v1']},'configCode':{'type':a281_0x358266(0x19d),'minLength':0x1},'failurePolicy':{'enum':['CONTINUE',a281_0x358266(0x1f2)]},'template':{'type':a281_0x358266(0x1c7),'required':[a281_0x358266(0x128),a281_0x358266(0x26e)],'properties':{'title':{'type':a281_0x358266(0x19d),'minLength':0x1},'summary':{'type':'string','minLength':0x1},'detailMarkdown':{'type':a281_0x358266(0x19d)},'facts':{'type':'array','maxItems':0x8,'items':{'type':'object','required':[a281_0x358266(0x198),a281_0x358266(0x114)],'properties':{'label':{'type':a281_0x358266(0x19d),'minLength':0x1},'value':{'type':a281_0x358266(0x19d),'minLength':0x1}},'additionalProperties':!![]}},'actions':{'type':a281_0x358266(0x199),'maxItems':0x2,'items':{'type':'object','required':['text',a281_0x358266(0x259)],'properties':{'text':{'type':'string','minLength':0x1},'url':{'type':a281_0x358266(0x19d),'minLength':0x1}},'additionalProperties':!![]}}},'additionalProperties':!![]},'recipients':{'type':a281_0x358266(0x199),'items':{'type':a281_0x358266(0x1c7),'required':[a281_0x358266(0x1ed),a281_0x358266(0x114)],'properties':{'type':{'enum':[a281_0x358266(0x232),'ROLE',a281_0x358266(0x1d0)]},'value':{'type':a281_0x358266(0x19d),'minLength':0x1},'role':{'enum':['TO','CC',a281_0x358266(0x262)]}},'additionalProperties':!![]}}},'additionalProperties':!![]},'form':![],'formPermission':![]},'additionalProperties':!![]},'flowEdge':{'type':a281_0x358266(0x1c7),'properties':{'id':{'type':'string','pattern':'^[A-Za-z_][A-Za-z0-9_]*$'},'source':{'type':'string','minLength':0x1},'target':{'type':a281_0x358266(0x19d),'minLength':0x1},'sourceNodeId':{'type':a281_0x358266(0x19d),'minLength':0x1},'targetNodeId':{'type':'string','minLength':0x1},'conditionType':{'enum':[a281_0x358266(0x184),a281_0x358266(0x1cc),a281_0x358266(0x1a1),a281_0x358266(0x150)]},'expression':{'type':a281_0x358266(0x19d)},'defaultFlow':{'type':a281_0x358266(0x13b)},'name':{'type':a281_0x358266(0x19d)},'waypoints':{'type':'array','items':{'$ref':a281_0x358266(0x144)}}},'allOf':[{'anyOf':[{'required':[a281_0x358266(0x166)]},{'required':[a281_0x358266(0x1ca)]}]},{'anyOf':[{'required':[a281_0x358266(0x17b)]},{'required':['targetNodeId']}]}],'additionalProperties':!![]}},'properties':{'id':![],'appCode':![],'flowName':{'type':a281_0x358266(0x19d),'minLength':0x1},'flowDesc':{'type':'string'},'flowType':{'enum':[a281_0x358266(0x21d),a281_0x358266(0x15d)]},'datasetCode':{'type':a281_0x358266(0x19d),'minLength':0x1},'pageId':{'type':a281_0x358266(0x221)},'templateName':![],'flowJson':{'type':a281_0x358266(0x1c7),'required':[a281_0x358266(0x216),a281_0x358266(0x1af)],'properties':{'flowKey':![],'flowCode':![],'flowName':![],'bindDatasetCode':![],'datasetCode':![],'appCode':![],'pageId':![],'templateName':![],'schemaVersion':{'type':a281_0x358266(0x19d),'const':'approval.simple-flow.v1','description':a281_0x358266(0x1e5)},'formSchema':![],'formDefinitions':![],'formPermissions':![],'pageMode':{'const':a281_0x358266(0x23e)},'startPageId':{'type':a281_0x358266(0x221),'minimum':0x1},'nodes':{'type':a281_0x358266(0x199),'minItems':0x1,'items':{'$ref':a281_0x358266(0x14d)}},'edges':{'type':a281_0x358266(0x199),'minItems':0x1,'items':{'$ref':a281_0x358266(0x26b)}}},'additionalProperties':!![]}},'additionalProperties':!![]};const REMOVED_FLOW_JSON_FIELDS=['flowKey',a281_0x358266(0x1a6),a281_0x358266(0x1e6),a281_0x358266(0x190),a281_0x358266(0x269),a281_0x358266(0x20e),a281_0x358266(0x160),a281_0x358266(0x11e)],REMOVED_ROOT_FIELDS=['id',a281_0x358266(0x20e),'templateName'],DEFAULT_FLOW_SCHEMA_VERSION=a281_0x358266(0x1e3),NODE_TYPES=new Set(['START','END',a281_0x358266(0x1a8),a281_0x358266(0x20c),a281_0x358266(0x10d),a281_0x358266(0x251)]),CONDITION_TYPES=new Set([a281_0x358266(0x184),a281_0x358266(0x1cc),a281_0x358266(0x1a1),a281_0x358266(0x150)]),APPROVAL_MODES=new Set([a281_0x358266(0x15f),a281_0x358266(0x110),a281_0x358266(0x10c)]),APPROVAL_TASK_MODES=new Set([a281_0x358266(0x1a8),a281_0x358266(0x17a)]),FLOW_TIME_UNITS=new Set([a281_0x358266(0x21a),'MINUTES',a281_0x358266(0x242),a281_0x358266(0x120)]),APPROVAL_TIMEOUT_ACTIONS=new Set([a281_0x358266(0x11a),a281_0x358266(0x175),a281_0x358266(0x12f)]),FLOW_TYPES=new Set([a281_0x358266(0x21d),a281_0x358266(0x15d)]),FLOW_PAGE_MODES=new Set([a281_0x358266(0x23e),a281_0x358266(0x1ba)]),BPMN_ID_PATTERN=/^[A-Za-z_][A-Za-z0-9_]*$/,VARIABLE_PATTERN=/^[A-Za-z_][A-Za-z0-9_]*$/,NOTIFICATION_PLACEHOLDER_PATTERN=/\$\{([^{}]+)\}/g,NOTIFICATION_ACTION_URL_PLACEHOLDER_PATTERN=/^\$\{(?:event|context|variables)\.[^{}]+\}$/,NOTIFICATION_FAILURE_POLICIES=new Set([a281_0x358266(0x23d),a281_0x358266(0x1f2)]),NOTIFICATION_RECIPIENT_TYPES=new Set([a281_0x358266(0x232),a281_0x358266(0x191),a281_0x358266(0x1d0)]),NOTIFICATION_RECIPIENT_ROLES=new Set(['TO','CC',a281_0x358266(0x262)]),MAX_NOTIFICATION_FACTS=0x8,MAX_NOTIFICATION_ACTIONS=0x2,MAX_ASYNC_RETRY_COUNT=0xa,MAX_CC_RECIPIENTS=0x64,DEFAULT_SCRIPT_RESULT_VARIABLE=a281_0x358266(0x11d),UNSUPPORTED_FORM_MESSAGE=a281_0x358266(0x24d),UNSUPPORTED_PLATFORM_FORM_MESSAGE=a281_0x358266(0x133),RESERVED_RESULT_VARIABLES=new Set([a281_0x358266(0x25a),'approved',a281_0x358266(0x1ec),a281_0x358266(0x212),a281_0x358266(0x215),a281_0x358266(0x267),a281_0x358266(0x209),'approval_sys_pageId',a281_0x358266(0x222),'approval_sys_dataId']);export function normalizeFlowConfig(_0x31ab34){const _0x539b4e=a281_0x358266;if(!isRecord(_0x31ab34))throw new TypeError(_0x539b4e(0x21c));const _0x5bc527=cloneJsonValue(_0x31ab34),_0x1712de=_0x5bc527[_0x539b4e(0x1fb)],_0x1a8e1b=isRecord(_0x1712de)?cloneJsonValue(_0x1712de):{},_0x5bc5ae=[],_0x34ee5a=[];for(const _0x1ca2b2 of REMOVED_ROOT_FIELDS){if(!Object[_0x539b4e(0x169)]['hasOwnProperty']['call'](_0x5bc527,_0x1ca2b2))continue;delete _0x5bc527[_0x1ca2b2],_0x34ee5a[_0x539b4e(0x1be)](_0x1ca2b2),_0x5bc5ae['push']({'code':_0x539b4e(0x1b5),'path':_0x1ca2b2,'message':_0x1ca2b2+'\x20is\x20not\x20part\x20of\x20the\x20portable\x20FlowConfig\x20and\x20was\x20removed.'});}for(const _0x729f43 of REMOVED_FLOW_JSON_FIELDS){if(!Object[_0x539b4e(0x169)]['hasOwnProperty'][_0x539b4e(0x21f)](_0x1a8e1b,_0x729f43))continue;const _0x305b4=_0x539b4e(0x1cb)+_0x729f43;delete _0x1a8e1b[_0x729f43],_0x34ee5a[_0x539b4e(0x1be)](_0x305b4),_0x5bc5ae[_0x539b4e(0x1be)]({'code':_0x539b4e(0x1b5),'path':_0x305b4,'message':_0x305b4+_0x539b4e(0x167)});}if(Object[_0x539b4e(0x169)][_0x539b4e(0x1b2)][_0x539b4e(0x21f)](_0x1a8e1b,_0x539b4e(0x12d))){const _0x430972=_0x1a8e1b[_0x539b4e(0x12d)],_0x2c64c3=typeof _0x430972===_0x539b4e(0x19d)?_0x430972[_0x539b4e(0x1cf)]():_0x430972;if(isEmptyJsonValue(_0x430972)||_0x2c64c3===DEFAULT_FLOW_SCHEMA_VERSION){const _0x249550='flowJson.schemaVersion';delete _0x1a8e1b['schemaVersion'],_0x34ee5a[_0x539b4e(0x1be)](_0x249550),_0x5bc5ae[_0x539b4e(0x1be)]({'code':_0x539b4e(0x1b5),'path':_0x249550,'message':_0x249550+'\x20was\x20empty\x20or\x20used\x20the\x20default\x20'+DEFAULT_FLOW_SCHEMA_VERSION+_0x539b4e(0x202)});}}removeEmptyMetadata(_0x1a8e1b,_0x539b4e(0x1fb),_0x5bc5ae,_0x34ee5a);_0x5bc527[_0x539b4e(0x177)]===_0x539b4e(0x15d)&&!Object[_0x539b4e(0x169)][_0x539b4e(0x1b2)]['call'](_0x1a8e1b,_0x539b4e(0x241))&&(_0x1a8e1b[_0x539b4e(0x241)]=_0x539b4e(0x23e));_0x5bc527[_0x539b4e(0x1fb)]=_0x1a8e1b;if(typeof _0x5bc527[_0x539b4e(0x1e6)]===_0x539b4e(0x19d))_0x5bc527[_0x539b4e(0x1e6)]=_0x5bc527[_0x539b4e(0x1e6)][_0x539b4e(0x1cf)]();return{'config':_0x5bc527,'warnings':_0x5bc5ae,'removedPaths':_0x34ee5a};}export function validateFlowConfig(_0x299b0f){const _0x67f54b=a281_0x358266;let _0x32b1a2;try{_0x32b1a2=normalizeFlowConfig(_0x299b0f);}catch(_0x34f619){const _0x567ebd=_0x34f619 instanceof Error?_0x34f619[_0x67f54b(0x14c)]:String(_0x34f619),_0x4e21bc={'flowJson':{}};return{'valid':![],'errors':[{'path':'$','message':_0x567ebd}],'warnings':[],'normalized':_0x4e21bc,'validationConfig':_0x4e21bc};}const _0x132ada=_0x32b1a2[_0x67f54b(0x13c)],_0x2b9189=cloneJsonValue(_0x132ada),_0x437af6=_0x2b9189[_0x67f54b(0x1fb)];_0x437af6[_0x67f54b(0x234)]='__rabetbase_local_validation__',_0x437af6['flowName']=_0x132ada[_0x67f54b(0x1e6)];typeof _0x132ada[_0x67f54b(0x269)]==='string'&&_0x132ada[_0x67f54b(0x269)][_0x67f54b(0x1cf)]()&&(_0x437af6[_0x67f54b(0x190)]=_0x132ada[_0x67f54b(0x269)][_0x67f54b(0x1cf)]());const _0x5c734f=[];return validateOuterMetadata(_0x132ada,_0x5c734f),validateFlowClassification(_0x132ada,_0x5c734f),validateGraph(_0x132ada['flowJson'],_0x5c734f),{'valid':_0x5c734f[_0x67f54b(0x1bf)]===0x0,'errors':_0x5c734f,'warnings':_0x32b1a2[_0x67f54b(0x151)],'normalized':_0x132ada,'validationConfig':_0x2b9189};}function validateFlowClassification(_0x1b4411,_0x15c56c){const _0x5e49f2=a281_0x358266;if(!isRecord(_0x1b4411[_0x5e49f2(0x1fb)]))return;const _0x1c5dce=_0x1b4411[_0x5e49f2(0x177)],_0x46cb01=_0x1b4411['flowJson'][_0x5e49f2(0x241)];_0x46cb01!==undefined&&(typeof _0x46cb01!==_0x5e49f2(0x19d)||!FLOW_PAGE_MODES[_0x5e49f2(0x1f9)](_0x46cb01))&&_0x15c56c[_0x5e49f2(0x1be)]({'path':_0x5e49f2(0x1dc),'message':_0x5e49f2(0x1f4)+String(_0x46cb01)+'.'});_0x1c5dce==='FORM_FLOW'&&_0x46cb01!==undefined&&_0x15c56c[_0x5e49f2(0x1be)]({'path':_0x5e49f2(0x1dc),'message':_0x5e49f2(0x263)});_0x1c5dce===_0x5e49f2(0x15d)&&_0x46cb01===_0x5e49f2(0x1ba)&&_0x15c56c[_0x5e49f2(0x1be)]({'path':_0x5e49f2(0x1dc),'message':UNSUPPORTED_PLATFORM_FORM_MESSAGE});(_0x1c5dce===_0x5e49f2(0x21d)||_0x1c5dce===_0x5e49f2(0x15d))&&validateCustomPageNavigation(_0x1b4411,_0x1c5dce,_0x46cb01,_0x15c56c);if(_0x1c5dce!==_0x5e49f2(0x21d)||!Array[_0x5e49f2(0x121)](_0x1b4411[_0x5e49f2(0x1fb)][_0x5e49f2(0x216)]))return;_0x1b4411[_0x5e49f2(0x1fb)]['nodes'][_0x5e49f2(0x1d2)]((_0xc32cca,_0x381a45)=>{const _0x4859eb=_0x5e49f2;isRecord(_0xc32cca)&&_0xc32cca[_0x4859eb(0x1ed)]==='APPROVAL'&&_0xc32cca[_0x4859eb(0x231)]===_0x4859eb(0x17a)&&_0x15c56c[_0x4859eb(0x1be)]({'path':_0x4859eb(0x1b6)+_0x381a45+_0x4859eb(0x1cd),'message':_0x4859eb(0x20a)});});}function validateCustomPageNavigation(_0x8fe0b7,_0x20e27d,_0x45c734,_0x2b3e49){const _0x49673b=a281_0x358266,_0x3a000b=_0x8fe0b7[_0x49673b(0x1fb)]['startPageId'];_0x3a000b!==undefined&&(!Number[_0x49673b(0x1f5)](_0x3a000b)||_0x3a000b<=0x0)&&_0x2b3e49[_0x49673b(0x1be)]({'path':_0x49673b(0x19f),'message':_0x49673b(0x1d4)});const _0x3a6d27=Array[_0x49673b(0x121)](_0x8fe0b7[_0x49673b(0x1fb)]['nodes'])?_0x8fe0b7[_0x49673b(0x1fb)][_0x49673b(0x216)][_0x49673b(0x261)]((_0x1f46ca,_0x2132e4)=>({'node':_0x1f46ca,'index':_0x2132e4}))[_0x49673b(0x226)](({node:_0x4ad8c2})=>isRecord(_0x4ad8c2)&&_0x4ad8c2['pageId']!==undefined):[],_0x1c01b0=_0x3a000b!==undefined||_0x3a6d27[_0x49673b(0x1bf)]>0x0,_0x37c2b2=_0x45c734===undefined&&_0x20e27d===_0x49673b(0x15d)?_0x49673b(0x23e):_0x45c734;_0x1c01b0&&(_0x20e27d!==_0x49673b(0x15d)||_0x37c2b2!==_0x49673b(0x23e))&&(_0x3a000b!==undefined&&_0x2b3e49[_0x49673b(0x1be)]({'path':_0x49673b(0x19f),'message':'startPageId\x20applies\x20only\x20to\x20INDEPENDENT_FLOW\x20with\x20CUSTOM_PAGE.'}),_0x3a6d27[_0x49673b(0x1d2)](({index:_0x323cf1})=>{const _0x55b630=_0x49673b;_0x2b3e49[_0x55b630(0x1be)]({'path':_0x55b630(0x1b6)+_0x323cf1+'].pageId','message':_0x55b630(0x181)});}));}export async function writeNormalizedFlowConfig(_0x13057b,_0x5cc175,_0x554e48={}){const _0x2832a6=a281_0x358266,_0xb46651=resolve(_0x13057b),_0x32049f=_0xb46651+'.'+process[_0x2832a6(0x1e4)]+'.'+randomUUID()+_0x2832a6(0x17c),_0x223f3e=JSON[_0x2832a6(0x194)](_0x5cc175,null,0x2)+'\x0a';let _0x42a365;try{try{_0x42a365=(await stat(_0xb46651))[_0x2832a6(0x122)]&0x1ff;}catch{_0x42a365=undefined;}await writeFile(_0x32049f,_0x223f3e,{'encoding':_0x2832a6(0x138),'flag':'wx','mode':_0x42a365??0x1a4});if(_0x42a365!==undefined)await chmod(_0x32049f,_0x42a365);_0x554e48[_0x2832a6(0x16a)]===![]?(await link(_0x32049f,_0xb46651),await unlink(_0x32049f)):await rename(_0x32049f,_0xb46651);}finally{await unlink(_0x32049f)[_0x2832a6(0x132)](()=>undefined);}}function validateOuterMetadata(_0x1f4f7c,_0x69f7e2){const _0x386935=a281_0x358266;(typeof _0x1f4f7c[_0x386935(0x1e6)]!==_0x386935(0x19d)||_0x1f4f7c[_0x386935(0x1e6)][_0x386935(0x1cf)]()==='')&&_0x69f7e2['push']({'path':_0x386935(0x1e6),'message':_0x386935(0x1ae)});_0x1f4f7c['flowDesc']!==undefined&&typeof _0x1f4f7c[_0x386935(0x246)]!==_0x386935(0x19d)&&_0x69f7e2['push']({'path':_0x386935(0x246),'message':_0x386935(0x213)});if(_0x1f4f7c['flowType']===undefined||_0x1f4f7c[_0x386935(0x177)]===null)_0x69f7e2[_0x386935(0x1be)]({'path':_0x386935(0x177),'message':_0x386935(0x12b)});else(typeof _0x1f4f7c[_0x386935(0x177)]!==_0x386935(0x19d)||!FLOW_TYPES[_0x386935(0x1f9)](_0x1f4f7c[_0x386935(0x177)]))&&_0x69f7e2['push']({'path':_0x386935(0x177),'message':_0x386935(0x15c)+String(_0x1f4f7c[_0x386935(0x177)])+'.'});_0x1f4f7c[_0x386935(0x269)]!==undefined&&typeof _0x1f4f7c['datasetCode']!=='string'&&_0x69f7e2['push']({'path':'datasetCode','message':_0x386935(0x116)}),_0x1f4f7c['pageId']!==undefined&&(!Number['isInteger'](_0x1f4f7c['pageId'])||_0x1f4f7c[_0x386935(0x160)]<0x0)&&_0x69f7e2[_0x386935(0x1be)]({'path':'pageId','message':'pageId\x20must\x20be\x20a\x20non-negative\x20integer.'}),_0x1f4f7c[_0x386935(0x177)]==='INDEPENDENT_FLOW'&&_0x1f4f7c['datasetCode']!==undefined&&_0x69f7e2[_0x386935(0x1be)]({'path':_0x386935(0x269),'message':_0x386935(0x205)}),_0x1f4f7c[_0x386935(0x177)]==='INDEPENDENT_FLOW'&&_0x1f4f7c['pageId']!==undefined&&_0x69f7e2[_0x386935(0x1be)]({'path':_0x386935(0x160),'message':_0x386935(0x1a7)});}function validateGraph(_0x3f0b7e,_0x8d9cd1){const _0x9bfbeb=a281_0x358266;if(!isRecord(_0x3f0b7e)){_0x8d9cd1[_0x9bfbeb(0x1be)]({'path':'flowJson','message':_0x9bfbeb(0x1f7)});return;}!Array[_0x9bfbeb(0x121)](_0x3f0b7e[_0x9bfbeb(0x216)])&&_0x8d9cd1[_0x9bfbeb(0x1be)]({'path':_0x9bfbeb(0x1ac),'message':_0x9bfbeb(0x192)});!Array[_0x9bfbeb(0x121)](_0x3f0b7e[_0x9bfbeb(0x1af)])&&_0x8d9cd1[_0x9bfbeb(0x1be)]({'path':_0x9bfbeb(0x17e),'message':_0x9bfbeb(0x1d3)});Object[_0x9bfbeb(0x169)][_0x9bfbeb(0x1b2)][_0x9bfbeb(0x21f)](_0x3f0b7e,_0x9bfbeb(0x12d))&&_0x8d9cd1[_0x9bfbeb(0x1be)]({'path':_0x9bfbeb(0x203),'message':_0x9bfbeb(0x200)+String(_0x3f0b7e[_0x9bfbeb(0x12d)])+_0x9bfbeb(0x143)+DEFAULT_FLOW_SCHEMA_VERSION+'.'});for(const _0x218cfb of[_0x9bfbeb(0x1c9),'formDefinitions',_0x9bfbeb(0x1ef)]){Object['prototype'][_0x9bfbeb(0x1b2)][_0x9bfbeb(0x21f)](_0x3f0b7e,_0x218cfb)&&_0x8d9cd1[_0x9bfbeb(0x1be)]({'path':_0x9bfbeb(0x1cb)+_0x218cfb,'message':UNSUPPORTED_FORM_MESSAGE});}if(!Array[_0x9bfbeb(0x121)](_0x3f0b7e[_0x9bfbeb(0x216)])||!Array[_0x9bfbeb(0x121)](_0x3f0b7e[_0x9bfbeb(0x1af)]))return;const _0x5e5b89=new Map(),_0x25f793=[],_0x1077b7=[],_0xd31a83=new Map(),_0x2e5606=new Map(),_0x707960=new Set();let _0x3bbbeb=0x0;_0x3f0b7e[_0x9bfbeb(0x216)][_0x9bfbeb(0x1d2)]((_0x235197,_0x158832)=>{const _0x385f17=_0x9bfbeb,_0x274162=_0x385f17(0x1b6)+_0x158832+']';if(!isRecord(_0x235197)){_0x8d9cd1['push']({'path':_0x274162,'message':'node\x20must\x20be\x20an\x20object.'});return;}const _0x5cf5bf=_0x235197;if(typeof _0x5cf5bf['id']!=='string'||!BPMN_ID_PATTERN[_0x385f17(0x26d)](_0x5cf5bf['id']))_0x8d9cd1['push']({'path':_0x274162+'.id','message':_0x385f17(0x14e)});else _0x5e5b89['has'](_0x5cf5bf['id'])?_0x8d9cd1['push']({'path':_0x274162+_0x385f17(0x142),'message':_0x385f17(0x1fc)+_0x5cf5bf['id']+'.'}):(_0x5e5b89[_0x385f17(0x1ce)](_0x5cf5bf['id'],_0x5cf5bf),_0x707960[_0x385f17(0x18d)](_0x5cf5bf['id']));if(!NODE_TYPES[_0x385f17(0x1f9)](_0x5cf5bf[_0x385f17(0x1ed)]))_0x8d9cd1['push']({'path':_0x274162+'.type','message':_0x385f17(0x170)+String(_0x5cf5bf[_0x385f17(0x1ed)])+'.'});else{if(_0x5cf5bf[_0x385f17(0x1ed)]===_0x385f17(0x126))_0x25f793[_0x385f17(0x1be)](_0x5cf5bf['id']);else _0x5cf5bf['type']===_0x385f17(0x207)&&_0x1077b7[_0x385f17(0x1be)](_0x5cf5bf['id']);}_0x5cf5bf[_0x385f17(0x1ed)]===_0x385f17(0x1a8)&&(_0x5cf5bf[_0x385f17(0x231)]===undefined||_0x5cf5bf['taskMode']==='APPROVAL')&&(_0x3bbbeb+=0x1);validateNode(_0x5cf5bf,_0x274162,_0x8d9cd1);if(_0x5cf5bf[_0x385f17(0x1ed)]===_0x385f17(0x10d)){const _0x58b590=resolveEffectiveResultVariable(_0x5cf5bf[_0x385f17(0x1c5)],![]);_0x58b590&&(registerResultVariableOwner(_0x2e5606,_0x58b590,_0x5cf5bf['id'],_0x8d9cd1),!_0xd31a83['has'](_0x58b590)&&_0xd31a83[_0x385f17(0x1ce)](_0x58b590,_0x5cf5bf['id']));}if(_0x5cf5bf[_0x385f17(0x1ed)]===_0x385f17(0x1a8)&&isRecord(_0x5cf5bf[_0x385f17(0x23f)])&&_0x5cf5bf['timeout'][_0x385f17(0x1f0)]===!![]&&_0x5cf5bf[_0x385f17(0x23f)][_0x385f17(0x238)]===_0x385f17(0x12f)){const _0x6f3415=resolveEffectiveResultVariable(_0x5cf5bf[_0x385f17(0x23f)]['resultVariable'],!![]);_0x6f3415&®isterResultVariableOwner(_0x2e5606,_0x6f3415,_0x5cf5bf['id']+_0x385f17(0x15b),_0x8d9cd1);}});_0x25f793[_0x9bfbeb(0x1bf)]!==0x1&&_0x8d9cd1[_0x9bfbeb(0x1be)]({'path':_0x9bfbeb(0x1ac),'message':_0x9bfbeb(0x1ad)});_0x1077b7['length']===0x0&&_0x8d9cd1[_0x9bfbeb(0x1be)]({'path':_0x9bfbeb(0x1ac),'message':_0x9bfbeb(0x16c)});const _0x10fe98=new Map(),_0x2ab481=new Map(),_0xa13df3=new Map(),_0x32611d=new Set();_0x3f0b7e[_0x9bfbeb(0x1af)][_0x9bfbeb(0x1d2)]((_0x5afae7,_0x545cdc)=>{const _0x20fe32=_0x9bfbeb,_0x56782a=_0x20fe32(0x22a)+_0x545cdc+']';if(!isRecord(_0x5afae7)){_0x8d9cd1[_0x20fe32(0x1be)]({'path':_0x56782a,'message':_0x20fe32(0x229)});return;}const _0xd8b1ae=_0x5afae7;_0xa13df3[_0x20fe32(0x1ce)](_0xd8b1ae,_0x56782a);const _0x19ae2d=resolveEdgeEndpoint(_0xd8b1ae[_0x20fe32(0x166)],_0xd8b1ae[_0x20fe32(0x1ca)]),_0x2e7d06=resolveEdgeEndpoint(_0xd8b1ae[_0x20fe32(0x17b)],_0xd8b1ae['targetNodeId']);if(!_0x19ae2d)_0x8d9cd1[_0x20fe32(0x1be)]({'path':_0x56782a+_0x20fe32(0x1bd),'message':_0x20fe32(0x153)});if(!_0x2e7d06)_0x8d9cd1['push']({'path':_0x56782a+_0x20fe32(0x1ee),'message':'edge\x20target\x20is\x20required.'});_0x19ae2d&&!_0x5e5b89[_0x20fe32(0x1f9)](_0x19ae2d)&&_0x8d9cd1['push']({'path':_0x56782a+'.source','message':'Edge\x20source\x20node\x20not\x20found:\x20'+_0x19ae2d+'.'});_0x2e7d06&&!_0x5e5b89[_0x20fe32(0x1f9)](_0x2e7d06)&&_0x8d9cd1['push']({'path':_0x56782a+_0x20fe32(0x1ee),'message':_0x20fe32(0x14b)+_0x2e7d06+'.'});if(_0xd8b1ae['id']!==undefined){if(typeof _0xd8b1ae['id']!=='string'||!BPMN_ID_PATTERN[_0x20fe32(0x26d)](_0xd8b1ae['id']))_0x8d9cd1['push']({'path':_0x56782a+'.id','message':_0x20fe32(0x1b8)});else{if(_0x707960[_0x20fe32(0x1f9)](_0xd8b1ae['id']))_0x8d9cd1[_0x20fe32(0x1be)]({'path':_0x56782a+_0x20fe32(0x142),'message':_0x20fe32(0x15a)+_0xd8b1ae['id']+'.'});else!_0x707960[_0x20fe32(0x1f9)](_0xd8b1ae['id'])&&_0x707960[_0x20fe32(0x18d)](_0xd8b1ae['id']);}}if(_0x19ae2d&&_0x2e7d06){const _0x485acb=_0x19ae2d+'\x00'+_0x2e7d06+'\x00'+(_0xd8b1ae['conditionType']??_0x20fe32(0x184));_0x32611d['has'](_0x485acb)?_0x8d9cd1[_0x20fe32(0x1be)]({'path':_0x56782a,'message':_0x20fe32(0x26c)+_0x19ae2d+_0x20fe32(0x10f)+_0x2e7d06+'\x20('+(_0xd8b1ae['conditionType']??_0x20fe32(0x184))+').'}):_0x32611d[_0x20fe32(0x18d)](_0x485acb);}validateEdge(_0xd8b1ae,_0x56782a,_0x8d9cd1),_0x19ae2d&&_0x2e7d06&&(_0x10fe98[_0x20fe32(0x1b3)](_0x19ae2d)?.[_0x20fe32(0x1be)](_0xd8b1ae)??_0x10fe98['set'](_0x19ae2d,[_0xd8b1ae]),_0x2ab481['get'](_0x2e7d06)?.[_0x20fe32(0x1be)](_0xd8b1ae)??_0x2ab481[_0x20fe32(0x1ce)](_0x2e7d06,[_0xd8b1ae]));});if(_0x25f793[_0x9bfbeb(0x1bf)]!==0x1)return;validateGraphShape(_0x5e5b89,_0x25f793[0x0],_0x1077b7,_0x10fe98,_0x2ab481,_0xa13df3,_0x8d9cd1),validateScriptResultReferences(_0x5e5b89,_0x25f793[0x0],_0x10fe98,_0x2ab481,_0xa13df3,_0xd31a83,_0x8d9cd1),validateApprovalResults(_0x5e5b89,_0x3bbbeb,_0x1077b7,_0x8d9cd1);}function validateNode(_0x3272f4,_0x430f12,_0x334fd2){const _0x2041a6=a281_0x358266;for(const _0x1fb263 of[_0x2041a6(0x147),'formPermission']){Object[_0x2041a6(0x169)]['hasOwnProperty']['call'](_0x3272f4,_0x1fb263)&&_0x334fd2['push']({'path':_0x430f12+'.'+_0x1fb263,'message':UNSUPPORTED_FORM_MESSAGE});}if(!NODE_TYPES[_0x2041a6(0x1f9)](_0x3272f4['type']))return;(typeof _0x3272f4[_0x2041a6(0x193)]!==_0x2041a6(0x19d)||_0x3272f4['name'][_0x2041a6(0x1cf)]()==='')&&_0x334fd2['push']({'path':_0x430f12+_0x2041a6(0x24b),'message':_0x2041a6(0x146)});if(_0x3272f4[_0x2041a6(0x160)]!==undefined){if(!Number['isSafeInteger'](_0x3272f4[_0x2041a6(0x160)])||_0x3272f4['pageId']<=0x0)_0x334fd2[_0x2041a6(0x1be)]({'path':_0x430f12+_0x2041a6(0x239),'message':_0x2041a6(0x1e8)});else _0x3272f4[_0x2041a6(0x1ed)]!==_0x2041a6(0x1a8)&&_0x334fd2[_0x2041a6(0x1be)]({'path':_0x430f12+_0x2041a6(0x239),'message':'node\x20pageId\x20is\x20supported\x20only\x20on\x20APPROVAL\x20user\x20tasks.'});}const _0x1665c1=_0x3272f4[_0x2041a6(0x208)];if(!isRecord(_0x1665c1))_0x334fd2['push']({'path':_0x430f12+'.position','message':_0x2041a6(0x187)});else for(const _0x4542c8 of['x','y']){const _0x4e1518=_0x1665c1[_0x4542c8];(typeof _0x4e1518!==_0x2041a6(0x1f8)||!Number[_0x2041a6(0x19e)](_0x4e1518)||_0x4e1518<0x0)&&_0x334fd2[_0x2041a6(0x1be)]({'path':_0x430f12+'.position.'+_0x4542c8,'message':'position.'+_0x4542c8+_0x2041a6(0x1fa)});}if(_0x3272f4[_0x2041a6(0x1ed)]===_0x2041a6(0x1a8)){const _0x2cfa42=_0x3272f4['approvalMode']??'SINGLE',_0x5091d5=_0x3272f4[_0x2041a6(0x231)]??_0x2041a6(0x1a8);!APPROVAL_TASK_MODES['has'](_0x5091d5)&&_0x334fd2['push']({'path':_0x430f12+_0x2041a6(0x264),'message':'Unsupported\x20task\x20mode:\x20'+String(_0x5091d5)+'.'});!APPROVAL_MODES[_0x2041a6(0x1f9)](_0x2cfa42)&&_0x334fd2[_0x2041a6(0x1be)]({'path':_0x430f12+_0x2041a6(0x256),'message':_0x2041a6(0x25d)+String(_0x2cfa42)+'.'});if(!isRecord(_0x3272f4['assignee']))_0x334fd2['push']({'path':_0x430f12+'.assignee','message':_0x2041a6(0x228)});else{const _0x461756=_0x3272f4[_0x2041a6(0x1d6)][_0x2041a6(0x1a9)];_0x461756!=='FIXED'&&_0x461756!==_0x2041a6(0x191)&&_0x334fd2[_0x2041a6(0x1be)]({'path':_0x430f12+'.assignee.strategy','message':_0x2041a6(0x22c)});if(_0x461756==='FIXED'){const _0x3b7895=_0x3272f4[_0x2041a6(0x1d6)][_0x2041a6(0x1b4)];if(!Array['isArray'](_0x3b7895)||_0x3b7895[_0x2041a6(0x1bf)]===0x0)_0x334fd2['push']({'path':_0x430f12+_0x2041a6(0x1a5),'message':_0x2041a6(0x266)});else{const _0x110cfd=_0x3b7895[_0x2041a6(0x254)](_0x3e3ed5=>!isValidUserId(_0x3e3ed5));_0x110cfd>=0x0&&_0x334fd2[_0x2041a6(0x1be)]({'path':_0x430f12+_0x2041a6(0x1c1)+_0x110cfd+']','message':_0x2041a6(0x1e1)});const _0xcdf586=new Set(_0x3b7895['filter'](isValidUserId)[_0x2041a6(0x261)](_0x2cb883=>String(_0x2cb883)['trim']()));_0x2cfa42===_0x2041a6(0x15f)&&_0xcdf586[_0x2041a6(0x134)]>0x1&&_0x334fd2[_0x2041a6(0x1be)]({'path':_0x430f12+_0x2041a6(0x1a5),'message':'SINGLE\x20approval\x20supports\x20only\x20one\x20fixed\x20user.'});}}if(_0x461756===_0x2041a6(0x191)){const _0x4e7f3a=_0x3272f4[_0x2041a6(0x1d6)][_0x2041a6(0x1c8)],_0x3a0927=typeof _0x4e7f3a===_0x2041a6(0x1f8)||typeof _0x4e7f3a==='string'?Number(String(_0x4e7f3a)[_0x2041a6(0x1cf)]()):Number[_0x2041a6(0x13d)];(!Number[_0x2041a6(0x1f5)](_0x3a0927)||_0x3a0927<=0x0)&&_0x334fd2[_0x2041a6(0x1be)]({'path':_0x430f12+'.assignee.roleId','message':'ROLE\x20assignee\x20requires\x20a\x20positive\x20integer\x20roleId.'});}}if(_0x3272f4[_0x2041a6(0x219)]!==undefined){if(!isRecord(_0x3272f4[_0x2041a6(0x219)]))_0x334fd2[_0x2041a6(0x1be)]({'path':_0x430f12+_0x2041a6(0x220),'message':_0x2041a6(0x227)});else{if(_0x3272f4[_0x2041a6(0x219)][_0x2041a6(0x1a9)]!=='FIXED')_0x334fd2['push']({'path':_0x430f12+'.transferCandidates.strategy','message':'transferCandidates\x20currently\x20supports\x20FIXED\x20only.'});else{const _0x5cd958=_0x3272f4[_0x2041a6(0x219)][_0x2041a6(0x1b4)];if(!Array[_0x2041a6(0x121)](_0x5cd958)||_0x5cd958['length']===0x0)_0x334fd2['push']({'path':_0x430f12+_0x2041a6(0x182),'message':_0x2041a6(0x25b)});else{const _0x419bd4=_0x5cd958[_0x2041a6(0x254)](_0x110a09=>!isValidUserId(_0x110a09));_0x419bd4>=0x0&&_0x334fd2[_0x2041a6(0x1be)]({'path':_0x430f12+_0x2041a6(0x22d)+_0x419bd4+']','message':'transfer\x20candidate\x20userId\x20must\x20be\x20a\x20non-empty\x20string\x20or\x20positive\x20integer.'});}}}}}_0x3272f4[_0x2041a6(0x18f)]!==undefined&&typeof _0x3272f4[_0x2041a6(0x18f)]!==_0x2041a6(0x13b)&&_0x334fd2['push']({'path':_0x430f12+_0x2041a6(0x16e),'message':'sequential\x20must\x20be\x20a\x20boolean.'});if(_0x3272f4[_0x2041a6(0x1ed)]==='SCRIPT'){(typeof _0x3272f4[_0x2041a6(0x253)]!==_0x2041a6(0x19d)||_0x3272f4['scriptName'][_0x2041a6(0x1cf)]()==='')&&_0x334fd2[_0x2041a6(0x1be)]({'path':_0x430f12+'.scriptName','message':_0x2041a6(0x235)});if(_0x3272f4[_0x2041a6(0x1c5)]!==undefined){if(typeof _0x3272f4['resultVariable']!==_0x2041a6(0x19d)||!VARIABLE_PATTERN[_0x2041a6(0x26d)](_0x3272f4[_0x2041a6(0x1c5)]))_0x334fd2['push']({'path':_0x430f12+_0x2041a6(0x24e),'message':'resultVariable\x20must\x20match\x20[A-Za-z_][A-Za-z0-9_]*.'});else(RESERVED_RESULT_VARIABLES[_0x2041a6(0x1f9)](_0x3272f4[_0x2041a6(0x1c5)])||_0x3272f4[_0x2041a6(0x1c5)][_0x2041a6(0x1d7)](_0x2041a6(0x139)))&&_0x334fd2[_0x2041a6(0x1be)]({'path':_0x430f12+_0x2041a6(0x24e),'message':'Reserved\x20resultVariable:\x20'+_0x3272f4[_0x2041a6(0x1c5)]+'.'});}}validateAsyncExecution(_0x3272f4,_0x430f12,_0x334fd2),validateApprovalTimeout(_0x3272f4,_0x430f12,_0x334fd2),validateCcConfig(_0x3272f4,_0x430f12,_0x334fd2),_0x3272f4[_0x2041a6(0x1ed)]===_0x2041a6(0x251)&&validateNotificationConfig(_0x3272f4[_0x2041a6(0x13c)],_0x430f12+'.config',_0x334fd2);}function validateAsyncExecution(_0x58e15f,_0x2a7aab,_0x2c0b5a){const _0x5790a6=a281_0x358266;if(_0x58e15f[_0x5790a6(0x162)]===undefined)return;if(!isRecord(_0x58e15f['async'])){_0x2c0b5a[_0x5790a6(0x1be)]({'path':_0x2a7aab+_0x5790a6(0x1a3),'message':_0x5790a6(0x248)});return;}if(_0x58e15f[_0x5790a6(0x162)][_0x5790a6(0x1f0)]!==undefined&&typeof _0x58e15f[_0x5790a6(0x162)]['enabled']!==_0x5790a6(0x13b)){_0x2c0b5a[_0x5790a6(0x1be)]({'path':_0x2a7aab+_0x5790a6(0x1c0),'message':_0x5790a6(0x115)});return;}if(_0x58e15f['async']['enabled']!==!![])return;_0x58e15f[_0x5790a6(0x1ed)]!==_0x5790a6(0x10d)&&_0x2c0b5a[_0x5790a6(0x1be)]({'path':_0x2a7aab+_0x5790a6(0x1a3),'message':_0x5790a6(0x1bc)});const _0x34b8fa=_0x58e15f[_0x5790a6(0x162)][_0x5790a6(0x20b)]??0x3;(!Number[_0x5790a6(0x168)](_0x34b8fa)||_0x34b8fa<0x1||_0x34b8fa>MAX_ASYNC_RETRY_COUNT)&&_0x2c0b5a[_0x5790a6(0x1be)]({'path':_0x2a7aab+_0x5790a6(0x11b),'message':_0x5790a6(0x195)+MAX_ASYNC_RETRY_COUNT+'.'}),_0x58e15f[_0x5790a6(0x162)][_0x5790a6(0x206)]!==undefined&&validateTimeAmount(_0x58e15f[_0x5790a6(0x162)]['retryInterval'],_0x2a7aab+'.async.retryInterval',_0x2c0b5a);}function validateApprovalTimeout(_0x21fa98,_0x48e6c0,_0x3d77c8){const _0x7a469=a281_0x358266;if(_0x21fa98[_0x7a469(0x23f)]===undefined)return;if(!isRecord(_0x21fa98[_0x7a469(0x23f)])){_0x3d77c8[_0x7a469(0x1be)]({'path':_0x48e6c0+_0x7a469(0x15b),'message':_0x7a469(0x127)});return;}if(_0x21fa98[_0x7a469(0x23f)][_0x7a469(0x1f0)]!==undefined&&typeof _0x21fa98['timeout'][_0x7a469(0x1f0)]!==_0x7a469(0x13b)){_0x3d77c8[_0x7a469(0x1be)]({'path':_0x48e6c0+'.timeout.enabled','message':_0x7a469(0x141)});return;}if(_0x21fa98[_0x7a469(0x23f)][_0x7a469(0x1f0)]!==!![])return;if(_0x21fa98[_0x7a469(0x23f)][_0x7a469(0x13a)]!==undefined&&typeof _0x21fa98[_0x7a469(0x23f)][_0x7a469(0x13a)]!==_0x7a469(0x13b)){_0x3d77c8[_0x7a469(0x1be)]({'path':_0x48e6c0+_0x7a469(0x240),'message':_0x7a469(0x19a)});return;}_0x21fa98[_0x7a469(0x1ed)]!==_0x7a469(0x1a8)&&_0x3d77c8[_0x7a469(0x1be)]({'path':_0x48e6c0+'.timeout','message':_0x7a469(0x18c)});validateTimeAmount(_0x21fa98[_0x7a469(0x23f)][_0x7a469(0x1ff)],_0x48e6c0+'.timeout.duration',_0x3d77c8);const _0xe4bdff=_0x21fa98[_0x7a469(0x23f)][_0x7a469(0x238)];if(!APPROVAL_TIMEOUT_ACTIONS[_0x7a469(0x1f9)](_0xe4bdff)){_0x3d77c8[_0x7a469(0x1be)]({'path':_0x48e6c0+_0x7a469(0x22b),'message':_0x7a469(0x123)});return;}(_0x21fa98['taskMode']??_0x7a469(0x1a8))===_0x7a469(0x17a)&&_0xe4bdff!=='EXECUTE_BFF'&&_0x3d77c8['push']({'path':_0x48e6c0+_0x7a469(0x22b),'message':'HANDLE\x20task\x20timeout\x20only\x20supports\x20EXECUTE_BFF.'});const _0x184b8b=_0x21fa98['timeout'][_0x7a469(0x13a)]??_0xe4bdff!==_0x7a469(0x12f);if(_0xe4bdff===_0x7a469(0x12f))_0x184b8b&&_0x3d77c8['push']({'path':_0x48e6c0+_0x7a469(0x240),'message':_0x7a469(0x245)}),(typeof _0x21fa98[_0x7a469(0x23f)][_0x7a469(0x253)]!==_0x7a469(0x19d)||_0x21fa98['timeout'][_0x7a469(0x253)]['trim']()==='')&&_0x3d77c8[_0x7a469(0x1be)]({'path':_0x48e6c0+_0x7a469(0x174),'message':_0x7a469(0x159)}),validateOptionalResultVariable(_0x21fa98[_0x7a469(0x23f)][_0x7a469(0x1c5)],_0x48e6c0+_0x7a469(0x233),_0x3d77c8);else!_0x184b8b&&_0x3d77c8[_0x7a469(0x1be)]({'path':_0x48e6c0+_0x7a469(0x240),'message':_0xe4bdff+_0x7a469(0x265)});}function validateTimeAmount(_0x7b10bb,_0x13c963,_0x393879){const _0x946b25=a281_0x358266;if(!isRecord(_0x7b10bb)){_0x393879[_0x946b25(0x1be)]({'path':_0x13c963,'message':_0x946b25(0x236)});return;}(!Number[_0x946b25(0x168)](_0x7b10bb[_0x946b25(0x114)])||Number(_0x7b10bb[_0x946b25(0x114)])<=0x0)&&_0x393879[_0x946b25(0x1be)]({'path':_0x13c963+'.value','message':_0x946b25(0x26a)}),!FLOW_TIME_UNITS[_0x946b25(0x1f9)](_0x7b10bb['unit'])&&_0x393879['push']({'path':_0x13c963+_0x946b25(0x14a),'message':_0x946b25(0x158)});}function validateOptionalResultVariable(_0x4021e3,_0x59779a,_0x1fa597){const _0x1fbd82=a281_0x358266;if(_0x4021e3===undefined||_0x4021e3===null||_0x4021e3==='')return;if(typeof _0x4021e3!==_0x1fbd82(0x19d)||!VARIABLE_PATTERN[_0x1fbd82(0x26d)](_0x4021e3))_0x1fa597[_0x1fbd82(0x1be)]({'path':_0x59779a,'message':'resultVariable\x20must\x20match\x20[A-Za-z_][A-Za-z0-9_]*.'});else(RESERVED_RESULT_VARIABLES[_0x1fbd82(0x1f9)](_0x4021e3)||_0x4021e3[_0x1fbd82(0x1d7)](_0x1fbd82(0x139)))&&_0x1fa597[_0x1fbd82(0x1be)]({'path':_0x59779a,'message':'Reserved\x20resultVariable:\x20'+_0x4021e3+'.'});}function validateCcConfig(_0x550bb3,_0x1d95e8,_0x3c6dd9){const _0xa97f0a=a281_0x358266;if(_0x550bb3['cc']===undefined)return;if(!isRecord(_0x550bb3['cc'])){_0x3c6dd9[_0xa97f0a(0x1be)]({'path':_0x1d95e8+_0xa97f0a(0x13e),'message':_0xa97f0a(0x15e)});return;}_0x550bb3[_0xa97f0a(0x1ed)]!==_0xa97f0a(0x207)&&_0x550bb3[_0xa97f0a(0x1ed)]!==_0xa97f0a(0x1a8)&&_0x3c6dd9[_0xa97f0a(0x1be)]({'path':_0x1d95e8+_0xa97f0a(0x13e),'message':_0xa97f0a(0x16b)});Object[_0xa97f0a(0x169)][_0xa97f0a(0x1b2)]['call'](_0x550bb3['cc'],'readSources')&&_0x3c6dd9['push']({'path':_0x1d95e8+_0xa97f0a(0x1e7),'message':UNSUPPORTED_FORM_MESSAGE});const _0x278171=_0x550bb3['cc']['recipientUserIds'];if(!Array[_0xa97f0a(0x121)](_0x278171)||_0x278171[_0xa97f0a(0x1bf)]===0x0)_0x3c6dd9[_0xa97f0a(0x1be)]({'path':_0x1d95e8+_0xa97f0a(0x21b),'message':_0xa97f0a(0x225)});else{_0x278171['length']>MAX_CC_RECIPIENTS&&_0x3c6dd9[_0xa97f0a(0x1be)]({'path':_0x1d95e8+_0xa97f0a(0x21b),'message':_0xa97f0a(0x19b)+MAX_CC_RECIPIENTS+_0xa97f0a(0x137)});const _0x12e08a=new Set();_0x278171['forEach']((_0x2440e7,_0x180b09)=>{const _0x1ad520=_0xa97f0a;if(typeof _0x2440e7!==_0x1ad520(0x19d)||_0x2440e7[_0x1ad520(0x1cf)]()==='')_0x3c6dd9[_0x1ad520(0x1be)]({'path':_0x1d95e8+_0x1ad520(0x224)+_0x180b09+']','message':'cc\x20recipient\x20userId\x20must\x20be\x20a\x20non-empty\x20string.'});else _0x12e08a[_0x1ad520(0x1f9)](_0x2440e7[_0x1ad520(0x1cf)]())?_0x3c6dd9[_0x1ad520(0x1be)]({'path':_0x1d95e8+_0x1ad520(0x224)+_0x180b09+']','message':'Duplicate\x20cc\x20recipient\x20userId:\x20'+_0x2440e7[_0x1ad520(0x1cf)]()+'.'}):_0x12e08a[_0x1ad520(0x18d)](_0x2440e7[_0x1ad520(0x1cf)]());});}validateStringArray(_0x550bb3['cc'][_0xa97f0a(0x1ea)],_0x1d95e8+_0xa97f0a(0x17f),_0x3c6dd9);}function validateStringArray(_0xcdeaf1,_0x3fd1ac,_0x3e0dec){const _0x5e3aec=a281_0x358266;if(_0xcdeaf1===undefined)return;if(!Array['isArray'](_0xcdeaf1)){_0x3e0dec[_0x5e3aec(0x1be)]({'path':_0x3fd1ac,'message':_0x5e3aec(0x1f3)});return;}const _0x3f2da1=new Set();_0xcdeaf1['forEach']((_0x59ad86,_0x250f62)=>{const _0xf7cc76=_0x5e3aec;if(typeof _0x59ad86!==_0xf7cc76(0x19d)||_0x59ad86['trim']()==='')_0x3e0dec[_0xf7cc76(0x1be)]({'path':_0x3fd1ac+'['+_0x250f62+']','message':_0xf7cc76(0x197)});else _0x3f2da1['has'](_0x59ad86[_0xf7cc76(0x1cf)]())?_0x3e0dec[_0xf7cc76(0x1be)]({'path':_0x3fd1ac+'['+_0x250f62+']','message':_0xf7cc76(0x1f1)+_0x59ad86['trim']()+'.'}):_0x3f2da1[_0xf7cc76(0x18d)](_0x59ad86[_0xf7cc76(0x1cf)]());});}function validateNotificationConfig(_0x2df2f1,_0x2a1c90,_0x184abd){const _0x100be1=a281_0x358266;if(!isRecord(_0x2df2f1)){_0x184abd[_0x100be1(0x1be)]({'path':_0x2a1c90,'message':_0x100be1(0x201)});return;}if(_0x2df2f1[_0x100be1(0x1c3)]!==undefined&&_0x2df2f1[_0x100be1(0x1c3)]!==null){if(typeof _0x2df2f1[_0x100be1(0x1c3)]!=='string')_0x184abd['push']({'path':_0x2a1c90+_0x100be1(0x1fe),'message':_0x100be1(0x1d8)});else _0x2df2f1[_0x100be1(0x1c3)][_0x100be1(0x1cf)]()&&_0x2df2f1[_0x100be1(0x1c3)]['trim']()!=='v1'&&_0x184abd['push']({'path':_0x2a1c90+'.version','message':_0x100be1(0x255)+_0x2df2f1['version']+'.'});}const _0x44c72e=requireNotificationString(_0x2df2f1[_0x100be1(0x1c2)],_0x2a1c90+'.configCode','Notification\x20configCode\x20is\x20required.',_0x184abd);_0x44c72e?.[_0x100be1(0x173)]('${')&&_0x184abd['push']({'path':_0x2a1c90+'.configCode','message':_0x100be1(0x10e)});if(_0x2df2f1[_0x100be1(0x23c)]!==undefined&&_0x2df2f1[_0x100be1(0x23c)]!==null){if(typeof _0x2df2f1[_0x100be1(0x23c)]!==_0x100be1(0x19d))_0x184abd[_0x100be1(0x1be)]({'path':_0x2a1c90+_0x100be1(0x118),'message':_0x100be1(0x135)});else!NOTIFICATION_FAILURE_POLICIES[_0x100be1(0x1f9)](_0x2df2f1[_0x100be1(0x23c)][_0x100be1(0x1cf)]()[_0x100be1(0x1a2)]())&&_0x184abd[_0x100be1(0x1be)]({'path':_0x2a1c90+_0x100be1(0x118),'message':'failurePolicy\x20must\x20be\x20CONTINUE\x20or\x20FAIL.'});}!isRecord(_0x2df2f1[_0x100be1(0x1e0)])?_0x184abd[_0x100be1(0x1be)]({'path':_0x2a1c90+'.template','message':_0x100be1(0x214)}):validateNotificationTemplate(_0x2df2f1[_0x100be1(0x1e0)],_0x2a1c90+'.template',_0x184abd),validateNotificationRecipients(_0x2df2f1[_0x100be1(0x196)],_0x2a1c90+_0x100be1(0x218),_0x184abd);}function validateNotificationTemplate(_0xf210b5,_0x2c9e98,_0x5f2e30){const _0x51a17b=a281_0x358266;for(const _0x5850b8 of[_0x51a17b(0x128),_0x51a17b(0x26e)]){const _0x47b7c9=requireNotificationString(_0xf210b5[_0x5850b8],_0x2c9e98+'.'+_0x5850b8,'Notification\x20template.'+_0x5850b8+_0x51a17b(0x145),_0x5f2e30);if(_0x47b7c9)validateNotificationPlaceholders(_0x47b7c9,_0x2c9e98+'.'+_0x5850b8,_0x5f2e30);}_0xf210b5[_0x51a17b(0x11c)]!==undefined&&_0xf210b5[_0x51a17b(0x11c)]!==null&&(typeof _0xf210b5[_0x51a17b(0x11c)]!=='string'?_0x5f2e30[_0x51a17b(0x1be)]({'path':_0x2c9e98+'.detailMarkdown','message':_0x51a17b(0x130)}):validateNotificationPlaceholders(_0xf210b5['detailMarkdown'],_0x2c9e98+_0x51a17b(0x189),_0x5f2e30)),validateNotificationFacts(_0xf210b5[_0x51a17b(0x1d1)],_0x2c9e98+_0x51a17b(0x16d),_0x5f2e30),validateNotificationActions(_0xf210b5[_0x51a17b(0x18e)],_0x2c9e98+_0x51a17b(0x11f),_0x5f2e30);}function validateNotificationFacts(_0x442059,_0x373ed4,_0x386f23){const _0x4ea0c8=a281_0x358266;if(_0x442059===undefined||_0x442059===null)return;if(!Array[_0x4ea0c8(0x121)](_0x442059)){_0x386f23[_0x4ea0c8(0x1be)]({'path':_0x373ed4,'message':_0x4ea0c8(0x119)});return;}_0x442059['length']>MAX_NOTIFICATION_FACTS&&_0x386f23['push']({'path':_0x373ed4,'message':_0x4ea0c8(0x247)+MAX_NOTIFICATION_FACTS+_0x4ea0c8(0x112)}),_0x442059[_0x4ea0c8(0x1d2)]((_0xef3393,_0x4378bf)=>{const _0x35869b=_0x4ea0c8,_0xed7b6f=_0x373ed4+'['+_0x4378bf+']';if(!isRecord(_0xef3393)){_0x386f23[_0x35869b(0x1be)]({'path':_0xed7b6f,'message':'Notification\x20fact\x20must\x20be\x20an\x20object.'});return;}for(const _0x18af34 of[_0x35869b(0x198),_0x35869b(0x114)]){const _0x4c1f0d=requireNotificationString(_0xef3393[_0x18af34],_0xed7b6f+'.'+_0x18af34,_0x35869b(0x18a)+_0x18af34+'\x20is\x20required.',_0x386f23);_0x4c1f0d&&validateNotificationPlaceholders(_0x4c1f0d,_0xed7b6f+'.'+_0x18af34,_0x386f23);}});}function validateNotificationActions(_0x11378a,_0x575261,_0x4a1bbf){const _0x1ad07a=a281_0x358266;if(_0x11378a===undefined||_0x11378a===null)return;if(!Array[_0x1ad07a(0x121)](_0x11378a)){_0x4a1bbf['push']({'path':_0x575261,'message':_0x1ad07a(0x180)});return;}_0x11378a[_0x1ad07a(0x1bf)]>MAX_NOTIFICATION_ACTIONS&&_0x4a1bbf['push']({'path':_0x575261,'message':_0x1ad07a(0x247)+MAX_NOTIFICATION_ACTIONS+_0x1ad07a(0x230)}),_0x11378a[_0x1ad07a(0x1d2)]((_0x5925e8,_0x1a4fe3)=>{const _0x17a5e2=_0x1ad07a,_0x97600e=_0x575261+'['+_0x1a4fe3+']';if(!isRecord(_0x5925e8)){_0x4a1bbf[_0x17a5e2(0x1be)]({'path':_0x97600e,'message':_0x17a5e2(0x165)});return;}const _0x49a59e=requireNotificationString(_0x5925e8[_0x17a5e2(0x243)],_0x97600e+_0x17a5e2(0x210),_0x17a5e2(0x223),_0x4a1bbf);if(_0x49a59e)validateNotificationPlaceholders(_0x49a59e,_0x97600e+_0x17a5e2(0x210),_0x4a1bbf);const _0xf15f28=requireNotificationString(_0x5925e8[_0x17a5e2(0x259)],_0x97600e+'.url',_0x17a5e2(0x1b0),_0x4a1bbf);if(!_0xf15f28)return;validateNotificationPlaceholders(_0xf15f28,_0x97600e+'.url',_0x4a1bbf),!/^https?:\/\//i[_0x17a5e2(0x26d)](_0xf15f28)&&!NOTIFICATION_ACTION_URL_PLACEHOLDER_PATTERN[_0x17a5e2(0x26d)](_0xf15f28)&&_0x4a1bbf['push']({'path':_0x97600e+_0x17a5e2(0x155),'message':'Notification\x20action.url\x20must\x20use\x20http/https\x20or\x20a\x20complete\x20supported\x20placeholder.'});});}function validateNotificationRecipients(_0x568603,_0x3cd88a,_0x2c3cb1){const _0x220b1e=a281_0x358266;if(_0x568603===undefined||_0x568603===null)return;if(!Array[_0x220b1e(0x121)](_0x568603)){_0x2c3cb1[_0x220b1e(0x1be)]({'path':_0x3cd88a,'message':_0x220b1e(0x1e2)});return;}let _0x2d42c2=![];_0x568603[_0x220b1e(0x1d2)]((_0x2a4a66,_0x2ac3c3)=>{const _0x358d61=_0x220b1e,_0x3d64fc=_0x3cd88a+'['+_0x2ac3c3+']';if(!isRecord(_0x2a4a66)){_0x2c3cb1['push']({'path':_0x3d64fc,'message':_0x358d61(0x1df)});return;}const _0x4625b4=requireNotificationString(_0x2a4a66[_0x358d61(0x1ed)],_0x3d64fc+_0x358d61(0x172),'Notification\x20recipient.type\x20is\x20required.',_0x2c3cb1);_0x4625b4&&!NOTIFICATION_RECIPIENT_TYPES[_0x358d61(0x1f9)](_0x4625b4[_0x358d61(0x1a2)]())&&_0x2c3cb1[_0x358d61(0x1be)]({'path':_0x3d64fc+_0x358d61(0x172),'message':_0x358d61(0x1b7)});let _0x1f3c39='TO';_0x2a4a66[_0x358d61(0x111)]!==undefined&&_0x2a4a66[_0x358d61(0x111)]!==null&&(typeof _0x2a4a66[_0x358d61(0x111)]!==_0x358d61(0x19d)?(_0x2c3cb1[_0x358d61(0x1be)]({'path':_0x3d64fc+_0x358d61(0x1c6),'message':_0x358d61(0x252)}),_0x1f3c39=''):(_0x1f3c39=_0x2a4a66[_0x358d61(0x111)][_0x358d61(0x1cf)]()[_0x358d61(0x1a2)](),!NOTIFICATION_RECIPIENT_ROLES[_0x358d61(0x1f9)](_0x1f3c39)&&_0x2c3cb1[_0x358d61(0x1be)]({'path':_0x3d64fc+_0x358d61(0x1c6),'message':_0x358d61(0x22e)})));if(_0x1f3c39==='TO')_0x2d42c2=!![];const _0x504b23=requireNotificationString(_0x2a4a66[_0x358d61(0x114)],_0x3d64fc+_0x358d61(0x1ab),_0x358d61(0x211),_0x2c3cb1);_0x504b23&&validateNotificationPlaceholders(_0x504b23,_0x3d64fc+_0x358d61(0x1ab),_0x2c3cb1);}),_0x568603[_0x220b1e(0x1bf)]>0x0&&!_0x2d42c2&&_0x2c3cb1[_0x220b1e(0x1be)]({'path':_0x3cd88a,'message':_0x220b1e(0x185)});}function requireNotificationString(_0x7f7619,_0x12b68e,_0x5a86a2,_0x3b2a61){const _0x4a4aa2=a281_0x358266;if(typeof _0x7f7619!==_0x4a4aa2(0x19d)||_0x7f7619[_0x4a4aa2(0x1cf)]()==='')return _0x3b2a61[_0x4a4aa2(0x1be)]({'path':_0x12b68e,'message':_0x5a86a2}),undefined;return _0x7f7619['trim']();}function validateNotificationPlaceholders(_0x3ce85b,_0x523152,_0x1a2956){const _0x225742=a281_0x358266;for(const _0x146f38 of _0x3ce85b[_0x225742(0x154)](NOTIFICATION_PLACEHOLDER_PATTERN)){const _0x2498ab=_0x146f38[0x1]?.[_0x225742(0x1cf)]()??'',_0x49c4d7=_0x2498ab[_0x225742(0x25e)]('.'),_0xc22032=_0x49c4d7>=0x0?_0x2498ab[_0x225742(0x257)](0x0,_0x49c4d7):_0x2498ab,_0x203705=_0x49c4d7>=0x0?_0x2498ab[_0x225742(0x257)](_0x49c4d7+0x1)[_0x225742(0x1cf)]():'';(![_0x225742(0x152),_0x225742(0x24a),'variables'][_0x225742(0x173)](_0xc22032)||_0x203705==='')&&_0x1a2956[_0x225742(0x1be)]({'path':_0x523152,'message':_0x225742(0x12a)+_0x146f38[0x0]+'.'});}_0x3ce85b[_0x225742(0x23a)](NOTIFICATION_PLACEHOLDER_PATTERN,'')[_0x225742(0x173)]('${')&&_0x1a2956['push']({'path':_0x523152,'message':_0x225742(0x179)});}function a281_0x4a08(_0x2e8347,_0x5d60f5){_0x2e8347=_0x2e8347-0x10c;const _0x445b87=a281_0x445b();let _0x4a0873=_0x445b87[_0x2e8347];return _0x4a0873;}function validateEdge(_0x3e8401,_0x33c02b,_0x3e80ac){const _0x4ea97c=a281_0x358266;_0x3e8401[_0x4ea97c(0x193)]!==undefined&&typeof _0x3e8401[_0x4ea97c(0x193)]!==_0x4ea97c(0x19d)&&_0x3e80ac[_0x4ea97c(0x1be)]({'path':_0x33c02b+'.name','message':_0x4ea97c(0x244)}),_0x3e8401['defaultFlow']!==undefined&&typeof _0x3e8401[_0x4ea97c(0x12c)]!==_0x4ea97c(0x13b)&&_0x3e80ac[_0x4ea97c(0x1be)]({'path':_0x33c02b+_0x4ea97c(0x129),'message':_0x4ea97c(0x25f)}),_0x3e8401[_0x4ea97c(0x258)]!==undefined&&(!Array[_0x4ea97c(0x121)](_0x3e8401[_0x4ea97c(0x258)])?_0x3e80ac[_0x4ea97c(0x1be)]({'path':_0x33c02b+_0x4ea97c(0x20f),'message':_0x4ea97c(0x1de)}):_0x3e8401['waypoints']['forEach']((_0x2376db,_0x54f002)=>{const _0x40f371=_0x4ea97c;if(!isRecord(_0x2376db)){_0x3e80ac[_0x40f371(0x1be)]({'path':_0x33c02b+_0x40f371(0x237)+_0x54f002+']','message':_0x40f371(0x125)});return;}for(const _0x576c36 of['x','y']){const _0x281f97=_0x2376db[_0x576c36];(typeof _0x281f97!==_0x40f371(0x1f8)||!Number[_0x40f371(0x19e)](_0x281f97))&&_0x3e80ac[_0x40f371(0x1be)]({'path':_0x33c02b+'.waypoints['+_0x54f002+'].'+_0x576c36,'message':_0x40f371(0x20d)+_0x576c36+_0x40f371(0x217)});}})),_0x3e8401['conditionType']!==undefined&&!CONDITION_TYPES[_0x4ea97c(0x1f9)](_0x3e8401[_0x4ea97c(0x1dd)])&&_0x3e80ac[_0x4ea97c(0x1be)]({'path':_0x33c02b+'.conditionType','message':'Unsupported\x20condition\x20type:\x20'+String(_0x3e8401['conditionType'])+'.'}),_0x3e8401[_0x4ea97c(0x1dd)]===_0x4ea97c(0x150)&&(typeof _0x3e8401[_0x4ea97c(0x178)]!=='string'||_0x3e8401[_0x4ea97c(0x178)][_0x4ea97c(0x1cf)]()==='')&&_0x3e80ac[_0x4ea97c(0x1be)]({'path':_0x33c02b+_0x4ea97c(0x23b),'message':_0x4ea97c(0x21e)}),_0x3e8401[_0x4ea97c(0x12c)]===!![]&&_0x3e8401[_0x4ea97c(0x1dd)]!==_0x4ea97c(0x184)&&_0x3e80ac[_0x4ea97c(0x1be)]({'path':_0x33c02b+_0x4ea97c(0x129),'message':_0x4ea97c(0x12e)}),_0x3e8401['defaultFlow']===!![]&&typeof _0x3e8401['expression']==='string'&&_0x3e8401[_0x4ea97c(0x178)][_0x4ea97c(0x1cf)]()!==''&&_0x3e80ac['push']({'path':_0x33c02b+_0x4ea97c(0x23b),'message':'A\x20default\x20flow\x20must\x20not\x20have\x20an\x20expression.'});}function validateGraphShape(_0x4a9068,_0x407ac9,_0x5555a3,_0x56ee08,_0x501f84,_0x4841cb,_0x3ec318){const _0x5c1327=a281_0x358266;for(const [_0x3e9066,_0x4e3966]of _0x4a9068){const _0x5f1f34=_0x501f84['get'](_0x3e9066)??[],_0x47e4ac=_0x56ee08[_0x5c1327(0x1b3)](_0x3e9066)??[];_0x4e3966[_0x5c1327(0x1ed)]!==_0x5c1327(0x126)&&_0x5f1f34['length']===0x0&&_0x3ec318['push']({'path':_0x5c1327(0x183)+_0x3e9066,'message':_0x5c1327(0x22f)});_0x4e3966[_0x5c1327(0x1ed)]!==_0x5c1327(0x207)&&_0x47e4ac[_0x5c1327(0x1bf)]===0x0&&_0x3ec318[_0x5c1327(0x1be)]({'path':_0x5c1327(0x183)+_0x3e9066,'message':'Node\x20has\x20no\x20outgoing\x20edge.'});_0x4e3966[_0x5c1327(0x1ed)]===_0x5c1327(0x126)&&_0x5f1f34[_0x5c1327(0x1bf)]>0x0&&_0x3ec318[_0x5c1327(0x1be)]({'path':_0x5c1327(0x183)+_0x3e9066,'message':'START\x20node\x20must\x20not\x20have\x20incoming\x20edges.'});_0x4e3966[_0x5c1327(0x1ed)]===_0x5c1327(0x207)&&_0x47e4ac[_0x5c1327(0x1bf)]>0x0&&_0x3ec318[_0x5c1327(0x1be)]({'path':_0x5c1327(0x183)+_0x3e9066,'message':'END\x20node\x20must\x20not\x20have\x20outgoing\x20edges.'});if(_0x4e3966['type']===_0x5c1327(0x20c)){_0x47e4ac[_0x5c1327(0x1bf)]<0x2&&_0x3ec318[_0x5c1327(0x1be)]({'path':_0x5c1327(0x183)+_0x3e9066,'message':'CONDITION\x20node\x20requires\x20at\x20least\x20two\x20outgoing\x20edges.'});const _0x31f86e=_0x47e4ac[_0x5c1327(0x226)](_0x3c70df=>_0x3c70df[_0x5c1327(0x12c)]===!![]);_0x31f86e[_0x5c1327(0x1bf)]!==0x1&&_0x3ec318[_0x5c1327(0x1be)]({'path':'flowJson.nodes.'+_0x3e9066,'message':_0x5c1327(0x1a0)});if(_0x31f86e['length']===0x1){const _0x223fe0=_0x31f86e[0x0],_0x13e9c4=_0x4841cb[_0x5c1327(0x1b3)](_0x223fe0)??_0x5c1327(0x17e);_0x223fe0[_0x5c1327(0x1dd)]!==_0x5c1327(0x184)&&_0x3ec318[_0x5c1327(0x1be)]({'path':_0x13e9c4+_0x5c1327(0x24f),'message':'CONDITION\x20default\x20edge\x20must\x20use\x20conditionType\x20ALWAYS.'});_0x223fe0['expression']!==undefined&&_0x3ec318[_0x5c1327(0x1be)]({'path':_0x13e9c4+_0x5c1327(0x23b),'message':_0x5c1327(0x1fd)});for(const _0x351c58 of _0x47e4ac){if(_0x351c58===_0x223fe0)continue;const _0x282ba2=_0x4841cb[_0x5c1327(0x1b3)](_0x351c58)??_0x5c1327(0x17e);if(_0x351c58[_0x5c1327(0x1dd)]!==_0x5c1327(0x150))_0x3ec318[_0x5c1327(0x1be)]({'path':_0x282ba2+_0x5c1327(0x24f),'message':_0x5c1327(0x1aa)});else(typeof _0x351c58[_0x5c1327(0x178)]!=='string'||_0x351c58['expression']['trim']()==='')&&_0x3ec318[_0x5c1327(0x1be)]({'path':_0x282ba2+_0x5c1327(0x23b),'message':_0x5c1327(0x124)});}}}if(_0x4e3966[_0x5c1327(0x1ed)]===_0x5c1327(0x1a8)&&(_0x4e3966['taskMode']??_0x5c1327(0x1a8))===_0x5c1327(0x17a)){if(_0x47e4ac[_0x5c1327(0x1bf)]!==0x1)_0x3ec318['push']({'path':_0x5c1327(0x183)+_0x3e9066,'message':_0x5c1327(0x140)});else{const _0x1119d6=_0x47e4ac[0x0];((_0x1119d6[_0x5c1327(0x1dd)]??'ALWAYS')!=='ALWAYS'||_0x1119d6[_0x5c1327(0x12c)]===!![]||typeof _0x1119d6[_0x5c1327(0x178)]==='string'&&_0x1119d6[_0x5c1327(0x178)][_0x5c1327(0x1cf)]()!=='')&&_0x3ec318[_0x5c1327(0x1be)]({'path':_0x4841cb[_0x5c1327(0x1b3)](_0x1119d6)??_0x5c1327(0x17e),'message':_0x5c1327(0x163)});}}else{if(_0x4e3966['type']===_0x5c1327(0x1a8)){const _0x494d45=_0x47e4ac['map'](_0x346fd8=>_0x346fd8[_0x5c1327(0x1dd)]??_0x5c1327(0x184)),_0x2beecd=_0x494d45[_0x5c1327(0x226)](_0x31daa9=>_0x31daa9!==_0x5c1327(0x1cc)&&_0x31daa9!==_0x5c1327(0x1a1));_0x2beecd[_0x5c1327(0x1bf)]>0x0&&_0x3ec318['push']({'path':_0x5c1327(0x183)+_0x3e9066,'message':'APPROVAL\x20node\x20outgoing\x20edges\x20must\x20use\x20APPROVED\x20or\x20REJECTED.'}),_0x494d45[_0x5c1327(0x226)](_0x326f81=>_0x326f81===_0x5c1327(0x1cc))[_0x5c1327(0x1bf)]!==0x1&&_0x3ec318['push']({'path':_0x5c1327(0x183)+_0x3e9066,'message':_0x5c1327(0x249)}),_0x494d45[_0x5c1327(0x226)](_0x28d341=>_0x28d341===_0x5c1327(0x1a1))[_0x5c1327(0x1bf)]!==0x1&&_0x3ec318[_0x5c1327(0x1be)]({'path':_0x5c1327(0x183)+_0x3e9066,'message':_0x5c1327(0x1eb)}),_0x47e4ac['some'](_0x1e6998=>_0x1e6998['defaultFlow']===!![])&&_0x3ec318['push']({'path':_0x5c1327(0x183)+_0x3e9066,'message':_0x5c1327(0x176)});}}}const _0x91fb54=new Set(),_0x46e52b=_0x36a11d=>{const _0x300810=_0x5c1327;if(_0x91fb54[_0x300810(0x1f9)](_0x36a11d))return;_0x91fb54['add'](_0x36a11d);for(const _0x58b48e of _0x56ee08[_0x300810(0x1b3)](_0x36a11d)??[]){const _0x8cdfdd=resolveEdgeEndpoint(_0x58b48e[_0x300810(0x17b)],_0x58b48e[_0x300810(0x131)]);if(_0x8cdfdd&&_0x4a9068[_0x300810(0x1f9)](_0x8cdfdd))_0x46e52b(_0x8cdfdd);}};_0x46e52b(_0x407ac9);for(const _0x3e163e of _0x4a9068[_0x5c1327(0x188)]()){!_0x91fb54['has'](_0x3e163e)&&_0x3ec318['push']({'path':_0x5c1327(0x183)+_0x3e163e,'message':_0x5c1327(0x204)});}const _0x72ea60=_0x5555a3['some'](_0x30f295=>_0x91fb54[_0x5c1327(0x1f9)](_0x30f295));if(!_0x72ea60){_0x3ec318[_0x5c1327(0x1be)]({'path':_0x5c1327(0x17e),'message':_0x5c1327(0x1b1)});return;}const _0x5ba59e=new Set(),_0xf8c635=_0x19cf3c=>{const _0x9d8504=_0x5c1327;if(_0x5ba59e[_0x9d8504(0x1f9)](_0x19cf3c))return;_0x5ba59e[_0x9d8504(0x18d)](_0x19cf3c);for(const _0x4815dd of _0x501f84[_0x9d8504(0x1b3)](_0x19cf3c)??[]){const _0x3e734f=resolveEdgeEndpoint(_0x4815dd[_0x9d8504(0x166)],_0x4815dd['sourceNodeId']);if(_0x3e734f&&_0x4a9068[_0x9d8504(0x1f9)](_0x3e734f))_0xf8c635(_0x3e734f);}};for(const _0xa0f7cd of _0x5555a3){if(_0x4a9068[_0x5c1327(0x1f9)](_0xa0f7cd))_0xf8c635(_0xa0f7cd);}for(const _0x39e410 of _0x91fb54){!_0x5ba59e[_0x5c1327(0x1f9)](_0x39e410)&&_0x3ec318[_0x5c1327(0x1be)]({'path':_0x5c1327(0x183)+_0x39e410,'message':_0x5c1327(0x25c)});}}function validateApprovalResults(_0x2ca2d0,_0x1d166e,_0x141682,_0x422021){const _0x5547aa=a281_0x358266;if(_0x1d166e===0x0)return;const _0xf378af=new Set(_0x141682[_0x5547aa(0x261)](_0x52a0e9=>_0x2ca2d0[_0x5547aa(0x1b3)](_0x52a0e9)?.[_0x5547aa(0x157)])['filter'](_0x3fa018=>typeof _0x3fa018==='string'));for(const _0x1f4136 of[_0x5547aa(0x1cc),'REJECTED']){!_0xf378af[_0x5547aa(0x1f9)](_0x1f4136)&&_0x422021[_0x5547aa(0x1be)]({'path':_0x5547aa(0x1ac),'message':_0x5547aa(0x1db)+_0x1f4136+'.'});}}function validateScriptResultReferences(_0x23d4a8,_0x3a24dd,_0x50cc99,_0x1fce89,_0x4c9bd1,_0x39a11e,_0x10de83){const _0x57a274=a281_0x358266;if(_0x39a11e['size']===0x0)return;const _0x20aac9=new Set(),_0x29e80e=_0x1faf67=>{const _0x49d197=a281_0x4a08;if(!_0x20aac9['has'](_0x1faf67)&&_0x23d4a8[_0x49d197(0x1f9)](_0x1faf67)){_0x20aac9[_0x49d197(0x18d)](_0x1faf67);for(const _0x5bbb06 of _0x50cc99['get'](_0x1faf67)??[]){const _0x54e299=resolveEdgeEndpoint(_0x5bbb06['target'],_0x5bbb06[_0x49d197(0x131)]);if(_0x54e299)_0x29e80e(_0x54e299);}}};_0x29e80e(_0x3a24dd);const _0x35daee=new Map();for(const _0x362cfa of _0x20aac9){_0x35daee[_0x57a274(0x1ce)](_0x362cfa,_0x362cfa===_0x3a24dd?new Set([_0x3a24dd]):new Set(_0x20aac9));}let _0x4d6a2f=!![];while(_0x4d6a2f){_0x4d6a2f=![];for(const _0x2372d5 of _0x20aac9){if(_0x2372d5===_0x3a24dd)continue;const _0x910c37=(_0x1fce89[_0x57a274(0x1b3)](_0x2372d5)??[])[_0x57a274(0x261)](_0x1b6aa3=>resolveEdgeEndpoint(_0x1b6aa3[_0x57a274(0x166)],_0x1b6aa3[_0x57a274(0x1ca)]))[_0x57a274(0x226)](_0x365804=>Boolean(_0x365804&&_0x20aac9[_0x57a274(0x1f9)](_0x365804)));if(_0x910c37[_0x57a274(0x1bf)]===0x0)continue;const _0x5f3cc5=new Set(_0x35daee[_0x57a274(0x1b3)](_0x910c37[0x0])??[]);for(const _0x1d3aa0 of _0x910c37[_0x57a274(0x257)](0x1)){const _0x519530=_0x35daee[_0x57a274(0x1b3)](_0x1d3aa0)??new Set();for(const _0x540090 of _0x5f3cc5){if(!_0x519530[_0x57a274(0x1f9)](_0x540090))_0x5f3cc5[_0x57a274(0x156)](_0x540090);}}_0x5f3cc5['add'](_0x2372d5);const _0x515389=_0x35daee[_0x57a274(0x1b3)](_0x2372d5);!setsEqual(_0x515389,_0x5f3cc5)&&(_0x35daee[_0x57a274(0x1ce)](_0x2372d5,_0x5f3cc5),_0x4d6a2f=!![]);}}for(const [_0x481968,_0x16fceb]of _0x50cc99){const _0x405800=_0x35daee[_0x57a274(0x1b3)](_0x481968);if(!_0x405800)continue;for(const _0x68cf63 of _0x16fceb){if(_0x68cf63[_0x57a274(0x1dd)]!==_0x57a274(0x150)||typeof _0x68cf63[_0x57a274(0x178)]!==_0x57a274(0x19d))continue;for(const [_0x54d01d,_0x3fd427]of _0x39a11e){expressionReferencesVariable(_0x68cf63[_0x57a274(0x178)],_0x54d01d)&&!_0x405800[_0x57a274(0x1f9)](_0x3fd427)&&_0x10de83[_0x57a274(0x1be)]({'path':(_0x4c9bd1[_0x57a274(0x1b3)](_0x68cf63)??_0x57a274(0x17e))+_0x57a274(0x23b),'message':_0x57a274(0x19c)+_0x54d01d+_0x57a274(0x268)+_0x3fd427+_0x57a274(0x18b)+_0x481968+'.'});}}}}function expressionReferencesVariable(_0x2aa5ad,_0x3682b0){const _0x5aa9ff=a281_0x358266,_0x530b71=_0x3682b0[_0x5aa9ff(0x23a)](/[.*+?^${}()|[\]\\]/g,'\x5c$&');return new RegExp('(?<![A-Za-z0-9_])'+_0x530b71+_0x5aa9ff(0x1da))[_0x5aa9ff(0x26d)](_0x2aa5ad);}function resolveEffectiveResultVariable(_0x136abb,_0x24553a){const _0xc0e130=a281_0x358266;if(_0x136abb===undefined||_0x136abb===null||_0x24553a&&_0x136abb==='')return DEFAULT_SCRIPT_RESULT_VARIABLE;if(typeof _0x136abb!==_0xc0e130(0x19d)||!VARIABLE_PATTERN[_0xc0e130(0x26d)](_0x136abb)||RESERVED_RESULT_VARIABLES[_0xc0e130(0x1f9)](_0x136abb)||_0x136abb[_0xc0e130(0x1d7)]('approval_sys_'))return undefined;return _0x136abb;}function registerResultVariableOwner(_0x4a884f,_0x130bd6,_0x2413d5,_0x35bdc7){const _0x48205d=a281_0x358266;if(_0x4a884f[_0x48205d(0x1f9)](_0x130bd6)){_0x35bdc7['push']({'path':_0x48205d(0x1ac),'message':_0x48205d(0x1a4)+_0x130bd6+'.'});return;}_0x4a884f['set'](_0x130bd6,_0x2413d5);}function setsEqual(_0x3dcfc3,_0x39679b){const _0x4439c3=a281_0x358266;return _0x3dcfc3['size']===_0x39679b[_0x4439c3(0x134)]&&[..._0x3dcfc3]['every'](_0x3efc0a=>_0x39679b[_0x4439c3(0x1f9)](_0x3efc0a));}function isValidUserId(_0x1ce12b){const _0x2384eb=a281_0x358266;if(typeof _0x1ce12b==='string')return _0x1ce12b[_0x2384eb(0x1cf)]()[_0x2384eb(0x1bf)]>0x0;return Number[_0x2384eb(0x1f5)](_0x1ce12b)&&Number(_0x1ce12b)>0x0;}function resolveEdgeEndpoint(_0x5722a2,_0x359821){const _0x50770d=a281_0x358266;if(typeof _0x5722a2==='string'&&_0x5722a2[_0x50770d(0x1cf)]())return _0x5722a2[_0x50770d(0x1cf)]();if(typeof _0x359821===_0x50770d(0x19d)&&_0x359821[_0x50770d(0x1cf)]())return _0x359821['trim']();return undefined;}function removeEmptyMetadata(_0x5a6c3f,_0xc98b02,_0x303cc9,_0x426d0c){const _0x43dcd2=a281_0x358266;if(Array['isArray'](_0x5a6c3f)){_0x5a6c3f['forEach']((_0x5341b7,_0x596e7a)=>removeEmptyMetadata(_0x5341b7,_0xc98b02+'['+_0x596e7a+']',_0x303cc9,_0x426d0c));return;}if(!isRecord(_0x5a6c3f))return;for(const [_0x40a35b,_0x52bf29]of Object[_0x43dcd2(0x13f)](_0x5a6c3f)){const _0x33ca04=_0xc98b02+'.'+_0x40a35b;if(_0x40a35b==='metadata'&&isEmptyJsonValue(_0x52bf29)){delete _0x5a6c3f[_0x40a35b],_0x426d0c[_0x43dcd2(0x1be)](_0x33ca04),_0x303cc9[_0x43dcd2(0x1be)]({'code':_0x43dcd2(0x1b9),'path':_0x33ca04,'message':_0x33ca04+_0x43dcd2(0x186)});continue;}removeEmptyMetadata(_0x52bf29,_0x33ca04,_0x303cc9,_0x426d0c);}}function isEmptyJsonValue(_0x1d4311){const _0x15c81e=a281_0x358266;if(_0x1d4311===null||_0x1d4311===undefined)return!![];if(typeof _0x1d4311===_0x15c81e(0x19d))return _0x1d4311[_0x15c81e(0x1cf)]()==='';if(Array['isArray'](_0x1d4311))return _0x1d4311[_0x15c81e(0x1bf)]===0x0;return isRecord(_0x1d4311)&&Object['keys'](_0x1d4311)['length']===0x0;}function isRecord(_0xf3e7b1){return typeof _0xf3e7b1==='object'&&_0xf3e7b1!==null&&!Array['isArray'](_0xf3e7b1);}function cloneJsonValue(_0x204da6){const _0x5a47af=a281_0x358266;return JSON[_0x5a47af(0x1d5)](JSON[_0x5a47af(0x194)](_0x204da6));}export async function readFlowConfigFile(_0xa3d935){const _0x33d496=await readFile(resolve(_0xa3d935),'utf8');return JSON['parse'](_0x33d496);}function a281_0x445b(){const _0x271a8c=['includes','.timeout.scriptName','AUTO_REJECT','APPROVAL\x20task\x20decision\x20edges\x20must\x20not\x20be\x20default\x20flows.','flowType','expression','Notification\x20text\x20contains\x20a\x20malformed\x20placeholder.','HANDLE','target','.tmp','297140YCsDUI','flowJson.edges','.cc.visible','Notification\x20template.actions\x20must\x20be\x20an\x20array.','node\x20pageId\x20applies\x20only\x20to\x20INDEPENDENT_FLOW\x20with\x20CUSTOM_PAGE.','.transferCandidates.userIds','flowJson.nodes.','ALWAYS','Explicit\x20notification\x20recipients\x20require\x20at\x20least\x20one\x20TO.','\x20was\x20empty\x20and\x20was\x20removed.','Every\x20node\x20requires\x20position.x\x20and\x20position.y.','keys','.detailMarkdown','Notification\x20fact.','\x20is\x20not\x20on\x20every\x20upstream\x20path\x20to\x20','timeout\x20is\x20only\x20supported\x20by\x20APPROVAL\x20node.','add','actions','sequential','bindDatasetCode','ROLE','nodes\x20must\x20be\x20an\x20array.','name','stringify','SCRIPT\x20async\x20retryCount\x20must\x20be\x20between\x201\x20and\x20','recipients','value\x20must\x20be\x20a\x20non-empty\x20string.','label','array','timeout.interrupting\x20must\x20be\x20a\x20boolean.','cc.recipientUserIds\x20supports\x20at\x20most\x20','Expression\x20references\x20SCRIPT\x20resultVariable\x20','string','isFinite','flowJson.startPageId','CONDITION\x20node\x20requires\x20exactly\x20one\x20default\x20outgoing\x20edge.','REJECTED','toUpperCase','.async','Duplicate\x20resultVariable:\x20','.assignee.userIds','flowCode','INDEPENDENT_FLOW\x20cannot\x20bind\x20pageId.','APPROVAL','strategy','CONDITION\x20non-default\x20edge\x20must\x20use\x20conditionType\x20EXPRESSION.','.value','flowJson.nodes','Flow\x20must\x20contain\x20exactly\x20one\x20START\x20node.','flowName\x20is\x20required.','edges','Notification\x20action.url\x20is\x20required.','No\x20END\x20node\x20is\x20reachable\x20from\x20START.','hasOwnProperty','get','userIds','legacy_field_removed','flowJson.nodes[','Notification\x20recipient.type\x20must\x20be\x20USER,\x20ROLE,\x20or\x20EMAIL.','edge\x20id\x20must\x20match\x20[A-Za-z_][A-Za-z0-9_]*.','empty_metadata_removed','PLATFORM_FORM','2310684YiUmEY','async\x20execution\x20is\x20only\x20supported\x20by\x20SCRIPT\x20node.','.source','push','length','.async.enabled','.assignee.userIds[','configCode','version','#/$defs/userId','resultVariable','.role','object','roleId','formSchema','sourceNodeId','flowJson.','APPROVED','].taskMode','set','trim','EMAIL','facts','forEach','edges\x20must\x20be\x20an\x20array.','startPageId\x20must\x20be\x20a\x20positive\x20integer.','parse','assignee','startsWith','Notification\x20version\x20must\x20be\x20a\x20string.','#/$defs/timeAmount','(?![A-Za-z0-9_])','Approval\x20flow\x20requires\x20an\x20END\x20node\x20with\x20result\x20','flowJson.pageMode','conditionType','waypoints\x20must\x20be\x20an\x20array.','Notification\x20recipient\x20must\x20be\x20an\x20object.','template','fixed\x20assignee\x20userId\x20must\x20be\x20a\x20non-empty\x20string\x20or\x20positive\x20integer.','Notification\x20recipients\x20must\x20be\x20an\x20array.','approval.simple-flow.v1','pid','Accepted\x20as\x20legacy\x20input\x20and\x20removed\x20during\x20normalization;\x20other\x20versions\x20are\x20unsupported.','flowName','.cc.readSources','node\x20pageId\x20must\x20be\x20a\x20positive\x20integer.','https://json-schema.org/draft/2020-12/schema','visible','APPROVAL\x20node\x20requires\x20exactly\x20one\x20REJECTED\x20outgoing\x20edge.','approval_sys_appCode','type','.target','formPermissions','enabled','Duplicate\x20value:\x20','FAIL','value\x20must\x20be\x20an\x20array.','Unsupported\x20pageMode:\x20','isSafeInteger','FIXED','flowJson\x20must\x20be\x20an\x20object.','number','has','\x20must\x20be\x20a\x20finite\x20number\x20greater\x20than\x20or\x20equal\x20to\x200.','flowJson','Duplicate\x20node\x20id:\x20','CONDITION\x20default\x20edge\x20must\x20not\x20define\x20expression.','.version','duration','Unsupported\x20schemaVersion:\x20','NOTIFICATION\x20node\x20requires\x20config.','\x20value\x20and\x20was\x20removed\x20from\x20the\x20portable\x20FlowConfig.','flowJson.schemaVersion','Node\x20is\x20not\x20reachable\x20from\x20START.','INDEPENDENT_FLOW\x20cannot\x20bind\x20datasetCode.','retryInterval','END','position','approval_sys_datasetCode','FORM_FLOW\x20is\x20an\x20approval\x20flow\x20and\x20cannot\x20contain\x20HANDLE\x20tasks;\x20use\x20INDEPENDENT_FLOW\x20for\x20workflows.','retryCount','CONDITION','waypoint.','appCode','.waypoints','.text','Notification\x20recipient.value\x20is\x20required.','approval_sys_processInstanceId','flowDesc\x20must\x20be\x20a\x20string.','NOTIFICATION\x20node\x20requires\x20template.','approval_sys_initiatorUserId','nodes','\x20must\x20be\x20a\x20finite\x20number.','.recipients','transferCandidates','SECONDS','.cc.recipientUserIds','FlowConfig\x20must\x20be\x20a\x20JSON\x20object.','FORM_FLOW','EXPRESSION\x20edge\x20requires\x20expression.','call','.transferCandidates','integer','approval_sys_operationType','Notification\x20action.text\x20is\x20required.','.cc.recipientUserIds[','cc.recipientUserIds\x20must\x20be\x20a\x20non-empty\x20array.','filter','transferCandidates\x20must\x20be\x20an\x20object.','APPROVAL\x20node\x20requires\x20assignee.','edge\x20must\x20be\x20an\x20object.','flowJson.edges[','.timeout.action','assignee.strategy\x20must\x20be\x20FIXED\x20or\x20ROLE.','.transferCandidates.userIds[','Notification\x20recipient.role\x20must\x20be\x20TO,\x20CC,\x20or\x20BCC.','Node\x20has\x20no\x20incoming\x20edge.','\x20actions.','taskMode','USER','.timeout.resultVariable','flowKey','SCRIPT\x20node\x20requires\x20scriptName.','duration\x20requires\x20value\x20and\x20unit.','.waypoints[','action','.pageId','replace','.expression','failurePolicy','CONTINUE','CUSTOM_PAGE','timeout','.timeout.interrupting','pageMode','HOURS','text','edge\x20name\x20must\x20be\x20a\x20string.','EXECUTE_BFF\x20timeout\x20must\x20not\x20interrupt\x20the\x20approval\x20task.','flowDesc','Notification\x20template\x20supports\x20at\x20most\x20','async\x20must\x20be\x20an\x20object.','APPROVAL\x20node\x20requires\x20exactly\x20one\x20APPROVED\x20outgoing\x20edge.','context','.name','recipientUserIds','Custom\x20form\x20configuration\x20is\x20not\x20supported\x20by\x20this\x20rabetbase\x20version;\x20use\x20a\x20business\x20custom\x20page\x20instead.','.resultVariable','.conditionType','9467AWlsUq','NOTIFICATION','Notification\x20recipient.role\x20must\x20be\x20a\x20string.','scriptName','findIndex','Unsupported\x20notification\x20version:\x20','.approvalMode','slice','waypoints','url','formData','FIXED\x20transferCandidates\x20requires\x20non-empty\x20userIds.','Node\x20cannot\x20reach\x20any\x20END.','Unsupported\x20approval\x20mode:\x20','indexOf','defaultFlow\x20must\x20be\x20a\x20boolean.','https://lovrabet.com/schema/rabetbase-flow-config.json','map','BCC','pageMode\x20applies\x20only\x20to\x20INDEPENDENT_FLOW.','.taskMode','\x20timeout\x20must\x20interrupt\x20the\x20approval\x20task.','FIXED\x20assignee\x20requires\x20userIds.','approval_sys_initiatorUsername',',\x20but\x20node\x20','datasetCode','duration\x20value\x20must\x20be\x20a\x20positive\x20integer.','#/$defs/flowEdge','Duplicate\x20edge\x20route:\x20','test','summary','ANY','SCRIPT','Notification\x20configCode\x20must\x20be\x20a\x20fixed\x20value.','\x20->\x20','ALL','role','\x20facts.','MINUTES','value','async.enabled\x20must\x20be\x20a\x20boolean.','datasetCode\x20must\x20be\x20a\x20string.','528414vNzzHL','.failurePolicy','Notification\x20template.facts\x20must\x20be\x20an\x20array.','AUTO_APPROVE','.async.retryCount','detailMarkdown','scriptResult','templateName','.actions','DAYS','isArray','mode','timeout.action\x20must\x20be\x20AUTO_APPROVE,\x20AUTO_REJECT,\x20or\x20EXECUTE_BFF.','CONDITION\x20non-default\x20edge\x20requires\x20a\x20non-empty\x20expression.','waypoint\x20must\x20contain\x20numeric\x20x\x20and\x20y\x20coordinates.','START','timeout\x20must\x20be\x20an\x20object.','title','.defaultFlow','Unsupported\x20notification\x20placeholder:\x20','flowType\x20is\x20required.','defaultFlow','schemaVersion','A\x20default\x20flow\x20must\x20use\x20conditionType\x20ALWAYS.','EXECUTE_BFF','Notification\x20template.detailMarkdown\x20must\x20be\x20a\x20string.','targetNodeId','catch','PLATFORM_FORM\x20is\x20not\x20supported\x20by\x20this\x20rabetbase\x20version;\x20use\x20INDEPENDENT_FLOW\x20with\x20CUSTOM_PAGE.','size','failurePolicy\x20must\x20be\x20a\x20string.','Rabetbase\x20FlowConfig','\x20users.','utf8','approval_sys_','interrupting','boolean','config','NaN','.cc','entries','HANDLE\x20task\x20requires\x20exactly\x20one\x20outgoing\x20edge.','timeout.enabled\x20must\x20be\x20a\x20boolean.','.id','.\x20This\x20CLI\x20supports\x20only\x20','#/$defs/position','\x20is\x20required.','Every\x20node\x20requires\x20a\x20non-empty\x20name.','form','1725684YHTUaY','^[A-Za-z_][A-Za-z0-9_]*$','.unit','Edge\x20target\x20node\x20not\x20found:\x20','message','#/$defs/flowNode','node\x20id\x20must\x20match\x20[A-Za-z_][A-Za-z0-9_]*.','^[1-9][0-9]*$','EXPRESSION','warnings','event','edge\x20source\x20is\x20required.','matchAll','.url','delete','result','duration\x20unit\x20must\x20be\x20SECONDS,\x20MINUTES,\x20HOURS,\x20or\x20DAYS.','EXECUTE_BFF\x20timeout\x20requires\x20scriptName.','Duplicate\x20BPMN\x20element\x20id:\x20','.timeout','Unsupported\x20flowType:\x20','INDEPENDENT_FLOW','cc\x20must\x20be\x20an\x20object.','SINGLE','pageId','unit','async','HANDLE\x20task\x20outgoing\x20edge\x20must\x20use\x20ALWAYS\x20without\x20defaultFlow\x20or\x20expression.','7yHZoql','Notification\x20action\x20must\x20be\x20an\x20object.','source','\x20is\x20not\x20part\x20of\x20the\x20portable\x20FlowConfig\x20and\x20was\x20removed.','isInteger','prototype','overwrite','Default\x20cc\x20is\x20only\x20supported\x20by\x20APPROVAL\x20or\x20END\x20node.','Flow\x20must\x20contain\x20at\x20least\x20one\x20END\x20node.','.facts','.sequential','9817144XESyhT','Unsupported\x20node\x20type:\x20','140056IAwIfG','.type'];a281_0x445b=function(){return _0x271a8c;};return a281_0x445b();}
|
|
1
|
+
const a281_0x17c8d0=a281_0x2049;(function(_0xd2d8b1,_0x500899){const _0x2cf864=a281_0x2049,_0x18eeb2=_0xd2d8b1();while(!![]){try{const _0x5ce98d=parseInt(_0x2cf864(0x1eb))/0x1+parseInt(_0x2cf864(0x1d5))/0x2*(parseInt(_0x2cf864(0x2d2))/0x3)+-parseInt(_0x2cf864(0x22d))/0x4+parseInt(_0x2cf864(0x2ca))/0x5*(parseInt(_0x2cf864(0x233))/0x6)+-parseInt(_0x2cf864(0x2fc))/0x7+-parseInt(_0x2cf864(0x260))/0x8+-parseInt(_0x2cf864(0x29e))/0x9*(parseInt(_0x2cf864(0x26a))/0xa);if(_0x5ce98d===_0x500899)break;else _0x18eeb2['push'](_0x18eeb2['shift']());}catch(_0x5b7c3c){_0x18eeb2['push'](_0x18eeb2['shift']());}}}(a281_0x5028,0x8ad15));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':'https://json-schema.org/draft/2020-12/schema','$id':a281_0x17c8d0(0x313),'title':a281_0x17c8d0(0x288),'type':'object','required':[a281_0x17c8d0(0x217),a281_0x17c8d0(0x277),a281_0x17c8d0(0x24e)],'$defs':{'userId':{'anyOf':[{'type':'string','minLength':0x1},{'type':a281_0x17c8d0(0x2dd),'minimum':0x1}]},'position':{'type':'object','required':['x','y'],'properties':{'x':{'type':'number','minimum':0x0},'y':{'type':a281_0x17c8d0(0x246),'minimum':0x0}},'additionalProperties':!![]},'timeAmount':{'type':a281_0x17c8d0(0x1f8),'required':[a281_0x17c8d0(0x205),a281_0x17c8d0(0x22e)],'properties':{'value':{'type':a281_0x17c8d0(0x2dd),'minimum':0x1},'unit':{'enum':[a281_0x17c8d0(0x263),a281_0x17c8d0(0x1f5),a281_0x17c8d0(0x274),a281_0x17c8d0(0x218)]}},'additionalProperties':!![]},'flowNode':{'type':a281_0x17c8d0(0x1f8),'required':['id',a281_0x17c8d0(0x2c1),a281_0x17c8d0(0x28d),'position'],'properties':{'id':{'type':a281_0x17c8d0(0x30c),'pattern':'^[A-Za-z_][A-Za-z0-9_]*$'},'type':{'enum':[a281_0x17c8d0(0x30f),'END',a281_0x17c8d0(0x31b),a281_0x17c8d0(0x221),a281_0x17c8d0(0x2a9),a281_0x17c8d0(0x1cc)]},'name':{'type':a281_0x17c8d0(0x30c),'minLength':0x1},'pageId':{'type':'integer','minimum':0x1},'position':{'$ref':a281_0x17c8d0(0x2d6)},'approvalMode':{'enum':[a281_0x17c8d0(0x279),a281_0x17c8d0(0x271),'ANY']},'taskMode':{'enum':[a281_0x17c8d0(0x31b),'HANDLE']},'assignee':{'type':a281_0x17c8d0(0x1f8),'required':[a281_0x17c8d0(0x1da)],'properties':{'strategy':{'enum':[a281_0x17c8d0(0x320),a281_0x17c8d0(0x315)]},'userIds':{'type':'array','minItems':0x1,'items':{'$ref':'#/$defs/userId'}},'roleId':{'anyOf':[{'type':a281_0x17c8d0(0x2dd),'minimum':0x1},{'type':'string','pattern':'^[1-9][0-9]*$'}]}},'additionalProperties':!![]},'transferCandidates':{'type':a281_0x17c8d0(0x1f8),'required':[a281_0x17c8d0(0x1da),a281_0x17c8d0(0x2b9)],'properties':{'strategy':{'const':a281_0x17c8d0(0x320)},'userIds':{'type':a281_0x17c8d0(0x1f2),'minItems':0x1,'items':{'$ref':a281_0x17c8d0(0x29d)}}},'additionalProperties':!![]},'sequential':{'type':a281_0x17c8d0(0x228)},'result':{'enum':[a281_0x17c8d0(0x20d),a281_0x17c8d0(0x2cc)]},'scriptName':{'type':a281_0x17c8d0(0x30c),'minLength':0x1},'resultVariable':{'type':a281_0x17c8d0(0x30c),'pattern':a281_0x17c8d0(0x258)},'async':{'type':'object','properties':{'enabled':{'type':a281_0x17c8d0(0x228)},'retryCount':{'type':a281_0x17c8d0(0x2dd),'minimum':0x1,'maximum':0xa},'retryInterval':{'$ref':'#/$defs/timeAmount'}},'additionalProperties':!![]},'timeout':{'type':a281_0x17c8d0(0x1f8),'properties':{'enabled':{'type':a281_0x17c8d0(0x228)},'duration':{'$ref':a281_0x17c8d0(0x272)},'action':{'enum':[a281_0x17c8d0(0x208),a281_0x17c8d0(0x1e9),a281_0x17c8d0(0x2ba)]},'interrupting':{'type':a281_0x17c8d0(0x228)},'scriptName':{'type':'string','minLength':0x1},'resultVariable':{'type':a281_0x17c8d0(0x30c),'pattern':'^[A-Za-z_][A-Za-z0-9_]*$'}},'additionalProperties':!![]},'cc':{'type':a281_0x17c8d0(0x1f8),'required':['recipientUserIds'],'properties':{'recipientUserIds':{'type':a281_0x17c8d0(0x1f2),'minItems':0x1,'maxItems':0x64,'uniqueItems':!![],'items':{'type':a281_0x17c8d0(0x30c),'minLength':0x1}},'visible':{'type':a281_0x17c8d0(0x1f2),'uniqueItems':!![],'items':{'type':a281_0x17c8d0(0x30c),'minLength':0x1}},'readSources':![]},'additionalProperties':!![]},'config':{'type':a281_0x17c8d0(0x1f8),'required':[a281_0x17c8d0(0x20a),a281_0x17c8d0(0x311)],'properties':{'version':{'enum':['v1']},'configCode':{'type':a281_0x17c8d0(0x30c),'minLength':0x1},'failurePolicy':{'enum':[a281_0x17c8d0(0x2ae),'FAIL']},'template':{'type':a281_0x17c8d0(0x1f8),'required':[a281_0x17c8d0(0x293),a281_0x17c8d0(0x264)],'properties':{'title':{'type':'string','minLength':0x1},'summary':{'type':a281_0x17c8d0(0x30c),'minLength':0x1},'detailMarkdown':{'type':a281_0x17c8d0(0x30c)},'facts':{'type':a281_0x17c8d0(0x1f2),'maxItems':0x8,'items':{'type':a281_0x17c8d0(0x1f8),'required':[a281_0x17c8d0(0x1d9),a281_0x17c8d0(0x205)],'properties':{'label':{'type':a281_0x17c8d0(0x30c),'minLength':0x1},'value':{'type':a281_0x17c8d0(0x30c),'minLength':0x1}},'additionalProperties':!![]}},'actions':{'type':a281_0x17c8d0(0x1f2),'maxItems':0x2,'items':{'type':a281_0x17c8d0(0x1f8),'required':[a281_0x17c8d0(0x2f3),a281_0x17c8d0(0x2ce)],'properties':{'text':{'type':'string','minLength':0x1},'url':{'type':a281_0x17c8d0(0x30c),'minLength':0x1}},'additionalProperties':!![]}}},'additionalProperties':!![]},'recipients':{'type':'array','items':{'type':a281_0x17c8d0(0x1f8),'required':[a281_0x17c8d0(0x2c1),a281_0x17c8d0(0x205)],'properties':{'type':{'enum':[a281_0x17c8d0(0x308),a281_0x17c8d0(0x315),a281_0x17c8d0(0x1df)]},'value':{'type':a281_0x17c8d0(0x30c),'minLength':0x1},'role':{'enum':['TO','CC','BCC']}},'additionalProperties':!![]}}},'additionalProperties':!![]},'form':![],'formPermission':![]},'additionalProperties':!![]},'flowEdge':{'type':a281_0x17c8d0(0x1f8),'properties':{'id':{'type':'string','pattern':a281_0x17c8d0(0x258)},'source':{'type':a281_0x17c8d0(0x30c),'minLength':0x1},'target':{'type':a281_0x17c8d0(0x30c),'minLength':0x1},'sourceNodeId':{'type':a281_0x17c8d0(0x30c),'minLength':0x1},'targetNodeId':{'type':a281_0x17c8d0(0x30c),'minLength':0x1},'conditionType':{'enum':[a281_0x17c8d0(0x28a),a281_0x17c8d0(0x20d),a281_0x17c8d0(0x2cc),a281_0x17c8d0(0x22f)]},'expression':{'type':a281_0x17c8d0(0x30c)},'defaultFlow':{'type':a281_0x17c8d0(0x228)},'name':{'type':a281_0x17c8d0(0x30c)},'waypoints':{'type':a281_0x17c8d0(0x1f2),'items':{'$ref':a281_0x17c8d0(0x2d6)}}},'allOf':[{'anyOf':[{'required':['source']},{'required':['sourceNodeId']}]},{'anyOf':[{'required':[a281_0x17c8d0(0x2ab)]},{'required':[a281_0x17c8d0(0x201)]}]}],'additionalProperties':!![]}},'properties':{'id':![],'appCode':![],'flowName':{'type':a281_0x17c8d0(0x30c),'minLength':0x1},'flowDesc':{'type':'string'},'flowType':{'enum':[a281_0x17c8d0(0x2d9),a281_0x17c8d0(0x230)]},'datasetCode':{'type':a281_0x17c8d0(0x30c),'minLength':0x1},'pageId':{'type':a281_0x17c8d0(0x2dd)},'templateName':![],'flowJson':{'type':a281_0x17c8d0(0x1f8),'required':[a281_0x17c8d0(0x212),a281_0x17c8d0(0x24d)],'properties':{'flowKey':![],'flowCode':![],'flowName':![],'bindDatasetCode':![],'datasetCode':![],'appCode':![],'pageId':![],'templateName':![],'schemaVersion':{'type':a281_0x17c8d0(0x30c),'const':a281_0x17c8d0(0x2a4),'description':a281_0x17c8d0(0x21e)},'formSchema':![],'formDefinitions':![],'formPermissions':![],'pageMode':{'const':a281_0x17c8d0(0x2f8)},'startPageId':{'type':a281_0x17c8d0(0x2dd),'minimum':0x1},'nodes':{'type':a281_0x17c8d0(0x1f2),'minItems':0x1,'items':{'$ref':'#/$defs/flowNode'}},'edges':{'type':a281_0x17c8d0(0x1f2),'minItems':0x1,'items':{'$ref':a281_0x17c8d0(0x323)}}},'additionalProperties':!![]}},'additionalProperties':!![]};const REMOVED_FLOW_JSON_FIELDS=[a281_0x17c8d0(0x2dc),a281_0x17c8d0(0x2fa),a281_0x17c8d0(0x217),a281_0x17c8d0(0x2a6),a281_0x17c8d0(0x284),a281_0x17c8d0(0x30b),a281_0x17c8d0(0x232),'templateName'],REMOVED_ROOT_FIELDS=['id',a281_0x17c8d0(0x30b),a281_0x17c8d0(0x304)],DEFAULT_FLOW_SCHEMA_VERSION=a281_0x17c8d0(0x2a4),NODE_TYPES=new Set([a281_0x17c8d0(0x30f),a281_0x17c8d0(0x1e6),'APPROVAL','CONDITION',a281_0x17c8d0(0x2a9),a281_0x17c8d0(0x1cc)]),CONDITION_TYPES=new Set(['ALWAYS','APPROVED',a281_0x17c8d0(0x2cc),a281_0x17c8d0(0x22f)]),APPROVAL_MODES=new Set([a281_0x17c8d0(0x279),'ALL',a281_0x17c8d0(0x2b0)]),APPROVAL_TASK_MODES=new Set([a281_0x17c8d0(0x31b),a281_0x17c8d0(0x299)]),FLOW_TIME_UNITS=new Set([a281_0x17c8d0(0x263),'MINUTES',a281_0x17c8d0(0x274),a281_0x17c8d0(0x218)]),APPROVAL_TIMEOUT_ACTIONS=new Set(['AUTO_APPROVE',a281_0x17c8d0(0x1e9),a281_0x17c8d0(0x2ba)]),FLOW_TYPES=new Set([a281_0x17c8d0(0x2d9),a281_0x17c8d0(0x230)]),FLOW_PAGE_MODES=new Set([a281_0x17c8d0(0x2f8),a281_0x17c8d0(0x269)]),BPMN_ID_PATTERN=/^[A-Za-z_][A-Za-z0-9_]*$/,VARIABLE_PATTERN=/^[A-Za-z_][A-Za-z0-9_]*$/,NOTIFICATION_PLACEHOLDER_PATTERN=/\$\{([^{}]+)\}/g,NOTIFICATION_ACTION_URL_PLACEHOLDER_PATTERN=/^\$\{(?:event|context|variables)\.[^{}]+\}$/,NOTIFICATION_FAILURE_POLICIES=new Set([a281_0x17c8d0(0x2ae),'FAIL']),NOTIFICATION_RECIPIENT_TYPES=new Set([a281_0x17c8d0(0x308),'ROLE',a281_0x17c8d0(0x1df)]),NOTIFICATION_RECIPIENT_ROLES=new Set(['TO','CC',a281_0x17c8d0(0x1fd)]),MAX_NOTIFICATION_FACTS=0x8,MAX_NOTIFICATION_ACTIONS=0x2,MAX_ASYNC_RETRY_COUNT=0xa,MAX_CC_RECIPIENTS=0x64,DEFAULT_SCRIPT_RESULT_VARIABLE=a281_0x17c8d0(0x282),UNSUPPORTED_FORM_MESSAGE=a281_0x17c8d0(0x2f1),UNSUPPORTED_PLATFORM_FORM_MESSAGE=a281_0x17c8d0(0x325),RESERVED_RESULT_VARIABLES=new Set([a281_0x17c8d0(0x21b),'approved',a281_0x17c8d0(0x238),a281_0x17c8d0(0x20c),a281_0x17c8d0(0x211),a281_0x17c8d0(0x27f),a281_0x17c8d0(0x2ee),a281_0x17c8d0(0x2eb),a281_0x17c8d0(0x281),a281_0x17c8d0(0x302)]);export function normalizeFlowConfig(_0x4bb59e){const _0x2c7c6d=a281_0x17c8d0;if(!isRecord(_0x4bb59e))throw new TypeError('FlowConfig\x20must\x20be\x20a\x20JSON\x20object.');const _0x55e96b=cloneJsonValue(_0x4bb59e),_0xf43653=_0x55e96b['flowJson'],_0x183c2b=isRecord(_0xf43653)?cloneJsonValue(_0xf43653):{},_0x59ff63=[],_0x32c49e=[];for(const _0x586740 of REMOVED_ROOT_FIELDS){if(!Object[_0x2c7c6d(0x24a)][_0x2c7c6d(0x328)][_0x2c7c6d(0x265)](_0x55e96b,_0x586740))continue;delete _0x55e96b[_0x586740],_0x32c49e[_0x2c7c6d(0x26f)](_0x586740),_0x59ff63[_0x2c7c6d(0x26f)]({'code':_0x2c7c6d(0x29b),'path':_0x586740,'message':_0x586740+_0x2c7c6d(0x28e)});}for(const _0x22ec37 of REMOVED_FLOW_JSON_FIELDS){if(!Object[_0x2c7c6d(0x24a)][_0x2c7c6d(0x328)][_0x2c7c6d(0x265)](_0x183c2b,_0x22ec37))continue;const _0x19528a=_0x2c7c6d(0x240)+_0x22ec37;delete _0x183c2b[_0x22ec37],_0x32c49e[_0x2c7c6d(0x26f)](_0x19528a),_0x59ff63['push']({'code':_0x2c7c6d(0x29b),'path':_0x19528a,'message':_0x19528a+_0x2c7c6d(0x28e)});}if(Object[_0x2c7c6d(0x24a)][_0x2c7c6d(0x328)][_0x2c7c6d(0x265)](_0x183c2b,_0x2c7c6d(0x310))){const _0x198485=_0x183c2b['schemaVersion'],_0x134e83=typeof _0x198485===_0x2c7c6d(0x30c)?_0x198485[_0x2c7c6d(0x253)]():_0x198485;if(isEmptyJsonValue(_0x198485)||_0x134e83===DEFAULT_FLOW_SCHEMA_VERSION){const _0x5ce42b='flowJson.schemaVersion';delete _0x183c2b['schemaVersion'],_0x32c49e['push'](_0x5ce42b),_0x59ff63[_0x2c7c6d(0x26f)]({'code':_0x2c7c6d(0x29b),'path':_0x5ce42b,'message':_0x5ce42b+'\x20was\x20empty\x20or\x20used\x20the\x20default\x20'+DEFAULT_FLOW_SCHEMA_VERSION+_0x2c7c6d(0x262)});}}removeEmptyMetadata(_0x183c2b,_0x2c7c6d(0x24e),_0x59ff63,_0x32c49e);_0x55e96b[_0x2c7c6d(0x277)]==='INDEPENDENT_FLOW'&&!Object[_0x2c7c6d(0x24a)][_0x2c7c6d(0x328)][_0x2c7c6d(0x265)](_0x183c2b,_0x2c7c6d(0x1f3))&&(_0x183c2b[_0x2c7c6d(0x1f3)]=_0x2c7c6d(0x2f8));_0x55e96b[_0x2c7c6d(0x24e)]=_0x183c2b;if(typeof _0x55e96b[_0x2c7c6d(0x217)]==='string')_0x55e96b[_0x2c7c6d(0x217)]=_0x55e96b[_0x2c7c6d(0x217)][_0x2c7c6d(0x253)]();return{'config':_0x55e96b,'warnings':_0x59ff63,'removedPaths':_0x32c49e};}export function validateFlowConfig(_0x2885a3){const _0x2997da=a281_0x17c8d0;let _0x2001fe;try{_0x2001fe=normalizeFlowConfig(_0x2885a3);}catch(_0x32705a){const _0x593118=_0x32705a instanceof Error?_0x32705a[_0x2997da(0x2fb)]:String(_0x32705a),_0x54923d={'flowJson':{}};return{'valid':![],'errors':[{'path':'$','message':_0x593118}],'warnings':[],'normalized':_0x54923d,'validationConfig':_0x54923d};}const _0x532700=_0x2001fe[_0x2997da(0x2cf)],_0x2c131a=cloneJsonValue(_0x532700),_0xcffba=_0x2c131a[_0x2997da(0x24e)];_0xcffba[_0x2997da(0x2dc)]=_0x2997da(0x24f),_0xcffba[_0x2997da(0x217)]=_0x532700[_0x2997da(0x217)];typeof _0x532700[_0x2997da(0x284)]===_0x2997da(0x30c)&&_0x532700[_0x2997da(0x284)][_0x2997da(0x253)]()&&(_0xcffba[_0x2997da(0x2a6)]=_0x532700['datasetCode'][_0x2997da(0x253)]());const _0x32bda3=[];return validateOuterMetadata(_0x532700,_0x32bda3),validateFlowClassification(_0x532700,_0x32bda3),validateGraph(_0x532700[_0x2997da(0x24e)],_0x32bda3),{'valid':_0x32bda3[_0x2997da(0x2ef)]===0x0,'errors':_0x32bda3,'warnings':_0x2001fe['warnings'],'normalized':_0x532700,'validationConfig':_0x2c131a};}function validateFlowClassification(_0x581e73,_0x5f4486){const _0x5778b3=a281_0x17c8d0;if(!isRecord(_0x581e73[_0x5778b3(0x24e)]))return;const _0x3bf2c1=_0x581e73[_0x5778b3(0x277)],_0x992942=_0x581e73[_0x5778b3(0x24e)][_0x5778b3(0x1f3)];_0x992942!==undefined&&(typeof _0x992942!==_0x5778b3(0x30c)||!FLOW_PAGE_MODES['has'](_0x992942))&&_0x5f4486[_0x5778b3(0x26f)]({'path':_0x5778b3(0x2b3),'message':'Unsupported\x20pageMode:\x20'+String(_0x992942)+'.'});_0x3bf2c1==='FORM_FLOW'&&_0x992942!==undefined&&_0x5f4486[_0x5778b3(0x26f)]({'path':_0x5778b3(0x2b3),'message':'pageMode\x20applies\x20only\x20to\x20INDEPENDENT_FLOW.'});_0x3bf2c1===_0x5778b3(0x230)&&_0x992942==='PLATFORM_FORM'&&_0x5f4486[_0x5778b3(0x26f)]({'path':_0x5778b3(0x2b3),'message':UNSUPPORTED_PLATFORM_FORM_MESSAGE});(_0x3bf2c1===_0x5778b3(0x2d9)||_0x3bf2c1===_0x5778b3(0x230))&&validateCustomPageNavigation(_0x581e73,_0x3bf2c1,_0x992942,_0x5f4486);if(_0x3bf2c1!=='FORM_FLOW'||!Array[_0x5778b3(0x2b5)](_0x581e73[_0x5778b3(0x24e)][_0x5778b3(0x212)]))return;_0x581e73[_0x5778b3(0x24e)][_0x5778b3(0x212)]['forEach']((_0x39f1d1,_0x47042d)=>{const _0x30ac2a=_0x5778b3;isRecord(_0x39f1d1)&&_0x39f1d1[_0x30ac2a(0x2c1)]===_0x30ac2a(0x31b)&&_0x39f1d1[_0x30ac2a(0x296)]==='HANDLE'&&_0x5f4486[_0x30ac2a(0x26f)]({'path':'flowJson.nodes['+_0x47042d+_0x30ac2a(0x294),'message':'FORM_FLOW\x20is\x20an\x20approval\x20flow\x20and\x20cannot\x20contain\x20HANDLE\x20tasks;\x20use\x20INDEPENDENT_FLOW\x20for\x20workflows.'});});}function validateCustomPageNavigation(_0x22f85d,_0x5cedfd,_0x4d0b39,_0x1877a5){const _0x3b7085=a281_0x17c8d0,_0x15c9ae=_0x22f85d[_0x3b7085(0x24e)]['startPageId'];_0x15c9ae!==undefined&&(!Number[_0x3b7085(0x322)](_0x15c9ae)||_0x15c9ae<=0x0)&&_0x1877a5[_0x3b7085(0x26f)]({'path':_0x3b7085(0x326),'message':_0x3b7085(0x2a8)});const _0x55d412=Array[_0x3b7085(0x2b5)](_0x22f85d['flowJson'][_0x3b7085(0x212)])?_0x22f85d[_0x3b7085(0x24e)][_0x3b7085(0x212)][_0x3b7085(0x24b)]((_0x168b39,_0x673e4d)=>({'node':_0x168b39,'index':_0x673e4d}))[_0x3b7085(0x204)](({node:_0x375f04})=>isRecord(_0x375f04)&&_0x375f04[_0x3b7085(0x232)]!==undefined):[],_0x65f4e=_0x15c9ae!==undefined||_0x55d412[_0x3b7085(0x2ef)]>0x0,_0x52e61d=_0x4d0b39===undefined&&_0x5cedfd===_0x3b7085(0x230)?_0x3b7085(0x2f8):_0x4d0b39;_0x65f4e&&(_0x5cedfd!==_0x3b7085(0x230)||_0x52e61d!==_0x3b7085(0x2f8))&&(_0x15c9ae!==undefined&&_0x1877a5[_0x3b7085(0x26f)]({'path':_0x3b7085(0x326),'message':'startPageId\x20applies\x20only\x20to\x20INDEPENDENT_FLOW\x20with\x20CUSTOM_PAGE.'}),_0x55d412[_0x3b7085(0x2e9)](({index:_0x563eb5})=>{const _0x5ca24b=_0x3b7085;_0x1877a5['push']({'path':_0x5ca24b(0x2f0)+_0x563eb5+_0x5ca24b(0x1ea),'message':_0x5ca24b(0x2bc)});}));}export async function writeNormalizedFlowConfig(_0x5e1060,_0x43efb0,_0x4898af={}){const _0x10f734=a281_0x17c8d0,_0x44b87b=resolve(_0x5e1060),_0x5436bc=_0x44b87b+'.'+process[_0x10f734(0x2e0)]+'.'+randomUUID()+_0x10f734(0x31d),_0x3ef070=JSON[_0x10f734(0x216)](_0x43efb0,null,0x2)+'\x0a';let _0x155c4d;try{try{_0x155c4d=(await stat(_0x44b87b))[_0x10f734(0x210)]&0x1ff;}catch{_0x155c4d=undefined;}await writeFile(_0x5436bc,_0x3ef070,{'encoding':_0x10f734(0x2a2),'flag':'wx','mode':_0x155c4d??0x1a4});if(_0x155c4d!==undefined)await chmod(_0x5436bc,_0x155c4d);_0x4898af['overwrite']===![]?(await link(_0x5436bc,_0x44b87b),await unlink(_0x5436bc)):await rename(_0x5436bc,_0x44b87b);}finally{await unlink(_0x5436bc)['catch'](()=>undefined);}}function validateOuterMetadata(_0x170e16,_0x306869){const _0x477b8d=a281_0x17c8d0;(typeof _0x170e16['flowName']!==_0x477b8d(0x30c)||_0x170e16[_0x477b8d(0x217)][_0x477b8d(0x253)]()==='')&&_0x306869[_0x477b8d(0x26f)]({'path':_0x477b8d(0x217),'message':_0x477b8d(0x257)});_0x170e16[_0x477b8d(0x2bd)]!==undefined&&typeof _0x170e16[_0x477b8d(0x2bd)]!==_0x477b8d(0x30c)&&_0x306869[_0x477b8d(0x26f)]({'path':'flowDesc','message':_0x477b8d(0x229)});if(_0x170e16[_0x477b8d(0x277)]===undefined||_0x170e16[_0x477b8d(0x277)]===null)_0x306869[_0x477b8d(0x26f)]({'path':'flowType','message':_0x477b8d(0x21a)});else(typeof _0x170e16[_0x477b8d(0x277)]!==_0x477b8d(0x30c)||!FLOW_TYPES['has'](_0x170e16[_0x477b8d(0x277)]))&&_0x306869['push']({'path':_0x477b8d(0x277),'message':_0x477b8d(0x2f7)+String(_0x170e16['flowType'])+'.'});_0x170e16[_0x477b8d(0x284)]!==undefined&&typeof _0x170e16[_0x477b8d(0x284)]!==_0x477b8d(0x30c)&&_0x306869[_0x477b8d(0x26f)]({'path':_0x477b8d(0x284),'message':_0x477b8d(0x2e4)}),_0x170e16[_0x477b8d(0x232)]!==undefined&&(!Number[_0x477b8d(0x259)](_0x170e16[_0x477b8d(0x232)])||_0x170e16[_0x477b8d(0x232)]<0x0)&&_0x306869[_0x477b8d(0x26f)]({'path':_0x477b8d(0x232),'message':'pageId\x20must\x20be\x20a\x20non-negative\x20integer.'}),_0x170e16[_0x477b8d(0x277)]===_0x477b8d(0x230)&&_0x170e16['datasetCode']!==undefined&&_0x306869[_0x477b8d(0x26f)]({'path':_0x477b8d(0x284),'message':_0x477b8d(0x316)}),_0x170e16['flowType']===_0x477b8d(0x230)&&_0x170e16['pageId']!==undefined&&_0x306869[_0x477b8d(0x26f)]({'path':_0x477b8d(0x232),'message':'INDEPENDENT_FLOW\x20cannot\x20bind\x20pageId.'});}function validateGraph(_0x49520d,_0x18fd5d){const _0x43110e=a281_0x17c8d0;if(!isRecord(_0x49520d)){_0x18fd5d[_0x43110e(0x26f)]({'path':_0x43110e(0x24e),'message':_0x43110e(0x307)});return;}!Array[_0x43110e(0x2b5)](_0x49520d[_0x43110e(0x212)])&&_0x18fd5d[_0x43110e(0x26f)]({'path':_0x43110e(0x327),'message':_0x43110e(0x2ec)});!Array['isArray'](_0x49520d[_0x43110e(0x24d)])&&_0x18fd5d[_0x43110e(0x26f)]({'path':_0x43110e(0x1e8),'message':_0x43110e(0x2df)});Object['prototype'][_0x43110e(0x328)][_0x43110e(0x265)](_0x49520d,_0x43110e(0x310))&&_0x18fd5d[_0x43110e(0x26f)]({'path':_0x43110e(0x28b),'message':'Unsupported\x20schemaVersion:\x20'+String(_0x49520d['schemaVersion'])+_0x43110e(0x23c)+DEFAULT_FLOW_SCHEMA_VERSION+'.'});for(const _0x325474 of[_0x43110e(0x291),_0x43110e(0x2ea),_0x43110e(0x1e5)]){Object['prototype']['hasOwnProperty'][_0x43110e(0x265)](_0x49520d,_0x325474)&&_0x18fd5d[_0x43110e(0x26f)]({'path':_0x43110e(0x240)+_0x325474,'message':UNSUPPORTED_FORM_MESSAGE});}if(!Array[_0x43110e(0x2b5)](_0x49520d[_0x43110e(0x212)])||!Array['isArray'](_0x49520d[_0x43110e(0x24d)]))return;const _0x3ae5fb=new Map(),_0x31d1ba=[],_0x2f75d0=[],_0x4000c9=new Map(),_0x2a2ae7=new Map(),_0x3e9802=new Set();let _0x193ecd=0x0;_0x49520d[_0x43110e(0x212)][_0x43110e(0x2e9)]((_0x1a6b9e,_0x38dcef)=>{const _0x48d4ff=_0x43110e,_0x217366=_0x48d4ff(0x2f0)+_0x38dcef+']';if(!isRecord(_0x1a6b9e)){_0x18fd5d[_0x48d4ff(0x26f)]({'path':_0x217366,'message':_0x48d4ff(0x2c9)});return;}const _0xc1d2ad=_0x1a6b9e;if(typeof _0xc1d2ad['id']!==_0x48d4ff(0x30c)||!BPMN_ID_PATTERN[_0x48d4ff(0x2be)](_0xc1d2ad['id']))_0x18fd5d[_0x48d4ff(0x26f)]({'path':_0x217366+_0x48d4ff(0x1fe),'message':_0x48d4ff(0x1e4)});else _0x3ae5fb[_0x48d4ff(0x1dc)](_0xc1d2ad['id'])?_0x18fd5d['push']({'path':_0x217366+_0x48d4ff(0x1fe),'message':_0x48d4ff(0x295)+_0xc1d2ad['id']+'.'}):(_0x3ae5fb[_0x48d4ff(0x20b)](_0xc1d2ad['id'],_0xc1d2ad),_0x3e9802[_0x48d4ff(0x301)](_0xc1d2ad['id']));if(!NODE_TYPES[_0x48d4ff(0x1dc)](_0xc1d2ad[_0x48d4ff(0x2c1)]))_0x18fd5d[_0x48d4ff(0x26f)]({'path':_0x217366+_0x48d4ff(0x2ff),'message':_0x48d4ff(0x224)+String(_0xc1d2ad[_0x48d4ff(0x2c1)])+'.'});else{if(_0xc1d2ad['type']===_0x48d4ff(0x30f))_0x31d1ba['push'](_0xc1d2ad['id']);else _0xc1d2ad[_0x48d4ff(0x2c1)]===_0x48d4ff(0x1e6)&&_0x2f75d0[_0x48d4ff(0x26f)](_0xc1d2ad['id']);}_0xc1d2ad[_0x48d4ff(0x2c1)]===_0x48d4ff(0x31b)&&(_0xc1d2ad[_0x48d4ff(0x296)]===undefined||_0xc1d2ad[_0x48d4ff(0x296)]===_0x48d4ff(0x31b))&&(_0x193ecd+=0x1);validateNode(_0xc1d2ad,_0x217366,_0x18fd5d);if(_0xc1d2ad[_0x48d4ff(0x2c1)]===_0x48d4ff(0x2a9)){const _0x29122e=resolveEffectiveResultVariable(_0xc1d2ad[_0x48d4ff(0x252)],![]);_0x29122e&&(registerResultVariableOwner(_0x2a2ae7,_0x29122e,_0xc1d2ad['id'],_0x18fd5d),!_0x4000c9[_0x48d4ff(0x1dc)](_0x29122e)&&_0x4000c9['set'](_0x29122e,_0xc1d2ad['id']));}if(_0xc1d2ad['type']===_0x48d4ff(0x31b)&&isRecord(_0xc1d2ad[_0x48d4ff(0x20e)])&&_0xc1d2ad['timeout'][_0x48d4ff(0x1d6)]===!![]&&_0xc1d2ad[_0x48d4ff(0x20e)][_0x48d4ff(0x2f9)]===_0x48d4ff(0x2ba)){const _0x125182=resolveEffectiveResultVariable(_0xc1d2ad[_0x48d4ff(0x20e)][_0x48d4ff(0x252)],!![]);_0x125182&®isterResultVariableOwner(_0x2a2ae7,_0x125182,_0xc1d2ad['id']+'.timeout',_0x18fd5d);}});_0x31d1ba[_0x43110e(0x2ef)]!==0x1&&_0x18fd5d[_0x43110e(0x26f)]({'path':_0x43110e(0x327),'message':_0x43110e(0x1f1)});_0x2f75d0[_0x43110e(0x2ef)]===0x0&&_0x18fd5d['push']({'path':_0x43110e(0x327),'message':'Flow\x20must\x20contain\x20at\x20least\x20one\x20END\x20node.'});const _0x420c87=new Map(),_0x376173=new Map(),_0x50c7c7=new Map(),_0x30a3a6=new Set();_0x49520d[_0x43110e(0x24d)][_0x43110e(0x2e9)]((_0x5d7ada,_0x455e11)=>{const _0x5626a5=_0x43110e,_0x2ed093=_0x5626a5(0x255)+_0x455e11+']';if(!isRecord(_0x5d7ada)){_0x18fd5d[_0x5626a5(0x26f)]({'path':_0x2ed093,'message':_0x5626a5(0x314)});return;}const _0x8edc88=_0x5d7ada;_0x50c7c7['set'](_0x8edc88,_0x2ed093);const _0x17b5f8=resolveEdgeEndpoint(_0x8edc88['source'],_0x8edc88[_0x5626a5(0x30e)]),_0xa150c3=resolveEdgeEndpoint(_0x8edc88[_0x5626a5(0x2ab)],_0x8edc88[_0x5626a5(0x201)]);if(!_0x17b5f8)_0x18fd5d[_0x5626a5(0x26f)]({'path':_0x2ed093+_0x5626a5(0x20f),'message':_0x5626a5(0x241)});if(!_0xa150c3)_0x18fd5d['push']({'path':_0x2ed093+'.target','message':_0x5626a5(0x202)});_0x17b5f8&&!_0x3ae5fb[_0x5626a5(0x1dc)](_0x17b5f8)&&_0x18fd5d[_0x5626a5(0x26f)]({'path':_0x2ed093+_0x5626a5(0x20f),'message':_0x5626a5(0x237)+_0x17b5f8+'.'});_0xa150c3&&!_0x3ae5fb[_0x5626a5(0x1dc)](_0xa150c3)&&_0x18fd5d[_0x5626a5(0x26f)]({'path':_0x2ed093+_0x5626a5(0x2f4),'message':'Edge\x20target\x20node\x20not\x20found:\x20'+_0xa150c3+'.'});if(_0x8edc88['id']!==undefined){if(typeof _0x8edc88['id']!==_0x5626a5(0x30c)||!BPMN_ID_PATTERN[_0x5626a5(0x2be)](_0x8edc88['id']))_0x18fd5d[_0x5626a5(0x26f)]({'path':_0x2ed093+'.id','message':_0x5626a5(0x2db)});else{if(_0x3e9802['has'](_0x8edc88['id']))_0x18fd5d[_0x5626a5(0x26f)]({'path':_0x2ed093+_0x5626a5(0x1fe),'message':'Duplicate\x20BPMN\x20element\x20id:\x20'+_0x8edc88['id']+'.'});else!_0x3e9802['has'](_0x8edc88['id'])&&_0x3e9802[_0x5626a5(0x301)](_0x8edc88['id']);}}if(_0x17b5f8&&_0xa150c3){const _0x30f3ea=_0x17b5f8+'\x00'+_0xa150c3+'\x00'+(_0x8edc88[_0x5626a5(0x1f7)]??_0x5626a5(0x28a));_0x30a3a6[_0x5626a5(0x1dc)](_0x30f3ea)?_0x18fd5d['push']({'path':_0x2ed093,'message':_0x5626a5(0x324)+_0x17b5f8+'\x20->\x20'+_0xa150c3+'\x20('+(_0x8edc88[_0x5626a5(0x1f7)]??_0x5626a5(0x28a))+').'}):_0x30a3a6['add'](_0x30f3ea);}validateEdge(_0x8edc88,_0x2ed093,_0x18fd5d),_0x17b5f8&&_0xa150c3&&(_0x420c87[_0x5626a5(0x306)](_0x17b5f8)?.[_0x5626a5(0x26f)](_0x8edc88)??_0x420c87[_0x5626a5(0x20b)](_0x17b5f8,[_0x8edc88]),_0x376173[_0x5626a5(0x306)](_0xa150c3)?.['push'](_0x8edc88)??_0x376173[_0x5626a5(0x20b)](_0xa150c3,[_0x8edc88]));});if(_0x31d1ba['length']!==0x1)return;validateGraphShape(_0x3ae5fb,_0x31d1ba[0x0],_0x2f75d0,_0x420c87,_0x376173,_0x50c7c7,_0x18fd5d),validateScriptResultReferences(_0x3ae5fb,_0x31d1ba[0x0],_0x420c87,_0x376173,_0x50c7c7,_0x4000c9,_0x18fd5d),validateApprovalResults(_0x3ae5fb,_0x193ecd,_0x2f75d0,_0x18fd5d);}function validateNode(_0xa7bb77,_0x137a62,_0x551cb7){const _0x294546=a281_0x17c8d0;for(const _0x434c12 of[_0x294546(0x2b4),_0x294546(0x25c)]){Object[_0x294546(0x24a)][_0x294546(0x328)][_0x294546(0x265)](_0xa7bb77,_0x434c12)&&_0x551cb7[_0x294546(0x26f)]({'path':_0x137a62+'.'+_0x434c12,'message':UNSUPPORTED_FORM_MESSAGE});}if(!NODE_TYPES[_0x294546(0x1dc)](_0xa7bb77[_0x294546(0x2c1)]))return;(typeof _0xa7bb77[_0x294546(0x28d)]!==_0x294546(0x30c)||_0xa7bb77[_0x294546(0x28d)][_0x294546(0x253)]()==='')&&_0x551cb7[_0x294546(0x26f)]({'path':_0x137a62+_0x294546(0x1db),'message':_0x294546(0x287)});if(_0xa7bb77['pageId']!==undefined){if(!Number[_0x294546(0x322)](_0xa7bb77[_0x294546(0x232)])||_0xa7bb77[_0x294546(0x232)]<=0x0)_0x551cb7[_0x294546(0x26f)]({'path':_0x137a62+_0x294546(0x2aa),'message':_0x294546(0x2e1)});else _0xa7bb77[_0x294546(0x2c1)]!=='APPROVAL'&&_0x551cb7[_0x294546(0x26f)]({'path':_0x137a62+_0x294546(0x2aa),'message':_0x294546(0x227)});}const _0x5d27af=_0xa7bb77[_0x294546(0x2ad)];if(!isRecord(_0x5d27af))_0x551cb7[_0x294546(0x26f)]({'path':_0x137a62+_0x294546(0x2b6),'message':_0x294546(0x226)});else for(const _0xf18d72 of['x','y']){const _0x33bd67=_0x5d27af[_0xf18d72];(typeof _0x33bd67!==_0x294546(0x246)||!Number[_0x294546(0x236)](_0x33bd67)||_0x33bd67<0x0)&&_0x551cb7[_0x294546(0x26f)]({'path':_0x137a62+_0x294546(0x261)+_0xf18d72,'message':_0x294546(0x251)+_0xf18d72+_0x294546(0x243)});}if(_0xa7bb77[_0x294546(0x2c1)]===_0x294546(0x31b)){const _0x324693=_0xa7bb77['approvalMode']??_0x294546(0x279),_0x8a9c14=_0xa7bb77['taskMode']??'APPROVAL';!APPROVAL_TASK_MODES[_0x294546(0x1dc)](_0x8a9c14)&&_0x551cb7[_0x294546(0x26f)]({'path':_0x137a62+'.taskMode','message':_0x294546(0x22b)+String(_0x8a9c14)+'.'});!APPROVAL_MODES[_0x294546(0x1dc)](_0x324693)&&_0x551cb7[_0x294546(0x26f)]({'path':_0x137a62+_0x294546(0x2a7),'message':'Unsupported\x20approval\x20mode:\x20'+String(_0x324693)+'.'});if(!isRecord(_0xa7bb77[_0x294546(0x2ed)]))_0x551cb7[_0x294546(0x26f)]({'path':_0x137a62+_0x294546(0x2de),'message':_0x294546(0x28f)});else{const _0x50b931=_0xa7bb77[_0x294546(0x2ed)][_0x294546(0x1da)];_0x50b931!==_0x294546(0x320)&&_0x50b931!==_0x294546(0x315)&&_0x551cb7[_0x294546(0x26f)]({'path':_0x137a62+_0x294546(0x1de),'message':_0x294546(0x234)});if(_0x50b931===_0x294546(0x320)){const _0x40d870=_0xa7bb77[_0x294546(0x2ed)]['userIds'];if(!Array[_0x294546(0x2b5)](_0x40d870)||_0x40d870[_0x294546(0x2ef)]===0x0)_0x551cb7[_0x294546(0x26f)]({'path':_0x137a62+_0x294546(0x317),'message':_0x294546(0x1dd)});else{const _0x1b6f55=_0x40d870['findIndex'](_0x530326=>!isValidUserId(_0x530326));_0x1b6f55>=0x0&&_0x551cb7[_0x294546(0x26f)]({'path':_0x137a62+'.assignee.userIds['+_0x1b6f55+']','message':_0x294546(0x22a)});const _0x277fad=new Set(_0x40d870[_0x294546(0x204)](isValidUserId)[_0x294546(0x24b)](_0x141067=>String(_0x141067)['trim']()));_0x324693===_0x294546(0x279)&&_0x277fad['size']>0x1&&_0x551cb7['push']({'path':_0x137a62+_0x294546(0x317),'message':_0x294546(0x200)});}}if(_0x50b931==='ROLE'){const _0x3012a6=_0xa7bb77[_0x294546(0x2ed)]['roleId'],_0x383583=typeof _0x3012a6==='number'||typeof _0x3012a6===_0x294546(0x30c)?Number(String(_0x3012a6)[_0x294546(0x253)]()):Number[_0x294546(0x305)];(!Number['isSafeInteger'](_0x383583)||_0x383583<=0x0)&&_0x551cb7[_0x294546(0x26f)]({'path':_0x137a62+_0x294546(0x2e8),'message':'ROLE\x20assignee\x20requires\x20a\x20positive\x20integer\x20roleId.'});}}if(_0xa7bb77['transferCandidates']!==undefined){if(!isRecord(_0xa7bb77[_0x294546(0x25b)]))_0x551cb7['push']({'path':_0x137a62+_0x294546(0x270),'message':'transferCandidates\x20must\x20be\x20an\x20object.'});else{if(_0xa7bb77[_0x294546(0x25b)][_0x294546(0x1da)]!=='FIXED')_0x551cb7[_0x294546(0x26f)]({'path':_0x137a62+_0x294546(0x1d1),'message':_0x294546(0x1ed)});else{const _0x3b0f9e=_0xa7bb77[_0x294546(0x25b)][_0x294546(0x2b9)];if(!Array['isArray'](_0x3b0f9e)||_0x3b0f9e[_0x294546(0x2ef)]===0x0)_0x551cb7[_0x294546(0x26f)]({'path':_0x137a62+'.transferCandidates.userIds','message':_0x294546(0x2c6)});else{const _0x4a2b16=_0x3b0f9e[_0x294546(0x24c)](_0x166735=>!isValidUserId(_0x166735));_0x4a2b16>=0x0&&_0x551cb7['push']({'path':_0x137a62+'.transferCandidates.userIds['+_0x4a2b16+']','message':_0x294546(0x2b1)});}}}}}_0xa7bb77['sequential']!==undefined&&typeof _0xa7bb77[_0x294546(0x29c)]!==_0x294546(0x228)&&_0x551cb7[_0x294546(0x26f)]({'path':_0x137a62+_0x294546(0x2c3),'message':'sequential\x20must\x20be\x20a\x20boolean.'});if(_0xa7bb77[_0x294546(0x2c1)]===_0x294546(0x2a9)){(typeof _0xa7bb77[_0x294546(0x289)]!==_0x294546(0x30c)||_0xa7bb77['scriptName'][_0x294546(0x253)]()==='')&&_0x551cb7[_0x294546(0x26f)]({'path':_0x137a62+'.scriptName','message':_0x294546(0x1f0)});if(_0xa7bb77[_0x294546(0x252)]!==undefined){if(typeof _0xa7bb77[_0x294546(0x252)]!==_0x294546(0x30c)||!VARIABLE_PATTERN[_0x294546(0x2be)](_0xa7bb77[_0x294546(0x252)]))_0x551cb7['push']({'path':_0x137a62+_0x294546(0x21d),'message':_0x294546(0x214)});else(RESERVED_RESULT_VARIABLES[_0x294546(0x1dc)](_0xa7bb77[_0x294546(0x252)])||_0xa7bb77[_0x294546(0x252)][_0x294546(0x25d)](_0x294546(0x2c5)))&&_0x551cb7['push']({'path':_0x137a62+_0x294546(0x21d),'message':_0x294546(0x1d3)+_0xa7bb77[_0x294546(0x252)]+'.'});}}validateAsyncExecution(_0xa7bb77,_0x137a62,_0x551cb7),validateApprovalTimeout(_0xa7bb77,_0x137a62,_0x551cb7),validateCcConfig(_0xa7bb77,_0x137a62,_0x551cb7),_0xa7bb77[_0x294546(0x2c1)]===_0x294546(0x1cc)&&validateNotificationConfig(_0xa7bb77[_0x294546(0x2cf)],_0x137a62+_0x294546(0x207),_0x551cb7);}function validateAsyncExecution(_0x1fd4e8,_0x19da76,_0x5c9067){const _0x54a554=a281_0x17c8d0;if(_0x1fd4e8[_0x54a554(0x23d)]===undefined)return;if(!isRecord(_0x1fd4e8[_0x54a554(0x23d)])){_0x5c9067[_0x54a554(0x26f)]({'path':_0x19da76+'.async','message':'async\x20must\x20be\x20an\x20object.'});return;}if(_0x1fd4e8[_0x54a554(0x23d)][_0x54a554(0x1d6)]!==undefined&&typeof _0x1fd4e8[_0x54a554(0x23d)]['enabled']!==_0x54a554(0x228)){_0x5c9067['push']({'path':_0x19da76+'.async.enabled','message':_0x54a554(0x2cb)});return;}if(_0x1fd4e8['async'][_0x54a554(0x1d6)]!==!![])return;_0x1fd4e8['type']!==_0x54a554(0x2a9)&&_0x5c9067[_0x54a554(0x26f)]({'path':_0x19da76+_0x54a554(0x1d2),'message':_0x54a554(0x254)});const _0x5559ed=_0x1fd4e8[_0x54a554(0x23d)][_0x54a554(0x2f2)]??0x3;(!Number[_0x54a554(0x259)](_0x5559ed)||_0x5559ed<0x1||_0x5559ed>MAX_ASYNC_RETRY_COUNT)&&_0x5c9067[_0x54a554(0x26f)]({'path':_0x19da76+_0x54a554(0x209),'message':_0x54a554(0x2d5)+MAX_ASYNC_RETRY_COUNT+'.'}),_0x1fd4e8[_0x54a554(0x23d)][_0x54a554(0x2f5)]!==undefined&&validateTimeAmount(_0x1fd4e8[_0x54a554(0x23d)][_0x54a554(0x2f5)],_0x19da76+_0x54a554(0x275),_0x5c9067);}function validateApprovalTimeout(_0x1c6917,_0x2f1910,_0x438ed9){const _0x555c0e=a281_0x17c8d0;if(_0x1c6917[_0x555c0e(0x20e)]===undefined)return;if(!isRecord(_0x1c6917[_0x555c0e(0x20e)])){_0x438ed9[_0x555c0e(0x26f)]({'path':_0x2f1910+_0x555c0e(0x2d1),'message':_0x555c0e(0x2fe)});return;}if(_0x1c6917[_0x555c0e(0x20e)][_0x555c0e(0x1d6)]!==undefined&&typeof _0x1c6917[_0x555c0e(0x20e)][_0x555c0e(0x1d6)]!==_0x555c0e(0x228)){_0x438ed9[_0x555c0e(0x26f)]({'path':_0x2f1910+_0x555c0e(0x1cd),'message':_0x555c0e(0x2d3)});return;}if(_0x1c6917[_0x555c0e(0x20e)][_0x555c0e(0x1d6)]!==!![])return;if(_0x1c6917[_0x555c0e(0x20e)][_0x555c0e(0x2d4)]!==undefined&&typeof _0x1c6917[_0x555c0e(0x20e)][_0x555c0e(0x2d4)]!==_0x555c0e(0x228)){_0x438ed9['push']({'path':_0x2f1910+_0x555c0e(0x1f4),'message':_0x555c0e(0x309)});return;}_0x1c6917[_0x555c0e(0x2c1)]!==_0x555c0e(0x31b)&&_0x438ed9[_0x555c0e(0x26f)]({'path':_0x2f1910+_0x555c0e(0x2d1),'message':_0x555c0e(0x2c7)});validateTimeAmount(_0x1c6917['timeout'][_0x555c0e(0x25a)],_0x2f1910+_0x555c0e(0x23b),_0x438ed9);const _0x4180e6=_0x1c6917[_0x555c0e(0x20e)][_0x555c0e(0x2f9)];if(!APPROVAL_TIMEOUT_ACTIONS['has'](_0x4180e6)){_0x438ed9['push']({'path':_0x2f1910+'.timeout.action','message':_0x555c0e(0x2bf)});return;}(_0x1c6917['taskMode']??_0x555c0e(0x31b))===_0x555c0e(0x299)&&_0x4180e6!==_0x555c0e(0x2ba)&&_0x438ed9[_0x555c0e(0x26f)]({'path':_0x2f1910+_0x555c0e(0x30d),'message':'HANDLE\x20task\x20timeout\x20only\x20supports\x20EXECUTE_BFF.'});const _0x4f5ba5=_0x1c6917[_0x555c0e(0x20e)]['interrupting']??_0x4180e6!=='EXECUTE_BFF';if(_0x4180e6==='EXECUTE_BFF')_0x4f5ba5&&_0x438ed9[_0x555c0e(0x26f)]({'path':_0x2f1910+_0x555c0e(0x1f4),'message':_0x555c0e(0x2cd)}),(typeof _0x1c6917[_0x555c0e(0x20e)][_0x555c0e(0x289)]!=='string'||_0x1c6917[_0x555c0e(0x20e)][_0x555c0e(0x289)][_0x555c0e(0x253)]()==='')&&_0x438ed9[_0x555c0e(0x26f)]({'path':_0x2f1910+_0x555c0e(0x303),'message':_0x555c0e(0x2a0)}),validateOptionalResultVariable(_0x1c6917['timeout'][_0x555c0e(0x252)],_0x2f1910+_0x555c0e(0x2ac),_0x438ed9);else!_0x4f5ba5&&_0x438ed9['push']({'path':_0x2f1910+_0x555c0e(0x1f4),'message':_0x4180e6+_0x555c0e(0x267)});}function validateTimeAmount(_0x1e1917,_0x294e78,_0xcbc961){const _0x354bea=a281_0x17c8d0;if(!isRecord(_0x1e1917)){_0xcbc961[_0x354bea(0x26f)]({'path':_0x294e78,'message':_0x354bea(0x247)});return;}(!Number[_0x354bea(0x259)](_0x1e1917[_0x354bea(0x205)])||Number(_0x1e1917[_0x354bea(0x205)])<=0x0)&&_0xcbc961[_0x354bea(0x26f)]({'path':_0x294e78+'.value','message':'duration\x20value\x20must\x20be\x20a\x20positive\x20integer.'}),!FLOW_TIME_UNITS['has'](_0x1e1917[_0x354bea(0x22e)])&&_0xcbc961[_0x354bea(0x26f)]({'path':_0x294e78+_0x354bea(0x2e6),'message':'duration\x20unit\x20must\x20be\x20SECONDS,\x20MINUTES,\x20HOURS,\x20or\x20DAYS.'});}function validateOptionalResultVariable(_0x15012b,_0xd0c448,_0x3a96cf){const _0x3a4311=a281_0x17c8d0;if(_0x15012b===undefined||_0x15012b===null||_0x15012b==='')return;if(typeof _0x15012b!==_0x3a4311(0x30c)||!VARIABLE_PATTERN['test'](_0x15012b))_0x3a96cf['push']({'path':_0xd0c448,'message':_0x3a4311(0x214)});else(RESERVED_RESULT_VARIABLES[_0x3a4311(0x1dc)](_0x15012b)||_0x15012b[_0x3a4311(0x25d)](_0x3a4311(0x2c5)))&&_0x3a96cf[_0x3a4311(0x26f)]({'path':_0xd0c448,'message':'Reserved\x20resultVariable:\x20'+_0x15012b+'.'});}function validateCcConfig(_0x696d8e,_0x54d273,_0x5a685a){const _0x1ada58=a281_0x17c8d0;if(_0x696d8e['cc']===undefined)return;if(!isRecord(_0x696d8e['cc'])){_0x5a685a[_0x1ada58(0x26f)]({'path':_0x54d273+_0x1ada58(0x298),'message':_0x1ada58(0x249)});return;}_0x696d8e[_0x1ada58(0x2c1)]!=='END'&&_0x696d8e['type']!==_0x1ada58(0x31b)&&_0x5a685a[_0x1ada58(0x26f)]({'path':_0x54d273+_0x1ada58(0x298),'message':_0x1ada58(0x1cf)});Object['prototype'][_0x1ada58(0x328)][_0x1ada58(0x265)](_0x696d8e['cc'],_0x1ada58(0x286))&&_0x5a685a[_0x1ada58(0x26f)]({'path':_0x54d273+_0x1ada58(0x290),'message':UNSUPPORTED_FORM_MESSAGE});const _0x198879=_0x696d8e['cc']['recipientUserIds'];if(!Array['isArray'](_0x198879)||_0x198879[_0x1ada58(0x2ef)]===0x0)_0x5a685a[_0x1ada58(0x26f)]({'path':_0x54d273+_0x1ada58(0x1f6),'message':_0x1ada58(0x1fb)});else{_0x198879[_0x1ada58(0x2ef)]>MAX_CC_RECIPIENTS&&_0x5a685a[_0x1ada58(0x26f)]({'path':_0x54d273+_0x1ada58(0x1f6),'message':'cc.recipientUserIds\x20supports\x20at\x20most\x20'+MAX_CC_RECIPIENTS+_0x1ada58(0x1d7)});const _0x358d8c=new Set();_0x198879['forEach']((_0x44e57d,_0x531a81)=>{const _0x195fa1=_0x1ada58;if(typeof _0x44e57d!=='string'||_0x44e57d[_0x195fa1(0x253)]()==='')_0x5a685a[_0x195fa1(0x26f)]({'path':_0x54d273+_0x195fa1(0x2a1)+_0x531a81+']','message':_0x195fa1(0x1ec)});else _0x358d8c['has'](_0x44e57d[_0x195fa1(0x253)]())?_0x5a685a[_0x195fa1(0x26f)]({'path':_0x54d273+_0x195fa1(0x2a1)+_0x531a81+']','message':'Duplicate\x20cc\x20recipient\x20userId:\x20'+_0x44e57d[_0x195fa1(0x253)]()+'.'}):_0x358d8c[_0x195fa1(0x301)](_0x44e57d[_0x195fa1(0x253)]());});}validateStringArray(_0x696d8e['cc'][_0x1ada58(0x220)],_0x54d273+_0x1ada58(0x22c),_0x5a685a);}function validateStringArray(_0x486ab0,_0x26b630,_0x2506b6){const _0x90ef61=a281_0x17c8d0;if(_0x486ab0===undefined)return;if(!Array[_0x90ef61(0x2b5)](_0x486ab0)){_0x2506b6[_0x90ef61(0x26f)]({'path':_0x26b630,'message':_0x90ef61(0x1d0)});return;}const _0x5116c2=new Set();_0x486ab0[_0x90ef61(0x2e9)]((_0x298b0b,_0x33a115)=>{const _0x2a2dd0=_0x90ef61;if(typeof _0x298b0b!==_0x2a2dd0(0x30c)||_0x298b0b[_0x2a2dd0(0x253)]()==='')_0x2506b6[_0x2a2dd0(0x26f)]({'path':_0x26b630+'['+_0x33a115+']','message':_0x2a2dd0(0x266)});else _0x5116c2[_0x2a2dd0(0x1dc)](_0x298b0b[_0x2a2dd0(0x253)]())?_0x2506b6['push']({'path':_0x26b630+'['+_0x33a115+']','message':_0x2a2dd0(0x1e1)+_0x298b0b['trim']()+'.'}):_0x5116c2['add'](_0x298b0b[_0x2a2dd0(0x253)]());});}function validateNotificationConfig(_0x1da4b8,_0xfcc891,_0x50328a){const _0x2d8cb0=a281_0x17c8d0;if(!isRecord(_0x1da4b8)){_0x50328a['push']({'path':_0xfcc891,'message':_0x2d8cb0(0x1ff)});return;}if(_0x1da4b8[_0x2d8cb0(0x27c)]!==undefined&&_0x1da4b8['version']!==null){if(typeof _0x1da4b8[_0x2d8cb0(0x27c)]!==_0x2d8cb0(0x30c))_0x50328a['push']({'path':_0xfcc891+'.version','message':_0x2d8cb0(0x2da)});else _0x1da4b8[_0x2d8cb0(0x27c)][_0x2d8cb0(0x253)]()&&_0x1da4b8['version'][_0x2d8cb0(0x253)]()!=='v1'&&_0x50328a[_0x2d8cb0(0x26f)]({'path':_0xfcc891+'.version','message':_0x2d8cb0(0x31f)+_0x1da4b8[_0x2d8cb0(0x27c)]+'.'});}const _0x567f59=requireNotificationString(_0x1da4b8['configCode'],_0xfcc891+_0x2d8cb0(0x23a),_0x2d8cb0(0x28c),_0x50328a);_0x567f59?.['includes']('${')&&_0x50328a[_0x2d8cb0(0x26f)]({'path':_0xfcc891+_0x2d8cb0(0x23a),'message':_0x2d8cb0(0x242)});if(_0x1da4b8[_0x2d8cb0(0x2e5)]!==undefined&&_0x1da4b8['failurePolicy']!==null){if(typeof _0x1da4b8['failurePolicy']!==_0x2d8cb0(0x30c))_0x50328a[_0x2d8cb0(0x26f)]({'path':_0xfcc891+_0x2d8cb0(0x26b),'message':'failurePolicy\x20must\x20be\x20a\x20string.'});else!NOTIFICATION_FAILURE_POLICIES[_0x2d8cb0(0x1dc)](_0x1da4b8[_0x2d8cb0(0x2e5)]['trim']()[_0x2d8cb0(0x1fa)]())&&_0x50328a['push']({'path':_0xfcc891+_0x2d8cb0(0x26b),'message':'failurePolicy\x20must\x20be\x20CONTINUE\x20or\x20FAIL.'});}!isRecord(_0x1da4b8[_0x2d8cb0(0x311)])?_0x50328a['push']({'path':_0xfcc891+_0x2d8cb0(0x25f),'message':_0x2d8cb0(0x245)}):validateNotificationTemplate(_0x1da4b8['template'],_0xfcc891+'.template',_0x50328a),validateNotificationRecipients(_0x1da4b8[_0x2d8cb0(0x23f)],_0xfcc891+'.recipients',_0x50328a);}function validateNotificationTemplate(_0x2ef6b5,_0x236f5e,_0x235837){const _0x44efd2=a281_0x17c8d0;for(const _0x5ab6ac of[_0x44efd2(0x293),_0x44efd2(0x264)]){const _0x3414e2=requireNotificationString(_0x2ef6b5[_0x5ab6ac],_0x236f5e+'.'+_0x5ab6ac,_0x44efd2(0x1ce)+_0x5ab6ac+_0x44efd2(0x278),_0x235837);if(_0x3414e2)validateNotificationPlaceholders(_0x3414e2,_0x236f5e+'.'+_0x5ab6ac,_0x235837);}_0x2ef6b5['detailMarkdown']!==undefined&&_0x2ef6b5[_0x44efd2(0x2b2)]!==null&&(typeof _0x2ef6b5[_0x44efd2(0x2b2)]!==_0x44efd2(0x30c)?_0x235837[_0x44efd2(0x26f)]({'path':_0x236f5e+'.detailMarkdown','message':_0x44efd2(0x248)}):validateNotificationPlaceholders(_0x2ef6b5[_0x44efd2(0x2b2)],_0x236f5e+_0x44efd2(0x26d),_0x235837)),validateNotificationFacts(_0x2ef6b5['facts'],_0x236f5e+'.facts',_0x235837),validateNotificationActions(_0x2ef6b5[_0x44efd2(0x321)],_0x236f5e+_0x44efd2(0x2a5),_0x235837);}function validateNotificationFacts(_0x3d6cef,_0x27f754,_0xd6eb67){const _0x3955ed=a281_0x17c8d0;if(_0x3d6cef===undefined||_0x3d6cef===null)return;if(!Array[_0x3955ed(0x2b5)](_0x3d6cef)){_0xd6eb67['push']({'path':_0x27f754,'message':_0x3955ed(0x297)});return;}_0x3d6cef[_0x3955ed(0x2ef)]>MAX_NOTIFICATION_FACTS&&_0xd6eb67['push']({'path':_0x27f754,'message':_0x3955ed(0x1e3)+MAX_NOTIFICATION_FACTS+'\x20facts.'}),_0x3d6cef[_0x3955ed(0x2e9)]((_0x2c6deb,_0x5b8dc4)=>{const _0x32a25b=_0x3955ed,_0x2f9de3=_0x27f754+'['+_0x5b8dc4+']';if(!isRecord(_0x2c6deb)){_0xd6eb67[_0x32a25b(0x26f)]({'path':_0x2f9de3,'message':_0x32a25b(0x25e)});return;}for(const _0x275594 of[_0x32a25b(0x1d9),'value']){const _0x45ad48=requireNotificationString(_0x2c6deb[_0x275594],_0x2f9de3+'.'+_0x275594,'Notification\x20fact.'+_0x275594+'\x20is\x20required.',_0xd6eb67);_0x45ad48&&validateNotificationPlaceholders(_0x45ad48,_0x2f9de3+'.'+_0x275594,_0xd6eb67);}});}function validateNotificationActions(_0x51b80c,_0x1d2423,_0xc407e3){const _0x3496c4=a281_0x17c8d0;if(_0x51b80c===undefined||_0x51b80c===null)return;if(!Array[_0x3496c4(0x2b5)](_0x51b80c)){_0xc407e3['push']({'path':_0x1d2423,'message':_0x3496c4(0x1cb)});return;}_0x51b80c['length']>MAX_NOTIFICATION_ACTIONS&&_0xc407e3['push']({'path':_0x1d2423,'message':_0x3496c4(0x1e3)+MAX_NOTIFICATION_ACTIONS+_0x3496c4(0x239)}),_0x51b80c[_0x3496c4(0x2e9)]((_0x56720d,_0x17ff35)=>{const _0x18e76f=_0x3496c4,_0x4b26a1=_0x1d2423+'['+_0x17ff35+']';if(!isRecord(_0x56720d)){_0xc407e3[_0x18e76f(0x26f)]({'path':_0x4b26a1,'message':_0x18e76f(0x2d8)});return;}const _0xffa3a4=requireNotificationString(_0x56720d['text'],_0x4b26a1+'.text',_0x18e76f(0x1e2),_0xc407e3);if(_0xffa3a4)validateNotificationPlaceholders(_0xffa3a4,_0x4b26a1+'.text',_0xc407e3);const _0x3d160c=requireNotificationString(_0x56720d[_0x18e76f(0x2ce)],_0x4b26a1+'.url',_0x18e76f(0x312),_0xc407e3);if(!_0x3d160c)return;validateNotificationPlaceholders(_0x3d160c,_0x4b26a1+_0x18e76f(0x29f),_0xc407e3),!/^https?:\/\//i[_0x18e76f(0x2be)](_0x3d160c)&&!NOTIFICATION_ACTION_URL_PLACEHOLDER_PATTERN[_0x18e76f(0x2be)](_0x3d160c)&&_0xc407e3['push']({'path':_0x4b26a1+'.url','message':_0x18e76f(0x2e2)});});}function validateNotificationRecipients(_0xde3dc9,_0x5393f,_0x38be5f){const _0x52750c=a281_0x17c8d0;if(_0xde3dc9===undefined||_0xde3dc9===null)return;if(!Array['isArray'](_0xde3dc9)){_0x38be5f[_0x52750c(0x26f)]({'path':_0x5393f,'message':'Notification\x20recipients\x20must\x20be\x20an\x20array.'});return;}let _0x1b5efd=![];_0xde3dc9[_0x52750c(0x2e9)]((_0x276f30,_0x34cb4e)=>{const _0x479d03=_0x52750c,_0x312090=_0x5393f+'['+_0x34cb4e+']';if(!isRecord(_0x276f30)){_0x38be5f[_0x479d03(0x26f)]({'path':_0x312090,'message':'Notification\x20recipient\x20must\x20be\x20an\x20object.'});return;}const _0x41730f=requireNotificationString(_0x276f30[_0x479d03(0x2c1)],_0x312090+_0x479d03(0x2ff),_0x479d03(0x292),_0x38be5f);_0x41730f&&!NOTIFICATION_RECIPIENT_TYPES[_0x479d03(0x1dc)](_0x41730f[_0x479d03(0x1fa)]())&&_0x38be5f[_0x479d03(0x26f)]({'path':_0x312090+_0x479d03(0x2ff),'message':_0x479d03(0x31e)});let _0xadaf86='TO';_0x276f30[_0x479d03(0x1fc)]!==undefined&&_0x276f30[_0x479d03(0x1fc)]!==null&&(typeof _0x276f30[_0x479d03(0x1fc)]!==_0x479d03(0x30c)?(_0x38be5f[_0x479d03(0x26f)]({'path':_0x312090+_0x479d03(0x213),'message':'Notification\x20recipient.role\x20must\x20be\x20a\x20string.'}),_0xadaf86=''):(_0xadaf86=_0x276f30['role']['trim']()[_0x479d03(0x1fa)](),!NOTIFICATION_RECIPIENT_ROLES[_0x479d03(0x1dc)](_0xadaf86)&&_0x38be5f[_0x479d03(0x26f)]({'path':_0x312090+'.role','message':_0x479d03(0x29a)})));if(_0xadaf86==='TO')_0x1b5efd=!![];const _0x86c5df=requireNotificationString(_0x276f30[_0x479d03(0x205)],_0x312090+_0x479d03(0x26c),_0x479d03(0x235),_0x38be5f);_0x86c5df&&validateNotificationPlaceholders(_0x86c5df,_0x312090+_0x479d03(0x26c),_0x38be5f);}),_0xde3dc9[_0x52750c(0x2ef)]>0x0&&!_0x1b5efd&&_0x38be5f['push']({'path':_0x5393f,'message':_0x52750c(0x283)});}function requireNotificationString(_0x49a298,_0x38b3bf,_0x3e49bb,_0x1f78ea){const _0x219944=a281_0x17c8d0;if(typeof _0x49a298!==_0x219944(0x30c)||_0x49a298[_0x219944(0x253)]()==='')return _0x1f78ea[_0x219944(0x26f)]({'path':_0x38b3bf,'message':_0x3e49bb}),undefined;return _0x49a298[_0x219944(0x253)]();}function validateNotificationPlaceholders(_0x4d2951,_0x52a34c,_0x51e3df){const _0x292254=a281_0x17c8d0;for(const _0x568b6e of _0x4d2951['matchAll'](NOTIFICATION_PLACEHOLDER_PATTERN)){const _0x3d1a46=_0x568b6e[0x1]?.['trim']()??'',_0x313106=_0x3d1a46[_0x292254(0x206)]('.'),_0x55fc32=_0x313106>=0x0?_0x3d1a46[_0x292254(0x2b8)](0x0,_0x313106):_0x3d1a46,_0x2a097c=_0x313106>=0x0?_0x3d1a46['slice'](_0x313106+0x1)['trim']():'';(![_0x292254(0x319),_0x292254(0x1ef),'variables'][_0x292254(0x2c8)](_0x55fc32)||_0x2a097c==='')&&_0x51e3df[_0x292254(0x26f)]({'path':_0x52a34c,'message':_0x292254(0x2c0)+_0x568b6e[0x0]+'.'});}_0x4d2951[_0x292254(0x2d7)](NOTIFICATION_PLACEHOLDER_PATTERN,'')['includes']('${')&&_0x51e3df[_0x292254(0x26f)]({'path':_0x52a34c,'message':_0x292254(0x2e3)});}function validateEdge(_0x4f68d6,_0x3bb1a1,_0x1b07fc){const _0x59550b=a281_0x17c8d0;_0x4f68d6[_0x59550b(0x28d)]!==undefined&&typeof _0x4f68d6['name']!==_0x59550b(0x30c)&&_0x1b07fc[_0x59550b(0x26f)]({'path':_0x3bb1a1+_0x59550b(0x1db),'message':_0x59550b(0x250)}),_0x4f68d6['defaultFlow']!==undefined&&typeof _0x4f68d6['defaultFlow']!=='boolean'&&_0x1b07fc[_0x59550b(0x26f)]({'path':_0x3bb1a1+_0x59550b(0x285),'message':_0x59550b(0x21c)}),_0x4f68d6[_0x59550b(0x280)]!==undefined&&(!Array[_0x59550b(0x2b5)](_0x4f68d6[_0x59550b(0x280)])?_0x1b07fc[_0x59550b(0x26f)]({'path':_0x3bb1a1+_0x59550b(0x27b),'message':'waypoints\x20must\x20be\x20an\x20array.'}):_0x4f68d6[_0x59550b(0x280)]['forEach']((_0x422a07,_0x39192e)=>{const _0x2144f8=_0x59550b;if(!isRecord(_0x422a07)){_0x1b07fc[_0x2144f8(0x26f)]({'path':_0x3bb1a1+'.waypoints['+_0x39192e+']','message':_0x2144f8(0x30a)});return;}for(const _0x52ee02 of['x','y']){const _0x101141=_0x422a07[_0x52ee02];(typeof _0x101141!==_0x2144f8(0x246)||!Number[_0x2144f8(0x236)](_0x101141))&&_0x1b07fc[_0x2144f8(0x26f)]({'path':_0x3bb1a1+'.waypoints['+_0x39192e+'].'+_0x52ee02,'message':_0x2144f8(0x1ca)+_0x52ee02+_0x2144f8(0x300)});}})),_0x4f68d6[_0x59550b(0x1f7)]!==undefined&&!CONDITION_TYPES[_0x59550b(0x1dc)](_0x4f68d6[_0x59550b(0x1f7)])&&_0x1b07fc[_0x59550b(0x26f)]({'path':_0x3bb1a1+_0x59550b(0x27d),'message':_0x59550b(0x1e0)+String(_0x4f68d6[_0x59550b(0x1f7)])+'.'}),_0x4f68d6[_0x59550b(0x1f7)]===_0x59550b(0x22f)&&(typeof _0x4f68d6['expression']!==_0x59550b(0x30c)||_0x4f68d6['expression'][_0x59550b(0x253)]()==='')&&_0x1b07fc[_0x59550b(0x26f)]({'path':_0x3bb1a1+_0x59550b(0x2c2),'message':_0x59550b(0x318)}),_0x4f68d6[_0x59550b(0x21f)]===!![]&&_0x4f68d6['conditionType']!=='ALWAYS'&&_0x1b07fc['push']({'path':_0x3bb1a1+_0x59550b(0x285),'message':'A\x20default\x20flow\x20must\x20use\x20conditionType\x20ALWAYS.'}),_0x4f68d6[_0x59550b(0x21f)]===!![]&&typeof _0x4f68d6[_0x59550b(0x1f9)]===_0x59550b(0x30c)&&_0x4f68d6[_0x59550b(0x1f9)]['trim']()!==''&&_0x1b07fc['push']({'path':_0x3bb1a1+_0x59550b(0x2c2),'message':_0x59550b(0x2b7)});}function a281_0x5028(){const _0x529848=['value','indexOf','.config','AUTO_APPROVE','.async.retryCount','configCode','set','approval_sys_processInstanceId','APPROVED','timeout','.source','mode','approval_sys_initiatorUserId','nodes','.role','resultVariable\x20must\x20match\x20[A-Za-z_][A-Za-z0-9_]*.','some','stringify','flowName','DAYS','(?<![A-Za-z0-9_])','flowType\x20is\x20required.','formData','defaultFlow\x20must\x20be\x20a\x20boolean.','.resultVariable','Accepted\x20as\x20legacy\x20input\x20and\x20removed\x20during\x20normalization;\x20other\x20versions\x20are\x20unsupported.','defaultFlow','visible','CONDITION','Node\x20has\x20no\x20incoming\x20edge.','flowJson.nodes.','Unsupported\x20node\x20type:\x20','Duplicate\x20resultVariable:\x20','Every\x20node\x20requires\x20position.x\x20and\x20position.y.','node\x20pageId\x20is\x20supported\x20only\x20on\x20APPROVAL\x20user\x20tasks.','boolean','flowDesc\x20must\x20be\x20a\x20string.','fixed\x20assignee\x20userId\x20must\x20be\x20a\x20non-empty\x20string\x20or\x20positive\x20integer.','Unsupported\x20task\x20mode:\x20','.cc.visible','1041908helcBS','unit','EXPRESSION','INDEPENDENT_FLOW','Node\x20cannot\x20reach\x20any\x20END.','pageId','114VdxHcA','assignee.strategy\x20must\x20be\x20FIXED\x20or\x20ROLE.','Notification\x20recipient.value\x20is\x20required.','isFinite','Edge\x20source\x20node\x20not\x20found:\x20','approval_sys_appCode','\x20actions.','.configCode','.timeout.duration','.\x20This\x20CLI\x20supports\x20only\x20','async','HANDLE\x20task\x20requires\x20exactly\x20one\x20outgoing\x20edge.','recipients','flowJson.','edge\x20source\x20is\x20required.','Notification\x20configCode\x20must\x20be\x20a\x20fixed\x20value.','\x20must\x20be\x20a\x20finite\x20number\x20greater\x20than\x20or\x20equal\x20to\x200.','size','NOTIFICATION\x20node\x20requires\x20template.','number','duration\x20requires\x20value\x20and\x20unit.','Notification\x20template.detailMarkdown\x20must\x20be\x20a\x20string.','cc\x20must\x20be\x20an\x20object.','prototype','map','findIndex','edges','flowJson','__rabetbase_local_validation__','edge\x20name\x20must\x20be\x20a\x20string.','position.','resultVariable','trim','async\x20execution\x20is\x20only\x20supported\x20by\x20SCRIPT\x20node.','flowJson.edges[','Expression\x20references\x20SCRIPT\x20resultVariable\x20','flowName\x20is\x20required.','^[A-Za-z_][A-Za-z0-9_]*$','isInteger','duration','transferCandidates','formPermission','startsWith','Notification\x20fact\x20must\x20be\x20an\x20object.','.template','469040YBUGQU','.position.','\x20value\x20and\x20was\x20removed\x20from\x20the\x20portable\x20FlowConfig.','SECONDS','summary','call','value\x20must\x20be\x20a\x20non-empty\x20string.','\x20timeout\x20must\x20interrupt\x20the\x20approval\x20task.','APPROVAL\x20node\x20outgoing\x20edges\x20must\x20use\x20APPROVED\x20or\x20REJECTED.','PLATFORM_FORM','9066990sOKyND','.failurePolicy','.value','.detailMarkdown','(?![A-Za-z0-9_])','push','.transferCandidates','ALL','#/$defs/timeAmount','CONDITION\x20node\x20requires\x20exactly\x20one\x20default\x20outgoing\x20edge.','HOURS','.async.retryInterval','Node\x20is\x20not\x20reachable\x20from\x20START.','flowType','\x20is\x20required.','SINGLE','END\x20node\x20must\x20not\x20have\x20outgoing\x20edges.','.waypoints','version','.conditionType','\x20was\x20empty\x20and\x20was\x20removed.','approval_sys_initiatorUsername','waypoints','approval_sys_operationType','scriptResult','Explicit\x20notification\x20recipients\x20require\x20at\x20least\x20one\x20TO.','datasetCode','.defaultFlow','readSources','Every\x20node\x20requires\x20a\x20non-empty\x20name.','Rabetbase\x20FlowConfig','scriptName','ALWAYS','flowJson.schemaVersion','Notification\x20configCode\x20is\x20required.','name','\x20is\x20not\x20part\x20of\x20the\x20portable\x20FlowConfig\x20and\x20was\x20removed.','APPROVAL\x20node\x20requires\x20assignee.','.cc.readSources','formSchema','Notification\x20recipient.type\x20is\x20required.','title','].taskMode','Duplicate\x20node\x20id:\x20','taskMode','Notification\x20template.facts\x20must\x20be\x20an\x20array.','.cc','HANDLE','Notification\x20recipient.role\x20must\x20be\x20TO,\x20CC,\x20or\x20BCC.','legacy_field_removed','sequential','#/$defs/userId','9rIEwCC','.url','EXECUTE_BFF\x20timeout\x20requires\x20scriptName.','.cc.recipientUserIds[','utf8','CONDITION\x20non-default\x20edge\x20requires\x20a\x20non-empty\x20expression.','approval.simple-flow.v1','.actions','bindDatasetCode','.approvalMode','startPageId\x20must\x20be\x20a\x20positive\x20integer.','SCRIPT','.pageId','target','.timeout.resultVariable','position','CONTINUE','Node\x20has\x20no\x20outgoing\x20edge.','ANY','transfer\x20candidate\x20userId\x20must\x20be\x20a\x20non-empty\x20string\x20or\x20positive\x20integer.','detailMarkdown','flowJson.pageMode','form','isArray','.position','A\x20default\x20flow\x20must\x20not\x20have\x20an\x20expression.','slice','userIds','EXECUTE_BFF','CONDITION\x20non-default\x20edge\x20must\x20use\x20conditionType\x20EXPRESSION.','node\x20pageId\x20applies\x20only\x20to\x20INDEPENDENT_FLOW\x20with\x20CUSTOM_PAGE.','flowDesc','test','timeout.action\x20must\x20be\x20AUTO_APPROVE,\x20AUTO_REJECT,\x20or\x20EXECUTE_BFF.','Unsupported\x20notification\x20placeholder:\x20','type','.expression','.sequential','entries','approval_sys_','FIXED\x20transferCandidates\x20requires\x20non-empty\x20userIds.','timeout\x20is\x20only\x20supported\x20by\x20APPROVAL\x20node.','includes','node\x20must\x20be\x20an\x20object.','60675SYDUcL','async.enabled\x20must\x20be\x20a\x20boolean.','REJECTED','EXECUTE_BFF\x20timeout\x20must\x20not\x20interrupt\x20the\x20approval\x20task.','url','config','metadata','.timeout','1729449yTJnHR','timeout.enabled\x20must\x20be\x20a\x20boolean.','interrupting','SCRIPT\x20async\x20retryCount\x20must\x20be\x20between\x201\x20and\x20','#/$defs/position','replace','Notification\x20action\x20must\x20be\x20an\x20object.','FORM_FLOW','Notification\x20version\x20must\x20be\x20a\x20string.','edge\x20id\x20must\x20match\x20[A-Za-z_][A-Za-z0-9_]*.','flowKey','integer','.assignee','edges\x20must\x20be\x20an\x20array.','pid','node\x20pageId\x20must\x20be\x20a\x20positive\x20integer.','Notification\x20action.url\x20must\x20use\x20http/https\x20or\x20a\x20complete\x20supported\x20placeholder.','Notification\x20text\x20contains\x20a\x20malformed\x20placeholder.','datasetCode\x20must\x20be\x20a\x20string.','failurePolicy','.unit','START\x20node\x20must\x20not\x20have\x20incoming\x20edges.','.assignee.roleId','forEach','formDefinitions','approval_sys_pageId','nodes\x20must\x20be\x20an\x20array.','assignee','approval_sys_datasetCode','length','flowJson.nodes[','Custom\x20form\x20configuration\x20is\x20not\x20supported\x20by\x20this\x20rabetbase\x20version;\x20use\x20a\x20business\x20custom\x20page\x20instead.','retryCount','text','.target','retryInterval','HANDLE\x20task\x20outgoing\x20edge\x20must\x20use\x20ALWAYS\x20without\x20defaultFlow\x20or\x20expression.','Unsupported\x20flowType:\x20','CUSTOM_PAGE','action','flowCode','message','917420rDvHzy','empty_metadata_removed','timeout\x20must\x20be\x20an\x20object.','.type','\x20must\x20be\x20a\x20finite\x20number.','add','approval_sys_dataId','.timeout.scriptName','templateName','NaN','get','flowJson\x20must\x20be\x20an\x20object.','USER','timeout.interrupting\x20must\x20be\x20a\x20boolean.','waypoint\x20must\x20contain\x20numeric\x20x\x20and\x20y\x20coordinates.','appCode','string','.timeout.action','sourceNodeId','START','schemaVersion','template','Notification\x20action.url\x20is\x20required.','https://lovrabet.com/schema/rabetbase-flow-config.json','edge\x20must\x20be\x20an\x20object.','ROLE','INDEPENDENT_FLOW\x20cannot\x20bind\x20datasetCode.','.assignee.userIds','EXPRESSION\x20edge\x20requires\x20expression.','event','APPROVAL\x20task\x20decision\x20edges\x20must\x20not\x20be\x20default\x20flows.','APPROVAL','parse','.tmp','Notification\x20recipient.type\x20must\x20be\x20USER,\x20ROLE,\x20or\x20EMAIL.','Unsupported\x20notification\x20version:\x20','FIXED','actions','isSafeInteger','#/$defs/flowEdge','Duplicate\x20edge\x20route:\x20','PLATFORM_FORM\x20is\x20not\x20supported\x20by\x20this\x20rabetbase\x20version;\x20use\x20INDEPENDENT_FLOW\x20with\x20CUSTOM_PAGE.','flowJson.startPageId','flowJson.nodes','hasOwnProperty','waypoint.','Notification\x20template.actions\x20must\x20be\x20an\x20array.','NOTIFICATION','.timeout.enabled','Notification\x20template.','Default\x20cc\x20is\x20only\x20supported\x20by\x20APPROVAL\x20or\x20END\x20node.','value\x20must\x20be\x20an\x20array.','.transferCandidates.strategy','.async','Reserved\x20resultVariable:\x20','every','2WAwgHk','enabled','\x20users.','keys','label','strategy','.name','has','FIXED\x20assignee\x20requires\x20userIds.','.assignee.strategy','EMAIL','Unsupported\x20condition\x20type:\x20','Duplicate\x20value:\x20','Notification\x20action.text\x20is\x20required.','Notification\x20template\x20supports\x20at\x20most\x20','node\x20id\x20must\x20match\x20[A-Za-z_][A-Za-z0-9_]*.','formPermissions','END','CONDITION\x20default\x20edge\x20must\x20not\x20define\x20expression.','flowJson.edges','AUTO_REJECT','].pageId','1118415tyinku','cc\x20recipient\x20userId\x20must\x20be\x20a\x20non-empty\x20string.','transferCandidates\x20currently\x20supports\x20FIXED\x20only.','source','context','SCRIPT\x20node\x20requires\x20scriptName.','Flow\x20must\x20contain\x20exactly\x20one\x20START\x20node.','array','pageMode','.timeout.interrupting','MINUTES','.cc.recipientUserIds','conditionType','object','expression','toUpperCase','cc.recipientUserIds\x20must\x20be\x20a\x20non-empty\x20array.','role','BCC','.id','NOTIFICATION\x20node\x20requires\x20config.','SINGLE\x20approval\x20supports\x20only\x20one\x20fixed\x20user.','targetNodeId','edge\x20target\x20is\x20required.','CONDITION\x20default\x20edge\x20must\x20use\x20conditionType\x20ALWAYS.','filter'];a281_0x5028=function(){return _0x529848;};return a281_0x5028();}function validateGraphShape(_0x5e279d,_0x252469,_0x14bfc1,_0x2bfc8c,_0x1b89ed,_0x38b1ce,_0x2d951){const _0x4ecf39=a281_0x17c8d0;for(const [_0x17302d,_0xf1efd2]of _0x5e279d){const _0x365f81=_0x1b89ed[_0x4ecf39(0x306)](_0x17302d)??[],_0x1da730=_0x2bfc8c[_0x4ecf39(0x306)](_0x17302d)??[];_0xf1efd2['type']!=='START'&&_0x365f81[_0x4ecf39(0x2ef)]===0x0&&_0x2d951[_0x4ecf39(0x26f)]({'path':_0x4ecf39(0x223)+_0x17302d,'message':_0x4ecf39(0x222)});_0xf1efd2['type']!==_0x4ecf39(0x1e6)&&_0x1da730[_0x4ecf39(0x2ef)]===0x0&&_0x2d951['push']({'path':_0x4ecf39(0x223)+_0x17302d,'message':_0x4ecf39(0x2af)});_0xf1efd2['type']===_0x4ecf39(0x30f)&&_0x365f81[_0x4ecf39(0x2ef)]>0x0&&_0x2d951[_0x4ecf39(0x26f)]({'path':_0x4ecf39(0x223)+_0x17302d,'message':_0x4ecf39(0x2e7)});_0xf1efd2[_0x4ecf39(0x2c1)]==='END'&&_0x1da730[_0x4ecf39(0x2ef)]>0x0&&_0x2d951['push']({'path':_0x4ecf39(0x223)+_0x17302d,'message':_0x4ecf39(0x27a)});if(_0xf1efd2[_0x4ecf39(0x2c1)]===_0x4ecf39(0x221)){_0x1da730[_0x4ecf39(0x2ef)]<0x2&&_0x2d951[_0x4ecf39(0x26f)]({'path':_0x4ecf39(0x223)+_0x17302d,'message':'CONDITION\x20node\x20requires\x20at\x20least\x20two\x20outgoing\x20edges.'});const _0x5bcfb7=_0x1da730[_0x4ecf39(0x204)](_0x59f193=>_0x59f193[_0x4ecf39(0x21f)]===!![]);_0x5bcfb7['length']!==0x1&&_0x2d951[_0x4ecf39(0x26f)]({'path':_0x4ecf39(0x223)+_0x17302d,'message':_0x4ecf39(0x273)});if(_0x5bcfb7[_0x4ecf39(0x2ef)]===0x1){const _0x39a81a=_0x5bcfb7[0x0],_0x20a84e=_0x38b1ce[_0x4ecf39(0x306)](_0x39a81a)??_0x4ecf39(0x1e8);_0x39a81a[_0x4ecf39(0x1f7)]!==_0x4ecf39(0x28a)&&_0x2d951[_0x4ecf39(0x26f)]({'path':_0x20a84e+'.conditionType','message':_0x4ecf39(0x203)});_0x39a81a['expression']!==undefined&&_0x2d951[_0x4ecf39(0x26f)]({'path':_0x20a84e+_0x4ecf39(0x2c2),'message':_0x4ecf39(0x1e7)});for(const _0x319a0c of _0x1da730){if(_0x319a0c===_0x39a81a)continue;const _0x1c6c83=_0x38b1ce[_0x4ecf39(0x306)](_0x319a0c)??_0x4ecf39(0x1e8);if(_0x319a0c['conditionType']!==_0x4ecf39(0x22f))_0x2d951[_0x4ecf39(0x26f)]({'path':_0x1c6c83+_0x4ecf39(0x27d),'message':_0x4ecf39(0x2bb)});else(typeof _0x319a0c[_0x4ecf39(0x1f9)]!==_0x4ecf39(0x30c)||_0x319a0c[_0x4ecf39(0x1f9)][_0x4ecf39(0x253)]()==='')&&_0x2d951[_0x4ecf39(0x26f)]({'path':_0x1c6c83+_0x4ecf39(0x2c2),'message':_0x4ecf39(0x2a3)});}}}if(_0xf1efd2[_0x4ecf39(0x2c1)]===_0x4ecf39(0x31b)&&(_0xf1efd2[_0x4ecf39(0x296)]??_0x4ecf39(0x31b))===_0x4ecf39(0x299)){if(_0x1da730[_0x4ecf39(0x2ef)]!==0x1)_0x2d951[_0x4ecf39(0x26f)]({'path':_0x4ecf39(0x223)+_0x17302d,'message':_0x4ecf39(0x23e)});else{const _0x2b6b70=_0x1da730[0x0];((_0x2b6b70[_0x4ecf39(0x1f7)]??_0x4ecf39(0x28a))!==_0x4ecf39(0x28a)||_0x2b6b70[_0x4ecf39(0x21f)]===!![]||typeof _0x2b6b70['expression']==='string'&&_0x2b6b70[_0x4ecf39(0x1f9)][_0x4ecf39(0x253)]()!=='')&&_0x2d951[_0x4ecf39(0x26f)]({'path':_0x38b1ce['get'](_0x2b6b70)??_0x4ecf39(0x1e8),'message':_0x4ecf39(0x2f6)});}}else{if(_0xf1efd2[_0x4ecf39(0x2c1)]===_0x4ecf39(0x31b)){const _0xd5e7c4=_0x1da730['map'](_0x17064c=>_0x17064c[_0x4ecf39(0x1f7)]??_0x4ecf39(0x28a)),_0x57c8fa=_0xd5e7c4[_0x4ecf39(0x204)](_0x4a2e5d=>_0x4a2e5d!==_0x4ecf39(0x20d)&&_0x4a2e5d!==_0x4ecf39(0x2cc));_0x57c8fa['length']>0x0&&_0x2d951['push']({'path':_0x4ecf39(0x223)+_0x17302d,'message':_0x4ecf39(0x268)}),_0xd5e7c4['filter'](_0x12018c=>_0x12018c===_0x4ecf39(0x20d))[_0x4ecf39(0x2ef)]!==0x1&&_0x2d951[_0x4ecf39(0x26f)]({'path':_0x4ecf39(0x223)+_0x17302d,'message':'APPROVAL\x20node\x20requires\x20exactly\x20one\x20APPROVED\x20outgoing\x20edge.'}),_0xd5e7c4[_0x4ecf39(0x204)](_0x56d223=>_0x56d223===_0x4ecf39(0x2cc))['length']!==0x1&&_0x2d951[_0x4ecf39(0x26f)]({'path':_0x4ecf39(0x223)+_0x17302d,'message':'APPROVAL\x20node\x20requires\x20exactly\x20one\x20REJECTED\x20outgoing\x20edge.'}),_0x1da730[_0x4ecf39(0x215)](_0x5e3df4=>_0x5e3df4[_0x4ecf39(0x21f)]===!![])&&_0x2d951['push']({'path':_0x4ecf39(0x223)+_0x17302d,'message':_0x4ecf39(0x31a)});}}}const _0x42e0ad=new Set(),_0x1d0b6e=_0x49a4dd=>{const _0x2dbba5=_0x4ecf39;if(_0x42e0ad[_0x2dbba5(0x1dc)](_0x49a4dd))return;_0x42e0ad['add'](_0x49a4dd);for(const _0x1789a8 of _0x2bfc8c[_0x2dbba5(0x306)](_0x49a4dd)??[]){const _0x134c3a=resolveEdgeEndpoint(_0x1789a8[_0x2dbba5(0x2ab)],_0x1789a8['targetNodeId']);if(_0x134c3a&&_0x5e279d[_0x2dbba5(0x1dc)](_0x134c3a))_0x1d0b6e(_0x134c3a);}};_0x1d0b6e(_0x252469);for(const _0x1407e9 of _0x5e279d[_0x4ecf39(0x1d8)]()){!_0x42e0ad['has'](_0x1407e9)&&_0x2d951[_0x4ecf39(0x26f)]({'path':'flowJson.nodes.'+_0x1407e9,'message':_0x4ecf39(0x276)});}const _0x30fc0d=_0x14bfc1[_0x4ecf39(0x215)](_0x5057e4=>_0x42e0ad[_0x4ecf39(0x1dc)](_0x5057e4));if(!_0x30fc0d){_0x2d951[_0x4ecf39(0x26f)]({'path':_0x4ecf39(0x1e8),'message':'No\x20END\x20node\x20is\x20reachable\x20from\x20START.'});return;}const _0x55ed1b=new Set(),_0x1e6067=_0x4be62a=>{const _0x2e05f7=_0x4ecf39;if(_0x55ed1b[_0x2e05f7(0x1dc)](_0x4be62a))return;_0x55ed1b[_0x2e05f7(0x301)](_0x4be62a);for(const _0x426ce9 of _0x1b89ed[_0x2e05f7(0x306)](_0x4be62a)??[]){const _0x41ab81=resolveEdgeEndpoint(_0x426ce9[_0x2e05f7(0x1ee)],_0x426ce9[_0x2e05f7(0x30e)]);if(_0x41ab81&&_0x5e279d[_0x2e05f7(0x1dc)](_0x41ab81))_0x1e6067(_0x41ab81);}};for(const _0x572dc7 of _0x14bfc1){if(_0x5e279d[_0x4ecf39(0x1dc)](_0x572dc7))_0x1e6067(_0x572dc7);}for(const _0x276488 of _0x42e0ad){!_0x55ed1b['has'](_0x276488)&&_0x2d951[_0x4ecf39(0x26f)]({'path':_0x4ecf39(0x223)+_0x276488,'message':_0x4ecf39(0x231)});}}function validateApprovalResults(_0xd3aee4,_0x220012,_0x53a664,_0x208fbd){const _0x577a8a=a281_0x17c8d0;if(_0x220012===0x0)return;const _0x2b97cb=new Set(_0x53a664['map'](_0x2cbb36=>_0xd3aee4[_0x577a8a(0x306)](_0x2cbb36)?.['result'])[_0x577a8a(0x204)](_0x7fb96=>typeof _0x7fb96===_0x577a8a(0x30c)));for(const _0x53a2df of['APPROVED',_0x577a8a(0x2cc)]){!_0x2b97cb[_0x577a8a(0x1dc)](_0x53a2df)&&_0x208fbd[_0x577a8a(0x26f)]({'path':_0x577a8a(0x327),'message':'Approval\x20flow\x20requires\x20an\x20END\x20node\x20with\x20result\x20'+_0x53a2df+'.'});}}function validateScriptResultReferences(_0x39fa01,_0x4801ef,_0x4e7a05,_0x23b7e8,_0x23b241,_0x1c9a7f,_0x4093e3){const _0x295c4d=a281_0x17c8d0;if(_0x1c9a7f[_0x295c4d(0x244)]===0x0)return;const _0x175178=new Set(),_0x32d8dc=_0x5f3695=>{const _0x970410=_0x295c4d;if(!_0x175178[_0x970410(0x1dc)](_0x5f3695)&&_0x39fa01[_0x970410(0x1dc)](_0x5f3695)){_0x175178[_0x970410(0x301)](_0x5f3695);for(const _0x308716 of _0x4e7a05[_0x970410(0x306)](_0x5f3695)??[]){const _0xf66ac=resolveEdgeEndpoint(_0x308716[_0x970410(0x2ab)],_0x308716['targetNodeId']);if(_0xf66ac)_0x32d8dc(_0xf66ac);}}};_0x32d8dc(_0x4801ef);const _0x5aad63=new Map();for(const _0x376b46 of _0x175178){_0x5aad63[_0x295c4d(0x20b)](_0x376b46,_0x376b46===_0x4801ef?new Set([_0x4801ef]):new Set(_0x175178));}let _0x403531=!![];while(_0x403531){_0x403531=![];for(const _0x5884a7 of _0x175178){if(_0x5884a7===_0x4801ef)continue;const _0x46b05f=(_0x23b7e8[_0x295c4d(0x306)](_0x5884a7)??[])[_0x295c4d(0x24b)](_0x2631bb=>resolveEdgeEndpoint(_0x2631bb[_0x295c4d(0x1ee)],_0x2631bb['sourceNodeId']))[_0x295c4d(0x204)](_0x533c29=>Boolean(_0x533c29&&_0x175178[_0x295c4d(0x1dc)](_0x533c29)));if(_0x46b05f[_0x295c4d(0x2ef)]===0x0)continue;const _0x33a267=new Set(_0x5aad63[_0x295c4d(0x306)](_0x46b05f[0x0])??[]);for(const _0x3e429d of _0x46b05f[_0x295c4d(0x2b8)](0x1)){const _0xda4ddc=_0x5aad63[_0x295c4d(0x306)](_0x3e429d)??new Set();for(const _0x2c6e79 of _0x33a267){if(!_0xda4ddc[_0x295c4d(0x1dc)](_0x2c6e79))_0x33a267['delete'](_0x2c6e79);}}_0x33a267[_0x295c4d(0x301)](_0x5884a7);const _0x1fdd69=_0x5aad63[_0x295c4d(0x306)](_0x5884a7);!setsEqual(_0x1fdd69,_0x33a267)&&(_0x5aad63[_0x295c4d(0x20b)](_0x5884a7,_0x33a267),_0x403531=!![]);}}for(const [_0x20ffe8,_0x530195]of _0x4e7a05){const _0x193e5f=_0x5aad63[_0x295c4d(0x306)](_0x20ffe8);if(!_0x193e5f)continue;for(const _0x1d22f7 of _0x530195){if(_0x1d22f7[_0x295c4d(0x1f7)]!==_0x295c4d(0x22f)||typeof _0x1d22f7['expression']!==_0x295c4d(0x30c))continue;for(const [_0x26d18f,_0x55559f]of _0x1c9a7f){expressionReferencesVariable(_0x1d22f7[_0x295c4d(0x1f9)],_0x26d18f)&&!_0x193e5f[_0x295c4d(0x1dc)](_0x55559f)&&_0x4093e3[_0x295c4d(0x26f)]({'path':(_0x23b241[_0x295c4d(0x306)](_0x1d22f7)??'flowJson.edges')+_0x295c4d(0x2c2),'message':_0x295c4d(0x256)+_0x26d18f+',\x20but\x20node\x20'+_0x55559f+'\x20is\x20not\x20on\x20every\x20upstream\x20path\x20to\x20'+_0x20ffe8+'.'});}}}}function expressionReferencesVariable(_0x450280,_0x3800ee){const _0x57dca8=a281_0x17c8d0,_0x50d3fd=_0x3800ee[_0x57dca8(0x2d7)](/[.*+?^${}()|[\]\\]/g,'\x5c$&');return new RegExp(_0x57dca8(0x219)+_0x50d3fd+_0x57dca8(0x26e))[_0x57dca8(0x2be)](_0x450280);}function resolveEffectiveResultVariable(_0x4821ff,_0x44cf1d){const _0x427246=a281_0x17c8d0;if(_0x4821ff===undefined||_0x4821ff===null||_0x44cf1d&&_0x4821ff==='')return DEFAULT_SCRIPT_RESULT_VARIABLE;if(typeof _0x4821ff!==_0x427246(0x30c)||!VARIABLE_PATTERN[_0x427246(0x2be)](_0x4821ff)||RESERVED_RESULT_VARIABLES['has'](_0x4821ff)||_0x4821ff[_0x427246(0x25d)]('approval_sys_'))return undefined;return _0x4821ff;}function registerResultVariableOwner(_0x31a07d,_0x29b37d,_0x3fa558,_0x36e1e0){const _0x56f118=a281_0x17c8d0;if(_0x31a07d[_0x56f118(0x1dc)](_0x29b37d)){_0x36e1e0[_0x56f118(0x26f)]({'path':'flowJson.nodes','message':_0x56f118(0x225)+_0x29b37d+'.'});return;}_0x31a07d[_0x56f118(0x20b)](_0x29b37d,_0x3fa558);}function setsEqual(_0x2a602c,_0x3ea001){const _0x344630=a281_0x17c8d0;return _0x2a602c[_0x344630(0x244)]===_0x3ea001[_0x344630(0x244)]&&[..._0x2a602c][_0x344630(0x1d4)](_0x2a5842=>_0x3ea001[_0x344630(0x1dc)](_0x2a5842));}function isValidUserId(_0x361dbf){const _0x201719=a281_0x17c8d0;if(typeof _0x361dbf===_0x201719(0x30c))return _0x361dbf[_0x201719(0x253)]()[_0x201719(0x2ef)]>0x0;return Number[_0x201719(0x322)](_0x361dbf)&&Number(_0x361dbf)>0x0;}function resolveEdgeEndpoint(_0x55561b,_0x262251){const _0x4e023f=a281_0x17c8d0;if(typeof _0x55561b===_0x4e023f(0x30c)&&_0x55561b[_0x4e023f(0x253)]())return _0x55561b[_0x4e023f(0x253)]();if(typeof _0x262251===_0x4e023f(0x30c)&&_0x262251['trim']())return _0x262251[_0x4e023f(0x253)]();return undefined;}function a281_0x2049(_0x184871,_0x314570){_0x184871=_0x184871-0x1ca;const _0x502885=a281_0x5028();let _0x20494e=_0x502885[_0x184871];return _0x20494e;}function removeEmptyMetadata(_0x5a00a4,_0x3af7fa,_0x53df2a,_0x4c5b97){const _0x50486d=a281_0x17c8d0;if(Array['isArray'](_0x5a00a4)){_0x5a00a4['forEach']((_0x215f08,_0x5279f0)=>removeEmptyMetadata(_0x215f08,_0x3af7fa+'['+_0x5279f0+']',_0x53df2a,_0x4c5b97));return;}if(!isRecord(_0x5a00a4))return;for(const [_0xd5c706,_0xa1ec7a]of Object[_0x50486d(0x2c4)](_0x5a00a4)){const _0x506f6e=_0x3af7fa+'.'+_0xd5c706;if(_0xd5c706===_0x50486d(0x2d0)&&isEmptyJsonValue(_0xa1ec7a)){delete _0x5a00a4[_0xd5c706],_0x4c5b97[_0x50486d(0x26f)](_0x506f6e),_0x53df2a[_0x50486d(0x26f)]({'code':_0x50486d(0x2fd),'path':_0x506f6e,'message':_0x506f6e+_0x50486d(0x27e)});continue;}removeEmptyMetadata(_0xa1ec7a,_0x506f6e,_0x53df2a,_0x4c5b97);}}function isEmptyJsonValue(_0x24a8e8){const _0xbd19d2=a281_0x17c8d0;if(_0x24a8e8===null||_0x24a8e8===undefined)return!![];if(typeof _0x24a8e8===_0xbd19d2(0x30c))return _0x24a8e8['trim']()==='';if(Array[_0xbd19d2(0x2b5)](_0x24a8e8))return _0x24a8e8[_0xbd19d2(0x2ef)]===0x0;return isRecord(_0x24a8e8)&&Object[_0xbd19d2(0x1d8)](_0x24a8e8)[_0xbd19d2(0x2ef)]===0x0;}function isRecord(_0x2b6083){const _0x5d28d9=a281_0x17c8d0;return typeof _0x2b6083===_0x5d28d9(0x1f8)&&_0x2b6083!==null&&!Array['isArray'](_0x2b6083);}function cloneJsonValue(_0x1db6ef){const _0xe1f9f6=a281_0x17c8d0;return JSON['parse'](JSON[_0xe1f9f6(0x216)](_0x1db6ef));}export async function readFlowConfigFile(_0x54a309){const _0x1776e3=a281_0x17c8d0,_0xa2f24=await readFile(resolve(_0x54a309),_0x1776e3(0x2a2));return JSON[_0x1776e3(0x31c)](_0xa2f24);}
|