From 48fc8c47ac2f2b7d17c8813c77be9c1598279b43 Mon Sep 17 00:00:00 2001 From: aries_ckt <916701291@qq.com> Date: Tue, 25 Jul 2023 11:26:20 +0800 Subject: [PATCH] fix:web-ui bug 1.webuibug 2.requirememt update --- pilot/server/static/404.html | 2 +- pilot/server/static/404/index.html | 2 +- .../_next/static/chunks/775-224c8c8f5ee3fd65.js | 16 ++++++++++++++++ .../static/chunks/925f3d25-1af7259455ef26bd.js | 2 ++ .../chunks/app/chat/page-4266d316599e0141.js | 1 + .../documents/chunklist/page-042df8c81ee99ad6.js | 1 + .../documents/page-d01efb573de36698.js | 1 + .../app/datastores/page-d4200bb6a31d3cd4.js | 1 + .../static/chunks/app/layout-6d9f7ec39c148c6a.js | 1 + .../static/chunks/app/page-254872a7b51c14e0.js | 1 + .../static/chunks/main-app-75c197595e152149.js | 1 + .../kvEPRdcHK79LEj3_AaRj1/_buildManifest.js | 1 + .../static/kvEPRdcHK79LEj3_AaRj1/_ssgManifest.js | 1 + pilot/server/static/chat/index.html | 2 +- pilot/server/static/chat/index.txt | 6 +++--- .../datastores/documents/chunklist/index.html | 2 +- .../datastores/documents/chunklist/index.txt | 6 +++--- .../static/datastores/documents/index.html | 2 +- .../server/static/datastores/documents/index.txt | 6 +++--- pilot/server/static/datastores/index.html | 2 +- pilot/server/static/datastores/index.txt | 6 +++--- pilot/server/static/index.html | 2 +- pilot/server/static/index.txt | 6 +++--- pilot/vector_store/connector.py | 3 ++- requirements.txt | 5 +++-- 25 files changed, 54 insertions(+), 25 deletions(-) create mode 100644 pilot/server/static/_next/static/chunks/775-224c8c8f5ee3fd65.js create mode 100644 pilot/server/static/_next/static/chunks/925f3d25-1af7259455ef26bd.js create mode 100644 pilot/server/static/_next/static/chunks/app/chat/page-4266d316599e0141.js create mode 100644 pilot/server/static/_next/static/chunks/app/datastores/documents/chunklist/page-042df8c81ee99ad6.js create mode 100644 pilot/server/static/_next/static/chunks/app/datastores/documents/page-d01efb573de36698.js create mode 100644 pilot/server/static/_next/static/chunks/app/datastores/page-d4200bb6a31d3cd4.js create mode 100644 pilot/server/static/_next/static/chunks/app/layout-6d9f7ec39c148c6a.js create mode 100644 pilot/server/static/_next/static/chunks/app/page-254872a7b51c14e0.js create mode 100644 pilot/server/static/_next/static/chunks/main-app-75c197595e152149.js create mode 100644 pilot/server/static/_next/static/kvEPRdcHK79LEj3_AaRj1/_buildManifest.js create mode 100644 pilot/server/static/_next/static/kvEPRdcHK79LEj3_AaRj1/_ssgManifest.js diff --git a/pilot/server/static/404.html b/pilot/server/static/404.html index c30018f50..3300feb6e 100644 --- a/pilot/server/static/404.html +++ b/pilot/server/static/404.html @@ -1 +1 @@ -404: This page could not be found

404

This page could not be found.

\ No newline at end of file +404: This page could not be found

404

This page could not be found.

\ No newline at end of file diff --git a/pilot/server/static/404/index.html b/pilot/server/static/404/index.html index c30018f50..3300feb6e 100644 --- a/pilot/server/static/404/index.html +++ b/pilot/server/static/404/index.html @@ -1 +1 @@ -404: This page could not be found

404

This page could not be found.

\ No newline at end of file +404: This page could not be found

404

This page could not be found.

\ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/775-224c8c8f5ee3fd65.js b/pilot/server/static/_next/static/chunks/775-224c8c8f5ee3fd65.js new file mode 100644 index 000000000..3f73489de --- /dev/null +++ b/pilot/server/static/_next/static/chunks/775-224c8c8f5ee3fd65.js @@ -0,0 +1,16 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[775],{72474:function(e,t,r){r.d(t,{Z:function(){return l}});var o=r(40431),n=r(86006),a={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},i=r(1240),l=n.forwardRef(function(e,t){return n.createElement(i.Z,(0,o.Z)({},e,{ref:t,icon:a}))})},59534:function(e,t,r){var o=r(78997);t.Z=void 0;var n=o(r(76906)),a=r(9268),i=(0,n.default)((0,a.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm4.59-12.42L10 14.17l-2.59-2.58L6 13l4 4 8-8z"}),"CheckCircleOutlined");t.Z=i},28086:function(e,t,r){r.d(t,{Z:function(){return D}});var o=r(46750),n=r(40431),a=r(86006),i=r(53832),l=r(47562),c=r(24263),s=r(21454),d=r(99179),u=r(50645),p=r(88930),m=r(47093),h=r(326),f=r(18587);function g(e){return(0,f.d6)("MuiSwitch",e)}let v=(0,f.sI)("MuiSwitch",["root","checked","disabled","action","input","thumb","track","focusVisible","readOnly","colorPrimary","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","sizeSm","sizeMd","sizeLg","variantOutlined","variantSoft","variantSolid","startDecorator","endDecorator"]);var b=r(31857),y=r(9268);let w=["checked","defaultChecked","disabled","onBlur","onChange","onFocus","onFocusVisible","readOnly","required","id","color","variant","size","startDecorator","endDecorator","component","slots","slotProps"],x=e=>{let{checked:t,disabled:r,focusVisible:o,readOnly:n,color:a,variant:c}=e,s={root:["root",t&&"checked",r&&"disabled",o&&"focusVisible",n&&"readOnly",c&&`variant${(0,i.Z)(c)}`,a&&`color${(0,i.Z)(a)}`],thumb:["thumb",t&&"checked"],track:["track",t&&"checked"],action:["action",o&&"focusVisible"],input:["input"],startDecorator:["startDecorator"],endDecorator:["endDecorator"]};return(0,l.Z)(s,g,{})},$=({theme:e,ownerState:t})=>(r={})=>{var o;let n=(null==(o=e.variants[`${t.variant}${r.state||""}`])?void 0:o[t.color])||{};return{"--Switch-trackBackground":n.backgroundColor,"--Switch-trackColor":n.color,"--Switch-trackBorderColor":"outlined"===t.variant?n.borderColor:"currentColor","--Switch-thumbBackground":n.color,"--Switch-thumbColor":n.backgroundColor}},S=(0,u.Z)("div",{name:"JoySwitch",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var r;let o=$({theme:e,ownerState:t});return(0,n.Z)({"--variant-borderWidth":null==(r=e.variants[t.variant])||null==(r=r[t.color])?void 0:r["--variant-borderWidth"],"--Switch-trackRadius":e.vars.radius.lg,"--Switch-thumbShadow":"soft"===t.variant?"none":"0 0 0 1px var(--Switch-trackBackground)"},"sm"===t.size&&{"--Switch-trackWidth":"40px","--Switch-trackHeight":"20px","--Switch-thumbSize":"12px","--Switch-gap":"6px",fontSize:e.vars.fontSize.sm},"md"===t.size&&{"--Switch-trackWidth":"48px","--Switch-trackHeight":"24px","--Switch-thumbSize":"16px","--Switch-gap":"8px",fontSize:e.vars.fontSize.md},"lg"===t.size&&{"--Switch-trackWidth":"64px","--Switch-trackHeight":"32px","--Switch-thumbSize":"24px","--Switch-gap":"12px"},{"--unstable_paddingBlock":"max((var(--Switch-trackHeight) - 2 * var(--variant-borderWidth, 0px) - var(--Switch-thumbSize)) / 2, 0px)","--Switch-thumbRadius":"max(var(--Switch-trackRadius) - var(--unstable_paddingBlock), min(var(--unstable_paddingBlock) / 2, var(--Switch-trackRadius) / 2))","--Switch-thumbWidth":"var(--Switch-thumbSize)","--Switch-thumbOffset":"max((var(--Switch-trackHeight) - var(--Switch-thumbSize)) / 2, 0px)"},o(),{"&:hover":(0,n.Z)({},o({state:"Hover"})),[`&.${v.checked}`]:(0,n.Z)({},o(),{"&:hover":(0,n.Z)({},o({state:"Hover"}))}),[`&.${v.disabled}`]:(0,n.Z)({pointerEvents:"none",color:e.vars.palette.text.tertiary},o({state:"Disabled"})),display:"inline-flex",alignItems:"center",alignSelf:"center",fontFamily:e.vars.fontFamily.body,position:"relative",padding:"calc((var(--Switch-thumbSize) / 2) - (var(--Switch-trackHeight) / 2)) calc(-1 * var(--Switch-thumbOffset))",backgroundColor:"initial",border:"none",margin:"var(--unstable_Switch-margin)"})}),k=(0,u.Z)("div",{name:"JoySwitch",slot:"Action",overridesResolver:(e,t)=>t.action})(({theme:e})=>({borderRadius:"var(--Switch-trackRadius)",position:"absolute",top:0,left:0,bottom:0,right:0,[e.focus.selector]:e.focus.default})),C=(0,u.Z)("input",{name:"JoySwitch",slot:"Input",overridesResolver:(e,t)=>t.input})({margin:0,height:"100%",width:"100%",opacity:0,position:"absolute",cursor:"pointer"}),E=(0,u.Z)("span",{name:"JoySwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e,ownerState:t})=>(0,n.Z)({position:"relative",color:"var(--Switch-trackColor)",height:"var(--Switch-trackHeight)",width:"var(--Switch-trackWidth)",display:"flex",flexShrink:0,justifyContent:"space-between",alignItems:"center",boxSizing:"border-box",border:"var(--variant-borderWidth, 0px) solid",borderColor:"var(--Switch-trackBorderColor)",backgroundColor:"var(--Switch-trackBackground)",borderRadius:"var(--Switch-trackRadius)",fontFamily:e.vars.fontFamily.body},"sm"===t.size&&{fontSize:e.vars.fontSize.xs},"md"===t.size&&{fontSize:e.vars.fontSize.sm},"lg"===t.size&&{fontSize:e.vars.fontSize.md})),Z=(0,u.Z)("span",{name:"JoySwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})({"--Icon-fontSize":"calc(var(--Switch-thumbSize) * 0.75)",display:"inline-flex",justifyContent:"center",alignItems:"center",position:"absolute",top:"50%",left:"calc(50% - var(--Switch-trackWidth) / 2 + var(--Switch-thumbWidth) / 2 + var(--Switch-thumbOffset))",transform:"translate(-50%, -50%)",width:"var(--Switch-thumbWidth)",height:"var(--Switch-thumbSize)",borderRadius:"var(--Switch-thumbRadius)",boxShadow:"var(--Switch-thumbShadow)",color:"var(--Switch-thumbColor)",backgroundColor:"var(--Switch-thumbBackground)",[`&.${v.checked}`]:{left:"calc(50% + var(--Switch-trackWidth) / 2 - var(--Switch-thumbWidth) / 2 - var(--Switch-thumbOffset))"}}),O=(0,u.Z)("span",{name:"JoySwitch",slot:"StartDecorator",overridesResolver:(e,t)=>t.startDecorator})({display:"inline-flex",marginInlineEnd:"var(--Switch-gap)"}),z=(0,u.Z)("span",{name:"JoySwitch",slot:"EndDecorator",overridesResolver:(e,t)=>t.endDecorator})({display:"inline-flex",marginInlineStart:"var(--Switch-gap)"}),T=a.forwardRef(function(e,t){var r,i,l,u,f;let g=(0,p.Z)({props:e,name:"JoySwitch"}),{checked:v,defaultChecked:$,disabled:T,onBlur:D,onChange:I,onFocus:R,onFocusVisible:j,readOnly:N,id:H,color:P,variant:M="solid",size:F="md",startDecorator:B,endDecorator:W,component:L,slots:A={},slotProps:_={}}=g,X=(0,o.Z)(g,w),U=a.useContext(b.Z),V=null!=(r=null!=(i=e.disabled)?i:null==U?void 0:U.disabled)?r:T,q=null!=(l=null!=(u=e.size)?u:null==U?void 0:U.size)?l:F,{getColor:J}=(0,m.VT)(M),G=J(e.color,null!=U&&U.error?"danger":null!=(f=null==U?void 0:U.color)?f:P),{getInputProps:K,checked:Q,disabled:Y,focusVisible:ee,readOnly:et}=function(e){let{checked:t,defaultChecked:r,disabled:o,onBlur:i,onChange:l,onFocus:u,onFocusVisible:p,readOnly:m,required:h}=e,[f,g]=(0,c.Z)({controlled:t,default:!!r,name:"Switch",state:"checked"}),v=e=>t=>{var r;t.nativeEvent.defaultPrevented||(g(t.target.checked),null==l||l(t),null==(r=e.onChange)||r.call(e,t))},{isFocusVisibleRef:b,onBlur:y,onFocus:w,ref:x}=(0,s.Z)(),[$,S]=a.useState(!1);o&&$&&S(!1),a.useEffect(()=>{b.current=$},[$,b]);let k=a.useRef(null),C=e=>t=>{var r;k.current||(k.current=t.currentTarget),w(t),!0===b.current&&(S(!0),null==p||p(t)),null==u||u(t),null==(r=e.onFocus)||r.call(e,t)},E=e=>t=>{var r;y(t),!1===b.current&&S(!1),null==i||i(t),null==(r=e.onBlur)||r.call(e,t)},Z=(0,d.Z)(x,k);return{checked:f,disabled:!!o,focusVisible:$,getInputProps:(e={})=>(0,n.Z)({checked:t,defaultChecked:r,disabled:o,readOnly:m,ref:Z,required:h,type:"checkbox"},e,{onChange:v(e),onFocus:C(e),onBlur:E(e)}),inputRef:Z,readOnly:!!m}}({checked:v,defaultChecked:$,disabled:V,onBlur:D,onChange:I,onFocus:R,onFocusVisible:j,readOnly:N}),er=(0,n.Z)({},g,{id:H,checked:Q,disabled:Y,focusVisible:ee,readOnly:et,color:Q?G||"primary":G||"neutral",variant:M,size:q}),eo=x(er),en=(0,n.Z)({},X,{component:L,slots:A,slotProps:_}),[ea,ei]=(0,h.Z)("root",{ref:t,className:eo.root,elementType:S,externalForwardedProps:en,ownerState:er}),[el,ec]=(0,h.Z)("startDecorator",{additionalProps:{"aria-hidden":!0},className:eo.startDecorator,elementType:O,externalForwardedProps:en,ownerState:er}),[es,ed]=(0,h.Z)("endDecorator",{additionalProps:{"aria-hidden":!0},className:eo.endDecorator,elementType:z,externalForwardedProps:en,ownerState:er}),[eu,ep]=(0,h.Z)("track",{className:eo.track,elementType:E,externalForwardedProps:en,ownerState:er}),[em,eh]=(0,h.Z)("thumb",{className:eo.thumb,elementType:Z,externalForwardedProps:en,ownerState:er}),[ef,eg]=(0,h.Z)("action",{className:eo.action,elementType:k,externalForwardedProps:en,ownerState:er}),[ev,eb]=(0,h.Z)("input",{additionalProps:{id:null!=H?H:null==U?void 0:U.htmlFor,"aria-describedby":null==U?void 0:U["aria-describedby"]},className:eo.input,elementType:C,externalForwardedProps:en,getSlotProps:K,ownerState:er});return(0,y.jsxs)(ea,(0,n.Z)({},ei,{children:[B&&(0,y.jsx)(el,(0,n.Z)({},ec,{children:"function"==typeof B?B(er):B})),(0,y.jsxs)(eu,(0,n.Z)({},ep,{children:[null==ep?void 0:ep.children,(0,y.jsx)(em,(0,n.Z)({},eh))]})),(0,y.jsx)(ef,(0,n.Z)({},eg,{children:(0,y.jsx)(ev,(0,n.Z)({},eb))})),W&&(0,y.jsx)(es,(0,n.Z)({},ed,{children:"function"==typeof W?W(er):W}))]}))});var D=T},866:function(e,t,r){r.d(t,{Z:function(){return j}});var o=r(46750),n=r(40431),a=r(86006),i=r(53832),l=r(47562),c=r(8431),s=r(99179),d=r(30165),u=r(22099),p=r(11059),m=r(9268);let h=["onChange","maxRows","minRows","style","value"];function f(e){return parseInt(e,10)||0}let g={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function v(e){return null==e||0===Object.keys(e).length||0===e.outerHeightStyle&&!e.overflow}let b=a.forwardRef(function(e,t){let{onChange:r,maxRows:i,minRows:l=1,style:b,value:y}=e,w=(0,o.Z)(e,h),{current:x}=a.useRef(null!=y),$=a.useRef(null),S=(0,s.Z)(t,$),k=a.useRef(null),C=a.useRef(0),[E,Z]=a.useState({outerHeightStyle:0}),O=a.useCallback(()=>{let t=$.current,r=(0,d.Z)(t),o=r.getComputedStyle(t);if("0px"===o.width)return{outerHeightStyle:0};let n=k.current;n.style.width=o.width,n.value=t.value||e.placeholder||"x","\n"===n.value.slice(-1)&&(n.value+=" ");let a=o.boxSizing,c=f(o.paddingBottom)+f(o.paddingTop),s=f(o.borderBottomWidth)+f(o.borderTopWidth),u=n.scrollHeight;n.value="x";let p=n.scrollHeight,m=u;l&&(m=Math.max(Number(l)*p,m)),i&&(m=Math.min(Number(i)*p,m)),m=Math.max(m,p);let h=m+("border-box"===a?c+s:0),g=1>=Math.abs(m-u);return{outerHeightStyle:h,overflow:g}},[i,l,e.placeholder]),z=(e,t)=>{let{outerHeightStyle:r,overflow:o}=t;return C.current<20&&(r>0&&Math.abs((e.outerHeightStyle||0)-r)>1||e.overflow!==o)?(C.current+=1,{overflow:o,outerHeightStyle:r}):e},T=a.useCallback(()=>{let e=O();v(e)||Z(t=>z(t,e))},[O]),D=()=>{let e=O();v(e)||c.flushSync(()=>{Z(t=>z(t,e))})};return a.useEffect(()=>{let e;let t=(0,u.Z)(()=>{C.current=0,$.current&&D()}),r=$.current,o=(0,d.Z)(r);return o.addEventListener("resize",t),"undefined"!=typeof ResizeObserver&&(e=new ResizeObserver(t)).observe(r),()=>{t.clear(),o.removeEventListener("resize",t),e&&e.disconnect()}}),(0,p.Z)(()=>{T()}),a.useEffect(()=>{C.current=0},[y]),(0,m.jsxs)(a.Fragment,{children:[(0,m.jsx)("textarea",(0,n.Z)({value:y,onChange:e=>{C.current=0,x||T(),r&&r(e)},ref:S,rows:l,style:(0,n.Z)({height:E.outerHeightStyle,overflow:E.overflow?"hidden":void 0},b)},w)),(0,m.jsx)("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:k,tabIndex:-1,style:(0,n.Z)({},g.shadow,b,{paddingTop:0,paddingBottom:0})})]})});var y=r(50645),w=r(88930),x=r(47093),$=r(326),S=r(18587);function k(e){return(0,S.d6)("MuiTextarea",e)}let C=(0,S.sI)("MuiTextarea",["root","textarea","startDecorator","endDecorator","formControl","disabled","error","focused","colorPrimary","colorNeutral","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","sizeSm","sizeMd","sizeLg","variantPlain","variantOutlined","variantSoft"]);var E=r(74313);let Z=["propsToForward","rootStateClasses","inputStateClasses","getRootProps","getInputProps","formControl","focused","error","disabled","size","color","variant","startDecorator","endDecorator","minRows","maxRows","component","slots","slotProps"],O=e=>{let{disabled:t,variant:r,color:o,size:n}=e,a={root:["root",t&&"disabled",r&&`variant${(0,i.Z)(r)}`,o&&`color${(0,i.Z)(o)}`,n&&`size${(0,i.Z)(n)}`],textarea:["textarea"],startDecorator:["startDecorator"],endDecorator:["endDecorator"]};return(0,l.Z)(a,k,{})},z=(0,y.Z)("div",{name:"JoyTextarea",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var r,o,a,i,l;let c=null==(r=e.variants[`${t.variant}`])?void 0:r[t.color];return[(0,n.Z)({"--Textarea-radius":e.vars.radius.sm,"--Textarea-gap":"0.5rem","--Textarea-placeholderColor":"inherit","--Textarea-placeholderOpacity":.5,"--Textarea-focused":"0","--Textarea-focusedThickness":e.vars.focus.thickness},"context"===t.color?{"--Textarea-focusedHighlight":e.vars.palette.focusVisible}:{"--Textarea-focusedHighlight":null==(o=e.vars.palette["neutral"===t.color?"primary":t.color])?void 0:o[500]},"sm"===t.size&&{"--Textarea-minHeight":"2rem","--Textarea-paddingBlock":"calc(0.5rem - var(--variant-borderWidth, 0px))","--Textarea-paddingInline":"0.5rem","--Textarea-decoratorChildHeight":"min(1.5rem, var(--Textarea-minHeight))","--Icon-fontSize":"1.25rem"},"md"===t.size&&{"--Textarea-minHeight":"2.5rem","--Textarea-paddingBlock":"calc(0.5rem - var(--variant-borderWidth, 0px))","--Textarea-paddingInline":"0.75rem","--Textarea-decoratorChildHeight":"min(2rem, var(--Textarea-minHeight))","--Icon-fontSize":"1.5rem"},"lg"===t.size&&{"--Textarea-minHeight":"3rem","--Textarea-paddingBlock":"calc(0.75rem - var(--variant-borderWidth, 0px))","--Textarea-paddingInline":"1rem","--Textarea-gap":"0.75rem","--Textarea-decoratorChildHeight":"min(2.375rem, var(--Textarea-minHeight))","--Icon-fontSize":"1.75rem"},{"--_Textarea-paddingBlock":"max((var(--Textarea-minHeight) - 2 * var(--variant-borderWidth, 0px) - var(--Textarea-decoratorChildHeight)) / 2, 0px)","--Textarea-decoratorChildRadius":"max(var(--Textarea-radius) - var(--variant-borderWidth, 0px) - var(--_Textarea-paddingBlock), min(var(--_Textarea-paddingBlock) + var(--variant-borderWidth, 0px), var(--Textarea-radius) / 2))","--Button-minHeight":"var(--Textarea-decoratorChildHeight)","--IconButton-size":"var(--Textarea-decoratorChildHeight)","--Button-radius":"var(--Textarea-decoratorChildRadius)","--IconButton-radius":"var(--Textarea-decoratorChildRadius)",boxSizing:"border-box",minWidth:0,minHeight:"var(--Textarea-minHeight)",cursor:"text",position:"relative",display:"flex",flexDirection:"column",paddingInlineStart:"var(--Textarea-paddingInline)",paddingBlock:"var(--Textarea-paddingBlock)",borderRadius:"var(--Textarea-radius)",fontFamily:e.vars.fontFamily.body,fontSize:e.vars.fontSize.md,lineHeight:e.vars.lineHeight.md},"sm"===t.size&&{fontSize:e.vars.fontSize.sm,lineHeight:e.vars.lineHeight.sm},{"&:before":{boxSizing:"border-box",content:'""',display:"block",position:"absolute",pointerEvents:"none",top:0,left:0,right:0,bottom:0,zIndex:1,borderRadius:"inherit",margin:"calc(var(--variant-borderWidth, 0px) * -1)",boxShadow:"var(--Textarea-focusedInset, inset) 0 0 0 calc(var(--Textarea-focused) * var(--Textarea-focusedThickness)) var(--Textarea-focusedHighlight)"}}),(0,n.Z)({},c,{backgroundColor:null!=(a=null==c?void 0:c.backgroundColor)?a:e.vars.palette.background.surface,"&:hover":(0,n.Z)({},null==(i=e.variants[`${t.variant}Hover`])?void 0:i[t.color],{backgroundColor:null,cursor:"text"}),[`&.${C.disabled}`]:null==(l=e.variants[`${t.variant}Disabled`])?void 0:l[t.color],"&:focus-within::before":{"--Textarea-focused":"1"}})]}),T=(0,y.Z)(b,{name:"JoyTextarea",slot:"Textarea",overridesResolver:(e,t)=>t.textarea})({resize:"none",border:"none",minWidth:0,outline:0,padding:0,paddingInlineEnd:"var(--Textarea-paddingInline)",flex:"auto",alignSelf:"stretch",color:"inherit",backgroundColor:"transparent",fontFamily:"inherit",fontSize:"inherit",fontStyle:"inherit",fontWeight:"inherit",lineHeight:"inherit","&::-webkit-input-placeholder":{color:"var(--Textarea-placeholderColor)",opacity:"var(--Textarea-placeholderOpacity)"},"&::-moz-placeholder":{color:"var(--Textarea-placeholderColor)",opacity:"var(--Textarea-placeholderOpacity)"},"&:-ms-input-placeholder":{color:"var(--Textarea-placeholderColor)",opacity:"var(--Textarea-placeholderOpacity)"},"&::-ms-input-placeholder":{color:"var(--Textarea-placeholderColor)",opacity:"var(--Textarea-placeholderOpacity)"}}),D=(0,y.Z)("div",{name:"JoyTextarea",slot:"StartDecorator",overridesResolver:(e,t)=>t.startDecorator})(({theme:e})=>({display:"flex",marginInlineStart:"calc(var(--Textarea-paddingBlock) - var(--Textarea-paddingInline))",marginInlineEnd:"var(--Textarea-paddingBlock)",marginBlockEnd:"var(--Textarea-gap)",color:e.vars.palette.text.tertiary,cursor:"initial"})),I=(0,y.Z)("div",{name:"JoyTextarea",slot:"EndDecorator",overridesResolver:(e,t)=>t.endDecorator})(({theme:e})=>({display:"flex",marginInlineStart:"calc(var(--Textarea-paddingBlock) - var(--Textarea-paddingInline))",marginInlineEnd:"var(--Textarea-paddingBlock)",marginBlockStart:"var(--Textarea-gap)",color:e.vars.palette.text.tertiary,cursor:"initial"})),R=a.forwardRef(function(e,t){var r,a,i,l,c,s,d;let u=(0,w.Z)({props:e,name:"JoyTextarea"}),p=(0,E.Z)(u,C),{propsToForward:h,rootStateClasses:f,inputStateClasses:g,getRootProps:v,getInputProps:b,formControl:y,focused:S,error:k=!1,disabled:R=!1,size:j="md",color:N="neutral",variant:H="outlined",startDecorator:P,endDecorator:M,minRows:F,maxRows:B,component:W,slots:L={},slotProps:A={}}=p,_=(0,o.Z)(p,Z),X=null!=(r=null!=(a=e.disabled)?a:null==y?void 0:y.disabled)?r:R,U=null!=(i=null!=(l=e.error)?l:null==y?void 0:y.error)?i:k,V=null!=(c=null!=(s=e.size)?s:null==y?void 0:y.size)?c:j,{getColor:q}=(0,x.VT)(H),J=q(e.color,U?"danger":null!=(d=null==y?void 0:y.color)?d:N),G=(0,n.Z)({},u,{color:J,disabled:X,error:U,focused:S,size:V,variant:H}),K=O(G),Q=(0,n.Z)({},_,{component:W,slots:L,slotProps:A}),[Y,ee]=(0,$.Z)("root",{ref:t,className:[K.root,f],elementType:z,externalForwardedProps:Q,getSlotProps:v,ownerState:G}),[et,er]=(0,$.Z)("textarea",{additionalProps:{id:null==y?void 0:y.htmlFor,"aria-describedby":null==y?void 0:y["aria-describedby"]},className:[K.textarea,g],elementType:T,internalForwardedProps:(0,n.Z)({},h,{minRows:F,maxRows:B}),externalForwardedProps:Q,getSlotProps:b,ownerState:G}),[eo,en]=(0,$.Z)("startDecorator",{className:K.startDecorator,elementType:D,externalForwardedProps:Q,ownerState:G}),[ea,ei]=(0,$.Z)("endDecorator",{className:K.endDecorator,elementType:I,externalForwardedProps:Q,ownerState:G});return(0,m.jsxs)(Y,(0,n.Z)({},ee,{children:[P&&(0,m.jsx)(eo,(0,n.Z)({},en,{children:P})),(0,m.jsx)(et,(0,n.Z)({},er)),M&&(0,m.jsx)(ea,(0,n.Z)({},ei,{children:M}))]}))});var j=R},50157:function(e,t,r){r.d(t,{default:function(){return tl}});var o=r(86006),n=r(90151),a=r(8683),i=r.n(a),l=r(40431),c=r(18050),s=r(49449),d=r(43663),u=r(38340),p=r(65877),m=r(89301),h=r(71971),f=r(965),g=r(27859),v=r(42442);function b(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch(e){return t}}function y(e){var t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(t){t.total>0&&(t.percent=t.loaded/t.total*100),e.onProgress(t)});var r=new FormData;e.data&&Object.keys(e.data).forEach(function(t){var o=e.data[t];if(Array.isArray(o)){o.forEach(function(e){r.append("".concat(t,"[]"),e)});return}r.append(t,o)}),e.file instanceof Blob?r.append(e.filename,e.file,e.file.name):r.append(e.filename,e.file),t.onerror=function(t){e.onError(t)},t.onload=function(){if(t.status<200||t.status>=300){var r;return e.onError(((r=Error("cannot ".concat(e.method," ").concat(e.action," ").concat(t.status,"'"))).status=t.status,r.method=e.method,r.url=e.action,r),b(t))}return e.onSuccess(b(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);var o=e.headers||{};return null!==o["X-Requested-With"]&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(o).forEach(function(e){null!==o[e]&&t.setRequestHeader(e,o[e])}),t.send(r),{abort:function(){t.abort()}}}var w=+new Date,x=0;function $(){return"rc-upload-".concat(w,"-").concat(++x)}var S=r(5004),k=function(e,t){if(e&&t){var r=Array.isArray(t)?t:t.split(","),o=e.name||"",n=e.type||"",a=n.replace(/\/.*$/,"");return r.some(function(e){var t=e.trim();if(/^\*(\/\*)?$/.test(e))return!0;if("."===t.charAt(0)){var r=o.toLowerCase(),i=t.toLowerCase(),l=[i];return(".jpg"===i||".jpeg"===i)&&(l=[".jpg",".jpeg"]),l.some(function(e){return r.endsWith(e)})}return/\/\*$/.test(t)?a===t.replace(/\/.*$/,""):n===t||!!/^\w+$/.test(t)&&((0,S.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(t,"'.Skip for check.")),!0)})}return!0},C=function(e,t,r){var o=function e(o,n){if(o.path=n||"",o.isFile)o.file(function(e){r(e)&&(o.fullPath&&!e.webkitRelativePath&&(Object.defineProperties(e,{webkitRelativePath:{writable:!0}}),e.webkitRelativePath=o.fullPath.replace(/^\//,""),Object.defineProperties(e,{webkitRelativePath:{writable:!1}})),t([e]))});else if(o.isDirectory){var a,i,l;a=function(t){t.forEach(function(t){e(t,"".concat(n).concat(o.name,"/"))})},i=o.createReader(),l=[],function e(){i.readEntries(function(t){var r=Array.prototype.slice.apply(t);l=l.concat(r),r.length?e():a(l)})}()}};e.forEach(function(e){o(e.webkitGetAsEntry())})},E=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],Z=function(e){(0,d.Z)(r,e);var t=(0,u.Z)(r);function r(){(0,c.Z)(this,r);for(var e,o,a=arguments.length,i=Array(a),l=0;l{let{uid:r}=t;return r===e.uid});return -1===o?r.push(e):r[o]=e,r}function K(e,t){let r=void 0!==e.uid?"uid":"name";return t.filter(t=>t[r]===e[r])[0]}let Q=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.split("/"),r=t[t.length-1],o=r.split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(o)||[""])[0]},Y=e=>0===e.indexOf("image/"),ee=e=>{if(e.type&&!e.thumbUrl)return Y(e.type);let t=e.thumbUrl||e.url||"",r=Q(t);return!!(/^data:image\//.test(t)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(r))||!/^data:/.test(t)&&!r};function et(e){return new Promise(t=>{if(!e.type||!Y(e.type)){t("");return}let r=document.createElement("canvas");r.width=200,r.height=200,r.style.cssText="position: fixed; left: 0; top: 0; width: 200px; height: 200px; z-index: 9999; display: none;",document.body.appendChild(r);let o=r.getContext("2d"),n=new Image;if(n.onload=()=>{let{width:e,height:a}=n,i=200,l=200,c=0,s=0;e>a?s=-((l=a*(200/e))-i)/2:c=-((i=e*(200/a))-l)/2,o.drawImage(n,c,s,i,l);let d=r.toDataURL();document.body.removeChild(r),t(d)},n.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){let t=new FileReader;t.addEventListener("load",()=>{t.result&&(n.src=t.result)}),t.readAsDataURL(e)}else n.src=window.URL.createObjectURL(e)})}var er={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},eo=o.forwardRef(function(e,t){return o.createElement(P.Z,(0,l.Z)({},e,{ref:t,icon:er}))}),en={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},ea=o.forwardRef(function(e,t){return o.createElement(P.Z,(0,l.Z)({},e,{ref:t,icon:en}))}),ei={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},el=o.forwardRef(function(e,t){return o.createElement(P.Z,(0,l.Z)({},e,{ref:t,icon:ei}))}),ec=r(34777),es=r(95131),ed=r(56222),eu=r(31533),ep=r(73234),em=r(88684),eh={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},ef=function(){var e=(0,o.useRef)([]),t=(0,o.useRef)(null);return(0,o.useEffect)(function(){var r=Date.now(),o=!1;e.current.forEach(function(e){if(e){o=!0;var n=e.style;n.transitionDuration=".3s, .3s, .3s, .06s",t.current&&r-t.current<100&&(n.transitionDuration="0s, 0s")}}),o&&(t.current=Date.now())}),e.current},eg=r(60456),ev=r(71693),eb=0,ey=(0,ev.Z)(),ew=function(e){var t=o.useState(),r=(0,eg.Z)(t,2),n=r[0],a=r[1];return o.useEffect(function(){var e;a("rc_progress_".concat((ey?(e=eb,eb+=1):e="TEST_OR_SSR",e)))},[]),e||n},ex=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function e$(e){return+e.replace("%","")}function eS(e){var t=null!=e?e:[];return Array.isArray(t)?t:[t]}var ek=function(e,t,r,o,n,a,i,l,c,s){var d=arguments.length>10&&void 0!==arguments[10]?arguments[10]:0,u=(100-o)/100*t;return"round"===c&&100!==o&&(u+=s/2)>=t&&(u=t-.01),{stroke:"string"==typeof l?l:void 0,strokeDasharray:"".concat(t,"px ").concat(e),strokeDashoffset:u+d,transform:"rotate(".concat(n+r/100*360*((360-a)/360)+(0===a?0:({bottom:0,top:180,left:90,right:-90})[i]),"deg)"),transformOrigin:"0 0",transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},eC=function(e){var t,r,n,a,c=(0,em.Z)((0,em.Z)({},eh),e),s=c.id,d=c.prefixCls,u=c.steps,p=c.strokeWidth,h=c.trailWidth,g=c.gapDegree,v=void 0===g?0:g,b=c.gapPosition,y=c.trailColor,w=c.strokeLinecap,x=c.style,$=c.className,S=c.strokeColor,k=c.percent,C=(0,m.Z)(c,ex),E=ew(s),Z="".concat(E,"-gradient"),O=50-p/2,z=2*Math.PI*O,T=v>0?90+v/2:-90,D=z*((360-v)/360),I="object"===(0,f.Z)(u)?u:{count:u,space:2},R=I.count,j=I.space,N=ek(z,D,0,100,T,v,b,y,w,p),H=eS(k),P=eS(S),M=P.find(function(e){return e&&"object"===(0,f.Z)(e)}),F=ef();return o.createElement("svg",(0,l.Z)({className:i()("".concat(d,"-circle"),$),viewBox:"".concat(-50," ").concat(-50," ").concat(100," ").concat(100),style:x,id:s,role:"presentation"},C),M&&o.createElement("defs",null,o.createElement("linearGradient",{id:Z,x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(M).sort(function(e,t){return e$(e)-e$(t)}).map(function(e,t){return o.createElement("stop",{key:t,offset:e,stopColor:M[e]})}))),!R&&o.createElement("circle",{className:"".concat(d,"-circle-trail"),r:O,cx:0,cy:0,stroke:y,strokeLinecap:w,strokeWidth:h||p,style:N}),R?(t=Math.round(R*(H[0]/100)),r=100/R,n=0,Array(R).fill(null).map(function(e,a){var i=a<=t-1?P[0]:y,l=i&&"object"===(0,f.Z)(i)?"url(#".concat(Z,")"):void 0,c=ek(z,D,n,r,T,v,b,i,"butt",p,j);return n+=(D-c.strokeDashoffset+j)*100/D,o.createElement("circle",{key:a,className:"".concat(d,"-circle-path"),r:O,cx:0,cy:0,stroke:l,strokeWidth:p,opacity:1,style:c,ref:function(e){F[a]=e}})})):(a=0,H.map(function(e,t){var r=P[t]||P[P.length-1],n=r&&"object"===(0,f.Z)(r)?"url(#".concat(Z,")"):void 0,i=ek(z,D,a,e,T,v,b,r,w,p);return a+=e,o.createElement("circle",{key:t,className:"".concat(d,"-circle-path"),r:O,cx:0,cy:0,stroke:n,strokeLinecap:w,strokeWidth:p,opacity:0===e?0:1,style:i,ref:function(e){F[t]=e}})}).reverse()))},eE=r(15241),eZ=r(70333);function eO(e){return!e||e<0?0:e>100?100:e}function ez(e){let{success:t,successPercent:r}=e,o=r;return t&&"progress"in t&&(o=t.progress),t&&"percent"in t&&(o=t.percent),o}let eT=e=>{let{percent:t,success:r,successPercent:o}=e,n=eO(ez({success:r,successPercent:o}));return[n,eO(eO(t)-n)]},eD=e=>{let{success:t={},strokeColor:r}=e,{strokeColor:o}=t;return[o||eZ.ez.green,r||null]},eI=(e,t,r)=>{var o,n,a,i;let l=-1,c=-1;if("step"===t){let t=r.steps,o=r.strokeWidth;"string"==typeof e||void 0===e?(l="small"===e?2:14,c=null!=o?o:8):"number"==typeof e?[l,c]=[e,e]:[l=14,c=8]=e,l*=t}else if("line"===t){let t=null==r?void 0:r.strokeWidth;"string"==typeof e||void 0===e?c=t||("small"===e?6:8):"number"==typeof e?[l,c]=[e,e]:[l=-1,c=8]=e}else("circle"===t||"dashboard"===t)&&("string"==typeof e||void 0===e?[l,c]="small"===e?[60,60]:[120,120]:"number"==typeof e?[l,c]=[e,e]:(l=null!==(n=null!==(o=e[0])&&void 0!==o?o:e[1])&&void 0!==n?n:120,c=null!==(i=null!==(a=e[0])&&void 0!==a?a:e[1])&&void 0!==i?i:120));return[l,c]},eR=e=>3/e*100;var ej=e=>{let{prefixCls:t,trailColor:r=null,strokeLinecap:n="round",gapPosition:a,gapDegree:l,width:c=120,type:s,children:d,success:u,size:p=c}=e,[m,h]=eI(p,"circle"),{strokeWidth:f}=e;void 0===f&&(f=Math.max(eR(m),6));let g=o.useMemo(()=>l||0===l?l:"dashboard"===s?75:void 0,[l,s]),v=a||"dashboard"===s&&"bottom"||void 0,b="[object Object]"===Object.prototype.toString.call(e.strokeColor),y=eD({success:u,strokeColor:e.strokeColor}),w=i()(`${t}-inner`,{[`${t}-circle-gradient`]:b}),x=o.createElement(eC,{percent:eT(e),strokeWidth:f,trailWidth:f,strokeColor:y,strokeLinecap:n,trailColor:r,prefixCls:t,gapDegree:g,gapPosition:v});return o.createElement("div",{className:w,style:{width:m,height:h,fontSize:.15*m+6}},m<=20?o.createElement(eE.Z,{title:d},o.createElement("span",null,x)):o.createElement(o.Fragment,null,x,d))},eN=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&0>t.indexOf(o)&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,o=Object.getOwnPropertySymbols(e);nt.indexOf(o[n])&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]]);return r};let eH=e=>{let t=[];return Object.keys(e).forEach(r=>{let o=parseFloat(r.replace(/%/g,""));isNaN(o)||t.push({key:o,value:e[r]})}),(t=t.sort((e,t)=>e.key-t.key)).map(e=>{let{key:t,value:r}=e;return`${r} ${t}%`}).join(", ")},eP=(e,t)=>{let{from:r=eZ.ez.blue,to:o=eZ.ez.blue,direction:n="rtl"===t?"to left":"to right"}=e,a=eN(e,["from","to","direction"]);if(0!==Object.keys(a).length){let e=eH(a);return{backgroundImage:`linear-gradient(${n}, ${e})`}}return{backgroundImage:`linear-gradient(${n}, ${r}, ${o})`}};var eM=e=>{let{prefixCls:t,direction:r,percent:n,size:a,strokeWidth:i,strokeColor:l,strokeLinecap:c="round",children:s,trailColor:d=null,success:u}=e,p=l&&"string"!=typeof l?eP(l,r):{backgroundColor:l},m="square"===c||"butt"===c?0:void 0,h=null!=a?a:[-1,i||("small"===a?6:8)],[f,g]=eI(h,"line",{strokeWidth:i}),v=Object.assign({width:`${eO(n)}%`,height:g,borderRadius:m},p),b=ez(e),y={width:`${eO(b)}%`,height:g,borderRadius:m,backgroundColor:null==u?void 0:u.strokeColor};return o.createElement(o.Fragment,null,o.createElement("div",{className:`${t}-outer`,style:{width:f<0?"100%":f,height:g}},o.createElement("div",{className:`${t}-inner`,style:{backgroundColor:d||void 0,borderRadius:m}},o.createElement("div",{className:`${t}-bg`,style:v}),void 0!==b?o.createElement("div",{className:`${t}-success-bg`,style:y}):null)),s)},eF=e=>{let{size:t,steps:r,percent:n=0,strokeWidth:a=8,strokeColor:l,trailColor:c=null,prefixCls:s,children:d}=e,u=Math.round(r*(n/100)),p=null!=t?t:["small"===t?2:14,a],[m,h]=eI(p,"step",{steps:r,strokeWidth:a}),f=m/r,g=Array(r);for(let e=0;e{let{componentCls:t,iconCls:r}=e;return{[t]:Object.assign(Object.assign({},(0,eA.Wf)(e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize,marginInlineEnd:e.marginXS,marginBottom:e.marginXS},[`${t}-outer`]:{display:"inline-block",width:"100%"},[`&${t}-show-info`]:{[`${t}-outer`]:{marginInlineEnd:`calc(-2em - ${e.marginXS}px)`,paddingInlineEnd:`calc(2em + ${e.paddingXS}px)`}},[`${t}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:e.progressRemainingColor,borderRadius:e.progressLineRadius},[`${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorInfo}},[`${t}-success-bg, ${t}-bg`]:{position:"relative",backgroundColor:e.colorInfo,borderRadius:e.progressLineRadius,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`},[`${t}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},[`${t}-text`]:{display:"inline-block",width:"2em",marginInlineStart:e.marginXS,color:e.progressInfoTextColor,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[r]:{fontSize:e.fontSize}},[`&${t}-status-active`]:{[`${t}-bg::before`]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.progressLineRadius,opacity:0,animationName:e_,animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-status-exception`]:{[`${t}-bg`]:{backgroundColor:e.colorError},[`${t}-text`]:{color:e.colorError}},[`&${t}-status-exception ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}},[`&${t}-status-success`]:{[`${t}-bg`]:{backgroundColor:e.colorSuccess},[`${t}-text`]:{color:e.colorSuccess}},[`&${t}-status-success ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}})}},eU=e=>{let{componentCls:t,iconCls:r}=e;return{[t]:{[`${t}-circle-trail`]:{stroke:e.progressRemainingColor},[`&${t}-circle ${t}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${t}-circle ${t}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.colorText,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[r]:{fontSize:`${e.fontSize/e.fontSizeSM}em`}},[`${t}-circle&-status-exception`]:{[`${t}-text`]:{color:e.colorError}},[`${t}-circle&-status-success`]:{[`${t}-text`]:{color:e.colorSuccess}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},eV=e=>{let{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,marginInlineEnd:e.progressStepMarginInlineEnd,backgroundColor:e.progressRemainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.colorInfo}}}}}},eq=e=>{let{componentCls:t,iconCls:r}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${r}`]:{fontSize:e.fontSizeSM}}}};var eJ=(0,eW.Z)("Progress",e=>{let t=e.marginXXS/2,r=(0,eL.TS)(e,{progressLineRadius:100,progressInfoTextColor:e.colorText,progressDefaultColor:e.colorInfo,progressRemainingColor:e.colorFillSecondary,progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[eX(r),eU(r),eV(r),eq(r)]}),eG=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&0>t.indexOf(o)&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,o=Object.getOwnPropertySymbols(e);nt.indexOf(o[n])&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]]);return r};let eK=["normal","exception","active","success"],eQ=o.forwardRef((e,t)=>{let r;let{prefixCls:n,className:a,rootClassName:l,steps:c,strokeColor:s,percent:d=0,size:u="default",showInfo:p=!0,type:m="line",status:h,format:f}=e,g=eG(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format"]),v=o.useMemo(()=>{var t,r;let o=ez(e);return parseInt(void 0!==o?null===(t=null!=o?o:0)||void 0===t?void 0:t.toString():null===(r=null!=d?d:0)||void 0===r?void 0:r.toString(),10)},[d,e.success,e.successPercent]),b=o.useMemo(()=>!eK.includes(h)&&v>=100?"success":h||"normal",[h,v]),{getPrefixCls:y,direction:w}=o.useContext(I.E_),x=y("progress",n),[$,S]=eJ(x),k=o.useMemo(()=>{let t;if(!p)return null;let r=ez(e),n=f||(e=>`${e}%`),a="line"===m;return f||"exception"!==b&&"success"!==b?t=n(eO(d),eO(r)):"exception"===b?t=a?o.createElement(ed.Z,null):o.createElement(eu.Z,null):"success"===b&&(t=a?o.createElement(ec.Z,null):o.createElement(es.Z,null)),o.createElement("span",{className:`${x}-text`,title:"string"==typeof t?t:void 0},t)},[p,d,v,b,m,x,f]),C=Array.isArray(s)?s[0]:s,E="string"==typeof s||Array.isArray(s)?s:void 0;"line"===m?r=c?o.createElement(eF,Object.assign({},e,{strokeColor:E,prefixCls:x,steps:c}),k):o.createElement(eM,Object.assign({},e,{strokeColor:C,prefixCls:x,direction:w}),k):("circle"===m||"dashboard"===m)&&(r=o.createElement(ej,Object.assign({},e,{strokeColor:C,prefixCls:x,progressStatus:b}),k));let Z=i()(x,{[`${x}-inline-circle`]:"circle"===m&&eI(u,"circle")[0]<=20,[`${x}-${"dashboard"===m&&"circle"||c&&"steps"||m}`]:!0,[`${x}-status-${b}`]:!0,[`${x}-show-info`]:p,[`${x}-${u}`]:"string"==typeof u,[`${x}-rtl`]:"rtl"===w},a,l,S);return $(o.createElement("div",Object.assign({ref:t,className:Z,role:"progressbar","aria-valuenow":v},(0,ep.Z)(g,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),r))}),eY=o.forwardRef((e,t)=>{var r,n;let{prefixCls:a,className:l,style:c,locale:s,listType:d,file:u,items:p,progress:m,iconRender:h,actionIconRender:f,itemRender:g,isImgUrl:v,showPreviewIcon:b,showRemoveIcon:y,showDownloadIcon:w,previewIcon:x,removeIcon:$,downloadIcon:S,onPreview:k,onDownload:C,onClose:E}=e,{status:Z}=u,[O,z]=o.useState(Z);o.useEffect(()=>{"removed"!==Z&&z(Z)},[Z]);let[T,D]=o.useState(!1),R=o.useRef(null);o.useEffect(()=>(R.current=setTimeout(()=>{D(!0)},300),()=>{R.current&&clearTimeout(R.current)}),[]);let j=h(u),N=o.createElement("div",{className:`${a}-icon`},j);if("picture"===d||"picture-card"===d||"picture-circle"===d){if("uploading"!==O&&(u.thumbUrl||u.url)){let e=(null==v?void 0:v(u))?o.createElement("img",{src:u.thumbUrl||u.url,alt:u.name,className:`${a}-list-item-image`,crossOrigin:u.crossOrigin}):j,t=i()({[`${a}-list-item-thumbnail`]:!0,[`${a}-list-item-file`]:v&&!v(u)});N=o.createElement("a",{className:t,onClick:e=>k(u,e),href:u.url||u.thumbUrl,target:"_blank",rel:"noopener noreferrer"},e)}else{let e=i()({[`${a}-list-item-thumbnail`]:!0,[`${a}-list-item-file`]:"uploading"!==O});N=o.createElement("div",{className:e},j)}}let H=i()(`${a}-list-item`,`${a}-list-item-${O}`),P="string"==typeof u.linkProps?JSON.parse(u.linkProps):u.linkProps,M=y?f(("function"==typeof $?$(u):$)||o.createElement(eo,null),()=>E(u),a,s.removeFile):null,F=w&&"done"===O?f(("function"==typeof S?S(u):S)||o.createElement(ea,null),()=>C(u),a,s.downloadFile):null,B="picture-card"!==d&&"picture-circle"!==d&&o.createElement("span",{key:"download-delete",className:i()(`${a}-list-item-actions`,{picture:"picture"===d})},F,M),W=i()(`${a}-list-item-name`),L=u.url?[o.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:W,title:u.name},P,{href:u.url,onClick:e=>k(u,e)}),u.name),B]:[o.createElement("span",{key:"view",className:W,onClick:e=>k(u,e),title:u.name},u.name),B],A=b?o.createElement("a",{href:u.url||u.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:u.url||u.thumbUrl?void 0:{pointerEvents:"none",opacity:.5},onClick:e=>k(u,e),title:s.previewFile},"function"==typeof x?x(u):x||o.createElement(el,null)):null,X=("picture-card"===d||"picture-circle"===d)&&"uploading"!==O&&o.createElement("span",{className:`${a}-list-item-actions`},A,"done"===O&&F,M),{getPrefixCls:U}=o.useContext(I.E_),V=U(),q=o.createElement("div",{className:H},N,L,X,T&&o.createElement(_.ZP,{motionName:`${V}-fade`,visible:"uploading"===O,motionDeadline:2e3},e=>{let{className:t}=e,r="percent"in u?o.createElement(eQ,Object.assign({},m,{type:"line",percent:u.percent,"aria-label":u["aria-label"],"aria-labelledby":u["aria-labelledby"]})):null;return o.createElement("div",{className:i()(`${a}-list-item-progress`,t)},r)})),J=u.response&&"string"==typeof u.response?u.response:(null===(r=u.error)||void 0===r?void 0:r.statusText)||(null===(n=u.error)||void 0===n?void 0:n.message)||s.uploadError,G="error"===O?o.createElement(eE.Z,{title:J,getPopupContainer:e=>e.parentNode},q):q;return o.createElement("div",{className:i()(`${a}-list-item-container`,l),style:c,ref:t},g?g(G,u,p,{download:C.bind(null,u),preview:k.bind(null,u),remove:E.bind(null,u)}):G)}),e0=o.forwardRef((e,t)=>{let{listType:r="text",previewFile:a=et,onPreview:l,onDownload:c,onRemove:s,locale:d,iconRender:u,isImageUrl:p=ee,prefixCls:m,items:h=[],showPreviewIcon:f=!0,showRemoveIcon:g=!0,showDownloadIcon:v=!1,removeIcon:b,previewIcon:y,downloadIcon:w,progress:x={size:[-1,2],showInfo:!1},appendAction:$,appendActionVisible:S=!0,itemRender:k,disabled:C}=e,E=(0,X.Z)(),[Z,O]=o.useState(!1);o.useEffect(()=>{("picture"===r||"picture-card"===r||"picture-circle"===r)&&(h||[]).forEach(e=>{"undefined"!=typeof document&&"undefined"!=typeof window&&window.FileReader&&window.File&&(e.originFileObj instanceof File||e.originFileObj instanceof Blob)&&void 0===e.thumbUrl&&(e.thumbUrl="",a&&a(e.originFileObj).then(t=>{e.thumbUrl=t||"",E()}))})},[r,h,a]),o.useEffect(()=>{O(!0)},[]);let z=(e,t)=>{if(l)return null==t||t.preventDefault(),l(e)},T=e=>{"function"==typeof c?c(e):e.url&&window.open(e.url)},D=e=>{null==s||s(e)},R=e=>{if(u)return u(e,r);let t="uploading"===e.status,n=p&&p(e)?o.createElement(A,null):o.createElement(M,null),a=t?o.createElement(F.Z,null):o.createElement(W,null);return"picture"===r?a=t?o.createElement(F.Z,null):n:("picture-card"===r||"picture-circle"===r)&&(a=t?d.uploading:n),a},j=(e,t,r,n)=>{let a={type:"text",size:"small",title:n,onClick:r=>{t(),(0,V.l$)(e)&&e.props.onClick&&e.props.onClick(r)},className:`${r}-list-item-action`,disabled:C};if((0,V.l$)(e)){let t=(0,V.Tm)(e,Object.assign(Object.assign({},e.props),{onClick:()=>{}}));return o.createElement(q.ZP,Object.assign({},a,{icon:t}))}return o.createElement(q.ZP,Object.assign({},a),o.createElement("span",null,e))};o.useImperativeHandle(t,()=>({handlePreview:z,handleDownload:T}));let{getPrefixCls:N}=o.useContext(I.E_),H=N("upload",m),P=N(),B=i()({[`${H}-list`]:!0,[`${H}-list-${r}`]:!0}),L=(0,n.Z)(h.map(e=>({key:e.uid,file:e}))),J="picture-card"===r||"picture-circle"===r?"animate-inline":"animate",G={motionDeadline:2e3,motionName:`${H}-${J}`,keys:L,motionAppear:Z},K=o.useMemo(()=>{let e=Object.assign({},(0,U.ZP)(P));return delete e.onAppearEnd,delete e.onEnterEnd,delete e.onLeaveEnd,e},[P]);return"picture-card"!==r&&"picture-circle"!==r&&(G=Object.assign(Object.assign({},K),G)),o.createElement("div",{className:B},o.createElement(_.V4,Object.assign({},G,{component:!1}),e=>{let{key:t,file:n,className:a,style:i}=e;return o.createElement(eY,{key:t,locale:d,prefixCls:H,className:a,style:i,file:n,items:h,progress:x,listType:r,isImgUrl:p,showPreviewIcon:f,showRemoveIcon:g,showDownloadIcon:v,removeIcon:b,previewIcon:y,downloadIcon:w,iconRender:R,actionIconRender:j,itemRender:k,onPreview:z,onDownload:T,onClose:D})}),$&&o.createElement(_.ZP,Object.assign({},G,{visible:S,forceRender:!0}),e=>{let{className:t,style:r}=e;return(0,V.Tm)($,e=>({className:i()(e.className,t),style:Object.assign(Object.assign(Object.assign({},r),{pointerEvents:t?"none":void 0}),e.style)}))}))});var e1=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut}, + opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut}, + opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),e2=e=>{let{componentCls:t,iconCls:r}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${e.lineWidth}px dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[t]:{padding:`${e.padding}px 0`},[`${t}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${t}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimaryHover},[`p${t}-drag-icon`]:{marginBottom:e.margin,[r]:{color:e.colorPrimary,fontSize:e.uploadThumbnailSize}},[`p${t}-text`]:{margin:`0 0 ${e.marginXXS}px`,color:e.colorTextHeading,fontSize:e.fontSizeLG},[`p${t}-hint`]:{color:e.colorTextDescription,fontSize:e.fontSize},[`&${t}-disabled`]:{cursor:"not-allowed",[`p${t}-drag-icon ${r}, + p${t}-text, + p${t}-hint + `]:{color:e.colorTextDisabled}}}}}},e3=e=>{let{componentCls:t,antCls:r,iconCls:o,fontSize:n,lineHeight:a}=e,i=`${t}-list-item`,l=`${i}-actions`,c=`${i}-action`,s=Math.round(n*a);return{[`${t}-wrapper`]:{[`${t}-list`]:Object.assign(Object.assign({},(0,eA.dF)()),{lineHeight:e.lineHeight,[i]:{position:"relative",height:e.lineHeight*n,marginTop:e.marginXS,fontSize:n,display:"flex",alignItems:"center",transition:`background-color ${e.motionDurationSlow}`,"&:hover":{backgroundColor:e.controlItemBgHover},[`${i}-name`]:Object.assign(Object.assign({},eA.vS),{padding:`0 ${e.paddingXS}px`,lineHeight:a,flex:"auto",transition:`all ${e.motionDurationSlow}`}),[l]:{[c]:{opacity:0},[`${c}${r}-btn-sm`]:{height:s,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[` + ${c}:focus, + &.picture ${c} + `]:{opacity:1},[o]:{color:e.actionsColor,transition:`all ${e.motionDurationSlow}`},[`&:hover ${o}`]:{color:e.colorText}},[`${t}-icon ${o}`]:{color:e.colorTextDescription,fontSize:n},[`${i}-progress`]:{position:"absolute",bottom:-e.uploadProgressOffset,width:"100%",paddingInlineStart:n+e.paddingXS,fontSize:n,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${i}:hover ${c}`]:{opacity:1,color:e.colorText},[`${i}-error`]:{color:e.colorError,[`${i}-name, ${t}-icon ${o}`]:{color:e.colorError},[l]:{[`${o}, ${o}:hover`]:{color:e.colorError},[c]:{opacity:1}}},[`${t}-list-item-container`]:{transition:`opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}};let e6=new eB.E4("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),e4=new eB.E4("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var e8=e=>{let{componentCls:t}=e,r=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${r}-appear, ${r}-enter, ${r}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${r}-appear, ${r}-enter`]:{animationName:e6},[`${r}-leave`]:{animationName:e4}}},e6,e4]},e7=r(57389);let e5=e=>{let{componentCls:t,iconCls:r,uploadThumbnailSize:o,uploadProgressOffset:n}=e,a=`${t}-list`,i=`${a}-item`;return{[`${t}-wrapper`]:{[` + ${a}${a}-picture, + ${a}${a}-picture-card, + ${a}${a}-picture-circle + `]:{[i]:{position:"relative",height:o+2*e.lineWidth+2*e.paddingXS,padding:e.paddingXS,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${i}-thumbnail`]:Object.assign(Object.assign({},eA.vS),{width:o,height:o,lineHeight:`${o+e.paddingSM}px`,textAlign:"center",flex:"none",[r]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${i}-progress`]:{bottom:n,width:`calc(100% - ${2*e.paddingSM}px)`,marginTop:0,paddingInlineStart:o+e.paddingXS}},[`${i}-error`]:{borderColor:e.colorError,[`${i}-thumbnail ${r}`]:{[`svg path[fill='${eZ.iN[0]}']`]:{fill:e.colorErrorBg},[`svg path[fill='${eZ.iN.primary}']`]:{fill:e.colorError}}},[`${i}-uploading`]:{borderStyle:"dashed",[`${i}-name`]:{marginBottom:n}}},[`${a}${a}-picture-circle ${i}`]:{[`&, &::before, ${i}-thumbnail`]:{borderRadius:"50%"}}}}},e9=e=>{let{componentCls:t,iconCls:r,fontSizeLG:o,colorTextLightSolid:n}=e,a=`${t}-list`,i=`${a}-item`,l=e.uploadPicCardSize;return{[` + ${t}-wrapper${t}-picture-card-wrapper, + ${t}-wrapper${t}-picture-circle-wrapper + `]:Object.assign(Object.assign({},(0,eA.dF)()),{display:"inline-block",width:"100%",[`${t}${t}-select`]:{width:l,height:l,marginInlineEnd:e.marginXS,marginBottom:e.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${e.lineWidth}px dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[`> ${t}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimary}},[`${a}${a}-picture-card, ${a}${a}-picture-circle`]:{[`${a}-item-container`]:{display:"inline-block",width:l,height:l,marginBlock:`0 ${e.marginXS}px`,marginInline:`0 ${e.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[i]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${2*e.paddingXS}px)`,height:`calc(100% - ${2*e.paddingXS}px)`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'" "'}},[`${i}:hover`]:{[`&::before, ${i}-actions`]:{opacity:1}},[`${i}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${e.motionDurationSlow}`,[`${r}-eye, ${r}-download, ${r}-delete`]:{zIndex:10,width:o,margin:`0 ${e.marginXXS}px`,fontSize:o,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${i}-actions, ${i}-actions:hover`]:{[`${r}-eye, ${r}-download, ${r}-delete`]:{color:new e7.C(n).setAlpha(.65).toRgbString(),"&:hover":{color:n}}},[`${i}-thumbnail, ${i}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${i}-name`]:{display:"none",textAlign:"center"},[`${i}-file + ${i}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${2*e.paddingXS}px)`},[`${i}-uploading`]:{[`&${i}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${r}-eye, ${r}-download, ${r}-delete`]:{display:"none"}},[`${i}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${2*e.paddingXS}px)`,paddingInlineStart:0}}}),[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}};var te=e=>{let{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}};let tt=e=>{let{componentCls:t,colorTextDisabled:r}=e;return{[`${t}-wrapper`]:Object.assign(Object.assign({},(0,eA.Wf)(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-disabled`]:{color:r,cursor:"not-allowed"}})}};var tr=(0,eW.Z)("Upload",e=>{let{fontSizeHeading3:t,fontSize:r,lineHeight:o,lineWidth:n,controlHeightLG:a}=e,i=(0,eL.TS)(e,{uploadThumbnailSize:2*t,uploadProgressOffset:Math.round(r*o)/2+n,uploadPicCardSize:2.55*a});return[tt(i),e2(i),e5(i),e9(i),e3(i),e8(i),te(i),e1(i)]},e=>({actionsColor:e.colorTextDescription}));let to=`__LIST_IGNORE_${Date.now()}__`,tn=o.forwardRef((e,t)=>{var r;let{fileList:a,defaultFileList:l,onRemove:c,showUploadList:s=!0,listType:d="text",onPreview:u,onDownload:p,onChange:m,onDrop:h,previewFile:f,disabled:g,locale:v,iconRender:b,isImageUrl:y,progress:w,prefixCls:x,className:$,type:S="select",children:k,style:C,itemRender:E,maxCount:Z,data:O={},multiple:H=!1,action:P="",accept:M="",supportServerRender:F=!0}=e,B=o.useContext(R.Z),W=null!=g?g:B,[L,A]=(0,T.Z)(l||[],{value:a,postState:e=>null!=e?e:[]}),[_,X]=o.useState("drop"),U=o.useRef(null);o.useMemo(()=>{let e=Date.now();(a||[]).forEach((t,r)=>{t.uid||Object.isFrozen(t)||(t.uid=`__AUTO__${e}_${r}__`)})},[a]);let V=(e,t,r)=>{let o=(0,n.Z)(t),a=!1;1===Z?o=o.slice(-1):Z&&(a=!0,o=o.slice(0,Z)),(0,D.flushSync)(()=>{A(o)});let i={file:e,fileList:o};r&&(i.event=r),(!a||o.some(t=>t.uid===e.uid))&&(0,D.flushSync)(()=>{null==m||m(i)})},q=e=>{let t=e.filter(e=>!e.file[to]);if(!t.length)return;let r=t.map(e=>J(e.file)),o=(0,n.Z)(L);r.forEach(e=>{o=G(e,o)}),r.forEach((e,r)=>{let n=e;if(t[r].parsedFile)e.status="uploading";else{let t;let{originFileObj:r}=e;try{t=new File([r],r.name,{type:r.type})}catch(e){(t=new Blob([r],{type:r.type})).name=r.name,t.lastModifiedDate=new Date,t.lastModified=new Date().getTime()}t.uid=e.uid,n=t}V(n,o)})},Q=(e,t,r)=>{try{"string"==typeof e&&(e=JSON.parse(e))}catch(e){}if(!K(t,L))return;let o=J(t);o.status="done",o.percent=100,o.response=e,o.xhr=r;let n=G(o,L);V(o,n)},Y=(e,t)=>{if(!K(t,L))return;let r=J(t);r.status="uploading",r.percent=e.percent;let o=G(r,L);V(r,o,e)},ee=(e,t,r)=>{if(!K(r,L))return;let o=J(r);o.error=e,o.response=t,o.status="error";let n=G(o,L);V(o,n)},et=e=>{let t;Promise.resolve("function"==typeof c?c(e):c).then(r=>{var o;if(!1===r)return;let n=function(e,t){let r=void 0!==e.uid?"uid":"name",o=t.filter(t=>t[r]!==e[r]);return o.length===t.length?null:o}(e,L);n&&(t=Object.assign(Object.assign({},e),{status:"removed"}),null==L||L.forEach(e=>{let r=void 0!==t.uid?"uid":"name";e[r]!==t[r]||Object.isFrozen(e)||(e.status="removed")}),null===(o=U.current)||void 0===o||o.abort(t),V(t,n))})},er=e=>{X(e.type),"drop"===e.type&&(null==h||h(e))};o.useImperativeHandle(t,()=>({onBatchStart:q,onSuccess:Q,onProgress:Y,onError:ee,fileList:L,upload:U.current}));let{getPrefixCls:eo,direction:en}=o.useContext(I.E_),ea=eo("upload",x),ei=Object.assign(Object.assign({onBatchStart:q,onError:ee,onProgress:Y,onSuccess:Q},e),{data:O,multiple:H,action:P,accept:M,supportServerRender:F,prefixCls:ea,disabled:W,beforeUpload:(t,r)=>{var o,n,a,i;return o=void 0,n=void 0,a=void 0,i=function*(){let{beforeUpload:o,transformFile:n}=e,a=t;if(o){let e=yield o(t,r);if(!1===e)return!1;if(delete t[to],e===to)return Object.defineProperty(t,to,{value:!0,configurable:!0}),!1;"object"==typeof e&&e&&(a=e)}return n&&(a=yield n(a)),a},new(a||(a=Promise))(function(e,t){function r(e){try{c(i.next(e))}catch(e){t(e)}}function l(e){try{c(i.throw(e))}catch(e){t(e)}}function c(t){var o;t.done?e(t.value):((o=t.value)instanceof a?o:new a(function(e){e(o)})).then(r,l)}c((i=i.apply(o,n||[])).next())})},onChange:void 0});delete ei.className,delete ei.style,(!k||W)&&delete ei.id;let[el,ec]=tr(ea),[es]=(0,j.Z)("Upload",N.Z.Upload),{showRemoveIcon:ed,showPreviewIcon:eu,showDownloadIcon:ep,removeIcon:em,previewIcon:eh,downloadIcon:ef}="boolean"==typeof s?{}:s,eg=(e,t)=>s?o.createElement(e0,{prefixCls:ea,listType:d,items:L,previewFile:f,onPreview:u,onDownload:p,onRemove:et,showRemoveIcon:!W&&ed,showPreviewIcon:eu,showDownloadIcon:ep,removeIcon:em,previewIcon:eh,downloadIcon:ef,iconRender:b,locale:Object.assign(Object.assign({},es),v),isImageUrl:y,progress:w,appendAction:e,appendActionVisible:t,itemRender:E,disabled:W}):e,ev={[`${ea}-rtl`]:"rtl"===en};if("drag"===S){let e=i()(ea,{[`${ea}-drag`]:!0,[`${ea}-drag-uploading`]:L.some(e=>"uploading"===e.status),[`${ea}-drag-hover`]:"dragover"===_,[`${ea}-disabled`]:W,[`${ea}-rtl`]:"rtl"===en},ec);return el(o.createElement("span",{className:i()(`${ea}-wrapper`,ev,$,ec)},o.createElement("div",{className:e,onDrop:er,onDragOver:er,onDragLeave:er,style:C},o.createElement(z,Object.assign({},ei,{ref:U,className:`${ea}-btn`}),o.createElement("div",{className:`${ea}-drag-container`},k))),eg()))}let eb=i()(ea,`${ea}-select`,{[`${ea}-disabled`]:W}),ey=(r=k?void 0:{display:"none"},o.createElement("div",{className:eb,style:r},o.createElement(z,Object.assign({},ei,{ref:U}))));return el("picture-card"===d||"picture-circle"===d?o.createElement("span",{className:i()(`${ea}-wrapper`,{[`${ea}-picture-card-wrapper`]:"picture-card"===d,[`${ea}-picture-circle-wrapper`]:"picture-circle"===d},ev,$,ec)},eg(ey,!!k)):o.createElement("span",{className:i()(`${ea}-wrapper`,ev,$,ec)},ey,eg()))});var ta=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&0>t.indexOf(o)&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,o=Object.getOwnPropertySymbols(e);nt.indexOf(o[n])&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]]);return r};let ti=o.forwardRef((e,t)=>{var{style:r,height:n}=e,a=ta(e,["style","height"]);return o.createElement(tn,Object.assign({ref:t},a,{type:"drag",style:Object.assign(Object.assign({},r),{height:n})}))});tn.Dragger=ti,tn.LIST_IGNORE=to;var tl=tn}}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/925f3d25-1af7259455ef26bd.js b/pilot/server/static/_next/static/chunks/925f3d25-1af7259455ef26bd.js new file mode 100644 index 000000000..1f3bb7dc5 --- /dev/null +++ b/pilot/server/static/_next/static/chunks/925f3d25-1af7259455ef26bd.js @@ -0,0 +1,2 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[550],{65326:function(e,t,n){(e=n.nmd(e)).exports=function(){"use strict";function t(){return q.apply(null,arguments)}function n(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function s(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function i(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function r(e){var t;if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;for(t in e)if(i(e,t))return!1;return!0}function a(e){return void 0===e}function o(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function u(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function l(e,t){var n,s=[],i=e.length;for(n=0;n>>0;for(t=0;t0)for(n=0;n=0?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+s}t.suppressDeprecationWarnings=!1,t.deprecationHandler=null,J=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)i(e,t)&&n.push(t);return n};var N=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,P=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,R={},W={};function C(e,t,n,s){var i=s;"string"==typeof s&&(i=function(){return this[s]()}),e&&(W[e]=i),t&&(W[t[0]]=function(){return T(i.apply(this,arguments),t[1],t[2])}),n&&(W[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function U(e,t){return e.isValid()?(R[t=H(t,e.localeData())]=R[t]||function(e){var t,n,s,i=e.match(N);for(n=0,s=i.length;n=0&&P.test(e);)e=e.replace(P,s),P.lastIndex=0,n-=1;return e}var F={};function L(e,t){var n=e.toLowerCase();F[n]=F[n+"s"]=F[t]=e}function V(e){return"string"==typeof e?F[e]||F[e.toLowerCase()]:void 0}function E(e){var t,n,s={};for(n in e)i(e,n)&&(t=V(n))&&(s[t]=e[n]);return s}var G={};function A(e){return e%4==0&&e%100!=0||e%400==0}function I(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function j(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=I(t)),n}function Z(e,n){return function(s){return null!=s?($(this,e,s),t.updateOffset(this,n),this):z(this,e)}}function z(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function $(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&A(e.year())&&1===e.month()&&29===e.date()?(n=j(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),ew(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}var q,B,J,Q,X=/\d/,K=/\d\d/,ee=/\d{3}/,et=/\d{4}/,en=/[+-]?\d{6}/,es=/\d\d?/,ei=/\d\d\d\d?/,er=/\d\d\d\d\d\d?/,ea=/\d{1,3}/,eo=/\d{1,4}/,eu=/[+-]?\d{1,6}/,el=/\d+/,eh=/[+-]?\d+/,ed=/Z|[+-]\d\d:?\d\d/gi,ec=/Z|[+-]\d\d(?::?\d\d)?/gi,ef=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function em(e,t,n){Q[e]=O(t)?t:function(e,s){return e&&n?n:t}}function e_(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}Q={};var ey={};function eg(e,t){var n,s,i=t;for("string"==typeof e&&(e=[e]),o(t)&&(i=function(e,n){n[t]=j(e)}),s=e.length,n=0;n68?1900:2e3)};var eb=Z("FullYear",!0);function ex(e,t,n,s,i,r,a){var o;return e<100&&e>=0?isFinite((o=new Date(e+400,t,n,s,i,r,a)).getFullYear())&&o.setFullYear(e):o=new Date(e,t,n,s,i,r,a),o}function eT(e){var t,n;return e<100&&e>=0?(n=Array.prototype.slice.call(arguments),n[0]=e+400,isFinite((t=new Date(Date.UTC.apply(null,n))).getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function eN(e,t,n){var s=7+t-n;return-((7+eT(e,0,s).getUTCDay()-t)%7)+s-1}function eP(e,t,n,s,i){var r,a,o=1+7*(t-1)+(7+n-s)%7+eN(e,s,i);return o<=0?a=eO(r=e-1)+o:o>eO(e)?(r=e+1,a=o-eO(e)):(r=e,a=o),{year:r,dayOfYear:a}}function eR(e,t,n){var s,i,r=eN(e.year(),t,n),a=Math.floor((e.dayOfYear()-r-1)/7)+1;return a<1?s=a+eW(i=e.year()-1,t,n):a>eW(e.year(),t,n)?(s=a-eW(e.year(),t,n),i=e.year()+1):(i=e.year(),s=a),{week:s,year:i}}function eW(e,t,n){var s=eN(e,t,n),i=eN(e+1,t,n);return(eO(e)-s+i)/7}function eC(e,t){return e.slice(t,7).concat(e.slice(0,t))}C("w",["ww",2],"wo","week"),C("W",["WW",2],"Wo","isoWeek"),L("week","w"),L("isoWeek","W"),G.week=5,G.isoWeek=5,em("w",es),em("ww",es,K),em("W",es),em("WW",es,K),ep(["w","ww","W","WW"],function(e,t,n,s){t[s.substr(0,1)]=j(e)}),C("d",0,"do","day"),C("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),C("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),C("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),C("e",0,0,"weekday"),C("E",0,0,"isoWeekday"),L("day","d"),L("weekday","e"),L("isoWeekday","E"),G.day=11,G.weekday=11,G.isoWeekday=11,em("d",es),em("e",es),em("E",es),em("dd",function(e,t){return t.weekdaysMinRegex(e)}),em("ddd",function(e,t){return t.weekdaysShortRegex(e)}),em("dddd",function(e,t){return t.weekdaysRegex(e)}),ep(["dd","ddd","dddd"],function(e,t,n,s){var i=n._locale.weekdaysParse(e,s,n._strict);null!=i?t.d=i:c(n).invalidWeekday=e}),ep(["d","e","E"],function(e,t,n,s){t[s]=j(e)});var eU="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_");function eH(e,t,n){var s,i,r,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(s=0,this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[];s<7;++s)r=d([2e3,1]).day(s),this._minWeekdaysParse[s]=this.weekdaysMin(r,"").toLocaleLowerCase(),this._shortWeekdaysParse[s]=this.weekdaysShort(r,"").toLocaleLowerCase(),this._weekdaysParse[s]=this.weekdays(r,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(i=eG.call(this._weekdaysParse,a))?i:null:"ddd"===t?-1!==(i=eG.call(this._shortWeekdaysParse,a))?i:null:-1!==(i=eG.call(this._minWeekdaysParse,a))?i:null:"dddd"===t?-1!==(i=eG.call(this._weekdaysParse,a))||-1!==(i=eG.call(this._shortWeekdaysParse,a))?i:-1!==(i=eG.call(this._minWeekdaysParse,a))?i:null:"ddd"===t?-1!==(i=eG.call(this._shortWeekdaysParse,a))||-1!==(i=eG.call(this._weekdaysParse,a))?i:-1!==(i=eG.call(this._minWeekdaysParse,a))?i:null:-1!==(i=eG.call(this._minWeekdaysParse,a))||-1!==(i=eG.call(this._weekdaysParse,a))?i:-1!==(i=eG.call(this._shortWeekdaysParse,a))?i:null}function eF(){function e(e,t){return t.length-e.length}var t,n,s,i,r,a=[],o=[],u=[],l=[];for(t=0;t<7;t++)n=d([2e3,1]).day(t),s=e_(this.weekdaysMin(n,"")),i=e_(this.weekdaysShort(n,"")),r=e_(this.weekdays(n,"")),a.push(s),o.push(i),u.push(r),l.push(s),l.push(i),l.push(r);a.sort(e),o.sort(e),u.sort(e),l.sort(e),this._weekdaysRegex=RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=RegExp("^("+a.join("|")+")","i")}function eL(){return this.hours()%12||12}function eV(e,t){C(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function eE(e,t){return t._meridiemParse}C("H",["HH",2],0,"hour"),C("h",["hh",2],0,eL),C("k",["kk",2],0,function(){return this.hours()||24}),C("hmm",0,0,function(){return""+eL.apply(this)+T(this.minutes(),2)}),C("hmmss",0,0,function(){return""+eL.apply(this)+T(this.minutes(),2)+T(this.seconds(),2)}),C("Hmm",0,0,function(){return""+this.hours()+T(this.minutes(),2)}),C("Hmmss",0,0,function(){return""+this.hours()+T(this.minutes(),2)+T(this.seconds(),2)}),eV("a",!0),eV("A",!1),L("hour","h"),G.hour=13,em("a",eE),em("A",eE),em("H",es),em("h",es),em("k",es),em("HH",es,K),em("hh",es,K),em("kk",es,K),em("hmm",ei),em("hmmss",er),em("Hmm",ei),em("Hmmss",er),eg(["H","HH"],3),eg(["k","kk"],function(e,t,n){var s=j(e);t[3]=24===s?0:s}),eg(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),eg(["h","hh"],function(e,t,n){t[3]=j(e),c(n).bigHour=!0}),eg("hmm",function(e,t,n){var s=e.length-2;t[3]=j(e.substr(0,s)),t[4]=j(e.substr(s)),c(n).bigHour=!0}),eg("hmmss",function(e,t,n){var s=e.length-4,i=e.length-2;t[3]=j(e.substr(0,s)),t[4]=j(e.substr(s,2)),t[5]=j(e.substr(i)),c(n).bigHour=!0}),eg("Hmm",function(e,t,n){var s=e.length-2;t[3]=j(e.substr(0,s)),t[4]=j(e.substr(s))}),eg("Hmmss",function(e,t,n){var s=e.length-4,i=e.length-2;t[3]=j(e.substr(0,s)),t[4]=j(e.substr(s,2)),t[5]=j(e.substr(i))});var eG,eA,eI=Z("Hours",!0),ej={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:ev,week:{dow:0,doy:6},weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),weekdaysShort:eU,meridiemParse:/[ap]\.?m?\.?/i},eZ={},ez={};function e$(e){return e?e.toLowerCase().replace("_","-"):e}function eq(t){var n=null;if(void 0===eZ[t]&&e&&e.exports&&null!=t.match("^[^/\\\\]*$"))try{n=eA._abbr,function(){var e=Error("Cannot find module 'undefined'");throw e.code="MODULE_NOT_FOUND",e}(),eB(n)}catch(e){eZ[t]=null}return eZ[t]}function eB(e,t){var n;return e&&((n=a(t)?eQ(e):eJ(e,t))?eA=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),eA._abbr}function eJ(e,t){if(null===t)return delete eZ[e],null;var n,s=ej;if(t.abbr=e,null!=eZ[e])Y("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),s=eZ[e]._config;else if(null!=t.parentLocale){if(null!=eZ[t.parentLocale])s=eZ[t.parentLocale]._config;else{if(null==(n=eq(t.parentLocale)))return ez[t.parentLocale]||(ez[t.parentLocale]=[]),ez[t.parentLocale].push({name:e,config:t}),null;s=n._config}}return eZ[e]=new x(b(s,t)),ez[e]&&ez[e].forEach(function(e){eJ(e.name,e.config)}),eB(e),eZ[e]}function eQ(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return eA;if(!n(e)){if(t=eq(e))return t;e=[e]}return function(e){for(var t,n,s,i,r=0;r0;){if(s=eq(i.slice(0,t).join("-")))return s;if(n&&n.length>=t&&function(e,t){var n,s=Math.min(e.length,t.length);for(n=0;n=t-1)break;t--}r++}return eA}(e)}function eX(e){var t,n=e._a;return n&&-2===c(e).overflow&&(t=n[1]<0||n[1]>11?1:n[2]<1||n[2]>ew(n[0],n[1])?2:n[3]<0||n[3]>24||24===n[3]&&(0!==n[4]||0!==n[5]||0!==n[6])?3:n[4]<0||n[4]>59?4:n[5]<0||n[5]>59?5:n[6]<0||n[6]>999?6:-1,c(e)._overflowDayOfYear&&(t<0||t>2)&&(t=2),c(e)._overflowWeeks&&-1===t&&(t=7),c(e)._overflowWeekday&&-1===t&&(t=8),c(e).overflow=t),e}var eK=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,e0=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,e1=/Z|[+-]\d\d(?::?\d\d)?/,e2=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],e4=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],e6=/^\/?Date\((-?\d+)/i,e3=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,e5={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function e7(e){var t,n,s,i,r,a,o=e._i,u=eK.exec(o)||e0.exec(o),l=e2.length,h=e4.length;if(u){for(t=0,c(e).iso=!0,n=l;t7)&&(l=!0)):(a=e._locale._week.dow,o=e._locale._week.doy,h=eR(ti(),a,o),s=e8(n.gg,e._a[0],h.year),i=e8(n.w,h.week),null!=n.d?((r=n.d)<0||r>6)&&(l=!0):null!=n.e?(r=n.e+a,(n.e<0||n.e>6)&&(l=!0)):r=a),i<1||i>eW(s,a,o)?c(e)._overflowWeeks=!0:null!=l?c(e)._overflowWeekday=!0:(u=eP(s,i,r,a,o),e._a[0]=u.year,e._dayOfYear=u.dayOfYear)),null!=e._dayOfYear&&(g=e8(e._a[0],_[0]),(e._dayOfYear>eO(g)||0===e._dayOfYear)&&(c(e)._overflowDayOfYear=!0),m=eT(g,0,e._dayOfYear),e._a[1]=m.getUTCMonth(),e._a[2]=m.getUTCDate()),f=0;f<3&&null==e._a[f];++f)e._a[f]=p[f]=_[f];for(;f<7;f++)e._a[f]=p[f]=null==e._a[f]?2===f?1:0:e._a[f];24===e._a[3]&&0===e._a[4]&&0===e._a[5]&&0===e._a[6]&&(e._nextDay=!0,e._a[3]=0),e._d=(e._useUTC?eT:ex).apply(null,p),y=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[3]=24),e._w&&void 0!==e._w.d&&e._w.d!==y&&(c(e).weekdayMismatch=!0)}}function tt(e){if(e._f===t.ISO_8601){e7(e);return}if(e._f===t.RFC_2822){e9(e);return}e._a=[],c(e).empty=!0;var n,s,r,a,o,u,l,h,d,f,m,_=""+e._i,y=_.length,g=0;for(o=0,m=(l=H(e._f,e._locale).match(N)||[]).length;o0&&c(e).unusedInput.push(d),_=_.slice(_.indexOf(u)+u.length),g+=u.length),W[h])?(u?c(e).empty=!1:c(e).unusedTokens.push(h),null!=u&&i(ey,h)&&ey[h](u,e._a,e,h)):e._strict&&!u&&c(e).unusedTokens.push(h);c(e).charsLeftOver=y-g,_.length>0&&c(e).unusedInput.push(_),e._a[3]<=12&&!0===c(e).bigHour&&e._a[3]>0&&(c(e).bigHour=void 0),c(e).parsedDateParts=e._a.slice(0),c(e).meridiem=e._meridiem,e._a[3]=(n=e._locale,s=e._a[3],null==(r=e._meridiem)?s:null!=n.meridiemHour?n.meridiemHour(s,r):(null!=n.isPM&&((a=n.isPM(r))&&s<12&&(s+=12),a||12!==s||(s=0)),s)),null!==(f=c(e).era)&&(e._a[0]=e._locale.erasConvertYear(f,e._a[0])),te(e),eX(e)}function tn(e){var i,r=e._i,d=e._f;return(e._locale=e._locale||eQ(e._l),null===r||void 0===d&&""===r)?m({nullInput:!0}):("string"==typeof r&&(e._i=r=e._locale.preparse(r)),k(r))?new v(eX(r)):(u(r)?e._d=r:n(d)?function(e){var t,n,s,i,r,a,o=!1,u=e._f.length;if(0===u){c(e).invalidFormat=!0,e._d=new Date(NaN);return}for(i=0;ithis?this:e:m()});function to(e,t){var s,i;if(1===t.length&&n(t[0])&&(t=t[0]),!t.length)return ti();for(i=1,s=t[0];i=0?new Date(e+400,t,n)-126227808e5:new Date(e,t,n).valueOf()}function tW(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-126227808e5:Date.UTC(e,t,n)}function tC(e,t){return t.erasAbbrRegex(e)}function tU(){var e,t,n=[],s=[],i=[],r=[],a=this.eras();for(e=0,t=a.length;e(r=eW(e,s,i))&&(t=r),tL.call(this,e,t,n,s,i))}function tL(e,t,n,s,i){var r=eP(e,t,n,s,i),a=eT(r.year,0,r.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}C("N",0,0,"eraAbbr"),C("NN",0,0,"eraAbbr"),C("NNN",0,0,"eraAbbr"),C("NNNN",0,0,"eraName"),C("NNNNN",0,0,"eraNarrow"),C("y",["y",1],"yo","eraYear"),C("y",["yy",2],0,"eraYear"),C("y",["yyy",3],0,"eraYear"),C("y",["yyyy",4],0,"eraYear"),em("N",tC),em("NN",tC),em("NNN",tC),em("NNNN",function(e,t){return t.erasNameRegex(e)}),em("NNNNN",function(e,t){return t.erasNarrowRegex(e)}),eg(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,s){var i=n._locale.erasParse(e,s,n._strict);i?c(n).era=i:c(n).invalidEra=e}),em("y",el),em("yy",el),em("yyy",el),em("yyyy",el),em("yo",function(e,t){return t._eraYearOrdinalRegex||el}),eg(["y","yy","yyy","yyyy"],0),eg(["yo"],function(e,t,n,s){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[0]=n._locale.eraYearOrdinalParse(e,i):t[0]=parseInt(e,10)}),C(0,["gg",2],0,function(){return this.weekYear()%100}),C(0,["GG",2],0,function(){return this.isoWeekYear()%100}),tH("gggg","weekYear"),tH("ggggg","weekYear"),tH("GGGG","isoWeekYear"),tH("GGGGG","isoWeekYear"),L("weekYear","gg"),L("isoWeekYear","GG"),G.weekYear=1,G.isoWeekYear=1,em("G",eh),em("g",eh),em("GG",es,K),em("gg",es,K),em("GGGG",eo,et),em("gggg",eo,et),em("GGGGG",eu,en),em("ggggg",eu,en),ep(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,s){t[s.substr(0,2)]=j(e)}),ep(["gg","GG"],function(e,n,s,i){n[i]=t.parseTwoDigitYear(e)}),C("Q",0,"Qo","quarter"),L("quarter","Q"),G.quarter=7,em("Q",X),eg("Q",function(e,t){t[1]=(j(e)-1)*3}),C("D",["DD",2],"Do","date"),L("date","D"),G.date=9,em("D",es),em("DD",es,K),em("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),eg(["D","DD"],2),eg("Do",function(e,t){t[2]=j(e.match(es)[0])});var tV=Z("Date",!0);C("DDD",["DDDD",3],"DDDo","dayOfYear"),L("dayOfYear","DDD"),G.dayOfYear=4,em("DDD",ea),em("DDDD",ee),eg(["DDD","DDDD"],function(e,t,n){n._dayOfYear=j(e)}),C("m",["mm",2],0,"minute"),L("minute","m"),G.minute=14,em("m",es),em("mm",es,K),eg(["m","mm"],4);var tE=Z("Minutes",!1);C("s",["ss",2],0,"second"),L("second","s"),G.second=15,em("s",es),em("ss",es,K),eg(["s","ss"],5);var tG=Z("Seconds",!1);for(C("S",0,0,function(){return~~(this.millisecond()/100)}),C(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),C(0,["SSS",3],0,"millisecond"),C(0,["SSSS",4],0,function(){return 10*this.millisecond()}),C(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),C(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),C(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),C(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),C(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),L("millisecond","ms"),G.millisecond=16,em("S",ea,X),em("SS",ea,K),em("SSS",ea,ee),_="SSSS";_.length<=9;_+="S")em(_,el);function tA(e,t){t[6]=j(("0."+e)*1e3)}for(_="S";_.length<=9;_+="S")eg(_,tA);y=Z("Milliseconds",!1),C("z",0,0,"zoneAbbr"),C("zz",0,0,"zoneName");var tI=v.prototype;function tj(e){return e}tI.add=tY,tI.calendar=function(e,a){if(1==arguments.length){if(arguments[0]){var l,h,d;(l=arguments[0],k(l)||u(l)||tb(l)||o(l)||(h=n(l),d=!1,h&&(d=0===l.filter(function(e){return!o(e)&&tb(l)}).length),h&&d)||function(e){var t,n,a=s(e)&&!r(e),o=!1,u=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],l=u.length;for(t=0;tn.valueOf():n.valueOf()n.year()||n.year()>9999?U(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):O(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+6e4*this.utcOffset()).toISOString().replace("Z",U(n,"Z")):U(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},tI.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,s="moment",i="";return this.isLocal()||(s=0===this.utcOffset()?"moment.utc":"moment.parseZone",i="Z"),e="["+s+'("]',t=0<=this.year()&&9999>=this.year()?"YYYY":"YYYYYY",n=i+'[")]',this.format(e+t+"-MM-DD[T]HH:mm:ss.SSS"+n)},"undefined"!=typeof Symbol&&null!=Symbol.for&&(tI[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),tI.toJSON=function(){return this.isValid()?this.toISOString():null},tI.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},tI.unix=function(){return Math.floor(this.valueOf()/1e3)},tI.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},tI.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},tI.eraName=function(){var e,t,n,s=this.localeData().eras();for(e=0,t=s.length;eMath.abs(e)&&!s&&(e*=60);return!this._isUTC&&n&&(i=ty(this)),this._offset=e,this._isUTC=!0,null!=i&&this.add(i,"m"),r===e||(!n||this._changeInProgress?tS(this,tv(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,t.updateOffset(this,!0),this._changeInProgress=null)),this},tI.utc=function(e){return this.utcOffset(0,e)},tI.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(ty(this),"m")),this},tI.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=tm(ed,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},tI.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?ti(e).utcOffset():0,(this.utcOffset()-e)%60==0)},tI.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},tI.isLocal=function(){return!!this.isValid()&&!this._isUTC},tI.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},tI.isUtc=tg,tI.isUTC=tg,tI.zoneAbbr=function(){return this._isUTC?"UTC":""},tI.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},tI.dates=D("dates accessor is deprecated. Use date instead.",tV),tI.months=D("months accessor is deprecated. Use month instead",eS),tI.years=D("years accessor is deprecated. Use year instead",eb),tI.zone=D("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}),tI.isDSTShifted=D("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!a(this._isDSTShifted))return this._isDSTShifted;var e,t={};return w(t,this),(t=tn(t))._a?(e=t._isUTC?d(t._a):ti(t._a),this._isDSTShifted=this.isValid()&&function(e,t,n){var s,i=Math.min(e.length,t.length),r=Math.abs(e.length-t.length),a=0;for(s=0;s0):this._isDSTShifted=!1,this._isDSTShifted});var tZ=x.prototype;function tz(e,t,n,s){var i=eQ(),r=d().set(s,t);return i[n](r,e)}function t$(e,t,n){if(o(e)&&(t=e,e=void 0),e=e||"",null!=t)return tz(e,t,n,"month");var s,i=[];for(s=0;s<12;s++)i[s]=tz(e,s,n,"month");return i}function tq(e,t,n,s){"boolean"==typeof e?(o(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,o(t)&&(n=t,t=void 0),t=t||"");var i,r=eQ(),a=e?r._week.dow:0,u=[];if(null!=n)return tz(t,(n+a)%7,s,"day");for(i=0;i<7;i++)u[i]=tz(t,(i+a)%7,s,"day");return u}tZ.calendar=function(e,t,n){var s=this._calendar[e]||this._calendar.sameElse;return O(s)?s.call(t,n):s},tZ.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(N).map(function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e}).join(""),this._longDateFormat[e])},tZ.invalidDate=function(){return this._invalidDate},tZ.ordinal=function(e){return this._ordinal.replace("%d",e)},tZ.preparse=tj,tZ.postformat=tj,tZ.relativeTime=function(e,t,n,s){var i=this._relativeTime[n];return O(i)?i(e,t,n,s):i.replace(/%d/i,e)},tZ.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return O(n)?n(t):n.replace(/%s/i,t)},tZ.set=function(e){var t,n;for(n in e)i(e,n)&&(O(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},tZ.eras=function(e,n){var s,i,r,a=this._eras||eQ("en")._eras;for(s=0,i=a.length;s=0)return u[s]},tZ.erasConvertYear=function(e,n){var s=e.since<=e.until?1:-1;return void 0===n?t(e.since).year():t(e.since).year()+(n-e.offset)*s},tZ.erasAbbrRegex=function(e){return i(this,"_erasAbbrRegex")||tU.call(this),e?this._erasAbbrRegex:this._erasRegex},tZ.erasNameRegex=function(e){return i(this,"_erasNameRegex")||tU.call(this),e?this._erasNameRegex:this._erasRegex},tZ.erasNarrowRegex=function(e){return i(this,"_erasNarrowRegex")||tU.call(this),e?this._erasNarrowRegex:this._erasRegex},tZ.months=function(e,t){return e?n(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||ek).test(t)?"format":"standalone"][e.month()]:n(this._months)?this._months:this._months.standalone},tZ.monthsShort=function(e,t){return e?n(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[ek.test(t)?"format":"standalone"][e.month()]:n(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},tZ.monthsParse=function(e,t,n){var s,i,r;if(this._monthsParseExact)return eM.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),s=0;s<12;s++)if(i=d([2e3,s]),n&&!this._longMonthsParse[s]&&(this._longMonthsParse[s]=RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[s]=RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[s]||(r="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[s]=RegExp(r.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[s].test(e)||n&&"MMM"===t&&this._shortMonthsParse[s].test(e)||!n&&this._monthsParse[s].test(e))return s},tZ.monthsRegex=function(e){return this._monthsParseExact?(i(this,"_monthsRegex")||eY.call(this),e)?this._monthsStrictRegex:this._monthsRegex:(i(this,"_monthsRegex")||(this._monthsRegex=ef),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},tZ.monthsShortRegex=function(e){return this._monthsParseExact?(i(this,"_monthsRegex")||eY.call(this),e)?this._monthsShortStrictRegex:this._monthsShortRegex:(i(this,"_monthsShortRegex")||(this._monthsShortRegex=ef),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},tZ.week=function(e){return eR(e,this._week.dow,this._week.doy).week},tZ.firstDayOfYear=function(){return this._week.doy},tZ.firstDayOfWeek=function(){return this._week.dow},tZ.weekdays=function(e,t){var s=n(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?eC(s,this._week.dow):e?s[e.day()]:s},tZ.weekdaysMin=function(e){return!0===e?eC(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},tZ.weekdaysShort=function(e){return!0===e?eC(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},tZ.weekdaysParse=function(e,t,n){var s,i,r;if(this._weekdaysParseExact)return eH.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),s=0;s<7;s++){if(i=d([2e3,1]).day(s),n&&!this._fullWeekdaysParse[s]&&(this._fullWeekdaysParse[s]=RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[s]=RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[s]=RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[s]||(r="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[s]=RegExp(r.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[s].test(e)||n&&"ddd"===t&&this._shortWeekdaysParse[s].test(e))return s;if(n&&"dd"===t&&this._minWeekdaysParse[s].test(e))return s;if(!n&&this._weekdaysParse[s].test(e))return s}},tZ.weekdaysRegex=function(e){return this._weekdaysParseExact?(i(this,"_weekdaysRegex")||eF.call(this),e)?this._weekdaysStrictRegex:this._weekdaysRegex:(i(this,"_weekdaysRegex")||(this._weekdaysRegex=ef),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},tZ.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(i(this,"_weekdaysRegex")||eF.call(this),e)?this._weekdaysShortStrictRegex:this._weekdaysShortRegex:(i(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=ef),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},tZ.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(i(this,"_weekdaysRegex")||eF.call(this),e)?this._weekdaysMinStrictRegex:this._weekdaysMinRegex:(i(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=ef),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},tZ.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},tZ.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},eB("en",{eras:[{since:"0001-01-01",until:Infinity,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=1===j(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n}}),t.lang=D("moment.lang is deprecated. Use moment.locale instead.",eB),t.langData=D("moment.langData is deprecated. Use moment.localeData instead.",eQ);var tB=Math.abs;function tJ(e,t,n,s){var i=tv(t,n);return e._milliseconds+=s*i._milliseconds,e._days+=s*i._days,e._months+=s*i._months,e._bubble()}function tQ(e){return e<0?Math.floor(e):Math.ceil(e)}function tX(e){return 4800*e/146097}function tK(e){return 146097*e/4800}function t0(e){return function(){return this.as(e)}}var t1=t0("ms"),t2=t0("s"),t4=t0("m"),t6=t0("h"),t3=t0("d"),t5=t0("w"),t7=t0("M"),t9=t0("Q"),t8=t0("y");function ne(e){return function(){return this.isValid()?this._data[e]:NaN}}var nt=ne("milliseconds"),nn=ne("seconds"),ns=ne("minutes"),ni=ne("hours"),nr=ne("days"),na=ne("months"),no=ne("years"),nu=Math.round,nl={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function nh(e,t,n,s,i){return i.relativeTime(t||1,!!n,e,s)}var nd=Math.abs;function nc(e){return(e>0)-(e<0)||+e}function nf(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,s,i,r,a,o,u=nd(this._milliseconds)/1e3,l=nd(this._days),h=nd(this._months),d=this.asSeconds();return d?(e=I(u/60),t=I(e/60),u%=60,e%=60,n=I(h/12),h%=12,s=u?u.toFixed(3).replace(/\.?0+$/,""):"",i=d<0?"-":"",r=nc(this._months)!==nc(d)?"-":"",a=nc(this._days)!==nc(d)?"-":"",o=nc(this._milliseconds)!==nc(d)?"-":"",i+"P"+(n?r+n+"Y":"")+(h?r+h+"M":"")+(l?a+l+"D":"")+(t||e||u?"T":"")+(t?o+t+"H":"")+(e?o+e+"M":"")+(u?o+s+"S":"")):"P0D"}var nm=tl.prototype;return nm.isValid=function(){return this._isValid},nm.abs=function(){var e=this._data;return this._milliseconds=tB(this._milliseconds),this._days=tB(this._days),this._months=tB(this._months),e.milliseconds=tB(e.milliseconds),e.seconds=tB(e.seconds),e.minutes=tB(e.minutes),e.hours=tB(e.hours),e.months=tB(e.months),e.years=tB(e.years),this},nm.add=function(e,t){return tJ(this,e,t,1)},nm.subtract=function(e,t){return tJ(this,e,t,-1)},nm.as=function(e){if(!this.isValid())return NaN;var t,n,s=this._milliseconds;if("month"===(e=V(e))||"quarter"===e||"year"===e)switch(t=this._days+s/864e5,n=this._months+tX(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(tK(this._months)),e){case"week":return t/7+s/6048e5;case"day":return t+s/864e5;case"hour":return 24*t+s/36e5;case"minute":return 1440*t+s/6e4;case"second":return 86400*t+s/1e3;case"millisecond":return Math.floor(864e5*t)+s;default:throw Error("Unknown unit "+e)}},nm.asMilliseconds=t1,nm.asSeconds=t2,nm.asMinutes=t4,nm.asHours=t6,nm.asDays=t3,nm.asWeeks=t5,nm.asMonths=t7,nm.asQuarters=t9,nm.asYears=t8,nm.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*j(this._months/12):NaN},nm._bubble=function(){var e,t,n,s,i,r=this._milliseconds,a=this._days,o=this._months,u=this._data;return r>=0&&a>=0&&o>=0||r<=0&&a<=0&&o<=0||(r+=864e5*tQ(tK(o)+a),a=0,o=0),u.milliseconds=r%1e3,e=I(r/1e3),u.seconds=e%60,t=I(e/60),u.minutes=t%60,n=I(t/60),u.hours=n%24,a+=I(n/24),o+=i=I(tX(a)),a-=tQ(tK(i)),s=I(o/12),o%=12,u.days=a,u.months=o,u.years=s,this},nm.clone=function(){return tv(this)},nm.get=function(e){return e=V(e),this.isValid()?this[e+"s"]():NaN},nm.milliseconds=nt,nm.seconds=nn,nm.minutes=ns,nm.hours=ni,nm.days=nr,nm.weeks=function(){return I(this.days()/7)},nm.months=na,nm.years=no,nm.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,s,i,r,a,o,u,l,h,d,c,f,m,_=!1,y=nl;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(_=e),"object"==typeof t&&(y=Object.assign({},nl,t),null!=t.s&&null==t.ss&&(y.ss=t.s-1)),f=this.localeData(),n=!_,s=y,r=nu((i=tv(this).abs()).as("s")),a=nu(i.as("m")),o=nu(i.as("h")),u=nu(i.as("d")),l=nu(i.as("M")),h=nu(i.as("w")),d=nu(i.as("y")),c=r<=s.ss&&["s",r]||r0,c[4]=f,m=nh.apply(null,c),_&&(m=f.pastFuture(+this,m)),f.postformat(m)},nm.toISOString=nf,nm.toString=nf,nm.toJSON=nf,nm.locale=tT,nm.localeData=tP,nm.toIsoString=D("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",nf),nm.lang=tN,C("X",0,0,"unix"),C("x",0,0,"valueOf"),em("x",eh),em("X",/[+-]?\d+(\.\d{1,3})?/),eg("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e))}),eg("x",function(e,t,n){n._d=new Date(j(e))}),//! moment.js +t.version="2.29.4",q=ti,t.fn=tI,t.min=function(){var e=[].slice.call(arguments,0);return to("isBefore",e)},t.max=function(){var e=[].slice.call(arguments,0);return to("isAfter",e)},t.now=function(){return Date.now?Date.now():+new Date},t.utc=d,t.unix=function(e){return ti(1e3*e)},t.months=function(e,t){return t$(e,t,"months")},t.isDate=u,t.locale=eB,t.invalid=m,t.duration=tv,t.isMoment=k,t.weekdays=function(e,t,n){return tq(e,t,n,"weekdays")},t.parseZone=function(){return ti.apply(null,arguments).parseZone()},t.localeData=eQ,t.isDuration=th,t.monthsShort=function(e,t){return t$(e,t,"monthsShort")},t.weekdaysMin=function(e,t,n){return tq(e,t,n,"weekdaysMin")},t.defineLocale=eJ,t.updateLocale=function(e,t){if(null!=t){var n,s,i=ej;null!=eZ[e]&&null!=eZ[e].parentLocale?eZ[e].set(b(eZ[e]._config,t)):(null!=(s=eq(e))&&(i=s._config),t=b(i,t),null==s&&(t.abbr=e),(n=new x(t)).parentLocale=eZ[e],eZ[e]=n),eB(e)}else null!=eZ[e]&&(null!=eZ[e].parentLocale?(eZ[e]=eZ[e].parentLocale,e===eB()&&eB(e)):null!=eZ[e]&&delete eZ[e]);return eZ[e]},t.locales=function(){return J(eZ)},t.weekdaysShort=function(e,t,n){return tq(e,t,n,"weekdaysShort")},t.normalizeUnits=V,t.relativeTimeRounding=function(e){return void 0===e?nu:"function"==typeof e&&(nu=e,!0)},t.relativeTimeThreshold=function(e,t){return void 0!==nl[e]&&(void 0===t?nl[e]:(nl[e]=t,"s"===e&&(nl.ss=t-1),!0))},t.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},t.prototype=tI,t.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},t}()}}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/app/chat/page-4266d316599e0141.js b/pilot/server/static/_next/static/chunks/app/chat/page-4266d316599e0141.js new file mode 100644 index 000000000..afba8b24b --- /dev/null +++ b/pilot/server/static/_next/static/chunks/app/chat/page-4266d316599e0141.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[929],{83738:function(e,t,l){Promise.resolve().then(l.bind(l,65641))},65641:function(e,t,l){"use strict";l.r(t),l.d(t,{default:function(){return K}});var a=l(9268),r=l(86006),n=l(91440),s=l(90022),i=l(69962),o=l(97287),c=l(73141),d=l(45642),u=l(8997),h=l(22046),x=l(83192),f=l(90545),v=l(89081),p=l(78915),m=l(71990),j=e=>{let t=(0,r.useReducer)((e,t)=>({...e,...t}),{...e});return t},g=l(57931),y=l(52040),b=e=>{let{queryAgentURL:t,channel:l,queryBody:a,initHistory:n,runHistoryList:s}=e,[i,o]=j({history:n||[]}),{refreshDialogList:c}=(0,g.Cg)(),d=new AbortController;(0,r.useEffect)(()=>{n&&o({history:n})},[n]);let u=async(e,r)=>{if(!e)return;let n=[...i.history,{role:"human",context:e}],s=n.length;o({history:n});try{await (0,m.L)("".concat(y.env.API_BASE_URL?y.env.API_BASE_URL:"").concat("/api"+t),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...r,...a,user_input:e,channel:l}),signal:d.signal,async onopen(e){if(n.length<=1){c();let e=new URLSearchParams(window.location.search);e.delete("initMessage"),window.history.replaceState(null,null,"?".concat(e.toString()))}(!e.ok||e.headers.get("content-type")!==m.a)&&e.status>=400&&e.status<500&&429!==e.status&&e.status},onclose(){console.log("onclose")},onerror(e){throw console.log("onerror"),Error(e)},onmessage:e=>{var t;if(e.data=e.data.replaceAll("\\n","\n"),"[DONE]"===e.data);else if(null===(t=e.data)||void 0===t?void 0:t.startsWith("[ERROR]"))o({history:[...n,{role:"view",context:e.data.replace("[ERROR]","")}]});else{let t=[...n];e.data&&((null==t?void 0:t[s])?t[s].context="".concat(e.data):t.push({role:"view",context:e.data}),o({history:t}))}}})}catch(e){console.log(e),o({history:[...n,{role:"view",context:"请求出错"}]})}};return{handleChatSubmit:u,history:i.history}},w=l(67830),Z=l(54842),N=l(80937),_=l(311),P=l(94244),S=l(12025),k=l(46571),C=l(35086),O=l(53047),E=l(81528),R=l(30530),B=l(64747),I=l(53113),A=l(19700),L=l(92391),T=l(55749),D=l(70781),F=l(75403),J=l(99398),M=l(49064),U=l(56008),z=l(84835),V=l.n(z),W=l(21628);let q=L.z.object({query:L.z.string().min(1)});var H=e=>{let{messages:t,onSubmit:n,readOnly:i,paramsList:o,isChartChat:c=!1,clearIntialMessage:d,setChartsData:u}=e,h=(0,U.useSearchParams)(),x=h.get("initMessage"),v=(0,r.useRef)(null),[p,m]=(0,r.useState)(!1),[j,g]=(0,r.useState)(),[y,b]=(0,r.useState)(!1),[L,z]=(0,r.useState)(),[H,G]=(0,r.useState)(t),[K,Y]=(0,r.useState)(""),Q=(0,A.cI)({resolver:(0,w.F)(q),defaultValues:{}}),X=async e=>{let{query:t}=e;try{m(!0),Q.reset(),await n(t,{select_param:null==o?void 0:o[j]})}catch(e){}finally{m(!1)}},$=async()=>{try{let e=new URLSearchParams(window.location.search),t=e.get("initMessage");e.delete("initMessage"),window.history.replaceState(null,null,"?".concat(e.toString())),await X({query:t})}catch(e){console.log(e)}finally{null==d||d()}},ee={overrides:{code:e=>{let{children:t}=e;return(0,a.jsx)(J.Z,{language:"javascript",style:M.Z,children:t})}},wrapper:r.Fragment},et=e=>{let t=e;try{t=JSON.parse(e)}catch(e){console.log(e)}return t},el=r.useMemo(()=>{if("function"==typeof(null==window?void 0:window.fetch)){let e=l(62631);return l(25204),l(82372),e.default}},[]);return r.useEffect(()=>{v.current&&v.current.scrollTo(0,v.current.scrollHeight)},[null==t?void 0:t.length]),r.useEffect(()=>{x&&t.length<=0&&$()},[x,t.length]),r.useEffect(()=>{var e,t;o&&(null===(e=Object.keys(o||{}))||void 0===e?void 0:e.length)>0&&g(null===(t=Object.keys(o||{}))||void 0===t?void 0:t[0])},[o]),r.useEffect(()=>{if(c){let e=V().cloneDeep(t);e.forEach(e=>{(null==e?void 0:e.role)==="view"&&"string"==typeof(null==e?void 0:e.context)&&(e.context=et(null==e?void 0:e.context))}),G(e.filter(e=>["view","human"].includes(e.role)))}else G(t.filter(e=>["view","human"].includes(e.role)))},[c,t]),(0,a.jsxs)("div",{className:"w-full h-full",children:[(0,a.jsxs)(N.Z,{className:"w-full h-full bg-[#fefefe] dark:bg-[#212121]",sx:{table:{borderCollapse:"collapse",border:"1px solid #ccc",width:"100%"},"th, td":{border:"1px solid #ccc",padding:"10px",textAlign:"center"}},children:[(0,a.jsxs)(N.Z,{ref:v,direction:"column",sx:{overflowY:"auto",maxHeight:"100%",flex:1},children:[H.map((e,t)=>{var l,r;return(0,a.jsx)(N.Z,{children:(0,a.jsx)(s.Z,{size:"sm",variant:"outlined",color:"view"===e.role?"primary":"neutral",sx:t=>({background:"view"===e.role?"var(--joy-palette-primary-softBg, var(--joy-palette-primary-100, #DDF1FF))":"unset",border:"unset",borderRadius:"unset",padding:"24px 0 26px 0",lineHeight:"24px"}),children:(0,a.jsxs)(f.Z,{sx:{width:"76%",margin:"0 auto"},className:"flex flex-row",children:[(0,a.jsx)("div",{className:"mr-3 inline",children:"view"===e.role?(0,a.jsx)(D.Z,{}):(0,a.jsx)(T.Z,{})}),(0,a.jsx)("div",{className:"inline align-middle mt-0.5 max-w-full flex-1 overflow-auto",children:c&&"view"===e.role&&"object"==typeof(null==e?void 0:e.context)?(0,a.jsxs)(a.Fragment,{children:["[".concat(e.context.template_name,"]: "),(0,a.jsx)(_.Z,{sx:{color:"#1677ff"},component:"button",onClick:()=>{b(!0),z(t),Y(JSON.stringify(null==e?void 0:e.context,null,2))},children:e.context.template_introduce||"暂无介绍"})]}):(0,a.jsx)(F.Z,{options:ee,children:null===(l=e.context)||void 0===l?void 0:null===(r=l.replaceAll)||void 0===r?void 0:r.call(l,"\\n","\n")})})]})})},t)}),p&&(0,a.jsx)(P.Z,{variant:"soft",color:"neutral",size:"sm",sx:{mx:"auto",my:2}})]}),!i&&(0,a.jsx)(f.Z,{className:"bg-[#fefefe] dark:bg-[#212121] before:bg-[#fefefe] before:dark:bg-[#212121]",sx:{position:"relative","&::before":{content:'" "',position:"absolute",top:"-18px",left:"0",right:"0",width:"100%",margin:"0 auto",height:"20px",filter:"blur(10px)",zIndex:2}},children:(0,a.jsxs)("form",{style:{maxWidth:"100%",width:"76%",position:"relative",display:"flex",marginTop:"auto",overflow:"visible",background:"none",justifyContent:"center",marginLeft:"auto",marginRight:"auto",flexDirection:"column",gap:"12px",paddingBottom:"58px",paddingTop:"20px"},onSubmit:e=>{e.stopPropagation(),Q.handleSubmit(X)(e)},children:[Object.keys(o||{}).length>0&&(0,a.jsx)("div",{className:"flex items-center gap-3",children:(0,a.jsx)(S.Z,{value:j,onChange:(e,t)=>{g(t)},sx:{maxWidth:"100%"},children:Object.keys(o||{}).map(e=>(0,a.jsx)(k.Z,{value:e,children:e},e))})}),(0,a.jsx)(C.ZP,{className:"w-full h-12",variant:"outlined",endDecorator:(0,a.jsx)(O.ZP,{type:"submit",disabled:p,children:(0,a.jsx)(Z.Z,{})}),...Q.register("query")})]})})]}),(0,a.jsx)(E.Z,{open:y,onClose:()=>b(!1),children:(0,a.jsxs)(R.Z,{"aria-labelledby":"variant-modal-title","aria-describedby":"variant-modal-description",children:[(0,a.jsx)(B.Z,{}),(0,a.jsxs)(f.Z,{sx:{marginTop:"32px"},children:[!!el&&(0,a.jsx)(el,{mode:"json",value:K,height:"600px",width:"820px",onChange:Y,placeholder:"默认json数据",debounceChangePeriod:100,showPrintMargin:!0,showGutter:!0,highlightActiveLine:!0,setOptions:{useWorker:!0,showLineNumbers:!0,highlightSelectedWord:!0,tabSize:2}}),(0,a.jsx)(I.Z,{variant:"outlined",className:"w-full",sx:{marginTop:"12px"},onClick:()=>{if(L)try{let e=V().cloneDeep(H),t=JSON.parse(K);e[L].context=t,G(e),null==u||u(null==t?void 0:t.charts),b(!1),Y("")}catch(e){W.ZP.error("JSON 格式化出错")}},children:"Submit"})]})]})})]})};let G=()=>(0,a.jsxs)(s.Z,{className:"h-full w-full flex bg-transparent",children:[(0,a.jsx)(i.Z,{animation:"wave",variant:"text",level:"body2"}),(0,a.jsx)(i.Z,{animation:"wave",variant:"text",level:"body2"}),(0,a.jsx)(o.Z,{ratio:"21/9",className:"flex-1",sx:{["& .".concat(c.Z.content)]:{height:"100%"}},children:(0,a.jsx)(i.Z,{variant:"overlay",className:"h-full"})})]});var K=()=>{let[e,t]=(0,r.useState)(),l=(0,U.useSearchParams)(),{refreshDialogList:i}=(0,g.Cg)(),o=l.get("id"),c=l.get("scene"),{data:m,run:j}=(0,v.Z)(async()=>await (0,p.Tk)("/v1/chat/dialogue/messages/history",{con_uid:o}),{ready:!!o,refreshDeps:[o]}),{data:y}=(0,v.Z)(async()=>await (0,p.Kw)("/v1/chat/mode/params/list?chat_mode=".concat(c)),{ready:!!c,refreshDeps:[o,c]}),{history:w,handleChatSubmit:Z}=b({queryAgentURL:"/v1/chat/completions",queryBody:{conv_uid:o,chat_mode:c||"chat_normal"},initHistory:null==m?void 0:m.data,runHistoryList:j});(0,r.useEffect)(()=>{try{var e;let l=null==w?void 0:null===(e=w[w.length-1])||void 0===e?void 0:e.context,a=JSON.parse(l);t((null==a?void 0:a.template_name)==="report"?null==a?void 0:a.charts:void 0)}catch(e){t(void 0)}},[w]);let N=(0,r.useMemo)(()=>{if(e){let t=[],l=null==e?void 0:e.filter(e=>"IndicatorValue"===e.chart_type);l.length>0&&t.push({rowIndex:t.length,cols:l,type:"IndicatorValue"});let a=null==e?void 0:e.filter(e=>"IndicatorValue"!==e.chart_type),r=a.length,n=0;return[[0],[1],[2],[1,2],[1,3],[2,1,2],[2,1,3],[3,1,3],[3,2,3]][r].forEach(e=>{if(e>0){let l=a.slice(n,n+e);n+=e,t.push({rowIndex:t.length,cols:l})}}),t}},[e]);return(0,a.jsxs)(d.Z,{container:!0,spacing:2,className:"h-full",sx:{flexGrow:1},children:[e&&(0,a.jsx)(d.Z,{xs:8,className:"max-h-full",children:(0,a.jsx)("div",{className:"flex flex-col gap-3 h-full",children:null==N?void 0:N.map(e=>(0,a.jsx)("div",{className:"".concat((null==e?void 0:e.type)!=="IndicatorValue"?"flex flex-1 gap-3 overflow-hidden":""),children:e.cols.map(e=>{if("IndicatorValue"===e.chart_type)return(0,a.jsx)("div",{className:"flex flex-row gap-3",children:e.values.map(e=>(0,a.jsx)("div",{className:"flex-1",children:(0,a.jsx)(s.Z,{sx:{background:"transparent"},children:(0,a.jsxs)(u.Z,{className:"justify-around",children:[(0,a.jsx)(h.ZP,{gutterBottom:!0,component:"div",children:e.name}),(0,a.jsx)(h.ZP,{children:e.value})]})})},e.name))},e.chart_uid);if("LineChart"===e.chart_type)return(0,a.jsx)("div",{className:"flex-1 overflow-hidden",children:(0,a.jsx)(s.Z,{className:"h-full",sx:{background:"transparent"},children:(0,a.jsxs)(u.Z,{className:"h-full",children:[(0,a.jsx)(h.ZP,{gutterBottom:!0,component:"div",children:e.chart_name}),(0,a.jsx)(h.ZP,{gutterBottom:!0,level:"body3",children:e.chart_desc}),(0,a.jsx)("div",{className:"flex-1 h-full",children:(0,a.jsx)(n.Chart,{padding:[10,20,50,40],autoFit:!0,data:e.values,children:(0,a.jsx)(n.LineAdvance,{shape:"smooth",point:!0,area:!0,position:"name*value",color:"type"})})})]})})},e.chart_uid);if("BarChart"===e.chart_type)return(0,a.jsx)("div",{className:"flex-1",children:(0,a.jsx)(s.Z,{className:"h-full",sx:{background:"transparent"},children:(0,a.jsxs)(u.Z,{className:"h-full",children:[(0,a.jsx)(h.ZP,{gutterBottom:!0,component:"div",children:e.chart_name}),(0,a.jsx)(h.ZP,{gutterBottom:!0,level:"body3",children:e.chart_desc}),(0,a.jsx)("div",{className:"flex-1",children:(0,a.jsxs)(n.Chart,{autoFit:!0,data:e.values,children:[(0,a.jsx)(n.Interval,{position:"name*value",style:{lineWidth:3,stroke:(0,n.getTheme)().colors10[0]}}),(0,a.jsx)(n.Tooltip,{shared:!0})]})})]})})},e.chart_uid);if("Table"===e.chart_type){var t,l;let r=V().groupBy(e.values,"type");return(0,a.jsx)("div",{className:"flex-1",children:(0,a.jsx)(s.Z,{className:"h-full overflow-auto",sx:{background:"transparent"},children:(0,a.jsxs)(u.Z,{className:"h-full",children:[(0,a.jsx)(h.ZP,{gutterBottom:!0,component:"div",children:e.chart_name}),(0,a.jsx)(h.ZP,{gutterBottom:!0,level:"body3",children:e.chart_desc}),(0,a.jsx)("div",{className:"flex-1",children:(0,a.jsxs)(x.Z,{"aria-label":"basic table",stripe:"odd",hoverRow:!0,borderAxis:"bothBetween",children:[(0,a.jsx)("thead",{children:(0,a.jsx)("tr",{children:Object.keys(r).map(e=>(0,a.jsx)("th",{children:e},e))})}),(0,a.jsx)("tbody",{children:null===(t=Object.values(r))||void 0===t?void 0:null===(l=t[0])||void 0===l?void 0:l.map((e,t)=>{var l;return(0,a.jsx)("tr",{children:null===(l=Object.keys(r))||void 0===l?void 0:l.map(e=>{var l;return(0,a.jsx)("td",{children:(null==r?void 0:null===(l=r[e])||void 0===l?void 0:l[t].value)||""},e)})},t)})})]})})]})})},e.chart_uid)}})},e.rowIndex))})}),!e&&"chat_dashboard"===c&&(0,a.jsx)(d.Z,{xs:8,className:"max-h-full p-6",children:(0,a.jsx)("div",{className:"flex flex-col gap-3 h-full",children:(0,a.jsxs)(d.Z,{container:!0,spacing:2,sx:{flexGrow:1},children:[(0,a.jsx)(d.Z,{xs:8,children:(0,a.jsx)(f.Z,{className:"h-full w-full",sx:{display:"flex",gap:2},children:(0,a.jsx)(G,{})})}),(0,a.jsx)(d.Z,{xs:4,children:(0,a.jsx)(G,{})}),(0,a.jsx)(d.Z,{xs:4,children:(0,a.jsx)(G,{})}),(0,a.jsx)(d.Z,{xs:8,children:(0,a.jsx)(G,{})})]})})}),(0,a.jsx)(d.Z,{xs:"chat_dashboard"===c?4:12,className:"h-full max-h-full",children:(0,a.jsx)("div",{className:"h-full",style:{boxShadow:"chat_dashboard"===c?"0px 0px 9px 0px #c1c0c080":"unset"},children:(0,a.jsx)(H,{clearIntialMessage:async()=>{await i()},isChartChat:"chat_dashboard"===c,messages:w||[],onSubmit:Z,paramsList:null==y?void 0:y.data,setChartsData:t})})})]})}},57931:function(e,t,l){"use strict";l.d(t,{ZP:function(){return c},Cg:function(){return i}});var a=l(9268),r=l(89081),n=l(78915),s=l(86006);let[i,o]=function(){let e=s.createContext(void 0);return[function(){let t=s.useContext(e);if(void 0===t)throw Error("useCtx must be inside a Provider with a value");return t},e.Provider]}();var c=e=>{let{children:t}=e,{run:l,data:s,refresh:i}=(0,r.Z)(async()=>await (0,n.Tk)("/v1/chat/dialogue/list"),{manual:!0});return(0,a.jsx)(o,{value:{dialogueList:s,queryDialogueList:l,refreshDialogList:i},children:t})}},78915:function(e,t,l){"use strict";l.d(t,{Tk:function(){return d},Kw:function(){return u},PR:function(){return h},Ej:function(){return x}});var a=l(21628),r=l(24214),n=l(52040);let s=r.Z.create({baseURL:n.env.API_BASE_URL});s.defaults.timeout=1e4,s.interceptors.response.use(e=>e.data,e=>Promise.reject(e));var i=l(84835);let o={"content-type":"application/json"},c=e=>{if(!(0,i.isPlainObject)(e))return JSON.stringify(e);let t={...e};for(let e in t){let l=t[e];"string"==typeof l&&(t[e]=l.trim())}return JSON.stringify(t)},d=(e,t)=>{if(t){let l=Object.keys(t).filter(e=>void 0!==t[e]&&""!==t[e]).map(e=>"".concat(e,"=").concat(t[e])).join("&");l&&(e+="?".concat(l))}return s.get("/api"+e,{headers:o}).then(e=>e).catch(e=>{a.ZP.error(e),Promise.reject(e)})},u=(e,t)=>{let l=c(t);return s.post("/api"+e,{body:l,headers:o}).then(e=>e).catch(e=>{a.ZP.error(e),Promise.reject(e)})},h=(e,t)=>(c(t),s.post(e,t,{headers:o}).then(e=>e).catch(e=>{a.ZP.error(e),Promise.reject(e)})),x=(e,t)=>s.post(e,t).then(e=>e).catch(e=>{a.ZP.error(e),Promise.reject(e)})}},function(e){e.O(0,[180,757,282,110,60,86,316,790,767,259,751,436,253,769,744],function(){return e(e.s=83738)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/app/datastores/documents/chunklist/page-042df8c81ee99ad6.js b/pilot/server/static/_next/static/chunks/app/datastores/documents/chunklist/page-042df8c81ee99ad6.js new file mode 100644 index 000000000..91f3bc065 --- /dev/null +++ b/pilot/server/static/_next/static/chunks/app/datastores/documents/chunklist/page-042df8c81ee99ad6.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[538],{40687:function(e,t,n){Promise.resolve().then(n.bind(n,26257))},26257:function(e,t,n){"use strict";n.r(t);var r=n(9268),a=n(56008),i=n(86006),c=n(78635),s=n(80937),o=n(44334),l=n(311),d=n(22046),h=n(83192),u=n(23910),g=n(1031),f=n(78915);t.default=()=>{let e=(0,a.useRouter)(),{mode:t}=(0,c.tv)(),n=(0,a.useSearchParams)().get("spacename"),j=(0,a.useSearchParams)().get("documentid"),[m,p]=(0,i.useState)(0),[x,P]=(0,i.useState)(0),[S,_]=(0,i.useState)([]);return(0,i.useEffect)(()=>{(async function(){let e=await (0,f.PR)("/knowledge/".concat(n,"/chunk/list"),{document_id:j,page:1,page_size:20});e.success&&(_(e.data.data),p(e.data.total),P(e.data.page))})()},[]),(0,r.jsxs)("div",{className:"p-4",children:[(0,r.jsx)(s.Z,{direction:"row",justifyContent:"flex-start",alignItems:"center",sx:{marginBottom:"20px"},children:(0,r.jsxs)(o.Z,{"aria-label":"breadcrumbs",children:[(0,r.jsx)(l.Z,{onClick:()=>{e.push("/datastores")},underline:"hover",color:"neutral",fontSize:"inherit",children:"Knowledge Space"},"Knowledge Space"),(0,r.jsx)(l.Z,{onClick:()=>{e.push("/datastores/documents?name=".concat(n))},underline:"hover",color:"neutral",fontSize:"inherit",children:"Documents"},"Knowledge Space"),(0,r.jsx)(d.ZP,{fontSize:"inherit",children:"Chunks"})]})}),(0,r.jsx)("div",{className:"p-4",children:S.length?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(h.Z,{color:"primary",variant:"plain",size:"lg",sx:{"& tbody tr: hover":{backgroundColor:"light"===t?"rgb(246, 246, 246)":"rgb(33, 33, 40)"},"& tbody tr: hover a":{textDecoration:"underline"}},children:[(0,r.jsx)("thead",{children:(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{children:"Name"}),(0,r.jsx)("th",{children:"Content"}),(0,r.jsx)("th",{children:"Meta Data"})]})}),(0,r.jsx)("tbody",{children:S.map(e=>(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:e.doc_name}),(0,r.jsx)("td",{children:(0,r.jsx)(u.Z,{content:e.content,trigger:"hover",children:e.content.length>10?"".concat(e.content.slice(0,10),"..."):e.content})}),(0,r.jsx)("td",{children:(0,r.jsx)(u.Z,{content:JSON.stringify(e.meta_info||"{}",null,2),trigger:"hover",children:e.meta_info.length>10?"".concat(e.meta_info.slice(0,10),"..."):e.meta_info})})]},e.id))})]}),(0,r.jsx)(s.Z,{direction:"row",justifyContent:"flex-end",sx:{marginTop:"20px"},children:(0,r.jsx)(g.Z,{defaultPageSize:20,showSizeChanger:!1,current:x,total:m,onChange:async e=>{let t=await (0,f.PR)("/knowledge/".concat(n,"/chunk/list"),{document_id:j,page:e,page_size:20});t.success&&(_(t.data.data),p(t.data.total),P(t.data.page))},hideOnSinglePage:!0})})]}):(0,r.jsx)(r.Fragment,{})})]})}},78915:function(e,t,n){"use strict";n.d(t,{Tk:function(){return d},Kw:function(){return h},PR:function(){return u},Ej:function(){return g}});var r=n(21628),a=n(24214),i=n(52040);let c=a.Z.create({baseURL:i.env.API_BASE_URL});c.defaults.timeout=1e4,c.interceptors.response.use(e=>e.data,e=>Promise.reject(e));var s=n(84835);let o={"content-type":"application/json"},l=e=>{if(!(0,s.isPlainObject)(e))return JSON.stringify(e);let t={...e};for(let e in t){let n=t[e];"string"==typeof n&&(t[e]=n.trim())}return JSON.stringify(t)},d=(e,t)=>{if(t){let n=Object.keys(t).filter(e=>void 0!==t[e]&&""!==t[e]).map(e=>"".concat(e,"=").concat(t[e])).join("&");n&&(e+="?".concat(n))}return c.get("/api"+e,{headers:o}).then(e=>e).catch(e=>{r.ZP.error(e),Promise.reject(e)})},h=(e,t)=>{let n=l(t);return c.post("/api"+e,{body:n,headers:o}).then(e=>e).catch(e=>{r.ZP.error(e),Promise.reject(e)})},u=(e,t)=>(l(t),c.post(e,t,{headers:o}).then(e=>e).catch(e=>{r.ZP.error(e),Promise.reject(e)})),g=(e,t)=>c.post(e,t).then(e=>e).catch(e=>{r.ZP.error(e),Promise.reject(e)})}},function(e){e.O(0,[180,110,160,679,144,767,957,253,769,744],function(){return e(e.s=40687)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/app/datastores/documents/page-d01efb573de36698.js b/pilot/server/static/_next/static/chunks/app/datastores/documents/page-d01efb573de36698.js new file mode 100644 index 000000000..334e7f414 --- /dev/null +++ b/pilot/server/static/_next/static/chunks/app/datastores/documents/page-d01efb573de36698.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[470],{78141:function(e,t,i){"use strict";var a=i(78997);t.Z=void 0;var r=a(i(76906)),n=i(9268),o=(0,r.default)((0,n.jsx)("path",{d:"m19 8-4 4h3c0 3.31-2.69 6-6 6-1.01 0-1.97-.25-2.8-.7l-1.46 1.46C8.97 19.54 10.43 20 12 20c4.42 0 8-3.58 8-8h3l-4-4zM6 12c0-3.31 2.69-6 6-6 1.01 0 1.97.25 2.8.7l1.46-1.46C15.03 4.46 13.57 4 12 4c-4.42 0-8 3.58-8 8H1l4 4 4-4H6z"}),"Cached");t.Z=o},42414:function(e,t,i){Promise.resolve().then(i.bind(i,16692))},16692:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return ei}});var a=i(9268),r=i(56008),n=i(86006),o=i(50645),s=i(5737),l=i(78635),c=i(80937),d=i(44334),h=i(311),p=i(22046),u=i(53113),g=i(83192),m=i(46750),x=i(40431),v=i(89791),f=i(47562),C=i(46319),b=i(53832),j=i(49657),Z=i(88930),y=i(47093),P=i(18587);function S(e){return(0,P.d6)("MuiChip",e)}let w=(0,P.sI)("MuiChip",["root","clickable","colorPrimary","colorNeutral","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","disabled","endDecorator","focusVisible","label","labelSm","labelMd","labelLg","sizeSm","sizeMd","sizeLg","startDecorator","variantPlain","variantSolid","variantSoft","variantOutlined"]),_=n.createContext({disabled:void 0,variant:void 0,color:void 0});var k=i(326);let R=["children","className","color","onClick","disabled","size","variant","startDecorator","endDecorator","component","slots","slotProps"],z=e=>{let{disabled:t,size:i,color:a,clickable:r,variant:n,focusVisible:o}=e,s={root:["root",t&&"disabled",a&&`color${(0,b.Z)(a)}`,i&&`size${(0,b.Z)(i)}`,n&&`variant${(0,b.Z)(n)}`,r&&"clickable"],action:["action",t&&"disabled",o&&"focusVisible"],label:["label",i&&`label${(0,b.Z)(i)}`],startDecorator:["startDecorator"],endDecorator:["endDecorator"]};return(0,f.Z)(s,S,{})},D=(0,o.Z)("div",{name:"JoyChip",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var i,a,r,n;return[(0,x.Z)({"--Chip-decoratorChildOffset":"min(calc(var(--Chip-paddingInline) - (var(--_Chip-minHeight) - 2 * var(--variant-borderWidth, 0px) - var(--Chip-decoratorChildHeight)) / 2), var(--Chip-paddingInline))","--Chip-decoratorChildRadius":"max(var(--_Chip-radius) - var(--variant-borderWidth, 0px) - var(--_Chip-paddingBlock), min(var(--_Chip-paddingBlock) + var(--variant-borderWidth, 0px), var(--_Chip-radius) / 2))","--Chip-deleteRadius":"var(--Chip-decoratorChildRadius)","--Chip-deleteSize":"var(--Chip-decoratorChildHeight)","--Avatar-radius":"var(--Chip-decoratorChildRadius)","--Avatar-size":"var(--Chip-decoratorChildHeight)","--Icon-margin":"initial","--unstable_actionRadius":"var(--_Chip-radius)"},"sm"===t.size&&{"--Chip-gap":"0.25rem","--Chip-paddingInline":"0.5rem","--Chip-decoratorChildHeight":"calc(min(1.125rem, var(--_Chip-minHeight)) - 2 * var(--variant-borderWidth, 0px))","--Icon-fontSize":"calc(var(--_Chip-minHeight) / 1.714)","--_Chip-minHeight":"var(--Chip-minHeight, 1.5rem)",fontSize:e.vars.fontSize.xs},"md"===t.size&&{"--Chip-gap":"0.375rem","--Chip-paddingInline":"0.75rem","--Chip-decoratorChildHeight":"min(1.375rem, var(--_Chip-minHeight))","--Icon-fontSize":"calc(var(--_Chip-minHeight) / 1.778)","--_Chip-minHeight":"var(--Chip-minHeight, 2rem)",fontSize:e.vars.fontSize.sm},"lg"===t.size&&{"--Chip-gap":"0.5rem","--Chip-paddingInline":"1rem","--Chip-decoratorChildHeight":"min(1.75rem, var(--_Chip-minHeight))","--Icon-fontSize":"calc(var(--_Chip-minHeight) / 2)","--_Chip-minHeight":"var(--Chip-minHeight, 2.5rem)",fontSize:e.vars.fontSize.md},{"--_Chip-radius":"var(--Chip-radius, 1.5rem)","--_Chip-paddingBlock":"max((var(--_Chip-minHeight) - 2 * var(--variant-borderWidth, 0px) - var(--Chip-decoratorChildHeight)) / 2, 0px)",minHeight:"var(--_Chip-minHeight)",maxWidth:"max-content",paddingInline:"var(--Chip-paddingInline)",borderRadius:"var(--_Chip-radius)",position:"relative",fontWeight:e.vars.fontWeight.md,fontFamily:e.vars.fontFamily.body,display:"inline-flex",alignItems:"center",justifyContent:"center",whiteSpace:"nowrap",textDecoration:"none",verticalAlign:"middle",boxSizing:"border-box",[`&.${w.disabled}`]:{color:null==(i=e.variants[`${t.variant}Disabled`])||null==(i=i[t.color])?void 0:i.color}}),...t.clickable?[{"--variant-borderWidth":"0px",color:null==(n=e.variants[t.variant])||null==(n=n[t.color])?void 0:n.color}]:[null==(a=e.variants[t.variant])?void 0:a[t.color],{[`&.${w.disabled}`]:null==(r=e.variants[`${t.variant}Disabled`])?void 0:r[t.color]}]]}),I=(0,o.Z)("span",{name:"JoyChip",slot:"Label",overridesResolver:(e,t)=>t.label})(({ownerState:e})=>(0,x.Z)({display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",order:1,minInlineSize:0,flexGrow:1},e.clickable&&{zIndex:1,pointerEvents:"none"})),H=(0,o.Z)("button",{name:"JoyChip",slot:"Action",overridesResolver:(e,t)=>t.action})(({theme:e,ownerState:t})=>{var i,a,r,n;return[{position:"absolute",zIndex:0,top:0,left:0,bottom:0,right:0,width:"100%",border:"none",cursor:"pointer",padding:"initial",margin:"initial",backgroundColor:"initial",textDecoration:"none",borderRadius:"inherit",[e.focus.selector]:e.focus.default},null==(i=e.variants[t.variant])?void 0:i[t.color],{"&:hover":null==(a=e.variants[`${t.variant}Hover`])?void 0:a[t.color]},{"&:active":null==(r=e.variants[`${t.variant}Active`])?void 0:r[t.color]},{[`&.${w.disabled}`]:null==(n=e.variants[`${t.variant}Disabled`])?void 0:n[t.color]}]}),N=(0,o.Z)("span",{name:"JoyChip",slot:"StartDecorator",overridesResolver:(e,t)=>t.startDecorator})({"--Avatar-marginInlineStart":"calc(var(--Chip-decoratorChildOffset) * -1)","--Chip-deleteMargin":"0 0 0 calc(var(--Chip-decoratorChildOffset) * -1)","--Icon-margin":"0 0 0 calc(var(--Chip-paddingInline) / -4)",display:"inherit",marginInlineEnd:"var(--Chip-gap)",order:0,zIndex:1,pointerEvents:"none"}),F=(0,o.Z)("span",{name:"JoyChip",slot:"EndDecorator",overridesResolver:(e,t)=>t.endDecorator})({"--Chip-deleteMargin":"0 calc(var(--Chip-decoratorChildOffset) * -1) 0 0","--Icon-margin":"0 calc(var(--Chip-paddingInline) / -4) 0 0",display:"inherit",marginInlineStart:"var(--Chip-gap)",order:2,zIndex:1,pointerEvents:"none"}),T=n.forwardRef(function(e,t){let i=(0,Z.Z)({props:e,name:"JoyChip"}),{children:r,className:o,color:s="primary",onClick:l,disabled:c=!1,size:d="md",variant:h="solid",startDecorator:p,endDecorator:u,component:g,slots:f={},slotProps:b={}}=i,P=(0,m.Z)(i,R),{getColor:S}=(0,y.VT)(h),w=S(e.color,s),T=!!l||!!b.action,O=(0,x.Z)({},i,{disabled:c,size:d,color:w,variant:h,clickable:T,focusVisible:!1}),E="function"==typeof b.action?b.action(O):b.action,W=n.useRef(null),{focusVisible:L,getRootProps:M}=(0,C.Z)((0,x.Z)({},E,{disabled:c,rootRef:W}));O.focusVisible=L;let A=z(O),U=(0,x.Z)({},P,{component:g,slots:f,slotProps:b}),[$,B]=(0,k.Z)("root",{ref:t,className:(0,v.Z)(A.root,o),elementType:D,externalForwardedProps:U,ownerState:O}),[J,V]=(0,k.Z)("label",{className:A.label,elementType:I,externalForwardedProps:U,ownerState:O}),Y=(0,j.Z)(V.id),[G,K]=(0,k.Z)("action",{className:A.action,elementType:H,externalForwardedProps:U,ownerState:O,getSlotProps:M,additionalProps:{"aria-labelledby":Y,as:null==E?void 0:E.component,onClick:l}}),[X,q]=(0,k.Z)("startDecorator",{className:A.startDecorator,elementType:N,externalForwardedProps:U,ownerState:O}),[Q,ee]=(0,k.Z)("endDecorator",{className:A.endDecorator,elementType:F,externalForwardedProps:U,ownerState:O}),et=n.useMemo(()=>({disabled:c,variant:h,color:"context"===w?void 0:w}),[w,c,h]);return(0,a.jsx)(_.Provider,{value:et,children:(0,a.jsxs)($,(0,x.Z)({},B,{children:[T&&(0,a.jsx)(G,(0,x.Z)({},K)),(0,a.jsx)(J,(0,x.Z)({},V,{id:Y,children:r})),p&&(0,a.jsx)(X,(0,x.Z)({},q,{children:p})),u&&(0,a.jsx)(Q,(0,x.Z)({},ee,{children:u}))]}))})});var O=i(81528),E=i(90545),W=i(35086),L=i(866),M=i(28086),A=i(65326),U=i.n(A),$=i(72474),B=i(59534),J=i(78141),V=i(50157),Y=i(23910),G=i(21628),K=i(1031),X=i(78915);let{Dragger:q}=V.default,Q=(0,o.Z)(s.Z)(e=>{let{theme:t}=e;return{width:"50%",backgroundColor:"dark"===t.palette.mode?t.palette.background.level1:"#fff",...t.typography.body2,padding:t.spacing(1),textAlign:"center",borderRadius:4,color:t.vars.palette.text.secondary}}),ee=["Choose a Datasource type","Setup the Datasource"],et=[{type:"text",title:"Text",subTitle:"Fill your raw text"},{type:"webPage",title:"URL",subTitle:"Fetch the content of a URL"},{type:"file",title:"Document",subTitle:"Upload a document, document type can be PDF, CSV, Text, PowerPoint, Word, Markdown"}];var ei=()=>{let e=(0,r.useRouter)(),t=(0,r.useSearchParams)().get("name"),{mode:i}=(0,l.tv)(),[o,m]=(0,n.useState)(!1),[x,v]=(0,n.useState)(0),[f,C]=(0,n.useState)(""),[b,j]=(0,n.useState)([]),[Z,y]=(0,n.useState)(""),[P,S]=(0,n.useState)(""),[w,_]=(0,n.useState)(""),[k,R]=(0,n.useState)(""),[z,D]=(0,n.useState)(null),[I,H]=(0,n.useState)(0),[N,F]=(0,n.useState)(0),[A,V]=(0,n.useState)(!0);return(0,n.useEffect)(()=>{(async function(){let e=await (0,X.PR)("/knowledge/".concat(t,"/document/list"),{page:1,page_size:20});e.success&&(j(e.data.data),H(e.data.total),F(e.data.page))})()},[]),(0,a.jsxs)("div",{className:"p-4",children:[(0,a.jsxs)(c.Z,{direction:"row",justifyContent:"space-between",alignItems:"center",sx:{marginBottom:"20px"},children:[(0,a.jsxs)(d.Z,{"aria-label":"breadcrumbs",children:[(0,a.jsx)(h.Z,{onClick:()=>{e.push("/datastores")},underline:"hover",color:"neutral",fontSize:"inherit",children:"Knowledge Space"},"Knowledge Space"),(0,a.jsx)(p.ZP,{fontSize:"inherit",children:"Documents"})]}),(0,a.jsx)(u.Z,{variant:"outlined",onClick:()=>m(!0),children:"+ Add Datasource"})]}),b.length?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(g.Z,{color:"primary",variant:"plain",size:"lg",sx:{"& tbody tr: hover":{backgroundColor:"light"===i?"rgb(246, 246, 246)":"rgb(33, 33, 40)"},"& tbody tr: hover a":{textDecoration:"underline"}},children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{children:"Name"}),(0,a.jsx)("th",{children:"Type"}),(0,a.jsx)("th",{children:"Size"}),(0,a.jsx)("th",{children:"Last Synch"}),(0,a.jsx)("th",{children:"Status"}),(0,a.jsx)("th",{children:"Result"}),(0,a.jsx)("th",{children:"Operation"})]})}),(0,a.jsx)("tbody",{children:b.map(i=>(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{children:i.doc_name}),(0,a.jsx)("td",{children:(0,a.jsx)(T,{variant:"solid",color:"neutral",sx:{opacity:.5},children:i.doc_type})}),(0,a.jsxs)("td",{children:[i.chunk_size," chunks"]}),(0,a.jsx)("td",{children:U()(i.last_sync).format("YYYY-MM-DD HH:MM:SS")}),(0,a.jsx)("td",{children:(0,a.jsx)(T,{sx:{opacity:.5},variant:"solid",color:function(){switch(i.status){case"TODO":return"neutral";case"RUNNING":return"primary";case"FINISHED":return"success";case"FAILED":return"danger"}}(),children:i.status})}),(0,a.jsx)("td",{children:"TODO"===i.status||"RUNNING"===i.status?"":"FINISHED"===i.status?(0,a.jsx)(Y.Z,{content:i.result,trigger:"hover",children:(0,a.jsx)(T,{variant:"solid",color:"success",sx:{opacity:.5},children:"SUCCESS"})}):(0,a.jsx)(Y.Z,{content:i.result,trigger:"hover",children:(0,a.jsx)(T,{variant:"solid",color:"danger",sx:{opacity:.5},children:"FAILED"})})}),(0,a.jsx)("td",{children:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(u.Z,{variant:"outlined",size:"sm",sx:{marginRight:"20px"},onClick:async()=>{let e=await (0,X.PR)("/knowledge/".concat(t,"/document/sync"),{doc_ids:[i.id]});e.success?G.ZP.success("success"):G.ZP.error(e.err_msg||"failed")},children:["Synch",(0,a.jsx)(J.Z,{})]}),(0,a.jsx)(u.Z,{variant:"outlined",size:"sm",onClick:()=>{e.push("/datastores/documents/chunklist?spacename=".concat(t,"&documentid=").concat(i.id))},children:"Details"})]})})]},i.id))})]}),(0,a.jsx)(c.Z,{direction:"row",justifyContent:"flex-end",sx:{marginTop:"20px"},children:(0,a.jsx)(K.Z,{defaultPageSize:20,showSizeChanger:!1,current:N,total:I,onChange:async e=>{let i=await (0,X.PR)("/knowledge/".concat(t,"/document/list"),{page:e,page_size:20});i.success&&(j(i.data.data),H(i.data.total),F(i.data.page))},hideOnSinglePage:!0})})]}):(0,a.jsx)(a.Fragment,{}),(0,a.jsx)(O.Z,{sx:{display:"flex",justifyContent:"center",alignItems:"center","z-index":1e3},open:o,onClose:()=>m(!1),children:(0,a.jsxs)(s.Z,{variant:"outlined",sx:{width:800,borderRadius:"md",p:3,boxShadow:"lg"},children:[(0,a.jsx)(E.Z,{sx:{width:"100%"},children:(0,a.jsx)(c.Z,{spacing:2,direction:"row",children:ee.map((e,t)=>(0,a.jsxs)(Q,{sx:{fontWeight:x===t?"bold":"",color:x===t?"#2AA3FF":""},children:[t(0,a.jsxs)(s.Z,{sx:{boxSizing:"border-box",height:"80px",padding:"12px",display:"flex",flexDirection:"column",justifyContent:"space-between",border:"1px solid gray",borderRadius:"6px",marginBottom:"20px",cursor:"pointer"},onClick:()=>{C(e.type),v(1)},children:[(0,a.jsx)(s.Z,{sx:{fontSize:"20px",fontWeight:"bold"},children:e.title}),(0,a.jsx)(s.Z,{children:e.subTitle})]},e.type))})}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(E.Z,{sx:{margin:"30px auto"},children:["Name:",(0,a.jsx)(W.ZP,{placeholder:"Please input the name",onChange:e=>S(e.target.value),sx:{marginBottom:"20px"}}),"webPage"===f?(0,a.jsxs)(a.Fragment,{children:["Web Page URL:",(0,a.jsx)(W.ZP,{placeholder:"Please input the Web Page URL",onChange:e=>y(e.target.value)})]}):"file"===f?(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)(q,{name:"file",multiple:!1,onChange(e){var t;if(console.log(e),0===e.fileList.length){D(null),S("");return}D(e.file.originFileObj),S(null===(t=e.file.originFileObj)||void 0===t?void 0:t.name)},children:[(0,a.jsx)("p",{className:"ant-upload-drag-icon",children:(0,a.jsx)($.Z,{})}),(0,a.jsx)("p",{style:{color:"rgb(22, 108, 255)",fontSize:"20px"},children:"Select or Drop file"}),(0,a.jsx)("p",{className:"ant-upload-hint",style:{color:"rgb(22, 108, 255)"},children:"PDF, PowerPoint, Excel, Word, Text, Markdown,"})]})}):(0,a.jsxs)(a.Fragment,{children:["Text Source(Optional):",(0,a.jsx)(W.ZP,{placeholder:"Please input the text source",onChange:e=>_(e.target.value),sx:{marginBottom:"20px"}}),"Text:",(0,a.jsx)(L.Z,{onChange:e=>R(e.target.value),minRows:4,sx:{marginBottom:"20px"}})]}),(0,a.jsx)(p.ZP,{component:"label",sx:{marginTop:"20px"},endDecorator:(0,a.jsx)(M.Z,{checked:A,onChange:e=>V(e.target.checked)}),children:"Synch:"})]}),(0,a.jsxs)(c.Z,{direction:"row",justifyContent:"flex-start",alignItems:"center",sx:{marginBottom:"20px"},children:[(0,a.jsx)(u.Z,{variant:"outlined",sx:{marginRight:"20px"},onClick:()=>v(0),children:"< Back"}),(0,a.jsx)(u.Z,{variant:"outlined",onClick:async()=>{if(""===P){G.ZP.error("Please input the name");return}if("webPage"===f){if(""===Z){G.ZP.error("Please input the Web Page URL");return}let e=await (0,X.PR)("/knowledge/".concat(t,"/document/add"),{doc_name:P,content:Z,doc_type:"URL"});if(e.success&&A&&(0,X.PR)("/knowledge/".concat(t,"/document/sync"),{doc_ids:[e.data]}),e.success){G.ZP.success("success"),m(!1);let e=await (0,X.PR)("/knowledge/".concat(t,"/document/list"),{page:N,page_size:20});e.success&&(j(e.data.data),H(e.data.total),F(e.data.page))}else G.ZP.error(e.err_msg||"failed")}else if("file"===f){if(!z){G.ZP.error("Please select a file");return}let e=new FormData;e.append("doc_name",P),e.append("doc_file",z),e.append("doc_type","DOCUMENT");let i=await (0,X.Ej)("/knowledge/".concat(t,"/document/upload"),e);if(i.success&&A&&(0,X.PR)("/knowledge/".concat(t,"/document/sync"),{doc_ids:[i.data]}),i.success){G.ZP.success("success"),m(!1);let e=await (0,X.PR)("/knowledge/".concat(t,"/document/list"),{page:N,page_size:20});e.success&&(j(e.data.data),H(e.data.total),F(e.data.page))}else G.ZP.error(i.err_msg||"failed")}else{if(""===k){G.ZP.error("Please input the text");return}let e=await (0,X.PR)("/knowledge/".concat(t,"/document/add"),{doc_name:P,source:w,content:k,doc_type:"TEXT"});if(e.success&&A&&(0,X.PR)("/knowledge/".concat(t,"/document/sync"),{doc_ids:[e.data]}),e.success){G.ZP.success("success"),m(!1);let e=await (0,X.PR)("/knowledge/".concat(t,"/document/list"),{page:N,page_size:20});e.success&&(j(e.data.data),H(e.data.total),F(e.data.page))}else G.ZP.error(e.err_msg||"failed")}},children:"Finish"})]})]})]})})]})}},78915:function(e,t,i){"use strict";i.d(t,{Tk:function(){return d},Kw:function(){return h},PR:function(){return p},Ej:function(){return u}});var a=i(21628),r=i(24214),n=i(52040);let o=r.Z.create({baseURL:n.env.API_BASE_URL});o.defaults.timeout=1e4,o.interceptors.response.use(e=>e.data,e=>Promise.reject(e));var s=i(84835);let l={"content-type":"application/json"},c=e=>{if(!(0,s.isPlainObject)(e))return JSON.stringify(e);let t={...e};for(let e in t){let i=t[e];"string"==typeof i&&(t[e]=i.trim())}return JSON.stringify(t)},d=(e,t)=>{if(t){let i=Object.keys(t).filter(e=>void 0!==t[e]&&""!==t[e]).map(e=>"".concat(e,"=").concat(t[e])).join("&");i&&(e+="?".concat(i))}return o.get("/api"+e,{headers:l}).then(e=>e).catch(e=>{a.ZP.error(e),Promise.reject(e)})},h=(e,t)=>{let i=c(t);return o.post("/api"+e,{body:i,headers:l}).then(e=>e).catch(e=>{a.ZP.error(e),Promise.reject(e)})},p=(e,t)=>(c(t),o.post(e,t,{headers:l}).then(e=>e).catch(e=>{a.ZP.error(e),Promise.reject(e)})),u=(e,t)=>o.post(e,t).then(e=>e).catch(e=>{a.ZP.error(e),Promise.reject(e)})}},function(e){e.O(0,[180,550,110,60,160,86,679,144,790,946,767,957,775,253,769,744],function(){return e(e.s=42414)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/app/datastores/page-d4200bb6a31d3cd4.js b/pilot/server/static/_next/static/chunks/app/datastores/page-d4200bb6a31d3cd4.js new file mode 100644 index 000000000..621532c74 --- /dev/null +++ b/pilot/server/static/_next/static/chunks/app/datastores/page-d4200bb6a31d3cd4.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[43],{29382:function(e,t,n){"use strict";var r=n(78997);t.Z=void 0;var s=r(n(76906)),o=n(9268),a=(0,s.default)([(0,o.jsx)("path",{d:"M5 5h2v3h10V5h2v5h2V5c0-1.1-.9-2-2-2h-4.18C14.4 1.84 13.3 1 12 1s-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h5v-2H5V5zm7-2c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1z"},"0"),(0,o.jsx)("path",{d:"M20.3 18.9c.4-.7.7-1.5.7-2.4 0-2.5-2-4.5-4.5-4.5S12 14 12 16.5s2 4.5 4.5 4.5c.9 0 1.7-.3 2.4-.7l2.7 2.7 1.4-1.4-2.7-2.7zm-3.8.1c-1.4 0-2.5-1.1-2.5-2.5s1.1-2.5 2.5-2.5 2.5 1.1 2.5 2.5-1.1 2.5-2.5 2.5z"},"1")],"ContentPasteSearchOutlined");t.Z=a},85182:function(e,t,n){Promise.resolve().then(n.bind(n,44323))},44323:function(e,t,n){"use strict";n.r(t);var r=n(9268),s=n(56008),o=n(86006),a=n(72474),i=n(59534),c=n(29382),l=n(50157),d=n(21628),x=n(50645),p=n(5737),h=n(90545),u=n(80937),g=n(81528),m=n(35086),f=n(53113),j=n(866),b=n(22046),Z=n(28086),P=n(78915);let{Dragger:w}=l.default,y=(0,x.Z)(p.Z)(e=>{let{theme:t}=e;return{width:"33%",backgroundColor:"dark"===t.palette.mode?t.palette.background.level1:"#fff",...t.typography.body2,padding:t.spacing(1),textAlign:"center",borderRadius:4,color:t.vars.palette.text.secondary}}),k=["Knowledge Space Config","Choose a Datasource type","Setup the Datasource"],S=[{type:"text",title:"Text",subTitle:"Fill your raw text"},{type:"webPage",title:"URL",subTitle:"Fetch the content of a URL"},{type:"file",title:"Document",subTitle:"Upload a document, document type can be PDF, CSV, Text, PowerPoint, Word, Markdown"}];t.default=()=>{let e=(0,s.useRouter)(),[t,n]=(0,o.useState)(0),[l,x]=(0,o.useState)(""),[F,v]=(0,o.useState)([]),[C,R]=(0,o.useState)(!1),[_,A]=(0,o.useState)(""),[z,N]=(0,o.useState)(""),[T,B]=(0,o.useState)(""),[E,O]=(0,o.useState)(""),[D,W]=(0,o.useState)(""),[U,L]=(0,o.useState)(""),[G,M]=(0,o.useState)(""),[V,I]=(0,o.useState)(null),[H,K]=(0,o.useState)(!0);return(0,o.useEffect)(()=>{(async function(){let e=await (0,P.PR)("/knowledge/space/list",{});e.success&&v(e.data)})()},[]),(0,r.jsxs)(h.Z,{sx:{width:"100%",height:"100%"},className:"bg-[#F1F2F5] dark:bg-[#212121]",children:[(0,r.jsx)(h.Z,{className:"page-body p-4",sx:{"&":{height:"90%",overflow:"auto"},"&::-webkit-scrollbar":{display:"none"}},children:(0,r.jsxs)(u.Z,{direction:"row",justifyContent:"space-between",alignItems:"center",flexWrap:"wrap",sx:{"& i":{width:"430px",marginRight:"30px"}},children:[(0,r.jsxs)(h.Z,{sx:{display:"flex",alignContent:"start",boxSizing:"content-box",width:"390px",height:"79px",padding:"33px 20px 40px",marginRight:"30px",marginBottom:"30px",fontSize:"18px",fontWeight:"bold",color:"black",flexShrink:0,flexGrow:0,cursor:"pointer",borderRadius:"16px","&: hover":{boxShadow:"0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);"}},onClick:()=>R(!0),className:"bg-[#E9EBEE] dark:bg-[#484848]",children:[(0,r.jsx)(h.Z,{sx:{width:"32px",height:"32px",lineHeight:"28px",border:"1px solid #2AA3FF",textAlign:"center",borderRadius:"5px",marginRight:"5px",fontWeight:"300",color:"#2AA3FF"},children:"+"}),(0,r.jsx)(h.Z,{sx:{fontSize:"16px"},children:"space"})]}),F.map((t,n)=>(0,r.jsxs)(h.Z,{sx:{padding:"30px 20px 40px",marginRight:"30px",marginBottom:"30px",borderTop:"4px solid rgb(84, 164, 248)",flexShrink:0,flexGrow:0,cursor:"pointer",borderRadius:"10px","&: hover":{boxShadow:"0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);"}},onClick:()=>{e.push("/datastores/documents?name=".concat(t.name))},className:"bg-[#FFFFFF] dark:bg-[#484848]",children:[(0,r.jsxs)(h.Z,{sx:{fontSize:"18px",marginBottom:"10px",fontWeight:"bold",color:"black"},children:[(0,r.jsx)(c.Z,{sx:{marginRight:"5px",color:"#2AA3FF"}}),t.name]}),(0,r.jsxs)(h.Z,{sx:{display:"flex",justifyContent:"flex-start"},children:[(0,r.jsxs)(h.Z,{sx:{width:"130px",flexGrow:0,flexShrink:0},children:[(0,r.jsx)(h.Z,{sx:{color:"#2AA3FF"},children:t.vector_type}),(0,r.jsx)(h.Z,{sx:{fontSize:"12px",color:"black"},children:"Vector"})]}),(0,r.jsxs)(h.Z,{sx:{width:"130px",flexGrow:0,flexShrink:0},children:[(0,r.jsx)(h.Z,{sx:{color:"#2AA3FF"},children:t.owner}),(0,r.jsx)(h.Z,{sx:{fontSize:"12px",color:"black"},children:"Owner"})]}),(0,r.jsxs)(h.Z,{sx:{width:"130px",flexGrow:0,flexShrink:0},children:[(0,r.jsx)(h.Z,{sx:{color:"#2AA3FF"},children:t.docs||0}),(0,r.jsx)(h.Z,{sx:{fontSize:"12px",color:"black"},children:"Docs"})]})]})]},n)),(0,r.jsx)("i",{}),(0,r.jsx)("i",{}),(0,r.jsx)("i",{}),(0,r.jsx)("i",{}),(0,r.jsx)("i",{})]})}),(0,r.jsx)(g.Z,{sx:{display:"flex",justifyContent:"center",alignItems:"center","z-index":1e3},open:C,onClose:()=>R(!1),children:(0,r.jsxs)(p.Z,{variant:"outlined",sx:{width:800,borderRadius:"md",p:3,boxShadow:"lg"},children:[(0,r.jsx)(h.Z,{sx:{width:"100%"},children:(0,r.jsx)(u.Z,{spacing:2,direction:"row",children:k.map((e,n)=>(0,r.jsxs)(y,{sx:{fontWeight:t===n?"bold":"",color:t===n?"#2AA3FF":""},children:[nA(e.target.value),sx:{marginBottom:"20px"}}),"Owner:",(0,r.jsx)(m.ZP,{placeholder:"Please input the owner",onChange:e=>N(e.target.value),sx:{marginBottom:"20px"}}),"Description:",(0,r.jsx)(m.ZP,{placeholder:"Please input the description",onChange:e=>B(e.target.value),sx:{marginBottom:"20px"}})]}),(0,r.jsx)(f.Z,{variant:"outlined",onClick:async()=>{if(""===_){d.ZP.error("please input the name");return}if(""===z){d.ZP.error("please input the owner");return}if(""===T){d.ZP.error("please input the description");return}let e=await (0,P.PR)("/knowledge/space/add",{name:_,vector_type:"Chroma",owner:z,desc:T});if(e.success){d.ZP.success("success"),n(1);let e=await (0,P.PR)("/knowledge/space/list",{});e.success&&v(e.data)}else d.ZP.error(e.err_msg||"failed")},children:"Next"})]}):1===t?(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(h.Z,{sx:{margin:"30px auto"},children:S.map(e=>(0,r.jsxs)(p.Z,{sx:{boxSizing:"border-box",height:"80px",padding:"12px",display:"flex",flexDirection:"column",justifyContent:"space-between",border:"1px solid gray",borderRadius:"6px",marginBottom:"20px",cursor:"pointer"},onClick:()=>{x(e.type),n(2)},children:[(0,r.jsx)(p.Z,{sx:{fontSize:"20px",fontWeight:"bold"},children:e.title}),(0,r.jsx)(p.Z,{children:e.subTitle})]},e.type))})}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(h.Z,{sx:{margin:"30px auto"},children:["Name:",(0,r.jsx)(m.ZP,{placeholder:"Please input the name",onChange:e=>W(e.target.value),sx:{marginBottom:"20px"}}),"webPage"===l?(0,r.jsxs)(r.Fragment,{children:["Web Page URL:",(0,r.jsx)(m.ZP,{placeholder:"Please input the Web Page URL",onChange:e=>O(e.target.value)})]}):"file"===l?(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)(w,{name:"file",multiple:!1,onChange(e){var t;if(console.log(e),0===e.fileList.length){I(null),W("");return}I(e.file.originFileObj),W(null===(t=e.file.originFileObj)||void 0===t?void 0:t.name)},children:[(0,r.jsx)("p",{className:"ant-upload-drag-icon",children:(0,r.jsx)(a.Z,{})}),(0,r.jsx)("p",{style:{color:"rgb(22, 108, 255)",fontSize:"20px"},children:"Select or Drop file"}),(0,r.jsx)("p",{className:"ant-upload-hint",style:{color:"rgb(22, 108, 255)"},children:"PDF, PowerPoint, Excel, Word, Text, Markdown,"})]})}):(0,r.jsxs)(r.Fragment,{children:["Text Source(Optional):",(0,r.jsx)(m.ZP,{placeholder:"Please input the text source",onChange:e=>L(e.target.value),sx:{marginBottom:"20px"}}),"Text:",(0,r.jsx)(j.Z,{onChange:e=>M(e.target.value),minRows:4,sx:{marginBottom:"20px"}})]}),(0,r.jsx)(b.ZP,{component:"label",sx:{marginTop:"20px"},endDecorator:(0,r.jsx)(Z.Z,{checked:H,onChange:e=>K(e.target.checked)}),children:"Synch:"})]}),(0,r.jsxs)(u.Z,{direction:"row",justifyContent:"flex-start",alignItems:"center",sx:{marginBottom:"20px"},children:[(0,r.jsx)(f.Z,{variant:"outlined",sx:{marginRight:"20px"},onClick:()=>n(1),children:"< Back"}),(0,r.jsx)(f.Z,{variant:"outlined",onClick:async()=>{if(""===D){d.ZP.error("Please input the name");return}if("webPage"===l){if(""===E){d.ZP.error("Please input the Web Page URL");return}let e=await (0,P.PR)("/knowledge/".concat(_,"/document/add"),{doc_name:D,content:E,doc_type:"URL"});e.success?(d.ZP.success("success"),R(!1),H&&(0,P.PR)("/knowledge/".concat(_,"/document/sync"),{doc_ids:[e.data]})):d.ZP.error(e.err_msg||"failed")}else if("file"===l){if(!V){d.ZP.error("Please select a file");return}let e=new FormData;e.append("doc_name",D),e.append("doc_file",V),e.append("doc_type","DOCUMENT");let t=await (0,P.Ej)("/knowledge/".concat(_,"/document/upload"),e);t.success?(d.ZP.success("success"),R(!1),H&&(0,P.PR)("/knowledge/".concat(_,"/document/sync"),{doc_ids:[t.data]})):d.ZP.error(t.err_msg||"failed")}else{if(""===G){d.ZP.error("Please input the text");return}let e=await (0,P.PR)("/knowledge/".concat(_,"/document/add"),{doc_name:D,source:U,content:G,doc_type:"TEXT"});e.success?(d.ZP.success("success"),R(!1),H&&(0,P.PR)("/knowledge/".concat(_,"/document/sync"),{doc_ids:[e.data]})):d.ZP.error(e.err_msg||"failed")}},children:"Finish"})]})]})]})})]})}},78915:function(e,t,n){"use strict";n.d(t,{Tk:function(){return d},Kw:function(){return x},PR:function(){return p},Ej:function(){return h}});var r=n(21628),s=n(24214),o=n(52040);let a=s.Z.create({baseURL:o.env.API_BASE_URL});a.defaults.timeout=1e4,a.interceptors.response.use(e=>e.data,e=>Promise.reject(e));var i=n(84835);let c={"content-type":"application/json"},l=e=>{if(!(0,i.isPlainObject)(e))return JSON.stringify(e);let t={...e};for(let e in t){let n=t[e];"string"==typeof n&&(t[e]=n.trim())}return JSON.stringify(t)},d=(e,t)=>{if(t){let n=Object.keys(t).filter(e=>void 0!==t[e]&&""!==t[e]).map(e=>"".concat(e,"=").concat(t[e])).join("&");n&&(e+="?".concat(n))}return a.get("/api"+e,{headers:c}).then(e=>e).catch(e=>{r.ZP.error(e),Promise.reject(e)})},x=(e,t)=>{let n=l(t);return a.post("/api"+e,{body:n,headers:c}).then(e=>e).catch(e=>{r.ZP.error(e),Promise.reject(e)})},p=(e,t)=>(l(t),a.post(e,t,{headers:c}).then(e=>e).catch(e=>{r.ZP.error(e),Promise.reject(e)})),h=(e,t)=>a.post(e,t).then(e=>e).catch(e=>{r.ZP.error(e),Promise.reject(e)})}},function(e){e.O(0,[180,110,60,160,86,679,790,946,775,253,769,744],function(){return e(e.s=85182)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/app/layout-6d9f7ec39c148c6a.js b/pilot/server/static/_next/static/chunks/app/layout-6d9f7ec39c148c6a.js new file mode 100644 index 000000000..5e4cb9be7 --- /dev/null +++ b/pilot/server/static/_next/static/chunks/app/layout-6d9f7ec39c148c6a.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[185],{72431:function(){},86185:function(e,t,r){Promise.resolve().then(r.bind(r,50902))},57931:function(e,t,r){"use strict";r.d(t,{ZP:function(){return c},Cg:function(){return o}});var n=r(9268),i=r(89081),s=r(78915),l=r(86006);let[o,a]=function(){let e=l.createContext(void 0);return[function(){let t=l.useContext(e);if(void 0===t)throw Error("useCtx must be inside a Provider with a value");return t},e.Provider]}();var c=e=>{let{children:t}=e,{run:r,data:l,refresh:o}=(0,i.Z)(async()=>await (0,s.Tk)("/v1/chat/dialogue/list"),{manual:!0});return(0,n.jsx)(a,{value:{dialogueList:l,queryDialogueList:r,refreshDialogList:o},children:t})}},50902:function(e,t,r){"use strict";let n,i;r.r(t),r.d(t,{default:function(){return K}});var s=r(9268);r(97402),r(23517);var l=r(86006),o=r(56008),a=r(35846),c=r.n(a),d=r(20837),u=r(78635),f=r(90545),h=r(22046),x=r(53113),m=r(18818),p=r(4882),v=r(70092),j=r(64579),g=r(53047),b=r(62921),y=r(40020),Z=r(11515),w=r(84892),k=r(601),C=r(1301),B=r(98703),P=r(57931),N=r(66664),_=r(78915),E=()=>{var e;let t=(0,o.usePathname)(),r=(0,o.useSearchParams)(),n=r.get("id"),i=(0,o.useRouter)(),{dialogueList:a,queryDialogueList:E,refreshDialogList:D}=(0,P.Cg)(),{mode:S,setMode:z}=(0,u.tv)(),F=(0,l.useMemo)(()=>[{label:"Knowledge Space",route:"/datastores",icon:(0,s.jsx)(y.Z,{fontSize:"small"}),active:"/datastores"===t}],[t]);return(0,l.useEffect)(()=>{(async()=>{await E()})()},[]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("nav",{className:"flex h-12 items-center justify-between border-b px-4 dark:border-gray-800 dark:bg-gray-800/70 md:hidden",children:[(0,s.jsx)("div",{children:(0,s.jsx)(k.Z,{})}),(0,s.jsx)("span",{className:"truncate px-4",children:"New Chat"}),(0,s.jsx)("a",{href:"",className:"-mr-3 flex h-9 w-9 shrink-0 items-center justify-center",children:(0,s.jsx)(C.Z,{})})]}),(0,s.jsx)("nav",{className:"grid max-h-screen h-full max-md:hidden",children:(0,s.jsxs)(f.Z,{sx:{display:"flex",flexDirection:"column",borderRight:"1px solid",borderColor:"divider",maxHeight:"100vh",position:"sticky",left:"0px",top:"0px",overflow:"hidden"},children:[(0,s.jsx)(f.Z,{sx:{p:2,gap:2,display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center"},children:(0,s.jsx)("div",{className:"flex items-center gap-3",children:(0,s.jsx)(h.ZP,{component:"h1",fontWeight:"xl",children:"DB-GPT"})})}),(0,s.jsx)(f.Z,{sx:{px:2},children:(0,s.jsx)(c(),{href:"/",children:(0,s.jsx)(x.Z,{color:"primary",className:"w-full bg-gradient-to-r from-[#31afff] to-[#1677ff] dark:bg-gradient-to-r dark:from-[#6a6a6a] dark:to-[#80868f]",style:{color:"#fff"},children:"+ New Chat"})})}),(0,s.jsx)(f.Z,{sx:{p:2,display:{xs:"none",sm:"initial"},maxHeight:"100%",overflow:"auto"},children:(0,s.jsx)(m.Z,{size:"sm",sx:{"--ListItem-radius":"8px"},children:(0,s.jsx)(p.Z,{nested:!0,children:(0,s.jsx)(m.Z,{size:"sm","aria-labelledby":"nav-list-browse",sx:{"& .JoyListItemButton-root":{p:"8px"},gap:"4px"},children:null==a?void 0:null===(e=a.data)||void 0===e?void 0:e.map(e=>{let l=("/chat"===t||"/chat/"===t)&&n===e.conv_uid;return(0,s.jsx)(p.Z,{children:(0,s.jsx)(v.Z,{selected:l,variant:l?"soft":"plain",sx:{"&:hover .del-btn":{visibility:"visible"}},children:(0,s.jsx)(j.Z,{children:(0,s.jsxs)(c(),{href:"/chat?id=".concat(e.conv_uid,"&scene=").concat(null==e?void 0:e.chat_mode),className:"flex items-center justify-between",children:[(0,s.jsxs)(h.ZP,{fontSize:14,noWrap:!0,children:[(0,s.jsx)(B.Z,{style:{marginRight:"0.5rem"}}),(null==e?void 0:e.user_name)||(null==e?void 0:e.user_input)||"undefined"]}),(0,s.jsx)(g.ZP,{color:"neutral",variant:"plain",size:"sm",onClick:n=>{n.preventDefault(),n.stopPropagation(),d.Z.confirm({title:"Delete Chat",content:"Are you sure delete this chat?",width:"276px",centered:!0,async onOk(){await (0,_.Kw)("/v1/chat/dialogue/delete?con_uid=".concat(e.conv_uid)),await D(),"/chat"===t&&r.get("id")===e.conv_uid&&i.push("/")}})},className:"del-btn invisible",children:(0,s.jsx)(N.Z,{})})]})})})},e.conv_uid)})})})})}),(0,s.jsxs)("div",{className:"flex flex-col justify-between flex-1",children:[(0,s.jsx)("div",{}),(0,s.jsx)(f.Z,{sx:{p:2,pt:3,pb:6,borderTop:"1px solid",borderColor:"divider",display:{xs:"none",sm:"initial"},position:"sticky",bottom:0,zIndex:100,background:"var(--joy-palette-background-body)"},children:(0,s.jsxs)(m.Z,{size:"sm",sx:{"--ListItem-radius":"8px"},children:[(0,s.jsx)(p.Z,{nested:!0,children:(0,s.jsx)(m.Z,{size:"sm","aria-labelledby":"nav-list-browse",sx:{"& .JoyListItemButton-root":{p:"8px"}},children:F.map(e=>(0,s.jsx)(c(),{href:e.route,children:(0,s.jsx)(p.Z,{children:(0,s.jsxs)(v.Z,{color:"neutral",sx:{marginBottom:1,height:"2.5rem"},selected:e.active,variant:e.active?"soft":"plain",children:[(0,s.jsx)(b.Z,{sx:{color:e.active?"inherit":"neutral.500"},children:e.icon}),(0,s.jsx)(j.Z,{children:e.label})]})})},e.route))})}),(0,s.jsx)(p.Z,{children:(0,s.jsxs)(v.Z,{sx:{height:"2.5rem"},onClick:()=>{"light"===S?z("dark"):z("light")},children:[(0,s.jsx)(b.Z,{children:"dark"===S?(0,s.jsx)(Z.Z,{fontSize:"small"}):(0,s.jsx)(w.Z,{fontSize:"small"})}),(0,s.jsx)(j.Z,{children:"Theme"})]})})]})})]})]})})]})},D=r(29720),S=r(41287),z=r(38230);let F=(0,S.Z)({colorSchemes:{light:{palette:{mode:"dark",primary:{...z.Z.grey,solidBg:"#e6f4ff",solidColor:"#1677ff",solidHoverBg:"#e6f4ff"},neutral:{plainColor:"#4d4d4d",plainHoverColor:"#131318",plainHoverBg:"#EBEBEF",plainActiveBg:"#D8D8DF",plainDisabledColor:"#B9B9C6"},background:{body:"#fff",surface:"#fff"},text:{primary:"#505050"}}},dark:{palette:{mode:"light",primary:{...z.Z.grey,softBg:"#353539",softHoverBg:"#35353978",softDisabledBg:"#353539",solidBg:"#51525beb",solidHoverBg:"#51525beb"},neutral:{plainColor:"#D8D8DF",plainHoverColor:"#F7F7F8",plainHoverBg:"#353539",plainActiveBg:"#434356",plainDisabledColor:"#434356",outlinedBorder:"#353539",outlinedHoverBorder:"#454651"},text:{primary:"#EBEBEF"},background:{body:"#212121",surface:"#51525beb"}}}},fontFamily:{body:"Josefin Sans, sans-serif",display:"Josefin Sans, sans-serif"},typography:{display1:{background:"linear-gradient(-30deg, var(--joy-palette-primary-900), var(--joy-palette-primary-400))",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent"}}});var H=r(53794),L=r.n(H),T=r(54486),I=r.n(T);let O=0;function R(){"loading"!==i&&(i="loading",n=setTimeout(function(){I().start()},250))}function A(){O>0||(i="stop",clearTimeout(n),I().done())}if(L().events.on("routeChangeStart",R),L().events.on("routeChangeComplete",A),L().events.on("routeChangeError",A),"function"==typeof(null==window?void 0:window.fetch)){let e=window.fetch;window.fetch=async function(){for(var t=arguments.length,r=Array(t),n=0;n{if((null==n?void 0:n.current)&&r){var e,t,i,s,l,o;null==n||null===(e=n.current)||void 0===e||null===(t=e.classList)||void 0===t||t.add(r),"light"===r?null==n||null===(i=n.current)||void 0===i||null===(s=i.classList)||void 0===s||s.remove("dark"):null==n||null===(l=n.current)||void 0===l||null===(o=l.classList)||void 0===o||o.remove("light")}},[n,r]),(0,s.jsxs)("div",{ref:n,className:"h-full",children:[(0,s.jsx)(J,{}),(0,s.jsx)(P.ZP,{children:(0,s.jsx)("div",{className:"contents h-full",children:(0,s.jsxs)("div",{className:"grid h-full w-screen grid-cols-1 grid-rows-[auto,1fr] overflow-hidden text-smd dark:text-gray-300 md:grid-cols-[280px,1fr] md:grid-rows-[1fr]",children:[(0,s.jsx)(E,{}),(0,s.jsx)("div",{className:"relative min-h-0 min-w-0",children:t})]})})})]})}var K=function(e){let{children:t}=e;return(0,s.jsx)("html",{lang:"en",className:"h-full font-sans",children:(0,s.jsx)("body",{className:"h-full font-sans",children:(0,s.jsx)(D.Z,{theme:F,children:(0,s.jsx)(u.lL,{theme:F,defaultMode:"light",children:(0,s.jsx)(W,{children:t})})})})})}},78915:function(e,t,r){"use strict";r.d(t,{Tk:function(){return d},Kw:function(){return u},PR:function(){return f},Ej:function(){return h}});var n=r(21628),i=r(24214),s=r(52040);let l=i.Z.create({baseURL:s.env.API_BASE_URL});l.defaults.timeout=1e4,l.interceptors.response.use(e=>e.data,e=>Promise.reject(e));var o=r(84835);let a={"content-type":"application/json"},c=e=>{if(!(0,o.isPlainObject)(e))return JSON.stringify(e);let t={...e};for(let e in t){let r=t[e];"string"==typeof r&&(t[e]=r.trim())}return JSON.stringify(t)},d=(e,t)=>{if(t){let r=Object.keys(t).filter(e=>void 0!==t[e]&&""!==t[e]).map(e=>"".concat(e,"=").concat(t[e])).join("&");r&&(e+="?".concat(r))}return l.get("/api"+e,{headers:a}).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)})},u=(e,t)=>{let r=c(t);return l.post("/api"+e,{body:r,headers:a}).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)})},f=(e,t)=>(c(t),l.post(e,t,{headers:a}).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)})),h=(e,t)=>l.post(e,t).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)})},97402:function(){},23517:function(){}},function(e){e.O(0,[180,110,60,160,144,316,946,751,256,253,769,744],function(){return e(e.s=86185)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/app/page-254872a7b51c14e0.js b/pilot/server/static/_next/static/chunks/app/page-254872a7b51c14e0.js new file mode 100644 index 000000000..26fe0d0ec --- /dev/null +++ b/pilot/server/static/_next/static/chunks/app/page-254872a7b51c14e0.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[931],{69255:function(i,e,t){Promise.resolve().then(t.bind(t,26925))},26925:function(i,e,t){"use strict";t.r(e),t.d(e,{default:function(){return B}});var r=t(9268),n=t(89081),a=t(86006),o=t(22046),l=t(46750),s=t(40431),c=t(89791),d=t(53832),v=t(47562),u=t(50645),h=t(88930),m=t(18587);function p(i){return(0,m.d6)("MuiDivider",i)}(0,m.sI)("MuiDivider",["root","horizontal","vertical","insetContext","insetNone"]);var x=t(326);let g=["className","children","component","inset","orientation","role","slots","slotProps"],f=i=>{let{orientation:e,inset:t}=i,r={root:["root",e,t&&`inset${(0,d.Z)(t)}`]};return(0,v.Z)(r,p,{})},y=(0,u.Z)("hr",{name:"JoyDivider",slot:"Root",overridesResolver:(i,e)=>e.root})(({theme:i,ownerState:e})=>(0,s.Z)({"--Divider-thickness":"1px","--Divider-lineColor":i.vars.palette.divider},"none"===e.inset&&{"--_Divider-inset":"0px"},"context"===e.inset&&{"--_Divider-inset":"var(--Divider-inset, 0px)"},{margin:"initial",marginInline:"vertical"===e.orientation?"initial":"var(--_Divider-inset)",marginBlock:"vertical"===e.orientation?"var(--_Divider-inset)":"initial",position:"relative",alignSelf:"stretch",flexShrink:0},e.children?{"--Divider-gap":i.spacing(1),"--Divider-childPosition":"50%",display:"flex",flexDirection:"vertical"===e.orientation?"column":"row",alignItems:"center",whiteSpace:"nowrap",textAlign:"center",border:0,fontFamily:i.vars.fontFamily.body,fontSize:i.vars.fontSize.sm,"&::before, &::after":{position:"relative",inlineSize:"vertical"===e.orientation?"var(--Divider-thickness)":"initial",blockSize:"vertical"===e.orientation?"initial":"var(--Divider-thickness)",backgroundColor:"var(--Divider-lineColor)",content:'""'},"&::before":{marginInlineEnd:"vertical"===e.orientation?"initial":"min(var(--Divider-childPosition) * 999, var(--Divider-gap))",marginBlockEnd:"vertical"===e.orientation?"min(var(--Divider-childPosition) * 999, var(--Divider-gap))":"initial",flexBasis:"var(--Divider-childPosition)"},"&::after":{marginInlineStart:"vertical"===e.orientation?"initial":"min((100% - var(--Divider-childPosition)) * 999, var(--Divider-gap))",marginBlockStart:"vertical"===e.orientation?"min((100% - var(--Divider-childPosition)) * 999, var(--Divider-gap))":"initial",flexBasis:"calc(100% - var(--Divider-childPosition))"}}:{border:"none",listStyle:"none",backgroundColor:"var(--Divider-lineColor)",inlineSize:"vertical"===e.orientation?"var(--Divider-thickness)":"initial",blockSize:"vertical"===e.orientation?"initial":"var(--Divider-thickness)"})),b=a.forwardRef(function(i,e){let t=(0,h.Z)({props:i,name:"JoyDivider"}),{className:n,children:a,component:o=null!=a?"div":"hr",inset:d,orientation:v="horizontal",role:u="hr"!==o?"separator":void 0,slots:m={},slotProps:p={}}=t,b=(0,l.Z)(t,g),j=(0,s.Z)({},t,{inset:d,role:u,orientation:v,component:o}),D=f(j),P=(0,s.Z)({},b,{component:o,slots:m,slotProps:p}),[k,w]=(0,x.Z)("root",{ref:e,className:(0,c.Z)(D.root,n),elementType:y,externalForwardedProps:P,ownerState:j,additionalProps:(0,s.Z)({as:o,role:u},"separator"===u&&"vertical"===v&&{"aria-orientation":"vertical"})});return(0,r.jsx)(k,(0,s.Z)({},w,{children:a}))});b.muiName="Divider";var j=t(90545),D=t(77614),P=t(53113),k=t(35086),w=t(53047),Z=t(54842),_=t(67830),N=t(19700),S=t(92391),C=t(78915),z=t(56008);function B(){var i;let e=S.z.object({query:S.z.string().min(1)}),t=(0,z.useRouter)(),[l,s]=(0,a.useState)(!1),c=(0,N.cI)({resolver:(0,_.F)(e),defaultValues:{}}),{data:d}=(0,n.Z)(async()=>await (0,C.Kw)("/v1/chat/dialogue/scenes")),v=async i=>{let{query:e}=i;try{var r,n;s(!0),c.reset();let i=await (0,C.Kw)("/v1/chat/dialogue/new",{chat_mode:"chat_normal"});(null==i?void 0:i.success)&&(null==i?void 0:null===(r=i.data)||void 0===r?void 0:r.conv_uid)&&t.push("/chat?id=".concat(null==i?void 0:null===(n=i.data)||void 0===n?void 0:n.conv_uid,"&initMessage=").concat(e))}catch(i){}finally{s(!1)}};return(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("div",{className:"mx-auto h-full justify-center flex max-w-3xl flex-col gap-8 px-5 pt-6 xl:max-w-4xl",children:[(0,r.jsxs)("div",{className:"max-w-xs my-0 mx-auto",children:[(0,r.jsx)(o.ZP,{level:"h3",className:"text-center",children:"DB-GPT"}),(0,r.jsx)(o.ZP,{level:"body1",className:"text-center pt-4",children:"Revolutionizing Database Interactions with Private LLM Technology"})]}),(0,r.jsx)("div",{className:"grid gap-8 lg:grid-cols-3",children:(0,r.jsxs)("div",{className:"lg:col-span-3",children:[(0,r.jsx)(b,{className:"text-[#878c93]",children:"Quick Start"}),(0,r.jsx)(j.Z,{className:"grid pt-7 rounded-xl gap-2 lg:grid-cols-3 lg:gap-6",sx:{["& .".concat(D.Z.root)]:{color:"var(--joy-palette-primary-solidColor)",backgroundColor:"var(--joy-palette-primary-solidBg)",height:"52px","&: hover":{backgroundColor:"var(--joy-palette-primary-solidHoverBg)"}},["& .".concat(D.Z.disabled)]:{cursor:"not-allowed",pointerEvents:"unset",color:"var(--joy-palette-primary-plainColor)",backgroundColor:"var(--joy-palette-primary-softDisabledBg)","&: hover":{backgroundColor:"var(--joy-palette-primary-softDisabledBg)"}}},children:null==d?void 0:null===(i=d.data)||void 0===i?void 0:i.map(i=>(0,r.jsx)(P.Z,{disabled:null==i?void 0:i.show_disable,size:"md",variant:"solid",className:"text-base rounded-none",onClick:async()=>{var e,r;let n=await (0,C.Kw)("/v1/chat/dialogue/new",{chat_mode:i.chat_scene});(null==n?void 0:n.success)&&(null==n?void 0:null===(e=n.data)||void 0===e?void 0:e.conv_uid)&&t.push("/chat?id=".concat(null==n?void 0:null===(r=n.data)||void 0===r?void 0:r.conv_uid,"&scene=").concat(i.chat_scene))},children:i.scene_name},i.chat_scene))})]})}),(0,r.jsx)("div",{className:"mt-6 mb-[10%] pointer-events-none inset-x-0 bottom-0 z-0 mx-auto flex w-full max-w-3xl flex-col items-center justify-center max-md:border-t xl:max-w-4xl [&>*]:pointer-events-auto",children:(0,r.jsx)("form",{style:{maxWidth:"100%",width:"100%",position:"relative",display:"flex",marginTop:"auto",overflow:"visible",background:"none",justifyContent:"center",marginLeft:"auto",marginRight:"auto",height:"52px"},onSubmit:i=>{c.handleSubmit(v)(i)},children:(0,r.jsx)(k.ZP,{sx:{width:"100%"},variant:"outlined",placeholder:"Ask anything",endDecorator:(0,r.jsx)(w.ZP,{type:"submit",disabled:l,children:(0,r.jsx)(Z.Z,{})}),...c.register("query")})})})]})})}},78915:function(i,e,t){"use strict";t.d(e,{Tk:function(){return d},Kw:function(){return v},PR:function(){return u},Ej:function(){return h}});var r=t(21628),n=t(24214),a=t(52040);let o=n.Z.create({baseURL:a.env.API_BASE_URL});o.defaults.timeout=1e4,o.interceptors.response.use(i=>i.data,i=>Promise.reject(i));var l=t(84835);let s={"content-type":"application/json"},c=i=>{if(!(0,l.isPlainObject)(i))return JSON.stringify(i);let e={...i};for(let i in e){let t=e[i];"string"==typeof t&&(e[i]=t.trim())}return JSON.stringify(e)},d=(i,e)=>{if(e){let t=Object.keys(e).filter(i=>void 0!==e[i]&&""!==e[i]).map(i=>"".concat(i,"=").concat(e[i])).join("&");t&&(i+="?".concat(t))}return o.get("/api"+i,{headers:s}).then(i=>i).catch(i=>{r.ZP.error(i),Promise.reject(i)})},v=(i,e)=>{let t=c(e);return o.post("/api"+i,{body:t,headers:s}).then(i=>i).catch(i=>{r.ZP.error(i),Promise.reject(i)})},u=(i,e)=>(c(e),o.post(i,e,{headers:s}).then(i=>i).catch(i=>{r.ZP.error(i),Promise.reject(i)})),h=(i,e)=>o.post(i,e).then(i=>i).catch(i=>{r.ZP.error(i),Promise.reject(i)})}},function(i){i.O(0,[180,110,60,86,316,259,253,769,744],function(){return i(i.s=69255)}),_N_E=i.O()}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/main-app-75c197595e152149.js b/pilot/server/static/_next/static/chunks/main-app-75c197595e152149.js new file mode 100644 index 000000000..88d8ac02f --- /dev/null +++ b/pilot/server/static/_next/static/chunks/main-app-75c197595e152149.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[744],{72656:function(e,n,t){Promise.resolve().then(t.t.bind(t,68802,23)),Promise.resolve().then(t.t.bind(t,13211,23)),Promise.resolve().then(t.t.bind(t,5767,23)),Promise.resolve().then(t.t.bind(t,14299,23)),Promise.resolve().then(t.t.bind(t,37396,23))}},function(e){var n=function(n){return e(e.s=n)};e.O(0,[253,769],function(){return n(29070),n(72656)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/kvEPRdcHK79LEj3_AaRj1/_buildManifest.js b/pilot/server/static/_next/static/kvEPRdcHK79LEj3_AaRj1/_buildManifest.js new file mode 100644 index 000000000..cb10d35e8 --- /dev/null +++ b/pilot/server/static/_next/static/kvEPRdcHK79LEj3_AaRj1/_buildManifest.js @@ -0,0 +1 @@ +self.__BUILD_MANIFEST={__rewrites:{beforeFiles:[],afterFiles:[],fallback:[]},"/_error":["static/chunks/pages/_error-f5357f382422dd96.js"],sortedPages:["/_app","/_error"]},self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/pilot/server/static/_next/static/kvEPRdcHK79LEj3_AaRj1/_ssgManifest.js b/pilot/server/static/_next/static/kvEPRdcHK79LEj3_AaRj1/_ssgManifest.js new file mode 100644 index 000000000..5b3ff592f --- /dev/null +++ b/pilot/server/static/_next/static/kvEPRdcHK79LEj3_AaRj1/_ssgManifest.js @@ -0,0 +1 @@ +self.__SSG_MANIFEST=new Set([]);self.__SSG_MANIFEST_CB&&self.__SSG_MANIFEST_CB() \ No newline at end of file diff --git a/pilot/server/static/chat/index.html b/pilot/server/static/chat/index.html index a962d576d..dde5a5990 100644 --- a/pilot/server/static/chat/index.html +++ b/pilot/server/static/chat/index.html @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/pilot/server/static/chat/index.txt b/pilot/server/static/chat/index.txt index e55a9cf4e..3e5eaf6f7 100644 --- a/pilot/server/static/chat/index.txt +++ b/pilot/server/static/chat/index.txt @@ -1,9 +1,9 @@ 1:HL["/_next/static/css/1c53d4eca82e2bb3.css",{"as":"style"}] -0:["Cow4Dk3Cb5ywOteYPWBYm",[[["",{"children":["chat",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/1c53d4eca82e2bb3.css","precedence":"next"}]],["$L3",null]]]]] -4:I{"id":"50902","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","110:static/chunks/110-470e5d8a0cb4cf14.js","60:static/chunks/60-8ef99caef9fdf742.js","160:static/chunks/160-ba31b9436f6470d2.js","316:static/chunks/316-370750739484dff7.js","946:static/chunks/946-3a66ddfd20b8ad3d.js","144:static/chunks/144-8e8590698005aba2.js","751:static/chunks/751-30fee9a32c6e64a2.js","256:static/chunks/256-f82130fbef33c4d6.js","185:static/chunks/app/layout-34c784bda079f18d.js"],"name":"","async":false} +0:["kvEPRdcHK79LEj3_AaRj1",[[["",{"children":["chat",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/1c53d4eca82e2bb3.css","precedence":"next"}]],["$L3",null]]]]] +4:I{"id":"50902","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","110:static/chunks/110-470e5d8a0cb4cf14.js","60:static/chunks/60-8ef99caef9fdf742.js","160:static/chunks/160-ba31b9436f6470d2.js","144:static/chunks/144-8e8590698005aba2.js","316:static/chunks/316-370750739484dff7.js","946:static/chunks/946-3a66ddfd20b8ad3d.js","751:static/chunks/751-30fee9a32c6e64a2.js","256:static/chunks/256-f82130fbef33c4d6.js","185:static/chunks/app/layout-6d9f7ec39c148c6a.js"],"name":"","async":false} 5:I{"id":"13211","chunks":["272:static/chunks/webpack-81b9e46a3f1e5c68.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false} 6:I{"id":"5767","chunks":["272:static/chunks/webpack-81b9e46a3f1e5c68.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false} 7:I{"id":"37396","chunks":["272:static/chunks/webpack-81b9e46a3f1e5c68.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false} -8:I{"id":"65641","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","757:static/chunks/f60284a2-6891068c9ea7ce77.js","282:static/chunks/7e4358a0-8f10c290d655cdf1.js","110:static/chunks/110-470e5d8a0cb4cf14.js","60:static/chunks/60-8ef99caef9fdf742.js","86:static/chunks/86-6193a530bd8e3ef4.js","316:static/chunks/316-370750739484dff7.js","790:static/chunks/790-97e6b769f5c791cb.js","259:static/chunks/259-2c3490a9eca2f411.js","767:static/chunks/767-b93280f4b5b5e975.js","751:static/chunks/751-30fee9a32c6e64a2.js","436:static/chunks/436-0a7be5b31482f8e8.js","929:static/chunks/app/chat/page-fa8f6230bc48190e.js"],"name":"","async":false} +8:I{"id":"65641","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","757:static/chunks/f60284a2-6891068c9ea7ce77.js","282:static/chunks/7e4358a0-8f10c290d655cdf1.js","110:static/chunks/110-470e5d8a0cb4cf14.js","60:static/chunks/60-8ef99caef9fdf742.js","86:static/chunks/86-6193a530bd8e3ef4.js","316:static/chunks/316-370750739484dff7.js","790:static/chunks/790-97e6b769f5c791cb.js","767:static/chunks/767-b93280f4b5b5e975.js","259:static/chunks/259-2c3490a9eca2f411.js","751:static/chunks/751-30fee9a32c6e64a2.js","436:static/chunks/436-0a7be5b31482f8e8.js","929:static/chunks/app/chat/page-4266d316599e0141.js"],"name":"","async":false} 2:[["$","$L4",null,{"children":["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","loading":"$undefined","loadingStyles":"$undefined","hasLoading":false,"template":["$","$L6",null,{}],"templateStyles":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","childProp":{"current":["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children","chat","children"],"error":"$undefined","errorStyles":"$undefined","loading":"$undefined","loadingStyles":"$undefined","hasLoading":false,"template":["$","$L6",null,{}],"templateStyles":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","childProp":{"current":[["$","$L7",null,{"propsForComponent":{"params":{}},"Component":"$8"}],null],"segment":"__PAGE__"},"styles":[]}],"segment":"chat"},"styles":[]}],"params":{}}],null] 3:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","link","2",{"rel":"icon","href":"/favicon.ico","type":"image/x-icon","sizes":"any"}]] diff --git a/pilot/server/static/datastores/documents/chunklist/index.html b/pilot/server/static/datastores/documents/chunklist/index.html index 5b8c1b1c3..345f56683 100644 --- a/pilot/server/static/datastores/documents/chunklist/index.html +++ b/pilot/server/static/datastores/documents/chunklist/index.html @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/pilot/server/static/datastores/documents/chunklist/index.txt b/pilot/server/static/datastores/documents/chunklist/index.txt index ca9084e95..bd027b197 100644 --- a/pilot/server/static/datastores/documents/chunklist/index.txt +++ b/pilot/server/static/datastores/documents/chunklist/index.txt @@ -1,9 +1,9 @@ 1:HL["/_next/static/css/1c53d4eca82e2bb3.css",{"as":"style"}] -0:["Cow4Dk3Cb5ywOteYPWBYm",[[["",{"children":["datastores",{"children":["documents",{"children":["chunklist",{"children":["__PAGE__",{}]}]}]}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/1c53d4eca82e2bb3.css","precedence":"next"}]],["$L3",null]]]]] -4:I{"id":"50902","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","110:static/chunks/110-470e5d8a0cb4cf14.js","60:static/chunks/60-8ef99caef9fdf742.js","160:static/chunks/160-ba31b9436f6470d2.js","316:static/chunks/316-370750739484dff7.js","946:static/chunks/946-3a66ddfd20b8ad3d.js","144:static/chunks/144-8e8590698005aba2.js","751:static/chunks/751-30fee9a32c6e64a2.js","256:static/chunks/256-f82130fbef33c4d6.js","185:static/chunks/app/layout-34c784bda079f18d.js"],"name":"","async":false} +0:["kvEPRdcHK79LEj3_AaRj1",[[["",{"children":["datastores",{"children":["documents",{"children":["chunklist",{"children":["__PAGE__",{}]}]}]}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/1c53d4eca82e2bb3.css","precedence":"next"}]],["$L3",null]]]]] +4:I{"id":"50902","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","110:static/chunks/110-470e5d8a0cb4cf14.js","60:static/chunks/60-8ef99caef9fdf742.js","160:static/chunks/160-ba31b9436f6470d2.js","144:static/chunks/144-8e8590698005aba2.js","316:static/chunks/316-370750739484dff7.js","946:static/chunks/946-3a66ddfd20b8ad3d.js","751:static/chunks/751-30fee9a32c6e64a2.js","256:static/chunks/256-f82130fbef33c4d6.js","185:static/chunks/app/layout-6d9f7ec39c148c6a.js"],"name":"","async":false} 5:I{"id":"13211","chunks":["272:static/chunks/webpack-81b9e46a3f1e5c68.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false} 6:I{"id":"5767","chunks":["272:static/chunks/webpack-81b9e46a3f1e5c68.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false} 7:I{"id":"37396","chunks":["272:static/chunks/webpack-81b9e46a3f1e5c68.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false} -8:I{"id":"26257","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","110:static/chunks/110-470e5d8a0cb4cf14.js","160:static/chunks/160-ba31b9436f6470d2.js","679:static/chunks/679-2432e2fce32149a4.js","144:static/chunks/144-8e8590698005aba2.js","767:static/chunks/767-b93280f4b5b5e975.js","957:static/chunks/957-80662c0af3fc4d0d.js","538:static/chunks/app/datastores/documents/chunklist/page-1fa22911a9476f41.js"],"name":"","async":false} +8:I{"id":"26257","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","110:static/chunks/110-470e5d8a0cb4cf14.js","160:static/chunks/160-ba31b9436f6470d2.js","679:static/chunks/679-2432e2fce32149a4.js","144:static/chunks/144-8e8590698005aba2.js","767:static/chunks/767-b93280f4b5b5e975.js","957:static/chunks/957-80662c0af3fc4d0d.js","538:static/chunks/app/datastores/documents/chunklist/page-042df8c81ee99ad6.js"],"name":"","async":false} 2:[["$","$L4",null,{"children":["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","loading":"$undefined","loadingStyles":"$undefined","hasLoading":false,"template":["$","$L6",null,{}],"templateStyles":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","childProp":{"current":["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children","datastores","children"],"error":"$undefined","errorStyles":"$undefined","loading":"$undefined","loadingStyles":"$undefined","hasLoading":false,"template":["$","$L6",null,{}],"templateStyles":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","childProp":{"current":["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children","datastores","children","documents","children"],"error":"$undefined","errorStyles":"$undefined","loading":"$undefined","loadingStyles":"$undefined","hasLoading":false,"template":["$","$L6",null,{}],"templateStyles":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","childProp":{"current":["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children","datastores","children","documents","children","chunklist","children"],"error":"$undefined","errorStyles":"$undefined","loading":"$undefined","loadingStyles":"$undefined","hasLoading":false,"template":["$","$L6",null,{}],"templateStyles":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","childProp":{"current":[["$","$L7",null,{"propsForComponent":{"params":{}},"Component":"$8"}],null],"segment":"__PAGE__"},"styles":[]}],"segment":"chunklist"},"styles":[]}],"segment":"documents"},"styles":[]}],"segment":"datastores"},"styles":[]}],"params":{}}],null] 3:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","link","2",{"rel":"icon","href":"/favicon.ico","type":"image/x-icon","sizes":"any"}]] diff --git a/pilot/server/static/datastores/documents/index.html b/pilot/server/static/datastores/documents/index.html index 38d78f036..3c79564bb 100644 --- a/pilot/server/static/datastores/documents/index.html +++ b/pilot/server/static/datastores/documents/index.html @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/pilot/server/static/datastores/documents/index.txt b/pilot/server/static/datastores/documents/index.txt index de6c4d8d2..bd0975278 100644 --- a/pilot/server/static/datastores/documents/index.txt +++ b/pilot/server/static/datastores/documents/index.txt @@ -1,9 +1,9 @@ 1:HL["/_next/static/css/1c53d4eca82e2bb3.css",{"as":"style"}] -0:["Cow4Dk3Cb5ywOteYPWBYm",[[["",{"children":["datastores",{"children":["documents",{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/1c53d4eca82e2bb3.css","precedence":"next"}]],["$L3",null]]]]] -4:I{"id":"50902","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","110:static/chunks/110-470e5d8a0cb4cf14.js","60:static/chunks/60-8ef99caef9fdf742.js","160:static/chunks/160-ba31b9436f6470d2.js","316:static/chunks/316-370750739484dff7.js","946:static/chunks/946-3a66ddfd20b8ad3d.js","144:static/chunks/144-8e8590698005aba2.js","751:static/chunks/751-30fee9a32c6e64a2.js","256:static/chunks/256-f82130fbef33c4d6.js","185:static/chunks/app/layout-34c784bda079f18d.js"],"name":"","async":false} +0:["kvEPRdcHK79LEj3_AaRj1",[[["",{"children":["datastores",{"children":["documents",{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/1c53d4eca82e2bb3.css","precedence":"next"}]],["$L3",null]]]]] +4:I{"id":"50902","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","110:static/chunks/110-470e5d8a0cb4cf14.js","60:static/chunks/60-8ef99caef9fdf742.js","160:static/chunks/160-ba31b9436f6470d2.js","144:static/chunks/144-8e8590698005aba2.js","316:static/chunks/316-370750739484dff7.js","946:static/chunks/946-3a66ddfd20b8ad3d.js","751:static/chunks/751-30fee9a32c6e64a2.js","256:static/chunks/256-f82130fbef33c4d6.js","185:static/chunks/app/layout-6d9f7ec39c148c6a.js"],"name":"","async":false} 5:I{"id":"13211","chunks":["272:static/chunks/webpack-81b9e46a3f1e5c68.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false} 6:I{"id":"5767","chunks":["272:static/chunks/webpack-81b9e46a3f1e5c68.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false} 7:I{"id":"37396","chunks":["272:static/chunks/webpack-81b9e46a3f1e5c68.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false} -8:I{"id":"42069","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","110:static/chunks/110-470e5d8a0cb4cf14.js","60:static/chunks/60-8ef99caef9fdf742.js","160:static/chunks/160-ba31b9436f6470d2.js","86:static/chunks/86-6193a530bd8e3ef4.js","679:static/chunks/679-2432e2fce32149a4.js","790:static/chunks/790-97e6b769f5c791cb.js","946:static/chunks/946-3a66ddfd20b8ad3d.js","163:static/chunks/163-59f735b072797bdd.js","470:static/chunks/app/datastores/documents/page-7226571ba18444cc.js"],"name":"","async":false} +8:I{"id":"16692","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","550:static/chunks/925f3d25-1af7259455ef26bd.js","110:static/chunks/110-470e5d8a0cb4cf14.js","60:static/chunks/60-8ef99caef9fdf742.js","160:static/chunks/160-ba31b9436f6470d2.js","86:static/chunks/86-6193a530bd8e3ef4.js","679:static/chunks/679-2432e2fce32149a4.js","144:static/chunks/144-8e8590698005aba2.js","790:static/chunks/790-97e6b769f5c791cb.js","946:static/chunks/946-3a66ddfd20b8ad3d.js","767:static/chunks/767-b93280f4b5b5e975.js","957:static/chunks/957-80662c0af3fc4d0d.js","775:static/chunks/775-224c8c8f5ee3fd65.js","470:static/chunks/app/datastores/documents/page-d01efb573de36698.js"],"name":"","async":false} 2:[["$","$L4",null,{"children":["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","loading":"$undefined","loadingStyles":"$undefined","hasLoading":false,"template":["$","$L6",null,{}],"templateStyles":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","childProp":{"current":["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children","datastores","children"],"error":"$undefined","errorStyles":"$undefined","loading":"$undefined","loadingStyles":"$undefined","hasLoading":false,"template":["$","$L6",null,{}],"templateStyles":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","childProp":{"current":["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children","datastores","children","documents","children"],"error":"$undefined","errorStyles":"$undefined","loading":"$undefined","loadingStyles":"$undefined","hasLoading":false,"template":["$","$L6",null,{}],"templateStyles":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","childProp":{"current":[["$","$L7",null,{"propsForComponent":{"params":{}},"Component":"$8"}],null],"segment":"__PAGE__"},"styles":[]}],"segment":"documents"},"styles":[]}],"segment":"datastores"},"styles":[]}],"params":{}}],null] 3:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","link","2",{"rel":"icon","href":"/favicon.ico","type":"image/x-icon","sizes":"any"}]] diff --git a/pilot/server/static/datastores/index.html b/pilot/server/static/datastores/index.html index e7328de82..ec3ad4424 100644 --- a/pilot/server/static/datastores/index.html +++ b/pilot/server/static/datastores/index.html @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/pilot/server/static/datastores/index.txt b/pilot/server/static/datastores/index.txt index b624ae6b2..f64d484e6 100644 --- a/pilot/server/static/datastores/index.txt +++ b/pilot/server/static/datastores/index.txt @@ -1,9 +1,9 @@ 1:HL["/_next/static/css/1c53d4eca82e2bb3.css",{"as":"style"}] -0:["Cow4Dk3Cb5ywOteYPWBYm",[[["",{"children":["datastores",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/1c53d4eca82e2bb3.css","precedence":"next"}]],["$L3",null]]]]] -4:I{"id":"50902","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","110:static/chunks/110-470e5d8a0cb4cf14.js","60:static/chunks/60-8ef99caef9fdf742.js","160:static/chunks/160-ba31b9436f6470d2.js","316:static/chunks/316-370750739484dff7.js","946:static/chunks/946-3a66ddfd20b8ad3d.js","144:static/chunks/144-8e8590698005aba2.js","751:static/chunks/751-30fee9a32c6e64a2.js","256:static/chunks/256-f82130fbef33c4d6.js","185:static/chunks/app/layout-34c784bda079f18d.js"],"name":"","async":false} +0:["kvEPRdcHK79LEj3_AaRj1",[[["",{"children":["datastores",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/1c53d4eca82e2bb3.css","precedence":"next"}]],["$L3",null]]]]] +4:I{"id":"50902","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","110:static/chunks/110-470e5d8a0cb4cf14.js","60:static/chunks/60-8ef99caef9fdf742.js","160:static/chunks/160-ba31b9436f6470d2.js","144:static/chunks/144-8e8590698005aba2.js","316:static/chunks/316-370750739484dff7.js","946:static/chunks/946-3a66ddfd20b8ad3d.js","751:static/chunks/751-30fee9a32c6e64a2.js","256:static/chunks/256-f82130fbef33c4d6.js","185:static/chunks/app/layout-6d9f7ec39c148c6a.js"],"name":"","async":false} 5:I{"id":"13211","chunks":["272:static/chunks/webpack-81b9e46a3f1e5c68.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false} 6:I{"id":"5767","chunks":["272:static/chunks/webpack-81b9e46a3f1e5c68.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false} 7:I{"id":"37396","chunks":["272:static/chunks/webpack-81b9e46a3f1e5c68.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false} -8:I{"id":"44323","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","110:static/chunks/110-470e5d8a0cb4cf14.js","60:static/chunks/60-8ef99caef9fdf742.js","160:static/chunks/160-ba31b9436f6470d2.js","86:static/chunks/86-6193a530bd8e3ef4.js","679:static/chunks/679-2432e2fce32149a4.js","790:static/chunks/790-97e6b769f5c791cb.js","946:static/chunks/946-3a66ddfd20b8ad3d.js","163:static/chunks/163-59f735b072797bdd.js","43:static/chunks/app/datastores/page-643e5d19222b3bcd.js"],"name":"","async":false} +8:I{"id":"44323","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","110:static/chunks/110-470e5d8a0cb4cf14.js","60:static/chunks/60-8ef99caef9fdf742.js","160:static/chunks/160-ba31b9436f6470d2.js","86:static/chunks/86-6193a530bd8e3ef4.js","679:static/chunks/679-2432e2fce32149a4.js","790:static/chunks/790-97e6b769f5c791cb.js","946:static/chunks/946-3a66ddfd20b8ad3d.js","775:static/chunks/775-224c8c8f5ee3fd65.js","43:static/chunks/app/datastores/page-d4200bb6a31d3cd4.js"],"name":"","async":false} 2:[["$","$L4",null,{"children":["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","loading":"$undefined","loadingStyles":"$undefined","hasLoading":false,"template":["$","$L6",null,{}],"templateStyles":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","childProp":{"current":["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children","datastores","children"],"error":"$undefined","errorStyles":"$undefined","loading":"$undefined","loadingStyles":"$undefined","hasLoading":false,"template":["$","$L6",null,{}],"templateStyles":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","childProp":{"current":[["$","$L7",null,{"propsForComponent":{"params":{}},"Component":"$8"}],null],"segment":"__PAGE__"},"styles":[]}],"segment":"datastores"},"styles":[]}],"params":{}}],null] 3:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","link","2",{"rel":"icon","href":"/favicon.ico","type":"image/x-icon","sizes":"any"}]] diff --git a/pilot/server/static/index.html b/pilot/server/static/index.html index 28b2b73d4..d1f911230 100644 --- a/pilot/server/static/index.html +++ b/pilot/server/static/index.html @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/pilot/server/static/index.txt b/pilot/server/static/index.txt index 7e5c97819..34a7c1a8c 100644 --- a/pilot/server/static/index.txt +++ b/pilot/server/static/index.txt @@ -1,9 +1,9 @@ 1:HL["/_next/static/css/1c53d4eca82e2bb3.css",{"as":"style"}] -0:["Cow4Dk3Cb5ywOteYPWBYm",[[["",{"children":["__PAGE__",{}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/1c53d4eca82e2bb3.css","precedence":"next"}]],["$L3",null]]]]] -4:I{"id":"50902","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","110:static/chunks/110-470e5d8a0cb4cf14.js","60:static/chunks/60-8ef99caef9fdf742.js","160:static/chunks/160-ba31b9436f6470d2.js","316:static/chunks/316-370750739484dff7.js","946:static/chunks/946-3a66ddfd20b8ad3d.js","144:static/chunks/144-8e8590698005aba2.js","751:static/chunks/751-30fee9a32c6e64a2.js","256:static/chunks/256-f82130fbef33c4d6.js","185:static/chunks/app/layout-34c784bda079f18d.js"],"name":"","async":false} +0:["kvEPRdcHK79LEj3_AaRj1",[[["",{"children":["__PAGE__",{}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/1c53d4eca82e2bb3.css","precedence":"next"}]],["$L3",null]]]]] +4:I{"id":"50902","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","110:static/chunks/110-470e5d8a0cb4cf14.js","60:static/chunks/60-8ef99caef9fdf742.js","160:static/chunks/160-ba31b9436f6470d2.js","144:static/chunks/144-8e8590698005aba2.js","316:static/chunks/316-370750739484dff7.js","946:static/chunks/946-3a66ddfd20b8ad3d.js","751:static/chunks/751-30fee9a32c6e64a2.js","256:static/chunks/256-f82130fbef33c4d6.js","185:static/chunks/app/layout-6d9f7ec39c148c6a.js"],"name":"","async":false} 5:I{"id":"13211","chunks":["272:static/chunks/webpack-81b9e46a3f1e5c68.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false} 6:I{"id":"5767","chunks":["272:static/chunks/webpack-81b9e46a3f1e5c68.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false} 7:I{"id":"37396","chunks":["272:static/chunks/webpack-81b9e46a3f1e5c68.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false} -8:I{"id":"26925","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","110:static/chunks/110-470e5d8a0cb4cf14.js","60:static/chunks/60-8ef99caef9fdf742.js","86:static/chunks/86-6193a530bd8e3ef4.js","316:static/chunks/316-370750739484dff7.js","259:static/chunks/259-2c3490a9eca2f411.js","931:static/chunks/app/page-d81704e0a3437383.js"],"name":"","async":false} +8:I{"id":"26925","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","110:static/chunks/110-470e5d8a0cb4cf14.js","60:static/chunks/60-8ef99caef9fdf742.js","86:static/chunks/86-6193a530bd8e3ef4.js","316:static/chunks/316-370750739484dff7.js","259:static/chunks/259-2c3490a9eca2f411.js","931:static/chunks/app/page-254872a7b51c14e0.js"],"name":"","async":false} 2:[["$","$L4",null,{"children":["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","loading":"$undefined","loadingStyles":"$undefined","hasLoading":false,"template":["$","$L6",null,{}],"templateStyles":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","childProp":{"current":[["$","$L7",null,{"propsForComponent":{"params":{}},"Component":"$8"}],null],"segment":"__PAGE__"},"styles":[]}],"params":{}}],null] 3:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","link","2",{"rel":"icon","href":"/favicon.ico","type":"image/x-icon","sizes":"any"}]] diff --git a/pilot/vector_store/connector.py b/pilot/vector_store/connector.py index 9b4e3b9e8..1073a004e 100644 --- a/pilot/vector_store/connector.py +++ b/pilot/vector_store/connector.py @@ -1,8 +1,9 @@ from pilot.vector_store.chroma_store import ChromaStore from pilot.vector_store.milvus_store import MilvusStore +from pilot.vector_store.weaviate_store import WeaviateStore -connector = {"Chroma": ChromaStore, "Milvus": MilvusStore} +connector = {"Chroma": ChromaStore, "Milvus": MilvusStore, "Weaviate": WeaviateStore} class VectorStoreConnector: diff --git a/requirements.txt b/requirements.txt index 961b5c16a..7fe106888 100644 --- a/requirements.txt +++ b/requirements.txt @@ -55,7 +55,7 @@ diskcache==5.6.1 auto-gpt-plugin-template pymdown-extensions gTTS==2.3.1 -langchain +langchain==0.0.228 nltk python-dotenv==1.0.0 pymilvus==2.2.1 @@ -67,8 +67,9 @@ playsound distro pypdf weaviate-client +docx2txt -# databse +# database pymysql duckdb