@treasuredata/tdx 2026.5.1 → 2026.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin.js +1 -1
- package/dist/build-info.json +3 -3
- package/dist/cli-categories.js +1 -1
- package/dist/cli.js +1 -1
- package/dist/commands/activations.js +1 -1
- package/dist/commands/agent-command.js +1 -1
- package/dist/commands/agent-test-command.js +1 -1
- package/dist/commands/api-command.js +1 -1
- package/dist/commands/auth-command.js +1 -1
- package/dist/commands/cas-command.js +1 -1
- package/dist/commands/cas-segment-command.js +1 -1
- package/dist/commands/chat-command.js +1 -1
- package/dist/commands/claude-command.js +1 -1
- package/dist/commands/claude-statusline-command.js +1 -1
- package/dist/commands/claude-usage-command.js +1 -1
- package/dist/commands/command.js +1 -1
- package/dist/commands/connection-command.js +1 -1
- package/dist/commands/databases.js +1 -1
- package/dist/commands/delivery-command.js +1 -1
- package/dist/commands/describe.js +1 -1
- package/dist/commands/engage-campaign-pull-command.js +1 -1
- package/dist/commands/engage-campaign-push-command.js +1 -1
- package/dist/commands/engage-campaign-validate-command.js +1 -1
- package/dist/commands/engage-command.js +1 -1
- package/dist/commands/engage-template-pull-command.js +1 -1
- package/dist/commands/engage-template-push-command.js +1 -1
- package/dist/commands/engage-template-validate-command.js +1 -1
- package/dist/commands/job-command.js +1 -1
- package/dist/commands/journey-command.js +1 -1
- package/dist/commands/journey-validate-command.js +1 -1
- package/dist/commands/llm-command.js +1 -1
- package/dist/commands/mcp-command.js +1 -1
- package/dist/commands/parent-segment-command.js +1 -1
- package/dist/commands/policy-command.js +1 -1
- package/dist/commands/profile-command.js +1 -1
- package/dist/commands/profiles-command.js +1 -1
- package/dist/commands/query-command.js +1 -1
- package/dist/commands/schedule-command.js +1 -1
- package/dist/commands/segment-command.js +1 -1
- package/dist/commands/segment-create-command.js +1 -1
- package/dist/commands/segment-fields-command.js +1 -1
- package/dist/commands/segment-pull-command.js +1 -1
- package/dist/commands/segment-push-command.js +1 -1
- package/dist/commands/segment-update-command.js +1 -1
- package/dist/commands/segment-use-command.js +1 -1
- package/dist/commands/segment-validate-command.js +1 -1
- package/dist/commands/segments.js +1 -1
- package/dist/commands/show.js +1 -1
- package/dist/commands/status-command.js +1 -1
- package/dist/commands/table-deleted.js +1 -1
- package/dist/commands/tables.js +1 -1
- package/dist/commands/unset-command.js +1 -1
- package/dist/commands/upgrade-command.js +1 -1
- package/dist/commands/use-command.js +1 -1
- package/dist/commands/user-command.js +1 -1
- package/dist/commands/work-command.js +1 -1
- package/dist/commands/workflow-command.js +1 -1
- package/dist/core/auth.js +1 -1
- package/dist/core/command-output.js +1 -1
- package/dist/core/config.js +1 -1
- package/dist/core/connection-cache.js +1 -1
- package/dist/core/constants.js +1 -1
- package/dist/core/credential-cache.js +1 -1
- package/dist/core/global-context.js +1 -1
- package/dist/core/keychain.js +1 -1
- package/dist/core/oauth-keychain.js +1 -1
- package/dist/core/oauth.js +1 -1
- package/dist/core/profile.js +1 -1
- package/dist/core/project-config.js +1 -1
- package/dist/core/session.js +1 -1
- package/dist/core/user-cache.js +1 -1
- package/dist/core/version.js +1 -1
- package/dist/index.js +1 -1
- package/dist/mcp/server.js +1 -1
- package/dist/mcp/tools/index.js +1 -1
- package/dist/mcp/tools/tdx-run.js +1 -1
- package/dist/mcp/tools/tdx-search.js +1 -1
- package/dist/mcp/tools/work-create-item.js +1 -1
- package/dist/mcp/utils.js +1 -1
- package/dist/proxy/claude-usage-tracker.js +1 -1
- package/dist/proxy/passthrough-server.js +1 -1
- package/dist/proxy/sse-usage-parser.js +1 -1
- package/dist/sdk/agent/agent-config.js +1 -1
- package/dist/sdk/agent/agent-ref-parser.js +1 -1
- package/dist/sdk/agent/agent-yaml.js +1 -1
- package/dist/sdk/agent/test/evaluator.js +1 -1
- package/dist/sdk/agent/test/executor.js +1 -1
- package/dist/sdk/agent/test/index.js +1 -1
- package/dist/sdk/agent/test/output.js +1 -1
- package/dist/sdk/agent/test/parser.js +1 -1
- package/dist/sdk/agent/tool-target-registry.js +1 -1
- package/dist/sdk/api.js +1 -1
- package/dist/sdk/cas/cas-api-client.js +1 -1
- package/dist/sdk/cas/cas-audience-yaml.js +1 -1
- package/dist/sdk/cas/cas-segment-yaml.js +1 -1
- package/dist/sdk/cas/index.js +1 -1
- package/dist/sdk/cas/pull-workflow.js +1 -1
- package/dist/sdk/cas/push-workflow.js +1 -1
- package/dist/sdk/client/cdp-api-client.js +1 -1
- package/dist/sdk/client/cdp-api-client.js.map +1 -1
- package/dist/sdk/client/delivery-api-client.js +1 -1
- package/dist/sdk/client/endpoints.js +1 -1
- package/dist/sdk/client/engage-api-client.js +1 -1
- package/dist/sdk/client/http-client.js +1 -1
- package/dist/sdk/client/llm-api-client.js +1 -1
- package/dist/sdk/client/oauth-refresh.js +1 -1
- package/dist/sdk/client/rate-limiter.js +1 -1
- package/dist/sdk/client/td-api-client.js +1 -1
- package/dist/sdk/client/trino-api-client.js +1 -1
- package/dist/sdk/client/workflow-client.js +1 -1
- package/dist/sdk/connection-validator.js +1 -1
- package/dist/sdk/connection.js +1 -1
- package/dist/sdk/delivery.js +1 -1
- package/dist/sdk/engage/campaign-pull.js +1 -1
- package/dist/sdk/engage/campaign-push.js +1 -1
- package/dist/sdk/engage/campaign-validator.js +1 -1
- package/dist/sdk/engage/campaign-yaml.js +1 -1
- package/dist/sdk/engage/template-pull.js +1 -1
- package/dist/sdk/engage/template-push.js +1 -1
- package/dist/sdk/engage/template-validator.js +1 -1
- package/dist/sdk/engage/template-yaml.js +1 -1
- package/dist/sdk/engage/types/campaign-def.js +1 -1
- package/dist/sdk/engage/types/campaign-schema.js +1 -1
- package/dist/sdk/engage/types/template-schema.js +1 -1
- package/dist/sdk/engage.js +1 -1
- package/dist/sdk/errors.js +1 -1
- package/dist/sdk/index.js +1 -1
- package/dist/sdk/io/index.js +1 -1
- package/dist/sdk/io/node-filesystem.js +1 -1
- package/dist/sdk/job.js +1 -1
- package/dist/sdk/journey.js +1 -1
- package/dist/sdk/llm/chat-cache.js +1 -1
- package/dist/sdk/llm/index.js +1 -1
- package/dist/sdk/llm/llm-backup-utils.js +1 -1
- package/dist/sdk/llm/model-factors.d.ts +8 -4
- package/dist/sdk/llm/model-factors.d.ts.map +1 -1
- package/dist/sdk/llm/model-factors.js +1 -1
- package/dist/sdk/llm/model-factors.js.map +1 -1
- package/dist/sdk/llm/user-settings.js +1 -1
- package/dist/sdk/personalization.js +1 -1
- package/dist/sdk/policy.js +1 -1
- package/dist/sdk/query/deleted-table-validation.js +1 -1
- package/dist/sdk/query/index.js +1 -1
- package/dist/sdk/query/sql-parser.js +1 -1
- package/dist/sdk/realtime.js +1 -1
- package/dist/sdk/schedule.js +1 -1
- package/dist/sdk/segment/child-segment-yaml.d.ts.map +1 -1
- package/dist/sdk/segment/child-segment-yaml.js +1 -1
- package/dist/sdk/segment/child-segment-yaml.js.map +1 -1
- package/dist/sdk/segment/fields-display.js +1 -1
- package/dist/sdk/segment/file-discovery.js +1 -1
- package/dist/sdk/segment/journey-utils.js +1 -1
- package/dist/sdk/segment/journey-validator.js +1 -1
- package/dist/sdk/segment/journey-yaml.js +1 -1
- package/dist/sdk/segment/parent-segment-preview.js +1 -1
- package/dist/sdk/segment/parent-segment-yaml.js +1 -1
- package/dist/sdk/segment/pull-workflow.js +1 -1
- package/dist/sdk/segment/push-recovery.js +1 -1
- package/dist/sdk/segment/push-workflow.js +1 -1
- package/dist/sdk/segment/resolution-context.js +1 -1
- package/dist/sdk/segment/segment-path-parser.js +1 -1
- package/dist/sdk/segment/segment-ref-parser.js +1 -1
- package/dist/sdk/segment/segment-validator.js +1 -1
- package/dist/sdk/segment/segment-validator.js.map +1 -1
- package/dist/sdk/segment/target-resolution.js +1 -1
- package/dist/sdk/segment/tdx-config.js +1 -1
- package/dist/sdk/segment/types/activation-schema.js +1 -1
- package/dist/sdk/segment/types/journey-def.js +1 -1
- package/dist/sdk/segment/types/journey-schema.js +1 -1
- package/dist/sdk/segment/types/segment-def.js +1 -1
- package/dist/sdk/segment/types/segment-schema.js +1 -1
- package/dist/sdk/segment/validate-files.js +1 -1
- package/dist/sdk/segment/yaml-validator.d.ts +1 -1
- package/dist/sdk/segment/yaml-validator.d.ts.map +1 -1
- package/dist/sdk/segment/yaml-validator.js +1 -1
- package/dist/sdk/segment/yaml-validator.js.map +1 -1
- package/dist/sdk/segment.js +1 -1
- package/dist/sdk/types/cdp.d.ts +4 -3
- package/dist/sdk/types/cdp.d.ts.map +1 -1
- package/dist/sdk/types/index.js +1 -1
- package/dist/sdk/types/progress.js +1 -1
- package/dist/sdk/types/workspace.js +1 -1
- package/dist/sdk/user.js +1 -1
- package/dist/sdk/util/format-detector.js +1 -1
- package/dist/sdk/util/formatters.js +1 -1
- package/dist/sdk/util/index.js +1 -1
- package/dist/sdk/util/paginate.js +1 -1
- package/dist/sdk/util/tree-formatter.js +1 -1
- package/dist/sdk/workflow/archive-validation.js +1 -1
- package/dist/sdk/workflow/clone-workflow.js +1 -1
- package/dist/sdk/workflow/index.js +1 -1
- package/dist/sdk/workflow/pull-workflow.js +1 -1
- package/dist/sdk/workflow/push-workflow.js +1 -1
- package/dist/sdk/workflow/task-graph.js +1 -1
- package/dist/sdk/workflow/tdx-config.js +1 -1
- package/dist/sdk/workflow/workflow-utils.js +1 -1
- package/dist/sdk/workspace/access-tracker.js +1 -1
- package/dist/sdk/workspace/frontmatter.js +1 -1
- package/dist/sdk/workspace/git.js +1 -1
- package/dist/sdk/workspace/index.js +1 -1
- package/dist/sdk/workspace/templates.js +1 -1
- package/dist/sdk/workspace/weekly.js +1 -1
- package/dist/sdk/workspace/wikilinks.js +1 -1
- package/dist/test-utils/command-runner.js +1 -1
- package/dist/test-utils/factories.js +1 -1
- package/dist/test-utils/fixtures.js +1 -1
- package/dist/test-utils/http-mock.js +1 -1
- package/dist/test-utils/index.js +1 -1
- package/dist/utils/async.js +1 -1
- package/dist/utils/colors.js +1 -1
- package/dist/utils/diff.js +1 -1
- package/dist/utils/file-permissions.js +1 -1
- package/dist/utils/file-reader.js +1 -1
- package/dist/utils/github-releases.js +1 -1
- package/dist/utils/global-cache.js +1 -1
- package/dist/utils/json-loader.js +1 -1
- package/dist/utils/local-cache.js +1 -1
- package/dist/utils/logger/formatters/default-formatter.js +1 -1
- package/dist/utils/logger/formatters/index.js +1 -1
- package/dist/utils/logger/handlers/console-handler.js +1 -1
- package/dist/utils/logger/handlers/file-handler.js +1 -1
- package/dist/utils/logger/handlers/index.js +1 -1
- package/dist/utils/logger/handlers/null-handler.js +1 -1
- package/dist/utils/logger/index.js +1 -1
- package/dist/utils/logger/logger.js +1 -1
- package/dist/utils/logger/types.js +1 -1
- package/dist/utils/option-validation.js +1 -1
- package/dist/utils/process.js +1 -1
- package/dist/utils/prompt.js +1 -1
- package/dist/utils/spinner.js +1 -1
- package/dist/utils/sse-parser.js +1 -1
- package/dist/utils/string-utils.js +1 -1
- package/dist/utils/table-ref-parser.js +1 -1
- package/dist/utils/tdx-logger.js +1 -1
- package/dist/utils/version-check.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a147_0x3b7d(_0x3f8b9a,_0x299184){_0x3f8b9a=_0x3f8b9a-0x136;const _0x557b51=a147_0x557b();let _0x3b7d14=_0x557b51[_0x3f8b9a];return _0x3b7d14;}(function(_0x5d395c,_0x11b61d){const _0x3bf564=a147_0x3b7d,_0x401fb7=_0x5d395c();while(!![]){try{const _0x38d653=-parseInt(_0x3bf564(0x138))/0x1+-parseInt(_0x3bf564(0x13b))/0x2+parseInt(_0x3bf564(0x141))/0x3+-parseInt(_0x3bf564(0x142))/0x4+parseInt(_0x3bf564(0x13e))/0x5*(parseInt(_0x3bf564(0x140))/0x6)+parseInt(_0x3bf564(0x13d))/0x7+parseInt(_0x3bf564(0x137))/0x8;if(_0x38d653===_0x11b61d)break;else _0x401fb7['push'](_0x401fb7['shift']());}catch(_0x38c3a9){_0x401fb7['push'](_0x401fb7['shift']());}}}(a147_0x557b,0x2aa5c));import{readdirSync,statSync}from'fs';import a147_0x15e224 from'path';export function findYamlFiles(_0x4312a5){const _0x419196=[];function _0x4c9c3d(_0x35c913){const _0x243df8=a147_0x3b7d,_0x19031b=readdirSync(_0x35c913,{'withFileTypes':!![]});for(const _0x6b1b41 of _0x19031b){const _0x7f451c=a147_0x15e224[_0x243df8(0x13a)](_0x35c913,_0x6b1b41[_0x243df8(0x136)]);if(_0x6b1b41[_0x243df8(0x143)]())_0x4c9c3d(_0x7f451c);else(_0x6b1b41[_0x243df8(0x136)][_0x243df8(0x144)]('.yml')||_0x6b1b41[_0x243df8(0x136)]['endsWith'](_0x243df8(0x13c)))&&_0x419196[_0x243df8(0x146)](_0x7f451c);}}return _0x4c9c3d(_0x4312a5),_0x419196;}export function discoverYamlFiles(_0x10fea2){const _0x155a4a=findYamlFiles(_0x10fea2);return _0x155a4a['map'](_0x49c37c=>{const _0x3087ad=a147_0x3b7d,_0x12ff25=a147_0x15e224['relative'](_0x10fea2,_0x49c37c),_0x394cef=a147_0x15e224['dirname'](_0x12ff25);return{'absolutePath':_0x49c37c,'relativePath':_0x12ff25,'folderPath':_0x394cef==='.'?'':_0x394cef[_0x3087ad(0x139)](/\\/g,'/')};});}export function isYamlFile(_0x5a1dc4){const _0x7eebab=a147_0x3b7d;try{const _0x44c63a=statSync(_0x5a1dc4);if(!_0x44c63a[_0x7eebab(0x13f)]())return![];const _0x4e67de=a147_0x15e224[_0x7eebab(0x145)](_0x5a1dc4)[_0x7eebab(0x147)]();return _0x4e67de==='.yml'||_0x4e67de===_0x7eebab(0x13c);}catch{return![];}}function a147_0x557b(){const _0x4aa8d7=['1737771hZXxhh','2335bWPiwy','isFile','516NKjWLf','111021aeQmZn','328464dgccZZ','isDirectory','endsWith','extname','push','toLowerCase','name','2568616GVvxaF','305138wsQpny','replace','join','169122DfqGys','.yaml'];a147_0x557b=function(){return _0x4aa8d7;};return a147_0x557b();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x41dec9,_0x4924e9){const _0x32aa04=a148_0x3ea0,_0x4cc889=_0x41dec9();while(!![]){try{const _0x112bea=-parseInt(_0x32aa04(0x1b5))/0x1*(-parseInt(_0x32aa04(0x190))/0x2)+parseInt(_0x32aa04(0x1af))/0x3*(-parseInt(_0x32aa04(0x1b4))/0x4)+parseInt(_0x32aa04(0x18a))/0x5*(-parseInt(_0x32aa04(0x19a))/0x6)+-parseInt(_0x32aa04(0x1ac))/0x7+parseInt(_0x32aa04(0x1b1))/0x8+-parseInt(_0x32aa04(0x19b))/0x9*(parseInt(_0x32aa04(0x16a))/0xa)+parseInt(_0x32aa04(0x1a5))/0xb;if(_0x112bea===_0x4924e9)break;else _0x4cc889['push'](_0x4cc889['shift']());}catch(_0x3ee2e3){_0x4cc889['push'](_0x4cc889['shift']());}}}(a148_0x1751,0xeed1e));import{serializeRule,deepSortObject}from'./child-segment-yaml.js';export const SEGMENT_KIND_JOURNEY=0x3;const MAX_MAPPING_CHAIN_DEPTH=0xa;export function sanitizeYamlKey(_0x95519f){const _0x11bfe8=a148_0x3ea0;return _0x95519f[_0x11bfe8(0x168)]()[_0x11bfe8(0x16b)](/\s+/g,'_')[_0x11bfe8(0x16b)](/[^a-z0-9_\p{L}\p{N}]/gu,'')[_0x11bfe8(0x16b)](/_+/g,'_')[_0x11bfe8(0x16b)](/^_|_$/g,'');}export function generateJourneyLocalName(_0x171d44){const _0x54d21c=a148_0x3ea0,_0x5c09bb=_0x171d44[_0x54d21c(0x188)](/^journey_([a-z_]+)_([0-9a-f-]+)$/i);if(_0x5c09bb){const _0x2b4333=_0x5c09bb[0x1][_0x54d21c(0x168)](),_0x586850=_0x5c09bb[0x2],_0x24d48d=_0x586850[_0x54d21c(0x16b)](/-/g,'')[_0x54d21c(0x184)](0x0,0x4)['toLowerCase']();return _0x2b4333+'_'+_0x24d48d;}const _0x5850b1=_0x171d44[_0x54d21c(0x188)](/^journey_\d+_stage_\d+_step_([0-9a-f-]+)_([a-z_]+)$/i);if(_0x5850b1){const _0x14900f=_0x5850b1[0x1],_0x85f874=_0x5850b1[0x2]['toLowerCase'](),_0x12b38d=_0x14900f[_0x54d21c(0x16b)](/-/g,'')[_0x54d21c(0x184)](0x0,0x4)[_0x54d21c(0x168)]();return _0x85f874+'_'+_0x12b38d;}return undefined;}function stableStringify(_0x52162b){const _0x5e9846=a148_0x3ea0;if(Array[_0x5e9846(0x170)](_0x52162b))return'['+_0x52162b[_0x5e9846(0x167)](_0x592893=>stableStringify(_0x592893))[_0x5e9846(0x1ab)](',')+']';if(_0x52162b&&typeof _0x52162b===_0x5e9846(0x186)){const _0x407a65=_0x52162b,_0x11502f=Object[_0x5e9846(0x195)](_0x407a65)['sort'](),_0x18e8cb=_0x11502f[_0x5e9846(0x167)](_0x437e68=>'\x22'+_0x437e68+'\x22:'+stableStringify(_0x407a65[_0x437e68]));return'{'+_0x18e8cb[_0x5e9846(0x1ab)](',')+'}';}const _0x55ffa9=JSON[_0x5e9846(0x17b)](_0x52162b);return _0x55ffa9===undefined?_0x5e9846(0x18c):_0x55ffa9;}function a148_0x1751(){const _0x3903a6=['push','version_number','entry_criteria','has','journeyBundleName','latest','goal','milestone','behavior','yaml','stringify','columns','.yml','nameMapping','stages','entries','item','journeyStages','state','slice','schedule','object','notification','match','journey','5eajcOx','exit_criteria','null','journeys','get','activation','89274jEUjmh','with','branches','versions','startsWith','keys','trim','wait','some','activations','9503622KPJLCg','4491UgRsAN','version','segments','name','attributes','all_columns','reentry','type','decision_point','description','36786750DBZzvl','find','launched','conditions','set','string','join','1224440JuMRbB','condition','sort','9oNPygW','steps','9010344rERybj','length','merged','634968iwTksY','1ERPzMg','segment','draft','values','map','toLowerCase','rule','26090KplBwQ','replace','connection','connector_config','bundle_name','.yaml','isArray'];a148_0x1751=function(){return _0x3903a6;};return a148_0x1751();}export function consolidateActivationsByContent(_0x4c616b){const _0x5d5984=a148_0x3ea0,_0x294ddd={},_0x49e48e=new Map(),_0x36b90f=new Map();for(const _0x24bd99 of _0x4c616b){if(!_0x24bd99)continue;for(const [_0xa4e3e1,_0x3b505d]of Object['entries'](_0x24bd99)){const _0x4d2cbc={'name':_0x3b505d[_0x5d5984(0x19e)],'connection':_0x3b505d[_0x5d5984(0x16c)],..._0x3b505d[_0x5d5984(0x1a0)]!==undefined&&{'all_columns':_0x3b505d[_0x5d5984(0x1a0)]},..._0x3b505d[_0x5d5984(0x17c)]!==undefined&&{'columns':_0x3b505d['columns']},..._0x3b505d[_0x5d5984(0x179)]!==undefined&&{'behavior':_0x3b505d[_0x5d5984(0x179)]},..._0x3b505d['schedule']!==undefined&&{'schedule':_0x3b505d[_0x5d5984(0x185)]},..._0x3b505d[_0x5d5984(0x187)]!==undefined&&{'notification':_0x3b505d[_0x5d5984(0x187)]},..._0x3b505d[_0x5d5984(0x16d)]!==undefined&&{'connector_config':_0x3b505d[_0x5d5984(0x16d)]},..._0x3b505d['activation_template_id']!==undefined&&{'activation_template_id':_0x3b505d['activation_template_id']}},_0xdc051=stableStringify(_0x4d2cbc),_0xd5778d=_0x36b90f['get'](_0xdc051);_0xd5778d?_0x49e48e['set'](_0xa4e3e1,_0xd5778d):(_0x294ddd[_0xa4e3e1]=_0x3b505d,_0x49e48e['set'](_0xa4e3e1,_0xa4e3e1),_0x36b90f[_0x5d5984(0x1a9)](_0xdc051,_0xa4e3e1));}}return{'merged':_0x294ddd,'nameMapping':_0x49e48e};}export function updateActivationReferences(_0x41fcad,_0x17ea40){const _0x36a99b=a148_0x3ea0;if(!_0x41fcad)return;for(const _0x485a80 of _0x41fcad){if(!_0x485a80[_0x36a99b(0x1b0)])continue;for(const _0x7a1398 of _0x485a80[_0x36a99b(0x1b0)]){if(_0x7a1398['type']===_0x36a99b(0x18f)&&_0x7a1398[_0x36a99b(0x191)]?.[_0x36a99b(0x18f)]){const _0x2762aa=_0x17ea40[_0x36a99b(0x18e)](_0x7a1398[_0x36a99b(0x191)][_0x36a99b(0x18f)]);_0x2762aa&&_0x2762aa!==_0x7a1398[_0x36a99b(0x191)]['activation']&&(_0x7a1398[_0x36a99b(0x191)][_0x36a99b(0x18f)]=_0x2762aa);}}}}export function consolidateSegmentsByContent(_0x240f50,_0x5bf621){const _0x384123=a148_0x3ea0,_0x2cefd3={},_0x5c86e2=new Map(),_0x22b732=new Map();for(const _0x3aa3d8 of _0x240f50){if(!_0x3aa3d8)continue;for(const [_0x2fe57f,_0x1ffdac]of Object[_0x384123(0x180)](_0x3aa3d8)){if(!_0x1ffdac['rule']){_0x2cefd3[_0x2fe57f]=_0x1ffdac,_0x5c86e2[_0x384123(0x1a9)](_0x2fe57f,_0x2fe57f);continue;}const _0x2551f1=_0x1ffdac[_0x384123(0x1a4)]&&_0x1ffdac[_0x384123(0x1a4)][_0x384123(0x196)]()?_0x1ffdac[_0x384123(0x1a4)]:undefined,_0x51d756=JSON[_0x384123(0x17b)]({'description':_0x2551f1,'rule':deepSortObject(_0x1ffdac[_0x384123(0x169)])}),_0x23b279=_0x22b732[_0x384123(0x18e)](_0x51d756);if(_0x23b279){const _0x12c465={..._0x1ffdac[_0x384123(0x1a4)]!==undefined&&{'description':_0x1ffdac[_0x384123(0x1a4)]},'rule':_0x1ffdac[_0x384123(0x169)]?deepSortObject(_0x1ffdac[_0x384123(0x169)]):_0x1ffdac['rule']};if(_0x2fe57f<_0x23b279){_0x2cefd3[_0x2fe57f]=_0x12c465,delete _0x2cefd3[_0x23b279];for(const [_0x5df8de,_0x4d5826]of _0x5c86e2[_0x384123(0x180)]()){_0x4d5826===_0x23b279&&_0x5c86e2[_0x384123(0x1a9)](_0x5df8de,_0x2fe57f);}_0x5c86e2[_0x384123(0x1a9)](_0x2fe57f,_0x2fe57f),_0x22b732[_0x384123(0x1a9)](_0x51d756,_0x2fe57f);}else _0x2cefd3[_0x23b279]=_0x12c465,_0x5c86e2[_0x384123(0x1a9)](_0x2fe57f,_0x23b279);}else{let _0x4e2150=_0x2fe57f;if(_0x5bf621){const _0x59f59a=_0x5bf621[_0x384123(0x18e)](_0x51d756);_0x59f59a&&_0x59f59a[_0x384123(0x1b2)]>0x0&&(_0x4e2150=_0x59f59a[_0x384123(0x184)]()['sort']()[0x0]);}const _0x52ba88={..._0x1ffdac[_0x384123(0x1a4)]!==undefined&&{'description':_0x1ffdac['description']},'rule':_0x1ffdac['rule']?deepSortObject(_0x1ffdac['rule']):_0x1ffdac['rule']};_0x2cefd3[_0x4e2150]=_0x52ba88,_0x5c86e2[_0x384123(0x1a9)](_0x2fe57f,_0x4e2150),_0x22b732['set'](_0x51d756,_0x4e2150);}}}return{'merged':_0x2cefd3,'nameMapping':_0x5c86e2};}export function updateSegmentReferences(_0x752051,_0x48c028){const _0x37e6b7=a148_0x3ea0;if(!_0x752051)return;for(const _0x62100b of _0x752051){if(_0x62100b[_0x37e6b7(0x173)]?.[_0x37e6b7(0x164)]){const _0x30563f=_0x48c028['get'](_0x62100b[_0x37e6b7(0x173)][_0x37e6b7(0x164)]);_0x30563f&&(_0x62100b[_0x37e6b7(0x173)][_0x37e6b7(0x164)]=_0x30563f);}if(_0x62100b[_0x37e6b7(0x18b)])for(const _0x10f0b1 of _0x62100b[_0x37e6b7(0x18b)]){if(_0x10f0b1[_0x37e6b7(0x164)]){const _0x596ccc=_0x48c028[_0x37e6b7(0x18e)](_0x10f0b1[_0x37e6b7(0x164)]);_0x596ccc&&(_0x10f0b1[_0x37e6b7(0x164)]=_0x596ccc);}}if(_0x62100b[_0x37e6b7(0x178)]?.[_0x37e6b7(0x164)]){const _0x47b12d=_0x48c028[_0x37e6b7(0x18e)](_0x62100b['milestone'][_0x37e6b7(0x164)]);_0x47b12d&&(_0x62100b[_0x37e6b7(0x178)][_0x37e6b7(0x164)]=_0x47b12d);}if(_0x62100b[_0x37e6b7(0x1b0)])for(const _0x569f5a of _0x62100b[_0x37e6b7(0x1b0)]){if(_0x569f5a['type']===_0x37e6b7(0x1a3)&&_0x569f5a[_0x37e6b7(0x191)]?.[_0x37e6b7(0x192)])for(const _0x3bc93e of _0x569f5a[_0x37e6b7(0x191)]['branches']){if(_0x3bc93e[_0x37e6b7(0x164)]){const _0x56dc8d=_0x48c028[_0x37e6b7(0x18e)](_0x3bc93e[_0x37e6b7(0x164)]);_0x56dc8d&&(_0x3bc93e[_0x37e6b7(0x164)]=_0x56dc8d);}}if(_0x569f5a['type']===_0x37e6b7(0x197)&&_0x569f5a[_0x37e6b7(0x191)]?.[_0x37e6b7(0x1ad)]?.['segment']){const _0x1740dc=_0x48c028[_0x37e6b7(0x18e)](_0x569f5a['with'][_0x37e6b7(0x1ad)][_0x37e6b7(0x164)]);_0x1740dc&&(_0x569f5a[_0x37e6b7(0x191)][_0x37e6b7(0x1ad)][_0x37e6b7(0x164)]=_0x1740dc);}}}}export function updateSegmentRefsInSegments(_0xca6612,_0x1efb17){const _0x4f31d8=a148_0x3ea0;for(const _0x35343c of Object[_0x4f31d8(0x166)](_0xca6612)){_0x35343c[_0x4f31d8(0x169)]&&updateSegmentRefsInRule(_0x35343c[_0x4f31d8(0x169)],_0x1efb17);}}function updateSegmentRefsInRule(_0x54c34b,_0x44ebf6){const _0x52afd9=a148_0x3ea0;if(_0x54c34b===null||typeof _0x54c34b!==_0x52afd9(0x186))return;if(Array[_0x52afd9(0x170)](_0x54c34b)){for(const _0x1b5146 of _0x54c34b){updateSegmentRefsInRule(_0x1b5146,_0x44ebf6);}return;}const _0x373e7a=_0x54c34b;if((_0x373e7a[_0x52afd9(0x1a2)]==='include'||_0x373e7a[_0x52afd9(0x1a2)]==='exclude')&&typeof _0x373e7a[_0x52afd9(0x164)]===_0x52afd9(0x1aa)){const _0x38aeea=_0x44ebf6[_0x52afd9(0x18e)](_0x373e7a[_0x52afd9(0x164)]);_0x38aeea&&(_0x373e7a[_0x52afd9(0x164)]=_0x38aeea);}if(_0x373e7a[_0x52afd9(0x1a8)]&&Array[_0x52afd9(0x170)](_0x373e7a[_0x52afd9(0x1a8)]))for(const _0xb2e3ba of _0x373e7a[_0x52afd9(0x1a8)]){updateSegmentRefsInRule(_0xb2e3ba,_0x44ebf6);}}export function buildJourneysArray(_0x268516,_0x4f2c49){const _0x7d3a07=a148_0x3ea0;return _0x268516[_0x7d3a07(0x167)](_0x120ebc=>{const _0x135f1f=_0x7d3a07,_0x51e11a=_0x4f2c49?_0x120ebc[_0x135f1f(0x181)]['id']===_0x4f2c49:_0x268516['length']===0x1,_0x5d1e9e=_0x120ebc[_0x135f1f(0x17a)][_0x135f1f(0x18d)]?.[0x0],_0x5d2332=_0x5d1e9e?.[_0x135f1f(0x177)]||_0x120ebc[_0x135f1f(0x17a)]['goal'],_0xd0ed52={'version':_0x5d1e9e?.[_0x135f1f(0x19c)]||_0x120ebc['yaml'][_0x135f1f(0x19c)]||_0x120ebc[_0x135f1f(0x181)][_0x135f1f(0x19e)],'state':_0x120ebc['item'][_0x135f1f(0x183)]===_0x135f1f(0x1a7)?'launched':_0x135f1f(0x165),'stages':_0x5d1e9e?.[_0x135f1f(0x17f)]||_0x120ebc['yaml']['stages']||[],'id':_0x5d1e9e?.['id']||_0x120ebc[_0x135f1f(0x17a)]['id'],'version_number':_0x5d1e9e?.['version_number']||_0x120ebc[_0x135f1f(0x17a)][_0x135f1f(0x172)]};return _0x5d2332&&(_0xd0ed52[_0x135f1f(0x177)]=_0x5d2332),_0x51e11a&&(_0xd0ed52[_0x135f1f(0x176)]=!![]),_0xd0ed52;});}export function buildMergedJourneyDef(_0x31ecb5,_0xcc5f40,_0x358ed5){const _0x50cff9=a148_0x3ea0,_0x46bf14=_0x31ecb5[0x0][_0x50cff9(0x17a)],_0x40c8e2=buildJourneysArray(_0x31ecb5,_0x358ed5),{merged:_0x1a7096,nameMapping:_0x40176c}=consolidateSegmentsByContent(_0x31ecb5[_0x50cff9(0x167)](_0x10bc56=>_0x10bc56['yaml'][_0x50cff9(0x19d)]),_0xcc5f40);updateSegmentRefsInSegments(_0x1a7096,_0x40176c);const _0x32b688=Array['from'](_0x40176c[_0x50cff9(0x180)]())['some'](([_0x33a9d3,_0x409079])=>_0x33a9d3!==_0x409079&&_0x33a9d3[_0x50cff9(0x194)](_0x50cff9(0x173)));let _0x4ec1e0=_0x1a7096,_0xf13a9f=new Map();if(_0x32b688){const _0x507c36=consolidateSegmentsByContent([_0x1a7096],_0xcc5f40);_0x4ec1e0=_0x507c36[_0x50cff9(0x1b3)],_0xf13a9f=_0x507c36[_0x50cff9(0x17e)];}const _0x46f4e8=new Map(_0x40176c);for(const [_0x42f696,_0x3f0e6e]of _0xf13a9f[_0x50cff9(0x180)]()){_0x46f4e8['set'](_0x42f696,_0x3f0e6e);}for(const [_0x1abd67,_0x316b4b]of _0x46f4e8['entries']()){let _0xf8da2=_0x316b4b,_0x2828b0=0x0;while(_0x46f4e8[_0x50cff9(0x174)](_0xf8da2)&&_0x46f4e8[_0x50cff9(0x18e)](_0xf8da2)!==_0xf8da2&&_0x2828b0<MAX_MAPPING_CHAIN_DEPTH){_0xf8da2=_0x46f4e8['get'](_0xf8da2),_0x2828b0++;}_0xf8da2!==_0x316b4b&&_0x46f4e8['set'](_0x1abd67,_0xf8da2);}for(const _0x5a0b43 of _0x40c8e2){updateSegmentReferences(_0x5a0b43[_0x50cff9(0x17f)],_0x46f4e8);}const {merged:_0x180c34,nameMapping:_0x5cc26a}=consolidateActivationsByContent(_0x31ecb5[_0x50cff9(0x167)](_0x5cc16d=>_0x5cc16d['yaml'][_0x50cff9(0x199)]));for(const _0xab550e of _0x40c8e2){updateActivationReferences(_0xab550e['stages'],_0x5cc26a);}let _0x26ac0f=_0x46bf14[_0x50cff9(0x177)];if(_0x26ac0f?.[_0x50cff9(0x164)]){const _0x332428=_0x46f4e8[_0x50cff9(0x18e)](_0x26ac0f['segment']);_0x332428&&(_0x26ac0f={..._0x26ac0f,'segment':_0x332428});}for(const _0x2ce1b7 of _0x40c8e2){if(_0x2ce1b7[_0x50cff9(0x177)]?.[_0x50cff9(0x164)]){const _0x34e42d=_0x46f4e8[_0x50cff9(0x18e)](_0x2ce1b7['goal'][_0x50cff9(0x164)]);_0x34e42d&&(_0x2ce1b7[_0x50cff9(0x177)]={..._0x2ce1b7[_0x50cff9(0x177)],'segment':_0x34e42d});}}return _0x40c8e2[_0x50cff9(0x198)](_0x285228=>_0x285228['goal'])&&(_0x26ac0f=undefined),{'type':_0x50cff9(0x189),'name':_0x46bf14[_0x50cff9(0x19e)],'description':_0x46bf14[_0x50cff9(0x1a4)],'goal':_0x26ac0f,'reentry':_0x46bf14[_0x50cff9(0x1a1)],'segments':Object[_0x50cff9(0x195)](_0x4ec1e0)['length']>0x0?_0x4ec1e0:undefined,'activations':Object['keys'](_0x180c34)[_0x50cff9(0x1b2)]>0x0?_0x180c34:undefined,'journeys':_0x40c8e2,'bundle_id':_0x46bf14['bundle_id'],'bundle_name':_0x46bf14[_0x50cff9(0x16e)]};}function a148_0x3ea0(_0x70a12b,_0x9260d6){_0x70a12b=_0x70a12b-0x164;const _0x175103=a148_0x1751();let _0x3ea033=_0x175103[_0x70a12b];return _0x3ea033;}export function createJumpTargetCache(){return new Map();}export async function resolveJumpTarget(_0x52304d,_0x568d21,_0x43232d,_0x2b7112){const _0x32c648=a148_0x3ea0,_0x2c6c09=_0x52304d+':'+_0x568d21,_0x4757bd=_0x43232d[_0x32c648(0x18e)](_0x2c6c09);if(_0x4757bd)return _0x4757bd;const _0x5898df=await _0x2b7112(_0x52304d),_0x4c2296=_0x5898df[_0x32c648(0x19f)][_0x32c648(0x175)]||_0x5898df['attributes']['name'],_0x1cee65=_0x5898df['attributes'][_0x32c648(0x182)][_0x32c648(0x1a6)](_0x390df9=>String(_0x390df9['id'])===String(_0x568d21)),_0x42fa7e=_0x1cee65?.[_0x32c648(0x19e)]||_0x568d21,_0x2f503f={'journeyName':_0x4c2296,'stageName':_0x42fa7e};return _0x43232d[_0x32c648(0x1a9)](_0x2c6c09,_0x2f503f),_0x2f503f;}export function formatApiJourneyName(_0x423a1a,_0x15c7a6){return _0x15c7a6+'\x20('+_0x423a1a+')';}export function isLocalJourneyRef(_0x3de8e1){const _0xfb91eb=a148_0x3ea0;return _0x3de8e1['endsWith'](_0xfb91eb(0x17d))||_0x3de8e1['endsWith'](_0xfb91eb(0x16f));}export function buildLocalRuleToNameMapping(_0x40a050){const _0x19ead3=a148_0x3ea0,_0xb76533=new Map();if(!_0x40a050)return _0xb76533;for(const [_0x4fc18e,_0x56e5db]of Object[_0x19ead3(0x180)](_0x40a050)){if(_0x56e5db['rule']){const _0x4c09af=serializeRule(_0x56e5db['rule']),_0x21f1dc=_0xb76533['get'](_0x4c09af)||[];_0x21f1dc[_0x19ead3(0x171)](_0x4fc18e),_0xb76533[_0x19ead3(0x1a9)](_0x4c09af,_0x21f1dc);}}return _0xb76533;}export function buildLocalRuleToNameMappingFromJourney(_0x5f28bf){const _0x40816f=a148_0x3ea0,_0x44b3a7=_0x5f28bf[_0x40816f(0x19d)];if(!_0x44b3a7)return new Map();const _0x509458=collectSegmentUsageCounts(_0x5f28bf),_0x561fba=new Map();let _0xba7a36=0x0;for(const [_0x37d991,_0x43df91]of Object['entries'](_0x44b3a7)){if(!_0x43df91['rule']){_0xba7a36++;continue;}const _0xf070c6=serializeRule(_0x43df91['rule']),_0x25e8cb=_0x561fba[_0x40816f(0x18e)](_0xf070c6)||[];_0x25e8cb[_0x40816f(0x171)]({'name':_0x37d991,'index':_0xba7a36}),_0x561fba[_0x40816f(0x1a9)](_0xf070c6,_0x25e8cb),_0xba7a36++;}const _0x20548a=new Map();for(const [_0x213079,_0x28e2eb]of _0x561fba){const _0x35c3f9=_0x28e2eb['slice']()[_0x40816f(0x1ae)]((_0x2c7b00,_0x24c9c6)=>{const _0x27a854=_0x40816f,_0x574f96=_0x509458[_0x27a854(0x18e)](_0x2c7b00[_0x27a854(0x19e)])||0x0,_0x49fdc9=_0x509458[_0x27a854(0x18e)](_0x24c9c6[_0x27a854(0x19e)])||0x0;if(_0x574f96!==_0x49fdc9)return _0x49fdc9-_0x574f96;return _0x2c7b00['index']-_0x24c9c6['index'];})[_0x40816f(0x167)](_0x24009b=>_0x24009b['name']);_0x20548a['set'](_0x213079,_0x35c3f9);}return _0x20548a;}export function collectSegmentUsageCounts(_0xca4664){const _0x1286b6=a148_0x3ea0,_0x2990c8=new Map(),_0x11659b=_0x538775=>{const _0x305e11=a148_0x3ea0;if(!_0x538775)return;_0x2990c8['set'](_0x538775,(_0x2990c8[_0x305e11(0x18e)](_0x538775)||0x0)+0x1);},_0x3ceaa3=_0x521b34=>{const _0x57b474=a148_0x3ea0;for(const _0x4f00ce of _0x521b34){_0x11659b(_0x4f00ce[_0x57b474(0x173)]?.[_0x57b474(0x164)]);if(_0x4f00ce[_0x57b474(0x18b)])for(const _0x2b9f2d of _0x4f00ce[_0x57b474(0x18b)]){_0x11659b(_0x2b9f2d[_0x57b474(0x164)]);}_0x11659b(_0x4f00ce['milestone']?.[_0x57b474(0x164)]);if(_0x4f00ce[_0x57b474(0x1b0)])for(const _0xde2f11 of _0x4f00ce['steps']){if(_0xde2f11[_0x57b474(0x1a2)]==='decision_point')for(const _0x3b1adb of _0xde2f11[_0x57b474(0x191)]['branches']){_0x11659b(_0x3b1adb[_0x57b474(0x164)]);}else _0xde2f11[_0x57b474(0x1a2)]===_0x57b474(0x197)&&_0x11659b(_0xde2f11['with'][_0x57b474(0x1ad)]?.[_0x57b474(0x164)]);}}};_0x11659b(_0xca4664[_0x1286b6(0x177)]?.['segment']);if(_0xca4664[_0x1286b6(0x18d)])for(const _0x5ac248 of _0xca4664[_0x1286b6(0x18d)]){_0x11659b(_0x5ac248[_0x1286b6(0x177)]?.[_0x1286b6(0x164)]),_0x3ceaa3(_0x5ac248['stages']);}_0xca4664[_0x1286b6(0x17f)]&&_0x3ceaa3(_0xca4664[_0x1286b6(0x17f)]);if(_0xca4664['versions'])for(const _0x490f3a of _0xca4664[_0x1286b6(0x193)]){_0x3ceaa3(_0x490f3a[_0x1286b6(0x17f)]);}return _0x2990c8;}
|
|
1
|
+
(function(_0x1b8c77,_0x5b508d){const _0x5adadf=a148_0x3eff,_0x448f3f=_0x1b8c77();while(!![]){try{const _0x12c631=parseInt(_0x5adadf(0x1f5))/0x1+-parseInt(_0x5adadf(0x1f3))/0x2+-parseInt(_0x5adadf(0x1ef))/0x3*(parseInt(_0x5adadf(0x1d8))/0x4)+-parseInt(_0x5adadf(0x1d6))/0x5+parseInt(_0x5adadf(0x1b4))/0x6*(parseInt(_0x5adadf(0x1c2))/0x7)+-parseInt(_0x5adadf(0x1c1))/0x8+parseInt(_0x5adadf(0x1d1))/0x9;if(_0x12c631===_0x5b508d)break;else _0x448f3f['push'](_0x448f3f['shift']());}catch(_0x29eaa5){_0x448f3f['push'](_0x448f3f['shift']());}}}(a148_0x5eb0,0x9f722));import{serializeRule,deepSortObject}from'./child-segment-yaml.js';export const SEGMENT_KIND_JOURNEY=0x3;const MAX_MAPPING_CHAIN_DEPTH=0xa;export function sanitizeYamlKey(_0x39e9ec){const _0x133fe5=a148_0x3eff;return _0x39e9ec[_0x133fe5(0x1b6)]()[_0x133fe5(0x1dc)](/\s+/g,'_')[_0x133fe5(0x1dc)](/[^a-z0-9_\p{L}\p{N}]/gu,'')[_0x133fe5(0x1dc)](/_+/g,'_')[_0x133fe5(0x1dc)](/^_|_$/g,'');}export function generateJourneyLocalName(_0x33e067){const _0x3b43ab=a148_0x3eff,_0x3ee271=_0x33e067[_0x3b43ab(0x1c8)](/^journey_([a-z_]+)_([0-9a-f-]+)$/i);if(_0x3ee271){const _0x4c152e=_0x3ee271[0x1][_0x3b43ab(0x1b6)](),_0x19fa58=_0x3ee271[0x2],_0x3c1543=_0x19fa58['replace'](/-/g,'')[_0x3b43ab(0x1f2)](0x0,0x4)[_0x3b43ab(0x1b6)]();return _0x4c152e+'_'+_0x3c1543;}const _0x3ff7bf=_0x33e067[_0x3b43ab(0x1c8)](/^journey_\d+_stage_\d+_step_([0-9a-f-]+)_([a-z_]+)$/i);if(_0x3ff7bf){const _0x5395ec=_0x3ff7bf[0x1],_0x4a1483=_0x3ff7bf[0x2][_0x3b43ab(0x1b6)](),_0x142692=_0x5395ec[_0x3b43ab(0x1dc)](/-/g,'')[_0x3b43ab(0x1f2)](0x0,0x4)[_0x3b43ab(0x1b6)]();return _0x4a1483+'_'+_0x142692;}return undefined;}function stableStringify(_0x286943){const _0x1ca057=a148_0x3eff;if(Array[_0x1ca057(0x1f1)](_0x286943))return'['+_0x286943['map'](_0x447936=>stableStringify(_0x447936))[_0x1ca057(0x1ee)](',')+']';if(_0x286943&&typeof _0x286943===_0x1ca057(0x1b8)){const _0x5c9553=_0x286943,_0xd757ad=Object[_0x1ca057(0x1e7)](_0x5c9553)['sort'](),_0x5d6e68=_0xd757ad['map'](_0x509776=>'\x22'+_0x509776+'\x22:'+stableStringify(_0x5c9553[_0x509776]));return'{'+_0x5d6e68[_0x1ca057(0x1ee)](',')+'}';}const _0x26e4e1=JSON[_0x1ca057(0x1c6)](_0x286943);return _0x26e4e1===undefined?'null':_0x26e4e1;}export function consolidateActivationsByContent(_0x32a443){const _0x439e2e=a148_0x3eff,_0x3dad68={},_0x5742a4=new Map(),_0x460720=new Map();for(const _0x29b0e7 of _0x32a443){if(!_0x29b0e7)continue;for(const [_0x11c116,_0x1db11f]of Object[_0x439e2e(0x1d9)](_0x29b0e7)){const _0x2e3eca={'name':_0x1db11f['name'],'connection':_0x1db11f['connection'],..._0x1db11f[_0x439e2e(0x1eb)]!==undefined&&{'all_columns':_0x1db11f['all_columns']},..._0x1db11f[_0x439e2e(0x1c7)]!==undefined&&{'columns':_0x1db11f['columns']},..._0x1db11f[_0x439e2e(0x1cf)]!==undefined&&{'behavior':_0x1db11f['behavior']},..._0x1db11f[_0x439e2e(0x1df)]!==undefined&&{'schedule':_0x1db11f[_0x439e2e(0x1df)]},..._0x1db11f['notification']!==undefined&&{'notification':_0x1db11f[_0x439e2e(0x1e8)]},..._0x1db11f[_0x439e2e(0x1f0)]!==undefined&&{'connector_config':_0x1db11f[_0x439e2e(0x1f0)]},..._0x1db11f[_0x439e2e(0x1fa)]!==undefined&&{'activation_template_id':_0x1db11f[_0x439e2e(0x1fa)]}},_0x470bfa=stableStringify(_0x2e3eca),_0x5e9e33=_0x460720[_0x439e2e(0x1e5)](_0x470bfa);_0x5e9e33?_0x5742a4[_0x439e2e(0x1fd)](_0x11c116,_0x5e9e33):(_0x3dad68[_0x11c116]=_0x1db11f,_0x5742a4[_0x439e2e(0x1fd)](_0x11c116,_0x11c116),_0x460720[_0x439e2e(0x1fd)](_0x470bfa,_0x11c116));}}return{'merged':_0x3dad68,'nameMapping':_0x5742a4};}export function updateActivationReferences(_0x442a5d,_0x1eda10){const _0x24915b=a148_0x3eff;if(!_0x442a5d)return;for(const _0x492e3a of _0x442a5d){if(!_0x492e3a['steps'])continue;for(const _0x52fbed of _0x492e3a[_0x24915b(0x1e9)]){if(_0x52fbed[_0x24915b(0x1b7)]==='activation'&&_0x52fbed[_0x24915b(0x1c3)]?.['activation']){const _0x53a8dc=_0x1eda10['get'](_0x52fbed[_0x24915b(0x1c3)][_0x24915b(0x1da)]);_0x53a8dc&&_0x53a8dc!==_0x52fbed[_0x24915b(0x1c3)][_0x24915b(0x1da)]&&(_0x52fbed[_0x24915b(0x1c3)][_0x24915b(0x1da)]=_0x53a8dc);}}}}function a148_0x5eb0(){const _0xcf893b=['condition','set','.yml','has','draft','12llFiiW','some','toLowerCase','type','object','latest','branches','map','journeyStages','from','values','yaml','segment','5239064PKqFUh','2036699DQaTgL','with','journeys','endsWith','stringify','columns','match','journeyBundleName','entry_criteria','index','wait','activations','bundle_id','behavior','item','12669606XcVQxN','find','segments','launched','version_number','1145430uDzMmc','sort','8ONrqcM','entries','activation','name','replace','conditions','length','schedule','attributes','decision_point','versions','stages','.yaml','get','bundle_name','keys','notification','steps','merged','all_columns','goal','push','join','1113846fioIFo','connector_config','isArray','slice','1360912MSmqhJ','description','970431Wdjulp','rule','exit_criteria','milestone','startsWith','activation_template_id','version'];a148_0x5eb0=function(){return _0xcf893b;};return a148_0x5eb0();}export function consolidateSegmentsByContent(_0x230bf2,_0x251894){const _0x49b479=a148_0x3eff,_0xedabc6={},_0x3ead25=new Map(),_0x5dcd16=new Map();for(const _0x39fb17 of _0x230bf2){if(!_0x39fb17)continue;for(const [_0x13500a,_0x205950]of Object[_0x49b479(0x1d9)](_0x39fb17)){if(!_0x205950['rule']){_0xedabc6[_0x13500a]=_0x205950,_0x3ead25[_0x49b479(0x1fd)](_0x13500a,_0x13500a);continue;}const _0x2cce67=_0x205950['description']&&_0x205950[_0x49b479(0x1f4)]['trim']()?_0x205950[_0x49b479(0x1f4)]:undefined,_0x2283b0=JSON[_0x49b479(0x1c6)]({'description':_0x2cce67,'rule':deepSortObject(_0x205950[_0x49b479(0x1f6)])}),_0x19b30d=_0x5dcd16[_0x49b479(0x1e5)](_0x2283b0);if(_0x19b30d){const _0x119863={..._0x205950[_0x49b479(0x1f4)]!==undefined&&{'description':_0x205950[_0x49b479(0x1f4)]},'rule':_0x205950['rule']?deepSortObject(_0x205950[_0x49b479(0x1f6)]):_0x205950[_0x49b479(0x1f6)]};if(_0x13500a<_0x19b30d){_0xedabc6[_0x13500a]=_0x119863,delete _0xedabc6[_0x19b30d];for(const [_0x3bbe05,_0xe10eb5]of _0x3ead25[_0x49b479(0x1d9)]()){_0xe10eb5===_0x19b30d&&_0x3ead25['set'](_0x3bbe05,_0x13500a);}_0x3ead25['set'](_0x13500a,_0x13500a),_0x5dcd16['set'](_0x2283b0,_0x13500a);}else _0xedabc6[_0x19b30d]=_0x119863,_0x3ead25[_0x49b479(0x1fd)](_0x13500a,_0x19b30d);}else{let _0x4beabd=_0x13500a;if(_0x251894){const _0x1337ea=_0x251894[_0x49b479(0x1e5)](_0x2283b0);_0x1337ea&&_0x1337ea['length']>0x0&&(_0x4beabd=_0x1337ea[_0x49b479(0x1f2)]()[_0x49b479(0x1d7)]()[0x0]);}const _0x4fcd63={..._0x205950[_0x49b479(0x1f4)]!==undefined&&{'description':_0x205950[_0x49b479(0x1f4)]},'rule':_0x205950[_0x49b479(0x1f6)]?deepSortObject(_0x205950[_0x49b479(0x1f6)]):_0x205950[_0x49b479(0x1f6)]};_0xedabc6[_0x4beabd]=_0x4fcd63,_0x3ead25['set'](_0x13500a,_0x4beabd),_0x5dcd16[_0x49b479(0x1fd)](_0x2283b0,_0x4beabd);}}}return{'merged':_0xedabc6,'nameMapping':_0x3ead25};}export function updateSegmentReferences(_0x3837ae,_0x469890){const _0x5aa124=a148_0x3eff;if(!_0x3837ae)return;for(const _0x1373e2 of _0x3837ae){if(_0x1373e2[_0x5aa124(0x1ca)]?.[_0x5aa124(0x1c0)]){const _0x2a9180=_0x469890['get'](_0x1373e2[_0x5aa124(0x1ca)][_0x5aa124(0x1c0)]);_0x2a9180&&(_0x1373e2[_0x5aa124(0x1ca)][_0x5aa124(0x1c0)]=_0x2a9180);}if(_0x1373e2[_0x5aa124(0x1f7)])for(const _0x594935 of _0x1373e2['exit_criteria']){if(_0x594935[_0x5aa124(0x1c0)]){const _0x49aa04=_0x469890[_0x5aa124(0x1e5)](_0x594935[_0x5aa124(0x1c0)]);_0x49aa04&&(_0x594935[_0x5aa124(0x1c0)]=_0x49aa04);}}if(_0x1373e2[_0x5aa124(0x1f8)]?.[_0x5aa124(0x1c0)]){const _0x12b2fd=_0x469890[_0x5aa124(0x1e5)](_0x1373e2[_0x5aa124(0x1f8)][_0x5aa124(0x1c0)]);_0x12b2fd&&(_0x1373e2[_0x5aa124(0x1f8)][_0x5aa124(0x1c0)]=_0x12b2fd);}if(_0x1373e2[_0x5aa124(0x1e9)])for(const _0x49ece9 of _0x1373e2[_0x5aa124(0x1e9)]){if(_0x49ece9[_0x5aa124(0x1b7)]===_0x5aa124(0x1e1)&&_0x49ece9[_0x5aa124(0x1c3)]?.[_0x5aa124(0x1ba)])for(const _0x4df798 of _0x49ece9['with']['branches']){if(_0x4df798[_0x5aa124(0x1c0)]){const _0x236a52=_0x469890['get'](_0x4df798[_0x5aa124(0x1c0)]);_0x236a52&&(_0x4df798['segment']=_0x236a52);}}if(_0x49ece9[_0x5aa124(0x1b7)]===_0x5aa124(0x1cc)&&_0x49ece9[_0x5aa124(0x1c3)]?.[_0x5aa124(0x1fc)]?.['segment']){const _0x383178=_0x469890['get'](_0x49ece9['with'][_0x5aa124(0x1fc)][_0x5aa124(0x1c0)]);_0x383178&&(_0x49ece9[_0x5aa124(0x1c3)][_0x5aa124(0x1fc)][_0x5aa124(0x1c0)]=_0x383178);}}}}export function updateSegmentRefsInSegments(_0x4bba09,_0x2e4d4d){const _0x38fa46=a148_0x3eff;for(const _0x567f88 of Object[_0x38fa46(0x1be)](_0x4bba09)){_0x567f88[_0x38fa46(0x1f6)]&&updateSegmentRefsInRule(_0x567f88[_0x38fa46(0x1f6)],_0x2e4d4d);}}function updateSegmentRefsInRule(_0x29a519,_0x29a593){const _0xf3e705=a148_0x3eff;if(_0x29a519===null||typeof _0x29a519!==_0xf3e705(0x1b8))return;if(Array[_0xf3e705(0x1f1)](_0x29a519)){for(const _0x243ab5 of _0x29a519){updateSegmentRefsInRule(_0x243ab5,_0x29a593);}return;}const _0x59fbb1=_0x29a519;if((_0x59fbb1[_0xf3e705(0x1b7)]==='include'||_0x59fbb1[_0xf3e705(0x1b7)]==='exclude')&&typeof _0x59fbb1[_0xf3e705(0x1c0)]==='string'){const _0x4fbab1=_0x29a593[_0xf3e705(0x1e5)](_0x59fbb1['segment']);_0x4fbab1&&(_0x59fbb1['segment']=_0x4fbab1);}if(_0x59fbb1[_0xf3e705(0x1dd)]&&Array['isArray'](_0x59fbb1['conditions']))for(const _0x44f763 of _0x59fbb1[_0xf3e705(0x1dd)]){updateSegmentRefsInRule(_0x44f763,_0x29a593);}}export function buildJourneysArray(_0x1b74e3,_0xec257e){return _0x1b74e3['map'](_0x5dc889=>{const _0x32f9ae=a148_0x3eff,_0x5d4ff6=_0xec257e?_0x5dc889[_0x32f9ae(0x1d0)]['id']===_0xec257e:_0x1b74e3['length']===0x1,_0x47680d=_0x5dc889[_0x32f9ae(0x1bf)][_0x32f9ae(0x1c4)]?.[0x0],_0x24ef51=_0x47680d?.[_0x32f9ae(0x1ec)]||_0x5dc889[_0x32f9ae(0x1bf)][_0x32f9ae(0x1ec)],_0x10f59f={'version':_0x47680d?.[_0x32f9ae(0x1fb)]||_0x5dc889[_0x32f9ae(0x1bf)]['version']||_0x5dc889[_0x32f9ae(0x1d0)]['name'],'state':_0x5dc889[_0x32f9ae(0x1d0)]['state']==='launched'?_0x32f9ae(0x1d4):_0x32f9ae(0x1b3),'stages':_0x47680d?.[_0x32f9ae(0x1e3)]||_0x5dc889[_0x32f9ae(0x1bf)]['stages']||[],'id':_0x47680d?.['id']||_0x5dc889[_0x32f9ae(0x1bf)]['id'],'version_number':_0x47680d?.[_0x32f9ae(0x1d5)]||_0x5dc889[_0x32f9ae(0x1bf)][_0x32f9ae(0x1d5)]};return _0x24ef51&&(_0x10f59f['goal']=_0x24ef51),_0x5d4ff6&&(_0x10f59f[_0x32f9ae(0x1b9)]=!![]),_0x10f59f;});}export function buildMergedJourneyDef(_0x14595e,_0x415da4,_0x4be91a){const _0xf9cdf9=a148_0x3eff,_0x2ebfa4=_0x14595e[0x0][_0xf9cdf9(0x1bf)],_0x1589dc=buildJourneysArray(_0x14595e,_0x4be91a),{merged:_0x3f4127,nameMapping:_0x44f84c}=consolidateSegmentsByContent(_0x14595e[_0xf9cdf9(0x1bb)](_0x3fb2b4=>_0x3fb2b4[_0xf9cdf9(0x1bf)][_0xf9cdf9(0x1d3)]),_0x415da4);updateSegmentRefsInSegments(_0x3f4127,_0x44f84c);const _0x2f0fa5=Array[_0xf9cdf9(0x1bd)](_0x44f84c['entries']())['some'](([_0x49a0ad,_0x1a8086])=>_0x49a0ad!==_0x1a8086&&_0x49a0ad[_0xf9cdf9(0x1f9)]('entry_criteria'));let _0x145a36=_0x3f4127,_0x221a7b=new Map();if(_0x2f0fa5){const _0x570ce8=consolidateSegmentsByContent([_0x3f4127],_0x415da4);_0x145a36=_0x570ce8[_0xf9cdf9(0x1ea)],_0x221a7b=_0x570ce8['nameMapping'];}const _0x831706=new Map(_0x44f84c);for(const [_0x51efde,_0x22c933]of _0x221a7b[_0xf9cdf9(0x1d9)]()){_0x831706[_0xf9cdf9(0x1fd)](_0x51efde,_0x22c933);}for(const [_0x3d7c41,_0x12db41]of _0x831706['entries']()){let _0x371647=_0x12db41,_0x30c1f0=0x0;while(_0x831706[_0xf9cdf9(0x1ff)](_0x371647)&&_0x831706[_0xf9cdf9(0x1e5)](_0x371647)!==_0x371647&&_0x30c1f0<MAX_MAPPING_CHAIN_DEPTH){_0x371647=_0x831706[_0xf9cdf9(0x1e5)](_0x371647),_0x30c1f0++;}_0x371647!==_0x12db41&&_0x831706[_0xf9cdf9(0x1fd)](_0x3d7c41,_0x371647);}for(const _0x5b95c1 of _0x1589dc){updateSegmentReferences(_0x5b95c1['stages'],_0x831706);}const {merged:_0xb4dd40,nameMapping:_0x593bee}=consolidateActivationsByContent(_0x14595e['map'](_0x2c723c=>_0x2c723c[_0xf9cdf9(0x1bf)][_0xf9cdf9(0x1cd)]));for(const _0x4c380d of _0x1589dc){updateActivationReferences(_0x4c380d[_0xf9cdf9(0x1e3)],_0x593bee);}let _0x33267c=_0x2ebfa4[_0xf9cdf9(0x1ec)];if(_0x33267c?.[_0xf9cdf9(0x1c0)]){const _0x1228fa=_0x831706[_0xf9cdf9(0x1e5)](_0x33267c['segment']);_0x1228fa&&(_0x33267c={..._0x33267c,'segment':_0x1228fa});}for(const _0x6fd105 of _0x1589dc){if(_0x6fd105[_0xf9cdf9(0x1ec)]?.[_0xf9cdf9(0x1c0)]){const _0x5371e1=_0x831706[_0xf9cdf9(0x1e5)](_0x6fd105['goal'][_0xf9cdf9(0x1c0)]);_0x5371e1&&(_0x6fd105[_0xf9cdf9(0x1ec)]={..._0x6fd105[_0xf9cdf9(0x1ec)],'segment':_0x5371e1});}}return _0x1589dc[_0xf9cdf9(0x1b5)](_0x4a792c=>_0x4a792c[_0xf9cdf9(0x1ec)])&&(_0x33267c=undefined),{'type':'journey','name':_0x2ebfa4[_0xf9cdf9(0x1db)],'description':_0x2ebfa4[_0xf9cdf9(0x1f4)],'goal':_0x33267c,'reentry':_0x2ebfa4['reentry'],'segments':Object[_0xf9cdf9(0x1e7)](_0x145a36)[_0xf9cdf9(0x1de)]>0x0?_0x145a36:undefined,'activations':Object[_0xf9cdf9(0x1e7)](_0xb4dd40)[_0xf9cdf9(0x1de)]>0x0?_0xb4dd40:undefined,'journeys':_0x1589dc,'bundle_id':_0x2ebfa4[_0xf9cdf9(0x1ce)],'bundle_name':_0x2ebfa4[_0xf9cdf9(0x1e6)]};}export function createJumpTargetCache(){return new Map();}export async function resolveJumpTarget(_0xda17f2,_0x134891,_0x474f6e,_0xaa1751){const _0x1ec6af=a148_0x3eff,_0x4da7a5=_0xda17f2+':'+_0x134891,_0x2d4421=_0x474f6e[_0x1ec6af(0x1e5)](_0x4da7a5);if(_0x2d4421)return _0x2d4421;const _0x4f7dc4=await _0xaa1751(_0xda17f2),_0x532f18=_0x4f7dc4[_0x1ec6af(0x1e0)][_0x1ec6af(0x1c9)]||_0x4f7dc4['attributes'][_0x1ec6af(0x1db)],_0x22f4a1=_0x4f7dc4[_0x1ec6af(0x1e0)][_0x1ec6af(0x1bc)][_0x1ec6af(0x1d2)](_0x32e1dd=>String(_0x32e1dd['id'])===String(_0x134891)),_0x427e9e=_0x22f4a1?.['name']||_0x134891,_0x100bdc={'journeyName':_0x532f18,'stageName':_0x427e9e};return _0x474f6e[_0x1ec6af(0x1fd)](_0x4da7a5,_0x100bdc),_0x100bdc;}function a148_0x3eff(_0x21f259,_0x3727b0){_0x21f259=_0x21f259-0x1b3;const _0x5eb0ee=a148_0x5eb0();let _0x3effb8=_0x5eb0ee[_0x21f259];return _0x3effb8;}export function formatApiJourneyName(_0x1076a3,_0x47b757){return _0x47b757+'\x20('+_0x1076a3+')';}export function isLocalJourneyRef(_0x1bcc3c){const _0x48ce52=a148_0x3eff;return _0x1bcc3c[_0x48ce52(0x1c5)](_0x48ce52(0x1fe))||_0x1bcc3c[_0x48ce52(0x1c5)](_0x48ce52(0x1e4));}export function buildLocalRuleToNameMapping(_0x135090){const _0x508a78=a148_0x3eff,_0x481c09=new Map();if(!_0x135090)return _0x481c09;for(const [_0x314862,_0x574735]of Object[_0x508a78(0x1d9)](_0x135090)){if(_0x574735['rule']){const _0x4131cd=serializeRule(_0x574735[_0x508a78(0x1f6)]),_0x9b1103=_0x481c09['get'](_0x4131cd)||[];_0x9b1103[_0x508a78(0x1ed)](_0x314862),_0x481c09['set'](_0x4131cd,_0x9b1103);}}return _0x481c09;}export function buildLocalRuleToNameMappingFromJourney(_0x48c14c){const _0x1390ec=a148_0x3eff,_0x2044fb=_0x48c14c['segments'];if(!_0x2044fb)return new Map();const _0x5a7148=collectSegmentUsageCounts(_0x48c14c),_0x1ef2d1=new Map();let _0x14cc6a=0x0;for(const [_0x53bfc3,_0x3ae6b4]of Object[_0x1390ec(0x1d9)](_0x2044fb)){if(!_0x3ae6b4[_0x1390ec(0x1f6)]){_0x14cc6a++;continue;}const _0x4cd075=serializeRule(_0x3ae6b4[_0x1390ec(0x1f6)]),_0x430bba=_0x1ef2d1['get'](_0x4cd075)||[];_0x430bba[_0x1390ec(0x1ed)]({'name':_0x53bfc3,'index':_0x14cc6a}),_0x1ef2d1['set'](_0x4cd075,_0x430bba),_0x14cc6a++;}const _0x59d12a=new Map();for(const [_0x5d5798,_0x5cc15c]of _0x1ef2d1){const _0x14cb62=_0x5cc15c[_0x1390ec(0x1f2)]()[_0x1390ec(0x1d7)]((_0x19d451,_0x18a209)=>{const _0x34c6c8=_0x1390ec,_0x3a0c6f=_0x5a7148[_0x34c6c8(0x1e5)](_0x19d451[_0x34c6c8(0x1db)])||0x0,_0x1cab4f=_0x5a7148[_0x34c6c8(0x1e5)](_0x18a209[_0x34c6c8(0x1db)])||0x0;if(_0x3a0c6f!==_0x1cab4f)return _0x1cab4f-_0x3a0c6f;return _0x19d451[_0x34c6c8(0x1cb)]-_0x18a209[_0x34c6c8(0x1cb)];})[_0x1390ec(0x1bb)](_0x381c32=>_0x381c32[_0x1390ec(0x1db)]);_0x59d12a['set'](_0x5d5798,_0x14cb62);}return _0x59d12a;}export function collectSegmentUsageCounts(_0x2c242b){const _0x175dd7=a148_0x3eff,_0x22c3a3=new Map(),_0x45f342=_0x12cddd=>{const _0x4173a6=a148_0x3eff;if(!_0x12cddd)return;_0x22c3a3[_0x4173a6(0x1fd)](_0x12cddd,(_0x22c3a3[_0x4173a6(0x1e5)](_0x12cddd)||0x0)+0x1);},_0x3026a1=_0x1b972e=>{const _0x3f90a1=a148_0x3eff;for(const _0x304bb2 of _0x1b972e){_0x45f342(_0x304bb2[_0x3f90a1(0x1ca)]?.[_0x3f90a1(0x1c0)]);if(_0x304bb2[_0x3f90a1(0x1f7)])for(const _0x160d5c of _0x304bb2[_0x3f90a1(0x1f7)]){_0x45f342(_0x160d5c[_0x3f90a1(0x1c0)]);}_0x45f342(_0x304bb2[_0x3f90a1(0x1f8)]?.[_0x3f90a1(0x1c0)]);if(_0x304bb2[_0x3f90a1(0x1e9)])for(const _0x48d7d5 of _0x304bb2[_0x3f90a1(0x1e9)]){if(_0x48d7d5[_0x3f90a1(0x1b7)]===_0x3f90a1(0x1e1))for(const _0x242fbc of _0x48d7d5[_0x3f90a1(0x1c3)][_0x3f90a1(0x1ba)]){_0x45f342(_0x242fbc[_0x3f90a1(0x1c0)]);}else _0x48d7d5[_0x3f90a1(0x1b7)]===_0x3f90a1(0x1cc)&&_0x45f342(_0x48d7d5[_0x3f90a1(0x1c3)][_0x3f90a1(0x1fc)]?.[_0x3f90a1(0x1c0)]);}}};_0x45f342(_0x2c242b[_0x175dd7(0x1ec)]?.[_0x175dd7(0x1c0)]);if(_0x2c242b['journeys'])for(const _0x1e181b of _0x2c242b[_0x175dd7(0x1c4)]){_0x45f342(_0x1e181b[_0x175dd7(0x1ec)]?.[_0x175dd7(0x1c0)]),_0x3026a1(_0x1e181b[_0x175dd7(0x1e3)]);}_0x2c242b[_0x175dd7(0x1e3)]&&_0x3026a1(_0x2c242b[_0x175dd7(0x1e3)]);if(_0x2c242b[_0x175dd7(0x1e2)])for(const _0x207cae of _0x2c242b['versions']){_0x3026a1(_0x207cae[_0x175dd7(0x1e3)]);}return _0x22c3a3;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x2f24d2,_0x1bc835){const _0xa92776=a149_0x13c0,_0x4dcdad=_0x2f24d2();while(!![]){try{const _0x6e839f=-parseInt(_0xa92776(0x173))/0x1*(parseInt(_0xa92776(0x1ed))/0x2)+parseInt(_0xa92776(0x198))/0x3+parseInt(_0xa92776(0x1a9))/0x4*(-parseInt(_0xa92776(0x19c))/0x5)+-parseInt(_0xa92776(0x1eb))/0x6*(parseInt(_0xa92776(0x1b3))/0x7)+-parseInt(_0xa92776(0x1cd))/0x8*(-parseInt(_0xa92776(0x1d8))/0x9)+parseInt(_0xa92776(0x218))/0xa*(-parseInt(_0xa92776(0x1ca))/0xb)+parseInt(_0xa92776(0x17d))/0xc;if(_0x6e839f===_0x1bc835)break;else _0x4dcdad['push'](_0x4dcdad['shift']());}catch(_0x106dc9){_0x4dcdad['push'](_0x4dcdad['shift']());}}}(a149_0x5191,0x82d25));function a149_0x13c0(_0xb8c440,_0x25b00f){_0xb8c440=_0xb8c440-0x16f;const _0x519121=a149_0x5191();let _0x13c027=_0x519121[_0xb8c440];return _0x13c027;}import{JourneyDefSchema}from'./types/journey-schema.js';import{formatZodPath,flattenZodIssues,getLocationFromPath,pathToArray,validateRuleDef}from'./yaml-validator.js';const MAX_STAGES=0x8;function createIssue(_0x5d9296,_0xbe4592,_0x527712,_0x33f469,_0x1fdf57,_0x25c16c){const _0x4c93df=a149_0x13c0;return{'level':_0x5d9296,'path':_0xbe4592,'code':_0x527712,'message':_0x33f469,'location':getLocationFromPath(_0x1fdf57[_0x4c93df(0x193)],_0x1fdf57[_0x4c93df(0x1db)],pathToArray(_0x25c16c??_0xbe4592))};}function validateVersionStructure(_0x562380,_0x5538e5){const _0x1af6df=a149_0x13c0,_0x38d516=[];return _0x562380[_0x1af6df(0x227)]>MAX_STAGES&&_0x38d516[_0x1af6df(0x16f)](createIssue(_0x1af6df(0x229),_0x1af6df(0x189),'TOO_MANY_STAGES','Journey\x20has\x20'+_0x562380[_0x1af6df(0x227)]+_0x1af6df(0x21e)+MAX_STAGES,_0x5538e5)),_0x38d516;}function validateStageStructure(_0x27350c,_0x30b1fa,_0x263787,_0x285919){const _0x40f007=a149_0x13c0,_0x5dfb28=[],_0x5235c8=_0x40f007(0x217)+_0x30b1fa+']';_0x30b1fa===0x0&&!_0x27350c['entry_criteria']&&_0x5dfb28[_0x40f007(0x16f)](createIssue(_0x40f007(0x229),_0x5235c8+_0x40f007(0x216),_0x40f007(0x1c9),_0x40f007(0x1c4)+_0x27350c[_0x40f007(0x206)]+_0x40f007(0x183),_0x285919,_0x5235c8));const _0x30f831=_0x30b1fa===_0x263787-0x1;!_0x30f831&&!_0x27350c['milestone']&&_0x5dfb28[_0x40f007(0x16f)](createIssue(_0x40f007(0x229),_0x5235c8+_0x40f007(0x1e0),_0x40f007(0x1a3),'Stage\x20\x27'+_0x27350c[_0x40f007(0x206)]+_0x40f007(0x172),_0x285919,_0x5235c8));(!_0x27350c['exit_criteria']||_0x27350c[_0x40f007(0x181)][_0x40f007(0x227)]===0x0)&&_0x5dfb28[_0x40f007(0x16f)](createIssue(_0x40f007(0x214),_0x5235c8+'.exit_criteria',_0x40f007(0x226),_0x40f007(0x1c4)+_0x27350c[_0x40f007(0x206)]+'\x27\x20has\x20no\x20exit_criteria\x20defined',_0x285919,_0x5235c8));const _0x15b7e7=_0x27350c[_0x40f007(0x1c0)]?.[_0x40f007(0x227)]??0x0;if(_0x15b7e7===0x0)_0x5dfb28[_0x40f007(0x16f)](createIssue('error',_0x5235c8+'.steps',_0x40f007(0x22b),'Stage\x20\x27'+_0x27350c[_0x40f007(0x206)]+_0x40f007(0x1d3),_0x285919,_0x5235c8+_0x40f007(0x20a)));else{if(_0x15b7e7===0x1)_0x5dfb28[_0x40f007(0x16f)](createIssue(_0x40f007(0x214),_0x5235c8+_0x40f007(0x20a),_0x40f007(0x22b),_0x40f007(0x1c4)+_0x27350c[_0x40f007(0x206)]+'\x27\x20has\x20only\x201\x20step\x20(may\x20be\x20too\x20simple)',_0x285919,_0x5235c8+_0x40f007(0x20a)));else _0x15b7e7<=0x3&&_0x5dfb28[_0x40f007(0x16f)](createIssue(_0x40f007(0x214),_0x5235c8+'.steps',_0x40f007(0x1c3),_0x40f007(0x1c4)+_0x27350c[_0x40f007(0x206)]+_0x40f007(0x1a0)+_0x15b7e7+_0x40f007(0x20f),_0x285919,_0x5235c8+_0x40f007(0x20a)));}return _0x5dfb28;}function validateStep(_0x151598,_0x1fa7ba,_0x279740,_0x587f2a){const _0xb037e9=a149_0x13c0,_0x51b1a3=[];if(_0x151598[_0xb037e9(0x19b)]==='end')return _0x151598[_0xb037e9(0x199)]&&_0x51b1a3['push'](createIssue(_0xb037e9(0x229),_0x1fa7ba+_0xb037e9(0x1de),_0xb037e9(0x190),_0xb037e9(0x20e)+_0x151598[_0xb037e9(0x206)]+_0xb037e9(0x1fc),_0x279740)),_0xb037e9(0x1d0)in _0x151598&&_0x151598['with']!==undefined&&_0x51b1a3[_0xb037e9(0x16f)](createIssue('error',_0x1fa7ba+_0xb037e9(0x1d6),'END_STEP_HAS_NEXT_OR_WITH',_0xb037e9(0x20e)+_0x151598['name']+_0xb037e9(0x1be),_0x279740)),_0x51b1a3;_0x151598[_0xb037e9(0x199)]&&(_0x279740[_0xb037e9(0x1d5)]&&!_0x279740['stepNames']['has'](_0x151598[_0xb037e9(0x199)])&&_0x51b1a3[_0xb037e9(0x16f)](createIssue(_0xb037e9(0x229),_0x1fa7ba+'.next',_0xb037e9(0x1b7),_0xb037e9(0x204)+_0x151598[_0xb037e9(0x199)]+'\x27',_0x279740)));switch(_0x151598[_0xb037e9(0x19b)]){case _0xb037e9(0x1b4):_0x51b1a3[_0xb037e9(0x16f)](...validateWaitStep(_0x151598,_0x1fa7ba,_0x279740,_0x587f2a));break;case _0xb037e9(0x1c5):_0x51b1a3[_0xb037e9(0x16f)](...validateActivationStep(_0x151598,_0x1fa7ba,_0x279740));break;case _0xb037e9(0x1b9):_0x51b1a3[_0xb037e9(0x16f)](...validateDecisionPointStep(_0x151598,_0x1fa7ba,_0x279740,_0x587f2a));break;case _0xb037e9(0x1a5):_0x51b1a3[_0xb037e9(0x16f)](...validateAbTestStep(_0x151598,_0x1fa7ba,_0x279740,_0x587f2a));break;case'jump':_0x51b1a3[_0xb037e9(0x16f)](...validateJumpStep(_0x151598,_0x1fa7ba,_0x279740));break;}return _0x51b1a3;}function validateWaitStep(_0x59ef2e,_0x197fb2,_0x233f00,_0x55f697){const _0x4c268c=a149_0x13c0,_0x5ad966=[];if(!_0x59ef2e[_0x4c268c(0x1d0)])return _0x5ad966[_0x4c268c(0x16f)](createIssue(_0x4c268c(0x229),_0x197fb2+'.with','MISSING_WAIT_PARAMS',_0x4c268c(0x1fa),_0x233f00,_0x197fb2)),_0x5ad966;if(_0x59ef2e['with'][_0x4c268c(0x18b)]){const _0x5ea4ed=_0x59ef2e[_0x4c268c(0x1d0)][_0x4c268c(0x18b)];if(_0x5ea4ed[_0x4c268c(0x1a2)]){_0x233f00[_0x4c268c(0x20c)]?.[_0x4c268c(0x179)](_0x5ea4ed[_0x4c268c(0x1a2)]);!_0x5ea4ed[_0x4c268c(0x1a2)][_0x4c268c(0x195)]('ref:')&&(_0x233f00[_0x4c268c(0x194)]&&!_0x233f00[_0x4c268c(0x194)][_0x4c268c(0x1fe)](_0x5ea4ed[_0x4c268c(0x1a2)])&&_0x5ad966[_0x4c268c(0x16f)](createIssue(_0x4c268c(0x229),_0x197fb2+_0x4c268c(0x1e6),_0x4c268c(0x1ad),'Wait\x20condition\x20references\x20undefined\x20segment\x20\x27'+_0x5ea4ed[_0x4c268c(0x1a2)]+_0x4c268c(0x1a7),_0x233f00)));_0x5ea4ed[_0x4c268c(0x199)]&&_0x233f00[_0x4c268c(0x1d5)]&&!_0x233f00[_0x4c268c(0x1d5)][_0x4c268c(0x1fe)](_0x5ea4ed[_0x4c268c(0x199)])&&_0x5ad966[_0x4c268c(0x16f)](createIssue(_0x4c268c(0x229),_0x197fb2+_0x4c268c(0x17e),_0x4c268c(0x1b7),'Wait\x20condition\x20references\x20non-existent\x20step\x20\x27'+_0x5ea4ed[_0x4c268c(0x199)]+'\x27',_0x233f00));_0x5ea4ed[_0x4c268c(0x213)]?.[_0x4c268c(0x199)]&&_0x233f00[_0x4c268c(0x1d5)]&&!_0x233f00[_0x4c268c(0x1d5)]['has'](_0x5ea4ed[_0x4c268c(0x213)][_0x4c268c(0x199)])&&_0x5ad966[_0x4c268c(0x16f)](createIssue('error',_0x197fb2+_0x4c268c(0x207),_0x4c268c(0x1b7),_0x4c268c(0x21f)+_0x5ea4ed['timeout'][_0x4c268c(0x199)]+'\x27',_0x233f00));const _0x58f4dc=_0x5ea4ed[_0x4c268c(0x199)]||_0x59ef2e[_0x4c268c(0x199)],_0x8bc091=_0x5ea4ed[_0x4c268c(0x213)]?.['next']||_0x59ef2e[_0x4c268c(0x199)];if(_0x58f4dc){const _0x3f4f45=_0x55f697[_0x4c268c(0x1cc)](_0x58f4dc);_0x3f4f45?.[_0x4c268c(0x19b)]===_0x4c268c(0x1f3)&&_0x5ad966[_0x4c268c(0x16f)](createIssue('warning',_0x197fb2+_0x4c268c(0x17e),_0x4c268c(0x1af),_0x4c268c(0x20b)+_0x58f4dc+_0x4c268c(0x1ee),_0x233f00,_0x197fb2+_0x4c268c(0x1f5)));}if(_0x8bc091){const _0x558f5a=_0x55f697[_0x4c268c(0x1cc)](_0x8bc091);_0x558f5a?.['type']===_0x4c268c(0x1f3)&&_0x5ad966[_0x4c268c(0x16f)](createIssue(_0x4c268c(0x214),_0x197fb2+'.with.condition.timeout.next',_0x4c268c(0x1af),'Wait\x20condition\x20timeout\x20path\x20goes\x20directly\x20to\x20merge\x20step\x20\x27'+_0x8bc091+_0x4c268c(0x1ee),_0x233f00,_0x197fb2+_0x4c268c(0x20d)));}}}return _0x5ad966;}function validateActivationStep(_0x2211d3,_0x3cbb68,_0x3d43ed){const _0x1ab069=a149_0x13c0,_0x23a5cb=[];if(!_0x2211d3[_0x1ab069(0x1d0)]?.['activation'])return _0x23a5cb['push'](createIssue(_0x1ab069(0x229),_0x3cbb68+'.with.activation','MISSING_ACTIVATION_REF',_0x1ab069(0x180),_0x3d43ed,_0x3cbb68)),_0x23a5cb;const _0x22ce68=_0x2211d3[_0x1ab069(0x1d0)]['activation'];return _0x3d43ed[_0x1ab069(0x17f)]&&!_0x22ce68['startsWith'](_0x1ab069(0x175))&&(!_0x3d43ed[_0x1ab069(0x17f)][_0x1ab069(0x1fe)](_0x22ce68)&&_0x23a5cb['push'](createIssue(_0x1ab069(0x229),_0x3cbb68+'.with.activation',_0x1ab069(0x205),_0x1ab069(0x1f1)+_0x22ce68+_0x1ab069(0x1b5),_0x3d43ed))),_0x23a5cb;}function validateDecisionPointStep(_0x286091,_0x5ed8b7,_0x1b667c,_0x2d3261){const _0x5dffd7=a149_0x13c0,_0x47fdb4=[];if(!_0x286091[_0x5dffd7(0x1d0)]?.[_0x5dffd7(0x1e4)]||_0x286091['with'][_0x5dffd7(0x1e4)]['length']===0x0)return _0x47fdb4[_0x5dffd7(0x16f)](createIssue(_0x5dffd7(0x229),_0x5ed8b7+_0x5dffd7(0x210),_0x5dffd7(0x1f8),_0x5dffd7(0x171),_0x1b667c,_0x5ed8b7)),_0x47fdb4;for(let _0x2e9cd4=0x0;_0x2e9cd4<_0x286091[_0x5dffd7(0x1d0)][_0x5dffd7(0x1e4)][_0x5dffd7(0x227)];_0x2e9cd4++){const _0x256949=_0x286091[_0x5dffd7(0x1d0)][_0x5dffd7(0x1e4)][_0x2e9cd4],_0x2cbe0d=_0x5ed8b7+_0x5dffd7(0x18d)+_0x2e9cd4+']';_0x256949[_0x5dffd7(0x1a2)]&&!_0x256949[_0x5dffd7(0x196)]&&(_0x1b667c['referencedSegments']?.[_0x5dffd7(0x179)](_0x256949[_0x5dffd7(0x1a2)]),!_0x256949[_0x5dffd7(0x1a2)][_0x5dffd7(0x195)]('ref:')&&(_0x1b667c[_0x5dffd7(0x194)]&&!_0x1b667c[_0x5dffd7(0x194)][_0x5dffd7(0x1fe)](_0x256949['segment'])&&_0x47fdb4[_0x5dffd7(0x16f)](createIssue(_0x5dffd7(0x229),_0x2cbe0d+_0x5dffd7(0x1da),_0x5dffd7(0x1ad),_0x5dffd7(0x1f6)+_0x256949[_0x5dffd7(0x1a2)]+'\x27',_0x1b667c))));_0x256949['next']&&_0x1b667c[_0x5dffd7(0x1d5)]&&!_0x1b667c[_0x5dffd7(0x1d5)]['has'](_0x256949['next'])&&_0x47fdb4[_0x5dffd7(0x16f)](createIssue(_0x5dffd7(0x229),_0x2cbe0d+'.next',_0x5dffd7(0x1b7),_0x5dffd7(0x1d2)+_0x256949['next']+'\x27',_0x1b667c));if(_0x256949[_0x5dffd7(0x199)]){const _0x1e428f=_0x2d3261[_0x5dffd7(0x1cc)](_0x256949[_0x5dffd7(0x199)]);_0x1e428f?.[_0x5dffd7(0x19b)]===_0x5dffd7(0x1f3)&&_0x47fdb4[_0x5dffd7(0x16f)](createIssue('warning',_0x2cbe0d+'.next',_0x5dffd7(0x1af),_0x5dffd7(0x19e)+_0x256949[_0x5dffd7(0x206)]+_0x5dffd7(0x202)+_0x256949[_0x5dffd7(0x199)]+_0x5dffd7(0x1b2),_0x1b667c));}}return _0x47fdb4;}function validateAbTestStep(_0x4d199c,_0x278591,_0x6b0ee5,_0x478d08){const _0x38d396=a149_0x13c0,_0xe88e95=[];if(!_0x4d199c[_0x38d396(0x1d0)]?.[_0x38d396(0x21a)]||_0x4d199c[_0x38d396(0x1d0)][_0x38d396(0x21a)][_0x38d396(0x227)]===0x0)return _0xe88e95['push'](createIssue('error',_0x278591+_0x38d396(0x1bd),_0x38d396(0x1f8),_0x38d396(0x1e8),_0x6b0ee5,_0x278591)),_0xe88e95;const _0x192039=_0x4d199c[_0x38d396(0x1d0)][_0x38d396(0x21a)][_0x38d396(0x209)]((_0x4044ee,_0x4ba2ab)=>_0x4044ee+(_0x4ba2ab[_0x38d396(0x223)]||0x0),0x0);Math[_0x38d396(0x176)](_0x192039-0x64)>0.01&&_0xe88e95[_0x38d396(0x16f)](createIssue(_0x38d396(0x229),_0x278591+'.with.variants',_0x38d396(0x212),'A/B\x20test\x20variant\x20percentages\x20must\x20sum\x20to\x20100%\x20(got\x20'+_0x192039+'%)',_0x6b0ee5));for(let _0x184a41=0x0;_0x184a41<_0x4d199c[_0x38d396(0x1d0)][_0x38d396(0x21a)][_0x38d396(0x227)];_0x184a41++){const _0xb2db57=_0x4d199c[_0x38d396(0x1d0)][_0x38d396(0x21a)][_0x184a41],_0x513ffc=_0x278591+'.with.variants['+_0x184a41+']';_0xb2db57[_0x38d396(0x199)]&&_0x6b0ee5['stepNames']&&!_0x6b0ee5[_0x38d396(0x1d5)][_0x38d396(0x1fe)](_0xb2db57[_0x38d396(0x199)])&&_0xe88e95['push'](createIssue('error',_0x513ffc+_0x38d396(0x1de),_0x38d396(0x1b7),'A/B\x20test\x20variant\x20references\x20non-existent\x20step\x20\x27'+_0xb2db57[_0x38d396(0x199)]+'\x27',_0x6b0ee5));if(_0xb2db57[_0x38d396(0x199)]){const _0x53c96=_0x478d08[_0x38d396(0x1cc)](_0xb2db57[_0x38d396(0x199)]);_0x53c96?.[_0x38d396(0x19b)]===_0x38d396(0x1f3)&&_0xe88e95[_0x38d396(0x16f)](createIssue(_0x38d396(0x214),_0x513ffc+_0x38d396(0x1de),_0x38d396(0x1af),_0x38d396(0x1ba)+_0xb2db57['name']+_0x38d396(0x202)+_0xb2db57['next']+_0x38d396(0x1b2),_0x6b0ee5));}}return _0xe88e95;}function validateJumpStep(_0x411d9d,_0x4fb793,_0x3109c3){const _0x4a5761=a149_0x13c0,_0x20b0ff=[];if(!_0x411d9d[_0x4a5761(0x1d0)]?.[_0x4a5761(0x191)])return _0x20b0ff[_0x4a5761(0x16f)](createIssue(_0x4a5761(0x229),_0x4fb793+_0x4a5761(0x18a),_0x4a5761(0x1f9),_0x4a5761(0x197),_0x3109c3,_0x4fb793)),_0x20b0ff;return(!_0x411d9d[_0x4a5761(0x1d0)]['target']['journey']||!_0x411d9d['with'][_0x4a5761(0x191)]['stage'])&&_0x20b0ff[_0x4a5761(0x16f)](createIssue(_0x4a5761(0x229),_0x4fb793+_0x4a5761(0x18a),'INVALID_JUMP_TARGET',_0x4a5761(0x1fb),_0x3109c3)),_0x20b0ff;}function buildConvergenceMap(_0x137893){const _0x4024d0=a149_0x13c0,_0x183378=new Map();function _0x4a3475(_0x532a48,_0x312498){const _0x29906b=a149_0x13c0,_0x201e6c=_0x183378[_0x29906b(0x1cc)](_0x532a48)||[];_0x201e6c[_0x29906b(0x16f)](_0x312498),_0x183378['set'](_0x532a48,_0x201e6c);}for(const _0x4c3227 of _0x137893){_0x4c3227[_0x4024d0(0x199)]&&_0x4a3475(_0x4c3227[_0x4024d0(0x199)],{'stepName':_0x4c3227[_0x4024d0(0x206)],'description':'step\x20\x27'+_0x4c3227[_0x4024d0(0x206)]+'\x27'});if(_0x4c3227[_0x4024d0(0x19b)]===_0x4024d0(0x1b9)&&_0x4c3227['with']?.[_0x4024d0(0x1e4)])for(const _0x2e33ba of _0x4c3227[_0x4024d0(0x1d0)][_0x4024d0(0x1e4)]){_0x2e33ba[_0x4024d0(0x199)]&&_0x4a3475(_0x2e33ba['next'],{'stepName':_0x4c3227[_0x4024d0(0x206)],'description':_0x4024d0(0x174)+_0x2e33ba['name']+'\x27\x20of\x20\x27'+_0x4c3227[_0x4024d0(0x206)]+'\x27'});}if(_0x4c3227[_0x4024d0(0x19b)]===_0x4024d0(0x1a5)&&_0x4c3227[_0x4024d0(0x1d0)]?.['variants'])for(const _0x92b6c3 of _0x4c3227['with'][_0x4024d0(0x21a)]){_0x92b6c3[_0x4024d0(0x199)]&&_0x4a3475(_0x92b6c3[_0x4024d0(0x199)],{'stepName':_0x4c3227[_0x4024d0(0x206)],'description':_0x4024d0(0x1fd)+_0x92b6c3[_0x4024d0(0x206)]+_0x4024d0(0x1a6)+_0x4c3227['name']+'\x27'});}_0x4c3227['type']===_0x4024d0(0x1b4)&&_0x4c3227[_0x4024d0(0x1d0)]?.['condition']&&(_0x4c3227[_0x4024d0(0x1d0)][_0x4024d0(0x18b)]['next']&&_0x4a3475(_0x4c3227['with'][_0x4024d0(0x18b)][_0x4024d0(0x199)],{'stepName':_0x4c3227[_0x4024d0(0x206)],'description':_0x4024d0(0x19a)+_0x4c3227['name']+'\x27'}),_0x4c3227[_0x4024d0(0x1d0)]['condition'][_0x4024d0(0x213)]?.[_0x4024d0(0x199)]&&_0x4a3475(_0x4c3227[_0x4024d0(0x1d0)][_0x4024d0(0x18b)]['timeout'][_0x4024d0(0x199)],{'stepName':_0x4c3227[_0x4024d0(0x206)],'description':_0x4024d0(0x1f4)+_0x4c3227[_0x4024d0(0x206)]+'\x27'}));}return _0x183378;}function validateFlowControl(_0x2dff6d,_0x296b85,_0x1758a7){const _0xbfa734=a149_0x13c0,_0x85944b=[],_0x264579=_0xbfa734(0x217)+_0x296b85+']',_0x4d7ffd=_0x2dff6d['steps']||[];if(_0x4d7ffd['length']===0x0)return _0x85944b;const _0x5c6621=new Map();for(const _0x61cdbe of _0x4d7ffd){_0x61cdbe[_0xbfa734(0x206)]&&_0x5c6621[_0xbfa734(0x1bf)](_0x61cdbe['name'],_0x61cdbe);}const _0x2366a0=buildConvergenceMap(_0x4d7ffd),_0x43b189=_0x4d7ffd[_0xbfa734(0x221)](_0x85cfc7=>_0x85cfc7[_0xbfa734(0x19b)]===_0xbfa734(0x1c7));!_0x43b189&&_0x85944b[_0xbfa734(0x16f)](createIssue(_0xbfa734(0x229),_0x264579+_0xbfa734(0x20a),_0xbfa734(0x17b),_0xbfa734(0x1c4)+_0x2dff6d[_0xbfa734(0x206)]+'\x27\x20has\x20no\x20end\x20step',_0x1758a7));for(const [_0x314550,_0x33a223]of _0x2366a0){const _0x2c55e6=_0x5c6621[_0xbfa734(0x1cc)](_0x314550);if(!_0x2c55e6)continue;if(_0x33a223[_0xbfa734(0x227)]>0x1&&_0x2c55e6[_0xbfa734(0x19b)]!=='merge'){const _0x32f812=_0x33a223[_0xbfa734(0x1ab)](_0x37c69b=>_0x37c69b['description'])[_0xbfa734(0x1e3)](',\x20');_0x85944b[_0xbfa734(0x16f)](createIssue('error',_0x264579+_0xbfa734(0x20a),_0xbfa734(0x222),'Multiple\x20paths\x20converge\x20on\x20non-merge\x20step\x20\x27'+_0x314550+_0xbfa734(0x192)+_0x32f812+_0xbfa734(0x185),_0x1758a7));}_0x33a223['length']===0x1&&_0x2c55e6['type']===_0xbfa734(0x1f3)&&_0x85944b[_0xbfa734(0x16f)](createIssue(_0xbfa734(0x214),_0x264579+_0xbfa734(0x20a),_0xbfa734(0x1e7),'Merge\x20step\x20\x27'+_0x314550+_0xbfa734(0x21b)+_0x33a223[0x0][_0xbfa734(0x1c8)]+_0xbfa734(0x203),_0x1758a7));}for(const _0xdfc044 of _0x4d7ffd){if(_0xdfc044[_0xbfa734(0x19b)]===_0xbfa734(0x1f3)&&_0xdfc044[_0xbfa734(0x199)]){const _0x39519a=_0x5c6621[_0xbfa734(0x1cc)](_0xdfc044[_0xbfa734(0x199)]);_0x39519a?.[_0xbfa734(0x19b)]===_0xbfa734(0x1f3)&&_0x85944b[_0xbfa734(0x16f)](createIssue(_0xbfa734(0x229),_0x264579+_0xbfa734(0x20a),_0xbfa734(0x1bc),_0xbfa734(0x1ea)+_0xdfc044[_0xbfa734(0x206)]+_0xbfa734(0x220)+_0xdfc044[_0xbfa734(0x199)]+_0xbfa734(0x1ce),_0x1758a7));}}return _0x85944b;}function validateCriteria(_0x1ff41c,_0x1ac827,_0x316794){const _0x412694=a149_0x13c0,_0x541664=[];return _0x1ff41c[_0x412694(0x1a2)]&&(_0x316794['referencedSegments']?.[_0x412694(0x179)](_0x1ff41c[_0x412694(0x1a2)]),!_0x1ff41c[_0x412694(0x1a2)][_0x412694(0x195)]('ref:')&&(_0x316794[_0x412694(0x194)]&&!_0x316794[_0x412694(0x194)][_0x412694(0x1fe)](_0x1ff41c[_0x412694(0x1a2)])&&_0x541664['push'](createIssue(_0x412694(0x229),_0x1ac827+_0x412694(0x1da),_0x412694(0x1ad),_0x412694(0x1b0)+_0x1ff41c[_0x412694(0x1a2)]+'\x27',_0x316794)))),_0x541664;}function validateEmbeddedSegment(_0x5d0c02,_0x6378cc,_0x449da8){const _0x544a1b=a149_0x13c0,_0x437ce8=[];return _0x5d0c02[_0x544a1b(0x21c)]&&_0x437ce8['push'](...validateRuleDef(_0x5d0c02[_0x544a1b(0x21c)],_0x6378cc+_0x544a1b(0x1c2),_0x449da8)),_0x437ce8;}function validateStage(_0x2d1c7b,_0x20c22f,_0x486447,_0x190694){const _0x59da13=a149_0x13c0,_0x3d0c8d=[],_0x3e0c1d=_0x59da13(0x217)+_0x20c22f+']',_0x5c6fa1=new Map(),_0x28335b=new Map();if(_0x2d1c7b[_0x59da13(0x1c0)]){for(let _0x24e5e6=0x0;_0x24e5e6<_0x2d1c7b[_0x59da13(0x1c0)]['length'];_0x24e5e6++){const _0x1cdfa9=_0x2d1c7b[_0x59da13(0x1c0)][_0x24e5e6];_0x1cdfa9[_0x59da13(0x206)]&&_0x5c6fa1[_0x59da13(0x1bf)](_0x1cdfa9[_0x59da13(0x206)],_0x1cdfa9);}for(let _0x3780b0=0x0;_0x3780b0<_0x2d1c7b[_0x59da13(0x1c0)][_0x59da13(0x227)];_0x3780b0++){const _0x3481eb=_0x2d1c7b['steps'][_0x3780b0],_0x59d428=_0x3e0c1d+_0x59da13(0x18f)+_0x3780b0+']';if(_0x3481eb[_0x59da13(0x206)]){if(_0x28335b[_0x59da13(0x1fe)](_0x3481eb[_0x59da13(0x206)])){const _0x516ff8=_0x28335b[_0x59da13(0x1cc)](_0x3481eb[_0x59da13(0x206)]);_0x3d0c8d[_0x59da13(0x16f)](createIssue('error',_0x59d428+_0x59da13(0x1d1),_0x59da13(0x1ac),_0x59da13(0x177)+_0x3481eb[_0x59da13(0x206)]+_0x59da13(0x1c1)+_0x516ff8+'])',_0x190694));}else _0x28335b[_0x59da13(0x1bf)](_0x3481eb[_0x59da13(0x206)],_0x3780b0);}_0x3d0c8d[_0x59da13(0x16f)](...validateStep(_0x3481eb,_0x59d428,_0x190694,_0x5c6fa1));}}_0x2d1c7b[_0x59da13(0x1ff)]&&_0x3d0c8d[_0x59da13(0x16f)](...validateCriteria(_0x2d1c7b[_0x59da13(0x1ff)],_0x3e0c1d+'.entry_criteria',_0x190694));if(_0x2d1c7b[_0x59da13(0x181)])for(let _0x2ffb90=0x0;_0x2ffb90<_0x2d1c7b[_0x59da13(0x181)][_0x59da13(0x227)];_0x2ffb90++){_0x3d0c8d[_0x59da13(0x16f)](...validateCriteria(_0x2d1c7b[_0x59da13(0x181)][_0x2ffb90],_0x3e0c1d+'.exit_criteria['+_0x2ffb90+']',_0x190694));}return _0x2d1c7b[_0x59da13(0x17c)]&&_0x3d0c8d[_0x59da13(0x16f)](...validateCriteria(_0x2d1c7b[_0x59da13(0x17c)],_0x3e0c1d+'.milestone',_0x190694)),_0x3d0c8d[_0x59da13(0x16f)](...validateStageStructure(_0x2d1c7b,_0x20c22f,_0x486447,_0x190694)),_0x3d0c8d[_0x59da13(0x16f)](...validateFlowControl(_0x2d1c7b,_0x20c22f,_0x190694)),_0x3d0c8d;}function validateStagesForVersion(_0x442f47,_0x552689,_0x4bf257,_0x70966a,_0x221a3c,_0x577e14,_0x5e4dc9){const _0x1501f6=a149_0x13c0;if(_0x442f47[_0x1501f6(0x227)]===0x0){_0x221a3c[_0x1501f6(0x16f)]({'level':_0x1501f6(0x229),'path':_0x70966a+_0x1501f6(0x189),'code':_0x1501f6(0x1dd),'message':_0x1501f6(0x1d9),'location':getLocationFromPath(_0x4bf257['document'],_0x4bf257[_0x1501f6(0x1db)],['stages'])});return;}const _0x24b3f4=new Set();for(const _0x2143be of _0x442f47){if(_0x2143be['steps'])for(const _0x5793b7 of _0x2143be[_0x1501f6(0x1c0)]){_0x5793b7[_0x1501f6(0x206)]&&_0x24b3f4[_0x1501f6(0x179)](_0x5793b7['name']);}}const _0x584efd={..._0x4bf257,'stepNames':_0x24b3f4},_0x1fe9a9=validateVersionStructure(_0x442f47,_0x584efd);for(const _0x25794a of _0x1fe9a9){const _0x5c0226=_0x70966a?{..._0x25794a,'path':''+_0x70966a+_0x25794a[_0x1501f6(0x1c6)]}:_0x25794a;if(_0x5c0226[_0x1501f6(0x182)]===_0x1501f6(0x229))_0x221a3c['push'](_0x5c0226);else _0x577e14[_0x1501f6(0x16f)](_0x5c0226);}for(let _0x136e94=0x0;_0x136e94<_0x442f47[_0x1501f6(0x227)];_0x136e94++){const _0x577a05=validateStage(_0x442f47[_0x136e94],_0x136e94,_0x442f47['length'],_0x584efd);for(const _0x54fb26 of _0x577a05){const _0x457dfb=_0x70966a?{..._0x54fb26,'path':''+_0x70966a+_0x54fb26[_0x1501f6(0x1c6)]}:_0x54fb26;if(_0x457dfb['level']===_0x1501f6(0x229))_0x221a3c['push'](_0x457dfb);else _0x577e14[_0x1501f6(0x16f)](_0x457dfb);}}if(_0x552689[_0x1501f6(0x1cb)]){const _0x41e7b6=_0x5e4dc9?.[_0x1501f6(0x1ae)]?'goal':_0x70966a+_0x1501f6(0x1cb),_0x1dc84e=validateCriteria(_0x552689[_0x1501f6(0x1cb)],_0x41e7b6,_0x584efd);for(const _0x15172d of _0x1dc84e){if(_0x15172d[_0x1501f6(0x182)]===_0x1501f6(0x229))_0x221a3c[_0x1501f6(0x16f)](_0x15172d);else _0x577e14[_0x1501f6(0x16f)](_0x15172d);}}}function extractVersionIndex(_0x4b6b80){const _0x3c3436=a149_0x13c0,_0x557f7c=_0x4b6b80[_0x3c3436(0x18c)](/^journeys\[(\d+)\]\./);return _0x557f7c?_0x557f7c[0x1]:undefined;}function deduplicateAcrossVersions(_0x1e5b72){const _0x442f1e=a149_0x13c0,_0x33ee18=new Map();for(let _0x24e1e5=0x0;_0x24e1e5<_0x1e5b72[_0x442f1e(0x227)];_0x24e1e5++){const _0x288c31=_0x1e5b72[_0x24e1e5][_0x442f1e(0x1df)]+':'+_0x1e5b72[_0x24e1e5]['message'],_0x2c6932=extractVersionIndex(_0x1e5b72[_0x24e1e5][_0x442f1e(0x1c6)]),_0x33abf6=_0x33ee18['get'](_0x288c31);if(_0x33abf6){_0x33abf6[_0x442f1e(0x1ec)]['push'](_0x24e1e5);if(_0x2c6932)_0x33abf6[_0x442f1e(0x1f0)]['add'](_0x2c6932);}else _0x33ee18['set'](_0x288c31,{'indices':[_0x24e1e5],'versions':new Set(_0x2c6932?[_0x2c6932]:[])});}const _0x28c35e=new Set();for(const {indices:_0x324c43,versions:_0x1977c8}of _0x33ee18[_0x442f1e(0x1e1)]()){if(_0x1977c8[_0x442f1e(0x1e2)]<=0x1)continue;const _0x3ec8d6=_0x1e5b72[_0x324c43[0x0]];_0x3ec8d6[_0x442f1e(0x1c6)]=_0x3ec8d6['path'][_0x442f1e(0x225)](/^journeys\[\d+\]\./,''),_0x3ec8d6[_0x442f1e(0x1a8)]=_0x3ec8d6[_0x442f1e(0x1a8)]+_0x442f1e(0x1aa)+_0x1977c8['size']+'\x20versions)';for(let _0x273297=0x1;_0x273297<_0x324c43[_0x442f1e(0x227)];_0x273297++){_0x28c35e[_0x442f1e(0x179)](_0x324c43[_0x273297]);}}const _0x1b06cc=[..._0x28c35e][_0x442f1e(0x1f2)]((_0x16d367,_0x438829)=>_0x438829-_0x16d367);for(const _0x3b7ca6 of _0x1b06cc){_0x1e5b72[_0x442f1e(0x1e9)](_0x3b7ca6,0x1);}}export function validateJourneyDef(_0x222c7a,_0x2e9c13={},_0x3dc363={}){const _0x57582d=a149_0x13c0;if(_0x3dc363[_0x57582d(0x1ef)])return runJourneySemanticChecks(_0x222c7a,_0x2e9c13);const _0x3727d0=JourneyDefSchema[_0x57582d(0x1f7)](_0x222c7a);if(_0x3727d0[_0x57582d(0x1cf)])return runJourneySemanticChecks(_0x3727d0[_0x57582d(0x188)],_0x2e9c13);return zodErrorsToJourneyValidationResult(_0x3727d0[_0x57582d(0x229)],_0x2e9c13);}function zodErrorsToJourneyValidationResult(_0x5ea40f,_0xf02024){const _0x3be1f7=a149_0x13c0,_0x1c0f10=flattenZodIssues(_0x5ea40f[_0x3be1f7(0x18e)]),_0x1893e8=_0x1c0f10[_0x3be1f7(0x1ab)](_0x396875=>{const _0x50d69f=_0x3be1f7,_0x39048a=formatZodPath(_0x396875[_0x50d69f(0x1c6)]),_0x4fde4b=mapJourneyZodIssueToCode(_0x396875,_0x39048a),_0x465e43=getLocationFromPath(_0xf02024[_0x50d69f(0x193)],_0xf02024[_0x50d69f(0x1db)],_0x396875[_0x50d69f(0x1c6)][_0x50d69f(0x1ab)](_0x5b2571=>typeof _0x5b2571==='symbol'?String(_0x5b2571):_0x5b2571));return{'level':_0x50d69f(0x229),'path':_0x39048a,'code':_0x4fde4b,'message':_0x396875[_0x50d69f(0x1a8)],..._0x465e43&&{'location':_0x465e43}};});return{'valid':![],'errors':_0x1893e8,'warnings':[]};}function a149_0x5191(){const _0x419cb0=['some','CONVERGENCE_WITHOUT_MERGE','percentage','journeys','replace','MISSING_EXIT_CRITERIA','length','Journey\x20can\x20have\x20at\x20most\x20one\x20','error','JOURNEY_SCHEMA_ERROR','INSUFFICIENT_STEPS','push','excluded_','Decision\x20point\x20requires\x20at\x20least\x20one\x20branch','\x27\x20(non-last\x20stage)\x20is\x20missing\x20a\x20milestone','721ktjYMK','branch\x20\x27','ref:','abs','Duplicate\x20step\x20name\x20\x27','journeys[','add','includes','MISSING_END_STEP','milestone','24132552ZzDsiz','.with.condition.next','activationKeys','Activation\x20step\x20requires\x20an\x20activation\x20reference','exit_criteria','level','\x27\x20is\x20missing\x20entry_criteria\x20(required\x20for\x20the\x20first\x20stage)','entries',').\x20Use\x20a\x20merge\x20step.','\x27\x20is\x20defined\x20but\x20not\x20referenced\x20in\x20the\x20journey','keys','data','stages','.with.target','condition','match','.with.branches[','issues','.steps[','END_STEP_HAS_NEXT_OR_WITH','target','\x27\x20(from:\x20','document','embeddedSegments','startsWith','excluded','Jump\x20step\x20requires\x20a\x20target','2074902QhHshV','next','condition\x20of\x20\x27','type','215ZeIEtH','every','Decision\x20branch\x20\x27','MISSING_GOAL','\x27\x20has\x20only\x20','version','segment','MISSING_MILESTONE','launched','ab_test','\x27\x20of\x20\x27','\x27.\x20Define\x20it\x20in\x20the\x20\x27segments\x27\x20section\x20or\x20use\x20\x27ref:Segment\x20Name\x27\x20for\x20external\x20segments.','message','77644CnbzOb','\x20(across\x20','map','DUPLICATE_STEP_NAME','MISSING_SEGMENT_REFERENCE','goalIsInherited','BRANCH_DIRECTLY_TO_MERGE','Criteria\x20references\x20undefined\x20segment\x20\x27','endsWith','\x27\x20with\x20no\x20action\x20in\x20between','28yiXpnA','wait','\x27.\x20Define\x20it\x20in\x20the\x20\x27activations\x27\x20section\x20or\x20use\x20\x27ref:Name\x27\x20for\x20external\x20activations.','.stages','INVALID_NEXT_REFERENCE','segments.','decision_point','A/B\x20test\x20variant\x20\x27','activations','MERGE_TO_MERGE_CHAIN','.with.variants','\x27\x20should\x20not\x20have\x20a\x20\x27with\x27\x20field','set','steps','\x27\x20(first\x20defined\x20at\x20steps[','.rule','FEW_STEPS','Stage\x20\x27','activation','path','end','description','MISSING_ENTRY_CRITERIA','11lyCoVZ','goal','get','539264zgoSLR','\x27.\x20Merge\x20chains\x20are\x20not\x20allowed.','success','with','.name','Decision\x20branch\x20references\x20non-existent\x20step\x20\x27','\x27\x20has\x20no\x20steps','DUPLICATE_LATEST','stepNames','.with','filter','63ntxost','Journey\x20must\x20have\x20at\x20least\x20one\x20stage','.segment','source','journeys,\x20stages,\x20or\x20versions','MISSING_STAGES','.next','code','.milestone','values','size','join','branches','state','.with.condition.segment','SINGLE_INPUT_MERGE','A/B\x20test\x20requires\x20at\x20least\x20one\x20variant','splice','Merge\x20step\x20\x27','915066tLsdJO','indices','974jYwrad','\x27\x20with\x20no\x20action.\x20Each\x20branch\x20of\x20a\x20condition\x20wait\x20must\x20perform\x20a\x20different\x20action.','skipSchema','versions','Activation\x20step\x20references\x20undefined\x20activation\x20\x27','sort','merge','timeout\x20of\x20\x27','.with.condition','Decision\x20branch\x20references\x20undefined\x20segment\x20\x27','safeParse','MISSING_CONDITIONS','INVALID_JUMP_TARGET','Wait\x20step\x20requires\x20parameters\x20in\x20\x22with\x22\x20field','Jump\x20target\x20requires\x20both\x20journey\x20and\x20stage\x20names','\x27\x20should\x20not\x20have\x20a\x20\x27next\x27\x20field','variant\x20\x27','has','entry_criteria','journey\x20entry','MISSING_NAME','\x27\x20goes\x20directly\x20to\x20merge\x20step\x20\x27',').\x20Merge\x20is\x20unnecessary.','Step\x20references\x20non-existent\x20step\x20\x27','MISSING_ACTIVATION_DEFINITION','name','.with.condition.timeout.next','Journey\x20has\x20no\x20goal\x20defined','reduce','.steps','Wait\x20condition\x20matched\x20path\x20goes\x20directly\x20to\x20merge\x20step\x20\x27','referencedSegments','.with.condition.timeout','End\x20step\x20\x27','\x20steps\x20(may\x20be\x20too\x20simple)','.with.branches','Journey\x20name\x20is\x20required','INVALID_AB_TEST_PERCENTAGES','timeout','warning','Embedded\x20segment\x20\x27','.entry_criteria','stages[','8428470SjeFIa','segments','variants','\x27\x20has\x20only\x20one\x20input\x20(from:\x20','rule','latest','\x20stages\x20but\x20maximum\x20is\x20','Wait\x20timeout\x20references\x20non-existent\x20step\x20\x27','\x27\x20leads\x20to\x20another\x20merge\x20step\x20\x27'];a149_0x5191=function(){return _0x419cb0;};return a149_0x5191();}function mapJourneyZodIssueToCode(_0x1872ca,_0x1cdd64){const _0x30102f=a149_0x13c0;if(_0x1cdd64===_0x30102f(0x206))return _0x30102f(0x201);if(_0x1cdd64[_0x30102f(0x1b1)]('.type')&&_0x1cdd64[_0x30102f(0x17a)](_0x30102f(0x1c0)))return'JOURNEY_SCHEMA_ERROR';if(_0x1cdd64==='stages'||_0x1cdd64['endsWith'](_0x30102f(0x1b6)))return'MISSING_STAGES';if(_0x1cdd64===''&&_0x1872ca[_0x30102f(0x1a8)][_0x30102f(0x17a)](_0x30102f(0x1dc)))return _0x30102f(0x1dd);if(_0x1cdd64[_0x30102f(0x17a)]('activation'))return'ACTIVATION_SCHEMA_ERROR';return _0x30102f(0x22a);}function runJourneySemanticChecks(_0x50d987,_0x4c1ab2){const _0x22b3c5=a149_0x13c0,_0x14f802=[],_0x43ef60=[];(!_0x50d987[_0x22b3c5(0x206)]||_0x50d987[_0x22b3c5(0x206)]['trim']()==='')&&_0x14f802[_0x22b3c5(0x16f)]({'level':'error','path':'name','code':_0x22b3c5(0x201),'message':_0x22b3c5(0x211),'location':getLocationFromPath(_0x4c1ab2[_0x22b3c5(0x193)],_0x4c1ab2[_0x22b3c5(0x1db)],['name'])});const _0x35f0ec=new Set();if(_0x50d987['segments'])for(const _0x3668d3 of Object[_0x22b3c5(0x187)](_0x50d987['segments'])){_0x35f0ec[_0x22b3c5(0x179)](_0x3668d3);}const _0x5bf483=new Set();if(_0x50d987[_0x22b3c5(0x1bb)])for(const _0x384cc4 of Object[_0x22b3c5(0x187)](_0x50d987[_0x22b3c5(0x1bb)])){_0x5bf483['add'](_0x384cc4);}const _0x5d67ef=new Set(),_0x5d3ed6={..._0x4c1ab2,'embeddedSegments':_0x35f0ec,'referencedSegments':_0x5d67ef,'activationKeys':_0x5bf483[_0x22b3c5(0x1e2)]>0x0?_0x5bf483:undefined};if(_0x50d987[_0x22b3c5(0x219)])for(const [_0x385b7a,_0x586514]of Object[_0x22b3c5(0x184)](_0x50d987[_0x22b3c5(0x219)])){const _0x9e933a=validateEmbeddedSegment(_0x586514,_0x22b3c5(0x1b8)+_0x385b7a,_0x5d3ed6);for(const _0x516d4d of _0x9e933a){if(_0x516d4d[_0x22b3c5(0x182)]==='error')_0x14f802[_0x22b3c5(0x16f)](_0x516d4d);else _0x43ef60[_0x22b3c5(0x16f)](_0x516d4d);}}const _0x104cff=!!_0x50d987[_0x22b3c5(0x1cb)],_0x3b9e31=_0x50d987[_0x22b3c5(0x224)]?.[_0x22b3c5(0x19d)](_0x3f1df8=>!!_0x3f1df8[_0x22b3c5(0x1cb)])??![];!_0x104cff&&!_0x3b9e31&&_0x43ef60[_0x22b3c5(0x16f)]({'level':_0x22b3c5(0x214),'path':_0x22b3c5(0x1cb),'code':_0x22b3c5(0x19f),'message':_0x22b3c5(0x208),'location':getLocationFromPath(_0x4c1ab2[_0x22b3c5(0x193)],_0x4c1ab2[_0x22b3c5(0x1db)],[_0x22b3c5(0x1cb)])});const _0x152747=_0x50d987[_0x22b3c5(0x224)]??_0x50d987[_0x22b3c5(0x1f0)];if(_0x152747&&_0x152747[_0x22b3c5(0x1d7)](_0xdf4032=>_0xdf4032[_0x22b3c5(0x21d)]===!![])['length']>0x1){const _0x1a9b1c=_0x50d987[_0x22b3c5(0x224)]?_0x22b3c5(0x224):_0x22b3c5(0x1f0);_0x14f802['push']({'level':_0x22b3c5(0x229),'path':_0x1a9b1c,'code':_0x22b3c5(0x1d4),'message':_0x22b3c5(0x228)+(_0x1a9b1c===_0x22b3c5(0x224)?_0x22b3c5(0x200):_0x22b3c5(0x1a1))+'\x20with\x20latest:\x20true','location':getLocationFromPath(_0x4c1ab2[_0x22b3c5(0x193)],_0x4c1ab2['source'],[_0x1a9b1c])});}if(_0x50d987['journeys']&&_0x50d987[_0x22b3c5(0x224)][_0x22b3c5(0x227)]>0x0)for(let _0x9ba7e2=0x0;_0x9ba7e2<_0x50d987[_0x22b3c5(0x224)][_0x22b3c5(0x227)];_0x9ba7e2++){const _0x1e9f44=_0x50d987[_0x22b3c5(0x224)][_0x9ba7e2];if(_0x50d987[_0x22b3c5(0x224)][_0x22b3c5(0x227)]>0x1&&_0x1e9f44[_0x22b3c5(0x1e5)]===_0x22b3c5(0x1a4))continue;const _0x41d2c3=_0x1e9f44[_0x22b3c5(0x189)]||[],_0x44a237=_0x22b3c5(0x178)+_0x9ba7e2+'].',_0x3db962=!!_0x1e9f44['goal'],_0x29295e=_0x3db962?{..._0x50d987,'goal':_0x1e9f44[_0x22b3c5(0x1cb)]}:_0x50d987;validateStagesForVersion(_0x41d2c3,_0x29295e,_0x5d3ed6,_0x44a237,_0x14f802,_0x43ef60,{'goalIsInherited':!_0x3db962});}else{if(_0x50d987[_0x22b3c5(0x1f0)]&&_0x50d987[_0x22b3c5(0x1f0)][_0x22b3c5(0x227)]>0x0)for(let _0x59d5e4=0x0;_0x59d5e4<_0x50d987[_0x22b3c5(0x1f0)][_0x22b3c5(0x227)];_0x59d5e4++){const _0x760412=_0x50d987['versions'][_0x59d5e4];if(_0x50d987['versions'][_0x22b3c5(0x227)]>0x1&&_0x760412[_0x22b3c5(0x1e5)]===_0x22b3c5(0x1a4))continue;const _0x2eabdd=_0x760412[_0x22b3c5(0x189)]||[],_0xfd055b='versions['+_0x59d5e4+'].';validateStagesForVersion(_0x2eabdd,_0x50d987,_0x5d3ed6,_0xfd055b,_0x14f802,_0x43ef60);}else{const _0x3dacec=_0x50d987[_0x22b3c5(0x189)]||[];validateStagesForVersion(_0x3dacec,_0x50d987,_0x5d3ed6,'',_0x14f802,_0x43ef60);}}_0x50d987[_0x22b3c5(0x224)]&&_0x50d987[_0x22b3c5(0x224)][_0x22b3c5(0x227)]>0x1&&(deduplicateAcrossVersions(_0x14f802),deduplicateAcrossVersions(_0x43ef60));for(const _0x17735e of _0x35f0ec){!_0x5d67ef[_0x22b3c5(0x1fe)](_0x17735e)&&!_0x17735e[_0x22b3c5(0x195)](_0x22b3c5(0x170))&&_0x43ef60[_0x22b3c5(0x16f)]({'level':_0x22b3c5(0x214),'path':'segments.'+_0x17735e,'code':'UNUSED_EMBEDDED_SEGMENT','message':_0x22b3c5(0x215)+_0x17735e+_0x22b3c5(0x186),'location':getLocationFromPath(_0x4c1ab2[_0x22b3c5(0x193)],_0x4c1ab2[_0x22b3c5(0x1db)],[_0x22b3c5(0x219),_0x17735e])});}return{'valid':_0x14f802['length']===0x0,'errors':_0x14f802,'warnings':_0x43ef60};}
|
|
1
|
+
(function(_0x482503,_0x41a0dd){const _0x54725b=a149_0x2226,_0x3e9de6=_0x482503();while(!![]){try{const _0x3ee238=parseInt(_0x54725b(0x16a))/0x1+-parseInt(_0x54725b(0x1fd))/0x2+parseInt(_0x54725b(0x1ef))/0x3+parseInt(_0x54725b(0x15d))/0x4+parseInt(_0x54725b(0x19e))/0x5*(-parseInt(_0x54725b(0x1e6))/0x6)+parseInt(_0x54725b(0x1b6))/0x7*(-parseInt(_0x54725b(0x19d))/0x8)+parseInt(_0x54725b(0x15f))/0x9*(parseInt(_0x54725b(0x1db))/0xa);if(_0x3ee238===_0x41a0dd)break;else _0x3e9de6['push'](_0x3e9de6['shift']());}catch(_0x594cde){_0x3e9de6['push'](_0x3e9de6['shift']());}}}(a149_0x538d,0x4c841));function a149_0x2226(_0x1a735e,_0x507c3f){_0x1a735e=_0x1a735e-0x149;const _0x538de4=a149_0x538d();let _0x222605=_0x538de4[_0x1a735e];return _0x222605;}import{JourneyDefSchema}from'./types/journey-schema.js';import{formatZodPath,flattenZodIssues,getLocationFromPath,pathToArray,validateRuleDef}from'./yaml-validator.js';const MAX_STAGES=0x8;function createIssue(_0x164384,_0x33c7c3,_0x6aceb5,_0x47dd41,_0x3a86fe,_0x1e0590){const _0x3a63f4=a149_0x2226;return{'level':_0x164384,'path':_0x33c7c3,'code':_0x6aceb5,'message':_0x47dd41,'location':getLocationFromPath(_0x3a86fe['document'],_0x3a86fe[_0x3a63f4(0x156)],pathToArray(_0x1e0590??_0x33c7c3))};}function validateVersionStructure(_0x23f8ee,_0x48b73c){const _0x292038=a149_0x2226,_0x58fb88=[];return _0x23f8ee[_0x292038(0x1a3)]>MAX_STAGES&&_0x58fb88['push'](createIssue(_0x292038(0x189),'stages','TOO_MANY_STAGES','Journey\x20has\x20'+_0x23f8ee['length']+_0x292038(0x17f)+MAX_STAGES,_0x48b73c)),_0x58fb88;}function validateStageStructure(_0x555489,_0x29d2e7,_0x45be52,_0x7f2199){const _0x226023=a149_0x2226,_0x36a6fe=[],_0xe62b3f=_0x226023(0x1ad)+_0x29d2e7+']';_0x29d2e7===0x0&&!_0x555489['entry_criteria']&&_0x36a6fe[_0x226023(0x1ba)](createIssue(_0x226023(0x189),_0xe62b3f+'.entry_criteria',_0x226023(0x1fe),_0x226023(0x1c1)+_0x555489[_0x226023(0x165)]+'\x27\x20is\x20missing\x20entry_criteria\x20(required\x20for\x20the\x20first\x20stage)',_0x7f2199,_0xe62b3f));const _0x28c9d5=_0x29d2e7===_0x45be52-0x1;!_0x28c9d5&&!_0x555489[_0x226023(0x193)]&&_0x36a6fe[_0x226023(0x1ba)](createIssue('error',_0xe62b3f+'.milestone',_0x226023(0x1e0),_0x226023(0x1c1)+_0x555489[_0x226023(0x165)]+'\x27\x20(non-last\x20stage)\x20is\x20missing\x20a\x20milestone',_0x7f2199,_0xe62b3f));(!_0x555489['exit_criteria']||_0x555489[_0x226023(0x1d1)][_0x226023(0x1a3)]===0x0)&&_0x36a6fe[_0x226023(0x1ba)](createIssue(_0x226023(0x1d8),_0xe62b3f+'.exit_criteria',_0x226023(0x192),_0x226023(0x1c1)+_0x555489[_0x226023(0x165)]+_0x226023(0x1d0),_0x7f2199,_0xe62b3f));const _0x35367f=_0x555489[_0x226023(0x1ce)]?.[_0x226023(0x1a3)]??0x0;if(_0x35367f===0x0)_0x36a6fe[_0x226023(0x1ba)](createIssue(_0x226023(0x189),_0xe62b3f+_0x226023(0x194),_0x226023(0x1a0),'Stage\x20\x27'+_0x555489['name']+_0x226023(0x1cb),_0x7f2199,_0xe62b3f+'.steps'));else{if(_0x35367f===0x1)_0x36a6fe[_0x226023(0x1ba)](createIssue(_0x226023(0x1d8),_0xe62b3f+'.steps',_0x226023(0x1a0),'Stage\x20\x27'+_0x555489[_0x226023(0x165)]+_0x226023(0x1ee),_0x7f2199,_0xe62b3f+_0x226023(0x194)));else _0x35367f<=0x3&&_0x36a6fe[_0x226023(0x1ba)](createIssue(_0x226023(0x1d8),_0xe62b3f+_0x226023(0x194),'FEW_STEPS',_0x226023(0x1c1)+_0x555489[_0x226023(0x165)]+_0x226023(0x14d)+_0x35367f+'\x20steps\x20(may\x20be\x20too\x20simple)',_0x7f2199,_0xe62b3f+_0x226023(0x194)));}return _0x36a6fe;}function validateStep(_0x26b5f5,_0x2bee13,_0x399185,_0x5b4578){const _0x8e7183=a149_0x2226,_0x27489e=[];if(_0x26b5f5[_0x8e7183(0x1c5)]===_0x8e7183(0x18a))return _0x26b5f5[_0x8e7183(0x1f0)]&&_0x27489e[_0x8e7183(0x1ba)](createIssue('error',_0x2bee13+_0x8e7183(0x14b),_0x8e7183(0x198),_0x8e7183(0x17e)+_0x26b5f5['name']+_0x8e7183(0x1a7),_0x399185)),'with'in _0x26b5f5&&_0x26b5f5[_0x8e7183(0x1f7)]!==undefined&&_0x27489e[_0x8e7183(0x1ba)](createIssue(_0x8e7183(0x189),_0x2bee13+_0x8e7183(0x1f2),_0x8e7183(0x198),'End\x20step\x20\x27'+_0x26b5f5[_0x8e7183(0x165)]+_0x8e7183(0x14c),_0x399185)),_0x27489e;_0x26b5f5[_0x8e7183(0x1f0)]&&(_0x399185[_0x8e7183(0x1b9)]&&!_0x399185['stepNames'][_0x8e7183(0x1c7)](_0x26b5f5[_0x8e7183(0x1f0)])&&_0x27489e[_0x8e7183(0x1ba)](createIssue(_0x8e7183(0x189),_0x2bee13+_0x8e7183(0x14b),_0x8e7183(0x199),'Step\x20references\x20non-existent\x20step\x20\x27'+_0x26b5f5[_0x8e7183(0x1f0)]+'\x27',_0x399185)));switch(_0x26b5f5['type']){case _0x8e7183(0x153):_0x27489e[_0x8e7183(0x1ba)](...validateWaitStep(_0x26b5f5,_0x2bee13,_0x399185,_0x5b4578));break;case _0x8e7183(0x1f8):_0x27489e[_0x8e7183(0x1ba)](...validateActivationStep(_0x26b5f5,_0x2bee13,_0x399185));break;case _0x8e7183(0x149):_0x27489e['push'](...validateDecisionPointStep(_0x26b5f5,_0x2bee13,_0x399185,_0x5b4578));break;case _0x8e7183(0x19a):_0x27489e[_0x8e7183(0x1ba)](...validateAbTestStep(_0x26b5f5,_0x2bee13,_0x399185,_0x5b4578));break;case _0x8e7183(0x172):_0x27489e['push'](...validateJumpStep(_0x26b5f5,_0x2bee13,_0x399185));break;}return _0x27489e;}function validateWaitStep(_0x561e78,_0x5593e5,_0x455bbb,_0x565bce){const _0x2cbf3b=a149_0x2226,_0x18a0f7=[];if(!_0x561e78[_0x2cbf3b(0x1f7)])return _0x18a0f7[_0x2cbf3b(0x1ba)](createIssue(_0x2cbf3b(0x189),_0x5593e5+'.with',_0x2cbf3b(0x1ec),_0x2cbf3b(0x171),_0x455bbb,_0x5593e5)),_0x18a0f7;if(_0x561e78[_0x2cbf3b(0x1f7)]['condition']){const _0x3fea58=_0x561e78['with'][_0x2cbf3b(0x1f4)];if(_0x3fea58[_0x2cbf3b(0x1cd)]){_0x455bbb[_0x2cbf3b(0x19f)]?.[_0x2cbf3b(0x15c)](_0x3fea58[_0x2cbf3b(0x1cd)]);!_0x3fea58['segment']['startsWith'](_0x2cbf3b(0x186))&&(_0x455bbb[_0x2cbf3b(0x1c0)]&&!_0x455bbb[_0x2cbf3b(0x1c0)][_0x2cbf3b(0x1c7)](_0x3fea58['segment'])&&_0x18a0f7[_0x2cbf3b(0x1ba)](createIssue(_0x2cbf3b(0x189),_0x5593e5+_0x2cbf3b(0x1f6),_0x2cbf3b(0x168),_0x2cbf3b(0x166)+_0x3fea58[_0x2cbf3b(0x1cd)]+_0x2cbf3b(0x155),_0x455bbb)));_0x3fea58[_0x2cbf3b(0x1f0)]&&_0x455bbb[_0x2cbf3b(0x1b9)]&&!_0x455bbb[_0x2cbf3b(0x1b9)][_0x2cbf3b(0x1c7)](_0x3fea58[_0x2cbf3b(0x1f0)])&&_0x18a0f7[_0x2cbf3b(0x1ba)](createIssue(_0x2cbf3b(0x189),_0x5593e5+_0x2cbf3b(0x1d4),'INVALID_NEXT_REFERENCE',_0x2cbf3b(0x169)+_0x3fea58[_0x2cbf3b(0x1f0)]+'\x27',_0x455bbb));_0x3fea58[_0x2cbf3b(0x14a)]?.[_0x2cbf3b(0x1f0)]&&_0x455bbb[_0x2cbf3b(0x1b9)]&&!_0x455bbb[_0x2cbf3b(0x1b9)]['has'](_0x3fea58[_0x2cbf3b(0x14a)][_0x2cbf3b(0x1f0)])&&_0x18a0f7[_0x2cbf3b(0x1ba)](createIssue(_0x2cbf3b(0x189),_0x5593e5+_0x2cbf3b(0x1d9),'INVALID_NEXT_REFERENCE',_0x2cbf3b(0x1e4)+_0x3fea58[_0x2cbf3b(0x14a)][_0x2cbf3b(0x1f0)]+'\x27',_0x455bbb));const _0x2413cf=_0x3fea58['next']||_0x561e78[_0x2cbf3b(0x1f0)],_0x466f9a=_0x3fea58[_0x2cbf3b(0x14a)]?.[_0x2cbf3b(0x1f0)]||_0x561e78[_0x2cbf3b(0x1f0)];if(_0x2413cf){const _0x31f5d8=_0x565bce[_0x2cbf3b(0x175)](_0x2413cf);_0x31f5d8?.[_0x2cbf3b(0x1c5)]===_0x2cbf3b(0x1bd)&&_0x18a0f7['push'](createIssue(_0x2cbf3b(0x1d8),_0x5593e5+_0x2cbf3b(0x1d4),_0x2cbf3b(0x1b3),_0x2cbf3b(0x15a)+_0x2413cf+'\x27\x20with\x20no\x20action.\x20Each\x20branch\x20of\x20a\x20condition\x20wait\x20must\x20perform\x20a\x20different\x20action.',_0x455bbb,_0x5593e5+_0x2cbf3b(0x1e1)));}if(_0x466f9a){const _0x574935=_0x565bce[_0x2cbf3b(0x175)](_0x466f9a);_0x574935?.[_0x2cbf3b(0x1c5)]===_0x2cbf3b(0x1bd)&&_0x18a0f7[_0x2cbf3b(0x1ba)](createIssue('warning',_0x5593e5+_0x2cbf3b(0x1d9),_0x2cbf3b(0x1b3),_0x2cbf3b(0x151)+_0x466f9a+_0x2cbf3b(0x1ed),_0x455bbb,_0x5593e5+_0x2cbf3b(0x1da)));}}}return _0x18a0f7;}function validateActivationStep(_0x18bf2b,_0x2b9fb5,_0x26523d){const _0x124d1b=a149_0x2226,_0x1695e9=[];if(!_0x18bf2b[_0x124d1b(0x1f7)]?.['activation'])return _0x1695e9[_0x124d1b(0x1ba)](createIssue(_0x124d1b(0x189),_0x2b9fb5+_0x124d1b(0x174),_0x124d1b(0x158),_0x124d1b(0x150),_0x26523d,_0x2b9fb5)),_0x1695e9;const _0x3f3de0=_0x18bf2b['with'][_0x124d1b(0x1f8)];return _0x26523d[_0x124d1b(0x1a6)]&&!_0x3f3de0[_0x124d1b(0x1b2)](_0x124d1b(0x186))&&(!_0x26523d[_0x124d1b(0x1a6)][_0x124d1b(0x1c7)](_0x3f3de0)&&_0x1695e9['push'](createIssue(_0x124d1b(0x189),_0x2b9fb5+_0x124d1b(0x174),_0x124d1b(0x161),_0x124d1b(0x162)+_0x3f3de0+_0x124d1b(0x1d6),_0x26523d))),_0x1695e9;}function validateDecisionPointStep(_0xc98aa2,_0x1bd761,_0x5b184b,_0x215694){const _0x1193d8=a149_0x2226,_0x22c697=[];if(!_0xc98aa2[_0x1193d8(0x1f7)]?.[_0x1193d8(0x16c)]||_0xc98aa2['with'][_0x1193d8(0x16c)][_0x1193d8(0x1a3)]===0x0)return _0x22c697[_0x1193d8(0x1ba)](createIssue('error',_0x1bd761+'.with.branches',_0x1193d8(0x1a4),_0x1193d8(0x181),_0x5b184b,_0x1bd761)),_0x22c697;for(let _0x5cbbd9=0x0;_0x5cbbd9<_0xc98aa2[_0x1193d8(0x1f7)]['branches'][_0x1193d8(0x1a3)];_0x5cbbd9++){const _0x3b5b6a=_0xc98aa2[_0x1193d8(0x1f7)][_0x1193d8(0x16c)][_0x5cbbd9],_0x2c492f=_0x1bd761+_0x1193d8(0x1f9)+_0x5cbbd9+']';_0x3b5b6a[_0x1193d8(0x1cd)]&&!_0x3b5b6a['excluded']&&(_0x5b184b[_0x1193d8(0x19f)]?.[_0x1193d8(0x15c)](_0x3b5b6a[_0x1193d8(0x1cd)]),!_0x3b5b6a[_0x1193d8(0x1cd)][_0x1193d8(0x1b2)](_0x1193d8(0x186))&&(_0x5b184b[_0x1193d8(0x1c0)]&&!_0x5b184b[_0x1193d8(0x1c0)][_0x1193d8(0x1c7)](_0x3b5b6a[_0x1193d8(0x1cd)])&&_0x22c697[_0x1193d8(0x1ba)](createIssue(_0x1193d8(0x189),_0x2c492f+_0x1193d8(0x1c3),'MISSING_SEGMENT_REFERENCE','Decision\x20branch\x20references\x20undefined\x20segment\x20\x27'+_0x3b5b6a[_0x1193d8(0x1cd)]+'\x27',_0x5b184b))));_0x3b5b6a[_0x1193d8(0x1f0)]&&_0x5b184b[_0x1193d8(0x1b9)]&&!_0x5b184b[_0x1193d8(0x1b9)]['has'](_0x3b5b6a[_0x1193d8(0x1f0)])&&_0x22c697[_0x1193d8(0x1ba)](createIssue(_0x1193d8(0x189),_0x2c492f+_0x1193d8(0x14b),_0x1193d8(0x199),_0x1193d8(0x1e7)+_0x3b5b6a[_0x1193d8(0x1f0)]+'\x27',_0x5b184b));if(_0x3b5b6a[_0x1193d8(0x1f0)]){const _0x473f89=_0x215694[_0x1193d8(0x175)](_0x3b5b6a[_0x1193d8(0x1f0)]);_0x473f89?.['type']===_0x1193d8(0x1bd)&&_0x22c697['push'](createIssue(_0x1193d8(0x1d8),_0x2c492f+_0x1193d8(0x14b),'BRANCH_DIRECTLY_TO_MERGE',_0x1193d8(0x17a)+_0x3b5b6a['name']+'\x27\x20goes\x20directly\x20to\x20merge\x20step\x20\x27'+_0x3b5b6a['next']+'\x27\x20with\x20no\x20action\x20in\x20between',_0x5b184b));}}return _0x22c697;}function validateAbTestStep(_0x26f1ae,_0x23b1a5,_0x100d4a,_0x257c26){const _0x5aa4ec=a149_0x2226,_0x1296c9=[];if(!_0x26f1ae[_0x5aa4ec(0x1f7)]?.['variants']||_0x26f1ae['with'][_0x5aa4ec(0x170)][_0x5aa4ec(0x1a3)]===0x0)return _0x1296c9[_0x5aa4ec(0x1ba)](createIssue('error',_0x23b1a5+_0x5aa4ec(0x1fc),'MISSING_CONDITIONS',_0x5aa4ec(0x18e),_0x100d4a,_0x23b1a5)),_0x1296c9;const _0x5a7af3=_0x26f1ae['with'][_0x5aa4ec(0x170)][_0x5aa4ec(0x1a1)]((_0x23da6a,_0x20a092)=>_0x23da6a+(_0x20a092[_0x5aa4ec(0x16d)]||0x0),0x0);Math[_0x5aa4ec(0x1eb)](_0x5a7af3-0x64)>0.01&&_0x1296c9[_0x5aa4ec(0x1ba)](createIssue(_0x5aa4ec(0x189),_0x23b1a5+_0x5aa4ec(0x1fc),_0x5aa4ec(0x183),_0x5aa4ec(0x1cc)+_0x5a7af3+'%)',_0x100d4a));for(let _0x5c3a22=0x0;_0x5c3a22<_0x26f1ae[_0x5aa4ec(0x1f7)]['variants'][_0x5aa4ec(0x1a3)];_0x5c3a22++){const _0x1ea316=_0x26f1ae[_0x5aa4ec(0x1f7)][_0x5aa4ec(0x170)][_0x5c3a22],_0x4be1d5=_0x23b1a5+_0x5aa4ec(0x19b)+_0x5c3a22+']';_0x1ea316[_0x5aa4ec(0x1f0)]&&_0x100d4a[_0x5aa4ec(0x1b9)]&&!_0x100d4a['stepNames'][_0x5aa4ec(0x1c7)](_0x1ea316['next'])&&_0x1296c9[_0x5aa4ec(0x1ba)](createIssue(_0x5aa4ec(0x189),_0x4be1d5+'.next',_0x5aa4ec(0x199),_0x5aa4ec(0x182)+_0x1ea316[_0x5aa4ec(0x1f0)]+'\x27',_0x100d4a));if(_0x1ea316['next']){const _0x1ad178=_0x257c26[_0x5aa4ec(0x175)](_0x1ea316[_0x5aa4ec(0x1f0)]);_0x1ad178?.[_0x5aa4ec(0x1c5)]===_0x5aa4ec(0x1bd)&&_0x1296c9[_0x5aa4ec(0x1ba)](createIssue(_0x5aa4ec(0x1d8),_0x4be1d5+_0x5aa4ec(0x14b),'BRANCH_DIRECTLY_TO_MERGE',_0x5aa4ec(0x1e3)+_0x1ea316[_0x5aa4ec(0x165)]+_0x5aa4ec(0x157)+_0x1ea316[_0x5aa4ec(0x1f0)]+_0x5aa4ec(0x179),_0x100d4a));}}return _0x1296c9;}function validateJumpStep(_0x43e975,_0x124ce5,_0x534a47){const _0x524d6e=a149_0x2226,_0x3abc7c=[];if(!_0x43e975['with']?.[_0x524d6e(0x167)])return _0x3abc7c['push'](createIssue(_0x524d6e(0x189),_0x124ce5+_0x524d6e(0x159),'INVALID_JUMP_TARGET','Jump\x20step\x20requires\x20a\x20target',_0x534a47,_0x124ce5)),_0x3abc7c;return(!_0x43e975[_0x524d6e(0x1f7)][_0x524d6e(0x167)]['journey']||!_0x43e975[_0x524d6e(0x1f7)]['target'][_0x524d6e(0x176)])&&_0x3abc7c[_0x524d6e(0x1ba)](createIssue(_0x524d6e(0x189),_0x124ce5+_0x524d6e(0x159),'INVALID_JUMP_TARGET',_0x524d6e(0x1b8),_0x534a47)),_0x3abc7c;}function buildConvergenceMap(_0x51e7c3){const _0x335373=a149_0x2226,_0x52c68e=new Map();function _0x5a9a27(_0x56bf9a,_0x5275e2){const _0x1741bf=a149_0x2226,_0x407a02=_0x52c68e[_0x1741bf(0x175)](_0x56bf9a)||[];_0x407a02['push'](_0x5275e2),_0x52c68e[_0x1741bf(0x1b4)](_0x56bf9a,_0x407a02);}for(const _0xde8eb4 of _0x51e7c3){_0xde8eb4[_0x335373(0x1f0)]&&_0x5a9a27(_0xde8eb4['next'],{'stepName':_0xde8eb4[_0x335373(0x165)],'description':_0x335373(0x1f3)+_0xde8eb4[_0x335373(0x165)]+'\x27'});if(_0xde8eb4[_0x335373(0x1c5)]==='decision_point'&&_0xde8eb4[_0x335373(0x1f7)]?.[_0x335373(0x16c)])for(const _0x39cf90 of _0xde8eb4[_0x335373(0x1f7)][_0x335373(0x16c)]){_0x39cf90[_0x335373(0x1f0)]&&_0x5a9a27(_0x39cf90[_0x335373(0x1f0)],{'stepName':_0xde8eb4[_0x335373(0x165)],'description':_0x335373(0x1fb)+_0x39cf90['name']+_0x335373(0x1a2)+_0xde8eb4['name']+'\x27'});}if(_0xde8eb4[_0x335373(0x1c5)]===_0x335373(0x19a)&&_0xde8eb4[_0x335373(0x1f7)]?.[_0x335373(0x170)])for(const _0x445e1f of _0xde8eb4[_0x335373(0x1f7)][_0x335373(0x170)]){_0x445e1f[_0x335373(0x1f0)]&&_0x5a9a27(_0x445e1f[_0x335373(0x1f0)],{'stepName':_0xde8eb4[_0x335373(0x165)],'description':_0x335373(0x1d2)+_0x445e1f[_0x335373(0x165)]+'\x27\x20of\x20\x27'+_0xde8eb4[_0x335373(0x165)]+'\x27'});}_0xde8eb4[_0x335373(0x1c5)]==='wait'&&_0xde8eb4['with']?.[_0x335373(0x1f4)]&&(_0xde8eb4[_0x335373(0x1f7)][_0x335373(0x1f4)][_0x335373(0x1f0)]&&_0x5a9a27(_0xde8eb4[_0x335373(0x1f7)][_0x335373(0x1f4)][_0x335373(0x1f0)],{'stepName':_0xde8eb4[_0x335373(0x165)],'description':'condition\x20of\x20\x27'+_0xde8eb4[_0x335373(0x165)]+'\x27'}),_0xde8eb4[_0x335373(0x1f7)]['condition']['timeout']?.[_0x335373(0x1f0)]&&_0x5a9a27(_0xde8eb4[_0x335373(0x1f7)][_0x335373(0x1f4)][_0x335373(0x14a)][_0x335373(0x1f0)],{'stepName':_0xde8eb4[_0x335373(0x165)],'description':_0x335373(0x1a8)+_0xde8eb4['name']+'\x27'}));}return _0x52c68e;}function validateFlowControl(_0x9e0352,_0x2b722a,_0xd499a6){const _0x22bde4=a149_0x2226,_0x259d05=[],_0x3728f1='stages['+_0x2b722a+']',_0x1b763f=_0x9e0352[_0x22bde4(0x1ce)]||[];if(_0x1b763f[_0x22bde4(0x1a3)]===0x0)return _0x259d05;const _0x279252=new Map();for(const _0x294072 of _0x1b763f){_0x294072[_0x22bde4(0x165)]&&_0x279252[_0x22bde4(0x1b4)](_0x294072['name'],_0x294072);}const _0x493ac6=buildConvergenceMap(_0x1b763f),_0x23aa33=_0x1b763f[_0x22bde4(0x1f1)](_0x29cd3d=>_0x29cd3d[_0x22bde4(0x1c5)]===_0x22bde4(0x18a));!_0x23aa33&&_0x259d05[_0x22bde4(0x1ba)](createIssue(_0x22bde4(0x189),_0x3728f1+'.steps','MISSING_END_STEP',_0x22bde4(0x1c1)+_0x9e0352['name']+_0x22bde4(0x17c),_0xd499a6));for(const [_0x3739ea,_0x1f96a6]of _0x493ac6){const _0x373487=_0x279252['get'](_0x3739ea);if(!_0x373487)continue;if(_0x1f96a6[_0x22bde4(0x1a3)]>0x1&&_0x373487[_0x22bde4(0x1c5)]!==_0x22bde4(0x1bd)){const _0x2ab1f4=_0x1f96a6['map'](_0x562847=>_0x562847[_0x22bde4(0x190)])[_0x22bde4(0x1b5)](',\x20');_0x259d05[_0x22bde4(0x1ba)](createIssue(_0x22bde4(0x189),_0x3728f1+_0x22bde4(0x194),'CONVERGENCE_WITHOUT_MERGE',_0x22bde4(0x1ca)+_0x3739ea+_0x22bde4(0x1f5)+_0x2ab1f4+_0x22bde4(0x1df),_0xd499a6));}_0x1f96a6[_0x22bde4(0x1a3)]===0x1&&_0x373487[_0x22bde4(0x1c5)]===_0x22bde4(0x1bd)&&_0x259d05[_0x22bde4(0x1ba)](createIssue(_0x22bde4(0x1d8),_0x3728f1+_0x22bde4(0x194),_0x22bde4(0x15e),'Merge\x20step\x20\x27'+_0x3739ea+_0x22bde4(0x14f)+_0x1f96a6[0x0][_0x22bde4(0x190)]+_0x22bde4(0x15b),_0xd499a6));}for(const _0x4d4b3a of _0x1b763f){if(_0x4d4b3a[_0x22bde4(0x1c5)]===_0x22bde4(0x1bd)&&_0x4d4b3a[_0x22bde4(0x1f0)]){const _0xe65912=_0x279252['get'](_0x4d4b3a[_0x22bde4(0x1f0)]);_0xe65912?.['type']==='merge'&&_0x259d05[_0x22bde4(0x1ba)](createIssue(_0x22bde4(0x189),_0x3728f1+_0x22bde4(0x194),_0x22bde4(0x187),_0x22bde4(0x1c2)+_0x4d4b3a[_0x22bde4(0x165)]+_0x22bde4(0x1c4)+_0x4d4b3a[_0x22bde4(0x1f0)]+'\x27.\x20Merge\x20chains\x20are\x20not\x20allowed.',_0xd499a6));}}return _0x259d05;}function validateCriteria(_0x1c8ea3,_0x5aff45,_0x5b132b){const _0x225b35=a149_0x2226,_0x2bcde4=[];return _0x1c8ea3[_0x225b35(0x1cd)]&&(_0x5b132b['referencedSegments']?.[_0x225b35(0x15c)](_0x1c8ea3['segment']),!_0x1c8ea3[_0x225b35(0x1cd)][_0x225b35(0x1b2)](_0x225b35(0x186))&&(_0x5b132b[_0x225b35(0x1c0)]&&!_0x5b132b['embeddedSegments'][_0x225b35(0x1c7)](_0x1c8ea3[_0x225b35(0x1cd)])&&_0x2bcde4[_0x225b35(0x1ba)](createIssue(_0x225b35(0x189),_0x5aff45+_0x225b35(0x1c3),_0x225b35(0x168),'Criteria\x20references\x20undefined\x20segment\x20\x27'+_0x1c8ea3['segment']+'\x27',_0x5b132b)))),_0x2bcde4;}function validateEmbeddedSegment(_0x52f156,_0xef535,_0x1f3f9e){const _0x1070b8=a149_0x2226,_0x44078d=[];return _0x52f156['rule']&&_0x44078d[_0x1070b8(0x1ba)](...validateRuleDef(_0x52f156[_0x1070b8(0x1de)],_0xef535+'.rule',_0x1f3f9e)),_0x44078d;}function validateStage(_0x2683ec,_0x10dd02,_0x207de6,_0xc7ef68){const _0x4a0013=a149_0x2226,_0x965515=[],_0x464ab0='stages['+_0x10dd02+']',_0x459ce0=new Map(),_0x5834a3=new Map();if(_0x2683ec[_0x4a0013(0x1ce)]){for(let _0x545e1b=0x0;_0x545e1b<_0x2683ec['steps'][_0x4a0013(0x1a3)];_0x545e1b++){const _0x3cacd0=_0x2683ec[_0x4a0013(0x1ce)][_0x545e1b];_0x3cacd0['name']&&_0x459ce0['set'](_0x3cacd0[_0x4a0013(0x165)],_0x3cacd0);}for(let _0x22fdfc=0x0;_0x22fdfc<_0x2683ec['steps'][_0x4a0013(0x1a3)];_0x22fdfc++){const _0x3ee4f0=_0x2683ec[_0x4a0013(0x1ce)][_0x22fdfc],_0x5cf3a5=_0x464ab0+_0x4a0013(0x1c8)+_0x22fdfc+']';if(_0x3ee4f0[_0x4a0013(0x165)]){if(_0x5834a3['has'](_0x3ee4f0[_0x4a0013(0x165)])){const _0xefb7a=_0x5834a3[_0x4a0013(0x175)](_0x3ee4f0['name']);_0x965515['push'](createIssue('error',_0x5cf3a5+_0x4a0013(0x1dd),'DUPLICATE_STEP_NAME',_0x4a0013(0x17d)+_0x3ee4f0[_0x4a0013(0x165)]+_0x4a0013(0x1c9)+_0xefb7a+'])',_0xc7ef68));}else _0x5834a3[_0x4a0013(0x1b4)](_0x3ee4f0[_0x4a0013(0x165)],_0x22fdfc);}_0x965515[_0x4a0013(0x1ba)](...validateStep(_0x3ee4f0,_0x5cf3a5,_0xc7ef68,_0x459ce0));}}_0x2683ec[_0x4a0013(0x18c)]&&_0x965515[_0x4a0013(0x1ba)](...validateCriteria(_0x2683ec[_0x4a0013(0x18c)],_0x464ab0+_0x4a0013(0x1e9),_0xc7ef68));if(_0x2683ec[_0x4a0013(0x1d1)])for(let _0x7a2398=0x0;_0x7a2398<_0x2683ec[_0x4a0013(0x1d1)][_0x4a0013(0x1a3)];_0x7a2398++){_0x965515[_0x4a0013(0x1ba)](...validateCriteria(_0x2683ec['exit_criteria'][_0x7a2398],_0x464ab0+'.exit_criteria['+_0x7a2398+']',_0xc7ef68));}return _0x2683ec['milestone']&&_0x965515['push'](...validateCriteria(_0x2683ec[_0x4a0013(0x193)],_0x464ab0+_0x4a0013(0x1d5),_0xc7ef68)),_0x965515[_0x4a0013(0x1ba)](...validateStageStructure(_0x2683ec,_0x10dd02,_0x207de6,_0xc7ef68)),_0x965515['push'](...validateFlowControl(_0x2683ec,_0x10dd02,_0xc7ef68)),_0x965515;}function validateStagesForVersion(_0x4fc83b,_0x2a1e3e,_0xadbf3f,_0x488739,_0xa233d,_0x398619,_0x22fbd0){const _0xfc3c4f=a149_0x2226;if(_0x4fc83b[_0xfc3c4f(0x1a3)]===0x0){_0xa233d[_0xfc3c4f(0x1ba)]({'level':_0xfc3c4f(0x189),'path':_0x488739+'stages','code':'MISSING_STAGES','message':_0xfc3c4f(0x14e),'location':getLocationFromPath(_0xadbf3f['document'],_0xadbf3f[_0xfc3c4f(0x156)],[_0xfc3c4f(0x184)])});return;}const _0xc5ea12=new Set();for(const _0x27c4fa of _0x4fc83b){if(_0x27c4fa['steps'])for(const _0x22cd93 of _0x27c4fa[_0xfc3c4f(0x1ce)]){_0x22cd93['name']&&_0xc5ea12[_0xfc3c4f(0x15c)](_0x22cd93[_0xfc3c4f(0x165)]);}}const _0x3acf02={..._0xadbf3f,'stepNames':_0xc5ea12},_0x32e675=validateVersionStructure(_0x4fc83b,_0x3acf02);for(const _0x45a8aa of _0x32e675){const _0x300e14=_0x488739?{..._0x45a8aa,'path':''+_0x488739+_0x45a8aa['path']}:_0x45a8aa;if(_0x300e14['level']===_0xfc3c4f(0x189))_0xa233d['push'](_0x300e14);else _0x398619[_0xfc3c4f(0x1ba)](_0x300e14);}for(let _0x53fbcf=0x0;_0x53fbcf<_0x4fc83b[_0xfc3c4f(0x1a3)];_0x53fbcf++){const _0x5c92cc=validateStage(_0x4fc83b[_0x53fbcf],_0x53fbcf,_0x4fc83b['length'],_0x3acf02);for(const _0x1ae168 of _0x5c92cc){const _0x2d817d=_0x488739?{..._0x1ae168,'path':''+_0x488739+_0x1ae168[_0xfc3c4f(0x196)]}:_0x1ae168;if(_0x2d817d[_0xfc3c4f(0x1c6)]===_0xfc3c4f(0x189))_0xa233d[_0xfc3c4f(0x1ba)](_0x2d817d);else _0x398619[_0xfc3c4f(0x1ba)](_0x2d817d);}}if(_0x2a1e3e[_0xfc3c4f(0x1e2)]){const _0x1ffe77=_0x22fbd0?.[_0xfc3c4f(0x1a9)]?_0xfc3c4f(0x1e2):_0x488739+_0xfc3c4f(0x1e2),_0x530657=validateCriteria(_0x2a1e3e[_0xfc3c4f(0x1e2)],_0x1ffe77,_0x3acf02);for(const _0x3a618e of _0x530657){if(_0x3a618e['level']===_0xfc3c4f(0x189))_0xa233d[_0xfc3c4f(0x1ba)](_0x3a618e);else _0x398619[_0xfc3c4f(0x1ba)](_0x3a618e);}}}function extractVersionIndex(_0x46e204){const _0x2f98eb=a149_0x2226,_0x2fd99b=_0x46e204[_0x2f98eb(0x18d)](/^journeys\[(\d+)\]\./);return _0x2fd99b?_0x2fd99b[0x1]:undefined;}function deduplicateAcrossVersions(_0x2dfe32){const _0x69ab52=a149_0x2226,_0xe04752=new Map();for(let _0x18a0c7=0x0;_0x18a0c7<_0x2dfe32['length'];_0x18a0c7++){const _0x30139b=_0x2dfe32[_0x18a0c7]['code']+':'+_0x2dfe32[_0x18a0c7][_0x69ab52(0x1ac)],_0x245a3d=extractVersionIndex(_0x2dfe32[_0x18a0c7]['path']),_0x223926=_0xe04752[_0x69ab52(0x175)](_0x30139b);if(_0x223926){_0x223926[_0x69ab52(0x1bc)][_0x69ab52(0x1ba)](_0x18a0c7);if(_0x245a3d)_0x223926[_0x69ab52(0x19c)][_0x69ab52(0x15c)](_0x245a3d);}else _0xe04752[_0x69ab52(0x1b4)](_0x30139b,{'indices':[_0x18a0c7],'versions':new Set(_0x245a3d?[_0x245a3d]:[])});}const _0xaa9d72=new Set();for(const {indices:_0x18b651,versions:_0x3c3d07}of _0xe04752['values']()){if(_0x3c3d07['size']<=0x1)continue;const _0x2f6280=_0x2dfe32[_0x18b651[0x0]];_0x2f6280[_0x69ab52(0x196)]=_0x2f6280[_0x69ab52(0x196)]['replace'](/^journeys\[\d+\]\./,''),_0x2f6280[_0x69ab52(0x1ac)]=_0x2f6280[_0x69ab52(0x1ac)]+'\x20(across\x20'+_0x3c3d07[_0x69ab52(0x16f)]+_0x69ab52(0x180);for(let _0x5e4e80=0x1;_0x5e4e80<_0x18b651[_0x69ab52(0x1a3)];_0x5e4e80++){_0xaa9d72[_0x69ab52(0x15c)](_0x18b651[_0x5e4e80]);}}const _0x590ee4=[..._0xaa9d72][_0x69ab52(0x163)]((_0x303cd2,_0x30f551)=>_0x30f551-_0x303cd2);for(const _0x3fe885 of _0x590ee4){_0x2dfe32[_0x69ab52(0x1ff)](_0x3fe885,0x1);}}export function validateJourneyDef(_0x5a09f4,_0x3af5ab={},_0x53066e={}){const _0x21dad7=a149_0x2226;if(_0x53066e[_0x21dad7(0x154)])return runJourneySemanticChecks(_0x5a09f4,_0x3af5ab);const _0xb16a40=JourneyDefSchema[_0x21dad7(0x16b)](_0x5a09f4);if(_0xb16a40[_0x21dad7(0x160)])return runJourneySemanticChecks(_0xb16a40[_0x21dad7(0x1aa)],_0x3af5ab);return zodErrorsToJourneyValidationResult(_0xb16a40[_0x21dad7(0x189)],_0x3af5ab);}function zodErrorsToJourneyValidationResult(_0x25030d,_0x48b26b){const _0xf6de3c=a149_0x2226,_0x4dcd6b=flattenZodIssues(_0x25030d[_0xf6de3c(0x18f)]),_0x59b201=_0x4dcd6b[_0xf6de3c(0x152)](_0x46b465=>{const _0x4bf461=_0xf6de3c,_0x14c444=formatZodPath(_0x46b465[_0x4bf461(0x196)]),_0x33c06e=mapJourneyZodIssueToCode(_0x46b465,_0x14c444),_0x34a767=getLocationFromPath(_0x48b26b[_0x4bf461(0x18b)],_0x48b26b[_0x4bf461(0x156)],_0x46b465[_0x4bf461(0x196)]['map'](_0x131dcb=>typeof _0x131dcb==='symbol'?String(_0x131dcb):_0x131dcb));return{'level':_0x4bf461(0x189),'path':_0x14c444,'code':_0x33c06e,'message':_0x46b465[_0x4bf461(0x1ac)],..._0x34a767&&{'location':_0x34a767}};});return{'valid':![],'errors':_0x59b201,'warnings':[]};}function a149_0x538d(){const _0x257fcd=['keys','abs','MISSING_WAIT_PARAMS','\x27\x20with\x20no\x20action.\x20Each\x20branch\x20of\x20a\x20condition\x20wait\x20must\x20perform\x20a\x20different\x20action.','\x27\x20has\x20only\x201\x20step\x20(may\x20be\x20too\x20simple)','1761489pSvQWD','next','some','.with','step\x20\x27','condition','\x27\x20(from:\x20','.with.condition.segment','with','activation','.with.branches[','endsWith','branch\x20\x27','.with.variants','312474QYGMWX','MISSING_ENTRY_CRITERIA','splice','decision_point','timeout','.next','\x27\x20should\x20not\x20have\x20a\x20\x27with\x27\x20field','\x27\x20has\x20only\x20','Journey\x20must\x20have\x20at\x20least\x20one\x20stage','\x27\x20has\x20only\x20one\x20input\x20(from:\x20','Activation\x20step\x20requires\x20an\x20activation\x20reference','Wait\x20condition\x20timeout\x20path\x20goes\x20directly\x20to\x20merge\x20step\x20\x27','map','wait','skipSchema','\x27.\x20Define\x20it\x20in\x20the\x20\x27segments\x27\x20section\x20or\x20use\x20\x27ref:Segment\x20Name\x27\x20for\x20external\x20segments.','source','\x27\x20goes\x20directly\x20to\x20merge\x20step\x20\x27','MISSING_ACTIVATION_REF','.with.target','Wait\x20condition\x20matched\x20path\x20goes\x20directly\x20to\x20merge\x20step\x20\x27',').\x20Merge\x20is\x20unnecessary.','add','1097856pdJKIS','SINGLE_INPUT_MERGE','145341TBepbY','success','MISSING_ACTIVATION_DEFINITION','Activation\x20step\x20references\x20undefined\x20activation\x20\x27','sort','versions[','name','Wait\x20condition\x20references\x20undefined\x20segment\x20\x27','target','MISSING_SEGMENT_REFERENCE','Wait\x20condition\x20references\x20non-existent\x20step\x20\x27','19766yqCBhx','safeParse','branches','percentage','journeys,\x20stages,\x20or\x20versions','size','variants','Wait\x20step\x20requires\x20parameters\x20in\x20\x22with\x22\x20field','jump','every','.with.activation','get','stage','segments.','excluded_','\x27\x20with\x20no\x20action\x20in\x20between','Decision\x20branch\x20\x27','MISSING_STAGES','\x27\x20has\x20no\x20end\x20step','Duplicate\x20step\x20name\x20\x27','End\x20step\x20\x27','\x20stages\x20but\x20maximum\x20is\x20','\x20versions)','Decision\x20point\x20requires\x20at\x20least\x20one\x20branch','A/B\x20test\x20variant\x20references\x20non-existent\x20step\x20\x27','INVALID_AB_TEST_PERCENTAGES','stages','MISSING_NAME','ref:','MERGE_TO_MERGE_CHAIN','launched','error','end','document','entry_criteria','match','A/B\x20test\x20requires\x20at\x20least\x20one\x20variant','issues','description','includes','MISSING_EXIT_CRITERIA','milestone','.steps','journeys[','path','.stages','END_STEP_HAS_NEXT_OR_WITH','INVALID_NEXT_REFERENCE','ab_test','.with.variants[','versions','184RCaGKU','8110ShtnLe','referencedSegments','INSUFFICIENT_STEPS','reduce','\x27\x20of\x20\x27','length','MISSING_CONDITIONS','activations','activationKeys','\x27\x20should\x20not\x20have\x20a\x20\x27next\x27\x20field','timeout\x20of\x20\x27','goalIsInherited','data','state','message','stages[','Journey\x20name\x20is\x20required','trim','.type','Embedded\x20segment\x20\x27','startsWith','BRANCH_DIRECTLY_TO_MERGE','set','join','162659sBPdhr','filter','Jump\x20target\x20requires\x20both\x20journey\x20and\x20stage\x20names','stepNames','push','JOURNEY_SCHEMA_ERROR','indices','merge','entries','DUPLICATE_LATEST','embeddedSegments','Stage\x20\x27','Merge\x20step\x20\x27','.segment','\x27\x20leads\x20to\x20another\x20merge\x20step\x20\x27','type','level','has','.steps[','\x27\x20(first\x20defined\x20at\x20steps[','Multiple\x20paths\x20converge\x20on\x20non-merge\x20step\x20\x27','\x27\x20has\x20no\x20steps','A/B\x20test\x20variant\x20percentages\x20must\x20sum\x20to\x20100%\x20(got\x20','segment','steps','UNUSED_EMBEDDED_SEGMENT','\x27\x20has\x20no\x20exit_criteria\x20defined','exit_criteria','variant\x20\x27','journeys','.with.condition.next','.milestone','\x27.\x20Define\x20it\x20in\x20the\x20\x27activations\x27\x20section\x20or\x20use\x20\x27ref:Name\x27\x20for\x20external\x20activations.','segments','warning','.with.condition.timeout.next','.with.condition.timeout','80VWNoFj','\x27\x20is\x20defined\x20but\x20not\x20referenced\x20in\x20the\x20journey','.name','rule',').\x20Use\x20a\x20merge\x20step.','MISSING_MILESTONE','.with.condition','goal','A/B\x20test\x20variant\x20\x27','Wait\x20timeout\x20references\x20non-existent\x20step\x20\x27','MISSING_GOAL','24iTWKZc','Decision\x20branch\x20references\x20non-existent\x20step\x20\x27','ACTIVATION_SCHEMA_ERROR','.entry_criteria'];a149_0x538d=function(){return _0x257fcd;};return a149_0x538d();}function mapJourneyZodIssueToCode(_0x15734d,_0x51786f){const _0x57bf49=a149_0x2226;if(_0x51786f==='name')return _0x57bf49(0x185);if(_0x51786f[_0x57bf49(0x1fa)](_0x57bf49(0x1b0))&&_0x51786f[_0x57bf49(0x191)]('steps'))return'JOURNEY_SCHEMA_ERROR';if(_0x51786f===_0x57bf49(0x184)||_0x51786f[_0x57bf49(0x1fa)](_0x57bf49(0x197)))return'MISSING_STAGES';if(_0x51786f===''&&_0x15734d[_0x57bf49(0x1ac)][_0x57bf49(0x191)](_0x57bf49(0x16e)))return _0x57bf49(0x17b);if(_0x51786f[_0x57bf49(0x191)](_0x57bf49(0x1f8)))return _0x57bf49(0x1e8);return _0x57bf49(0x1bb);}function runJourneySemanticChecks(_0x3961ce,_0x57d5f6){const _0x43803f=a149_0x2226,_0x4e395d=[],_0x5b9cb9=[];(!_0x3961ce['name']||_0x3961ce[_0x43803f(0x165)][_0x43803f(0x1af)]()==='')&&_0x4e395d[_0x43803f(0x1ba)]({'level':'error','path':'name','code':_0x43803f(0x185),'message':_0x43803f(0x1ae),'location':getLocationFromPath(_0x57d5f6[_0x43803f(0x18b)],_0x57d5f6[_0x43803f(0x156)],[_0x43803f(0x165)])});const _0x561010=new Set();if(_0x3961ce['segments'])for(const _0x5b24a8 of Object[_0x43803f(0x1ea)](_0x3961ce['segments'])){_0x561010[_0x43803f(0x15c)](_0x5b24a8);}const _0x2cb56a=new Set();if(_0x3961ce[_0x43803f(0x1a5)])for(const _0x13d279 of Object[_0x43803f(0x1ea)](_0x3961ce['activations'])){_0x2cb56a[_0x43803f(0x15c)](_0x13d279);}const _0x58c6b6=new Set(),_0x192a93={..._0x57d5f6,'embeddedSegments':_0x561010,'referencedSegments':_0x58c6b6,'activationKeys':_0x2cb56a['size']>0x0?_0x2cb56a:undefined};if(_0x3961ce[_0x43803f(0x1d7)])for(const [_0x1f8f96,_0x4b9168]of Object[_0x43803f(0x1be)](_0x3961ce[_0x43803f(0x1d7)])){const _0x4ac5cd=validateEmbeddedSegment(_0x4b9168,_0x43803f(0x177)+_0x1f8f96,_0x192a93);for(const _0x4ec127 of _0x4ac5cd){if(_0x4ec127['level']===_0x43803f(0x189))_0x4e395d['push'](_0x4ec127);else _0x5b9cb9[_0x43803f(0x1ba)](_0x4ec127);}}const _0x535d2a=!!_0x3961ce[_0x43803f(0x1e2)],_0x44598c=_0x3961ce[_0x43803f(0x1d3)]?.[_0x43803f(0x173)](_0x2df374=>!!_0x2df374['goal'])??![];!_0x535d2a&&!_0x44598c&&_0x5b9cb9[_0x43803f(0x1ba)]({'level':_0x43803f(0x1d8),'path':_0x43803f(0x1e2),'code':_0x43803f(0x1e5),'message':'Journey\x20has\x20no\x20goal\x20defined','location':getLocationFromPath(_0x57d5f6[_0x43803f(0x18b)],_0x57d5f6[_0x43803f(0x156)],['goal'])});const _0x2481ac=_0x3961ce[_0x43803f(0x1d3)]??_0x3961ce[_0x43803f(0x19c)];if(_0x2481ac&&_0x2481ac[_0x43803f(0x1b7)](_0x98f5=>_0x98f5['latest']===!![])[_0x43803f(0x1a3)]>0x1){const _0x4fefd4=_0x3961ce[_0x43803f(0x1d3)]?_0x43803f(0x1d3):_0x43803f(0x19c);_0x4e395d['push']({'level':'error','path':_0x4fefd4,'code':_0x43803f(0x1bf),'message':'Journey\x20can\x20have\x20at\x20most\x20one\x20'+(_0x4fefd4===_0x43803f(0x1d3)?'journey\x20entry':'version')+'\x20with\x20latest:\x20true','location':getLocationFromPath(_0x57d5f6[_0x43803f(0x18b)],_0x57d5f6[_0x43803f(0x156)],[_0x4fefd4])});}if(_0x3961ce[_0x43803f(0x1d3)]&&_0x3961ce[_0x43803f(0x1d3)][_0x43803f(0x1a3)]>0x0)for(let _0x1b9b80=0x0;_0x1b9b80<_0x3961ce[_0x43803f(0x1d3)][_0x43803f(0x1a3)];_0x1b9b80++){const _0x4c3875=_0x3961ce['journeys'][_0x1b9b80];if(_0x3961ce['journeys'][_0x43803f(0x1a3)]>0x1&&_0x4c3875['state']===_0x43803f(0x188))continue;const _0x4a8687=_0x4c3875[_0x43803f(0x184)]||[],_0x163f17=_0x43803f(0x195)+_0x1b9b80+'].',_0x2b6985=!!_0x4c3875[_0x43803f(0x1e2)],_0xd9f010=_0x2b6985?{..._0x3961ce,'goal':_0x4c3875[_0x43803f(0x1e2)]}:_0x3961ce;validateStagesForVersion(_0x4a8687,_0xd9f010,_0x192a93,_0x163f17,_0x4e395d,_0x5b9cb9,{'goalIsInherited':!_0x2b6985});}else{if(_0x3961ce[_0x43803f(0x19c)]&&_0x3961ce[_0x43803f(0x19c)]['length']>0x0)for(let _0x34c85b=0x0;_0x34c85b<_0x3961ce[_0x43803f(0x19c)][_0x43803f(0x1a3)];_0x34c85b++){const _0x4a0cd7=_0x3961ce[_0x43803f(0x19c)][_0x34c85b];if(_0x3961ce[_0x43803f(0x19c)][_0x43803f(0x1a3)]>0x1&&_0x4a0cd7[_0x43803f(0x1ab)]===_0x43803f(0x188))continue;const _0x1988e4=_0x4a0cd7[_0x43803f(0x184)]||[],_0x470d90=_0x43803f(0x164)+_0x34c85b+'].';validateStagesForVersion(_0x1988e4,_0x3961ce,_0x192a93,_0x470d90,_0x4e395d,_0x5b9cb9);}else{const _0x51c3f8=_0x3961ce[_0x43803f(0x184)]||[];validateStagesForVersion(_0x51c3f8,_0x3961ce,_0x192a93,'',_0x4e395d,_0x5b9cb9);}}_0x3961ce[_0x43803f(0x1d3)]&&_0x3961ce['journeys'][_0x43803f(0x1a3)]>0x1&&(deduplicateAcrossVersions(_0x4e395d),deduplicateAcrossVersions(_0x5b9cb9));for(const _0x1e19ac of _0x561010){!_0x58c6b6['has'](_0x1e19ac)&&!_0x1e19ac[_0x43803f(0x1b2)](_0x43803f(0x178))&&_0x5b9cb9[_0x43803f(0x1ba)]({'level':_0x43803f(0x1d8),'path':_0x43803f(0x177)+_0x1e19ac,'code':_0x43803f(0x1cf),'message':_0x43803f(0x1b1)+_0x1e19ac+_0x43803f(0x1dc),'location':getLocationFromPath(_0x57d5f6[_0x43803f(0x18b)],_0x57d5f6[_0x43803f(0x156)],['segments',_0x1e19ac])});}return{'valid':_0x4e395d[_0x43803f(0x1a3)]===0x0,'errors':_0x4e395d,'warnings':_0x5b9cb9};}
|