@treasuredata/tdx 2026.7.0 → 2026.7.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 (229) hide show
  1. package/dist/bin.js +1 -1
  2. package/dist/build-info.json +3 -3
  3. package/dist/cli-categories.js +1 -1
  4. package/dist/cli.js +1 -1
  5. package/dist/commands/activations.js +1 -1
  6. package/dist/commands/agent-command.js +1 -1
  7. package/dist/commands/agent-test-command.js +1 -1
  8. package/dist/commands/api-command.js +1 -1
  9. package/dist/commands/auth-command.js +1 -1
  10. package/dist/commands/cas-command.js +1 -1
  11. package/dist/commands/cas-segment-command.js +1 -1
  12. package/dist/commands/chat-command.js +1 -1
  13. package/dist/commands/claude-command.js +1 -1
  14. package/dist/commands/claude-statusline-command.js +1 -1
  15. package/dist/commands/claude-usage-command.js +1 -1
  16. package/dist/commands/command.js +1 -1
  17. package/dist/commands/connection-command.js +1 -1
  18. package/dist/commands/databases.js +1 -1
  19. package/dist/commands/delivery-command.js +1 -1
  20. package/dist/commands/describe.js +1 -1
  21. package/dist/commands/engage-campaign-pull-command.js +1 -1
  22. package/dist/commands/engage-campaign-push-command.js +1 -1
  23. package/dist/commands/engage-campaign-validate-command.js +1 -1
  24. package/dist/commands/engage-command.js +1 -1
  25. package/dist/commands/engage-template-pull-command.js +1 -1
  26. package/dist/commands/engage-template-push-command.js +1 -1
  27. package/dist/commands/engage-template-validate-command.js +1 -1
  28. package/dist/commands/job-command.js +1 -1
  29. package/dist/commands/journey-command.js +1 -1
  30. package/dist/commands/journey-validate-command.js +1 -1
  31. package/dist/commands/llm-command.js +1 -1
  32. package/dist/commands/mcp-command.js +1 -1
  33. package/dist/commands/parent-segment-command.js +1 -1
  34. package/dist/commands/policy-command.js +1 -1
  35. package/dist/commands/profile-command.js +1 -1
  36. package/dist/commands/profiles-command.js +1 -1
  37. package/dist/commands/query-command.js +1 -1
  38. package/dist/commands/schedule-command.js +1 -1
  39. package/dist/commands/segment-command.js +1 -1
  40. package/dist/commands/segment-create-command.js +1 -1
  41. package/dist/commands/segment-fields-command.js +1 -1
  42. package/dist/commands/segment-move-command.js +1 -1
  43. package/dist/commands/segment-pull-command.js +1 -1
  44. package/dist/commands/segment-push-command.js +1 -1
  45. package/dist/commands/segment-update-command.js +1 -1
  46. package/dist/commands/segment-use-command.js +1 -1
  47. package/dist/commands/segment-validate-command.js +1 -1
  48. package/dist/commands/segments.js +1 -1
  49. package/dist/commands/show.js +1 -1
  50. package/dist/commands/status-command.js +1 -1
  51. package/dist/commands/table-deleted.js +1 -1
  52. package/dist/commands/tables.js +1 -1
  53. package/dist/commands/unset-command.js +1 -1
  54. package/dist/commands/upgrade-command.js +1 -1
  55. package/dist/commands/use-command.js +1 -1
  56. package/dist/commands/user-command.js +1 -1
  57. package/dist/commands/work-command.js +1 -1
  58. package/dist/commands/workflow-command.js +1 -1
  59. package/dist/core/auth.js +1 -1
  60. package/dist/core/command-output.js +1 -1
  61. package/dist/core/config.js +1 -1
  62. package/dist/core/connection-cache.js +1 -1
  63. package/dist/core/constants.js +1 -1
  64. package/dist/core/credential-cache.js +1 -1
  65. package/dist/core/global-context.js +1 -1
  66. package/dist/core/keychain.js +1 -1
  67. package/dist/core/oauth-keychain.js +1 -1
  68. package/dist/core/oauth.js +1 -1
  69. package/dist/core/profile.js +1 -1
  70. package/dist/core/project-config.js +1 -1
  71. package/dist/core/session.js +1 -1
  72. package/dist/core/user-cache.js +1 -1
  73. package/dist/core/version.js +1 -1
  74. package/dist/index.js +1 -1
  75. package/dist/mcp/server.js +1 -1
  76. package/dist/mcp/tools/index.js +1 -1
  77. package/dist/mcp/tools/tdx-run.js +1 -1
  78. package/dist/mcp/tools/tdx-search.js +1 -1
  79. package/dist/mcp/tools/work-create-item.js +1 -1
  80. package/dist/mcp/utils.js +1 -1
  81. package/dist/proxy/claude-usage-tracker.js +1 -1
  82. package/dist/proxy/passthrough-server.js +1 -1
  83. package/dist/proxy/sse-usage-parser.js +1 -1
  84. package/dist/sdk/agent/agent-config.js +1 -1
  85. package/dist/sdk/agent/agent-ref-parser.js +1 -1
  86. package/dist/sdk/agent/agent-yaml.js +1 -1
  87. package/dist/sdk/agent/test/evaluator.js +1 -1
  88. package/dist/sdk/agent/test/executor.js +1 -1
  89. package/dist/sdk/agent/test/index.js +1 -1
  90. package/dist/sdk/agent/test/output.js +1 -1
  91. package/dist/sdk/agent/test/parser.js +1 -1
  92. package/dist/sdk/agent/tool-target-registry.js +1 -1
  93. package/dist/sdk/api.js +1 -1
  94. package/dist/sdk/cas/cas-api-client.js +1 -1
  95. package/dist/sdk/cas/cas-audience-yaml.js +1 -1
  96. package/dist/sdk/cas/cas-segment-yaml.js +1 -1
  97. package/dist/sdk/cas/index.js +1 -1
  98. package/dist/sdk/cas/pull-workflow.js +1 -1
  99. package/dist/sdk/cas/push-workflow.js +1 -1
  100. package/dist/sdk/client/cdp-api-client.js +1 -1
  101. package/dist/sdk/client/delivery-api-client.js +1 -1
  102. package/dist/sdk/client/endpoints.js +1 -1
  103. package/dist/sdk/client/engage-api-client.js +1 -1
  104. package/dist/sdk/client/http-client.d.ts +1 -0
  105. package/dist/sdk/client/http-client.d.ts.map +1 -1
  106. package/dist/sdk/client/http-client.js +1 -1
  107. package/dist/sdk/client/http-client.js.map +1 -1
  108. package/dist/sdk/client/llm-api-client.js +1 -1
  109. package/dist/sdk/client/oauth-refresh.js +1 -1
  110. package/dist/sdk/client/rate-limiter.js +1 -1
  111. package/dist/sdk/client/td-api-client.js +1 -1
  112. package/dist/sdk/client/trino-api-client.js +1 -1
  113. package/dist/sdk/client/workflow-client.js +1 -1
  114. package/dist/sdk/connection-validator.js +1 -1
  115. package/dist/sdk/connection.js +1 -1
  116. package/dist/sdk/delivery.js +1 -1
  117. package/dist/sdk/engage/campaign-pull.js +1 -1
  118. package/dist/sdk/engage/campaign-push.js +1 -1
  119. package/dist/sdk/engage/campaign-validator.js +1 -1
  120. package/dist/sdk/engage/campaign-yaml.js +1 -1
  121. package/dist/sdk/engage/template-pull.js +1 -1
  122. package/dist/sdk/engage/template-push.js +1 -1
  123. package/dist/sdk/engage/template-validator.js +1 -1
  124. package/dist/sdk/engage/template-yaml.js +1 -1
  125. package/dist/sdk/engage/types/campaign-def.js +1 -1
  126. package/dist/sdk/engage/types/campaign-schema.js +1 -1
  127. package/dist/sdk/engage/types/template-schema.js +1 -1
  128. package/dist/sdk/engage.js +1 -1
  129. package/dist/sdk/errors.js +1 -1
  130. package/dist/sdk/index.js +1 -1
  131. package/dist/sdk/io/index.js +1 -1
  132. package/dist/sdk/io/node-filesystem.js +1 -1
  133. package/dist/sdk/job.js +1 -1
  134. package/dist/sdk/journey.js +1 -1
  135. package/dist/sdk/llm/chat-cache.js +1 -1
  136. package/dist/sdk/llm/index.js +1 -1
  137. package/dist/sdk/llm/llm-backup-utils.js +1 -1
  138. package/dist/sdk/llm/model-factors.js +1 -1
  139. package/dist/sdk/llm/user-settings.js +1 -1
  140. package/dist/sdk/personalization.js +1 -1
  141. package/dist/sdk/policy.js +1 -1
  142. package/dist/sdk/query/deleted-table-validation.js +1 -1
  143. package/dist/sdk/query/index.js +1 -1
  144. package/dist/sdk/query/sql-parser.js +1 -1
  145. package/dist/sdk/realtime.js +1 -1
  146. package/dist/sdk/schedule.js +1 -1
  147. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  148. package/dist/sdk/segment/fields-display.js +1 -1
  149. package/dist/sdk/segment/file-discovery.js +1 -1
  150. package/dist/sdk/segment/journey-utils.js +1 -1
  151. package/dist/sdk/segment/journey-validator.js +1 -1
  152. package/dist/sdk/segment/journey-yaml.js +1 -1
  153. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  154. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  155. package/dist/sdk/segment/pull-workflow.js +1 -1
  156. package/dist/sdk/segment/push-recovery.js +1 -1
  157. package/dist/sdk/segment/push-workflow.js +1 -1
  158. package/dist/sdk/segment/resolution-context.js +1 -1
  159. package/dist/sdk/segment/segment-path-parser.js +1 -1
  160. package/dist/sdk/segment/segment-ref-parser.js +1 -1
  161. package/dist/sdk/segment/segment-validator.js +1 -1
  162. package/dist/sdk/segment/target-resolution.js +1 -1
  163. package/dist/sdk/segment/tdx-config.js +1 -1
  164. package/dist/sdk/segment/types/activation-schema.js +1 -1
  165. package/dist/sdk/segment/types/journey-def.js +1 -1
  166. package/dist/sdk/segment/types/journey-schema.js +1 -1
  167. package/dist/sdk/segment/types/segment-def.js +1 -1
  168. package/dist/sdk/segment/types/segment-schema.js +1 -1
  169. package/dist/sdk/segment/validate-files.js +1 -1
  170. package/dist/sdk/segment/yaml-validator.js +1 -1
  171. package/dist/sdk/segment.js +1 -1
  172. package/dist/sdk/types/index.js +1 -1
  173. package/dist/sdk/types/progress.js +1 -1
  174. package/dist/sdk/types/workspace.js +1 -1
  175. package/dist/sdk/user.js +1 -1
  176. package/dist/sdk/util/format-detector.js +1 -1
  177. package/dist/sdk/util/formatters.js +1 -1
  178. package/dist/sdk/util/index.js +1 -1
  179. package/dist/sdk/util/paginate.js +1 -1
  180. package/dist/sdk/util/tree-formatter.js +1 -1
  181. package/dist/sdk/util/tree-search.js +1 -1
  182. package/dist/sdk/workflow/archive-validation.js +1 -1
  183. package/dist/sdk/workflow/clone-workflow.js +1 -1
  184. package/dist/sdk/workflow/index.js +1 -1
  185. package/dist/sdk/workflow/pull-workflow.js +1 -1
  186. package/dist/sdk/workflow/push-workflow.js +1 -1
  187. package/dist/sdk/workflow/task-graph.js +1 -1
  188. package/dist/sdk/workflow/tdx-config.js +1 -1
  189. package/dist/sdk/workflow/workflow-utils.js +1 -1
  190. package/dist/sdk/workspace/access-tracker.js +1 -1
  191. package/dist/sdk/workspace/frontmatter.js +1 -1
  192. package/dist/sdk/workspace/git.js +1 -1
  193. package/dist/sdk/workspace/index.js +1 -1
  194. package/dist/sdk/workspace/templates.js +1 -1
  195. package/dist/sdk/workspace/weekly.js +1 -1
  196. package/dist/sdk/workspace/wikilinks.js +1 -1
  197. package/dist/test-utils/command-runner.js +1 -1
  198. package/dist/test-utils/factories.js +1 -1
  199. package/dist/test-utils/fixtures.js +1 -1
  200. package/dist/test-utils/http-mock.js +1 -1
  201. package/dist/test-utils/index.js +1 -1
  202. package/dist/utils/async.js +1 -1
  203. package/dist/utils/colors.js +1 -1
  204. package/dist/utils/diff.js +1 -1
  205. package/dist/utils/file-permissions.js +1 -1
  206. package/dist/utils/file-reader.js +1 -1
  207. package/dist/utils/github-releases.js +1 -1
  208. package/dist/utils/global-cache.js +1 -1
  209. package/dist/utils/json-loader.js +1 -1
  210. package/dist/utils/local-cache.js +1 -1
  211. package/dist/utils/logger/formatters/default-formatter.js +1 -1
  212. package/dist/utils/logger/formatters/index.js +1 -1
  213. package/dist/utils/logger/handlers/console-handler.js +1 -1
  214. package/dist/utils/logger/handlers/file-handler.js +1 -1
  215. package/dist/utils/logger/handlers/index.js +1 -1
  216. package/dist/utils/logger/handlers/null-handler.js +1 -1
  217. package/dist/utils/logger/index.js +1 -1
  218. package/dist/utils/logger/logger.js +1 -1
  219. package/dist/utils/logger/types.js +1 -1
  220. package/dist/utils/option-validation.js +1 -1
  221. package/dist/utils/process.js +1 -1
  222. package/dist/utils/prompt.js +1 -1
  223. package/dist/utils/spinner.js +1 -1
  224. package/dist/utils/sse-parser.js +1 -1
  225. package/dist/utils/string-utils.js +1 -1
  226. package/dist/utils/table-ref-parser.js +1 -1
  227. package/dist/utils/tdx-logger.js +1 -1
  228. package/dist/utils/version-check.js +1 -1
  229. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x3c8ed7,_0x355f99){const _0x5792b4=a161_0x46c8,_0x29ce45=_0x3c8ed7();while(!![]){try{const _0x14bd25=parseInt(_0x5792b4(0x20b))/0x1*(parseInt(_0x5792b4(0x213))/0x2)+-parseInt(_0x5792b4(0x20a))/0x3*(parseInt(_0x5792b4(0x20f))/0x4)+parseInt(_0x5792b4(0x1ee))/0x5*(parseInt(_0x5792b4(0x1fc))/0x6)+parseInt(_0x5792b4(0x1d9))/0x7+-parseInt(_0x5792b4(0x1f6))/0x8*(-parseInt(_0x5792b4(0x1db))/0x9)+-parseInt(_0x5792b4(0x1eb))/0xa+parseInt(_0x5792b4(0x1fe))/0xb*(-parseInt(_0x5792b4(0x1e9))/0xc);if(_0x14bd25===_0x355f99)break;else _0x29ce45['push'](_0x29ce45['shift']());}catch(_0x156ba8){_0x29ce45['push'](_0x29ce45['shift']());}}}(a161_0x197e,0x74875));function a161_0x197e(){const _0x284c5e=['error','includes','No\x20tdx.json\x20found\x20for\x20file:\x20','13116uFGvWb','basename','6126810ZqQVHa','isDirectory','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','2752285ajLLDV','file_not_found','parse','dirname','configDir','extname','scopedFolderPath','startsWith','1859632jbzQkV','parentSegment','File\x20not\x20found','journey','resolve','no_parent','6EZGuiF','readFile','1309VFCejT','join','No\x20tdx.json\x20found','invalid_yaml','folderPath','context','no_config','file','parent_segment','parent_name','directory','root','12yKQpVQ','190738YpXSCv','type','trim','segmentName','373384sRxqgK','message','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','exists','2suHWvw','match','1084132mZjRfM','tdx.json','27SbvrVQ','File\x20not\x20found:\x20','replace','resourceType','segment','stat','string','Not\x20a\x20YAML\x20file:\x20','relative','isFile','isScoped'];a161_0x197e=function(){return _0x284c5e;};return a161_0x197e();}function a161_0x46c8(_0x568b99,_0x259192){_0x568b99=_0x568b99-0x1d9;const _0x197e40=a161_0x197e();let _0x46c86b=_0x197e40[_0x568b99];return _0x46c86b;}import a161_0x3d52ed 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(_0x59fd76){const _0x58e032=a161_0x46c8;return _0x59fd76[_0x58e032(0x20c)]!=='error';}export function isScopedResolution(_0x3fdbec){const _0x325bd5=a161_0x46c8;return _0x3fdbec[_0x325bd5(0x20c)]==='directory'||_0x3fdbec[_0x325bd5(0x20c)]==='file'||_0x3fdbec[_0x325bd5(0x20c)]==='context';}export function getScopedDetails(_0x5a124e){const _0x410fa5=a161_0x46c8;if(isScopedResolution(_0x5a124e))return{'isScoped':_0x5a124e[_0x410fa5(0x1e5)],'scopedFolderPath':_0x5a124e[_0x410fa5(0x1f4)]};return undefined;}async function findTdxConfigAsync(_0x5a6604,_0x3bfaf4){const _0x1a4cb0=a161_0x46c8;let _0x3c7fa4=a161_0x3d52ed['resolve'](_0x5a6604);const _0x3f5991=a161_0x3d52ed[_0x1a4cb0(0x1f0)](_0x3c7fa4)[_0x1a4cb0(0x209)];while(_0x3c7fa4!==_0x3f5991){const _0x6eb39a=a161_0x3d52ed[_0x1a4cb0(0x1ff)](_0x3c7fa4,_0x1a4cb0(0x1da));if(await _0x3bfaf4['exists'](_0x6eb39a))try{const _0x24ee2b=await _0x3bfaf4[_0x1a4cb0(0x1fd)](_0x6eb39a),_0x3e7e62=JSON[_0x1a4cb0(0x1f0)](_0x24ee2b);if(_0x3e7e62[_0x1a4cb0(0x206)]&&typeof _0x3e7e62[_0x1a4cb0(0x206)]===_0x1a4cb0(0x1e1))return{'configPath':_0x6eb39a,'configDir':_0x3c7fa4,'parentSegment':_0x3e7e62[_0x1a4cb0(0x206)]};}catch{}_0x3c7fa4=a161_0x3d52ed[_0x1a4cb0(0x1f1)](_0x3c7fa4);}return null;}function calculateScopedPath(_0x4ac37b,_0x2106d5){const _0x53b2b4=a161_0x46c8,_0x3e447f=a161_0x3d52ed[_0x53b2b4(0x1e3)](_0x2106d5,_0x4ac37b),_0x2b6414=_0x3e447f!==''&&_0x3e447f!=='.'&&!_0x3e447f[_0x53b2b4(0x1f5)]('..');return{'isScoped':_0x2b6414,'scopedFolderPath':_0x2b6414?_0x3e447f[_0x53b2b4(0x1dd)](/\\/g,'/'):''};}export async function resolveTarget(_0x1ee90e){const _0xe7de8=a161_0x46c8,{arg:_0x3d06fc,contextParent:_0x27d3f7,cwd:cwd=process['cwd'](),fs:fs=nodeFileSystem}=_0x1ee90e;if(_0x3d06fc&&isYamlFilePath(_0x3d06fc))try{const _0x532d2c=await resolveYamlFilePath(_0x3d06fc,fs),_0x200c11=a161_0x3d52ed[_0xe7de8(0x1fa)](_0x3d06fc),_0x2e8f19=a161_0x3d52ed[_0xe7de8(0x1f1)](_0x200c11),_0x1fb94e=await findTdxConfigAsync(_0x2e8f19,fs);if(!_0x1fb94e){if(_0x27d3f7){const _0x21e5f4=a161_0x3d52ed['dirname'](_0x200c11);return{'type':_0xe7de8(0x205),'parentName':_0x27d3f7,'targetDir':_0x21e5f4,'configRoot':_0x21e5f4,'filePath':_0x200c11,'resourceName':_0x532d2c[_0xe7de8(0x20e)],'folderPath':_0x532d2c['folderPath'],'resourceType':_0x532d2c[_0xe7de8(0x1de)],'isScoped':![],'scopedFolderPath':''};}return{'type':_0xe7de8(0x1e6),'errorCode':_0xe7de8(0x204),'message':'No\x20tdx.json\x20found\x20for\x20file:\x20'+_0x3d06fc,'arg':_0x3d06fc,'helpText':_0xe7de8(0x1ed)};}const _0x1b178b=calculateScopedPath(_0x2e8f19,_0x1fb94e[_0xe7de8(0x1f2)]);return{'type':_0xe7de8(0x205),'parentName':_0x1fb94e[_0xe7de8(0x1f7)],'targetDir':_0x1fb94e['configDir'],'configRoot':_0x1fb94e[_0xe7de8(0x1f2)],'filePath':_0x200c11,'resourceName':_0x532d2c[_0xe7de8(0x20e)],'folderPath':_0x532d2c[_0xe7de8(0x202)],'resourceType':_0x532d2c[_0xe7de8(0x1de)],'isScoped':_0x1b178b['isScoped'],'scopedFolderPath':_0x1b178b[_0xe7de8(0x1f4)]};}catch(_0x5ac899){const _0x2176bd=_0x5ac899 instanceof Error?_0x5ac899[_0xe7de8(0x210)]:String(_0x5ac899);if(_0x2176bd[_0xe7de8(0x1e7)](_0xe7de8(0x1f8)))return{'type':_0xe7de8(0x1e6),'errorCode':_0xe7de8(0x1ef),'message':_0xe7de8(0x1dc)+_0x3d06fc,'arg':_0x3d06fc};if(_0x2176bd[_0xe7de8(0x1e7)](_0xe7de8(0x200))){if(_0x27d3f7){const _0x6cd08a=a161_0x3d52ed[_0xe7de8(0x1fa)](_0x3d06fc);if(await fs[_0xe7de8(0x212)](_0x6cd08a)){const _0x51f239=a161_0x3d52ed[_0xe7de8(0x1f1)](_0x6cd08a),_0x17e1f0=await fs[_0xe7de8(0x1fd)](_0x6cd08a),_0x22e1a4=_0x17e1f0[_0xe7de8(0x214)](/^name:\s*["']?([^"'\n]+)["']?/m),_0x5c162c=_0x17e1f0[_0xe7de8(0x214)](/^type:\s*["']?([^"'\n]+)["']?/m),_0x4f1ce4=_0x22e1a4?_0x22e1a4[0x1][_0xe7de8(0x20d)]():a161_0x3d52ed[_0xe7de8(0x1ea)](_0x3d06fc,a161_0x3d52ed[_0xe7de8(0x1f3)](_0x3d06fc)),_0x425c5a=_0x5c162c&&_0x5c162c[0x1][_0xe7de8(0x20d)]()===_0xe7de8(0x1f9)?_0xe7de8(0x1f9):_0xe7de8(0x1df);return{'type':_0xe7de8(0x205),'parentName':_0x27d3f7,'targetDir':_0x51f239,'configRoot':_0x51f239,'filePath':_0x6cd08a,'resourceName':_0x4f1ce4,'folderPath':'','resourceType':_0x425c5a,'isScoped':![],'scopedFolderPath':''};}}return{'type':'error','errorCode':'no_config','message':_0xe7de8(0x1e8)+_0x3d06fc,'arg':_0x3d06fc,'helpText':_0xe7de8(0x1ed)};}return{'type':_0xe7de8(0x1e6),'errorCode':_0xe7de8(0x201),'message':_0x2176bd,'arg':_0x3d06fc};}if(_0x3d06fc){const _0x1182fc=a161_0x3d52ed['resolve'](cwd,_0x3d06fc);let _0x12d92e=null;try{_0x12d92e=await fs[_0xe7de8(0x1e0)](_0x1182fc);}catch{}if(_0x12d92e?.[_0xe7de8(0x1ec)]()){const _0x3615f4=await findTdxConfigAsync(_0x1182fc,fs);if(_0x3615f4){const _0x408d0d=calculateScopedPath(_0x1182fc,_0x3615f4[_0xe7de8(0x1f2)]);return{'type':_0xe7de8(0x208),'parentName':_0x3615f4[_0xe7de8(0x1f7)],'targetDir':_0x1182fc,'configRoot':_0x3615f4[_0xe7de8(0x1f2)],'isScoped':_0x408d0d[_0xe7de8(0x1e5)],'scopedFolderPath':_0x408d0d[_0xe7de8(0x1f4)]};}if(_0x27d3f7)return{'type':_0xe7de8(0x208),'parentName':_0x27d3f7,'targetDir':_0x1182fc,'configRoot':_0x1182fc,'isScoped':![],'scopedFolderPath':''};return{'type':_0xe7de8(0x1e6),'errorCode':_0xe7de8(0x204),'message':'No\x20tdx.json\x20found\x20in\x20or\x20above:\x20'+_0x3d06fc,'arg':_0x3d06fc,'helpText':_0xe7de8(0x1ed)};}if(_0x12d92e?.[_0xe7de8(0x1e4)]())return{'type':_0xe7de8(0x1e6),'errorCode':'invalid_yaml','message':_0xe7de8(0x1e2)+_0x3d06fc,'arg':_0x3d06fc,'helpText':'Segment\x20and\x20journey\x20files\x20must\x20have\x20.yml\x20or\x20.yaml\x20extension'};const _0x6b1379=sanitizeFileName(_0x3d06fc),_0x1c55ba=getSegmentRootDir(_0x6b1379,cwd);return{'type':_0xe7de8(0x207),'parentName':_0x3d06fc,'targetDir':_0x1c55ba,'configRoot':_0x1c55ba};}const _0x3e0166=await findTdxConfigAsync(cwd,fs);if(_0x3e0166){const _0x3bcfcf=calculateScopedPath(cwd,_0x3e0166[_0xe7de8(0x1f2)]);return{'type':_0xe7de8(0x203),'parentName':_0x3e0166[_0xe7de8(0x1f7)],'targetDir':cwd,'configRoot':_0x3e0166['configDir'],'isScoped':_0x3bcfcf[_0xe7de8(0x1e5)],'scopedFolderPath':_0x3bcfcf['scopedFolderPath']};}if(_0x27d3f7){const _0x2d85a2=sanitizeFileName(_0x27d3f7),_0xfa1db8=getSegmentRootDir(_0x2d85a2,cwd);return{'type':_0xe7de8(0x203),'parentName':_0x27d3f7,'targetDir':_0xfa1db8,'configRoot':_0xfa1db8,'isScoped':![],'scopedFolderPath':''};}return{'type':'error','errorCode':_0xe7de8(0x1fb),'message':'Parent\x20segment\x20not\x20specified','helpText':_0xe7de8(0x211)};}
1
+ (function(_0x1ead6e,_0xfa1a72){const _0x4d1f7c=a161_0x8dfc,_0x2c48a5=_0x1ead6e();while(!![]){try{const _0x25e621=parseInt(_0x4d1f7c(0x7c))/0x1+-parseInt(_0x4d1f7c(0x89))/0x2*(parseInt(_0x4d1f7c(0x82))/0x3)+-parseInt(_0x4d1f7c(0x76))/0x4*(parseInt(_0x4d1f7c(0x73))/0x5)+parseInt(_0x4d1f7c(0x96))/0x6+parseInt(_0x4d1f7c(0x8d))/0x7*(-parseInt(_0x4d1f7c(0x9b))/0x8)+-parseInt(_0x4d1f7c(0x6f))/0x9*(-parseInt(_0x4d1f7c(0xa2))/0xa)+-parseInt(_0x4d1f7c(0x91))/0xb;if(_0x25e621===_0xfa1a72)break;else _0x2c48a5['push'](_0x2c48a5['shift']());}catch(_0x333c78){_0x2c48a5['push'](_0x2c48a5['shift']());}}}(a161_0x4197,0x2e463));import a161_0x998731 from'path';import{sanitizeFileName}from'../../utils/string-utils.js';import{nodeFileSystem}from'../io/node-filesystem.js';import{isYamlFilePath,resolveYamlFilePath}from'./segment-path-parser.js';function a161_0x8dfc(_0x1d97b1,_0xf4c7bb){_0x1d97b1=_0x1d97b1-0x6c;const _0x41975f=a161_0x4197();let _0x8dfc7f=_0x41975f[_0x1d97b1];return _0x8dfc7f;}import{getSegmentRootDir}from'./tdx-config.js';function a161_0x4197(){const _0x1b45e4=['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','file','452771iMoALC','relative','isDirectory','File\x20not\x20found','dirname','989730BVwdfZ','No\x20tdx.json\x20found\x20for\x20file:\x20','Use\x20\x27tdx\x20sg\x20use\x20<parent_name>\x27\x20to\x20set\x20context\x0aOr\x20run\x20\x27tdx\x20sg\x20pull\x20<parent_name>\x27\x20to\x20create\x20the\x20folder\x20structure','context','basename','3304TiNvfY','parent_segment','type','directory','message','segmentName','error','10940QVhgey','parent_name','Not\x20a\x20YAML\x20file:\x20','invalid_yaml','2529jTyCKX','isScoped','includes','No\x20tdx.json\x20found\x20in\x20or\x20above:\x20','844765WQhURy','root','Parent\x20segment\x20not\x20specified','4vTExYP','cwd','string','trim','scopedFolderPath','parse','221871dRvWTa','segment','readFile','resolve','file_not_found','folderPath','708yNzYBK','configDir','parentSegment','match','no_config','File\x20not\x20found:\x20','replace','372jkWDHV','isFile','exists','resourceType','4249KCKWDN','journey'];a161_0x4197=function(){return _0x1b45e4;};return a161_0x4197();}export function isSuccessfulResolution(_0x29bf39){const _0x3bcbfb=a161_0x8dfc;return _0x29bf39[_0x3bcbfb(0x9d)]!==_0x3bcbfb(0xa1);}export function isScopedResolution(_0x30baee){const _0x22ffb7=a161_0x8dfc;return _0x30baee[_0x22ffb7(0x9d)]===_0x22ffb7(0x9e)||_0x30baee[_0x22ffb7(0x9d)]==='file'||_0x30baee['type']===_0x22ffb7(0x99);}export function getScopedDetails(_0x3f0bea){const _0x483271=a161_0x8dfc;if(isScopedResolution(_0x3f0bea))return{'isScoped':_0x3f0bea[_0x483271(0x70)],'scopedFolderPath':_0x3f0bea['scopedFolderPath']};return undefined;}async function findTdxConfigAsync(_0xc4d87a,_0x219815){const _0x4f9195=a161_0x8dfc;let _0x581ff2=a161_0x998731['resolve'](_0xc4d87a);const _0x4ff9bc=a161_0x998731[_0x4f9195(0x7b)](_0x581ff2)[_0x4f9195(0x74)];while(_0x581ff2!==_0x4ff9bc){const _0x74bb21=a161_0x998731['join'](_0x581ff2,'tdx.json');if(await _0x219815[_0x4f9195(0x8b)](_0x74bb21))try{const _0x15a0bc=await _0x219815[_0x4f9195(0x7e)](_0x74bb21),_0x202ced=JSON[_0x4f9195(0x7b)](_0x15a0bc);if(_0x202ced[_0x4f9195(0x9c)]&&typeof _0x202ced[_0x4f9195(0x9c)]===_0x4f9195(0x78))return{'configPath':_0x74bb21,'configDir':_0x581ff2,'parentSegment':_0x202ced[_0x4f9195(0x9c)]};}catch{}_0x581ff2=a161_0x998731[_0x4f9195(0x95)](_0x581ff2);}return null;}function calculateScopedPath(_0x8fb2e9,_0x54ef7d){const _0x3fcbd2=a161_0x8dfc,_0x36b134=a161_0x998731[_0x3fcbd2(0x92)](_0x54ef7d,_0x8fb2e9),_0x505045=_0x36b134!==''&&_0x36b134!=='.'&&!_0x36b134['startsWith']('..');return{'isScoped':_0x505045,'scopedFolderPath':_0x505045?_0x36b134[_0x3fcbd2(0x88)](/\\/g,'/'):''};}export async function resolveTarget(_0x4652c4){const _0x319540=a161_0x8dfc,{arg:_0x4e2d1a,contextParent:_0xe99353,cwd:cwd=process[_0x319540(0x77)](),fs:fs=nodeFileSystem}=_0x4652c4;if(_0x4e2d1a&&isYamlFilePath(_0x4e2d1a))try{const _0x3195c3=await resolveYamlFilePath(_0x4e2d1a,fs),_0x5f362d=a161_0x998731['resolve'](_0x4e2d1a),_0x55a90f=a161_0x998731[_0x319540(0x95)](_0x5f362d),_0x3c9409=await findTdxConfigAsync(_0x55a90f,fs);if(!_0x3c9409){if(_0xe99353){const _0x4439c7=a161_0x998731[_0x319540(0x95)](_0x5f362d);return{'type':_0x319540(0x90),'parentName':_0xe99353,'targetDir':_0x4439c7,'configRoot':_0x4439c7,'filePath':_0x5f362d,'resourceName':_0x3195c3['segmentName'],'folderPath':_0x3195c3[_0x319540(0x81)],'resourceType':_0x3195c3[_0x319540(0x8c)],'isScoped':![],'scopedFolderPath':''};}return{'type':_0x319540(0xa1),'errorCode':_0x319540(0x86),'message':_0x319540(0x97)+_0x4e2d1a,'arg':_0x4e2d1a,'helpText':_0x319540(0x8f)};}const _0x3d8ccc=calculateScopedPath(_0x55a90f,_0x3c9409[_0x319540(0x83)]);return{'type':_0x319540(0x90),'parentName':_0x3c9409[_0x319540(0x84)],'targetDir':_0x3c9409['configDir'],'configRoot':_0x3c9409['configDir'],'filePath':_0x5f362d,'resourceName':_0x3195c3[_0x319540(0xa0)],'folderPath':_0x3195c3[_0x319540(0x81)],'resourceType':_0x3195c3[_0x319540(0x8c)],'isScoped':_0x3d8ccc[_0x319540(0x70)],'scopedFolderPath':_0x3d8ccc[_0x319540(0x7a)]};}catch(_0x4b0896){const _0x23271e=_0x4b0896 instanceof Error?_0x4b0896[_0x319540(0x9f)]:String(_0x4b0896);if(_0x23271e[_0x319540(0x71)](_0x319540(0x94)))return{'type':'error','errorCode':_0x319540(0x80),'message':_0x319540(0x87)+_0x4e2d1a,'arg':_0x4e2d1a};if(_0x23271e['includes']('No\x20tdx.json\x20found')){if(_0xe99353){const _0x2c3375=a161_0x998731[_0x319540(0x7f)](_0x4e2d1a);if(await fs[_0x319540(0x8b)](_0x2c3375)){const _0x53c5f2=a161_0x998731[_0x319540(0x95)](_0x2c3375),_0x3995c2=await fs[_0x319540(0x7e)](_0x2c3375),_0x9f7d8=_0x3995c2[_0x319540(0x85)](/^name:\s*["']?([^"'\n]+)["']?/m),_0x575776=_0x3995c2[_0x319540(0x85)](/^type:\s*["']?([^"'\n]+)["']?/m),_0xd3899f=_0x9f7d8?_0x9f7d8[0x1][_0x319540(0x79)]():a161_0x998731[_0x319540(0x9a)](_0x4e2d1a,a161_0x998731['extname'](_0x4e2d1a)),_0x55f343=_0x575776&&_0x575776[0x1][_0x319540(0x79)]()===_0x319540(0x8e)?'journey':_0x319540(0x7d);return{'type':_0x319540(0x90),'parentName':_0xe99353,'targetDir':_0x53c5f2,'configRoot':_0x53c5f2,'filePath':_0x2c3375,'resourceName':_0xd3899f,'folderPath':'','resourceType':_0x55f343,'isScoped':![],'scopedFolderPath':''};}}return{'type':_0x319540(0xa1),'errorCode':_0x319540(0x86),'message':'No\x20tdx.json\x20found\x20for\x20file:\x20'+_0x4e2d1a,'arg':_0x4e2d1a,'helpText':_0x319540(0x8f)};}return{'type':_0x319540(0xa1),'errorCode':'invalid_yaml','message':_0x23271e,'arg':_0x4e2d1a};}if(_0x4e2d1a){const _0x258648=a161_0x998731['resolve'](cwd,_0x4e2d1a);let _0x19c5af=null;try{_0x19c5af=await fs['stat'](_0x258648);}catch{}if(_0x19c5af?.[_0x319540(0x93)]()){const _0x5bd768=await findTdxConfigAsync(_0x258648,fs);if(_0x5bd768){const _0x1dad21=calculateScopedPath(_0x258648,_0x5bd768[_0x319540(0x83)]);return{'type':_0x319540(0x9e),'parentName':_0x5bd768['parentSegment'],'targetDir':_0x258648,'configRoot':_0x5bd768['configDir'],'isScoped':_0x1dad21[_0x319540(0x70)],'scopedFolderPath':_0x1dad21[_0x319540(0x7a)]};}if(_0xe99353)return{'type':_0x319540(0x9e),'parentName':_0xe99353,'targetDir':_0x258648,'configRoot':_0x258648,'isScoped':![],'scopedFolderPath':''};return{'type':_0x319540(0xa1),'errorCode':_0x319540(0x86),'message':_0x319540(0x72)+_0x4e2d1a,'arg':_0x4e2d1a,'helpText':_0x319540(0x8f)};}if(_0x19c5af?.[_0x319540(0x8a)]())return{'type':'error','errorCode':_0x319540(0x6e),'message':_0x319540(0x6d)+_0x4e2d1a,'arg':_0x4e2d1a,'helpText':'Segment\x20and\x20journey\x20files\x20must\x20have\x20.yml\x20or\x20.yaml\x20extension'};const _0x13e2a3=sanitizeFileName(_0x4e2d1a),_0x1e9a04=getSegmentRootDir(_0x13e2a3,cwd);return{'type':_0x319540(0x6c),'parentName':_0x4e2d1a,'targetDir':_0x1e9a04,'configRoot':_0x1e9a04};}const _0x2b8912=await findTdxConfigAsync(cwd,fs);if(_0x2b8912){const _0x277d8e=calculateScopedPath(cwd,_0x2b8912['configDir']);return{'type':'context','parentName':_0x2b8912[_0x319540(0x84)],'targetDir':cwd,'configRoot':_0x2b8912[_0x319540(0x83)],'isScoped':_0x277d8e['isScoped'],'scopedFolderPath':_0x277d8e[_0x319540(0x7a)]};}if(_0xe99353){const _0x20828f=sanitizeFileName(_0xe99353),_0xdb140b=getSegmentRootDir(_0x20828f,cwd);return{'type':_0x319540(0x99),'parentName':_0xe99353,'targetDir':_0xdb140b,'configRoot':_0xdb140b,'isScoped':![],'scopedFolderPath':''};}return{'type':_0x319540(0xa1),'errorCode':'no_parent','message':_0x319540(0x75),'helpText':_0x319540(0x98)};}
@@ -1 +1 @@
1
- const a162_0x34a6a2=a162_0x469a;(function(_0x42adcf,_0x5d0aff){const _0x3b6624=a162_0x469a,_0x4ba135=_0x42adcf();while(!![]){try{const _0x34f483=parseInt(_0x3b6624(0x148))/0x1*(parseInt(_0x3b6624(0x13c))/0x2)+parseInt(_0x3b6624(0x141))/0x3+parseInt(_0x3b6624(0x13d))/0x4*(-parseInt(_0x3b6624(0x143))/0x5)+-parseInt(_0x3b6624(0x14b))/0x6*(-parseInt(_0x3b6624(0x13e))/0x7)+parseInt(_0x3b6624(0x140))/0x8+-parseInt(_0x3b6624(0x144))/0x9+-parseInt(_0x3b6624(0x14e))/0xa;if(_0x34f483===_0x5d0aff)break;else _0x4ba135['push'](_0x4ba135['shift']());}catch(_0x201811){_0x4ba135['push'](_0x4ba135['shift']());}}}(a162_0x3555,0xd10e9));import{existsSync,readFileSync}from'fs';import a162_0x469884 from'path';const TDX_CONFIG_FILE='tdx.json',SEGMENTS_DIR=a162_0x34a6a2(0x13b);export function findTdxConfigPath(_0x57ad33=process['cwd']()){const _0x55097e=a162_0x34a6a2;let _0x5755b2=a162_0x469884[_0x55097e(0x147)](_0x57ad33);const _0x54f01c=a162_0x469884['parse'](_0x5755b2)['root'];while(_0x5755b2!==_0x54f01c){const _0x2774a1=a162_0x469884[_0x55097e(0x14d)](_0x5755b2,TDX_CONFIG_FILE);if(existsSync(_0x2774a1))return _0x2774a1;_0x5755b2=a162_0x469884['dirname'](_0x5755b2);}return null;}export function loadTdxConfig(_0x939040){const _0x1b4a25=a162_0x34a6a2,_0x22f1dc=readFileSync(_0x939040,_0x1b4a25(0x137));let _0x3f534c;try{_0x3f534c=JSON[_0x1b4a25(0x151)](_0x22f1dc);}catch{throw new Error(_0x1b4a25(0x145)+_0x939040);}if(!_0x3f534c||typeof _0x3f534c!==_0x1b4a25(0x13f))throw new Error(_0x1b4a25(0x14a));const _0x571b72=_0x3f534c,_0x5a89ca=_0x571b72[_0x1b4a25(0x142)]&&typeof _0x571b72[_0x1b4a25(0x142)]==='string',_0x3b44c4=_0x571b72[_0x1b4a25(0x149)]&&typeof _0x571b72[_0x1b4a25(0x149)]===_0x1b4a25(0x138);if(!_0x5a89ca&&!_0x3b44c4)throw new Error(_0x1b4a25(0x139));const _0x23e3f8={};return _0x5a89ca&&(_0x23e3f8['parent_segment']=_0x571b72[_0x1b4a25(0x142)]),_0x3b44c4&&(_0x23e3f8[_0x1b4a25(0x149)]=_0x571b72[_0x1b4a25(0x149)]),_0x23e3f8;}export function findTdxConfig(_0x298680=process[a162_0x34a6a2(0x14c)]()){const _0x29cfa9=findTdxConfigPath(_0x298680);if(!_0x29cfa9)throw new Error('No\x20tdx.json\x20found.\x20Please\x20run\x20\x27tdx\x20sg\x20pull\x20<parent_segment>\x27\x20first\x20to\x20create\x20the\x20folder\x20structure.');const _0x554e5d=loadTdxConfig(_0x29cfa9),_0x1b8b28=a162_0x469884['dirname'](_0x29cfa9);return{'config':_0x554e5d,'configPath':_0x29cfa9,'configDir':_0x1b8b28};}function a162_0x3555(){const _0x290bb4=['cwd','join','20806680DqIDKu','replace','dirname','parse','stringify','utf-8','string','Invalid\x20tdx.json:\x20must\x20contain\x20\x27parent_segment\x27\x20or\x20\x27engage_workspace\x27\x20field','startsWith','segments','926Iprjmm','4uJbhwr','7gyxyBa','object','13347408NAXskr','3524916obcjcG','parent_segment','2642690qyOlGq','3603780iEpTpj','Invalid\x20JSON\x20in\x20','relative','resolve','118IKxQiK','engage_workspace','Invalid\x20tdx.json:\x20expected\x20object','5807346heWrpw'];a162_0x3555=function(){return _0x290bb4;};return a162_0x3555();}export function tryFindTdxConfig(_0x18583a){try{return findTdxConfig(_0x18583a);}catch{return null;}}export function getSegmentRootDir(_0x3f5816,_0x4a406a=process[a162_0x34a6a2(0x14c)]()){const _0x2b06a3=a162_0x34a6a2;return a162_0x469884[_0x2b06a3(0x14d)](_0x4a406a,SEGMENTS_DIR,_0x3f5816);}export function getTdxConfigPath(_0x542979,_0x12d599=process[a162_0x34a6a2(0x14c)]()){const _0x5a2d58=a162_0x34a6a2;return a162_0x469884[_0x5a2d58(0x14d)](getSegmentRootDir(_0x542979,_0x12d599),TDX_CONFIG_FILE);}function a162_0x469a(_0x3f20b2,_0x5416ba){_0x3f20b2=_0x3f20b2-0x136;const _0x355540=a162_0x3555();let _0x469a0e=_0x355540[_0x3f20b2];return _0x469a0e;}export function getRelativePathFromConfig(_0x51edd3,_0x58a056){const _0x2bdcb4=a162_0x34a6a2,_0x1f3544=a162_0x469884[_0x2bdcb4(0x147)](_0x51edd3),_0x57fe8f=a162_0x469884[_0x2bdcb4(0x146)](_0x58a056,_0x1f3544);if(_0x57fe8f[_0x2bdcb4(0x13a)]('..'))return'';return _0x57fe8f;}export function localPathToTdFolderPath(_0x4d2b44){const _0x2ad830=a162_0x34a6a2,_0x343b81=a162_0x469884[_0x2ad830(0x150)](_0x4d2b44);if(_0x343b81==='.'||_0x343b81==='')return'';return _0x343b81[_0x2ad830(0x14f)](/\\/g,'/');}export function tdFolderPathToLocalPath(_0x5abe37,_0x4a1934){const _0xfa96c5=a162_0x34a6a2;if(!_0x5abe37)return _0x4a1934;return a162_0x469884[_0xfa96c5(0x14d)](_0x4a1934,_0x5abe37);}export function createTdxConfigContent(_0x3c197f){const _0x54b473=a162_0x34a6a2,_0x244f0c={'parent_segment':_0x3c197f};return JSON[_0x54b473(0x136)](_0x244f0c,null,0x2)+'\x0a';}export function createEngageTdxConfigContent(_0x274981){const _0x478abf=a162_0x34a6a2,_0x1d8ff4={'engage_workspace':_0x274981};return JSON[_0x478abf(0x136)](_0x1d8ff4,null,0x2)+'\x0a';}
1
+ const a162_0x26db2e=a162_0x521d;(function(_0x325789,_0x2080f2){const _0x312902=a162_0x521d,_0x8bd7b6=_0x325789();while(!![]){try{const _0x30badf=parseInt(_0x312902(0x99))/0x1+parseInt(_0x312902(0x9d))/0x2*(parseInt(_0x312902(0x87))/0x3)+-parseInt(_0x312902(0x8e))/0x4+-parseInt(_0x312902(0x96))/0x5+-parseInt(_0x312902(0x9c))/0x6+parseInt(_0x312902(0x9a))/0x7*(parseInt(_0x312902(0x88))/0x8)+parseInt(_0x312902(0x8a))/0x9*(parseInt(_0x312902(0x94))/0xa);if(_0x30badf===_0x2080f2)break;else _0x8bd7b6['push'](_0x8bd7b6['shift']());}catch(_0x5cc1a7){_0x8bd7b6['push'](_0x8bd7b6['shift']());}}}(a162_0x32d5,0x9746e));import{existsSync,readFileSync}from'fs';import a162_0x5ece5d from'path';const TDX_CONFIG_FILE='tdx.json',SEGMENTS_DIR=a162_0x26db2e(0x8d);export function findTdxConfigPath(_0x1c4e83=process[a162_0x26db2e(0x9b)]()){const _0x515739=a162_0x26db2e;let _0x15c20d=a162_0x5ece5d[_0x515739(0x9e)](_0x1c4e83);const _0x53c462=a162_0x5ece5d[_0x515739(0x95)](_0x15c20d)[_0x515739(0x91)];while(_0x15c20d!==_0x53c462){const _0x543b4a=a162_0x5ece5d[_0x515739(0x8b)](_0x15c20d,TDX_CONFIG_FILE);if(existsSync(_0x543b4a))return _0x543b4a;_0x15c20d=a162_0x5ece5d[_0x515739(0x8c)](_0x15c20d);}return null;}export function loadTdxConfig(_0x3ff06c){const _0x56d8d0=a162_0x26db2e,_0x12616e=readFileSync(_0x3ff06c,_0x56d8d0(0x93));let _0x46932c;try{_0x46932c=JSON['parse'](_0x12616e);}catch{throw new Error(_0x56d8d0(0x89)+_0x3ff06c);}if(!_0x46932c||typeof _0x46932c!==_0x56d8d0(0x85))throw new Error(_0x56d8d0(0x90));const _0x53e297=_0x46932c,_0x2588d6=_0x53e297['parent_segment']&&typeof _0x53e297[_0x56d8d0(0x97)]===_0x56d8d0(0x8f),_0x2042dd=_0x53e297['engage_workspace']&&typeof _0x53e297[_0x56d8d0(0x92)]===_0x56d8d0(0x8f);if(!_0x2588d6&&!_0x2042dd)throw new Error(_0x56d8d0(0x9f));const _0x2f7965={};return _0x2588d6&&(_0x2f7965[_0x56d8d0(0x97)]=_0x53e297[_0x56d8d0(0x97)]),_0x2042dd&&(_0x2f7965[_0x56d8d0(0x92)]=_0x53e297['engage_workspace']),_0x2f7965;}export function findTdxConfig(_0x49bda7=process[a162_0x26db2e(0x9b)]()){const _0x367173=a162_0x26db2e,_0x18aef6=findTdxConfigPath(_0x49bda7);if(!_0x18aef6)throw new Error('No\x20tdx.json\x20found.\x20Please\x20run\x20\x27tdx\x20sg\x20pull\x20<parent_segment>\x27\x20first\x20to\x20create\x20the\x20folder\x20structure.');const _0x438bfd=loadTdxConfig(_0x18aef6),_0x5191dd=a162_0x5ece5d[_0x367173(0x8c)](_0x18aef6);return{'config':_0x438bfd,'configPath':_0x18aef6,'configDir':_0x5191dd};}export function tryFindTdxConfig(_0x462fb3){try{return findTdxConfig(_0x462fb3);}catch{return null;}}export function getSegmentRootDir(_0x29c0f8,_0x153bce=process[a162_0x26db2e(0x9b)]()){const _0x1c3ebe=a162_0x26db2e;return a162_0x5ece5d[_0x1c3ebe(0x8b)](_0x153bce,SEGMENTS_DIR,_0x29c0f8);}function a162_0x521d(_0x42d4a0,_0x3e95f8){_0x42d4a0=_0x42d4a0-0x85;const _0x32d51c=a162_0x32d5();let _0x521da6=_0x32d51c[_0x42d4a0];return _0x521da6;}export function getTdxConfigPath(_0x139cfa,_0x87d6f2=process[a162_0x26db2e(0x9b)]()){return a162_0x5ece5d['join'](getSegmentRootDir(_0x139cfa,_0x87d6f2),TDX_CONFIG_FILE);}export function getRelativePathFromConfig(_0x16259e,_0x35ca67){const _0x5aac7e=a162_0x26db2e,_0x1bd140=a162_0x5ece5d[_0x5aac7e(0x9e)](_0x16259e),_0x4f388a=a162_0x5ece5d['relative'](_0x35ca67,_0x1bd140);if(_0x4f388a['startsWith']('..'))return'';return _0x4f388a;}export function localPathToTdFolderPath(_0x19282e){const _0x559116=a162_0x26db2e,_0x555028=a162_0x5ece5d[_0x559116(0x8c)](_0x19282e);if(_0x555028==='.'||_0x555028==='')return'';return _0x555028[_0x559116(0x98)](/\\/g,'/');}function a162_0x32d5(){const _0x5e3485=['77640XZHNYU','423990NzsGbP','cwd','2498436fVsxZa','226WQCgBy','resolve','Invalid\x20tdx.json:\x20must\x20contain\x20\x27parent_segment\x27\x20or\x20\x27engage_workspace\x27\x20field','object','stringify','2889UqYxkW','16PIubqc','Invalid\x20JSON\x20in\x20','9LjXzyp','join','dirname','segments','1096392oQaEGp','string','Invalid\x20tdx.json:\x20expected\x20object','root','engage_workspace','utf-8','13086490JsXOsE','parse','1530570sGwidw','parent_segment','replace'];a162_0x32d5=function(){return _0x5e3485;};return a162_0x32d5();}export function tdFolderPathToLocalPath(_0x51e634,_0x4af0d5){const _0x101315=a162_0x26db2e;if(!_0x51e634)return _0x4af0d5;return a162_0x5ece5d[_0x101315(0x8b)](_0x4af0d5,_0x51e634);}export function createTdxConfigContent(_0x19bbae){const _0x2cb0d5=a162_0x26db2e,_0x2d9cd7={'parent_segment':_0x19bbae};return JSON[_0x2cb0d5(0x86)](_0x2d9cd7,null,0x2)+'\x0a';}export function createEngageTdxConfigContent(_0x3a9b05){const _0x5d9192=a162_0x26db2e,_0x16fdf5={'engage_workspace':_0x3a9b05};return JSON[_0x5d9192(0x86)](_0x16fdf5,null,0x2)+'\x0a';}
@@ -1 +1 @@
1
- const a163_0x51b721=a163_0x87ef;(function(_0x407ec6,_0x3ced4a){const _0x356028=a163_0x87ef,_0x14aa9d=_0x407ec6();while(!![]){try{const _0x3ade31=-parseInt(_0x356028(0xf9))/0x1*(parseInt(_0x356028(0x11d))/0x2)+parseInt(_0x356028(0x11a))/0x3+parseInt(_0x356028(0x111))/0x4*(parseInt(_0x356028(0x101))/0x5)+-parseInt(_0x356028(0x107))/0x6*(-parseInt(_0x356028(0x11e))/0x7)+parseInt(_0x356028(0x10b))/0x8*(parseInt(_0x356028(0x110))/0x9)+parseInt(_0x356028(0x125))/0xa*(-parseInt(_0x356028(0x11b))/0xb)+parseInt(_0x356028(0x123))/0xc;if(_0x3ade31===_0x3ced4a)break;else _0x14aa9d['push'](_0x14aa9d['shift']());}catch(_0x3bd8c7){_0x14aa9d['push'](_0x14aa9d['shift']());}}}(a163_0x3e4e,0x94ced));import{z}from'zod';export const ScheduleTypeSchema=z[a163_0x51b721(0x124)]([a163_0x51b721(0x126),a163_0x51b721(0x109),a163_0x51b721(0x127),'weekly',a163_0x51b721(0x10d),a163_0x51b721(0x11c),a163_0x51b721(0x103)]);export const RepeatUnitSchema=z[a163_0x51b721(0x124)](['minute',a163_0x51b721(0x104),a163_0x51b721(0x116),a163_0x51b721(0x106),a163_0x51b721(0x122),a163_0x51b721(0x10a),a163_0x51b721(0x126)]);function a163_0x87ef(_0x38f8ea,_0x447e71){_0x38f8ea=_0x38f8ea-0xf9;const _0x3e4e75=a163_0x3e4e();let _0x87efb5=_0x3e4e75[_0x38f8ea];return _0x87efb5;}export const ScheduleDefSchema=z[a163_0x51b721(0x118)]({'type':ScheduleTypeSchema['optional'](),'repeat_unit':RepeatUnitSchema[a163_0x51b721(0xfb)](),'repeat_frequency':z[a163_0x51b721(0x119)]()[a163_0x51b721(0xfb)](),'repeat_sub_frequency':z[a163_0x51b721(0x120)](z['number']())['optional'](),'start_at':z[a163_0x51b721(0x105)]()[a163_0x51b721(0x11f)]()[a163_0x51b721(0xfb)](),'end_on':z[a163_0x51b721(0x105)]()['nullable']()['optional'](),'timezone':z[a163_0x51b721(0x105)]()[a163_0x51b721(0xfb)]()});export const NotificationDefSchema=z[a163_0x51b721(0x118)]({'notify_on':z[a163_0x51b721(0x120)](z[a163_0x51b721(0x124)]([a163_0x51b721(0x100),a163_0x51b721(0x112)]))[a163_0x51b721(0xfb)](),'email_recipients':z[a163_0x51b721(0x120)](z[a163_0x51b721(0x105)]())[a163_0x51b721(0xfb)]()});export const ActivationColumnDefSchema=z[a163_0x51b721(0x121)]([z[a163_0x51b721(0x105)](),z[a163_0x51b721(0x118)]({'name':z[a163_0x51b721(0x105)](),'type':z[a163_0x51b721(0x105)]()['optional'](),'visibility':z['enum']([a163_0x51b721(0xfe),a163_0x51b721(0x115)])[a163_0x51b721(0xfb)]()})]);export const ActivationBehaviorDefSchema=z[a163_0x51b721(0x118)]({'columns':z['array'](z[a163_0x51b721(0x118)]({'name':z[a163_0x51b721(0x105)](),'type':z['string']()['optional'](),'visibility':z[a163_0x51b721(0x124)]([a163_0x51b721(0xfe),a163_0x51b721(0x115)])[a163_0x51b721(0xfb)]()}))[a163_0x51b721(0xfb)](),'behavior_table':z[a163_0x51b721(0x105)]()[a163_0x51b721(0xfb)](),'join_row':z['number']()[a163_0x51b721(0x11f)]()[a163_0x51b721(0xfb)](),'join_strategy':z[a163_0x51b721(0x124)]([a163_0x51b721(0x10e),a163_0x51b721(0x10c),a163_0x51b721(0x10f),'Top-N'])[a163_0x51b721(0xfb)](),'formatting':z[a163_0x51b721(0x124)]([a163_0x51b721(0x117),a163_0x51b721(0x108)])[a163_0x51b721(0xfb)](),'order_by':z['array'](z[a163_0x51b721(0x118)]({'key':z[a163_0x51b721(0x105)](),'order':z[a163_0x51b721(0x124)]([a163_0x51b721(0xff),a163_0x51b721(0xfa)])}))[a163_0x51b721(0xfb)]()});function a163_0x3e4e(){const _0x1cc4de=['13394208RQbRXO','enum','10HTkhUe','none','daily','1lWuZDk','desc','optional','unknown','record','clear','asc','onSuccess','286205cJPKbe','min','minutes_interval','hour','string','week','6062694jonDGJ','cols','hourly','once','546896pNaeGO','First','monthly','All','Last','45IJHhRZ','4qXBNKz','onFailure','boolean','Connection\x20name\x20is\x20required','masked','day','rows','object','number','1074576jGnQMt','12375539TOTQui','cron','2298620QErnQX','7BylNcL','nullable','array','union','month'];a163_0x3e4e=function(){return _0x1cc4de;};return a163_0x3e4e();}export const ActivationDefSchema=z[a163_0x51b721(0x118)]({'name':z[a163_0x51b721(0x105)]()['min'](0x1,'Activation\x20name\x20is\x20required'),'description':z['string']()[a163_0x51b721(0xfb)](),'connection':z[a163_0x51b721(0x105)]()[a163_0x51b721(0x102)](0x1,a163_0x51b721(0x114)),'all_columns':z[a163_0x51b721(0x113)]()[a163_0x51b721(0xfb)](),'columns':z[a163_0x51b721(0x120)](ActivationColumnDefSchema)[a163_0x51b721(0xfb)](),'schedule':ScheduleDefSchema['optional'](),'notification':NotificationDefSchema[a163_0x51b721(0xfb)](),'connector_config':z[a163_0x51b721(0xfd)](z['string'](),z[a163_0x51b721(0xfc)]())['optional'](),'activation_template_id':z[a163_0x51b721(0x105)]()[a163_0x51b721(0x11f)]()[a163_0x51b721(0xfb)](),'behavior':ActivationBehaviorDefSchema['nullable']()[a163_0x51b721(0xfb)](),'run_after_journey_refresh':z[a163_0x51b721(0x113)]()['optional'](),'nested_workflow_project_name':z[a163_0x51b721(0x105)]()[a163_0x51b721(0xfb)](),'nested_workflow_name':z[a163_0x51b721(0x105)]()[a163_0x51b721(0xfb)](),'lock_enabled':z[a163_0x51b721(0x113)]()[a163_0x51b721(0xfb)]()});
1
+ const a163_0x229159=a163_0x3ff9;(function(_0x2bbe14,_0x153f88){const _0x157a97=a163_0x3ff9,_0x3e60b9=_0x2bbe14();while(!![]){try{const _0x456293=parseInt(_0x157a97(0x192))/0x1+-parseInt(_0x157a97(0x17c))/0x2*(parseInt(_0x157a97(0x17d))/0x3)+-parseInt(_0x157a97(0x183))/0x4+-parseInt(_0x157a97(0x188))/0x5+parseInt(_0x157a97(0x17f))/0x6*(parseInt(_0x157a97(0x18e))/0x7)+-parseInt(_0x157a97(0x1a5))/0x8*(-parseInt(_0x157a97(0x19e))/0x9)+parseInt(_0x157a97(0x185))/0xa*(parseInt(_0x157a97(0x18f))/0xb);if(_0x456293===_0x153f88)break;else _0x3e60b9['push'](_0x3e60b9['shift']());}catch(_0x147948){_0x3e60b9['push'](_0x3e60b9['shift']());}}}(a163_0x9b55,0x59b9a));import{z}from'zod';export const ScheduleTypeSchema=z[a163_0x229159(0x193)]([a163_0x229159(0x18d),a163_0x229159(0x1a2),'daily',a163_0x229159(0x199),a163_0x229159(0x184),a163_0x229159(0x187),a163_0x229159(0x189)]);export const RepeatUnitSchema=z[a163_0x229159(0x193)](['minute','hour',a163_0x229159(0x198),a163_0x229159(0x1a3),a163_0x229159(0x18b),a163_0x229159(0x1a4),a163_0x229159(0x18d)]);export const ScheduleDefSchema=z['object']({'type':ScheduleTypeSchema[a163_0x229159(0x197)](),'repeat_unit':RepeatUnitSchema[a163_0x229159(0x197)](),'repeat_frequency':z[a163_0x229159(0x18a)]()[a163_0x229159(0x197)](),'repeat_sub_frequency':z['array'](z['number']())[a163_0x229159(0x197)](),'start_at':z['string']()['nullable']()['optional'](),'end_on':z[a163_0x229159(0x18c)]()[a163_0x229159(0x186)]()[a163_0x229159(0x197)](),'timezone':z[a163_0x229159(0x18c)]()[a163_0x229159(0x197)]()});export const NotificationDefSchema=z['object']({'notify_on':z['array'](z['enum']([a163_0x229159(0x196),'onFailure']))[a163_0x229159(0x197)](),'email_recipients':z['array'](z[a163_0x229159(0x18c)]())['optional']()});export const ActivationColumnDefSchema=z[a163_0x229159(0x180)]([z['string'](),z['object']({'name':z[a163_0x229159(0x18c)](),'type':z['string']()['optional'](),'visibility':z[a163_0x229159(0x193)]([a163_0x229159(0x195),a163_0x229159(0x19a)])[a163_0x229159(0x197)]()})]);function a163_0x9b55(){const _0x2b7f32=['week','once','5336gcOoZZ','record','10cMUqBY','9nXghUV','unknown','405336wsliMd','union','cols','asc','1502816tFzCQr','monthly','892210tUVyao','nullable','cron','285460woMeZs','minutes_interval','number','month','string','none','14HdfTqx','22ketGZl','All','rows','5864GEDPJA','enum','Top-N','clear','onSuccess','optional','day','weekly','masked','object','boolean','Connection\x20name\x20is\x20required','6489WhgrJH','desc','Last','array','hourly'];a163_0x9b55=function(){return _0x2b7f32;};return a163_0x9b55();}function a163_0x3ff9(_0x5a1cb0,_0xac2948){_0x5a1cb0=_0x5a1cb0-0x17b;const _0x9b556b=a163_0x9b55();let _0x3ff9c2=_0x9b556b[_0x5a1cb0];return _0x3ff9c2;}export const ActivationBehaviorDefSchema=z['object']({'columns':z[a163_0x229159(0x1a1)](z[a163_0x229159(0x19b)]({'name':z['string'](),'type':z['string']()[a163_0x229159(0x197)](),'visibility':z[a163_0x229159(0x193)]([a163_0x229159(0x195),a163_0x229159(0x19a)])['optional']()}))[a163_0x229159(0x197)](),'behavior_table':z[a163_0x229159(0x18c)]()[a163_0x229159(0x197)](),'join_row':z[a163_0x229159(0x18a)]()[a163_0x229159(0x186)]()['optional'](),'join_strategy':z[a163_0x229159(0x193)]([a163_0x229159(0x190),'First',a163_0x229159(0x1a0),a163_0x229159(0x194)])['optional'](),'formatting':z[a163_0x229159(0x193)]([a163_0x229159(0x191),a163_0x229159(0x181)])['optional'](),'order_by':z[a163_0x229159(0x1a1)](z[a163_0x229159(0x19b)]({'key':z[a163_0x229159(0x18c)](),'order':z[a163_0x229159(0x193)]([a163_0x229159(0x182),a163_0x229159(0x19f)])}))['optional']()});export const ActivationDefSchema=z['object']({'name':z['string']()['min'](0x1,'Activation\x20name\x20is\x20required'),'description':z[a163_0x229159(0x18c)]()[a163_0x229159(0x197)](),'connection':z[a163_0x229159(0x18c)]()['min'](0x1,a163_0x229159(0x19d)),'all_columns':z[a163_0x229159(0x19c)]()[a163_0x229159(0x197)](),'columns':z[a163_0x229159(0x1a1)](ActivationColumnDefSchema)['optional'](),'schedule':ScheduleDefSchema[a163_0x229159(0x197)](),'notification':NotificationDefSchema[a163_0x229159(0x197)](),'connector_config':z[a163_0x229159(0x17b)](z[a163_0x229159(0x18c)](),z[a163_0x229159(0x17e)]())[a163_0x229159(0x197)](),'activation_template_id':z[a163_0x229159(0x18c)]()[a163_0x229159(0x186)]()['optional'](),'behavior':ActivationBehaviorDefSchema['nullable']()[a163_0x229159(0x197)](),'run_after_journey_refresh':z[a163_0x229159(0x19c)]()['optional'](),'nested_workflow_project_name':z[a163_0x229159(0x18c)]()['optional'](),'nested_workflow_name':z[a163_0x229159(0x18c)]()[a163_0x229159(0x197)](),'lock_enabled':z['boolean']()['optional']()});
@@ -1 +1 @@
1
- function a164_0x53b4(_0x3d1378,_0x583429){_0x3d1378=_0x3d1378-0xbf;var _0x215552=a164_0x2155();var _0x53b48b=_0x215552[_0x3d1378];return _0x53b48b;}(function(_0x464685,_0x416329){var _0x64c909=a164_0x53b4,_0x12f303=_0x464685();while(!![]){try{var _0x16bc40=parseInt(_0x64c909(0xc6))/0x1*(-parseInt(_0x64c909(0xc8))/0x2)+-parseInt(_0x64c909(0xc5))/0x3*(parseInt(_0x64c909(0xc9))/0x4)+-parseInt(_0x64c909(0xc3))/0x5+-parseInt(_0x64c909(0xc0))/0x6+parseInt(_0x64c909(0xc4))/0x7*(parseInt(_0x64c909(0xc2))/0x8)+parseInt(_0x64c909(0xc1))/0x9+-parseInt(_0x64c909(0xc7))/0xa*(-parseInt(_0x64c909(0xbf))/0xb);if(_0x16bc40===_0x416329)break;else _0x12f303['push'](_0x12f303['shift']());}catch(_0x1de438){_0x12f303['push'](_0x12f303['shift']());}}}(a164_0x2155,0xe43f5));export{JourneyStateTypeSchema,ReentryModeTypeSchema,WaitUnitTypeSchema,StepTypeValueSchema,EmbeddedSegmentDefSchema,CriteriaDefSchema,StepDefSchema,StageDefSchema,JourneyEntryDefSchema,JourneyDefSchema}from'./journey-schema.js';function a164_0x2155(){var _0x3cfa05=['684480tmcjFU','12343149ozIReQ','3469056zeVPQs','8128795NIYbBj','14OkiXjw','876LJWnVR','151535eNCXbv','4780fGzGtj','2jNETGq','1256zUtXTG','15631giMGZk'];a164_0x2155=function(){return _0x3cfa05;};return a164_0x2155();}
1
+ function a164_0x13ec(){var _0x508964=['241692yyrFCf','53TiABHE','8LuJsld','1651596BbCYJP','5QWWeKP','115155jZkhfd','8315720JVDqpR','4958GMHOIT','565960ZaYvrL','267043LuuEYO'];a164_0x13ec=function(){return _0x508964;};return a164_0x13ec();}(function(_0x586e5b,_0x5b249d){var _0x5a952b=a164_0x13c5,_0x4dabb1=_0x586e5b();while(!![]){try{var _0xe99e57=parseInt(_0x5a952b(0x1f1))/0x1*(-parseInt(_0x5a952b(0x1f7))/0x2)+-parseInt(_0x5a952b(0x1f0))/0x3+-parseInt(_0x5a952b(0x1f8))/0x4+parseInt(_0x5a952b(0x1f4))/0x5*(-parseInt(_0x5a952b(0x1f3))/0x6)+-parseInt(_0x5a952b(0x1ef))/0x7*(parseInt(_0x5a952b(0x1f2))/0x8)+parseInt(_0x5a952b(0x1f5))/0x9+parseInt(_0x5a952b(0x1f6))/0xa;if(_0xe99e57===_0x5b249d)break;else _0x4dabb1['push'](_0x4dabb1['shift']());}catch(_0x16f01e){_0x4dabb1['push'](_0x4dabb1['shift']());}}}(a164_0x13ec,0x2b567));function a164_0x13c5(_0x8dec25,_0x3cc7b0){_0x8dec25=_0x8dec25-0x1ef;var _0x13ec44=a164_0x13ec();var _0x13c52c=_0x13ec44[_0x8dec25];return _0x13c52c;}export{JourneyStateTypeSchema,ReentryModeTypeSchema,WaitUnitTypeSchema,StepTypeValueSchema,EmbeddedSegmentDefSchema,CriteriaDefSchema,StepDefSchema,StageDefSchema,JourneyEntryDefSchema,JourneyDefSchema}from'./journey-schema.js';
@@ -1 +1 @@
1
- function a165_0x1aa6(){const _0x315f64=['week','end','simulation','refine','jump','boolean','min','reentry_always','418662kPCrmM','decision_point','182636yXlNeD','literal','type','discriminatedUnion','length','versions','ab_test','9948ZOOipF','optional','launched','1689128mciGyX','string','day','no_reentry','object','465021vepUTq','35gTzWSC','draft','passthrough','number','enum','wait','filter','journey','array','merge','1064070tIjshv','851984sbcjMK'];a165_0x1aa6=function(){return _0x315f64;};return a165_0x1aa6();}const a165_0x1ce277=a165_0x579f;(function(_0x13bb69,_0x26349c){const _0x2abab7=a165_0x579f,_0x189f30=_0x13bb69();while(!![]){try{const _0x5cd897=-parseInt(_0x2abab7(0xe8))/0x1+parseInt(_0x2abab7(0xe6))/0x2+parseInt(_0x2abab7(0xf7))/0x3+parseInt(_0x2abab7(0xef))/0x4*(parseInt(_0x2abab7(0xf8))/0x5)+-parseInt(_0x2abab7(0x102))/0x6+parseInt(_0x2abab7(0xf2))/0x7+-parseInt(_0x2abab7(0xdd))/0x8;if(_0x5cd897===_0x26349c)break;else _0x189f30['push'](_0x189f30['shift']());}catch(_0x374228){_0x189f30['push'](_0x189f30['shift']());}}}(a165_0x1aa6,0x2639c));import{z}from'zod';import{RuleDefSchema}from'./segment-schema.js';import{ActivationDefSchema}from'./activation-schema.js';export const JourneyStateTypeSchema=z[a165_0x1ce277(0xfc)]([a165_0x1ce277(0xf9),a165_0x1ce277(0xe0),a165_0x1ce277(0xf1)]);export const ReentryModeTypeSchema=z[a165_0x1ce277(0xfc)]([a165_0x1ce277(0xf5),'reentry_unless_goal_achieved',a165_0x1ce277(0xe5)]);export const WaitUnitTypeSchema=z[a165_0x1ce277(0xfc)]([a165_0x1ce277(0xf4),a165_0x1ce277(0xde)]);export const StepTypeValueSchema=z[a165_0x1ce277(0xfc)]([a165_0x1ce277(0xfd),'activation',a165_0x1ce277(0xe7),a165_0x1ce277(0xee),a165_0x1ce277(0x101),'jump',a165_0x1ce277(0xdf)]);function a165_0x579f(_0x1525cc,_0xab6934){_0x1525cc=_0x1525cc-0xdd;const _0x1aa613=a165_0x1aa6();let _0x579fc2=_0x1aa613[_0x1525cc];return _0x579fc2;}export const EmbeddedSegmentDefSchema=z[a165_0x1ce277(0xf6)]({'description':z[a165_0x1ce277(0xf3)]()[a165_0x1ce277(0xf0)](),'rule':RuleDefSchema});const JumpTargetDefSchema=z[a165_0x1ce277(0xf6)]({'journey':z[a165_0x1ce277(0xf3)](),'stage':z[a165_0x1ce277(0xf3)](),'bundle_id':z['string']()[a165_0x1ce277(0xf0)]()});export const CriteriaDefSchema=z[a165_0x1ce277(0xf6)]({'name':z[a165_0x1ce277(0xf3)](),'description':z[a165_0x1ce277(0xf3)]()[a165_0x1ce277(0xf0)](),'segment':z[a165_0x1ce277(0xf3)](),'target':JumpTargetDefSchema[a165_0x1ce277(0xf0)]()});const WaitConditionTimeoutDefSchema=z[a165_0x1ce277(0xf6)]({'duration':z[a165_0x1ce277(0xfb)](),'unit':WaitUnitTypeSchema,'next':z['string']()['optional']()}),WaitConditionDefSchema=z[a165_0x1ce277(0xf6)]({'segment':z['string'](),'next':z['string']()['optional'](),'timeout':WaitConditionTimeoutDefSchema[a165_0x1ce277(0xf0)]()}),WaitStepParamsDefSchema=z[a165_0x1ce277(0xf6)]({'duration':z[a165_0x1ce277(0xfb)]()[a165_0x1ce277(0xf0)](),'unit':WaitUnitTypeSchema['optional'](),'wait_until':z[a165_0x1ce277(0xf3)]()[a165_0x1ce277(0xf0)](),'condition':WaitConditionDefSchema['optional'](),'days_of_week':z[a165_0x1ce277(0x100)](z['string']())[a165_0x1ce277(0xf0)]()}),StepBaseFields={'name':z[a165_0x1ce277(0xf3)](),'uuid':z[a165_0x1ce277(0xf3)]()['optional'](),'next':z['string']()[a165_0x1ce277(0xf0)]()},WaitStepDefSchema=z['object']({...StepBaseFields,'type':z[a165_0x1ce277(0xe9)](a165_0x1ce277(0xfd)),'with':WaitStepParamsDefSchema}),ActivationStepParamsDefSchema=z['object']({'activation':z['string']()}),ActivationStepDefSchema=z['object']({...StepBaseFields,'type':z['literal']('activation'),'with':ActivationStepParamsDefSchema}),DecisionBranchDefSchema=z[a165_0x1ce277(0xf6)]({'name':z['string'](),'segment':z['string']()[a165_0x1ce277(0xf0)](),'segment_id':z[a165_0x1ce277(0xf3)]()[a165_0x1ce277(0xf0)](),'excluded':z['boolean']()['optional'](),'next':z['string']()[a165_0x1ce277(0xf0)]()}),DecisionPointStepParamsDefSchema=z[a165_0x1ce277(0xf6)]({'branches':z['array'](DecisionBranchDefSchema)}),DecisionPointStepDefSchema=z['object']({...StepBaseFields,'type':z[a165_0x1ce277(0xe9)](a165_0x1ce277(0xe7)),'with':DecisionPointStepParamsDefSchema}),AbTestVariantDefSchema=z['object']({'id':z[a165_0x1ce277(0xf3)]()[a165_0x1ce277(0xf0)](),'name':z[a165_0x1ce277(0xf3)](),'percentage':z[a165_0x1ce277(0xfb)](),'next':z['string']()[a165_0x1ce277(0xf0)]()}),AbTestStepParamsDefSchema=z['object']({'variants':z[a165_0x1ce277(0x100)](AbTestVariantDefSchema),'unique_id':z[a165_0x1ce277(0xf3)]()[a165_0x1ce277(0xf0)](),'customized_split':z['boolean']()[a165_0x1ce277(0xf0)]()}),AbTestStepDefSchema=z[a165_0x1ce277(0xf6)]({...StepBaseFields,'type':z[a165_0x1ce277(0xe9)](a165_0x1ce277(0xee)),'with':AbTestStepParamsDefSchema}),MergeStepDefSchema=z[a165_0x1ce277(0xf6)]({...StepBaseFields,'type':z['literal'](a165_0x1ce277(0x101))}),JumpStepParamsDefSchema=z[a165_0x1ce277(0xf6)]({'target':JumpTargetDefSchema}),JumpStepDefSchema=z[a165_0x1ce277(0xf6)]({...StepBaseFields,'type':z['literal'](a165_0x1ce277(0xe2)),'with':JumpStepParamsDefSchema}),EndStepDefSchema=z[a165_0x1ce277(0xf6)]({...StepBaseFields,'type':z[a165_0x1ce277(0xe9)](a165_0x1ce277(0xdf))})[a165_0x1ce277(0xfa)]();export const StepDefSchema=z[a165_0x1ce277(0xeb)](a165_0x1ce277(0xea),[WaitStepDefSchema,ActivationStepDefSchema,DecisionPointStepDefSchema,AbTestStepDefSchema,MergeStepDefSchema,JumpStepDefSchema,EndStepDefSchema]);export const StageDefSchema=z['object']({'name':z[a165_0x1ce277(0xf3)](),'description':z[a165_0x1ce277(0xf3)]()[a165_0x1ce277(0xf0)](),'id':z[a165_0x1ce277(0xf3)]()['optional'](),'entry_criteria':CriteriaDefSchema[a165_0x1ce277(0xf0)](),'exit_criteria':z[a165_0x1ce277(0x100)](CriteriaDefSchema)['optional'](),'milestone':CriteriaDefSchema['optional'](),'root_step':z[a165_0x1ce277(0xf3)]()[a165_0x1ce277(0xf0)](),'steps':z['array'](StepDefSchema)[a165_0x1ce277(0xf0)]()});export const JourneyEntryDefSchema=z['object']({'name':z[a165_0x1ce277(0xf3)]()[a165_0x1ce277(0xf0)](),'version':z['string']()[a165_0x1ce277(0xf0)](),'state':JourneyStateTypeSchema['optional'](),'latest':z[a165_0x1ce277(0xe3)]()[a165_0x1ce277(0xf0)](),'stages':z[a165_0x1ce277(0x100)](StageDefSchema),'id':z[a165_0x1ce277(0xf3)]()[a165_0x1ce277(0xf0)](),'version_number':z[a165_0x1ce277(0xfb)]()[a165_0x1ce277(0xf0)](),'goal':CriteriaDefSchema['optional'](),'reentry':ReentryModeTypeSchema['optional']()});export const JourneyDefSchema=z['lazy'](()=>z[a165_0x1ce277(0xf6)]({'type':z['literal'](a165_0x1ce277(0xff)),'name':z[a165_0x1ce277(0xf3)]()[a165_0x1ce277(0xe4)](0x1,'Journey\x20name\x20is\x20required'),'description':z[a165_0x1ce277(0xf3)]()['optional'](),'bundle_id':z[a165_0x1ce277(0xf3)]()[a165_0x1ce277(0xf0)](),'bundle_name':z['string']()[a165_0x1ce277(0xf0)](),'folder_id':z[a165_0x1ce277(0xf3)]()[a165_0x1ce277(0xf0)](),'reentry':ReentryModeTypeSchema['optional'](),'allow_reentry':z['boolean']()[a165_0x1ce277(0xf0)](),'goal':CriteriaDefSchema[a165_0x1ce277(0xf0)](),'id':z['string']()[a165_0x1ce277(0xf0)](),'version':z[a165_0x1ce277(0xf3)]()[a165_0x1ce277(0xf0)](),'version_number':z[a165_0x1ce277(0xfb)]()[a165_0x1ce277(0xf0)](),'stages':z[a165_0x1ce277(0x100)](StageDefSchema)[a165_0x1ce277(0xf0)](),'versions':z[a165_0x1ce277(0x100)](JourneyEntryDefSchema)[a165_0x1ce277(0xf0)](),'journeys':z['array'](JourneyEntryDefSchema)[a165_0x1ce277(0xf0)](),'segments':z['record'](z[a165_0x1ce277(0xf3)](),EmbeddedSegmentDefSchema)['optional'](),'activations':z['record'](z['string'](),ActivationDefSchema)['optional']()})[a165_0x1ce277(0xe1)](_0x3c199c=>{const _0x2504dc=a165_0x1ce277,_0x46dc67=[_0x3c199c['journeys'],_0x3c199c['stages'],_0x3c199c[_0x2504dc(0xed)]][_0x2504dc(0xfe)](_0x32bf4c=>Array['isArray'](_0x32bf4c)&&_0x32bf4c[_0x2504dc(0xec)]>0x0)[_0x2504dc(0xec)];return _0x46dc67===0x1;},{'message':'Journey\x20must\x20have\x20exactly\x20one\x20of:\x20journeys,\x20stages,\x20or\x20versions'}));const _syncCheck1=!![],_syncCheck2=!![];void _syncCheck1,void _syncCheck2;
1
+ const a165_0x482527=a165_0x20d4;(function(_0x535816,_0x398626){const _0x5d4282=a165_0x20d4,_0x5b230e=_0x535816();while(!![]){try{const _0x1815bd=parseInt(_0x5d4282(0x104))/0x1+parseInt(_0x5d4282(0xf2))/0x2+parseInt(_0x5d4282(0xf8))/0x3*(parseInt(_0x5d4282(0x107))/0x4)+-parseInt(_0x5d4282(0x10e))/0x5+-parseInt(_0x5d4282(0xee))/0x6*(-parseInt(_0x5d4282(0x106))/0x7)+parseInt(_0x5d4282(0x10b))/0x8+parseInt(_0x5d4282(0xfa))/0x9;if(_0x1815bd===_0x398626)break;else _0x5b230e['push'](_0x5b230e['shift']());}catch(_0x42ad4f){_0x5b230e['push'](_0x5b230e['shift']());}}}(a165_0xf3bd,0xac6d3));import{z}from'zod';import{RuleDefSchema}from'./segment-schema.js';import{ActivationDefSchema}from'./activation-schema.js';export const JourneyStateTypeSchema=z['enum']([a165_0x482527(0xf9),'simulation',a165_0x482527(0x10c)]);export const ReentryModeTypeSchema=z[a165_0x482527(0xec)]([a165_0x482527(0xe9),a165_0x482527(0x105),a165_0x482527(0x109)]);export const WaitUnitTypeSchema=z[a165_0x482527(0xec)]([a165_0x482527(0xf1),a165_0x482527(0xff)]);export const StepTypeValueSchema=z['enum']([a165_0x482527(0xed),a165_0x482527(0xe8),'decision_point',a165_0x482527(0xf5),a165_0x482527(0xfc),'jump',a165_0x482527(0xfe)]);export const EmbeddedSegmentDefSchema=z['object']({'description':z['string']()['optional'](),'rule':RuleDefSchema});const JumpTargetDefSchema=z[a165_0x482527(0x110)]({'journey':z['string'](),'stage':z['string'](),'bundle_id':z[a165_0x482527(0x101)]()[a165_0x482527(0xeb)]()});export const CriteriaDefSchema=z['object']({'name':z[a165_0x482527(0x101)](),'description':z[a165_0x482527(0x101)]()[a165_0x482527(0xeb)](),'segment':z['string'](),'target':JumpTargetDefSchema[a165_0x482527(0xeb)]()});const WaitConditionTimeoutDefSchema=z['object']({'duration':z[a165_0x482527(0xf3)](),'unit':WaitUnitTypeSchema,'next':z['string']()[a165_0x482527(0xeb)]()}),WaitConditionDefSchema=z[a165_0x482527(0x110)]({'segment':z[a165_0x482527(0x101)](),'next':z[a165_0x482527(0x101)]()[a165_0x482527(0xeb)](),'timeout':WaitConditionTimeoutDefSchema[a165_0x482527(0xeb)]()}),WaitStepParamsDefSchema=z[a165_0x482527(0x110)]({'duration':z[a165_0x482527(0xf3)]()[a165_0x482527(0xeb)](),'unit':WaitUnitTypeSchema[a165_0x482527(0xeb)](),'wait_until':z[a165_0x482527(0x101)]()['optional'](),'condition':WaitConditionDefSchema[a165_0x482527(0xeb)](),'days_of_week':z[a165_0x482527(0xef)](z[a165_0x482527(0x101)]())['optional']()}),StepBaseFields={'name':z[a165_0x482527(0x101)](),'uuid':z['string']()['optional'](),'next':z[a165_0x482527(0x101)]()[a165_0x482527(0xeb)]()},WaitStepDefSchema=z[a165_0x482527(0x110)]({...StepBaseFields,'type':z['literal'](a165_0x482527(0xed)),'with':WaitStepParamsDefSchema}),ActivationStepParamsDefSchema=z[a165_0x482527(0x110)]({'activation':z[a165_0x482527(0x101)]()}),ActivationStepDefSchema=z['object']({...StepBaseFields,'type':z[a165_0x482527(0x10f)]('activation'),'with':ActivationStepParamsDefSchema}),DecisionBranchDefSchema=z[a165_0x482527(0x110)]({'name':z['string'](),'segment':z[a165_0x482527(0x101)]()[a165_0x482527(0xeb)](),'segment_id':z[a165_0x482527(0x101)]()[a165_0x482527(0xeb)](),'excluded':z[a165_0x482527(0x100)]()['optional'](),'next':z[a165_0x482527(0x101)]()[a165_0x482527(0xeb)]()}),DecisionPointStepParamsDefSchema=z[a165_0x482527(0x110)]({'branches':z['array'](DecisionBranchDefSchema)}),DecisionPointStepDefSchema=z[a165_0x482527(0x110)]({...StepBaseFields,'type':z[a165_0x482527(0x10f)](a165_0x482527(0x108)),'with':DecisionPointStepParamsDefSchema}),AbTestVariantDefSchema=z[a165_0x482527(0x110)]({'id':z['string']()[a165_0x482527(0xeb)](),'name':z[a165_0x482527(0x101)](),'percentage':z[a165_0x482527(0xf3)](),'next':z[a165_0x482527(0x101)]()[a165_0x482527(0xeb)]()}),AbTestStepParamsDefSchema=z[a165_0x482527(0x110)]({'variants':z[a165_0x482527(0xef)](AbTestVariantDefSchema),'unique_id':z[a165_0x482527(0x101)]()[a165_0x482527(0xeb)](),'customized_split':z[a165_0x482527(0x100)]()['optional']()}),AbTestStepDefSchema=z[a165_0x482527(0x110)]({...StepBaseFields,'type':z['literal']('ab_test'),'with':AbTestStepParamsDefSchema}),MergeStepDefSchema=z[a165_0x482527(0x110)]({...StepBaseFields,'type':z['literal'](a165_0x482527(0xfc))}),JumpStepParamsDefSchema=z[a165_0x482527(0x110)]({'target':JumpTargetDefSchema}),JumpStepDefSchema=z[a165_0x482527(0x110)]({...StepBaseFields,'type':z[a165_0x482527(0x10f)](a165_0x482527(0xf7)),'with':JumpStepParamsDefSchema}),EndStepDefSchema=z[a165_0x482527(0x110)]({...StepBaseFields,'type':z[a165_0x482527(0x10f)](a165_0x482527(0xfe))})[a165_0x482527(0xe7)]();export const StepDefSchema=z[a165_0x482527(0x103)](a165_0x482527(0x112),[WaitStepDefSchema,ActivationStepDefSchema,DecisionPointStepDefSchema,AbTestStepDefSchema,MergeStepDefSchema,JumpStepDefSchema,EndStepDefSchema]);export const StageDefSchema=z['object']({'name':z['string'](),'description':z[a165_0x482527(0x101)]()['optional'](),'id':z[a165_0x482527(0x101)]()[a165_0x482527(0xeb)](),'entry_criteria':CriteriaDefSchema['optional'](),'exit_criteria':z[a165_0x482527(0xef)](CriteriaDefSchema)[a165_0x482527(0xeb)](),'milestone':CriteriaDefSchema[a165_0x482527(0xeb)](),'root_step':z[a165_0x482527(0x101)]()[a165_0x482527(0xeb)](),'steps':z[a165_0x482527(0xef)](StepDefSchema)[a165_0x482527(0xeb)]()});function a165_0xf3bd(){const _0x390497=['launched','stages','4321250VzzXHP','literal','object','isArray','type','passthrough','activation','no_reentry','min','optional','enum','wait','426WERDIX','array','length','day','426520rYHSWP','number','Journey\x20must\x20have\x20exactly\x20one\x20of:\x20journeys,\x20stages,\x20or\x20versions','ab_test','refine','jump','1299xhcQrI','draft','2001744RfMYTS','versions','merge','Journey\x20name\x20is\x20required','end','week','boolean','string','lazy','discriminatedUnion','356654BRCRqo','reentry_unless_goal_achieved','17234UgtnlF','4988PFzgAb','decision_point','reentry_always','record','507408mxYwIo'];a165_0xf3bd=function(){return _0x390497;};return a165_0xf3bd();}export const JourneyEntryDefSchema=z[a165_0x482527(0x110)]({'name':z[a165_0x482527(0x101)]()['optional'](),'version':z[a165_0x482527(0x101)]()['optional'](),'state':JourneyStateTypeSchema[a165_0x482527(0xeb)](),'latest':z[a165_0x482527(0x100)]()[a165_0x482527(0xeb)](),'stages':z[a165_0x482527(0xef)](StageDefSchema),'id':z[a165_0x482527(0x101)]()[a165_0x482527(0xeb)](),'version_number':z[a165_0x482527(0xf3)]()[a165_0x482527(0xeb)](),'goal':CriteriaDefSchema['optional'](),'reentry':ReentryModeTypeSchema[a165_0x482527(0xeb)]()});export const JourneyDefSchema=z[a165_0x482527(0x102)](()=>z[a165_0x482527(0x110)]({'type':z[a165_0x482527(0x10f)]('journey'),'name':z[a165_0x482527(0x101)]()[a165_0x482527(0xea)](0x1,a165_0x482527(0xfd)),'description':z[a165_0x482527(0x101)]()[a165_0x482527(0xeb)](),'bundle_id':z['string']()['optional'](),'bundle_name':z[a165_0x482527(0x101)]()[a165_0x482527(0xeb)](),'folder_id':z[a165_0x482527(0x101)]()[a165_0x482527(0xeb)](),'reentry':ReentryModeTypeSchema[a165_0x482527(0xeb)](),'allow_reentry':z[a165_0x482527(0x100)]()['optional'](),'goal':CriteriaDefSchema[a165_0x482527(0xeb)](),'id':z[a165_0x482527(0x101)]()[a165_0x482527(0xeb)](),'version':z[a165_0x482527(0x101)]()['optional'](),'version_number':z[a165_0x482527(0xf3)]()['optional'](),'stages':z[a165_0x482527(0xef)](StageDefSchema)[a165_0x482527(0xeb)](),'versions':z[a165_0x482527(0xef)](JourneyEntryDefSchema)[a165_0x482527(0xeb)](),'journeys':z['array'](JourneyEntryDefSchema)[a165_0x482527(0xeb)](),'segments':z['record'](z['string'](),EmbeddedSegmentDefSchema)[a165_0x482527(0xeb)](),'activations':z[a165_0x482527(0x10a)](z[a165_0x482527(0x101)](),ActivationDefSchema)[a165_0x482527(0xeb)]()})[a165_0x482527(0xf6)](_0x41bbc8=>{const _0x3efe40=a165_0x482527,_0x3f7cda=[_0x41bbc8['journeys'],_0x41bbc8[_0x3efe40(0x10d)],_0x41bbc8[_0x3efe40(0xfb)]]['filter'](_0x4cef90=>Array[_0x3efe40(0x111)](_0x4cef90)&&_0x4cef90['length']>0x0)[_0x3efe40(0xf0)];return _0x3f7cda===0x1;},{'message':a165_0x482527(0xf4)}));const _syncCheck1=!![],_syncCheck2=!![];function a165_0x20d4(_0x2e3611,_0xfa118c){_0x2e3611=_0x2e3611-0xe7;const _0xf3bdcf=a165_0xf3bd();let _0x20d4a3=_0xf3bdcf[_0x2e3611];return _0x20d4a3;}void _syncCheck1,void _syncCheck2;
@@ -1 +1 @@
1
- (function(_0x506330,_0x415487){var _0x56b29e=a167_0x3aca,_0x179571=_0x506330();while(!![]){try{var _0x5ebbd4=-parseInt(_0x56b29e(0xdc))/0x1+parseInt(_0x56b29e(0xdf))/0x2+-parseInt(_0x56b29e(0xd8))/0x3*(-parseInt(_0x56b29e(0xde))/0x4)+-parseInt(_0x56b29e(0xd9))/0x5+parseInt(_0x56b29e(0xdb))/0x6+-parseInt(_0x56b29e(0xdd))/0x7*(-parseInt(_0x56b29e(0xe1))/0x8)+-parseInt(_0x56b29e(0xe0))/0x9*(-parseInt(_0x56b29e(0xda))/0xa);if(_0x5ebbd4===_0x415487)break;else _0x179571['push'](_0x179571['shift']());}catch(_0x4e8f82){_0x179571['push'](_0x179571['shift']());}}}(a167_0x3c38,0xd22e3));function a167_0x3aca(_0x5600cb,_0x30e4c0){_0x5600cb=_0x5600cb-0xd8;var _0x3c38f1=a167_0x3c38();var _0x3aca2e=_0x3c38f1[_0x5600cb];return _0x3aca2e;}export{OperatorTypeSchema,TimeUnitSchema,AggregationTypeSchema,ArrayMatchingSchema,OperatorDefSchema,AggregationDefSchema,TimeWindowDefSchema,FilterColumnConditionDefSchema,FilterRuleDefSchema,ValueConditionDefSchema,BehaviorConditionDefSchema,ColumnConditionDefSchema,CompositeConditionDefSchema,SegmentRefConditionDefSchema,ConditionDefSchema,RuleDefSchema,SegmentDefSchema}from'./segment-schema.js';function a167_0x3c38(){var _0x41969f=['42654nDFVxG','8467605lcETmX','3060470bArina','2456298bdFgfZ','273000ouIRZT','11389147ODAYiL','120gLkest','116858NYFfPl','9XfKsPP','8nChBwp'];a167_0x3c38=function(){return _0x41969f;};return a167_0x3c38();}export{ScheduleTypeSchema,RepeatUnitSchema,ScheduleDefSchema,NotificationDefSchema,ActivationColumnDefSchema,ActivationBehaviorDefSchema,ActivationDefSchema}from'./activation-schema.js';
1
+ (function(_0x1cde09,_0x1cc380){var _0x2b18fb=a167_0x1108,_0x1b1a38=_0x1cde09();while(!![]){try{var _0x192e6a=-parseInt(_0x2b18fb(0x8d))/0x1+parseInt(_0x2b18fb(0x8f))/0x2+parseInt(_0x2b18fb(0x89))/0x3*(-parseInt(_0x2b18fb(0x8b))/0x4)+parseInt(_0x2b18fb(0x88))/0x5*(parseInt(_0x2b18fb(0x8c))/0x6)+-parseInt(_0x2b18fb(0x90))/0x7*(parseInt(_0x2b18fb(0x8e))/0x8)+-parseInt(_0x2b18fb(0x8a))/0x9+parseInt(_0x2b18fb(0x87))/0xa*(parseInt(_0x2b18fb(0x91))/0xb);if(_0x192e6a===_0x1cc380)break;else _0x1b1a38['push'](_0x1b1a38['shift']());}catch(_0x41ca79){_0x1b1a38['push'](_0x1b1a38['shift']());}}}(a167_0x27bd,0xa8faf));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 a167_0x1108(_0xffb1f1,_0x1c41ae){_0xffb1f1=_0xffb1f1-0x87;var _0x27bd39=a167_0x27bd();var _0x1108a7=_0x27bd39[_0xffb1f1];return _0x1108a7;}function a167_0x27bd(){var _0x2b3068=['2719788qWxReR','220381XvoLZC','3064435KTTAoa','50MXJOfJ','610sqfetv','129dHsNOQ','10182276OnRbrX','72984MJweTZ','65982wbbzKv','290014yYaoxS','304MjKniG'];a167_0x27bd=function(){return _0x2b3068;};return a167_0x27bd();}
@@ -1 +1 @@
1
- const a168_0x156a5b=a168_0x13c1;(function(_0x35c2e8,_0x23c9ba){const _0x56fc33=a168_0x13c1,_0x530086=_0x35c2e8();while(!![]){try{const _0x588e4a=-parseInt(_0x56fc33(0xcc))/0x1*(-parseInt(_0x56fc33(0xf8))/0x2)+parseInt(_0x56fc33(0xf3))/0x3*(-parseInt(_0x56fc33(0xaf))/0x4)+-parseInt(_0x56fc33(0xe7))/0x5*(-parseInt(_0x56fc33(0xd9))/0x6)+-parseInt(_0x56fc33(0xbf))/0x7+parseInt(_0x56fc33(0xed))/0x8*(-parseInt(_0x56fc33(0xd7))/0x9)+-parseInt(_0x56fc33(0xbe))/0xa*(parseInt(_0x56fc33(0xe1))/0xb)+-parseInt(_0x56fc33(0xdd))/0xc*(-parseInt(_0x56fc33(0xca))/0xd);if(_0x588e4a===_0x23c9ba)break;else _0x530086['push'](_0x530086['shift']());}catch(_0x2a51bb){_0x530086['push'](_0x530086['shift']());}}}(a168_0x3d26,0x7902f));import{z}from'zod';export const OperatorTypeSchema=z[a168_0x156a5b(0xdb)]([a168_0x156a5b(0xa7),a168_0x156a5b(0xbc),'Less',a168_0x156a5b(0xcb),'LessEqual','In','Between',a168_0x156a5b(0xd0),a168_0x156a5b(0xd3),a168_0x156a5b(0xc2),a168_0x156a5b(0xe2),a168_0x156a5b(0xf0),a168_0x156a5b(0xeb),a168_0x156a5b(0xb1),a168_0x156a5b(0xea)]);export const TimeUnitSchema=z[a168_0x156a5b(0xdb)]([a168_0x156a5b(0xe5),a168_0x156a5b(0xf5),'hour',a168_0x156a5b(0xc3),a168_0x156a5b(0xbd),a168_0x156a5b(0xaa),a168_0x156a5b(0xce)]);export const AggregationTypeSchema=z[a168_0x156a5b(0xdb)]([a168_0x156a5b(0xe3),a168_0x156a5b(0xda),a168_0x156a5b(0xd4),a168_0x156a5b(0xe4),a168_0x156a5b(0xba),a168_0x156a5b(0xd5),'First',a168_0x156a5b(0xc0)]);const TemporalValueSchema=z[a168_0x156a5b(0xa6)]([z[a168_0x156a5b(0xa5)]({'timestamp':z[a168_0x156a5b(0xc1)]()}),z['object']({'last':z[a168_0x156a5b(0xa6)]([z[a168_0x156a5b(0xb2)](),z[a168_0x156a5b(0xcd)](z[a168_0x156a5b(0xc1)](),z[a168_0x156a5b(0xb2)]())]),'unit':z[a168_0x156a5b(0xc1)]()})]),OperatorValueSchema=z[a168_0x156a5b(0xa6)]([z[a168_0x156a5b(0xc1)](),z[a168_0x156a5b(0xb2)](),z[a168_0x156a5b(0xdc)](),TemporalValueSchema,z[a168_0x156a5b(0xa8)](z[a168_0x156a5b(0xa6)]([z[a168_0x156a5b(0xc1)](),z[a168_0x156a5b(0xb2)](),z[a168_0x156a5b(0xdc)]()]))]),OPERATORS_REQUIRING_VALUE=new Set([a168_0x156a5b(0xa7),a168_0x156a5b(0xbc),'GreaterEqual',a168_0x156a5b(0xec),a168_0x156a5b(0xdf),'In',a168_0x156a5b(0xf0),a168_0x156a5b(0xeb),a168_0x156a5b(0xb1),a168_0x156a5b(0xd0),a168_0x156a5b(0xc2),a168_0x156a5b(0xe2)]),OPERATORS_REQUIRING_UNIT=new Set([a168_0x156a5b(0xc2),'TimeWithinNext']);export const OperatorDefSchema=z[a168_0x156a5b(0xa5)]({'type':OperatorTypeSchema,'not':z[a168_0x156a5b(0xdc)]()[a168_0x156a5b(0xc9)](),'value':OperatorValueSchema[a168_0x156a5b(0xc9)](),'min':z[a168_0x156a5b(0xa6)]([z[a168_0x156a5b(0xb2)](),z[a168_0x156a5b(0xc1)](),TemporalValueSchema])[a168_0x156a5b(0xc9)](),'max':z[a168_0x156a5b(0xa6)]([z[a168_0x156a5b(0xb2)](),z[a168_0x156a5b(0xc1)](),TemporalValueSchema])[a168_0x156a5b(0xc9)](),'unit':TimeUnitSchema[a168_0x156a5b(0xc9)](),'duration':z['object']({'day':z[a168_0x156a5b(0xb2)]()[a168_0x156a5b(0xc9)](),'week':z[a168_0x156a5b(0xb2)]()['optional'](),'month':z['number']()[a168_0x156a5b(0xc9)](),'year':z['number']()[a168_0x156a5b(0xc9)](),'hour':z[a168_0x156a5b(0xb2)]()[a168_0x156a5b(0xc9)](),'minute':z[a168_0x156a5b(0xb2)]()['optional'](),'second':z[a168_0x156a5b(0xb2)]()[a168_0x156a5b(0xc9)]()})[a168_0x156a5b(0xc9)](),'from':z[a168_0x156a5b(0xa5)]({'last':z['union']([z[a168_0x156a5b(0xb2)](),z[a168_0x156a5b(0xc1)]()]),'unit':TimeUnitSchema})[a168_0x156a5b(0xc9)](),'reverse':z[a168_0x156a5b(0xdc)]()[a168_0x156a5b(0xc9)]()})[a168_0x156a5b(0xf4)]((_0x590853,_0x4afb7b)=>{const _0x44b5c9=a168_0x156a5b;OPERATORS_REQUIRING_VALUE[_0x44b5c9(0xa3)](_0x590853['type'])&&(_0x590853[_0x44b5c9(0xab)]===undefined||_0x590853[_0x44b5c9(0xab)]===null)&&_0x4afb7b[_0x44b5c9(0xb0)]({'code':_0x44b5c9(0xb9),'message':_0x44b5c9(0xcf)+_0x590853[_0x44b5c9(0xad)]+_0x44b5c9(0xf1),'path':[_0x44b5c9(0xab)]}),_0x590853['type']===_0x44b5c9(0xd2)&&_0x590853[_0x44b5c9(0xd1)]===undefined&&_0x590853[_0x44b5c9(0xe8)]===undefined&&_0x4afb7b['addIssue']({'code':_0x44b5c9(0xb9),'message':_0x44b5c9(0xb3),'params':{'validationCode':_0x44b5c9(0xee)}}),OPERATORS_REQUIRING_UNIT[_0x44b5c9(0xa3)](_0x590853['type'])&&_0x590853[_0x44b5c9(0xab)]!==undefined&&!_0x590853[_0x44b5c9(0xf9)]&&_0x4afb7b[_0x44b5c9(0xb0)]({'code':_0x44b5c9(0xb9),'message':_0x44b5c9(0xcf)+_0x590853[_0x44b5c9(0xad)]+_0x44b5c9(0xb8),'path':[_0x44b5c9(0xf9)],'params':{'validationCode':_0x44b5c9(0xc6)}}),_0x590853['type']===_0x44b5c9(0xea)&&(!_0x590853[_0x44b5c9(0xa4)]&&_0x4afb7b[_0x44b5c9(0xb0)]({'code':'custom','message':'TimeRange\x20operator\x20requires\x20\x27duration\x27','path':[_0x44b5c9(0xa4)]}),!_0x590853[_0x44b5c9(0xb6)]&&_0x4afb7b[_0x44b5c9(0xb0)]({'code':_0x44b5c9(0xb9),'message':_0x44b5c9(0xb4),'path':[_0x44b5c9(0xb6)]}));});export const ArrayMatchingSchema=z[a168_0x156a5b(0xa6)]([z['literal']('any'),z[a168_0x156a5b(0xb5)](a168_0x156a5b(0xb7)),z[a168_0x156a5b(0xa5)]({'atLeast':z[a168_0x156a5b(0xb2)]()}),z[a168_0x156a5b(0xa5)]({'atMost':z[a168_0x156a5b(0xb2)]()}),z[a168_0x156a5b(0xa5)]({'exactly':z[a168_0x156a5b(0xb2)]()})]);export const AggregationDefSchema=z['discriminatedUnion'](a168_0x156a5b(0xad),[z[a168_0x156a5b(0xa5)]({'type':z[a168_0x156a5b(0xdb)](['Sum',a168_0x156a5b(0xe4),a168_0x156a5b(0xba),a168_0x156a5b(0xd4)]),'column':z['string'](),'groupingColumns':z['array'](z[a168_0x156a5b(0xc1)]())[a168_0x156a5b(0xc9)]()}),z[a168_0x156a5b(0xa5)]({'type':z[a168_0x156a5b(0xb5)](a168_0x156a5b(0xe3)),'groupingColumns':z[a168_0x156a5b(0xa8)](z['string']())['optional']()}),z[a168_0x156a5b(0xa5)]({'type':z[a168_0x156a5b(0xb5)](a168_0x156a5b(0xd5)),'columns':z[a168_0x156a5b(0xa8)](z[a168_0x156a5b(0xc1)]())}),z['object']({'type':z[a168_0x156a5b(0xdb)](['First',a168_0x156a5b(0xc0)]),'column':z[a168_0x156a5b(0xc1)](),'orderColumn':z[a168_0x156a5b(0xc1)](),'groupingColumns':z[a168_0x156a5b(0xa8)](z[a168_0x156a5b(0xc1)]())[a168_0x156a5b(0xc9)]()})]);export const TimeWindowDefSchema=z['object']({'duration':z['number'](),'unit':TimeUnitSchema});const TIMESTAMP_OPERATORS=new Set([a168_0x156a5b(0xc2),a168_0x156a5b(0xe2),'TimeRange']);export const FilterColumnConditionDefSchema=z['object']({'type':z['literal'](a168_0x156a5b(0xef)),'column':z['string'](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema[a168_0x156a5b(0xc9)]()})[a168_0x156a5b(0xf4)]((_0x545f51,_0x3adca2)=>{const _0x319bd8=a168_0x156a5b,_0x3dac5c=_0x545f51['operator']['type'];_0x545f51[_0x319bd8(0xae)]===_0x319bd8(0xf6)?!TIMESTAMP_OPERATORS[_0x319bd8(0xa3)](_0x3dac5c)&&_0x3adca2['addIssue']({'code':_0x319bd8(0xb9),'message':_0x319bd8(0xbb)+_0x3dac5c+'\x27)','path':[_0x319bd8(0xe6),'type']}):TIMESTAMP_OPERATORS['has'](_0x3dac5c)&&_0x3adca2['addIssue']({'code':_0x319bd8(0xb9),'message':'Operator\x20\x27'+_0x3dac5c+_0x319bd8(0xac),'path':[_0x319bd8(0xe6),'type']});});export const FilterRuleDefSchema=z[a168_0x156a5b(0xa5)]({'type':z[a168_0x156a5b(0xb5)](a168_0x156a5b(0xe0)),'conditions':z['array'](FilterColumnConditionDefSchema)});export const ValueConditionDefSchema=z[a168_0x156a5b(0xc7)](()=>z[a168_0x156a5b(0xa5)]({'type':z[a168_0x156a5b(0xb5)](a168_0x156a5b(0xc8)),'attribute':z[a168_0x156a5b(0xc1)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema[a168_0x156a5b(0xc9)](),'exclude':z[a168_0x156a5b(0xdc)]()[a168_0x156a5b(0xc9)](),'aggregation':AggregationDefSchema[a168_0x156a5b(0xc9)](),'source':z[a168_0x156a5b(0xc1)]()[a168_0x156a5b(0xc9)](),'filter':FilterRuleDefSchema[a168_0x156a5b(0xc9)](),'limit':z['number']()[a168_0x156a5b(0xc9)]()}));function a168_0x3d26(){const _0x17400f=['Operator\x20\x27','Regexp','min','Between','IsNull','Average','CountDistinct','realtime','198ftIhmw','include','36HJbZdX','Sum','enum','boolean','27708VViuFi','Segment\x20name\x20is\x20required','LessEqual','And','1243XlylnH','TimeWithinNext','Count','Min','second','operator','800775WsIAOW','max','Segment\x20reference\x20must\x20not\x20be\x20empty','TimeRange','StartWith','Less','32544wKZWKS','MISSING_BETWEEN_BOUNDS','Column','Contain','\x27\x20requires\x20a\x20value','exclude','3rlRvbr','superRefine','minute','timestamp','Composite','2NiqxUs','unit','has','duration','object','union','Equal','array','Behavior','month','value','\x27\x20is\x20only\x20valid\x20for\x20the\x20\x27timestamp\x27\x20column','type','column','3358116camWaJ','addIssue','EndWith','number','Between\x20operator\x20requires\x20\x27min\x27\x20and/or\x20\x27max\x27\x20values','TimeRange\x20operator\x20requires\x20\x27from\x27','literal','from','all','\x27\x20requires\x20a\x20time\x20unit','custom','Max','Timestamp\x20column\x20only\x20supports\x20TimeWithinPast,\x20TimeWithinNext,\x20or\x20TimeRange\x20operators\x20(got\x20\x27','Greater','week','50620KNsvxV','6110573gJQXag','Last','string','TimeWithinPast','day','funnel_stage','segment','MISSING_TIME_UNIT','lazy','Value','optional','8827pVxzDM','GreaterEqual','340892pPYlCy','record','year'];a168_0x3d26=function(){return _0x17400f;};return a168_0x3d26();}export const BehaviorConditionDefSchema=z[a168_0x156a5b(0xc7)](()=>z[a168_0x156a5b(0xa5)]({'type':z[a168_0x156a5b(0xb5)](a168_0x156a5b(0xa9)),'attribute':z[a168_0x156a5b(0xc1)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema['optional'](),'exclude':z[a168_0x156a5b(0xdc)]()[a168_0x156a5b(0xc9)](),'aggregation':AggregationDefSchema[a168_0x156a5b(0xc9)](),'source':z[a168_0x156a5b(0xc1)]()[a168_0x156a5b(0xc9)](),'filter':FilterRuleDefSchema[a168_0x156a5b(0xc9)](),'timeWindow':TimeWindowDefSchema[a168_0x156a5b(0xc9)](),'limit':z[a168_0x156a5b(0xb2)]()[a168_0x156a5b(0xc9)]()}));export const ColumnConditionDefSchema=z['object']({'type':z['literal'](a168_0x156a5b(0xef)),'column':z[a168_0x156a5b(0xc1)](),'operator':OperatorDefSchema});export const CompositeConditionDefSchema=z['lazy'](()=>z[a168_0x156a5b(0xa5)]({'type':z[a168_0x156a5b(0xdb)]([a168_0x156a5b(0xe0),'Or',a168_0x156a5b(0xf7)]),'conditions':z[a168_0x156a5b(0xa8)](ConditionDefSchema),'description':z['string']()['optional'](),'expr':z['string']()[a168_0x156a5b(0xc9)]()}));export const SegmentRefConditionDefSchema=z['object']({'type':z[a168_0x156a5b(0xdb)]([a168_0x156a5b(0xd8),a168_0x156a5b(0xf2)]),'segment':z[a168_0x156a5b(0xc1)]()[a168_0x156a5b(0xd1)](0x1,a168_0x156a5b(0xe9))});export const ConditionDefSchema=z[a168_0x156a5b(0xc7)](()=>z['union']([ValueConditionDefSchema,BehaviorConditionDefSchema,ColumnConditionDefSchema,CompositeConditionDefSchema,SegmentRefConditionDefSchema]));function a168_0x13c1(_0x1513a4,_0x453435){_0x1513a4=_0x1513a4-0xa3;const _0x3d2639=a168_0x3d26();let _0x13c168=_0x3d2639[_0x1513a4];return _0x13c168;}export const RuleDefSchema=z[a168_0x156a5b(0xc7)](()=>z[a168_0x156a5b(0xa5)]({'type':z[a168_0x156a5b(0xdb)]([a168_0x156a5b(0xe0),'Or',a168_0x156a5b(0xf7)]),'conditions':z['array'](ConditionDefSchema),'description':z['string']()[a168_0x156a5b(0xc9)](),'expr':z['string']()[a168_0x156a5b(0xc9)]()}));export const SegmentDefSchema=z[a168_0x156a5b(0xa5)]({'type':z[a168_0x156a5b(0xb5)](a168_0x156a5b(0xc5))[a168_0x156a5b(0xc9)](),'name':z[a168_0x156a5b(0xc1)]()['min'](0x1,a168_0x156a5b(0xde)),'description':z[a168_0x156a5b(0xc1)]()[a168_0x156a5b(0xc9)](),'folder':z[a168_0x156a5b(0xc1)]()[a168_0x156a5b(0xc9)](),'rule':RuleDefSchema[a168_0x156a5b(0xc9)](),'kind':z[a168_0x156a5b(0xdb)](['batch',a168_0x156a5b(0xd6),a168_0x156a5b(0xc4)])[a168_0x156a5b(0xc9)](),'visible':z['boolean']()['optional'](),'activations':z[a168_0x156a5b(0xa8)](z['any']())[a168_0x156a5b(0xc9)]()});const _syncCheck1=!![],_syncCheck2=!![];void _syncCheck1,void _syncCheck2;
1
+ const a168_0x4ab327=a168_0x4d9d;(function(_0x548336,_0x19d068){const _0x4637ac=a168_0x4d9d,_0x1d84b1=_0x548336();while(!![]){try{const _0x597dcc=parseInt(_0x4637ac(0x20d))/0x1*(-parseInt(_0x4637ac(0x214))/0x2)+-parseInt(_0x4637ac(0x1dc))/0x3*(parseInt(_0x4637ac(0x22b))/0x4)+-parseInt(_0x4637ac(0x210))/0x5+parseInt(_0x4637ac(0x1e5))/0x6*(-parseInt(_0x4637ac(0x216))/0x7)+-parseInt(_0x4637ac(0x1df))/0x8+-parseInt(_0x4637ac(0x219))/0x9*(-parseInt(_0x4637ac(0x1e0))/0xa)+parseInt(_0x4637ac(0x215))/0xb;if(_0x597dcc===_0x19d068)break;else _0x1d84b1['push'](_0x1d84b1['shift']());}catch(_0x494c5d){_0x1d84b1['push'](_0x1d84b1['shift']());}}}(a168_0x4ee3,0x3809c));import{z}from'zod';export const OperatorTypeSchema=z[a168_0x4ab327(0x228)]([a168_0x4ab327(0x201),a168_0x4ab327(0x207),'Less',a168_0x4ab327(0x213),a168_0x4ab327(0x1dd),'In','Between',a168_0x4ab327(0x21f),a168_0x4ab327(0x22a),a168_0x4ab327(0x20f),a168_0x4ab327(0x1fe),'Contain',a168_0x4ab327(0x220),'EndWith','TimeRange']);export const TimeUnitSchema=z['enum'](['second','minute',a168_0x4ab327(0x1fa),a168_0x4ab327(0x1f6),a168_0x4ab327(0x1fc),a168_0x4ab327(0x21b),a168_0x4ab327(0x1f1)]);export const AggregationTypeSchema=z[a168_0x4ab327(0x228)](['Count',a168_0x4ab327(0x1ec),a168_0x4ab327(0x20c),a168_0x4ab327(0x1e4),a168_0x4ab327(0x1f4),a168_0x4ab327(0x21a),'First',a168_0x4ab327(0x1e7)]);const TemporalValueSchema=z[a168_0x4ab327(0x1de)]([z[a168_0x4ab327(0x21c)]({'timestamp':z['string']()}),z['object']({'last':z['union']([z['number'](),z['record'](z[a168_0x4ab327(0x20b)](),z['number']())]),'unit':z[a168_0x4ab327(0x20b)]()})]),OperatorValueSchema=z[a168_0x4ab327(0x1de)]([z[a168_0x4ab327(0x20b)](),z[a168_0x4ab327(0x209)](),z[a168_0x4ab327(0x227)](),TemporalValueSchema,z[a168_0x4ab327(0x204)](z['union']([z['string'](),z[a168_0x4ab327(0x209)](),z[a168_0x4ab327(0x227)]()]))]),OPERATORS_REQUIRING_VALUE=new Set([a168_0x4ab327(0x201),a168_0x4ab327(0x207),'GreaterEqual',a168_0x4ab327(0x223),a168_0x4ab327(0x1dd),'In',a168_0x4ab327(0x224),a168_0x4ab327(0x220),a168_0x4ab327(0x1f3),a168_0x4ab327(0x21f),a168_0x4ab327(0x20f),a168_0x4ab327(0x1fe)]),OPERATORS_REQUIRING_UNIT=new Set([a168_0x4ab327(0x20f),'TimeWithinNext']);export const OperatorDefSchema=z[a168_0x4ab327(0x21c)]({'type':OperatorTypeSchema,'not':z[a168_0x4ab327(0x227)]()[a168_0x4ab327(0x1f7)](),'value':OperatorValueSchema['optional'](),'min':z[a168_0x4ab327(0x1de)]([z[a168_0x4ab327(0x209)](),z[a168_0x4ab327(0x20b)](),TemporalValueSchema])['optional'](),'max':z['union']([z[a168_0x4ab327(0x209)](),z[a168_0x4ab327(0x20b)](),TemporalValueSchema])[a168_0x4ab327(0x1f7)](),'unit':TimeUnitSchema['optional'](),'duration':z[a168_0x4ab327(0x21c)]({'day':z['number']()[a168_0x4ab327(0x1f7)](),'week':z[a168_0x4ab327(0x209)]()[a168_0x4ab327(0x1f7)](),'month':z[a168_0x4ab327(0x209)]()['optional'](),'year':z[a168_0x4ab327(0x209)]()[a168_0x4ab327(0x1f7)](),'hour':z['number']()['optional'](),'minute':z[a168_0x4ab327(0x209)]()[a168_0x4ab327(0x1f7)](),'second':z['number']()[a168_0x4ab327(0x1f7)]()})[a168_0x4ab327(0x1f7)](),'from':z['object']({'last':z[a168_0x4ab327(0x1de)]([z[a168_0x4ab327(0x209)](),z[a168_0x4ab327(0x20b)]()]),'unit':TimeUnitSchema})['optional'](),'reverse':z[a168_0x4ab327(0x227)]()['optional']()})[a168_0x4ab327(0x1f5)]((_0x28a81c,_0x547768)=>{const _0x1b9112=a168_0x4ab327;OPERATORS_REQUIRING_VALUE[_0x1b9112(0x1f8)](_0x28a81c[_0x1b9112(0x208)])&&(_0x28a81c[_0x1b9112(0x1f9)]===undefined||_0x28a81c[_0x1b9112(0x1f9)]===null)&&_0x547768[_0x1b9112(0x206)]({'code':_0x1b9112(0x217),'message':'Operator\x20\x27'+_0x28a81c[_0x1b9112(0x208)]+_0x1b9112(0x1ef),'path':['value']}),_0x28a81c[_0x1b9112(0x208)]==='Between'&&_0x28a81c[_0x1b9112(0x222)]===undefined&&_0x28a81c[_0x1b9112(0x1e9)]===undefined&&_0x547768[_0x1b9112(0x206)]({'code':_0x1b9112(0x217),'message':_0x1b9112(0x21d),'params':{'validationCode':'MISSING_BETWEEN_BOUNDS'}}),OPERATORS_REQUIRING_UNIT[_0x1b9112(0x1f8)](_0x28a81c[_0x1b9112(0x208)])&&_0x28a81c[_0x1b9112(0x1f9)]!==undefined&&!_0x28a81c[_0x1b9112(0x226)]&&_0x547768[_0x1b9112(0x206)]({'code':'custom','message':'Operator\x20\x27'+_0x28a81c[_0x1b9112(0x208)]+_0x1b9112(0x212),'path':['unit'],'params':{'validationCode':_0x1b9112(0x1e6)}}),_0x28a81c[_0x1b9112(0x208)]===_0x1b9112(0x1ee)&&(!_0x28a81c['duration']&&_0x547768[_0x1b9112(0x206)]({'code':_0x1b9112(0x217),'message':_0x1b9112(0x1e1),'path':[_0x1b9112(0x200)]}),!_0x28a81c['from']&&_0x547768[_0x1b9112(0x206)]({'code':_0x1b9112(0x217),'message':_0x1b9112(0x1ed),'path':['from']}));});export const ArrayMatchingSchema=z[a168_0x4ab327(0x1de)]([z[a168_0x4ab327(0x221)](a168_0x4ab327(0x211)),z['literal'](a168_0x4ab327(0x1ff)),z[a168_0x4ab327(0x21c)]({'atLeast':z[a168_0x4ab327(0x209)]()}),z[a168_0x4ab327(0x21c)]({'atMost':z[a168_0x4ab327(0x209)]()}),z['object']({'exactly':z[a168_0x4ab327(0x209)]()})]);export const AggregationDefSchema=z[a168_0x4ab327(0x1ea)](a168_0x4ab327(0x208),[z[a168_0x4ab327(0x21c)]({'type':z['enum']([a168_0x4ab327(0x1ec),'Min',a168_0x4ab327(0x1f4),'Average']),'column':z[a168_0x4ab327(0x20b)](),'groupingColumns':z[a168_0x4ab327(0x204)](z['string']())['optional']()}),z[a168_0x4ab327(0x21c)]({'type':z['literal'](a168_0x4ab327(0x1e8)),'groupingColumns':z[a168_0x4ab327(0x204)](z['string']())[a168_0x4ab327(0x1f7)]()}),z[a168_0x4ab327(0x21c)]({'type':z['literal'](a168_0x4ab327(0x21a)),'columns':z[a168_0x4ab327(0x204)](z[a168_0x4ab327(0x20b)]())}),z['object']({'type':z['enum']([a168_0x4ab327(0x1e2),'Last']),'column':z['string'](),'orderColumn':z['string'](),'groupingColumns':z[a168_0x4ab327(0x204)](z[a168_0x4ab327(0x20b)]())[a168_0x4ab327(0x1f7)]()})]);export const TimeWindowDefSchema=z['object']({'duration':z[a168_0x4ab327(0x209)](),'unit':TimeUnitSchema});const TIMESTAMP_OPERATORS=new Set([a168_0x4ab327(0x20f),a168_0x4ab327(0x1fe),a168_0x4ab327(0x1ee)]);export const FilterColumnConditionDefSchema=z[a168_0x4ab327(0x21c)]({'type':z['literal']('Column'),'column':z[a168_0x4ab327(0x20b)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema['optional']()})[a168_0x4ab327(0x1f5)]((_0x1020c6,_0x3b5fee)=>{const _0x4ebe49=a168_0x4ab327,_0x27886c=_0x1020c6[_0x4ebe49(0x20a)]['type'];_0x1020c6[_0x4ebe49(0x1f0)]===_0x4ebe49(0x1eb)?!TIMESTAMP_OPERATORS[_0x4ebe49(0x1f8)](_0x27886c)&&_0x3b5fee[_0x4ebe49(0x206)]({'code':_0x4ebe49(0x217),'message':_0x4ebe49(0x1e3)+_0x27886c+'\x27)','path':['operator',_0x4ebe49(0x208)]}):TIMESTAMP_OPERATORS[_0x4ebe49(0x1f8)](_0x27886c)&&_0x3b5fee[_0x4ebe49(0x206)]({'code':_0x4ebe49(0x217),'message':_0x4ebe49(0x1fb)+_0x27886c+_0x4ebe49(0x218),'path':['operator','type']});});export const FilterRuleDefSchema=z[a168_0x4ab327(0x21c)]({'type':z[a168_0x4ab327(0x221)]('And'),'conditions':z[a168_0x4ab327(0x204)](FilterColumnConditionDefSchema)});function a168_0x4ee3(){const _0x180f75=['781070zKvaVv','any','\x27\x20requires\x20a\x20time\x20unit','GreaterEqual','2RnSFwx','13531716FmKWco','301217LSVWmC','custom','\x27\x20is\x20only\x20valid\x20for\x20the\x20\x27timestamp\x27\x20column','9Zsdiez','CountDistinct','month','object','Between\x20operator\x20requires\x20\x27min\x27\x20and/or\x20\x27max\x27\x20values','segment','Regexp','StartWith','literal','min','Less','Contain','funnel_stage','unit','boolean','enum','exclude','IsNull','4LTdMSr','Segment\x20reference\x20must\x20not\x20be\x20empty','1167663NwnaJX','LessEqual','union','3079392IZePGr','3216140zSgAoV','TimeRange\x20operator\x20requires\x20\x27duration\x27','First','Timestamp\x20column\x20only\x20supports\x20TimeWithinPast,\x20TimeWithinNext,\x20or\x20TimeRange\x20operators\x20(got\x20\x27','Min','30OCytnI','MISSING_TIME_UNIT','Last','Count','max','discriminatedUnion','timestamp','Sum','TimeRange\x20operator\x20requires\x20\x27from\x27','TimeRange','\x27\x20requires\x20a\x20value','column','year','Segment\x20name\x20is\x20required','EndWith','Max','superRefine','day','optional','has','value','hour','Operator\x20\x27','week','lazy','TimeWithinNext','all','duration','Equal','realtime','And','array','Column','addIssue','Greater','type','number','operator','string','Average','176724hyCgIs','include','TimeWithinPast'];a168_0x4ee3=function(){return _0x180f75;};return a168_0x4ee3();}export const ValueConditionDefSchema=z[a168_0x4ab327(0x1fd)](()=>z[a168_0x4ab327(0x21c)]({'type':z[a168_0x4ab327(0x221)]('Value'),'attribute':z[a168_0x4ab327(0x20b)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema[a168_0x4ab327(0x1f7)](),'exclude':z[a168_0x4ab327(0x227)]()[a168_0x4ab327(0x1f7)](),'aggregation':AggregationDefSchema[a168_0x4ab327(0x1f7)](),'source':z[a168_0x4ab327(0x20b)]()[a168_0x4ab327(0x1f7)](),'filter':FilterRuleDefSchema[a168_0x4ab327(0x1f7)](),'limit':z[a168_0x4ab327(0x209)]()['optional']()}));export const BehaviorConditionDefSchema=z[a168_0x4ab327(0x1fd)](()=>z[a168_0x4ab327(0x21c)]({'type':z[a168_0x4ab327(0x221)]('Behavior'),'attribute':z[a168_0x4ab327(0x20b)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema[a168_0x4ab327(0x1f7)](),'exclude':z['boolean']()['optional'](),'aggregation':AggregationDefSchema['optional'](),'source':z['string']()[a168_0x4ab327(0x1f7)](),'filter':FilterRuleDefSchema[a168_0x4ab327(0x1f7)](),'timeWindow':TimeWindowDefSchema[a168_0x4ab327(0x1f7)](),'limit':z['number']()['optional']()}));export const ColumnConditionDefSchema=z[a168_0x4ab327(0x21c)]({'type':z[a168_0x4ab327(0x221)](a168_0x4ab327(0x205)),'column':z[a168_0x4ab327(0x20b)](),'operator':OperatorDefSchema});export const CompositeConditionDefSchema=z['lazy'](()=>z[a168_0x4ab327(0x21c)]({'type':z[a168_0x4ab327(0x228)]([a168_0x4ab327(0x203),'Or','Composite']),'conditions':z[a168_0x4ab327(0x204)](ConditionDefSchema),'description':z[a168_0x4ab327(0x20b)]()['optional'](),'expr':z[a168_0x4ab327(0x20b)]()[a168_0x4ab327(0x1f7)]()}));export const SegmentRefConditionDefSchema=z[a168_0x4ab327(0x21c)]({'type':z[a168_0x4ab327(0x228)]([a168_0x4ab327(0x20e),a168_0x4ab327(0x229)]),'segment':z['string']()[a168_0x4ab327(0x222)](0x1,a168_0x4ab327(0x22c))});export const ConditionDefSchema=z[a168_0x4ab327(0x1fd)](()=>z[a168_0x4ab327(0x1de)]([ValueConditionDefSchema,BehaviorConditionDefSchema,ColumnConditionDefSchema,CompositeConditionDefSchema,SegmentRefConditionDefSchema]));export const RuleDefSchema=z[a168_0x4ab327(0x1fd)](()=>z[a168_0x4ab327(0x21c)]({'type':z[a168_0x4ab327(0x228)](['And','Or','Composite']),'conditions':z[a168_0x4ab327(0x204)](ConditionDefSchema),'description':z[a168_0x4ab327(0x20b)]()[a168_0x4ab327(0x1f7)](),'expr':z[a168_0x4ab327(0x20b)]()[a168_0x4ab327(0x1f7)]()}));export const SegmentDefSchema=z[a168_0x4ab327(0x21c)]({'type':z[a168_0x4ab327(0x221)](a168_0x4ab327(0x21e))[a168_0x4ab327(0x1f7)](),'name':z[a168_0x4ab327(0x20b)]()['min'](0x1,a168_0x4ab327(0x1f2)),'description':z[a168_0x4ab327(0x20b)]()[a168_0x4ab327(0x1f7)](),'folder':z[a168_0x4ab327(0x20b)]()[a168_0x4ab327(0x1f7)](),'rule':RuleDefSchema[a168_0x4ab327(0x1f7)](),'kind':z[a168_0x4ab327(0x228)](['batch',a168_0x4ab327(0x202),a168_0x4ab327(0x225)])['optional'](),'visible':z['boolean']()['optional'](),'activations':z[a168_0x4ab327(0x204)](z[a168_0x4ab327(0x211)]())[a168_0x4ab327(0x1f7)]()});const _syncCheck1=!![],_syncCheck2=!![];function a168_0x4d9d(_0x13cbc8,_0x4ed6c6){_0x13cbc8=_0x13cbc8-0x1dc;const _0x4ee3d7=a168_0x4ee3();let _0x4d9d0f=_0x4ee3d7[_0x13cbc8];return _0x4d9d0f;}void _syncCheck1,void _syncCheck2;
@@ -1 +1 @@
1
- const a169_0x5110b4=a169_0x99f5;(function(_0x5364be,_0x2fff82){const _0x2edaca=a169_0x99f5,_0x4fb2fc=_0x5364be();while(!![]){try{const _0x533c39=-parseInt(_0x2edaca(0x11c))/0x1*(-parseInt(_0x2edaca(0x114))/0x2)+-parseInt(_0x2edaca(0x121))/0x3*(parseInt(_0x2edaca(0x12c))/0x4)+-parseInt(_0x2edaca(0x12f))/0x5+-parseInt(_0x2edaca(0x115))/0x6+-parseInt(_0x2edaca(0x128))/0x7*(-parseInt(_0x2edaca(0x126))/0x8)+-parseInt(_0x2edaca(0x122))/0x9+parseInt(_0x2edaca(0x12a))/0xa;if(_0x533c39===_0x2fff82)break;else _0x4fb2fc['push'](_0x4fb2fc['shift']());}catch(_0x2d97dc){_0x4fb2fc['push'](_0x4fb2fc['shift']());}}}(a169_0x4e31,0xde611));import{readFileSync}from'fs';import*as a169_0x3564ed from'path';import*as a169_0x5260c2 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{isJourneyDef}from'./journey-yaml.js';const VALID_CAMPAIGN_TYPES=new Set(['email',a169_0x5110b4(0x12b)]);function a169_0x99f5(_0x542ee0,_0x16a137){_0x542ee0=_0x542ee0-0x113;const _0x4e3118=a169_0x4e31();let _0x99f539=_0x4e3118[_0x542ee0];return _0x99f539;}export{isJourneyDef};function a169_0x4e31(){const _0x57ee09=['YAML_PARSE_ERROR','3EwcFnd','Failed\x20to\x20parse\x20YAML\x20file\x20(empty\x20or\x20invalid)','map','message','result','126RMscNW','2380149ObOszm','YAML\x20parse\x20error:\x20','journey','has','472dFlJbS','error','169715LjSmPb','type','7088240hSYqOb','push','123948latYwj','not\x20a\x20','parseDocument','2182345eOHVvX','length','valid','basename','549676ahClxX','303264jZUwRI','campaign','utf-8','template','filterType','segment'];a169_0x4e31=function(){return _0x57ee09;};return a169_0x4e31();}export function isCampaignDef(_0x837a02){const _0x5911c6=a169_0x5110b4;if(typeof _0x837a02!=='object'||_0x837a02===null)return![];const _0x1884d8=_0x837a02,_0x53eb7f=VALID_CAMPAIGN_TYPES[_0x5911c6(0x125)](_0x1884d8['campaign_type']);if(_0x1884d8[_0x5911c6(0x129)]==='campaign'&&_0x53eb7f)return!![];if(_0x53eb7f&&!_0x1884d8['type'])return!![];return![];}export function isTemplateDef(_0x3d883f){const _0x156003=a169_0x5110b4;return typeof _0x3d883f==='object'&&_0x3d883f!==null&&_0x156003(0x129)in _0x3d883f&&_0x3d883f[_0x156003(0x129)]===_0x156003(0x118);}export function isValidationResult(_0x425026){return!('skipped'in _0x425026);}export function createParseErrorResult(_0x22e6f3,_0x3e8f3b,_0x27e3e7,_0x4c68e8,_0x3c9ff1=a169_0x5110b4(0x11a)){const _0x5e22be=a169_0x5110b4;return{'filePath':_0x22e6f3,'relativePath':_0x3e8f3b,'source':_0x27e3e7,'result':{'valid':![],'errors':[{'level':_0x5e22be(0x127),'path':'','code':_0x5e22be(0x11b),'message':_0x4c68e8}],'warnings':[]},'fileType':_0x3c9ff1};}export function validateYamlFile(_0x4e188d,_0x278c8e,_0x38acaa={}){const _0x11d401=a169_0x5110b4,_0xe39248=a169_0x3564ed['relative'](_0x278c8e,_0x4e188d)||a169_0x3564ed[_0x11d401(0x113)](_0x4e188d);try{const _0x1baa1a=readFileSync(_0x4e188d,_0x11d401(0x117)),_0x4d23fc=a169_0x5260c2[_0x11d401(0x12e)](_0x1baa1a),_0x129bb3=_0x4d23fc['toJSON']();if(!_0x129bb3)return createParseErrorResult(_0x4e188d,_0xe39248,_0x1baa1a,_0x11d401(0x11d));let _0x541dec;if(isJourneyDef(_0x129bb3,_0x4e188d))_0x541dec=_0x11d401(0x124);else{if(isCampaignDef(_0x129bb3))_0x541dec=_0x11d401(0x116);else isTemplateDef(_0x129bb3)?_0x541dec='template':_0x541dec=_0x11d401(0x11a);}if(_0x38acaa[_0x11d401(0x119)]&&_0x541dec!==_0x38acaa[_0x11d401(0x119)])return{'filePath':_0x4e188d,'relativePath':_0xe39248,'skipped':!![],'reason':_0x11d401(0x12d)+_0x38acaa[_0x11d401(0x119)]};const _0x8b7e10={'source':_0x1baa1a,'document':_0x4d23fc};let _0x29c3ef;if(_0x541dec===_0x11d401(0x124))_0x29c3ef=validateJourneyDef(_0x129bb3,_0x8b7e10);else{if(_0x541dec===_0x11d401(0x116))_0x29c3ef=validateCampaignDef(_0x129bb3,_0x8b7e10);else _0x541dec==='template'?_0x29c3ef=validateTemplateDef(_0x129bb3,_0x8b7e10):_0x29c3ef=validateSegmentDef(_0x129bb3,_0x8b7e10);}return{'filePath':_0x4e188d,'relativePath':_0xe39248,'source':_0x1baa1a,'result':_0x29c3ef,'fileType':_0x541dec};}catch(_0xea7c37){const _0x583db8=_0xea7c37 instanceof Error?_0xea7c37[_0x11d401(0x11f)]:String(_0xea7c37);return createParseErrorResult(_0x4e188d,_0xe39248,'',_0x11d401(0x123)+_0x583db8);}}export function validateYamlFiles(_0xc6c732,_0x1766d1,_0x1cb436={}){const _0x44b8a6=a169_0x5110b4;return _0xc6c732[_0x44b8a6(0x11e)](_0x4391f5=>validateYamlFile(_0x4391f5,_0x1766d1,_0x1cb436));}export function calculateSummary(_0x2dd21e){const _0x21399c=a169_0x5110b4;let _0x188537=0x0,_0x1ac482=0x0,_0x4ffb26=0x0,_0x21d5f7=0x0;for(const _0x5cd5d2 of _0x2dd21e){if(!isValidationResult(_0x5cd5d2)){_0x21d5f7++;continue;}_0x5cd5d2[_0x21399c(0x120)][_0x21399c(0x131)]?_0x188537++:_0x1ac482++,_0x4ffb26+=_0x5cd5d2[_0x21399c(0x120)]['warnings'][_0x21399c(0x130)];}return{'validCount':_0x188537,'invalidCount':_0x1ac482,'warningCount':_0x4ffb26,'skippedCount':_0x21d5f7,'hasErrors':_0x1ac482>0x0};}
1
+ const a169_0x1a34ee=a169_0x72fb;(function(_0xd158df,_0x26589f){const _0x347287=a169_0x72fb,_0x319b80=_0xd158df();while(!![]){try{const _0x3aa7f8=parseInt(_0x347287(0xb8))/0x1+-parseInt(_0x347287(0xa5))/0x2+-parseInt(_0x347287(0xa9))/0x3*(-parseInt(_0x347287(0xa1))/0x4)+-parseInt(_0x347287(0xa8))/0x5+parseInt(_0x347287(0xb2))/0x6*(-parseInt(_0x347287(0xa3))/0x7)+-parseInt(_0x347287(0x9d))/0x8*(parseInt(_0x347287(0xbe))/0x9)+-parseInt(_0x347287(0xb0))/0xa*(-parseInt(_0x347287(0xb5))/0xb);if(_0x3aa7f8===_0x26589f)break;else _0x319b80['push'](_0x319b80['shift']());}catch(_0x3ad201){_0x319b80['push'](_0x319b80['shift']());}}}(a169_0xb22d,0x33c02));import{readFileSync}from'fs';import*as a169_0x1347cf from'path';import*as a169_0x3f7989 from'yaml';function a169_0xb22d(){const _0x25eaf1=['filterType','482392hERAKO','has','message','Failed\x20to\x20parse\x20YAML\x20file\x20(empty\x20or\x20invalid)','2540XNoYbm','warnings','133jwUqHw','basename','73464TuUMcB','push','utf-8','725305uyQjYn','93ulKpVg','campaign_type','object','error','segment','template','YAML_PARSE_ERROR','7751510MTtRAh','email','104268EIfktl','skipped','parseDocument','11dCHoYJ','type','result','351202EPZvNv','campaign','relative','not\x20a\x20','journey','length','63CfaMOd','valid'];a169_0xb22d=function(){return _0x25eaf1;};return a169_0xb22d();}import{validateSegmentDef}from'./yaml-validator.js';import{validateJourneyDef}from'./journey-validator.js';import{validateCampaignDef}from'../engage/campaign-validator.js';function a169_0x72fb(_0x27f8df,_0x2e4092){_0x27f8df=_0x27f8df-0x9d;const _0xb22d1a=a169_0xb22d();let _0x72fb4d=_0xb22d1a[_0x27f8df];return _0x72fb4d;}import{validateTemplateDef}from'../engage/template-validator.js';import{isJourneyDef}from'./journey-yaml.js';const VALID_CAMPAIGN_TYPES=new Set([a169_0x1a34ee(0xb1),a169_0x1a34ee(0xa6)]);export{isJourneyDef};export function isCampaignDef(_0x3685ef){const _0x5edfd4=a169_0x1a34ee;if(typeof _0x3685ef!==_0x5edfd4(0xab)||_0x3685ef===null)return![];const _0x5e9de7=_0x3685ef,_0xc1cbba=VALID_CAMPAIGN_TYPES[_0x5edfd4(0x9e)](_0x5e9de7[_0x5edfd4(0xaa)]);if(_0x5e9de7[_0x5edfd4(0xb6)]==='campaign'&&_0xc1cbba)return!![];if(_0xc1cbba&&!_0x5e9de7['type'])return!![];return![];}export function isTemplateDef(_0x4f5796){const _0x427036=a169_0x1a34ee;return typeof _0x4f5796===_0x427036(0xab)&&_0x4f5796!==null&&'type'in _0x4f5796&&_0x4f5796['type']===_0x427036(0xae);}export function isValidationResult(_0x3fdb48){const _0x487850=a169_0x1a34ee;return!(_0x487850(0xb3)in _0x3fdb48);}export function createParseErrorResult(_0x1bd278,_0x356098,_0x4db10f,_0x15834d,_0xe2b8fa='segment'){const _0x1687b5=a169_0x1a34ee;return{'filePath':_0x1bd278,'relativePath':_0x356098,'source':_0x4db10f,'result':{'valid':![],'errors':[{'level':_0x1687b5(0xac),'path':'','code':_0x1687b5(0xaf),'message':_0x15834d}],'warnings':[]},'fileType':_0xe2b8fa};}export function validateYamlFile(_0x5f1f53,_0x691b94,_0x53a641={}){const _0x5b8094=a169_0x1a34ee,_0x4f666a=a169_0x1347cf[_0x5b8094(0xba)](_0x691b94,_0x5f1f53)||a169_0x1347cf[_0x5b8094(0xa4)](_0x5f1f53);try{const _0x2d45dd=readFileSync(_0x5f1f53,_0x5b8094(0xa7)),_0x339499=a169_0x3f7989[_0x5b8094(0xb4)](_0x2d45dd),_0x52ae14=_0x339499['toJSON']();if(!_0x52ae14)return createParseErrorResult(_0x5f1f53,_0x4f666a,_0x2d45dd,_0x5b8094(0xa0));let _0xf9fa98;if(isJourneyDef(_0x52ae14,_0x5f1f53))_0xf9fa98='journey';else{if(isCampaignDef(_0x52ae14))_0xf9fa98=_0x5b8094(0xb9);else isTemplateDef(_0x52ae14)?_0xf9fa98=_0x5b8094(0xae):_0xf9fa98=_0x5b8094(0xad);}if(_0x53a641[_0x5b8094(0xc0)]&&_0xf9fa98!==_0x53a641[_0x5b8094(0xc0)])return{'filePath':_0x5f1f53,'relativePath':_0x4f666a,'skipped':!![],'reason':_0x5b8094(0xbb)+_0x53a641[_0x5b8094(0xc0)]};const _0x3e7838={'source':_0x2d45dd,'document':_0x339499};let _0x1ee54b;if(_0xf9fa98===_0x5b8094(0xbc))_0x1ee54b=validateJourneyDef(_0x52ae14,_0x3e7838);else{if(_0xf9fa98===_0x5b8094(0xb9))_0x1ee54b=validateCampaignDef(_0x52ae14,_0x3e7838);else _0xf9fa98==='template'?_0x1ee54b=validateTemplateDef(_0x52ae14,_0x3e7838):_0x1ee54b=validateSegmentDef(_0x52ae14,_0x3e7838);}return{'filePath':_0x5f1f53,'relativePath':_0x4f666a,'source':_0x2d45dd,'result':_0x1ee54b,'fileType':_0xf9fa98};}catch(_0x504ed2){const _0xc30c21=_0x504ed2 instanceof Error?_0x504ed2[_0x5b8094(0x9f)]:String(_0x504ed2);return createParseErrorResult(_0x5f1f53,_0x4f666a,'','YAML\x20parse\x20error:\x20'+_0xc30c21);}}export function validateYamlFiles(_0x7766d7,_0x36af6d,_0x2f8ee7={}){return _0x7766d7['map'](_0x145c94=>validateYamlFile(_0x145c94,_0x36af6d,_0x2f8ee7));}export function calculateSummary(_0x345b3a){const _0x2bf547=a169_0x1a34ee;let _0x47fe96=0x0,_0xbbe1c5=0x0,_0x506142=0x0,_0x4ba749=0x0;for(const _0x2faa39 of _0x345b3a){if(!isValidationResult(_0x2faa39)){_0x4ba749++;continue;}_0x2faa39[_0x2bf547(0xb7)][_0x2bf547(0xbf)]?_0x47fe96++:_0xbbe1c5++,_0x506142+=_0x2faa39[_0x2bf547(0xb7)][_0x2bf547(0xa2)][_0x2bf547(0xbd)];}return{'validCount':_0x47fe96,'invalidCount':_0xbbe1c5,'warningCount':_0x506142,'skippedCount':_0x4ba749,'hasErrors':_0xbbe1c5>0x0};}
@@ -1 +1 @@
1
- (function(_0x40f302,_0x514db4){const _0x6c021c=a170_0xa42e,_0x575a2a=_0x40f302();while(!![]){try{const _0x2773dc=-parseInt(_0x6c021c(0x10e))/0x1*(-parseInt(_0x6c021c(0x10a))/0x2)+parseInt(_0x6c021c(0x12b))/0x3+parseInt(_0x6c021c(0x113))/0x4*(parseInt(_0x6c021c(0x11b))/0x5)+parseInt(_0x6c021c(0x12f))/0x6*(parseInt(_0x6c021c(0x103))/0x7)+parseInt(_0x6c021c(0x11a))/0x8*(parseInt(_0x6c021c(0x116))/0x9)+-parseInt(_0x6c021c(0x10b))/0xa+parseInt(_0x6c021c(0x128))/0xb*(-parseInt(_0x6c021c(0x109))/0xc);if(_0x2773dc===_0x514db4)break;else _0x575a2a['push'](_0x575a2a['shift']());}catch(_0x316abf){_0x575a2a['push'](_0x575a2a['shift']());}}}(a170_0x4a34,0xd284a));function a170_0xa42e(_0x55e269,_0x268320){_0x55e269=_0x55e269-0xfb;const _0x4a34ff=a170_0x4a34();let _0xa42ea1=_0x4a34ff[_0x55e269];return _0xa42ea1;}import*as a170_0x49828b from'yaml';import a170_0x35cd0d from'chalk';export{validateSegmentDef,validateRuleDef}from'./segment-validator.js';export function getLocationFromPath(_0x1b6c48,_0x5beb0f,_0x3c0885){const _0x4ca833=a170_0xa42e;if(!_0x1b6c48||!_0x5beb0f)return undefined;try{let _0x22cc6f=_0x1b6c48[_0x4ca833(0x11f)](_0x3c0885,!![]),_0x10be15=[..._0x3c0885];while((!_0x22cc6f||typeof _0x22cc6f!=='object'||!(_0x4ca833(0x115)in _0x22cc6f)||!_0x22cc6f[_0x4ca833(0x115)])&&_0x10be15[_0x4ca833(0x104)]>0x0){_0x10be15[_0x4ca833(0x10f)](),_0x22cc6f=_0x10be15[_0x4ca833(0x104)]>0x0?_0x1b6c48[_0x4ca833(0x11f)](_0x10be15,!![]):_0x1b6c48[_0x4ca833(0x122)];}if(!_0x22cc6f||typeof _0x22cc6f!==_0x4ca833(0x12a)||!('range'in _0x22cc6f)||!_0x22cc6f[_0x4ca833(0x115)])return undefined;const [_0x3c0d64]=_0x22cc6f['range'];return offsetToLocation(_0x5beb0f,_0x3c0d64);}catch{return undefined;}}export function offsetToLocation(_0x159377,_0x3da2e8){const _0x46af01=a170_0xa42e;let _0x2dac27=0x1,_0x1adc76=0x1;for(let _0x1f46c5=0x0;_0x1f46c5<_0x3da2e8&&_0x1f46c5<_0x159377[_0x46af01(0x104)];_0x1f46c5++){_0x159377[_0x1f46c5]==='\x0a'?(_0x2dac27++,_0x1adc76=0x1):_0x1adc76++;}return{'line':_0x2dac27,'column':_0x1adc76,'offset':_0x3da2e8};}export function pathToArray(_0x40ff05){const _0x1e520a=a170_0xa42e;if(!_0x40ff05)return[];return _0x40ff05[_0x1e520a(0xfd)]('.')[_0x1e520a(0x125)](_0x380f78=>{const _0x5f1e1a=_0x1e520a,_0x5b6478=_0x380f78[_0x5f1e1a(0x12e)](/^(\w+)\[(\d+)\]$/);if(_0x5b6478)return[_0x5b6478[0x1],parseInt(_0x5b6478[0x2],0xa)];return[_0x380f78];});}export function formatZodPath(_0x447884){const _0x487d99=a170_0xa42e;let _0x28fa56='';for(const _0x415be2 of _0x447884){if(typeof _0x415be2===_0x487d99(0x120))_0x28fa56+='['+_0x415be2+']';else{const _0x494adb=String(_0x415be2);_0x28fa56+=_0x28fa56?'.'+_0x494adb:_0x494adb;}}return _0x28fa56;}export function flattenZodIssues(_0x5a62a2){const _0x2927bd=a170_0xa42e,_0x2e415a=[];for(const _0x34acd9 of _0x5a62a2){if(_0x34acd9[_0x2927bd(0x100)]===_0x2927bd(0xfc)&&_0x2927bd(0x129)in _0x34acd9){const _0x27c053=_0x34acd9[_0x2927bd(0x129)];let _0x518146=_0x27c053[0x0]||[];for(const _0x2bd294 of _0x27c053){_0x2bd294['length']<_0x518146[_0x2927bd(0x104)]&&(_0x518146=_0x2bd294);}const _0x4a0909=_0x518146[_0x2927bd(0x10d)](_0x1e23a6=>({..._0x1e23a6,'path':[..._0x34acd9[_0x2927bd(0x12c)],..._0x1e23a6[_0x2927bd(0x12c)]]}));_0x2e415a[_0x2927bd(0x102)](...flattenZodIssues(_0x4a0909));}else _0x2e415a[_0x2927bd(0x102)](_0x34acd9);}return _0x2e415a;}export function safeParseYaml(_0x3da590,_0x4c88c6){const _0x1e8681=a170_0xa42e,_0x3fa5b9=a170_0x49828b[_0x1e8681(0x124)](_0x3da590);if(!_0x3fa5b9||typeof _0x3fa5b9!==_0x1e8681(0x12a))throw new Error(_0x1e8681(0x105));const _0x3634c1=_0x4c88c6[_0x1e8681(0x121)](_0x3fa5b9);if(!_0x3634c1[_0x1e8681(0x12d)]){const _0x493cf8=_0x3634c1[_0x1e8681(0x106)][_0x1e8681(0x11c)][0x0],_0x2a410a=formatZodPath(_0x493cf8[_0x1e8681(0x12c)]);throw new Error(_0x2a410a?_0x1e8681(0x114)+_0x2a410a+_0x1e8681(0xff)+_0x493cf8[_0x1e8681(0x108)]:_0x1e8681(0x110)+_0x493cf8['message']);}return _0x3634c1[_0x1e8681(0xfe)];}export function formatIssueWithContext(_0x31ec30,_0x66a324,_0x2bed44){const _0x118a78=a170_0xa42e,_0x3a51ae=[],_0x3afc07=_0x31ec30[_0x118a78(0x111)]==='error',_0xd16d3=_0x3afc07?a170_0x35cd0d[_0x118a78(0x119)]:a170_0x35cd0d['yellow'],_0x5d49b3=_0x3afc07?a170_0x35cd0d['red']:a170_0x35cd0d[_0x118a78(0x123)],_0x1e8ee8=_0x2bed44?a170_0x35cd0d['cyan'](_0x2bed44+':'):'';if(_0x31ec30[_0x118a78(0x117)]){const _0x11eae3=a170_0x35cd0d[_0x118a78(0x10c)](_0x31ec30['location']['line']+':'+_0x31ec30[_0x118a78(0x117)][_0x118a78(0x107)]);_0x3a51ae['push'](''+_0x1e8ee8+_0x11eae3+':\x20'+_0xd16d3(_0x31ec30[_0x118a78(0x111)])+'\x20'+_0x5d49b3('['+_0x31ec30[_0x118a78(0x100)]+']'));}else _0x3a51ae[_0x118a78(0x102)](''+_0x1e8ee8+a170_0x35cd0d[_0x118a78(0x11e)](_0x31ec30[_0x118a78(0x12c)])+':\x20'+_0xd16d3(_0x31ec30[_0x118a78(0x111)])+'\x20'+_0x5d49b3('['+_0x31ec30['code']+']'));_0x3a51ae['push'](_0x31ec30[_0x118a78(0x108)]);if(_0x31ec30['location']&&_0x66a324){const _0x3a4aa6=_0x66a324[_0x118a78(0xfd)]('\x0a'),{line:_0x51cfb3,column:_0x23d18e}=_0x31ec30[_0x118a78(0x117)],_0x5c5a2b=Math[_0x118a78(0x101)](0x1,_0x51cfb3-0x1),_0x4f92af=Math['min'](_0x3a4aa6[_0x118a78(0x104)],_0x51cfb3+0x1);_0x3a51ae['push']('');for(let _0x570813=_0x5c5a2b;_0x570813<=_0x4f92af;_0x570813++){const _0x3c855e=_0x3a4aa6[_0x570813-0x1]||'',_0x3caf56=a170_0x35cd0d['dim'](_0x570813[_0x118a78(0xfb)]()[_0x118a78(0x127)](0x4)),_0x343aba=a170_0x35cd0d[_0x118a78(0x11e)](_0x118a78(0x126));if(_0x570813===_0x51cfb3){_0x3a51ae[_0x118a78(0x102)]('\x20\x20'+_0x3caf56+_0x343aba+_0xd16d3(_0x3c855e));const _0xca9143='\x20'[_0x118a78(0x118)](0x4+0x3+_0x23d18e-0x1);_0x3a51ae[_0x118a78(0x102)]('\x20\x20'+_0xca9143+_0xd16d3('^'));}else _0x3a51ae[_0x118a78(0x102)]('\x20\x20'+_0x3caf56+_0x343aba+a170_0x35cd0d[_0x118a78(0x11e)](_0x3c855e));}}return _0x3a51ae[_0x118a78(0x112)]('\x0a');}export function formatValidationResult(_0x3e3644,_0x3ccfad,_0x8b707d){const _0x3798c5=a170_0xa42e,_0x3e09e0=[];for(const _0x5af37e of _0x3e3644['errors']){_0x3e09e0[_0x3798c5(0x102)](formatIssueWithContext(_0x5af37e,_0x3ccfad,_0x8b707d)),_0x3e09e0[_0x3798c5(0x102)]('');}for(const _0x4c109e of _0x3e3644[_0x3798c5(0x11d)]){_0x3e09e0[_0x3798c5(0x102)](formatIssueWithContext(_0x4c109e,_0x3ccfad,_0x8b707d)),_0x3e09e0[_0x3798c5(0x102)]('');}return _0x3e09e0[_0x3798c5(0x112)]('\x0a');}function a170_0x4a34(){const _0x5424f4=['safeParse','contents','yellow','parse','flatMap','\x20|\x20','padStart','3684956kPlpfU','errors','object','545835cIzKOg','path','success','match','240zIvNgo','toString','invalid_union','split','data','\x27:\x20','code','max','push','47789uAASKe','length','Invalid\x20YAML:\x20expected\x20an\x20object','error','column','message','36piyPBS','59690HDctgm','13529480hKscwO','cyan','map','53uVbqII','pop','YAML\x20validation\x20error:\x20','level','join','4457428YQwrpv','YAML\x20validation\x20error\x20at\x20\x27','range','27xIocmB','location','repeat','red','184136LjqqAm','5sohQbx','issues','warnings','dim','getIn','number'];a170_0x4a34=function(){return _0x5424f4;};return a170_0x4a34();}
1
+ (function(_0x219b2a,_0x2b1aa1){const _0x524169=a170_0x2e43,_0x4c1a24=_0x219b2a();while(!![]){try{const _0x35c758=-parseInt(_0x524169(0x95))/0x1*(-parseInt(_0x524169(0x89))/0x2)+-parseInt(_0x524169(0xa4))/0x3+-parseInt(_0x524169(0x8b))/0x4+-parseInt(_0x524169(0x9d))/0x5*(parseInt(_0x524169(0xa2))/0x6)+-parseInt(_0x524169(0xa5))/0x7*(-parseInt(_0x524169(0xac))/0x8)+-parseInt(_0x524169(0x88))/0x9+-parseInt(_0x524169(0x9a))/0xa*(-parseInt(_0x524169(0x9c))/0xb);if(_0x35c758===_0x2b1aa1)break;else _0x4c1a24['push'](_0x4c1a24['shift']());}catch(_0x2284f1){_0x4c1a24['push'](_0x4c1a24['shift']());}}}(a170_0x58a4,0x8b1fb));import*as a170_0x3525ca from'yaml';import a170_0x5c61fe from'chalk';export{validateSegmentDef,validateRuleDef}from'./segment-validator.js';export function getLocationFromPath(_0x51f907,_0x301188,_0x4c6aef){const _0x17615d=a170_0x2e43;if(!_0x51f907||!_0x301188)return undefined;try{let _0x23f4a3=_0x51f907[_0x17615d(0xad)](_0x4c6aef,!![]),_0x2dcc10=[..._0x4c6aef];while((!_0x23f4a3||typeof _0x23f4a3!==_0x17615d(0x85)||!(_0x17615d(0xaa)in _0x23f4a3)||!_0x23f4a3[_0x17615d(0xaa)])&&_0x2dcc10[_0x17615d(0x8e)]>0x0){_0x2dcc10[_0x17615d(0x9f)](),_0x23f4a3=_0x2dcc10[_0x17615d(0x8e)]>0x0?_0x51f907['getIn'](_0x2dcc10,!![]):_0x51f907['contents'];}if(!_0x23f4a3||typeof _0x23f4a3!==_0x17615d(0x85)||!(_0x17615d(0xaa)in _0x23f4a3)||!_0x23f4a3[_0x17615d(0xaa)])return undefined;const [_0x58bcc6]=_0x23f4a3['range'];return offsetToLocation(_0x301188,_0x58bcc6);}catch{return undefined;}}export function offsetToLocation(_0x2a1bf6,_0x5265f7){const _0x13c772=a170_0x2e43;let _0x2bf8e2=0x1,_0x8afc8a=0x1;for(let _0x200206=0x0;_0x200206<_0x5265f7&&_0x200206<_0x2a1bf6[_0x13c772(0x8e)];_0x200206++){_0x2a1bf6[_0x200206]==='\x0a'?(_0x2bf8e2++,_0x8afc8a=0x1):_0x8afc8a++;}return{'line':_0x2bf8e2,'column':_0x8afc8a,'offset':_0x5265f7};}export function pathToArray(_0x5c43d2){const _0x4d3c3b=a170_0x2e43;if(!_0x5c43d2)return[];return _0x5c43d2[_0x4d3c3b(0xa1)]('.')[_0x4d3c3b(0x86)](_0x4de3f0=>{const _0x3d20d1=_0x4d3c3b,_0x4e4dbd=_0x4de3f0[_0x3d20d1(0x93)](/^(\w+)\[(\d+)\]$/);if(_0x4e4dbd)return[_0x4e4dbd[0x1],parseInt(_0x4e4dbd[0x2],0xa)];return[_0x4de3f0];});}function a170_0x2e43(_0x2fa9dd,_0x4c967b){_0x2fa9dd=_0x2fa9dd-0x7d;const _0x58a4ca=a170_0x58a4();let _0x2e433d=_0x58a4ca[_0x2fa9dd];return _0x2e433d;}function a170_0x58a4(){const _0x373f0a=['72331ArexyN','error','parse','invalid_union','issues','range','level','664thpSkL','getIn','location','code','push','\x27:\x20','map','path','Invalid\x20YAML:\x20expected\x20an\x20object','dim','object','flatMap','data','2595942koowIJ','40070nhQbSK','red','426220jvUrCk','padStart','message','length','max','join','errors','cyan','match','number','43kfaqxs','line','repeat','success','column','1070RQNweB','safeParse','46882OqSmIm','295lEdSzP','min','pop','YAML\x20validation\x20error:\x20','split','84036JgLfkp','yellow','1151940sYrtKn'];a170_0x58a4=function(){return _0x373f0a;};return a170_0x58a4();}export function formatZodPath(_0xe0fced){const _0x4d8e9b=a170_0x2e43;let _0xc5bdbc='';for(const _0x5a2674 of _0xe0fced){if(typeof _0x5a2674===_0x4d8e9b(0x94))_0xc5bdbc+='['+_0x5a2674+']';else{const _0x58d09b=String(_0x5a2674);_0xc5bdbc+=_0xc5bdbc?'.'+_0x58d09b:_0x58d09b;}}return _0xc5bdbc;}export function flattenZodIssues(_0x4620af){const _0x2d45d0=a170_0x2e43,_0x2d95e0=[];for(const _0x212c2a of _0x4620af){if(_0x212c2a['code']===_0x2d45d0(0xa8)&&_0x2d45d0(0x91)in _0x212c2a){const _0x4d6d99=_0x212c2a[_0x2d45d0(0x91)];let _0x2f747a=_0x4d6d99[0x0]||[];for(const _0x53b9eb of _0x4d6d99){_0x53b9eb[_0x2d45d0(0x8e)]<_0x2f747a[_0x2d45d0(0x8e)]&&(_0x2f747a=_0x53b9eb);}const _0x213606=_0x2f747a[_0x2d45d0(0x81)](_0x5c3ad2=>({..._0x5c3ad2,'path':[..._0x212c2a[_0x2d45d0(0x82)],..._0x5c3ad2[_0x2d45d0(0x82)]]}));_0x2d95e0[_0x2d45d0(0x7f)](...flattenZodIssues(_0x213606));}else _0x2d95e0['push'](_0x212c2a);}return _0x2d95e0;}export function safeParseYaml(_0x9e1f9d,_0x4379ee){const _0x26965a=a170_0x2e43,_0x4a7093=a170_0x3525ca[_0x26965a(0xa7)](_0x9e1f9d);if(!_0x4a7093||typeof _0x4a7093!=='object')throw new Error(_0x26965a(0x83));const _0x3bf519=_0x4379ee[_0x26965a(0x9b)](_0x4a7093);if(!_0x3bf519[_0x26965a(0x98)]){const _0x559568=_0x3bf519[_0x26965a(0xa6)][_0x26965a(0xa9)][0x0],_0xce8df3=formatZodPath(_0x559568['path']);throw new Error(_0xce8df3?'YAML\x20validation\x20error\x20at\x20\x27'+_0xce8df3+_0x26965a(0x80)+_0x559568[_0x26965a(0x8d)]:_0x26965a(0xa0)+_0x559568[_0x26965a(0x8d)]);}return _0x3bf519[_0x26965a(0x87)];}export function formatIssueWithContext(_0x30b4b3,_0xbe82c6,_0x5446b2){const _0x5797bb=a170_0x2e43,_0x145540=[],_0x4baff2=_0x30b4b3['level']==='error',_0x1abc42=_0x4baff2?a170_0x5c61fe[_0x5797bb(0x8a)]:a170_0x5c61fe[_0x5797bb(0xa3)],_0x396533=_0x4baff2?a170_0x5c61fe[_0x5797bb(0x8a)]:a170_0x5c61fe['yellow'],_0x205dc2=_0x5446b2?a170_0x5c61fe[_0x5797bb(0x92)](_0x5446b2+':'):'';if(_0x30b4b3[_0x5797bb(0x7d)]){const _0x44fedc=a170_0x5c61fe[_0x5797bb(0x92)](_0x30b4b3[_0x5797bb(0x7d)][_0x5797bb(0x96)]+':'+_0x30b4b3[_0x5797bb(0x7d)][_0x5797bb(0x99)]);_0x145540[_0x5797bb(0x7f)](''+_0x205dc2+_0x44fedc+':\x20'+_0x1abc42(_0x30b4b3[_0x5797bb(0xab)])+'\x20'+_0x396533('['+_0x30b4b3[_0x5797bb(0x7e)]+']'));}else _0x145540[_0x5797bb(0x7f)](''+_0x205dc2+a170_0x5c61fe[_0x5797bb(0x84)](_0x30b4b3[_0x5797bb(0x82)])+':\x20'+_0x1abc42(_0x30b4b3[_0x5797bb(0xab)])+'\x20'+_0x396533('['+_0x30b4b3[_0x5797bb(0x7e)]+']'));_0x145540[_0x5797bb(0x7f)](_0x30b4b3['message']);if(_0x30b4b3['location']&&_0xbe82c6){const _0x4b0ca1=_0xbe82c6[_0x5797bb(0xa1)]('\x0a'),{line:_0x25906e,column:_0x7159d6}=_0x30b4b3[_0x5797bb(0x7d)],_0x32782d=Math[_0x5797bb(0x8f)](0x1,_0x25906e-0x1),_0x3cd966=Math[_0x5797bb(0x9e)](_0x4b0ca1[_0x5797bb(0x8e)],_0x25906e+0x1);_0x145540[_0x5797bb(0x7f)]('');for(let _0x56f45b=_0x32782d;_0x56f45b<=_0x3cd966;_0x56f45b++){const _0x2d38ac=_0x4b0ca1[_0x56f45b-0x1]||'',_0x2711a4=a170_0x5c61fe[_0x5797bb(0x84)](_0x56f45b['toString']()[_0x5797bb(0x8c)](0x4)),_0x363a8b=a170_0x5c61fe[_0x5797bb(0x84)]('\x20|\x20');if(_0x56f45b===_0x25906e){_0x145540['push']('\x20\x20'+_0x2711a4+_0x363a8b+_0x1abc42(_0x2d38ac));const _0x22ec73='\x20'[_0x5797bb(0x97)](0x4+0x3+_0x7159d6-0x1);_0x145540[_0x5797bb(0x7f)]('\x20\x20'+_0x22ec73+_0x1abc42('^'));}else _0x145540[_0x5797bb(0x7f)]('\x20\x20'+_0x2711a4+_0x363a8b+a170_0x5c61fe[_0x5797bb(0x84)](_0x2d38ac));}}return _0x145540[_0x5797bb(0x90)]('\x0a');}export function formatValidationResult(_0x27f2c6,_0x282aac,_0xcaa028){const _0x49c0b2=a170_0x2e43,_0x2103c0=[];for(const _0x56da79 of _0x27f2c6[_0x49c0b2(0x91)]){_0x2103c0[_0x49c0b2(0x7f)](formatIssueWithContext(_0x56da79,_0x282aac,_0xcaa028)),_0x2103c0['push']('');}for(const _0x5d1bc9 of _0x27f2c6['warnings']){_0x2103c0[_0x49c0b2(0x7f)](formatIssueWithContext(_0x5d1bc9,_0x282aac,_0xcaa028)),_0x2103c0[_0x49c0b2(0x7f)]('');}return _0x2103c0[_0x49c0b2(0x90)]('\x0a');}