@treasuredata/tdx 2026.6.1 → 2026.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin.js +1 -1
- package/dist/build-info.json +3 -3
- package/dist/cli-categories.js +1 -1
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +1 -1
- package/dist/cli.js.map +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.d.ts +2 -2
- package/dist/commands/workflow-command.d.ts.map +1 -1
- package/dist/commands/workflow-command.js +1 -1
- package/dist/commands/workflow-command.js.map +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/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.d.ts +23 -1
- package/dist/sdk/client/workflow-client.d.ts.map +1 -1
- package/dist/sdk/client/workflow-client.js +1 -1
- package/dist/sdk/client/workflow-client.js.map +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.js +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.js +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/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.js +1 -1
- package/dist/sdk/segment.js +1 -1
- package/dist/sdk/types/index.js +1 -1
- package/dist/sdk/types/progress.js +1 -1
- package/dist/sdk/types/workflow.d.ts +1 -1
- package/dist/sdk/types/workflow.d.ts.map +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.d.ts +23 -2
- package/dist/sdk/workflow/index.d.ts.map +1 -1
- package/dist/sdk/workflow/index.js +1 -1
- package/dist/sdk/workflow/index.js.map +1 -1
- package/dist/sdk/workflow/pull-workflow.js +1 -1
- package/dist/sdk/workflow/push-workflow.d.ts +4 -0
- package/dist/sdk/workflow/push-workflow.d.ts.map +1 -1
- package/dist/sdk/workflow/push-workflow.js +1 -1
- package/dist/sdk/workflow/push-workflow.js.map +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
|
-
const a31_0x164fd9=a31_0x3973;(function(_0x4742f3,_0x2678ef){const _0x18f76a=a31_0x3973,_0x3093d1=_0x4742f3();while(!![]){try{const _0x4e6746=-parseInt(_0x18f76a(0x303))/0x1+parseInt(_0x18f76a(0x3c1))/0x2+-parseInt(_0x18f76a(0x373))/0x3*(parseInt(_0x18f76a(0x2a7))/0x4)+parseInt(_0x18f76a(0x3dd))/0x5+-parseInt(_0x18f76a(0x258))/0x6*(-parseInt(_0x18f76a(0x2a3))/0x7)+-parseInt(_0x18f76a(0x2a9))/0x8+-parseInt(_0x18f76a(0x3df))/0x9;if(_0x4e6746===_0x2678ef)break;else _0x3093d1['push'](_0x3093d1['shift']());}catch(_0x447a7a){_0x3093d1['push'](_0x3093d1['shift']());}}}(a31_0x3713,0x4c606));function a31_0x3973(_0x1dbed6,_0x41c585){_0x1dbed6=_0x1dbed6-0x1ce;const _0x37139d=a31_0x3713();let _0x397345=_0x37139d[_0x1dbed6];return _0x397345;}import{writeFileSync,readFileSync,existsSync,mkdirSync,renameSync,statSync}from'fs';import{spawn}from'child_process';import a31_0x1a2c9e from'path';import{BaseCommand}from'./command.js';import{handleSDKOutput,handleQueryOutput,handleSingleObjectOutput,writeOutput}from'../core/command-output.js';import{withSpinner,withProgressSpinner,createCommandSpinner,formatElapsed}from'../utils/spinner.js';import{loadJSONFromOptions,loadJSON}from'../utils/json-loader.js';import{generateDiff,formatDiffWithColors,hasChanges}from'../utils/diff.js';import{getConsoleUrl,getConsoleNextUrl}from'../sdk/client/endpoints.js';import{formatRows,formatAsTable,hyperlink}from'../sdk/util/formatters.js';import{parseDef,serializeDef}from'../sdk/segment/parent-segment-yaml.js';import{confirmKey,isInteractive}from'../utils/prompt.js';import{DEFAULT_DISPLAY_LIMIT,resolveLimit}from'../core/constants.js';import a31_0x1c9df2 from'chalk';import{displayFieldsHumanReadable,executeSchemaQuery}from'../sdk/segment/fields-display.js';import{saveSessionContext}from'../core/session.js';import{sanitizeFileName}from'../utils/string-utils.js';const PARENT_SEGMENT_DIR=a31_0x164fd9(0x382),LEGACY_PARENT_SEGMENT_DIR=a31_0x164fd9(0x262);function openBrowser(_0x1aa5e3){const _0x3b7e80=a31_0x164fd9,_0x4749d8=process['platform'],_0x26d10f=_0x4749d8==='darwin'?_0x3b7e80(0x1e5):_0x4749d8===_0x3b7e80(0x2f7)?_0x3b7e80(0x340):_0x3b7e80(0x2bc);spawn(_0x26d10f,[_0x1aa5e3],{'detached':!![],'stdio':_0x3b7e80(0x2e0)})[_0x3b7e80(0x1f9)]();}function migrateLegacyDirectory(){const _0x331236=a31_0x164fd9;if(!existsSync(LEGACY_PARENT_SEGMENT_DIR))return![];const _0x454bd4=statSync(LEGACY_PARENT_SEGMENT_DIR);if(!_0x454bd4[_0x331236(0x35f)]())return![];if(existsSync(PARENT_SEGMENT_DIR))return console[_0x331236(0x392)](a31_0x1c9df2['yellow']('\x0a⚠️\x20\x20Both\x20'+LEGACY_PARENT_SEGMENT_DIR+_0x331236(0x1fe)+PARENT_SEGMENT_DIR+'/\x20directories\x20exist.')),console['error'](a31_0x1c9df2[_0x331236(0x256)](_0x331236(0x275)+LEGACY_PARENT_SEGMENT_DIR+_0x331236(0x243))),![];console[_0x331236(0x392)](a31_0x1c9df2[_0x331236(0x216)](_0x331236(0x311)+LEGACY_PARENT_SEGMENT_DIR+_0x331236(0x215)+PARENT_SEGMENT_DIR+'/\x0a'));try{return renameSync(LEGACY_PARENT_SEGMENT_DIR,PARENT_SEGMENT_DIR),console[_0x331236(0x392)](a31_0x1c9df2['green'](_0x331236(0x1fd)+PARENT_SEGMENT_DIR+'/\x0a')),!![];}catch(_0x52a69b){const _0x3b3d7=_0x52a69b instanceof Error?_0x52a69b[_0x331236(0x2bf)]:String(_0x52a69b);return console[_0x331236(0x392)](a31_0x1c9df2[_0x331236(0x338)](_0x331236(0x1e1)+_0x3b3d7+'\x0a')),![];}}class BaseParentSegmentCommand extends BaseCommand{async[a31_0x164fd9(0x274)](_0x342a1a){return migrateLegacyDirectory(),super['run'](_0x342a1a);}}function resolveYamlFile(_0x376478){const _0x2573c0=a31_0x164fd9;if(_0x376478[_0x2573c0(0x1fa)](_0x2573c0(0x30c))||_0x376478[_0x2573c0(0x1fa)](_0x2573c0(0x315)))return _0x376478;return a31_0x1a2c9e['join'](PARENT_SEGMENT_DIR,sanitizeFileName(_0x376478)+_0x2573c0(0x30c));}function formatProgressMessage(_0x271b76){const _0x51bdbc=a31_0x164fd9,_0x531371=_0x271b76[_0x51bdbc(0x37b)](/^(.+?):\s*(.+?)(\s*\(.+\))?$/);if(_0x531371){const [,_0x122b02,_0x41aa50,_0x50bf57='']=_0x531371;return a31_0x1c9df2['dim'](_0x122b02+':')+'\x20'+_0x41aa50+a31_0x1c9df2[_0x51bdbc(0x256)](_0x50bf57);}return a31_0x1c9df2[_0x51bdbc(0x256)](_0x271b76);}function showFileNotFoundError(_0x4052ff,_0x40ddf2){const _0x4332e1=a31_0x164fd9;console[_0x4332e1(0x392)](a31_0x1c9df2[_0x4332e1(0x338)](_0x4332e1(0x317)+_0x4052ff+'\x0a')),console[_0x4332e1(0x392)](a31_0x1c9df2[_0x4332e1(0x250)](_0x4332e1(0x33b)+_0x40ddf2+_0x4332e1(0x37d)));}function displayRealtimeValidation(_0x288903){const _0x44ab8e=a31_0x164fd9;if(!_0x288903[_0x44ab8e(0x21d)])return;const _0x4b5eab=_0x288903[_0x44ab8e(0x21d)],_0x48f827=_0x4b5eab['enabled']?a31_0x1c9df2[_0x44ab8e(0x31e)](_0x44ab8e(0x2a0)):a31_0x1c9df2[_0x44ab8e(0x216)](_0x44ab8e(0x205));console[_0x44ab8e(0x392)]('\x0a'+a31_0x1c9df2['dim'](_0x44ab8e(0x326))+'\x20'+_0x48f827);if(_0x4b5eab[_0x44ab8e(0x226)]&&_0x4b5eab[_0x44ab8e(0x226)][_0x44ab8e(0x2dc)]>0x0){console[_0x44ab8e(0x392)]('\x20\x20'+a31_0x1c9df2[_0x44ab8e(0x256)]('Events:')+'\x20'+_0x4b5eab[_0x44ab8e(0x226)][_0x44ab8e(0x2dc)]+_0x44ab8e(0x269));for(const _0xc30048 of _0x4b5eab[_0x44ab8e(0x226)]){const _0x35bdf0=_0xc30048[_0x44ab8e(0x2f5)]===![]?a31_0x1c9df2[_0x44ab8e(0x338)]('✘'):a31_0x1c9df2['green']('✔');console['error'](_0x44ab8e(0x3b1)+_0x35bdf0+'\x20'+_0xc30048[_0x44ab8e(0x219)]),_0xc30048[_0x44ab8e(0x3b9)]&&console[_0x44ab8e(0x392)](_0x44ab8e(0x208)+a31_0x1c9df2['red'](_0xc30048[_0x44ab8e(0x3b9)]));}}if(_0x4b5eab[_0x44ab8e(0x218)]&&_0x4b5eab[_0x44ab8e(0x218)][_0x44ab8e(0x2dc)]>0x0){console['error']('\x20\x20'+a31_0x1c9df2[_0x44ab8e(0x256)](_0x44ab8e(0x232))+'\x20'+_0x4b5eab[_0x44ab8e(0x218)][_0x44ab8e(0x2dc)]+_0x44ab8e(0x269));for(const _0x277f0b of _0x4b5eab[_0x44ab8e(0x218)]){const _0xf106e0=_0x277f0b[_0x44ab8e(0x24a)]?a31_0x1c9df2[_0x44ab8e(0x31e)]('✔'):a31_0x1c9df2[_0x44ab8e(0x338)]('✘');console[_0x44ab8e(0x392)](_0x44ab8e(0x3b1)+_0xf106e0+'\x20'+_0x277f0b[_0x44ab8e(0x219)]+'\x20'+a31_0x1c9df2[_0x44ab8e(0x256)]('('+_0x277f0b[_0x44ab8e(0x22c)]+')'));}}if(_0x4b5eab[_0x44ab8e(0x37f)]){const _0x4fc68d=_0x4b5eab[_0x44ab8e(0x37f)][_0x44ab8e(0x39c)]?.[_0x44ab8e(0x2dc)]?_0x44ab8e(0x32b)+_0x4b5eab[_0x44ab8e(0x37f)][_0x44ab8e(0x39c)][_0x44ab8e(0x35e)](',\x20')+']':'';console['error']('\x20\x20'+a31_0x1c9df2['dim'](_0x44ab8e(0x266))+'\x20'+_0x4b5eab[_0x44ab8e(0x37f)][_0x44ab8e(0x20c)]+_0x4fc68d);}if(_0x4b5eab[_0x44ab8e(0x318)]&&_0x4b5eab[_0x44ab8e(0x318)][_0x44ab8e(0x2dc)]>0x0){console['error']('\x20\x20'+a31_0x1c9df2['dim']('Personalization:')+'\x20'+_0x4b5eab['personalizationServices'][_0x44ab8e(0x2dc)]+_0x44ab8e(0x342)+(_0x4b5eab[_0x44ab8e(0x318)][_0x44ab8e(0x2dc)]!==0x1?'s':''));for(const _0x922d5c of _0x4b5eab['personalizationServices']){console[_0x44ab8e(0x392)](_0x44ab8e(0x268)+_0x922d5c[_0x44ab8e(0x219)]);}}}function showParentSegmentNotSetError(_0x34d93d){const _0x796b06=a31_0x164fd9;console[_0x796b06(0x392)](a31_0x1c9df2[_0x796b06(0x216)](_0x796b06(0x1f8))),console['error'](_0x34d93d);}export class ParentSegmentListCommand extends BaseCommand{[a31_0x164fd9(0x219)]=a31_0x164fd9(0x1dd);['description']=a31_0x164fd9(0x38f);async[a31_0x164fd9(0x29d)](_0x502f8b){const _0x2aaa71=a31_0x164fd9,{options:_0x357a72,args:_0x3a1632,tdx:_0x35f45e}=_0x502f8b,_0x2cc35d=_0x3a1632[0x0];_0x357a72[_0x2aaa71(0x3d7)]&&(console[_0x2aaa71(0x392)]('Site:\x20'+_0x357a72[_0x2aaa71(0x1df)]),_0x2cc35d&&console[_0x2aaa71(0x392)](_0x2aaa71(0x2be)+_0x2cc35d));const _0x1fac92=await withSpinner(_0x2cc35d?_0x2aaa71(0x3de)+_0x2cc35d+_0x2aaa71(0x3e1):_0x2aaa71(0x292),()=>_0x35f45e['segment'][_0x2aaa71(0x333)](),{'verbose':_0x357a72['verbose']});let _0x5126cf=_0x1fac92[_0x2aaa71(0x27d)];if(_0x2cc35d){const _0x4e95d8=_0x2cc35d[_0x2aaa71(0x395)](/[.+^${}()|[\]\\]/g,_0x2aaa71(0x344))[_0x2aaa71(0x395)](/\*/g,'.*')[_0x2aaa71(0x395)](/\?/g,'.'),_0x5e6ea0=new RegExp('^'+_0x4e95d8+'$','i');_0x5126cf=_0x5126cf['filter'](_0x227065=>_0x5e6ea0['test'](_0x227065[_0x2aaa71(0x218)]['name']));}_0x5126cf['sort']((_0x2c9811,_0x2a2030)=>_0x2c9811[_0x2aaa71(0x218)][_0x2aaa71(0x219)]['localeCompare'](_0x2a2030[_0x2aaa71(0x218)][_0x2aaa71(0x219)])),console[_0x2aaa71(0x392)](_0x2aaa71(0x3dc)+_0x5126cf[_0x2aaa71(0x2dc)]+_0x2aaa71(0x398)+(_0x5126cf[_0x2aaa71(0x2dc)]!==0x1?'s':''));const _0x592ecd=_0x5d15b0=>{const _0x460978=_0x2aaa71;return getConsoleNextUrl(_0x357a72['site'],_0x460978(0x1f3)+_0x5d15b0);};if(_0x357a72[_0x2aaa71(0x30f)]===_0x2aaa71(0x3c4)||_0x357a72[_0x2aaa71(0x30f)]==='jsonl'){const _0x43c4fb=_0x5126cf[_0x2aaa71(0x280)](_0x255955=>({..._0x255955,'url':_0x592ecd(_0x255955['id'])}));await handleSDKOutput(_0x43c4fb,_0x357a72);}else{if(_0x5126cf[_0x2aaa71(0x2dc)]===0x0)_0x2cc35d?console[_0x2aaa71(0x300)]('No\x20parent\x20segments\x20match\x20pattern:\x20'+_0x2cc35d):console['log'](_0x2aaa71(0x314));else for(const _0x4fd77c of _0x5126cf){const _0x3c161d=_0x4fd77c[_0x2aaa71(0x218)][_0x2aaa71(0x34d)]?a31_0x1c9df2['dim']('\x20('+formatRows(_0x4fd77c[_0x2aaa71(0x218)]['population'])+')'):'',_0x1a385a=hyperlink(_0x4fd77c[_0x2aaa71(0x218)]['name'],_0x592ecd(_0x4fd77c['id']));console[_0x2aaa71(0x300)](_0x2aaa71(0x358)+_0x1a385a+_0x3c161d);}}return 0x0;}}export class ParentSegmentCreateCommand extends BaseCommand{[a31_0x164fd9(0x219)]='segment:parent:create';[a31_0x164fd9(0x323)]=a31_0x164fd9(0x3c5);async[a31_0x164fd9(0x29d)](_0x491608){const _0x549255=a31_0x164fd9,{options:_0x5ccbe1,args:_0xd55f6d,tdx:_0x35b07f}=_0x491608;console[_0x549255(0x392)](_0x549255(0x33a)+'\x20\x20\x20Use\x20`tdx\x20segment\x20parent\x20push\x20<file.yml>`\x20instead\x20for\x20better\x20configuration\x20management.\x0a'+_0x549255(0x214));const _0x34d0d9=_0x5ccbe1;if(_0xd55f6d[_0x549255(0x2dc)]===0x0)return console['error'](a31_0x1c9df2['red'](_0x549255(0x2ae))),console[_0x549255(0x392)](_0x549255(0x313)),0x1;const _0x39bac1=_0xd55f6d[0x0];if(!_0x34d0d9[_0x549255(0x381)]||!_0x34d0d9[_0x549255(0x366)])return console[_0x549255(0x392)]('Error:\x20--database\x20and\x20--table\x20are\x20required'),console[_0x549255(0x392)](_0x549255(0x313)),0x1;_0x34d0d9[_0x549255(0x3d7)]&&(console['error'](_0x549255(0x290)+_0x34d0d9[_0x549255(0x1df)]),console[_0x549255(0x392)]('Name:\x20'+_0x39bac1),console['error'](_0x549255(0x3d0)+_0x34d0d9['database']),console[_0x549255(0x392)](_0x549255(0x35a)+_0x34d0d9['table']));const _0x5f2746=await loadJSONFromOptions(_0x34d0d9[_0x549255(0x218)],_0x34d0d9[_0x549255(0x36b)]),_0x5f0f8f=await loadJSONFromOptions(_0x34d0d9['behaviors'],_0x34d0d9[_0x549255(0x201)]),_0x6b3f68=await loadJSONFromOptions(_0x34d0d9['customerGroup'],_0x34d0d9[_0x549255(0x3e9)]),_0xe16b={'name':_0x39bac1,'description':_0x34d0d9['description'],'scheduleType':_0x34d0d9[_0x549255(0x1d5)],'scheduleOption':_0x34d0d9['scheduleOption'],'timezone':_0x34d0d9[_0x549255(0x39e)],'master':{'parentDatabaseName':_0x34d0d9[_0x549255(0x381)],'parentTableName':_0x34d0d9[_0x549255(0x366)]},'attributes':_0x5f2746,'behaviors':_0x5f0f8f,'customerGroup':_0x6b3f68},_0x42064c=await withSpinner(_0x549255(0x2eb)+_0x39bac1+_0x549255(0x3e1),()=>_0x35b07f['segment'][_0x549255(0x36a)](_0xe16b),{'verbose':_0x5ccbe1['verbose']}),_0x5e36b6=_0x42064c[_0x549255(0x27d)];return console[_0x549255(0x392)](_0x549255(0x2c0)+_0x5e36b6[_0x549255(0x219)]+_0x549255(0x221)+_0x5e36b6['id']),await handleSDKOutput([_0x5e36b6],_0x5ccbe1),0x0;}}export class ParentSegmentUpdateCommand extends BaseCommand{[a31_0x164fd9(0x219)]=a31_0x164fd9(0x2a5);[a31_0x164fd9(0x323)]=a31_0x164fd9(0x1e6);async[a31_0x164fd9(0x29d)](_0x27cb98){const _0x38626a=a31_0x164fd9,{options:_0x154bee,args:_0x306fea,tdx:_0x234abc}=_0x27cb98;console['error'](_0x38626a(0x253)+_0x38626a(0x332)+_0x38626a(0x214));const _0x37d8c4=_0x154bee;if(_0x306fea[_0x38626a(0x2dc)]===0x0)return console[_0x38626a(0x392)](a31_0x1c9df2[_0x38626a(0x338)](_0x38626a(0x2ae))),console[_0x38626a(0x392)]('Usage:\x20tdx\x20segment\x20parent\x20update\x20<name>\x20[options]'),0x1;const _0x406545=_0x306fea[0x0];_0x37d8c4[_0x38626a(0x3d7)]&&(console[_0x38626a(0x392)]('Site:\x20'+_0x37d8c4[_0x38626a(0x1df)]),console[_0x38626a(0x392)](_0x38626a(0x21b)+_0x406545));const _0x15625d=await withSpinner(_0x38626a(0x2d9)+_0x406545+'\x27...',()=>_0x234abc[_0x38626a(0x30b)][_0x38626a(0x254)](_0x406545),{'verbose':_0x37d8c4[_0x38626a(0x3d7)]}),_0x4f951b=_0x15625d[_0x38626a(0x27d)],_0x4e3304=await loadJSONFromOptions(_0x37d8c4[_0x38626a(0x3f1)],_0x37d8c4['addAttributesFile']),_0xd4ef9=await loadJSONFromOptions(_0x37d8c4[_0x38626a(0x38c)],_0x37d8c4['addBehaviorsFile']),_0x4347a={'name':_0x4f951b[_0x38626a(0x219)],'description':_0x37d8c4[_0x38626a(0x323)]!==undefined?_0x37d8c4[_0x38626a(0x323)]:_0x4f951b[_0x38626a(0x323)],'scheduleType':_0x37d8c4[_0x38626a(0x1d5)]!==undefined?_0x37d8c4[_0x38626a(0x1d5)]:_0x4f951b['scheduleType'],'scheduleOption':_0x37d8c4[_0x38626a(0x391)]!==undefined?_0x37d8c4[_0x38626a(0x391)]:_0x4f951b[_0x38626a(0x391)],'timezone':_0x37d8c4[_0x38626a(0x39e)]!==undefined?_0x37d8c4[_0x38626a(0x39e)]:_0x4f951b[_0x38626a(0x39e)],'master':_0x4f951b['master'],'attributes':_0x4e3304?[..._0x4f951b[_0x38626a(0x218)]||[],..._0x4e3304]:_0x4f951b[_0x38626a(0x218)],'behaviors':_0xd4ef9?[..._0x4f951b[_0x38626a(0x3c3)]||[],..._0xd4ef9]:_0x4f951b['behaviors'],'customerGroup':_0x4f951b[_0x38626a(0x2b2)]},_0x386a1a=await withSpinner(_0x38626a(0x1d2)+_0x406545+_0x38626a(0x3e1),()=>_0x234abc[_0x38626a(0x30b)][_0x38626a(0x1db)](_0x406545,_0x4347a),{'verbose':_0x37d8c4[_0x38626a(0x3d7)]}),_0x3d22a6=_0x386a1a[_0x38626a(0x27d)];return console[_0x38626a(0x392)](_0x38626a(0x1f5)+_0x3d22a6['name']+'\x27'),await handleSDKOutput([_0x3d22a6],_0x37d8c4),0x0;}}export class ParentSegmentPullCommand extends BaseParentSegmentCommand{[a31_0x164fd9(0x219)]=a31_0x164fd9(0x320);['description']=a31_0x164fd9(0x1e7);async['execute'](_0x3ad4c0){const _0x42af2f=a31_0x164fd9,{options:_0x58ec62,args:_0x3123de,tdx:_0x3ffcfe}=_0x3ad4c0,_0x13de5a=_0x58ec62,_0x18ae61=_0x3123de[0x0]||_0x58ec62[_0x42af2f(0x3ec)];if(!_0x18ae61)return showParentSegmentNotSetError('Usage:\x20tdx\x20ps\x20pull\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Pull\x20(requires\x20context)\x0a'+_0x42af2f(0x1ee)),0x1;if(_0x13de5a['use']&&_0x13de5a[_0x42af2f(0x2fc)])return console[_0x42af2f(0x392)](a31_0x1c9df2['red'](_0x42af2f(0x1ef))),console[_0x42af2f(0x392)](a31_0x1c9df2['dim'](_0x42af2f(0x2b7))),console[_0x42af2f(0x392)](a31_0x1c9df2['dim']('using\x20the\x20default\x20path:\x20'+PARENT_SEGMENT_DIR+_0x42af2f(0x1d0))),console[_0x42af2f(0x392)](a31_0x1c9df2[_0x42af2f(0x250)](_0x42af2f(0x365))),0x1;const _0x539baf=_0x13de5a[_0x42af2f(0x2fc)]||a31_0x1a2c9e[_0x42af2f(0x35e)](PARENT_SEGMENT_DIR,sanitizeFileName(_0x18ae61)+'.yml');_0x13de5a[_0x42af2f(0x3d7)]&&(console['error'](_0x42af2f(0x290)+_0x13de5a[_0x42af2f(0x1df)]),console['error'](_0x42af2f(0x21b)+_0x18ae61),console['error'](_0x42af2f(0x2ac)+_0x539baf));const _0x5974ff=await withSpinner('Fetching\x20parent\x20segment\x20\x27'+_0x18ae61+_0x42af2f(0x3e1),()=>_0x3ffcfe['segment']['pullParentYaml'](_0x18ae61),{'verbose':_0x13de5a['verbose']}),_0x55fd78=_0x5974ff[_0x42af2f(0x27d)];if(existsSync(_0x539baf)){const _0x21c5b6=readFileSync(_0x539baf,_0x42af2f(0x29a)),_0x10bd7f=generateDiff(_0x21c5b6,_0x55fd78);if(!hasChanges(_0x10bd7f))console['error'](a31_0x1c9df2[_0x42af2f(0x31e)]('✔')+_0x42af2f(0x28a)+a31_0x1c9df2[_0x42af2f(0x250)](_0x539baf)+_0x42af2f(0x2b8));else{console[_0x42af2f(0x392)](_0x42af2f(0x308)+_0x539baf+'\x27:'),console[_0x42af2f(0x392)]('─'[_0x42af2f(0x1ed)](0x3c)),console[_0x42af2f(0x392)](formatDiffWithColors(_0x10bd7f)),console['error']('─'[_0x42af2f(0x1ed)](0x3c));if(!_0x13de5a[_0x42af2f(0x200)]){if(!isInteractive())return console['error'](a31_0x1c9df2[_0x42af2f(0x338)]('\x0aError:'),_0x42af2f(0x3d9)),console[_0x42af2f(0x392)](a31_0x1c9df2[_0x42af2f(0x256)](_0x42af2f(0x1d4))),0x1;const _0x1f8d8=await confirmKey(_0x42af2f(0x273)+_0x539baf+'\x27?');if(!_0x1f8d8)return console[_0x42af2f(0x392)](a31_0x1c9df2['yellow']('Aborted.')),0x1;}writeFileSync(_0x539baf,_0x55fd78,'utf-8'),console[_0x42af2f(0x392)](a31_0x1c9df2[_0x42af2f(0x31e)]('✔')+_0x42af2f(0x3b5)+a31_0x1c9df2[_0x42af2f(0x250)](_0x539baf));}}else{const _0x14303f=a31_0x1a2c9e[_0x42af2f(0x1e2)](_0x539baf);!existsSync(_0x14303f)&&mkdirSync(_0x14303f,{'recursive':!![]}),writeFileSync(_0x539baf,_0x55fd78,_0x42af2f(0x29a)),console['error'](a31_0x1c9df2[_0x42af2f(0x31e)]('✔')+'\x20Saved\x20parent\x20segment\x20configuration\x20to\x20'+a31_0x1c9df2[_0x42af2f(0x250)](_0x539baf));}return saveSessionContext({'parent_segment':_0x18ae61},_0x13de5a[_0x42af2f(0x3ef)]),console[_0x42af2f(0x392)](a31_0x1c9df2['green']('✔')+_0x42af2f(0x36d)+a31_0x1c9df2[_0x42af2f(0x256)]('parent_segment')+_0x42af2f(0x2aa)+a31_0x1c9df2[_0x42af2f(0x250)](_0x18ae61)),0x0;}}export class ParentSegmentPushCommand extends BaseParentSegmentCommand{['name']='segment:parent:push';[a31_0x164fd9(0x323)]='Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file';async['execute'](_0x2689d1){const _0x1f35a0=a31_0x164fd9,{options:_0x5afe63,args:_0x10e198,tdx:_0x2679e1}=_0x2689d1,_0x304c83=_0x5afe63,_0x4f2140=_0x10e198[0x0]||_0x5afe63[_0x1f35a0(0x3ec)];if(!_0x4f2140)return showParentSegmentNotSetError(_0x1f35a0(0x377)+_0x1f35a0(0x28c)),0x1;const _0x18cea9=resolveYamlFile(_0x4f2140);if(!existsSync(_0x18cea9))return showFileNotFoundError(_0x18cea9,_0x4f2140),0x1;_0x304c83[_0x1f35a0(0x3d7)]&&(console['error'](_0x1f35a0(0x290)+_0x304c83[_0x1f35a0(0x1df)]),console[_0x1f35a0(0x392)](_0x1f35a0(0x330)+_0x18cea9));let _0x620fea;try{_0x620fea=readFileSync(_0x18cea9,_0x1f35a0(0x29a));}catch(_0x41715a){const _0x32c79b=_0x41715a instanceof Error?_0x41715a[_0x1f35a0(0x2bf)]:String(_0x41715a);return console[_0x1f35a0(0x392)](_0x1f35a0(0x364)+_0x32c79b),0x1;}const _0xd250a=await withSpinner('Analyzing\x20changes...',()=>_0x2679e1[_0x1f35a0(0x30b)][_0x1f35a0(0x2d3)](_0x620fea),{'verbose':_0x304c83[_0x1f35a0(0x3d7)]}),_0x16d892=_0xd250a[_0x1f35a0(0x27d)],{isNew:_0x1d69a4,name:_0x67e901,hasChanges:_0xce3d79,diffFormatted:_0x5798ea}=_0x16d892;if(!_0xce3d79)return console[_0x1f35a0(0x392)](_0x1f35a0(0x257)+_0x67e901+_0x1f35a0(0x3d3)),0x0;_0x1d69a4?console['error'](_0x1f35a0(0x3ce)+_0x67e901+'\x27:'):console[_0x1f35a0(0x392)](_0x1f35a0(0x399)+_0x67e901+'\x27:');console[_0x1f35a0(0x392)]('─'[_0x1f35a0(0x1ed)](0x3c)),console[_0x1f35a0(0x392)](_0x5798ea),console[_0x1f35a0(0x392)]('─'['repeat'](0x3c));const _0x55ad53=_0x1d69a4?_0x1f35a0(0x28e)+_0x67e901+'\x27?':_0x1f35a0(0x3a7)+_0x67e901+'\x27?';if(!_0x304c83[_0x1f35a0(0x200)]){if(!isInteractive())return console['error'](a31_0x1c9df2[_0x1f35a0(0x338)](_0x1f35a0(0x26f)),'Confirmation\x20required\x20but\x20running\x20in\x20non-interactive\x20mode'),console[_0x1f35a0(0x392)](a31_0x1c9df2['dim'](_0x1f35a0(0x1d4))),0x1;const _0x175ea2=await confirmKey(_0x55ad53);if(!_0x175ea2)return console['error'](a31_0x1c9df2['yellow']('Aborted.')),0x1;}const _0x5331a0=_0x1d69a4?_0x1f35a0(0x34b):_0x1f35a0(0x30a),_0x8da7ff=await withSpinner(_0x5331a0+_0x1f35a0(0x1da)+_0x67e901+_0x1f35a0(0x3e1),()=>_0x16d892[_0x1f35a0(0x1eb)](),{'verbose':_0x304c83[_0x1f35a0(0x3d7)]}),_0x36603a=_0x8da7ff[_0x1f35a0(0x27d)],_0x4ccf21=getConsoleNextUrl(_0x304c83[_0x1f35a0(0x1df)],'/app/dw/parentSegments/'+_0x36603a['id']),_0x19180d=_0x1d69a4?_0x1f35a0(0x3f0):_0x1f35a0(0x20d);return console[_0x1f35a0(0x392)]('✔\x20'+_0x19180d+_0x1f35a0(0x1da)+_0x36603a[_0x1f35a0(0x219)]+'\x27'),console[_0x1f35a0(0x392)]('\x20\x20'+_0x4ccf21),0x0;}}export class ParentSegmentValidateCommand extends BaseParentSegmentCommand{[a31_0x164fd9(0x219)]=a31_0x164fd9(0x23e);[a31_0x164fd9(0x323)]=a31_0x164fd9(0x2fe);async[a31_0x164fd9(0x29d)](_0x1f6ce4){const _0x4f8cba=a31_0x164fd9,{options:_0xfb2fcf,args:_0x3f20dd,tdx:_0x4a8e67}=_0x1f6ce4,_0x2aad1e=_0xfb2fcf,_0x1ad739=_0x3f20dd[0x0]||_0xfb2fcf[_0x4f8cba(0x3ec)];if(!_0x1ad739)return showParentSegmentNotSetError('Usage:\x20tdx\x20ps\x20validate\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Validate\x20(requires\x20context)\x0a'+_0x4f8cba(0x1f6)+_0x4f8cba(0x341)+_0x4f8cba(0x3e8)+_0x4f8cba(0x3ac)+_0x4f8cba(0x304)),0x1;const _0xbc46b4=resolveYamlFile(_0x1ad739);if(!existsSync(_0xbc46b4))return showFileNotFoundError(_0xbc46b4,_0x1ad739),0x1;_0x2aad1e['verbose']&&(console[_0x4f8cba(0x392)](_0x4f8cba(0x290)+_0x2aad1e[_0x4f8cba(0x1df)]),console[_0x4f8cba(0x392)](_0x4f8cba(0x330)+_0xbc46b4));let _0x2722f4;try{_0x2722f4=readFileSync(_0xbc46b4,_0x4f8cba(0x29a));}catch(_0x1583a9){const _0x475fe6=_0x1583a9 instanceof Error?_0x1583a9['message']:String(_0x1583a9);return console[_0x4f8cba(0x392)](_0x4f8cba(0x364)+_0x475fe6),0x1;}const _0x4ca7f2=createCommandSpinner(a31_0x1c9df2[_0x4f8cba(0x256)]('Validating\x20configuration...'),{'verbose':_0x2aad1e[_0x4f8cba(0x3d7)]});_0x4ca7f2['start']();const _0x45f133={'onProgress':_0x46fd1e=>{const _0x24d72f=_0x4f8cba;_0x4ca7f2[_0x24d72f(0x2c6)]=formatProgressMessage(_0x46fd1e);}};if(_0x2aad1e['master'])_0x45f133[_0x4f8cba(0x3ea)]=!![];if(_0x2aad1e[_0x4f8cba(0x355)])_0x45f133[_0x4f8cba(0x355)]=!![];_0x2aad1e[_0x4f8cba(0x29b)]&&(_0x45f133[_0x4f8cba(0x29b)]=_0x2aad1e['attribute']);_0x2aad1e[_0x4f8cba(0x1d7)]&&(_0x45f133[_0x4f8cba(0x1d7)]=_0x2aad1e[_0x4f8cba(0x1d7)]);if(_0x2aad1e[_0x4f8cba(0x30e)])_0x45f133[_0x4f8cba(0x30e)]=_0x2aad1e['interval'];let _0x15bdfa;try{_0x15bdfa=await _0x4a8e67[_0x4f8cba(0x30b)]['validateParentYaml'](_0x2722f4,_0x45f133),_0x4ca7f2[_0x4f8cba(0x31d)]();}catch(_0x3e21b8){_0x4ca7f2[_0x4f8cba(0x31d)]();throw _0x3e21b8;}const _0x497b51=_0x2aad1e[_0x4f8cba(0x30e)]||'-1d';return this['displayValidateResults'](_0x15bdfa,_0x45f133,_0xbc46b4,_0x497b51),_0x15bdfa['allValid']?0x0:0x1;}['displayValidateResults'](_0x43d789,_0x233852,_0x554c0c,_0x175f2f){const _0x172983=a31_0x164fd9;console[_0x172983(0x392)]('\x0a'+a31_0x1c9df2[_0x172983(0x2ea)](_0x172983(0x2f6))+'\x20'+_0x43d789[_0x172983(0x219)]),console[_0x172983(0x392)]('═'[_0x172983(0x1ed)](0x3c)),this[_0x172983(0x1ff)](_0x43d789);if(typeof _0x233852[_0x172983(0x29b)]===_0x172983(0x20e)){this[_0x172983(0x252)](_0x43d789),this[_0x172983(0x2d7)](_0x43d789),this[_0x172983(0x212)](_0x554c0c,_0x175f2f,_0x172983(0x29b),_0x233852['attribute']);return;}if(_0x233852[_0x172983(0x29b)]===!![]){this[_0x172983(0x252)](_0x43d789),this['displaySummary'](_0x43d789),this[_0x172983(0x212)](_0x554c0c,_0x175f2f,_0x172983(0x218));return;}if(typeof _0x233852[_0x172983(0x1d7)]===_0x172983(0x20e)){this[_0x172983(0x2e4)](_0x43d789,_0x175f2f),this[_0x172983(0x2d7)](_0x43d789),this[_0x172983(0x212)](_0x554c0c,_0x175f2f,_0x172983(0x1d7),_0x233852[_0x172983(0x1d7)]);return;}if(_0x233852[_0x172983(0x1d7)]===!![]){this[_0x172983(0x2e4)](_0x43d789,_0x175f2f),this[_0x172983(0x2d7)](_0x43d789),this[_0x172983(0x212)](_0x554c0c,_0x175f2f,_0x172983(0x3c3));return;}this['displayAttributesStats'](_0x43d789),this[_0x172983(0x2e4)](_0x43d789,_0x175f2f),this['displayRealtimeInfo'](_0x43d789),this[_0x172983(0x2d7)](_0x43d789),this['displayPreviewHints'](_0x554c0c,_0x175f2f,_0x172983(0x38e));}[a31_0x164fd9(0x35c)](_0x2d9c60){displayRealtimeValidation(_0x2d9c60);}[a31_0x164fd9(0x212)](_0x822492,_0x12da6e,_0x4b2e0a,_0x27bd42){const _0x365e5a=a31_0x164fd9;console[_0x365e5a(0x392)]('\x0a'+a31_0x1c9df2[_0x365e5a(0x256)]('To\x20view\x20sample\x20data:'));const _0x3ea5b3=_0x12da6e!==_0x365e5a(0x3c6)?_0x365e5a(0x1e9)+_0x12da6e:'';if(_0x4b2e0a===_0x365e5a(0x29b)&&_0x27bd42)console['error']('\x20\x20'+a31_0x1c9df2[_0x365e5a(0x256)](_0x365e5a(0x25b)+_0x822492+'\x20--attribute\x20\x22'+_0x27bd42+'\x22'+_0x3ea5b3));else{if(_0x4b2e0a===_0x365e5a(0x1d7)&&_0x27bd42)console[_0x365e5a(0x392)]('\x20\x20'+a31_0x1c9df2['dim'](_0x365e5a(0x25b)+_0x822492+_0x365e5a(0x1fc)+_0x27bd42+'\x22'+_0x3ea5b3));else(_0x4b2e0a===_0x365e5a(0x218)||_0x4b2e0a===_0x365e5a(0x38e))&&console[_0x365e5a(0x392)]('\x20\x20'+a31_0x1c9df2[_0x365e5a(0x256)](_0x365e5a(0x25b)+_0x822492+'\x20--attribute\x20\x22<name>\x22'+_0x3ea5b3));}(_0x4b2e0a===_0x365e5a(0x3c3)||_0x4b2e0a===_0x365e5a(0x38e))&&console[_0x365e5a(0x392)]('\x20\x20'+a31_0x1c9df2[_0x365e5a(0x256)](_0x365e5a(0x25b)+_0x822492+'\x20--behavior\x20\x22<name>\x22'+_0x3ea5b3)),_0x4b2e0a==='all'&&console[_0x365e5a(0x392)]('\x20\x20'+a31_0x1c9df2[_0x365e5a(0x256)](_0x365e5a(0x25b)+_0x822492+'\x20--enriched'+_0x3ea5b3));}[a31_0x164fd9(0x1ff)](_0x3883c5){const _0x4f0e1a=a31_0x164fd9,{master:_0x206154}=_0x3883c5,_0x593500=_0x206154[_0x4f0e1a(0x3f5)]?a31_0x1c9df2['green']('✔'):a31_0x1c9df2[_0x4f0e1a(0x338)]('✘');console['error']('\x0a'+a31_0x1c9df2['dim']('Master\x20Table')),console[_0x4f0e1a(0x392)](_0x593500+'\x20'+a31_0x1c9df2[_0x4f0e1a(0x2ea)](_0x206154[_0x4f0e1a(0x381)]+'.'+_0x206154['table'])),_0x206154[_0x4f0e1a(0x3f5)]?_0x206154[_0x4f0e1a(0x302)]!==undefined&&console[_0x4f0e1a(0x392)]('\x20\x20'+a31_0x1c9df2['dim']('Rows:')+'\x20'+a31_0x1c9df2[_0x4f0e1a(0x250)](formatRows(_0x206154[_0x4f0e1a(0x302)]))):console[_0x4f0e1a(0x392)]('\x20\x20'+a31_0x1c9df2[_0x4f0e1a(0x338)]('Error:')+'\x20'+_0x206154['schemaError']);}[a31_0x164fd9(0x252)](_0x2b4f56){const _0x2dd3f2=a31_0x164fd9;if(_0x2b4f56[_0x2dd3f2(0x218)][_0x2dd3f2(0x2dc)]===0x0)return;console['error']('\x0a'+a31_0x1c9df2['dim'](_0x2dd3f2(0x36c)));for(const _0x240fa9 of _0x2b4f56['attributes']){const _0xa9259e=_0x240fa9['schemaValid']?a31_0x1c9df2[_0x2dd3f2(0x31e)]('✔'):a31_0x1c9df2[_0x2dd3f2(0x338)]('✘');let _0x1f0e10='';if(_0x240fa9['schemaValid']&&_0x240fa9[_0x2dd3f2(0x263)]!==undefined&&_0x240fa9['coveragePercent']!==undefined){const _0x55cf34=_0x240fa9['coveragePercent']['toFixed'](0x1),_0x2e1590=_0x240fa9[_0x2dd3f2(0x28b)]>=0x50?a31_0x1c9df2[_0x2dd3f2(0x31e)]:_0x240fa9[_0x2dd3f2(0x28b)]>=0x32?a31_0x1c9df2[_0x2dd3f2(0x216)]:a31_0x1c9df2[_0x2dd3f2(0x338)];_0x1f0e10='\x20'+a31_0x1c9df2['dim'](_0x2dd3f2(0x23f))+'\x20'+_0x2e1590(_0x55cf34+'%')+'\x20('+formatRows(_0x240fa9['matchedCount'])+_0x2dd3f2(0x390);}console[_0x2dd3f2(0x392)](_0xa9259e+'\x20'+a31_0x1c9df2[_0x2dd3f2(0x2ea)](_0x240fa9['name'])+_0x1f0e10),console[_0x2dd3f2(0x392)]('\x20\x20'+a31_0x1c9df2[_0x2dd3f2(0x256)](_0x2dd3f2(0x2a4))+'\x20'+a31_0x1c9df2[_0x2dd3f2(0x2ea)](_0x240fa9[_0x2dd3f2(0x381)]+'.'+_0x240fa9[_0x2dd3f2(0x366)]));const _0x2582be=_0x240fa9[_0x2dd3f2(0x2d1)]===_0x240fa9[_0x2dd3f2(0x24c)]?a31_0x1c9df2[_0x2dd3f2(0x256)]('Join\x20on:')+'\x20'+_0x240fa9[_0x2dd3f2(0x2d1)]:a31_0x1c9df2[_0x2dd3f2(0x256)]('Join:')+'\x20'+_0x240fa9['joinKey']+_0x2dd3f2(0x2aa)+_0x240fa9[_0x2dd3f2(0x24c)];console['error']('\x20\x20'+_0x2582be),console[_0x2dd3f2(0x392)]('\x20\x20'+a31_0x1c9df2[_0x2dd3f2(0x256)](_0x2dd3f2(0x2dd))),this['displayColumns'](_0x240fa9[_0x2dd3f2(0x217)]),!_0x240fa9['schemaValid']&&console[_0x2dd3f2(0x392)]('\x20\x20'+a31_0x1c9df2[_0x2dd3f2(0x338)]('Error:')+'\x20'+_0x240fa9[_0x2dd3f2(0x2d8)]);}}[a31_0x164fd9(0x2e4)](_0x31dd12,_0x16d5a5){const _0x405932=a31_0x164fd9;if(_0x31dd12[_0x405932(0x3c3)]['length']===0x0)return;console[_0x405932(0x392)]('\x0a'+a31_0x1c9df2[_0x405932(0x256)]('Behaviors')+'\x20'+a31_0x1c9df2['dim']('('+_0x16d5a5+')'));for(const _0x42e6a6 of _0x31dd12['behaviors']){const _0x1009cb=_0x42e6a6[_0x405932(0x3f5)]?a31_0x1c9df2['green']('✔'):a31_0x1c9df2[_0x405932(0x338)]('✘');let _0x417bc7='';if(_0x42e6a6[_0x405932(0x3f5)]&&_0x42e6a6[_0x405932(0x306)]!==undefined&&_0x42e6a6[_0x405932(0x322)]!==undefined){const _0x42952b=_0x42e6a6[_0x405932(0x374)]?.[_0x405932(0x27f)](0x1)||'?',_0x38f459=(_0x42e6a6[_0x405932(0x374)]??0x0)>=0x32?a31_0x1c9df2['green']:(_0x42e6a6[_0x405932(0x374)]??0x0)>=0x14?a31_0x1c9df2[_0x405932(0x216)]:a31_0x1c9df2['red'];_0x417bc7='\x20'+a31_0x1c9df2[_0x405932(0x256)](_0x405932(0x372))+'\x20'+_0x38f459(formatRows(_0x42e6a6['customersWithEvents']))+'\x20('+_0x42952b+_0x405932(0x3b3)+a31_0x1c9df2['dim'](_0x405932(0x3e7))+'\x20'+a31_0x1c9df2[_0x405932(0x250)](formatRows(_0x42e6a6[_0x405932(0x322)]));}console[_0x405932(0x392)](_0x1009cb+'\x20'+a31_0x1c9df2[_0x405932(0x2ea)](_0x42e6a6['name'])+_0x417bc7),console[_0x405932(0x392)]('\x20\x20'+a31_0x1c9df2['dim'](_0x405932(0x2a4))+'\x20'+a31_0x1c9df2[_0x405932(0x2ea)](_0x42e6a6[_0x405932(0x381)]+'.'+_0x42e6a6['table']));const _0x513724=_0x42e6a6['joinKey']===_0x42e6a6[_0x405932(0x24c)]?a31_0x1c9df2[_0x405932(0x256)](_0x405932(0x278))+'\x20'+_0x42e6a6[_0x405932(0x2d1)]:a31_0x1c9df2['dim'](_0x405932(0x2d2))+'\x20'+_0x42e6a6['joinKey']+_0x405932(0x2aa)+_0x42e6a6[_0x405932(0x24c)];console[_0x405932(0x392)]('\x20\x20'+_0x513724),console['error']('\x20\x20'+a31_0x1c9df2[_0x405932(0x256)](_0x405932(0x2dd))),this[_0x405932(0x287)](_0x42e6a6['columns']),!_0x42e6a6[_0x405932(0x3f5)]&&console['error']('\x20\x20'+a31_0x1c9df2['red'](_0x405932(0x230))+'\x20'+_0x42e6a6['schemaError']);}}[a31_0x164fd9(0x287)](_0x5a6d80){const _0x59255b=a31_0x164fd9;for(const _0x17284f of _0x5a6d80){_0x17284f['label']===_0x17284f[_0x59255b(0x3b4)]||_0x17284f[_0x59255b(0x3b4)]==='*'?console[_0x59255b(0x392)](_0x59255b(0x268)+_0x17284f['label']):console[_0x59255b(0x392)]('\x20\x20\x20\x20-\x20'+_0x17284f['label']+'\x20'+a31_0x1c9df2[_0x59255b(0x256)]('('+_0x17284f['column']+')'));}}[a31_0x164fd9(0x2d7)](_0x433432){const _0x5a9d3e=a31_0x164fd9;console[_0x5a9d3e(0x392)]('─'[_0x5a9d3e(0x1ed)](0x3c));if(_0x433432['errors'][_0x5a9d3e(0x2dc)]>0x0){console['error']('\x0a'+a31_0x1c9df2[_0x5a9d3e(0x338)]('Errors:'));for(const _0x1f8944 of _0x433432['errors']){console['error']('\x20\x20'+a31_0x1c9df2[_0x5a9d3e(0x338)]('•')+'\x20'+_0x1f8944);}}_0x433432[_0x5a9d3e(0x307)]&&console[_0x5a9d3e(0x392)]('\x0a'+a31_0x1c9df2[_0x5a9d3e(0x31e)]('✔')+_0x5a9d3e(0x2ee));}}export class ParentSegmentPreviewCommand extends BaseParentSegmentCommand{[a31_0x164fd9(0x219)]=a31_0x164fd9(0x3d6);['description']=a31_0x164fd9(0x3eb);async['execute'](_0x54ed76){const _0x3d405f=a31_0x164fd9,{options:_0x658d03,args:_0x379d09,tdx:_0xc66fda}=_0x54ed76,_0x491616=_0x658d03,_0xa81eb6=_0x379d09[0x0]||_0x658d03[_0x3d405f(0x3ec)];if(!_0xa81eb6)return showParentSegmentNotSetError(_0x3d405f(0x2c3)+_0x3d405f(0x3da)+'Options\x20(one\x20required):\x0a'+_0x3d405f(0x3e5)+_0x3d405f(0x360)+_0x3d405f(0x3ab)+_0x3d405f(0x30d)+_0x3d405f(0x304)),0x1;if(!_0x491616[_0x3d405f(0x3ea)]&&!_0x491616[_0x3d405f(0x29b)]&&!_0x491616['behavior']&&!_0x491616[_0x3d405f(0x355)])return console['error'](a31_0x1c9df2[_0x3d405f(0x338)](_0x3d405f(0x298))),console[_0x3d405f(0x392)](_0x3d405f(0x39d)),console[_0x3d405f(0x392)](_0x3d405f(0x297)),console[_0x3d405f(0x392)](_0x3d405f(0x238)),console['error'](_0x3d405f(0x1fb)),console[_0x3d405f(0x392)](_0x3d405f(0x3b8)),console['error'](_0x3d405f(0x3c9)),0x1;const _0x10b87f=resolveYamlFile(_0xa81eb6);if(!existsSync(_0x10b87f))return showFileNotFoundError(_0x10b87f,_0xa81eb6),0x1;_0x491616[_0x3d405f(0x3d7)]&&(console['error'](_0x3d405f(0x290)+_0x491616[_0x3d405f(0x1df)]),console['error'](_0x3d405f(0x330)+_0x10b87f));let _0x275fb2;try{_0x275fb2=readFileSync(_0x10b87f,_0x3d405f(0x29a));}catch(_0x4e1053){const _0x47e418=_0x4e1053 instanceof Error?_0x4e1053[_0x3d405f(0x2bf)]:String(_0x4e1053);return console[_0x3d405f(0x392)](_0x3d405f(0x364)+_0x47e418),0x1;}let _0x3d2601;try{_0x3d2601=parseDef(_0x275fb2);}catch(_0x44be4d){const _0x53fdc2=_0x44be4d instanceof Error?_0x44be4d[_0x3d405f(0x2bf)]:String(_0x44be4d);return console[_0x3d405f(0x392)](a31_0x1c9df2[_0x3d405f(0x338)](_0x3d405f(0x2f9)+_0x53fdc2)),0x1;}if(_0x491616[_0x3d405f(0x29b)]===!![]||_0x491616[_0x3d405f(0x29b)]===''){const _0x3f48eb=_0x3d2601[_0x3d405f(0x218)]?.[_0x3d405f(0x280)](_0x2e0e0c=>_0x2e0e0c['name'])||[];if(_0x3f48eb[_0x3d405f(0x2dc)]===0x0)console['error'](a31_0x1c9df2[_0x3d405f(0x338)]('Error:\x20No\x20attributes\x20defined\x20in\x20configuration'));else{console[_0x3d405f(0x392)](a31_0x1c9df2['red'](_0x3d405f(0x291))),console[_0x3d405f(0x392)](_0x3d405f(0x210));for(const _0xca38b1 of _0x3f48eb){console[_0x3d405f(0x392)]('\x20\x20'+a31_0x1c9df2['cyan'](_0xca38b1));}console['error'](_0x3d405f(0x235)+_0xa81eb6+_0x3d405f(0x361)+_0x3f48eb[0x0]+'\x22');}return 0x1;}if(_0x491616['behavior']===!![]||_0x491616[_0x3d405f(0x1d7)]===''){const _0x53b1bc=_0x3d2601[_0x3d405f(0x3c3)]?.[_0x3d405f(0x280)](_0x3982c7=>_0x3982c7[_0x3d405f(0x219)])||[];if(_0x53b1bc['length']===0x0)console[_0x3d405f(0x392)](a31_0x1c9df2[_0x3d405f(0x338)](_0x3d405f(0x343)));else{console['error'](a31_0x1c9df2['red'](_0x3d405f(0x242))),console[_0x3d405f(0x392)]('Available\x20behaviors:');for(const _0x5ec255 of _0x53b1bc){console[_0x3d405f(0x392)]('\x20\x20'+a31_0x1c9df2[_0x3d405f(0x250)](_0x5ec255));}console['error']('\x0aUsage:\x20tdx\x20ps\x20preview\x20'+_0xa81eb6+_0x3d405f(0x1fc)+_0x53b1bc[0x0]+'\x22');}return 0x1;}const _0x30e3de=createCommandSpinner(a31_0x1c9df2['dim'](_0x3d405f(0x384)),{'verbose':_0x491616[_0x3d405f(0x3d7)]});_0x30e3de[_0x3d405f(0x340)]();const _0x146fe0={'onProgress':_0x177d57=>{_0x30e3de['text']=formatProgressMessage(_0x177d57);}};if(_0x491616[_0x3d405f(0x3ea)])_0x146fe0[_0x3d405f(0x3ea)]=!![];if(_0x491616[_0x3d405f(0x29b)]&&typeof _0x491616[_0x3d405f(0x29b)]===_0x3d405f(0x20e))_0x146fe0[_0x3d405f(0x29b)]=_0x491616[_0x3d405f(0x29b)];if(_0x491616['behavior']&&typeof _0x491616[_0x3d405f(0x1d7)]===_0x3d405f(0x20e))_0x146fe0[_0x3d405f(0x1d7)]=_0x491616['behavior'];if(_0x491616['enriched'])_0x146fe0['enriched']=!![];if(_0x491616[_0x3d405f(0x30e)])_0x146fe0['interval']=_0x491616['interval'];let _0x468c93;try{_0x468c93=await _0xc66fda[_0x3d405f(0x30b)][_0x3d405f(0x23c)](_0x275fb2,_0x146fe0),_0x30e3de[_0x3d405f(0x31d)]();}catch(_0x22be61){_0x30e3de['stop']();throw _0x22be61;}return await this[_0x3d405f(0x23d)](_0x468c93,{'master':_0x491616[_0x3d405f(0x3ea)],'attribute':typeof _0x491616[_0x3d405f(0x29b)]===_0x3d405f(0x20e)?_0x491616[_0x3d405f(0x29b)]:undefined,'behavior':typeof _0x491616[_0x3d405f(0x1d7)]===_0x3d405f(0x20e)?_0x491616[_0x3d405f(0x1d7)]:undefined,'enriched':_0x491616[_0x3d405f(0x355)]}),_0x468c93[_0x3d405f(0x307)]?0x0:0x1;}async[a31_0x164fd9(0x23d)](_0x5d06d2,_0x49f87a){const _0x42d7b7=a31_0x164fd9;console[_0x42d7b7(0x392)]('\x0a'+a31_0x1c9df2[_0x42d7b7(0x2ea)](_0x42d7b7(0x3af))+'\x20'+_0x5d06d2[_0x42d7b7(0x219)]),console[_0x42d7b7(0x392)]('═'[_0x42d7b7(0x1ed)](0x3c));if(_0x49f87a[_0x42d7b7(0x3ea)]&&_0x5d06d2[_0x42d7b7(0x357)]){const _0x327cd5=a31_0x1c9df2[_0x42d7b7(0x256)](_0x42d7b7(0x211))+'\x20'+a31_0x1c9df2['bold'](_0x5d06d2[_0x42d7b7(0x3ea)]['database']+'.'+_0x5d06d2['master']['table']);await this[_0x42d7b7(0x272)](_0x327cd5,_0x5d06d2['sampleData']);}else{if(_0x49f87a[_0x42d7b7(0x29b)]&&_0x5d06d2[_0x42d7b7(0x357)]){const _0x1d7e05=a31_0x1c9df2[_0x42d7b7(0x256)]('Attribute:')+'\x20'+a31_0x1c9df2[_0x42d7b7(0x2ea)](_0x49f87a[_0x42d7b7(0x29b)]);await this['displaySampleData'](_0x1d7e05,_0x5d06d2[_0x42d7b7(0x357)]);}else{if(_0x49f87a['behavior']&&_0x5d06d2[_0x42d7b7(0x357)]){const _0x3c84d2=a31_0x1c9df2['dim'](_0x42d7b7(0x39a))+'\x20'+a31_0x1c9df2[_0x42d7b7(0x2ea)](_0x49f87a[_0x42d7b7(0x1d7)]);await this[_0x42d7b7(0x272)](_0x3c84d2,_0x5d06d2[_0x42d7b7(0x357)]);}else{if(_0x49f87a['enriched']&&_0x5d06d2[_0x42d7b7(0x357)]){const _0x44816e=a31_0x1c9df2[_0x42d7b7(0x256)](_0x42d7b7(0x2cb))+'\x20'+a31_0x1c9df2[_0x42d7b7(0x2ea)](_0x42d7b7(0x32e));await this['displaySampleData'](_0x44816e,_0x5d06d2[_0x42d7b7(0x357)]);}else!_0x5d06d2[_0x42d7b7(0x357)]&&console['error']('\x0aNo\x20sample\x20data\x20available');}}}if(_0x5d06d2[_0x42d7b7(0x339)][_0x42d7b7(0x2dc)]>0x0){console[_0x42d7b7(0x392)]('─'[_0x42d7b7(0x1ed)](0x3c)),console[_0x42d7b7(0x392)]('\x0a'+a31_0x1c9df2[_0x42d7b7(0x338)](_0x42d7b7(0x24e)));for(const _0x22b4fe of _0x5d06d2[_0x42d7b7(0x339)]){console[_0x42d7b7(0x392)]('\x20\x20'+a31_0x1c9df2[_0x42d7b7(0x338)]('•')+'\x20'+_0x22b4fe);}}}async[a31_0x164fd9(0x272)](_0x16179a,_0x56bdc2){const _0x163a30=a31_0x164fd9;if(_0x56bdc2[_0x163a30(0x2dc)]===0x0){console[_0x163a30(0x392)]('\x0a'+_0x16179a),console[_0x163a30(0x392)]('\x20\x20No\x20sample\x20data\x20available');return;}console[_0x163a30(0x392)]('\x0a'+_0x16179a);const _0x3ee908=Object['keys'](_0x56bdc2[0x0])[_0x163a30(0x280)](_0x35e48b=>({'name':_0x35e48b,'type':typeof _0x56bdc2[0x0][_0x35e48b]===_0x163a30(0x31b)?_0x163a30(0x225):_0x163a30(0x29f)})),_0x40f7c4={'queryId':'preview','columns':_0x3ee908,'data':_0x56bdc2,'stats':{'state':_0x163a30(0x24d),'queued':![],'scheduled':![],'nodes':0x0,'totalSplits':0x0,'queuedSplits':0x0,'runningSplits':0x0,'completedSplits':0x0,'cpuTimeMillis':0x0,'wallTimeMillis':0x0,'queuedTimeMillis':0x0,'elapsedTimeMillis':0x0,'processedRows':_0x56bdc2['length'],'processedBytes':0x0,'physicalInputBytes':0x0,'peakMemoryBytes':0x0,'spilledBytes':0x0}},_0xc8ec01=formatAsTable(_0x40f7c4,_0x56bdc2[_0x163a30(0x2dc)],!![]);await writeOutput(_0xc8ec01,undefined,'table');}}export class ParentSegmentRunCommand extends BaseParentSegmentCommand{[a31_0x164fd9(0x219)]=a31_0x164fd9(0x206);[a31_0x164fd9(0x323)]=a31_0x164fd9(0x3e0);async[a31_0x164fd9(0x29d)](_0x5543d2){const _0x306d77=a31_0x164fd9,{options:_0x25ddf0,args:_0x1bc7e4,tdx:_0x93d672}=_0x5543d2,_0x15ed66=_0x25ddf0,_0xbd7dfe=_0x1bc7e4[0x0]||_0x25ddf0[_0x306d77(0x3ec)];if(!_0xbd7dfe)return showParentSegmentNotSetError(_0x306d77(0x1dc)+'\x20\x20\x20\x20\x20\x20\x20tdx\x20ps\x20run\x20<name>\x20\x20\x20\x20\x20\x20\x20#\x20Run\x20specific\x20parent\x20segment'),0x1;const _0x1ec994=resolveYamlFile(_0xbd7dfe);if(existsSync(_0x1ec994)){_0x15ed66[_0x306d77(0x3d7)]&&console[_0x306d77(0x392)](_0x306d77(0x393)+_0x1ec994);let _0x4aa5c1;try{_0x4aa5c1=readFileSync(_0x1ec994,_0x306d77(0x29a));}catch(_0x557c7c){const _0x4929a4=_0x557c7c instanceof Error?_0x557c7c[_0x306d77(0x2bf)]:String(_0x557c7c);return console['error']('Error\x20reading\x20file:\x20'+_0x4929a4),0x1;}const _0x3e06e6=await withSpinner(_0x306d77(0x1de),()=>_0x93d672[_0x306d77(0x30b)][_0x306d77(0x2d3)](_0x4aa5c1),{'verbose':_0x15ed66[_0x306d77(0x3d7)]}),_0x35b6b8=_0x3e06e6[_0x306d77(0x27d)],{isNew:_0x58c0f9,name:_0x5ee6d9,hasChanges:_0x50a080,diffFormatted:_0x12095f}=_0x35b6b8;if(_0x50a080){_0x58c0f9?console['error'](_0x306d77(0x3ce)+_0x5ee6d9+'\x27:'):console[_0x306d77(0x392)]('\x0aChanges\x20to\x20apply\x20to\x20\x27'+_0x5ee6d9+'\x27:');console[_0x306d77(0x392)]('─'[_0x306d77(0x1ed)](0x3c)),console[_0x306d77(0x392)](_0x12095f),console[_0x306d77(0x392)]('─'['repeat'](0x3c));const _0x44c90c=_0x58c0f9?'Create\x20parent\x20segment\x20\x27'+_0x5ee6d9+_0x306d77(0x1e8):'Apply\x20changes\x20to\x20\x27'+_0x5ee6d9+_0x306d77(0x1e8);if(!_0x15ed66['yes']){if(!isInteractive())return console['error'](a31_0x1c9df2[_0x306d77(0x338)](_0x306d77(0x26f)),_0x306d77(0x3d9)),console[_0x306d77(0x392)](a31_0x1c9df2['dim'](_0x306d77(0x1d4))),0x1;const _0x4516f5=await confirmKey(_0x44c90c);if(!_0x4516f5)return console[_0x306d77(0x392)](a31_0x1c9df2[_0x306d77(0x216)](_0x306d77(0x35b))),0x1;}const _0x464884=_0x58c0f9?_0x306d77(0x34b):_0x306d77(0x30a);await withSpinner(_0x464884+_0x306d77(0x1da)+_0x5ee6d9+_0x306d77(0x3e1),()=>_0x35b6b8[_0x306d77(0x1eb)](),{'verbose':_0x15ed66[_0x306d77(0x3d7)]});const _0x20fecc=_0x58c0f9?_0x306d77(0x3f0):_0x306d77(0x20d);console[_0x306d77(0x392)]('✔\x20'+_0x20fecc+_0x306d77(0x1da)+_0x5ee6d9+'\x27');}else console[_0x306d77(0x392)]('✔\x20No\x20changes\x20-\x20\x27'+_0x5ee6d9+_0x306d77(0x241));}const _0x581dd8=await withSpinner(_0x306d77(0x3e4)+_0xbd7dfe+_0x306d77(0x3e1),()=>_0x93d672[_0x306d77(0x30b)][_0x306d77(0x3a9)](_0xbd7dfe),{'verbose':_0x15ed66['verbose']}),_0x4d5bb6=_0x581dd8['data'],_0x213089=getConsoleUrl(_0x15ed66[_0x306d77(0x1df)],'/app/workflows/'+_0x4d5bb6[_0x306d77(0x281)]+'/sessions/'+_0x4d5bb6[_0x306d77(0x1d3)]+_0x306d77(0x22f)+_0x4d5bb6[_0x306d77(0x3cc)]);return console[_0x306d77(0x392)](_0x306d77(0x2ba)),console[_0x306d77(0x392)]('\x20\x20'+a31_0x1c9df2[_0x306d77(0x256)](_0x306d77(0x2a2))+'\x20'+_0x4d5bb6[_0x306d77(0x2ca)]),console[_0x306d77(0x392)]('\x20\x20'+a31_0x1c9df2[_0x306d77(0x256)](_0x306d77(0x299))+'\x20'+_0x4d5bb6[_0x306d77(0x383)]),console[_0x306d77(0x392)]('\x20\x20'+a31_0x1c9df2[_0x306d77(0x256)](_0x306d77(0x20b))+'\x20'+_0x4d5bb6[_0x306d77(0x1d3)]),console[_0x306d77(0x392)]('\x20\x20'+a31_0x1c9df2[_0x306d77(0x256)](_0x306d77(0x1ce))+'\x20'+_0x4d5bb6[_0x306d77(0x3cc)]),console[_0x306d77(0x392)]('\x20\x20'+_0x213089),console['error']('\x0a'+a31_0x1c9df2[_0x306d77(0x256)](_0x306d77(0x325))+_0x306d77(0x2ff)+_0x4d5bb6[_0x306d77(0x3cc)]+_0x306d77(0x319)),0x0;}}function a31_0x3713(){const _0x583b45=['keyEventCriteria','displayColumns','Error:\x20--name\x20is\x20required\x20(or\x20use\x20--file\x20for\x20a\x20full\x20request\x20body)','\x20\x20Columns:\x20','\x20No\x20changes\x20-\x20','coveragePercent','\x20\x20\x20\x20\x20\x20\x20tdx\x20ps\x20push\x20<name>\x20\x20\x20\x20\x20\x20\x20#\x20Push\x20specific\x20parent\x20segment','Usage:\x20tdx\x20ps\x20rt\x20jn\x20list\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20List\x20RT\x20journeys\x20(requires\x20context)\x0a','Create\x20parent\x20segment\x20\x27','Getting\x20personalization\x20\x27','Site:\x20','Error:\x20--attribute\x20requires\x20a\x20name\x0a','Listing\x20parent\x20segments...','ps:rt:jn:resume','delete','ps:pz:service:delete','\x20\x20\x20\x20\x20\x20\x20tdx\x20ps\x20pz\x20service\x20token\x20delete\x20<token_id>\x20\x20#\x20Uses\x20context','Options:','Error:\x20At\x20least\x20one\x20preview\x20option\x20required\x0a','Status:','utf-8','attribute','✔\x20Updated\x20personalization\x20\x27','execute','ps:pz:service:update','varchar','⚡\x20Enabled','ps:rt:validate','Audience\x20ID:','7yRTaWQ','Source:','segment:parent:update','Default','534924itwPMc','jobId','2501088nsHPPS','\x20=\x20','\x20\x20\x20\x20{\x0a\x20\x20\x20\x20\x20\x20\x22table\x22:\x20\x22','Output\x20file:\x20','Error:\x20Token\x20ID\x20is\x20required','Error:\x20Parent\x20segment\x20name\x20is\x20required','Personalization\x20service\x20description','paused','\x20personalization\x20service','customerGroup','\x20\x20\x20\x20\x20\x20\x20tdx\x20ps\x20view\x20<name>\x20\x20\x20\x20\x20\x20\x20#\x20View\x20specific\x20parent\x20segment\x0a\x0a','Error:\x20\x22relationships.parentFolder\x22\x20is\x20required\x20in\x20the\x20JSON\x20file.','\x20Opening\x20','ps:rt:configuration_versions','The\x20-u\x20flag\x20sets\x20the\x20context\x20to\x20the\x20pulled\x20segment,\x20which\x20requires','\x20is\x20already\x20up\x20to\x20date','folder-segment','\x0a✔\x20Workflow\x20started','createToken','xdg-open','Update\x20a\x20personalization\x20service\x20name\x20and/or\x20description','Pattern:\x20','message','✔\x20Created\x20parent\x20segment\x20\x27','createPersonalization','\x27\x20for\x20service\x20\x27','Usage:\x20tdx\x20ps\x20preview\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Preview\x20(requires\x20context)\x0a','Add\x20template\x20personalization\x20section\x20to\x20parent\x20segment\x20YAML','\x0a)\x20AS\x20segment_query\x0aLIMIT\x20','text','Resolving\x20parent\x20segment\x20\x27','Create\x20a\x20realtime\x20personalization\x20entity','\x20\x20\x20\x20\x20\x20\x20tdx\x20ps\x20rt\x20validate\x20<name>\x20\x20\x20\x20\x20\x20\x20#\x20Validate\x20RT\x20config\x20for\x20specific\x20parent\x20segment','audienceId','Enriched:','listPersonalizations','Usage:\x20tdx\x20ps\x20pz\x20list\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20List\x20personalizations\x20(requires\x20context)\x0a','Usage:\x20tdx\x20ps\x20sql\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Show\x20SQL\x20(requires\x20context)\x0a','launched','Validate\x20RT\x202.0\x20configuration\x20from\x20parent\x20segment\x20YAML','joinKey','Join:','pushParentYaml','Pause\x20activations\x20in\x20an\x20RT\x20journey','toLowerCase','created:','displaySummary','schemaError','Fetching\x20current\x20configuration\x20for\x20\x27','ps:pz:service:token:delete','file','length','Columns:','✔\x20Created\x20personalization\x20\x27','allowed\x20IPs:','ignore','Error:\x20--description\x20is\x20required\x20(or\x20use\x20--file\x20for\x20a\x20full\x20request\x20body)','single','Fetching\x20SQL\x20for\x20\x27','displayBehaviorsStats','information_schema','Usage:\x20tdx\x20ps\x20pz\x20service\x20delete\x20<service_id>\x20[parent_segment]\x0a','id:\x20','parent_id','listFields','bold','Creating\x20parent\x20segment\x20\x27','Usage:\x20tdx\x20ps\x20pz\x20patch\x20<id>\x20--name\x20<name>\x20--description\x20<desc>\x20[--sections\x20<json>]','SELECT\x20*\x20FROM\x20','\x20Configuration\x20is\x20valid','pauseJourney','\x22\x20}','web','\x0aTip:\x20Run\x20`tdx\x20ps\x20pz\x20service\x20init`\x20to\x20add\x20a\x20template\x20personalization\x20section\x20to\x20your\x20YAML','true','Usage:\x20tdx\x20ps\x20rt\x20jn\x20resume_activations\x20<journeyId>\x0a','sourceTableValid','Validate:','win32','<database>.<table>','Error\x20parsing\x20YAML:\x20','\x20\x20Note:\x20','segment:parent:show','output','segment:parent:desc','Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics','\x20tdx\x20wf\x20attempt\x20','log','customers','rowCount','97879xZbXvO','\x20\x20--interval\x20<range>\x20\x20\x20TD_INTERVAL\x20time\x20range\x20for\x20behaviors\x20(default:\x20-1d)','keyEventId:','customersWithEvents','allValid','\x0aChanges\x20to\x20\x27','public','Updating','segment','.yml','\x20\x20--enriched\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20sample\x20enriched\x20master\x20data\x0a','interval','format','Fetching\x20parent\x20segment\x20\x27','\x0a⚠️\x20\x20Migrating:\x20','\x20service(s)\x20configured','Usage:\x20tdx\x20segment\x20parent\x20create\x20<name>\x20--database\x20<db>\x20--table\x20<table>','No\x20parent\x20segments\x20found','.yaml','\x20\x20\x20\x20\x20\x20\x20tdx\x20ps\x20pz\x20init\x20<name>\x20\x20\x20\x20\x20\x20\x20#\x20Add\x20PZ\x20template\x20for\x20specific\x20parent\x20segment','Error:\x20File\x20not\x20found:\x20','personalizationServices','\x20kill','Usage:\x20tdx\x20ps\x20pz\x20create\x20--name\x20<name>\x20--description\x20<desc>\x20--folder-id\x20<id>\x20[options]','number','\x20\x20\x20\x20\x20\x20\x20tdx\x20ps\x20pz\x20service\x20token\x20create\x20<name>\x20<service_id>\x20\x20#\x20Uses\x20context','stop','green','getOutputDatabaseName','segment:parent:pull','\x20\x20\x20\x20\x20\x20\x20tdx\x20ps\x20fields\x20<name>\x20\x20\x20\x20\x20\x20\x20#\x20Show\x20fields\x20for\x20specific\x20parent\x20segment','totalEvents','description','split','To\x20cancel:','RT\x202.0:','ps:pz:init','✔\x20Resumed\x20activations\x20for\x20RT\x20journey\x20\x27','ps:rt:list','\x20RT-enabled\x20parent\x20segment','\x20+\x20[','Fetching\x20personalization\x20service\x20\x27','identifier','Master\x20+\x20Attributes','\x20\x20\x20\x20\x20\x20\x20tdx\x20ps\x20pz\x20service\x20update\x20<service_id>\x20--name\x20<name>\x20\x20#\x20Uses\x20context','YAML\x20file:\x20','Update\x20a\x20realtime\x20personalization\x20entity','\x20\x20\x20Use\x20`tdx\x20segment\x20parent\x20push\x20<file.yml>`\x20instead\x20for\x20better\x20configuration\x20management.\x0a','listParents','Next\x20steps:','resolveParentId','collectSchema','ps:pz:service:create','red','errors','\x0a⚠️\x20\x20DEPRECATED:\x20`tdx\x20segment\x20parent\x20create`\x20is\x20deprecated.\x0a','Tip:\x20Run\x20`tdx\x20ps\x20pull\x20-u\x20','includeSensitive:','\x20\x20-w,\x20--web\x20\x20Open\x20parent\x20segment\x20in\x20web\x20browser','Listing\x20personalizations\x20for\x20\x27','\x20to\x20configure\x20your\x20personalization\x20service','start','Options:\x0a','\x20service','Error:\x20No\x20behaviors\x20defined\x20in\x20configuration','\x5c$&','payload:','\x20\x20\x20\x20\x20\x20\x20tdx\x20ps\x20pz\x20service\x20show\x20<service_id>\x20\x20#\x20Uses\x20context','stageCount','No\x20RT-enabled\x20parent\x20segments\x20found','Creating\x20personalization\x20service\x20\x27','✔\x20Created\x20token\x20\x27','Creating','Patching\x20personalization\x20\x27','population','indexOf','Usage:\x20tdx\x20ps\x20pz\x20service\x20create\x20<name>\x20[parent_segment]\x0a','\x20personalization','tokens','\x20stage','entryCriteria:','\x20\x20\x20\x20\x20\x20\x20tdx\x20ps\x20pz\x20patch\x20<id>\x20--file\x20<path>','enriched','patchPersonalization','sampleData','👥\x20','deleteToken','Table:\x20','Aborted.','displayRealtimeInfo','list','join','isDirectory','\x20\x20--attribute\x20<name>\x20\x20\x20Show\x20sample\x20data\x20for\x20specific\x20attribute\x0a','\x20--attribute\x20\x22','\x20\x20\x20\x20\x20\x20\x20tdx\x20ps\x20pz\x20service\x20create\x20<name>\x20\x20#\x20Uses\x20context','getPersonalization','Error\x20reading\x20file:\x20','Tip:\x20Use\x20-u\x20without\x20-o,\x20or\x20-o\x20without\x20-u','table','createdAt','\x20\x20Schema\x20not\x20available\x20(workflow\x20may\x20not\x20have\x20run\x20yet)','in\x20','createParent','attributesFile','Attributes','\x20Context\x20set:\x20','(id:\x20','realtime_enabled','folderId','Delete\x20a\x20token\x20from\x20a\x20personalization\x20service','Customers:','3srycyP','customerPercent','\x27\x20(id:\x20','Output\x20Database:','Usage:\x20tdx\x20ps\x20push\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Push\x20(requires\x20context)\x0a','toLocaleString','filter','Listing\x20personalization\x20services\x20for\x20\x27','match','get','`\x20to\x20download\x20the\x20configuration\x20first','Get\x20current\x20RT\x20configuration\x20version\x20status','idStitching','\x20to\x20push\x20the\x20configuration','database','parent_segments','status','Fetching\x20sample\x20data...','\x20Added\x20personalization\x20template\x20to\x20','List\x20parent\x20segments\x20with\x20RT\x202.0\x20status','My\x20Service','payload','Show\x20personalization\x20service\x20details','includeSensitive','entryCriteria','addBehaviors','setJobId','all','List\x20parent\x20segments','\x20rows)','scheduleOption','error','Found\x20YAML\x20file:\x20','No\x20personalizations\x20configured','replace','Updating\x20personalization\x20service\x20\x27','ps:pz:show','\x20parent\x20segment','\x0aChanges\x20to\x20apply\x20to\x20\x27','Behavior:','reduce','stitchingKeys','Usage:\x20tdx\x20parent-segment\x20preview\x20<name>\x20<option>\x0a','timezone','Show\x20parent\x20segment\x20details','column_type','\x20total','RT\x202.0\x20Validate:','List\x20RT\x20journeys','✔\x20Deleted\x20personalization\x20service\x20\x27','resumeJourney','segment:parent:sql','Apply\x20changes\x20to\x20\x27','Usage:\x20tdx\x20ps\x20rt\x20configuration_versions\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Get\x20RT\x20config\x20version\x20(requires\x20context)\x0a','runParent','keyEventId','\x20\x20--behavior\x20<name>\x20\x20\x20\x20Show\x20sample\x20data\x20for\x20specific\x20behavior\x0a','\x20\x20--behavior\x20[name]\x20\x20\x20\x20Show\x20only\x20behaviors\x20(or\x20specific\x20one)\x0a','Executing\x20parent\x20segment\x20query...','\x20\x20\x20','Preview:','parentFolder','\x20\x20\x20\x20','Show\x20parent\x20segment\x20schema\x20(column\x20types)','%)\x20','column','\x20Saved\x20parent\x20segment\x20configuration\x20to\x20','Getting\x20RT\x20configuration\x20version\x20for\x20\x27','Create\x20a\x20personalization\x20service\x20for\x20a\x20parent\x20segment','\x20\x20--behavior\x20<name>\x20\x20\x20\x20Show\x20sample\x20data\x20for\x20specific\x20behavior','sourceTableError','getCurrentConfigVersion','\x20rows\x20','ps:pz:delete','Creating\x20personalization\x20\x27','Listing\x20RT-enabled\x20parent\x20segments...','\x20Added\x20RT\x202.0\x20template\x20section','any','657538MqIwIo','\x20\x20\x20\x20\x20\x20\x20\x20','behaviors','json','Create\x20new\x20parent\x20segment\x20(audience)\x20[DEPRECATED]','-1d','Usage:\x20tdx\x20ps\x20pz\x20service\x20token\x20create\x20<name>\x20<service_id>\x20[parent_segment]','ps:pz:service:token:create','\x20\x20--enriched\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20sample\x20enriched\x20master\x20data','Execute\x20parent\x20segment\x20SQL\x20query\x20and\x20show\x20results','Error:\x20--name\x20is\x20required','workflowAttemptId','ps:rt:jn:list','\x0aNew\x20parent\x20segment\x20\x27','segment:parent:fields','Database:\x20','Listing\x20RT-enabled\x20parent\x20segments\x20matching\x20\x27','No\x20personalization\x20services\x20configured','\x27\x20is\x20already\x20up\x20to\x20date','Error:\x20--folder-id\x20is\x20required.\x20Use\x20`tdx\x20ps\x20folder\x20list\x20<name>`\x20to\x20find\x20the\x20folder\x20ID.','status:\x20','segment:parent:preview','verbose','sections:','Confirmation\x20required\x20but\x20running\x20in\x20non-interactive\x20mode','\x20\x20\x20\x20\x20\x20\x20tdx\x20ps\x20preview\x20<name>\x20\x20\x20\x20\x20\x20\x20#\x20Preview\x20specific\x20parent\x20segment\x0a\x0a','state','✔\x20Found\x20','2591000RONKbZ','Listing\x20parent\x20segments\x20matching\x20\x27','3250764bEwPZd','Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)','\x27...','\x22,\x0a\x20\x20\x22customers\x22:\x20{\x0a\x20\x20\x20\x20\x22table\x22:\x20\x22','public:','Running\x20parent\x20segment\x20workflow\x20for\x20\x27','\x20\x20--master\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20sample\x20master\x20table\x20data\x0a','Error:\x20Service\x20name\x20is\x20required','Events:','\x20\x20--attribute\x20[name]\x20\x20\x20Show\x20only\x20attributes\x20(or\x20specific\x20one)\x0a','customerGroupFile','master','Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration','parentSegment','\x20true','page_view','session','Created','addAttributes','listJourneys','{\x0a\x20\x20\x22database\x22:\x20\x22','✔\x20Paused\x20activations\x20for\x20RT\x20journey\x20\x27','schemaValid','Attempt:','Usage:\x20tdx\x20ps\x20pz\x20service\x20create\x20<name>\x20[parent_segment]','/{name}.yml\x0a','ps:pz:patch','Updating\x20parent\x20segment\x20\x27','workflowSessionId','Use\x20-y\x20or\x20--yes\x20flag\x20to\x20apply\x20changes\x20without\x20confirmation','scheduleType','\x20\x20\x20\x20\x20\x20\x20tdx\x20ps\x20pz\x20service\x20list\x20<name>\x20\x20\x20\x20\x20\x20\x20#\x20List\x20PZ\x20services\x20for\x20specific\x20parent\x20segment','behavior','List\x20realtime\x20personalizations\x20for\x20a\x20parent\x20segment','Resume\x20activations\x20in\x20an\x20RT\x20journey','\x20parent\x20segment\x20\x27','updateParent','Usage:\x20tdx\x20ps\x20run\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Run\x20(requires\x20context)\x0a','segment:parent:list','Analyzing\x20changes...','site','Pausing\x20activations\x20for\x20RT\x20journey\x20\x27','✘\x20Failed\x20to\x20rename\x20directory:\x20','dirname','\x20\x201.\x20Edit\x20','trim','open','Update\x20existing\x20parent\x20segment\x20(audience)\x20[DEPRECATED]','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file','\x27\x20and\x20run\x20workflow?','\x20--interval\x20','\x22,\x0a\x20\x20\x22parent_id\x22:\x20\x22','apply','push','repeat','\x20\x20\x20\x20\x20\x20\x20tdx\x20ps\x20pull\x20<name>\x20\x20\x20\x20\x20\x20\x20#\x20Pull\x20specific\x20parent\x20segment','Error:\x20-u\x20(--use)\x20and\x20-o\x20(--output)\x20cannot\x20be\x20used\x20together\x0a','\x20field','test','\x20\x20\x22relationships\x22:\x20{\x20\x22parentFolder\x22:\x20{\x20\x22data\x22:\x20{\x20\x22id\x22:\x20\x22<id>\x22,\x20\x22type\x22:\x20\x22folder-segment\x22\x20}\x20}\x20}','/app/dw/parentSegments/','Error:\x20Token\x20name\x20is\x20required','✔\x20Updated\x20parent\x20segment\x20\x27','\x20\x20\x20\x20\x20\x20\x20tdx\x20ps\x20validate\x20<name>\x20\x20\x20\x20\x20\x20\x20#\x20Validate\x20specific\x20parent\x20segment\x0a\x0a','formatSchemaJson','parent_segment\x20is\x20not\x20set.\x20Use\x20`tdx\x20ps\x20use\x20<name>`\x20to\x20set\x20it.\x0a','unref','endsWith','\x20\x20--attribute\x20<name>\x20\x20\x20Show\x20sample\x20data\x20for\x20specific\x20attribute','\x20--behavior\x20\x22','✔\x20Renamed\x20directory\x20to\x20','/\x20and\x20','displayMasterInfo','yes','behaviorsFile','behavior_','Usage:\x20tdx\x20ps\x20pz\x20service\x20update\x20<service_id>\x20[parent_segment]\x20--name\x20<name>\x20[--description\x20<text>]\x0a','\x0a\x20\x20\x20\x20}','⚡\x20Not\x20enabled','segment:parent:run','\x0a⚠\x20Save\x20this\x20token\x20value\x20-\x20it\x20will\x20not\x20be\x20shown\x20again:','\x20\x20\x20\x20\x20\x20','Show\x20a\x20specific\x20realtime\x20personalization','allowedIps','Session:','primaryKey','Updated','string','✔\x20Deleted\x20personalization\x20\x27','Available\x20attributes:','Master:','displayPreviewHints','✔\x20Created\x20personalization\x20service\x20\x27','\x20\x20\x20See:\x20tdx\x20segment\x20parent\x20pull\x20--help\x0a','/\x20→\x20','yellow','columns','attributes','name','audienceId:','Parent\x20segment:\x20','\x27\x20not\x20found\x20in\x20any\x20personalization\x20service','realtime','stats','ps:rt:jn:pause','Error:\x20RT\x20journey\x20ID\x20is\x20required\x0a','\x27\x20with\x20ID:\x20','\x20\x20-o,\x20--output\x20<file>\x20\x20Output\x20file\x20path','Deleting\x20personalization\x20\x27','\x20\x20\x20\x20\x20\x20\x20tdx\x20ps\x20rt\x20jn\x20list\x20<name>\x20\x20\x20\x20\x20\x20\x20#\x20List\x20RT\x20journeys\x20for\x20specific\x20parent\x20segment','double','events','Usage:\x20tdx\x20ps\x20pz\x20show\x20<personalization_id>','user_id','personalization_services','Get\x20SQL\x20query\x20for\x20parent\x20segment','Usage:\x20tdx\x20ps\x20pz\x20delete\x20<personalization_id>','type','ps:pz:create','\x20\x20Database:\x20','/attempt/','Error:','\x20\x20\x20\x20\x20\x20\x20tdx\x20ps\x20rt\x20configuration_versions\x20<name>\x20\x20\x20\x20\x20\x20\x20#\x20Get\x20RT\x20config\x20version\x20for\x20specific\x20parent\x20segment','Attributes:','✔\x20Found\x20personalization\x20\x27','✔\x20Deleted\x20token\x20\x27','\x0aUsage:\x20tdx\x20ps\x20preview\x20','Usage:\x20tdx\x20ps\x20pz\x20service\x20token\x20delete\x20<token_id>\x20[parent_segment]\x0a','Usage:\x20tdx\x20ps\x20rt\x20validate\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Validate\x20RT\x20config\x20(requires\x20context)\x0a','\x20\x20--master\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20sample\x20master\x20table\x20data','value','Creating\x20token\x20\x27','\x22,\x0a\x20\x20\x22parent_segment\x22:\x20\x22','previewParentYaml','displayPreviewResults','segment:parent:validate','Coverage:','Error:\x20Service\x20ID\x20is\x20required','\x27\x20is\x20up\x20to\x20date','Error:\x20--behavior\x20requires\x20a\x20name\x0a','/\x20directory.\x0a','jsonl','last_page_viewed','column_name','null','td_client_id','getBehaviorNames','valid','\x20\x202.\x20Run\x20','foreignKey','FINISHED','Errors:','processedRows','cyan','RT\x20Journey\x20ID:\x20','displayAttributesStats','\x0a⚠️\x20\x20DEPRECATED:\x20`tdx\x20segment\x20parent\x20update`\x20is\x20deprecated.\x0a','getParentFull','\x20(paused)','dim','✔\x20No\x20changes\x20-\x20\x27','2227866KqgEwx','Use\x20`tdx\x20ps\x20folder\x20list\x20<name>`\x20to\x20find\x20the\x20folder\x20ID,\x20then\x20add:','List\x20personalization\x20services\x20for\x20a\x20parent\x20segment','tdx\x20ps\x20preview\x20','Resuming\x20activations\x20for\x20RT\x20journey\x20\x27','personalization','\x22,\x20\x22type\x22:\x20\x22','audienceId:\x20','\x20behaviors','\x20\x20\x20\x20\x20\x20\x20tdx\x20ps\x20pz\x20service\x20delete\x20<service_id>\x20\x20#\x20Uses\x20context','parent_segment','matchedCount','\x20[Job\x20ID:\x20','ps:pz:service:list','ID\x20Stitching:','\x0a\x20\x20},\x0a\x20\x20\x22behaviors\x22:\x20[\x0a','\x20\x20\x20\x20-\x20','\x20configured','localeCompare','no\x20tokens\x20configured','Error:\x20Personalization\x20ID\x20is\x20required','.customers)','\x22,\x0a\x20\x20\x20\x20\x20\x20\x22columns\x22:\x20','\x0aError:','SQL\x20query:\x0a','updatedAt','displaySampleData','Overwrite\x20\x27','run','\x20\x20\x20Please\x20manually\x20merge\x20or\x20remove\x20','relationships','Delete\x20a\x20realtime\x20personalization','Join\x20on:','eventKind:\x20','eventKind','Deleting\x20token\x20\x27','Usage:\x20tdx\x20ps\x20fields\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Show\x20fields\x20(requires\x20context)\x0a','data','\x20\x20Tables:\x201\x20customers\x20+\x20','toFixed','map','workflowId','sections','some','Tip:\x20Use\x20`tdx\x20ps\x20rt\x20jn\x20list\x20<parent_segment>`\x20to\x20find\x20journey\x20IDs','token:'];a31_0x3713=function(){return _0x583b45;};return a31_0x3713();}export class ParentSegmentFieldsCommand extends BaseCommand{[a31_0x164fd9(0x219)]=a31_0x164fd9(0x3cf);[a31_0x164fd9(0x323)]='List\x20available\x20fields\x20for\x20segmentation';async[a31_0x164fd9(0x29d)](_0x52e1f2){const _0x3500dd=a31_0x164fd9,{options:_0xbc6e03,args:_0x572ab4,tdx:_0x441073}=_0x52e1f2,_0x32bb94=_0x572ab4[0x0]||_0xbc6e03[_0x3500dd(0x3ec)];if(!_0x32bb94)return showParentSegmentNotSetError(_0x3500dd(0x27c)+_0x3500dd(0x321)),0x1;_0xbc6e03[_0x3500dd(0x3d7)]&&(console[_0x3500dd(0x392)]('Site:\x20'+_0xbc6e03[_0x3500dd(0x1df)]),console[_0x3500dd(0x392)]('Parent\x20segment:\x20'+_0x32bb94));const _0x12a540=await withSpinner('Listing\x20fields\x20for\x20\x27'+_0x32bb94+_0x3500dd(0x3e1),()=>_0x441073[_0x3500dd(0x30b)][_0x3500dd(0x2e9)](_0x32bb94),{'verbose':_0xbc6e03['verbose']}),_0x5370e2=_0x12a540[_0x3500dd(0x27d)];console[_0x3500dd(0x392)](_0x3500dd(0x3dc)+_0x5370e2[_0x3500dd(0x2dc)]+_0x3500dd(0x1f0)+(_0x5370e2[_0x3500dd(0x2dc)]!==0x1?'s':''));if(_0xbc6e03['json']||_0xbc6e03[_0x3500dd(0x244)])return await handleSDKOutput(_0x5370e2,_0xbc6e03),0x0;return displayFieldsHumanReadable(_0x5370e2,_0x32bb94),0x0;}}export class ParentSegmentViewCommand extends BaseCommand{[a31_0x164fd9(0x219)]='segment:parent:view';[a31_0x164fd9(0x323)]=a31_0x164fd9(0x39f);async[a31_0x164fd9(0x29d)](_0x4fdb17){const _0x335800=a31_0x164fd9,{options:_0x57bed5,args:_0x283d3b,tdx:_0x327266}=_0x4fdb17,_0xb68170=_0x57bed5,_0x3c54ee=_0x283d3b[0x0]||_0x57bed5[_0x335800(0x3ec)];if(!_0x3c54ee)return showParentSegmentNotSetError('Usage:\x20tdx\x20ps\x20view\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20View\x20(requires\x20context)\x0a'+_0x335800(0x2b3)+'Options:\x0a'+_0x335800(0x33d)),0x1;_0x57bed5[_0x335800(0x3d7)]&&(console[_0x335800(0x392)]('Site:\x20'+_0x57bed5[_0x335800(0x1df)]),console[_0x335800(0x392)](_0x335800(0x21b)+_0x3c54ee));const _0x2d8cfe=await withSpinner(_0x335800(0x310)+_0x3c54ee+'\x27...',()=>_0x327266[_0x335800(0x30b)][_0x335800(0x254)](_0x3c54ee),{'verbose':_0x57bed5[_0x335800(0x3d7)]}),_0x5f1e10=_0x2d8cfe['data'];if(_0xb68170[_0x335800(0x2f1)]){const _0x25f9f6=getConsoleNextUrl(_0xb68170[_0x335800(0x1df)],_0x335800(0x1f3)+_0x5f1e10['id']);return console[_0x335800(0x392)](a31_0x1c9df2[_0x335800(0x31e)]('✔')+_0x335800(0x2b5)+a31_0x1c9df2[_0x335800(0x250)](_0x25f9f6)),openBrowser(_0x25f9f6),0x0;}return await handleSingleObjectOutput(_0x5f1e10,_0x57bed5),0x0;}}export class ParentSegmentDescCommand extends BaseCommand{[a31_0x164fd9(0x219)]=a31_0x164fd9(0x2fd);[a31_0x164fd9(0x323)]=a31_0x164fd9(0x3b2);async[a31_0x164fd9(0x29d)](_0x2f8d08){const _0x119f86=a31_0x164fd9,{options:_0x3b9b3a,args:_0x2a722a,tdx:_0x3a72be}=_0x2f8d08,_0x2a74b4=_0x3b9b3a,_0x77e3ee=_0x2a722a[0x0]||_0x3b9b3a[_0x119f86(0x3ec)];if(!_0x77e3ee)return showParentSegmentNotSetError('Usage:\x20tdx\x20ps\x20desc\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Describe\x20all\x20tables\x20(requires\x20context)\x0a'+'\x20\x20\x20\x20\x20\x20\x20tdx\x20ps\x20desc\x20<name>\x20\x20\x20\x20\x20\x20\x20#\x20Describe\x20all\x20tables\x20for\x20parent\x20segment\x0a\x0a'+_0x119f86(0x341)+_0x119f86(0x222)),0x1;_0x3b9b3a[_0x119f86(0x3d7)]&&(console[_0x119f86(0x392)](_0x119f86(0x290)+_0x3b9b3a[_0x119f86(0x1df)]),console[_0x119f86(0x392)](_0x119f86(0x21b)+_0x77e3ee));const _0x159252=await withSpinner(_0x119f86(0x2c7)+_0x77e3ee+_0x119f86(0x3e1),()=>_0x3a72be['segment'][_0x119f86(0x335)](_0x77e3ee),{'verbose':_0x3b9b3a[_0x119f86(0x3d7)]}),_0x511710=_0x159252[_0x119f86(0x27d)],_0x5708ca=_0x3a72be[_0x119f86(0x30b)][_0x119f86(0x31f)](_0x511710);if(_0x2a74b4[_0x119f86(0x2fc)]){const _0x2ec995=await this['collectSchema'](_0x2f8d08,_0x77e3ee,_0x511710,_0x5708ca),_0x56cf05=this[_0x119f86(0x1f7)](_0x2ec995);writeFileSync(_0x2a74b4[_0x119f86(0x2fc)],_0x56cf05);const _0x20544c=_0x2ec995[_0x119f86(0x301)][_0x119f86(0x217)][_0x119f86(0x2dc)]+_0x2ec995[_0x119f86(0x3c3)][_0x119f86(0x39b)]((_0x16bb62,_0x338fd8)=>_0x16bb62+_0x338fd8[_0x119f86(0x217)][_0x119f86(0x2dc)],0x0),_0x56b736=_0x2ec995['behaviors'][_0x119f86(0x379)](_0x1e9b24=>_0x1e9b24[_0x119f86(0x217)][_0x119f86(0x2dc)]===0x0)[_0x119f86(0x2dc)];return console[_0x119f86(0x300)]('Schema\x20saved\x20to\x20'+_0x2a74b4[_0x119f86(0x2fc)]),console[_0x119f86(0x300)](_0x119f86(0x22e)+_0x5708ca),console[_0x119f86(0x300)](_0x119f86(0x27e)+_0x2ec995[_0x119f86(0x3c3)][_0x119f86(0x2dc)]+_0x119f86(0x260)),console[_0x119f86(0x300)](_0x119f86(0x289)+_0x20544c+_0x119f86(0x3a1)),_0x56b736>0x0&&console['log'](_0x119f86(0x2fa)+_0x56b736+'\x20behavior\x20tables\x20not\x20yet\x20generated\x20(workflow\x20may\x20not\x20have\x20run)'),0x0;}console[_0x119f86(0x392)]('\x0a'+a31_0x1c9df2[_0x119f86(0x2ea)](_0x119f86(0x376))+'\x20'+a31_0x1c9df2[_0x119f86(0x250)](_0x5708ca));const _0x42d704=await withSpinner('Fetching\x20customers\x20schema...',()=>_0x3a72be[_0x119f86(0x30b)]['getParentSQL'](_0x511710),{'verbose':_0x3b9b3a[_0x119f86(0x3d7)]});console[_0x119f86(0x392)]('\x0a'+a31_0x1c9df2[_0x119f86(0x2ea)](_0x119f86(0x301))+'\x20'+a31_0x1c9df2[_0x119f86(0x256)]('('+_0x5708ca+_0x119f86(0x26d)));const _0x54371d=await executeSchemaQuery(_0x42d704[_0x119f86(0x27d)],_0x3a72be,_0x3b9b3a);await handleQueryOutput(_0x54371d,_0x3b9b3a);const _0x50dfa6=await withSpinner('Fetching\x20behavior\x20list...',()=>_0x3a72be[_0x119f86(0x30b)][_0x119f86(0x249)](_0x511710),{'verbose':_0x3b9b3a[_0x119f86(0x3d7)]});for(const _0x3c07ad of _0x50dfa6[_0x119f86(0x27d)]){const _0x17a6ef=_0x119f86(0x202)+_0x3c07ad['toLowerCase']()[_0x119f86(0x395)](/\s+/g,'_'),_0xc5af0a='SELECT\x20*\x20FROM\x20'+_0x5708ca+'.'+_0x17a6ef;console[_0x119f86(0x392)]('\x0a'+a31_0x1c9df2['bold'](_0x3c07ad)+'\x20'+a31_0x1c9df2[_0x119f86(0x256)]('('+_0x5708ca+'.'+_0x17a6ef+')'));try{const _0xe49231=await executeSchemaQuery(_0xc5af0a,_0x3a72be,_0x3b9b3a);await handleQueryOutput(_0xe49231,_0x3b9b3a);}catch{console[_0x119f86(0x392)](a31_0x1c9df2[_0x119f86(0x216)](_0x119f86(0x368)));}}return 0x0;}async[a31_0x164fd9(0x336)](_0x3f0393,_0x208cfa,_0x2f6c57,_0x58aa13){const _0x33d5dc=a31_0x164fd9,{options:_0x19f78e,tdx:_0x26b58e}=_0x3f0393,_0xbec09f=await withSpinner('Fetching\x20customers\x20schema...',()=>_0x26b58e[_0x33d5dc(0x30b)]['getParentSQL'](_0x2f6c57),{'verbose':_0x19f78e[_0x33d5dc(0x3d7)]}),_0x1d5f65=await executeSchemaQuery(_0xbec09f[_0x33d5dc(0x27d)],_0x26b58e,_0x19f78e),_0x5244b2=_0x1d5f65[_0x33d5dc(0x27d)]['map'](_0x1d848e=>({'name':_0x1d848e['column_name'],'type':_0x1d848e['column_type']})),_0x599230=await withSpinner('Fetching\x20behavior\x20list...',()=>_0x26b58e[_0x33d5dc(0x30b)][_0x33d5dc(0x249)](_0x2f6c57),{'verbose':_0x19f78e['verbose']}),_0x4ca447=[];for(const _0x24551e of _0x599230[_0x33d5dc(0x27d)]){const _0xa47a3b=_0x33d5dc(0x202)+_0x24551e[_0x33d5dc(0x2d5)]()['replace'](/\s+/g,'_'),_0x5f3c82=_0x33d5dc(0x2ed)+_0x58aa13+'.'+_0xa47a3b;let _0x47cf95=[];try{const _0x107239=await executeSchemaQuery(_0x5f3c82,_0x26b58e,_0x19f78e);_0x47cf95=_0x107239[_0x33d5dc(0x27d)][_0x33d5dc(0x280)](_0x78f54f=>({'name':_0x78f54f[_0x33d5dc(0x246)],'type':_0x78f54f[_0x33d5dc(0x3a0)]}));}catch{}_0x4ca447[_0x33d5dc(0x1ec)]({'table':_0xa47a3b,'columns':_0x47cf95});}return{'database':_0x58aa13,'parent_segment':_0x208cfa,'parent_id':_0x2f6c57,'customers':{'table':_0x33d5dc(0x301),'columns':_0x5244b2},'behaviors':_0x4ca447};}[a31_0x164fd9(0x1f7)](_0x470740){const _0x5043d2=a31_0x164fd9,_0x26eb56=_0x128db2=>{const _0x193f16=a31_0x3973;if(_0x128db2[_0x193f16(0x2dc)]===0x0)return'[]';const _0x288ca5=_0x128db2['map'](_0x254d81=>'\x20\x20\x20\x20\x20\x20{\x20\x22name\x22:\x20\x22'+_0x254d81[_0x193f16(0x219)]+_0x193f16(0x25e)+_0x254d81[_0x193f16(0x22c)]+_0x193f16(0x2f0));return'[\x0a'+_0x288ca5['join'](',\x0a')+'\x0a\x20\x20\x20\x20]';},_0x267b49=_0x470740[_0x5043d2(0x3c3)][_0x5043d2(0x280)](_0x560343=>{const _0x5d8a50=_0x5043d2;return _0x5d8a50(0x2ab)+_0x560343['table']+_0x5d8a50(0x26e)+_0x26eb56(_0x560343['columns'])[_0x5d8a50(0x395)](/^/gm,'\x20\x20')[_0x5d8a50(0x1e4)]()+_0x5d8a50(0x204);})[_0x5043d2(0x35e)](',\x0a');return _0x5043d2(0x3f3)+_0x470740[_0x5043d2(0x381)]+_0x5043d2(0x23b)+_0x470740[_0x5043d2(0x262)]+_0x5043d2(0x1ea)+_0x470740[_0x5043d2(0x2e8)]+_0x5043d2(0x3e2)+_0x470740[_0x5043d2(0x301)][_0x5043d2(0x366)]+'\x22,\x0a\x20\x20\x20\x20\x22columns\x22:\x20'+_0x26eb56(_0x470740['customers'][_0x5043d2(0x217)])[_0x5043d2(0x395)](/^/gm,'\x20\x20')[_0x5043d2(0x1e4)]()+_0x5043d2(0x267)+_0x267b49+'\x0a\x20\x20]\x0a}\x0a';}}export class ParentSegmentSQLCommand extends BaseCommand{['name']=a31_0x164fd9(0x3a6);[a31_0x164fd9(0x323)]=a31_0x164fd9(0x22a);async[a31_0x164fd9(0x29d)](_0x1454de){const _0x2b73bf=a31_0x164fd9,{options:_0x46a4f7,args:_0x4556f1,tdx:_0x21313a}=_0x1454de,_0x3a65f3=_0x4556f1[0x0]||_0x46a4f7[_0x2b73bf(0x3ec)];if(!_0x3a65f3)return showParentSegmentNotSetError(_0x2b73bf(0x2ce)+'\x20\x20\x20\x20\x20\x20\x20tdx\x20ps\x20sql\x20<name>\x20\x20\x20\x20\x20\x20\x20#\x20Show\x20SQL\x20for\x20specific\x20parent\x20segment'),0x1;_0x46a4f7[_0x2b73bf(0x3d7)]&&(console[_0x2b73bf(0x392)](_0x2b73bf(0x290)+_0x46a4f7[_0x2b73bf(0x1df)]),console[_0x2b73bf(0x392)](_0x2b73bf(0x21b)+_0x3a65f3));const _0x535ba0=await withSpinner(_0x2b73bf(0x2c7)+_0x3a65f3+_0x2b73bf(0x3e1),()=>_0x21313a[_0x2b73bf(0x30b)][_0x2b73bf(0x335)](_0x3a65f3),{'verbose':_0x46a4f7[_0x2b73bf(0x3d7)]}),_0x2c1f2c=_0x535ba0['data'],_0x2c3598=await withSpinner(_0x2b73bf(0x2e3)+_0x3a65f3+_0x2b73bf(0x3e1),()=>_0x21313a['segment']['getParentSQL'](_0x2c1f2c),{'verbose':_0x46a4f7[_0x2b73bf(0x3d7)]}),_0x103b3f=_0x2c3598[_0x2b73bf(0x27d)];return _0x46a4f7[_0x2b73bf(0x30f)]===_0x2b73bf(0x3c4)||_0x46a4f7[_0x2b73bf(0x30f)]===_0x2b73bf(0x244)?await handleSDKOutput([{'sql':_0x103b3f}],_0x46a4f7):console['log'](_0x103b3f),0x0;}}export class ParentSegmentShowCommand extends BaseCommand{[a31_0x164fd9(0x219)]=a31_0x164fd9(0x2fb);['description']=a31_0x164fd9(0x3ca);async[a31_0x164fd9(0x29d)](_0xed876e){const _0x1ba849=a31_0x164fd9,{options:_0x34e230,args:_0x5a0cc7,tdx:_0x4fb4bf}=_0xed876e,_0x178928=_0x5a0cc7[0x0]||_0x34e230[_0x1ba849(0x3ec)];if(!_0x178928)return showParentSegmentNotSetError('Usage:\x20tdx\x20ps\x20show\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Show\x20config\x20(requires\x20context)\x0a'+'\x20\x20\x20\x20\x20\x20\x20tdx\x20ps\x20show\x20<name>\x20\x20\x20\x20\x20\x20\x20#\x20Show\x20config\x20for\x20specific\x20parent\x20segment'),0x1;_0x34e230['verbose']&&(console[_0x1ba849(0x392)]('Site:\x20'+_0x34e230[_0x1ba849(0x1df)]),console['error']('Parent\x20segment:\x20'+_0x178928));const _0x57c01b=await withSpinner(_0x1ba849(0x2c7)+_0x178928+_0x1ba849(0x3e1),()=>_0x4fb4bf[_0x1ba849(0x30b)][_0x1ba849(0x335)](_0x178928),{'verbose':_0x34e230['verbose']}),_0x1636bc=_0x57c01b['data'],_0x29c1c7=await withSpinner(_0x1ba849(0x2e3)+_0x178928+_0x1ba849(0x3e1),()=>_0x4fb4bf['segment']['getParentSQL'](_0x1636bc),{'verbose':_0x34e230[_0x1ba849(0x3d7)]});let _0x4da3f4=_0x29c1c7[_0x1ba849(0x27d)];const _0x316bab=resolveLimit(_0x34e230['limit'],DEFAULT_DISPLAY_LIMIT),_0x3de03e=/\bLIMIT\s+\d+/i[_0x1ba849(0x1f1)](_0x4da3f4);!_0x3de03e&&(_0x4da3f4=_0x4da3f4[_0x1ba849(0x1e4)]()[_0x1ba849(0x395)](/;+$/,''),_0x4da3f4='SELECT\x20*\x20FROM\x20(\x0a'+_0x4da3f4+_0x1ba849(0x2c5)+_0x316bab);_0x34e230[_0x1ba849(0x3d7)]&&console[_0x1ba849(0x392)](_0x1ba849(0x270)+_0x4da3f4);const _0x42f934=await withProgressSpinner(_0x1ba849(0x3ad),async _0x2d19a0=>{const _0x51c5c9=_0x1ba849,_0x1500bf=await _0x4fb4bf['query'][_0x51c5c9(0x29d)](_0x4da3f4,{'catalog':'td','schema':_0x51c5c9(0x2e5),'onJobId':_0x2bdf8f=>{const _0x1bd736=_0x51c5c9;_0x2d19a0[_0x1bd736(0x38d)](_0x2bdf8f);}});return _0x1500bf;},{'verbose':_0x34e230[_0x1ba849(0x3d7)]}),_0x11200e=_0x42f934[_0x1ba849(0x27d)],_0x389e80=_0x11200e[_0x1ba849(0x2a8)]?_0x1ba849(0x264)+_0x11200e[_0x1ba849(0x2a8)]+']':'';return console[_0x1ba849(0x392)]('✔\x20Query\x20completed:\x20Processed\x20'+_0x11200e['stats'][_0x1ba849(0x24f)][_0x1ba849(0x378)]()+_0x1ba849(0x3bb)+(_0x1ba849(0x369)+formatElapsed(_0x11200e[_0x1ba849(0x21e)]['elapsedTimeMillis'])+_0x389e80)),await handleQueryOutput(_0x11200e,_0x34e230),0x0;}}export class PSRtListCommand extends BaseCommand{['name']=a31_0x164fd9(0x329);['description']=a31_0x164fd9(0x386);async[a31_0x164fd9(0x29d)](_0x439ce5){const _0x527a2d=a31_0x164fd9,{options:_0x37d0a6,args:_0x5a8f0a,tdx:_0x4f58ce}=_0x439ce5,_0x3b977b=_0x5a8f0a[0x0],_0x58f3a2=await withSpinner(_0x3b977b?_0x527a2d(0x3d1)+_0x3b977b+'\x27...':_0x527a2d(0x3be),()=>_0x4f58ce['realtime']['list'](),{'verbose':_0x37d0a6[_0x527a2d(0x3d7)]});let _0x37f4e6=_0x58f3a2[_0x527a2d(0x27d)][_0x527a2d(0x379)](_0x24de31=>_0x24de31[_0x527a2d(0x36f)]);if(_0x3b977b){const _0xd8fdde=_0x3b977b[_0x527a2d(0x395)](/[.+^${}()|[\]\\]/g,_0x527a2d(0x344))[_0x527a2d(0x395)](/\*/g,'.*')['replace'](/\?/g,'.'),_0x311164=new RegExp('^'+_0xd8fdde+'$','i');_0x37f4e6=_0x37f4e6[_0x527a2d(0x379)](_0x551ef7=>_0x311164['test'](_0x551ef7[_0x527a2d(0x219)]));}_0x37f4e6['sort']((_0x5720f6,_0x2d09dc)=>_0x5720f6[_0x527a2d(0x219)][_0x527a2d(0x26a)](_0x2d09dc[_0x527a2d(0x219)])),console['error'](_0x527a2d(0x3dc)+_0x37f4e6[_0x527a2d(0x2dc)]+_0x527a2d(0x32a)+(_0x37f4e6['length']!==0x1?'s':''));const _0x120ef4=_0xe23b1f=>{const _0x4a4a85=_0x527a2d;return getConsoleNextUrl(_0x37d0a6[_0x4a4a85(0x1df)],'/app/dw/parentSegments/'+_0xe23b1f);};if(_0x37d0a6[_0x527a2d(0x30f)]===_0x527a2d(0x3c4)||_0x37d0a6['format']===_0x527a2d(0x244)){const _0x394166=_0x37f4e6[_0x527a2d(0x280)](_0x567a52=>({..._0x567a52,'url':_0x120ef4(_0x567a52['id'])}));await handleSDKOutput(_0x394166,_0x37d0a6);}else{if(_0x37f4e6['length']===0x0)console[_0x527a2d(0x300)](_0x527a2d(0x348));else for(const _0x767075 of _0x37f4e6){const _0x11b0b3=_0x767075[_0x527a2d(0x34d)]?a31_0x1c9df2['dim']('\x20('+formatRows(_0x767075['population'])+')'):'',_0x16ca39=hyperlink(_0x767075[_0x527a2d(0x219)],_0x120ef4(_0x767075['id']));console[_0x527a2d(0x300)]('⚡\x20'+_0x16ca39+_0x11b0b3);}}return 0x0;}}export class PSRtValidateCommand extends BaseParentSegmentCommand{[a31_0x164fd9(0x219)]=a31_0x164fd9(0x2a1);['description']=a31_0x164fd9(0x2d0);async[a31_0x164fd9(0x29d)](_0x32f0fc){const _0x2ef94c=a31_0x164fd9,{options:_0x2418dc,args:_0x2fb7ea,tdx:_0xb13a0d}=_0x32f0fc,_0x3bd8b3=_0x2fb7ea[0x0]||_0x2418dc[_0x2ef94c(0x3ec)];if(!_0x3bd8b3)return showParentSegmentNotSetError(_0x2ef94c(0x237)+_0x2ef94c(0x2c9)),0x1;const _0x34b4da=resolveYamlFile(_0x3bd8b3);if(!existsSync(_0x34b4da))return showFileNotFoundError(_0x34b4da,_0x3bd8b3),0x1;let _0x3b4921;try{_0x3b4921=readFileSync(_0x34b4da,_0x2ef94c(0x29a));}catch(_0x30a02d){const _0x201c94=_0x30a02d instanceof Error?_0x30a02d[_0x2ef94c(0x2bf)]:String(_0x30a02d);return console[_0x2ef94c(0x392)]('Error\x20reading\x20file:\x20'+_0x201c94),0x1;}const _0x5ab2dc=createCommandSpinner(a31_0x1c9df2[_0x2ef94c(0x256)]('Validating\x20RT\x20configuration...'),{'verbose':_0x2418dc[_0x2ef94c(0x3d7)]});_0x5ab2dc[_0x2ef94c(0x340)]();const _0x3e03f9={'realtime':!![],'onProgress':_0x5a2741=>{const _0x647d73=_0x2ef94c;_0x5ab2dc[_0x647d73(0x2c6)]=formatProgressMessage(_0x5a2741);}};let _0x591603;try{_0x591603=await _0xb13a0d[_0x2ef94c(0x30b)]['validateParentYaml'](_0x3b4921,_0x3e03f9),_0x5ab2dc[_0x2ef94c(0x31d)]();}catch(_0x3590de){_0x5ab2dc['stop']();throw _0x3590de;}console[_0x2ef94c(0x392)]('\x0a'+a31_0x1c9df2[_0x2ef94c(0x2ea)](_0x2ef94c(0x3a2))+'\x20'+_0x591603[_0x2ef94c(0x219)]),console[_0x2ef94c(0x392)]('═'[_0x2ef94c(0x1ed)](0x3c)),displayRealtimeValidation(_0x591603),console[_0x2ef94c(0x392)]('─'[_0x2ef94c(0x1ed)](0x3c));if(_0x591603[_0x2ef94c(0x339)][_0x2ef94c(0x2dc)]>0x0){console[_0x2ef94c(0x392)]('\x0a'+a31_0x1c9df2[_0x2ef94c(0x338)](_0x2ef94c(0x24e)));for(const _0x4cf46f of _0x591603[_0x2ef94c(0x339)]){console[_0x2ef94c(0x392)]('\x20\x20'+a31_0x1c9df2['red']('•')+'\x20'+_0x4cf46f);}}return _0x591603[_0x2ef94c(0x307)]&&console['error']('\x0a'+a31_0x1c9df2['green']('✔')+'\x20RT\x20configuration\x20is\x20valid'),_0x591603['allValid']?0x0:0x1;}}export class PSRtJnListCommand extends BaseCommand{[a31_0x164fd9(0x219)]=a31_0x164fd9(0x3cd);[a31_0x164fd9(0x323)]=a31_0x164fd9(0x3a3);async['execute'](_0x2f8f1a){const _0x409817=a31_0x164fd9,{options:_0x369c1d,args:_0x7eff4d,tdx:_0x32254a}=_0x2f8f1a,_0x2c639b=_0x7eff4d[0x0]||_0x369c1d[_0x409817(0x3ec)];if(!_0x2c639b)return showParentSegmentNotSetError(_0x409817(0x28d)+_0x409817(0x224)),0x1;_0x369c1d[_0x409817(0x3d7)]&&(console['error'](_0x409817(0x290)+_0x369c1d[_0x409817(0x1df)]),console[_0x409817(0x392)](_0x409817(0x21b)+_0x2c639b));const _0x57813a=await withSpinner(_0x409817(0x2c7)+_0x2c639b+_0x409817(0x3e1),()=>_0x32254a[_0x409817(0x30b)][_0x409817(0x335)](_0x2c639b),{'verbose':_0x369c1d[_0x409817(0x3d7)]}),_0x12ce21=_0x57813a[_0x409817(0x27d)],_0x240fa2=await withSpinner('Listing\x20RT\x20journeys\x20for\x20\x27'+_0x2c639b+_0x409817(0x3e1),()=>_0x32254a[_0x409817(0x21d)][_0x409817(0x3f2)](_0x12ce21),{'verbose':_0x369c1d[_0x409817(0x3d7)]}),_0x11d0a8=_0x240fa2['data'];console[_0x409817(0x392)](_0x409817(0x3dc)+_0x11d0a8[_0x409817(0x2dc)]+'\x20RT\x20journey'+(_0x11d0a8[_0x409817(0x2dc)]!==0x1?'s':''));if(_0x369c1d[_0x409817(0x30f)]===_0x409817(0x3c4)||_0x369c1d['format']==='jsonl')await handleSDKOutput(_0x11d0a8,_0x369c1d);else{if(_0x11d0a8[_0x409817(0x2dc)]===0x0)console[_0x409817(0x300)]('No\x20RT\x20journeys\x20found');else for(const _0x3f0de5 of _0x11d0a8){const _0x9649e2=_0x3f0de5[_0x409817(0x3db)]==='launched'?'🚀':'📝',_0x5e7681=_0x3f0de5['paused']?a31_0x1c9df2[_0x409817(0x216)](_0x409817(0x255)):'',_0x194b65=a31_0x1c9df2[_0x409817(0x256)]('\x20('+_0x3f0de5[_0x409817(0x347)]+_0x409817(0x352)+(_0x3f0de5[_0x409817(0x347)]!==0x1?'s':'')+')');console['log'](_0x9649e2+'\x20'+_0x3f0de5[_0x409817(0x219)]+_0x5e7681+_0x194b65);}}return 0x0;}}export class PSRtJnPauseCommand extends BaseCommand{[a31_0x164fd9(0x219)]=a31_0x164fd9(0x21f);[a31_0x164fd9(0x323)]=a31_0x164fd9(0x2d4);async['execute'](_0x4cd3d9){const _0x593e60=a31_0x164fd9,{options:_0x5f58e4,args:_0x4249a4,tdx:_0x4aa329}=_0x4cd3d9,_0x41b2f7=_0x4249a4[0x0];if(!_0x41b2f7)return console[_0x593e60(0x392)](a31_0x1c9df2[_0x593e60(0x338)](_0x593e60(0x220))),console[_0x593e60(0x392)]('Usage:\x20tdx\x20ps\x20rt\x20jn\x20pause_activations\x20<journeyId>\x0a'),console[_0x593e60(0x392)](a31_0x1c9df2[_0x593e60(0x256)](_0x593e60(0x284))),0x1;_0x5f58e4[_0x593e60(0x3d7)]&&(console['error'](_0x593e60(0x290)+_0x5f58e4[_0x593e60(0x1df)]),console[_0x593e60(0x392)]('RT\x20Journey\x20ID:\x20'+_0x41b2f7));const _0xa1635=await withSpinner(_0x593e60(0x1e0)+_0x41b2f7+_0x593e60(0x3e1),()=>_0x4aa329[_0x593e60(0x21d)][_0x593e60(0x2ef)](_0x41b2f7),{'verbose':_0x5f58e4[_0x593e60(0x3d7)]}),_0x3afe30=_0xa1635['data'];console[_0x593e60(0x392)](_0x593e60(0x3f4)+_0x3afe30[_0x593e60(0x219)]+'\x27');if(_0x5f58e4[_0x593e60(0x30f)]==='json'||_0x5f58e4[_0x593e60(0x30f)]==='jsonl')await handleSDKOutput([_0x3afe30],_0x5f58e4);else{const _0x267fce=_0x3afe30[_0x593e60(0x3db)]===_0x593e60(0x2cf)?'🚀':'📝',_0x425e54=_0x3afe30['paused']?a31_0x1c9df2[_0x593e60(0x216)]('\x20(paused)'):'';console[_0x593e60(0x300)](_0x267fce+'\x20'+_0x3afe30['name']+_0x425e54);}return 0x0;}}export class PSRtJnResumeCommand extends BaseCommand{[a31_0x164fd9(0x219)]=a31_0x164fd9(0x293);[a31_0x164fd9(0x323)]=a31_0x164fd9(0x1d9);async[a31_0x164fd9(0x29d)](_0x32581a){const _0x32262b=a31_0x164fd9,{options:_0x240e7d,args:_0x211f58,tdx:_0x28510b}=_0x32581a,_0x48c807=_0x211f58[0x0];if(!_0x48c807)return console[_0x32262b(0x392)](a31_0x1c9df2[_0x32262b(0x338)]('Error:\x20RT\x20journey\x20ID\x20is\x20required\x0a')),console['error'](_0x32262b(0x2f4)),console[_0x32262b(0x392)](a31_0x1c9df2[_0x32262b(0x256)]('Tip:\x20Use\x20`tdx\x20ps\x20rt\x20jn\x20list\x20<parent_segment>`\x20to\x20find\x20journey\x20IDs')),0x1;_0x240e7d[_0x32262b(0x3d7)]&&(console[_0x32262b(0x392)](_0x32262b(0x290)+_0x240e7d[_0x32262b(0x1df)]),console[_0x32262b(0x392)](_0x32262b(0x251)+_0x48c807));const _0x34f5a8=await withSpinner(_0x32262b(0x25c)+_0x48c807+_0x32262b(0x3e1),()=>_0x28510b[_0x32262b(0x21d)][_0x32262b(0x3a5)](_0x48c807),{'verbose':_0x240e7d['verbose']}),_0x2fe11c=_0x34f5a8['data'];console[_0x32262b(0x392)](_0x32262b(0x328)+_0x2fe11c['name']+'\x27');if(_0x240e7d[_0x32262b(0x30f)]==='json'||_0x240e7d[_0x32262b(0x30f)]==='jsonl')await handleSDKOutput([_0x2fe11c],_0x240e7d);else{const _0x3ef97f=_0x2fe11c['state']===_0x32262b(0x2cf)?'🚀':'📝',_0x5a7422=_0x2fe11c[_0x32262b(0x2b0)]?a31_0x1c9df2[_0x32262b(0x216)](_0x32262b(0x255)):'';console[_0x32262b(0x300)](_0x3ef97f+'\x20'+_0x2fe11c[_0x32262b(0x219)]+_0x5a7422);}return 0x0;}}export class PSRtConfigVersionCommand extends BaseCommand{[a31_0x164fd9(0x219)]=a31_0x164fd9(0x2b6);[a31_0x164fd9(0x323)]=a31_0x164fd9(0x37e);async['execute'](_0x4c82e8){const _0x1e69af=a31_0x164fd9,{options:_0x44a516,args:_0x2d0272,tdx:_0x36aa88}=_0x4c82e8,_0x31ec65=_0x2d0272[0x0]||_0x44a516[_0x1e69af(0x3ec)];if(!_0x31ec65)return showParentSegmentNotSetError(_0x1e69af(0x3a8)+_0x1e69af(0x231)),0x1;_0x44a516[_0x1e69af(0x3d7)]&&(console[_0x1e69af(0x392)](_0x1e69af(0x290)+_0x44a516['site']),console[_0x1e69af(0x392)](_0x1e69af(0x21b)+_0x31ec65));const _0x461047=await withSpinner('Resolving\x20parent\x20segment\x20\x27'+_0x31ec65+_0x1e69af(0x3e1),()=>_0x36aa88[_0x1e69af(0x30b)][_0x1e69af(0x335)](_0x31ec65),{'verbose':_0x44a516[_0x1e69af(0x3d7)]}),_0x55192d=_0x461047['data'],_0x125eea=await withSpinner(_0x1e69af(0x3b6)+_0x31ec65+_0x1e69af(0x3e1),()=>_0x36aa88['realtime'][_0x1e69af(0x3ba)](_0x55192d),{'verbose':_0x44a516['verbose']}),_0x57787c=_0x125eea[_0x1e69af(0x27d)];return console[_0x1e69af(0x392)]('✔\x20Retrieved\x20RT\x20configuration\x20version'),_0x44a516[_0x1e69af(0x30f)]===_0x1e69af(0x3c4)||_0x44a516[_0x1e69af(0x30f)]===_0x1e69af(0x244)?await handleSDKOutput([_0x57787c],_0x44a516):(console['log'](_0x1e69af(0x2e7)+_0x57787c['id']),console[_0x1e69af(0x300)](_0x1e69af(0x25f)+_0x57787c[_0x1e69af(0x2ca)]),console['log']('identifier:\x20'+_0x57787c[_0x1e69af(0x32d)]),console[_0x1e69af(0x300)](_0x1e69af(0x279)+_0x57787c[_0x1e69af(0x27a)]),console['log'](_0x1e69af(0x3d5)+_0x57787c[_0x1e69af(0x383)])),0x0;}}export class PSPzServiceListCommand extends BaseCommand{[a31_0x164fd9(0x219)]=a31_0x164fd9(0x265);[a31_0x164fd9(0x323)]=a31_0x164fd9(0x25a);async[a31_0x164fd9(0x29d)](_0x3b6d59){const _0x3921bb=a31_0x164fd9,{options:_0x4ea2b4,args:_0x498352,tdx:_0x3aecba}=_0x3b6d59,_0x5e1e78=_0x498352[0x0]||_0x4ea2b4[_0x3921bb(0x3ec)];if(!_0x5e1e78)return showParentSegmentNotSetError('Usage:\x20tdx\x20ps\x20pz\x20service\x20list\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20List\x20PZ\x20services\x20(requires\x20context)\x0a'+_0x3921bb(0x1d6)),0x1;const _0x2acade=await withSpinner(_0x3921bb(0x2c7)+_0x5e1e78+_0x3921bb(0x3e1),()=>_0x3aecba['segment']['resolveParentId'](_0x5e1e78),{'verbose':_0x4ea2b4[_0x3921bb(0x3d7)]}),_0x555554=_0x2acade['data'],_0x4b9ab7=await withSpinner(_0x3921bb(0x37a)+_0x5e1e78+_0x3921bb(0x3e1),()=>_0x3aecba['personalization'][_0x3921bb(0x35d)](_0x555554),{'verbose':_0x4ea2b4[_0x3921bb(0x3d7)]}),_0x7e118a=_0x4b9ab7[_0x3921bb(0x27d)];console[_0x3921bb(0x392)](_0x3921bb(0x3dc)+_0x7e118a[_0x3921bb(0x2dc)]+_0x3921bb(0x2b1)+(_0x7e118a['length']!==0x1?'s':''));if(_0x4ea2b4[_0x3921bb(0x30f)]===_0x3921bb(0x3c4)||_0x4ea2b4['format']===_0x3921bb(0x244))await handleSDKOutput(_0x7e118a,_0x4ea2b4);else{if(_0x7e118a[_0x3921bb(0x2dc)]===0x0)console[_0x3921bb(0x300)](_0x3921bb(0x3d2)),console[_0x3921bb(0x392)](a31_0x1c9df2[_0x3921bb(0x250)](_0x3921bb(0x2f2)));else for(const _0x327e48 of _0x7e118a){console[_0x3921bb(0x300)](a31_0x1c9df2[_0x3921bb(0x2ea)](_0x327e48[_0x3921bb(0x219)])+'\x20'+a31_0x1c9df2[_0x3921bb(0x256)]('(id:\x20'+_0x327e48['id']+')'));_0x327e48[_0x3921bb(0x323)]&&console['log']('\x20\x20'+a31_0x1c9df2[_0x3921bb(0x256)](_0x327e48[_0x3921bb(0x323)]));if(_0x327e48['tokens']&&_0x327e48[_0x3921bb(0x351)][_0x3921bb(0x2dc)]>0x0)for(const _0x5d3c3d of _0x327e48['tokens']){const _0x1d83b0=_0x5d3c3d[_0x3921bb(0x20a)]?.['length']?_0x5d3c3d[_0x3921bb(0x20a)]['join'](',\x20'):_0x3921bb(0x3c0);console[_0x3921bb(0x300)]('\x20\x20'+a31_0x1c9df2[_0x3921bb(0x250)](_0x3921bb(0x285))+'\x20'+_0x5d3c3d[_0x3921bb(0x219)]+'\x20'+a31_0x1c9df2['dim'](_0x3921bb(0x36e)+_0x5d3c3d['id']+')')),console['log'](_0x3921bb(0x3b1)+a31_0x1c9df2[_0x3921bb(0x256)]('allowed\x20IPs:')+'\x20'+_0x1d83b0);}else console['log']('\x20\x20'+a31_0x1c9df2['dim'](_0x3921bb(0x26b)));}}return 0x0;}}export class PSPzServiceCreateCommand extends BaseCommand{['name']=a31_0x164fd9(0x337);['description']=a31_0x164fd9(0x3b7);async['execute'](_0x544f7f){const _0x33c26f=a31_0x164fd9,{options:_0x58b522,args:_0x452d06,tdx:_0x4ec0f4}=_0x544f7f,_0x5a590c=_0x58b522,_0x4e3cf5=_0x452d06[0x0],_0xe69f47=_0x452d06[0x1]||_0x58b522[_0x33c26f(0x3ec)];if(!_0x4e3cf5)return console[_0x33c26f(0x392)](_0x33c26f(0x3e6)),console[_0x33c26f(0x392)](_0x33c26f(0x1cf)),console['error'](_0x33c26f(0x362)),0x1;if(!_0xe69f47)return showParentSegmentNotSetError(_0x33c26f(0x34f)+_0x33c26f(0x362)),0x1;const _0x189b57=await withSpinner(_0x33c26f(0x2c7)+_0xe69f47+_0x33c26f(0x3e1),()=>_0x4ec0f4[_0x33c26f(0x30b)]['resolveParentId'](_0xe69f47),{'verbose':_0x58b522[_0x33c26f(0x3d7)]}),_0x500569=_0x189b57['data'],_0x5b4bd5={'name':_0x4e3cf5,'description':_0x5a590c[_0x33c26f(0x323)],'public':_0x5a590c[_0x33c26f(0x309)]},_0x1ccd60=await withSpinner(_0x33c26f(0x349)+_0x4e3cf5+_0x33c26f(0x3e1),()=>_0x4ec0f4[_0x33c26f(0x25d)]['create'](_0x500569,_0x5b4bd5),{'verbose':_0x58b522[_0x33c26f(0x3d7)]}),_0x33709c=_0x1ccd60['data'];return console['error'](_0x33c26f(0x213)+_0x33709c[_0x33c26f(0x219)]+_0x33c26f(0x221)+_0x33709c['id']),await handleSDKOutput([_0x33709c],_0x58b522),0x0;}}export class PSPzServiceShowCommand extends BaseCommand{[a31_0x164fd9(0x219)]='ps:pz:service:show';[a31_0x164fd9(0x323)]=a31_0x164fd9(0x389);async['execute'](_0x1e2176){const _0x2cba88=a31_0x164fd9,{options:_0x3b8116,args:_0x10fc00,tdx:_0x38011c}=_0x1e2176,_0x4f6b68=_0x10fc00[0x0],_0x597328=_0x10fc00[0x1]||_0x3b8116[_0x2cba88(0x3ec)];if(!_0x4f6b68)return console[_0x2cba88(0x392)](_0x2cba88(0x240)),console[_0x2cba88(0x392)]('Usage:\x20tdx\x20ps\x20pz\x20service\x20show\x20<service_id>\x20[parent_segment]'),console[_0x2cba88(0x392)]('\x20\x20\x20\x20\x20\x20\x20tdx\x20ps\x20pz\x20service\x20show\x20<service_id>\x20\x20#\x20Uses\x20context'),0x1;if(!_0x597328)return showParentSegmentNotSetError('Usage:\x20tdx\x20ps\x20pz\x20service\x20show\x20<service_id>\x20[parent_segment]\x0a'+_0x2cba88(0x346)),0x1;const _0x249255=await withSpinner('Resolving\x20parent\x20segment\x20\x27'+_0x597328+'\x27...',()=>_0x38011c['segment']['resolveParentId'](_0x597328),{'verbose':_0x3b8116[_0x2cba88(0x3d7)]}),_0x17520a=_0x249255[_0x2cba88(0x27d)],_0x3edb68=await withSpinner(_0x2cba88(0x32c)+_0x4f6b68+_0x2cba88(0x3e1),()=>_0x38011c[_0x2cba88(0x25d)][_0x2cba88(0x37c)](_0x17520a,_0x4f6b68),{'verbose':_0x3b8116[_0x2cba88(0x3d7)]}),_0x4b51bf=_0x3edb68[_0x2cba88(0x27d)];if(_0x3b8116['json']||_0x3b8116[_0x2cba88(0x244)])await handleSDKOutput([_0x4b51bf],_0x3b8116);else{console[_0x2cba88(0x300)](a31_0x1c9df2[_0x2cba88(0x2ea)](_0x4b51bf['name'])+'\x20'+a31_0x1c9df2[_0x2cba88(0x256)](_0x2cba88(0x36e)+_0x4b51bf['id']+')'));_0x4b51bf['description']&&console[_0x2cba88(0x300)]('\x20\x20'+a31_0x1c9df2['dim'](_0x4b51bf[_0x2cba88(0x323)]));console[_0x2cba88(0x300)]('\x20\x20'+a31_0x1c9df2[_0x2cba88(0x250)](_0x2cba88(0x3e3))+'\x20'+(_0x4b51bf[_0x2cba88(0x309)]?'yes':'no'));if(_0x4b51bf[_0x2cba88(0x351)]&&_0x4b51bf[_0x2cba88(0x351)][_0x2cba88(0x2dc)]>0x0)for(const _0x356334 of _0x4b51bf[_0x2cba88(0x351)]){const _0x3f05b7=_0x356334[_0x2cba88(0x20a)]?.[_0x2cba88(0x2dc)]?_0x356334[_0x2cba88(0x20a)][_0x2cba88(0x35e)](',\x20'):_0x2cba88(0x3c0);console[_0x2cba88(0x300)]('\x20\x20'+a31_0x1c9df2[_0x2cba88(0x250)]('token:')+'\x20'+_0x356334[_0x2cba88(0x219)]+'\x20'+a31_0x1c9df2[_0x2cba88(0x256)](_0x2cba88(0x36e)+_0x356334['id']+')')),console[_0x2cba88(0x300)](_0x2cba88(0x3b1)+a31_0x1c9df2[_0x2cba88(0x256)](_0x2cba88(0x2df))+'\x20'+_0x3f05b7);}else console[_0x2cba88(0x300)]('\x20\x20'+a31_0x1c9df2[_0x2cba88(0x256)](_0x2cba88(0x26b)));}return 0x0;}}export class PSPzServiceDeleteCommand extends BaseCommand{['name']=a31_0x164fd9(0x295);[a31_0x164fd9(0x323)]='Delete\x20a\x20personalization\x20service';async[a31_0x164fd9(0x29d)](_0x8bd869){const _0x42eb06=a31_0x164fd9,{options:_0x411859,args:_0xc7a801,tdx:_0x85d55e}=_0x8bd869,_0x35ed86=_0xc7a801[0x0],_0x3bcc78=_0xc7a801[0x1]||_0x411859[_0x42eb06(0x3ec)];if(!_0x35ed86)return console[_0x42eb06(0x392)](_0x42eb06(0x240)),console[_0x42eb06(0x392)]('Usage:\x20tdx\x20ps\x20pz\x20service\x20delete\x20<service_id>\x20[parent_segment]'),console['error'](_0x42eb06(0x261)),0x1;if(!_0x3bcc78)return showParentSegmentNotSetError(_0x42eb06(0x2e6)+_0x42eb06(0x261)),0x1;const _0xeec180=await withSpinner(_0x42eb06(0x2c7)+_0x3bcc78+_0x42eb06(0x3e1),()=>_0x85d55e[_0x42eb06(0x30b)][_0x42eb06(0x335)](_0x3bcc78),{'verbose':_0x411859['verbose']}),_0x442e94=_0xeec180[_0x42eb06(0x27d)];return await withSpinner('Deleting\x20personalization\x20service\x20\x27'+_0x35ed86+_0x42eb06(0x3e1),()=>_0x85d55e[_0x42eb06(0x25d)][_0x42eb06(0x294)](_0x442e94,_0x35ed86),{'verbose':_0x411859[_0x42eb06(0x3d7)]}),console['error'](_0x42eb06(0x3a4)+_0x35ed86+'\x27'),0x0;}}export class PSPzServiceUpdateCommand extends BaseCommand{['name']=a31_0x164fd9(0x29e);['description']=a31_0x164fd9(0x2bd);async['execute'](_0x2eff32){const _0x1b2ac9=a31_0x164fd9,{options:_0x1881ae,args:_0x1a285b,tdx:_0x9221c}=_0x2eff32,_0x40e2dc=_0x1881ae,_0x26521e=_0x1a285b[0x0],_0x5b1646=_0x1a285b[0x1]||_0x1881ae[_0x1b2ac9(0x3ec)];if(!_0x26521e)return console['error'](_0x1b2ac9(0x240)),console[_0x1b2ac9(0x392)]('Usage:\x20tdx\x20ps\x20pz\x20service\x20update\x20<service_id>\x20[parent_segment]\x20--name\x20<name>\x20[--description\x20<text>]'),console[_0x1b2ac9(0x392)](_0x1b2ac9(0x32f)),0x1;if(!_0x40e2dc[_0x1b2ac9(0x219)])return console[_0x1b2ac9(0x392)](_0x1b2ac9(0x3cb)),console[_0x1b2ac9(0x392)]('Usage:\x20tdx\x20ps\x20pz\x20service\x20update\x20<service_id>\x20[parent_segment]\x20--name\x20<name>\x20[--description\x20<text>]'),0x1;if(!_0x5b1646)return showParentSegmentNotSetError(_0x1b2ac9(0x203)+_0x1b2ac9(0x32f)),0x1;const _0x36af04=await withSpinner(_0x1b2ac9(0x2c7)+_0x5b1646+_0x1b2ac9(0x3e1),()=>_0x9221c[_0x1b2ac9(0x30b)][_0x1b2ac9(0x335)](_0x5b1646),{'verbose':_0x1881ae['verbose']}),_0x334934=_0x36af04[_0x1b2ac9(0x27d)],_0x5c940c={'name':_0x40e2dc[_0x1b2ac9(0x219)]};_0x40e2dc[_0x1b2ac9(0x323)]!==undefined&&(_0x5c940c[_0x1b2ac9(0x323)]=_0x40e2dc[_0x1b2ac9(0x323)]);const _0x1e1d10=await withSpinner(_0x1b2ac9(0x396)+_0x26521e+_0x1b2ac9(0x3e1),()=>_0x9221c[_0x1b2ac9(0x25d)]['patch'](_0x334934,_0x26521e,_0x5c940c),{'verbose':_0x1881ae[_0x1b2ac9(0x3d7)]}),_0x41429e=_0x1e1d10['data'];return console[_0x1b2ac9(0x392)]('✔\x20Updated\x20personalization\x20service\x20\x27'+_0x41429e[_0x1b2ac9(0x219)]+'\x27'),await handleSDKOutput([_0x41429e],_0x1881ae),0x0;}}export class PSPzServiceTokenCreateCommand extends BaseCommand{['name']=a31_0x164fd9(0x3c8);[a31_0x164fd9(0x323)]='Create\x20a\x20token\x20for\x20a\x20personalization\x20service';async[a31_0x164fd9(0x29d)](_0x7b3296){const _0x33f352=a31_0x164fd9,{options:_0x44c90,args:_0x391f8d,tdx:_0x36e4ec}=_0x7b3296,_0x42d61a=_0x44c90,_0x199e27=_0x391f8d[0x0],_0x270ef8=_0x391f8d[0x1],_0x588f52=_0x391f8d[0x2]||_0x44c90[_0x33f352(0x3ec)];if(!_0x199e27)return console['error'](_0x33f352(0x1f4)),console[_0x33f352(0x392)](_0x33f352(0x3c7)),console[_0x33f352(0x392)](_0x33f352(0x31c)),0x1;if(!_0x270ef8)return console[_0x33f352(0x392)]('Error:\x20Service\x20ID\x20is\x20required'),console[_0x33f352(0x392)](_0x33f352(0x3c7)),console[_0x33f352(0x392)](_0x33f352(0x31c)),0x1;if(!_0x588f52)return showParentSegmentNotSetError('Usage:\x20tdx\x20ps\x20pz\x20service\x20token\x20create\x20<name>\x20<service_id>\x20[parent_segment]\x0a'+_0x33f352(0x31c)),0x1;const _0x421dfe=await withSpinner('Resolving\x20parent\x20segment\x20\x27'+_0x588f52+_0x33f352(0x3e1),()=>_0x36e4ec[_0x33f352(0x30b)][_0x33f352(0x335)](_0x588f52),{'verbose':_0x44c90['verbose']}),_0x2fed1f=_0x421dfe[_0x33f352(0x27d)],_0x425348={'name':_0x199e27};_0x42d61a[_0x33f352(0x20a)]&&(_0x425348[_0x33f352(0x20a)]=_0x42d61a[_0x33f352(0x20a)][_0x33f352(0x324)](',')['map'](_0x136fa0=>_0x136fa0[_0x33f352(0x1e4)]()));_0x42d61a[_0x33f352(0x323)]&&(_0x425348[_0x33f352(0x323)]=_0x42d61a[_0x33f352(0x323)]);const _0x18bee8=await withSpinner(_0x33f352(0x23a)+_0x199e27+_0x33f352(0x2c2)+_0x270ef8+'\x27...',()=>_0x36e4ec['personalization'][_0x33f352(0x2bb)](_0x2fed1f,_0x270ef8,_0x425348),{'verbose':_0x44c90[_0x33f352(0x3d7)]}),_0xa519cb=_0x18bee8['data'];return console['error'](_0x33f352(0x34a)+_0xa519cb[_0x33f352(0x219)]+_0x33f352(0x221)+_0xa519cb['id']),_0xa519cb[_0x33f352(0x239)]&&(console['error'](a31_0x1c9df2[_0x33f352(0x216)](_0x33f352(0x207))),console['error'](a31_0x1c9df2[_0x33f352(0x250)](_0xa519cb[_0x33f352(0x239)])),console['error']('')),await handleSDKOutput([_0xa519cb],_0x44c90),0x0;}}export class PSPzServiceTokenDeleteCommand extends BaseCommand{[a31_0x164fd9(0x219)]=a31_0x164fd9(0x2da);[a31_0x164fd9(0x323)]=a31_0x164fd9(0x371);async[a31_0x164fd9(0x29d)](_0x2bd3aa){const _0x13f1cb=a31_0x164fd9,{options:_0x51804d,args:_0x16d0e3,tdx:_0x24231e}=_0x2bd3aa,_0x198280=_0x16d0e3[0x0],_0x1f607f=_0x16d0e3[0x1]||_0x51804d[_0x13f1cb(0x3ec)];if(!_0x198280)return console['error'](_0x13f1cb(0x2ad)),console[_0x13f1cb(0x392)]('Usage:\x20tdx\x20ps\x20pz\x20service\x20token\x20delete\x20<token_id>\x20[parent_segment]'),console['error'](_0x13f1cb(0x296)),0x1;if(!_0x1f607f)return showParentSegmentNotSetError(_0x13f1cb(0x236)+'\x20\x20\x20\x20\x20\x20\x20tdx\x20ps\x20pz\x20service\x20token\x20delete\x20<token_id>\x20\x20#\x20Uses\x20context'),0x1;const _0x3ddad2=await withSpinner(_0x13f1cb(0x2c7)+_0x1f607f+'\x27...',()=>_0x24231e[_0x13f1cb(0x30b)][_0x13f1cb(0x335)](_0x1f607f),{'verbose':_0x51804d[_0x13f1cb(0x3d7)]}),_0x5bbbf6=_0x3ddad2[_0x13f1cb(0x27d)],_0x491638=await withSpinner('Finding\x20service\x20for\x20token...',()=>_0x24231e['personalization'][_0x13f1cb(0x35d)](_0x5bbbf6),{'verbose':_0x51804d[_0x13f1cb(0x3d7)]}),_0x2518b2=_0x491638[_0x13f1cb(0x27d)];let _0x5878e1;for(const _0xbdbae7 of _0x2518b2){if(_0xbdbae7[_0x13f1cb(0x351)]?.[_0x13f1cb(0x283)](_0x599c4a=>_0x599c4a['id']===_0x198280)){_0x5878e1=_0xbdbae7['id'];break;}}if(!_0x5878e1)return console['error']('Error:\x20Token\x20\x27'+_0x198280+_0x13f1cb(0x21c)),0x1;const _0x235ca3=await withSpinner(_0x13f1cb(0x27b)+_0x198280+'\x27...',()=>_0x24231e[_0x13f1cb(0x25d)][_0x13f1cb(0x359)](_0x5bbbf6,_0x5878e1,_0x198280),{'verbose':_0x51804d['verbose']}),_0x3e8faa=_0x235ca3[_0x13f1cb(0x27d)];return console['error'](_0x13f1cb(0x234)+(_0x3e8faa[_0x13f1cb(0x219)]||_0x198280)+'\x27'),await handleSDKOutput([_0x3e8faa],_0x51804d),0x0;}}export class PSPzListCommand extends BaseCommand{[a31_0x164fd9(0x219)]='ps:pz:list';[a31_0x164fd9(0x323)]=a31_0x164fd9(0x1d8);async['execute'](_0x557c1f){const _0x286b7b=a31_0x164fd9,{options:_0x3d49c5,args:_0x498e70,tdx:_0x46fefc}=_0x557c1f,_0x1814f3=_0x498e70[0x0]||_0x3d49c5['parentSegment'];if(!_0x1814f3)return showParentSegmentNotSetError(_0x286b7b(0x2cd)+'\x20\x20\x20\x20\x20\x20\x20tdx\x20ps\x20pz\x20list\x20<name>\x20\x20\x20\x20\x20\x20\x20#\x20List\x20personalizations\x20for\x20specific\x20parent\x20segment'),0x1;const _0x2d17b1=await withSpinner(_0x286b7b(0x2c7)+_0x1814f3+'\x27...',()=>_0x46fefc[_0x286b7b(0x30b)][_0x286b7b(0x335)](_0x1814f3),{'verbose':_0x3d49c5[_0x286b7b(0x3d7)]}),_0x36c8f1=_0x2d17b1[_0x286b7b(0x27d)],_0x239487=await withSpinner(_0x286b7b(0x33e)+_0x1814f3+_0x286b7b(0x3e1),()=>_0x46fefc[_0x286b7b(0x25d)][_0x286b7b(0x2cc)](_0x36c8f1),{'verbose':_0x3d49c5['verbose']}),_0x418092=_0x239487[_0x286b7b(0x27d)];console['error'](_0x286b7b(0x3dc)+_0x418092[_0x286b7b(0x2dc)]+_0x286b7b(0x350)+(_0x418092[_0x286b7b(0x2dc)]!==0x1?'s':''));if(_0x3d49c5[_0x286b7b(0x30f)]==='json'||_0x3d49c5[_0x286b7b(0x30f)]===_0x286b7b(0x244))await handleSDKOutput(_0x418092,_0x3d49c5);else{if(_0x418092[_0x286b7b(0x2dc)]===0x0)console[_0x286b7b(0x300)](_0x286b7b(0x394));else for(const _0x2730b1 of _0x418092){console[_0x286b7b(0x300)](a31_0x1c9df2[_0x286b7b(0x2ea)](_0x2730b1[_0x286b7b(0x219)])+'\x20'+a31_0x1c9df2[_0x286b7b(0x256)](_0x286b7b(0x36e)+_0x2730b1['id']+')'));_0x2730b1[_0x286b7b(0x323)]&&console[_0x286b7b(0x300)]('\x20\x20'+a31_0x1c9df2[_0x286b7b(0x256)](_0x2730b1[_0x286b7b(0x323)]));const _0x5924b6=_0x2730b1[_0x286b7b(0x282)]?.[_0x286b7b(0x2dc)]||0x0;console[_0x286b7b(0x300)]('\x20\x20'+a31_0x1c9df2[_0x286b7b(0x250)]('sections:')+'\x20'+_0x5924b6);if(_0x2730b1[_0x286b7b(0x282)]&&_0x2730b1['sections'][_0x286b7b(0x2dc)]>0x0)for(const _0xf64099 of _0x2730b1['sections']){console[_0x286b7b(0x300)]('\x20\x20\x20\x20-\x20'+_0xf64099['name']);}}}return 0x0;}}export class PSPzShowCommand extends BaseCommand{['name']=a31_0x164fd9(0x397);['description']=a31_0x164fd9(0x209);async[a31_0x164fd9(0x29d)](_0x2e5783){const _0x3690cb=a31_0x164fd9,{options:_0x31d098,args:_0x1f1265,tdx:_0x2ab941}=_0x2e5783,_0x4ff199=_0x1f1265[0x0];if(!_0x4ff199)return console[_0x3690cb(0x392)](_0x3690cb(0x26c)),console[_0x3690cb(0x392)](_0x3690cb(0x227)),0x1;const _0x31c004=await withSpinner(_0x3690cb(0x28f)+_0x4ff199+_0x3690cb(0x3e1),()=>_0x2ab941[_0x3690cb(0x25d)][_0x3690cb(0x363)](_0x4ff199),{'verbose':_0x31d098['verbose']}),_0x424b46=_0x31c004[_0x3690cb(0x27d)];console[_0x3690cb(0x392)](_0x3690cb(0x233)+_0x424b46[_0x3690cb(0x219)]+'\x27');if(_0x31d098[_0x3690cb(0x30f)]===_0x3690cb(0x3c4)||_0x31d098[_0x3690cb(0x30f)]===_0x3690cb(0x244))await handleSDKOutput([_0x424b46],_0x31d098);else{console[_0x3690cb(0x300)](a31_0x1c9df2[_0x3690cb(0x2ea)](_0x424b46['name'])+'\x20'+a31_0x1c9df2[_0x3690cb(0x256)]('(id:\x20'+_0x424b46['id']+')'));_0x424b46['description']&&console[_0x3690cb(0x300)]('\x20\x20'+a31_0x1c9df2[_0x3690cb(0x256)](_0x424b46[_0x3690cb(0x323)]));_0x424b46[_0x3690cb(0x2ca)]&&console[_0x3690cb(0x300)]('\x20\x20'+a31_0x1c9df2[_0x3690cb(0x250)](_0x3690cb(0x21a))+'\x20'+_0x424b46['audienceId']);console[_0x3690cb(0x300)]('\x20\x20'+a31_0x1c9df2[_0x3690cb(0x250)](_0x3690cb(0x2d6))+'\x20'+_0x424b46[_0x3690cb(0x367)]),console[_0x3690cb(0x300)]('\x20\x20'+a31_0x1c9df2[_0x3690cb(0x250)]('updated:')+'\x20'+_0x424b46[_0x3690cb(0x271)]);const _0x3b5123=_0x424b46[_0x3690cb(0x282)]?.[_0x3690cb(0x2dc)]||0x0;console[_0x3690cb(0x300)]('\x20\x20'+a31_0x1c9df2[_0x3690cb(0x250)](_0x3690cb(0x3d8))+'\x20'+_0x3b5123);if(_0x424b46[_0x3690cb(0x282)]&&_0x424b46['sections'][_0x3690cb(0x2dc)]>0x0)for(const _0x4b8529 of _0x424b46[_0x3690cb(0x282)]){console[_0x3690cb(0x300)](_0x3690cb(0x3b1)+a31_0x1c9df2['bold'](_0x4b8529[_0x3690cb(0x219)])+'\x20'+a31_0x1c9df2['dim'](_0x3690cb(0x36e)+_0x4b8529['id']+')')),_0x4b8529['entryCriteria']&&(console['log'](_0x3690cb(0x208)+a31_0x1c9df2['cyan'](_0x3690cb(0x353))+'\x20'+_0x4b8529[_0x3690cb(0x38b)][_0x3690cb(0x219)]),_0x4b8529[_0x3690cb(0x38b)]['keyEventCriteria']?.[_0x3690cb(0x3aa)]&&console[_0x3690cb(0x300)](_0x3690cb(0x3c2)+a31_0x1c9df2[_0x3690cb(0x250)](_0x3690cb(0x305))+'\x20'+_0x4b8529['entryCriteria'][_0x3690cb(0x286)][_0x3690cb(0x3aa)])),_0x4b8529[_0x3690cb(0x388)]&&console[_0x3690cb(0x300)](_0x3690cb(0x208)+a31_0x1c9df2[_0x3690cb(0x250)](_0x3690cb(0x345))+'\x20'+JSON['stringify'](_0x4b8529['payload'])),_0x4b8529[_0x3690cb(0x38a)]&&console[_0x3690cb(0x300)](_0x3690cb(0x208)+a31_0x1c9df2[_0x3690cb(0x250)](_0x3690cb(0x33c))+_0x3690cb(0x3ed));}}return 0x0;}}export class PSPzDeleteCommand extends BaseCommand{[a31_0x164fd9(0x219)]=a31_0x164fd9(0x3bc);['description']=a31_0x164fd9(0x277);async['execute'](_0x33c35f){const _0x264104=a31_0x164fd9,{options:_0x52e48c,args:_0x5302cf,tdx:_0x41e608}=_0x33c35f,_0x32d758=_0x5302cf[0x0];if(!_0x32d758)return console[_0x264104(0x392)](_0x264104(0x26c)),console[_0x264104(0x392)](_0x264104(0x22b)),0x1;return await withSpinner(_0x264104(0x223)+_0x32d758+_0x264104(0x3e1),()=>_0x41e608[_0x264104(0x25d)]['deletePersonalization'](_0x32d758),{'verbose':_0x52e48c[_0x264104(0x3d7)]}),console['error'](_0x264104(0x20f)+_0x32d758+'\x27'),0x0;}}export class PSPzCreateCommand extends BaseCommand{['name']=a31_0x164fd9(0x22d);[a31_0x164fd9(0x323)]=a31_0x164fd9(0x2c8);async[a31_0x164fd9(0x29d)](_0x32ad23){const _0xdbe5d4=a31_0x164fd9,{options:_0x9b0068,tdx:_0x32d1eb}=_0x32ad23,_0x4cc426=_0x9b0068;let _0x60a15f;if(_0x4cc426[_0xdbe5d4(0x2db)]){_0x60a15f=await loadJSON(_0x4cc426['file'],!![]);if(!_0x60a15f[_0xdbe5d4(0x276)]?.[_0xdbe5d4(0x3b0)])return console[_0xdbe5d4(0x392)](_0xdbe5d4(0x2b4)),console[_0xdbe5d4(0x392)](_0xdbe5d4(0x259)),console[_0xdbe5d4(0x392)](_0xdbe5d4(0x1f2)),0x1;}else{if(!_0x4cc426[_0xdbe5d4(0x219)])return console[_0xdbe5d4(0x392)](_0xdbe5d4(0x288)),console[_0xdbe5d4(0x392)](_0xdbe5d4(0x31a)),console['error']('\x20\x20\x20\x20\x20\x20\x20tdx\x20ps\x20pz\x20create\x20--file\x20<path>'),0x1;if(_0x4cc426['description']===undefined)return console[_0xdbe5d4(0x392)](_0xdbe5d4(0x2e1)),console[_0xdbe5d4(0x392)](_0xdbe5d4(0x31a)),console[_0xdbe5d4(0x392)]('\x20\x20\x20\x20\x20\x20\x20tdx\x20ps\x20pz\x20create\x20--file\x20<path>'),0x1;if(_0x4cc426[_0xdbe5d4(0x370)]===undefined)return console[_0xdbe5d4(0x392)](_0xdbe5d4(0x3d4)),console['error']('\x20\x20\x20\x20\x20\x20\x20Pass\x20null\x20to\x20place\x20in\x20the\x20root\x20folder.'),0x1;let _0x9ed7ab=_0x4cc426[_0xdbe5d4(0x2ca)];if(!_0x9ed7ab&&_0x9b0068[_0xdbe5d4(0x3ec)]){const _0x2506cb=await withSpinner(_0xdbe5d4(0x2c7)+_0x9b0068[_0xdbe5d4(0x3ec)]+'\x27...',()=>_0x32d1eb[_0xdbe5d4(0x30b)][_0xdbe5d4(0x335)](_0x9b0068[_0xdbe5d4(0x3ec)]),{'verbose':_0x9b0068[_0xdbe5d4(0x3d7)]});_0x9ed7ab=_0x2506cb['data'];}let _0x18e0bb;_0x4cc426[_0xdbe5d4(0x282)]&&(_0x18e0bb=await loadJSON(_0x4cc426['sections'],![]));const _0x348772=_0x4cc426[_0xdbe5d4(0x370)]===_0xdbe5d4(0x247)?null:{'id':_0x4cc426[_0xdbe5d4(0x370)],'type':_0xdbe5d4(0x2b9)};_0x60a15f={'attributes':{'name':_0x4cc426['name'],'description':_0x4cc426[_0xdbe5d4(0x323)]||null,..._0x9ed7ab!==undefined&&{'audienceId':_0x9ed7ab},..._0x18e0bb!==undefined&&{'sections':_0x18e0bb}},'relationships':{'parentFolder':{'data':_0x348772}}};}const _0x5bf2dc=await withSpinner(_0xdbe5d4(0x3bd)+(_0x60a15f[_0xdbe5d4(0x218)]?.['name']??'')+'\x27...',()=>_0x32d1eb[_0xdbe5d4(0x25d)][_0xdbe5d4(0x2c1)](_0x60a15f),{'verbose':_0x9b0068[_0xdbe5d4(0x3d7)]}),_0x497e80=_0x5bf2dc['data'];return console['error'](_0xdbe5d4(0x2de)+_0x497e80[_0xdbe5d4(0x219)]+_0xdbe5d4(0x221)+_0x497e80['id']),await handleSDKOutput([_0x497e80],_0x9b0068),0x0;}}export class PSPzPatchCommand extends BaseCommand{['name']=a31_0x164fd9(0x1d1);[a31_0x164fd9(0x323)]=a31_0x164fd9(0x331);async['execute'](_0x3388f0){const _0x3ac9f4=a31_0x164fd9,{options:_0x25ec69,args:_0x18b85a}=_0x3388f0,_0x1b1d7b=_0x25ec69,_0x117f9c=_0x18b85a[0x0];if(!_0x117f9c)return console[_0x3ac9f4(0x392)](_0x3ac9f4(0x26c)),console[_0x3ac9f4(0x392)](_0x3ac9f4(0x2ec)),console[_0x3ac9f4(0x392)](_0x3ac9f4(0x354)),0x1;let _0x4a4b6b;if(_0x1b1d7b[_0x3ac9f4(0x2db)])_0x4a4b6b=await loadJSON(_0x1b1d7b['file'],!![]);else{if(!_0x1b1d7b[_0x3ac9f4(0x219)])return console[_0x3ac9f4(0x392)](_0x3ac9f4(0x288)),console[_0x3ac9f4(0x392)](_0x3ac9f4(0x2ec)),0x1;if(_0x1b1d7b[_0x3ac9f4(0x323)]===undefined)return console[_0x3ac9f4(0x392)](_0x3ac9f4(0x2e1)),console[_0x3ac9f4(0x392)](_0x3ac9f4(0x2ec)),0x1;let _0x4eb6c4;_0x1b1d7b[_0x3ac9f4(0x282)]&&(_0x4eb6c4=await loadJSON(_0x1b1d7b[_0x3ac9f4(0x282)],![])),_0x4a4b6b={'attributes':{'name':_0x1b1d7b['name'],'description':_0x1b1d7b[_0x3ac9f4(0x323)]||null,..._0x4eb6c4!==undefined&&{'sections':_0x4eb6c4}}};}const {tdx:_0xe818c7}=_0x3388f0,_0x4618e2=await withSpinner(_0x3ac9f4(0x34c)+_0x117f9c+_0x3ac9f4(0x3e1),()=>_0xe818c7[_0x3ac9f4(0x25d)][_0x3ac9f4(0x356)](_0x117f9c,_0x4a4b6b),{'verbose':_0x25ec69[_0x3ac9f4(0x3d7)]}),_0x19735b=_0x4618e2[_0x3ac9f4(0x27d)];return console[_0x3ac9f4(0x392)](_0x3ac9f4(0x29c)+_0x19735b['name']+_0x3ac9f4(0x375)+_0x19735b['id']+')'),await handleSDKOutput([_0x19735b],_0x25ec69),0x0;}}export class PSPzInitCommand extends BaseParentSegmentCommand{[a31_0x164fd9(0x219)]=a31_0x164fd9(0x327);[a31_0x164fd9(0x323)]=a31_0x164fd9(0x2c4);async[a31_0x164fd9(0x29d)](_0x8fcfcf){const _0x49d1a4=a31_0x164fd9,{options:_0x5444d5,args:_0x4901b7}=_0x8fcfcf,_0x375ee3=_0x4901b7[0x0]||_0x5444d5[_0x49d1a4(0x3ec)];if(!_0x375ee3)return showParentSegmentNotSetError('Usage:\x20tdx\x20ps\x20pz\x20init\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Add\x20PZ\x20template\x20(requires\x20context)\x0a'+_0x49d1a4(0x316)),0x1;const _0x4c9324=resolveYamlFile(_0x375ee3);if(!existsSync(_0x4c9324))return showFileNotFoundError(_0x4c9324,_0x375ee3),0x1;let _0x5e2ce8;try{_0x5e2ce8=readFileSync(_0x4c9324,_0x49d1a4(0x29a));}catch(_0x4b531a){const _0x4c632c=_0x4b531a instanceof Error?_0x4b531a[_0x49d1a4(0x2bf)]:String(_0x4b531a);return console[_0x49d1a4(0x392)](_0x49d1a4(0x364)+_0x4c632c),0x1;}let _0x4d524b;try{_0x4d524b=parseDef(_0x5e2ce8);}catch(_0x136369){const _0x148b43=_0x136369 instanceof Error?_0x136369[_0x49d1a4(0x2bf)]:String(_0x136369);return console[_0x49d1a4(0x392)](a31_0x1c9df2[_0x49d1a4(0x338)](_0x49d1a4(0x2f9)+_0x148b43)),0x1;}if(_0x4d524b[_0x49d1a4(0x229)]&&_0x4d524b[_0x49d1a4(0x229)]['length']>0x0)return console[_0x49d1a4(0x392)](a31_0x1c9df2[_0x49d1a4(0x216)]('⚠️\x20\x20personalization_services\x20section\x20already\x20exists\x20in\x20'+_0x4c9324)),console['error'](a31_0x1c9df2[_0x49d1a4(0x256)](_0x49d1a4(0x3ae)+_0x4d524b['personalization_services'][_0x49d1a4(0x2dc)]+_0x49d1a4(0x312))),0x1;!_0x4d524b[_0x49d1a4(0x21d)]&&(_0x4d524b[_0x49d1a4(0x21d)]={'events':[{'name':_0x49d1a4(0x3ee),'source_table':_0x49d1a4(0x2f8)}],'attributes':[{'name':_0x49d1a4(0x245),'type':_0x49d1a4(0x2e2)}],'id_stitching':{'primary_key':_0x4d524b[_0x49d1a4(0x3ea)][_0x49d1a4(0x366)]===_0x49d1a4(0x301)?_0x49d1a4(0x248):_0x49d1a4(0x228)}});_0x4d524b[_0x49d1a4(0x229)]=[{'name':_0x49d1a4(0x387),'description':_0x49d1a4(0x2af),'trigger_event':_0x49d1a4(0x3ee),'sections':[{'name':_0x49d1a4(0x2a6),'criteria':_0x49d1a4(0x2f3),'attributes':[_0x49d1a4(0x245)]}]}];const _0x32b6a6=serializeDef(_0x4d524b);return writeFileSync(_0x4c9324,_0x32b6a6,_0x49d1a4(0x29a)),console[_0x49d1a4(0x392)](a31_0x1c9df2[_0x49d1a4(0x31e)]('✔')+_0x49d1a4(0x385)+a31_0x1c9df2[_0x49d1a4(0x250)](_0x4c9324)),(!_0x4d524b[_0x49d1a4(0x21d)]||_0x5e2ce8[_0x49d1a4(0x34e)]('realtime:')===-0x1)&&console['error'](a31_0x1c9df2[_0x49d1a4(0x31e)]('✔')+_0x49d1a4(0x3bf)),console[_0x49d1a4(0x392)]('\x0a'+a31_0x1c9df2[_0x49d1a4(0x256)](_0x49d1a4(0x334))),console[_0x49d1a4(0x392)](_0x49d1a4(0x1e3)+_0x4c9324+_0x49d1a4(0x33f)),console['error'](_0x49d1a4(0x24b)+a31_0x1c9df2[_0x49d1a4(0x256)]('tdx\x20ps\x20push\x20'+_0x375ee3)+_0x49d1a4(0x380)),0x0;}}
|
|
1
|
+
const a31_0x4797a6=a31_0x21b4;(function(_0x2c7f23,_0x317d73){const _0x31e2de=a31_0x21b4,_0x48ecd9=_0x2c7f23();while(!![]){try{const _0x463b07=-parseInt(_0x31e2de(0x15b))/0x1*(parseInt(_0x31e2de(0x319))/0x2)+-parseInt(_0x31e2de(0x255))/0x3+parseInt(_0x31e2de(0x149))/0x4*(parseInt(_0x31e2de(0x113))/0x5)+parseInt(_0x31e2de(0x2a0))/0x6+-parseInt(_0x31e2de(0x259))/0x7+-parseInt(_0x31e2de(0x2b3))/0x8+parseInt(_0x31e2de(0x18a))/0x9*(parseInt(_0x31e2de(0x2c9))/0xa);if(_0x463b07===_0x317d73)break;else _0x48ecd9['push'](_0x48ecd9['shift']());}catch(_0x7b3f1b){_0x48ecd9['push'](_0x48ecd9['shift']());}}}(a31_0xbd54,0x8c00f));import{writeFileSync,readFileSync,existsSync,mkdirSync,renameSync,statSync}from'fs';import{spawn}from'child_process';import a31_0x1da727 from'path';import{BaseCommand}from'./command.js';import{handleSDKOutput,handleQueryOutput,handleSingleObjectOutput,writeOutput}from'../core/command-output.js';import{withSpinner,withProgressSpinner,createCommandSpinner,formatElapsed}from'../utils/spinner.js';import{loadJSONFromOptions,loadJSON}from'../utils/json-loader.js';import{generateDiff,formatDiffWithColors,hasChanges}from'../utils/diff.js';import{getConsoleUrl,getConsoleNextUrl}from'../sdk/client/endpoints.js';import{formatRows,formatAsTable,hyperlink}from'../sdk/util/formatters.js';import{parseDef,serializeDef}from'../sdk/segment/parent-segment-yaml.js';import{confirmKey,isInteractive}from'../utils/prompt.js';import{DEFAULT_DISPLAY_LIMIT,resolveLimit}from'../core/constants.js';import a31_0x12b51f from'chalk';import{displayFieldsHumanReadable,executeSchemaQuery}from'../sdk/segment/fields-display.js';import{saveSessionContext}from'../core/session.js';import{sanitizeFileName}from'../utils/string-utils.js';const PARENT_SEGMENT_DIR='parent_segments',LEGACY_PARENT_SEGMENT_DIR=a31_0x4797a6(0x2c2);function openBrowser(_0x45bf7e){const _0x2f6f04=a31_0x4797a6,_0x5b954f=process['platform'],_0x5db65f=_0x5b954f==='darwin'?'open':_0x5b954f===_0x2f6f04(0x2c7)?'start':_0x2f6f04(0x146);spawn(_0x5db65f,[_0x45bf7e],{'detached':!![],'stdio':_0x2f6f04(0x1bd)})['unref']();}function migrateLegacyDirectory(){const _0x3392e1=a31_0x4797a6;if(!existsSync(LEGACY_PARENT_SEGMENT_DIR))return![];const _0x1c3f44=statSync(LEGACY_PARENT_SEGMENT_DIR);if(!_0x1c3f44['isDirectory']())return![];if(existsSync(PARENT_SEGMENT_DIR))return console[_0x3392e1(0x306)](a31_0x12b51f[_0x3392e1(0x215)](_0x3392e1(0x103)+LEGACY_PARENT_SEGMENT_DIR+_0x3392e1(0x227)+PARENT_SEGMENT_DIR+_0x3392e1(0x1ae))),console[_0x3392e1(0x306)](a31_0x12b51f[_0x3392e1(0x2dc)](_0x3392e1(0x178)+LEGACY_PARENT_SEGMENT_DIR+_0x3392e1(0x16d))),![];console[_0x3392e1(0x306)](a31_0x12b51f[_0x3392e1(0x215)](_0x3392e1(0x265)+LEGACY_PARENT_SEGMENT_DIR+_0x3392e1(0x270)+PARENT_SEGMENT_DIR+'/\x0a'));try{return renameSync(LEGACY_PARENT_SEGMENT_DIR,PARENT_SEGMENT_DIR),console[_0x3392e1(0x306)](a31_0x12b51f['green']('✔\x20Renamed\x20directory\x20to\x20'+PARENT_SEGMENT_DIR+'/\x0a')),!![];}catch(_0x4fb8e2){const _0x1a81c8=_0x4fb8e2 instanceof Error?_0x4fb8e2['message']:String(_0x4fb8e2);return console[_0x3392e1(0x306)](a31_0x12b51f['red']('✘\x20Failed\x20to\x20rename\x20directory:\x20'+_0x1a81c8+'\x0a')),![];}}class BaseParentSegmentCommand extends BaseCommand{async[a31_0x4797a6(0x197)](_0x2ae570){const _0x1ac420=a31_0x4797a6;return migrateLegacyDirectory(),super[_0x1ac420(0x197)](_0x2ae570);}}function resolveYamlFile(_0x1624bc){const _0x49630b=a31_0x4797a6;if(_0x1624bc['endsWith'](_0x49630b(0x1fd))||_0x1624bc[_0x49630b(0x250)](_0x49630b(0x156)))return _0x1624bc;return a31_0x1da727['join'](PARENT_SEGMENT_DIR,sanitizeFileName(_0x1624bc)+_0x49630b(0x1fd));}function formatProgressMessage(_0x1964bc){const _0x509b76=a31_0x4797a6,_0x19d07e=_0x1964bc[_0x509b76(0x2cf)](/^(.+?):\s*(.+?)(\s*\(.+\))?$/);if(_0x19d07e){const [,_0x1db6a7,_0x2c5f8d,_0x156384='']=_0x19d07e;return a31_0x12b51f[_0x509b76(0x2dc)](_0x1db6a7+':')+'\x20'+_0x2c5f8d+a31_0x12b51f['dim'](_0x156384);}return a31_0x12b51f[_0x509b76(0x2dc)](_0x1964bc);}function showFileNotFoundError(_0x4c595e,_0x501a5c){const _0x3cbb14=a31_0x4797a6;console['error'](a31_0x12b51f['red'](_0x3cbb14(0x21d)+_0x4c595e+'\x0a')),console[_0x3cbb14(0x306)](a31_0x12b51f[_0x3cbb14(0x137)](_0x3cbb14(0x157)+_0x501a5c+_0x3cbb14(0x2c3)));}function displayRealtimeValidation(_0x4b0a13){const _0x147a4a=a31_0x4797a6;if(!_0x4b0a13[_0x147a4a(0x20f)])return;const _0x5547b2=_0x4b0a13[_0x147a4a(0x20f)],_0x4ceb86=_0x5547b2[_0x147a4a(0x309)]?a31_0x12b51f[_0x147a4a(0x2db)]('⚡\x20Enabled'):a31_0x12b51f[_0x147a4a(0x215)]('⚡\x20Not\x20enabled');console[_0x147a4a(0x306)]('\x0a'+a31_0x12b51f[_0x147a4a(0x2dc)]('RT\x202.0:')+'\x20'+_0x4ceb86);if(_0x5547b2[_0x147a4a(0x2b8)]&&_0x5547b2['events'][_0x147a4a(0x16c)]>0x0){console[_0x147a4a(0x306)]('\x20\x20'+a31_0x12b51f[_0x147a4a(0x2dc)](_0x147a4a(0x237))+'\x20'+_0x5547b2[_0x147a4a(0x2b8)][_0x147a4a(0x16c)]+'\x20configured');for(const _0x1f20ab of _0x5547b2[_0x147a4a(0x2b8)]){const _0x2ce73f=_0x1f20ab[_0x147a4a(0x2ed)]===![]?a31_0x12b51f[_0x147a4a(0x315)]('✘'):a31_0x12b51f[_0x147a4a(0x2db)]('✔');console[_0x147a4a(0x306)](_0x147a4a(0x10b)+_0x2ce73f+'\x20'+_0x1f20ab[_0x147a4a(0x15c)]),_0x1f20ab[_0x147a4a(0x230)]&&console[_0x147a4a(0x306)](_0x147a4a(0x1a5)+a31_0x12b51f[_0x147a4a(0x315)](_0x1f20ab['sourceTableError']));}}if(_0x5547b2[_0x147a4a(0x2b7)]&&_0x5547b2[_0x147a4a(0x2b7)][_0x147a4a(0x16c)]>0x0){console['error']('\x20\x20'+a31_0x12b51f[_0x147a4a(0x2dc)]('Attributes:')+'\x20'+_0x5547b2[_0x147a4a(0x2b7)][_0x147a4a(0x16c)]+'\x20configured');for(const _0x310f75 of _0x5547b2[_0x147a4a(0x2b7)]){const _0x4ac703=_0x310f75[_0x147a4a(0x226)]?a31_0x12b51f[_0x147a4a(0x2db)]('✔'):a31_0x12b51f[_0x147a4a(0x315)]('✘');console[_0x147a4a(0x306)](_0x147a4a(0x10b)+_0x4ac703+'\x20'+_0x310f75['name']+'\x20'+a31_0x12b51f[_0x147a4a(0x2dc)]('('+_0x310f75[_0x147a4a(0x279)]+')'));}}if(_0x5547b2['idStitching']){const _0x5e056b=_0x5547b2[_0x147a4a(0x21b)][_0x147a4a(0x2f7)]?.[_0x147a4a(0x16c)]?'\x20+\x20['+_0x5547b2[_0x147a4a(0x21b)][_0x147a4a(0x2f7)][_0x147a4a(0x13f)](',\x20')+']':'';console[_0x147a4a(0x306)]('\x20\x20'+a31_0x12b51f[_0x147a4a(0x2dc)](_0x147a4a(0x28a))+'\x20'+_0x5547b2[_0x147a4a(0x21b)]['primaryKey']+_0x5e056b);}if(_0x5547b2[_0x147a4a(0x2b6)]&&_0x5547b2[_0x147a4a(0x2b6)][_0x147a4a(0x16c)]>0x0){console['error']('\x20\x20'+a31_0x12b51f[_0x147a4a(0x2dc)](_0x147a4a(0x121))+'\x20'+_0x5547b2[_0x147a4a(0x2b6)][_0x147a4a(0x16c)]+_0x147a4a(0x228)+(_0x5547b2[_0x147a4a(0x2b6)][_0x147a4a(0x16c)]!==0x1?'s':''));for(const _0x126994 of _0x5547b2['personalizationServices']){console[_0x147a4a(0x306)](_0x147a4a(0x24a)+_0x126994[_0x147a4a(0x15c)]);}}}function showParentSegmentNotSetError(_0x54b28a){const _0x22ae83=a31_0x4797a6;console[_0x22ae83(0x306)](a31_0x12b51f['yellow'](_0x22ae83(0x23e))),console[_0x22ae83(0x306)](_0x54b28a);}export class ParentSegmentListCommand extends BaseCommand{[a31_0x4797a6(0x15c)]=a31_0x4797a6(0x299);[a31_0x4797a6(0x2eb)]=a31_0x4797a6(0x1ad);async[a31_0x4797a6(0x152)](_0x20a683){const _0x27eccf=a31_0x4797a6,{options:_0xc023f4,args:_0x4df42f,tdx:_0x48cba8}=_0x20a683,_0x40ca71=_0x4df42f[0x0];_0xc023f4[_0x27eccf(0x282)]&&(console[_0x27eccf(0x306)](_0x27eccf(0x31b)+_0xc023f4[_0x27eccf(0x1c2)]),_0x40ca71&&console[_0x27eccf(0x306)]('Pattern:\x20'+_0x40ca71));const _0x1ffa43=await withSpinner(_0x40ca71?_0x27eccf(0x118)+_0x40ca71+_0x27eccf(0x131):'Listing\x20parent\x20segments...',()=>_0x48cba8[_0x27eccf(0x14c)][_0x27eccf(0x1c5)](),{'verbose':_0xc023f4[_0x27eccf(0x282)]});let _0x57bb90=_0x1ffa43[_0x27eccf(0x2a4)];if(_0x40ca71){const _0xb7ae1e=_0x40ca71[_0x27eccf(0x19b)](/[.+^${}()|[\]\\]/g,_0x27eccf(0x198))[_0x27eccf(0x19b)](/\*/g,'.*')[_0x27eccf(0x19b)](/\?/g,'.'),_0x582c71=new RegExp('^'+_0xb7ae1e+'$','i');_0x57bb90=_0x57bb90[_0x27eccf(0x19c)](_0x376d16=>_0x582c71[_0x27eccf(0x208)](_0x376d16[_0x27eccf(0x2b7)][_0x27eccf(0x15c)]));}_0x57bb90[_0x27eccf(0x2e8)]((_0x79cd48,_0x1e8d6e)=>_0x79cd48[_0x27eccf(0x2b7)]['name'][_0x27eccf(0x1cf)](_0x1e8d6e[_0x27eccf(0x2b7)][_0x27eccf(0x15c)])),console[_0x27eccf(0x306)](_0x27eccf(0x150)+_0x57bb90['length']+_0x27eccf(0x26c)+(_0x57bb90['length']!==0x1?'s':''));const _0x1f1c93=_0x5b1ec5=>{const _0x1f0ef1=_0x27eccf;return getConsoleNextUrl(_0xc023f4[_0x1f0ef1(0x1c2)],'/app/dw/parentSegments/'+_0x5b1ec5);};if(_0xc023f4[_0x27eccf(0x1b6)]===_0x27eccf(0x1bf)||_0xc023f4[_0x27eccf(0x1b6)]===_0x27eccf(0x1bc)){const _0x48a6ea=_0x57bb90[_0x27eccf(0x1d5)](_0x35fb45=>({..._0x35fb45,'url':_0x1f1c93(_0x35fb45['id'])}));await handleSDKOutput(_0x48a6ea,_0xc023f4);}else{if(_0x57bb90[_0x27eccf(0x16c)]===0x0)_0x40ca71?console[_0x27eccf(0x225)](_0x27eccf(0x123)+_0x40ca71):console[_0x27eccf(0x225)](_0x27eccf(0x1f3));else for(const _0x29d57d of _0x57bb90){const _0x46db24=_0x29d57d[_0x27eccf(0x2b7)][_0x27eccf(0x169)]?a31_0x12b51f[_0x27eccf(0x2dc)]('\x20('+formatRows(_0x29d57d['attributes'][_0x27eccf(0x169)])+')'):'',_0x44e076=hyperlink(_0x29d57d[_0x27eccf(0x2b7)][_0x27eccf(0x15c)],_0x1f1c93(_0x29d57d['id']));console['log'](_0x27eccf(0x143)+_0x44e076+_0x46db24);}}return 0x0;}}export class ParentSegmentCreateCommand extends BaseCommand{[a31_0x4797a6(0x15c)]='segment:parent:create';['description']=a31_0x4797a6(0x1a7);async[a31_0x4797a6(0x152)](_0x379b67){const _0x185544=a31_0x4797a6,{options:_0x1160fc,args:_0x1d629f,tdx:_0x11fe77}=_0x379b67;console[_0x185544(0x306)](_0x185544(0x308)+'\x20\x20\x20Use\x20`tdx\x20segment\x20parent\x20push\x20<file.yml>`\x20instead\x20for\x20better\x20configuration\x20management.\x0a'+'\x20\x20\x20See:\x20tdx\x20segment\x20parent\x20pull\x20--help\x0a');const _0x109f7a=_0x1160fc;if(_0x1d629f['length']===0x0)return console[_0x185544(0x306)](a31_0x12b51f[_0x185544(0x315)](_0x185544(0x17e))),console[_0x185544(0x306)](_0x185544(0x2c6)),0x1;const _0x30c995=_0x1d629f[0x0];if(!_0x109f7a[_0x185544(0x247)]||!_0x109f7a[_0x185544(0x262)])return console[_0x185544(0x306)](_0x185544(0x154)),console['error'](_0x185544(0x2c6)),0x1;_0x109f7a[_0x185544(0x282)]&&(console['error'](_0x185544(0x31b)+_0x109f7a['site']),console[_0x185544(0x306)](_0x185544(0x2be)+_0x30c995),console[_0x185544(0x306)](_0x185544(0x23d)+_0x109f7a[_0x185544(0x247)]),console[_0x185544(0x306)](_0x185544(0x22d)+_0x109f7a['table']));const _0x455065=await loadJSONFromOptions(_0x109f7a[_0x185544(0x2b7)],_0x109f7a[_0x185544(0x244)]),_0x1e0181=await loadJSONFromOptions(_0x109f7a[_0x185544(0x275)],_0x109f7a['behaviorsFile']),_0x51edc4=await loadJSONFromOptions(_0x109f7a[_0x185544(0x311)],_0x109f7a[_0x185544(0x241)]),_0x352123={'name':_0x30c995,'description':_0x109f7a[_0x185544(0x2eb)],'scheduleType':_0x109f7a[_0x185544(0x1ec)],'scheduleOption':_0x109f7a[_0x185544(0x1c9)],'timezone':_0x109f7a[_0x185544(0x176)],'master':{'parentDatabaseName':_0x109f7a['database'],'parentTableName':_0x109f7a[_0x185544(0x262)]},'attributes':_0x455065,'behaviors':_0x1e0181,'customerGroup':_0x51edc4},_0x35f7f5=await withSpinner('Creating\x20parent\x20segment\x20\x27'+_0x30c995+_0x185544(0x131),()=>_0x11fe77[_0x185544(0x14c)][_0x185544(0x1e6)](_0x352123),{'verbose':_0x1160fc[_0x185544(0x282)]}),_0x5befb0=_0x35f7f5[_0x185544(0x2a4)];return console[_0x185544(0x306)](_0x185544(0x2e5)+_0x5befb0[_0x185544(0x15c)]+_0x185544(0x19e)+_0x5befb0['id']),await handleSDKOutput([_0x5befb0],_0x1160fc),0x0;}}export class ParentSegmentUpdateCommand extends BaseCommand{[a31_0x4797a6(0x15c)]='segment:parent:update';[a31_0x4797a6(0x2eb)]=a31_0x4797a6(0x13b);async['execute'](_0x19c54f){const _0x40797e=a31_0x4797a6,{options:_0x5346ba,args:_0x47bc53,tdx:_0x2fd9cc}=_0x19c54f;console[_0x40797e(0x306)](_0x40797e(0x192)+_0x40797e(0x274)+_0x40797e(0x135));const _0x195572=_0x5346ba;if(_0x47bc53['length']===0x0)return console[_0x40797e(0x306)](a31_0x12b51f[_0x40797e(0x315)]('Error:\x20Parent\x20segment\x20name\x20is\x20required')),console[_0x40797e(0x306)](_0x40797e(0x1e8)),0x1;const _0x3dbf78=_0x47bc53[0x0];_0x195572[_0x40797e(0x282)]&&(console['error'](_0x40797e(0x31b)+_0x195572[_0x40797e(0x1c2)]),console['error'](_0x40797e(0x1b3)+_0x3dbf78));const _0x21f2a2=await withSpinner(_0x40797e(0x204)+_0x3dbf78+_0x40797e(0x131),()=>_0x2fd9cc[_0x40797e(0x14c)][_0x40797e(0x10d)](_0x3dbf78),{'verbose':_0x195572[_0x40797e(0x282)]}),_0x3e41a4=_0x21f2a2[_0x40797e(0x2a4)],_0x13004b=await loadJSONFromOptions(_0x195572['addAttributes'],_0x195572[_0x40797e(0x2cc)]),_0x5024f5=await loadJSONFromOptions(_0x195572[_0x40797e(0x164)],_0x195572[_0x40797e(0x133)]),_0x346fc5={'name':_0x3e41a4[_0x40797e(0x15c)],'description':_0x195572['description']!==undefined?_0x195572[_0x40797e(0x2eb)]:_0x3e41a4[_0x40797e(0x2eb)],'scheduleType':_0x195572[_0x40797e(0x1ec)]!==undefined?_0x195572[_0x40797e(0x1ec)]:_0x3e41a4[_0x40797e(0x1ec)],'scheduleOption':_0x195572['scheduleOption']!==undefined?_0x195572[_0x40797e(0x1c9)]:_0x3e41a4[_0x40797e(0x1c9)],'timezone':_0x195572[_0x40797e(0x176)]!==undefined?_0x195572[_0x40797e(0x176)]:_0x3e41a4[_0x40797e(0x176)],'master':_0x3e41a4[_0x40797e(0x2fe)],'attributes':_0x13004b?[..._0x3e41a4[_0x40797e(0x2b7)]||[],..._0x13004b]:_0x3e41a4[_0x40797e(0x2b7)],'behaviors':_0x5024f5?[..._0x3e41a4['behaviors']||[],..._0x5024f5]:_0x3e41a4[_0x40797e(0x275)],'customerGroup':_0x3e41a4[_0x40797e(0x311)]},_0x23c8f0=await withSpinner(_0x40797e(0x1f8)+_0x3dbf78+'\x27...',()=>_0x2fd9cc[_0x40797e(0x14c)]['updateParent'](_0x3dbf78,_0x346fc5),{'verbose':_0x195572[_0x40797e(0x282)]}),_0x4ad40c=_0x23c8f0[_0x40797e(0x2a4)];return console[_0x40797e(0x306)](_0x40797e(0x289)+_0x4ad40c[_0x40797e(0x15c)]+'\x27'),await handleSDKOutput([_0x4ad40c],_0x195572),0x0;}}export class ParentSegmentPullCommand extends BaseParentSegmentCommand{[a31_0x4797a6(0x15c)]=a31_0x4797a6(0x2ba);[a31_0x4797a6(0x2eb)]=a31_0x4797a6(0x318);async[a31_0x4797a6(0x152)](_0x3e20bc){const _0x368d19=a31_0x4797a6,{options:_0x7d16b5,args:_0x316f63,tdx:_0x59de2}=_0x3e20bc,_0x16906c=_0x7d16b5,_0x3f6406=_0x316f63[0x0]||_0x7d16b5[_0x368d19(0x13d)];if(!_0x3f6406)return showParentSegmentNotSetError(_0x368d19(0x2d7)+_0x368d19(0x188)),0x1;if(_0x16906c[_0x368d19(0x18c)]&&_0x16906c['output'])return console[_0x368d19(0x306)](a31_0x12b51f[_0x368d19(0x315)](_0x368d19(0x23c))),console[_0x368d19(0x306)](a31_0x12b51f[_0x368d19(0x2dc)](_0x368d19(0x1bb))),console[_0x368d19(0x306)](a31_0x12b51f[_0x368d19(0x2dc)](_0x368d19(0x109)+PARENT_SEGMENT_DIR+_0x368d19(0x126))),console[_0x368d19(0x306)](a31_0x12b51f[_0x368d19(0x137)](_0x368d19(0x28b))),0x1;const _0x148fdb=_0x16906c[_0x368d19(0x29c)]||a31_0x1da727['join'](PARENT_SEGMENT_DIR,sanitizeFileName(_0x3f6406)+_0x368d19(0x1fd));_0x16906c[_0x368d19(0x282)]&&(console[_0x368d19(0x306)](_0x368d19(0x31b)+_0x16906c[_0x368d19(0x1c2)]),console['error']('Parent\x20segment:\x20'+_0x3f6406),console[_0x368d19(0x306)](_0x368d19(0x24f)+_0x148fdb));const _0x15f294=await withSpinner(_0x368d19(0x2a2)+_0x3f6406+'\x27...',()=>_0x59de2[_0x368d19(0x14c)]['pullParentYaml'](_0x3f6406),{'verbose':_0x16906c['verbose']}),_0x5c1fc1=_0x15f294[_0x368d19(0x2a4)];if(existsSync(_0x148fdb)){const _0x1db1fe=readFileSync(_0x148fdb,_0x368d19(0x1aa)),_0x1e2919=generateDiff(_0x1db1fe,_0x5c1fc1);if(!hasChanges(_0x1e2919))console[_0x368d19(0x306)](a31_0x12b51f[_0x368d19(0x2db)]('✔')+_0x368d19(0x22e)+a31_0x12b51f['cyan'](_0x148fdb)+'\x20is\x20already\x20up\x20to\x20date');else{console[_0x368d19(0x306)]('\x0aChanges\x20to\x20\x27'+_0x148fdb+'\x27:'),console['error']('─'['repeat'](0x3c)),console[_0x368d19(0x306)](formatDiffWithColors(_0x1e2919)),console[_0x368d19(0x306)]('─'[_0x368d19(0x112)](0x3c));if(!_0x16906c['yes']){if(!isInteractive())return console[_0x368d19(0x306)](a31_0x12b51f[_0x368d19(0x315)](_0x368d19(0x312)),_0x368d19(0x11e)),console[_0x368d19(0x306)](a31_0x12b51f[_0x368d19(0x2dc)]('Use\x20-y\x20or\x20--yes\x20flag\x20to\x20apply\x20changes\x20without\x20confirmation')),0x1;const _0x3d9e73=await confirmKey(_0x368d19(0x221)+_0x148fdb+'\x27?');if(!_0x3d9e73)return console[_0x368d19(0x306)](a31_0x12b51f[_0x368d19(0x215)]('Aborted.')),0x1;}writeFileSync(_0x148fdb,_0x5c1fc1,_0x368d19(0x1aa)),console['error'](a31_0x12b51f[_0x368d19(0x2db)]('✔')+_0x368d19(0x12a)+a31_0x12b51f['cyan'](_0x148fdb));}}else{const _0x51c514=a31_0x1da727[_0x368d19(0x2b0)](_0x148fdb);!existsSync(_0x51c514)&&mkdirSync(_0x51c514,{'recursive':!![]}),writeFileSync(_0x148fdb,_0x5c1fc1,_0x368d19(0x1aa)),console[_0x368d19(0x306)](a31_0x12b51f['green']('✔')+'\x20Saved\x20parent\x20segment\x20configuration\x20to\x20'+a31_0x12b51f[_0x368d19(0x137)](_0x148fdb));}return saveSessionContext({'parent_segment':_0x3f6406},_0x16906c['session']),console[_0x368d19(0x306)](a31_0x12b51f[_0x368d19(0x2db)]('✔')+'\x20Context\x20set:\x20'+a31_0x12b51f['dim'](_0x368d19(0x2c2))+_0x368d19(0x1f4)+a31_0x12b51f['cyan'](_0x3f6406)),0x0;}}export class ParentSegmentPushCommand extends BaseParentSegmentCommand{[a31_0x4797a6(0x15c)]='segment:parent:push';[a31_0x4797a6(0x2eb)]=a31_0x4797a6(0x281);async[a31_0x4797a6(0x152)](_0x34cf57){const _0x5c4e95=a31_0x4797a6,{options:_0x54e236,args:_0x503c4c,tdx:_0x33316f}=_0x34cf57,_0x4059a5=_0x54e236,_0x10440c=_0x503c4c[0x0]||_0x54e236[_0x5c4e95(0x13d)];if(!_0x10440c)return showParentSegmentNotSetError('Usage:\x20tdx\x20ps\x20push\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Push\x20(requires\x20context)\x0a'+'\x20\x20\x20\x20\x20\x20\x20tdx\x20ps\x20push\x20<name>\x20\x20\x20\x20\x20\x20\x20#\x20Push\x20specific\x20parent\x20segment'),0x1;const _0x270266=resolveYamlFile(_0x10440c);if(!existsSync(_0x270266))return showFileNotFoundError(_0x270266,_0x10440c),0x1;_0x4059a5['verbose']&&(console[_0x5c4e95(0x306)](_0x5c4e95(0x31b)+_0x4059a5[_0x5c4e95(0x1c2)]),console[_0x5c4e95(0x306)](_0x5c4e95(0x212)+_0x270266));let _0x323a30;try{_0x323a30=readFileSync(_0x270266,_0x5c4e95(0x1aa));}catch(_0x3924b4){const _0x1123d4=_0x3924b4 instanceof Error?_0x3924b4['message']:String(_0x3924b4);return console[_0x5c4e95(0x306)](_0x5c4e95(0x251)+_0x1123d4),0x1;}const _0x51d3a5=await withSpinner(_0x5c4e95(0x1d1),()=>_0x33316f[_0x5c4e95(0x14c)]['pushParentYaml'](_0x323a30),{'verbose':_0x4059a5['verbose']}),_0x4b838a=_0x51d3a5['data'],{isNew:_0x2ecf4a,name:_0x16f6bc,hasChanges:_0xc921a8,diffFormatted:_0x96beb1}=_0x4b838a;if(!_0xc921a8)return console[_0x5c4e95(0x306)](_0x5c4e95(0x249)+_0x16f6bc+_0x5c4e95(0x1d2)),0x0;_0x2ecf4a?console['error'](_0x5c4e95(0x29a)+_0x16f6bc+'\x27:'):console['error'](_0x5c4e95(0x116)+_0x16f6bc+'\x27:');console[_0x5c4e95(0x306)]('─'[_0x5c4e95(0x112)](0x3c)),console['error'](_0x96beb1),console[_0x5c4e95(0x306)]('─'['repeat'](0x3c));const _0x2e8fce=_0x2ecf4a?_0x5c4e95(0x170)+_0x16f6bc+'\x27?':_0x5c4e95(0x11a)+_0x16f6bc+'\x27?';if(!_0x4059a5['yes']){if(!isInteractive())return console['error'](a31_0x12b51f[_0x5c4e95(0x315)](_0x5c4e95(0x312)),_0x5c4e95(0x11e)),console[_0x5c4e95(0x306)](a31_0x12b51f[_0x5c4e95(0x2dc)]('Use\x20-y\x20or\x20--yes\x20flag\x20to\x20apply\x20changes\x20without\x20confirmation')),0x1;const _0x56167c=await confirmKey(_0x2e8fce);if(!_0x56167c)return console['error'](a31_0x12b51f[_0x5c4e95(0x215)](_0x5c4e95(0x1a6))),0x1;}const _0x5b3252=_0x2ecf4a?_0x5c4e95(0x1d7):_0x5c4e95(0x18d),_0x4ad4f8=await withSpinner(_0x5b3252+_0x5c4e95(0x1c1)+_0x16f6bc+_0x5c4e95(0x131),()=>_0x4b838a[_0x5c4e95(0x30b)](),{'verbose':_0x4059a5[_0x5c4e95(0x282)]}),_0x3e1d62=_0x4ad4f8[_0x5c4e95(0x2a4)],_0x53d495=getConsoleNextUrl(_0x4059a5[_0x5c4e95(0x1c2)],_0x5c4e95(0x180)+_0x3e1d62['id']),_0xee4d96=_0x2ecf4a?_0x5c4e95(0x202):_0x5c4e95(0x30f);return console[_0x5c4e95(0x306)]('✔\x20'+_0xee4d96+'\x20parent\x20segment\x20\x27'+_0x3e1d62['name']+'\x27'),console['error']('\x20\x20'+_0x53d495),0x0;}}export class ParentSegmentValidateCommand extends BaseParentSegmentCommand{['name']=a31_0x4797a6(0x1f0);[a31_0x4797a6(0x2eb)]=a31_0x4797a6(0x10a);async['execute'](_0x29b24a){const _0x10372f=a31_0x4797a6,{options:_0xfb5975,args:_0x29093f,tdx:_0x495354}=_0x29b24a,_0x16839c=_0xfb5975,_0x5040e2=_0x29093f[0x0]||_0xfb5975['parentSegment'];if(!_0x5040e2)return showParentSegmentNotSetError(_0x10372f(0x1d8)+'\x20\x20\x20\x20\x20\x20\x20tdx\x20ps\x20validate\x20<name>\x20\x20\x20\x20\x20\x20\x20#\x20Validate\x20specific\x20parent\x20segment\x0a\x0a'+_0x10372f(0x211)+_0x10372f(0x222)+_0x10372f(0x2fb)+_0x10372f(0x175)),0x1;const _0x422556=resolveYamlFile(_0x5040e2);if(!existsSync(_0x422556))return showFileNotFoundError(_0x422556,_0x5040e2),0x1;_0x16839c[_0x10372f(0x282)]&&(console[_0x10372f(0x306)]('Site:\x20'+_0x16839c[_0x10372f(0x1c2)]),console['error'](_0x10372f(0x212)+_0x422556));let _0x30ae3d;try{_0x30ae3d=readFileSync(_0x422556,_0x10372f(0x1aa));}catch(_0x13857d){const _0x52fe2c=_0x13857d instanceof Error?_0x13857d[_0x10372f(0x182)]:String(_0x13857d);return console[_0x10372f(0x306)](_0x10372f(0x251)+_0x52fe2c),0x1;}const _0x3af96e=createCommandSpinner(a31_0x12b51f[_0x10372f(0x2dc)](_0x10372f(0x2ca)),{'verbose':_0x16839c['verbose']});_0x3af96e[_0x10372f(0x151)]();const _0x4076ab={'onProgress':_0x66a7e8=>{const _0x43da5d=_0x10372f;_0x3af96e[_0x43da5d(0x159)]=formatProgressMessage(_0x66a7e8);}};if(_0x16839c['master'])_0x4076ab[_0x10372f(0x2fe)]=!![];if(_0x16839c[_0x10372f(0x117)])_0x4076ab[_0x10372f(0x117)]=!![];_0x16839c['attribute']&&(_0x4076ab[_0x10372f(0x27a)]=_0x16839c['attribute']);_0x16839c[_0x10372f(0x1ba)]&&(_0x4076ab[_0x10372f(0x1ba)]=_0x16839c[_0x10372f(0x1ba)]);if(_0x16839c[_0x10372f(0x24d)])_0x4076ab[_0x10372f(0x24d)]=_0x16839c['interval'];let _0x44ef79;try{_0x44ef79=await _0x495354[_0x10372f(0x14c)][_0x10372f(0x218)](_0x30ae3d,_0x4076ab),_0x3af96e['stop']();}catch(_0xc61418){_0x3af96e[_0x10372f(0x2bc)]();throw _0xc61418;}const _0x3dfbfe=_0x16839c[_0x10372f(0x24d)]||_0x10372f(0x163);return this['displayValidateResults'](_0x44ef79,_0x4076ab,_0x422556,_0x3dfbfe),_0x44ef79[_0x10372f(0x191)]?0x0:0x1;}[a31_0x4797a6(0x17d)](_0x11f45b,_0x260161,_0x4f9146,_0xcb4b30){const _0x5c08ab=a31_0x4797a6;console[_0x5c08ab(0x306)]('\x0a'+a31_0x12b51f[_0x5c08ab(0x287)](_0x5c08ab(0x269))+'\x20'+_0x11f45b[_0x5c08ab(0x15c)]),console[_0x5c08ab(0x306)]('═'[_0x5c08ab(0x112)](0x3c)),this[_0x5c08ab(0x273)](_0x11f45b);if(typeof _0x260161['attribute']==='string'){this[_0x5c08ab(0x194)](_0x11f45b),this[_0x5c08ab(0x1a1)](_0x11f45b),this[_0x5c08ab(0x243)](_0x4f9146,_0xcb4b30,_0x5c08ab(0x27a),_0x260161['attribute']);return;}if(_0x260161[_0x5c08ab(0x27a)]===!![]){this[_0x5c08ab(0x194)](_0x11f45b),this[_0x5c08ab(0x1a1)](_0x11f45b),this[_0x5c08ab(0x243)](_0x4f9146,_0xcb4b30,_0x5c08ab(0x2b7));return;}if(typeof _0x260161[_0x5c08ab(0x1ba)]===_0x5c08ab(0x12d)){this[_0x5c08ab(0x1f5)](_0x11f45b,_0xcb4b30),this[_0x5c08ab(0x1a1)](_0x11f45b),this[_0x5c08ab(0x243)](_0x4f9146,_0xcb4b30,_0x5c08ab(0x1ba),_0x260161[_0x5c08ab(0x1ba)]);return;}if(_0x260161[_0x5c08ab(0x1ba)]===!![]){this[_0x5c08ab(0x1f5)](_0x11f45b,_0xcb4b30),this[_0x5c08ab(0x1a1)](_0x11f45b),this[_0x5c08ab(0x243)](_0x4f9146,_0xcb4b30,_0x5c08ab(0x275));return;}this[_0x5c08ab(0x194)](_0x11f45b),this['displayBehaviorsStats'](_0x11f45b,_0xcb4b30),this[_0x5c08ab(0x172)](_0x11f45b),this[_0x5c08ab(0x1a1)](_0x11f45b),this['displayPreviewHints'](_0x4f9146,_0xcb4b30,_0x5c08ab(0x195));}[a31_0x4797a6(0x172)](_0x533b14){displayRealtimeValidation(_0x533b14);}[a31_0x4797a6(0x243)](_0x1301d6,_0x11615f,_0x46f9e2,_0x468c1e){const _0x3a8207=a31_0x4797a6;console['error']('\x0a'+a31_0x12b51f['dim']('To\x20view\x20sample\x20data:'));const _0x47b145=_0x11615f!==_0x3a8207(0x163)?_0x3a8207(0x29e)+_0x11615f:'';if(_0x46f9e2===_0x3a8207(0x27a)&&_0x468c1e)console[_0x3a8207(0x306)]('\x20\x20'+a31_0x12b51f['dim'](_0x3a8207(0x266)+_0x1301d6+_0x3a8207(0x2f0)+_0x468c1e+'\x22'+_0x47b145));else{if(_0x46f9e2==='behavior'&&_0x468c1e)console[_0x3a8207(0x306)]('\x20\x20'+a31_0x12b51f['dim']('tdx\x20ps\x20preview\x20'+_0x1301d6+_0x3a8207(0x210)+_0x468c1e+'\x22'+_0x47b145));else(_0x46f9e2===_0x3a8207(0x2b7)||_0x46f9e2===_0x3a8207(0x195))&&console[_0x3a8207(0x306)]('\x20\x20'+a31_0x12b51f[_0x3a8207(0x2dc)](_0x3a8207(0x266)+_0x1301d6+'\x20--attribute\x20\x22<name>\x22'+_0x47b145));}(_0x46f9e2===_0x3a8207(0x275)||_0x46f9e2==='all')&&console[_0x3a8207(0x306)]('\x20\x20'+a31_0x12b51f['dim'](_0x3a8207(0x266)+_0x1301d6+_0x3a8207(0x27f)+_0x47b145)),_0x46f9e2==='all'&&console['error']('\x20\x20'+a31_0x12b51f[_0x3a8207(0x2dc)]('tdx\x20ps\x20preview\x20'+_0x1301d6+_0x3a8207(0x25a)+_0x47b145));}[a31_0x4797a6(0x273)](_0x576f57){const _0x26507a=a31_0x4797a6,{master:_0xf53af0}=_0x576f57,_0x114660=_0xf53af0[_0x26507a(0x2f3)]?a31_0x12b51f[_0x26507a(0x2db)]('✔'):a31_0x12b51f[_0x26507a(0x315)]('✘');console['error']('\x0a'+a31_0x12b51f[_0x26507a(0x2dc)](_0x26507a(0x165))),console[_0x26507a(0x306)](_0x114660+'\x20'+a31_0x12b51f[_0x26507a(0x287)](_0xf53af0[_0x26507a(0x247)]+'.'+_0xf53af0[_0x26507a(0x262)])),_0xf53af0[_0x26507a(0x2f3)]?_0xf53af0[_0x26507a(0x20a)]!==undefined&&console[_0x26507a(0x306)]('\x20\x20'+a31_0x12b51f[_0x26507a(0x2dc)]('Rows:')+'\x20'+a31_0x12b51f[_0x26507a(0x137)](formatRows(_0xf53af0[_0x26507a(0x20a)]))):console['error']('\x20\x20'+a31_0x12b51f['red'](_0x26507a(0x2a7))+'\x20'+_0xf53af0[_0x26507a(0x110)]);}[a31_0x4797a6(0x194)](_0x56069b){const _0x37fe3f=a31_0x4797a6;if(_0x56069b['attributes'][_0x37fe3f(0x16c)]===0x0)return;console[_0x37fe3f(0x306)]('\x0a'+a31_0x12b51f[_0x37fe3f(0x2dc)](_0x37fe3f(0x21f)));for(const _0x530c80 of _0x56069b['attributes']){const _0x1ea174=_0x530c80[_0x37fe3f(0x2f3)]?a31_0x12b51f['green']('✔'):a31_0x12b51f[_0x37fe3f(0x315)]('✘');let _0x3e3ba4='';if(_0x530c80[_0x37fe3f(0x2f3)]&&_0x530c80['matchedCount']!==undefined&&_0x530c80[_0x37fe3f(0x1e5)]!==undefined){const _0x1ffa9f=_0x530c80[_0x37fe3f(0x1e5)][_0x37fe3f(0x231)](0x1),_0x12538d=_0x530c80[_0x37fe3f(0x1e5)]>=0x50?a31_0x12b51f[_0x37fe3f(0x2db)]:_0x530c80['coveragePercent']>=0x32?a31_0x12b51f[_0x37fe3f(0x215)]:a31_0x12b51f[_0x37fe3f(0x315)];_0x3e3ba4='\x20'+a31_0x12b51f[_0x37fe3f(0x2dc)](_0x37fe3f(0x11d))+'\x20'+_0x12538d(_0x1ffa9f+'%')+'\x20('+formatRows(_0x530c80[_0x37fe3f(0x288)])+_0x37fe3f(0x2d8);}console[_0x37fe3f(0x306)](_0x1ea174+'\x20'+a31_0x12b51f[_0x37fe3f(0x287)](_0x530c80[_0x37fe3f(0x15c)])+_0x3e3ba4),console[_0x37fe3f(0x306)]('\x20\x20'+a31_0x12b51f[_0x37fe3f(0x2dc)](_0x37fe3f(0x12b))+'\x20'+a31_0x12b51f[_0x37fe3f(0x287)](_0x530c80[_0x37fe3f(0x247)]+'.'+_0x530c80['table']));const _0x5d50d3=_0x530c80['joinKey']===_0x530c80[_0x37fe3f(0x1ce)]?a31_0x12b51f[_0x37fe3f(0x2dc)]('Join\x20on:')+'\x20'+_0x530c80[_0x37fe3f(0x16b)]:a31_0x12b51f['dim'](_0x37fe3f(0x254))+'\x20'+_0x530c80[_0x37fe3f(0x16b)]+_0x37fe3f(0x1f4)+_0x530c80[_0x37fe3f(0x1ce)];console[_0x37fe3f(0x306)]('\x20\x20'+_0x5d50d3),console[_0x37fe3f(0x306)]('\x20\x20'+a31_0x12b51f[_0x37fe3f(0x2dc)]('Columns:')),this[_0x37fe3f(0x141)](_0x530c80[_0x37fe3f(0x207)]),!_0x530c80[_0x37fe3f(0x2f3)]&&console[_0x37fe3f(0x306)]('\x20\x20'+a31_0x12b51f[_0x37fe3f(0x315)](_0x37fe3f(0x2a7))+'\x20'+_0x530c80[_0x37fe3f(0x110)]);}}[a31_0x4797a6(0x1f5)](_0x403cb9,_0x581b3f){const _0x4f9a5b=a31_0x4797a6;if(_0x403cb9[_0x4f9a5b(0x275)][_0x4f9a5b(0x16c)]===0x0)return;console['error']('\x0a'+a31_0x12b51f[_0x4f9a5b(0x2dc)](_0x4f9a5b(0x2ea))+'\x20'+a31_0x12b51f[_0x4f9a5b(0x2dc)]('('+_0x581b3f+')'));for(const _0x4ed74b of _0x403cb9['behaviors']){const _0x2e9a98=_0x4ed74b[_0x4f9a5b(0x2f3)]?a31_0x12b51f[_0x4f9a5b(0x2db)]('✔'):a31_0x12b51f[_0x4f9a5b(0x315)]('✘');let _0x24bf92='';if(_0x4ed74b[_0x4f9a5b(0x2f3)]&&_0x4ed74b[_0x4f9a5b(0x130)]!==undefined&&_0x4ed74b[_0x4f9a5b(0x2fd)]!==undefined){const _0x5559c8=_0x4ed74b[_0x4f9a5b(0x2a5)]?.['toFixed'](0x1)||'?',_0x5eefa2=(_0x4ed74b['customerPercent']??0x0)>=0x32?a31_0x12b51f['green']:(_0x4ed74b[_0x4f9a5b(0x2a5)]??0x0)>=0x14?a31_0x12b51f[_0x4f9a5b(0x215)]:a31_0x12b51f[_0x4f9a5b(0x315)];_0x24bf92='\x20'+a31_0x12b51f[_0x4f9a5b(0x2dc)](_0x4f9a5b(0x30a))+'\x20'+_0x5eefa2(formatRows(_0x4ed74b['customersWithEvents']))+'\x20('+_0x5559c8+_0x4f9a5b(0x238)+a31_0x12b51f[_0x4f9a5b(0x2dc)](_0x4f9a5b(0x237))+'\x20'+a31_0x12b51f['cyan'](formatRows(_0x4ed74b[_0x4f9a5b(0x2fd)]));}console[_0x4f9a5b(0x306)](_0x2e9a98+'\x20'+a31_0x12b51f[_0x4f9a5b(0x287)](_0x4ed74b['name'])+_0x24bf92),console[_0x4f9a5b(0x306)]('\x20\x20'+a31_0x12b51f[_0x4f9a5b(0x2dc)](_0x4f9a5b(0x12b))+'\x20'+a31_0x12b51f[_0x4f9a5b(0x287)](_0x4ed74b['database']+'.'+_0x4ed74b[_0x4f9a5b(0x262)]));const _0x119e8e=_0x4ed74b[_0x4f9a5b(0x16b)]===_0x4ed74b[_0x4f9a5b(0x1ce)]?a31_0x12b51f[_0x4f9a5b(0x2dc)](_0x4f9a5b(0x1e9))+'\x20'+_0x4ed74b[_0x4f9a5b(0x16b)]:a31_0x12b51f[_0x4f9a5b(0x2dc)]('Join:')+'\x20'+_0x4ed74b[_0x4f9a5b(0x16b)]+_0x4f9a5b(0x1f4)+_0x4ed74b[_0x4f9a5b(0x1ce)];console[_0x4f9a5b(0x306)]('\x20\x20'+_0x119e8e),console[_0x4f9a5b(0x306)]('\x20\x20'+a31_0x12b51f[_0x4f9a5b(0x2dc)]('Columns:')),this[_0x4f9a5b(0x141)](_0x4ed74b[_0x4f9a5b(0x207)]),!_0x4ed74b[_0x4f9a5b(0x2f3)]&&console[_0x4f9a5b(0x306)]('\x20\x20'+a31_0x12b51f[_0x4f9a5b(0x315)](_0x4f9a5b(0x2a7))+'\x20'+_0x4ed74b[_0x4f9a5b(0x110)]);}}[a31_0x4797a6(0x141)](_0x49339f){const _0x934d96=a31_0x4797a6;for(const _0x4cea6c of _0x49339f){_0x4cea6c[_0x934d96(0x115)]===_0x4cea6c[_0x934d96(0x206)]||_0x4cea6c[_0x934d96(0x206)]==='*'?console[_0x934d96(0x306)](_0x934d96(0x24a)+_0x4cea6c[_0x934d96(0x115)]):console[_0x934d96(0x306)](_0x934d96(0x24a)+_0x4cea6c[_0x934d96(0x115)]+'\x20'+a31_0x12b51f[_0x934d96(0x2dc)]('('+_0x4cea6c[_0x934d96(0x206)]+')'));}}[a31_0x4797a6(0x1a1)](_0x169281){const _0x456338=a31_0x4797a6;console[_0x456338(0x306)]('─'['repeat'](0x3c));if(_0x169281[_0x456338(0x128)][_0x456338(0x16c)]>0x0){console[_0x456338(0x306)]('\x0a'+a31_0x12b51f['red'](_0x456338(0x1b7)));for(const _0x39caa0 of _0x169281[_0x456338(0x128)]){console[_0x456338(0x306)]('\x20\x20'+a31_0x12b51f[_0x456338(0x315)]('•')+'\x20'+_0x39caa0);}}_0x169281[_0x456338(0x191)]&&console[_0x456338(0x306)]('\x0a'+a31_0x12b51f[_0x456338(0x2db)]('✔')+_0x456338(0x303));}}export class ParentSegmentPreviewCommand extends BaseParentSegmentCommand{['name']=a31_0x4797a6(0x1d4);['description']='Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration';async[a31_0x4797a6(0x152)](_0xff2537){const _0x488f83=a31_0x4797a6,{options:_0x1ea913,args:_0x5818b5,tdx:_0x462f82}=_0xff2537,_0x3a88da=_0x1ea913,_0x522da6=_0x5818b5[0x0]||_0x1ea913[_0x488f83(0x13d)];if(!_0x522da6)return showParentSegmentNotSetError(_0x488f83(0x2e4)+_0x488f83(0x253)+_0x488f83(0x1a4)+_0x488f83(0x2d5)+'\x20\x20--attribute\x20<name>\x20\x20\x20Show\x20sample\x20data\x20for\x20specific\x20attribute\x0a'+_0x488f83(0x1fe)+'\x20\x20--enriched\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20sample\x20enriched\x20master\x20data\x0a'+_0x488f83(0x175)),0x1;if(!_0x3a88da[_0x488f83(0x2fe)]&&!_0x3a88da[_0x488f83(0x27a)]&&!_0x3a88da[_0x488f83(0x1ba)]&&!_0x3a88da['enriched'])return console[_0x488f83(0x306)](a31_0x12b51f[_0x488f83(0x315)]('Error:\x20At\x20least\x20one\x20preview\x20option\x20required\x0a')),console[_0x488f83(0x306)]('Usage:\x20tdx\x20parent-segment\x20preview\x20<name>\x20<option>\x0a'),console[_0x488f83(0x306)](_0x488f83(0x267)),console[_0x488f83(0x306)]('\x20\x20--master\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20sample\x20master\x20table\x20data'),console[_0x488f83(0x306)](_0x488f83(0x2f5)),console[_0x488f83(0x306)](_0x488f83(0x242)),console[_0x488f83(0x306)](_0x488f83(0x1f6)),0x1;const _0x214bf9=resolveYamlFile(_0x522da6);if(!existsSync(_0x214bf9))return showFileNotFoundError(_0x214bf9,_0x522da6),0x1;_0x3a88da[_0x488f83(0x282)]&&(console['error'](_0x488f83(0x31b)+_0x3a88da[_0x488f83(0x1c2)]),console[_0x488f83(0x306)](_0x488f83(0x212)+_0x214bf9));let _0x21a94b;try{_0x21a94b=readFileSync(_0x214bf9,_0x488f83(0x1aa));}catch(_0x33b905){const _0x5bbe58=_0x33b905 instanceof Error?_0x33b905[_0x488f83(0x182)]:String(_0x33b905);return console[_0x488f83(0x306)](_0x488f83(0x251)+_0x5bbe58),0x1;}let _0x5ae5a0;try{_0x5ae5a0=parseDef(_0x21a94b);}catch(_0x3c75f2){const _0x58a06b=_0x3c75f2 instanceof Error?_0x3c75f2[_0x488f83(0x182)]:String(_0x3c75f2);return console[_0x488f83(0x306)](a31_0x12b51f['red'](_0x488f83(0x15a)+_0x58a06b)),0x1;}if(_0x3a88da[_0x488f83(0x27a)]===!![]||_0x3a88da[_0x488f83(0x27a)]===''){const _0x44c888=_0x5ae5a0[_0x488f83(0x2b7)]?.[_0x488f83(0x1d5)](_0xbe44de=>_0xbe44de['name'])||[];if(_0x44c888[_0x488f83(0x16c)]===0x0)console['error'](a31_0x12b51f[_0x488f83(0x315)](_0x488f83(0x153)));else{console[_0x488f83(0x306)](a31_0x12b51f[_0x488f83(0x315)](_0x488f83(0x2cd))),console[_0x488f83(0x306)](_0x488f83(0x2e6));for(const _0x1bd139 of _0x44c888){console['error']('\x20\x20'+a31_0x12b51f[_0x488f83(0x137)](_0x1bd139));}console[_0x488f83(0x306)](_0x488f83(0x18f)+_0x522da6+'\x20--attribute\x20\x22'+_0x44c888[0x0]+'\x22');}return 0x1;}if(_0x3a88da[_0x488f83(0x1ba)]===!![]||_0x3a88da[_0x488f83(0x1ba)]===''){const _0x5bee87=_0x5ae5a0[_0x488f83(0x275)]?.[_0x488f83(0x1d5)](_0x5f4b6c=>_0x5f4b6c['name'])||[];if(_0x5bee87[_0x488f83(0x16c)]===0x0)console[_0x488f83(0x306)](a31_0x12b51f[_0x488f83(0x315)](_0x488f83(0x12e)));else{console[_0x488f83(0x306)](a31_0x12b51f[_0x488f83(0x315)](_0x488f83(0x1b5))),console[_0x488f83(0x306)](_0x488f83(0x2de));for(const _0xba992e of _0x5bee87){console[_0x488f83(0x306)]('\x20\x20'+a31_0x12b51f[_0x488f83(0x137)](_0xba992e));}console[_0x488f83(0x306)]('\x0aUsage:\x20tdx\x20ps\x20preview\x20'+_0x522da6+_0x488f83(0x210)+_0x5bee87[0x0]+'\x22');}return 0x1;}const _0xfd826f=createCommandSpinner(a31_0x12b51f[_0x488f83(0x2dc)](_0x488f83(0x1df)),{'verbose':_0x3a88da['verbose']});_0xfd826f['start']();const _0x5e706b={'onProgress':_0x113a74=>{const _0x1a87a7=_0x488f83;_0xfd826f[_0x1a87a7(0x159)]=formatProgressMessage(_0x113a74);}};if(_0x3a88da[_0x488f83(0x2fe)])_0x5e706b[_0x488f83(0x2fe)]=!![];if(_0x3a88da[_0x488f83(0x27a)]&&typeof _0x3a88da[_0x488f83(0x27a)]===_0x488f83(0x12d))_0x5e706b[_0x488f83(0x27a)]=_0x3a88da[_0x488f83(0x27a)];if(_0x3a88da['behavior']&&typeof _0x3a88da[_0x488f83(0x1ba)]===_0x488f83(0x12d))_0x5e706b[_0x488f83(0x1ba)]=_0x3a88da['behavior'];if(_0x3a88da[_0x488f83(0x117)])_0x5e706b['enriched']=!![];if(_0x3a88da['interval'])_0x5e706b[_0x488f83(0x24d)]=_0x3a88da[_0x488f83(0x24d)];let _0x2da5c6;try{_0x2da5c6=await _0x462f82['segment'][_0x488f83(0x2d6)](_0x21a94b,_0x5e706b),_0xfd826f[_0x488f83(0x2bc)]();}catch(_0x2ccd60){_0xfd826f['stop']();throw _0x2ccd60;}return await this['displayPreviewResults'](_0x2da5c6,{'master':_0x3a88da[_0x488f83(0x2fe)],'attribute':typeof _0x3a88da[_0x488f83(0x27a)]===_0x488f83(0x12d)?_0x3a88da['attribute']:undefined,'behavior':typeof _0x3a88da[_0x488f83(0x1ba)]===_0x488f83(0x12d)?_0x3a88da[_0x488f83(0x1ba)]:undefined,'enriched':_0x3a88da[_0x488f83(0x117)]}),_0x2da5c6[_0x488f83(0x191)]?0x0:0x1;}async[a31_0x4797a6(0x119)](_0x476258,_0x496b1d){const _0x1c66df=a31_0x4797a6;console['error']('\x0a'+a31_0x12b51f[_0x1c66df(0x287)](_0x1c66df(0x1e2))+'\x20'+_0x476258[_0x1c66df(0x15c)]),console[_0x1c66df(0x306)]('═'[_0x1c66df(0x112)](0x3c));if(_0x496b1d[_0x1c66df(0x2fe)]&&_0x476258[_0x1c66df(0x25f)]){const _0x21d2ac=a31_0x12b51f['dim']('Master:')+'\x20'+a31_0x12b51f[_0x1c66df(0x287)](_0x476258[_0x1c66df(0x2fe)][_0x1c66df(0x247)]+'.'+_0x476258[_0x1c66df(0x2fe)]['table']);await this[_0x1c66df(0x2a6)](_0x21d2ac,_0x476258[_0x1c66df(0x25f)]);}else{if(_0x496b1d[_0x1c66df(0x27a)]&&_0x476258['sampleData']){const _0x47cfdd=a31_0x12b51f[_0x1c66df(0x2dc)]('Attribute:')+'\x20'+a31_0x12b51f['bold'](_0x496b1d[_0x1c66df(0x27a)]);await this[_0x1c66df(0x2a6)](_0x47cfdd,_0x476258[_0x1c66df(0x25f)]);}else{if(_0x496b1d[_0x1c66df(0x1ba)]&&_0x476258[_0x1c66df(0x25f)]){const _0x547e0f=a31_0x12b51f[_0x1c66df(0x2dc)]('Behavior:')+'\x20'+a31_0x12b51f[_0x1c66df(0x287)](_0x496b1d[_0x1c66df(0x1ba)]);await this[_0x1c66df(0x2a6)](_0x547e0f,_0x476258[_0x1c66df(0x25f)]);}else{if(_0x496b1d['enriched']&&_0x476258[_0x1c66df(0x25f)]){const _0x1449f2=a31_0x12b51f[_0x1c66df(0x2dc)]('Enriched:')+'\x20'+a31_0x12b51f['bold'](_0x1c66df(0x1e0));await this[_0x1c66df(0x2a6)](_0x1449f2,_0x476258[_0x1c66df(0x25f)]);}else!_0x476258[_0x1c66df(0x25f)]&&console['error'](_0x1c66df(0x2ac));}}}if(_0x476258[_0x1c66df(0x128)][_0x1c66df(0x16c)]>0x0){console['error']('─'[_0x1c66df(0x112)](0x3c)),console[_0x1c66df(0x306)]('\x0a'+a31_0x12b51f[_0x1c66df(0x315)](_0x1c66df(0x1b7)));for(const _0x5267f8 of _0x476258[_0x1c66df(0x128)]){console[_0x1c66df(0x306)]('\x20\x20'+a31_0x12b51f[_0x1c66df(0x315)]('•')+'\x20'+_0x5267f8);}}}async['displaySampleData'](_0x5c8376,_0xfd7a6c){const _0x13430b=a31_0x4797a6;if(_0xfd7a6c[_0x13430b(0x16c)]===0x0){console[_0x13430b(0x306)]('\x0a'+_0x5c8376),console[_0x13430b(0x306)](_0x13430b(0x23b));return;}console[_0x13430b(0x306)]('\x0a'+_0x5c8376);const _0x1e6c93=Object['keys'](_0xfd7a6c[0x0])[_0x13430b(0x1d5)](_0x5089c7=>({'name':_0x5089c7,'type':typeof _0xfd7a6c[0x0][_0x5089c7]===_0x13430b(0x2a1)?_0x13430b(0x263):_0x13430b(0x173)})),_0x14a9f1={'queryId':_0x13430b(0x13a),'columns':_0x1e6c93,'data':_0xfd7a6c,'stats':{'state':_0x13430b(0x272),'queued':![],'scheduled':![],'nodes':0x0,'totalSplits':0x0,'queuedSplits':0x0,'runningSplits':0x0,'completedSplits':0x0,'cpuTimeMillis':0x0,'wallTimeMillis':0x0,'queuedTimeMillis':0x0,'elapsedTimeMillis':0x0,'processedRows':_0xfd7a6c[_0x13430b(0x16c)],'processedBytes':0x0,'physicalInputBytes':0x0,'peakMemoryBytes':0x0,'spilledBytes':0x0}},_0x30ba2b=formatAsTable(_0x14a9f1,_0xfd7a6c[_0x13430b(0x16c)],!![]);await writeOutput(_0x30ba2b,undefined,_0x13430b(0x262));}}export class ParentSegmentRunCommand extends BaseParentSegmentCommand{[a31_0x4797a6(0x15c)]=a31_0x4797a6(0x161);[a31_0x4797a6(0x2eb)]=a31_0x4797a6(0x132);async[a31_0x4797a6(0x152)](_0x45befe){const _0x46b09a=a31_0x4797a6,{options:_0x437dcc,args:_0x59042e,tdx:_0x361e04}=_0x45befe,_0x100c99=_0x437dcc,_0x1be823=_0x59042e[0x0]||_0x437dcc[_0x46b09a(0x13d)];if(!_0x1be823)return showParentSegmentNotSetError('Usage:\x20tdx\x20ps\x20run\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Run\x20(requires\x20context)\x0a'+'\x20\x20\x20\x20\x20\x20\x20tdx\x20ps\x20run\x20<name>\x20\x20\x20\x20\x20\x20\x20#\x20Run\x20specific\x20parent\x20segment'),0x1;const _0x58bdce=resolveYamlFile(_0x1be823);if(existsSync(_0x58bdce)){_0x100c99['verbose']&&console[_0x46b09a(0x306)](_0x46b09a(0x26d)+_0x58bdce);let _0x444015;try{_0x444015=readFileSync(_0x58bdce,_0x46b09a(0x1aa));}catch(_0x5470a6){const _0xf787b9=_0x5470a6 instanceof Error?_0x5470a6['message']:String(_0x5470a6);return console[_0x46b09a(0x306)](_0x46b09a(0x251)+_0xf787b9),0x1;}const _0x57f7d2=await withSpinner(_0x46b09a(0x1d1),()=>_0x361e04[_0x46b09a(0x14c)][_0x46b09a(0x2af)](_0x444015),{'verbose':_0x100c99[_0x46b09a(0x282)]}),_0x5119e4=_0x57f7d2['data'],{isNew:_0x4fc9bd,name:_0x2a2283,hasChanges:_0x338908,diffFormatted:_0x56f98e}=_0x5119e4;if(_0x338908){_0x4fc9bd?console[_0x46b09a(0x306)](_0x46b09a(0x29a)+_0x2a2283+'\x27:'):console['error']('\x0aChanges\x20to\x20apply\x20to\x20\x27'+_0x2a2283+'\x27:');console[_0x46b09a(0x306)]('─'[_0x46b09a(0x112)](0x3c)),console['error'](_0x56f98e),console[_0x46b09a(0x306)]('─'['repeat'](0x3c));const _0x2edacf=_0x4fc9bd?_0x46b09a(0x170)+_0x2a2283+'\x27\x20and\x20run\x20workflow?':_0x46b09a(0x11a)+_0x2a2283+_0x46b09a(0x298);if(!_0x100c99[_0x46b09a(0x1fc)]){if(!isInteractive())return console[_0x46b09a(0x306)](a31_0x12b51f['red'](_0x46b09a(0x312)),_0x46b09a(0x11e)),console[_0x46b09a(0x306)](a31_0x12b51f[_0x46b09a(0x2dc)](_0x46b09a(0x2c1))),0x1;const _0x301fbd=await confirmKey(_0x2edacf);if(!_0x301fbd)return console['error'](a31_0x12b51f[_0x46b09a(0x215)](_0x46b09a(0x1a6))),0x1;}const _0xf46ab9=_0x4fc9bd?_0x46b09a(0x1d7):_0x46b09a(0x18d);await withSpinner(_0xf46ab9+_0x46b09a(0x1c1)+_0x2a2283+_0x46b09a(0x131),()=>_0x5119e4['apply'](),{'verbose':_0x100c99['verbose']});const _0x3222b4=_0x4fc9bd?_0x46b09a(0x202):'Updated';console[_0x46b09a(0x306)]('✔\x20'+_0x3222b4+'\x20parent\x20segment\x20\x27'+_0x2a2283+'\x27');}else console['error'](_0x46b09a(0x249)+_0x2a2283+_0x46b09a(0x2d2));}const _0x144457=await withSpinner(_0x46b09a(0x30e)+_0x1be823+_0x46b09a(0x131),()=>_0x361e04[_0x46b09a(0x14c)][_0x46b09a(0x17a)](_0x1be823),{'verbose':_0x100c99[_0x46b09a(0x282)]}),_0x1977a0=_0x144457['data'],_0x1957d7=getConsoleUrl(_0x100c99['site'],'/app/workflows/'+_0x1977a0['workflowId']+_0x46b09a(0x26e)+_0x1977a0['workflowSessionId']+_0x46b09a(0x16e)+_0x1977a0[_0x46b09a(0x260)]);return console['error']('\x0a✔\x20Workflow\x20started'),console['error']('\x20\x20'+a31_0x12b51f[_0x46b09a(0x2dc)](_0x46b09a(0x2da))+'\x20'+_0x1977a0[_0x46b09a(0x108)]),console[_0x46b09a(0x306)]('\x20\x20'+a31_0x12b51f[_0x46b09a(0x2dc)](_0x46b09a(0x224))+'\x20'+_0x1977a0[_0x46b09a(0x301)]),console[_0x46b09a(0x306)]('\x20\x20'+a31_0x12b51f[_0x46b09a(0x2dc)](_0x46b09a(0x2c8))+'\x20'+_0x1977a0['workflowSessionId']),console['error']('\x20\x20'+a31_0x12b51f['dim'](_0x46b09a(0x1fb))+'\x20'+_0x1977a0[_0x46b09a(0x260)]),console['error']('\x20\x20'+_0x1957d7),console[_0x46b09a(0x306)]('\x0a'+a31_0x12b51f['dim'](_0x46b09a(0x22f))+'\x20tdx\x20wf\x20attempt\x20'+_0x1977a0[_0x46b09a(0x260)]+_0x46b09a(0x14e)),0x0;}}export class ParentSegmentFieldsCommand extends BaseCommand{[a31_0x4797a6(0x15c)]='segment:parent:fields';[a31_0x4797a6(0x2eb)]=a31_0x4797a6(0x245);async[a31_0x4797a6(0x152)](_0x4f6381){const _0x4883bc=a31_0x4797a6,{options:_0x5ec12f,args:_0x57a8cc,tdx:_0x443857}=_0x4f6381,_0x2586bd=_0x57a8cc[0x0]||_0x5ec12f[_0x4883bc(0x13d)];if(!_0x2586bd)return showParentSegmentNotSetError(_0x4883bc(0x302)+_0x4883bc(0x2e9)),0x1;_0x5ec12f[_0x4883bc(0x282)]&&(console['error'](_0x4883bc(0x31b)+_0x5ec12f[_0x4883bc(0x1c2)]),console[_0x4883bc(0x306)](_0x4883bc(0x1b3)+_0x2586bd));const _0x53399e=await withSpinner(_0x4883bc(0x314)+_0x2586bd+_0x4883bc(0x131),()=>_0x443857[_0x4883bc(0x14c)][_0x4883bc(0x229)](_0x2586bd),{'verbose':_0x5ec12f['verbose']}),_0x2f2234=_0x53399e['data'];console[_0x4883bc(0x306)]('✔\x20Found\x20'+_0x2f2234['length']+_0x4883bc(0x256)+(_0x2f2234[_0x4883bc(0x16c)]!==0x1?'s':''));if(_0x5ec12f[_0x4883bc(0x1bf)]||_0x5ec12f[_0x4883bc(0x1bc)])return await handleSDKOutput(_0x2f2234,_0x5ec12f),0x0;return displayFieldsHumanReadable(_0x2f2234,_0x2586bd),0x0;}}export class ParentSegmentViewCommand extends BaseCommand{[a31_0x4797a6(0x15c)]=a31_0x4797a6(0x2df);[a31_0x4797a6(0x2eb)]=a31_0x4797a6(0x2bf);async[a31_0x4797a6(0x152)](_0x26a438){const _0x1d2ec3=a31_0x4797a6,{options:_0x74393b,args:_0x227d88,tdx:_0x3de7cc}=_0x26a438,_0x2d9294=_0x74393b,_0x3b543d=_0x227d88[0x0]||_0x74393b[_0x1d2ec3(0x13d)];if(!_0x3b543d)return showParentSegmentNotSetError(_0x1d2ec3(0x158)+_0x1d2ec3(0x114)+_0x1d2ec3(0x211)+_0x1d2ec3(0x1dc)),0x1;_0x74393b[_0x1d2ec3(0x282)]&&(console[_0x1d2ec3(0x306)](_0x1d2ec3(0x31b)+_0x74393b['site']),console[_0x1d2ec3(0x306)](_0x1d2ec3(0x1b3)+_0x3b543d));const _0x7fc918=await withSpinner(_0x1d2ec3(0x2a2)+_0x3b543d+'\x27...',()=>_0x3de7cc[_0x1d2ec3(0x14c)][_0x1d2ec3(0x10d)](_0x3b543d),{'verbose':_0x74393b[_0x1d2ec3(0x282)]}),_0x1db76a=_0x7fc918[_0x1d2ec3(0x2a4)];if(_0x2d9294[_0x1d2ec3(0x184)]){const _0x1f3406=getConsoleNextUrl(_0x2d9294[_0x1d2ec3(0x1c2)],_0x1d2ec3(0x180)+_0x1db76a['id']);return console[_0x1d2ec3(0x306)](a31_0x12b51f[_0x1d2ec3(0x2db)]('✔')+_0x1d2ec3(0x2b2)+a31_0x12b51f[_0x1d2ec3(0x137)](_0x1f3406)),openBrowser(_0x1f3406),0x0;}return await handleSingleObjectOutput(_0x1db76a,_0x74393b),0x0;}}export class ParentSegmentDescCommand extends BaseCommand{[a31_0x4797a6(0x15c)]='segment:parent:desc';[a31_0x4797a6(0x2eb)]='Show\x20parent\x20segment\x20schema\x20(column\x20types)';async['execute'](_0x547012){const _0x530a1d=a31_0x4797a6,{options:_0x402f98,args:_0x59dacb,tdx:_0x4c8c9a}=_0x547012,_0x19c7d8=_0x402f98,_0x100e61=_0x59dacb[0x0]||_0x402f98[_0x530a1d(0x13d)];if(!_0x100e61)return showParentSegmentNotSetError(_0x530a1d(0x280)+_0x530a1d(0x177)+'Options:\x0a'+_0x530a1d(0x2b1)),0x1;_0x402f98[_0x530a1d(0x282)]&&(console[_0x530a1d(0x306)](_0x530a1d(0x31b)+_0x402f98['site']),console['error'](_0x530a1d(0x1b3)+_0x100e61));const _0x374d89=await withSpinner(_0x530a1d(0x2d3)+_0x100e61+_0x530a1d(0x131),()=>_0x4c8c9a['segment'][_0x530a1d(0x127)](_0x100e61),{'verbose':_0x402f98[_0x530a1d(0x282)]}),_0x5b2d4c=_0x374d89[_0x530a1d(0x2a4)],_0x5822e3=_0x4c8c9a[_0x530a1d(0x14c)][_0x530a1d(0x2a8)](_0x5b2d4c);if(_0x19c7d8[_0x530a1d(0x29c)]){const _0x5224a8=await this[_0x530a1d(0x25c)](_0x547012,_0x100e61,_0x5b2d4c,_0x5822e3),_0x1fbe0a=this[_0x530a1d(0x220)](_0x5224a8);writeFileSync(_0x19c7d8[_0x530a1d(0x29c)],_0x1fbe0a);const _0x328ecd=_0x5224a8[_0x530a1d(0x2e2)]['columns'][_0x530a1d(0x16c)]+_0x5224a8[_0x530a1d(0x275)][_0x530a1d(0x20b)]((_0x3c990c,_0x1e7093)=>_0x3c990c+_0x1e7093[_0x530a1d(0x207)][_0x530a1d(0x16c)],0x0),_0x5be78c=_0x5224a8[_0x530a1d(0x275)][_0x530a1d(0x19c)](_0x46ae85=>_0x46ae85[_0x530a1d(0x207)][_0x530a1d(0x16c)]===0x0)['length'];return console['log'](_0x530a1d(0x1a3)+_0x19c7d8['output']),console[_0x530a1d(0x225)]('\x20\x20Database:\x20'+_0x5822e3),console[_0x530a1d(0x225)]('\x20\x20Tables:\x201\x20customers\x20+\x20'+_0x5224a8[_0x530a1d(0x275)][_0x530a1d(0x16c)]+'\x20behaviors'),console[_0x530a1d(0x225)]('\x20\x20Columns:\x20'+_0x328ecd+'\x20total'),_0x5be78c>0x0&&console[_0x530a1d(0x225)](_0x530a1d(0x1ef)+_0x5be78c+'\x20behavior\x20tables\x20not\x20yet\x20generated\x20(workflow\x20may\x20not\x20have\x20run)'),0x0;}console['error']('\x0a'+a31_0x12b51f[_0x530a1d(0x287)](_0x530a1d(0x2b9))+'\x20'+a31_0x12b51f[_0x530a1d(0x137)](_0x5822e3));const _0x11c1d9=await withSpinner(_0x530a1d(0x11c),()=>_0x4c8c9a[_0x530a1d(0x14c)][_0x530a1d(0x187)](_0x5b2d4c),{'verbose':_0x402f98[_0x530a1d(0x282)]});console[_0x530a1d(0x306)]('\x0a'+a31_0x12b51f[_0x530a1d(0x287)](_0x530a1d(0x2e2))+'\x20'+a31_0x12b51f[_0x530a1d(0x2dc)]('('+_0x5822e3+_0x530a1d(0x18e)));const _0x5ad157=await executeSchemaQuery(_0x11c1d9[_0x530a1d(0x2a4)],_0x4c8c9a,_0x402f98);await handleQueryOutput(_0x5ad157,_0x402f98);const _0x5a358e=await withSpinner(_0x530a1d(0x22c),()=>_0x4c8c9a['segment'][_0x530a1d(0x15d)](_0x5b2d4c),{'verbose':_0x402f98[_0x530a1d(0x282)]});for(const _0x4a28ec of _0x5a358e['data']){const _0x7736b1='behavior_'+_0x4a28ec[_0x530a1d(0x140)]()[_0x530a1d(0x19b)](/\s+/g,'_'),_0x3fabde=_0x530a1d(0x1d6)+_0x5822e3+'.'+_0x7736b1;console[_0x530a1d(0x306)]('\x0a'+a31_0x12b51f[_0x530a1d(0x287)](_0x4a28ec)+'\x20'+a31_0x12b51f[_0x530a1d(0x2dc)]('('+_0x5822e3+'.'+_0x7736b1+')'));try{const _0x6a2368=await executeSchemaQuery(_0x3fabde,_0x4c8c9a,_0x402f98);await handleQueryOutput(_0x6a2368,_0x402f98);}catch{console[_0x530a1d(0x306)](a31_0x12b51f[_0x530a1d(0x215)](_0x530a1d(0x26f)));}}return 0x0;}async[a31_0x4797a6(0x25c)](_0x388e4c,_0x3f1a25,_0x6091b3,_0x1cf531){const _0x52a8d3=a31_0x4797a6,{options:_0x6d18f1,tdx:_0x53e3e5}=_0x388e4c,_0x3d83e5=await withSpinner(_0x52a8d3(0x11c),()=>_0x53e3e5[_0x52a8d3(0x14c)]['getParentSQL'](_0x6091b3),{'verbose':_0x6d18f1[_0x52a8d3(0x282)]}),_0x25bb19=await executeSchemaQuery(_0x3d83e5['data'],_0x53e3e5,_0x6d18f1),_0x23e6af=_0x25bb19[_0x52a8d3(0x2a4)]['map'](_0x21b34e=>({'name':_0x21b34e[_0x52a8d3(0x236)],'type':_0x21b34e[_0x52a8d3(0x271)]})),_0x885622=await withSpinner(_0x52a8d3(0x22c),()=>_0x53e3e5[_0x52a8d3(0x14c)][_0x52a8d3(0x15d)](_0x6091b3),{'verbose':_0x6d18f1[_0x52a8d3(0x282)]}),_0xbc73a6=[];for(const _0x24b7f7 of _0x885622[_0x52a8d3(0x2a4)]){const _0x738d6d=_0x52a8d3(0x305)+_0x24b7f7[_0x52a8d3(0x140)]()[_0x52a8d3(0x19b)](/\s+/g,'_'),_0x13bace='SELECT\x20*\x20FROM\x20'+_0x1cf531+'.'+_0x738d6d;let _0x290036=[];try{const _0x55cb7f=await executeSchemaQuery(_0x13bace,_0x53e3e5,_0x6d18f1);_0x290036=_0x55cb7f[_0x52a8d3(0x2a4)][_0x52a8d3(0x1d5)](_0x39d450=>({'name':_0x39d450[_0x52a8d3(0x236)],'type':_0x39d450[_0x52a8d3(0x271)]}));}catch{}_0xbc73a6[_0x52a8d3(0x1e7)]({'table':_0x738d6d,'columns':_0x290036});}return{'database':_0x1cf531,'parent_segment':_0x3f1a25,'parent_id':_0x6091b3,'customers':{'table':_0x52a8d3(0x2e2),'columns':_0x23e6af},'behaviors':_0xbc73a6};}[a31_0x4797a6(0x220)](_0x2c798b){const _0x54c435=a31_0x4797a6,_0x105fcb=_0x424909=>{const _0x1781b8=a31_0x21b4;if(_0x424909['length']===0x0)return'[]';const _0x190ba2=_0x424909[_0x1781b8(0x1d5)](_0x5ac1ac=>'\x20\x20\x20\x20\x20\x20{\x20\x22name\x22:\x20\x22'+_0x5ac1ac['name']+'\x22,\x20\x22type\x22:\x20\x22'+_0x5ac1ac[_0x1781b8(0x279)]+'\x22\x20}');return'[\x0a'+_0x190ba2[_0x1781b8(0x13f)](',\x0a')+_0x1781b8(0x290);},_0x1b625b=_0x2c798b[_0x54c435(0x275)]['map'](_0x32dc7d=>{const _0x55b36b=_0x54c435;return'\x20\x20\x20\x20{\x0a\x20\x20\x20\x20\x20\x20\x22table\x22:\x20\x22'+_0x32dc7d[_0x55b36b(0x262)]+_0x55b36b(0x160)+_0x105fcb(_0x32dc7d[_0x55b36b(0x207)])[_0x55b36b(0x19b)](/^/gm,'\x20\x20')[_0x55b36b(0x16a)]()+'\x0a\x20\x20\x20\x20}';})[_0x54c435(0x13f)](',\x0a');return _0x54c435(0x2d4)+_0x2c798b[_0x54c435(0x247)]+_0x54c435(0x30c)+_0x2c798b['parent_segment']+_0x54c435(0x1e3)+_0x2c798b['parent_id']+_0x54c435(0x21a)+_0x2c798b[_0x54c435(0x2e2)][_0x54c435(0x262)]+_0x54c435(0x1e1)+_0x105fcb(_0x2c798b[_0x54c435(0x2e2)][_0x54c435(0x207)])[_0x54c435(0x19b)](/^/gm,'\x20\x20')[_0x54c435(0x16a)]()+_0x54c435(0x252)+_0x1b625b+_0x54c435(0x2d1);}}export class ParentSegmentSQLCommand extends BaseCommand{[a31_0x4797a6(0x15c)]=a31_0x4797a6(0x106);[a31_0x4797a6(0x2eb)]=a31_0x4797a6(0x166);async['execute'](_0x239a0b){const _0x5f5b86=a31_0x4797a6,{options:_0x488edf,args:_0x346fcf,tdx:_0x1e1a0c}=_0x239a0b,_0x4be6a8=_0x346fcf[0x0]||_0x488edf[_0x5f5b86(0x13d)];if(!_0x4be6a8)return showParentSegmentNotSetError(_0x5f5b86(0x185)+_0x5f5b86(0x304)),0x1;_0x488edf[_0x5f5b86(0x282)]&&(console[_0x5f5b86(0x306)](_0x5f5b86(0x31b)+_0x488edf[_0x5f5b86(0x1c2)]),console[_0x5f5b86(0x306)](_0x5f5b86(0x1b3)+_0x4be6a8));const _0x2f3389=await withSpinner(_0x5f5b86(0x2d3)+_0x4be6a8+_0x5f5b86(0x131),()=>_0x1e1a0c['segment']['resolveParentId'](_0x4be6a8),{'verbose':_0x488edf[_0x5f5b86(0x282)]}),_0x46c7da=_0x2f3389[_0x5f5b86(0x2a4)],_0x1bf406=await withSpinner('Fetching\x20SQL\x20for\x20\x27'+_0x4be6a8+_0x5f5b86(0x131),()=>_0x1e1a0c[_0x5f5b86(0x14c)]['getParentSQL'](_0x46c7da),{'verbose':_0x488edf[_0x5f5b86(0x282)]}),_0x160a42=_0x1bf406['data'];return _0x488edf['format']==='json'||_0x488edf[_0x5f5b86(0x1b6)]==='jsonl'?await handleSDKOutput([{'sql':_0x160a42}],_0x488edf):console[_0x5f5b86(0x225)](_0x160a42),0x0;}}export class ParentSegmentShowCommand extends BaseCommand{[a31_0x4797a6(0x15c)]=a31_0x4797a6(0x295);[a31_0x4797a6(0x2eb)]=a31_0x4797a6(0x174);async[a31_0x4797a6(0x152)](_0x39b431){const _0x441421=a31_0x4797a6,{options:_0x5d8012,args:_0x35c8ae,tdx:_0xdc64c3}=_0x39b431,_0x8c4b1a=_0x35c8ae[0x0]||_0x5d8012[_0x441421(0x13d)];if(!_0x8c4b1a)return showParentSegmentNotSetError('Usage:\x20tdx\x20ps\x20show\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Show\x20config\x20(requires\x20context)\x0a'+'\x20\x20\x20\x20\x20\x20\x20tdx\x20ps\x20show\x20<name>\x20\x20\x20\x20\x20\x20\x20#\x20Show\x20config\x20for\x20specific\x20parent\x20segment'),0x1;_0x5d8012[_0x441421(0x282)]&&(console[_0x441421(0x306)]('Site:\x20'+_0x5d8012[_0x441421(0x1c2)]),console[_0x441421(0x306)](_0x441421(0x1b3)+_0x8c4b1a));const _0x4de5f0=await withSpinner('Resolving\x20parent\x20segment\x20\x27'+_0x8c4b1a+'\x27...',()=>_0xdc64c3[_0x441421(0x14c)]['resolveParentId'](_0x8c4b1a),{'verbose':_0x5d8012[_0x441421(0x282)]}),_0x382d81=_0x4de5f0[_0x441421(0x2a4)],_0x2a1f98=await withSpinner('Fetching\x20SQL\x20for\x20\x27'+_0x8c4b1a+_0x441421(0x131),()=>_0xdc64c3[_0x441421(0x14c)]['getParentSQL'](_0x382d81),{'verbose':_0x5d8012[_0x441421(0x282)]});let _0x442ad9=_0x2a1f98[_0x441421(0x2a4)];const _0x4841dd=resolveLimit(_0x5d8012[_0x441421(0x258)],DEFAULT_DISPLAY_LIMIT),_0x426873=/\bLIMIT\s+\d+/i[_0x441421(0x208)](_0x442ad9);!_0x426873&&(_0x442ad9=_0x442ad9[_0x441421(0x16a)]()[_0x441421(0x19b)](/;+$/,''),_0x442ad9=_0x441421(0x1b4)+_0x442ad9+'\x0a)\x20AS\x20segment_query\x0aLIMIT\x20'+_0x4841dd);_0x5d8012[_0x441421(0x282)]&&console[_0x441421(0x306)](_0x441421(0xfe)+_0x442ad9);const _0x28c07e=await withProgressSpinner(_0x441421(0x201),async _0x520d07=>{const _0x5b4f1b=_0x441421,_0x1a163e=await _0xdc64c3[_0x5b4f1b(0x1b1)]['execute'](_0x442ad9,{'catalog':'td','schema':'information_schema','onJobId':_0xe0426b=>{_0x520d07['setJobId'](_0xe0426b);}});return _0x1a163e;},{'verbose':_0x5d8012[_0x441421(0x282)]}),_0x14f3bd=_0x28c07e[_0x441421(0x2a4)],_0x13ff48=_0x14f3bd['jobId']?'\x20[Job\x20ID:\x20'+_0x14f3bd['jobId']+']':'';return console[_0x441421(0x306)](_0x441421(0x124)+_0x14f3bd[_0x441421(0x214)][_0x441421(0x1a0)][_0x441421(0x2ec)]()+_0x441421(0x268)+(_0x441421(0x14d)+formatElapsed(_0x14f3bd[_0x441421(0x214)]['elapsedTimeMillis'])+_0x13ff48)),await handleQueryOutput(_0x14f3bd,_0x5d8012),0x0;}}export class PSRtListCommand extends BaseCommand{[a31_0x4797a6(0x15c)]=a31_0x4797a6(0x2c5);[a31_0x4797a6(0x2eb)]=a31_0x4797a6(0x30d);async['execute'](_0x7357e6){const _0x1cac30=a31_0x4797a6,{options:_0xb3caf5,args:_0x17f02b,tdx:_0x1a2b02}=_0x7357e6,_0x47a299=_0x17f02b[0x0],_0x5bc884=await withSpinner(_0x47a299?_0x1cac30(0x25d)+_0x47a299+_0x1cac30(0x131):_0x1cac30(0x1b9),()=>_0x1a2b02[_0x1cac30(0x20f)][_0x1cac30(0x24c)](),{'verbose':_0xb3caf5[_0x1cac30(0x282)]});let _0x1d7625=_0x5bc884[_0x1cac30(0x2a4)][_0x1cac30(0x19c)](_0x2f6260=>_0x2f6260[_0x1cac30(0x21e)]);if(_0x47a299){const _0x339e37=_0x47a299[_0x1cac30(0x19b)](/[.+^${}()|[\]\\]/g,_0x1cac30(0x198))[_0x1cac30(0x19b)](/\*/g,'.*')['replace'](/\?/g,'.'),_0x37ca25=new RegExp('^'+_0x339e37+'$','i');_0x1d7625=_0x1d7625[_0x1cac30(0x19c)](_0x24362b=>_0x37ca25[_0x1cac30(0x208)](_0x24362b[_0x1cac30(0x15c)]));}_0x1d7625[_0x1cac30(0x2e8)]((_0x387fb5,_0x3c1a05)=>_0x387fb5['name'][_0x1cac30(0x1cf)](_0x3c1a05[_0x1cac30(0x15c)])),console[_0x1cac30(0x306)]('✔\x20Found\x20'+_0x1d7625['length']+_0x1cac30(0x23f)+(_0x1d7625[_0x1cac30(0x16c)]!==0x1?'s':''));const _0x97ec36=_0x22e724=>{const _0x59a5b4=_0x1cac30;return getConsoleNextUrl(_0xb3caf5['site'],_0x59a5b4(0x180)+_0x22e724);};if(_0xb3caf5[_0x1cac30(0x1b6)]===_0x1cac30(0x1bf)||_0xb3caf5[_0x1cac30(0x1b6)]==='jsonl'){const _0x566555=_0x1d7625[_0x1cac30(0x1d5)](_0x418993=>({..._0x418993,'url':_0x97ec36(_0x418993['id'])}));await handleSDKOutput(_0x566555,_0xb3caf5);}else{if(_0x1d7625[_0x1cac30(0x16c)]===0x0)console[_0x1cac30(0x225)](_0x1cac30(0x2f1));else for(const _0x41c867 of _0x1d7625){const _0x4cb155=_0x41c867[_0x1cac30(0x169)]?a31_0x12b51f['dim']('\x20('+formatRows(_0x41c867[_0x1cac30(0x169)])+')'):'',_0x3e6de2=hyperlink(_0x41c867[_0x1cac30(0x15c)],_0x97ec36(_0x41c867['id']));console[_0x1cac30(0x225)]('⚡\x20'+_0x3e6de2+_0x4cb155);}}return 0x0;}}export class PSRtValidateCommand extends BaseParentSegmentCommand{[a31_0x4797a6(0x15c)]=a31_0x4797a6(0x2c0);[a31_0x4797a6(0x2eb)]=a31_0x4797a6(0x1f9);async[a31_0x4797a6(0x152)](_0x2faa37){const _0x423829=a31_0x4797a6,{options:_0x323e57,args:_0x49f396,tdx:_0x275f13}=_0x2faa37,_0x15f308=_0x49f396[0x0]||_0x323e57[_0x423829(0x13d)];if(!_0x15f308)return showParentSegmentNotSetError(_0x423829(0x13c)+'\x20\x20\x20\x20\x20\x20\x20tdx\x20ps\x20rt\x20validate\x20<name>\x20\x20\x20\x20\x20\x20\x20#\x20Validate\x20RT\x20config\x20for\x20specific\x20parent\x20segment'),0x1;const _0x37c71e=resolveYamlFile(_0x15f308);if(!existsSync(_0x37c71e))return showFileNotFoundError(_0x37c71e,_0x15f308),0x1;let _0x2d59e2;try{_0x2d59e2=readFileSync(_0x37c71e,_0x423829(0x1aa));}catch(_0x2a3e0e){const _0x2dd396=_0x2a3e0e instanceof Error?_0x2a3e0e['message']:String(_0x2a3e0e);return console['error'](_0x423829(0x251)+_0x2dd396),0x1;}const _0x427ee=createCommandSpinner(a31_0x12b51f[_0x423829(0x2dc)](_0x423829(0x19a)),{'verbose':_0x323e57[_0x423829(0x282)]});_0x427ee['start']();const _0x4dc889={'realtime':!![],'onProgress':_0x43ee9c=>{_0x427ee['text']=formatProgressMessage(_0x43ee9c);}};let _0x5bcd61;try{_0x5bcd61=await _0x275f13[_0x423829(0x14c)]['validateParentYaml'](_0x2d59e2,_0x4dc889),_0x427ee[_0x423829(0x2bc)]();}catch(_0x5114e1){_0x427ee['stop']();throw _0x5114e1;}console[_0x423829(0x306)]('\x0a'+a31_0x12b51f[_0x423829(0x287)](_0x423829(0x1c0))+'\x20'+_0x5bcd61[_0x423829(0x15c)]),console[_0x423829(0x306)]('═'[_0x423829(0x112)](0x3c)),displayRealtimeValidation(_0x5bcd61),console['error']('─'[_0x423829(0x112)](0x3c));if(_0x5bcd61[_0x423829(0x128)]['length']>0x0){console[_0x423829(0x306)]('\x0a'+a31_0x12b51f[_0x423829(0x315)](_0x423829(0x1b7)));for(const _0x5f007a of _0x5bcd61[_0x423829(0x128)]){console[_0x423829(0x306)]('\x20\x20'+a31_0x12b51f[_0x423829(0x315)]('•')+'\x20'+_0x5f007a);}}return _0x5bcd61[_0x423829(0x191)]&&console[_0x423829(0x306)]('\x0a'+a31_0x12b51f[_0x423829(0x2db)]('✔')+_0x423829(0x1ee)),_0x5bcd61[_0x423829(0x191)]?0x0:0x1;}}export class PSRtJnListCommand extends BaseCommand{[a31_0x4797a6(0x15c)]=a31_0x4797a6(0x11f);[a31_0x4797a6(0x2eb)]=a31_0x4797a6(0x1db);async[a31_0x4797a6(0x152)](_0x38f05e){const _0x20d89f=a31_0x4797a6,{options:_0x14ed26,args:_0x23fcc8,tdx:_0x3fcd18}=_0x38f05e,_0x2145f4=_0x23fcc8[0x0]||_0x14ed26['parentSegment'];if(!_0x2145f4)return showParentSegmentNotSetError('Usage:\x20tdx\x20ps\x20rt\x20jn\x20list\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20List\x20RT\x20journeys\x20(requires\x20context)\x0a'+'\x20\x20\x20\x20\x20\x20\x20tdx\x20ps\x20rt\x20jn\x20list\x20<name>\x20\x20\x20\x20\x20\x20\x20#\x20List\x20RT\x20journeys\x20for\x20specific\x20parent\x20segment'),0x1;_0x14ed26['verbose']&&(console[_0x20d89f(0x306)]('Site:\x20'+_0x14ed26['site']),console[_0x20d89f(0x306)]('Parent\x20segment:\x20'+_0x2145f4));const _0x3d42b6=await withSpinner(_0x20d89f(0x2d3)+_0x2145f4+'\x27...',()=>_0x3fcd18[_0x20d89f(0x14c)]['resolveParentId'](_0x2145f4),{'verbose':_0x14ed26[_0x20d89f(0x282)]}),_0x4fdbc1=_0x3d42b6['data'],_0x49b4be=await withSpinner(_0x20d89f(0x200)+_0x2145f4+_0x20d89f(0x131),()=>_0x3fcd18[_0x20d89f(0x20f)][_0x20d89f(0x2aa)](_0x4fdbc1),{'verbose':_0x14ed26[_0x20d89f(0x282)]}),_0x1c79d7=_0x49b4be[_0x20d89f(0x2a4)];console[_0x20d89f(0x306)](_0x20d89f(0x150)+_0x1c79d7[_0x20d89f(0x16c)]+_0x20d89f(0x284)+(_0x1c79d7['length']!==0x1?'s':''));if(_0x14ed26[_0x20d89f(0x1b6)]===_0x20d89f(0x1bf)||_0x14ed26[_0x20d89f(0x1b6)]===_0x20d89f(0x1bc))await handleSDKOutput(_0x1c79d7,_0x14ed26);else{if(_0x1c79d7[_0x20d89f(0x16c)]===0x0)console[_0x20d89f(0x225)](_0x20d89f(0x134));else for(const _0x229d49 of _0x1c79d7){const _0x1319a8=_0x229d49[_0x20d89f(0x199)]==='launched'?'🚀':'📝',_0x2a1626=_0x229d49[_0x20d89f(0x1eb)]?a31_0x12b51f[_0x20d89f(0x215)](_0x20d89f(0x216)):'',_0x7445e0=a31_0x12b51f[_0x20d89f(0x2dc)]('\x20('+_0x229d49['stageCount']+_0x20d89f(0x1a2)+(_0x229d49[_0x20d89f(0x1ca)]!==0x1?'s':'')+')');console[_0x20d89f(0x225)](_0x1319a8+'\x20'+_0x229d49[_0x20d89f(0x15c)]+_0x2a1626+_0x7445e0);}}return 0x0;}}function a31_0x21b4(_0xbc01ba,_0x36b9c5){_0xbc01ba=_0xbc01ba-0xfe;const _0xbd54f9=a31_0xbd54();let _0x21b421=_0xbd54f9[_0xbc01ba];return _0x21b421;}export class PSRtJnPauseCommand extends BaseCommand{[a31_0x4797a6(0x15c)]=a31_0x4797a6(0x203);[a31_0x4797a6(0x2eb)]=a31_0x4797a6(0x234);async[a31_0x4797a6(0x152)](_0x3b03f9){const _0x239fd7=a31_0x4797a6,{options:_0x21af68,args:_0x4f3450,tdx:_0x34e42f}=_0x3b03f9,_0x111dff=_0x4f3450[0x0];if(!_0x111dff)return console['error'](a31_0x12b51f[_0x239fd7(0x315)](_0x239fd7(0x2e3))),console[_0x239fd7(0x306)](_0x239fd7(0x1b8)),console['error'](a31_0x12b51f[_0x239fd7(0x2dc)](_0x239fd7(0x286))),0x1;_0x21af68[_0x239fd7(0x282)]&&(console[_0x239fd7(0x306)]('Site:\x20'+_0x21af68[_0x239fd7(0x1c2)]),console[_0x239fd7(0x306)](_0x239fd7(0x136)+_0x111dff));const _0x419348=await withSpinner(_0x239fd7(0x29f)+_0x111dff+'\x27...',()=>_0x34e42f[_0x239fd7(0x20f)][_0x239fd7(0x223)](_0x111dff),{'verbose':_0x21af68[_0x239fd7(0x282)]}),_0x4b5753=_0x419348['data'];console[_0x239fd7(0x306)](_0x239fd7(0x293)+_0x4b5753[_0x239fd7(0x15c)]+'\x27');if(_0x21af68[_0x239fd7(0x1b6)]===_0x239fd7(0x1bf)||_0x21af68[_0x239fd7(0x1b6)]===_0x239fd7(0x1bc))await handleSDKOutput([_0x4b5753],_0x21af68);else{const _0x1cc057=_0x4b5753['state']===_0x239fd7(0x2ce)?'🚀':'📝',_0x1e453f=_0x4b5753[_0x239fd7(0x1eb)]?a31_0x12b51f['yellow'](_0x239fd7(0x216)):'';console[_0x239fd7(0x225)](_0x1cc057+'\x20'+_0x4b5753[_0x239fd7(0x15c)]+_0x1e453f);}return 0x0;}}function a31_0xbd54(){const _0x56ef72=['stringify','run','\x5c$&','state','Validating\x20RT\x20configuration...','replace','filter','✔\x20Updated\x20personalization\x20\x27','\x27\x20with\x20ID:\x20','parentFolder','processedRows','displaySummary','\x20stage','Schema\x20saved\x20to\x20','Options\x20(one\x20required):\x0a','\x20\x20\x20\x20\x20\x20','Aborted.','Create\x20new\x20parent\x20segment\x20(audience)\x20[DEPRECATED]','Getting\x20RT\x20configuration\x20version\x20for\x20\x27','eventKind','utf-8','Error:\x20--description\x20is\x20required\x20(or\x20use\x20--file\x20for\x20a\x20full\x20request\x20body)','folderId','List\x20parent\x20segments','/\x20directories\x20exist.','\x20\x20\x20','Fetching\x20personalization\x20service\x20\x27','query','\x20true','Parent\x20segment:\x20','SELECT\x20*\x20FROM\x20(\x0a','Error:\x20--behavior\x20requires\x20a\x20name\x0a','format','Errors:','Usage:\x20tdx\x20ps\x20rt\x20jn\x20pause_activations\x20<journeyId>\x0a','Listing\x20RT-enabled\x20parent\x20segments...','behavior','The\x20-u\x20flag\x20sets\x20the\x20context\x20to\x20the\x20pulled\x20segment,\x20which\x20requires','jsonl','ignore','some','json','RT\x202.0\x20Validate:','\x20parent\x20segment\x20\x27','site','Create\x20a\x20realtime\x20personalization\x20entity','Use\x20`tdx\x20ps\x20folder\x20list\x20<name>`\x20to\x20find\x20the\x20folder\x20ID,\x20then\x20add:','listParents','single','Usage:\x20tdx\x20ps\x20pz\x20service\x20token\x20create\x20<name>\x20<service_id>\x20[parent_segment]\x0a','Add\x20template\x20personalization\x20section\x20to\x20parent\x20segment\x20YAML','scheduleOption','stageCount','\x27\x20not\x20found\x20in\x20any\x20personalization\x20service','Usage:\x20tdx\x20ps\x20pz\x20service\x20create\x20<name>\x20[parent_segment]\x0a','✔\x20Created\x20personalization\x20\x27','foreignKey','localeCompare','getCurrentConfigVersion','Analyzing\x20changes...','\x27\x20is\x20already\x20up\x20to\x20date','✔\x20Resumed\x20activations\x20for\x20RT\x20journey\x20\x27','segment:parent:preview','map','SELECT\x20*\x20FROM\x20','Creating','Usage:\x20tdx\x20ps\x20validate\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Validate\x20(requires\x20context)\x0a','\x20service(s)\x20configured','\x20Added\x20RT\x202.0\x20template\x20section','List\x20RT\x20journeys','\x20\x20-w,\x20--web\x20\x20Open\x20parent\x20segment\x20in\x20web\x20browser','ps:rt:configuration_versions','No\x20personalizations\x20configured','Fetching\x20sample\x20data...','Master\x20+\x20Attributes','\x22,\x0a\x20\x20\x20\x20\x22columns\x22:\x20','Preview:','\x22,\x0a\x20\x20\x22parent_id\x22:\x20\x22','Error:\x20\x22relationships.parentFolder\x22\x20is\x20required\x20in\x20the\x20JSON\x20file.','coveragePercent','createParent','push','Usage:\x20tdx\x20segment\x20parent\x20update\x20<name>\x20[options]','Join\x20on:','patch','paused','scheduleType','Update\x20a\x20personalization\x20service\x20name\x20and/or\x20description','\x20RT\x20configuration\x20is\x20valid','\x20\x20Note:\x20','segment:parent:validate','updatedAt','\x20\x20\x20\x20\x20\x20\x20tdx\x20ps\x20pz\x20service\x20list\x20<name>\x20\x20\x20\x20\x20\x20\x20#\x20List\x20PZ\x20services\x20for\x20specific\x20parent\x20segment','No\x20parent\x20segments\x20found','\x20=\x20','displayBehaviorsStats','\x20\x20--enriched\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20sample\x20enriched\x20master\x20data','List\x20realtime\x20personalizations\x20for\x20a\x20parent\x20segment','Updating\x20parent\x20segment\x20\x27','Validate\x20RT\x202.0\x20configuration\x20from\x20parent\x20segment\x20YAML','ps:pz:service:list','Attempt:','yes','.yml','\x20\x20--behavior\x20<name>\x20\x20\x20\x20Show\x20sample\x20data\x20for\x20specific\x20behavior\x0a','\x20personalization\x20service','Listing\x20RT\x20journeys\x20for\x20\x27','Executing\x20parent\x20segment\x20query...','Created','ps:rt:jn:pause','Fetching\x20current\x20configuration\x20for\x20\x27','Error:\x20--name\x20is\x20required\x20(or\x20use\x20--file\x20for\x20a\x20full\x20request\x20body)','column','columns','test','No\x20personalization\x20services\x20configured','rowCount','reduce','Updating\x20personalization\x20service\x20\x27','✔\x20Created\x20personalization\x20service\x20\x27','✔\x20Deleted\x20token\x20\x27','realtime','\x20--behavior\x20\x22','Options:\x0a','YAML\x20file:\x20','identifier','stats','yellow','\x20(paused)','value','validateParentYaml','\x20Added\x20personalization\x20template\x20to\x20','\x22,\x0a\x20\x20\x22customers\x22:\x20{\x0a\x20\x20\x20\x20\x22table\x22:\x20\x22','idStitching','Show\x20a\x20specific\x20realtime\x20personalization','Error:\x20File\x20not\x20found:\x20','realtime_enabled','Attributes','formatSchemaJson','Overwrite\x20\x27','\x20\x20--attribute\x20[name]\x20\x20\x20Show\x20only\x20attributes\x20(or\x20specific\x20one)\x0a','pauseJourney','Status:','log','valid','/\x20and\x20','\x20service','listFields','\x20\x20\x20\x20\x20\x20\x20tdx\x20ps\x20pz\x20service\x20create\x20<name>\x20\x20#\x20Uses\x20context','identifier:\x20','Fetching\x20behavior\x20list...','Table:\x20','\x20No\x20changes\x20-\x20','To\x20cancel:','sourceTableError','toFixed','tokens','Create\x20a\x20token\x20for\x20a\x20personalization\x20service','Pause\x20activations\x20in\x20an\x20RT\x20journey','keyEventId','column_name','Events:','%)\x20','✔\x20Deleted\x20personalization\x20service\x20\x27','Error:\x20Service\x20name\x20is\x20required','\x20\x20No\x20sample\x20data\x20available','Error:\x20-u\x20(--use)\x20and\x20-o\x20(--output)\x20cannot\x20be\x20used\x20together\x0a','Database:\x20','parent_segment\x20is\x20not\x20set.\x20Use\x20`tdx\x20ps\x20use\x20<name>`\x20to\x20set\x20it.\x0a','\x20RT-enabled\x20parent\x20segment','personalization_services','customerGroupFile','\x20\x20--behavior\x20<name>\x20\x20\x20\x20Show\x20sample\x20data\x20for\x20specific\x20behavior','displayPreviewHints','attributesFile','List\x20available\x20fields\x20for\x20segmentation','user_id','database','ps:pz:delete','✔\x20No\x20changes\x20-\x20\x27','\x20\x20\x20\x20-\x20','Usage:\x20tdx\x20ps\x20pz\x20service\x20show\x20<service_id>\x20[parent_segment]\x0a','list','interval','Usage:\x20tdx\x20ps\x20pz\x20service\x20delete\x20<service_id>\x20[parent_segment]\x0a','Output\x20file:\x20','endsWith','Error\x20reading\x20file:\x20','\x0a\x20\x20},\x0a\x20\x20\x22behaviors\x22:\x20[\x0a','\x20\x20\x20\x20\x20\x20\x20tdx\x20ps\x20preview\x20<name>\x20\x20\x20\x20\x20\x20\x20#\x20Preview\x20specific\x20parent\x20segment\x0a\x0a','Join:','804798zaNQGL','\x20field','\x0aTip:\x20Run\x20`tdx\x20ps\x20pz\x20service\x20init`\x20to\x20add\x20a\x20template\x20personalization\x20section\x20to\x20your\x20YAML','limit','6811021LiKWNq','\x20--enriched','keyEventId:','collectSchema','Listing\x20RT-enabled\x20parent\x20segments\x20matching\x20\x27','true','sampleData','workflowAttemptId','realtime:','table','double','personalization','\x0a⚠️\x20\x20Migrating:\x20','tdx\x20ps\x20preview\x20','Options:','\x20rows\x20','Validate:','\x20\x20\x20\x20\x20\x20\x20tdx\x20ps\x20pz\x20list\x20<name>\x20\x20\x20\x20\x20\x20\x20#\x20List\x20personalizations\x20for\x20specific\x20parent\x20segment','Usage:\x20tdx\x20ps\x20pz\x20service\x20create\x20<name>\x20[parent_segment]','\x20parent\x20segment','Found\x20YAML\x20file:\x20','/sessions/','\x20\x20Schema\x20not\x20available\x20(workflow\x20may\x20not\x20have\x20run\x20yet)','/\x20→\x20','column_type','FINISHED','displayMasterInfo','\x20\x20\x20Use\x20`tdx\x20segment\x20parent\x20push\x20<file.yml>`\x20instead\x20for\x20better\x20configuration\x20management.\x0a','behaviors','deletePersonalization','Usage:\x20tdx\x20ps\x20pz\x20init\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Add\x20PZ\x20template\x20(requires\x20context)\x0a','audienceId:','type','attribute','Listing\x20personalization\x20services\x20for\x20\x27','Listing\x20personalizations\x20for\x20\x27','allowedIps','\x20\x20\x20\x20\x20\x20\x20tdx\x20ps\x20pz\x20service\x20delete\x20<service_id>\x20\x20#\x20Uses\x20context','\x20--behavior\x20\x22<name>\x22','Usage:\x20tdx\x20ps\x20desc\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Describe\x20all\x20tables\x20(requires\x20context)\x0a','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file','verbose','Usage:\x20tdx\x20ps\x20pz\x20delete\x20<personalization_id>','\x20RT\x20journey','Usage:\x20tdx\x20ps\x20pz\x20service\x20token\x20delete\x20<token_id>\x20[parent_segment]\x0a','Tip:\x20Use\x20`tdx\x20ps\x20rt\x20jn\x20list\x20<parent_segment>`\x20to\x20find\x20journey\x20IDs','bold','matchedCount','✔\x20Updated\x20parent\x20segment\x20\x27','ID\x20Stitching:','Tip:\x20Use\x20-u\x20without\x20-o,\x20or\x20-o\x20without\x20-u','folder-segment','Error:\x20Token\x20\x27','✔\x20Retrieved\x20RT\x20configuration\x20version','\x20personalization','\x0a\x20\x20\x20\x20]','eventKind:\x20','created:','✔\x20Paused\x20activations\x20for\x20RT\x20journey\x20\x27','public:','segment:parent:show','Usage:\x20tdx\x20ps\x20pz\x20service\x20token\x20delete\x20<token_id>\x20[parent_segment]','✔\x20Deleted\x20personalization\x20\x27','\x27\x20and\x20run\x20workflow?','segment:parent:list','\x0aNew\x20parent\x20segment\x20\x27','Show\x20personalization\x20service\x20details','output','deleteToken','\x20--interval\x20','Pausing\x20activations\x20for\x20RT\x20journey\x20\x27','4800756dEdanO','number','Fetching\x20parent\x20segment\x20\x27','ps:pz:patch','data','customerPercent','displaySampleData','Error:','getOutputDatabaseName','Patching\x20personalization\x20\x27','listJourneys','token:','\x0aNo\x20sample\x20data\x20available','(id:\x20','✔\x20Updated\x20personalization\x20service\x20\x27','pushParentYaml','dirname','\x20\x20-o,\x20--output\x20<file>\x20\x20Output\x20file\x20path','\x20Opening\x20','6331680kGgKMI','Error:\x20Service\x20ID\x20is\x20required','ps:pz:create','personalizationServices','attributes','events','Output\x20Database:','segment:parent:pull','listPersonalizations','stop','ps:pz:service:delete','Name:\x20','Show\x20parent\x20segment\x20details','ps:rt:validate','Use\x20-y\x20or\x20--yes\x20flag\x20to\x20apply\x20changes\x20without\x20confirmation','parent_segment','`\x20to\x20download\x20the\x20configuration\x20first','\x20\x20\x22relationships\x22:\x20{\x20\x22parentFolder\x22:\x20{\x20\x22data\x22:\x20{\x20\x22id\x22:\x20\x22<id>\x22,\x20\x22type\x22:\x20\x22folder-segment\x22\x20}\x20}\x20}','ps:rt:list','Usage:\x20tdx\x20segment\x20parent\x20create\x20<name>\x20--database\x20<db>\x20--table\x20<table>','win32','Session:','190dWqiYB','Validating\x20configuration...','Usage:\x20tdx\x20ps\x20pz\x20service\x20update\x20<service_id>\x20[parent_segment]\x20--name\x20<name>\x20[--description\x20<text>]','addAttributesFile','Error:\x20--attribute\x20requires\x20a\x20name\x0a','launched','match','delete','\x0a\x20\x20]\x0a}\x0a','\x27\x20is\x20up\x20to\x20date','Resolving\x20parent\x20segment\x20\x27','{\x0a\x20\x20\x22database\x22:\x20\x22','\x20\x20--master\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20sample\x20master\x20table\x20data\x0a','previewParentYaml','Usage:\x20tdx\x20ps\x20pull\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Pull\x20(requires\x20context)\x0a','\x20rows)','create','Audience\x20ID:','green','dim','Resuming\x20activations\x20for\x20RT\x20journey\x20\x27','Available\x20behaviors:','segment:parent:view','ps:rt:jn:resume','Usage:\x20tdx\x20ps\x20pz\x20create\x20--name\x20<name>\x20--description\x20<desc>\x20--folder-id\x20<id>\x20[options]','customers','Error:\x20RT\x20journey\x20ID\x20is\x20required\x0a','Usage:\x20tdx\x20ps\x20preview\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Preview\x20(requires\x20context)\x0a','✔\x20Created\x20parent\x20segment\x20\x27','Available\x20attributes:','Getting\x20personalization\x20\x27','sort','\x20\x20\x20\x20\x20\x20\x20tdx\x20ps\x20fields\x20<name>\x20\x20\x20\x20\x20\x20\x20#\x20Show\x20fields\x20for\x20specific\x20parent\x20segment','Behaviors','description','toLocaleString','sourceTableValid','Deleting\x20personalization\x20\x27','entryCriteria','\x20--attribute\x20\x22','No\x20RT-enabled\x20parent\x20segments\x20found','Usage:\x20tdx\x20ps\x20pz\x20service\x20list\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20List\x20PZ\x20services\x20(requires\x20context)\x0a','schemaValid','td_client_id','\x20\x20--attribute\x20<name>\x20\x20\x20Show\x20sample\x20data\x20for\x20specific\x20attribute','ps:pz:service:token:create','stitchingKeys','\x20\x201.\x20Edit\x20','Get\x20current\x20RT\x20configuration\x20version\x20status','createToken','\x20\x20--behavior\x20[name]\x20\x20\x20\x20Show\x20only\x20behaviors\x20(or\x20specific\x20one)\x0a','page_view','totalEvents','master','Usage:\x20tdx\x20ps\x20pz\x20service\x20token\x20create\x20<name>\x20<service_id>\x20[parent_segment]','\x20to\x20push\x20the\x20configuration','status','Usage:\x20tdx\x20ps\x20fields\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Show\x20fields\x20(requires\x20context)\x0a','\x20Configuration\x20is\x20valid','\x20\x20\x20\x20\x20\x20\x20tdx\x20ps\x20sql\x20<name>\x20\x20\x20\x20\x20\x20\x20#\x20Show\x20SQL\x20for\x20specific\x20parent\x20segment','behavior_','error','patchPersonalization','\x0a⚠️\x20\x20DEPRECATED:\x20`tdx\x20segment\x20parent\x20create`\x20is\x20deprecated.\x0a','enabled','Customers:','apply','\x22,\x0a\x20\x20\x22parent_segment\x22:\x20\x22','List\x20parent\x20segments\x20with\x20RT\x202.0\x20status','Running\x20parent\x20segment\x20workflow\x20for\x20\x27','Updated','Deleting\x20personalization\x20service\x20\x27','customerGroup','\x0aError:','✔\x20Found\x20personalization\x20\x27','Listing\x20fields\x20for\x20\x27','red','\x20\x20\x20\x20\x20\x20\x20tdx\x20ps\x20pz\x20service\x20token\x20delete\x20<token_id>\x20\x20#\x20Uses\x20context','\x20\x20\x20\x20\x20\x20\x20tdx\x20ps\x20pz\x20service\x20show\x20<service_id>\x20\x20#\x20Uses\x20context','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file','1995778gZwxlk','ps:pz:service:show','Site:\x20','null','SQL\x20query:\x0a','relationships','Usage:\x20tdx\x20ps\x20pz\x20service\x20update\x20<service_id>\x20[parent_segment]\x20--name\x20<name>\x20[--description\x20<text>]\x0a','includeSensitive:','tdx\x20ps\x20push\x20','\x0a⚠️\x20\x20Both\x20','file','⚠️\x20\x20personalization_services\x20section\x20already\x20exists\x20in\x20','segment:parent:sql','<database>.<table>','audienceId','using\x20the\x20default\x20path:\x20','Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics','\x20\x20\x20\x20','ps:pz:service:create','getParentFull','\x20\x20\x20\x20\x20\x20\x20tdx\x20ps\x20pz\x20create\x20--file\x20<path>','\x27\x20for\x20service\x20\x27','schemaError','entryCriteria:','repeat','71530FNGrWL','\x20\x20\x20\x20\x20\x20\x20tdx\x20ps\x20view\x20<name>\x20\x20\x20\x20\x20\x20\x20#\x20View\x20specific\x20parent\x20segment\x0a\x0a','label','\x0aChanges\x20to\x20apply\x20to\x20\x27','enriched','Listing\x20parent\x20segments\x20matching\x20\x27','displayPreviewResults','Apply\x20changes\x20to\x20\x27','updated:','Fetching\x20customers\x20schema...','Coverage:','Confirmation\x20required\x20but\x20running\x20in\x20non-interactive\x20mode','ps:rt:jn:list','Personalization\x20service\x20description','Personalization:','sections:','No\x20parent\x20segments\x20match\x20pattern:\x20','✔\x20Query\x20completed:\x20Processed\x20','allowed\x20IPs:','/{name}.yml\x0a','resolveParentId','errors','Error:\x20Personalization\x20ID\x20is\x20required','\x20Saved\x20parent\x20segment\x20configuration\x20to\x20','Source:','List\x20personalization\x20services\x20for\x20a\x20parent\x20segment','string','Error:\x20No\x20behaviors\x20defined\x20in\x20configuration','sections','customersWithEvents','\x27...','Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)','addBehaviorsFile','No\x20RT\x20journeys\x20found','\x20\x20\x20See:\x20tdx\x20segment\x20parent\x20pull\x20--help\x0a','RT\x20Journey\x20ID:\x20','cyan','\x20\x20\x20\x20\x20\x20\x20tdx\x20ps\x20pz\x20service\x20update\x20<service_id>\x20--name\x20<name>\x20\x20#\x20Uses\x20context','Usage:\x20tdx\x20ps\x20pz\x20list\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20List\x20personalizations\x20(requires\x20context)\x0a','preview','Update\x20existing\x20parent\x20segment\x20(audience)\x20[DEPRECATED]','Usage:\x20tdx\x20ps\x20rt\x20validate\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Validate\x20RT\x20config\x20(requires\x20context)\x0a','parentSegment','Usage:\x20tdx\x20ps\x20rt\x20configuration_versions\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Get\x20RT\x20config\x20version\x20(requires\x20context)\x0a','join','toLowerCase','displayColumns','status:\x20','👥\x20','\x20\x20\x20\x20\x20\x20\x20tdx\x20ps\x20pz\x20patch\x20<id>\x20--file\x20<path>','\x20\x20\x20\x20\x20\x20\x20tdx\x20ps\x20rt\x20configuration_versions\x20<name>\x20\x20\x20\x20\x20\x20\x20#\x20Get\x20RT\x20config\x20version\x20for\x20specific\x20parent\x20segment','xdg-open','\x20\x20\x20\x20\x20\x20\x20Pass\x20null\x20to\x20place\x20in\x20the\x20root\x20folder.','\x20\x20\x20\x20\x20\x20\x20tdx\x20ps\x20pz\x20init\x20<name>\x20\x20\x20\x20\x20\x20\x20#\x20Add\x20PZ\x20template\x20for\x20specific\x20parent\x20segment','64LhCXwJ','\x20\x20\x20\x20\x20\x20\x20tdx\x20ps\x20pz\x20service\x20token\x20create\x20<name>\x20<service_id>\x20\x20#\x20Uses\x20context','Error:\x20--folder-id\x20is\x20required.\x20Use\x20`tdx\x20ps\x20folder\x20list\x20<name>`\x20to\x20find\x20the\x20folder\x20ID.','segment','in\x20','\x20kill','Usage:\x20tdx\x20ps\x20rt\x20jn\x20resume_activations\x20<journeyId>\x0a','✔\x20Found\x20','start','execute','Error:\x20No\x20attributes\x20defined\x20in\x20configuration','Error:\x20--database\x20and\x20--table\x20are\x20required','Update\x20a\x20realtime\x20personalization\x20entity','.yaml','Tip:\x20Run\x20`tdx\x20ps\x20pull\x20-u\x20','Usage:\x20tdx\x20ps\x20view\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20View\x20(requires\x20context)\x0a','text','Error\x20parsing\x20YAML:\x20','1lCsFri','name','getBehaviorNames','public','Next\x20steps:','\x22,\x0a\x20\x20\x20\x20\x20\x20\x22columns\x22:\x20','segment:parent:run','My\x20Service','-1d','addBehaviors','Master\x20Table','Get\x20SQL\x20query\x20for\x20parent\x20segment','get','Usage:\x20tdx\x20ps\x20pz\x20patch\x20<id>\x20--name\x20<name>\x20--description\x20<desc>\x20[--sections\x20<json>]','population','trim','joinKey','length','/\x20directory.\x0a','/attempt/','Error:\x20Token\x20ID\x20is\x20required','Create\x20parent\x20segment\x20\x27','Create\x20a\x20personalization\x20service\x20for\x20a\x20parent\x20segment','displayRealtimeInfo','varchar','Execute\x20parent\x20segment\x20SQL\x20query\x20and\x20show\x20results','\x20\x20--interval\x20<range>\x20\x20\x20TD_INTERVAL\x20time\x20range\x20for\x20behaviors\x20(default:\x20-1d)','timezone','\x20\x20\x20\x20\x20\x20\x20tdx\x20ps\x20desc\x20<name>\x20\x20\x20\x20\x20\x20\x20#\x20Describe\x20all\x20tables\x20for\x20parent\x20segment\x0a\x0a','\x20\x20\x20Please\x20manually\x20merge\x20or\x20remove\x20','Default','runParent','Creating\x20personalization\x20\x27','no\x20tokens\x20configured','displayValidateResults','Error:\x20Parent\x20segment\x20name\x20is\x20required','split','/app/dw/parentSegments/','ps:pz:service:update','message','Finding\x20service\x20for\x20token...','web','Usage:\x20tdx\x20ps\x20sql\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Show\x20SQL\x20(requires\x20context)\x0a','any','getParentSQL','\x20\x20\x20\x20\x20\x20\x20tdx\x20ps\x20pull\x20<name>\x20\x20\x20\x20\x20\x20\x20#\x20Pull\x20specific\x20parent\x20segment','id:\x20','1219761pPivAL','keyEventCriteria','use','Updating','.customers)','\x0aUsage:\x20tdx\x20ps\x20preview\x20','ps:pz:init','allValid','\x0a⚠️\x20\x20DEPRECATED:\x20`tdx\x20segment\x20parent\x20update`\x20is\x20deprecated.\x0a','last_page_viewed','displayAttributesStats','all'];a31_0xbd54=function(){return _0x56ef72;};return a31_0xbd54();}export class PSRtJnResumeCommand extends BaseCommand{[a31_0x4797a6(0x15c)]=a31_0x4797a6(0x2e0);['description']='Resume\x20activations\x20in\x20an\x20RT\x20journey';async[a31_0x4797a6(0x152)](_0x3c554b){const _0x314db4=a31_0x4797a6,{options:_0x29aba2,args:_0x32e5e8,tdx:_0x3f03a1}=_0x3c554b,_0x4b9fdf=_0x32e5e8[0x0];if(!_0x4b9fdf)return console[_0x314db4(0x306)](a31_0x12b51f[_0x314db4(0x315)](_0x314db4(0x2e3))),console[_0x314db4(0x306)](_0x314db4(0x14f)),console['error'](a31_0x12b51f['dim'](_0x314db4(0x286))),0x1;_0x29aba2[_0x314db4(0x282)]&&(console[_0x314db4(0x306)]('Site:\x20'+_0x29aba2['site']),console[_0x314db4(0x306)](_0x314db4(0x136)+_0x4b9fdf));const _0x536623=await withSpinner(_0x314db4(0x2dd)+_0x4b9fdf+_0x314db4(0x131),()=>_0x3f03a1[_0x314db4(0x20f)]['resumeJourney'](_0x4b9fdf),{'verbose':_0x29aba2[_0x314db4(0x282)]}),_0x50abaa=_0x536623['data'];console[_0x314db4(0x306)](_0x314db4(0x1d3)+_0x50abaa[_0x314db4(0x15c)]+'\x27');if(_0x29aba2['format']===_0x314db4(0x1bf)||_0x29aba2[_0x314db4(0x1b6)]===_0x314db4(0x1bc))await handleSDKOutput([_0x50abaa],_0x29aba2);else{const _0x1312a6=_0x50abaa['state']===_0x314db4(0x2ce)?'🚀':'📝',_0x16cc29=_0x50abaa[_0x314db4(0x1eb)]?a31_0x12b51f[_0x314db4(0x215)](_0x314db4(0x216)):'';console[_0x314db4(0x225)](_0x1312a6+'\x20'+_0x50abaa[_0x314db4(0x15c)]+_0x16cc29);}return 0x0;}}export class PSRtConfigVersionCommand extends BaseCommand{['name']=a31_0x4797a6(0x1dd);[a31_0x4797a6(0x2eb)]=a31_0x4797a6(0x2f9);async[a31_0x4797a6(0x152)](_0x5d539f){const _0x4ae55d=a31_0x4797a6,{options:_0x21ba2e,args:_0x5ad45c,tdx:_0x2f6605}=_0x5d539f,_0x25bd88=_0x5ad45c[0x0]||_0x21ba2e[_0x4ae55d(0x13d)];if(!_0x25bd88)return showParentSegmentNotSetError(_0x4ae55d(0x13e)+_0x4ae55d(0x145)),0x1;_0x21ba2e['verbose']&&(console[_0x4ae55d(0x306)](_0x4ae55d(0x31b)+_0x21ba2e[_0x4ae55d(0x1c2)]),console['error'](_0x4ae55d(0x1b3)+_0x25bd88));const _0x53b45b=await withSpinner(_0x4ae55d(0x2d3)+_0x25bd88+'\x27...',()=>_0x2f6605[_0x4ae55d(0x14c)][_0x4ae55d(0x127)](_0x25bd88),{'verbose':_0x21ba2e['verbose']}),_0x41cd29=_0x53b45b[_0x4ae55d(0x2a4)],_0x24101b=await withSpinner(_0x4ae55d(0x1a8)+_0x25bd88+_0x4ae55d(0x131),()=>_0x2f6605[_0x4ae55d(0x20f)][_0x4ae55d(0x1d0)](_0x41cd29),{'verbose':_0x21ba2e['verbose']}),_0x1a5aab=_0x24101b[_0x4ae55d(0x2a4)];return console['error'](_0x4ae55d(0x28e)),_0x21ba2e['format']===_0x4ae55d(0x1bf)||_0x21ba2e[_0x4ae55d(0x1b6)]===_0x4ae55d(0x1bc)?await handleSDKOutput([_0x1a5aab],_0x21ba2e):(console['log'](_0x4ae55d(0x189)+_0x1a5aab['id']),console[_0x4ae55d(0x225)]('audienceId:\x20'+_0x1a5aab[_0x4ae55d(0x108)]),console['log'](_0x4ae55d(0x22b)+_0x1a5aab[_0x4ae55d(0x213)]),console[_0x4ae55d(0x225)](_0x4ae55d(0x291)+_0x1a5aab[_0x4ae55d(0x1a9)]),console[_0x4ae55d(0x225)](_0x4ae55d(0x142)+_0x1a5aab['status'])),0x0;}}export class PSPzServiceListCommand extends BaseCommand{['name']=a31_0x4797a6(0x1fa);[a31_0x4797a6(0x2eb)]=a31_0x4797a6(0x12c);async[a31_0x4797a6(0x152)](_0x5b0765){const _0x18dc93=a31_0x4797a6,{options:_0x4c3bfb,args:_0x59c4cc,tdx:_0x1962c0}=_0x5b0765,_0x195e5d=_0x59c4cc[0x0]||_0x4c3bfb[_0x18dc93(0x13d)];if(!_0x195e5d)return showParentSegmentNotSetError(_0x18dc93(0x2f2)+_0x18dc93(0x1f2)),0x1;const _0x3ebd90=await withSpinner(_0x18dc93(0x2d3)+_0x195e5d+_0x18dc93(0x131),()=>_0x1962c0[_0x18dc93(0x14c)]['resolveParentId'](_0x195e5d),{'verbose':_0x4c3bfb[_0x18dc93(0x282)]}),_0x25a2de=_0x3ebd90[_0x18dc93(0x2a4)],_0x56af9f=await withSpinner(_0x18dc93(0x27b)+_0x195e5d+_0x18dc93(0x131),()=>_0x1962c0[_0x18dc93(0x264)]['list'](_0x25a2de),{'verbose':_0x4c3bfb[_0x18dc93(0x282)]}),_0xf2d8f5=_0x56af9f[_0x18dc93(0x2a4)];console[_0x18dc93(0x306)](_0x18dc93(0x150)+_0xf2d8f5[_0x18dc93(0x16c)]+_0x18dc93(0x1ff)+(_0xf2d8f5[_0x18dc93(0x16c)]!==0x1?'s':''));if(_0x4c3bfb[_0x18dc93(0x1b6)]===_0x18dc93(0x1bf)||_0x4c3bfb['format']===_0x18dc93(0x1bc))await handleSDKOutput(_0xf2d8f5,_0x4c3bfb);else{if(_0xf2d8f5[_0x18dc93(0x16c)]===0x0)console[_0x18dc93(0x225)](_0x18dc93(0x209)),console[_0x18dc93(0x306)](a31_0x12b51f[_0x18dc93(0x137)](_0x18dc93(0x257)));else for(const _0x17a8ab of _0xf2d8f5){console[_0x18dc93(0x225)](a31_0x12b51f[_0x18dc93(0x287)](_0x17a8ab[_0x18dc93(0x15c)])+'\x20'+a31_0x12b51f[_0x18dc93(0x2dc)]('(id:\x20'+_0x17a8ab['id']+')'));_0x17a8ab[_0x18dc93(0x2eb)]&&console[_0x18dc93(0x225)]('\x20\x20'+a31_0x12b51f[_0x18dc93(0x2dc)](_0x17a8ab['description']));if(_0x17a8ab[_0x18dc93(0x232)]&&_0x17a8ab[_0x18dc93(0x232)][_0x18dc93(0x16c)]>0x0)for(const _0x175d0e of _0x17a8ab['tokens']){const _0x10103f=_0x175d0e[_0x18dc93(0x27d)]?.['length']?_0x175d0e[_0x18dc93(0x27d)][_0x18dc93(0x13f)](',\x20'):_0x18dc93(0x186);console[_0x18dc93(0x225)]('\x20\x20'+a31_0x12b51f[_0x18dc93(0x137)](_0x18dc93(0x2ab))+'\x20'+_0x175d0e[_0x18dc93(0x15c)]+'\x20'+a31_0x12b51f[_0x18dc93(0x2dc)](_0x18dc93(0x2ad)+_0x175d0e['id']+')')),console[_0x18dc93(0x225)](_0x18dc93(0x10b)+a31_0x12b51f[_0x18dc93(0x2dc)](_0x18dc93(0x125))+'\x20'+_0x10103f);}else console[_0x18dc93(0x225)]('\x20\x20'+a31_0x12b51f['dim'](_0x18dc93(0x17c)));}}return 0x0;}}export class PSPzServiceCreateCommand extends BaseCommand{[a31_0x4797a6(0x15c)]=a31_0x4797a6(0x10c);[a31_0x4797a6(0x2eb)]=a31_0x4797a6(0x171);async[a31_0x4797a6(0x152)](_0x591921){const _0x29be4e=a31_0x4797a6,{options:_0x105a18,args:_0x21dd1a,tdx:_0x11eb6f}=_0x591921,_0x10b7a2=_0x105a18,_0x44e1b4=_0x21dd1a[0x0],_0x488c87=_0x21dd1a[0x1]||_0x105a18[_0x29be4e(0x13d)];if(!_0x44e1b4)return console[_0x29be4e(0x306)](_0x29be4e(0x23a)),console[_0x29be4e(0x306)](_0x29be4e(0x26b)),console[_0x29be4e(0x306)](_0x29be4e(0x22a)),0x1;if(!_0x488c87)return showParentSegmentNotSetError(_0x29be4e(0x1cc)+_0x29be4e(0x22a)),0x1;const _0x2619b4=await withSpinner(_0x29be4e(0x2d3)+_0x488c87+'\x27...',()=>_0x11eb6f[_0x29be4e(0x14c)]['resolveParentId'](_0x488c87),{'verbose':_0x105a18[_0x29be4e(0x282)]}),_0x52ab96=_0x2619b4[_0x29be4e(0x2a4)],_0xf4a3d8={'name':_0x44e1b4,'description':_0x10b7a2[_0x29be4e(0x2eb)],'public':_0x10b7a2[_0x29be4e(0x15e)]},_0x3c00d6=await withSpinner('Creating\x20personalization\x20service\x20\x27'+_0x44e1b4+'\x27...',()=>_0x11eb6f['personalization'][_0x29be4e(0x2d9)](_0x52ab96,_0xf4a3d8),{'verbose':_0x105a18['verbose']}),_0x556739=_0x3c00d6[_0x29be4e(0x2a4)];return console[_0x29be4e(0x306)](_0x29be4e(0x20d)+_0x556739['name']+_0x29be4e(0x19e)+_0x556739['id']),await handleSDKOutput([_0x556739],_0x105a18),0x0;}}export class PSPzServiceShowCommand extends BaseCommand{[a31_0x4797a6(0x15c)]=a31_0x4797a6(0x31a);['description']=a31_0x4797a6(0x29b);async[a31_0x4797a6(0x152)](_0x195349){const _0x38d4da=a31_0x4797a6,{options:_0x4c98b4,args:_0x1792e8,tdx:_0x97bbaf}=_0x195349,_0xbd0b90=_0x1792e8[0x0],_0x233d23=_0x1792e8[0x1]||_0x4c98b4['parentSegment'];if(!_0xbd0b90)return console[_0x38d4da(0x306)](_0x38d4da(0x2b4)),console[_0x38d4da(0x306)]('Usage:\x20tdx\x20ps\x20pz\x20service\x20show\x20<service_id>\x20[parent_segment]'),console[_0x38d4da(0x306)](_0x38d4da(0x317)),0x1;if(!_0x233d23)return showParentSegmentNotSetError(_0x38d4da(0x24b)+_0x38d4da(0x317)),0x1;const _0x458862=await withSpinner(_0x38d4da(0x2d3)+_0x233d23+_0x38d4da(0x131),()=>_0x97bbaf[_0x38d4da(0x14c)][_0x38d4da(0x127)](_0x233d23),{'verbose':_0x4c98b4['verbose']}),_0x375e2a=_0x458862[_0x38d4da(0x2a4)],_0x12c286=await withSpinner(_0x38d4da(0x1b0)+_0xbd0b90+_0x38d4da(0x131),()=>_0x97bbaf[_0x38d4da(0x264)][_0x38d4da(0x167)](_0x375e2a,_0xbd0b90),{'verbose':_0x4c98b4[_0x38d4da(0x282)]}),_0x2ec6c7=_0x12c286['data'];if(_0x4c98b4[_0x38d4da(0x1bf)]||_0x4c98b4[_0x38d4da(0x1bc)])await handleSDKOutput([_0x2ec6c7],_0x4c98b4);else{console['log'](a31_0x12b51f[_0x38d4da(0x287)](_0x2ec6c7[_0x38d4da(0x15c)])+'\x20'+a31_0x12b51f[_0x38d4da(0x2dc)]('(id:\x20'+_0x2ec6c7['id']+')'));_0x2ec6c7[_0x38d4da(0x2eb)]&&console[_0x38d4da(0x225)]('\x20\x20'+a31_0x12b51f['dim'](_0x2ec6c7[_0x38d4da(0x2eb)]));console[_0x38d4da(0x225)]('\x20\x20'+a31_0x12b51f[_0x38d4da(0x137)](_0x38d4da(0x294))+'\x20'+(_0x2ec6c7[_0x38d4da(0x15e)]?_0x38d4da(0x1fc):'no'));if(_0x2ec6c7['tokens']&&_0x2ec6c7[_0x38d4da(0x232)][_0x38d4da(0x16c)]>0x0)for(const _0x3d7699 of _0x2ec6c7['tokens']){const _0x599c72=_0x3d7699[_0x38d4da(0x27d)]?.[_0x38d4da(0x16c)]?_0x3d7699[_0x38d4da(0x27d)]['join'](',\x20'):'any';console['log']('\x20\x20'+a31_0x12b51f[_0x38d4da(0x137)]('token:')+'\x20'+_0x3d7699['name']+'\x20'+a31_0x12b51f['dim'](_0x38d4da(0x2ad)+_0x3d7699['id']+')')),console[_0x38d4da(0x225)]('\x20\x20\x20\x20'+a31_0x12b51f[_0x38d4da(0x2dc)](_0x38d4da(0x125))+'\x20'+_0x599c72);}else console[_0x38d4da(0x225)]('\x20\x20'+a31_0x12b51f[_0x38d4da(0x2dc)](_0x38d4da(0x17c)));}return 0x0;}}export class PSPzServiceDeleteCommand extends BaseCommand{['name']=a31_0x4797a6(0x2bd);[a31_0x4797a6(0x2eb)]='Delete\x20a\x20personalization\x20service';async[a31_0x4797a6(0x152)](_0x331e61){const _0xb55c25=a31_0x4797a6,{options:_0x22edd9,args:_0xf49dd7,tdx:_0x3beacb}=_0x331e61,_0x4e2c5a=_0xf49dd7[0x0],_0x28c7a0=_0xf49dd7[0x1]||_0x22edd9[_0xb55c25(0x13d)];if(!_0x4e2c5a)return console[_0xb55c25(0x306)](_0xb55c25(0x2b4)),console[_0xb55c25(0x306)]('Usage:\x20tdx\x20ps\x20pz\x20service\x20delete\x20<service_id>\x20[parent_segment]'),console[_0xb55c25(0x306)](_0xb55c25(0x27e)),0x1;if(!_0x28c7a0)return showParentSegmentNotSetError(_0xb55c25(0x24e)+_0xb55c25(0x27e)),0x1;const _0xf3e89=await withSpinner(_0xb55c25(0x2d3)+_0x28c7a0+'\x27...',()=>_0x3beacb['segment'][_0xb55c25(0x127)](_0x28c7a0),{'verbose':_0x22edd9['verbose']}),_0x48a564=_0xf3e89[_0xb55c25(0x2a4)];return await withSpinner(_0xb55c25(0x310)+_0x4e2c5a+_0xb55c25(0x131),()=>_0x3beacb[_0xb55c25(0x264)][_0xb55c25(0x2d0)](_0x48a564,_0x4e2c5a),{'verbose':_0x22edd9['verbose']}),console[_0xb55c25(0x306)](_0xb55c25(0x239)+_0x4e2c5a+'\x27'),0x0;}}export class PSPzServiceUpdateCommand extends BaseCommand{[a31_0x4797a6(0x15c)]=a31_0x4797a6(0x181);[a31_0x4797a6(0x2eb)]=a31_0x4797a6(0x1ed);async[a31_0x4797a6(0x152)](_0x21664c){const _0x518c51=a31_0x4797a6,{options:_0x15a179,args:_0x33b81d,tdx:_0x12e965}=_0x21664c,_0x125bf2=_0x15a179,_0x2e10e8=_0x33b81d[0x0],_0x1aebc6=_0x33b81d[0x1]||_0x15a179['parentSegment'];if(!_0x2e10e8)return console['error'](_0x518c51(0x2b4)),console[_0x518c51(0x306)](_0x518c51(0x2cb)),console[_0x518c51(0x306)](_0x518c51(0x138)),0x1;if(!_0x125bf2['name'])return console[_0x518c51(0x306)]('Error:\x20--name\x20is\x20required'),console[_0x518c51(0x306)](_0x518c51(0x2cb)),0x1;if(!_0x1aebc6)return showParentSegmentNotSetError(_0x518c51(0x100)+_0x518c51(0x138)),0x1;const _0x360365=await withSpinner(_0x518c51(0x2d3)+_0x1aebc6+_0x518c51(0x131),()=>_0x12e965[_0x518c51(0x14c)]['resolveParentId'](_0x1aebc6),{'verbose':_0x15a179[_0x518c51(0x282)]}),_0x512375=_0x360365['data'],_0x1a322a={'name':_0x125bf2[_0x518c51(0x15c)]};_0x125bf2[_0x518c51(0x2eb)]!==undefined&&(_0x1a322a[_0x518c51(0x2eb)]=_0x125bf2[_0x518c51(0x2eb)]);const _0x4dda2f=await withSpinner(_0x518c51(0x20c)+_0x2e10e8+'\x27...',()=>_0x12e965['personalization'][_0x518c51(0x1ea)](_0x512375,_0x2e10e8,_0x1a322a),{'verbose':_0x15a179[_0x518c51(0x282)]}),_0x5b23b1=_0x4dda2f['data'];return console[_0x518c51(0x306)](_0x518c51(0x2ae)+_0x5b23b1['name']+'\x27'),await handleSDKOutput([_0x5b23b1],_0x15a179),0x0;}}export class PSPzServiceTokenCreateCommand extends BaseCommand{[a31_0x4797a6(0x15c)]=a31_0x4797a6(0x2f6);[a31_0x4797a6(0x2eb)]=a31_0x4797a6(0x233);async[a31_0x4797a6(0x152)](_0x6b9e7d){const _0x542d48=a31_0x4797a6,{options:_0x3b7d77,args:_0x20600a,tdx:_0x434ae6}=_0x6b9e7d,_0x2864bc=_0x3b7d77,_0x57d27a=_0x20600a[0x0],_0x16dc2e=_0x20600a[0x1],_0x5960ad=_0x20600a[0x2]||_0x3b7d77[_0x542d48(0x13d)];if(!_0x57d27a)return console[_0x542d48(0x306)]('Error:\x20Token\x20name\x20is\x20required'),console[_0x542d48(0x306)](_0x542d48(0x2ff)),console[_0x542d48(0x306)]('\x20\x20\x20\x20\x20\x20\x20tdx\x20ps\x20pz\x20service\x20token\x20create\x20<name>\x20<service_id>\x20\x20#\x20Uses\x20context'),0x1;if(!_0x16dc2e)return console[_0x542d48(0x306)](_0x542d48(0x2b4)),console[_0x542d48(0x306)](_0x542d48(0x2ff)),console[_0x542d48(0x306)](_0x542d48(0x14a)),0x1;if(!_0x5960ad)return showParentSegmentNotSetError(_0x542d48(0x1c7)+_0x542d48(0x14a)),0x1;const _0x3e72dc=await withSpinner(_0x542d48(0x2d3)+_0x5960ad+'\x27...',()=>_0x434ae6['segment'][_0x542d48(0x127)](_0x5960ad),{'verbose':_0x3b7d77[_0x542d48(0x282)]}),_0x4962f1=_0x3e72dc[_0x542d48(0x2a4)],_0x5c7e66={'name':_0x57d27a};_0x2864bc[_0x542d48(0x27d)]&&(_0x5c7e66[_0x542d48(0x27d)]=_0x2864bc[_0x542d48(0x27d)][_0x542d48(0x17f)](',')[_0x542d48(0x1d5)](_0x10b02c=>_0x10b02c[_0x542d48(0x16a)]()));_0x2864bc['description']&&(_0x5c7e66[_0x542d48(0x2eb)]=_0x2864bc[_0x542d48(0x2eb)]);const _0x478187=await withSpinner('Creating\x20token\x20\x27'+_0x57d27a+_0x542d48(0x10f)+_0x16dc2e+_0x542d48(0x131),()=>_0x434ae6[_0x542d48(0x264)][_0x542d48(0x2fa)](_0x4962f1,_0x16dc2e,_0x5c7e66),{'verbose':_0x3b7d77[_0x542d48(0x282)]}),_0x38cbe3=_0x478187[_0x542d48(0x2a4)];return console[_0x542d48(0x306)]('✔\x20Created\x20token\x20\x27'+_0x38cbe3['name']+'\x27\x20with\x20ID:\x20'+_0x38cbe3['id']),_0x38cbe3[_0x542d48(0x217)]&&(console[_0x542d48(0x306)](a31_0x12b51f[_0x542d48(0x215)]('\x0a⚠\x20Save\x20this\x20token\x20value\x20-\x20it\x20will\x20not\x20be\x20shown\x20again:')),console['error'](a31_0x12b51f[_0x542d48(0x137)](_0x38cbe3[_0x542d48(0x217)])),console[_0x542d48(0x306)]('')),await handleSDKOutput([_0x38cbe3],_0x3b7d77),0x0;}}export class PSPzServiceTokenDeleteCommand extends BaseCommand{[a31_0x4797a6(0x15c)]='ps:pz:service:token:delete';[a31_0x4797a6(0x2eb)]='Delete\x20a\x20token\x20from\x20a\x20personalization\x20service';async['execute'](_0x2b640b){const _0x98c921=a31_0x4797a6,{options:_0x462756,args:_0x48af96,tdx:_0x1cf7ab}=_0x2b640b,_0x577226=_0x48af96[0x0],_0x5bea3b=_0x48af96[0x1]||_0x462756[_0x98c921(0x13d)];if(!_0x577226)return console[_0x98c921(0x306)](_0x98c921(0x16f)),console[_0x98c921(0x306)](_0x98c921(0x296)),console[_0x98c921(0x306)](_0x98c921(0x316)),0x1;if(!_0x5bea3b)return showParentSegmentNotSetError(_0x98c921(0x285)+_0x98c921(0x316)),0x1;const _0x3a4e5e=await withSpinner(_0x98c921(0x2d3)+_0x5bea3b+_0x98c921(0x131),()=>_0x1cf7ab[_0x98c921(0x14c)]['resolveParentId'](_0x5bea3b),{'verbose':_0x462756[_0x98c921(0x282)]}),_0x21002f=_0x3a4e5e[_0x98c921(0x2a4)],_0x32f90a=await withSpinner(_0x98c921(0x183),()=>_0x1cf7ab[_0x98c921(0x264)][_0x98c921(0x24c)](_0x21002f),{'verbose':_0x462756['verbose']}),_0x35f1cd=_0x32f90a['data'];let _0x29079a;for(const _0x17306b of _0x35f1cd){if(_0x17306b[_0x98c921(0x232)]?.[_0x98c921(0x1be)](_0x23e775=>_0x23e775['id']===_0x577226)){_0x29079a=_0x17306b['id'];break;}}if(!_0x29079a)return console[_0x98c921(0x306)](_0x98c921(0x28d)+_0x577226+_0x98c921(0x1cb)),0x1;const _0x1b4aaa=await withSpinner('Deleting\x20token\x20\x27'+_0x577226+_0x98c921(0x131),()=>_0x1cf7ab[_0x98c921(0x264)][_0x98c921(0x29d)](_0x21002f,_0x29079a,_0x577226),{'verbose':_0x462756['verbose']}),_0x25d7c1=_0x1b4aaa[_0x98c921(0x2a4)];return console[_0x98c921(0x306)](_0x98c921(0x20e)+(_0x25d7c1[_0x98c921(0x15c)]||_0x577226)+'\x27'),await handleSDKOutput([_0x25d7c1],_0x462756),0x0;}}export class PSPzListCommand extends BaseCommand{[a31_0x4797a6(0x15c)]='ps:pz:list';[a31_0x4797a6(0x2eb)]=a31_0x4797a6(0x1f7);async[a31_0x4797a6(0x152)](_0x17474d){const _0x10523c=a31_0x4797a6,{options:_0xb8ddf6,args:_0x5789d9,tdx:_0x195f29}=_0x17474d,_0xaa6f8a=_0x5789d9[0x0]||_0xb8ddf6['parentSegment'];if(!_0xaa6f8a)return showParentSegmentNotSetError(_0x10523c(0x139)+_0x10523c(0x26a)),0x1;const _0x4de0ef=await withSpinner(_0x10523c(0x2d3)+_0xaa6f8a+_0x10523c(0x131),()=>_0x195f29[_0x10523c(0x14c)][_0x10523c(0x127)](_0xaa6f8a),{'verbose':_0xb8ddf6[_0x10523c(0x282)]}),_0x4000a2=_0x4de0ef[_0x10523c(0x2a4)],_0x1a259b=await withSpinner(_0x10523c(0x27c)+_0xaa6f8a+_0x10523c(0x131),()=>_0x195f29[_0x10523c(0x264)][_0x10523c(0x2bb)](_0x4000a2),{'verbose':_0xb8ddf6[_0x10523c(0x282)]}),_0x1c1621=_0x1a259b[_0x10523c(0x2a4)];console['error'](_0x10523c(0x150)+_0x1c1621[_0x10523c(0x16c)]+_0x10523c(0x28f)+(_0x1c1621[_0x10523c(0x16c)]!==0x1?'s':''));if(_0xb8ddf6['format']===_0x10523c(0x1bf)||_0xb8ddf6['format']==='jsonl')await handleSDKOutput(_0x1c1621,_0xb8ddf6);else{if(_0x1c1621[_0x10523c(0x16c)]===0x0)console[_0x10523c(0x225)](_0x10523c(0x1de));else for(const _0x3c7bc1 of _0x1c1621){console[_0x10523c(0x225)](a31_0x12b51f[_0x10523c(0x287)](_0x3c7bc1[_0x10523c(0x15c)])+'\x20'+a31_0x12b51f[_0x10523c(0x2dc)]('(id:\x20'+_0x3c7bc1['id']+')'));_0x3c7bc1['description']&&console[_0x10523c(0x225)]('\x20\x20'+a31_0x12b51f[_0x10523c(0x2dc)](_0x3c7bc1[_0x10523c(0x2eb)]));const _0x392fa=_0x3c7bc1['sections']?.[_0x10523c(0x16c)]||0x0;console[_0x10523c(0x225)]('\x20\x20'+a31_0x12b51f[_0x10523c(0x137)](_0x10523c(0x122))+'\x20'+_0x392fa);if(_0x3c7bc1[_0x10523c(0x12f)]&&_0x3c7bc1[_0x10523c(0x12f)][_0x10523c(0x16c)]>0x0)for(const _0x3bc624 of _0x3c7bc1[_0x10523c(0x12f)]){console['log'](_0x10523c(0x24a)+_0x3bc624[_0x10523c(0x15c)]);}}}return 0x0;}}export class PSPzShowCommand extends BaseCommand{[a31_0x4797a6(0x15c)]='ps:pz:show';[a31_0x4797a6(0x2eb)]=a31_0x4797a6(0x21c);async[a31_0x4797a6(0x152)](_0x29652f){const _0x16a167=a31_0x4797a6,{options:_0x99844c,args:_0x53aacd,tdx:_0x20ffec}=_0x29652f,_0x1baae5=_0x53aacd[0x0];if(!_0x1baae5)return console[_0x16a167(0x306)](_0x16a167(0x129)),console[_0x16a167(0x306)]('Usage:\x20tdx\x20ps\x20pz\x20show\x20<personalization_id>'),0x1;const _0x439fc2=await withSpinner(_0x16a167(0x2e7)+_0x1baae5+_0x16a167(0x131),()=>_0x20ffec[_0x16a167(0x264)]['getPersonalization'](_0x1baae5),{'verbose':_0x99844c[_0x16a167(0x282)]}),_0x403aa4=_0x439fc2['data'];console[_0x16a167(0x306)](_0x16a167(0x313)+_0x403aa4['name']+'\x27');if(_0x99844c[_0x16a167(0x1b6)]===_0x16a167(0x1bf)||_0x99844c['format']===_0x16a167(0x1bc))await handleSDKOutput([_0x403aa4],_0x99844c);else{console[_0x16a167(0x225)](a31_0x12b51f[_0x16a167(0x287)](_0x403aa4[_0x16a167(0x15c)])+'\x20'+a31_0x12b51f[_0x16a167(0x2dc)](_0x16a167(0x2ad)+_0x403aa4['id']+')'));_0x403aa4[_0x16a167(0x2eb)]&&console[_0x16a167(0x225)]('\x20\x20'+a31_0x12b51f['dim'](_0x403aa4[_0x16a167(0x2eb)]));_0x403aa4[_0x16a167(0x108)]&&console['log']('\x20\x20'+a31_0x12b51f['cyan'](_0x16a167(0x278))+'\x20'+_0x403aa4[_0x16a167(0x108)]);console[_0x16a167(0x225)]('\x20\x20'+a31_0x12b51f[_0x16a167(0x137)](_0x16a167(0x292))+'\x20'+_0x403aa4['createdAt']),console[_0x16a167(0x225)]('\x20\x20'+a31_0x12b51f[_0x16a167(0x137)](_0x16a167(0x11b))+'\x20'+_0x403aa4[_0x16a167(0x1f1)]);const _0x198114=_0x403aa4[_0x16a167(0x12f)]?.['length']||0x0;console[_0x16a167(0x225)]('\x20\x20'+a31_0x12b51f['cyan'](_0x16a167(0x122))+'\x20'+_0x198114);if(_0x403aa4[_0x16a167(0x12f)]&&_0x403aa4[_0x16a167(0x12f)][_0x16a167(0x16c)]>0x0)for(const _0x196cc7 of _0x403aa4['sections']){console[_0x16a167(0x225)](_0x16a167(0x10b)+a31_0x12b51f['bold'](_0x196cc7[_0x16a167(0x15c)])+'\x20'+a31_0x12b51f['dim'](_0x16a167(0x2ad)+_0x196cc7['id']+')')),_0x196cc7[_0x16a167(0x2ef)]&&(console[_0x16a167(0x225)](_0x16a167(0x1a5)+a31_0x12b51f[_0x16a167(0x137)](_0x16a167(0x111))+'\x20'+_0x196cc7['entryCriteria']['name']),_0x196cc7[_0x16a167(0x2ef)][_0x16a167(0x18b)]?.[_0x16a167(0x235)]&&console[_0x16a167(0x225)]('\x20\x20\x20\x20\x20\x20\x20\x20'+a31_0x12b51f['cyan'](_0x16a167(0x25b))+'\x20'+_0x196cc7[_0x16a167(0x2ef)][_0x16a167(0x18b)][_0x16a167(0x235)])),_0x196cc7['payload']&&console[_0x16a167(0x225)](_0x16a167(0x1a5)+a31_0x12b51f['cyan']('payload:')+'\x20'+JSON[_0x16a167(0x196)](_0x196cc7['payload'])),_0x196cc7['includeSensitive']&&console[_0x16a167(0x225)](_0x16a167(0x1a5)+a31_0x12b51f[_0x16a167(0x137)](_0x16a167(0x101))+_0x16a167(0x1b2));}}return 0x0;}}export class PSPzDeleteCommand extends BaseCommand{[a31_0x4797a6(0x15c)]=a31_0x4797a6(0x248);['description']='Delete\x20a\x20realtime\x20personalization';async['execute'](_0x1542b0){const _0x49d072=a31_0x4797a6,{options:_0x1c2f17,args:_0x4a79ed,tdx:_0x149920}=_0x1542b0,_0x4937d6=_0x4a79ed[0x0];if(!_0x4937d6)return console[_0x49d072(0x306)]('Error:\x20Personalization\x20ID\x20is\x20required'),console[_0x49d072(0x306)](_0x49d072(0x283)),0x1;return await withSpinner(_0x49d072(0x2ee)+_0x4937d6+_0x49d072(0x131),()=>_0x149920[_0x49d072(0x264)][_0x49d072(0x276)](_0x4937d6),{'verbose':_0x1c2f17[_0x49d072(0x282)]}),console['error'](_0x49d072(0x297)+_0x4937d6+'\x27'),0x0;}}export class PSPzCreateCommand extends BaseCommand{[a31_0x4797a6(0x15c)]=a31_0x4797a6(0x2b5);[a31_0x4797a6(0x2eb)]=a31_0x4797a6(0x1c3);async[a31_0x4797a6(0x152)](_0x2ffb26){const _0x1543f6=a31_0x4797a6,{options:_0x4a89d2,tdx:_0x4bf463}=_0x2ffb26,_0x3ca2a5=_0x4a89d2;let _0x5b6109;if(_0x3ca2a5[_0x1543f6(0x104)]){_0x5b6109=await loadJSON(_0x3ca2a5[_0x1543f6(0x104)],!![]);if(!_0x5b6109[_0x1543f6(0xff)]?.[_0x1543f6(0x19f)])return console[_0x1543f6(0x306)](_0x1543f6(0x1e4)),console[_0x1543f6(0x306)](_0x1543f6(0x1c4)),console[_0x1543f6(0x306)](_0x1543f6(0x2c4)),0x1;}else{if(!_0x3ca2a5[_0x1543f6(0x15c)])return console['error']('Error:\x20--name\x20is\x20required\x20(or\x20use\x20--file\x20for\x20a\x20full\x20request\x20body)'),console[_0x1543f6(0x306)](_0x1543f6(0x2e1)),console[_0x1543f6(0x306)](_0x1543f6(0x10e)),0x1;if(_0x3ca2a5[_0x1543f6(0x2eb)]===undefined)return console[_0x1543f6(0x306)](_0x1543f6(0x1ab)),console[_0x1543f6(0x306)](_0x1543f6(0x2e1)),console[_0x1543f6(0x306)](_0x1543f6(0x10e)),0x1;if(_0x3ca2a5[_0x1543f6(0x1ac)]===undefined)return console[_0x1543f6(0x306)](_0x1543f6(0x14b)),console[_0x1543f6(0x306)](_0x1543f6(0x147)),0x1;let _0xb3501b=_0x3ca2a5[_0x1543f6(0x108)];if(!_0xb3501b&&_0x4a89d2[_0x1543f6(0x13d)]){const _0x187490=await withSpinner('Resolving\x20parent\x20segment\x20\x27'+_0x4a89d2[_0x1543f6(0x13d)]+_0x1543f6(0x131),()=>_0x4bf463[_0x1543f6(0x14c)]['resolveParentId'](_0x4a89d2[_0x1543f6(0x13d)]),{'verbose':_0x4a89d2[_0x1543f6(0x282)]});_0xb3501b=_0x187490[_0x1543f6(0x2a4)];}let _0x207356;_0x3ca2a5[_0x1543f6(0x12f)]&&(_0x207356=await loadJSON(_0x3ca2a5[_0x1543f6(0x12f)],![]));const _0x2c77fe=_0x3ca2a5[_0x1543f6(0x1ac)]===_0x1543f6(0x31c)?null:{'id':_0x3ca2a5[_0x1543f6(0x1ac)],'type':_0x1543f6(0x28c)};_0x5b6109={'attributes':{'name':_0x3ca2a5['name'],'description':_0x3ca2a5['description']||null,..._0xb3501b!==undefined&&{'audienceId':_0xb3501b},..._0x207356!==undefined&&{'sections':_0x207356}},'relationships':{'parentFolder':{'data':_0x2c77fe}}};}const _0x22abc6=await withSpinner(_0x1543f6(0x17b)+(_0x5b6109[_0x1543f6(0x2b7)]?.[_0x1543f6(0x15c)]??'')+_0x1543f6(0x131),()=>_0x4bf463[_0x1543f6(0x264)]['createPersonalization'](_0x5b6109),{'verbose':_0x4a89d2[_0x1543f6(0x282)]}),_0x52fd2c=_0x22abc6[_0x1543f6(0x2a4)];return console[_0x1543f6(0x306)](_0x1543f6(0x1cd)+_0x52fd2c['name']+_0x1543f6(0x19e)+_0x52fd2c['id']),await handleSDKOutput([_0x52fd2c],_0x4a89d2),0x0;}}export class PSPzPatchCommand extends BaseCommand{['name']=a31_0x4797a6(0x2a3);['description']=a31_0x4797a6(0x155);async[a31_0x4797a6(0x152)](_0x47f0bd){const _0x46ea51=a31_0x4797a6,{options:_0x364228,args:_0x3b8571}=_0x47f0bd,_0x344930=_0x364228,_0x22f0da=_0x3b8571[0x0];if(!_0x22f0da)return console[_0x46ea51(0x306)]('Error:\x20Personalization\x20ID\x20is\x20required'),console[_0x46ea51(0x306)]('Usage:\x20tdx\x20ps\x20pz\x20patch\x20<id>\x20--name\x20<name>\x20--description\x20<desc>\x20[--sections\x20<json>]'),console[_0x46ea51(0x306)](_0x46ea51(0x144)),0x1;let _0x1f3628;if(_0x344930[_0x46ea51(0x104)])_0x1f3628=await loadJSON(_0x344930[_0x46ea51(0x104)],!![]);else{if(!_0x344930[_0x46ea51(0x15c)])return console[_0x46ea51(0x306)](_0x46ea51(0x205)),console['error'](_0x46ea51(0x168)),0x1;if(_0x344930[_0x46ea51(0x2eb)]===undefined)return console[_0x46ea51(0x306)](_0x46ea51(0x1ab)),console[_0x46ea51(0x306)]('Usage:\x20tdx\x20ps\x20pz\x20patch\x20<id>\x20--name\x20<name>\x20--description\x20<desc>\x20[--sections\x20<json>]'),0x1;let _0x2073c3;_0x344930[_0x46ea51(0x12f)]&&(_0x2073c3=await loadJSON(_0x344930[_0x46ea51(0x12f)],![])),_0x1f3628={'attributes':{'name':_0x344930[_0x46ea51(0x15c)],'description':_0x344930[_0x46ea51(0x2eb)]||null,..._0x2073c3!==undefined&&{'sections':_0x2073c3}}};}const {tdx:_0x4f6668}=_0x47f0bd,_0x4710c3=await withSpinner(_0x46ea51(0x2a9)+_0x22f0da+'\x27...',()=>_0x4f6668[_0x46ea51(0x264)][_0x46ea51(0x307)](_0x22f0da,_0x1f3628),{'verbose':_0x364228[_0x46ea51(0x282)]}),_0x37ba36=_0x4710c3[_0x46ea51(0x2a4)];return console[_0x46ea51(0x306)](_0x46ea51(0x19d)+_0x37ba36[_0x46ea51(0x15c)]+'\x27\x20(id:\x20'+_0x37ba36['id']+')'),await handleSDKOutput([_0x37ba36],_0x364228),0x0;}}export class PSPzInitCommand extends BaseParentSegmentCommand{[a31_0x4797a6(0x15c)]=a31_0x4797a6(0x190);[a31_0x4797a6(0x2eb)]=a31_0x4797a6(0x1c8);async[a31_0x4797a6(0x152)](_0x10dba3){const _0x59f12d=a31_0x4797a6,{options:_0xbb367f,args:_0x5752c6}=_0x10dba3,_0x453587=_0x5752c6[0x0]||_0xbb367f[_0x59f12d(0x13d)];if(!_0x453587)return showParentSegmentNotSetError(_0x59f12d(0x277)+_0x59f12d(0x148)),0x1;const _0x20c329=resolveYamlFile(_0x453587);if(!existsSync(_0x20c329))return showFileNotFoundError(_0x20c329,_0x453587),0x1;let _0x234245;try{_0x234245=readFileSync(_0x20c329,_0x59f12d(0x1aa));}catch(_0x553be9){const _0x396da4=_0x553be9 instanceof Error?_0x553be9[_0x59f12d(0x182)]:String(_0x553be9);return console[_0x59f12d(0x306)](_0x59f12d(0x251)+_0x396da4),0x1;}let _0x5d364e;try{_0x5d364e=parseDef(_0x234245);}catch(_0x271227){const _0x5e6f83=_0x271227 instanceof Error?_0x271227[_0x59f12d(0x182)]:String(_0x271227);return console['error'](a31_0x12b51f['red']('Error\x20parsing\x20YAML:\x20'+_0x5e6f83)),0x1;}if(_0x5d364e[_0x59f12d(0x240)]&&_0x5d364e[_0x59f12d(0x240)][_0x59f12d(0x16c)]>0x0)return console[_0x59f12d(0x306)](a31_0x12b51f[_0x59f12d(0x215)](_0x59f12d(0x105)+_0x20c329)),console[_0x59f12d(0x306)](a31_0x12b51f[_0x59f12d(0x2dc)](_0x59f12d(0x1af)+_0x5d364e[_0x59f12d(0x240)]['length']+_0x59f12d(0x1d9))),0x1;!_0x5d364e[_0x59f12d(0x20f)]&&(_0x5d364e[_0x59f12d(0x20f)]={'events':[{'name':_0x59f12d(0x2fc),'source_table':_0x59f12d(0x107)}],'attributes':[{'name':_0x59f12d(0x193),'type':_0x59f12d(0x1c6)}],'id_stitching':{'primary_key':_0x5d364e[_0x59f12d(0x2fe)][_0x59f12d(0x262)]===_0x59f12d(0x2e2)?_0x59f12d(0x2f4):_0x59f12d(0x246)}});_0x5d364e[_0x59f12d(0x240)]=[{'name':_0x59f12d(0x162),'description':_0x59f12d(0x120),'trigger_event':_0x59f12d(0x2fc),'sections':[{'name':_0x59f12d(0x179),'criteria':_0x59f12d(0x25e),'attributes':[_0x59f12d(0x193)]}]}];const _0x2d8e07=serializeDef(_0x5d364e);return writeFileSync(_0x20c329,_0x2d8e07,_0x59f12d(0x1aa)),console[_0x59f12d(0x306)](a31_0x12b51f[_0x59f12d(0x2db)]('✔')+_0x59f12d(0x219)+a31_0x12b51f['cyan'](_0x20c329)),(!_0x5d364e[_0x59f12d(0x20f)]||_0x234245['indexOf'](_0x59f12d(0x261))===-0x1)&&console[_0x59f12d(0x306)](a31_0x12b51f[_0x59f12d(0x2db)]('✔')+_0x59f12d(0x1da)),console[_0x59f12d(0x306)]('\x0a'+a31_0x12b51f[_0x59f12d(0x2dc)](_0x59f12d(0x15f))),console[_0x59f12d(0x306)](_0x59f12d(0x2f8)+_0x20c329+'\x20to\x20configure\x20your\x20personalization\x20service'),console[_0x59f12d(0x306)]('\x20\x202.\x20Run\x20'+a31_0x12b51f[_0x59f12d(0x2dc)](_0x59f12d(0x102)+_0x453587)+_0x59f12d(0x300)),0x0;}}
|