From 37cece292e562c72cd91665b8fba94e0b34150cb Mon Sep 17 00:00:00 2001 From: pengluan Date: Wed, 3 Aug 2022 10:14:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0pipeline=E8=B7=B3=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- myapp/static/appbuilder/vison/asset-manifest.json | 6 +++--- myapp/static/appbuilder/vison/index.html | 2 +- .../js/{805.1e3ae630.chunk.js => 805.9c1ecd6b.chunk.js} | 2 +- .../vison/static/js/{main.da732006.js => main.ae22b537.js} | 4 ++-- ...da732006.js.LICENSE.txt => main.ae22b537.js.LICENSE.txt} | 0 myapp/views/view_pipeline.py | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) rename myapp/static/appbuilder/vison/static/js/{805.1e3ae630.chunk.js => 805.9c1ecd6b.chunk.js} (63%) rename myapp/static/appbuilder/vison/static/js/{main.da732006.js => main.ae22b537.js} (99%) rename myapp/static/appbuilder/vison/static/js/{main.da732006.js.LICENSE.txt => main.ae22b537.js.LICENSE.txt} (100%) diff --git a/myapp/static/appbuilder/vison/asset-manifest.json b/myapp/static/appbuilder/vison/asset-manifest.json index 26bdb1ad..b9635fd8 100644 --- a/myapp/static/appbuilder/vison/asset-manifest.json +++ b/myapp/static/appbuilder/vison/asset-manifest.json @@ -1,7 +1,7 @@ { "files": { - "main.js": "./static/js/main.da732006.js", - "static/js/805.1e3ae630.chunk.js": "./static/js/805.1e3ae630.chunk.js", + "main.js": "./static/js/main.ae22b537.js", + "static/js/805.9c1ecd6b.chunk.js": "./static/js/805.9c1ecd6b.chunk.js", "static/js/31.4e25c8af.chunk.js": "./static/js/31.4e25c8af.chunk.js", "static/css/347.b3f525d1.chunk.css": "./static/css/347.b3f525d1.chunk.css", "static/js/347.f8686cf3.chunk.js": "./static/js/347.f8686cf3.chunk.js", @@ -71,6 +71,6 @@ "static/media/app.less": "./static/media/app.eab37f702388f3e63396.less" }, "entrypoints": [ - "static/js/main.da732006.js" + "static/js/main.ae22b537.js" ] } \ No newline at end of file diff --git a/myapp/static/appbuilder/vison/index.html b/myapp/static/appbuilder/vison/index.html index ed3f7ce0..0bd92882 100644 --- a/myapp/static/appbuilder/vison/index.html +++ b/myapp/static/appbuilder/vison/index.html @@ -1 +1 @@ -机器学习平台
\ No newline at end of file +机器学习平台
\ No newline at end of file diff --git a/myapp/static/appbuilder/vison/static/js/805.1e3ae630.chunk.js b/myapp/static/appbuilder/vison/static/js/805.9c1ecd6b.chunk.js similarity index 63% rename from myapp/static/appbuilder/vison/static/js/805.1e3ae630.chunk.js rename to myapp/static/appbuilder/vison/static/js/805.9c1ecd6b.chunk.js index f31929f5..93de2815 100644 --- a/myapp/static/appbuilder/vison/static/js/805.1e3ae630.chunk.js +++ b/myapp/static/appbuilder/vison/static/js/805.9c1ecd6b.chunk.js @@ -1 +1 @@ -"use strict";(self.webpackChunkvite_ml_platform=self.webpackChunkvite_ml_platform||[]).push([[805],{45117:function(e,n,o){o.d(n,{T:function(){return t},C:function(){return l}});var i=o(81899),t=function(){return(0,i.I0)()},l=i.v9},16805:function(e,n,o){o.r(n),o.d(n,{default:function(){return Ee}});var i=o(72791),t=o(59332),l=o(50678),r=o(29093),a=o(18511),s=o(50199),d=o(77291),c=o(70927),u=o(81318),p=o(15853),x=o(45117),m=o(16097);function f(e,n){var o=null;return function(){for(var i=this,t=arguments.length,l=new Array(t),r=0;r370&&S(e.clientX-270)},onMouseUp:z,onMouseLeave:z,children:[(0,v.jsx)("div",{style:{height:"100%",width:C},children:(0,v.jsx)(p.ZP,{language:"json",theme:"vs",value:y,onChange:function(e){Z(!1),b(e)},height:500,options:{renderValidationDecorations:"on",automaticLayout:!0,formatOnPaste:!0,formatOnType:!0,renderLineHighlight:"none",autoClosingOvertype:"always",cursorStyle:"block",quickSuggestions:!1,scrollBeyondLastLine:!1,snippetSuggestions:"none",minimap:{enabled:!1}}})}),(0,v.jsx)("div",{className:g.resizeLine,onMouseDown:function(){L(!0)},children:(0,v.jsx)(a.J,{iconName:"BulletedListBulletMirrored",className:g.resizeLineIconStyles})}),(0,v.jsx)("div",{style:{flex:1}})]}),(0,v.jsxs)("div",{className:g.contentStyles.footer,children:[T?(0,v.jsx)(s.c,{messageBarType:d.f.error,styles:{root:{position:"absolute",width:"50%",left:0}},isMultiline:!1,children:"JSON \u683c\u5f0f\u9519\u8bef"}):null,(0,v.jsx)(c.K,{styles:{root:{marginRight:10}},onClick:function(){!function(e){try{return JSON.parse(e),!0}catch(n){return!1}}(y)?Z(!0):(e((0,m.sW)(y)),e((0,m.y7)(!1)))},children:"\u786e\u8ba4"}),(0,v.jsx)(u.a,{onClick:O,children:"\u53d6\u6d88"})]})]})})},b=o(48636),j=o(36222),w=o(2692),C=o(97708),S=o(90110),k=o(17504),N=o(31776),_=o(64011),L=o(42081),I=o(65223),D=o(57217),T=o(18489),Z=o(52274),O=o(33860),z={settingContainer:(0,h.y0)({display:"flex",flexDirection:"column",width:350,position:"absolute",top:0,right:0,bottom:0,height:"auto",backgroundColor:"#fff",borderLeft:"1px solid rgb(234, 234, 234)",boxShadow:"rgb(0 0 0 / 18%) 0px 1.6px 3.6px 0px, rgb(0 0 0 / 22%) 0px 0.3px 0.9px 0px",zIndex:999}),settingHeader:(0,h.y0)({display:"flex",width:"100%",alignItems:"center",justifyContent:"space-between",color:"balck",boxSizing:"border-box",padding:"10px 20px"}),headerTitle:(0,h.y0)({fontSize:20,fontWeight:600,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",color:"black"}),settingContent:(0,h.y0)({flex:"1 1 0%",overflowY:"auto","&::-webkit-scrollbar":{width:4},"&::-webkit-scrollbar-thumb":{minHeight:"15px",border:"6px solid transparent",backgroundClip:"padding-box",backgroundColor:"rgb(200, 200, 200)"}}),contentWrapper:(0,h.y0)({padding:"0 20px 20px",overflowX:"hidden",wordBreak:"break-word",userSelect:"text",borderTop:"1px solid #eaeaea"}),splitLine:(0,h.y0)({margin:"10px -20px 0 -20px",borderTop:"1px solid #eaeaea"})},B=function(){var e=(0,x.T)(),n=(0,x.C)(b.H6),o=(0,x.C)(I.RU),t=(0,x.C)(b.mg),a=(0,x.C)(L.hr),s=(0,i.useState)({}),d=(0,l.Z)(s,2),c=d[0],u=d[1],p=(0,i.useState)([]),m=(0,l.Z)(p,2),f=m[0],h=m[1],g=(0,i.useState)(),y=(0,l.Z)(g,2),j=y[0],w=y[1],C=function(o,i){var l={};if(l[o]=i,"project"===o){var r=i;w(r),l[o]=r.key}n&&(u((0,T.Z)((0,T.Z)({},c),l)),e((0,b.v_)((0,T.Z)((0,T.Z)({},t),l))))};return(0,i.useEffect)((function(){if(n){var e,o;u(n);var i={key:null===n||void 0===n||null===(e=n.project)||void 0===e?void 0:e.id,text:null===n||void 0===n||null===(o=n.project)||void 0===o?void 0:o.name};w(i)}}),[n]),(0,i.useEffect)((function(){Object.keys(t).length>1&&e((0,b.u6)(!0))}),[t]),(0,i.useEffect)((function(){N.Z.project_modelview().then((function(e){var n=null===e||void 0===e?void 0:e.result.data.reduce((function(e,n){if("org"===n.type){var o={key:n.id,text:n.name};e.push(o)}return e}),[]);h(n)}))}),[]),(0,i.useEffect)((function(){var n={};a.forEach((function(e){if((0,k.un)(e)){var o,i=a.filter((function(n){return n.id===e.source}))[0],t=a.filter((function(n){return n.id===e.target}))[0];null!==(o=n["".concat(t.data.name)])&&void 0!==o&&o.upstream?n["".concat(t.data.name)].upstream.push("".concat(i.data.name)):(n["".concat(t.data.name)]={},n["".concat(t.data.name)].upstream=["".concat(i.data.name)])}}));var o=(0,T.Z)({},n);u((0,T.Z)((0,T.Z)({},c),{dag_json:JSON.stringify(o,void 0,4)})),e((0,b.v_)((0,T.Z)((0,T.Z)({},t),{dag_json:JSON.stringify(o)})))}),[a]),(0,v.jsxs)("div",{style:{visibility:o?"visible":"hidden"},className:z.settingContainer,children:[(0,v.jsxs)("div",{className:z.settingHeader,children:[(0,v.jsx)("div",{className:z.headerTitle,children:"\u6d41\u6c34\u7ebf\u8bbe\u7f6e"}),(0,v.jsx)(r.h,{iconProps:{iconName:"ChromeClose",styles:{root:{fontSize:12,color:"#000"}}},onClick:function(){e((0,I.ZN)())}})]}),(0,v.jsx)("div",{className:z.settingContent,children:(0,v.jsxs)("div",{className:z.contentWrapper,children:[(0,v.jsx)(Z.L,{label:"\u9879\u76ee\u7ec4",onChange:function(e,n){C("project",n||"")},selectedKey:j?j.key:void 0,placeholder:"Select an option",options:f}),(0,v.jsx)("div",{className:z.splitLine}),(0,v.jsx)(O.n,{label:"\u540d\u79f0",description:"\u82f1\u6587\u540d(\u5b57\u6bcd\u3001\u6570\u5b57\u3001- \u7ec4\u6210)\uff0c\u6700\u957f50\u4e2a\u5b57\u7b26",onChange:function(e,n){C("name",n||"")},value:(null===c||void 0===c?void 0:c.name)||"",disabled:!0}),(0,v.jsx)("div",{className:z.splitLine}),(0,v.jsx)(O.n,{label:"\u63cf\u8ff0",required:!0,onChange:function(e,n){C("describe",n||"")},value:(null===c||void 0===c?void 0:c.describe)||""}),(0,v.jsx)("div",{className:z.splitLine}),(0,v.jsx)(O.n,{label:"\u547d\u540d\u7a7a\u95f4",description:"\u90e8\u7f72task\u6240\u5728\u7684\u547d\u540d\u7a7a\u95f4(\u76ee\u524d\u65e0\u9700\u586b\u5199)",value:(null===c||void 0===c?void 0:c.namespace)||"",readOnly:!0,disabled:!0}),(0,v.jsx)("div",{className:z.splitLine}),(0,v.jsx)(Z.L,{label:"\u8c03\u5ea6\u7c7b\u578b",options:[{key:"once",text:"once"},{key:"crontab",text:"crontab"}],selectedKey:null===c||void 0===c?void 0:c.schedule_type,onChange:function(e,n){C("schedule_type","".concat(null===n||void 0===n?void 0:n.text)||"")}}),(0,v.jsx)("div",{className:z.splitLine}),(0,v.jsx)(O.n,{label:"\u8c03\u5ea6\u5468\u671f",description:"\u5468\u671f\u4efb\u52a1\u7684\u65f6\u95f4\u8bbe\u5b9a * * * * * \u8868\u793a\u4e3a minute hour day month week",onChange:function(e,n){C("cron_time",n||"")},value:(null===c||void 0===c?void 0:c.cron_time)||""}),(0,v.jsx)("div",{className:z.splitLine}),(0,v.jsx)(O.n,{label:"\u8c03\u5ea6\u673a\u5668",description:"\u90e8\u7f72task\u6240\u5728\u7684\u673a\u5668(\u76ee\u524d\u65e0\u9700\u586b\u5199)",onChange:function(e,n){C("node_selector",n||"")},value:(null===c||void 0===c?void 0:c.node_selector)||""}),(0,v.jsx)("div",{className:z.splitLine}),(0,v.jsx)(Z.L,{label:"\u955c\u50cf\u62c9\u53d6\u7b56\u7565",options:[{key:"Always",text:"Always"},{key:"IfNotPresent",text:"IfNotPresent"}],selectedKey:c.image_pull_policy,onChange:function(e,n){C("image_pull_policy","".concat(null===n||void 0===n?void 0:n.text)||"")}}),(0,v.jsx)("div",{className:z.splitLine}),(0,v.jsx)(Z.L,{label:"\u8fc7\u5f80\u4f9d\u8d56",options:[{key:"true",text:"\u662f",data:!0},{key:"false",text:"\u5426",data:!1}],selectedKey:"".concat(c.depends_on_past),onChange:function(e,n){C("depends_on_past",null===n||void 0===n?void 0:n.data)}}),(0,v.jsx)("div",{className:z.splitLine}),(0,v.jsx)(O.n,{label:"\u6700\u5927\u6fc0\u6d3b\u8fd0\u884c\u6570",description:"\u5f53\u524dpipeline\u53ef\u540c\u65f6\u8fd0\u884c\u7684\u4efb\u52a1\u6d41\u5b9e\u4f8b\u6570\u76ee",onChange:function(e,n){C("max_active_runs",n?+n:"")},value:(null===c||void 0===c?void 0:c.max_active_runs)||"",required:!0}),(0,v.jsx)("div",{className:z.splitLine}),(0,v.jsx)(O.n,{label:"\u4efb\u52a1\u5e76\u884c\u6570",description:"pipeline\u4e2d\u53ef\u540c\u65f6\u8fd0\u884c\u7684task\u6570\u76ee",onChange:function(e,n){C("parallelism",n?+n:"")},value:(null===c||void 0===c?void 0:c.parallelism)||"",required:!0}),(0,v.jsx)("div",{className:z.splitLine}),(0,v.jsx)(O.n,{label:"\u6d41\u5411\u56fe",onChange:function(e,n){C("dag_json",n||"{}")},value:(null===c||void 0===c?void 0:c.dag_json)||"{}",multiline:!0,autoAdjustHeight:!0,disabled:!0}),(0,v.jsx)("div",{className:z.splitLine}),(0,v.jsx)(O.n,{label:"\u5168\u5c40\u73af\u5883\u53d8\u91cf",description:"\u4e3a\u6bcf\u4e2atask\u90fd\u6dfb\u52a0\u7684\u516c\u5171\u53c2\u6570",onChange:function(e,n){C("global_env",n||"")},multiline:!0,autoAdjustHeight:!0,value:(null===c||void 0===c?void 0:c.global_env)||""})]})})]})},H=o(50656),E=o(10420),R=o(54794),W=o(63934),M={modelContainer:(0,h.y0)({display:"flex",flexDirection:"column",width:350,position:"absolute",top:0,right:0,bottom:0,height:"auto",backgroundColor:"#fff",borderLeft:"1px solid rgb(234, 234, 234)",boxShadow:"rgb(0 0 0 / 18%) 0px 1.6px 3.6px 0px, rgb(0 0 0 / 22%) 0px 0.3px 0.9px 0px",zIndex:998}),modelHeader:(0,h.y0)({display:"flex",width:"100%",alignItems:"center",justifyContent:"space-between",color:"balck",boxSizing:"border-box",padding:"10px 20px"}),headerTitle:(0,h.y0)({fontSize:20,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",color:"black",fontWeight:600}),modelContent:(0,h.y0)({flex:"1 1 0%",overflowY:"auto","&::-webkit-scrollbar":{width:4},"&::-webkit-scrollbar-thumb":{minHeight:"15px",border:"6px solid transparent",backgroundClip:"padding-box",backgroundColor:"rgb(200, 200, 200)"}}),contentWrapper:(0,h.y0)({padding:"0 20px 20px",overflowX:"hidden",wordBreak:"break-word",userSelect:"text",borderTop:"1px solid #eaeaea"}),splitLine:(0,h.y0)({margin:"10px -20px 0 -20px",borderTop:"1px solid #eaeaea"}),settingControl:(0,h.y0)({height:"auto",display:"flex",flexDirection:"column",paddingTop:20}),saveButton:(0,h.y0)({alignSelf:"center"}),debugButton:(0,h.y0)({display:"flex",flexDirection:"row",justifyContent:"space-evenly",paddingTop:20}),templateConfig:(0,h.y0)({color:"rgb(96, 94, 92)",fontSize:10,paddingTop:5,paddingLeft:2,"> a":{textDecoration:"none"}}),argsDescription:(0,h.y0)({color:"rgb(96, 94, 92)",fontSize:10,"> a":{textDecoration:"none"}}),textLabelStyle:(0,h.y0)({display:"flex",alignItems:"center",justifyContent:"space-between",fontWeight:600,color:"rgb(50, 49, 48)",boxSizing:"border-box",boxShadow:"none",margin:"0px",padding:"5px 0px",overflowWrap:"break-word",lineHeight:"30px"})},P=function(e){var n=(0,x.T)(),o=(0,x.C)(L.hr),t=(0,x.C)(D.Aj),r=(0,x.C)(m.ld),a=(0,x.C)(m.OA),s=(0,x.C)(m.PF),d=(0,i.useState)({}),c=(0,l.Z)(d,2),u=c[0],p=c[1],f=(0,i.useState)({}),h=(0,l.Z)(f,2),g=h[0],y=h[1],b=(0,i.useState)({}),j=(0,l.Z)(b,2),w=j[0],C=j[1],S=(0,i.useState)({}),k=(0,l.Z)(S,2),I=k[0],z=k[1],B=(0,i.useState)({}),H=(0,l.Z)(B,2),P=H[0],J=H[1],K=[{key:"debug",text:"debug",onClick:function(){return A("debug")},iconProps:{iconName:"Bug"}},{key:"run",text:"run",onClick:function(){return A("run")},iconProps:{iconName:"Play"}},{key:"log",text:"log",onClick:function(){return A("log")},iconProps:{iconName:"TimeEntry"}},{key:"clear",text:"clear",onClick:function(){return A("clear")},iconProps:{iconName:"Unsubscribe"}}],A=function(n){e.model.id&&window.open("".concat(window.location.origin,"/task_modelview/").concat(n,"/").concat(e.model.id))},F=function(e,n,o){var i={},t=null;switch(o){case"json":try{t=JSON.parse("".concat(n))}catch(r){t=n}break;case"int":t=+n;break;default:t=n}if(o){var l=JSON.parse(JSON.stringify(P));l[e]=t,i.args=JSON.stringify(l)}else i[e]=n;y((0,T.Z)((0,T.Z)({},g),i)),p((0,T.Z)((0,T.Z)({},u),i)),null!==i&&void 0!==i&&i.args&&J((0,T.Z)((0,T.Z)({},P),JSON.parse(i.args)))};return(0,i.useEffect)((function(){e.model.selected&&(n((0,D.kQ)(+e.model.id)),0===Object.keys(u).length&&N.Z.task_modelview_get(+e.model.id).then((function(e){if(0===e.status){var n=JSON.parse(e.result.args),o=e.result.job_template,i=null!==o&&void 0!==o&&o.args?JSON.parse(o.args):{},t=Object.keys(i).reduce((function(e,n){var o=i[n];return Object.keys(o).forEach((function(n){e[n]=o[n].default})),e}),{});p(e.result),J(Object.assign(t,n)),z(i),C(o)}})).catch((function(e){e.response&&n((0,_.L$)({msg:e.response.data.message}))})))}),[e.model.selected]),(0,i.useEffect)((function(){if(e.model.id&&n((0,D.hs)({id:+e.model.id,changed:g})),null!==g&&void 0!==g&&g.label){var i=o.map((function(n){if(n.id===e.model.id){var o=(0,T.Z)((0,T.Z)({},n.data),{label:g.label});return(0,T.Z)((0,T.Z)({},n),{data:o})}return n}));n((0,L.OV)(i))}}),[g]),(0,i.useEffect)((function(){Object.keys(I).length>0&&+e.model.id===t&&!r&&F(a,s,"json")}),[s]),(0,v.jsxs)("div",{className:M.modelContainer,style:{visibility:e.model.selected?"visible":"hidden"},children:[(0,v.jsx)("div",{className:M.modelHeader,children:(0,v.jsx)("div",{className:M.headerTitle,children:(null===u||void 0===u?void 0:u.name)||""})}),(0,v.jsx)("div",{className:M.modelContent,children:(0,v.jsxs)("div",{className:M.contentWrapper,children:[(0,v.jsx)(E.X,{items:K,overflowItems:[],styles:{root:{padding:0}}}),(0,v.jsx)(O.n,{label:"\u4efb\u52a1\u6a21\u677f",value:(null===w||void 0===w?void 0:w.name)||"",disabled:!0,readOnly:!0,onRenderDescription:function(){var e="";try{var n;if(w.expand)e=(null===(n=JSON.parse(w.expand))||void 0===n?void 0:n.help_url)||""}catch(o){console.error(o)}return(0,v.jsx)("div",{className:M.templateConfig,children:e?(0,v.jsx)("a",{href:e,target:"_blank",rel:"noreferrer",children:"\u914d\u7f6e\u6587\u6863"}):null})}}),(0,v.jsx)("div",{className:M.splitLine}),(0,v.jsx)(O.n,{label:"\u6a21\u677f\u63cf\u8ff0",value:(null===w||void 0===w?void 0:w.describe)||"",disabled:!0,readOnly:!0}),(0,v.jsx)("div",{className:M.splitLine}),(0,v.jsx)(O.n,{label:"\u540d\u79f0",onChange:function(e,n){F("name",n||"")},value:(null===u||void 0===u?void 0:u.name)||"",disabled:!0}),(0,v.jsx)("div",{className:M.splitLine}),(0,v.jsx)(O.n,{label:"\u6807\u7b7e",description:"\u8282\u70b9\u6807\u7b7e",required:!0,onChange:function(e,n){F("label",n||"")},value:(null===u||void 0===u?void 0:u.label)||""}),(0,v.jsx)("div",{className:M.splitLine}),(0,v.jsx)(O.n,{label:"\u5185\u5b58\u7533\u8bf7",description:"\u5185\u5b58\u7684\u8d44\u6e90\u4f7f\u7528\u9650\u5236\uff0c\u793a\u4f8b1G\uff0c10G\uff0c \u6700\u5927100G\uff0c\u5982\u9700\u66f4\u591a\u8054\u7cfb\u7ba1\u7406\u5458",onChange:function(e,n){F("resource_memory",n||"")},value:(null===u||void 0===u?void 0:u.resource_memory)||"",required:!0}),(0,v.jsx)("div",{className:M.splitLine}),(0,v.jsx)(O.n,{label:"CPU\u7533\u8bf7",description:"CPU\u7684\u8d44\u6e90\u4f7f\u7528\u9650\u5236(\u5355\u4f4d\u6838)\uff0c\u793a\u4f8b 0.4\uff0c10\uff0c\u6700\u592750\u6838\uff0c\u5982\u9700\u66f4\u591a\u8054\u7cfb\u7ba1\u7406\u5458",onChange:function(e,n){F("resource_cpu",n||"")},value:(null===u||void 0===u?void 0:u.resource_cpu)||"",required:!0}),(0,v.jsx)("div",{className:M.splitLine}),(0,v.jsx)(O.n,{label:"GPU\u7533\u8bf7",description:"gpu\u7684\u8d44\u6e90\u4f7f\u7528\u9650\u5236(\u5355\u4f4d\u5361)\uff0c\u793a\u4f8b:1\uff0c2\uff0c\u8bad\u7ec3\u4efb\u52a1\u6bcf\u4e2a\u5bb9\u5668\u72ec\u5360\u6574\u5361\u3002\u7533\u8bf7\u5177\u4f53\u7684\u5361\u578b\u53f7\uff0c\u53ef\u4ee5\u7c7b\u4f3c 1(V100),\u76ee\u524d\u652f\u6301T4/V100/A100/VGPU",onChange:function(e,n){F("resource_gpu",n||"")},value:(null===u||void 0===u?void 0:u.resource_gpu)||""}),(0,v.jsx)("div",{className:M.splitLine}),(0,v.jsx)(O.n,{label:"\u8d85\u65f6\u4e2d\u65ad",description:"task\u8fd0\u884c\u65f6\u957f\u9650\u5236\uff0c\u4e3a0\u8868\u793a\u4e0d\u9650\u5236(\u5355\u4f4ds)",onChange:function(e,n){F("timeout",n||"")},value:(null===u||void 0===u?void 0:u.timeout)||0}),(0,v.jsx)("div",{className:M.splitLine}),(0,v.jsx)(O.n,{label:"\u91cd\u8bd5\u6b21\u6570",description:"task\u91cd\u8bd5\u6b21\u6570",onChange:function(e,n){F("retry",n||"")},value:(null===u||void 0===u?void 0:u.retry)||0}),(0,v.jsx)("div",{className:M.splitLine}),Object.keys(I).reduce((function(e,o){var t=I[o],l=Object.keys(t).map((function(e){var o=t[e],l=o.choice.map((function(e){return{key:e,text:e}})),r=P&&P[e],a="json"===o.type?JSON.stringify(r,void 0,4):r;return(0,v.jsx)(i.Fragment,{children:l.length>0?(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(Z.L,{label:"".concat(e),onChange:function(n,i){F(e,"".concat(null===i||void 0===i?void 0:i.text)||"",o.type)},defaultSelectedKey:a||o.default,options:l,required:1===o.require,disabled:1!==o.editable}),(0,v.jsx)("div",{className:M.argsDescription,dangerouslySetInnerHTML:{__html:o.describe}})]}):(0,v.jsx)(O.n,{onRenderLabel:function(){return(0,v.jsxs)("div",{className:M.textLabelStyle,children:["".concat(e),"json"===o.type?(0,v.jsx)(R.K,{iconProps:{iconName:"FullWidthEdit"},onClick:function(){n((0,m.vh)({key:e,value:a})),n((0,m.y7)(!0))},children:"\u7f16\u8f91"}):null]})},onRenderDescription:function(){return(0,v.jsx)("div",{className:M.argsDescription,dangerouslySetInnerHTML:{__html:o.describe}})},multiline:"str"!==o.type,autoAdjustHeight:"str"!==o.type,onChange:function(n,i){F(e,i||"",o.type)},value:a,required:1===o.require,disabled:1!==o.editable||"json"===o.type})},e)}));return e.push((0,v.jsxs)(i.Fragment,{children:[(0,v.jsxs)(W._,{children:["\u53c2\u6570 ",o]}),l.flat(),(0,v.jsx)("div",{className:M.splitLine})]},o)),e}),[])]})})]})},J={height:54,minWidth:272,borderRadius:100,borderStyle:"solid",display:"flex",flexDirection:"row",backgroundColor:"#fff",fontSize:12,cursor:"move",boxSizing:"border-box",transition:"all 0.3s"},K=(0,h.y0)((0,T.Z)((0,T.Z)({},J),{borderWidth:1,borderColor:"#b1b1b7"})),A=(0,h.y0)((0,T.Z)((0,T.Z)({},J),{borderWidth:1,borderColor:"#006dce",backgroundColor:"#f1f7fd"})),F=(0,h.y0)({width:8,flexShrink:0,borderRadius:"3px 0 0 3px",borderRight:"1px solid #8a8886",margin:"-8px 0 -8px -8px"}),G=(0,h.y0)({boxSizing:"border-box",display:"flex",flexDirection:"column",overflow:"hidden"}),U=(0,h.y0)({display:"flex",marginLeft:7,minHeight:26}),V=(0,h.y0)({fontSize:16,width:64,display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"rgb(0, 120, 212)",borderTopLeftRadius:100,borderBottomLeftRadius:100,margin:"-1px 0 -1px -1px"}),X=(0,h.y0)({userSelect:"none",boxSizing:"border-box",color:"#fff",fontSize:20,marginLeft:8}),$=(0,h.y0)({whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",paddingLeft:8,paddingBottom:2,marginBottom:2,fontWeight:600,fontSize:14,borderBottom:"1px dashed #c1c1c1",userSelect:"none"}),q=(0,h.y0)({width:"12px !important",height:"12px !important",bottom:"-7px !important",borderColor:"#b1b1b7 !important",backgroundColor:"#fff !important",transition:"all 0.3s","&:hover":{borderWidth:"2px !important",borderColor:"var(--hover-color) !important",cursor:"pointer !important"}}),Y=(0,h.y0)({visibility:"hidden"}),Q=(0,h.y0)({height:"100%",width:"100%",display:"flex",justifyContent:"center",flexDirection:"column"}),ee={nodeTips:(0,h.y0)({color:"rgb(177, 177, 183)",paddingLeft:8}),nodeContentWrapper:Q,nodeContainer:K,nodeOnSelect:A,nodeBar:F,nodeContent:G,nodeConentTitleBar:U,nodeIconWrapper:V,nodeIcon:X,nodeTitle:$,handleStyle:q,hidden:Y},ne={dataSet:function(e){var n,o,i,t,l,r,s,d,c,u,p,x;return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(k.HH,{type:"target",position:k.Ly.Top,className:ee.handleStyle}),(0,v.jsxs)("div",{className:e.selected?ee.nodeOnSelect:ee.nodeContainer,style:{borderColor:e.selected?null===e||void 0===e||null===(n=e.data)||void 0===n||null===(o=n.info)||void 0===o||null===(i=o.color)||void 0===i?void 0:i.color:"",backgroundColor:e.selected?null===e||void 0===e||null===(t=e.data)||void 0===t||null===(l=t.info)||void 0===l||null===(r=l.color)||void 0===r?void 0:r.bg:""},children:[(0,v.jsx)("div",{className:ee.nodeIconWrapper,style:{backgroundColor:null===e||void 0===e||null===(s=e.data)||void 0===s||null===(d=s.info)||void 0===d||null===(c=d.color)||void 0===c?void 0:c.color},children:(0,v.jsx)(a.J,{iconName:"Database",className:ee.nodeIcon})}),(0,v.jsxs)("div",{className:ee.nodeContentWrapper,children:[(0,v.jsx)("div",{className:ee.nodeTitle,children:null===e||void 0===e||null===(u=e.data)||void 0===u?void 0:u.label}),null!==e&&void 0!==e&&null!==(p=e.data)&&void 0!==p&&p.info?(0,v.jsx)("div",{className:ee.nodeTips,children:null===e||void 0===e||null===(x=e.data)||void 0===x?void 0:x.info.describe}):null]})]}),(0,v.jsx)(k.HH,{type:"source",position:k.Ly.Bottom,className:ee.handleStyle}),(0,v.jsx)(H.m,{hostId:"hostId_model",className:"data-set-layer",children:(0,v.jsx)(P,{model:e})})]})}},oe={itemStyles:(0,h.y0)({position:"relative"}),flowWrapper:(0,h.y0)({width:"100%",height:"100%"}),spinnerWrapper:(0,h.y0)({position:"absolute",top:0,left:0,display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",overflow:"hidden",backgroundColor:"rgba(255, 255, 255, 0.6)",zIndex:9999})},ie=t.K.Item,te=function(){var e=(0,x.T)(),n=(0,x.C)(L.hr),o=(0,x.C)(b.Bn),t=(0,x.C)(b.H6),r=(0,x.C)(I.RU),a=(0,x.C)(D.NH),s=(0,i.useRef)(null),d=(0,i.useState)(null),c=(0,l.Z)(d,2),u=c[0],p=c[1];return(0,i.useEffect)((function(){var n=JSON.parse((null===t||void 0===t?void 0:t.expand)||"[]").map((function(e){return!(0,k.un)(e)||null!==e&&void 0!==e&&e.arrowHeadType?((0,k.UG)(e)&&!e.data.label&&(e.data.label=e.data.name),e):Object.assign(e,{arrowHeadType:"arrow"})}));e((0,L.OV)(n))}),[t]),(0,v.jsx)(ie,{shrink:!0,grow:1,className:oe.itemStyles,children:(0,v.jsxs)("div",{className:oe.flowWrapper,ref:s,children:[(0,v.jsxs)(k.ZP,{elements:n,nodeTypes:ne,snapToGrid:!0,snapGrid:[16,16],defaultZoom:1,onLoad:function(e){p(e)},onDrop:function(i){i.preventDefault();var t=s.current.getBoundingClientRect(),l=JSON.parse(i.dataTransfer.getData("application/reactflow")),r=u.project({x:i.clientX-t.left,y:i.clientY-t.top}),a=l.args,d={};if(Object.keys(a).reduce((function(e,n){var o={};return Object.keys(a[n]).reduce((function(e,o){var i=a[n][o].default;return Object.assign(e,(0,j.Z)({},o,i)),e}),o),Object.assign(e,o),e}),d),o){e((0,D.Xt)(!0));var c="".concat(l.name.replace(/\.|[\u4e00-\u9fa5]/g,"").replace(/_|\s/g,"-")||"task","-").concat(Date.now()).substring(0,49);N.Z.task_modelview_add(o,{job_template:l.id,pipeline:+o,name:c,label:"\u65b0\u5efa ".concat(l.name," \u4efb\u52a1"),volume_mount:"kubeflow-user-workspace(pvc):/mnt,kubeflow-archives(pvc):/archives",image_pull_policy:"Always",working_dir:"",command:"",overwrite_entrypoint:0,node_selector:"cpu=true,train=true",resource_memory:"2G",resource_cpu:"2",resource_gpu:"0",timeout:0,retry:0,args:JSON.stringify(d)}).then((function(o){var i;if(null!==o&&void 0!==o&&null!==(i=o.result)&&void 0!==i&&i.id){var t={id:"".concat(o.result.id),type:"dataSet",position:r,data:{info:l,name:c,label:"\u65b0\u5efa ".concat(l.name," \u4efb\u52a1")}};e((0,b.u6)(!0)),e((0,L.OV)(n.concat(t))),setTimeout((function(){e((0,b.oL)())}),2e3)}})).catch((function(n){n.response&&e((0,_.L$)({msg:n.response.data.message}))})).finally((function(){e((0,D.Xt)(!1))}))}},onDragOver:function(e){e.preventDefault(),e.dataTransfer.dropEffect="move"},onElementClick:function(n,o){r&&o.data&&e((0,I.ZN)())},onElementsRemove:function(o){o.forEach((function(n){null!==n&&void 0!==n&&n.id&&(0,k.UG)(n)&&N.Z.task_modelview_del(+n.id).then((function(){setTimeout((function(){e((0,b.oL)())}),2e3)})).catch((function(n){n.response&&e((0,_.L$)({msg:n.response.data.message}))}))})),e((0,b.u6)(!0)),e((0,L.OV)((0,k.d0)(o,n)))},onConnect:function(o){e((0,b.u6)(!0)),e((0,L.OV)((0,k.Z_)(Object.assign(o,{arrowHeadType:"arrow"}),n)))},onNodeDragStop:function(o,i){e((0,L.OV)(n.map((function(e){return(null===e||void 0===e?void 0:e.id)===(null===i||void 0===i?void 0:i.id)?i:e})))),e((0,b.u6)(!0))},onSelectionChange:function(n){n&&e((0,L.pM)(n))},children:[(0,v.jsx)(B,{}),(0,v.jsx)(k.a9,{nodeStrokeColor:"#8a8886",nodeColor:"#c8c8c8"}),(0,v.jsx)(k.ZX,{}),(0,v.jsx)(w.Z,{id:"hostId_model",className:"layer-host"})]}),(0,v.jsx)("div",{className:oe.spinnerWrapper,style:{visibility:a?"visible":"hidden"},children:(0,v.jsx)(C.$,{size:S.E.large,label:"Loading"})})]})})},le=o(33032),re=o(84322),ae=o.n(re),se=o(49161),de=function(){var e=(0,x.T)(),n=(0,x.C)(_.V0);return(0,i.useEffect)((function(){n&&setTimeout((function(){e((0,_.L$)(null))}),3e3)}),[n]),n&&(0,v.jsx)(s.c,{messageBarType:d.f.error,styles:{root:{minHeight:32,width:"80%",margin:"0 auto"}},dismissButtonAriaLabel:"Close",onDismiss:function(){e((0,_.L$)(null))},isMultiline:!1,children:(null===n||void 0===n?void 0:n.msg)||""})},ce={headStyle:{root:{backgroundColor:"#fff",padding:"10px 16px",borderBottom:"1px solid #dadada"}},headNameStyle:(0,h.y0)({boxSizing:"border-box",marginLeft:"8px",padding:"0 8px",height:"32px",lineHeight:"32px",cursor:"text",marginBottom:"4px",fontSize:"16px",fontWeight:600,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",color:"black"}),buttonItemStyle:{root:{marginRight:"16px"}},hidden:(0,h.y0)({visibility:"hidden"})},ue=t.K.Item,pe=function(){var e=(0,x.T)(),n=(0,x.C)(b.Bn),o=(0,x.C)(b.H6),i=(0,x.C)(_.zr),l=function(){var o=(0,le.Z)(ae().mark((function o(){return ae().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(!n){o.next=9;break}return o.t0=e,o.next=4,(0,D.C)();case 4:return o.t1=o.sent,o.next=7,(0,o.t0)(o.t1);case 7:e((0,b.oL)()),window.open("".concat(window.location.origin,"/pipeline_modelview/run_pipeline/").concat(n));case 9:case"end":return o.stop()}}),o)})));return function(){return o.apply(this,arguments)}}();return(0,v.jsx)(ue,{className:"editor-head",children:(0,v.jsxs)(t.K,{horizontal:!0,horizontalAlign:"space-between",verticalAlign:"center",styles:ce.headStyle,children:[(0,v.jsx)(ue,{grow:1,children:(0,v.jsxs)(t.K,{horizontal:!0,children:[(0,v.jsx)(ue,{children:o.name?(0,v.jsx)("div",{className:ce.headNameStyle,children:o.describe}):(0,v.jsx)(c.K,{styles:{root:{padding:"17px 16px"}},iconProps:{iconName:"Add",styles:{root:{fontSize:10}}},onClick:function(){N.Z.pipeline_modelview_add({describe:"\u65b0\u5efa\u6d41\u6c34\u7ebf-".concat(Date.now()),name:"".concat(i,"-pipeline-").concat(Date.now()),node_selector:"cpu=true,train=true",schedule_type:"once",image_pull_policy:"Always",parallelism:1,project:7}).then((function(e){var n;0===(null===e||void 0===e?void 0:e.status)&&"success"===(null===e||void 0===e?void 0:e.message)&&(window.location.search="?pipeline_id=".concat(null===e||void 0===e||null===(n=e.result)||void 0===n?void 0:n.id))})).catch((function(n){n.response&&e((0,_.L$)({msg:n.response.data.message}))}))},children:"\u65b0\u5efa\u6d41\u6c34\u7ebf"})}),(0,v.jsx)(ue,{className:o.name?"":ce.hidden,children:(0,v.jsx)(se.G,{content:"\u8bbe\u7f6e",children:(0,v.jsx)(r.h,{iconProps:{iconName:"Settings"},onClick:function(){e((0,I.ZN)())}})})}),(0,v.jsx)(ue,{grow:1,align:"center",children:(0,v.jsx)(de,{})})]})}),(0,v.jsx)(ue,{className:o.name?"":ce.hidden,children:(0,v.jsxs)(t.K,{horizontal:!0,children:[(0,v.jsx)(ue,{styles:ce.buttonItemStyle,children:(0,v.jsx)(c.K,{onClick:l,children:"\u8fd0\u884c"})}),(0,v.jsx)(ue,{styles:ce.buttonItemStyle,children:(0,v.jsx)(u.a,{onClick:function(){N.Z.pipeline_modelview_copy(n).then((function(e){null!==e&&void 0!==e&&e.id&&(window.self===window.top?window.location.search="?pipeline_id=".concat(e.id):window.parent.postMessage({type:"copy",message:{pipelineId:e.id}},"".concat(window.location.origin)))})).catch((function(n){n.response&&e((0,_.L$)({msg:n.response.data.message}))}))},children:"\u590d\u5236"})})]})})]})})},xe=o(51244),me={editorToolStyle:{root:{display:"flex",flexDirection:"row",backgroundColor:"#fff",padding:"2px 0px",borderBottom:"1px solid #dadada","#authoring-page-toolbar":{flex:1}}},autoSavedTips:(0,h.y0)({paddingRight:20,lineHeight:"1"}),commandBarStyle:{root:{height:"40px",padding:"0px 14px 0px 8px",borderBottom:"none",backgroundColor:"#fff"}},commonButton:{root:{width:"40px",height:"40px",borderRadius:"2px",minWidth:"40px"}},commonIcon:{root:{color:"#015cda",fontSize:18}},toggleStyle:{root:{display:"flex",alignItems:"center",padding:"8px 0px 8px 8px",height:"100%",boxSizing:"border-box",borderLeft:"1px solid rgb(234, 234, 234)",marginLeft:"8px"},container:{display:"inline-flex"}},comboBoxStyle:{container:{borderLeft:"1px solid #eaeaea",marginLeft:"4px",padding:"0px 5px 0px 10px",width:"auto"},root:{backgroundColor:"#ffffff",padding:"0px 20px 0px 4px",selectors:{"&.is-open::after":{borderBottom:"2px solid #015cda"},"&::after":{border:"none",borderBottom:0,borderRadius:"none"},".ms-Button":{width:20},".ms-Icon":{fontSize:8}}},input:{width:35,backgroundColor:"#ffffff"}}},fe=t.K.Item,he=function(){var e=(0,x.T)(),n=(0,x.C)(L.hr),o=(0,x.C)(b.N1),l=(0,x.C)(b.H6),r=(0,x.C)(b.Bn),s=(0,x.C)(D.BX),d=(0,x.C)(b.B5),c=(0,x.C)(L.tT),u=[{key:"expand",iconProps:{iconName:"Library",styles:me.commonIcon},text:"\u5c55\u5f00/\u5173\u95ed\u83dc\u5355",onClick:function(n){null===n||void 0===n||n.preventDefault(),e((0,xe.ZN)())}},{key:"save",iconProps:{iconName:"save",styles:me.commonIcon},text:"\u4fdd\u5b58",onClick:function(){var n=(0,le.Z)(ae().mark((function n(o){return ae().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return null===o||void 0===o||o.preventDefault(),n.t0=e,n.next=4,(0,D.C)();case 4:n.t1=n.sent,(0,n.t0)(n.t1),e((0,b.oL)());case 7:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}()},{key:"example",iconProps:{iconName:"FastForward",styles:me.commonIcon},text:"\u8c03\u5ea6\u5b9e\u4f8b",onClick:function(){r&&window.open("".concat(window.location.origin,"/workflow_modelview/list/?_flt_2_labels=%22pipeline-id%22%3A+%22").concat(r,"%22"))}},{key:"log",iconProps:{iconName:"ComplianceAudit",styles:me.commonIcon},text:"\u65e5\u5fd7",onClick:function(){null!==l&&void 0!==l&&l.id&&window.open("".concat(window.location.origin,"/pipeline_modelview/web/log/").concat(r))}},{key:"docker",iconProps:{iconName:"WebAppBuilderFragment",styles:me.commonIcon},text:"\u5bb9\u5668",onClick:function(){null!==l&&void 0!==l&&l.name&&window.open("".concat(window.location.origin,"/pipeline_modelview/web/pod/").concat(r))}},{key:"timer",iconProps:{iconName:"TimeEntry",styles:me.commonIcon},text:"\u5b9a\u65f6\u8bb0\u5f55",onClick:function(){null!==l&&void 0!==l&&l.name&&window.open("".concat(window.location.origin,"/runhistory_modelview/list/?_flt_0_pipeline=").concat(r))}},{key:"delete",iconProps:{iconName:"Delete",styles:me.commonIcon},text:"\u5220\u9664\u8282\u70b9",onClick:function(){if((0,k.UG)(c[0])){var o,i=+(null===(o=c[0])||void 0===o?void 0:o.id);N.Z.task_modelview_del(i).then((function(){setTimeout((function(){e((0,b.oL)())}),2e3)})).catch((function(n){n.response&&e((0,_.L$)({msg:n.response.data.message}))}))}e((0,b.u6)(!0)),e((0,L.OV)((0,k.d0)(c,n)))}},{key:"monitor",iconProps:{iconName:"NetworkTower",styles:me.commonIcon},text:"\u76d1\u63a7",onClick:function(){null!==l&&void 0!==l&&l.id&&window.open("".concat(window.location.origin,"/pipeline_modelview/web/monitoring/").concat(r))}}];return(0,i.useEffect)((function(){s&&s.forEach((function(n){Object.keys(n).length>0&&e((0,b.u6)(!0))}))}),[s]),(0,v.jsxs)(fe,{shrink:!0,styles:me.editorToolStyle,children:[(0,v.jsx)(E.X,{id:"authoring-page-toolbar",styles:me.commandBarStyle,items:u}),(0,v.jsx)(t.K,{horizontal:!0,verticalAlign:"center",className:me.autoSavedTips,style:{visibility:r?"visible":"hidden"},children:o?(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(a.J,{iconName:d?"AlertSolid":"SkypeCircleCheck",styles:{root:{color:d?"#e95f39":"#8cb93c",marginRight:5}}}),d?"\u672a\u4fdd\u5b58":"\u5df2\u4fdd\u5b58"]}):(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(C.$,{styles:{root:{marginRight:5}},size:S.E.small}),"\u4fdd\u5b58\u4e2d"]})})]})},ge=t.K.Item,ve=function(){var e=(0,x.T)();return(0,i.useEffect)((function(){e((0,b.e4)())}),[]),(0,v.jsx)(ge,{className:"flow-editor",styles:{root:{flexGrow:1,flexShrink:1,background:"#f4f4f4",overflow:"hidden",display:"flex",flexDirection:"column"}},children:(0,v.jsxs)(t.K,{grow:1,children:[(0,v.jsx)(pe,{}),(0,v.jsx)(he,{}),(0,v.jsx)(te,{})]})})},ye=o(54039),be=o(2972),je=o(4026),we=o(34390),Ce={get:function(e){var n=window.localStorage.getItem(e);return n&&n.match(/^(\{|\[).*(?=[}\]])/)?JSON.parse(n):n||""},set:function(e,n){window.localStorage.setItem(e,"string"===typeof n?n:JSON.stringify(n))}},Se={calloutContent:(0,h.y0)({display:"flex",flexFlow:"column nowrap",width:"360px",height:"auto",boxSizing:"border-box",maxHeight:"inherit",padding:"16px 0px",fontSize:"12px",background:"#fff",borderRadius:"2px"}),moduleDetailItemStyle:(0,h.y0)({fontSize:"12px",padding:"0 16px",overflowX:"visible",overflowY:"hidden"}),moduleDetailTitle:(0,h.y0)({padding:"0px 16px",fontWeight:600,fontSize:"14px",lineHeight:"1",marginTop:"0px",marginBottom:"8px"}),moduleDetailLabel:(0,h.y0)({fontSize:"12px",fontWeight:"bold",lineHeight:"16px",color:"rgb(89, 89, 89)",padding:"0px",margin:"0px 0px 4px"}),moduleDetailBody:(0,h.y0)({lineHeight:"14px",marginBottom:"22px",p:{margin:"0",padding:"0"}}),moduleButton:(0,h.y0)({display:"flex",justifyContent:"center",alignItems:"center"})},ke=t.K.Item,Ne=function(){var e,n=(0,x.T)(),o=(0,x.C)(xe.p),i=(0,x.C)(xe.b2),l=(0,x.C)(xe.H6),r=function(e){n((0,xe.DH)("mouseenter"!==e.type))};return(0,v.jsx)(be.U,{gapSpace:-10,hidden:o,hideOverflow:!0,calloutMaxHeight:480,isBeakVisible:!1,preventDismissOnLostFocus:!0,target:{current:i},directionalHint:12,children:(0,v.jsxs)(t.K,{className:Se.calloutContent,onMouseEnter:r,onMouseLeave:r,children:[(0,v.jsx)(ke,{children:(0,v.jsx)("h3",{className:Se.moduleDetailTitle,children:l.name})}),(0,v.jsx)(ke,{grow:1,shrink:1,className:Se.moduleDetailItemStyle,children:(0,v.jsxs)("div",{children:[(0,v.jsx)(W._,{title:"Description",className:Se.moduleDetailLabel,children:"\u63cf\u8ff0"}),(0,v.jsx)("div",{className:Se.moduleDetailBody,children:(0,v.jsx)("p",{children:l.describe})})]})}),(0,v.jsx)(ke,{grow:1,shrink:1,className:Se.moduleDetailItemStyle,children:(0,v.jsxs)("div",{children:[(0,v.jsx)(W._,{title:"Description",className:Se.moduleDetailLabel,children:"\u521b\u5efa\u4eba"}),(0,v.jsx)("div",{className:Se.moduleDetailBody,children:(0,v.jsx)("p",{children:l.createdBy})})]})}),(0,v.jsx)(ke,{grow:1,shrink:1,className:Se.moduleDetailItemStyle,children:(0,v.jsxs)("div",{children:[(0,v.jsx)(W._,{title:"Description",className:Se.moduleDetailLabel,children:"\u955c\u50cf"}),(0,v.jsx)("div",{className:Se.moduleDetailBody,children:(0,v.jsx)("p",{children:l.imagesName})})]})}),(0,v.jsx)(ke,{grow:1,shrink:1,className:Se.moduleDetailItemStyle,children:(0,v.jsxs)("div",{children:[(0,v.jsx)(W._,{title:"Description",className:Se.moduleDetailLabel,children:"\u4e0a\u6b21\u4fee\u6539\u65f6\u95f4"}),(0,v.jsx)("div",{className:Se.moduleDetailBody,children:(0,v.jsx)("p",{children:l.lastChanged})})]})}),(0,v.jsx)(ke,{grow:1,shrink:1,className:Se.moduleDetailItemStyle,children:(0,v.jsxs)("div",{children:[(0,v.jsx)(W._,{title:"Description",className:Se.moduleDetailLabel,children:"\u7248\u672c"}),(0,v.jsx)("div",{className:Se.moduleDetailBody,children:(0,v.jsx)("p",{children:l.version})})]})}),null!==l&&void 0!==l&&null!==(e=l.expand)&&void 0!==e&&e.help_url?(0,v.jsx)(ke,{grow:1,shrink:1,className:Se.moduleButton,children:(0,v.jsx)(c.K,{onClick:function(){window.open(l.expand.help_url)},children:"\u914d\u7f6e\u6587\u6863"})}):null]})})},_e={moduleItem:(0,h.y0)({width:"100%",userSelect:"none",cursor:"pointer"}),moduleListModuleCard:(0,h.y0)({margin:"8px 16px",border:"1px solid rgb(234, 234, 234)",background:"rgb(248, 248, 248)",color:"rgb(55, 55, 55)",borderRadius:"2px",padding:"8px",display:"flex",fontSize:"12px",flexDirection:"column","&:hover":{backgroundColor:"#eee"},"> div":{pointerEvents:"none",display:"flex",flexDirection:"row",flexGrow:1,alignItems:"center","> header":{flexGrow:1,color:"rgb(0, 0, 0)",fontWeight:600,fontSize:"12px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",lineHeight:"16px"},"> summary":{flexGrow:1,color:"rgb(55, 55, 55)",fontSize:"12px"}}})},Le=function(e){var n=(0,x.T)(),o=(0,i.useState)(e.model),t=(0,l.Z)(o,2),r=t[0],s=t[1],d=function(e){"mouseenter"===e.type&&n((0,xe.VF)(e.target)),n((0,xe.DH)("mouseenter"!==e.type)),n((0,xe.rn)(r))};return(0,i.useEffect)((function(){s(e.model)}),[e.model]),(0,v.jsx)("div",{className:_e.moduleItem,children:(0,v.jsx)("div",{className:"module-card-with-hover-wrap",children:(0,v.jsx)("div",{className:"module-card-content-wrap",children:(0,v.jsxs)("div",{className:_e.moduleListModuleCard,onMouseEnter:d,onMouseLeave:d,onMouseDown:function(){n((0,xe.DH)(!0))},onDragStart:function(e){e.dataTransfer.setData("application/reactflow",JSON.stringify(r)),e.dataTransfer.effectAllowed="move"},draggable:!0,children:[(0,v.jsxs)("div",{children:[(0,v.jsx)(a.J,{iconName:"Database",styles:{root:{marginRight:"4px",lineHeight:"16px"}}}),(0,v.jsx)("header",{children:r.name})]}),(0,v.jsx)("div",{children:(0,v.jsx)("summary",{children:(0,v.jsx)("span",{children:r.describe})})})]})})})})},Ie={moduleItem:(0,h.y0)({width:"100%",userSelect:"none",cursor:"pointer"}),moduleListModuleCard:(0,h.y0)({margin:"4px 8px",border:"1px solid rgb(234, 234, 234)",background:"rgb(248, 248, 248)",color:"rgb(55, 55, 55)",borderRadius:"2px",padding:"5px 8px",display:"flex",fontSize:"12px",flexDirection:"column","&:hover":{backgroundColor:"#eee"},"> div":{pointerEvents:"none",display:"flex",flexDirection:"row",flexGrow:1,alignItems:"center","> header":{flexGrow:1,color:"rgb(0, 0, 0)",fontWeight:600,fontSize:"12px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",lineHeight:"16px"},"> summary":{flexGrow:1,color:"rgb(55, 55, 55)",fontSize:"12px"}}})},De=function(e){var n=(0,i.useState)(e.model),o=(0,l.Z)(n,2),t=o[0],r=o[1];return(0,i.useEffect)((function(){r(e.model)}),[e.model]),(0,v.jsx)("div",{className:Ie.moduleItem,children:(0,v.jsx)("div",{className:"module-card-with-hover-wrap",children:(0,v.jsx)("div",{className:"module-card-content-wrap",children:(0,v.jsxs)("div",{className:Ie.moduleListModuleCard,onClick:e.onClick,children:[(0,v.jsxs)("div",{children:[(0,v.jsx)(a.J,{iconName:"Database",styles:{root:{marginRight:"4px",lineHeight:"16px"}}}),(0,v.jsx)("header",{children:t.name})]}),(0,v.jsx)("div",{children:(0,v.jsx)("summary",{children:(0,v.jsx)("span",{children:t.describe})})})]})})})})},Te={"::-webkit-scrollbar":{width:4},"::-webkit-scrollbar-thumb":{minHeight:"15px",border:"6px solid transparent",backgroundClip:"padding-box",backgroundColor:"rgb(200, 200, 200)"}},Ze={showModuleTree:(0,h.y0)({width:"320px",height:"100%",transition:"all 0.35s ease 0s",overflowX:"hidden",visibility:"visible"}),hideModuleTree:(0,h.y0)({width:"0px",height:"100%",transition:"width 0.35s ease 0s",overflowX:"hidden",visibility:"hidden"}),treeContainer:(0,h.y0)({width:"320px",boxSizing:"border-box",height:"100%",display:"flex",flexDirection:"column",borderRight:"1px solid rgb(234, 234, 234)",backgroundColor:"#fff"}),searchBoxStyle:(0,h.y0)({margin:"12px 16px",padding:"1px 0px",color:"rgb(1, 92, 218)",lineHeight:"32px",minHeight:"32px",flexGrow:"1"}),searchCallout:(0,h.y0)({".ms-Callout-main":(0,T.Z)({overflowY:"overlay",willChange:"transform"},Te)}),searchListStyle:(0,h.y0)({width:"287px",padding:"8px 0"}),summaryStyle:(0,h.y0)({display:"flex",justifyContent:"space-between",alignItems:"center",padding:"8px 16px",borderTop:"1px solid rgb(218, 218, 218)"}),moduleTreeStyle:(0,h.y0)({position:"relative",display:"flex",flexDirection:"column",overflowX:"hidden",overflowY:"auto",flexGrow:"1"}),moduleTreeBody:(0,h.y0)({position:"relative",height:"100%"}),listIconStyle:(0,h.y0)({display:"inline-flex",fontSize:"12px",lineHeight:"12px",marginRight:"4px",height:"6px",color:"rgb(55, 55, 55)",userSelect:"none"}),spinnerContainer:(0,h.y0)({width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"}),moduleListStyle:(0,h.y0)((0,T.Z)({padding:0,margin:"0 auto",overflowY:"overlay",height:"100%",willChange:"transform"},Te)),moduleListItem:(0,h.y0)({listStyle:"none",outline:"none"}),itemFolderNode:(0,h.y0)({display:"flex",alignItems:"center",cursor:"pointer",padding:"7px 15px",border:"1px solid transparent",height:16,fontFamily:"Segoe UI,sans-serif",fontSize:12,lineHeight:16,fontWeight:600,color:"black","&:hover":{backgroundColor:"#eaeaea"}})},Oe=t.K.Item,ze=[{color:"rgba(0,120,212,1)",bg:"rgba(0,120,212,0.02)"},{color:"rgba(0,170,200,1)",bg:"rgba(0,170,200,0.02)"},{color:"rgba(0,200,153,1)",bg:"rgba(0,200,153,0.02)"},{color:"rgba(0,6,200,1)",bg:"rgba(0,6,200,0.02)"},{color:"rgba(212,65,0,1)",bg:"rgba(212,65,0,0.02)"},{color:"rgba(212,176,0,1)",bg:"rgba(212,176,0,0.02)"}],Be=function(){var e=(0,x.T)(),n=(0,x.C)(xe.RU),o=(0,i.useState)(new Set),s=(0,l.Z)(o,2),d=s[0],c=s[1],u=(0,i.useState)(new Map),p=(0,l.Z)(u,2),m=p[0],h=p[1],g=(0,i.useState)(0),y=(0,l.Z)(g,2),b=y[0],j=y[1],w=(0,i.useState)(!1),k=(0,l.Z)(w,2),L=k[0],I=k[1],D=(0,i.useState)(!1),T=(0,l.Z)(D,2),Z=T[0],O=T[1],z=(0,i.useState)(new Map),B=(0,l.Z)(z,2),H=B[0],E=B[1],R=function(e){var n=new Map,o=0;e.forEach((function(e){if("Release"===e.version){o+=1;var i={id:e.id,args:e.args?JSON.parse(e.args):{},name:e.name,version:e.version,describe:e.describe,imagesName:e.images.name,createdBy:e.created_by.username,lastChanged:e.changed_on,expand:JSON.parse(e.expand),color:ze[e.project.id%ze.length]};n.has(e.project.id)?n.get(e.project.id).children.push(i):n.set(e.project.id,{id:e.project.id,title:e.project.name,children:[i]})}})),j(o),h(n)},W=function(){I(!0),j(0),N.Z.job_template_modelview().then((function(e){if(0===(null===e||void 0===e?void 0:e.status)&&"success"===(null===e||void 0===e?void 0:e.message)){R(null===e||void 0===e?void 0:e.result.data);var n=Date.now();Ce.set("job_template",{update:n,value:null===e||void 0===e?void 0:e.result.data,expire:864e5})}})).catch((function(n){var o,i;n.response&&e((0,_.L$)({msg:null===(o=n.response)||void 0===o||null===(i=o.data)||void 0===i?void 0:i.message}))})).finally((function(){I(!1)}))};return(0,i.useEffect)((function(){var e=Ce.get("job_template");e&&Date.now()-(null===e||void 0===e?void 0:e.update)<(null===e||void 0===e?void 0:e.expire)?R(e.value):W()}),[]),(0,v.jsxs)(Oe,{shrink:!0,children:[(0,v.jsx)("div",{className:n?Ze.showModuleTree:Ze.hideModuleTree,children:(0,v.jsxs)("div",{className:Ze.treeContainer,children:[(0,v.jsxs)(t.K,{horizontal:!0,horizontalAlign:"space-between",children:[(0,v.jsx)(ye.R,{placeholder:"\u641c\u7d22\u6a21\u677f\u540d\u79f0\u6216\u63cf\u8ff0",role:"search",className:Ze.searchBoxStyle,onChange:f((function(e,n){if(n){console.log(n);var o=new Map;m.forEach((function(e,i){var t=e.children;t.length>0&&t.forEach((function(e){var t,l;((null===e||void 0===e||null===(t=e.name)||void 0===t?void 0:t.indexOf(n))>-1||(null===e||void 0===e||null===(l=e.describe)||void 0===l?void 0:l.indexOf(n))>-1)&&(o.has(i)?o.set(i,o.get(i).concat(e)):o.set(i,[e]))}))})),E(o),O(!0)}else O(!1)}),300),onBlur:function(){setTimeout((function(){O(!1)}),300)}}),(0,v.jsx)(be.U,{className:Ze.searchCallout,isBeakVisible:!1,preventDismissOnLostFocus:!0,hidden:!Z,calloutMaxHeight:300,target:".ms-SearchBox",children:(0,v.jsxs)(t.K,{className:Ze.searchListStyle,children:[0===Array.from(H.keys()).length?(0,v.jsx)("div",{style:{textAlign:"center"},children:"\u6682\u65e0\u5339\u914d"}):"",Array.from(H.keys()).map((function(e){var n=H.get(e);return(0,v.jsx)(i.Fragment,{children:null===n||void 0===n?void 0:n.map((function(n){return(0,v.jsx)(De,{model:n,onClick:function(){console.log(d),d.has(e)||(d.add(e),c(new Set(d)))}},n.id)}))},e)}))]})})]}),(0,v.jsxs)("div",{className:Ze.summaryStyle,children:[(0,v.jsxs)(je.x,{children:[b," assets in total"]}),(0,v.jsx)(we.k,{children:(0,v.jsx)(r.h,{iconProps:{iconName:"Refresh"},onClick:function(){L||W()}})})]}),(0,v.jsx)("div",{className:Ze.moduleTreeStyle,children:(0,v.jsx)("div",{className:Ze.moduleTreeBody,children:L?(0,v.jsx)(t.K,{className:Ze.spinnerContainer,children:(0,v.jsx)(C.$,{size:S.E.large,label:"Loading"})}):(0,v.jsx)("ul",{className:Ze.moduleListStyle,children:Array.from(m.keys()).map((function(e){var n,o=m.get(e);return(0,v.jsxs)("li",{className:Ze.moduleListItem,children:[(0,v.jsx)("div",{role:"button",onClick:function(){d.has(e)?d.delete(e):d.add(e),c(new Set(d))},children:(0,v.jsxs)("div",{className:Ze.itemFolderNode,children:[(0,v.jsx)(a.J,{iconName:d.has(e)?"FlickUp":"FlickLeft",styles:{root:{alignItems:d.has(e)?"baseline":"center"}},className:Ze.listIconStyle}),o.title]})}),d.has(e)?(0,v.jsx)("ul",{role:"group",style:{paddingLeft:"0px"},children:null===(n=o.children)||void 0===n?void 0:n.map((function(e){return(0,v.jsx)("li",{className:Ze.moduleListItem,children:(0,v.jsx)("div",{role:"button",children:(0,v.jsx)(Le,{model:e})})},e.id)}))}):null]},e)}))})})})]})}),(0,v.jsx)(Ne,{})]})},He={root:{width:"100%",height:"100%",overflow:"hidden"}},Ee=function(){return(0,v.jsxs)(t.K,{className:"app-container",horizontal:!0,styles:He,children:[(0,v.jsx)(Be,{}),(0,v.jsx)(ve,{}),(0,v.jsx)(y,{})]})}}}]); \ No newline at end of file +"use strict";(self.webpackChunkvite_ml_platform=self.webpackChunkvite_ml_platform||[]).push([[805],{45117:function(e,n,o){o.d(n,{T:function(){return t},C:function(){return l}});var i=o(81899),t=function(){return(0,i.I0)()},l=i.v9},16805:function(e,n,o){o.r(n),o.d(n,{default:function(){return Ee}});var i=o(72791),t=o(59332),l=o(50678),r=o(29093),a=o(18511),s=o(50199),d=o(77291),c=o(70927),u=o(81318),p=o(15853),x=o(45117),m=o(16097);function f(e,n){var o=null;return function(){for(var i=this,t=arguments.length,l=new Array(t),r=0;r370&&S(e.clientX-270)},onMouseUp:z,onMouseLeave:z,children:[(0,v.jsx)("div",{style:{height:"100%",width:C},children:(0,v.jsx)(p.ZP,{language:"json",theme:"vs",value:y,onChange:function(e){Z(!1),b(e)},height:500,options:{renderValidationDecorations:"on",automaticLayout:!0,formatOnPaste:!0,formatOnType:!0,renderLineHighlight:"none",autoClosingOvertype:"always",cursorStyle:"block",quickSuggestions:!1,scrollBeyondLastLine:!1,snippetSuggestions:"none",minimap:{enabled:!1}}})}),(0,v.jsx)("div",{className:g.resizeLine,onMouseDown:function(){_(!0)},children:(0,v.jsx)(a.J,{iconName:"BulletedListBulletMirrored",className:g.resizeLineIconStyles})}),(0,v.jsx)("div",{style:{flex:1}})]}),(0,v.jsxs)("div",{className:g.contentStyles.footer,children:[T?(0,v.jsx)(s.c,{messageBarType:d.f.error,styles:{root:{position:"absolute",width:"50%",left:0}},isMultiline:!1,children:"JSON \u683c\u5f0f\u9519\u8bef"}):null,(0,v.jsx)(c.K,{styles:{root:{marginRight:10}},onClick:function(){!function(e){try{return JSON.parse(e),!0}catch(n){return!1}}(y)?Z(!0):(e((0,m.sW)(y)),e((0,m.y7)(!1)))},children:"\u786e\u8ba4"}),(0,v.jsx)(u.a,{onClick:O,children:"\u53d6\u6d88"})]})]})})},b=o(48636),j=o(36222),w=o(2692),C=o(97708),S=o(90110),k=o(17504),N=o(31776),L=o(64011),_=o(42081),I=o(65223),D=o(57217),T=o(18489),Z=o(52274),O=o(33860),z={settingContainer:(0,h.y0)({display:"flex",flexDirection:"column",width:350,position:"absolute",top:0,right:0,bottom:0,height:"auto",backgroundColor:"#fff",borderLeft:"1px solid rgb(234, 234, 234)",boxShadow:"rgb(0 0 0 / 18%) 0px 1.6px 3.6px 0px, rgb(0 0 0 / 22%) 0px 0.3px 0.9px 0px",zIndex:999}),settingHeader:(0,h.y0)({display:"flex",width:"100%",alignItems:"center",justifyContent:"space-between",color:"balck",boxSizing:"border-box",padding:"10px 20px"}),headerTitle:(0,h.y0)({fontSize:20,fontWeight:600,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",color:"black"}),settingContent:(0,h.y0)({flex:"1 1 0%",overflowY:"auto","&::-webkit-scrollbar":{width:4},"&::-webkit-scrollbar-thumb":{minHeight:"15px",border:"6px solid transparent",backgroundClip:"padding-box",backgroundColor:"rgb(200, 200, 200)"}}),contentWrapper:(0,h.y0)({padding:"0 20px 20px",overflowX:"hidden",wordBreak:"break-word",userSelect:"text",borderTop:"1px solid #eaeaea"}),splitLine:(0,h.y0)({margin:"10px -20px 0 -20px",borderTop:"1px solid #eaeaea"})},B=function(){var e=(0,x.T)(),n=(0,x.C)(b.H6),o=(0,x.C)(I.RU),t=(0,x.C)(b.mg),a=(0,x.C)(_.hr),s=(0,i.useState)({}),d=(0,l.Z)(s,2),c=d[0],u=d[1],p=(0,i.useState)([]),m=(0,l.Z)(p,2),f=m[0],h=m[1],g=(0,i.useState)(),y=(0,l.Z)(g,2),j=y[0],w=y[1],C=function(o,i){var l={};if(l[o]=i,"project"===o){var r=i;w(r),l[o]=r.key}n&&(u((0,T.Z)((0,T.Z)({},c),l)),e((0,b.v_)((0,T.Z)((0,T.Z)({},t),l))))};return(0,i.useEffect)((function(){if(n){var e,o;u(n);var i={key:null===n||void 0===n||null===(e=n.project)||void 0===e?void 0:e.id,text:null===n||void 0===n||null===(o=n.project)||void 0===o?void 0:o.name};w(i)}}),[n]),(0,i.useEffect)((function(){Object.keys(t).length>1&&e((0,b.u6)(!0))}),[t]),(0,i.useEffect)((function(){N.Z.project_modelview().then((function(e){var n=null===e||void 0===e?void 0:e.result.data.reduce((function(e,n){if("org"===n.type){var o={key:n.id,text:n.name};e.push(o)}return e}),[]);h(n)}))}),[]),(0,i.useEffect)((function(){var n={};a.forEach((function(e){if((0,k.un)(e)){var o,i=a.filter((function(n){return n.id===e.source}))[0],t=a.filter((function(n){return n.id===e.target}))[0];null!==(o=n["".concat(t.data.name)])&&void 0!==o&&o.upstream?n["".concat(t.data.name)].upstream.push("".concat(i.data.name)):(n["".concat(t.data.name)]={},n["".concat(t.data.name)].upstream=["".concat(i.data.name)])}}));var o=(0,T.Z)({},n);u((0,T.Z)((0,T.Z)({},c),{dag_json:JSON.stringify(o,void 0,4)})),e((0,b.v_)((0,T.Z)((0,T.Z)({},t),{dag_json:JSON.stringify(o)})))}),[a]),(0,v.jsxs)("div",{style:{visibility:o?"visible":"hidden"},className:z.settingContainer,children:[(0,v.jsxs)("div",{className:z.settingHeader,children:[(0,v.jsx)("div",{className:z.headerTitle,children:"\u6d41\u6c34\u7ebf\u8bbe\u7f6e"}),(0,v.jsx)(r.h,{iconProps:{iconName:"ChromeClose",styles:{root:{fontSize:12,color:"#000"}}},onClick:function(){e((0,I.ZN)())}})]}),(0,v.jsx)("div",{className:z.settingContent,children:(0,v.jsxs)("div",{className:z.contentWrapper,children:[(0,v.jsx)(Z.L,{label:"\u9879\u76ee\u7ec4",onChange:function(e,n){C("project",n||"")},selectedKey:j?j.key:void 0,placeholder:"Select an option",options:f}),(0,v.jsx)("div",{className:z.splitLine}),(0,v.jsx)(O.n,{label:"\u540d\u79f0",description:"\u82f1\u6587\u540d(\u5b57\u6bcd\u3001\u6570\u5b57\u3001- \u7ec4\u6210)\uff0c\u6700\u957f50\u4e2a\u5b57\u7b26",onChange:function(e,n){C("name",n||"")},value:(null===c||void 0===c?void 0:c.name)||"",disabled:!0}),(0,v.jsx)("div",{className:z.splitLine}),(0,v.jsx)(O.n,{label:"\u63cf\u8ff0",required:!0,onChange:function(e,n){C("describe",n||"")},value:(null===c||void 0===c?void 0:c.describe)||""}),(0,v.jsx)("div",{className:z.splitLine}),(0,v.jsx)(O.n,{label:"\u547d\u540d\u7a7a\u95f4",description:"\u90e8\u7f72task\u6240\u5728\u7684\u547d\u540d\u7a7a\u95f4(\u76ee\u524d\u65e0\u9700\u586b\u5199)",value:(null===c||void 0===c?void 0:c.namespace)||"",readOnly:!0,disabled:!0}),(0,v.jsx)("div",{className:z.splitLine}),(0,v.jsx)(Z.L,{label:"\u8c03\u5ea6\u7c7b\u578b",options:[{key:"once",text:"once"},{key:"crontab",text:"crontab"}],selectedKey:null===c||void 0===c?void 0:c.schedule_type,onChange:function(e,n){C("schedule_type","".concat(null===n||void 0===n?void 0:n.text)||"")}}),(0,v.jsx)("div",{className:z.splitLine}),(0,v.jsx)(O.n,{label:"\u8c03\u5ea6\u5468\u671f",description:"\u5468\u671f\u4efb\u52a1\u7684\u65f6\u95f4\u8bbe\u5b9a * * * * * \u8868\u793a\u4e3a minute hour day month week",onChange:function(e,n){C("cron_time",n||"")},value:(null===c||void 0===c?void 0:c.cron_time)||""}),(0,v.jsx)("div",{className:z.splitLine}),(0,v.jsx)(O.n,{label:"\u8c03\u5ea6\u673a\u5668",description:"\u90e8\u7f72task\u6240\u5728\u7684\u673a\u5668(\u76ee\u524d\u65e0\u9700\u586b\u5199)",onChange:function(e,n){C("node_selector",n||"")},value:(null===c||void 0===c?void 0:c.node_selector)||""}),(0,v.jsx)("div",{className:z.splitLine}),(0,v.jsx)(Z.L,{label:"\u955c\u50cf\u62c9\u53d6\u7b56\u7565",options:[{key:"Always",text:"Always"},{key:"IfNotPresent",text:"IfNotPresent"}],selectedKey:c.image_pull_policy,onChange:function(e,n){C("image_pull_policy","".concat(null===n||void 0===n?void 0:n.text)||"")}}),(0,v.jsx)("div",{className:z.splitLine}),(0,v.jsx)(Z.L,{label:"\u8fc7\u5f80\u4f9d\u8d56",options:[{key:"true",text:"\u662f",data:!0},{key:"false",text:"\u5426",data:!1}],selectedKey:"".concat(c.depends_on_past),onChange:function(e,n){C("depends_on_past",null===n||void 0===n?void 0:n.data)}}),(0,v.jsx)("div",{className:z.splitLine}),(0,v.jsx)(O.n,{label:"\u6700\u5927\u6fc0\u6d3b\u8fd0\u884c\u6570",description:"\u5f53\u524dpipeline\u53ef\u540c\u65f6\u8fd0\u884c\u7684\u4efb\u52a1\u6d41\u5b9e\u4f8b\u6570\u76ee",onChange:function(e,n){C("max_active_runs",n?+n:"")},value:(null===c||void 0===c?void 0:c.max_active_runs)||"",required:!0}),(0,v.jsx)("div",{className:z.splitLine}),(0,v.jsx)(O.n,{label:"\u4efb\u52a1\u5e76\u884c\u6570",description:"pipeline\u4e2d\u53ef\u540c\u65f6\u8fd0\u884c\u7684task\u6570\u76ee",onChange:function(e,n){C("parallelism",n?+n:"")},value:(null===c||void 0===c?void 0:c.parallelism)||"",required:!0}),(0,v.jsx)("div",{className:z.splitLine}),(0,v.jsx)(O.n,{label:"\u6d41\u5411\u56fe",onChange:function(e,n){C("dag_json",n||"{}")},value:(null===c||void 0===c?void 0:c.dag_json)||"{}",multiline:!0,autoAdjustHeight:!0,disabled:!0}),(0,v.jsx)("div",{className:z.splitLine}),(0,v.jsx)(O.n,{label:"\u5168\u5c40\u73af\u5883\u53d8\u91cf",description:"\u4e3a\u6bcf\u4e2atask\u90fd\u6dfb\u52a0\u7684\u516c\u5171\u53c2\u6570",onChange:function(e,n){C("global_env",n||"")},multiline:!0,autoAdjustHeight:!0,value:(null===c||void 0===c?void 0:c.global_env)||""})]})})]})},H=o(50656),E=o(10420),R=o(54794),W=o(63934),M={modelContainer:(0,h.y0)({display:"flex",flexDirection:"column",width:350,position:"absolute",top:0,right:0,bottom:0,height:"auto",backgroundColor:"#fff",borderLeft:"1px solid rgb(234, 234, 234)",boxShadow:"rgb(0 0 0 / 18%) 0px 1.6px 3.6px 0px, rgb(0 0 0 / 22%) 0px 0.3px 0.9px 0px",zIndex:998}),modelHeader:(0,h.y0)({display:"flex",width:"100%",alignItems:"center",justifyContent:"space-between",color:"balck",boxSizing:"border-box",padding:"10px 20px"}),headerTitle:(0,h.y0)({fontSize:20,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",color:"black",fontWeight:600}),modelContent:(0,h.y0)({flex:"1 1 0%",overflowY:"auto","&::-webkit-scrollbar":{width:4},"&::-webkit-scrollbar-thumb":{minHeight:"15px",border:"6px solid transparent",backgroundClip:"padding-box",backgroundColor:"rgb(200, 200, 200)"}}),contentWrapper:(0,h.y0)({padding:"0 20px 20px",overflowX:"hidden",wordBreak:"break-word",userSelect:"text",borderTop:"1px solid #eaeaea"}),splitLine:(0,h.y0)({margin:"10px -20px 0 -20px",borderTop:"1px solid #eaeaea"}),settingControl:(0,h.y0)({height:"auto",display:"flex",flexDirection:"column",paddingTop:20}),saveButton:(0,h.y0)({alignSelf:"center"}),debugButton:(0,h.y0)({display:"flex",flexDirection:"row",justifyContent:"space-evenly",paddingTop:20}),templateConfig:(0,h.y0)({color:"rgb(96, 94, 92)",fontSize:10,paddingTop:5,paddingLeft:2,"> a":{textDecoration:"none"}}),argsDescription:(0,h.y0)({color:"rgb(96, 94, 92)",fontSize:10,"> a":{textDecoration:"none"}}),textLabelStyle:(0,h.y0)({display:"flex",alignItems:"center",justifyContent:"space-between",fontWeight:600,color:"rgb(50, 49, 48)",boxSizing:"border-box",boxShadow:"none",margin:"0px",padding:"5px 0px",overflowWrap:"break-word",lineHeight:"30px"})},P=function(e){var n=(0,x.T)(),o=(0,x.C)(_.hr),t=(0,x.C)(D.Aj),r=(0,x.C)(m.ld),a=(0,x.C)(m.OA),s=(0,x.C)(m.PF),d=(0,i.useState)({}),c=(0,l.Z)(d,2),u=c[0],p=c[1],f=(0,i.useState)({}),h=(0,l.Z)(f,2),g=h[0],y=h[1],b=(0,i.useState)({}),j=(0,l.Z)(b,2),w=j[0],C=j[1],S=(0,i.useState)({}),k=(0,l.Z)(S,2),I=k[0],z=k[1],B=(0,i.useState)({}),H=(0,l.Z)(B,2),P=H[0],J=H[1],K=[{key:"debug",text:"debug",onClick:function(){return A("debug")},iconProps:{iconName:"Bug"}},{key:"run",text:"run",onClick:function(){return A("run")},iconProps:{iconName:"Play"}},{key:"log",text:"log",onClick:function(){return A("log")},iconProps:{iconName:"TimeEntry"}},{key:"clear",text:"clear",onClick:function(){return A("clear")},iconProps:{iconName:"Unsubscribe"}}],A=function(n){e.model.id&&window.open("".concat(window.location.origin,"/task_modelview/").concat(n,"/").concat(e.model.id))},F=function(e,n,o){var i={},t=null;switch(o){case"json":try{t=JSON.parse("".concat(n))}catch(r){t=n}break;case"int":t=+n;break;default:t=n}if(o){var l=JSON.parse(JSON.stringify(P));l[e]=t,i.args=JSON.stringify(l)}else i[e]=n;y((0,T.Z)((0,T.Z)({},g),i)),p((0,T.Z)((0,T.Z)({},u),i)),null!==i&&void 0!==i&&i.args&&J((0,T.Z)((0,T.Z)({},P),JSON.parse(i.args)))};return(0,i.useEffect)((function(){e.model.selected&&(n((0,D.kQ)(+e.model.id)),0===Object.keys(u).length&&N.Z.task_modelview_get(+e.model.id).then((function(e){if(0===e.status){var n=JSON.parse(e.result.args),o=e.result.job_template,i=null!==o&&void 0!==o&&o.args?JSON.parse(o.args):{},t=Object.keys(i).reduce((function(e,n){var o=i[n];return Object.keys(o).forEach((function(n){e[n]=o[n].default})),e}),{});p(e.result),J(Object.assign(t,n)),z(i),C(o)}})).catch((function(e){e.response&&n((0,L.L$)({msg:e.response.data.message}))})))}),[e.model.selected]),(0,i.useEffect)((function(){if(e.model.id&&n((0,D.hs)({id:+e.model.id,changed:g})),null!==g&&void 0!==g&&g.label){var i=o.map((function(n){if(n.id===e.model.id){var o=(0,T.Z)((0,T.Z)({},n.data),{label:g.label});return(0,T.Z)((0,T.Z)({},n),{data:o})}return n}));n((0,_.OV)(i))}}),[g]),(0,i.useEffect)((function(){Object.keys(I).length>0&&+e.model.id===t&&!r&&F(a,s,"json")}),[s]),(0,v.jsxs)("div",{className:M.modelContainer,style:{visibility:e.model.selected?"visible":"hidden"},children:[(0,v.jsx)("div",{className:M.modelHeader,children:(0,v.jsx)("div",{className:M.headerTitle,children:(null===u||void 0===u?void 0:u.name)||""})}),(0,v.jsx)("div",{className:M.modelContent,children:(0,v.jsxs)("div",{className:M.contentWrapper,children:[(0,v.jsx)(E.X,{items:K,overflowItems:[],styles:{root:{padding:0}}}),(0,v.jsx)(O.n,{label:"\u4efb\u52a1\u6a21\u677f",value:(null===w||void 0===w?void 0:w.name)||"",disabled:!0,readOnly:!0,onRenderDescription:function(){var e="";try{var n;if(w.expand)e=(null===(n=JSON.parse(w.expand))||void 0===n?void 0:n.help_url)||""}catch(o){console.error(o)}return(0,v.jsx)("div",{className:M.templateConfig,children:e?(0,v.jsx)("a",{href:e,target:"_blank",rel:"noreferrer",children:"\u914d\u7f6e\u6587\u6863"}):null})}}),(0,v.jsx)("div",{className:M.splitLine}),(0,v.jsx)(O.n,{label:"\u6a21\u677f\u63cf\u8ff0",value:(null===w||void 0===w?void 0:w.describe)||"",disabled:!0,readOnly:!0}),(0,v.jsx)("div",{className:M.splitLine}),(0,v.jsx)(O.n,{label:"\u540d\u79f0",onChange:function(e,n){F("name",n||"")},value:(null===u||void 0===u?void 0:u.name)||"",disabled:!0}),(0,v.jsx)("div",{className:M.splitLine}),(0,v.jsx)(O.n,{label:"\u6807\u7b7e",description:"\u8282\u70b9\u6807\u7b7e",required:!0,onChange:function(e,n){F("label",n||"")},value:(null===u||void 0===u?void 0:u.label)||""}),(0,v.jsx)("div",{className:M.splitLine}),(0,v.jsx)(O.n,{label:"\u5185\u5b58\u7533\u8bf7",description:"\u5185\u5b58\u7684\u8d44\u6e90\u4f7f\u7528\u9650\u5236\uff0c\u793a\u4f8b1G\uff0c10G\uff0c \u6700\u5927100G\uff0c\u5982\u9700\u66f4\u591a\u8054\u7cfb\u7ba1\u7406\u5458",onChange:function(e,n){F("resource_memory",n||"")},value:(null===u||void 0===u?void 0:u.resource_memory)||"",required:!0}),(0,v.jsx)("div",{className:M.splitLine}),(0,v.jsx)(O.n,{label:"CPU\u7533\u8bf7",description:"CPU\u7684\u8d44\u6e90\u4f7f\u7528\u9650\u5236(\u5355\u4f4d\u6838)\uff0c\u793a\u4f8b 0.4\uff0c10\uff0c\u6700\u592750\u6838\uff0c\u5982\u9700\u66f4\u591a\u8054\u7cfb\u7ba1\u7406\u5458",onChange:function(e,n){F("resource_cpu",n||"")},value:(null===u||void 0===u?void 0:u.resource_cpu)||"",required:!0}),(0,v.jsx)("div",{className:M.splitLine}),(0,v.jsx)(O.n,{label:"GPU\u7533\u8bf7",description:"gpu\u7684\u8d44\u6e90\u4f7f\u7528\u9650\u5236(\u5355\u4f4d\u5361)\uff0c\u793a\u4f8b:1\uff0c2\uff0c\u8bad\u7ec3\u4efb\u52a1\u6bcf\u4e2a\u5bb9\u5668\u72ec\u5360\u6574\u5361\u3002\u7533\u8bf7\u5177\u4f53\u7684\u5361\u578b\u53f7\uff0c\u53ef\u4ee5\u7c7b\u4f3c 1(V100),\u76ee\u524d\u652f\u6301T4/V100/A100/VGPU",onChange:function(e,n){F("resource_gpu",n||"")},value:(null===u||void 0===u?void 0:u.resource_gpu)||""}),(0,v.jsx)("div",{className:M.splitLine}),(0,v.jsx)(O.n,{label:"\u8d85\u65f6\u4e2d\u65ad",description:"task\u8fd0\u884c\u65f6\u957f\u9650\u5236\uff0c\u4e3a0\u8868\u793a\u4e0d\u9650\u5236(\u5355\u4f4ds)",onChange:function(e,n){F("timeout",n||"")},value:(null===u||void 0===u?void 0:u.timeout)||0}),(0,v.jsx)("div",{className:M.splitLine}),(0,v.jsx)(O.n,{label:"\u91cd\u8bd5\u6b21\u6570",description:"task\u91cd\u8bd5\u6b21\u6570",onChange:function(e,n){F("retry",n||"")},value:(null===u||void 0===u?void 0:u.retry)||0}),(0,v.jsx)("div",{className:M.splitLine}),Object.keys(I).reduce((function(e,o){var t=I[o],l=Object.keys(t).map((function(e){var o=t[e],l=o.choice.map((function(e){return{key:e,text:e}})),r=P&&P[e],a="json"===o.type?JSON.stringify(r,void 0,4):r;return(0,v.jsx)(i.Fragment,{children:l.length>0?(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(Z.L,{label:"".concat(e),onChange:function(n,i){F(e,"".concat(null===i||void 0===i?void 0:i.text)||"",o.type)},defaultSelectedKey:a||o.default,options:l,required:1===o.require,disabled:1!==o.editable}),(0,v.jsx)("div",{className:M.argsDescription,dangerouslySetInnerHTML:{__html:o.describe}})]}):(0,v.jsx)(O.n,{onRenderLabel:function(){return(0,v.jsxs)("div",{className:M.textLabelStyle,children:["".concat(e),"json"===o.type?(0,v.jsx)(R.K,{iconProps:{iconName:"FullWidthEdit"},onClick:function(){n((0,m.vh)({key:e,value:a})),n((0,m.y7)(!0))},children:"\u7f16\u8f91"}):null]})},onRenderDescription:function(){return(0,v.jsx)("div",{className:M.argsDescription,dangerouslySetInnerHTML:{__html:o.describe}})},multiline:"str"!==o.type,autoAdjustHeight:"str"!==o.type,onChange:function(n,i){F(e,i||"",o.type)},value:a,required:1===o.require,disabled:1!==o.editable||"json"===o.type})},e)}));return e.push((0,v.jsxs)(i.Fragment,{children:[(0,v.jsxs)(W._,{children:["\u53c2\u6570 ",o]}),l.flat(),(0,v.jsx)("div",{className:M.splitLine})]},o)),e}),[])]})})]})},J={height:54,minWidth:272,borderRadius:100,borderStyle:"solid",display:"flex",flexDirection:"row",backgroundColor:"#fff",fontSize:12,cursor:"move",boxSizing:"border-box",transition:"all 0.3s"},K=(0,h.y0)((0,T.Z)((0,T.Z)({},J),{borderWidth:1,borderColor:"#b1b1b7"})),A=(0,h.y0)((0,T.Z)((0,T.Z)({},J),{borderWidth:1,borderColor:"#006dce",backgroundColor:"#f1f7fd"})),F=(0,h.y0)({width:8,flexShrink:0,borderRadius:"3px 0 0 3px",borderRight:"1px solid #8a8886",margin:"-8px 0 -8px -8px"}),G=(0,h.y0)({boxSizing:"border-box",display:"flex",flexDirection:"column",overflow:"hidden"}),U=(0,h.y0)({display:"flex",marginLeft:7,minHeight:26}),V=(0,h.y0)({fontSize:16,width:64,display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"rgb(0, 120, 212)",borderTopLeftRadius:100,borderBottomLeftRadius:100,margin:"-1px 0 -1px -1px"}),X=(0,h.y0)({userSelect:"none",boxSizing:"border-box",color:"#fff",fontSize:20,marginLeft:8}),$=(0,h.y0)({whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",paddingLeft:8,paddingBottom:2,marginBottom:2,fontWeight:600,fontSize:14,borderBottom:"1px dashed #c1c1c1",userSelect:"none"}),q=(0,h.y0)({width:"12px !important",height:"12px !important",bottom:"-7px !important",borderColor:"#b1b1b7 !important",backgroundColor:"#fff !important",transition:"all 0.3s","&:hover":{borderWidth:"2px !important",borderColor:"var(--hover-color) !important",cursor:"pointer !important"}}),Y=(0,h.y0)({visibility:"hidden"}),Q=(0,h.y0)({height:"100%",width:"100%",display:"flex",justifyContent:"center",flexDirection:"column"}),ee={nodeTips:(0,h.y0)({color:"rgb(177, 177, 183)",paddingLeft:8}),nodeContentWrapper:Q,nodeContainer:K,nodeOnSelect:A,nodeBar:F,nodeContent:G,nodeConentTitleBar:U,nodeIconWrapper:V,nodeIcon:X,nodeTitle:$,handleStyle:q,hidden:Y},ne={dataSet:function(e){var n,o,i,t,l,r,s,d,c,u,p,x;return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(k.HH,{type:"target",position:k.Ly.Top,className:ee.handleStyle}),(0,v.jsxs)("div",{className:e.selected?ee.nodeOnSelect:ee.nodeContainer,style:{borderColor:e.selected?null===e||void 0===e||null===(n=e.data)||void 0===n||null===(o=n.info)||void 0===o||null===(i=o.color)||void 0===i?void 0:i.color:"",backgroundColor:e.selected?null===e||void 0===e||null===(t=e.data)||void 0===t||null===(l=t.info)||void 0===l||null===(r=l.color)||void 0===r?void 0:r.bg:""},children:[(0,v.jsx)("div",{className:ee.nodeIconWrapper,style:{backgroundColor:null===e||void 0===e||null===(s=e.data)||void 0===s||null===(d=s.info)||void 0===d||null===(c=d.color)||void 0===c?void 0:c.color},children:(0,v.jsx)(a.J,{iconName:"Database",className:ee.nodeIcon})}),(0,v.jsxs)("div",{className:ee.nodeContentWrapper,children:[(0,v.jsx)("div",{className:ee.nodeTitle,children:null===e||void 0===e||null===(u=e.data)||void 0===u?void 0:u.label}),null!==e&&void 0!==e&&null!==(p=e.data)&&void 0!==p&&p.info?(0,v.jsx)("div",{className:ee.nodeTips,children:null===e||void 0===e||null===(x=e.data)||void 0===x?void 0:x.info.describe}):null]})]}),(0,v.jsx)(k.HH,{type:"source",position:k.Ly.Bottom,className:ee.handleStyle}),(0,v.jsx)(H.m,{hostId:"hostId_model",className:"data-set-layer",children:(0,v.jsx)(P,{model:e})})]})}},oe={itemStyles:(0,h.y0)({position:"relative"}),flowWrapper:(0,h.y0)({width:"100%",height:"100%"}),spinnerWrapper:(0,h.y0)({position:"absolute",top:0,left:0,display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",overflow:"hidden",backgroundColor:"rgba(255, 255, 255, 0.6)",zIndex:9999})},ie=t.K.Item,te=function(){var e=(0,x.T)(),n=(0,x.C)(_.hr),o=(0,x.C)(b.Bn),t=(0,x.C)(b.H6),r=(0,x.C)(I.RU),a=(0,x.C)(D.NH),s=(0,i.useRef)(null),d=(0,i.useState)(null),c=(0,l.Z)(d,2),u=c[0],p=c[1];return(0,i.useEffect)((function(){var n=JSON.parse((null===t||void 0===t?void 0:t.expand)||"[]").map((function(e){return!(0,k.un)(e)||null!==e&&void 0!==e&&e.arrowHeadType?((0,k.UG)(e)&&!e.data.label&&(e.data.label=e.data.name),e):Object.assign(e,{arrowHeadType:"arrow"})}));e((0,_.OV)(n))}),[t]),(0,v.jsx)(ie,{shrink:!0,grow:1,className:oe.itemStyles,children:(0,v.jsxs)("div",{className:oe.flowWrapper,ref:s,children:[(0,v.jsxs)(k.ZP,{elements:n,nodeTypes:ne,snapToGrid:!0,snapGrid:[16,16],defaultZoom:1,onLoad:function(e){p(e)},onDrop:function(i){i.preventDefault();var t=s.current.getBoundingClientRect(),l=JSON.parse(i.dataTransfer.getData("application/reactflow")),r=u.project({x:i.clientX-t.left,y:i.clientY-t.top}),a=l.args,d={};if(Object.keys(a).reduce((function(e,n){var o={};return Object.keys(a[n]).reduce((function(e,o){var i=a[n][o].default;return Object.assign(e,(0,j.Z)({},o,i)),e}),o),Object.assign(e,o),e}),d),o){e((0,D.Xt)(!0));var c="".concat(l.name.replace(/\.|[\u4e00-\u9fa5]/g,"").replace(/_|\s/g,"-")||"task","-").concat(Date.now()).substring(0,49);N.Z.task_modelview_add(o,{job_template:l.id,pipeline:+o,name:c,label:"\u65b0\u5efa ".concat(l.name," \u4efb\u52a1"),volume_mount:"kubeflow-user-workspace(pvc):/mnt,kubeflow-archives(pvc):/archives",image_pull_policy:"Always",working_dir:"",command:"",overwrite_entrypoint:0,node_selector:"cpu=true,train=true",resource_memory:"2G",resource_cpu:"2",resource_gpu:"0",timeout:0,retry:0,args:JSON.stringify(d)}).then((function(o){var i;if(null!==o&&void 0!==o&&null!==(i=o.result)&&void 0!==i&&i.id){var t={id:"".concat(o.result.id),type:"dataSet",position:r,data:{info:l,name:c,label:"\u65b0\u5efa ".concat(l.name," \u4efb\u52a1")}};e((0,b.u6)(!0)),e((0,_.OV)(n.concat(t))),setTimeout((function(){e((0,b.oL)())}),2e3)}})).catch((function(n){n.response&&e((0,L.L$)({msg:n.response.data.message}))})).finally((function(){e((0,D.Xt)(!1))}))}},onDragOver:function(e){e.preventDefault(),e.dataTransfer.dropEffect="move"},onElementClick:function(n,o){r&&o.data&&e((0,I.ZN)())},onElementsRemove:function(o){o.forEach((function(n){null!==n&&void 0!==n&&n.id&&(0,k.UG)(n)&&N.Z.task_modelview_del(+n.id).then((function(){setTimeout((function(){e((0,b.oL)())}),2e3)})).catch((function(n){n.response&&e((0,L.L$)({msg:n.response.data.message}))}))})),e((0,b.u6)(!0)),e((0,_.OV)((0,k.d0)(o,n)))},onConnect:function(o){e((0,b.u6)(!0)),e((0,_.OV)((0,k.Z_)(Object.assign(o,{arrowHeadType:"arrow"}),n)))},onNodeDragStop:function(o,i){e((0,_.OV)(n.map((function(e){return(null===e||void 0===e?void 0:e.id)===(null===i||void 0===i?void 0:i.id)?i:e})))),e((0,b.u6)(!0))},onSelectionChange:function(n){n&&e((0,_.pM)(n))},children:[(0,v.jsx)(B,{}),(0,v.jsx)(k.a9,{nodeStrokeColor:"#8a8886",nodeColor:"#c8c8c8"}),(0,v.jsx)(k.ZX,{}),(0,v.jsx)(w.Z,{id:"hostId_model",className:"layer-host"})]}),(0,v.jsx)("div",{className:oe.spinnerWrapper,style:{visibility:a?"visible":"hidden"},children:(0,v.jsx)(C.$,{size:S.E.large,label:"Loading"})})]})})},le=o(33032),re=o(84322),ae=o.n(re),se=o(49161),de=function(){var e=(0,x.T)(),n=(0,x.C)(L.V0);return(0,i.useEffect)((function(){n&&setTimeout((function(){e((0,L.L$)(null))}),3e3)}),[n]),n&&(0,v.jsx)(s.c,{messageBarType:d.f.error,styles:{root:{minHeight:32,width:"80%",margin:"0 auto"}},dismissButtonAriaLabel:"Close",onDismiss:function(){e((0,L.L$)(null))},isMultiline:!1,children:(null===n||void 0===n?void 0:n.msg)||""})},ce={headStyle:{root:{backgroundColor:"#fff",padding:"10px 16px",borderBottom:"1px solid #dadada"}},headNameStyle:(0,h.y0)({boxSizing:"border-box",marginLeft:"8px",padding:"0 8px",height:"32px",lineHeight:"32px",cursor:"text",marginBottom:"4px",fontSize:"16px",fontWeight:600,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",color:"black"}),buttonItemStyle:{root:{marginRight:"16px"}},hidden:(0,h.y0)({visibility:"hidden"})},ue=t.K.Item,pe=function(){var e=(0,x.T)(),n=(0,x.C)(b.Bn),o=(0,x.C)(b.H6),i=(0,x.C)(L.zr),l=function(){var o=(0,le.Z)(ae().mark((function o(){return ae().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(!n){o.next=9;break}return o.t0=e,o.next=4,(0,D.C)();case 4:return o.t1=o.sent,o.next=7,(0,o.t0)(o.t1);case 7:e((0,b.oL)()),window.open("".concat(window.location.origin,"/pipeline_modelview/run_pipeline/").concat(n));case 9:case"end":return o.stop()}}),o)})));return function(){return o.apply(this,arguments)}}();return(0,v.jsx)(ue,{className:"editor-head",children:(0,v.jsxs)(t.K,{horizontal:!0,horizontalAlign:"space-between",verticalAlign:"center",styles:ce.headStyle,children:[(0,v.jsx)(ue,{grow:1,children:(0,v.jsxs)(t.K,{horizontal:!0,children:[(0,v.jsx)(ue,{children:o.name?(0,v.jsx)("div",{className:ce.headNameStyle,children:o.describe}):(0,v.jsx)(c.K,{styles:{root:{padding:"17px 16px"}},iconProps:{iconName:"Add",styles:{root:{fontSize:10}}},onClick:function(){N.Z.pipeline_modelview_add({describe:"\u65b0\u5efa\u6d41\u6c34\u7ebf-".concat(Date.now()),name:"".concat(i,"-pipeline-").concat(Date.now()),node_selector:"cpu=true,train=true",schedule_type:"once",image_pull_policy:"Always",parallelism:1,project:7}).then((function(e){var n;0===(null===e||void 0===e?void 0:e.status)&&"success"===(null===e||void 0===e?void 0:e.message)&&(window.location.search="?pipeline_id=".concat(null===e||void 0===e||null===(n=e.result)||void 0===n?void 0:n.id))})).catch((function(n){n.response&&e((0,L.L$)({msg:n.response.data.message}))}))},children:"\u65b0\u5efa\u6d41\u6c34\u7ebf"})}),(0,v.jsx)(ue,{className:o.name?"":ce.hidden,children:(0,v.jsx)(se.G,{content:"\u8bbe\u7f6e",children:(0,v.jsx)(r.h,{iconProps:{iconName:"Settings"},onClick:function(){e((0,I.ZN)())}})})}),(0,v.jsx)(ue,{grow:1,align:"center",children:(0,v.jsx)(de,{})})]})}),(0,v.jsx)(ue,{className:o.name?"":ce.hidden,children:(0,v.jsxs)(t.K,{horizontal:!0,children:[(0,v.jsx)(ue,{styles:ce.buttonItemStyle,children:(0,v.jsx)(c.K,{onClick:l,children:"\u8fd0\u884c"})}),(0,v.jsx)(ue,{styles:ce.buttonItemStyle,children:(0,v.jsx)(u.a,{onClick:function(){N.Z.pipeline_modelview_copy(n).then((function(e){null!==e&&void 0!==e&&e.id&&(window.self===window.top?window.location.search="?pipeline_id=".concat(e.id):window.parent.postMessage({type:"copy",message:{pipelineId:e.id}},"".concat(window.location.origin)))})).catch((function(n){n.response&&e((0,L.L$)({msg:n.response.data.message}))}))},children:"\u590d\u5236"})})]})})]})})},xe=o(51244),me={editorToolStyle:{root:{display:"flex",flexDirection:"row",backgroundColor:"#fff",padding:"2px 0px",borderBottom:"1px solid #dadada","#authoring-page-toolbar":{flex:1}}},autoSavedTips:(0,h.y0)({paddingRight:20,lineHeight:"1"}),commandBarStyle:{root:{height:"40px",padding:"0px 14px 0px 8px",borderBottom:"none",backgroundColor:"#fff"}},commonButton:{root:{width:"40px",height:"40px",borderRadius:"2px",minWidth:"40px"}},commonIcon:{root:{color:"#015cda",fontSize:18}},toggleStyle:{root:{display:"flex",alignItems:"center",padding:"8px 0px 8px 8px",height:"100%",boxSizing:"border-box",borderLeft:"1px solid rgb(234, 234, 234)",marginLeft:"8px"},container:{display:"inline-flex"}},comboBoxStyle:{container:{borderLeft:"1px solid #eaeaea",marginLeft:"4px",padding:"0px 5px 0px 10px",width:"auto"},root:{backgroundColor:"#ffffff",padding:"0px 20px 0px 4px",selectors:{"&.is-open::after":{borderBottom:"2px solid #015cda"},"&::after":{border:"none",borderBottom:0,borderRadius:"none"},".ms-Button":{width:20},".ms-Icon":{fontSize:8}}},input:{width:35,backgroundColor:"#ffffff"}}},fe=t.K.Item,he=function(){var e=(0,x.T)(),n=(0,x.C)(_.hr),o=(0,x.C)(b.N1),l=(0,x.C)(b.H6),r=(0,x.C)(b.Bn),s=(0,x.C)(D.BX),d=(0,x.C)(b.B5),c=(0,x.C)(_.tT),u=[{key:"expand",iconProps:{iconName:"Library",styles:me.commonIcon},text:"\u5c55\u5f00/\u5173\u95ed\u83dc\u5355",onClick:function(n){null===n||void 0===n||n.preventDefault(),e((0,xe.ZN)())}},{key:"save",iconProps:{iconName:"save",styles:me.commonIcon},text:"\u4fdd\u5b58",onClick:function(){var n=(0,le.Z)(ae().mark((function n(o){return ae().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return null===o||void 0===o||o.preventDefault(),n.t0=e,n.next=4,(0,D.C)();case 4:n.t1=n.sent,(0,n.t0)(n.t1),e((0,b.oL)());case 7:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}()},{key:"example",iconProps:{iconName:"FastForward",styles:me.commonIcon},text:"\u8c03\u5ea6\u5b9e\u4f8b",onClick:function(){r&&window.open("".concat(window.location.origin,"/pipeline_modelview/web/workflow/").concat(r))}},{key:"log",iconProps:{iconName:"ComplianceAudit",styles:me.commonIcon},text:"\u65e5\u5fd7",onClick:function(){null!==l&&void 0!==l&&l.id&&window.open("".concat(window.location.origin,"/pipeline_modelview/web/log/").concat(r))}},{key:"docker",iconProps:{iconName:"WebAppBuilderFragment",styles:me.commonIcon},text:"\u5bb9\u5668",onClick:function(){null!==l&&void 0!==l&&l.name&&window.open("".concat(window.location.origin,"/pipeline_modelview/web/pod/").concat(r))}},{key:"timer",iconProps:{iconName:"TimeEntry",styles:me.commonIcon},text:"\u5b9a\u65f6\u8bb0\u5f55",onClick:function(){null!==l&&void 0!==l&&l.name&&window.open("".concat(window.location.origin,"/pipeline_modelview/web/runhistory/").concat(r))}},{key:"delete",iconProps:{iconName:"Delete",styles:me.commonIcon},text:"\u5220\u9664\u8282\u70b9",onClick:function(){if((0,k.UG)(c[0])){var o,i=+(null===(o=c[0])||void 0===o?void 0:o.id);N.Z.task_modelview_del(i).then((function(){setTimeout((function(){e((0,b.oL)())}),2e3)})).catch((function(n){n.response&&e((0,L.L$)({msg:n.response.data.message}))}))}e((0,b.u6)(!0)),e((0,_.OV)((0,k.d0)(c,n)))}},{key:"monitor",iconProps:{iconName:"NetworkTower",styles:me.commonIcon},text:"\u76d1\u63a7",onClick:function(){null!==l&&void 0!==l&&l.id&&window.open("".concat(window.location.origin,"/pipeline_modelview/web/monitoring/").concat(r))}}];return(0,i.useEffect)((function(){s&&s.forEach((function(n){Object.keys(n).length>0&&e((0,b.u6)(!0))}))}),[s]),(0,v.jsxs)(fe,{shrink:!0,styles:me.editorToolStyle,children:[(0,v.jsx)(E.X,{id:"authoring-page-toolbar",styles:me.commandBarStyle,items:u}),(0,v.jsx)(t.K,{horizontal:!0,verticalAlign:"center",className:me.autoSavedTips,style:{visibility:r?"visible":"hidden"},children:o?(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(a.J,{iconName:d?"AlertSolid":"SkypeCircleCheck",styles:{root:{color:d?"#e95f39":"#8cb93c",marginRight:5}}}),d?"\u672a\u4fdd\u5b58":"\u5df2\u4fdd\u5b58"]}):(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(C.$,{styles:{root:{marginRight:5}},size:S.E.small}),"\u4fdd\u5b58\u4e2d"]})})]})},ge=t.K.Item,ve=function(){var e=(0,x.T)();return(0,i.useEffect)((function(){e((0,b.e4)())}),[]),(0,v.jsx)(ge,{className:"flow-editor",styles:{root:{flexGrow:1,flexShrink:1,background:"#f4f4f4",overflow:"hidden",display:"flex",flexDirection:"column"}},children:(0,v.jsxs)(t.K,{grow:1,children:[(0,v.jsx)(pe,{}),(0,v.jsx)(he,{}),(0,v.jsx)(te,{})]})})},ye=o(54039),be=o(2972),je=o(4026),we=o(34390),Ce={get:function(e){var n=window.localStorage.getItem(e);return n&&n.match(/^(\{|\[).*(?=[}\]])/)?JSON.parse(n):n||""},set:function(e,n){window.localStorage.setItem(e,"string"===typeof n?n:JSON.stringify(n))}},Se={calloutContent:(0,h.y0)({display:"flex",flexFlow:"column nowrap",width:"360px",height:"auto",boxSizing:"border-box",maxHeight:"inherit",padding:"16px 0px",fontSize:"12px",background:"#fff",borderRadius:"2px"}),moduleDetailItemStyle:(0,h.y0)({fontSize:"12px",padding:"0 16px",overflowX:"visible",overflowY:"hidden"}),moduleDetailTitle:(0,h.y0)({padding:"0px 16px",fontWeight:600,fontSize:"14px",lineHeight:"1",marginTop:"0px",marginBottom:"8px"}),moduleDetailLabel:(0,h.y0)({fontSize:"12px",fontWeight:"bold",lineHeight:"16px",color:"rgb(89, 89, 89)",padding:"0px",margin:"0px 0px 4px"}),moduleDetailBody:(0,h.y0)({lineHeight:"14px",marginBottom:"22px",p:{margin:"0",padding:"0"}}),moduleButton:(0,h.y0)({display:"flex",justifyContent:"center",alignItems:"center"})},ke=t.K.Item,Ne=function(){var e,n=(0,x.T)(),o=(0,x.C)(xe.p),i=(0,x.C)(xe.b2),l=(0,x.C)(xe.H6),r=function(e){n((0,xe.DH)("mouseenter"!==e.type))};return(0,v.jsx)(be.U,{gapSpace:-10,hidden:o,hideOverflow:!0,calloutMaxHeight:480,isBeakVisible:!1,preventDismissOnLostFocus:!0,target:{current:i},directionalHint:12,children:(0,v.jsxs)(t.K,{className:Se.calloutContent,onMouseEnter:r,onMouseLeave:r,children:[(0,v.jsx)(ke,{children:(0,v.jsx)("h3",{className:Se.moduleDetailTitle,children:l.name})}),(0,v.jsx)(ke,{grow:1,shrink:1,className:Se.moduleDetailItemStyle,children:(0,v.jsxs)("div",{children:[(0,v.jsx)(W._,{title:"Description",className:Se.moduleDetailLabel,children:"\u63cf\u8ff0"}),(0,v.jsx)("div",{className:Se.moduleDetailBody,children:(0,v.jsx)("p",{children:l.describe})})]})}),(0,v.jsx)(ke,{grow:1,shrink:1,className:Se.moduleDetailItemStyle,children:(0,v.jsxs)("div",{children:[(0,v.jsx)(W._,{title:"Description",className:Se.moduleDetailLabel,children:"\u521b\u5efa\u4eba"}),(0,v.jsx)("div",{className:Se.moduleDetailBody,children:(0,v.jsx)("p",{children:l.createdBy})})]})}),(0,v.jsx)(ke,{grow:1,shrink:1,className:Se.moduleDetailItemStyle,children:(0,v.jsxs)("div",{children:[(0,v.jsx)(W._,{title:"Description",className:Se.moduleDetailLabel,children:"\u955c\u50cf"}),(0,v.jsx)("div",{className:Se.moduleDetailBody,children:(0,v.jsx)("p",{children:l.imagesName})})]})}),(0,v.jsx)(ke,{grow:1,shrink:1,className:Se.moduleDetailItemStyle,children:(0,v.jsxs)("div",{children:[(0,v.jsx)(W._,{title:"Description",className:Se.moduleDetailLabel,children:"\u4e0a\u6b21\u4fee\u6539\u65f6\u95f4"}),(0,v.jsx)("div",{className:Se.moduleDetailBody,children:(0,v.jsx)("p",{children:l.lastChanged})})]})}),(0,v.jsx)(ke,{grow:1,shrink:1,className:Se.moduleDetailItemStyle,children:(0,v.jsxs)("div",{children:[(0,v.jsx)(W._,{title:"Description",className:Se.moduleDetailLabel,children:"\u7248\u672c"}),(0,v.jsx)("div",{className:Se.moduleDetailBody,children:(0,v.jsx)("p",{children:l.version})})]})}),null!==l&&void 0!==l&&null!==(e=l.expand)&&void 0!==e&&e.help_url?(0,v.jsx)(ke,{grow:1,shrink:1,className:Se.moduleButton,children:(0,v.jsx)(c.K,{onClick:function(){window.open(l.expand.help_url)},children:"\u914d\u7f6e\u6587\u6863"})}):null]})})},Le={moduleItem:(0,h.y0)({width:"100%",userSelect:"none",cursor:"pointer"}),moduleListModuleCard:(0,h.y0)({margin:"8px 16px",border:"1px solid rgb(234, 234, 234)",background:"rgb(248, 248, 248)",color:"rgb(55, 55, 55)",borderRadius:"2px",padding:"8px",display:"flex",fontSize:"12px",flexDirection:"column","&:hover":{backgroundColor:"#eee"},"> div":{pointerEvents:"none",display:"flex",flexDirection:"row",flexGrow:1,alignItems:"center","> header":{flexGrow:1,color:"rgb(0, 0, 0)",fontWeight:600,fontSize:"12px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",lineHeight:"16px"},"> summary":{flexGrow:1,color:"rgb(55, 55, 55)",fontSize:"12px"}}})},_e=function(e){var n=(0,x.T)(),o=(0,i.useState)(e.model),t=(0,l.Z)(o,2),r=t[0],s=t[1],d=function(e){"mouseenter"===e.type&&n((0,xe.VF)(e.target)),n((0,xe.DH)("mouseenter"!==e.type)),n((0,xe.rn)(r))};return(0,i.useEffect)((function(){s(e.model)}),[e.model]),(0,v.jsx)("div",{className:Le.moduleItem,children:(0,v.jsx)("div",{className:"module-card-with-hover-wrap",children:(0,v.jsx)("div",{className:"module-card-content-wrap",children:(0,v.jsxs)("div",{className:Le.moduleListModuleCard,onMouseEnter:d,onMouseLeave:d,onMouseDown:function(){n((0,xe.DH)(!0))},onDragStart:function(e){e.dataTransfer.setData("application/reactflow",JSON.stringify(r)),e.dataTransfer.effectAllowed="move"},draggable:!0,children:[(0,v.jsxs)("div",{children:[(0,v.jsx)(a.J,{iconName:"Database",styles:{root:{marginRight:"4px",lineHeight:"16px"}}}),(0,v.jsx)("header",{children:r.name})]}),(0,v.jsx)("div",{children:(0,v.jsx)("summary",{children:(0,v.jsx)("span",{children:r.describe})})})]})})})})},Ie={moduleItem:(0,h.y0)({width:"100%",userSelect:"none",cursor:"pointer"}),moduleListModuleCard:(0,h.y0)({margin:"4px 8px",border:"1px solid rgb(234, 234, 234)",background:"rgb(248, 248, 248)",color:"rgb(55, 55, 55)",borderRadius:"2px",padding:"5px 8px",display:"flex",fontSize:"12px",flexDirection:"column","&:hover":{backgroundColor:"#eee"},"> div":{pointerEvents:"none",display:"flex",flexDirection:"row",flexGrow:1,alignItems:"center","> header":{flexGrow:1,color:"rgb(0, 0, 0)",fontWeight:600,fontSize:"12px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",lineHeight:"16px"},"> summary":{flexGrow:1,color:"rgb(55, 55, 55)",fontSize:"12px"}}})},De=function(e){var n=(0,i.useState)(e.model),o=(0,l.Z)(n,2),t=o[0],r=o[1];return(0,i.useEffect)((function(){r(e.model)}),[e.model]),(0,v.jsx)("div",{className:Ie.moduleItem,children:(0,v.jsx)("div",{className:"module-card-with-hover-wrap",children:(0,v.jsx)("div",{className:"module-card-content-wrap",children:(0,v.jsxs)("div",{className:Ie.moduleListModuleCard,onClick:e.onClick,children:[(0,v.jsxs)("div",{children:[(0,v.jsx)(a.J,{iconName:"Database",styles:{root:{marginRight:"4px",lineHeight:"16px"}}}),(0,v.jsx)("header",{children:t.name})]}),(0,v.jsx)("div",{children:(0,v.jsx)("summary",{children:(0,v.jsx)("span",{children:t.describe})})})]})})})})},Te={"::-webkit-scrollbar":{width:4},"::-webkit-scrollbar-thumb":{minHeight:"15px",border:"6px solid transparent",backgroundClip:"padding-box",backgroundColor:"rgb(200, 200, 200)"}},Ze={showModuleTree:(0,h.y0)({width:"320px",height:"100%",transition:"all 0.35s ease 0s",overflowX:"hidden",visibility:"visible"}),hideModuleTree:(0,h.y0)({width:"0px",height:"100%",transition:"width 0.35s ease 0s",overflowX:"hidden",visibility:"hidden"}),treeContainer:(0,h.y0)({width:"320px",boxSizing:"border-box",height:"100%",display:"flex",flexDirection:"column",borderRight:"1px solid rgb(234, 234, 234)",backgroundColor:"#fff"}),searchBoxStyle:(0,h.y0)({margin:"12px 16px",padding:"1px 0px",color:"rgb(1, 92, 218)",lineHeight:"32px",minHeight:"32px",flexGrow:"1"}),searchCallout:(0,h.y0)({".ms-Callout-main":(0,T.Z)({overflowY:"overlay",willChange:"transform"},Te)}),searchListStyle:(0,h.y0)({width:"287px",padding:"8px 0"}),summaryStyle:(0,h.y0)({display:"flex",justifyContent:"space-between",alignItems:"center",padding:"8px 16px",borderTop:"1px solid rgb(218, 218, 218)"}),moduleTreeStyle:(0,h.y0)({position:"relative",display:"flex",flexDirection:"column",overflowX:"hidden",overflowY:"auto",flexGrow:"1"}),moduleTreeBody:(0,h.y0)({position:"relative",height:"100%"}),listIconStyle:(0,h.y0)({display:"inline-flex",fontSize:"12px",lineHeight:"12px",marginRight:"4px",height:"6px",color:"rgb(55, 55, 55)",userSelect:"none"}),spinnerContainer:(0,h.y0)({width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"}),moduleListStyle:(0,h.y0)((0,T.Z)({padding:0,margin:"0 auto",overflowY:"overlay",height:"100%",willChange:"transform"},Te)),moduleListItem:(0,h.y0)({listStyle:"none",outline:"none"}),itemFolderNode:(0,h.y0)({display:"flex",alignItems:"center",cursor:"pointer",padding:"7px 15px",border:"1px solid transparent",height:16,fontFamily:"Segoe UI,sans-serif",fontSize:12,lineHeight:16,fontWeight:600,color:"black","&:hover":{backgroundColor:"#eaeaea"}})},Oe=t.K.Item,ze=[{color:"rgba(0,120,212,1)",bg:"rgba(0,120,212,0.02)"},{color:"rgba(0,170,200,1)",bg:"rgba(0,170,200,0.02)"},{color:"rgba(0,200,153,1)",bg:"rgba(0,200,153,0.02)"},{color:"rgba(0,6,200,1)",bg:"rgba(0,6,200,0.02)"},{color:"rgba(212,65,0,1)",bg:"rgba(212,65,0,0.02)"},{color:"rgba(212,176,0,1)",bg:"rgba(212,176,0,0.02)"}],Be=function(){var e=(0,x.T)(),n=(0,x.C)(xe.RU),o=(0,i.useState)(new Set),s=(0,l.Z)(o,2),d=s[0],c=s[1],u=(0,i.useState)(new Map),p=(0,l.Z)(u,2),m=p[0],h=p[1],g=(0,i.useState)(0),y=(0,l.Z)(g,2),b=y[0],j=y[1],w=(0,i.useState)(!1),k=(0,l.Z)(w,2),_=k[0],I=k[1],D=(0,i.useState)(!1),T=(0,l.Z)(D,2),Z=T[0],O=T[1],z=(0,i.useState)(new Map),B=(0,l.Z)(z,2),H=B[0],E=B[1],R=function(e){var n=new Map,o=0;e.forEach((function(e){if("Release"===e.version){o+=1;var i={id:e.id,args:e.args?JSON.parse(e.args):{},name:e.name,version:e.version,describe:e.describe,imagesName:e.images.name,createdBy:e.created_by.username,lastChanged:e.changed_on,expand:JSON.parse(e.expand),color:ze[e.project.id%ze.length]};n.has(e.project.id)?n.get(e.project.id).children.push(i):n.set(e.project.id,{id:e.project.id,title:e.project.name,children:[i]})}})),j(o),h(n)},W=function(){I(!0),j(0),N.Z.job_template_modelview().then((function(e){if(0===(null===e||void 0===e?void 0:e.status)&&"success"===(null===e||void 0===e?void 0:e.message)){R(null===e||void 0===e?void 0:e.result.data);var n=Date.now();Ce.set("job_template",{update:n,value:null===e||void 0===e?void 0:e.result.data,expire:864e5})}})).catch((function(n){var o,i;n.response&&e((0,L.L$)({msg:null===(o=n.response)||void 0===o||null===(i=o.data)||void 0===i?void 0:i.message}))})).finally((function(){I(!1)}))};return(0,i.useEffect)((function(){var e=Ce.get("job_template");e&&Date.now()-(null===e||void 0===e?void 0:e.update)<(null===e||void 0===e?void 0:e.expire)?R(e.value):W()}),[]),(0,v.jsxs)(Oe,{shrink:!0,children:[(0,v.jsx)("div",{className:n?Ze.showModuleTree:Ze.hideModuleTree,children:(0,v.jsxs)("div",{className:Ze.treeContainer,children:[(0,v.jsxs)(t.K,{horizontal:!0,horizontalAlign:"space-between",children:[(0,v.jsx)(ye.R,{placeholder:"\u641c\u7d22\u6a21\u677f\u540d\u79f0\u6216\u63cf\u8ff0",role:"search",className:Ze.searchBoxStyle,onChange:f((function(e,n){if(n){console.log(n);var o=new Map;m.forEach((function(e,i){var t=e.children;t.length>0&&t.forEach((function(e){var t,l;((null===e||void 0===e||null===(t=e.name)||void 0===t?void 0:t.indexOf(n))>-1||(null===e||void 0===e||null===(l=e.describe)||void 0===l?void 0:l.indexOf(n))>-1)&&(o.has(i)?o.set(i,o.get(i).concat(e)):o.set(i,[e]))}))})),E(o),O(!0)}else O(!1)}),300),onBlur:function(){setTimeout((function(){O(!1)}),300)}}),(0,v.jsx)(be.U,{className:Ze.searchCallout,isBeakVisible:!1,preventDismissOnLostFocus:!0,hidden:!Z,calloutMaxHeight:300,target:".ms-SearchBox",children:(0,v.jsxs)(t.K,{className:Ze.searchListStyle,children:[0===Array.from(H.keys()).length?(0,v.jsx)("div",{style:{textAlign:"center"},children:"\u6682\u65e0\u5339\u914d"}):"",Array.from(H.keys()).map((function(e){var n=H.get(e);return(0,v.jsx)(i.Fragment,{children:null===n||void 0===n?void 0:n.map((function(n){return(0,v.jsx)(De,{model:n,onClick:function(){console.log(d),d.has(e)||(d.add(e),c(new Set(d)))}},n.id)}))},e)}))]})})]}),(0,v.jsxs)("div",{className:Ze.summaryStyle,children:[(0,v.jsxs)(je.x,{children:[b," assets in total"]}),(0,v.jsx)(we.k,{children:(0,v.jsx)(r.h,{iconProps:{iconName:"Refresh"},onClick:function(){_||W()}})})]}),(0,v.jsx)("div",{className:Ze.moduleTreeStyle,children:(0,v.jsx)("div",{className:Ze.moduleTreeBody,children:_?(0,v.jsx)(t.K,{className:Ze.spinnerContainer,children:(0,v.jsx)(C.$,{size:S.E.large,label:"Loading"})}):(0,v.jsx)("ul",{className:Ze.moduleListStyle,children:Array.from(m.keys()).map((function(e){var n,o=m.get(e);return(0,v.jsxs)("li",{className:Ze.moduleListItem,children:[(0,v.jsx)("div",{role:"button",onClick:function(){d.has(e)?d.delete(e):d.add(e),c(new Set(d))},children:(0,v.jsxs)("div",{className:Ze.itemFolderNode,children:[(0,v.jsx)(a.J,{iconName:d.has(e)?"FlickUp":"FlickLeft",styles:{root:{alignItems:d.has(e)?"baseline":"center"}},className:Ze.listIconStyle}),o.title]})}),d.has(e)?(0,v.jsx)("ul",{role:"group",style:{paddingLeft:"0px"},children:null===(n=o.children)||void 0===n?void 0:n.map((function(e){return(0,v.jsx)("li",{className:Ze.moduleListItem,children:(0,v.jsx)("div",{role:"button",children:(0,v.jsx)(_e,{model:e})})},e.id)}))}):null]},e)}))})})})]})}),(0,v.jsx)(Ne,{})]})},He={root:{width:"100%",height:"100%",overflow:"hidden"}},Ee=function(){return(0,v.jsxs)(t.K,{className:"app-container",horizontal:!0,styles:He,children:[(0,v.jsx)(Be,{}),(0,v.jsx)(ve,{}),(0,v.jsx)(y,{})]})}}}]); \ No newline at end of file diff --git a/myapp/static/appbuilder/vison/static/js/main.da732006.js b/myapp/static/appbuilder/vison/static/js/main.ae22b537.js similarity index 99% rename from myapp/static/appbuilder/vison/static/js/main.da732006.js rename to myapp/static/appbuilder/vison/static/js/main.ae22b537.js index dc2659a7..32939f03 100644 --- a/myapp/static/appbuilder/vison/static/js/main.da732006.js +++ b/myapp/static/appbuilder/vison/static/js/main.ae22b537.js @@ -1,2 +1,2 @@ -/*! For license information please see main.da732006.js.LICENSE.txt */ -!function(){var e={67487:function(e,t,n){"use strict";var r=n(74569),o=n.n(r),i=n(9702).parse(document.cookie);i.myapp_username,i.t_uid,i.km_uid;o().defaults.baseURL=window.location.origin,o().defaults.headers=Object.assign(o().defaults.headers,{"Content-Type":"application/json"}),o().interceptors.response.use((function(e){return e}),(function(e){return Promise.reject(e)}));var a={get:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(r,i){var a={timeout:1e4,responseType:"json"};Object.assign(a,n),o().get(e,a).then((function(e){r(e.data)})).catch((function(e){console.log(e,"888"),t._errHandle(e),i(e)}))}))},delete:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(r,i){var a={timeout:1e4,responseType:"json"};Object.assign(a,n),o().delete(e,a).then((function(e){r(e.data)})).catch((function(e){t._errHandle(e),i(e)}))}))},post:function(e){var t=this,n=e.url,r=e.data,i=e.options;return new Promise((function(e,a){var u={timeout:1e4,responseType:"json"};Object.assign(u,i),o().post(n,r,u).then((function(t){e(t.data)})).catch((function(e){console.log(e,"---777777777777"),t._errHandle(e),a(e)}))}))},put:function(e){var t=this,n=e.url,r=e.data,i=e.options;return new Promise((function(e,a){var u={timeout:1e4,responseType:"json"};Object.assign(u,i),o().put(n,r,u).then((function(t){e(t.data)})).catch((function(e){t._errHandle(e),a(e)}))}))},_errHandle:function(e){e.response?console.error(e.response):e.request?console.error(e.request):console.error("Error",e.message),console.error(e.config)}};t.Z=a},31776:function(e,t,n){"use strict";var r=n(18489),o=n(67487),i="http://11.150.126.122:8081/api/",a="http://11.161.238.209:8080/api/",u={job_template_modelview:function(){return o.Z.get("/job_template_modelview/api/",{params:{form_data:JSON.stringify({columns:["project","name","version","describe","images","workdir","entrypoint","args","demo","env","hostAliases","privileged","accounts","created_by","changed_by","created_on","changed_on","expand"],str_related:0})}})},project_all:function(){return o.Z.get("/project_modelview/api/")},project_modelview:function(){return o.Z.get("/project_modelview/org/api/")},pipeline_modelview_add:function(e){return o.Z.post({url:"/pipeline_modelview/api/",data:e})},pipeline_modelview_demo:function(){return o.Z.get("/pipeline_modelview/demo/list/")},pipeline_modelview_list:function(){return o.Z.get("/pipeline_modelview/my/list/")},pipeline_modelview_all:function(e){return o.Z.get("/pipeline_modelview/api/?form_data=".concat(e))},pipeline_modelview_detail:function(e){return o.Z.get("/pipeline_modelview/api/".concat(e))},pipeline_modelview_delete:function(e){return o.Z.delete("/pipeline_modelview/api/".concat(e))},pipeline_modelview_edit:function(e,t){return o.Z.put({url:"/pipeline_modelview/api/".concat(e),data:t})},pipeline_modelview_run:function(e){return o.Z.post({url:"/pipeline_modelview/api/run_pipeline/".concat(e)})},pipeline_modelview_copy:function(e){return o.Z.post({url:"/pipeline_modelview/api/copy_pipeline/".concat(e)})},task_modelview_add:function(e,t){return o.Z.post({url:"/task_modelview/api/",data:(0,r.Z)((0,r.Z)({},t),{},{filters:[{col:"pipeline",opr:"rel_o_m",value:+e}]})})},task_modelview_get:function(e){return o.Z.get("/task_modelview/api/".concat(e))},task_modelview_del:function(e){return o.Z.delete("/task_modelview/api/".concat(e))},task_modelview_edit:function(e,t,n){return o.Z.put({url:"/task_modelview/api/".concat(t),data:(0,r.Z)((0,r.Z)({},n),{},{filters:[{col:"pipeline",opr:"rel_o_m",value:+e}]})})},get_strategys:function(e){return o.Z.post({url:"".concat(i,"get_strategys"),data:(0,r.Z)((0,r.Z)({},e),{},{opr:"get_strategys"})})},get_components_mark:function(e){return o.Z.post({url:"".concat(i,"get_components_mark"),data:{components:e,opr:"get_components_mark"}})},add_strategy:function(e){return o.Z.post({url:"".concat(i,"add_strategy"),data:{data:(0,r.Z)({},e),opr:"add_strategy"}})},register_recall_component:function(e){return o.Z.post({url:"".concat(i,"register_recall_component"),data:(0,r.Z)((0,r.Z)({},e),{},{opr:"register_recall_component"})})},register_assistant_component:function(e){return o.Z.post({url:"".concat(i,"register_assistant_component"),data:(0,r.Z)((0,r.Z)({},e),{},{opr:"register_assistant_component"})})},get_components_type:function(e){return o.Z.post({url:"".concat(i,"get_components_type"),data:{components:[e],opr:"get_components_type"}})},register_assistant_component_type:function(e){return o.Z.post({url:"".concat(i,"register_assistant_component_type"),data:(0,r.Z)((0,r.Z)({},e),{},{opr:"register_assistant_component_type"})})},get_components_info:function(e){return o.Z.post({url:"".concat(i,"get_components_info"),data:(0,r.Z)((0,r.Z)({},e),{},{opr:"get_components_info"})})},modify_strategy:function(e){return o.Z.post({url:"".concat(i,"modify_strategy"),data:{data:(0,r.Z)({},e),opr:"modify_strategy"}})},mod_component_info:function(e){return o.Z.post({url:"".concat(i,"mod_component_info"),data:(0,r.Z)((0,r.Z)({},e),{},{opr:"mod_component_info"})})},config_check:function(e){return o.Z.post({url:"".concat(i,"config_check"),data:(0,r.Z)((0,r.Z)({},e),{},{opr:"config_check"})})},rollback:function(e){return o.Z.post({url:"".concat(i,"rollback"),data:{strategy_id:e,opr:"rollback"}})},test_release:function(e){return o.Z.post({url:"".concat(i,"test_release"),data:{strategy_id:e,opr:"test_release"}})},real_release:function(e){return o.Z.post({url:"".concat(i,"real_release"),data:{strategy_id:e,opr:"real_release"}})},get_component_config:function(e){return o.Z.post({url:"".concat(i,"get_component_config"),data:{component_mark:e,component:"recall",opr:"get_component_config",component_type:""}})},get_component_config2:function(e,t){return o.Z.post({url:"".concat(i,"get_component_config"),data:{component_mark:"",component:t,opr:"get_component_config",component_type:e}})},featureRegisterScenePostQuest:function(e){return o.Z.post({url:"".concat(a,"featureRegisterScene"),data:{data:(0,r.Z)({},e)}})},featureRegisterModelConfigPostQuest:function(e){return o.Z.post({url:"".concat(a,"featureRegisterModelConfig"),data:{data:(0,r.Z)({},e)}})},featureRegisterFeProcConfigQUEST:function(e){return o.Z.post({url:"".concat(a,"featureRegisterFeProcConfig"),data:(0,r.Z)({},e)})},featureRegisterModelServRouterPostQuest:function(e){return o.Z.post({url:"".concat(a,"featureRegisterModelServRouter"),data:{data:(0,r.Z)({},e)}})},featureUpdateModelConfigPostQuest:function(e){return o.Z.post({url:"".concat(a,"featureUpdateModelConfig"),data:{data:(0,r.Z)({},e)}})},featureRegisterFeatureServRouterPostQuest:function(e){return o.Z.post({url:"".concat(a,"featureRegisterFeatureServRouter"),data:{data:(0,r.Z)({},e)}})},featureKVDataDisplayPostQuest:function(e){return o.Z.post({url:"".concat(a,"featureKVDataDisplay"),data:(0,r.Z)({},e)})},featureRegisterOpPostQuest:function(e){return o.Z.post({url:"".concat(a,"featureRegisterOp"),data:{data:(0,r.Z)({},e)}})},featureUpdateSetPostQuest:function(e){return o.Z.post({url:"".concat(a,"featureUpdateSet"),data:{data:(0,r.Z)({},e)}})},featureUpdateInputItemPost:function(e){return o.Z.post({url:"".concat(a,"featureUpdateInputItem"),data:(0,r.Z)({},e)})},featureUpdateOpItemPost:function(e){return o.Z.post({url:"".concat(a,"featureUpdateOpItem"),data:(0,r.Z)({},e)})},featureRegisterIsomerismFeatureFeatureInfoPostQuest:function(e){return o.Z.post({url:"".concat(a,"featureRegisterIsomerismFeatureFeatureInfo"),data:{data:(0,r.Z)({},e)}})},featureSceneDisplayGetQuest:function(e){return o.Z.get("".concat(a,"featureSceneDisplay?id=").concat(e))},featureFeProcConfigDetailDisplayGetQuest:function(e){return o.Z.get("".concat(a,"featureFeProcConfigDetailDisplay?feId=").concat(e))},featureFeProcConfigDisplayGetQuest:function(e,t){return o.Z.get("".concat(a,"featureFeProcConfigDisplay?scene_id=").concat(e,"&table=").concat(t))},featureDisplaySetGetQuest:function(e,t,n){return o.Z.get("".concat(a,"featureDisplaySet?featureSetId=").concat(e,"&isomerism=").concat(t,"&isFeatureServRouter=").concat(n))},featureDisplayOpGetQuest:function(){return o.Z.get("".concat(a,"featureDisplayOp"))},featureScenePagesDisplayPostQuest:function(e,t,n,r){return o.Z.get("".concat(a,"featureScenePagesDisplay?p=").concat(e,"&s=").concat(t,"&rtx=").concat(n,"&business=").concat(r))},featureUpdateIsomerismFeatureFeatureInfoQUEST:function(e){return o.Z.post({url:"".concat(a,"featureUpdateIsomerismFeatureFeatureInfo"),data:{data:(0,r.Z)({},e)}})},featureBuildConfigurationGetQuest:function(e,t){return o.Z.get("".concat(a,"featureBuildConfiguration?sceneId=").concat(e,"&versionDesc=").concat(t))}};t.Z=u},64011:function(e,t,n){"use strict";n.d(t,{L$:function(){return s},V0:function(){return f},zr:function(){return d}});var r=n(80964),o=n(9702).parse(document.cookie),i=o.myapp_username,a=o.t_uid,u=o.km_uid,l={errMsg:null,userName:i||a||u},c=(0,r.oM)({name:"element",initialState:l,reducers:{updateErrMsg:function(e,t){e.errMsg=t.payload}}}),s=c.actions.updateErrMsg,f=function(e){return e.app.errMsg},d=function(e){return e.app.userName};t.ZP=c.reducer},16097:function(e,t,n){"use strict";n.d(t,{y7:function(){return i},sW:function(){return a},vh:function(){return u},ld:function(){return l},OA:function(){return c},PF:function(){return s}});var r=(0,n(80964).oM)({name:"element",initialState:{showEditor:!1,key:"",value:""},reducers:{updateShowEditor:function(e,t){e.showEditor=t.payload},updateKeyValue:function(e,t){e.key=t.payload.key,e.value=t.payload.value},updateValue:function(e,t){e.value=t.payload}}}),o=r.actions,i=o.updateShowEditor,a=o.updateValue,u=o.updateKeyValue,l=function(e){return e.editor.showEditor},c=function(e){return e.editor.key},s=function(e){return e.editor.value};t.ZP=r.reducer},42081:function(e,t,n){"use strict";n.d(t,{OV:function(){return i},pM:function(){return a},hr:function(){return u},tT:function(){return l}});var r=(0,n(80964).oM)({name:"element",initialState:{elements:[],selected:[]},reducers:{updateElements:function(e,t){e.elements=t.payload},updateSelected:function(e,t){e.selected=t.payload}}}),o=r.actions,i=o.updateElements,a=o.updateSelected,u=function(e){return e.element.elements},l=function(e){return e.element.selected};t.ZP=r.reducer},48636:function(e,t,n){"use strict";n.d(t,{ZP:function(){return F},Jd:function(){return L},e4:function(){return O},JO:function(){return P},oL:function(){return T},td:function(){return E},mg:function(){return C},B5:function(){return x},H6:function(){return S},Bn:function(){return w},cJ:function(){return _},N1:function(){return k},v_:function(){return g},u6:function(){return v}});var r=n(18489),o=n(80964),i=n(64011),a=n(42081),u=n(31776);function l(e,t){var n={};if(""!==e){var r=new RegExp("(^|&)"+e+"=([^&]*)(&|$)","i"),o=t.match(r);n[e]=null!==o?o[2]:""}else{t.split("&").forEach((function(e){var t=e.split("=");n[t[0]]=t[1]}))}return n}var c,s=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r={},o=(t=decodeURIComponent(t||window.location.href)).indexOf("?"),i=t.indexOf("#");if(-1===i&&(i=t.length),i!==t.length&&n){var a=t.substring(i+1),u=a.indexOf("?");-1!==u&&(a=a.substring(u+1),Object.assign(r,l(e,a)))}if(-1!==o){var c=t.substring(o+1,i);Object.assign(r,l(e,c))}return r},f={pipelineId:(null===(c=s("pipeline_id",window.location.href,!1))||void 0===c?void 0:c.pipeline_id)||"",info:{},saved:!0,changed:{},editing:!1,pipelineList:[],all:void 0},d=(0,o.oM)({name:"pipeline",initialState:f,reducers:{updatePipelineId:function(e,t){e.pipelineId=t.payload},updateInfo:function(e,t){e.info=t.payload},updateSaved:function(e,t){e.saved=t.payload},updateChanged:function(e,t){e.changed=t.payload},updateEditing:function(e,t){e.editing=t.payload},updatePipelineList:function(e,t){e.pipelineList=t.payload},updateAll:function(e,t){e.all=t.payload}}}),p=d.actions,h=(p.updatePipelineId,p.updateInfo),m=p.updateSaved,g=p.updateChanged,v=p.updateEditing,y=p.updatePipelineList,b=p.updateAll,w=function(e){return e.pipeline.pipelineId},S=function(e){return e.pipeline.info},k=function(e){return e.pipeline.saved},C=function(e){return e.pipeline.changed},x=function(e){return e.pipeline.editing},_=function(e){return e.pipeline.pipelineList},E=function(e){return e.pipeline.all},P=function(){return function(e){u.Z.pipeline_modelview_list().then((function(t){if(0===(null===t||void 0===t?void 0:t.status)){var n=t.result.map((function(e){return{id:e.id,name:e.name,describe:e.describe,changed_on:e.changed_on,project_id:e.project_id}}));e(y(n.sort((function(e,t){return new Date(t.changed_on).getTime()-new Date(e.changed_on).getTime()}))))}}))}},L=function(e){return function(t){t(b(void 0)),u.Z.pipeline_modelview_all(JSON.stringify(e)).then((function(e){if(0===(null===e||void 0===e?void 0:e.status)){var n=e.result.data.map((function(e){return{id:e.id,name:e.pipeline_url,describe:e.project.describe,changed_on:e.project.changed_on,project_id:e.project.id}}));t(b(n.sort((function(e,t){return new Date(t.changed_on).getTime()-new Date(e.changed_on).getTime()}))))}})).catch((function(e){var n,r;e.response&&t((0,i.L$)({msg:(null===e||void 0===e||null===(n=e.response)||void 0===n||null===(r=n.data)||void 0===r?void 0:r.message)||"\u83b7\u53d6\u5217\u8868\u5931\u8d25"}))}))}},O=function(){return function(e,t){var n=t(),r=w(n);r&&u.Z.pipeline_modelview_detail(r).then((function(t){0===(null===t||void 0===t?void 0:t.status)&&e(h(null===t||void 0===t?void 0:t.result))})).catch((function(t){var n,r;t.response&&e((0,i.L$)({msg:(null===t||void 0===t||null===(n=t.response)||void 0===n||null===(r=n.data)||void 0===r?void 0:r.message)||"\u83b7\u53d6\u6d41\u6c34\u7ebf\u4fe1\u606f\u5931\u8d25"}))}))}},T=function(){return function(e,t){var n=t(),o=w(n);k(n)&&o&&(e(m(!1)),u.Z.pipeline_modelview_edit(o,(0,r.Z)((0,r.Z)({},C(n)),{},{expand:JSON.stringify((0,a.hr)(n))})).then((function(t){0===(null===t||void 0===t?void 0:t.status)&&(e(h(null===t||void 0===t?void 0:t.result)),e(g({})),e(v(!1)))})).catch((function(t){t.response&&e((0,i.L$)({msg:t.response.data.message}))})).finally((function(){e(m(!0))})))}},F=d.reducer},65223:function(e,t,n){"use strict";n.d(t,{ZN:function(){return o},RU:function(){return i}});var r=(0,n(80964).oM)({name:"setting",initialState:{show:!1},reducers:{toggle:function(e){e.show=!e.show}}}),o=r.actions.toggle,i=function(e){return e.setting.show};t.ZP=r.reducer},57217:function(e,t,n){"use strict";n.d(t,{hs:function(){return f},Xt:function(){return d},kQ:function(){return h},BX:function(){return m},NH:function(){return g},Aj:function(){return v},C:function(){return y}});var r=n(33032),o=n(84322),i=n.n(o),a=n(80964),u=n(31776),l=n(48636),c=(0,a.oM)({name:"task",initialState:{taskList:null,loading:!1,taskId:0},reducers:{updateTaskList:function(e,t){if(e.taskList)e.taskList=e.taskList.set(t.payload.id,t.payload.changed);else{var n=new Map;n.set(t.payload.id,t.payload.changed),e.taskList=n}},updateLoading:function(e,t){e.loading=t.payload},resetTaskList:function(e){e.taskList=new Map},updateTaskId:function(e,t){e.taskId=t.payload}}}),s=c.actions,f=s.updateTaskList,d=s.updateLoading,p=s.resetTaskList,h=s.updateTaskId,m=function(e){return e.task.taskList},g=function(e){return e.task.loading},v=function(e){return e.task.taskId},y=function(){var e=(0,r.Z)(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",function(){var e=(0,r.Z)(i().mark((function e(t,n){var r,o,a,c;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t(d(!0)),r=n(),o=m(r),a=[],o&&o.forEach((function(e,t){Object.keys(e).length>0&&a.push(u.Z.task_modelview_edit((0,l.Bn)(r),t,e))})),e.next=7,Promise.allSettled(a);case 7:return c=e.sent,t(d(!1)),t(p()),e.abrupt("return",c);case 11:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}());case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();t.ZP=c.reducer},51244:function(e,t,n){"use strict";n.d(t,{ZN:function(){return i},DH:function(){return a},VF:function(){return u},rn:function(){return l},RU:function(){return c},p:function(){return s},b2:function(){return f},H6:function(){return d}});var r=(0,n(80964).oM)({name:"template",initialState:{show:!0,callout:!0,current:null,info:{createdBy:"",describe:"",id:69,imagesName:"",lastChanged:"",name:"",version:""}},reducers:{toggle:function(e){e.show=!e.show},updateCallout:function(e,t){e.callout=t.payload},updateCurrent:function(e,t){e.current=t.payload},updateInfo:function(e,t){e.info=t.payload}}}),o=r.actions,i=o.toggle,a=o.updateCallout,u=o.updateCurrent,l=o.updateInfo,c=function(e){return e.template.show},s=function(e){return e.template.callout},f=function(e){return e.template.current},d=function(e){return e.template.info};t.ZP=r.reducer},46765:function(e,t,n){"use strict";function r(e){i!==e&&(i=e)}function o(){return void 0===i&&(i="undefined"!==typeof document&&!!document.documentElement&&"rtl"===document.documentElement.getAttribute("dir")),i}var i;function a(){return{rtl:o()}}n.d(t,{ok:function(){return r},Eo:function(){return a}}),i=o()},79248:function(e,t,n){"use strict";n.d(t,{Y:function(){return s}});var r,o=n(29388),i=0,a=1,u=2,l="undefined"!==typeof navigator&&/rv:11.0/.test(navigator.userAgent),c={};try{c=window}catch(f){}var s=function(){function e(e){this._rules=[],this._preservedRules=[],this._rulesToInsert=[],this._counter=0,this._keyToClassName={},this._onResetCallbacks=[],this._classNameToArgs={},this._config=(0,o.__assign)({injectionMode:a,defaultPrefix:"css",namespace:void 0,cspSettings:void 0},e),this._keyToClassName=this._config.classNameCache||{}}return e.getInstance=function(){if(!(r=c.__stylesheet__)||r._lastStyleElement&&r._lastStyleElement.ownerDocument!==document){var t=(null===c||void 0===c?void 0:c.FabricConfig)||{};r=c.__stylesheet__=new e(t.mergeStyles)}return r},e.prototype.setConfig=function(e){this._config=(0,o.__assign)((0,o.__assign)({},this._config),e)},e.prototype.onReset=function(e){this._onResetCallbacks.push(e)},e.prototype.getClassName=function(e){var t=this._config.namespace;return(t?t+"-":"")+(e||this._config.defaultPrefix)+"-"+this._counter++},e.prototype.cacheClassName=function(e,t,n,r){this._keyToClassName[t]=e,this._classNameToArgs[e]={args:n,rules:r}},e.prototype.classNameFromKey=function(e){return this._keyToClassName[e]},e.prototype.getClassNameCache=function(){return this._keyToClassName},e.prototype.argsFromClassName=function(e){var t=this._classNameToArgs[e];return t&&t.args},e.prototype.insertedRulesFromClassName=function(e){var t=this._classNameToArgs[e];return t&&t.rules},e.prototype.insertRule=function(e,t){var n=this._config.injectionMode!==i?this._getStyleElement():void 0;if(t&&this._preservedRules.push(e),n)switch(this._config.injectionMode){case a:var r=n.sheet;try{r.insertRule(e,r.cssRules.length)}catch(o){}break;case u:n.appendChild(document.createTextNode(e))}else this._rules.push(e);this._config.onInsertRule&&this._config.onInsertRule(e)},e.prototype.getRules=function(e){return(e?this._preservedRules.join(""):"")+this._rules.join("")+this._rulesToInsert.join("")},e.prototype.reset=function(){this._rules=[],this._rulesToInsert=[],this._counter=0,this._classNameToArgs={},this._keyToClassName={},this._onResetCallbacks.forEach((function(e){return e()}))},e.prototype.resetKeys=function(){this._keyToClassName={}},e.prototype._getStyleElement=function(){var e=this;return this._styleElement||"undefined"===typeof document||(this._styleElement=this._createStyleElement(),l||window.requestAnimationFrame((function(){e._styleElement=void 0}))),this._styleElement},e.prototype._createStyleElement=function(){var e=document.head,t=document.createElement("style");t.setAttribute("data-merge-styles","true");var n=this._config.cspSettings;if(n&&n.nonce&&t.setAttribute("nonce",n.nonce),this._lastStyleElement)e.insertBefore(t,this._lastStyleElement.nextElementSibling);else{var r=this._findPlaceholderStyleTag();r?e.insertBefore(t,r.nextElementSibling):e.insertBefore(t,e.childNodes[0])}return this._lastStyleElement=t,t},e.prototype._findPlaceholderStyleTag=function(){var e=document.head;return e?e.querySelector("style[data-merge-styles]"):null},e}()},74104:function(e,t,n){"use strict";n.d(t,{m:function(){return o}});var r=n(29388);function o(){for(var e=[],t=0;t0){n.subComponentStyles={};var h=n.subComponentStyles,m=function(e){if(i.hasOwnProperty(e)){var t=i[e];h[e]=function(e){return o.apply(void 0,t.map((function(t){return"function"===typeof t?t(e):t})))}}};for(var f in i)m(f)}return n}},54925:function(e,t,n){"use strict";n.d(t,{l:function(){return o}});var r=n(74104);function o(e){for(var t=[],n=1;n=0)a(u.split(" "));else{var l=i.argsFromClassName(u);l?a(l):-1===n.indexOf(u)&&n.push(u)}else Array.isArray(u)?a(u):"object"===typeof u&&o.push(u)}}return a(e),{classes:n,objects:o}}},81166:function(e,t,n){"use strict";n.d(t,{j:function(){return a}});var r=n(46765),o=n(79248),i=n(26435);function a(e){o.Y.getInstance().insertRule("@font-face{"+(0,i.dH)((0,r.Eo)(),e)+"}",!0)}},21199:function(e,t,n){"use strict";n.d(t,{F:function(){return a}});var r=n(46765),o=n(79248),i=n(26435);function a(e){var t=o.Y.getInstance(),n=t.getClassName(),a=[];for(var u in e)e.hasOwnProperty(u)&&a.push(u,"{",(0,i.dH)((0,r.Eo)(),e[u]),"}");var l=a.join("");return t.insertRule("@keyframes "+n+"{"+l+"}",!0),t.cacheClassName(n,l,[],["keyframes",l]),n}},96701:function(e,t,n){"use strict";n.d(t,{Z:function(){return u},I:function(){return l}});var r=n(74104),o=n(52585),i=n(46765),a=n(26435);function u(){for(var e=[],t=0;t-1),isOpera:!!(n&&n.indexOf("opera")>-1),isMs:!(!t||!/rv:11.0/i.test(t.userAgent)&&!/Edge\/\d./i.test(navigator.userAgent))}:{isWebkit:!0,isMoz:!0,isOpera:!0,isMs:!0}}return r}(),o=e[t];if(l[o]){var i=e[t+1];l[o]&&(n.isWebkit&&e.push("-webkit-"+o,i),n.isMoz&&e.push("-moz-"+o,i),n.isMs&&e.push("-ms-"+o,i),n.isOpera&&e.push("-o-"+o,i))}}var s,f=["column-count","font-weight","flex","flex-grow","flex-shrink","fill-opacity","opacity","order","z-index","zoom"];function d(e,t){var n=e[t],r=e[t+1];if("number"===typeof r){var o=f.indexOf(n)>-1,i=n.indexOf("--")>-1,a=o||i?"":"px";e[t+1]=""+r+a}}var p="left",h="right",m=((s={}).left=h,s.right=p,s),g={"w-resize":"e-resize","sw-resize":"se-resize","nw-resize":"ne-resize"};function v(e,t,n){if(e.rtl){var r=t[n];if(!r)return;var o=t[n+1];if("string"===typeof o&&o.indexOf("@noflip")>=0)t[n+1]=o.replace(/\s*(?:\/\*\s*)?\@noflip\b(?:\s*\*\/)?\s*?/g,"");else if(r.indexOf(p)>=0)t[n]=r.replace(p,h);else if(r.indexOf(h)>=0)t[n]=r.replace(h,p);else if(String(o).indexOf(p)>=0)t[n+1]=o.replace(p,h);else if(String(o).indexOf(h)>=0)t[n+1]=o.replace(h,p);else if(m[r])t[n]=m[r];else if(g[o])t[n+1]=g[o];else switch(r){case"margin":case"padding":t[n+1]=function(e){if("string"===typeof e){var t=e.split(" ");if(4===t.length)return t[0]+" "+t[3]+" "+t[2]+" "+t[1]}return e}(o);break;case"box-shadow":t[n+1]=function(e,t){var n=e.split(" "),r=parseInt(n[t],10);return n[0]=n[0].replace(String(r),String(-1*r)),n.join(" ")}(o,0)}}}function y(e){var t=e&&e["&"];return t?t.displayName:void 0}var b=/\:global\((.+?)\)/g;function w(e,t){return e.indexOf(":global(")>=0?e.replace(b,"$1"):0===e.indexOf(":")?t+e:e.indexOf("&")<0?t+" "+e:e}function S(e,t,n,r){void 0===t&&(t={__order:[]}),0===n.indexOf("@")?k([r],t,n=n+"{"+e):n.indexOf(",")>-1?function(e){if(!b.test(e))return e;for(var t=[],n=/\:global\((.+?)\)/g,r=null;r=n.exec(e);)r[1].indexOf(",")>-1&&t.push([r.index,r.index+r[0].length,r[1].split(",").map((function(e){return":global("+e.trim()+")"})).join(", ")]);return t.reverse().reduce((function(e,t){var n=t[0],r=t[1],o=t[2];return e.slice(0,n)+o+e.slice(r)}),e)}(n).split(",").map((function(e){return e.trim()})).forEach((function(n){return k([r],t,w(n,e))})):k([r],t,w(n,e))}function k(e,t,n){void 0===t&&(t={__order:[]}),void 0===n&&(n="&");var r=i.Y.getInstance(),o=t[n];o||(o={},t[n]=o,t.__order.push(n));for(var a=0,u=e;an&&t.push(e.substring(n,o)),n=o+1)}return n10?" (+ "+(ze.length-10)+" more)":"")),Ue=void 0,ze=[]}),2e3)))}var Ve=n(74104),He=n(54925),Ze=n(96701);(0,n(42576).x)("@fluentui/style-utilities","8.2.1"),Ee()},67756:function(e,t,n){"use strict";n.d(t,{j:function(){return k}});var r,o={themeDarker:"#004578",themeDark:"#005a9e",themeDarkAlt:"#106ebe",themePrimary:"#0078d4",themeSecondary:"#2b88d8",themeTertiary:"#71afe5",themeLight:"#c7e0f4",themeLighter:"#deecf9",themeLighterAlt:"#eff6fc",black:"#000000",blackTranslucent40:"rgba(0,0,0,.4)",neutralDark:"#201f1e",neutralPrimary:"#323130",neutralPrimaryAlt:"#3b3a39",neutralSecondary:"#605e5c",neutralSecondaryAlt:"#8a8886",neutralTertiary:"#a19f9d",neutralTertiaryAlt:"#c8c6c4",neutralQuaternary:"#d2d0ce",neutralQuaternaryAlt:"#e1dfdd",neutralLight:"#edebe9",neutralLighter:"#f3f2f1",neutralLighterAlt:"#faf9f8",accent:"#0078d4",white:"#ffffff",whiteTranslucent40:"rgba(255,255,255,.4)",yellowDark:"#d29200",yellow:"#ffb900",yellowLight:"#fff100",orange:"#d83b01",orangeLight:"#ea4300",orangeLighter:"#ff8c00",redDark:"#a4262c",red:"#e81123",magentaDark:"#5c005c",magenta:"#b4009e",magentaLight:"#e3008c",purpleDark:"#32145a",purple:"#5c2d91",purpleLight:"#b4a0ff",blueDark:"#002050",blueMid:"#00188f",blue:"#0078d4",blueLight:"#00bcf2",tealDark:"#004b50",teal:"#008272",tealLight:"#00b294",greenDark:"#004b1c",green:"#107c10",greenLight:"#bad80a"};!function(e){e.depth0="0 0 0 0 transparent",e.depth4="0 1.6px 3.6px 0 rgba(0, 0, 0, 0.132), 0 0.3px 0.9px 0 rgba(0, 0, 0, 0.108)",e.depth8="0 3.2px 7.2px 0 rgba(0, 0, 0, 0.132), 0 0.6px 1.8px 0 rgba(0, 0, 0, 0.108)",e.depth16="0 6.4px 14.4px 0 rgba(0, 0, 0, 0.132), 0 1.2px 3.6px 0 rgba(0, 0, 0, 0.108)",e.depth64="0 25.6px 57.6px 0 rgba(0, 0, 0, 0.22), 0 4.8px 14.4px 0 rgba(0, 0, 0, 0.18)"}(r||(r={}));var i={elevation4:r.depth4,elevation8:r.depth8,elevation16:r.depth16,elevation64:r.depth64,roundedCorner2:"2px",roundedCorner4:"4px",roundedCorner6:"6px"},a=n(81166),u=n(43112),l="'Segoe UI', '"+u.Qm.WestEuropean+"'",c={ar:u.II.Arabic,bg:u.II.Cyrillic,cs:u.II.EastEuropean,el:u.II.Greek,et:u.II.EastEuropean,he:u.II.Hebrew,hi:u.II.Hindi,hr:u.II.EastEuropean,hu:u.II.EastEuropean,ja:u.II.Japanese,kk:u.II.EastEuropean,ko:u.II.Korean,lt:u.II.EastEuropean,lv:u.II.EastEuropean,pl:u.II.EastEuropean,ru:u.II.Cyrillic,sk:u.II.EastEuropean,"sr-latn":u.II.EastEuropean,th:u.II.Thai,tr:u.II.EastEuropean,uk:u.II.Cyrillic,vi:u.II.Vietnamese,"zh-hans":u.II.ChineseSimplified,"zh-hant":u.II.ChineseTraditional,hy:u.II.Armenian,ka:u.II.Georgian};function s(e,t,n){return{fontFamily:n,MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontSize:e,fontWeight:t}}var f=n(81552),d=n(69561);var p,h=n(71847),m="language";var g=function(e){var t=function(e){for(var t in c)if(c.hasOwnProperty(t)&&e&&0===t.indexOf(e))return c[t];return l}(e)+", 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif";return{tiny:s(u.TS.mini,u.lq.regular,t),xSmall:s(u.TS.xSmall,u.lq.regular,t),small:s(u.TS.small,u.lq.regular,t),smallPlus:s(u.TS.smallPlus,u.lq.regular,t),medium:s(u.TS.medium,u.lq.regular,t),mediumPlus:s(u.TS.mediumPlus,u.lq.regular,t),large:s(u.TS.large,u.lq.regular,t),xLarge:s(u.TS.xLarge,u.lq.semibold,t),xLargePlus:s(u.TS.xLargePlus,u.lq.semibold,t),xxLarge:s(u.TS.xxLarge,u.lq.semibold,t),xxLargePlus:s(u.TS.xxLargePlus,u.lq.semibold,t),superLarge:s(u.TS.superLarge,u.lq.semibold,t),mega:s(u.TS.mega,u.lq.semibold,t)}}(function(e){if(void 0===e&&(e="sessionStorage"),void 0===p){var t=(0,f.M)(),n="localStorage"===e?function(e){var t=null;try{var n=(0,d.J)();t=n?n.localStorage.getItem(e):null}catch(r){}return t}(m):"sessionStorage"===e?h.r(m):void 0;n&&(p=n),void 0===p&&t&&(p=t.documentElement.getAttribute("lang")),void 0===p&&(p="en")}return p}());function v(e,t,n,r){e="'"+e+"'";var o=void 0!==r?"local('"+r+"'),":"";(0,a.j)({fontFamily:e,src:o+"url('"+t+".woff2') format('woff2'),url('"+t+".woff') format('woff')",fontWeight:n,fontStyle:"normal",fontDisplay:"swap"})}function y(e,t,n,r,o){void 0===r&&(r="segoeui");var i=e+"/"+n+"/"+r;v(t,i+"-light",u.lq.light,o&&o+" Light"),v(t,i+"-semilight",u.lq.semilight,o&&o+" SemiLight"),v(t,i+"-regular",u.lq.regular,o),v(t,i+"-semibold",u.lq.semibold,o&&o+" SemiBold"),v(t,i+"-bold",u.lq.bold,o&&o+" Bold")}!function(e){if(e){var t=e+"/fonts";y(t,u.Qm.Thai,"leelawadeeui-thai","leelawadeeui"),y(t,u.Qm.Arabic,"segoeui-arabic"),y(t,u.Qm.Cyrillic,"segoeui-cyrillic"),y(t,u.Qm.EastEuropean,"segoeui-easteuropean"),y(t,u.Qm.Greek,"segoeui-greek"),y(t,u.Qm.Hebrew,"segoeui-hebrew"),y(t,u.Qm.Vietnamese,"segoeui-vietnamese"),y(t,u.Qm.WestEuropean,"segoeui-westeuropean","segoeui","Segoe UI"),y(t,u.II.Selawik,"selawik","selawik"),y(t,u.Qm.Armenian,"segoeui-armenian"),y(t,u.Qm.Georgian,"segoeui-georgian"),v("Leelawadee UI Web",t+"/leelawadeeui-thai/leelawadeeui-semilight",u.lq.light),v("Leelawadee UI Web",t+"/leelawadeeui-thai/leelawadeeui-bold",u.lq.semibold)}}(function(){var e,t,n=null===(e=(0,d.J)())||void 0===e?void 0:e.FabricConfig;return null!==(t=null===n||void 0===n?void 0:n.fontBaseUrl)&&void 0!==t?t:"https://static2.sharepointonline.com/files/fabric/assets"}());var b=n(83816),w={s2:"4px",s1:"8px",m:"16px",l1:"20px",l2:"32px"},S=n(53614);function k(e,t){void 0===e&&(e={}),void 0===t&&(t=!1);var n=!!e.isInverted,r={palette:o,effects:i,fonts:g,spacing:w,isInverted:n,disableGlobalClassNames:!1,semanticColors:(0,S.b)(o,i,void 0,n,t),rtl:void 0};return(0,b.I)(r,e)}},43112:function(e,t,n){"use strict";var r,o,i,a,u;n.d(t,{Qm:function(){return r},II:function(){return o},TS:function(){return i},lq:function(){return a},ld:function(){return u}}),function(e){e.Arabic="Segoe UI Web (Arabic)",e.Cyrillic="Segoe UI Web (Cyrillic)",e.EastEuropean="Segoe UI Web (East European)",e.Greek="Segoe UI Web (Greek)",e.Hebrew="Segoe UI Web (Hebrew)",e.Thai="Leelawadee UI Web",e.Vietnamese="Segoe UI Web (Vietnamese)",e.WestEuropean="Segoe UI Web (West European)",e.Selawik="Selawik Web",e.Armenian="Segoe UI Web (Armenian)",e.Georgian="Segoe UI Web (Georgian)"}(r||(r={})),function(e){e.Arabic="'"+r.Arabic+"'",e.ChineseSimplified="'Microsoft Yahei UI', Verdana, Simsun",e.ChineseTraditional="'Microsoft Jhenghei UI', Pmingliu",e.Cyrillic="'"+r.Cyrillic+"'",e.EastEuropean="'"+r.EastEuropean+"'",e.Greek="'"+r.Greek+"'",e.Hebrew="'"+r.Hebrew+"'",e.Hindi="'Nirmala UI'",e.Japanese="'Yu Gothic UI', 'Meiryo UI', Meiryo, 'MS Pgothic', Osaka",e.Korean="'Malgun Gothic', Gulim",e.Selawik="'"+r.Selawik+"'",e.Thai="'Leelawadee UI Web', 'Kmer UI'",e.Vietnamese="'"+r.Vietnamese+"'",e.WestEuropean="'"+r.WestEuropean+"'",e.Armenian="'"+r.Armenian+"'",e.Georgian="'"+r.Georgian+"'"}(o||(o={})),function(e){e.size10="10px",e.size12="12px",e.size14="14px",e.size16="16px",e.size18="18px",e.size20="20px",e.size24="24px",e.size28="28px",e.size32="32px",e.size42="42px",e.size68="68px",e.mini="10px",e.xSmall="10px",e.small="12px",e.smallPlus="12px",e.medium="14px",e.mediumPlus="16px",e.icon="16px",e.large="18px",e.xLarge="20px",e.xLargePlus="24px",e.xxLarge="28px",e.xxLargePlus="32px",e.superLarge="42px",e.mega="68px"}(i||(i={})),function(e){e.light=100,e.semilight=300,e.regular=400,e.semibold=600,e.bold=700}(a||(a={})),function(e){e.xSmall="10px",e.small="12px",e.medium="16px",e.large="20px"}(u||(u={}))},83816:function(e,t,n){"use strict";function r(e){for(var t=[],n=1;n-1;e[r]=a?i:o(e[r]||{},i,n)}}return n.pop(),e}n.d(t,{I:function(){return a}});var i=n(53614);function a(e,t){var n,o,a;void 0===t&&(t={});var u=r({},e,t,{semanticColors:(0,i.Q)(t.palette,t.effects,t.semanticColors,void 0===t.isInverted?e.isInverted:t.isInverted)});if((null===(n=t.palette)||void 0===n?void 0:n.themePrimary)&&!(null===(o=t.palette)||void 0===o?void 0:o.accent)&&(u.palette.accent=t.palette.themePrimary),t.defaultFontStyle)for(var l=0,c=Object.keys(u.fonts);l0&&s>t)&&(u=p(),s=0,f=i),a=u;for(var l=0;l=0||0===u.indexOf("data-")||0===u.indexOf("aria-"))||n&&-1!==(null===n||void 0===n?void 0:n.indexOf(u))||(o[u]=e[u])}return o}},71847:function(e,t,n){"use strict";n.d(t,{r:function(){return o},L:function(){return i}});var r=n(69561);function o(e){var t=null;try{var n=(0,r.J)();t=n?n.sessionStorage.getItem(e):null}catch(o){}return t}function i(e,t){var n;try{null===(n=(0,r.J)())||void 0===n||n.sessionStorage.setItem(e,t)}catch(o){}}},47508:function(e,t,n){"use strict";n.d(t,{G$:function(){return o},MU:function(){return a}});var r=n(69561),o="ms-Fabric--isFocusVisible",i="ms-Fabric--isFocusHidden";function a(e,t){var n=t?(0,r.J)(t):(0,r.J)();if(n){var a=n.document.body.classList;a.add(e?o:i),a.remove(e?i:o)}}},32812:function(e,t,n){"use strict";n.d(t,{u:function(){return d},P:function(){return f}});var r,o=n(72791),i=n(69561),a=n(33818),u=((r={})[a.m.up]=1,r[a.m.down]=1,r[a.m.left]=1,r[a.m.right]=1,r[a.m.home]=1,r[a.m.end]=1,r[a.m.tab]=1,r[a.m.pageUp]=1,r[a.m.pageDown]=1,r);var l=n(47508),c=new WeakMap;function s(e,t){var n,r=c.get(e);return n=r?r+t:1,c.set(e,n),n}function f(e){o.useEffect((function(){var t,n=(0,i.J)(null===e||void 0===e?void 0:e.current);if(n&&!0!==(null===(t=n.FabricConfig)||void 0===t?void 0:t.disableFocusRects)){var r=s(n,1);return r<=1&&(n.addEventListener("mousedown",p,!0),n.addEventListener("pointerdown",h,!0),n.addEventListener("keydown",m,!0)),function(){var e;n&&!0!==(null===(e=n.FabricConfig)||void 0===e?void 0:e.disableFocusRects)&&0===(r=s(n,-1))&&(n.removeEventListener("mousedown",p,!0),n.removeEventListener("pointerdown",h,!0),n.removeEventListener("keydown",m,!0))}}}),[e])}var d=function(e){return f(e.rootRef),null};function p(e){(0,l.MU)(!1,e.target)}function h(e){"mouse"!==e.pointerType&&(0,l.MU)(!1,e.target)}function m(e){var t;t=e.which,u[t]&&(0,l.MU)(!0,e.target)}},21614:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});function r(e){console&&console.warn&&console.warn(e)}},80964:function(e,t,n){"use strict";n.d(t,{xC:function(){return M},oM:function(){return R}});var r=n(65442);function o(e,t){return e===t}function i(e,t,n){if(null===t||null===n||t.length!==n.length)return!1;for(var r=t.length,o=0;o1?t-1:0),r=1;r1&&void 0!==arguments[1]?arguments[1]:o,n=null,r=null;return function(){return i(t,n,arguments)||(r=e.apply(null,arguments)),n=arguments,r}}));var u=n(1413);function l(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var c="function"===typeof Symbol&&Symbol.observable||"@@observable",s=function(){return Math.random().toString(36).substring(7).split("").join(".")},f={INIT:"@@redux/INIT"+s(),REPLACE:"@@redux/REPLACE"+s(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+s()}};function d(e){if("object"!==typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function p(e,t,n){var r;if("function"===typeof t&&"function"===typeof n||"function"===typeof n&&"function"===typeof arguments[3])throw new Error(l(0));if("function"===typeof t&&"undefined"===typeof n&&(n=t,t=void 0),"undefined"!==typeof n){if("function"!==typeof n)throw new Error(l(1));return n(p)(e,t)}if("function"!==typeof e)throw new Error(l(2));var o=e,i=t,a=[],u=a,s=!1;function h(){u===a&&(u=a.slice())}function m(){if(s)throw new Error(l(3));return i}function g(e){if("function"!==typeof e)throw new Error(l(4));if(s)throw new Error(l(5));var t=!0;return h(),u.push(e),function(){if(t){if(s)throw new Error(l(6));t=!1,h();var n=u.indexOf(e);u.splice(n,1),a=null}}}function v(e){if(!d(e))throw new Error(l(7));if("undefined"===typeof e.type)throw new Error(l(8));if(s)throw new Error(l(9));try{s=!0,i=o(i,e)}finally{s=!1}for(var t=a=u,n=0;n=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){l.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){l.headers[e]=r.merge(a)})),e.exports=l},44049:function(e){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}})),a):a}},98089:function(e){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},47835:function(e,t,n){"use strict";var r=n(88593),o={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){o[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var i={},a=r.version.split(".");function u(e,t){for(var n=t?t.split("."):a,r=e.split("."),o=0;o<3;o++){if(n[o]>r[o])return!0;if(n[o]0;){var i=r[o],a=t[i];if(a){var u=e[i],l=void 0===u||a(u,i,e);if(!0!==l)throw new TypeError("option "+i+" must be "+l)}else if(!0!==n)throw Error("Unknown option "+i)}},validators:o}},33589:function(e,t,n){"use strict";var r=n(44049),o=Object.prototype.toString;function i(e){return"[object Array]"===o.call(e)}function a(e){return"undefined"===typeof e}function u(e){return null!==e&&"object"===typeof e}function l(e){if("[object Object]"!==o.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function c(e){return"[object Function]"===o.call(e)}function s(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),i(e))for(var n=0,r=e.length;n=0;d--){var p=a[d];"."===p?i(a,d):".."===p?(i(a,d),f++):f&&(i(a,d),f--)}if(!c)for(;f--;f)a.unshift("..");!c||""===a[0]||a[0]&&o(a[0])||a.unshift("");var h=a.join("/");return n&&"/"!==h.substr(-1)&&(h+="/"),h},u=n(56111);function l(e){return"/"===e.charAt(0)?e:"/"+e}function c(e){return"/"===e.charAt(0)?e.substr(1):e}function s(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function f(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function d(e){var t=e.pathname,n=e.search,r=e.hash,o=t||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}function p(e,t,n,o){var i;"string"===typeof e?(i=function(e){var t=e||"/",n="",r="",o=t.indexOf("#");-1!==o&&(r=t.substr(o),t=t.substr(0,o));var i=t.indexOf("?");return-1!==i&&(n=t.substr(i),t=t.substr(0,i)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e),i.state=t):(void 0===(i=(0,r.Z)({},e)).pathname&&(i.pathname=""),i.search?"?"!==i.search.charAt(0)&&(i.search="?"+i.search):i.search="",i.hash?"#"!==i.hash.charAt(0)&&(i.hash="#"+i.hash):i.hash="",void 0!==t&&void 0===i.state&&(i.state=t));try{i.pathname=decodeURI(i.pathname)}catch(u){throw u instanceof URIError?new URIError('Pathname "'+i.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):u}return n&&(i.key=n),o?i.pathname?"/"!==i.pathname.charAt(0)&&(i.pathname=a(i.pathname,o.pathname)):i.pathname=o.pathname:i.pathname||(i.pathname="/"),i}function h(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,o){if(null!=e){var i="function"===typeof e?e(t,n):e;"string"===typeof i?"function"===typeof r?r(i,o):o(!0):o(!1!==i)}else o(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;rt?n.splice(t,n.length-t,o):n.push(o),f({action:r,location:o,index:t,entries:n})}}))},replace:function(e,t){var r="REPLACE",o=p(e,t,m(),w.location);s.confirmTransitionTo(o,r,n,(function(e){e&&(w.entries[w.index]=o,f({action:r,location:o}))}))},go:b,goBack:function(){b(-1)},goForward:function(){b(1)},canGo:function(e){var t=w.index+e;return t>=0&&t1?t-1:0),r=1;r3?t.i-4:t.i:Array.isArray(e)?1:d(e)?2:p(e)?3:0}function l(e,t){return 2===u(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function c(e,t){return 2===u(e)?e.get(t):e[t]}function s(e,t,n){var r=u(e);2===r?e.set(t,n):3===r?(e.delete(t),e.add(n)):e[t]=n}function f(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function d(e){return V&&e instanceof Map}function p(e){return H&&e instanceof Set}function h(e){return e.o||e.t}function m(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=X(e);delete t[q];for(var n=Y(t),r=0;r1&&(e.set=e.add=e.clear=e.delete=v),Object.freeze(e),t&&a(e,(function(e,t){return g(t,!0)}),!0)),e}function v(){r(2)}function y(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function b(e){var t=J[e];return t||r(18,e),t}function w(e,t){J[e]||(J[e]=t)}function S(){return U}function k(e,t){t&&(b("Patches"),e.u=[],e.s=[],e.v=t)}function C(e){x(e),e.p.forEach(E),e.p=null}function x(e){e===U&&(U=e.l)}function _(e){return U={p:[],l:U,h:e,m:!0,_:0}}function E(e){var t=e[q];0===t.i||1===t.i?t.j():t.O=!0}function P(e,t){t._=t.p.length;var n=t.p[0],o=void 0!==e&&e!==n;return t.h.g||b("ES5").S(t,e,o),o?(n[q].P&&(C(t),r(4)),i(e)&&(e=L(t,e),t.l||T(t,e)),t.u&&b("Patches").M(n[q].t,e,t.u,t.s)):e=L(t,n,[]),C(t),t.u&&t.v(t.u,t.s),e!==$?e:void 0}function L(e,t,n){if(y(t))return t;var r=t[q];if(!r)return a(t,(function(o,i){return O(e,r,t,o,i,n)}),!0),t;if(r.A!==e)return t;if(!r.P)return T(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=4===r.i||5===r.i?r.o=m(r.k):r.o;a(3===r.i?new Set(o):o,(function(t,i){return O(e,r,o,t,i,n)})),T(e,o,!1),n&&e.u&&b("Patches").R(r,n,e.u,e.s)}return r.o}function O(e,t,n,r,a,u){if(o(a)){var c=L(e,a,u&&t&&3!==t.i&&!l(t.D,r)?u.concat(r):void 0);if(s(n,r,c),!o(c))return;e.m=!1}if(i(a)&&!y(a)){if(!e.h.F&&e._<1)return;L(e,a),t&&t.A.l||T(e,a)}}function T(e,t,n){void 0===n&&(n=!1),e.h.F&&e.m&&g(t,n)}function F(e,t){var n=e[q];return(n?h(n):e)[t]}function M(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function A(e){e.P||(e.P=!0,e.l&&A(e.l))}function I(e){e.o||(e.o=m(e.t))}function R(e,t,n){var r=d(t)?b("MapSet").N(t,n):p(t)?b("MapSet").T(t,n):e.g?function(e,t){var n=Array.isArray(e),r={i:n?1:0,A:t?t.A:S(),P:!1,I:!1,D:{},l:t,t:e,k:null,o:null,j:null,C:!1},o=r,i=ee;n&&(o=[r],i=te);var a=Proxy.revocable(o,i),u=a.revoke,l=a.proxy;return r.k=l,r.j=u,l}(t,n):b("ES5").J(t,n);return(n?n.A:S()).p.push(r),r}function D(e){return o(e)||r(22,e),function e(t){if(!i(t))return t;var n,r=t[q],o=u(t);if(r){if(!r.P&&(r.i<4||!b("ES5").K(r)))return r.t;r.I=!0,n=N(t,o),r.I=!1}else n=N(t,o);return a(n,(function(t,o){r&&c(r.t,t)===o||s(n,t,e(o))})),3===o?new Set(n):n}(e)}function N(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return m(e)}function j(){function e(e,t){var n=i[e];return n?n.enumerable=t:i[e]=n={configurable:!0,enumerable:t,get:function(){var t=this[q];return ee.get(t,e)},set:function(t){var n=this[q];ee.set(n,e,t)}},n}function t(e){for(var t=e.length-1;t>=0;t--){var o=e[t][q];if(!o.P)switch(o.i){case 5:r(o)&&A(o);break;case 4:n(o)&&A(o)}}}function n(e){for(var t=e.t,n=e.k,r=Y(n),o=r.length-1;o>=0;o--){var i=r[o];if(i!==q){var a=t[i];if(void 0===a&&!l(t,i))return!0;var u=n[i],c=u&&u[q];if(c?c.t!==a:!f(u,a))return!0}}var s=!!t[q];return r.length!==Y(t).length+(s?0:1)}function r(e){var t=e.k;if(t.length!==e.t.length)return!0;var n=Object.getOwnPropertyDescriptor(t,t.length-1);if(n&&!n.get)return!0;for(var r=0;r1?r-1:0),i=1;i1?r-1:0),i=1;i=0;n--){var r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));var i=b("Patches").$;return o(e)?i(e,t):this.produce(e,(function(e){return i(e,t)}))},e}(),re=new ne,oe=re.produce;re.produceWithPatches.bind(re),re.setAutoFreeze.bind(re),re.setUseProxies.bind(re),re.applyPatches.bind(re),re.createDraft.bind(re),re.finishDraft.bind(re);t.ZP=oe},41571:function(e){e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},31725:function(e){"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function o(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(o){return!1}}()?Object.assign:function(e,i){for(var a,u,l=o(e),c=1;c