zenml-nightly 0.57.1.dev20240523__py3-none-any.whl → 0.58.0.dev20240528__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 (116) hide show
  1. README.md +1 -1
  2. RELEASE_NOTES.md +88 -0
  3. zenml/VERSION +1 -1
  4. zenml/cli/base.py +15 -16
  5. zenml/client.py +11 -1
  6. zenml/config/__init__.py +2 -0
  7. zenml/config/compiler.py +2 -2
  8. zenml/config/pipeline_configurations.py +2 -0
  9. zenml/config/pipeline_run_configuration.py +2 -0
  10. zenml/config/retry_config.py +27 -0
  11. zenml/config/server_config.py +13 -9
  12. zenml/config/step_configurations.py +2 -0
  13. zenml/constants.py +1 -0
  14. zenml/integrations/kubernetes/flavors/kubernetes_orchestrator_flavor.py +2 -0
  15. zenml/integrations/kubernetes/orchestrators/kubernetes_orchestrator.py +14 -0
  16. zenml/integrations/kubernetes/orchestrators/manifest_utils.py +4 -0
  17. zenml/integrations/mlflow/steps/mlflow_deployer.py +1 -1
  18. zenml/integrations/slack/alerters/slack_alerter.py +0 -2
  19. zenml/model/model.py +77 -45
  20. zenml/models/v2/core/model_version.py +1 -1
  21. zenml/models/v2/core/pipeline_run.py +12 -0
  22. zenml/models/v2/core/step_run.py +12 -0
  23. zenml/models/v2/misc/server_models.py +9 -3
  24. zenml/new/pipelines/run_utils.py +8 -2
  25. zenml/new/steps/step_context.py +6 -6
  26. zenml/new/steps/step_decorator.py +5 -0
  27. zenml/orchestrators/step_launcher.py +71 -53
  28. zenml/orchestrators/step_runner.py +28 -134
  29. zenml/orchestrators/utils.py +158 -1
  30. zenml/steps/base_step.py +16 -9
  31. zenml/utils/dashboard_utils.py +4 -8
  32. zenml/zen_server/dashboard/assets/{404-DtHkZQ2t.js → 404-DIgYOHj5.js} +1 -1
  33. zenml/zen_server/dashboard/assets/{@reactflow-BfgHyCG7.js → @reactflow-CF_wPv-n.js} +1 -1
  34. zenml/zen_server/dashboard/assets/{AwarenessChannel--3KuLcwp.js → AwarenessChannel-CqRB1HO9.js} +1 -1
  35. zenml/zen_server/dashboard/assets/{Cards-BzhQtXRm.js → Cards-DuJ8uYGM.js} +1 -1
  36. zenml/zen_server/dashboard/assets/{CodeSnippet-DpWTCS7Y.js → CodeSnippet-CBFcxTGW.js} +1 -1
  37. zenml/zen_server/dashboard/assets/Commands-BQb0_PAa.js +1 -0
  38. zenml/zen_server/dashboard/assets/CopyButton-BOFZCr5Z.js +2 -0
  39. zenml/zen_server/dashboard/assets/{CsvVizualization-B9nkywOx.js → CsvVizualization-D4QRvdDk.js} +1 -1
  40. zenml/zen_server/dashboard/assets/{Error-BbzLqrpR.js → Error-C9i5GdiH.js} +1 -1
  41. zenml/zen_server/dashboard/assets/{Helpbox-SS5TXXFE.js → Helpbox-CnuWjxcc.js} +1 -1
  42. zenml/zen_server/dashboard/assets/{Infobox-CV3EG_9t.js → Infobox-DV6YqO5N.js} +1 -1
  43. zenml/zen_server/dashboard/assets/{InlineAvatar-wz4SSxG5.js → InlineAvatar-DE_1-SDN.js} +1 -1
  44. zenml/zen_server/dashboard/assets/{PageHeader-Bz7qVuF9.js → PageHeader-D7r1Jb6H.js} +1 -1
  45. zenml/zen_server/dashboard/assets/{Pagination-BEP_9EMH.js → Pagination-0-Hv-4DJ.js} +1 -1
  46. zenml/zen_server/dashboard/assets/{SetPassword-B0yU0HIe.js → SetPassword-074iDZCm.js} +1 -1
  47. zenml/zen_server/dashboard/assets/SuccessStep-DEeKB0Wq.js +1 -0
  48. zenml/zen_server/dashboard/assets/{UpdatePasswordSchemas-yy-qBmO9.js → UpdatePasswordSchemas-4be5el9x.js} +1 -1
  49. zenml/zen_server/dashboard/assets/{cloud-only-DhayG_Yj.js → cloud-only-lInATL8-.js} +1 -1
  50. zenml/zen_server/dashboard/assets/connectors-video-C9qY4syJ.svg +21 -0
  51. zenml/zen_server/dashboard/assets/{index-Bbgc_ynV.css → index-D4zsM9tz.css} +1 -1
  52. zenml/zen_server/dashboard/assets/{index-UnEiujvd.js → index-DKgtNG83.js} +3 -3
  53. zenml/zen_server/dashboard/assets/{login-mutation-uNylFM6V.js → login-mutation-BfEeVmSl.js} +1 -1
  54. zenml/zen_server/dashboard/assets/{not-found-CvNr1Owb.js → not-found-an_3Z-Ep.js} +1 -1
  55. zenml/zen_server/dashboard/assets/page-0AGNIDYi.js +1 -0
  56. zenml/zen_server/dashboard/assets/{page-1rE3Idho.js → page-68OLHx44.js} +2 -2
  57. zenml/zen_server/dashboard/assets/page-6Gp_NCQL.js +14 -0
  58. zenml/zen_server/dashboard/assets/{page-BAuah6Do.js → page-B90yVxNb.js} +1 -1
  59. zenml/zen_server/dashboard/assets/page-Ba5l9-eg.js +1 -0
  60. zenml/zen_server/dashboard/assets/{page-BCpiaYh8.js → page-BiyORkbM.js} +1 -1
  61. zenml/zen_server/dashboard/assets/{page-DIZKf8ZO.js → page-Bjj9GHVF.js} +1 -1
  62. zenml/zen_server/dashboard/assets/{page-CM80cPrr.js → page-BnrWbXYJ.js} +1 -1
  63. zenml/zen_server/dashboard/assets/{page-CjxYF1Om.js → page-C0opS_t4.js} +1 -1
  64. zenml/zen_server/dashboard/assets/{page-BldrIvaZ.js → page-C1Jl09zF.js} +1 -1
  65. zenml/zen_server/dashboard/assets/{page-BVZ01rdG.js → page-C6Xn5o3F.js} +1 -1
  66. zenml/zen_server/dashboard/assets/page-CUqLUGbU.js +1 -0
  67. zenml/zen_server/dashboard/assets/page-CWpGAjSi.js +1 -0
  68. zenml/zen_server/dashboard/assets/{page-Btc7hKsa.js → page-Cea5XeRB.js} +1 -1
  69. zenml/zen_server/dashboard/assets/{page-BBUhx49Q.js → page-DFQa6C6e.js} +1 -1
  70. zenml/zen_server/dashboard/assets/page-DVAcOIuw.js +1 -0
  71. zenml/zen_server/dashboard/assets/{page-aQgPR2HA.js → page-Dn87PjPv.js} +1 -1
  72. zenml/zen_server/dashboard/assets/{page-sPFYi62U.js → page-GXA0bsIT.js} +1 -1
  73. zenml/zen_server/dashboard/assets/{page-PQQVONmL.js → page-NTQrxRsu.js} +2 -2
  74. zenml/zen_server/dashboard/assets/page-NlxFzoaz.js +1 -0
  75. zenml/zen_server/dashboard/assets/page-ZJ5Cy_-x.js +1 -0
  76. zenml/zen_server/dashboard/assets/{update-server-settings-mutation-B8N8nrWI.js → update-server-settings-mutation-CdcOI8-c.js} +1 -1
  77. zenml/zen_server/dashboard/assets/url-DLJUVIKc.js +1 -0
  78. zenml/zen_server/dashboard/index.html +4 -4
  79. zenml/zen_server/dashboard_legacy/asset-manifest.json +4 -4
  80. zenml/zen_server/dashboard_legacy/index.html +1 -1
  81. zenml/zen_server/dashboard_legacy/{precache-manifest.36c2742fac555eaab6995df9d81c08ab.js → precache-manifest.05e51e85bd64770b2708d408a88d7028.js} +4 -4
  82. zenml/zen_server/dashboard_legacy/service-worker.js +1 -1
  83. zenml/zen_server/dashboard_legacy/static/js/{main.1c1aaa11.chunk.js → main.41d438ec.chunk.js} +2 -2
  84. zenml/zen_server/dashboard_legacy/static/js/{main.1c1aaa11.chunk.js.map → main.41d438ec.chunk.js.map} +1 -1
  85. zenml/zen_server/deploy/helm/Chart.yaml +1 -1
  86. zenml/zen_server/deploy/helm/README.md +2 -2
  87. zenml/zen_server/deploy/helm/templates/_environment.tpl +5 -5
  88. zenml/zen_server/deploy/helm/values.yaml +13 -9
  89. zenml/zen_server/pipeline_deployment/utils.py +6 -2
  90. zenml/zen_server/routers/auth_endpoints.py +4 -4
  91. zenml/zen_server/zen_server_api.py +1 -1
  92. zenml/zen_stores/base_zen_store.py +2 -2
  93. zenml/zen_stores/migrations/versions/0.58.0_release.py +23 -0
  94. zenml/zen_stores/schemas/artifact_schemas.py +11 -2
  95. zenml/zen_stores/schemas/pipeline_run_schemas.py +12 -0
  96. zenml/zen_stores/schemas/step_run_schemas.py +17 -1
  97. zenml/zen_stores/sql_zen_store.py +9 -5
  98. {zenml_nightly-0.57.1.dev20240523.dist-info → zenml_nightly-0.58.0.dev20240528.dist-info}/METADATA +4 -4
  99. {zenml_nightly-0.57.1.dev20240523.dist-info → zenml_nightly-0.58.0.dev20240528.dist-info}/RECORD +102 -101
  100. zenml/zen_server/dashboard/assets/Commands-fpiuAaZ1.js +0 -1
  101. zenml/zen_server/dashboard/assets/CopyButton-DVKNxLl5.js +0 -2
  102. zenml/zen_server/dashboard/assets/SuccessStep-B8Qhr2kK.js +0 -1
  103. zenml/zen_server/dashboard/assets/VideoModal-qB9JWw-2.js +0 -1
  104. zenml/zen_server/dashboard/assets/page-3NFpYOpt.js +0 -1
  105. zenml/zen_server/dashboard/assets/page-BE7NJ8PH.js +0 -1
  106. zenml/zen_server/dashboard/assets/page-BTYWG9gF.js +0 -1
  107. zenml/zen_server/dashboard/assets/page-BuBHmjwQ.js +0 -1
  108. zenml/zen_server/dashboard/assets/page-C-Jw_wjv.js +0 -1
  109. zenml/zen_server/dashboard/assets/page-CeMgQAs7.js +0 -14
  110. zenml/zen_server/dashboard/assets/page-X0_g3JVr.js +0 -1
  111. zenml/zen_server/dashboard/assets/page-ijCkM2BW.js +0 -1
  112. zenml/zen_server/dashboard/assets/refresh-CdiBx6nL.js +0 -1
  113. zenml/zen_server/dashboard/assets/url-BxOqGmlk.js +0 -1
  114. {zenml_nightly-0.57.1.dev20240523.dist-info → zenml_nightly-0.58.0.dev20240528.dist-info}/LICENSE +0 -0
  115. {zenml_nightly-0.57.1.dev20240523.dist-info → zenml_nightly-0.58.0.dev20240528.dist-info}/WHEEL +0 -0
  116. {zenml_nightly-0.57.1.dev20240523.dist-info → zenml_nightly-0.58.0.dev20240528.dist-info}/entry_points.txt +0 -0
@@ -1,14 +0,0 @@
1
- function __vite__mapDeps(indexes) {
2
- if (!__vite__mapDeps.viteFileDeps) {
3
- __vite__mapDeps.viteFileDeps = ["assets/CsvVizualization-B9nkywOx.js","assets/@tanstack-GFKzItNf.js","assets/@radix-BrEjOMvl.js","assets/index-UnEiujvd.js","assets/@react-router-CCpyfPW-.js","assets/@reactflow-BfgHyCG7.js","assets/@reactflow-lOPj8ZwY.css","assets/index-Bbgc_ynV.css","assets/MarkdownVisualization-CMOybYJS.js"]
4
- }
5
- return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
6
- }
7
- var Ge=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)};var f=(e,t,r)=>(Ge(e,t,"read from private field"),r?r.call(e):t.get(e)),w=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},k=(e,t,r,n)=>(Ge(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r);var Se=(e,t,r,n)=>({set _(a){k(e,t,a,r)},get _(){return f(e,t,n)}}),V=(e,t,r)=>(Ge(e,t,"access private method"),r);import{j as s,a as q,c as dr}from"./@tanstack-GFKzItNf.js";import{p as at,j as ne,n as $e,F as A,k as Y,l as K,q as i1,C as de,s as re,t as ce,v as ue,S as g,T as S,w as cr,x as ur,y as hr,E as fr,_ as o1,i as Be,h as R,G as l1,H as mr,J as d1,o as xe,K as it,L as ot,M as B,N as Z,O as c1,P as u1,Q as h1,m as f1,r as pr,R as xr,z as Tt}from"./index-UnEiujvd.js";import{r as x,g as Cr}from"./@radix-BrEjOMvl.js";import{S as gr}from"./database-BiV4iNgr.js";import{H as Pt,P as Mt,u as lt,a as br,g as wr,p as vr,S as yr,b as m1,c as jr,d as Er,e as Nr}from"./@reactflow-BfgHyCG7.js";import{D as p1}from"./chevron-right-double-Dfr12EKG.js";import{I as kr,S as dt}from"./Infobox-CV3EG_9t.js";import{E as se}from"./Error-BbzLqrpR.js";import{D as _e}from"./DisplayDate-BoCi3-Ng.js";import{I as Lr}from"./InlineAvatar-wz4SSxG5.js";import{C as D}from"./CodeSnippet-DpWTCS7Y.js";import{S as he}from"./chevron-down-tsuIW52H.js";import{E as le}from"./EmptyState-CPJglRv0.js";import{s as Sr}from"./url-BxOqGmlk.js";import{C as ct,a as x1,E as Re,b as C1,g as Or}from"./CopyButton-DVKNxLl5.js";import{S as _r}from"./docker-EYFTGVBw.js";import{g as ae,L as Tr,f as Pr,a as Mr}from"./@react-router-CCpyfPW-.js";import{S as Vr}from"./terminal-Cb3ce-nr.js";import{P as Ir}from"./PageHeader-Bz7qVuF9.js";import"./copy-B8yRmO5i.js";import"./check-circle-GxOo3117.js";const $r=e=>x.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...e},x.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"})),Rr=e=>x.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...e},x.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"})),Ar=e=>x.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...e},x.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 3C3.89543 3 3 3.89543 3 5C3 6.10457 3.89543 7 5 7C6.10457 7 7 6.10457 7 5C7 3.89543 6.10457 3 5 3ZM1 5C1 2.79086 2.79086 1 5 1C7.20914 1 9 2.79086 9 5C9 7.20914 7.20914 9 5 9C2.79086 9 1 7.20914 1 5ZM15.3531 6.06506C14.5699 6.00083 13.4768 6 11.9344 6H11.5C10.9477 6 10.5 5.55228 10.5 5C10.5 4.44772 10.9477 4 11.5 4L11.9846 4C13.4658 3.99999 14.6415 3.99998 15.5166 4.07176C15.9623 4.10831 16.3749 4.16645 16.736 4.26872C17.0962 4.37071 17.4673 4.53362 17.771 4.82093C18.5209 5.53055 18.8532 6.57592 18.6507 7.58832C18.5688 7.99821 18.3599 8.34552 18.1247 8.63678C17.8889 8.92882 17.5856 9.21455 17.2429 9.50177C16.5699 10.0657 15.61 10.7447 14.4007 11.6L10.2952 14.5039C9.0359 15.3946 8.14402 16.0264 7.54167 16.5312C7.24297 16.7815 7.0505 16.9721 6.9314 17.1196C6.83281 17.2417 6.81191 17.3009 6.80978 17.3071C6.74385 17.6425 6.8538 17.9884 7.1013 18.2241C7.10663 18.2279 7.15787 18.2642 7.30887 18.3069C7.49129 18.3586 7.75849 18.4031 8.1469 18.4349C8.93013 18.4992 10.0232 18.5 11.5656 18.5H12.5C13.0523 18.5 13.5 18.9477 13.5 19.5C13.5 20.0523 13.0523 20.5 12.5 20.5H11.5154C10.0343 20.5 8.85853 20.5 7.98341 20.4282C7.53771 20.3917 7.12511 20.3335 6.76395 20.2313C6.40378 20.1293 6.03267 19.9664 5.72904 19.6791C4.97912 18.9694 4.64679 17.9241 4.84925 16.9117C4.93123 16.5018 5.14013 16.1545 5.37529 15.8632C5.61108 15.5712 5.91437 15.2854 6.25714 14.9982C6.93015 14.4343 7.89004 13.7553 9.09927 12.9L13.2048 9.99611C14.4641 9.1054 15.356 8.47355 15.9583 7.96881C16.257 7.71851 16.4495 7.5279 16.5686 7.38039C16.6672 7.25833 16.6881 7.19915 16.6902 7.1929C16.7562 6.85751 16.6462 6.51165 16.3987 6.2759C16.3934 6.27206 16.3421 6.23581 16.1911 6.19305C16.0087 6.1414 15.7415 6.09692 15.3531 6.06506ZM19 17C17.8954 17 17 17.8954 17 19C17 20.1046 17.8954 21 19 21C20.1046 21 21 20.1046 21 19C21 17.8954 20.1046 17 19 17ZM15 19C15 16.7909 16.7909 15 19 15C21.2091 15 23 16.7909 23 19C23 21.2091 21.2091 23 19 23C16.7909 23 15 21.2091 15 19Z"})),Vt=e=>x.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...e},x.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 g1({artifactType:e,className:t}){switch(e){case"DataAnalysisArtifact":return s.jsx($r,{className:t});case"DataArtifact":return s.jsx(gr,{className:t});case"ModelArtifact":return s.jsx(Rr,{className:t});case"SchemaArtifact":return s.jsx(Ar,{className:t});case"ServiceArtifact":return s.jsx(Vt,{className:t});case"StatisticsArtifact":return s.jsx(Vt,{className:t});default:return s.jsx(at,{className:t})}}function b1({children:e}){return s.jsxs(s.Fragment,{children:[s.jsx(Pt,{style:{border:"transparent",top:0,background:"transparent",width:0,height:0},type:"target",position:Mt.Top}),s.jsx("div",{className:"flex w-[300px] items-center justify-center",children:e}),s.jsx(Pt,{isConnectable:!1,type:"source",style:{border:"transparent",bottom:0,background:"transparent",width:0,height:0},position:Mt.Bottom})]})}const Xe=e=>x.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...e},x.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"})),Dr=e=>x.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...e},x.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.03755ZM10.2071 8.29289C10.5976 8.68342 10.5976 9.31658 10.2071 9.70711L7.91421 12L10.2071 14.2929C10.5976 14.6834 10.5976 15.3166 10.2071 15.7071C9.81658 16.0976 9.18342 16.0976 8.79289 15.7071L5.79289 12.7071C5.40237 12.3166 5.40237 11.6834 5.79289 11.2929L8.79289 8.29289C9.18342 7.90237 9.81658 7.90237 10.2071 8.29289ZM13.7929 8.29289C14.1834 7.90237 14.8166 7.90237 15.2071 8.29289L18.2071 11.2929C18.5976 11.6834 18.5976 12.3166 18.2071 12.7071L15.2071 15.7071C14.8166 16.0976 14.1834 16.0976 13.7929 15.7071C13.4024 15.3166 13.4024 14.6834 13.7929 14.2929L16.0858 12L13.7929 9.70711C13.4024 9.31658 13.4024 8.68342 13.7929 8.29289Z"})),w1=x.createContext(null);function zr({children:e}){const[t,r]=x.useState(!1);return s.jsx(w1.Provider,{value:{isVisualizationConfirmed:t,setVisualizationConfirmed:r},children:e})}function Hr(){const e=x.useContext(w1);if(!e)throw new Error("useArtifactLoadConfirmationContext must be used within a VisualizationConfirmProvider");return e}function Fr({versionId:e}){return["artifact_versions",e]}async function Gr({versionId:e}){const t=Y(K.artifactVersions.detail(e)),r=await ne(t,{method:"GET",headers:{"Content-Type":"application/json"}});if(r.status===404&&$e(),!r.ok)throw new A({message:`Error while fetching artifact version ${e}`,status:r.status,statusText:r.statusText});return r.json()}function ye(e,t){return q({queryKey:Fr(e),queryFn:()=>Gr(e),...t})}const v1=e=>x.createElement("svg",{viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",...e},x.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"}),x.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"}));function Q({children:e,className:t,...r}){return s.jsx("dt",{...r,className:i1("col-span-1 flex min-w-0 items-center truncate text-theme-text-secondary",t),children:e})}function X({children:e,className:t,...r}){return s.jsx("dd",{...r,className:i1("col-span-2 flex h-6 w-full min-w-0 items-center truncate text-neutral-700",t),children:e})}function b({label:e,value:t}){return s.jsxs(s.Fragment,{children:[s.jsx(Q,{children:e}),s.jsx(X,{children:t})]})}function Br({componentId:e}){return["components",e]}async function Zr({componentId:e}){const t=Y(K.components.detail(e)),r=await ne(t,{method:"GET",headers:{"Content-Type":"application/json"}});if(r.status===404&&$e(),!r.ok)throw new A({message:`Error while fetching component ${e}`,status:r.status,statusText:r.statusText});return r.json()}function qr(e,t){return q({queryKey:Br(e),queryFn:()=>Zr(e),...t})}function Yr({stepId:e}){return["steps",e]}async function Kr({stepId:e}){const t=Y(K.steps.detail(e)),r=await ne(t,{method:"GET",headers:{"Content-Type":"application/json"}});if(r.status===404&&$e(),!r.ok)throw new A({message:`Error while fetching step ${e}`,status:r.status,statusText:r.statusText});return r.json()}function Ae(e,t){return q({queryKey:Yr(e),queryFn:()=>Kr(e),...t})}function _({title:e,children:t,initialOpen:r=!1,className:n,intent:a="primary"}){const[i,o]=x.useState(r);return s.jsxs(de,{className:n,open:i,onOpenChange:o,children:[s.jsx(re,{intent:a,children:s.jsxs(ce,{className:"flex w-full items-center gap-[10px]",children:[s.jsx(he,{className:` ${i?"":"-rotate-90"} h-5 w-5 rounded-md fill-neutral-500 transition-transform duration-200 hover:bg-neutral-200`}),e]})}),s.jsx(ue,{className:"space-y-3 border-t border-theme-border-moderate bg-theme-surface-primary px-5 py-3",children:t})]})}function Wr({artifactVersionId:e}){var d,c,u,h,m;const{data:t,isPending:r,isError:n,error:a}=ye({versionId:e}),i=(d=t==null?void 0:t.metadata)==null?void 0:d.producer_step_run_id,{data:o,isSuccess:l}=Ae({stepId:i},{enabled:!!i});return r?s.jsx(g,{className:"h-[500px] w-full"}):n?s.jsx(se,{err:a}):s.jsx(_,{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:[((c=t.metadata)==null?void 0:c.producer_step_run_id)&&s.jsx(b,{label:"Producer Step",value:s.jsx(s.Fragment,{children:l?s.jsxs(S,{color:"grey",className:"inline-flex items-center gap-0.5",rounded:!1,emphasis:"subtle",children:[s.jsx(v1,{className:"mr-1 h-4 w-4"}),o==null?void 0:o.name]}):s.jsx(g,{className:"h-6 w-12"})})}),s.jsx(b,{label:"Type",value:(u=t.body)==null?void 0:u.type}),s.jsx(b,{label:"Created by",value:s.jsx("div",{className:"inline-flex items-center gap-1",children:s.jsx(Lr,{username:((m=(h=t.body)==null?void 0:h.user)==null?void 0:m.name)||""})})}),s.jsx(b,{label:"Updated",value:s.jsx(_e,{dateString:t.body.updated||""})})]})})}function Ur({artifactVersionId:e}){var d,c,u,h,m,p;const{data:t,isPending:r,isError:n,error:a}=ye({versionId:e}),i=(d=t==null?void 0:t.metadata)==null?void 0:d.artifact_store_id,{data:o,isSuccess:l}=qr({componentId:i},{enabled:!!i});return n?s.jsx(se,{err:a}):r?s.jsx(g,{className:"h-[500px] w-full"}):s.jsx(_,{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(Q,{className:"col-span-3",children:"URI"}),s.jsx(X,{className:"col-span-3 h-auto",children:s.jsx(D,{fullWidth:!0,codeClasses:"truncate",code:((c=t.body)==null?void 0:c.uri)||""})}),((u=t.metadata)==null?void 0:u.artifact_store_id)&&s.jsx(b,{label:"Artifact Store",value:s.jsx(s.Fragment,{children:l?s.jsx(S,{emphasis:"subtle",rounded:!1,color:"grey",className:"text-theme-text-primary",children:o==null?void 0:o.name}):s.jsx(g,{className:"h-6 w-12"})})}),s.jsx(b,{label:"Data Type",value:s.jsx(S,{className:"flex w-fit items-center text-theme-text-primary",color:"grey",emphasis:"subtle",rounded:!1,children:s.jsx(cr,{children:s.jsxs(ur,{children:[s.jsx(hr,{children:(h=t.body)==null?void 0:h.data_type.attribute}),s.jsxs(fr,{children:[(m=t.body)==null?void 0:m.data_type.module,".",(p=t.body)==null?void 0:p.data_type.attribute," "]})]})})})})]})})}function Qr({artifactVersionId:e}){function t(r){return`from zenml.client import Client
8
-
9
- artifact = Client().get_artifact_version('${r}')
10
- loaded_artifact = artifact.load()`}return s.jsx(_,{initialOpen:!0,title:"Code",children:s.jsx(D,{fullWidth:!0,highlightCode:!0,wrap:!0,code:t(e)})})}function Xr({artifactVersionId:e}){const{data:t,isError:r,error:n}=ye({versionId:e});return r?s.jsx(se,{err:n}):s.jsxs("div",{className:"space-y-5",children:[t?s.jsx(Wr,{artifactVersionId:t.id}):s.jsx(g,{className:"h-[500px] rounded-md lg:col-span-2"}),t?s.jsx(Ur,{artifactVersionId:t.id}):s.jsx(g,{className:"h-[500px] rounded-md lg:col-span-2"}),t?s.jsx(Qr,{artifactVersionId:t.id}):s.jsx(g,{className:"h-[500px] rounded-md lg:col-span-2"})]})}function It(e){return e.split("_").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(" ")}function y1(e){return typeof e=="boolean"?e.toString():typeof e=="object"&&e!==null?JSON.stringify(e):e}const Jr=(e,t)=>e.length<=t?e:e.slice(0,t-3)+"...";function te({title:e,data:t,intent:r="primary",isInitialOpen:n=!1}){const a={},i={},o={},l=/^<class\s+'.*'>$/;for(const[d,c]of Object.entries(t||{}))typeof c=="object"&&!Array.isArray(c)?a[d]=c:Array.isArray(c)?o[d]=c:i[d]=c;return Object.keys(t||{}).length===0?null:s.jsx(_,{initialOpen:n,intent:r,title:e,children:s.jsxs("div",{className:"flex flex-col gap-3",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(i).map(([d,c])=>s.jsx(b,{label:d,value:s.jsx(s.Fragment,{children:typeof c=="boolean"?s.jsx("div",{className:"py-1",children:JSON.stringify(c)}):l.test(c)?s.jsx(D,{className:"py-1",highlightCode:!0,code:c}):s.jsx("div",{className:"py-1",children:c})})},d))}),Object.entries(o).map(([d,c])=>s.jsx(en,{title:d,value:c},d)),Object.entries(a).map(([d,c])=>s.jsx(te,{intent:"secondary",title:d,data:c},d))]})})}function en({title:e,value:t}){const r=t.filter(a=>!Array.isArray(a)&&typeof a!="object"||a===null),n=t.filter(a=>Array.isArray(a)||typeof a=="object");return s.jsx(s.Fragment,{children:s.jsxs(_,{intent:"secondary",title:e,children:[r.length>0&&s.jsx("dl",{className:"grid grid-cols-1 gap-x-[10px] gap-y-2 truncate md:grid-cols-3 md:gap-y-4",children:Object.entries(r).map(([a,i])=>s.jsx(b,{label:a,value:s.jsx("div",{className:"py-1",children:y1(i)})},a))}),n.length>0&&s.jsx("ul",{className:"space-y-4",children:n.map((a,i)=>s.jsx("li",{children:s.jsx(te,{intent:"secondary",title:i,data:a},i)},i))})]},e)})}function tn(){return s.jsx(_,{initialOpen:!0,title:"Metadata",children:s.jsx(le,{icon:s.jsx(at,{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."})]})})})}function j1({metadata:e}){const t=Object.values(e||{}).filter(r=>r.body.type==="dict");return s.jsx(s.Fragment,{children:t.map(r=>s.jsx(te,{data:r.body.value,title:r.body.key},r.id))})}function E1({metadata:e}){const t=Object.entries(e||{}),r=/^<class\s+'.*'>$/,n=t.filter(([i,o])=>o.body.type!=="dict");if(n.length===0)return null;const a=i=>i<1024?i+" bytes":i<Math.pow(1024,2)?(i/1024).toFixed(2)+" KB":i<Math.pow(1024,3)?(i/Math.pow(1024,2)).toFixed(2)+" MB":(i/Math.pow(1024,3)).toFixed(2)+" GB";return s.jsx("div",{children:s.jsx(_,{initialOpen:!0,title:"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(([i,o])=>s.jsx(b,{label:o.body.key,value:s.jsx(s.Fragment,{children:r.test(o.body.value)?s.jsx(D,{className:"py-1",highlightCode:!0,code:o.body.value}):o.body.type==="StorageSize"?s.jsx("div",{className:"py-1",children:a(o.body.value)}):o.body.type==="Uri"?s.jsx("a",{className:"py-1 underline transition-all duration-200 hover:decoration-transparent",rel:"noopener noreferrer",target:"_blank",href:o.body.value,children:o.body.value}):s.jsx("div",{className:"py-1",children:o.body.value})})},o.id))})})})}function rn({artifactVersionId:e}){var a,i;const{data:t,isError:r,error:n}=ye({versionId:e});return r?s.jsx(se,{err:n}):t!=null&&t.metadata?s.jsxs("div",{className:"flex flex-col gap-5",children:[t?s.jsx(E1,{metadata:(a=t.metadata)==null?void 0:a.run_metadata}):s.jsx(g,{className:"h-9 w-full"}),t?s.jsx(j1,{metadata:(i=t.metadata)==null?void 0:i.run_metadata}):s.jsx(g,{className:"h-9 w-full"})]}):s.jsx(le,{icon:s.jsx(at,{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"})})})}function N1({versionId:e}){return["artifact_versions",e,"visualize"]}async function nn({versionId:e},t){const r=Y(K.artifactVersions.visualize(e)),n=await ne(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 A({message:a[1]||"Failed to fetch artifact visualization",status:n.status,statusText:n.statusText})}if(!n.ok)throw new A({message:`Error while fetching artifact visualization for version ${e}`,status:n.status,statusText:n.statusText});return n.json()}function sn(e,t){return q({queryKey:N1(e),queryFn:({signal:r})=>nn(e,r),...t})}function an({content:e}){const t=x.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 x.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 on({content:e}){return s.jsx("div",{className:"flex items-center justify-center",children:s.jsx("img",{src:Sr("data:image/png;base64,"+e),alt:"Visualization for artifact"})})}const ln=x.lazy(()=>o1(()=>import("./CsvVizualization-B9nkywOx.js"),__vite__mapDeps([0,1,2,3,4,5,6,7]))),dn=x.lazy(()=>o1(()=>import("./MarkdownVisualization-CMOybYJS.js"),__vite__mapDeps([8,1,2])));function cn({artifactVersionId:e,artifactName:t}){const[r,n]=x.useState(!1),{isVisualizationConfirmed:a,setVisualizationConfirmed:i}=Hr(),o=dr(),{data:l,isError:d,error:c,isPending:u}=sn({versionId:e},{retry:!1,enabled:!r});return r?s.jsx(le,{icon:s.jsx(Be,{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(R,{size:"md",onClick:()=>n(!1),children:"Load Visualization"})]})}):d?c.status===501?s.jsxs(le,{icon:s.jsx(Be,{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/stacks-and-components/component-guide/artifact-stores/custom",children:"docs"})]}):s.jsx(le,{icon:s.jsx(Be,{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:c.message})})}):u?s.jsxs("div",{className:"flex flex-col items-center gap-7 py-12",children:[s.jsx(l1,{}),s.jsxs("div",{className:"flex flex-col items-center",children:[s.jsx("p",{className:"mb-5 text-display-xs",children:"Loading Visualization"}),s.jsx(R,{onClick:()=>{o.cancelQueries({queryKey:N1({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(k1,{artifactName:t,...l})}),s.jsxs("div",{children:[l.type==="image"&&s.jsx(on,{content:l.value}),l.type==="html"&&s.jsx(an,{content:l.value}),l.type==="markdown"&&s.jsx(dn,{content:l.value}),l.type==="csv"&&s.jsx(ln,{content:l.value})]})]}):s.jsx(un,{artifactName:t,setConfirmed:i,...l})}function un({artifactName:e,setConfirmed:t,...r}){return s.jsxs("div",{className:"flex flex-col items-center justify-center gap-8",children:[s.jsx(kr,{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(R,{size:"md",onClick:()=>t(!0),children:"Load Preview"}),s.jsx(k1,{...r,buttonIntent:"secondary",artifactName:e})]})]})}function k1({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 o(){const d=atob(t),c=new Array(d.length);for(let h=0;h<d.length;h++)c[h]=d.charCodeAt(h);return new Uint8Array(c)}function l(){try{const d=new Blob([e==="image"?o():t],{type:i[e]}),c=window.URL.createObjectURL(d),u=document.createElement("a");u.href=c,u.download=`${r}.`+a[e],u.click()}catch(d){console.error(d)}}return s.jsx(R,{intent:n,size:"md",className:"mb-4",onClick:l,children:"Download"})}function hn({artifactVersionId:e}){var d,c,u,h,m,p;const[t,r]=x.useState(!1),{data:n,isPending:a,isError:i,error:o}=ye({versionId:e});if(i)return s.jsx(le,{icon:s.jsx(Xe,{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:o.message})})});if(a)return s.jsx(g,{className:"h-[300px] w-full"});const l=(h=(u=(c=(d=n.metadata)==null?void 0:d.run_metadata)==null?void 0:c.storage_size)==null?void 0:u.body)==null?void 0:h.value;return(m=n.metadata)!=null&&m.visualizations&&n.metadata.visualizations.length<1?s.jsx(le,{icon:s.jsx(Xe,{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:l<mr||t?s.jsx(cn,{artifactName:((p=n.body)==null?void 0:p.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(R,{onClick:()=>r(!0),size:"md",children:"Confirm"})]})})}function fn({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(d1,{className:"focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:pointer-events-none",children:[s.jsx(p1,{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(g,{className:"w-9"}),t?s.jsxs("div",{className:"flex items-center gap-1",children:[s.jsx(g1,{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(xe,{color:r?"light-purple":"light-grey",rounded:!1,children:r||"None"})]}):s.jsx(g,{className:"h-6 w-7"})]}),s.jsx("div",{className:"p-5",children:s.jsx(zr,{children:s.jsxs(it,{defaultValue:"overview",children:[s.jsxs(ot,{children:[s.jsxs(B,{className:"flex items-center gap-2 text-text-md",value:"overview",children:[s.jsx(dt,{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(B,{className:"flex items-center gap-2 truncate text-text-md",value:"metadata",children:[s.jsx(Dr,{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(B,{className:"flex items-center gap-2 text-text-md",value:"visualization",children:[s.jsx(Xe,{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(Z,{className:"m-0 mt-5 border-0 bg-transparent p-0",value:"overview",children:s.jsx(Xr,{artifactVersionId:e})}),s.jsx(Z,{className:"m-0 mt-5 border-0 bg-transparent p-0",value:"metadata",children:s.jsx(rn,{artifactVersionId:e})}),s.jsx(Z,{className:"m-0 mt-5 border-0 bg-transparent p-0",value:"visualization",children:s.jsx(hn,{artifactVersionId:e})})]})})})]})}function mn({children:e,artifactVersionId:t,onOpenChange:r}){return s.jsxs(c1,{onOpenChange:r,children:[s.jsx(u1,{asChild:!0,children:e}),s.jsx(h1,{className:"w-[1000px] overflow-y-auto",children:s.jsx(fn,{artifactVersionId:t})})]})}function pn({data:e,selected:t}){const{unselectNodesAndEdges:r}=lt(a=>({unselectNodesAndEdges:a.unselectNodesAndEdges}));function n(a){a||setTimeout(()=>{r()},100)}return s.jsx(b1,{children:s.jsx(mn,{onOpenChange:n,artifactVersionId:e.execution_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(g1,{className:"h-4 w-4 fill-primary-400 group-data-[selected=true]:fill-theme-text-negative",artifactType:e.artifact_type})}),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:e.artifact_data_type})]})]})})})}const $t=(e,t)=>Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2));function xn(e,t,r,n){const a=Math.min($t(e,t)/2,$t(t,r)/2,n),{x:i,y:o}=t;if(e.x===i&&i===r.x||e.y===o&&o===r.y)return`L${i} ${o}`;if(e.y===o){const c=e.x<r.x?-1:1,u=e.y<r.y?1:-1;return`L ${i+a*c},${o}Q ${i},${o} ${i},${o+a*u}`}const l=e.x<r.x?1:-1,d=e.y<r.y?-1:1;return`L ${i},${o+a*d}Q ${i},${o} ${i+a*l},${o}`}function Ze(e){return{x:e[0],y:e[1]}}const Cn=e=>(t,r,n)=>{const a=e.borderRadius;let i=`M ${t.x}, ${t.y} `;const o=n.reduce((l,d,c)=>{let u="";if(c>0&&c<n.length-1)u=xn(Ze(n[c-1]),Ze(d),Ze(n[c+1]),a);else{const[h,m]=d;u=`${c===0?"M":"L"}${h} ${m}`}return l+=u,l},"");return i+=o,i+=`L ${r.x}, ${r.y} `,i};function gn(e){const t=br(),r=wr({nodes:t,sourcePosition:e.sourcePosition,targetPosition:e.targetPosition,sourceX:e.sourceX,sourceY:e.sourceY,targetX:e.targetX,targetY:e.targetY,options:{drawEdge:Cn({borderRadius:10}),generatePath:vr,gridRatio:t.length>20?6:t.length>10?3:2}});return r===null?s.jsx(yr,{...e}):s.jsx(s.Fragment,{children:s.jsx("path",{className:"react-flow__edge-path",d:r.svgPathString,markerEnd:e.markerEnd,markerStart:e.markerStart})})}const bn=e=>x.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},x.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.75871 2L17.2413 2C18.0463 1.99999 18.7106 1.99998 19.2518 2.0442C19.8139 2.09012 20.3306 2.18869 20.816 2.43598C21.5686 2.81947 22.1805 3.43139 22.564 4.18404C22.8113 4.66938 22.9099 5.18608 22.9558 5.74818C23 6.28937 23 6.95372 23 7.75868V16.2413C23 17.0463 23 17.7106 22.9558 18.2518C22.9099 18.8139 22.8113 19.3306 22.564 19.816C22.1805 20.5686 21.5686 21.1805 20.816 21.564C20.3306 21.8113 19.8139 21.9099 19.2518 21.9558C18.7106 22 18.0463 22 17.2413 22H6.75877C5.95377 22 5.28939 22 4.74817 21.9558C4.18608 21.9099 3.66937 21.8113 3.18404 21.564C2.43139 21.1805 1.81947 20.5686 1.43597 19.816C1.18868 19.3306 1.09012 18.8139 1.04419 18.2518C0.999977 17.7106 0.999988 17.0463 1 16.2413L1 9.00066C1 9.00088 1 9.00044 1 9.00066C1 9.00044 1 8.99956 1 8.99934L1 7.7587C0.999988 6.95373 0.999977 6.28937 1.04419 5.74818C1.09012 5.18608 1.18868 4.66937 1.43598 4.18404C1.81947 3.43139 2.43139 2.81947 3.18404 2.43597C3.66938 2.18868 4.18608 2.09012 4.74818 2.04419C5.28937 1.99998 5.95374 1.99999 6.75871 2ZM3 10V16.2C3 17.0566 3.00078 17.6389 3.03755 18.089C3.07337 18.5274 3.1383 18.7516 3.21799 18.908C3.40973 19.2843 3.7157 19.5903 4.09202 19.782C4.24842 19.8617 4.47262 19.9266 4.91104 19.9624C5.36113 19.9992 5.94342 20 6.8 20H17.2C18.0566 20 18.6389 19.9992 19.089 19.9625C19.5274 19.9266 19.7516 19.8617 19.908 19.782C20.2843 19.5903 20.5903 19.2843 20.782 18.908C20.8617 18.7516 20.9266 18.5274 20.9625 18.089C20.9992 17.6389 21 17.0566 21 16.2V10H3ZM21 8H3V7.8C3 6.94342 3.00078 6.36113 3.03755 5.91104C3.07337 5.47262 3.1383 5.24842 3.21799 5.09202C3.40974 4.7157 3.7157 4.40973 4.09202 4.21799C4.24842 4.1383 4.47262 4.07337 4.91104 4.03755C5.36113 4.00078 5.94342 4 6.8 4L17.2 4C18.0566 4 18.6389 4.00078 19.089 4.03755C19.5274 4.07337 19.7516 4.1383 19.908 4.21799C20.2843 4.40974 20.5903 4.7157 20.782 5.09202C20.8617 5.24842 20.9266 5.47262 20.9625 5.91104C20.9992 6.36113 21 6.94342 21 7.8V8ZM10.7071 11.7929C11.0976 12.1834 11.0976 12.8166 10.7071 13.2071L8.91422 15L10.7071 16.7929C11.0976 17.1834 11.0976 17.8166 10.7071 18.2071C10.3166 18.5976 9.68342 18.5976 9.2929 18.2071L6.7929 15.7071C6.40237 15.3166 6.40237 14.6834 6.7929 14.2929L9.2929 11.7929C9.68342 11.4024 10.3166 11.4024 10.7071 11.7929ZM13.2929 11.7929C13.6834 11.4024 14.3166 11.4024 14.7071 11.7929L17.2071 14.2929C17.5976 14.6834 17.5976 15.3166 17.2071 15.7071L14.7071 18.2071C14.3166 18.5976 13.6834 18.5976 13.2929 18.2071C12.9024 17.8166 12.9024 17.1834 13.2929 16.7929L15.0858 15L13.2929 13.2071C12.9024 12.8166 12.9024 12.1834 13.2929 11.7929Z"})),L1=e=>x.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...e},x.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 wn({stepId:e}){var i;const{data:t,isPending:r,isError:n,error:a}=Ae({stepId:e});return n?s.jsx(se,{err:a}):r?s.jsx(g,{className:"h-[300px] w-full"}):s.jsx(_,{initialOpen:!0,title:"Code",children:s.jsx(D,{fullWidth:!0,highlightCode:!0,wrap:!0,code:((i=t==null?void 0:t.metadata)==null?void 0:i.source_code)||""})})}const vn=e=>x.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},x.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 S1({data:e}){const[t,r]=x.useState(!0);return s.jsxs(de,{open:t,onOpenChange:r,children:[s.jsx(re,{intent:"primary",className:"flex items-center gap-[10px]",children:s.jsxs(ce,{className:"flex w-full items-center gap-[10px]",children:[s.jsx(he,{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(ue,{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(b,{label:"Docker Image",value:s.jsxs("div",{className:"flex justify-between",children:[s.jsxs(S,{className:"inline-flex items-center gap-0.5",rounded:!1,emphasis:"subtle",children:[s.jsx(_r,{className:"mr-1 h-4 w-4 fill-theme-text-brand"}),"zenml/my_pipeline:data"]}),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(vn,{className:"mr-1 mt-0.5 h-5 w-5 fill-theme-text-tertiary"})}),s.jsx(ct,{copyText:e.image,isVisible:!0,copyTitle:"Copy url"})]})]})}),s.jsx(b,{label:"Contains Code",value:s.jsx(S,{color:e.contains_code?"green":"grey",className:"inline-flex items-center gap-0.5",rounded:!1,emphasis:"subtle",children:e.contains_code?"Available":"None"})})]}),s.jsx("p",{className:"mb-2 mt-5 text-theme-text-secondary",children:"Dockerfile"}),s.jsx(D,{fullWidth:!0,highlightCode:!0,wrap:!0,code:e.dockerfile}),s.jsx("p",{className:"mb-2 mt-5 text-theme-text-secondary",children:"Requirements"}),s.jsx(D,{fullWidth:!0,highlightCode:!0,wrap:!0,code:e.requirements})]})]})}function yn({buildId:e}){return["pipeline-builds",e]}async function jn({buildId:e},t){const r=Y(K.runs.detail(e)),n=await fetch(r,{method:"GET",credentials:"include",headers:{"Content-Type":"application/json",...t&&{Authorization:`Bearer ${t}`}}});if(!n.ok)throw new A({message:`Error while fetching pipeline build ${e}`,status:n.status,statusText:n.statusText});return n.json()}function O1(e,t){return q({queryKey:yn(e),queryFn:()=>jn(e),...t})}function En({runId:e}){return["runs",e]}async function Nn({runId:e}){const t=Y(K.runs.detail(e)),r=await ne(t,{method:"GET",headers:{"Content-Type":"application/json"}});if(r.status===404&&$e(),!r.ok)throw new A({message:`Error while fetching pipeline run ${e}`,status:r.status,statusText:r.statusText});return r.json()}function fe(e,t){return q({queryKey:En(e),queryFn:()=>Nn(e),...t})}function kn({stepId:e}){var m,p,C,v,T,W,je,Ee,Ne,ke;const{data:t,isPending:r,isError:n,error:a}=Ae({stepId:e}),i=Object.values(((p=(m=t==null?void 0:t.metadata)==null?void 0:m.config)==null?void 0:p.extra)||{}),{runId:o}=ae(),{data:l}=fe({runId:o},{throwOnError:!0,enabled:!!o}),{data:d}=O1({buildId:(v=(C=l==null?void 0:l.body)==null?void 0:C.build)==null?void 0:v.id},{enabled:!!((W=(T=l==null?void 0:l.body)==null?void 0:T.build)!=null&&W.id)}),u=(()=>{var Le;const U=(Le=d==null?void 0:d.metadata)==null?void 0:Le.images;if(!U)return null;if(Object.keys(U).length===1&&Object.keys(U)[0]!=="orchestrator")return Object.keys(U)[0];for(const pe in U)if(pe!=="orchestrator"&&pe.split(".")[1]!=="orchestrator")return pe;return"orchestrator"})(),h=u&&((Ee=(je=d==null?void 0:d.metadata)==null?void 0:je.images)==null?void 0:Ee[u]);return n?s.jsx(se,{err:a}):r?s.jsxs("div",{className:"space-y-5",children:[s.jsx(g,{className:"h-[200]"}),s.jsx(g,{className:"h-[200px]"}),s.jsx(g,{className:"h-[200px]"})]}):s.jsxs("div",{className:"space-y-5",children:[s.jsx(Rt,{data:(ke=(Ne=t.metadata)==null?void 0:Ne.config)==null?void 0:ke.parameters,title:"Parameters"}),h?s.jsx(S1,{data:h}):null,s.jsx(Ln,{id:t.id}),i.length>0?s.jsx(Rt,{data:i,title:"Extra"}):null]})}function Rt({data:e,title:t}){return s.jsx(_,{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(([r,n])=>typeof n!="object"&&s.jsx(b,{label:r,value:s.jsx("div",{children:y1(n)})},r))})})}function Ln({id:e}){function t(r){return`from zenml.client import Client
11
- artifact = Client().get_pipeline_run('${r}')
12
- config = run.config()`}return s.jsxs(_,{initialOpen:!0,title:"Code",children:[s.jsx("h2",{className:"mb-2 text-text-md text-theme-text-secondary",children:"Get config programmatically"}),s.jsx(D,{fullWidth:!0,highlightCode:!0,wrap:!0,code:t(e)})]})}function Sn(e,t){if(!e||!t)return"";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)),o=Math.floor(a%(1e3*60)/1e3);return`${i}min ${o}s`}const On=e=>x.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},x.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 _n({stepId:e,runId:t}){var m,p,C,v,T,W,je,Ee,Ne,ke,U,Le,pe,xt,Ct,gt,bt,wt,vt,yt,jt,Et,Nt,kt,Lt,St,Ot,_t;const{data:r,isError:n,isPending:a,error:i}=Ae({stepId:e}),{data:o}=fe({runId:t});if(n)return s.jsx(se,{err:i});if(a)return s.jsx(g,{className:"h-[300px] w-full"});const l=(p=(m=r.metadata)==null?void 0:m.config)==null?void 0:p.enable_cache,d=(C=o==null?void 0:o.metadata)==null?void 0:C.orchestrator_url,c=(v=o==null?void 0:o.metadata)==null?void 0:v.orchestrator_run_id,u=(W=(T=r.metadata)==null?void 0:T.config)==null?void 0:W.enable_artifact_metadata,h=(Ee=(je=r.metadata)==null?void 0:je.config)==null?void 0:Ee.enable_artifact_visualization;return s.jsx(_,{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(b,{label:"Orchestrator url",value:d||"Not available"}),s.jsx(b,{label:"Orchestrator run Id",value:c||"Not available"}),s.jsx(b,{label:"Id",value:r.id}),s.jsx(b,{label:"Status",value:s.jsxs("div",{className:"flex items-center gap-1",children:[s.jsxs(S,{color:x1((Ne=r.body)==null?void 0:Ne.status),rounded:!0,emphasis:"subtle",className:"flex w-fit items-center gap-1 capitalize",children:[s.jsx(Re,{className:"fill-current",status:(ke=r.body)==null?void 0:ke.status}),(U=r.body)==null?void 0:U.status]}),typeof l=="boolean"&&s.jsx(xe,{size:"sm",color:l?"green":"grey",children:l?"Enable cache":"Disabled cache"})]})}),o?s.jsxs(s.Fragment,{children:[s.jsx(b,{label:"Pipeline",value:s.jsxs(S,{color:"purple",className:"inline-flex items-center gap-0.5",rounded:!1,emphasis:"subtle",children:[s.jsx(f1,{className:"mr-1 h-4 w-4 fill-theme-text-brand"}),(pe=(Le=o.body)==null?void 0:Le.pipeline)==null?void 0:pe.name,s.jsx("div",{className:"rounded-sm bg-primary-50 px-1 py-0.25",children:(gt=(Ct=(xt=o.body)==null?void 0:xt.pipeline)==null?void 0:Ct.body)==null?void 0:gt.version})]})}),((bt=o.body)==null?void 0:bt.code_reference)&&s.jsx(b,{label:"Repository/Commit",value:s.jsxs("div",{className:"group/copybutton mr-1",children:[s.jsxs(S,{color:"grey",className:"inline-flex items-center font-semibold text-neutral-900",rounded:!1,emphasis:"subtle",children:[s.jsx(On,{className:"mr-1 h-5 w-5 fill-theme-text-brand"}),"zenml.io/zenml",s.jsx("div",{className:"ml-1 rounded-sm bg-neutral-200 px-1 py-0.25",children:Jr((yt=(vt=(wt=o==null?void 0:o.body)==null?void 0:wt.code_reference)==null?void 0:vt.body)==null?void 0:yt.commit,10)})]}),s.jsx(ct,{copyText:(Nt=(Et=(jt=o==null?void 0:o.body)==null?void 0:jt.code_reference)==null?void 0:Et.body)==null?void 0:Nt.commit})]})}),s.jsx(b,{label:"Run",value:s.jsxs(S,{color:"grey",className:"inline-flex items-center gap-0.5",rounded:!1,emphasis:"subtle",children:[s.jsx(v1,{className:"mr-1 h-4 w-4"}),o.name]})})]}):s.jsx(g,{className:"h-6 w-full"}),s.jsx(b,{label:"Cache key",value:((kt=r.metadata)==null?void 0:kt.cache_key)||""}),s.jsx(b,{label:"Start Time",value:s.jsx(_e,{dateString:((Lt=r.metadata)==null?void 0:Lt.start_time)||""})}),s.jsx(b,{label:"End Time",value:s.jsx(_e,{dateString:((St=r.metadata)==null?void 0:St.end_time)||""})}),s.jsx(b,{label:"Duration",value:Sn(((Ot=r.metadata)==null?void 0:Ot.start_time)||"",((_t=r.metadata)==null?void 0:_t.end_time)||"")}),s.jsx(b,{label:"Artifact metadata",value:s.jsx(xe,{size:"sm",color:u?"green":"grey",children:u?"Enable":"Disabled"})}),s.jsx(b,{label:"Artifact visualization",value:s.jsx(xe,{size:"sm",color:h?"green":"grey",children:h?"Enable":"Disabled"})})]})})}function Tn({stepId:e}){return["logs",e]}async function Pn({stepId:e}){const t=Y(K.steps.logs(e)),r=await ne(t,{method:"GET",headers:{"Content-Type":"application/json"}});if(!r.ok){const n=await r.json().catch(()=>({}));throw new A({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 Mn(e,t){return q({queryKey:Tn(e),queryFn:()=>Pn(e),...t})}function Vn({stepId:e,stepDetail:t}){var l,d;const r=(d=(l=t==null?void 0:t.metadata)==null?void 0:l.config)==null?void 0:d.enable_step_logs,{data:n,isPending:a,isError:i,error:o}=Mn({stepId:e});return i?s.jsx(se,{err:o}):a?s.jsx(g,{className:"h-[500px] rounded-md lg:col-span-2"}):s.jsx(_,{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(b,{label:"Enable logs",value:"Disabled"})}):s.jsx(D,{fullWidth:!0,wrap:!0,code:n||""})})}function In({stackId:e}){return["stacks",e]}async function $n({stackId:e}){const t=Y(K.stacks.detail(e)),r=await ne(t,{method:"GET",headers:{"Content-Type":"application/json"}});if(r.status===404&&$e(),!r.ok)throw new A({message:`Error while fetching stack ${e}`,status:r.status,statusText:r.statusText});return r.json()}function Rn(e,t){return q({queryKey:In(e),queryFn:()=>$n(e),...t})}function An({component:e,run:t}){var o,l,d,c,u,h;const[r,n]=x.useState(!1),a=`${(o=e.body)==null?void 0:o.type}.${(l=e.body)==null?void 0:l.flavor}`,i=((c=(d=t.metadata)==null?void 0:d.config.settings)==null?void 0:c[a])??"";return!i||Object.keys(i).length===0?s.jsxs(re,{intent:"secondary",className:"grid w-full grid-cols-2 gap-2 rounded-md border border-theme-border-moderate pl-[60px]",children:[s.jsx("span",{children:It((u=e.body)==null?void 0:u.type)}),s.jsx("div",{children:e.name})]}):s.jsxs(de,{className:"w-full",open:r,onOpenChange:n,children:[s.jsx(re,{intent:"secondary",className:"flex items-center justify-between ",children:s.jsxs("div",{className:"flex w-full items-center gap-[10px]",children:[s.jsx(ce,{children:s.jsx(he,{className:` ${r?"":"-rotate-90"} h-5 w-5 rounded-md fill-neutral-500 transition-transform duration-200 hover:bg-neutral-200`})}),s.jsxs("div",{className:"grid w-full grid-cols-2 gap-2",children:[s.jsx("span",{children:It((h=e.body)==null?void 0:h.type)}),s.jsx("div",{children:e.name})]})]})}),s.jsx(ue,{className:"border-t border-theme-border-moderate bg-theme-surface-primary px-5 py-3",children:s.jsx("dl",{className:"grid grid-cols-1 gap-x-[10px] gap-y-2 pl-[36px] md:grid-cols-2 md:gap-y-4",children:Object.entries(i).map(([m,p])=>s.jsx(Dn,{label:m,value:JSON.stringify(p)},m))})})]})}function Dn({label:e,value:t}){return s.jsxs(s.Fragment,{children:[s.jsx(Q,{className:"col-span-1 text-theme-text-secondary",children:e}),s.jsx(X,{className:"col-span-1 w-full truncate text-neutral-700",children:t})]})}function _1(){var l,d,c,u;const[e,t]=x.useState(!0),{runId:r}=ae(),{data:n,isError:a,isPending:i}=fe({runId:r},{throwOnError:!0}),o=(d=(l=n==null?void 0:n.body)==null?void 0:l.stack)==null?void 0:d.id;return i?s.jsx(g,{className:"h-[250px] w-full"}):a?null:s.jsxs(de,{open:e,onOpenChange:t,children:[s.jsxs(re,{className:"flex justify-between",children:[s.jsx(ce,{className:" flex w-full items-center justify-between",children:s.jsxs("div",{className:"flex items-center gap-[10px]",children:[s.jsx(he,{className:` ${e?"":"-rotate-90"} h-5 w-5 rounded-md fill-neutral-500 transition-transform duration-200 hover:bg-neutral-200`}),"Stack"]})}),s.jsx(Tr,{to:pr.stacks.overview,children:s.jsxs(S,{rounded:!1,className:"inline-flex items-center gap-0.5",color:"turquoise",emphasis:"subtle",children:[s.jsx(xr,{className:"h-4 w-4 fill-current"}),s.jsx("span",{children:(u=(c=n==null?void 0:n.body)==null?void 0:c.stack)==null?void 0:u.name})]})})]}),s.jsx(ue,{className:"border-t border-theme-border-moderate bg-theme-surface-primary px-5 py-3",children:s.jsx(zn,{stackId:o,run:n})})]})}function zn({stackId:e,run:t}){var i;const{data:r,isError:n,isPending:a}=Rn({stackId:e});return n?null:a?s.jsx("div",{className:"space-y-5",children:Array.from({length:3}).map((o,l)=>s.jsx(g,{className:"h-8 w-full"},l))}):s.jsx("ul",{className:"space-y-5",children:Object.values(((i=r==null?void 0:r.metadata)==null?void 0:i.components)||{}).map(o=>s.jsx("li",{className:"flex w-full items-center justify-between",children:s.jsx(An,{component:o[0],run:t})},o[0].id))})}const Hn=e=>x.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},x.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.2242 3.0552C14.0208 3.00637 13.7931 2.99994 13.0118 2.99994H8.5C8.00379 2.99994 7.85253 3.0021 7.73895 3.01705C6.84148 3.13521 6.13526 3.84142 6.01711 4.73889C6.00216 4.85247 6 5.00373 6 5.49994C6 6.05223 5.55228 6.49994 5 6.49994C4.44772 6.49994 4 6.05223 4 5.49994C4 5.47668 3.99999 5.45376 3.99999 5.43118C3.99988 5.03374 3.9998 4.73929 4.03422 4.47784C4.27053 2.6829 5.68296 1.27047 7.4779 1.03416C7.73935 0.99974 8.0338 0.99982 8.43124 0.999929C8.45382 0.999935 8.47674 0.999941 8.5 0.999941H13.0118C13.0462 0.999941 13.0801 0.999925 13.1137 0.999909C13.7487 0.999607 14.2284 0.999378 14.6911 1.11046C15.0993 1.20845 15.4895 1.37007 15.8474 1.58938C16.2531 1.83801 16.5922 2.17744 17.041 2.62667C17.0647 2.65038 17.0887 2.6744 17.113 2.69872L20.3012 5.88695C20.3255 5.91126 20.3495 5.93525 20.3732 5.95893C20.8225 6.40774 21.1619 6.74686 21.4106 7.15259C21.6299 7.51048 21.7915 7.90065 21.8895 8.3088C22.0006 8.77149 22.0003 9.25128 22 9.88627C22 9.9198 22 9.95375 22 9.98817V17.2413C22 18.0462 22 18.7106 21.9558 19.2518C21.9099 19.8139 21.8113 20.3306 21.564 20.8159C21.1805 21.5686 20.5686 22.1805 19.816 22.564C19.3306 22.8113 18.8139 22.9098 18.2518 22.9557C17.7106 23 17.0463 23 16.2413 22.9999H8.5C8.47673 22.9999 8.45381 22.9999 8.43122 23C8.03379 23.0001 7.73935 23.0001 7.4779 22.9657C5.68296 22.7294 4.27053 21.317 4.03422 19.522C3.9998 19.2606 3.99988 18.9661 3.99999 18.5687C3.99999 18.5461 4 18.5232 4 18.4999C4 17.9477 4.44772 17.4999 5 17.4999C5.55228 17.4999 6 17.9477 6 18.4999C6 18.9961 6.00216 19.1474 6.01711 19.261C6.13526 20.1585 6.84148 20.8647 7.73895 20.9828C7.85253 20.9978 8.00379 20.9999 8.5 20.9999H16.2C17.0566 20.9999 17.6389 20.9992 18.089 20.9624C18.5274 20.9266 18.7516 20.8616 18.908 20.782C19.2843 20.5902 19.5903 20.2842 19.782 19.9079C19.8617 19.7515 19.9266 19.5273 19.9624 19.0889C19.9992 18.6388 20 18.0565 20 17.1999V9.98817C20 9.20679 19.9936 8.9791 19.9447 8.77569C19.8957 8.57162 19.8149 8.37653 19.7053 8.19758C19.596 8.01923 19.4395 7.85366 18.887 7.30116L15.6988 4.11294C15.1463 3.56042 14.9807 3.40396 14.8024 3.29466C14.6234 3.185 14.4283 3.10419 14.2242 3.0552ZM5.70711 8.79283C6.09763 9.18336 6.09763 9.81652 5.70711 10.207L3.91421 11.9999L5.70711 13.7928C6.09763 14.1834 6.09763 14.8165 5.70711 15.207C5.31658 15.5976 4.68342 15.5976 4.29289 15.207L1.79289 12.707C1.40237 12.3165 1.40237 11.6834 1.79289 11.2928L4.29289 8.79283C4.68342 8.40231 5.31658 8.40231 5.70711 8.79283ZM8.29289 8.79283C8.68342 8.40231 9.31658 8.40231 9.70711 8.79283L12.2071 11.2928C12.5976 11.6834 12.5976 12.3165 12.2071 12.707L9.70711 15.207C9.31658 15.5976 8.68342 15.5976 8.29289 15.207C7.90237 14.8165 7.90237 14.1834 8.29289 13.7928L10.0858 11.9999L8.29289 10.207C7.90237 9.81652 7.90237 9.18336 8.29289 8.79283Z"}));function Fn(e){if(!e)return"light-grey";switch(e){case"completed":return"green";default:return"light-grey"}}function Gn({stepId:e}){var i,o,l;const{runId:t}=ae(),{data:r}=Ae({stepId:e}),n=(i=r==null?void 0:r.body)==null?void 0:i.status,a=(l=(o=r==null?void 0:r.metadata)==null?void 0:o.config)==null?void 0:l.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(d1,{className:"focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:pointer-events-none",children:[s.jsx(p1,{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 ${C1(n)}`,children:s.jsx(Re,{status:n,className:"h-4 w-4"})}),s.jsx("h2",{className:"text-display-xs font-semibold",children:r.name}),s.jsx(xe,{size:"sm",color:Fn(n),children:n||"None"}),typeof a=="boolean"&&s.jsx(xe,{size:"sm",color:a?"green":"grey",children:a?"Enable cache":"Disabled cache"})]}):s.jsx(g,{className:"h-6 w-7"})})}),s.jsx("div",{className:"p-5",children:s.jsxs(it,{defaultValue:"overview",children:[s.jsxs(ot,{children:[s.jsxs(B,{className:"flex items-center gap-2 truncate text-text-md",value:"overview",children:[s.jsx(dt,{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(B,{className:"flex items-center gap-2 truncate text-text-md",value:"code",children:[s.jsx(bn,{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(B,{className:"flex items-center gap-2 truncate text-text-md",value:"logs",children:[s.jsx(Hn,{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(B,{className:"flex items-center gap-2 truncate text-text-md",value:"config",children:[s.jsx(L1,{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(Z,{className:"m-0 mt-5 border-0 bg-transparent p-0",value:"overview",children:[s.jsx(_n,{runId:t,stepId:e}),s.jsx("div",{className:"mt-5",children:s.jsx(_1,{})})]}),s.jsx(Z,{className:"m-0 mt-5 border-0 bg-transparent p-0",value:"code",children:s.jsx(wn,{stepId:e})}),s.jsx(Z,{className:"m-0 mt-5 border-0 bg-transparent p-0",value:"logs",children:s.jsx(Vn,{stepId:e,stepDetail:r})}),s.jsx(Z,{className:"m-0 mt-5 border-0 bg-transparent p-0",value:"config",children:s.jsx(kn,{stepId:e})})]})})]})}function Bn({children:e,stepId:t,onOpenChange:r}){return s.jsxs(c1,{onOpenChange:r,children:[s.jsx(u1,{asChild:!0,children:e}),s.jsx(h1,{className:"w-[1000px] overflow-y-auto",children:s.jsx(Gn,{stepId:t})})]})}const Zn=e=>({unselectAll:e.unselectNodesAndEdges});function qn({data:e,selected:t}){const{unselectAll:r}=lt(Zn);function n(a){a||setTimeout(()=>{r()},100)}return s.jsx(b1,{children:s.jsx(Bn,{onOpenChange:n,stepId:e.execution_id,children:s.jsx("button",{"data-selected":!!t,className:"h-[44px] max-w-[300px] overflow-hidden rounded-md border border-theme-border-moderate bg-theme-surface-primary transition-all duration-200 hover:border-neutral-400 hover:shadow-md data-[selected=true]:border-theme-border-bold data-[selected=true]:shadow-md",children:s.jsxs("div",{className:"flex items-center gap-1 py-1 pl-1 pr-2",children:[s.jsx("div",{className:`rounded-sm p-0.5 ${C1(e.status)}`,children:s.jsx(Re,{status:e.status,className:"h-4 w-4"})}),s.jsx("p",{className:"truncate font-semibold",children:e.name})]})})})})}var Yn="\0",ie="\0",At="",E,oe,N,Pe,Ce,ge,L,I,J,$,ee,z,H,be,we,F,P,Me,Je,s1;let Kn=(s1=class{constructor(t){w(this,Me);w(this,E,!0);w(this,oe,!1);w(this,N,!1);w(this,Pe,void 0);w(this,Ce,()=>{});w(this,ge,()=>{});w(this,L,{});w(this,I,{});w(this,J,{});w(this,$,{});w(this,ee,{});w(this,z,{});w(this,H,{});w(this,be,0);w(this,we,0);w(this,F,void 0);w(this,P,void 0);t&&(k(this,E,t.hasOwnProperty("directed")?t.directed:!0),k(this,oe,t.hasOwnProperty("multigraph")?t.multigraph:!1),k(this,N,t.hasOwnProperty("compound")?t.compound:!1)),f(this,N)&&(k(this,F,{}),k(this,P,{}),f(this,P)[ie]={})}isDirected(){return f(this,E)}isMultigraph(){return f(this,oe)}isCompound(){return f(this,N)}setGraph(t){return k(this,Pe,t),this}graph(){return f(this,Pe)}setDefaultNodeLabel(t){return k(this,Ce,t),typeof t!="function"&&k(this,Ce,()=>t),this}nodeCount(){return f(this,be)}nodes(){return Object.keys(f(this,L))}sources(){var t=this;return this.nodes().filter(r=>Object.keys(f(t,I)[r]).length===0)}sinks(){var t=this;return this.nodes().filter(r=>Object.keys(f(t,$)[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 f(this,L).hasOwnProperty(t)?(arguments.length>1&&(f(this,L)[t]=r),this):(f(this,L)[t]=arguments.length>1?r:f(this,Ce).call(this,t),f(this,N)&&(f(this,F)[t]=ie,f(this,P)[t]={},f(this,P)[ie][t]=!0),f(this,I)[t]={},f(this,J)[t]={},f(this,$)[t]={},f(this,ee)[t]={},++Se(this,be)._,this)}node(t){return f(this,L)[t]}hasNode(t){return f(this,L).hasOwnProperty(t)}removeNode(t){var r=this;if(f(this,L).hasOwnProperty(t)){var n=a=>r.removeEdge(f(r,z)[a]);delete f(this,L)[t],f(this,N)&&(V(this,Me,Je).call(this,t),delete f(this,F)[t],this.children(t).forEach(function(a){r.setParent(a)}),delete f(this,P)[t]),Object.keys(f(this,I)[t]).forEach(n),delete f(this,I)[t],delete f(this,J)[t],Object.keys(f(this,$)[t]).forEach(n),delete f(this,$)[t],delete f(this,ee)[t],--Se(this,be)._}return this}setParent(t,r){if(!f(this,N))throw new Error("Cannot set parent in a non-compound graph");if(r===void 0)r=ie;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),V(this,Me,Je).call(this,t),f(this,F)[t]=r,f(this,P)[r][t]=!0,this}parent(t){if(f(this,N)){var r=f(this,F)[t];if(r!==ie)return r}}children(t=ie){if(f(this,N)){var r=f(this,P)[t];if(r)return Object.keys(r)}else{if(t===ie)return this.nodes();if(this.hasNode(t))return[]}}predecessors(t){var r=f(this,J)[t];if(r)return Object.keys(r)}successors(t){var r=f(this,ee)[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:f(this,E),multigraph:f(this,oe),compound:f(this,N)});r.setGraph(this.graph());var n=this;Object.entries(f(this,L)).forEach(function([o,l]){t(o)&&r.setNode(o,l)}),Object.values(f(this,z)).forEach(function(o){r.hasNode(o.v)&&r.hasNode(o.w)&&r.setEdge(o,n.edge(o))});var a={};function i(o){var l=n.parent(o);return l===void 0||r.hasNode(l)?(a[o]=l,l):l in a?a[l]:i(l)}return f(this,N)&&r.nodes().forEach(o=>r.setParent(o,i(o))),r}setDefaultEdgeLabel(t){return k(this,ge,t),typeof t!="function"&&k(this,ge,()=>t),this}edgeCount(){return f(this,we)}edges(){return Object.values(f(this,z))}setPath(t,r){var n=this,a=arguments;return t.reduce(function(i,o){return a.length>1?n.setEdge(i,o,r):n.setEdge(i,o),o}),this}setEdge(){var t,r,n,a,i=!1,o=arguments[0];typeof o=="object"&&o!==null&&"v"in o?(t=o.v,r=o.w,n=o.name,arguments.length===2&&(a=arguments[1],i=!0)):(t=o,r=arguments[1],n=arguments[3],arguments.length>2&&(a=arguments[2],i=!0)),t=""+t,r=""+r,n!==void 0&&(n=""+n);var l=Oe(f(this,E),t,r,n);if(f(this,H).hasOwnProperty(l))return i&&(f(this,H)[l]=a),this;if(n!==void 0&&!f(this,oe))throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(r),f(this,H)[l]=i?a:f(this,ge).call(this,t,r,n);var d=Wn(f(this,E),t,r,n);return t=d.v,r=d.w,Object.freeze(d),f(this,z)[l]=d,Dt(f(this,J)[r],t),Dt(f(this,ee)[t],r),f(this,I)[r][l]=d,f(this,$)[t][l]=d,Se(this,we)._++,this}edge(t,r,n){var a=arguments.length===1?qe(f(this,E),arguments[0]):Oe(f(this,E),t,r,n);return f(this,H)[a]}edgeAsObj(){const t=this.edge(...arguments);return typeof t!="object"?{label:t}:t}hasEdge(t,r,n){var a=arguments.length===1?qe(f(this,E),arguments[0]):Oe(f(this,E),t,r,n);return f(this,H).hasOwnProperty(a)}removeEdge(t,r,n){var a=arguments.length===1?qe(f(this,E),arguments[0]):Oe(f(this,E),t,r,n),i=f(this,z)[a];return i&&(t=i.v,r=i.w,delete f(this,H)[a],delete f(this,z)[a],zt(f(this,J)[r],t),zt(f(this,ee)[t],r),delete f(this,I)[r][a],delete f(this,$)[t][a],Se(this,we)._--),this}inEdges(t,r){var n=f(this,I)[t];if(n){var a=Object.values(n);return r?a.filter(i=>i.v===r):a}}outEdges(t,r){var n=f(this,$)[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))}},E=new WeakMap,oe=new WeakMap,N=new WeakMap,Pe=new WeakMap,Ce=new WeakMap,ge=new WeakMap,L=new WeakMap,I=new WeakMap,J=new WeakMap,$=new WeakMap,ee=new WeakMap,z=new WeakMap,H=new WeakMap,be=new WeakMap,we=new WeakMap,F=new WeakMap,P=new WeakMap,Me=new WeakSet,Je=function(t){delete f(this,P)[f(this,F)[t]][t]},s1);function Dt(e,t){e[t]?e[t]++:e[t]=1}function zt(e,t){--e[t]||delete e[t]}function Oe(e,t,r,n){var a=""+t,i=""+r;if(!e&&a>i){var o=a;a=i,i=o}return a+At+i+At+(n===void 0?Yn:n)}function Wn(e,t,r,n){var a=""+t,i=""+r;if(!e&&a>i){var o=a;a=i,i=o}var l={v:a,w:i};return n&&(l.name=n),l}function qe(e,t){return Oe(e,t.v,t.w,t.name)}var ut=Kn,Un="2.2.1",Qn={Graph:ut,version:Un},Xn=ut,Jn={write:es,read:ns};function es(e){var t={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:ts(e),edges:rs(e)};return e.graph()!==void 0&&(t.value=structuredClone(e.graph())),t}function ts(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 rs(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 ns(e){var t=new Xn(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 ss=as;function as(e){var t={},r=[],n;function a(i){t.hasOwnProperty(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}var j,G,Ve,et,Ie,tt,ve,ze,a1;let is=(a1=class{constructor(){w(this,Ve);w(this,Ie);w(this,ve);w(this,j,[]);w(this,G,{})}size(){return f(this,j).length}keys(){return f(this,j).map(function(t){return t.key})}has(t){return f(this,G).hasOwnProperty(t)}priority(t){var r=f(this,G)[t];if(r!==void 0)return f(this,j)[r].priority}min(){if(this.size()===0)throw new Error("Queue underflow");return f(this,j)[0].key}add(t,r){var n=f(this,G);if(t=String(t),!n.hasOwnProperty(t)){var a=f(this,j),i=a.length;return n[t]=i,a.push({key:t,priority:r}),V(this,Ie,tt).call(this,i),!0}return!1}removeMin(){V(this,ve,ze).call(this,0,f(this,j).length-1);var t=f(this,j).pop();return delete f(this,G)[t.key],V(this,Ve,et).call(this,0),t.key}decrease(t,r){var n=f(this,G)[t];if(r>f(this,j)[n].priority)throw new Error("New priority is greater than current priority. Key: "+t+" Old: "+f(this,j)[n].priority+" New: "+r);f(this,j)[n].priority=r,V(this,Ie,tt).call(this,n)}},j=new WeakMap,G=new WeakMap,Ve=new WeakSet,et=function(t){var r=f(this,j),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&&(V(this,ve,ze).call(this,t,i),V(this,Ve,et).call(this,i)))},Ie=new WeakSet,tt=function(t){for(var r=f(this,j),n=r[t].priority,a;t!==0&&(a=t>>1,!(r[a].priority<n));)V(this,ve,ze).call(this,t,a),t=a},ve=new WeakSet,ze=function(t,r){var n=f(this,j),a=f(this,G),i=n[t],o=n[r];n[t]=o,n[r]=i,a[o.key]=t,a[i.key]=r},a1);var T1=is,os=T1,P1=ds,ls=()=>1;function ds(e,t,r,n){return cs(e,String(t),r||ls,n||function(a){return e.outEdges(a)})}function cs(e,t,r,n){var a={},i=new os,o,l,d=function(c){var u=c.v!==o?c.v:c.w,h=a[u],m=r(c),p=l.distance+m;if(m<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+c+" Weight: "+m);p<h.distance&&(h.distance=p,h.predecessor=o,i.decrease(u,p))};for(e.nodes().forEach(function(c){var u=c===t?0:Number.POSITIVE_INFINITY;a[c]={distance:u},i.add(c,u)});i.size()>0&&(o=i.removeMin(),l=a[o],l.distance!==Number.POSITIVE_INFINITY);)n(o).forEach(d);return a}var us=P1,hs=fs;function fs(e,t,r){return e.nodes().reduce(function(n,a){return n[a]=us(e,a,t,r),n},{})}var M1=ms;function ms(e){var t=0,r=[],n={},a=[];function i(o){var l=n[o]={onStack:!0,lowlink:t,index:t++};if(r.push(o),e.successors(o).forEach(function(u){n.hasOwnProperty(u)?n[u].onStack&&(l.lowlink=Math.min(l.lowlink,n[u].index)):(i(u),l.lowlink=Math.min(l.lowlink,n[u].lowlink))}),l.lowlink===l.index){var d=[],c;do c=r.pop(),n[c].onStack=!1,d.push(c);while(o!==c);a.push(d)}}return e.nodes().forEach(function(o){n.hasOwnProperty(o)||i(o)}),a}var ps=M1,xs=Cs;function Cs(e){return ps(e).filter(function(t){return t.length>1||t.length===1&&e.hasEdge(t[0],t[0])})}var gs=ws,bs=()=>1;function ws(e,t,r){return vs(e,t||bs,r||function(n){return e.outEdges(n)})}function vs(e,t,r){var n={},a=e.nodes();return a.forEach(function(i){n[i]={},n[i][i]={distance:0},a.forEach(function(o){i!==o&&(n[i][o]={distance:Number.POSITIVE_INFINITY})}),r(i).forEach(function(o){var l=o.v===i?o.w:o.v,d=t(o);n[i][l]={distance:d,predecessor:i}})}),a.forEach(function(i){var o=n[i];a.forEach(function(l){var d=n[l];a.forEach(function(c){var u=d[i],h=o[c],m=d[c],p=u.distance+h.distance;p<m.distance&&(m.distance=p,m.predecessor=h.predecessor)})})}),n}function V1(e){var t={},r={},n=[];function a(i){if(r.hasOwnProperty(i))throw new rt;t.hasOwnProperty(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 rt;return n}class rt extends Error{constructor(){super(...arguments)}}var I1=V1;V1.CycleException=rt;var Ht=I1,ys=js;function js(e){try{Ht(e)}catch(t){if(t instanceof Ht.CycleException)return!1;throw t}return!0}var $1=Es;function Es(e,t,r){Array.isArray(t)||(t=[t]);var n=e.isDirected()?l=>e.successors(l):l=>e.neighbors(l),a=r==="post"?Ns:ks,i=[],o={};return t.forEach(l=>{if(!e.hasNode(l))throw new Error("Graph does not have node: "+l);a(l,n,o,i)}),i}function Ns(e,t,r,n){for(var a=[[e,!1]];a.length>0;){var i=a.pop();i[1]?n.push(i[0]):r.hasOwnProperty(i[0])||(r[i[0]]=!0,a.push([i[0],!0]),R1(t(i[0]),o=>a.push([o,!1])))}}function ks(e,t,r,n){for(var a=[e];a.length>0;){var i=a.pop();r.hasOwnProperty(i)||(r[i]=!0,n.push(i),R1(t(i),o=>a.push(o)))}}function R1(e,t){for(var r=e.length;r--;)t(e[r],r,e);return e}var Ls=$1,Ss=Os;function Os(e,t){return Ls(e,t,"post")}var _s=$1,Ts=Ps;function Ps(e,t){return _s(e,t,"pre")}var Ms=ut,Vs=T1,Is=$s;function $s(e,t){var r=new Ms,n={},a=new Vs,i;function o(d){var c=d.v===i?d.w:d.v,u=a.priority(c);if(u!==void 0){var h=t(d);h<u&&(n[c]=i,a.decrease(c,h))}}if(e.nodeCount()===0)return r;e.nodes().forEach(function(d){a.add(d,Number.POSITIVE_INFINITY),r.setNode(d)}),a.decrease(e.nodes()[0],0);for(var l=!1;a.size()>0;){if(i=a.removeMin(),n.hasOwnProperty(i))r.setEdge(i,n[i]);else{if(l)throw new Error("Input graph is not connected: "+e);l=!0}e.nodeEdges(i).forEach(o)}return r}var Rs={components:ss,dijkstra:P1,dijkstraAll:hs,findCycles:xs,floydWarshall:gs,isAcyclic:ys,postorder:Ss,preorder:Ts,prim:Is,tarjan:M1,topsort:I1},Ft=Qn,M={Graph:Ft.Graph,json:Jn,alg:Rs,version:Ft.version};let As=class{constructor(){let t={};t._next=t._prev=t,this._sentinel=t}dequeue(){let t=this._sentinel,r=t._prev;if(r!==t)return Gt(r),r}enqueue(t){let r=this._sentinel;t._prev&&t._next&&Gt(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,Ds)),n=n._prev;return"["+t.join(", ")+"]"}};function Gt(e){e._prev._next=e._next,e._next._prev=e._prev,delete e._next,delete e._prev}function Ds(e,t){if(e!=="_next"&&e!=="_prev")return t}var zs=As;let Hs=M.Graph,Fs=zs;var Gs=Zs;let Bs=()=>1;function Zs(e,t){if(e.nodeCount()<=1)return[];let r=Ys(e,t||Bs);return qs(r.graph,r.buckets,r.zeroIdx).flatMap(a=>e.outEdges(a.v,a.w))}function qs(e,t,r){let n=[],a=t[t.length-1],i=t[0],o;for(;e.nodeCount();){for(;o=i.dequeue();)Ye(e,t,r,o);for(;o=a.dequeue();)Ye(e,t,r,o);if(e.nodeCount()){for(let l=t.length-2;l>0;--l)if(o=t[l].dequeue(),o){n=n.concat(Ye(e,t,r,o,!0));break}}}return n}function Ye(e,t,r,n,a){let i=a?[]:void 0;return e.inEdges(n.v).forEach(o=>{let l=e.edge(o),d=e.node(o.v);a&&i.push({v:o.v,w:o.w}),d.out-=l,nt(t,r,d)}),e.outEdges(n.v).forEach(o=>{let l=e.edge(o),d=o.w,c=e.node(d);c.in-=l,nt(t,r,c)}),e.removeNode(n.v),i}function Ys(e,t){let r=new Hs,n=0,a=0;e.nodes().forEach(l=>{r.setNode(l,{v:l,in:0,out:0})}),e.edges().forEach(l=>{let d=r.edge(l.v,l.w)||0,c=t(l),u=d+c;r.setEdge(l.v,l.w,u),a=Math.max(a,r.node(l.v).out+=c),n=Math.max(n,r.node(l.w).in+=c)});let i=Ks(a+n+3).map(()=>new Fs),o=n+1;return r.nodes().forEach(l=>{nt(i,o,r.node(l))}),{graph:r,buckets:i,zeroIdx:o}}function nt(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 Ks(e){const t=[];for(let r=0;r<e;r++)t.push(r);return t}let A1=M.Graph;var y={addBorderNode:na,addDummyNode:D1,asNonCompoundGraph:Us,buildLayerMatrix:ea,intersectRect:Js,mapValues:da,maxRank:z1,normalizeRanks:ta,notime:ia,partition:sa,pick:la,predecessorWeights:Xs,range:F1,removeEmptyRanks:ra,simplify:Ws,successorWeights:Qs,time:aa,uniqueId:H1,zipObject:ht};function D1(e,t,r,n){let a;do a=H1(n);while(e.hasNode(a));return r.dummy=t,e.setNode(a,r),a}function Ws(e){let t=new A1().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 Us(e){let t=new A1({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 Qs(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 ht(e.nodes(),t)}function Xs(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 ht(e.nodes(),t)}function Js(e,t){let r=e.x,n=e.y,a=t.x-r,i=t.y-n,o=e.width/2,l=e.height/2;if(!a&&!i)throw new Error("Not possible to find intersection inside of the rectangle");let d,c;return Math.abs(i)*o>Math.abs(a)*l?(i<0&&(l=-l),d=l*a/i,c=l):(a<0&&(o=-o),d=o,c=o*i/a),{x:r+d,y:n+c}}function ea(e){let t=F1(z1(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 ta(e){let t=Math.min(...e.nodes().map(r=>{let n=e.node(r).rank;return n===void 0?Number.MAX_VALUE:n}));e.nodes().forEach(r=>{let n=e.node(r);n.hasOwnProperty("rank")&&(n.rank-=t)})}function ra(e){let t=Math.min(...e.nodes().map(i=>e.node(i).rank)),r=[];e.nodes().forEach(i=>{let o=e.node(i).rank-t;r[o]||(r[o]=[]),r[o].push(i)});let n=0,a=e.graph().nodeRankFactor;Array.from(r).forEach((i,o)=>{i===void 0&&o%a!==0?--n:i!==void 0&&n&&i.forEach(l=>e.node(l).rank+=n)})}function na(e,t,r,n){let a={width:0,height:0};return arguments.length>=4&&(a.rank=r,a.order=n),D1(e,"border",a,t)}function z1(e){return Math.max(...e.nodes().map(t=>{let r=e.node(t).rank;return r===void 0?Number.MIN_VALUE:r}))}function sa(e,t){let r={lhs:[],rhs:[]};return e.forEach(n=>{t(n)?r.lhs.push(n):r.rhs.push(n)}),r}function aa(e,t){let r=Date.now();try{return t()}finally{console.log(e+" time: "+(Date.now()-r)+"ms")}}function ia(e,t){return t()}let oa=0;function H1(e){var t=++oa;return toString(e)+t}function F1(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 la(e,t){const r={};for(const n of t)e[n]!==void 0&&(r[n]=e[n]);return r}function da(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 ht(e,t){return e.reduce((r,n,a)=>(r[n]=t[a],r),{})}let ca=Gs,ua=y.uniqueId;var ha={run:fa,undo:pa};function fa(e){(e.graph().acyclicer==="greedy"?ca(e,r(e)):ma(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,ua("rev"))});function r(n){return a=>n.edge(a).weight}}function ma(e){let t=[],r={},n={};function a(i){n.hasOwnProperty(i)||(n[i]=!0,r[i]=!0,e.outEdges(i).forEach(o=>{r.hasOwnProperty(o.w)?t.push(o):a(o.w)}),delete r[i])}return e.nodes().forEach(a),t}function pa(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 xa=y;var Ca={run:ga,undo:wa};function ga(e){e.graph().dummyChains=[],e.edges().forEach(t=>ba(e,t))}function ba(e,t){let r=t.v,n=e.node(r).rank,a=t.w,i=e.node(a).rank,o=t.name,l=e.edge(t),d=l.labelRank;if(i===n+1)return;e.removeEdge(t);let c,u,h;for(h=0,++n;n<i;++h,++n)l.points=[],u={width:0,height:0,edgeLabel:l,edgeObj:t,rank:n},c=xa.addDummyNode(e,"edge",u,"_d"),n===d&&(u.width=l.width,u.height=l.height,u.dummy="edge-label",u.labelpos=l.labelpos),e.setEdge(r,c,{weight:l.weight},o),h===0&&e.graph().dummyChains.push(c),r=c;e.setEdge(r,a,{weight:l.weight},o)}function wa(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)})}var Fe={longestPath:va,slack:ya};function va(e){var t={};function r(n){var a=e.node(n);if(t.hasOwnProperty(n))return a.rank;t[n]=!0;var i=Math.min(...e.outEdges(n).map(o=>o==null?Number.POSITIVE_INFINITY:r(o.w)-e.edge(o).minlen));return i===Number.POSITIVE_INFINITY&&(i=0),a.rank=i}e.sources().forEach(r)}function ya(e,t){return e.node(t.w).rank-e.node(t.v).rank-e.edge(t).minlen}var ja=M.Graph,He=Fe.slack,G1=Ea;function Ea(e){var t=new ja({directed:!1}),r=e.nodes()[0],n=e.nodeCount();t.setNode(r,{});for(var a,i;Na(t,e)<n;)a=ka(t,e),i=t.hasNode(a.v)?He(e,a):-He(e,a),La(t,e,i);return t}function Na(e,t){function r(n){t.nodeEdges(n).forEach(a=>{var i=a.v,o=n===i?a.w:i;!e.hasNode(o)&&!He(t,a)&&(e.setNode(o,{}),e.setEdge(n,o,{}),r(o))})}return e.nodes().forEach(r),e.nodeCount()}function ka(e,t){return t.edges().reduce((n,a)=>{let i=Number.POSITIVE_INFINITY;return e.hasNode(a.v)!==e.hasNode(a.w)&&(i=He(t,a)),i<n[0]?[i,a]:n},[Number.POSITIVE_INFINITY,null])[1]}function La(e,t,r){e.nodes().forEach(n=>t.node(n).rank+=r)}var Sa=G1,Bt=Fe.slack,Oa=Fe.longestPath,_a=M.alg.preorder,Ta=M.alg.postorder,Pa=y.simplify,Ma=me;me.initLowLimValues=mt;me.initCutValues=ft;me.calcCutValue=B1;me.leaveEdge=q1;me.enterEdge=Y1;me.exchangeEdges=K1;function me(e){e=Pa(e),Oa(e);var t=Sa(e);mt(t),ft(t,e);for(var r,n;r=q1(t);)n=Y1(t,e,r),K1(t,e,r,n)}function ft(e,t){var r=Ta(e,e.nodes());r=r.slice(0,r.length-1),r.forEach(n=>Va(e,t,n))}function Va(e,t,r){var n=e.node(r),a=n.parent;e.edge(r,a).cutvalue=B1(e,t,r)}function B1(e,t,r){var n=e.node(r),a=n.parent,i=!0,o=t.edge(r,a),l=0;return o||(i=!1,o=t.edge(a,r)),l=o.weight,t.nodeEdges(r).forEach(d=>{var c=d.v===r,u=c?d.w:d.v;if(u!==a){var h=c===i,m=t.edge(d).weight;if(l+=h?m:-m,$a(e,r,u)){var p=e.edge(r,u).cutvalue;l+=h?-p:p}}}),l}function mt(e,t){arguments.length<2&&(t=e.nodes()[0]),Z1(e,{},1,t)}function Z1(e,t,r,n,a){var i=r,o=e.node(n);return t[n]=!0,e.neighbors(n).forEach(l=>{t.hasOwnProperty(l)||(r=Z1(e,t,r,l,n))}),o.low=i,o.lim=r++,a?o.parent=a:delete o.parent,r}function q1(e){return e.edges().find(t=>e.edge(t).cutvalue<0)}function Y1(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),o=e.node(a),l=i,d=!1;i.lim>o.lim&&(l=o,d=!0);var c=t.edges().filter(u=>d===Zt(e,e.node(u.v),l)&&d!==Zt(e,e.node(u.w),l));return c.reduce((u,h)=>Bt(t,h)<Bt(t,u)?h:u)}function K1(e,t,r,n){var a=r.v,i=r.w;e.removeEdge(a,i),e.setEdge(n.v,n.w,{}),mt(e),ft(e,t),Ia(e,t)}function Ia(e,t){var r=e.nodes().find(a=>!t.node(a).parent),n=_a(e,r);n=n.slice(1),n.forEach(a=>{var i=e.node(a).parent,o=t.edge(a,i),l=!1;o||(o=t.edge(i,a),l=!0),t.node(a).rank=t.node(i).rank+(l?o.minlen:-o.minlen)})}function $a(e,t,r){return e.hasEdge(t,r)}function Zt(e,t,r){return r.low<=t.lim&&t.lim<=r.lim}var Ra=Fe,W1=Ra.longestPath,Aa=G1,Da=Ma,za=Ha;function Ha(e){switch(e.graph().ranker){case"network-simplex":qt(e);break;case"tight-tree":Ga(e);break;case"longest-path":Fa(e);break;default:qt(e)}}var Fa=W1;function Ga(e){W1(e),Aa(e)}function qt(e){Da(e)}var Ba=Za;function Za(e){let t=Ya(e);e.graph().dummyChains.forEach(r=>{let n=e.node(r),a=n.edgeObj,i=qa(e,t,a.v,a.w),o=i.path,l=i.lca,d=0,c=o[d],u=!0;for(;r!==a.w;){if(n=e.node(r),u){for(;(c=o[d])!==l&&e.node(c).maxRank<n.rank;)d++;c===l&&(u=!1)}if(!u){for(;d<o.length-1&&e.node(c=o[d+1]).minRank<=n.rank;)d++;c=o[d]}e.setParent(r,c),r=e.successors(r)[0]}})}function qa(e,t,r,n){let a=[],i=[],o=Math.min(t[r].low,t[n].low),l=Math.max(t[r].lim,t[n].lim),d,c;d=r;do d=e.parent(d),a.push(d);while(d&&(t[d].low>o||l>t[d].lim));for(c=d,d=n;(d=e.parent(d))!==c;)i.push(d);return{path:a.concat(i.reverse()),lca:c}}function Ya(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 st=y;var Ka={run:Wa,cleanup:Xa};function Wa(e){let t=st.addDummyNode(e,"root",{},"_root"),r=Ua(e),n=Math.max(...Object.values(r))-1,a=2*n+1;e.graph().nestingRoot=t,e.edges().forEach(o=>e.edge(o).minlen*=a);let i=Qa(e)+1;e.children().forEach(o=>U1(e,t,a,i,n,r,o)),e.graph().nodeRankFactor=a}function U1(e,t,r,n,a,i,o){let l=e.children(o);if(!l.length){o!==t&&e.setEdge(t,o,{weight:0,minlen:r});return}let d=st.addBorderNode(e,"_bt"),c=st.addBorderNode(e,"_bb"),u=e.node(o);e.setParent(d,o),u.borderTop=d,e.setParent(c,o),u.borderBottom=c,l.forEach(h=>{U1(e,t,r,n,a,i,h);let m=e.node(h),p=m.borderTop?m.borderTop:h,C=m.borderBottom?m.borderBottom:h,v=m.borderTop?n:2*n,T=p!==C?1:a-i[o]+1;e.setEdge(d,p,{weight:v,minlen:T,nestingEdge:!0}),e.setEdge(C,c,{weight:v,minlen:T,nestingEdge:!0})}),e.parent(o)||e.setEdge(t,d,{weight:0,minlen:a+i[o]})}function Ua(e){var t={};function r(n,a){var i=e.children(n);i&&i.length&&i.forEach(o=>r(o,a+1)),t[n]=a}return e.children().forEach(n=>r(n,1)),t}function Qa(e){return e.edges().reduce((t,r)=>t+e.edge(r).weight,0)}function Xa(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 Ja=y;var ei=ti;function ti(e){function t(r){let n=e.children(r),a=e.node(r);if(n.length&&n.forEach(t),a.hasOwnProperty("minRank")){a.borderLeft=[],a.borderRight=[];for(let i=a.minRank,o=a.maxRank+1;i<o;++i)Yt(e,"borderLeft","_bl",r,a,i),Yt(e,"borderRight","_br",r,a,i)}}e.children().forEach(t)}function Yt(e,t,r,n,a,i){let o={width:0,height:0,rank:i,borderType:t},l=a[t][i-1],d=Ja.addDummyNode(e,"border",o,r);a[t][i]=d,e.setParent(d,n),l&&e.setEdge(l,d,{weight:1})}var ri={adjust:ni,undo:si};function ni(e){let t=e.graph().rankdir.toLowerCase();(t==="lr"||t==="rl")&&Q1(e)}function si(e){let t=e.graph().rankdir.toLowerCase();(t==="bt"||t==="rl")&&ai(e),(t==="lr"||t==="rl")&&(ii(e),Q1(e))}function Q1(e){e.nodes().forEach(t=>Kt(e.node(t))),e.edges().forEach(t=>Kt(e.edge(t)))}function Kt(e){let t=e.width;e.width=e.height,e.height=t}function ai(e){e.nodes().forEach(t=>Ke(e.node(t))),e.edges().forEach(t=>{let r=e.edge(t);r.points.forEach(Ke),r.hasOwnProperty("y")&&Ke(r)})}function Ke(e){e.y=-e.y}function ii(e){e.nodes().forEach(t=>We(e.node(t))),e.edges().forEach(t=>{let r=e.edge(t);r.points.forEach(We),r.hasOwnProperty("x")&&We(r)})}function We(e){let t=e.x;e.x=e.y,e.y=t}let oi=y;var li=di;function di(e){let t={},r=e.nodes().filter(l=>!e.children(l).length),n=Math.max(...r.map(l=>e.node(l).rank)),a=oi.range(n+1).map(()=>[]);function i(l){if(t[l])return;t[l]=!0;let d=e.node(l);a[d.rank].push(l),e.successors(l).forEach(i)}return r.sort((l,d)=>e.node(l).rank-e.node(d).rank).forEach(i),a}let ci=y.zipObject;var ui=hi;function hi(e,t){let r=0;for(let n=1;n<t.length;++n)r+=fi(e,t[n-1],t[n]);return r}function fi(e,t,r){let n=ci(r,r.map((c,u)=>u)),a=t.flatMap(c=>e.outEdges(c).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 o=2*i-1;i-=1;let l=new Array(o).fill(0),d=0;return a.forEach(c=>{let u=c.pos+i;l[u]+=c.weight;let h=0;for(;u>0;)u%2&&(h+=l[u+1]),u=u-1>>1,l[u]+=c.weight;d+=c.weight*h}),d}var mi=pi;function pi(e,t=[]){return t.map(r=>{let n=e.inEdges(r);if(n.length){let a=n.reduce((i,o)=>{let l=e.edge(o),d=e.node(o.v);return{sum:i.sum+l.weight*d.order,weight:i.weight+l.weight}},{sum:0,weight:0});return{v:r,barycenter:a.sum/a.weight,weight:a.weight}}else return{v:r}})}let xi=y;var Ci=gi;function gi(e,t){let r={};e.forEach((a,i)=>{let o=r[a.v]={indegree:0,in:[],out:[],vs:[a.v],i};a.barycenter!==void 0&&(o.barycenter=a.barycenter,o.weight=a.weight)}),t.edges().forEach(a=>{let i=r[a.v],o=r[a.w];i!==void 0&&o!==void 0&&(o.indegree++,i.out.push(r[a.w]))});let n=Object.values(r).filter(a=>!a.indegree);return bi(n)}function bi(e){let t=[];function r(a){return i=>{i.merged||(i.barycenter===void 0||a.barycenter===void 0||i.barycenter>=a.barycenter)&&wi(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=>xi.pick(a,["vs","i","barycenter","weight"]))}function wi(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 vi=y;var yi=ji;function ji(e,t){let r=vi.partition(e,u=>u.hasOwnProperty("barycenter")),n=r.lhs,a=r.rhs.sort((u,h)=>h.i-u.i),i=[],o=0,l=0,d=0;n.sort(Ei(!!t)),d=Wt(i,a,d),n.forEach(u=>{d+=u.vs.length,i.push(u.vs),o+=u.barycenter*u.weight,l+=u.weight,d=Wt(i,a,d)});let c={vs:i.flat(!0)};return l&&(c.barycenter=o/l,c.weight=l),c}function Wt(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 Ei(e){return(t,r)=>t.barycenter<r.barycenter?-1:t.barycenter>r.barycenter?1:e?r.i-t.i:t.i-r.i}let Ni=mi,ki=Ci,Li=yi;var Si=X1;function X1(e,t,r,n){let a=e.children(t),i=e.node(t),o=i?i.borderLeft:void 0,l=i?i.borderRight:void 0,d={};o&&(a=a.filter(m=>m!==o&&m!==l));let c=Ni(e,a);c.forEach(m=>{if(e.children(m.v).length){let p=X1(e,m.v,r,n);d[m.v]=p,p.hasOwnProperty("barycenter")&&_i(m,p)}});let u=ki(c,r);Oi(u,d);let h=Li(u,n);if(o&&(h.vs=[o,h.vs,l].flat(!0),e.predecessors(o).length)){let m=e.node(e.predecessors(o)[0]),p=e.node(e.predecessors(l)[0]);h.hasOwnProperty("barycenter")||(h.barycenter=0,h.weight=0),h.barycenter=(h.barycenter*h.weight+m.order+p.order)/(h.weight+2),h.weight+=2}return h}function Oi(e,t){e.forEach(r=>{r.vs=r.vs.flatMap(n=>t[n]?t[n].vs:n)})}function _i(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 Ti=M.Graph,Pi=y;var Mi=Vi;function Vi(e,t,r){let n=Ii(e),a=new Ti({compound:!0}).setGraph({root:n}).setDefaultNodeLabel(i=>e.node(i));return e.nodes().forEach(i=>{let o=e.node(i),l=e.parent(i);(o.rank===t||o.minRank<=t&&t<=o.maxRank)&&(a.setNode(i),a.setParent(i,l||n),e[r](i).forEach(d=>{let c=d.v===i?d.w:d.v,u=a.edge(c,i),h=u!==void 0?u.weight:0;a.setEdge(c,i,{weight:e.edge(d).weight+h})}),o.hasOwnProperty("minRank")&&a.setNode(i,{borderLeft:o.borderLeft[t],borderRight:o.borderRight[t]}))}),a}function Ii(e){for(var t;e.hasNode(t=Pi.uniqueId("_root")););return t}var $i=Ri;function Ri(e,t,r){let n={},a;r.forEach(i=>{let o=e.parent(i),l,d;for(;o;){if(l=e.parent(o),l?(d=n[l],n[l]=o):(d=a,a=o),d&&d!==o){t.setEdge(d,o);return}o=l}})}let Ai=li,Di=ui,zi=Si,Hi=Mi,Fi=$i,Gi=M.Graph,De=y;var Bi=J1;function J1(e,t){if(t&&typeof t.customOrder=="function"){t.customOrder(e,J1);return}let r=De.maxRank(e),n=Ut(e,De.range(1,r+1),"inEdges"),a=Ut(e,De.range(r-1,-1,-1),"outEdges"),i=Ai(e);if(Qt(e,i),t&&t.disableOptimalOrderHeuristic)return;let o=Number.POSITIVE_INFINITY,l;for(let d=0,c=0;c<4;++d,++c){Zi(d%2?n:a,d%4>=2),i=De.buildLayerMatrix(e);let u=Di(e,i);u<o&&(c=0,l=Object.assign({},i),o=u)}Qt(e,l)}function Ut(e,t,r){return t.map(function(n){return Hi(e,n,r)})}function Zi(e,t){let r=new Gi;e.forEach(function(n){let a=n.graph().root,i=zi(n,a,r,t);i.vs.forEach((o,l)=>n.node(o).order=l),Fi(n,r,i.vs)})}function Qt(e,t){Object.values(t).forEach(r=>r.forEach((n,a)=>e.node(n).order=a))}let qi=M.Graph,Te=y;var Yi={positionX:Ui,findType1Conflicts:er,findType2Conflicts:tr,addConflict:pt,hasConflict:rr,verticalAlignment:nr,horizontalCompaction:sr,alignCoordinates:ir,findSmallestWidthAlignment:ar,balance:or};function er(e,t){let r={};function n(a,i){let o=0,l=0,d=a.length,c=i[i.length-1];return i.forEach((u,h)=>{let m=Ki(e,u),p=m?e.node(m).order:d;(m||u===c)&&(i.slice(l,h+1).forEach(C=>{e.predecessors(C).forEach(v=>{let T=e.node(v),W=T.order;(W<o||p<W)&&!(T.dummy&&e.node(C).dummy)&&pt(r,v,C)})}),l=h+1,o=p)}),i}return t.length&&t.reduce(n),r}function tr(e,t){let r={};function n(i,o,l,d,c){let u;Te.range(o,l).forEach(h=>{u=i[h],e.node(u).dummy&&e.predecessors(u).forEach(m=>{let p=e.node(m);p.dummy&&(p.order<d||p.order>c)&&pt(r,m,u)})})}function a(i,o){let l=-1,d,c=0;return o.forEach((u,h)=>{if(e.node(u).dummy==="border"){let m=e.predecessors(u);m.length&&(d=e.node(m[0]).order,n(o,c,h,l,d),c=h,l=d)}n(o,c,o.length,d,i.length)}),o}return t.length&&t.reduce(a),r}function Ki(e,t){if(e.node(t).dummy)return e.predecessors(t).find(r=>e.node(r).dummy)}function pt(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 rr(e,t,r){if(t>r){let n=t;t=r,r=n}return!!e[t]&&e[t].hasOwnProperty(r)}function nr(e,t,r,n){let a={},i={},o={};return t.forEach(l=>{l.forEach((d,c)=>{a[d]=d,i[d]=d,o[d]=c})}),t.forEach(l=>{let d=-1;l.forEach(c=>{let u=n(c);if(u.length){u=u.sort((m,p)=>o[m]-o[p]);let h=(u.length-1)/2;for(let m=Math.floor(h),p=Math.ceil(h);m<=p;++m){let C=u[m];i[c]===c&&d<o[C]&&!rr(r,c,C)&&(i[C]=c,i[c]=a[c]=a[C],d=o[C])}}})}),{root:a,align:i}}function sr(e,t,r,n,a){let i={},o=Wi(e,t,r,a),l=a?"borderLeft":"borderRight";function d(h,m){let p=o.nodes(),C=p.pop(),v={};for(;C;)v[C]?h(C):(v[C]=!0,p.push(C),p=p.concat(m(C))),C=p.pop()}function c(h){i[h]=o.inEdges(h).reduce((m,p)=>Math.max(m,i[p.v]+o.edge(p)),0)}function u(h){let m=o.outEdges(h).reduce((C,v)=>Math.min(C,i[v.w]-o.edge(v)),Number.POSITIVE_INFINITY),p=e.node(h);m!==Number.POSITIVE_INFINITY&&p.borderType!==l&&(i[h]=Math.max(i[h],m))}return d(c,o.predecessors.bind(o)),d(u,o.successors.bind(o)),Object.keys(n).forEach(h=>i[h]=i[r[h]]),i}function Wi(e,t,r,n){let a=new qi,i=e.graph(),o=Qi(i.nodesep,i.edgesep,n);return t.forEach(l=>{let d;l.forEach(c=>{let u=r[c];if(a.setNode(u),d){var h=r[d],m=a.edge(h,u);a.setEdge(h,u,Math.max(o(e,c,d),m||0))}d=c})}),a}function ar(e,t){return Object.values(t).reduce((r,n)=>{let a=Number.NEGATIVE_INFINITY,i=Number.POSITIVE_INFINITY;Object.entries(n).forEach(([l,d])=>{let c=Xi(e,l)/2;a=Math.max(d+c,a),i=Math.min(d-c,i)});const o=a-i;return o<r[0]&&(r=[o,n]),r},[Number.POSITIVE_INFINITY,null])[1]}function ir(e,t){let r=Object.values(t),n=Math.min(...r),a=Math.max(...r);["u","d"].forEach(i=>{["l","r"].forEach(o=>{let l=i+o,d=e[l];if(d===t)return;let c=Object.values(d),u=n-Math.min(...c);o!=="l"&&(u=a-Math.max(...c)),u&&(e[l]=Te.mapValues(d,h=>h+u))})})}function or(e,t){return Te.mapValues(e.ul,(r,n)=>{if(t)return e[t.toLowerCase()][n];{let a=Object.values(e).map(i=>i[n]).sort((i,o)=>i-o);return(a[1]+a[2])/2}})}function Ui(e){let t=Te.buildLayerMatrix(e),r=Object.assign(er(e,t),tr(e,t)),n={},a;["u","d"].forEach(o=>{a=o==="u"?t:Object.values(t).reverse(),["l","r"].forEach(l=>{l==="r"&&(a=a.map(h=>Object.values(h).reverse()));let d=(o==="u"?e.predecessors:e.successors).bind(e),c=nr(e,a,r,d),u=sr(e,a,c.root,c.align,l==="r");l==="r"&&(u=Te.mapValues(u,h=>-h)),n[o+l]=u})});let i=ar(e,n);return ir(n,i),or(n,e.graph().align)}function Qi(e,t,r){return(n,a,i)=>{let o=n.node(a),l=n.node(i),d=0,c;if(d+=o.width/2,o.hasOwnProperty("labelpos"))switch(o.labelpos.toLowerCase()){case"l":c=-o.width/2;break;case"r":c=o.width/2;break}if(c&&(d+=r?c:-c),c=0,d+=(o.dummy?t:e)/2,d+=(l.dummy?t:e)/2,d+=l.width/2,l.hasOwnProperty("labelpos"))switch(l.labelpos.toLowerCase()){case"l":c=l.width/2;break;case"r":c=-l.width/2;break}return c&&(d+=r?c:-c),c=0,d}}function Xi(e,t){return e.node(t).width}let lr=y,Ji=Yi.positionX;var e2=t2;function t2(e){e=lr.asNonCompoundGraph(e),r2(e),Object.entries(Ji(e)).forEach(([t,r])=>e.node(t).x=r)}function r2(e){let t=lr.buildLayerMatrix(e),r=e.graph().ranksep,n=0;t.forEach(a=>{const i=a.reduce((o,l)=>{const d=e.node(l).height;return o>d?o:d},0);a.forEach(o=>e.node(o).y=n+i/2),n+=i+r})}let Xt=ha,Jt=Ca,n2=za,s2=y.normalizeRanks,a2=Ba,i2=y.removeEmptyRanks,e1=Ka,o2=ei,t1=ri,l2=Bi,d2=e2,O=y,c2=M.Graph;var u2=h2;function h2(e,t){let r=t&&t.debugTiming?O.time:O.notime;r("layout",()=>{let n=r(" buildLayoutGraph",()=>y2(e));r(" runLayout",()=>f2(n,r)),r(" updateInputGraph",()=>m2(e,n))})}function f2(e,t){t(" makeSpaceForEdgeLabels",()=>j2(e)),t(" removeSelfEdges",()=>P2(e)),t(" acyclic",()=>Xt.run(e)),t(" nestingGraph.run",()=>e1.run(e)),t(" rank",()=>n2(O.asNonCompoundGraph(e))),t(" injectEdgeLabelProxies",()=>E2(e)),t(" removeEmptyRanks",()=>i2(e)),t(" nestingGraph.cleanup",()=>e1.cleanup(e)),t(" normalizeRanks",()=>s2(e)),t(" assignRankMinMax",()=>N2(e)),t(" removeEdgeLabelProxies",()=>k2(e)),t(" normalize.run",()=>Jt.run(e)),t(" parentDummyChains",()=>a2(e)),t(" addBorderSegments",()=>o2(e)),t(" order",()=>l2(e)),t(" insertSelfEdges",()=>M2(e)),t(" adjustCoordinateSystem",()=>t1.adjust(e)),t(" position",()=>d2(e)),t(" positionSelfEdges",()=>V2(e)),t(" removeBorderNodes",()=>T2(e)),t(" normalize.undo",()=>Jt.undo(e)),t(" fixupEdgeLabelCoords",()=>O2(e)),t(" undoCoordinateSystem",()=>t1.undo(e)),t(" translateGraph",()=>L2(e)),t(" assignNodeIntersects",()=>S2(e)),t(" reversePoints",()=>_2(e)),t(" acyclic.undo",()=>Xt.undo(e))}function m2(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,a.hasOwnProperty("x")&&(n.x=a.x,n.y=a.y)}),e.graph().width=t.graph().width,e.graph().height=t.graph().height}let p2=["nodesep","edgesep","ranksep","marginx","marginy"],x2={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},C2=["acyclicer","ranker","rankdir","align"],g2=["width","height"],r1={width:0,height:0},b2=["minlen","weight","width","height","labeloffset"],w2={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},v2=["labelpos"];function y2(e){let t=new c2({multigraph:!0,compound:!0}),r=Qe(e.graph());return t.setGraph(Object.assign({},x2,Ue(r,p2),O.pick(r,C2))),e.nodes().forEach(n=>{let a=Qe(e.node(n));const i=Ue(a,g2);Object.keys(r1).forEach(o=>{i[o]===void 0&&(i[o]=r1[o])}),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({},w2,Ue(a,b2),O.pick(a,v2)))}),t}function j2(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 E2(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};O.addDummyNode(e,"edge-proxy",i,"_ep")}})}function N2(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 k2(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 L2(e){let t=Number.POSITIVE_INFINITY,r=0,n=Number.POSITIVE_INFINITY,a=0,i=e.graph(),o=i.marginx||0,l=i.marginy||0;function d(c){let u=c.x,h=c.y,m=c.width,p=c.height;t=Math.min(t,u-m/2),r=Math.max(r,u+m/2),n=Math.min(n,h-p/2),a=Math.max(a,h+p/2)}e.nodes().forEach(c=>d(e.node(c))),e.edges().forEach(c=>{let u=e.edge(c);u.hasOwnProperty("x")&&d(u)}),t-=o,n-=l,e.nodes().forEach(c=>{let u=e.node(c);u.x-=t,u.y-=n}),e.edges().forEach(c=>{let u=e.edge(c);u.points.forEach(h=>{h.x-=t,h.y-=n}),u.hasOwnProperty("x")&&(u.x-=t),u.hasOwnProperty("y")&&(u.y-=n)}),i.width=r-t+o,i.height=a-n+l}function S2(e){e.edges().forEach(t=>{let r=e.edge(t),n=e.node(t.v),a=e.node(t.w),i,o;r.points?(i=r.points[0],o=r.points[r.points.length-1]):(r.points=[],i=a,o=n),r.points.unshift(O.intersectRect(n,i)),r.points.push(O.intersectRect(a,o))})}function O2(e){e.edges().forEach(t=>{let r=e.edge(t);if(r.hasOwnProperty("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 _2(e){e.edges().forEach(t=>{let r=e.edge(t);r.reversed&&r.points.reverse()})}function T2(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]),o=e.node(r.borderRight[r.borderRight.length-1]);r.width=Math.abs(o.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 P2(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 M2(e){var t=O.buildLayerMatrix(e);t.forEach(r=>{var n=0;r.forEach((a,i)=>{var o=e.node(a);o.order=i+n,(o.selfEdges||[]).forEach(l=>{O.addDummyNode(e,"selfedge",{width:l.label.width,height:l.label.height,rank:o.rank,order:i+ ++n,e:l.e,label:l.label},"_se")}),delete o.selfEdges})})}function V2(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,o=r.x-a,l=n.height/2;e.setEdge(r.e,r.label),e.removeNode(t),r.label.points=[{x:a+2*o/3,y:i-l},{x:a+5*o/6,y:i-l},{x:a+o,y:i},{x:a+5*o/6,y:i+l},{x:a+2*o/3,y:i+l}],r.label.x=r.x,r.label.y=r.y}})}function Ue(e,t){return O.mapValues(O.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 I2=y,$2=M.Graph;var R2={debugOrdering:A2};function A2(e){let t=I2.buildLayerMatrix(e),r=new $2({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((o,l)=>(r.setEdge(o,l,{style:"invis"}),l))}),r}var D2="1.1.1",z2={graphlib:M,layout:u2,debug:R2,util:{time:y.time,notime:y.notime},version:D2};const n1=Cr(z2),H2=300,F2=44,G2=50;function B2(e,t){const r=new n1.graphlib.Graph().setDefaultEdgeLabel(()=>({}));return r.setGraph({rankdir:"TB",ranksep:35,nodesep:5}),!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:H2,height:n.type==="step"?G2:F2})}),n1.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 Z2({runId:e}){return["runs",e,"graph"]}async function q2({runId:e}){const t=Y(K.runs.graph(e)),r=await ne(t,{method:"GET",headers:{"Content-Type":"application/json"}});if(!r.ok)throw new A({message:`Error while fetching pipeline run graph for ${e}`,status:r.status,statusText:r.statusText});return r.json()}function Y2(e,t){return q({queryKey:Z2(e),queryFn:()=>q2(e),...t})}const K2=e=>x.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},x.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"})),W2=e=>x.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...e},x.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"})),U2=e=>x.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...e},x.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"}));function Q2(){const{fitView:e,zoomIn:t,zoomOut:r}=m1();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(R,{onClick:()=>t(),emphasis:"subtle",className:"rounded-sharp border-none p-0.5",intent:"secondary",children:s.jsx(K2,{className:"h-5 w-5 bg-theme-surface-primary fill-theme-text-primary"})})}),s.jsx("div",{children:s.jsx(R,{onClick:()=>r(),emphasis:"subtle",className:"rounded-sharp border-none bg-theme-surface-primary p-0.5",intent:"secondary",children:s.jsx(W2,{className:"h-5 w-5 fill-theme-text-primary"})})})]}),s.jsx(R,{className:"h-6 w-6 bg-theme-surface-primary p-0.5",onClick:()=>e(),emphasis:"subtle",intent:"secondary",children:s.jsx(U2,{className:"h-5 w-5 fill-theme-text-primary"})})]})}const X2={step:qn,artifact:pn},J2={smart:gn};function e0(){const{runId:e}=ae(),{data:t,isPending:r,isError:n}=Y2({runId:e}),{fitView:a}=m1(),{width:i,height:o}=lt(C=>({width:C.width,height:C.height})),[l,d,c]=jr([]),[u,h,m]=Er([]),p=x.useCallback(()=>{const C=B2(t==null?void 0:t.nodes,t==null?void 0:t.edges);d([...C.nodes]),h([...C.edges]),window.requestAnimationFrame(()=>{a()})},[t==null?void 0:t.nodes,t==null?void 0:t.edges]);return x.useEffect(()=>{a()},[i,o]),x.useLayoutEffect(()=>{p()},[t==null?void 0:t.nodes,t==null?void 0:t.edges,p]),n?null:r?s.jsxs("div",{className:"flex h-full flex-col items-center justify-center",children:[s.jsx(l1,{}),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(Nr,{minZoom:-2,connectOnClick:!1,nodesDraggable:!1,nodesConnectable:!1,edgeTypes:J2,nodeTypes:X2,nodes:l,edges:u,edgesFocusable:!1,multiSelectionKeyCode:null,onNodesChange:c,onEdgesChange:m,fitView:!0,children:s.jsx(Q2,{})})}function t0(){var n,a;const{runId:e}=ae(),{data:t,isSuccess:r}=fe({runId:e},{throwOnError:!0});return s.jsx(Ir,{children:s.jsx("div",{className:"flex items-center gap-1",children:r?s.jsxs(s.Fragment,{children:[s.jsx(Vr,{className:`h-5 w-5 shrink-0 ${Or((n=t==null?void 0:t.body)==null?void 0:n.status)}`}),s.jsx("h1",{className:"min-w-0 truncate text-display-xs font-semibold",children:t==null?void 0:t.name}),s.jsx(Re,{className:"h-5 w-5 shrink-0",status:(a=t==null?void 0:t.body)==null?void 0:a.status})]}):s.jsxs(s.Fragment,{children:[s.jsx(g,{className:"h-5 w-5"}),s.jsx(g,{className:"h-6 w-[250px]"}),s.jsx(g,{className:"h-5 w-5"})]})})})}const r0=e=>x.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...e},x.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 n0({runId:e}){const[t,r]=x.useState(!1),n=`from zenml.client import Client
13
- run = Client().get_pipeline_run('${e}')
14
- config = run.config`;return s.jsxs(de,{open:t,onOpenChange:r,children:[s.jsx(re,{className:"flex items-center gap-[10px]",children:s.jsxs(ce,{className:"flex w-full items-center gap-[10px]",children:[s.jsx(he,{className:` ${t?"":"-rotate-90"} h-5 w-5 rounded-md fill-neutral-500 transition-transform duration-200 hover:bg-neutral-200`}),"Code"]})}),s.jsxs(ue,{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(D,{fullWidth:!0,highlightCode:!0,wrap:!0,code:n})]})]})}function s0({run:e}){var n,a;const[t,r]=x.useState(!1);return s.jsxs(de,{open:t,onOpenChange:r,children:[s.jsx(re,{intent:"primary",className:"flex items-center gap-[10px]",children:s.jsxs(ce,{className:"flex w-full items-center gap-[10px]",children:[s.jsx(he,{className:` ${t?"":"-rotate-90"} h-5 w-5 rounded-md fill-neutral-500 transition-transform duration-200 hover:bg-neutral-200`}),"Environment"]})}),s.jsxs(ue,{className:"space-y-3 border-t border-theme-border-moderate bg-theme-surface-primary px-5 py-3",children:[s.jsx(te,{isInitialOpen:!0,intent:"secondary",title:"Client Environment",data:(n=e.metadata)==null?void 0:n.client_environment}),s.jsx(te,{isInitialOpen:!0,intent:"secondary",title:"Orchestrator Environment",data:(a=e.metadata)==null?void 0:a.orchestrator_environment})]})]})}function a0(){var i,o,l,d,c,u,h,m,p,C;const{runId:e}=ae(),{data:t,isError:r,isPending:n}=fe({runId:e},{throwOnError:!0}),{data:a}=O1({buildId:(o=(i=t==null?void 0:t.body)==null?void 0:i.build)==null?void 0:o.id},{enabled:!!((d=(l=t==null?void 0:t.body)==null?void 0:l.build)!=null&&d.id)});return r?null:n?s.jsxs("div",{className:"space-y-5",children:[s.jsx(g,{className:"h-[56px] w-full"}),s.jsx(g,{className:"h-[56px] w-full"}),s.jsx(g,{className:"h-[56px] w-full"}),s.jsx(g,{className:"h-[56px] w-full"})]}):s.jsxs("div",{className:"grid grid-cols-1 gap-5",children:[s.jsx(te,{title:"Parameters",data:(c=t.metadata)==null?void 0:c.config.parameters}),a&&s.jsx(S1,{data:(h=(u=a==null?void 0:a.metadata)==null?void 0:u.images)==null?void 0:h.orchestrator}),s.jsx(n0,{runId:e}),s.jsx(s0,{run:t}),s.jsx(te,{title:"Extra",data:(m=t.metadata)==null?void 0:m.config.extra}),s.jsx(te,{title:"Resources",data:((C=(p=t.metadata)==null?void 0:p.config.settings)==null?void 0:C.resources)||{}})]})}function i0(){var o,l,d,c,u,h,m,p,C,v;const{runId:e}=ae(),[t,r]=x.useState(!0),{data:n,isError:a,isPending:i}=fe({runId:e},{throwOnError:!0});return a?null:i?s.jsx(g,{className:"h-[200px] w-full"}):s.jsxs(de,{open:t,onOpenChange:r,children:[s.jsx(re,{className:"flex items-center gap-[10px]",children:s.jsxs(ce,{className:"flex w-full items-center gap-[10px]",children:[s.jsx(he,{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(ue,{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(Q,{children:"Id"}),s.jsx(X,{children:s.jsxs("div",{className:"group/copybutton flex items-center gap-0.5",children:[n.id,s.jsx(ct,{copyText:n.id})]})}),s.jsx(Q,{children:"Status"}),s.jsx(X,{children:s.jsxs(S,{className:"inline-flex items-center gap-0.5",emphasis:"subtle",color:x1((o=n.body)==null?void 0:o.status),children:[s.jsx(Re,{className:"fill-current",status:(l=n.body)==null?void 0:l.status}),(d=n.body)==null?void 0:d.status]})}),s.jsx(Q,{children:"Pipeline"}),s.jsx(X,{children:s.jsxs(S,{color:"purple",className:"inline-flex items-center gap-0.5",rounded:!1,emphasis:"subtle",children:[s.jsx(f1,{className:"h-4 w-4 fill-theme-text-brand"}),(u=(c=n.body)==null?void 0:c.pipeline)==null?void 0:u.name,s.jsx("div",{className:"rounded-sm bg-primary-50 px-1 py-0.25",children:(p=(m=(h=n.body)==null?void 0:h.pipeline)==null?void 0:m.body)==null?void 0:p.version})]})}),s.jsx(Q,{children:"Start Time"}),s.jsx(X,{children:s.jsx(_e,{dateString:((C=n.metadata)==null?void 0:C.start_time)||""})}),s.jsx(Q,{children:"End Time"}),s.jsx(X,{children:s.jsx(_e,{dateString:((v=n.metadata)==null?void 0:v.end_time)||""})})]})})]})}function o0(){var a,i,o;const{runId:e}=ae(),{data:t,isError:r,isPending:n}=fe({runId:e},{throwOnError:!0});return r?null:n?s.jsx(g,{className:"h-[200px] w-full"}):!((a=t.metadata)!=null&&a.run_metadata)||Object.keys(t.metadata.run_metadata).length===0?s.jsx(tn,{}):s.jsxs("div",{className:"flex flex-col gap-5",children:[s.jsx(E1,{metadata:(i=t.metadata)==null?void 0:i.run_metadata}),s.jsx(j1,{metadata:(o=t.metadata)==null?void 0:o.run_metadata})]})}function l0(){return s.jsxs("div",{className:"grid grid-cols-1 gap-5",children:[s.jsx(i0,{}),s.jsx(_1,{}),s.jsx(o0,{})]})}const d0=Tt.object({tab:Tt.enum(["overview","configuration"]).optional().default("overview").catch("overview")});function c0(){const[e]=Pr(),{tab:t}=d0.parse({tab:e.get("tab")||void 0});return t}function u0({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(R,{className:"flex h-6 w-6 items-center justify-center bg-transparent p-0.5",intent:"secondary",onClick:()=>e(!1),children:s.jsx(r0,{className:"h-5 w-5 fill-theme-text-secondary"})}),s.jsx("span",{className:"text-text-xl",children:"Run Insights"})]})}function h0(){const e=c0(),t=Mr();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(it,{value:e,onValueChange:r,children:[s.jsxs(ot,{children:[s.jsxs(B,{className:"flex items-center gap-2 truncate text-text-md",value:"overview",children:[s.jsx(dt,{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(B,{className:"flex items-center gap-2 truncate text-text-md",value:"configuration",children:[s.jsx(L1,{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.jsx(Z,{className:"m-0 mt-5 border-0 bg-transparent p-0",value:"overview",children:s.jsx(l0,{})}),s.jsx(Z,{className:"m-0 mt-5 border-0 bg-transparent p-0",value:"configuration",children:s.jsx(a0,{})})]})})}const f0=e=>x.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...e},x.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"}));function z0(){const[e,t]=x.useState(!0);return s.jsxs("div",{children:[s.jsx(t0,{}),s.jsxs("div",{className:"flex h-[calc(100vh_-_4rem_-_4rem_-_2px)] w-full",children:[s.jsxs("div",{className:`relative bg-white/40 transition-all duration-500 ${e?"w-1/2":"w-full"}`,children:[s.jsx(e0,{}),s.jsx(m0,{isPanelOpen:e,setIsPanelOpen:t})]}),s.jsxs("div",{"aria-hidden":!e,className:`h-full min-w-0 overflow-x-hidden text-ellipsis whitespace-nowrap bg-theme-surface-secondary transition-all duration-500 ${e?"w-1/2 border-l border-theme-border-moderate":"w-0 overflow-x-hidden border-transparent"}`,children:[s.jsx(u0,{setIsPanelOpen:t}),s.jsx(h0,{})]})]})]})}function m0({isPanelOpen:e,setIsPanelOpen:t}){return s.jsx(R,{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(f0,{className:"h-5 w-5 fill-theme-text-primary"})})}export{z0 as default};
@@ -1 +0,0 @@
1
- import{j as e}from"./@tanstack-GFKzItNf.js";import{F as v,R as k}from"./Cards-BzhQtXRm.js";import{I as l}from"./Infobox-CV3EG_9t.js";import{P as y}from"./PageHeader-Bz7qVuF9.js";import{B as w,C as m,s as p,t as u,v as h,ap as M,ak as S,al as b,am as j,an as H,ao as V,aq as R}from"./index-UnEiujvd.js";import{V as c}from"./VideoModal-qB9JWw-2.js";import{S as g}from"./chevron-down-tsuIW52H.js";import{g as x}from"./Commands-fpiuAaZ1.js";import{H as L}from"./Helpbox-SS5TXXFE.js";import{r as s}from"./@radix-BrEjOMvl.js";import{S as E}from"./database-BiV4iNgr.js";import"./file-text-Bp-4kjON.js";import"./terminal-Cb3ce-nr.js";import"./@react-router-CCpyfPW-.js";import"./@reactflow-BfgHyCG7.js";import"./play-circle-DsngbHkK.js";import"./CodeSnippet-DpWTCS7Y.js";import"./copy-B8yRmO5i.js";import"./help-hEyYkC3q.js";const N="/assets/stacks-video-7gfxpAq4.svg";function Z(){return e.jsx(y,{children:e.jsx("h1",{className:"text-display-xs font-semibold",children:"Stacks"})})}function A(){return e.jsx(l,{children:e.jsxs("div",{className:"flex w-full flex-wrap items-center gap-x-2 gap-y-0.5 text-text-md",children:[e.jsx("p",{className:"font-semibold",children:"We are creating a new Stacks experience. "}),e.jsx("p",{children:"In the meanwhile you can use the CLI to add and admin your stacks."})]})})}function T(){const t="https://zenml.portal.trainn.co/share/pbJuqd7awpp5pjFQLoPmHQ/embed?autoplay=false";return e.jsxs(w,{className:"flex flex-col-reverse items-stretch overflow-hidden lg:flex-row",children:[e.jsxs("div",{className:"w-full p-7 lg:w-2/3",children:[e.jsx("h2",{className:"text-display-xs font-semibold",children:"Learn More about Stacks"}),e.jsx("p",{className:"mt-2 text-text-lg text-theme-text-secondary",children:"Get started with ZenML Stacks and Stack Components in this starter guide video. Set up your stack locally and in the cloud."}),e.jsx(c,{videoLink:t,buttonText:"Watch the Starter Guide (2 min)"})]}),e.jsx("div",{className:"flex w-full items-center justify-center bg-primary-50 lg:w-1/3",children:e.jsx(c,{fallbackImage:e.jsx("img",{src:N,alt:"Purple squares with text indicating a starter guide for stacks",className:"h-full w-full"}),videoLink:t,isButton:!1})})]})}const _=[{command:"zenml stack register a_new_local_stack -o default -a my_artifact_store",description:"Register a stack"},{command:"zenml stack list",description:"List the stacks that you have registered within your current ZenML server"},{command:"zenml stack delete STACK_NAME",description:"Delete a stack that you have previously registered"},{command:"zenml stack set STACK_NAME",description:"Set a different stack"},{command:"zenml stack get",description:"Check which stack is currently set as the default active stack"},{command:"zenml stack update STACK_NAME -o NEW_ORCHESTRATOR_NAME",description:"Update a stack"}];function O(){const[t,r]=s.useState(!0);return e.jsxs(m,{open:t,onOpenChange:r,children:[e.jsx(p,{className:"flex items-center gap-[10px]",children:e.jsxs(u,{className:"flex w-full items-center gap-[10px] text-text-lg font-semibold",children:[e.jsx(g,{className:` ${t?"":"-rotate-90"} h-5 w-5 rounded-md fill-neutral-500 transition-transform duration-200 hover:bg-neutral-200`}),"Getting started with stacks"]})}),e.jsxs(h,{className:"space-y-5 border-t border-theme-border-moderate bg-theme-surface-primary p-5",children:[e.jsxs(l,{intent:"neutral",className:"text-text-md",children:["A stack is the configuration of tools and infrastructure that your pipelines can run on. When you run ZenML code without configuring a stack, the pipeline will run on the so-called default stack. A stack consists of multiple components. All stacks have at minimum an ",e.jsx("strong",{children:"orchestrator"})," and an ",e.jsx("strong",{children:"artifact store"}),"."]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(M,{}),"Administering the stack"]}),e.jsx(z,{})]})]})}function z(){return e.jsxs("section",{className:"space-y-5 pl-8 pr-5",children:[e.jsx(l,{className:"text-text-md",intent:"neutral",children:"To register a new stack, you must already have registered the individual components of the stack using the commands listed here."}),_.map((t,r)=>e.jsx(s.Fragment,{children:x(t)},r)),e.jsx(L,{link:"https://docs.zenml.io/user-guide/production-guide/understand-stacks"})]})}const I=t=>s.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...t},s.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.0331 3.55266C16.2491 2.10798 17.4952 1 19 1C20.6569 1 22 2.34315 22 4C22 5.65685 20.6569 7 19 7C18.0222 7 17.1537 6.53221 16.606 5.80823L14.7071 7.70711C14.5196 7.89464 14.2652 8 14 8H11.3028L8.5547 9.83205C8.39043 9.94156 8.19742 10 8 10H6C5.44772 10 5 9.55228 5 9C5 8.44772 5.44772 8 6 8H7.69722L10.4453 6.16795C10.6096 6.05844 10.8026 6 11 6H13.5858L16.0331 3.55266ZM19 3C18.4477 3 18 3.44771 18 4C18 4.55228 18.4477 5 19 5C19.5523 5 20 4.55228 20 4C20 3.44772 19.5523 3 19 3ZM4.62228 2.69442C6.62277 1.19905 9.25414 1.36395 11.3162 2.05132C11.8402 2.22596 12.1233 2.79228 11.9487 3.31623C11.774 3.84017 11.2077 4.12333 10.6838 3.94868C8.90412 3.35547 7.06274 3.36718 5.81971 4.29634C4.46575 5.30843 3 7.24435 3 12C3 12.9382 3.05705 13.7667 3.15904 14.5H4.99576C5.16125 14.5 5.32416 14.4589 5.46986 14.3805L11.7479 11H16.1707C16.5825 9.83481 17.6938 9 19 9C20.6569 9 22 10.3431 22 12C22 13.6569 20.6569 15 19 15C17.6938 15 16.5825 14.1652 16.1707 13H12.2521L6.41806 16.1414C5.98094 16.3768 5.49223 16.5 4.99576 16.5H3.61096C4.1633 18.166 5.01143 19.0995 5.81971 19.7037C7.06274 20.6328 8.90412 20.6445 10.6838 20.0513C11.2077 19.8767 11.774 20.1598 11.9487 20.6838C12.1233 21.2077 11.8402 21.774 11.3162 21.9487C9.25414 22.636 6.62277 22.8009 4.62228 21.3056C2.65716 19.8367 1 17.241 1 12C1 6.75899 2.65716 4.16335 4.62228 2.69442ZM19 11C18.4477 11 18 11.4477 18 12C18 12.5523 18.4477 13 19 13C19.5523 13 20 12.5523 20 12C20 11.4477 19.5523 11 19 11ZM8.79289 16.2929C8.98043 16.1054 9.23478 16 9.5 16H14C14.2652 16 14.5196 16.1054 14.7071 16.2929L16.606 18.1918C17.1537 17.4678 18.0222 17 19 17C20.6569 17 22 18.3431 22 20C22 21.6569 20.6569 23 19 23C17.4952 23 16.2491 21.892 16.0331 20.4473L13.5858 18H9.91421L9.20711 18.7071C8.81658 19.0976 8.18342 19.0976 7.79289 18.7071C7.40237 18.3166 7.40237 17.6834 7.79289 17.2929L8.79289 16.2929ZM19 19C18.4477 19 18 19.4477 18 20C18 20.5523 18.4477 21 19 21C19.5523 21 20 20.5523 20 20C20 19.4477 19.5523 19 19 19Z"})),B=t=>s.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...t},s.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.09 4.05463C9.96938 4.01302 9.8127 3.99997 9.02229 3.99997H5.2C4.62345 3.99997 4.25117 4.00075 3.96784 4.0239C3.69617 4.04609 3.59546 4.08377 3.54601 4.10896C3.35785 4.20484 3.20487 4.35782 3.109 4.54598C3.0838 4.59542 3.04612 4.69614 3.02393 4.96781C3.00357 5.21695 3.00052 5.53487 3.00007 5.99997H11.382L10.99 5.2161C10.6366 4.50915 10.5548 4.37484 10.4637 4.28555C10.3578 4.18184 10.2301 4.10296 10.09 4.05463ZM13.618 5.99997L12.7789 4.32168C12.7602 4.28429 12.7417 4.24719 12.7234 4.2104C12.4586 3.67916 12.2258 3.21196 11.8631 2.85672C11.5454 2.54557 11.1625 2.30893 10.7421 2.16394C10.2622 1.99839 9.74022 1.99908 9.14666 1.99986C9.10555 1.99992 9.0641 1.99997 9.02229 1.99997L5.16146 1.99997C4.63431 1.99995 4.17955 1.99994 3.80497 2.03054C3.40963 2.06284 3.01641 2.13416 2.63803 2.32695C2.07354 2.61457 1.6146 3.07351 1.32698 3.638C1.13419 4.01638 1.06287 4.4096 1.03057 4.80494C0.999967 5.17952 0.999983 5.63428 1 6.16143L1 16.2413C0.999989 17.0462 0.999978 17.7106 1.0442 18.2518C1.09012 18.8139 1.18868 19.3306 1.43598 19.8159C1.81947 20.5686 2.43139 21.1805 3.18404 21.564C3.66938 21.8113 4.18608 21.9099 4.74818 21.9558C5.28937 22 5.95372 22 6.75868 22H17.2413C18.0463 22 18.7106 22 19.2518 21.9558C19.8139 21.9099 20.3306 21.8113 20.816 21.564C21.5686 21.1805 22.1805 20.5686 22.564 19.8159C22.8113 19.3306 22.9099 18.8139 22.9558 18.2518C23 17.7106 23 17.0463 23 16.2413V11.7586C23 10.9537 23 10.2893 22.9558 9.74815C22.9099 9.18605 22.8113 8.66934 22.564 8.18401C22.1805 7.43136 21.5686 6.81944 20.816 6.43595C20.3306 6.18865 19.8139 6.09009 19.2518 6.04417C18.7106 5.99995 18.0463 5.99996 17.2413 5.99997L13.618 5.99997ZM12.9799 7.99997C12.9938 8.00026 13.0077 8.00026 13.0217 7.99997H17.2C18.0566 7.99997 18.6389 8.00075 19.089 8.03752C19.5274 8.07334 19.7516 8.13827 19.908 8.21796C20.2843 8.40971 20.5903 8.71567 20.782 9.09199C20.8617 9.24839 20.9266 9.47259 20.9625 9.91101C20.9992 10.3611 21 10.9434 21 11.8V16.2C21 17.0566 20.9992 17.6388 20.9625 18.0889C20.9266 18.5273 20.8617 18.7516 20.782 18.908C20.5903 19.2843 20.2843 19.5902 19.908 19.782C19.7516 19.8617 19.5274 19.9266 19.089 19.9624C18.6389 19.9992 18.0566 20 17.2 20H6.8C5.94342 20 5.36113 19.9992 4.91104 19.9624C4.47262 19.9266 4.24842 19.8617 4.09202 19.782C3.7157 19.5902 3.40974 19.2843 3.21799 18.908C3.1383 18.7516 3.07337 18.5273 3.03755 18.0889C3.00078 17.6388 3 17.0566 3 16.2V7.99997H12.9799Z"})),d=t=>s.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...t},s.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.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.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.94153V16.0586C22 16.082 22.0001 16.1061 22.0002 16.1308C22.0011 16.3946 22.0024 16.7264 21.899 17.0391C21.8097 17.3095 21.6637 17.5576 21.4707 17.767C21.2476 18.0092 20.9569 18.1693 20.7258 18.2966C20.7042 18.3085 20.6831 18.3201 20.6627 18.3314L13.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.2742 18.2966C3.04307 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.6907 2.33632 6.44253 2.52927 6.23315C2.75244 5.99097 3.04306 5.8309 3.27419 5.7036C3.29579 5.6917 3.31687 5.68009 3.33733 5.66872L10.7373 1.55761C10.7567 1.54687 10.7765 1.53575 10.7968 1.52436C11.0152 1.40207 11.2898 1.24824 11.5971 1.18505ZM12 3.14907C11.9985 3.1498 11.9969 3.15056 11.9952 3.15136C11.9375 3.1792 11.8602 3.22173 11.7086 3.30592L5.05914 7.00008L12 10.8561L18.9408 7.00006L12.2914 3.30592C12.1398 3.22173 12.0625 3.1792 12.0048 3.15136C12.0031 3.15056 12.0015 3.1498 12 3.14907ZM20 8.69955V16.0586C20 16.2416 19.9996 16.3353 19.9955 16.4031C19.9954 16.4051 19.9953 16.407 19.9951 16.4088C19.9936 16.4098 19.992 16.4108 19.9903 16.4119C19.933 16.4484 19.8513 16.4943 19.6914 16.5831L13 20.3006L13 12.5885L20 8.69955ZM11 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.0097 16.4119C4.067 16.4484 4.14866 16.4943 4.30862 16.5831L11 20.3006L11 12.5885Z"})),$=t=>s.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...t},s.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"})),D=t=>s.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},s.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.56808 1C9.5787 1 9.58933 1.00001 9.59997 1.00001L14.4319 1C14.6843 0.999973 14.93 0.999943 15.1382 1.01695C15.3668 1.03563 15.6365 1.07969 15.908 1.21799C16.2843 1.40974 16.5902 1.7157 16.782 2.09202C16.9203 2.36345 16.9644 2.63318 16.983 2.86178C16.9869 2.90871 16.9898 2.95756 16.9921 3.00797C17.3873 3.02072 17.7257 3.05337 18.0353 3.1363C19.4156 3.50617 20.4938 4.58436 20.8637 5.96473C21.0008 6.47638 21.0005 7.06704 21 7.86243C21 7.90762 21 7.95347 21 8.00001V17.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.8159 22.564C18.3306 22.8113 17.8139 22.9099 17.2518 22.9558C16.7106 23 16.0463 23 15.2413 23H8.75865C7.95369 23 7.28934 23 6.74815 22.9558C6.18605 22.9099 5.66935 22.8113 5.18401 22.564C4.43136 22.1805 3.81944 21.5686 3.43595 20.816C3.18866 20.3306 3.09009 19.8139 3.04417 19.2518C2.99995 18.7106 2.99996 18.0463 2.99997 17.2413L2.99997 8.00001C2.99997 7.95347 2.99995 7.90762 2.99993 7.86242C2.99949 7.06704 2.99917 6.47638 3.13627 5.96473C3.50614 4.58436 4.58433 3.50617 5.9647 3.1363C6.27421 3.05337 6.61264 3.02072 7.00782 3.00796C7.01012 2.95756 7.01308 2.90871 7.01692 2.86178C7.0356 2.63318 7.07966 2.36345 7.21796 2.09202C7.40971 1.7157 7.71567 1.40974 8.09199 1.21799C8.36342 1.07969 8.63315 1.03563 8.86174 1.01695C9.0699 0.999943 9.31569 0.999973 9.56808 1ZM7.00865 5.00956C6.74556 5.01867 6.60245 5.03597 6.48234 5.06815C5.79215 5.25309 5.25306 5.79218 5.06812 6.48237C5.00856 6.70465 4.99997 7.00565 4.99997 8.00001V17.2C4.99997 18.0566 5.00075 18.6389 5.03753 19.089C5.07335 19.5274 5.13827 19.7516 5.21796 19.908C5.40971 20.2843 5.71567 20.5903 6.09199 20.782C6.24839 20.8617 6.4726 20.9266 6.91101 20.9625C7.3611 20.9992 7.94339 21 8.79997 21H15.2C16.0566 21 16.6388 20.9992 17.0889 20.9625C17.5274 20.9266 17.7516 20.8617 17.908 20.782C18.2843 20.5903 18.5902 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.2V8.00001C19 7.00565 18.9914 6.70465 18.9318 6.48237C18.7469 5.79218 18.2078 5.25309 17.5176 5.06815C17.3975 5.03597 17.2544 5.01867 16.9913 5.00956C16.9891 5.05378 16.9864 5.09676 16.983 5.13824C16.9644 5.36683 16.9203 5.63656 16.782 5.90799C16.5902 6.28431 16.2843 6.59027 15.908 6.78202C15.6365 6.92032 15.3668 6.96438 15.1382 6.98306C14.93 7.00007 14.6843 7.00004 14.4319 7.00001L9.59997 7.00001C9.58933 7.00001 9.5787 7.00001 9.56808 7.00001C9.31569 7.00004 9.0699 7.00007 8.86174 6.98306C8.63315 6.96438 8.36342 6.92032 8.09199 6.78202C7.71567 6.59027 7.40971 6.28431 7.21796 5.90799C7.07966 5.63656 7.0356 5.36683 7.01692 5.13824C7.01353 5.09676 7.01082 5.05378 7.00865 5.00956ZM15 3.60001C15 3.30348 14.9992 3.14122 14.9897 3.02464C14.9893 3.02 14.9889 3.0156 14.9885 3.01145C14.9844 3.01107 14.98 3.01069 14.9753 3.01031C14.8588 3.00078 14.6965 3.00001 14.4 3.00001H9.59997C9.30345 3.00001 9.14119 3.00078 9.02461 3.01031C9.01997 3.01069 9.01557 3.01107 9.01142 3.01145C9.01104 3.0156 9.01066 3.02 9.01028 3.02464C9.00075 3.14122 8.99997 3.30348 8.99997 3.60001V4.40001C8.99997 4.69653 9.00075 4.85879 9.01028 4.97537C9.01066 4.98001 9.01104 4.98441 9.01142 4.98856C9.01557 4.98894 9.01997 4.98932 9.02461 4.9897C9.14119 4.99923 9.30345 5.00001 9.59997 5.00001H14.4C14.6965 5.00001 14.8588 4.99923 14.9753 4.9897C14.98 4.98932 14.9844 4.98894 14.9885 4.98856C14.9889 4.98441 14.9893 4.98001 14.9897 4.97537C14.9992 4.85879 15 4.69653 15 4.40001V3.60001Z"})),F=t=>s.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...t},s.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.56811 2C4.57873 2 4.58936 2.00001 4.60001 2.00001H5.40001C5.41065 2.00001 5.42128 2 5.4319 2C5.68429 1.99997 5.93008 1.99994 6.13824 2.01695C6.36683 2.03563 6.63656 2.07969 6.90799 2.21799C7.28431 2.40974 7.59027 2.7157 7.78202 3.09202C7.92032 3.36345 7.96438 3.63318 7.98306 3.86178C7.98669 3.90624 7.98955 3.95241 7.99179 4.00001L16.0082 4.00001C16.0105 3.95241 16.0133 3.90624 16.0169 3.86178C16.0356 3.63318 16.0797 3.36345 16.218 3.09202C16.4097 2.7157 16.7157 2.40974 17.092 2.21799C17.3634 2.07969 17.6332 2.03563 17.8618 2.01695C18.0699 1.99994 18.3157 1.99997 18.5681 2H19.4319C19.6843 1.99997 19.9301 1.99994 20.1382 2.01695C20.3668 2.03563 20.6366 2.07969 20.908 2.21799C21.2843 2.40974 21.5903 2.7157 21.782 3.09202C21.9203 3.36345 21.9644 3.63318 21.9831 3.86178C22.0001 4.06993 22 4.31571 22 4.56809V5.43192C22 5.6843 22.0001 5.93008 21.9831 6.13824C21.9644 6.36683 21.9203 6.63656 21.782 6.90799C21.5903 7.28431 21.2843 7.59027 20.908 7.78202C20.6366 7.92032 20.3668 7.96438 20.1382 7.98306C20.0938 7.98669 20.0476 7.98955 20 7.99179V16.0082C20.0476 16.0105 20.0938 16.0133 20.1382 16.0169C20.3668 16.0356 20.6366 16.0797 20.908 16.218C21.2843 16.4097 21.5903 16.7157 21.782 17.092C21.9203 17.3634 21.9644 17.6332 21.9831 17.8618C22.0001 18.0699 22 18.3157 22 18.5681V19.4319C22 19.6843 22.0001 19.9301 21.9831 20.1382C21.9644 20.3668 21.9203 20.6366 21.782 20.908C21.5903 21.2843 21.2843 21.5903 20.908 21.782C20.6366 21.9203 20.3668 21.9644 20.1382 21.9831C19.9301 22.0001 19.6843 22 19.4319 22H18.5681C18.3157 22 18.0699 22.0001 17.8618 21.9831C17.6332 21.9644 17.3634 21.9203 17.092 21.782C16.7157 21.5903 16.4097 21.2843 16.218 20.908C16.0797 20.6366 16.0356 20.3668 16.0169 20.1382C16.0133 20.0938 16.0105 20.0476 16.0082 20H7.99179C7.98955 20.0476 7.98669 20.0938 7.98306 20.1382C7.96438 20.3668 7.92032 20.6366 7.78202 20.908C7.59027 21.2843 7.28431 21.5903 6.90799 21.782C6.63656 21.9203 6.36683 21.9644 6.13824 21.9831C5.93008 22.0001 5.6843 22 5.43192 22H4.56809C4.31571 22 4.06993 22.0001 3.86178 21.9831C3.63318 21.9644 3.36345 21.9203 3.09202 21.782C2.7157 21.5903 2.40974 21.2843 2.21799 20.908C2.07969 20.6366 2.03563 20.3668 2.01695 20.1382C1.99994 19.9301 1.99997 19.6843 2 19.4319V18.5681C1.99997 18.3157 1.99994 18.0699 2.01695 17.8618C2.03563 17.6332 2.07969 17.3634 2.21799 17.092C2.40974 16.7157 2.7157 16.4097 3.09202 16.218C3.36345 16.0797 3.63318 16.0356 3.86178 16.0169C3.90624 16.0133 3.95241 16.0105 4.00001 16.0082V7.99179C3.95241 7.98955 3.90624 7.98669 3.86178 7.98306C3.63318 7.96438 3.36345 7.92032 3.09202 7.78202C2.7157 7.59027 2.40974 7.28431 2.21799 6.90799C2.07969 6.63656 2.03563 6.36683 2.01695 6.13824C1.99994 5.93008 1.99997 5.68429 2 5.4319C2 5.42128 2.00001 5.41065 2.00001 5.40001V4.60001C2.00001 4.58936 2 4.57873 2 4.56811C1.99997 4.31572 1.99994 4.06993 2.01695 3.86178C2.03563 3.63318 2.07969 3.36345 2.21799 3.09202C2.40974 2.7157 2.7157 2.40974 3.09202 2.21799C3.36345 2.07969 3.63318 2.03563 3.86178 2.01695C4.06993 1.99994 4.31572 1.99997 4.56811 2ZM6.00001 7.99179V16.0082C6.0476 16.0105 6.09377 16.0133 6.13824 16.0169C6.36683 16.0356 6.63656 16.0797 6.90799 16.218C7.28431 16.4097 7.59027 16.7157 7.78202 17.092C7.92032 17.3634 7.96438 17.6332 7.98306 17.8618C7.98669 17.9062 7.98955 17.9524 7.99179 18H16.0082C16.0105 17.9524 16.0133 17.9062 16.0169 17.8618C16.0356 17.6332 16.0797 17.3634 16.218 17.092C16.4097 16.7157 16.7157 16.4097 17.092 16.218C17.3634 16.0797 17.6332 16.0356 17.8618 16.0169C17.9062 16.0133 17.9524 16.0105 18 16.0082V7.99179C17.9524 7.98955 17.9062 7.98669 17.8618 7.98306C17.6332 7.96438 17.3634 7.92032 17.092 7.78202C16.7157 7.59027 16.4097 7.28431 16.218 6.90799C16.0797 6.63656 16.0356 6.36683 16.0169 6.13824C16.0133 6.09377 16.0105 6.0476 16.0082 6.00001L7.99179 6.00001C7.98955 6.0476 7.98669 6.09377 7.98306 6.13824C7.96438 6.36683 7.92032 6.63656 7.78202 6.90799C7.59027 7.28431 7.28431 7.59027 6.90799 7.78202C6.63656 7.92032 6.36683 7.96438 6.13824 7.98306C6.09377 7.98669 6.0476 7.98955 6.00001 7.99179ZM6.00001 4.60001C6.00001 4.30348 5.99923 4.14122 5.9897 4.02464C5.98932 4.02 5.98894 4.0156 5.98856 4.01145C5.98441 4.01107 5.98001 4.01069 5.97537 4.01031C5.85879 4.00078 5.69653 4.00001 5.40001 4.00001H4.60001C4.30348 4.00001 4.14122 4.00078 4.02464 4.01031C4.02 4.01069 4.0156 4.01107 4.01145 4.01145C4.01107 4.0156 4.01069 4.02 4.01031 4.02464C4.00078 4.14122 4.00001 4.30348 4.00001 4.60001V5.40001C4.00001 5.69653 4.00078 5.85879 4.01031 5.97537C4.01069 5.98001 4.01107 5.98441 4.01145 5.98856C4.0156 5.98894 4.02 5.98932 4.02464 5.9897C4.14122 5.99923 4.30348 6.00001 4.60001 6.00001H5.40001C5.69653 6.00001 5.85879 5.99923 5.97537 5.9897C5.98001 5.98932 5.98441 5.98894 5.98856 5.98856C5.98894 5.98441 5.98932 5.98001 5.9897 5.97537C5.99923 5.85879 6.00001 5.69653 6.00001 5.40001V4.60001ZM18 5.40001C18 5.69653 18.0008 5.85879 18.0103 5.97537C18.0107 5.98001 18.0111 5.98441 18.0115 5.98856C18.0156 5.98894 18.02 5.98932 18.0246 5.9897C18.1412 5.99923 18.3035 6.00001 18.6 6.00001H19.4C19.6965 6.00001 19.8588 5.99923 19.9754 5.9897C19.98 5.98932 19.9844 5.98893 19.9886 5.98855C19.9889 5.9844 19.9893 5.98001 19.9897 5.97537C19.9992 5.85879 20 5.69653 20 5.40001V4.60001C20 4.30348 19.9992 4.14122 19.9897 4.02464C19.9893 4.02 19.9889 4.0156 19.9885 4.01145C19.9844 4.01107 19.98 4.01069 19.9754 4.01031C19.8588 4.00078 19.6965 4.00001 19.4 4.00001H18.6C18.3035 4.00001 18.1412 4.00078 18.0246 4.01031C18.02 4.01069 18.0156 4.01107 18.0115 4.01145C18.0111 4.0156 18.0107 4.02 18.0103 4.02464C18.0008 4.14122 18 4.30348 18 4.60001V5.40001ZM18.6 18C18.3035 18 18.1412 18.0008 18.0246 18.0103C18.02 18.0107 18.0156 18.0111 18.0115 18.0115C18.0111 18.0156 18.0107 18.02 18.0103 18.0246C18.0008 18.1412 18 18.3035 18 18.6V19.4C18 19.6965 18.0008 19.8588 18.0103 19.9754C18.0107 19.98 18.0111 19.9844 18.0115 19.9885C18.0156 19.9889 18.02 19.9893 18.0246 19.9897C18.1412 19.9992 18.3035 20 18.6 20H19.4C19.6965 20 19.8588 19.9992 19.9754 19.9897C19.98 19.9893 19.9844 19.9889 19.9886 19.9885C19.9889 19.9844 19.9893 19.98 19.9897 19.9754C19.9992 19.8588 20 19.6965 20 19.4V18.6C20 18.3035 19.9992 18.1412 19.9897 18.0246C19.9893 18.02 19.9889 18.0156 19.9885 18.0115C19.9844 18.0111 19.98 18.0107 19.9754 18.0103C19.8588 18.0008 19.6965 18 19.4 18H18.6ZM6.00001 18.6C6.00001 18.3035 5.99923 18.1412 5.9897 18.0246C5.98932 18.02 5.98894 18.0156 5.98856 18.0115C5.98441 18.0111 5.98001 18.0107 5.97537 18.0103C5.85879 18.0008 5.69653 18 5.40001 18H4.60001C4.30348 18 4.14122 18.0008 4.02464 18.0103C4.02 18.0107 4.0156 18.0111 4.01145 18.0115C4.01107 18.0156 4.01069 18.02 4.01031 18.0246C4.00078 18.1412 4.00001 18.3035 4.00001 18.6V19.4C4.00001 19.6965 4.00078 19.8588 4.01031 19.9754C4.01069 19.98 4.01107 19.9844 4.01145 19.9885C4.0156 19.9889 4.02 19.9893 4.02464 19.9897C4.14122 19.9992 4.30348 20 4.60001 20H5.40001C5.69653 20 5.85879 19.9992 5.97537 19.9897C5.98001 19.9893 5.98441 19.9889 5.98856 19.9885C5.98894 19.9844 5.98932 19.98 5.9897 19.9754C5.99923 19.8588 6.00001 19.6965 6.00001 19.4V18.6Z"})),P=t=>s.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},s.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.75868V13.5343C22 14.2041 22 14.7569 21.9691 15.2095C21.9371 15.6788 21.8686 16.1129 21.6955 16.5307C21.2895 17.5108 20.5108 18.2895 19.5307 18.6955C19.1129 18.8686 18.6788 18.9371 18.2095 18.9691C17.7569 19 17.2041 19 16.5343 19H16.5C15.9634 19 15.8569 19.0063 15.7702 19.0268C15.6192 19.0624 15.4784 19.1328 15.3593 19.2322C15.2909 19.2893 15.2219 19.3707 14.9 19.8L13.4231 21.7693C13.3297 21.8938 13.2242 22.0346 13.1226 22.1476C13.0106 22.2721 12.8244 22.4555 12.5437 22.5647C12.194 22.7007 11.806 22.7007 11.4563 22.5647C11.1756 22.4555 10.9894 22.2721 10.8774 22.1476C10.7758 22.0346 10.6703 21.8938 10.577 21.7693L9.1 19.8C8.77806 19.3708 8.70913 19.2893 8.64075 19.2322C8.52156 19.1328 8.38085 19.0624 8.22975 19.0268C8.14307 19.0063 8.03656 19 7.5 19H7.46573C6.79594 19 6.24307 19 5.79046 18.9691C5.32118 18.9371 4.88708 18.8686 4.46927 18.6955C3.48915 18.2895 2.71046 17.5108 2.30448 16.5307C2.13142 16.1129 2.06288 15.6788 2.03087 15.2095C1.99998 14.7569 1.99999 14.2041 2 13.5343L2 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 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.8V13.5C4 14.2126 4.00054 14.697 4.02623 15.0734C4.0513 15.4409 4.09694 15.6319 4.15224 15.7654C4.35523 16.2554 4.74458 16.6448 5.23463 16.8478C5.36813 16.9031 5.55915 16.9487 5.9266 16.9738C6.30304 16.9995 6.78741 17 7.5 17C7.52818 17 7.55611 17 7.58382 16.9999C7.9894 16.9996 8.34611 16.9992 8.68926 17.0803C9.14254 17.1873 9.56467 17.3983 9.92224 17.6967C10.1929 17.9227 10.4067 18.2082 10.6497 18.5329C10.6663 18.5551 10.6831 18.5775 10.7 18.6L12 20.3333L13.3 18.6C13.3169 18.5775 13.3337 18.5551 13.3503 18.5329C13.5933 18.2082 13.8071 17.9227 14.0778 17.6967C14.4353 17.3983 14.8575 17.1873 15.3107 17.0803C15.6539 16.9992 16.0106 16.9996 16.4162 16.9999C16.4439 17 16.4718 17 16.5 17C17.2126 17 17.697 16.9995 18.0734 16.9738C18.4409 16.9487 18.6319 16.9031 18.7654 16.8478C19.2554 16.6448 19.6448 16.2554 19.8478 15.7654C19.9031 15.6319 19.9487 15.4409 19.9738 15.0734C19.9995 14.697 20 14.2126 20 13.5V7.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 7V10.5C13 11.0523 12.5523 11.5 12 11.5C11.4477 11.5 11 11.0523 11 10.5V7C11 6.44772 11.4477 6 12 6ZM11 14C11 13.4477 11.4477 13 12 13H12.01C12.5623 13 13.01 13.4477 13.01 14C13.01 14.5523 12.5623 15 12.01 15H12C11.4477 15 11 14.5523 11 14Z"})),G=t=>s.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...t},s.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.089 4.03755C17.6389 4.00078 17.0566 4 16.2 4H12C11.4477 4 11 3.55229 11 3C11 2.44772 11.4477 2 12 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.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.2413L2 12C2 11.4477 2.44772 11 3 11C3.55228 11 4 11.4477 4 12V16.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.71569 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.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.55228 12 9 12.4477 9 13V17C9 17.5523 8.55228 18 8 18C7.44772 18 7 17.5523 7 17V13C7 12.4477 7.44772 12 8 12Z"}),s.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.70711 3.29289C9.09763 3.68342 9.09763 4.31658 8.70711 4.70711L4.70711 8.70711C4.31658 9.09763 3.68342 9.09763 3.29289 8.70711L1.29289 6.70711C0.902369 6.31658 0.902369 5.68342 1.29289 5.29289C1.68342 4.90237 2.31658 4.90237 2.70711 5.29289L4 6.58579L7.29289 3.29289C7.68342 2.90237 8.31658 2.90237 8.70711 3.29289Z"})),q=t=>s.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...t},s.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.94153L22 12.5001C22 13.0524 21.5523 13.5001 21 13.5001C20.4477 13.5001 20 13.0524 20 12.5001L20 8.69955L17.0029 10.3646C16.992 10.3709 16.9811 10.377 16.9701 10.3829L13 12.5885L13 20.3006L13.5144 20.0148C13.9971 19.7466 14.6059 19.9205 14.8742 20.4033C15.1424 20.8861 14.9684 21.4949 14.4856 21.7631L13.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 14.0001C19.5523 14.0001 20 14.4478 20 15.0001V17.0001H22C22.5523 17.0001 23 17.4478 23 18.0001C23 18.5524 22.5523 19.0001 22 19.0001H20V21.0001C20 21.5524 19.5523 22.0001 19 22.0001C18.4477 22.0001 18 21.5524 18 21.0001V19.0001H16C15.4477 19.0001 15 18.5524 15 18.0001C15 17.4478 15.4477 17.0001 16 17.0001H18V15.0001C18 14.4478 18.4477 14.0001 19 14.0001Z"})),K=t=>s.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...t},s.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.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.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.43598 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 2ZM10 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 4H10L10 20ZM8 4L8 20H7.8C6.94342 20 6.36113 19.9992 5.91104 19.9624C5.47262 19.9266 5.24842 19.8617 5.09202 19.782C4.7157 19.5903 4.40973 19.2843 4.21799 18.908C4.1383 18.7516 4.07337 18.5274 4.03755 18.089C4.00078 17.6389 4 17.0566 4 16.2V7.8C4 6.94342 4.00078 6.36113 4.03755 5.91104C4.07337 5.47262 4.1383 5.24842 4.21799 5.09202C4.40973 4.7157 4.7157 4.40973 5.09202 4.21799C5.24842 4.1383 5.47262 4.07337 5.91104 4.03755C6.36113 4.00078 6.94342 4 7.8 4H8ZM11.5 7C11.5 6.44772 11.9477 6 12.5 6H17.5C18.0523 6 18.5 6.44772 18.5 7C18.5 7.55229 18.0523 8 17.5 8H12.5C11.9477 8 11.5 7.55229 11.5 7ZM11.5 11C11.5 10.4477 11.9477 10 12.5 10H17.5C18.0523 10 18.5 10.4477 18.5 11C18.5 11.5523 18.0523 12 17.5 12H12.5C11.9477 12 11.5 11.5523 11.5 11ZM11.5 15C11.5 14.4477 11.9477 14 12.5 14H17.5C18.0523 14 18.5 14.4477 18.5 15C18.5 15.5523 18.0523 16 17.5 16H12.5C11.9477 16 11.5 15.5523 11.5 15Z"})),W={commandList:i("orchestrator","orchestrators","orchestrator","ORCHESTRATOR"),helpLink:"https://docs.zenml.io/stacks-and-components/component-guide/orchestrators",description:"An orchestrator is a special kind of backend that manages the running of each step of the pipeline. Orchestrators administer the actual pipeline runs. By default, ZenML initializes your repository with an orchestrator that runs everything on your local machine."},U={commandList:i("artifact store","artifact stores","artifact-store","ARTIFACT_STORE"),helpLink:"https://docs.zenml.io/stacks-and-components/component-guide/artifact-stores",description:"The Artifact Store is a central component in any MLOps stack. As the name suggests, it acts as a data persistence layer where artifacts (e.g. datasets, models) ingested or generated by the machine learning pipelines are stored."},Y={commandList:i("container registry","container registries","container-registry","CONTAINER_REGISTRY"),helpLink:"https://docs.zenml.io/stacks-and-components/component-guide/container-registries",description:"Container registry is used to store container images that are built to run machine learning pipelines in remote environments. Containerization of the pipeline code creates a portable environment that allows code to run in an isolated manner."},Q={commandList:i("step operator","step operators","step-operator","STEP_OPERATOR"),description:"Step operators allow you to run individual steps in a custom environment different from the default one used by your active orchestrator.",helpLink:"https://docs.zenml.io/stacks-and-components/component-guide/step-operators"},J={commandList:i("model deployer","model deployers","model-deployer","MODEL_DEPLOYER"),description:"Model deployers are stack components responsible for online model serving. They are responsible for deploying models to a remote server. Model deployers also act as a registry for models that are served with ZenML.",helpLink:"https://docs.zenml.io/stacks-and-components/component-guide/model-deployers"},X={commandList:i("feature store","feature stores","feature-store","FEATURE_STORE"),description:"ZenML supports connecting to a Redis-backed Feast feature store as a stack component integration.",helpLink:"https://docs.zenml.io/stacks-and-components/component-guide/feature-stores"},e1={commandList:i("experiment tracker","experiment trackers","experiment-tracker","EXPERIMENT_TRACKER"),description:"Experiment trackers let you track your ML experiments by logging the parameters and allowing you to compare between different runs.",helpLink:"https://docs.zenml.io/stacks-and-components/component-guide/experiment-trackers"},t1={commandList:i("alerter","alerters","alerter","ALERTER"),description:"Alerters allow you to send messages to chat services (like Slack, Discord, Mattermost, etc.) from within your pipelines. This is useful to immediately get notified when failures happen, for general monitoring/reporting, and also for building human-in-the-loop ML.",helpLink:"https://docs.zenml.io/stacks-and-components/component-guide/alerters "},s1={commandList:i("annotator","annotators","annotator","ANNOTATOR"),description:"Annotators are a stack component that enables the use of data annotation as part of your ZenML stack and pipelines.",helpLink:"https://docs.zenml.io/stacks-and-components/component-guide/annotators"},a1={commandList:i("data validator","data validators","data-validator","DATA_VALIDATOR"),description:"Data Validators used in ZenML pipelines usually generate data profiles and data quality check reports that are versioned and stored in the Artifact Store and can be retrieved and visualized later.",helpLink:"https://docs.zenml.io/stacks-and-components/component-guide/data-validators"},n1={commandList:i("image builder","image builders","image-builder","IMAGE_BUILDER"),description:"The image builder is an essential part of most remote MLOps stacks. It is used to build container images such that your machine-learning pipelines and steps can be executed in remote environments.",helpLink:"https://docs.zenml.io/stacks-and-components/component-guide/image-builders"},r1={commandList:i("model registry","model registries","model-registry","MODEL_REGISTRY"),description:"Model registries are centralized storage solutions for managing and tracking machine learning models across various stages of development and deployment.",helpLink:"https://docs.zenml.io/stacks-and-components/component-guide/model-registries"};function i(t,r,a,n){return[{description:`Register a new ${t}`,command:`zenml ${a} register ${n}_NAME --flavor=${n}_FLAVOR [--${n}_OPTIONS]`},{description:`List the ${r} that you have registered within your current ZenML server`,command:`zenml ${a} list`},{description:`List the available flavors for your ${r}`,command:`zenml ${a} flavor list`},{description:`To connect your ${t} to a service connector`,command:`zenml ${a} connect ${n}_NAME -c CONNECTOR_NAME`},{description:`For details about a particular ${t}`,command:`zenml ${a} describe [${n}_NAME]`},{description:"In order to get a full list of available functions, use the command:",command:`zenml ${a} --help`}]}const o="fill-theme-text-tertiary h-5 w-5",o1=[{value:"orchestrator",label:"Orchestrator",icon:e.jsx(I,{className:o})},{value:"artifact_store",label:"Artifact Store",icon:e.jsx(B,{className:o})},{value:"container_registry",label:"Container Registry",icon:e.jsx(d,{className:o})},{value:"step_operator",label:"Step Operator",icon:e.jsx(d,{className:o})},{value:"model_deployer",label:"Model Deployer",icon:e.jsx($,{className:o})},{value:"feature_store",label:"Feature Store",icon:e.jsx(E,{className:o})},{value:"experiment_tracker",label:"Experiment Tracker",icon:e.jsx(D,{className:o})},{value:"alerter",label:"Alerter",icon:e.jsx(P,{className:o})},{value:"annotator",label:"Annotator",icon:e.jsx(F,{className:o})},{value:"data_validator",label:"Data Validator",icon:e.jsx(G,{className:o})},{value:"image_builder",label:"Image Builder",icon:e.jsx(q,{className:o})},{value:"model_registry",label:"Model Registry",icon:e.jsx(K,{className:o})}];function C({description:t,commandList:r,helpLink:a}){return e.jsxs("section",{className:"space-y-5",children:[e.jsx(l,{className:"text-text-md",intent:"neutral",children:t}),r.map((n,f)=>e.jsx(e.Fragment,{children:x(n)},f)),e.jsx(L,{link:a})]})}function C1({id:t,selectedType:r,onTypeChange:a}){return e.jsxs(S,{value:r,onValueChange:n=>a(n),children:[e.jsx(b,{id:t,className:"w-[250px] border border-neutral-300 px-2 text-left text-text-md",children:e.jsx(j,{placeholder:"Select ComponentType"})}),e.jsx(H,{className:"",children:o1.map(n=>e.jsx(V,{value:n.value,children:e.jsxs("div",{className:"flex items-center gap-1",children:[n.icon,n.label]})},n.value))})]})}function i1(){const[t,r]=s.useState(!0),[a,n]=s.useState("orchestrator");return e.jsxs(m,{open:t,onOpenChange:r,children:[e.jsx(p,{className:"flex items-center gap-[10px]",children:e.jsxs(u,{className:"flex w-full items-center gap-[10px] text-text-lg font-semibold",children:[e.jsx(g,{className:` ${t?"":"-rotate-90"} h-5 w-5 rounded-md fill-neutral-500 transition-transform duration-200 hover:bg-neutral-200`}),"Getting started with stack components"]})}),e.jsxs(h,{className:"space-y-5 border-t border-theme-border-moderate bg-theme-surface-primary p-5",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsx("label",{htmlFor:"artifact-store-provider",className:"text-text-sm text-theme-text-secondary",children:"Select a category"}),e.jsx(C1,{id:"artifact-store-provider",selectedType:a,onTypeChange:n})]}),l1(a)]})]})}function l1(t){switch(t){case"orchestrator":return C(W);case"artifact_store":return C(U);case"container_registry":return C(Y);case"alerter":return C(t1);case"annotator":return C(s1);case"data_validator":return C(a1);case"experiment_tracker":return C(e1);case"feature_store":return C(X);case"image_builder":return C(n1);case"model_deployer":return C(J);case"model_registry":return C(r1);case"step_operator":return C(Q)}}function V1(){const{setTourState:t,tourState:{tourActive:r}}=R();return s.useEffect(()=>{r&&t(a=>({...a,run:!0,stepIndex:a.stepIndex}))},[r]),e.jsxs("div",{children:[e.jsx(Z,{}),e.jsxs("div",{className:"layout-container py-5",children:[e.jsx(A,{}),e.jsxs("div",{className:"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(T,{}),e.jsx(O,{}),e.jsx(i1,{})]}),e.jsxs("div",{className:"col-span-4 space-y-5 lg:col-span-1",children:[e.jsx(v,{}),e.jsx(k,{})]})]})]})]})}export{V1 as default};
@@ -1 +0,0 @@
1
- import{j as e}from"./@tanstack-GFKzItNf.js";import{ak as x,al as g,am as f,an as b,ao as v,B as m,ap as L}from"./index-UnEiujvd.js";import{I as C}from"./Infobox-CV3EG_9t.js";import{S,a as y,b as k}from"./aws-BaCucHs5.js";import{r as a}from"./@radix-BrEjOMvl.js";import{S as j}from"./docker-EYFTGVBw.js";import{g as p}from"./Commands-fpiuAaZ1.js";import{H as w}from"./Helpbox-SS5TXXFE.js";import"./@react-router-CCpyfPW-.js";import"./@reactflow-BfgHyCG7.js";import"./CodeSnippet-DpWTCS7Y.js";import"./copy-B8yRmO5i.js";import"./help-hEyYkC3q.js";const A=t=>a.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},a.createElement("path",{d:"M20.2524 6.30383C20.1382 5.93755 19.864 5.63994 19.5213 5.4568L12.5537 2.11446C12.3709 2.02289 12.1653 2 11.9826 2C11.7998 2 11.5942 2 11.4115 2.04579L4.4438 5.41102C4.10113 5.57126 3.84984 5.86887 3.75846 6.25805L2.02226 13.7898C1.95372 14.1789 2.0451 14.5681 2.27355 14.8886L7.09379 20.8636C7.36793 21.1383 7.75629 21.3215 8.14465 21.3444H15.8433C16.2545 21.3901 16.6429 21.207 16.8942 20.8636L21.7144 14.8886C21.9429 14.5681 22.0343 14.1789 21.9886 13.7898L20.2524 6.30383Z",fill:"#326DE6"}),a.createElement("path",{d:"M19.1559 13.4921C19.133 13.4921 19.133 13.4921 19.1559 13.4921C19.133 13.4464 19.0645 13.4464 19.0416 13.4464C18.9503 13.4235 18.8589 13.4235 18.7675 13.4235C18.7218 13.4235 18.6761 13.4235 18.6304 13.4006H18.6076C18.3563 13.3777 18.0822 13.3319 17.8309 13.2632C17.7623 13.2403 17.6938 13.1716 17.671 13.103C17.671 13.0801 17.6481 13.0801 17.6481 13.0801L17.4654 13.0343C17.5567 12.3704 17.5111 11.6836 17.374 11.0197C17.2141 10.3558 16.9399 9.71485 16.5744 9.14253L16.7115 9.00517V8.98228C16.7115 8.9136 16.7343 8.82203 16.78 8.77624C16.9856 8.61599 17.1912 8.45575 17.4197 8.34128C17.4654 8.31839 17.5111 8.2955 17.5567 8.2726C17.6481 8.22682 17.7167 8.18103 17.808 8.13525C17.8309 8.11235 17.8537 8.11235 17.8766 8.08946C17.8994 8.06657 17.8994 8.06657 17.8994 8.06657C18.105 7.90632 18.1507 7.63161 17.9908 7.42557C17.9223 7.334 17.7852 7.26532 17.671 7.26532C17.5567 7.26532 17.4425 7.31111 17.3511 7.37979L17.3283 7.40268C17.3054 7.42557 17.2826 7.44847 17.2598 7.44847C17.1912 7.51714 17.1227 7.58582 17.077 7.6545C17.0542 7.70029 17.0085 7.72318 16.9856 7.74607C16.8029 7.92921 16.6201 8.11235 16.4145 8.24971C16.3688 8.2726 16.3231 8.2955 16.2774 8.2955C16.2546 8.2955 16.2089 8.2955 16.1861 8.2726L16.0033 8.40996C15.8205 8.22682 15.6149 8.04368 15.4322 7.86054C14.5869 7.19665 13.5361 6.78458 12.4624 6.67011L12.4395 6.48697L12.4167 6.46408C12.3481 6.41829 12.3253 6.34962 12.3024 6.28094C12.3024 6.02912 12.3024 5.7773 12.3481 5.50258V5.47969C12.3481 5.43391 12.371 5.38812 12.371 5.34234C12.3938 5.25076 12.3938 5.15919 12.4167 5.06762V4.93027C12.4395 4.70134 12.2568 4.47241 12.0283 4.47241C11.8912 4.47241 11.7542 4.5182 11.6628 4.60977C11.5714 4.70134 11.5257 4.8158 11.5257 4.93027V5.04473C11.5257 5.1363 11.5486 5.22787 11.5714 5.31944C11.5943 5.36523 11.5943 5.41101 11.5943 5.4568V5.47969C11.6399 5.73151 11.6399 5.98333 11.6399 6.25804C11.6171 6.32672 11.5943 6.3954 11.5257 6.44119L11.5029 6.46408L11.48 6.64722C11.2287 6.67011 10.9774 6.7159 10.7033 6.76168C9.62961 6.99061 8.64728 7.56293 7.89341 8.36417L7.75634 8.2726H7.73349C7.71065 8.2726 7.68781 8.2955 7.64212 8.2955C7.59643 8.2955 7.52789 8.2726 7.50505 8.24971C7.29944 8.08946 7.11669 7.90632 6.93393 7.72318C6.91108 7.67739 6.86539 7.6545 6.84255 7.63161C6.77401 7.56293 6.72833 7.49425 6.65979 7.42557C6.63695 7.40268 6.6141 7.40268 6.59126 7.37979C6.56841 7.3569 6.56841 7.35689 6.56841 7.35689C6.47703 7.28822 6.36281 7.24243 6.24859 7.24243C6.11152 7.24243 5.99729 7.28822 5.90591 7.40268C5.76885 7.60872 5.81454 7.88343 5.99729 8.04368C6.02014 8.04368 6.02014 8.06657 6.02014 8.06657C6.02014 8.06657 6.06583 8.11236 6.08867 8.11236C6.15721 8.15814 6.24859 8.20393 6.33996 8.24971C6.38565 8.2726 6.43134 8.2955 6.47703 8.31839C6.70548 8.45575 6.91108 8.5931 7.11669 8.75335C7.16238 8.79914 7.20807 8.89071 7.18522 8.95939V8.98228L7.32229 9.11963C7.29944 9.16542 7.2766 9.18831 7.25375 9.2341C6.54557 10.3558 6.27143 11.6836 6.47703 12.9885L6.29427 13.0343C6.29427 13.0572 6.27143 13.0572 6.27143 13.0572C6.24859 13.1259 6.18005 13.1716 6.11152 13.2174C5.86022 13.2861 5.60893 13.3319 5.3348 13.3548H5.31195C5.26626 13.3548 5.22057 13.3548 5.17488 13.3777C5.0835 13.3777 4.99212 13.4006 4.90074 13.4006C4.8779 13.4006 4.85506 13.4235 4.80937 13.4235C4.78652 13.4235 4.78652 13.4235 4.76368 13.4464C4.51238 13.4921 4.35247 13.7211 4.39816 13.9729C4.44385 14.1789 4.64945 14.3163 4.85506 14.2934C4.90074 14.2934 4.92359 14.2934 4.96928 14.2705C4.99212 14.2705 4.99212 14.2705 4.99212 14.2476C4.99212 14.2247 5.03781 14.2247 5.0835 14.2247C5.17488 14.2018 5.26626 14.156 5.3348 14.1331C5.38048 14.1102 5.42617 14.0874 5.47186 14.0874H5.49471C5.72316 13.9958 5.97445 13.9271 6.22574 13.8813H6.24859C6.31712 13.8813 6.38565 13.9042 6.43134 13.95C6.45419 13.95 6.45419 13.9729 6.45419 13.9729L6.65979 13.95C7.00246 15.0031 7.64212 15.9417 8.53306 16.6284C8.73866 16.7887 8.92142 16.9261 9.14987 17.0405L9.05849 17.2237C9.05849 17.2466 9.08134 17.2466 9.08134 17.2466C9.12703 17.3152 9.12703 17.4068 9.10418 17.4755C9.0128 17.7044 8.87573 17.9333 8.73866 18.1394V18.1623C8.71582 18.208 8.69297 18.2309 8.64729 18.2767C8.6016 18.3225 8.55591 18.4141 8.48737 18.5057C8.46453 18.5285 8.46453 18.5514 8.44168 18.5743C8.44168 18.5743 8.44168 18.5972 8.41884 18.5972C8.30461 18.8261 8.39599 19.1009 8.6016 19.2153C8.64728 19.2382 8.71582 19.2611 8.78435 19.2611C8.96711 19.2611 9.12703 19.1466 9.2184 18.9864C9.2184 18.9864 9.2184 18.9635 9.24125 18.9635C9.24125 18.9406 9.26409 18.9177 9.28694 18.8948C9.30978 18.8033 9.35547 18.7346 9.37832 18.643L9.42401 18.5057C9.49254 18.2538 9.60676 18.0249 9.72099 17.796C9.76668 17.7273 9.83521 17.6815 9.90375 17.6586C9.92659 17.6586 9.92659 17.6586 9.92659 17.6357L10.018 17.4526C10.6576 17.7044 11.3201 17.8189 12.0055 17.8189C12.4167 17.8189 12.8279 17.7731 13.2391 17.6815C13.4904 17.6357 13.7417 17.5442 13.9701 17.4755L14.0615 17.6357C14.0843 17.6357 14.0843 17.6357 14.0843 17.6586C14.1529 17.6815 14.2214 17.7273 14.2671 17.796C14.3813 18.0249 14.4727 18.2538 14.5641 18.4828V18.5057L14.6098 18.643C14.6326 18.7346 14.6555 18.8261 14.7011 18.8948C14.724 18.9177 14.724 18.9406 14.7468 18.9635C14.7468 18.9635 14.7468 18.9864 14.7697 18.9864C14.8611 19.1466 15.021 19.2611 15.2037 19.2611C15.2723 19.2611 15.318 19.2382 15.3865 19.2153C15.4779 19.1695 15.5692 19.078 15.5921 18.9635C15.6149 18.849 15.6149 18.7117 15.5692 18.5972C15.5692 18.5743 15.5464 18.5743 15.5464 18.5743C15.5464 18.5514 15.5236 18.5285 15.5007 18.5057C15.455 18.4141 15.4093 18.3454 15.3408 18.2767C15.318 18.2309 15.2951 18.208 15.2494 18.1623V18.1394C15.0895 17.9333 14.9753 17.7044 14.8839 17.4755C14.8611 17.4068 14.8611 17.3152 14.9067 17.2466C14.9067 17.2237 14.9296 17.2237 14.9296 17.2237L14.8611 17.0405C16.049 16.3308 16.9171 15.232 17.3511 13.9271L17.5339 13.95C17.5567 13.95 17.5567 13.9271 17.5567 13.9271C17.6024 13.8813 17.671 13.8584 17.7395 13.8584H17.7623C18.0136 13.9042 18.2649 13.9729 18.4934 14.0645H18.5162C18.5619 14.0874 18.6076 14.1102 18.6533 14.1102C18.7447 14.156 18.8132 14.1789 18.9046 14.2018C18.9274 14.2018 18.9503 14.2247 18.996 14.2247C19.0188 14.2247 19.0188 14.2247 19.0416 14.2476C19.0873 14.2705 19.1102 14.2705 19.1559 14.2705C19.3615 14.2705 19.5442 14.1331 19.6128 13.95C19.5442 13.7211 19.3843 13.5379 19.1559 13.4921ZM12.5766 12.7825L11.9598 13.0801L11.343 12.7825L11.1602 12.1186L11.5943 11.5692H12.3024L12.7365 12.1186L12.5766 12.7825ZM16.3003 11.2944C16.4145 11.7752 16.4373 12.2559 16.3917 12.7367L14.2214 12.1186C14.0158 12.0728 13.9016 11.8668 13.9473 11.6607C13.9701 11.592 13.993 11.5463 14.0386 11.5005L15.752 9.94377C16.0033 10.3558 16.1861 10.8137 16.3003 11.2944ZM15.0667 9.09674L13.2162 10.4245C13.0563 10.5161 12.8279 10.4932 12.7137 10.3329C12.668 10.2872 12.6451 10.2414 12.6451 10.1727L12.508 7.86054C13.4675 7.975 14.3813 8.40996 15.0667 9.09674ZM10.9318 7.92921L11.3887 7.83764L11.2516 10.1269C11.2516 10.3329 11.0688 10.4932 10.8632 10.4932C10.7947 10.4932 10.749 10.4703 10.6805 10.4474L8.83004 9.09674C9.40116 8.52442 10.1322 8.11235 10.9318 7.92921ZM8.1447 9.94377L9.83521 11.4547C9.99513 11.592 10.018 11.821 9.8809 11.9812C9.83521 12.0499 9.78952 12.0728 9.69814 12.0957L7.50505 12.7367C7.41367 11.7752 7.64212 10.7908 8.1447 9.94377ZM7.75634 13.8126L10.018 13.4235C10.2007 13.4235 10.3835 13.5379 10.4063 13.7211C10.4292 13.7898 10.4292 13.8813 10.3835 13.95L9.51539 16.0561C8.71582 15.5296 8.07617 14.7284 7.75634 13.8126ZM12.9421 16.6513C12.6223 16.72 12.2796 16.7658 11.9369 16.7658C11.4572 16.7658 10.9546 16.6742 10.4977 16.5369L11.6171 14.4994C11.7313 14.3621 11.9141 14.3163 12.074 14.4079C12.1425 14.4536 12.1882 14.4994 12.2568 14.5681L13.3533 16.5598C13.2391 16.5827 13.102 16.6056 12.9421 16.6513ZM15.7292 14.6597C15.3865 15.2091 14.9067 15.6898 14.3585 16.0332L13.4675 13.9042C13.4218 13.7211 13.4904 13.5379 13.6731 13.4464C13.7417 13.4235 13.8102 13.4006 13.8787 13.4006L16.1632 13.7898C16.049 14.1102 15.9119 14.4079 15.7292 14.6597Z",fill:"white"})),s="w-5 h-5",z=[{label:"Kubernetes",value:"kubernetes",icon:e.jsx(A,{className:s})},{label:"GCP",value:"gcp",icon:e.jsx(S,{className:s})},{label:"Docker",value:"docker",icon:e.jsx(j,{className:s})},{label:"Azure",value:"azure",icon:e.jsx(y,{className:s})},{label:"AWS",value:"aws",icon:e.jsx(k,{className:s})}],T={help:{href:"https://docs.zenml.io/stacks-and-components/auth-management/kubernetes-service-connector",text:"Use the complete guide to set up your Kubernetes Service Connector."},prerequisites:i("kubernetes","Kubernetes"),listCommand:c("kubernetes","Kubernetes"),topInfobox:"The ZenML Kubernetes service connector facilitates authenticating and connecting to a Kubernetes cluster. The connector can be used to access to any generic Kubernetes cluster by providing pre-authenticated Kubernetes python clients to Stack Components that are linked to it and also allows configuring the local Kubernetes CLI (i.e. kubectl).",bottomInfobox:"Upon completion of the installation of the required prerequisites and integration, our documentation provides you with a comprehensive list of resource types that can be employed to establish your connector. Please refer to the documentation to explore all available options."},I={help:{text:"Use the complete guide to set up your GCP Service Connector.",href:"https://docs.zenml.io/stacks-and-components/auth-management/gcp-service-connector"},prerequisites:i("gcp","GCP"),listCommand:c("gcp","GCP"),bottomInfobox:"Upon completion of the installation of the required prerequisites and integration, our documentation will guide you with a comprehensive list of all the resource types that can be employed to establish your GCP connector. Please refer to the documentation to explore all available options.",topInfobox:"The ZenML GCP Service Connector facilitates the authentication and access to managed GCP services and resources. These encompass a range of resources, including GCS buckets, GCR container repositories, and GKE clusters. The connector provides support for various authentication methods, including GCP user accounts, service accounts, short-lived OAuth 2.0 tokens, and implicit authentication."},N={help:{text:"Use the complete guide to set up your Docker Service Connector.",href:"https://docs.zenml.io/stacks-and-components/auth-management/docker-service-connector"},listCommand:c("docker","Docker"),topInfobox:"The ZenML Docker Service Connector allows authenticating with a Docker or OCI container registry and managing Docker clients for the registry. This connector provides pre-authenticated python-docker Python clients to Stack Components that are linked to it.",bottomInfobox:"No Python packages are required for this Service Connector. All prerequisites are included in the base ZenML Python package. Docker needs to be installed on environments where container images are built and pushed to the target container registry. Please refer to the documentation to explore all available options."},P={help:{text:"Use the complete guide to set up your Azure Service Connector.",href:"https://docs.zenml.io/stacks-and-components/auth-management/azure-service-connector"},listCommand:c("azure","Azure"),prerequisites:i("azure","Azure"),topInfobox:"The ZenML Azure Service Connector facilitates the authentication and access to managed Azure services and resources. These encompass a range of resources, including blob storage containers, ACR repositories, and AKS clusters.",bottomInfobox:"Upon completion of the installation of the required prerequisites and integration, our documentation will guide you with a comprehensive list of all the resource types that can be employed to establish your Azure connector. Please refer to the documentation to explore all available options."},M={help:{text:"Use the complete guide to set up your AWS Service Connector.",href:"https://docs.zenml.io/stacks-and-components/auth-management/aws-service-connector"},listCommand:c("aws","AWS"),prerequisites:i("aws","AWS"),topInfobox:"The ZenML AWS Service Connector facilitates the authentication and access to managed AWS services and resources. These encompass a range of resources, including S3 buckets, ECR container repositories, and EKS clusters. The connector provides support for various authentication methods, including explicit long-lived AWS secret keys, IAM roles, short-lived STS tokens, and implicit authentication.",bottomInfobox:"Upon completion of the installation of the required prerequisites and integration, our documentation will guide you with a comprehensive list of all the resource types that can be employed to establish your AWS connector. Please refer to the documentation to explore all available options."};function c(t,o){return{command:`zenml service-connector list-types --type ${t}`,description:`List ${o} Connector Types`}}function i(t,o){return[{description:"Install the prerequisites",command:`pip install "zenml[connectors-${t}]"`},{description:`Install the entire ${o} ZenML integration`,command:`zenml integration install ${t}`}]}function Z({id:t,selectedType:o,onTypeChange:l}){return e.jsxs(x,{value:o,onValueChange:n=>l(n),children:[e.jsx(g,{id:t,className:"w-[250px] border border-neutral-300 px-2 text-left text-text-md",children:e.jsx(f,{placeholder:"Select Connector Type"})}),e.jsx(b,{className:"",children:z.map(n=>e.jsx(v,{value:n.value,children:e.jsxs("div",{className:"flex items-center gap-1",children:[n.icon,n.label]})},n.value))})]})}function q(){return e.jsx(C,{children:e.jsxs("div",{className:"flex w-full flex-wrap items-center gap-x-2 gap-y-0.5 text-text-md",children:[e.jsx("p",{className:"font-semibold",children:"We are creating a new Connectors experience"}),e.jsx("p",{children:"In the meanwhile you can use the CLI to add and manage your connectors."})]})})}function K(){return e.jsx(m,{className:"flex flex-col-reverse items-stretch overflow-hidden md:flex-row",children:e.jsxs("div",{className:"w-full p-7 md:w-2/3",children:[e.jsx("h2",{className:"text-display-xs font-semibold",children:"Learn More about Connectors"}),e.jsx("p",{className:"mt-2 text-text-lg text-theme-text-secondary",children:"Dive into Service Connector Types for a documented approach to secure authentication and authorization practices."})]})})}function G(){const[t,o]=a.useState("kubernetes");return e.jsxs("section",{className:"space-y-5 pl-8 pr-5",children:[e.jsx(Z,{selectedType:t,onTypeChange:o,id:"connector-select"}),H(t)]})}function r({topInfobox:t,bottomInfobox:o,listCommand:l,prerequisites:n,help:u}){return e.jsxs(e.Fragment,{children:[e.jsx(C,{className:"text-text-md",intent:"neutral",children:t}),p(l),n&&e.jsxs(e.Fragment,{children:[e.jsx("p",{children:"Prerequisites"}),n.map((d,h)=>e.jsx(a.Fragment,{children:p(d)},h))]}),e.jsx(C,{className:"text-text-md",intent:"neutral",children:o}),e.jsx(w,{text:u.text,link:u.href})]})}function H(t){switch(t){case"kubernetes":return r(T);case"gcp":return r(I);case"docker":return r(N);case"azure":return r(P);case"aws":return r(M)}}function Y(){return e.jsxs(m,{className:"space-y-4 p-5",children:[e.jsx("h1",{className:"text-text-xl font-semibold",children:"Secrets"}),e.jsx(q,{}),e.jsx(K,{}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(L,{}),"Administering your Connectors"]}),e.jsx(G,{})]})}export{Y as default};
@@ -1 +0,0 @@
1
- import{r as e}from"./@radix-BrEjOMvl.js";const t=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"}))),l=t;export{l as R};
@@ -1 +0,0 @@
1
- function g(t){return new URLSearchParams(Object.entries(t).filter(([n,e])=>e!=null).reduce((n,[e,a])=>(n.append(e,a),n),new URLSearchParams))}const i=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,o=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i;function r(t){return t=String(t),t==="null"||t.length===0||t==="about:blank"?"about:blank":t.match(i)||t.match(o)?t:`unsafe:${t}`}function s(t="about:blank"){return r(String(t).trim())}export{g as o,s};