zenml-nightly 0.68.1.dev20241103__py3-none-any.whl → 0.70.0.dev20241115__py3-none-any.whl

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 (264) hide show
  1. README.md +1 -1
  2. RELEASE_NOTES.md +77 -0
  3. zenml/VERSION +1 -1
  4. zenml/__init__.py +2 -0
  5. zenml/artifacts/external_artifact.py +2 -1
  6. zenml/artifacts/{load_directory_materializer.py → preexisting_data_materializer.py} +8 -9
  7. zenml/artifacts/utils.py +139 -80
  8. zenml/cli/base.py +4 -4
  9. zenml/cli/model.py +1 -6
  10. zenml/cli/stack.py +1 -0
  11. zenml/client.py +29 -74
  12. zenml/config/server_config.py +17 -1
  13. zenml/constants.py +2 -7
  14. zenml/data_validators/base_data_validator.py +2 -2
  15. zenml/enums.py +20 -4
  16. zenml/exceptions.py +4 -0
  17. zenml/integrations/__init__.py +3 -1
  18. zenml/integrations/aws/orchestrators/sagemaker_orchestrator.py +20 -18
  19. zenml/integrations/azure/orchestrators/azureml_orchestrator.py +1 -1
  20. zenml/integrations/bentoml/materializers/bentoml_bento_materializer.py +19 -31
  21. zenml/integrations/constants.py +1 -0
  22. zenml/integrations/deepchecks/data_validators/deepchecks_data_validator.py +1 -1
  23. zenml/integrations/evidently/__init__.py +1 -1
  24. zenml/integrations/gcp/orchestrators/vertex_orchestrator.py +1 -1
  25. zenml/integrations/huggingface/materializers/huggingface_datasets_materializer.py +8 -12
  26. zenml/integrations/huggingface/materializers/huggingface_pt_model_materializer.py +17 -18
  27. zenml/integrations/huggingface/materializers/huggingface_t5_materializer.py +2 -5
  28. zenml/integrations/huggingface/materializers/huggingface_tf_model_materializer.py +17 -18
  29. zenml/integrations/huggingface/materializers/huggingface_tokenizer_materializer.py +2 -3
  30. zenml/integrations/langchain/__init__.py +2 -1
  31. zenml/integrations/langchain/materializers/openai_embedding_materializer.py +28 -2
  32. zenml/integrations/lightgbm/materializers/lightgbm_booster_materializer.py +8 -15
  33. zenml/integrations/lightgbm/materializers/lightgbm_dataset_materializer.py +11 -16
  34. zenml/integrations/lightning/orchestrators/lightning_orchestrator.py +29 -9
  35. zenml/integrations/openai/__init__.py +1 -1
  36. zenml/integrations/openai/hooks/open_ai_failure_hook.py +39 -14
  37. zenml/integrations/pillow/materializers/pillow_image_materializer.py +17 -20
  38. zenml/integrations/polars/materializers/dataframe_materializer.py +26 -39
  39. zenml/integrations/pycaret/materializers/model_materializer.py +7 -22
  40. zenml/integrations/tensorboard/visualizers/tensorboard_visualizer.py +60 -54
  41. zenml/integrations/tensorflow/materializers/keras_materializer.py +11 -22
  42. zenml/integrations/tensorflow/materializers/tf_dataset_materializer.py +8 -15
  43. zenml/integrations/vllm/__init__.py +50 -0
  44. zenml/integrations/vllm/flavors/__init__.py +21 -0
  45. zenml/integrations/vllm/flavors/vllm_model_deployer_flavor.py +91 -0
  46. zenml/integrations/vllm/model_deployers/__init__.py +19 -0
  47. zenml/integrations/vllm/model_deployers/vllm_model_deployer.py +263 -0
  48. zenml/integrations/vllm/services/__init__.py +19 -0
  49. zenml/integrations/vllm/services/vllm_deployment.py +206 -0
  50. zenml/integrations/whylogs/materializers/whylogs_materializer.py +11 -18
  51. zenml/integrations/xgboost/materializers/xgboost_booster_materializer.py +11 -22
  52. zenml/integrations/xgboost/materializers/xgboost_dmatrix_materializer.py +10 -19
  53. zenml/materializers/base_materializer.py +68 -1
  54. zenml/metadata/lazy_load.py +20 -7
  55. zenml/model/model.py +17 -64
  56. zenml/model/utils.py +5 -0
  57. zenml/models/__init__.py +0 -12
  58. zenml/models/v2/base/filter.py +121 -8
  59. zenml/models/v2/core/artifact_version.py +42 -7
  60. zenml/models/v2/core/model_version.py +26 -5
  61. zenml/models/v2/core/pipeline_run.py +25 -6
  62. zenml/models/v2/core/run_metadata.py +2 -217
  63. zenml/models/v2/core/step_run.py +62 -24
  64. zenml/orchestrators/base_orchestrator.py +12 -1
  65. zenml/orchestrators/input_utils.py +44 -19
  66. zenml/orchestrators/step_launcher.py +4 -3
  67. zenml/orchestrators/step_run_utils.py +19 -15
  68. zenml/orchestrators/step_runner.py +25 -14
  69. zenml/orchestrators/utils.py +45 -26
  70. zenml/stack/flavor.py +9 -5
  71. zenml/stack_deployments/aws_stack_deployment.py +23 -6
  72. zenml/stack_deployments/azure_stack_deployment.py +28 -5
  73. zenml/stack_deployments/gcp_stack_deployment.py +25 -8
  74. zenml/stack_deployments/stack_deployment.py +3 -5
  75. zenml/steps/base_step.py +1 -1
  76. zenml/steps/entrypoint_function_utils.py +3 -5
  77. zenml/steps/step_context.py +5 -2
  78. zenml/steps/utils.py +13 -2
  79. zenml/utils/callback_registry.py +71 -0
  80. zenml/utils/metadata_utils.py +335 -0
  81. zenml/zen_server/auth.py +221 -3
  82. zenml/zen_server/cache.py +208 -0
  83. zenml/zen_server/dashboard/assets/{404-DT4QRUqN.js → 404-NVXKFp-x.js} +1 -1
  84. zenml/zen_server/dashboard/assets/{@radix-DP6vWzyx.js → @radix-DeK6qiuw.js} +1 -1
  85. zenml/zen_server/dashboard/assets/{@react-router-BMhZulnd.js → @react-router-B3Z5rLr2.js} +1 -1
  86. zenml/zen_server/dashboard/assets/{@reactflow-8U9qNlMR.js → @reactflow-CK0KJUen.js} +2 -2
  87. zenml/zen_server/dashboard/assets/{@tanstack-BUCbhJyH.js → @tanstack-DT5WLu9C.js} +1 -1
  88. zenml/zen_server/dashboard/assets/AlertDialogDropdownItem-DezXKmDf.js +1 -0
  89. zenml/zen_server/dashboard/assets/{CodeSnippet-CqybNv0k.js → CodeSnippet-JzR8CEtw.js} +2 -2
  90. zenml/zen_server/dashboard/assets/{CollapsibleCard-0r_8G2Lj.js → CollapsibleCard-DQW_ktMO.js} +1 -1
  91. zenml/zen_server/dashboard/assets/{Commands-BDjgBQKi.js → Commands-DL2kwkRd.js} +1 -1
  92. zenml/zen_server/dashboard/assets/ComponentBadge-D_g62Wv8.js +1 -0
  93. zenml/zen_server/dashboard/assets/{CopyButton-C745BrKi.js → CopyButton-LNcWaa14.js} +1 -1
  94. zenml/zen_server/dashboard/assets/{CsvVizualization-PpAq0CeZ.js → CsvVizualization-DknpE5ej.js} +5 -5
  95. zenml/zen_server/dashboard/assets/{DialogItem-DcVCZEew.js → DialogItem-Bxf8FuAT.js} +1 -1
  96. zenml/zen_server/dashboard/assets/{DisplayDate-BeXgUG_C.js → DisplayDate-CDMUcQHS.js} +1 -1
  97. zenml/zen_server/dashboard/assets/{EmptyState-DeK7H4pr.js → EmptyState-BzdlCwp3.js} +1 -1
  98. zenml/zen_server/dashboard/assets/{Error-BMlzibXj.js → Error-DYflYyps.js} +1 -1
  99. zenml/zen_server/dashboard/assets/ExecutionStatus-C7zyIQKZ.js +1 -0
  100. zenml/zen_server/dashboard/assets/{Helpbox-BLf40fLV.js → Helpbox-oYSGpLqd.js} +1 -1
  101. zenml/zen_server/dashboard/assets/{Infobox-BwisKifi.js → Infobox-Cx4xGoXR.js} +1 -1
  102. zenml/zen_server/dashboard/assets/{InlineAvatar-jEgodSgX.js → InlineAvatar-DiGOWNKF.js} +1 -1
  103. zenml/zen_server/dashboard/assets/{Lock-3lLt1ih0.js → Lock-CYYy18Mm.js} +1 -1
  104. zenml/zen_server/dashboard/assets/{MarkdownVisualization-8O9kTr-2.js → MarkdownVisualization-ylXaAxev.js} +1 -1
  105. zenml/zen_server/dashboard/assets/NestedCollapsible-DYbgyKxK.js +1 -0
  106. zenml/zen_server/dashboard/assets/{NumberBox-T9eELfLZ.js → NumberBox-Dtp3J6g5.js} +1 -1
  107. zenml/zen_server/dashboard/assets/Partials-03iZf8-N.js +1 -0
  108. zenml/zen_server/dashboard/assets/{PasswordChecker-CW0kqY0W.js → PasswordChecker-B0nadgh6.js} +1 -1
  109. zenml/zen_server/dashboard/assets/ProBadge-D_EB8HNo.js +1 -0
  110. zenml/zen_server/dashboard/assets/ProCta-DqNS4v3x.js +1 -0
  111. zenml/zen_server/dashboard/assets/ProviderIcon-Bki2aw8w.js +1 -0
  112. zenml/zen_server/dashboard/assets/{ProviderRadio-BROY1700.js → ProviderRadio-8f43sPD4.js} +1 -1
  113. zenml/zen_server/dashboard/assets/RunSelector-DkPiIiNr.js +1 -0
  114. zenml/zen_server/dashboard/assets/RunsBody-07YEO7qI.js +1 -0
  115. zenml/zen_server/dashboard/assets/SearchField-lp1KgU4e.js +1 -0
  116. zenml/zen_server/dashboard/assets/{SecretTooltip-C_qByGWB.js → SecretTooltip-CgnbyeOx.js} +1 -1
  117. zenml/zen_server/dashboard/assets/{SetPassword-7pRB00El.js → SetPassword-CpP418A2.js} +1 -1
  118. zenml/zen_server/dashboard/assets/StackList-WvuKQusZ.js +1 -0
  119. zenml/zen_server/dashboard/assets/Tabs-BktHkCJJ.js +1 -0
  120. zenml/zen_server/dashboard/assets/Tick-BlMoIlJT.js +1 -0
  121. zenml/zen_server/dashboard/assets/{UpdatePasswordSchemas-DckMEkFf.js → UpdatePasswordSchemas-Sc0A0pP-.js} +1 -1
  122. zenml/zen_server/dashboard/assets/{UsageReason-DVceN14P.js → UsageReason-YYduL4fj.js} +1 -1
  123. zenml/zen_server/dashboard/assets/{WizardFooter-CW0Cvd70.js → WizardFooter-dgmizSJC.js} +1 -1
  124. zenml/zen_server/dashboard/assets/all-pipeline-runs-query-D-c2G6lV.js +1 -0
  125. zenml/zen_server/dashboard/assets/check-DloQpStc.js +1 -0
  126. zenml/zen_server/dashboard/assets/{check-circle-Dwxliy1Z.js → check-circle-jNbX5-sR.js} +1 -1
  127. zenml/zen_server/dashboard/assets/{chevron-down-8wLBS5pQ.js → chevron-down-6JyMkfjR.js} +1 -1
  128. zenml/zen_server/dashboard/assets/{chevron-right-double-DoD8iXWM.js → chevron-right-double-D7ojK9Co.js} +1 -1
  129. zenml/zen_server/dashboard/assets/{code-browser-CZUQs3Wa.js → code-browser-CUFUIHfp.js} +1 -1
  130. zenml/zen_server/dashboard/assets/{copy-CaSMXwiU.js → copy-C8XQA2Ug.js} +1 -1
  131. zenml/zen_server/dashboard/assets/create-stack-DM_JPgef.js +1 -0
  132. zenml/zen_server/dashboard/assets/delete-run-CJdh1P_h.js +1 -0
  133. zenml/zen_server/dashboard/assets/{docker-BFNgg-z3.js → docker-BdA9vrnW.js} +1 -1
  134. zenml/zen_server/dashboard/assets/{dots-horizontal-DK5Duzx4.js → dots-horizontal-otGBOSDJ.js} +1 -1
  135. zenml/zen_server/dashboard/assets/{form-schemas-1AyOCx90.js → form-schemas-K6FYKjwa.js} +1 -1
  136. zenml/zen_server/dashboard/assets/{gcp-7M2Yf3ZK.js → gcp-CFtm4BA7.js} +1 -1
  137. zenml/zen_server/dashboard/assets/{help-Dam461dC.js → help-Cc9bBIJH.js} +1 -1
  138. zenml/zen_server/dashboard/assets/index-B1mVPYxf.js +1 -0
  139. zenml/zen_server/dashboard/assets/index-BAkC7FXi.js +1 -0
  140. zenml/zen_server/dashboard/assets/{index-QQb7wQEC.js → index-CCOPpudF.js} +8 -8
  141. zenml/zen_server/dashboard/assets/index-CEV4Cvaf.js +1 -0
  142. zenml/zen_server/dashboard/assets/index-DlGvJQPn.css +1 -0
  143. zenml/zen_server/dashboard/assets/{index-BVJ8n2-j.js → index-Uu49AX48.js} +1 -1
  144. zenml/zen_server/dashboard/assets/{index.esm-cuVep_NJ.js → index.esm-Dy6Z9Ung.js} +1 -1
  145. zenml/zen_server/dashboard/assets/{kubernetes--g7r02Zu.js → kubernetes-B2wmAJ1d.js} +1 -1
  146. zenml/zen_server/dashboard/assets/{layout-DCSYN7-C.js → layout-BtHBmE4w.js} +1 -1
  147. zenml/zen_server/dashboard/assets/{link-external-CBEk6kEG.js → link-external-b9AXw_sW.js} +1 -1
  148. zenml/zen_server/dashboard/assets/{login-mutation-DTcAFP1l.js → login-mutation-hf-lK87O.js} +1 -1
  149. zenml/zen_server/dashboard/assets/{logs-D5bdJGur.js → logs-WMSM52RF.js} +1 -1
  150. zenml/zen_server/dashboard/assets/{not-found-Cc-JkRH2.js → not-found-BGirLjU-.js} +1 -1
  151. zenml/zen_server/dashboard/assets/{package-Cs35Szwh.js → package-C6uypY4h.js} +1 -1
  152. zenml/zen_server/dashboard/assets/page-0JE_-Ec1.js +1 -0
  153. zenml/zen_server/dashboard/assets/{page-DH_Z7iW1.js → page-6m6yHHlE.js} +1 -1
  154. zenml/zen_server/dashboard/assets/page-BDigxVpo.js +1 -0
  155. zenml/zen_server/dashboard/assets/page-BR68V0V1.js +1 -0
  156. zenml/zen_server/dashboard/assets/page-BRLpxOt0.js +1 -0
  157. zenml/zen_server/dashboard/assets/{page-BQQKaabe.js → page-BU7huvKw.js} +3 -3
  158. zenml/zen_server/dashboard/assets/page-BvqLv2Ky.js +1 -0
  159. zenml/zen_server/dashboard/assets/page-C00YAkaB.js +1 -0
  160. zenml/zen_server/dashboard/assets/{page-N4qoPHKb.js → page-CD-DcWoy.js} +1 -1
  161. zenml/zen_server/dashboard/assets/page-COXXJj1k.js +1 -0
  162. zenml/zen_server/dashboard/assets/page-CbpvrsDL.js +1 -0
  163. zenml/zen_server/dashboard/assets/page-CdMWnQak.js +1 -0
  164. zenml/zen_server/dashboard/assets/{page-ClUVkl-O.js → page-CjGdWY13.js} +1 -1
  165. zenml/zen_server/dashboard/assets/page-CwxrFarU.js +1 -0
  166. zenml/zen_server/dashboard/assets/{page-DLixvR-7.js → page-D01JhjQB.js} +1 -1
  167. zenml/zen_server/dashboard/assets/page-D6uU2ax4.js +1 -0
  168. zenml/zen_server/dashboard/assets/page-D7S3aCbF.js +1 -0
  169. zenml/zen_server/dashboard/assets/{page-9yplj5JT.js → page-DLC-bNBP.js} +1 -1
  170. zenml/zen_server/dashboard/assets/page-DXSTpqRD.js +1 -0
  171. zenml/zen_server/dashboard/assets/{page-DzpVUZ8f.js → page-DakHVWXF.js} +1 -1
  172. zenml/zen_server/dashboard/assets/{page-DIOXwhiD.js → page-Df-Fw0aq.js} +1 -1
  173. zenml/zen_server/dashboard/assets/{page-B-y2XKIc.js → page-DfbXf_8s.js} +1 -1
  174. zenml/zen_server/dashboard/assets/page-DjRJCGb3.js +1 -0
  175. zenml/zen_server/dashboard/assets/{page-C0N5q3l7.js → page-Djikxq_S.js} +1 -1
  176. zenml/zen_server/dashboard/assets/page-Dnovpa0i.js +3 -0
  177. zenml/zen_server/dashboard/assets/page-Dot3LPmL.js +1 -0
  178. zenml/zen_server/dashboard/assets/page-Vcxara9U.js +1 -0
  179. zenml/zen_server/dashboard/assets/page-Xynx4btY.js +14 -0
  180. zenml/zen_server/dashboard/assets/page-YpKAqVSa.js +1 -0
  181. zenml/zen_server/dashboard/assets/page-yYC9OI-E.js +1 -0
  182. zenml/zen_server/dashboard/assets/{persist-DNb5cdrU.js → persist-Coz7ZWvz.js} +1 -1
  183. zenml/zen_server/dashboard/assets/{persist-CP0JmYZ4.js → persist-GjC8PZoC.js} +1 -1
  184. zenml/zen_server/dashboard/assets/{plus-C9IxgN2M.js → plus-tf1V2hTJ.js} +1 -1
  185. zenml/zen_server/dashboard/assets/{refresh-BVu22P_C.js → refresh-BjOeWlEq.js} +1 -1
  186. zenml/zen_server/dashboard/assets/{rocket-CONEmRmB.js → rocket-DjT2cDvG.js} +1 -1
  187. zenml/zen_server/dashboard/assets/sharedSchema-CQb14VSr.js +14 -0
  188. zenml/zen_server/dashboard/assets/stack-detail-query-OPEW-cDJ.js +1 -0
  189. zenml/zen_server/dashboard/assets/{tick-circle-CM1ZScbQ.js → tick-circle-BEX_Tp4v.js} +1 -1
  190. zenml/zen_server/dashboard/assets/{trash-DkJHMOg7.js → trash-arLUMWMS.js} +1 -1
  191. zenml/zen_server/dashboard/assets/{update-server-settings-mutation-DsU8cNVl.js → update-server-settings-mutation-LwuQfHYn.js} +1 -1
  192. zenml/zen_server/dashboard/assets/upgrade-form-CwRHBuXB.webp +0 -0
  193. zenml/zen_server/dashboard/assets/url-CkvKAnwF.js +1 -0
  194. zenml/zen_server/dashboard/assets/{zod-D89GC_vc.js → zod-BwEbpOxH.js} +1 -1
  195. zenml/zen_server/dashboard/index.html +7 -7
  196. zenml/zen_server/deploy/helm/Chart.yaml +1 -1
  197. zenml/zen_server/deploy/helm/README.md +2 -2
  198. zenml/zen_server/exceptions.py +2 -0
  199. zenml/zen_server/jwt.py +30 -13
  200. zenml/zen_server/rbac/endpoint_utils.py +43 -1
  201. zenml/zen_server/rbac/utils.py +0 -2
  202. zenml/zen_server/routers/artifact_version_endpoints.py +27 -1
  203. zenml/zen_server/routers/auth_endpoints.py +134 -102
  204. zenml/zen_server/routers/logs_endpoints.py +66 -0
  205. zenml/zen_server/routers/workspaces_endpoints.py +3 -4
  206. zenml/zen_server/template_execution/utils.py +14 -16
  207. zenml/zen_server/utils.py +27 -0
  208. zenml/zen_server/zen_server_api.py +6 -3
  209. zenml/zen_stores/migrations/versions/0.70.0_release.py +23 -0
  210. zenml/zen_stores/migrations/versions/1cb6477f72d6_move_artifact_save_type.py +99 -0
  211. zenml/zen_stores/migrations/versions/904464ea4041_add_pipeline_model_run_unique_constraints.py +192 -0
  212. zenml/zen_stores/migrations/versions/b557b2871693_update_step_run_input_types.py +33 -0
  213. zenml/zen_stores/rest_zen_store.py +68 -64
  214. zenml/zen_stores/schemas/artifact_schemas.py +8 -1
  215. zenml/zen_stores/schemas/model_schemas.py +27 -3
  216. zenml/zen_stores/schemas/pipeline_run_schemas.py +6 -1
  217. zenml/zen_stores/schemas/pipeline_schemas.py +8 -2
  218. zenml/zen_stores/schemas/run_metadata_schemas.py +1 -48
  219. zenml/zen_stores/schemas/step_run_schemas.py +18 -10
  220. zenml/zen_stores/sql_zen_store.py +283 -219
  221. zenml/zen_stores/zen_store_interface.py +15 -42
  222. {zenml_nightly-0.68.1.dev20241103.dist-info → zenml_nightly-0.70.0.dev20241115.dist-info}/METADATA +2 -2
  223. {zenml_nightly-0.68.1.dev20241103.dist-info → zenml_nightly-0.70.0.dev20241115.dist-info}/RECORD +226 -203
  224. zenml/zen_server/dashboard/assets/AlertDialogDropdownItem-C6N2rGrB.js +0 -1
  225. zenml/zen_server/dashboard/assets/ComponentBadge-DUiEYJHu.js +0 -1
  226. zenml/zen_server/dashboard/assets/ComponentFallbackDialog-BFoH5K4V.js +0 -1
  227. zenml/zen_server/dashboard/assets/ComponentIcon-CAIoUis2.js +0 -1
  228. zenml/zen_server/dashboard/assets/Partials-YPBB3V4q.js +0 -1
  229. zenml/zen_server/dashboard/assets/ProviderIcon-Bb3Xha5A.js +0 -1
  230. zenml/zen_server/dashboard/assets/RunSelector-DCiL3M1c.js +0 -1
  231. zenml/zen_server/dashboard/assets/SearchField-DfUiGFVd.js +0 -1
  232. zenml/zen_server/dashboard/assets/Tick-CykQFPj2.js +0 -1
  233. zenml/zen_server/dashboard/assets/cloud-only-B-s_HMDm.js +0 -1
  234. zenml/zen_server/dashboard/assets/codespaces-BitYDX9d.gif +0 -0
  235. zenml/zen_server/dashboard/assets/create-stack-CEmaPZ4c.js +0 -1
  236. zenml/zen_server/dashboard/assets/delete-run-D-LKbGyz.js +0 -1
  237. zenml/zen_server/dashboard/assets/index-Bpmj40BI.js +0 -1
  238. zenml/zen_server/dashboard/assets/index-CbU4Ln_E.css +0 -1
  239. zenml/zen_server/dashboard/assets/index-DKPhqP2B.js +0 -1
  240. zenml/zen_server/dashboard/assets/page-BBpOxVcY.js +0 -1
  241. zenml/zen_server/dashboard/assets/page-BRInM1Lg.js +0 -1
  242. zenml/zen_server/dashboard/assets/page-BjjlMk7s.js +0 -1
  243. zenml/zen_server/dashboard/assets/page-Bvd7YH2A.js +0 -1
  244. zenml/zen_server/dashboard/assets/page-CT3Nep8W.js +0 -1
  245. zenml/zen_server/dashboard/assets/page-C_f47pBf.js +0 -1
  246. zenml/zen_server/dashboard/assets/page-Cmv8C_yM.js +0 -3
  247. zenml/zen_server/dashboard/assets/page-CyN2bdWG.js +0 -1
  248. zenml/zen_server/dashboard/assets/page-CzzXH4fs.js +0 -1
  249. zenml/zen_server/dashboard/assets/page-DTlGjgnG.js +0 -1
  250. zenml/zen_server/dashboard/assets/page-Dbpl86h0.js +0 -1
  251. zenml/zen_server/dashboard/assets/page-Ddgy6kDS.js +0 -1
  252. zenml/zen_server/dashboard/assets/page-DtCAfBLy.js +0 -9
  253. zenml/zen_server/dashboard/assets/page-Dx16z7nA.js +0 -1
  254. zenml/zen_server/dashboard/assets/page-McUyYbo1.js +0 -1
  255. zenml/zen_server/dashboard/assets/page-T1P3RyAR.js +0 -1
  256. zenml/zen_server/dashboard/assets/page-bKaULTGG.js +0 -1
  257. zenml/zen_server/dashboard/assets/page-sbXUJy9t.js +0 -1
  258. zenml/zen_server/dashboard/assets/sharedSchema-TMLu-nYQ.js +0 -14
  259. zenml/zen_server/dashboard/assets/stack-detail-query-xmYxSsUY.js +0 -1
  260. zenml/zen_server/dashboard/assets/url-D5le3J4q.js +0 -1
  261. zenml/zen_server/routers/run_metadata_endpoints.py +0 -96
  262. {zenml_nightly-0.68.1.dev20241103.dist-info → zenml_nightly-0.70.0.dev20241115.dist-info}/LICENSE +0 -0
  263. {zenml_nightly-0.68.1.dev20241103.dist-info → zenml_nightly-0.70.0.dev20241115.dist-info}/WHEEL +0 -0
  264. {zenml_nightly-0.68.1.dev20241103.dist-info → zenml_nightly-0.70.0.dev20241115.dist-info}/entry_points.txt +0 -0
@@ -0,0 +1,14 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/CsvVizualization-DknpE5ej.js","assets/@radix-DeK6qiuw.js","assets/index-CCOPpudF.js","assets/@tanstack-DT5WLu9C.js","assets/@react-router-B3Z5rLr2.js","assets/@reactflow-CK0KJUen.js","assets/@reactflow-C26Olbza.css","assets/index-DlGvJQPn.css","assets/MarkdownVisualization-ylXaAxev.js"])))=>i.map(i=>d[i]);
2
+ var ss=Object.defineProperty;var ns=(e,t,r)=>t in e?ss(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var w=(e,t,r)=>ns(e,typeof t!="symbol"?t+"":t,r);import{r as p,j as s,g as as}from"./@radix-DeK6qiuw.js";import{U as Me,k as Le,s as De,F as X,p as ne,q as ae,S as b,T as B,E as G,G as Z,H as q,J as L,r as de,y as et,_ as Xt,j as oe,f as k,V as tt,W as Jt,e as pe,M as rt,N as st,O,X as ue,Y as nt,P as S,Z as er,$ as tr,a0 as rr,n as is,a1 as ge,a2 as be,a3 as je,a4 as Ce,a5 as ls,a6 as os,a7 as cs,B as sr,a8 as ds,A as us,b as hs,a9 as at,aa as fs,i as ms,t as ps,D as Nt,w as xs,x as gs,ab as bs,o as js,R as Cs,K as vs,z as Et,c as ys,ac as ws,ad as Ns}from"./index-CCOPpudF.js";import{S as nr}from"./copy-C8XQA2Ug.js";import{S as Es,a as _s,u as ar}from"./stack-detail-query-OPEW-cDJ.js";import{S as ir}from"./chevron-right-double-D7ojK9Co.js";import{a as Y,c as lr,q as ks}from"./@tanstack-DT5WLu9C.js";import{E as ee}from"./Error-DYflYyps.js";import{D as Se}from"./DisplayDate-CDMUcQHS.js";import{a as Ve,E as ie,b as or,g as Os}from"./ExecutionStatus-C7zyIQKZ.js";import{I as it}from"./InlineAvatar-DiGOWNKF.js";import{K as C,a as z,V as F,i as cr,N as J,b as ce,c as Ss}from"./NestedCollapsible-DYbgyKxK.js";import{L as xe,g as T,b as lt,c as dr}from"./@react-router-B3Z5rLr2.js";import{C as W}from"./CodeSnippet-JzR8CEtw.js";import{C as U}from"./CollapsibleCard-DQW_ktMO.js";import{c as Ls}from"./index-B1mVPYxf.js";import{E as P}from"./EmptyState-BzdlCwp3.js";import{i as Ts,s as ur}from"./url-CkvKAnwF.js";import{I as Ae}from"./Infobox-Cx4xGoXR.js";import{H as _t,P as kt,u as ot,a as hr,b as Is,g as Ps,p as Rs,S as $s,B as Ms,c as Ds,d as Vs,e as As}from"./@reactflow-CK0KJUen.js";import{S as zs}from"./plus-tf1V2hTJ.js";import{S as Fs}from"./refresh-BjOeWlEq.js";import{S as Hs}from"./code-browser-CUFUIHfp.js";import{S as fr}from"./logs-WMSM52RF.js";import{S as ve}from"./chevron-down-6JyMkfjR.js";import{S as Bs}from"./docker-BdA9vrnW.js";import{C as H}from"./CopyButton-LNcWaa14.js";import{C as Gs}from"./ComponentBadge-D_g62Wv8.js";import{S as Zs}from"./dots-horizontal-otGBOSDJ.js";import{S as qs}from"./trash-arLUMWMS.js";import{S as Ws}from"./tick-circle-BEX_Tp4v.js";import{u as Us,D as Ks,a as Ys}from"./delete-run-CJdh1P_h.js";import"./layout-BtHBmE4w.js";import"./rocket-DjT2cDvG.js";import"./check-circle-jNbX5-sR.js";import"./zod-BwEbpOxH.js";import"./index.esm-Dy6Z9Ung.js";const Qs=e=>p.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...e},p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 2C3.55228 2 4 2.44772 4 3V21C4 21.5523 3.55228 22 3 22C2.44772 22 2 21.5523 2 21V3C2 2.44772 2.44772 2 3 2ZM14.7071 4.29289C15.0976 4.68342 15.0976 5.31658 14.7071 5.70711L9.41421 11H21C21.5523 11 22 11.4477 22 12C22 12.5523 21.5523 13 21 13H9.41421L14.7071 18.2929C15.0976 18.6834 15.0976 19.3166 14.7071 19.7071C14.3166 20.0976 13.6834 20.0976 13.2929 19.7071L6.29289 12.7071C5.90237 12.3166 5.90237 11.6834 6.29289 11.2929L13.2929 4.29289C13.6834 3.90237 14.3166 3.90237 14.7071 4.29289Z"})),Xs=e=>p.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...e},p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.5971 1.18505C11.8629 1.13038 12.1371 1.13038 12.4029 1.18505C12.7102 1.24824 12.9848 1.40207 13.2032 1.52436C13.2235 1.53575 13.2433 1.54687 13.2627 1.55761L12.7846 2.41823L13.2627 1.55761L20.6627 5.66872C20.6831 5.68009 20.7042 5.6917 20.7258 5.70359C20.9569 5.8309 21.2476 5.99097 21.4707 6.23315L21.1563 6.52296L21.4707 6.23315C21.6637 6.44253 21.8097 6.6907 21.899 6.96105C22.0024 7.27375 22.0011 7.60553 22.0002 7.8694C22.0001 7.89406 22 7.91813 22 7.94153V12.0001C22 12.5524 21.5523 13.0001 21 13.0001C20.4477 13.0001 20 12.5524 20 12.0001V8.69955L17.0029 10.3646C16.992 10.3709 16.9811 10.377 16.9701 10.3829L13 12.5885L13 20.4443C13.3511 20.4447 13.6916 20.6302 13.8742 20.9589C14.1424 21.4417 13.9684 22.0505 13.4856 22.3187L13.2627 22.4426C13.2433 22.4533 13.2235 22.4644 13.2032 22.4758C12.9848 22.5981 12.7102 22.7519 12.4029 22.8151C12.1371 22.8698 11.8629 22.8698 11.5971 22.8151C11.2898 22.7519 11.0152 22.5981 10.7968 22.4758C10.7765 22.4644 10.7567 22.4533 10.7373 22.4426L3.33733 18.3314C3.31688 18.3201 3.2958 18.3085 3.27421 18.2966C3.04308 18.1693 2.75245 18.0092 2.52927 17.767C2.33632 17.5576 2.1903 17.3095 2.10097 17.0391C1.99765 16.7264 1.99886 16.3946 1.99982 16.1308C1.99991 16.1061 2 16.082 2 16.0586V7.94153C2 7.91813 1.99991 7.89406 1.99982 7.8694C1.99886 7.60553 1.99765 7.27375 2.10097 6.96105C2.1903 6.69069 2.33632 6.44253 2.52927 6.23315C2.75244 5.99098 3.04306 5.8309 3.27419 5.7036C3.29579 5.6917 3.31687 5.68009 3.33733 5.66872L3.33733 5.66872L6.99904 3.63444C7.00862 3.62891 7.01828 3.62354 7.02802 3.61834L10.7373 1.55761C10.7567 1.54687 10.7765 1.53575 10.7968 1.52437C11.0152 1.40207 11.2898 1.24824 11.5971 1.18505ZM7.5 5.64404L5.05914 7.00008L12 10.8561L14.4408 9.50006L7.5 5.64404ZM16.5 8.3561L9.55913 4.50008L11.7086 3.30592C11.8602 3.22174 11.9375 3.1792 11.9952 3.15136C11.9969 3.15056 11.9985 3.1498 12 3.14907C12.0015 3.1498 12.0031 3.15056 12.0048 3.15136C12.0625 3.1792 12.1398 3.22173 12.2914 3.30592L18.9408 7.00006L16.5 8.3561ZM11 12.5885L4 8.69959V16.0586C4 16.2416 4.00042 16.3353 4.0045 16.4031C4.00462 16.4051 4.00475 16.407 4.00487 16.4088C4.0064 16.4098 4.00802 16.4108 4.00971 16.4119C4.067 16.4484 4.14867 16.4943 4.30862 16.5831L3.82297 17.4573L4.30862 16.5831L11 20.3006L11 12.5885ZM19 16.0001C17.8954 16.0001 17 16.8955 17 18.0001C17 19.1047 17.8954 20.0001 19 20.0001C20.1046 20.0001 21 19.1047 21 18.0001C21 16.8955 20.1046 16.0001 19 16.0001ZM15 18.0001C15 15.7909 16.7909 14.0001 19 14.0001C21.2091 14.0001 23 15.7909 23 18.0001C23 18.8713 22.7215 19.6775 22.2486 20.3344L22.7071 20.793C23.0976 21.1835 23.0976 21.8167 22.7071 22.2072C22.3166 22.5977 21.6834 22.5977 21.2929 22.2072L20.7052 21.6195C20.1879 21.8636 19.6099 22.0001 19 22.0001C16.7909 22.0001 15 20.2092 15 18.0001Z"})),Js=e=>p.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...e},p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.77687 1.00001C2.78469 1.00001 2.79241 1.00001 2.80001 1.00001H6.20001C6.20762 1.00001 6.21533 1.00001 6.22315 1.00001C6.34227 0.999961 6.48452 0.999906 6.60984 1.01015C6.75506 1.02201 6.96305 1.05245 7.181 1.1635C7.46324 1.30731 7.69271 1.53678 7.83652 1.81903C7.94757 2.03697 7.97801 2.24496 7.98988 2.39018C8.00012 2.5155 8.00006 2.65776 8.00002 2.77687C8.00001 2.78469 8.00001 2.79241 8.00001 2.80001V6.20001C8.00001 6.20762 8.00001 6.21533 8.00002 6.22315C8.00006 6.34227 8.00012 6.48452 7.98988 6.60984C7.97801 6.75506 7.94757 6.96305 7.83652 7.181C7.69271 7.46324 7.46324 7.69271 7.181 7.83652C6.96305 7.94757 6.75506 7.97801 6.60984 7.98988C6.48452 8.00012 6.34227 8.00006 6.22315 8.00002C6.21533 8.00001 6.20762 8.00001 6.20001 8.00001H2.80001C2.79241 8.00001 2.78469 8.00001 2.77687 8.00002C2.65776 8.00006 2.5155 8.00012 2.39018 7.98988C2.24496 7.97801 2.03697 7.94757 1.81903 7.83652C1.53678 7.69271 1.30731 7.46324 1.1635 7.181C1.05245 6.96305 1.02201 6.75506 1.01015 6.60984C0.999906 6.48452 0.999961 6.34227 1.00001 6.22315C1.00001 6.21533 1.00001 6.20762 1.00001 6.20001V2.80001C1.00001 2.79241 1.00001 2.78469 1.00001 2.77687C0.999961 2.65776 0.999906 2.5155 1.01015 2.39018C1.02201 2.24496 1.05245 2.03697 1.1635 1.81903C1.30731 1.53678 1.53678 1.30731 1.81903 1.1635C2.03697 1.05245 2.24496 1.02201 2.39018 1.01015C2.5155 0.999906 2.65776 0.999961 2.77687 1.00001ZM3.00001 3.00001V6.00001H6.00001V3.00001H3.00001ZM19.5322 5.52394C19.2488 5.50079 18.8766 5.50001 18.3 5.50001H11C10.4477 5.50001 10 5.0523 10 4.50001C10 3.94773 10.4477 3.50001 11 3.50001L18.3386 3.50001C18.8657 3.49999 19.3205 3.49998 19.695 3.53058C20.0904 3.56288 20.4836 3.6342 20.862 3.82699C21.4265 4.11461 21.8854 4.57356 22.173 5.13804C22.3658 5.51642 22.4371 5.90964 22.4694 6.30498C22.5 6.67955 22.5 7.13431 22.5 7.66145V9.032C22.5 9.47065 22.5 9.84914 22.4787 10.1624C22.4562 10.4922 22.4067 10.8221 22.2717 11.1481C21.9672 11.8832 21.3831 12.4672 20.6481 12.7717C20.3221 12.9067 19.9922 12.9562 19.6624 12.9787C19.3491 13 18.9706 13 18.532 13H18.5C17.9477 13 17.5 12.5523 17.5 12C17.5 11.4477 17.9477 11 18.5 11C18.9796 11 19.2893 10.9995 19.5263 10.9833C19.7542 10.9677 19.8411 10.9411 19.8827 10.9239C20.1277 10.8224 20.3224 10.6277 20.4239 10.3827C20.4411 10.3411 20.4677 10.2543 20.4833 10.0263C20.4995 9.78927 20.5 9.47964 20.5 9.00001V7.70001C20.5 7.12346 20.4992 6.75118 20.4761 6.46785C20.4539 6.19618 20.4162 6.09547 20.391 6.04602C20.2951 5.85786 20.1422 5.70488 19.954 5.60901C19.9046 5.58381 19.8038 5.54613 19.5322 5.52394ZM10.2769 8.50001C10.2847 8.50001 10.2924 8.50001 10.3 8.50001H13.7C13.7076 8.50001 13.7153 8.50001 13.7232 8.50001C13.8423 8.49996 13.9845 8.49991 14.1098 8.51015C14.2551 8.52201 14.4631 8.55245 14.681 8.6635C14.9632 8.80731 15.1927 9.03678 15.3365 9.31903C15.4476 9.53697 15.478 9.74496 15.4899 9.89018C15.5001 10.0155 15.5001 10.1578 15.5 10.2769C15.5 10.2847 15.5 10.2924 15.5 10.3V13.7C15.5 13.7076 15.5 13.7153 15.5 13.7231C15.5001 13.8423 15.5001 13.9845 15.4899 14.1098C15.478 14.2551 15.4476 14.4631 15.3365 14.681C15.1927 14.9632 14.9632 15.1927 14.681 15.3365C14.4631 15.4476 14.2551 15.478 14.1098 15.4899C13.9845 15.5001 13.8423 15.5001 13.7231 15.5C13.7153 15.5 13.7076 15.5 13.7 15.5H10.3C10.2924 15.5 10.2847 15.5 10.2769 15.5C10.1578 15.5001 10.0155 15.5001 9.89018 15.4899C9.74496 15.478 9.53697 15.4476 9.31903 15.3365C9.03678 15.1927 8.80731 14.9632 8.6635 14.681C8.55245 14.4631 8.52201 14.2551 8.51015 14.1098C8.49991 13.9845 8.49996 13.8423 8.50001 13.7232C8.50001 13.7153 8.50001 13.7076 8.50001 13.7V10.3C8.50001 10.2924 8.50001 10.2847 8.50001 10.2769C8.49996 10.1578 8.49991 10.0155 8.51015 9.89018C8.52201 9.74496 8.55245 9.53697 8.6635 9.31903C8.80731 9.03678 9.03678 8.80731 9.31903 8.6635C9.53697 8.55245 9.74496 8.52201 9.89018 8.51015C10.0155 8.49991 10.1578 8.49996 10.2769 8.50001ZM10.5 10.5V13.5H13.5V10.5H10.5ZM5.46802 11H5.50001C6.0523 11 6.50001 11.4477 6.50001 12C6.50001 12.5523 6.0523 13 5.50001 13C5.02039 13 4.71075 13.0006 4.47377 13.0167C4.24577 13.0323 4.15894 13.0589 4.11733 13.0761C3.8723 13.1776 3.67763 13.3723 3.57613 13.6173C3.5589 13.6589 3.53228 13.7458 3.51672 13.9738C3.50055 14.2108 3.50001 14.5204 3.50001 15V16.3C3.50001 16.8766 3.50079 17.2488 3.52394 17.5322C3.54614 17.8038 3.58381 17.9046 3.60901 17.954C3.70488 18.1422 3.85786 18.2951 4.04602 18.391C4.09547 18.4162 4.19618 18.4539 4.46785 18.4761C4.75119 18.4992 5.12346 18.5 5.70001 18.5H13C13.5523 18.5 14 18.9477 14 19.5C14 20.0523 13.5523 20.5 13 20.5H5.66145C5.13431 20.5 4.67955 20.5 4.30498 20.4694C3.90964 20.4371 3.51642 20.3658 3.13804 20.173C2.57356 19.8854 2.11461 19.4265 1.82699 18.862C1.6342 18.4836 1.56288 18.0904 1.53058 17.695C1.49998 17.3205 1.49999 16.8657 1.50001 16.3386L1.50001 14.968C1.5 14.5294 1.49999 14.1509 1.52136 13.8376C1.54387 13.5078 1.59337 13.1779 1.72837 12.852C2.03286 12.1169 2.61688 11.5329 3.35196 11.2284C3.67789 11.0934 4.0078 11.0439 4.33763 11.0214C4.65089 11 5.02937 11 5.46802 11ZM17.7769 16H21.2231C21.3423 16 21.4845 15.9999 21.6098 16.0101C21.7551 16.022 21.9631 16.0525 22.181 16.1635C22.4632 16.3073 22.6927 16.5368 22.8365 16.819C22.9476 17.037 22.978 17.245 22.9899 17.3902C23.0001 17.5155 23.0001 17.6577 23 17.7769C23 17.7847 23 17.7924 23 17.8V21.2C23 21.2076 23 21.2153 23 21.2232C23.0001 21.3423 23.0001 21.4845 22.9899 21.6098C22.978 21.7551 22.9476 21.9631 22.8365 22.181C22.6927 22.4632 22.4632 22.6927 22.181 22.8365C21.9631 22.9476 21.7551 22.978 21.6098 22.9899C21.4845 23.0001 21.3423 23.0001 21.2232 23C21.2153 23 21.2076 23 21.2 23H17.8C17.7924 23 17.7847 23 17.7769 23C17.6577 23.0001 17.5155 23.0001 17.3902 22.9899C17.245 22.978 17.037 22.9476 16.819 22.8365C16.5368 22.6927 16.3073 22.4632 16.1635 22.181C16.0525 21.9631 16.022 21.7551 16.0101 21.6098C15.9999 21.4845 16 21.3423 16 21.2231V17.7769C16 17.6578 15.9999 17.5155 16.0101 17.3902C16.022 17.245 16.0525 17.037 16.1635 16.819C16.3073 16.5368 16.5368 16.3073 16.819 16.1635C17.037 16.0525 17.245 16.022 17.3902 16.0101C17.5155 15.9999 17.6578 16 17.7769 16ZM18 18V21H21V18H18Z"})),Ot=e=>p.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...e},p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.16146 2H17.8385C18.3657 1.99998 18.8205 1.99997 19.195 2.03057C19.5904 2.06287 19.9836 2.13419 20.362 2.32698C20.9265 2.6146 21.3854 3.07354 21.673 3.63803C21.8658 4.01641 21.9371 4.40963 21.9694 4.80497C22 5.17954 22 5.6343 22 6.16144V17.8386C22 18.3657 22 18.8205 21.9694 19.195C21.9371 19.5904 21.8658 19.9836 21.673 20.362C21.3854 20.9265 20.9265 21.3854 20.362 21.673C19.9836 21.8658 19.5904 21.9371 19.195 21.9694C18.8205 22 18.3657 22 17.8386 22H6.16144C5.6343 22 5.17954 22 4.80497 21.9694C4.40963 21.9371 4.01641 21.8658 3.63803 21.673C3.07354 21.3854 2.6146 20.9265 2.32698 20.362C2.13419 19.9836 2.06287 19.5904 2.03057 19.195C1.99997 18.8205 1.99998 18.3657 2 17.8385V6.16146C1.99998 5.63431 1.99997 5.17955 2.03057 4.80497C2.06287 4.40963 2.13419 4.01641 2.32698 3.63803C2.6146 3.07354 3.07354 2.6146 3.63803 2.32698C4.01641 2.13419 4.40963 2.06287 4.80497 2.03057C5.17955 1.99997 5.63431 1.99998 6.16146 2ZM4 10.4649V17.8C4 18.3766 4.00078 18.7488 4.02393 19.0322C4.04612 19.3038 4.0838 19.4045 4.109 19.454C4.20487 19.6422 4.35785 19.7951 4.54601 19.891C4.59546 19.9162 4.69617 19.9539 4.96784 19.9761C5.25117 19.9992 5.62345 20 6.2 20H8L8 15.5681C7.99997 15.3157 7.99994 15.0699 8.01695 14.8618C8.03562 14.6332 8.07969 14.3634 8.21799 14.092C8.40974 13.7157 8.7157 13.4097 9.09202 13.218C9.36344 13.0797 9.63318 13.0356 9.86177 13.0169C10.0699 12.9999 10.3157 13 10.5681 13H13.4319C13.6843 13 13.9301 12.9999 14.1382 13.0169C14.3668 13.0356 14.6366 13.0797 14.908 13.218C15.2843 13.4097 15.5903 13.7157 15.782 14.092C15.9203 14.3634 15.9644 14.6332 15.9831 14.8618C16.0001 15.0699 16 15.3157 16 15.5681L16 20H17.8C18.3766 20 18.7488 19.9992 19.0322 19.9761C19.3038 19.9539 19.4045 19.9162 19.454 19.891C19.6422 19.7951 19.7951 19.6422 19.891 19.454C19.9162 19.4045 19.9539 19.3038 19.9761 19.0322C19.9992 18.7488 20 18.3766 20 17.8V10.4649C19.4117 10.8052 18.7286 11 18 11C16.8053 11 15.7329 10.4762 15 9.64583C14.2671 10.4762 13.1947 11 12 11C10.8053 11 9.73295 10.4762 9 9.64582C8.26706 10.4762 7.19469 11 6 11C5.27143 11 4.58835 10.8052 4 10.4649ZM10 7C10 8.10457 10.8954 9 12 9C13.1046 9 14 8.10457 14 7C14 6.44772 14.4477 6 15 6C15.5523 6 16 6.44772 16 7C16 8.10457 16.8954 9 18 9C19.1046 9 20 8.10457 20 7V6.2C20 5.62345 19.9992 5.25118 19.9761 4.96784C19.9539 4.69617 19.9162 4.59546 19.891 4.54601C19.7951 4.35785 19.6422 4.20487 19.454 4.109C19.4045 4.0838 19.3038 4.04612 19.0322 4.02393C18.7488 4.00078 18.3766 4 17.8 4H6.2C5.62345 4 5.25117 4.00078 4.96784 4.02393C4.69617 4.04612 4.59546 4.0838 4.54601 4.109C4.35785 4.20487 4.20487 4.35785 4.109 4.54601C4.0838 4.59546 4.04612 4.69617 4.02393 4.96784C4.00078 5.25117 4 5.62345 4 6.2V7C4 8.10457 4.89543 9 6 9C7.10457 9 8 8.10457 8 7C8 6.44772 8.44772 6 9 6C9.55229 6 10 6.44772 10 7ZM14 20V15.6C14 15.3035 13.9992 15.1412 13.9897 15.0246C13.9893 15.02 13.9889 15.0156 13.9886 15.0115C13.9844 15.0111 13.98 15.0107 13.9754 15.0103C13.8588 15.0008 13.6965 15 13.4 15H10.6C10.3035 15 10.1412 15.0008 10.0246 15.0103C10.02 15.0107 10.0156 15.0111 10.0114 15.0115C10.0111 15.0156 10.0107 15.02 10.0103 15.0246C10.0008 15.1412 10 15.3035 10 15.6V20H14Z"}));function mr({artifactType:e,className:t}){switch(e){case"DataAnalysisArtifact":return s.jsx(Xs,{className:t});case"DataArtifact":return s.jsx(_s,{className:t});case"ModelArtifact":return s.jsx(Js,{className:t});case"SchemaArtifact":return s.jsx(Es,{className:t});case"ServiceArtifact":return s.jsx(Ot,{className:t});case"StatisticsArtifact":return s.jsx(Ot,{className:t});default:return s.jsx(Me,{className:t})}}const Pe=e=>p.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...e},p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.7587 2H16.2413C17.0463 1.99999 17.7106 1.99998 18.2518 2.04419C18.8139 2.09012 19.3306 2.18868 19.816 2.43597C20.5686 2.81947 21.1805 3.43139 21.564 4.18404C21.8113 4.66937 21.9099 5.18608 21.9558 5.74817C22 6.28936 22 6.95372 22 7.75868V16.2413C22 17.0463 22 17.7106 21.9558 18.2518C21.9099 18.8139 21.8113 19.3306 21.564 19.816C21.1805 20.5686 20.5686 21.1805 19.816 21.564C19.3306 21.8113 18.8139 21.9099 18.2518 21.9558C17.7106 22 17.0463 22 16.2413 22H7.75868C6.95372 22 6.28936 22 5.74817 21.9558C5.18608 21.9099 4.66937 21.8113 4.18404 21.564C3.43139 21.1805 2.81947 20.5686 2.43597 19.816C2.18868 19.3306 2.09012 18.8139 2.04419 18.2518C1.99998 17.7106 1.99999 17.0463 2 16.2413V7.7587C1.99999 6.95373 1.99998 6.28937 2.04419 5.74817C2.09012 5.18608 2.18868 4.66937 2.43597 4.18404C2.81947 3.43139 3.43139 2.81947 4.18404 2.43597C4.66937 2.18868 5.18608 2.09012 5.74817 2.04419C6.28937 1.99998 6.95373 1.99999 7.7587 2ZM5.91104 4.03755C5.47262 4.07337 5.24842 4.1383 5.09202 4.21799C4.7157 4.40973 4.40973 4.7157 4.21799 5.09202C4.1383 5.24842 4.07337 5.47262 4.03755 5.91104C4.00078 6.36113 4 6.94342 4 7.8V16.2C4 17.0566 4.00078 17.6389 4.03755 18.089C4.07337 18.5274 4.1383 18.7516 4.21799 18.908C4.40973 19.2843 4.7157 19.5903 5.09202 19.782C5.24842 19.8617 5.47262 19.9266 5.91104 19.9624C6.36113 19.9992 6.94342 20 7.8 20H16.2C17.0566 20 17.6389 19.9992 18.089 19.9624C18.5274 19.9266 18.7516 19.8617 18.908 19.782C19.2843 19.5903 19.5903 19.2843 19.782 18.908C19.8617 18.7516 19.9266 18.5274 19.9624 18.089C19.9992 17.6389 20 17.0566 20 16.2V7.8C20 6.94342 19.9992 6.36113 19.9624 5.91104C19.9266 5.47262 19.8617 5.24842 19.782 5.09202C19.5903 4.7157 19.2843 4.40973 18.908 4.21799C18.7516 4.1383 18.5274 4.07337 18.089 4.03755C17.6389 4.00078 17.0566 4 16.2 4H7.8C6.94342 4 6.36113 4.00078 5.91104 4.03755ZM12 6C12.5523 6 13 6.44772 13 7V17C13 17.5523 12.5523 18 12 18C11.4477 18 11 17.5523 11 17V7C11 6.44772 11.4477 6 12 6ZM16 10C16.5523 10 17 10.4477 17 11V17C17 17.5523 16.5523 18 16 18C15.4477 18 15 17.5523 15 17V11C15 10.4477 15.4477 10 16 10ZM8 12C8.55229 12 9 12.4477 9 13V17C9 17.5523 8.55229 18 8 18C7.44772 18 7 17.5523 7 17V13C7 12.4477 7.44772 12 8 12Z"})),pr=p.createContext(null);function en({children:e}){const[t,r]=p.useState(!1);return s.jsx(pr.Provider,{value:{isVisualizationConfirmed:t,setVisualizationConfirmed:r},children:e})}function tn(){const e=p.useContext(pr);if(!e)throw new Error("useArtifactLoadConfirmationContext must be used within a VisualizationConfirmProvider");return e}function rn({versionId:e}){return["artifact_versions",e]}async function sn({versionId:e}){const t=ne(ae.artifactVersions.detail(e)),r=await Le(t,{method:"GET",headers:{"Content-Type":"application/json"}});if(r.status===404&&De(),!r.ok)throw new X({message:`Error while fetching artifact version ${e}`,status:r.status,statusText:r.statusText});return r.json()}function ye(e,t){return Y({queryKey:rn(e),queryFn:()=>sn(e),...t})}const nn=p.createContext(null),Ge={didCatch:!1,error:null};class an extends p.Component{constructor(t){super(t),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=Ge}static getDerivedStateFromError(t){return{didCatch:!0,error:t}}resetErrorBoundary(){const{error:t}=this.state;if(t!==null){for(var r,n,a=arguments.length,i=new Array(a),l=0;l<a;l++)i[l]=arguments[l];(r=(n=this.props).onReset)===null||r===void 0||r.call(n,{args:i,reason:"imperative-api"}),this.setState(Ge)}}componentDidCatch(t,r){var n,a;(n=(a=this.props).onError)===null||n===void 0||n.call(a,t,r)}componentDidUpdate(t,r){const{didCatch:n}=this.state,{resetKeys:a}=this.props;if(n&&r.error!==null&&ln(t.resetKeys,a)){var i,l;(i=(l=this.props).onReset)===null||i===void 0||i.call(l,{next:a,prev:t.resetKeys,reason:"keys"}),this.setState(Ge)}}render(){const{children:t,fallbackRender:r,FallbackComponent:n,fallback:a}=this.props,{didCatch:i,error:l}=this.state;let o=t;if(i){const c={error:l,resetErrorBoundary:this.resetErrorBoundary};if(typeof r=="function")o=r(c);else if(n)o=p.createElement(n,c);else if(a!==void 0)o=a;else throw l}return p.createElement(nn.Provider,{value:{didCatch:i,error:l,resetErrorBoundary:this.resetErrorBoundary}},o)}}function ln(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return e.length!==t.length||e.some((r,n)=>!Object.is(r,t[n]))}const on=e=>p.createElement("svg",{viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",...e},p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 2.22222C5.70445 2.22222 2.22222 5.70445 2.22222 10C2.22222 14.2955 5.70445 17.7778 10 17.7778C14.2955 17.7778 17.7778 14.2955 17.7778 10C17.7778 5.70445 14.2955 2.22222 10 2.22222ZM0 10C0 4.47715 4.47715 0 10 0C15.5228 0 20 4.47715 20 10C20 15.5228 15.5228 20 10 20C4.47715 20 0 15.5228 0 10Z",fill:"#D1D5DB"}),p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.7778 10C17.7778 5.70445 14.2955 2.22222 10 2.22222V0C15.5228 0 20 4.47715 20 10H17.7778Z",fill:"#7A3EF4"})),cn=e=>p.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...e},p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.7587 2H16.2413C17.0463 1.99999 17.7106 1.99998 18.2518 2.04419C18.8139 2.09012 19.3306 2.18868 19.816 2.43597C20.5686 2.81947 21.1805 3.43139 21.564 4.18404C21.8113 4.66937 21.9099 5.18608 21.9558 5.74817C22 6.28936 22 6.95372 22 7.75868V16.2413C22 17.0463 22 17.7106 21.9558 18.2518C21.9099 18.8139 21.8113 19.3306 21.564 19.816C21.1805 20.5686 20.5686 21.1805 19.816 21.564C19.3306 21.8113 18.8139 21.9099 18.2518 21.9558C17.7106 22 17.0463 22 16.2413 22H7.75868C6.95372 22 6.28936 22 5.74817 21.9558C5.18608 21.9099 4.66937 21.8113 4.18404 21.564C3.43139 21.1805 2.81947 20.5686 2.43597 19.816C2.18868 19.3306 2.09012 18.8139 2.04419 18.2518C1.99998 17.7106 1.99999 17.0463 2 16.2413V7.7587C1.99999 6.95373 1.99998 6.28937 2.04419 5.74817C2.09012 5.18608 2.18868 4.66937 2.43597 4.18404C2.81947 3.43139 3.43139 2.81947 4.18404 2.43597C4.66937 2.18868 5.18608 2.09012 5.74817 2.04419C6.28937 1.99998 6.95373 1.99999 7.7587 2ZM5.91104 4.03755C5.47262 4.07337 5.24842 4.1383 5.09202 4.21799C4.7157 4.40973 4.40973 4.7157 4.21799 5.09202C4.1383 5.24842 4.07337 5.47262 4.03755 5.91104C4.00078 6.36113 4 6.94342 4 7.8V16.2C4 17.0566 4.00078 17.6389 4.03755 18.089C4.07337 18.5274 4.1383 18.7516 4.21799 18.908C4.40973 19.2843 4.7157 19.5903 5.09202 19.782C5.24842 19.8617 5.47262 19.9266 5.91104 19.9624C6.36113 19.9992 6.94342 20 7.8 20H16.2C17.0566 20 17.6389 19.9992 18.089 19.9624C18.5274 19.9266 18.7516 19.8617 18.908 19.782C19.2843 19.5903 19.5903 19.2843 19.782 18.908C19.8617 18.7516 19.9266 18.5274 19.9624 18.089C19.9992 17.6389 20 17.0566 20 16.2V7.8C20 6.94342 19.9992 6.36113 19.9624 5.91104C19.9266 5.47262 19.8617 5.24842 19.782 5.09202C19.5903 4.7157 19.2843 4.40973 18.908 4.21799C18.7516 4.1383 18.5274 4.07337 18.089 4.03755C17.6389 4.00078 17.0566 4 16.2 4H7.8C6.94342 4 6.36113 4.00078 5.91104 4.03755ZM6.29289 8.29289C6.68342 7.90237 7.31658 7.90237 7.70711 8.29289L10.7071 11.2929C11.0976 11.6834 11.0976 12.3166 10.7071 12.7071L7.70711 15.7071C7.31658 16.0976 6.68342 16.0976 6.29289 15.7071C5.90237 15.3166 5.90237 14.6834 6.29289 14.2929L8.58579 12L6.29289 9.70711C5.90237 9.31658 5.90237 8.68342 6.29289 8.29289ZM12 15C12 14.4477 12.4477 14 13 14H17C17.5523 14 18 14.4477 18 15C18 15.5523 17.5523 16 17 16H13C12.4477 16 12 15.5523 12 15Z"}));function dn({runId:e}){return["runs",e]}async function un({runId:e}){const t=ne(ae.runs.detail(e)),r=await Le(t,{method:"GET",headers:{"Content-Type":"application/json"}});if(r.status===404&&De(),!r.ok)throw new X({message:`Error while fetching pipeline run ${e}`,status:r.status,statusText:r.statusText});return r.json()}function I(e,t){return Y({queryKey:dn(e),queryFn:()=>un(e),...t})}function hn({stepId:e}){return["steps",e]}async function fn({stepId:e}){const t=ne(ae.steps.detail(e)),r=await Le(t,{method:"GET",headers:{"Content-Type":"application/json"}});if(r.status===404&&De(),!r.ok)throw new X({message:`Error while fetching step ${e}`,status:r.status,statusText:r.statusText});return r.json()}function he(e,t){return Y({queryKey:hn(e),queryFn:()=>fn(e),...t})}function mn({artifactVersionId:e}){var a,i,l,o,c,d,u,h,m,f,x;const t=ye({versionId:e}),r=(i=(a=t.data)==null?void 0:a.body)==null?void 0:i.producer_pipeline_run_id,n=(o=(l=t.data)==null?void 0:l.metadata)==null?void 0:o.producer_step_run_id;return t.isPending?s.jsx(b,{className:"h-[500px] w-full"}):t.isError?s.jsx(ee,{err:t.error}):s.jsx(U,{initialOpen:!0,title:"Details",children:s.jsxs("dl",{className:"grid grid-cols-1 gap-x-[10px] gap-y-2 md:grid-cols-3 md:gap-y-4",children:[r&&s.jsx(xn,{producerRunId:r}),n&&s.jsx(pn,{producerStepId:n}),s.jsx(C,{label:"Materializer",value:s.jsx(B,{children:s.jsxs(G,{children:[s.jsx(Z,{className:"cursor-default",children:(c=t.data.body)==null?void 0:c.materializer.attribute}),s.jsxs(q,{align:"start",children:[(d=t.data.body)==null?void 0:d.materializer.module,".",(u=t.data.body)==null?void 0:u.materializer.attribute]})]})})}),s.jsx(C,{label:"Type",value:(h=t.data.body)==null?void 0:h.type}),s.jsx(C,{label:"Author",value:s.jsx("div",{className:"inline-flex items-center gap-1",children:s.jsx(it,{username:((f=(m=t.data.body)==null?void 0:m.user)==null?void 0:f.name)||""})})}),s.jsx(C,{label:"Updated",value:s.jsx(Se,{dateString:((x=t.data.body)==null?void 0:x.updated)||""})})]})})}function pn({producerStepId:e}){const t=he({stepId:e});return t.isPending?s.jsx(C,{label:"Producer Step",value:s.jsx(b,{className:"h-5 w-full"})}):t.isError?null:s.jsx(C,{label:"Producer Step",value:s.jsx(s.Fragment,{children:t.data?s.jsxs(L,{color:Ve("completed"),className:"inline-flex items-center gap-0.5",rounded:!1,emphasis:"subtle",children:[s.jsx(ie,{className:"mr-1 fill-current",status:"completed"}),t.data.name]}):s.jsx(b,{className:"h-full w-[150px]"})})})}function xn({producerRunId:e}){var r,n,a,i,l,o;const t=I({runId:e});return t.isPending?s.jsx(C,{label:s.jsx(b,{className:"h-5 w-full"}),value:s.jsx(b,{className:"h-5 w-full"})}):t.isError?null:s.jsxs(s.Fragment,{children:[s.jsx(C,{label:"Pipeline",value:s.jsx(xe,{to:de.pipelines.namespace(encodeURIComponent((n=(r=t.data.body)==null?void 0:r.pipeline)==null?void 0:n.name)),children:s.jsxs(L,{color:"purple",className:"inline-flex items-center gap-0.5",rounded:!1,emphasis:"subtle",children:[s.jsx(et,{className:"mr-1 h-4 w-4 fill-theme-text-brand"}),(i=(a=t.data.body)==null?void 0:a.pipeline)==null?void 0:i.name]})})}),s.jsx(C,{label:"Producer Run",value:s.jsx(xe,{to:de.runs.detail(e),children:s.jsxs(L,{color:Ve((l=t.data.body)==null?void 0:l.status),className:"inline-flex items-center gap-0.5",rounded:!1,emphasis:"subtle",children:[((o=t.data.body)==null?void 0:o.status)==="running"?s.jsx(on,{className:"mr-1 h-4 w-4 border-[2px]"}):s.jsx(cn,{className:"mr-1 h-4 w-4 fill-current"}),e]})})})]})}function gn({artifactVersionId:e}){var c,d,u,h,m,f;const{data:t,isPending:r,isError:n,error:a}=ye({versionId:e}),i=(c=t==null?void 0:t.body)==null?void 0:c.artifact_store_id,{data:l,isSuccess:o}=Y({...Ls.componentDetail(i),enabled:!!i});return n?s.jsx(ee,{err:a}):r?s.jsx(b,{className:"h-[500px] w-full"}):s.jsx(U,{initialOpen:!0,title:"Data",children:s.jsxs("dl",{className:"grid w-full grid-cols-1 gap-x-[10px] gap-y-2 md:grid-cols-3 md:gap-y-4",children:[s.jsx(z,{className:"col-span-3",children:"URI"}),s.jsx(F,{className:"col-span-3 h-auto",children:s.jsx(W,{fullWidth:!0,codeClasses:"truncate",code:((d=t.body)==null?void 0:d.uri)||""})}),((u=t.body)==null?void 0:u.artifact_store_id)&&s.jsx(C,{label:"Artifact Store",value:s.jsx(s.Fragment,{children:o?s.jsx(L,{emphasis:"subtle",rounded:!1,color:"grey",className:"text-theme-text-primary",children:l==null?void 0:l.name}):s.jsx(b,{className:"h-6 w-12"})})}),s.jsx(C,{label:"Data Type",value:s.jsx(L,{className:"flex w-fit items-center text-theme-text-primary",color:"grey",emphasis:"subtle",rounded:!1,children:s.jsx(B,{children:s.jsxs(G,{children:[s.jsx(Z,{className:"cursor-auto",children:(h=t.body)==null?void 0:h.data_type.attribute}),s.jsxs(q,{children:[(m=t.body)==null?void 0:m.data_type.module,".",(f=t.body)==null?void 0:f.data_type.attribute," "]})]})})})})]})})}function bn({artifactVersionId:e}){function t(r){return`from zenml.client import Client
3
+
4
+ step = Client().get_run_step(${r})
5
+ config = step.config`}return s.jsx(U,{initialOpen:!0,title:"Code",children:s.jsx(W,{fullWidth:!0,highlightCode:!0,wrap:!0,code:t(e)})})}function jn({artifactVersionId:e}){const{data:t,isError:r,error:n}=ye({versionId:e});return r?s.jsx(ee,{err:n}):s.jsxs("div",{className:"space-y-5",children:[t?s.jsx(mn,{artifactVersionId:t.id}):s.jsx(b,{className:"h-[500px] rounded-md lg:col-span-2"}),t?s.jsx(gn,{artifactVersionId:t.id}):s.jsx(b,{className:"h-[500px] rounded-md lg:col-span-2"}),t?s.jsx(bn,{artifactVersionId:t.id}):s.jsx(b,{className:"h-[500px] rounded-md lg:col-span-2"})]})}function ct({metadata:e}){const t=Object.entries(e||{}).filter(([r,n])=>cr(n));return s.jsx(s.Fragment,{children:t.map(([r,n],a)=>s.jsx(J,{data:n,title:r},a))})}function dt({metadata:e,title:t}){const r=/^<class\s+'.*'>$/,n=Object.entries(e).filter(([a,i])=>!cr(i));return n.length===0?null:(n.sort((a,i)=>a[0].localeCompare(i[0])),s.jsx("div",{children:s.jsx(U,{initialOpen:!0,title:t||"Uncategorized",children:s.jsx("dl",{className:"grid grid-cols-1 gap-x-[10px] gap-y-2 md:grid-cols-3 md:gap-y-4",children:n.map(([a,i],l)=>s.jsx(C,{label:s.jsx(B,{children:s.jsxs(G,{children:[s.jsx(Z,{className:"cursor-default truncate",children:a}),s.jsx(q,{className:"max-w-[480px]",children:a})]})}),value:s.jsx(s.Fragment,{children:ce(i)&&r.test(i)?s.jsx(W,{className:"py-1",highlightCode:!0,code:i}):ce(i)&&Ts(i)?s.jsx("a",{className:"underline transition-all duration-200 hover:decoration-transparent",href:i,target:"_blank",rel:"noopener noreferrer",children:i}):s.jsx("div",{className:"whitespace-normal",children:ce(i)?i:JSON.stringify(i)})})},l))})})}))}function Cn({artifactVersionId:e}){var a,i;const{data:t,isError:r,error:n}=ye({versionId:e});return r?s.jsx(ee,{err:n}):t!=null&&t.metadata?s.jsxs("div",{className:"flex flex-col gap-5",children:[t?s.jsx(dt,{metadata:(a=t.metadata)==null?void 0:a.run_metadata}):s.jsx(b,{className:"h-9 w-full"}),t?s.jsx(ct,{metadata:(i=t.metadata)==null?void 0:i.run_metadata}):s.jsx(b,{className:"h-9 w-full"})]}):s.jsx(P,{icon:s.jsx(Me,{className:"h-[120px] w-[120px] fill-neutral-300"}),children:s.jsx("div",{className:"text-center",children:s.jsx("h1",{className:"mb-2 text-display-xs font-semibold",children:"No Metadata Found for this Artifact"})})})}const vn=5*1024*1024;function xr({versionId:e}){return["artifact_versions",e,"visualize"]}async function yn({versionId:e},t){const r=ne(ae.artifactVersions.visualize(e)),n=await Le(r,{method:"GET",headers:{"Content-Type":"application/json"},signal:t});if(n.status===404){const a=await n.json().then(i=>i.detail).catch(()=>["","Failed to fetch artifact visualization"]);throw new X({message:a[1]||"Failed to fetch artifact visualization",status:n.status,statusText:n.statusText})}if(!n.ok)throw new X({message:`Error while fetching artifact visualization for version ${e}`,status:n.status,statusText:n.statusText});return n.json()}function wn(e,t){return Y({queryKey:xr(e),queryFn:({signal:r})=>yn(e,r),...t})}function Nn({content:e}){const t=p.useRef(null),r=()=>{var n;if(t.current){const a=(n=t.current.contentWindow)==null?void 0:n.document.documentElement.scrollHeight;t.current.height=a?`${a}px`:"100%"}};return p.useEffect(()=>(r(),window.addEventListener("resize",r),()=>{window.removeEventListener("resize",r)}),[]),s.jsx("div",{children:s.jsx("iframe",{className:"w-full",title:"Secure HTML Content",ref:t,srcDoc:e,onLoad:r})})}function En({content:e}){return s.jsx("div",{className:"flex items-center justify-center",children:s.jsx("img",{src:ur("data:image/png;base64,"+e),alt:"Visualization for artifact"})})}const _n=p.lazy(()=>Xt(()=>import("./CsvVizualization-DknpE5ej.js"),__vite__mapDeps([0,1,2,3,4,5,6,7]))),kn=p.lazy(()=>Xt(()=>import("./MarkdownVisualization-ylXaAxev.js"),__vite__mapDeps([8,1])));function On({artifactVersionId:e,artifactName:t}){const[r,n]=p.useState(!1),{isVisualizationConfirmed:a,setVisualizationConfirmed:i}=tn(),l=lr(),{data:o,isError:c,error:d,isPending:u}=wn({versionId:e},{retry:!1,enabled:!r});return r?s.jsx(P,{icon:s.jsx(oe,{className:"h-[120px] w-[120px] fill-neutral-300"}),children:s.jsxs("div",{className:"flex flex-col items-center text-center",children:[s.jsx("p",{className:"mb-5 text-text-lg text-theme-text-secondary",children:"Loading the visualization cancelled"}),s.jsx(k,{size:"md",onClick:()=>n(!1),children:"Load Visualization"})]})}):c?d.status===501?s.jsxs(P,{icon:s.jsx(oe,{className:"h-[120px] w-[120px] fill-neutral-300"}),children:[s.jsx("p",{children:"This artifact cannot be visualized because it cannot be loaded from the artifact store. This might happen if your ZenML server does not have the artifact stores dependencies installed or if the server is not authenticated to access it. For more information, see our"}),s.jsx("a",{rel:"noopener noreferrer",target:"_blank",href:"https://docs.zenml.io/stack-components/artifact-stores/custom",children:"docs"})]}):s.jsx(P,{icon:s.jsx(oe,{className:"h-[120px] w-[120px] fill-neutral-300"}),children:s.jsx("div",{className:"text-center",children:s.jsx("p",{className:"text-text-lg text-theme-text-secondary",children:d.message})})}):u?s.jsxs("div",{className:"flex flex-col items-center gap-7 py-12",children:[s.jsx(tt,{}),s.jsxs("div",{className:"flex flex-col items-center",children:[s.jsx("p",{className:"mb-5 text-display-xs",children:"Loading Visualization"}),s.jsx(k,{onClick:()=>{l.cancelQueries({queryKey:xr({versionId:e})}),n(!0)},intent:"secondary",size:"md",children:"Cancel"})]})]}):a?s.jsxs("div",{children:[s.jsx("div",{className:"flex justify-end",children:s.jsx(gr,{artifactName:t,...o})}),s.jsxs("div",{children:[o.type==="image"&&s.jsx(En,{content:o.value}),o.type==="html"&&s.jsx(Nn,{content:o.value}),o.type==="markdown"&&s.jsx(kn,{content:o.value}),o.type==="csv"&&s.jsx(_n,{content:o.value})]})]}):s.jsx(Sn,{artifactName:t,setConfirmed:i,...o})}function Sn({artifactName:e,setConfirmed:t,...r}){return s.jsxs("div",{className:"flex flex-col items-center justify-center gap-8",children:[s.jsx(Ae,{children:"This preview may contain harmful code. Only proceed if you trust the source. Loading content from untrusted sources can pose risks. If unsure, avoid loading."}),s.jsxs("div",{className:"flex justify-center gap-4",children:[s.jsx(k,{size:"md",onClick:()=>t(!0),children:"Load Preview"}),s.jsx(gr,{...r,buttonIntent:"secondary",artifactName:e})]})]})}function gr({type:e,value:t,artifactName:r,buttonIntent:n="primary"}){const a={image:"png",html:"html",markdown:"md",csv:"csv"},i={image:"image/png",html:"text/html",markdown:"text/markdown",csv:"text/csv"};function l(){const c=atob(t),d=new Array(c.length);for(let h=0;h<c.length;h++)d[h]=c.charCodeAt(h);return new Uint8Array(d)}function o(){try{const c=new Blob([e==="image"?l():t],{type:i[e]}),d=window.URL.createObjectURL(c),u=document.createElement("a");u.href=d,u.download=`${r}.`+a[e],u.click()}catch(c){console.error(c)}}return s.jsx(k,{intent:n,size:"md",className:"mb-4",onClick:o,children:"Download"})}function Ln({artifactVersionId:e}){var c,d,u,h;const[t,r]=p.useState(!1),{data:n,isPending:a,isError:i,error:l}=ye({versionId:e});if(i)return s.jsx(P,{icon:s.jsx(Pe,{className:"h-[120px] w-[120px] fill-neutral-300"}),children:s.jsx("div",{className:"text-center",children:s.jsx("p",{className:"text-text-lg text-theme-text-secondary",children:l.message})})});if(a)return s.jsx(b,{className:"h-[300px] w-full"});const o=(d=(c=n.metadata)==null?void 0:c.run_metadata)==null?void 0:d.storage_size;return(u=n.metadata)!=null&&u.visualizations&&n.metadata.visualizations.length<1?s.jsx(P,{icon:s.jsx(Pe,{className:"h-[120px] w-[120px] fill-neutral-300"}),children:s.jsxs("div",{className:"text-center",children:[s.jsx("p",{className:"mb-2 text-display-xs font-semibold",children:"No visualizations found"}),s.jsx("p",{className:"text-text-lg text-theme-text-secondary",children:"There are no visualizations available for this artifact version."})]})}):s.jsx("div",{children:o&&Ss(o)&&o<vn||t?s.jsx(On,{artifactName:((h=n.body)==null?void 0:h.artifact.name)||"artifact",artifactVersionId:e}):s.jsxs("div",{className:"flex h-full w-full flex-col items-center justify-center",children:[s.jsx("p",{className:"mb-4",children:"Artifact Visualization is larger than 5MB. Confirm to proceed:"}),s.jsx(k,{onClick:()=>r(!0),size:"md",children:"Confirm"})]})})}function Tn({error:e}){return s.jsx(P,{icon:s.jsx(Pe,{className:"h-[120px] w-[120px] fill-neutral-300"}),children:s.jsxs("div",{className:"text-center",children:[s.jsx("p",{className:"mb-2 text-display-xs font-semibold",children:"Something went wrong"}),s.jsx("p",{className:"text-lg text-theme-text-secondary",children:e.message})]})})}function In({artifactVersionId:e}){var n,a,i;const{data:t}=ye({versionId:e}),r=(n=t==null?void 0:t.body)==null?void 0:n.version;return s.jsxs("div",{children:[s.jsx("div",{className:"flex h-9 items-center border-b border-theme-border-moderate bg-theme-surface-primary px-4 py-3",children:s.jsxs(Jt,{className:"focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:pointer-events-none",children:[s.jsx(ir,{className:"h-5 w-5 fill-neutral-500"}),s.jsx("span",{className:"sr-only",children:"Close"})]})}),s.jsxs("div",{className:"border-b border-theme-border-moderate bg-theme-surface-primary p-5",children:[t?s.jsx("p",{className:"mb-0.5 text-text-sm text-theme-text-secondary",children:e}):s.jsx(b,{className:"w-9"}),t?s.jsxs("div",{className:"flex items-center gap-1",children:[s.jsx(mr,{artifactType:((a=t.body)==null?void 0:a.type)||"BaseArtifact",className:"h-5 w-5 fill-theme-surface-strong"}),s.jsx("h2",{className:"text-display-xs font-semibold",children:(i=t.body)==null?void 0:i.artifact.name}),s.jsx(pe,{color:r?"light-purple":"light-grey",rounded:!1,children:r||"None"})]}):s.jsx(b,{className:"h-6 w-7"})]}),s.jsx("div",{className:"p-5",children:s.jsx(en,{children:s.jsxs(rt,{defaultValue:"overview",children:[s.jsxs(st,{children:[s.jsxs(O,{className:"flex items-center gap-2 text-text-md",value:"overview",children:[s.jsx(ue,{className:"h-5 w-5 fill-theme-text-tertiary group-data-[state=active]/trigger:fill-theme-surface-strong"}),s.jsx("span",{children:"Overview"})]}),s.jsxs(O,{className:"flex items-center gap-2 truncate text-text-md",value:"metadata",children:[s.jsx(nt,{className:"h-5 w-5 shrink-0 fill-theme-text-tertiary group-data-[state=active]/trigger:fill-theme-surface-strong"}),s.jsx("span",{children:"Metadata"})]}),s.jsxs(O,{className:"flex items-center gap-2 text-text-md",value:"visualization",children:[s.jsx(Pe,{className:"h-5 w-5 fill-theme-text-tertiary group-data-[state=active]/trigger:fill-theme-surface-strong"}),s.jsx("span",{children:"Visualization"})]})]}),s.jsx(S,{className:"m-0 mt-5 border-0 bg-transparent p-0",value:"overview",children:s.jsx(jn,{artifactVersionId:e})}),s.jsx(S,{className:"m-0 mt-5 border-0 bg-transparent p-0",value:"metadata",children:s.jsx(Cn,{artifactVersionId:e})}),s.jsx(S,{className:"m-0 mt-5 border-0 bg-transparent p-0",value:"visualization",children:s.jsx(an,{FallbackComponent:Tn,children:s.jsx(Ln,{artifactVersionId:e})})})]})})})]})}function Pn({children:e,artifactVersionId:t,onOpenChange:r}){return s.jsxs(er,{onOpenChange:r,children:[s.jsx(tr,{asChild:!0,children:e}),s.jsx(rr,{className:"w-[1000px] overflow-y-auto",children:s.jsx(In,{artifactVersionId:t})})]})}function ze({children:e}){return s.jsxs(s.Fragment,{children:[s.jsx(_t,{style:{border:"transparent",top:0,background:"transparent",width:0,height:0},type:"target",position:kt.Top}),s.jsx("div",{className:"flex w-[300px] items-center justify-center",children:e}),s.jsx(_t,{isConnectable:!1,type:"source",style:{border:"transparent",bottom:0,background:"transparent",width:0,height:0},position:kt.Bottom})]})}function br({className:e,code:t,type:r,...n}){const[a,i]=p.useState(!1),[l,o]=p.useState(!1);function c(d){navigator.clipboard&&(navigator.clipboard.writeText(d),i(!0),o(!0),setTimeout(()=>{o(!1),i(!1)},2e3))}return s.jsx(B,{children:s.jsxs(G,{open:l,onOpenChange:o,children:[s.jsx(Z,{asChild:!0,children:s.jsx("div",{...n,className:is("hidden cursor-pointer items-center justify-center transition-all group-hover:flex",e),onClick:d=>{d.stopPropagation(),c(t)}})}),s.jsx(q,{className:"w-full max-w-md whitespace-normal transition-opacity",children:a?"Copied!":`Copy code to load ${r}`})]})})}function Rn({data:e,selected:t}){var i,l;const{unselectNodesAndEdges:r}=ot(o=>({unselectNodesAndEdges:o.unselectNodesAndEdges}));function n(o){o||setTimeout(()=>{r()},100)}function a(o){const c=o.split(".");return c[c.length-1]}return s.jsx(ze,{children:s.jsx(Pn,{onOpenChange:n,artifactVersionId:e.id,children:s.jsxs("button",{"data-selected":!!t,className:"group flex h-[50px] min-w-0 max-w-[300px] items-center justify-center gap-1 rounded-rounded border border-primary-100 bg-primary-25 py-1 pl-1 pr-2 transition-all duration-200 hover:border-primary-400 data-[selected=true]:border-primary-500 data-[selected=true]:bg-primary-500",children:[s.jsx("div",{className:"rounded-rounded bg-primary-50 p-0.5 group-data-[selected=true]:bg-white/20",children:s.jsx(mr,{className:"h-4 w-4 fill-primary-400 group-data-[selected=true]:fill-theme-text-negative",artifactType:((i=e.body)==null?void 0:i.type)||"BaseArtifact"})}),s.jsxs("div",{className:"min-w-0 text-left",children:[s.jsx("p",{className:"truncate text-text-sm font-semibold text-theme-text-brand group-data-[selected=true]:text-theme-text-negative",children:e.name}),s.jsx("p",{className:"truncate text-text-xs text-theme-text-secondary group-data-[selected=true]:text-white/70",children:a(((l=e.body)==null?void 0:l.data_type.attribute)||"")})]}),s.jsxs(br,{className:"h-4 w-4 shrink-0 rounded-sm hover:bg-primary-100 active:bg-primary-200",code:`from zenml.client import Client
6
+
7
+ artifact = Client().get_artifact_version('${e.id}')
8
+ loaded_artifact = artifact.load()`,type:"artifact",children:[s.jsx(nr,{className:"h-3 w-3 fill-primary-400"}),s.jsx("div",{className:"sr-only",children:"Copy code to load artifact"})]})]})})})}const $n=e=>p.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...e},p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.7587 2L8 2C8.55229 2 9 2.44772 9 3C9 3.55229 8.55229 4 8 4H7.8C6.94342 4 6.36113 4.00078 5.91104 4.03755C5.47262 4.07337 5.24842 4.1383 5.09202 4.21799C4.7157 4.40973 4.40973 4.7157 4.21799 5.09202C4.1383 5.24842 4.07337 5.47262 4.03755 5.91104C4.00078 6.36113 4 6.94342 4 7.8V8C4 8.55229 3.55229 9 3 9C2.44772 9 2 8.55229 2 8L2 7.7587C1.99999 6.95373 1.99998 6.28937 2.04419 5.74817C2.09012 5.18608 2.18868 4.66937 2.43597 4.18404C2.81947 3.43139 3.43139 2.81947 4.18404 2.43597C4.66937 2.18868 5.18608 2.09012 5.74817 2.04419C6.28937 1.99998 6.95373 1.99999 7.7587 2ZM18.089 4.03755C17.6389 4.00078 17.0566 4 16.2 4H16C15.4477 4 15 3.55229 15 3C15 2.44772 15.4477 2 16 2L16.2413 2C17.0463 1.99999 17.7106 1.99998 18.2518 2.04419C18.8139 2.09012 19.3306 2.18868 19.816 2.43598C20.5686 2.81947 21.1805 3.43139 21.564 4.18404C21.8113 4.66937 21.9099 5.18608 21.9558 5.74817C22 6.28936 22 6.95372 22 7.75868V8C22 8.55229 21.5523 9 21 9C20.4477 9 20 8.55229 20 8V7.8C20 6.94342 19.9992 6.36113 19.9624 5.91104C19.9266 5.47262 19.8617 5.24842 19.782 5.09202C19.5903 4.7157 19.2843 4.40973 18.908 4.21799C18.7516 4.1383 18.5274 4.07337 18.089 4.03755ZM3 15C3.55229 15 4 15.4477 4 16V16.2C4 17.0566 4.00078 17.6389 4.03755 18.089C4.07337 18.5274 4.1383 18.7516 4.21799 18.908C4.40973 19.2843 4.7157 19.5903 5.09202 19.782C5.24842 19.8617 5.47262 19.9266 5.91104 19.9624C6.36113 19.9992 6.94342 20 7.8 20H8C8.55229 20 9 20.4477 9 21C9 21.5523 8.55229 22 8 22H7.75868C6.95372 22 6.28936 22 5.74817 21.9558C5.18608 21.9099 4.66937 21.8113 4.18404 21.564C3.43139 21.1805 2.81947 20.5686 2.43597 19.816C2.18868 19.3306 2.09012 18.8139 2.04419 18.2518C1.99998 17.7106 1.99999 17.0463 2 16.2413L2 16C2 15.4477 2.44772 15 3 15ZM21 15C21.5523 15 22 15.4477 22 16V16.2413C22 17.0463 22 17.7106 21.9558 18.2518C21.9099 18.8139 21.8113 19.3306 21.564 19.816C21.1805 20.5686 20.5686 21.1805 19.816 21.564C19.3306 21.8113 18.8139 21.9099 18.2518 21.9558C17.7106 22 17.0463 22 16.2413 22H16C15.4477 22 15 21.5523 15 21C15 20.4477 15.4477 20 16 20H16.2C17.0566 20 17.6389 19.9992 18.089 19.9624C18.5274 19.9266 18.7516 19.8617 18.908 19.782C19.2843 19.5903 19.5903 19.2843 19.782 18.908C19.8617 18.7516 19.9266 18.5274 19.9624 18.089C19.9992 17.6389 20 17.0566 20 16.2V16C20 15.4477 20.4477 15 21 15Z"})),Mn=e=>p.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...e},p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 12C4 11.4477 4.44772 11 5 11H19C19.5523 11 20 11.4477 20 12C20 12.5523 19.5523 13 19 13H5C4.44772 13 4 12.5523 4 12Z"}));function Dn({refetch:e}){const{fitView:t,zoomIn:r,zoomOut:n}=hr();return s.jsxs("div",{"aria-label":"Dag Controls",className:"absolute left-4 top-4 z-10 flex flex-col gap-1",children:[s.jsxs("div",{className:"divide-y divide-neutral-300 overflow-hidden rounded-md border border-neutral-300",children:[s.jsx("div",{children:s.jsx(k,{onClick:()=>r(),emphasis:"subtle",className:"rounded-sharp border-none p-0.5",intent:"secondary",children:s.jsx(zs,{className:"h-5 w-5 bg-theme-surface-primary fill-theme-text-primary"})})}),s.jsx("div",{children:s.jsx(k,{onClick:()=>n(),emphasis:"subtle",className:"rounded-sharp border-none bg-theme-surface-primary p-0.5",intent:"secondary",children:s.jsx(Mn,{className:"h-5 w-5 fill-theme-text-primary"})})})]}),s.jsx(k,{className:"h-6 w-6 bg-theme-surface-primary p-0.5",onClick:()=>t(),emphasis:"subtle",intent:"secondary",children:s.jsx($n,{className:"h-5 w-5 fill-theme-text-primary"})}),s.jsxs(k,{className:"h-6 w-6 bg-theme-surface-primary p-0.5",onClick:()=>{e()},emphasis:"subtle",intent:"secondary",children:[s.jsx("span",{className:"sr-only",children:"Refresh"}),s.jsx(Fs,{className:"h-5 w-5 fill-theme-text-primary"})]})]})}function Vn({data:e}){const t=e.status==="failed",r=e.status==="completed";return s.jsx(ze,{children:s.jsx(B,{children:s.jsxs(G,{children:[s.jsx(Z,{children:s.jsxs("div",{className:"flex h-[50px] min-w-0 max-w-[300px] items-center justify-center gap-1 rounded-rounded border border-primary-100 bg-primary-25 p-1 opacity-50",children:[s.jsx("div",{className:"rounded-rounded bg-primary-50 p-0.5",children:s.jsx(ie,{status:t?"failed":r?"completed":"running",className:"h-4 w-4 fill-primary-400"})}),s.jsx("p",{className:"truncate",children:e.label})]})}),s.jsx(q,{className:"z-20 max-w-xs text-center",children:"This artifact is not generated yet. It will not be created if the preceding steps fail."})]})})})}function An({data:e}){const t=e.status==="failed",r=e.status==="completed";return s.jsx(ze,{children:s.jsx(B,{children:s.jsxs(G,{children:[s.jsx(Z,{children:s.jsxs("div",{className:"flex h-[50px] max-w-[300px] items-center gap-1 rounded-md border border-theme-border-moderate bg-theme-surface-primary p-1 pr-2 opacity-50",children:[s.jsx("div",{className:"rounded-sm bg-warning-50 p-0.5",children:s.jsx(ie,{status:t?"failed":r?"completed":"running",className:"h-4 w-4 fill-theme-text-warning"})}),s.jsx("p",{className:"truncate",children:e.label})]})}),s.jsxs(q,{className:"z-20 max-w-xs text-center",children:["This is a future step with pending execution.",s.jsx("br",{}),"It may not run if preceding steps fail."]})]})})})}const St=(e,t)=>Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2));function zn(e,t,r,n){const a=Math.min(St(e,t)/2,St(t,r)/2,n),{x:i,y:l}=t;if(e.x===i&&i===r.x||e.y===l&&l===r.y)return`L${i} ${l}`;if(e.y===l){const d=e.x<r.x?-1:1,u=e.y<r.y?1:-1;return`L ${i+a*d},${l}Q ${i},${l} ${i},${l+a*u}`}const o=e.x<r.x?1:-1,c=e.y<r.y?-1:1;return`L ${i},${l+a*c}Q ${i},${l} ${i+a*o},${l}`}function Ze(e){return{x:e[0],y:e[1]}}const Fn=e=>(t,r,n)=>{const a=e.borderRadius;let i=`M ${t.x}, ${t.y} `;const l=n.reduce((o,c,d)=>{let u="";if(d>0&&d<n.length-1)u=zn(Ze(n[d-1]),Ze(c),Ze(n[d+1]),a);else{const[h,m]=c;u=`${d===0?"M":"L"}${h} ${m}`}return o+=u,o},"");return i+=l,i+=`L ${r.x}, ${r.y} `,i};function Hn(e){const t=Is(),r=Ps({nodes:t,sourcePosition:e.sourcePosition,targetPosition:e.targetPosition,sourceX:e.sourceX,sourceY:e.sourceY,targetX:e.targetX,targetY:e.targetY,options:{drawEdge:Fn({borderRadius:10}),generatePath:Rs,gridRatio:t.length>20?6:t.length>10?3:2}});return r===null?s.jsx($s,{...e}):s.jsx(Ms,{...e,path:r.svgPathString})}function ut(e,t){if(!e||!t)return"Not available";const r=new Date(e),n=new Date(t);if(isNaN(r.getTime())||isNaN(n.getTime()))return"";const a=Math.abs(n.getTime()-r.getTime()),i=Math.floor(a/(1e3*60)),l=Math.floor(a%(1e3*60)/1e3);return`${i}min ${l}s`}const jr=e=>p.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...e},p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.29292 1.29292C2.56075 1.02509 2.95692 0.931566 3.31625 1.05134L6.31626 2.05134C6.7246 2.18746 7.00003 2.5696 7.00003 3.00003V5.58581L10.11 8.69574C10.0377 8.30745 10 7.9077 10 7.50003C10 3.91018 12.9102 1.00003 16.5 1.00003C17.6867 1.00003 18.8019 1.31894 19.7614 1.87638C20.0298 2.03232 20.2105 2.30406 20.2506 2.61187C20.2907 2.91968 20.1856 3.22865 19.9661 3.44815L17.3385 6.07576C17.1288 6.28544 17.0146 6.40072 16.9389 6.48989C16.9359 6.49344 16.9331 6.49682 16.9304 6.50003C16.9331 6.50323 16.9359 6.50661 16.9389 6.51016C17.0146 6.59933 17.1288 6.71461 17.3385 6.92429L17.5758 7.16155C17.7854 7.37123 17.9007 7.48541 17.9899 7.56111C17.9934 7.56412 17.9968 7.56696 18 7.56962C18.0032 7.56696 18.0066 7.56412 18.0102 7.56111C18.0993 7.48541 18.2146 7.37123 18.4243 7.16155L20.8822 4.70364C21.1187 4.46713 21.4578 4.36452 21.7858 4.43023C22.1137 4.49594 22.3871 4.72126 22.5142 5.03063C22.8277 5.7933 23 6.62779 23 7.50003C23 10.5046 20.9614 13.0331 18.1919 13.7777L21.2071 16.7928C22.4261 18.0117 22.4261 19.9881 21.2071 21.207C19.9882 22.426 18.0119 22.426 16.7929 21.207L12.0001 16.4142L7.20713 21.2071C5.98818 22.4261 4.01187 22.4261 2.79292 21.2071C1.57397 19.9882 1.57397 18.0119 2.79292 16.7929L9.08581 10.5L5.58581 7.00003H3.00003C2.5696 7.00003 2.18746 6.7246 2.05134 6.31626L1.05134 3.31625C0.931566 2.95692 1.02509 2.56075 1.29292 2.29292L2.29292 1.29292ZM5.00003 5.00003V3.72079L3.27012 3.14415L3.14415 3.27012L3.72079 5.00003H5.00003ZM11.2062 11.2081L4.20714 18.2071C3.76923 18.645 3.76923 19.355 4.20714 19.7929C4.64504 20.2308 5.35502 20.2308 5.79292 19.7929L12.9499 12.6359C12.9689 12.617 12.9882 12.5975 13.0079 12.5776C13.0487 12.5366 13.0913 12.4937 13.1355 12.4504L13.2326 12.3533C13.3452 12.2406 13.4665 12.1456 13.5937 12.0668C13.6314 12.0423 13.6697 12.0194 13.7087 11.9985C13.8064 11.9462 13.9249 11.8887 14.0691 11.8448C14.2133 11.8009 14.3438 11.7827 14.4541 11.7718C14.4756 11.7696 14.497 11.768 14.5184 11.7668C14.7885 11.7445 15.0574 11.7719 15.3055 11.84C15.4095 11.8686 15.515 11.8935 15.622 11.9146C15.6224 11.9147 15.6228 11.9148 15.6233 11.9149C15.6427 11.9187 15.6621 11.9224 15.6816 11.926C15.8091 11.9493 15.9384 11.9674 16.0696 11.9798C16.211 11.9932 16.3546 12 16.5 12C18.9853 12 21 9.98531 21 7.50003C21 7.47163 20.9998 7.44329 20.9992 7.41502L19.816 8.5983C19.6375 8.77679 19.4637 8.95062 19.3045 9.08579C19.1297 9.23422 18.9078 9.39379 18.6181 9.48793C18.2164 9.61844 17.7837 9.61844 17.382 9.48793C17.0923 9.39379 16.8704 9.23422 16.6955 9.08579C16.5363 8.95062 16.3625 8.7768 16.1841 8.59832L15.9017 8.31596C15.7233 8.13751 15.5494 7.96373 15.4143 7.80452C15.2658 7.62967 15.1063 7.40778 15.0121 7.11806C14.8816 6.71637 14.8816 6.28368 15.0121 5.88199C15.1063 5.59228 15.2658 5.37038 15.4143 5.19554C15.5494 5.03633 15.7232 4.86255 15.9017 4.68412L17.4792 3.10665C17.1643 3.03685 16.8367 3.00003 16.5 3.00003C14.0147 3.00003 12 5.01475 12 7.50003C12 7.80093 12.0294 8.09398 12.0852 8.37677L12.0888 8.39527C12.1337 8.62253 12.1727 8.82052 12.1978 8.97939C12.2214 9.12834 12.2493 9.33506 12.2283 9.54599C12.2173 9.65623 12.1991 9.78675 12.1552 9.93093C12.1114 10.0751 12.0538 10.1937 12.0015 10.2913C11.8581 10.5594 11.6197 10.7962 11.4224 10.9921C11.4025 11.0119 11.3831 11.0312 11.3642 11.0501L11.2081 11.2062C11.2078 11.2065 11.2074 11.2068 11.2071 11.2071C11.2068 11.2074 11.2065 11.2078 11.2062 11.2081ZM13.4143 15L18.2071 19.7928C18.645 20.2307 19.355 20.2307 19.7929 19.7928C20.2308 19.3549 20.2308 18.6449 19.7929 18.207L15.5109 13.9251C15.4187 13.911 15.3272 13.895 15.2363 13.8771C14.9852 13.8275 14.825 13.7961 14.7082 13.7777C14.6855 13.7741 14.667 13.7714 14.652 13.7694C14.6484 13.7726 14.6444 13.7762 14.64 13.7802C14.5816 13.8331 14.5053 13.9089 14.3727 14.0416C14.3699 14.0444 14.367 14.0472 14.3642 14.0501L13.4143 15Z"}));function Bn({stepId:e}){var i;const{data:t,isPending:r,isError:n,error:a}=he({stepId:e});return n?s.jsx(ee,{err:a}):r?s.jsx(b,{className:"h-[300px] w-full"}):s.jsx(U,{initialOpen:!0,title:"Code",children:s.jsx(W,{fullWidth:!0,highlightCode:!0,wrap:!0,code:((i=t==null?void 0:t.metadata)==null?void 0:i.source_code)||""})})}const Gn=e=>p.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.7587 4.31292e-07L8 9.08129e-07C8.55229 9.08129e-07 9 0.447716 9 1C9 1.55229 8.55229 2 8 2H5.8C4.94342 2 4.36113 2.00078 3.91104 2.03755C3.47262 2.07337 3.24842 2.1383 3.09202 2.21799C2.7157 2.40973 2.40973 2.7157 2.21799 3.09202C2.1383 3.24842 2.07337 3.47262 2.03755 3.91104C2.00078 4.36113 2 4.94342 2 5.8V14.2C2 15.0566 2.00078 15.6389 2.03755 16.089C2.07337 16.5274 2.1383 16.7516 2.21799 16.908C2.40973 17.2843 2.7157 17.5903 3.09202 17.782C3.24842 17.8617 3.47262 17.9266 3.91104 17.9624C4.36113 17.9992 4.94342 18 5.8 18H14.2C15.0566 18 15.6389 17.9992 16.089 17.9624C16.5274 17.9266 16.7516 17.8617 16.908 17.782C17.2843 17.5903 17.5903 17.2843 17.782 16.908C17.8617 16.7516 17.9266 16.5274 17.9624 16.089C17.9992 15.6389 18 15.0566 18 14.2V12C18 11.4477 18.4477 11 19 11C19.5523 11 20 11.4477 20 12V14.2413C20 15.0463 20 15.7106 19.9558 16.2518C19.9099 16.8139 19.8113 17.3306 19.564 17.816C19.1805 18.5686 18.5686 19.1805 17.816 19.564C17.3306 19.8113 16.8139 19.9099 16.2518 19.9558C15.7106 20 15.0463 20 14.2413 20H5.75868C4.95372 20 4.28936 20 3.74817 19.9558C3.18608 19.9099 2.66937 19.8113 2.18404 19.564C1.43139 19.1805 0.819468 18.5686 0.435975 17.816C0.188684 17.3306 0.0901197 16.8139 0.0441945 16.2518C-2.28137e-05 15.7106 -1.23241e-05 15.0463 4.31292e-07 14.2413V5.7587C-1.23241e-05 4.95373 -2.28137e-05 4.28937 0.0441945 3.74817C0.0901197 3.18608 0.188684 2.66937 0.435975 2.18404C0.819468 1.43139 1.43139 0.819468 2.18404 0.435975C2.66937 0.188684 3.18608 0.0901197 3.74817 0.0441945C4.28937 -2.28137e-05 4.95373 -1.23241e-05 5.7587 4.31292e-07ZM12 1.00001C12 0.447726 12.4477 1.04449e-05 13 1.04449e-05H19C19.5523 1.04449e-05 20 0.447725 20 1.00001L20 7.00001C20 7.55229 19.5523 8.00001 19 8.00001C18.4477 8.00001 18 7.5523 18 7.00001L18 3.41422L10.7071 10.7071C10.3166 11.0976 9.68342 11.0976 9.29289 10.7071C8.90237 10.3166 8.90237 9.68342 9.29289 9.29289L16.5858 2.00001H13C12.4477 2.00001 12 1.5523 12 1.00001Z"}));function Cr({data:e}){const[t,r]=p.useState(!0);return s.jsxs(ge,{open:t,onOpenChange:r,children:[s.jsx(be,{intent:"primary",className:"flex items-center gap-[10px]",children:s.jsxs(je,{className:"flex w-full items-center gap-[10px]",children:[s.jsx(ve,{className:` ${t?"":"-rotate-90"} h-5 w-5 rounded-md fill-neutral-500 transition-transform duration-200 hover:bg-neutral-200`}),"Docker Image"]})}),s.jsxs(Ce,{className:"border-t border-theme-border-moderate bg-theme-surface-primary px-5 py-3",children:[s.jsxs("dl",{className:"grid grid-cols-1 gap-x-[10px] gap-y-2 md:grid-cols-3 md:gap-y-4",children:[s.jsx(C,{label:"Docker Image",value:s.jsxs("div",{className:"flex justify-between",children:[s.jsxs(L,{className:"inline-flex items-center gap-0.5",rounded:!1,emphasis:"subtle",children:[s.jsx(Bs,{className:"mr-1 h-4 w-4 fill-theme-text-brand"}),ls(e.image)]}),s.jsxs("div",{className:"align-center mr-1 flex",children:[s.jsx("a",{className:"cursor-pointer",rel:"noopener noreferrer",target:"_blank",href:`https://${e.image}`,children:s.jsx(Gn,{className:"mr-1 mt-0.5 h-5 w-5 fill-theme-text-tertiary"})}),s.jsx(H,{copyText:e.image,isVisible:!0,copyTitle:"Copy url"})]})]})}),s.jsx(C,{label:"Contains Code",value:s.jsx(L,{color:e.contains_code?"green":"grey",className:"inline-flex items-center gap-0.5",rounded:!1,emphasis:"subtle",children:e.contains_code?"Available":"None"})})]}),e.dockerfile&&s.jsxs(s.Fragment,{children:[s.jsx("p",{className:"mb-2 mt-5 text-theme-text-secondary",children:"Dockerfile"}),s.jsx(W,{fullWidth:!0,wrap:!0,code:e.dockerfile})]}),e.requirements&&s.jsxs(s.Fragment,{children:[s.jsx("p",{className:"mb-2 mt-5 text-theme-text-secondary",children:"Requirements"}),s.jsx(W,{fullWidth:!0,wrap:!0,code:e.requirements})]})]})]})}function Zn({buildId:e}){return["pipeline-builds",e]}async function qn({buildId:e},t){const r=ne(ae.runs.detail(e)),n=await fetch(r,{method:"GET",credentials:"include",headers:{"Content-Type":"application/json",...t}});if(!n.ok)throw new X({message:`Error while fetching pipeline build ${e}`,status:n.status,statusText:n.statusText});return n.json()}function vr(e,t){return Y({queryKey:Zn(e),queryFn:()=>qn(e),...t})}function Wn({stepId:e}){var h,m,f,x,g,j,E,$,M,D,V;const{data:t,isPending:r,isError:n,error:a}=he({stepId:e}),{runId:i}=T(),{data:l}=I({runId:i},{throwOnError:!0,enabled:!!i}),{data:o}=vr({buildId:(m=(h=l==null?void 0:l.body)==null?void 0:h.build)==null?void 0:m.id},{enabled:!!((x=(f=l==null?void 0:l.body)==null?void 0:f.build)!=null&&x.id)}),d=(()=>{var v;const _=(v=o==null?void 0:o.metadata)==null?void 0:v.images;if(!_)return null;if(Object.keys(_).length===1&&Object.keys(_)[0]!=="orchestrator")return Object.keys(_)[0];for(const y in _)if(y!=="orchestrator"&&y.split(".")[1]!=="orchestrator")return y;return"orchestrator"})(),u=d&&((j=(g=o==null?void 0:o.metadata)==null?void 0:g.images)==null?void 0:j[d]);return n?s.jsx(ee,{err:a}):r?s.jsxs("div",{className:"space-y-5",children:[s.jsx(b,{className:"h-[200]"}),s.jsx(b,{className:"h-[200px]"}),s.jsx(b,{className:"h-[200px]"})]}):s.jsxs("div",{className:"space-y-5",children:[s.jsx(Un,{data:($=(E=t.metadata)==null?void 0:E.config)==null?void 0:$.parameters,title:"Parameters"}),u?s.jsx(Cr,{data:u}):null,s.jsx(Kn,{id:t.id}),s.jsx(J,{isInitialOpen:!0,title:"Resources",data:((D=(M=t.metadata)==null?void 0:M.config.settings)==null?void 0:D.resources)||{}}),s.jsx(J,{isInitialOpen:!0,title:"Extra",data:(V=t.metadata)==null?void 0:V.config.extra})]})}function Un({data:e,title:t}){return Object.keys(e).length>0?s.jsx(U,{initialOpen:!0,title:t,children:s.jsx("dl",{className:"grid grid-cols-1 gap-x-[10px] gap-y-2 md:grid-cols-3 md:gap-y-4",children:Object.entries(e).map(([n,a])=>typeof a!="object"&&s.jsx(C,{label:s.jsx(B,{children:s.jsxs(G,{children:[s.jsx(Z,{className:"cursor-default truncate",children:n}),s.jsx(q,{className:"max-w-[480px]",children:n})]})}),value:s.jsx("div",{children:os(a)})},n))})}):s.jsx(U,{initialOpen:!0,title:t,children:s.jsx("p",{className:"text-theme-text-secondary",children:"No data available"})})}function Kn({id:e}){function t(r){return`from zenml.client import Client
9
+ artifact = Client().get_pipeline_run('${r}')
10
+ config = run.config()`}return s.jsxs(U,{initialOpen:!0,title:"Code",children:[s.jsx("h2",{className:"mb-2 text-text-md text-theme-text-secondary",children:"Get config programmatically"}),s.jsx(W,{fullWidth:!0,highlightCode:!0,wrap:!0,code:t(e)})]})}const Yn=e=>p.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.0083 2C6.47396 2 2 6.58331 2 12.2535C2 16.786 4.86662 20.6226 8.84338 21.9805C9.34058 22.0826 9.5227 21.7599 9.5227 21.4885C9.5227 21.2508 9.50631 20.436 9.50631 19.587C6.72225 20.1983 6.14249 18.3647 6.14249 18.3647C5.69508 17.1764 5.03215 16.871 5.03215 16.871C4.12092 16.2429 5.09852 16.2429 5.09852 16.2429C6.1093 16.3108 6.63969 17.2954 6.63969 17.2954C7.53432 18.857 8.97592 18.4158 9.55588 18.1441C9.63865 17.482 9.90394 17.0237 10.1856 16.7691C7.96514 16.5314 5.62891 15.6487 5.62891 11.7102C5.62891 10.5898 6.02634 9.67309 6.65608 8.96018C6.55672 8.7056 6.20866 7.65289 6.75564 6.24394C6.75564 6.24394 7.60069 5.97228 9.5061 7.29644C10.3219 7.07199 11.1632 6.95782 12.0083 6.95685C12.8533 6.95685 13.7148 7.07581 14.5102 7.29644C16.4159 5.97228 17.2609 6.24394 17.2609 6.24394C17.8079 7.65289 17.4596 8.7056 17.3603 8.96018C18.0066 9.67309 18.3876 10.5898 18.3876 11.7102C18.3876 15.6487 16.0514 16.5143 13.8143 16.7691C14.179 17.0916 14.4936 17.7026 14.4936 18.6703C14.4936 20.0453 14.4773 21.1489 14.4773 21.4883C14.4773 21.7599 14.6596 22.0826 15.1566 21.9808C19.1333 20.6224 22 16.786 22 12.2535C22.0163 6.58331 17.526 2 12.0083 2Z",fill:"#0D061D"}));function Qn({repositoryId:e}){return["code_repositories",e]}async function Xn({repositoryId:e}){const t=ne(ae.code_repositories.detail(e)),r=await fetch(t,{method:"GET",credentials:"include",headers:{"Content-Type":"application/json"}});if(r.status===404&&De(),!r.ok)throw new X({message:`Error while fetching code repository ${e}`,status:r.status,statusText:r.statusText});return r.json()}function Jn(e,t){return Y({queryKey:Qn(e),queryFn:()=>Xn(e),...t})}function yr({repositoryId:e,commit:t}){var o;const{data:r,isPending:n,isError:a}=Jn({repositoryId:e},{enabled:!!e}),i=(o=r==null?void 0:r.metadata)==null?void 0:o.config,l=()=>{var u,h,m,f;let c=r==null?void 0:r.name,d="";return((h=(u=r==null?void 0:r.body)==null?void 0:u.source)==null?void 0:h.attribute)==="GitHubCodeRepository"?(c=`${i==null?void 0:i.owner}/${i==null?void 0:i.repository}`,d=`https://www.github.com/${c}`):((f=(m=r==null?void 0:r.body)==null?void 0:m.source)==null?void 0:f.attribute)==="GitLabCodeRepository"&&(c=`${i==null?void 0:i.group}/${i==null?void 0:i.project}`,d=`https://www.gitlab.com/${c}`),s.jsxs("a",{target:"_blank",rel:"noopener noreferrer",className:`flex items-center ${d?"":"pointer-events-none"}`,onClick:x=>x.stopPropagation(),href:d,children:[s.jsx(Yn,{className:"mr-1 h-5 w-5 fill-theme-text-brand"}),c]})};return!e||!t?s.jsx("p",{children:"Not available"}):n?s.jsx(b,{className:"h-6"}):a?null:s.jsxs("div",{className:"group/copybutton mr-1",children:[s.jsxs(L,{color:"grey",className:"inline-flex items-center font-semibold text-neutral-900",rounded:!1,emphasis:"subtle",children:[l(),s.jsx("div",{className:"ml-1 rounded-sm bg-neutral-200 px-1 py-0.25",children:cs(t,10)})]}),s.jsx(H,{copyText:t})]})}function ea({stepId:e,runId:t}){var h,m,f,x,g,j,E,$,M,D,V,_,v,y,A,te,re,we,Ne,Ee,_e,ke,Be,me,Te,bt,jt,Ct,vt,yt,wt;const{data:r,isError:n,isPending:a,error:i}=he({stepId:e}),{data:l}=I({runId:t}),o=(f=(m=(h=l==null?void 0:l.body)==null?void 0:h.code_reference)==null?void 0:m.body)==null?void 0:f.code_repository;if(n)return s.jsx(ee,{err:i});if(a)return s.jsx(b,{className:"h-[300px] w-full"});const c=(g=(x=r.metadata)==null?void 0:x.config)==null?void 0:g.enable_cache,d=(E=(j=r.metadata)==null?void 0:j.config)==null?void 0:E.enable_artifact_metadata,u=(M=($=r.metadata)==null?void 0:$.config)==null?void 0:M.enable_artifact_visualization;return s.jsx(U,{initialOpen:!0,title:"Details",children:s.jsxs("dl",{className:"grid grid-cols-1 gap-x-[10px] gap-y-2 md:grid-cols-3 md:gap-y-4",children:[s.jsx(C,{label:"Id",value:s.jsxs("div",{className:"group/copybutton flex items-center gap-0.5",children:[r.id,s.jsx(H,{copyText:r.id})]})}),s.jsx(C,{label:"Status",value:s.jsxs("div",{className:"flex items-center gap-1",children:[s.jsxs(L,{color:Ve((D=r.body)==null?void 0:D.status),rounded:!0,emphasis:"subtle",className:"flex w-fit items-center gap-1 capitalize",children:[s.jsx(ie,{className:"fill-current",status:(V=r.body)==null?void 0:V.status}),(_=r.body)==null?void 0:_.status]}),typeof c=="boolean"&&s.jsx(pe,{size:"sm",color:c?"green":"grey",children:c?"Enable cache":"Disabled cache"})]})}),l?s.jsxs(s.Fragment,{children:[s.jsx(C,{label:"Pipeline",value:s.jsx(xe,{to:de.pipelines.namespace(encodeURIComponent((y=(v=l.body)==null?void 0:v.pipeline)==null?void 0:y.name)),children:s.jsxs(L,{color:"purple",className:"inline-flex items-center gap-0.5",rounded:!1,emphasis:"subtle",children:[s.jsx(et,{className:"mr-1 h-4 w-4 fill-theme-text-brand"}),(te=(A=l.body)==null?void 0:A.pipeline)==null?void 0:te.name]})})}),s.jsx(C,{label:s.jsxs("div",{className:"flex items-center space-x-0.5 truncate",children:[s.jsx("span",{className:"truncate",children:"Repository/Commit"}),s.jsx(B,{children:s.jsxs(G,{children:[s.jsxs(Z,{className:"cursor-default",children:[s.jsx(ue,{className:"h-3 w-3 fill-theme-text-secondary"}),s.jsx("span",{className:"sr-only",children:"Info"})]}),s.jsx(q,{className:"w-full max-w-md whitespace-normal",children:"Git hash of code repository. Only set if pipeline was run in a clean git repository connected to your ZenML server."})]})})]}),value:(re=l.body)!=null&&re.code_reference?s.jsx(yr,{repositoryId:o==null?void 0:o.id,commit:(we=l.body.code_reference.body)==null?void 0:we.commit}):"Not available"}),s.jsx(z,{className:(Ne=l.metadata)!=null&&Ne.code_path?"col-span-3":"",children:s.jsxs("div",{className:"flex items-center space-x-0.5 truncate",children:[s.jsx("span",{children:"Code Path"}),s.jsx(B,{children:s.jsxs(G,{children:[s.jsxs(Z,{className:"cursor-default",children:[s.jsx(ue,{className:"h-3 w-3 fill-theme-text-secondary"}),s.jsx("span",{className:"sr-only",children:"Info"})]}),s.jsx(q,{className:"w-full max-w-md whitespace-normal",children:"Path to where code was uploaded in the artifact store. Only set on a pipeline with a non-local orchestrator and if Repository/Commit is not set"})]})})]})}),s.jsx(F,{className:(Ee=l.metadata)!=null&&Ee.code_path?"col-span-3 h-auto":"",children:(_e=l.metadata)!=null&&_e.code_path?s.jsx(W,{code:l.metadata.code_path}):"Not available"})]}):s.jsx(b,{className:"h-6 w-full"}),s.jsx(C,{label:"Cache key",value:s.jsxs("div",{className:"group/copybutton flex items-center gap-0.5",children:[(ke=r.metadata)==null?void 0:ke.cache_key,s.jsx(H,{copyText:(Be=r.metadata)==null?void 0:Be.cache_key})]})}),s.jsx(C,{label:"Author",value:s.jsx("div",{className:"inline-flex items-center gap-1",children:s.jsx(it,{username:(Te=(me=r.body)==null?void 0:me.user)==null?void 0:Te.name})})}),s.jsx(C,{label:"Start Time",value:(bt=r.body)!=null&&bt.start_time?s.jsx(Se,{dateString:(jt=r.body)==null?void 0:jt.start_time}):"Not available"}),s.jsx(C,{label:"End Time",value:(Ct=r.body)!=null&&Ct.end_time?s.jsx(Se,{dateString:(vt=r.body)==null?void 0:vt.end_time}):"Not available"}),s.jsx(C,{label:"Duration",value:ut(((yt=r.body)==null?void 0:yt.start_time)||"",((wt=r.body)==null?void 0:wt.end_time)||"")}),s.jsx(C,{label:"Artifact metadata",value:s.jsx(pe,{size:"sm",color:d?"green":"grey",children:d?"Enable":"Disabled"})}),s.jsx(C,{label:"Artifact visualization",value:s.jsx(pe,{size:"sm",color:u?"green":"grey",children:u?"Enable":"Disabled"})})]})})}function ta({className:e}){var c,d,u,h,m;const{runId:t}=T(),{data:r,isPending:n,isError:a}=I({runId:t},{throwOnError:!0}),i=(d=(c=r==null?void 0:r.metadata)==null?void 0:c.run_metadata)==null?void 0:d.orchestrator_url,l=(h=(u=r==null?void 0:r.metadata)==null?void 0:u.run_metadata)==null?void 0:h.orchestrator_logs_url,o=(m=r==null?void 0:r.metadata)==null?void 0:m.orchestrator_run_id;return a?s.jsx("p",{children:"Failed to fetch Orchestrator Card"}):n?s.jsx(b,{className:"h-[150px] w-full"}):s.jsx(U,{className:e,initialOpen:!0,title:"Orchestrator",children:s.jsxs("dl",{className:"grid grid-cols-1 gap-x-[10px] gap-y-2 md:grid-cols-3 md:gap-y-4",children:[s.jsx(C,{label:"Orchestrator URL",value:i&&ce(i)?s.jsxs("div",{className:"group/copybutton flex items-center gap-0.5",children:[s.jsx("a",{className:"truncate underline transition-all duration-200 hover:decoration-transparent",rel:"noopener noreferrer",target:"_blank",href:i,children:i}),s.jsx(H,{copyText:i})]}):"Not available"}),s.jsx(C,{label:"Orchestrator Logs",value:l&&ce(l)?s.jsxs("div",{className:"group/copybutton flex items-center gap-0.5",children:[s.jsx("a",{className:"truncate text-theme-text-brand underline transition-all duration-200 hover:decoration-transparent",rel:"noopener noreferrer",target:"_blank",href:l,children:l}),s.jsx(H,{copyText:l})]}):"Not available"}),s.jsx(C,{label:"Orchestrator Run ID",value:o?s.jsxs("div",{className:"group/copybutton flex items-center gap-0.5",children:[o,s.jsx(H,{copyText:o})]}):"Not available"})]})})}function ra({stepId:e}){return["logs",e]}async function sa({stepId:e}){const t=ne(ae.steps.logs(e)),r=await Le(t,{method:"GET",headers:{"Content-Type":"application/json"}});if(!r.ok){const n=await r.json().catch(()=>({}));throw new X({message:n.detail[1].includes("File")&&n.detail[1]||`The logs for step ${e} cannot be fetched or this pipeline run ran locally and logs were not tracked`,status:r.status,statusText:r.statusText})}return r.json()}function na(e,t){return Y({queryKey:ra(e),queryFn:()=>sa(e),...t})}const aa=()=>s.jsx("section",{className:"flex h-[calc(100vh_-_270px)] items-center justify-center",children:s.jsxs("div",{className:"flex flex-col items-center justify-center",children:[s.jsxs("div",{className:"relative mb-2 flex items-center justify-center",children:[s.jsx(tt,{className:"h-[120px] w-[120px]"}),s.jsx(la,{})]}),s.jsx("h2",{className:"my-3 text-center text-display-xs font-semibold",children:"Loading the Logs"}),s.jsxs("p",{className:"text-center text-text-lg text-theme-text-secondary",children:["It can take up to a few minutes. ",s.jsx("br",{})," Please wait while we fetch logs from the artifact store."]})]})});function ia({stepId:e,stepDetail:t}){var o,c;const r=(c=(o=t==null?void 0:t.metadata)==null?void 0:o.config)==null?void 0:c.enable_step_logs,{data:n,isPending:a,isError:i,error:l}=na({stepId:e});return i?s.jsx(ee,{err:l}):a?s.jsx(aa,{}):s.jsx(U,{initialOpen:!0,title:"Logs",children:typeof r=="boolean"&&r===!1?s.jsx("dl",{className:"grid grid-cols-1 gap-x-[10px] gap-y-2 md:grid-cols-3 md:gap-y-4",children:s.jsx(C,{label:"Enable logs",value:"Disabled"})}):s.jsx(W,{codeClasses:"whitespace-pre-line",fullWidth:!0,wrap:!0,code:n||""})})}function la(){return s.jsx("div",{className:"absolute rounded-rounded bg-primary-25 p-3",children:s.jsx(fr,{className:"h-7 w-7 fill-primary-400"})})}function oa({stepId:e}){var i;const{data:t,isPending:r,isError:n,error:a}=he({stepId:e});return r?s.jsxs("div",{className:"flex flex-col gap-5",children:[s.jsx(b,{className:"h-9 w-full"}),s.jsx(b,{className:"h-9 w-full"})]}):n?s.jsx(ee,{err:a}):!((i=t.metadata)!=null&&i.run_metadata)||Object.keys(t.metadata.run_metadata).length===0?s.jsx(P,{icon:s.jsx(Me,{className:"h-[120px] w-[120px] fill-neutral-300"}),children:s.jsxs("div",{className:"text-center",children:[s.jsx("p",{className:"mb-2 text-display-xs font-semibold",children:"No metadata found"}),s.jsx("p",{className:"text-text-lg text-theme-text-secondary",children:"There are no metadata available for this step."})]})}):s.jsxs("div",{className:"flex flex-col gap-5",children:[s.jsx(dt,{metadata:t.metadata.run_metadata}),s.jsx(ct,{metadata:t.metadata.run_metadata})]})}function ca({component:e,objectConfig:t}){var a,i;const r=`${(a=e.body)==null?void 0:a.type}.${(i=e.body)==null?void 0:i.flavor_name}`,n=(t==null?void 0:t[r])??void 0;return!n||Object.keys(n).length===0?s.jsx(xe,{to:de.components.detail(e.id),children:s.jsx(sr,{className:"flex w-full items-center justify-between gap-3 px-5 py-3 text-left",children:s.jsx(Lt,{component:e})})}):s.jsx(J,{intent:"primary",contentClassName:"pl-[60px]",className:"w-full",isInitialOpen:!1,title:s.jsx("div",{className:"flex w-full items-center justify-between gap-3 text-left",children:s.jsx(Lt,{component:e})}),data:n,children:s.jsx(k,{asChild:!0,intent:"secondary",emphasis:"subtle",className:"mx-auto flex w-fit justify-center text-text-sm text-theme-text-secondary",children:s.jsx(xe,{to:de.components.detail(e.id),children:"See Component Details"})})})}function Lt({component:e}){var t,r,n,a;return s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("img",{width:32,height:32,alt:`${(t=e.body)==null?void 0:t.flavor_name} logo`,src:ur(((r=e.body)==null?void 0:r.logo_url)||"")}),s.jsxs("div",{children:[s.jsx("p",{className:"text-text-lg",children:e.name}),s.jsx("p",{className:"text-text-sm text-theme-text-secondary",children:e.id.split("-")[0]})]})]}),s.jsx(Gs,{type:((n=e.body)==null?void 0:n.type)||"orchestrator",children:ds(((a=e.body)==null?void 0:a.type)||"")})]})}function da({stack:e}){return s.jsxs(sr,{className:"flex items-center justify-between gap-3 px-5 py-3",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(us,{type:"square",size:"md",children:s.jsx(hs,{size:"md",children:e.name[0]})}),s.jsxs("div",{children:[s.jsx("p",{className:"text-text-lg",children:e.name}),s.jsx("p",{className:"text-text-sm text-theme-text-secondary",children:e.id.split("-")[0]})]})]}),s.jsxs(L,{rounded:!1,className:"inline-flex shrink items-center gap-0.5 truncate",color:"turquoise",emphasis:"subtle",children:[s.jsx(at,{className:"h-4 w-4 shrink-0 fill-current"}),s.jsx("div",{className:"truncate",children:"Stack"})]})]})}function wr({stack:e,objectConfig:t}){var r;return s.jsxs("div",{className:"space-y-5",children:[s.jsx(ua,{}),s.jsx(da,{stack:e}),s.jsx("ul",{className:"space-y-5",children:Object.values(((r=e.metadata)==null?void 0:r.components)||{}).map(n=>s.jsx("li",{className:"w-full",children:s.jsx(ca,{component:n[0],objectConfig:t})},n[0].id))})]})}function ua(){return s.jsx(Ae,{className:"truncate",children:s.jsx("p",{className:"truncate",children:"Current run-specific stack settings. Click on a component for full default settings."})})}function ha({stepId:e}){var l,o,c,d;const{runId:t}=T(),r=I({runId:t}),n=he({stepId:e});if(r.isPending||n.isPending)return s.jsx(b,{className:"h-[250px] w-full"});if(r.isError||n.isError)return s.jsx("p",{children:"Something went wrong fetching the run"});const a=(c=(o=(l=r.data)==null?void 0:l.body)==null?void 0:o.stack)==null?void 0:c.id,i=((d=n.data.metadata)==null?void 0:d.config.settings)||{};return a?s.jsx(fa,{objectConfig:i,stackId:a}):s.jsx(P,{icon:s.jsx(oe,{className:"h-[120px] w-[120px] fill-neutral-300"}),children:s.jsxs("div",{className:"text-center",children:[s.jsx("p",{className:"text-display-xs font-semibold",children:"No Stack"}),s.jsx("p",{className:"text-text-lg text-theme-text-secondary",children:"There is no stack associated with this run."})]})})}function fa({stackId:e,objectConfig:t}){const{data:r,isError:n,isPending:a}=ar({stackId:e});return a?s.jsx(b,{className:"h-[250px] w-full"}):n?s.jsx("p",{children:"Failed to fetch Stack"}):s.jsx(wr,{stack:r,objectConfig:t})}function ma(e){if(!e)return"light-grey";switch(e){case"completed":return"green";default:return"light-grey"}}function pa({stepId:e}){var i,l,o;const{runId:t}=T(),{data:r}=he({stepId:e}),n=(i=r==null?void 0:r.body)==null?void 0:i.status,a=(o=(l=r==null?void 0:r.metadata)==null?void 0:l.config)==null?void 0:o.enable_cache;return s.jsxs("div",{children:[s.jsx("div",{className:"flex h-9 items-center border-b border-theme-border-moderate bg-theme-surface-primary px-4 py-3",children:s.jsxs(Jt,{className:"focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:pointer-events-none",children:[s.jsx(ir,{className:"h-5 w-5 fill-neutral-500"}),s.jsx("span",{className:"sr-only",children:"Close"})]})}),s.jsx("div",{className:"flex justify-between border-b border-theme-border-moderate bg-theme-surface-primary p-5",children:s.jsx("div",{children:r?s.jsxs("div",{className:"flex items-center gap-1",children:[s.jsx("div",{className:`rounded-sm p-0.5 ${or(n)}`,children:s.jsx(ie,{status:n,className:"h-4 w-4"})}),s.jsx("h2",{className:"text-display-xs font-semibold",children:r.name}),s.jsx(pe,{size:"sm",color:ma(n),children:n||"None"}),typeof a=="boolean"&&s.jsx(pe,{size:"sm",color:a?"green":"grey",children:a?"Enable cache":"Disabled cache"})]}):s.jsx(b,{className:"h-6 w-7"})})}),s.jsx("div",{className:"p-5",children:s.jsxs(rt,{defaultValue:"overview",children:[s.jsxs(st,{children:[s.jsxs(O,{className:"flex items-center gap-2 truncate text-text-md",value:"overview",children:[s.jsx(ue,{className:"h-5 w-5 shrink-0 fill-theme-text-tertiary group-data-[state=active]/trigger:fill-theme-surface-strong"}),s.jsx("span",{children:"Overview"})]}),s.jsxs(O,{className:"flex items-center gap-2 truncate text-text-md",value:"stack",children:[s.jsx(at,{className:"h-5 w-5 shrink-0 fill-theme-text-tertiary group-data-[state=active]/trigger:fill-theme-surface-strong"}),s.jsx("span",{children:"Stack"})]}),s.jsxs(O,{className:"flex items-center gap-2 truncate text-text-md",value:"code",children:[s.jsx(Hs,{className:"h-5 w-5 shrink-0 fill-theme-text-tertiary group-data-[state=active]/trigger:fill-theme-surface-strong"}),s.jsx("span",{children:"Code"})]}),s.jsxs(O,{className:"flex items-center gap-2 truncate text-text-md",value:"logs",children:[s.jsx(fr,{className:"h-5 w-5 shrink-0 fill-theme-text-tertiary group-data-[state=active]/trigger:fill-theme-surface-strong"}),s.jsx("span",{children:"Logs"})]}),s.jsxs(O,{className:"flex items-center gap-2 truncate text-text-md",value:"config",children:[s.jsx(jr,{className:"h-5 w-5 shrink-0 fill-theme-text-tertiary group-data-[state=active]/trigger:fill-theme-surface-strong"}),s.jsx("span",{children:"Configuration"})]}),s.jsxs(O,{className:"flex items-center gap-2 text-text-md",value:"metadata",children:[s.jsx(nt,{className:"h-5 w-5 fill-theme-text-tertiary group-data-[state=active]/trigger:fill-theme-surface-strong"}),s.jsx("span",{children:"Metadata"})]})]}),s.jsxs(S,{className:"m-0 mt-5 space-y-5 border-0 bg-transparent p-0",value:"overview",children:[s.jsx(ea,{runId:t,stepId:e}),s.jsx(ta,{})]}),s.jsx(S,{className:"m-0 mt-5 border-0 bg-transparent p-0",value:"stack",children:s.jsx(ha,{stepId:e})}),s.jsx(S,{className:"m-0 mt-5 border-0 bg-transparent p-0",value:"code",children:s.jsx(Bn,{stepId:e})}),s.jsx(S,{className:"m-0 mt-5 border-0 bg-transparent p-0",value:"logs",children:s.jsx(ia,{stepId:e,stepDetail:r})}),s.jsx(S,{className:"m-0 mt-5 border-0 bg-transparent p-0",value:"config",children:s.jsx(Wn,{stepId:e})}),s.jsx(S,{className:"m-0 mt-5 border-0 bg-transparent p-0",value:"metadata",children:s.jsx(oa,{stepId:e})})]})})]})}function xa({children:e,stepId:t,onOpenChange:r}){return s.jsxs(er,{onOpenChange:r,children:[s.jsx(tr,{asChild:!0,children:e}),s.jsx(rr,{className:"w-[1000px] overflow-y-auto",children:s.jsx(pa,{stepId:t})})]})}const ga=e=>({unselectAll:e.unselectNodesAndEdges});function ba({data:e,selected:t}){var i,l,o;const{unselectAll:r}=ot(ga),n=((i=e.body)==null?void 0:i.status)==="failed";function a(c){c||setTimeout(()=>{r()},100)}return s.jsx(ze,{children:s.jsx(xa,{onOpenChange:a,stepId:e.id,children:s.jsxs("button",{"data-failed":n,"data-selected":!!t,className:fs("group max-h-[80px] max-w-[300px] overflow-hidden rounded-md border bg-theme-surface-primary transition-all duration-200 hover:shadow-md data-[selected=true]:shadow-md",{"border-theme-border-moderate hover:border-neutral-400 data-[selected=true]:border-theme-border-bold":!n,"border-error-200":n}),children:[s.jsxs("div",{className:"flex flex-1 items-center gap-1 py-1 pl-1 pr-2",children:[s.jsx("div",{className:`rounded-sm p-0.5 ${or((l=e.body)==null?void 0:l.status)}`,children:s.jsx(ie,{status:(o=e.body)==null?void 0:o.status,className:"h-4 w-4"})}),s.jsx("p",{className:"truncate font-semibold",children:e.name}),s.jsxs(br,{className:"h-4 w-4 shrink-0 rounded-sm hover:bg-theme-surface-secondary active:bg-neutral-300",code:`from zenml.client import Client
11
+ step = Client().get_run_step(${e.id})
12
+ config = step.config`,type:"step",children:[s.jsx(nr,{className:"h-3 w-3 fill-theme-text-tertiary"}),s.jsx("div",{className:"sr-only",children:"Copy code to load step"})]})]}),s.jsx("div",{"data-failed":n,className:"flex flex-1 justify-end border-t border-theme-border-moderate bg-theme-surface-tertiary px-2 py-0.5 text-text-xs data-[failed=true]:border-error-200 data-[failed=true]:bg-error-50 data-[failed=true]:text-theme-text-error",children:(()=>{var c;return n?"Execution failed":!((c=e.body)!=null&&c.start_time)||!e.body.end_time?"N/A":ut(e.body.start_time,e.body.end_time)})()})]})})})}var ja="\0",le="\0",Tt="";let Ca=class{constructor(t){w(this,"_isDirected",!0);w(this,"_isMultigraph",!1);w(this,"_isCompound",!1);w(this,"_label");w(this,"_defaultNodeLabelFn",()=>{});w(this,"_defaultEdgeLabelFn",()=>{});w(this,"_nodes",{});w(this,"_in",{});w(this,"_preds",{});w(this,"_out",{});w(this,"_sucs",{});w(this,"_edgeObjs",{});w(this,"_edgeLabels",{});w(this,"_nodeCount",0);w(this,"_edgeCount",0);w(this,"_parent");w(this,"_children");t&&(this._isDirected=Object.hasOwn(t,"directed")?t.directed:!0,this._isMultigraph=Object.hasOwn(t,"multigraph")?t.multigraph:!1,this._isCompound=Object.hasOwn(t,"compound")?t.compound:!1),this._isCompound&&(this._parent={},this._children={},this._children[le]={})}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(t){return this._label=t,this}graph(){return this._label}setDefaultNodeLabel(t){return this._defaultNodeLabelFn=t,typeof t!="function"&&(this._defaultNodeLabelFn=()=>t),this}nodeCount(){return this._nodeCount}nodes(){return Object.keys(this._nodes)}sources(){var t=this;return this.nodes().filter(r=>Object.keys(t._in[r]).length===0)}sinks(){var t=this;return this.nodes().filter(r=>Object.keys(t._out[r]).length===0)}setNodes(t,r){var n=arguments,a=this;return t.forEach(function(i){n.length>1?a.setNode(i,r):a.setNode(i)}),this}setNode(t,r){return Object.hasOwn(this._nodes,t)?(arguments.length>1&&(this._nodes[t]=r),this):(this._nodes[t]=arguments.length>1?r:this._defaultNodeLabelFn(t),this._isCompound&&(this._parent[t]=le,this._children[t]={},this._children[le][t]=!0),this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount,this)}node(t){return this._nodes[t]}hasNode(t){return Object.hasOwn(this._nodes,t)}removeNode(t){var r=this;if(Object.hasOwn(this._nodes,t)){var n=a=>r.removeEdge(r._edgeObjs[a]);delete this._nodes[t],this._isCompound&&(this._removeFromParentsChildList(t),delete this._parent[t],this.children(t).forEach(function(a){r.setParent(a)}),delete this._children[t]),Object.keys(this._in[t]).forEach(n),delete this._in[t],delete this._preds[t],Object.keys(this._out[t]).forEach(n),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this}setParent(t,r){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(r===void 0)r=le;else{r+="";for(var n=r;n!==void 0;n=this.parent(n))if(n===t)throw new Error("Setting "+r+" as parent of "+t+" would create a cycle");this.setNode(r)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=r,this._children[r][t]=!0,this}_removeFromParentsChildList(t){delete this._children[this._parent[t]][t]}parent(t){if(this._isCompound){var r=this._parent[t];if(r!==le)return r}}children(t=le){if(this._isCompound){var r=this._children[t];if(r)return Object.keys(r)}else{if(t===le)return this.nodes();if(this.hasNode(t))return[]}}predecessors(t){var r=this._preds[t];if(r)return Object.keys(r)}successors(t){var r=this._sucs[t];if(r)return Object.keys(r)}neighbors(t){var r=this.predecessors(t);if(r){const a=new Set(r);for(var n of this.successors(t))a.add(n);return Array.from(a.values())}}isLeaf(t){var r;return this.isDirected()?r=this.successors(t):r=this.neighbors(t),r.length===0}filterNodes(t){var r=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});r.setGraph(this.graph());var n=this;Object.entries(this._nodes).forEach(function([l,o]){t(l)&&r.setNode(l,o)}),Object.values(this._edgeObjs).forEach(function(l){r.hasNode(l.v)&&r.hasNode(l.w)&&r.setEdge(l,n.edge(l))});var a={};function i(l){var o=n.parent(l);return o===void 0||r.hasNode(o)?(a[l]=o,o):o in a?a[o]:i(o)}return this._isCompound&&r.nodes().forEach(l=>r.setParent(l,i(l))),r}setDefaultEdgeLabel(t){return this._defaultEdgeLabelFn=t,typeof t!="function"&&(this._defaultEdgeLabelFn=()=>t),this}edgeCount(){return this._edgeCount}edges(){return Object.values(this._edgeObjs)}setPath(t,r){var n=this,a=arguments;return t.reduce(function(i,l){return a.length>1?n.setEdge(i,l,r):n.setEdge(i,l),l}),this}setEdge(){var t,r,n,a,i=!1,l=arguments[0];typeof l=="object"&&l!==null&&"v"in l?(t=l.v,r=l.w,n=l.name,arguments.length===2&&(a=arguments[1],i=!0)):(t=l,r=arguments[1],n=arguments[3],arguments.length>2&&(a=arguments[2],i=!0)),t=""+t,r=""+r,n!==void 0&&(n=""+n);var o=Oe(this._isDirected,t,r,n);if(Object.hasOwn(this._edgeLabels,o))return i&&(this._edgeLabels[o]=a),this;if(n!==void 0&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(r),this._edgeLabels[o]=i?a:this._defaultEdgeLabelFn(t,r,n);var c=va(this._isDirected,t,r,n);return t=c.v,r=c.w,Object.freeze(c),this._edgeObjs[o]=c,It(this._preds[r],t),It(this._sucs[t],r),this._in[r][o]=c,this._out[t][o]=c,this._edgeCount++,this}edge(t,r,n){var a=arguments.length===1?qe(this._isDirected,arguments[0]):Oe(this._isDirected,t,r,n);return this._edgeLabels[a]}edgeAsObj(){const t=this.edge(...arguments);return typeof t!="object"?{label:t}:t}hasEdge(t,r,n){var a=arguments.length===1?qe(this._isDirected,arguments[0]):Oe(this._isDirected,t,r,n);return Object.hasOwn(this._edgeLabels,a)}removeEdge(t,r,n){var a=arguments.length===1?qe(this._isDirected,arguments[0]):Oe(this._isDirected,t,r,n),i=this._edgeObjs[a];return i&&(t=i.v,r=i.w,delete this._edgeLabels[a],delete this._edgeObjs[a],Pt(this._preds[r],t),Pt(this._sucs[t],r),delete this._in[r][a],delete this._out[t][a],this._edgeCount--),this}inEdges(t,r){var n=this._in[t];if(n){var a=Object.values(n);return r?a.filter(i=>i.v===r):a}}outEdges(t,r){var n=this._out[t];if(n){var a=Object.values(n);return r?a.filter(i=>i.w===r):a}}nodeEdges(t,r){var n=this.inEdges(t,r);if(n)return n.concat(this.outEdges(t,r))}};function It(e,t){e[t]?e[t]++:e[t]=1}function Pt(e,t){--e[t]||delete e[t]}function Oe(e,t,r,n){var a=""+t,i=""+r;if(!e&&a>i){var l=a;a=i,i=l}return a+Tt+i+Tt+(n===void 0?ja:n)}function va(e,t,r,n){var a=""+t,i=""+r;if(!e&&a>i){var l=a;a=i,i=l}var o={v:a,w:i};return n&&(o.name=n),o}function qe(e,t){return Oe(e,t.v,t.w,t.name)}var ht=Ca,ya="2.2.4",wa={Graph:ht,version:ya},Na=ht,Ea={write:_a,read:Sa};function _a(e){var t={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:ka(e),edges:Oa(e)};return e.graph()!==void 0&&(t.value=structuredClone(e.graph())),t}function ka(e){return e.nodes().map(function(t){var r=e.node(t),n=e.parent(t),a={v:t};return r!==void 0&&(a.value=r),n!==void 0&&(a.parent=n),a})}function Oa(e){return e.edges().map(function(t){var r=e.edge(t),n={v:t.v,w:t.w};return t.name!==void 0&&(n.name=t.name),r!==void 0&&(n.value=r),n})}function Sa(e){var t=new Na(e.options).setGraph(e.value);return e.nodes.forEach(function(r){t.setNode(r.v,r.value),r.parent&&t.setParent(r.v,r.parent)}),e.edges.forEach(function(r){t.setEdge({v:r.v,w:r.w,name:r.name},r.value)}),t}var La=Ta;function Ta(e){var t={},r=[],n;function a(i){Object.hasOwn(t,i)||(t[i]=!0,n.push(i),e.successors(i).forEach(a),e.predecessors(i).forEach(a))}return e.nodes().forEach(function(i){n=[],a(i),n.length&&r.push(n)}),r}let Ia=class{constructor(){w(this,"_arr",[]);w(this,"_keyIndices",{})}size(){return this._arr.length}keys(){return this._arr.map(function(t){return t.key})}has(t){return Object.hasOwn(this._keyIndices,t)}priority(t){var r=this._keyIndices[t];if(r!==void 0)return this._arr[r].priority}min(){if(this.size()===0)throw new Error("Queue underflow");return this._arr[0].key}add(t,r){var n=this._keyIndices;if(t=String(t),!Object.hasOwn(n,t)){var a=this._arr,i=a.length;return n[t]=i,a.push({key:t,priority:r}),this._decrease(i),!0}return!1}removeMin(){this._swap(0,this._arr.length-1);var t=this._arr.pop();return delete this._keyIndices[t.key],this._heapify(0),t.key}decrease(t,r){var n=this._keyIndices[t];if(r>this._arr[n].priority)throw new Error("New priority is greater than current priority. Key: "+t+" Old: "+this._arr[n].priority+" New: "+r);this._arr[n].priority=r,this._decrease(n)}_heapify(t){var r=this._arr,n=2*t,a=n+1,i=t;n<r.length&&(i=r[n].priority<r[i].priority?n:i,a<r.length&&(i=r[a].priority<r[i].priority?a:i),i!==t&&(this._swap(t,i),this._heapify(i)))}_decrease(t){for(var r=this._arr,n=r[t].priority,a;t!==0&&(a=t>>1,!(r[a].priority<n));)this._swap(t,a),t=a}_swap(t,r){var n=this._arr,a=this._keyIndices,i=n[t],l=n[r];n[t]=l,n[r]=i,a[l.key]=t,a[i.key]=r}};var Nr=Ia,Pa=Nr,Er=$a,Ra=()=>1;function $a(e,t,r,n){return Ma(e,String(t),r||Ra,n||function(a){return e.outEdges(a)})}function Ma(e,t,r,n){var a={},i=new Pa,l,o,c=function(d){var u=d.v!==l?d.v:d.w,h=a[u],m=r(d),f=o.distance+m;if(m<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+d+" Weight: "+m);f<h.distance&&(h.distance=f,h.predecessor=l,i.decrease(u,f))};for(e.nodes().forEach(function(d){var u=d===t?0:Number.POSITIVE_INFINITY;a[d]={distance:u},i.add(d,u)});i.size()>0&&(l=i.removeMin(),o=a[l],o.distance!==Number.POSITIVE_INFINITY);)n(l).forEach(c);return a}var Da=Er,Va=Aa;function Aa(e,t,r){return e.nodes().reduce(function(n,a){return n[a]=Da(e,a,t,r),n},{})}var _r=za;function za(e){var t=0,r=[],n={},a=[];function i(l){var o=n[l]={onStack:!0,lowlink:t,index:t++};if(r.push(l),e.successors(l).forEach(function(u){Object.hasOwn(n,u)?n[u].onStack&&(o.lowlink=Math.min(o.lowlink,n[u].index)):(i(u),o.lowlink=Math.min(o.lowlink,n[u].lowlink))}),o.lowlink===o.index){var c=[],d;do d=r.pop(),n[d].onStack=!1,c.push(d);while(l!==d);a.push(c)}}return e.nodes().forEach(function(l){Object.hasOwn(n,l)||i(l)}),a}var Fa=_r,Ha=Ba;function Ba(e){return Fa(e).filter(function(t){return t.length>1||t.length===1&&e.hasEdge(t[0],t[0])})}var Ga=qa,Za=()=>1;function qa(e,t,r){return Wa(e,t||Za,r||function(n){return e.outEdges(n)})}function Wa(e,t,r){var n={},a=e.nodes();return a.forEach(function(i){n[i]={},n[i][i]={distance:0},a.forEach(function(l){i!==l&&(n[i][l]={distance:Number.POSITIVE_INFINITY})}),r(i).forEach(function(l){var o=l.v===i?l.w:l.v,c=t(l);n[i][o]={distance:c,predecessor:i}})}),a.forEach(function(i){var l=n[i];a.forEach(function(o){var c=n[o];a.forEach(function(d){var u=c[i],h=l[d],m=c[d],f=u.distance+h.distance;f<m.distance&&(m.distance=f,m.predecessor=h.predecessor)})})}),n}function kr(e){var t={},r={},n=[];function a(i){if(Object.hasOwn(r,i))throw new Xe;Object.hasOwn(t,i)||(r[i]=!0,t[i]=!0,e.predecessors(i).forEach(a),delete r[i],n.push(i))}if(e.sinks().forEach(a),Object.keys(t).length!==e.nodeCount())throw new Xe;return n}class Xe extends Error{constructor(){super(...arguments)}}var Or=kr;kr.CycleException=Xe;var Rt=Or,Ua=Ka;function Ka(e){try{Rt(e)}catch(t){if(t instanceof Rt.CycleException)return!1;throw t}return!0}var Sr=Ya;function Ya(e,t,r){Array.isArray(t)||(t=[t]);var n=e.isDirected()?o=>e.successors(o):o=>e.neighbors(o),a=r==="post"?Qa:Xa,i=[],l={};return t.forEach(o=>{if(!e.hasNode(o))throw new Error("Graph does not have node: "+o);a(o,n,l,i)}),i}function Qa(e,t,r,n){for(var a=[[e,!1]];a.length>0;){var i=a.pop();i[1]?n.push(i[0]):Object.hasOwn(r,i[0])||(r[i[0]]=!0,a.push([i[0],!0]),Lr(t(i[0]),l=>a.push([l,!1])))}}function Xa(e,t,r,n){for(var a=[e];a.length>0;){var i=a.pop();Object.hasOwn(r,i)||(r[i]=!0,n.push(i),Lr(t(i),l=>a.push(l)))}}function Lr(e,t){for(var r=e.length;r--;)t(e[r],r,e);return e}var Ja=Sr,ei=ti;function ti(e,t){return Ja(e,t,"post")}var ri=Sr,si=ni;function ni(e,t){return ri(e,t,"pre")}var ai=ht,ii=Nr,li=oi;function oi(e,t){var r=new ai,n={},a=new ii,i;function l(c){var d=c.v===i?c.w:c.v,u=a.priority(d);if(u!==void 0){var h=t(c);h<u&&(n[d]=i,a.decrease(d,h))}}if(e.nodeCount()===0)return r;e.nodes().forEach(function(c){a.add(c,Number.POSITIVE_INFINITY),r.setNode(c)}),a.decrease(e.nodes()[0],0);for(var o=!1;a.size()>0;){if(i=a.removeMin(),Object.hasOwn(n,i))r.setEdge(i,n[i]);else{if(o)throw new Error("Input graph is not connected: "+e);o=!0}e.nodeEdges(i).forEach(l)}return r}var ci={components:La,dijkstra:Er,dijkstraAll:Va,findCycles:Ha,floydWarshall:Ga,isAcyclic:Ua,postorder:ei,preorder:si,prim:li,tarjan:_r,topsort:Or},$t=wa,K={Graph:$t.Graph,json:Ea,alg:ci,version:$t.version};let di=class{constructor(){let t={};t._next=t._prev=t,this._sentinel=t}dequeue(){let t=this._sentinel,r=t._prev;if(r!==t)return Mt(r),r}enqueue(t){let r=this._sentinel;t._prev&&t._next&&Mt(t),t._next=r._next,r._next._prev=t,r._next=t,t._prev=r}toString(){let t=[],r=this._sentinel,n=r._prev;for(;n!==r;)t.push(JSON.stringify(n,ui)),n=n._prev;return"["+t.join(", ")+"]"}};function Mt(e){e._prev._next=e._next,e._next._prev=e._prev,delete e._next,delete e._prev}function ui(e,t){if(e!=="_next"&&e!=="_prev")return t}var hi=di;let fi=K.Graph,mi=hi;var pi=gi;let xi=()=>1;function gi(e,t){if(e.nodeCount()<=1)return[];let r=ji(e,t||xi);return bi(r.graph,r.buckets,r.zeroIdx).flatMap(a=>e.outEdges(a.v,a.w))}function bi(e,t,r){let n=[],a=t[t.length-1],i=t[0],l;for(;e.nodeCount();){for(;l=i.dequeue();)We(e,t,r,l);for(;l=a.dequeue();)We(e,t,r,l);if(e.nodeCount()){for(let o=t.length-2;o>0;--o)if(l=t[o].dequeue(),l){n=n.concat(We(e,t,r,l,!0));break}}}return n}function We(e,t,r,n,a){let i=a?[]:void 0;return e.inEdges(n.v).forEach(l=>{let o=e.edge(l),c=e.node(l.v);a&&i.push({v:l.v,w:l.w}),c.out-=o,Je(t,r,c)}),e.outEdges(n.v).forEach(l=>{let o=e.edge(l),c=l.w,d=e.node(c);d.in-=o,Je(t,r,d)}),e.removeNode(n.v),i}function ji(e,t){let r=new fi,n=0,a=0;e.nodes().forEach(o=>{r.setNode(o,{v:o,in:0,out:0})}),e.edges().forEach(o=>{let c=r.edge(o.v,o.w)||0,d=t(o),u=c+d;r.setEdge(o.v,o.w,u),a=Math.max(a,r.node(o.v).out+=d),n=Math.max(n,r.node(o.w).in+=d)});let i=Ci(a+n+3).map(()=>new mi),l=n+1;return r.nodes().forEach(o=>{Je(i,l,r.node(o))}),{graph:r,buckets:i,zeroIdx:l}}function Je(e,t,r){r.out?r.in?e[r.out-r.in+t].enqueue(r):e[e.length-1].enqueue(r):e[0].enqueue(r)}function Ci(e){const t=[];for(let r=0;r<e;r++)t.push(r);return t}let Tr=K.Graph;var N={addBorderNode:Si,addDummyNode:Ir,applyWithChunking:Fe,asNonCompoundGraph:yi,buildLayerMatrix:_i,intersectRect:Ei,mapValues:Mi,maxRank:Rr,normalizeRanks:ki,notime:Pi,partition:Ti,pick:$i,predecessorWeights:Ni,range:Mr,removeEmptyRanks:Oi,simplify:vi,successorWeights:wi,time:Ii,uniqueId:$r,zipObject:ft};function Ir(e,t,r,n){let a;do a=$r(n);while(e.hasNode(a));return r.dummy=t,e.setNode(a,r),a}function vi(e){let t=new Tr().setGraph(e.graph());return e.nodes().forEach(r=>t.setNode(r,e.node(r))),e.edges().forEach(r=>{let n=t.edge(r.v,r.w)||{weight:0,minlen:1},a=e.edge(r);t.setEdge(r.v,r.w,{weight:n.weight+a.weight,minlen:Math.max(n.minlen,a.minlen)})}),t}function yi(e){let t=new Tr({multigraph:e.isMultigraph()}).setGraph(e.graph());return e.nodes().forEach(r=>{e.children(r).length||t.setNode(r,e.node(r))}),e.edges().forEach(r=>{t.setEdge(r,e.edge(r))}),t}function wi(e){let t=e.nodes().map(r=>{let n={};return e.outEdges(r).forEach(a=>{n[a.w]=(n[a.w]||0)+e.edge(a).weight}),n});return ft(e.nodes(),t)}function Ni(e){let t=e.nodes().map(r=>{let n={};return e.inEdges(r).forEach(a=>{n[a.v]=(n[a.v]||0)+e.edge(a).weight}),n});return ft(e.nodes(),t)}function Ei(e,t){let r=e.x,n=e.y,a=t.x-r,i=t.y-n,l=e.width/2,o=e.height/2;if(!a&&!i)throw new Error("Not possible to find intersection inside of the rectangle");let c,d;return Math.abs(i)*l>Math.abs(a)*o?(i<0&&(o=-o),c=o*a/i,d=o):(a<0&&(l=-l),c=l,d=l*i/a),{x:r+c,y:n+d}}function _i(e){let t=Mr(Rr(e)+1).map(()=>[]);return e.nodes().forEach(r=>{let n=e.node(r),a=n.rank;a!==void 0&&(t[a][n.order]=r)}),t}function ki(e){let t=e.nodes().map(n=>{let a=e.node(n).rank;return a===void 0?Number.MAX_VALUE:a}),r=Fe(Math.min,t);e.nodes().forEach(n=>{let a=e.node(n);Object.hasOwn(a,"rank")&&(a.rank-=r)})}function Oi(e){let t=e.nodes().map(l=>e.node(l).rank),r=Fe(Math.min,t),n=[];e.nodes().forEach(l=>{let o=e.node(l).rank-r;n[o]||(n[o]=[]),n[o].push(l)});let a=0,i=e.graph().nodeRankFactor;Array.from(n).forEach((l,o)=>{l===void 0&&o%i!==0?--a:l!==void 0&&a&&l.forEach(c=>e.node(c).rank+=a)})}function Si(e,t,r,n){let a={width:0,height:0};return arguments.length>=4&&(a.rank=r,a.order=n),Ir(e,"border",a,t)}function Li(e,t=Pr){const r=[];for(let n=0;n<e.length;n+=t){const a=e.slice(n,n+t);r.push(a)}return r}const Pr=65535;function Fe(e,t){if(t.length>Pr){const r=Li(t);return e.apply(null,r.map(n=>e.apply(null,n)))}else return e.apply(null,t)}function Rr(e){const r=e.nodes().map(n=>{let a=e.node(n).rank;return a===void 0?Number.MIN_VALUE:a});return Fe(Math.max,r)}function Ti(e,t){let r={lhs:[],rhs:[]};return e.forEach(n=>{t(n)?r.lhs.push(n):r.rhs.push(n)}),r}function Ii(e,t){let r=Date.now();try{return t()}finally{console.log(e+" time: "+(Date.now()-r)+"ms")}}function Pi(e,t){return t()}let Ri=0;function $r(e){var t=++Ri;return toString(e)+t}function Mr(e,t,r=1){t==null&&(t=e,e=0);let n=i=>i<t;r<0&&(n=i=>t<i);const a=[];for(let i=e;n(i);i+=r)a.push(i);return a}function $i(e,t){const r={};for(const n of t)e[n]!==void 0&&(r[n]=e[n]);return r}function Mi(e,t){let r=t;return typeof t=="string"&&(r=n=>n[t]),Object.entries(e).reduce((n,[a,i])=>(n[a]=r(i,a),n),{})}function ft(e,t){return e.reduce((r,n,a)=>(r[n]=t[a],r),{})}let Di=pi,Vi=N.uniqueId;var Ai={run:zi,undo:Hi};function zi(e){(e.graph().acyclicer==="greedy"?Di(e,r(e)):Fi(e)).forEach(n=>{let a=e.edge(n);e.removeEdge(n),a.forwardName=n.name,a.reversed=!0,e.setEdge(n.w,n.v,a,Vi("rev"))});function r(n){return a=>n.edge(a).weight}}function Fi(e){let t=[],r={},n={};function a(i){Object.hasOwn(n,i)||(n[i]=!0,r[i]=!0,e.outEdges(i).forEach(l=>{Object.hasOwn(r,l.w)?t.push(l):a(l.w)}),delete r[i])}return e.nodes().forEach(a),t}function Hi(e){e.edges().forEach(t=>{let r=e.edge(t);if(r.reversed){e.removeEdge(t);let n=r.forwardName;delete r.reversed,delete r.forwardName,e.setEdge(t.w,t.v,r,n)}})}let Bi=N;var Gi={run:Zi,undo:Wi};function Zi(e){e.graph().dummyChains=[],e.edges().forEach(t=>qi(e,t))}function qi(e,t){let r=t.v,n=e.node(r).rank,a=t.w,i=e.node(a).rank,l=t.name,o=e.edge(t),c=o.labelRank;if(i===n+1)return;e.removeEdge(t);let d,u,h;for(h=0,++n;n<i;++h,++n)o.points=[],u={width:0,height:0,edgeLabel:o,edgeObj:t,rank:n},d=Bi.addDummyNode(e,"edge",u,"_d"),n===c&&(u.width=o.width,u.height=o.height,u.dummy="edge-label",u.labelpos=o.labelpos),e.setEdge(r,d,{weight:o.weight},l),h===0&&e.graph().dummyChains.push(d),r=d;e.setEdge(r,a,{weight:o.weight},l)}function Wi(e){e.graph().dummyChains.forEach(t=>{let r=e.node(t),n=r.edgeLabel,a;for(e.setEdge(r.edgeObj,n);r.dummy;)a=e.successors(t)[0],e.removeNode(t),n.points.push({x:r.x,y:r.y}),r.dummy==="edge-label"&&(n.x=r.x,n.y=r.y,n.width=r.width,n.height=r.height),t=a,r=e.node(t)})}const{applyWithChunking:Ui}=N;var He={longestPath:Ki,slack:Yi};function Ki(e){var t={};function r(n){var a=e.node(n);if(Object.hasOwn(t,n))return a.rank;t[n]=!0;let i=e.outEdges(n).map(o=>o==null?Number.POSITIVE_INFINITY:r(o.w)-e.edge(o).minlen);var l=Ui(Math.min,i);return l===Number.POSITIVE_INFINITY&&(l=0),a.rank=l}e.sources().forEach(r)}function Yi(e,t){return e.node(t.w).rank-e.node(t.v).rank-e.edge(t).minlen}var Qi=K.Graph,Re=He.slack,Dr=Xi;function Xi(e){var t=new Qi({directed:!1}),r=e.nodes()[0],n=e.nodeCount();t.setNode(r,{});for(var a,i;Ji(t,e)<n;)a=e1(t,e),i=t.hasNode(a.v)?Re(e,a):-Re(e,a),t1(t,e,i);return t}function Ji(e,t){function r(n){t.nodeEdges(n).forEach(a=>{var i=a.v,l=n===i?a.w:i;!e.hasNode(l)&&!Re(t,a)&&(e.setNode(l,{}),e.setEdge(n,l,{}),r(l))})}return e.nodes().forEach(r),e.nodeCount()}function e1(e,t){return t.edges().reduce((n,a)=>{let i=Number.POSITIVE_INFINITY;return e.hasNode(a.v)!==e.hasNode(a.w)&&(i=Re(t,a)),i<n[0]?[i,a]:n},[Number.POSITIVE_INFINITY,null])[1]}function t1(e,t,r){e.nodes().forEach(n=>t.node(n).rank+=r)}var r1=Dr,Dt=He.slack,s1=He.longestPath,n1=K.alg.preorder,a1=K.alg.postorder,i1=N.simplify,l1=fe;fe.initLowLimValues=pt;fe.initCutValues=mt;fe.calcCutValue=Vr;fe.leaveEdge=zr;fe.enterEdge=Fr;fe.exchangeEdges=Hr;function fe(e){e=i1(e),s1(e);var t=r1(e);pt(t),mt(t,e);for(var r,n;r=zr(t);)n=Fr(t,e,r),Hr(t,e,r,n)}function mt(e,t){var r=a1(e,e.nodes());r=r.slice(0,r.length-1),r.forEach(n=>o1(e,t,n))}function o1(e,t,r){var n=e.node(r),a=n.parent;e.edge(r,a).cutvalue=Vr(e,t,r)}function Vr(e,t,r){var n=e.node(r),a=n.parent,i=!0,l=t.edge(r,a),o=0;return l||(i=!1,l=t.edge(a,r)),o=l.weight,t.nodeEdges(r).forEach(c=>{var d=c.v===r,u=d?c.w:c.v;if(u!==a){var h=d===i,m=t.edge(c).weight;if(o+=h?m:-m,d1(e,r,u)){var f=e.edge(r,u).cutvalue;o+=h?-f:f}}}),o}function pt(e,t){arguments.length<2&&(t=e.nodes()[0]),Ar(e,{},1,t)}function Ar(e,t,r,n,a){var i=r,l=e.node(n);return t[n]=!0,e.neighbors(n).forEach(o=>{Object.hasOwn(t,o)||(r=Ar(e,t,r,o,n))}),l.low=i,l.lim=r++,a?l.parent=a:delete l.parent,r}function zr(e){return e.edges().find(t=>e.edge(t).cutvalue<0)}function Fr(e,t,r){var n=r.v,a=r.w;t.hasEdge(n,a)||(n=r.w,a=r.v);var i=e.node(n),l=e.node(a),o=i,c=!1;i.lim>l.lim&&(o=l,c=!0);var d=t.edges().filter(u=>c===Vt(e,e.node(u.v),o)&&c!==Vt(e,e.node(u.w),o));return d.reduce((u,h)=>Dt(t,h)<Dt(t,u)?h:u)}function Hr(e,t,r,n){var a=r.v,i=r.w;e.removeEdge(a,i),e.setEdge(n.v,n.w,{}),pt(e),mt(e,t),c1(e,t)}function c1(e,t){var r=e.nodes().find(a=>!t.node(a).parent),n=n1(e,r);n=n.slice(1),n.forEach(a=>{var i=e.node(a).parent,l=t.edge(a,i),o=!1;l||(l=t.edge(i,a),o=!0),t.node(a).rank=t.node(i).rank+(o?l.minlen:-l.minlen)})}function d1(e,t,r){return e.hasEdge(t,r)}function Vt(e,t,r){return r.low<=t.lim&&t.lim<=r.lim}var u1=He,Br=u1.longestPath,h1=Dr,f1=l1,m1=p1;function p1(e){switch(e.graph().ranker){case"network-simplex":At(e);break;case"tight-tree":g1(e);break;case"longest-path":x1(e);break;default:At(e)}}var x1=Br;function g1(e){Br(e),h1(e)}function At(e){f1(e)}var b1=j1;function j1(e){let t=v1(e);e.graph().dummyChains.forEach(r=>{let n=e.node(r),a=n.edgeObj,i=C1(e,t,a.v,a.w),l=i.path,o=i.lca,c=0,d=l[c],u=!0;for(;r!==a.w;){if(n=e.node(r),u){for(;(d=l[c])!==o&&e.node(d).maxRank<n.rank;)c++;d===o&&(u=!1)}if(!u){for(;c<l.length-1&&e.node(d=l[c+1]).minRank<=n.rank;)c++;d=l[c]}e.setParent(r,d),r=e.successors(r)[0]}})}function C1(e,t,r,n){let a=[],i=[],l=Math.min(t[r].low,t[n].low),o=Math.max(t[r].lim,t[n].lim),c,d;c=r;do c=e.parent(c),a.push(c);while(c&&(t[c].low>l||o>t[c].lim));for(d=c,c=n;(c=e.parent(c))!==d;)i.push(c);return{path:a.concat(i.reverse()),lca:d}}function v1(e){let t={},r=0;function n(a){let i=r;e.children(a).forEach(n),t[a]={low:i,lim:r++}}return e.children().forEach(n),t}let $e=N;var y1={run:w1,cleanup:_1};function w1(e){let t=$e.addDummyNode(e,"root",{},"_root"),r=N1(e),n=Object.values(r),a=$e.applyWithChunking(Math.max,n)-1,i=2*a+1;e.graph().nestingRoot=t,e.edges().forEach(o=>e.edge(o).minlen*=i);let l=E1(e)+1;e.children().forEach(o=>Gr(e,t,i,l,a,r,o)),e.graph().nodeRankFactor=i}function Gr(e,t,r,n,a,i,l){let o=e.children(l);if(!o.length){l!==t&&e.setEdge(t,l,{weight:0,minlen:r});return}let c=$e.addBorderNode(e,"_bt"),d=$e.addBorderNode(e,"_bb"),u=e.node(l);e.setParent(c,l),u.borderTop=c,e.setParent(d,l),u.borderBottom=d,o.forEach(h=>{Gr(e,t,r,n,a,i,h);let m=e.node(h),f=m.borderTop?m.borderTop:h,x=m.borderBottom?m.borderBottom:h,g=m.borderTop?n:2*n,j=f!==x?1:a-i[l]+1;e.setEdge(c,f,{weight:g,minlen:j,nestingEdge:!0}),e.setEdge(x,d,{weight:g,minlen:j,nestingEdge:!0})}),e.parent(l)||e.setEdge(t,c,{weight:0,minlen:a+i[l]})}function N1(e){var t={};function r(n,a){var i=e.children(n);i&&i.length&&i.forEach(l=>r(l,a+1)),t[n]=a}return e.children().forEach(n=>r(n,1)),t}function E1(e){return e.edges().reduce((t,r)=>t+e.edge(r).weight,0)}function _1(e){var t=e.graph();e.removeNode(t.nestingRoot),delete t.nestingRoot,e.edges().forEach(r=>{var n=e.edge(r);n.nestingEdge&&e.removeEdge(r)})}let k1=N;var O1=S1;function S1(e){function t(r){let n=e.children(r),a=e.node(r);if(n.length&&n.forEach(t),Object.hasOwn(a,"minRank")){a.borderLeft=[],a.borderRight=[];for(let i=a.minRank,l=a.maxRank+1;i<l;++i)zt(e,"borderLeft","_bl",r,a,i),zt(e,"borderRight","_br",r,a,i)}}e.children().forEach(t)}function zt(e,t,r,n,a,i){let l={width:0,height:0,rank:i,borderType:t},o=a[t][i-1],c=k1.addDummyNode(e,"border",l,r);a[t][i]=c,e.setParent(c,n),o&&e.setEdge(o,c,{weight:1})}var L1={adjust:T1,undo:I1};function T1(e){let t=e.graph().rankdir.toLowerCase();(t==="lr"||t==="rl")&&Zr(e)}function I1(e){let t=e.graph().rankdir.toLowerCase();(t==="bt"||t==="rl")&&P1(e),(t==="lr"||t==="rl")&&(R1(e),Zr(e))}function Zr(e){e.nodes().forEach(t=>Ft(e.node(t))),e.edges().forEach(t=>Ft(e.edge(t)))}function Ft(e){let t=e.width;e.width=e.height,e.height=t}function P1(e){e.nodes().forEach(t=>Ue(e.node(t))),e.edges().forEach(t=>{let r=e.edge(t);r.points.forEach(Ue),Object.hasOwn(r,"y")&&Ue(r)})}function Ue(e){e.y=-e.y}function R1(e){e.nodes().forEach(t=>Ke(e.node(t))),e.edges().forEach(t=>{let r=e.edge(t);r.points.forEach(Ke),Object.hasOwn(r,"x")&&Ke(r)})}function Ke(e){let t=e.x;e.x=e.y,e.y=t}let Ht=N;var $1=M1;function M1(e){let t={},r=e.nodes().filter(c=>!e.children(c).length),n=r.map(c=>e.node(c).rank),a=Ht.applyWithChunking(Math.max,n),i=Ht.range(a+1).map(()=>[]);function l(c){if(t[c])return;t[c]=!0;let d=e.node(c);i[d.rank].push(c),e.successors(c).forEach(l)}return r.sort((c,d)=>e.node(c).rank-e.node(d).rank).forEach(l),i}let D1=N.zipObject;var V1=A1;function A1(e,t){let r=0;for(let n=1;n<t.length;++n)r+=z1(e,t[n-1],t[n]);return r}function z1(e,t,r){let n=D1(r,r.map((d,u)=>u)),a=t.flatMap(d=>e.outEdges(d).map(u=>({pos:n[u.w],weight:e.edge(u).weight})).sort((u,h)=>u.pos-h.pos)),i=1;for(;i<r.length;)i<<=1;let l=2*i-1;i-=1;let o=new Array(l).fill(0),c=0;return a.forEach(d=>{let u=d.pos+i;o[u]+=d.weight;let h=0;for(;u>0;)u%2&&(h+=o[u+1]),u=u-1>>1,o[u]+=d.weight;c+=d.weight*h}),c}var F1=H1;function H1(e,t=[]){return t.map(r=>{let n=e.inEdges(r);if(n.length){let a=n.reduce((i,l)=>{let o=e.edge(l),c=e.node(l.v);return{sum:i.sum+o.weight*c.order,weight:i.weight+o.weight}},{sum:0,weight:0});return{v:r,barycenter:a.sum/a.weight,weight:a.weight}}else return{v:r}})}let B1=N;var G1=Z1;function Z1(e,t){let r={};e.forEach((a,i)=>{let l=r[a.v]={indegree:0,in:[],out:[],vs:[a.v],i};a.barycenter!==void 0&&(l.barycenter=a.barycenter,l.weight=a.weight)}),t.edges().forEach(a=>{let i=r[a.v],l=r[a.w];i!==void 0&&l!==void 0&&(l.indegree++,i.out.push(r[a.w]))});let n=Object.values(r).filter(a=>!a.indegree);return q1(n)}function q1(e){let t=[];function r(a){return i=>{i.merged||(i.barycenter===void 0||a.barycenter===void 0||i.barycenter>=a.barycenter)&&W1(a,i)}}function n(a){return i=>{i.in.push(a),--i.indegree===0&&e.push(i)}}for(;e.length;){let a=e.pop();t.push(a),a.in.reverse().forEach(r(a)),a.out.forEach(n(a))}return t.filter(a=>!a.merged).map(a=>B1.pick(a,["vs","i","barycenter","weight"]))}function W1(e,t){let r=0,n=0;e.weight&&(r+=e.barycenter*e.weight,n+=e.weight),t.weight&&(r+=t.barycenter*t.weight,n+=t.weight),e.vs=t.vs.concat(e.vs),e.barycenter=r/n,e.weight=n,e.i=Math.min(t.i,e.i),t.merged=!0}let U1=N;var K1=Y1;function Y1(e,t){let r=U1.partition(e,u=>Object.hasOwn(u,"barycenter")),n=r.lhs,a=r.rhs.sort((u,h)=>h.i-u.i),i=[],l=0,o=0,c=0;n.sort(Q1(!!t)),c=Bt(i,a,c),n.forEach(u=>{c+=u.vs.length,i.push(u.vs),l+=u.barycenter*u.weight,o+=u.weight,c=Bt(i,a,c)});let d={vs:i.flat(!0)};return o&&(d.barycenter=l/o,d.weight=o),d}function Bt(e,t,r){let n;for(;t.length&&(n=t[t.length-1]).i<=r;)t.pop(),e.push(n.vs),r++;return r}function Q1(e){return(t,r)=>t.barycenter<r.barycenter?-1:t.barycenter>r.barycenter?1:e?r.i-t.i:t.i-r.i}let X1=F1,J1=G1,el=K1;var tl=qr;function qr(e,t,r,n){let a=e.children(t),i=e.node(t),l=i?i.borderLeft:void 0,o=i?i.borderRight:void 0,c={};l&&(a=a.filter(m=>m!==l&&m!==o));let d=X1(e,a);d.forEach(m=>{if(e.children(m.v).length){let f=qr(e,m.v,r,n);c[m.v]=f,Object.hasOwn(f,"barycenter")&&sl(m,f)}});let u=J1(d,r);rl(u,c);let h=el(u,n);if(l&&(h.vs=[l,h.vs,o].flat(!0),e.predecessors(l).length)){let m=e.node(e.predecessors(l)[0]),f=e.node(e.predecessors(o)[0]);Object.hasOwn(h,"barycenter")||(h.barycenter=0,h.weight=0),h.barycenter=(h.barycenter*h.weight+m.order+f.order)/(h.weight+2),h.weight+=2}return h}function rl(e,t){e.forEach(r=>{r.vs=r.vs.flatMap(n=>t[n]?t[n].vs:n)})}function sl(e,t){e.barycenter!==void 0?(e.barycenter=(e.barycenter*e.weight+t.barycenter*t.weight)/(e.weight+t.weight),e.weight+=t.weight):(e.barycenter=t.barycenter,e.weight=t.weight)}let nl=K.Graph,al=N;var il=ll;function ll(e,t,r){let n=ol(e),a=new nl({compound:!0}).setGraph({root:n}).setDefaultNodeLabel(i=>e.node(i));return e.nodes().forEach(i=>{let l=e.node(i),o=e.parent(i);(l.rank===t||l.minRank<=t&&t<=l.maxRank)&&(a.setNode(i),a.setParent(i,o||n),e[r](i).forEach(c=>{let d=c.v===i?c.w:c.v,u=a.edge(d,i),h=u!==void 0?u.weight:0;a.setEdge(d,i,{weight:e.edge(c).weight+h})}),Object.hasOwn(l,"minRank")&&a.setNode(i,{borderLeft:l.borderLeft[t],borderRight:l.borderRight[t]}))}),a}function ol(e){for(var t;e.hasNode(t=al.uniqueId("_root")););return t}var cl=dl;function dl(e,t,r){let n={},a;r.forEach(i=>{let l=e.parent(i),o,c;for(;l;){if(o=e.parent(l),o?(c=n[o],n[o]=l):(c=a,a=l),c&&c!==l){t.setEdge(c,l);return}l=o}})}let ul=$1,hl=V1,fl=tl,ml=il,pl=cl,xl=K.Graph,Ie=N;var gl=Wr;function Wr(e,t){if(t&&typeof t.customOrder=="function"){t.customOrder(e,Wr);return}let r=Ie.maxRank(e),n=Gt(e,Ie.range(1,r+1),"inEdges"),a=Gt(e,Ie.range(r-1,-1,-1),"outEdges"),i=ul(e);if(Zt(e,i),t&&t.disableOptimalOrderHeuristic)return;let l=Number.POSITIVE_INFINITY,o;for(let c=0,d=0;d<4;++c,++d){bl(c%2?n:a,c%4>=2),i=Ie.buildLayerMatrix(e);let u=hl(e,i);u<l&&(d=0,o=Object.assign({},i),l=u)}Zt(e,o)}function Gt(e,t,r){return t.map(function(n){return ml(e,n,r)})}function bl(e,t){let r=new xl;e.forEach(function(n){let a=n.graph().root,i=fl(n,a,r,t);i.vs.forEach((l,o)=>n.node(l).order=o),pl(n,r,i.vs)})}function Zt(e,t){Object.values(t).forEach(r=>r.forEach((n,a)=>e.node(n).order=a))}let jl=K.Graph,Q=N;var Cl={positionX:wl,findType1Conflicts:Ur,findType2Conflicts:Kr,addConflict:xt,hasConflict:Yr,verticalAlignment:Qr,horizontalCompaction:Xr,alignCoordinates:es,findSmallestWidthAlignment:Jr,balance:ts};function Ur(e,t){let r={};function n(a,i){let l=0,o=0,c=a.length,d=i[i.length-1];return i.forEach((u,h)=>{let m=vl(e,u),f=m?e.node(m).order:c;(m||u===d)&&(i.slice(o,h+1).forEach(x=>{e.predecessors(x).forEach(g=>{let j=e.node(g),E=j.order;(E<l||f<E)&&!(j.dummy&&e.node(x).dummy)&&xt(r,g,x)})}),o=h+1,l=f)}),i}return t.length&&t.reduce(n),r}function Kr(e,t){let r={};function n(i,l,o,c,d){let u;Q.range(l,o).forEach(h=>{u=i[h],e.node(u).dummy&&e.predecessors(u).forEach(m=>{let f=e.node(m);f.dummy&&(f.order<c||f.order>d)&&xt(r,m,u)})})}function a(i,l){let o=-1,c,d=0;return l.forEach((u,h)=>{if(e.node(u).dummy==="border"){let m=e.predecessors(u);m.length&&(c=e.node(m[0]).order,n(l,d,h,o,c),d=h,o=c)}n(l,d,l.length,c,i.length)}),l}return t.length&&t.reduce(a),r}function vl(e,t){if(e.node(t).dummy)return e.predecessors(t).find(r=>e.node(r).dummy)}function xt(e,t,r){if(t>r){let a=t;t=r,r=a}let n=e[t];n||(e[t]=n={}),n[r]=!0}function Yr(e,t,r){if(t>r){let n=t;t=r,r=n}return!!e[t]&&Object.hasOwn(e[t],r)}function Qr(e,t,r,n){let a={},i={},l={};return t.forEach(o=>{o.forEach((c,d)=>{a[c]=c,i[c]=c,l[c]=d})}),t.forEach(o=>{let c=-1;o.forEach(d=>{let u=n(d);if(u.length){u=u.sort((m,f)=>l[m]-l[f]);let h=(u.length-1)/2;for(let m=Math.floor(h),f=Math.ceil(h);m<=f;++m){let x=u[m];i[d]===d&&c<l[x]&&!Yr(r,d,x)&&(i[x]=d,i[d]=a[d]=a[x],c=l[x])}}})}),{root:a,align:i}}function Xr(e,t,r,n,a){let i={},l=yl(e,t,r,a),o=a?"borderLeft":"borderRight";function c(h,m){let f=l.nodes(),x=f.pop(),g={};for(;x;)g[x]?h(x):(g[x]=!0,f.push(x),f=f.concat(m(x))),x=f.pop()}function d(h){i[h]=l.inEdges(h).reduce((m,f)=>Math.max(m,i[f.v]+l.edge(f)),0)}function u(h){let m=l.outEdges(h).reduce((x,g)=>Math.min(x,i[g.w]-l.edge(g)),Number.POSITIVE_INFINITY),f=e.node(h);m!==Number.POSITIVE_INFINITY&&f.borderType!==o&&(i[h]=Math.max(i[h],m))}return c(d,l.predecessors.bind(l)),c(u,l.successors.bind(l)),Object.keys(n).forEach(h=>i[h]=i[r[h]]),i}function yl(e,t,r,n){let a=new jl,i=e.graph(),l=Nl(i.nodesep,i.edgesep,n);return t.forEach(o=>{let c;o.forEach(d=>{let u=r[d];if(a.setNode(u),c){var h=r[c],m=a.edge(h,u);a.setEdge(h,u,Math.max(l(e,d,c),m||0))}c=d})}),a}function Jr(e,t){return Object.values(t).reduce((r,n)=>{let a=Number.NEGATIVE_INFINITY,i=Number.POSITIVE_INFINITY;Object.entries(n).forEach(([o,c])=>{let d=El(e,o)/2;a=Math.max(c+d,a),i=Math.min(c-d,i)});const l=a-i;return l<r[0]&&(r=[l,n]),r},[Number.POSITIVE_INFINITY,null])[1]}function es(e,t){let r=Object.values(t),n=Q.applyWithChunking(Math.min,r),a=Q.applyWithChunking(Math.max,r);["u","d"].forEach(i=>{["l","r"].forEach(l=>{let o=i+l,c=e[o];if(c===t)return;let d=Object.values(c),u=n-Q.applyWithChunking(Math.min,d);l!=="l"&&(u=a-Q.applyWithChunking(Math.max,d)),u&&(e[o]=Q.mapValues(c,h=>h+u))})})}function ts(e,t){return Q.mapValues(e.ul,(r,n)=>{if(t)return e[t.toLowerCase()][n];{let a=Object.values(e).map(i=>i[n]).sort((i,l)=>i-l);return(a[1]+a[2])/2}})}function wl(e){let t=Q.buildLayerMatrix(e),r=Object.assign(Ur(e,t),Kr(e,t)),n={},a;["u","d"].forEach(l=>{a=l==="u"?t:Object.values(t).reverse(),["l","r"].forEach(o=>{o==="r"&&(a=a.map(h=>Object.values(h).reverse()));let c=(l==="u"?e.predecessors:e.successors).bind(e),d=Qr(e,a,r,c),u=Xr(e,a,d.root,d.align,o==="r");o==="r"&&(u=Q.mapValues(u,h=>-h)),n[l+o]=u})});let i=Jr(e,n);return es(n,i),ts(n,e.graph().align)}function Nl(e,t,r){return(n,a,i)=>{let l=n.node(a),o=n.node(i),c=0,d;if(c+=l.width/2,Object.hasOwn(l,"labelpos"))switch(l.labelpos.toLowerCase()){case"l":d=-l.width/2;break;case"r":d=l.width/2;break}if(d&&(c+=r?d:-d),d=0,c+=(l.dummy?t:e)/2,c+=(o.dummy?t:e)/2,c+=o.width/2,Object.hasOwn(o,"labelpos"))switch(o.labelpos.toLowerCase()){case"l":d=o.width/2;break;case"r":d=-o.width/2;break}return d&&(c+=r?d:-d),d=0,c}}function El(e,t){return e.node(t).width}let rs=N,_l=Cl.positionX;var kl=Ol;function Ol(e){e=rs.asNonCompoundGraph(e),Sl(e),Object.entries(_l(e)).forEach(([t,r])=>e.node(t).x=r)}function Sl(e){let t=rs.buildLayerMatrix(e),r=e.graph().ranksep,n=0;t.forEach(a=>{const i=a.reduce((l,o)=>{const c=e.node(o).height;return l>c?l:c},0);a.forEach(l=>e.node(l).y=n+i/2),n+=i+r})}let qt=Ai,Wt=Gi,Ll=m1,Tl=N.normalizeRanks,Il=b1,Pl=N.removeEmptyRanks,Ut=y1,Rl=O1,Kt=L1,$l=gl,Ml=kl,R=N,Dl=K.Graph;var Vl=Al;function Al(e,t){let r=t&&t.debugTiming?R.time:R.notime;r("layout",()=>{let n=r(" buildLayoutGraph",()=>Kl(e));r(" runLayout",()=>zl(n,r,t)),r(" updateInputGraph",()=>Fl(e,n))})}function zl(e,t,r){t(" makeSpaceForEdgeLabels",()=>Yl(e)),t(" removeSelfEdges",()=>ao(e)),t(" acyclic",()=>qt.run(e)),t(" nestingGraph.run",()=>Ut.run(e)),t(" rank",()=>Ll(R.asNonCompoundGraph(e))),t(" injectEdgeLabelProxies",()=>Ql(e)),t(" removeEmptyRanks",()=>Pl(e)),t(" nestingGraph.cleanup",()=>Ut.cleanup(e)),t(" normalizeRanks",()=>Tl(e)),t(" assignRankMinMax",()=>Xl(e)),t(" removeEdgeLabelProxies",()=>Jl(e)),t(" normalize.run",()=>Wt.run(e)),t(" parentDummyChains",()=>Il(e)),t(" addBorderSegments",()=>Rl(e)),t(" order",()=>$l(e,r)),t(" insertSelfEdges",()=>io(e)),t(" adjustCoordinateSystem",()=>Kt.adjust(e)),t(" position",()=>Ml(e)),t(" positionSelfEdges",()=>lo(e)),t(" removeBorderNodes",()=>no(e)),t(" normalize.undo",()=>Wt.undo(e)),t(" fixupEdgeLabelCoords",()=>ro(e)),t(" undoCoordinateSystem",()=>Kt.undo(e)),t(" translateGraph",()=>eo(e)),t(" assignNodeIntersects",()=>to(e)),t(" reversePoints",()=>so(e)),t(" acyclic.undo",()=>qt.undo(e))}function Fl(e,t){e.nodes().forEach(r=>{let n=e.node(r),a=t.node(r);n&&(n.x=a.x,n.y=a.y,n.rank=a.rank,t.children(r).length&&(n.width=a.width,n.height=a.height))}),e.edges().forEach(r=>{let n=e.edge(r),a=t.edge(r);n.points=a.points,Object.hasOwn(a,"x")&&(n.x=a.x,n.y=a.y)}),e.graph().width=t.graph().width,e.graph().height=t.graph().height}let Hl=["nodesep","edgesep","ranksep","marginx","marginy"],Bl={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},Gl=["acyclicer","ranker","rankdir","align"],Zl=["width","height"],Yt={width:0,height:0},ql=["minlen","weight","width","height","labeloffset"],Wl={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},Ul=["labelpos"];function Kl(e){let t=new Dl({multigraph:!0,compound:!0}),r=Qe(e.graph());return t.setGraph(Object.assign({},Bl,Ye(r,Hl),R.pick(r,Gl))),e.nodes().forEach(n=>{let a=Qe(e.node(n));const i=Ye(a,Zl);Object.keys(Yt).forEach(l=>{i[l]===void 0&&(i[l]=Yt[l])}),t.setNode(n,i),t.setParent(n,e.parent(n))}),e.edges().forEach(n=>{let a=Qe(e.edge(n));t.setEdge(n,Object.assign({},Wl,Ye(a,ql),R.pick(a,Ul)))}),t}function Yl(e){let t=e.graph();t.ranksep/=2,e.edges().forEach(r=>{let n=e.edge(r);n.minlen*=2,n.labelpos.toLowerCase()!=="c"&&(t.rankdir==="TB"||t.rankdir==="BT"?n.width+=n.labeloffset:n.height+=n.labeloffset)})}function Ql(e){e.edges().forEach(t=>{let r=e.edge(t);if(r.width&&r.height){let n=e.node(t.v),i={rank:(e.node(t.w).rank-n.rank)/2+n.rank,e:t};R.addDummyNode(e,"edge-proxy",i,"_ep")}})}function Xl(e){let t=0;e.nodes().forEach(r=>{let n=e.node(r);n.borderTop&&(n.minRank=e.node(n.borderTop).rank,n.maxRank=e.node(n.borderBottom).rank,t=Math.max(t,n.maxRank))}),e.graph().maxRank=t}function Jl(e){e.nodes().forEach(t=>{let r=e.node(t);r.dummy==="edge-proxy"&&(e.edge(r.e).labelRank=r.rank,e.removeNode(t))})}function eo(e){let t=Number.POSITIVE_INFINITY,r=0,n=Number.POSITIVE_INFINITY,a=0,i=e.graph(),l=i.marginx||0,o=i.marginy||0;function c(d){let u=d.x,h=d.y,m=d.width,f=d.height;t=Math.min(t,u-m/2),r=Math.max(r,u+m/2),n=Math.min(n,h-f/2),a=Math.max(a,h+f/2)}e.nodes().forEach(d=>c(e.node(d))),e.edges().forEach(d=>{let u=e.edge(d);Object.hasOwn(u,"x")&&c(u)}),t-=l,n-=o,e.nodes().forEach(d=>{let u=e.node(d);u.x-=t,u.y-=n}),e.edges().forEach(d=>{let u=e.edge(d);u.points.forEach(h=>{h.x-=t,h.y-=n}),Object.hasOwn(u,"x")&&(u.x-=t),Object.hasOwn(u,"y")&&(u.y-=n)}),i.width=r-t+l,i.height=a-n+o}function to(e){e.edges().forEach(t=>{let r=e.edge(t),n=e.node(t.v),a=e.node(t.w),i,l;r.points?(i=r.points[0],l=r.points[r.points.length-1]):(r.points=[],i=a,l=n),r.points.unshift(R.intersectRect(n,i)),r.points.push(R.intersectRect(a,l))})}function ro(e){e.edges().forEach(t=>{let r=e.edge(t);if(Object.hasOwn(r,"x"))switch((r.labelpos==="l"||r.labelpos==="r")&&(r.width-=r.labeloffset),r.labelpos){case"l":r.x-=r.width/2+r.labeloffset;break;case"r":r.x+=r.width/2+r.labeloffset;break}})}function so(e){e.edges().forEach(t=>{let r=e.edge(t);r.reversed&&r.points.reverse()})}function no(e){e.nodes().forEach(t=>{if(e.children(t).length){let r=e.node(t),n=e.node(r.borderTop),a=e.node(r.borderBottom),i=e.node(r.borderLeft[r.borderLeft.length-1]),l=e.node(r.borderRight[r.borderRight.length-1]);r.width=Math.abs(l.x-i.x),r.height=Math.abs(a.y-n.y),r.x=i.x+r.width/2,r.y=n.y+r.height/2}}),e.nodes().forEach(t=>{e.node(t).dummy==="border"&&e.removeNode(t)})}function ao(e){e.edges().forEach(t=>{if(t.v===t.w){var r=e.node(t.v);r.selfEdges||(r.selfEdges=[]),r.selfEdges.push({e:t,label:e.edge(t)}),e.removeEdge(t)}})}function io(e){var t=R.buildLayerMatrix(e);t.forEach(r=>{var n=0;r.forEach((a,i)=>{var l=e.node(a);l.order=i+n,(l.selfEdges||[]).forEach(o=>{R.addDummyNode(e,"selfedge",{width:o.label.width,height:o.label.height,rank:l.rank,order:i+ ++n,e:o.e,label:o.label},"_se")}),delete l.selfEdges})})}function lo(e){e.nodes().forEach(t=>{var r=e.node(t);if(r.dummy==="selfedge"){var n=e.node(r.e.v),a=n.x+n.width/2,i=n.y,l=r.x-a,o=n.height/2;e.setEdge(r.e,r.label),e.removeNode(t),r.label.points=[{x:a+2*l/3,y:i-o},{x:a+5*l/6,y:i-o},{x:a+l,y:i},{x:a+5*l/6,y:i+o},{x:a+2*l/3,y:i+o}],r.label.x=r.x,r.label.y=r.y}})}function Ye(e,t){return R.mapValues(R.pick(e,t),Number)}function Qe(e){var t={};return e&&Object.entries(e).forEach(([r,n])=>{typeof r=="string"&&(r=r.toLowerCase()),t[r]=n}),t}let oo=N,co=K.Graph;var uo={debugOrdering:ho};function ho(e){let t=oo.buildLayerMatrix(e),r=new co({compound:!0,multigraph:!0}).setGraph({});return e.nodes().forEach(n=>{r.setNode(n,{label:n}),r.setParent(n,"layer"+e.node(n).rank)}),e.edges().forEach(n=>r.setEdge(n.v,n.w,{},n.name)),t.forEach((n,a)=>{let i="layer"+a;r.setNode(i,{rank:"same"}),n.reduce((l,o)=>(r.setEdge(l,o,{style:"invis"}),o))}),r}var fo="1.1.4",mo={graphlib:K,layout:Vl,debug:uo,util:{time:N.time,notime:N.notime},version:fo};const Qt=as(mo),po=300,xo=50,go=70;function bo(e,t){const r=new Qt.graphlib.Graph().setDefaultEdgeLabel(()=>({}));return r.setGraph({rankdir:"TB",ranksep:50,nodesep:10}),!e||!t?{nodes:[],edges:[]}:e.length<1?{nodes:[],edges:[]}:(t.forEach(n=>{r.setEdge(n.source,n.target)}),e.forEach(n=>{r.setNode(n.id,{width:po,height:n.type==="step"?go:xo})}),Qt.layout(r),{nodes:e.map(n=>{const{x:a,y:i}=r.node(n.id);return{...n,position:{x:a,y:i}}}),edges:t.map(n=>({...n,type:e.length>30?"smoothstep":"smart"}))})}function se(e,t){return{id:`${e}--${t}`,source:e,target:t}}function jo({placeholderEdges:e,placeholderNodes:t,realEdges:r,realNodes:n,runStatus:a}){const i=t.filter(f=>f.type==="previewStep"),l=t.filter(f=>f.type==="previewArtifact"),o=n.filter(f=>f.type==="step"),c=n.filter(f=>f.type==="artifact"),d=[...o],u=[];i.forEach(f=>{if(o.filter(g=>g.placeholderId.startsWith(f.id)).length===0){d.push({...f,data:{...f.data,status:a}});return}}),l.forEach(f=>{if(c.filter(g=>g.placeholderId.startsWith(f.id)).length===0){d.push({...f,data:{...f.data,status:a}});return}}),c.forEach(f=>{d.filter(g=>g.id===f.id).length===0&&d.push(f)}),r.forEach(f=>{const x=d.find(j=>j.id===f.source),g=d.find(j=>j.id===f.target);x&&g&&u.push(f)}),e.forEach(f=>{const x=d.find(j=>j.id===f.source),g=d.find(j=>j.id===f.target);if(x&&g&&u.push(f),!x&&g){const j=n.find(E=>E.placeholderId.startsWith(f.source));j&&u.push({...f,source:j.id})}}),e.forEach(f=>{const x=n.find(j=>j.placeholderId.startsWith(f.source)),g=n.find(j=>j.placeholderId.startsWith(f.target));x&&g&&u.push({...f,source:x.id,target:g.id})});const h=[];u.forEach(f=>{h.filter(g=>g.source===f.source&&g.target===f.target).length===0&&h.push(f)});const m=h.map(f=>{const x=n.find(g=>g.id===f.target);return{...f,style:{stroke:x?"#9CA3AF":"#D1D5DB",strokeWidth:2}}});return{nodes:d,edges:m}}function Co(e){const t=[],r=[];function n(a,i,l){t.push({id:a,type:i,data:{label:l,status:"running"}})}return Object.keys(e).forEach(a=>{const i=e[a];t.push({id:a,type:"previewStep",data:{label:a,status:"running"}}),Object.keys(i.config.outputs||{}).forEach(m=>{const f=`${a}--${m}`;n(f,"previewArtifact",m),r.push(se(a,f))});const l=i.spec.inputs??{};Object.keys(l).forEach(m=>{const f=l[m],x=`${f.step_name}--${f.output_name}`;r.push(se(x,a))});const o=i.config.external_input_artifacts||{};Object.keys(o).forEach(m=>{const f=`${a}--${m}`;n(f,"previewArtifact",m),r.push(se(f,a))});const c=i.config.model_artifacts_or_metadata||{};Object.keys(c).forEach(m=>{const f=`${a}--${m}`;n(f,"previewArtifact",m),r.push(se(f,a))});const d=i.config.client_lazy_loaders||{};Object.keys(d).forEach(m=>{const f=`${a}--${m}`;n(f,"previewArtifact",m),r.push(se(f,a))}),(i.spec.upstream_steps||[]).filter(m=>!Object.values(l).some(f=>f.step_name===m)).forEach(m=>r.push(se(m,a)))}),{nodes:t,edges:r}}function vo(e){const t=yo(e),r=wo(e);return{nodes:t,edges:r}}function yo(e){const t=[];return Object.keys(e).forEach(r=>{var l,o;const n=e[r];t.push({id:n.id,placeholderId:r,type:"step",data:n});const a=(l=n.body)==null?void 0:l.outputs;Object.entries(a||[]).forEach(([c,d])=>{d.forEach(u=>{const h=`${r}--${c}--${u.id}`;t.push({id:u.id,placeholderId:h,type:"artifact",data:{...u,name:c}})})});const i=(o=n.body)==null?void 0:o.inputs;Object.entries(i||{}).forEach(([c,d])=>{const u=`${r}--${c}--${d.id}`;t.push({id:d.id,placeholderId:u,type:"artifact",data:{...d,name:c}})})}),t}function wo(e){const t=[];return Object.keys(e).forEach(r=>{var l,o;const n=e[r],a=(l=n.body)==null?void 0:l.outputs;Object.entries(a||{}).forEach(([c,d])=>{d.forEach(u=>{t.push(se(n.id,u.id))})});const i=(o=n.body)==null?void 0:o.inputs;Object.entries(i||{}).forEach(([c,d])=>{t.push(se(d.id,n.id))})}),t}async function No({deploymentId:e},t){const r=ne(ae.pipeline_deployments.detail(e)),n=await fetch(r,{method:"GET",credentials:"include",headers:{"Content-Type":"application/json",...t}});if(!n.ok){const a=await n.json().then(i=>Array.isArray(i.detail)?i.detail[1]:i.detail).catch(()=>`Error while fetching pipeline deployment ${e}`);throw new X({status:n.status,statusText:n.statusText,message:a})}return n.json()}const gt={all:["pipeline_deployments"],detail:e=>ks({queryKey:[...gt.all,e],queryFn:async()=>No({deploymentId:e})})};function Eo(){var g,j,E,$,M,D,V,_;const{runId:e}=T(),t=I({runId:e},{refetchInterval:v=>{var y,A;return((A=(y=v.state.data)==null?void 0:y.body)==null?void 0:A.status)==="running"?3e3:!1}}),r=Y({...gt.detail(((j=(g=t.data)==null?void 0:g.body)==null?void 0:j.deployment_id)||""),enabled:!!(($=(E=t.data)==null?void 0:E.body)!=null&&$.deployment_id)}),{fitView:n}=hr(),{width:a,height:i}=ot(v=>({width:v.width,height:v.height})),[l,o,c]=Ds([]),[d,u,h]=Vs([]),m=p.useMemo(()=>{var v,y;return Co(((y=(v=r.data)==null?void 0:v.metadata)==null?void 0:y.step_configurations)??{})},[(D=(M=r.data)==null?void 0:M.metadata)==null?void 0:D.step_configurations]),f=p.useMemo(()=>{var v,y;return vo(((y=(v=t.data)==null?void 0:v.metadata)==null?void 0:y.steps)??{})},[(_=(V=t.data)==null?void 0:V.metadata)==null?void 0:_.steps]),x=p.useCallback(()=>{var te,re;const{nodes:v,edges:y}=jo({placeholderEdges:m.edges,placeholderNodes:m.nodes,realEdges:f.edges,realNodes:f.nodes,runStatus:((re=(te=t.data)==null?void 0:te.body)==null?void 0:re.status)??"running"}),A=bo(v,y);o([...A.nodes]),u([...A.edges]),window.requestAnimationFrame(()=>{n()})},[n,o,u,m,f,t.data]);return p.useEffect(()=>{n()},[a,i,n]),p.useEffect(()=>{const v=setTimeout(()=>{n({duration:200})},100);return()=>{clearTimeout(v)}},[r.data,t.data,n]),p.useLayoutEffect(()=>{x()},[x]),{pipelineRun:t,pipelineDeployment:r,nodes:l,edges:d,onNodesChange:c,onEdgesChange:h}}const _o={step:ba,artifact:Rn,previewStep:An,previewArtifact:Vn},ko={smart:Hn};function Oo(){const{pipelineDeployment:e,pipelineRun:t,nodes:r,edges:n,onEdgesChange:a,onNodesChange:i}=Eo();return t.isError||e.isError?s.jsx(P,{icon:s.jsx(oe,{className:"h-[120px] w-[120px] fill-neutral-300"}),children:s.jsx("p",{className:"text-center",children:"There was an error loading the DAG visualization."})}):t.isPending||e.isPending?s.jsxs("div",{className:"flex h-full flex-col items-center justify-center",children:[s.jsx(tt,{}),s.jsx("div",{className:"mt-4 flex flex-col items-center",children:s.jsx("p",{className:"mb-5 text-display-xs",children:"Loading DAG Visualization"})})]}):s.jsx(As,{minZoom:-2,connectOnClick:!1,nodesDraggable:!1,nodesConnectable:!1,edgeTypes:ko,nodeTypes:_o,nodes:r,edges:n,edgesFocusable:!1,multiSelectionKeyCode:null,onNodesChange:i,onEdgesChange:a,fitView:!0,children:s.jsx(Dn,{refetch:()=>{t.refetch(),e.refetch()}})})}function So({open:e,setOpen:t}){const{toast:r}=ms(),n=lt(),a=lr(),{runId:i}=T(),{mutate:l}=Us({onSuccess:async()=>{a.invalidateQueries({queryKey:["runs"]}),r({status:"success",emphasis:"subtle",icon:s.jsx(Ws,{className:"h-5 w-5 shrink-0 fill-success-700"}),description:"Run deleted successfully",rounded:!0}),t(!1),n(de.pipelines.overview)},onError:c=>{r({status:"error",emphasis:"subtle",icon:s.jsx(oe,{className:"h-5 w-5 shrink-0 fill-error-700"}),description:c.message,rounded:!0})}});async function o(){l({runId:i})}return s.jsx(ps,{open:e,onOpenChange:t,children:s.jsx(Ks,{title:"Delete Run",handleDelete:()=>o(),children:s.jsxs(Ys,{children:[s.jsx("p",{children:"Are you sure?"}),s.jsx("p",{children:"This action cannot be undone."}),s.jsx("p",{children:"Deleting a run here does not guarantee that this run will get deleted in the underlying orchestrator."})]})})})}function Lo(){const[e,t]=p.useState(!1),[r,n]=p.useState(!1);return s.jsxs(s.Fragment,{children:[s.jsx(So,{setOpen:t,open:e}),s.jsx(Nt,{modal:r,open:r,onOpenChange:n,children:s.jsxs(Nt,{children:[s.jsxs(xs,{className:"z-10",children:[s.jsx(Zs,{className:"h-5 w-5 shrink-0 fill-theme-text-secondary"}),s.jsx("p",{className:"sr-only",children:"Run Actions"})]}),s.jsx(gs,{className:"z-10",align:"end",sideOffset:1,children:s.jsxs(bs,{onClick:()=>t(!0),className:"space-x-2",children:[s.jsx(qs,{className:"h-3 w-3 fill-neutral-400"}),s.jsx("p",{children:"Delete"})]})})]})})]})}function To(){var a,i;const{runId:e}=T(),{setCurrentBreadcrumbData:t}=js(),{data:r,isSuccess:n}=I({runId:e},{throwOnError:!0});return p.useEffect(()=>{var l;r&&((l=r.body)!=null&&l.pipeline?t({segment:"runs",data:r}):t({segment:"runsNoPipelines",data:r}))},[r]),s.jsxs(Cs,{className:"flex items-center justify-between",children:[s.jsx("div",{className:"flex items-center gap-1 truncate",children:n?s.jsxs(s.Fragment,{children:[s.jsx(vs,{className:`h-5 w-5 shrink-0 ${Os((a=r==null?void 0:r.body)==null?void 0:a.status)}`}),s.jsx("h1",{className:"min-w-0 truncate text-display-xs font-semibold",children:r==null?void 0:r.name}),s.jsx(ie,{className:"h-5 w-5 shrink-0",status:(i=r==null?void 0:r.body)==null?void 0:i.status})]}):s.jsxs(s.Fragment,{children:[s.jsx(b,{className:"h-5 w-5"}),s.jsx(b,{className:"h-6 w-[250px]"}),s.jsx(b,{className:"h-5 w-5"})]})}),s.jsx(Lo,{})]})}const Io=e=>p.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...e},p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21 2C21.5523 2 22 2.44772 22 3V21C22 21.5523 21.5523 22 21 22C20.4477 22 20 21.5523 20 21V3C20 2.44772 20.4477 2 21 2ZM9.29289 4.29289C9.68342 3.90237 10.3166 3.90237 10.7071 4.29289L17.7071 11.2929C17.8946 11.4804 18 11.7348 18 12C18 12.2652 17.8946 12.5196 17.7071 12.7071L10.7071 19.7071C10.3166 20.0976 9.68342 20.0976 9.29289 19.7071C8.90237 19.3166 8.90237 18.6834 9.29289 18.2929L14.5858 13H3C2.44772 13 2 12.5523 2 12C2 11.4477 2.44772 11 3 11H14.5858L9.29289 5.70711C8.90237 5.31658 8.90237 4.68342 9.29289 4.29289Z"}));function Po({runId:e}){const[t,r]=p.useState(!0),n=`from zenml.client import Client
13
+ run = Client().get_pipeline_run('${e}')
14
+ config = run.config`;return s.jsxs(ge,{open:t,onOpenChange:r,children:[s.jsx(be,{className:"flex items-center gap-[10px]",children:s.jsxs(je,{className:"flex w-full items-center gap-[10px]",children:[s.jsx(ve,{className:` ${t?"":"-rotate-90"} h-5 w-5 rounded-md fill-neutral-500 transition-transform duration-200 hover:bg-neutral-200`}),"Code"]})}),s.jsxs(Ce,{className:"border-t border-theme-border-moderate bg-theme-surface-primary px-5 py-3",children:[s.jsx("p",{className:"mb-2 text-theme-text-secondary",children:"Get config programmatically"}),s.jsx(W,{fullWidth:!0,highlightCode:!0,wrap:!0,code:n})]})]})}function Ro({run:e}){var n,a;const[t,r]=p.useState(!0);return s.jsxs(ge,{open:t,onOpenChange:r,children:[s.jsx(be,{intent:"primary",className:"flex items-center gap-[10px]",children:s.jsxs(je,{className:"flex w-full items-center gap-[10px]",children:[s.jsx(ve,{className:` ${t?"":"-rotate-90"} h-5 w-5 rounded-md fill-neutral-500 transition-transform duration-200 hover:bg-neutral-200`}),"Environment"]})}),s.jsxs(Ce,{className:"space-y-3 border-t border-theme-border-moderate bg-theme-surface-primary px-5 py-3",children:[s.jsx(J,{isInitialOpen:!0,intent:"secondary",title:"Client Environment",data:(n=e.metadata)==null?void 0:n.client_environment}),s.jsx(J,{isInitialOpen:!0,intent:"secondary",title:"Orchestrator Environment",data:(a=e.metadata)==null?void 0:a.orchestrator_environment})]})]})}function $o({deploymentId:e}){var l,o;const[t,r]=p.useState(!0),{isLoading:n,isError:a,data:i}=Y({...gt.detail(e),enabled:!!e});return e?n?s.jsx(b,{className:"h-[150px] w-full"}):a?null:s.jsx(J,{isInitialOpen:!0,title:"Pipeline Parameters",data:(o=(l=i==null?void 0:i.metadata)==null?void 0:l.pipeline_spec)==null?void 0:o.parameters}):s.jsxs(ge,{open:t,onOpenChange:r,children:[s.jsxs(be,{intent:"primary",className:"flex items-center gap-[10px]",children:[s.jsx(je,{children:s.jsx(ve,{className:` ${t?"":"-rotate-90"} h-5 w-5 rounded-md fill-neutral-500 transition-transform duration-200 hover:bg-neutral-200`})}),"Pipeline Parameters"]}),s.jsx(Ce,{className:"border-t border-theme-border-moderate bg-theme-surface-primary px-5 py-3",children:"Not available"})]})}function Mo(){var i,l,o,c,d,u,h,m,f,x,g,j;const{runId:e}=T(),{data:t,isError:r,isPending:n}=I({runId:e},{throwOnError:!0}),{data:a}=vr({buildId:(l=(i=t==null?void 0:t.body)==null?void 0:i.build)==null?void 0:l.id},{enabled:!!((c=(o=t==null?void 0:t.body)==null?void 0:o.build)!=null&&c.id)});return r?null:n?s.jsxs("div",{className:"space-y-5",children:[s.jsx(b,{className:"h-[56px] w-full"}),s.jsx(b,{className:"h-[56px] w-full"}),s.jsx(b,{className:"h-[56px] w-full"}),s.jsx(b,{className:"h-[56px] w-full"})]}):s.jsxs("div",{className:"grid grid-cols-1 gap-5",children:[s.jsx($o,{deploymentId:((d=t.body)==null?void 0:d.deployment_id)??void 0}),((h=(u=a==null?void 0:a.metadata)==null?void 0:u.images)==null?void 0:h.orchestrator)&&s.jsx(Cr,{data:(f=(m=a==null?void 0:a.metadata)==null?void 0:m.images)==null?void 0:f.orchestrator}),s.jsx(Po,{runId:e}),s.jsx(Ro,{run:t}),s.jsx(J,{isInitialOpen:!0,title:"Resources",data:((g=(x=t.metadata)==null?void 0:x.config.settings)==null?void 0:g.resources)||{}}),s.jsx(J,{isInitialOpen:!0,title:"Extra",data:(j=t.metadata)==null?void 0:j.config.extra})]})}function Do(){var n,a,i;const{runId:e}=T(),{data:t,isError:r}=I({runId:e},{throwOnError:!0});return r?s.jsx("p",{children:"Failed to fetch pipeline run"}):t&&Object.entries(((n=t.metadata)==null?void 0:n.run_metadata)||{}).length<1?s.jsx(P,{icon:s.jsx(Me,{className:"h-[120px] w-[120px] fill-neutral-300"}),children:s.jsxs("div",{className:"text-center",children:[s.jsx("p",{className:"mb-2 text-display-xs font-semibold",children:"No metadata found"}),s.jsx("p",{className:"text-text-lg text-theme-text-secondary",children:"There are no metadata available."})]})}):s.jsxs("section",{className:"flex flex-col gap-5",children:[t?s.jsx(dt,{metadata:(a=t.metadata)==null?void 0:a.run_metadata}):s.jsx(b,{className:"h-[200px] w-full"}),t?s.jsx(ct,{metadata:(i=t.metadata)==null?void 0:i.run_metadata}):s.jsx(b,{className:"h-[200px] w-full"})]})}function Vo(){return s.jsx(Ae,{className:"truncate",intent:"error",children:s.jsxs("div",{className:"flex items-center justify-between space-x-2",children:[s.jsx("p",{className:"truncate",children:"Pipeline run failed. Check orchestrator logs for error details and troubleshooting steps."}),s.jsx(k,{intent:"danger",asChild:!0,children:s.jsx("a",{href:"#orchestrator-collapsible",children:"Review"})})]})})}function Ao(){return s.jsx(Ae,{className:"truncate",children:s.jsxs("div",{className:"flex items-center justify-between space-x-2",children:[s.jsx("p",{children:"Pipeline run initializing. Check orchestrator URL and logs for real-time status updates."}),s.jsx(k,{asChild:!0,children:s.jsx("a",{href:"#orchestrator-collapsible",children:"Review"})})]})})}function zo(){var o,c,d;const{runId:e}=T(),{data:t,isError:r,isPending:n}=I({runId:e}),a=(o=t==null?void 0:t.metadata)==null?void 0:o.run_metadata,i=a==null?void 0:a.orchestrator_url,l=a==null?void 0:a.orchestrator_logs_url;return r?null:n?s.jsx(b,{className:"h-[100px]"}):((c=t.body)==null?void 0:c.status)==="initializing"&&(l||i)?s.jsx(Ao,{}):((d=t.body)==null?void 0:d.status)==="failed"&&l?s.jsx(Vo,{}):null}function Fo(){var c,d,u,h,m,f,x,g,j,E,$,M,D,V,_,v,y,A,te,re,we,Ne,Ee,_e,ke;const{runId:e}=T(),[t,r]=p.useState(!0),[n]=dr(),a=lt(),{data:i,isError:l,isPending:o}=I({runId:e},{throwOnError:!0});return p.useEffect(()=>{if(!n.get("tab")){const me=new URL(window.location.href);me.searchParams.set("tab","overview");const Te=`${me.pathname}${me.search}`;a(Te,{replace:!0})}},[n,a]),l?null:o?s.jsx(b,{className:"h-[200px] w-full"}):s.jsxs(ge,{open:t,onOpenChange:r,children:[s.jsx(be,{className:"flex items-center gap-[10px]",children:s.jsxs(je,{className:"flex w-full items-center gap-[10px]",children:[s.jsx(ve,{className:` ${t?"":"-rotate-90"} h-5 w-5 rounded-md fill-neutral-500 transition-transform duration-200 hover:bg-neutral-200`}),s.jsx("span",{children:"Details"})]})}),s.jsx(Ce,{className:"border-t border-theme-border-moderate bg-theme-surface-primary px-5 py-3",children:s.jsxs("dl",{className:"grid grid-cols-1 gap-x-[10px] gap-y-2 md:grid-cols-3 md:gap-y-4",children:[s.jsx(z,{children:"Id"}),s.jsx(F,{children:s.jsxs("div",{className:"group/copybutton flex items-center gap-0.5",children:[i.id,s.jsx(H,{copyText:i.id})]})}),s.jsx(z,{children:"Status"}),s.jsx(F,{children:s.jsxs(L,{className:"inline-flex items-center gap-0.5",emphasis:"subtle",color:Ve((c=i.body)==null?void 0:c.status),children:[s.jsx(ie,{className:"fill-current",status:(d=i.body)==null?void 0:d.status}),(u=i.body)==null?void 0:u.status]})}),s.jsx(z,{children:"Pipeline"}),s.jsx(F,{children:(h=i.body)!=null&&h.pipeline?s.jsx(xe,{to:de.pipelines.namespace(encodeURIComponent((f=(m=i.body)==null?void 0:m.pipeline)==null?void 0:f.name)),children:s.jsxs(L,{color:"purple",className:"inline-flex items-center gap-0.5",rounded:!1,emphasis:"subtle",children:[s.jsx(et,{className:"h-4 w-4 fill-theme-text-brand"}),(g=(x=i.body)==null?void 0:x.pipeline)==null?void 0:g.name]})}):"Not available"}),s.jsx(z,{children:s.jsxs("div",{className:"flex items-center space-x-0.5 truncate",children:[s.jsx("span",{className:"truncate",children:"Repository/Commit"}),s.jsx(B,{children:s.jsxs(G,{children:[s.jsxs(Z,{className:"cursor-default",children:[s.jsx(ue,{className:"h-3 w-3 fill-theme-text-secondary"}),s.jsx("span",{className:"sr-only",children:"Info"})]}),s.jsx(q,{className:"w-full max-w-md whitespace-normal",children:"Git hash of code repository. Only set if pipeline was run in a clean git repository connected to your ZenML server."})]})})]})}),s.jsx(F,{children:(j=i.body)!=null&&j.code_reference?s.jsx(yr,{repositoryId:($=(E=i.body)==null?void 0:E.code_reference.body)==null?void 0:$.code_repository.id,commit:(M=i.body.code_reference.body)==null?void 0:M.commit}):"Not available"}),s.jsx(z,{className:(D=i.metadata)!=null&&D.code_path?"col-span-3":"",children:s.jsxs("div",{className:"flex items-center space-x-0.5 truncate",children:[s.jsx("span",{children:"Code Path"}),s.jsx(B,{children:s.jsxs(G,{children:[s.jsxs(Z,{className:"cursor-default",children:[s.jsx(ue,{className:"h-3 w-3 fill-theme-text-secondary"}),s.jsx("span",{className:"sr-only",children:"Info"})]}),s.jsx(q,{className:"w-full max-w-md whitespace-normal",children:"Path to where code was uploaded in the artifact store. Only set on a pipeline with a non-local orchestrator and if Repository/Commit is not set"})]})})]})}),s.jsx(F,{className:(V=i.metadata)!=null&&V.code_path?"col-span-3 h-auto":"",children:(_=i.metadata)!=null&&_.code_path?s.jsx(W,{code:i.metadata.code_path}):"Not available"}),s.jsx(z,{children:"Author"}),s.jsx(F,{children:s.jsx("div",{className:"inline-flex items-center gap-1",children:s.jsx(it,{username:((y=(v=i.body)==null?void 0:v.user)==null?void 0:y.name)||""})})}),s.jsx(z,{children:"Start Time"}),s.jsx(F,{children:(A=i.metadata)!=null&&A.start_time?s.jsx(Se,{dateString:(te=i.metadata)==null?void 0:te.start_time}):"Not available"}),s.jsx(z,{children:"End Time"}),s.jsx(F,{children:(re=i.metadata)!=null&&re.end_time?s.jsx(Se,{dateString:(we=i.metadata)==null?void 0:we.end_time}):"Not available"}),s.jsx(z,{children:"Duration"}),s.jsx(F,{children:(Ne=i.metadata)!=null&&Ne.start_time&&((Ee=i.metadata)!=null&&Ee.end_time)?ut((_e=i.metadata)==null?void 0:_e.start_time,(ke=i.metadata)==null?void 0:ke.end_time):"Not available"})]})})]})}function Ho(){var u,h;const{runId:e}=T(),[t,r]=p.useState(!0),{data:n,isError:a,isPending:i}=I({runId:e}),l=(u=n==null?void 0:n.metadata)==null?void 0:u.run_metadata,o=l==null?void 0:l.orchestrator_url,c=(h=n==null?void 0:n.metadata)==null?void 0:h.orchestrator_run_id,d=l==null?void 0:l.orchestrator_logs_url;return a?null:i?s.jsx(b,{className:"h-[200px]"}):s.jsxs(ge,{open:t,onOpenChange:r,children:[s.jsx(be,{className:"flex items-center gap-[10px]",children:s.jsxs(je,{className:"flex w-full",children:[s.jsx(ve,{className:` ${t?"":"-rotate-90"} mr-2 h-5 w-5 rounded-md fill-neutral-500 transition-transform duration-200 hover:bg-neutral-200`}),s.jsx("p",{id:"orchestrator-collapsible",children:"Orchestrator"})]})}),s.jsx(Ce,{className:"space-y-3 border-t border-theme-border-moderate bg-theme-surface-primary px-5 py-3",children:s.jsxs("dl",{className:"grid grid-cols-1 gap-x-[10px] gap-y-2 md:grid-cols-3 md:gap-y-4",children:[s.jsx(C,{label:"Orchestrator URL",value:o&&ce(o)?s.jsxs("div",{className:"group/copybutton flex items-center gap-0.5",children:[s.jsx("a",{className:"truncate text-theme-text-brand underline transition-all duration-200 hover:decoration-transparent",rel:"noopener noreferrer",target:"_blank",href:o,children:o}),s.jsx(H,{copyText:o})]}):"Not available"}),s.jsx(C,{label:"Orchestrator Logs",value:d&&ce(d)?s.jsxs("div",{className:"group/copybutton flex items-center gap-0.5",children:[s.jsx("a",{className:"truncate text-theme-text-brand underline transition-all duration-200 hover:decoration-transparent",rel:"noopener noreferrer",target:"_blank",href:d,children:d}),s.jsx(H,{copyText:d})]}):"Not available"}),s.jsx(C,{label:"Orchestrator Run ID",value:c?s.jsxs("div",{className:"group/copybutton flex items-center gap-0.5",children:[c,s.jsx(H,{copyText:c})]}):"Not available"})]})})]})}function Bo(){return s.jsxs("div",{className:"grid grid-cols-1 gap-5",children:[s.jsx(zo,{}),s.jsx(Fo,{}),s.jsx(Ho,{})]})}const Go=Et.object({tab:Et.enum(["overview","configuration","metadata","stack"]).optional().default("overview").catch("overview")});function Zo(){const[e]=dr(),{tab:t}=Go.parse({tab:e.get("tab")||void 0});return t}function qo(){var n,a,i;const{runId:e}=T(),t=I({runId:e},{throwOnError:!0});if(t.isPending)return s.jsx(b,{className:"h-[250px] w-full"});if(t.isError)return s.jsx("p",{children:"Something went wrong fetching the run"});const r=(i=(a=(n=t.data)==null?void 0:n.body)==null?void 0:a.stack)==null?void 0:i.id;return r?s.jsx(Wo,{run:t.data,stackId:r}):s.jsx(P,{icon:s.jsx(oe,{className:"h-[120px] w-[120px] fill-neutral-300"}),children:s.jsxs("div",{className:"text-center",children:[s.jsx("p",{className:"text-display-xs font-semibold",children:"No Stack"}),s.jsx("p",{className:"text-text-lg text-theme-text-secondary",children:"There is no stack associated with this run."})]})})}function Wo({stackId:e,run:t}){var l;const{data:r,isError:n,isPending:a}=ar({stackId:e});if(a)return s.jsx(b,{className:"h-[250px] w-full"});if(n)return s.jsx("p",{children:"Failed to fetch Stack"});const i=((l=t.metadata)==null?void 0:l.config.settings)||{};return s.jsx(wr,{stack:r,objectConfig:i})}function Uo({setIsPanelOpen:e}){return s.jsxs("div",{className:"flex items-center gap-4 border-b border-theme-border-moderate bg-theme-surface-primary px-5 py-4",children:[s.jsx(k,{className:"flex h-6 w-6 items-center justify-center bg-transparent p-0.5",intent:"secondary",onClick:()=>e(!1),children:s.jsx(Io,{className:"h-5 w-5 fill-theme-text-secondary"})}),s.jsx("span",{className:"text-text-xl",children:"Run Insights"})]})}function Ko(){const e=Zo(),t=lt();function r(n){const a=new URLSearchParams;a.set("tab",n),t(`?${a.toString()}`)}return s.jsx("div",{className:"flex flex-col gap-5 p-5",children:s.jsxs(rt,{value:e,onValueChange:r,children:[s.jsxs(st,{children:[s.jsxs(O,{className:"flex items-center gap-2 truncate text-text-md",value:"overview",children:[s.jsx(ue,{className:"h-5 w-5 shrink-0 fill-theme-text-tertiary group-data-[state=active]/trigger:fill-theme-surface-strong"}),s.jsx("span",{children:"Overview"})]}),s.jsxs(O,{className:"flex items-center gap-2 truncate text-text-md",value:"stack",children:[s.jsx(at,{className:"h-5 w-5 shrink-0 fill-theme-text-tertiary group-data-[state=active]/trigger:fill-theme-surface-strong"}),s.jsx("span",{children:"Stack"})]}),s.jsxs(O,{className:"flex items-center gap-2 truncate text-text-md",value:"configuration",children:[s.jsx(jr,{className:"h-5 w-5 shrink-0 fill-theme-text-tertiary group-data-[state=active]/trigger:fill-theme-surface-strong"}),s.jsx("span",{children:"Configuration"})]}),s.jsxs(O,{className:"flex items-center gap-2 text-text-md",value:"metadata",children:[s.jsx(nt,{className:"h-5 w-5 fill-theme-text-tertiary group-data-[state=active]/trigger:fill-theme-surface-strong"}),s.jsx("span",{children:"Metadata"})]})]}),s.jsx(S,{className:"m-0 mt-5 border-0 bg-transparent p-0",value:"overview",children:s.jsx(Bo,{})}),s.jsx(S,{className:"m-0 mt-5 border-0 bg-transparent p-0",value:"stack",children:s.jsx(qo,{})}),s.jsx(S,{className:"m-0 mt-5 border-0 bg-transparent p-0",value:"configuration",children:s.jsx(Mo,{})}),s.jsx(S,{className:"m-0 mt-5 border-0 bg-transparent p-0",value:"metadata",children:s.jsx(Do,{})})]})})}function Dc(){var a;const e=ys(),t=ws(((a=e.data)==null?void 0:a.deployment_type)||"other"),[r,n]=p.useState(!0);return s.jsxs("div",{children:[s.jsx(To,{}),s.jsxs("div",{className:`flex ${t?"h-[calc(100vh_-_4rem_-_4rem_-_4rem_-_2px)]":"h-[calc(100vh_-_4rem_-_4rem_-_2px)]"} w-full`,children:[s.jsxs("div",{className:`relative bg-white/40 transition-all duration-500 ${r?"w-1/2":"w-full"}`,children:[s.jsx(Oo,{}),s.jsx(Yo,{isPanelOpen:r,setIsPanelOpen:n})]}),s.jsx("div",{"aria-hidden":!r,className:`h-full min-w-0 overflow-x-hidden text-ellipsis whitespace-nowrap bg-theme-surface-secondary transition-all duration-500 ${r?"w-1/2 border-l border-theme-border-moderate":"w-0 border-transparent"}`,children:s.jsxs(Ns,{viewportClassName:"[&>*]:!block",children:[s.jsx(Uo,{setIsPanelOpen:n}),s.jsx(Ko,{})]})})]})]})}function Yo({isPanelOpen:e,setIsPanelOpen:t}){return s.jsx(k,{intent:"secondary",className:`absolute right-4 top-4 h-7 w-7 items-center justify-center border border-neutral-300 bg-transparent p-0.5 ${e?"hidden":"flex"}`,onClick:()=>t(!0),children:s.jsx(Qs,{className:"h-5 w-5 fill-theme-text-primary"})})}export{Dc as default};
@@ -0,0 +1 @@
1
+ import{r as i,j as e}from"./@radix-DeK6qiuw.js";import{f as p,K as N,U as y,aT as j,c as C,S as d,ac as g,aU as w,e as b,m as S,at as k,n as v,a1 as L,aB as z,a3 as u,a4 as M,B as H,aV as f,r as R,aG as V}from"./index-CCOPpudF.js";import{S as E}from"./package-C6uypY4h.js";import{S as Z}from"./help-Cc9bBIJH.js";import{S as _}from"./plus-tf1V2hTJ.js";import{C as c}from"./CodeSnippet-JzR8CEtw.js";import{H as h}from"./Helpbox-oYSGpLqd.js";import{S as D}from"./chevron-down-6JyMkfjR.js";import{T as I}from"./Tick-BlMoIlJT.js";import{S as P}from"./chevron-right-double-D7ojK9Co.js";import{L as B}from"./@react-router-B3Z5rLr2.js";import"./@tanstack-DT5WLu9C.js";import"./@reactflow-CK0KJUen.js";import"./copy-C8XQA2Ug.js";import"./check-DloQpStc.js";const O=s=>i.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...s},i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.7587 1L14 1C14.2652 1 14.5196 1.10536 14.7071 1.29289L20.7071 7.29289C20.8946 7.48043 21 7.73478 21 8V17.2413C21 18.0463 21 18.7106 20.9558 19.2518C20.9099 19.8139 20.8113 20.3306 20.564 20.816C20.1805 21.5686 19.5686 22.1805 18.816 22.564C18.3306 22.8113 17.8139 22.9099 17.2518 22.9558C16.7106 23 16.0463 23 15.2413 23H8.75868C7.95372 23 7.28936 23 6.74817 22.9558C6.18608 22.9099 5.66937 22.8113 5.18404 22.564C4.43139 22.1805 3.81947 21.5686 3.43597 20.816C3.18868 20.3306 3.09012 19.8139 3.04419 19.2518C2.99998 18.7106 2.99999 18.0463 3 17.2413V6.7587C2.99999 5.95373 2.99998 5.28937 3.04419 4.74817C3.09012 4.18608 3.18868 3.66937 3.43597 3.18404C3.81947 2.43139 4.43139 1.81947 5.18404 1.43597C5.66937 1.18868 6.18608 1.09012 6.74817 1.04419C7.28937 0.999977 7.95373 0.999988 8.7587 1ZM6.91104 3.03755C6.47262 3.07337 6.24842 3.1383 6.09202 3.21799C5.7157 3.40973 5.40973 3.7157 5.21799 4.09202C5.1383 4.24842 5.07337 4.47262 5.03755 4.91104C5.00078 5.36113 5 5.94342 5 6.8V17.2C5 18.0566 5.00078 18.6389 5.03755 19.089C5.07337 19.5274 5.1383 19.7516 5.21799 19.908C5.40973 20.2843 5.7157 20.5903 6.09202 20.782C6.24842 20.8617 6.47262 20.9266 6.91104 20.9624C7.36113 20.9992 7.94342 21 8.8 21H15.2C16.0566 21 16.6389 20.9992 17.089 20.9624C17.5274 20.9266 17.7516 20.8617 17.908 20.782C18.2843 20.5903 18.5903 20.2843 18.782 19.908C18.8617 19.7516 18.9266 19.5274 18.9624 19.089C18.9992 18.6389 19 18.0566 19 17.2V9.00007L15.5681 9.00007C15.3157 9.0001 15.0699 9.00013 14.8618 8.98313C14.6332 8.96445 14.3634 8.92038 14.092 8.78208C13.7157 8.59034 13.4097 8.28438 13.218 7.90805C13.0797 7.63663 13.0356 7.3669 13.0169 7.1383C12.9999 6.93014 13 6.68434 13 6.43195L13 3H8.8C7.94342 3 7.36113 3.00078 6.91104 3.03755ZM15 4.41421L17.5859 7.00007H15.6C15.3035 7.00007 15.1412 6.99929 15.0246 6.98977C15.02 6.98939 15.0156 6.98901 15.0114 6.98862C15.0111 6.98447 15.0107 6.98008 15.0103 6.97544C15.0008 6.85885 15 6.6966 15 6.40007V4.41421ZM7 9C7 8.44772 7.44772 8 8 8H10C10.5523 8 11 8.44772 11 9C11 9.55229 10.5523 10 10 10H8C7.44772 10 7 9.55229 7 9ZM7 13C7 12.4477 7.44772 12 8 12H16C16.5523 12 17 12.4477 17 13C17 13.5523 16.5523 14 16 14H8C7.44772 14 7 13.5523 7 13ZM7 17C7 16.4477 7.44772 16 8 16H16C16.5523 16 17 16.4477 17 17C17 17.5523 16.5523 18 16 18H8C7.44772 18 7 17.5523 7 17Z"})),T=s=>i.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...s},i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.75873 3H17.2413C18.0463 2.99999 18.7107 2.99998 19.2519 3.04419C19.8139 3.09012 20.3307 3.18868 20.816 3.43597C21.5686 3.81947 22.1806 4.43139 22.5641 5.18404C22.8027 5.65238 22.9028 6.14994 22.9508 6.68931C23.0043 6.8527 23.0136 7.02505 22.9819 7.18959C23 7.63971 23 8.16035 23 8.75868V15.2413C23 16.0463 23 16.7106 22.9558 17.2518C22.9099 17.8139 22.8113 18.3306 22.5641 18.816C22.1806 19.5686 21.5686 20.1805 20.816 20.564C20.3307 20.8113 19.8139 20.9099 19.2519 20.9558C18.7107 21 18.0463 21 17.2413 21H6.7587C5.95374 21 5.28939 21 4.7482 20.9558C4.1861 20.9099 3.6694 20.8113 3.18406 20.564C2.43141 20.1805 1.81949 19.5686 1.436 18.816C1.18871 18.3306 1.09014 17.8139 1.04422 17.2518C1 16.7106 1.00001 16.0463 1.00002 15.2413V8.7587C1.00001 8.16037 1.00001 7.63972 1.01816 7.1896C0.986405 7.02505 0.995778 6.85269 1.04924 6.6893C1.09723 6.14993 1.19737 5.65238 1.436 5.18404C1.81949 4.43139 2.43141 3.81947 3.18406 3.43597C3.6694 3.18868 4.1861 3.09012 4.7482 3.04419C5.28939 2.99998 5.95376 2.99999 6.75873 3ZM3.00002 8.92066V15.2C3.00002 16.0566 3.0008 16.6389 3.03758 17.089C3.0734 17.5274 3.13832 17.7516 3.21801 17.908C3.40976 18.2843 3.71572 18.5903 4.09204 18.782C4.24844 18.8617 4.47265 18.9266 4.91106 18.9624C5.36115 18.9992 5.94345 19 6.80002 19H17.2C18.0566 19 18.6389 18.9992 19.089 18.9624C19.5274 18.9266 19.7516 18.8617 19.908 18.782C20.2843 18.5903 20.5903 18.2843 20.782 17.908C20.8617 17.7516 20.9267 17.5274 20.9625 17.089C20.9992 16.6389 21 16.0566 21 15.2V8.92066L14.4086 13.5347C14.3698 13.5618 14.3313 13.5888 14.2932 13.6156C13.7486 13.998 13.2703 14.3338 12.7256 14.4696C12.2492 14.5884 11.7509 14.5884 11.2744 14.4696C10.7297 14.3338 10.2515 13.998 9.70683 13.6156C9.66872 13.5888 9.63029 13.5618 9.59148 13.5347L3.00002 8.92066ZM20.9173 6.53728L13.2616 11.8962C12.5327 12.4065 12.3783 12.495 12.2419 12.529C12.0831 12.5686 11.917 12.5686 11.7582 12.529C11.6218 12.495 11.4673 12.4065 10.7384 11.8962L3.08279 6.53728C3.11852 6.33012 3.165 6.19607 3.21801 6.09202C3.40976 5.7157 3.71572 5.40973 4.09204 5.21799C4.24844 5.1383 4.47265 5.07337 4.91106 5.03755C5.36115 5.00078 5.94345 5 6.80002 5H17.2C18.0566 5 18.6389 5.00078 19.089 5.03755C19.5274 5.07337 19.7516 5.1383 19.908 5.21799C20.2843 5.40973 20.5903 5.7157 20.782 6.09202C20.8351 6.19607 20.8815 6.33012 20.9173 6.53728Z"})),A=s=>i.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...s},i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.75873 1H14.2413C15.0463 0.999988 15.7107 0.999977 16.2519 1.04419C16.814 1.09012 17.3307 1.18868 17.816 1.43597C18.5686 1.81947 19.1806 2.43139 19.5641 3.18404C19.8113 3.66937 19.9099 4.18608 19.9558 4.74817C20.0001 5.28936 20 5.95372 20 6.75868V10.0176C20.0673 10.0212 20.1323 10.0254 20.1951 10.0306C20.5904 10.0629 20.9836 10.1342 21.362 10.327C21.9265 10.6146 22.3854 11.0735 22.673 11.638C22.8658 12.0164 22.9372 12.4096 22.9695 12.805C23.0001 13.1795 23 13.6343 23 14.1614V16.9463C23 17.3849 23.0001 17.7634 22.9787 18.0767C22.9562 18.4065 22.9067 18.7364 22.7717 19.0623C22.4672 19.7974 21.8832 20.3814 21.1481 20.6859C20.8222 20.8209 20.4922 20.8704 20.1624 20.8929C20.1101 20.8965 20.056 20.8995 20 20.902V22C20 22.3723 19.7932 22.7138 19.4633 22.8862C19.1333 23.0587 18.7349 23.0336 18.4292 22.8211L16.2528 21.3079C15.9176 21.0749 15.8497 21.0324 15.7857 21.0034C15.7118 20.9699 15.6341 20.9455 15.5544 20.9308C15.4852 20.9181 15.4052 20.9143 14.9969 20.9143H13.1615C12.6343 20.9143 12.1796 20.9143 11.805 20.8837C11.4097 20.8514 11.0164 20.7801 10.6381 20.5873C10.0736 20.2997 9.61463 19.8407 9.32701 19.2763C9.13422 18.8979 9.0629 18.5047 9.0306 18.1093C9.01405 17.9068 9.00646 17.6808 9.00297 17.4326L7.61004 18.843C7.41849 19.037 7.23062 19.2272 7.06596 19.3669C6.91972 19.4909 6.61021 19.7413 6.17978 19.7771C5.69995 19.8169 5.23016 19.624 4.9168 19.2585C4.63567 18.9306 4.59142 18.5349 4.57452 18.3439C4.5555 18.1289 4.55554 17.8615 4.55558 17.5889L4.55559 16.0111C4.53636 15.9951 4.49179 15.9682 4.4203 15.9578C2.67169 15.7016 1.2984 14.3283 1.04226 12.5797C0.999782 12.2897 0.999881 11.9625 1.00001 11.5208C1.00002 11.4958 1.00003 11.4703 1.00003 11.4444L1.00003 6.7587C1.00002 5.95373 1.00001 5.28937 1.04422 4.74818C1.09015 4.18608 1.18871 3.66937 1.436 3.18404C1.8195 2.43139 2.43142 1.81947 3.18407 1.43597C3.6694 1.18868 4.18611 1.09012 4.7482 1.04419C5.2894 0.999977 5.95376 0.999988 6.75873 1ZM11 14.9994C11 14.9998 11 15.0003 11 15.0007V16.7143C11 17.2908 11.0008 17.6631 11.024 17.9465C11.0462 18.2181 11.0838 18.3188 11.109 18.3683C11.2049 18.5564 11.3579 18.7094 11.546 18.8053C11.5955 18.8305 11.6962 18.8682 11.9679 18.8904C12.2512 18.9135 12.6235 18.9143 13.2 18.9143H14.9969C15.0181 18.9143 15.0391 18.9143 15.06 18.9143C15.3707 18.914 15.6448 18.9138 15.9169 18.964C16.1561 19.0081 16.3892 19.0811 16.6108 19.1815C16.8628 19.2956 17.0878 19.4523 17.3428 19.6298C17.3598 19.6417 17.3771 19.6537 17.3945 19.6658L18 20.0868V19.9143C18 19.362 18.4477 18.9143 19 18.9143C19.4797 18.9143 19.7893 18.9137 20.0263 18.8976C20.2543 18.882 20.3411 18.8554 20.3827 18.8382C20.6277 18.7367 20.8224 18.542 20.9239 18.297C20.9411 18.2554 20.9678 18.1685 20.9833 17.9405C20.9995 17.7035 21 17.3939 21 16.9143V14.2C21 13.6234 20.9993 13.2512 20.9761 12.9678C20.9539 12.6962 20.9162 12.5955 20.891 12.546C20.7952 12.3578 20.6422 12.2049 20.454 12.109C20.4046 12.0838 20.3039 12.0461 20.0322 12.0239C19.7489 12.0008 19.3766 12 18.8 12H13.2C12.6235 12 12.2512 12.0008 11.9679 12.0239C11.6962 12.0461 11.5955 12.0838 11.546 12.109C11.3579 12.2049 11.2049 12.3578 11.109 12.546C11.0838 12.5955 11.0462 12.6962 11.024 12.9678C11.0008 13.2512 11 13.6234 11 14.2V14.9994ZM9.00003 14.5894L6.55559 17.0644V15.9916C6.55559 14.8142 5.59832 14.109 4.71017 13.9789C3.83586 13.8508 3.14921 13.1642 3.02115 12.2899C3.00269 12.1639 3.00003 11.9959 3.00003 11.4444V6.8C3.00003 5.94342 3.00081 5.36113 3.03758 4.91104C3.0734 4.47262 3.13833 4.24842 3.21802 4.09202C3.40976 3.7157 3.71572 3.40973 4.09205 3.21799C4.24845 3.1383 4.47265 3.07337 4.91107 3.03755C5.36116 3.00078 5.94345 3 6.80003 3H14.2C15.0566 3 15.6389 3.00078 16.089 3.03755C16.5274 3.07337 16.7516 3.1383 16.908 3.21799C17.2843 3.40973 17.5903 3.7157 17.782 4.09202C17.8617 4.24842 17.9267 4.47262 17.9625 4.91104C17.9993 5.36113 18 5.94342 18 6.8V10L13.1615 10C12.6343 9.99998 12.1796 9.99997 11.805 10.0306C11.4097 10.0629 11.0164 10.1342 10.6381 10.327C10.0736 10.6146 9.61463 11.0735 9.32701 11.638C9.13422 12.0164 9.0629 12.4096 9.0306 12.805C9 13.1795 9.00001 13.6343 9.00003 14.1615L9.00003 14.5894Z"}));function q(){const s=[{text:"Send us a message",href:"mailto:cloud@zenml.io",icon:e.jsx(T,{className:"h-5 w-5 fill-neutral-500"})},{text:"Join our Slack Community",href:"https://zenml.io/slack",icon:e.jsx(A,{className:"h-5 w-5 fill-neutral-500"})}];return e.jsxs("div",{className:"space-y-1",children:[e.jsx("p",{className:"text-text-lg font-semibold",children:"Support"}),e.jsx("ul",{className:"space-y-1",children:s.map((t,n)=>e.jsx("li",{children:e.jsx(p,{size:"md",className:"w-fit px-2 text-theme-text-secondary",intent:"secondary",emphasis:"minimal",asChild:!0,children:e.jsxs("a",{target:"_blank",rel:"noopener noreferrer",className:"flex gap-1",href:t.href,children:[t.icon,e.jsx("div",{children:t.text})]})})},n))})]})}function U(){const s=[{text:"Browse our docs",href:"https://docs.zenml.io",icon:e.jsx(O,{className:"h-5 w-5 fill-neutral-500"})},{text:"Discover projects",href:"https://github.com/zenml-io/zenml-projects",icon:e.jsx(E,{className:"h-5 w-5 fill-neutral-500"})},{text:"Navigate our examples",href:"https://github.com/zenml-io/zenml/tree/main/examples/",icon:e.jsx(N,{className:"h-5 w-5 fill-neutral-500"})},{text:"Read our blog",href:"https://zenml.io/blog",icon:e.jsx(y,{className:"h-5 w-5 fill-neutral-500"})}];return e.jsxs("div",{className:"space-y-1",children:[e.jsx("p",{className:"mb-0.5 text-text-lg font-semibold",children:"Resources"}),e.jsx("ul",{className:"space-y-1",children:s.map((t,n)=>e.jsx("li",{children:e.jsx(p,{size:"md",className:"w-fit px-2 text-theme-text-secondary",intent:"secondary",emphasis:"minimal",asChild:!0,children:e.jsxs("a",{rel:"noopener noreferrer",target:"_blank",className:"flex gap-1",href:t.href,children:[t.icon,e.jsx("div",{children:t.text})]})})},n))})]})}function F(){const s=j(),t=C();if(s.isPending||t.isPending)return e.jsx(d,{className:"h-[32px] w-[150px]"});if(s.isError||t.isError)return null;const n=g(t.data.deployment_type||"other"),r=w(s.data,n),a=r.itemsDone,l=r.totalItems;return e.jsxs(b,{rounded:!1,color:"light-purple",className:"text-text-sm font-semibold",children:[a,"/",l," steps completed"]})}function $(){return e.jsxs("div",{className:"space-between flex flex-col flex-wrap items-center gap-1 space-x-5 overflow-x-hidden lg:flex-row",children:[e.jsxs("div",{className:"flex-1 space-y-1 overflow-x-hidden",children:[e.jsxs("h2",{className:"truncate text-display-xs font-semibold",children:["Welcome to ZenML",e.jsx(K,{})]}),e.jsx("p",{className:"truncate text-display-xs text-theme-text-secondary",children:"You can start by following your quick setup."})]}),e.jsx(F,{})]})}function K(){const s=S();if(s.isError)return null;if(s.isPending)return e.jsx(d,{className:"h-6 w-[70px]"});const t=k(s.data);return e.jsx(e.Fragment,{children:t?`, ${t}`:""})}function G({className:s,...t}){return e.jsx("div",{className:v("flex h-[28px] w-[28px] shrink-0 items-center justify-center rounded-rounded border-2 border-warning-300 bg-warning-50",s),...t,children:e.jsx(P,{className:"h-3 w-3 fill-warning-300"})})}function m({completed:s,title:t,children:n,hasDownstream:r,active:a=!1}){const[l,o]=i.useState(a);return i.useEffect(()=>{o(a)},[a]),e.jsxs(L,{disabled:!(r||a||s),open:l,onOpenChange:o,children:[e.jsx("div",{className:"flex w-full flex-col gap-3 bg-theme-surface-primary px-5 py-3",children:e.jsxs("div",{className:"flex w-full justify-between gap-2",children:[s?e.jsx(I,{className:"shrink-0"}):r?e.jsx(G,{}):e.jsx(z,{className:"shrink-0"}),e.jsx(u,{className:"w-full",children:e.jsx(J,{active:a,skipped:r,title:t,completed:s})}),e.jsx("div",{className:"flex items-center gap-1",children:e.jsx(u,{children:e.jsx(D,{className:` ${l?"":"-rotate-90"} h-5 w-5 shrink-0 rounded-md fill-neutral-500`})})})]})}),n&&e.jsx(M,{className:"border-t border-theme-border-moderate",children:e.jsxs("div",{className:"flex w-full items-center gap-2 bg-theme-surface-primary p-5",children:[e.jsx("div",{className:"w-[28px] shrink-0"}),e.jsx("div",{className:"w-full min-w-0 flex-1",children:n})]})})]})}function J({completed:s,title:t,skipped:n,active:r}){return e.jsx("div",{className:"flex w-full items-center justify-between gap-2",children:e.jsx("div",{className:"flex w-full items-center",children:e.jsx("div",{className:v("text-text-xl",{"text-theme-text-tertiary line-through decoration-theme-text-tertiary":s||n,"font-semibold":r,"text-theme-text-secondary":!r&&!s}),children:t})})})}function W({completed:s,hasDownstreamStep:t,active:n}){const{data:r}=C({throwOnError:!0});return e.jsx(m,{active:n,hasDownstream:t,completed:s,title:"Install and Connect ZenML (5 min)",children:e.jsxs("div",{className:"flex flex-col gap-5",children:[e.jsxs("div",{children:[e.jsx("p",{className:"mb-1 text-text-sm text-theme-text-secondary",children:"Install ZenML"}),e.jsx(c,{code:`pip install "zenml==${r?r.version:e.jsx(d,{className:"w-7"})}"`})]}),e.jsxs("div",{children:[e.jsx("p",{className:"mb-1 text-text-sm text-theme-text-secondary",children:"Login to your ZenML Server"}),e.jsx(c,{code:`zenml connect --url ${window.location.origin}`})]}),e.jsx(h,{link:"https://docs.zenml.io/user-guide/production-guide/deploying-zenml#connecting-to-a-deployed-zenml"})]})})}function Y({active:s,completed:t,hasDownstreamStep:n}){return e.jsx(m,{active:s,hasDownstream:n,completed:t,title:"Run a pipeline (2 min)",children:e.jsxs("div",{className:"flex flex-col gap-5",children:[e.jsxs("div",{children:[e.jsx("p",{className:"mb-1 text-text-sm text-theme-text-secondary",children:"Download the quickstart example to your local machine"}),e.jsx(c,{code:"git clone --depth 1 https://github.com/zenml-io/zenml.git && cd zenml/examples/quickstart"})]}),e.jsxs("div",{children:[e.jsx("p",{className:"mb-1 text-text-sm text-theme-text-secondary",children:"Initialize ZenML in the current directory"}),e.jsx(c,{code:"zenml init"})]}),e.jsxs("div",{children:[e.jsx("p",{className:"mb-1 text-text-sm text-theme-text-secondary",children:"Install the remaining requirements apart from ZenML"}),e.jsx(c,{code:"pip install -r requirements.txt"})]}),e.jsxs("div",{children:[e.jsxs("p",{className:"mb-1 text-text-sm text-theme-text-secondary",children:["Run the training pipeline.",e.jsx("br",{}),"Once it is running, your dashboard will show all the details of the associated run, models, and artifacts."]}),e.jsx(c,{code:"python run.py"})]}),e.jsxs(H,{className:"flex w-full flex-wrap items-center justify-between gap-y-1 p-2",children:[e.jsxs("div",{className:"flex items-center gap-[10px]",children:[e.jsx("div",{className:"flex h-7 w-7 items-center justify-center rounded-sm bg-teal-25",children:e.jsx(Z,{className:"h-5 w-5 fill-teal-400"})}),e.jsx("p",{children:"Do you need help?"})]}),e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx("a",{target:"_blank",rel:"noopener noreferrer",className:f({intent:"secondary",emphasis:"subtle",size:"md"}),href:"https://github.com/zenml-io/zenml/blob/main/examples/quickstart/README.md",children:"Open the Readme"}),e.jsx("a",{target:"_blank",rel:"noopener noreferrer",className:f({intent:"primary",emphasis:"subtle",size:"md"}),href:"https://docs.zenml.io/user-guide/starter-guide/create-an-ml-pipeline",children:"Browse our docs"})]})]})]})})}function Q({completed:s,active:t,hasDownstreamStep:n}){const r=R.stacks.create.index+"?"+new URLSearchParams({origin:"onboarding"}).toString();return e.jsxs(m,{hasDownstream:n,completed:s,title:"Connect to a remote stack (5 min)",active:t,children:[e.jsxs("p",{className:"mb-3",children:["A stack configures how a pipeline is executed"," ",e.jsx(e1,{href:"https://docs.zenml.io/user-guide/production-guide/understand-stacks"})]}),e.jsxs("div",{className:"space-y-5",children:[e.jsxs("div",{className:"space-y-3",children:[e.jsx("p",{children:"Connect your Cloud to deploy your ZenML pipelines in a remote stack."}),e.jsx(p,{className:"w-fit",size:"md",asChild:!0,children:e.jsxs(B,{className:"flex",to:r,children:[e.jsx(_,{className:"h-5 w-5 shrink-0 fill-white"}),"Register a remote stack"]})})]}),e.jsx(h,{link:"https://docs.zenml.io/user-guide/production-guide/understand-stacks"})]})]})}function X({active:s,completed:t,hasDownstreamStep:n}){return e.jsx(m,{hasDownstream:n,completed:t,title:"Run a pipeline in a remote stack (3 min)",active:s,children:e.jsxs("div",{className:"space-y-5",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsx("p",{className:"text-text-sm text-theme-text-secondary",children:"Set the new stack"}),e.jsx(c,{wrap:!0,codeClasses:"whitespace-pre-wrap",code:"zenml stack set REMOTE_STACK"})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx("p",{className:"text-text-sm text-theme-text-secondary",children:"Run the pipeline"}),e.jsx(c,{wrap:!0,codeClasses:"whitespace-pre-wrap",code:"python run.py"})]}),e.jsx("div",{children:e.jsx(h,{link:"https://docs.zenml.io/user-guide/production-guide/understand-stacks"})})]})})}function e1({href:s}){return e.jsx("a",{href:s,rel:"noopener noreferrer",target:"_blank",className:"link text-text-sm font-semibold text-theme-text-brand",children:"Learn more"})}function s1(){const s=j({refetchInterval:5e3}),t=C();if(s.isPending||t.isPending)return e.jsx(d,{className:"h-[200px] w-full"});if(s.isError||t.isError)return null;const n=g(t.data.deployment_type||"other"),{getItem:r}=w(s.data,n),a=r("device_verified"),l=r("pipeline_run"),o=r("stack_with_remote_orchestrator_created"),x=r("pipeline_run_with_remote_orchestrator");return e.jsxs("ul",{className:"space-y-5",children:[!n&&e.jsx("li",{children:e.jsx(W,{active:a.isActive,completed:a.isCompleted,hasDownstreamStep:a.hasDownStreamStep})}),e.jsx("li",{children:e.jsx(Y,{active:l.isActive,completed:l.isCompleted,hasDownstreamStep:l.hasDownStreamStep})}),e.jsx("li",{children:e.jsx(Q,{active:o.isActive,completed:o.isCompleted,hasDownstreamStep:o.hasDownStreamStep})}),e.jsx("li",{children:e.jsx(X,{active:x.isActive,completed:x.isCompleted,hasDownstreamStep:x.hasDownStreamStep})})]})}function f1(){const{setTourState:s,tourState:{tourActive:t}}=V();return i.useEffect(()=>{t&&s(n=>({...n,run:!0,stepIndex:n.stepIndex}))},[t]),e.jsxs("div",{className:"layout-container grid grid-cols-4 gap-5 py-5",children:[e.jsxs("div",{className:"col-span-4 space-y-5 lg:col-span-3",children:[e.jsx($,{}),e.jsx(s1,{})]}),e.jsxs("div",{className:"col-span-4 space-y-5 lg:col-span-1",children:[e.jsx(q,{}),e.jsx(U,{})]})]})}export{f1 as default};
@@ -0,0 +1 @@
1
+ import{j as e}from"./@radix-DeK6qiuw.js";import{B as r,R as n}from"./index-CCOPpudF.js";import{P as o}from"./ProBadge-D_EB8HNo.js";import{P as i,a as l,b as c,c as m,d,e as x}from"./ProCta-DqNS4v3x.js";import{C as f}from"./CodeSnippet-JzR8CEtw.js";import{c as p}from"./@react-router-B3Z5rLr2.js";import"./@tanstack-DT5WLu9C.js";import"./@reactflow-CK0KJUen.js";import"./check-DloQpStc.js";import"./copy-C8XQA2Ug.js";const u="/assets/acp-DOsXjFc7.webp";function h(){const[a]=p(),t=a.get("artifact");function s(){return t?`zenml artifact list --name='contains:${t}'`:"zenml artifact list"}return e.jsxs(r,{className:"flex flex-wrap justify-between p-5",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-text-xl font-semibold",children:"Staying Open Source? "}),e.jsx("p",{className:"text-theme-text-secondary",children:"No problem! Use this CLI command to list your artifacts"})]}),e.jsx(f,{code:s()})]})}function M(){return e.jsxs("div",{children:[e.jsxs(n,{className:"flex items-center gap-1",children:[e.jsx("h1",{className:"text-display-xs font-semibold",children:"Artifacts"}),e.jsx(o,{})]}),e.jsxs("div",{className:"layout-container space-y-5 py-5",children:[e.jsxs(i,{className:"relative overflow-y-hidden",children:[e.jsxs("div",{className:"w-full max-w-none space-y-5 lg:max-w-[900px]",children:[e.jsx(l,{children:"Advanced Artifact Management Features with ZenML Pro"}),e.jsx(c,{}),e.jsx(m,{features:[{title:"Artifact Control Plane Dashboard",subtitle:"Artifact management and monitoring"},{title:"Enterprise Security",subtitle:"Social SSO, RBAC, and User Management"},{title:"Managed ZenML Server",subtitle:"On your VPC or hosted on our infrastructure"},{title:"Advanced MLOps",subtitle:"CI/CD/CT, Model Control Plane and more"}]}),e.jsx(d,{})]}),e.jsx(x,{className:"absolute translate-x-[30%] translate-y-[15%] scale-[40%]",src:u,alt:"Screenshot of the ZenML Pro Artifact Control Plane"})]}),e.jsx(h,{})]})]})}export{M as default};
@@ -1 +1 @@
1
- import{z as a}from"./index-QQb7wQEC.js";import{a as i}from"./sharedSchema-TMLu-nYQ.js";const o=a.enum(["aws","gcp","azure"]),p=a.object({provider:o}),g=a.object({region:a.string().trim().min(1),stackName:i}),r="new-infra-data",e=a.object({provider:o,stackName:a.string().min(1).trim(),location:a.string().min(1).trim(),timestamp:a.string().min(1).trim()});function d(t){localStorage.setItem(r,JSON.stringify(t))}function f(){try{const t=localStorage.getItem(r),s=t?JSON.parse(t):{};return e.safeParse(s)}catch{return c(),e.safeParse({})}}function c(){localStorage.removeItem(r)}export{g as a,p as b,c,o as d,f as p,d as s};
1
+ import{z as a}from"./index-CCOPpudF.js";import{s as i}from"./sharedSchema-CQb14VSr.js";const o=a.enum(["aws","gcp","azure"]),p=a.object({provider:o}),g=a.object({region:a.string().trim().min(1),stackName:i}),r="new-infra-data",e=a.object({provider:o,stackName:a.string().min(1).trim(),location:a.string().min(1).trim(),timestamp:a.string().min(1).trim()});function d(t){localStorage.setItem(r,JSON.stringify(t))}function f(){try{const t=localStorage.getItem(r),s=t?JSON.parse(t):{};return e.safeParse(s)}catch{return c(),e.safeParse({})}}function c(){localStorage.removeItem(r)}export{g as a,p as b,c,o as d,f as p,d as s};
@@ -1 +1 @@
1
- import{z as t}from"./index-QQb7wQEC.js";import{d as s}from"./persist-DNb5cdrU.js";const r="create-terraform-data",e=t.object({provider:s,stackName:t.string().min(1).trim(),location:t.string().min(1).trim(),timestamp:t.string().min(1).trim()});function n(a){localStorage.setItem(r,JSON.stringify(a))}function l(){try{const a=localStorage.getItem(r),o=a?JSON.parse(a):{};return e.safeParse(o)}catch{return i(),e.safeParse({})}}function i(){localStorage.removeItem(r)}export{i as c,l as p,n as s};
1
+ import{z as t}from"./index-CCOPpudF.js";import{d as s}from"./persist-Coz7ZWvz.js";const r="create-terraform-data",e=t.object({provider:s,stackName:t.string().min(1).trim(),location:t.string().min(1).trim(),timestamp:t.string().min(1).trim()});function n(a){localStorage.setItem(r,JSON.stringify(a))}function l(){try{const a=localStorage.getItem(r),o=a?JSON.parse(a):{};return e.safeParse(o)}catch{return i(),e.safeParse({})}}function i(){localStorage.removeItem(r)}export{i as c,l as p,n as s};
@@ -1 +1 @@
1
- import{r as e}from"./@radix-DP6vWzyx.js";const o=t=>e.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 4C12.5523 4 13 4.44772 13 5V11H19C19.5523 11 20 11.4477 20 12C20 12.5523 19.5523 13 19 13H13V19C13 19.5523 12.5523 20 12 20C11.4477 20 11 19.5523 11 19V13H5C4.44772 13 4 12.5523 4 12C4 11.4477 4.44772 11 5 11H11V5C11 4.44772 11.4477 4 12 4Z"}));export{o as S};
1
+ import{r as e}from"./@radix-DeK6qiuw.js";const o=t=>e.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 4C12.5523 4 13 4.44772 13 5V11H19C19.5523 11 20 11.4477 20 12C20 12.5523 19.5523 13 19 13H13V19C13 19.5523 12.5523 20 12 20C11.4477 20 11 19.5523 11 19V13H5C4.44772 13 4 12.5523 4 12C4 11.4477 4.44772 11 5 11H11V5C11 4.44772 11.4477 4 12 4Z"}));export{o as S};
@@ -1 +1 @@
1
- import{r as e}from"./@radix-DP6vWzyx.js";const r=C=>e.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...C},e.createElement("g",{id:"refresh-cw-01"},e.createElement("path",{id:"Icon (Stroke)",fillRule:"evenodd",clipRule:"evenodd",d:"M2 12C2 6.47715 6.47715 2 12 2C14.7624 2 17.2648 3.12139 19.0735 4.93138C19.7132 5.57146 20.3981 6.36248 21 7.09444V4C21 3.44772 21.4477 3 22 3C22.5523 3 23 3.44772 23 4V10C23 10.5523 22.5523 11 22 11H16C15.4477 11 15 10.5523 15 10C15 9.44772 15.4477 9 16 9H19.9692C19.277 8.13128 18.4165 7.10335 17.6588 6.34511C16.2098 4.89514 14.2104 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20C15.6457 20 18.7243 17.5605 19.6874 14.2227C19.8406 13.6921 20.3948 13.3861 20.9255 13.5392C21.4561 13.6923 21.7622 14.2466 21.609 14.7773C20.4055 18.9481 16.5605 22 12 22C6.47715 22 2 17.5228 2 12Z"})));export{r as S};
1
+ import{r as e}from"./@radix-DeK6qiuw.js";const r=C=>e.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...C},e.createElement("g",{id:"refresh-cw-01"},e.createElement("path",{id:"Icon (Stroke)",fillRule:"evenodd",clipRule:"evenodd",d:"M2 12C2 6.47715 6.47715 2 12 2C14.7624 2 17.2648 3.12139 19.0735 4.93138C19.7132 5.57146 20.3981 6.36248 21 7.09444V4C21 3.44772 21.4477 3 22 3C22.5523 3 23 3.44772 23 4V10C23 10.5523 22.5523 11 22 11H16C15.4477 11 15 10.5523 15 10C15 9.44772 15.4477 9 16 9H19.9692C19.277 8.13128 18.4165 7.10335 17.6588 6.34511C16.2098 4.89514 14.2104 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20C15.6457 20 18.7243 17.5605 19.6874 14.2227C19.8406 13.6921 20.3948 13.3861 20.9255 13.5392C21.4561 13.6923 21.7622 14.2466 21.609 14.7773C20.4055 18.9481 16.5605 22 12 22C6.47715 22 2 17.5228 2 12Z"})));export{r as S};
@@ -1 +1 @@
1
- import{r as L}from"./@radix-DP6vWzyx.js";const t=C=>L.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...C},L.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.6634 4.40771C20.7762 3.73089 20.1894 3.14411 19.5126 3.25691L16.114 3.82335C16.8361 4.39318 17.5361 5.01441 18.2079 5.68618C18.8896 6.36789 19.5193 7.07869 20.096 7.81215L20.6634 4.40771ZM19.3551 10.1804C18.6205 9.10701 17.7659 8.07266 16.7937 7.10039C15.8308 6.13747 14.8069 5.29004 13.7446 4.56019L9.9976 8.56559C9.98958 8.57449 9.9814 8.58322 9.97309 8.5918L7.17626 11.5815C6.05341 12.7818 5.89351 14.5446 6.68049 15.9047L12.2925 10.2927C12.683 9.90216 13.3162 9.90216 13.7067 10.2927C14.0973 10.6832 14.0973 11.3164 13.7067 11.7069L8.11719 17.2965C9.46251 18.0183 11.1682 17.8391 12.3388 16.7441L15.3245 13.9509C15.3357 13.94 15.3472 13.9293 15.3589 13.9188L19.3551 10.1804ZM17.1759 14.9578L20.7743 11.5915C21.327 11.0744 21.694 10.3896 21.8184 9.64298L22.6362 4.7365C22.9746 2.70604 21.2143 0.945715 19.1838 1.28413L14.2773 2.10187C13.5307 2.22631 12.8459 2.59329 12.3288 3.14605L8.96251 6.74448L6.69595 5.98896C6.03378 5.76824 5.30444 5.9087 4.77161 6.35955L1.91445 8.77715C0.744598 9.76702 1.07695 11.6508 2.51492 12.1806L4.32557 12.8477C3.98551 14.3806 4.29093 16.0249 5.23466 17.3505L2.79252 19.7927C2.402 20.1832 2.402 20.8164 2.79252 21.2069C3.18305 21.5974 3.81621 21.5974 4.20674 21.2069L6.66301 18.7506C7.97201 19.6433 9.57553 19.9269 11.0727 19.5947L11.7397 21.4052C12.2695 22.8432 14.1533 23.1756 15.1432 22.0057L17.5608 19.1485C18.0116 18.6157 18.1521 17.8864 17.9314 17.2242L17.1759 14.9578ZM15.5688 16.4611L13.7051 18.2046C13.4573 18.4364 13.1941 18.6417 12.9189 18.8205L13.6164 20.7138L16.034 17.8567L15.5688 16.4611ZM5.09979 11.0015C5.27862 10.7263 5.48391 10.463 5.71572 10.2152L7.45914 8.35154L6.06349 7.88633L3.20634 10.3039L5.09979 11.0015Z"}));export{t as S};
1
+ import{r as L}from"./@radix-DeK6qiuw.js";const t=C=>L.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...C},L.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.6634 4.40771C20.7762 3.73089 20.1894 3.14411 19.5126 3.25691L16.114 3.82335C16.8361 4.39318 17.5361 5.01441 18.2079 5.68618C18.8896 6.36789 19.5193 7.07869 20.096 7.81215L20.6634 4.40771ZM19.3551 10.1804C18.6205 9.10701 17.7659 8.07266 16.7937 7.10039C15.8308 6.13747 14.8069 5.29004 13.7446 4.56019L9.9976 8.56559C9.98958 8.57449 9.9814 8.58322 9.97309 8.5918L7.17626 11.5815C6.05341 12.7818 5.89351 14.5446 6.68049 15.9047L12.2925 10.2927C12.683 9.90216 13.3162 9.90216 13.7067 10.2927C14.0973 10.6832 14.0973 11.3164 13.7067 11.7069L8.11719 17.2965C9.46251 18.0183 11.1682 17.8391 12.3388 16.7441L15.3245 13.9509C15.3357 13.94 15.3472 13.9293 15.3589 13.9188L19.3551 10.1804ZM17.1759 14.9578L20.7743 11.5915C21.327 11.0744 21.694 10.3896 21.8184 9.64298L22.6362 4.7365C22.9746 2.70604 21.2143 0.945715 19.1838 1.28413L14.2773 2.10187C13.5307 2.22631 12.8459 2.59329 12.3288 3.14605L8.96251 6.74448L6.69595 5.98896C6.03378 5.76824 5.30444 5.9087 4.77161 6.35955L1.91445 8.77715C0.744598 9.76702 1.07695 11.6508 2.51492 12.1806L4.32557 12.8477C3.98551 14.3806 4.29093 16.0249 5.23466 17.3505L2.79252 19.7927C2.402 20.1832 2.402 20.8164 2.79252 21.2069C3.18305 21.5974 3.81621 21.5974 4.20674 21.2069L6.66301 18.7506C7.97201 19.6433 9.57553 19.9269 11.0727 19.5947L11.7397 21.4052C12.2695 22.8432 14.1533 23.1756 15.1432 22.0057L17.5608 19.1485C18.0116 18.6157 18.1521 17.8864 17.9314 17.2242L17.1759 14.9578ZM15.5688 16.4611L13.7051 18.2046C13.4573 18.4364 13.1941 18.6417 12.9189 18.8205L13.6164 20.7138L16.034 17.8567L15.5688 16.4611ZM5.09979 11.0015C5.27862 10.7263 5.48391 10.463 5.71572 10.2152L7.45914 8.35154L6.06349 7.88633L3.20634 10.3039L5.09979 11.0015Z"}));export{t as S};
@@ -0,0 +1,14 @@
1
+ import{f as y}from"./index-CEV4Cvaf.js";import{g as D}from"./@radix-DeK6qiuw.js";import{z as P}from"./index-CCOPpudF.js";var w=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=void 0,o=void 0,u=void 0,i=[];return function(){var h=S(t),d=new Date().getTime(),g=!r||d-r>h;r=d;for(var p=arguments.length,s=Array(p),l=0;l<p;l++)s[l]=arguments[l];if(g&&a.leading)return a.accumulate?Promise.resolve(e.call(this,[s])).then(function(m){return m[0]}):Promise.resolve(e.call.apply(e,[this].concat(s)));if(o?clearTimeout(u):o=C(),i.push(s),u=setTimeout(c.bind(this),h),a.accumulate){var b=i.length-1;return o.promise.then(function(m){return m[b]})}return o.promise};function c(){var f=o;clearTimeout(u),Promise.resolve(a.accumulate?e.call(this,i):e.apply(this,i[i.length-1])).then(f.resolve,f.reject),i=[],o=null}};function S(n){return typeof n=="function"?n():n}function C(){var n={};return n.promise=new Promise(function(e,t){n.resolve=e,n.reject=t}),n}const F=D(w);function j(n){var e=null,t=null,a=new Promise(function(r,o){e=r,t=o});return n&&n.then(function(r){e&&e(r)},function(r){t&&t(r)}),{promise:a,resolve:function(r){e&&e(r)},reject:function(r){t&&t(r)},cancel:function(){e=null,t=null}}}function k(n){var e=null,t=function(){for(var a=[],r=0;r<arguments.length;r++)a[r]=arguments[r];e&&e();var o=n.apply(void 0,a),u=j(o),i=u.promise,c=u.cancel;return e=c,i};return t}/*! *****************************************************************************
2
+ Copyright (c) Microsoft Corporation. All rights reserved.
3
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not use
4
+ this file except in compliance with the License. You may obtain a copy of the
5
+ License at http://www.apache.org/licenses/LICENSE-2.0
6
+
7
+ THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
8
+ KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
9
+ WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
10
+ MERCHANTABLITY OR NON-INFRINGEMENT.
11
+
12
+ See the Apache Version 2.0 License for specific language governing permissions
13
+ and limitations under the License.
14
+ ***************************************************************************** */var v=function(){return v=Object.assign||function(e){for(var t,a=1,r=arguments.length;a<r;a++){t=arguments[a];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},v.apply(this,arguments)},A={key:function(){return null},onlyResolvesLast:!0},O=function(){function n(e){this.config=e,this.debounceSingleton=null,this.debounceCache={}}return n.prototype._createDebouncedFunction=function(){var e=F(this.config.func,this.config.wait,this.config.options);return this.config.options.onlyResolvesLast&&(e=k(e)),{func:e}},n.prototype.getDebouncedFunction=function(e){var t,a=(t=this.config.options).key.apply(t,e);return a===null||typeof a>"u"?(this.debounceSingleton||(this.debounceSingleton=this._createDebouncedFunction()),this.debounceSingleton):(this.debounceCache[a]||(this.debounceCache[a]=this._createDebouncedFunction()),this.debounceCache[a])},n}();function T(n,e,t){var a=v({},A,t),r=new O({func:n,wait:e,options:a}),o=function(){for(var u=[],i=0;i<arguments.length;i++)u[i]=arguments[i];var c=r.getDebouncedFunction(u).func;return c.apply(void 0,u)};return o}const x=T(async n=>(await y({name:n})).total===0,500),z=P.string().trim().min(1,"Stack name is required").max(32,"Stack name must be less than 32 characters").regex(/^[a-zA-Z0-9-]+$/,"Stack name can only contain alphanumeric characters and hyphens").refine(n=>x(n),"Stack name is already in use");export{z as s};