@treasuredata/tdx 2026.3.3 → 2026.3.5

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 (197) hide show
  1. package/dist/bin.js +1 -1
  2. package/dist/build-info.json +3 -3
  3. package/dist/cli-categories.js +1 -1
  4. package/dist/cli.js +1 -1
  5. package/dist/commands/activations.js +1 -1
  6. package/dist/commands/agent-command.js +1 -1
  7. package/dist/commands/agent-test-command.js +1 -1
  8. package/dist/commands/api-command.js +1 -1
  9. package/dist/commands/auth-command.js +1 -1
  10. package/dist/commands/chat-command.js +1 -1
  11. package/dist/commands/claude-command.js +1 -1
  12. package/dist/commands/claude-statusline-command.js +1 -1
  13. package/dist/commands/claude-usage-command.js +1 -1
  14. package/dist/commands/command.js +1 -1
  15. package/dist/commands/connection-command.js +1 -1
  16. package/dist/commands/databases.js +1 -1
  17. package/dist/commands/delivery-command.js +1 -1
  18. package/dist/commands/describe.js +1 -1
  19. package/dist/commands/engage-campaign-pull-command.js +1 -1
  20. package/dist/commands/engage-campaign-push-command.js +1 -1
  21. package/dist/commands/engage-campaign-validate-command.js +1 -1
  22. package/dist/commands/engage-command.js +1 -1
  23. package/dist/commands/engage-template-pull-command.js +1 -1
  24. package/dist/commands/engage-template-push-command.js +1 -1
  25. package/dist/commands/engage-template-validate-command.js +1 -1
  26. package/dist/commands/job-command.js +1 -1
  27. package/dist/commands/journey-command.js +1 -1
  28. package/dist/commands/journey-validate-command.js +1 -1
  29. package/dist/commands/llm-command.js +1 -1
  30. package/dist/commands/mcp-command.js +1 -1
  31. package/dist/commands/parent-segment-command.js +1 -1
  32. package/dist/commands/profile-command.js +1 -1
  33. package/dist/commands/profiles-command.js +1 -1
  34. package/dist/commands/query-command.js +1 -1
  35. package/dist/commands/schedule-command.js +1 -1
  36. package/dist/commands/segment-command.js +1 -1
  37. package/dist/commands/segment-create-command.js +1 -1
  38. package/dist/commands/segment-fields-command.js +1 -1
  39. package/dist/commands/segment-pull-command.js +1 -1
  40. package/dist/commands/segment-push-command.js +1 -1
  41. package/dist/commands/segment-update-command.js +1 -1
  42. package/dist/commands/segment-use-command.js +1 -1
  43. package/dist/commands/segment-validate-command.js +1 -1
  44. package/dist/commands/segments.js +1 -1
  45. package/dist/commands/show.js +1 -1
  46. package/dist/commands/status-command.js +1 -1
  47. package/dist/commands/tables.js +1 -1
  48. package/dist/commands/unset-command.js +1 -1
  49. package/dist/commands/upgrade-command.js +1 -1
  50. package/dist/commands/use-command.js +1 -1
  51. package/dist/commands/user-command.js +1 -1
  52. package/dist/commands/workflow-command.js +1 -1
  53. package/dist/core/auth.js +1 -1
  54. package/dist/core/command-output.js +1 -1
  55. package/dist/core/config.js +1 -1
  56. package/dist/core/connection-cache.js +1 -1
  57. package/dist/core/constants.js +1 -1
  58. package/dist/core/credential-cache.js +1 -1
  59. package/dist/core/global-context.js +1 -1
  60. package/dist/core/keychain.js +1 -1
  61. package/dist/core/profile.js +1 -1
  62. package/dist/core/project-config.js +1 -1
  63. package/dist/core/session.js +1 -1
  64. package/dist/core/user-cache.js +1 -1
  65. package/dist/core/version.js +1 -1
  66. package/dist/index.js +1 -1
  67. package/dist/mcp/server.js +1 -1
  68. package/dist/mcp/tools/index.js +1 -1
  69. package/dist/mcp/tools/tdx-run.js +1 -1
  70. package/dist/mcp/tools/tdx-search.js +1 -1
  71. package/dist/mcp/utils.js +1 -1
  72. package/dist/proxy/claude-usage-tracker.js +1 -1
  73. package/dist/proxy/passthrough-server.js +1 -1
  74. package/dist/proxy/sse-usage-parser.js +1 -1
  75. package/dist/sdk/agent/agent-config.js +1 -1
  76. package/dist/sdk/agent/agent-ref-parser.js +1 -1
  77. package/dist/sdk/agent/agent-yaml.js +1 -1
  78. package/dist/sdk/agent/test/evaluator.js +1 -1
  79. package/dist/sdk/agent/test/executor.js +1 -1
  80. package/dist/sdk/agent/test/index.js +1 -1
  81. package/dist/sdk/agent/test/output.js +1 -1
  82. package/dist/sdk/agent/test/parser.js +1 -1
  83. package/dist/sdk/agent/tool-target-registry.js +1 -1
  84. package/dist/sdk/api.js +1 -1
  85. package/dist/sdk/client/cdp-api-client.js +1 -1
  86. package/dist/sdk/client/delivery-api-client.js +1 -1
  87. package/dist/sdk/client/endpoints.js +1 -1
  88. package/dist/sdk/client/engage-api-client.js +1 -1
  89. package/dist/sdk/client/http-client.js +1 -1
  90. package/dist/sdk/client/llm-api-client.js +1 -1
  91. package/dist/sdk/client/rate-limiter.js +1 -1
  92. package/dist/sdk/client/td-api-client.js +1 -1
  93. package/dist/sdk/client/trino-api-client.js +1 -1
  94. package/dist/sdk/client/workflow-client.js +1 -1
  95. package/dist/sdk/connection-validator.js +1 -1
  96. package/dist/sdk/connection.js +1 -1
  97. package/dist/sdk/delivery.js +1 -1
  98. package/dist/sdk/engage/campaign-pull.js +1 -1
  99. package/dist/sdk/engage/campaign-push.js +1 -1
  100. package/dist/sdk/engage/campaign-validator.js +1 -1
  101. package/dist/sdk/engage/campaign-yaml.js +1 -1
  102. package/dist/sdk/engage/template-pull.js +1 -1
  103. package/dist/sdk/engage/template-push.js +1 -1
  104. package/dist/sdk/engage/template-validator.js +1 -1
  105. package/dist/sdk/engage/template-yaml.js +1 -1
  106. package/dist/sdk/engage/types/campaign-def.js +1 -1
  107. package/dist/sdk/engage/types/campaign-schema.js +1 -1
  108. package/dist/sdk/engage/types/template-schema.js +1 -1
  109. package/dist/sdk/engage.js +1 -1
  110. package/dist/sdk/errors.js +1 -1
  111. package/dist/sdk/index.js +1 -1
  112. package/dist/sdk/io/index.js +1 -1
  113. package/dist/sdk/io/node-filesystem.js +1 -1
  114. package/dist/sdk/job.js +1 -1
  115. package/dist/sdk/journey.js +1 -1
  116. package/dist/sdk/llm/chat-cache.js +1 -1
  117. package/dist/sdk/llm/index.js +1 -1
  118. package/dist/sdk/llm/llm-backup-utils.js +1 -1
  119. package/dist/sdk/llm/model-factors.js +1 -1
  120. package/dist/sdk/personalization.js +1 -1
  121. package/dist/sdk/query/index.js +1 -1
  122. package/dist/sdk/query/sql-parser.js +1 -1
  123. package/dist/sdk/realtime.js +1 -1
  124. package/dist/sdk/schedule.js +1 -1
  125. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  126. package/dist/sdk/segment/fields-display.js +1 -1
  127. package/dist/sdk/segment/file-discovery.js +1 -1
  128. package/dist/sdk/segment/journey-utils.js +1 -1
  129. package/dist/sdk/segment/journey-validator.js +1 -1
  130. package/dist/sdk/segment/journey-yaml.js +1 -1
  131. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  132. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  133. package/dist/sdk/segment/pull-workflow.js +1 -1
  134. package/dist/sdk/segment/push-recovery.js +1 -1
  135. package/dist/sdk/segment/push-workflow.js +1 -1
  136. package/dist/sdk/segment/resolution-context.js +1 -1
  137. package/dist/sdk/segment/segment-path-parser.js +1 -1
  138. package/dist/sdk/segment/segment-ref-parser.js +1 -1
  139. package/dist/sdk/segment/segment-validator.js +1 -1
  140. package/dist/sdk/segment/target-resolution.js +1 -1
  141. package/dist/sdk/segment/tdx-config.js +1 -1
  142. package/dist/sdk/segment/types/activation-schema.js +1 -1
  143. package/dist/sdk/segment/types/journey-def.js +1 -1
  144. package/dist/sdk/segment/types/journey-schema.js +1 -1
  145. package/dist/sdk/segment/types/segment-def.js +1 -1
  146. package/dist/sdk/segment/types/segment-schema.js +1 -1
  147. package/dist/sdk/segment/validate-files.js +1 -1
  148. package/dist/sdk/segment/yaml-validator.js +1 -1
  149. package/dist/sdk/segment.js +1 -1
  150. package/dist/sdk/types/index.js +1 -1
  151. package/dist/sdk/types/progress.js +1 -1
  152. package/dist/sdk/user.js +1 -1
  153. package/dist/sdk/util/format-detector.js +1 -1
  154. package/dist/sdk/util/formatters.js +1 -1
  155. package/dist/sdk/util/index.js +1 -1
  156. package/dist/sdk/util/paginate.js +1 -1
  157. package/dist/sdk/util/tree-formatter.js +1 -1
  158. package/dist/sdk/workflow/archive-validation.js +1 -1
  159. package/dist/sdk/workflow/clone-workflow.js +1 -1
  160. package/dist/sdk/workflow/index.js +1 -1
  161. package/dist/sdk/workflow/pull-workflow.js +1 -1
  162. package/dist/sdk/workflow/push-workflow.js +1 -1
  163. package/dist/sdk/workflow/tdx-config.js +1 -1
  164. package/dist/sdk/workflow/workflow-utils.js +1 -1
  165. package/dist/test-utils/command-runner.js +1 -1
  166. package/dist/test-utils/factories.js +1 -1
  167. package/dist/test-utils/fixtures.js +1 -1
  168. package/dist/test-utils/http-mock.js +1 -1
  169. package/dist/test-utils/index.js +1 -1
  170. package/dist/utils/async.js +1 -1
  171. package/dist/utils/colors.js +1 -1
  172. package/dist/utils/diff.js +1 -1
  173. package/dist/utils/file-permissions.js +1 -1
  174. package/dist/utils/file-reader.js +1 -1
  175. package/dist/utils/github-releases.js +1 -1
  176. package/dist/utils/global-cache.js +1 -1
  177. package/dist/utils/json-loader.js +1 -1
  178. package/dist/utils/local-cache.js +1 -1
  179. package/dist/utils/logger/formatters/default-formatter.js +1 -1
  180. package/dist/utils/logger/formatters/index.js +1 -1
  181. package/dist/utils/logger/handlers/console-handler.js +1 -1
  182. package/dist/utils/logger/handlers/file-handler.js +1 -1
  183. package/dist/utils/logger/handlers/index.js +1 -1
  184. package/dist/utils/logger/handlers/null-handler.js +1 -1
  185. package/dist/utils/logger/index.js +1 -1
  186. package/dist/utils/logger/logger.js +1 -1
  187. package/dist/utils/logger/types.js +1 -1
  188. package/dist/utils/option-validation.js +1 -1
  189. package/dist/utils/process.js +1 -1
  190. package/dist/utils/prompt.js +1 -1
  191. package/dist/utils/spinner.js +1 -1
  192. package/dist/utils/sse-parser.js +1 -1
  193. package/dist/utils/string-utils.js +1 -1
  194. package/dist/utils/table-ref-parser.js +1 -1
  195. package/dist/utils/tdx-logger.js +1 -1
  196. package/dist/utils/version-check.js +1 -1
  197. package/package.json +1 -1
package/dist/sdk/index.js CHANGED
@@ -1 +1 @@
1
- const a111_0x176648=a111_0x38b8;(function(_0x538f78,_0xd25619){const _0x3f4bbc=a111_0x38b8,_0x56cc5a=_0x538f78();while(!![]){try{const _0x3d930a=parseInt(_0x3f4bbc(0x82))/0x1*(-parseInt(_0x3f4bbc(0x98))/0x2)+parseInt(_0x3f4bbc(0x94))/0x3+parseInt(_0x3f4bbc(0x89))/0x4*(-parseInt(_0x3f4bbc(0x86))/0x5)+parseInt(_0x3f4bbc(0x8f))/0x6*(parseInt(_0x3f4bbc(0x8a))/0x7)+parseInt(_0x3f4bbc(0x79))/0x8*(parseInt(_0x3f4bbc(0x97))/0x9)+-parseInt(_0x3f4bbc(0x7a))/0xa+parseInt(_0x3f4bbc(0x92))/0xb;if(_0x3d930a===_0xd25619)break;else _0x56cc5a['push'](_0x56cc5a['shift']());}catch(_0xf47e4){_0x56cc5a['push'](_0x56cc5a['shift']());}}}(a111_0x125b,0xd0b37));import{loadUserConfigOnce,getAPIKey,getAccessToken,loadGlobalProxy,resolveSite}from'../core/config.js';import{SegmentSDK}from'./segment.js';import{JourneySDK}from'./journey.js';import{WorkflowSDK}from'./workflow/index.js';import{LLMSDK}from'./llm/index.js';import{JobSDK}from'./job.js';import{UserSDK}from'./user.js';import{RawAPI}from'./api.js';import{QuerySDK}from'./query/index.js';function a111_0x125b(){const _0x1cddfa=['workflow','jobs','476TceZPs','518fLIMZU','realtime','engage','proxy','site','60414MerOBl','create','connection','9021441TVpviH','segment','3350859KqATpD','user','catch','68877RFvJYq','4gVZwCL','isInitialized','init','us01','apiKey','delivery','856oAJMJV','12878060SepXoe','accessToken','INFO','_tdxInstance','logLevel','journey','llm','personalization','566158alTiBM','api','context','query','9500BCdvLf'];a111_0x125b=function(){return _0x1cddfa;};return a111_0x125b();}import{EngageSDK}from'./engage.js';import{DeliverySDK}from'./delivery.js';import{ConnectionSDK}from'./connection.js';import{ScheduleSDK}from'./schedule.js';import{RealtimeSDK}from'./realtime.js';function a111_0x38b8(_0x1fc598,_0x48dda6){_0x1fc598=_0x1fc598-0x78;const _0x125bec=a111_0x125b();let _0x38b8c8=_0x125bec[_0x1fc598];return _0x38b8c8;}import{PersonalizationSDK}from'./personalization.js';import{Logger,LogLevel,FileHandler,DefaultLogFormatter}from'../utils/logger/index.js';export*from'./errors.js';export*from'./segment.js';export*from'./segment/parent-segment-preview.js';export*from'./journey.js';export*from'./workflow/index.js';export*from'./llm/index.js';export*from'./job.js';export*from'./user.js';export*from'./api.js';export*from'./query/index.js';export*from'./engage.js';export*from'./delivery.js';export*from'./connection.js';export*from'./schedule.js';export*from'./realtime.js';export*from'./personalization.js';export{Logger,LogLevel}from'../utils/logger/index.js';export{getLLMProxyEndpoint,getConsoleUrl,getEndpoint,LLM_PROXY_ENDPOINTS}from'./client/endpoints.js';export class TDX{['context'];[a111_0x176648(0x85)];[a111_0x176648(0x93)];[a111_0x176648(0x7f)];[a111_0x176648(0x87)];[a111_0x176648(0x80)];[a111_0x176648(0x88)];[a111_0x176648(0x95)];[a111_0x176648(0x8c)];[a111_0x176648(0x78)];[a111_0x176648(0x91)];['schedules'];[a111_0x176648(0x8b)];[a111_0x176648(0x81)];[a111_0x176648(0x83)];static[a111_0x176648(0x90)](_0x93f2fb={}){const _0x12e57c=a111_0x176648,_0x51d3f0=resolveSite(_0x93f2fb[_0x12e57c(0x8e)]||_0x12e57c(0x9b)),_0x33f38c=_0x93f2fb[_0x12e57c(0x7e)]??LogLevel[_0x12e57c(0x7c)],_0x4ba91a=_0x93f2fb['profile'];let _0x4a76d9=_0x93f2fb[_0x12e57c(0x7b)];!_0x4a76d9&&(_0x4a76d9=getAccessToken(_0x4ba91a));let _0x5219de=_0x93f2fb[_0x12e57c(0x9c)];!_0x5219de&&(loadUserConfigOnce(),_0x5219de=getAPIKey(_0x4ba91a));let _0x3d8c4d=_0x93f2fb[_0x12e57c(0x8d)];return!_0x3d8c4d&&(_0x3d8c4d=loadGlobalProxy()||process.env.HTTPS_PROXY||process.env.HTTP_PROXY),!Logger[_0x12e57c(0x99)]()&&Logger[_0x12e57c(0x9a)]({'defaultLevel':_0x33f38c,'handlers':[new FileHandler()],'formatter':new DefaultLogFormatter({'colors':!![]})})[_0x12e57c(0x96)](()=>{}),new TDX({'site':_0x51d3f0,'apiKey':_0x5219de,'accessToken':_0x4a76d9,'logLevel':_0x33f38c,'profile':_0x4ba91a,'proxy':_0x3d8c4d});}constructor(_0x3f26b4){const _0x331ad8=a111_0x176648;this[_0x331ad8(0x84)]=_0x3f26b4,this['query']=new QuerySDK(_0x3f26b4),this[_0x331ad8(0x93)]=new SegmentSDK(_0x3f26b4),this[_0x331ad8(0x7f)]=new JourneySDK(_0x3f26b4),this[_0x331ad8(0x87)]=new WorkflowSDK(_0x3f26b4),this[_0x331ad8(0x80)]=new LLMSDK(_0x3f26b4),this[_0x331ad8(0x88)]=new JobSDK(_0x3f26b4),this[_0x331ad8(0x95)]=new UserSDK(_0x3f26b4),this['engage']=new EngageSDK(_0x3f26b4),this[_0x331ad8(0x78)]=new DeliverySDK(_0x3f26b4),this['connection']=new ConnectionSDK(_0x3f26b4),this['schedules']=new ScheduleSDK(_0x3f26b4),this['realtime']=new RealtimeSDK(_0x3f26b4),this['personalization']=new PersonalizationSDK(_0x3f26b4),this[_0x331ad8(0x83)]=new RawAPI(_0x3f26b4),this[_0x331ad8(0x93)][_0x331ad8(0x7d)]=this;}}
1
+ const a111_0x119593=a111_0x2efe;(function(_0x7c6fb5,_0x1a71f8){const _0x414893=a111_0x2efe,_0x439525=_0x7c6fb5();while(!![]){try{const _0x433926=parseInt(_0x414893(0xc3))/0x1+-parseInt(_0x414893(0xa3))/0x2*(parseInt(_0x414893(0xb4))/0x3)+-parseInt(_0x414893(0xa5))/0x4*(parseInt(_0x414893(0xa8))/0x5)+-parseInt(_0x414893(0xc6))/0x6*(-parseInt(_0x414893(0xbd))/0x7)+parseInt(_0x414893(0xc5))/0x8*(parseInt(_0x414893(0xbc))/0x9)+parseInt(_0x414893(0xa7))/0xa+-parseInt(_0x414893(0xa6))/0xb*(parseInt(_0x414893(0xae))/0xc);if(_0x433926===_0x1a71f8)break;else _0x439525['push'](_0x439525['shift']());}catch(_0x2b4eaa){_0x439525['push'](_0x439525['shift']());}}}(a111_0x745a,0x7a474));import{loadUserConfigOnce,getAPIKey,getAccessToken,loadGlobalProxy,resolveSite}from'../core/config.js';import{SegmentSDK}from'./segment.js';import{JourneySDK}from'./journey.js';function a111_0x2efe(_0x184c2c,_0x127123){_0x184c2c=_0x184c2c-0xa3;const _0x745a38=a111_0x745a();let _0x2efec4=_0x745a38[_0x184c2c];return _0x2efec4;}import{WorkflowSDK}from'./workflow/index.js';import{LLMSDK}from'./llm/index.js';import{JobSDK}from'./job.js';import{UserSDK}from'./user.js';import{RawAPI}from'./api.js';import{QuerySDK}from'./query/index.js';import{EngageSDK}from'./engage.js';import{DeliverySDK}from'./delivery.js';import{ConnectionSDK}from'./connection.js';import{ScheduleSDK}from'./schedule.js';import{RealtimeSDK}from'./realtime.js';import{PersonalizationSDK}from'./personalization.js';import{Logger,LogLevel,FileHandler,DefaultLogFormatter}from'../utils/logger/index.js';export*from'./errors.js';export*from'./segment.js';export*from'./segment/parent-segment-preview.js';export*from'./journey.js';export*from'./workflow/index.js';export*from'./llm/index.js';export*from'./job.js';export*from'./user.js';export*from'./api.js';export*from'./query/index.js';export*from'./engage.js';export*from'./delivery.js';export*from'./connection.js';export*from'./schedule.js';export*from'./realtime.js';export*from'./personalization.js';export{Logger,LogLevel}from'../utils/logger/index.js';export{getLLMProxyEndpoint,getConsoleUrl,getEndpoint,LLM_PROXY_ENDPOINTS}from'./client/endpoints.js';function a111_0x745a(){const _0x4d5a82=['query','connection','context','engage','15SGuTbM','profile','proxy','_tdxInstance','us01','api','user','isInitialized','441wKHncN','10283WbDVOv','site','segment','delivery','jobs','personalization','976355jfjuJl','journey','107784seaznn','3282gMTCWn','248614YNOvPU','apiKey','28uhoXaY','3742706nHguLN','9934350LySeUj','192605JmQKkN','realtime','schedules','logLevel','workflow','init','72pTPorO','create'];a111_0x745a=function(){return _0x4d5a82;};return a111_0x745a();}export class TDX{[a111_0x119593(0xb2)];[a111_0x119593(0xb0)];[a111_0x119593(0xbf)];['journey'];[a111_0x119593(0xac)];['llm'];['jobs'];[a111_0x119593(0xba)];[a111_0x119593(0xb3)];[a111_0x119593(0xc0)];['connection'];[a111_0x119593(0xaa)];['realtime'];[a111_0x119593(0xc2)];['api'];static[a111_0x119593(0xaf)](_0x3006e7={}){const _0x1d8245=a111_0x119593,_0x17b375=resolveSite(_0x3006e7[_0x1d8245(0xbe)]||_0x1d8245(0xb8)),_0xabf1f2=_0x3006e7[_0x1d8245(0xab)]??LogLevel['INFO'],_0xcf0964=_0x3006e7[_0x1d8245(0xb5)];let _0x1217cc=_0x3006e7['accessToken'];!_0x1217cc&&(_0x1217cc=getAccessToken(_0xcf0964));let _0x310af8=_0x3006e7[_0x1d8245(0xa4)];!_0x310af8&&(loadUserConfigOnce(),_0x310af8=getAPIKey(_0xcf0964));let _0x35e589=_0x3006e7[_0x1d8245(0xb6)];return!_0x35e589&&(_0x35e589=loadGlobalProxy()||process.env.HTTPS_PROXY||process.env.HTTP_PROXY),!Logger[_0x1d8245(0xbb)]()&&Logger[_0x1d8245(0xad)]({'defaultLevel':_0xabf1f2,'handlers':[new FileHandler()],'formatter':new DefaultLogFormatter({'colors':!![]})})['catch'](()=>{}),new TDX({'site':_0x17b375,'apiKey':_0x310af8,'accessToken':_0x1217cc,'logLevel':_0xabf1f2,'profile':_0xcf0964,'proxy':_0x35e589});}constructor(_0x474bc9){const _0x4a488d=a111_0x119593;this[_0x4a488d(0xb2)]=_0x474bc9,this[_0x4a488d(0xb0)]=new QuerySDK(_0x474bc9),this[_0x4a488d(0xbf)]=new SegmentSDK(_0x474bc9),this[_0x4a488d(0xc4)]=new JourneySDK(_0x474bc9),this['workflow']=new WorkflowSDK(_0x474bc9),this['llm']=new LLMSDK(_0x474bc9),this[_0x4a488d(0xc1)]=new JobSDK(_0x474bc9),this[_0x4a488d(0xba)]=new UserSDK(_0x474bc9),this['engage']=new EngageSDK(_0x474bc9),this[_0x4a488d(0xc0)]=new DeliverySDK(_0x474bc9),this[_0x4a488d(0xb1)]=new ConnectionSDK(_0x474bc9),this[_0x4a488d(0xaa)]=new ScheduleSDK(_0x474bc9),this[_0x4a488d(0xa9)]=new RealtimeSDK(_0x474bc9),this[_0x4a488d(0xc2)]=new PersonalizationSDK(_0x474bc9),this[_0x4a488d(0xb9)]=new RawAPI(_0x474bc9),this[_0x4a488d(0xbf)][_0x4a488d(0xb7)]=this;}}
@@ -1 +1 @@
1
- function a112_0x3865(){var _0x58ae55=['1787826LzdTpP','854728bLaooP','10AiYrMG','10Qqzfyb','243471KPEjJv','2522037mQBEiM','17336649dBGICL','5MYFsmg','1992648OHNOmb','9INGGxU','362798sSxpzh'];a112_0x3865=function(){return _0x58ae55;};return a112_0x3865();}function a112_0x1e7e(_0x6ff6e8,_0xccf017){_0x6ff6e8=_0x6ff6e8-0x91;var _0x386541=a112_0x3865();var _0x1e7e40=_0x386541[_0x6ff6e8];return _0x1e7e40;}(function(_0x35b188,_0x4651d2){var _0x529be5=a112_0x1e7e,_0x2b8052=_0x35b188();while(!![]){try{var _0x244715=-parseInt(_0x529be5(0x9a))/0x1+parseInt(_0x529be5(0x93))/0x2*(-parseInt(_0x529be5(0x94))/0x3)+-parseInt(_0x529be5(0x98))/0x4+parseInt(_0x529be5(0x97))/0x5*(-parseInt(_0x529be5(0x9b))/0x6)+parseInt(_0x529be5(0x95))/0x7+-parseInt(_0x529be5(0x91))/0x8*(parseInt(_0x529be5(0x99))/0x9)+-parseInt(_0x529be5(0x92))/0xa*(-parseInt(_0x529be5(0x96))/0xb);if(_0x244715===_0x4651d2)break;else _0x2b8052['push'](_0x2b8052['shift']());}catch(_0x1b42ef){_0x2b8052['push'](_0x2b8052['shift']());}}}(a112_0x3865,0x40a59));export{nodeFileSystem,nodeFileSystemSync}from'./node-filesystem.js';
1
+ (function(_0xb9321,_0x4be004){var _0x5ad52c=a112_0x1915,_0x12d682=_0xb9321();while(!![]){try{var _0x5c75a0=-parseInt(_0x5ad52c(0x10f))/0x1+-parseInt(_0x5ad52c(0x10c))/0x2*(-parseInt(_0x5ad52c(0x107))/0x3)+parseInt(_0x5ad52c(0x108))/0x4*(-parseInt(_0x5ad52c(0x10b))/0x5)+parseInt(_0x5ad52c(0x106))/0x6*(-parseInt(_0x5ad52c(0x10a))/0x7)+-parseInt(_0x5ad52c(0x109))/0x8*(-parseInt(_0x5ad52c(0x110))/0x9)+parseInt(_0x5ad52c(0x105))/0xa+parseInt(_0x5ad52c(0x10e))/0xb*(-parseInt(_0x5ad52c(0x10d))/0xc);if(_0x5c75a0===_0x4be004)break;else _0x12d682['push'](_0x12d682['shift']());}catch(_0x569717){_0x12d682['push'](_0x12d682['shift']());}}}(a112_0x25d9,0xe69fd));function a112_0x1915(_0x2fbe0c,_0x11241f){_0x2fbe0c=_0x2fbe0c-0x105;var _0x25d944=a112_0x25d9();var _0x1915c8=_0x25d944[_0x2fbe0c];return _0x1915c8;}function a112_0x25d9(){var _0x16e13d=['174840ZwVcLH','110dMUlal','351313qdpJde','157473uyDmVg','4162980RJjhef','1609608kksEQN','6YkbbAy','4jssoBl','392uExoDo','21xIErTC','3763205zcHPIH','1725444uGRDRT'];a112_0x25d9=function(){return _0x16e13d;};return a112_0x25d9();}export{nodeFileSystem,nodeFileSystemSync}from'./node-filesystem.js';
@@ -1 +1 @@
1
- const a113_0xe03327=a113_0x4d95;(function(_0x4b6e49,_0x7dc9e2){const _0x374b7d=a113_0x4d95,_0x1e3a56=_0x4b6e49();while(!![]){try{const _0xa7c301=parseInt(_0x374b7d(0x200))/0x1+-parseInt(_0x374b7d(0x1f4))/0x2*(parseInt(_0x374b7d(0x1f9))/0x3)+-parseInt(_0x374b7d(0x1f3))/0x4*(parseInt(_0x374b7d(0x1ff))/0x5)+parseInt(_0x374b7d(0x1eb))/0x6*(-parseInt(_0x374b7d(0x1f1))/0x7)+parseInt(_0x374b7d(0x1ee))/0x8+-parseInt(_0x374b7d(0x203))/0x9*(-parseInt(_0x374b7d(0x1ed))/0xa)+-parseInt(_0x374b7d(0x1fd))/0xb;if(_0xa7c301===_0x7dc9e2)break;else _0x1e3a56['push'](_0x1e3a56['shift']());}catch(_0x33dfb4){_0x1e3a56['push'](_0x1e3a56['shift']());}}}(a113_0x704e,0x68d31));import*as a113_0x126da7 from'node:fs';function a113_0x704e(){const _0x42425d=['30VteyEw','4192032JDvkTW','access','writeFileSync','16247LGaNNu','mkdir','4gpifkm','175652HggKzP','unlinkSync','writeFile','utf-8','readdir','6TpyNTy','unlink','readdirSync','existsSync','5675505PfFafG','stat','3129145tbkrcP','843791oeAOKV','isDirectory','readFileSync','2369457gkQBVu','readFile','1062cHRxKT','statSync'];a113_0x704e=function(){return _0x42425d;};return a113_0x704e();}import*as a113_0x271db5 from'node:fs/promises';function a113_0x4d95(_0x46ef6d,_0x1dd3f6){_0x46ef6d=_0x46ef6d-0x1eb;const _0x704eea=a113_0x704e();let _0x4d9596=_0x704eea[_0x46ef6d];return _0x4d9596;}export const nodeFileSystem={'readFile':_0x271b17=>a113_0x271db5[a113_0xe03327(0x204)](_0x271b17,a113_0xe03327(0x1f7)),'writeFile':(_0x52020b,_0x24fb52)=>a113_0x271db5[a113_0xe03327(0x1f6)](_0x52020b,_0x24fb52,'utf-8'),'exists':async _0x3dfa08=>{const _0x1741dd=a113_0xe03327;try{return await a113_0x271db5[_0x1741dd(0x1ef)](_0x3dfa08),!![];}catch{return![];}},'mkdir':async(_0x46642c,_0x10e7d4)=>{const _0x2a1055=a113_0xe03327;await a113_0x271db5[_0x2a1055(0x1f2)](_0x46642c,_0x10e7d4);},'readdir':_0xd18176=>a113_0x271db5[a113_0xe03327(0x1f8)](_0xd18176),'stat':async _0x16d121=>{const _0x596f77=a113_0xe03327,_0xeed68b=await a113_0x271db5[_0x596f77(0x1fe)](_0x16d121);return{'isDirectory':()=>_0xeed68b['isDirectory'](),'isFile':()=>_0xeed68b['isFile']()};},'unlink':_0x401be5=>a113_0x271db5[a113_0xe03327(0x1fa)](_0x401be5)};export const nodeFileSystemSync={'readFileSync':_0x53517f=>a113_0x126da7[a113_0xe03327(0x202)](_0x53517f,'utf-8'),'writeFileSync':(_0x1d544d,_0x41c403)=>a113_0x126da7[a113_0xe03327(0x1f0)](_0x1d544d,_0x41c403,a113_0xe03327(0x1f7)),'existsSync':_0x504432=>a113_0x126da7[a113_0xe03327(0x1fc)](_0x504432),'mkdirSync':(_0x4ab1fd,_0x225468)=>{a113_0x126da7['mkdirSync'](_0x4ab1fd,_0x225468);},'readdirSync':_0x46ba7b=>a113_0x126da7[a113_0xe03327(0x1fb)](_0x46ba7b),'statSync':_0x442964=>{const _0x168983=a113_0xe03327,_0x140a85=a113_0x126da7[_0x168983(0x1ec)](_0x442964);return{'isDirectory':()=>_0x140a85[_0x168983(0x201)](),'isFile':()=>_0x140a85['isFile']()};},'unlinkSync':_0x12b47b=>a113_0x126da7[a113_0xe03327(0x1f5)](_0x12b47b)};
1
+ const a113_0x38e220=a113_0x32b5;function a113_0x200d(){const _0x2dde94=['utf-8','1727670RDyzEA','unlink','5165153dxjBrg','writeFile','stat','readFileSync','existsSync','readFile','8wTILXF','isFile','unlinkSync','isDirectory','readdir','mkdirSync','1238598YCQhMS','readdirSync','21432lanvTQ','1NRapnY','45aMwhsD','statSync','259962iOizdR','472BMoNfT','5838390nAuQCO','36tvDxiz','977295RPmGkX'];a113_0x200d=function(){return _0x2dde94;};return a113_0x200d();}function a113_0x32b5(_0x16ba7f,_0x251e3d){_0x16ba7f=_0x16ba7f-0x1a6;const _0x200d87=a113_0x200d();let _0x32b50f=_0x200d87[_0x16ba7f];return _0x32b50f;}(function(_0x1e91c9,_0x5bba8c){const _0x4d7d6c=a113_0x32b5,_0x33f704=_0x1e91c9();while(!![]){try{const _0x5d19cd=parseInt(_0x4d7d6c(0x1b7))/0x1*(parseInt(_0x4d7d6c(0x1b4))/0x2)+-parseInt(_0x4d7d6c(0x1b6))/0x3*(parseInt(_0x4d7d6c(0x1bb))/0x4)+-parseInt(_0x4d7d6c(0x1b8))/0x5*(-parseInt(_0x4d7d6c(0x1ba))/0x6)+-parseInt(_0x4d7d6c(0x1a8))/0x7+parseInt(_0x4d7d6c(0x1ae))/0x8*(parseInt(_0x4d7d6c(0x1bc))/0x9)+parseInt(_0x4d7d6c(0x1a6))/0xa+-parseInt(_0x4d7d6c(0x1be))/0xb*(-parseInt(_0x4d7d6c(0x1bd))/0xc);if(_0x5d19cd===_0x5bba8c)break;else _0x33f704['push'](_0x33f704['shift']());}catch(_0x512c53){_0x33f704['push'](_0x33f704['shift']());}}}(a113_0x200d,0x7e11f));import*as a113_0x29ed07 from'node:fs';import*as a113_0x30dd6b from'node:fs/promises';export const nodeFileSystem={'readFile':_0x3dd8c9=>a113_0x30dd6b[a113_0x38e220(0x1ad)](_0x3dd8c9,'utf-8'),'writeFile':(_0x5dc06f,_0x14fb2f)=>a113_0x30dd6b[a113_0x38e220(0x1a9)](_0x5dc06f,_0x14fb2f,a113_0x38e220(0x1bf)),'exists':async _0x4211b5=>{try{return await a113_0x30dd6b['access'](_0x4211b5),!![];}catch{return![];}},'mkdir':async(_0x272444,_0x202d44)=>{await a113_0x30dd6b['mkdir'](_0x272444,_0x202d44);},'readdir':_0x29fdd3=>a113_0x30dd6b[a113_0x38e220(0x1b2)](_0x29fdd3),'stat':async _0x5cec37=>{const _0x5b109b=a113_0x38e220,_0x140f19=await a113_0x30dd6b[_0x5b109b(0x1aa)](_0x5cec37);return{'isDirectory':()=>_0x140f19[_0x5b109b(0x1b1)](),'isFile':()=>_0x140f19[_0x5b109b(0x1af)]()};},'unlink':_0x2ea679=>a113_0x30dd6b[a113_0x38e220(0x1a7)](_0x2ea679)};export const nodeFileSystemSync={'readFileSync':_0x35b05f=>a113_0x29ed07[a113_0x38e220(0x1ab)](_0x35b05f,a113_0x38e220(0x1bf)),'writeFileSync':(_0xc8a9e1,_0x378b1b)=>a113_0x29ed07['writeFileSync'](_0xc8a9e1,_0x378b1b,a113_0x38e220(0x1bf)),'existsSync':_0x410edd=>a113_0x29ed07[a113_0x38e220(0x1ac)](_0x410edd),'mkdirSync':(_0x1e030f,_0xf3fc34)=>{const _0x5ea0c2=a113_0x38e220;a113_0x29ed07[_0x5ea0c2(0x1b3)](_0x1e030f,_0xf3fc34);},'readdirSync':_0x444d8a=>a113_0x29ed07[a113_0x38e220(0x1b5)](_0x444d8a),'statSync':_0x372c53=>{const _0x560fd0=a113_0x38e220,_0x12f83e=a113_0x29ed07[_0x560fd0(0x1b9)](_0x372c53);return{'isDirectory':()=>_0x12f83e[_0x560fd0(0x1b1)](),'isFile':()=>_0x12f83e[_0x560fd0(0x1af)]()};},'unlinkSync':_0x27ccf7=>a113_0x29ed07[a113_0x38e220(0x1b0)](_0x27ccf7)};
package/dist/sdk/job.js CHANGED
@@ -1 +1 @@
1
- const a115_0x29cee4=a115_0x4ece;function a115_0x3546(){const _0x5e6bf0=['updated_at','4824720MXUpxD','client','100yPnNaJ','map','6590ZdbslE','3882RUCOMk','list','2136JETYOS','show','cancelJob','69619eRBkpB','end_at','20137EVuwWb','submitPrestoJob','created_at','showJob','7125hlHbOJ','submitHiveJob','943075mBDXbp','kill','\x20UTC','80JWzPvz','test','start_at','getUserInfo','98hibCwp','replace','hive','200493LYXvzX'];a115_0x3546=function(){return _0x5e6bf0;};return a115_0x3546();}(function(_0x563e5c,_0x36779c){const _0x477aa9=a115_0x4ece,_0x59ddb4=_0x563e5c();while(!![]){try{const _0x414d93=parseInt(_0x477aa9(0x1e5))/0x1*(-parseInt(_0x477aa9(0x1d4))/0x2)+-parseInt(_0x477aa9(0x1e9))/0x3*(parseInt(_0x477aa9(0x1db))/0x4)+parseInt(_0x477aa9(0x1dd))/0x5*(parseInt(_0x477aa9(0x1de))/0x6)+-parseInt(_0x477aa9(0x1eb))/0x7+-parseInt(_0x477aa9(0x1ee))/0x8*(-parseInt(_0x477aa9(0x1d7))/0x9)+-parseInt(_0x477aa9(0x1d9))/0xa+parseInt(_0x477aa9(0x1e3))/0xb*(parseInt(_0x477aa9(0x1e0))/0xc);if(_0x414d93===_0x36779c)break;else _0x59ddb4['push'](_0x59ddb4['shift']());}catch(_0x2a362f){_0x59ddb4['push'](_0x59ddb4['shift']());}}}(a115_0x3546,0x838a9));import{TDApiClient}from'./client/td-api-client.js';function normalizeTimestamp(_0x2dcba4){const _0x4a484e=a115_0x4ece;if(!_0x2dcba4)return undefined;if(/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}/[_0x4a484e(0x1d1)](_0x2dcba4))return _0x2dcba4;return _0x2dcba4[_0x4a484e(0x1d5)](_0x4a484e(0x1ed),'Z')['replace']('\x20','T');}function a115_0x4ece(_0x5e5367,_0x14ca2b){_0x5e5367=_0x5e5367-0x1d1;const _0x354657=a115_0x3546();let _0x4eceb7=_0x354657[_0x5e5367];return _0x4eceb7;}export class JobSDK{[a115_0x29cee4(0x1da)];constructor(_0x5d2dff){const _0x365b1a=a115_0x29cee4;this[_0x365b1a(0x1da)]=new TDApiClient(_0x5d2dff);}async[a115_0x29cee4(0x1df)](_0xee6df0){const _0x17128b=a115_0x29cee4,_0x1ec1b8=await this[_0x17128b(0x1da)]['listJobs'](_0xee6df0);return _0x1ec1b8[_0x17128b(0x1dc)](_0x1a1e13=>({..._0x1a1e13,'created_at':normalizeTimestamp(_0x1a1e13[_0x17128b(0x1e7)]),'updated_at':normalizeTimestamp(_0x1a1e13[_0x17128b(0x1d8)]),'start_at':normalizeTimestamp(_0x1a1e13['start_at']),'end_at':normalizeTimestamp(_0x1a1e13[_0x17128b(0x1e4)])}));}async[a115_0x29cee4(0x1e1)](_0x8b3063){const _0x17d864=a115_0x29cee4,_0x59053b=await this[_0x17d864(0x1da)][_0x17d864(0x1e8)](_0x8b3063);return{..._0x59053b,'created_at':normalizeTimestamp(_0x59053b[_0x17d864(0x1e7)]),'updated_at':normalizeTimestamp(_0x59053b['updated_at']),'start_at':normalizeTimestamp(_0x59053b[_0x17d864(0x1d2)]),'end_at':normalizeTimestamp(_0x59053b['end_at'])};}async[a115_0x29cee4(0x1ec)](_0x3d80d8){const _0x567c8c=a115_0x29cee4;await this[_0x567c8c(0x1da)][_0x567c8c(0x1e2)](_0x3d80d8);}async['submit'](_0x4abd10,_0x314011,_0x50408a='trino',_0xd2229d){const _0x1eeef9=a115_0x29cee4;return _0x50408a===_0x1eeef9(0x1d6)?await this[_0x1eeef9(0x1da)][_0x1eeef9(0x1ea)](_0x4abd10,_0x314011,_0xd2229d):await this[_0x1eeef9(0x1da)][_0x1eeef9(0x1e6)](_0x4abd10,_0x314011,_0xd2229d);}async['result'](_0x4401b9){return await this['client']['getJobResult'](_0x4401b9);}async[a115_0x29cee4(0x1d3)](){const _0x1f05b2=a115_0x29cee4;return await this[_0x1f05b2(0x1da)][_0x1f05b2(0x1d3)]();}}
1
+ const a115_0xd0112b=a115_0x1a50;(function(_0x8bb2b3,_0x14f0b3){const _0x45e333=a115_0x1a50,_0x3f4fb0=_0x8bb2b3();while(!![]){try{const _0x359c8a=-parseInt(_0x45e333(0x81))/0x1*(-parseInt(_0x45e333(0x88))/0x2)+-parseInt(_0x45e333(0x84))/0x3+parseInt(_0x45e333(0x87))/0x4+parseInt(_0x45e333(0x73))/0x5+parseInt(_0x45e333(0x7a))/0x6*(parseInt(_0x45e333(0x85))/0x7)+parseInt(_0x45e333(0x7b))/0x8+-parseInt(_0x45e333(0x77))/0x9;if(_0x359c8a===_0x14f0b3)break;else _0x3f4fb0['push'](_0x3f4fb0['shift']());}catch(_0x4709ca){_0x3f4fb0['push'](_0x3f4fb0['shift']());}}}(a115_0x1355,0x1d03f));import{TDApiClient}from'./client/td-api-client.js';function a115_0x1a50(_0xb8244f,_0x4b2619){_0xb8244f=_0xb8244f-0x73;const _0x1355a2=a115_0x1355();let _0x1a5038=_0x1355a2[_0xb8244f];return _0x1a5038;}function a115_0x1355(){const _0x11de32=['submit','6cMibUu','1412104NACLOL','\x20UTC','end_at','map','hive','trino','1oRTkKG','submitHiveJob','client','210324UcDLdN','637161VDiSOf','cancelJob','525324PQmQxv','395168rgujrv','show','submitPrestoJob','1153685yPaPZr','created_at','test','replace','5744097kGZIIQ','start_at'];a115_0x1355=function(){return _0x11de32;};return a115_0x1355();}function normalizeTimestamp(_0x5a1271){const _0x5c0054=a115_0x1a50;if(!_0x5a1271)return undefined;if(/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}/[_0x5c0054(0x75)](_0x5a1271))return _0x5a1271;return _0x5a1271[_0x5c0054(0x76)](_0x5c0054(0x7c),'Z')[_0x5c0054(0x76)]('\x20','T');}export class JobSDK{['client'];constructor(_0x4574cc){this['client']=new TDApiClient(_0x4574cc);}async['list'](_0xe2fe56){const _0x4482d9=a115_0x1a50,_0x285cc=await this['client']['listJobs'](_0xe2fe56);return _0x285cc[_0x4482d9(0x7e)](_0x253de0=>({..._0x253de0,'created_at':normalizeTimestamp(_0x253de0['created_at']),'updated_at':normalizeTimestamp(_0x253de0['updated_at']),'start_at':normalizeTimestamp(_0x253de0[_0x4482d9(0x78)]),'end_at':normalizeTimestamp(_0x253de0['end_at'])}));}async[a115_0xd0112b(0x89)](_0x810d8e){const _0x100731=a115_0xd0112b,_0x71a7d4=await this[_0x100731(0x83)]['showJob'](_0x810d8e);return{..._0x71a7d4,'created_at':normalizeTimestamp(_0x71a7d4[_0x100731(0x74)]),'updated_at':normalizeTimestamp(_0x71a7d4['updated_at']),'start_at':normalizeTimestamp(_0x71a7d4[_0x100731(0x78)]),'end_at':normalizeTimestamp(_0x71a7d4[_0x100731(0x7d)])};}async['kill'](_0x325f44){const _0x455892=a115_0xd0112b;await this['client'][_0x455892(0x86)](_0x325f44);}async[a115_0xd0112b(0x79)](_0x1d9b65,_0x16f1bb,_0x373b70=a115_0xd0112b(0x80),_0x2b32f8){const _0xbe29b=a115_0xd0112b;return _0x373b70===_0xbe29b(0x7f)?await this[_0xbe29b(0x83)][_0xbe29b(0x82)](_0x1d9b65,_0x16f1bb,_0x2b32f8):await this[_0xbe29b(0x83)][_0xbe29b(0x8a)](_0x1d9b65,_0x16f1bb,_0x2b32f8);}async['result'](_0x20d873){const _0xeb4bda=a115_0xd0112b;return await this[_0xeb4bda(0x83)]['getJobResult'](_0x20d873);}async['getUserInfo'](){const _0x1ab241=a115_0xd0112b;return await this[_0x1ab241(0x83)]['getUserInfo']();}}
@@ -1 +1 @@
1
- const a116_0x2b6632=a116_0x411a;(function(_0x296be8,_0x59eae5){const _0x528516=a116_0x411a,_0xa02524=_0x296be8();while(!![]){try{const _0x56d0f5=parseInt(_0x528516(0x208))/0x1*(-parseInt(_0x528516(0x1dd))/0x2)+parseInt(_0x528516(0x1f0))/0x3+-parseInt(_0x528516(0x1ef))/0x4*(parseInt(_0x528516(0x220))/0x5)+-parseInt(_0x528516(0x1d5))/0x6+parseInt(_0x528516(0x21e))/0x7*(parseInt(_0x528516(0x201))/0x8)+parseInt(_0x528516(0x1e9))/0x9+-parseInt(_0x528516(0x238))/0xa*(-parseInt(_0x528516(0x230))/0xb);if(_0x56d0f5===_0x59eae5)break;else _0xa02524['push'](_0xa02524['shift']());}catch(_0x4d0c57){_0xa02524['push'](_0xa02524['shift']());}}}(a116_0x136c,0x3e681));import{CDPApiClient}from'./client/cdp-api-client.js';import{SDKError,ErrorCode,isHttp404Error}from'./errors.js';function getBundleId(_0x59d961){const _0x40d2a4=a116_0x411a;return _0x59d961[_0x40d2a4(0x1e0)]??_0x59d961[_0x40d2a4(0x1e1)]?.['journeyBundleId']??undefined;}function a116_0x136c(){const _0x39a39b=['Journey\x20not\x20found:\x20','Excluded\x20profiles','versionNumber','get','getConversionSankeyChart','Wait','launched','all','activation','Cannot\x20create\x20a\x20new\x20version:\x20this\x20journey\x20does\x20not\x20belong\x20to\x20a\x20bundle','fetchTrafficRaw','push','resolveJourneyId','goal','find','cdp_customer_id','listJourneys','reduce','goalSize','updateJourney','intime_goal','excluded','toLowerCase','relationships','stage','enteredSize','DecisionPoint','getActivation','type','audienceId','createdAt','listActivations','2968530OcHHmz','variant','milestoneInflux','exitCriteria','segmentFolderId','INVALID_ARGUMENT','Journey\x20activation\x20step\x20not\x20found:\x20','AbTest','72486STEjfc','simulation','entryCriteria','journeyBundleId','attributes','getActivationSankeyChart','from','folder-segment','history','cdp_audience_','journey_','outtime_journey','2068074YBFgZX','pauseJourney','client','exitCriterias','journey','getJourneyStatistics','680684eeExYB','1495575YEWVDB','update','steps','listJourneysFromParentSegment','pause','jumpInflux','createJourneyActivation','state','listJourneysWithFolders','getBundle','draft','includeAllVersions','time','parentFolder','journeyStages','latestJourneyId','create','16VGVkjZ','goalInflux','set','timedOutPath','branches','createActivation','listVersions','1AgjyTW','listEntitiesByFolder','listActivationsFlat','variants','getParentSegmentFull','createJourney','applyVersionDeduplication','waitCondition','listJourneysWithDetails','listSegmentFolders','getJourneyActivation','journeyBundleName','data','length','add','outtime_stage_','exitInflux','segmentId','getJourney','paused','string','conditionSegmentId','517342iPfiOL','listJourneysWithDetailsFromParentSegment','15YcWtLt','size','entries','idx-','getStatistics','journeyId','name','map','Use\x20\x22tdx\x20journey\x20list\x22\x20to\x20see\x20available\x20journeys','getColumnMapping','resumeJourney','conversion','conditions','journeys','branch','step','272415VCLPyv','updatedAt','isArray','getJourneyBundle','out','has','getTrafficData','milestone','170zZFsMu','limit','ABTest','NOT_FOUND','description','replace','sort','exitOrJumpSize','filter','\x20in\x20journey\x20','intime_stage_','JOURNEY_NOT_FOUND','checkJourneyAppendable','_exit_','flat','includeHistory','no-bundle-','entryInflux'];a116_0x136c=function(){return _0x39a39b;};return a116_0x136c();}function getVersionNumber(_0x422527){const _0x21eddc=a116_0x411a;return _0x422527['versionNumber']??_0x422527[_0x21eddc(0x1e1)]?.[_0x21eddc(0x24c)]??0x0;}function getState(_0x467075){const _0x2c272a=a116_0x411a;return _0x467075[_0x2c272a(0x1f7)]??_0x467075['attributes']?.[_0x2c272a(0x1f7)];}export function deduplicateJourneysByBundle(_0x5f2e86){const _0x175a88=a116_0x411a,_0x8b94db=new Map();let _0x3040df=0x0;for(const _0x541603 of _0x5f2e86){const _0x7f87d7=getBundleId(_0x541603);if(!_0x7f87d7){const _0x517758=_0x175a88(0x248)+(_0x541603['id']??_0x175a88(0x223)+_0x3040df++);_0x8b94db['set'](_0x517758,_0x541603);continue;}const _0x3890b4=_0x8b94db[_0x175a88(0x24d)](_0x7f87d7);if(!_0x3890b4)_0x8b94db[_0x175a88(0x203)](_0x7f87d7,_0x541603);else{const _0x4a3b2d=getState(_0x3890b4)===_0x175a88(0x250),_0x3fd44e=getState(_0x541603)===_0x175a88(0x250);if(_0x3fd44e&&!_0x4a3b2d)_0x8b94db[_0x175a88(0x203)](_0x7f87d7,_0x541603);else{if(!_0x3fd44e&&_0x4a3b2d){}else{const _0x3ba04c=getVersionNumber(_0x3890b4),_0x3b6417=getVersionNumber(_0x541603);_0x3b6417>_0x3ba04c&&_0x8b94db[_0x175a88(0x203)](_0x7f87d7,_0x541603);}}}}return Array[_0x175a88(0x1e3)](_0x8b94db['values']());}const VALID_JOURNEY_STATES=new Set(['draft',a116_0x2b6632(0x1de),a116_0x2b6632(0x250)]);export function parseJourneyState(_0x262fb2){const _0x120db8=a116_0x2b6632;if(typeof _0x262fb2===_0x120db8(0x21c)&&VALID_JOURNEY_STATES[_0x120db8(0x235)](_0x262fb2))return _0x262fb2;return _0x120db8(0x1fa);}export function entityToJourneyListItem(_0x59a1cd,_0x1ffaf9){const _0x1e8f90=a116_0x2b6632,_0x42fc18=_0x59a1cd['attributes'];return{'id':_0x59a1cd['id'],'name':_0x42fc18[_0x1e8f90(0x226)]??'','journeyBundleName':_0x42fc18['journeyBundleName']??_0x42fc18['name']??'','journeyBundleId':_0x42fc18['journeyBundleId']??'','versionNumber':_0x42fc18[_0x1e8f90(0x24c)],'description':_0x42fc18[_0x1e8f90(0x23c)]??null,'state':parseJourneyState(_0x42fc18[_0x1e8f90(0x1f7)]),'paused':_0x42fc18[_0x1e8f90(0x21b)]??![],'audienceId':_0x1ffaf9,'folderId':_0x42fc18[_0x1e8f90(0x1d9)]??_0x59a1cd[_0x1e8f90(0x261)]?.[_0x1e8f90(0x1fd)]?.['data']?.['id']??null,'createdAt':_0x42fc18['createdAt']??'','updatedAt':_0x42fc18['updatedAt']??''};}function convertToColumnId(_0x2272c0){const _0x2f14f0=a116_0x2b6632;return _0x2272c0[_0x2f14f0(0x23d)](/-/g,'_');}function getStepEntries(_0x2841a9){const _0x1908f9=a116_0x2b6632;if(!_0x2841a9)return[];if(Array['isArray'](_0x2841a9))return _0x2841a9[_0x1908f9(0x227)](_0x2c7e27=>[_0x2c7e27['id'],_0x2c7e27]);return Object[_0x1908f9(0x222)](_0x2841a9);}export function flattenJourneyActivation(_0x2b3b4b){const _0x438356=a116_0x2b6632,{activationParams:_0x4f9420,activationId:_0x5dfd12,runAfterJourneyRefresh:_0x5038d2}=_0x2b3b4b[_0x438356(0x1e1)];return{'id':_0x2b3b4b['id'],'activationId':_0x5dfd12,'runAfterJourneyRefresh':_0x5038d2,..._0x4f9420};}function a116_0x411a(_0x5c5184,_0x1ad873){_0x5c5184=_0x5c5184-0x1ce;const _0x136ca2=a116_0x136c();let _0x411a7e=_0x136ca2[_0x5c5184];return _0x411a7e;}function col(_0x31fde3,_0x1dffae={}){return{'column':_0x31fde3,'direction':null,'stageIndex':null,'stageName':null,'category':'fixed','stepType':null,'stepName':null,'stepId':null,'detail':null,..._0x1dffae};}export function generateColumnMapping(_0x774918){const _0x5830b7=a116_0x2b6632,_0x23beed=[];_0x23beed[_0x5830b7(0x255)](col(_0x5830b7(0x259))),_0x23beed[_0x5830b7(0x255)](col('intime_journey',{'direction':'in','category':_0x5830b7(0x1ed)})),_0x23beed[_0x5830b7(0x255)](col(_0x5830b7(0x1e8),{'direction':'out','category':_0x5830b7(0x1ed)}));_0x774918['attributes'][_0x5830b7(0x257)]&&_0x23beed['push'](col(_0x5830b7(0x25e),{'direction':'in','category':'goal','detail':_0x774918['attributes']['goal'][_0x5830b7(0x226)]||null}));const _0x14eb48=_0x774918[_0x5830b7(0x1e1)]['journeyStages']||[];for(let _0x23b7ca=0x0;_0x23b7ca<_0x14eb48['length'];_0x23b7ca++){const _0xd0f0c6=_0x14eb48[_0x23b7ca],_0xd5f352=_0xd0f0c6['name'],_0x1664a9={'stageIndex':_0x23b7ca,'stageName':_0xd5f352},_0x5d023d=_0xd0f0c6[_0x5830b7(0x1df)]?.[_0x5830b7(0x226)]||null;_0x23beed['push'](col(_0x5830b7(0x242)+_0x23b7ca,{..._0x1664a9,'direction':'in','category':'stage','detail':_0x5d023d})),_0x23beed[_0x5830b7(0x255)](col(_0x5830b7(0x217)+_0x23b7ca,{..._0x1664a9,'direction':_0x5830b7(0x234),'category':_0x5830b7(0x262),'detail':_0x5d023d}));_0xd0f0c6[_0x5830b7(0x237)]&&_0x23beed[_0x5830b7(0x255)](col(_0x5830b7(0x242)+_0x23b7ca+'_milestone',{..._0x1664a9,'direction':'in','category':_0x5830b7(0x237),'detail':_0xd0f0c6['milestone']['name']||null}));const _0x45579b=_0xd0f0c6[_0x5830b7(0x1ec)]||_0xd0f0c6[_0x5830b7(0x1d8)]||[];for(let _0x160a1e=0x0;_0x160a1e<_0x45579b['length'];_0x160a1e++){_0x23beed[_0x5830b7(0x255)](col(_0x5830b7(0x242)+_0x23b7ca+_0x5830b7(0x245)+_0x160a1e,{..._0x1664a9,'direction':'in','category':'exit_criteria','detail':_0x45579b[_0x160a1e][_0x5830b7(0x226)]||null}));}const _0x39fdc3=getStepEntries(_0xd0f0c6[_0x5830b7(0x1f2)]);for(const [_0x556552,_0xb4965c]of _0x39fdc3){const _0x4bdc19=convertToColumnId(_0x556552),_0x1e1868=_0xb4965c[_0x5830b7(0x1d1)]||null,_0xc12fc8=_0xb4965c[_0x5830b7(0x226)]||null,_0x17a048={..._0x1664a9,'stepType':_0x1e1868,'stepName':_0xc12fc8,'stepId':_0x556552};_0x23beed['push'](col(_0x5830b7(0x242)+_0x23b7ca+'_'+_0x4bdc19,{..._0x17a048,'direction':'in','category':_0x5830b7(0x22f)})),_0x23beed['push'](col(_0x5830b7(0x217)+_0x23b7ca+'_'+_0x4bdc19,{..._0x17a048,'direction':'out','category':_0x5830b7(0x22f)}));if(_0xb4965c[_0x5830b7(0x1d1)]===_0x5830b7(0x1cf)&&_0xb4965c[_0x5830b7(0x205)])for(const _0x3f6438 of _0xb4965c[_0x5830b7(0x205)]){_0x3f6438[_0x5830b7(0x219)]&&_0x23beed[_0x5830b7(0x255)](col(_0x5830b7(0x242)+_0x23b7ca+'_'+_0x4bdc19+'_'+_0x3f6438[_0x5830b7(0x219)],{..._0x17a048,'direction':'in','category':'branch','detail':_0x3f6438[_0x5830b7(0x226)]||(_0x3f6438[_0x5830b7(0x25f)]?_0x5830b7(0x24b):null)}));}if((_0xb4965c[_0x5830b7(0x1d1)]===_0x5830b7(0x1dc)||_0xb4965c[_0x5830b7(0x1d1)]===_0x5830b7(0x23a))&&_0xb4965c[_0x5830b7(0x20b)])for(const _0x5b2760 of _0xb4965c['variants']){_0x5b2760['id']&&_0x23beed[_0x5830b7(0x255)](col(_0x5830b7(0x242)+_0x23b7ca+'_'+_0x4bdc19+'_variant_'+convertToColumnId(_0x5b2760['id']),{..._0x17a048,'direction':'in','category':_0x5830b7(0x1d6),'detail':_0x5b2760[_0x5830b7(0x226)]||null}));}if(_0xb4965c['type']==='WaitStep'||_0xb4965c[_0x5830b7(0x1d1)]===_0x5830b7(0x24f)){const _0x1fb003=[];if(_0xb4965c['conditionSegmentId'])_0x1fb003[_0x5830b7(0x255)](_0xb4965c[_0x5830b7(0x21d)]);else{if(Array[_0x5830b7(0x232)](_0xb4965c[_0x5830b7(0x22c)]))for(const _0x5aec1b of _0xb4965c[_0x5830b7(0x22c)]){_0x5aec1b['segmentId']&&!_0x5aec1b[_0x5830b7(0x204)]&&_0x1fb003[_0x5830b7(0x255)](_0x5aec1b[_0x5830b7(0x219)]);}else _0xb4965c[_0x5830b7(0x20f)]?.[_0x5830b7(0x219)]&&_0x1fb003[_0x5830b7(0x255)](_0xb4965c[_0x5830b7(0x20f)][_0x5830b7(0x219)]);}for(const _0x128a3f of _0x1fb003){_0x23beed['push'](col(_0x5830b7(0x242)+_0x23b7ca+'_'+_0x4bdc19+'_'+_0x128a3f,{..._0x17a048,'direction':'in','category':_0x5830b7(0x22e)}));}}}}return _0x23beed['push'](col(_0x5830b7(0x1fc))),_0x23beed;}export function aggregateJourneyHistory(_0x5573b4){const _0x197a2a=a116_0x2b6632,_0xe5fa85=_0x5573b4[_0x197a2a(0x25b)]((_0x5c2e21,_0xd5f5b9)=>_0x5c2e21+(_0xd5f5b9[_0x197a2a(0x249)]??0x0),0x0),_0x3f2eb4=_0x5573b4[_0x197a2a(0x25b)]((_0x21f3db,_0x283cba)=>_0x21f3db+(_0x283cba[_0x197a2a(0x202)]??0x0),0x0),_0x2d7cdc=_0x5573b4[_0x197a2a(0x25b)]((_0x398be3,_0x19e215)=>_0x398be3+((_0x19e215[_0x197a2a(0x218)]??0x0)+(_0x19e215[_0x197a2a(0x1f5)]??0x0)),0x0),_0x307408=_0x5573b4[_0x5573b4[_0x197a2a(0x215)]-0x1];return{'size':_0x307408?.[_0x197a2a(0x221)]??0x0,'entered':_0xe5fa85,'goal_achieved':_0x3f2eb4,'completion_rate':_0x3f2eb4&&_0xe5fa85?_0x3f2eb4/_0xe5fa85*0x64:0x0,'exit_or_jump':_0x2d7cdc,'exit_or_jump_rate':_0x2d7cdc&&_0xe5fa85?_0x2d7cdc/_0xe5fa85*0x64:0x0};}export function aggregateStageHistory(_0x4f0ef1){const _0x1e98ff=a116_0x2b6632,_0x311ba8=_0x4f0ef1['reduce']((_0x430696,_0x457c8e)=>_0x430696+(_0x457c8e[_0x1e98ff(0x249)]??0x0),0x0),_0x134a26=_0x4f0ef1[_0x1e98ff(0x25b)]((_0x2482ac,_0x447fcd)=>_0x2482ac+(_0x447fcd[_0x1e98ff(0x1d7)]??0x0),0x0),_0xf1fbc2=_0x4f0ef1[_0x1e98ff(0x25b)]((_0x4899ec,_0x194fba)=>_0x4899ec+((_0x194fba[_0x1e98ff(0x218)]??0x0)+(_0x194fba[_0x1e98ff(0x1f5)]??0x0)),0x0),_0x4f6e74=_0x4f0ef1[_0x4f0ef1[_0x1e98ff(0x215)]-0x1];return{'size':_0x4f6e74?.[_0x1e98ff(0x221)]??0x0,'entered':_0x311ba8,'milestone':_0x134a26,'milestone_rate':_0x134a26&&_0x311ba8?_0x134a26/_0x311ba8*0x64:0x0,'exit_or_jump':_0xf1fbc2,'exit_or_jump_rate':_0xf1fbc2&&_0x311ba8?_0xf1fbc2/_0x311ba8*0x64:0x0};}export function assembleJourneyStats(_0x411552,_0x3f6e0f){const _0x1412f4=a116_0x2b6632,_0x199c1f=!!(_0x3f6e0f?.[_0x1412f4(0x1e3)]||_0x3f6e0f?.['to'])&&!!_0x411552[_0x1412f4(0x1e5)]?.['length'];if(_0x199c1f){const _0x4aee3a=aggregateJourneyHistory(_0x411552[_0x1412f4(0x1e5)]),_0x1934c3={'journey_id':_0x411552[_0x1412f4(0x225)],..._0x3f6e0f?.['from']&&{'from':_0x3f6e0f[_0x1412f4(0x1e3)]},..._0x3f6e0f?.['to']&&{'to':_0x3f6e0f['to']},..._0x4aee3a};return _0x3f6e0f?.[_0x1412f4(0x247)]&&(_0x1934c3[_0x1412f4(0x1e5)]=_0x411552['history']),_0x1934c3;}return{'journey_id':_0x411552['journeyId'],'size':_0x411552[_0x1412f4(0x221)],'entered':_0x411552[_0x1412f4(0x1ce)],'goal_achieved':_0x411552[_0x1412f4(0x25c)],'completion_rate':_0x411552['completionRate'],'exit_or_jump':_0x411552[_0x1412f4(0x23f)],'exit_or_jump_rate':_0x411552['exitOrJumpRate']};}export function formatVersionsFromBundle(_0x46eabb){const _0x22ab71=a116_0x2b6632,_0x5ab80b=_0x46eabb[_0x22ab71(0x22d)]['map'](_0x54fd09=>({'journeyId':_0x54fd09['id'],'versionNumber':_0x54fd09[_0x22ab71(0x1e1)][_0x22ab71(0x24c)]??0x0,'name':_0x54fd09[_0x22ab71(0x1e1)][_0x22ab71(0x226)],'state':_0x54fd09[_0x22ab71(0x1e1)][_0x22ab71(0x1f7)],'paused':_0x54fd09[_0x22ab71(0x1e1)]['paused'],'createdAt':_0x54fd09[_0x22ab71(0x1e1)][_0x22ab71(0x1d3)],'updatedAt':_0x54fd09[_0x22ab71(0x1e1)][_0x22ab71(0x231)]}));return _0x5ab80b[_0x22ab71(0x23e)]((_0x3c6e2d,_0x269b32)=>_0x3c6e2d[_0x22ab71(0x24c)]-_0x269b32[_0x22ab71(0x24c)]),_0x5ab80b;}export function synthesizePreBundleVersion(_0x2c170b){const _0x33b386=a116_0x2b6632;return{'journeyId':_0x2c170b['id'],'versionNumber':0x1,'name':_0x2c170b[_0x33b386(0x1e1)][_0x33b386(0x226)],'state':_0x2c170b['attributes']['state'],'paused':_0x2c170b[_0x33b386(0x1e1)][_0x33b386(0x21b)],'createdAt':_0x2c170b[_0x33b386(0x1e1)][_0x33b386(0x1d3)],'updatedAt':_0x2c170b[_0x33b386(0x1e1)][_0x33b386(0x231)]};}export function buildStageNameMap(_0x4df04b){const _0x318155=a116_0x2b6632;return new Map(_0x4df04b[_0x318155(0x1e1)][_0x318155(0x1fe)]?.['map'](_0x535c07=>[_0x535c07['id'],_0x535c07[_0x318155(0x226)]])??[]);}export class JourneySDK{['client'];constructor(_0x2e6e15){const _0x2af562=a116_0x2b6632;this[_0x2af562(0x1eb)]=new CDPApiClient(_0x2e6e15);}[a116_0x2b6632(0x20e)](_0x42afb0,_0xc50e7){return _0xc50e7?_0x42afb0:deduplicateJourneysByBundle(_0x42afb0);}async['listJourneysWithDetails'](_0x33b67f,_0x163b39){const _0x30f085=a116_0x2b6632;try{const _0x3f8e2e=await this[_0x30f085(0x1eb)][_0x30f085(0x210)](_0x33b67f);return{'journeys':this['applyVersionDeduplication'](_0x3f8e2e[_0x30f085(0x22d)],_0x163b39),'activationStepsById':_0x3f8e2e['activationStepsById']};}catch(_0x5811f4){if(isHttp404Error(_0x5811f4))return{'journeys':[],'activationStepsById':new Map()};throw _0x5811f4;}}async[a116_0x2b6632(0x1f3)](_0x3bdc05,_0x29f8d5,_0xa028a2){const _0x141c1b=a116_0x2b6632;let _0x18e25d=_0x29f8d5;if(!_0x18e25d)try{const _0x244105=await this['client'][_0x141c1b(0x20c)](_0x3bdc05);_0x18e25d=_0x244105['rootFolderId']??undefined;}catch(_0x5f3d58){if(isHttp404Error(_0x5f3d58))return[];throw _0x5f3d58;}if(!_0x18e25d)return[];let _0x5a5eea;if(_0xa028a2?.[_0x141c1b(0x1fb)]){const _0x1201cc=await this[_0x141c1b(0x1eb)][_0x141c1b(0x211)](_0x3bdc05),_0x49bef2=_0x1201cc['map'](_0x4aab5d=>this['client'][_0x141c1b(0x25a)](_0x4aab5d['id'])),_0x221e1e=await Promise[_0x141c1b(0x251)](_0x49bef2),_0x2b0afe=new Set();_0x5a5eea=_0x221e1e[_0x141c1b(0x246)]()[_0x141c1b(0x240)](_0x130e72=>{const _0x312c0d=_0x141c1b;if(_0x2b0afe[_0x312c0d(0x235)](_0x130e72['id']))return![];return _0x2b0afe[_0x312c0d(0x216)](_0x130e72['id']),!![];});}else{const _0x267018=await this[_0x141c1b(0x1eb)][_0x141c1b(0x209)](_0x18e25d,0x20,![]),_0x1eeb33=_0x267018[_0x141c1b(0x214)],_0x5a9cfb=_0x1eeb33['filter'](_0x89fc4f=>_0x89fc4f[_0x141c1b(0x1d1)]==='journey');_0x5a5eea=_0x5a9cfb['map'](_0x11b5ea=>entityToJourneyListItem(_0x11b5ea,_0x3bdc05));}return this['applyVersionDeduplication'](_0x5a5eea,_0xa028a2?.[_0x141c1b(0x1fb)]);}async[a116_0x2b6632(0x1f8)](_0xd58fe9,_0x531be2,_0x1d4452){const _0x18de60=a116_0x2b6632;if(!_0x531be2)return{'journeys':[],'folders':[]};const _0x20d191=await this[_0x18de60(0x1eb)][_0x18de60(0x209)](_0x531be2,0x20,![]),_0x410026=_0x20d191[_0x18de60(0x214)],_0x2862aa=_0x410026[_0x18de60(0x240)](_0x2a8699=>_0x2a8699[_0x18de60(0x1d1)]===_0x18de60(0x1e4)&&_0x2a8699['id']!==_0x531be2),_0x1632d1=_0x2862aa['map'](_0xa11f75=>({'id':_0xa11f75['id'],'name':_0xa11f75['attributes'][_0x18de60(0x226)]})),_0x1d6926=_0x410026[_0x18de60(0x240)](_0x39f335=>_0x39f335[_0x18de60(0x1d1)]===_0x18de60(0x1ed)),_0x281f43=_0x1d6926[_0x18de60(0x227)](_0x34c84c=>entityToJourneyListItem(_0x34c84c,_0xd58fe9));return{'journeys':this['applyVersionDeduplication'](_0x281f43,_0x1d4452?.[_0x18de60(0x1fb)]),'folders':_0x1632d1};}async[a116_0x2b6632(0x21f)](_0x5b9e94,_0x317635){const _0x5369aa=a116_0x2b6632;let _0x553fb3;try{_0x553fb3=await this[_0x5369aa(0x1eb)][_0x5369aa(0x211)](_0x5b9e94);}catch(_0x44114f){if(isHttp404Error(_0x44114f))return{'journeys':[],'activationStepsById':new Map()};throw _0x44114f;}const _0x344797=_0x553fb3[_0x5369aa(0x227)](async _0x32ec8a=>{const _0xbdf368=_0x5369aa;return await this[_0xbdf368(0x210)](_0x32ec8a['id'],_0x317635?.[_0xbdf368(0x1fb)]);}),_0x1e368f=await Promise['all'](_0x344797),_0x1644ae=new Map(),_0x2a0297=[];for(const _0x343aa3 of _0x1e368f){_0x2a0297['push'](..._0x343aa3[_0x5369aa(0x22d)]);for(const [_0x13dc9e,_0x1b418f]of _0x343aa3['activationStepsById']){_0x1644ae[_0x5369aa(0x203)](_0x13dc9e,_0x1b418f);}}const _0x2a9d76=new Set(),_0x1b958e=_0x2a0297[_0x5369aa(0x240)](_0x1b81f0=>{const _0x2f8c53=_0x5369aa;if(_0x2a9d76[_0x2f8c53(0x235)](_0x1b81f0['id']))return![];return _0x2a9d76['add'](_0x1b81f0['id']),!![];});return{'journeys':this['applyVersionDeduplication'](_0x1b958e,_0x317635?.[_0x5369aa(0x1fb)]),'activationStepsById':_0x1644ae};}async[a116_0x2b6632(0x21a)](_0x27b2bc){const _0xd82696=a116_0x2b6632;try{return await this[_0xd82696(0x1eb)][_0xd82696(0x21a)](_0x27b2bc);}catch(_0x3dd12c){if(isHttp404Error(_0x3dd12c))throw new SDKError(ErrorCode[_0xd82696(0x243)],'Journey\x20not\x20found:\x20'+_0x27b2bc,_0x3dd12c);throw _0x3dd12c;}}async[a116_0x2b6632(0x256)](_0x3c4717,_0x2945ad){const _0x4e027b=a116_0x2b6632,_0x22dec3=await this[_0x4e027b(0x1f3)](_0x3c4717),_0x5b5c6d=_0x22dec3[_0x4e027b(0x258)](_0x212e45=>_0x212e45[_0x4e027b(0x213)][_0x4e027b(0x260)]()===_0x2945ad[_0x4e027b(0x260)]());if(!_0x5b5c6d)throw new SDKError(ErrorCode[_0x4e027b(0x243)],_0x4e027b(0x24a)+_0x2945ad,undefined,{'helpText':_0x4e027b(0x228)});return _0x5b5c6d['id'];}async[a116_0x2b6632(0x224)](_0x4cb65c,_0x3b6699){const _0x4653c5=a116_0x2b6632;try{return await this[_0x4653c5(0x1eb)][_0x4653c5(0x1ee)](_0x4cb65c,_0x3b6699);}catch(_0xcabf2d){if(isHttp404Error(_0xcabf2d))throw new SDKError(ErrorCode['JOURNEY_NOT_FOUND'],_0x4653c5(0x24a)+_0x4cb65c,_0xcabf2d);throw _0xcabf2d;}}async[a116_0x2b6632(0x236)](_0x1bf600,_0x29ca06){const _0x175a01=a116_0x2b6632,_0x57679f={'from':_0x29ca06?.[_0x175a01(0x1e3)],'to':_0x29ca06?.['to'],'limit':_0x29ca06?.[_0x175a01(0x239)]},_0x106a2c=_0x29ca06?.[_0x175a01(0x1d1)]!==_0x175a01(0x22b);try{const [_0x21d947,_0x398a1f]=await Promise['all']([this[_0x175a01(0x254)](_0x1bf600,_0x29ca06?.[_0x175a01(0x1d1)],_0x57679f),_0x106a2c?this[_0x175a01(0x21a)](_0x1bf600):undefined]);if(_0x21d947['activation']&&_0x398a1f){const _0x1cbfb5=buildStageNameMap(_0x398a1f);_0x21d947[_0x175a01(0x252)]=_0x21d947['activation'][_0x175a01(0x227)](_0x335591=>({..._0x335591,'journeyStageName':_0x1cbfb5[_0x175a01(0x24d)](_0x335591['journeyStageId'])??_0x335591['journeyStageId']}));}return _0x21d947;}catch(_0x36c9dc){if(isHttp404Error(_0x36c9dc))throw new SDKError(ErrorCode[_0x175a01(0x243)],_0x175a01(0x24a)+_0x1bf600,_0x36c9dc);throw _0x36c9dc;}}async[a116_0x2b6632(0x254)](_0x241fef,_0xf4dc68,_0x54fe58){const _0x3a9af5=a116_0x2b6632;if(_0xf4dc68===_0x3a9af5(0x22b)){const _0x323971=await this['client'][_0x3a9af5(0x24e)](_0x241fef,_0x54fe58);return{'conversion':_0x323971};}if(_0xf4dc68===_0x3a9af5(0x252)){const _0x48a374=await this[_0x3a9af5(0x1eb)][_0x3a9af5(0x1e2)](_0x241fef,_0x54fe58);return{'activation':_0x48a374};}const [_0x1cc186,_0x26d73b]=await Promise['all']([this['client'][_0x3a9af5(0x24e)](_0x241fef,_0x54fe58),this[_0x3a9af5(0x1eb)][_0x3a9af5(0x1e2)](_0x241fef,_0x54fe58)]);return{'conversion':_0x1cc186,'activation':_0x26d73b};}async[a116_0x2b6632(0x1f4)](_0x389811){const _0x52b2b3=a116_0x2b6632;try{return await this[_0x52b2b3(0x1eb)][_0x52b2b3(0x1ea)](_0x389811);}catch(_0x2737b7){if(isHttp404Error(_0x2737b7))throw new SDKError(ErrorCode[_0x52b2b3(0x243)],'Journey\x20not\x20found:\x20'+_0x389811,_0x2737b7);throw _0x2737b7;}}async['resume'](_0x2e3cf3){const _0x4de691=a116_0x2b6632;try{return await this[_0x4de691(0x1eb)][_0x4de691(0x22a)](_0x2e3cf3);}catch(_0x3a9681){if(isHttp404Error(_0x3a9681))throw new SDKError(ErrorCode[_0x4de691(0x243)],_0x4de691(0x24a)+_0x2e3cf3,_0x3a9681);throw _0x3a9681;}}async[a116_0x2b6632(0x200)](_0xcef90b){const _0x2107f6=a116_0x2b6632;return await this['client'][_0x2107f6(0x20d)](_0xcef90b);}async[a116_0x2b6632(0x1f1)](_0x10cc2f,_0x5cbb40){const _0x497110=a116_0x2b6632;try{return await this[_0x497110(0x1eb)][_0x497110(0x25d)](_0x10cc2f,_0x5cbb40);}catch(_0x5957f5){if(isHttp404Error(_0x5957f5))throw new SDKError(ErrorCode[_0x497110(0x243)],_0x497110(0x24a)+_0x10cc2f,_0x5957f5);throw _0x5957f5;}}async[a116_0x2b6632(0x1d0)](_0x3e64a4,_0xb83590){const _0x3b1352=a116_0x2b6632;try{return await this[_0x3b1352(0x1eb)][_0x3b1352(0x212)](_0x3e64a4,_0xb83590);}catch(_0x3ec8d7){if(isHttp404Error(_0x3ec8d7))throw new SDKError(ErrorCode[_0x3b1352(0x23b)],_0x3b1352(0x1db)+_0xb83590+_0x3b1352(0x241)+_0x3e64a4,_0x3ec8d7);throw _0x3ec8d7;}}async[a116_0x2b6632(0x1d4)](_0x153b7a){try{return await this['client']['listJourneyActivations'](_0x153b7a);}catch(_0x5ebce3){if(isHttp404Error(_0x5ebce3))return[];throw _0x5ebce3;}}async[a116_0x2b6632(0x20a)](_0x30c4ad){const _0x147af8=a116_0x2b6632,_0x29be39=await this[_0x147af8(0x1d4)](_0x30c4ad);return _0x29be39[_0x147af8(0x227)](flattenJourneyActivation);}async[a116_0x2b6632(0x206)](_0x12289c,_0x15065b){const _0xec9e88=a116_0x2b6632;return await this[_0xec9e88(0x1eb)][_0xec9e88(0x1f6)](_0x12289c,_0x15065b);}async[a116_0x2b6632(0x229)](_0x5791f2){const _0x457c9a=a116_0x2b6632,_0x4635a7=await this['getJourney'](_0x5791f2),_0x42bd53=generateColumnMapping(_0x4635a7);return{'journeyId':_0x4635a7['id'],'journeyName':_0x4635a7[_0x457c9a(0x1e1)][_0x457c9a(0x226)],'database':_0x457c9a(0x1e6)+_0x4635a7[_0x457c9a(0x1e1)][_0x457c9a(0x1d2)],'table':_0x457c9a(0x1e7)+_0x4635a7['id'],'columns':_0x42bd53};}async['getBundle'](_0x30da4d){const _0x170be0=a116_0x2b6632;return this[_0x170be0(0x1eb)][_0x170be0(0x233)](_0x30da4d);}async['getLatestJourneyId'](_0x1bb424){const _0x2d6ab6=a116_0x2b6632;if(!_0x1bb424)return undefined;try{const _0x4f247f=await this[_0x2d6ab6(0x1f9)](_0x1bb424);return _0x4f247f['latestJourneyId'];}catch{return undefined;}}async[a116_0x2b6632(0x207)](_0x5690fc){const _0x414eb2=a116_0x2b6632,_0xe8a490=await this[_0x414eb2(0x21a)](_0x5690fc),_0x242651=_0xe8a490[_0x414eb2(0x1e1)][_0x414eb2(0x1e0)];if(!_0x242651)return{'bundleId':'','bundleName':_0xe8a490[_0x414eb2(0x1e1)][_0x414eb2(0x226)],'bundleDescription':_0xe8a490[_0x414eb2(0x1e1)]['description']??null,'latestJourneyId':_0xe8a490['id'],'versions':[synthesizePreBundleVersion(_0xe8a490)]};const _0x25ebd0=await this[_0x414eb2(0x1f9)](_0x242651);return{'bundleId':_0x242651,'bundleName':_0x25ebd0[_0x414eb2(0x226)],'bundleDescription':_0x25ebd0[_0x414eb2(0x23c)]??null,'latestJourneyId':_0x25ebd0[_0x414eb2(0x1ff)],'versions':formatVersionsFromBundle(_0x25ebd0)};}async['createVersion'](_0x308411){const _0xd3bf16=a116_0x2b6632,_0x4442c7=await this['getJourney'](_0x308411),_0x357df3=_0x4442c7['attributes'][_0xd3bf16(0x1e0)];if(!_0x357df3)throw new SDKError(ErrorCode[_0xd3bf16(0x1da)],_0xd3bf16(0x253));await this['client'][_0xd3bf16(0x244)](_0x357df3);const _0x30624f=await this[_0xd3bf16(0x1eb)][_0xd3bf16(0x233)](_0x357df3),_0x12d900=_0x30624f[_0xd3bf16(0x226)]+'\x20v'+(_0x30624f['lastVersionNumber']+0x1);return this['client']['createJourneyVersion'](_0x357df3,{'sourceId':_0x308411,'attributes':{'name':_0x12d900}});}}
1
+ const a116_0x22cd65=a116_0x5618;(function(_0x3c9670,_0x16ae84){const _0x4aa3af=a116_0x5618,_0x17fb2c=_0x3c9670();while(!![]){try{const _0x1f2171=parseInt(_0x4aa3af(0x132))/0x1+-parseInt(_0x4aa3af(0x174))/0x2+-parseInt(_0x4aa3af(0x18b))/0x3+parseInt(_0x4aa3af(0x149))/0x4+-parseInt(_0x4aa3af(0x16c))/0x5+parseInt(_0x4aa3af(0x140))/0x6*(-parseInt(_0x4aa3af(0x167))/0x7)+parseInt(_0x4aa3af(0x17d))/0x8;if(_0x1f2171===_0x16ae84)break;else _0x17fb2c['push'](_0x17fb2c['shift']());}catch(_0x3e8ee9){_0x17fb2c['push'](_0x17fb2c['shift']());}}}(a116_0x402e,0xb5af9));import{CDPApiClient}from'./client/cdp-api-client.js';import{SDKError,ErrorCode,isHttp404Error}from'./errors.js';function getBundleId(_0x2b54ef){const _0x11c9ce=a116_0x5618;return _0x2b54ef[_0x11c9ce(0x191)]??_0x2b54ef['attributes']?.[_0x11c9ce(0x191)]??undefined;}function getVersionNumber(_0x55f714){const _0x3a89ff=a116_0x5618;return _0x55f714[_0x3a89ff(0x183)]??_0x55f714[_0x3a89ff(0x177)]?.[_0x3a89ff(0x183)]??0x0;}function getState(_0x592df4){const _0x3c8420=a116_0x5618;return _0x592df4[_0x3c8420(0x12f)]??_0x592df4[_0x3c8420(0x177)]?.['state'];}function a116_0x402e(){const _0x563e9c=['2348520ANNcnI','completionRate','goalInflux','latestJourneyId','get','listVersions','draft','getActivation','1240476Xtgfrq','description','create','attributes','goalSize','branch','excluded','journeys','name','18084000cMnYQd','find','\x20in\x20journey\x20','exit_criteria','cdp_customer_id','Excluded\x20profiles','versionNumber','values','listJourneyActivations','variants','applyVersionDeduplication','branches','add','journeyStageId','4289349uNWZXC','timedOutPath','createdAt','WaitStep','size','listJourneysFromParentSegment','journeyBundleId','limit','intime_goal','all','paused','history','conversion','from','resumeJourney','createVersion','intime_stage_','client','has','resolveJourneyId','data','includeAllVersions','getTrafficData','conditionSegmentId','activation','pauseJourney','step','lastVersionNumber','length','isArray','out','listEntitiesByFolder','exitCriterias','getColumnMapping','map','listJourneysWithDetailsFromParentSegment','listSegmentFolders','segmentId','getJourneyStatistics','cdp_audience_','folder-segment','audienceId','Journey\x20not\x20found:\x20','Cannot\x20create\x20a\x20new\x20version:\x20this\x20journey\x20does\x20not\x20belong\x20to\x20a\x20bundle','fetchTrafficRaw','flat','listJourneysWithDetails','state','getActivationSankeyChart','JOURNEY_NOT_FOUND','587810GfQxLa','toLowerCase','push','resume','segmentFolderId','NOT_FOUND','outtime_stage_','jumpInflux','relationships','set','updatedAt','filter','entries','Journey\x20activation\x20step\x20not\x20found:\x20','8412pMpWer','journeyBundleName','getJourneyActivation','launched','conditions','listActivations','getJourneyBundle','goal','_exit_','2778392bHpksa','rootFolderId','stage','string','replace','journeyStages','getConversionSankeyChart','checkJourneyAppendable','Wait','journeyId','parentFolder','sort','idx-','createActivation','listActivationsFlat','milestoneInflux','listJourneysWithFolders','DecisionPoint','type','steps','enteredSize','INVALID_ARGUMENT','exitOrJumpRate','getStatistics','reduce','waitCondition','getJourney','getBundle','intime_journey','exitInflux','1393FNYalq','journey_','journey','createJourney','activationStepsById'];a116_0x402e=function(){return _0x563e9c;};return a116_0x402e();}export function deduplicateJourneysByBundle(_0x5e24e3){const _0x282385=a116_0x5618,_0x57ef80=new Map();let _0x1dc690=0x0;for(const _0x4786d1 of _0x5e24e3){const _0xfc68c3=getBundleId(_0x4786d1);if(!_0xfc68c3){const _0x421051='no-bundle-'+(_0x4786d1['id']??_0x282385(0x155)+_0x1dc690++);_0x57ef80[_0x282385(0x13b)](_0x421051,_0x4786d1);continue;}const _0x58da1f=_0x57ef80['get'](_0xfc68c3);if(!_0x58da1f)_0x57ef80['set'](_0xfc68c3,_0x4786d1);else{const _0x41465a=getState(_0x58da1f)===_0x282385(0x143),_0x4127ea=getState(_0x4786d1)===_0x282385(0x143);if(_0x4127ea&&!_0x41465a)_0x57ef80[_0x282385(0x13b)](_0xfc68c3,_0x4786d1);else{if(!_0x4127ea&&_0x41465a){}else{const _0x599a79=getVersionNumber(_0x58da1f),_0x3a74cd=getVersionNumber(_0x4786d1);_0x3a74cd>_0x599a79&&_0x57ef80[_0x282385(0x13b)](_0xfc68c3,_0x4786d1);}}}}return Array[_0x282385(0x198)](_0x57ef80[_0x282385(0x184)]());}const VALID_JOURNEY_STATES=new Set([a116_0x22cd65(0x172),'simulation','launched']);export function parseJourneyState(_0x209bf5){const _0x189bfa=a116_0x22cd65;if(typeof _0x209bf5===_0x189bfa(0x14c)&&VALID_JOURNEY_STATES[_0x189bfa(0x112)](_0x209bf5))return _0x209bf5;return _0x189bfa(0x172);}export function entityToJourneyListItem(_0x6ea2dc,_0x2f3485){const _0x467ea3=a116_0x22cd65,_0x4b111b=_0x6ea2dc['attributes'];return{'id':_0x6ea2dc['id'],'name':_0x4b111b['name']??'','journeyBundleName':_0x4b111b[_0x467ea3(0x141)]??_0x4b111b['name']??'','journeyBundleId':_0x4b111b[_0x467ea3(0x191)]??'','versionNumber':_0x4b111b[_0x467ea3(0x183)],'description':_0x4b111b[_0x467ea3(0x175)]??null,'state':parseJourneyState(_0x4b111b[_0x467ea3(0x12f)]),'paused':_0x4b111b[_0x467ea3(0x195)]??![],'audienceId':_0x2f3485,'folderId':_0x4b111b[_0x467ea3(0x136)]??_0x6ea2dc[_0x467ea3(0x13a)]?.[_0x467ea3(0x153)]?.[_0x467ea3(0x114)]?.['id']??null,'createdAt':_0x4b111b[_0x467ea3(0x18d)]??'','updatedAt':_0x4b111b['updatedAt']??''};}function convertToColumnId(_0x3bec43){const _0x1ec738=a116_0x22cd65;return _0x3bec43[_0x1ec738(0x14d)](/-/g,'_');}function getStepEntries(_0x1e4ed0){const _0xc50c04=a116_0x22cd65;if(!_0x1e4ed0)return[];if(Array[_0xc50c04(0x11d)](_0x1e4ed0))return _0x1e4ed0[_0xc50c04(0x122)](_0x1deae8=>[_0x1deae8['id'],_0x1deae8]);return Object[_0xc50c04(0x13e)](_0x1e4ed0);}export function flattenJourneyActivation(_0x4b2508){const _0x4ec694=a116_0x22cd65,{activationParams:_0x1335cd,activationId:_0x3b2110,runAfterJourneyRefresh:_0x3cadd0}=_0x4b2508[_0x4ec694(0x177)];return{'id':_0x4b2508['id'],'activationId':_0x3b2110,'runAfterJourneyRefresh':_0x3cadd0,..._0x1335cd};}function col(_0x4733b9,_0x4501d7={}){return{'column':_0x4733b9,'direction':null,'stageIndex':null,'stageName':null,'category':'fixed','stepType':null,'stepName':null,'stepId':null,'detail':null,..._0x4501d7};}function a116_0x5618(_0x21b2b2,_0x263e71){_0x21b2b2=_0x21b2b2-0x112;const _0x402e11=a116_0x402e();let _0x5618e4=_0x402e11[_0x21b2b2];return _0x5618e4;}export function generateColumnMapping(_0x5198d2){const _0x224f3c=a116_0x22cd65,_0x25a676=[];_0x25a676[_0x224f3c(0x134)](col(_0x224f3c(0x181))),_0x25a676[_0x224f3c(0x134)](col(_0x224f3c(0x165),{'direction':'in','category':_0x224f3c(0x169)})),_0x25a676[_0x224f3c(0x134)](col('outtime_journey',{'direction':_0x224f3c(0x11e),'category':_0x224f3c(0x169)}));_0x5198d2[_0x224f3c(0x177)][_0x224f3c(0x147)]&&_0x25a676[_0x224f3c(0x134)](col(_0x224f3c(0x193),{'direction':'in','category':_0x224f3c(0x147),'detail':_0x5198d2['attributes'][_0x224f3c(0x147)][_0x224f3c(0x17c)]||null}));const _0x364a3a=_0x5198d2[_0x224f3c(0x177)][_0x224f3c(0x14e)]||[];for(let _0x6620b8=0x0;_0x6620b8<_0x364a3a[_0x224f3c(0x11c)];_0x6620b8++){const _0x3e6282=_0x364a3a[_0x6620b8],_0x2e191b=_0x3e6282[_0x224f3c(0x17c)],_0x258082={'stageIndex':_0x6620b8,'stageName':_0x2e191b},_0x1fd357=_0x3e6282['entryCriteria']?.[_0x224f3c(0x17c)]||null;_0x25a676['push'](col(_0x224f3c(0x19b)+_0x6620b8,{..._0x258082,'direction':'in','category':_0x224f3c(0x14b),'detail':_0x1fd357})),_0x25a676[_0x224f3c(0x134)](col(_0x224f3c(0x138)+_0x6620b8,{..._0x258082,'direction':_0x224f3c(0x11e),'category':_0x224f3c(0x14b),'detail':_0x1fd357}));_0x3e6282['milestone']&&_0x25a676[_0x224f3c(0x134)](col('intime_stage_'+_0x6620b8+'_milestone',{..._0x258082,'direction':'in','category':'milestone','detail':_0x3e6282['milestone'][_0x224f3c(0x17c)]||null}));const _0x23adef=_0x3e6282[_0x224f3c(0x120)]||_0x3e6282['exitCriteria']||[];for(let _0x121147=0x0;_0x121147<_0x23adef[_0x224f3c(0x11c)];_0x121147++){_0x25a676[_0x224f3c(0x134)](col('intime_stage_'+_0x6620b8+_0x224f3c(0x148)+_0x121147,{..._0x258082,'direction':'in','category':_0x224f3c(0x180),'detail':_0x23adef[_0x121147][_0x224f3c(0x17c)]||null}));}const _0x2d87fb=getStepEntries(_0x3e6282[_0x224f3c(0x15c)]);for(const [_0x489c95,_0x406b2e]of _0x2d87fb){const _0x2c8a42=convertToColumnId(_0x489c95),_0x13ce24=_0x406b2e[_0x224f3c(0x15b)]||null,_0x28d765=_0x406b2e[_0x224f3c(0x17c)]||null,_0xe92c36={..._0x258082,'stepType':_0x13ce24,'stepName':_0x28d765,'stepId':_0x489c95};_0x25a676['push'](col(_0x224f3c(0x19b)+_0x6620b8+'_'+_0x2c8a42,{..._0xe92c36,'direction':'in','category':_0x224f3c(0x11a)})),_0x25a676['push'](col(_0x224f3c(0x138)+_0x6620b8+'_'+_0x2c8a42,{..._0xe92c36,'direction':_0x224f3c(0x11e),'category':_0x224f3c(0x11a)}));if(_0x406b2e[_0x224f3c(0x15b)]===_0x224f3c(0x15a)&&_0x406b2e[_0x224f3c(0x188)])for(const _0x384559 of _0x406b2e[_0x224f3c(0x188)]){_0x384559['segmentId']&&_0x25a676[_0x224f3c(0x134)](col('intime_stage_'+_0x6620b8+'_'+_0x2c8a42+'_'+_0x384559[_0x224f3c(0x125)],{..._0xe92c36,'direction':'in','category':'branch','detail':_0x384559[_0x224f3c(0x17c)]||(_0x384559[_0x224f3c(0x17a)]?_0x224f3c(0x182):null)}));}if((_0x406b2e['type']==='AbTest'||_0x406b2e['type']==='ABTest')&&_0x406b2e[_0x224f3c(0x186)])for(const _0x52c795 of _0x406b2e[_0x224f3c(0x186)]){_0x52c795['id']&&_0x25a676[_0x224f3c(0x134)](col(_0x224f3c(0x19b)+_0x6620b8+'_'+_0x2c8a42+'_variant_'+convertToColumnId(_0x52c795['id']),{..._0xe92c36,'direction':'in','category':'variant','detail':_0x52c795[_0x224f3c(0x17c)]||null}));}if(_0x406b2e[_0x224f3c(0x15b)]===_0x224f3c(0x18e)||_0x406b2e[_0x224f3c(0x15b)]===_0x224f3c(0x151)){const _0x226647=[];if(_0x406b2e['conditionSegmentId'])_0x226647[_0x224f3c(0x134)](_0x406b2e[_0x224f3c(0x117)]);else{if(Array[_0x224f3c(0x11d)](_0x406b2e[_0x224f3c(0x144)]))for(const _0x296abf of _0x406b2e[_0x224f3c(0x144)]){_0x296abf[_0x224f3c(0x125)]&&!_0x296abf[_0x224f3c(0x18c)]&&_0x226647['push'](_0x296abf[_0x224f3c(0x125)]);}else _0x406b2e[_0x224f3c(0x162)]?.[_0x224f3c(0x125)]&&_0x226647[_0x224f3c(0x134)](_0x406b2e['waitCondition'][_0x224f3c(0x125)]);}for(const _0x12e7c2 of _0x226647){_0x25a676[_0x224f3c(0x134)](col(_0x224f3c(0x19b)+_0x6620b8+'_'+_0x2c8a42+'_'+_0x12e7c2,{..._0xe92c36,'direction':'in','category':_0x224f3c(0x179)}));}}}}return _0x25a676['push'](col('time')),_0x25a676;}export function aggregateJourneyHistory(_0x264a03){const _0x59d176=a116_0x22cd65,_0x1c5a6b=_0x264a03[_0x59d176(0x161)]((_0xd11216,_0x17b888)=>_0xd11216+(_0x17b888['entryInflux']??0x0),0x0),_0x1038fd=_0x264a03[_0x59d176(0x161)]((_0x1e2dab,_0x532550)=>_0x1e2dab+(_0x532550[_0x59d176(0x16e)]??0x0),0x0),_0xde4c00=_0x264a03[_0x59d176(0x161)]((_0x48f522,_0x5f5ae9)=>_0x48f522+((_0x5f5ae9[_0x59d176(0x166)]??0x0)+(_0x5f5ae9[_0x59d176(0x139)]??0x0)),0x0),_0x5d7897=_0x264a03[_0x264a03['length']-0x1];return{'size':_0x5d7897?.[_0x59d176(0x18f)]??0x0,'entered':_0x1c5a6b,'goal_achieved':_0x1038fd,'completion_rate':_0x1038fd&&_0x1c5a6b?_0x1038fd/_0x1c5a6b*0x64:0x0,'exit_or_jump':_0xde4c00,'exit_or_jump_rate':_0xde4c00&&_0x1c5a6b?_0xde4c00/_0x1c5a6b*0x64:0x0};}export function aggregateStageHistory(_0x58dd38){const _0x2085d9=a116_0x22cd65,_0x8fe240=_0x58dd38[_0x2085d9(0x161)]((_0xe01035,_0x20334e)=>_0xe01035+(_0x20334e['entryInflux']??0x0),0x0),_0x386748=_0x58dd38['reduce']((_0x8a1ecf,_0x5da299)=>_0x8a1ecf+(_0x5da299[_0x2085d9(0x158)]??0x0),0x0),_0x536e1a=_0x58dd38[_0x2085d9(0x161)]((_0x3324ee,_0x5eee9b)=>_0x3324ee+((_0x5eee9b[_0x2085d9(0x166)]??0x0)+(_0x5eee9b[_0x2085d9(0x139)]??0x0)),0x0),_0x18d436=_0x58dd38[_0x58dd38[_0x2085d9(0x11c)]-0x1];return{'size':_0x18d436?.[_0x2085d9(0x18f)]??0x0,'entered':_0x8fe240,'milestone':_0x386748,'milestone_rate':_0x386748&&_0x8fe240?_0x386748/_0x8fe240*0x64:0x0,'exit_or_jump':_0x536e1a,'exit_or_jump_rate':_0x536e1a&&_0x8fe240?_0x536e1a/_0x8fe240*0x64:0x0};}export function assembleJourneyStats(_0x39d83c,_0x4bbc21){const _0x30cebd=a116_0x22cd65,_0x3d066b=!!(_0x4bbc21?.[_0x30cebd(0x198)]||_0x4bbc21?.['to'])&&!!_0x39d83c[_0x30cebd(0x196)]?.[_0x30cebd(0x11c)];if(_0x3d066b){const _0x357c9e=aggregateJourneyHistory(_0x39d83c[_0x30cebd(0x196)]),_0x471e6c={'journey_id':_0x39d83c[_0x30cebd(0x152)],..._0x4bbc21?.[_0x30cebd(0x198)]&&{'from':_0x4bbc21[_0x30cebd(0x198)]},..._0x4bbc21?.['to']&&{'to':_0x4bbc21['to']},..._0x357c9e};return _0x4bbc21?.['includeHistory']&&(_0x471e6c['history']=_0x39d83c[_0x30cebd(0x196)]),_0x471e6c;}return{'journey_id':_0x39d83c['journeyId'],'size':_0x39d83c[_0x30cebd(0x18f)],'entered':_0x39d83c[_0x30cebd(0x15d)],'goal_achieved':_0x39d83c[_0x30cebd(0x178)],'completion_rate':_0x39d83c[_0x30cebd(0x16d)],'exit_or_jump':_0x39d83c['exitOrJumpSize'],'exit_or_jump_rate':_0x39d83c[_0x30cebd(0x15f)]};}export function formatVersionsFromBundle(_0x153613){const _0x4fe2d9=a116_0x22cd65,_0x4c0ce6=_0x153613[_0x4fe2d9(0x17b)][_0x4fe2d9(0x122)](_0x4957ea=>({'journeyId':_0x4957ea['id'],'versionNumber':_0x4957ea['attributes'][_0x4fe2d9(0x183)]??0x0,'name':_0x4957ea[_0x4fe2d9(0x177)][_0x4fe2d9(0x17c)],'state':_0x4957ea[_0x4fe2d9(0x177)][_0x4fe2d9(0x12f)],'paused':_0x4957ea[_0x4fe2d9(0x177)][_0x4fe2d9(0x195)],'createdAt':_0x4957ea[_0x4fe2d9(0x177)][_0x4fe2d9(0x18d)],'updatedAt':_0x4957ea['attributes'][_0x4fe2d9(0x13c)]}));return _0x4c0ce6[_0x4fe2d9(0x154)]((_0x429974,_0x187e6e)=>_0x429974[_0x4fe2d9(0x183)]-_0x187e6e[_0x4fe2d9(0x183)]),_0x4c0ce6;}export function synthesizePreBundleVersion(_0x2a8e42){const _0x40e5e2=a116_0x22cd65;return{'journeyId':_0x2a8e42['id'],'versionNumber':0x1,'name':_0x2a8e42[_0x40e5e2(0x177)][_0x40e5e2(0x17c)],'state':_0x2a8e42[_0x40e5e2(0x177)][_0x40e5e2(0x12f)],'paused':_0x2a8e42[_0x40e5e2(0x177)][_0x40e5e2(0x195)],'createdAt':_0x2a8e42[_0x40e5e2(0x177)]['createdAt'],'updatedAt':_0x2a8e42['attributes']['updatedAt']};}export function buildStageNameMap(_0x5974e4){const _0x24b10=a116_0x22cd65;return new Map(_0x5974e4['attributes'][_0x24b10(0x14e)]?.[_0x24b10(0x122)](_0x458c4c=>[_0x458c4c['id'],_0x458c4c[_0x24b10(0x17c)]])??[]);}export class JourneySDK{['client'];constructor(_0xa389be){this['client']=new CDPApiClient(_0xa389be);}['applyVersionDeduplication'](_0x8ccf72,_0x52dbe3){return _0x52dbe3?_0x8ccf72:deduplicateJourneysByBundle(_0x8ccf72);}async[a116_0x22cd65(0x12e)](_0x251b0b,_0x3ca3b2){const _0x33d049=a116_0x22cd65;try{const _0x3b7a56=await this[_0x33d049(0x19c)][_0x33d049(0x12e)](_0x251b0b);return{'journeys':this[_0x33d049(0x187)](_0x3b7a56[_0x33d049(0x17b)],_0x3ca3b2),'activationStepsById':_0x3b7a56[_0x33d049(0x16b)]};}catch(_0x1ad094){if(isHttp404Error(_0x1ad094))return{'journeys':[],'activationStepsById':new Map()};throw _0x1ad094;}}async[a116_0x22cd65(0x190)](_0x3b26be,_0x55f78d,_0x904f4d){const _0x4d79b7=a116_0x22cd65;let _0x416932=_0x55f78d;if(!_0x416932)try{const _0x3ace0d=await this[_0x4d79b7(0x19c)]['getParentSegmentFull'](_0x3b26be);_0x416932=_0x3ace0d[_0x4d79b7(0x14a)]??undefined;}catch(_0x5d1b94){if(isHttp404Error(_0x5d1b94))return[];throw _0x5d1b94;}if(!_0x416932)return[];let _0x1fd894;if(_0x904f4d?.[_0x4d79b7(0x115)]){const _0x20d22=await this[_0x4d79b7(0x19c)][_0x4d79b7(0x124)](_0x3b26be),_0x7c333a=_0x20d22[_0x4d79b7(0x122)](_0x3435b5=>this['client']['listJourneys'](_0x3435b5['id'])),_0x573e7a=await Promise[_0x4d79b7(0x194)](_0x7c333a),_0x11dfe9=new Set();_0x1fd894=_0x573e7a[_0x4d79b7(0x12d)]()[_0x4d79b7(0x13d)](_0x15a0f3=>{const _0x33ef81=_0x4d79b7;if(_0x11dfe9[_0x33ef81(0x112)](_0x15a0f3['id']))return![];return _0x11dfe9['add'](_0x15a0f3['id']),!![];});}else{const _0x1d3766=await this['client'][_0x4d79b7(0x11f)](_0x416932,0x20,![]),_0x468592=_0x1d3766[_0x4d79b7(0x114)],_0x1a7922=_0x468592[_0x4d79b7(0x13d)](_0x4a0641=>_0x4a0641['type']==='journey');_0x1fd894=_0x1a7922[_0x4d79b7(0x122)](_0x22259d=>entityToJourneyListItem(_0x22259d,_0x3b26be));}return this[_0x4d79b7(0x187)](_0x1fd894,_0x904f4d?.[_0x4d79b7(0x115)]);}async[a116_0x22cd65(0x159)](_0x3668de,_0xaeeb15,_0x1ef615){const _0x2948a8=a116_0x22cd65;if(!_0xaeeb15)return{'journeys':[],'folders':[]};const _0x50c8ce=await this['client']['listEntitiesByFolder'](_0xaeeb15,0x20,![]),_0x411ac4=_0x50c8ce[_0x2948a8(0x114)],_0x25f759=_0x411ac4[_0x2948a8(0x13d)](_0x17440e=>_0x17440e[_0x2948a8(0x15b)]===_0x2948a8(0x128)&&_0x17440e['id']!==_0xaeeb15),_0x23c0c7=_0x25f759[_0x2948a8(0x122)](_0x72a5c1=>({'id':_0x72a5c1['id'],'name':_0x72a5c1[_0x2948a8(0x177)][_0x2948a8(0x17c)]})),_0x5cb7fc=_0x411ac4['filter'](_0x336212=>_0x336212[_0x2948a8(0x15b)]==='journey'),_0x35038e=_0x5cb7fc['map'](_0x10a03e=>entityToJourneyListItem(_0x10a03e,_0x3668de));return{'journeys':this[_0x2948a8(0x187)](_0x35038e,_0x1ef615?.[_0x2948a8(0x115)]),'folders':_0x23c0c7};}async[a116_0x22cd65(0x123)](_0x39271d,_0x5ccc7a){const _0x1693a0=a116_0x22cd65;let _0x20636a;try{_0x20636a=await this[_0x1693a0(0x19c)]['listSegmentFolders'](_0x39271d);}catch(_0x187331){if(isHttp404Error(_0x187331))return{'journeys':[],'activationStepsById':new Map()};throw _0x187331;}const _0x3b36fa=_0x20636a['map'](async _0x24aa26=>{const _0x80c090=_0x1693a0;return await this[_0x80c090(0x12e)](_0x24aa26['id'],_0x5ccc7a?.[_0x80c090(0x115)]);}),_0x4b4618=await Promise['all'](_0x3b36fa),_0x1ef8af=new Map(),_0x52d185=[];for(const _0x3d0242 of _0x4b4618){_0x52d185[_0x1693a0(0x134)](..._0x3d0242[_0x1693a0(0x17b)]);for(const [_0xa27858,_0x46ffbc]of _0x3d0242[_0x1693a0(0x16b)]){_0x1ef8af[_0x1693a0(0x13b)](_0xa27858,_0x46ffbc);}}const _0x622402=new Set(),_0x128ebf=_0x52d185[_0x1693a0(0x13d)](_0x58302f=>{const _0xb5ca69=_0x1693a0;if(_0x622402[_0xb5ca69(0x112)](_0x58302f['id']))return![];return _0x622402[_0xb5ca69(0x189)](_0x58302f['id']),!![];});return{'journeys':this[_0x1693a0(0x187)](_0x128ebf,_0x5ccc7a?.[_0x1693a0(0x115)]),'activationStepsById':_0x1ef8af};}async[a116_0x22cd65(0x163)](_0x573032){const _0x5dcdc4=a116_0x22cd65;try{return await this['client'][_0x5dcdc4(0x163)](_0x573032);}catch(_0x2698b8){if(isHttp404Error(_0x2698b8))throw new SDKError(ErrorCode[_0x5dcdc4(0x131)],_0x5dcdc4(0x12a)+_0x573032,_0x2698b8);throw _0x2698b8;}}async[a116_0x22cd65(0x113)](_0xa8eb64,_0x4fd195){const _0x5de827=a116_0x22cd65,_0xc1eaea=await this[_0x5de827(0x190)](_0xa8eb64),_0x4ed9f7=_0xc1eaea[_0x5de827(0x17e)](_0x111fee=>_0x111fee[_0x5de827(0x141)][_0x5de827(0x133)]()===_0x4fd195['toLowerCase']());if(!_0x4ed9f7)throw new SDKError(ErrorCode['JOURNEY_NOT_FOUND'],_0x5de827(0x12a)+_0x4fd195,undefined,{'helpText':'Use\x20\x22tdx\x20journey\x20list\x22\x20to\x20see\x20available\x20journeys'});return _0x4ed9f7['id'];}async[a116_0x22cd65(0x160)](_0x201126,_0x5b0b50){const _0x3b4154=a116_0x22cd65;try{return await this['client'][_0x3b4154(0x126)](_0x201126,_0x5b0b50);}catch(_0x45ca4f){if(isHttp404Error(_0x45ca4f))throw new SDKError(ErrorCode[_0x3b4154(0x131)],_0x3b4154(0x12a)+_0x201126,_0x45ca4f);throw _0x45ca4f;}}async[a116_0x22cd65(0x116)](_0x36b4bc,_0x307a21){const _0x1c75bd=a116_0x22cd65,_0x522817={'from':_0x307a21?.['from'],'to':_0x307a21?.['to'],'limit':_0x307a21?.[_0x1c75bd(0x192)]},_0xd2f452=_0x307a21?.[_0x1c75bd(0x15b)]!=='conversion';try{const [_0x150b40,_0x50f075]=await Promise['all']([this['fetchTrafficRaw'](_0x36b4bc,_0x307a21?.[_0x1c75bd(0x15b)],_0x522817),_0xd2f452?this[_0x1c75bd(0x163)](_0x36b4bc):undefined]);if(_0x150b40[_0x1c75bd(0x118)]&&_0x50f075){const _0xaaffb7=buildStageNameMap(_0x50f075);_0x150b40[_0x1c75bd(0x118)]=_0x150b40[_0x1c75bd(0x118)][_0x1c75bd(0x122)](_0x2773ce=>({..._0x2773ce,'journeyStageName':_0xaaffb7[_0x1c75bd(0x170)](_0x2773ce[_0x1c75bd(0x18a)])??_0x2773ce[_0x1c75bd(0x18a)]}));}return _0x150b40;}catch(_0x4c5f59){if(isHttp404Error(_0x4c5f59))throw new SDKError(ErrorCode[_0x1c75bd(0x131)],_0x1c75bd(0x12a)+_0x36b4bc,_0x4c5f59);throw _0x4c5f59;}}async[a116_0x22cd65(0x12c)](_0x263eda,_0x3767af,_0x7c8ab){const _0xdfb337=a116_0x22cd65;if(_0x3767af===_0xdfb337(0x197)){const _0x40faa9=await this[_0xdfb337(0x19c)][_0xdfb337(0x14f)](_0x263eda,_0x7c8ab);return{'conversion':_0x40faa9};}if(_0x3767af===_0xdfb337(0x118)){const _0x94a09d=await this['client'][_0xdfb337(0x130)](_0x263eda,_0x7c8ab);return{'activation':_0x94a09d};}const [_0x5d019b,_0x309be5]=await Promise[_0xdfb337(0x194)]([this[_0xdfb337(0x19c)][_0xdfb337(0x14f)](_0x263eda,_0x7c8ab),this['client'][_0xdfb337(0x130)](_0x263eda,_0x7c8ab)]);return{'conversion':_0x5d019b,'activation':_0x309be5};}async['pause'](_0xb08d9f){const _0x494deb=a116_0x22cd65;try{return await this[_0x494deb(0x19c)][_0x494deb(0x119)](_0xb08d9f);}catch(_0x525f0b){if(isHttp404Error(_0x525f0b))throw new SDKError(ErrorCode[_0x494deb(0x131)],_0x494deb(0x12a)+_0xb08d9f,_0x525f0b);throw _0x525f0b;}}async[a116_0x22cd65(0x135)](_0x4b5bc0){const _0x3e01a2=a116_0x22cd65;try{return await this[_0x3e01a2(0x19c)][_0x3e01a2(0x199)](_0x4b5bc0);}catch(_0xfc2fd0){if(isHttp404Error(_0xfc2fd0))throw new SDKError(ErrorCode[_0x3e01a2(0x131)],'Journey\x20not\x20found:\x20'+_0x4b5bc0,_0xfc2fd0);throw _0xfc2fd0;}}async[a116_0x22cd65(0x176)](_0x13300b){const _0x48e7b5=a116_0x22cd65;return await this['client'][_0x48e7b5(0x16a)](_0x13300b);}async['update'](_0x1c23b2,_0x1d2673){const _0x23b564=a116_0x22cd65;try{return await this[_0x23b564(0x19c)]['updateJourney'](_0x1c23b2,_0x1d2673);}catch(_0x3d8645){if(isHttp404Error(_0x3d8645))throw new SDKError(ErrorCode[_0x23b564(0x131)],'Journey\x20not\x20found:\x20'+_0x1c23b2,_0x3d8645);throw _0x3d8645;}}async[a116_0x22cd65(0x173)](_0x502c24,_0x19cc9c){const _0x491796=a116_0x22cd65;try{return await this[_0x491796(0x19c)][_0x491796(0x142)](_0x502c24,_0x19cc9c);}catch(_0x25ce50){if(isHttp404Error(_0x25ce50))throw new SDKError(ErrorCode[_0x491796(0x137)],_0x491796(0x13f)+_0x19cc9c+_0x491796(0x17f)+_0x502c24,_0x25ce50);throw _0x25ce50;}}async[a116_0x22cd65(0x145)](_0x36f6f4){const _0x497596=a116_0x22cd65;try{return await this[_0x497596(0x19c)][_0x497596(0x185)](_0x36f6f4);}catch(_0x19ac07){if(isHttp404Error(_0x19ac07))return[];throw _0x19ac07;}}async[a116_0x22cd65(0x157)](_0x76f986){const _0x5b9a27=a116_0x22cd65,_0x21a02a=await this[_0x5b9a27(0x145)](_0x76f986);return _0x21a02a[_0x5b9a27(0x122)](flattenJourneyActivation);}async[a116_0x22cd65(0x156)](_0x380818,_0x2969f6){const _0x5e02b3=a116_0x22cd65;return await this[_0x5e02b3(0x19c)]['createJourneyActivation'](_0x380818,_0x2969f6);}async[a116_0x22cd65(0x121)](_0x288c26){const _0x1e15e7=a116_0x22cd65,_0x3ff800=await this[_0x1e15e7(0x163)](_0x288c26),_0x53fe0b=generateColumnMapping(_0x3ff800);return{'journeyId':_0x3ff800['id'],'journeyName':_0x3ff800[_0x1e15e7(0x177)][_0x1e15e7(0x17c)],'database':_0x1e15e7(0x127)+_0x3ff800[_0x1e15e7(0x177)][_0x1e15e7(0x129)],'table':_0x1e15e7(0x168)+_0x3ff800['id'],'columns':_0x53fe0b};}async[a116_0x22cd65(0x164)](_0x5b64f6){const _0x428413=a116_0x22cd65;return this[_0x428413(0x19c)][_0x428413(0x146)](_0x5b64f6);}async['getLatestJourneyId'](_0x4a0ebe){const _0x3f6c71=a116_0x22cd65;if(!_0x4a0ebe)return undefined;try{const _0x33f7b2=await this[_0x3f6c71(0x164)](_0x4a0ebe);return _0x33f7b2[_0x3f6c71(0x16f)];}catch{return undefined;}}async[a116_0x22cd65(0x171)](_0x45f21c){const _0x45ede8=a116_0x22cd65,_0x5ec878=await this[_0x45ede8(0x163)](_0x45f21c),_0xc33ca2=_0x5ec878[_0x45ede8(0x177)][_0x45ede8(0x191)];if(!_0xc33ca2)return{'bundleId':'','bundleName':_0x5ec878[_0x45ede8(0x177)][_0x45ede8(0x17c)],'bundleDescription':_0x5ec878[_0x45ede8(0x177)]['description']??null,'latestJourneyId':_0x5ec878['id'],'versions':[synthesizePreBundleVersion(_0x5ec878)]};const _0x439732=await this[_0x45ede8(0x164)](_0xc33ca2);return{'bundleId':_0xc33ca2,'bundleName':_0x439732[_0x45ede8(0x17c)],'bundleDescription':_0x439732['description']??null,'latestJourneyId':_0x439732[_0x45ede8(0x16f)],'versions':formatVersionsFromBundle(_0x439732)};}async[a116_0x22cd65(0x19a)](_0x489013){const _0x15bd15=a116_0x22cd65,_0x66ff86=await this[_0x15bd15(0x163)](_0x489013),_0x4245b7=_0x66ff86[_0x15bd15(0x177)]['journeyBundleId'];if(!_0x4245b7)throw new SDKError(ErrorCode[_0x15bd15(0x15e)],_0x15bd15(0x12b));await this[_0x15bd15(0x19c)][_0x15bd15(0x150)](_0x4245b7);const _0x25a3f2=await this[_0x15bd15(0x19c)][_0x15bd15(0x146)](_0x4245b7),_0x4e69d=_0x25a3f2[_0x15bd15(0x17c)]+'\x20v'+(_0x25a3f2[_0x15bd15(0x11b)]+0x1);return this[_0x15bd15(0x19c)]['createJourneyVersion'](_0x4245b7,{'sourceId':_0x489013,'attributes':{'name':_0x4e69d}});}}
@@ -1 +1 @@
1
- const a117_0xd2e95b=a117_0x4a76;(function(_0x420120,_0x435f99){const _0x599555=a117_0x4a76,_0x1f1cf6=_0x420120();while(!![]){try{const _0x3c2e25=parseInt(_0x599555(0x160))/0x1*(-parseInt(_0x599555(0x15e))/0x2)+-parseInt(_0x599555(0x15b))/0x3*(-parseInt(_0x599555(0x159))/0x4)+-parseInt(_0x599555(0x15c))/0x5*(parseInt(_0x599555(0x157))/0x6)+-parseInt(_0x599555(0x156))/0x7*(parseInt(_0x599555(0x163))/0x8)+-parseInt(_0x599555(0x15a))/0x9*(-parseInt(_0x599555(0x164))/0xa)+parseInt(_0x599555(0x158))/0xb+parseInt(_0x599555(0x162))/0xc;if(_0x3c2e25===_0x435f99)break;else _0x1f1cf6['push'](_0x1f1cf6['shift']());}catch(_0x49f7b8){_0x1f1cf6['push'](_0x1f1cf6['shift']());}}}(a117_0x5981,0x85fd0));function a117_0x4a76(_0x4e7fdc,_0x3779a1){_0x4e7fdc=_0x4e7fdc-0x156;const _0x59814a=a117_0x5981();let _0x4a768d=_0x59814a[_0x4e7fdc];return _0x4a768d;}import{createTextCache}from'../../utils/local-cache.js';function a117_0x5981(){const _0x5bb837=['247561zdiSYQ','write','5814156qSTSJr','8nCLddH','22590EhcAOY','last_chat_id','4220902wADDRC','18CETIVI','8214822hhBwgD','572648gxDpwg','3744fADicI','3ThcwwS','699560eeDAbX','clear','6dMRHLq','read'];a117_0x5981=function(){return _0x5bb837;};return a117_0x5981();}const chatIdCache=createTextCache(a117_0xd2e95b(0x165),'llm/chat');export function saveLastChatId(_0x18416b){const _0x14e445=a117_0xd2e95b;chatIdCache[_0x14e445(0x161)](_0x18416b);}export function loadLastChatId(){const _0x21f37d=a117_0xd2e95b;return chatIdCache[_0x21f37d(0x15f)]();}export function clearLastChatId(){const _0x4b1709=a117_0xd2e95b;chatIdCache[_0x4b1709(0x15d)]();}
1
+ function a117_0x1604(){const _0x39f7d5=['1243744oblUef','last_chat_id','2989016eyWhXm','511iYMhdH','444aVQmAR','1299LNQoME','25968UHlkJd','463450tvBTZJ','clear','394403EGOUhk','write','523629EqRayg'];a117_0x1604=function(){return _0x39f7d5;};return a117_0x1604();}function a117_0x2328(_0x4c07ea,_0x277eb4){_0x4c07ea=_0x4c07ea-0xc9;const _0x16045b=a117_0x1604();let _0x232883=_0x16045b[_0x4c07ea];return _0x232883;}const a117_0x32de03=a117_0x2328;(function(_0x51dfb7,_0x797e5){const _0x59939b=a117_0x2328,_0x568563=_0x51dfb7();while(!![]){try{const _0x3aa77a=parseInt(_0x59939b(0xd3))/0x1+parseInt(_0x59939b(0xce))/0x2*(parseInt(_0x59939b(0xcf))/0x3)+-parseInt(_0x59939b(0xca))/0x4+parseInt(_0x59939b(0xd1))/0x5+-parseInt(_0x59939b(0xd0))/0x6*(parseInt(_0x59939b(0xcd))/0x7)+parseInt(_0x59939b(0xcc))/0x8+-parseInt(_0x59939b(0xc9))/0x9;if(_0x3aa77a===_0x797e5)break;else _0x568563['push'](_0x568563['shift']());}catch(_0x48ad13){_0x568563['push'](_0x568563['shift']());}}}(a117_0x1604,0x425a9));import{createTextCache}from'../../utils/local-cache.js';const chatIdCache=createTextCache(a117_0x32de03(0xcb),'llm/chat');export function saveLastChatId(_0x2a8545){const _0x562425=a117_0x32de03;chatIdCache[_0x562425(0xd4)](_0x2a8545);}export function loadLastChatId(){return chatIdCache['read']();}export function clearLastChatId(){const _0x545c44=a117_0x32de03;chatIdCache[_0x545c44(0xd2)]();}