@treasuredata/tdx 0.29.5 → 2026.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (256) hide show
  1. package/dist/bin.js +1 -1
  2. package/dist/build-info.json +3 -3
  3. package/dist/cli-categories.js +1 -1
  4. package/dist/cli.d.ts.map +1 -1
  5. package/dist/cli.js +1 -1
  6. package/dist/cli.js.map +1 -1
  7. package/dist/commands/activations.js +1 -1
  8. package/dist/commands/agent-command.js +1 -1
  9. package/dist/commands/agent-test-command.js +1 -1
  10. package/dist/commands/api-command.js +1 -1
  11. package/dist/commands/auth-command.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.d.ts.map +1 -1
  19. package/dist/commands/databases.js +1 -1
  20. package/dist/commands/databases.js.map +1 -1
  21. package/dist/commands/delivery-command.js +1 -1
  22. package/dist/commands/describe.js +1 -1
  23. package/dist/commands/engage-campaign-pull-command.js +1 -1
  24. package/dist/commands/engage-campaign-push-command.js +1 -1
  25. package/dist/commands/engage-campaign-validate-command.js +1 -1
  26. package/dist/commands/engage-command.d.ts +97 -1
  27. package/dist/commands/engage-command.d.ts.map +1 -1
  28. package/dist/commands/engage-command.js +1 -1
  29. package/dist/commands/engage-command.js.map +1 -1
  30. package/dist/commands/engage-template-pull-command.js +1 -1
  31. package/dist/commands/engage-template-push-command.js +1 -1
  32. package/dist/commands/engage-template-validate-command.js +1 -1
  33. package/dist/commands/job-command.d.ts.map +1 -1
  34. package/dist/commands/job-command.js +1 -1
  35. package/dist/commands/job-command.js.map +1 -1
  36. package/dist/commands/journey-command.js +1 -1
  37. package/dist/commands/journey-validate-command.js +1 -1
  38. package/dist/commands/llm-command.js +1 -1
  39. package/dist/commands/mcp-command.js +1 -1
  40. package/dist/commands/parent-segment-command.js +1 -1
  41. package/dist/commands/profile-command.js +1 -1
  42. package/dist/commands/profiles-command.js +1 -1
  43. package/dist/commands/query-command.js +1 -1
  44. package/dist/commands/schedule-command.js +1 -1
  45. package/dist/commands/segment-command.js +1 -1
  46. package/dist/commands/segment-create-command.js +1 -1
  47. package/dist/commands/segment-fields-command.js +1 -1
  48. package/dist/commands/segment-pull-command.js +1 -1
  49. package/dist/commands/segment-push-command.js +1 -1
  50. package/dist/commands/segment-update-command.js +1 -1
  51. package/dist/commands/segment-use-command.js +1 -1
  52. package/dist/commands/segment-validate-command.js +1 -1
  53. package/dist/commands/segments.js +1 -1
  54. package/dist/commands/show.js +1 -1
  55. package/dist/commands/status-command.js +1 -1
  56. package/dist/commands/tables.d.ts.map +1 -1
  57. package/dist/commands/tables.js +1 -1
  58. package/dist/commands/tables.js.map +1 -1
  59. package/dist/commands/unset-command.js +1 -1
  60. package/dist/commands/upgrade-command.js +1 -1
  61. package/dist/commands/use-command.js +1 -1
  62. package/dist/commands/user-command.js +1 -1
  63. package/dist/commands/workflow-command.js +1 -1
  64. package/dist/core/auth.d.ts +8 -5
  65. package/dist/core/auth.d.ts.map +1 -1
  66. package/dist/core/auth.js +1 -1
  67. package/dist/core/auth.js.map +1 -1
  68. package/dist/core/command-output.js +1 -1
  69. package/dist/core/config.d.ts +38 -6
  70. package/dist/core/config.d.ts.map +1 -1
  71. package/dist/core/config.js +1 -1
  72. package/dist/core/config.js.map +1 -1
  73. package/dist/core/connection-cache.js +1 -1
  74. package/dist/core/constants.js +1 -1
  75. package/dist/core/credential-cache.js +1 -1
  76. package/dist/core/global-context.d.ts +1 -0
  77. package/dist/core/global-context.d.ts.map +1 -1
  78. package/dist/core/global-context.js +1 -1
  79. package/dist/core/global-context.js.map +1 -1
  80. package/dist/core/keychain.js +1 -1
  81. package/dist/core/profile.js +1 -1
  82. package/dist/core/project-config.js +1 -1
  83. package/dist/core/session.js +1 -1
  84. package/dist/core/user-cache.js +1 -1
  85. package/dist/core/version.d.ts +3 -3
  86. package/dist/core/version.js +1 -1
  87. package/dist/index.js +1 -1
  88. package/dist/mcp/server.js +1 -1
  89. package/dist/mcp/tools/index.js +1 -1
  90. package/dist/mcp/tools/tdx-run.js +1 -1
  91. package/dist/mcp/tools/tdx-search.js +1 -1
  92. package/dist/mcp/utils.js +1 -1
  93. package/dist/proxy/claude-usage-tracker.js +1 -1
  94. package/dist/proxy/passthrough-server.js +1 -1
  95. package/dist/proxy/sse-usage-parser.js +1 -1
  96. package/dist/sdk/agent/agent-config.js +1 -1
  97. package/dist/sdk/agent/agent-ref-parser.js +1 -1
  98. package/dist/sdk/agent/agent-yaml.js +1 -1
  99. package/dist/sdk/agent/test/evaluator.js +1 -1
  100. package/dist/sdk/agent/test/executor.js +1 -1
  101. package/dist/sdk/agent/test/index.js +1 -1
  102. package/dist/sdk/agent/test/output.js +1 -1
  103. package/dist/sdk/agent/test/parser.js +1 -1
  104. package/dist/sdk/agent/tool-target-registry.js +1 -1
  105. package/dist/sdk/api.js +1 -1
  106. package/dist/sdk/api.js.map +1 -1
  107. package/dist/sdk/client/cdp-api-client.js +1 -1
  108. package/dist/sdk/client/cdp-api-client.js.map +1 -1
  109. package/dist/sdk/client/delivery-api-client.js +1 -1
  110. package/dist/sdk/client/delivery-api-client.js.map +1 -1
  111. package/dist/sdk/client/endpoints.d.ts +16 -0
  112. package/dist/sdk/client/endpoints.d.ts.map +1 -1
  113. package/dist/sdk/client/endpoints.js +1 -1
  114. package/dist/sdk/client/endpoints.js.map +1 -1
  115. package/dist/sdk/client/engage-api-client.d.ts +47 -1
  116. package/dist/sdk/client/engage-api-client.d.ts.map +1 -1
  117. package/dist/sdk/client/engage-api-client.js +1 -1
  118. package/dist/sdk/client/engage-api-client.js.map +1 -1
  119. package/dist/sdk/client/http-client.js +1 -1
  120. package/dist/sdk/client/llm-api-client.js +1 -1
  121. package/dist/sdk/client/llm-api-client.js.map +1 -1
  122. package/dist/sdk/client/rate-limiter.js +1 -1
  123. package/dist/sdk/client/td-api-client.js +1 -1
  124. package/dist/sdk/client/td-api-client.js.map +1 -1
  125. package/dist/sdk/client/trino-api-client.js +1 -1
  126. package/dist/sdk/client/trino-api-client.js.map +1 -1
  127. package/dist/sdk/client/workflow-client.js +1 -1
  128. package/dist/sdk/client/workflow-client.js.map +1 -1
  129. package/dist/sdk/connection-validator.js +1 -1
  130. package/dist/sdk/connection.js +1 -1
  131. package/dist/sdk/delivery.js +1 -1
  132. package/dist/sdk/engage/campaign-pull.js +1 -1
  133. package/dist/sdk/engage/campaign-push.js +1 -1
  134. package/dist/sdk/engage/campaign-validator.js +1 -1
  135. package/dist/sdk/engage/campaign-yaml.js +1 -1
  136. package/dist/sdk/engage/template-pull.js +1 -1
  137. package/dist/sdk/engage/template-push.js +1 -1
  138. package/dist/sdk/engage/template-validator.js +1 -1
  139. package/dist/sdk/engage/template-yaml.js +1 -1
  140. package/dist/sdk/engage/types/campaign-def.js +1 -1
  141. package/dist/sdk/engage/types/campaign-schema.js +1 -1
  142. package/dist/sdk/engage/types/template-schema.js +1 -1
  143. package/dist/sdk/engage.d.ts +95 -4
  144. package/dist/sdk/engage.d.ts.map +1 -1
  145. package/dist/sdk/engage.js +1 -1
  146. package/dist/sdk/engage.js.map +1 -1
  147. package/dist/sdk/errors.js +1 -1
  148. package/dist/sdk/index.d.ts +10 -0
  149. package/dist/sdk/index.d.ts.map +1 -1
  150. package/dist/sdk/index.js +1 -1
  151. package/dist/sdk/index.js.map +1 -1
  152. package/dist/sdk/io/index.js +1 -1
  153. package/dist/sdk/io/node-filesystem.js +1 -1
  154. package/dist/sdk/job.js +1 -1
  155. package/dist/sdk/journey.d.ts +2 -0
  156. package/dist/sdk/journey.d.ts.map +1 -1
  157. package/dist/sdk/journey.js +1 -1
  158. package/dist/sdk/journey.js.map +1 -1
  159. package/dist/sdk/llm/chat-cache.js +1 -1
  160. package/dist/sdk/llm/index.js +1 -1
  161. package/dist/sdk/llm/llm-backup-utils.js +1 -1
  162. package/dist/sdk/llm/model-factors.js +1 -1
  163. package/dist/sdk/personalization.js +1 -1
  164. package/dist/sdk/personalization.js.map +1 -1
  165. package/dist/sdk/query/index.js +1 -1
  166. package/dist/sdk/query/sql-parser.js +1 -1
  167. package/dist/sdk/realtime.js +1 -1
  168. package/dist/sdk/realtime.js.map +1 -1
  169. package/dist/sdk/schedule.js +1 -1
  170. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  171. package/dist/sdk/segment/fields-display.js +1 -1
  172. package/dist/sdk/segment/file-discovery.js +1 -1
  173. package/dist/sdk/segment/journey-utils.js +1 -1
  174. package/dist/sdk/segment/journey-validator.js +1 -1
  175. package/dist/sdk/segment/journey-yaml.js +1 -1
  176. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  177. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  178. package/dist/sdk/segment/parent-segment-yaml.js.map +1 -1
  179. package/dist/sdk/segment/pull-workflow.js +1 -1
  180. package/dist/sdk/segment/push-recovery.js +1 -1
  181. package/dist/sdk/segment/push-workflow.js +1 -1
  182. package/dist/sdk/segment/resolution-context.js +1 -1
  183. package/dist/sdk/segment/segment-path-parser.js +1 -1
  184. package/dist/sdk/segment/segment-ref-parser.js +1 -1
  185. package/dist/sdk/segment/segment-validator.js +1 -1
  186. package/dist/sdk/segment/target-resolution.js +1 -1
  187. package/dist/sdk/segment/tdx-config.js +1 -1
  188. package/dist/sdk/segment/types/activation-schema.js +1 -1
  189. package/dist/sdk/segment/types/journey-def.js +1 -1
  190. package/dist/sdk/segment/types/journey-schema.js +1 -1
  191. package/dist/sdk/segment/types/segment-def.js +1 -1
  192. package/dist/sdk/segment/types/segment-schema.js +1 -1
  193. package/dist/sdk/segment/validate-files.js +1 -1
  194. package/dist/sdk/segment/yaml-validator.js +1 -1
  195. package/dist/sdk/segment.js +1 -1
  196. package/dist/sdk/types/engage.d.ts +119 -0
  197. package/dist/sdk/types/engage.d.ts.map +1 -1
  198. package/dist/sdk/types/index.d.ts +1 -1
  199. package/dist/sdk/types/index.d.ts.map +1 -1
  200. package/dist/sdk/types/index.js +1 -1
  201. package/dist/sdk/types/index.js.map +1 -1
  202. package/dist/sdk/types/progress.js +1 -1
  203. package/dist/sdk/user.js +1 -1
  204. package/dist/sdk/util/format-detector.js +1 -1
  205. package/dist/sdk/util/formatters.js +1 -1
  206. package/dist/sdk/util/index.d.ts +1 -0
  207. package/dist/sdk/util/index.d.ts.map +1 -1
  208. package/dist/sdk/util/index.js +1 -1
  209. package/dist/sdk/util/index.js.map +1 -1
  210. package/dist/sdk/util/paginate.d.ts +18 -0
  211. package/dist/sdk/util/paginate.d.ts.map +1 -0
  212. package/dist/sdk/util/paginate.js +1 -0
  213. package/dist/sdk/util/paginate.js.map +1 -0
  214. package/dist/sdk/util/tree-formatter.js +1 -1
  215. package/dist/sdk/workflow/archive-validation.js +1 -1
  216. package/dist/sdk/workflow/clone-workflow.js +1 -1
  217. package/dist/sdk/workflow/index.d.ts.map +1 -1
  218. package/dist/sdk/workflow/index.js +1 -1
  219. package/dist/sdk/workflow/index.js.map +1 -1
  220. package/dist/sdk/workflow/pull-workflow.js +1 -1
  221. package/dist/sdk/workflow/push-workflow.js +1 -1
  222. package/dist/sdk/workflow/tdx-config.js +1 -1
  223. package/dist/sdk/workflow/workflow-utils.js +1 -1
  224. package/dist/test-utils/command-runner.js +1 -1
  225. package/dist/test-utils/factories.js +1 -1
  226. package/dist/test-utils/fixtures.js +1 -1
  227. package/dist/test-utils/http-mock.js +1 -1
  228. package/dist/test-utils/index.js +1 -1
  229. package/dist/utils/async.js +1 -1
  230. package/dist/utils/colors.js +1 -1
  231. package/dist/utils/diff.js +1 -1
  232. package/dist/utils/file-permissions.js +1 -1
  233. package/dist/utils/file-reader.js +1 -1
  234. package/dist/utils/github-releases.js +1 -1
  235. package/dist/utils/global-cache.js +1 -1
  236. package/dist/utils/json-loader.js +1 -1
  237. package/dist/utils/local-cache.js +1 -1
  238. package/dist/utils/logger/formatters/default-formatter.js +1 -1
  239. package/dist/utils/logger/formatters/index.js +1 -1
  240. package/dist/utils/logger/handlers/console-handler.js +1 -1
  241. package/dist/utils/logger/handlers/file-handler.js +1 -1
  242. package/dist/utils/logger/handlers/index.js +1 -1
  243. package/dist/utils/logger/handlers/null-handler.js +1 -1
  244. package/dist/utils/logger/index.js +1 -1
  245. package/dist/utils/logger/logger.js +1 -1
  246. package/dist/utils/logger/types.js +1 -1
  247. package/dist/utils/option-validation.js +1 -1
  248. package/dist/utils/process.js +1 -1
  249. package/dist/utils/prompt.js +1 -1
  250. package/dist/utils/spinner.js +1 -1
  251. package/dist/utils/sse-parser.js +1 -1
  252. package/dist/utils/string-utils.js +1 -1
  253. package/dist/utils/table-ref-parser.js +1 -1
  254. package/dist/utils/tdx-logger.js +1 -1
  255. package/dist/utils/version-check.js +1 -1
  256. package/package.json +2 -1
@@ -1 +1 @@
1
- (function(_0x14b9bf,_0x432b48){const _0x1f6d2a=a138_0x1b03,_0x389f28=_0x14b9bf();while(!![]){try{const _0x3311db=parseInt(_0x1f6d2a(0xf5))/0x1*(parseInt(_0x1f6d2a(0xf6))/0x2)+-parseInt(_0x1f6d2a(0x101))/0x3*(parseInt(_0x1f6d2a(0xf9))/0x4)+-parseInt(_0x1f6d2a(0xe8))/0x5*(parseInt(_0x1f6d2a(0x10a))/0x6)+-parseInt(_0x1f6d2a(0xe0))/0x7*(-parseInt(_0x1f6d2a(0xfa))/0x8)+parseInt(_0x1f6d2a(0xfd))/0x9*(parseInt(_0x1f6d2a(0xdf))/0xa)+-parseInt(_0x1f6d2a(0xf0))/0xb*(-parseInt(_0x1f6d2a(0x103))/0xc)+parseInt(_0x1f6d2a(0xe4))/0xd;if(_0x3311db===_0x432b48)break;else _0x389f28['push'](_0x389f28['shift']());}catch(_0x2a799c){_0x389f28['push'](_0x389f28['shift']());}}}(a138_0x1577,0x7b210));import a138_0x16b544 from'path';import{parse as a138_0x34561d}from'yaml';function a138_0x1577(){const _0x9d0f73=['pop','387ovXyen','replace','Path\x20must\x20contain\x20at\x20least\x20one\x20segment','slice','81rbZBmg','name','672vtVDLB','join','type','endsWith','Path\x20segment\x20contains\x20invalid\x20control\x20characters:\x20','trim','relative','36tlOlUA','substring','journey','resolve','Relative\x20path\x20cannot\x20be\x20empty','readFile','191210iDrOtw','963599dmpZlk','test','exists','No\x20tdx.json\x20found\x20for\x20file:\x20','3885232XdPwFl','length','dirname','startsWith','450005RMyzUK','split','push','File\x20not\x20found:\x20','Cannot\x20split\x20empty\x20path','Absolute\x20path\x20cannot\x20start\x20with\x20\x22..\x22','raw','Path\x20segment\x20cannot\x20be\x20empty','18337JjYpPB','isAbsolute','Path\x20attempts\x20to\x20navigate\x20above\x20root','Cannot\x20navigate\x20above\x20root','Path\x20cannot\x20be\x20empty','37zHxOsX','4616pYfBgO','.yml','parse','139816bRuRXS','40NlhoFD','segments'];a138_0x1577=function(){return _0x9d0f73;};return a138_0x1577();}function a138_0x1b03(_0x2d0ac2,_0x4bd189){_0x2d0ac2=_0x2d0ac2-0xdf;const _0x15778e=a138_0x1577();let _0x1b031f=_0x15778e[_0x2d0ac2];return _0x1b031f;}import{nodeFileSystem}from'../io/node-filesystem.js';export function parsePath(_0x8e56ae){const _0x33671f=a138_0x1b03;if(!_0x8e56ae||_0x8e56ae[_0x33671f(0x108)]()==='')throw new Error(_0x33671f(0xf4));const _0x53b8f2=_0x8e56ae['trim']();if(_0x53b8f2==='/')return{'segments':[],'isAbsolute':!![],'raw':_0x8e56ae};const _0x2fc3e6=_0x53b8f2[_0x33671f(0xe7)]('/')?_0x53b8f2[_0x33671f(0x10b)](0x1):_0x53b8f2,_0x480502=_0x2fc3e6[_0x33671f(0xe9)]('/')['filter'](_0x42fcb7=>_0x42fcb7!=='');if(_0x480502[_0x33671f(0xe5)]===0x0)throw new Error(_0x33671f(0xff));const _0x11af2b=_0x53b8f2[_0x33671f(0xe7)]('/')||!isRelativePathSegment(_0x480502[0x0]);for(const _0x254f46 of _0x480502){validatePathSegment(_0x254f46);}return{'segments':_0x480502,'isAbsolute':_0x11af2b,'raw':_0x8e56ae};}function isRelativePathSegment(_0x4be855){return _0x4be855==='.'||_0x4be855==='..';}function validatePathSegment(_0x1726fa){const _0xdd1517=a138_0x1b03;if(_0x1726fa==='')throw new Error(_0xdd1517(0xef));if(_0x1726fa==='.'||_0x1726fa==='..')return;if(/[\x00-\x1F\x7F]/[_0xdd1517(0xe1)](_0x1726fa))throw new Error(_0xdd1517(0x107)+_0x1726fa);if(_0x1726fa!==_0x1726fa['trim']()){}}export function validatePath(_0x79a415){const _0x29efe7=a138_0x1b03;if(_0x79a415[_0x29efe7(0xfb)]['length']===0x0&&!_0x79a415[_0x29efe7(0xf1)])throw new Error(_0x29efe7(0x10e));if(_0x79a415[_0x29efe7(0xf1)]){if(_0x79a415[_0x29efe7(0xfb)][0x0]==='..')throw new Error(_0x29efe7(0xed));let _0x4cebc1=0x0;for(const _0x1a8a3a of _0x79a415[_0x29efe7(0xfb)]){if(_0x1a8a3a==='..'){if(_0x4cebc1===0x0)throw new Error(_0x29efe7(0xf2));_0x4cebc1--;}else _0x1a8a3a!=='.'&&_0x4cebc1++;}}}export function joinPaths(_0x1876d8,_0x177309){const _0x2be829=a138_0x1b03;if(!_0x1876d8||_0x1876d8==='/')return _0x177309;if(!_0x177309||_0x177309==='.')return _0x1876d8;if(_0x177309[_0x2be829(0xe7)]('/'))return _0x177309;const _0x4776c7=parsePath(_0x1876d8),_0x5a388a=parsePath(_0x177309),_0x46b8e2=[..._0x4776c7[_0x2be829(0xfb)]];for(const _0x21ab22 of _0x5a388a[_0x2be829(0xfb)]){if(_0x21ab22==='.')continue;else{if(_0x21ab22==='..'){if(_0x46b8e2['length']===0x0)throw new Error(_0x2be829(0xf3));_0x46b8e2[_0x2be829(0xfc)]();}else _0x46b8e2[_0x2be829(0xea)](_0x21ab22);}}const _0x2809cf=_0x46b8e2['join']('/');return _0x4776c7[_0x2be829(0xee)]['startsWith']('/')?'/'+_0x2809cf:_0x2809cf;}export function normalizePath(_0xff1777){const _0x3934cd=a138_0x1b03,_0x1529c9=parsePath(_0xff1777),_0x4d7686=[];for(const _0x29aebf of _0x1529c9[_0x3934cd(0xfb)]){if(_0x29aebf==='.')continue;else{if(_0x29aebf==='..'){if(_0x4d7686['length']===0x0){if(_0x1529c9['isAbsolute'])throw new Error(_0x3934cd(0xf3));_0x4d7686[_0x3934cd(0xea)]('..');}else _0x4d7686[_0x4d7686[_0x3934cd(0xe5)]-0x1]==='..'?_0x4d7686[_0x3934cd(0xea)]('..'):_0x4d7686[_0x3934cd(0xfc)]();}else _0x4d7686[_0x3934cd(0xea)](_0x29aebf);}}if(_0x4d7686['length']===0x0)return _0x1529c9[_0x3934cd(0xf1)]?'/':'.';const _0x535a1f=_0x4d7686[_0x3934cd(0x104)]('/');return _0x1529c9[_0x3934cd(0xee)]['startsWith']('/')?'/'+_0x535a1f:_0x535a1f;}export function getParentPath(_0x39e252){const _0x10341f=a138_0x1b03,_0x527d1e=parsePath(_0x39e252);if(_0x527d1e[_0x10341f(0xfb)][_0x10341f(0xe5)]<=0x1)return'/';const _0x1bc956=_0x527d1e[_0x10341f(0xfb)][_0x10341f(0x100)](0x0,-0x1)['join']('/');return _0x527d1e[_0x10341f(0xee)][_0x10341f(0xe7)]('/')?'/'+_0x1bc956:_0x1bc956;}export function getBaseName(_0x1b8f8b){const _0x2f3809=a138_0x1b03,_0x5bed81=parsePath(_0x1b8f8b);return _0x5bed81['segments'][_0x5bed81[_0x2f3809(0xfb)][_0x2f3809(0xe5)]-0x1]||'';}export function isChildPath(_0x7054b4,_0x22ab79){const _0x114855=a138_0x1b03,_0x3810dc=parsePath(_0x7054b4),_0xf2e947=parsePath(_0x22ab79);if(_0x3810dc[_0x114855(0xfb)][_0x114855(0xe5)]<=_0xf2e947[_0x114855(0xfb)][_0x114855(0xe5)])return![];for(let _0x3ebae4=0x0;_0x3ebae4<_0xf2e947[_0x114855(0xfb)]['length'];_0x3ebae4++){if(_0x3810dc['segments'][_0x3ebae4]!==_0xf2e947['segments'][_0x3ebae4])return![];}return!![];}export function splitPath(_0x4dad90){const _0x3dacfe=a138_0x1b03,_0x4cc21f=parsePath(_0x4dad90);if(_0x4cc21f[_0x3dacfe(0xfb)][_0x3dacfe(0xe5)]===0x0)throw new Error(_0x3dacfe(0xec));if(_0x4cc21f[_0x3dacfe(0xfb)]['length']===0x1)return{'parent':_0x4cc21f[_0x3dacfe(0xfb)][0x0]};return{'parent':_0x4cc21f[_0x3dacfe(0xfb)][0x0],'child':_0x4cc21f[_0x3dacfe(0xfb)][_0x3dacfe(0x100)](0x1)[_0x3dacfe(0x104)]('/')};}export function isYamlFilePath(_0x35ed4f){const _0x4a9cc5=a138_0x1b03;return _0x35ed4f['endsWith'](_0x4a9cc5(0xf7))||_0x35ed4f[_0x4a9cc5(0x106)]('.yaml');}export async function resolveYamlFilePath(_0x4b5549,_0x5ca11e=nodeFileSystem){const _0x508e6f=a138_0x1b03,_0x9ff835=a138_0x16b544[_0x508e6f(0x10d)](_0x4b5549);if(!await _0x5ca11e['exists'](_0x9ff835))throw new Error(_0x508e6f(0xeb)+_0x4b5549);let _0x3a7b7b=a138_0x16b544['dirname'](_0x9ff835),_0x5a624a=null,_0x3d02b2=null;const _0x10313c=a138_0x16b544[_0x508e6f(0xf8)](_0x3a7b7b)['root'];while(_0x3a7b7b!==_0x10313c){const _0x437666=a138_0x16b544[_0x508e6f(0x104)](_0x3a7b7b,'tdx.json');if(await _0x5ca11e[_0x508e6f(0xe2)](_0x437666)){_0x5a624a=_0x437666,_0x3d02b2=_0x3a7b7b;break;}_0x3a7b7b=a138_0x16b544[_0x508e6f(0xe6)](_0x3a7b7b);}if(!_0x5a624a||!_0x3d02b2)throw new Error(_0x508e6f(0xe3)+_0x4b5549+'\x0a'+'Hint:\x20Run\x20`tdx\x20sg\x20pull\x20\x22Parent\x20Segment\x20Name\x22`\x20first\x20to\x20create\x20a\x20project\x20directory,\x20then\x20work\x20within\x20that\x20directory.');const _0x37f31b=await _0x5ca11e[_0x508e6f(0x10f)](_0x5a624a),_0x2ad582=JSON[_0x508e6f(0xf8)](_0x37f31b),_0x4301cd=_0x2ad582['parent_segment'];if(!_0x4301cd)throw new Error('Invalid\x20tdx.json:\x20missing\x20parent_segment\x20field');const _0x59a474=await _0x5ca11e['readFile'](_0x9ff835),_0x5ee182=a138_0x34561d(_0x59a474),_0x4ef607=_0x5ee182[_0x508e6f(0x102)];if(!_0x4ef607)throw new Error('Invalid\x20YAML:\x20missing\x20name\x20field\x20in\x20'+_0x4b5549);const _0x1446e1=_0x5ee182[_0x508e6f(0x105)]===_0x508e6f(0x10c)?'journey':'segment',_0x2720f2=a138_0x16b544[_0x508e6f(0x109)](_0x3d02b2,_0x9ff835),_0x1ff3f7=a138_0x16b544[_0x508e6f(0xe6)](_0x2720f2),_0x44e23f=_0x1ff3f7==='.'?'':_0x1ff3f7[_0x508e6f(0xfe)](/\\/g,'/'),_0x599a36=_0x44e23f?_0x4301cd+'/'+_0x44e23f+'/'+_0x4ef607:_0x4301cd+'/'+_0x4ef607;return{'parentSegment':_0x4301cd,'segmentName':_0x4ef607,'folderPath':_0x44e23f,'fullPath':_0x599a36,'resourceType':_0x1446e1,'content':_0x59a474};}
1
+ (function(_0x21f7ed,_0x455562){const _0x1dfffc=a138_0x3e21,_0x290a25=_0x21f7ed();while(!![]){try{const _0x3a3ac2=-parseInt(_0x1dfffc(0xbc))/0x1*(-parseInt(_0x1dfffc(0x9c))/0x2)+parseInt(_0x1dfffc(0xb5))/0x3*(parseInt(_0x1dfffc(0xbb))/0x4)+parseInt(_0x1dfffc(0xae))/0x5*(parseInt(_0x1dfffc(0x93))/0x6)+parseInt(_0x1dfffc(0xc4))/0x7*(parseInt(_0x1dfffc(0x9f))/0x8)+parseInt(_0x1dfffc(0xb2))/0x9+parseInt(_0x1dfffc(0xb0))/0xa*(-parseInt(_0x1dfffc(0x9e))/0xb)+parseInt(_0x1dfffc(0xa8))/0xc*(-parseInt(_0x1dfffc(0xbf))/0xd);if(_0x3a3ac2===_0x455562)break;else _0x290a25['push'](_0x290a25['shift']());}catch(_0x4d4131){_0x290a25['push'](_0x290a25['shift']());}}}(a138_0x36d9,0xedbc9));import a138_0x34d055 from'path';import{parse as a138_0x575ece}from'yaml';import{nodeFileSystem}from'../io/node-filesystem.js';function a138_0x36d9(){const _0x5e1ee5=['relative','3641sFZZdp','11273992njbdqZ','No\x20tdx.json\x20found\x20for\x20file:\x20','Invalid\x20tdx.json:\x20missing\x20parent_segment\x20field','trim','Path\x20segment\x20cannot\x20be\x20empty','dirname','join','Path\x20attempts\x20to\x20navigate\x20above\x20root','segment','444apzzjf','length','pop','resolve','name','push','2134115EZgwWg','parse','52790OnIJLo','Hint:\x20Run\x20`tdx\x20sg\x20pull\x20\x22Parent\x20Segment\x20Name\x22`\x20first\x20to\x20create\x20a\x20project\x20directory,\x20then\x20work\x20within\x20that\x20directory.','7343793nqtmiR','isAbsolute','raw','3nSamFs','substring','Path\x20cannot\x20be\x20empty','test','Cannot\x20navigate\x20above\x20root','Path\x20segment\x20contains\x20invalid\x20control\x20characters:\x20','3390864GoykQl','8761PWQLMi','split','endsWith','636805CtYITQ','Invalid\x20YAML:\x20missing\x20name\x20field\x20in\x20','.yml','File\x20not\x20found:\x20','startsWith','7NZfLjt','readFile','Cannot\x20split\x20empty\x20path','6deBjib','slice','segments','exists','tdx.json','type','Path\x20must\x20contain\x20at\x20least\x20one\x20segment','Absolute\x20path\x20cannot\x20start\x20with\x20\x22..\x22','.yaml','236pHzKxj'];a138_0x36d9=function(){return _0x5e1ee5;};return a138_0x36d9();}export function parsePath(_0xaef857){const _0x517604=a138_0x3e21;if(!_0xaef857||_0xaef857[_0x517604(0xa2)]()==='')throw new Error(_0x517604(0xb7));const _0x37ab94=_0xaef857['trim']();if(_0x37ab94==='/')return{'segments':[],'isAbsolute':!![],'raw':_0xaef857};const _0x1b73c1=_0x37ab94[_0x517604(0xc3)]('/')?_0x37ab94[_0x517604(0xb6)](0x1):_0x37ab94,_0x38ca39=_0x1b73c1[_0x517604(0xbd)]('/')['filter'](_0x2b3a1b=>_0x2b3a1b!=='');if(_0x38ca39[_0x517604(0xa9)]===0x0)throw new Error(_0x517604(0x99));const _0x12881d=_0x37ab94['startsWith']('/')||!isRelativePathSegment(_0x38ca39[0x0]);for(const _0x71d078 of _0x38ca39){validatePathSegment(_0x71d078);}return{'segments':_0x38ca39,'isAbsolute':_0x12881d,'raw':_0xaef857};}function isRelativePathSegment(_0x2f7bc1){return _0x2f7bc1==='.'||_0x2f7bc1==='..';}function validatePathSegment(_0x657866){const _0x53a9d1=a138_0x3e21;if(_0x657866==='')throw new Error(_0x53a9d1(0xa3));if(_0x657866==='.'||_0x657866==='..')return;if(/[\x00-\x1F\x7F]/[_0x53a9d1(0xb8)](_0x657866))throw new Error(_0x53a9d1(0xba)+_0x657866);if(_0x657866!==_0x657866[_0x53a9d1(0xa2)]()){}}export function validatePath(_0x51c5f9){const _0x24b8cd=a138_0x3e21;if(_0x51c5f9[_0x24b8cd(0x95)][_0x24b8cd(0xa9)]===0x0&&!_0x51c5f9['isAbsolute'])throw new Error('Relative\x20path\x20cannot\x20be\x20empty');if(_0x51c5f9['isAbsolute']){if(_0x51c5f9[_0x24b8cd(0x95)][0x0]==='..')throw new Error(_0x24b8cd(0x9a));let _0x43c8ba=0x0;for(const _0x200470 of _0x51c5f9[_0x24b8cd(0x95)]){if(_0x200470==='..'){if(_0x43c8ba===0x0)throw new Error(_0x24b8cd(0xa6));_0x43c8ba--;}else _0x200470!=='.'&&_0x43c8ba++;}}}export function joinPaths(_0x3614e7,_0x53203e){const _0x24fa52=a138_0x3e21;if(!_0x3614e7||_0x3614e7==='/')return _0x53203e;if(!_0x53203e||_0x53203e==='.')return _0x3614e7;if(_0x53203e[_0x24fa52(0xc3)]('/'))return _0x53203e;const _0x2bdebb=parsePath(_0x3614e7),_0x5a2175=parsePath(_0x53203e),_0x3b9833=[..._0x2bdebb['segments']];for(const _0x5b1542 of _0x5a2175[_0x24fa52(0x95)]){if(_0x5b1542==='.')continue;else{if(_0x5b1542==='..'){if(_0x3b9833[_0x24fa52(0xa9)]===0x0)throw new Error(_0x24fa52(0xb9));_0x3b9833[_0x24fa52(0xaa)]();}else _0x3b9833[_0x24fa52(0xad)](_0x5b1542);}}const _0x3b3576=_0x3b9833[_0x24fa52(0xa5)]('/');return _0x2bdebb[_0x24fa52(0xb4)][_0x24fa52(0xc3)]('/')?'/'+_0x3b3576:_0x3b3576;}export function normalizePath(_0x41368a){const _0x58c1ed=a138_0x3e21,_0x681846=parsePath(_0x41368a),_0x810cc9=[];for(const _0x1dca98 of _0x681846[_0x58c1ed(0x95)]){if(_0x1dca98==='.')continue;else{if(_0x1dca98==='..'){if(_0x810cc9[_0x58c1ed(0xa9)]===0x0){if(_0x681846[_0x58c1ed(0xb3)])throw new Error(_0x58c1ed(0xb9));_0x810cc9[_0x58c1ed(0xad)]('..');}else _0x810cc9[_0x810cc9[_0x58c1ed(0xa9)]-0x1]==='..'?_0x810cc9[_0x58c1ed(0xad)]('..'):_0x810cc9[_0x58c1ed(0xaa)]();}else _0x810cc9[_0x58c1ed(0xad)](_0x1dca98);}}if(_0x810cc9[_0x58c1ed(0xa9)]===0x0)return _0x681846[_0x58c1ed(0xb3)]?'/':'.';const _0x28dd9d=_0x810cc9['join']('/');return _0x681846[_0x58c1ed(0xb4)][_0x58c1ed(0xc3)]('/')?'/'+_0x28dd9d:_0x28dd9d;}export function getParentPath(_0x43b30b){const _0x1932e4=a138_0x3e21,_0x519473=parsePath(_0x43b30b);if(_0x519473[_0x1932e4(0x95)][_0x1932e4(0xa9)]<=0x1)return'/';const _0x33136e=_0x519473[_0x1932e4(0x95)]['slice'](0x0,-0x1)[_0x1932e4(0xa5)]('/');return _0x519473[_0x1932e4(0xb4)][_0x1932e4(0xc3)]('/')?'/'+_0x33136e:_0x33136e;}export function getBaseName(_0x109260){const _0x45af2e=a138_0x3e21,_0x3885e7=parsePath(_0x109260);return _0x3885e7[_0x45af2e(0x95)][_0x3885e7[_0x45af2e(0x95)][_0x45af2e(0xa9)]-0x1]||'';}export function isChildPath(_0x25fba5,_0x3aa88c){const _0x102ffc=a138_0x3e21,_0x2b82fd=parsePath(_0x25fba5),_0x5ba52c=parsePath(_0x3aa88c);if(_0x2b82fd[_0x102ffc(0x95)]['length']<=_0x5ba52c['segments']['length'])return![];for(let _0x2ccf6b=0x0;_0x2ccf6b<_0x5ba52c[_0x102ffc(0x95)][_0x102ffc(0xa9)];_0x2ccf6b++){if(_0x2b82fd[_0x102ffc(0x95)][_0x2ccf6b]!==_0x5ba52c['segments'][_0x2ccf6b])return![];}return!![];}export function splitPath(_0x53a63b){const _0x738bd=a138_0x3e21,_0x107922=parsePath(_0x53a63b);if(_0x107922[_0x738bd(0x95)]['length']===0x0)throw new Error(_0x738bd(0xc6));if(_0x107922[_0x738bd(0x95)][_0x738bd(0xa9)]===0x1)return{'parent':_0x107922[_0x738bd(0x95)][0x0]};return{'parent':_0x107922[_0x738bd(0x95)][0x0],'child':_0x107922[_0x738bd(0x95)][_0x738bd(0x94)](0x1)[_0x738bd(0xa5)]('/')};}export function isYamlFilePath(_0x32f525){const _0x434111=a138_0x3e21;return _0x32f525['endsWith'](_0x434111(0xc1))||_0x32f525[_0x434111(0xbe)](_0x434111(0x9b));}function a138_0x3e21(_0xeca1e3,_0x272e73){_0xeca1e3=_0xeca1e3-0x93;const _0x36d925=a138_0x36d9();let _0x3e2126=_0x36d925[_0xeca1e3];return _0x3e2126;}export async function resolveYamlFilePath(_0x52bc23,_0x1e9d9c=nodeFileSystem){const _0x88a46b=a138_0x3e21,_0x4ef030=a138_0x34d055[_0x88a46b(0xab)](_0x52bc23);if(!await _0x1e9d9c[_0x88a46b(0x96)](_0x4ef030))throw new Error(_0x88a46b(0xc2)+_0x52bc23);let _0x25020d=a138_0x34d055[_0x88a46b(0xa4)](_0x4ef030),_0x34795b=null,_0xbced28=null;const _0x2353cb=a138_0x34d055[_0x88a46b(0xaf)](_0x25020d)['root'];while(_0x25020d!==_0x2353cb){const _0x4f2874=a138_0x34d055[_0x88a46b(0xa5)](_0x25020d,_0x88a46b(0x97));if(await _0x1e9d9c[_0x88a46b(0x96)](_0x4f2874)){_0x34795b=_0x4f2874,_0xbced28=_0x25020d;break;}_0x25020d=a138_0x34d055[_0x88a46b(0xa4)](_0x25020d);}if(!_0x34795b||!_0xbced28)throw new Error(_0x88a46b(0xa0)+_0x52bc23+'\x0a'+_0x88a46b(0xb1));const _0x2ccc19=await _0x1e9d9c[_0x88a46b(0xc5)](_0x34795b),_0x213e72=JSON['parse'](_0x2ccc19),_0x2b5673=_0x213e72['parent_segment'];if(!_0x2b5673)throw new Error(_0x88a46b(0xa1));const _0x326bc4=await _0x1e9d9c[_0x88a46b(0xc5)](_0x4ef030),_0x32f1ad=a138_0x575ece(_0x326bc4),_0x221305=_0x32f1ad[_0x88a46b(0xac)];if(!_0x221305)throw new Error(_0x88a46b(0xc0)+_0x52bc23);const _0x4c5f2a=_0x32f1ad[_0x88a46b(0x98)]==='journey'?'journey':_0x88a46b(0xa7),_0x3d31e7=a138_0x34d055[_0x88a46b(0x9d)](_0xbced28,_0x4ef030),_0x5b8d4f=a138_0x34d055['dirname'](_0x3d31e7),_0x49ec37=_0x5b8d4f==='.'?'':_0x5b8d4f['replace'](/\\/g,'/'),_0x370f79=_0x49ec37?_0x2b5673+'/'+_0x49ec37+'/'+_0x221305:_0x2b5673+'/'+_0x221305;return{'parentSegment':_0x2b5673,'segmentName':_0x221305,'folderPath':_0x49ec37,'fullPath':_0x370f79,'resourceType':_0x4c5f2a,'content':_0x326bc4};}
@@ -1 +1 @@
1
- (function(_0x1ba93c,_0x15ef4e){const _0x40693b=a139_0x190b,_0x379511=_0x1ba93c();while(!![]){try{const _0x9c1217=-parseInt(_0x40693b(0xbb))/0x1*(-parseInt(_0x40693b(0xc8))/0x2)+parseInt(_0x40693b(0xc4))/0x3*(-parseInt(_0x40693b(0xb9))/0x4)+parseInt(_0x40693b(0xbf))/0x5*(-parseInt(_0x40693b(0xba))/0x6)+-parseInt(_0x40693b(0xc7))/0x7+-parseInt(_0x40693b(0xc3))/0x8+parseInt(_0x40693b(0xbe))/0x9+parseInt(_0x40693b(0xbd))/0xa*(parseInt(_0x40693b(0xc0))/0xb);if(_0x9c1217===_0x15ef4e)break;else _0x379511['push'](_0x379511['shift']());}catch(_0x4a96eb){_0x379511['push'](_0x379511['shift']());}}}(a139_0x9c32,0xbf9d1));export function parseSegmentRef(_0x182a5e){const _0x426a46=a139_0x190b,_0x2d94ad=_0x182a5e[_0x426a46(0xbc)]('/');if(_0x2d94ad===-0x1)return{'parentId':_0x182a5e};if(_0x2d94ad===0x0)throw new Error(_0x426a46(0xc6)+_0x182a5e+_0x426a46(0xc5));const _0x1b76d3=_0x182a5e[_0x426a46(0xc2)](0x0,_0x2d94ad),_0x56b477=_0x182a5e[_0x426a46(0xc2)](_0x2d94ad+0x1);if(_0x56b477==='')throw new Error('Invalid\x20segment\x20reference\x20format:\x20'+_0x182a5e+_0x426a46(0xc1));return{'parentId':_0x1b76d3,'childId':_0x56b477};}function a139_0x190b(_0x5c1505,_0x4b07f0){_0x5c1505=_0x5c1505-0xb9;const _0x9c32bc=a139_0x9c32();let _0x190bc4=_0x9c32bc[_0x5c1505];return _0x190bc4;}function a139_0x9c32(){const _0x349c3d=['indexOf','6410SuEOJX','7224435QMGerT','5yXrjVz','49071DFuNoM','.\x20Child\x20name\x20cannot\x20be\x20empty','substring','9292536STJDrz','8028cVIeXT','.\x20Parent\x20name\x20cannot\x20be\x20empty','Invalid\x20segment\x20reference\x20format:\x20','2562574WxYKjd','100HCIwjE','908uOEkvW','9379596iokNRB','16420ImOccX'];a139_0x9c32=function(){return _0x349c3d;};return a139_0x9c32();}
1
+ (function(_0x39f67e,_0x9f185e){const _0x317d48=a139_0x6a50,_0x47841c=_0x39f67e();while(!![]){try{const _0xc86d17=parseInt(_0x317d48(0x1af))/0x1*(parseInt(_0x317d48(0x1a6))/0x2)+parseInt(_0x317d48(0x1a8))/0x3+-parseInt(_0x317d48(0x1a2))/0x4+-parseInt(_0x317d48(0x1b0))/0x5*(-parseInt(_0x317d48(0x1a0))/0x6)+parseInt(_0x317d48(0x1a3))/0x7*(-parseInt(_0x317d48(0x1ad))/0x8)+parseInt(_0x317d48(0x1ac))/0x9*(-parseInt(_0x317d48(0x1a9))/0xa)+-parseInt(_0x317d48(0x1ab))/0xb*(-parseInt(_0x317d48(0x1a7))/0xc);if(_0xc86d17===_0x9f185e)break;else _0x47841c['push'](_0x47841c['shift']());}catch(_0x5b4b3f){_0x47841c['push'](_0x47841c['shift']());}}}(a139_0x3145,0x422ee));function a139_0x3145(){const _0x5c7fb7=['.\x20Child\x20name\x20cannot\x20be\x20empty','1423796txERLL','1219689IfUGCk','98312DGJFSm','Invalid\x20segment\x20reference\x20format:\x20','37390SmuWXt','5CCLEUJ','2434002SljhTz','indexOf','997424HVjhqE','231ymaHRz','substring','.\x20Parent\x20name\x20cannot\x20be\x20empty','6SjWHyg','36xnuswt','466065zsgWUx','10BPLHas'];a139_0x3145=function(){return _0x5c7fb7;};return a139_0x3145();}function a139_0x6a50(_0x196848,_0x450abf){_0x196848=_0x196848-0x1a0;const _0x31453c=a139_0x3145();let _0x6a5037=_0x31453c[_0x196848];return _0x6a5037;}export function parseSegmentRef(_0xfb279e){const _0x2a65d2=a139_0x6a50,_0x4be62f=_0xfb279e[_0x2a65d2(0x1a1)]('/');if(_0x4be62f===-0x1)return{'parentId':_0xfb279e};if(_0x4be62f===0x0)throw new Error(_0x2a65d2(0x1ae)+_0xfb279e+_0x2a65d2(0x1a5));const _0x1951b1=_0xfb279e[_0x2a65d2(0x1a4)](0x0,_0x4be62f),_0x468215=_0xfb279e[_0x2a65d2(0x1a4)](_0x4be62f+0x1);if(_0x468215==='')throw new Error(_0x2a65d2(0x1ae)+_0xfb279e+_0x2a65d2(0x1aa));return{'parentId':_0x1951b1,'childId':_0x468215};}
@@ -1 +1 @@
1
- (function(_0x17ebf7,_0x38fae5){const _0x202dd6=a140_0x1f9c,_0x1ca551=_0x17ebf7();while(!![]){try{const _0x35f439=-parseInt(_0x202dd6(0x99))/0x1*(parseInt(_0x202dd6(0xac))/0x2)+parseInt(_0x202dd6(0x88))/0x3+-parseInt(_0x202dd6(0x9a))/0x4*(parseInt(_0x202dd6(0xb0))/0x5)+parseInt(_0x202dd6(0xb4))/0x6+parseInt(_0x202dd6(0x8b))/0x7+-parseInt(_0x202dd6(0xa2))/0x8*(-parseInt(_0x202dd6(0xcb))/0x9)+parseInt(_0x202dd6(0xb1))/0xa;if(_0x35f439===_0x38fae5)break;else _0x1ca551['push'](_0x1ca551['shift']());}catch(_0x1b0f24){_0x1ca551['push'](_0x1ca551['shift']());}}}(a140_0x288e,0x7e66c));import{SegmentDefSchema,RuleDefSchema}from'./types/segment-schema.js';import{formatZodPath,flattenZodIssues,getLocationFromPath,pathToArray}from'./yaml-validator.js';export function validateSegmentDef(_0x5762c4,_0x5d4602={},_0x2d0b72={}){const _0x4bcb06=a140_0x1f9c;if(_0x2d0b72['skipSchema'])return runSemanticChecks(_0x5762c4,_0x5d4602);const _0x456e86=SegmentDefSchema[_0x4bcb06(0x9f)](_0x5762c4);if(_0x456e86[_0x4bcb06(0xb7)])return runSemanticChecks(_0x456e86[_0x4bcb06(0xaa)],_0x5d4602);return zodErrorsToValidationResult(_0x456e86['error'],_0x5d4602);}export function validateRuleDef(_0x53f527,_0x2660aa,_0x1a5397){const _0x25fdf5=a140_0x1f9c;if(!_0x53f527)return[];const _0x25bec2=RuleDefSchema[_0x25fdf5(0x9f)](_0x53f527);if(_0x25bec2[_0x25fdf5(0xb7)])return checkRule(_0x25bec2['data'],_0x2660aa,_0x1a5397);const _0x5d91eb=flattenZodIssues(_0x25bec2[_0x25fdf5(0xc5)]['issues']);return _0x5d91eb[_0x25fdf5(0xc0)](_0x22e3fd=>{const _0x1a39c4=_0x25fdf5,_0xafe11f=formatZodPath(_0x22e3fd[_0x1a39c4(0xa3)]),_0x7fc556=_0xafe11f?_0x2660aa+'.'+_0xafe11f:_0x2660aa,_0xf09df3=mapZodIssueToCode(_0x22e3fd,_0xafe11f),_0x5eec99=getLocationFromPath(_0x1a5397[_0x1a39c4(0xad)],_0x1a5397[_0x1a39c4(0xa7)],pathToArray(_0x7fc556));return{'level':_0x1a39c4(0xc5),'path':_0x7fc556,'code':_0xf09df3,'message':_0x22e3fd[_0x1a39c4(0x8d)],..._0x5eec99&&{'location':_0x5eec99}};});}function zodErrorsToValidationResult(_0x3138c0,_0x5b3a50){const _0x1fe9e4=a140_0x1f9c,_0x6435f2=flattenZodIssues(_0x3138c0[_0x1fe9e4(0xca)]),_0x4c3e9f=_0x6435f2[_0x1fe9e4(0xc0)](_0x231b00=>{const _0x59f041=_0x1fe9e4,_0x5a95d7=formatZodPath(_0x231b00['path']),_0x1b01fc=mapZodIssueToCode(_0x231b00,_0x5a95d7),_0x2e1aa6=getLocationFromPath(_0x5b3a50[_0x59f041(0xad)],_0x5b3a50['source'],_0x231b00[_0x59f041(0xa3)][_0x59f041(0xc0)](_0x14f0f9=>typeof _0x14f0f9===_0x59f041(0xa8)?String(_0x14f0f9):_0x14f0f9));return{'level':'error','path':_0x5a95d7,'code':_0x1b01fc,'message':_0x231b00[_0x59f041(0x8d)],..._0x2e1aa6&&{'location':_0x2e1aa6}};});return{'valid':![],'errors':_0x4c3e9f,'warnings':[]};}function mapZodIssueToCode(_0x2c1596,_0x50966d){const _0x43cf4c=a140_0x1f9c,_0x13f48d=_0x2c1596[_0x43cf4c(0x95)]===_0x43cf4c(0xc2)?_0x2c1596['params']:undefined;if(_0x50966d===_0x43cf4c(0xcc))return'MISSING_NAME';if(_0x50966d==='rule.type'||_0x50966d[_0x43cf4c(0x8a)](_0x43cf4c(0x92))){if(_0x2c1596[_0x43cf4c(0x95)]===_0x43cf4c(0x86)){if(_0x50966d===_0x43cf4c(0xa5)||_0x50966d[_0x43cf4c(0xc7)](/\.conditions\[\d+\]\.type$/))return _0x43cf4c(0x9e);}}if(_0x50966d[_0x43cf4c(0x8a)](_0x43cf4c(0x91)))return _0x43cf4c(0xb3);if(_0x50966d[_0x43cf4c(0x8a)](_0x43cf4c(0x87)))return _0x43cf4c(0xce);if(_0x13f48d?.[_0x43cf4c(0xb6)]===_0x43cf4c(0xb9))return'MISSING_BETWEEN_BOUNDS';if(_0x13f48d?.['validationCode']===_0x43cf4c(0xab))return'MISSING_TIME_UNIT';if(_0x50966d[_0x43cf4c(0x8a)](_0x43cf4c(0x90))||_0x50966d==='conditions')return'MISSING_CONDITIONS';if(_0x50966d[_0x43cf4c(0x9c)](_0x43cf4c(0xa4)))return _0x43cf4c(0x8c);if(_0x50966d[_0x43cf4c(0x8a)](_0x43cf4c(0xc4)))return'MISSING_SEGMENT_REFERENCE';return _0x43cf4c(0x96);}function runSemanticChecks(_0x2afd9b,_0x33731d){const _0x5c8859=a140_0x1f9c,_0xaba625=[];_0x2afd9b[_0x5c8859(0xbf)]&&_0xaba625[_0x5c8859(0x93)](...checkRule(_0x2afd9b[_0x5c8859(0xbf)],'rule',_0x33731d));const _0x436d8d=_0xaba625[_0x5c8859(0xc3)](_0x330821=>_0x330821[_0x5c8859(0xa9)]===_0x5c8859(0xc5)),_0x18741d=_0xaba625[_0x5c8859(0xc3)](_0x2f1e00=>_0x2f1e00[_0x5c8859(0xa9)]===_0x5c8859(0x89));return{'valid':_0x436d8d[_0x5c8859(0x8f)]===0x0,'errors':_0x436d8d,'warnings':_0x18741d};}function checkRule(_0x3017dd,_0x117d7c,_0x53fd0e){const _0x1e9f7d=a140_0x1f9c,_0x43fe7b=[];if(_0x3017dd[_0x1e9f7d(0xbd)][_0x1e9f7d(0x8f)]===0x0)return _0x43fe7b[_0x1e9f7d(0x93)]({'level':_0x1e9f7d(0xc5),'path':_0x117d7c+'.conditions','code':_0x1e9f7d(0x98),'message':_0x1e9f7d(0xbe),'location':getLocationFromPath(_0x53fd0e[_0x1e9f7d(0xad)],_0x53fd0e[_0x1e9f7d(0xa7)],pathToArray(_0x117d7c+_0x1e9f7d(0x90)))}),_0x43fe7b;return _0x43fe7b[_0x1e9f7d(0x93)](...checkConditions(_0x3017dd['conditions'],_0x117d7c,_0x53fd0e)),_0x43fe7b;}function a140_0x1f9c(_0x3b0d24,_0x55c07b){_0x3b0d24=_0x3b0d24-0x85;const _0x288e63=a140_0x288e();let _0x1f9cbf=_0x288e63[_0x3b0d24];return _0x1f9cbf;}function a140_0x288e(){const _0x3448f2=['type','INVALID_OPERATOR_TYPE','407400wJiKDL','the\x20condition\x20queries\x20the\x20master\x20table\x20instead.\x20','validationCode','success','.filter','MISSING_BETWEEN_BOUNDS','EMPTY_ATTRIBUTE','BEHAVIOR_SOURCE_MISSING_FILTER','.source','conditions','Rule\x20conditions\x20array\x20cannot\x20be\x20empty.\x20Add\x20at\x20least\x20one\x20condition.','rule','map','Use\x20\x27attribute:\x20\x22\x22\x27\x20with\x20\x27filter.type:\x20And\x27\x20containing\x20\x27type:\x20Column\x27\x20conditions.','custom','filter','.segment','error','\x27\x20with\x20attribute\x20\x27','match','attribute','\x20condition\x20group\x20not\x20supported.\x20Console\x20UI\x20ignores\x20nested\x20condition\x20','issues','9vxJyKU','name','aggregation','MISSING_OPERATOR_VALUE','Value','.conditions[','invalid_value','.operator.value','1605666rzsGEH','warning','endsWith','113141rdhsAe','INVALID_ARRAY_MATCHING','message','For\x20behavior\x20aggregations,\x20use\x20\x27attribute:\x20\x22\x22\x27\x20with\x20Column\x20conditions\x20in\x20filter.','length','.conditions','.operator.type','.type','push','\x20condition\x20cannot\x20have\x20an\x20empty\x20conditions\x20array','code','SEGMENT_SCHEMA_ERROR','Attribute\x20\x27','EMPTY_CONDITIONS','468722XIkMsv','8epQQsw','Behavior','includes','.attribute','INVALID_RULE_TYPE','safeParse','NESTED_CONDITION_GROUP','Attribute\x20name\x20cannot\x20be\x20empty','2173016HkvwML','path','arrayMatching','rule.type','And','source','symbol','level','data','MISSING_TIME_UNIT','2vkwLMv','document','use\x20\x27In\x27\x20operator\x20instead:\x20operator:\x20{\x20type:\x20In,\x20value:\x20[\x22val1\x22,\x20\x22val2\x22]\x20}','groups,\x20causing\x20local/server\x20discrepancy.\x20For\x20same-attribute\x20Or\x20conditions,\x20','63335MOiTCn','1208840dVVrSu'];a140_0x288e=function(){return _0x3448f2;};return a140_0x288e();}function checkConditions(_0x35daa0,_0x256df5,_0x3a8a0a){const _0x365464=a140_0x1f9c,_0x18c350=[];for(let _0x15753b=0x0;_0x15753b<_0x35daa0[_0x365464(0x8f)];_0x15753b++){const _0x320e17=_0x35daa0[_0x15753b],_0x4413bf=_0x256df5+_0x365464(0x85)+_0x15753b+']';_0x18c350[_0x365464(0x93)](...checkCondition(_0x320e17,_0x4413bf,_0x3a8a0a));}return _0x18c350;}function checkCondition(_0x36d70f,_0x5cb420,_0x1eccdc){const _0xf67300=a140_0x1f9c,_0x43cf80=[];if(_0x36d70f[_0xf67300(0xb2)]===_0xf67300(0xa6)||_0x36d70f[_0xf67300(0xb2)]==='Or')return _0x36d70f[_0xf67300(0xbd)][_0xf67300(0x8f)]===0x0?_0x43cf80['push']({'level':_0xf67300(0xc5),'path':_0x5cb420+_0xf67300(0x90),'code':_0xf67300(0x98),'message':_0x36d70f[_0xf67300(0xb2)]+_0xf67300(0x94),'location':getLocationFromPath(_0x1eccdc[_0xf67300(0xad)],_0x1eccdc[_0xf67300(0xa7)],pathToArray(_0x5cb420+'.conditions'))}):_0x43cf80[_0xf67300(0x93)]({'level':'error','path':_0x5cb420,'code':_0xf67300(0xa0),'message':_0x36d70f['type']+_0xf67300(0xc9)+_0xf67300(0xaf)+_0xf67300(0xae),'location':getLocationFromPath(_0x1eccdc[_0xf67300(0xad)],_0x1eccdc[_0xf67300(0xa7)],pathToArray(_0x5cb420))}),_0x43cf80;if(_0x36d70f[_0xf67300(0xb2)]===_0xf67300(0xcf)||_0x36d70f[_0xf67300(0xb2)]===_0xf67300(0x9b)){const _0x59a504=_0x36d70f,_0x5352e3=_0x59a504['source'],_0xbb257f=_0x59a504[_0xf67300(0xcd)],_0x506407=_0x5352e3||_0xbb257f;(!_0x59a504['attribute']||_0x59a504[_0xf67300(0xc8)]==='')&&(!_0x506407&&_0x43cf80[_0xf67300(0x93)]({'level':'error','path':_0x5cb420+_0xf67300(0x9d),'code':_0xf67300(0xba),'message':_0xf67300(0xa1),'location':getLocationFromPath(_0x1eccdc['document'],_0x1eccdc[_0xf67300(0xa7)],pathToArray(_0x5cb420+_0xf67300(0x9d)))}));_0x59a504[_0xf67300(0xc3)]&&_0x43cf80['push'](...checkRule(_0x59a504[_0xf67300(0xc3)],_0x5cb420+_0xf67300(0xb8),_0x1eccdc));if(_0x59a504['source']){const _0x35b7f6=_0x59a504[_0xf67300(0xc8)]&&_0x59a504['attribute']!=='';_0x35b7f6&&!_0x59a504[_0xf67300(0xc3)]&&_0x43cf80[_0xf67300(0x93)]({'level':_0xf67300(0xc5),'path':_0x5cb420+'.source','code':_0xf67300(0xbb),'message':'Behavior\x20source\x20\x27'+_0x59a504[_0xf67300(0xa7)]+_0xf67300(0xc6)+_0x59a504['attribute']+'\x27\x20'+'requires\x20a\x20nested\x20\x27filter\x27.\x20Without\x20filter,\x20the\x20source\x20is\x20silently\x20ignored\x20and\x20'+_0xf67300(0xb5)+_0xf67300(0xc1),'location':getLocationFromPath(_0x1eccdc[_0xf67300(0xad)],_0x1eccdc['source'],pathToArray(_0x5cb420+_0xf67300(0xbc)))}),_0x35b7f6&&_0x59a504['filter']&&_0x43cf80[_0xf67300(0x93)]({'level':_0xf67300(0x89),'path':_0x5cb420+'.attribute','code':'BEHAVIOR_SOURCE_WITH_ATTRIBUTE','message':_0xf67300(0x97)+_0x59a504[_0xf67300(0xc8)]+'\x27\x20with\x20behavior\x20source\x20may\x20cause\x20unexpected\x20behavior.\x20'+_0xf67300(0x8e),'location':getLocationFromPath(_0x1eccdc[_0xf67300(0xad)],_0x1eccdc[_0xf67300(0xa7)],pathToArray(_0x5cb420+_0xf67300(0x9d)))});}}return _0x43cf80;}
1
+ (function(_0x49f6bd,_0x34af44){const _0x3f7132=a140_0x1799,_0x10d9de=_0x49f6bd();while(!![]){try{const _0x18d071=-parseInt(_0x3f7132(0xd1))/0x1+parseInt(_0x3f7132(0xfa))/0x2*(parseInt(_0x3f7132(0x10e))/0x3)+-parseInt(_0x3f7132(0x102))/0x4+parseInt(_0x3f7132(0xcf))/0x5+parseInt(_0x3f7132(0xff))/0x6+parseInt(_0x3f7132(0xef))/0x7+-parseInt(_0x3f7132(0x103))/0x8*(parseInt(_0x3f7132(0x107))/0x9);if(_0x18d071===_0x34af44)break;else _0x10d9de['push'](_0x10d9de['shift']());}catch(_0x911313){_0x10d9de['push'](_0x10d9de['shift']());}}}(a140_0x5be5,0x98f6f));import{SegmentDefSchema,RuleDefSchema}from'./types/segment-schema.js';import{formatZodPath,flattenZodIssues,getLocationFromPath,pathToArray}from'./yaml-validator.js';export function validateSegmentDef(_0x1245dd,_0x5768b3={},_0x2c7039={}){const _0x27b111=a140_0x1799;if(_0x2c7039[_0x27b111(0x115)])return runSemanticChecks(_0x1245dd,_0x5768b3);const _0x7a88d3=SegmentDefSchema['safeParse'](_0x1245dd);if(_0x7a88d3[_0x27b111(0x104)])return runSemanticChecks(_0x7a88d3[_0x27b111(0xd3)],_0x5768b3);return zodErrorsToValidationResult(_0x7a88d3['error'],_0x5768b3);}export function validateRuleDef(_0x154872,_0x899d68,_0x203439){const _0x1ef660=a140_0x1799;if(!_0x154872)return[];const _0x1140a2=RuleDefSchema[_0x1ef660(0xde)](_0x154872);if(_0x1140a2[_0x1ef660(0x104)])return checkRule(_0x1140a2[_0x1ef660(0xd3)],_0x899d68,_0x203439);const _0x5d0b2a=flattenZodIssues(_0x1140a2[_0x1ef660(0xd7)]['issues']);return _0x5d0b2a['map'](_0x1ac366=>{const _0x23277d=_0x1ef660,_0xfb139f=formatZodPath(_0x1ac366[_0x23277d(0x10b)]),_0x364699=_0xfb139f?_0x899d68+'.'+_0xfb139f:_0x899d68,_0x3d5d53=mapZodIssueToCode(_0x1ac366,_0xfb139f),_0x54808e=getLocationFromPath(_0x203439['document'],_0x203439[_0x23277d(0xf5)],pathToArray(_0x364699));return{'level':_0x23277d(0xd7),'path':_0x364699,'code':_0x3d5d53,'message':_0x1ac366[_0x23277d(0xfd)],..._0x54808e&&{'location':_0x54808e}};});}function a140_0x1799(_0x2f1de1,_0xfce2ca){_0x2f1de1=_0x2f1de1-0xcf;const _0x5be5e4=a140_0x5be5();let _0x179936=_0x5be5e4[_0x2f1de1];return _0x179936;}function zodErrorsToValidationResult(_0x4986e9,_0x524695){const _0x46fcfe=a140_0x1799,_0x1f82ae=flattenZodIssues(_0x4986e9[_0x46fcfe(0x113)]),_0x37d4ef=_0x1f82ae[_0x46fcfe(0xed)](_0xa704c4=>{const _0x4d34c2=_0x46fcfe,_0x4ced4e=formatZodPath(_0xa704c4[_0x4d34c2(0x10b)]),_0x2e6e1f=mapZodIssueToCode(_0xa704c4,_0x4ced4e),_0x4a3f7b=getLocationFromPath(_0x524695['document'],_0x524695[_0x4d34c2(0xf5)],_0xa704c4[_0x4d34c2(0x10b)][_0x4d34c2(0xed)](_0x43321c=>typeof _0x43321c===_0x4d34c2(0x10c)?String(_0x43321c):_0x43321c));return{'level':_0x4d34c2(0xd7),'path':_0x4ced4e,'code':_0x2e6e1f,'message':_0xa704c4[_0x4d34c2(0xfd)],..._0x4a3f7b&&{'location':_0x4a3f7b}};});return{'valid':![],'errors':_0x37d4ef,'warnings':[]};}function mapZodIssueToCode(_0x16aee8,_0x22c50a){const _0x3ec7f2=a140_0x1799,_0x2601a8=_0x16aee8[_0x3ec7f2(0x116)]===_0x3ec7f2(0xe2)?_0x16aee8['params']:undefined;if(_0x22c50a===_0x3ec7f2(0xfc))return _0x3ec7f2(0xd6);if(_0x22c50a==='rule.type'||_0x22c50a[_0x3ec7f2(0xd4)](_0x3ec7f2(0xf4))){if(_0x16aee8[_0x3ec7f2(0x116)]===_0x3ec7f2(0xe9)){if(_0x22c50a===_0x3ec7f2(0xda)||_0x22c50a[_0x3ec7f2(0xf6)](/\.conditions\[\d+\]\.type$/))return _0x3ec7f2(0xf8);}}if(_0x22c50a[_0x3ec7f2(0xd4)](_0x3ec7f2(0xe0)))return'INVALID_OPERATOR_TYPE';if(_0x22c50a[_0x3ec7f2(0xd4)](_0x3ec7f2(0xf0)))return _0x3ec7f2(0x108);if(_0x2601a8?.['validationCode']===_0x3ec7f2(0x109))return _0x3ec7f2(0x109);if(_0x2601a8?.[_0x3ec7f2(0xe7)]===_0x3ec7f2(0xf3))return _0x3ec7f2(0xf3);if(_0x22c50a[_0x3ec7f2(0xd4)](_0x3ec7f2(0xf1))||_0x22c50a===_0x3ec7f2(0xee))return'MISSING_CONDITIONS';if(_0x22c50a[_0x3ec7f2(0xf2)]('arrayMatching'))return _0x3ec7f2(0xe5);if(_0x22c50a[_0x3ec7f2(0xd4)](_0x3ec7f2(0xea)))return'MISSING_SEGMENT_REFERENCE';return'SEGMENT_SCHEMA_ERROR';}function runSemanticChecks(_0x483a75,_0x208122){const _0x2ca2b7=a140_0x1799,_0x555946=[];_0x483a75[_0x2ca2b7(0xdf)]&&_0x555946[_0x2ca2b7(0xe4)](...checkRule(_0x483a75['rule'],_0x2ca2b7(0xdf),_0x208122));const _0x18e75b=_0x555946[_0x2ca2b7(0xe3)](_0x47ce65=>_0x47ce65[_0x2ca2b7(0x101)]===_0x2ca2b7(0xd7)),_0x3f926e=_0x555946[_0x2ca2b7(0xe3)](_0x22e464=>_0x22e464[_0x2ca2b7(0x101)]===_0x2ca2b7(0x106));return{'valid':_0x18e75b['length']===0x0,'errors':_0x18e75b,'warnings':_0x3f926e};}function checkRule(_0x3f9a25,_0xb71785,_0x133a1a){const _0x502fdc=a140_0x1799,_0x234835=[];if(_0x3f9a25[_0x502fdc(0xee)][_0x502fdc(0xd9)]===0x0)return _0x234835[_0x502fdc(0xe4)]({'level':'error','path':_0xb71785+_0x502fdc(0xf1),'code':'EMPTY_CONDITIONS','message':'Rule\x20conditions\x20array\x20cannot\x20be\x20empty.\x20Add\x20at\x20least\x20one\x20condition.','location':getLocationFromPath(_0x133a1a['document'],_0x133a1a[_0x502fdc(0xf5)],pathToArray(_0xb71785+_0x502fdc(0xf1)))}),_0x234835;return _0x234835[_0x502fdc(0xe4)](...checkConditions(_0x3f9a25[_0x502fdc(0xee)],_0xb71785,_0x133a1a)),_0x234835;}function checkConditions(_0x154be5,_0x43a4ce,_0x1a2897){const _0x159902=a140_0x1799,_0x4ec41d=[];for(let _0x368c69=0x0;_0x368c69<_0x154be5[_0x159902(0xd9)];_0x368c69++){const _0x3021aa=_0x154be5[_0x368c69],_0x229e30=_0x43a4ce+_0x159902(0x10d)+_0x368c69+']';_0x4ec41d[_0x159902(0xe4)](...checkCondition(_0x3021aa,_0x229e30,_0x1a2897));}return _0x4ec41d;}function checkCondition(_0x4c8dd6,_0x4b0652,_0x172c63){const _0x16ad83=a140_0x1799,_0x2049e9=[];if(_0x4c8dd6[_0x16ad83(0x100)]==='And'||_0x4c8dd6[_0x16ad83(0x100)]==='Or')return _0x4c8dd6[_0x16ad83(0xee)][_0x16ad83(0xd9)]===0x0?_0x2049e9[_0x16ad83(0xe4)]({'level':_0x16ad83(0xd7),'path':_0x4b0652+'.conditions','code':_0x16ad83(0xd5),'message':_0x4c8dd6[_0x16ad83(0x100)]+_0x16ad83(0xd2),'location':getLocationFromPath(_0x172c63[_0x16ad83(0xfe)],_0x172c63[_0x16ad83(0xf5)],pathToArray(_0x4b0652+'.conditions'))}):_0x2049e9[_0x16ad83(0xe4)]({'level':_0x16ad83(0xd7),'path':_0x4b0652,'code':_0x16ad83(0xdd),'message':_0x4c8dd6[_0x16ad83(0x100)]+_0x16ad83(0xd0)+_0x16ad83(0xdc)+_0x16ad83(0xe1),'location':getLocationFromPath(_0x172c63['document'],_0x172c63[_0x16ad83(0xf5)],pathToArray(_0x4b0652))}),_0x2049e9;if(_0x4c8dd6[_0x16ad83(0x100)]==='Value'||_0x4c8dd6['type']===_0x16ad83(0xe8)){const _0x5cb6bf=_0x4c8dd6,_0x1faf33=_0x5cb6bf[_0x16ad83(0xf5)],_0x27f135=_0x5cb6bf[_0x16ad83(0x10a)],_0x522134=_0x1faf33||_0x27f135;(!_0x5cb6bf[_0x16ad83(0xf7)]||_0x5cb6bf[_0x16ad83(0xf7)]==='')&&(!_0x522134&&_0x2049e9[_0x16ad83(0xe4)]({'level':_0x16ad83(0xd7),'path':_0x4b0652+_0x16ad83(0x112),'code':_0x16ad83(0xec),'message':_0x16ad83(0x110),'location':getLocationFromPath(_0x172c63['document'],_0x172c63[_0x16ad83(0xf5)],pathToArray(_0x4b0652+_0x16ad83(0x112)))}));_0x5cb6bf[_0x16ad83(0xe3)]&&_0x2049e9[_0x16ad83(0xe4)](...checkRule(_0x5cb6bf[_0x16ad83(0xe3)],_0x4b0652+_0x16ad83(0x10f),_0x172c63));if(_0x5cb6bf[_0x16ad83(0xf5)]){const _0x9c5f3e=_0x5cb6bf['attribute']&&_0x5cb6bf[_0x16ad83(0xf7)]!=='';_0x9c5f3e&&!_0x5cb6bf['filter']&&_0x2049e9['push']({'level':'error','path':_0x4b0652+_0x16ad83(0xeb),'code':_0x16ad83(0xfb),'message':_0x16ad83(0x105)+_0x5cb6bf[_0x16ad83(0xf5)]+'\x27\x20with\x20attribute\x20\x27'+_0x5cb6bf[_0x16ad83(0xf7)]+'\x27\x20'+_0x16ad83(0x111)+_0x16ad83(0xf9)+'Use\x20\x27attribute:\x20\x22\x22\x27\x20with\x20\x27filter.type:\x20And\x27\x20containing\x20\x27type:\x20Column\x27\x20conditions.','location':getLocationFromPath(_0x172c63[_0x16ad83(0xfe)],_0x172c63['source'],pathToArray(_0x4b0652+_0x16ad83(0xeb)))}),_0x9c5f3e&&_0x5cb6bf[_0x16ad83(0xe3)]&&_0x2049e9[_0x16ad83(0xe4)]({'level':_0x16ad83(0x106),'path':_0x4b0652+_0x16ad83(0x112),'code':_0x16ad83(0xd8),'message':_0x16ad83(0xdb)+_0x5cb6bf[_0x16ad83(0xf7)]+_0x16ad83(0xe6)+_0x16ad83(0x114),'location':getLocationFromPath(_0x172c63[_0x16ad83(0xfe)],_0x172c63[_0x16ad83(0xf5)],pathToArray(_0x4b0652+_0x16ad83(0x112)))});}}return _0x2049e9;}function a140_0x5be5(){const _0xcbd258=['invalid_value','.segment','.source','EMPTY_ATTRIBUTE','map','conditions','2716637qeaUrr','.operator.value','.conditions','includes','MISSING_TIME_UNIT','.type','source','match','attribute','INVALID_RULE_TYPE','the\x20condition\x20queries\x20the\x20master\x20table\x20instead.\x20','1896gdjKfv','BEHAVIOR_SOURCE_MISSING_FILTER','name','message','document','4726074rZapYr','type','level','3273960DxzpRu','1228072cyDXHe','success','Behavior\x20source\x20\x27','warning','81VpmqXd','MISSING_OPERATOR_VALUE','MISSING_BETWEEN_BOUNDS','aggregation','path','symbol','.conditions[','3669ZnJIqn','.filter','Attribute\x20name\x20cannot\x20be\x20empty','requires\x20a\x20nested\x20\x27filter\x27.\x20Without\x20filter,\x20the\x20source\x20is\x20silently\x20ignored\x20and\x20','.attribute','issues','For\x20behavior\x20aggregations,\x20use\x20\x27attribute:\x20\x22\x22\x27\x20with\x20Column\x20conditions\x20in\x20filter.','skipSchema','code','2917060BkzPCb','\x20condition\x20group\x20not\x20supported.\x20Console\x20UI\x20ignores\x20nested\x20condition\x20','91972yDRWPr','\x20condition\x20cannot\x20have\x20an\x20empty\x20conditions\x20array','data','endsWith','EMPTY_CONDITIONS','MISSING_NAME','error','BEHAVIOR_SOURCE_WITH_ATTRIBUTE','length','rule.type','Attribute\x20\x27','groups,\x20causing\x20local/server\x20discrepancy.\x20For\x20same-attribute\x20Or\x20conditions,\x20','NESTED_CONDITION_GROUP','safeParse','rule','.operator.type','use\x20\x27In\x27\x20operator\x20instead:\x20operator:\x20{\x20type:\x20In,\x20value:\x20[\x22val1\x22,\x20\x22val2\x22]\x20}','custom','filter','push','INVALID_ARRAY_MATCHING','\x27\x20with\x20behavior\x20source\x20may\x20cause\x20unexpected\x20behavior.\x20','validationCode','Behavior'];a140_0x5be5=function(){return _0xcbd258;};return a140_0x5be5();}
@@ -1 +1 @@
1
- (function(_0x2e4489,_0x4b3e4a){const _0x2f6395=a141_0x299c,_0x750897=_0x2e4489();while(!![]){try{const _0x1d885e=-parseInt(_0x2f6395(0x15a))/0x1*(-parseInt(_0x2f6395(0x150))/0x2)+-parseInt(_0x2f6395(0x14b))/0x3+parseInt(_0x2f6395(0x12f))/0x4+-parseInt(_0x2f6395(0x14e))/0x5*(parseInt(_0x2f6395(0x156))/0x6)+-parseInt(_0x2f6395(0x13d))/0x7+parseInt(_0x2f6395(0x155))/0x8*(parseInt(_0x2f6395(0x144))/0x9)+-parseInt(_0x2f6395(0x142))/0xa*(-parseInt(_0x2f6395(0x12c))/0xb);if(_0x1d885e===_0x4b3e4a)break;else _0x750897['push'](_0x750897['shift']());}catch(_0x520748){_0x750897['push'](_0x750897['shift']());}}}(a141_0x1d14,0x5dad4));function a141_0x299c(_0x55a832,_0x33bb0b){_0x55a832=_0x55a832-0x12a;const _0x1d14ce=a141_0x1d14();let _0x299c0b=_0x1d14ce[_0x55a832];return _0x299c0b;}import a141_0x39ab1e 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(_0x3f4622){return _0x3f4622['type']!=='error';}export function isScopedResolution(_0xeb41d4){const _0x447617=a141_0x299c;return _0xeb41d4[_0x447617(0x133)]===_0x447617(0x14a)||_0xeb41d4[_0x447617(0x133)]===_0x447617(0x13f)||_0xeb41d4['type']===_0x447617(0x132);}export function getScopedDetails(_0x5ec37c){const _0x23f9ff=a141_0x299c;if(isScopedResolution(_0x5ec37c))return{'isScoped':_0x5ec37c['isScoped'],'scopedFolderPath':_0x5ec37c[_0x23f9ff(0x12b)]};return undefined;}async function findTdxConfigAsync(_0x276349,_0x470f8a){const _0x530096=a141_0x299c;let _0x4795a5=a141_0x39ab1e[_0x530096(0x15f)](_0x276349);const _0x3af36e=a141_0x39ab1e[_0x530096(0x154)](_0x4795a5)[_0x530096(0x130)];while(_0x4795a5!==_0x3af36e){const _0x382b2e=a141_0x39ab1e['join'](_0x4795a5,_0x530096(0x15d));if(await _0x470f8a['exists'](_0x382b2e))try{const _0x1ef89b=await _0x470f8a[_0x530096(0x160)](_0x382b2e),_0x20559b=JSON['parse'](_0x1ef89b);if(_0x20559b['parent_segment']&&typeof _0x20559b[_0x530096(0x13e)]===_0x530096(0x146))return{'configPath':_0x382b2e,'configDir':_0x4795a5,'parentSegment':_0x20559b[_0x530096(0x13e)]};}catch{}_0x4795a5=a141_0x39ab1e[_0x530096(0x149)](_0x4795a5);}return null;}function a141_0x1d14(){const _0x129c93=['configDir','6YzWgxH','invalid_yaml','parentSegment','tdx.json','startsWith','resolve','readFile','no_config','cwd','file_not_found','scopedFolderPath','413501HjRUVH','No\x20tdx.json\x20found','replace','1296108XhkQrV','root','isFile','context','type','trim','match','isScoped','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','extname','File\x20not\x20found','includes','File\x20not\x20found:\x20','resourceType','2635584tPGAfW','parent_segment','file','error','isDirectory','190okjfwV','Not\x20a\x20YAML\x20file:\x20','18QcbSIX','No\x20tdx.json\x20found\x20in\x20or\x20above:\x20','string','relative','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','dirname','directory','1861674dQmKfd','basename','message','880xrJfFV','folderPath','210526GEuSRX','no_parent','No\x20tdx.json\x20found\x20for\x20file:\x20','segmentName','parse','195424qVEWwB','11520xaBHhb','exists','journey'];a141_0x1d14=function(){return _0x129c93;};return a141_0x1d14();}function calculateScopedPath(_0x4bd728,_0x361070){const _0x2263b6=a141_0x299c,_0x21314e=a141_0x39ab1e[_0x2263b6(0x147)](_0x361070,_0x4bd728),_0x5f01a9=_0x21314e!==''&&_0x21314e!=='.'&&!_0x21314e[_0x2263b6(0x15e)]('..');return{'isScoped':_0x5f01a9,'scopedFolderPath':_0x5f01a9?_0x21314e[_0x2263b6(0x12e)](/\\/g,'/'):''};}export async function resolveTarget(_0x1615ea){const _0x52f413=a141_0x299c,{arg:_0x4cad24,contextParent:_0x4fd322,cwd:cwd=process[_0x52f413(0x162)](),fs:fs=nodeFileSystem}=_0x1615ea;if(_0x4cad24&&isYamlFilePath(_0x4cad24))try{const _0x30b5d2=await resolveYamlFilePath(_0x4cad24,fs),_0x552447=a141_0x39ab1e['resolve'](_0x4cad24),_0x53696f=a141_0x39ab1e[_0x52f413(0x149)](_0x552447),_0x4d2cd2=await findTdxConfigAsync(_0x53696f,fs);if(!_0x4d2cd2){if(_0x4fd322){const _0x5df6ef=a141_0x39ab1e['dirname'](_0x552447);return{'type':_0x52f413(0x13f),'parentName':_0x4fd322,'targetDir':_0x5df6ef,'configRoot':_0x5df6ef,'filePath':_0x552447,'resourceName':_0x30b5d2[_0x52f413(0x153)],'folderPath':_0x30b5d2[_0x52f413(0x14f)],'resourceType':_0x30b5d2[_0x52f413(0x13c)],'isScoped':![],'scopedFolderPath':''};}return{'type':_0x52f413(0x140),'errorCode':_0x52f413(0x161),'message':'No\x20tdx.json\x20found\x20for\x20file:\x20'+_0x4cad24,'arg':_0x4cad24,'helpText':_0x52f413(0x148)};}const _0x2b7d71=calculateScopedPath(_0x53696f,_0x4d2cd2[_0x52f413(0x159)]);return{'type':_0x52f413(0x13f),'parentName':_0x4d2cd2[_0x52f413(0x15c)],'targetDir':_0x4d2cd2['configDir'],'configRoot':_0x4d2cd2[_0x52f413(0x159)],'filePath':_0x552447,'resourceName':_0x30b5d2[_0x52f413(0x153)],'folderPath':_0x30b5d2[_0x52f413(0x14f)],'resourceType':_0x30b5d2[_0x52f413(0x13c)],'isScoped':_0x2b7d71['isScoped'],'scopedFolderPath':_0x2b7d71['scopedFolderPath']};}catch(_0x1f0ccd){const _0x2df452=_0x1f0ccd instanceof Error?_0x1f0ccd[_0x52f413(0x14d)]:String(_0x1f0ccd);if(_0x2df452[_0x52f413(0x13a)](_0x52f413(0x139)))return{'type':_0x52f413(0x140),'errorCode':_0x52f413(0x12a),'message':_0x52f413(0x13b)+_0x4cad24,'arg':_0x4cad24};if(_0x2df452[_0x52f413(0x13a)](_0x52f413(0x12d))){if(_0x4fd322){const _0x50b747=a141_0x39ab1e[_0x52f413(0x15f)](_0x4cad24);if(await fs[_0x52f413(0x157)](_0x50b747)){const _0x428e64=a141_0x39ab1e[_0x52f413(0x149)](_0x50b747),_0xe8f211=await fs['readFile'](_0x50b747),_0x51a639=_0xe8f211['match'](/^name:\s*["']?([^"'\n]+)["']?/m),_0x324e7e=_0xe8f211[_0x52f413(0x135)](/^type:\s*["']?([^"'\n]+)["']?/m),_0x5c51e3=_0x51a639?_0x51a639[0x1]['trim']():a141_0x39ab1e[_0x52f413(0x14c)](_0x4cad24,a141_0x39ab1e[_0x52f413(0x138)](_0x4cad24)),_0x4bdb3d=_0x324e7e&&_0x324e7e[0x1][_0x52f413(0x134)]()===_0x52f413(0x158)?_0x52f413(0x158):'segment';return{'type':_0x52f413(0x13f),'parentName':_0x4fd322,'targetDir':_0x428e64,'configRoot':_0x428e64,'filePath':_0x50b747,'resourceName':_0x5c51e3,'folderPath':'','resourceType':_0x4bdb3d,'isScoped':![],'scopedFolderPath':''};}}return{'type':_0x52f413(0x140),'errorCode':'no_config','message':_0x52f413(0x152)+_0x4cad24,'arg':_0x4cad24,'helpText':_0x52f413(0x148)};}return{'type':_0x52f413(0x140),'errorCode':_0x52f413(0x15b),'message':_0x2df452,'arg':_0x4cad24};}if(_0x4cad24){const _0x194372=a141_0x39ab1e[_0x52f413(0x15f)](cwd,_0x4cad24);let _0x47d0e0=null;try{_0x47d0e0=await fs['stat'](_0x194372);}catch{}if(_0x47d0e0?.[_0x52f413(0x141)]()){const _0x304d6e=await findTdxConfigAsync(_0x194372,fs);if(_0x304d6e){const _0x32516f=calculateScopedPath(_0x194372,_0x304d6e[_0x52f413(0x159)]);return{'type':_0x52f413(0x14a),'parentName':_0x304d6e[_0x52f413(0x15c)],'targetDir':_0x194372,'configRoot':_0x304d6e[_0x52f413(0x159)],'isScoped':_0x32516f[_0x52f413(0x136)],'scopedFolderPath':_0x32516f[_0x52f413(0x12b)]};}if(_0x4fd322)return{'type':_0x52f413(0x14a),'parentName':_0x4fd322,'targetDir':_0x194372,'configRoot':_0x194372,'isScoped':![],'scopedFolderPath':''};return{'type':_0x52f413(0x140),'errorCode':_0x52f413(0x161),'message':_0x52f413(0x145)+_0x4cad24,'arg':_0x4cad24,'helpText':'Tip:\x20Run\x20\x27tdx\x20sg\x20pull\x20<parent_name>\x27\x20first\x20to\x20create\x20the\x20folder\x20structure\x0a\x20\x20Or\x20set\x20context:\x20\x27tdx\x20sg\x20use\x20<parent_name>\x27'};}if(_0x47d0e0?.[_0x52f413(0x131)]())return{'type':_0x52f413(0x140),'errorCode':'invalid_yaml','message':_0x52f413(0x143)+_0x4cad24,'arg':_0x4cad24,'helpText':'Segment\x20and\x20journey\x20files\x20must\x20have\x20.yml\x20or\x20.yaml\x20extension'};const _0x27a6a7=sanitizeFileName(_0x4cad24),_0x2ae3d0=getSegmentRootDir(_0x27a6a7,cwd);return{'type':'parent_name','parentName':_0x4cad24,'targetDir':_0x2ae3d0,'configRoot':_0x2ae3d0};}const _0x4b793d=await findTdxConfigAsync(cwd,fs);if(_0x4b793d){const _0x1fb736=calculateScopedPath(cwd,_0x4b793d[_0x52f413(0x159)]);return{'type':'context','parentName':_0x4b793d[_0x52f413(0x15c)],'targetDir':cwd,'configRoot':_0x4b793d[_0x52f413(0x159)],'isScoped':_0x1fb736[_0x52f413(0x136)],'scopedFolderPath':_0x1fb736[_0x52f413(0x12b)]};}if(_0x4fd322){const _0x1f1adc=sanitizeFileName(_0x4fd322),_0x431f1a=getSegmentRootDir(_0x1f1adc,cwd);return{'type':_0x52f413(0x132),'parentName':_0x4fd322,'targetDir':_0x431f1a,'configRoot':_0x431f1a,'isScoped':![],'scopedFolderPath':''};}return{'type':_0x52f413(0x140),'errorCode':_0x52f413(0x151),'message':'Parent\x20segment\x20not\x20specified','helpText':_0x52f413(0x137)};}
1
+ function a141_0x4c66(_0x5a43bd,_0x134d8e){_0x5a43bd=_0x5a43bd-0x145;const _0x6b0176=a141_0x6b01();let _0x4c66c4=_0x6b0176[_0x5a43bd];return _0x4c66c4;}(function(_0x4fe652,_0x410cac){const _0x5a1988=a141_0x4c66,_0x307d32=_0x4fe652();while(!![]){try{const _0x1349da=parseInt(_0x5a1988(0x14a))/0x1*(parseInt(_0x5a1988(0x161))/0x2)+parseInt(_0x5a1988(0x176))/0x3*(-parseInt(_0x5a1988(0x17c))/0x4)+-parseInt(_0x5a1988(0x146))/0x5+parseInt(_0x5a1988(0x14c))/0x6+-parseInt(_0x5a1988(0x156))/0x7+-parseInt(_0x5a1988(0x149))/0x8+parseInt(_0x5a1988(0x154))/0x9;if(_0x1349da===_0x410cac)break;else _0x307d32['push'](_0x307d32['shift']());}catch(_0x566841){_0x307d32['push'](_0x307d32['shift']());}}}(a141_0x6b01,0xb1f7a));import a141_0x1e537e 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';function a141_0x6b01(){const _0xa12dda=['replace','parentSegment','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','Parent\x20segment\x20not\x20specified','File\x20not\x20found:\x20','parent_name','configDir','segmentName','tdx.json','type','match','file_not_found','dirname','39qZCLwv','isFile','resourceType','No\x20tdx.json\x20found','file','No\x20tdx.json\x20found\x20in\x20or\x20above:\x20','335324mWpxVI','resolve','1349665qqAcba','join','journey','10198968eapzuD','967kpvSaf','isScoped','4062282VfQcfy','basename','segment','readFile','folderPath','directory','File\x20not\x20found','Not\x20a\x20YAML\x20file:\x20','22526028RssbZq','extname','2579745zMYjtP','includes','root','parse','exists','stat','parent_segment','error','cwd','trim','No\x20tdx.json\x20found\x20for\x20file:\x20','1142wPfBsZ','message','no_config','invalid_yaml','relative','scopedFolderPath','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'];a141_0x6b01=function(){return _0xa12dda;};return a141_0x6b01();}export function isSuccessfulResolution(_0x5e7ede){const _0x4a83aa=a141_0x4c66;return _0x5e7ede[_0x4a83aa(0x172)]!=='error';}export function isScopedResolution(_0x2fb634){const _0xb6c502=a141_0x4c66;return _0x2fb634[_0xb6c502(0x172)]==='directory'||_0x2fb634[_0xb6c502(0x172)]===_0xb6c502(0x17a)||_0x2fb634['type']==='context';}export function getScopedDetails(_0x172120){const _0xc1efc6=a141_0x4c66;if(isScopedResolution(_0x172120))return{'isScoped':_0x172120['isScoped'],'scopedFolderPath':_0x172120[_0xc1efc6(0x166)]};return undefined;}async function findTdxConfigAsync(_0x30d73c,_0x3f27a7){const _0x49097e=a141_0x4c66;let _0x2b9d1b=a141_0x1e537e['resolve'](_0x30d73c);const _0x2b7944=a141_0x1e537e['parse'](_0x2b9d1b)[_0x49097e(0x158)];while(_0x2b9d1b!==_0x2b7944){const _0x4e3bdf=a141_0x1e537e[_0x49097e(0x147)](_0x2b9d1b,_0x49097e(0x171));if(await _0x3f27a7[_0x49097e(0x15a)](_0x4e3bdf))try{const _0x119f5f=await _0x3f27a7[_0x49097e(0x14f)](_0x4e3bdf),_0x15e011=JSON[_0x49097e(0x159)](_0x119f5f);if(_0x15e011[_0x49097e(0x15c)]&&typeof _0x15e011[_0x49097e(0x15c)]==='string')return{'configPath':_0x4e3bdf,'configDir':_0x2b9d1b,'parentSegment':_0x15e011[_0x49097e(0x15c)]};}catch{}_0x2b9d1b=a141_0x1e537e[_0x49097e(0x175)](_0x2b9d1b);}return null;}function calculateScopedPath(_0x3ea0f4,_0x22c303){const _0x537d5a=a141_0x4c66,_0x33e094=a141_0x1e537e[_0x537d5a(0x165)](_0x22c303,_0x3ea0f4),_0xaa13ec=_0x33e094!==''&&_0x33e094!=='.'&&!_0x33e094['startsWith']('..');return{'isScoped':_0xaa13ec,'scopedFolderPath':_0xaa13ec?_0x33e094[_0x537d5a(0x169)](/\\/g,'/'):''};}export async function resolveTarget(_0x3e6d54){const _0xc35f1e=a141_0x4c66,{arg:_0x40c361,contextParent:_0x111aa9,cwd:cwd=process[_0xc35f1e(0x15e)](),fs:fs=nodeFileSystem}=_0x3e6d54;if(_0x40c361&&isYamlFilePath(_0x40c361))try{const _0x1eefc6=await resolveYamlFilePath(_0x40c361,fs),_0x36771f=a141_0x1e537e[_0xc35f1e(0x145)](_0x40c361),_0x57f6c4=a141_0x1e537e[_0xc35f1e(0x175)](_0x36771f),_0x4eee6d=await findTdxConfigAsync(_0x57f6c4,fs);if(!_0x4eee6d){if(_0x111aa9){const _0x75074b=a141_0x1e537e[_0xc35f1e(0x175)](_0x36771f);return{'type':_0xc35f1e(0x17a),'parentName':_0x111aa9,'targetDir':_0x75074b,'configRoot':_0x75074b,'filePath':_0x36771f,'resourceName':_0x1eefc6[_0xc35f1e(0x170)],'folderPath':_0x1eefc6[_0xc35f1e(0x150)],'resourceType':_0x1eefc6['resourceType'],'isScoped':![],'scopedFolderPath':''};}return{'type':_0xc35f1e(0x15d),'errorCode':_0xc35f1e(0x163),'message':_0xc35f1e(0x160)+_0x40c361,'arg':_0x40c361,'helpText':_0xc35f1e(0x16b)};}const _0x1f1d48=calculateScopedPath(_0x57f6c4,_0x4eee6d[_0xc35f1e(0x16f)]);return{'type':'file','parentName':_0x4eee6d[_0xc35f1e(0x16a)],'targetDir':_0x4eee6d[_0xc35f1e(0x16f)],'configRoot':_0x4eee6d[_0xc35f1e(0x16f)],'filePath':_0x36771f,'resourceName':_0x1eefc6[_0xc35f1e(0x170)],'folderPath':_0x1eefc6[_0xc35f1e(0x150)],'resourceType':_0x1eefc6[_0xc35f1e(0x178)],'isScoped':_0x1f1d48[_0xc35f1e(0x14b)],'scopedFolderPath':_0x1f1d48[_0xc35f1e(0x166)]};}catch(_0x43450f){const _0x3638f5=_0x43450f instanceof Error?_0x43450f[_0xc35f1e(0x162)]:String(_0x43450f);if(_0x3638f5[_0xc35f1e(0x157)](_0xc35f1e(0x152)))return{'type':_0xc35f1e(0x15d),'errorCode':_0xc35f1e(0x174),'message':_0xc35f1e(0x16d)+_0x40c361,'arg':_0x40c361};if(_0x3638f5[_0xc35f1e(0x157)](_0xc35f1e(0x179))){if(_0x111aa9){const _0x3e542d=a141_0x1e537e[_0xc35f1e(0x145)](_0x40c361);if(await fs[_0xc35f1e(0x15a)](_0x3e542d)){const _0x381d48=a141_0x1e537e[_0xc35f1e(0x175)](_0x3e542d),_0x3ac05d=await fs['readFile'](_0x3e542d),_0x4c03f4=_0x3ac05d['match'](/^name:\s*["']?([^"'\n]+)["']?/m),_0x4dcc52=_0x3ac05d[_0xc35f1e(0x173)](/^type:\s*["']?([^"'\n]+)["']?/m),_0x41893a=_0x4c03f4?_0x4c03f4[0x1][_0xc35f1e(0x15f)]():a141_0x1e537e[_0xc35f1e(0x14d)](_0x40c361,a141_0x1e537e[_0xc35f1e(0x155)](_0x40c361)),_0x596fc9=_0x4dcc52&&_0x4dcc52[0x1]['trim']()===_0xc35f1e(0x148)?_0xc35f1e(0x148):_0xc35f1e(0x14e);return{'type':_0xc35f1e(0x17a),'parentName':_0x111aa9,'targetDir':_0x381d48,'configRoot':_0x381d48,'filePath':_0x3e542d,'resourceName':_0x41893a,'folderPath':'','resourceType':_0x596fc9,'isScoped':![],'scopedFolderPath':''};}}return{'type':_0xc35f1e(0x15d),'errorCode':_0xc35f1e(0x163),'message':_0xc35f1e(0x160)+_0x40c361,'arg':_0x40c361,'helpText':'Tip:\x20Run\x20\x27tdx\x20sg\x20pull\x20<parent_name>\x27\x20first\x20to\x20create\x20the\x20folder\x20structure\x0a\x20\x20Or\x20set\x20context:\x20\x27tdx\x20sg\x20use\x20<parent_name>\x27'};}return{'type':_0xc35f1e(0x15d),'errorCode':_0xc35f1e(0x164),'message':_0x3638f5,'arg':_0x40c361};}if(_0x40c361){const _0x95adeb=a141_0x1e537e[_0xc35f1e(0x145)](cwd,_0x40c361);let _0x4caa93=null;try{_0x4caa93=await fs[_0xc35f1e(0x15b)](_0x95adeb);}catch{}if(_0x4caa93?.['isDirectory']()){const _0x4d1e35=await findTdxConfigAsync(_0x95adeb,fs);if(_0x4d1e35){const _0x306e66=calculateScopedPath(_0x95adeb,_0x4d1e35[_0xc35f1e(0x16f)]);return{'type':_0xc35f1e(0x151),'parentName':_0x4d1e35[_0xc35f1e(0x16a)],'targetDir':_0x95adeb,'configRoot':_0x4d1e35[_0xc35f1e(0x16f)],'isScoped':_0x306e66[_0xc35f1e(0x14b)],'scopedFolderPath':_0x306e66[_0xc35f1e(0x166)]};}if(_0x111aa9)return{'type':'directory','parentName':_0x111aa9,'targetDir':_0x95adeb,'configRoot':_0x95adeb,'isScoped':![],'scopedFolderPath':''};return{'type':_0xc35f1e(0x15d),'errorCode':_0xc35f1e(0x163),'message':_0xc35f1e(0x17b)+_0x40c361,'arg':_0x40c361,'helpText':'Tip:\x20Run\x20\x27tdx\x20sg\x20pull\x20<parent_name>\x27\x20first\x20to\x20create\x20the\x20folder\x20structure\x0a\x20\x20Or\x20set\x20context:\x20\x27tdx\x20sg\x20use\x20<parent_name>\x27'};}if(_0x4caa93?.[_0xc35f1e(0x177)]())return{'type':_0xc35f1e(0x15d),'errorCode':_0xc35f1e(0x164),'message':_0xc35f1e(0x153)+_0x40c361,'arg':_0x40c361,'helpText':'Segment\x20and\x20journey\x20files\x20must\x20have\x20.yml\x20or\x20.yaml\x20extension'};const _0xb0c029=sanitizeFileName(_0x40c361),_0x3729ef=getSegmentRootDir(_0xb0c029,cwd);return{'type':_0xc35f1e(0x16e),'parentName':_0x40c361,'targetDir':_0x3729ef,'configRoot':_0x3729ef};}const _0x27c119=await findTdxConfigAsync(cwd,fs);if(_0x27c119){const _0x1d549f=calculateScopedPath(cwd,_0x27c119[_0xc35f1e(0x16f)]);return{'type':_0xc35f1e(0x168),'parentName':_0x27c119[_0xc35f1e(0x16a)],'targetDir':cwd,'configRoot':_0x27c119[_0xc35f1e(0x16f)],'isScoped':_0x1d549f['isScoped'],'scopedFolderPath':_0x1d549f[_0xc35f1e(0x166)]};}if(_0x111aa9){const _0x1d61be=sanitizeFileName(_0x111aa9),_0x21b9c8=getSegmentRootDir(_0x1d61be,cwd);return{'type':_0xc35f1e(0x168),'parentName':_0x111aa9,'targetDir':_0x21b9c8,'configRoot':_0x21b9c8,'isScoped':![],'scopedFolderPath':''};}return{'type':'error','errorCode':'no_parent','message':_0xc35f1e(0x16c),'helpText':_0xc35f1e(0x167)};}
@@ -1 +1 @@
1
- function a142_0x4cb7(_0x4100db,_0x52cb94){_0x4100db=_0x4100db-0x195;const _0x308e83=a142_0x308e();let _0x4cb7f0=_0x308e83[_0x4100db];return _0x4cb7f0;}const a142_0x2beede=a142_0x4cb7;(function(_0x5d5092,_0x7f2e90){const _0x17ce8c=a142_0x4cb7,_0x4c0bce=_0x5d5092();while(!![]){try{const _0x379e58=parseInt(_0x17ce8c(0x199))/0x1+-parseInt(_0x17ce8c(0x1aa))/0x2+-parseInt(_0x17ce8c(0x1b0))/0x3+parseInt(_0x17ce8c(0x19d))/0x4+parseInt(_0x17ce8c(0x1a9))/0x5*(parseInt(_0x17ce8c(0x1ad))/0x6)+-parseInt(_0x17ce8c(0x1a2))/0x7*(parseInt(_0x17ce8c(0x1b1))/0x8)+-parseInt(_0x17ce8c(0x1a5))/0x9;if(_0x379e58===_0x7f2e90)break;else _0x4c0bce['push'](_0x4c0bce['shift']());}catch(_0x4b5f27){_0x4c0bce['push'](_0x4c0bce['shift']());}}}(a142_0x308e,0xce2e4));import{existsSync,readFileSync}from'fs';import a142_0x311d30 from'path';const TDX_CONFIG_FILE=a142_0x2beede(0x1b2),SEGMENTS_DIR=a142_0x2beede(0x19e);export function findTdxConfigPath(_0x27a8b9=process[a142_0x2beede(0x1af)]()){const _0x527866=a142_0x2beede;let _0x424ede=a142_0x311d30[_0x527866(0x1ac)](_0x27a8b9);const _0x5405fa=a142_0x311d30[_0x527866(0x19b)](_0x424ede)[_0x527866(0x1a4)];while(_0x424ede!==_0x5405fa){const _0x5dff3d=a142_0x311d30[_0x527866(0x1a1)](_0x424ede,TDX_CONFIG_FILE);if(existsSync(_0x5dff3d))return _0x5dff3d;_0x424ede=a142_0x311d30[_0x527866(0x19c)](_0x424ede);}return null;}export function loadTdxConfig(_0x1f1b57){const _0x54e32b=a142_0x2beede,_0x364aed=readFileSync(_0x1f1b57,_0x54e32b(0x195));let _0x4797ab;try{_0x4797ab=JSON[_0x54e32b(0x19b)](_0x364aed);}catch{throw new Error(_0x54e32b(0x196)+_0x1f1b57);}if(!_0x4797ab||typeof _0x4797ab!==_0x54e32b(0x198))throw new Error(_0x54e32b(0x19a));const _0x2f9c5a=_0x4797ab,_0x457692=_0x2f9c5a[_0x54e32b(0x19f)]&&typeof _0x2f9c5a[_0x54e32b(0x19f)]===_0x54e32b(0x197),_0x583062=_0x2f9c5a[_0x54e32b(0x1a7)]&&typeof _0x2f9c5a[_0x54e32b(0x1a7)]===_0x54e32b(0x197);if(!_0x457692&&!_0x583062)throw new Error(_0x54e32b(0x1a0));const _0xc71b9f={};return _0x457692&&(_0xc71b9f[_0x54e32b(0x19f)]=_0x2f9c5a[_0x54e32b(0x19f)]),_0x583062&&(_0xc71b9f['engage_workspace']=_0x2f9c5a['engage_workspace']),_0xc71b9f;}export function findTdxConfig(_0x73da2f=process[a142_0x2beede(0x1af)]()){const _0xa5d1a5=a142_0x2beede,_0x3978ed=findTdxConfigPath(_0x73da2f);if(!_0x3978ed)throw new Error(_0xa5d1a5(0x1ab));const _0x21e0ee=loadTdxConfig(_0x3978ed),_0x3a6505=a142_0x311d30[_0xa5d1a5(0x19c)](_0x3978ed);return{'config':_0x21e0ee,'configPath':_0x3978ed,'configDir':_0x3a6505};}export function tryFindTdxConfig(_0x486648){try{return findTdxConfig(_0x486648);}catch{return null;}}export function getSegmentRootDir(_0x1510d5,_0x5192ba=process[a142_0x2beede(0x1af)]()){return a142_0x311d30['join'](_0x5192ba,SEGMENTS_DIR,_0x1510d5);}export function getTdxConfigPath(_0x59d428,_0x159121=process[a142_0x2beede(0x1af)]()){const _0x2181d3=a142_0x2beede;return a142_0x311d30[_0x2181d3(0x1a1)](getSegmentRootDir(_0x59d428,_0x159121),TDX_CONFIG_FILE);}export function getRelativePathFromConfig(_0x39e569,_0x76b5e1){const _0x3efc12=a142_0x2beede,_0x3bf5d0=a142_0x311d30[_0x3efc12(0x1ac)](_0x39e569),_0x69b858=a142_0x311d30[_0x3efc12(0x1a8)](_0x76b5e1,_0x3bf5d0);if(_0x69b858[_0x3efc12(0x1a3)]('..'))return'';return _0x69b858;}export function localPathToTdFolderPath(_0x5b4c09){const _0xa31f5f=a142_0x2beede,_0x48768b=a142_0x311d30['dirname'](_0x5b4c09);if(_0x48768b==='.'||_0x48768b==='')return'';return _0x48768b[_0xa31f5f(0x1a6)](/\\/g,'/');}export function tdFolderPathToLocalPath(_0x4d074b,_0x3997a3){if(!_0x4d074b)return _0x3997a3;return a142_0x311d30['join'](_0x3997a3,_0x4d074b);}export function createTdxConfigContent(_0x3048ff){const _0x46ad51={'parent_segment':_0x3048ff};return JSON['stringify'](_0x46ad51,null,0x2)+'\x0a';}function a142_0x308e(){const _0xb93b90=['stringify','cwd','1470882svUBLy','32728SOAODw','tdx.json','utf-8','Invalid\x20JSON\x20in\x20','string','object','926859opryxh','Invalid\x20tdx.json:\x20expected\x20object','parse','dirname','6736488sUmHMo','segments','parent_segment','Invalid\x20tdx.json:\x20must\x20contain\x20\x27parent_segment\x27\x20or\x20\x27engage_workspace\x27\x20field','join','511LGHTor','startsWith','root','6323562mznBvm','replace','engage_workspace','relative','55cCRfFf','2016846ZqGLyq','No\x20tdx.json\x20found.\x20Please\x20run\x20\x27tdx\x20sg\x20pull\x20<parent_segment>\x27\x20first\x20to\x20create\x20the\x20folder\x20structure.','resolve','400098bnZwVA'];a142_0x308e=function(){return _0xb93b90;};return a142_0x308e();}export function createEngageTdxConfigContent(_0x3c18a5){const _0x44ae30=a142_0x2beede,_0x2684c8={'engage_workspace':_0x3c18a5};return JSON[_0x44ae30(0x1ae)](_0x2684c8,null,0x2)+'\x0a';}
1
+ const a142_0x538970=a142_0x5092;(function(_0x34dbf1,_0x23e8ba){const _0x24b986=a142_0x5092,_0x43d6e4=_0x34dbf1();while(!![]){try{const _0x23458e=-parseInt(_0x24b986(0x1ca))/0x1+-parseInt(_0x24b986(0x1d2))/0x2+-parseInt(_0x24b986(0x1d1))/0x3*(-parseInt(_0x24b986(0x1de))/0x4)+-parseInt(_0x24b986(0x1e1))/0x5+-parseInt(_0x24b986(0x1da))/0x6*(-parseInt(_0x24b986(0x1d0))/0x7)+-parseInt(_0x24b986(0x1e0))/0x8*(-parseInt(_0x24b986(0x1ce))/0x9)+-parseInt(_0x24b986(0x1d9))/0xa*(parseInt(_0x24b986(0x1db))/0xb);if(_0x23458e===_0x23e8ba)break;else _0x43d6e4['push'](_0x43d6e4['shift']());}catch(_0x5b048a){_0x43d6e4['push'](_0x43d6e4['shift']());}}}(a142_0x23ff,0x92001));function a142_0x5092(_0x4390d8,_0x5b8237){_0x4390d8=_0x4390d8-0x1c3;const _0x23ff39=a142_0x23ff();let _0x5092ed=_0x23ff39[_0x4390d8];return _0x5092ed;}import{existsSync,readFileSync}from'fs';import a142_0x44ecf5 from'path';const TDX_CONFIG_FILE=a142_0x538970(0x1d5),SEGMENTS_DIR=a142_0x538970(0x1c3);export function findTdxConfigPath(_0xd4b381=process['cwd']()){const _0x4841de=a142_0x538970;let _0x459789=a142_0x44ecf5[_0x4841de(0x1d3)](_0xd4b381);const _0x512615=a142_0x44ecf5[_0x4841de(0x1cd)](_0x459789)[_0x4841de(0x1cb)];while(_0x459789!==_0x512615){const _0x56511f=a142_0x44ecf5['join'](_0x459789,TDX_CONFIG_FILE);if(existsSync(_0x56511f))return _0x56511f;_0x459789=a142_0x44ecf5[_0x4841de(0x1c7)](_0x459789);}return null;}export function loadTdxConfig(_0x329d1e){const _0xceab37=a142_0x538970,_0x50a595=readFileSync(_0x329d1e,_0xceab37(0x1d4));let _0x242af2;try{_0x242af2=JSON['parse'](_0x50a595);}catch{throw new Error(_0xceab37(0x1cc)+_0x329d1e);}if(!_0x242af2||typeof _0x242af2!==_0xceab37(0x1c4))throw new Error(_0xceab37(0x1d6));const _0x43af74=_0x242af2,_0x3804a9=_0x43af74[_0xceab37(0x1dc)]&&typeof _0x43af74[_0xceab37(0x1dc)]==='string',_0x489e52=_0x43af74[_0xceab37(0x1cf)]&&typeof _0x43af74[_0xceab37(0x1cf)]===_0xceab37(0x1c8);if(!_0x3804a9&&!_0x489e52)throw new Error(_0xceab37(0x1d7));const _0x2788c8={};return _0x3804a9&&(_0x2788c8[_0xceab37(0x1dc)]=_0x43af74[_0xceab37(0x1dc)]),_0x489e52&&(_0x2788c8[_0xceab37(0x1cf)]=_0x43af74[_0xceab37(0x1cf)]),_0x2788c8;}export function findTdxConfig(_0x1349d1=process['cwd']()){const _0x4ef5fe=a142_0x538970,_0x47d088=findTdxConfigPath(_0x1349d1);if(!_0x47d088)throw new Error(_0x4ef5fe(0x1c9));const _0x4aab45=loadTdxConfig(_0x47d088),_0x1502c2=a142_0x44ecf5[_0x4ef5fe(0x1c7)](_0x47d088);return{'config':_0x4aab45,'configPath':_0x47d088,'configDir':_0x1502c2};}function a142_0x23ff(){const _0x199ca1=['186qWzVpN','1177zEmppK','parent_segment','join','344528kUdyfN','startsWith','8LIFhDI','1627885sEzOEu','segments','object','stringify','replace','dirname','string','No\x20tdx.json\x20found.\x20Please\x20run\x20\x27tdx\x20sg\x20pull\x20<parent_segment>\x27\x20first\x20to\x20create\x20the\x20folder\x20structure.','1012289ZUxYJz','root','Invalid\x20JSON\x20in\x20','parse','9449595fGWOxt','engage_workspace','89320XFdBOY','39BUqNmF','1121094NilULl','resolve','utf-8','tdx.json','Invalid\x20tdx.json:\x20expected\x20object','Invalid\x20tdx.json:\x20must\x20contain\x20\x27parent_segment\x27\x20or\x20\x27engage_workspace\x27\x20field','cwd','6430joGUVy'];a142_0x23ff=function(){return _0x199ca1;};return a142_0x23ff();}export function tryFindTdxConfig(_0x4e3ed8){try{return findTdxConfig(_0x4e3ed8);}catch{return null;}}export function getSegmentRootDir(_0x4b94be,_0x4e4834=process[a142_0x538970(0x1d8)]()){const _0x2eaca5=a142_0x538970;return a142_0x44ecf5[_0x2eaca5(0x1dd)](_0x4e4834,SEGMENTS_DIR,_0x4b94be);}export function getTdxConfigPath(_0x345562,_0x222713=process[a142_0x538970(0x1d8)]()){return a142_0x44ecf5['join'](getSegmentRootDir(_0x345562,_0x222713),TDX_CONFIG_FILE);}export function getRelativePathFromConfig(_0x1e3c8b,_0x3af905){const _0x2a4af4=a142_0x538970,_0x34ab27=a142_0x44ecf5[_0x2a4af4(0x1d3)](_0x1e3c8b),_0x39d41c=a142_0x44ecf5['relative'](_0x3af905,_0x34ab27);if(_0x39d41c[_0x2a4af4(0x1df)]('..'))return'';return _0x39d41c;}export function localPathToTdFolderPath(_0x4f5029){const _0x2ed36a=a142_0x538970,_0x50d05f=a142_0x44ecf5[_0x2ed36a(0x1c7)](_0x4f5029);if(_0x50d05f==='.'||_0x50d05f==='')return'';return _0x50d05f[_0x2ed36a(0x1c6)](/\\/g,'/');}export function tdFolderPathToLocalPath(_0x39a57e,_0x53bcb9){if(!_0x39a57e)return _0x53bcb9;return a142_0x44ecf5['join'](_0x53bcb9,_0x39a57e);}export function createTdxConfigContent(_0x56f903){const _0x2930e5=a142_0x538970,_0x2eac41={'parent_segment':_0x56f903};return JSON[_0x2930e5(0x1c5)](_0x2eac41,null,0x2)+'\x0a';}export function createEngageTdxConfigContent(_0x511adf){const _0x4379bc={'engage_workspace':_0x511adf};return JSON['stringify'](_0x4379bc,null,0x2)+'\x0a';}
@@ -1 +1 @@
1
- const a143_0x21dc03=a143_0xb078;(function(_0x49ba8a,_0x258a6a){const _0x1f3cc7=a143_0xb078,_0x11e2c1=_0x49ba8a();while(!![]){try{const _0x3e61e1=parseInt(_0x1f3cc7(0xf1))/0x1*(-parseInt(_0x1f3cc7(0x106))/0x2)+parseInt(_0x1f3cc7(0xf2))/0x3+-parseInt(_0x1f3cc7(0xf9))/0x4+-parseInt(_0x1f3cc7(0xe6))/0x5+parseInt(_0x1f3cc7(0xf4))/0x6*(parseInt(_0x1f3cc7(0xe8))/0x7)+parseInt(_0x1f3cc7(0xf7))/0x8*(parseInt(_0x1f3cc7(0x10b))/0x9)+parseInt(_0x1f3cc7(0xf6))/0xa;if(_0x3e61e1===_0x258a6a)break;else _0x11e2c1['push'](_0x11e2c1['shift']());}catch(_0x4bbddf){_0x11e2c1['push'](_0x11e2c1['shift']());}}}(a143_0x4475,0xa358b));import{z}from'zod';export const ScheduleTypeSchema=z[a143_0x21dc03(0xfa)](['none',a143_0x21dc03(0xe4),a143_0x21dc03(0xea),a143_0x21dc03(0x101),a143_0x21dc03(0x107),a143_0x21dc03(0xee),'minutes_interval']);export const RepeatUnitSchema=z['enum'](['minute',a143_0x21dc03(0xf8),a143_0x21dc03(0x104),a143_0x21dc03(0xed),a143_0x21dc03(0x109),a143_0x21dc03(0xfb),a143_0x21dc03(0xec)]);function a143_0x4475(){const _0x1667ab=['object','cols','weekly','unknown','masked','day','clear','1066486UGHmaC','monthly','onFailure','month','array','1238283EmrtnS','hourly','number','2492210jnuoSf','boolean','21poaSZd','string','daily','asc','none','week','cron','optional','nullable','2HtXbJF','1660086QLbiqe','Top-N','1479594pIwmJb','desc','11974950AiFWWq','56WSMXvN','hour','4879072DsDwLM','enum','once','Connection\x20name\x20is\x20required','record','rows'];a143_0x4475=function(){return _0x1667ab;};return a143_0x4475();}export const ScheduleDefSchema=z['object']({'type':ScheduleTypeSchema['optional'](),'repeat_unit':RepeatUnitSchema[a143_0x21dc03(0xef)](),'repeat_frequency':z[a143_0x21dc03(0xe5)]()[a143_0x21dc03(0xef)](),'repeat_sub_frequency':z[a143_0x21dc03(0x10a)](z[a143_0x21dc03(0xe5)]())[a143_0x21dc03(0xef)](),'start_at':z[a143_0x21dc03(0xe9)]()['nullable']()[a143_0x21dc03(0xef)](),'end_on':z[a143_0x21dc03(0xe9)]()[a143_0x21dc03(0xf0)]()[a143_0x21dc03(0xef)](),'timezone':z[a143_0x21dc03(0xe9)]()[a143_0x21dc03(0xef)]()});export const NotificationDefSchema=z[a143_0x21dc03(0xff)]({'notify_on':z[a143_0x21dc03(0x10a)](z[a143_0x21dc03(0xfa)](['onSuccess',a143_0x21dc03(0x108)]))[a143_0x21dc03(0xef)](),'email_recipients':z[a143_0x21dc03(0x10a)](z[a143_0x21dc03(0xe9)]())['optional']()});export const ActivationColumnDefSchema=z['union']([z[a143_0x21dc03(0xe9)](),z[a143_0x21dc03(0xff)]({'name':z[a143_0x21dc03(0xe9)](),'type':z[a143_0x21dc03(0xe9)]()[a143_0x21dc03(0xef)](),'visibility':z[a143_0x21dc03(0xfa)]([a143_0x21dc03(0x105),a143_0x21dc03(0x103)])[a143_0x21dc03(0xef)]()})]);export const ActivationBehaviorDefSchema=z[a143_0x21dc03(0xff)]({'columns':z[a143_0x21dc03(0x10a)](z[a143_0x21dc03(0xff)]({'name':z[a143_0x21dc03(0xe9)](),'type':z['string']()[a143_0x21dc03(0xef)](),'visibility':z[a143_0x21dc03(0xfa)]([a143_0x21dc03(0x105),a143_0x21dc03(0x103)])[a143_0x21dc03(0xef)]()}))[a143_0x21dc03(0xef)](),'behavior_table':z[a143_0x21dc03(0xe9)]()[a143_0x21dc03(0xef)](),'join_row':z['number']()['nullable']()['optional'](),'join_strategy':z['enum'](['All','First','Last',a143_0x21dc03(0xf3)])['optional'](),'formatting':z['enum']([a143_0x21dc03(0xfe),a143_0x21dc03(0x100)])['optional'](),'order_by':z[a143_0x21dc03(0x10a)](z[a143_0x21dc03(0xff)]({'key':z[a143_0x21dc03(0xe9)](),'order':z[a143_0x21dc03(0xfa)]([a143_0x21dc03(0xeb),a143_0x21dc03(0xf5)])}))[a143_0x21dc03(0xef)]()});function a143_0xb078(_0x3bac6e,_0x281ac6){_0x3bac6e=_0x3bac6e-0xe4;const _0x4475f0=a143_0x4475();let _0xb07853=_0x4475f0[_0x3bac6e];return _0xb07853;}export const ActivationDefSchema=z['object']({'name':z['string']()['min'](0x1,'Activation\x20name\x20is\x20required'),'description':z[a143_0x21dc03(0xe9)]()[a143_0x21dc03(0xef)](),'connection':z['string']()['min'](0x1,a143_0x21dc03(0xfc)),'all_columns':z[a143_0x21dc03(0xe7)]()[a143_0x21dc03(0xef)](),'columns':z[a143_0x21dc03(0x10a)](ActivationColumnDefSchema)[a143_0x21dc03(0xef)](),'schedule':ScheduleDefSchema['optional'](),'notification':NotificationDefSchema[a143_0x21dc03(0xef)](),'connector_config':z[a143_0x21dc03(0xfd)](z[a143_0x21dc03(0xe9)](),z[a143_0x21dc03(0x102)]())[a143_0x21dc03(0xef)](),'activation_template_id':z[a143_0x21dc03(0xe9)]()['nullable']()[a143_0x21dc03(0xef)](),'behavior':ActivationBehaviorDefSchema['nullable']()[a143_0x21dc03(0xef)](),'run_after_journey_refresh':z[a143_0x21dc03(0xe7)]()[a143_0x21dc03(0xef)]()});
1
+ const a143_0xab9d93=a143_0x50dd;(function(_0x556658,_0x46e980){const _0x3b95c9=a143_0x50dd,_0x50b6f4=_0x556658();while(!![]){try{const _0x22ab2d=-parseInt(_0x3b95c9(0x166))/0x1+-parseInt(_0x3b95c9(0x15d))/0x2+-parseInt(_0x3b95c9(0x16a))/0x3*(parseInt(_0x3b95c9(0x156))/0x4)+-parseInt(_0x3b95c9(0x15f))/0x5*(parseInt(_0x3b95c9(0x155))/0x6)+parseInt(_0x3b95c9(0x170))/0x7*(-parseInt(_0x3b95c9(0x15c))/0x8)+-parseInt(_0x3b95c9(0x177))/0x9*(parseInt(_0x3b95c9(0x16b))/0xa)+parseInt(_0x3b95c9(0x164))/0xb;if(_0x22ab2d===_0x46e980)break;else _0x50b6f4['push'](_0x50b6f4['shift']());}catch(_0x1bd0c8){_0x50b6f4['push'](_0x50b6f4['shift']());}}}(a143_0xaf30,0x9ee69));import{z}from'zod';export const ScheduleTypeSchema=z[a143_0xab9d93(0x151)]([a143_0xab9d93(0x16d),a143_0xab9d93(0x163),a143_0xab9d93(0x173),'weekly','monthly',a143_0xab9d93(0x159),a143_0xab9d93(0x16e)]);export const RepeatUnitSchema=z[a143_0xab9d93(0x151)]([a143_0xab9d93(0x154),a143_0xab9d93(0x15a),a143_0xab9d93(0x161),'week',a143_0xab9d93(0x14f),a143_0xab9d93(0x150),'none']);export const ScheduleDefSchema=z[a143_0xab9d93(0x171)]({'type':ScheduleTypeSchema[a143_0xab9d93(0x17a)](),'repeat_unit':RepeatUnitSchema[a143_0xab9d93(0x17a)](),'repeat_frequency':z['number']()['optional'](),'repeat_sub_frequency':z['array'](z[a143_0xab9d93(0x175)]())[a143_0xab9d93(0x17a)](),'start_at':z['string']()[a143_0xab9d93(0x179)]()[a143_0xab9d93(0x17a)](),'end_on':z[a143_0xab9d93(0x167)]()[a143_0xab9d93(0x179)]()[a143_0xab9d93(0x17a)](),'timezone':z[a143_0xab9d93(0x167)]()[a143_0xab9d93(0x17a)]()});function a143_0xaf30(){const _0x1af862=['Last','All','cron','hour','cols','8fzmqLj','2513728qyNHGn','onFailure','2902745pgzljH','clear','day','masked','hourly','49591531sYmgYk','array','561430lphuLM','string','First','Top-N','81BdGhFN','199530tijwSc','rows','none','minutes_interval','Activation\x20name\x20is\x20required','6451326hYScla','object','desc','daily','Connection\x20name\x20is\x20required','number','union','81apiXEK','boolean','nullable','optional','unknown','month','once','enum','onSuccess','record','minute','6FVudXx','52952sNtXKo'];a143_0xaf30=function(){return _0x1af862;};return a143_0xaf30();}export const NotificationDefSchema=z['object']({'notify_on':z[a143_0xab9d93(0x165)](z[a143_0xab9d93(0x151)]([a143_0xab9d93(0x152),a143_0xab9d93(0x15e)]))[a143_0xab9d93(0x17a)](),'email_recipients':z[a143_0xab9d93(0x165)](z[a143_0xab9d93(0x167)]())[a143_0xab9d93(0x17a)]()});export const ActivationColumnDefSchema=z[a143_0xab9d93(0x176)]([z[a143_0xab9d93(0x167)](),z[a143_0xab9d93(0x171)]({'name':z[a143_0xab9d93(0x167)](),'type':z['string']()[a143_0xab9d93(0x17a)](),'visibility':z[a143_0xab9d93(0x151)]([a143_0xab9d93(0x160),a143_0xab9d93(0x162)])[a143_0xab9d93(0x17a)]()})]);export const ActivationBehaviorDefSchema=z['object']({'columns':z[a143_0xab9d93(0x165)](z[a143_0xab9d93(0x171)]({'name':z[a143_0xab9d93(0x167)](),'type':z[a143_0xab9d93(0x167)]()['optional'](),'visibility':z['enum']([a143_0xab9d93(0x160),a143_0xab9d93(0x162)])[a143_0xab9d93(0x17a)]()}))['optional'](),'behavior_table':z['string']()[a143_0xab9d93(0x17a)](),'join_row':z[a143_0xab9d93(0x175)]()[a143_0xab9d93(0x179)]()[a143_0xab9d93(0x17a)](),'join_strategy':z[a143_0xab9d93(0x151)]([a143_0xab9d93(0x158),a143_0xab9d93(0x168),a143_0xab9d93(0x157),a143_0xab9d93(0x169)])['optional'](),'formatting':z['enum']([a143_0xab9d93(0x16c),a143_0xab9d93(0x15b)])[a143_0xab9d93(0x17a)](),'order_by':z['array'](z['object']({'key':z[a143_0xab9d93(0x167)](),'order':z[a143_0xab9d93(0x151)](['asc',a143_0xab9d93(0x172)])}))['optional']()});function a143_0x50dd(_0x33bf39,_0x25afe8){_0x33bf39=_0x33bf39-0x14e;const _0xaf30ee=a143_0xaf30();let _0x50dd0e=_0xaf30ee[_0x33bf39];return _0x50dd0e;}export const ActivationDefSchema=z[a143_0xab9d93(0x171)]({'name':z[a143_0xab9d93(0x167)]()['min'](0x1,a143_0xab9d93(0x16f)),'description':z['string']()[a143_0xab9d93(0x17a)](),'connection':z[a143_0xab9d93(0x167)]()['min'](0x1,a143_0xab9d93(0x174)),'all_columns':z[a143_0xab9d93(0x178)]()[a143_0xab9d93(0x17a)](),'columns':z['array'](ActivationColumnDefSchema)[a143_0xab9d93(0x17a)](),'schedule':ScheduleDefSchema[a143_0xab9d93(0x17a)](),'notification':NotificationDefSchema[a143_0xab9d93(0x17a)](),'connector_config':z[a143_0xab9d93(0x153)](z[a143_0xab9d93(0x167)](),z[a143_0xab9d93(0x14e)]())[a143_0xab9d93(0x17a)](),'activation_template_id':z[a143_0xab9d93(0x167)]()['nullable']()[a143_0xab9d93(0x17a)](),'behavior':ActivationBehaviorDefSchema['nullable']()[a143_0xab9d93(0x17a)](),'run_after_journey_refresh':z[a143_0xab9d93(0x178)]()[a143_0xab9d93(0x17a)]()});
@@ -1 +1 @@
1
- function a144_0x3034(_0x324f8f,_0x5d7e1b){_0x324f8f=_0x324f8f-0x178;var _0x3b98cc=a144_0x3b98();var _0x30349d=_0x3b98cc[_0x324f8f];return _0x30349d;}function a144_0x3b98(){var _0x519a63=['10610wTiowm','207NKrQEV','71964VeYuni','41655AHnzMU','2020396xIxOES','1824528OtQXbS','27188FDshAP','22evvRGK','97WCuzdh','354wIcVLZ','1233slKUll','4258PeTeKX'];a144_0x3b98=function(){return _0x519a63;};return a144_0x3b98();}(function(_0x6f8b0f,_0x1e43dc){var _0x1c6f65=a144_0x3034,_0x13bd1f=_0x6f8b0f();while(!![]){try{var _0x35b7ba=-parseInt(_0x1c6f65(0x17c))/0x1*(-parseInt(_0x1c6f65(0x17f))/0x2)+parseInt(_0x1c6f65(0x181))/0x3*(parseInt(_0x1c6f65(0x17a))/0x4)+-parseInt(_0x1c6f65(0x183))/0x5*(parseInt(_0x1c6f65(0x17d))/0x6)+-parseInt(_0x1c6f65(0x178))/0x7+parseInt(_0x1c6f65(0x179))/0x8+-parseInt(_0x1c6f65(0x17e))/0x9*(-parseInt(_0x1c6f65(0x180))/0xa)+-parseInt(_0x1c6f65(0x17b))/0xb*(parseInt(_0x1c6f65(0x182))/0xc);if(_0x35b7ba===_0x1e43dc)break;else _0x13bd1f['push'](_0x13bd1f['shift']());}catch(_0x48ae84){_0x13bd1f['push'](_0x13bd1f['shift']());}}}(a144_0x3b98,0x3eb0a));export{JourneyStateTypeSchema,ReentryModeTypeSchema,WaitUnitTypeSchema,StepTypeValueSchema,EmbeddedSegmentDefSchema,CriteriaDefSchema,StepDefSchema,StageDefSchema,JourneyEntryDefSchema,JourneyDefSchema}from'./journey-schema.js';
1
+ function a144_0x44fa(){var _0x4487b4=['1041209oGTiPO','40TYFpsU','11323926nlxNWw','77EfQDpi','710847HvEfBl','3374666VLgfGc','612216RMOEvP','215plnDEg','31700xUArTn','4620717uIbwoH'];a144_0x44fa=function(){return _0x4487b4;};return a144_0x44fa();}function a144_0xabc6(_0x2e35eb,_0x1e6179){_0x2e35eb=_0x2e35eb-0xea;var _0x44fa87=a144_0x44fa();var _0xabc66=_0x44fa87[_0x2e35eb];return _0xabc66;}(function(_0x554af3,_0x30dee5){var _0x37ad2f=a144_0xabc6,_0x3d3c6a=_0x554af3();while(!![]){try{var _0x49849e=-parseInt(_0x37ad2f(0xf2))/0x1+-parseInt(_0x37ad2f(0xed))/0x2+parseInt(_0x37ad2f(0xec))/0x3+-parseInt(_0x37ad2f(0xf0))/0x4*(-parseInt(_0x37ad2f(0xef))/0x5)+parseInt(_0x37ad2f(0xea))/0x6+-parseInt(_0x37ad2f(0xeb))/0x7*(parseInt(_0x37ad2f(0xee))/0x8)+-parseInt(_0x37ad2f(0xf1))/0x9*(-parseInt(_0x37ad2f(0xf3))/0xa);if(_0x49849e===_0x30dee5)break;else _0x3d3c6a['push'](_0x3d3c6a['shift']());}catch(_0x1ee54d){_0x3d3c6a['push'](_0x3d3c6a['shift']());}}}(a144_0x44fa,0xe7886));export{JourneyStateTypeSchema,ReentryModeTypeSchema,WaitUnitTypeSchema,StepTypeValueSchema,EmbeddedSegmentDefSchema,CriteriaDefSchema,StepDefSchema,StageDefSchema,JourneyEntryDefSchema,JourneyDefSchema}from'./journey-schema.js';
@@ -1 +1 @@
1
- const a145_0x253ec9=a145_0x1bb6;function a145_0x1bb6(_0x529d49,_0x49bc69){_0x529d49=_0x529d49-0x83;const _0x2a2844=a145_0x2a28();let _0x1bb67e=_0x2a2844[_0x529d49];return _0x1bb67e;}(function(_0x179237,_0x4235d5){const _0x449348=a145_0x1bb6,_0x4be1b7=_0x179237();while(!![]){try{const _0x5a3e3a=-parseInt(_0x449348(0xa8))/0x1*(parseInt(_0x449348(0xaa))/0x2)+parseInt(_0x449348(0x92))/0x3*(parseInt(_0x449348(0xaf))/0x4)+-parseInt(_0x449348(0xac))/0x5*(parseInt(_0x449348(0x8c))/0x6)+-parseInt(_0x449348(0xa1))/0x7*(-parseInt(_0x449348(0xa0))/0x8)+-parseInt(_0x449348(0x84))/0x9*(-parseInt(_0x449348(0x8d))/0xa)+parseInt(_0x449348(0x98))/0xb+-parseInt(_0x449348(0xad))/0xc;if(_0x5a3e3a===_0x4235d5)break;else _0x4be1b7['push'](_0x4be1b7['shift']());}catch(_0x2fd7b4){_0x4be1b7['push'](_0x4be1b7['shift']());}}}(a145_0x2a28,0xe2497));import{z}from'zod';import{RuleDefSchema}from'./segment-schema.js';import{ActivationDefSchema}from'./activation-schema.js';export const JourneyStateTypeSchema=z[a145_0x253ec9(0x85)]([a145_0x253ec9(0x8a),a145_0x253ec9(0x91),a145_0x253ec9(0x8b)]);export const ReentryModeTypeSchema=z['enum']([a145_0x253ec9(0x9b),a145_0x253ec9(0x96),a145_0x253ec9(0x9a)]);export const WaitUnitTypeSchema=z[a145_0x253ec9(0x85)](['day',a145_0x253ec9(0xa4)]);export const StepTypeValueSchema=z[a145_0x253ec9(0x85)]([a145_0x253ec9(0x87),a145_0x253ec9(0xae),a145_0x253ec9(0xa7),a145_0x253ec9(0x94),'merge',a145_0x253ec9(0x83),a145_0x253ec9(0xa9)]);export const EmbeddedSegmentDefSchema=z[a145_0x253ec9(0x88)]({'description':z[a145_0x253ec9(0x89)]()['optional'](),'rule':RuleDefSchema});const JumpTargetDefSchema=z[a145_0x253ec9(0x88)]({'journey':z['string'](),'stage':z[a145_0x253ec9(0x89)](),'bundle_id':z['string']()['optional']()});export const CriteriaDefSchema=z[a145_0x253ec9(0x88)]({'name':z[a145_0x253ec9(0x89)](),'description':z['string']()[a145_0x253ec9(0x99)](),'segment':z[a145_0x253ec9(0x89)](),'target':JumpTargetDefSchema['optional']()});const WaitConditionTimeoutDefSchema=z[a145_0x253ec9(0x88)]({'duration':z[a145_0x253ec9(0x9c)](),'unit':WaitUnitTypeSchema,'next':z['string']()[a145_0x253ec9(0x99)]()}),WaitConditionDefSchema=z[a145_0x253ec9(0x88)]({'segment':z[a145_0x253ec9(0x89)](),'next':z[a145_0x253ec9(0x89)]()[a145_0x253ec9(0x99)](),'timeout':WaitConditionTimeoutDefSchema[a145_0x253ec9(0x99)]()}),WaitStepParamsDefSchema=z[a145_0x253ec9(0x88)]({'duration':z[a145_0x253ec9(0x9c)]()[a145_0x253ec9(0x99)](),'unit':WaitUnitTypeSchema[a145_0x253ec9(0x99)](),'wait_until':z[a145_0x253ec9(0x89)]()[a145_0x253ec9(0x99)](),'condition':WaitConditionDefSchema['optional'](),'days_of_week':z[a145_0x253ec9(0x9f)](z[a145_0x253ec9(0x89)]())[a145_0x253ec9(0x99)]()}),StepBaseFields={'name':z[a145_0x253ec9(0x89)](),'uuid':z[a145_0x253ec9(0x89)]()[a145_0x253ec9(0x99)](),'next':z[a145_0x253ec9(0x89)]()[a145_0x253ec9(0x99)]()},WaitStepDefSchema=z[a145_0x253ec9(0x88)]({...StepBaseFields,'type':z[a145_0x253ec9(0x86)](a145_0x253ec9(0x87)),'with':WaitStepParamsDefSchema}),ActivationStepParamsDefSchema=z[a145_0x253ec9(0x88)]({'activation':z[a145_0x253ec9(0x89)]()}),ActivationStepDefSchema=z[a145_0x253ec9(0x88)]({...StepBaseFields,'type':z[a145_0x253ec9(0x86)](a145_0x253ec9(0xae)),'with':ActivationStepParamsDefSchema}),DecisionBranchDefSchema=z[a145_0x253ec9(0x88)]({'name':z['string'](),'segment':z[a145_0x253ec9(0x89)]()[a145_0x253ec9(0x99)](),'segment_id':z['string']()[a145_0x253ec9(0x99)](),'excluded':z[a145_0x253ec9(0x95)]()[a145_0x253ec9(0x99)](),'next':z[a145_0x253ec9(0x89)]()['optional']()}),DecisionPointStepParamsDefSchema=z[a145_0x253ec9(0x88)]({'branches':z[a145_0x253ec9(0x9f)](DecisionBranchDefSchema)}),DecisionPointStepDefSchema=z[a145_0x253ec9(0x88)]({...StepBaseFields,'type':z[a145_0x253ec9(0x86)](a145_0x253ec9(0xa7)),'with':DecisionPointStepParamsDefSchema}),AbTestVariantDefSchema=z[a145_0x253ec9(0x88)]({'id':z[a145_0x253ec9(0x89)]()['optional'](),'name':z[a145_0x253ec9(0x89)](),'percentage':z[a145_0x253ec9(0x9c)](),'next':z[a145_0x253ec9(0x89)]()[a145_0x253ec9(0x99)]()}),AbTestStepParamsDefSchema=z['object']({'variants':z[a145_0x253ec9(0x9f)](AbTestVariantDefSchema),'unique_id':z['string']()['optional'](),'customized_split':z[a145_0x253ec9(0x95)]()[a145_0x253ec9(0x99)]()}),AbTestStepDefSchema=z[a145_0x253ec9(0x88)]({...StepBaseFields,'type':z['literal'](a145_0x253ec9(0x94)),'with':AbTestStepParamsDefSchema}),MergeStepDefSchema=z[a145_0x253ec9(0x88)]({...StepBaseFields,'type':z[a145_0x253ec9(0x86)](a145_0x253ec9(0x9e))}),JumpStepParamsDefSchema=z[a145_0x253ec9(0x88)]({'target':JumpTargetDefSchema}),JumpStepDefSchema=z[a145_0x253ec9(0x88)]({...StepBaseFields,'type':z['literal'](a145_0x253ec9(0x83)),'with':JumpStepParamsDefSchema}),EndStepDefSchema=z['object']({...StepBaseFields,'type':z['literal'](a145_0x253ec9(0xa9))})[a145_0x253ec9(0xa5)]();export const StepDefSchema=z['discriminatedUnion'](a145_0x253ec9(0x90),[WaitStepDefSchema,ActivationStepDefSchema,DecisionPointStepDefSchema,AbTestStepDefSchema,MergeStepDefSchema,JumpStepDefSchema,EndStepDefSchema]);export const StageDefSchema=z[a145_0x253ec9(0x88)]({'name':z[a145_0x253ec9(0x89)](),'description':z['string']()[a145_0x253ec9(0x99)](),'id':z[a145_0x253ec9(0x89)]()[a145_0x253ec9(0x99)](),'entry_criteria':CriteriaDefSchema[a145_0x253ec9(0x99)](),'exit_criteria':z[a145_0x253ec9(0x9f)](CriteriaDefSchema)[a145_0x253ec9(0x99)](),'milestone':CriteriaDefSchema[a145_0x253ec9(0x99)](),'root_step':z['string']()[a145_0x253ec9(0x99)](),'steps':z['array'](StepDefSchema)['optional']()});function a145_0x2a28(){const _0x20991c=['activation','184dHrrae','jump','2515482YHAahW','enum','literal','wait','object','string','draft','launched','84MXBDHf','30PHebdX','filter','length','type','simulation','111369DKfAFw','min','ab_test','boolean','reentry_unless_goal_achieved','record','11365981JhHpdy','optional','reentry_always','no_reentry','number','stages','merge','array','132280znDTlj','350HohEve','journeys','refine','week','passthrough','Journey\x20must\x20have\x20exactly\x20one\x20of:\x20journeys,\x20stages,\x20or\x20versions','decision_point','287681msHVdJ','end','2UBthHF','Journey\x20name\x20is\x20required','197745XcNQrb','31655220jQLVZG'];a145_0x2a28=function(){return _0x20991c;};return a145_0x2a28();}export const JourneyEntryDefSchema=z[a145_0x253ec9(0x88)]({'name':z[a145_0x253ec9(0x89)]()[a145_0x253ec9(0x99)](),'version':z['string']()[a145_0x253ec9(0x99)](),'state':JourneyStateTypeSchema[a145_0x253ec9(0x99)](),'latest':z[a145_0x253ec9(0x95)]()[a145_0x253ec9(0x99)](),'stages':z['array'](StageDefSchema),'id':z[a145_0x253ec9(0x89)]()[a145_0x253ec9(0x99)](),'version_number':z[a145_0x253ec9(0x9c)]()[a145_0x253ec9(0x99)](),'goal':CriteriaDefSchema['optional'](),'reentry':ReentryModeTypeSchema['optional']()});export const JourneyDefSchema=z['lazy'](()=>z[a145_0x253ec9(0x88)]({'type':z[a145_0x253ec9(0x86)]('journey'),'name':z[a145_0x253ec9(0x89)]()[a145_0x253ec9(0x93)](0x1,a145_0x253ec9(0xab)),'description':z['string']()['optional'](),'bundle_id':z[a145_0x253ec9(0x89)]()[a145_0x253ec9(0x99)](),'bundle_name':z[a145_0x253ec9(0x89)]()['optional'](),'folder_id':z[a145_0x253ec9(0x89)]()[a145_0x253ec9(0x99)](),'reentry':ReentryModeTypeSchema[a145_0x253ec9(0x99)](),'allow_reentry':z[a145_0x253ec9(0x95)]()[a145_0x253ec9(0x99)](),'goal':CriteriaDefSchema[a145_0x253ec9(0x99)](),'id':z[a145_0x253ec9(0x89)]()['optional'](),'version':z[a145_0x253ec9(0x89)]()[a145_0x253ec9(0x99)](),'version_number':z[a145_0x253ec9(0x9c)]()[a145_0x253ec9(0x99)](),'stages':z[a145_0x253ec9(0x9f)](StageDefSchema)[a145_0x253ec9(0x99)](),'versions':z['array'](JourneyEntryDefSchema)[a145_0x253ec9(0x99)](),'journeys':z[a145_0x253ec9(0x9f)](JourneyEntryDefSchema)[a145_0x253ec9(0x99)](),'segments':z[a145_0x253ec9(0x97)](z[a145_0x253ec9(0x89)](),EmbeddedSegmentDefSchema)[a145_0x253ec9(0x99)](),'activations':z[a145_0x253ec9(0x97)](z[a145_0x253ec9(0x89)](),ActivationDefSchema)[a145_0x253ec9(0x99)]()})[a145_0x253ec9(0xa3)](_0x45d3ff=>{const _0x4afc05=a145_0x253ec9,_0x543a6d=[_0x45d3ff[_0x4afc05(0xa2)],_0x45d3ff[_0x4afc05(0x9d)],_0x45d3ff['versions']][_0x4afc05(0x8e)](_0x464cb2=>Array['isArray'](_0x464cb2)&&_0x464cb2[_0x4afc05(0x8f)]>0x0)[_0x4afc05(0x8f)];return _0x543a6d===0x1;},{'message':a145_0x253ec9(0xa6)}));const _syncCheck1=!![],_syncCheck2=!![];void _syncCheck1,void _syncCheck2;
1
+ const a145_0x298738=a145_0x407f;(function(_0xaf8200,_0x436bf8){const _0x5c8dff=a145_0x407f,_0xcb98a8=_0xaf8200();while(!![]){try{const _0x4f4a65=parseInt(_0x5c8dff(0x10e))/0x1+parseInt(_0x5c8dff(0x10f))/0x2*(-parseInt(_0x5c8dff(0x101))/0x3)+-parseInt(_0x5c8dff(0x10c))/0x4+-parseInt(_0x5c8dff(0xff))/0x5+parseInt(_0x5c8dff(0x105))/0x6*(parseInt(_0x5c8dff(0xec))/0x7)+-parseInt(_0x5c8dff(0xfe))/0x8*(parseInt(_0x5c8dff(0xef))/0x9)+parseInt(_0x5c8dff(0x102))/0xa;if(_0x4f4a65===_0x436bf8)break;else _0xcb98a8['push'](_0xcb98a8['shift']());}catch(_0x100194){_0xcb98a8['push'](_0xcb98a8['shift']());}}}(a145_0x5ea1,0xd9cf3));import{z}from'zod';import{RuleDefSchema}from'./segment-schema.js';import{ActivationDefSchema}from'./activation-schema.js';export const JourneyStateTypeSchema=z[a145_0x298738(0xf0)]([a145_0x298738(0x108),a145_0x298738(0x10d),'launched']);export const ReentryModeTypeSchema=z[a145_0x298738(0xf0)]([a145_0x298738(0xf2),a145_0x298738(0xeb),'reentry_always']);export const WaitUnitTypeSchema=z[a145_0x298738(0xf0)](['day',a145_0x298738(0xfd)]);export const StepTypeValueSchema=z[a145_0x298738(0xf0)]([a145_0x298738(0xed),'activation','decision_point',a145_0x298738(0xf8),'merge',a145_0x298738(0x109),a145_0x298738(0x100)]);export const EmbeddedSegmentDefSchema=z['object']({'description':z['string']()['optional'](),'rule':RuleDefSchema});const JumpTargetDefSchema=z[a145_0x298738(0xf7)]({'journey':z[a145_0x298738(0x112)](),'stage':z[a145_0x298738(0x112)](),'bundle_id':z['string']()[a145_0x298738(0x106)]()});function a145_0x5ea1(){const _0x4bfe08=['simulation','858154rWtwgS','2iVWFrr','refine','versions','string','reentry_unless_goal_achieved','7903soxlNm','wait','filter','6462vmibim','enum','passthrough','no_reentry','length','decision_point','number','boolean','object','ab_test','type','isArray','activation','journeys','week','2320jFUnBs','5974365MkbPam','end','5331657LdoYAC','43443880bakLyY','literal','merge','2262HFYKZG','optional','Journey\x20must\x20have\x20exactly\x20one\x20of:\x20journeys,\x20stages,\x20or\x20versions','draft','jump','record','array','6222864prGArW'];a145_0x5ea1=function(){return _0x4bfe08;};return a145_0x5ea1();}export const CriteriaDefSchema=z[a145_0x298738(0xf7)]({'name':z[a145_0x298738(0x112)](),'description':z[a145_0x298738(0x112)]()[a145_0x298738(0x106)](),'segment':z[a145_0x298738(0x112)](),'target':JumpTargetDefSchema[a145_0x298738(0x106)]()});const WaitConditionTimeoutDefSchema=z[a145_0x298738(0xf7)]({'duration':z[a145_0x298738(0xf5)](),'unit':WaitUnitTypeSchema,'next':z[a145_0x298738(0x112)]()[a145_0x298738(0x106)]()}),WaitConditionDefSchema=z[a145_0x298738(0xf7)]({'segment':z[a145_0x298738(0x112)](),'next':z[a145_0x298738(0x112)]()[a145_0x298738(0x106)](),'timeout':WaitConditionTimeoutDefSchema['optional']()}),WaitStepParamsDefSchema=z[a145_0x298738(0xf7)]({'duration':z['number']()['optional'](),'unit':WaitUnitTypeSchema[a145_0x298738(0x106)](),'wait_until':z[a145_0x298738(0x112)]()[a145_0x298738(0x106)](),'condition':WaitConditionDefSchema['optional'](),'days_of_week':z[a145_0x298738(0x10b)](z[a145_0x298738(0x112)]())[a145_0x298738(0x106)]()}),StepBaseFields={'name':z[a145_0x298738(0x112)](),'uuid':z[a145_0x298738(0x112)]()[a145_0x298738(0x106)](),'next':z['string']()['optional']()},WaitStepDefSchema=z[a145_0x298738(0xf7)]({...StepBaseFields,'type':z[a145_0x298738(0x103)](a145_0x298738(0xed)),'with':WaitStepParamsDefSchema}),ActivationStepParamsDefSchema=z['object']({'activation':z[a145_0x298738(0x112)]()}),ActivationStepDefSchema=z['object']({...StepBaseFields,'type':z[a145_0x298738(0x103)](a145_0x298738(0xfb)),'with':ActivationStepParamsDefSchema}),DecisionBranchDefSchema=z[a145_0x298738(0xf7)]({'name':z[a145_0x298738(0x112)](),'segment':z[a145_0x298738(0x112)]()[a145_0x298738(0x106)](),'segment_id':z[a145_0x298738(0x112)]()[a145_0x298738(0x106)](),'excluded':z['boolean']()['optional'](),'next':z[a145_0x298738(0x112)]()[a145_0x298738(0x106)]()}),DecisionPointStepParamsDefSchema=z[a145_0x298738(0xf7)]({'branches':z[a145_0x298738(0x10b)](DecisionBranchDefSchema)}),DecisionPointStepDefSchema=z[a145_0x298738(0xf7)]({...StepBaseFields,'type':z[a145_0x298738(0x103)](a145_0x298738(0xf4)),'with':DecisionPointStepParamsDefSchema}),AbTestVariantDefSchema=z[a145_0x298738(0xf7)]({'id':z[a145_0x298738(0x112)]()[a145_0x298738(0x106)](),'name':z['string'](),'percentage':z[a145_0x298738(0xf5)](),'next':z[a145_0x298738(0x112)]()[a145_0x298738(0x106)]()}),AbTestStepParamsDefSchema=z[a145_0x298738(0xf7)]({'variants':z[a145_0x298738(0x10b)](AbTestVariantDefSchema),'unique_id':z[a145_0x298738(0x112)]()[a145_0x298738(0x106)](),'customized_split':z[a145_0x298738(0xf6)]()['optional']()}),AbTestStepDefSchema=z[a145_0x298738(0xf7)]({...StepBaseFields,'type':z[a145_0x298738(0x103)](a145_0x298738(0xf8)),'with':AbTestStepParamsDefSchema}),MergeStepDefSchema=z['object']({...StepBaseFields,'type':z[a145_0x298738(0x103)](a145_0x298738(0x104))}),JumpStepParamsDefSchema=z[a145_0x298738(0xf7)]({'target':JumpTargetDefSchema}),JumpStepDefSchema=z['object']({...StepBaseFields,'type':z[a145_0x298738(0x103)](a145_0x298738(0x109)),'with':JumpStepParamsDefSchema}),EndStepDefSchema=z[a145_0x298738(0xf7)]({...StepBaseFields,'type':z[a145_0x298738(0x103)](a145_0x298738(0x100))})[a145_0x298738(0xf1)]();export const StepDefSchema=z['discriminatedUnion'](a145_0x298738(0xf9),[WaitStepDefSchema,ActivationStepDefSchema,DecisionPointStepDefSchema,AbTestStepDefSchema,MergeStepDefSchema,JumpStepDefSchema,EndStepDefSchema]);function a145_0x407f(_0x1b5697,_0x59e0ee){_0x1b5697=_0x1b5697-0xeb;const _0x5ea1ac=a145_0x5ea1();let _0x407f0e=_0x5ea1ac[_0x1b5697];return _0x407f0e;}export const StageDefSchema=z[a145_0x298738(0xf7)]({'name':z[a145_0x298738(0x112)](),'description':z['string']()[a145_0x298738(0x106)](),'id':z['string']()[a145_0x298738(0x106)](),'entry_criteria':CriteriaDefSchema['optional'](),'exit_criteria':z[a145_0x298738(0x10b)](CriteriaDefSchema)[a145_0x298738(0x106)](),'milestone':CriteriaDefSchema[a145_0x298738(0x106)](),'root_step':z['string']()[a145_0x298738(0x106)](),'steps':z[a145_0x298738(0x10b)](StepDefSchema)['optional']()});export const JourneyEntryDefSchema=z['object']({'name':z[a145_0x298738(0x112)]()['optional'](),'version':z[a145_0x298738(0x112)]()[a145_0x298738(0x106)](),'state':JourneyStateTypeSchema[a145_0x298738(0x106)](),'latest':z['boolean']()[a145_0x298738(0x106)](),'stages':z[a145_0x298738(0x10b)](StageDefSchema),'id':z[a145_0x298738(0x112)]()[a145_0x298738(0x106)](),'version_number':z[a145_0x298738(0xf5)]()['optional'](),'goal':CriteriaDefSchema[a145_0x298738(0x106)](),'reentry':ReentryModeTypeSchema['optional']()});export const JourneyDefSchema=z['lazy'](()=>z['object']({'type':z[a145_0x298738(0x103)]('journey'),'name':z[a145_0x298738(0x112)]()['min'](0x1,'Journey\x20name\x20is\x20required'),'description':z[a145_0x298738(0x112)]()['optional'](),'bundle_id':z[a145_0x298738(0x112)]()[a145_0x298738(0x106)](),'bundle_name':z[a145_0x298738(0x112)]()['optional'](),'folder_id':z[a145_0x298738(0x112)]()[a145_0x298738(0x106)](),'reentry':ReentryModeTypeSchema[a145_0x298738(0x106)](),'allow_reentry':z[a145_0x298738(0xf6)]()[a145_0x298738(0x106)](),'goal':CriteriaDefSchema[a145_0x298738(0x106)](),'id':z[a145_0x298738(0x112)]()[a145_0x298738(0x106)](),'version':z['string']()[a145_0x298738(0x106)](),'version_number':z['number']()[a145_0x298738(0x106)](),'stages':z['array'](StageDefSchema)[a145_0x298738(0x106)](),'versions':z['array'](JourneyEntryDefSchema)[a145_0x298738(0x106)](),'journeys':z[a145_0x298738(0x10b)](JourneyEntryDefSchema)[a145_0x298738(0x106)](),'segments':z[a145_0x298738(0x10a)](z[a145_0x298738(0x112)](),EmbeddedSegmentDefSchema)[a145_0x298738(0x106)](),'activations':z['record'](z[a145_0x298738(0x112)](),ActivationDefSchema)[a145_0x298738(0x106)]()})[a145_0x298738(0x110)](_0x2229b0=>{const _0x1529dc=a145_0x298738,_0x3514d1=[_0x2229b0[_0x1529dc(0xfc)],_0x2229b0['stages'],_0x2229b0[_0x1529dc(0x111)]][_0x1529dc(0xee)](_0x20354c=>Array[_0x1529dc(0xfa)](_0x20354c)&&_0x20354c[_0x1529dc(0xf3)]>0x0)[_0x1529dc(0xf3)];return _0x3514d1===0x1;},{'message':a145_0x298738(0x107)}));const _syncCheck1=!![],_syncCheck2=!![];void _syncCheck1,void _syncCheck2;
@@ -1 +1 @@
1
- function a147_0x2829(_0xea2dc9,_0x1188e8){_0xea2dc9=_0xea2dc9-0x1e0;var _0x5c7088=a147_0x5c70();var _0x282998=_0x5c7088[_0xea2dc9];return _0x282998;}(function(_0x38de0a,_0x37b829){var _0x26c085=a147_0x2829,_0x4cfff0=_0x38de0a();while(!![]){try{var _0x3230de=parseInt(_0x26c085(0x1e5))/0x1*(-parseInt(_0x26c085(0x1e1))/0x2)+-parseInt(_0x26c085(0x1e8))/0x3+parseInt(_0x26c085(0x1e9))/0x4*(parseInt(_0x26c085(0x1ea))/0x5)+parseInt(_0x26c085(0x1e3))/0x6*(-parseInt(_0x26c085(0x1e6))/0x7)+-parseInt(_0x26c085(0x1e0))/0x8+parseInt(_0x26c085(0x1e7))/0x9*(parseInt(_0x26c085(0x1e2))/0xa)+parseInt(_0x26c085(0x1e4))/0xb;if(_0x3230de===_0x37b829)break;else _0x4cfff0['push'](_0x4cfff0['shift']());}catch(_0x57182d){_0x4cfff0['push'](_0x4cfff0['shift']());}}}(a147_0x5c70,0x5194a));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 a147_0x5c70(){var _0x2f269b=['359499ciyDZl','20SrLOBz','97535spJbPp','4997808ZJCrpE','1688yICYTu','1038090SdHzoI','1885722OWwvZt','10805949ApNqLe','367gHSNkw','7HduXpN','54KQOqYh'];a147_0x5c70=function(){return _0x2f269b;};return a147_0x5c70();}
1
+ (function(_0x3b5d01,_0x1997d3){var _0x48a7e2=a147_0x2442,_0x730e87=_0x3b5d01();while(!![]){try{var _0x4ee05e=parseInt(_0x48a7e2(0x71))/0x1*(-parseInt(_0x48a7e2(0x74))/0x2)+-parseInt(_0x48a7e2(0x75))/0x3+-parseInt(_0x48a7e2(0x6f))/0x4+parseInt(_0x48a7e2(0x6d))/0x5+-parseInt(_0x48a7e2(0x73))/0x6+-parseInt(_0x48a7e2(0x6c))/0x7*(-parseInt(_0x48a7e2(0x70))/0x8)+-parseInt(_0x48a7e2(0x6e))/0x9*(-parseInt(_0x48a7e2(0x72))/0xa);if(_0x4ee05e===_0x1997d3)break;else _0x730e87['push'](_0x730e87['shift']());}catch(_0x1a1f3c){_0x730e87['push'](_0x730e87['shift']());}}}(a147_0x12d7,0xf0447));export{OperatorTypeSchema,TimeUnitSchema,AggregationTypeSchema,ArrayMatchingSchema,OperatorDefSchema,AggregationDefSchema,TimeWindowDefSchema,FilterColumnConditionDefSchema,FilterRuleDefSchema,ValueConditionDefSchema,BehaviorConditionDefSchema,ColumnConditionDefSchema,CompositeConditionDefSchema,SegmentRefConditionDefSchema,ConditionDefSchema,RuleDefSchema,SegmentDefSchema}from'./segment-schema.js';function a147_0x2442(_0x43a1bb,_0x60f2c3){_0x43a1bb=_0x43a1bb-0x6c;var _0x12d770=a147_0x12d7();var _0x244257=_0x12d770[_0x43a1bb];return _0x244257;}export{ScheduleTypeSchema,RepeatUnitSchema,ScheduleDefSchema,NotificationDefSchema,ActivationColumnDefSchema,ActivationBehaviorDefSchema,ActivationDefSchema}from'./activation-schema.js';function a147_0x12d7(){var _0x1157fc=['5867390pYJwmK','8876106ArZSCJ','7694QqOqwd','3970329nDXnAD','28XcaCJA','5746055jdwboc','27OAIRMP','151136DhmYzG','3931032NyjmMb','273SozsVs'];a147_0x12d7=function(){return _0x1157fc;};return a147_0x12d7();}
@@ -1 +1 @@
1
- const a148_0xfc539=a148_0x590e;(function(_0x9cc6d,_0x1fcb82){const _0x5169c5=a148_0x590e,_0x4d81e4=_0x9cc6d();while(!![]){try{const _0x4c39e7=-parseInt(_0x5169c5(0x109))/0x1*(-parseInt(_0x5169c5(0xfa))/0x2)+-parseInt(_0x5169c5(0x108))/0x3+-parseInt(_0x5169c5(0x129))/0x4*(parseInt(_0x5169c5(0xf1))/0x5)+-parseInt(_0x5169c5(0x11e))/0x6*(-parseInt(_0x5169c5(0x11a))/0x7)+parseInt(_0x5169c5(0x11f))/0x8+-parseInt(_0x5169c5(0x12b))/0x9*(parseInt(_0x5169c5(0x113))/0xa)+-parseInt(_0x5169c5(0x100))/0xb;if(_0x4c39e7===_0x1fcb82)break;else _0x4d81e4['push'](_0x4d81e4['shift']());}catch(_0x544170){_0x4d81e4['push'](_0x4d81e4['shift']());}}}(a148_0x6fbf,0xc5c5f));import{z}from'zod';export const OperatorTypeSchema=z[a148_0xfc539(0x10c)]([a148_0xfc539(0x125),a148_0xfc539(0xef),a148_0xfc539(0xdf),a148_0xfc539(0x10e),a148_0xfc539(0xec),'In',a148_0xfc539(0x102),'Regexp',a148_0xfc539(0x11c),a148_0xfc539(0xf4),a148_0xfc539(0x115),a148_0xfc539(0x10d),a148_0xfc539(0x112),a148_0xfc539(0x128),a148_0xfc539(0x124)]);export const TimeUnitSchema=z[a148_0xfc539(0x10c)]([a148_0xfc539(0x101),a148_0xfc539(0x121),a148_0xfc539(0xde),'day',a148_0xfc539(0x111),a148_0xfc539(0x106),a148_0xfc539(0x11b)]);export const AggregationTypeSchema=z[a148_0xfc539(0x10c)]([a148_0xfc539(0xdb),'Sum',a148_0xfc539(0x104),a148_0xfc539(0xf8),a148_0xfc539(0xee),a148_0xfc539(0xfb),a148_0xfc539(0xd9),a148_0xfc539(0x10a)]);const TemporalValueSchema=z[a148_0xfc539(0xdc)]([z[a148_0xfc539(0x119)]({'timestamp':z['string']()}),z['object']({'last':z[a148_0xfc539(0xdc)]([z[a148_0xfc539(0xe4)](),z[a148_0xfc539(0xf9)](z[a148_0xfc539(0x105)](),z[a148_0xfc539(0xe4)]())]),'unit':z[a148_0xfc539(0x105)]()})]),OperatorValueSchema=z['union']([z[a148_0xfc539(0x105)](),z[a148_0xfc539(0xe4)](),z[a148_0xfc539(0xf5)](),TemporalValueSchema,z[a148_0xfc539(0x126)](z[a148_0xfc539(0xdc)]([z[a148_0xfc539(0x105)](),z['number'](),z[a148_0xfc539(0xf5)]()]))]),OPERATORS_REQUIRING_VALUE=new Set([a148_0xfc539(0x125),a148_0xfc539(0xef),a148_0xfc539(0x10e),a148_0xfc539(0xdf),'LessEqual','In','Contain',a148_0xfc539(0x112),a148_0xfc539(0x128),a148_0xfc539(0x12d),a148_0xfc539(0xf4),a148_0xfc539(0x115)]),OPERATORS_REQUIRING_UNIT=new Set([a148_0xfc539(0xf4),a148_0xfc539(0x115)]);export const OperatorDefSchema=z[a148_0xfc539(0x119)]({'type':OperatorTypeSchema,'not':z['boolean']()[a148_0xfc539(0xf3)](),'value':OperatorValueSchema[a148_0xfc539(0xf3)](),'min':z[a148_0xfc539(0xdc)]([z['number'](),z['string'](),TemporalValueSchema])['optional'](),'max':z[a148_0xfc539(0xdc)]([z[a148_0xfc539(0xe4)](),z[a148_0xfc539(0x105)](),TemporalValueSchema])[a148_0xfc539(0xf3)](),'unit':TimeUnitSchema['optional'](),'duration':z[a148_0xfc539(0x119)]({'day':z[a148_0xfc539(0xe4)]()[a148_0xfc539(0xf3)](),'week':z[a148_0xfc539(0xe4)]()[a148_0xfc539(0xf3)](),'month':z[a148_0xfc539(0xe4)]()[a148_0xfc539(0xf3)](),'year':z[a148_0xfc539(0xe4)]()[a148_0xfc539(0xf3)](),'hour':z[a148_0xfc539(0xe4)]()['optional'](),'minute':z['number']()[a148_0xfc539(0xf3)](),'second':z[a148_0xfc539(0xe4)]()[a148_0xfc539(0xf3)]()})[a148_0xfc539(0xf3)](),'from':z[a148_0xfc539(0x119)]({'last':z[a148_0xfc539(0xdc)]([z[a148_0xfc539(0xe4)](),z[a148_0xfc539(0x105)]()]),'unit':TimeUnitSchema})['optional'](),'reverse':z[a148_0xfc539(0xf5)]()['optional']()})[a148_0xfc539(0xe3)]((_0x3196d8,_0x593677)=>{const _0x597c41=a148_0xfc539;OPERATORS_REQUIRING_VALUE[_0x597c41(0x103)](_0x3196d8[_0x597c41(0xed)])&&(_0x3196d8['value']===undefined||_0x3196d8['value']===null)&&_0x593677[_0x597c41(0xf2)]({'code':_0x597c41(0xfd),'message':'Operator\x20\x27'+_0x3196d8['type']+_0x597c41(0xe0),'path':[_0x597c41(0xff)]}),_0x3196d8[_0x597c41(0xed)]===_0x597c41(0x102)&&_0x3196d8[_0x597c41(0xf7)]===undefined&&_0x3196d8['max']===undefined&&_0x593677['addIssue']({'code':_0x597c41(0xfd),'message':_0x597c41(0x127),'params':{'validationCode':_0x597c41(0xe2)}}),OPERATORS_REQUIRING_UNIT[_0x597c41(0x103)](_0x3196d8[_0x597c41(0xed)])&&_0x3196d8[_0x597c41(0xff)]!==undefined&&!_0x3196d8[_0x597c41(0xeb)]&&_0x593677[_0x597c41(0xf2)]({'code':_0x597c41(0xfd),'message':_0x597c41(0x120)+_0x3196d8[_0x597c41(0xed)]+_0x597c41(0xe7),'path':[_0x597c41(0xeb)],'params':{'validationCode':_0x597c41(0x10f)}}),_0x3196d8['type']===_0x597c41(0x124)&&(!_0x3196d8[_0x597c41(0x10b)]&&_0x593677[_0x597c41(0xf2)]({'code':_0x597c41(0xfd),'message':_0x597c41(0xf6),'path':[_0x597c41(0x10b)]}),!_0x3196d8[_0x597c41(0xe8)]&&_0x593677[_0x597c41(0xf2)]({'code':_0x597c41(0xfd),'message':_0x597c41(0x12c),'path':[_0x597c41(0xe8)]}));});function a148_0x6fbf(){const _0x5a2bbe=['Between','has','Average','string','month','Timestamp\x20column\x20only\x20supports\x20TimeWithinPast,\x20TimeWithinNext,\x20or\x20TimeRange\x20operators\x20(got\x20\x27','2656047odifYz','274403piCZwc','Last','duration','enum','Contain','GreaterEqual','MISSING_TIME_UNIT','column','week','StartWith','6334220jVAjWd','include','TimeWithinNext','\x27\x20is\x20only\x20valid\x20for\x20the\x20\x27timestamp\x27\x20column','lazy','Segment\x20name\x20is\x20required','object','122346akgoPE','year','IsNull','exclude','360riEZxf','5920960LsBaid','Operator\x20\x27','minute','Sum','discriminatedUnion','TimeRange','Equal','array','Between\x20operator\x20requires\x20\x27min\x27\x20and/or\x20\x27max\x27\x20values','EndWith','152vCbcjI','operator','9oFoYbS','TimeRange\x20operator\x20requires\x20\x27from\x27','Regexp','First','funnel_stage','Count','union','Column','hour','Less','\x27\x20requires\x20a\x20value','Segment\x20reference\x20must\x20not\x20be\x20empty','MISSING_BETWEEN_BOUNDS','superRefine','number','Value','all','\x27\x20requires\x20a\x20time\x20unit','from','realtime','any','unit','LessEqual','type','Max','Greater','batch','48065ftXNuB','addIssue','optional','TimeWithinPast','boolean','TimeRange\x20operator\x20requires\x20\x27duration\x27','min','Min','record','10XbXnEZ','CountDistinct','literal','custom','Behavior','value','5133381dyNfqI','second'];a148_0x6fbf=function(){return _0x5a2bbe;};return a148_0x6fbf();}export const ArrayMatchingSchema=z[a148_0xfc539(0xdc)]([z[a148_0xfc539(0xfc)](a148_0xfc539(0xea)),z[a148_0xfc539(0xfc)](a148_0xfc539(0xe6)),z[a148_0xfc539(0x119)]({'atLeast':z[a148_0xfc539(0xe4)]()}),z[a148_0xfc539(0x119)]({'atMost':z[a148_0xfc539(0xe4)]()}),z[a148_0xfc539(0x119)]({'exactly':z[a148_0xfc539(0xe4)]()})]);export const AggregationDefSchema=z[a148_0xfc539(0x123)](a148_0xfc539(0xed),[z['object']({'type':z[a148_0xfc539(0x10c)]([a148_0xfc539(0x122),'Min','Max',a148_0xfc539(0x104)]),'column':z[a148_0xfc539(0x105)](),'groupingColumns':z[a148_0xfc539(0x126)](z[a148_0xfc539(0x105)]())[a148_0xfc539(0xf3)]()}),z[a148_0xfc539(0x119)]({'type':z[a148_0xfc539(0xfc)]('Count'),'groupingColumns':z['array'](z[a148_0xfc539(0x105)]())[a148_0xfc539(0xf3)]()}),z[a148_0xfc539(0x119)]({'type':z[a148_0xfc539(0xfc)](a148_0xfc539(0xfb)),'columns':z[a148_0xfc539(0x126)](z[a148_0xfc539(0x105)]())}),z[a148_0xfc539(0x119)]({'type':z[a148_0xfc539(0x10c)]([a148_0xfc539(0xd9),a148_0xfc539(0x10a)]),'column':z[a148_0xfc539(0x105)](),'orderColumn':z['string'](),'groupingColumns':z[a148_0xfc539(0x126)](z[a148_0xfc539(0x105)]())[a148_0xfc539(0xf3)]()})]);export const TimeWindowDefSchema=z[a148_0xfc539(0x119)]({'duration':z['number'](),'unit':TimeUnitSchema});const TIMESTAMP_OPERATORS=new Set([a148_0xfc539(0xf4),a148_0xfc539(0x115),a148_0xfc539(0x124)]);function a148_0x590e(_0x199289,_0x299a1b){_0x199289=_0x199289-0xd9;const _0x6fbf22=a148_0x6fbf();let _0x590ecb=_0x6fbf22[_0x199289];return _0x590ecb;}export const FilterColumnConditionDefSchema=z[a148_0xfc539(0x119)]({'type':z[a148_0xfc539(0xfc)](a148_0xfc539(0xdd)),'column':z[a148_0xfc539(0x105)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema[a148_0xfc539(0xf3)]()})[a148_0xfc539(0xe3)]((_0x357744,_0x31839c)=>{const _0x26b02c=a148_0xfc539,_0x924b81=_0x357744['operator'][_0x26b02c(0xed)];_0x357744[_0x26b02c(0x110)]==='timestamp'?!TIMESTAMP_OPERATORS[_0x26b02c(0x103)](_0x924b81)&&_0x31839c[_0x26b02c(0xf2)]({'code':'custom','message':_0x26b02c(0x107)+_0x924b81+'\x27)','path':[_0x26b02c(0x12a),_0x26b02c(0xed)]}):TIMESTAMP_OPERATORS[_0x26b02c(0x103)](_0x924b81)&&_0x31839c['addIssue']({'code':_0x26b02c(0xfd),'message':_0x26b02c(0x120)+_0x924b81+_0x26b02c(0x116),'path':[_0x26b02c(0x12a),_0x26b02c(0xed)]});});export const FilterRuleDefSchema=z[a148_0xfc539(0x119)]({'type':z[a148_0xfc539(0xfc)]('And'),'conditions':z[a148_0xfc539(0x126)](FilterColumnConditionDefSchema)});export const ValueConditionDefSchema=z[a148_0xfc539(0x117)](()=>z[a148_0xfc539(0x119)]({'type':z[a148_0xfc539(0xfc)](a148_0xfc539(0xe5)),'attribute':z['string'](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema[a148_0xfc539(0xf3)](),'exclude':z[a148_0xfc539(0xf5)]()[a148_0xfc539(0xf3)](),'aggregation':AggregationDefSchema[a148_0xfc539(0xf3)](),'source':z[a148_0xfc539(0x105)]()['optional'](),'filter':FilterRuleDefSchema[a148_0xfc539(0xf3)](),'limit':z[a148_0xfc539(0xe4)]()['optional']()}));export const BehaviorConditionDefSchema=z[a148_0xfc539(0x117)](()=>z[a148_0xfc539(0x119)]({'type':z[a148_0xfc539(0xfc)](a148_0xfc539(0xfe)),'attribute':z[a148_0xfc539(0x105)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema[a148_0xfc539(0xf3)](),'exclude':z[a148_0xfc539(0xf5)]()[a148_0xfc539(0xf3)](),'aggregation':AggregationDefSchema['optional'](),'source':z[a148_0xfc539(0x105)]()['optional'](),'filter':FilterRuleDefSchema['optional'](),'timeWindow':TimeWindowDefSchema['optional'](),'limit':z['number']()[a148_0xfc539(0xf3)]()}));export const ColumnConditionDefSchema=z[a148_0xfc539(0x119)]({'type':z[a148_0xfc539(0xfc)](a148_0xfc539(0xdd)),'column':z[a148_0xfc539(0x105)](),'operator':OperatorDefSchema});export const CompositeConditionDefSchema=z[a148_0xfc539(0x117)](()=>z[a148_0xfc539(0x119)]({'type':z[a148_0xfc539(0x10c)](['And','Or']),'conditions':z['array'](ConditionDefSchema),'description':z['string']()['optional']()}));export const SegmentRefConditionDefSchema=z['object']({'type':z['enum']([a148_0xfc539(0x114),a148_0xfc539(0x11d)]),'segment':z[a148_0xfc539(0x105)]()[a148_0xfc539(0xf7)](0x1,a148_0xfc539(0xe1))});export const ConditionDefSchema=z[a148_0xfc539(0x117)](()=>z[a148_0xfc539(0xdc)]([ValueConditionDefSchema,BehaviorConditionDefSchema,ColumnConditionDefSchema,CompositeConditionDefSchema,SegmentRefConditionDefSchema]));export const RuleDefSchema=z['lazy'](()=>z[a148_0xfc539(0x119)]({'type':z[a148_0xfc539(0x10c)](['And','Or']),'conditions':z['array'](ConditionDefSchema),'description':z[a148_0xfc539(0x105)]()[a148_0xfc539(0xf3)]()}));export const SegmentDefSchema=z[a148_0xfc539(0x119)]({'type':z[a148_0xfc539(0xfc)]('segment')[a148_0xfc539(0xf3)](),'name':z[a148_0xfc539(0x105)]()[a148_0xfc539(0xf7)](0x1,a148_0xfc539(0x118)),'description':z[a148_0xfc539(0x105)]()[a148_0xfc539(0xf3)](),'folder':z[a148_0xfc539(0x105)]()[a148_0xfc539(0xf3)](),'rule':RuleDefSchema[a148_0xfc539(0xf3)](),'kind':z[a148_0xfc539(0x10c)]([a148_0xfc539(0xf0),a148_0xfc539(0xe9),a148_0xfc539(0xda)])['optional'](),'visible':z['boolean']()['optional'](),'activations':z[a148_0xfc539(0x126)](z[a148_0xfc539(0xea)]())['optional']()});const _syncCheck1=!![],_syncCheck2=!![];void _syncCheck1,void _syncCheck2;
1
+ const a148_0x40f29f=a148_0x7413;(function(_0x2da5c0,_0x18c1c6){const _0x485184=a148_0x7413,_0xf8f01c=_0x2da5c0();while(!![]){try{const _0x4448b5=-parseInt(_0x485184(0x1d5))/0x1*(-parseInt(_0x485184(0x1b8))/0x2)+-parseInt(_0x485184(0x1d6))/0x3+-parseInt(_0x485184(0x1f3))/0x4+-parseInt(_0x485184(0x1c4))/0x5*(-parseInt(_0x485184(0x1dc))/0x6)+parseInt(_0x485184(0x1d8))/0x7*(parseInt(_0x485184(0x1c8))/0x8)+parseInt(_0x485184(0x1e4))/0x9*(-parseInt(_0x485184(0x1fa))/0xa)+parseInt(_0x485184(0x203))/0xb;if(_0x4448b5===_0x18c1c6)break;else _0xf8f01c['push'](_0xf8f01c['shift']());}catch(_0x44bb4f){_0xf8f01c['push'](_0xf8f01c['shift']());}}}(a148_0x29a2,0xd81c5));import{z}from'zod';export const OperatorTypeSchema=z[a148_0x40f29f(0x1c2)]([a148_0x40f29f(0x1dd),a148_0x40f29f(0x1d7),a148_0x40f29f(0x1da),'GreaterEqual','LessEqual','In',a148_0x40f29f(0x1c1),a148_0x40f29f(0x1be),'IsNull','TimeWithinPast',a148_0x40f29f(0x1e8),'Contain',a148_0x40f29f(0x1df),a148_0x40f29f(0x200),a148_0x40f29f(0x1b7)]);export const TimeUnitSchema=z[a148_0x40f29f(0x1c2)]([a148_0x40f29f(0x1f6),a148_0x40f29f(0x1fb),a148_0x40f29f(0x1f8),'day',a148_0x40f29f(0x1c5),a148_0x40f29f(0x1e0),a148_0x40f29f(0x1f1)]);export const AggregationTypeSchema=z[a148_0x40f29f(0x1c2)]([a148_0x40f29f(0x1e7),a148_0x40f29f(0x1e3),a148_0x40f29f(0x1fd),a148_0x40f29f(0x1bc),a148_0x40f29f(0x1e2),a148_0x40f29f(0x1d0),a148_0x40f29f(0x1bf),a148_0x40f29f(0x1f7)]);const TemporalValueSchema=z[a148_0x40f29f(0x1db)]([z[a148_0x40f29f(0x1e6)]({'timestamp':z['string']()}),z[a148_0x40f29f(0x1e6)]({'last':z[a148_0x40f29f(0x1db)]([z[a148_0x40f29f(0x1d3)](),z[a148_0x40f29f(0x1f5)](z[a148_0x40f29f(0x202)](),z[a148_0x40f29f(0x1d3)]())]),'unit':z[a148_0x40f29f(0x202)]()})]),OperatorValueSchema=z[a148_0x40f29f(0x1db)]([z[a148_0x40f29f(0x202)](),z['number'](),z[a148_0x40f29f(0x1e9)](),TemporalValueSchema,z[a148_0x40f29f(0x1b5)](z[a148_0x40f29f(0x1db)]([z[a148_0x40f29f(0x202)](),z[a148_0x40f29f(0x1d3)](),z[a148_0x40f29f(0x1e9)]()]))]),OPERATORS_REQUIRING_VALUE=new Set(['Equal',a148_0x40f29f(0x1d7),'GreaterEqual','Less','LessEqual','In',a148_0x40f29f(0x1cb),a148_0x40f29f(0x1df),'EndWith',a148_0x40f29f(0x1be),a148_0x40f29f(0x1ea),a148_0x40f29f(0x1e8)]),OPERATORS_REQUIRING_UNIT=new Set(['TimeWithinPast','TimeWithinNext']);export const OperatorDefSchema=z['object']({'type':OperatorTypeSchema,'not':z[a148_0x40f29f(0x1e9)]()['optional'](),'value':OperatorValueSchema[a148_0x40f29f(0x1c0)](),'min':z['union']([z[a148_0x40f29f(0x1d3)](),z['string'](),TemporalValueSchema])[a148_0x40f29f(0x1c0)](),'max':z[a148_0x40f29f(0x1db)]([z[a148_0x40f29f(0x1d3)](),z[a148_0x40f29f(0x202)](),TemporalValueSchema])[a148_0x40f29f(0x1c0)](),'unit':TimeUnitSchema[a148_0x40f29f(0x1c0)](),'duration':z[a148_0x40f29f(0x1e6)]({'day':z[a148_0x40f29f(0x1d3)]()[a148_0x40f29f(0x1c0)](),'week':z['number']()[a148_0x40f29f(0x1c0)](),'month':z[a148_0x40f29f(0x1d3)]()[a148_0x40f29f(0x1c0)](),'year':z['number']()[a148_0x40f29f(0x1c0)](),'hour':z[a148_0x40f29f(0x1d3)]()['optional'](),'minute':z[a148_0x40f29f(0x1d3)]()[a148_0x40f29f(0x1c0)](),'second':z[a148_0x40f29f(0x1d3)]()[a148_0x40f29f(0x1c0)]()})['optional'](),'from':z['object']({'last':z[a148_0x40f29f(0x1db)]([z[a148_0x40f29f(0x1d3)](),z[a148_0x40f29f(0x202)]()]),'unit':TimeUnitSchema})[a148_0x40f29f(0x1c0)](),'reverse':z['boolean']()[a148_0x40f29f(0x1c0)]()})[a148_0x40f29f(0x1d9)]((_0x2904d8,_0x329e7c)=>{const _0x2ffe1d=a148_0x40f29f;OPERATORS_REQUIRING_VALUE[_0x2ffe1d(0x1bd)](_0x2904d8['type'])&&(_0x2904d8[_0x2ffe1d(0x1ef)]===undefined||_0x2904d8[_0x2ffe1d(0x1ef)]===null)&&_0x329e7c[_0x2ffe1d(0x1cd)]({'code':_0x2ffe1d(0x1de),'message':_0x2ffe1d(0x1ec)+_0x2904d8['type']+'\x27\x20requires\x20a\x20value','path':[_0x2ffe1d(0x1ef)]}),_0x2904d8['type']==='Between'&&_0x2904d8[_0x2ffe1d(0x1eb)]===undefined&&_0x2904d8[_0x2ffe1d(0x1f9)]===undefined&&_0x329e7c[_0x2ffe1d(0x1cd)]({'code':_0x2ffe1d(0x1de),'message':_0x2ffe1d(0x1fc),'params':{'validationCode':_0x2ffe1d(0x1c3)}}),OPERATORS_REQUIRING_UNIT['has'](_0x2904d8[_0x2ffe1d(0x1e1)])&&_0x2904d8[_0x2ffe1d(0x1ef)]!==undefined&&!_0x2904d8['unit']&&_0x329e7c[_0x2ffe1d(0x1cd)]({'code':_0x2ffe1d(0x1de),'message':_0x2ffe1d(0x1ec)+_0x2904d8[_0x2ffe1d(0x1e1)]+_0x2ffe1d(0x201),'path':[_0x2ffe1d(0x1c9)],'params':{'validationCode':_0x2ffe1d(0x1bb)}}),_0x2904d8[_0x2ffe1d(0x1e1)]===_0x2ffe1d(0x1b7)&&(!_0x2904d8[_0x2ffe1d(0x1fe)]&&_0x329e7c[_0x2ffe1d(0x1cd)]({'code':'custom','message':'TimeRange\x20operator\x20requires\x20\x27duration\x27','path':[_0x2ffe1d(0x1fe)]}),!_0x2904d8[_0x2ffe1d(0x1ff)]&&_0x329e7c[_0x2ffe1d(0x1cd)]({'code':_0x2ffe1d(0x1de),'message':_0x2ffe1d(0x1ca),'path':[_0x2ffe1d(0x1ff)]}));});export const ArrayMatchingSchema=z['union']([z[a148_0x40f29f(0x1ee)](a148_0x40f29f(0x1cc)),z[a148_0x40f29f(0x1ee)](a148_0x40f29f(0x1d2)),z[a148_0x40f29f(0x1e6)]({'atLeast':z[a148_0x40f29f(0x1d3)]()}),z[a148_0x40f29f(0x1e6)]({'atMost':z['number']()}),z[a148_0x40f29f(0x1e6)]({'exactly':z[a148_0x40f29f(0x1d3)]()})]);export const AggregationDefSchema=z[a148_0x40f29f(0x1b6)](a148_0x40f29f(0x1e1),[z['object']({'type':z[a148_0x40f29f(0x1c2)]([a148_0x40f29f(0x1e3),a148_0x40f29f(0x1bc),'Max',a148_0x40f29f(0x1fd)]),'column':z['string'](),'groupingColumns':z[a148_0x40f29f(0x1b5)](z[a148_0x40f29f(0x202)]())[a148_0x40f29f(0x1c0)]()}),z['object']({'type':z[a148_0x40f29f(0x1ee)](a148_0x40f29f(0x1e7)),'groupingColumns':z[a148_0x40f29f(0x1b5)](z[a148_0x40f29f(0x202)]())[a148_0x40f29f(0x1c0)]()}),z[a148_0x40f29f(0x1e6)]({'type':z[a148_0x40f29f(0x1ee)](a148_0x40f29f(0x1d0)),'columns':z[a148_0x40f29f(0x1b5)](z['string']())}),z['object']({'type':z[a148_0x40f29f(0x1c2)]([a148_0x40f29f(0x1bf),'Last']),'column':z[a148_0x40f29f(0x202)](),'orderColumn':z[a148_0x40f29f(0x202)](),'groupingColumns':z['array'](z[a148_0x40f29f(0x202)]())[a148_0x40f29f(0x1c0)]()})]);export const TimeWindowDefSchema=z[a148_0x40f29f(0x1e6)]({'duration':z[a148_0x40f29f(0x1d3)](),'unit':TimeUnitSchema});const TIMESTAMP_OPERATORS=new Set([a148_0x40f29f(0x1ea),a148_0x40f29f(0x1e8),a148_0x40f29f(0x1b7)]);export const FilterColumnConditionDefSchema=z['object']({'type':z[a148_0x40f29f(0x1ee)](a148_0x40f29f(0x1ba)),'column':z['string'](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema[a148_0x40f29f(0x1c0)]()})[a148_0x40f29f(0x1d9)]((_0x3f75f1,_0x40b7cd)=>{const _0x15d1cb=a148_0x40f29f,_0x60bf8a=_0x3f75f1['operator'][_0x15d1cb(0x1e1)];_0x3f75f1[_0x15d1cb(0x1c7)]===_0x15d1cb(0x1f4)?!TIMESTAMP_OPERATORS['has'](_0x60bf8a)&&_0x40b7cd['addIssue']({'code':_0x15d1cb(0x1de),'message':'Timestamp\x20column\x20only\x20supports\x20TimeWithinPast,\x20TimeWithinNext,\x20or\x20TimeRange\x20operators\x20(got\x20\x27'+_0x60bf8a+'\x27)','path':[_0x15d1cb(0x1ed),'type']}):TIMESTAMP_OPERATORS[_0x15d1cb(0x1bd)](_0x60bf8a)&&_0x40b7cd[_0x15d1cb(0x1cd)]({'code':'custom','message':_0x15d1cb(0x1ec)+_0x60bf8a+_0x15d1cb(0x1cf),'path':[_0x15d1cb(0x1ed),_0x15d1cb(0x1e1)]});});export const FilterRuleDefSchema=z[a148_0x40f29f(0x1e6)]({'type':z[a148_0x40f29f(0x1ee)](a148_0x40f29f(0x1d1)),'conditions':z[a148_0x40f29f(0x1b5)](FilterColumnConditionDefSchema)});export const ValueConditionDefSchema=z[a148_0x40f29f(0x1b9)](()=>z[a148_0x40f29f(0x1e6)]({'type':z[a148_0x40f29f(0x1ee)]('Value'),'attribute':z[a148_0x40f29f(0x202)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema[a148_0x40f29f(0x1c0)](),'exclude':z[a148_0x40f29f(0x1e9)]()[a148_0x40f29f(0x1c0)](),'aggregation':AggregationDefSchema[a148_0x40f29f(0x1c0)](),'source':z[a148_0x40f29f(0x202)]()[a148_0x40f29f(0x1c0)](),'filter':FilterRuleDefSchema[a148_0x40f29f(0x1c0)](),'limit':z['number']()[a148_0x40f29f(0x1c0)]()}));export const BehaviorConditionDefSchema=z['lazy'](()=>z[a148_0x40f29f(0x1e6)]({'type':z[a148_0x40f29f(0x1ee)]('Behavior'),'attribute':z[a148_0x40f29f(0x202)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema[a148_0x40f29f(0x1c0)](),'exclude':z[a148_0x40f29f(0x1e9)]()[a148_0x40f29f(0x1c0)](),'aggregation':AggregationDefSchema['optional'](),'source':z[a148_0x40f29f(0x202)]()[a148_0x40f29f(0x1c0)](),'filter':FilterRuleDefSchema['optional'](),'timeWindow':TimeWindowDefSchema[a148_0x40f29f(0x1c0)](),'limit':z['number']()[a148_0x40f29f(0x1c0)]()}));export const ColumnConditionDefSchema=z[a148_0x40f29f(0x1e6)]({'type':z['literal'](a148_0x40f29f(0x1ba)),'column':z[a148_0x40f29f(0x202)](),'operator':OperatorDefSchema});function a148_0x7413(_0x51f6e1,_0x3fc638){_0x51f6e1=_0x51f6e1-0x1b5;const _0x29a24e=a148_0x29a2();let _0x741380=_0x29a24e[_0x51f6e1];return _0x741380;}export const CompositeConditionDefSchema=z[a148_0x40f29f(0x1b9)](()=>z[a148_0x40f29f(0x1e6)]({'type':z[a148_0x40f29f(0x1c2)]([a148_0x40f29f(0x1d1),'Or']),'conditions':z[a148_0x40f29f(0x1b5)](ConditionDefSchema),'description':z[a148_0x40f29f(0x202)]()[a148_0x40f29f(0x1c0)]()}));export const SegmentRefConditionDefSchema=z[a148_0x40f29f(0x1e6)]({'type':z[a148_0x40f29f(0x1c2)]([a148_0x40f29f(0x1d4),a148_0x40f29f(0x1ce)]),'segment':z[a148_0x40f29f(0x202)]()[a148_0x40f29f(0x1eb)](0x1,a148_0x40f29f(0x1c6))});export const ConditionDefSchema=z[a148_0x40f29f(0x1b9)](()=>z[a148_0x40f29f(0x1db)]([ValueConditionDefSchema,BehaviorConditionDefSchema,ColumnConditionDefSchema,CompositeConditionDefSchema,SegmentRefConditionDefSchema]));export const RuleDefSchema=z[a148_0x40f29f(0x1b9)](()=>z['object']({'type':z[a148_0x40f29f(0x1c2)]([a148_0x40f29f(0x1d1),'Or']),'conditions':z[a148_0x40f29f(0x1b5)](ConditionDefSchema),'description':z['string']()[a148_0x40f29f(0x1c0)]()}));export const SegmentDefSchema=z[a148_0x40f29f(0x1e6)]({'type':z['literal'](a148_0x40f29f(0x1f0))[a148_0x40f29f(0x1c0)](),'name':z[a148_0x40f29f(0x202)]()[a148_0x40f29f(0x1eb)](0x1,a148_0x40f29f(0x1f2)),'description':z[a148_0x40f29f(0x202)]()[a148_0x40f29f(0x1c0)](),'folder':z['string']()[a148_0x40f29f(0x1c0)](),'rule':RuleDefSchema[a148_0x40f29f(0x1c0)](),'kind':z['enum'](['batch','realtime',a148_0x40f29f(0x1e5)])[a148_0x40f29f(0x1c0)](),'visible':z['boolean']()[a148_0x40f29f(0x1c0)](),'activations':z['array'](z[a148_0x40f29f(0x1cc)]())[a148_0x40f29f(0x1c0)]()});const _syncCheck1=!![],_syncCheck2=!![];void _syncCheck1,void _syncCheck2;function a148_0x29a2(){const _0x36964d=['MISSING_TIME_UNIT','Min','has','Regexp','First','optional','Between','enum','MISSING_BETWEEN_BOUNDS','245iAviIK','week','Segment\x20reference\x20must\x20not\x20be\x20empty','column','16cECLjF','unit','TimeRange\x20operator\x20requires\x20\x27from\x27','Contain','any','addIssue','exclude','\x27\x20is\x20only\x20valid\x20for\x20the\x20\x27timestamp\x27\x20column','CountDistinct','And','all','number','include','2777wYRuhz','4314984VMjIIY','Greater','1937733xDmLtL','superRefine','Less','union','116418NlyjlI','Equal','custom','StartWith','month','type','Max','Sum','27NqzCDV','funnel_stage','object','Count','TimeWithinNext','boolean','TimeWithinPast','min','Operator\x20\x27','operator','literal','value','segment','year','Segment\x20name\x20is\x20required','611404EzFqFp','timestamp','record','second','Last','hour','max','4985140jWykJc','minute','Between\x20operator\x20requires\x20\x27min\x27\x20and/or\x20\x27max\x27\x20values','Average','duration','from','EndWith','\x27\x20requires\x20a\x20time\x20unit','string','20147512iCjxUn','array','discriminatedUnion','TimeRange','458SoDADR','lazy','Column'];a148_0x29a2=function(){return _0x36964d;};return a148_0x29a2();}
@@ -1 +1 @@
1
- function a149_0x125d(_0x1f01e3,_0x154a8d){_0x1f01e3=_0x1f01e3-0x1d7;const _0x445c4b=a149_0x445c();let _0x125d11=_0x445c4b[_0x1f01e3];return _0x125d11;}const a149_0x3f1cff=a149_0x125d;(function(_0x389293,_0x31fc47){const _0x55cbb0=a149_0x125d,_0x401d68=_0x389293();while(!![]){try{const _0x11c3b2=parseInt(_0x55cbb0(0x1ea))/0x1+-parseInt(_0x55cbb0(0x1f6))/0x2*(parseInt(_0x55cbb0(0x1da))/0x3)+-parseInt(_0x55cbb0(0x1d7))/0x4+-parseInt(_0x55cbb0(0x1dc))/0x5*(parseInt(_0x55cbb0(0x1e0))/0x6)+-parseInt(_0x55cbb0(0x1ed))/0x7*(parseInt(_0x55cbb0(0x1e3))/0x8)+-parseInt(_0x55cbb0(0x1f0))/0x9+parseInt(_0x55cbb0(0x1e6))/0xa*(parseInt(_0x55cbb0(0x1f7))/0xb);if(_0x11c3b2===_0x31fc47)break;else _0x401d68['push'](_0x401d68['shift']());}catch(_0x386979){_0x401d68['push'](_0x401d68['shift']());}}}(a149_0x445c,0x8f2d5));import{readFileSync}from'fs';import*as a149_0xb24bf8 from'path';import*as a149_0x15746d from'yaml';function a149_0x445c(){const _0x3a266d=['campaign','6pVvmTA','type','journey','128TlFFNA','warnings','not\x20a\x20','3939470tYwezS','push','Failed\x20to\x20parse\x20YAML\x20file\x20(empty\x20or\x20invalid)','length','670254DkBwuW','map','basename','214431Jtvgge','error','parseDocument','831060hNiJdt','filterType','YAML\x20parse\x20error:\x20','utf-8','campaign_type','skipped','2020088fpsPGD','99bHlCnr','object','4290644QnbbRZ','result','email','3kwMzrQ','valid','4820755swLuSN','YAML_PARSE_ERROR','has'];a149_0x445c=function(){return _0x3a266d;};return a149_0x445c();}import{validateSegmentDef}from'./yaml-validator.js';import{validateJourneyDef}from'./journey-validator.js';import{validateCampaignDef}from'../engage/campaign-validator.js';import{validateTemplateDef}from'../engage/template-validator.js';const VALID_CAMPAIGN_TYPES=new Set([a149_0x3f1cff(0x1d9),a149_0x3f1cff(0x1e7)]);export function isJourneyDef(_0x5cc1da){const _0x5bfcc2=a149_0x3f1cff;return typeof _0x5cc1da===_0x5bfcc2(0x1f8)&&_0x5cc1da!==null&&_0x5bfcc2(0x1e1)in _0x5cc1da&&_0x5cc1da[_0x5bfcc2(0x1e1)]==='journey';}export function isCampaignDef(_0x3140a4){const _0x317c29=a149_0x3f1cff;if(typeof _0x3140a4!==_0x317c29(0x1f8)||_0x3140a4===null)return![];const _0x2017dc=_0x3140a4,_0x4e7e7c=VALID_CAMPAIGN_TYPES[_0x317c29(0x1de)](_0x2017dc[_0x317c29(0x1f4)]);if(_0x2017dc[_0x317c29(0x1e1)]==='campaign'&&_0x4e7e7c)return!![];if(_0x4e7e7c&&!_0x2017dc[_0x317c29(0x1e1)])return!![];return![];}export function isTemplateDef(_0x1c0f2e){const _0x206a76=a149_0x3f1cff;return typeof _0x1c0f2e===_0x206a76(0x1f8)&&_0x1c0f2e!==null&&_0x206a76(0x1e1)in _0x1c0f2e&&_0x1c0f2e[_0x206a76(0x1e1)]==='template';}export function isValidationResult(_0x23f90b){const _0x227f47=a149_0x3f1cff;return!(_0x227f47(0x1f5)in _0x23f90b);}export function createParseErrorResult(_0x2df2c4,_0x43206a,_0x5800ff,_0x3f355e,_0x3176cd='segment'){const _0x3ef389=a149_0x3f1cff;return{'filePath':_0x2df2c4,'relativePath':_0x43206a,'source':_0x5800ff,'result':{'valid':![],'errors':[{'level':_0x3ef389(0x1ee),'path':'','code':_0x3ef389(0x1dd),'message':_0x3f355e}],'warnings':[]},'fileType':_0x3176cd};}export function validateYamlFile(_0x33ef3e,_0xf4c672,_0x1c2bd0={}){const _0x1caa55=a149_0x3f1cff,_0x5d5814=a149_0xb24bf8['relative'](_0xf4c672,_0x33ef3e)||a149_0xb24bf8[_0x1caa55(0x1ec)](_0x33ef3e);try{const _0x226223=readFileSync(_0x33ef3e,_0x1caa55(0x1f3)),_0x5495f0=a149_0x15746d[_0x1caa55(0x1ef)](_0x226223),_0x2c82a0=_0x5495f0['toJSON']();if(!_0x2c82a0)return createParseErrorResult(_0x33ef3e,_0x5d5814,_0x226223,_0x1caa55(0x1e8));let _0x26b1e1;if(isJourneyDef(_0x2c82a0))_0x26b1e1=_0x1caa55(0x1e2);else{if(isCampaignDef(_0x2c82a0))_0x26b1e1=_0x1caa55(0x1df);else isTemplateDef(_0x2c82a0)?_0x26b1e1='template':_0x26b1e1='segment';}if(_0x1c2bd0['filterType']&&_0x26b1e1!==_0x1c2bd0[_0x1caa55(0x1f1)])return{'filePath':_0x33ef3e,'relativePath':_0x5d5814,'skipped':!![],'reason':_0x1caa55(0x1e5)+_0x1c2bd0[_0x1caa55(0x1f1)]};const _0x305128={'source':_0x226223,'document':_0x5495f0};let _0x32c455;if(_0x26b1e1===_0x1caa55(0x1e2))_0x32c455=validateJourneyDef(_0x2c82a0,_0x305128);else{if(_0x26b1e1===_0x1caa55(0x1df))_0x32c455=validateCampaignDef(_0x2c82a0,_0x305128);else _0x26b1e1==='template'?_0x32c455=validateTemplateDef(_0x2c82a0,_0x305128):_0x32c455=validateSegmentDef(_0x2c82a0,_0x305128);}return{'filePath':_0x33ef3e,'relativePath':_0x5d5814,'source':_0x226223,'result':_0x32c455,'fileType':_0x26b1e1};}catch(_0x3a35f7){const _0x18ec6a=_0x3a35f7 instanceof Error?_0x3a35f7['message']:String(_0x3a35f7);return createParseErrorResult(_0x33ef3e,_0x5d5814,'',_0x1caa55(0x1f2)+_0x18ec6a);}}export function validateYamlFiles(_0x65ea43,_0x29844a,_0x3611ea={}){const _0x4ddf5d=a149_0x3f1cff;return _0x65ea43[_0x4ddf5d(0x1eb)](_0x54cff8=>validateYamlFile(_0x54cff8,_0x29844a,_0x3611ea));}export function calculateSummary(_0x1020c5){const _0x29b782=a149_0x3f1cff;let _0x1dd7c2=0x0,_0x2951a7=0x0,_0x102377=0x0,_0x10b0c3=0x0;for(const _0x791580 of _0x1020c5){if(!isValidationResult(_0x791580)){_0x10b0c3++;continue;}_0x791580[_0x29b782(0x1d8)][_0x29b782(0x1db)]?_0x1dd7c2++:_0x2951a7++,_0x102377+=_0x791580[_0x29b782(0x1d8)][_0x29b782(0x1e4)][_0x29b782(0x1e9)];}return{'validCount':_0x1dd7c2,'invalidCount':_0x2951a7,'warningCount':_0x102377,'skippedCount':_0x10b0c3,'hasErrors':_0x2951a7>0x0};}
1
+ const a149_0x2ee151=a149_0x499b;(function(_0x50d3f9,_0x5715f6){const _0x1df22f=a149_0x499b,_0x1d7445=_0x50d3f9();while(!![]){try{const _0x1ff4e1=-parseInt(_0x1df22f(0xf5))/0x1+-parseInt(_0x1df22f(0xf2))/0x2+-parseInt(_0x1df22f(0xe6))/0x3*(-parseInt(_0x1df22f(0x103))/0x4)+parseInt(_0x1df22f(0xf0))/0x5*(parseInt(_0x1df22f(0x101))/0x6)+parseInt(_0x1df22f(0xf4))/0x7+-parseInt(_0x1df22f(0xf6))/0x8*(parseInt(_0x1df22f(0xec))/0x9)+parseInt(_0x1df22f(0x106))/0xa*(parseInt(_0x1df22f(0xfc))/0xb);if(_0x1ff4e1===_0x5715f6)break;else _0x1d7445['push'](_0x1d7445['shift']());}catch(_0x243645){_0x1d7445['push'](_0x1d7445['shift']());}}}(a149_0x8d2f,0x4c113));import{readFileSync}from'fs';import*as a149_0x5993f6 from'path';function a149_0x8d2f(){const _0x579d89=['push','48RySgkR','object','1014672JQMMpZ','not\x20a\x20','length','10vsPEZU','YAML\x20parse\x20error:\x20','email','filterType','template','skipped','6KYBWUu','utf-8','message','error','map','Failed\x20to\x20parse\x20YAML\x20file\x20(empty\x20or\x20invalid)','1755TOTAYk','parseDocument','campaign','YAML_PARSE_ERROR','12680SmeMOq','segment','460216GBiJhQ','toJSON','1040095Ihpzqj','27248axhAJv','10616byjKqQ','warnings','basename','type','result','campaign_type','1666313DswBRX','relative','journey','has'];a149_0x8d2f=function(){return _0x579d89;};return a149_0x8d2f();}import*as a149_0x1edf43 from'yaml';import{validateSegmentDef}from'./yaml-validator.js';import{validateJourneyDef}from'./journey-validator.js';import{validateCampaignDef}from'../engage/campaign-validator.js';import{validateTemplateDef}from'../engage/template-validator.js';const VALID_CAMPAIGN_TYPES=new Set([a149_0x2ee151(0x108),a149_0x2ee151(0x100)]);export function isJourneyDef(_0x49ad81){const _0x410ce3=a149_0x2ee151;return typeof _0x49ad81===_0x410ce3(0x102)&&_0x49ad81!==null&&_0x410ce3(0xf9)in _0x49ad81&&_0x49ad81[_0x410ce3(0xf9)]===_0x410ce3(0xfe);}export function isCampaignDef(_0x23c409){const _0x157c54=a149_0x2ee151;if(typeof _0x23c409!==_0x157c54(0x102)||_0x23c409===null)return![];const _0x515069=_0x23c409,_0x1cc805=VALID_CAMPAIGN_TYPES[_0x157c54(0xff)](_0x515069[_0x157c54(0xfb)]);if(_0x515069[_0x157c54(0xf9)]==='campaign'&&_0x1cc805)return!![];if(_0x1cc805&&!_0x515069['type'])return!![];return![];}export function isTemplateDef(_0x44d7ab){const _0x4cd654=a149_0x2ee151;return typeof _0x44d7ab==='object'&&_0x44d7ab!==null&&'type'in _0x44d7ab&&_0x44d7ab[_0x4cd654(0xf9)]===_0x4cd654(0xe4);}export function isValidationResult(_0x428880){const _0x23e5cd=a149_0x2ee151;return!(_0x23e5cd(0xe5)in _0x428880);}export function createParseErrorResult(_0x3c8cbc,_0x5043a2,_0x41f25c,_0x306e1c,_0x188433='segment'){const _0x2f33d9=a149_0x2ee151;return{'filePath':_0x3c8cbc,'relativePath':_0x5043a2,'source':_0x41f25c,'result':{'valid':![],'errors':[{'level':_0x2f33d9(0xe9),'path':'','code':_0x2f33d9(0xef),'message':_0x306e1c}],'warnings':[]},'fileType':_0x188433};}export function validateYamlFile(_0xd5ce4e,_0x20a265,_0x1849a7={}){const _0x56da36=a149_0x2ee151,_0x2a426d=a149_0x5993f6[_0x56da36(0xfd)](_0x20a265,_0xd5ce4e)||a149_0x5993f6[_0x56da36(0xf8)](_0xd5ce4e);try{const _0x302275=readFileSync(_0xd5ce4e,_0x56da36(0xe7)),_0x2bed08=a149_0x1edf43[_0x56da36(0xed)](_0x302275),_0x560979=_0x2bed08[_0x56da36(0xf3)]();if(!_0x560979)return createParseErrorResult(_0xd5ce4e,_0x2a426d,_0x302275,_0x56da36(0xeb));let _0x28f44b;if(isJourneyDef(_0x560979))_0x28f44b=_0x56da36(0xfe);else{if(isCampaignDef(_0x560979))_0x28f44b='campaign';else isTemplateDef(_0x560979)?_0x28f44b=_0x56da36(0xe4):_0x28f44b=_0x56da36(0xf1);}if(_0x1849a7[_0x56da36(0xe3)]&&_0x28f44b!==_0x1849a7['filterType'])return{'filePath':_0xd5ce4e,'relativePath':_0x2a426d,'skipped':!![],'reason':_0x56da36(0x104)+_0x1849a7['filterType']};const _0x37cfa0={'source':_0x302275,'document':_0x2bed08};let _0x4288f4;if(_0x28f44b===_0x56da36(0xfe))_0x4288f4=validateJourneyDef(_0x560979,_0x37cfa0);else{if(_0x28f44b===_0x56da36(0xee))_0x4288f4=validateCampaignDef(_0x560979,_0x37cfa0);else _0x28f44b===_0x56da36(0xe4)?_0x4288f4=validateTemplateDef(_0x560979,_0x37cfa0):_0x4288f4=validateSegmentDef(_0x560979,_0x37cfa0);}return{'filePath':_0xd5ce4e,'relativePath':_0x2a426d,'source':_0x302275,'result':_0x4288f4,'fileType':_0x28f44b};}catch(_0x1acf50){const _0x2284bc=_0x1acf50 instanceof Error?_0x1acf50[_0x56da36(0xe8)]:String(_0x1acf50);return createParseErrorResult(_0xd5ce4e,_0x2a426d,'',_0x56da36(0x107)+_0x2284bc);}}export function validateYamlFiles(_0x56c0a6,_0x26addb,_0x2221cd={}){const _0x471053=a149_0x2ee151;return _0x56c0a6[_0x471053(0xea)](_0x2b929a=>validateYamlFile(_0x2b929a,_0x26addb,_0x2221cd));}function a149_0x499b(_0x3f35b5,_0x235032){_0x3f35b5=_0x3f35b5-0xe3;const _0x8d2f2a=a149_0x8d2f();let _0x499b34=_0x8d2f2a[_0x3f35b5];return _0x499b34;}export function calculateSummary(_0x532759){const _0x39f758=a149_0x2ee151;let _0x37130c=0x0,_0x3a66c8=0x0,_0x302e1c=0x0,_0x2b57cc=0x0;for(const _0x163632 of _0x532759){if(!isValidationResult(_0x163632)){_0x2b57cc++;continue;}_0x163632['result']['valid']?_0x37130c++:_0x3a66c8++,_0x302e1c+=_0x163632[_0x39f758(0xfa)][_0x39f758(0xf7)][_0x39f758(0x105)];}return{'validCount':_0x37130c,'invalidCount':_0x3a66c8,'warningCount':_0x302e1c,'skippedCount':_0x2b57cc,'hasErrors':_0x3a66c8>0x0};}