@treasuredata/tdx 2026.3.54 → 2026.4.0

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 (260) 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.d.ts.map +1 -1
  5. package/dist/cli.js +1 -1
  6. package/dist/cli.js.map +1 -1
  7. package/dist/commands/activations.js +1 -1
  8. package/dist/commands/agent-command.d.ts.map +1 -1
  9. package/dist/commands/agent-command.js +1 -1
  10. package/dist/commands/agent-command.js.map +1 -1
  11. package/dist/commands/agent-test-command.js +1 -1
  12. package/dist/commands/api-command.js +1 -1
  13. package/dist/commands/auth-command.js +1 -1
  14. package/dist/commands/cas-command.js +1 -1
  15. package/dist/commands/cas-segment-command.js +1 -1
  16. package/dist/commands/chat-command.js +1 -1
  17. package/dist/commands/claude-command.js +1 -1
  18. package/dist/commands/claude-statusline-command.js +1 -1
  19. package/dist/commands/claude-usage-command.js +1 -1
  20. package/dist/commands/command.js +1 -1
  21. package/dist/commands/connection-command.js +1 -1
  22. package/dist/commands/databases.js +1 -1
  23. package/dist/commands/delivery-command.js +1 -1
  24. package/dist/commands/describe.js +1 -1
  25. package/dist/commands/engage-campaign-pull-command.js +1 -1
  26. package/dist/commands/engage-campaign-push-command.js +1 -1
  27. package/dist/commands/engage-campaign-validate-command.js +1 -1
  28. package/dist/commands/engage-command.js +1 -1
  29. package/dist/commands/engage-template-pull-command.js +1 -1
  30. package/dist/commands/engage-template-push-command.js +1 -1
  31. package/dist/commands/engage-template-validate-command.js +1 -1
  32. package/dist/commands/job-command.js +1 -1
  33. package/dist/commands/journey-command.js +1 -1
  34. package/dist/commands/journey-validate-command.js +1 -1
  35. package/dist/commands/llm-command.js +1 -1
  36. package/dist/commands/mcp-command.js +1 -1
  37. package/dist/commands/parent-segment-command.js +1 -1
  38. package/dist/commands/policy-command.js +1 -1
  39. package/dist/commands/profile-command.js +1 -1
  40. package/dist/commands/profiles-command.js +1 -1
  41. package/dist/commands/query-command.js +1 -1
  42. package/dist/commands/schedule-command.js +1 -1
  43. package/dist/commands/segment-command.js +1 -1
  44. package/dist/commands/segment-create-command.js +1 -1
  45. package/dist/commands/segment-fields-command.js +1 -1
  46. package/dist/commands/segment-pull-command.js +1 -1
  47. package/dist/commands/segment-push-command.js +1 -1
  48. package/dist/commands/segment-update-command.js +1 -1
  49. package/dist/commands/segment-use-command.js +1 -1
  50. package/dist/commands/segment-validate-command.js +1 -1
  51. package/dist/commands/segments.js +1 -1
  52. package/dist/commands/show.js +1 -1
  53. package/dist/commands/status-command.js +1 -1
  54. package/dist/commands/tables.js +1 -1
  55. package/dist/commands/unset-command.js +1 -1
  56. package/dist/commands/upgrade-command.js +1 -1
  57. package/dist/commands/use-command.js +1 -1
  58. package/dist/commands/user-command.js +1 -1
  59. package/dist/commands/work-command.js +1 -1
  60. package/dist/commands/workflow-command.d.ts +27 -0
  61. package/dist/commands/workflow-command.d.ts.map +1 -1
  62. package/dist/commands/workflow-command.js +1 -1
  63. package/dist/commands/workflow-command.js.map +1 -1
  64. package/dist/core/auth.js +1 -1
  65. package/dist/core/command-output.js +1 -1
  66. package/dist/core/config.js +1 -1
  67. package/dist/core/connection-cache.js +1 -1
  68. package/dist/core/constants.js +1 -1
  69. package/dist/core/credential-cache.js +1 -1
  70. package/dist/core/global-context.js +1 -1
  71. package/dist/core/keychain.js +1 -1
  72. package/dist/core/oauth-keychain.js +1 -1
  73. package/dist/core/oauth.js +1 -1
  74. package/dist/core/profile.js +1 -1
  75. package/dist/core/project-config.js +1 -1
  76. package/dist/core/session.js +1 -1
  77. package/dist/core/user-cache.js +1 -1
  78. package/dist/core/version.js +1 -1
  79. package/dist/index.js +1 -1
  80. package/dist/mcp/server.js +1 -1
  81. package/dist/mcp/tools/index.js +1 -1
  82. package/dist/mcp/tools/tdx-run.js +1 -1
  83. package/dist/mcp/tools/tdx-search.js +1 -1
  84. package/dist/mcp/tools/work-create-item.js +1 -1
  85. package/dist/mcp/utils.js +1 -1
  86. package/dist/proxy/claude-usage-tracker.js +1 -1
  87. package/dist/proxy/passthrough-server.js +1 -1
  88. package/dist/proxy/sse-usage-parser.js +1 -1
  89. package/dist/sdk/agent/agent-config.d.ts +10 -0
  90. package/dist/sdk/agent/agent-config.d.ts.map +1 -1
  91. package/dist/sdk/agent/agent-config.js +1 -1
  92. package/dist/sdk/agent/agent-config.js.map +1 -1
  93. package/dist/sdk/agent/agent-ref-parser.js +1 -1
  94. package/dist/sdk/agent/agent-yaml.d.ts +61 -3
  95. package/dist/sdk/agent/agent-yaml.d.ts.map +1 -1
  96. package/dist/sdk/agent/agent-yaml.js +1 -1
  97. package/dist/sdk/agent/agent-yaml.js.map +1 -1
  98. package/dist/sdk/agent/test/evaluator.js +1 -1
  99. package/dist/sdk/agent/test/executor.js +1 -1
  100. package/dist/sdk/agent/test/index.js +1 -1
  101. package/dist/sdk/agent/test/output.js +1 -1
  102. package/dist/sdk/agent/test/parser.js +1 -1
  103. package/dist/sdk/agent/tool-target-registry.js +1 -1
  104. package/dist/sdk/agent/types/agent-def.d.ts +43 -0
  105. package/dist/sdk/agent/types/agent-def.d.ts.map +1 -1
  106. package/dist/sdk/api.js +1 -1
  107. package/dist/sdk/cas/cas-api-client.js +1 -1
  108. package/dist/sdk/cas/cas-audience-yaml.js +1 -1
  109. package/dist/sdk/cas/cas-segment-yaml.js +1 -1
  110. package/dist/sdk/cas/index.js +1 -1
  111. package/dist/sdk/cas/pull-workflow.js +1 -1
  112. package/dist/sdk/cas/push-workflow.js +1 -1
  113. package/dist/sdk/client/cdp-api-client.js +1 -1
  114. package/dist/sdk/client/delivery-api-client.js +1 -1
  115. package/dist/sdk/client/endpoints.js +1 -1
  116. package/dist/sdk/client/engage-api-client.js +1 -1
  117. package/dist/sdk/client/http-client.js +1 -1
  118. package/dist/sdk/client/llm-api-client.d.ts +73 -1
  119. package/dist/sdk/client/llm-api-client.d.ts.map +1 -1
  120. package/dist/sdk/client/llm-api-client.js +1 -1
  121. package/dist/sdk/client/llm-api-client.js.map +1 -1
  122. package/dist/sdk/client/oauth-refresh.js +1 -1
  123. package/dist/sdk/client/rate-limiter.js +1 -1
  124. package/dist/sdk/client/td-api-client.js +1 -1
  125. package/dist/sdk/client/trino-api-client.js +1 -1
  126. package/dist/sdk/client/workflow-client.d.ts +28 -1
  127. package/dist/sdk/client/workflow-client.d.ts.map +1 -1
  128. package/dist/sdk/client/workflow-client.js +1 -1
  129. package/dist/sdk/client/workflow-client.js.map +1 -1
  130. package/dist/sdk/connection-validator.js +1 -1
  131. package/dist/sdk/connection.js +1 -1
  132. package/dist/sdk/delivery.js +1 -1
  133. package/dist/sdk/engage/campaign-pull.js +1 -1
  134. package/dist/sdk/engage/campaign-push.js +1 -1
  135. package/dist/sdk/engage/campaign-validator.js +1 -1
  136. package/dist/sdk/engage/campaign-yaml.js +1 -1
  137. package/dist/sdk/engage/template-pull.js +1 -1
  138. package/dist/sdk/engage/template-push.js +1 -1
  139. package/dist/sdk/engage/template-validator.js +1 -1
  140. package/dist/sdk/engage/template-yaml.js +1 -1
  141. package/dist/sdk/engage/types/campaign-def.js +1 -1
  142. package/dist/sdk/engage/types/campaign-schema.js +1 -1
  143. package/dist/sdk/engage/types/template-schema.js +1 -1
  144. package/dist/sdk/engage.js +1 -1
  145. package/dist/sdk/errors.js +1 -1
  146. package/dist/sdk/index.js +1 -1
  147. package/dist/sdk/io/index.js +1 -1
  148. package/dist/sdk/io/node-filesystem.js +1 -1
  149. package/dist/sdk/job.js +1 -1
  150. package/dist/sdk/journey.js +1 -1
  151. package/dist/sdk/llm/chat-cache.js +1 -1
  152. package/dist/sdk/llm/index.d.ts.map +1 -1
  153. package/dist/sdk/llm/index.js +1 -1
  154. package/dist/sdk/llm/index.js.map +1 -1
  155. package/dist/sdk/llm/llm-backup-utils.js +1 -1
  156. package/dist/sdk/llm/model-factors.js +1 -1
  157. package/dist/sdk/personalization.js +1 -1
  158. package/dist/sdk/policy.js +1 -1
  159. package/dist/sdk/query/index.js +1 -1
  160. package/dist/sdk/query/sql-parser.js +1 -1
  161. package/dist/sdk/realtime.js +1 -1
  162. package/dist/sdk/schedule.js +1 -1
  163. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  164. package/dist/sdk/segment/fields-display.js +1 -1
  165. package/dist/sdk/segment/file-discovery.d.ts.map +1 -1
  166. package/dist/sdk/segment/file-discovery.js +1 -1
  167. package/dist/sdk/segment/file-discovery.js.map +1 -1
  168. package/dist/sdk/segment/journey-utils.js +1 -1
  169. package/dist/sdk/segment/journey-validator.js +1 -1
  170. package/dist/sdk/segment/journey-yaml.js +1 -1
  171. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  172. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  173. package/dist/sdk/segment/pull-workflow.js +1 -1
  174. package/dist/sdk/segment/push-recovery.js +1 -1
  175. package/dist/sdk/segment/push-workflow.d.ts.map +1 -1
  176. package/dist/sdk/segment/push-workflow.js +1 -1
  177. package/dist/sdk/segment/push-workflow.js.map +1 -1
  178. package/dist/sdk/segment/resolution-context.js +1 -1
  179. package/dist/sdk/segment/segment-path-parser.js +1 -1
  180. package/dist/sdk/segment/segment-ref-parser.js +1 -1
  181. package/dist/sdk/segment/segment-validator.js +1 -1
  182. package/dist/sdk/segment/target-resolution.js +1 -1
  183. package/dist/sdk/segment/tdx-config.js +1 -1
  184. package/dist/sdk/segment/types/activation-schema.js +1 -1
  185. package/dist/sdk/segment/types/journey-def.js +1 -1
  186. package/dist/sdk/segment/types/journey-schema.js +1 -1
  187. package/dist/sdk/segment/types/segment-def.js +1 -1
  188. package/dist/sdk/segment/types/segment-schema.js +1 -1
  189. package/dist/sdk/segment/validate-files.js +1 -1
  190. package/dist/sdk/segment/yaml-validator.js +1 -1
  191. package/dist/sdk/segment.js +1 -1
  192. package/dist/sdk/types/index.d.ts +2 -2
  193. package/dist/sdk/types/index.d.ts.map +1 -1
  194. package/dist/sdk/types/index.js +1 -1
  195. package/dist/sdk/types/index.js.map +1 -1
  196. package/dist/sdk/types/llm.d.ts +158 -0
  197. package/dist/sdk/types/llm.d.ts.map +1 -1
  198. package/dist/sdk/types/progress.js +1 -1
  199. package/dist/sdk/types/workflow.d.ts +26 -0
  200. package/dist/sdk/types/workflow.d.ts.map +1 -1
  201. package/dist/sdk/types/workspace.js +1 -1
  202. package/dist/sdk/user.js +1 -1
  203. package/dist/sdk/util/format-detector.js +1 -1
  204. package/dist/sdk/util/formatters.js +1 -1
  205. package/dist/sdk/util/index.js +1 -1
  206. package/dist/sdk/util/paginate.js +1 -1
  207. package/dist/sdk/util/tree-formatter.js +1 -1
  208. package/dist/sdk/workflow/archive-validation.js +1 -1
  209. package/dist/sdk/workflow/clone-workflow.js +1 -1
  210. package/dist/sdk/workflow/index.d.ts +22 -0
  211. package/dist/sdk/workflow/index.d.ts.map +1 -1
  212. package/dist/sdk/workflow/index.js +1 -1
  213. package/dist/sdk/workflow/index.js.map +1 -1
  214. package/dist/sdk/workflow/pull-workflow.js +1 -1
  215. package/dist/sdk/workflow/push-workflow.js +1 -1
  216. package/dist/sdk/workflow/tdx-config.js +1 -1
  217. package/dist/sdk/workflow/workflow-utils.js +1 -1
  218. package/dist/sdk/workspace/frontmatter.js +1 -1
  219. package/dist/sdk/workspace/git.js +1 -1
  220. package/dist/sdk/workspace/index.d.ts.map +1 -1
  221. package/dist/sdk/workspace/index.js +1 -1
  222. package/dist/sdk/workspace/index.js.map +1 -1
  223. package/dist/sdk/workspace/templates.js +1 -1
  224. package/dist/sdk/workspace/weekly.js +1 -1
  225. package/dist/sdk/workspace/wikilinks.js +1 -1
  226. package/dist/test-utils/command-runner.js +1 -1
  227. package/dist/test-utils/factories.js +1 -1
  228. package/dist/test-utils/fixtures.js +1 -1
  229. package/dist/test-utils/http-mock.js +1 -1
  230. package/dist/test-utils/index.js +1 -1
  231. package/dist/utils/async.js +1 -1
  232. package/dist/utils/colors.js +1 -1
  233. package/dist/utils/diff.js +1 -1
  234. package/dist/utils/file-permissions.js +1 -1
  235. package/dist/utils/file-reader.js +1 -1
  236. package/dist/utils/github-releases.js +1 -1
  237. package/dist/utils/global-cache.js +1 -1
  238. package/dist/utils/json-loader.js +1 -1
  239. package/dist/utils/local-cache.js +1 -1
  240. package/dist/utils/logger/formatters/default-formatter.js +1 -1
  241. package/dist/utils/logger/formatters/index.js +1 -1
  242. package/dist/utils/logger/handlers/console-handler.js +1 -1
  243. package/dist/utils/logger/handlers/file-handler.js +1 -1
  244. package/dist/utils/logger/handlers/index.js +1 -1
  245. package/dist/utils/logger/handlers/null-handler.js +1 -1
  246. package/dist/utils/logger/index.js +1 -1
  247. package/dist/utils/logger/logger.js +1 -1
  248. package/dist/utils/logger/types.js +1 -1
  249. package/dist/utils/option-validation.js +1 -1
  250. package/dist/utils/process.d.ts.map +1 -1
  251. package/dist/utils/process.js +1 -1
  252. package/dist/utils/process.js.map +1 -1
  253. package/dist/utils/prompt.js +1 -1
  254. package/dist/utils/spinner.js +1 -1
  255. package/dist/utils/sse-parser.js +1 -1
  256. package/dist/utils/string-utils.js +1 -1
  257. package/dist/utils/table-ref-parser.js +1 -1
  258. package/dist/utils/tdx-logger.js +1 -1
  259. package/dist/utils/version-check.js +1 -1
  260. package/package.json +2 -2
@@ -1 +1 @@
1
- (function(_0x85cb6b,_0x4d5f59){const _0x66c632=a157_0x2903,_0x3bccf5=_0x85cb6b();while(!![]){try{const _0x3462fc=-parseInt(_0x66c632(0x1a1))/0x1+-parseInt(_0x66c632(0x174))/0x2*(-parseInt(_0x66c632(0x1a2))/0x3)+parseInt(_0x66c632(0x19a))/0x4*(-parseInt(_0x66c632(0x19b))/0x5)+parseInt(_0x66c632(0x1a7))/0x6*(-parseInt(_0x66c632(0x183))/0x7)+parseInt(_0x66c632(0x181))/0x8*(parseInt(_0x66c632(0x17b))/0x9)+parseInt(_0x66c632(0x1a9))/0xa*(parseInt(_0x66c632(0x17e))/0xb)+parseInt(_0x66c632(0x1a6))/0xc;if(_0x3462fc===_0x4d5f59)break;else _0x3bccf5['push'](_0x3bccf5['shift']());}catch(_0x36fe29){_0x3bccf5['push'](_0x3bccf5['shift']());}}}(a157_0x325b,0x433cd));import a157_0x588552 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(_0x5bfbe4){const _0x3b5003=a157_0x2903;return _0x5bfbe4[_0x3b5003(0x19c)]!=='error';}function a157_0x2903(_0x4c4121,_0x1aad7d){_0x4c4121=_0x4c4121-0x173;const _0x325bcd=a157_0x325b();let _0x2903c8=_0x325bcd[_0x4c4121];return _0x2903c8;}export function isScopedResolution(_0x24d14d){const _0x25f32e=a157_0x2903;return _0x24d14d[_0x25f32e(0x19c)]==='directory'||_0x24d14d[_0x25f32e(0x19c)]===_0x25f32e(0x185)||_0x24d14d['type']===_0x25f32e(0x187);}export function getScopedDetails(_0x60d2b2){const _0x460f91=a157_0x2903;if(isScopedResolution(_0x60d2b2))return{'isScoped':_0x60d2b2[_0x460f91(0x1ab)],'scopedFolderPath':_0x60d2b2[_0x460f91(0x1a0)]};return undefined;}async function findTdxConfigAsync(_0x4b5b34,_0x1eb030){const _0x1294f6=a157_0x2903;let _0x472a0d=a157_0x588552[_0x1294f6(0x193)](_0x4b5b34);const _0x3992d7=a157_0x588552[_0x1294f6(0x176)](_0x472a0d)[_0x1294f6(0x192)];while(_0x472a0d!==_0x3992d7){const _0x13e568=a157_0x588552[_0x1294f6(0x17d)](_0x472a0d,'tdx.json');if(await _0x1eb030[_0x1294f6(0x182)](_0x13e568))try{const _0xc02da5=await _0x1eb030[_0x1294f6(0x189)](_0x13e568),_0x54f365=JSON['parse'](_0xc02da5);if(_0x54f365[_0x1294f6(0x19d)]&&typeof _0x54f365[_0x1294f6(0x19d)]==='string')return{'configPath':_0x13e568,'configDir':_0x472a0d,'parentSegment':_0x54f365[_0x1294f6(0x19d)]};}catch{}_0x472a0d=a157_0x588552[_0x1294f6(0x186)](_0x472a0d);}return null;}function calculateScopedPath(_0xde26b5,_0x1060cc){const _0x3a7012=a157_0x2903,_0x4477d1=a157_0x588552[_0x3a7012(0x1a8)](_0x1060cc,_0xde26b5),_0x4cec04=_0x4477d1!==''&&_0x4477d1!=='.'&&!_0x4477d1[_0x3a7012(0x175)]('..');return{'isScoped':_0x4cec04,'scopedFolderPath':_0x4cec04?_0x4477d1[_0x3a7012(0x194)](/\\/g,'/'):''};}export async function resolveTarget(_0x51d494){const _0x441f11=a157_0x2903,{arg:_0x24f03c,contextParent:_0x1d601c,cwd:cwd=process[_0x441f11(0x18a)](),fs:fs=nodeFileSystem}=_0x51d494;if(_0x24f03c&&isYamlFilePath(_0x24f03c))try{const _0x1ff5ee=await resolveYamlFilePath(_0x24f03c,fs),_0x10026e=a157_0x588552[_0x441f11(0x193)](_0x24f03c),_0x551606=a157_0x588552['dirname'](_0x10026e),_0x1b5497=await findTdxConfigAsync(_0x551606,fs);if(!_0x1b5497){if(_0x1d601c){const _0x63c315=a157_0x588552[_0x441f11(0x186)](_0x10026e);return{'type':_0x441f11(0x185),'parentName':_0x1d601c,'targetDir':_0x63c315,'configRoot':_0x63c315,'filePath':_0x10026e,'resourceName':_0x1ff5ee[_0x441f11(0x180)],'folderPath':_0x1ff5ee['folderPath'],'resourceType':_0x1ff5ee['resourceType'],'isScoped':![],'scopedFolderPath':''};}return{'type':'error','errorCode':_0x441f11(0x1a4),'message':_0x441f11(0x197)+_0x24f03c,'arg':_0x24f03c,'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'};}const _0x36b1e6=calculateScopedPath(_0x551606,_0x1b5497['configDir']);return{'type':_0x441f11(0x185),'parentName':_0x1b5497[_0x441f11(0x19e)],'targetDir':_0x1b5497[_0x441f11(0x196)],'configRoot':_0x1b5497[_0x441f11(0x196)],'filePath':_0x10026e,'resourceName':_0x1ff5ee[_0x441f11(0x180)],'folderPath':_0x1ff5ee[_0x441f11(0x18e)],'resourceType':_0x1ff5ee['resourceType'],'isScoped':_0x36b1e6[_0x441f11(0x1ab)],'scopedFolderPath':_0x36b1e6['scopedFolderPath']};}catch(_0x1a46f3){const _0x51b13d=_0x1a46f3 instanceof Error?_0x1a46f3[_0x441f11(0x17a)]:String(_0x1a46f3);if(_0x51b13d[_0x441f11(0x195)](_0x441f11(0x179)))return{'type':_0x441f11(0x19f),'errorCode':_0x441f11(0x198),'message':_0x441f11(0x190)+_0x24f03c,'arg':_0x24f03c};if(_0x51b13d[_0x441f11(0x195)](_0x441f11(0x1a3))){if(_0x1d601c){const _0x157731=a157_0x588552[_0x441f11(0x193)](_0x24f03c);if(await fs['exists'](_0x157731)){const _0x3eddae=a157_0x588552[_0x441f11(0x186)](_0x157731),_0x53ea2d=await fs[_0x441f11(0x189)](_0x157731),_0x5dbc82=_0x53ea2d['match'](/^name:\s*["']?([^"'\n]+)["']?/m),_0x57f33d=_0x53ea2d[_0x441f11(0x178)](/^type:\s*["']?([^"'\n]+)["']?/m),_0x5d7a35=_0x5dbc82?_0x5dbc82[0x1][_0x441f11(0x177)]():a157_0x588552[_0x441f11(0x1aa)](_0x24f03c,a157_0x588552[_0x441f11(0x18c)](_0x24f03c)),_0x1e14e9=_0x57f33d&&_0x57f33d[0x1][_0x441f11(0x177)]()===_0x441f11(0x191)?'journey':_0x441f11(0x18b);return{'type':_0x441f11(0x185),'parentName':_0x1d601c,'targetDir':_0x3eddae,'configRoot':_0x3eddae,'filePath':_0x157731,'resourceName':_0x5d7a35,'folderPath':'','resourceType':_0x1e14e9,'isScoped':![],'scopedFolderPath':''};}}return{'type':_0x441f11(0x19f),'errorCode':_0x441f11(0x1a4),'message':_0x441f11(0x197)+_0x24f03c,'arg':_0x24f03c,'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'};}return{'type':'error','errorCode':_0x441f11(0x17f),'message':_0x51b13d,'arg':_0x24f03c};}if(_0x24f03c){const _0x1fcbb2=a157_0x588552[_0x441f11(0x193)](cwd,_0x24f03c);let _0x288c7a=null;try{_0x288c7a=await fs[_0x441f11(0x199)](_0x1fcbb2);}catch{}if(_0x288c7a?.[_0x441f11(0x184)]()){const _0x1673d3=await findTdxConfigAsync(_0x1fcbb2,fs);if(_0x1673d3){const _0x4c8772=calculateScopedPath(_0x1fcbb2,_0x1673d3[_0x441f11(0x196)]);return{'type':'directory','parentName':_0x1673d3[_0x441f11(0x19e)],'targetDir':_0x1fcbb2,'configRoot':_0x1673d3[_0x441f11(0x196)],'isScoped':_0x4c8772[_0x441f11(0x1ab)],'scopedFolderPath':_0x4c8772[_0x441f11(0x1a0)]};}if(_0x1d601c)return{'type':'directory','parentName':_0x1d601c,'targetDir':_0x1fcbb2,'configRoot':_0x1fcbb2,'isScoped':![],'scopedFolderPath':''};return{'type':_0x441f11(0x19f),'errorCode':'no_config','message':_0x441f11(0x173)+_0x24f03c,'arg':_0x24f03c,'helpText':_0x441f11(0x17c)};}if(_0x288c7a?.[_0x441f11(0x18d)]())return{'type':_0x441f11(0x19f),'errorCode':_0x441f11(0x17f),'message':'Not\x20a\x20YAML\x20file:\x20'+_0x24f03c,'arg':_0x24f03c,'helpText':_0x441f11(0x1a5)};const _0x2f6069=sanitizeFileName(_0x24f03c),_0x2e449a=getSegmentRootDir(_0x2f6069,cwd);return{'type':_0x441f11(0x18f),'parentName':_0x24f03c,'targetDir':_0x2e449a,'configRoot':_0x2e449a};}const _0x15e4c6=await findTdxConfigAsync(cwd,fs);if(_0x15e4c6){const _0x2252ba=calculateScopedPath(cwd,_0x15e4c6['configDir']);return{'type':_0x441f11(0x187),'parentName':_0x15e4c6[_0x441f11(0x19e)],'targetDir':cwd,'configRoot':_0x15e4c6[_0x441f11(0x196)],'isScoped':_0x2252ba[_0x441f11(0x1ab)],'scopedFolderPath':_0x2252ba[_0x441f11(0x1a0)]};}if(_0x1d601c){const _0x4a3bbd=sanitizeFileName(_0x1d601c),_0x28b41f=getSegmentRootDir(_0x4a3bbd,cwd);return{'type':_0x441f11(0x187),'parentName':_0x1d601c,'targetDir':_0x28b41f,'configRoot':_0x28b41f,'isScoped':![],'scopedFolderPath':''};}return{'type':_0x441f11(0x19f),'errorCode':'no_parent','message':'Parent\x20segment\x20not\x20specified','helpText':_0x441f11(0x188)};}function a157_0x325b(){const _0x20a0a2=['join','473fqXCcs','invalid_yaml','segmentName','8BjNPCo','exists','34587cKPckQ','isDirectory','file','dirname','context','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','readFile','cwd','segment','extname','isFile','folderPath','parent_name','File\x20not\x20found:\x20','journey','root','resolve','replace','includes','configDir','No\x20tdx.json\x20found\x20for\x20file:\x20','file_not_found','stat','4jxPIUN','1357375aNSqqc','type','parent_segment','parentSegment','error','scopedFolderPath','380856VDPiAv','5397ekadez','No\x20tdx.json\x20found','no_config','Segment\x20and\x20journey\x20files\x20must\x20have\x20.yml\x20or\x20.yaml\x20extension','16509228FhgDPY','594UMyYuw','relative','7750HftxcM','basename','isScoped','No\x20tdx.json\x20found\x20in\x20or\x20above:\x20','2aYPANv','startsWith','parse','trim','match','File\x20not\x20found','message','54018ToEdqR','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'];a157_0x325b=function(){return _0x20a0a2;};return a157_0x325b();}
1
+ function a157_0xe513(){const _0x2710d8=['70bajZPM','folderPath','File\x20not\x20found','No\x20tdx.json\x20found\x20for\x20file:\x20','isDirectory','39FJVhlK','3995635BKKdTw','cwd','includes','trim','scopedFolderPath','no_parent','13915WiViMe','parent_segment','relative','context','file','6wKEpuw','readFile','1403102XoxLxg','error','dirname','Segment\x20and\x20journey\x20files\x20must\x20have\x20.yml\x20or\x20.yaml\x20extension','resolve','startsWith','root','message','tdx.json','38641044DgRpsV','parentSegment','exists','isFile','invalid_yaml','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','journey','segmentName','1686753shpaIB','match','configDir','110156mHDkhb','No\x20tdx.json\x20found','resourceType','directory','replace','File\x20not\x20found:\x20','string','type','7742532nMCWbk','join','isScoped','stat','Not\x20a\x20YAML\x20file:\x20','Parent\x20segment\x20not\x20specified','parent_name','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','segment','no_config','24aiewpP','1gLwWfx'];a157_0xe513=function(){return _0x2710d8;};return a157_0xe513();}(function(_0x433391,_0x4b1560){const _0x4b556e=a157_0x26cb,_0x15552c=_0x433391();while(!![]){try{const _0x1423de=-parseInt(_0x4b556e(0xf1))/0x1*(parseInt(_0x4b556e(0x105))/0x2)+parseInt(_0x4b556e(0xf7))/0x3*(-parseInt(_0x4b556e(0x119))/0x4)+parseInt(_0x4b556e(0xf8))/0x5*(-parseInt(_0x4b556e(0x103))/0x6)+-parseInt(_0x4b556e(0x121))/0x7+parseInt(_0x4b556e(0xf0))/0x8*(parseInt(_0x4b556e(0x116))/0x9)+parseInt(_0x4b556e(0xf2))/0xa*(-parseInt(_0x4b556e(0xfe))/0xb)+parseInt(_0x4b556e(0x10e))/0xc;if(_0x1423de===_0x4b1560)break;else _0x15552c['push'](_0x15552c['shift']());}catch(_0xdacb5f){_0x15552c['push'](_0x15552c['shift']());}}}(a157_0xe513,0xc5712));import a157_0x132032 from'path';import{sanitizeFileName}from'../../utils/string-utils.js';function a157_0x26cb(_0x59d384,_0xc1e910){_0x59d384=_0x59d384-0xed;const _0xe51394=a157_0xe513();let _0x26cb54=_0xe51394[_0x59d384];return _0x26cb54;}import{nodeFileSystem}from'../io/node-filesystem.js';import{isYamlFilePath,resolveYamlFilePath}from'./segment-path-parser.js';import{getSegmentRootDir}from'./tdx-config.js';export function isSuccessfulResolution(_0x1492a9){const _0x4499e9=a157_0x26cb;return _0x1492a9[_0x4499e9(0x120)]!=='error';}export function isScopedResolution(_0x45d333){const _0x5e7bbe=a157_0x26cb;return _0x45d333[_0x5e7bbe(0x120)]===_0x5e7bbe(0x11c)||_0x45d333['type']===_0x5e7bbe(0x102)||_0x45d333[_0x5e7bbe(0x120)]==='context';}export function getScopedDetails(_0x3607dd){const _0x12993d=a157_0x26cb;if(isScopedResolution(_0x3607dd))return{'isScoped':_0x3607dd['isScoped'],'scopedFolderPath':_0x3607dd[_0x12993d(0xfc)]};return undefined;}async function findTdxConfigAsync(_0x12c4f2,_0x2a0946){const _0x42afbe=a157_0x26cb;let _0x486764=a157_0x132032['resolve'](_0x12c4f2);const _0x254c4d=a157_0x132032['parse'](_0x486764)[_0x42afbe(0x10b)];while(_0x486764!==_0x254c4d){const _0x35b038=a157_0x132032[_0x42afbe(0x122)](_0x486764,_0x42afbe(0x10d));if(await _0x2a0946[_0x42afbe(0x110)](_0x35b038))try{const _0x1ac298=await _0x2a0946[_0x42afbe(0x104)](_0x35b038),_0x86c504=JSON['parse'](_0x1ac298);if(_0x86c504[_0x42afbe(0xff)]&&typeof _0x86c504[_0x42afbe(0xff)]===_0x42afbe(0x11f))return{'configPath':_0x35b038,'configDir':_0x486764,'parentSegment':_0x86c504['parent_segment']};}catch{}_0x486764=a157_0x132032[_0x42afbe(0x107)](_0x486764);}return null;}function calculateScopedPath(_0x34667b,_0x472ee0){const _0x48511e=a157_0x26cb,_0x45d560=a157_0x132032[_0x48511e(0x100)](_0x472ee0,_0x34667b),_0x2c9b2c=_0x45d560!==''&&_0x45d560!=='.'&&!_0x45d560[_0x48511e(0x10a)]('..');return{'isScoped':_0x2c9b2c,'scopedFolderPath':_0x2c9b2c?_0x45d560[_0x48511e(0x11d)](/\\/g,'/'):''};}export async function resolveTarget(_0x173f62){const _0x4d82ba=a157_0x26cb,{arg:_0x4ae006,contextParent:_0x4eaaea,cwd:cwd=process[_0x4d82ba(0xf9)](),fs:fs=nodeFileSystem}=_0x173f62;if(_0x4ae006&&isYamlFilePath(_0x4ae006))try{const _0x580ede=await resolveYamlFilePath(_0x4ae006,fs),_0x50a773=a157_0x132032[_0x4d82ba(0x109)](_0x4ae006),_0x2e13e0=a157_0x132032['dirname'](_0x50a773),_0x28c032=await findTdxConfigAsync(_0x2e13e0,fs);if(!_0x28c032){if(_0x4eaaea){const _0x3e6ad5=a157_0x132032['dirname'](_0x50a773);return{'type':_0x4d82ba(0x102),'parentName':_0x4eaaea,'targetDir':_0x3e6ad5,'configRoot':_0x3e6ad5,'filePath':_0x50a773,'resourceName':_0x580ede[_0x4d82ba(0x115)],'folderPath':_0x580ede[_0x4d82ba(0xf3)],'resourceType':_0x580ede[_0x4d82ba(0x11b)],'isScoped':![],'scopedFolderPath':''};}return{'type':_0x4d82ba(0x106),'errorCode':_0x4d82ba(0xef),'message':_0x4d82ba(0xf5)+_0x4ae006,'arg':_0x4ae006,'helpText':_0x4d82ba(0xed)};}const _0x2ff9ad=calculateScopedPath(_0x2e13e0,_0x28c032[_0x4d82ba(0x118)]);return{'type':_0x4d82ba(0x102),'parentName':_0x28c032[_0x4d82ba(0x10f)],'targetDir':_0x28c032[_0x4d82ba(0x118)],'configRoot':_0x28c032['configDir'],'filePath':_0x50a773,'resourceName':_0x580ede['segmentName'],'folderPath':_0x580ede['folderPath'],'resourceType':_0x580ede[_0x4d82ba(0x11b)],'isScoped':_0x2ff9ad['isScoped'],'scopedFolderPath':_0x2ff9ad['scopedFolderPath']};}catch(_0x5f2190){const _0x401297=_0x5f2190 instanceof Error?_0x5f2190[_0x4d82ba(0x10c)]:String(_0x5f2190);if(_0x401297[_0x4d82ba(0xfa)](_0x4d82ba(0xf4)))return{'type':_0x4d82ba(0x106),'errorCode':'file_not_found','message':_0x4d82ba(0x11e)+_0x4ae006,'arg':_0x4ae006};if(_0x401297[_0x4d82ba(0xfa)](_0x4d82ba(0x11a))){if(_0x4eaaea){const _0x2de011=a157_0x132032[_0x4d82ba(0x109)](_0x4ae006);if(await fs[_0x4d82ba(0x110)](_0x2de011)){const _0x252a71=a157_0x132032[_0x4d82ba(0x107)](_0x2de011),_0x17ec5f=await fs[_0x4d82ba(0x104)](_0x2de011),_0x2ee78f=_0x17ec5f[_0x4d82ba(0x117)](/^name:\s*["']?([^"'\n]+)["']?/m),_0x33ffe7=_0x17ec5f[_0x4d82ba(0x117)](/^type:\s*["']?([^"'\n]+)["']?/m),_0x4f9bc7=_0x2ee78f?_0x2ee78f[0x1][_0x4d82ba(0xfb)]():a157_0x132032['basename'](_0x4ae006,a157_0x132032['extname'](_0x4ae006)),_0x3cc335=_0x33ffe7&&_0x33ffe7[0x1][_0x4d82ba(0xfb)]()===_0x4d82ba(0x114)?_0x4d82ba(0x114):_0x4d82ba(0xee);return{'type':_0x4d82ba(0x102),'parentName':_0x4eaaea,'targetDir':_0x252a71,'configRoot':_0x252a71,'filePath':_0x2de011,'resourceName':_0x4f9bc7,'folderPath':'','resourceType':_0x3cc335,'isScoped':![],'scopedFolderPath':''};}}return{'type':_0x4d82ba(0x106),'errorCode':'no_config','message':_0x4d82ba(0xf5)+_0x4ae006,'arg':_0x4ae006,'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'};}return{'type':_0x4d82ba(0x106),'errorCode':'invalid_yaml','message':_0x401297,'arg':_0x4ae006};}if(_0x4ae006){const _0xa4b7d1=a157_0x132032[_0x4d82ba(0x109)](cwd,_0x4ae006);let _0x1d7a4b=null;try{_0x1d7a4b=await fs[_0x4d82ba(0x124)](_0xa4b7d1);}catch{}if(_0x1d7a4b?.[_0x4d82ba(0xf6)]()){const _0x4c3c26=await findTdxConfigAsync(_0xa4b7d1,fs);if(_0x4c3c26){const _0x43ed48=calculateScopedPath(_0xa4b7d1,_0x4c3c26[_0x4d82ba(0x118)]);return{'type':_0x4d82ba(0x11c),'parentName':_0x4c3c26[_0x4d82ba(0x10f)],'targetDir':_0xa4b7d1,'configRoot':_0x4c3c26[_0x4d82ba(0x118)],'isScoped':_0x43ed48[_0x4d82ba(0x123)],'scopedFolderPath':_0x43ed48['scopedFolderPath']};}if(_0x4eaaea)return{'type':_0x4d82ba(0x11c),'parentName':_0x4eaaea,'targetDir':_0xa4b7d1,'configRoot':_0xa4b7d1,'isScoped':![],'scopedFolderPath':''};return{'type':_0x4d82ba(0x106),'errorCode':_0x4d82ba(0xef),'message':'No\x20tdx.json\x20found\x20in\x20or\x20above:\x20'+_0x4ae006,'arg':_0x4ae006,'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(_0x1d7a4b?.[_0x4d82ba(0x111)]())return{'type':_0x4d82ba(0x106),'errorCode':_0x4d82ba(0x112),'message':_0x4d82ba(0x125)+_0x4ae006,'arg':_0x4ae006,'helpText':_0x4d82ba(0x108)};const _0x51bf49=sanitizeFileName(_0x4ae006),_0x423079=getSegmentRootDir(_0x51bf49,cwd);return{'type':_0x4d82ba(0x127),'parentName':_0x4ae006,'targetDir':_0x423079,'configRoot':_0x423079};}const _0x516d20=await findTdxConfigAsync(cwd,fs);if(_0x516d20){const _0x2d8f00=calculateScopedPath(cwd,_0x516d20[_0x4d82ba(0x118)]);return{'type':'context','parentName':_0x516d20['parentSegment'],'targetDir':cwd,'configRoot':_0x516d20[_0x4d82ba(0x118)],'isScoped':_0x2d8f00[_0x4d82ba(0x123)],'scopedFolderPath':_0x2d8f00[_0x4d82ba(0xfc)]};}if(_0x4eaaea){const _0x50bb7a=sanitizeFileName(_0x4eaaea),_0x6930bf=getSegmentRootDir(_0x50bb7a,cwd);return{'type':_0x4d82ba(0x101),'parentName':_0x4eaaea,'targetDir':_0x6930bf,'configRoot':_0x6930bf,'isScoped':![],'scopedFolderPath':''};}return{'type':_0x4d82ba(0x106),'errorCode':_0x4d82ba(0xfd),'message':_0x4d82ba(0x126),'helpText':_0x4d82ba(0x113)};}
@@ -1 +1 @@
1
- const a158_0x2c82f3=a158_0x38dd;(function(_0x15b9be,_0x502d8f){const _0xbe8120=a158_0x38dd,_0x40c993=_0x15b9be();while(!![]){try{const _0x10328=parseInt(_0xbe8120(0x86))/0x1+-parseInt(_0xbe8120(0x7b))/0x2+parseInt(_0xbe8120(0x8f))/0x3+-parseInt(_0xbe8120(0x92))/0x4+parseInt(_0xbe8120(0x85))/0x5+-parseInt(_0xbe8120(0x7f))/0x6*(parseInt(_0xbe8120(0x83))/0x7)+-parseInt(_0xbe8120(0x8b))/0x8*(-parseInt(_0xbe8120(0x78))/0x9);if(_0x10328===_0x502d8f)break;else _0x40c993['push'](_0x40c993['shift']());}catch(_0x488e2f){_0x40c993['push'](_0x40c993['shift']());}}}(a158_0x2fec,0xeadd8));import{existsSync,readFileSync}from'fs';import a158_0xe4fd3d from'path';const TDX_CONFIG_FILE='tdx.json',SEGMENTS_DIR=a158_0x2c82f3(0x7d);export function findTdxConfigPath(_0x181120=process['cwd']()){const _0xa6a07a=a158_0x2c82f3;let _0x1ace27=a158_0xe4fd3d[_0xa6a07a(0x81)](_0x181120);const _0x21e8a9=a158_0xe4fd3d[_0xa6a07a(0x87)](_0x1ace27)[_0xa6a07a(0x90)];while(_0x1ace27!==_0x21e8a9){const _0x37e554=a158_0xe4fd3d[_0xa6a07a(0x8a)](_0x1ace27,TDX_CONFIG_FILE);if(existsSync(_0x37e554))return _0x37e554;_0x1ace27=a158_0xe4fd3d[_0xa6a07a(0x77)](_0x1ace27);}return null;}function a158_0x2fec(){const _0x14f0c4=['344AibXJY','replace','parent_segment','engage_workspace','1594308dzsWtf','root','object','7271532hnerOw','dirname','578844lRbNcG','Invalid\x20JSON\x20in\x20','cwd','3103468KqBfiZ','No\x20tdx.json\x20found.\x20Please\x20run\x20\x27tdx\x20sg\x20pull\x20<parent_segment>\x27\x20first\x20to\x20create\x20the\x20folder\x20structure.','segments','Invalid\x20tdx.json:\x20expected\x20object','7263666sQtEtI','string','resolve','Invalid\x20tdx.json:\x20must\x20contain\x20\x27parent_segment\x27\x20or\x20\x27engage_workspace\x27\x20field','7gITaDF','startsWith','6565555wdhnuc','932101KiiDPf','parse','relative','utf-8','join'];a158_0x2fec=function(){return _0x14f0c4;};return a158_0x2fec();}export function loadTdxConfig(_0x40161a){const _0x15774f=a158_0x2c82f3,_0x1c5d56=readFileSync(_0x40161a,_0x15774f(0x89));let _0x2ab635;try{_0x2ab635=JSON[_0x15774f(0x87)](_0x1c5d56);}catch{throw new Error(_0x15774f(0x79)+_0x40161a);}if(!_0x2ab635||typeof _0x2ab635!==_0x15774f(0x91))throw new Error(_0x15774f(0x7e));const _0x3efd71=_0x2ab635,_0x5fd2a3=_0x3efd71['parent_segment']&&typeof _0x3efd71[_0x15774f(0x8d)]===_0x15774f(0x80),_0x4d828d=_0x3efd71[_0x15774f(0x8e)]&&typeof _0x3efd71[_0x15774f(0x8e)]===_0x15774f(0x80);if(!_0x5fd2a3&&!_0x4d828d)throw new Error(_0x15774f(0x82));const _0x409d08={};return _0x5fd2a3&&(_0x409d08[_0x15774f(0x8d)]=_0x3efd71[_0x15774f(0x8d)]),_0x4d828d&&(_0x409d08[_0x15774f(0x8e)]=_0x3efd71[_0x15774f(0x8e)]),_0x409d08;}export function findTdxConfig(_0x50b7cf=process[a158_0x2c82f3(0x7a)]()){const _0x382fe1=a158_0x2c82f3,_0x36ace7=findTdxConfigPath(_0x50b7cf);if(!_0x36ace7)throw new Error(_0x382fe1(0x7c));const _0x405783=loadTdxConfig(_0x36ace7),_0x37b1c2=a158_0xe4fd3d[_0x382fe1(0x77)](_0x36ace7);return{'config':_0x405783,'configPath':_0x36ace7,'configDir':_0x37b1c2};}function a158_0x38dd(_0x244bc6,_0x5e5846){_0x244bc6=_0x244bc6-0x77;const _0x2fecf4=a158_0x2fec();let _0x38dd53=_0x2fecf4[_0x244bc6];return _0x38dd53;}export function tryFindTdxConfig(_0xc8e77e){try{return findTdxConfig(_0xc8e77e);}catch{return null;}}export function getSegmentRootDir(_0x39ab1f,_0x2b029=process[a158_0x2c82f3(0x7a)]()){const _0x3df730=a158_0x2c82f3;return a158_0xe4fd3d[_0x3df730(0x8a)](_0x2b029,SEGMENTS_DIR,_0x39ab1f);}export function getTdxConfigPath(_0x1f1955,_0x58d6a7=process[a158_0x2c82f3(0x7a)]()){const _0x442ebc=a158_0x2c82f3;return a158_0xe4fd3d[_0x442ebc(0x8a)](getSegmentRootDir(_0x1f1955,_0x58d6a7),TDX_CONFIG_FILE);}export function getRelativePathFromConfig(_0x2a4b7c,_0x190980){const _0x57eda3=a158_0x2c82f3,_0x3e3add=a158_0xe4fd3d[_0x57eda3(0x81)](_0x2a4b7c),_0x3fe6df=a158_0xe4fd3d[_0x57eda3(0x88)](_0x190980,_0x3e3add);if(_0x3fe6df[_0x57eda3(0x84)]('..'))return'';return _0x3fe6df;}export function localPathToTdFolderPath(_0x1b0c9c){const _0x36c36b=a158_0x2c82f3,_0x57560c=a158_0xe4fd3d[_0x36c36b(0x77)](_0x1b0c9c);if(_0x57560c==='.'||_0x57560c==='')return'';return _0x57560c[_0x36c36b(0x8c)](/\\/g,'/');}export function tdFolderPathToLocalPath(_0xe2ca0c,_0x28b2ed){if(!_0xe2ca0c)return _0x28b2ed;return a158_0xe4fd3d['join'](_0x28b2ed,_0xe2ca0c);}export function createTdxConfigContent(_0x2e9577){const _0x27c4c3={'parent_segment':_0x2e9577};return JSON['stringify'](_0x27c4c3,null,0x2)+'\x0a';}export function createEngageTdxConfigContent(_0x28e804){const _0x325f2d={'engage_workspace':_0x28e804};return JSON['stringify'](_0x325f2d,null,0x2)+'\x0a';}
1
+ const a158_0x3b7178=a158_0x5ce3;(function(_0x5d8a82,_0x2cf631){const _0x259d48=a158_0x5ce3,_0xe77d53=_0x5d8a82();while(!![]){try{const _0x2d7b0f=parseInt(_0x259d48(0x1ba))/0x1+parseInt(_0x259d48(0x1b8))/0x2+-parseInt(_0x259d48(0x1c6))/0x3*(parseInt(_0x259d48(0x1c7))/0x4)+-parseInt(_0x259d48(0x1bb))/0x5+-parseInt(_0x259d48(0x1bd))/0x6+-parseInt(_0x259d48(0x1b0))/0x7*(-parseInt(_0x259d48(0x1c5))/0x8)+parseInt(_0x259d48(0x1b3))/0x9;if(_0x2d7b0f===_0x2cf631)break;else _0xe77d53['push'](_0xe77d53['shift']());}catch(_0x4c37f7){_0xe77d53['push'](_0xe77d53['shift']());}}}(a158_0x28fc,0xb53c2));import{existsSync,readFileSync}from'fs';import a158_0x218328 from'path';function a158_0x28fc(){const _0x4195eb=['parent_segment','root','relative','118808KQOrDw','replace','549662HKLIZl','1222870pvbkre','join','731316OvWEVA','cwd','Invalid\x20tdx.json:\x20must\x20contain\x20\x27parent_segment\x27\x20or\x20\x27engage_workspace\x27\x20field','parse','string','object','stringify','utf-8','1208ZNvlNk','699rnPCsm','13912NLuCpf','engage_workspace','tdx.json','startsWith','segments','3864DENNrm','dirname','Invalid\x20tdx.json:\x20expected\x20object','11040786fVzLQN','resolve'];a158_0x28fc=function(){return _0x4195eb;};return a158_0x28fc();}function a158_0x5ce3(_0x470bcc,_0x412780){_0x470bcc=_0x470bcc-0x1b0;const _0x28fca0=a158_0x28fc();let _0x5ce362=_0x28fca0[_0x470bcc];return _0x5ce362;}const TDX_CONFIG_FILE=a158_0x3b7178(0x1c9),SEGMENTS_DIR=a158_0x3b7178(0x1cb);export function findTdxConfigPath(_0x4c85e5=process['cwd']()){const _0x1f7b40=a158_0x3b7178;let _0x4980ed=a158_0x218328[_0x1f7b40(0x1b4)](_0x4c85e5);const _0x560b2a=a158_0x218328[_0x1f7b40(0x1c0)](_0x4980ed)[_0x1f7b40(0x1b6)];while(_0x4980ed!==_0x560b2a){const _0x51ed03=a158_0x218328['join'](_0x4980ed,TDX_CONFIG_FILE);if(existsSync(_0x51ed03))return _0x51ed03;_0x4980ed=a158_0x218328[_0x1f7b40(0x1b1)](_0x4980ed);}return null;}export function loadTdxConfig(_0x48dc24){const _0x21eb83=a158_0x3b7178,_0xab7486=readFileSync(_0x48dc24,_0x21eb83(0x1c4));let _0x2d87fd;try{_0x2d87fd=JSON['parse'](_0xab7486);}catch{throw new Error('Invalid\x20JSON\x20in\x20'+_0x48dc24);}if(!_0x2d87fd||typeof _0x2d87fd!==_0x21eb83(0x1c2))throw new Error(_0x21eb83(0x1b2));const _0x5464c0=_0x2d87fd,_0x4c284f=_0x5464c0['parent_segment']&&typeof _0x5464c0[_0x21eb83(0x1b5)]===_0x21eb83(0x1c1),_0x2ea200=_0x5464c0['engage_workspace']&&typeof _0x5464c0['engage_workspace']===_0x21eb83(0x1c1);if(!_0x4c284f&&!_0x2ea200)throw new Error(_0x21eb83(0x1bf));const _0x2fdfd6={};return _0x4c284f&&(_0x2fdfd6['parent_segment']=_0x5464c0[_0x21eb83(0x1b5)]),_0x2ea200&&(_0x2fdfd6[_0x21eb83(0x1c8)]=_0x5464c0[_0x21eb83(0x1c8)]),_0x2fdfd6;}export function findTdxConfig(_0x470321=process['cwd']()){const _0x164504=a158_0x3b7178,_0x572493=findTdxConfigPath(_0x470321);if(!_0x572493)throw new Error('No\x20tdx.json\x20found.\x20Please\x20run\x20\x27tdx\x20sg\x20pull\x20<parent_segment>\x27\x20first\x20to\x20create\x20the\x20folder\x20structure.');const _0x35fffc=loadTdxConfig(_0x572493),_0x1396f4=a158_0x218328[_0x164504(0x1b1)](_0x572493);return{'config':_0x35fffc,'configPath':_0x572493,'configDir':_0x1396f4};}export function tryFindTdxConfig(_0x1959d1){try{return findTdxConfig(_0x1959d1);}catch{return null;}}export function getSegmentRootDir(_0x2b0f77,_0x1fbfe4=process[a158_0x3b7178(0x1be)]()){const _0x3df6db=a158_0x3b7178;return a158_0x218328[_0x3df6db(0x1bc)](_0x1fbfe4,SEGMENTS_DIR,_0x2b0f77);}export function getTdxConfigPath(_0x4f525b,_0x2578c3=process['cwd']()){return a158_0x218328['join'](getSegmentRootDir(_0x4f525b,_0x2578c3),TDX_CONFIG_FILE);}export function getRelativePathFromConfig(_0x3cbf8f,_0x3aa465){const _0x14a79d=a158_0x3b7178,_0x1e37d3=a158_0x218328['resolve'](_0x3cbf8f),_0x9ccc8c=a158_0x218328[_0x14a79d(0x1b7)](_0x3aa465,_0x1e37d3);if(_0x9ccc8c[_0x14a79d(0x1ca)]('..'))return'';return _0x9ccc8c;}export function localPathToTdFolderPath(_0x8dc497){const _0x706971=a158_0x3b7178,_0x1aacd4=a158_0x218328[_0x706971(0x1b1)](_0x8dc497);if(_0x1aacd4==='.'||_0x1aacd4==='')return'';return _0x1aacd4[_0x706971(0x1b9)](/\\/g,'/');}export function tdFolderPathToLocalPath(_0x2e64ba,_0x4a7976){const _0x48e431=a158_0x3b7178;if(!_0x2e64ba)return _0x4a7976;return a158_0x218328[_0x48e431(0x1bc)](_0x4a7976,_0x2e64ba);}export function createTdxConfigContent(_0x127ca2){const _0x4b0636=a158_0x3b7178,_0x478b41={'parent_segment':_0x127ca2};return JSON[_0x4b0636(0x1c3)](_0x478b41,null,0x2)+'\x0a';}export function createEngageTdxConfigContent(_0x4ddec2){const _0x428a02=a158_0x3b7178,_0x5bfb5a={'engage_workspace':_0x4ddec2};return JSON[_0x428a02(0x1c3)](_0x5bfb5a,null,0x2)+'\x0a';}
@@ -1 +1 @@
1
- const a159_0x2eb290=a159_0xb242;(function(_0x3eb869,_0x380d2d){const _0x55a390=a159_0xb242,_0x3e63a2=_0x3eb869();while(!![]){try{const _0x41ed2c=-parseInt(_0x55a390(0x17f))/0x1*(parseInt(_0x55a390(0x183))/0x2)+parseInt(_0x55a390(0x180))/0x3*(parseInt(_0x55a390(0x18e))/0x4)+parseInt(_0x55a390(0x193))/0x5*(parseInt(_0x55a390(0x176))/0x6)+parseInt(_0x55a390(0x187))/0x7+parseInt(_0x55a390(0x175))/0x8+-parseInt(_0x55a390(0x17a))/0x9+-parseInt(_0x55a390(0x172))/0xa;if(_0x41ed2c===_0x380d2d)break;else _0x3e63a2['push'](_0x3e63a2['shift']());}catch(_0x225f66){_0x3e63a2['push'](_0x3e63a2['shift']());}}}(a159_0x375d,0x8da60));import{z}from'zod';export const ScheduleTypeSchema=z[a159_0x2eb290(0x18b)]([a159_0x2eb290(0x196),a159_0x2eb290(0x173),'daily',a159_0x2eb290(0x184),'monthly','cron',a159_0x2eb290(0x18c)]);function a159_0x375d(){const _0x555370=['clear','Activation\x20name\x20is\x20required','Last','minute','30KFjyLJ','number','First','none','masked','optional','array','Top-N','min','day','object','25537360BeUVlS','hourly','union','8524360pmUDtk','822276lUURwK','string','once','unknown','2625804QGavyu','All','desc','boolean','month','10711JzDdDZ','1823121WUqkJf','onFailure','nullable','32VSBDJR','weekly','cols','record','7710724Ofolet','hour','Connection\x20name\x20is\x20required','onSuccess','enum','minutes_interval','week','4efPeLH'];a159_0x375d=function(){return _0x555370;};return a159_0x375d();}export const RepeatUnitSchema=z[a159_0x2eb290(0x18b)]([a159_0x2eb290(0x192),a159_0x2eb290(0x188),a159_0x2eb290(0x19c),a159_0x2eb290(0x18d),a159_0x2eb290(0x17e),a159_0x2eb290(0x178),a159_0x2eb290(0x196)]);export const ScheduleDefSchema=z[a159_0x2eb290(0x171)]({'type':ScheduleTypeSchema[a159_0x2eb290(0x198)](),'repeat_unit':RepeatUnitSchema[a159_0x2eb290(0x198)](),'repeat_frequency':z[a159_0x2eb290(0x194)]()['optional'](),'repeat_sub_frequency':z[a159_0x2eb290(0x199)](z[a159_0x2eb290(0x194)]())[a159_0x2eb290(0x198)](),'start_at':z[a159_0x2eb290(0x177)]()[a159_0x2eb290(0x182)]()[a159_0x2eb290(0x198)](),'end_on':z[a159_0x2eb290(0x177)]()[a159_0x2eb290(0x182)]()[a159_0x2eb290(0x198)](),'timezone':z[a159_0x2eb290(0x177)]()['optional']()});export const NotificationDefSchema=z[a159_0x2eb290(0x171)]({'notify_on':z[a159_0x2eb290(0x199)](z['enum']([a159_0x2eb290(0x18a),a159_0x2eb290(0x181)]))[a159_0x2eb290(0x198)](),'email_recipients':z['array'](z[a159_0x2eb290(0x177)]())[a159_0x2eb290(0x198)]()});function a159_0xb242(_0x1ba7f9,_0x18eb99){_0x1ba7f9=_0x1ba7f9-0x171;const _0x375d22=a159_0x375d();let _0xb242ad=_0x375d22[_0x1ba7f9];return _0xb242ad;}export const ActivationColumnDefSchema=z[a159_0x2eb290(0x174)]([z[a159_0x2eb290(0x177)](),z[a159_0x2eb290(0x171)]({'name':z['string'](),'type':z[a159_0x2eb290(0x177)]()[a159_0x2eb290(0x198)](),'visibility':z[a159_0x2eb290(0x18b)]([a159_0x2eb290(0x18f),a159_0x2eb290(0x197)])[a159_0x2eb290(0x198)]()})]);export const ActivationBehaviorDefSchema=z['object']({'columns':z[a159_0x2eb290(0x199)](z[a159_0x2eb290(0x171)]({'name':z[a159_0x2eb290(0x177)](),'type':z[a159_0x2eb290(0x177)]()['optional'](),'visibility':z['enum'](['clear',a159_0x2eb290(0x197)])['optional']()}))[a159_0x2eb290(0x198)](),'behavior_table':z[a159_0x2eb290(0x177)]()[a159_0x2eb290(0x198)](),'join_row':z[a159_0x2eb290(0x194)]()[a159_0x2eb290(0x182)]()[a159_0x2eb290(0x198)](),'join_strategy':z[a159_0x2eb290(0x18b)]([a159_0x2eb290(0x17b),a159_0x2eb290(0x195),a159_0x2eb290(0x191),a159_0x2eb290(0x19a)])[a159_0x2eb290(0x198)](),'formatting':z['enum'](['rows',a159_0x2eb290(0x185)])[a159_0x2eb290(0x198)](),'order_by':z[a159_0x2eb290(0x199)](z[a159_0x2eb290(0x171)]({'key':z['string'](),'order':z[a159_0x2eb290(0x18b)](['asc',a159_0x2eb290(0x17c)])}))[a159_0x2eb290(0x198)]()});export const ActivationDefSchema=z[a159_0x2eb290(0x171)]({'name':z['string']()[a159_0x2eb290(0x19b)](0x1,a159_0x2eb290(0x190)),'description':z['string']()['optional'](),'connection':z[a159_0x2eb290(0x177)]()['min'](0x1,a159_0x2eb290(0x189)),'all_columns':z[a159_0x2eb290(0x17d)]()[a159_0x2eb290(0x198)](),'columns':z['array'](ActivationColumnDefSchema)[a159_0x2eb290(0x198)](),'schedule':ScheduleDefSchema['optional'](),'notification':NotificationDefSchema['optional'](),'connector_config':z[a159_0x2eb290(0x186)](z[a159_0x2eb290(0x177)](),z[a159_0x2eb290(0x179)]())[a159_0x2eb290(0x198)](),'activation_template_id':z['string']()[a159_0x2eb290(0x182)]()[a159_0x2eb290(0x198)](),'behavior':ActivationBehaviorDefSchema[a159_0x2eb290(0x182)]()[a159_0x2eb290(0x198)](),'run_after_journey_refresh':z[a159_0x2eb290(0x17d)]()['optional'](),'nested_workflow_project_name':z['string']()['optional'](),'nested_workflow_name':z['string']()[a159_0x2eb290(0x198)](),'lock_enabled':z[a159_0x2eb290(0x17d)]()[a159_0x2eb290(0x198)]()});
1
+ const a159_0x4b5c9f=a159_0x3d49;(function(_0x3cdfbb,_0x135fba){const _0x51b98b=a159_0x3d49,_0x5264c8=_0x3cdfbb();while(!![]){try{const _0x67e8b8=-parseInt(_0x51b98b(0x1f5))/0x1+parseInt(_0x51b98b(0x1dd))/0x2+parseInt(_0x51b98b(0x1e0))/0x3+-parseInt(_0x51b98b(0x200))/0x4*(parseInt(_0x51b98b(0x1de))/0x5)+-parseInt(_0x51b98b(0x1ee))/0x6+parseInt(_0x51b98b(0x1fc))/0x7*(-parseInt(_0x51b98b(0x1e5))/0x8)+parseInt(_0x51b98b(0x1e9))/0x9;if(_0x67e8b8===_0x135fba)break;else _0x5264c8['push'](_0x5264c8['shift']());}catch(_0xba5310){_0x5264c8['push'](_0x5264c8['shift']());}}}(a159_0x2612,0x362f8));function a159_0x3d49(_0x37ced1,_0x2ebdaf){_0x37ced1=_0x37ced1-0x1d6;const _0x2612eb=a159_0x2612();let _0x3d49b3=_0x2612eb[_0x37ced1];return _0x3d49b3;}import{z}from'zod';export const ScheduleTypeSchema=z[a159_0x4b5c9f(0x1f4)]([a159_0x4b5c9f(0x1e7),a159_0x4b5c9f(0x1f0),a159_0x4b5c9f(0x1e1),a159_0x4b5c9f(0x1fd),a159_0x4b5c9f(0x1d9),a159_0x4b5c9f(0x1da),'minutes_interval']);export const RepeatUnitSchema=z[a159_0x4b5c9f(0x1f4)]([a159_0x4b5c9f(0x1ef),a159_0x4b5c9f(0x1ed),a159_0x4b5c9f(0x1ff),a159_0x4b5c9f(0x1fb),a159_0x4b5c9f(0x1d6),a159_0x4b5c9f(0x1e8),'none']);export const ScheduleDefSchema=z['object']({'type':ScheduleTypeSchema['optional'](),'repeat_unit':RepeatUnitSchema[a159_0x4b5c9f(0x1d7)](),'repeat_frequency':z[a159_0x4b5c9f(0x1e3)]()[a159_0x4b5c9f(0x1d7)](),'repeat_sub_frequency':z[a159_0x4b5c9f(0x1f3)](z[a159_0x4b5c9f(0x1e3)]())['optional'](),'start_at':z['string']()[a159_0x4b5c9f(0x1fa)]()[a159_0x4b5c9f(0x1d7)](),'end_on':z[a159_0x4b5c9f(0x1dc)]()['nullable']()['optional'](),'timezone':z[a159_0x4b5c9f(0x1dc)]()[a159_0x4b5c9f(0x1d7)]()});export const NotificationDefSchema=z['object']({'notify_on':z[a159_0x4b5c9f(0x1f3)](z[a159_0x4b5c9f(0x1f4)]([a159_0x4b5c9f(0x1ec),a159_0x4b5c9f(0x1f9)]))[a159_0x4b5c9f(0x1d7)](),'email_recipients':z[a159_0x4b5c9f(0x1f3)](z[a159_0x4b5c9f(0x1dc)]())[a159_0x4b5c9f(0x1d7)]()});export const ActivationColumnDefSchema=z[a159_0x4b5c9f(0x1eb)]([z['string'](),z[a159_0x4b5c9f(0x1e4)]({'name':z[a159_0x4b5c9f(0x1dc)](),'type':z['string']()[a159_0x4b5c9f(0x1d7)](),'visibility':z[a159_0x4b5c9f(0x1f4)]([a159_0x4b5c9f(0x1df),a159_0x4b5c9f(0x1fe)])[a159_0x4b5c9f(0x1d7)]()})]);export const ActivationBehaviorDefSchema=z[a159_0x4b5c9f(0x1e4)]({'columns':z[a159_0x4b5c9f(0x1f3)](z[a159_0x4b5c9f(0x1e4)]({'name':z[a159_0x4b5c9f(0x1dc)](),'type':z[a159_0x4b5c9f(0x1dc)]()[a159_0x4b5c9f(0x1d7)](),'visibility':z[a159_0x4b5c9f(0x1f4)]([a159_0x4b5c9f(0x1df),a159_0x4b5c9f(0x1fe)])[a159_0x4b5c9f(0x1d7)]()}))[a159_0x4b5c9f(0x1d7)](),'behavior_table':z[a159_0x4b5c9f(0x1dc)]()[a159_0x4b5c9f(0x1d7)](),'join_row':z[a159_0x4b5c9f(0x1e3)]()[a159_0x4b5c9f(0x1fa)]()[a159_0x4b5c9f(0x1d7)](),'join_strategy':z[a159_0x4b5c9f(0x1f4)]([a159_0x4b5c9f(0x1e6),'First',a159_0x4b5c9f(0x1db),a159_0x4b5c9f(0x1f6)])[a159_0x4b5c9f(0x1d7)](),'formatting':z[a159_0x4b5c9f(0x1f4)](['rows',a159_0x4b5c9f(0x1d8)])['optional'](),'order_by':z[a159_0x4b5c9f(0x1f3)](z['object']({'key':z[a159_0x4b5c9f(0x1dc)](),'order':z['enum']([a159_0x4b5c9f(0x1ea),'desc'])}))['optional']()});function a159_0x2612(){const _0x16c3cb=['All','none','once','10157733RHJXGx','asc','union','onSuccess','hour','2478102WpKGQJ','minute','hourly','min','record','array','enum','423732JcOPyG','Top-N','boolean','unknown','onFailure','nullable','week','490910omMnwY','weekly','masked','day','536XmaXzv','month','optional','cols','monthly','cron','Last','string','311494zlrtDm','11465YZSbzA','clear','455103IDgvHg','daily','Connection\x20name\x20is\x20required','number','object','8zjuJJw'];a159_0x2612=function(){return _0x16c3cb;};return a159_0x2612();}export const ActivationDefSchema=z[a159_0x4b5c9f(0x1e4)]({'name':z[a159_0x4b5c9f(0x1dc)]()['min'](0x1,'Activation\x20name\x20is\x20required'),'description':z[a159_0x4b5c9f(0x1dc)]()[a159_0x4b5c9f(0x1d7)](),'connection':z[a159_0x4b5c9f(0x1dc)]()[a159_0x4b5c9f(0x1f1)](0x1,a159_0x4b5c9f(0x1e2)),'all_columns':z['boolean']()[a159_0x4b5c9f(0x1d7)](),'columns':z[a159_0x4b5c9f(0x1f3)](ActivationColumnDefSchema)[a159_0x4b5c9f(0x1d7)](),'schedule':ScheduleDefSchema[a159_0x4b5c9f(0x1d7)](),'notification':NotificationDefSchema[a159_0x4b5c9f(0x1d7)](),'connector_config':z[a159_0x4b5c9f(0x1f2)](z[a159_0x4b5c9f(0x1dc)](),z[a159_0x4b5c9f(0x1f8)]())['optional'](),'activation_template_id':z[a159_0x4b5c9f(0x1dc)]()['nullable']()[a159_0x4b5c9f(0x1d7)](),'behavior':ActivationBehaviorDefSchema[a159_0x4b5c9f(0x1fa)]()['optional'](),'run_after_journey_refresh':z[a159_0x4b5c9f(0x1f7)]()[a159_0x4b5c9f(0x1d7)](),'nested_workflow_project_name':z['string']()[a159_0x4b5c9f(0x1d7)](),'nested_workflow_name':z[a159_0x4b5c9f(0x1dc)]()[a159_0x4b5c9f(0x1d7)](),'lock_enabled':z[a159_0x4b5c9f(0x1f7)]()['optional']()});
@@ -1 +1 @@
1
- (function(_0x17b938,_0x5663c9){var _0xd890e4=a160_0x3c54,_0x1ebea5=_0x17b938();while(!![]){try{var _0x3f779d=parseInt(_0xd890e4(0xcc))/0x1+parseInt(_0xd890e4(0xcf))/0x2*(parseInt(_0xd890e4(0xc9))/0x3)+-parseInt(_0xd890e4(0xd1))/0x4*(parseInt(_0xd890e4(0xca))/0x5)+parseInt(_0xd890e4(0xc8))/0x6*(parseInt(_0xd890e4(0xd0))/0x7)+parseInt(_0xd890e4(0xd2))/0x8*(parseInt(_0xd890e4(0xce))/0x9)+-parseInt(_0xd890e4(0xd3))/0xa+parseInt(_0xd890e4(0xcb))/0xb*(parseInt(_0xd890e4(0xcd))/0xc);if(_0x3f779d===_0x5663c9)break;else _0x1ebea5['push'](_0x1ebea5['shift']());}catch(_0x2fc66d){_0x1ebea5['push'](_0x1ebea5['shift']());}}}(a160_0x3343,0x41b72));function a160_0x3c54(_0x1a2371,_0xfd38e0){_0x1a2371=_0x1a2371-0xc8;var _0x33432d=a160_0x3343();var _0x3c5461=_0x33432d[_0x1a2371];return _0x3c5461;}function a160_0x3343(){var _0x3baffc=['1810212dDmzFR','2367xQwUit','2VvHkcN','12285ZJUfNE','350016tzduUD','10968hzrewK','4693850CIXdXm','786kENpqF','777591HIEFEf','20fdwZNu','11yMrRNq','88045EfknaP'];a160_0x3343=function(){return _0x3baffc;};return a160_0x3343();}export{JourneyStateTypeSchema,ReentryModeTypeSchema,WaitUnitTypeSchema,StepTypeValueSchema,EmbeddedSegmentDefSchema,CriteriaDefSchema,StepDefSchema,StageDefSchema,JourneyEntryDefSchema,JourneyDefSchema}from'./journey-schema.js';
1
+ (function(_0x46c743,_0x5a5707){var _0x302014=a160_0x4a4b,_0x4289dc=_0x46c743();while(!![]){try{var _0x2b46ce=parseInt(_0x302014(0x7a))/0x1*(parseInt(_0x302014(0x74))/0x2)+parseInt(_0x302014(0x71))/0x3*(parseInt(_0x302014(0x72))/0x4)+-parseInt(_0x302014(0x7c))/0x5*(parseInt(_0x302014(0x73))/0x6)+parseInt(_0x302014(0x76))/0x7*(-parseInt(_0x302014(0x70))/0x8)+-parseInt(_0x302014(0x79))/0x9+parseInt(_0x302014(0x77))/0xa*(parseInt(_0x302014(0x75))/0xb)+parseInt(_0x302014(0x7b))/0xc*(-parseInt(_0x302014(0x78))/0xd);if(_0x2b46ce===_0x5a5707)break;else _0x4289dc['push'](_0x4289dc['shift']());}catch(_0x493559){_0x4289dc['push'](_0x4289dc['shift']());}}}(a160_0x250d,0x399e8));export{JourneyStateTypeSchema,ReentryModeTypeSchema,WaitUnitTypeSchema,StepTypeValueSchema,EmbeddedSegmentDefSchema,CriteriaDefSchema,StepDefSchema,StageDefSchema,JourneyEntryDefSchema,JourneyDefSchema}from'./journey-schema.js';function a160_0x4a4b(_0x112126,_0x24605){_0x112126=_0x112126-0x70;var _0x250d71=a160_0x250d();var _0x4a4b27=_0x250d71[_0x112126];return _0x4a4b27;}function a160_0x250d(){var _0x1a853c=['489NUMIWU','4898556ISFbTH','25uuOwso','24Sbvkru','27jusUXJ','149012cKZUzf','398742SvDstc','1726Lgsjcs','930985pFyXKJ','191086cIzEXj','50MXTBHQ','13XUkrJR','1098531fwaoaZ'];a160_0x250d=function(){return _0x1a853c;};return a160_0x250d();}
@@ -1 +1 @@
1
- const a161_0x5c0497=a161_0x7ecd;(function(_0x420787,_0x4a08ed){const _0x3be1cb=a161_0x7ecd,_0x1db0b6=_0x420787();while(!![]){try{const _0x212f4e=-parseInt(_0x3be1cb(0x149))/0x1*(parseInt(_0x3be1cb(0x139))/0x2)+parseInt(_0x3be1cb(0x137))/0x3*(-parseInt(_0x3be1cb(0x148))/0x4)+parseInt(_0x3be1cb(0x13d))/0x5*(-parseInt(_0x3be1cb(0x12d))/0x6)+-parseInt(_0x3be1cb(0x14f))/0x7+parseInt(_0x3be1cb(0x131))/0x8*(-parseInt(_0x3be1cb(0x150))/0x9)+parseInt(_0x3be1cb(0x12e))/0xa*(-parseInt(_0x3be1cb(0x134))/0xb)+parseInt(_0x3be1cb(0x129))/0xc*(parseInt(_0x3be1cb(0x138))/0xd);if(_0x212f4e===_0x4a08ed)break;else _0x1db0b6['push'](_0x1db0b6['shift']());}catch(_0x4d3d7d){_0x1db0b6['push'](_0x1db0b6['shift']());}}}(a161_0x5ec5,0xec542));import{z}from'zod';import{RuleDefSchema}from'./segment-schema.js';import{ActivationDefSchema}from'./activation-schema.js';export const JourneyStateTypeSchema=z[a161_0x5c0497(0x13e)]([a161_0x5c0497(0x146),a161_0x5c0497(0x14a),'launched']);export const ReentryModeTypeSchema=z[a161_0x5c0497(0x13e)]([a161_0x5c0497(0x141),'reentry_unless_goal_achieved',a161_0x5c0497(0x14c)]);export const WaitUnitTypeSchema=z[a161_0x5c0497(0x13e)]([a161_0x5c0497(0x128),a161_0x5c0497(0x13f)]);export const StepTypeValueSchema=z[a161_0x5c0497(0x13e)]([a161_0x5c0497(0x140),a161_0x5c0497(0x144),a161_0x5c0497(0x133),a161_0x5c0497(0x127),'merge','jump',a161_0x5c0497(0x12c)]);function a161_0x7ecd(_0x17a39e,_0x2e0ed5){_0x17a39e=_0x17a39e-0x127;const _0x5ec515=a161_0x5ec5();let _0x7ecd9=_0x5ec515[_0x17a39e];return _0x7ecd9;}export const EmbeddedSegmentDefSchema=z[a161_0x5c0497(0x152)]({'description':z['string']()[a161_0x5c0497(0x145)](),'rule':RuleDefSchema});const JumpTargetDefSchema=z[a161_0x5c0497(0x152)]({'journey':z['string'](),'stage':z['string'](),'bundle_id':z['string']()[a161_0x5c0497(0x145)]()});export const CriteriaDefSchema=z[a161_0x5c0497(0x152)]({'name':z['string'](),'description':z[a161_0x5c0497(0x14d)]()['optional'](),'segment':z[a161_0x5c0497(0x14d)](),'target':JumpTargetDefSchema[a161_0x5c0497(0x145)]()});const WaitConditionTimeoutDefSchema=z[a161_0x5c0497(0x152)]({'duration':z['number'](),'unit':WaitUnitTypeSchema,'next':z['string']()[a161_0x5c0497(0x145)]()}),WaitConditionDefSchema=z['object']({'segment':z[a161_0x5c0497(0x14d)](),'next':z[a161_0x5c0497(0x14d)]()['optional'](),'timeout':WaitConditionTimeoutDefSchema['optional']()}),WaitStepParamsDefSchema=z[a161_0x5c0497(0x152)]({'duration':z[a161_0x5c0497(0x132)]()[a161_0x5c0497(0x145)](),'unit':WaitUnitTypeSchema[a161_0x5c0497(0x145)](),'wait_until':z[a161_0x5c0497(0x14d)]()[a161_0x5c0497(0x145)](),'condition':WaitConditionDefSchema[a161_0x5c0497(0x145)](),'days_of_week':z['array'](z['string']())[a161_0x5c0497(0x145)]()}),StepBaseFields={'name':z[a161_0x5c0497(0x14d)](),'uuid':z[a161_0x5c0497(0x14d)]()['optional'](),'next':z[a161_0x5c0497(0x14d)]()[a161_0x5c0497(0x145)]()},WaitStepDefSchema=z[a161_0x5c0497(0x152)]({...StepBaseFields,'type':z[a161_0x5c0497(0x12f)]('wait'),'with':WaitStepParamsDefSchema}),ActivationStepParamsDefSchema=z[a161_0x5c0497(0x152)]({'activation':z[a161_0x5c0497(0x14d)]()}),ActivationStepDefSchema=z[a161_0x5c0497(0x152)]({...StepBaseFields,'type':z[a161_0x5c0497(0x12f)]('activation'),'with':ActivationStepParamsDefSchema}),DecisionBranchDefSchema=z[a161_0x5c0497(0x152)]({'name':z[a161_0x5c0497(0x14d)](),'segment':z[a161_0x5c0497(0x14d)]()[a161_0x5c0497(0x145)](),'segment_id':z['string']()[a161_0x5c0497(0x145)](),'excluded':z[a161_0x5c0497(0x13a)]()[a161_0x5c0497(0x145)](),'next':z[a161_0x5c0497(0x14d)]()[a161_0x5c0497(0x145)]()}),DecisionPointStepParamsDefSchema=z[a161_0x5c0497(0x152)]({'branches':z[a161_0x5c0497(0x13b)](DecisionBranchDefSchema)}),DecisionPointStepDefSchema=z['object']({...StepBaseFields,'type':z[a161_0x5c0497(0x12f)](a161_0x5c0497(0x133)),'with':DecisionPointStepParamsDefSchema}),AbTestVariantDefSchema=z[a161_0x5c0497(0x152)]({'id':z[a161_0x5c0497(0x14d)]()[a161_0x5c0497(0x145)](),'name':z[a161_0x5c0497(0x14d)](),'percentage':z[a161_0x5c0497(0x132)](),'next':z[a161_0x5c0497(0x14d)]()[a161_0x5c0497(0x145)]()}),AbTestStepParamsDefSchema=z[a161_0x5c0497(0x152)]({'variants':z[a161_0x5c0497(0x13b)](AbTestVariantDefSchema),'unique_id':z['string']()[a161_0x5c0497(0x145)](),'customized_split':z[a161_0x5c0497(0x13a)]()[a161_0x5c0497(0x145)]()}),AbTestStepDefSchema=z[a161_0x5c0497(0x152)]({...StepBaseFields,'type':z['literal'](a161_0x5c0497(0x127)),'with':AbTestStepParamsDefSchema}),MergeStepDefSchema=z[a161_0x5c0497(0x152)]({...StepBaseFields,'type':z[a161_0x5c0497(0x12f)]('merge')}),JumpStepParamsDefSchema=z[a161_0x5c0497(0x152)]({'target':JumpTargetDefSchema}),JumpStepDefSchema=z[a161_0x5c0497(0x152)]({...StepBaseFields,'type':z[a161_0x5c0497(0x12f)](a161_0x5c0497(0x13c)),'with':JumpStepParamsDefSchema}),EndStepDefSchema=z['object']({...StepBaseFields,'type':z['literal'](a161_0x5c0497(0x12c))})['passthrough']();export const StepDefSchema=z[a161_0x5c0497(0x12a)](a161_0x5c0497(0x135),[WaitStepDefSchema,ActivationStepDefSchema,DecisionPointStepDefSchema,AbTestStepDefSchema,MergeStepDefSchema,JumpStepDefSchema,EndStepDefSchema]);export const StageDefSchema=z[a161_0x5c0497(0x152)]({'name':z['string'](),'description':z[a161_0x5c0497(0x14d)]()[a161_0x5c0497(0x145)](),'id':z[a161_0x5c0497(0x14d)]()[a161_0x5c0497(0x145)](),'entry_criteria':CriteriaDefSchema[a161_0x5c0497(0x145)](),'exit_criteria':z[a161_0x5c0497(0x13b)](CriteriaDefSchema)[a161_0x5c0497(0x145)](),'milestone':CriteriaDefSchema[a161_0x5c0497(0x145)](),'root_step':z[a161_0x5c0497(0x14d)]()[a161_0x5c0497(0x145)](),'steps':z['array'](StepDefSchema)[a161_0x5c0497(0x145)]()});export const JourneyEntryDefSchema=z['object']({'name':z[a161_0x5c0497(0x14d)]()['optional'](),'version':z[a161_0x5c0497(0x14d)]()[a161_0x5c0497(0x145)](),'state':JourneyStateTypeSchema[a161_0x5c0497(0x145)](),'latest':z[a161_0x5c0497(0x13a)]()[a161_0x5c0497(0x145)](),'stages':z[a161_0x5c0497(0x13b)](StageDefSchema),'id':z['string']()[a161_0x5c0497(0x145)](),'version_number':z[a161_0x5c0497(0x132)]()['optional'](),'goal':CriteriaDefSchema[a161_0x5c0497(0x145)](),'reentry':ReentryModeTypeSchema[a161_0x5c0497(0x145)]()});function a161_0x5ec5(){const _0x15b7aa=['refine','3mxUWQt','13avUMbg','76210vPRkFM','boolean','array','jump','3239465oxDoyj','enum','week','wait','no_reentry','length','versions','activation','optional','draft','record','954428cynTus','50yZvCOm','simulation','filter','reentry_always','string','Journey\x20must\x20have\x20exactly\x20one\x20of:\x20journeys,\x20stages,\x20or\x20versions','6115011yKyRJM','117CElsrj','journey','object','ab_test','day','74442948oDVahM','discriminatedUnion','Journey\x20name\x20is\x20required','end','6nImCCp','6349430RWwHQT','literal','isArray','575576YLNpNm','number','decision_point','11ziKvVu','type'];a161_0x5ec5=function(){return _0x15b7aa;};return a161_0x5ec5();}export const JourneyDefSchema=z['lazy'](()=>z[a161_0x5c0497(0x152)]({'type':z['literal'](a161_0x5c0497(0x151)),'name':z[a161_0x5c0497(0x14d)]()['min'](0x1,a161_0x5c0497(0x12b)),'description':z[a161_0x5c0497(0x14d)]()[a161_0x5c0497(0x145)](),'bundle_id':z[a161_0x5c0497(0x14d)]()['optional'](),'bundle_name':z['string']()[a161_0x5c0497(0x145)](),'folder_id':z[a161_0x5c0497(0x14d)]()[a161_0x5c0497(0x145)](),'reentry':ReentryModeTypeSchema['optional'](),'allow_reentry':z[a161_0x5c0497(0x13a)]()[a161_0x5c0497(0x145)](),'goal':CriteriaDefSchema[a161_0x5c0497(0x145)](),'id':z[a161_0x5c0497(0x14d)]()[a161_0x5c0497(0x145)](),'version':z[a161_0x5c0497(0x14d)]()[a161_0x5c0497(0x145)](),'version_number':z['number']()['optional'](),'stages':z[a161_0x5c0497(0x13b)](StageDefSchema)[a161_0x5c0497(0x145)](),'versions':z['array'](JourneyEntryDefSchema)[a161_0x5c0497(0x145)](),'journeys':z[a161_0x5c0497(0x13b)](JourneyEntryDefSchema)['optional'](),'segments':z[a161_0x5c0497(0x147)](z[a161_0x5c0497(0x14d)](),EmbeddedSegmentDefSchema)[a161_0x5c0497(0x145)](),'activations':z[a161_0x5c0497(0x147)](z[a161_0x5c0497(0x14d)](),ActivationDefSchema)[a161_0x5c0497(0x145)]()})[a161_0x5c0497(0x136)](_0x253610=>{const _0x49423b=a161_0x5c0497,_0x2974fc=[_0x253610['journeys'],_0x253610['stages'],_0x253610[_0x49423b(0x143)]][_0x49423b(0x14b)](_0x1eed8a=>Array[_0x49423b(0x130)](_0x1eed8a)&&_0x1eed8a[_0x49423b(0x142)]>0x0)[_0x49423b(0x142)];return _0x2974fc===0x1;},{'message':a161_0x5c0497(0x14e)}));const _syncCheck1=!![],_syncCheck2=!![];void _syncCheck1,void _syncCheck2;
1
+ const a161_0x3f2610=a161_0x1142;(function(_0x5a832b,_0x5b7fb1){const _0x3f5021=a161_0x1142,_0x16960c=_0x5a832b();while(!![]){try{const _0x52162d=-parseInt(_0x3f5021(0x184))/0x1*(-parseInt(_0x3f5021(0x19f))/0x2)+-parseInt(_0x3f5021(0x183))/0x3+-parseInt(_0x3f5021(0x182))/0x4+-parseInt(_0x3f5021(0x18e))/0x5*(parseInt(_0x3f5021(0x198))/0x6)+-parseInt(_0x3f5021(0x185))/0x7*(parseInt(_0x3f5021(0x1a4))/0x8)+-parseInt(_0x3f5021(0x187))/0x9+parseInt(_0x3f5021(0x19d))/0xa*(parseInt(_0x3f5021(0x17e))/0xb);if(_0x52162d===_0x5b7fb1)break;else _0x16960c['push'](_0x16960c['shift']());}catch(_0x329cf2){_0x16960c['push'](_0x16960c['shift']());}}}(a161_0x2cca,0xa9b0f));import{z}from'zod';import{RuleDefSchema}from'./segment-schema.js';import{ActivationDefSchema}from'./activation-schema.js';function a161_0x2cca(){const _0x58498c=['end','isArray','type','enum','stages','56573308KimHzs','launched','activation','lazy','1121216RLskUZ','3507636wSsCnf','1MoJjAG','4494077QnOpdi','discriminatedUnion','12310029PDPySi','journey','no_reentry','min','day','Journey\x20name\x20is\x20required','object','58475GaGXNt','length','week','literal','record','draft','number','array','reentry_unless_goal_achieved','Journey\x20must\x20have\x20exactly\x20one\x20of:\x20journeys,\x20stages,\x20or\x20versions','642doZDxB','jump','versions','boolean','string','10NilCWp','journeys','1809422qqPZMs','simulation','optional','refine','ab_test','16TukDmz','merge','filter'];a161_0x2cca=function(){return _0x58498c;};return a161_0x2cca();}function a161_0x1142(_0x317632,_0x4de47c){_0x317632=_0x317632-0x17c;const _0x2cca60=a161_0x2cca();let _0x11428c=_0x2cca60[_0x317632];return _0x11428c;}export const JourneyStateTypeSchema=z[a161_0x3f2610(0x17c)]([a161_0x3f2610(0x193),a161_0x3f2610(0x1a0),a161_0x3f2610(0x17f)]);export const ReentryModeTypeSchema=z[a161_0x3f2610(0x17c)]([a161_0x3f2610(0x189),a161_0x3f2610(0x196),'reentry_always']);export const WaitUnitTypeSchema=z[a161_0x3f2610(0x17c)]([a161_0x3f2610(0x18b),a161_0x3f2610(0x190)]);export const StepTypeValueSchema=z[a161_0x3f2610(0x17c)](['wait',a161_0x3f2610(0x180),'decision_point',a161_0x3f2610(0x1a3),'merge','jump',a161_0x3f2610(0x1a7)]);export const EmbeddedSegmentDefSchema=z[a161_0x3f2610(0x18d)]({'description':z['string']()[a161_0x3f2610(0x1a1)](),'rule':RuleDefSchema});const JumpTargetDefSchema=z[a161_0x3f2610(0x18d)]({'journey':z[a161_0x3f2610(0x19c)](),'stage':z['string'](),'bundle_id':z[a161_0x3f2610(0x19c)]()[a161_0x3f2610(0x1a1)]()});export const CriteriaDefSchema=z[a161_0x3f2610(0x18d)]({'name':z[a161_0x3f2610(0x19c)](),'description':z[a161_0x3f2610(0x19c)]()[a161_0x3f2610(0x1a1)](),'segment':z[a161_0x3f2610(0x19c)](),'target':JumpTargetDefSchema[a161_0x3f2610(0x1a1)]()});const WaitConditionTimeoutDefSchema=z[a161_0x3f2610(0x18d)]({'duration':z['number'](),'unit':WaitUnitTypeSchema,'next':z[a161_0x3f2610(0x19c)]()['optional']()}),WaitConditionDefSchema=z[a161_0x3f2610(0x18d)]({'segment':z['string'](),'next':z['string']()[a161_0x3f2610(0x1a1)](),'timeout':WaitConditionTimeoutDefSchema[a161_0x3f2610(0x1a1)]()}),WaitStepParamsDefSchema=z[a161_0x3f2610(0x18d)]({'duration':z[a161_0x3f2610(0x194)]()[a161_0x3f2610(0x1a1)](),'unit':WaitUnitTypeSchema[a161_0x3f2610(0x1a1)](),'wait_until':z[a161_0x3f2610(0x19c)]()[a161_0x3f2610(0x1a1)](),'condition':WaitConditionDefSchema[a161_0x3f2610(0x1a1)](),'days_of_week':z[a161_0x3f2610(0x195)](z['string']())['optional']()}),StepBaseFields={'name':z[a161_0x3f2610(0x19c)](),'uuid':z[a161_0x3f2610(0x19c)]()['optional'](),'next':z[a161_0x3f2610(0x19c)]()[a161_0x3f2610(0x1a1)]()},WaitStepDefSchema=z['object']({...StepBaseFields,'type':z[a161_0x3f2610(0x191)]('wait'),'with':WaitStepParamsDefSchema}),ActivationStepParamsDefSchema=z[a161_0x3f2610(0x18d)]({'activation':z['string']()}),ActivationStepDefSchema=z['object']({...StepBaseFields,'type':z['literal'](a161_0x3f2610(0x180)),'with':ActivationStepParamsDefSchema}),DecisionBranchDefSchema=z[a161_0x3f2610(0x18d)]({'name':z[a161_0x3f2610(0x19c)](),'segment':z['string']()[a161_0x3f2610(0x1a1)](),'segment_id':z[a161_0x3f2610(0x19c)]()[a161_0x3f2610(0x1a1)](),'excluded':z[a161_0x3f2610(0x19b)]()[a161_0x3f2610(0x1a1)](),'next':z[a161_0x3f2610(0x19c)]()[a161_0x3f2610(0x1a1)]()}),DecisionPointStepParamsDefSchema=z[a161_0x3f2610(0x18d)]({'branches':z[a161_0x3f2610(0x195)](DecisionBranchDefSchema)}),DecisionPointStepDefSchema=z['object']({...StepBaseFields,'type':z[a161_0x3f2610(0x191)]('decision_point'),'with':DecisionPointStepParamsDefSchema}),AbTestVariantDefSchema=z[a161_0x3f2610(0x18d)]({'id':z[a161_0x3f2610(0x19c)]()[a161_0x3f2610(0x1a1)](),'name':z[a161_0x3f2610(0x19c)](),'percentage':z[a161_0x3f2610(0x194)](),'next':z[a161_0x3f2610(0x19c)]()[a161_0x3f2610(0x1a1)]()}),AbTestStepParamsDefSchema=z[a161_0x3f2610(0x18d)]({'variants':z[a161_0x3f2610(0x195)](AbTestVariantDefSchema),'unique_id':z[a161_0x3f2610(0x19c)]()[a161_0x3f2610(0x1a1)](),'customized_split':z[a161_0x3f2610(0x19b)]()[a161_0x3f2610(0x1a1)]()}),AbTestStepDefSchema=z['object']({...StepBaseFields,'type':z[a161_0x3f2610(0x191)]('ab_test'),'with':AbTestStepParamsDefSchema}),MergeStepDefSchema=z[a161_0x3f2610(0x18d)]({...StepBaseFields,'type':z['literal'](a161_0x3f2610(0x1a5))}),JumpStepParamsDefSchema=z[a161_0x3f2610(0x18d)]({'target':JumpTargetDefSchema}),JumpStepDefSchema=z[a161_0x3f2610(0x18d)]({...StepBaseFields,'type':z[a161_0x3f2610(0x191)](a161_0x3f2610(0x199)),'with':JumpStepParamsDefSchema}),EndStepDefSchema=z['object']({...StepBaseFields,'type':z[a161_0x3f2610(0x191)](a161_0x3f2610(0x1a7))})['passthrough']();export const StepDefSchema=z[a161_0x3f2610(0x186)](a161_0x3f2610(0x1a9),[WaitStepDefSchema,ActivationStepDefSchema,DecisionPointStepDefSchema,AbTestStepDefSchema,MergeStepDefSchema,JumpStepDefSchema,EndStepDefSchema]);export const StageDefSchema=z['object']({'name':z[a161_0x3f2610(0x19c)](),'description':z[a161_0x3f2610(0x19c)]()[a161_0x3f2610(0x1a1)](),'id':z['string']()[a161_0x3f2610(0x1a1)](),'entry_criteria':CriteriaDefSchema[a161_0x3f2610(0x1a1)](),'exit_criteria':z[a161_0x3f2610(0x195)](CriteriaDefSchema)[a161_0x3f2610(0x1a1)](),'milestone':CriteriaDefSchema[a161_0x3f2610(0x1a1)](),'root_step':z[a161_0x3f2610(0x19c)]()[a161_0x3f2610(0x1a1)](),'steps':z[a161_0x3f2610(0x195)](StepDefSchema)[a161_0x3f2610(0x1a1)]()});export const JourneyEntryDefSchema=z[a161_0x3f2610(0x18d)]({'name':z[a161_0x3f2610(0x19c)]()[a161_0x3f2610(0x1a1)](),'version':z['string']()['optional'](),'state':JourneyStateTypeSchema[a161_0x3f2610(0x1a1)](),'latest':z[a161_0x3f2610(0x19b)]()['optional'](),'stages':z[a161_0x3f2610(0x195)](StageDefSchema),'id':z[a161_0x3f2610(0x19c)]()[a161_0x3f2610(0x1a1)](),'version_number':z['number']()['optional'](),'goal':CriteriaDefSchema['optional'](),'reentry':ReentryModeTypeSchema[a161_0x3f2610(0x1a1)]()});export const JourneyDefSchema=z[a161_0x3f2610(0x181)](()=>z[a161_0x3f2610(0x18d)]({'type':z['literal'](a161_0x3f2610(0x188)),'name':z[a161_0x3f2610(0x19c)]()[a161_0x3f2610(0x18a)](0x1,a161_0x3f2610(0x18c)),'description':z['string']()[a161_0x3f2610(0x1a1)](),'bundle_id':z[a161_0x3f2610(0x19c)]()[a161_0x3f2610(0x1a1)](),'bundle_name':z[a161_0x3f2610(0x19c)]()['optional'](),'folder_id':z['string']()[a161_0x3f2610(0x1a1)](),'reentry':ReentryModeTypeSchema[a161_0x3f2610(0x1a1)](),'allow_reentry':z[a161_0x3f2610(0x19b)]()['optional'](),'goal':CriteriaDefSchema[a161_0x3f2610(0x1a1)](),'id':z[a161_0x3f2610(0x19c)]()[a161_0x3f2610(0x1a1)](),'version':z[a161_0x3f2610(0x19c)]()[a161_0x3f2610(0x1a1)](),'version_number':z['number']()[a161_0x3f2610(0x1a1)](),'stages':z['array'](StageDefSchema)[a161_0x3f2610(0x1a1)](),'versions':z['array'](JourneyEntryDefSchema)[a161_0x3f2610(0x1a1)](),'journeys':z[a161_0x3f2610(0x195)](JourneyEntryDefSchema)['optional'](),'segments':z['record'](z[a161_0x3f2610(0x19c)](),EmbeddedSegmentDefSchema)[a161_0x3f2610(0x1a1)](),'activations':z[a161_0x3f2610(0x192)](z[a161_0x3f2610(0x19c)](),ActivationDefSchema)[a161_0x3f2610(0x1a1)]()})[a161_0x3f2610(0x1a2)](_0x5c232d=>{const _0x5c794e=a161_0x3f2610,_0x2ae4b6=[_0x5c232d[_0x5c794e(0x19e)],_0x5c232d[_0x5c794e(0x17d)],_0x5c232d[_0x5c794e(0x19a)]][_0x5c794e(0x1a6)](_0x56609b=>Array[_0x5c794e(0x1a8)](_0x56609b)&&_0x56609b[_0x5c794e(0x18f)]>0x0)[_0x5c794e(0x18f)];return _0x2ae4b6===0x1;},{'message':a161_0x3f2610(0x197)}));const _syncCheck1=!![],_syncCheck2=!![];void _syncCheck1,void _syncCheck2;
@@ -1 +1 @@
1
- (function(_0x38f73c,_0x55f6d1){var _0x1da4d5=a163_0x3859,_0x37ab0a=_0x38f73c();while(!![]){try{var _0xf4aa20=parseInt(_0x1da4d5(0x1e4))/0x1+parseInt(_0x1da4d5(0x1e6))/0x2*(parseInt(_0x1da4d5(0x1ee))/0x3)+parseInt(_0x1da4d5(0x1e9))/0x4*(-parseInt(_0x1da4d5(0x1ec))/0x5)+parseInt(_0x1da4d5(0x1e7))/0x6*(-parseInt(_0x1da4d5(0x1eb))/0x7)+-parseInt(_0x1da4d5(0x1ea))/0x8*(parseInt(_0x1da4d5(0x1e8))/0x9)+-parseInt(_0x1da4d5(0x1ed))/0xa+parseInt(_0x1da4d5(0x1e5))/0xb;if(_0xf4aa20===_0x55f6d1)break;else _0x37ab0a['push'](_0x37ab0a['shift']());}catch(_0x278409){_0x37ab0a['push'](_0x37ab0a['shift']());}}}(a163_0x265b,0xd0622));export{OperatorTypeSchema,TimeUnitSchema,AggregationTypeSchema,ArrayMatchingSchema,OperatorDefSchema,AggregationDefSchema,TimeWindowDefSchema,FilterColumnConditionDefSchema,FilterRuleDefSchema,ValueConditionDefSchema,BehaviorConditionDefSchema,ColumnConditionDefSchema,CompositeConditionDefSchema,SegmentRefConditionDefSchema,ConditionDefSchema,RuleDefSchema,SegmentDefSchema}from'./segment-schema.js';function a163_0x3859(_0x4938fe,_0x224069){_0x4938fe=_0x4938fe-0x1e4;var _0x265b0a=a163_0x265b();var _0x385996=_0x265b0a[_0x4938fe];return _0x385996;}export{ScheduleTypeSchema,RepeatUnitSchema,ScheduleDefSchema,NotificationDefSchema,ActivationColumnDefSchema,ActivationBehaviorDefSchema,ActivationDefSchema}from'./activation-schema.js';function a163_0x265b(){var _0x48bc14=['1516UmQEEL','30oPFiCf','3978gOJPUu','584MGlCwB','11968LjNWOD','2041907VbWIGK','39370aQVizD','5595110oYxthy','4398tqvxPr','438059AHJznV','34464133zMoevO'];a163_0x265b=function(){return _0x48bc14;};return a163_0x265b();}
1
+ function a163_0x53ff(){var _0x54f848=['9UhowjD','14jLFvrv','307792IzSXfk','425epxnrQ','1390496RmRRdX','12fiBkLN','348406DmUXAT','4321812mkKuIe','4506410xyMTyB','227059rbOwfF','4896zIYuNI','3nBnxtE'];a163_0x53ff=function(){return _0x54f848;};return a163_0x53ff();}(function(_0x1e06c7,_0x4615e4){var _0xa79410=a163_0x317d,_0x5f3858=_0x1e06c7();while(!![]){try{var _0x4f6e42=-parseInt(_0xa79410(0xc8))/0x1+parseInt(_0xa79410(0xc5))/0x2*(parseInt(_0xa79410(0xca))/0x3)+-parseInt(_0xa79410(0xc1))/0x4+-parseInt(_0xa79410(0xc2))/0x5*(-parseInt(_0xa79410(0xc9))/0x6)+-parseInt(_0xa79410(0xc0))/0x7*(-parseInt(_0xa79410(0xc3))/0x8)+parseInt(_0xa79410(0xcb))/0x9*(-parseInt(_0xa79410(0xc7))/0xa)+-parseInt(_0xa79410(0xc6))/0xb*(-parseInt(_0xa79410(0xc4))/0xc);if(_0x4f6e42===_0x4615e4)break;else _0x5f3858['push'](_0x5f3858['shift']());}catch(_0x391d95){_0x5f3858['push'](_0x5f3858['shift']());}}}(a163_0x53ff,0x38037));export{OperatorTypeSchema,TimeUnitSchema,AggregationTypeSchema,ArrayMatchingSchema,OperatorDefSchema,AggregationDefSchema,TimeWindowDefSchema,FilterColumnConditionDefSchema,FilterRuleDefSchema,ValueConditionDefSchema,BehaviorConditionDefSchema,ColumnConditionDefSchema,CompositeConditionDefSchema,SegmentRefConditionDefSchema,ConditionDefSchema,RuleDefSchema,SegmentDefSchema}from'./segment-schema.js';function a163_0x317d(_0x1f2f6e,_0x278437){_0x1f2f6e=_0x1f2f6e-0xc0;var _0x53ff75=a163_0x53ff();var _0x317dce=_0x53ff75[_0x1f2f6e];return _0x317dce;}export{ScheduleTypeSchema,RepeatUnitSchema,ScheduleDefSchema,NotificationDefSchema,ActivationColumnDefSchema,ActivationBehaviorDefSchema,ActivationDefSchema}from'./activation-schema.js';
@@ -1 +1 @@
1
- const a164_0x1cbce0=a164_0x577b;(function(_0x4038aa,_0x386899){const _0x2e0352=a164_0x577b,_0x41206c=_0x4038aa();while(!![]){try{const _0x382bbe=-parseInt(_0x2e0352(0x19a))/0x1*(parseInt(_0x2e0352(0x1c8))/0x2)+parseInt(_0x2e0352(0x1b1))/0x3*(-parseInt(_0x2e0352(0x1b6))/0x4)+-parseInt(_0x2e0352(0x1b7))/0x5+-parseInt(_0x2e0352(0x1b3))/0x6*(parseInt(_0x2e0352(0x1c0))/0x7)+parseInt(_0x2e0352(0x19c))/0x8*(-parseInt(_0x2e0352(0x1df))/0x9)+-parseInt(_0x2e0352(0x1dd))/0xa+parseInt(_0x2e0352(0x19d))/0xb*(parseInt(_0x2e0352(0x1a5))/0xc);if(_0x382bbe===_0x386899)break;else _0x41206c['push'](_0x41206c['shift']());}catch(_0xaf09b6){_0x41206c['push'](_0x41206c['shift']());}}}(a164_0x1a0b,0xc2c0f));import{z}from'zod';export const OperatorTypeSchema=z[a164_0x1cbce0(0x1c4)]([a164_0x1cbce0(0x1b4),a164_0x1cbce0(0x1aa),'Less',a164_0x1cbce0(0x1d5),a164_0x1cbce0(0x1a9),'In',a164_0x1cbce0(0x1e6),a164_0x1cbce0(0x1d9),'IsNull','TimeWithinPast',a164_0x1cbce0(0x1c1),a164_0x1cbce0(0x1bd),a164_0x1cbce0(0x1a8),a164_0x1cbce0(0x1ab),a164_0x1cbce0(0x1cd)]);export const TimeUnitSchema=z[a164_0x1cbce0(0x1c4)]([a164_0x1cbce0(0x1c9),a164_0x1cbce0(0x1ce),a164_0x1cbce0(0x1cc),'day','week','month',a164_0x1cbce0(0x1e4)]);function a164_0x1a0b(){const _0x93f2a=['hour','TimeRange','minute','Count','any','First','And','literal','TimeWithinPast','GreaterEqual','Behavior','MISSING_BETWEEN_BOUNDS','TimeRange\x20operator\x20requires\x20\x27duration\x27','Regexp','all','MISSING_TIME_UNIT','object','10254070yJtbSh','boolean','82629rmPzql','custom','type','timestamp','duration','year','string','Between','Last','exclude','record','addIssue','1289870AqIHSp','lazy','1016FqnTCV','1532201eBzyex','value','unit','has','operator','Less','funnel_stage','\x27\x20requires\x20a\x20time\x20unit','612rzHXkB','realtime','Average','StartWith','LessEqual','Greater','EndWith','\x27\x20requires\x20a\x20value','superRefine','TimeRange\x20operator\x20requires\x20\x27from\x27','union','Min','12BIpIIE','array','66QUpugV','Equal','include','848260zXXJPI','3292105tGWdrr','number','min','Segment\x20reference\x20must\x20not\x20be\x20empty','Sum','Between\x20operator\x20requires\x20\x27min\x27\x20and/or\x20\x27max\x27\x20values','Contain','Segment\x20name\x20is\x20required','optional','838845GWhtvF','TimeWithinNext','Max','max','enum','discriminatedUnion','Column','Operator\x20\x27','2GkXDTk','second','\x27\x20is\x20only\x20valid\x20for\x20the\x20\x27timestamp\x27\x20column','batch'];a164_0x1a0b=function(){return _0x93f2a;};return a164_0x1a0b();}export const AggregationTypeSchema=z[a164_0x1cbce0(0x1c4)]([a164_0x1cbce0(0x1cf),a164_0x1cbce0(0x1bb),'Average','Min',a164_0x1cbce0(0x1c2),'CountDistinct',a164_0x1cbce0(0x1d1),'Last']);const TemporalValueSchema=z[a164_0x1cbce0(0x1af)]([z['object']({'timestamp':z['string']()}),z[a164_0x1cbce0(0x1dc)]({'last':z[a164_0x1cbce0(0x1af)]([z[a164_0x1cbce0(0x1b8)](),z[a164_0x1cbce0(0x198)](z[a164_0x1cbce0(0x1e5)](),z['number']())]),'unit':z[a164_0x1cbce0(0x1e5)]()})]),OperatorValueSchema=z[a164_0x1cbce0(0x1af)]([z[a164_0x1cbce0(0x1e5)](),z[a164_0x1cbce0(0x1b8)](),z[a164_0x1cbce0(0x1de)](),TemporalValueSchema,z[a164_0x1cbce0(0x1b2)](z['union']([z[a164_0x1cbce0(0x1e5)](),z['number'](),z[a164_0x1cbce0(0x1de)]()]))]),OPERATORS_REQUIRING_VALUE=new Set([a164_0x1cbce0(0x1b4),a164_0x1cbce0(0x1aa),a164_0x1cbce0(0x1d5),a164_0x1cbce0(0x1a2),a164_0x1cbce0(0x1a9),'In',a164_0x1cbce0(0x1bd),a164_0x1cbce0(0x1a8),'EndWith',a164_0x1cbce0(0x1d9),a164_0x1cbce0(0x1d4),a164_0x1cbce0(0x1c1)]),OPERATORS_REQUIRING_UNIT=new Set([a164_0x1cbce0(0x1d4),a164_0x1cbce0(0x1c1)]);export const OperatorDefSchema=z['object']({'type':OperatorTypeSchema,'not':z[a164_0x1cbce0(0x1de)]()[a164_0x1cbce0(0x1bf)](),'value':OperatorValueSchema[a164_0x1cbce0(0x1bf)](),'min':z['union']([z[a164_0x1cbce0(0x1b8)](),z[a164_0x1cbce0(0x1e5)](),TemporalValueSchema])['optional'](),'max':z[a164_0x1cbce0(0x1af)]([z[a164_0x1cbce0(0x1b8)](),z[a164_0x1cbce0(0x1e5)](),TemporalValueSchema])['optional'](),'unit':TimeUnitSchema[a164_0x1cbce0(0x1bf)](),'duration':z[a164_0x1cbce0(0x1dc)]({'day':z[a164_0x1cbce0(0x1b8)]()[a164_0x1cbce0(0x1bf)](),'week':z[a164_0x1cbce0(0x1b8)]()[a164_0x1cbce0(0x1bf)](),'month':z[a164_0x1cbce0(0x1b8)]()[a164_0x1cbce0(0x1bf)](),'year':z[a164_0x1cbce0(0x1b8)]()['optional'](),'hour':z['number']()[a164_0x1cbce0(0x1bf)](),'minute':z['number']()['optional'](),'second':z[a164_0x1cbce0(0x1b8)]()[a164_0x1cbce0(0x1bf)]()})[a164_0x1cbce0(0x1bf)](),'from':z['object']({'last':z[a164_0x1cbce0(0x1af)]([z[a164_0x1cbce0(0x1b8)](),z['string']()]),'unit':TimeUnitSchema})['optional'](),'reverse':z[a164_0x1cbce0(0x1de)]()[a164_0x1cbce0(0x1bf)]()})['superRefine']((_0x24afa6,_0x50c8c2)=>{const _0x134cff=a164_0x1cbce0;OPERATORS_REQUIRING_VALUE[_0x134cff(0x1a0)](_0x24afa6[_0x134cff(0x1e1)])&&(_0x24afa6[_0x134cff(0x19e)]===undefined||_0x24afa6[_0x134cff(0x19e)]===null)&&_0x50c8c2['addIssue']({'code':_0x134cff(0x1e0),'message':_0x134cff(0x1c7)+_0x24afa6[_0x134cff(0x1e1)]+_0x134cff(0x1ac),'path':[_0x134cff(0x19e)]}),_0x24afa6[_0x134cff(0x1e1)]===_0x134cff(0x1e6)&&_0x24afa6[_0x134cff(0x1b9)]===undefined&&_0x24afa6[_0x134cff(0x1c3)]===undefined&&_0x50c8c2[_0x134cff(0x199)]({'code':_0x134cff(0x1e0),'message':_0x134cff(0x1bc),'params':{'validationCode':_0x134cff(0x1d7)}}),OPERATORS_REQUIRING_UNIT[_0x134cff(0x1a0)](_0x24afa6['type'])&&_0x24afa6['value']!==undefined&&!_0x24afa6[_0x134cff(0x19f)]&&_0x50c8c2[_0x134cff(0x199)]({'code':_0x134cff(0x1e0),'message':_0x134cff(0x1c7)+_0x24afa6[_0x134cff(0x1e1)]+_0x134cff(0x1a4),'path':['unit'],'params':{'validationCode':_0x134cff(0x1db)}}),_0x24afa6['type']===_0x134cff(0x1cd)&&(!_0x24afa6[_0x134cff(0x1e3)]&&_0x50c8c2['addIssue']({'code':_0x134cff(0x1e0),'message':_0x134cff(0x1d8),'path':['duration']}),!_0x24afa6['from']&&_0x50c8c2[_0x134cff(0x199)]({'code':_0x134cff(0x1e0),'message':_0x134cff(0x1ae),'path':['from']}));});export const ArrayMatchingSchema=z[a164_0x1cbce0(0x1af)]([z[a164_0x1cbce0(0x1d3)]('any'),z[a164_0x1cbce0(0x1d3)](a164_0x1cbce0(0x1da)),z['object']({'atLeast':z[a164_0x1cbce0(0x1b8)]()}),z[a164_0x1cbce0(0x1dc)]({'atMost':z['number']()}),z[a164_0x1cbce0(0x1dc)]({'exactly':z['number']()})]);export const AggregationDefSchema=z[a164_0x1cbce0(0x1c5)](a164_0x1cbce0(0x1e1),[z[a164_0x1cbce0(0x1dc)]({'type':z['enum']([a164_0x1cbce0(0x1bb),a164_0x1cbce0(0x1b0),a164_0x1cbce0(0x1c2),a164_0x1cbce0(0x1a7)]),'column':z[a164_0x1cbce0(0x1e5)](),'groupingColumns':z[a164_0x1cbce0(0x1b2)](z[a164_0x1cbce0(0x1e5)]())[a164_0x1cbce0(0x1bf)]()}),z[a164_0x1cbce0(0x1dc)]({'type':z['literal'](a164_0x1cbce0(0x1cf)),'groupingColumns':z['array'](z['string']())[a164_0x1cbce0(0x1bf)]()}),z[a164_0x1cbce0(0x1dc)]({'type':z[a164_0x1cbce0(0x1d3)]('CountDistinct'),'columns':z[a164_0x1cbce0(0x1b2)](z[a164_0x1cbce0(0x1e5)]())}),z['object']({'type':z['enum']([a164_0x1cbce0(0x1d1),a164_0x1cbce0(0x1e7)]),'column':z[a164_0x1cbce0(0x1e5)](),'orderColumn':z[a164_0x1cbce0(0x1e5)](),'groupingColumns':z[a164_0x1cbce0(0x1b2)](z[a164_0x1cbce0(0x1e5)]())[a164_0x1cbce0(0x1bf)]()})]);export const TimeWindowDefSchema=z['object']({'duration':z[a164_0x1cbce0(0x1b8)](),'unit':TimeUnitSchema});const TIMESTAMP_OPERATORS=new Set([a164_0x1cbce0(0x1d4),'TimeWithinNext',a164_0x1cbce0(0x1cd)]);export const FilterColumnConditionDefSchema=z[a164_0x1cbce0(0x1dc)]({'type':z[a164_0x1cbce0(0x1d3)](a164_0x1cbce0(0x1c6)),'column':z[a164_0x1cbce0(0x1e5)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema[a164_0x1cbce0(0x1bf)]()})[a164_0x1cbce0(0x1ad)]((_0x2a0b61,_0x3f500c)=>{const _0x5a5905=a164_0x1cbce0,_0x36f0b2=_0x2a0b61[_0x5a5905(0x1a1)][_0x5a5905(0x1e1)];_0x2a0b61['column']===_0x5a5905(0x1e2)?!TIMESTAMP_OPERATORS[_0x5a5905(0x1a0)](_0x36f0b2)&&_0x3f500c[_0x5a5905(0x199)]({'code':_0x5a5905(0x1e0),'message':'Timestamp\x20column\x20only\x20supports\x20TimeWithinPast,\x20TimeWithinNext,\x20or\x20TimeRange\x20operators\x20(got\x20\x27'+_0x36f0b2+'\x27)','path':[_0x5a5905(0x1a1),_0x5a5905(0x1e1)]}):TIMESTAMP_OPERATORS['has'](_0x36f0b2)&&_0x3f500c['addIssue']({'code':_0x5a5905(0x1e0),'message':_0x5a5905(0x1c7)+_0x36f0b2+_0x5a5905(0x1ca),'path':[_0x5a5905(0x1a1),_0x5a5905(0x1e1)]});});export const FilterRuleDefSchema=z[a164_0x1cbce0(0x1dc)]({'type':z[a164_0x1cbce0(0x1d3)](a164_0x1cbce0(0x1d2)),'conditions':z[a164_0x1cbce0(0x1b2)](FilterColumnConditionDefSchema)});export const ValueConditionDefSchema=z[a164_0x1cbce0(0x19b)](()=>z[a164_0x1cbce0(0x1dc)]({'type':z[a164_0x1cbce0(0x1d3)]('Value'),'attribute':z['string'](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema[a164_0x1cbce0(0x1bf)](),'exclude':z[a164_0x1cbce0(0x1de)]()[a164_0x1cbce0(0x1bf)](),'aggregation':AggregationDefSchema[a164_0x1cbce0(0x1bf)](),'source':z[a164_0x1cbce0(0x1e5)]()[a164_0x1cbce0(0x1bf)](),'filter':FilterRuleDefSchema[a164_0x1cbce0(0x1bf)](),'limit':z['number']()[a164_0x1cbce0(0x1bf)]()}));function a164_0x577b(_0x261721,_0x19af00){_0x261721=_0x261721-0x198;const _0x1a0b35=a164_0x1a0b();let _0x577b4e=_0x1a0b35[_0x261721];return _0x577b4e;}export const BehaviorConditionDefSchema=z['lazy'](()=>z[a164_0x1cbce0(0x1dc)]({'type':z[a164_0x1cbce0(0x1d3)](a164_0x1cbce0(0x1d6)),'attribute':z['string'](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema[a164_0x1cbce0(0x1bf)](),'exclude':z[a164_0x1cbce0(0x1de)]()[a164_0x1cbce0(0x1bf)](),'aggregation':AggregationDefSchema[a164_0x1cbce0(0x1bf)](),'source':z[a164_0x1cbce0(0x1e5)]()['optional'](),'filter':FilterRuleDefSchema['optional'](),'timeWindow':TimeWindowDefSchema[a164_0x1cbce0(0x1bf)](),'limit':z[a164_0x1cbce0(0x1b8)]()[a164_0x1cbce0(0x1bf)]()}));export const ColumnConditionDefSchema=z[a164_0x1cbce0(0x1dc)]({'type':z['literal'](a164_0x1cbce0(0x1c6)),'column':z[a164_0x1cbce0(0x1e5)](),'operator':OperatorDefSchema});export const CompositeConditionDefSchema=z[a164_0x1cbce0(0x19b)](()=>z['object']({'type':z[a164_0x1cbce0(0x1c4)]([a164_0x1cbce0(0x1d2),'Or']),'conditions':z[a164_0x1cbce0(0x1b2)](ConditionDefSchema),'description':z[a164_0x1cbce0(0x1e5)]()['optional']()}));export const SegmentRefConditionDefSchema=z['object']({'type':z[a164_0x1cbce0(0x1c4)]([a164_0x1cbce0(0x1b5),a164_0x1cbce0(0x1e8)]),'segment':z[a164_0x1cbce0(0x1e5)]()[a164_0x1cbce0(0x1b9)](0x1,a164_0x1cbce0(0x1ba))});export const ConditionDefSchema=z[a164_0x1cbce0(0x19b)](()=>z[a164_0x1cbce0(0x1af)]([ValueConditionDefSchema,BehaviorConditionDefSchema,ColumnConditionDefSchema,CompositeConditionDefSchema,SegmentRefConditionDefSchema]));export const RuleDefSchema=z[a164_0x1cbce0(0x19b)](()=>z[a164_0x1cbce0(0x1dc)]({'type':z[a164_0x1cbce0(0x1c4)](['And','Or']),'conditions':z[a164_0x1cbce0(0x1b2)](ConditionDefSchema),'description':z[a164_0x1cbce0(0x1e5)]()[a164_0x1cbce0(0x1bf)]()}));export const SegmentDefSchema=z[a164_0x1cbce0(0x1dc)]({'type':z[a164_0x1cbce0(0x1d3)]('segment')['optional'](),'name':z[a164_0x1cbce0(0x1e5)]()[a164_0x1cbce0(0x1b9)](0x1,a164_0x1cbce0(0x1be)),'description':z[a164_0x1cbce0(0x1e5)]()[a164_0x1cbce0(0x1bf)](),'folder':z[a164_0x1cbce0(0x1e5)]()[a164_0x1cbce0(0x1bf)](),'rule':RuleDefSchema[a164_0x1cbce0(0x1bf)](),'kind':z['enum']([a164_0x1cbce0(0x1cb),a164_0x1cbce0(0x1a6),a164_0x1cbce0(0x1a3)])['optional'](),'visible':z['boolean']()[a164_0x1cbce0(0x1bf)](),'activations':z[a164_0x1cbce0(0x1b2)](z[a164_0x1cbce0(0x1d0)]())[a164_0x1cbce0(0x1bf)]()});const _syncCheck1=!![],_syncCheck2=!![];void _syncCheck1,void _syncCheck2;
1
+ const a164_0x5cc079=a164_0x15b3;(function(_0x1fa5b5,_0xc8c298){const _0x207c13=a164_0x15b3,_0x15b2ee=_0x1fa5b5();while(!![]){try{const _0x6bf6e1=-parseInt(_0x207c13(0xd5))/0x1*(-parseInt(_0x207c13(0xf9))/0x2)+-parseInt(_0x207c13(0xec))/0x3*(-parseInt(_0x207c13(0xfd))/0x4)+-parseInt(_0x207c13(0x10e))/0x5+-parseInt(_0x207c13(0xe7))/0x6+parseInt(_0x207c13(0xc2))/0x7+parseInt(_0x207c13(0x104))/0x8*(-parseInt(_0x207c13(0x103))/0x9)+-parseInt(_0x207c13(0xf1))/0xa*(-parseInt(_0x207c13(0xf6))/0xb);if(_0x6bf6e1===_0xc8c298)break;else _0x15b2ee['push'](_0x15b2ee['shift']());}catch(_0x1a5c2f){_0x15b2ee['push'](_0x15b2ee['shift']());}}}(a164_0x2c09,0xd76c7));import{z}from'zod';function a164_0x15b3(_0x3f8851,_0x584686){_0x3f8851=_0x3f8851-0xc2;const _0x2c09f4=a164_0x2c09();let _0x15b35b=_0x2c09f4[_0x3f8851];return _0x15b35b;}export const OperatorTypeSchema=z[a164_0x5cc079(0xc6)](['Equal',a164_0x5cc079(0x105),a164_0x5cc079(0xda),a164_0x5cc079(0xc7),a164_0x5cc079(0xf5),'In',a164_0x5cc079(0xd7),a164_0x5cc079(0x109),'IsNull','TimeWithinPast',a164_0x5cc079(0x106),a164_0x5cc079(0xfb),a164_0x5cc079(0xdf),a164_0x5cc079(0xe1),a164_0x5cc079(0xf8)]);export const TimeUnitSchema=z['enum']([a164_0x5cc079(0xeb),a164_0x5cc079(0xfc),a164_0x5cc079(0xe9),a164_0x5cc079(0xfe),'week','month',a164_0x5cc079(0xcb)]);export const AggregationTypeSchema=z[a164_0x5cc079(0xc6)](['Count',a164_0x5cc079(0xf0),a164_0x5cc079(0xc8),a164_0x5cc079(0xe0),a164_0x5cc079(0xd8),'CountDistinct',a164_0x5cc079(0xd3),a164_0x5cc079(0xe8)]);const TemporalValueSchema=z[a164_0x5cc079(0x10c)]([z['object']({'timestamp':z[a164_0x5cc079(0x101)]()}),z['object']({'last':z[a164_0x5cc079(0x10c)]([z['number'](),z['record'](z['string'](),z[a164_0x5cc079(0x108)]())]),'unit':z['string']()})]),OperatorValueSchema=z[a164_0x5cc079(0x10c)]([z[a164_0x5cc079(0x101)](),z[a164_0x5cc079(0x108)](),z[a164_0x5cc079(0xdb)](),TemporalValueSchema,z[a164_0x5cc079(0x10a)](z['union']([z['string'](),z[a164_0x5cc079(0x108)](),z['boolean']()]))]),OPERATORS_REQUIRING_VALUE=new Set(['Equal',a164_0x5cc079(0x105),a164_0x5cc079(0xc7),a164_0x5cc079(0xda),'LessEqual','In','Contain',a164_0x5cc079(0xdf),'EndWith',a164_0x5cc079(0x109),a164_0x5cc079(0xf3),a164_0x5cc079(0x106)]),OPERATORS_REQUIRING_UNIT=new Set(['TimeWithinPast',a164_0x5cc079(0x106)]);export const OperatorDefSchema=z['object']({'type':OperatorTypeSchema,'not':z[a164_0x5cc079(0xdb)]()[a164_0x5cc079(0xd2)](),'value':OperatorValueSchema['optional'](),'min':z[a164_0x5cc079(0x10c)]([z[a164_0x5cc079(0x108)](),z[a164_0x5cc079(0x101)](),TemporalValueSchema])['optional'](),'max':z[a164_0x5cc079(0x10c)]([z[a164_0x5cc079(0x108)](),z[a164_0x5cc079(0x101)](),TemporalValueSchema])['optional'](),'unit':TimeUnitSchema[a164_0x5cc079(0xd2)](),'duration':z[a164_0x5cc079(0xe6)]({'day':z['number']()[a164_0x5cc079(0xd2)](),'week':z[a164_0x5cc079(0x108)]()[a164_0x5cc079(0xd2)](),'month':z[a164_0x5cc079(0x108)]()[a164_0x5cc079(0xd2)](),'year':z[a164_0x5cc079(0x108)]()[a164_0x5cc079(0xd2)](),'hour':z[a164_0x5cc079(0x108)]()[a164_0x5cc079(0xd2)](),'minute':z[a164_0x5cc079(0x108)]()[a164_0x5cc079(0xd2)](),'second':z['number']()[a164_0x5cc079(0xd2)]()})[a164_0x5cc079(0xd2)](),'from':z[a164_0x5cc079(0xe6)]({'last':z[a164_0x5cc079(0x10c)]([z[a164_0x5cc079(0x108)](),z[a164_0x5cc079(0x101)]()]),'unit':TimeUnitSchema})[a164_0x5cc079(0xd2)](),'reverse':z[a164_0x5cc079(0xdb)]()[a164_0x5cc079(0xd2)]()})['superRefine']((_0x596c81,_0x4408ad)=>{const _0x12dba0=a164_0x5cc079;OPERATORS_REQUIRING_VALUE[_0x12dba0(0xdd)](_0x596c81[_0x12dba0(0xe2)])&&(_0x596c81[_0x12dba0(0xde)]===undefined||_0x596c81[_0x12dba0(0xde)]===null)&&_0x4408ad['addIssue']({'code':_0x12dba0(0xcc),'message':_0x12dba0(0x102)+_0x596c81[_0x12dba0(0xe2)]+_0x12dba0(0x100),'path':['value']}),_0x596c81['type']===_0x12dba0(0xd7)&&_0x596c81[_0x12dba0(0xd1)]===undefined&&_0x596c81[_0x12dba0(0xcd)]===undefined&&_0x4408ad[_0x12dba0(0xf2)]({'code':_0x12dba0(0xcc),'message':_0x12dba0(0xc4),'params':{'validationCode':'MISSING_BETWEEN_BOUNDS'}}),OPERATORS_REQUIRING_UNIT[_0x12dba0(0xdd)](_0x596c81[_0x12dba0(0xe2)])&&_0x596c81[_0x12dba0(0xde)]!==undefined&&!_0x596c81['unit']&&_0x4408ad[_0x12dba0(0xf2)]({'code':_0x12dba0(0xcc),'message':_0x12dba0(0x102)+_0x596c81[_0x12dba0(0xe2)]+_0x12dba0(0xea),'path':[_0x12dba0(0x10b)],'params':{'validationCode':_0x12dba0(0xee)}}),_0x596c81[_0x12dba0(0xe2)]==='TimeRange'&&(!_0x596c81['duration']&&_0x4408ad['addIssue']({'code':_0x12dba0(0xcc),'message':_0x12dba0(0xe3),'path':[_0x12dba0(0x107)]}),!_0x596c81[_0x12dba0(0xf4)]&&_0x4408ad[_0x12dba0(0xf2)]({'code':_0x12dba0(0xcc),'message':'TimeRange\x20operator\x20requires\x20\x27from\x27','path':[_0x12dba0(0xf4)]}));});export const ArrayMatchingSchema=z[a164_0x5cc079(0x10c)]([z[a164_0x5cc079(0xef)](a164_0x5cc079(0xed)),z['literal'](a164_0x5cc079(0xd4)),z[a164_0x5cc079(0xe6)]({'atLeast':z[a164_0x5cc079(0x108)]()}),z['object']({'atMost':z[a164_0x5cc079(0x108)]()}),z[a164_0x5cc079(0xe6)]({'exactly':z[a164_0x5cc079(0x108)]()})]);export const AggregationDefSchema=z[a164_0x5cc079(0xc3)]('type',[z[a164_0x5cc079(0xe6)]({'type':z['enum']([a164_0x5cc079(0xf0),a164_0x5cc079(0xe0),a164_0x5cc079(0xd8),a164_0x5cc079(0xc8)]),'column':z[a164_0x5cc079(0x101)](),'groupingColumns':z[a164_0x5cc079(0x10a)](z[a164_0x5cc079(0x101)]())[a164_0x5cc079(0xd2)]()}),z[a164_0x5cc079(0xe6)]({'type':z['literal']('Count'),'groupingColumns':z[a164_0x5cc079(0x10a)](z['string']())[a164_0x5cc079(0xd2)]()}),z[a164_0x5cc079(0xe6)]({'type':z[a164_0x5cc079(0xef)](a164_0x5cc079(0xf7)),'columns':z[a164_0x5cc079(0x10a)](z['string']())}),z[a164_0x5cc079(0xe6)]({'type':z[a164_0x5cc079(0xc6)]([a164_0x5cc079(0xd3),a164_0x5cc079(0xe8)]),'column':z[a164_0x5cc079(0x101)](),'orderColumn':z[a164_0x5cc079(0x101)](),'groupingColumns':z['array'](z['string']())[a164_0x5cc079(0xd2)]()})]);function a164_0x2c09(){const _0x101290=['number','Regexp','array','unit','union','lazy','5307620KerNpQ','5268522nKYBje','discriminatedUnion','Between\x20operator\x20requires\x20\x27min\x27\x20and/or\x20\x27max\x27\x20values','operator','enum','GreaterEqual','Average','Column','column','year','custom','max','exclude','batch','Timestamp\x20column\x20only\x20supports\x20TimeWithinPast,\x20TimeWithinNext,\x20or\x20TimeRange\x20operators\x20(got\x20\x27','min','optional','First','all','1eHDWLN','funnel_stage','Between','Max','Behavior','Less','boolean','segment','has','value','StartWith','Min','EndWith','type','TimeRange\x20operator\x20requires\x20\x27duration\x27','\x27\x20is\x20only\x20valid\x20for\x20the\x20\x27timestamp\x27\x20column','realtime','object','9039336SNtRYR','Last','hour','\x27\x20requires\x20a\x20time\x20unit','second','1511778GIJpIK','any','MISSING_TIME_UNIT','literal','Sum','63730pcLJwW','addIssue','TimeWithinPast','from','LessEqual','2497HfQrmS','CountDistinct','TimeRange','2034084zbtQkX','And','Contain','minute','12xhDxnJ','day','Value','\x27\x20requires\x20a\x20value','string','Operator\x20\x27','9mvAppg','10221456iFWIeu','Greater','TimeWithinNext','duration'];a164_0x2c09=function(){return _0x101290;};return a164_0x2c09();}export const TimeWindowDefSchema=z[a164_0x5cc079(0xe6)]({'duration':z[a164_0x5cc079(0x108)](),'unit':TimeUnitSchema});const TIMESTAMP_OPERATORS=new Set([a164_0x5cc079(0xf3),a164_0x5cc079(0x106),a164_0x5cc079(0xf8)]);export const FilterColumnConditionDefSchema=z[a164_0x5cc079(0xe6)]({'type':z['literal'](a164_0x5cc079(0xc9)),'column':z[a164_0x5cc079(0x101)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema[a164_0x5cc079(0xd2)]()})['superRefine']((_0xe90478,_0x1ba525)=>{const _0x388d4d=a164_0x5cc079,_0x32643d=_0xe90478['operator'][_0x388d4d(0xe2)];_0xe90478[_0x388d4d(0xca)]==='timestamp'?!TIMESTAMP_OPERATORS[_0x388d4d(0xdd)](_0x32643d)&&_0x1ba525[_0x388d4d(0xf2)]({'code':_0x388d4d(0xcc),'message':_0x388d4d(0xd0)+_0x32643d+'\x27)','path':['operator',_0x388d4d(0xe2)]}):TIMESTAMP_OPERATORS[_0x388d4d(0xdd)](_0x32643d)&&_0x1ba525[_0x388d4d(0xf2)]({'code':_0x388d4d(0xcc),'message':'Operator\x20\x27'+_0x32643d+_0x388d4d(0xe4),'path':[_0x388d4d(0xc5),_0x388d4d(0xe2)]});});export const FilterRuleDefSchema=z[a164_0x5cc079(0xe6)]({'type':z[a164_0x5cc079(0xef)](a164_0x5cc079(0xfa)),'conditions':z['array'](FilterColumnConditionDefSchema)});export const ValueConditionDefSchema=z[a164_0x5cc079(0x10d)](()=>z['object']({'type':z[a164_0x5cc079(0xef)](a164_0x5cc079(0xff)),'attribute':z[a164_0x5cc079(0x101)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema[a164_0x5cc079(0xd2)](),'exclude':z[a164_0x5cc079(0xdb)]()[a164_0x5cc079(0xd2)](),'aggregation':AggregationDefSchema[a164_0x5cc079(0xd2)](),'source':z[a164_0x5cc079(0x101)]()[a164_0x5cc079(0xd2)](),'filter':FilterRuleDefSchema[a164_0x5cc079(0xd2)](),'limit':z[a164_0x5cc079(0x108)]()[a164_0x5cc079(0xd2)]()}));export const BehaviorConditionDefSchema=z[a164_0x5cc079(0x10d)](()=>z[a164_0x5cc079(0xe6)]({'type':z['literal'](a164_0x5cc079(0xd9)),'attribute':z[a164_0x5cc079(0x101)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema[a164_0x5cc079(0xd2)](),'exclude':z[a164_0x5cc079(0xdb)]()[a164_0x5cc079(0xd2)](),'aggregation':AggregationDefSchema[a164_0x5cc079(0xd2)](),'source':z[a164_0x5cc079(0x101)]()[a164_0x5cc079(0xd2)](),'filter':FilterRuleDefSchema[a164_0x5cc079(0xd2)](),'timeWindow':TimeWindowDefSchema[a164_0x5cc079(0xd2)](),'limit':z['number']()[a164_0x5cc079(0xd2)]()}));export const ColumnConditionDefSchema=z['object']({'type':z[a164_0x5cc079(0xef)](a164_0x5cc079(0xc9)),'column':z[a164_0x5cc079(0x101)](),'operator':OperatorDefSchema});export const CompositeConditionDefSchema=z[a164_0x5cc079(0x10d)](()=>z[a164_0x5cc079(0xe6)]({'type':z['enum']([a164_0x5cc079(0xfa),'Or']),'conditions':z[a164_0x5cc079(0x10a)](ConditionDefSchema),'description':z[a164_0x5cc079(0x101)]()['optional']()}));export const SegmentRefConditionDefSchema=z['object']({'type':z[a164_0x5cc079(0xc6)](['include',a164_0x5cc079(0xce)]),'segment':z[a164_0x5cc079(0x101)]()['min'](0x1,'Segment\x20reference\x20must\x20not\x20be\x20empty')});export const ConditionDefSchema=z[a164_0x5cc079(0x10d)](()=>z['union']([ValueConditionDefSchema,BehaviorConditionDefSchema,ColumnConditionDefSchema,CompositeConditionDefSchema,SegmentRefConditionDefSchema]));export const RuleDefSchema=z[a164_0x5cc079(0x10d)](()=>z['object']({'type':z['enum']([a164_0x5cc079(0xfa),'Or']),'conditions':z[a164_0x5cc079(0x10a)](ConditionDefSchema),'description':z[a164_0x5cc079(0x101)]()[a164_0x5cc079(0xd2)]()}));export const SegmentDefSchema=z[a164_0x5cc079(0xe6)]({'type':z[a164_0x5cc079(0xef)](a164_0x5cc079(0xdc))[a164_0x5cc079(0xd2)](),'name':z[a164_0x5cc079(0x101)]()[a164_0x5cc079(0xd1)](0x1,'Segment\x20name\x20is\x20required'),'description':z[a164_0x5cc079(0x101)]()[a164_0x5cc079(0xd2)](),'folder':z[a164_0x5cc079(0x101)]()['optional'](),'rule':RuleDefSchema[a164_0x5cc079(0xd2)](),'kind':z['enum']([a164_0x5cc079(0xcf),a164_0x5cc079(0xe5),a164_0x5cc079(0xd6)])[a164_0x5cc079(0xd2)](),'visible':z[a164_0x5cc079(0xdb)]()[a164_0x5cc079(0xd2)](),'activations':z['array'](z['any']())[a164_0x5cc079(0xd2)]()});const _syncCheck1=!![],_syncCheck2=!![];void _syncCheck1,void _syncCheck2;
@@ -1 +1 @@
1
- const a165_0x1b7b78=a165_0x145d;(function(_0x22d03f,_0x17374f){const _0x2ab52c=a165_0x145d,_0x42c12f=_0x22d03f();while(!![]){try{const _0x3c3ff6=parseInt(_0x2ab52c(0x172))/0x1*(parseInt(_0x2ab52c(0x17c))/0x2)+parseInt(_0x2ab52c(0x168))/0x3+parseInt(_0x2ab52c(0x16b))/0x4+-parseInt(_0x2ab52c(0x16d))/0x5+-parseInt(_0x2ab52c(0x165))/0x6*(parseInt(_0x2ab52c(0x17e))/0x7)+-parseInt(_0x2ab52c(0x16c))/0x8+-parseInt(_0x2ab52c(0x16a))/0x9*(parseInt(_0x2ab52c(0x17d))/0xa);if(_0x3c3ff6===_0x17374f)break;else _0x42c12f['push'](_0x42c12f['shift']());}catch(_0x4afb96){_0x42c12f['push'](_0x42c12f['shift']());}}}(a165_0x4e13,0xe7a3c));import{readFileSync}from'fs';import*as a165_0x3f8b80 from'path';function a165_0x4e13(){const _0x21ab2f=['push','1014piSJyG','segment','toJSON','1891209hSuFJT','object','128565MDRFYA','4715752VqKTga','3142376DdgzMr','6661535kkaBBg','relative','email','error','skipped','2473sIFGRV','message','length','type','campaign','warnings','campaign_type','filterType','basename','template','1490zppPvl','170DczUGX','30443pORqEb','journey','result','YAML\x20parse\x20error:\x20','utf-8','parseDocument','YAML_PARSE_ERROR'];a165_0x4e13=function(){return _0x21ab2f;};return a165_0x4e13();}import*as a165_0x55146e 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';function a165_0x145d(_0x497df8,_0x2a5b45){_0x497df8=_0x497df8-0x15f;const _0x4e133e=a165_0x4e13();let _0x145d0e=_0x4e133e[_0x497df8];return _0x145d0e;}const VALID_CAMPAIGN_TYPES=new Set([a165_0x1b7b78(0x16f),a165_0x1b7b78(0x164)]);export function isJourneyDef(_0x4359e3){const _0xf5b649=a165_0x1b7b78;return typeof _0x4359e3===_0xf5b649(0x169)&&_0x4359e3!==null&&_0xf5b649(0x175)in _0x4359e3&&_0x4359e3[_0xf5b649(0x175)]==='journey';}export function isCampaignDef(_0x155b89){const _0x28afc8=a165_0x1b7b78;if(typeof _0x155b89!=='object'||_0x155b89===null)return![];const _0x4734d0=_0x155b89,_0x242be3=VALID_CAMPAIGN_TYPES['has'](_0x4734d0[_0x28afc8(0x178)]);if(_0x4734d0['type']==='campaign'&&_0x242be3)return!![];if(_0x242be3&&!_0x4734d0[_0x28afc8(0x175)])return!![];return![];}export function isTemplateDef(_0x2a98e0){const _0x142d6f=a165_0x1b7b78;return typeof _0x2a98e0===_0x142d6f(0x169)&&_0x2a98e0!==null&&_0x142d6f(0x175)in _0x2a98e0&&_0x2a98e0[_0x142d6f(0x175)]==='template';}export function isValidationResult(_0x25ca37){const _0x4ab281=a165_0x1b7b78;return!(_0x4ab281(0x171)in _0x25ca37);}export function createParseErrorResult(_0x32dbb5,_0x2a0051,_0x465048,_0x13da78,_0x1af399=a165_0x1b7b78(0x166)){const _0x5eb152=a165_0x1b7b78;return{'filePath':_0x32dbb5,'relativePath':_0x2a0051,'source':_0x465048,'result':{'valid':![],'errors':[{'level':_0x5eb152(0x170),'path':'','code':_0x5eb152(0x163),'message':_0x13da78}],'warnings':[]},'fileType':_0x1af399};}export function validateYamlFile(_0x17e3cf,_0x4c178d,_0x4e4246={}){const _0x16c160=a165_0x1b7b78,_0x5e9d1c=a165_0x3f8b80[_0x16c160(0x16e)](_0x4c178d,_0x17e3cf)||a165_0x3f8b80[_0x16c160(0x17a)](_0x17e3cf);try{const _0x43880d=readFileSync(_0x17e3cf,_0x16c160(0x161)),_0x3ba6dc=a165_0x55146e[_0x16c160(0x162)](_0x43880d),_0x4a9751=_0x3ba6dc[_0x16c160(0x167)]();if(!_0x4a9751)return createParseErrorResult(_0x17e3cf,_0x5e9d1c,_0x43880d,'Failed\x20to\x20parse\x20YAML\x20file\x20(empty\x20or\x20invalid)');let _0xe859c8;if(isJourneyDef(_0x4a9751))_0xe859c8=_0x16c160(0x17f);else{if(isCampaignDef(_0x4a9751))_0xe859c8=_0x16c160(0x176);else isTemplateDef(_0x4a9751)?_0xe859c8=_0x16c160(0x17b):_0xe859c8=_0x16c160(0x166);}if(_0x4e4246[_0x16c160(0x179)]&&_0xe859c8!==_0x4e4246[_0x16c160(0x179)])return{'filePath':_0x17e3cf,'relativePath':_0x5e9d1c,'skipped':!![],'reason':'not\x20a\x20'+_0x4e4246[_0x16c160(0x179)]};const _0x3ac6af={'source':_0x43880d,'document':_0x3ba6dc};let _0x22dc4d;if(_0xe859c8==='journey')_0x22dc4d=validateJourneyDef(_0x4a9751,_0x3ac6af);else{if(_0xe859c8===_0x16c160(0x176))_0x22dc4d=validateCampaignDef(_0x4a9751,_0x3ac6af);else _0xe859c8==='template'?_0x22dc4d=validateTemplateDef(_0x4a9751,_0x3ac6af):_0x22dc4d=validateSegmentDef(_0x4a9751,_0x3ac6af);}return{'filePath':_0x17e3cf,'relativePath':_0x5e9d1c,'source':_0x43880d,'result':_0x22dc4d,'fileType':_0xe859c8};}catch(_0x4f0647){const _0x32ff90=_0x4f0647 instanceof Error?_0x4f0647[_0x16c160(0x173)]:String(_0x4f0647);return createParseErrorResult(_0x17e3cf,_0x5e9d1c,'',_0x16c160(0x160)+_0x32ff90);}}export function validateYamlFiles(_0x2c58be,_0x55874b,_0x2168c9={}){return _0x2c58be['map'](_0x3f54d7=>validateYamlFile(_0x3f54d7,_0x55874b,_0x2168c9));}export function calculateSummary(_0x30397a){const _0x4f1cc9=a165_0x1b7b78;let _0x1bc05b=0x0,_0x54c087=0x0,_0x39e4b5=0x0,_0x5e2a82=0x0;for(const _0xae96fe of _0x30397a){if(!isValidationResult(_0xae96fe)){_0x5e2a82++;continue;}_0xae96fe[_0x4f1cc9(0x15f)]['valid']?_0x1bc05b++:_0x54c087++,_0x39e4b5+=_0xae96fe[_0x4f1cc9(0x15f)][_0x4f1cc9(0x177)][_0x4f1cc9(0x174)];}return{'validCount':_0x1bc05b,'invalidCount':_0x54c087,'warningCount':_0x39e4b5,'skippedCount':_0x5e2a82,'hasErrors':_0x54c087>0x0};}
1
+ const a165_0x45c96b=a165_0x59cb;(function(_0x16e547,_0xa74f9a){const _0x1ccfb9=a165_0x59cb,_0x937ddc=_0x16e547();while(!![]){try{const _0x1b6963=-parseInt(_0x1ccfb9(0x12f))/0x1*(-parseInt(_0x1ccfb9(0x124))/0x2)+-parseInt(_0x1ccfb9(0x130))/0x3+-parseInt(_0x1ccfb9(0x127))/0x4+parseInt(_0x1ccfb9(0x120))/0x5+-parseInt(_0x1ccfb9(0x13b))/0x6*(-parseInt(_0x1ccfb9(0x12e))/0x7)+parseInt(_0x1ccfb9(0x12d))/0x8*(parseInt(_0x1ccfb9(0x138))/0x9)+-parseInt(_0x1ccfb9(0x13e))/0xa;if(_0x1b6963===_0xa74f9a)break;else _0x937ddc['push'](_0x937ddc['shift']());}catch(_0x5607da){_0x937ddc['push'](_0x937ddc['shift']());}}}(a165_0x4a13,0xc048c));import{readFileSync}from'fs';import*as a165_0x37ebae from'path';import*as a165_0x4e2a7a from'yaml';function a165_0x4a13(){const _0x52e99=['message','not\x20a\x20','skipped','filterType','valid','object','8071893uSxnFC','Failed\x20to\x20parse\x20YAML\x20file\x20(empty\x20or\x20invalid)','error','133512JCvfTb','YAML\x20parse\x20error:\x20','push','24840250URIoDO','segment','7507115zIdgni','parseDocument','toJSON','type','2918ySgmbi','result','template','584468knnUvK','journey','email','length','campaign','warnings','8KfDPEI','287HEqYmr','845osIpyA','3377247IFCmqU','utf-8'];a165_0x4a13=function(){return _0x52e99;};return a165_0x4a13();}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([a165_0x45c96b(0x129),a165_0x45c96b(0x13d)]);export function isJourneyDef(_0x147bad){const _0x1fcbd8=a165_0x45c96b;return typeof _0x147bad===_0x1fcbd8(0x137)&&_0x147bad!==null&&_0x1fcbd8(0x123)in _0x147bad&&_0x147bad['type']==='journey';}export function isCampaignDef(_0x6c02ec){const _0x4f2d77=a165_0x45c96b;if(typeof _0x6c02ec!==_0x4f2d77(0x137)||_0x6c02ec===null)return![];const _0x32a0ca=_0x6c02ec,_0xf22f26=VALID_CAMPAIGN_TYPES['has'](_0x32a0ca['campaign_type']);if(_0x32a0ca[_0x4f2d77(0x123)]===_0x4f2d77(0x12b)&&_0xf22f26)return!![];if(_0xf22f26&&!_0x32a0ca[_0x4f2d77(0x123)])return!![];return![];}export function isTemplateDef(_0x5025b9){const _0x85bc87=a165_0x45c96b;return typeof _0x5025b9==='object'&&_0x5025b9!==null&&_0x85bc87(0x123)in _0x5025b9&&_0x5025b9['type']==='template';}export function isValidationResult(_0x5c2943){const _0x307bd9=a165_0x45c96b;return!(_0x307bd9(0x134)in _0x5c2943);}export function createParseErrorResult(_0x47f47a,_0x1dd62b,_0x410802,_0x83e5b2,_0x30175b=a165_0x45c96b(0x11f)){const _0x204b36=a165_0x45c96b;return{'filePath':_0x47f47a,'relativePath':_0x1dd62b,'source':_0x410802,'result':{'valid':![],'errors':[{'level':_0x204b36(0x13a),'path':'','code':'YAML_PARSE_ERROR','message':_0x83e5b2}],'warnings':[]},'fileType':_0x30175b};}function a165_0x59cb(_0x33fec9,_0x2646e9){_0x33fec9=_0x33fec9-0x11f;const _0x4a1341=a165_0x4a13();let _0x59cb5c=_0x4a1341[_0x33fec9];return _0x59cb5c;}export function validateYamlFile(_0x31a627,_0xcd4e40,_0x3a234c={}){const _0x410645=a165_0x45c96b,_0x106f80=a165_0x37ebae['relative'](_0xcd4e40,_0x31a627)||a165_0x37ebae['basename'](_0x31a627);try{const _0x503d73=readFileSync(_0x31a627,_0x410645(0x131)),_0x1407db=a165_0x4e2a7a[_0x410645(0x121)](_0x503d73),_0x59082a=_0x1407db[_0x410645(0x122)]();if(!_0x59082a)return createParseErrorResult(_0x31a627,_0x106f80,_0x503d73,_0x410645(0x139));let _0x28ee91;if(isJourneyDef(_0x59082a))_0x28ee91='journey';else{if(isCampaignDef(_0x59082a))_0x28ee91=_0x410645(0x12b);else isTemplateDef(_0x59082a)?_0x28ee91=_0x410645(0x126):_0x28ee91=_0x410645(0x11f);}if(_0x3a234c[_0x410645(0x135)]&&_0x28ee91!==_0x3a234c[_0x410645(0x135)])return{'filePath':_0x31a627,'relativePath':_0x106f80,'skipped':!![],'reason':_0x410645(0x133)+_0x3a234c[_0x410645(0x135)]};const _0x1fb6ca={'source':_0x503d73,'document':_0x1407db};let _0x2741c4;if(_0x28ee91===_0x410645(0x128))_0x2741c4=validateJourneyDef(_0x59082a,_0x1fb6ca);else{if(_0x28ee91===_0x410645(0x12b))_0x2741c4=validateCampaignDef(_0x59082a,_0x1fb6ca);else _0x28ee91===_0x410645(0x126)?_0x2741c4=validateTemplateDef(_0x59082a,_0x1fb6ca):_0x2741c4=validateSegmentDef(_0x59082a,_0x1fb6ca);}return{'filePath':_0x31a627,'relativePath':_0x106f80,'source':_0x503d73,'result':_0x2741c4,'fileType':_0x28ee91};}catch(_0x371662){const _0x48c8f4=_0x371662 instanceof Error?_0x371662[_0x410645(0x132)]:String(_0x371662);return createParseErrorResult(_0x31a627,_0x106f80,'',_0x410645(0x13c)+_0x48c8f4);}}export function validateYamlFiles(_0x20b4c1,_0x54b039,_0x1d8b4f={}){return _0x20b4c1['map'](_0x590bb9=>validateYamlFile(_0x590bb9,_0x54b039,_0x1d8b4f));}export function calculateSummary(_0x3d05d0){const _0x2954b6=a165_0x45c96b;let _0x782d6f=0x0,_0x4ea793=0x0,_0x26fac1=0x0,_0x42de99=0x0;for(const _0x38ca1e of _0x3d05d0){if(!isValidationResult(_0x38ca1e)){_0x42de99++;continue;}_0x38ca1e[_0x2954b6(0x125)][_0x2954b6(0x136)]?_0x782d6f++:_0x4ea793++,_0x26fac1+=_0x38ca1e[_0x2954b6(0x125)][_0x2954b6(0x12c)][_0x2954b6(0x12a)];}return{'validCount':_0x782d6f,'invalidCount':_0x4ea793,'warningCount':_0x26fac1,'skippedCount':_0x42de99,'hasErrors':_0x4ea793>0x0};}
@@ -1 +1 @@
1
- (function(_0x29d734,_0x5a6b8f){const _0x21d784=a166_0x3ec5,_0x3cebef=_0x29d734();while(!![]){try{const _0xf41ba4=-parseInt(_0x21d784(0x112))/0x1+-parseInt(_0x21d784(0xfa))/0x2*(parseInt(_0x21d784(0x101))/0x3)+parseInt(_0x21d784(0xfd))/0x4+-parseInt(_0x21d784(0xf4))/0x5+parseInt(_0x21d784(0xf8))/0x6*(parseInt(_0x21d784(0xf5))/0x7)+parseInt(_0x21d784(0x117))/0x8+parseInt(_0x21d784(0x100))/0x9;if(_0xf41ba4===_0x5a6b8f)break;else _0x3cebef['push'](_0x3cebef['shift']());}catch(_0x183bb6){_0x3cebef['push'](_0x3cebef['shift']());}}}(a166_0x390b,0x7bd23));import*as a166_0x648084 from'yaml';import a166_0x1a388b from'chalk';export{validateSegmentDef,validateRuleDef}from'./segment-validator.js';export function getLocationFromPath(_0x3657e5,_0x16e2f2,_0x40bab4){const _0xa60540=a166_0x3ec5;if(!_0x3657e5||!_0x16e2f2)return undefined;try{let _0x322f12=_0x3657e5['getIn'](_0x40bab4,!![]),_0x3c0952=[..._0x40bab4];while((!_0x322f12||typeof _0x322f12!=='object'||!(_0xa60540(0x116)in _0x322f12)||!_0x322f12['range'])&&_0x3c0952['length']>0x0){_0x3c0952[_0xa60540(0xf6)](),_0x322f12=_0x3c0952[_0xa60540(0x11d)]>0x0?_0x3657e5[_0xa60540(0x109)](_0x3c0952,!![]):_0x3657e5['contents'];}if(!_0x322f12||typeof _0x322f12!==_0xa60540(0x10f)||!('range'in _0x322f12)||!_0x322f12[_0xa60540(0x116)])return undefined;const [_0x4133de]=_0x322f12['range'];return offsetToLocation(_0x16e2f2,_0x4133de);}catch{return undefined;}}export function offsetToLocation(_0x43e0d9,_0x250719){const _0x11f1f7=a166_0x3ec5;let _0x20a4c5=0x1,_0x30c751=0x1;for(let _0x1df104=0x0;_0x1df104<_0x250719&&_0x1df104<_0x43e0d9[_0x11f1f7(0x11d)];_0x1df104++){_0x43e0d9[_0x1df104]==='\x0a'?(_0x20a4c5++,_0x30c751=0x1):_0x30c751++;}return{'line':_0x20a4c5,'column':_0x30c751,'offset':_0x250719};}export function pathToArray(_0x41ff7e){const _0x276150=a166_0x3ec5;if(!_0x41ff7e)return[];return _0x41ff7e[_0x276150(0x11b)]('.')[_0x276150(0x105)](_0x5663a9=>{const _0x51c938=_0x5663a9['match'](/^(\w+)\[(\d+)\]$/);if(_0x51c938)return[_0x51c938[0x1],parseInt(_0x51c938[0x2],0xa)];return[_0x5663a9];});}export function formatZodPath(_0x245bd2){const _0x4870b8=a166_0x3ec5;let _0x1227cf='';for(const _0x145439 of _0x245bd2){if(typeof _0x145439===_0x4870b8(0xfc))_0x1227cf+='['+_0x145439+']';else{const _0x3fb3d1=String(_0x145439);_0x1227cf+=_0x1227cf?'.'+_0x3fb3d1:_0x3fb3d1;}}return _0x1227cf;}function a166_0x3ec5(_0xc80ab5,_0x200e8a){_0xc80ab5=_0xc80ab5-0xf4;const _0x390beb=a166_0x390b();let _0x3ec55c=_0x390beb[_0xc80ab5];return _0x3ec55c;}export function flattenZodIssues(_0x3fbc36){const _0x4f4ec7=a166_0x3ec5,_0xc1262b=[];for(const _0x54d27d of _0x3fbc36){if(_0x54d27d[_0x4f4ec7(0xff)]==='invalid_union'&&'errors'in _0x54d27d){const _0xee5d99=_0x54d27d['errors'];let _0x5bbb6f=_0xee5d99[0x0]||[];for(const _0x3b827 of _0xee5d99){_0x3b827[_0x4f4ec7(0x11d)]<_0x5bbb6f[_0x4f4ec7(0x11d)]&&(_0x5bbb6f=_0x3b827);}const _0xcc7a2=_0x5bbb6f['map'](_0x5e5b32=>({..._0x5e5b32,'path':[..._0x54d27d[_0x4f4ec7(0x115)],..._0x5e5b32[_0x4f4ec7(0x115)]]}));_0xc1262b[_0x4f4ec7(0x113)](...flattenZodIssues(_0xcc7a2));}else _0xc1262b[_0x4f4ec7(0x113)](_0x54d27d);}return _0xc1262b;}export function safeParseYaml(_0x25a371,_0x28c8ab){const _0x4b5035=a166_0x3ec5,_0x4f9027=a166_0x648084['parse'](_0x25a371);if(!_0x4f9027||typeof _0x4f9027!==_0x4b5035(0x10f))throw new Error(_0x4b5035(0x107));const _0x24ec0b=_0x28c8ab['safeParse'](_0x4f9027);if(!_0x24ec0b[_0x4b5035(0x10c)]){const _0x3de59d=_0x24ec0b[_0x4b5035(0x103)][_0x4b5035(0xf7)][0x0],_0x318d50=formatZodPath(_0x3de59d[_0x4b5035(0x115)]);throw new Error(_0x318d50?_0x4b5035(0x104)+_0x318d50+'\x27:\x20'+_0x3de59d['message']:'YAML\x20validation\x20error:\x20'+_0x3de59d[_0x4b5035(0x11c)]);}return _0x24ec0b[_0x4b5035(0xfe)];}function a166_0x390b(){const _0x29488a=['join','object','toString','red','699723KTiehD','push','level','path','range','1284952leslfp','padStart','dim','location','split','message','length','3888910KLTznf','1155VdDxvn','pop','issues','6492ipeMyq','line','26AbfzXJ','min','number','3129192FqpCSZ','data','code','11079225lgGxrC','84876wQoSPY','yellow','error','YAML\x20validation\x20error\x20at\x20\x27','flatMap','\x20|\x20','Invalid\x20YAML:\x20expected\x20an\x20object','column','getIn','errors','cyan','success','warnings'];a166_0x390b=function(){return _0x29488a;};return a166_0x390b();}export function formatIssueWithContext(_0x4ab1b8,_0xae1335,_0x24f230){const _0x432021=a166_0x3ec5,_0x50946c=[],_0x9f8298=_0x4ab1b8['level']===_0x432021(0x103),_0x2993bc=_0x9f8298?a166_0x1a388b[_0x432021(0x111)]:a166_0x1a388b[_0x432021(0x102)],_0x2b2aad=_0x9f8298?a166_0x1a388b[_0x432021(0x111)]:a166_0x1a388b['yellow'],_0x11b955=_0x24f230?a166_0x1a388b[_0x432021(0x10b)](_0x24f230+':'):'';if(_0x4ab1b8[_0x432021(0x11a)]){const _0x34263d=a166_0x1a388b[_0x432021(0x10b)](_0x4ab1b8[_0x432021(0x11a)][_0x432021(0xf9)]+':'+_0x4ab1b8['location'][_0x432021(0x108)]);_0x50946c[_0x432021(0x113)](''+_0x11b955+_0x34263d+':\x20'+_0x2993bc(_0x4ab1b8['level'])+'\x20'+_0x2b2aad('['+_0x4ab1b8[_0x432021(0xff)]+']'));}else _0x50946c[_0x432021(0x113)](''+_0x11b955+a166_0x1a388b['dim'](_0x4ab1b8[_0x432021(0x115)])+':\x20'+_0x2993bc(_0x4ab1b8[_0x432021(0x114)])+'\x20'+_0x2b2aad('['+_0x4ab1b8[_0x432021(0xff)]+']'));_0x50946c[_0x432021(0x113)](_0x4ab1b8[_0x432021(0x11c)]);if(_0x4ab1b8['location']&&_0xae1335){const _0x5333e5=_0xae1335[_0x432021(0x11b)]('\x0a'),{line:_0x4d21d3,column:_0x18095f}=_0x4ab1b8[_0x432021(0x11a)],_0x4e7239=Math['max'](0x1,_0x4d21d3-0x1),_0xc4e7cc=Math[_0x432021(0xfb)](_0x5333e5[_0x432021(0x11d)],_0x4d21d3+0x1);_0x50946c[_0x432021(0x113)]('');for(let _0x25624f=_0x4e7239;_0x25624f<=_0xc4e7cc;_0x25624f++){const _0x565674=_0x5333e5[_0x25624f-0x1]||'',_0x4d24aa=a166_0x1a388b[_0x432021(0x119)](_0x25624f[_0x432021(0x110)]()[_0x432021(0x118)](0x4)),_0x388c04=a166_0x1a388b[_0x432021(0x119)](_0x432021(0x106));if(_0x25624f===_0x4d21d3){_0x50946c[_0x432021(0x113)]('\x20\x20'+_0x4d24aa+_0x388c04+_0x2993bc(_0x565674));const _0x211ce8='\x20'['repeat'](0x4+0x3+_0x18095f-0x1);_0x50946c[_0x432021(0x113)]('\x20\x20'+_0x211ce8+_0x2993bc('^'));}else _0x50946c[_0x432021(0x113)]('\x20\x20'+_0x4d24aa+_0x388c04+a166_0x1a388b[_0x432021(0x119)](_0x565674));}}return _0x50946c[_0x432021(0x10e)]('\x0a');}export function formatValidationResult(_0x1a0052,_0x1a2b0d,_0x21579a){const _0x30fc1a=a166_0x3ec5,_0x1e4a5e=[];for(const _0x3cf498 of _0x1a0052[_0x30fc1a(0x10a)]){_0x1e4a5e[_0x30fc1a(0x113)](formatIssueWithContext(_0x3cf498,_0x1a2b0d,_0x21579a)),_0x1e4a5e[_0x30fc1a(0x113)]('');}for(const _0x394c33 of _0x1a0052[_0x30fc1a(0x10d)]){_0x1e4a5e['push'](formatIssueWithContext(_0x394c33,_0x1a2b0d,_0x21579a)),_0x1e4a5e[_0x30fc1a(0x113)]('');}return _0x1e4a5e[_0x30fc1a(0x10e)]('\x0a');}
1
+ (function(_0x3a4d6e,_0x1f9994){const _0x17017e=a166_0x3390,_0x4a9a3f=_0x3a4d6e();while(!![]){try{const _0xd4e78c=-parseInt(_0x17017e(0x20f))/0x1*(parseInt(_0x17017e(0x214))/0x2)+-parseInt(_0x17017e(0x1f7))/0x3*(parseInt(_0x17017e(0x1f3))/0x4)+parseInt(_0x17017e(0x1ea))/0x5+-parseInt(_0x17017e(0x206))/0x6*(-parseInt(_0x17017e(0x1e8))/0x7)+-parseInt(_0x17017e(0x1ec))/0x8*(parseInt(_0x17017e(0x20c))/0x9)+-parseInt(_0x17017e(0x1ff))/0xa*(-parseInt(_0x17017e(0x207))/0xb)+parseInt(_0x17017e(0x216))/0xc;if(_0xd4e78c===_0x1f9994)break;else _0x4a9a3f['push'](_0x4a9a3f['shift']());}catch(_0x5405d9){_0x4a9a3f['push'](_0x4a9a3f['shift']());}}}(a166_0x1cc9,0x963c7));import*as a166_0x35a4f3 from'yaml';import a166_0x464529 from'chalk';export{validateSegmentDef,validateRuleDef}from'./segment-validator.js';export function getLocationFromPath(_0x88d8b6,_0x58f9a7,_0x47a397){const _0x3d5a21=a166_0x3390;if(!_0x88d8b6||!_0x58f9a7)return undefined;try{let _0x129f83=_0x88d8b6[_0x3d5a21(0x213)](_0x47a397,!![]),_0x13b1ef=[..._0x47a397];while((!_0x129f83||typeof _0x129f83!==_0x3d5a21(0x1f2)||!(_0x3d5a21(0x1fb)in _0x129f83)||!_0x129f83[_0x3d5a21(0x1fb)])&&_0x13b1ef[_0x3d5a21(0x1f1)]>0x0){_0x13b1ef[_0x3d5a21(0x1f9)](),_0x129f83=_0x13b1ef[_0x3d5a21(0x1f1)]>0x0?_0x88d8b6['getIn'](_0x13b1ef,!![]):_0x88d8b6[_0x3d5a21(0x209)];}if(!_0x129f83||typeof _0x129f83!=='object'||!('range'in _0x129f83)||!_0x129f83[_0x3d5a21(0x1fb)])return undefined;const [_0x1e80b1]=_0x129f83[_0x3d5a21(0x1fb)];return offsetToLocation(_0x58f9a7,_0x1e80b1);}catch{return undefined;}}export function offsetToLocation(_0x1503da,_0x2964f2){const _0x17c68c=a166_0x3390;let _0x375f6b=0x1,_0x5ba334=0x1;for(let _0x16a77c=0x0;_0x16a77c<_0x2964f2&&_0x16a77c<_0x1503da[_0x17c68c(0x1f1)];_0x16a77c++){_0x1503da[_0x16a77c]==='\x0a'?(_0x375f6b++,_0x5ba334=0x1):_0x5ba334++;}return{'line':_0x375f6b,'column':_0x5ba334,'offset':_0x2964f2};}export function pathToArray(_0x16947b){if(!_0x16947b)return[];return _0x16947b['split']('.')['flatMap'](_0x4dc5e7=>{const _0x4b53e6=a166_0x3390,_0x3b6b88=_0x4dc5e7[_0x4b53e6(0x215)](/^(\w+)\[(\d+)\]$/);if(_0x3b6b88)return[_0x3b6b88[0x1],parseInt(_0x3b6b88[0x2],0xa)];return[_0x4dc5e7];});}export function formatZodPath(_0x289f10){const _0x4a9dc0=a166_0x3390;let _0x2f2dbb='';for(const _0x1698bb of _0x289f10){if(typeof _0x1698bb===_0x4a9dc0(0x1ef))_0x2f2dbb+='['+_0x1698bb+']';else{const _0x58e254=String(_0x1698bb);_0x2f2dbb+=_0x2f2dbb?'.'+_0x58e254:_0x58e254;}}return _0x2f2dbb;}function a166_0x1cc9(){const _0x3a3ff9=['6120tEFTRE','column','toString','number','yellow','length','object','3269788qSECKV','message','warnings','location','3cPEdgL','Invalid\x20YAML:\x20expected\x20an\x20object','pop','level','range','push','red','data','2288470DVscyb','errors','max','min','split','safeParse','path','6tRlzPi','44fzBmcF','dim','contents','map','padStart','12483oyYkhs','success','\x27:\x20','7949wuYeeK','issues','code','error','getIn','206UfDpKq','match','12138588BiYeDJ','1502277EiXAqU','cyan','5855340SaytQA','line'];a166_0x1cc9=function(){return _0x3a3ff9;};return a166_0x1cc9();}export function flattenZodIssues(_0x17964c){const _0x3f9caf=a166_0x3390,_0x4f7a71=[];for(const _0x4add3c of _0x17964c){if(_0x4add3c[_0x3f9caf(0x211)]==='invalid_union'&&_0x3f9caf(0x200)in _0x4add3c){const _0x14f918=_0x4add3c[_0x3f9caf(0x200)];let _0x3efd59=_0x14f918[0x0]||[];for(const _0x2e90b1 of _0x14f918){_0x2e90b1['length']<_0x3efd59['length']&&(_0x3efd59=_0x2e90b1);}const _0x4dff10=_0x3efd59[_0x3f9caf(0x20a)](_0x28adc6=>({..._0x28adc6,'path':[..._0x4add3c['path'],..._0x28adc6[_0x3f9caf(0x205)]]}));_0x4f7a71[_0x3f9caf(0x1fc)](...flattenZodIssues(_0x4dff10));}else _0x4f7a71[_0x3f9caf(0x1fc)](_0x4add3c);}return _0x4f7a71;}export function safeParseYaml(_0x58abf0,_0x548065){const _0x344642=a166_0x3390,_0x4ba20d=a166_0x35a4f3['parse'](_0x58abf0);if(!_0x4ba20d||typeof _0x4ba20d!==_0x344642(0x1f2))throw new Error(_0x344642(0x1f8));const _0x35b309=_0x548065[_0x344642(0x204)](_0x4ba20d);if(!_0x35b309[_0x344642(0x20d)]){const _0x641788=_0x35b309['error'][_0x344642(0x210)][0x0],_0x2a5a8c=formatZodPath(_0x641788['path']);throw new Error(_0x2a5a8c?'YAML\x20validation\x20error\x20at\x20\x27'+_0x2a5a8c+_0x344642(0x20e)+_0x641788[_0x344642(0x1f4)]:'YAML\x20validation\x20error:\x20'+_0x641788[_0x344642(0x1f4)]);}return _0x35b309[_0x344642(0x1fe)];}export function formatIssueWithContext(_0x54fcbc,_0x2f5048,_0x45063b){const _0x4d8d56=a166_0x3390,_0x4962b8=[],_0x4705e4=_0x54fcbc[_0x4d8d56(0x1fa)]===_0x4d8d56(0x212),_0x5b42bb=_0x4705e4?a166_0x464529[_0x4d8d56(0x1fd)]:a166_0x464529[_0x4d8d56(0x1f0)],_0x29e5cb=_0x4705e4?a166_0x464529[_0x4d8d56(0x1fd)]:a166_0x464529[_0x4d8d56(0x1f0)],_0x3da1db=_0x45063b?a166_0x464529[_0x4d8d56(0x1e9)](_0x45063b+':'):'';if(_0x54fcbc[_0x4d8d56(0x1f6)]){const _0x419761=a166_0x464529[_0x4d8d56(0x1e9)](_0x54fcbc[_0x4d8d56(0x1f6)][_0x4d8d56(0x1eb)]+':'+_0x54fcbc[_0x4d8d56(0x1f6)][_0x4d8d56(0x1ed)]);_0x4962b8[_0x4d8d56(0x1fc)](''+_0x3da1db+_0x419761+':\x20'+_0x5b42bb(_0x54fcbc[_0x4d8d56(0x1fa)])+'\x20'+_0x29e5cb('['+_0x54fcbc[_0x4d8d56(0x211)]+']'));}else _0x4962b8['push'](''+_0x3da1db+a166_0x464529[_0x4d8d56(0x208)](_0x54fcbc[_0x4d8d56(0x205)])+':\x20'+_0x5b42bb(_0x54fcbc[_0x4d8d56(0x1fa)])+'\x20'+_0x29e5cb('['+_0x54fcbc[_0x4d8d56(0x211)]+']'));_0x4962b8[_0x4d8d56(0x1fc)](_0x54fcbc[_0x4d8d56(0x1f4)]);if(_0x54fcbc[_0x4d8d56(0x1f6)]&&_0x2f5048){const _0x419153=_0x2f5048[_0x4d8d56(0x203)]('\x0a'),{line:_0x5f1bc1,column:_0x4dccb4}=_0x54fcbc[_0x4d8d56(0x1f6)],_0x367577=Math[_0x4d8d56(0x201)](0x1,_0x5f1bc1-0x1),_0x5dc278=Math[_0x4d8d56(0x202)](_0x419153[_0x4d8d56(0x1f1)],_0x5f1bc1+0x1);_0x4962b8[_0x4d8d56(0x1fc)]('');for(let _0x1fdc78=_0x367577;_0x1fdc78<=_0x5dc278;_0x1fdc78++){const _0x57ecad=_0x419153[_0x1fdc78-0x1]||'',_0x498f82=a166_0x464529[_0x4d8d56(0x208)](_0x1fdc78[_0x4d8d56(0x1ee)]()[_0x4d8d56(0x20b)](0x4)),_0x2119e3=a166_0x464529[_0x4d8d56(0x208)]('\x20|\x20');if(_0x1fdc78===_0x5f1bc1){_0x4962b8[_0x4d8d56(0x1fc)]('\x20\x20'+_0x498f82+_0x2119e3+_0x5b42bb(_0x57ecad));const _0xcda3b9='\x20'['repeat'](0x4+0x3+_0x4dccb4-0x1);_0x4962b8[_0x4d8d56(0x1fc)]('\x20\x20'+_0xcda3b9+_0x5b42bb('^'));}else _0x4962b8[_0x4d8d56(0x1fc)]('\x20\x20'+_0x498f82+_0x2119e3+a166_0x464529[_0x4d8d56(0x208)](_0x57ecad));}}return _0x4962b8['join']('\x0a');}function a166_0x3390(_0x5ee38a,_0x50cbf1){_0x5ee38a=_0x5ee38a-0x1e8;const _0x1cc97e=a166_0x1cc9();let _0x3390e0=_0x1cc97e[_0x5ee38a];return _0x3390e0;}export function formatValidationResult(_0x2849e9,_0x173bab,_0xf7ed82){const _0x2ee1f3=a166_0x3390,_0x1fa060=[];for(const _0x10c8fb of _0x2849e9[_0x2ee1f3(0x200)]){_0x1fa060[_0x2ee1f3(0x1fc)](formatIssueWithContext(_0x10c8fb,_0x173bab,_0xf7ed82)),_0x1fa060[_0x2ee1f3(0x1fc)]('');}for(const _0x9fcc97 of _0x2849e9[_0x2ee1f3(0x1f5)]){_0x1fa060['push'](formatIssueWithContext(_0x9fcc97,_0x173bab,_0xf7ed82)),_0x1fa060[_0x2ee1f3(0x1fc)]('');}return _0x1fa060['join']('\x0a');}