@treasuredata/tdx 2026.8.0 → 2026.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (252) 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.js +1 -1
  9. package/dist/commands/agent-test-command.js +1 -1
  10. package/dist/commands/api-command.js +1 -1
  11. package/dist/commands/auth-command.d.ts +9 -0
  12. package/dist/commands/auth-command.d.ts.map +1 -1
  13. package/dist/commands/auth-command.js +1 -1
  14. package/dist/commands/auth-command.js.map +1 -1
  15. package/dist/commands/cas-command.js +1 -1
  16. package/dist/commands/cas-segment-command.js +1 -1
  17. package/dist/commands/chat-command.js +1 -1
  18. package/dist/commands/claude-command.d.ts +10 -1
  19. package/dist/commands/claude-command.d.ts.map +1 -1
  20. package/dist/commands/claude-command.js +1 -1
  21. package/dist/commands/claude-command.js.map +1 -1
  22. package/dist/commands/claude-statusline-command.js +1 -1
  23. package/dist/commands/claude-usage-command.js +1 -1
  24. package/dist/commands/command.js +1 -1
  25. package/dist/commands/connection-command.js +1 -1
  26. package/dist/commands/databases.js +1 -1
  27. package/dist/commands/delivery-command.js +1 -1
  28. package/dist/commands/describe.js +1 -1
  29. package/dist/commands/engage-always-on-campaign-pull-command.js +1 -1
  30. package/dist/commands/engage-always-on-campaign-push-command.js +1 -1
  31. package/dist/commands/engage-always-on-campaign-validate-command.js +1 -1
  32. package/dist/commands/engage-campaign-pull-command.js +1 -1
  33. package/dist/commands/engage-campaign-push-command.js +1 -1
  34. package/dist/commands/engage-campaign-validate-command.js +1 -1
  35. package/dist/commands/engage-command.js +1 -1
  36. package/dist/commands/engage-template-pull-command.js +1 -1
  37. package/dist/commands/engage-template-push-command.js +1 -1
  38. package/dist/commands/engage-template-validate-command.js +1 -1
  39. package/dist/commands/job-command.js +1 -1
  40. package/dist/commands/journey-command.js +1 -1
  41. package/dist/commands/journey-validate-command.js +1 -1
  42. package/dist/commands/llm-command.js +1 -1
  43. package/dist/commands/mcp-command.js +1 -1
  44. package/dist/commands/parent-segment-command.js +1 -1
  45. package/dist/commands/policy-command.js +1 -1
  46. package/dist/commands/profile-command.js +1 -1
  47. package/dist/commands/profiles-command.js +1 -1
  48. package/dist/commands/query-command.js +1 -1
  49. package/dist/commands/schedule-command.js +1 -1
  50. package/dist/commands/segment-command.js +1 -1
  51. package/dist/commands/segment-create-command.js +1 -1
  52. package/dist/commands/segment-fields-command.js +1 -1
  53. package/dist/commands/segment-move-command.js +1 -1
  54. package/dist/commands/segment-pull-command.js +1 -1
  55. package/dist/commands/segment-push-command.js +1 -1
  56. package/dist/commands/segment-update-command.js +1 -1
  57. package/dist/commands/segment-use-command.js +1 -1
  58. package/dist/commands/segment-validate-command.js +1 -1
  59. package/dist/commands/segments.js +1 -1
  60. package/dist/commands/show.js +1 -1
  61. package/dist/commands/status-command.js +1 -1
  62. package/dist/commands/table-deleted.js +1 -1
  63. package/dist/commands/tables.js +1 -1
  64. package/dist/commands/unset-command.js +1 -1
  65. package/dist/commands/upgrade-command.js +1 -1
  66. package/dist/commands/use-command.js +1 -1
  67. package/dist/commands/user-command.js +1 -1
  68. package/dist/commands/work-command.js +1 -1
  69. package/dist/commands/workflow-command.js +1 -1
  70. package/dist/core/auth.js +1 -1
  71. package/dist/core/command-output.js +1 -1
  72. package/dist/core/config.js +1 -1
  73. package/dist/core/connection-cache.js +1 -1
  74. package/dist/core/constants.js +1 -1
  75. package/dist/core/credential-cache.js +1 -1
  76. package/dist/core/global-context.js +1 -1
  77. package/dist/core/keychain.js +1 -1
  78. package/dist/core/oauth-keychain.js +1 -1
  79. package/dist/core/oauth.js +1 -1
  80. package/dist/core/profile.js +1 -1
  81. package/dist/core/project-config.js +1 -1
  82. package/dist/core/session.js +1 -1
  83. package/dist/core/site-mismatch.js +1 -1
  84. package/dist/core/user-cache.js +1 -1
  85. package/dist/core/version.js +1 -1
  86. package/dist/index.js +1 -1
  87. package/dist/mcp/server.js +1 -1
  88. package/dist/mcp/tools/index.js +1 -1
  89. package/dist/mcp/tools/tdx-run.js +1 -1
  90. package/dist/mcp/tools/tdx-search.js +1 -1
  91. package/dist/mcp/tools/work-create-item.js +1 -1
  92. package/dist/mcp/utils.js +1 -1
  93. package/dist/proxy/claude-usage-tracker.js +1 -1
  94. package/dist/proxy/passthrough-server.js +1 -1
  95. package/dist/proxy/sse-usage-parser.js +1 -1
  96. package/dist/sdk/agent/agent-config.js +1 -1
  97. package/dist/sdk/agent/agent-ref-parser.js +1 -1
  98. package/dist/sdk/agent/agent-yaml.js +1 -1
  99. package/dist/sdk/agent/test/evaluator.js +1 -1
  100. package/dist/sdk/agent/test/executor.js +1 -1
  101. package/dist/sdk/agent/test/index.js +1 -1
  102. package/dist/sdk/agent/test/output.js +1 -1
  103. package/dist/sdk/agent/test/parser.js +1 -1
  104. package/dist/sdk/agent/tool-target-registry.js +1 -1
  105. package/dist/sdk/api.js +1 -1
  106. package/dist/sdk/auth-token.d.ts +23 -0
  107. package/dist/sdk/auth-token.d.ts.map +1 -0
  108. package/dist/sdk/auth-token.js +1 -0
  109. package/dist/sdk/auth-token.js.map +1 -0
  110. package/dist/sdk/cas/cas-api-client.js +1 -1
  111. package/dist/sdk/cas/cas-audience-schema.js +1 -1
  112. package/dist/sdk/cas/cas-audience-validator.js +1 -1
  113. package/dist/sdk/cas/cas-audience-yaml.js +1 -1
  114. package/dist/sdk/cas/cas-segment-yaml.js +1 -1
  115. package/dist/sdk/cas/index.js +1 -1
  116. package/dist/sdk/cas/pull-workflow.js +1 -1
  117. package/dist/sdk/cas/push-workflow.js +1 -1
  118. package/dist/sdk/cas/validate-files.js +1 -1
  119. package/dist/sdk/client/cdp-api-client.js +1 -1
  120. package/dist/sdk/client/delivery-api-client.js +1 -1
  121. package/dist/sdk/client/endpoints.js +1 -1
  122. package/dist/sdk/client/engage-api-client.js +1 -1
  123. package/dist/sdk/client/http-client.js +1 -1
  124. package/dist/sdk/client/llm-api-client.js +1 -1
  125. package/dist/sdk/client/oauth-refresh.js +1 -1
  126. package/dist/sdk/client/rate-limiter.js +1 -1
  127. package/dist/sdk/client/td-api-client.js +1 -1
  128. package/dist/sdk/client/trino-api-client.js +1 -1
  129. package/dist/sdk/client/workflow-client.js +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/always-on-campaign-pull.js +1 -1
  134. package/dist/sdk/engage/always-on-campaign-push.js +1 -1
  135. package/dist/sdk/engage/always-on-campaign-validator.js +1 -1
  136. package/dist/sdk/engage/always-on-campaign-yaml.js +1 -1
  137. package/dist/sdk/engage/campaign-pull.js +1 -1
  138. package/dist/sdk/engage/campaign-push.js +1 -1
  139. package/dist/sdk/engage/campaign-validator.js +1 -1
  140. package/dist/sdk/engage/campaign-yaml.js +1 -1
  141. package/dist/sdk/engage/template-pull.js +1 -1
  142. package/dist/sdk/engage/template-push.js +1 -1
  143. package/dist/sdk/engage/template-validator.js +1 -1
  144. package/dist/sdk/engage/template-yaml.js +1 -1
  145. package/dist/sdk/engage/types/always-on-campaign-schema.js +1 -1
  146. package/dist/sdk/engage/types/campaign-def.js +1 -1
  147. package/dist/sdk/engage/types/campaign-schema.js +1 -1
  148. package/dist/sdk/engage/types/template-schema.js +1 -1
  149. package/dist/sdk/engage.js +1 -1
  150. package/dist/sdk/errors.js +1 -1
  151. package/dist/sdk/index.js +1 -1
  152. package/dist/sdk/io/index.js +1 -1
  153. package/dist/sdk/io/node-filesystem.js +1 -1
  154. package/dist/sdk/job.js +1 -1
  155. package/dist/sdk/journey.js +1 -1
  156. package/dist/sdk/llm/chat-cache.js +1 -1
  157. package/dist/sdk/llm/index.js +1 -1
  158. package/dist/sdk/llm/llm-backup-utils.js +1 -1
  159. package/dist/sdk/llm/model-factors.js +1 -1
  160. package/dist/sdk/llm/user-settings.js +1 -1
  161. package/dist/sdk/personalization.js +1 -1
  162. package/dist/sdk/policy.js +1 -1
  163. package/dist/sdk/query/deleted-table-validation.js +1 -1
  164. package/dist/sdk/query/index.js +1 -1
  165. package/dist/sdk/query/sql-parser.js +1 -1
  166. package/dist/sdk/realtime.js +1 -1
  167. package/dist/sdk/schedule.js +1 -1
  168. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  169. package/dist/sdk/segment/fields-display.js +1 -1
  170. package/dist/sdk/segment/file-discovery.js +1 -1
  171. package/dist/sdk/segment/journey-utils.js +1 -1
  172. package/dist/sdk/segment/journey-validator.js +1 -1
  173. package/dist/sdk/segment/journey-yaml.js +1 -1
  174. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  175. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  176. package/dist/sdk/segment/pull-workflow.js +1 -1
  177. package/dist/sdk/segment/push-recovery.js +1 -1
  178. package/dist/sdk/segment/push-workflow.js +1 -1
  179. package/dist/sdk/segment/resolution-context.js +1 -1
  180. package/dist/sdk/segment/segment-path-parser.js +1 -1
  181. package/dist/sdk/segment/segment-ref-parser.js +1 -1
  182. package/dist/sdk/segment/segment-validator.js +1 -1
  183. package/dist/sdk/segment/target-resolution.js +1 -1
  184. package/dist/sdk/segment/tdx-config.js +1 -1
  185. package/dist/sdk/segment/types/activation-schema.js +1 -1
  186. package/dist/sdk/segment/types/journey-def.js +1 -1
  187. package/dist/sdk/segment/types/journey-schema.js +1 -1
  188. package/dist/sdk/segment/types/segment-def.js +1 -1
  189. package/dist/sdk/segment/types/segment-schema.js +1 -1
  190. package/dist/sdk/segment/validate-files.js +1 -1
  191. package/dist/sdk/segment/yaml-validator.js +1 -1
  192. package/dist/sdk/segment.js +1 -1
  193. package/dist/sdk/types/index.js +1 -1
  194. package/dist/sdk/types/progress.js +1 -1
  195. package/dist/sdk/types/workspace.js +1 -1
  196. package/dist/sdk/user.js +1 -1
  197. package/dist/sdk/util/format-detector.js +1 -1
  198. package/dist/sdk/util/formatters.js +1 -1
  199. package/dist/sdk/util/index.js +1 -1
  200. package/dist/sdk/util/paginate.js +1 -1
  201. package/dist/sdk/util/tree-formatter.js +1 -1
  202. package/dist/sdk/util/tree-search.js +1 -1
  203. package/dist/sdk/workflow/archive-validation.js +1 -1
  204. package/dist/sdk/workflow/clone-workflow.js +1 -1
  205. package/dist/sdk/workflow/index.js +1 -1
  206. package/dist/sdk/workflow/pull-workflow.js +1 -1
  207. package/dist/sdk/workflow/push-workflow.js +1 -1
  208. package/dist/sdk/workflow/task-graph.js +1 -1
  209. package/dist/sdk/workflow/tdx-config.js +1 -1
  210. package/dist/sdk/workflow/workflow-utils.js +1 -1
  211. package/dist/sdk/workspace/access-tracker.js +1 -1
  212. package/dist/sdk/workspace/frontmatter.js +1 -1
  213. package/dist/sdk/workspace/git.js +1 -1
  214. package/dist/sdk/workspace/index.js +1 -1
  215. package/dist/sdk/workspace/templates.js +1 -1
  216. package/dist/sdk/workspace/weekly.js +1 -1
  217. package/dist/sdk/workspace/wikilinks.js +1 -1
  218. package/dist/test-utils/command-runner.js +1 -1
  219. package/dist/test-utils/factories.js +1 -1
  220. package/dist/test-utils/fixtures.js +1 -1
  221. package/dist/test-utils/http-mock.js +1 -1
  222. package/dist/test-utils/index.js +1 -1
  223. package/dist/utils/async.js +1 -1
  224. package/dist/utils/claude-code-state.js +1 -1
  225. package/dist/utils/colors.js +1 -1
  226. package/dist/utils/diff.js +1 -1
  227. package/dist/utils/file-permissions.js +1 -1
  228. package/dist/utils/file-reader.js +1 -1
  229. package/dist/utils/github-releases.js +1 -1
  230. package/dist/utils/global-cache.js +1 -1
  231. package/dist/utils/json-loader.js +1 -1
  232. package/dist/utils/local-cache.js +1 -1
  233. package/dist/utils/logger/formatters/default-formatter.js +1 -1
  234. package/dist/utils/logger/formatters/index.js +1 -1
  235. package/dist/utils/logger/handlers/console-handler.js +1 -1
  236. package/dist/utils/logger/handlers/file-handler.js +1 -1
  237. package/dist/utils/logger/handlers/index.js +1 -1
  238. package/dist/utils/logger/handlers/null-handler.js +1 -1
  239. package/dist/utils/logger/index.js +1 -1
  240. package/dist/utils/logger/logger.js +1 -1
  241. package/dist/utils/logger/types.js +1 -1
  242. package/dist/utils/option-validation.js +1 -1
  243. package/dist/utils/process.js +1 -1
  244. package/dist/utils/prompt.js +1 -1
  245. package/dist/utils/proxy-fetch.js +1 -1
  246. package/dist/utils/spinner.js +1 -1
  247. package/dist/utils/sse-parser.js +1 -1
  248. package/dist/utils/string-utils.js +1 -1
  249. package/dist/utils/table-ref-parser.js +1 -1
  250. package/dist/utils/tdx-logger.js +1 -1
  251. package/dist/utils/version-check.js +1 -1
  252. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x56d872,_0x2f13ee){const _0x52671c=a173_0x7518,_0x3d7044=_0x56d872();while(!![]){try{const _0x59bc45=-parseInt(_0x52671c(0x165))/0x1+parseInt(_0x52671c(0x162))/0x2+-parseInt(_0x52671c(0x173))/0x3*(-parseInt(_0x52671c(0x15b))/0x4)+-parseInt(_0x52671c(0x17f))/0x5*(parseInt(_0x52671c(0x148))/0x6)+-parseInt(_0x52671c(0x155))/0x7*(-parseInt(_0x52671c(0x167))/0x8)+-parseInt(_0x52671c(0x14b))/0x9+parseInt(_0x52671c(0x154))/0xa;if(_0x59bc45===_0x2f13ee)break;else _0x3d7044['push'](_0x3d7044['shift']());}catch(_0x261b44){_0x3d7044['push'](_0x3d7044['shift']());}}}(a173_0x2154,0x79044));import a173_0x515672 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(_0x103688){const _0x33dfa0=a173_0x7518;return _0x103688[_0x33dfa0(0x15a)]!==_0x33dfa0(0x169);}export function isScopedResolution(_0xeafdcf){const _0x191ed8=a173_0x7518;return _0xeafdcf[_0x191ed8(0x15a)]==='directory'||_0xeafdcf[_0x191ed8(0x15a)]==='file'||_0xeafdcf[_0x191ed8(0x15a)]===_0x191ed8(0x157);}export function getScopedDetails(_0x5aa777){const _0x533f60=a173_0x7518;if(isScopedResolution(_0x5aa777))return{'isScoped':_0x5aa777[_0x533f60(0x16b)],'scopedFolderPath':_0x5aa777[_0x533f60(0x17d)]};return undefined;}async function findTdxConfigAsync(_0x115879,_0x4a6495){const _0x3ad9f3=a173_0x7518;let _0x14ff2f=a173_0x515672['resolve'](_0x115879);const _0x195eff=a173_0x515672[_0x3ad9f3(0x166)](_0x14ff2f)[_0x3ad9f3(0x17e)];while(_0x14ff2f!==_0x195eff){const _0x22093=a173_0x515672[_0x3ad9f3(0x180)](_0x14ff2f,_0x3ad9f3(0x16d));if(await _0x4a6495[_0x3ad9f3(0x151)](_0x22093))try{const _0x417022=await _0x4a6495[_0x3ad9f3(0x152)](_0x22093),_0x5d6e3a=JSON[_0x3ad9f3(0x166)](_0x417022);if(_0x5d6e3a[_0x3ad9f3(0x179)]&&typeof _0x5d6e3a[_0x3ad9f3(0x179)]===_0x3ad9f3(0x15e))return{'configPath':_0x22093,'configDir':_0x14ff2f,'parentSegment':_0x5d6e3a['parent_segment']};}catch{}_0x14ff2f=a173_0x515672[_0x3ad9f3(0x149)](_0x14ff2f);}return null;}function a173_0x2154(){const _0x53e31f=['1251626KOzTph','file','Not\x20a\x20YAML\x20file:\x20','536790SoTBNZ','parse','128HOepaW','parentSegment','error','segment','isScoped','isFile','tdx.json','no_config','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','replace','startsWith','no_parent','404097upaqOL','message','folderPath','Parent\x20segment\x20not\x20specified','No\x20tdx.json\x20found\x20for\x20file:\x20','basename','parent_segment','includes','stat','isDirectory','scopedFolderPath','root','586355phmNHE','join','invalid_yaml','configDir','30HmOGnU','dirname','resolve','2052234VMzdWd','No\x20tdx.json\x20found\x20in\x20or\x20above:\x20','Segment\x20and\x20journey\x20files\x20must\x20have\x20.yml\x20or\x20.yaml\x20extension','relative','No\x20tdx.json\x20found','File\x20not\x20found:\x20','exists','readFile','File\x20not\x20found','4301340OyNmFY','110299epKTWi','file_not_found','context','segmentName','resourceType','type','16UkxhVm','directory','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','string','cwd','match','trim'];a173_0x2154=function(){return _0x53e31f;};return a173_0x2154();}function calculateScopedPath(_0x6486eb,_0x285730){const _0x50fa09=a173_0x7518,_0xab92c7=a173_0x515672[_0x50fa09(0x14e)](_0x285730,_0x6486eb),_0x79324b=_0xab92c7!==''&&_0xab92c7!=='.'&&!_0xab92c7[_0x50fa09(0x171)]('..');return{'isScoped':_0x79324b,'scopedFolderPath':_0x79324b?_0xab92c7[_0x50fa09(0x170)](/\\/g,'/'):''};}function a173_0x7518(_0x41a514,_0x591b24){_0x41a514=_0x41a514-0x147;const _0x2154f3=a173_0x2154();let _0x7518d6=_0x2154f3[_0x41a514];return _0x7518d6;}export async function resolveTarget(_0x31950a){const _0x21882b=a173_0x7518,{arg:_0xa2906a,contextParent:_0x4205ed,cwd:cwd=process[_0x21882b(0x15f)](),fs:fs=nodeFileSystem}=_0x31950a;if(_0xa2906a&&isYamlFilePath(_0xa2906a))try{const _0x530ff4=await resolveYamlFilePath(_0xa2906a,fs),_0xec1da7=a173_0x515672['resolve'](_0xa2906a),_0x24ee17=a173_0x515672[_0x21882b(0x149)](_0xec1da7),_0x2914fb=await findTdxConfigAsync(_0x24ee17,fs);if(!_0x2914fb){if(_0x4205ed){const _0x46a5f1=a173_0x515672[_0x21882b(0x149)](_0xec1da7);return{'type':_0x21882b(0x163),'parentName':_0x4205ed,'targetDir':_0x46a5f1,'configRoot':_0x46a5f1,'filePath':_0xec1da7,'resourceName':_0x530ff4[_0x21882b(0x158)],'folderPath':_0x530ff4[_0x21882b(0x175)],'resourceType':_0x530ff4[_0x21882b(0x159)],'isScoped':![],'scopedFolderPath':''};}return{'type':_0x21882b(0x169),'errorCode':_0x21882b(0x16e),'message':_0x21882b(0x177)+_0xa2906a,'arg':_0xa2906a,'helpText':_0x21882b(0x15d)};}const _0x15a275=calculateScopedPath(_0x24ee17,_0x2914fb[_0x21882b(0x147)]);return{'type':_0x21882b(0x163),'parentName':_0x2914fb[_0x21882b(0x168)],'targetDir':_0x2914fb[_0x21882b(0x147)],'configRoot':_0x2914fb[_0x21882b(0x147)],'filePath':_0xec1da7,'resourceName':_0x530ff4[_0x21882b(0x158)],'folderPath':_0x530ff4[_0x21882b(0x175)],'resourceType':_0x530ff4[_0x21882b(0x159)],'isScoped':_0x15a275[_0x21882b(0x16b)],'scopedFolderPath':_0x15a275[_0x21882b(0x17d)]};}catch(_0x4c2748){const _0x2d3405=_0x4c2748 instanceof Error?_0x4c2748[_0x21882b(0x174)]:String(_0x4c2748);if(_0x2d3405['includes'](_0x21882b(0x153)))return{'type':_0x21882b(0x169),'errorCode':_0x21882b(0x156),'message':_0x21882b(0x150)+_0xa2906a,'arg':_0xa2906a};if(_0x2d3405[_0x21882b(0x17a)](_0x21882b(0x14f))){if(_0x4205ed){const _0x353b06=a173_0x515672['resolve'](_0xa2906a);if(await fs['exists'](_0x353b06)){const _0x4c368d=a173_0x515672['dirname'](_0x353b06),_0x349864=await fs[_0x21882b(0x152)](_0x353b06),_0x3121e5=_0x349864[_0x21882b(0x160)](/^name:\s*["']?([^"'\n]+)["']?/m),_0x266f84=_0x349864['match'](/^type:\s*["']?([^"'\n]+)["']?/m),_0x57a423=_0x3121e5?_0x3121e5[0x1][_0x21882b(0x161)]():a173_0x515672[_0x21882b(0x178)](_0xa2906a,a173_0x515672['extname'](_0xa2906a)),_0x1c67ff=_0x266f84&&_0x266f84[0x1][_0x21882b(0x161)]()==='journey'?'journey':_0x21882b(0x16a);return{'type':_0x21882b(0x163),'parentName':_0x4205ed,'targetDir':_0x4c368d,'configRoot':_0x4c368d,'filePath':_0x353b06,'resourceName':_0x57a423,'folderPath':'','resourceType':_0x1c67ff,'isScoped':![],'scopedFolderPath':''};}}return{'type':_0x21882b(0x169),'errorCode':'no_config','message':_0x21882b(0x177)+_0xa2906a,'arg':_0xa2906a,'helpText':_0x21882b(0x15d)};}return{'type':'error','errorCode':'invalid_yaml','message':_0x2d3405,'arg':_0xa2906a};}if(_0xa2906a){const _0x87b5ad=a173_0x515672[_0x21882b(0x14a)](cwd,_0xa2906a);let _0x220f15=null;try{_0x220f15=await fs[_0x21882b(0x17b)](_0x87b5ad);}catch{}if(_0x220f15?.[_0x21882b(0x17c)]()){const _0x5b28a0=await findTdxConfigAsync(_0x87b5ad,fs);if(_0x5b28a0){const _0x8888bb=calculateScopedPath(_0x87b5ad,_0x5b28a0[_0x21882b(0x147)]);return{'type':_0x21882b(0x15c),'parentName':_0x5b28a0[_0x21882b(0x168)],'targetDir':_0x87b5ad,'configRoot':_0x5b28a0[_0x21882b(0x147)],'isScoped':_0x8888bb[_0x21882b(0x16b)],'scopedFolderPath':_0x8888bb[_0x21882b(0x17d)]};}if(_0x4205ed)return{'type':'directory','parentName':_0x4205ed,'targetDir':_0x87b5ad,'configRoot':_0x87b5ad,'isScoped':![],'scopedFolderPath':''};return{'type':_0x21882b(0x169),'errorCode':_0x21882b(0x16e),'message':_0x21882b(0x14c)+_0xa2906a,'arg':_0xa2906a,'helpText':_0x21882b(0x15d)};}if(_0x220f15?.[_0x21882b(0x16c)]())return{'type':_0x21882b(0x169),'errorCode':_0x21882b(0x181),'message':_0x21882b(0x164)+_0xa2906a,'arg':_0xa2906a,'helpText':_0x21882b(0x14d)};const _0x4586ed=sanitizeFileName(_0xa2906a),_0x2a6d50=getSegmentRootDir(_0x4586ed,cwd);return{'type':'parent_name','parentName':_0xa2906a,'targetDir':_0x2a6d50,'configRoot':_0x2a6d50};}const _0x167164=await findTdxConfigAsync(cwd,fs);if(_0x167164){const _0x1c6340=calculateScopedPath(cwd,_0x167164[_0x21882b(0x147)]);return{'type':_0x21882b(0x157),'parentName':_0x167164[_0x21882b(0x168)],'targetDir':cwd,'configRoot':_0x167164[_0x21882b(0x147)],'isScoped':_0x1c6340[_0x21882b(0x16b)],'scopedFolderPath':_0x1c6340['scopedFolderPath']};}if(_0x4205ed){const _0x2f4384=sanitizeFileName(_0x4205ed),_0x5b8e9b=getSegmentRootDir(_0x2f4384,cwd);return{'type':_0x21882b(0x157),'parentName':_0x4205ed,'targetDir':_0x5b8e9b,'configRoot':_0x5b8e9b,'isScoped':![],'scopedFolderPath':''};}return{'type':_0x21882b(0x169),'errorCode':_0x21882b(0x172),'message':_0x21882b(0x176),'helpText':_0x21882b(0x16f)};}
1
+ function a174_0x51db(){const _0x152722=['string','No\x20tdx.json\x20found','4009173FSQqad','resolve','64658xlAqwV','readFile','45sySOox','Not\x20a\x20YAML\x20file:\x20','No\x20tdx.json\x20found\x20in\x20or\x20above:\x20','segment','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','scopedFolderPath','2925350xlNgVi','relative','72WXMWRF','journey','stat','file_not_found','no_parent','folderPath','segmentName','type','file','44019YAwpzj','no_config','configDir','isDirectory','isScoped','match','tdx.json','message','context','2691770bdNMXj','resourceType','parentSegment','16YlfSGd','startsWith','includes','24573065gmzVhO','root','6UJjgTg','basename','join','No\x20tdx.json\x20found\x20for\x20file:\x20','Parent\x20segment\x20not\x20specified','directory','exists','Segment\x20and\x20journey\x20files\x20must\x20have\x20.yml\x20or\x20.yaml\x20extension','replace','parent_name','File\x20not\x20found:\x20','File\x20not\x20found','error','trim','dirname','512592qJjqJQ','parent_segment','invalid_yaml'];a174_0x51db=function(){return _0x152722;};return a174_0x51db();}(function(_0x4de2d4,_0x41661c){const _0x563ea6=a174_0x110c,_0x334a84=_0x4de2d4();while(!![]){try{const _0x4a05d1=-parseInt(_0x563ea6(0x1a7))/0x1*(-parseInt(_0x563ea6(0x1c2))/0x2)+parseInt(_0x563ea6(0x1d5))/0x3*(parseInt(_0x563ea6(0x1cc))/0x4)+parseInt(_0x563ea6(0x1ca))/0x5+parseInt(_0x563ea6(0x1ac))/0x6*(parseInt(_0x563ea6(0x1c0))/0x7)+-parseInt(_0x563ea6(0x1bb))/0x8*(-parseInt(_0x563ea6(0x1c4))/0x9)+parseInt(_0x563ea6(0x1de))/0xa+-parseInt(_0x563ea6(0x1aa))/0xb;if(_0x4a05d1===_0x41661c)break;else _0x334a84['push'](_0x334a84['shift']());}catch(_0x5aeb6b){_0x334a84['push'](_0x334a84['shift']());}}}(a174_0x51db,0x47fa3));import a174_0x564605 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(_0x60dd89){const _0x543e53=a174_0x110c;return _0x60dd89[_0x543e53(0x1d3)]!==_0x543e53(0x1b8);}function a174_0x110c(_0x15809b,_0x2fce8d){_0x15809b=_0x15809b-0x1a5;const _0x51db2d=a174_0x51db();let _0x110c50=_0x51db2d[_0x15809b];return _0x110c50;}export function isScopedResolution(_0x59a023){const _0x130539=a174_0x110c;return _0x59a023[_0x130539(0x1d3)]===_0x130539(0x1b1)||_0x59a023[_0x130539(0x1d3)]===_0x130539(0x1d4)||_0x59a023[_0x130539(0x1d3)]===_0x130539(0x1dd);}export function getScopedDetails(_0x56ed68){const _0x22c7bf=a174_0x110c;if(isScopedResolution(_0x56ed68))return{'isScoped':_0x56ed68[_0x22c7bf(0x1d9)],'scopedFolderPath':_0x56ed68['scopedFolderPath']};return undefined;}async function findTdxConfigAsync(_0x36152d,_0x1dcd61){const _0x96d2e0=a174_0x110c;let _0x2daff4=a174_0x564605[_0x96d2e0(0x1c1)](_0x36152d);const _0x7e58d2=a174_0x564605['parse'](_0x2daff4)[_0x96d2e0(0x1ab)];while(_0x2daff4!==_0x7e58d2){const _0x2a843d=a174_0x564605[_0x96d2e0(0x1ae)](_0x2daff4,_0x96d2e0(0x1db));if(await _0x1dcd61[_0x96d2e0(0x1b2)](_0x2a843d))try{const _0x409339=await _0x1dcd61[_0x96d2e0(0x1c3)](_0x2a843d),_0x3e6a69=JSON['parse'](_0x409339);if(_0x3e6a69[_0x96d2e0(0x1bc)]&&typeof _0x3e6a69[_0x96d2e0(0x1bc)]===_0x96d2e0(0x1be))return{'configPath':_0x2a843d,'configDir':_0x2daff4,'parentSegment':_0x3e6a69[_0x96d2e0(0x1bc)]};}catch{}_0x2daff4=a174_0x564605['dirname'](_0x2daff4);}return null;}function calculateScopedPath(_0x55f5c9,_0x51b798){const _0x269578=a174_0x110c,_0xebd85f=a174_0x564605[_0x269578(0x1cb)](_0x51b798,_0x55f5c9),_0x4e6aa3=_0xebd85f!==''&&_0xebd85f!=='.'&&!_0xebd85f[_0x269578(0x1a8)]('..');return{'isScoped':_0x4e6aa3,'scopedFolderPath':_0x4e6aa3?_0xebd85f[_0x269578(0x1b4)](/\\/g,'/'):''};}export async function resolveTarget(_0x20c55a){const _0x37c787=a174_0x110c,{arg:_0x39e951,contextParent:_0x18e810,cwd:cwd=process['cwd'](),fs:fs=nodeFileSystem}=_0x20c55a;if(_0x39e951&&isYamlFilePath(_0x39e951))try{const _0x3d5622=await resolveYamlFilePath(_0x39e951,fs),_0x4ebb31=a174_0x564605['resolve'](_0x39e951),_0x3fb6c2=a174_0x564605[_0x37c787(0x1ba)](_0x4ebb31),_0x270926=await findTdxConfigAsync(_0x3fb6c2,fs);if(!_0x270926){if(_0x18e810){const _0x2562a7=a174_0x564605[_0x37c787(0x1ba)](_0x4ebb31);return{'type':_0x37c787(0x1d4),'parentName':_0x18e810,'targetDir':_0x2562a7,'configRoot':_0x2562a7,'filePath':_0x4ebb31,'resourceName':_0x3d5622[_0x37c787(0x1d2)],'folderPath':_0x3d5622[_0x37c787(0x1d1)],'resourceType':_0x3d5622[_0x37c787(0x1a5)],'isScoped':![],'scopedFolderPath':''};}return{'type':'error','errorCode':'no_config','message':_0x37c787(0x1af)+_0x39e951,'arg':_0x39e951,'helpText':_0x37c787(0x1c8)};}const _0x5c5865=calculateScopedPath(_0x3fb6c2,_0x270926['configDir']);return{'type':_0x37c787(0x1d4),'parentName':_0x270926[_0x37c787(0x1a6)],'targetDir':_0x270926[_0x37c787(0x1d7)],'configRoot':_0x270926[_0x37c787(0x1d7)],'filePath':_0x4ebb31,'resourceName':_0x3d5622[_0x37c787(0x1d2)],'folderPath':_0x3d5622['folderPath'],'resourceType':_0x3d5622[_0x37c787(0x1a5)],'isScoped':_0x5c5865[_0x37c787(0x1d9)],'scopedFolderPath':_0x5c5865[_0x37c787(0x1c9)]};}catch(_0x40a839){const _0x3eb449=_0x40a839 instanceof Error?_0x40a839[_0x37c787(0x1dc)]:String(_0x40a839);if(_0x3eb449[_0x37c787(0x1a9)](_0x37c787(0x1b7)))return{'type':_0x37c787(0x1b8),'errorCode':_0x37c787(0x1cf),'message':_0x37c787(0x1b6)+_0x39e951,'arg':_0x39e951};if(_0x3eb449[_0x37c787(0x1a9)](_0x37c787(0x1bf))){if(_0x18e810){const _0x12fdd0=a174_0x564605[_0x37c787(0x1c1)](_0x39e951);if(await fs['exists'](_0x12fdd0)){const _0x146fa6=a174_0x564605[_0x37c787(0x1ba)](_0x12fdd0),_0x152119=await fs[_0x37c787(0x1c3)](_0x12fdd0),_0x241565=_0x152119[_0x37c787(0x1da)](/^name:\s*["']?([^"'\n]+)["']?/m),_0x27d74a=_0x152119['match'](/^type:\s*["']?([^"'\n]+)["']?/m),_0x4c0728=_0x241565?_0x241565[0x1][_0x37c787(0x1b9)]():a174_0x564605[_0x37c787(0x1ad)](_0x39e951,a174_0x564605['extname'](_0x39e951)),_0x333cc1=_0x27d74a&&_0x27d74a[0x1][_0x37c787(0x1b9)]()===_0x37c787(0x1cd)?_0x37c787(0x1cd):_0x37c787(0x1c7);return{'type':_0x37c787(0x1d4),'parentName':_0x18e810,'targetDir':_0x146fa6,'configRoot':_0x146fa6,'filePath':_0x12fdd0,'resourceName':_0x4c0728,'folderPath':'','resourceType':_0x333cc1,'isScoped':![],'scopedFolderPath':''};}}return{'type':'error','errorCode':_0x37c787(0x1d6),'message':_0x37c787(0x1af)+_0x39e951,'arg':_0x39e951,'helpText':_0x37c787(0x1c8)};}return{'type':_0x37c787(0x1b8),'errorCode':_0x37c787(0x1bd),'message':_0x3eb449,'arg':_0x39e951};}if(_0x39e951){const _0x7581ba=a174_0x564605['resolve'](cwd,_0x39e951);let _0xca7548=null;try{_0xca7548=await fs[_0x37c787(0x1ce)](_0x7581ba);}catch{}if(_0xca7548?.[_0x37c787(0x1d8)]()){const _0x22d254=await findTdxConfigAsync(_0x7581ba,fs);if(_0x22d254){const _0x74877f=calculateScopedPath(_0x7581ba,_0x22d254['configDir']);return{'type':'directory','parentName':_0x22d254[_0x37c787(0x1a6)],'targetDir':_0x7581ba,'configRoot':_0x22d254[_0x37c787(0x1d7)],'isScoped':_0x74877f[_0x37c787(0x1d9)],'scopedFolderPath':_0x74877f[_0x37c787(0x1c9)]};}if(_0x18e810)return{'type':_0x37c787(0x1b1),'parentName':_0x18e810,'targetDir':_0x7581ba,'configRoot':_0x7581ba,'isScoped':![],'scopedFolderPath':''};return{'type':'error','errorCode':_0x37c787(0x1d6),'message':_0x37c787(0x1c6)+_0x39e951,'arg':_0x39e951,'helpText':_0x37c787(0x1c8)};}if(_0xca7548?.['isFile']())return{'type':_0x37c787(0x1b8),'errorCode':_0x37c787(0x1bd),'message':_0x37c787(0x1c5)+_0x39e951,'arg':_0x39e951,'helpText':_0x37c787(0x1b3)};const _0x4a951b=sanitizeFileName(_0x39e951),_0x3f4ccc=getSegmentRootDir(_0x4a951b,cwd);return{'type':_0x37c787(0x1b5),'parentName':_0x39e951,'targetDir':_0x3f4ccc,'configRoot':_0x3f4ccc};}const _0xa0b993=await findTdxConfigAsync(cwd,fs);if(_0xa0b993){const _0x5a04d9=calculateScopedPath(cwd,_0xa0b993['configDir']);return{'type':_0x37c787(0x1dd),'parentName':_0xa0b993[_0x37c787(0x1a6)],'targetDir':cwd,'configRoot':_0xa0b993['configDir'],'isScoped':_0x5a04d9['isScoped'],'scopedFolderPath':_0x5a04d9['scopedFolderPath']};}if(_0x18e810){const _0x2e3843=sanitizeFileName(_0x18e810),_0x31ad2c=getSegmentRootDir(_0x2e3843,cwd);return{'type':'context','parentName':_0x18e810,'targetDir':_0x31ad2c,'configRoot':_0x31ad2c,'isScoped':![],'scopedFolderPath':''};}return{'type':_0x37c787(0x1b8),'errorCode':_0x37c787(0x1d0),'message':_0x37c787(0x1b0),'helpText':'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'};}
@@ -1 +1 @@
1
- const a174_0x352d8c=a174_0x4bce;(function(_0x53cb08,_0x47653c){const _0x3e3fff=a174_0x4bce,_0x34e11d=_0x53cb08();while(!![]){try{const _0x5bc4ef=-parseInt(_0x3e3fff(0xca))/0x1*(-parseInt(_0x3e3fff(0xdf))/0x2)+-parseInt(_0x3e3fff(0xc2))/0x3+-parseInt(_0x3e3fff(0xcd))/0x4*(parseInt(_0x3e3fff(0xdd))/0x5)+parseInt(_0x3e3fff(0xc8))/0x6*(-parseInt(_0x3e3fff(0xde))/0x7)+parseInt(_0x3e3fff(0xc6))/0x8*(-parseInt(_0x3e3fff(0xcb))/0x9)+parseInt(_0x3e3fff(0xd2))/0xa+parseInt(_0x3e3fff(0xe0))/0xb;if(_0x5bc4ef===_0x47653c)break;else _0x34e11d['push'](_0x34e11d['shift']());}catch(_0x17061f){_0x34e11d['push'](_0x34e11d['shift']());}}}(a174_0x2197,0xb630d));import{existsSync,readFileSync}from'fs';import a174_0x2983b6 from'path';const TDX_CONFIG_FILE=a174_0x352d8c(0xdb),SEGMENTS_DIR=a174_0x352d8c(0xce);export function findTdxConfigPath(_0x5ebbb3=process[a174_0x352d8c(0xc4)]()){const _0x56c7ed=a174_0x352d8c;let _0x2b250a=a174_0x2983b6['resolve'](_0x5ebbb3);const _0x2430b1=a174_0x2983b6['parse'](_0x2b250a)[_0x56c7ed(0xcf)];while(_0x2b250a!==_0x2430b1){const _0x2d4ce6=a174_0x2983b6[_0x56c7ed(0xd7)](_0x2b250a,TDX_CONFIG_FILE);if(existsSync(_0x2d4ce6))return _0x2d4ce6;_0x2b250a=a174_0x2983b6[_0x56c7ed(0xd8)](_0x2b250a);}return null;}export function loadTdxConfig(_0x2973d5){const _0x4b87fa=a174_0x352d8c,_0x3bd863=readFileSync(_0x2973d5,_0x4b87fa(0xc3));let _0x13df62;try{_0x13df62=JSON[_0x4b87fa(0xd4)](_0x3bd863);}catch{throw new Error('Invalid\x20JSON\x20in\x20'+_0x2973d5);}if(!_0x13df62||typeof _0x13df62!==_0x4b87fa(0xc7))throw new Error(_0x4b87fa(0xdc));const _0x3b9c4c=_0x13df62,_0x42b92e=_0x3b9c4c[_0x4b87fa(0xc5)]&&typeof _0x3b9c4c[_0x4b87fa(0xc5)]===_0x4b87fa(0xd6),_0x59548b=_0x3b9c4c[_0x4b87fa(0xd9)]&&typeof _0x3b9c4c['engage_workspace']===_0x4b87fa(0xd6);if(!_0x42b92e&&!_0x59548b)throw new Error(_0x4b87fa(0xcc));const _0xf8cd7f={};return _0x42b92e&&(_0xf8cd7f[_0x4b87fa(0xc5)]=_0x3b9c4c[_0x4b87fa(0xc5)]),_0x59548b&&(_0xf8cd7f['engage_workspace']=_0x3b9c4c['engage_workspace']),_0xf8cd7f;}function a174_0x2197(){const _0x292cb6=['segments','root','replace','startsWith','5331000rRpEYf','No\x20tdx.json\x20found.\x20Please\x20run\x20\x27tdx\x20sg\x20pull\x20<parent_segment>\x27\x20first\x20to\x20create\x20the\x20folder\x20structure.','parse','resolve','string','join','dirname','engage_workspace','relative','tdx.json','Invalid\x20tdx.json:\x20expected\x20object','10IRmjtW','385HCHMFO','706NBdOMm','40988354ecJMSc','4233207icMOFT','utf-8','cwd','parent_segment','4904272WbVLCa','object','54390vISagf','stringify','47WCWTLG','18iYzGGa','Invalid\x20tdx.json:\x20must\x20contain\x20\x27parent_segment\x27\x20or\x20\x27engage_workspace\x27\x20field','787880WMFHit'];a174_0x2197=function(){return _0x292cb6;};return a174_0x2197();}export function findTdxConfig(_0x5230ad=process[a174_0x352d8c(0xc4)]()){const _0x1beedd=a174_0x352d8c,_0x3c76b=findTdxConfigPath(_0x5230ad);if(!_0x3c76b)throw new Error(_0x1beedd(0xd3));const _0x42b643=loadTdxConfig(_0x3c76b),_0x1c829c=a174_0x2983b6[_0x1beedd(0xd8)](_0x3c76b);return{'config':_0x42b643,'configPath':_0x3c76b,'configDir':_0x1c829c};}export function tryFindTdxConfig(_0x437ac0){try{return findTdxConfig(_0x437ac0);}catch{return null;}}export function getSegmentRootDir(_0x1ed62c,_0x2ad9c7=process[a174_0x352d8c(0xc4)]()){const _0x166333=a174_0x352d8c;return a174_0x2983b6[_0x166333(0xd7)](_0x2ad9c7,SEGMENTS_DIR,_0x1ed62c);}export function getTdxConfigPath(_0x4661a8,_0x38c385=process[a174_0x352d8c(0xc4)]()){return a174_0x2983b6['join'](getSegmentRootDir(_0x4661a8,_0x38c385),TDX_CONFIG_FILE);}export function getRelativePathFromConfig(_0x46a58a,_0x1769a8){const _0x46d689=a174_0x352d8c,_0x4d5627=a174_0x2983b6[_0x46d689(0xd5)](_0x46a58a),_0x5e2e76=a174_0x2983b6[_0x46d689(0xda)](_0x1769a8,_0x4d5627);if(_0x5e2e76[_0x46d689(0xd1)]('..'))return'';return _0x5e2e76;}export function localPathToTdFolderPath(_0x3e615b){const _0x436e86=a174_0x352d8c,_0x4cb0ae=a174_0x2983b6[_0x436e86(0xd8)](_0x3e615b);if(_0x4cb0ae==='.'||_0x4cb0ae==='')return'';return _0x4cb0ae[_0x436e86(0xd0)](/\\/g,'/');}export function tdFolderPathToLocalPath(_0x56d6b7,_0x55b0ac){const _0x145f80=a174_0x352d8c;if(!_0x56d6b7)return _0x55b0ac;return a174_0x2983b6[_0x145f80(0xd7)](_0x55b0ac,_0x56d6b7);}function a174_0x4bce(_0x585314,_0x489397){_0x585314=_0x585314-0xc2;const _0x219736=a174_0x2197();let _0x4bce40=_0x219736[_0x585314];return _0x4bce40;}export function createTdxConfigContent(_0x34514a){const _0x498d82=a174_0x352d8c,_0x1042a5={'parent_segment':_0x34514a};return JSON[_0x498d82(0xc9)](_0x1042a5,null,0x2)+'\x0a';}export function createEngageTdxConfigContent(_0x604e6a){const _0x5d3cba={'engage_workspace':_0x604e6a};return JSON['stringify'](_0x5d3cba,null,0x2)+'\x0a';}
1
+ const a175_0x2faeb6=a175_0x564d;(function(_0x4f33c9,_0x11f427){const _0x1281b3=a175_0x564d,_0x955f5d=_0x4f33c9();while(!![]){try{const _0x40ea64=parseInt(_0x1281b3(0x1ba))/0x1+parseInt(_0x1281b3(0x1bc))/0x2+-parseInt(_0x1281b3(0x1b0))/0x3*(parseInt(_0x1281b3(0x1b3))/0x4)+-parseInt(_0x1281b3(0x1b4))/0x5*(-parseInt(_0x1281b3(0x1b2))/0x6)+-parseInt(_0x1281b3(0x1c6))/0x7+-parseInt(_0x1281b3(0x1c1))/0x8+parseInt(_0x1281b3(0x1b7))/0x9*(parseInt(_0x1281b3(0x1c5))/0xa);if(_0x40ea64===_0x11f427)break;else _0x955f5d['push'](_0x955f5d['shift']());}catch(_0xf58358){_0x955f5d['push'](_0x955f5d['shift']());}}}(a175_0x1c4f,0x2f577));import{existsSync,readFileSync}from'fs';import a175_0x5127e7 from'path';const TDX_CONFIG_FILE=a175_0x2faeb6(0x1c0),SEGMENTS_DIR=a175_0x2faeb6(0x1c7);export function findTdxConfigPath(_0x425624=process[a175_0x2faeb6(0x1b9)]()){const _0x52ec94=a175_0x2faeb6;let _0xdda8d4=a175_0x5127e7[_0x52ec94(0x1b8)](_0x425624);const _0x5774b9=a175_0x5127e7[_0x52ec94(0x1bf)](_0xdda8d4)[_0x52ec94(0x1be)];while(_0xdda8d4!==_0x5774b9){const _0xd2c605=a175_0x5127e7[_0x52ec94(0x1c4)](_0xdda8d4,TDX_CONFIG_FILE);if(existsSync(_0xd2c605))return _0xd2c605;_0xdda8d4=a175_0x5127e7[_0x52ec94(0x1b6)](_0xdda8d4);}return null;}export function loadTdxConfig(_0x4497d9){const _0x514dea=a175_0x2faeb6,_0x2186ca=readFileSync(_0x4497d9,_0x514dea(0x1bd));let _0x54fa9c;try{_0x54fa9c=JSON[_0x514dea(0x1bf)](_0x2186ca);}catch{throw new Error(_0x514dea(0x1af)+_0x4497d9);}if(!_0x54fa9c||typeof _0x54fa9c!=='object')throw new Error(_0x514dea(0x1c9));const _0x50cfab=_0x54fa9c,_0xd2037a=_0x50cfab[_0x514dea(0x1ca)]&&typeof _0x50cfab[_0x514dea(0x1ca)]===_0x514dea(0x1b5),_0x2e2c0d=_0x50cfab[_0x514dea(0x1bb)]&&typeof _0x50cfab[_0x514dea(0x1bb)]===_0x514dea(0x1b5);if(!_0xd2037a&&!_0x2e2c0d)throw new Error(_0x514dea(0x1c2));const _0x1e738c={};return _0xd2037a&&(_0x1e738c[_0x514dea(0x1ca)]=_0x50cfab[_0x514dea(0x1ca)]),_0x2e2c0d&&(_0x1e738c[_0x514dea(0x1bb)]=_0x50cfab[_0x514dea(0x1bb)]),_0x1e738c;}function a175_0x1c4f(){const _0x86728c=['1110gjIihS','2695420UtbeOO','segments','replace','Invalid\x20tdx.json:\x20expected\x20object','parent_segment','Invalid\x20JSON\x20in\x20','480564lEUpmG','stringify','5406wniLQm','8sVaPUr','360kuebrv','string','dirname','40113MguXko','resolve','cwd','335549EvszHg','engage_workspace','714540oXaoPX','utf-8','root','parse','tdx.json','2824568LuoIqJ','Invalid\x20tdx.json:\x20must\x20contain\x20\x27parent_segment\x27\x20or\x20\x27engage_workspace\x27\x20field','startsWith','join'];a175_0x1c4f=function(){return _0x86728c;};return a175_0x1c4f();}function a175_0x564d(_0x36bc08,_0x1f7dba){_0x36bc08=_0x36bc08-0x1af;const _0x1c4fa=a175_0x1c4f();let _0x564d58=_0x1c4fa[_0x36bc08];return _0x564d58;}export function findTdxConfig(_0x27ef86=process['cwd']()){const _0x3af344=a175_0x2faeb6,_0x51a461=findTdxConfigPath(_0x27ef86);if(!_0x51a461)throw new Error('No\x20tdx.json\x20found.\x20Please\x20run\x20\x27tdx\x20sg\x20pull\x20<parent_segment>\x27\x20first\x20to\x20create\x20the\x20folder\x20structure.');const _0x18888b=loadTdxConfig(_0x51a461),_0x124934=a175_0x5127e7[_0x3af344(0x1b6)](_0x51a461);return{'config':_0x18888b,'configPath':_0x51a461,'configDir':_0x124934};}export function tryFindTdxConfig(_0x1a11b6){try{return findTdxConfig(_0x1a11b6);}catch{return null;}}export function getSegmentRootDir(_0x578a06,_0x340925=process[a175_0x2faeb6(0x1b9)]()){const _0x1ab58c=a175_0x2faeb6;return a175_0x5127e7[_0x1ab58c(0x1c4)](_0x340925,SEGMENTS_DIR,_0x578a06);}export function getTdxConfigPath(_0x277faa,_0x50a40e=process[a175_0x2faeb6(0x1b9)]()){const _0x2a7261=a175_0x2faeb6;return a175_0x5127e7[_0x2a7261(0x1c4)](getSegmentRootDir(_0x277faa,_0x50a40e),TDX_CONFIG_FILE);}export function getRelativePathFromConfig(_0x4ca6a8,_0x490ad5){const _0x1b1050=a175_0x2faeb6,_0x1b90a1=a175_0x5127e7[_0x1b1050(0x1b8)](_0x4ca6a8),_0x57e255=a175_0x5127e7['relative'](_0x490ad5,_0x1b90a1);if(_0x57e255[_0x1b1050(0x1c3)]('..'))return'';return _0x57e255;}export function localPathToTdFolderPath(_0x172e3f){const _0x59296c=a175_0x2faeb6,_0x258fcd=a175_0x5127e7[_0x59296c(0x1b6)](_0x172e3f);if(_0x258fcd==='.'||_0x258fcd==='')return'';return _0x258fcd[_0x59296c(0x1c8)](/\\/g,'/');}export function tdFolderPathToLocalPath(_0x132580,_0x5db0fe){const _0x9fa8e9=a175_0x2faeb6;if(!_0x132580)return _0x5db0fe;return a175_0x5127e7[_0x9fa8e9(0x1c4)](_0x5db0fe,_0x132580);}export function createTdxConfigContent(_0x5753bc){const _0x485544=a175_0x2faeb6,_0x5b4b8e={'parent_segment':_0x5753bc};return JSON[_0x485544(0x1b1)](_0x5b4b8e,null,0x2)+'\x0a';}export function createEngageTdxConfigContent(_0x2f81ba){const _0x2d3799={'engage_workspace':_0x2f81ba};return JSON['stringify'](_0x2d3799,null,0x2)+'\x0a';}
@@ -1 +1 @@
1
- const a175_0x10bd1e=a175_0x1813;(function(_0x4c77e9,_0x4500d4){const _0x5aa904=a175_0x1813,_0x324889=_0x4c77e9();while(!![]){try{const _0x1cf27d=-parseInt(_0x5aa904(0xbd))/0x1+-parseInt(_0x5aa904(0xcf))/0x2+parseInt(_0x5aa904(0xcb))/0x3+-parseInt(_0x5aa904(0xd8))/0x4+parseInt(_0x5aa904(0xb6))/0x5+-parseInt(_0x5aa904(0xd2))/0x6+parseInt(_0x5aa904(0xd7))/0x7*(parseInt(_0x5aa904(0xdd))/0x8);if(_0x1cf27d===_0x4500d4)break;else _0x324889['push'](_0x324889['shift']());}catch(_0x33e4b9){_0x324889['push'](_0x324889['shift']());}}}(a175_0x5db4,0xd1638));import{z}from'zod';export const ScheduleTypeSchema=z[a175_0x10bd1e(0xba)]([a175_0x10bd1e(0xc8),a175_0x10bd1e(0xd1),'daily',a175_0x10bd1e(0xc3),a175_0x10bd1e(0xc4),'cron','minutes_interval']);export const RepeatUnitSchema=z[a175_0x10bd1e(0xba)]([a175_0x10bd1e(0xc0),'hour','day',a175_0x10bd1e(0xde),a175_0x10bd1e(0xd5),a175_0x10bd1e(0xb5),a175_0x10bd1e(0xc8)]);export const ScheduleDefSchema=z[a175_0x10bd1e(0xd9)]({'type':ScheduleTypeSchema[a175_0x10bd1e(0xb9)](),'repeat_unit':RepeatUnitSchema[a175_0x10bd1e(0xb9)](),'repeat_frequency':z[a175_0x10bd1e(0xb4)]()[a175_0x10bd1e(0xb9)](),'repeat_sub_frequency':z[a175_0x10bd1e(0xbb)](z[a175_0x10bd1e(0xb4)]())['optional'](),'start_at':z[a175_0x10bd1e(0xce)]()[a175_0x10bd1e(0xd6)]()[a175_0x10bd1e(0xb9)](),'end_on':z[a175_0x10bd1e(0xce)]()[a175_0x10bd1e(0xd6)]()[a175_0x10bd1e(0xb9)](),'timezone':z[a175_0x10bd1e(0xce)]()[a175_0x10bd1e(0xb9)]()});export const NotificationDefSchema=z['object']({'notify_on':z[a175_0x10bd1e(0xbb)](z['enum'](['onSuccess',a175_0x10bd1e(0xcd)]))[a175_0x10bd1e(0xb9)](),'email_recipients':z[a175_0x10bd1e(0xbb)](z[a175_0x10bd1e(0xce)]())[a175_0x10bd1e(0xb9)]()});function a175_0x1813(_0x116159,_0x37807f){_0x116159=_0x116159-0xb4;const _0x5db41c=a175_0x5db4();let _0x181386=_0x5db41c[_0x116159];return _0x181386;}export const ActivationColumnDefSchema=z[a175_0x10bd1e(0xda)]([z[a175_0x10bd1e(0xce)](),z[a175_0x10bd1e(0xd9)]({'name':z['string'](),'type':z['string']()[a175_0x10bd1e(0xb9)](),'visibility':z[a175_0x10bd1e(0xba)]([a175_0x10bd1e(0xc1),a175_0x10bd1e(0xc6)])[a175_0x10bd1e(0xb9)]()})]);export const ActivationBehaviorDefSchema=z[a175_0x10bd1e(0xd9)]({'columns':z[a175_0x10bd1e(0xbb)](ActivationColumnDefSchema)[a175_0x10bd1e(0xb9)](),'behavior_table':z[a175_0x10bd1e(0xce)]()[a175_0x10bd1e(0xb9)](),'join_row':z['number']()['nullable']()['optional'](),'join_strategy':z[a175_0x10bd1e(0xba)](['All',a175_0x10bd1e(0xbf),a175_0x10bd1e(0xbe),a175_0x10bd1e(0xbc)])['optional'](),'formatting':z[a175_0x10bd1e(0xba)]([a175_0x10bd1e(0xc5),'cols'])['optional'](),'order_by':z[a175_0x10bd1e(0xbb)](z[a175_0x10bd1e(0xd9)]({'key':z['string'](),'order':z['enum']([a175_0x10bd1e(0xcc),a175_0x10bd1e(0xb7)])}))[a175_0x10bd1e(0xb9)]()});function a175_0x5db4(){const _0x273891=['optional','enum','array','Top-N','1418482YsnJTV','Last','First','minute','clear','behaviors','weekly','monthly','rows','masked','unknown','none','superRefine','boolean','4274940jDyzaR','ascending','onFailure','string','802556iJWYwL','min','hourly','5586894teIHUY','Connection\x20name\x20is\x20required','Activation\x20name\x20is\x20required','month','nullable','49qSypUh','1724124ckDtWN','object','union','custom','behavior','1402096RNqLLP','week','number','once','6938910VoqqCA','descending','max'];a175_0x5db4=function(){return _0x273891;};return a175_0x5db4();}export const ActivationBehaviorsDefSchema=z[a175_0x10bd1e(0xbb)](ActivationBehaviorDefSchema)[a175_0x10bd1e(0xb8)](0x4);export const ActivationDefSchema=z[a175_0x10bd1e(0xd9)]({'name':z[a175_0x10bd1e(0xce)]()[a175_0x10bd1e(0xd0)](0x1,a175_0x10bd1e(0xd4)),'description':z['string']()[a175_0x10bd1e(0xb9)](),'connection':z[a175_0x10bd1e(0xce)]()[a175_0x10bd1e(0xd0)](0x1,a175_0x10bd1e(0xd3)),'all_columns':z['boolean']()[a175_0x10bd1e(0xb9)](),'columns':z[a175_0x10bd1e(0xbb)](ActivationColumnDefSchema)[a175_0x10bd1e(0xb9)](),'schedule':ScheduleDefSchema[a175_0x10bd1e(0xb9)](),'notification':NotificationDefSchema[a175_0x10bd1e(0xb9)](),'connector_config':z['record'](z['string'](),z[a175_0x10bd1e(0xc7)]())[a175_0x10bd1e(0xb9)](),'activation_template_id':z['string']()[a175_0x10bd1e(0xd6)]()[a175_0x10bd1e(0xb9)](),'behavior':ActivationBehaviorDefSchema[a175_0x10bd1e(0xd6)]()[a175_0x10bd1e(0xb9)](),'behaviors':ActivationBehaviorsDefSchema[a175_0x10bd1e(0xb9)](),'run_after_journey_refresh':z[a175_0x10bd1e(0xca)]()[a175_0x10bd1e(0xb9)](),'nested_workflow_project_name':z[a175_0x10bd1e(0xce)]()['optional'](),'nested_workflow_name':z['string']()[a175_0x10bd1e(0xb9)](),'lock_enabled':z['boolean']()[a175_0x10bd1e(0xb9)]()})[a175_0x10bd1e(0xc9)]((_0x42fd7c,_0x21b086)=>{const _0x4c2bd1=a175_0x10bd1e;_0x42fd7c[_0x4c2bd1(0xdc)]!=null&&_0x42fd7c[_0x4c2bd1(0xc2)]!=null&&_0x21b086['addIssue']({'code':_0x4c2bd1(0xdb),'message':'Use\x20either\x20`behavior`\x20or\x20`behaviors`,\x20not\x20both\x20(prefer\x20`behaviors`).','path':['behavior']});});
1
+ const a176_0x1787bb=a176_0x5cdd;function a176_0x8df1(){const _0x1c3af9=['14748BuqHah','Connection\x20name\x20is\x20required','cron','behaviors','optional','array','unknown','ascending','Activation\x20name\x20is\x20required','month','2507098jSaMzR','22DXhCXq','minutes_interval','record','once','nullable','Use\x20either\x20`behavior`\x20or\x20`behaviors`,\x20not\x20both\x20(prefer\x20`behaviors`).','number','cols','hourly','max','enum','6712SbIJiu','Last','Top-N','behavior','681782ofMnOJ','All','9982myejgk','monthly','object','rows','string','daily','day','boolean','none','19606630OlmIhm','masked','week','11943396vfuvQS','166940LsHPKd','hour','descending','93UOWxex','First','2015bZHFpO'];a176_0x8df1=function(){return _0x1c3af9;};return a176_0x8df1();}(function(_0x171cd2,_0x34263d){const _0x4cd258=a176_0x5cdd,_0x5b7675=_0x171cd2();while(!![]){try{const _0x4b4a37=parseInt(_0x4cd258(0x106))/0x1+parseInt(_0x4cd258(0xf6))/0x2+-parseInt(_0x4cd258(0xe9))/0x3*(-parseInt(_0x4cd258(0xe6))/0x4)+-parseInt(_0x4cd258(0xeb))/0x5*(parseInt(_0x4cd258(0xec))/0x6)+parseInt(_0x4cd258(0x108))/0x7*(parseInt(_0x4cd258(0x102))/0x8)+parseInt(_0x4cd258(0xe5))/0x9+-parseInt(_0x4cd258(0xe2))/0xa*(parseInt(_0x4cd258(0xf7))/0xb);if(_0x4b4a37===_0x34263d)break;else _0x5b7675['push'](_0x5b7675['shift']());}catch(_0x4222f9){_0x5b7675['push'](_0x5b7675['shift']());}}}(a176_0x8df1,0xcd3e2));import{z}from'zod';export const ScheduleTypeSchema=z['enum'](['none',a176_0x1787bb(0xff),a176_0x1787bb(0x10d),'weekly',a176_0x1787bb(0x109),a176_0x1787bb(0xee),a176_0x1787bb(0xf8)]);export const RepeatUnitSchema=z['enum'](['minute',a176_0x1787bb(0xe7),a176_0x1787bb(0x10e),a176_0x1787bb(0xe4),a176_0x1787bb(0xf5),a176_0x1787bb(0xfa),a176_0x1787bb(0x110)]);export const ScheduleDefSchema=z[a176_0x1787bb(0x10a)]({'type':ScheduleTypeSchema['optional'](),'repeat_unit':RepeatUnitSchema[a176_0x1787bb(0xf0)](),'repeat_frequency':z[a176_0x1787bb(0xfd)]()[a176_0x1787bb(0xf0)](),'repeat_sub_frequency':z[a176_0x1787bb(0xf1)](z[a176_0x1787bb(0xfd)]())[a176_0x1787bb(0xf0)](),'start_at':z['string']()[a176_0x1787bb(0xfb)]()[a176_0x1787bb(0xf0)](),'end_on':z[a176_0x1787bb(0x10c)]()[a176_0x1787bb(0xfb)]()['optional'](),'timezone':z[a176_0x1787bb(0x10c)]()['optional']()});export const NotificationDefSchema=z[a176_0x1787bb(0x10a)]({'notify_on':z[a176_0x1787bb(0xf1)](z[a176_0x1787bb(0x101)](['onSuccess','onFailure']))[a176_0x1787bb(0xf0)](),'email_recipients':z['array'](z[a176_0x1787bb(0x10c)]())[a176_0x1787bb(0xf0)]()});function a176_0x5cdd(_0x32816f,_0x17f32f){_0x32816f=_0x32816f-0xe2;const _0x8df1db=a176_0x8df1();let _0x5cdd39=_0x8df1db[_0x32816f];return _0x5cdd39;}export const ActivationColumnDefSchema=z['union']([z[a176_0x1787bb(0x10c)](),z[a176_0x1787bb(0x10a)]({'name':z[a176_0x1787bb(0x10c)](),'type':z[a176_0x1787bb(0x10c)]()[a176_0x1787bb(0xf0)](),'visibility':z[a176_0x1787bb(0x101)](['clear',a176_0x1787bb(0xe3)])[a176_0x1787bb(0xf0)]()})]);export const ActivationBehaviorDefSchema=z['object']({'columns':z[a176_0x1787bb(0xf1)](ActivationColumnDefSchema)[a176_0x1787bb(0xf0)](),'behavior_table':z[a176_0x1787bb(0x10c)]()[a176_0x1787bb(0xf0)](),'join_row':z[a176_0x1787bb(0xfd)]()[a176_0x1787bb(0xfb)]()[a176_0x1787bb(0xf0)](),'join_strategy':z[a176_0x1787bb(0x101)]([a176_0x1787bb(0x107),a176_0x1787bb(0xea),a176_0x1787bb(0x103),a176_0x1787bb(0x104)])[a176_0x1787bb(0xf0)](),'formatting':z[a176_0x1787bb(0x101)]([a176_0x1787bb(0x10b),a176_0x1787bb(0xfe)])[a176_0x1787bb(0xf0)](),'order_by':z[a176_0x1787bb(0xf1)](z[a176_0x1787bb(0x10a)]({'key':z[a176_0x1787bb(0x10c)](),'order':z['enum']([a176_0x1787bb(0xf3),a176_0x1787bb(0xe8)])}))['optional']()});export const ActivationBehaviorsDefSchema=z[a176_0x1787bb(0xf1)](ActivationBehaviorDefSchema)[a176_0x1787bb(0x100)](0x4);export const ActivationDefSchema=z[a176_0x1787bb(0x10a)]({'name':z['string']()['min'](0x1,a176_0x1787bb(0xf4)),'description':z[a176_0x1787bb(0x10c)]()[a176_0x1787bb(0xf0)](),'connection':z['string']()['min'](0x1,a176_0x1787bb(0xed)),'all_columns':z[a176_0x1787bb(0x10f)]()['optional'](),'columns':z['array'](ActivationColumnDefSchema)[a176_0x1787bb(0xf0)](),'schedule':ScheduleDefSchema[a176_0x1787bb(0xf0)](),'notification':NotificationDefSchema[a176_0x1787bb(0xf0)](),'connector_config':z[a176_0x1787bb(0xf9)](z['string'](),z[a176_0x1787bb(0xf2)]())['optional'](),'activation_template_id':z['string']()[a176_0x1787bb(0xfb)]()[a176_0x1787bb(0xf0)](),'behavior':ActivationBehaviorDefSchema[a176_0x1787bb(0xfb)]()[a176_0x1787bb(0xf0)](),'behaviors':ActivationBehaviorsDefSchema['optional'](),'run_after_journey_refresh':z[a176_0x1787bb(0x10f)]()[a176_0x1787bb(0xf0)](),'nested_workflow_project_name':z['string']()[a176_0x1787bb(0xf0)](),'nested_workflow_name':z['string']()['optional'](),'lock_enabled':z[a176_0x1787bb(0x10f)]()[a176_0x1787bb(0xf0)]()})['superRefine']((_0x16ab10,_0x131515)=>{const _0x3a7d38=a176_0x1787bb;_0x16ab10[_0x3a7d38(0x105)]!=null&&_0x16ab10[_0x3a7d38(0xef)]!=null&&_0x131515['addIssue']({'code':'custom','message':_0x3a7d38(0xfc),'path':['behavior']});});
@@ -1 +1 @@
1
- function a176_0x3ce5(_0x4f128c,_0x3ecf78){_0x4f128c=_0x4f128c-0x1da;var _0xf680db=a176_0xf680();var _0x3ce553=_0xf680db[_0x4f128c];return _0x3ce553;}function a176_0xf680(){var _0x166f78=['915693SBqpPD','908624lBrNXK','3461514YEqxGl','2SyXnJj','711747cZRGun','315647vhkZim','4KicqAu','4456571BenqBU','2733670jgPBHw'];a176_0xf680=function(){return _0x166f78;};return a176_0xf680();}(function(_0x303f8e,_0x13da46){var _0x5fe80e=a176_0x3ce5,_0x2e84b3=_0x303f8e();while(!![]){try{var _0x574b0a=-parseInt(_0x5fe80e(0x1da))/0x1+-parseInt(_0x5fe80e(0x1e1))/0x2*(-parseInt(_0x5fe80e(0x1de))/0x3)+-parseInt(_0x5fe80e(0x1db))/0x4*(parseInt(_0x5fe80e(0x1dd))/0x5)+parseInt(_0x5fe80e(0x1e0))/0x6+parseInt(_0x5fe80e(0x1dc))/0x7+-parseInt(_0x5fe80e(0x1df))/0x8+-parseInt(_0x5fe80e(0x1e2))/0x9;if(_0x574b0a===_0x13da46)break;else _0x2e84b3['push'](_0x2e84b3['shift']());}catch(_0x111f5e){_0x2e84b3['push'](_0x2e84b3['shift']());}}}(a176_0xf680,0x71391));export{JourneyStateTypeSchema,ReentryModeTypeSchema,WaitUnitTypeSchema,StepTypeValueSchema,EmbeddedSegmentDefSchema,CriteriaDefSchema,StepDefSchema,StageDefSchema,JourneyEntryDefSchema,JourneyDefSchema}from'./journey-schema.js';
1
+ (function(_0x3a8f4c,_0x369f66){var _0x3695de=a177_0x3fd8,_0x5cf15f=_0x3a8f4c();while(!![]){try{var _0x3ab8d6=-parseInt(_0x3695de(0x75))/0x1+-parseInt(_0x3695de(0x79))/0x2*(-parseInt(_0x3695de(0x76))/0x3)+parseInt(_0x3695de(0x7a))/0x4+-parseInt(_0x3695de(0x7b))/0x5*(parseInt(_0x3695de(0x77))/0x6)+-parseInt(_0x3695de(0x7e))/0x7+-parseInt(_0x3695de(0x7d))/0x8+parseInt(_0x3695de(0x7c))/0x9*(parseInt(_0x3695de(0x78))/0xa);if(_0x3ab8d6===_0x369f66)break;else _0x5cf15f['push'](_0x5cf15f['shift']());}catch(_0x9a2bb1){_0x5cf15f['push'](_0x5cf15f['shift']());}}}(a177_0x4401,0x8252d));export{JourneyStateTypeSchema,ReentryModeTypeSchema,WaitUnitTypeSchema,StepTypeValueSchema,EmbeddedSegmentDefSchema,CriteriaDefSchema,StepDefSchema,StageDefSchema,JourneyEntryDefSchema,JourneyDefSchema}from'./journey-schema.js';function a177_0x3fd8(_0x17408c,_0xc6131d){_0x17408c=_0x17408c-0x75;var _0x44019d=a177_0x4401();var _0x3fd819=_0x44019d[_0x17408c];return _0x3fd819;}function a177_0x4401(){var _0x45cbdf=['5320826fxcxhz','450358meszxj','3VezsCs','87078BTCETE','2365910oHWaNv','1567148Nxffgq','615340pdBDSn','205ktvBxp','63cNrTEu','2033856iMXMOj'];a177_0x4401=function(){return _0x45cbdf;};return a177_0x4401();}
@@ -1 +1 @@
1
- const a177_0x4f6e1b=a177_0x5eb4;(function(_0x4a79c8,_0x707c07){const _0x5bbca8=a177_0x5eb4,_0x3afa19=_0x4a79c8();while(!![]){try{const _0x4ecd1e=parseInt(_0x5bbca8(0x199))/0x1+parseInt(_0x5bbca8(0x188))/0x2+parseInt(_0x5bbca8(0x187))/0x3*(-parseInt(_0x5bbca8(0x183))/0x4)+-parseInt(_0x5bbca8(0x17e))/0x5*(-parseInt(_0x5bbca8(0x182))/0x6)+parseInt(_0x5bbca8(0x1a1))/0x7+-parseInt(_0x5bbca8(0x193))/0x8+parseInt(_0x5bbca8(0x198))/0x9*(parseInt(_0x5bbca8(0x18f))/0xa);if(_0x4ecd1e===_0x707c07)break;else _0x3afa19['push'](_0x3afa19['shift']());}catch(_0x3f0623){_0x3afa19['push'](_0x3afa19['shift']());}}}(a177_0x35f3,0xcc694));import{z}from'zod';import{RuleDefSchema}from'./segment-schema.js';import{ActivationDefSchema}from'./activation-schema.js';export const JourneyStateTypeSchema=z['enum']([a177_0x4f6e1b(0x1a6),a177_0x4f6e1b(0x181),a177_0x4f6e1b(0x180)]);function a177_0x5eb4(_0x3bb4a5,_0x16d7bd){_0x3bb4a5=_0x3bb4a5-0x17d;const _0x35f313=a177_0x35f3();let _0x5eb480=_0x35f313[_0x3bb4a5];return _0x5eb480;}export const ReentryModeTypeSchema=z['enum'](['no_reentry',a177_0x4f6e1b(0x18c),a177_0x4f6e1b(0x186)]);export const WaitUnitTypeSchema=z['enum']([a177_0x4f6e1b(0x19d),a177_0x4f6e1b(0x1a4)]);export const StepTypeValueSchema=z[a177_0x4f6e1b(0x1a9)](['wait',a177_0x4f6e1b(0x17d),a177_0x4f6e1b(0x190),a177_0x4f6e1b(0x1a3),'merge',a177_0x4f6e1b(0x19e),a177_0x4f6e1b(0x184)]);export const EmbeddedSegmentDefSchema=z[a177_0x4f6e1b(0x1a0)]({'description':z[a177_0x4f6e1b(0x19b)]()[a177_0x4f6e1b(0x1a5)](),'rule':RuleDefSchema});const JumpTargetDefSchema=z[a177_0x4f6e1b(0x1a0)]({'journey':z[a177_0x4f6e1b(0x19b)](),'stage':z['string'](),'bundle_id':z['string']()['optional']()});export const CriteriaDefSchema=z[a177_0x4f6e1b(0x1a0)]({'name':z['string'](),'description':z['string']()[a177_0x4f6e1b(0x1a5)](),'segment':z[a177_0x4f6e1b(0x19b)](),'target':JumpTargetDefSchema['optional']()});const WaitConditionTimeoutDefSchema=z['object']({'duration':z[a177_0x4f6e1b(0x19f)](),'unit':WaitUnitTypeSchema,'next':z['string']()[a177_0x4f6e1b(0x1a5)]()}),WaitConditionDefSchema=z[a177_0x4f6e1b(0x1a0)]({'segment':z[a177_0x4f6e1b(0x19b)](),'next':z[a177_0x4f6e1b(0x19b)]()[a177_0x4f6e1b(0x1a5)](),'timeout':WaitConditionTimeoutDefSchema[a177_0x4f6e1b(0x1a5)]()}),WaitStepParamsDefSchema=z['object']({'duration':z[a177_0x4f6e1b(0x19f)]()[a177_0x4f6e1b(0x1a5)](),'unit':WaitUnitTypeSchema[a177_0x4f6e1b(0x1a5)](),'wait_until':z[a177_0x4f6e1b(0x19b)]()[a177_0x4f6e1b(0x1a5)](),'condition':WaitConditionDefSchema[a177_0x4f6e1b(0x1a5)](),'days_of_week':z['array'](z[a177_0x4f6e1b(0x19b)]())[a177_0x4f6e1b(0x1a5)]()}),StepBaseFields={'name':z[a177_0x4f6e1b(0x19b)](),'uuid':z['string']()[a177_0x4f6e1b(0x1a5)](),'next':z[a177_0x4f6e1b(0x19b)]()[a177_0x4f6e1b(0x1a5)]()},WaitStepDefSchema=z[a177_0x4f6e1b(0x1a0)]({...StepBaseFields,'type':z[a177_0x4f6e1b(0x194)](a177_0x4f6e1b(0x17f)),'with':WaitStepParamsDefSchema}),ActivationStepParamsDefSchema=z[a177_0x4f6e1b(0x1a0)]({'activation':z[a177_0x4f6e1b(0x19b)]()}),ActivationStepDefSchema=z['object']({...StepBaseFields,'type':z[a177_0x4f6e1b(0x194)](a177_0x4f6e1b(0x17d)),'with':ActivationStepParamsDefSchema}),DecisionBranchDefSchema=z['object']({'name':z[a177_0x4f6e1b(0x19b)](),'segment':z['string']()[a177_0x4f6e1b(0x1a5)](),'segment_id':z['string']()['optional'](),'excluded':z['boolean']()[a177_0x4f6e1b(0x1a5)](),'next':z[a177_0x4f6e1b(0x19b)]()[a177_0x4f6e1b(0x1a5)]()}),DecisionPointStepParamsDefSchema=z['object']({'branches':z[a177_0x4f6e1b(0x197)](DecisionBranchDefSchema)}),DecisionPointStepDefSchema=z[a177_0x4f6e1b(0x1a0)]({...StepBaseFields,'type':z[a177_0x4f6e1b(0x194)](a177_0x4f6e1b(0x190)),'with':DecisionPointStepParamsDefSchema}),AbTestVariantDefSchema=z['object']({'id':z[a177_0x4f6e1b(0x19b)]()[a177_0x4f6e1b(0x1a5)](),'name':z[a177_0x4f6e1b(0x19b)](),'percentage':z[a177_0x4f6e1b(0x19f)](),'next':z[a177_0x4f6e1b(0x19b)]()[a177_0x4f6e1b(0x1a5)]()}),AbTestStepParamsDefSchema=z[a177_0x4f6e1b(0x1a0)]({'variants':z['array'](AbTestVariantDefSchema),'unique_id':z[a177_0x4f6e1b(0x19b)]()[a177_0x4f6e1b(0x1a5)](),'customized_split':z[a177_0x4f6e1b(0x18a)]()[a177_0x4f6e1b(0x1a5)]()}),AbTestStepDefSchema=z[a177_0x4f6e1b(0x1a0)]({...StepBaseFields,'type':z[a177_0x4f6e1b(0x194)](a177_0x4f6e1b(0x1a3)),'with':AbTestStepParamsDefSchema}),MergeStepDefSchema=z[a177_0x4f6e1b(0x1a0)]({...StepBaseFields,'type':z[a177_0x4f6e1b(0x194)](a177_0x4f6e1b(0x189))}),JumpStepParamsDefSchema=z['object']({'target':JumpTargetDefSchema}),JumpStepDefSchema=z['object']({...StepBaseFields,'type':z['literal'](a177_0x4f6e1b(0x19e)),'with':JumpStepParamsDefSchema}),EndStepDefSchema=z[a177_0x4f6e1b(0x1a0)]({...StepBaseFields,'type':z[a177_0x4f6e1b(0x194)](a177_0x4f6e1b(0x184))})[a177_0x4f6e1b(0x18e)]();export const StepDefSchema=z[a177_0x4f6e1b(0x19a)](a177_0x4f6e1b(0x18b),[WaitStepDefSchema,ActivationStepDefSchema,DecisionPointStepDefSchema,AbTestStepDefSchema,MergeStepDefSchema,JumpStepDefSchema,EndStepDefSchema]);export const StageDefSchema=z[a177_0x4f6e1b(0x1a0)]({'name':z[a177_0x4f6e1b(0x19b)](),'description':z[a177_0x4f6e1b(0x19b)]()['optional'](),'id':z[a177_0x4f6e1b(0x19b)]()[a177_0x4f6e1b(0x1a5)](),'entry_criteria':CriteriaDefSchema['optional'](),'exit_criteria':z[a177_0x4f6e1b(0x197)](CriteriaDefSchema)['optional'](),'milestone':CriteriaDefSchema[a177_0x4f6e1b(0x1a5)](),'root_step':z[a177_0x4f6e1b(0x19b)]()[a177_0x4f6e1b(0x1a5)](),'steps':z[a177_0x4f6e1b(0x197)](StepDefSchema)[a177_0x4f6e1b(0x1a5)]()});export const JourneyEntryDefSchema=z[a177_0x4f6e1b(0x1a0)]({'name':z[a177_0x4f6e1b(0x19b)]()['optional'](),'version':z[a177_0x4f6e1b(0x19b)]()[a177_0x4f6e1b(0x1a5)](),'state':JourneyStateTypeSchema[a177_0x4f6e1b(0x1a5)](),'latest':z['boolean']()['optional'](),'stages':z[a177_0x4f6e1b(0x197)](StageDefSchema),'id':z['string']()[a177_0x4f6e1b(0x1a5)](),'version_number':z[a177_0x4f6e1b(0x19f)]()['optional'](),'goal':CriteriaDefSchema[a177_0x4f6e1b(0x1a5)](),'reentry':ReentryModeTypeSchema['optional']()});export const JourneyDefSchema=z[a177_0x4f6e1b(0x195)](()=>z['object']({'type':z[a177_0x4f6e1b(0x194)](a177_0x4f6e1b(0x185)),'name':z[a177_0x4f6e1b(0x19b)]()[a177_0x4f6e1b(0x1a2)](0x1,'Journey\x20name\x20is\x20required'),'description':z[a177_0x4f6e1b(0x19b)]()['optional'](),'bundle_id':z['string']()['optional'](),'bundle_name':z[a177_0x4f6e1b(0x19b)]()[a177_0x4f6e1b(0x1a5)](),'folder_id':z['string']()['optional'](),'reentry':ReentryModeTypeSchema[a177_0x4f6e1b(0x1a5)](),'allow_reentry':z['boolean']()['optional'](),'goal':CriteriaDefSchema['optional'](),'id':z[a177_0x4f6e1b(0x19b)]()[a177_0x4f6e1b(0x1a5)](),'version':z['string']()[a177_0x4f6e1b(0x1a5)](),'version_number':z[a177_0x4f6e1b(0x19f)]()[a177_0x4f6e1b(0x1a5)](),'stages':z['array'](StageDefSchema)[a177_0x4f6e1b(0x1a5)](),'versions':z[a177_0x4f6e1b(0x197)](JourneyEntryDefSchema)[a177_0x4f6e1b(0x1a5)](),'journeys':z[a177_0x4f6e1b(0x197)](JourneyEntryDefSchema)[a177_0x4f6e1b(0x1a5)](),'segments':z[a177_0x4f6e1b(0x18d)](z['string'](),EmbeddedSegmentDefSchema)[a177_0x4f6e1b(0x1a5)](),'activations':z[a177_0x4f6e1b(0x18d)](z[a177_0x4f6e1b(0x19b)](),ActivationDefSchema)[a177_0x4f6e1b(0x1a5)]()})[a177_0x4f6e1b(0x191)](_0x52c6a3=>{const _0x334530=a177_0x4f6e1b,_0x2c853d=[_0x52c6a3[_0x334530(0x19c)],_0x52c6a3[_0x334530(0x1a7)],_0x52c6a3[_0x334530(0x196)]][_0x334530(0x1a8)](_0x43cede=>Array['isArray'](_0x43cede)&&_0x43cede['length']>0x0)['length'];return _0x2c853d===0x1;},{'message':a177_0x4f6e1b(0x192)}));function a177_0x35f3(){const _0x5ba0c4=['journey','reentry_always','3988755CThsQg','1765694LLilZw','merge','boolean','type','reentry_unless_goal_achieved','record','passthrough','157460yGpNBb','decision_point','refine','Journey\x20must\x20have\x20exactly\x20one\x20of:\x20journeys,\x20stages,\x20or\x20versions','13255552CZMTIO','literal','lazy','versions','array','288TAkxrb','1437420WWupmE','discriminatedUnion','string','journeys','day','jump','number','object','1584268YJgZUO','min','ab_test','week','optional','draft','stages','filter','enum','activation','1288890ePBRCs','wait','launched','simulation','18DEjEKy','4iSXftR','end'];a177_0x35f3=function(){return _0x5ba0c4;};return a177_0x35f3();}const _syncCheck1=!![],_syncCheck2=!![];void _syncCheck1,void _syncCheck2;
1
+ const a178_0xa51702=a178_0x9f7b;(function(_0x11f2bf,_0xd9bf85){const _0x540080=a178_0x9f7b,_0x140d6e=_0x11f2bf();while(!![]){try{const _0x378f01=-parseInt(_0x540080(0x14f))/0x1+parseInt(_0x540080(0x160))/0x2*(-parseInt(_0x540080(0x14a))/0x3)+parseInt(_0x540080(0x13f))/0x4+parseInt(_0x540080(0x164))/0x5*(parseInt(_0x540080(0x147))/0x6)+-parseInt(_0x540080(0x13c))/0x7*(-parseInt(_0x540080(0x15e))/0x8)+-parseInt(_0x540080(0x151))/0x9*(parseInt(_0x540080(0x15a))/0xa)+-parseInt(_0x540080(0x14e))/0xb;if(_0x378f01===_0xd9bf85)break;else _0x140d6e['push'](_0x140d6e['shift']());}catch(_0x1aa552){_0x140d6e['push'](_0x140d6e['shift']());}}}(a178_0x4b50,0xf1944));import{z}from'zod';import{RuleDefSchema}from'./segment-schema.js';import{ActivationDefSchema}from'./activation-schema.js';export const JourneyStateTypeSchema=z[a178_0xa51702(0x153)]([a178_0xa51702(0x161),a178_0xa51702(0x15b),a178_0xa51702(0x14d)]);export const ReentryModeTypeSchema=z[a178_0xa51702(0x153)]([a178_0xa51702(0x13a),a178_0xa51702(0x149),a178_0xa51702(0x166)]);export const WaitUnitTypeSchema=z['enum']([a178_0xa51702(0x148),a178_0xa51702(0x141)]);export const StepTypeValueSchema=z['enum']([a178_0xa51702(0x167),a178_0xa51702(0x13d),a178_0xa51702(0x143),a178_0xa51702(0x13e),a178_0xa51702(0x142),'jump',a178_0xa51702(0x154)]);export const EmbeddedSegmentDefSchema=z[a178_0xa51702(0x162)]({'description':z[a178_0xa51702(0x159)]()[a178_0xa51702(0x15f)](),'rule':RuleDefSchema});const JumpTargetDefSchema=z['object']({'journey':z[a178_0xa51702(0x159)](),'stage':z[a178_0xa51702(0x159)](),'bundle_id':z[a178_0xa51702(0x159)]()[a178_0xa51702(0x15f)]()});function a178_0x4b50(){const _0x360240=['record','type','array','journeys','string','1886870kLWIJR','simulation','boolean','literal','760TzPjjk','optional','292EiPMra','draft','object','journey','3599315MJLNVE','discriminatedUnion','reentry_always','wait','min','Journey\x20must\x20have\x20exactly\x20one\x20of:\x20journeys,\x20stages,\x20or\x20versions','no_reentry','jump','118958sBwBBz','activation','ab_test','4953120TPGAOB','lazy','week','merge','decision_point','Journey\x20name\x20is\x20required','isArray','filter','12UlAnFj','day','reentry_unless_goal_achieved','13326wkGEHU','length','stages','launched','5619581uHlwnC','1388777RLKKEN','refine','36zqGEsT','number','enum','end'];a178_0x4b50=function(){return _0x360240;};return a178_0x4b50();}export const CriteriaDefSchema=z[a178_0xa51702(0x162)]({'name':z[a178_0xa51702(0x159)](),'description':z[a178_0xa51702(0x159)]()['optional'](),'segment':z[a178_0xa51702(0x159)](),'target':JumpTargetDefSchema['optional']()});const WaitConditionTimeoutDefSchema=z[a178_0xa51702(0x162)]({'duration':z[a178_0xa51702(0x152)](),'unit':WaitUnitTypeSchema,'next':z[a178_0xa51702(0x159)]()[a178_0xa51702(0x15f)]()}),WaitConditionDefSchema=z[a178_0xa51702(0x162)]({'segment':z[a178_0xa51702(0x159)](),'next':z[a178_0xa51702(0x159)]()[a178_0xa51702(0x15f)](),'timeout':WaitConditionTimeoutDefSchema[a178_0xa51702(0x15f)]()}),WaitStepParamsDefSchema=z[a178_0xa51702(0x162)]({'duration':z[a178_0xa51702(0x152)]()[a178_0xa51702(0x15f)](),'unit':WaitUnitTypeSchema[a178_0xa51702(0x15f)](),'wait_until':z[a178_0xa51702(0x159)]()[a178_0xa51702(0x15f)](),'condition':WaitConditionDefSchema[a178_0xa51702(0x15f)](),'days_of_week':z['array'](z['string']())[a178_0xa51702(0x15f)]()}),StepBaseFields={'name':z[a178_0xa51702(0x159)](),'uuid':z[a178_0xa51702(0x159)]()['optional'](),'next':z[a178_0xa51702(0x159)]()[a178_0xa51702(0x15f)]()},WaitStepDefSchema=z[a178_0xa51702(0x162)]({...StepBaseFields,'type':z[a178_0xa51702(0x15d)](a178_0xa51702(0x167)),'with':WaitStepParamsDefSchema}),ActivationStepParamsDefSchema=z[a178_0xa51702(0x162)]({'activation':z[a178_0xa51702(0x159)]()}),ActivationStepDefSchema=z[a178_0xa51702(0x162)]({...StepBaseFields,'type':z[a178_0xa51702(0x15d)](a178_0xa51702(0x13d)),'with':ActivationStepParamsDefSchema}),DecisionBranchDefSchema=z[a178_0xa51702(0x162)]({'name':z[a178_0xa51702(0x159)](),'segment':z['string']()[a178_0xa51702(0x15f)](),'segment_id':z['string']()[a178_0xa51702(0x15f)](),'excluded':z[a178_0xa51702(0x15c)]()['optional'](),'next':z[a178_0xa51702(0x159)]()[a178_0xa51702(0x15f)]()}),DecisionPointStepParamsDefSchema=z[a178_0xa51702(0x162)]({'branches':z[a178_0xa51702(0x157)](DecisionBranchDefSchema)}),DecisionPointStepDefSchema=z[a178_0xa51702(0x162)]({...StepBaseFields,'type':z[a178_0xa51702(0x15d)]('decision_point'),'with':DecisionPointStepParamsDefSchema}),AbTestVariantDefSchema=z[a178_0xa51702(0x162)]({'id':z['string']()['optional'](),'name':z[a178_0xa51702(0x159)](),'percentage':z['number'](),'next':z['string']()[a178_0xa51702(0x15f)]()}),AbTestStepParamsDefSchema=z[a178_0xa51702(0x162)]({'variants':z['array'](AbTestVariantDefSchema),'unique_id':z[a178_0xa51702(0x159)]()[a178_0xa51702(0x15f)](),'customized_split':z[a178_0xa51702(0x15c)]()[a178_0xa51702(0x15f)]()}),AbTestStepDefSchema=z[a178_0xa51702(0x162)]({...StepBaseFields,'type':z['literal'](a178_0xa51702(0x13e)),'with':AbTestStepParamsDefSchema}),MergeStepDefSchema=z['object']({...StepBaseFields,'type':z['literal']('merge')}),JumpStepParamsDefSchema=z['object']({'target':JumpTargetDefSchema}),JumpStepDefSchema=z[a178_0xa51702(0x162)]({...StepBaseFields,'type':z['literal'](a178_0xa51702(0x13b)),'with':JumpStepParamsDefSchema}),EndStepDefSchema=z[a178_0xa51702(0x162)]({...StepBaseFields,'type':z[a178_0xa51702(0x15d)](a178_0xa51702(0x154))})['passthrough']();function a178_0x9f7b(_0x503efb,_0x56228c){_0x503efb=_0x503efb-0x138;const _0x4b5032=a178_0x4b50();let _0x9f7bec=_0x4b5032[_0x503efb];return _0x9f7bec;}export const StepDefSchema=z[a178_0xa51702(0x165)](a178_0xa51702(0x156),[WaitStepDefSchema,ActivationStepDefSchema,DecisionPointStepDefSchema,AbTestStepDefSchema,MergeStepDefSchema,JumpStepDefSchema,EndStepDefSchema]);export const StageDefSchema=z[a178_0xa51702(0x162)]({'name':z[a178_0xa51702(0x159)](),'description':z[a178_0xa51702(0x159)]()[a178_0xa51702(0x15f)](),'id':z[a178_0xa51702(0x159)]()[a178_0xa51702(0x15f)](),'entry_criteria':CriteriaDefSchema['optional'](),'exit_criteria':z['array'](CriteriaDefSchema)['optional'](),'milestone':CriteriaDefSchema[a178_0xa51702(0x15f)](),'root_step':z['string']()['optional'](),'steps':z[a178_0xa51702(0x157)](StepDefSchema)[a178_0xa51702(0x15f)]()});export const JourneyEntryDefSchema=z[a178_0xa51702(0x162)]({'name':z[a178_0xa51702(0x159)]()[a178_0xa51702(0x15f)](),'version':z['string']()['optional'](),'state':JourneyStateTypeSchema[a178_0xa51702(0x15f)](),'latest':z[a178_0xa51702(0x15c)]()[a178_0xa51702(0x15f)](),'stages':z[a178_0xa51702(0x157)](StageDefSchema),'id':z[a178_0xa51702(0x159)]()[a178_0xa51702(0x15f)](),'version_number':z[a178_0xa51702(0x152)]()[a178_0xa51702(0x15f)](),'goal':CriteriaDefSchema[a178_0xa51702(0x15f)](),'reentry':ReentryModeTypeSchema[a178_0xa51702(0x15f)]()});export const JourneyDefSchema=z[a178_0xa51702(0x140)](()=>z[a178_0xa51702(0x162)]({'type':z[a178_0xa51702(0x15d)](a178_0xa51702(0x163)),'name':z[a178_0xa51702(0x159)]()[a178_0xa51702(0x138)](0x1,a178_0xa51702(0x144)),'description':z[a178_0xa51702(0x159)]()[a178_0xa51702(0x15f)](),'bundle_id':z['string']()['optional'](),'bundle_name':z[a178_0xa51702(0x159)]()[a178_0xa51702(0x15f)](),'folder_id':z[a178_0xa51702(0x159)]()[a178_0xa51702(0x15f)](),'reentry':ReentryModeTypeSchema[a178_0xa51702(0x15f)](),'allow_reentry':z[a178_0xa51702(0x15c)]()[a178_0xa51702(0x15f)](),'goal':CriteriaDefSchema[a178_0xa51702(0x15f)](),'id':z['string']()['optional'](),'version':z['string']()['optional'](),'version_number':z[a178_0xa51702(0x152)]()['optional'](),'stages':z[a178_0xa51702(0x157)](StageDefSchema)[a178_0xa51702(0x15f)](),'versions':z['array'](JourneyEntryDefSchema)['optional'](),'journeys':z[a178_0xa51702(0x157)](JourneyEntryDefSchema)['optional'](),'segments':z[a178_0xa51702(0x155)](z['string'](),EmbeddedSegmentDefSchema)[a178_0xa51702(0x15f)](),'activations':z[a178_0xa51702(0x155)](z[a178_0xa51702(0x159)](),ActivationDefSchema)[a178_0xa51702(0x15f)]()})[a178_0xa51702(0x150)](_0x916adc=>{const _0x4b676c=a178_0xa51702,_0x2f5f26=[_0x916adc[_0x4b676c(0x158)],_0x916adc[_0x4b676c(0x14c)],_0x916adc['versions']][_0x4b676c(0x146)](_0x174b96=>Array[_0x4b676c(0x145)](_0x174b96)&&_0x174b96[_0x4b676c(0x14b)]>0x0)['length'];return _0x2f5f26===0x1;},{'message':a178_0xa51702(0x139)}));const _syncCheck1=!![],_syncCheck2=!![];void _syncCheck1,void _syncCheck2;
@@ -1 +1 @@
1
- (function(_0x567ef7,_0x48c20c){var _0x5802f1=a179_0x33b4,_0x442c52=_0x567ef7();while(!![]){try{var _0x4885bb=-parseInt(_0x5802f1(0xdd))/0x1*(parseInt(_0x5802f1(0xde))/0x2)+-parseInt(_0x5802f1(0xd8))/0x3*(parseInt(_0x5802f1(0xda))/0x4)+-parseInt(_0x5802f1(0xdb))/0x5+parseInt(_0x5802f1(0xd7))/0x6+parseInt(_0x5802f1(0xdc))/0x7*(-parseInt(_0x5802f1(0xd4))/0x8)+-parseInt(_0x5802f1(0xd5))/0x9*(-parseInt(_0x5802f1(0xd9))/0xa)+parseInt(_0x5802f1(0xd6))/0xb;if(_0x4885bb===_0x48c20c)break;else _0x442c52['push'](_0x442c52['shift']());}catch(_0x43d5ba){_0x442c52['push'](_0x442c52['shift']());}}}(a179_0xfc71,0x5ba7e));function a179_0x33b4(_0x50e17c,_0x528462){_0x50e17c=_0x50e17c-0xd4;var _0xfc7187=a179_0xfc71();var _0x33b498=_0xfc7187[_0x50e17c];return _0x33b498;}export{OperatorTypeSchema,TimeUnitSchema,AggregationTypeSchema,ArrayMatchingSchema,OperatorDefSchema,AggregationDefSchema,TimeWindowDefSchema,FilterColumnConditionDefSchema,FilterRuleDefSchema,ValueConditionDefSchema,BehaviorConditionDefSchema,ColumnConditionDefSchema,CompositeConditionDefSchema,SegmentRefConditionDefSchema,ConditionDefSchema,RuleDefSchema,SegmentDefSchema}from'./segment-schema.js';export{ScheduleTypeSchema,RepeatUnitSchema,ScheduleDefSchema,NotificationDefSchema,ActivationColumnDefSchema,ActivationBehaviorDefSchema,ActivationDefSchema}from'./activation-schema.js';function a179_0xfc71(){var _0x473338=['7HlkmOw','43ldGyRg','29828QLpEWf','1595704xlrkiA','9MDFIHe','13866380RtLVcZ','3326724pakNEH','3jWVfEt','3519220xpbCcO','896068ejQYwC','3633760snfCgz'];a179_0xfc71=function(){return _0x473338;};return a179_0xfc71();}
1
+ function a180_0x29b1(){var _0x87e4ca=['904980likrIg','10121930yrXycK','1199176fFKKRh','2102224gbNnNk','1084992fkzSQl','3733850UscxPq','582795jhmPHM'];a180_0x29b1=function(){return _0x87e4ca;};return a180_0x29b1();}(function(_0x2ec49e,_0x5860f3){var _0x33314d=a180_0x5079,_0x5058f9=_0x2ec49e();while(!![]){try{var _0x34ded3=parseInt(_0x33314d(0x1d5))/0x1+parseInt(_0x33314d(0x1d7))/0x2+parseInt(_0x33314d(0x1d4))/0x3+-parseInt(_0x33314d(0x1d1))/0x4+parseInt(_0x33314d(0x1d3))/0x5+parseInt(_0x33314d(0x1d2))/0x6+-parseInt(_0x33314d(0x1d6))/0x7;if(_0x34ded3===_0x5860f3)break;else _0x5058f9['push'](_0x5058f9['shift']());}catch(_0x4f8166){_0x5058f9['push'](_0x5058f9['shift']());}}}(a180_0x29b1,0x9fe29));function a180_0x5079(_0x19d554,_0x544375){_0x19d554=_0x19d554-0x1d1;var _0x29b154=a180_0x29b1();var _0x507989=_0x29b154[_0x19d554];return _0x507989;}export{OperatorTypeSchema,TimeUnitSchema,AggregationTypeSchema,ArrayMatchingSchema,OperatorDefSchema,AggregationDefSchema,TimeWindowDefSchema,FilterColumnConditionDefSchema,FilterRuleDefSchema,ValueConditionDefSchema,BehaviorConditionDefSchema,ColumnConditionDefSchema,CompositeConditionDefSchema,SegmentRefConditionDefSchema,ConditionDefSchema,RuleDefSchema,SegmentDefSchema}from'./segment-schema.js';export{ScheduleTypeSchema,RepeatUnitSchema,ScheduleDefSchema,NotificationDefSchema,ActivationColumnDefSchema,ActivationBehaviorDefSchema,ActivationDefSchema}from'./activation-schema.js';
@@ -1 +1 @@
1
- const a180_0x33f304=a180_0x1a34;(function(_0x45ccb4,_0x326652){const _0x2cbf76=a180_0x1a34,_0xf000b5=_0x45ccb4();while(!![]){try{const _0x582e4a=-parseInt(_0x2cbf76(0xec))/0x1*(parseInt(_0x2cbf76(0x12c))/0x2)+parseInt(_0x2cbf76(0x125))/0x3+-parseInt(_0x2cbf76(0xff))/0x4*(parseInt(_0x2cbf76(0x130))/0x5)+parseInt(_0x2cbf76(0xed))/0x6+parseInt(_0x2cbf76(0xee))/0x7*(parseInt(_0x2cbf76(0x106))/0x8)+parseInt(_0x2cbf76(0x112))/0x9*(-parseInt(_0x2cbf76(0x11f))/0xa)+parseInt(_0x2cbf76(0x10b))/0xb;if(_0x582e4a===_0x326652)break;else _0xf000b5['push'](_0xf000b5['shift']());}catch(_0x49c849){_0xf000b5['push'](_0xf000b5['shift']());}}}(a180_0x577f,0x50aca));function a180_0x1a34(_0x4a4c82,_0x3501b4){_0x4a4c82=_0x4a4c82-0xec;const _0x577f19=a180_0x577f();let _0x1a34a5=_0x577f19[_0x4a4c82];return _0x1a34a5;}import{z}from'zod';function a180_0x577f(){const _0x27b927=['segment','operator','MISSING_BETWEEN_BOUNDS','Timestamp\x20column\x20only\x20supports\x20TimeWithinPast,\x20TimeWithinNext,\x20or\x20TimeRange\x20operators\x20(got\x20\x27','Less','lazy','Column','Regexp','Min','\x27\x20requires\x20a\x20value','206090bSbPcf','all','has','GreaterEqual','Value','Operator\x20\x27','819144joRqCW','min','exclude','Between\x20operator\x20requires\x20\x27min\x27\x20and/or\x20\x27max\x27\x20values','month','CountDistinct','batch','197668HrOxkD','Greater','Contain','minute','1520635AMnZes','First','unit','max','Max','EndWith','string','LessEqual','any','MISSING_TIME_UNIT','addIssue','Count','5aFanlw','2451534IoYHJh','14sJvZkD','Last','And','number','record','custom','hour','object','day','StartWith','TimeRange','boolean','array','superRefine','enum','literal','TimeWithinPast','4ufhXVS','Segment\x20reference\x20must\x20not\x20be\x20empty','type','Average','value','Segment\x20name\x20is\x20required','TimeWithinNext','983184PpxvZW','optional','Sum','funnel_stage','from','7881841bcpotj','TimeRange\x20operator\x20requires\x20\x27duration\x27','include','Between','week','Behavior','\x27\x20requires\x20a\x20time\x20unit','225PdUyWR','union','\x27\x20is\x20only\x20valid\x20for\x20the\x20\x27timestamp\x27\x20column'];a180_0x577f=function(){return _0x27b927;};return a180_0x577f();}import{ActivationDefSchema}from'./activation-schema.js';export const OperatorTypeSchema=z[a180_0x33f304(0xfc)](['Equal',a180_0x33f304(0x12d),a180_0x33f304(0x119),'GreaterEqual',a180_0x33f304(0x137),'In','Between',a180_0x33f304(0x11c),'IsNull',a180_0x33f304(0xfe),'TimeWithinNext','Contain',a180_0x33f304(0xf7),a180_0x33f304(0x135),a180_0x33f304(0xf8)]);export const TimeUnitSchema=z['enum'](['second',a180_0x33f304(0x12f),a180_0x33f304(0xf4),a180_0x33f304(0xf6),a180_0x33f304(0x10f),a180_0x33f304(0x129),'year']);export const AggregationTypeSchema=z[a180_0x33f304(0xfc)]([a180_0x33f304(0x13b),a180_0x33f304(0x108),a180_0x33f304(0x102),a180_0x33f304(0x11d),a180_0x33f304(0x134),'CountDistinct',a180_0x33f304(0x131),a180_0x33f304(0xef)]);const TemporalValueSchema=z[a180_0x33f304(0x113)]([z[a180_0x33f304(0xf5)]({'timestamp':z['string']()}),z[a180_0x33f304(0xf5)]({'last':z[a180_0x33f304(0x113)]([z[a180_0x33f304(0xf1)](),z[a180_0x33f304(0xf2)](z[a180_0x33f304(0x136)](),z[a180_0x33f304(0xf1)]())]),'unit':z[a180_0x33f304(0x136)]()})]),OperatorValueSchema=z[a180_0x33f304(0x113)]([z[a180_0x33f304(0x136)](),z[a180_0x33f304(0xf1)](),z[a180_0x33f304(0xf9)](),TemporalValueSchema,z[a180_0x33f304(0xfa)](z[a180_0x33f304(0x113)]([z[a180_0x33f304(0x136)](),z[a180_0x33f304(0xf1)](),z[a180_0x33f304(0xf9)]()]))]),OPERATORS_REQUIRING_VALUE=new Set(['Equal',a180_0x33f304(0x12d),a180_0x33f304(0x122),a180_0x33f304(0x119),'LessEqual','In',a180_0x33f304(0x12e),a180_0x33f304(0xf7),a180_0x33f304(0x135),a180_0x33f304(0x11c),a180_0x33f304(0xfe),'TimeWithinNext']),OPERATORS_REQUIRING_UNIT=new Set([a180_0x33f304(0xfe),a180_0x33f304(0x105)]);export const OperatorDefSchema=z[a180_0x33f304(0xf5)]({'type':OperatorTypeSchema,'not':z['boolean']()[a180_0x33f304(0x107)](),'value':OperatorValueSchema[a180_0x33f304(0x107)](),'min':z[a180_0x33f304(0x113)]([z[a180_0x33f304(0xf1)](),z[a180_0x33f304(0x136)](),TemporalValueSchema])[a180_0x33f304(0x107)](),'max':z[a180_0x33f304(0x113)]([z[a180_0x33f304(0xf1)](),z[a180_0x33f304(0x136)](),TemporalValueSchema])[a180_0x33f304(0x107)](),'unit':TimeUnitSchema[a180_0x33f304(0x107)](),'duration':z[a180_0x33f304(0xf5)]({'day':z[a180_0x33f304(0xf1)]()[a180_0x33f304(0x107)](),'week':z[a180_0x33f304(0xf1)]()[a180_0x33f304(0x107)](),'month':z['number']()[a180_0x33f304(0x107)](),'year':z[a180_0x33f304(0xf1)]()[a180_0x33f304(0x107)](),'hour':z[a180_0x33f304(0xf1)]()['optional'](),'minute':z['number']()[a180_0x33f304(0x107)](),'second':z['number']()['optional']()})[a180_0x33f304(0x107)](),'from':z[a180_0x33f304(0xf5)]({'last':z[a180_0x33f304(0x113)]([z[a180_0x33f304(0xf1)](),z['string']()]),'unit':TimeUnitSchema})[a180_0x33f304(0x107)](),'reverse':z['boolean']()['optional']()})['superRefine']((_0x400bb6,_0x188b18)=>{const _0x5c2301=a180_0x33f304;OPERATORS_REQUIRING_VALUE[_0x5c2301(0x121)](_0x400bb6[_0x5c2301(0x101)])&&(_0x400bb6[_0x5c2301(0x103)]===undefined||_0x400bb6[_0x5c2301(0x103)]===null)&&_0x188b18['addIssue']({'code':_0x5c2301(0xf3),'message':_0x5c2301(0x124)+_0x400bb6['type']+_0x5c2301(0x11e),'path':['value']}),_0x400bb6[_0x5c2301(0x101)]===_0x5c2301(0x10e)&&_0x400bb6[_0x5c2301(0x126)]===undefined&&_0x400bb6[_0x5c2301(0x133)]===undefined&&_0x188b18[_0x5c2301(0x13a)]({'code':_0x5c2301(0xf3),'message':_0x5c2301(0x128),'params':{'validationCode':_0x5c2301(0x117)}}),OPERATORS_REQUIRING_UNIT['has'](_0x400bb6['type'])&&_0x400bb6[_0x5c2301(0x103)]!==undefined&&!_0x400bb6[_0x5c2301(0x132)]&&_0x188b18[_0x5c2301(0x13a)]({'code':_0x5c2301(0xf3),'message':_0x5c2301(0x124)+_0x400bb6[_0x5c2301(0x101)]+_0x5c2301(0x111),'path':[_0x5c2301(0x132)],'params':{'validationCode':_0x5c2301(0x139)}}),_0x400bb6['type']===_0x5c2301(0xf8)&&(!_0x400bb6['duration']&&_0x188b18[_0x5c2301(0x13a)]({'code':'custom','message':_0x5c2301(0x10c),'path':['duration']}),!_0x400bb6['from']&&_0x188b18[_0x5c2301(0x13a)]({'code':'custom','message':'TimeRange\x20operator\x20requires\x20\x27from\x27','path':[_0x5c2301(0x10a)]}));});export const ArrayMatchingSchema=z[a180_0x33f304(0x113)]([z['literal'](a180_0x33f304(0x138)),z['literal'](a180_0x33f304(0x120)),z['object']({'atLeast':z[a180_0x33f304(0xf1)]()}),z[a180_0x33f304(0xf5)]({'atMost':z[a180_0x33f304(0xf1)]()}),z[a180_0x33f304(0xf5)]({'exactly':z[a180_0x33f304(0xf1)]()})]);export const AggregationDefSchema=z['discriminatedUnion'](a180_0x33f304(0x101),[z[a180_0x33f304(0xf5)]({'type':z['enum']([a180_0x33f304(0x108),a180_0x33f304(0x11d),'Max',a180_0x33f304(0x102)]),'column':z[a180_0x33f304(0x136)](),'groupingColumns':z[a180_0x33f304(0xfa)](z[a180_0x33f304(0x136)]())['optional']()}),z['object']({'type':z[a180_0x33f304(0xfd)](a180_0x33f304(0x13b)),'groupingColumns':z[a180_0x33f304(0xfa)](z[a180_0x33f304(0x136)]())[a180_0x33f304(0x107)]()}),z[a180_0x33f304(0xf5)]({'type':z['literal'](a180_0x33f304(0x12a)),'columns':z['array'](z[a180_0x33f304(0x136)]())}),z[a180_0x33f304(0xf5)]({'type':z['enum']([a180_0x33f304(0x131),a180_0x33f304(0xef)]),'column':z[a180_0x33f304(0x136)](),'orderColumn':z[a180_0x33f304(0x136)](),'groupingColumns':z['array'](z[a180_0x33f304(0x136)]())[a180_0x33f304(0x107)]()})]);export const TimeWindowDefSchema=z[a180_0x33f304(0xf5)]({'duration':z[a180_0x33f304(0xf1)](),'unit':TimeUnitSchema});const TIMESTAMP_OPERATORS=new Set([a180_0x33f304(0xfe),'TimeWithinNext',a180_0x33f304(0xf8)]);export const FilterColumnConditionDefSchema=z['object']({'type':z['literal']('Column'),'column':z[a180_0x33f304(0x136)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema[a180_0x33f304(0x107)]()})[a180_0x33f304(0xfb)]((_0x3b5269,_0x32d2cb)=>{const _0x24ddeb=a180_0x33f304,_0xe382a5=_0x3b5269['operator']['type'];_0x3b5269['column']==='timestamp'?!TIMESTAMP_OPERATORS[_0x24ddeb(0x121)](_0xe382a5)&&_0x32d2cb[_0x24ddeb(0x13a)]({'code':_0x24ddeb(0xf3),'message':_0x24ddeb(0x118)+_0xe382a5+'\x27)','path':[_0x24ddeb(0x116),_0x24ddeb(0x101)]}):TIMESTAMP_OPERATORS[_0x24ddeb(0x121)](_0xe382a5)&&_0x32d2cb[_0x24ddeb(0x13a)]({'code':_0x24ddeb(0xf3),'message':'Operator\x20\x27'+_0xe382a5+_0x24ddeb(0x114),'path':[_0x24ddeb(0x116),_0x24ddeb(0x101)]});});export const FilterRuleDefSchema=z[a180_0x33f304(0xf5)]({'type':z[a180_0x33f304(0xfd)]('And'),'conditions':z['array'](FilterColumnConditionDefSchema)});export const ValueConditionDefSchema=z[a180_0x33f304(0x11a)](()=>z[a180_0x33f304(0xf5)]({'type':z['literal'](a180_0x33f304(0x123)),'attribute':z[a180_0x33f304(0x136)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema[a180_0x33f304(0x107)](),'exclude':z[a180_0x33f304(0xf9)]()[a180_0x33f304(0x107)](),'aggregation':AggregationDefSchema[a180_0x33f304(0x107)](),'source':z[a180_0x33f304(0x136)]()[a180_0x33f304(0x107)](),'filter':FilterRuleDefSchema[a180_0x33f304(0x107)](),'limit':z[a180_0x33f304(0xf1)]()[a180_0x33f304(0x107)]()}));export const BehaviorConditionDefSchema=z[a180_0x33f304(0x11a)](()=>z['object']({'type':z[a180_0x33f304(0xfd)](a180_0x33f304(0x110)),'attribute':z['string'](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema['optional'](),'exclude':z['boolean']()[a180_0x33f304(0x107)](),'aggregation':AggregationDefSchema['optional'](),'source':z[a180_0x33f304(0x136)]()[a180_0x33f304(0x107)](),'filter':FilterRuleDefSchema[a180_0x33f304(0x107)](),'timeWindow':TimeWindowDefSchema['optional'](),'limit':z[a180_0x33f304(0xf1)]()[a180_0x33f304(0x107)]()}));export const ColumnConditionDefSchema=z[a180_0x33f304(0xf5)]({'type':z[a180_0x33f304(0xfd)](a180_0x33f304(0x11b)),'column':z['string'](),'operator':OperatorDefSchema});export const CompositeConditionDefSchema=z[a180_0x33f304(0x11a)](()=>z[a180_0x33f304(0xf5)]({'type':z[a180_0x33f304(0xfc)]([a180_0x33f304(0xf0),'Or','Composite']),'conditions':z[a180_0x33f304(0xfa)](ConditionDefSchema),'description':z['string']()[a180_0x33f304(0x107)](),'expr':z['string']()[a180_0x33f304(0x107)]()}));export const SegmentRefConditionDefSchema=z[a180_0x33f304(0xf5)]({'type':z['enum']([a180_0x33f304(0x10d),a180_0x33f304(0x127)]),'segment':z[a180_0x33f304(0x136)]()[a180_0x33f304(0x126)](0x1,a180_0x33f304(0x100))});export const ConditionDefSchema=z['lazy'](()=>z['union']([ValueConditionDefSchema,BehaviorConditionDefSchema,ColumnConditionDefSchema,CompositeConditionDefSchema,SegmentRefConditionDefSchema]));export const RuleDefSchema=z[a180_0x33f304(0x11a)](()=>z['object']({'type':z['enum'](['And','Or','Composite']),'conditions':z[a180_0x33f304(0xfa)](ConditionDefSchema),'description':z[a180_0x33f304(0x136)]()[a180_0x33f304(0x107)](),'expr':z['string']()['optional']()}));export const SegmentDefSchema=z[a180_0x33f304(0xf5)]({'type':z[a180_0x33f304(0xfd)](a180_0x33f304(0x115))[a180_0x33f304(0x107)](),'name':z['string']()['min'](0x1,a180_0x33f304(0x104)),'description':z['string']()[a180_0x33f304(0x107)](),'folder':z[a180_0x33f304(0x136)]()['optional'](),'rule':RuleDefSchema[a180_0x33f304(0x107)](),'kind':z['enum']([a180_0x33f304(0x12b),'realtime',a180_0x33f304(0x109)])['optional'](),'visible':z[a180_0x33f304(0xf9)]()[a180_0x33f304(0x107)](),'activations':z[a180_0x33f304(0xfa)](ActivationDefSchema)[a180_0x33f304(0x107)]()});const _syncCheck1=!![],_syncCheck2=!![];void _syncCheck1,void _syncCheck2;
1
+ const a181_0x44e898=a181_0x3882;(function(_0x324dd8,_0xab7615){const _0x7e6fb=a181_0x3882,_0x1db2e3=_0x324dd8();while(!![]){try{const _0x5466d5=parseInt(_0x7e6fb(0x1be))/0x1*(-parseInt(_0x7e6fb(0x1e8))/0x2)+parseInt(_0x7e6fb(0x1e9))/0x3+parseInt(_0x7e6fb(0x1f5))/0x4*(-parseInt(_0x7e6fb(0x1c3))/0x5)+-parseInt(_0x7e6fb(0x1b9))/0x6+-parseInt(_0x7e6fb(0x1bb))/0x7*(parseInt(_0x7e6fb(0x1d4))/0x8)+-parseInt(_0x7e6fb(0x1eb))/0x9+parseInt(_0x7e6fb(0x200))/0xa;if(_0x5466d5===_0xab7615)break;else _0x1db2e3['push'](_0x1db2e3['shift']());}catch(_0x3b2c41){_0x1db2e3['push'](_0x1db2e3['shift']());}}}(a181_0xad42,0x60115));import{z}from'zod';import{ActivationDefSchema}from'./activation-schema.js';export const OperatorTypeSchema=z[a181_0x44e898(0x1bf)]([a181_0x44e898(0x1d3),'Greater','Less',a181_0x44e898(0x1e5),a181_0x44e898(0x1f2),'In',a181_0x44e898(0x1de),a181_0x44e898(0x1e0),a181_0x44e898(0x1f8),a181_0x44e898(0x204),a181_0x44e898(0x1b6),a181_0x44e898(0x202),a181_0x44e898(0x1d6),a181_0x44e898(0x1ba),a181_0x44e898(0x1f7)]);export const TimeUnitSchema=z['enum'](['second','minute','hour',a181_0x44e898(0x1bd),a181_0x44e898(0x1f0),a181_0x44e898(0x1cf),a181_0x44e898(0x1c7)]);export const AggregationTypeSchema=z['enum']([a181_0x44e898(0x1c4),a181_0x44e898(0x1ee),a181_0x44e898(0x1fe),a181_0x44e898(0x1fa),a181_0x44e898(0x1d7),'CountDistinct','First',a181_0x44e898(0x1b4)]);const TemporalValueSchema=z[a181_0x44e898(0x1d8)]([z['object']({'timestamp':z[a181_0x44e898(0x1bc)]()}),z[a181_0x44e898(0x1ea)]({'last':z[a181_0x44e898(0x1d8)]([z['number'](),z[a181_0x44e898(0x1f4)](z['string'](),z[a181_0x44e898(0x1e4)]())]),'unit':z[a181_0x44e898(0x1bc)]()})]),OperatorValueSchema=z[a181_0x44e898(0x1d8)]([z[a181_0x44e898(0x1bc)](),z[a181_0x44e898(0x1e4)](),z[a181_0x44e898(0x1df)](),TemporalValueSchema,z[a181_0x44e898(0x1c0)](z[a181_0x44e898(0x1d8)]([z['string'](),z[a181_0x44e898(0x1e4)](),z[a181_0x44e898(0x1df)]()]))]),OPERATORS_REQUIRING_VALUE=new Set([a181_0x44e898(0x1d3),a181_0x44e898(0x1da),a181_0x44e898(0x1e5),a181_0x44e898(0x1e6),'LessEqual','In',a181_0x44e898(0x202),'StartWith','EndWith',a181_0x44e898(0x1e0),'TimeWithinPast',a181_0x44e898(0x1b6)]),OPERATORS_REQUIRING_UNIT=new Set([a181_0x44e898(0x204),'TimeWithinNext']);export const OperatorDefSchema=z[a181_0x44e898(0x1ea)]({'type':OperatorTypeSchema,'not':z[a181_0x44e898(0x1df)]()[a181_0x44e898(0x1dc)](),'value':OperatorValueSchema[a181_0x44e898(0x1dc)](),'min':z[a181_0x44e898(0x1d8)]([z[a181_0x44e898(0x1e4)](),z[a181_0x44e898(0x1bc)](),TemporalValueSchema])[a181_0x44e898(0x1dc)](),'max':z['union']([z[a181_0x44e898(0x1e4)](),z[a181_0x44e898(0x1bc)](),TemporalValueSchema])['optional'](),'unit':TimeUnitSchema[a181_0x44e898(0x1dc)](),'duration':z[a181_0x44e898(0x1ea)]({'day':z[a181_0x44e898(0x1e4)]()[a181_0x44e898(0x1dc)](),'week':z[a181_0x44e898(0x1e4)]()[a181_0x44e898(0x1dc)](),'month':z['number']()[a181_0x44e898(0x1dc)](),'year':z[a181_0x44e898(0x1e4)]()[a181_0x44e898(0x1dc)](),'hour':z[a181_0x44e898(0x1e4)]()[a181_0x44e898(0x1dc)](),'minute':z['number']()['optional'](),'second':z[a181_0x44e898(0x1e4)]()[a181_0x44e898(0x1dc)]()})[a181_0x44e898(0x1dc)](),'from':z[a181_0x44e898(0x1ea)]({'last':z[a181_0x44e898(0x1d8)]([z[a181_0x44e898(0x1e4)](),z[a181_0x44e898(0x1bc)]()]),'unit':TimeUnitSchema})[a181_0x44e898(0x1dc)](),'reverse':z[a181_0x44e898(0x1df)]()[a181_0x44e898(0x1dc)]()})[a181_0x44e898(0x1cb)]((_0x5c6622,_0xdf06d1)=>{const _0x492ac7=a181_0x44e898;OPERATORS_REQUIRING_VALUE['has'](_0x5c6622[_0x492ac7(0x1ef)])&&(_0x5c6622[_0x492ac7(0x1ff)]===undefined||_0x5c6622[_0x492ac7(0x1ff)]===null)&&_0xdf06d1[_0x492ac7(0x1f3)]({'code':'custom','message':_0x492ac7(0x1b3)+_0x5c6622['type']+_0x492ac7(0x1cc),'path':['value']}),_0x5c6622['type']===_0x492ac7(0x1de)&&_0x5c6622['min']===undefined&&_0x5c6622[_0x492ac7(0x1c6)]===undefined&&_0xdf06d1[_0x492ac7(0x1f3)]({'code':_0x492ac7(0x1b2),'message':_0x492ac7(0x1d1),'params':{'validationCode':_0x492ac7(0x1c1)}}),OPERATORS_REQUIRING_UNIT['has'](_0x5c6622[_0x492ac7(0x1ef)])&&_0x5c6622[_0x492ac7(0x1ff)]!==undefined&&!_0x5c6622['unit']&&_0xdf06d1[_0x492ac7(0x1f3)]({'code':'custom','message':'Operator\x20\x27'+_0x5c6622[_0x492ac7(0x1ef)]+_0x492ac7(0x1ce),'path':[_0x492ac7(0x1c5)],'params':{'validationCode':_0x492ac7(0x1d2)}}),_0x5c6622[_0x492ac7(0x1ef)]===_0x492ac7(0x1f7)&&(!_0x5c6622[_0x492ac7(0x1fd)]&&_0xdf06d1[_0x492ac7(0x1f3)]({'code':_0x492ac7(0x1b2),'message':_0x492ac7(0x1f6),'path':[_0x492ac7(0x1fd)]}),!_0x5c6622[_0x492ac7(0x1b7)]&&_0xdf06d1['addIssue']({'code':_0x492ac7(0x1b2),'message':_0x492ac7(0x203),'path':['from']}));});export const ArrayMatchingSchema=z[a181_0x44e898(0x1d8)]([z[a181_0x44e898(0x1db)](a181_0x44e898(0x201)),z[a181_0x44e898(0x1db)]('all'),z['object']({'atLeast':z['number']()}),z[a181_0x44e898(0x1ea)]({'atMost':z[a181_0x44e898(0x1e4)]()}),z[a181_0x44e898(0x1ea)]({'exactly':z['number']()})]);export const AggregationDefSchema=z['discriminatedUnion'](a181_0x44e898(0x1ef),[z[a181_0x44e898(0x1ea)]({'type':z['enum']([a181_0x44e898(0x1ee),'Min','Max',a181_0x44e898(0x1fe)]),'column':z['string'](),'groupingColumns':z['array'](z[a181_0x44e898(0x1bc)]())[a181_0x44e898(0x1dc)]()}),z['object']({'type':z[a181_0x44e898(0x1db)](a181_0x44e898(0x1c4)),'groupingColumns':z[a181_0x44e898(0x1c0)](z[a181_0x44e898(0x1bc)]())[a181_0x44e898(0x1dc)]()}),z[a181_0x44e898(0x1ea)]({'type':z[a181_0x44e898(0x1db)](a181_0x44e898(0x1e7)),'columns':z[a181_0x44e898(0x1c0)](z[a181_0x44e898(0x1bc)]())}),z[a181_0x44e898(0x1ea)]({'type':z[a181_0x44e898(0x1bf)]([a181_0x44e898(0x1c2),a181_0x44e898(0x1b4)]),'column':z['string'](),'orderColumn':z['string'](),'groupingColumns':z[a181_0x44e898(0x1c0)](z[a181_0x44e898(0x1bc)]())[a181_0x44e898(0x1dc)]()})]);export const TimeWindowDefSchema=z[a181_0x44e898(0x1ea)]({'duration':z[a181_0x44e898(0x1e4)](),'unit':TimeUnitSchema});const TIMESTAMP_OPERATORS=new Set(['TimeWithinPast',a181_0x44e898(0x1b6),'TimeRange']);export const FilterColumnConditionDefSchema=z['object']({'type':z[a181_0x44e898(0x1db)]('Column'),'column':z[a181_0x44e898(0x1bc)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema['optional']()})[a181_0x44e898(0x1cb)]((_0x1a43ea,_0x4a7c8e)=>{const _0x331de6=a181_0x44e898,_0x121e70=_0x1a43ea[_0x331de6(0x1d5)][_0x331de6(0x1ef)];_0x1a43ea[_0x331de6(0x1e1)]==='timestamp'?!TIMESTAMP_OPERATORS['has'](_0x121e70)&&_0x4a7c8e[_0x331de6(0x1f3)]({'code':_0x331de6(0x1b2),'message':_0x331de6(0x1d9)+_0x121e70+'\x27)','path':[_0x331de6(0x1d5),_0x331de6(0x1ef)]}):TIMESTAMP_OPERATORS[_0x331de6(0x1d0)](_0x121e70)&&_0x4a7c8e['addIssue']({'code':_0x331de6(0x1b2),'message':_0x331de6(0x1b3)+_0x121e70+_0x331de6(0x1c8),'path':[_0x331de6(0x1d5),'type']});});export const FilterRuleDefSchema=z['object']({'type':z['literal'](a181_0x44e898(0x1b8)),'conditions':z[a181_0x44e898(0x1c0)](FilterColumnConditionDefSchema)});function a181_0x3882(_0x40e0a4,_0xd4031f){_0x40e0a4=_0x40e0a4-0x1b2;const _0xad4268=a181_0xad42();let _0x388296=_0xad4268[_0x40e0a4];return _0x388296;}export const ValueConditionDefSchema=z[a181_0x44e898(0x1b5)](()=>z[a181_0x44e898(0x1ea)]({'type':z[a181_0x44e898(0x1db)](a181_0x44e898(0x1fc)),'attribute':z[a181_0x44e898(0x1bc)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema[a181_0x44e898(0x1dc)](),'exclude':z['boolean']()['optional'](),'aggregation':AggregationDefSchema['optional'](),'source':z['string']()['optional'](),'filter':FilterRuleDefSchema[a181_0x44e898(0x1dc)](),'limit':z[a181_0x44e898(0x1e4)]()[a181_0x44e898(0x1dc)]()}));export const BehaviorConditionDefSchema=z[a181_0x44e898(0x1b5)](()=>z[a181_0x44e898(0x1ea)]({'type':z['literal'](a181_0x44e898(0x1ed)),'attribute':z[a181_0x44e898(0x1bc)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema[a181_0x44e898(0x1dc)](),'exclude':z[a181_0x44e898(0x1df)]()[a181_0x44e898(0x1dc)](),'aggregation':AggregationDefSchema['optional'](),'source':z[a181_0x44e898(0x1bc)]()[a181_0x44e898(0x1dc)](),'filter':FilterRuleDefSchema[a181_0x44e898(0x1dc)](),'timeWindow':TimeWindowDefSchema[a181_0x44e898(0x1dc)](),'limit':z[a181_0x44e898(0x1e4)]()[a181_0x44e898(0x1dc)]()}));export const ColumnConditionDefSchema=z[a181_0x44e898(0x1ea)]({'type':z[a181_0x44e898(0x1db)](a181_0x44e898(0x1fb)),'column':z[a181_0x44e898(0x1bc)](),'operator':OperatorDefSchema});export const CompositeConditionDefSchema=z['lazy'](()=>z['object']({'type':z['enum']([a181_0x44e898(0x1b8),'Or',a181_0x44e898(0x1dd)]),'conditions':z[a181_0x44e898(0x1c0)](ConditionDefSchema),'description':z['string']()[a181_0x44e898(0x1dc)](),'expr':z[a181_0x44e898(0x1bc)]()[a181_0x44e898(0x1dc)]()}));export const SegmentRefConditionDefSchema=z['object']({'type':z[a181_0x44e898(0x1bf)](['include',a181_0x44e898(0x1ec)]),'segment':z[a181_0x44e898(0x1bc)]()[a181_0x44e898(0x1e3)](0x1,a181_0x44e898(0x1ca))});export const ConditionDefSchema=z['lazy'](()=>z[a181_0x44e898(0x1d8)]([ValueConditionDefSchema,BehaviorConditionDefSchema,ColumnConditionDefSchema,CompositeConditionDefSchema,SegmentRefConditionDefSchema]));export const RuleDefSchema=z[a181_0x44e898(0x1b5)](()=>z[a181_0x44e898(0x1ea)]({'type':z['enum']([a181_0x44e898(0x1b8),'Or',a181_0x44e898(0x1dd)]),'conditions':z['array'](ConditionDefSchema),'description':z[a181_0x44e898(0x1bc)]()[a181_0x44e898(0x1dc)](),'expr':z[a181_0x44e898(0x1bc)]()['optional']()}));export const SegmentDefSchema=z[a181_0x44e898(0x1ea)]({'type':z[a181_0x44e898(0x1db)](a181_0x44e898(0x1c9))['optional'](),'name':z[a181_0x44e898(0x1bc)]()[a181_0x44e898(0x1e3)](0x1,a181_0x44e898(0x1f1)),'description':z['string']()[a181_0x44e898(0x1dc)](),'folder':z[a181_0x44e898(0x1bc)]()[a181_0x44e898(0x1dc)](),'rule':RuleDefSchema['optional'](),'kind':z['enum']([a181_0x44e898(0x1e2),a181_0x44e898(0x1f9),a181_0x44e898(0x1cd)])['optional'](),'visible':z[a181_0x44e898(0x1df)]()['optional'](),'activations':z['array'](ActivationDefSchema)[a181_0x44e898(0x1dc)]()});function a181_0xad42(){const _0x4c01ca=['1151538uvRrTt','EndWith','34013xoOxNG','string','day','83477MHGoxb','enum','array','MISSING_BETWEEN_BOUNDS','First','14065YmcbjK','Count','unit','max','year','\x27\x20is\x20only\x20valid\x20for\x20the\x20\x27timestamp\x27\x20column','segment','Segment\x20reference\x20must\x20not\x20be\x20empty','superRefine','\x27\x20requires\x20a\x20value','funnel_stage','\x27\x20requires\x20a\x20time\x20unit','month','has','Between\x20operator\x20requires\x20\x27min\x27\x20and/or\x20\x27max\x27\x20values','MISSING_TIME_UNIT','Equal','632PlnYsa','operator','StartWith','Max','union','Timestamp\x20column\x20only\x20supports\x20TimeWithinPast,\x20TimeWithinNext,\x20or\x20TimeRange\x20operators\x20(got\x20\x27','Greater','literal','optional','Composite','Between','boolean','Regexp','column','batch','min','number','GreaterEqual','Less','CountDistinct','14ceTJWP','1549428rSDLTA','object','799668SWcROI','exclude','Behavior','Sum','type','week','Segment\x20name\x20is\x20required','LessEqual','addIssue','record','556yvhERK','TimeRange\x20operator\x20requires\x20\x27duration\x27','TimeRange','IsNull','realtime','Min','Column','Value','duration','Average','value','15169990ElCKMI','any','Contain','TimeRange\x20operator\x20requires\x20\x27from\x27','TimeWithinPast','custom','Operator\x20\x27','Last','lazy','TimeWithinNext','from','And'];a181_0xad42=function(){return _0x4c01ca;};return a181_0xad42();}const _syncCheck1=!![],_syncCheck2=!![];void _syncCheck1,void _syncCheck2;
@@ -1 +1 @@
1
- const a181_0x5e0ff5=a181_0x5181;(function(_0x3a9008,_0x2ad329){const _0x2dd61d=a181_0x5181,_0xab1345=_0x3a9008();while(!![]){try{const _0x103361=parseInt(_0x2dd61d(0x1ba))/0x1+-parseInt(_0x2dd61d(0x1bb))/0x2*(-parseInt(_0x2dd61d(0x1b1))/0x3)+-parseInt(_0x2dd61d(0x1b5))/0x4*(parseInt(_0x2dd61d(0x1c2))/0x5)+-parseInt(_0x2dd61d(0x1af))/0x6+-parseInt(_0x2dd61d(0x1c4))/0x7*(-parseInt(_0x2dd61d(0x1b4))/0x8)+parseInt(_0x2dd61d(0x1bc))/0x9*(parseInt(_0x2dd61d(0x1b2))/0xa)+-parseInt(_0x2dd61d(0x1a7))/0xb;if(_0x103361===_0x2ad329)break;else _0xab1345['push'](_0xab1345['shift']());}catch(_0x38b55a){_0xab1345['push'](_0xab1345['shift']());}}}(a181_0x49c0,0x23407));import{readFileSync}from'fs';import*as a181_0xdcd597 from'path';import*as a181_0x56c8ef 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';import{validateAlwaysOnCampaignDef}from'../engage/always-on-campaign-validator.js';import{isJourneyDef}from'./journey-yaml.js';const VALID_CAMPAIGN_TYPES=new Set(['email',a181_0x5e0ff5(0x1ad)]);export{isJourneyDef};export function isCampaignDef(_0xc1746b){const _0x5181ec=a181_0x5e0ff5;if(typeof _0xc1746b!==_0x5181ec(0x1be)||_0xc1746b===null)return![];const _0x2feceb=_0xc1746b,_0xa3be=VALID_CAMPAIGN_TYPES['has'](_0x2feceb['campaign_type']);if(_0x2feceb['type']===_0x5181ec(0x1ac)&&_0xa3be)return!![];if(_0xa3be&&!_0x2feceb[_0x5181ec(0x1bd)])return!![];return![];}export function isTemplateDef(_0x1e46ab){const _0x4ccebd=a181_0x5e0ff5;return typeof _0x1e46ab===_0x4ccebd(0x1be)&&_0x1e46ab!==null&&'type'in _0x1e46ab&&_0x1e46ab['type']===_0x4ccebd(0x1b3);}export function isAlwaysOnCampaignDef(_0x28f06d){const _0x17e898=a181_0x5e0ff5;return typeof _0x28f06d===_0x17e898(0x1be)&&_0x28f06d!==null&&'type'in _0x28f06d&&_0x28f06d[_0x17e898(0x1bd)]===_0x17e898(0x1b6);}export function isValidationResult(_0x1c01a0){return!('skipped'in _0x1c01a0);}export function createParseErrorResult(_0x15a011,_0x2835a4,_0x44d1c8,_0x1b4836,_0x4a7fab=a181_0x5e0ff5(0x1a8)){const _0x1d3ac3=a181_0x5e0ff5;return{'filePath':_0x15a011,'relativePath':_0x2835a4,'source':_0x44d1c8,'result':{'valid':![],'errors':[{'level':_0x1d3ac3(0x1c8),'path':'','code':_0x1d3ac3(0x1a9),'message':_0x1b4836}],'warnings':[]},'fileType':_0x4a7fab};}function a181_0x49c0(){const _0x54e164=['utf-8','basename','campaign','push','valid','748152bwNEEG','result','3jpnIwh','23290ykyXci','template','24PvzQgZ','370684lkESki','always_on_campaign','map','journey','relative','54462OecGAt','360874qgopRh','99aMGPOz','type','object','message','parseDocument','filterType','5exPCAA','toJSON','332682EKUlDc','not\x20a\x20','length','warnings','error','454762atOfgm','segment','YAML_PARSE_ERROR'];a181_0x49c0=function(){return _0x54e164;};return a181_0x49c0();}export function validateYamlFile(_0x58e925,_0x8790d3,_0x26bee9={}){const _0x2ca69a=a181_0x5e0ff5,_0x1358ef=a181_0xdcd597[_0x2ca69a(0x1b9)](_0x8790d3,_0x58e925)||a181_0xdcd597[_0x2ca69a(0x1ab)](_0x58e925);try{const _0x1e2af9=readFileSync(_0x58e925,_0x2ca69a(0x1aa)),_0x182e11=a181_0x56c8ef[_0x2ca69a(0x1c0)](_0x1e2af9),_0x2fe1be=_0x182e11[_0x2ca69a(0x1c3)]();if(!_0x2fe1be)return createParseErrorResult(_0x58e925,_0x1358ef,_0x1e2af9,'Failed\x20to\x20parse\x20YAML\x20file\x20(empty\x20or\x20invalid)');let _0x2bdf58;if(isJourneyDef(_0x2fe1be,_0x58e925))_0x2bdf58=_0x2ca69a(0x1b8);else{if(isCampaignDef(_0x2fe1be))_0x2bdf58=_0x2ca69a(0x1ac);else{if(isAlwaysOnCampaignDef(_0x2fe1be))_0x2bdf58=_0x2ca69a(0x1b6);else isTemplateDef(_0x2fe1be)?_0x2bdf58='template':_0x2bdf58=_0x2ca69a(0x1a8);}}if(_0x26bee9[_0x2ca69a(0x1c1)]&&_0x2bdf58!==_0x26bee9[_0x2ca69a(0x1c1)])return{'filePath':_0x58e925,'relativePath':_0x1358ef,'skipped':!![],'reason':_0x2ca69a(0x1c5)+_0x26bee9['filterType']};const _0x44c69c={'source':_0x1e2af9,'document':_0x182e11};let _0x1e766b;if(_0x2bdf58==='journey')_0x1e766b=validateJourneyDef(_0x2fe1be,_0x44c69c);else{if(_0x2bdf58===_0x2ca69a(0x1ac))_0x1e766b=validateCampaignDef(_0x2fe1be,_0x44c69c);else{if(_0x2bdf58===_0x2ca69a(0x1b6))_0x1e766b=validateAlwaysOnCampaignDef(_0x2fe1be,_0x44c69c);else _0x2bdf58===_0x2ca69a(0x1b3)?_0x1e766b=validateTemplateDef(_0x2fe1be,_0x44c69c):_0x1e766b=validateSegmentDef(_0x2fe1be,_0x44c69c);}}return{'filePath':_0x58e925,'relativePath':_0x1358ef,'source':_0x1e2af9,'result':_0x1e766b,'fileType':_0x2bdf58};}catch(_0x341811){const _0x4ba692=_0x341811 instanceof Error?_0x341811[_0x2ca69a(0x1bf)]:String(_0x341811);return createParseErrorResult(_0x58e925,_0x1358ef,'','YAML\x20parse\x20error:\x20'+_0x4ba692);}}export function validateYamlFiles(_0x4cd9d2,_0x5d2a16,_0x21647f={}){const _0x42b76f=a181_0x5e0ff5;return _0x4cd9d2[_0x42b76f(0x1b7)](_0x3af4f7=>validateYamlFile(_0x3af4f7,_0x5d2a16,_0x21647f));}function a181_0x5181(_0x17af00,_0x3d07db){_0x17af00=_0x17af00-0x1a7;const _0x49c09=a181_0x49c0();let _0x518175=_0x49c09[_0x17af00];return _0x518175;}export function calculateSummary(_0xbf303){const _0x45af1f=a181_0x5e0ff5;let _0x12473f=0x0,_0x487943=0x0,_0x510b9e=0x0,_0x2385a6=0x0;for(const _0x5f3380 of _0xbf303){if(!isValidationResult(_0x5f3380)){_0x2385a6++;continue;}_0x5f3380[_0x45af1f(0x1b0)][_0x45af1f(0x1ae)]?_0x12473f++:_0x487943++,_0x510b9e+=_0x5f3380[_0x45af1f(0x1b0)][_0x45af1f(0x1c7)][_0x45af1f(0x1c6)];}return{'validCount':_0x12473f,'invalidCount':_0x487943,'warningCount':_0x510b9e,'skippedCount':_0x2385a6,'hasErrors':_0x487943>0x0};}
1
+ const a182_0x5c5929=a182_0x156c;(function(_0x10afd1,_0x23c4a3){const _0x2de1eb=a182_0x156c,_0x23a057=_0x10afd1();while(!![]){try{const _0x355599=-parseInt(_0x2de1eb(0x17a))/0x1+parseInt(_0x2de1eb(0x182))/0x2*(parseInt(_0x2de1eb(0x178))/0x3)+parseInt(_0x2de1eb(0x179))/0x4*(parseInt(_0x2de1eb(0x17f))/0x5)+parseInt(_0x2de1eb(0x17c))/0x6*(-parseInt(_0x2de1eb(0x18a))/0x7)+parseInt(_0x2de1eb(0x177))/0x8*(parseInt(_0x2de1eb(0x189))/0x9)+-parseInt(_0x2de1eb(0x188))/0xa+parseInt(_0x2de1eb(0x18b))/0xb;if(_0x355599===_0x23c4a3)break;else _0x23a057['push'](_0x23a057['shift']());}catch(_0x330c2a){_0x23a057['push'](_0x23a057['shift']());}}}(a182_0x4b31,0x90676));import{readFileSync}from'fs';import*as a182_0x376488 from'path';import*as a182_0x19c9c2 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 a182_0x156c(_0x537b1b,_0xfc4f4f){_0x537b1b=_0x537b1b-0x16e;const _0x4b313b=a182_0x4b31();let _0x156c97=_0x4b313b[_0x537b1b];return _0x156c97;}import{validateAlwaysOnCampaignDef}from'../engage/always-on-campaign-validator.js';import{isJourneyDef}from'./journey-yaml.js';const VALID_CAMPAIGN_TYPES=new Set([a182_0x5c5929(0x173),a182_0x5c5929(0x16f)]);export{isJourneyDef};export function isCampaignDef(_0x1f5f29){const _0x25ed26=a182_0x5c5929;if(typeof _0x1f5f29!==_0x25ed26(0x183)||_0x1f5f29===null)return![];const _0x893174=_0x1f5f29,_0x2643c5=VALID_CAMPAIGN_TYPES[_0x25ed26(0x171)](_0x893174[_0x25ed26(0x181)]);if(_0x893174[_0x25ed26(0x176)]===_0x25ed26(0x174)&&_0x2643c5)return!![];if(_0x2643c5&&!_0x893174['type'])return!![];return![];}export function isTemplateDef(_0x3e1d5f){const _0x3c00fb=a182_0x5c5929;return typeof _0x3e1d5f===_0x3c00fb(0x183)&&_0x3e1d5f!==null&&_0x3c00fb(0x176)in _0x3e1d5f&&_0x3e1d5f['type']===_0x3c00fb(0x18f);}export function isAlwaysOnCampaignDef(_0x50f58d){const _0x550ddc=a182_0x5c5929;return typeof _0x50f58d===_0x550ddc(0x183)&&_0x50f58d!==null&&_0x550ddc(0x176)in _0x50f58d&&_0x50f58d[_0x550ddc(0x176)]===_0x550ddc(0x17d);}export function isValidationResult(_0x15c7b4){return!('skipped'in _0x15c7b4);}function a182_0x4b31(){const _0x4396cc=['length','relative','basename','message','push','filterType','has','utf-8','email','campaign','toJSON','type','3436424SMgfvM','7023Ixpozh','4BqVrTN','410210EoOUVV','valid','264JhZYrS','always_on_campaign','result','1802110Uneaov','map','campaign_type','34GDUuCV','object','error','parseDocument','warnings','YAML\x20parse\x20error:\x20','11082530QuRbkF','9JSmegZ','159880XLCjlz','25136419MNaTwt','journey','YAML_PARSE_ERROR','segment','template'];a182_0x4b31=function(){return _0x4396cc;};return a182_0x4b31();}export function createParseErrorResult(_0x34794,_0xae2d76,_0x909930,_0x4fb88e,_0x358ba6=a182_0x5c5929(0x18e)){const _0x21601e=a182_0x5c5929;return{'filePath':_0x34794,'relativePath':_0xae2d76,'source':_0x909930,'result':{'valid':![],'errors':[{'level':_0x21601e(0x184),'path':'','code':_0x21601e(0x18d),'message':_0x4fb88e}],'warnings':[]},'fileType':_0x358ba6};}export function validateYamlFile(_0x136152,_0x410645,_0xc9a407={}){const _0x4aebaf=a182_0x5c5929,_0x4e4f1d=a182_0x376488[_0x4aebaf(0x191)](_0x410645,_0x136152)||a182_0x376488[_0x4aebaf(0x192)](_0x136152);try{const _0x27c8b6=readFileSync(_0x136152,_0x4aebaf(0x172)),_0x54b3ae=a182_0x19c9c2[_0x4aebaf(0x185)](_0x27c8b6),_0x914f13=_0x54b3ae[_0x4aebaf(0x175)]();if(!_0x914f13)return createParseErrorResult(_0x136152,_0x4e4f1d,_0x27c8b6,'Failed\x20to\x20parse\x20YAML\x20file\x20(empty\x20or\x20invalid)');let _0x27686d;if(isJourneyDef(_0x914f13,_0x136152))_0x27686d=_0x4aebaf(0x18c);else{if(isCampaignDef(_0x914f13))_0x27686d='campaign';else{if(isAlwaysOnCampaignDef(_0x914f13))_0x27686d=_0x4aebaf(0x17d);else isTemplateDef(_0x914f13)?_0x27686d=_0x4aebaf(0x18f):_0x27686d=_0x4aebaf(0x18e);}}if(_0xc9a407[_0x4aebaf(0x170)]&&_0x27686d!==_0xc9a407['filterType'])return{'filePath':_0x136152,'relativePath':_0x4e4f1d,'skipped':!![],'reason':'not\x20a\x20'+_0xc9a407[_0x4aebaf(0x170)]};const _0x18c494={'source':_0x27c8b6,'document':_0x54b3ae};let _0x50e990;if(_0x27686d===_0x4aebaf(0x18c))_0x50e990=validateJourneyDef(_0x914f13,_0x18c494);else{if(_0x27686d==='campaign')_0x50e990=validateCampaignDef(_0x914f13,_0x18c494);else{if(_0x27686d===_0x4aebaf(0x17d))_0x50e990=validateAlwaysOnCampaignDef(_0x914f13,_0x18c494);else _0x27686d===_0x4aebaf(0x18f)?_0x50e990=validateTemplateDef(_0x914f13,_0x18c494):_0x50e990=validateSegmentDef(_0x914f13,_0x18c494);}}return{'filePath':_0x136152,'relativePath':_0x4e4f1d,'source':_0x27c8b6,'result':_0x50e990,'fileType':_0x27686d};}catch(_0x13c7db){const _0x5e9618=_0x13c7db instanceof Error?_0x13c7db[_0x4aebaf(0x16e)]:String(_0x13c7db);return createParseErrorResult(_0x136152,_0x4e4f1d,'',_0x4aebaf(0x187)+_0x5e9618);}}export function validateYamlFiles(_0xbfdc89,_0x1785e8,_0x21db04={}){const _0x4199b0=a182_0x5c5929;return _0xbfdc89[_0x4199b0(0x180)](_0x18097a=>validateYamlFile(_0x18097a,_0x1785e8,_0x21db04));}export function calculateSummary(_0x4f58a5){const _0xb2810c=a182_0x5c5929;let _0x54c432=0x0,_0x55fa41=0x0,_0x26abdc=0x0,_0x108e8a=0x0;for(const _0xbd7081 of _0x4f58a5){if(!isValidationResult(_0xbd7081)){_0x108e8a++;continue;}_0xbd7081[_0xb2810c(0x17e)][_0xb2810c(0x17b)]?_0x54c432++:_0x55fa41++,_0x26abdc+=_0xbd7081[_0xb2810c(0x17e)][_0xb2810c(0x186)][_0xb2810c(0x190)];}return{'validCount':_0x54c432,'invalidCount':_0x55fa41,'warningCount':_0x26abdc,'skippedCount':_0x108e8a,'hasErrors':_0x55fa41>0x0};}
@@ -1 +1 @@
1
- (function(_0x4fb619,_0x41bc4d){const _0x47709f=a182_0x521d,_0x5032da=_0x4fb619();while(!![]){try{const _0xfba44e=-parseInt(_0x47709f(0x1d9))/0x1*(parseInt(_0x47709f(0x1b2))/0x2)+-parseInt(_0x47709f(0x1d8))/0x3+parseInt(_0x47709f(0x1d7))/0x4+-parseInt(_0x47709f(0x1db))/0x5+-parseInt(_0x47709f(0x1b9))/0x6+-parseInt(_0x47709f(0x1ce))/0x7*(-parseInt(_0x47709f(0x1cf))/0x8)+parseInt(_0x47709f(0x1bb))/0x9;if(_0xfba44e===_0x41bc4d)break;else _0x5032da['push'](_0x5032da['shift']());}catch(_0x51499e){_0x5032da['push'](_0x5032da['shift']());}}}(a182_0x3a52,0x6b9cc));import*as a182_0x48a8d8 from'yaml';import a182_0x5babd0 from'chalk';export{validateSegmentDef,validateRuleDef}from'./segment-validator.js';function a182_0x521d(_0x5c14b6,_0x568ab3){_0x5c14b6=_0x5c14b6-0x1b2;const _0x3a52cc=a182_0x3a52();let _0x521d1c=_0x3a52cc[_0x5c14b6];return _0x521d1c;}export function getLocationFromPath(_0x7b525b,_0x3e67b2,_0x2908de){const _0x352f92=a182_0x521d;if(!_0x7b525b||!_0x3e67b2)return undefined;try{let _0xf9a213=_0x7b525b[_0x352f92(0x1c7)](_0x2908de,!![]),_0x1df357=[..._0x2908de];while((!_0xf9a213||typeof _0xf9a213!==_0x352f92(0x1c0)||!(_0x352f92(0x1d1)in _0xf9a213)||!_0xf9a213[_0x352f92(0x1d1)])&&_0x1df357['length']>0x0){_0x1df357[_0x352f92(0x1bc)](),_0xf9a213=_0x1df357[_0x352f92(0x1c2)]>0x0?_0x7b525b[_0x352f92(0x1c7)](_0x1df357,!![]):_0x7b525b[_0x352f92(0x1be)];}if(!_0xf9a213||typeof _0xf9a213!==_0x352f92(0x1c0)||!(_0x352f92(0x1d1)in _0xf9a213)||!_0xf9a213[_0x352f92(0x1d1)])return undefined;const [_0xb4ed0f]=_0xf9a213['range'];return offsetToLocation(_0x3e67b2,_0xb4ed0f);}catch{return undefined;}}export function offsetToLocation(_0x427f5b,_0x54440e){const _0x51b11b=a182_0x521d;let _0x482c00=0x1,_0x4eccc8=0x1;for(let _0x3a434b=0x0;_0x3a434b<_0x54440e&&_0x3a434b<_0x427f5b[_0x51b11b(0x1c2)];_0x3a434b++){_0x427f5b[_0x3a434b]==='\x0a'?(_0x482c00++,_0x4eccc8=0x1):_0x4eccc8++;}return{'line':_0x482c00,'column':_0x4eccc8,'offset':_0x54440e};}function a182_0x3a52(){const _0x1eaf5d=['contents','issues','object','error','length','success','level','Invalid\x20YAML:\x20expected\x20an\x20object','cyan','getIn','invalid_union','min','number','message','safeParse','\x27:\x20','7FPFzTi','5863288AUvXMv','split','range','toString','path','errors','location','map','811080HWeXvL','1172778woBuvr','4EgMTYM','code','4302010PcOuWd','warnings','red','padStart','205314QdHJFr','parse','YAML\x20validation\x20error\x20at\x20\x27','data','dim','yellow','push','448908hOIMRZ','YAML\x20validation\x20error:\x20','11176857rwLynG','pop','repeat'];a182_0x3a52=function(){return _0x1eaf5d;};return a182_0x3a52();}export function pathToArray(_0x2d017b){const _0x20390a=a182_0x521d;if(!_0x2d017b)return[];return _0x2d017b[_0x20390a(0x1d0)]('.')['flatMap'](_0x553b62=>{const _0x3c6832=_0x553b62['match'](/^(\w+)\[(\d+)\]$/);if(_0x3c6832)return[_0x3c6832[0x1],parseInt(_0x3c6832[0x2],0xa)];return[_0x553b62];});}export function formatZodPath(_0x5275d1){const _0x2ee97d=a182_0x521d;let _0x48de0c='';for(const _0xd83657 of _0x5275d1){if(typeof _0xd83657===_0x2ee97d(0x1ca))_0x48de0c+='['+_0xd83657+']';else{const _0x4d9804=String(_0xd83657);_0x48de0c+=_0x48de0c?'.'+_0x4d9804:_0x4d9804;}}return _0x48de0c;}export function flattenZodIssues(_0x376192){const _0x110afb=a182_0x521d,_0x4324d9=[];for(const _0x5e8da8 of _0x376192){if(_0x5e8da8[_0x110afb(0x1da)]===_0x110afb(0x1c8)&&_0x110afb(0x1d4)in _0x5e8da8){const _0x4c4e0d=_0x5e8da8[_0x110afb(0x1d4)];let _0x10217e=_0x4c4e0d[0x0]||[];for(const _0x28d714 of _0x4c4e0d){_0x28d714['length']<_0x10217e['length']&&(_0x10217e=_0x28d714);}const _0x46cda7=_0x10217e[_0x110afb(0x1d6)](_0x364219=>({..._0x364219,'path':[..._0x5e8da8[_0x110afb(0x1d3)],..._0x364219[_0x110afb(0x1d3)]]}));_0x4324d9[_0x110afb(0x1b8)](...flattenZodIssues(_0x46cda7));}else _0x4324d9[_0x110afb(0x1b8)](_0x5e8da8);}return _0x4324d9;}export function safeParseYaml(_0x3d6087,_0x32c491){const _0x572a28=a182_0x521d,_0xe3a19d=a182_0x48a8d8[_0x572a28(0x1b3)](_0x3d6087);if(!_0xe3a19d||typeof _0xe3a19d!=='object')throw new Error(_0x572a28(0x1c5));const _0x46e143=_0x32c491[_0x572a28(0x1cc)](_0xe3a19d);if(!_0x46e143[_0x572a28(0x1c3)]){const _0x45ee2f=_0x46e143[_0x572a28(0x1c1)][_0x572a28(0x1bf)][0x0],_0xe550e8=formatZodPath(_0x45ee2f['path']);throw new Error(_0xe550e8?_0x572a28(0x1b4)+_0xe550e8+_0x572a28(0x1cd)+_0x45ee2f['message']:_0x572a28(0x1ba)+_0x45ee2f[_0x572a28(0x1cb)]);}return _0x46e143[_0x572a28(0x1b5)];}export function formatIssueWithContext(_0x19d958,_0x124fea,_0x5ed1b6){const _0x2cc96c=a182_0x521d,_0x3ef3b9=[],_0x4d52a7=_0x19d958[_0x2cc96c(0x1c4)]===_0x2cc96c(0x1c1),_0x1441fc=_0x4d52a7?a182_0x5babd0[_0x2cc96c(0x1dd)]:a182_0x5babd0[_0x2cc96c(0x1b7)],_0x2475fa=_0x4d52a7?a182_0x5babd0[_0x2cc96c(0x1dd)]:a182_0x5babd0[_0x2cc96c(0x1b7)],_0x3e3779=_0x5ed1b6?a182_0x5babd0[_0x2cc96c(0x1c6)](_0x5ed1b6+':'):'';if(_0x19d958[_0x2cc96c(0x1d5)]){const _0x593460=a182_0x5babd0['cyan'](_0x19d958[_0x2cc96c(0x1d5)]['line']+':'+_0x19d958[_0x2cc96c(0x1d5)]['column']);_0x3ef3b9['push'](''+_0x3e3779+_0x593460+':\x20'+_0x1441fc(_0x19d958['level'])+'\x20'+_0x2475fa('['+_0x19d958[_0x2cc96c(0x1da)]+']'));}else _0x3ef3b9[_0x2cc96c(0x1b8)](''+_0x3e3779+a182_0x5babd0['dim'](_0x19d958['path'])+':\x20'+_0x1441fc(_0x19d958[_0x2cc96c(0x1c4)])+'\x20'+_0x2475fa('['+_0x19d958[_0x2cc96c(0x1da)]+']'));_0x3ef3b9[_0x2cc96c(0x1b8)](_0x19d958[_0x2cc96c(0x1cb)]);if(_0x19d958[_0x2cc96c(0x1d5)]&&_0x124fea){const _0x32702b=_0x124fea[_0x2cc96c(0x1d0)]('\x0a'),{line:_0x40c774,column:_0x449804}=_0x19d958['location'],_0x908ded=Math['max'](0x1,_0x40c774-0x1),_0x42a1ef=Math[_0x2cc96c(0x1c9)](_0x32702b[_0x2cc96c(0x1c2)],_0x40c774+0x1);_0x3ef3b9['push']('');for(let _0x4bd03d=_0x908ded;_0x4bd03d<=_0x42a1ef;_0x4bd03d++){const _0x5b84e6=_0x32702b[_0x4bd03d-0x1]||'',_0x40db7b=a182_0x5babd0[_0x2cc96c(0x1b6)](_0x4bd03d[_0x2cc96c(0x1d2)]()[_0x2cc96c(0x1de)](0x4)),_0x4d54e0=a182_0x5babd0[_0x2cc96c(0x1b6)]('\x20|\x20');if(_0x4bd03d===_0x40c774){_0x3ef3b9[_0x2cc96c(0x1b8)]('\x20\x20'+_0x40db7b+_0x4d54e0+_0x1441fc(_0x5b84e6));const _0x363597='\x20'[_0x2cc96c(0x1bd)](0x4+0x3+_0x449804-0x1);_0x3ef3b9[_0x2cc96c(0x1b8)]('\x20\x20'+_0x363597+_0x1441fc('^'));}else _0x3ef3b9[_0x2cc96c(0x1b8)]('\x20\x20'+_0x40db7b+_0x4d54e0+a182_0x5babd0[_0x2cc96c(0x1b6)](_0x5b84e6));}}return _0x3ef3b9['join']('\x0a');}export function formatValidationResult(_0x299bd2,_0x2093fc,_0x49e6bd){const _0x5684a8=a182_0x521d,_0xb94691=[];for(const _0x177264 of _0x299bd2[_0x5684a8(0x1d4)]){_0xb94691[_0x5684a8(0x1b8)](formatIssueWithContext(_0x177264,_0x2093fc,_0x49e6bd)),_0xb94691[_0x5684a8(0x1b8)]('');}for(const _0x43515d of _0x299bd2[_0x5684a8(0x1dc)]){_0xb94691['push'](formatIssueWithContext(_0x43515d,_0x2093fc,_0x49e6bd)),_0xb94691['push']('');}return _0xb94691['join']('\x0a');}
1
+ function a183_0x1a60(_0xf248c2,_0x32128f){_0xf248c2=_0xf248c2-0x1f1;const _0x483c10=a183_0x483c();let _0x1a60d9=_0x483c10[_0xf248c2];return _0x1a60d9;}(function(_0xce9932,_0x261c3c){const _0x3ec48d=a183_0x1a60,_0x29019b=_0xce9932();while(!![]){try{const _0x2a9b90=parseInt(_0x3ec48d(0x21b))/0x1*(-parseInt(_0x3ec48d(0x20c))/0x2)+-parseInt(_0x3ec48d(0x1f8))/0x3*(-parseInt(_0x3ec48d(0x1f3))/0x4)+parseInt(_0x3ec48d(0x205))/0x5*(-parseInt(_0x3ec48d(0x214))/0x6)+parseInt(_0x3ec48d(0x1fa))/0x7*(parseInt(_0x3ec48d(0x1f4))/0x8)+parseInt(_0x3ec48d(0x218))/0x9+parseInt(_0x3ec48d(0x1fb))/0xa+parseInt(_0x3ec48d(0x206))/0xb*(-parseInt(_0x3ec48d(0x21c))/0xc);if(_0x2a9b90===_0x261c3c)break;else _0x29019b['push'](_0x29019b['shift']());}catch(_0x463419){_0x29019b['push'](_0x29019b['shift']());}}}(a183_0x483c,0x72d8b));import*as a183_0x50fc13 from'yaml';import a183_0x35fe44 from'chalk';export{validateSegmentDef,validateRuleDef}from'./segment-validator.js';export function getLocationFromPath(_0x20b025,_0x29aa91,_0xca3fe1){const _0x2e089c=a183_0x1a60;if(!_0x20b025||!_0x29aa91)return undefined;try{let _0x593cae=_0x20b025[_0x2e089c(0x217)](_0xca3fe1,!![]),_0x4f12c8=[..._0xca3fe1];while((!_0x593cae||typeof _0x593cae!==_0x2e089c(0x209)||!(_0x2e089c(0x202)in _0x593cae)||!_0x593cae[_0x2e089c(0x202)])&&_0x4f12c8['length']>0x0){_0x4f12c8['pop'](),_0x593cae=_0x4f12c8[_0x2e089c(0x211)]>0x0?_0x20b025[_0x2e089c(0x217)](_0x4f12c8,!![]):_0x20b025[_0x2e089c(0x219)];}if(!_0x593cae||typeof _0x593cae!==_0x2e089c(0x209)||!(_0x2e089c(0x202)in _0x593cae)||!_0x593cae['range'])return undefined;const [_0x1652e5]=_0x593cae[_0x2e089c(0x202)];return offsetToLocation(_0x29aa91,_0x1652e5);}catch{return undefined;}}export function offsetToLocation(_0x1b9c31,_0x498c6a){const _0x20d43d=a183_0x1a60;let _0x528f5a=0x1,_0x324ad9=0x1;for(let _0x1de39f=0x0;_0x1de39f<_0x498c6a&&_0x1de39f<_0x1b9c31[_0x20d43d(0x211)];_0x1de39f++){_0x1b9c31[_0x1de39f]==='\x0a'?(_0x528f5a++,_0x324ad9=0x1):_0x324ad9++;}return{'line':_0x528f5a,'column':_0x324ad9,'offset':_0x498c6a};}export function pathToArray(_0x3ea5e1){const _0x1ef371=a183_0x1a60;if(!_0x3ea5e1)return[];return _0x3ea5e1[_0x1ef371(0x207)]('.')[_0x1ef371(0x1f7)](_0x1ba6e2=>{const _0x4edb15=_0x1ba6e2['match'](/^(\w+)\[(\d+)\]$/);if(_0x4edb15)return[_0x4edb15[0x1],parseInt(_0x4edb15[0x2],0xa)];return[_0x1ba6e2];});}export function formatZodPath(_0x51d2a8){const _0x156074=a183_0x1a60;let _0x5dafcd='';for(const _0xaeed24 of _0x51d2a8){if(typeof _0xaeed24===_0x156074(0x210))_0x5dafcd+='['+_0xaeed24+']';else{const _0x130d6d=String(_0xaeed24);_0x5dafcd+=_0x5dafcd?'.'+_0x130d6d:_0x130d6d;}}return _0x5dafcd;}function a183_0x483c(){const _0x3cc7e5=['length','message','push','780rhntDa','code','cyan','getIn','5889483FiwDKe','contents','YAML\x20validation\x20error:\x20','1GCaTJT','494292nZCker','errors','issues','676JiEmti','17080mvFpTj','padStart','Invalid\x20YAML:\x20expected\x20an\x20object','flatMap','3507feWNZe','success','2030ygBRus','664310zmjwdM','YAML\x20validation\x20error\x20at\x20\x27','join','line','yellow','repeat','\x27:\x20','range','map','toString','390pCTNrh','187SZueOP','split','location','object','error','\x20|\x20','713462SdIcvB','dim','level','path','number'];a183_0x483c=function(){return _0x3cc7e5;};return a183_0x483c();}export function flattenZodIssues(_0x5597dd){const _0x3037b0=a183_0x1a60,_0x1582b0=[];for(const _0x517734 of _0x5597dd){if(_0x517734['code']==='invalid_union'&&_0x3037b0(0x1f1)in _0x517734){const _0xa10b5f=_0x517734[_0x3037b0(0x1f1)];let _0x474940=_0xa10b5f[0x0]||[];for(const _0x41bb7f of _0xa10b5f){_0x41bb7f[_0x3037b0(0x211)]<_0x474940[_0x3037b0(0x211)]&&(_0x474940=_0x41bb7f);}const _0x52dd62=_0x474940[_0x3037b0(0x203)](_0x10468d=>({..._0x10468d,'path':[..._0x517734[_0x3037b0(0x20f)],..._0x10468d[_0x3037b0(0x20f)]]}));_0x1582b0[_0x3037b0(0x213)](...flattenZodIssues(_0x52dd62));}else _0x1582b0[_0x3037b0(0x213)](_0x517734);}return _0x1582b0;}export function safeParseYaml(_0x190409,_0x59bcf9){const _0x308332=a183_0x1a60,_0xf80ed4=a183_0x50fc13['parse'](_0x190409);if(!_0xf80ed4||typeof _0xf80ed4!==_0x308332(0x209))throw new Error(_0x308332(0x1f6));const _0x1b7dfd=_0x59bcf9['safeParse'](_0xf80ed4);if(!_0x1b7dfd[_0x308332(0x1f9)]){const _0x430e79=_0x1b7dfd[_0x308332(0x20a)][_0x308332(0x1f2)][0x0],_0x234c2b=formatZodPath(_0x430e79[_0x308332(0x20f)]);throw new Error(_0x234c2b?_0x308332(0x1fc)+_0x234c2b+_0x308332(0x201)+_0x430e79[_0x308332(0x212)]:_0x308332(0x21a)+_0x430e79['message']);}return _0x1b7dfd['data'];}export function formatIssueWithContext(_0x3ec8dd,_0x1fc0f7,_0x24ff9f){const _0x2c1499=a183_0x1a60,_0x44211f=[],_0x562291=_0x3ec8dd[_0x2c1499(0x20e)]===_0x2c1499(0x20a),_0x27a8ef=_0x562291?a183_0x35fe44['red']:a183_0x35fe44[_0x2c1499(0x1ff)],_0x20d19e=_0x562291?a183_0x35fe44['red']:a183_0x35fe44[_0x2c1499(0x1ff)],_0x1e34d5=_0x24ff9f?a183_0x35fe44[_0x2c1499(0x216)](_0x24ff9f+':'):'';if(_0x3ec8dd[_0x2c1499(0x208)]){const _0x55c98a=a183_0x35fe44[_0x2c1499(0x216)](_0x3ec8dd['location'][_0x2c1499(0x1fe)]+':'+_0x3ec8dd[_0x2c1499(0x208)]['column']);_0x44211f[_0x2c1499(0x213)](''+_0x1e34d5+_0x55c98a+':\x20'+_0x27a8ef(_0x3ec8dd[_0x2c1499(0x20e)])+'\x20'+_0x20d19e('['+_0x3ec8dd[_0x2c1499(0x215)]+']'));}else _0x44211f[_0x2c1499(0x213)](''+_0x1e34d5+a183_0x35fe44[_0x2c1499(0x20d)](_0x3ec8dd[_0x2c1499(0x20f)])+':\x20'+_0x27a8ef(_0x3ec8dd['level'])+'\x20'+_0x20d19e('['+_0x3ec8dd[_0x2c1499(0x215)]+']'));_0x44211f['push'](_0x3ec8dd[_0x2c1499(0x212)]);if(_0x3ec8dd[_0x2c1499(0x208)]&&_0x1fc0f7){const _0x3b9c9a=_0x1fc0f7[_0x2c1499(0x207)]('\x0a'),{line:_0x1f58ab,column:_0x5ddc2b}=_0x3ec8dd[_0x2c1499(0x208)],_0x1f70e2=Math['max'](0x1,_0x1f58ab-0x1),_0x55eed7=Math['min'](_0x3b9c9a[_0x2c1499(0x211)],_0x1f58ab+0x1);_0x44211f[_0x2c1499(0x213)]('');for(let _0xb44866=_0x1f70e2;_0xb44866<=_0x55eed7;_0xb44866++){const _0x27a351=_0x3b9c9a[_0xb44866-0x1]||'',_0x22d366=a183_0x35fe44[_0x2c1499(0x20d)](_0xb44866[_0x2c1499(0x204)]()[_0x2c1499(0x1f5)](0x4)),_0x4bddea=a183_0x35fe44[_0x2c1499(0x20d)](_0x2c1499(0x20b));if(_0xb44866===_0x1f58ab){_0x44211f[_0x2c1499(0x213)]('\x20\x20'+_0x22d366+_0x4bddea+_0x27a8ef(_0x27a351));const _0x5b4853='\x20'[_0x2c1499(0x200)](0x4+0x3+_0x5ddc2b-0x1);_0x44211f[_0x2c1499(0x213)]('\x20\x20'+_0x5b4853+_0x27a8ef('^'));}else _0x44211f['push']('\x20\x20'+_0x22d366+_0x4bddea+a183_0x35fe44[_0x2c1499(0x20d)](_0x27a351));}}return _0x44211f[_0x2c1499(0x1fd)]('\x0a');}export function formatValidationResult(_0x274412,_0x259ead,_0x4dfbae){const _0x27cd91=a183_0x1a60,_0x5f51db=[];for(const _0xbf0fad of _0x274412['errors']){_0x5f51db[_0x27cd91(0x213)](formatIssueWithContext(_0xbf0fad,_0x259ead,_0x4dfbae)),_0x5f51db[_0x27cd91(0x213)]('');}for(const _0x2d2db4 of _0x274412['warnings']){_0x5f51db[_0x27cd91(0x213)](formatIssueWithContext(_0x2d2db4,_0x259ead,_0x4dfbae)),_0x5f51db[_0x27cd91(0x213)]('');}return _0x5f51db[_0x27cd91(0x1fd)]('\x0a');}