zenml-nightly 0.65.0.dev20240909__py3-none-any.whl → 0.66.0.dev20240911__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 (123) hide show
  1. README.md +1 -1
  2. RELEASE_NOTES.md +58 -0
  3. zenml/VERSION +1 -1
  4. zenml/integrations/aws/orchestrators/sagemaker_orchestrator.py +2 -1
  5. zenml/integrations/feast/__init__.py +1 -1
  6. zenml/integrations/tensorflow/materializers/tf_dataset_materializer.py +2 -2
  7. zenml/integrations/wandb/experiment_trackers/wandb_experiment_tracker.py +1 -1
  8. zenml/stack/stack_component.py +50 -17
  9. zenml/zen_server/dashboard/assets/{404-nKxQ4QDX.js → 404-iO8vpun1.js} +1 -1
  10. zenml/zen_server/dashboard/assets/{@reactflow-IuMOnBUC.js → @reactflow-B6kq9fJZ.js} +1 -1
  11. zenml/zen_server/dashboard/assets/AlertDialogDropdownItem-BXeSvmMY.js +1 -0
  12. zenml/zen_server/dashboard/assets/{CodeSnippet-i_WEOWw9.js → CodeSnippet-DNWdQmbo.js} +2 -2
  13. zenml/zen_server/dashboard/assets/CollapsibleCard-B2OVjWYE.js +1 -0
  14. zenml/zen_server/dashboard/assets/{Commands-m9HMl-eh.js → Commands-DsoaVElZ.js} +1 -1
  15. zenml/zen_server/dashboard/assets/CopyButton-BqE_-PHO.js +2 -0
  16. zenml/zen_server/dashboard/assets/{CsvVizualization-Bbzv7VEL.js → CsvVizualization-Dyasr2jU.js} +6 -6
  17. zenml/zen_server/dashboard/assets/{DialogItem-B576Svvy.js → DialogItem-Cz1VLRwa.js} +1 -1
  18. zenml/zen_server/dashboard/assets/EditSecretDialog-Du423_3U.js +1 -0
  19. zenml/zen_server/dashboard/assets/{Error-QMgFNDTs.js → Error-DorJD_va.js} +1 -1
  20. zenml/zen_server/dashboard/assets/ExecutionStatus-CIfQTutR.js +1 -0
  21. zenml/zen_server/dashboard/assets/{Helpbox-C96LeSX9.js → Helpbox-CmfvtNeq.js} +1 -1
  22. zenml/zen_server/dashboard/assets/Infobox-BL9NOS37.js +1 -0
  23. zenml/zen_server/dashboard/assets/{InlineAvatar-C2ZECnGP.js → InlineAvatar-Ds2ZFHPc.js} +1 -1
  24. zenml/zen_server/dashboard/assets/Partials-DX-8iEa1.js +1 -0
  25. zenml/zen_server/dashboard/assets/{ProviderIcon-wA4qBOv1.js → ProviderIcon-BOQJgapd.js} +1 -1
  26. zenml/zen_server/dashboard/assets/ProviderRadio-BsYBw9YA.js +1 -0
  27. zenml/zen_server/dashboard/assets/{SearchField-BPNazO4G.js → SearchField-W3GXpLlI.js} +1 -1
  28. zenml/zen_server/dashboard/assets/{SetPassword-kA6Bi_Kp.js → SetPassword-B-0a8UCj.js} +1 -1
  29. zenml/zen_server/dashboard/assets/{Tick-DEACFydX.js → Tick-i1DYsVcX.js} +1 -1
  30. zenml/zen_server/dashboard/assets/{UpdatePasswordSchemas-BKyR7Eqi.js → UpdatePasswordSchemas-C6Zb7ASL.js} +1 -1
  31. zenml/zen_server/dashboard/assets/UsageReason-CCnzmwS8.js +1 -0
  32. zenml/zen_server/dashboard/assets/{WizardFooter-sUnbJ70r.js → WizardFooter-BHbO7zOa.js} +1 -1
  33. zenml/zen_server/dashboard/assets/all-pipeline-runs-query-BBEe6I9-.js +1 -0
  34. zenml/zen_server/dashboard/assets/{cloud-only-DrdxC8NV.js → cloud-only-BuP4Kt_7.js} +1 -1
  35. zenml/zen_server/dashboard/assets/codespaces-BitYDX9d.gif +0 -0
  36. zenml/zen_server/dashboard/assets/create-stack-B2x2d4r1.js +1 -0
  37. zenml/zen_server/dashboard/assets/{form-schemas-DD4OppNK.js → form-schemas-Bap0f854.js} +1 -1
  38. zenml/zen_server/dashboard/assets/index-6DYjZgDn.css +1 -0
  39. zenml/zen_server/dashboard/assets/{index-Davdjm1d.js → index-B9wVwe7u.js} +6 -6
  40. zenml/zen_server/dashboard/assets/{index-CnqMjIZT.js → index-DFi8BroH.js} +1 -1
  41. zenml/zen_server/dashboard/assets/link-external-BT2L8hAQ.js +1 -0
  42. zenml/zen_server/dashboard/assets/{login-mutation-TIWnZoJ7.js → login-mutation-DwxUz8VA.js} +1 -1
  43. zenml/zen_server/dashboard/assets/{not-found-C_bW_Kkr.js → not-found-D5i9DunU.js} +1 -1
  44. zenml/zen_server/dashboard/assets/page-BFuJICXM.js +9 -0
  45. zenml/zen_server/dashboard/assets/{page-Dvr6lpJm.js → page-BiF8hLbO.js} +1 -1
  46. zenml/zen_server/dashboard/assets/{page-BN7n3Dsp.js → page-BitfWsiW.js} +1 -1
  47. zenml/zen_server/dashboard/assets/page-CDOQLrPC.js +1 -0
  48. zenml/zen_server/dashboard/assets/page-CEJWu1YO.js +1 -0
  49. zenml/zen_server/dashboard/assets/page-CIbehp7V.js +1 -0
  50. zenml/zen_server/dashboard/assets/page-CLiRGfWo.js +1 -0
  51. zenml/zen_server/dashboard/assets/page-CV44mQn9.js +1 -0
  52. zenml/zen_server/dashboard/assets/page-CrSdkteO.js +2 -0
  53. zenml/zen_server/dashboard/assets/page-D5F3DJjm.js +1 -0
  54. zenml/zen_server/dashboard/assets/page-DE03uZZR.js +1 -0
  55. zenml/zen_server/dashboard/assets/{page-BxPQz4Q8.js → page-DFCK65G9.js} +1 -1
  56. zenml/zen_server/dashboard/assets/{page-XReFLy-1.js → page-DGMa3ZQL.js} +1 -1
  57. zenml/zen_server/dashboard/assets/page-DI-qTWrm.js +1 -0
  58. zenml/zen_server/dashboard/assets/page-DQGCHKrQ.js +1 -0
  59. zenml/zen_server/dashboard/assets/{page-BhqIV8mu.js → page-DQdwZZ9x.js} +1 -1
  60. zenml/zen_server/dashboard/assets/page-DgM-N9RL.js +1 -0
  61. zenml/zen_server/dashboard/assets/page-Dt8VgzbE.js +1 -0
  62. zenml/zen_server/dashboard/assets/{page-CDG9uQT9.js → page-J0s8Sq3N.js} +1 -1
  63. zenml/zen_server/dashboard/assets/page-WCQ659by.js +1 -0
  64. zenml/zen_server/dashboard/assets/{page-BSkbj719.js → page-bimkItOg.js} +1 -1
  65. zenml/zen_server/dashboard/assets/{page-Dy0EbJQD.js → page-iwoJnwPv.js} +1 -1
  66. zenml/zen_server/dashboard/assets/{page-Bg5X2mLz.js → page-oS4hqS8M.js} +1 -1
  67. zenml/zen_server/dashboard/assets/page-oSqx9dkH.js +1 -0
  68. zenml/zen_server/dashboard/assets/page-p3GqEAUW.js +1 -0
  69. zenml/zen_server/dashboard/assets/page-qvcUVPE-.js +1 -0
  70. zenml/zen_server/dashboard/assets/{page-HXZtxyWq.js → page-xQG6GmFJ.js} +1 -1
  71. zenml/zen_server/dashboard/assets/{persist-g4uRK-v-.js → persist-mEZN_fgH.js} +1 -1
  72. zenml/zen_server/dashboard/assets/{persist-CnMMI8ls.js → persist-xsYgVtR1.js} +1 -1
  73. zenml/zen_server/dashboard/assets/{refresh-CtPKdk2G.js → refresh-hfgWPeto.js} +1 -1
  74. zenml/zen_server/dashboard/assets/{sharedSchema-Dbpe2oAO.js → sharedSchema-BfZcy7aP.js} +2 -2
  75. zenml/zen_server/dashboard/assets/stack-detail-query-CU4egfhp.js +1 -0
  76. zenml/zen_server/dashboard/assets/templates-1S_8WeSK.webp +0 -0
  77. zenml/zen_server/dashboard/assets/{update-server-settings-mutation-YhoZKgC9.js → update-server-settings-mutation-DNqmQXDM.js} +1 -1
  78. zenml/zen_server/dashboard/assets/{url-DNHuFfYx.js → url-DwbuKk1b.js} +1 -1
  79. zenml/zen_server/dashboard/index.html +4 -4
  80. zenml/zen_server/dashboard_legacy/asset-manifest.json +4 -4
  81. zenml/zen_server/dashboard_legacy/index.html +1 -1
  82. zenml/zen_server/dashboard_legacy/{precache-manifest.123c8e8fafecee40f30294ab26484cf1.js → precache-manifest.290b95d5b43efa3368b3dc63d20c4782.js} +4 -4
  83. zenml/zen_server/dashboard_legacy/service-worker.js +1 -1
  84. zenml/zen_server/dashboard_legacy/static/js/{main.a98a73cf.chunk.js → main.840d1bf0.chunk.js} +2 -2
  85. zenml/zen_server/dashboard_legacy/static/js/{main.a98a73cf.chunk.js.map → main.840d1bf0.chunk.js.map} +1 -1
  86. zenml/zen_server/deploy/helm/Chart.yaml +1 -1
  87. zenml/zen_server/deploy/helm/README.md +2 -2
  88. zenml/zen_stores/migrations/versions/0.66.0_release.py +23 -0
  89. {zenml_nightly-0.65.0.dev20240909.dist-info → zenml_nightly-0.66.0.dev20240911.dist-info}/METADATA +3 -3
  90. {zenml_nightly-0.65.0.dev20240909.dist-info → zenml_nightly-0.66.0.dev20240911.dist-info}/RECORD +93 -89
  91. zenml/zen_server/dashboard/assets/AlertDialogDropdownItem-CO2rOw5M.js +0 -1
  92. zenml/zen_server/dashboard/assets/CollapsibleCard-C9BzoY6q.js +0 -1
  93. zenml/zen_server/dashboard/assets/CopyButton-BAYaQlWF.js +0 -2
  94. zenml/zen_server/dashboard/assets/EditSecretDialog-CmY9fiM0.js +0 -1
  95. zenml/zen_server/dashboard/assets/ExecutionStatus-BSQgMpzk.js +0 -1
  96. zenml/zen_server/dashboard/assets/Infobox-BB7dfbrO.js +0 -1
  97. zenml/zen_server/dashboard/assets/Partials-RDhJ8Ci7.js +0 -1
  98. zenml/zen_server/dashboard/assets/ProviderRadio-DkPE6alG.js +0 -1
  99. zenml/zen_server/dashboard/assets/UsageReason-DbgUeRkI.js +0 -1
  100. zenml/zen_server/dashboard/assets/create-stack-u6VyIXZP.js +0 -1
  101. zenml/zen_server/dashboard/assets/index-CsIuf3i6.css +0 -1
  102. zenml/zen_server/dashboard/assets/page-0eecLRNs.js +0 -1
  103. zenml/zen_server/dashboard/assets/page-BPFkP_IB.js +0 -1
  104. zenml/zen_server/dashboard/assets/page-CUOBhxxU.js +0 -1
  105. zenml/zen_server/dashboard/assets/page-CrjI9mjm.js +0 -1
  106. zenml/zen_server/dashboard/assets/page-D4J2Oy-I.js +0 -1
  107. zenml/zen_server/dashboard/assets/page-D5I0-LSs.js +0 -1
  108. zenml/zen_server/dashboard/assets/page-D7bwpJvV.js +0 -1
  109. zenml/zen_server/dashboard/assets/page-DCnizFO_.js +0 -9
  110. zenml/zen_server/dashboard/assets/page-DQBv3t8t.js +0 -1
  111. zenml/zen_server/dashboard/assets/page-DYNlbmas.js +0 -1
  112. zenml/zen_server/dashboard/assets/page-DsKroTLH.js +0 -1
  113. zenml/zen_server/dashboard/assets/page-DsQOL6ZL.js +0 -1
  114. zenml/zen_server/dashboard/assets/page-DyM2M_wT.js +0 -1
  115. zenml/zen_server/dashboard/assets/page-OmVfClGH.js +0 -2
  116. zenml/zen_server/dashboard/assets/page-t1VWIy6W.js +0 -1
  117. zenml/zen_server/dashboard/assets/page-wPiJkPp6.js +0 -1
  118. zenml/zen_server/dashboard/assets/page-wQ8_y5mW.js +0 -1
  119. zenml/zen_server/dashboard/assets/stack-detail-query-fuuoot1D.js +0 -1
  120. zenml/zen_server/dashboard/assets/terminal-DRIPb4oF.js +0 -1
  121. {zenml_nightly-0.65.0.dev20240909.dist-info → zenml_nightly-0.66.0.dev20240911.dist-info}/LICENSE +0 -0
  122. {zenml_nightly-0.65.0.dev20240909.dist-info → zenml_nightly-0.66.0.dev20240911.dist-info}/WHEEL +0 -0
  123. {zenml_nightly-0.65.0.dev20240909.dist-info → zenml_nightly-0.66.0.dev20240911.dist-info}/entry_points.txt +0 -0
@@ -0,0 +1 @@
1
+ import{r as m,j as e}from"./@radix-DnFH_oo1.js";import{v as g,w as p,aE as d,aG as h}from"./index-B9wVwe7u.js";const x=m.forwardRef((r,t)=>{const{triggerChildren:a,children:i,onSelect:o,onOpenChange:l,icon:D,open:n,...s}=r;return e.jsxs(g,{open:n,onOpenChange:l,children:[e.jsx(p,{asChild:!0,children:e.jsx(d,{...s,className:"hover:cursor-pointer",icon:r.icon,ref:t,onSelect:c=>{c.preventDefault(),o&&o()},children:a})}),e.jsx(h,{children:i})]})});x.displayName="AlertDialogItem";export{x as A};
@@ -1,9 +1,9 @@
1
- import{c as N,g as te,r as Y,j as E}from"./@radix-DnFH_oo1.js";import{q as X}from"./index-Davdjm1d.js";import{S as ae}from"./copy-CaGlDsUy.js";var J={exports:{}};(function(A){var R=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/**
1
+ import{c as N,g as te,r as Y,j as E}from"./@radix-DnFH_oo1.js";import{X}from"./index-B9wVwe7u.js";import{S as ae}from"./copy-CaGlDsUy.js";var J={exports:{}};(function(A){var R=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/**
2
2
  * Prism: Lightweight, robust, elegant syntax highlighting
3
3
  *
4
4
  * @license MIT <https://opensource.org/licenses/MIT>
5
5
  * @author Lea Verou <https://lea.verou.me>
6
6
  * @namespace
7
7
  * @public
8
- */var i=function(g){var p=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,y=0,x={},s={manual:g.Prism&&g.Prism.manual,disableWorkerMessageHandler:g.Prism&&g.Prism.disableWorkerMessageHandler,util:{encode:function t(e){return e instanceof m?new m(e.type,t(e.content),e.alias):Array.isArray(e)?e.map(t):e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(t){return Object.prototype.toString.call(t).slice(8,-1)},objId:function(t){return t.__id||Object.defineProperty(t,"__id",{value:++y}),t.__id},clone:function t(e,a){a=a||{};var n,r;switch(s.util.type(e)){case"Object":if(r=s.util.objId(e),a[r])return a[r];n={},a[r]=n;for(var u in e)e.hasOwnProperty(u)&&(n[u]=t(e[u],a));return n;case"Array":return r=s.util.objId(e),a[r]?a[r]:(n=[],a[r]=n,e.forEach(function(o,l){n[l]=t(o,a)}),n);default:return e}},getLanguage:function(t){for(;t;){var e=p.exec(t.className);if(e)return e[1].toLowerCase();t=t.parentElement}return"none"},setLanguage:function(t,e){t.className=t.className.replace(RegExp(p,"gi"),""),t.classList.add("language-"+e)},currentScript:function(){if(typeof document>"u")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(n){var t=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(n.stack)||[])[1];if(t){var e=document.getElementsByTagName("script");for(var a in e)if(e[a].src==t)return e[a]}return null}},isActive:function(t,e,a){for(var n="no-"+e;t;){var r=t.classList;if(r.contains(e))return!0;if(r.contains(n))return!1;t=t.parentElement}return!!a}},languages:{plain:x,plaintext:x,text:x,txt:x,extend:function(t,e){var a=s.util.clone(s.languages[t]);for(var n in e)a[n]=e[n];return a},insertBefore:function(t,e,a,n){n=n||s.languages;var r=n[t],u={};for(var o in r)if(r.hasOwnProperty(o)){if(o==e)for(var l in a)a.hasOwnProperty(l)&&(u[l]=a[l]);a.hasOwnProperty(o)||(u[o]=r[o])}var d=n[t];return n[t]=u,s.languages.DFS(s.languages,function(v,k){k===d&&v!=t&&(this[v]=u)}),u},DFS:function t(e,a,n,r){r=r||{};var u=s.util.objId;for(var o in e)if(e.hasOwnProperty(o)){a.call(e,o,e[o],n||o);var l=e[o],d=s.util.type(l);d==="Object"&&!r[u(l)]?(r[u(l)]=!0,t(l,a,null,r)):d==="Array"&&!r[u(l)]&&(r[u(l)]=!0,t(l,a,o,r))}}},plugins:{},highlightAll:function(t,e){s.highlightAllUnder(document,t,e)},highlightAllUnder:function(t,e,a){var n={callback:a,container:t,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};s.hooks.run("before-highlightall",n),n.elements=Array.prototype.slice.apply(n.container.querySelectorAll(n.selector)),s.hooks.run("before-all-elements-highlight",n);for(var r=0,u;u=n.elements[r++];)s.highlightElement(u,e===!0,n.callback)},highlightElement:function(t,e,a){var n=s.util.getLanguage(t),r=s.languages[n];s.util.setLanguage(t,n);var u=t.parentElement;u&&u.nodeName.toLowerCase()==="pre"&&s.util.setLanguage(u,n);var o=t.textContent,l={element:t,language:n,grammar:r,code:o};function d(k){l.highlightedCode=k,s.hooks.run("before-insert",l),l.element.innerHTML=l.highlightedCode,s.hooks.run("after-highlight",l),s.hooks.run("complete",l),a&&a.call(l.element)}if(s.hooks.run("before-sanity-check",l),u=l.element.parentElement,u&&u.nodeName.toLowerCase()==="pre"&&!u.hasAttribute("tabindex")&&u.setAttribute("tabindex","0"),!l.code){s.hooks.run("complete",l),a&&a.call(l.element);return}if(s.hooks.run("before-highlight",l),!l.grammar){d(s.util.encode(l.code));return}if(e&&g.Worker){var v=new Worker(s.filename);v.onmessage=function(k){d(k.data)},v.postMessage(JSON.stringify({language:l.language,code:l.code,immediateClose:!0}))}else d(s.highlight(l.code,l.grammar,l.language))},highlight:function(t,e,a){var n={code:t,grammar:e,language:a};if(s.hooks.run("before-tokenize",n),!n.grammar)throw new Error('The language "'+n.language+'" has no grammar.');return n.tokens=s.tokenize(n.code,n.grammar),s.hooks.run("after-tokenize",n),m.stringify(s.util.encode(n.tokens),n.language)},tokenize:function(t,e){var a=e.rest;if(a){for(var n in a)e[n]=a[n];delete e.rest}var r=new j;return C(r,r.head,t),_(t,r,e,r.head,0),z(r)},hooks:{all:{},add:function(t,e){var a=s.hooks.all;a[t]=a[t]||[],a[t].push(e)},run:function(t,e){var a=s.hooks.all[t];if(!(!a||!a.length))for(var n=0,r;r=a[n++];)r(e)}},Token:m};g.Prism=s;function m(t,e,a,n){this.type=t,this.content=e,this.alias=a,this.length=(n||"").length|0}m.stringify=function t(e,a){if(typeof e=="string")return e;if(Array.isArray(e)){var n="";return e.forEach(function(d){n+=t(d,a)}),n}var r={type:e.type,content:t(e.content,a),tag:"span",classes:["token",e.type],attributes:{},language:a},u=e.alias;u&&(Array.isArray(u)?Array.prototype.push.apply(r.classes,u):r.classes.push(u)),s.hooks.run("wrap",r);var o="";for(var l in r.attributes)o+=" "+l+'="'+(r.attributes[l]||"").replace(/"/g,"&quot;")+'"';return"<"+r.tag+' class="'+r.classes.join(" ")+'"'+o+">"+r.content+"</"+r.tag+">"};function $(t,e,a,n){t.lastIndex=e;var r=t.exec(a);if(r&&n&&r[1]){var u=r[1].length;r.index+=u,r[0]=r[0].slice(u)}return r}function _(t,e,a,n,r,u){for(var o in a)if(!(!a.hasOwnProperty(o)||!a[o])){var l=a[o];l=Array.isArray(l)?l:[l];for(var d=0;d<l.length;++d){if(u&&u.cause==o+","+d)return;var v=l[d],k=v.inside,Z=!!v.lookbehind,B=!!v.greedy,K=v.alias;if(B&&!v.pattern.global){var Q=v.pattern.toString().match(/[imsuy]*$/)[0];v.pattern=RegExp(v.pattern.source,Q+"g")}for(var U=v.pattern||v,b=n.next,w=r;b!==e.tail&&!(u&&w>=u.reach);w+=b.value.length,b=b.next){var T=b.value;if(e.length>t.length)return;if(!(T instanceof m)){var L=1,F;if(B){if(F=$(U,w,t,Z),!F||F.index>=t.length)break;var D=F.index,V=F.index+F[0].length,S=w;for(S+=b.value.length;D>=S;)b=b.next,S+=b.value.length;if(S-=b.value.length,w=S,b.value instanceof m)continue;for(var P=b;P!==e.tail&&(S<V||typeof P.value=="string");P=P.next)L++,S+=P.value.length;L--,T=t.slice(w,S),F.index-=w}else if(F=$(U,0,T,Z),!F)continue;var D=F.index,I=F[0],H=T.slice(0,D),W=T.slice(D+I.length),q=w+T.length;u&&q>u.reach&&(u.reach=q);var M=b.prev;H&&(M=C(e,M,H),w+=H.length),O(e,M,L);var ee=new m(o,k?s.tokenize(I,k):I,K,I);if(b=C(e,M,ee),W&&C(e,b,W),L>1){var G={cause:o+","+d,reach:q};_(t,e,a,b.prev,w,G),u&&G.reach>u.reach&&(u.reach=G.reach)}}}}}}function j(){var t={value:null,prev:null,next:null},e={value:null,prev:t,next:null};t.next=e,this.head=t,this.tail=e,this.length=0}function C(t,e,a){var n=e.next,r={value:a,prev:e,next:n};return e.next=r,n.prev=r,t.length++,r}function O(t,e,a){for(var n=e.next,r=0;r<a&&n!==t.tail;r++)n=n.next;e.next=n,n.prev=e,t.length-=r}function z(t){for(var e=[],a=t.head.next;a!==t.tail;)e.push(a.value),a=a.next;return e}if(!g.document)return g.addEventListener&&(s.disableWorkerMessageHandler||g.addEventListener("message",function(t){var e=JSON.parse(t.data),a=e.language,n=e.code,r=e.immediateClose;g.postMessage(s.highlight(n,s.languages[a],a)),r&&g.close()},!1)),s;var f=s.util.currentScript();f&&(s.filename=f.src,f.hasAttribute("data-manual")&&(s.manual=!0));function c(){s.manual||s.highlightAll()}if(!s.manual){var h=document.readyState;h==="loading"||h==="interactive"&&f&&f.defer?document.addEventListener("DOMContentLoaded",c):window.requestAnimationFrame?window.requestAnimationFrame(c):window.setTimeout(c,16)}return s}(R);A.exports&&(A.exports=i),typeof N<"u"&&(N.Prism=i),i.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},i.languages.markup.tag.inside["attr-value"].inside.entity=i.languages.markup.entity,i.languages.markup.doctype.inside["internal-subset"].inside=i.languages.markup,i.hooks.add("wrap",function(g){g.type==="entity"&&(g.attributes.title=g.content.replace(/&amp;/,"&"))}),Object.defineProperty(i.languages.markup.tag,"addInlined",{value:function(p,y){var x={};x["language-"+y]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:i.languages[y]},x.cdata=/^<!\[CDATA\[|\]\]>$/i;var s={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:x}};s["language-"+y]={pattern:/[\s\S]+/,inside:i.languages[y]};var m={};m[p]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return p}),"i"),lookbehind:!0,greedy:!0,inside:s},i.languages.insertBefore("markup","cdata",m)}}),Object.defineProperty(i.languages.markup.tag,"addAttribute",{value:function(g,p){i.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+g+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[p,"language-"+p],inside:i.languages[p]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),i.languages.html=i.languages.markup,i.languages.mathml=i.languages.markup,i.languages.svg=i.languages.markup,i.languages.xml=i.languages.extend("markup",{}),i.languages.ssml=i.languages.xml,i.languages.atom=i.languages.xml,i.languages.rss=i.languages.xml,function(g){var p=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;g.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+p.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+p.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+p.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+p.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:p,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},g.languages.css.atrule.inside.rest=g.languages.css;var y=g.languages.markup;y&&(y.tag.addInlined("style","css"),y.tag.addAttribute("style","css"))}(i),i.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},i.languages.javascript=i.languages.extend("clike",{"class-name":[i.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),i.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,i.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:i.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:i.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:i.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:i.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:i.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),i.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:i.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),i.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),i.languages.markup&&(i.languages.markup.tag.addInlined("script","javascript"),i.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),i.languages.js=i.languages.javascript,function(){if(typeof i>"u"||typeof document>"u")return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var g="Loading…",p=function(f,c){return"✖ Error "+f+" while fetching file: "+c},y="✖ Error: File does not exist or is empty",x={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},s="data-src-status",m="loading",$="loaded",_="failed",j="pre[data-src]:not(["+s+'="'+$+'"]):not(['+s+'="'+m+'"])';function C(f,c,h){var t=new XMLHttpRequest;t.open("GET",f,!0),t.onreadystatechange=function(){t.readyState==4&&(t.status<400&&t.responseText?c(t.responseText):t.status>=400?h(p(t.status,t.statusText)):h(y))},t.send(null)}function O(f){var c=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(f||"");if(c){var h=Number(c[1]),t=c[2],e=c[3];return t?e?[h,Number(e)]:[h,void 0]:[h,h]}}i.hooks.add("before-highlightall",function(f){f.selector+=", "+j}),i.hooks.add("before-sanity-check",function(f){var c=f.element;if(c.matches(j)){f.code="",c.setAttribute(s,m);var h=c.appendChild(document.createElement("CODE"));h.textContent=g;var t=c.getAttribute("data-src"),e=f.language;if(e==="none"){var a=(/\.(\w+)$/.exec(t)||[,"none"])[1];e=x[a]||a}i.util.setLanguage(h,e),i.util.setLanguage(c,e);var n=i.plugins.autoloader;n&&n.loadLanguages(e),C(t,function(r){c.setAttribute(s,$);var u=O(c.getAttribute("data-range"));if(u){var o=r.split(/\r\n?|\n/g),l=u[0],d=u[1]==null?o.length:u[1];l<0&&(l+=o.length),l=Math.max(0,Math.min(l-1,o.length)),d<0&&(d+=o.length),d=Math.max(0,Math.min(d,o.length)),r=o.slice(l,d).join(`
8
+ */var i=function(g){var p=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,y=0,x={},s={manual:g.Prism&&g.Prism.manual,disableWorkerMessageHandler:g.Prism&&g.Prism.disableWorkerMessageHandler,util:{encode:function t(e){return e instanceof m?new m(e.type,t(e.content),e.alias):Array.isArray(e)?e.map(t):e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(t){return Object.prototype.toString.call(t).slice(8,-1)},objId:function(t){return t.__id||Object.defineProperty(t,"__id",{value:++y}),t.__id},clone:function t(e,a){a=a||{};var n,r;switch(s.util.type(e)){case"Object":if(r=s.util.objId(e),a[r])return a[r];n={},a[r]=n;for(var u in e)e.hasOwnProperty(u)&&(n[u]=t(e[u],a));return n;case"Array":return r=s.util.objId(e),a[r]?a[r]:(n=[],a[r]=n,e.forEach(function(o,l){n[l]=t(o,a)}),n);default:return e}},getLanguage:function(t){for(;t;){var e=p.exec(t.className);if(e)return e[1].toLowerCase();t=t.parentElement}return"none"},setLanguage:function(t,e){t.className=t.className.replace(RegExp(p,"gi"),""),t.classList.add("language-"+e)},currentScript:function(){if(typeof document>"u")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(n){var t=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(n.stack)||[])[1];if(t){var e=document.getElementsByTagName("script");for(var a in e)if(e[a].src==t)return e[a]}return null}},isActive:function(t,e,a){for(var n="no-"+e;t;){var r=t.classList;if(r.contains(e))return!0;if(r.contains(n))return!1;t=t.parentElement}return!!a}},languages:{plain:x,plaintext:x,text:x,txt:x,extend:function(t,e){var a=s.util.clone(s.languages[t]);for(var n in e)a[n]=e[n];return a},insertBefore:function(t,e,a,n){n=n||s.languages;var r=n[t],u={};for(var o in r)if(r.hasOwnProperty(o)){if(o==e)for(var l in a)a.hasOwnProperty(l)&&(u[l]=a[l]);a.hasOwnProperty(o)||(u[o]=r[o])}var d=n[t];return n[t]=u,s.languages.DFS(s.languages,function(v,k){k===d&&v!=t&&(this[v]=u)}),u},DFS:function t(e,a,n,r){r=r||{};var u=s.util.objId;for(var o in e)if(e.hasOwnProperty(o)){a.call(e,o,e[o],n||o);var l=e[o],d=s.util.type(l);d==="Object"&&!r[u(l)]?(r[u(l)]=!0,t(l,a,null,r)):d==="Array"&&!r[u(l)]&&(r[u(l)]=!0,t(l,a,o,r))}}},plugins:{},highlightAll:function(t,e){s.highlightAllUnder(document,t,e)},highlightAllUnder:function(t,e,a){var n={callback:a,container:t,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};s.hooks.run("before-highlightall",n),n.elements=Array.prototype.slice.apply(n.container.querySelectorAll(n.selector)),s.hooks.run("before-all-elements-highlight",n);for(var r=0,u;u=n.elements[r++];)s.highlightElement(u,e===!0,n.callback)},highlightElement:function(t,e,a){var n=s.util.getLanguage(t),r=s.languages[n];s.util.setLanguage(t,n);var u=t.parentElement;u&&u.nodeName.toLowerCase()==="pre"&&s.util.setLanguage(u,n);var o=t.textContent,l={element:t,language:n,grammar:r,code:o};function d(k){l.highlightedCode=k,s.hooks.run("before-insert",l),l.element.innerHTML=l.highlightedCode,s.hooks.run("after-highlight",l),s.hooks.run("complete",l),a&&a.call(l.element)}if(s.hooks.run("before-sanity-check",l),u=l.element.parentElement,u&&u.nodeName.toLowerCase()==="pre"&&!u.hasAttribute("tabindex")&&u.setAttribute("tabindex","0"),!l.code){s.hooks.run("complete",l),a&&a.call(l.element);return}if(s.hooks.run("before-highlight",l),!l.grammar){d(s.util.encode(l.code));return}if(e&&g.Worker){var v=new Worker(s.filename);v.onmessage=function(k){d(k.data)},v.postMessage(JSON.stringify({language:l.language,code:l.code,immediateClose:!0}))}else d(s.highlight(l.code,l.grammar,l.language))},highlight:function(t,e,a){var n={code:t,grammar:e,language:a};if(s.hooks.run("before-tokenize",n),!n.grammar)throw new Error('The language "'+n.language+'" has no grammar.');return n.tokens=s.tokenize(n.code,n.grammar),s.hooks.run("after-tokenize",n),m.stringify(s.util.encode(n.tokens),n.language)},tokenize:function(t,e){var a=e.rest;if(a){for(var n in a)e[n]=a[n];delete e.rest}var r=new j;return C(r,r.head,t),_(t,r,e,r.head,0),z(r)},hooks:{all:{},add:function(t,e){var a=s.hooks.all;a[t]=a[t]||[],a[t].push(e)},run:function(t,e){var a=s.hooks.all[t];if(!(!a||!a.length))for(var n=0,r;r=a[n++];)r(e)}},Token:m};g.Prism=s;function m(t,e,a,n){this.type=t,this.content=e,this.alias=a,this.length=(n||"").length|0}m.stringify=function t(e,a){if(typeof e=="string")return e;if(Array.isArray(e)){var n="";return e.forEach(function(d){n+=t(d,a)}),n}var r={type:e.type,content:t(e.content,a),tag:"span",classes:["token",e.type],attributes:{},language:a},u=e.alias;u&&(Array.isArray(u)?Array.prototype.push.apply(r.classes,u):r.classes.push(u)),s.hooks.run("wrap",r);var o="";for(var l in r.attributes)o+=" "+l+'="'+(r.attributes[l]||"").replace(/"/g,"&quot;")+'"';return"<"+r.tag+' class="'+r.classes.join(" ")+'"'+o+">"+r.content+"</"+r.tag+">"};function $(t,e,a,n){t.lastIndex=e;var r=t.exec(a);if(r&&n&&r[1]){var u=r[1].length;r.index+=u,r[0]=r[0].slice(u)}return r}function _(t,e,a,n,r,u){for(var o in a)if(!(!a.hasOwnProperty(o)||!a[o])){var l=a[o];l=Array.isArray(l)?l:[l];for(var d=0;d<l.length;++d){if(u&&u.cause==o+","+d)return;var v=l[d],k=v.inside,Z=!!v.lookbehind,B=!!v.greedy,K=v.alias;if(B&&!v.pattern.global){var Q=v.pattern.toString().match(/[imsuy]*$/)[0];v.pattern=RegExp(v.pattern.source,Q+"g")}for(var U=v.pattern||v,b=n.next,w=r;b!==e.tail&&!(u&&w>=u.reach);w+=b.value.length,b=b.next){var T=b.value;if(e.length>t.length)return;if(!(T instanceof m)){var L=1,F;if(B){if(F=$(U,w,t,Z),!F||F.index>=t.length)break;var D=F.index,V=F.index+F[0].length,S=w;for(S+=b.value.length;D>=S;)b=b.next,S+=b.value.length;if(S-=b.value.length,w=S,b.value instanceof m)continue;for(var P=b;P!==e.tail&&(S<V||typeof P.value=="string");P=P.next)L++,S+=P.value.length;L--,T=t.slice(w,S),F.index-=w}else if(F=$(U,0,T,Z),!F)continue;var D=F.index,I=F[0],H=T.slice(0,D),W=T.slice(D+I.length),G=w+T.length;u&&G>u.reach&&(u.reach=G);var M=b.prev;H&&(M=C(e,M,H),w+=H.length),O(e,M,L);var ee=new m(o,k?s.tokenize(I,k):I,K,I);if(b=C(e,M,ee),W&&C(e,b,W),L>1){var q={cause:o+","+d,reach:G};_(t,e,a,b.prev,w,q),u&&q.reach>u.reach&&(u.reach=q.reach)}}}}}}function j(){var t={value:null,prev:null,next:null},e={value:null,prev:t,next:null};t.next=e,this.head=t,this.tail=e,this.length=0}function C(t,e,a){var n=e.next,r={value:a,prev:e,next:n};return e.next=r,n.prev=r,t.length++,r}function O(t,e,a){for(var n=e.next,r=0;r<a&&n!==t.tail;r++)n=n.next;e.next=n,n.prev=e,t.length-=r}function z(t){for(var e=[],a=t.head.next;a!==t.tail;)e.push(a.value),a=a.next;return e}if(!g.document)return g.addEventListener&&(s.disableWorkerMessageHandler||g.addEventListener("message",function(t){var e=JSON.parse(t.data),a=e.language,n=e.code,r=e.immediateClose;g.postMessage(s.highlight(n,s.languages[a],a)),r&&g.close()},!1)),s;var f=s.util.currentScript();f&&(s.filename=f.src,f.hasAttribute("data-manual")&&(s.manual=!0));function c(){s.manual||s.highlightAll()}if(!s.manual){var h=document.readyState;h==="loading"||h==="interactive"&&f&&f.defer?document.addEventListener("DOMContentLoaded",c):window.requestAnimationFrame?window.requestAnimationFrame(c):window.setTimeout(c,16)}return s}(R);A.exports&&(A.exports=i),typeof N<"u"&&(N.Prism=i),i.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},i.languages.markup.tag.inside["attr-value"].inside.entity=i.languages.markup.entity,i.languages.markup.doctype.inside["internal-subset"].inside=i.languages.markup,i.hooks.add("wrap",function(g){g.type==="entity"&&(g.attributes.title=g.content.replace(/&amp;/,"&"))}),Object.defineProperty(i.languages.markup.tag,"addInlined",{value:function(p,y){var x={};x["language-"+y]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:i.languages[y]},x.cdata=/^<!\[CDATA\[|\]\]>$/i;var s={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:x}};s["language-"+y]={pattern:/[\s\S]+/,inside:i.languages[y]};var m={};m[p]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return p}),"i"),lookbehind:!0,greedy:!0,inside:s},i.languages.insertBefore("markup","cdata",m)}}),Object.defineProperty(i.languages.markup.tag,"addAttribute",{value:function(g,p){i.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+g+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[p,"language-"+p],inside:i.languages[p]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),i.languages.html=i.languages.markup,i.languages.mathml=i.languages.markup,i.languages.svg=i.languages.markup,i.languages.xml=i.languages.extend("markup",{}),i.languages.ssml=i.languages.xml,i.languages.atom=i.languages.xml,i.languages.rss=i.languages.xml,function(g){var p=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;g.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+p.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+p.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+p.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+p.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:p,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},g.languages.css.atrule.inside.rest=g.languages.css;var y=g.languages.markup;y&&(y.tag.addInlined("style","css"),y.tag.addAttribute("style","css"))}(i),i.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},i.languages.javascript=i.languages.extend("clike",{"class-name":[i.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),i.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,i.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:i.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:i.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:i.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:i.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:i.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),i.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:i.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),i.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),i.languages.markup&&(i.languages.markup.tag.addInlined("script","javascript"),i.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),i.languages.js=i.languages.javascript,function(){if(typeof i>"u"||typeof document>"u")return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var g="Loading…",p=function(f,c){return"✖ Error "+f+" while fetching file: "+c},y="✖ Error: File does not exist or is empty",x={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},s="data-src-status",m="loading",$="loaded",_="failed",j="pre[data-src]:not(["+s+'="'+$+'"]):not(['+s+'="'+m+'"])';function C(f,c,h){var t=new XMLHttpRequest;t.open("GET",f,!0),t.onreadystatechange=function(){t.readyState==4&&(t.status<400&&t.responseText?c(t.responseText):t.status>=400?h(p(t.status,t.statusText)):h(y))},t.send(null)}function O(f){var c=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(f||"");if(c){var h=Number(c[1]),t=c[2],e=c[3];return t?e?[h,Number(e)]:[h,void 0]:[h,h]}}i.hooks.add("before-highlightall",function(f){f.selector+=", "+j}),i.hooks.add("before-sanity-check",function(f){var c=f.element;if(c.matches(j)){f.code="",c.setAttribute(s,m);var h=c.appendChild(document.createElement("CODE"));h.textContent=g;var t=c.getAttribute("data-src"),e=f.language;if(e==="none"){var a=(/\.(\w+)$/.exec(t)||[,"none"])[1];e=x[a]||a}i.util.setLanguage(h,e),i.util.setLanguage(c,e);var n=i.plugins.autoloader;n&&n.loadLanguages(e),C(t,function(r){c.setAttribute(s,$);var u=O(c.getAttribute("data-range"));if(u){var o=r.split(/\r\n?|\n/g),l=u[0],d=u[1]==null?o.length:u[1];l<0&&(l+=o.length),l=Math.max(0,Math.min(l-1,o.length)),d<0&&(d+=o.length),d=Math.max(0,Math.min(d,o.length)),r=o.slice(l,d).join(`
9
9
  `),c.hasAttribute("data-start")||c.setAttribute("data-start",String(l+1))}h.textContent=r,i.highlightElement(h)},function(r){c.setAttribute(s,_),h.textContent=r})}}),i.plugins.fileHighlight={highlight:function(c){for(var h=(c||document).querySelectorAll(j),t=0,e;e=h[t++];)i.highlightElement(e)}};var z=!1;i.fileHighlight=function(){z||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),z=!0),i.plugins.fileHighlight.highlight.apply(this,arguments)}}()})(J);var ne=J.exports;const re=te(ne);Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/};Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python;Prism.languages.py=Prism.languages.python;function ie({code:A}){return Y.useEffect(()=>{re.highlightAll()},[]),E.jsx("code",{className:"language-python",children:A})}function oe({code:A,wrap:R=!1,fullWidth:i=!1,highlightCode:g=!1,className:p,codeClasses:y}){const[x,s]=Y.useState(!1);async function m($){try{await navigator.clipboard.writeText($),s(!0),setTimeout(()=>{s(!1)},2e3)}catch(_){console.error("Failed to copy:",_)}}return E.jsxs("div",{className:X(`flex ${i?"w-full":"max-w-fit"} justify-between gap-4 rounded-md border border-theme-border-moderate bg-theme-surface-tertiary px-4 py-3`,p),children:[E.jsx("pre",{className:X(`${R?"":"whitespace-nowrap"} overflow-auto text-left font-mono text-theme-text-primary`,y),children:g?E.jsx(ie,{code:A}):E.jsx("code",{children:A})}),E.jsx("button",{onClick:()=>m(A),children:x?E.jsx("p",{children:"Copied!"}):E.jsx(ae,{className:"fill-neutral-500",width:24,height:24})})]})}export{oe as C};
@@ -0,0 +1 @@
1
+ import{r as p,j as e}from"./@radix-DnFH_oo1.js";import{a7 as m,a5 as c,a8 as d,aa as x,X as b}from"./index-B9wVwe7u.js";import{S as f}from"./chevron-down-Cwb-W_B_.js";function g({title:r,children:s,initialOpen:o=!1,className:l,contentClassName:t,intent:n="primary"}){const[a,i]=p.useState(o);return e.jsxs(m,{className:l,open:a,onOpenChange:i,children:[e.jsx(c,{intent:n,children:e.jsxs(d,{className:"flex w-full items-center gap-[10px]",children:[e.jsx(f,{className:` ${a?"":"-rotate-90"} h-5 w-5 rounded-md fill-neutral-500 transition-transform duration-200 hover:bg-neutral-200`}),r]})}),e.jsx(x,{className:b("space-y-3 border-t border-theme-border-moderate bg-theme-surface-primary px-5 py-3",t),children:s})]})}export{g as C};
@@ -1 +1 @@
1
- import{r as a,j as e}from"./@radix-DnFH_oo1.js";import{a0 as c,a1 as t,h as l,a2 as d,a4 as n,a7 as C,a8 as m}from"./index-Davdjm1d.js";import{C as x}from"./CodeSnippet-i_WEOWw9.js";const h=s=>a.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...s},a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3ZM1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12ZM11.2451 7.43304C11.2546 7.43912 11.264 7.44517 11.2734 7.45121L15.994 10.4859C16.0026 10.4914 16.0112 10.497 16.02 10.5026C16.171 10.5996 16.3361 10.7057 16.4676 10.8083C16.6071 10.917 16.8273 11.1089 16.9571 11.4162C17.1148 11.7894 17.1148 12.2106 16.9571 12.5838C16.8273 12.8911 16.6071 13.083 16.4676 13.1917C16.3361 13.2943 16.171 13.4004 16.02 13.4974C16.0112 13.503 16.0026 13.5086 15.994 13.5141L11.2734 16.5488C11.264 16.5548 11.2545 16.5609 11.2451 16.567C11.0694 16.68 10.8846 16.7988 10.7219 16.8835C10.5582 16.9687 10.2611 17.1066 9.89314 17.0804C9.45914 17.0494 9.05999 16.8314 8.79923 16.4831C8.57813 16.1878 8.5335 15.8633 8.51664 15.6796C8.49989 15.4969 8.49995 15.2772 8.49999 15.0683C8.5 15.057 8.5 15.0458 8.5 15.0347V8.96533C8.5 8.95417 8.5 8.94296 8.49999 8.93173C8.49995 8.72279 8.49989 8.50311 8.51664 8.32042C8.5335 8.13665 8.57813 7.81219 8.79923 7.51687C9.05999 7.16856 9.45914 6.95064 9.89314 6.91964C10.2611 6.89336 10.5582 7.03127 10.7219 7.11647C10.8846 7.20117 11.0694 7.32001 11.2451 7.43304ZM10.5 9.33167V14.6683L14.6507 12L10.5 9.33167Z"}));function g({videoLink:s,isButton:r=!0,buttonText:i,fallbackImage:o}){return e.jsxs(c,{children:[r?e.jsx(t,{asChild:!0,children:e.jsxs(l,{className:"mt-5 h-auto gap-1 px-2 py-1 sm:h-7",size:"md",children:[e.jsx(h,{className:"h-5 w-5 shrink-0 fill-white"}),i??e.jsx(e.Fragment,{children:"Watch the Quickstart Guide (3 min)"})]})}):e.jsx(t,{children:o}),e.jsxs(d,{className:"max-w-[1000px]",children:[e.jsx("div",{className:"flex items-center justify-between border-b border-theme-border-moderate py-2 pl-5 pr-3",children:e.jsx(n,{className:"text-text-lg",children:"Get Started"})}),e.jsx("div",{className:"",children:e.jsx("iframe",{className:"aspect-video w-full overflow-hidden",src:s,allowFullScreen:!0,allow:"fullscreen"})}),e.jsx(C,{children:e.jsx(m,{asChild:!0,children:e.jsx(l,{size:"md",children:"Close"})})})]})]})}function w(s){return e.jsxs("div",{className:"space-y-1",children:[e.jsx("p",{className:"text-text-sm text-theme-text-secondary",children:s.description}),e.jsx(x,{codeClasses:"whitespace-pre-wrap",wrap:!0,code:s.command})]})}export{g as V,w as g};
1
+ import{r as a,j as e}from"./@radix-DnFH_oo1.js";import{ae as c,af as l,f as t,ag as d,ai as n,al as C,am as m}from"./index-B9wVwe7u.js";import{C as x}from"./CodeSnippet-DNWdQmbo.js";const h=s=>a.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...s},a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3ZM1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12ZM11.2451 7.43304C11.2546 7.43912 11.264 7.44517 11.2734 7.45121L15.994 10.4859C16.0026 10.4914 16.0112 10.497 16.02 10.5026C16.171 10.5996 16.3361 10.7057 16.4676 10.8083C16.6071 10.917 16.8273 11.1089 16.9571 11.4162C17.1148 11.7894 17.1148 12.2106 16.9571 12.5838C16.8273 12.8911 16.6071 13.083 16.4676 13.1917C16.3361 13.2943 16.171 13.4004 16.02 13.4974C16.0112 13.503 16.0026 13.5086 15.994 13.5141L11.2734 16.5488C11.264 16.5548 11.2545 16.5609 11.2451 16.567C11.0694 16.68 10.8846 16.7988 10.7219 16.8835C10.5582 16.9687 10.2611 17.1066 9.89314 17.0804C9.45914 17.0494 9.05999 16.8314 8.79923 16.4831C8.57813 16.1878 8.5335 15.8633 8.51664 15.6796C8.49989 15.4969 8.49995 15.2772 8.49999 15.0683C8.5 15.057 8.5 15.0458 8.5 15.0347V8.96533C8.5 8.95417 8.5 8.94296 8.49999 8.93173C8.49995 8.72279 8.49989 8.50311 8.51664 8.32042C8.5335 8.13665 8.57813 7.81219 8.79923 7.51687C9.05999 7.16856 9.45914 6.95064 9.89314 6.91964C10.2611 6.89336 10.5582 7.03127 10.7219 7.11647C10.8846 7.20117 11.0694 7.32001 11.2451 7.43304ZM10.5 9.33167V14.6683L14.6507 12L10.5 9.33167Z"}));function g({videoLink:s,isButton:r=!0,buttonText:i,fallbackImage:o}){return e.jsxs(c,{children:[r?e.jsx(l,{asChild:!0,children:e.jsxs(t,{className:"mt-5 h-auto gap-1 px-2 py-1 sm:h-7",size:"md",children:[e.jsx(h,{className:"h-5 w-5 shrink-0 fill-white"}),i??e.jsx(e.Fragment,{children:"Watch the Quickstart Guide (3 min)"})]})}):e.jsx(l,{children:o}),e.jsxs(d,{className:"max-w-[1000px]",children:[e.jsx("div",{className:"flex items-center justify-between border-b border-theme-border-moderate py-2 pl-5 pr-3",children:e.jsx(n,{className:"text-text-lg",children:"Get Started"})}),e.jsx("div",{className:"",children:e.jsx("iframe",{className:"aspect-video w-full overflow-hidden",src:s,allowFullScreen:!0,allow:"fullscreen"})}),e.jsx(C,{children:e.jsx(m,{asChild:!0,children:e.jsx(t,{size:"md",children:"Close"})})})]})]})}function f(s){return e.jsxs("div",{className:"space-y-1",children:[e.jsx("p",{className:"text-text-sm text-theme-text-secondary",children:s.description}),e.jsx(x,{codeClasses:"whitespace-pre-wrap",wrap:!0,code:s.command})]})}export{g as V,f as g};
@@ -0,0 +1,2 @@
1
+ import{r as a,j as e}from"./@radix-DnFH_oo1.js";import{T as d,G as u,H as m,J as x}from"./index-B9wVwe7u.js";import{S as f}from"./copy-CaGlDsUy.js";function v({copyText:s,isVisible:o,copyTitle:n}){const r=a.useRef(null),[p,i]=a.useState(!1),l=o?n:"Copy to Clipboard",c=()=>{navigator.clipboard&&(navigator.clipboard.writeText(s),i(!0),setTimeout(()=>{i(!1)},2e3))};return e.jsx(d,{children:e.jsxs(u,{delayDuration:200,children:[e.jsxs(m,{className:`${o?"":"invisible opacity-0 group-hover/copybutton:opacity-100"} h-4 w-4 rounded-sm p-0.25 transition-all
2
+ duration-200 hover:bg-theme-surface-primary active:bg-neutral-300 group-hover/copybutton:visible `,onClick:t=>{t.preventDefault(),c()},ref:r,children:[e.jsx("span",{className:"sr-only",children:"Copy to Clipboard"}),e.jsx(f,{className:`${o?"h-5 w-5":"h-3 w-3"} pointer-events-none fill-theme-text-tertiary`})]}),e.jsx(x,{onPointerDownOutside:t=>{t.currentTarget===r.current&&t.preventDefault()},className:"z-50 rounded-md bg-theme-text-primary px-3 py-2 text-text-xs text-theme-text-negative shadow-lg",sideOffset:5,children:p?"Copied!":l})]})})}export{v as C};
@@ -1,15 +1,15 @@
1
- import{c as we,r as pe,j as Z}from"./@radix-DnFH_oo1.js";import{aV as Ce,aW as xe,aX as ke,aY as Re,aZ as Oe,a_ as Te}from"./index-Davdjm1d.js";import"./@tanstack-QbMbTrh5.js";import"./@react-router-APVeuk-U.js";import"./@reactflow-IuMOnBUC.js";var be={exports:{}};/* @license
1
+ import{c as we,r as pe,j as G}from"./@radix-DnFH_oo1.js";import{aY as Ce,aZ as xe,a_ as ke,a$ as Re,b0 as Oe,b1 as Te}from"./index-B9wVwe7u.js";import"./@tanstack-QbMbTrh5.js";import"./@react-router-APVeuk-U.js";import"./@reactflow-B6kq9fJZ.js";var be={exports:{}};/* @license
2
2
  Papa Parse
3
3
  v5.4.1
4
4
  https://github.com/mholt/PapaParse
5
5
  License: MIT
6
- */(function(se,ge){(function(ae,v){se.exports=v()})(we,function ae(){var v=typeof self<"u"?self:typeof window<"u"?window:v!==void 0?v:{},G=!v.document&&!!v.postMessage,B=v.IS_PAPA_WORKER||!1,U={},ee=0,h={parse:function(t,e){var r=(e=e||{}).dynamicTyping||!1;if(p(r)&&(e.dynamicTypingFunction=r,r={}),e.dynamicTyping=r,e.transform=!!p(e.transform)&&e.transform,e.worker&&h.WORKERS_SUPPORTED){var i=function(){if(!h.WORKERS_SUPPORTED)return!1;var f=(A=v.URL||v.webkitURL||null,b=ae.toString(),h.BLOB_URL||(h.BLOB_URL=A.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",b,")();"],{type:"text/javascript"})))),d=new v.Worker(f),A,b;return d.onmessage=Ee,d.id=ee++,U[d.id]=d}();return i.userStep=e.step,i.userChunk=e.chunk,i.userComplete=e.complete,i.userError=e.error,e.step=p(e.step),e.chunk=p(e.chunk),e.complete=p(e.complete),e.error=p(e.error),delete e.worker,void i.postMessage({input:t,config:e,workerId:i.id})}var s=null;return h.NODE_STREAM_INPUT,typeof t=="string"?(t=function(f){return f.charCodeAt(0)===65279?f.slice(1):f}(t),s=e.download?new oe(e):new ie(e)):t.readable===!0&&p(t.read)&&p(t.on)?s=new he(e):(v.File&&t instanceof File||t instanceof Object)&&(s=new ue(e)),s.stream(t)},unparse:function(t,e){var r=!1,i=!0,s=",",f=`\r
6
+ */(function(se,ge){(function(ae,v){se.exports=v()})(we,function ae(){var v=typeof self<"u"?self:typeof window<"u"?window:v!==void 0?v:{},V=!v.document&&!!v.postMessage,B=v.IS_PAPA_WORKER||!1,U={},ee=0,h={parse:function(t,e){var r=(e=e||{}).dynamicTyping||!1;if(p(r)&&(e.dynamicTypingFunction=r,r={}),e.dynamicTyping=r,e.transform=!!p(e.transform)&&e.transform,e.worker&&h.WORKERS_SUPPORTED){var i=function(){if(!h.WORKERS_SUPPORTED)return!1;var f=(A=v.URL||v.webkitURL||null,b=ae.toString(),h.BLOB_URL||(h.BLOB_URL=A.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",b,")();"],{type:"text/javascript"})))),d=new v.Worker(f),A,b;return d.onmessage=Ee,d.id=ee++,U[d.id]=d}();return i.userStep=e.step,i.userChunk=e.chunk,i.userComplete=e.complete,i.userError=e.error,e.step=p(e.step),e.chunk=p(e.chunk),e.complete=p(e.complete),e.error=p(e.error),delete e.worker,void i.postMessage({input:t,config:e,workerId:i.id})}var s=null;return h.NODE_STREAM_INPUT,typeof t=="string"?(t=function(f){return f.charCodeAt(0)===65279?f.slice(1):f}(t),s=e.download?new oe(e):new ie(e)):t.readable===!0&&p(t.read)&&p(t.on)?s=new he(e):(v.File&&t instanceof File||t instanceof Object)&&(s=new ue(e)),s.stream(t)},unparse:function(t,e){var r=!1,i=!0,s=",",f=`\r
7
7
  `,d='"',A=d+d,b=!1,a=null,w=!1;(function(){if(typeof e=="object"){if(typeof e.delimiter!="string"||h.BAD_DELIMITERS.filter(function(n){return e.delimiter.indexOf(n)!==-1}).length||(s=e.delimiter),(typeof e.quotes=="boolean"||typeof e.quotes=="function"||Array.isArray(e.quotes))&&(r=e.quotes),typeof e.skipEmptyLines!="boolean"&&typeof e.skipEmptyLines!="string"||(b=e.skipEmptyLines),typeof e.newline=="string"&&(f=e.newline),typeof e.quoteChar=="string"&&(d=e.quoteChar),typeof e.header=="boolean"&&(i=e.header),Array.isArray(e.columns)){if(e.columns.length===0)throw new Error("Option columns is empty");a=e.columns}e.escapeChar!==void 0&&(A=e.escapeChar+d),(typeof e.escapeFormulae=="boolean"||e.escapeFormulae instanceof RegExp)&&(w=e.escapeFormulae instanceof RegExp?e.escapeFormulae:/^[=+\-@\t\r].*$/)}})();var u=new RegExp(ne(d),"g");if(typeof t=="string"&&(t=JSON.parse(t)),Array.isArray(t)){if(!t.length||Array.isArray(t[0]))return P(null,t,b);if(typeof t[0]=="object")return P(a||Object.keys(t[0]),t,b)}else if(typeof t=="object")return typeof t.data=="string"&&(t.data=JSON.parse(t.data)),Array.isArray(t.data)&&(t.fields||(t.fields=t.meta&&t.meta.fields||a),t.fields||(t.fields=Array.isArray(t.data[0])?t.fields:typeof t.data[0]=="object"?Object.keys(t.data[0]):[]),Array.isArray(t.data[0])||typeof t.data[0]=="object"||(t.data=[t.data])),P(t.fields||[],t.data||[],b);throw new Error("Unable to serialize unrecognized input");function P(n,m,D){var E="";typeof n=="string"&&(n=JSON.parse(n)),typeof m=="string"&&(m=JSON.parse(m));var I=Array.isArray(n)&&0<n.length,O=!Array.isArray(m[0]);if(I&&i){for(var T=0;T<n.length;T++)0<T&&(E+=s),E+=S(n[T],T);0<m.length&&(E+=f)}for(var o=0;o<m.length;o++){var l=I?n.length:m[o].length,y=!1,R=I?Object.keys(m[o]).length===0:m[o].length===0;if(D&&!I&&(y=D==="greedy"?m[o].join("").trim()==="":m[o].length===1&&m[o][0].length===0),D==="greedy"&&I){for(var g=[],L=0;L<l;L++){var C=O?n[L]:L;g.push(m[o][C])}y=g.join("").trim()===""}if(!y){for(var _=0;_<l;_++){0<_&&!R&&(E+=s);var q=I&&O?n[_]:_;E+=S(m[o][q],_)}o<m.length-1&&(!D||0<l&&!R)&&(E+=f)}}return E}function S(n,m){if(n==null)return"";if(n.constructor===Date)return JSON.stringify(n).slice(1,25);var D=!1;w&&typeof n=="string"&&w.test(n)&&(n="'"+n,D=!0);var E=n.toString().replace(u,A);return(D=D||r===!0||typeof r=="function"&&r(n,m)||Array.isArray(r)&&r[m]||function(I,O){for(var T=0;T<O.length;T++)if(-1<I.indexOf(O[T]))return!0;return!1}(E,h.BAD_DELIMITERS)||-1<E.indexOf(s)||E.charAt(0)===" "||E.charAt(E.length-1)===" ")?d+E+d:E}}};if(h.RECORD_SEP="",h.UNIT_SEP="",h.BYTE_ORDER_MARK="\uFEFF",h.BAD_DELIMITERS=["\r",`
8
- `,'"',h.BYTE_ORDER_MARK],h.WORKERS_SUPPORTED=!G&&!!v.Worker,h.NODE_STREAM_INPUT=1,h.LocalChunkSize=10485760,h.RemoteChunkSize=5242880,h.DefaultDelimiter=",",h.Parser=de,h.ParserHandle=_e,h.NetworkStreamer=oe,h.FileStreamer=ue,h.StringStreamer=ie,h.ReadableStreamStreamer=he,v.jQuery){var re=v.jQuery;re.fn.parse=function(t){var e=t.config||{},r=[];return this.each(function(f){if(!(re(this).prop("tagName").toUpperCase()==="INPUT"&&re(this).attr("type").toLowerCase()==="file"&&v.FileReader)||!this.files||this.files.length===0)return!0;for(var d=0;d<this.files.length;d++)r.push({file:this.files[d],inputElem:this,instanceConfig:re.extend({},e)})}),i(),this;function i(){if(r.length!==0){var f,d,A,b,a=r[0];if(p(t.before)){var w=t.before(a.file,a.inputElem);if(typeof w=="object"){if(w.action==="abort")return f="AbortError",d=a.file,A=a.inputElem,b=w.reason,void(p(t.error)&&t.error({name:f},d,A,b));if(w.action==="skip")return void s();typeof w.config=="object"&&(a.instanceConfig=re.extend(a.instanceConfig,w.config))}else if(w==="skip")return void s()}var u=a.instanceConfig.complete;a.instanceConfig.complete=function(P){p(u)&&u(P,a.file,a.inputElem),s()},h.parse(a.file,a.instanceConfig)}else p(t.complete)&&t.complete()}function s(){r.splice(0,1),i()}}}function W(t){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},(function(e){var r=le(e);r.chunkSize=parseInt(r.chunkSize),e.step||e.chunk||(r.chunkSize=null),this._handle=new _e(r),(this._handle.streamer=this)._config=r}).call(this,t),this.parseChunk=function(e,r){if(this.isFirstChunk&&p(this._config.beforeFirstChunk)){var i=this._config.beforeFirstChunk(e);i!==void 0&&(e=i)}this.isFirstChunk=!1,this._halted=!1;var s=this._partialLine+e;this._partialLine="";var f=this._handle.parse(s,this._baseIndex,!this._finished);if(!this._handle.paused()&&!this._handle.aborted()){var d=f.meta.cursor;this._finished||(this._partialLine=s.substring(d-this._baseIndex),this._baseIndex=d),f&&f.data&&(this._rowCount+=f.data.length);var A=this._finished||this._config.preview&&this._rowCount>=this._config.preview;if(B)v.postMessage({results:f,workerId:h.WORKER_ID,finished:A});else if(p(this._config.chunk)&&!r){if(this._config.chunk(f,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);f=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(f.data),this._completeResults.errors=this._completeResults.errors.concat(f.errors),this._completeResults.meta=f.meta),this._completed||!A||!p(this._config.complete)||f&&f.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),A||f&&f.meta.paused||this._nextChunk(),f}this._halted=!0},this._sendError=function(e){p(this._config.error)?this._config.error(e):B&&this._config.error&&v.postMessage({workerId:h.WORKER_ID,error:e,finished:!1})}}function oe(t){var e;(t=t||{}).chunkSize||(t.chunkSize=h.RemoteChunkSize),W.call(this,t),this._nextChunk=G?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(r){this._input=r,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(e=new XMLHttpRequest,this._config.withCredentials&&(e.withCredentials=this._config.withCredentials),G||(e.onload=Q(this._chunkLoaded,this),e.onerror=Q(this._chunkError,this)),e.open(this._config.downloadRequestBody?"POST":"GET",this._input,!G),this._config.downloadRequestHeaders){var r=this._config.downloadRequestHeaders;for(var i in r)e.setRequestHeader(i,r[i])}if(this._config.chunkSize){var s=this._start+this._config.chunkSize-1;e.setRequestHeader("Range","bytes="+this._start+"-"+s)}try{e.send(this._config.downloadRequestBody)}catch(f){this._chunkError(f.message)}G&&e.status===0&&this._chunkError()}},this._chunkLoaded=function(){e.readyState===4&&(e.status<200||400<=e.status?this._chunkError():(this._start+=this._config.chunkSize?this._config.chunkSize:e.responseText.length,this._finished=!this._config.chunkSize||this._start>=function(r){var i=r.getResponseHeader("Content-Range");return i===null?-1:parseInt(i.substring(i.lastIndexOf("/")+1))}(e),this.parseChunk(e.responseText)))},this._chunkError=function(r){var i=e.statusText||r;this._sendError(new Error(i))}}function ue(t){var e,r;(t=t||{}).chunkSize||(t.chunkSize=h.LocalChunkSize),W.call(this,t);var i=typeof FileReader<"u";this.stream=function(s){this._input=s,r=s.slice||s.webkitSlice||s.mozSlice,i?((e=new FileReader).onload=Q(this._chunkLoaded,this),e.onerror=Q(this._chunkError,this)):e=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var s=this._input;if(this._config.chunkSize){var f=Math.min(this._start+this._config.chunkSize,this._input.size);s=r.call(s,this._start,f)}var d=e.readAsText(s,this._config.encoding);i||this._chunkLoaded({target:{result:d}})},this._chunkLoaded=function(s){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(s.target.result)},this._chunkError=function(){this._sendError(e.error)}}function ie(t){var e;W.call(this,t=t||{}),this.stream=function(r){return e=r,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var r,i=this._config.chunkSize;return i?(r=e.substring(0,i),e=e.substring(i)):(r=e,e=""),this._finished=!e,this.parseChunk(r)}}}function he(t){W.call(this,t=t||{});var e=[],r=!0,i=!1;this.pause=function(){W.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){W.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(s){this._input=s,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){i&&e.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),e.length?this.parseChunk(e.shift()):r=!0},this._streamData=Q(function(s){try{e.push(typeof s=="string"?s:s.toString(this._config.encoding)),r&&(r=!1,this._checkIsFinished(),this.parseChunk(e.shift()))}catch(f){this._streamError(f)}},this),this._streamError=Q(function(s){this._streamCleanUp(),this._sendError(s)},this),this._streamEnd=Q(function(){this._streamCleanUp(),i=!0,this._streamData("")},this),this._streamCleanUp=Q(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function _e(t){var e,r,i,s=Math.pow(2,53),f=-s,d=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,A=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,b=this,a=0,w=0,u=!1,P=!1,S=[],n={data:[],errors:[],meta:{}};if(p(t.step)){var m=t.step;t.step=function(o){if(n=o,I())E();else{if(E(),n.data.length===0)return;a+=o.data.length,t.preview&&a>t.preview?r.abort():(n.data=n.data[0],m(n,b))}}}function D(o){return t.skipEmptyLines==="greedy"?o.join("").trim()==="":o.length===1&&o[0].length===0}function E(){return n&&i&&(T("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+h.DefaultDelimiter+"'"),i=!1),t.skipEmptyLines&&(n.data=n.data.filter(function(o){return!D(o)})),I()&&function(){if(!n)return;function o(y,R){p(t.transformHeader)&&(y=t.transformHeader(y,R)),S.push(y)}if(Array.isArray(n.data[0])){for(var l=0;I()&&l<n.data.length;l++)n.data[l].forEach(o);n.data.splice(0,1)}else n.data.forEach(o)}(),function(){if(!n||!t.header&&!t.dynamicTyping&&!t.transform)return n;function o(y,R){var g,L=t.header?{}:[];for(g=0;g<y.length;g++){var C=g,_=y[g];t.header&&(C=g>=S.length?"__parsed_extra":S[g]),t.transform&&(_=t.transform(_,C)),_=O(C,_),C==="__parsed_extra"?(L[C]=L[C]||[],L[C].push(_)):L[C]=_}return t.header&&(g>S.length?T("FieldMismatch","TooManyFields","Too many fields: expected "+S.length+" fields but parsed "+g,w+R):g<S.length&&T("FieldMismatch","TooFewFields","Too few fields: expected "+S.length+" fields but parsed "+g,w+R)),L}var l=1;return!n.data.length||Array.isArray(n.data[0])?(n.data=n.data.map(o),l=n.data.length):n.data=o(n.data,0),t.header&&n.meta&&(n.meta.fields=S),w+=l,n}()}function I(){return t.header&&S.length===0}function O(o,l){return y=o,t.dynamicTypingFunction&&t.dynamicTyping[y]===void 0&&(t.dynamicTyping[y]=t.dynamicTypingFunction(y)),(t.dynamicTyping[y]||t.dynamicTyping)===!0?l==="true"||l==="TRUE"||l!=="false"&&l!=="FALSE"&&(function(R){if(d.test(R)){var g=parseFloat(R);if(f<g&&g<s)return!0}return!1}(l)?parseFloat(l):A.test(l)?new Date(l):l===""?null:l):l;var y}function T(o,l,y,R){var g={type:o,code:l,message:y};R!==void 0&&(g.row=R),n.errors.push(g)}this.parse=function(o,l,y){var R=t.quoteChar||'"';if(t.newline||(t.newline=function(C,_){C=C.substring(0,1048576);var q=new RegExp(ne(_)+"([^]*?)"+ne(_),"gm"),F=(C=C.replace(q,"")).split("\r"),N=C.split(`
9
- `),H=1<N.length&&N[0].length<F[0].length;if(F.length===1||H)return`
8
+ `,'"',h.BYTE_ORDER_MARK],h.WORKERS_SUPPORTED=!V&&!!v.Worker,h.NODE_STREAM_INPUT=1,h.LocalChunkSize=10485760,h.RemoteChunkSize=5242880,h.DefaultDelimiter=",",h.Parser=de,h.ParserHandle=_e,h.NetworkStreamer=oe,h.FileStreamer=ue,h.StringStreamer=ie,h.ReadableStreamStreamer=he,v.jQuery){var re=v.jQuery;re.fn.parse=function(t){var e=t.config||{},r=[];return this.each(function(f){if(!(re(this).prop("tagName").toUpperCase()==="INPUT"&&re(this).attr("type").toLowerCase()==="file"&&v.FileReader)||!this.files||this.files.length===0)return!0;for(var d=0;d<this.files.length;d++)r.push({file:this.files[d],inputElem:this,instanceConfig:re.extend({},e)})}),i(),this;function i(){if(r.length!==0){var f,d,A,b,a=r[0];if(p(t.before)){var w=t.before(a.file,a.inputElem);if(typeof w=="object"){if(w.action==="abort")return f="AbortError",d=a.file,A=a.inputElem,b=w.reason,void(p(t.error)&&t.error({name:f},d,A,b));if(w.action==="skip")return void s();typeof w.config=="object"&&(a.instanceConfig=re.extend(a.instanceConfig,w.config))}else if(w==="skip")return void s()}var u=a.instanceConfig.complete;a.instanceConfig.complete=function(P){p(u)&&u(P,a.file,a.inputElem),s()},h.parse(a.file,a.instanceConfig)}else p(t.complete)&&t.complete()}function s(){r.splice(0,1),i()}}}function H(t){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},(function(e){var r=le(e);r.chunkSize=parseInt(r.chunkSize),e.step||e.chunk||(r.chunkSize=null),this._handle=new _e(r),(this._handle.streamer=this)._config=r}).call(this,t),this.parseChunk=function(e,r){if(this.isFirstChunk&&p(this._config.beforeFirstChunk)){var i=this._config.beforeFirstChunk(e);i!==void 0&&(e=i)}this.isFirstChunk=!1,this._halted=!1;var s=this._partialLine+e;this._partialLine="";var f=this._handle.parse(s,this._baseIndex,!this._finished);if(!this._handle.paused()&&!this._handle.aborted()){var d=f.meta.cursor;this._finished||(this._partialLine=s.substring(d-this._baseIndex),this._baseIndex=d),f&&f.data&&(this._rowCount+=f.data.length);var A=this._finished||this._config.preview&&this._rowCount>=this._config.preview;if(B)v.postMessage({results:f,workerId:h.WORKER_ID,finished:A});else if(p(this._config.chunk)&&!r){if(this._config.chunk(f,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);f=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(f.data),this._completeResults.errors=this._completeResults.errors.concat(f.errors),this._completeResults.meta=f.meta),this._completed||!A||!p(this._config.complete)||f&&f.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),A||f&&f.meta.paused||this._nextChunk(),f}this._halted=!0},this._sendError=function(e){p(this._config.error)?this._config.error(e):B&&this._config.error&&v.postMessage({workerId:h.WORKER_ID,error:e,finished:!1})}}function oe(t){var e;(t=t||{}).chunkSize||(t.chunkSize=h.RemoteChunkSize),H.call(this,t),this._nextChunk=V?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(r){this._input=r,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(e=new XMLHttpRequest,this._config.withCredentials&&(e.withCredentials=this._config.withCredentials),V||(e.onload=Q(this._chunkLoaded,this),e.onerror=Q(this._chunkError,this)),e.open(this._config.downloadRequestBody?"POST":"GET",this._input,!V),this._config.downloadRequestHeaders){var r=this._config.downloadRequestHeaders;for(var i in r)e.setRequestHeader(i,r[i])}if(this._config.chunkSize){var s=this._start+this._config.chunkSize-1;e.setRequestHeader("Range","bytes="+this._start+"-"+s)}try{e.send(this._config.downloadRequestBody)}catch(f){this._chunkError(f.message)}V&&e.status===0&&this._chunkError()}},this._chunkLoaded=function(){e.readyState===4&&(e.status<200||400<=e.status?this._chunkError():(this._start+=this._config.chunkSize?this._config.chunkSize:e.responseText.length,this._finished=!this._config.chunkSize||this._start>=function(r){var i=r.getResponseHeader("Content-Range");return i===null?-1:parseInt(i.substring(i.lastIndexOf("/")+1))}(e),this.parseChunk(e.responseText)))},this._chunkError=function(r){var i=e.statusText||r;this._sendError(new Error(i))}}function ue(t){var e,r;(t=t||{}).chunkSize||(t.chunkSize=h.LocalChunkSize),H.call(this,t);var i=typeof FileReader<"u";this.stream=function(s){this._input=s,r=s.slice||s.webkitSlice||s.mozSlice,i?((e=new FileReader).onload=Q(this._chunkLoaded,this),e.onerror=Q(this._chunkError,this)):e=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var s=this._input;if(this._config.chunkSize){var f=Math.min(this._start+this._config.chunkSize,this._input.size);s=r.call(s,this._start,f)}var d=e.readAsText(s,this._config.encoding);i||this._chunkLoaded({target:{result:d}})},this._chunkLoaded=function(s){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(s.target.result)},this._chunkError=function(){this._sendError(e.error)}}function ie(t){var e;H.call(this,t=t||{}),this.stream=function(r){return e=r,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var r,i=this._config.chunkSize;return i?(r=e.substring(0,i),e=e.substring(i)):(r=e,e=""),this._finished=!e,this.parseChunk(r)}}}function he(t){H.call(this,t=t||{});var e=[],r=!0,i=!1;this.pause=function(){H.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){H.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(s){this._input=s,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){i&&e.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),e.length?this.parseChunk(e.shift()):r=!0},this._streamData=Q(function(s){try{e.push(typeof s=="string"?s:s.toString(this._config.encoding)),r&&(r=!1,this._checkIsFinished(),this.parseChunk(e.shift()))}catch(f){this._streamError(f)}},this),this._streamError=Q(function(s){this._streamCleanUp(),this._sendError(s)},this),this._streamEnd=Q(function(){this._streamCleanUp(),i=!0,this._streamData("")},this),this._streamCleanUp=Q(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function _e(t){var e,r,i,s=Math.pow(2,53),f=-s,d=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,A=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,b=this,a=0,w=0,u=!1,P=!1,S=[],n={data:[],errors:[],meta:{}};if(p(t.step)){var m=t.step;t.step=function(o){if(n=o,I())E();else{if(E(),n.data.length===0)return;a+=o.data.length,t.preview&&a>t.preview?r.abort():(n.data=n.data[0],m(n,b))}}}function D(o){return t.skipEmptyLines==="greedy"?o.join("").trim()==="":o.length===1&&o[0].length===0}function E(){return n&&i&&(T("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+h.DefaultDelimiter+"'"),i=!1),t.skipEmptyLines&&(n.data=n.data.filter(function(o){return!D(o)})),I()&&function(){if(!n)return;function o(y,R){p(t.transformHeader)&&(y=t.transformHeader(y,R)),S.push(y)}if(Array.isArray(n.data[0])){for(var l=0;I()&&l<n.data.length;l++)n.data[l].forEach(o);n.data.splice(0,1)}else n.data.forEach(o)}(),function(){if(!n||!t.header&&!t.dynamicTyping&&!t.transform)return n;function o(y,R){var g,L=t.header?{}:[];for(g=0;g<y.length;g++){var C=g,_=y[g];t.header&&(C=g>=S.length?"__parsed_extra":S[g]),t.transform&&(_=t.transform(_,C)),_=O(C,_),C==="__parsed_extra"?(L[C]=L[C]||[],L[C].push(_)):L[C]=_}return t.header&&(g>S.length?T("FieldMismatch","TooManyFields","Too many fields: expected "+S.length+" fields but parsed "+g,w+R):g<S.length&&T("FieldMismatch","TooFewFields","Too few fields: expected "+S.length+" fields but parsed "+g,w+R)),L}var l=1;return!n.data.length||Array.isArray(n.data[0])?(n.data=n.data.map(o),l=n.data.length):n.data=o(n.data,0),t.header&&n.meta&&(n.meta.fields=S),w+=l,n}()}function I(){return t.header&&S.length===0}function O(o,l){return y=o,t.dynamicTypingFunction&&t.dynamicTyping[y]===void 0&&(t.dynamicTyping[y]=t.dynamicTypingFunction(y)),(t.dynamicTyping[y]||t.dynamicTyping)===!0?l==="true"||l==="TRUE"||l!=="false"&&l!=="FALSE"&&(function(R){if(d.test(R)){var g=parseFloat(R);if(f<g&&g<s)return!0}return!1}(l)?parseFloat(l):A.test(l)?new Date(l):l===""?null:l):l;var y}function T(o,l,y,R){var g={type:o,code:l,message:y};R!==void 0&&(g.row=R),n.errors.push(g)}this.parse=function(o,l,y){var R=t.quoteChar||'"';if(t.newline||(t.newline=function(C,_){C=C.substring(0,1048576);var q=new RegExp(ne(_)+"([^]*?)"+ne(_),"gm"),F=(C=C.replace(q,"")).split("\r"),N=C.split(`
9
+ `),K=1<N.length&&N[0].length<F[0].length;if(F.length===1||K)return`
10
10
  `;for(var z=0,k=0;k<F.length;k++)F[k][0]===`
11
11
  `&&z++;return z>=F.length/2?`\r
12
- `:"\r"}(o,R)),i=!1,t.delimiter)p(t.delimiter)&&(t.delimiter=t.delimiter(o),n.meta.delimiter=t.delimiter);else{var g=function(C,_,q,F,N){var H,z,k,x;N=N||[","," ","|",";",h.RECORD_SEP,h.UNIT_SEP];for(var Y=0;Y<N.length;Y++){var c=N[Y],te=0,K=0,X=0;k=void 0;for(var J=new de({comments:F,delimiter:c,newline:_,preview:10}).parse(C),$=0;$<J.data.length;$++)if(q&&D(J.data[$]))X++;else{var V=J.data[$].length;K+=V,k!==void 0?0<V&&(te+=Math.abs(V-k),k=V):k=V}0<J.data.length&&(K/=J.data.length-X),(z===void 0||te<=z)&&(x===void 0||x<K)&&1.99<K&&(z=te,H=c,x=K)}return{successful:!!(t.delimiter=H),bestDelimiter:H}}(o,t.newline,t.skipEmptyLines,t.comments,t.delimitersToGuess);g.successful?t.delimiter=g.bestDelimiter:(i=!0,t.delimiter=h.DefaultDelimiter),n.meta.delimiter=t.delimiter}var L=le(t);return t.preview&&t.header&&L.preview++,e=o,r=new de(L),n=r.parse(e,l,y),E(),u?{meta:{paused:!0}}:n||{meta:{paused:!1}}},this.paused=function(){return u},this.pause=function(){u=!0,r.abort(),e=p(t.chunk)?"":e.substring(r.getCharIndex())},this.resume=function(){b.streamer._halted?(u=!1,b.streamer.parseChunk(e,!0)):setTimeout(b.resume,3)},this.aborted=function(){return P},this.abort=function(){P=!0,r.abort(),n.meta.aborted=!0,p(t.complete)&&t.complete(n),e=""}}function ne(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function de(t){var e,r=(t=t||{}).delimiter,i=t.newline,s=t.comments,f=t.step,d=t.preview,A=t.fastMode,b=e=t.quoteChar===void 0||t.quoteChar===null?'"':t.quoteChar;if(t.escapeChar!==void 0&&(b=t.escapeChar),(typeof r!="string"||-1<h.BAD_DELIMITERS.indexOf(r))&&(r=","),s===r)throw new Error("Comment character same as delimiter");s===!0?s="#":(typeof s!="string"||-1<h.BAD_DELIMITERS.indexOf(s))&&(s=!1),i!==`
12
+ `:"\r"}(o,R)),i=!1,t.delimiter)p(t.delimiter)&&(t.delimiter=t.delimiter(o),n.meta.delimiter=t.delimiter);else{var g=function(C,_,q,F,N){var K,z,k,x;N=N||[","," ","|",";",h.RECORD_SEP,h.UNIT_SEP];for(var Y=0;Y<N.length;Y++){var c=N[Y],te=0,W=0,X=0;k=void 0;for(var J=new de({comments:F,delimiter:c,newline:_,preview:10}).parse(C),$=0;$<J.data.length;$++)if(q&&D(J.data[$]))X++;else{var Z=J.data[$].length;W+=Z,k!==void 0?0<Z&&(te+=Math.abs(Z-k),k=Z):k=Z}0<J.data.length&&(W/=J.data.length-X),(z===void 0||te<=z)&&(x===void 0||x<W)&&1.99<W&&(z=te,K=c,x=W)}return{successful:!!(t.delimiter=K),bestDelimiter:K}}(o,t.newline,t.skipEmptyLines,t.comments,t.delimitersToGuess);g.successful?t.delimiter=g.bestDelimiter:(i=!0,t.delimiter=h.DefaultDelimiter),n.meta.delimiter=t.delimiter}var L=le(t);return t.preview&&t.header&&L.preview++,e=o,r=new de(L),n=r.parse(e,l,y),E(),u?{meta:{paused:!0}}:n||{meta:{paused:!1}}},this.paused=function(){return u},this.pause=function(){u=!0,r.abort(),e=p(t.chunk)?"":e.substring(r.getCharIndex())},this.resume=function(){b.streamer._halted?(u=!1,b.streamer.parseChunk(e,!0)):setTimeout(b.resume,3)},this.aborted=function(){return P},this.abort=function(){P=!0,r.abort(),n.meta.aborted=!0,p(t.complete)&&t.complete(n),e=""}}function ne(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function de(t){var e,r=(t=t||{}).delimiter,i=t.newline,s=t.comments,f=t.step,d=t.preview,A=t.fastMode,b=e=t.quoteChar===void 0||t.quoteChar===null?'"':t.quoteChar;if(t.escapeChar!==void 0&&(b=t.escapeChar),(typeof r!="string"||-1<h.BAD_DELIMITERS.indexOf(r))&&(r=","),s===r)throw new Error("Comment character same as delimiter");s===!0?s="#":(typeof s!="string"||-1<h.BAD_DELIMITERS.indexOf(s))&&(s=!1),i!==`
13
13
  `&&i!=="\r"&&i!==`\r
14
14
  `&&(i=`
15
- `);var a=0,w=!1;this.parse=function(u,P,S){if(typeof u!="string")throw new Error("Input must be a string");var n=u.length,m=r.length,D=i.length,E=s.length,I=p(f),O=[],T=[],o=[],l=a=0;if(!u)return M();if(t.header&&!P){var y=u.split(i)[0].split(r),R=[],g={},L=!1;for(var C in y){var _=y[C];p(t.transformHeader)&&(_=t.transformHeader(_,C));var q=_,F=g[_]||0;for(0<F&&(L=!0,q=_+"_"+F),g[_]=F+1;R.includes(q);)q=q+"_"+F;R.push(q)}if(L){var N=u.split(i);N[0]=R.join(r),u=N.join(i)}}if(A||A!==!1&&u.indexOf(e)===-1){for(var H=u.split(i),z=0;z<H.length;z++){if(o=H[z],a+=o.length,z!==H.length-1)a+=i.length;else if(S)return M();if(!s||o.substring(0,E)!==s){if(I){if(O=[],X(o.split(r)),fe(),w)return M()}else X(o.split(r));if(d&&d<=z)return O=O.slice(0,d),M(!0)}}return M()}for(var k=u.indexOf(r,a),x=u.indexOf(i,a),Y=new RegExp(ne(b)+ne(e),"g"),c=u.indexOf(e,a);;)if(u[a]!==e)if(s&&o.length===0&&u.substring(a,a+E)===s){if(x===-1)return M();a=x+D,x=u.indexOf(i,a),k=u.indexOf(r,a)}else if(k!==-1&&(k<x||x===-1))o.push(u.substring(a,k)),a=k+m,k=u.indexOf(r,a);else{if(x===-1)break;if(o.push(u.substring(a,x)),V(x+D),I&&(fe(),w))return M();if(d&&O.length>=d)return M(!0)}else for(c=a,a++;;){if((c=u.indexOf(e,c+1))===-1)return S||T.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:O.length,index:a}),$();if(c===n-1)return $(u.substring(a,c).replace(Y,e));if(e!==b||u[c+1]!==b){if(e===b||c===0||u[c-1]!==b){k!==-1&&k<c+1&&(k=u.indexOf(r,c+1)),x!==-1&&x<c+1&&(x=u.indexOf(i,c+1));var te=J(x===-1?k:Math.min(k,x));if(u.substr(c+1+te,m)===r){o.push(u.substring(a,c).replace(Y,e)),u[a=c+1+te+m]!==e&&(c=u.indexOf(e,a)),k=u.indexOf(r,a),x=u.indexOf(i,a);break}var K=J(x);if(u.substring(c+1+K,c+1+K+D)===i){if(o.push(u.substring(a,c).replace(Y,e)),V(c+1+K+D),k=u.indexOf(r,a),c=u.indexOf(e,a),I&&(fe(),w))return M();if(d&&O.length>=d)return M(!0);break}T.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:O.length,index:a}),c++}}else c++}return $();function X(j){O.push(j),l=a}function J(j){var ye=0;if(j!==-1){var ce=u.substring(c+1,j);ce&&ce.trim()===""&&(ye=ce.length)}return ye}function $(j){return S||(j===void 0&&(j=u.substring(a)),o.push(j),a=n,X(o),I&&fe()),M()}function V(j){a=j,X(o),o=[],x=u.indexOf(i,a)}function M(j){return{data:O,errors:T,meta:{delimiter:r,linebreak:i,aborted:w,truncated:!!j,cursor:l+(P||0)}}}function fe(){f(M()),O=[],T=[]}},this.abort=function(){w=!0},this.getCharIndex=function(){return a}}function Ee(t){var e=t.data,r=U[e.workerId],i=!1;if(e.error)r.userError(e.error,e.file);else if(e.results&&e.results.data){var s={abort:function(){i=!0,me(e.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:ve,resume:ve};if(p(r.userStep)){for(var f=0;f<e.results.data.length&&(r.userStep({data:e.results.data[f],errors:e.results.errors,meta:e.results.meta},s),!i);f++);delete e.results}else p(r.userChunk)&&(r.userChunk(e.results,s,e.file),delete e.results)}e.finished&&!i&&me(e.workerId,e.results)}function me(t,e){var r=U[t];p(r.userComplete)&&r.userComplete(e),r.terminate(),delete U[t]}function ve(){throw new Error("Not implemented.")}function le(t){if(typeof t!="object"||t===null)return t;var e=Array.isArray(t)?[]:{};for(var r in t)e[r]=le(t[r]);return e}function Q(t,e){return function(){t.apply(e,arguments)}}function p(t){return typeof t=="function"}return B&&(v.onmessage=function(t){var e=t.data;if(h.WORKER_ID===void 0&&e&&(h.WORKER_ID=e.workerId),typeof e.input=="string")v.postMessage({workerId:h.WORKER_ID,results:h.parse(e.input,e.config),finished:!0});else if(v.File&&e.input instanceof File||e.input instanceof Object){var r=h.parse(e.input,e.config);r&&v.postMessage({workerId:h.WORKER_ID,results:r,finished:!0})}}),(oe.prototype=Object.create(W.prototype)).constructor=oe,(ue.prototype=Object.create(W.prototype)).constructor=ue,(ie.prototype=Object.create(ie.prototype)).constructor=ie,(he.prototype=Object.create(W.prototype)).constructor=he,h})})(be);var Ae=be.exports;function ze({content:se}){const[ge,ae]=pe.useState([]),[v,G]=pe.useState([]);return pe.useEffect(()=>{Ae.parse(se,{header:!0,skipEmptyLines:!0,complete:B=>{const U=[],ee=[];B.data.forEach(h=>{U.push(Object.keys(h)),ee.push(Object.values(h))}),ae(U[0]),G(ee)}})},[se]),Z.jsx("div",{className:"overflow-hidden overflow-x-auto rounded-md border",children:Z.jsxs(Ce,{children:[Z.jsx(xe,{className:"bg-theme-surface-tertiary",children:Z.jsx(ke,{children:ge.map((B,U)=>Z.jsx(Re,{className:"text-theme-text-secondary",children:B},U))})}),Z.jsx(Oe,{children:v.map((B,U)=>Z.jsx(ke,{children:B.map((ee,h)=>Z.jsx(Te,{className:"bg-theme-surface-primary",children:ee},h))},U))})]})})}export{ze as default};
15
+ `);var a=0,w=!1;this.parse=function(u,P,S){if(typeof u!="string")throw new Error("Input must be a string");var n=u.length,m=r.length,D=i.length,E=s.length,I=p(f),O=[],T=[],o=[],l=a=0;if(!u)return M();if(t.header&&!P){var y=u.split(i)[0].split(r),R=[],g={},L=!1;for(var C in y){var _=y[C];p(t.transformHeader)&&(_=t.transformHeader(_,C));var q=_,F=g[_]||0;for(0<F&&(L=!0,q=_+"_"+F),g[_]=F+1;R.includes(q);)q=q+"_"+F;R.push(q)}if(L){var N=u.split(i);N[0]=R.join(r),u=N.join(i)}}if(A||A!==!1&&u.indexOf(e)===-1){for(var K=u.split(i),z=0;z<K.length;z++){if(o=K[z],a+=o.length,z!==K.length-1)a+=i.length;else if(S)return M();if(!s||o.substring(0,E)!==s){if(I){if(O=[],X(o.split(r)),fe(),w)return M()}else X(o.split(r));if(d&&d<=z)return O=O.slice(0,d),M(!0)}}return M()}for(var k=u.indexOf(r,a),x=u.indexOf(i,a),Y=new RegExp(ne(b)+ne(e),"g"),c=u.indexOf(e,a);;)if(u[a]!==e)if(s&&o.length===0&&u.substring(a,a+E)===s){if(x===-1)return M();a=x+D,x=u.indexOf(i,a),k=u.indexOf(r,a)}else if(k!==-1&&(k<x||x===-1))o.push(u.substring(a,k)),a=k+m,k=u.indexOf(r,a);else{if(x===-1)break;if(o.push(u.substring(a,x)),Z(x+D),I&&(fe(),w))return M();if(d&&O.length>=d)return M(!0)}else for(c=a,a++;;){if((c=u.indexOf(e,c+1))===-1)return S||T.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:O.length,index:a}),$();if(c===n-1)return $(u.substring(a,c).replace(Y,e));if(e!==b||u[c+1]!==b){if(e===b||c===0||u[c-1]!==b){k!==-1&&k<c+1&&(k=u.indexOf(r,c+1)),x!==-1&&x<c+1&&(x=u.indexOf(i,c+1));var te=J(x===-1?k:Math.min(k,x));if(u.substr(c+1+te,m)===r){o.push(u.substring(a,c).replace(Y,e)),u[a=c+1+te+m]!==e&&(c=u.indexOf(e,a)),k=u.indexOf(r,a),x=u.indexOf(i,a);break}var W=J(x);if(u.substring(c+1+W,c+1+W+D)===i){if(o.push(u.substring(a,c).replace(Y,e)),Z(c+1+W+D),k=u.indexOf(r,a),c=u.indexOf(e,a),I&&(fe(),w))return M();if(d&&O.length>=d)return M(!0);break}T.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:O.length,index:a}),c++}}else c++}return $();function X(j){O.push(j),l=a}function J(j){var ye=0;if(j!==-1){var ce=u.substring(c+1,j);ce&&ce.trim()===""&&(ye=ce.length)}return ye}function $(j){return S||(j===void 0&&(j=u.substring(a)),o.push(j),a=n,X(o),I&&fe()),M()}function Z(j){a=j,X(o),o=[],x=u.indexOf(i,a)}function M(j){return{data:O,errors:T,meta:{delimiter:r,linebreak:i,aborted:w,truncated:!!j,cursor:l+(P||0)}}}function fe(){f(M()),O=[],T=[]}},this.abort=function(){w=!0},this.getCharIndex=function(){return a}}function Ee(t){var e=t.data,r=U[e.workerId],i=!1;if(e.error)r.userError(e.error,e.file);else if(e.results&&e.results.data){var s={abort:function(){i=!0,me(e.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:ve,resume:ve};if(p(r.userStep)){for(var f=0;f<e.results.data.length&&(r.userStep({data:e.results.data[f],errors:e.results.errors,meta:e.results.meta},s),!i);f++);delete e.results}else p(r.userChunk)&&(r.userChunk(e.results,s,e.file),delete e.results)}e.finished&&!i&&me(e.workerId,e.results)}function me(t,e){var r=U[t];p(r.userComplete)&&r.userComplete(e),r.terminate(),delete U[t]}function ve(){throw new Error("Not implemented.")}function le(t){if(typeof t!="object"||t===null)return t;var e=Array.isArray(t)?[]:{};for(var r in t)e[r]=le(t[r]);return e}function Q(t,e){return function(){t.apply(e,arguments)}}function p(t){return typeof t=="function"}return B&&(v.onmessage=function(t){var e=t.data;if(h.WORKER_ID===void 0&&e&&(h.WORKER_ID=e.workerId),typeof e.input=="string")v.postMessage({workerId:h.WORKER_ID,results:h.parse(e.input,e.config),finished:!0});else if(v.File&&e.input instanceof File||e.input instanceof Object){var r=h.parse(e.input,e.config);r&&v.postMessage({workerId:h.WORKER_ID,results:r,finished:!0})}}),(oe.prototype=Object.create(H.prototype)).constructor=oe,(ue.prototype=Object.create(H.prototype)).constructor=ue,(ie.prototype=Object.create(ie.prototype)).constructor=ie,(he.prototype=Object.create(H.prototype)).constructor=he,h})})(be);var Ae=be.exports;function ze({content:se}){const[ge,ae]=pe.useState([]),[v,V]=pe.useState([]);return pe.useEffect(()=>{Ae.parse(se,{header:!0,skipEmptyLines:!0,complete:B=>{const U=[],ee=[];B.data.forEach(h=>{U.push(Object.keys(h)),ee.push(Object.values(h))}),ae(U[0]),V(ee)}})},[se]),G.jsx("div",{className:"overflow-hidden overflow-x-auto rounded-md border",children:G.jsxs(Ce,{children:[G.jsx(xe,{className:"bg-theme-surface-tertiary",children:G.jsx(ke,{children:ge.map((B,U)=>G.jsx(Re,{className:"text-theme-text-secondary",children:B},U))})}),G.jsx(Oe,{children:v.map((B,U)=>G.jsx(ke,{children:B.map((ee,h)=>G.jsx(Te,{className:"bg-theme-surface-primary",children:ee},h))},U))})]})})}export{ze as default};
@@ -1 +1 @@
1
- import{r as o,j as r}from"./@radix-DnFH_oo1.js";import{a0 as d,a1 as m,ay as g}from"./index-Davdjm1d.js";const f=e=>o.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...e},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.2929 2.29295C17.788 0.797857 20.212 0.797859 21.7071 2.29295C23.2022 3.78805 23.2022 6.21207 21.7071 7.70717L18.7097 10.7045C18.7088 10.7054 18.708 10.7063 18.7071 10.7072C18.7062 10.708 18.7053 10.7089 18.7044 10.7098L8.50078 20.9134C8.48402 20.9302 8.46741 20.9468 8.45093 20.9633C8.20603 21.2086 7.99001 21.425 7.73334 21.5943C7.50768 21.7431 7.26295 21.8607 7.00578 21.9439C6.71327 22.0386 6.40936 22.0722 6.06483 22.1102C6.04165 22.1127 6.01829 22.1153 5.99474 22.1179L2.61038 22.4939C2.30845 22.5275 2.00765 22.422 1.79284 22.2072C1.57803 21.9924 1.47251 21.6916 1.50606 21.3896L1.8821 18.0053C1.88472 17.9817 1.8873 17.9583 1.88985 17.9352C1.92786 17.5906 1.96138 17.2867 2.05607 16.9942C2.13932 16.7371 2.25695 16.4923 2.40576 16.2667C2.57501 16.01 2.79138 15.794 3.03667 15.5491C3.05317 15.5326 3.06981 15.516 3.08657 15.4992L16.2929 2.29295ZM14 7.41427L4.50078 16.9134C4.17827 17.2359 4.1184 17.3025 4.07541 17.3677C4.02581 17.4429 3.9866 17.5245 3.95885 17.6102C3.9348 17.6845 3.92024 17.7728 3.86987 18.2261L3.63187 20.3681L5.77388 20.1301C6.22718 20.0798 6.3155 20.0652 6.3898 20.0412C6.47553 20.0134 6.5571 19.9742 6.63232 19.9246C6.69752 19.8816 6.76406 19.8217 7.08657 19.4992L16.5858 10.0001L14 7.41427ZM18 8.58584L15.4142 6.00006L17.7071 3.70716C18.4211 2.99312 19.5788 2.99312 20.2929 3.70717C21.0069 4.42121 21.0069 5.57891 20.2929 6.29295L18 8.58584Z"})),p=o.forwardRef((e,n)=>{const{triggerChildren:a,children:C,onSelect:t,onOpenChange:i,icon:L,open:l,...s}=e;return r.jsxs(d,{open:l,onOpenChange:i,children:[r.jsx(m,{asChild:!0,children:r.jsx(g,{...s,className:"hover:cursor-pointer",icon:e.icon,ref:n,onSelect:c=>{c.preventDefault(),t&&t()},children:a})}),C]})});p.displayName="DialogItem";export{p as D,f as S};
1
+ import{r as o,j as r}from"./@radix-DnFH_oo1.js";import{ae as d,af as m,aE as g}from"./index-B9wVwe7u.js";const x=e=>o.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...e},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.2929 2.29295C17.788 0.797857 20.212 0.797859 21.7071 2.29295C23.2022 3.78805 23.2022 6.21207 21.7071 7.70717L18.7097 10.7045C18.7088 10.7054 18.708 10.7063 18.7071 10.7072C18.7062 10.708 18.7053 10.7089 18.7044 10.7098L8.50078 20.9134C8.48402 20.9302 8.46741 20.9468 8.45093 20.9633C8.20603 21.2086 7.99001 21.425 7.73334 21.5943C7.50768 21.7431 7.26295 21.8607 7.00578 21.9439C6.71327 22.0386 6.40936 22.0722 6.06483 22.1102C6.04165 22.1127 6.01829 22.1153 5.99474 22.1179L2.61038 22.4939C2.30845 22.5275 2.00765 22.422 1.79284 22.2072C1.57803 21.9924 1.47251 21.6916 1.50606 21.3896L1.8821 18.0053C1.88472 17.9817 1.8873 17.9583 1.88985 17.9352C1.92786 17.5906 1.96138 17.2867 2.05607 16.9942C2.13932 16.7371 2.25695 16.4923 2.40576 16.2667C2.57501 16.01 2.79138 15.794 3.03667 15.5491C3.05317 15.5326 3.06981 15.516 3.08657 15.4992L16.2929 2.29295ZM14 7.41427L4.50078 16.9134C4.17827 17.2359 4.1184 17.3025 4.07541 17.3677C4.02581 17.4429 3.9866 17.5245 3.95885 17.6102C3.9348 17.6845 3.92024 17.7728 3.86987 18.2261L3.63187 20.3681L5.77388 20.1301C6.22718 20.0798 6.3155 20.0652 6.3898 20.0412C6.47553 20.0134 6.5571 19.9742 6.63232 19.9246C6.69752 19.8816 6.76406 19.8217 7.08657 19.4992L16.5858 10.0001L14 7.41427ZM18 8.58584L15.4142 6.00006L17.7071 3.70716C18.4211 2.99312 19.5788 2.99312 20.2929 3.70717C21.0069 4.42121 21.0069 5.57891 20.2929 6.29295L18 8.58584Z"})),p=o.forwardRef((e,n)=>{const{triggerChildren:a,children:C,onSelect:t,onOpenChange:i,icon:L,open:l,...s}=e;return r.jsxs(d,{open:l,onOpenChange:i,children:[r.jsx(m,{asChild:!0,children:r.jsx(g,{...s,className:"hover:cursor-pointer",icon:e.icon,ref:n,onSelect:c=>{c.preventDefault(),t&&t()},children:a})}),C]})});p.displayName="DialogItem";export{p as D,x as S};
@@ -0,0 +1 @@
1
+ import{r as y,j as e}from"./@radix-DnFH_oo1.js";import{S as $}from"./plus-Bc8eLSDM.js";import{S as M}from"./trash-DUWZWzse.js";import{q as V,b as Q,a as Z,c as L}from"./@tanstack-QbMbTrh5.js";import{l as j,m as w,k as g,n as v,F as N,z as o,ag as O,ah as R,ai as z,i as B,I as x,f as h,al as G,am as U,an as H}from"./index-B9wVwe7u.js";import{o as J}from"./url-DwbuKk1b.js";import{t as W}from"./zod-uFd1wBcd.js";import{u as X,a as Y,C as p}from"./index.esm-BE1uqCX5.js";async function _({params:t}){const i=j(w.secrets.all+"?"+J(t)),s=await g(i,{method:"GET",headers:{"Content-Type":"application/json"}});if(s.status===404&&v(),!s.ok){const l=await s.json().then(n=>Array.isArray(n.detail)?n.detail[1]:n.detail).catch(()=>"Failed to fetch secrets");throw new N({status:s.status,statusText:s.statusText,message:l})}return s.json()}async function I(t){const i=j(w.secrets.detail(t)),s=await g(i,{method:"GET",headers:{"Content-Type":"application/json"}});if(s.status===404&&v(),!s.ok){const l=await s.json().then(n=>Array.isArray(n.detail)?n.detail[1]:n.detail).catch(()=>`Failed to fetch secret ${t}`);throw new N({status:s.status,statusText:s.statusText,message:l})}return s.json()}const C={all:["secrets"],secretList:t=>V({queryKey:[...C.all,t],queryFn:async()=>_({params:t})}),secretDetail:t=>V({queryKey:[...C.all,t],queryFn:async()=>I(t)})},ee=t=>y.createElement("svg",{viewBox:"0 0 20 14",fill:"black",xmlns:"http://www.w3.org/2000/svg",...t},y.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.29898 3.86908C4.04374 4.91672 3.16532 6.14781 2.72143 6.85066C2.69198 6.89729 2.67138 6.92996 2.65417 6.95831C2.64281 6.97702 2.63531 6.98996 2.63029 6.99898C2.63029 6.99932 2.63029 6.99966 2.63029 6.99999C2.63029 7.00033 2.63029 7.00067 2.63029 7.001C2.63531 7.01003 2.64281 7.02297 2.65417 7.04168C2.67138 7.07003 2.69198 7.1027 2.72143 7.14933C3.16532 7.85218 4.04374 9.08327 5.29898 10.1309C6.55226 11.1769 8.13098 12 10.0004 12C11.8699 12 13.4486 11.1769 14.7019 10.1309C15.9571 9.08327 16.8355 7.85218 17.2794 7.14933C17.3089 7.1027 17.3295 7.07003 17.3467 7.04168C17.358 7.02297 17.3655 7.01002 17.3705 7.001C17.3705 7.00067 17.3705 7.00033 17.3705 6.99999C17.3705 6.99966 17.3705 6.99932 17.3705 6.99899C17.3655 6.98997 17.358 6.97702 17.3467 6.95831C17.3295 6.92996 17.3089 6.89729 17.2794 6.85066C16.8355 6.14781 15.9571 4.91672 14.7019 3.86908C13.4486 2.82308 11.8699 1.99999 10.0004 1.99999C8.13097 1.99999 6.55226 2.82308 5.29898 3.86908ZM4.23104 2.58952C5.67154 1.38726 7.61569 0.333328 10.0004 0.333328C12.3851 0.333328 14.3293 1.38726 15.7698 2.58952C17.2083 3.79014 18.1946 5.17857 18.6886 5.9607C18.6951 5.97104 18.7018 5.98159 18.7086 5.99236C18.8067 6.14664 18.9339 6.34696 18.9983 6.62764C19.0502 6.85426 19.0502 7.14573 18.9983 7.37235C18.9339 7.65303 18.8067 7.85335 18.7086 8.00763C18.7018 8.01841 18.6951 8.02895 18.6886 8.03929C18.1946 8.82142 17.2083 10.2098 15.7698 11.4105C14.3293 12.6127 12.3851 13.6667 10.0004 13.6667C7.61569 13.6667 5.67154 12.6127 4.23104 11.4105C2.7925 10.2098 1.80622 8.82142 1.31227 8.03929C1.30574 8.02895 1.29904 8.01841 1.2922 8.00764C1.19418 7.85335 1.06692 7.65303 1.00258 7.37235C0.950637 7.14573 0.950637 6.85426 1.00258 6.62764C1.06692 6.34696 1.19418 6.14664 1.2922 5.99235C1.29904 5.98158 1.30574 5.97104 1.31227 5.9607C1.80622 5.17857 2.7925 3.79014 4.23104 2.58952ZM10.0004 5.33333C9.07994 5.33333 8.33375 6.07952 8.33375 6.99999C8.33375 7.92047 9.07994 8.66666 10.0004 8.66666C10.9209 8.66666 11.6671 7.92047 11.6671 6.99999C11.6671 6.07952 10.9209 5.33333 10.0004 5.33333ZM6.66708 6.99999C6.66708 5.15905 8.15947 3.66666 10.0004 3.66666C11.8414 3.66666 13.3338 5.15905 13.3338 6.99999C13.3338 8.84094 11.8414 10.3333 10.0004 10.3333C8.15947 10.3333 6.66708 8.84094 6.66708 6.99999Z"})),se=o.object({secretName:o.string().min(1,"Secret Name is required"),keysValues:o.array(o.object({key:o.string().min(1,"Key is required"),value:o.string().min(1,"Value is required"),showPassword:o.boolean().optional()}))});async function te(t,i){const s=j(w.secrets.detail(t)),l=await g(s,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(i)});if(l.status===404&&v(),!l.ok)throw new N({message:"Error updating secret",status:l.status,statusText:l.statusText});return l.json()}function ae(t){return Q({mutationFn:async({id:i,body:s})=>te(i,s),...t})}function he({secretId:t,isSecretNameEditable:i,dialogTitle:s}){return e.jsxs(O,{className:"mx-auto w-[90vw] max-w-[744px]",children:[e.jsx(R,{children:e.jsx(z,{children:s})}),e.jsx(re,{secretId:t,isSecretNameEditable:i})]})}function re({secretId:t,isSecretNameEditable:i}){const{data:s,isLoading:l,isError:n}=Z({...C.secretDetail(t)}),{handleSubmit:E,control:u,setValue:m,watch:b,formState:{isValid:T}}=X({resolver:W(se),defaultValues:{secretName:"",keysValues:[{key:"",value:""}]}}),{fields:f,append:q,remove:D}=Y({control:u,name:"keysValues"});y.useEffect(()=>{var a;s&&(m("secretName",s.name),m("keysValues",Object.entries(((a=s.body)==null?void 0:a.values)||{}).map(([r,c])=>({key:r,value:String(c)}))))},[s,m]);const F=()=>{q({key:"",value:"",showPassword:!1})},{toast:k}=B(),S=L(),{mutate:P}=ae({onError(a){H(a)&&k({status:"error",emphasis:"subtle",description:a.message,rounded:!0})},onSuccess(){k({status:"success",emphasis:"subtle",description:"Secret updated successfull",rounded:!0}),S.invalidateQueries({queryKey:["secrets"]}),S.invalidateQueries({queryKey:["secretDetail",t]})}}),K=a=>{const r={name:a.secretName,scope:"workspace",values:a.keysValues.reduce((c,d)=>(d.key&&d.value&&(c[d.key]=d.value),c),{})};P({id:t,body:r})},A=a=>{const r=b(`keysValues.${a}.showPassword`);m(`keysValues.${a}.showPassword`,!r)};return l?e.jsx("p",{children:"Loading..."}):n?e.jsx("p",{children:"Error fetching secret details."}):e.jsxs(e.Fragment,{children:[e.jsx("form",{id:"edit-secret-form",className:"gap-5 p-5",onSubmit:E(K),children:e.jsxs("div",{className:"space-y-0.5",children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsxs("label",{className:"font-inter text-sm text-left font-medium leading-5",children:["Secret Name",e.jsx("span",{className:"ml-1 text-theme-text-error",children:"*"})]}),e.jsx(p,{name:"secretName",control:u,render:({field:a})=>e.jsx(x,{...a,className:"mb-3 w-full",required:!0,disabled:!i})})]}),e.jsxs("div",{className:"mt-10",children:[e.jsx("div",{children:e.jsx("h1",{className:"font-inter text-lg text-left font-semibold",children:"Keys"})}),e.jsxs("div",{className:"mt-5 flex flex-row",children:[e.jsx("div",{className:"flex-grow",children:e.jsx("label",{className:"font-inter text-sm text-left font-medium",children:"Key"})}),e.jsx("div",{className:"flex-grow pr-12",children:e.jsx("label",{className:"font-inter text-sm text-left font-medium",children:"Value"})})]})]}),f.map((a,r)=>e.jsxs("div",{className:"flex flex-row items-center space-x-1",children:[e.jsx("div",{className:"relative flex-grow",children:e.jsx(p,{name:`keysValues.${r}.key`,control:u,render:({field:c})=>e.jsx(x,{...c,className:"mb-2 w-full",required:!0,placeholder:"key"})})}),e.jsx("div",{className:"relative flex-grow",children:e.jsxs("div",{className:"relative",children:[e.jsx(p,{name:`keysValues.${r}.value`,control:u,render:({field:c})=>e.jsx(x,{...c,className:"mb-2 w-full pr-10",required:!0,placeholder:"•••••••••",type:b(`keysValues.${r}.showPassword`)?"text":"password"})}),e.jsx("div",{onClick:()=>A(r),className:"absolute inset-y-1 right-0 flex cursor-pointer items-center pb-1 pr-3",children:e.jsx(ee,{className:"h-4 w-4 flex-shrink-0 cursor-pointer"})})]})}),e.jsxs("div",{className:"flex items-center",children:[r===f.length-1&&e.jsx(h,{intent:"primary",emphasis:"subtle",onClick:F,className:"mb-2 flex h-7 w-7 items-center justify-center",children:e.jsx($,{className:"flex-shrink-0 fill-primary-600"})}),r!==f.length-1&&e.jsx(h,{intent:"secondary",emphasis:"minimal",onClick:()=>D(r),className:"mb-2 h-7 w-7 items-center justify-center",children:e.jsx(M,{className:"flex-shrink-0 fill-theme-text-secondary"})})]})]},a.id))]})}),e.jsxs(G,{className:"gap-[10px]",children:[e.jsx(U,{asChild:!0,children:e.jsx(h,{size:"sm",intent:"secondary",children:"Cancel"})}),e.jsx(h,{intent:"primary",type:"submit",form:"edit-secret-form",disabled:!T,children:"Save Secret"})]})]})}export{he as E,ee as S,C as a,se as s,ae as u};
@@ -1 +1 @@
1
- import{j as e}from"./@radix-DnFH_oo1.js";import{i as r,p as a}from"./index-Davdjm1d.js";import{E as l}from"./EmptyState-Cs3DEmso.js";function c({err:t,isAlertCircle:s=!1}){return e.jsx(l,{icon:s?e.jsx(r,{className:"h-[120px] w-[120px] fill-neutral-300"}):e.jsx(a,{className:"h-[120px] w-[120px] fill-neutral-300"}),children:e.jsx("div",{className:"text-center",children:e.jsx("p",{className:"text-text-lg text-theme-text-secondary",children:t.message})})})}export{c as E};
1
+ import{j as e}from"./@radix-DnFH_oo1.js";import{j as r,W as a}from"./index-B9wVwe7u.js";import{E as l}from"./EmptyState-Cs3DEmso.js";function c({err:t,isAlertCircle:s=!1}){return e.jsx(l,{icon:s?e.jsx(r,{className:"h-[120px] w-[120px] fill-neutral-300"}):e.jsx(a,{className:"h-[120px] w-[120px] fill-neutral-300"}),children:e.jsx("div",{className:"text-center",children:e.jsx("p",{className:"text-text-lg text-theme-text-secondary",children:t.message})})})}export{c as E};
@@ -0,0 +1 @@
1
+ import{r,j as t}from"./@radix-DnFH_oo1.js";import{X as c,j as i}from"./index-B9wVwe7u.js";import{S as a}from"./check-circle-DOoS4yhF.js";const C=e=>r.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...e},r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.6569 6.34315C14.5327 3.21895 9.46734 3.21895 6.34315 6.34315C5.23515 7.45114 4.52139 8.80057 4.19904 10.2213C4.07684 10.7599 3.54115 11.0974 3.00256 10.9752C2.46396 10.853 2.12641 10.3173 2.24862 9.77873C2.652 8.00086 3.54638 6.31149 4.92893 4.92893C8.83418 1.02369 15.1658 1.02369 19.0711 4.92893C19.8691 5.72692 20.5003 6.3951 21 6.95359V4C21 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 9H20.1257C19.6137 8.38306 18.8352 7.52152 17.6569 6.34315ZM20.9974 13.0248C21.536 13.147 21.8736 13.6827 21.7514 14.2213C21.348 15.9991 20.4536 17.6885 19.0711 19.0711C15.1658 22.9763 8.83418 22.9763 4.92893 19.0711C4.13094 18.2731 3.49975 17.6049 3 17.0464V20C3 20.5523 2.55228 21 2 21C1.44772 21 1 20.5523 1 20V14C1 13.4477 1.44772 13 2 13H8C8.55228 13 9 13.4477 9 14C9 14.5523 8.55228 15 8 15H3.87429C4.38627 15.6169 5.16477 16.4785 6.34315 17.6569C9.46734 20.781 14.5327 20.781 17.6569 17.6569C18.7648 16.5489 19.4786 15.1994 19.801 13.7787C19.9232 13.2401 20.4588 12.9026 20.9974 13.0248Z"})),s=e=>r.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...e},r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3ZM1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12ZM10.7071 8.29289C11.0976 8.68342 11.0976 9.31658 10.7071 9.70711L8.41421 12L10.7071 14.2929C11.0976 14.6834 11.0976 15.3166 10.7071 15.7071C10.3166 16.0976 9.68342 16.0976 9.29289 15.7071L6.29289 12.7071C5.90237 12.3166 5.90237 11.6834 6.29289 11.2929L9.29289 8.29289C9.68342 7.90237 10.3166 7.90237 10.7071 8.29289ZM16.2071 8.29289C16.5976 8.68342 16.5976 9.31658 16.2071 9.70711L13.9142 12L16.2071 14.2929C16.5976 14.6834 16.5976 15.3166 16.2071 15.7071C15.8166 16.0976 15.1834 16.0976 14.7929 15.7071L11.7929 12.7071C11.4024 12.3166 11.4024 11.6834 11.7929 11.2929L14.7929 8.29289C15.1834 7.90237 15.8166 7.90237 16.2071 8.29289Z"})),u=e=>r.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...e},r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3ZM1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12Z"}),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 12C6 11.1716 6.67157 10.5 7.5 10.5C8.32843 10.5 9 11.1716 9 12C9 12.8284 8.32843 13.5 7.5 13.5C6.67157 13.5 6 12.8284 6 12ZM10.5 12C10.5 11.1716 11.1716 10.5 12 10.5C12.8284 10.5 13.5 11.1716 13.5 12C13.5 12.8284 12.8284 13.5 12 13.5C11.1716 13.5 10.5 12.8284 10.5 12ZM15 12C15 11.1716 15.6716 10.5 16.5 10.5C17.3284 10.5 18 11.1716 18 12C18 12.8284 17.3284 13.5 16.5 13.5C15.6716 13.5 15 12.8284 15 12Z"}));function o(e){if(!e)return null;switch(e){case"completed":return"fill-success-500";case"failed":return"fill-error-500";case"initializing":return"fill-primary-400";case"cached":return"fill-neutral-400";case"running":return"fill-warning-500"}}function f(e){if(!e)return null;switch(e){case"completed":return"bg-success-50";case"failed":return"bg-error-50";case"initializing":return"bg-primary-50";case"cached":return"bg-theme-surface-tertiary";case"running":return"bg-warning-50"}}function p(e){if(!e)return"grey";switch(e){case"completed":return"green";case"failed":return"red";case"initializing":return"purple";case"cached":return"grey";case"running":return"yellow"}}function w({status:e,className:l}){if(!e)return null;const n=c("h-4 shrink-0 w-4",o(e),l);switch(e){case"completed":return t.jsx(a,{className:n});case"failed":return t.jsx(i,{className:n});case"initializing":return t.jsx(C,{className:n});case"cached":return t.jsx(s,{className:n});case"running":return t.jsx(u,{className:n})}}export{w as E,p as a,f as b,o as g};
@@ -1 +1 @@
1
- import{j as e}from"./@radix-DnFH_oo1.js";import{B as t,aL as a}from"./index-Davdjm1d.js";import{H as l}from"./help-CwN931fX.js";function m({link:s,text:r="Do you need help?"}){return e.jsxs(t,{className:"flex w-full flex-wrap items-center justify-between p-2",children:[e.jsxs("div",{className:"flex items-center gap-[10px]",children:[e.jsx("div",{className:"flex h-7 w-7 items-center justify-center rounded-sm bg-teal-25",children:e.jsx(l,{className:"h-5 w-5 fill-teal-400"})}),e.jsx("p",{children:r})]}),e.jsx("a",{target:"_blank",rel:"noopener noreferrer",className:a({intent:"primary",emphasis:"subtle",size:"md"}),href:s,children:"Browse our docs"})]})}export{m as H};
1
+ import{j as e}from"./@radix-DnFH_oo1.js";import{B as t,aO as a}from"./index-B9wVwe7u.js";import{H as l}from"./help-CwN931fX.js";function m({link:s,text:r="Do you need help?"}){return e.jsxs(t,{className:"flex w-full flex-wrap items-center justify-between p-2",children:[e.jsxs("div",{className:"flex items-center gap-[10px]",children:[e.jsx("div",{className:"flex h-7 w-7 items-center justify-center rounded-sm bg-teal-25",children:e.jsx(l,{className:"h-5 w-5 fill-teal-400"})}),e.jsx("p",{children:r})]}),e.jsx("a",{target:"_blank",rel:"noopener noreferrer",className:a({intent:"primary",emphasis:"subtle",size:"md"}),href:s,children:"Browse our docs"})]})}export{m as H};
@@ -0,0 +1 @@
1
+ import{r as t,j as r}from"./@radix-DnFH_oo1.js";import{X as i,a0 as l,aP as m}from"./index-B9wVwe7u.js";const o=e=>t.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...e},t.createElement("path",{d:"M12 8C12.5523 8 13 8.44771 13 9V14C13 14.5523 12.5523 15 12 15C11.4477 15 11 14.5523 11 14V9C11 8.44771 11.4477 8 12 8Z"}),t.createElement("path",{d:"M12 18C12.5523 18 13 17.5523 13 17C13 16.4477 12.5523 16 12 16C11.4477 16 11 16.4477 11 17C11 17.5523 11.4477 18 12 18Z"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.2476 2.11111C11.0074 0.729566 12.9926 0.729561 13.7524 2.11111L23.0612 19.0361C23.7943 20.369 22.8299 21.9999 21.3087 21.9999H2.69127C1.17006 21.9999 0.205733 20.369 0.938833 19.0361L10.2476 2.11111ZM21.3087 19.9999L12 3.07495L2.69126 19.9999L21.3087 19.9999Z"})),d=m("flex items-center text-text-sm rounded-md border px-4 py-3",{variants:{intent:{primary:"border-primary-400 bg-primary-25",warning:"bg-[#FFF6EA] border-theme-border-moderate",neutral:"border-theme-border-moderate"}},defaultVariants:{intent:"primary"}});function f({children:e,className:n,intent:a,...s}){return r.jsxs("div",{...s,className:i(d({intent:a}),n),children:[r.jsx(c,{intent:a}),r.jsx("div",{className:"w-full min-w-0",children:e})]})}function c({intent:e}){switch(e){case"warning":return r.jsx(o,{className:"mr-4 h-5 w-5 shrink-0 fill-warning-700"});default:return r.jsx(l,{className:"mr-4 h-5 w-5 shrink-0 fill-theme-text-brand"})}}export{f as I};
@@ -1 +1 @@
1
- import{j as e}from"./@radix-DnFH_oo1.js";import{A as s,b as a}from"./index-Davdjm1d.js";function m({username:t}){return e.jsxs("div",{className:"inline-flex items-center gap-1",children:[e.jsx(s,{size:"sm",children:e.jsx(a,{size:"sm",children:t[0]})}),e.jsx("p",{className:"text-text-sm font-semibold text-theme-text-primary",children:t})]})}export{m as I};
1
+ import{j as e}from"./@radix-DnFH_oo1.js";import{A as s,b as a}from"./index-B9wVwe7u.js";function m({username:t}){return e.jsxs("div",{className:"inline-flex items-center gap-1",children:[e.jsx(s,{size:"sm",children:e.jsx(a,{size:"sm",children:t[0]})}),e.jsx("p",{className:"text-text-sm font-semibold text-theme-text-primary",children:t})]})}export{m as I};
@@ -0,0 +1 @@
1
+ import{r as p,j as e}from"./@radix-DnFH_oo1.js";import{S as L}from"./package-DYKZ5jKW.js";import{I as C}from"./Infobox-BL9NOS37.js";import{b as E,C as T}from"./index.esm-BE1uqCX5.js";import{T as N}from"./Tick-i1DYsVcX.js";import{aL as O,aM as H,aN as V,aK as I,S as b,Z as k,A as z,b as A,f as G,B as W,au as Y,av as F,aw as q,ax as Q,ay as K}from"./index-B9wVwe7u.js";import{p as $,C as o,s as J}from"./persist-mEZN_fgH.js";import{s as v}from"./sharedSchema-BfZcy7aP.js";import{g as U}from"./ProviderRadio-BsYBw9YA.js";import{a as y}from"./@tanstack-QbMbTrh5.js";import{S as P}from"./logs-GiDJXbLS.js";import{C as w}from"./CodeSnippet-DNWdQmbo.js";import{N as M}from"./NumberBox-CrN0_kqI.js";import{S as X}from"./link-external-BT2L8hAQ.js";import{C as ee}from"./ProviderIcon-BOQJgapd.js";const Z=p.createContext(null);function Ee({children:a}){const{success:t,data:s}=$(),[r,n]=p.useState(!1),[l,i]=p.useState(!!t),[c,h]=p.useState(t?{location:s.location,provider:s.provider,stackName:s.stackName}:{}),[x,u]=p.useState(t?s.timestamp:""),m=p.useRef(null);return e.jsx(Z.Provider,{value:{isNextButtonDisabled:r,setIsNextButtonDisabled:n,data:c,setData:h,isLoading:l,setIsLoading:i,formRef:m,timestamp:x,setTimestamp:u},children:a})}function S(){const a=p.useContext(Z);if(a===null)throw new Error("useNewInfraFormContext must be used within an AuthProvider");return a}const re=a=>p.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...a},p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3ZM1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12ZM12 4.5C12.5523 4.5 13 4.94772 13 5.5V6H13.1667C15.0076 6 16.5 7.49238 16.5 9.33333C16.5 9.88562 16.0523 10.3333 15.5 10.3333C14.9477 10.3333 14.5 9.88562 14.5 9.33333C14.5 8.59695 13.903 8 13.1667 8H11C10.1716 8 9.5 8.67157 9.5 9.5C9.5 10.3284 10.1716 11 11 11H13C14.933 11 16.5 12.567 16.5 14.5C16.5 16.433 14.933 18 13 18V18.5C13 19.0523 12.5523 19.5 12 19.5C11.4477 19.5 11 19.0523 11 18.5V18H10.8333C8.99238 18 7.5 16.5076 7.5 14.6667C7.5 14.1144 7.94772 13.6667 8.5 13.6667C9.05228 13.6667 9.5 14.1144 9.5 14.6667C9.5 15.403 10.097 16 10.8333 16H13C13.8284 16 14.5 15.3284 14.5 14.5C14.5 13.6716 13.8284 13 13 13H11C9.067 13 7.5 11.433 7.5 9.5C7.5 7.567 9.067 6 11 6V5.5C11 4.94772 11.4477 4.5 12 4.5Z"})),ae=a=>p.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...a},p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.16145 4L18.8385 4C19.3657 3.99998 19.8205 3.99997 20.195 4.03057C20.5904 4.06287 20.9836 4.13419 21.362 4.32698C21.9265 4.6146 22.3854 5.07354 22.673 5.63803C22.8658 6.01641 22.9371 6.40963 22.9694 6.80498C23 7.17954 23 7.6343 23 8.16144V15.8386C23 16.3657 23 16.8205 22.9694 17.195C22.9371 17.5904 22.8658 17.9836 22.673 18.362C22.3854 18.9265 21.9265 19.3854 21.362 19.673C20.9836 19.8658 20.5904 19.9371 20.195 19.9694C19.8205 20 19.3657 20 18.8386 20L5.16148 20C4.63432 20 4.17955 20 3.80497 19.9694C3.40963 19.9371 3.01641 19.8658 2.63803 19.673C2.07354 19.3854 1.6146 18.9265 1.32698 18.362C1.13419 17.9836 1.06287 17.5904 1.03057 17.195C0.999967 16.8205 0.999983 16.3657 1 15.8385L1 10.0006C1 10.0004 1 10.0008 1 10.0006C1 10.0004 1 9.99958 1 9.99937L1 8.16146C0.999983 7.63431 0.999968 7.17955 1.03057 6.80497C1.06287 6.40963 1.13419 6.01641 1.32698 5.63803C1.6146 5.07354 2.07354 4.6146 2.63803 4.32698C3.01641 4.13419 3.40963 4.06287 3.80497 4.03057C4.17955 3.99997 4.63431 3.99998 5.16145 4ZM3 11V15.8C3 16.3766 3.00078 16.7488 3.02393 17.0322C3.04612 17.3038 3.0838 17.4045 3.109 17.454C3.20487 17.6422 3.35785 17.7951 3.54601 17.891C3.59546 17.9162 3.69617 17.9539 3.96784 17.9761C4.25117 17.9992 4.62345 18 5.2 18L18.8 18C19.3766 18 19.7488 17.9992 20.0322 17.9761C20.3038 17.9539 20.4045 17.9162 20.454 17.891C20.6422 17.7951 20.7951 17.6422 20.891 17.454C20.9162 17.4045 20.9539 17.3038 20.9761 17.0322C20.9992 16.7488 21 16.3766 21 15.8V11H3ZM21 9H3V8.2C3 7.62345 3.00078 7.25117 3.02393 6.96784C3.04612 6.69617 3.0838 6.59546 3.109 6.54601C3.20487 6.35785 3.35785 6.20487 3.54601 6.109C3.59546 6.0838 3.69617 6.04612 3.96784 6.02393C4.25118 6.00078 4.62345 6 5.2 6L18.8 6C19.3766 6 19.7488 6.00078 20.0322 6.02393C20.3038 6.04613 20.4045 6.0838 20.454 6.109C20.6422 6.20487 20.7951 6.35785 20.891 6.54601C20.9162 6.59546 20.9539 6.69617 20.9761 6.96784C20.9992 7.25118 21 7.62345 21 8.2V9ZM5 14C5 13.4477 5.44772 13 6 13H11C11.5523 13 12 13.4477 12 14C12 14.5523 11.5523 15 11 15H6C5.44772 15 5 14.5523 5 14Z"}));function _({provider:a}){return e.jsxs(O,{children:[e.jsx(H,{className:"block",children:e.jsxs(C,{intent:"warning",children:["This will give ZenML permissions and create secret keys for secure ZenML -",">"," ",U(a)," communication. You can revoke these permissions at any time."]})}),e.jsx(V,{sideOffset:0,className:"w-auto p-5",children:e.jsx(I,{viewportClassName:"max-h-[300px]",children:e.jsx(te,{provider:a})})})]})}function te({provider:a}){const{isPending:t,isError:s,error:r,data:n}=y(v.stackDeploymentInfo({provider:a}));if(t)return e.jsx(b,{className:"h-[100px] w-full"});if(s)return e.jsx("p",{children:r.message});const l=Object.entries(n.permissions);return e.jsx("ul",{className:"space-y-2 pr-3 text-text-sm",children:l.map(([i,c])=>e.jsxs("li",{className:"flex flex-col gap-1",children:[e.jsx("p",{children:i}),e.jsx("ul",{className:"list-inside list-[square] pl-4 text-neutral-400 marker:text-primary-200",children:c.map((h,x)=>e.jsx("li",{children:h},x))})]},i))})}function se({stackName:a,isLoading:t,isSuccess:s,components:r,displayPermissions:n=!1}){var l,i,c,h,x,u,m,g,f,j;return e.jsxs("div",{className:"divide-y divide-theme-border-moderate overflow-hidden rounded-md border border-theme-border-moderate",children:[e.jsxs("div",{className:"flex items-center gap-3 bg-theme-surface-secondary p-5 text-text-lg font-semibold",children:[t&&e.jsx(k,{className:"h-5 w-5 shrink-0 border-[3px]"}),s&&e.jsx(N,{className:"h-5 w-5",tickClasses:"w-3 h-3"}),e.jsx(z,{type:"square",size:"lg",children:e.jsx(A,{size:"lg",children:a[0]})}),a]}),e.jsxs("div",{className:"space-y-1 py-3 pl-9 pr-5",children:[e.jsx(d,{title:((l=r==null?void 0:r.connector)==null?void 0:l.name)||"IAM Role",isLoading:t,isSuccess:s,subtitle:((i=r==null?void 0:r.connector)==null?void 0:i.id)||"Manage access to AWS resources",badge:e.jsx(o,{type:"annotator",children:"Service Connector"}),img:{src:"https://public-flavor-logos.s3.eu-central-1.amazonaws.com/service_connector/iam.webp",alt:"IAM logo"}}),n&&e.jsx(_,{provider:"aws"})]}),e.jsx("div",{className:"py-3 pl-9 pr-5",children:e.jsx(d,{title:((c=r==null?void 0:r.artifactStore)==null?void 0:c.name)||"S3 Bucket",subtitle:((h=r==null?void 0:r.artifactStore)==null?void 0:h.id)||"Artifact storage for ML pipelines",badge:e.jsx(o,{type:"artifact_store",children:"Artifact Store"}),isLoading:t,isSuccess:s,img:{src:"https://public-flavor-logos.s3.eu-central-1.amazonaws.com/artifact_store/aws.png",alt:"S3 logo"}})}),e.jsx("div",{className:"py-3 pl-9 pr-5",children:e.jsx(d,{title:((x=r==null?void 0:r.registry)==null?void 0:x.name)||"ECR Repository",subtitle:((u=r==null?void 0:r.registry)==null?void 0:u.id)||"Container image storage",badge:e.jsx(o,{type:"container_registry",children:"Container Registry"}),isLoading:t,isSuccess:s,img:{src:"https://public-flavor-logos.s3.eu-central-1.amazonaws.com/container_registry/aws.png",alt:"ECR logo"}})}),e.jsx("div",{className:"py-3 pl-9 pr-5",children:e.jsx(d,{title:((m=r==null?void 0:r.orchestrator)==null?void 0:m.name)||"SageMaker",isLoading:t,isSuccess:s,subtitle:((g=r==null?void 0:r.orchestrator)==null?void 0:g.id)||"ML Workflow orchestration",badge:e.jsx(o,{type:"orchestrator",children:"Orchestrator"}),img:{src:"https://public-flavor-logos.s3.eu-central-1.amazonaws.com/orchestrator/sagemaker.png",alt:"Sagemaker logo"}})}),e.jsx("div",{className:"py-3 pl-9 pr-5",children:e.jsx(d,{title:((f=r==null?void 0:r.operator)==null?void 0:f.name)||"Sagemaker Step Operator",subtitle:((j=r==null?void 0:r.operator)==null?void 0:j.id)||"Execute individual steps",badge:e.jsx(o,{type:"step_operator",children:"Step Operator"}),isLoading:t,isSuccess:s,img:{src:"https://public-flavor-logos.s3.eu-central-1.amazonaws.com/step_operator/sagemaker.png",alt:"Sagemaker step operator logo"}})})]})}function le({stackName:a,isLoading:t,isSuccess:s,components:r,displayPermissions:n=!1}){var l,i,c,h,x,u,m,g,f,j,R,B;return e.jsxs("div",{className:"divide-y divide-theme-border-moderate overflow-hidden rounded-md border border-theme-border-moderate",children:[e.jsxs("div",{className:"flex items-center gap-3 bg-theme-surface-secondary p-5 text-text-lg font-semibold",children:[t&&e.jsx(k,{className:"h-5 w-5 shrink-0 border-[3px]"}),s&&e.jsx(N,{className:"h-5 w-5",tickClasses:"w-3 h-3"}),e.jsx(z,{type:"square",size:"lg",children:e.jsx(A,{size:"lg",children:a[0]})}),a]}),e.jsxs("div",{className:"space-y-1 py-3 pl-9 pr-5",children:[e.jsx(d,{title:((l=r==null?void 0:r.connector)==null?void 0:l.name)||"Service Account",isLoading:t,isSuccess:s,subtitle:((i=r==null?void 0:r.connector)==null?void 0:i.id)||"Manage access to GCP resources",badge:e.jsx(o,{type:"annotator",children:"Service Connector"}),img:{src:"https://public-flavor-logos.s3.eu-central-1.amazonaws.com/service_connector/gcp-iam.webp",alt:"Service Account logo"}}),n&&e.jsx(_,{provider:"gcp"})]}),e.jsx("div",{className:"py-3 pl-9 pr-5",children:e.jsx(d,{title:((c=r==null?void 0:r.artifactStore)==null?void 0:c.name)||"GCS Bucket",subtitle:((h=r==null?void 0:r.artifactStore)==null?void 0:h.id)||"Artifact storage for ML pipelines",badge:e.jsx(o,{type:"artifact_store",children:"Artifact Store"}),isLoading:t,isSuccess:s,img:{src:"https://public-flavor-logos.s3.eu-central-1.amazonaws.com/artifact_store/gcp.png",alt:"GCS logo"}})}),e.jsx("div",{className:"py-3 pl-9 pr-5",children:e.jsx(d,{title:((x=r==null?void 0:r.registry)==null?void 0:x.name)||"Google Artifact Registry",subtitle:((u=r==null?void 0:r.registry)==null?void 0:u.id)||"Container image storage",badge:e.jsx(o,{type:"container_registry",children:"Container Registry"}),isLoading:t,isSuccess:s,img:{src:"https://public-flavor-logos.s3.eu-central-1.amazonaws.com/container_registry/gcp.png",alt:"Google Artifact Registry logo"}})}),e.jsx("div",{className:"py-3 pl-9 pr-5",children:e.jsx(d,{title:((m=r==null?void 0:r.orchestrator)==null?void 0:m.name)||"Vertex AI",isLoading:t,isSuccess:s,subtitle:((g=r==null?void 0:r.orchestrator)==null?void 0:g.id)||"ML Workflow orchestration",badge:e.jsx(o,{type:"orchestrator",children:"Orchestrator"}),img:{src:"https://public-flavor-logos.s3.eu-central-1.amazonaws.com/orchestrator/vertexai.png",alt:"VertexAI logo"}})}),e.jsx("div",{className:"py-3 pl-9 pr-5",children:e.jsx(d,{title:((f=r==null?void 0:r.imageBuilder)==null?void 0:f.name)||"Cloud Build",isLoading:t,isSuccess:s,subtitle:((j=r==null?void 0:r.imageBuilder)==null?void 0:j.id)||"Build, test, and deploy images",badge:e.jsx(o,{type:"image_builder",children:"Image Builder"}),img:{src:"https://public-flavor-logos.s3.eu-central-1.amazonaws.com/image_builder/gcp.png",alt:"Cloud Build logo"}})}),e.jsx("div",{className:"py-3 pl-9 pr-5",children:e.jsx(d,{title:((R=r==null?void 0:r.operator)==null?void 0:R.name)||"Vertex Step Operator",subtitle:((B=r==null?void 0:r.operator)==null?void 0:B.id)||"Execute individual steps",badge:e.jsx(o,{type:"step_operator",children:"Step Operator"}),isLoading:t,isSuccess:s,img:{src:"https://public-flavor-logos.s3.eu-central-1.amazonaws.com/step_operator/vertexai.png",alt:"Vertex step operator logo"}})})]})}function ie(){return e.jsx(C,{className:"border-warning-300 bg-warning-50",intent:"warning",children:'The Cloud Shell session will warn you that the ZenML GitHub repository is untrusted. We recommend that you review the contents of the repository and then check the "Trust repo" checkbox to proceed with the deployment, otherwise the Cloud Shell session will not be authenticated to access your GCP projects.'})}function ce(){const{data:a}=S(),t=y({...v.stackDeploymentConfig({provider:"gcp",stack_name:a.stackName,location:a.location})});return t.isError?null:t.isPending?e.jsx(b,{className:"h-[200px] w-full"}):e.jsxs("section",{className:"space-y-5 border-t border-theme-border-moderate pt-5",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsxs("p",{className:"flex items-center gap-1 text-text-lg font-semibold",children:[e.jsx(P,{className:"h-5 w-5 fill-primary-400"}),"Configuration"]}),e.jsx("p",{className:"text-theme-text-secondary",children:"You will be asked to provide the following configuration values during the deployment process."})]}),e.jsx(w,{fullWidth:!0,highlightCode:!0,codeClasses:"whitespace-pre-wrap word-break-all",wrap:!0,code:t.data.configuration||""})]})}function Ie(){const{data:a}=S();return e.jsxs("div",{className:"space-y-5",children:[e.jsx(C,{children:"This will provision and register a basic ZenML stack with all the necessary resources and credentials required to run pipelines."}),a.provider!=="azure"&&e.jsxs("div",{children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-1",children:[e.jsx(ee,{provider:a.provider,className:"h-5 w-5"}),e.jsx("p",{className:"text-text-lg font-semibold",children:"Deploy the Stack"})]}),e.jsx("p",{className:"text-theme-text-secondary",children:"Deploy the stack from your browser by clicking the button below:"})]}),a.provider==="gcp"&&e.jsx(ie,{}),a.provider!=="azure"&&e.jsx(D,{setTimestampBool:!0}),a.provider==="gcp"&&e.jsx(ce,{}),a.provider==="azure"&&e.jsx(de,{displayInfobox:!0})]})}function D({setTimestampBool:a,children:t}){const{data:s,setTimestamp:r,setIsLoading:n}=S(),l=y({...v.stackDeploymentConfig({provider:s.provider,location:s.location,stack_name:s.stackName})});if(l.isError)return null;if(l.isPending)return e.jsx(b,{className:"h-[48px] w-[100px]"});function i(){const c=new Date().toISOString().slice(0,-1);a&&r(c),J({location:s.location||"",provider:s.provider||"aws",stackName:s.stackName,timestamp:c}),n(!0)}return e.jsx(G,{asChild:!0,className:"w-fit gap-3 whitespace-nowrap",size:"lg",onClick:()=>i(),children:e.jsxs("a",{href:l.data.deployment_url,target:"_blank",rel:"noopener noreferrer",children:[t||e.jsxs("div",{children:["Deploy in ",e.jsx("span",{className:"uppercase",children:s.provider})]}),e.jsx(X,{className:"h-5 w-5 shrink-0 fill-white"})]})})}function oe({stackName:a,isLoading:t,isSuccess:s,components:r,displayPermissions:n=!1}){var l,i,c,h,x,u,m,g,f,j;return e.jsxs("div",{className:"divide-y divide-theme-border-moderate overflow-hidden rounded-md border border-theme-border-moderate",children:[e.jsxs("div",{className:"flex items-center gap-3 bg-theme-surface-secondary p-5 text-text-lg font-semibold",children:[t&&e.jsx(k,{className:"h-5 w-5 shrink-0 border-[3px]"}),s&&e.jsx(N,{className:"h-5 w-5",tickClasses:"w-3 h-3"}),e.jsx(z,{type:"square",size:"lg",children:e.jsx(A,{size:"lg",children:a[0]})}),a]}),e.jsxs("div",{className:"space-y-1 py-3 pl-9 pr-5",children:[e.jsx(d,{title:((l=r==null?void 0:r.connector)==null?void 0:l.name)||"Azure Service Principal",isLoading:t,isSuccess:s,subtitle:((i=r==null?void 0:r.connector)==null?void 0:i.id)||"Manage access to Azure resources",badge:e.jsx(o,{type:"annotator",children:"Service Connector"}),img:{src:"https://public-flavor-logos.s3.eu-central-1.amazonaws.com/service_connector/azure-service-principal.webp",alt:"Service Principal logo"}}),n&&e.jsx(_,{provider:"azure"})]}),e.jsx("div",{className:"py-3 pl-9 pr-5",children:e.jsx(d,{title:((c=r==null?void 0:r.artifactStore)==null?void 0:c.name)||"Azure Blob Storage",subtitle:((h=r==null?void 0:r.artifactStore)==null?void 0:h.id)||"Artifact storage for ML pipelines",badge:e.jsx(o,{type:"artifact_store",children:"Artifact Store"}),isLoading:t,isSuccess:s,img:{src:"https://public-flavor-logos.s3.eu-central-1.amazonaws.com/artifact_store/azure.png",alt:"Blob Storage logo"}})}),e.jsx("div",{className:"py-3 pl-9 pr-5",children:e.jsx(d,{title:((x=r==null?void 0:r.registry)==null?void 0:x.name)||"Azure Container Registry",subtitle:((u=r==null?void 0:r.registry)==null?void 0:u.id)||"Container image storage",badge:e.jsx(o,{type:"container_registry",children:"Container Registry"}),isLoading:t,isSuccess:s,img:{src:"https://public-flavor-logos.s3.eu-central-1.amazonaws.com/container_registry/azure.png",alt:"Azure Container Registry logo"}})}),e.jsx("div",{className:"py-3 pl-9 pr-5",children:e.jsx(d,{title:((m=r==null?void 0:r.orchestrator)==null?void 0:m.name)||"Azure ML",isLoading:t,isSuccess:s,subtitle:((g=r==null?void 0:r.orchestrator)==null?void 0:g.id)||"ML Workflow orchestration",badge:e.jsx(o,{type:"orchestrator",children:"Orchestrator"}),img:{src:"https://public-flavor-logos.s3.eu-central-1.amazonaws.com/orchestrator/azureml.png",alt:"Azure ML logo"}})}),e.jsx("div",{className:"py-3 pl-9 pr-5",children:e.jsx(d,{title:((f=r==null?void 0:r.operator)==null?void 0:f.name)||"Azure Step Operator",subtitle:((j=r==null?void 0:r.operator)==null?void 0:j.id)||"Execute individual steps",badge:e.jsx(o,{type:"step_operator",children:"Step Operator"}),isLoading:t,isSuccess:s,img:{src:"https://public-flavor-logos.s3.eu-central-1.amazonaws.com/step_operator/azureml.png",alt:"Azure Step Operator logo"}})})]})}function de({displayInfobox:a=!1}){return e.jsxs("section",{className:"space-y-5",children:[e.jsx(pe,{}),e.jsx(ne,{displayInfobox:a}),e.jsx(xe,{}),e.jsx(he,{})]})}function ne({displayInfobox:a=!1}){return e.jsxs("div",{className:"space-y-5",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(M,{children:"1"}),e.jsx("span",{className:"text-text-lg font-semibold",children:"Open the Azure Cloud Shell Console"})]}),e.jsx("p",{className:"text-theme-text-secondary",children:"Deploy the stack using the Azure Cloud Shell console."})]}),e.jsx(D,{setTimestampBool:!0,children:e.jsx("span",{className:"text-text-lg font-semibold",children:"Open the Azure Cloud Shell"})}),a&&e.jsx(C,{className:"border-warning-300 bg-warning-50",intent:"warning",children:"After the Terraform deployment is complete, you can close the Cloud Shell session and return to the dashboard to view details about the associated ZenML stack automatically registered with ZenML."})]})}function xe(){return e.jsxs("div",{className:"space-y-5",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(M,{children:"2"}),e.jsx("span",{className:"text-text-lg font-semibold",children:"Create a file with the following configuration"})]}),e.jsxs("p",{className:"text-theme-text-secondary",children:["Create a file named ",e.jsx("code",{className:"font-mono text-primary-400",children:"main.tf"})," in the Cloud Shell and copy and paste the Terraform configuration below into it."]})]}),e.jsx(ue,{})]})}function he(){return e.jsxs("div",{className:"space-y-5",children:[e.jsx("div",{className:"space-y-1",children:e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(M,{children:"3"}),e.jsx("span",{className:"text-text-lg font-semibold",children:"Run the following commands"})]})}),e.jsxs("div",{children:[e.jsx("p",{className:"mb-1 text-text-sm text-theme-text-secondary",children:"Initialize the Terraform configuration."}),e.jsx(w,{code:"terraform init --upgrade"})]}),e.jsxs("div",{children:[e.jsx("p",{className:"mb-1 text-text-sm text-theme-text-secondary",children:"Run terraform apply to deploy the ZenML stack to Azure."}),e.jsx(w,{code:"terraform apply"})]})]})}function ue(){const{data:a}=S(),t=y({...v.stackDeploymentConfig({provider:"azure",stack_name:a.stackName,location:a.location}),enabled:!!a.stackName});return t.isError?null:t.isPending?e.jsx(b,{className:"h-[200px] w-full"}):e.jsx(w,{fullWidth:!0,highlightCode:!0,codeClasses:"whitespace-pre-wrap word-break-all",wrap:!0,code:t.data.configuration||""})}function pe(){return e.jsxs("div",{className:"space-y-1",children:[e.jsxs("p",{className:"flex items-center gap-1 text-text-lg font-semibold",children:[e.jsx(P,{className:"h-5 w-5 fill-primary-400"}),"Configuration"]}),e.jsx("p",{className:"text-theme-text-secondary",children:"You will be asked to provide the following configuration values during the deployment process."})]})}function me({componentProps:a,type:t}){switch(t){case"aws":return e.jsx(se,{...a});case"gcp":return e.jsx(le,{...a});case"azure":return e.jsx(oe,{...a})}}function d({img:a,title:t,subtitle:s,badge:r,isSuccess:n,isLoading:l}){return e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[l&&e.jsx(k,{className:"h-5 w-5 shrink-0 border-[3px]"}),n&&e.jsx(N,{className:"h-5 w-5",tickClasses:"w-3 h-3"}),e.jsx("img",{width:"40",height:"40",alt:a.alt,src:a.src}),e.jsxs("div",{children:[e.jsx("p",{className:"text-text-lg font-semibold",children:t}),e.jsx("p",{className:"text-theme-text-secondary",children:s})]})]}),r]})}function Pe({provider:a}){function t(){let s="#";switch(a){case"aws":s="https://calculator.aws/#/";break;case"gcp":s="https://cloud.google.com/products/calculator";break;case"azure":s="https://azure.microsoft.com/en-us/pricing/calculator/";break}return e.jsx("a",{href:s,target:"_blank",rel:"noopener noreferrer",className:"link",children:"official pricing calculator"})}return e.jsxs("div",{className:"space-y-5",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsxs("p",{className:"flex items-center gap-1 text-text-lg font-semibold",children:[e.jsx(re,{className:"h-5 w-5 fill-primary-400"}),"Estimated Cost"]}),e.jsx("p",{className:"text-theme-text-secondary",children:"These are rough estimates and actual costs may vary based on your usage."})]}),e.jsxs(W,{className:"flex items-start gap-[10px] p-3",children:[e.jsx("div",{className:"content-center rounded-sm bg-blue-25 p-1",children:e.jsx(ae,{className:"h-5 w-5 fill-blue-400"})}),e.jsxs("div",{children:[e.jsxs("p",{children:["A small training job would cost around:"," ",e.jsx("span",{className:"font-semibold text-theme-text-success",children:"$0.60"})]}),e.jsxs("p",{className:"text-text-xs text-theme-text-secondary",children:["Please use the ",e.jsx(t,{})," for a detailed estimate"]})]})]})]})}const ge=a=>p.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...a},p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 3C8.13401 3 5 6.13401 5 10C5 11.8921 5.85317 13.678 7.29228 15.5467C8.50741 17.1245 10.0627 18.6673 11.7323 20.3233C11.8212 20.4115 11.9105 20.5 12 20.5889C12.0895 20.5 12.1788 20.4115 12.2677 20.3233C13.9373 18.6673 15.4926 17.1245 16.7077 15.5467C18.1468 13.678 19 11.8921 19 10C19 6.13401 15.866 3 12 3ZM3 10C3 5.02944 7.02944 1 12 1C16.9706 1 21 5.02944 21 10C21 12.5262 19.8532 14.7402 18.2923 16.767C16.988 18.4607 15.3185 20.1156 13.6508 21.7689C13.3354 22.0816 13.02 22.3943 12.7071 22.7071C12.3166 23.0976 11.6834 23.0976 11.2929 22.7071C10.98 22.3943 10.6646 22.0816 10.3492 21.7689C8.68147 20.1156 7.01205 18.4607 5.70772 16.767C4.14683 14.7402 3 12.5262 3 10ZM12 8C10.8954 8 10 8.89543 10 10C10 11.1046 10.8954 12 12 12C13.1046 12 14 11.1046 14 10C14 8.89543 13.1046 8 12 8ZM8 10C8 7.79086 9.79086 6 12 6C14.2091 6 16 7.79086 16 10C16 12.2091 14.2091 14 12 14C9.79086 14 8 12.2091 8 10Z"}));function fe({provider:a}){const{control:t}=E(),{isPending:s,isError:r,data:n}=y({...v.stackDeploymentInfo({provider:a})});if(r)return null;if(s)return e.jsx(b,{className:"h-[40px] w-[100px]"});const l=Object.entries(n.locations);return e.jsx(T,{control:t,name:"region",render:({field:{onChange:i,ref:c,...h}})=>e.jsxs(Y,{...h,onValueChange:i,children:[e.jsx(F,{className:"border border-neutral-300 text-left text-text-md",children:e.jsx(q,{className:"flex items-center gap-2",placeholder:"Select your Location"})}),e.jsx(Q,{children:e.jsx(I,{viewportClassName:"max-h-[300px]",children:l.map(([x,u])=>e.jsxs(K,{value:u,children:[x," - ",e.jsx("span",{className:"text-theme-text-secondary",children:u})]},x))})})]})})}function Ze({provider:a}){return e.jsxs("div",{className:"space-y-5 border-b border-theme-border-moderate pb-5",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsxs("p",{className:"flex items-center gap-1 text-text-lg font-semibold",children:[e.jsx(ge,{className:"h-5 w-5 fill-primary-400"}),"Choose Your Location"]}),e.jsx("p",{className:"text-theme-text-secondary",children:"Select where you want to deploy your cloud infrastructure for optimal performance and compliance."})]}),e.jsx(fe,{provider:a})]})}function De({provider:a}){const{watch:t}=E();return e.jsxs("div",{className:"space-y-5 border-b border-theme-border-moderate pb-5",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsxs("p",{className:"flex items-center gap-1 text-text-lg font-semibold",children:[e.jsx(L,{className:"h-5 w-5 fill-primary-400"}),"Review Your Stack Components"]}),e.jsx("p",{className:"text-theme-text-secondary",children:"The following components will be created for your ZenML stack."})]}),e.jsx(me,{type:a,componentProps:{displayPermissions:!0,stackName:t("stackName")}}),e.jsx(C,{children:"These resources create a basic ZenML stack for ML workflow management. ZenML supports highly flexible stacks. You can build advanced stacks at any time, combining your preferred tools and components for more complex MLOps."})]})}export{de as A,me as C,D,Pe as E,ce as G,Ee as N,Ze as R,De as a,Ie as b,S as u};
@@ -1 +1 @@
1
- import{j as r}from"./@radix-DnFH_oo1.js";import{S as o,a as m,b as n}from"./gcp-Dj6ntk0L.js";import{q as t}from"./index-Davdjm1d.js";function x({provider:c,className:e,...s}){const a=t("w-5 h-5 shrink-0",e);switch(c){case"aws":return r.jsx(n,{...s,className:a});case"azure":return r.jsx(m,{...s,className:a});case"gcp":return r.jsx(o,{...s,className:a})}}export{x as C};
1
+ import{j as r}from"./@radix-DnFH_oo1.js";import{S as o,a as m,b as n}from"./gcp-Dj6ntk0L.js";import{X as t}from"./index-B9wVwe7u.js";function x({provider:c,className:e,...s}){const a=t("w-5 h-5 shrink-0",e);switch(c){case"aws":return r.jsx(n,{...s,className:a});case"azure":return r.jsx(m,{...s,className:a});case"gcp":return r.jsx(o,{...s,className:a})}}export{x as C};
@@ -0,0 +1 @@
1
+ import{r as c,j as e}from"./@radix-DnFH_oo1.js";import{X as i,f as d,r as m,a9 as u,I as x,e as p}from"./index-B9wVwe7u.js";import{T as f}from"./Tick-i1DYsVcX.js";import{c as h}from"./persist-mEZN_fgH.js";import{b as j}from"./@react-router-APVeuk-U.js";import{b as N}from"./index.esm-BE1uqCX5.js";const o=c.createContext(null);function P({children:t,initialStep:r=0,maxSteps:s}){const[a,n]=c.useState(r);return e.jsx(o.Provider,{value:{currentStep:a,setCurrentStep:n,maxSteps:s},children:t})}function l(){const t=c.useContext(o);if(t===null)throw new Error("useWizardContext must be used within a WizardProvider");return t}function W({entries:t}){return e.jsx("aside",{className:"whitespace-nowrap p-2 text-text-sm",children:e.jsx("ul",{className:"space-y-5",children:t.map((r,s)=>e.jsx("li",{children:e.jsx(y,{index:s,children:r})},s))})})}function y({index:t,children:r}){const{currentStep:s}=l(),a=i("font-semibold flex items-center gap-1",{"text-theme-text-tertiary":t<s,"text-theme-text-secondary":t>s});return e.jsxs("div",{className:a,children:[e.jsx(b,{index:t}),e.jsx("span",{children:r})]})}function b({index:t}){const{currentStep:r}=l(),s=t+1;if(r>t)return e.jsx(f,{className:"h-5 w-5",tickClasses:"w-3 h-3"});if(r===t)return e.jsx("div",{className:"flex h-5 w-5 items-center justify-center rounded-rounded bg-primary-300 text-white",children:s});if(r<t)return e.jsx("div",{className:"flex h-5 w-5 items-center justify-center rounded-rounded bg-neutral-300 text-white",children:s})}function B(){const t=j();function r(){h(),t(m.stacks.create.index)}return e.jsx(d,{onClick:()=>r(),intent:"secondary",size:"md",children:"Cancel"})}function I(t){switch(t){case"aws":return"AWS";case"azure":return"Azure";case"gcp":return"GCP";default:return"Provider"}}function R(){var s;const{register:t,formState:{errors:r}}=N();return e.jsxs("section",{className:"space-y-5 border-b border-theme-border-moderate pb-5",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsxs("p",{className:"flex items-center gap-1 text-text-lg font-semibold",children:[e.jsx(u,{className:"h-5 w-5 fill-primary-400"}),"Select a name for your Stack"]}),e.jsx("p",{className:"text-theme-text-secondary",children:"Please select a name for your stack, that is not used already."})]}),e.jsx("div",{className:"flex items-center space-x-2",children:e.jsxs("div",{className:"space-y-1",children:[e.jsx(x,{className:`${r.stackName?"border-red-500":""}`,placeholder:"zenml-remote-stack",...t("stackName")}),r.stackName&&e.jsx("p",{className:"text-text-xs text-red-500",children:(s=r.stackName.message)==null?void 0:s.toString()})]})})]})}const v=c.forwardRef(({children:t,className:r,id:s,...a},n)=>e.jsxs("div",{className:"min-h-[160px] min-w-[160px]",children:[e.jsx("input",{id:s,...a,ref:n,className:i("peer sr-only",r),type:"radio"}),e.jsx("label",{htmlFor:s,className:"flex h-full w-full flex-col items-start justify-center space-y-5 rounded-md border border-theme-border-minimal bg-theme-surface-primary p-5 text-text-lg text-theme-text-secondary hover:cursor-pointer peer-checked:border-primary-100 peer-checked:bg-primary-25 peer-focus-visible:border-primary-100 peer-disabled:cursor-default peer-disabled:bg-neutral-50",children:t})]}));v.displayName="CloudProviderRadioButton";function E({icon:t,title:r,subtitle:s,comingSoon:a}){return e.jsxs("div",{className:"space-y-1 text-left",children:[t,e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx("p",{className:"text-text-lg font-semibold text-theme-text-primary",children:r}),a&&e.jsx(p,{className:"font-semibold",color:"purple",size:"sm",children:"Coming Soon"})]}),e.jsx("p",{className:"text-text-sm text-theme-text-secondary",children:s})]})}export{v as C,W as L,E as P,R as S,P as W,B as a,I as g,l as u};
@@ -1 +1 @@
1
- import{r as l,j as t}from"./@radix-DnFH_oo1.js";import{S as v}from"./dots-horizontal-C6K59vUm.js";import{F as w}from"./chevron-right-double-c9H46Kl8.js";import{az as S,q as j,I as C}from"./index-Davdjm1d.js";import{o as b}from"./url-DNHuFfYx.js";import{b as x,a as L}from"./@react-router-APVeuk-U.js";import{d as E}from"./index-5GJ5ysEZ.js";const P=r=>l.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...r},l.createElement("g",{id:"chevron-left-double"},l.createElement("path",{id:"Icon (Stroke)",fillRule:"evenodd",clipRule:"evenodd",d:"M11.7071 6.29289C12.0976 6.68342 12.0976 7.31658 11.7071 7.70711L7.41421 12L11.7071 16.2929C12.0976 16.6834 12.0976 17.3166 11.7071 17.7071C11.3166 18.0976 10.6834 18.0976 10.2929 17.7071L5.29289 12.7071C4.90237 12.3166 4.90237 11.6834 5.29289 11.2929L10.2929 6.29289C10.6834 5.90237 11.3166 5.90237 11.7071 6.29289ZM18.7071 6.29289C19.0976 6.68342 19.0976 7.31658 18.7071 7.70711L14.4142 12L18.7071 16.2929C19.0976 16.6834 19.0976 17.3166 18.7071 17.7071C18.3166 18.0976 17.6834 18.0976 17.2929 17.7071L12.2929 12.7071C11.9024 12.3166 11.9024 11.6834 12.2929 11.2929L17.2929 6.29289C17.6834 5.90237 18.3166 5.90237 18.7071 6.29289Z"}))),N=P,R=r=>l.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...r},l.createElement("g",{id:"chevron-left"},l.createElement("path",{id:"Icon (Stroke)",fillRule:"evenodd",clipRule:"evenodd",d:"M15.7071 5.29289C16.0976 5.68342 16.0976 6.31658 15.7071 6.70711L10.4142 12L15.7071 17.2929C16.0976 17.6834 16.0976 18.3166 15.7071 18.7071C15.3166 19.0976 14.6834 19.0976 14.2929 18.7071L8.29289 12.7071C7.90237 12.3166 7.90237 11.6834 8.29289 11.2929L14.2929 5.29289C14.6834 4.90237 15.3166 4.90237 15.7071 5.29289Z"}))),y=R;function D({paginate:r,searchParams:i}){const d=x(),{index:a,total_pages:c}=r;function u(n){const o=new URLSearchParams(b(i));o.set("page",n.toString()),d(`?${o.toString()}`,{preventScrollReset:!1})}const g=()=>{const n=[];let h=!1,m=!1;for(let e=1;e<=c;e++){const s=e>1&&e<c&&Math.abs(e-a)>1;(e===1||e===c||s||Math.abs(e-a)<=1)&&(s?e<a&&!h?(n.push(t.jsx(f,{},"ellipsis-left")),h=!0):e>a&&!m&&(n.push(t.jsx(f,{},"ellipsis-right")),m=!0):n.push(t.jsx(p,{"aria-label":`Go to page ${e}`,"aria-current":e===a,className:`${e===a?"!bg-primary-500 text-theme-text-negative":""}`,onClick:()=>u(e),disabled:e===a,children:e},e)))}return n};return t.jsx("nav",{role:"navigation","aria-label":"Pagination Navigation",children:t.jsxs("ul",{className:"flex gap-1",children:[t.jsx("li",{children:t.jsx(p,{disabled:a===1,onClick:()=>u(1),"aria-label":"Go to first page",children:t.jsx(N,{className:"h-4 w-4 group-disabled/button:fill-neutral-300"})})}),t.jsx("li",{children:t.jsx(p,{disabled:a===1,onClick:()=>u(a-1),"aria-label":"Go to previous page",children:t.jsx(y,{className:"h-4 w-4 group-disabled/button:fill-neutral-300"})})}),g().map((n,o)=>t.jsx("li",{children:n},o)),t.jsx("li",{children:t.jsx(p,{disabled:a===c,onClick:()=>u(a+1),"aria-label":"Go to next page",children:t.jsx(S,{className:"h-4 w-4 group-disabled/button:fill-neutral-300"})})}),t.jsx("li",{children:t.jsx(p,{disabled:a===c,onClick:()=>u(c),"aria-label":"Go to last page",children:t.jsx(w,{className:"h-4 w-4 group-disabled/button:fill-neutral-300"})})})]})})}function f(){return t.jsx("div",{className:"flex h-[36px] w-[36px] items-center justify-center rounded-sm border border-theme-border-moderate",children:t.jsx(v,{className:"h-4 w-4"})})}const p=l.forwardRef(({className:r,...i},d)=>t.jsx("button",{...i,ref:d,className:j("group/button flex h-[36px] w-[36px] items-center justify-center rounded-sm border border-neutral-300 hover:bg-neutral-200 active:border-neutral-400 active:bg-neutral-300 disabled:pointer-events-none disabled:bg-theme-surface-primary ",r)}));p.displayName="PaginationButton";const k=["equals:","contains:","startswith:","endswith:","gte:","gt:","lte:","lt:"];function B(r){const i=k.find(d=>r.startsWith(d));return i?r.slice(i.length):r}const $=l.forwardRef(({searchParams:r,searchContains:i=!0,...d},a)=>{const{pathname:c}=L(),u=x(),[g,n]=l.useState(B(r.name||"")||""),o=l.useMemo(()=>E(h,500),[]);l.useEffect(()=>()=>{o.cancel()},[o]);function h(e){const s=new URLSearchParams(b(r));s.delete("logical_operator"),e?(s.set("name",i?`contains:${e}`:`${e}`),s.set("operator","or"),s.set("page","1")):(s.delete("name"),s.delete("operator")),u(`${c}?${s.toString()}`,{preventScrollReset:!0,replace:!0})}function m(e){const{value:s}=e.target;n(s),o(s)}return t.jsx(C,{...d,ref:a,value:g,onChange:m,placeholder:"Search...",inputSize:"md"})});$.displayName="SearchField";export{D as P,$ as S};
1
+ import{r as l,j as t}from"./@radix-DnFH_oo1.js";import{S as v}from"./dots-horizontal-C6K59vUm.js";import{F as w}from"./chevron-right-double-c9H46Kl8.js";import{aF as S,X as j,I as C}from"./index-B9wVwe7u.js";import{o as b}from"./url-DwbuKk1b.js";import{b as x,c as L}from"./@react-router-APVeuk-U.js";import{d as P}from"./index-5GJ5ysEZ.js";const E=r=>l.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...r},l.createElement("g",{id:"chevron-left-double"},l.createElement("path",{id:"Icon (Stroke)",fillRule:"evenodd",clipRule:"evenodd",d:"M11.7071 6.29289C12.0976 6.68342 12.0976 7.31658 11.7071 7.70711L7.41421 12L11.7071 16.2929C12.0976 16.6834 12.0976 17.3166 11.7071 17.7071C11.3166 18.0976 10.6834 18.0976 10.2929 17.7071L5.29289 12.7071C4.90237 12.3166 4.90237 11.6834 5.29289 11.2929L10.2929 6.29289C10.6834 5.90237 11.3166 5.90237 11.7071 6.29289ZM18.7071 6.29289C19.0976 6.68342 19.0976 7.31658 18.7071 7.70711L14.4142 12L18.7071 16.2929C19.0976 16.6834 19.0976 17.3166 18.7071 17.7071C18.3166 18.0976 17.6834 18.0976 17.2929 17.7071L12.2929 12.7071C11.9024 12.3166 11.9024 11.6834 12.2929 11.2929L17.2929 6.29289C17.6834 5.90237 18.3166 5.90237 18.7071 6.29289Z"}))),N=E,R=r=>l.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...r},l.createElement("g",{id:"chevron-left"},l.createElement("path",{id:"Icon (Stroke)",fillRule:"evenodd",clipRule:"evenodd",d:"M15.7071 5.29289C16.0976 5.68342 16.0976 6.31658 15.7071 6.70711L10.4142 12L15.7071 17.2929C16.0976 17.6834 16.0976 18.3166 15.7071 18.7071C15.3166 19.0976 14.6834 19.0976 14.2929 18.7071L8.29289 12.7071C7.90237 12.3166 7.90237 11.6834 8.29289 11.2929L14.2929 5.29289C14.6834 4.90237 15.3166 4.90237 15.7071 5.29289Z"}))),y=R;function D({paginate:r,searchParams:o}){const d=x(),{index:a,total_pages:c}=r;function u(n){const i=new URLSearchParams(b(o));i.set("page",n.toString()),d(`?${i.toString()}`,{preventScrollReset:!1})}const g=()=>{const n=[];let h=!1,m=!1;for(let e=1;e<=c;e++){const s=e>1&&e<c&&Math.abs(e-a)>1;(e===1||e===c||s||Math.abs(e-a)<=1)&&(s?e<a&&!h?(n.push(t.jsx(f,{},"ellipsis-left")),h=!0):e>a&&!m&&(n.push(t.jsx(f,{},"ellipsis-right")),m=!0):n.push(t.jsx(p,{"aria-label":`Go to page ${e}`,"aria-current":e===a,className:`${e===a?"!bg-primary-500 text-theme-text-negative":""}`,onClick:()=>u(e),disabled:e===a,children:e},e)))}return n};return t.jsx("nav",{role:"navigation","aria-label":"Pagination Navigation",children:t.jsxs("ul",{className:"flex gap-1",children:[t.jsx("li",{children:t.jsx(p,{disabled:a===1,onClick:()=>u(1),"aria-label":"Go to first page",children:t.jsx(N,{className:"h-4 w-4 group-disabled/button:fill-neutral-300"})})}),t.jsx("li",{children:t.jsx(p,{disabled:a===1,onClick:()=>u(a-1),"aria-label":"Go to previous page",children:t.jsx(y,{className:"h-4 w-4 group-disabled/button:fill-neutral-300"})})}),g().map((n,i)=>t.jsx("li",{children:n},i)),t.jsx("li",{children:t.jsx(p,{disabled:a===c,onClick:()=>u(a+1),"aria-label":"Go to next page",children:t.jsx(S,{className:"h-4 w-4 group-disabled/button:fill-neutral-300"})})}),t.jsx("li",{children:t.jsx(p,{disabled:a===c,onClick:()=>u(c),"aria-label":"Go to last page",children:t.jsx(w,{className:"h-4 w-4 group-disabled/button:fill-neutral-300"})})})]})})}function f(){return t.jsx("div",{className:"flex h-[36px] w-[36px] items-center justify-center rounded-sm border border-theme-border-moderate",children:t.jsx(v,{className:"h-4 w-4"})})}const p=l.forwardRef(({className:r,...o},d)=>t.jsx("button",{...o,ref:d,className:j("group/button flex h-[36px] w-[36px] items-center justify-center rounded-sm border border-neutral-300 hover:bg-neutral-200 active:border-neutral-400 active:bg-neutral-300 disabled:pointer-events-none disabled:bg-theme-surface-primary ",r)}));p.displayName="PaginationButton";const k=["equals:","contains:","startswith:","endswith:","gte:","gt:","lte:","lt:"];function B(r){const o=k.find(d=>r.startsWith(d));return o?r.slice(o.length):r}const M=l.forwardRef(({searchParams:r,searchContains:o=!0,...d},a)=>{const c=x(),[u]=L(),[g,n]=l.useState(B(r.name||"")||""),i=l.useMemo(()=>P(h,500),[]);l.useEffect(()=>()=>{i.cancel()},[i]);function h(e){const s=new URLSearchParams({...Object.fromEntries(u),...b(r)});s.delete("logical_operator"),e?(s.set("name",o?`contains:${e}`:`${e}`),s.set("operator","or"),s.set("page","1")):(s.delete("name"),s.delete("operator")),c(`?${s.toString()}`,{preventScrollReset:!0,replace:!0})}function m(e){const{value:s}=e.target;n(s),i(s)}return t.jsx(C,{...d,ref:a,value:g,onChange:m,placeholder:"Search...",inputSize:"md"})});M.displayName="SearchField";export{D as P,M as S};
@@ -1 +1 @@
1
- import{j as s}from"./@radix-DnFH_oo1.js";import{I as a,h as p}from"./index-Davdjm1d.js";import{u as w}from"./index.esm-BE1uqCX5.js";import{t as h}from"./zod-uFd1wBcd.js";import{P as u}from"./PasswordChecker-DE71J_3F.js";import{g as f}from"./form-schemas-DD4OppNK.js";function b({displayUsername:r=!1,submitHandler:l,headline:o="Create your password",subHeadine:c="Select a password for your account"}){var t;const{register:e,watch:m,handleSubmit:d,formState:{isValid:i,errors:n}}=w({resolver:h(f(r)),mode:"onChange",criteriaMode:"all",defaultValues:{username:""}}),x=(t=n.newPassword)==null?void 0:t.types;return s.jsxs("div",{className:"space-y-5",children:[s.jsxs("div",{children:[s.jsx("h1",{className:"text-display-xs font-semibold",children:o}),s.jsx("p",{className:"text-theme-text-secondary",children:c})]}),s.jsxs("form",{onSubmit:d(l),className:"space-y-5",children:[s.jsx("div",{className:"space-y-2",children:r&&s.jsxs("div",{className:"space-y-0.5",children:[s.jsx("label",{className:"text-text-sm",children:"Username"}),s.jsx(a,{...e("username"),className:"w-full"})]})}),s.jsxs("div",{className:"space-y-0.5",children:[s.jsx("label",{className:"text-text-sm",children:"New Password"}),s.jsx(a,{...e("newPassword"),type:"password",className:"w-full"})]}),s.jsxs("div",{className:"space-y-0.5",children:[s.jsx("label",{className:"text-text-sm",children:"Confirm Password"}),s.jsx(a,{...e("confirmPassword"),type:"password",className:"w-full"})]}),s.jsx(u,{val:m("newPassword"),errors:x||[]}),s.jsx(p,{disabled:!i,className:"w-full text-center",size:"md",children:s.jsx("span",{className:"w-full",children:"Continue"})})]})]})}export{b as S};
1
+ import{j as s}from"./@radix-DnFH_oo1.js";import{I as a,f as p}from"./index-B9wVwe7u.js";import{u as w}from"./index.esm-BE1uqCX5.js";import{t as u}from"./zod-uFd1wBcd.js";import{P as f}from"./PasswordChecker-DE71J_3F.js";import{g as h}from"./form-schemas-Bap0f854.js";function b({displayUsername:r=!1,submitHandler:l,headline:o="Create your password",subHeadine:c="Select a password for your account"}){var t;const{register:e,watch:m,handleSubmit:d,formState:{isValid:i,errors:n}}=w({resolver:u(h(r)),mode:"onChange",criteriaMode:"all",defaultValues:{username:""}}),x=(t=n.newPassword)==null?void 0:t.types;return s.jsxs("div",{className:"space-y-5",children:[s.jsxs("div",{children:[s.jsx("h1",{className:"text-display-xs font-semibold",children:o}),s.jsx("p",{className:"text-theme-text-secondary",children:c})]}),s.jsxs("form",{onSubmit:d(l),className:"space-y-5",children:[s.jsx("div",{className:"space-y-2",children:r&&s.jsxs("div",{className:"space-y-0.5",children:[s.jsx("label",{className:"text-text-sm",children:"Username"}),s.jsx(a,{...e("username"),className:"w-full"})]})}),s.jsxs("div",{className:"space-y-0.5",children:[s.jsx("label",{className:"text-text-sm",children:"New Password"}),s.jsx(a,{...e("newPassword"),type:"password",className:"w-full"})]}),s.jsxs("div",{className:"space-y-0.5",children:[s.jsx("label",{className:"text-text-sm",children:"Confirm Password"}),s.jsx(a,{...e("confirmPassword"),type:"password",className:"w-full"})]}),s.jsx(f,{val:m("newPassword"),errors:x||[]}),s.jsx(p,{disabled:!i,className:"w-full text-center",size:"md",children:s.jsx("span",{className:"w-full",children:"Continue"})})]})]})}export{b as S};
@@ -1 +1 @@
1
- import{r as s,j as r}from"./@radix-DnFH_oo1.js";import{aU as c,q as l}from"./index-Davdjm1d.js";const o=e=>s.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...e},s.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.7071 5.29289C21.0976 5.68342 21.0976 6.31658 20.7071 6.70711L9.70711 17.7071C9.31658 18.0976 8.68342 18.0976 8.29289 17.7071L3.29289 12.7071C2.90237 12.3166 2.90237 11.6834 3.29289 11.2929C3.68342 10.9024 4.31658 10.9024 4.70711 11.2929L9 15.5858L19.2929 5.29289C19.6834 4.90237 20.3166 4.90237 20.7071 5.29289Z"}));function n({tickClasses:e,...t}){return r.jsx(c,{...t,children:r.jsx(o,{className:l("h-4 w-4 fill-success-300",e)})})}export{n as T};
1
+ import{r as s,j as r}from"./@radix-DnFH_oo1.js";import{aX as c,X as l}from"./index-B9wVwe7u.js";const o=e=>s.createElement("svg",{viewBox:"0 0 24 24",fill:"black",xmlns:"http://www.w3.org/2000/svg",...e},s.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.7071 5.29289C21.0976 5.68342 21.0976 6.31658 20.7071 6.70711L9.70711 17.7071C9.31658 18.0976 8.68342 18.0976 8.29289 17.7071L3.29289 12.7071C2.90237 12.3166 2.90237 11.6834 3.29289 11.2929C3.68342 10.9024 4.31658 10.9024 4.70711 11.2929L9 15.5858L19.2929 5.29289C19.6834 4.90237 20.3166 4.90237 20.7071 5.29289Z"}));function n({tickClasses:e,...t}){return r.jsx(c,{...t,children:r.jsx(o,{className:l("h-4 w-4 fill-success-300",e)})})}export{n as T};
@@ -1 +1 @@
1
- import{z as s}from"./index-Davdjm1d.js";const e=s.string().min(8,"Password must be at least 8 characters").regex(/[A-Z]/,"Password must contain at least one uppercase letter").regex(/[a-z]/,"Password must contain at least one lowercase letter").regex(/[0-9]/,"Password must contain at least one number").regex(/[!@#$%^&*(),.?":{}|<>\/]/,"Password must contain at least one special character"),o=s.object({oldPassword:s.string().optional(),newPassword:e,confirmPassword:s.string().min(1)}),t=o.refine(a=>a.newPassword===a.confirmPassword,{path:["confirmPassword"],message:"Passwords do not match"});export{o as a,t as u};
1
+ import{z as s}from"./index-B9wVwe7u.js";const e=s.string().min(8,"Password must be at least 8 characters").regex(/[A-Z]/,"Password must contain at least one uppercase letter").regex(/[a-z]/,"Password must contain at least one lowercase letter").regex(/[0-9]/,"Password must contain at least one number").regex(/[!@#$%^&*(),.?":{}|<>\/]/,"Password must contain at least one special character"),o=s.object({oldPassword:s.string().optional(),newPassword:e,confirmPassword:s.string().min(1)}),t=o.refine(a=>a.newPassword===a.confirmPassword,{path:["confirmPassword"],message:"Passwords do not match"});export{o as a,t as u};