@treasuredata/tdx 2026.3.7 → 2026.3.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (215) hide show
  1. package/dist/bin.js +1 -1
  2. package/dist/build-info.json +3 -3
  3. package/dist/cli-categories.js +1 -1
  4. package/dist/cli.js +1 -1
  5. package/dist/commands/activations.js +1 -1
  6. package/dist/commands/agent-command.js +1 -1
  7. package/dist/commands/agent-test-command.js +1 -1
  8. package/dist/commands/api-command.js +1 -1
  9. package/dist/commands/auth-command.js +1 -1
  10. package/dist/commands/auth-command.js.map +1 -1
  11. package/dist/commands/auth-login-command.js +1 -1
  12. package/dist/commands/chat-command.js +1 -1
  13. package/dist/commands/claude-command.js +1 -1
  14. package/dist/commands/claude-statusline-command.js +1 -1
  15. package/dist/commands/claude-usage-command.js +1 -1
  16. package/dist/commands/command.js +1 -1
  17. package/dist/commands/connection-command.js +1 -1
  18. package/dist/commands/databases.js +1 -1
  19. package/dist/commands/delivery-command.js +1 -1
  20. package/dist/commands/describe.js +1 -1
  21. package/dist/commands/engage-campaign-pull-command.js +1 -1
  22. package/dist/commands/engage-campaign-push-command.js +1 -1
  23. package/dist/commands/engage-campaign-validate-command.js +1 -1
  24. package/dist/commands/engage-command.js +1 -1
  25. package/dist/commands/engage-template-pull-command.js +1 -1
  26. package/dist/commands/engage-template-push-command.js +1 -1
  27. package/dist/commands/engage-template-validate-command.js +1 -1
  28. package/dist/commands/job-command.js +1 -1
  29. package/dist/commands/journey-command.js +1 -1
  30. package/dist/commands/journey-validate-command.js +1 -1
  31. package/dist/commands/llm-command.js +1 -1
  32. package/dist/commands/mcp-command.js +1 -1
  33. package/dist/commands/parent-segment-command.js +1 -1
  34. package/dist/commands/profile-command.js +1 -1
  35. package/dist/commands/profiles-command.d.ts.map +1 -1
  36. package/dist/commands/profiles-command.js +1 -1
  37. package/dist/commands/profiles-command.js.map +1 -1
  38. package/dist/commands/query-command.js +1 -1
  39. package/dist/commands/schedule-command.js +1 -1
  40. package/dist/commands/segment-command.js +1 -1
  41. package/dist/commands/segment-create-command.js +1 -1
  42. package/dist/commands/segment-fields-command.js +1 -1
  43. package/dist/commands/segment-pull-command.js +1 -1
  44. package/dist/commands/segment-push-command.js +1 -1
  45. package/dist/commands/segment-update-command.js +1 -1
  46. package/dist/commands/segment-use-command.js +1 -1
  47. package/dist/commands/segment-validate-command.js +1 -1
  48. package/dist/commands/segments.js +1 -1
  49. package/dist/commands/show.js +1 -1
  50. package/dist/commands/status-command.js +1 -1
  51. package/dist/commands/tables.js +1 -1
  52. package/dist/commands/unset-command.js +1 -1
  53. package/dist/commands/upgrade-command.js +1 -1
  54. package/dist/commands/use-command.js +1 -1
  55. package/dist/commands/user-command.d.ts.map +1 -1
  56. package/dist/commands/user-command.js +1 -1
  57. package/dist/commands/user-command.js.map +1 -1
  58. package/dist/commands/workflow-command.js +1 -1
  59. package/dist/core/auth.js +1 -1
  60. package/dist/core/command-output.js +1 -1
  61. package/dist/core/config.js +1 -1
  62. package/dist/core/connection-cache.js +1 -1
  63. package/dist/core/constants.js +1 -1
  64. package/dist/core/credential-cache.js +1 -1
  65. package/dist/core/global-context.js +1 -1
  66. package/dist/core/keychain.js +1 -1
  67. package/dist/core/oauth-keychain.js +1 -1
  68. package/dist/core/oauth.d.ts +2 -2
  69. package/dist/core/oauth.d.ts.map +1 -1
  70. package/dist/core/oauth.js +1 -1
  71. package/dist/core/oauth.js.map +1 -1
  72. package/dist/core/profile.js +1 -1
  73. package/dist/core/profile.js.map +1 -1
  74. package/dist/core/project-config.js +1 -1
  75. package/dist/core/session.js +1 -1
  76. package/dist/core/user-cache.js +1 -1
  77. package/dist/core/version.js +1 -1
  78. package/dist/index.js +1 -1
  79. package/dist/mcp/server.js +1 -1
  80. package/dist/mcp/tools/index.js +1 -1
  81. package/dist/mcp/tools/tdx-run.js +1 -1
  82. package/dist/mcp/tools/tdx-search.js +1 -1
  83. package/dist/mcp/utils.js +1 -1
  84. package/dist/proxy/claude-usage-tracker.js +1 -1
  85. package/dist/proxy/passthrough-server.js +1 -1
  86. package/dist/proxy/sse-usage-parser.js +1 -1
  87. package/dist/sdk/agent/agent-config.js +1 -1
  88. package/dist/sdk/agent/agent-ref-parser.js +1 -1
  89. package/dist/sdk/agent/agent-yaml.js +1 -1
  90. package/dist/sdk/agent/test/evaluator.js +1 -1
  91. package/dist/sdk/agent/test/executor.js +1 -1
  92. package/dist/sdk/agent/test/index.js +1 -1
  93. package/dist/sdk/agent/test/output.js +1 -1
  94. package/dist/sdk/agent/test/parser.js +1 -1
  95. package/dist/sdk/agent/tool-target-registry.js +1 -1
  96. package/dist/sdk/api.js +1 -1
  97. package/dist/sdk/client/cdp-api-client.js +1 -1
  98. package/dist/sdk/client/delivery-api-client.js +1 -1
  99. package/dist/sdk/client/endpoints.js +1 -1
  100. package/dist/sdk/client/endpoints.js.map +1 -1
  101. package/dist/sdk/client/engage-api-client.js +1 -1
  102. package/dist/sdk/client/http-client.js +1 -1
  103. package/dist/sdk/client/llm-api-client.js +1 -1
  104. package/dist/sdk/client/oauth-refresh.d.ts +1 -1
  105. package/dist/sdk/client/oauth-refresh.js +1 -1
  106. package/dist/sdk/client/rate-limiter.js +1 -1
  107. package/dist/sdk/client/td-api-client.js +1 -1
  108. package/dist/sdk/client/trino-api-client.js +1 -1
  109. package/dist/sdk/client/workflow-client.js +1 -1
  110. package/dist/sdk/connection-validator.js +1 -1
  111. package/dist/sdk/connection.js +1 -1
  112. package/dist/sdk/delivery.js +1 -1
  113. package/dist/sdk/engage/campaign-pull.js +1 -1
  114. package/dist/sdk/engage/campaign-push.js +1 -1
  115. package/dist/sdk/engage/campaign-validator.js +1 -1
  116. package/dist/sdk/engage/campaign-yaml.js +1 -1
  117. package/dist/sdk/engage/template-pull.js +1 -1
  118. package/dist/sdk/engage/template-push.js +1 -1
  119. package/dist/sdk/engage/template-validator.js +1 -1
  120. package/dist/sdk/engage/template-yaml.js +1 -1
  121. package/dist/sdk/engage/types/campaign-def.js +1 -1
  122. package/dist/sdk/engage/types/campaign-schema.js +1 -1
  123. package/dist/sdk/engage/types/template-schema.js +1 -1
  124. package/dist/sdk/engage.js +1 -1
  125. package/dist/sdk/errors.js +1 -1
  126. package/dist/sdk/index.js +1 -1
  127. package/dist/sdk/io/index.js +1 -1
  128. package/dist/sdk/io/node-filesystem.js +1 -1
  129. package/dist/sdk/job.js +1 -1
  130. package/dist/sdk/journey.js +1 -1
  131. package/dist/sdk/llm/chat-cache.js +1 -1
  132. package/dist/sdk/llm/index.js +1 -1
  133. package/dist/sdk/llm/llm-backup-utils.js +1 -1
  134. package/dist/sdk/llm/model-factors.js +1 -1
  135. package/dist/sdk/personalization.js +1 -1
  136. package/dist/sdk/query/index.js +1 -1
  137. package/dist/sdk/query/sql-parser.js +1 -1
  138. package/dist/sdk/realtime.js +1 -1
  139. package/dist/sdk/schedule.js +1 -1
  140. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  141. package/dist/sdk/segment/fields-display.js +1 -1
  142. package/dist/sdk/segment/file-discovery.js +1 -1
  143. package/dist/sdk/segment/journey-utils.d.ts.map +1 -1
  144. package/dist/sdk/segment/journey-utils.js +1 -1
  145. package/dist/sdk/segment/journey-utils.js.map +1 -1
  146. package/dist/sdk/segment/journey-validator.js +1 -1
  147. package/dist/sdk/segment/journey-yaml.js +1 -1
  148. package/dist/sdk/segment/journey-yaml.js.map +1 -1
  149. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  150. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  151. package/dist/sdk/segment/pull-workflow.js +1 -1
  152. package/dist/sdk/segment/push-recovery.js +1 -1
  153. package/dist/sdk/segment/push-workflow.js +1 -1
  154. package/dist/sdk/segment/resolution-context.js +1 -1
  155. package/dist/sdk/segment/segment-path-parser.js +1 -1
  156. package/dist/sdk/segment/segment-ref-parser.js +1 -1
  157. package/dist/sdk/segment/segment-validator.js +1 -1
  158. package/dist/sdk/segment/target-resolution.js +1 -1
  159. package/dist/sdk/segment/tdx-config.js +1 -1
  160. package/dist/sdk/segment/types/activation-schema.js +1 -1
  161. package/dist/sdk/segment/types/journey-def.js +1 -1
  162. package/dist/sdk/segment/types/journey-schema.js +1 -1
  163. package/dist/sdk/segment/types/segment-def.js +1 -1
  164. package/dist/sdk/segment/types/segment-schema.js +1 -1
  165. package/dist/sdk/segment/validate-files.js +1 -1
  166. package/dist/sdk/segment/yaml-validator.js +1 -1
  167. package/dist/sdk/segment.js +1 -1
  168. package/dist/sdk/types/index.js +1 -1
  169. package/dist/sdk/types/progress.js +1 -1
  170. package/dist/sdk/user.js +1 -1
  171. package/dist/sdk/util/format-detector.js +1 -1
  172. package/dist/sdk/util/formatters.js +1 -1
  173. package/dist/sdk/util/index.js +1 -1
  174. package/dist/sdk/util/paginate.js +1 -1
  175. package/dist/sdk/util/tree-formatter.js +1 -1
  176. package/dist/sdk/workflow/archive-validation.js +1 -1
  177. package/dist/sdk/workflow/clone-workflow.js +1 -1
  178. package/dist/sdk/workflow/index.js +1 -1
  179. package/dist/sdk/workflow/pull-workflow.js +1 -1
  180. package/dist/sdk/workflow/push-workflow.js +1 -1
  181. package/dist/sdk/workflow/tdx-config.js +1 -1
  182. package/dist/sdk/workflow/workflow-utils.js +1 -1
  183. package/dist/test-utils/command-runner.js +1 -1
  184. package/dist/test-utils/factories.js +1 -1
  185. package/dist/test-utils/fixtures.js +1 -1
  186. package/dist/test-utils/http-mock.js +1 -1
  187. package/dist/test-utils/index.js +1 -1
  188. package/dist/utils/async.js +1 -1
  189. package/dist/utils/colors.js +1 -1
  190. package/dist/utils/diff.js +1 -1
  191. package/dist/utils/file-permissions.js +1 -1
  192. package/dist/utils/file-reader.js +1 -1
  193. package/dist/utils/github-releases.js +1 -1
  194. package/dist/utils/global-cache.js +1 -1
  195. package/dist/utils/json-loader.js +1 -1
  196. package/dist/utils/local-cache.js +1 -1
  197. package/dist/utils/logger/formatters/default-formatter.js +1 -1
  198. package/dist/utils/logger/formatters/index.js +1 -1
  199. package/dist/utils/logger/handlers/console-handler.js +1 -1
  200. package/dist/utils/logger/handlers/file-handler.js +1 -1
  201. package/dist/utils/logger/handlers/index.js +1 -1
  202. package/dist/utils/logger/handlers/null-handler.js +1 -1
  203. package/dist/utils/logger/index.js +1 -1
  204. package/dist/utils/logger/logger.js +1 -1
  205. package/dist/utils/logger/types.js +1 -1
  206. package/dist/utils/option-validation.js +1 -1
  207. package/dist/utils/process.js +1 -1
  208. package/dist/utils/prompt.js +1 -1
  209. package/dist/utils/spinner.js +1 -1
  210. package/dist/utils/sse-parser.js +1 -1
  211. package/dist/utils/string-utils.js +1 -1
  212. package/dist/utils/table-ref-parser.js +1 -1
  213. package/dist/utils/tdx-logger.js +1 -1
  214. package/dist/utils/version-check.js +1 -1
  215. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x5ab66e,_0x3a8669){const _0x1e45bf=a144_0x24b7,_0x4e2d7c=_0x5ab66e();while(!![]){try{const _0x5792fb=-parseInt(_0x1e45bf(0x1b5))/0x1*(parseInt(_0x1e45bf(0x18d))/0x2)+-parseInt(_0x1e45bf(0x1c1))/0x3+parseInt(_0x1e45bf(0x1c3))/0x4*(-parseInt(_0x1e45bf(0x1a2))/0x5)+parseInt(_0x1e45bf(0x19a))/0x6+parseInt(_0x1e45bf(0x1bb))/0x7*(parseInt(_0x1e45bf(0x1c2))/0x8)+-parseInt(_0x1e45bf(0x1af))/0x9+-parseInt(_0x1e45bf(0x1a6))/0xa;if(_0x5792fb===_0x3a8669)break;else _0x4e2d7c['push'](_0x4e2d7c['shift']());}catch(_0x4c15a6){_0x4e2d7c['push'](_0x4e2d7c['shift']());}}}(a144_0x77bf,0xcbf06));import{SegmentDefSchema,RuleDefSchema}from'./types/segment-schema.js';import{formatZodPath,flattenZodIssues,getLocationFromPath,pathToArray}from'./yaml-validator.js';export function validateSegmentDef(_0x972df9,_0x330115={},_0x3b778f={}){const _0x481c64=a144_0x24b7;if(_0x3b778f[_0x481c64(0x1b6)])return runSemanticChecks(_0x972df9,_0x330115);const _0x2dcb76=SegmentDefSchema[_0x481c64(0x197)](_0x972df9);if(_0x2dcb76[_0x481c64(0x1ae)])return runSemanticChecks(_0x2dcb76['data'],_0x330115);return zodErrorsToValidationResult(_0x2dcb76[_0x481c64(0x1c8)],_0x330115);}export function validateRuleDef(_0xd538fe,_0x4e8b7f,_0x1f8f45){const _0xe0c830=a144_0x24b7;if(!_0xd538fe)return[];const _0x840135=RuleDefSchema['safeParse'](_0xd538fe);if(_0x840135[_0xe0c830(0x1ae)])return checkRule(_0x840135[_0xe0c830(0x1c5)],_0x4e8b7f,_0x1f8f45);const _0x2cca6e=flattenZodIssues(_0x840135[_0xe0c830(0x1c8)]['issues']);return _0x2cca6e[_0xe0c830(0x1b8)](_0x4de6eb=>{const _0x46dc14=_0xe0c830,_0x5a0f59=formatZodPath(_0x4de6eb[_0x46dc14(0x18a)]),_0x56e550=_0x5a0f59?_0x4e8b7f+'.'+_0x5a0f59:_0x4e8b7f,_0x44cdaa=mapZodIssueToCode(_0x4de6eb,_0x5a0f59),_0x2200bc=getLocationFromPath(_0x1f8f45[_0x46dc14(0x194)],_0x1f8f45[_0x46dc14(0x1cf)],pathToArray(_0x56e550));return{'level':_0x46dc14(0x1c8),'path':_0x56e550,'code':_0x44cdaa,'message':_0x4de6eb[_0x46dc14(0x1b4)],..._0x2200bc&&{'location':_0x2200bc}};});}function zodErrorsToValidationResult(_0x3b5820,_0x1aa931){const _0x190fd4=a144_0x24b7,_0x4849e8=flattenZodIssues(_0x3b5820[_0x190fd4(0x1cb)]),_0x8802ef=_0x4849e8[_0x190fd4(0x1b8)](_0x113dea=>{const _0x1d8b12=_0x190fd4,_0x59db83=formatZodPath(_0x113dea['path']),_0x1766a1=mapZodIssueToCode(_0x113dea,_0x59db83),_0xd5004a=getLocationFromPath(_0x1aa931[_0x1d8b12(0x194)],_0x1aa931[_0x1d8b12(0x1cf)],_0x113dea[_0x1d8b12(0x18a)][_0x1d8b12(0x1b8)](_0x2e79b8=>typeof _0x2e79b8===_0x1d8b12(0x189)?String(_0x2e79b8):_0x2e79b8));return{'level':_0x1d8b12(0x1c8),'path':_0x59db83,'code':_0x1766a1,'message':_0x113dea[_0x1d8b12(0x1b4)],..._0xd5004a&&{'location':_0xd5004a}};});return{'valid':![],'errors':_0x8802ef,'warnings':[]};}function a144_0x24b7(_0x24fdc4,_0x589266){_0x24fdc4=_0x24fdc4-0x188;const _0x77bfc1=a144_0x77bf();let _0x24b76f=_0x77bfc1[_0x24fdc4];return _0x24b76f;}function mapZodIssueToCode(_0x2ee1d3,_0x3e0240){const _0x2d363f=a144_0x24b7,_0x4f178f=_0x2ee1d3[_0x2d363f(0x1a4)]===_0x2d363f(0x1a8)?_0x2ee1d3[_0x2d363f(0x1ab)]:undefined;if(_0x3e0240===_0x2d363f(0x19d))return _0x2d363f(0x1ac);if(_0x3e0240===_0x2d363f(0x190)||_0x3e0240['endsWith'](_0x2d363f(0x1ad))){if(_0x2ee1d3['code']===_0x2d363f(0x1b9)){if(_0x3e0240==='rule.type'||_0x3e0240['match'](/\.conditions\[\d+\]\.type$/))return _0x2d363f(0x19b);}}if(_0x3e0240['endsWith'](_0x2d363f(0x1a5)))return'INVALID_OPERATOR_TYPE';if(_0x3e0240[_0x2d363f(0x1c9)](_0x2d363f(0x1ba)))return'MISSING_OPERATOR_VALUE';if(_0x4f178f?.[_0x2d363f(0x1bf)]==='MISSING_BETWEEN_BOUNDS')return _0x2d363f(0x1cc);if(_0x4f178f?.[_0x2d363f(0x1bf)]===_0x2d363f(0x18b))return _0x2d363f(0x18b);if(_0x3e0240[_0x2d363f(0x1c9)](_0x2d363f(0x1a3))||_0x3e0240===_0x2d363f(0x1b3))return _0x2d363f(0x192);if(_0x3e0240['includes']('arrayMatching'))return _0x2d363f(0x1c4);if(_0x3e0240[_0x2d363f(0x1c9)](_0x2d363f(0x1b2)))return'MISSING_SEGMENT_REFERENCE';return _0x2d363f(0x18f);}function runSemanticChecks(_0x26c0bd,_0x2b683c){const _0x447186=a144_0x24b7,_0x5085c9=[];_0x26c0bd['rule']&&_0x5085c9[_0x447186(0x1bd)](...checkRule(_0x26c0bd['rule'],_0x447186(0x19e),_0x2b683c));const _0x27017a=_0x5085c9['filter'](_0x410dd7=>_0x410dd7['level']===_0x447186(0x1c8)),_0x2a0e85=_0x5085c9[_0x447186(0x1c6)](_0x45e087=>_0x45e087[_0x447186(0x1b1)]===_0x447186(0x188));return{'valid':_0x27017a['length']===0x0,'errors':_0x27017a,'warnings':_0x2a0e85};}function checkRule(_0x55d43f,_0x10bc16,_0x42efe0){const _0x5f140d=a144_0x24b7,_0x5e0ae3=[];if(_0x55d43f['conditions'][_0x5f140d(0x191)]===0x0)return _0x5e0ae3[_0x5f140d(0x1bd)]({'level':_0x5f140d(0x1c8),'path':_0x10bc16+_0x5f140d(0x1a3),'code':_0x5f140d(0x19f),'message':_0x5f140d(0x198),'location':getLocationFromPath(_0x42efe0[_0x5f140d(0x194)],_0x42efe0['source'],pathToArray(_0x10bc16+_0x5f140d(0x1a3)))}),_0x5e0ae3;return _0x5e0ae3['push'](...checkConditions(_0x55d43f[_0x5f140d(0x1b3)],_0x10bc16,_0x42efe0)),_0x5e0ae3;}function a144_0x77bf(){const _0x403811=['Behavior','2iWfMbq','attribute','SEGMENT_SCHEMA_ERROR','rule.type','length','MISSING_CONDITIONS','For\x20behavior\x20aggregations,\x20use\x20\x27attribute:\x20\x22\x22\x27\x20with\x20Column\x20conditions\x20in\x20filter.','document','\x20condition\x20group\x20not\x20supported.\x20Console\x20UI\x20ignores\x20nested\x20condition\x20','Attribute\x20\x27','safeParse','Rule\x20conditions\x20array\x20cannot\x20be\x20empty.\x20Add\x20at\x20least\x20one\x20condition.','Value','6957210fYHBJD','INVALID_RULE_TYPE','use\x20\x27In\x27\x20operator\x20instead:\x20operator:\x20{\x20type:\x20In,\x20value:\x20[\x22val1\x22,\x20\x22val2\x22]\x20}','name','rule','EMPTY_CONDITIONS','type','Use\x20\x27attribute:\x20\x22\x22\x27\x20with\x20\x27filter.type:\x20And\x27\x20containing\x20\x27type:\x20Column\x27\x20conditions.','465xHoqGB','.conditions','code','.operator.type','5614630djBKDd','requires\x20a\x20nested\x20\x27filter\x27.\x20Without\x20filter,\x20the\x20source\x20is\x20silently\x20ignored\x20and\x20','custom','\x27\x20with\x20behavior\x20source\x20may\x20cause\x20unexpected\x20behavior.\x20','Attribute\x20name\x20cannot\x20be\x20empty','params','MISSING_NAME','.type','success','1078461lCvMGF','aggregation','level','.segment','conditions','message','259967jSemBu','skipSchema','BEHAVIOR_SOURCE_WITH_ATTRIBUTE','map','invalid_value','.operator.value','7OQgswL','the\x20condition\x20queries\x20the\x20master\x20table\x20instead.\x20','push','EMPTY_ATTRIBUTE','validationCode','.attribute','146724fTOcGl','5590360jYAbCZ','1412vMzfKV','INVALID_ARRAY_MATCHING','data','filter','NESTED_CONDITION_GROUP','error','endsWith','.filter','issues','MISSING_BETWEEN_BOUNDS','.source','\x27\x20with\x20attribute\x20\x27','source','warning','symbol','path','MISSING_TIME_UNIT'];a144_0x77bf=function(){return _0x403811;};return a144_0x77bf();}function checkConditions(_0x1c2456,_0xac3421,_0x2871ec){const _0x229fcc=a144_0x24b7,_0x4c4edd=[];for(let _0x4fd819=0x0;_0x4fd819<_0x1c2456[_0x229fcc(0x191)];_0x4fd819++){const _0x1784cd=_0x1c2456[_0x4fd819],_0x3ba3ba=_0xac3421+'.conditions['+_0x4fd819+']';_0x4c4edd['push'](...checkCondition(_0x1784cd,_0x3ba3ba,_0x2871ec));}return _0x4c4edd;}function checkCondition(_0x7a70e2,_0x192eea,_0x4d22ae){const _0x145b5e=a144_0x24b7,_0x352a48=[];if(_0x7a70e2[_0x145b5e(0x1a0)]==='And'||_0x7a70e2[_0x145b5e(0x1a0)]==='Or')return _0x7a70e2[_0x145b5e(0x1b3)][_0x145b5e(0x191)]===0x0?_0x352a48[_0x145b5e(0x1bd)]({'level':'error','path':_0x192eea+_0x145b5e(0x1a3),'code':_0x145b5e(0x19f),'message':_0x7a70e2[_0x145b5e(0x1a0)]+'\x20condition\x20cannot\x20have\x20an\x20empty\x20conditions\x20array','location':getLocationFromPath(_0x4d22ae[_0x145b5e(0x194)],_0x4d22ae[_0x145b5e(0x1cf)],pathToArray(_0x192eea+'.conditions'))}):_0x352a48['push']({'level':'error','path':_0x192eea,'code':_0x145b5e(0x1c7),'message':_0x7a70e2['type']+_0x145b5e(0x195)+'groups,\x20causing\x20local/server\x20discrepancy.\x20For\x20same-attribute\x20Or\x20conditions,\x20'+_0x145b5e(0x19c),'location':getLocationFromPath(_0x4d22ae[_0x145b5e(0x194)],_0x4d22ae[_0x145b5e(0x1cf)],pathToArray(_0x192eea))}),_0x352a48;if(_0x7a70e2[_0x145b5e(0x1a0)]===_0x145b5e(0x199)||_0x7a70e2[_0x145b5e(0x1a0)]===_0x145b5e(0x18c)){const _0x45c7aa=_0x7a70e2,_0x4b8402=_0x45c7aa['source'],_0x55b990=_0x45c7aa[_0x145b5e(0x1b0)],_0x90bb8c=_0x4b8402||_0x55b990;(!_0x45c7aa['attribute']||_0x45c7aa[_0x145b5e(0x18e)]==='')&&(!_0x90bb8c&&_0x352a48[_0x145b5e(0x1bd)]({'level':_0x145b5e(0x1c8),'path':_0x192eea+_0x145b5e(0x1c0),'code':_0x145b5e(0x1be),'message':_0x145b5e(0x1aa),'location':getLocationFromPath(_0x4d22ae[_0x145b5e(0x194)],_0x4d22ae[_0x145b5e(0x1cf)],pathToArray(_0x192eea+_0x145b5e(0x1c0)))}));_0x45c7aa[_0x145b5e(0x1c6)]&&_0x352a48[_0x145b5e(0x1bd)](...checkRule(_0x45c7aa[_0x145b5e(0x1c6)],_0x192eea+_0x145b5e(0x1ca),_0x4d22ae));if(_0x45c7aa['source']){const _0x40f6c3=_0x45c7aa[_0x145b5e(0x18e)]&&_0x45c7aa['attribute']!=='';_0x40f6c3&&!_0x45c7aa[_0x145b5e(0x1c6)]&&_0x352a48['push']({'level':'error','path':_0x192eea+'.source','code':'BEHAVIOR_SOURCE_MISSING_FILTER','message':'Behavior\x20source\x20\x27'+_0x45c7aa['source']+_0x145b5e(0x1ce)+_0x45c7aa[_0x145b5e(0x18e)]+'\x27\x20'+_0x145b5e(0x1a7)+_0x145b5e(0x1bc)+_0x145b5e(0x1a1),'location':getLocationFromPath(_0x4d22ae[_0x145b5e(0x194)],_0x4d22ae[_0x145b5e(0x1cf)],pathToArray(_0x192eea+_0x145b5e(0x1cd)))}),_0x40f6c3&&_0x45c7aa[_0x145b5e(0x1c6)]&&_0x352a48[_0x145b5e(0x1bd)]({'level':_0x145b5e(0x188),'path':_0x192eea+_0x145b5e(0x1c0),'code':_0x145b5e(0x1b7),'message':_0x145b5e(0x196)+_0x45c7aa[_0x145b5e(0x18e)]+_0x145b5e(0x1a9)+_0x145b5e(0x193),'location':getLocationFromPath(_0x4d22ae[_0x145b5e(0x194)],_0x4d22ae[_0x145b5e(0x1cf)],pathToArray(_0x192eea+_0x145b5e(0x1c0)))});}}return _0x352a48;}
1
+ (function(_0x4e9e4f,_0x3e9204){const _0x37ec88=a144_0xfc85,_0x3f4b38=_0x4e9e4f();while(!![]){try{const _0xdcb27b=-parseInt(_0x37ec88(0xb8))/0x1+-parseInt(_0x37ec88(0xc5))/0x2+parseInt(_0x37ec88(0xe1))/0x3*(parseInt(_0x37ec88(0xb6))/0x4)+parseInt(_0x37ec88(0xd2))/0x5*(-parseInt(_0x37ec88(0xc7))/0x6)+-parseInt(_0x37ec88(0xe2))/0x7+-parseInt(_0x37ec88(0xdd))/0x8*(parseInt(_0x37ec88(0xcd))/0x9)+-parseInt(_0x37ec88(0xee))/0xa*(-parseInt(_0x37ec88(0xbc))/0xb);if(_0xdcb27b===_0x3e9204)break;else _0x3f4b38['push'](_0x3f4b38['shift']());}catch(_0x2218f1){_0x3f4b38['push'](_0x3f4b38['shift']());}}}(a144_0x1c92,0x7b674));import{SegmentDefSchema,RuleDefSchema}from'./types/segment-schema.js';import{formatZodPath,flattenZodIssues,getLocationFromPath,pathToArray}from'./yaml-validator.js';export function validateSegmentDef(_0x13685a,_0x36a0d2={},_0x1888d7={}){const _0x1ef814=a144_0xfc85;if(_0x1888d7[_0x1ef814(0xd9)])return runSemanticChecks(_0x13685a,_0x36a0d2);const _0x564091=SegmentDefSchema[_0x1ef814(0xe8)](_0x13685a);if(_0x564091[_0x1ef814(0xcc)])return runSemanticChecks(_0x564091[_0x1ef814(0xcb)],_0x36a0d2);return zodErrorsToValidationResult(_0x564091[_0x1ef814(0xc2)],_0x36a0d2);}export function validateRuleDef(_0x374cbe,_0x5451df,_0x557981){const _0x400e01=a144_0xfc85;if(!_0x374cbe)return[];const _0x4d55c5=RuleDefSchema['safeParse'](_0x374cbe);if(_0x4d55c5[_0x400e01(0xcc)])return checkRule(_0x4d55c5['data'],_0x5451df,_0x557981);const _0x5673e8=flattenZodIssues(_0x4d55c5[_0x400e01(0xc2)][_0x400e01(0xbf)]);return _0x5673e8[_0x400e01(0xbe)](_0x33f4aa=>{const _0x3ed4f8=_0x400e01,_0x206985=formatZodPath(_0x33f4aa[_0x3ed4f8(0xd8)]),_0x22aa0c=_0x206985?_0x5451df+'.'+_0x206985:_0x5451df,_0xf1a373=mapZodIssueToCode(_0x33f4aa,_0x206985),_0x458f85=getLocationFromPath(_0x557981[_0x3ed4f8(0xd3)],_0x557981[_0x3ed4f8(0xdc)],pathToArray(_0x22aa0c));return{'level':_0x3ed4f8(0xc2),'path':_0x22aa0c,'code':_0xf1a373,'message':_0x33f4aa[_0x3ed4f8(0xb0)],..._0x458f85&&{'location':_0x458f85}};});}function zodErrorsToValidationResult(_0x32f059,_0xa923f7){const _0x120745=a144_0xfc85,_0x4dc465=flattenZodIssues(_0x32f059[_0x120745(0xbf)]),_0x5006f6=_0x4dc465[_0x120745(0xbe)](_0x22d792=>{const _0x439e58=_0x120745,_0x1271c2=formatZodPath(_0x22d792['path']),_0x2d595e=mapZodIssueToCode(_0x22d792,_0x1271c2),_0x5d23a7=getLocationFromPath(_0xa923f7['document'],_0xa923f7[_0x439e58(0xdc)],_0x22d792[_0x439e58(0xd8)][_0x439e58(0xbe)](_0x72c5c7=>typeof _0x72c5c7==='symbol'?String(_0x72c5c7):_0x72c5c7));return{'level':_0x439e58(0xc2),'path':_0x1271c2,'code':_0x2d595e,'message':_0x22d792[_0x439e58(0xb0)],..._0x5d23a7&&{'location':_0x5d23a7}};});return{'valid':![],'errors':_0x5006f6,'warnings':[]};}function mapZodIssueToCode(_0x437468,_0x58a0ce){const _0x44e90d=a144_0xfc85,_0x80ba46=_0x437468[_0x44e90d(0xec)]==='custom'?_0x437468[_0x44e90d(0xb7)]:undefined;if(_0x58a0ce===_0x44e90d(0xe4))return _0x44e90d(0xb5);if(_0x58a0ce==='rule.type'||_0x58a0ce['endsWith'](_0x44e90d(0xde))){if(_0x437468[_0x44e90d(0xec)]===_0x44e90d(0xc0)){if(_0x58a0ce===_0x44e90d(0xb4)||_0x58a0ce[_0x44e90d(0xc8)](/\.conditions\[\d+\]\.type$/))return _0x44e90d(0xd4);}}if(_0x58a0ce['endsWith'](_0x44e90d(0xe3)))return _0x44e90d(0xed);if(_0x58a0ce[_0x44e90d(0xd6)]('.operator.value'))return _0x44e90d(0xe6);if(_0x80ba46?.['validationCode']==='MISSING_BETWEEN_BOUNDS')return _0x44e90d(0xdf);if(_0x80ba46?.['validationCode']===_0x44e90d(0xdb))return _0x44e90d(0xdb);if(_0x58a0ce[_0x44e90d(0xd6)]('.conditions')||_0x58a0ce==='conditions')return _0x44e90d(0xd0);if(_0x58a0ce['includes'](_0x44e90d(0xf2)))return'INVALID_ARRAY_MATCHING';if(_0x58a0ce[_0x44e90d(0xd6)](_0x44e90d(0xea)))return _0x44e90d(0xf1);return'SEGMENT_SCHEMA_ERROR';}function a144_0x1c92(){const _0xa0253=['use\x20\x27In\x27\x20operator\x20instead:\x20operator:\x20{\x20type:\x20In,\x20value:\x20[\x22val1\x22,\x20\x22val2\x22]\x20}','map','issues','invalid_value','EMPTY_ATTRIBUTE','error','rule','length','835598jZQxKI','EMPTY_CONDITIONS','6Zoazgs','match','filter','\x20condition\x20group\x20not\x20supported.\x20Console\x20UI\x20ignores\x20nested\x20condition\x20','data','success','189BljviO','Use\x20\x27attribute:\x20\x22\x22\x27\x20with\x20\x27filter.type:\x20And\x27\x20containing\x20\x27type:\x20Column\x27\x20conditions.','push','MISSING_CONDITIONS','For\x20behavior\x20aggregations,\x20use\x20\x27attribute:\x20\x22\x22\x27\x20with\x20Column\x20conditions\x20in\x20filter.','1863270fRtshj','document','INVALID_RULE_TYPE','.conditions[','endsWith','.attribute','path','skipSchema','Behavior\x20source\x20\x27','MISSING_TIME_UNIT','source','291224zUgHIO','.type','MISSING_BETWEEN_BOUNDS','Attribute\x20\x27','134454OFFzXC','4902310aaAvem','.operator.type','name','type','MISSING_OPERATOR_VALUE','warning','safeParse','NESTED_CONDITION_GROUP','.segment','BEHAVIOR_SOURCE_MISSING_FILTER','code','INVALID_OPERATOR_TYPE','884090QTUibF','.source','aggregation','MISSING_SEGMENT_REFERENCE','arrayMatching','\x27\x20with\x20attribute\x20\x27','the\x20condition\x20queries\x20the\x20master\x20table\x20instead.\x20','message','\x27\x20with\x20behavior\x20source\x20may\x20cause\x20unexpected\x20behavior.\x20','groups,\x20causing\x20local/server\x20discrepancy.\x20For\x20same-attribute\x20Or\x20conditions,\x20','attribute','rule.type','MISSING_NAME','8cMPOjr','params','688472tHlBcu','.conditions','level','Value','418uABGOS'];a144_0x1c92=function(){return _0xa0253;};return a144_0x1c92();}function a144_0xfc85(_0x4274bd,_0x4ff9e8){_0x4274bd=_0x4274bd-0xb0;const _0x1c92ad=a144_0x1c92();let _0xfc85ee=_0x1c92ad[_0x4274bd];return _0xfc85ee;}function runSemanticChecks(_0x56b7e8,_0x272012){const _0xe4a6c4=a144_0xfc85,_0x28c25c=[];_0x56b7e8[_0xe4a6c4(0xc3)]&&_0x28c25c[_0xe4a6c4(0xcf)](...checkRule(_0x56b7e8[_0xe4a6c4(0xc3)],_0xe4a6c4(0xc3),_0x272012));const _0x37ed1d=_0x28c25c['filter'](_0x2ea070=>_0x2ea070[_0xe4a6c4(0xba)]===_0xe4a6c4(0xc2)),_0x59e98b=_0x28c25c[_0xe4a6c4(0xc9)](_0x5b1526=>_0x5b1526[_0xe4a6c4(0xba)]===_0xe4a6c4(0xe7));return{'valid':_0x37ed1d[_0xe4a6c4(0xc4)]===0x0,'errors':_0x37ed1d,'warnings':_0x59e98b};}function checkRule(_0x336b2c,_0x33b30c,_0x508144){const _0x8c5ff5=a144_0xfc85,_0x28b7e7=[];if(_0x336b2c['conditions'][_0x8c5ff5(0xc4)]===0x0)return _0x28b7e7[_0x8c5ff5(0xcf)]({'level':'error','path':_0x33b30c+_0x8c5ff5(0xb9),'code':_0x8c5ff5(0xc6),'message':'Rule\x20conditions\x20array\x20cannot\x20be\x20empty.\x20Add\x20at\x20least\x20one\x20condition.','location':getLocationFromPath(_0x508144[_0x8c5ff5(0xd3)],_0x508144[_0x8c5ff5(0xdc)],pathToArray(_0x33b30c+_0x8c5ff5(0xb9)))}),_0x28b7e7;return _0x28b7e7['push'](...checkConditions(_0x336b2c['conditions'],_0x33b30c,_0x508144)),_0x28b7e7;}function checkConditions(_0x32f3ac,_0x5a1f88,_0x1a5948){const _0x1b0a6a=a144_0xfc85,_0x42bd5b=[];for(let _0x17afe2=0x0;_0x17afe2<_0x32f3ac['length'];_0x17afe2++){const _0x9b93ae=_0x32f3ac[_0x17afe2],_0xf9aedf=_0x5a1f88+_0x1b0a6a(0xd5)+_0x17afe2+']';_0x42bd5b[_0x1b0a6a(0xcf)](...checkCondition(_0x9b93ae,_0xf9aedf,_0x1a5948));}return _0x42bd5b;}function checkCondition(_0x30f02e,_0x571bbf,_0x284c98){const _0x4836ea=a144_0xfc85,_0x18ff32=[];if(_0x30f02e['type']==='And'||_0x30f02e['type']==='Or')return _0x30f02e['conditions'][_0x4836ea(0xc4)]===0x0?_0x18ff32[_0x4836ea(0xcf)]({'level':_0x4836ea(0xc2),'path':_0x571bbf+_0x4836ea(0xb9),'code':_0x4836ea(0xc6),'message':_0x30f02e['type']+'\x20condition\x20cannot\x20have\x20an\x20empty\x20conditions\x20array','location':getLocationFromPath(_0x284c98[_0x4836ea(0xd3)],_0x284c98[_0x4836ea(0xdc)],pathToArray(_0x571bbf+_0x4836ea(0xb9)))}):_0x18ff32[_0x4836ea(0xcf)]({'level':'error','path':_0x571bbf,'code':_0x4836ea(0xe9),'message':_0x30f02e[_0x4836ea(0xe5)]+_0x4836ea(0xca)+_0x4836ea(0xb2)+_0x4836ea(0xbd),'location':getLocationFromPath(_0x284c98[_0x4836ea(0xd3)],_0x284c98['source'],pathToArray(_0x571bbf))}),_0x18ff32;if(_0x30f02e['type']===_0x4836ea(0xbb)||_0x30f02e[_0x4836ea(0xe5)]==='Behavior'){const _0x520c47=_0x30f02e,_0xe212f8=_0x520c47[_0x4836ea(0xdc)],_0x22ca63=_0x520c47[_0x4836ea(0xf0)],_0xf6db1c=_0xe212f8||_0x22ca63;(!_0x520c47['attribute']||_0x520c47[_0x4836ea(0xb3)]==='')&&(!_0xf6db1c&&_0x18ff32[_0x4836ea(0xcf)]({'level':_0x4836ea(0xc2),'path':_0x571bbf+_0x4836ea(0xd7),'code':_0x4836ea(0xc1),'message':'Attribute\x20name\x20cannot\x20be\x20empty','location':getLocationFromPath(_0x284c98[_0x4836ea(0xd3)],_0x284c98[_0x4836ea(0xdc)],pathToArray(_0x571bbf+_0x4836ea(0xd7)))}));_0x520c47[_0x4836ea(0xc9)]&&_0x18ff32[_0x4836ea(0xcf)](...checkRule(_0x520c47['filter'],_0x571bbf+'.filter',_0x284c98));if(_0x520c47[_0x4836ea(0xdc)]){const _0x2ea801=_0x520c47[_0x4836ea(0xb3)]&&_0x520c47[_0x4836ea(0xb3)]!=='';_0x2ea801&&!_0x520c47['filter']&&_0x18ff32['push']({'level':_0x4836ea(0xc2),'path':_0x571bbf+_0x4836ea(0xef),'code':_0x4836ea(0xeb),'message':_0x4836ea(0xda)+_0x520c47[_0x4836ea(0xdc)]+_0x4836ea(0xf3)+_0x520c47['attribute']+'\x27\x20'+'requires\x20a\x20nested\x20\x27filter\x27.\x20Without\x20filter,\x20the\x20source\x20is\x20silently\x20ignored\x20and\x20'+_0x4836ea(0xf4)+_0x4836ea(0xce),'location':getLocationFromPath(_0x284c98[_0x4836ea(0xd3)],_0x284c98[_0x4836ea(0xdc)],pathToArray(_0x571bbf+_0x4836ea(0xef)))}),_0x2ea801&&_0x520c47[_0x4836ea(0xc9)]&&_0x18ff32[_0x4836ea(0xcf)]({'level':'warning','path':_0x571bbf+'.attribute','code':'BEHAVIOR_SOURCE_WITH_ATTRIBUTE','message':_0x4836ea(0xe0)+_0x520c47[_0x4836ea(0xb3)]+_0x4836ea(0xb1)+_0x4836ea(0xd1),'location':getLocationFromPath(_0x284c98[_0x4836ea(0xd3)],_0x284c98['source'],pathToArray(_0x571bbf+'.attribute'))});}}return _0x18ff32;}
@@ -1 +1 @@
1
- (function(_0x1d007f,_0x3ba159){const _0x5d48bc=a145_0x5bc7,_0x5f5abe=_0x1d007f();while(!![]){try{const _0x30d85c=-parseInt(_0x5d48bc(0x168))/0x1*(parseInt(_0x5d48bc(0x166))/0x2)+-parseInt(_0x5d48bc(0x16c))/0x3*(parseInt(_0x5d48bc(0x162))/0x4)+parseInt(_0x5d48bc(0x176))/0x5+parseInt(_0x5d48bc(0x156))/0x6*(-parseInt(_0x5d48bc(0x167))/0x7)+parseInt(_0x5d48bc(0x163))/0x8*(-parseInt(_0x5d48bc(0x148))/0x9)+parseInt(_0x5d48bc(0x17b))/0xa+parseInt(_0x5d48bc(0x165))/0xb*(parseInt(_0x5d48bc(0x173))/0xc);if(_0x30d85c===_0x3ba159)break;else _0x5f5abe['push'](_0x5f5abe['shift']());}catch(_0x304bcf){_0x5f5abe['push'](_0x5f5abe['shift']());}}}(a145_0x547c,0x97e0f));import a145_0x23715a from'path';import{sanitizeFileName}from'../../utils/string-utils.js';import{nodeFileSystem}from'../io/node-filesystem.js';import{isYamlFilePath,resolveYamlFilePath}from'./segment-path-parser.js';import{getSegmentRootDir}from'./tdx-config.js';export function isSuccessfulResolution(_0x45a0df){const _0x212eac=a145_0x5bc7;return _0x45a0df[_0x212eac(0x14c)]!==_0x212eac(0x14e);}function a145_0x5bc7(_0x3e049f,_0xdda71c){_0x3e049f=_0x3e049f-0x148;const _0x547c6d=a145_0x547c();let _0x5bc702=_0x547c6d[_0x3e049f];return _0x5bc702;}export function isScopedResolution(_0x1be563){const _0x210623=a145_0x5bc7;return _0x1be563[_0x210623(0x14c)]===_0x210623(0x175)||_0x1be563[_0x210623(0x14c)]===_0x210623(0x14f)||_0x1be563['type']===_0x210623(0x16a);}export function getScopedDetails(_0x446ed1){const _0x4ba8f0=a145_0x5bc7;if(isScopedResolution(_0x446ed1))return{'isScoped':_0x446ed1['isScoped'],'scopedFolderPath':_0x446ed1[_0x4ba8f0(0x177)]};return undefined;}async function findTdxConfigAsync(_0x21df39,_0x40d1c1){const _0x2eecda=a145_0x5bc7;let _0x1f89ec=a145_0x23715a[_0x2eecda(0x16f)](_0x21df39);const _0x2a21b2=a145_0x23715a[_0x2eecda(0x15c)](_0x1f89ec)[_0x2eecda(0x17c)];while(_0x1f89ec!==_0x2a21b2){const _0x2ef76b=a145_0x23715a['join'](_0x1f89ec,_0x2eecda(0x14b));if(await _0x40d1c1[_0x2eecda(0x17a)](_0x2ef76b))try{const _0x1f8b3a=await _0x40d1c1[_0x2eecda(0x151)](_0x2ef76b),_0x311f86=JSON[_0x2eecda(0x15c)](_0x1f8b3a);if(_0x311f86[_0x2eecda(0x153)]&&typeof _0x311f86['parent_segment']===_0x2eecda(0x14a))return{'configPath':_0x2ef76b,'configDir':_0x1f89ec,'parentSegment':_0x311f86[_0x2eecda(0x153)]};}catch{}_0x1f89ec=a145_0x23715a[_0x2eecda(0x158)](_0x1f89ec);}return null;}function calculateScopedPath(_0x1489ee,_0x21b7a9){const _0x32599c=a145_0x5bc7,_0x40738c=a145_0x23715a[_0x32599c(0x155)](_0x21b7a9,_0x1489ee),_0xff29af=_0x40738c!==''&&_0x40738c!=='.'&&!_0x40738c[_0x32599c(0x178)]('..');return{'isScoped':_0xff29af,'scopedFolderPath':_0xff29af?_0x40738c['replace'](/\\/g,'/'):''};}function a145_0x547c(){const _0x4d5fee=['3589648iFrQTF','trim','4175039FzhDjm','2dHcEmY','11116dozHDu','1014947NohpPu','Use\x20\x27tdx\x20sg\x20use\x20<parent_name>\x27\x20to\x20set\x20context\x0aOr\x20run\x20\x27tdx\x20sg\x20pull\x20<parent_name>\x27\x20to\x20create\x20the\x20folder\x20structure','context','Tip:\x20Run\x20\x27tdx\x20sg\x20pull\x20<parent_name>\x27\x20first\x20to\x20create\x20the\x20folder\x20structure\x0a\x20\x20Or\x20set\x20context:\x20\x27tdx\x20sg\x20use\x20<parent_name>\x27','267xsAmsR','no_parent','no_config','resolve','configDir','file_not_found','isFile','96SWbXGM','No\x20tdx.json\x20found\x20in\x20or\x20above:\x20','directory','2412115JbhOBd','scopedFolderPath','startsWith','basename','exists','1776870AOBWbX','root','cwd','9FDvqHK','No\x20tdx.json\x20found','string','tdx.json','type','Parent\x20segment\x20not\x20specified','error','file','segmentName','readFile','isDirectory','parent_segment','isScoped','relative','4182kCvOBp','invalid_yaml','dirname','match','No\x20tdx.json\x20found\x20for\x20file:\x20','Segment\x20and\x20journey\x20files\x20must\x20have\x20.yml\x20or\x20.yaml\x20extension','parse','folderPath','extname','resourceType','journey','includes','22648lsawGH'];a145_0x547c=function(){return _0x4d5fee;};return a145_0x547c();}export async function resolveTarget(_0x3d9db3){const _0x439704=a145_0x5bc7,{arg:_0x118399,contextParent:_0x53393d,cwd:cwd=process[_0x439704(0x17d)](),fs:fs=nodeFileSystem}=_0x3d9db3;if(_0x118399&&isYamlFilePath(_0x118399))try{const _0x2bf170=await resolveYamlFilePath(_0x118399,fs),_0x14052=a145_0x23715a[_0x439704(0x16f)](_0x118399),_0xa6cd03=a145_0x23715a[_0x439704(0x158)](_0x14052),_0x1a72fd=await findTdxConfigAsync(_0xa6cd03,fs);if(!_0x1a72fd){if(_0x53393d){const _0x5f4d37=a145_0x23715a[_0x439704(0x158)](_0x14052);return{'type':_0x439704(0x14f),'parentName':_0x53393d,'targetDir':_0x5f4d37,'configRoot':_0x5f4d37,'filePath':_0x14052,'resourceName':_0x2bf170[_0x439704(0x150)],'folderPath':_0x2bf170[_0x439704(0x15d)],'resourceType':_0x2bf170['resourceType'],'isScoped':![],'scopedFolderPath':''};}return{'type':_0x439704(0x14e),'errorCode':_0x439704(0x16e),'message':_0x439704(0x15a)+_0x118399,'arg':_0x118399,'helpText':_0x439704(0x16b)};}const _0x4d648f=calculateScopedPath(_0xa6cd03,_0x1a72fd[_0x439704(0x170)]);return{'type':_0x439704(0x14f),'parentName':_0x1a72fd['parentSegment'],'targetDir':_0x1a72fd[_0x439704(0x170)],'configRoot':_0x1a72fd[_0x439704(0x170)],'filePath':_0x14052,'resourceName':_0x2bf170['segmentName'],'folderPath':_0x2bf170[_0x439704(0x15d)],'resourceType':_0x2bf170[_0x439704(0x15f)],'isScoped':_0x4d648f[_0x439704(0x154)],'scopedFolderPath':_0x4d648f[_0x439704(0x177)]};}catch(_0x48b570){const _0x15ced2=_0x48b570 instanceof Error?_0x48b570['message']:String(_0x48b570);if(_0x15ced2[_0x439704(0x161)]('File\x20not\x20found'))return{'type':'error','errorCode':_0x439704(0x171),'message':'File\x20not\x20found:\x20'+_0x118399,'arg':_0x118399};if(_0x15ced2[_0x439704(0x161)](_0x439704(0x149))){if(_0x53393d){const _0x4a783a=a145_0x23715a[_0x439704(0x16f)](_0x118399);if(await fs[_0x439704(0x17a)](_0x4a783a)){const _0x748cd=a145_0x23715a[_0x439704(0x158)](_0x4a783a),_0x318555=await fs[_0x439704(0x151)](_0x4a783a),_0x2fbe1f=_0x318555[_0x439704(0x159)](/^name:\s*["']?([^"'\n]+)["']?/m),_0x2de75d=_0x318555['match'](/^type:\s*["']?([^"'\n]+)["']?/m),_0x2e516c=_0x2fbe1f?_0x2fbe1f[0x1]['trim']():a145_0x23715a[_0x439704(0x179)](_0x118399,a145_0x23715a[_0x439704(0x15e)](_0x118399)),_0x29b672=_0x2de75d&&_0x2de75d[0x1][_0x439704(0x164)]()==='journey'?_0x439704(0x160):'segment';return{'type':_0x439704(0x14f),'parentName':_0x53393d,'targetDir':_0x748cd,'configRoot':_0x748cd,'filePath':_0x4a783a,'resourceName':_0x2e516c,'folderPath':'','resourceType':_0x29b672,'isScoped':![],'scopedFolderPath':''};}}return{'type':_0x439704(0x14e),'errorCode':_0x439704(0x16e),'message':_0x439704(0x15a)+_0x118399,'arg':_0x118399,'helpText':_0x439704(0x16b)};}return{'type':'error','errorCode':_0x439704(0x157),'message':_0x15ced2,'arg':_0x118399};}if(_0x118399){const _0xa2f61f=a145_0x23715a[_0x439704(0x16f)](cwd,_0x118399);let _0x37fced=null;try{_0x37fced=await fs['stat'](_0xa2f61f);}catch{}if(_0x37fced?.[_0x439704(0x152)]()){const _0x218f84=await findTdxConfigAsync(_0xa2f61f,fs);if(_0x218f84){const _0x1cf258=calculateScopedPath(_0xa2f61f,_0x218f84[_0x439704(0x170)]);return{'type':'directory','parentName':_0x218f84['parentSegment'],'targetDir':_0xa2f61f,'configRoot':_0x218f84['configDir'],'isScoped':_0x1cf258[_0x439704(0x154)],'scopedFolderPath':_0x1cf258[_0x439704(0x177)]};}if(_0x53393d)return{'type':_0x439704(0x175),'parentName':_0x53393d,'targetDir':_0xa2f61f,'configRoot':_0xa2f61f,'isScoped':![],'scopedFolderPath':''};return{'type':_0x439704(0x14e),'errorCode':_0x439704(0x16e),'message':_0x439704(0x174)+_0x118399,'arg':_0x118399,'helpText':_0x439704(0x16b)};}if(_0x37fced?.[_0x439704(0x172)]())return{'type':_0x439704(0x14e),'errorCode':_0x439704(0x157),'message':'Not\x20a\x20YAML\x20file:\x20'+_0x118399,'arg':_0x118399,'helpText':_0x439704(0x15b)};const _0x4f9c75=sanitizeFileName(_0x118399),_0x379e70=getSegmentRootDir(_0x4f9c75,cwd);return{'type':'parent_name','parentName':_0x118399,'targetDir':_0x379e70,'configRoot':_0x379e70};}const _0x16063c=await findTdxConfigAsync(cwd,fs);if(_0x16063c){const _0x2b3b60=calculateScopedPath(cwd,_0x16063c[_0x439704(0x170)]);return{'type':_0x439704(0x16a),'parentName':_0x16063c['parentSegment'],'targetDir':cwd,'configRoot':_0x16063c[_0x439704(0x170)],'isScoped':_0x2b3b60[_0x439704(0x154)],'scopedFolderPath':_0x2b3b60[_0x439704(0x177)]};}if(_0x53393d){const _0x28693f=sanitizeFileName(_0x53393d),_0x4584e7=getSegmentRootDir(_0x28693f,cwd);return{'type':'context','parentName':_0x53393d,'targetDir':_0x4584e7,'configRoot':_0x4584e7,'isScoped':![],'scopedFolderPath':''};}return{'type':_0x439704(0x14e),'errorCode':_0x439704(0x16d),'message':_0x439704(0x14d),'helpText':_0x439704(0x169)};}
1
+ (function(_0xad83a2,_0x1e57bd){const _0x5bbf64=a145_0x1249,_0x2ca0b5=_0xad83a2();while(!![]){try{const _0x1f3233=-parseInt(_0x5bbf64(0xc3))/0x1*(-parseInt(_0x5bbf64(0xd5))/0x2)+parseInt(_0x5bbf64(0xcb))/0x3*(-parseInt(_0x5bbf64(0xdd))/0x4)+parseInt(_0x5bbf64(0xc4))/0x5+-parseInt(_0x5bbf64(0xbd))/0x6*(-parseInt(_0x5bbf64(0xc8))/0x7)+parseInt(_0x5bbf64(0xaa))/0x8*(parseInt(_0x5bbf64(0xa8))/0x9)+-parseInt(_0x5bbf64(0xb2))/0xa*(parseInt(_0x5bbf64(0xd9))/0xb)+-parseInt(_0x5bbf64(0xb3))/0xc;if(_0x1f3233===_0x1e57bd)break;else _0x2ca0b5['push'](_0x2ca0b5['shift']());}catch(_0xef8e92){_0x2ca0b5['push'](_0x2ca0b5['shift']());}}}(a145_0x122f,0xa8a98));import a145_0x5aee6c from'path';function a145_0x122f(){const _0x1cfe68=['root','file_not_found','journey','isFile','1895856HvLceq','segmentName','error','isDirectory','basename','isScoped','3PIpWoy','6900720TKINHX','file','no_parent','cwd','7chkega','File\x20not\x20found:\x20','match','8691ETMURC','configDir','context','dirname','directory','relative','extname','No\x20tdx.json\x20found\x20for\x20file:\x20','Use\x20\x27tdx\x20sg\x20use\x20<parent_name>\x27\x20to\x20set\x20context\x0aOr\x20run\x20\x27tdx\x20sg\x20pull\x20<parent_name>\x27\x20to\x20create\x20the\x20folder\x20structure','type','844574VwvXkO','join','string','parentSegment','319297kckzFk','folderPath','includes','message','80dZVetu','Tip:\x20Run\x20\x27tdx\x20sg\x20pull\x20<parent_name>\x27\x20first\x20to\x20create\x20the\x20folder\x20structure\x0a\x20\x20Or\x20set\x20context:\x20\x27tdx\x20sg\x20use\x20<parent_name>\x27','no_config','Not\x20a\x20YAML\x20file:\x20','9HfVCih','scopedFolderPath','3975440qquJha','parent_name','parse','replace','invalid_yaml','No\x20tdx.json\x20found\x20in\x20or\x20above:\x20','stat','No\x20tdx.json\x20found','350SyQJSc','20342232mRwYCU','readFile','resourceType','parent_segment','resolve','segment'];a145_0x122f=function(){return _0x1cfe68;};return a145_0x122f();}function a145_0x1249(_0x1e9456,_0x2027ea){_0x1e9456=_0x1e9456-0xa6;const _0x122f6d=a145_0x122f();let _0x12493d=_0x122f6d[_0x1e9456];return _0x12493d;}import{sanitizeFileName}from'../../utils/string-utils.js';import{nodeFileSystem}from'../io/node-filesystem.js';import{isYamlFilePath,resolveYamlFilePath}from'./segment-path-parser.js';import{getSegmentRootDir}from'./tdx-config.js';export function isSuccessfulResolution(_0x52044d){const _0x35103e=a145_0x1249;return _0x52044d[_0x35103e(0xd4)]!==_0x35103e(0xbf);}export function isScopedResolution(_0x3da75f){const _0x34b1ec=a145_0x1249;return _0x3da75f[_0x34b1ec(0xd4)]===_0x34b1ec(0xcf)||_0x3da75f[_0x34b1ec(0xd4)]===_0x34b1ec(0xc5)||_0x3da75f[_0x34b1ec(0xd4)]===_0x34b1ec(0xcd);}export function getScopedDetails(_0x119a3e){const _0x37def9=a145_0x1249;if(isScopedResolution(_0x119a3e))return{'isScoped':_0x119a3e[_0x37def9(0xc2)],'scopedFolderPath':_0x119a3e[_0x37def9(0xa9)]};return undefined;}async function findTdxConfigAsync(_0x27b8e4,_0x933f3b){const _0x5deb28=a145_0x1249;let _0x2f0dee=a145_0x5aee6c['resolve'](_0x27b8e4);const _0x4fbe4c=a145_0x5aee6c[_0x5deb28(0xac)](_0x2f0dee)[_0x5deb28(0xb9)];while(_0x2f0dee!==_0x4fbe4c){const _0x36914f=a145_0x5aee6c[_0x5deb28(0xd6)](_0x2f0dee,'tdx.json');if(await _0x933f3b['exists'](_0x36914f))try{const _0x10efe0=await _0x933f3b[_0x5deb28(0xb4)](_0x36914f),_0x1eadf6=JSON['parse'](_0x10efe0);if(_0x1eadf6[_0x5deb28(0xb6)]&&typeof _0x1eadf6[_0x5deb28(0xb6)]===_0x5deb28(0xd7))return{'configPath':_0x36914f,'configDir':_0x2f0dee,'parentSegment':_0x1eadf6[_0x5deb28(0xb6)]};}catch{}_0x2f0dee=a145_0x5aee6c['dirname'](_0x2f0dee);}return null;}function calculateScopedPath(_0x1ce5a2,_0x532c43){const _0x198993=a145_0x1249,_0x5d65d3=a145_0x5aee6c[_0x198993(0xd0)](_0x532c43,_0x1ce5a2),_0x11f408=_0x5d65d3!==''&&_0x5d65d3!=='.'&&!_0x5d65d3['startsWith']('..');return{'isScoped':_0x11f408,'scopedFolderPath':_0x11f408?_0x5d65d3[_0x198993(0xad)](/\\/g,'/'):''};}export async function resolveTarget(_0xe6aebc){const _0x5dd409=a145_0x1249,{arg:_0x47c94d,contextParent:_0x5d9736,cwd:cwd=process[_0x5dd409(0xc7)](),fs:fs=nodeFileSystem}=_0xe6aebc;if(_0x47c94d&&isYamlFilePath(_0x47c94d))try{const _0x2aaf4c=await resolveYamlFilePath(_0x47c94d,fs),_0x25a9bc=a145_0x5aee6c[_0x5dd409(0xb7)](_0x47c94d),_0x284383=a145_0x5aee6c['dirname'](_0x25a9bc),_0xedafb3=await findTdxConfigAsync(_0x284383,fs);if(!_0xedafb3){if(_0x5d9736){const _0x3a6663=a145_0x5aee6c[_0x5dd409(0xce)](_0x25a9bc);return{'type':_0x5dd409(0xc5),'parentName':_0x5d9736,'targetDir':_0x3a6663,'configRoot':_0x3a6663,'filePath':_0x25a9bc,'resourceName':_0x2aaf4c[_0x5dd409(0xbe)],'folderPath':_0x2aaf4c[_0x5dd409(0xda)],'resourceType':_0x2aaf4c[_0x5dd409(0xb5)],'isScoped':![],'scopedFolderPath':''};}return{'type':_0x5dd409(0xbf),'errorCode':'no_config','message':_0x5dd409(0xd2)+_0x47c94d,'arg':_0x47c94d,'helpText':_0x5dd409(0xde)};}const _0x1e150c=calculateScopedPath(_0x284383,_0xedafb3[_0x5dd409(0xcc)]);return{'type':_0x5dd409(0xc5),'parentName':_0xedafb3['parentSegment'],'targetDir':_0xedafb3['configDir'],'configRoot':_0xedafb3[_0x5dd409(0xcc)],'filePath':_0x25a9bc,'resourceName':_0x2aaf4c[_0x5dd409(0xbe)],'folderPath':_0x2aaf4c[_0x5dd409(0xda)],'resourceType':_0x2aaf4c[_0x5dd409(0xb5)],'isScoped':_0x1e150c[_0x5dd409(0xc2)],'scopedFolderPath':_0x1e150c[_0x5dd409(0xa9)]};}catch(_0x35e623){const _0x266b04=_0x35e623 instanceof Error?_0x35e623[_0x5dd409(0xdc)]:String(_0x35e623);if(_0x266b04[_0x5dd409(0xdb)]('File\x20not\x20found'))return{'type':_0x5dd409(0xbf),'errorCode':_0x5dd409(0xba),'message':_0x5dd409(0xc9)+_0x47c94d,'arg':_0x47c94d};if(_0x266b04[_0x5dd409(0xdb)](_0x5dd409(0xb1))){if(_0x5d9736){const _0x414d75=a145_0x5aee6c[_0x5dd409(0xb7)](_0x47c94d);if(await fs['exists'](_0x414d75)){const _0x167594=a145_0x5aee6c['dirname'](_0x414d75),_0x4f8773=await fs[_0x5dd409(0xb4)](_0x414d75),_0x2f7fa2=_0x4f8773['match'](/^name:\s*["']?([^"'\n]+)["']?/m),_0x6e5fb3=_0x4f8773[_0x5dd409(0xca)](/^type:\s*["']?([^"'\n]+)["']?/m),_0x36b60c=_0x2f7fa2?_0x2f7fa2[0x1]['trim']():a145_0x5aee6c[_0x5dd409(0xc1)](_0x47c94d,a145_0x5aee6c[_0x5dd409(0xd1)](_0x47c94d)),_0x3cd05=_0x6e5fb3&&_0x6e5fb3[0x1]['trim']()===_0x5dd409(0xbb)?_0x5dd409(0xbb):_0x5dd409(0xb8);return{'type':'file','parentName':_0x5d9736,'targetDir':_0x167594,'configRoot':_0x167594,'filePath':_0x414d75,'resourceName':_0x36b60c,'folderPath':'','resourceType':_0x3cd05,'isScoped':![],'scopedFolderPath':''};}}return{'type':_0x5dd409(0xbf),'errorCode':_0x5dd409(0xa6),'message':'No\x20tdx.json\x20found\x20for\x20file:\x20'+_0x47c94d,'arg':_0x47c94d,'helpText':_0x5dd409(0xde)};}return{'type':_0x5dd409(0xbf),'errorCode':_0x5dd409(0xae),'message':_0x266b04,'arg':_0x47c94d};}if(_0x47c94d){const _0x4150a1=a145_0x5aee6c['resolve'](cwd,_0x47c94d);let _0x44f9c9=null;try{_0x44f9c9=await fs[_0x5dd409(0xb0)](_0x4150a1);}catch{}if(_0x44f9c9?.[_0x5dd409(0xc0)]()){const _0xa0064f=await findTdxConfigAsync(_0x4150a1,fs);if(_0xa0064f){const _0x12b21c=calculateScopedPath(_0x4150a1,_0xa0064f[_0x5dd409(0xcc)]);return{'type':_0x5dd409(0xcf),'parentName':_0xa0064f[_0x5dd409(0xd8)],'targetDir':_0x4150a1,'configRoot':_0xa0064f[_0x5dd409(0xcc)],'isScoped':_0x12b21c[_0x5dd409(0xc2)],'scopedFolderPath':_0x12b21c['scopedFolderPath']};}if(_0x5d9736)return{'type':'directory','parentName':_0x5d9736,'targetDir':_0x4150a1,'configRoot':_0x4150a1,'isScoped':![],'scopedFolderPath':''};return{'type':_0x5dd409(0xbf),'errorCode':_0x5dd409(0xa6),'message':_0x5dd409(0xaf)+_0x47c94d,'arg':_0x47c94d,'helpText':'Tip:\x20Run\x20\x27tdx\x20sg\x20pull\x20<parent_name>\x27\x20first\x20to\x20create\x20the\x20folder\x20structure\x0a\x20\x20Or\x20set\x20context:\x20\x27tdx\x20sg\x20use\x20<parent_name>\x27'};}if(_0x44f9c9?.[_0x5dd409(0xbc)]())return{'type':_0x5dd409(0xbf),'errorCode':_0x5dd409(0xae),'message':_0x5dd409(0xa7)+_0x47c94d,'arg':_0x47c94d,'helpText':'Segment\x20and\x20journey\x20files\x20must\x20have\x20.yml\x20or\x20.yaml\x20extension'};const _0x5c7d0c=sanitizeFileName(_0x47c94d),_0xa15b52=getSegmentRootDir(_0x5c7d0c,cwd);return{'type':_0x5dd409(0xab),'parentName':_0x47c94d,'targetDir':_0xa15b52,'configRoot':_0xa15b52};}const _0x10fff7=await findTdxConfigAsync(cwd,fs);if(_0x10fff7){const _0x488115=calculateScopedPath(cwd,_0x10fff7[_0x5dd409(0xcc)]);return{'type':_0x5dd409(0xcd),'parentName':_0x10fff7[_0x5dd409(0xd8)],'targetDir':cwd,'configRoot':_0x10fff7[_0x5dd409(0xcc)],'isScoped':_0x488115[_0x5dd409(0xc2)],'scopedFolderPath':_0x488115['scopedFolderPath']};}if(_0x5d9736){const _0x21a7eb=sanitizeFileName(_0x5d9736),_0x182e49=getSegmentRootDir(_0x21a7eb,cwd);return{'type':_0x5dd409(0xcd),'parentName':_0x5d9736,'targetDir':_0x182e49,'configRoot':_0x182e49,'isScoped':![],'scopedFolderPath':''};}return{'type':'error','errorCode':_0x5dd409(0xc6),'message':'Parent\x20segment\x20not\x20specified','helpText':_0x5dd409(0xd3)};}
@@ -1 +1 @@
1
- const a146_0x1eeffe=a146_0x3b95;(function(_0x5b871a,_0x204f6f){const _0x463297=a146_0x3b95,_0x5c72c6=_0x5b871a();while(!![]){try{const _0x41b067=-parseInt(_0x463297(0x19f))/0x1+parseInt(_0x463297(0x195))/0x2+-parseInt(_0x463297(0x1a9))/0x3+-parseInt(_0x463297(0x199))/0x4*(-parseInt(_0x463297(0x196))/0x5)+-parseInt(_0x463297(0x1a8))/0x6*(parseInt(_0x463297(0x19c))/0x7)+-parseInt(_0x463297(0x1ac))/0x8*(parseInt(_0x463297(0x1a7))/0x9)+parseInt(_0x463297(0x1a4))/0xa*(parseInt(_0x463297(0x1a1))/0xb);if(_0x41b067===_0x204f6f)break;else _0x5c72c6['push'](_0x5c72c6['shift']());}catch(_0x4f180f){_0x5c72c6['push'](_0x5c72c6['shift']());}}}(a146_0x4ecf,0x383ac));function a146_0x3b95(_0x8bf015,_0x2b08a1){_0x8bf015=_0x8bf015-0x192;const _0x4ecf3b=a146_0x4ecf();let _0x3b95a4=_0x4ecf3b[_0x8bf015];return _0x3b95a4;}import{existsSync,readFileSync}from'fs';import a146_0x1d3979 from'path';const TDX_CONFIG_FILE=a146_0x1eeffe(0x1a5),SEGMENTS_DIR=a146_0x1eeffe(0x1aa);export function findTdxConfigPath(_0x124af4=process[a146_0x1eeffe(0x19b)]()){const _0x3b778a=a146_0x1eeffe;let _0xc1a25e=a146_0x1d3979[_0x3b778a(0x19a)](_0x124af4);const _0x15a0b4=a146_0x1d3979['parse'](_0xc1a25e)['root'];while(_0xc1a25e!==_0x15a0b4){const _0x424416=a146_0x1d3979['join'](_0xc1a25e,TDX_CONFIG_FILE);if(existsSync(_0x424416))return _0x424416;_0xc1a25e=a146_0x1d3979['dirname'](_0xc1a25e);}return null;}export function loadTdxConfig(_0x579dd1){const _0x1341eb=a146_0x1eeffe,_0x577c55=readFileSync(_0x579dd1,_0x1341eb(0x19e));let _0x2d4603;try{_0x2d4603=JSON[_0x1341eb(0x193)](_0x577c55);}catch{throw new Error(_0x1341eb(0x1a3)+_0x579dd1);}if(!_0x2d4603||typeof _0x2d4603!==_0x1341eb(0x1af))throw new Error(_0x1341eb(0x1ab));const _0xcb566=_0x2d4603,_0x567cd3=_0xcb566['parent_segment']&&typeof _0xcb566['parent_segment']===_0x1341eb(0x194),_0x2bbbc2=_0xcb566[_0x1341eb(0x19d)]&&typeof _0xcb566[_0x1341eb(0x19d)]===_0x1341eb(0x194);if(!_0x567cd3&&!_0x2bbbc2)throw new Error(_0x1341eb(0x1b0));const _0x557cb2={};return _0x567cd3&&(_0x557cb2['parent_segment']=_0xcb566[_0x1341eb(0x1ad)]),_0x2bbbc2&&(_0x557cb2['engage_workspace']=_0xcb566[_0x1341eb(0x19d)]),_0x557cb2;}export function findTdxConfig(_0x31e36a=process['cwd']()){const _0x49d72a=a146_0x1eeffe,_0x5278aa=findTdxConfigPath(_0x31e36a);if(!_0x5278aa)throw new Error(_0x49d72a(0x1a6));const _0x73f8dc=loadTdxConfig(_0x5278aa),_0x8420c4=a146_0x1d3979['dirname'](_0x5278aa);return{'config':_0x73f8dc,'configPath':_0x5278aa,'configDir':_0x8420c4};}export function tryFindTdxConfig(_0x451eaa){try{return findTdxConfig(_0x451eaa);}catch{return null;}}export function getSegmentRootDir(_0x56472b,_0x135e92=process['cwd']()){const _0x4e9f61=a146_0x1eeffe;return a146_0x1d3979[_0x4e9f61(0x1ae)](_0x135e92,SEGMENTS_DIR,_0x56472b);}export function getTdxConfigPath(_0x432d09,_0x321927=process['cwd']()){const _0x3f2aa1=a146_0x1eeffe;return a146_0x1d3979[_0x3f2aa1(0x1ae)](getSegmentRootDir(_0x432d09,_0x321927),TDX_CONFIG_FILE);}export function getRelativePathFromConfig(_0x4bdb17,_0x2cff70){const _0x53cf03=a146_0x1eeffe,_0x4d2782=a146_0x1d3979[_0x53cf03(0x19a)](_0x4bdb17),_0x5d0e06=a146_0x1d3979[_0x53cf03(0x1a2)](_0x2cff70,_0x4d2782);if(_0x5d0e06[_0x53cf03(0x198)]('..'))return'';return _0x5d0e06;}export function localPathToTdFolderPath(_0x4f1a69){const _0xf0230b=a146_0x1eeffe,_0x455a26=a146_0x1d3979[_0xf0230b(0x1a0)](_0x4f1a69);if(_0x455a26==='.'||_0x455a26==='')return'';return _0x455a26[_0xf0230b(0x197)](/\\/g,'/');}export function tdFolderPathToLocalPath(_0x1702fe,_0x46176d){if(!_0x1702fe)return _0x46176d;return a146_0x1d3979['join'](_0x46176d,_0x1702fe);}function a146_0x4ecf(){const _0x193762=['786260SKGaew','265ieRRiP','replace','startsWith','1940xqddAl','resolve','cwd','98UPxjgZ','engage_workspace','utf-8','252059klJOhq','dirname','77owOtkF','relative','Invalid\x20JSON\x20in\x20','915550OdHvxb','tdx.json','No\x20tdx.json\x20found.\x20Please\x20run\x20\x27tdx\x20sg\x20pull\x20<parent_segment>\x27\x20first\x20to\x20create\x20the\x20folder\x20structure.','9CUGClC','92388tizlJD','852102vVHyPS','segments','Invalid\x20tdx.json:\x20expected\x20object','621912OGKbNY','parent_segment','join','object','Invalid\x20tdx.json:\x20must\x20contain\x20\x27parent_segment\x27\x20or\x20\x27engage_workspace\x27\x20field','stringify','parse','string'];a146_0x4ecf=function(){return _0x193762;};return a146_0x4ecf();}export function createTdxConfigContent(_0x2cec48){const _0x233354=a146_0x1eeffe,_0x2bd59e={'parent_segment':_0x2cec48};return JSON[_0x233354(0x192)](_0x2bd59e,null,0x2)+'\x0a';}export function createEngageTdxConfigContent(_0xfb310a){const _0x43afcc={'engage_workspace':_0xfb310a};return JSON['stringify'](_0x43afcc,null,0x2)+'\x0a';}
1
+ const a146_0x30e1ee=a146_0x5bbe;(function(_0x570d19,_0x33bb1c){const _0x1c350b=a146_0x5bbe,_0x5564bf=_0x570d19();while(!![]){try{const _0x3de384=-parseInt(_0x1c350b(0xd9))/0x1+parseInt(_0x1c350b(0xeb))/0x2+-parseInt(_0x1c350b(0xd7))/0x3+parseInt(_0x1c350b(0xdf))/0x4+-parseInt(_0x1c350b(0xd4))/0x5*(-parseInt(_0x1c350b(0xd5))/0x6)+parseInt(_0x1c350b(0xd6))/0x7*(-parseInt(_0x1c350b(0xe3))/0x8)+-parseInt(_0x1c350b(0xe1))/0x9*(parseInt(_0x1c350b(0xd8))/0xa);if(_0x3de384===_0x33bb1c)break;else _0x5564bf['push'](_0x5564bf['shift']());}catch(_0x250162){_0x5564bf['push'](_0x5564bf['shift']());}}}(a146_0x3b72,0x886d1));import{existsSync,readFileSync}from'fs';import a146_0x39b6f3 from'path';const TDX_CONFIG_FILE=a146_0x30e1ee(0xec),SEGMENTS_DIR=a146_0x30e1ee(0xde);export function findTdxConfigPath(_0x5a454a=process[a146_0x30e1ee(0xe9)]()){const _0x454180=a146_0x30e1ee;let _0x13b26e=a146_0x39b6f3[_0x454180(0xe6)](_0x5a454a);const _0x157376=a146_0x39b6f3[_0x454180(0xdc)](_0x13b26e)[_0x454180(0xd3)];while(_0x13b26e!==_0x157376){const _0x24bc9e=a146_0x39b6f3['join'](_0x13b26e,TDX_CONFIG_FILE);if(existsSync(_0x24bc9e))return _0x24bc9e;_0x13b26e=a146_0x39b6f3[_0x454180(0xd2)](_0x13b26e);}return null;}export function loadTdxConfig(_0x3f37fc){const _0xebe0d2=a146_0x30e1ee,_0x3af754=readFileSync(_0x3f37fc,_0xebe0d2(0xe8));let _0x1a6727;try{_0x1a6727=JSON[_0xebe0d2(0xdc)](_0x3af754);}catch{throw new Error(_0xebe0d2(0xda)+_0x3f37fc);}if(!_0x1a6727||typeof _0x1a6727!==_0xebe0d2(0xd1))throw new Error(_0xebe0d2(0xe2));const _0x5422e7=_0x1a6727,_0x165aa7=_0x5422e7[_0xebe0d2(0xdd)]&&typeof _0x5422e7[_0xebe0d2(0xdd)]===_0xebe0d2(0xe7),_0x50c58c=_0x5422e7[_0xebe0d2(0xe4)]&&typeof _0x5422e7['engage_workspace']===_0xebe0d2(0xe7);if(!_0x165aa7&&!_0x50c58c)throw new Error(_0xebe0d2(0xed));const _0x227f78={};return _0x165aa7&&(_0x227f78[_0xebe0d2(0xdd)]=_0x5422e7[_0xebe0d2(0xdd)]),_0x50c58c&&(_0x227f78[_0xebe0d2(0xe4)]=_0x5422e7['engage_workspace']),_0x227f78;}export function findTdxConfig(_0x399112=process[a146_0x30e1ee(0xe9)]()){const _0x51989c=a146_0x30e1ee,_0x1dec32=findTdxConfigPath(_0x399112);if(!_0x1dec32)throw new Error(_0x51989c(0xea));const _0x34fd45=loadTdxConfig(_0x1dec32),_0x25030f=a146_0x39b6f3[_0x51989c(0xd2)](_0x1dec32);return{'config':_0x34fd45,'configPath':_0x1dec32,'configDir':_0x25030f};}export function tryFindTdxConfig(_0x1e402d){try{return findTdxConfig(_0x1e402d);}catch{return null;}}export function getSegmentRootDir(_0x12bb66,_0x24735d=process['cwd']()){const _0x45a374=a146_0x30e1ee;return a146_0x39b6f3[_0x45a374(0xe5)](_0x24735d,SEGMENTS_DIR,_0x12bb66);}export function getTdxConfigPath(_0x5c90b6,_0x588798=process['cwd']()){return a146_0x39b6f3['join'](getSegmentRootDir(_0x5c90b6,_0x588798),TDX_CONFIG_FILE);}function a146_0x5bbe(_0x48ed25,_0x374b14){_0x48ed25=_0x48ed25-0xd1;const _0x3b728a=a146_0x3b72();let _0x5bbe5d=_0x3b728a[_0x48ed25];return _0x5bbe5d;}export function getRelativePathFromConfig(_0x2de5cf,_0x16119b){const _0x5cf763=a146_0x30e1ee,_0x58638e=a146_0x39b6f3[_0x5cf763(0xe6)](_0x2de5cf),_0x287c04=a146_0x39b6f3[_0x5cf763(0xe0)](_0x16119b,_0x58638e);if(_0x287c04['startsWith']('..'))return'';return _0x287c04;}function a146_0x3b72(){const _0x205215=['1691140hVsXht','70584SFmGnG','Invalid\x20JSON\x20in\x20','stringify','parse','parent_segment','segments','4000584QFsceC','relative','99wAzMVY','Invalid\x20tdx.json:\x20expected\x20object','8qugGXj','engage_workspace','join','resolve','string','utf-8','cwd','No\x20tdx.json\x20found.\x20Please\x20run\x20\x27tdx\x20sg\x20pull\x20<parent_segment>\x27\x20first\x20to\x20create\x20the\x20folder\x20structure.','1566090mYICyt','tdx.json','Invalid\x20tdx.json:\x20must\x20contain\x20\x27parent_segment\x27\x20or\x20\x27engage_workspace\x27\x20field','object','dirname','root','596955HENhGI','54ZFPAJw','1774164bRSBjN','343857vrKbJo'];a146_0x3b72=function(){return _0x205215;};return a146_0x3b72();}export function localPathToTdFolderPath(_0x5c8b93){const _0x501cc9=a146_0x30e1ee,_0xacc611=a146_0x39b6f3[_0x501cc9(0xd2)](_0x5c8b93);if(_0xacc611==='.'||_0xacc611==='')return'';return _0xacc611['replace'](/\\/g,'/');}export function tdFolderPathToLocalPath(_0x45d4b4,_0x33f6da){const _0x2111ce=a146_0x30e1ee;if(!_0x45d4b4)return _0x33f6da;return a146_0x39b6f3[_0x2111ce(0xe5)](_0x33f6da,_0x45d4b4);}export function createTdxConfigContent(_0xab6941){const _0xa0f9ce=a146_0x30e1ee,_0x3ab6f7={'parent_segment':_0xab6941};return JSON[_0xa0f9ce(0xdb)](_0x3ab6f7,null,0x2)+'\x0a';}export function createEngageTdxConfigContent(_0xdd42c0){const _0x1f297e=a146_0x30e1ee,_0xd71ba3={'engage_workspace':_0xdd42c0};return JSON[_0x1f297e(0xdb)](_0xd71ba3,null,0x2)+'\x0a';}
@@ -1 +1 @@
1
- const a147_0x548cde=a147_0x5e58;(function(_0x1b453b,_0x3e18d7){const _0x3be5c6=a147_0x5e58,_0x334b3f=_0x1b453b();while(!![]){try{const _0x3225b6=-parseInt(_0x3be5c6(0x7d))/0x1+parseInt(_0x3be5c6(0x81))/0x2+parseInt(_0x3be5c6(0xa2))/0x3*(-parseInt(_0x3be5c6(0x9d))/0x4)+-parseInt(_0x3be5c6(0x87))/0x5+-parseInt(_0x3be5c6(0xa3))/0x6*(parseInt(_0x3be5c6(0x84))/0x7)+parseInt(_0x3be5c6(0x95))/0x8*(parseInt(_0x3be5c6(0x9c))/0x9)+parseInt(_0x3be5c6(0x97))/0xa*(parseInt(_0x3be5c6(0x96))/0xb);if(_0x3225b6===_0x3e18d7)break;else _0x334b3f['push'](_0x334b3f['shift']());}catch(_0x1ddf26){_0x334b3f['push'](_0x334b3f['shift']());}}}(a147_0x12de,0x7988b));import{z}from'zod';function a147_0x5e58(_0x1b3d54,_0x16da3e){_0x1b3d54=_0x1b3d54-0x7a;const _0x12de08=a147_0x12de();let _0x5e585f=_0x12de08[_0x1b3d54];return _0x5e585f;}export const ScheduleTypeSchema=z[a147_0x548cde(0xa1)]([a147_0x548cde(0x7a),'hourly',a147_0x548cde(0x92),a147_0x548cde(0x85),a147_0x548cde(0x90),'cron',a147_0x548cde(0x94)]);export const RepeatUnitSchema=z[a147_0x548cde(0xa1)]([a147_0x548cde(0x99),'hour',a147_0x548cde(0x8c),a147_0x548cde(0x9a),a147_0x548cde(0x9f),'once',a147_0x548cde(0x7a)]);export const ScheduleDefSchema=z[a147_0x548cde(0x98)]({'type':ScheduleTypeSchema[a147_0x548cde(0x9e)](),'repeat_unit':RepeatUnitSchema[a147_0x548cde(0x9e)](),'repeat_frequency':z['number']()[a147_0x548cde(0x9e)](),'repeat_sub_frequency':z[a147_0x548cde(0x86)](z[a147_0x548cde(0x8a)]())[a147_0x548cde(0x9e)](),'start_at':z[a147_0x548cde(0x8f)]()[a147_0x548cde(0x7c)]()[a147_0x548cde(0x9e)](),'end_on':z['string']()[a147_0x548cde(0x7c)]()[a147_0x548cde(0x9e)](),'timezone':z[a147_0x548cde(0x8f)]()[a147_0x548cde(0x9e)]()});export const NotificationDefSchema=z[a147_0x548cde(0x98)]({'notify_on':z[a147_0x548cde(0x86)](z['enum']([a147_0x548cde(0x7b),a147_0x548cde(0x88)]))['optional'](),'email_recipients':z[a147_0x548cde(0x86)](z[a147_0x548cde(0x8f)]())[a147_0x548cde(0x9e)]()});export const ActivationColumnDefSchema=z[a147_0x548cde(0x82)]([z[a147_0x548cde(0x8f)](),z['object']({'name':z[a147_0x548cde(0x8f)](),'type':z[a147_0x548cde(0x8f)]()['optional'](),'visibility':z['enum']([a147_0x548cde(0x93),a147_0x548cde(0x8e)])[a147_0x548cde(0x9e)]()})]);function a147_0x12de(){const _0x2ab9d8=['onSuccess','nullable','98175dowVro','desc','Top-N','asc','329334KwHaTl','union','min','728WZpJkH','weekly','array','4366060aJuGvh','onFailure','Last','number','boolean','day','All','masked','string','monthly','unknown','daily','clear','minutes_interval','6837144mEhpCM','88CceodF','1733780MdYFEV','object','minute','week','Connection\x20name\x20is\x20required','9VECYrD','1248MelvRo','optional','month','record','enum','2757HToTQw','37524MoqRWI','rows','none'];a147_0x12de=function(){return _0x2ab9d8;};return a147_0x12de();}export const ActivationBehaviorDefSchema=z[a147_0x548cde(0x98)]({'columns':z[a147_0x548cde(0x86)](z[a147_0x548cde(0x98)]({'name':z[a147_0x548cde(0x8f)](),'type':z[a147_0x548cde(0x8f)]()[a147_0x548cde(0x9e)](),'visibility':z[a147_0x548cde(0xa1)](['clear',a147_0x548cde(0x8e)])[a147_0x548cde(0x9e)]()}))[a147_0x548cde(0x9e)](),'behavior_table':z['string']()[a147_0x548cde(0x9e)](),'join_row':z[a147_0x548cde(0x8a)]()[a147_0x548cde(0x7c)]()['optional'](),'join_strategy':z[a147_0x548cde(0xa1)]([a147_0x548cde(0x8d),'First',a147_0x548cde(0x89),a147_0x548cde(0x7f)])[a147_0x548cde(0x9e)](),'formatting':z[a147_0x548cde(0xa1)]([a147_0x548cde(0xa4),'cols'])[a147_0x548cde(0x9e)](),'order_by':z[a147_0x548cde(0x86)](z[a147_0x548cde(0x98)]({'key':z[a147_0x548cde(0x8f)](),'order':z['enum']([a147_0x548cde(0x80),a147_0x548cde(0x7e)])}))['optional']()});export const ActivationDefSchema=z[a147_0x548cde(0x98)]({'name':z[a147_0x548cde(0x8f)]()[a147_0x548cde(0x83)](0x1,'Activation\x20name\x20is\x20required'),'description':z[a147_0x548cde(0x8f)]()[a147_0x548cde(0x9e)](),'connection':z[a147_0x548cde(0x8f)]()['min'](0x1,a147_0x548cde(0x9b)),'all_columns':z[a147_0x548cde(0x8b)]()[a147_0x548cde(0x9e)](),'columns':z[a147_0x548cde(0x86)](ActivationColumnDefSchema)[a147_0x548cde(0x9e)](),'schedule':ScheduleDefSchema[a147_0x548cde(0x9e)](),'notification':NotificationDefSchema['optional'](),'connector_config':z[a147_0x548cde(0xa0)](z[a147_0x548cde(0x8f)](),z[a147_0x548cde(0x91)]())['optional'](),'activation_template_id':z[a147_0x548cde(0x8f)]()[a147_0x548cde(0x7c)]()[a147_0x548cde(0x9e)](),'behavior':ActivationBehaviorDefSchema[a147_0x548cde(0x7c)]()[a147_0x548cde(0x9e)](),'run_after_journey_refresh':z['boolean']()[a147_0x548cde(0x9e)]()});
1
+ const a147_0x387f39=a147_0x5e70;(function(_0x302637,_0x20c752){const _0x26106b=a147_0x5e70,_0x4245d7=_0x302637();while(!![]){try{const _0x31e0ba=parseInt(_0x26106b(0x1f8))/0x1+-parseInt(_0x26106b(0x1f9))/0x2+parseInt(_0x26106b(0x1d8))/0x3*(-parseInt(_0x26106b(0x1fb))/0x4)+-parseInt(_0x26106b(0x1e6))/0x5+parseInt(_0x26106b(0x1eb))/0x6+-parseInt(_0x26106b(0x1d7))/0x7+parseInt(_0x26106b(0x1f4))/0x8;if(_0x31e0ba===_0x20c752)break;else _0x4245d7['push'](_0x4245d7['shift']());}catch(_0x2cd048){_0x4245d7['push'](_0x4245d7['shift']());}}}(a147_0x2322,0x65578));import{z}from'zod';function a147_0x5e70(_0x53ce79,_0x5f1b24){_0x53ce79=_0x53ce79-0x1d2;const _0x2322c8=a147_0x2322();let _0x5e7059=_0x2322c8[_0x53ce79];return _0x5e7059;}export const ScheduleTypeSchema=z['enum'](['none',a147_0x387f39(0x1e4),a147_0x387f39(0x1db),'weekly',a147_0x387f39(0x1d6),a147_0x387f39(0x1da),a147_0x387f39(0x1d2)]);export const RepeatUnitSchema=z[a147_0x387f39(0x1e3)]([a147_0x387f39(0x1de),a147_0x387f39(0x1e1),a147_0x387f39(0x1ef),a147_0x387f39(0x1fd),a147_0x387f39(0x1ed),'once',a147_0x387f39(0x1e2)]);export const ScheduleDefSchema=z[a147_0x387f39(0x1d9)]({'type':ScheduleTypeSchema[a147_0x387f39(0x1f5)](),'repeat_unit':RepeatUnitSchema[a147_0x387f39(0x1f5)](),'repeat_frequency':z['number']()['optional'](),'repeat_sub_frequency':z[a147_0x387f39(0x1e7)](z[a147_0x387f39(0x1f0)]())[a147_0x387f39(0x1f5)](),'start_at':z[a147_0x387f39(0x1fc)]()[a147_0x387f39(0x1ea)]()['optional'](),'end_on':z['string']()[a147_0x387f39(0x1ea)]()[a147_0x387f39(0x1f5)](),'timezone':z[a147_0x387f39(0x1fc)]()['optional']()});export const NotificationDefSchema=z[a147_0x387f39(0x1d9)]({'notify_on':z[a147_0x387f39(0x1e7)](z[a147_0x387f39(0x1e3)]([a147_0x387f39(0x1f3),a147_0x387f39(0x1f2)]))[a147_0x387f39(0x1f5)](),'email_recipients':z['array'](z[a147_0x387f39(0x1fc)]())[a147_0x387f39(0x1f5)]()});export const ActivationColumnDefSchema=z[a147_0x387f39(0x1d4)]([z[a147_0x387f39(0x1fc)](),z[a147_0x387f39(0x1d9)]({'name':z[a147_0x387f39(0x1fc)](),'type':z[a147_0x387f39(0x1fc)]()[a147_0x387f39(0x1f5)](),'visibility':z[a147_0x387f39(0x1e3)](['clear',a147_0x387f39(0x1f1)])[a147_0x387f39(0x1f5)]()})]);export const ActivationBehaviorDefSchema=z[a147_0x387f39(0x1d9)]({'columns':z[a147_0x387f39(0x1e7)](z[a147_0x387f39(0x1d9)]({'name':z[a147_0x387f39(0x1fc)](),'type':z[a147_0x387f39(0x1fc)]()['optional'](),'visibility':z[a147_0x387f39(0x1e3)]([a147_0x387f39(0x1fa),a147_0x387f39(0x1f1)])[a147_0x387f39(0x1f5)]()}))[a147_0x387f39(0x1f5)](),'behavior_table':z[a147_0x387f39(0x1fc)]()[a147_0x387f39(0x1f5)](),'join_row':z[a147_0x387f39(0x1f0)]()[a147_0x387f39(0x1ea)]()[a147_0x387f39(0x1f5)](),'join_strategy':z[a147_0x387f39(0x1e3)](['All',a147_0x387f39(0x1ee),a147_0x387f39(0x1df),a147_0x387f39(0x1d5)])['optional'](),'formatting':z[a147_0x387f39(0x1e3)]([a147_0x387f39(0x1dc),a147_0x387f39(0x1e5)])[a147_0x387f39(0x1f5)](),'order_by':z['array'](z[a147_0x387f39(0x1d9)]({'key':z['string'](),'order':z[a147_0x387f39(0x1e3)]([a147_0x387f39(0x1dd),a147_0x387f39(0x1e8)])}))[a147_0x387f39(0x1f5)]()});function a147_0x2322(){const _0x4369dd=['minutes_interval','record','union','Top-N','monthly','794136sNFvjx','224121EPGYcK','object','cron','daily','rows','asc','minute','Last','Connection\x20name\x20is\x20required','hour','none','enum','hourly','cols','30490kcrVQy','array','desc','unknown','nullable','3546774NheCdF','Activation\x20name\x20is\x20required','month','First','day','number','masked','onFailure','onSuccess','8769712CXjjjz','optional','min','boolean','376379SAGMEh','1414606nEtDkK','clear','44ZnwIDY','string','week'];a147_0x2322=function(){return _0x4369dd;};return a147_0x2322();}export const ActivationDefSchema=z[a147_0x387f39(0x1d9)]({'name':z['string']()[a147_0x387f39(0x1f6)](0x1,a147_0x387f39(0x1ec)),'description':z[a147_0x387f39(0x1fc)]()['optional'](),'connection':z[a147_0x387f39(0x1fc)]()[a147_0x387f39(0x1f6)](0x1,a147_0x387f39(0x1e0)),'all_columns':z['boolean']()[a147_0x387f39(0x1f5)](),'columns':z['array'](ActivationColumnDefSchema)[a147_0x387f39(0x1f5)](),'schedule':ScheduleDefSchema['optional'](),'notification':NotificationDefSchema['optional'](),'connector_config':z[a147_0x387f39(0x1d3)](z[a147_0x387f39(0x1fc)](),z[a147_0x387f39(0x1e9)]())[a147_0x387f39(0x1f5)](),'activation_template_id':z['string']()[a147_0x387f39(0x1ea)]()[a147_0x387f39(0x1f5)](),'behavior':ActivationBehaviorDefSchema[a147_0x387f39(0x1ea)]()[a147_0x387f39(0x1f5)](),'run_after_journey_refresh':z[a147_0x387f39(0x1f7)]()[a147_0x387f39(0x1f5)]()});
@@ -1 +1 @@
1
- (function(_0x17bc14,_0x236397){var _0x332e73=a148_0x76b4,_0x52b68f=_0x17bc14();while(!![]){try{var _0x49ad5e=-parseInt(_0x332e73(0x14c))/0x1+-parseInt(_0x332e73(0x143))/0x2+-parseInt(_0x332e73(0x14b))/0x3*(parseInt(_0x332e73(0x149))/0x4)+parseInt(_0x332e73(0x145))/0x5*(-parseInt(_0x332e73(0x147))/0x6)+-parseInt(_0x332e73(0x146))/0x7+parseInt(_0x332e73(0x144))/0x8*(parseInt(_0x332e73(0x148))/0x9)+parseInt(_0x332e73(0x14a))/0xa*(parseInt(_0x332e73(0x14d))/0xb);if(_0x49ad5e===_0x236397)break;else _0x52b68f['push'](_0x52b68f['shift']());}catch(_0x56a870){_0x52b68f['push'](_0x52b68f['shift']());}}}(a148_0x3ab1,0x83b1f));function a148_0x76b4(_0x3bea11,_0x19844f){_0x3bea11=_0x3bea11-0x143;var _0x3ab1ed=a148_0x3ab1();var _0x76b4de=_0x3ab1ed[_0x3bea11];return _0x76b4de;}export{JourneyStateTypeSchema,ReentryModeTypeSchema,WaitUnitTypeSchema,StepTypeValueSchema,EmbeddedSegmentDefSchema,CriteriaDefSchema,StepDefSchema,StageDefSchema,JourneyEntryDefSchema,JourneyDefSchema}from'./journey-schema.js';function a148_0x3ab1(){var _0x2d2832=['1319896VBRHOl','8jklZtk','50065rACYLx','4704826pEpuYF','102mNESzc','105660wOHcWM','4lzJKPs','90LigFmB','736311UxKFxW','1077381FSkwOT','4097852RspbDj'];a148_0x3ab1=function(){return _0x2d2832;};return a148_0x3ab1();}
1
+ function a148_0x1dbd(_0x3d583d,_0x3504af){_0x3d583d=_0x3d583d-0x129;var _0x35a701=a148_0x35a7();var _0x1dbd4b=_0x35a701[_0x3d583d];return _0x1dbd4b;}(function(_0x3efc87,_0x49418a){var _0x5c4921=a148_0x1dbd,_0x5e804c=_0x3efc87();while(!![]){try{var _0x318133=-parseInt(_0x5c4921(0x12f))/0x1*(parseInt(_0x5c4921(0x12d))/0x2)+parseInt(_0x5c4921(0x12c))/0x3*(-parseInt(_0x5c4921(0x132))/0x4)+parseInt(_0x5c4921(0x131))/0x5+-parseInt(_0x5c4921(0x129))/0x6+-parseInt(_0x5c4921(0x133))/0x7*(parseInt(_0x5c4921(0x12e))/0x8)+-parseInt(_0x5c4921(0x12b))/0x9*(parseInt(_0x5c4921(0x12a))/0xa)+-parseInt(_0x5c4921(0x134))/0xb*(-parseInt(_0x5c4921(0x130))/0xc);if(_0x318133===_0x49418a)break;else _0x5e804c['push'](_0x5e804c['shift']());}catch(_0x512b66){_0x5e804c['push'](_0x5e804c['shift']());}}}(a148_0x35a7,0xb7a50));function a148_0x35a7(){var _0x16417b=['49904VcYIOh','10012653ZURqIC','33EemjFe','3630624vhTRlK','10cwQzGs','292149JNDRFf','201OXFuAo','8pITEzo','8KJnyQn','18806UezDDF','11265552bJvysU','4574400zRytOF'];a148_0x35a7=function(){return _0x16417b;};return a148_0x35a7();}export{JourneyStateTypeSchema,ReentryModeTypeSchema,WaitUnitTypeSchema,StepTypeValueSchema,EmbeddedSegmentDefSchema,CriteriaDefSchema,StepDefSchema,StageDefSchema,JourneyEntryDefSchema,JourneyDefSchema}from'./journey-schema.js';
@@ -1 +1 @@
1
- const a149_0x1ed6cc=a149_0x37db;(function(_0x33f41c,_0x59ae8d){const _0x56ea5a=a149_0x37db,_0x336f3d=_0x33f41c();while(!![]){try{const _0x1d9898=-parseInt(_0x56ea5a(0x199))/0x1+parseInt(_0x56ea5a(0x1a0))/0x2+-parseInt(_0x56ea5a(0x1a2))/0x3*(parseInt(_0x56ea5a(0x18f))/0x4)+-parseInt(_0x56ea5a(0x1ac))/0x5*(parseInt(_0x56ea5a(0x1ad))/0x6)+-parseInt(_0x56ea5a(0x1a5))/0x7*(-parseInt(_0x56ea5a(0x19f))/0x8)+-parseInt(_0x56ea5a(0x19b))/0x9*(parseInt(_0x56ea5a(0x1a9))/0xa)+parseInt(_0x56ea5a(0x187))/0xb*(parseInt(_0x56ea5a(0x193))/0xc);if(_0x1d9898===_0x59ae8d)break;else _0x336f3d['push'](_0x336f3d['shift']());}catch(_0x2099f4){_0x336f3d['push'](_0x336f3d['shift']());}}}(a149_0x5442,0xe8da0));import{z}from'zod';import{RuleDefSchema}from'./segment-schema.js';import{ActivationDefSchema}from'./activation-schema.js';export const JourneyStateTypeSchema=z[a149_0x1ed6cc(0x19c)](['draft',a149_0x1ed6cc(0x189),'launched']);function a149_0x5442(){const _0x16d04d=['7ZdXuwA','literal','activation','jump','306710sqnnmk','object','number','755gPcoVp','23418zVOSoA','string','filter','week','min','38097158yvBVrC','length','simulation','Journey\x20name\x20is\x20required','lazy','discriminatedUnion','boolean','stages','20DsIHDc','refine','end','Journey\x20must\x20have\x20exactly\x20one\x20of:\x20journeys,\x20stages,\x20or\x20versions','12xydvly','reentry_always','isArray','array','no_reentry','journey','358571nVHdOd','decision_point','531rxXleK','enum','merge','ab_test','7135056VwQXZX','437756HToiFw','optional','517719pyTVgz','reentry_unless_goal_achieved','wait'];a149_0x5442=function(){return _0x16d04d;};return a149_0x5442();}export const ReentryModeTypeSchema=z[a149_0x1ed6cc(0x19c)]([a149_0x1ed6cc(0x197),a149_0x1ed6cc(0x1a3),a149_0x1ed6cc(0x194)]);export const WaitUnitTypeSchema=z[a149_0x1ed6cc(0x19c)](['day',a149_0x1ed6cc(0x1b0)]);export const StepTypeValueSchema=z[a149_0x1ed6cc(0x19c)]([a149_0x1ed6cc(0x1a4),a149_0x1ed6cc(0x1a7),a149_0x1ed6cc(0x19a),a149_0x1ed6cc(0x19e),a149_0x1ed6cc(0x19d),'jump','end']);export const EmbeddedSegmentDefSchema=z[a149_0x1ed6cc(0x1aa)]({'description':z[a149_0x1ed6cc(0x1ae)]()[a149_0x1ed6cc(0x1a1)](),'rule':RuleDefSchema});const JumpTargetDefSchema=z[a149_0x1ed6cc(0x1aa)]({'journey':z[a149_0x1ed6cc(0x1ae)](),'stage':z[a149_0x1ed6cc(0x1ae)](),'bundle_id':z[a149_0x1ed6cc(0x1ae)]()[a149_0x1ed6cc(0x1a1)]()});export const CriteriaDefSchema=z[a149_0x1ed6cc(0x1aa)]({'name':z['string'](),'description':z[a149_0x1ed6cc(0x1ae)]()['optional'](),'segment':z[a149_0x1ed6cc(0x1ae)](),'target':JumpTargetDefSchema[a149_0x1ed6cc(0x1a1)]()});const WaitConditionTimeoutDefSchema=z[a149_0x1ed6cc(0x1aa)]({'duration':z[a149_0x1ed6cc(0x1ab)](),'unit':WaitUnitTypeSchema,'next':z['string']()[a149_0x1ed6cc(0x1a1)]()}),WaitConditionDefSchema=z[a149_0x1ed6cc(0x1aa)]({'segment':z[a149_0x1ed6cc(0x1ae)](),'next':z['string']()[a149_0x1ed6cc(0x1a1)](),'timeout':WaitConditionTimeoutDefSchema[a149_0x1ed6cc(0x1a1)]()}),WaitStepParamsDefSchema=z[a149_0x1ed6cc(0x1aa)]({'duration':z['number']()[a149_0x1ed6cc(0x1a1)](),'unit':WaitUnitTypeSchema['optional'](),'wait_until':z['string']()['optional'](),'condition':WaitConditionDefSchema[a149_0x1ed6cc(0x1a1)](),'days_of_week':z[a149_0x1ed6cc(0x196)](z['string']())[a149_0x1ed6cc(0x1a1)]()}),StepBaseFields={'name':z[a149_0x1ed6cc(0x1ae)](),'uuid':z['string']()['optional'](),'next':z[a149_0x1ed6cc(0x1ae)]()[a149_0x1ed6cc(0x1a1)]()},WaitStepDefSchema=z['object']({...StepBaseFields,'type':z[a149_0x1ed6cc(0x1a6)](a149_0x1ed6cc(0x1a4)),'with':WaitStepParamsDefSchema}),ActivationStepParamsDefSchema=z[a149_0x1ed6cc(0x1aa)]({'activation':z[a149_0x1ed6cc(0x1ae)]()}),ActivationStepDefSchema=z[a149_0x1ed6cc(0x1aa)]({...StepBaseFields,'type':z[a149_0x1ed6cc(0x1a6)](a149_0x1ed6cc(0x1a7)),'with':ActivationStepParamsDefSchema}),DecisionBranchDefSchema=z[a149_0x1ed6cc(0x1aa)]({'name':z[a149_0x1ed6cc(0x1ae)](),'segment':z[a149_0x1ed6cc(0x1ae)]()[a149_0x1ed6cc(0x1a1)](),'segment_id':z[a149_0x1ed6cc(0x1ae)]()[a149_0x1ed6cc(0x1a1)](),'excluded':z['boolean']()['optional'](),'next':z[a149_0x1ed6cc(0x1ae)]()[a149_0x1ed6cc(0x1a1)]()}),DecisionPointStepParamsDefSchema=z[a149_0x1ed6cc(0x1aa)]({'branches':z[a149_0x1ed6cc(0x196)](DecisionBranchDefSchema)}),DecisionPointStepDefSchema=z[a149_0x1ed6cc(0x1aa)]({...StepBaseFields,'type':z[a149_0x1ed6cc(0x1a6)](a149_0x1ed6cc(0x19a)),'with':DecisionPointStepParamsDefSchema}),AbTestVariantDefSchema=z['object']({'id':z[a149_0x1ed6cc(0x1ae)]()[a149_0x1ed6cc(0x1a1)](),'name':z[a149_0x1ed6cc(0x1ae)](),'percentage':z[a149_0x1ed6cc(0x1ab)](),'next':z[a149_0x1ed6cc(0x1ae)]()[a149_0x1ed6cc(0x1a1)]()}),AbTestStepParamsDefSchema=z['object']({'variants':z['array'](AbTestVariantDefSchema),'unique_id':z[a149_0x1ed6cc(0x1ae)]()['optional'](),'customized_split':z[a149_0x1ed6cc(0x18d)]()['optional']()}),AbTestStepDefSchema=z[a149_0x1ed6cc(0x1aa)]({...StepBaseFields,'type':z[a149_0x1ed6cc(0x1a6)](a149_0x1ed6cc(0x19e)),'with':AbTestStepParamsDefSchema}),MergeStepDefSchema=z[a149_0x1ed6cc(0x1aa)]({...StepBaseFields,'type':z[a149_0x1ed6cc(0x1a6)]('merge')}),JumpStepParamsDefSchema=z['object']({'target':JumpTargetDefSchema}),JumpStepDefSchema=z['object']({...StepBaseFields,'type':z[a149_0x1ed6cc(0x1a6)](a149_0x1ed6cc(0x1a8)),'with':JumpStepParamsDefSchema}),EndStepDefSchema=z['object']({...StepBaseFields,'type':z[a149_0x1ed6cc(0x1a6)](a149_0x1ed6cc(0x191))})['passthrough']();export const StepDefSchema=z[a149_0x1ed6cc(0x18c)]('type',[WaitStepDefSchema,ActivationStepDefSchema,DecisionPointStepDefSchema,AbTestStepDefSchema,MergeStepDefSchema,JumpStepDefSchema,EndStepDefSchema]);function a149_0x37db(_0x3da12f,_0x19cee9){_0x3da12f=_0x3da12f-0x187;const _0x5442f8=a149_0x5442();let _0x37dbfc=_0x5442f8[_0x3da12f];return _0x37dbfc;}export const StageDefSchema=z[a149_0x1ed6cc(0x1aa)]({'name':z[a149_0x1ed6cc(0x1ae)](),'description':z[a149_0x1ed6cc(0x1ae)]()[a149_0x1ed6cc(0x1a1)](),'id':z[a149_0x1ed6cc(0x1ae)]()[a149_0x1ed6cc(0x1a1)](),'entry_criteria':CriteriaDefSchema[a149_0x1ed6cc(0x1a1)](),'exit_criteria':z[a149_0x1ed6cc(0x196)](CriteriaDefSchema)[a149_0x1ed6cc(0x1a1)](),'milestone':CriteriaDefSchema[a149_0x1ed6cc(0x1a1)](),'root_step':z['string']()[a149_0x1ed6cc(0x1a1)](),'steps':z[a149_0x1ed6cc(0x196)](StepDefSchema)[a149_0x1ed6cc(0x1a1)]()});export const JourneyEntryDefSchema=z[a149_0x1ed6cc(0x1aa)]({'name':z[a149_0x1ed6cc(0x1ae)]()['optional'](),'version':z['string']()[a149_0x1ed6cc(0x1a1)](),'state':JourneyStateTypeSchema[a149_0x1ed6cc(0x1a1)](),'latest':z['boolean']()[a149_0x1ed6cc(0x1a1)](),'stages':z['array'](StageDefSchema),'id':z[a149_0x1ed6cc(0x1ae)]()[a149_0x1ed6cc(0x1a1)](),'version_number':z[a149_0x1ed6cc(0x1ab)]()[a149_0x1ed6cc(0x1a1)](),'goal':CriteriaDefSchema[a149_0x1ed6cc(0x1a1)](),'reentry':ReentryModeTypeSchema[a149_0x1ed6cc(0x1a1)]()});export const JourneyDefSchema=z[a149_0x1ed6cc(0x18b)](()=>z[a149_0x1ed6cc(0x1aa)]({'type':z['literal'](a149_0x1ed6cc(0x198)),'name':z[a149_0x1ed6cc(0x1ae)]()[a149_0x1ed6cc(0x1b1)](0x1,a149_0x1ed6cc(0x18a)),'description':z[a149_0x1ed6cc(0x1ae)]()[a149_0x1ed6cc(0x1a1)](),'bundle_id':z[a149_0x1ed6cc(0x1ae)]()['optional'](),'bundle_name':z[a149_0x1ed6cc(0x1ae)]()[a149_0x1ed6cc(0x1a1)](),'folder_id':z[a149_0x1ed6cc(0x1ae)]()[a149_0x1ed6cc(0x1a1)](),'reentry':ReentryModeTypeSchema[a149_0x1ed6cc(0x1a1)](),'allow_reentry':z[a149_0x1ed6cc(0x18d)]()['optional'](),'goal':CriteriaDefSchema['optional'](),'id':z[a149_0x1ed6cc(0x1ae)]()[a149_0x1ed6cc(0x1a1)](),'version':z[a149_0x1ed6cc(0x1ae)]()[a149_0x1ed6cc(0x1a1)](),'version_number':z[a149_0x1ed6cc(0x1ab)]()[a149_0x1ed6cc(0x1a1)](),'stages':z[a149_0x1ed6cc(0x196)](StageDefSchema)[a149_0x1ed6cc(0x1a1)](),'versions':z[a149_0x1ed6cc(0x196)](JourneyEntryDefSchema)[a149_0x1ed6cc(0x1a1)](),'journeys':z['array'](JourneyEntryDefSchema)['optional'](),'segments':z['record'](z[a149_0x1ed6cc(0x1ae)](),EmbeddedSegmentDefSchema)[a149_0x1ed6cc(0x1a1)](),'activations':z['record'](z['string'](),ActivationDefSchema)['optional']()})[a149_0x1ed6cc(0x190)](_0x6bd93f=>{const _0x19911e=a149_0x1ed6cc,_0x4ab6e7=[_0x6bd93f['journeys'],_0x6bd93f[_0x19911e(0x18e)],_0x6bd93f['versions']][_0x19911e(0x1af)](_0x539e1c=>Array[_0x19911e(0x195)](_0x539e1c)&&_0x539e1c['length']>0x0)[_0x19911e(0x188)];return _0x4ab6e7===0x1;},{'message':a149_0x1ed6cc(0x192)}));const _syncCheck1=!![],_syncCheck2=!![];void _syncCheck1,void _syncCheck2;
1
+ const a149_0x96e593=a149_0xbff7;(function(_0x155362,_0x3ec149){const _0x27ab90=a149_0xbff7,_0x457538=_0x155362();while(!![]){try{const _0x1abcca=parseInt(_0x27ab90(0x11e))/0x1*(parseInt(_0x27ab90(0x110))/0x2)+parseInt(_0x27ab90(0xf6))/0x3*(parseInt(_0x27ab90(0x11b))/0x4)+parseInt(_0x27ab90(0xf7))/0x5+parseInt(_0x27ab90(0x109))/0x6+parseInt(_0x27ab90(0x106))/0x7+-parseInt(_0x27ab90(0x10c))/0x8*(-parseInt(_0x27ab90(0x105))/0x9)+-parseInt(_0x27ab90(0x10e))/0xa;if(_0x1abcca===_0x3ec149)break;else _0x457538['push'](_0x457538['shift']());}catch(_0xc8b992){_0x457538['push'](_0x457538['shift']());}}}(a149_0x4311,0x43063));import{z}from'zod';import{RuleDefSchema}from'./segment-schema.js';import{ActivationDefSchema}from'./activation-schema.js';export const JourneyStateTypeSchema=z[a149_0x96e593(0x100)]([a149_0x96e593(0x115),a149_0x96e593(0x104),a149_0x96e593(0xf8)]);export const ReentryModeTypeSchema=z[a149_0x96e593(0x100)](['no_reentry',a149_0x96e593(0x101),a149_0x96e593(0x11a)]);export const WaitUnitTypeSchema=z[a149_0x96e593(0x100)]([a149_0x96e593(0xfb),a149_0x96e593(0x102)]);export const StepTypeValueSchema=z['enum']([a149_0x96e593(0x108),'activation','decision_point',a149_0x96e593(0xfd),a149_0x96e593(0x111),a149_0x96e593(0x103),a149_0x96e593(0x116)]);export const EmbeddedSegmentDefSchema=z['object']({'description':z[a149_0x96e593(0x117)]()[a149_0x96e593(0xfa)](),'rule':RuleDefSchema});const JumpTargetDefSchema=z[a149_0x96e593(0x10b)]({'journey':z['string'](),'stage':z[a149_0x96e593(0x117)](),'bundle_id':z[a149_0x96e593(0x117)]()['optional']()});export const CriteriaDefSchema=z[a149_0x96e593(0x10b)]({'name':z[a149_0x96e593(0x117)](),'description':z[a149_0x96e593(0x117)]()[a149_0x96e593(0xfa)](),'segment':z[a149_0x96e593(0x117)](),'target':JumpTargetDefSchema['optional']()});function a149_0x4311(){const _0x24a11e=['journey','versions','enum','reentry_unless_goal_achieved','week','jump','simulation','608031NLANwq','413189HDCDdf','discriminatedUnion','wait','1279344CvPdiq','type','object','16kMpUIN','stages','6594120kSdFqJ','min','492XWpbgb','merge','lazy','filter','length','draft','end','string','literal','number','reentry_always','4GUOdYC','isArray','activation','278olulDo','passthrough','boolean','journeys','837741HvkfAC','894695GSBXSy','launched','Journey\x20must\x20have\x20exactly\x20one\x20of:\x20journeys,\x20stages,\x20or\x20versions','optional','day','array','ab_test'];a149_0x4311=function(){return _0x24a11e;};return a149_0x4311();}const WaitConditionTimeoutDefSchema=z[a149_0x96e593(0x10b)]({'duration':z[a149_0x96e593(0x119)](),'unit':WaitUnitTypeSchema,'next':z[a149_0x96e593(0x117)]()[a149_0x96e593(0xfa)]()}),WaitConditionDefSchema=z[a149_0x96e593(0x10b)]({'segment':z[a149_0x96e593(0x117)](),'next':z[a149_0x96e593(0x117)]()[a149_0x96e593(0xfa)](),'timeout':WaitConditionTimeoutDefSchema[a149_0x96e593(0xfa)]()}),WaitStepParamsDefSchema=z[a149_0x96e593(0x10b)]({'duration':z[a149_0x96e593(0x119)]()['optional'](),'unit':WaitUnitTypeSchema[a149_0x96e593(0xfa)](),'wait_until':z['string']()[a149_0x96e593(0xfa)](),'condition':WaitConditionDefSchema[a149_0x96e593(0xfa)](),'days_of_week':z[a149_0x96e593(0xfc)](z[a149_0x96e593(0x117)]())[a149_0x96e593(0xfa)]()}),StepBaseFields={'name':z[a149_0x96e593(0x117)](),'uuid':z[a149_0x96e593(0x117)]()['optional'](),'next':z[a149_0x96e593(0x117)]()[a149_0x96e593(0xfa)]()},WaitStepDefSchema=z['object']({...StepBaseFields,'type':z['literal'](a149_0x96e593(0x108)),'with':WaitStepParamsDefSchema}),ActivationStepParamsDefSchema=z[a149_0x96e593(0x10b)]({'activation':z['string']()}),ActivationStepDefSchema=z[a149_0x96e593(0x10b)]({...StepBaseFields,'type':z[a149_0x96e593(0x118)](a149_0x96e593(0x11d)),'with':ActivationStepParamsDefSchema}),DecisionBranchDefSchema=z[a149_0x96e593(0x10b)]({'name':z[a149_0x96e593(0x117)](),'segment':z[a149_0x96e593(0x117)]()[a149_0x96e593(0xfa)](),'segment_id':z[a149_0x96e593(0x117)]()[a149_0x96e593(0xfa)](),'excluded':z['boolean']()[a149_0x96e593(0xfa)](),'next':z[a149_0x96e593(0x117)]()['optional']()}),DecisionPointStepParamsDefSchema=z[a149_0x96e593(0x10b)]({'branches':z['array'](DecisionBranchDefSchema)}),DecisionPointStepDefSchema=z['object']({...StepBaseFields,'type':z[a149_0x96e593(0x118)]('decision_point'),'with':DecisionPointStepParamsDefSchema}),AbTestVariantDefSchema=z[a149_0x96e593(0x10b)]({'id':z['string']()[a149_0x96e593(0xfa)](),'name':z[a149_0x96e593(0x117)](),'percentage':z[a149_0x96e593(0x119)](),'next':z[a149_0x96e593(0x117)]()[a149_0x96e593(0xfa)]()}),AbTestStepParamsDefSchema=z[a149_0x96e593(0x10b)]({'variants':z['array'](AbTestVariantDefSchema),'unique_id':z[a149_0x96e593(0x117)]()['optional'](),'customized_split':z[a149_0x96e593(0x120)]()['optional']()}),AbTestStepDefSchema=z[a149_0x96e593(0x10b)]({...StepBaseFields,'type':z[a149_0x96e593(0x118)](a149_0x96e593(0xfd)),'with':AbTestStepParamsDefSchema}),MergeStepDefSchema=z[a149_0x96e593(0x10b)]({...StepBaseFields,'type':z[a149_0x96e593(0x118)]('merge')}),JumpStepParamsDefSchema=z['object']({'target':JumpTargetDefSchema}),JumpStepDefSchema=z[a149_0x96e593(0x10b)]({...StepBaseFields,'type':z[a149_0x96e593(0x118)](a149_0x96e593(0x103)),'with':JumpStepParamsDefSchema}),EndStepDefSchema=z[a149_0x96e593(0x10b)]({...StepBaseFields,'type':z[a149_0x96e593(0x118)](a149_0x96e593(0x116))})[a149_0x96e593(0x11f)]();export const StepDefSchema=z[a149_0x96e593(0x107)](a149_0x96e593(0x10a),[WaitStepDefSchema,ActivationStepDefSchema,DecisionPointStepDefSchema,AbTestStepDefSchema,MergeStepDefSchema,JumpStepDefSchema,EndStepDefSchema]);export const StageDefSchema=z[a149_0x96e593(0x10b)]({'name':z['string'](),'description':z[a149_0x96e593(0x117)]()[a149_0x96e593(0xfa)](),'id':z[a149_0x96e593(0x117)]()['optional'](),'entry_criteria':CriteriaDefSchema['optional'](),'exit_criteria':z['array'](CriteriaDefSchema)['optional'](),'milestone':CriteriaDefSchema[a149_0x96e593(0xfa)](),'root_step':z[a149_0x96e593(0x117)]()[a149_0x96e593(0xfa)](),'steps':z[a149_0x96e593(0xfc)](StepDefSchema)[a149_0x96e593(0xfa)]()});export const JourneyEntryDefSchema=z[a149_0x96e593(0x10b)]({'name':z[a149_0x96e593(0x117)]()[a149_0x96e593(0xfa)](),'version':z['string']()['optional'](),'state':JourneyStateTypeSchema[a149_0x96e593(0xfa)](),'latest':z[a149_0x96e593(0x120)]()['optional'](),'stages':z[a149_0x96e593(0xfc)](StageDefSchema),'id':z[a149_0x96e593(0x117)]()[a149_0x96e593(0xfa)](),'version_number':z[a149_0x96e593(0x119)]()['optional'](),'goal':CriteriaDefSchema[a149_0x96e593(0xfa)](),'reentry':ReentryModeTypeSchema['optional']()});export const JourneyDefSchema=z[a149_0x96e593(0x112)](()=>z[a149_0x96e593(0x10b)]({'type':z[a149_0x96e593(0x118)](a149_0x96e593(0xfe)),'name':z[a149_0x96e593(0x117)]()[a149_0x96e593(0x10f)](0x1,'Journey\x20name\x20is\x20required'),'description':z[a149_0x96e593(0x117)]()[a149_0x96e593(0xfa)](),'bundle_id':z[a149_0x96e593(0x117)]()[a149_0x96e593(0xfa)](),'bundle_name':z[a149_0x96e593(0x117)]()[a149_0x96e593(0xfa)](),'folder_id':z['string']()[a149_0x96e593(0xfa)](),'reentry':ReentryModeTypeSchema[a149_0x96e593(0xfa)](),'allow_reentry':z['boolean']()[a149_0x96e593(0xfa)](),'goal':CriteriaDefSchema[a149_0x96e593(0xfa)](),'id':z[a149_0x96e593(0x117)]()[a149_0x96e593(0xfa)](),'version':z[a149_0x96e593(0x117)]()[a149_0x96e593(0xfa)](),'version_number':z['number']()['optional'](),'stages':z[a149_0x96e593(0xfc)](StageDefSchema)[a149_0x96e593(0xfa)](),'versions':z['array'](JourneyEntryDefSchema)['optional'](),'journeys':z[a149_0x96e593(0xfc)](JourneyEntryDefSchema)['optional'](),'segments':z['record'](z[a149_0x96e593(0x117)](),EmbeddedSegmentDefSchema)[a149_0x96e593(0xfa)](),'activations':z['record'](z[a149_0x96e593(0x117)](),ActivationDefSchema)[a149_0x96e593(0xfa)]()})['refine'](_0x14755e=>{const _0x1f2c89=a149_0x96e593,_0x2005ab=[_0x14755e[_0x1f2c89(0x121)],_0x14755e[_0x1f2c89(0x10d)],_0x14755e[_0x1f2c89(0xff)]][_0x1f2c89(0x113)](_0x44962d=>Array[_0x1f2c89(0x11c)](_0x44962d)&&_0x44962d[_0x1f2c89(0x114)]>0x0)[_0x1f2c89(0x114)];return _0x2005ab===0x1;},{'message':a149_0x96e593(0xf9)}));function a149_0xbff7(_0x5ef772,_0x3b5ceb){_0x5ef772=_0x5ef772-0xf6;const _0x431168=a149_0x4311();let _0xbff7c7=_0x431168[_0x5ef772];return _0xbff7c7;}const _syncCheck1=!![],_syncCheck2=!![];void _syncCheck1,void _syncCheck2;
@@ -1 +1 @@
1
- function a151_0x47e6(){var _0x9970ba=['9Pymnno','147514cYprQH','3714832dSUagQ','1167060aNPVwu','15PCEYkO','7fRYMiJ','36416780WcZMmp','1448190meeCgM','7719032uDDvpf','8075097HvUDzp'];a151_0x47e6=function(){return _0x9970ba;};return a151_0x47e6();}(function(_0xa00984,_0x296950){var _0x2bea5b=a151_0x4caf,_0x56ed68=_0xa00984();while(!![]){try{var _0x127061=-parseInt(_0x2bea5b(0x9e))/0x1*(parseInt(_0x2bea5b(0x95))/0x2)+-parseInt(_0x2bea5b(0x97))/0x3+-parseInt(_0x2bea5b(0x96))/0x4+parseInt(_0x2bea5b(0x98))/0x5*(parseInt(_0x2bea5b(0x9b))/0x6)+parseInt(_0x2bea5b(0x99))/0x7*(-parseInt(_0x2bea5b(0x9c))/0x8)+-parseInt(_0x2bea5b(0x9d))/0x9+parseInt(_0x2bea5b(0x9a))/0xa;if(_0x127061===_0x296950)break;else _0x56ed68['push'](_0x56ed68['shift']());}catch(_0x52141a){_0x56ed68['push'](_0x56ed68['shift']());}}}(a151_0x47e6,0x7f788));function a151_0x4caf(_0x5e386b,_0x518ede){_0x5e386b=_0x5e386b-0x95;var _0x47e6f9=a151_0x47e6();var _0x4caf55=_0x47e6f9[_0x5e386b];return _0x4caf55;}export{OperatorTypeSchema,TimeUnitSchema,AggregationTypeSchema,ArrayMatchingSchema,OperatorDefSchema,AggregationDefSchema,TimeWindowDefSchema,FilterColumnConditionDefSchema,FilterRuleDefSchema,ValueConditionDefSchema,BehaviorConditionDefSchema,ColumnConditionDefSchema,CompositeConditionDefSchema,SegmentRefConditionDefSchema,ConditionDefSchema,RuleDefSchema,SegmentDefSchema}from'./segment-schema.js';export{ScheduleTypeSchema,RepeatUnitSchema,ScheduleDefSchema,NotificationDefSchema,ActivationColumnDefSchema,ActivationBehaviorDefSchema,ActivationDefSchema}from'./activation-schema.js';
1
+ function a151_0x48b4(_0x96ee60,_0x5a7da9){_0x96ee60=_0x96ee60-0x16d;var _0x4edbea=a151_0x4edb();var _0x48b41a=_0x4edbea[_0x96ee60];return _0x48b41a;}(function(_0x48569a,_0x6f8971){var _0x4de74e=a151_0x48b4,_0x41ff3d=_0x48569a();while(!![]){try{var _0x4170d2=-parseInt(_0x4de74e(0x172))/0x1*(parseInt(_0x4de74e(0x16e))/0x2)+parseInt(_0x4de74e(0x177))/0x3*(-parseInt(_0x4de74e(0x173))/0x4)+-parseInt(_0x4de74e(0x174))/0x5+parseInt(_0x4de74e(0x16d))/0x6*(-parseInt(_0x4de74e(0x176))/0x7)+-parseInt(_0x4de74e(0x178))/0x8+-parseInt(_0x4de74e(0x16f))/0x9*(parseInt(_0x4de74e(0x171))/0xa)+-parseInt(_0x4de74e(0x170))/0xb*(-parseInt(_0x4de74e(0x175))/0xc);if(_0x4170d2===_0x6f8971)break;else _0x41ff3d['push'](_0x41ff3d['shift']());}catch(_0x35cc0a){_0x41ff3d['push'](_0x41ff3d['shift']());}}}(a151_0x4edb,0x257a8));export{OperatorTypeSchema,TimeUnitSchema,AggregationTypeSchema,ArrayMatchingSchema,OperatorDefSchema,AggregationDefSchema,TimeWindowDefSchema,FilterColumnConditionDefSchema,FilterRuleDefSchema,ValueConditionDefSchema,BehaviorConditionDefSchema,ColumnConditionDefSchema,CompositeConditionDefSchema,SegmentRefConditionDefSchema,ConditionDefSchema,RuleDefSchema,SegmentDefSchema}from'./segment-schema.js';export{ScheduleTypeSchema,RepeatUnitSchema,ScheduleDefSchema,NotificationDefSchema,ActivationColumnDefSchema,ActivationBehaviorDefSchema,ActivationDefSchema}from'./activation-schema.js';function a151_0x4edb(){var _0x21f826=['1014870hlhYnD','37918qiRUBv','10575GHtqUU','213158PAQPUg','830UfsyRz','2JJsJvM','2260WkxBWT','597615dgpdhd','420tIwaDb','7xBOCVS','243VNnuGF','438736GCgYyG'];a151_0x4edb=function(){return _0x21f826;};return a151_0x4edb();}
@@ -1 +1 @@
1
- const a152_0x260472=a152_0x22b8;(function(_0x262363,_0x342a62){const _0x30ccf0=a152_0x22b8,_0x172c71=_0x262363();while(!![]){try{const _0x248ee7=-parseInt(_0x30ccf0(0xf2))/0x1+parseInt(_0x30ccf0(0xe5))/0x2+-parseInt(_0x30ccf0(0xc8))/0x3*(parseInt(_0x30ccf0(0xc7))/0x4)+parseInt(_0x30ccf0(0xd0))/0x5+parseInt(_0x30ccf0(0xe4))/0x6*(-parseInt(_0x30ccf0(0xdf))/0x7)+parseInt(_0x30ccf0(0xef))/0x8+-parseInt(_0x30ccf0(0xba))/0x9*(parseInt(_0x30ccf0(0xda))/0xa);if(_0x248ee7===_0x342a62)break;else _0x172c71['push'](_0x172c71['shift']());}catch(_0x43c461){_0x172c71['push'](_0x172c71['shift']());}}}(a152_0x3548,0x67506));import{z}from'zod';export const OperatorTypeSchema=z[a152_0x260472(0xe1)]([a152_0x260472(0xe7),a152_0x260472(0xb9),a152_0x260472(0xc1),'GreaterEqual','LessEqual','In',a152_0x260472(0xcc),a152_0x260472(0xb7),a152_0x260472(0xa8),a152_0x260472(0xbc),'TimeWithinNext',a152_0x260472(0xab),a152_0x260472(0xe0),a152_0x260472(0xc9),a152_0x260472(0xd2)]);export const TimeUnitSchema=z[a152_0x260472(0xe1)](['second',a152_0x260472(0xc0),a152_0x260472(0xde),a152_0x260472(0xe8),a152_0x260472(0xf4),a152_0x260472(0xac),a152_0x260472(0xb5)]);export const AggregationTypeSchema=z['enum'](['Count',a152_0x260472(0xc5),'Average',a152_0x260472(0xe2),a152_0x260472(0xf3),a152_0x260472(0xed),a152_0x260472(0xb8),'Last']);const TemporalValueSchema=z['union']([z['object']({'timestamp':z[a152_0x260472(0xe9)]()}),z[a152_0x260472(0xd9)]({'last':z[a152_0x260472(0xf6)]([z[a152_0x260472(0xd4)](),z['record'](z['string'](),z[a152_0x260472(0xd4)]())]),'unit':z['string']()})]),OperatorValueSchema=z[a152_0x260472(0xf6)]([z['string'](),z['number'](),z[a152_0x260472(0xc4)](),TemporalValueSchema,z[a152_0x260472(0xf8)](z[a152_0x260472(0xf6)]([z['string'](),z[a152_0x260472(0xd4)](),z['boolean']()]))]),OPERATORS_REQUIRING_VALUE=new Set([a152_0x260472(0xe7),'Greater',a152_0x260472(0xf7),a152_0x260472(0xc1),a152_0x260472(0xc6),'In',a152_0x260472(0xab),a152_0x260472(0xe0),a152_0x260472(0xc9),'Regexp',a152_0x260472(0xbc),a152_0x260472(0xb1)]),OPERATORS_REQUIRING_UNIT=new Set([a152_0x260472(0xbc),a152_0x260472(0xb1)]);export const OperatorDefSchema=z[a152_0x260472(0xd9)]({'type':OperatorTypeSchema,'not':z['boolean']()[a152_0x260472(0xdc)](),'value':OperatorValueSchema[a152_0x260472(0xdc)](),'min':z[a152_0x260472(0xf6)]([z[a152_0x260472(0xd4)](),z['string'](),TemporalValueSchema])['optional'](),'max':z['union']([z['number'](),z[a152_0x260472(0xe9)](),TemporalValueSchema])[a152_0x260472(0xdc)](),'unit':TimeUnitSchema[a152_0x260472(0xdc)](),'duration':z[a152_0x260472(0xd9)]({'day':z[a152_0x260472(0xd4)]()[a152_0x260472(0xdc)](),'week':z['number']()[a152_0x260472(0xdc)](),'month':z['number']()[a152_0x260472(0xdc)](),'year':z[a152_0x260472(0xd4)]()['optional'](),'hour':z[a152_0x260472(0xd4)]()[a152_0x260472(0xdc)](),'minute':z[a152_0x260472(0xd4)]()[a152_0x260472(0xdc)](),'second':z['number']()[a152_0x260472(0xdc)]()})[a152_0x260472(0xdc)](),'from':z[a152_0x260472(0xd9)]({'last':z['union']([z[a152_0x260472(0xd4)](),z[a152_0x260472(0xe9)]()]),'unit':TimeUnitSchema})[a152_0x260472(0xdc)](),'reverse':z[a152_0x260472(0xc4)]()[a152_0x260472(0xdc)]()})[a152_0x260472(0xd7)]((_0x979642,_0x37dadf)=>{const _0x4407c0=a152_0x260472;OPERATORS_REQUIRING_VALUE['has'](_0x979642[_0x4407c0(0xb6)])&&(_0x979642['value']===undefined||_0x979642['value']===null)&&_0x37dadf[_0x4407c0(0xd3)]({'code':_0x4407c0(0xf9),'message':'Operator\x20\x27'+_0x979642[_0x4407c0(0xb6)]+_0x4407c0(0xcf),'path':['value']}),_0x979642[_0x4407c0(0xb6)]==='Between'&&_0x979642[_0x4407c0(0xe3)]===undefined&&_0x979642[_0x4407c0(0xf5)]===undefined&&_0x37dadf['addIssue']({'code':'custom','message':_0x4407c0(0xcd),'params':{'validationCode':_0x4407c0(0xb2)}}),OPERATORS_REQUIRING_UNIT[_0x4407c0(0xb3)](_0x979642[_0x4407c0(0xb6)])&&_0x979642['value']!==undefined&&!_0x979642[_0x4407c0(0xc2)]&&_0x37dadf['addIssue']({'code':'custom','message':_0x4407c0(0xd6)+_0x979642['type']+_0x4407c0(0xce),'path':['unit'],'params':{'validationCode':_0x4407c0(0xeb)}}),_0x979642[_0x4407c0(0xb6)]===_0x4407c0(0xd2)&&(!_0x979642[_0x4407c0(0xbe)]&&_0x37dadf[_0x4407c0(0xd3)]({'code':_0x4407c0(0xf9),'message':_0x4407c0(0xbf),'path':['duration']}),!_0x979642['from']&&_0x37dadf['addIssue']({'code':'custom','message':_0x4407c0(0xee),'path':[_0x4407c0(0xe6)]}));});export const ArrayMatchingSchema=z[a152_0x260472(0xf6)]([z['literal'](a152_0x260472(0xea)),z[a152_0x260472(0xca)]('all'),z[a152_0x260472(0xd9)]({'atLeast':z[a152_0x260472(0xd4)]()}),z['object']({'atMost':z['number']()}),z[a152_0x260472(0xd9)]({'exactly':z[a152_0x260472(0xd4)]()})]);export const AggregationDefSchema=z[a152_0x260472(0xec)](a152_0x260472(0xb6),[z['object']({'type':z[a152_0x260472(0xe1)](['Sum','Min','Max',a152_0x260472(0xbd)]),'column':z['string'](),'groupingColumns':z[a152_0x260472(0xf8)](z[a152_0x260472(0xe9)]())['optional']()}),z[a152_0x260472(0xd9)]({'type':z[a152_0x260472(0xca)](a152_0x260472(0xd8)),'groupingColumns':z[a152_0x260472(0xf8)](z[a152_0x260472(0xe9)]())[a152_0x260472(0xdc)]()}),z[a152_0x260472(0xd9)]({'type':z[a152_0x260472(0xca)](a152_0x260472(0xed)),'columns':z['array'](z[a152_0x260472(0xe9)]())}),z[a152_0x260472(0xd9)]({'type':z['enum'](['First',a152_0x260472(0xf0)]),'column':z[a152_0x260472(0xe9)](),'orderColumn':z[a152_0x260472(0xe9)](),'groupingColumns':z['array'](z['string']())[a152_0x260472(0xdc)]()})]);function a152_0x22b8(_0x1496e8,_0x3510a2){_0x1496e8=_0x1496e8-0xa8;const _0x3548fb=a152_0x3548();let _0x22b8a0=_0x3548fb[_0x1496e8];return _0x22b8a0;}export const TimeWindowDefSchema=z[a152_0x260472(0xd9)]({'duration':z[a152_0x260472(0xd4)](),'unit':TimeUnitSchema});const TIMESTAMP_OPERATORS=new Set(['TimeWithinPast',a152_0x260472(0xb1),'TimeRange']);export const FilterColumnConditionDefSchema=z[a152_0x260472(0xd9)]({'type':z['literal'](a152_0x260472(0xaa)),'column':z[a152_0x260472(0xe9)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema[a152_0x260472(0xdc)]()})[a152_0x260472(0xd7)]((_0xa2a80d,_0x46519f)=>{const _0x4fea63=a152_0x260472,_0x81e7d5=_0xa2a80d[_0x4fea63(0xbb)][_0x4fea63(0xb6)];_0xa2a80d[_0x4fea63(0xf1)]===_0x4fea63(0xdb)?!TIMESTAMP_OPERATORS[_0x4fea63(0xb3)](_0x81e7d5)&&_0x46519f['addIssue']({'code':_0x4fea63(0xf9),'message':_0x4fea63(0xaf)+_0x81e7d5+'\x27)','path':[_0x4fea63(0xbb),_0x4fea63(0xb6)]}):TIMESTAMP_OPERATORS[_0x4fea63(0xb3)](_0x81e7d5)&&_0x46519f['addIssue']({'code':'custom','message':_0x4fea63(0xd6)+_0x81e7d5+_0x4fea63(0xa9),'path':['operator','type']});});export const FilterRuleDefSchema=z['object']({'type':z[a152_0x260472(0xca)](a152_0x260472(0xae)),'conditions':z[a152_0x260472(0xf8)](FilterColumnConditionDefSchema)});export const ValueConditionDefSchema=z['lazy'](()=>z[a152_0x260472(0xd9)]({'type':z[a152_0x260472(0xca)]('Value'),'attribute':z[a152_0x260472(0xe9)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema[a152_0x260472(0xdc)](),'exclude':z[a152_0x260472(0xc4)]()[a152_0x260472(0xdc)](),'aggregation':AggregationDefSchema['optional'](),'source':z[a152_0x260472(0xe9)]()[a152_0x260472(0xdc)](),'filter':FilterRuleDefSchema[a152_0x260472(0xdc)](),'limit':z[a152_0x260472(0xd4)]()['optional']()}));export const BehaviorConditionDefSchema=z[a152_0x260472(0xb0)](()=>z[a152_0x260472(0xd9)]({'type':z[a152_0x260472(0xca)](a152_0x260472(0xd5)),'attribute':z[a152_0x260472(0xe9)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema[a152_0x260472(0xdc)](),'exclude':z[a152_0x260472(0xc4)]()['optional'](),'aggregation':AggregationDefSchema[a152_0x260472(0xdc)](),'source':z['string']()[a152_0x260472(0xdc)](),'filter':FilterRuleDefSchema['optional'](),'timeWindow':TimeWindowDefSchema[a152_0x260472(0xdc)](),'limit':z[a152_0x260472(0xd4)]()[a152_0x260472(0xdc)]()}));export const ColumnConditionDefSchema=z[a152_0x260472(0xd9)]({'type':z[a152_0x260472(0xca)](a152_0x260472(0xaa)),'column':z['string'](),'operator':OperatorDefSchema});export const CompositeConditionDefSchema=z[a152_0x260472(0xb0)](()=>z[a152_0x260472(0xd9)]({'type':z[a152_0x260472(0xe1)]([a152_0x260472(0xae),'Or']),'conditions':z[a152_0x260472(0xf8)](ConditionDefSchema),'description':z[a152_0x260472(0xe9)]()[a152_0x260472(0xdc)]()}));export const SegmentRefConditionDefSchema=z[a152_0x260472(0xd9)]({'type':z['enum']([a152_0x260472(0xc3),a152_0x260472(0xd1)]),'segment':z[a152_0x260472(0xe9)]()[a152_0x260472(0xe3)](0x1,'Segment\x20reference\x20must\x20not\x20be\x20empty')});export const ConditionDefSchema=z['lazy'](()=>z[a152_0x260472(0xf6)]([ValueConditionDefSchema,BehaviorConditionDefSchema,ColumnConditionDefSchema,CompositeConditionDefSchema,SegmentRefConditionDefSchema]));export const RuleDefSchema=z[a152_0x260472(0xb0)](()=>z[a152_0x260472(0xd9)]({'type':z['enum'](['And','Or']),'conditions':z[a152_0x260472(0xf8)](ConditionDefSchema),'description':z[a152_0x260472(0xe9)]()[a152_0x260472(0xdc)]()}));export const SegmentDefSchema=z[a152_0x260472(0xd9)]({'type':z[a152_0x260472(0xca)]('segment')[a152_0x260472(0xdc)](),'name':z[a152_0x260472(0xe9)]()[a152_0x260472(0xe3)](0x1,a152_0x260472(0xcb)),'description':z['string']()[a152_0x260472(0xdc)](),'folder':z[a152_0x260472(0xe9)]()[a152_0x260472(0xdc)](),'rule':RuleDefSchema['optional'](),'kind':z[a152_0x260472(0xe1)]([a152_0x260472(0xad),a152_0x260472(0xb4),a152_0x260472(0xdd)])['optional'](),'visible':z[a152_0x260472(0xc4)]()[a152_0x260472(0xdc)](),'activations':z['array'](z[a152_0x260472(0xea)]())[a152_0x260472(0xdc)]()});const _syncCheck1=!![],_syncCheck2=!![];function a152_0x3548(){const _0x366cf3=['lazy','TimeWithinNext','MISSING_BETWEEN_BOUNDS','has','realtime','year','type','Regexp','First','Greater','18MWdhFb','operator','TimeWithinPast','Average','duration','TimeRange\x20operator\x20requires\x20\x27duration\x27','minute','Less','unit','include','boolean','Sum','LessEqual','24NzUvMF','163257EkyvyJ','EndWith','literal','Segment\x20name\x20is\x20required','Between','Between\x20operator\x20requires\x20\x27min\x27\x20and/or\x20\x27max\x27\x20values','\x27\x20requires\x20a\x20time\x20unit','\x27\x20requires\x20a\x20value','2900175jKxtLI','exclude','TimeRange','addIssue','number','Behavior','Operator\x20\x27','superRefine','Count','object','1929430noWDFK','timestamp','optional','funnel_stage','hour','296555ahMqsh','StartWith','enum','Min','min','18ImnMNe','339908IKwzho','from','Equal','day','string','any','MISSING_TIME_UNIT','discriminatedUnion','CountDistinct','TimeRange\x20operator\x20requires\x20\x27from\x27','4239416WpqDFN','Last','column','17247FJdHIg','Max','week','max','union','GreaterEqual','array','custom','IsNull','\x27\x20is\x20only\x20valid\x20for\x20the\x20\x27timestamp\x27\x20column','Column','Contain','month','batch','And','Timestamp\x20column\x20only\x20supports\x20TimeWithinPast,\x20TimeWithinNext,\x20or\x20TimeRange\x20operators\x20(got\x20\x27'];a152_0x3548=function(){return _0x366cf3;};return a152_0x3548();}void _syncCheck1,void _syncCheck2;
1
+ const a152_0x17a52c=a152_0x2872;(function(_0x4bf43e,_0x5e2e1b){const _0x5656e7=a152_0x2872,_0x1b79d7=_0x4bf43e();while(!![]){try{const _0x308e1c=parseInt(_0x5656e7(0x157))/0x1*(parseInt(_0x5656e7(0x173))/0x2)+-parseInt(_0x5656e7(0x142))/0x3*(parseInt(_0x5656e7(0x165))/0x4)+parseInt(_0x5656e7(0x158))/0x5*(parseInt(_0x5656e7(0x141))/0x6)+-parseInt(_0x5656e7(0x127))/0x7*(-parseInt(_0x5656e7(0x149))/0x8)+parseInt(_0x5656e7(0x150))/0x9+-parseInt(_0x5656e7(0x134))/0xa+-parseInt(_0x5656e7(0x164))/0xb*(-parseInt(_0x5656e7(0x15b))/0xc);if(_0x308e1c===_0x5e2e1b)break;else _0x1b79d7['push'](_0x1b79d7['shift']());}catch(_0x1bb273){_0x1b79d7['push'](_0x1b79d7['shift']());}}}(a152_0x4de3,0xbc90c));import{z}from'zod';export const OperatorTypeSchema=z[a152_0x17a52c(0x15c)]([a152_0x17a52c(0x139),a152_0x17a52c(0x161),a152_0x17a52c(0x16b),'GreaterEqual',a152_0x17a52c(0x148),'In','Between','Regexp',a152_0x17a52c(0x170),'TimeWithinPast',a152_0x17a52c(0x168),'Contain',a152_0x17a52c(0x12d),'EndWith',a152_0x17a52c(0x12c)]);export const TimeUnitSchema=z[a152_0x17a52c(0x15c)]([a152_0x17a52c(0x15a),a152_0x17a52c(0x12a),'hour','day','week',a152_0x17a52c(0x128),a152_0x17a52c(0x156)]);export const AggregationTypeSchema=z[a152_0x17a52c(0x15c)]([a152_0x17a52c(0x138),a152_0x17a52c(0x144),a152_0x17a52c(0x151),a152_0x17a52c(0x12f),a152_0x17a52c(0x14a),'CountDistinct',a152_0x17a52c(0x14e),a152_0x17a52c(0x16f)]);const TemporalValueSchema=z['union']([z['object']({'timestamp':z['string']()}),z[a152_0x17a52c(0x140)]({'last':z[a152_0x17a52c(0x12e)]([z[a152_0x17a52c(0x12b)](),z['record'](z[a152_0x17a52c(0x159)](),z['number']())]),'unit':z[a152_0x17a52c(0x159)]()})]),OperatorValueSchema=z[a152_0x17a52c(0x12e)]([z[a152_0x17a52c(0x159)](),z[a152_0x17a52c(0x12b)](),z[a152_0x17a52c(0x14c)](),TemporalValueSchema,z[a152_0x17a52c(0x16c)](z[a152_0x17a52c(0x12e)]([z['string'](),z[a152_0x17a52c(0x12b)](),z['boolean']()]))]),OPERATORS_REQUIRING_VALUE=new Set([a152_0x17a52c(0x139),a152_0x17a52c(0x161),'GreaterEqual',a152_0x17a52c(0x16b),a152_0x17a52c(0x148),'In',a152_0x17a52c(0x133),a152_0x17a52c(0x12d),'EndWith',a152_0x17a52c(0x129),a152_0x17a52c(0x15e),a152_0x17a52c(0x168)]),OPERATORS_REQUIRING_UNIT=new Set([a152_0x17a52c(0x15e),'TimeWithinNext']);export const OperatorDefSchema=z[a152_0x17a52c(0x140)]({'type':OperatorTypeSchema,'not':z[a152_0x17a52c(0x14c)]()['optional'](),'value':OperatorValueSchema['optional'](),'min':z[a152_0x17a52c(0x12e)]([z[a152_0x17a52c(0x12b)](),z[a152_0x17a52c(0x159)](),TemporalValueSchema])['optional'](),'max':z[a152_0x17a52c(0x12e)]([z[a152_0x17a52c(0x12b)](),z[a152_0x17a52c(0x159)](),TemporalValueSchema])[a152_0x17a52c(0x137)](),'unit':TimeUnitSchema[a152_0x17a52c(0x137)](),'duration':z[a152_0x17a52c(0x140)]({'day':z[a152_0x17a52c(0x12b)]()[a152_0x17a52c(0x137)](),'week':z['number']()[a152_0x17a52c(0x137)](),'month':z[a152_0x17a52c(0x12b)]()['optional'](),'year':z['number']()[a152_0x17a52c(0x137)](),'hour':z[a152_0x17a52c(0x12b)]()[a152_0x17a52c(0x137)](),'minute':z[a152_0x17a52c(0x12b)]()[a152_0x17a52c(0x137)](),'second':z[a152_0x17a52c(0x12b)]()[a152_0x17a52c(0x137)]()})[a152_0x17a52c(0x137)](),'from':z[a152_0x17a52c(0x140)]({'last':z['union']([z[a152_0x17a52c(0x12b)](),z[a152_0x17a52c(0x159)]()]),'unit':TimeUnitSchema})['optional'](),'reverse':z[a152_0x17a52c(0x14c)]()['optional']()})[a152_0x17a52c(0x130)]((_0x2c09e9,_0xe6b74d)=>{const _0x52352a=a152_0x17a52c;OPERATORS_REQUIRING_VALUE[_0x52352a(0x166)](_0x2c09e9[_0x52352a(0x155)])&&(_0x2c09e9[_0x52352a(0x14f)]===undefined||_0x2c09e9[_0x52352a(0x14f)]===null)&&_0xe6b74d['addIssue']({'code':_0x52352a(0x136),'message':_0x52352a(0x14d)+_0x2c09e9[_0x52352a(0x155)]+'\x27\x20requires\x20a\x20value','path':[_0x52352a(0x14f)]}),_0x2c09e9[_0x52352a(0x155)]==='Between'&&_0x2c09e9[_0x52352a(0x13f)]===undefined&&_0x2c09e9[_0x52352a(0x14b)]===undefined&&_0xe6b74d[_0x52352a(0x152)]({'code':_0x52352a(0x136),'message':'Between\x20operator\x20requires\x20\x27min\x27\x20and/or\x20\x27max\x27\x20values','params':{'validationCode':'MISSING_BETWEEN_BOUNDS'}}),OPERATORS_REQUIRING_UNIT[_0x52352a(0x166)](_0x2c09e9[_0x52352a(0x155)])&&_0x2c09e9['value']!==undefined&&!_0x2c09e9[_0x52352a(0x131)]&&_0xe6b74d['addIssue']({'code':_0x52352a(0x136),'message':'Operator\x20\x27'+_0x2c09e9[_0x52352a(0x155)]+_0x52352a(0x132),'path':[_0x52352a(0x131)],'params':{'validationCode':_0x52352a(0x172)}}),_0x2c09e9['type']===_0x52352a(0x12c)&&(!_0x2c09e9[_0x52352a(0x13c)]&&_0xe6b74d[_0x52352a(0x152)]({'code':_0x52352a(0x136),'message':_0x52352a(0x13d),'path':[_0x52352a(0x13c)]}),!_0x2c09e9['from']&&_0xe6b74d[_0x52352a(0x152)]({'code':_0x52352a(0x136),'message':'TimeRange\x20operator\x20requires\x20\x27from\x27','path':['from']}));});export const ArrayMatchingSchema=z['union']([z[a152_0x17a52c(0x171)](a152_0x17a52c(0x145)),z[a152_0x17a52c(0x171)](a152_0x17a52c(0x13e)),z[a152_0x17a52c(0x140)]({'atLeast':z[a152_0x17a52c(0x12b)]()}),z[a152_0x17a52c(0x140)]({'atMost':z[a152_0x17a52c(0x12b)]()}),z[a152_0x17a52c(0x140)]({'exactly':z[a152_0x17a52c(0x12b)]()})]);function a152_0x2872(_0x3b83c4,_0x4b8cc3){_0x3b83c4=_0x3b83c4-0x127;const _0x4de32d=a152_0x4de3();let _0x2872f0=_0x4de32d[_0x3b83c4];return _0x2872f0;}export const AggregationDefSchema=z[a152_0x17a52c(0x153)](a152_0x17a52c(0x155),[z['object']({'type':z['enum']([a152_0x17a52c(0x144),a152_0x17a52c(0x12f),'Max',a152_0x17a52c(0x151)]),'column':z[a152_0x17a52c(0x159)](),'groupingColumns':z[a152_0x17a52c(0x16c)](z[a152_0x17a52c(0x159)]())[a152_0x17a52c(0x137)]()}),z['object']({'type':z[a152_0x17a52c(0x171)](a152_0x17a52c(0x138)),'groupingColumns':z['array'](z[a152_0x17a52c(0x159)]())[a152_0x17a52c(0x137)]()}),z[a152_0x17a52c(0x140)]({'type':z['literal']('CountDistinct'),'columns':z[a152_0x17a52c(0x16c)](z[a152_0x17a52c(0x159)]())}),z[a152_0x17a52c(0x140)]({'type':z[a152_0x17a52c(0x15c)]([a152_0x17a52c(0x14e),a152_0x17a52c(0x16f)]),'column':z[a152_0x17a52c(0x159)](),'orderColumn':z['string'](),'groupingColumns':z[a152_0x17a52c(0x16c)](z[a152_0x17a52c(0x159)]())[a152_0x17a52c(0x137)]()})]);export const TimeWindowDefSchema=z['object']({'duration':z[a152_0x17a52c(0x12b)](),'unit':TimeUnitSchema});const TIMESTAMP_OPERATORS=new Set([a152_0x17a52c(0x15e),'TimeWithinNext',a152_0x17a52c(0x12c)]);export const FilterColumnConditionDefSchema=z[a152_0x17a52c(0x140)]({'type':z['literal'](a152_0x17a52c(0x16e)),'column':z[a152_0x17a52c(0x159)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema['optional']()})['superRefine']((_0x168f95,_0x449740)=>{const _0x3dd619=a152_0x17a52c,_0x81b018=_0x168f95[_0x3dd619(0x16a)][_0x3dd619(0x155)];_0x168f95[_0x3dd619(0x15f)]===_0x3dd619(0x143)?!TIMESTAMP_OPERATORS[_0x3dd619(0x166)](_0x81b018)&&_0x449740[_0x3dd619(0x152)]({'code':'custom','message':_0x3dd619(0x16d)+_0x81b018+'\x27)','path':[_0x3dd619(0x16a),_0x3dd619(0x155)]}):TIMESTAMP_OPERATORS[_0x3dd619(0x166)](_0x81b018)&&_0x449740['addIssue']({'code':'custom','message':_0x3dd619(0x14d)+_0x81b018+'\x27\x20is\x20only\x20valid\x20for\x20the\x20\x27timestamp\x27\x20column','path':[_0x3dd619(0x16a),'type']});});export const FilterRuleDefSchema=z[a152_0x17a52c(0x140)]({'type':z[a152_0x17a52c(0x171)](a152_0x17a52c(0x160)),'conditions':z[a152_0x17a52c(0x16c)](FilterColumnConditionDefSchema)});export const ValueConditionDefSchema=z[a152_0x17a52c(0x154)](()=>z[a152_0x17a52c(0x140)]({'type':z['literal'](a152_0x17a52c(0x146)),'attribute':z[a152_0x17a52c(0x159)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema[a152_0x17a52c(0x137)](),'exclude':z['boolean']()[a152_0x17a52c(0x137)](),'aggregation':AggregationDefSchema['optional'](),'source':z['string']()[a152_0x17a52c(0x137)](),'filter':FilterRuleDefSchema[a152_0x17a52c(0x137)](),'limit':z[a152_0x17a52c(0x12b)]()[a152_0x17a52c(0x137)]()}));export const BehaviorConditionDefSchema=z['lazy'](()=>z['object']({'type':z['literal'](a152_0x17a52c(0x147)),'attribute':z[a152_0x17a52c(0x159)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema['optional'](),'exclude':z[a152_0x17a52c(0x14c)]()['optional'](),'aggregation':AggregationDefSchema[a152_0x17a52c(0x137)](),'source':z[a152_0x17a52c(0x159)]()[a152_0x17a52c(0x137)](),'filter':FilterRuleDefSchema[a152_0x17a52c(0x137)](),'timeWindow':TimeWindowDefSchema['optional'](),'limit':z[a152_0x17a52c(0x12b)]()['optional']()}));export const ColumnConditionDefSchema=z['object']({'type':z[a152_0x17a52c(0x171)]('Column'),'column':z[a152_0x17a52c(0x159)](),'operator':OperatorDefSchema});export const CompositeConditionDefSchema=z['lazy'](()=>z[a152_0x17a52c(0x140)]({'type':z[a152_0x17a52c(0x15c)]([a152_0x17a52c(0x160),'Or']),'conditions':z[a152_0x17a52c(0x16c)](ConditionDefSchema),'description':z['string']()[a152_0x17a52c(0x137)]()}));function a152_0x4de3(){const _0x537f69=['column','And','Greater','Segment\x20reference\x20must\x20not\x20be\x20empty','realtime','1020063zRKXTs','65812pMsUgA','has','include','TimeWithinNext','Segment\x20name\x20is\x20required','operator','Less','array','Timestamp\x20column\x20only\x20supports\x20TimeWithinPast,\x20TimeWithinNext,\x20or\x20TimeRange\x20operators\x20(got\x20\x27','Column','Last','IsNull','literal','MISSING_TIME_UNIT','4002ErQsgs','56Fqohnc','month','Regexp','minute','number','TimeRange','StartWith','union','Min','superRefine','unit','\x27\x20requires\x20a\x20time\x20unit','Contain','13376170yajvGb','segment','custom','optional','Count','Equal','batch','funnel_stage','duration','TimeRange\x20operator\x20requires\x20\x27duration\x27','all','min','object','66pSjiOF','141zjQANg','timestamp','Sum','any','Value','Behavior','LessEqual','565496CkdrwN','Max','max','boolean','Operator\x20\x27','First','value','9217971xPKowo','Average','addIssue','discriminatedUnion','lazy','type','year','76aFuhRg','55190plxynK','string','second','132JPemNB','enum','exclude','TimeWithinPast'];a152_0x4de3=function(){return _0x537f69;};return a152_0x4de3();}export const SegmentRefConditionDefSchema=z[a152_0x17a52c(0x140)]({'type':z[a152_0x17a52c(0x15c)]([a152_0x17a52c(0x167),a152_0x17a52c(0x15d)]),'segment':z[a152_0x17a52c(0x159)]()['min'](0x1,a152_0x17a52c(0x162))});export const ConditionDefSchema=z['lazy'](()=>z[a152_0x17a52c(0x12e)]([ValueConditionDefSchema,BehaviorConditionDefSchema,ColumnConditionDefSchema,CompositeConditionDefSchema,SegmentRefConditionDefSchema]));export const RuleDefSchema=z[a152_0x17a52c(0x154)](()=>z[a152_0x17a52c(0x140)]({'type':z[a152_0x17a52c(0x15c)]([a152_0x17a52c(0x160),'Or']),'conditions':z[a152_0x17a52c(0x16c)](ConditionDefSchema),'description':z['string']()[a152_0x17a52c(0x137)]()}));export const SegmentDefSchema=z[a152_0x17a52c(0x140)]({'type':z[a152_0x17a52c(0x171)](a152_0x17a52c(0x135))[a152_0x17a52c(0x137)](),'name':z[a152_0x17a52c(0x159)]()[a152_0x17a52c(0x13f)](0x1,a152_0x17a52c(0x169)),'description':z[a152_0x17a52c(0x159)]()['optional'](),'folder':z['string']()[a152_0x17a52c(0x137)](),'rule':RuleDefSchema['optional'](),'kind':z[a152_0x17a52c(0x15c)]([a152_0x17a52c(0x13a),a152_0x17a52c(0x163),a152_0x17a52c(0x13b)])[a152_0x17a52c(0x137)](),'visible':z['boolean']()[a152_0x17a52c(0x137)](),'activations':z[a152_0x17a52c(0x16c)](z[a152_0x17a52c(0x145)]())[a152_0x17a52c(0x137)]()});const _syncCheck1=!![],_syncCheck2=!![];void _syncCheck1,void _syncCheck2;
@@ -1 +1 @@
1
- function a153_0x2fcf(_0x43c1b6,_0x4be406){_0x43c1b6=_0x43c1b6-0x1c0;const _0xeba684=a153_0xeba6();let _0x2fcf84=_0xeba684[_0x43c1b6];return _0x2fcf84;}const a153_0xbe3765=a153_0x2fcf;(function(_0x457b00,_0x1801fb){const _0x597b57=a153_0x2fcf,_0x2fe74e=_0x457b00();while(!![]){try{const _0x3a4c96=parseInt(_0x597b57(0x1c8))/0x1+-parseInt(_0x597b57(0x1d7))/0x2*(-parseInt(_0x597b57(0x1ce))/0x3)+parseInt(_0x597b57(0x1c5))/0x4*(-parseInt(_0x597b57(0x1d6))/0x5)+parseInt(_0x597b57(0x1dd))/0x6*(-parseInt(_0x597b57(0x1ca))/0x7)+parseInt(_0x597b57(0x1cb))/0x8*(-parseInt(_0x597b57(0x1cc))/0x9)+parseInt(_0x597b57(0x1c3))/0xa*(-parseInt(_0x597b57(0x1c1))/0xb)+-parseInt(_0x597b57(0x1cf))/0xc*(-parseInt(_0x597b57(0x1db))/0xd);if(_0x3a4c96===_0x1801fb)break;else _0x2fe74e['push'](_0x2fe74e['shift']());}catch(_0x113710){_0x2fe74e['push'](_0x2fe74e['shift']());}}}(a153_0xeba6,0x5e80d));import{readFileSync}from'fs';import*as a153_0x2d0e88 from'path';import*as a153_0x35c92a from'yaml';import{validateSegmentDef}from'./yaml-validator.js';import{validateJourneyDef}from'./journey-validator.js';import{validateCampaignDef}from'../engage/campaign-validator.js';import{validateTemplateDef}from'../engage/template-validator.js';const VALID_CAMPAIGN_TYPES=new Set([a153_0xbe3765(0x1c0),'push']);function a153_0xeba6(){const _0x149457=['utf-8','result','153205bMyDXe','message','1434822levMvC','skipped','campaign','type','YAML_PARSE_ERROR','valid','filterType','email','3838109cGvAQa','toJSON','20hiuNvo','object','28VhDUdY','basename','map','519577ZqruOL','warnings','7IkABNj','1607272UFpBAR','27CjiKel','parseDocument','1332372kyNtvE','1128mCkkky','segment','YAML\x20parse\x20error:\x20','length','journey','template','campaign_type','103360JMPrxL','2WiBMav','relative'];a153_0xeba6=function(){return _0x149457;};return a153_0xeba6();}export function isJourneyDef(_0x53772a){const _0x2ee917=a153_0xbe3765;return typeof _0x53772a===_0x2ee917(0x1c4)&&_0x53772a!==null&&_0x2ee917(0x1e0)in _0x53772a&&_0x53772a[_0x2ee917(0x1e0)]===_0x2ee917(0x1d3);}export function isCampaignDef(_0x2d3884){const _0x4e1e7a=a153_0xbe3765;if(typeof _0x2d3884!==_0x4e1e7a(0x1c4)||_0x2d3884===null)return![];const _0x5ea3a9=_0x2d3884,_0x228231=VALID_CAMPAIGN_TYPES['has'](_0x5ea3a9[_0x4e1e7a(0x1d5)]);if(_0x5ea3a9['type']===_0x4e1e7a(0x1df)&&_0x228231)return!![];if(_0x228231&&!_0x5ea3a9['type'])return!![];return![];}export function isTemplateDef(_0x2956ec){const _0xba7ad3=a153_0xbe3765;return typeof _0x2956ec===_0xba7ad3(0x1c4)&&_0x2956ec!==null&&'type'in _0x2956ec&&_0x2956ec[_0xba7ad3(0x1e0)]==='template';}export function isValidationResult(_0x3d9ed1){const _0x4d515f=a153_0xbe3765;return!(_0x4d515f(0x1de)in _0x3d9ed1);}export function createParseErrorResult(_0x5196c2,_0xe65250,_0x2ec275,_0x3a12ef,_0x55ec2d=a153_0xbe3765(0x1d0)){const _0x501def=a153_0xbe3765;return{'filePath':_0x5196c2,'relativePath':_0xe65250,'source':_0x2ec275,'result':{'valid':![],'errors':[{'level':'error','path':'','code':_0x501def(0x1e1),'message':_0x3a12ef}],'warnings':[]},'fileType':_0x55ec2d};}export function validateYamlFile(_0x121ad0,_0x1634fd,_0x563185={}){const _0x15e06d=a153_0xbe3765,_0x49304c=a153_0x2d0e88[_0x15e06d(0x1d8)](_0x1634fd,_0x121ad0)||a153_0x2d0e88[_0x15e06d(0x1c6)](_0x121ad0);try{const _0x3d1442=readFileSync(_0x121ad0,_0x15e06d(0x1d9)),_0x3359dc=a153_0x35c92a[_0x15e06d(0x1cd)](_0x3d1442),_0x2238c4=_0x3359dc[_0x15e06d(0x1c2)]();if(!_0x2238c4)return createParseErrorResult(_0x121ad0,_0x49304c,_0x3d1442,'Failed\x20to\x20parse\x20YAML\x20file\x20(empty\x20or\x20invalid)');let _0x356369;if(isJourneyDef(_0x2238c4))_0x356369='journey';else{if(isCampaignDef(_0x2238c4))_0x356369=_0x15e06d(0x1df);else isTemplateDef(_0x2238c4)?_0x356369='template':_0x356369=_0x15e06d(0x1d0);}if(_0x563185[_0x15e06d(0x1e3)]&&_0x356369!==_0x563185[_0x15e06d(0x1e3)])return{'filePath':_0x121ad0,'relativePath':_0x49304c,'skipped':!![],'reason':'not\x20a\x20'+_0x563185[_0x15e06d(0x1e3)]};const _0x414c74={'source':_0x3d1442,'document':_0x3359dc};let _0x36b7b0;if(_0x356369===_0x15e06d(0x1d3))_0x36b7b0=validateJourneyDef(_0x2238c4,_0x414c74);else{if(_0x356369===_0x15e06d(0x1df))_0x36b7b0=validateCampaignDef(_0x2238c4,_0x414c74);else _0x356369===_0x15e06d(0x1d4)?_0x36b7b0=validateTemplateDef(_0x2238c4,_0x414c74):_0x36b7b0=validateSegmentDef(_0x2238c4,_0x414c74);}return{'filePath':_0x121ad0,'relativePath':_0x49304c,'source':_0x3d1442,'result':_0x36b7b0,'fileType':_0x356369};}catch(_0x4f1d87){const _0x2038fa=_0x4f1d87 instanceof Error?_0x4f1d87[_0x15e06d(0x1dc)]:String(_0x4f1d87);return createParseErrorResult(_0x121ad0,_0x49304c,'',_0x15e06d(0x1d1)+_0x2038fa);}}export function validateYamlFiles(_0x230ac3,_0x145bc4,_0x50835a={}){const _0x1fe99e=a153_0xbe3765;return _0x230ac3[_0x1fe99e(0x1c7)](_0x47e634=>validateYamlFile(_0x47e634,_0x145bc4,_0x50835a));}export function calculateSummary(_0x23ce9c){const _0x177866=a153_0xbe3765;let _0x534aa5=0x0,_0x23b4f9=0x0,_0x1dbda0=0x0,_0x395e06=0x0;for(const _0x28447c of _0x23ce9c){if(!isValidationResult(_0x28447c)){_0x395e06++;continue;}_0x28447c[_0x177866(0x1da)][_0x177866(0x1e2)]?_0x534aa5++:_0x23b4f9++,_0x1dbda0+=_0x28447c[_0x177866(0x1da)][_0x177866(0x1c9)][_0x177866(0x1d2)];}return{'validCount':_0x534aa5,'invalidCount':_0x23b4f9,'warningCount':_0x1dbda0,'skippedCount':_0x395e06,'hasErrors':_0x23b4f9>0x0};}
1
+ const a153_0x1659dc=a153_0xc12e;function a153_0x51a4(){const _0xc4765e=['map','not\x20a\x20','6602KqhWgS','60516yLOTWU','14561210TcUBQL','length','filterType','type','template','282ASUduS','relative','segment','result','valid','YAML_PARSE_ERROR','1188355TlZTpk','868976EOJDdv','campaign','7033690gVhLdq','campaign_type','journey','error','YAML\x20parse\x20error:\x20','parseDocument','email','27EpPWTA','164MVFmIo','Failed\x20to\x20parse\x20YAML\x20file\x20(empty\x20or\x20invalid)','toJSON','basename','warnings','627378issQLZ','object'];a153_0x51a4=function(){return _0xc4765e;};return a153_0x51a4();}(function(_0xe46be1,_0x86a775){const _0x2fc154=a153_0xc12e,_0x10603b=_0xe46be1();while(!![]){try{const _0x4399ad=parseInt(_0x2fc154(0xf2))/0x1*(-parseInt(_0x2fc154(0x10a))/0x2)+parseInt(_0x2fc154(0xf9))/0x3*(-parseInt(_0x2fc154(0xf3))/0x4)+-parseInt(_0x2fc154(0x102))/0x5+-parseInt(_0x2fc154(0xee))/0x6+-parseInt(_0x2fc154(0xff))/0x7+parseInt(_0x2fc154(0x100))/0x8+-parseInt(_0x2fc154(0x109))/0x9*(-parseInt(_0x2fc154(0xf4))/0xa);if(_0x4399ad===_0x86a775)break;else _0x10603b['push'](_0x10603b['shift']());}catch(_0x163198){_0x10603b['push'](_0x10603b['shift']());}}}(a153_0x51a4,0xcb3ad));import{readFileSync}from'fs';import*as a153_0x5943ad from'path';import*as a153_0x5ea4ff from'yaml';import{validateSegmentDef}from'./yaml-validator.js';import{validateJourneyDef}from'./journey-validator.js';import{validateCampaignDef}from'../engage/campaign-validator.js';import{validateTemplateDef}from'../engage/template-validator.js';const VALID_CAMPAIGN_TYPES=new Set([a153_0x1659dc(0x108),'push']);export function isJourneyDef(_0x34c748){const _0x42ba48=a153_0x1659dc;return typeof _0x34c748===_0x42ba48(0xef)&&_0x34c748!==null&&_0x42ba48(0xf7)in _0x34c748&&_0x34c748[_0x42ba48(0xf7)]===_0x42ba48(0x104);}export function isCampaignDef(_0x14fab1){const _0x36a3a9=a153_0x1659dc;if(typeof _0x14fab1!==_0x36a3a9(0xef)||_0x14fab1===null)return![];const _0x2a853f=_0x14fab1,_0x3d75a7=VALID_CAMPAIGN_TYPES['has'](_0x2a853f[_0x36a3a9(0x103)]);if(_0x2a853f[_0x36a3a9(0xf7)]===_0x36a3a9(0x101)&&_0x3d75a7)return!![];if(_0x3d75a7&&!_0x2a853f[_0x36a3a9(0xf7)])return!![];return![];}function a153_0xc12e(_0x56d008,_0x28b0bf){_0x56d008=_0x56d008-0xed;const _0x51a4a8=a153_0x51a4();let _0xc12e2b=_0x51a4a8[_0x56d008];return _0xc12e2b;}export function isTemplateDef(_0x5417a9){const _0x2352de=a153_0x1659dc;return typeof _0x5417a9==='object'&&_0x5417a9!==null&&'type'in _0x5417a9&&_0x5417a9[_0x2352de(0xf7)]==='template';}export function isValidationResult(_0x599207){return!('skipped'in _0x599207);}export function createParseErrorResult(_0x41c54d,_0x189e7a,_0x482431,_0x1e67da,_0x5f45b8='segment'){const _0x43eb51=a153_0x1659dc;return{'filePath':_0x41c54d,'relativePath':_0x189e7a,'source':_0x482431,'result':{'valid':![],'errors':[{'level':_0x43eb51(0x105),'path':'','code':_0x43eb51(0xfe),'message':_0x1e67da}],'warnings':[]},'fileType':_0x5f45b8};}export function validateYamlFile(_0x41f8f5,_0x5e59e5,_0x5b3939={}){const _0x4d2145=a153_0x1659dc,_0x56c226=a153_0x5943ad[_0x4d2145(0xfa)](_0x5e59e5,_0x41f8f5)||a153_0x5943ad[_0x4d2145(0x10d)](_0x41f8f5);try{const _0x183047=readFileSync(_0x41f8f5,'utf-8'),_0x158dae=a153_0x5ea4ff[_0x4d2145(0x107)](_0x183047),_0xe20ed1=_0x158dae[_0x4d2145(0x10c)]();if(!_0xe20ed1)return createParseErrorResult(_0x41f8f5,_0x56c226,_0x183047,_0x4d2145(0x10b));let _0x1fe9f6;if(isJourneyDef(_0xe20ed1))_0x1fe9f6=_0x4d2145(0x104);else{if(isCampaignDef(_0xe20ed1))_0x1fe9f6=_0x4d2145(0x101);else isTemplateDef(_0xe20ed1)?_0x1fe9f6=_0x4d2145(0xf8):_0x1fe9f6=_0x4d2145(0xfb);}if(_0x5b3939[_0x4d2145(0xf6)]&&_0x1fe9f6!==_0x5b3939[_0x4d2145(0xf6)])return{'filePath':_0x41f8f5,'relativePath':_0x56c226,'skipped':!![],'reason':_0x4d2145(0xf1)+_0x5b3939[_0x4d2145(0xf6)]};const _0x3d3e55={'source':_0x183047,'document':_0x158dae};let _0x87312d;if(_0x1fe9f6===_0x4d2145(0x104))_0x87312d=validateJourneyDef(_0xe20ed1,_0x3d3e55);else{if(_0x1fe9f6===_0x4d2145(0x101))_0x87312d=validateCampaignDef(_0xe20ed1,_0x3d3e55);else _0x1fe9f6===_0x4d2145(0xf8)?_0x87312d=validateTemplateDef(_0xe20ed1,_0x3d3e55):_0x87312d=validateSegmentDef(_0xe20ed1,_0x3d3e55);}return{'filePath':_0x41f8f5,'relativePath':_0x56c226,'source':_0x183047,'result':_0x87312d,'fileType':_0x1fe9f6};}catch(_0x377a97){const _0x363b26=_0x377a97 instanceof Error?_0x377a97['message']:String(_0x377a97);return createParseErrorResult(_0x41f8f5,_0x56c226,'',_0x4d2145(0x106)+_0x363b26);}}export function validateYamlFiles(_0x211df6,_0x4af96b,_0x29f26b={}){const _0xa451f8=a153_0x1659dc;return _0x211df6[_0xa451f8(0xf0)](_0x1db84b=>validateYamlFile(_0x1db84b,_0x4af96b,_0x29f26b));}export function calculateSummary(_0x4896c7){const _0x450ff9=a153_0x1659dc;let _0x231ce5=0x0,_0x2fc9c7=0x0,_0x250b9a=0x0,_0x388477=0x0;for(const _0x4d1430 of _0x4896c7){if(!isValidationResult(_0x4d1430)){_0x388477++;continue;}_0x4d1430[_0x450ff9(0xfc)][_0x450ff9(0xfd)]?_0x231ce5++:_0x2fc9c7++,_0x250b9a+=_0x4d1430[_0x450ff9(0xfc)][_0x450ff9(0xed)][_0x450ff9(0xf5)];}return{'validCount':_0x231ce5,'invalidCount':_0x2fc9c7,'warningCount':_0x250b9a,'skippedCount':_0x388477,'hasErrors':_0x2fc9c7>0x0};}
@@ -1 +1 @@
1
- (function(_0x4f67b7,_0x21268b){const _0x186d4e=a154_0x2631,_0x810331=_0x4f67b7();while(!![]){try{const _0x288991=parseInt(_0x186d4e(0x13f))/0x1*(-parseInt(_0x186d4e(0x135))/0x2)+-parseInt(_0x186d4e(0x132))/0x3*(-parseInt(_0x186d4e(0x128))/0x4)+-parseInt(_0x186d4e(0x12c))/0x5+-parseInt(_0x186d4e(0x142))/0x6*(-parseInt(_0x186d4e(0x121))/0x7)+parseInt(_0x186d4e(0x139))/0x8+-parseInt(_0x186d4e(0x133))/0x9+parseInt(_0x186d4e(0x12d))/0xa*(parseInt(_0x186d4e(0x11f))/0xb);if(_0x288991===_0x21268b)break;else _0x810331['push'](_0x810331['shift']());}catch(_0x747adc){_0x810331['push'](_0x810331['shift']());}}}(a154_0x2a5d,0xba296));import*as a154_0x4ea08e from'yaml';import a154_0x24422e from'chalk';export{validateSegmentDef,validateRuleDef}from'./segment-validator.js';function a154_0x2a5d(){const _0x4565a5=['code','pop','\x27:\x20','red','range','number','level','9702tbGhha','YAML\x20validation\x20error\x20at\x20\x27','1211uhGiGa','invalid_union','join','max','location','getIn','yellow','2077684pULFfI','map','push','column','607965NHluCp','14110RCpVgN','path','padStart','min','errors','3cuXHGb','9432954JMyJTN','cyan','2cYGWJm','data','\x20|\x20','message','52576LLfVzE','length','success','match','split','object','846349qVndDm','safeParse','dim','34962aXQYTw','flatMap','error'];a154_0x2a5d=function(){return _0x4565a5;};return a154_0x2a5d();}export function getLocationFromPath(_0x5e1829,_0x108299,_0x586226){const _0x3143a5=a154_0x2631;if(!_0x5e1829||!_0x108299)return undefined;try{let _0x1f22fc=_0x5e1829[_0x3143a5(0x126)](_0x586226,!![]),_0x502e6c=[..._0x586226];while((!_0x1f22fc||typeof _0x1f22fc!==_0x3143a5(0x13e)||!(_0x3143a5(0x149)in _0x1f22fc)||!_0x1f22fc['range'])&&_0x502e6c[_0x3143a5(0x13a)]>0x0){_0x502e6c[_0x3143a5(0x146)](),_0x1f22fc=_0x502e6c['length']>0x0?_0x5e1829[_0x3143a5(0x126)](_0x502e6c,!![]):_0x5e1829['contents'];}if(!_0x1f22fc||typeof _0x1f22fc!==_0x3143a5(0x13e)||!(_0x3143a5(0x149)in _0x1f22fc)||!_0x1f22fc[_0x3143a5(0x149)])return undefined;const [_0x56f846]=_0x1f22fc[_0x3143a5(0x149)];return offsetToLocation(_0x108299,_0x56f846);}catch{return undefined;}}export function offsetToLocation(_0x3a875d,_0x2142a8){const _0x5d4aa9=a154_0x2631;let _0x3621d7=0x1,_0x236772=0x1;for(let _0x3568ff=0x0;_0x3568ff<_0x2142a8&&_0x3568ff<_0x3a875d[_0x5d4aa9(0x13a)];_0x3568ff++){_0x3a875d[_0x3568ff]==='\x0a'?(_0x3621d7++,_0x236772=0x1):_0x236772++;}return{'line':_0x3621d7,'column':_0x236772,'offset':_0x2142a8};}export function pathToArray(_0x18fd42){const _0x4b4729=a154_0x2631;if(!_0x18fd42)return[];return _0x18fd42['split']('.')[_0x4b4729(0x143)](_0x34156e=>{const _0x1f0dc9=_0x4b4729,_0xc661e5=_0x34156e[_0x1f0dc9(0x13c)](/^(\w+)\[(\d+)\]$/);if(_0xc661e5)return[_0xc661e5[0x1],parseInt(_0xc661e5[0x2],0xa)];return[_0x34156e];});}export function formatZodPath(_0x43a7e8){const _0x26eca5=a154_0x2631;let _0x4831ca='';for(const _0x39df20 of _0x43a7e8){if(typeof _0x39df20===_0x26eca5(0x14a))_0x4831ca+='['+_0x39df20+']';else{const _0x8d3caf=String(_0x39df20);_0x4831ca+=_0x4831ca?'.'+_0x8d3caf:_0x8d3caf;}}return _0x4831ca;}export function flattenZodIssues(_0x6a608f){const _0x2c322c=a154_0x2631,_0xdacc4d=[];for(const _0xdfa706 of _0x6a608f){if(_0xdfa706[_0x2c322c(0x145)]===_0x2c322c(0x122)&&_0x2c322c(0x131)in _0xdfa706){const _0x44b0ae=_0xdfa706[_0x2c322c(0x131)];let _0x1ee6a5=_0x44b0ae[0x0]||[];for(const _0x1230d1 of _0x44b0ae){_0x1230d1[_0x2c322c(0x13a)]<_0x1ee6a5[_0x2c322c(0x13a)]&&(_0x1ee6a5=_0x1230d1);}const _0x38f13c=_0x1ee6a5[_0x2c322c(0x129)](_0x40dd0f=>({..._0x40dd0f,'path':[..._0xdfa706[_0x2c322c(0x12e)],..._0x40dd0f[_0x2c322c(0x12e)]]}));_0xdacc4d[_0x2c322c(0x12a)](...flattenZodIssues(_0x38f13c));}else _0xdacc4d['push'](_0xdfa706);}return _0xdacc4d;}export function safeParseYaml(_0x4f3fc5,_0x30b22f){const _0x413fc8=a154_0x2631,_0xc6ad92=a154_0x4ea08e['parse'](_0x4f3fc5);if(!_0xc6ad92||typeof _0xc6ad92!=='object')throw new Error('Invalid\x20YAML:\x20expected\x20an\x20object');const _0x4cccc4=_0x30b22f[_0x413fc8(0x140)](_0xc6ad92);if(!_0x4cccc4[_0x413fc8(0x13b)]){const _0x3e7eaa=_0x4cccc4[_0x413fc8(0x144)]['issues'][0x0],_0x4d322d=formatZodPath(_0x3e7eaa[_0x413fc8(0x12e)]);throw new Error(_0x4d322d?_0x413fc8(0x120)+_0x4d322d+_0x413fc8(0x147)+_0x3e7eaa['message']:'YAML\x20validation\x20error:\x20'+_0x3e7eaa[_0x413fc8(0x138)]);}return _0x4cccc4[_0x413fc8(0x136)];}function a154_0x2631(_0x5e9812,_0x4a7f8b){_0x5e9812=_0x5e9812-0x11f;const _0x2a5def=a154_0x2a5d();let _0x2631cf=_0x2a5def[_0x5e9812];return _0x2631cf;}export function formatIssueWithContext(_0x255f51,_0x3a3a5d,_0x42f8f5){const _0x1a7508=a154_0x2631,_0x437a63=[],_0x180632=_0x255f51['level']===_0x1a7508(0x144),_0x4d7ff0=_0x180632?a154_0x24422e[_0x1a7508(0x148)]:a154_0x24422e['yellow'],_0x1fd4a7=_0x180632?a154_0x24422e[_0x1a7508(0x148)]:a154_0x24422e[_0x1a7508(0x127)],_0x586490=_0x42f8f5?a154_0x24422e['cyan'](_0x42f8f5+':'):'';if(_0x255f51[_0x1a7508(0x125)]){const _0x26e9be=a154_0x24422e[_0x1a7508(0x134)](_0x255f51[_0x1a7508(0x125)]['line']+':'+_0x255f51[_0x1a7508(0x125)][_0x1a7508(0x12b)]);_0x437a63[_0x1a7508(0x12a)](''+_0x586490+_0x26e9be+':\x20'+_0x4d7ff0(_0x255f51[_0x1a7508(0x14b)])+'\x20'+_0x1fd4a7('['+_0x255f51[_0x1a7508(0x145)]+']'));}else _0x437a63['push'](''+_0x586490+a154_0x24422e[_0x1a7508(0x141)](_0x255f51[_0x1a7508(0x12e)])+':\x20'+_0x4d7ff0(_0x255f51[_0x1a7508(0x14b)])+'\x20'+_0x1fd4a7('['+_0x255f51[_0x1a7508(0x145)]+']'));_0x437a63[_0x1a7508(0x12a)](_0x255f51[_0x1a7508(0x138)]);if(_0x255f51[_0x1a7508(0x125)]&&_0x3a3a5d){const _0x42122a=_0x3a3a5d[_0x1a7508(0x13d)]('\x0a'),{line:_0x532db7,column:_0x5b5217}=_0x255f51['location'],_0x55b0e6=Math[_0x1a7508(0x124)](0x1,_0x532db7-0x1),_0x11556d=Math[_0x1a7508(0x130)](_0x42122a[_0x1a7508(0x13a)],_0x532db7+0x1);_0x437a63[_0x1a7508(0x12a)]('');for(let _0x6feba3=_0x55b0e6;_0x6feba3<=_0x11556d;_0x6feba3++){const _0x302dab=_0x42122a[_0x6feba3-0x1]||'',_0x28de9a=a154_0x24422e[_0x1a7508(0x141)](_0x6feba3['toString']()[_0x1a7508(0x12f)](0x4)),_0x1498f4=a154_0x24422e['dim'](_0x1a7508(0x137));if(_0x6feba3===_0x532db7){_0x437a63[_0x1a7508(0x12a)]('\x20\x20'+_0x28de9a+_0x1498f4+_0x4d7ff0(_0x302dab));const _0x3db4a2='\x20'['repeat'](0x4+0x3+_0x5b5217-0x1);_0x437a63[_0x1a7508(0x12a)]('\x20\x20'+_0x3db4a2+_0x4d7ff0('^'));}else _0x437a63[_0x1a7508(0x12a)]('\x20\x20'+_0x28de9a+_0x1498f4+a154_0x24422e[_0x1a7508(0x141)](_0x302dab));}}return _0x437a63[_0x1a7508(0x123)]('\x0a');}export function formatValidationResult(_0x1e36e9,_0x38d8f8,_0x495b2e){const _0x21aa67=a154_0x2631,_0x19b487=[];for(const _0x3a2226 of _0x1e36e9[_0x21aa67(0x131)]){_0x19b487[_0x21aa67(0x12a)](formatIssueWithContext(_0x3a2226,_0x38d8f8,_0x495b2e)),_0x19b487[_0x21aa67(0x12a)]('');}for(const _0x12c098 of _0x1e36e9['warnings']){_0x19b487['push'](formatIssueWithContext(_0x12c098,_0x38d8f8,_0x495b2e)),_0x19b487['push']('');}return _0x19b487[_0x21aa67(0x123)]('\x0a');}
1
+ (function(_0x4402bf,_0x21cff2){const _0x1e8a3f=a154_0x4316,_0x22ee4a=_0x4402bf();while(!![]){try{const _0x550b9b=parseInt(_0x1e8a3f(0x1ac))/0x1*(-parseInt(_0x1e8a3f(0x1cb))/0x2)+parseInt(_0x1e8a3f(0x1ce))/0x3+-parseInt(_0x1e8a3f(0x1b8))/0x4*(-parseInt(_0x1e8a3f(0x1c7))/0x5)+parseInt(_0x1e8a3f(0x1b1))/0x6+-parseInt(_0x1e8a3f(0x1cd))/0x7*(-parseInt(_0x1e8a3f(0x1d2))/0x8)+-parseInt(_0x1e8a3f(0x1bd))/0x9+-parseInt(_0x1e8a3f(0x1c2))/0xa*(-parseInt(_0x1e8a3f(0x1d0))/0xb);if(_0x550b9b===_0x21cff2)break;else _0x22ee4a['push'](_0x22ee4a['shift']());}catch(_0x11d142){_0x22ee4a['push'](_0x22ee4a['shift']());}}}(a154_0x10bb,0xea81e));import*as a154_0x31a182 from'yaml';import a154_0x92e389 from'chalk';function a154_0x4316(_0x28d148,_0x47903e){_0x28d148=_0x28d148-0x1aa;const _0x10bbd8=a154_0x10bb();let _0x4316ad=_0x10bbd8[_0x28d148];return _0x4316ad;}export{validateSegmentDef,validateRuleDef}from'./segment-validator.js';export function getLocationFromPath(_0x298c9f,_0x2b34d6,_0x4fbc99){const _0x9be3c0=a154_0x4316;if(!_0x298c9f||!_0x2b34d6)return undefined;try{let _0x438b20=_0x298c9f[_0x9be3c0(0x1d3)](_0x4fbc99,!![]),_0x12d293=[..._0x4fbc99];while((!_0x438b20||typeof _0x438b20!==_0x9be3c0(0x1ab)||!(_0x9be3c0(0x1ae)in _0x438b20)||!_0x438b20[_0x9be3c0(0x1ae)])&&_0x12d293[_0x9be3c0(0x1d7)]>0x0){_0x12d293['pop'](),_0x438b20=_0x12d293[_0x9be3c0(0x1d7)]>0x0?_0x298c9f[_0x9be3c0(0x1d3)](_0x12d293,!![]):_0x298c9f[_0x9be3c0(0x1b0)];}if(!_0x438b20||typeof _0x438b20!==_0x9be3c0(0x1ab)||!(_0x9be3c0(0x1ae)in _0x438b20)||!_0x438b20[_0x9be3c0(0x1ae)])return undefined;const [_0x11ab9e]=_0x438b20[_0x9be3c0(0x1ae)];return offsetToLocation(_0x2b34d6,_0x11ab9e);}catch{return undefined;}}export function offsetToLocation(_0x344523,_0x34594a){const _0xd7462e=a154_0x4316;let _0x4ac979=0x1,_0x1756f8=0x1;for(let _0x18b68a=0x0;_0x18b68a<_0x34594a&&_0x18b68a<_0x344523[_0xd7462e(0x1d7)];_0x18b68a++){_0x344523[_0x18b68a]==='\x0a'?(_0x4ac979++,_0x1756f8=0x1):_0x1756f8++;}return{'line':_0x4ac979,'column':_0x1756f8,'offset':_0x34594a};}export function pathToArray(_0x58ace7){const _0x52a117=a154_0x4316;if(!_0x58ace7)return[];return _0x58ace7[_0x52a117(0x1c6)]('.')[_0x52a117(0x1bb)](_0x277e18=>{const _0x3a86d0=_0x277e18['match'](/^(\w+)\[(\d+)\]$/);if(_0x3a86d0)return[_0x3a86d0[0x1],parseInt(_0x3a86d0[0x2],0xa)];return[_0x277e18];});}export function formatZodPath(_0x442288){const _0x47960d=a154_0x4316;let _0x39ef88='';for(const _0x43e777 of _0x442288){if(typeof _0x43e777===_0x47960d(0x1b7))_0x39ef88+='['+_0x43e777+']';else{const _0x2d22fe=String(_0x43e777);_0x39ef88+=_0x39ef88?'.'+_0x2d22fe:_0x2d22fe;}}return _0x39ef88;}export function flattenZodIssues(_0x32c9af){const _0x45d2b0=a154_0x4316,_0xeafee8=[];for(const _0x4e757f of _0x32c9af){if(_0x4e757f[_0x45d2b0(0x1ad)]===_0x45d2b0(0x1b5)&&_0x45d2b0(0x1b2)in _0x4e757f){const _0x5b301e=_0x4e757f[_0x45d2b0(0x1b2)];let _0x3775c0=_0x5b301e[0x0]||[];for(const _0x3b0f49 of _0x5b301e){_0x3b0f49[_0x45d2b0(0x1d7)]<_0x3775c0[_0x45d2b0(0x1d7)]&&(_0x3775c0=_0x3b0f49);}const _0x5061af=_0x3775c0[_0x45d2b0(0x1bc)](_0x26479f=>({..._0x26479f,'path':[..._0x4e757f[_0x45d2b0(0x1be)],..._0x26479f[_0x45d2b0(0x1be)]]}));_0xeafee8[_0x45d2b0(0x1b3)](...flattenZodIssues(_0x5061af));}else _0xeafee8[_0x45d2b0(0x1b3)](_0x4e757f);}return _0xeafee8;}function a154_0x10bb(){const _0x165aee=['range','cyan','contents','334950KgKIPY','errors','push','message','invalid_union','yellow','number','33568joQFYE','safeParse','toString','flatMap','map','12556566QqsKuS','path','YAML\x20validation\x20error:\x20','padStart','issues','1260wJCeZF','red','location','parse','split','320wbiwNl','YAML\x20validation\x20error\x20at\x20\x27','Invalid\x20YAML:\x20expected\x20an\x20object','max','4OUHgrm','dim','394373ZHrPDV','1412148wfNGLT','level','124498bHInyi','column','24GqHsuW','getIn','line','join','error','length','success','\x20|\x20','object','151499qSOROW','code'];a154_0x10bb=function(){return _0x165aee;};return a154_0x10bb();}export function safeParseYaml(_0x18fbf4,_0x4bfba9){const _0x4a26ba=a154_0x4316,_0x49f377=a154_0x31a182[_0x4a26ba(0x1c5)](_0x18fbf4);if(!_0x49f377||typeof _0x49f377!==_0x4a26ba(0x1ab))throw new Error(_0x4a26ba(0x1c9));const _0x29dd5b=_0x4bfba9[_0x4a26ba(0x1b9)](_0x49f377);if(!_0x29dd5b[_0x4a26ba(0x1d8)]){const _0x177949=_0x29dd5b[_0x4a26ba(0x1d6)][_0x4a26ba(0x1c1)][0x0],_0x1c0ecc=formatZodPath(_0x177949['path']);throw new Error(_0x1c0ecc?_0x4a26ba(0x1c8)+_0x1c0ecc+'\x27:\x20'+_0x177949['message']:_0x4a26ba(0x1bf)+_0x177949['message']);}return _0x29dd5b['data'];}export function formatIssueWithContext(_0x96ce56,_0x4a08c6,_0x5913e0){const _0x21ef40=a154_0x4316,_0x4aa0c5=[],_0x4331b9=_0x96ce56[_0x21ef40(0x1cf)]===_0x21ef40(0x1d6),_0x41feaa=_0x4331b9?a154_0x92e389[_0x21ef40(0x1c3)]:a154_0x92e389[_0x21ef40(0x1b6)],_0x530371=_0x4331b9?a154_0x92e389[_0x21ef40(0x1c3)]:a154_0x92e389[_0x21ef40(0x1b6)],_0x285adc=_0x5913e0?a154_0x92e389[_0x21ef40(0x1af)](_0x5913e0+':'):'';if(_0x96ce56[_0x21ef40(0x1c4)]){const _0x481a75=a154_0x92e389[_0x21ef40(0x1af)](_0x96ce56[_0x21ef40(0x1c4)][_0x21ef40(0x1d4)]+':'+_0x96ce56[_0x21ef40(0x1c4)][_0x21ef40(0x1d1)]);_0x4aa0c5[_0x21ef40(0x1b3)](''+_0x285adc+_0x481a75+':\x20'+_0x41feaa(_0x96ce56[_0x21ef40(0x1cf)])+'\x20'+_0x530371('['+_0x96ce56[_0x21ef40(0x1ad)]+']'));}else _0x4aa0c5[_0x21ef40(0x1b3)](''+_0x285adc+a154_0x92e389[_0x21ef40(0x1cc)](_0x96ce56['path'])+':\x20'+_0x41feaa(_0x96ce56[_0x21ef40(0x1cf)])+'\x20'+_0x530371('['+_0x96ce56['code']+']'));_0x4aa0c5[_0x21ef40(0x1b3)](_0x96ce56[_0x21ef40(0x1b4)]);if(_0x96ce56[_0x21ef40(0x1c4)]&&_0x4a08c6){const _0x52d3d7=_0x4a08c6['split']('\x0a'),{line:_0x3af976,column:_0x4f857b}=_0x96ce56['location'],_0x1ad1e6=Math[_0x21ef40(0x1ca)](0x1,_0x3af976-0x1),_0x21de4f=Math['min'](_0x52d3d7[_0x21ef40(0x1d7)],_0x3af976+0x1);_0x4aa0c5['push']('');for(let _0x1896f0=_0x1ad1e6;_0x1896f0<=_0x21de4f;_0x1896f0++){const _0xb56610=_0x52d3d7[_0x1896f0-0x1]||'',_0x373286=a154_0x92e389['dim'](_0x1896f0[_0x21ef40(0x1ba)]()[_0x21ef40(0x1c0)](0x4)),_0x19d18a=a154_0x92e389[_0x21ef40(0x1cc)](_0x21ef40(0x1aa));if(_0x1896f0===_0x3af976){_0x4aa0c5[_0x21ef40(0x1b3)]('\x20\x20'+_0x373286+_0x19d18a+_0x41feaa(_0xb56610));const _0x46ffe3='\x20'['repeat'](0x4+0x3+_0x4f857b-0x1);_0x4aa0c5['push']('\x20\x20'+_0x46ffe3+_0x41feaa('^'));}else _0x4aa0c5[_0x21ef40(0x1b3)]('\x20\x20'+_0x373286+_0x19d18a+a154_0x92e389[_0x21ef40(0x1cc)](_0xb56610));}}return _0x4aa0c5['join']('\x0a');}export function formatValidationResult(_0x5e688f,_0xf85744,_0x275dc5){const _0x2b66ca=a154_0x4316,_0x5ab93b=[];for(const _0x5d9e46 of _0x5e688f[_0x2b66ca(0x1b2)]){_0x5ab93b[_0x2b66ca(0x1b3)](formatIssueWithContext(_0x5d9e46,_0xf85744,_0x275dc5)),_0x5ab93b[_0x2b66ca(0x1b3)]('');}for(const _0x3fd181 of _0x5e688f['warnings']){_0x5ab93b[_0x2b66ca(0x1b3)](formatIssueWithContext(_0x3fd181,_0xf85744,_0x275dc5)),_0x5ab93b[_0x2b66ca(0x1b3)]('');}return _0x5ab93b[_0x2b66ca(0x1d5)]('\x0a');}