diff --git a/dbgpt/app/static/404.html b/dbgpt/app/static/404.html index cc403b06e..a97acace6 100644 --- a/dbgpt/app/static/404.html +++ b/dbgpt/app/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/dbgpt/app/static/404/index.html b/dbgpt/app/static/404/index.html index cc403b06e..a97acace6 100644 --- a/dbgpt/app/static/404/index.html +++ b/dbgpt/app/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/dbgpt/app/static/_next/static/BW0_H_EvBEMkGg_MrYPVC/_buildManifest.js b/dbgpt/app/static/_next/static/BW0_H_EvBEMkGg_MrYPVC/_buildManifest.js new file mode 100644 index 000000000..21319f8a1 --- /dev/null +++ b/dbgpt/app/static/_next/static/BW0_H_EvBEMkGg_MrYPVC/_buildManifest.js @@ -0,0 +1 @@ +self.__BUILD_MANIFEST=function(s,c,a,e,t,n,d,f,b,k,h,i,u,j){return{__rewrites:{beforeFiles:[],afterFiles:[],fallback:[]},"/":["static/chunks/29107295-90b90cb30c825230.js",s,c,e,a,d,f,b,h,"static/chunks/861-78929b4f98dbbfd6.js","static/chunks/161-96143606b49cf4a1.js","static/chunks/pages/index-ba9785759e4fc934.js"],"/_error":["static/chunks/pages/_error-dee72aff9b2e2c12.js"],"/agent":[s,c,a,t,d,n,"static/chunks/pages/agent-a2599efbeb46e056.js"],"/chat":["static/chunks/pages/chat-47a20abbae16e858.js"],"/chat/[scene]/[id]":["static/chunks/pages/chat/[scene]/[id]-8df445f91cde33fa.js"],"/database":[s,c,e,a,t,n,b,k,"static/chunks/643-d8f53f40dd3c5b40.js","static/chunks/pages/database-d36f41810fc357a6.js"],"/knowledge":[i,s,c,a,t,d,n,b,u,k,h,"static/chunks/450-bd680f0e37e9b4b9.js","static/chunks/pages/knowledge-31f0efd3aa411670.js"],"/knowledge/chunk":[s,e,t,f,n,"static/chunks/pages/knowledge/chunk-652744b9d90c26c9.js"],"/models":[i,s,c,e,a,j,k,"static/chunks/pages/models-1145859ba0e2f20a.js"],"/prompt":[s,c,e,a,j,f,u,"static/chunks/346-b0aea1c99abd6f1e.js","static/chunks/607-2dedaf19149304c0.js","static/chunks/pages/prompt-fca5ed813d5018b1.js"],sortedPages:["/","/_app","/_error","/agent","/chat","/chat/[scene]/[id]","/database","/knowledge","/knowledge/chunk","/models","/prompt"]}}("static/chunks/113-15fc0b8bd2b5b9a1.js","static/chunks/17-d6c52cecd9ecc451.js","static/chunks/479-33b3ebe9be79a971.js","static/chunks/9-bb2c54d5c06ba4bf.js","static/chunks/442-197e6cbc1e54109a.js","static/chunks/813-cce9482e33f2430c.js","static/chunks/553-a89ad624ca0f1ffa.js","static/chunks/810-84757da754c6f3fc.js","static/chunks/411-b5d3e7f64bee2335.js","static/chunks/928-74244889bd7f2699.js","static/chunks/234-42f62dc360b2d9e4.js","static/chunks/75fc9c18-a784766a129ec5fb.js","static/chunks/45-9ff739c09925ea35.js","static/chunks/947-5980a3ff49069ddd.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/dbgpt/app/static/_next/static/RR2W4eD93unqBGULRYoSa/_ssgManifest.js b/dbgpt/app/static/_next/static/BW0_H_EvBEMkGg_MrYPVC/_ssgManifest.js similarity index 100% rename from dbgpt/app/static/_next/static/RR2W4eD93unqBGULRYoSa/_ssgManifest.js rename to dbgpt/app/static/_next/static/BW0_H_EvBEMkGg_MrYPVC/_ssgManifest.js diff --git a/dbgpt/app/static/_next/static/RR2W4eD93unqBGULRYoSa/_buildManifest.js b/dbgpt/app/static/_next/static/RR2W4eD93unqBGULRYoSa/_buildManifest.js deleted file mode 100644 index 48b8e1641..000000000 --- a/dbgpt/app/static/_next/static/RR2W4eD93unqBGULRYoSa/_buildManifest.js +++ /dev/null @@ -1 +0,0 @@ -self.__BUILD_MANIFEST=function(s,c,e,a,t,n,d,f,k,h,i,b,u){return{__rewrites:{beforeFiles:[],afterFiles:[],fallback:[]},"/":["static/chunks/29107295-90b90cb30c825230.js",s,c,e,n,d,f,h,"static/chunks/412-dfe9c712a36114e6.js","static/chunks/981-ff77d5cc3ab95298.js","static/chunks/pages/index-ea3bde69015c6dc0.js"],"/_error":["static/chunks/pages/_error-dee72aff9b2e2c12.js"],"/agent":[s,c,a,n,t,d,"static/chunks/pages/agent-bd3f015c49491f8c.js"],"/chat":["static/chunks/pages/chat-cb0f60deede9c531.js"],"/chat/[scene]/[id]":["static/chunks/pages/chat/[scene]/[id]-e5df5865b42b9d26.js"],"/database":[s,c,e,a,t,f,k,"static/chunks/643-d8f53f40dd3c5b40.js","static/chunks/pages/database-376cd8f8dea0f96c.js"],"/knowledge":[i,s,c,a,n,t,d,f,b,k,"static/chunks/464-9f427eb33a824756.js","static/chunks/pages/knowledge-5a76e9de10a11fee.js"],"/knowledge/chunk":[a,t,"static/chunks/pages/knowledge/chunk-c59f6c7587cafb1e.js"],"/models":[i,s,c,e,u,k,"static/chunks/pages/models-bc858e4e519df911.js"],"/prompt":[s,c,e,u,b,"static/chunks/346-b0aea1c99abd6f1e.js",h,"static/chunks/607-b224c640f6907e4b.js","static/chunks/pages/prompt-97278ad1c0c6458d.js"],sortedPages:["/","/_app","/_error","/agent","/chat","/chat/[scene]/[id]","/database","/knowledge","/knowledge/chunk","/models","/prompt"]}}("static/chunks/64-cef50b39f43d697b.js","static/chunks/479-33b3ebe9be79a971.js","static/chunks/9-bb2c54d5c06ba4bf.js","static/chunks/442-197e6cbc1e54109a.js","static/chunks/813-cce9482e33f2430c.js","static/chunks/553-a89ad624ca0f1ffa.js","static/chunks/924-166e5f7b5295d352.js","static/chunks/411-b5d3e7f64bee2335.js","static/chunks/928-74244889bd7f2699.js","static/chunks/270-2f094a936d056513.js","static/chunks/75fc9c18-a784766a129ec5fb.js","static/chunks/45-9ff739c09925ea35.js","static/chunks/947-5980a3ff49069ddd.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/dbgpt/app/static/_next/static/chunks/0.38d136a456b41500.js b/dbgpt/app/static/_next/static/chunks/0.6930c793300c44dc.js similarity index 66% rename from dbgpt/app/static/_next/static/chunks/0.38d136a456b41500.js rename to dbgpt/app/static/_next/static/chunks/0.6930c793300c44dc.js index b710d0d78..a98a9025a 100644 --- a/dbgpt/app/static/_next/static/chunks/0.38d136a456b41500.js +++ b/dbgpt/app/static/_next/static/chunks/0.6930c793300c44dc.js @@ -1 +1 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[0],{15506:function(e,l,t){t.r(l),t.d(l,{default:function(){return ew}});var a=t(85893),s=t(67294),n=t(2093),r=t(43446),o=t(39332),i=t(99513),c=t(24019),d=t(50888),u=t(97937),m=t(63606),x=t(50228),h=t(87547),p=t(89035),v=t(33035),f=t(12767),g=t(94184),j=t.n(g),b=t(66309),y=t(81799),w=t(41468),_=t(29158),N=t(98165),Z=t(14079),k=t(38426),C=t(61607),S=t(44442),P=t(74627),R=t(36782),E=t(13135),D=t(71577),I=t(2453),M=t(57132),O=t(79166),z=t(93179),L=t(20640),A=t.n(L);function F(e){let{code:l,language:t}=e;return(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)(D.ZP,{className:"absolute right-3 top-2 text-gray-300 hover:!text-gray-200 bg-gray-700",type:"text",icon:(0,a.jsx)(M.Z,{}),onClick:()=>{let e=A()(l);I.ZP[e?"success":"error"](e?"Copy success":"Copy failed")}}),(0,a.jsx)(z.Z,{language:t,style:O.Z,children:l})]})}let q=["custom-view","chart-view","references","summary"],H={code(e){var l;let{inline:t,node:s,className:n,children:r,style:o,...i}=e,{context:c,matchValues:d}=function(e){let l=q.reduce((l,t)=>{let a=RegExp("<".concat(t,"[^>]*/?>"),"gi");return e=e.replace(a,e=>(l.push(e),"")),l},[]);return{context:e,matchValues:l}}(Array.isArray(r)?r.join("\n"):r),u=/language-(\w+)/.exec(n||"");return(0,a.jsxs)(a.Fragment,{children:[!t&&u?(0,a.jsx)(F,{code:c,language:null!==(l=null==u?void 0:u[1])&&void 0!==l?l:"javascript"}):(0,a.jsx)("code",{...i,style:o,className:"px-[6px] py-[2px] rounded bg-gray-700 text-gray-100 dark:bg-gray-100 dark:text-gray-800 text-sm",children:r}),(0,a.jsx)(v.D,{components:H,rehypePlugins:[f.Z],children:d.join("\n")})]})},ul(e){let{children:l}=e;return(0,a.jsx)("ul",{className:"py-1",children:l})},ol(e){let{children:l}=e;return(0,a.jsx)("ol",{className:"py-1",children:l})},li(e){let{children:l,ordered:t}=e;return(0,a.jsx)("li",{className:"text-sm leading-7 ml-5 pl-2 text-gray-600 dark:text-gray-300 ".concat(t?"list-decimal":"list-disc"),children:l})},table(e){let{children:l}=e;return(0,a.jsx)("table",{className:"my-2 rounded-tl-md rounded-tr-md max-w-full bg-white dark:bg-gray-900 text-sm rounded-lg overflow-hidden",children:l})},thead(e){let{children:l}=e;return(0,a.jsx)("thead",{className:"bg-[#fafafa] dark:bg-black font-semibold",children:l})},th(e){let{children:l}=e;return(0,a.jsx)("th",{className:"!text-left p-4",children:l})},td(e){let{children:l}=e;return(0,a.jsx)("td",{className:"p-4 border-t border-[#f0f0f0] dark:border-gray-700",children:l})},h1(e){let{children:l}=e;return(0,a.jsx)("h3",{className:"text-2xl font-bold my-4 border-b border-slate-300 pb-4",children:l})},h2(e){let{children:l}=e;return(0,a.jsx)("h3",{className:"text-xl font-bold my-3",children:l})},h3(e){let{children:l}=e;return(0,a.jsx)("h3",{className:"text-lg font-semibold my-2",children:l})},h4(e){let{children:l}=e;return(0,a.jsx)("h3",{className:"text-base font-semibold my-1",children:l})},a(e){let{children:l,href:t}=e;return(0,a.jsxs)("div",{className:"inline-block text-blue-600 dark:text-blue-400",children:[(0,a.jsx)(_.Z,{className:"mr-1"}),(0,a.jsx)("a",{href:t,target:"_blank",children:l})]})},img(e){let{src:l,alt:t}=e;return(0,a.jsx)("div",{children:(0,a.jsx)(k.Z,{className:"min-h-[1rem] max-w-full max-h-full border rounded",src:l,alt:t,placeholder:(0,a.jsx)(b.Z,{icon:(0,a.jsx)(N.Z,{spin:!0}),color:"processing",children:"Image Loading..."}),fallback:"/images/fallback.png"})})},blockquote(e){let{children:l}=e;return(0,a.jsx)("blockquote",{className:"py-4 px-6 border-l-4 border-blue-600 rounded bg-white my-2 text-gray-500 dark:bg-slate-800 dark:text-gray-200 dark:border-white shadow-sm",children:l})},"chart-view":function(e){var l,t,s;let n,{content:r,children:o}=e;try{n=JSON.parse(r)}catch(e){console.log(e,r),n={type:"response_table",sql:"",data:[]}}let i=(null==n?void 0:null===(l=n.data)||void 0===l?void 0:l[0])?null===(t=Object.keys(null==n?void 0:null===(s=n.data)||void 0===s?void 0:s[0]))||void 0===t?void 0:t.map(e=>({title:e,dataIndex:e,key:e})):[],c={key:"chart",label:"Chart",children:(0,a.jsx)(E._z,{data:null==n?void 0:n.data,chartType:(0,E.aG)(null==n?void 0:n.type)})},d={key:"sql",label:"SQL",children:(0,a.jsx)(F,{code:(0,R.WU)(null==n?void 0:n.sql,{language:"mysql"}),language:"sql"})},u={key:"data",label:"Data",children:(0,a.jsx)(C.Z,{dataSource:null==n?void 0:n.data,columns:i})},m=(null==n?void 0:n.type)==="response_table"?[u,d]:[c,d,u];return(0,a.jsxs)("div",{children:[(0,a.jsx)(S.Z,{defaultActiveKey:(null==n?void 0:n.type)==="response_table"?"data":"chart",items:m,size:"small"}),o]})},references:function(e){let l,{title:t,references:s,children:n}=e;if(n)try{t=(l=JSON.parse(n)).title,s=l.references}catch(e){return console.log("parse references failed",e),(0,a.jsx)("p",{className:"text-sm text-red-500",children:"Render Reference Error!"})}else try{s=JSON.parse(s)}catch(e){return console.log("parse references failed",e),(0,a.jsx)("p",{className:"text-sm text-red-500",children:"Render Reference Error!"})}return!s||(null==s?void 0:s.length)<1?null:(0,a.jsxs)("div",{className:"border-t-[1px] border-gray-300 mt-3 py-2",children:[(0,a.jsxs)("p",{className:"text-sm text-gray-500 dark:text-gray-400 mb-2",children:[(0,a.jsx)(_.Z,{className:"mr-2"}),(0,a.jsx)("span",{className:"font-semibold",children:t})]}),s.map((e,l)=>{var t;return(0,a.jsxs)("div",{className:"text-sm font-normal block ml-2 h-6 leading-6 overflow-hidden",children:[(0,a.jsxs)("span",{className:"inline-block w-6",children:["[",l+1,"]"]}),(0,a.jsx)("span",{className:"mr-2 lg:mr-4 text-blue-400",children:e.name}),null==e?void 0:null===(t=e.chunks)||void 0===t?void 0:t.map((l,t)=>(0,a.jsxs)("span",{children:["object"==typeof l?(0,a.jsx)(P.Z,{content:(0,a.jsxs)("div",{className:"max-w-4xl",children:[(0,a.jsx)("p",{className:"mt-2 font-bold mr-2 border-t border-gray-500 pt-2",children:"Content:"}),(0,a.jsx)("p",{children:(null==l?void 0:l.content)||"No Content"}),(0,a.jsx)("p",{className:"mt-2 font-bold mr-2 border-t border-gray-500 pt-2",children:"MetaData:"}),(0,a.jsx)("p",{children:(null==l?void 0:l.meta_info)||"No MetaData"}),(0,a.jsx)("p",{className:"mt-2 font-bold mr-2 border-t border-gray-500 pt-2",children:"Score:"}),(0,a.jsx)("p",{children:(null==l?void 0:l.recall_score)||""})]}),title:"Chunk Information",children:(0,a.jsx)("span",{className:"cursor-pointer text-blue-500 ml-2",children:null==l?void 0:l.id},"chunk_content_".concat(null==l?void 0:l.id))}):(0,a.jsx)("span",{className:"cursor-pointer text-blue-500 ml-2",children:l},"chunk_id_".concat(l)),t<(null==e?void 0:e.chunks.length)-1&&(0,a.jsx)("span",{children:","},"chunk_comma_".concat(t))]},"chunk_".concat(t)))]},"file_".concat(l))})]})},summary:function(e){let{children:l}=e;return(0,a.jsxs)("div",{children:[(0,a.jsxs)("p",{className:"mb-2",children:[(0,a.jsx)(Z.Z,{className:"mr-2"}),(0,a.jsx)("span",{className:"font-semibold",children:"Document Summary"})]}),(0,a.jsx)("div",{children:l})]})}},V={todo:{bgClass:"bg-gray-500",icon:(0,a.jsx)(c.Z,{className:"ml-2"})},runing:{bgClass:"bg-blue-500",icon:(0,a.jsx)(d.Z,{className:"ml-2"})},failed:{bgClass:"bg-red-500",icon:(0,a.jsx)(u.Z,{className:"ml-2"})},completed:{bgClass:"bg-green-500",icon:(0,a.jsx)(m.Z,{className:"ml-2"})}};function T(e){return e.replaceAll("\\n","\n").replace(/]+)>/gi,"").replace(/]+)>/gi,"")}var G=(0,s.memo)(function(e){let{children:l,content:t,isChartChat:n,onLinkClick:r}=e,{scene:o}=(0,s.useContext)(w.p),{context:i,model_name:c,role:d}=t,u="view"===d,{relations:m,value:g,cachePluginContext:_}=(0,s.useMemo)(()=>{if("string"!=typeof i)return{relations:[],value:"",cachePluginContext:[]};let[e,l]=i.split(" relations:"),t=l?l.split(","):[],a=[],s=0,n=e.replace(/]*>[^<]*<\/dbgpt-view>/gi,e=>{try{var l;let t=e.replaceAll("\n","\\n").replace(/<[^>]*>|<\/[^>]*>/gm,""),n=JSON.parse(t),r="".concat(s,"");return a.push({...n,result:T(null!==(l=n.result)&&void 0!==l?l:"")}),s++,r}catch(l){return console.log(l.message,l),e}});return{relations:t,cachePluginContext:a,value:n}},[i]),N=(0,s.useMemo)(()=>({"custom-view"(e){var l;let{children:t}=e,s=+t.toString();if(!_[s])return t;let{name:n,status:r,err_msg:o,result:i}=_[s],{bgClass:c,icon:d}=null!==(l=V[r])&&void 0!==l?l:{};return(0,a.jsxs)("div",{className:"bg-white dark:bg-[#212121] rounded-lg overflow-hidden my-2 flex flex-col lg:max-w-[80%]",children:[(0,a.jsxs)("div",{className:j()("flex px-4 md:px-6 py-2 items-center text-white text-sm",c),children:[n,d]}),i?(0,a.jsx)("div",{className:"px-4 md:px-6 py-4 text-sm",children:(0,a.jsx)(v.D,{components:H,rehypePlugins:[f.Z],children:null!=i?i:""})}):(0,a.jsx)("div",{className:"px-4 md:px-6 py-4 text-sm",children:o})]})}}),[i,_]);return u||i?(0,a.jsxs)("div",{className:j()("relative flex flex-wrap w-full px-2 sm:px-4 py-2 sm:py-4 rounded-xl break-words",{"bg-slate-100 dark:bg-[#353539]":u,"lg:w-full xl:w-full pl-0":["chat_with_db_execute","chat_dashboard"].includes(o)}),children:[(0,a.jsx)("div",{className:"mr-2 flex flex-shrink-0 items-center justify-center h-7 w-7 rounded-full text-lg sm:mr-4",children:u?(0,y.A)(c)||(0,a.jsx)(x.Z,{}):(0,a.jsx)(h.Z,{})}),(0,a.jsxs)("div",{className:"flex-1 overflow-hidden items-center text-md leading-8",children:[!u&&"string"==typeof i&&i,u&&n&&"object"==typeof i&&(0,a.jsxs)("div",{children:["[".concat(i.template_name,"]: "),(0,a.jsxs)("span",{className:"text-[#1677ff] cursor-pointer",onClick:r,children:[(0,a.jsx)(p.Z,{className:"mr-1"}),i.template_introduce||"More Details"]})]}),u&&"string"==typeof i&&(0,a.jsx)(v.D,{components:{...H,...N},rehypePlugins:[f.Z],children:T(g)}),!!(null==m?void 0:m.length)&&(0,a.jsx)("div",{className:"flex flex-wrap mt-2",children:null==m?void 0:m.map((e,l)=>(0,a.jsx)(b.Z,{color:"#108ee9",children:e},e+l))})]}),l]}):(0,a.jsx)("div",{className:"h-12"})}),J=t(59301),U=t(41132),W=t(74312),$=t(3414),B=t(72868),Q=t(59562),K=t(14553),X=t(25359),Y=t(7203),ee=t(48665),el=t(26047),et=t(99056),ea=t(57814),es=t(63955),en=t(33028),er=t(40911),eo=t(66478),ei=t(83062),ec=t(50489),ed=t(67421),eu=e=>{var l;let{conv_index:t,question:n,knowledge_space:r,select_param:o}=e,{t:i}=(0,ed.$G)(),{chatId:c}=(0,s.useContext)(w.p),[d,u]=(0,s.useState)(""),[m,x]=(0,s.useState)(4),[h,p]=(0,s.useState)(""),v=(0,s.useRef)(null),[f,g]=I.ZP.useMessage(),j=(0,s.useCallback)((e,l)=>{l?(0,ec.Vx)((0,ec.Eb)(c,t)).then(e=>{var l,t,a,s;let n=null!==(l=e[1])&&void 0!==l?l:{};u(null!==(t=n.ques_type)&&void 0!==t?t:""),x(parseInt(null!==(a=n.score)&&void 0!==a?a:"4")),p(null!==(s=n.messages)&&void 0!==s?s:"")}).catch(e=>{console.log(e)}):(u(""),x(4),p(""))},[c,t]),b=(0,W.Z)($.Z)(e=>{let{theme:l}=e;return{backgroundColor:"dark"===l.palette.mode?"#FBFCFD":"#0E0E10",...l.typography["body-sm"],padding:l.spacing(1),display:"flex",alignItems:"center",justifyContent:"center",borderRadius:4,width:"100%",height:"100%"}});return(0,a.jsxs)(B.L,{onOpenChange:j,children:[g,(0,a.jsx)(ei.Z,{title:i("Rating"),children:(0,a.jsx)(Q.Z,{slots:{root:K.ZP},slotProps:{root:{variant:"plain",color:"primary"}},sx:{borderRadius:40},children:(0,a.jsx)(J.Z,{})})}),(0,a.jsxs)(X.Z,{children:[(0,a.jsx)(Y.Z,{disabled:!0,sx:{minHeight:0}}),(0,a.jsx)(ee.Z,{sx:{width:"100%",maxWidth:350,display:"grid",gap:3,padding:1},children:(0,a.jsx)("form",{onSubmit:e=>{e.preventDefault();let l={conv_uid:c,conv_index:t,question:n,knowledge_space:r,score:m,ques_type:d,messages:h};console.log(l),(0,ec.Vx)((0,ec.VC)({data:l})).then(e=>{f.open({type:"success",content:"save success"})}).catch(e=>{f.open({type:"error",content:"save error"})})},children:(0,a.jsxs)(el.Z,{container:!0,spacing:.5,columns:13,sx:{flexGrow:1},children:[(0,a.jsx)(el.Z,{xs:3,children:(0,a.jsx)(b,{children:i("Q_A_Category")})}),(0,a.jsx)(el.Z,{xs:10,children:(0,a.jsx)(et.Z,{action:v,value:d,placeholder:"Choose one…",onChange:(e,l)=>u(null!=l?l:""),...d&&{endDecorator:(0,a.jsx)(K.ZP,{size:"sm",variant:"plain",color:"neutral",onMouseDown:e=>{e.stopPropagation()},onClick:()=>{var e;u(""),null===(e=v.current)||void 0===e||e.focusVisible()},children:(0,a.jsx)(U.Z,{})}),indicator:null},sx:{width:"100%"},children:o&&(null===(l=Object.keys(o))||void 0===l?void 0:l.map(e=>(0,a.jsx)(ea.Z,{value:e,children:o[e]},e)))})}),(0,a.jsx)(el.Z,{xs:3,children:(0,a.jsx)(b,{children:(0,a.jsx)(ei.Z,{title:(0,a.jsx)(ee.Z,{children:(0,a.jsx)("div",{children:i("feed_back_desc")})}),variant:"solid",placement:"left",children:i("Q_A_Rating")})})}),(0,a.jsx)(el.Z,{xs:10,sx:{pl:0,ml:0},children:(0,a.jsx)(es.Z,{"aria-label":"Custom",step:1,min:0,max:5,valueLabelFormat:function(e){return({0:i("Lowest"),1:i("Missed"),2:i("Lost"),3:i("Incorrect"),4:i("Verbose"),5:i("Best")})[e]},valueLabelDisplay:"on",marks:[{value:0,label:"0"},{value:1,label:"1"},{value:2,label:"2"},{value:3,label:"3"},{value:4,label:"4"},{value:5,label:"5"}],sx:{width:"90%",pt:3,m:2,ml:1},onChange:e=>{var l;return x(null===(l=e.target)||void 0===l?void 0:l.value)},value:m})}),(0,a.jsx)(el.Z,{xs:13,children:(0,a.jsx)(en.Z,{placeholder:i("Please_input_the_text"),value:h,onChange:e=>p(e.target.value),minRows:2,maxRows:4,endDecorator:(0,a.jsx)(er.ZP,{level:"body-xs",sx:{ml:"auto"},children:i("input_count")+h.length+i("input_unit")}),sx:{width:"100%",fontSize:14}})}),(0,a.jsx)(el.Z,{xs:13,children:(0,a.jsx)(eo.Z,{type:"submit",variant:"outlined",sx:{width:"100%",height:"100%"},children:i("submit")})})]})})})]})]})},em=t(32983),ex=t(12069),eh=t(96486),ep=t(20766),ev=t(98399),ef=t(87740),eg=t(80573),ej=e=>{var l;let{messages:t,onSubmit:r}=e,{dbParam:c,currentDialogue:d,scene:u,model:m,refreshDialogList:x,chatId:h,agentList:p,docId:v}=(0,s.useContext)(w.p),{t:f}=(0,ed.$G)(),g=(0,o.useSearchParams)(),b=null!==(l=g&&g.get("spaceNameOriginal"))&&void 0!==l?l:"",[_,N]=(0,s.useState)(!1),[Z,k]=(0,s.useState)(!1),[C,S]=(0,s.useState)(t),[P,R]=(0,s.useState)(""),[E,D]=(0,s.useState)(),O=(0,s.useRef)(null),z=(0,s.useMemo)(()=>"chat_dashboard"===u,[u]),L=(0,eg.Z)(),F=(0,s.useMemo)(()=>{switch(u){case"chat_agent":return p.join(",");case"chat_excel":return null==d?void 0:d.select_param;default:return b||c}},[u,p,d,c,b]),q=async e=>{if(!_&&e.trim())try{N(!0),await r(e,{select_param:null!=F?F:""})}finally{N(!1)}},H=e=>{try{return JSON.parse(e)}catch(l){return e}},[V,T]=I.ZP.useMessage(),J=async e=>{let l=null==e?void 0:e.replace(/\trelations:.*/g,""),t=A()(l);t?l?V.open({type:"success",content:f("Copy_success")}):V.open({type:"warning",content:f("Copy_nothing")}):V.open({type:"error",content:f("Copry_error")})},U=async()=>{!_&&v&&(N(!0),await L(v),N(!1))};return(0,n.Z)(async()=>{let e=(0,ev.a_)();e&&e.id===h&&(await q(e.message),x(),localStorage.removeItem(ev.rU))},[h]),(0,s.useEffect)(()=>{let e=t;z&&(e=(0,eh.cloneDeep)(t).map(e=>((null==e?void 0:e.role)==="view"&&"string"==typeof(null==e?void 0:e.context)&&(e.context=H(null==e?void 0:e.context)),e))),S(e.filter(e=>["view","human"].includes(e.role)))},[z,t]),(0,s.useEffect)(()=>{(0,ec.Vx)((0,ec.Lu)()).then(e=>{var l;D(null!==(l=e[1])&&void 0!==l?l:{})}).catch(e=>{console.log(e)})},[]),(0,s.useEffect)(()=>{setTimeout(()=>{var e;null===(e=O.current)||void 0===e||e.scrollTo(0,O.current.scrollHeight)},50)},[t]),(0,a.jsxs)(a.Fragment,{children:[T,(0,a.jsx)("div",{ref:O,className:"flex flex-1 overflow-y-auto pb-8 w-full flex-col",children:(0,a.jsx)("div",{className:"flex items-center flex-1 flex-col text-sm leading-6 text-slate-900 dark:text-slate-300 sm:text-base sm:leading-7",children:C.length?C.map((e,l)=>{var t;return(0,a.jsx)(G,{content:e,isChartChat:z,onLinkClick:()=>{k(!0),R(JSON.stringify(null==e?void 0:e.context,null,2))},children:"view"===e.role&&(0,a.jsxs)("div",{className:"flex w-full pt-2 md:pt-4 border-t border-gray-200 mt-2 md:mt-4 pl-2",children:["chat_knowledge"===u&&e.retry?(0,a.jsxs)(eo.Z,{onClick:U,slots:{root:K.ZP},slotProps:{root:{variant:"plain",color:"primary"}},children:[(0,a.jsx)(ef.Z,{}),"\xa0",(0,a.jsx)("span",{className:"text-sm",children:f("Retry")})]}):null,(0,a.jsxs)("div",{className:"flex w-full flex-row-reverse",children:[(0,a.jsx)(eu,{select_param:E,conv_index:Math.ceil((l+1)/2),question:null===(t=null==C?void 0:C.filter(l=>(null==l?void 0:l.role)==="human"&&(null==l?void 0:l.order)===e.order)[0])||void 0===t?void 0:t.context,knowledge_space:b||c||""}),(0,a.jsx)(ei.Z,{title:f("Copy"),children:(0,a.jsx)(eo.Z,{onClick:()=>J(null==e?void 0:e.context),slots:{root:K.ZP},slotProps:{root:{variant:"plain",color:"primary"}},sx:{borderRadius:40},children:(0,a.jsx)(M.Z,{})})})]})]})},l)}):(0,a.jsx)(em.Z,{image:"/empty.png",imageStyle:{width:320,height:320,margin:"0 auto",maxWidth:"100%",maxHeight:"100%"},className:"flex items-center justify-center flex-col h-full w-full",description:"Start a conversation"})})}),(0,a.jsx)("div",{className:j()("relative after:absolute after:-top-8 after:h-8 after:w-full after:bg-gradient-to-t after:from-white after:to-transparent dark:after:from-[#212121]",{"cursor-not-allowed":"chat_excel"===u&&!(null==d?void 0:d.select_param)}),children:(0,a.jsxs)("div",{className:"flex flex-wrap w-full py-2 sm:pt-6 sm:pb-10 items-center",children:[m&&(0,a.jsx)("div",{className:"mr-2 flex",children:(0,y.A)(m)}),(0,a.jsx)(ep.Z,{loading:_,onSubmit:q,handleFinish:N})]})}),(0,a.jsx)(ex.default,{title:"JSON Editor",open:Z,width:"60%",cancelButtonProps:{hidden:!0},onOk:()=>{k(!1)},onCancel:()=>{k(!1)},children:(0,a.jsx)(i.Z,{className:"w-full h-[500px]",language:"json",value:P})})]})},eb=t(34625),ey=t(45247),ew=()=>{var e;let l=(0,o.useSearchParams)(),{scene:t,chatId:i,model:c,setModel:d,history:u,setHistory:m}=(0,s.useContext)(w.p),x=(0,r.Z)({}),h=null!==(e=l&&l.get("initMessage"))&&void 0!==e?e:"",[p,v]=(0,s.useState)(!1),[f,g]=(0,s.useState)(),b=async()=>{v(!0);let[,e]=await (0,ec.Vx)((0,ec.$i)(i));m(null!=e?e:[]),v(!1)},y=e=>{var l;let t=null===(l=e[e.length-1])||void 0===l?void 0:l.context;if(t)try{let e=JSON.parse(t);g((null==e?void 0:e.template_name)==="report"?null==e?void 0:e.charts:void 0)}catch(e){g(void 0)}};(0,n.Z)(async()=>{let e=(0,ev.a_)();e&&e.id===i||await b()},[h,i]),(0,s.useEffect)(()=>{var e,l;if(!u.length)return;let t=null===(e=null===(l=u.filter(e=>"view"===e.role))||void 0===l?void 0:l.slice(-1))||void 0===e?void 0:e[0];(null==t?void 0:t.model_name)&&d(t.model_name),y(u)},[u.length]),(0,s.useEffect)(()=>()=>{m([])},[]);let _=(0,s.useCallback)((e,l)=>new Promise(a=>{let s=[...u,{role:"human",context:e,model_name:c,order:0,time_stamp:0},{role:"view",context:"",model_name:c,order:0,time_stamp:0}],n=s.length-1;m([...s]),x({data:{...l,chat_mode:t||"chat_normal",model_name:c,user_input:e},chatId:i,onMessage:e=>{s[n].context=e,m([...s])},onDone:()=>{y(s),a()},onClose:()=>{y(s),a()},onError:e=>{s[n].context=e,m([...s]),a()}})}),[u,x,c]);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(ey.Z,{visible:p}),(0,a.jsx)(eb.Z,{refreshHistory:b,modelChange:e=>{d(e)}}),(0,a.jsxs)("div",{className:"px-4 flex flex-1 flex-wrap overflow-hidden relative",children:[!!(null==f?void 0:f.length)&&(0,a.jsx)("div",{className:"w-full xl:w-3/4 h-3/5 xl:pr-4 xl:h-full overflow-y-auto",children:(0,a.jsx)(E.ZP,{chartsData:f})}),!(null==f?void 0:f.length)&&"chat_dashboard"===t&&(0,a.jsx)(em.Z,{image:"/empty.png",imageStyle:{width:320,height:320,margin:"0 auto",maxWidth:"100%",maxHeight:"100%"},className:"w-full xl:w-3/4 h-3/5 xl:h-full pt-0 md:pt-10"}),(0,a.jsx)("div",{className:j()("flex flex-1 flex-col overflow-hidden",{"px-0 xl:pl-4 h-2/5 xl:h-full border-t xl:border-t-0 xl:border-l":"chat_dashboard"===t,"h-full lg:px-8":"chat_dashboard"!==t}),children:(0,a.jsx)(ej,{messages:u,onSubmit:_})})]})]})}},20766:function(e,l,t){t.d(l,{Z:function(){return D}});var a=t(85893),s=t(27496),n=t(59566),r=t(71577),o=t(67294),i=t(2487),c=t(83062),d=t(2453),u=t(46735),m=t(74627),x=t(39479),h=t(51009),p=t(58299),v=t(577),f=t(30119),g=t(67421);let j=e=>{let{data:l,loading:t,submit:s,close:n}=e,{t:r}=(0,g.$G)(),o=e=>()=>{s(e),n()};return(0,a.jsx)("div",{style:{maxHeight:400,overflow:"auto"},children:(0,a.jsx)(i.Z,{dataSource:null==l?void 0:l.data,loading:t,rowKey:e=>e.prompt_name,renderItem:e=>(0,a.jsx)(i.Z.Item,{onClick:o(e.content),children:(0,a.jsx)(c.Z,{title:e.content,children:(0,a.jsx)(i.Z.Item.Meta,{style:{cursor:"copy"},title:e.prompt_name,description:r("Prompt_Info_Scene")+":".concat(e.chat_scene,",")+r("Prompt_Info_Sub_Scene")+":".concat(e.sub_chat_scene)})})},e.prompt_name)})})};var b=e=>{let{submit:l}=e,{t}=(0,g.$G)(),[s,n]=(0,o.useState)(!1),[r,i]=(0,o.useState)("common"),{data:b,loading:y}=(0,v.Z)(()=>(0,f.PR)("/prompt/list",{prompt_type:r}),{refreshDeps:[r],onError:e=>{d.ZP.error(null==e?void 0:e.message)}});return(0,a.jsx)(u.ZP,{theme:{components:{Popover:{minWidth:250}}},children:(0,a.jsx)(m.Z,{title:(0,a.jsx)(x.Z.Item,{label:"Prompt "+t("Type"),children:(0,a.jsx)(h.default,{style:{width:150},value:r,onChange:e=>{i(e)},options:[{label:t("Public")+" Prompts",value:"common"},{label:t("Private")+" Prompts",value:"private"}]})}),content:(0,a.jsx)(j,{data:b,loading:y,submit:l,close:()=>{n(!1)}}),placement:"topRight",trigger:"click",open:s,onOpenChange:e=>{n(e)},children:(0,a.jsx)(c.Z,{title:t("Click_Select")+" Prompt",children:(0,a.jsx)(p.Z,{className:"bottom-[30%]"})})})})},y=t(41468),w=t(50489),_=t(80573),N=t(5392),Z=t(84553);function k(e){let{dbParam:l,setDocId:t}=(0,o.useContext)(y.p),{onUploadFinish:s,handleFinish:n}=e,i=(0,_.Z)(),[c,d]=(0,o.useState)(!1),u=async e=>{d(!0);let a=new FormData;a.append("doc_name",e.file.name),a.append("doc_file",e.file),a.append("doc_type","DOCUMENT");let r=await (0,w.Vx)((0,w.iG)(l||"default",a));if(!r[1]){d(!1);return}t(r[1]),s(),d(!1),null==n||n(!0),await i(r[1]),null==n||n(!1)};return(0,a.jsx)(Z.default,{customRequest:u,showUploadList:!1,maxCount:1,multiple:!1,className:"absolute z-10 top-2 left-2",accept:".pdf,.ppt,.pptx,.xls,.xlsx,.doc,.docx,.txt,.md",children:(0,a.jsx)(r.ZP,{loading:c,size:"small",shape:"circle",icon:(0,a.jsx)(N.Z,{})})})}var C=t(11163),S=t(5455);function P(){return(0,a.jsx)("svg",{className:"mr-1",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"6058",width:"1.5em",height:"1.5em",children:(0,a.jsx)("path",{d:"M688 312c0 4.4-3.6 8-8 8H296c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h384c4.4 0 8 3.6 8 8v48z m-392 88h184c4.4 0 8 3.6 8 8v48c0 4.4-3.6 8-8 8H296c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8z m376 116c119.3 0 216 96.7 216 216s-96.7 216-216 216-216-96.7-216-216 96.7-216 216-216z m107.5 323.5C808.2 810.8 824 772.6 824 732s-15.8-78.8-44.5-107.5S712.6 580 672 580s-78.8 15.8-107.5 44.5S520 691.4 520 732s15.8 78.8 44.5 107.5S631.4 884 672 884s78.8-15.8 107.5-44.5zM440 852c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8H168c-17.7 0-32-14.3-32-32V108c0-17.7 14.3-32 32-32h640c17.7 0 32 14.3 32 32v384c0 4.4-3.6 8-8 8h-56c-4.4 0-8-3.6-8-8V148H208v704h232z m232-76.06l-20.56 28.43c-1.5 2.1-3.9 3.3-6.5 3.3h-44.3c-6.5 0-10.3-7.4-6.4-12.7l45.75-63.3-45.75-63.3c-3.9-5.3-0.1-12.7 6.4-12.7h44.3c2.6 0 5 1.2 6.5 3.3L672 687.4l20.56-28.43c1.5-2.1 3.9-3.3 6.5-3.3h44.3c6.5 0 10.3 7.4 6.4 12.7l-45.75 63.3 45.75 63.3c3.9 5.3 0.1 12.7-6.4 12.7h-44.3c-2.6 0-5-1.2-6.5-3.3L672 775.94z",fill:"#d81e06","p-id":"6059"})})}function R(e){let{document:l}=e;switch(l.status){case"RUNNING":return(0,a.jsx)(S.Rp,{});case"FINISHED":default:return(0,a.jsx)(S.s2,{});case"FAILED":return(0,a.jsx)(P,{})}}function E(e){let{documents:l,dbParam:t}=e,s=(0,C.useRouter)(),n=e=>{s.push("/knowledge/chunk/?spaceName=".concat(t,"&id=").concat(e))};return(null==l?void 0:l.length)?(0,a.jsx)("div",{className:"absolute flex overflow-scroll h-12 top-[-35px] w-full z-10",children:l.map(e=>{let l;switch(e.status){case"RUNNING":l="#2db7f5";break;case"FINISHED":default:l="#87d068";break;case"FAILED":l="#f50"}return(0,a.jsx)(c.Z,{title:e.result,children:(0,a.jsxs)(r.ZP,{style:{color:l},onClick:()=>{n(e.id)},className:"shrink flex items-center mr-3",children:[(0,a.jsx)(R,{document:e}),e.doc_name]})},e.id)})}):null}var D=function(e){let{children:l,loading:t,onSubmit:i,handleFinish:c,...d}=e,{dbParam:u,scene:m}=(0,o.useContext)(y.p),[x,h]=(0,o.useState)(""),p=(0,o.useMemo)(()=>"chat_knowledge"===m,[m]),[v,f]=(0,o.useState)([]),g=(0,o.useRef)(0);async function j(){if(!u)return null;let[e,l]=await (0,w.Vx)((0,w._Q)(u,{page:1,page_size:g.current}));f(null==l?void 0:l.data)}(0,o.useEffect)(()=>{p&&j()},[u]);let _=async()=>{g.current+=1,await j()};return(0,a.jsxs)("div",{className:"flex-1 relative",children:[(0,a.jsx)(E,{documents:v,dbParam:u}),p&&(0,a.jsx)(k,{handleFinish:c,onUploadFinish:_,className:"absolute z-10 top-2 left-2"}),(0,a.jsx)(n.default.TextArea,{className:"flex-1 ".concat(p?"pl-10":""," pr-10"),size:"large",value:x,autoSize:{minRows:1,maxRows:4},...d,onPressEnter:e=>{if(x.trim()&&13===e.keyCode){if(e.shiftKey){h(e=>e+"\n");return}i(x),setTimeout(()=>{h("")},0)}},onChange:e=>{if("number"==typeof d.maxLength){h(e.target.value.substring(0,d.maxLength));return}h(e.target.value)}}),(0,a.jsx)(r.ZP,{className:"ml-2 flex items-center justify-center absolute right-2 bottom-0",size:"large",type:"text",loading:t,icon:(0,a.jsx)(s.Z,{}),onClick:()=>{i(x)}}),(0,a.jsx)(b,{submit:e=>{h(x+e)}}),l]})}},45247:function(e,l,t){var a=t(85893),s=t(50888);l.Z=function(e){let{visible:l}=e;return l?(0,a.jsx)("div",{className:"absolute w-full h-full top-0 left-0 flex justify-center items-center z-10 bg-white dark:bg-black bg-opacity-50 dark:bg-opacity-50 backdrop-blur-sm text-3xl animate-fade animate-duration-200",children:(0,a.jsx)(s.Z,{})}):null}},43446:function(e,l,t){var a=t(1375),s=t(2453),n=t(67294),r=t(58989),o=t(83454);l.Z=e=>{let{queryAgentURL:l="/api/v1/chat/completions"}=e,t=(0,n.useMemo)(()=>new AbortController,[]),i=(0,n.useCallback)(async e=>{let{data:n,chatId:i,onMessage:c,onClose:d,onDone:u,onError:m}=e;if(!(null==n?void 0:n.user_input)&&!(null==n?void 0:n.doc_id)){s.ZP.warning(r.Z.t("NoContextTip"));return}let x={...n,conv_uid:i};if(!x.conv_uid){s.ZP.error("conv_uid 不存在,请刷新后重试");return}try{var h;await (0,a.L)("".concat(null!==(h=o.env.API_BASE_URL)&&void 0!==h?h:"").concat(l),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(x),signal:t.signal,openWhenHidden:!0,async onopen(e){if(e.ok&&e.headers.get("content-type")===a.a)return},onclose(){t.abort(),null==d||d()},onerror(e){throw Error(e)},onmessage:e=>{var l;let t=null===(l=e.data)||void 0===l?void 0:l.replaceAll("\\n","\n");"[DONE]"===t?null==u||u():(null==t?void 0:t.startsWith("[ERROR]"))?null==m||m(null==t?void 0:t.replace("[ERROR]","")):null==c||c(t)}})}catch(e){t.abort(),null==m||m("Sorry, We meet some error, please try agin later.",e)}},[l]);return(0,n.useEffect)(()=>()=>{t.abort()},[]),i}},80573:function(e,l,t){var a=t(41468),s=t(67294),n=t(43446),r=t(50489);l.Z=()=>{let{history:e,setHistory:l,chatId:t,model:o,docId:i}=(0,s.useContext)(a.p),c=(0,n.Z)({queryAgentURL:"/knowledge/document/summary"}),d=(0,s.useCallback)(async e=>{let[,a]=await (0,r.Vx)((0,r.$i)(t)),s=[...a,{role:"human",context:"",model_name:o,order:0,time_stamp:0},{role:"view",context:"",model_name:o,order:0,time_stamp:0,retry:!0}],n=s.length-1;l([...s]),await c({data:{doc_id:e||i,model_name:o},chatId:t,onMessage:e=>{s[n].context=e,l([...s])}})},[e,o,i,t]);return d}}}]); \ No newline at end of file +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[0],{15506:function(e,l,t){t.r(l),t.d(l,{default:function(){return ew}});var a=t(85893),s=t(67294),n=t(2093),r=t(43446),o=t(39332),i=t(99513),c=t(24019),d=t(50888),u=t(97937),m=t(63606),x=t(50228),h=t(87547),p=t(89035),f=t(33035),v=t(12767),g=t(94184),j=t.n(g),b=t(66309),y=t(81799),w=t(41468),_=t(29158),N=t(98165),Z=t(14079),k=t(38426),C=t(61607),S=t(44442),P=t(74627),R=t(36782),E=t(13135),D=t(71577),I=t(2453),O=t(57132),M=t(79166),A=t(93179),L=t(20640),F=t.n(L);function q(e){let{code:l,language:t}=e;return(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)(D.ZP,{className:"absolute right-3 top-2 text-gray-300 hover:!text-gray-200 bg-gray-700",type:"text",icon:(0,a.jsx)(O.Z,{}),onClick:()=>{let e=F()(l);I.ZP[e?"success":"error"](e?"Copy success":"Copy failed")}}),(0,a.jsx)(A.Z,{language:t,style:M.Z,children:l})]})}let z=["custom-view","chart-view","references","summary"],T={code(e){var l;let{inline:t,node:s,className:n,children:r,style:o,...i}=e,{context:c,matchValues:d}=function(e){let l=z.reduce((l,t)=>{let a=RegExp("<".concat(t,"[^>]*/?>"),"gi");return e=e.replace(a,e=>(l.push(e),"")),l},[]);return{context:e,matchValues:l}}(Array.isArray(r)?r.join("\n"):r),u=/language-(\w+)/.exec(n||"");return(0,a.jsxs)(a.Fragment,{children:[!t&&u?(0,a.jsx)(q,{code:c,language:null!==(l=null==u?void 0:u[1])&&void 0!==l?l:"javascript"}):(0,a.jsx)("code",{...i,style:o,className:"px-[6px] py-[2px] rounded bg-gray-700 text-gray-100 dark:bg-gray-100 dark:text-gray-800 text-sm",children:r}),(0,a.jsx)(f.D,{components:T,rehypePlugins:[v.Z],children:d.join("\n")})]})},ul(e){let{children:l}=e;return(0,a.jsx)("ul",{className:"py-1",children:l})},ol(e){let{children:l}=e;return(0,a.jsx)("ol",{className:"py-1",children:l})},li(e){let{children:l,ordered:t}=e;return(0,a.jsx)("li",{className:"text-sm leading-7 ml-5 pl-2 text-gray-600 dark:text-gray-300 ".concat(t?"list-decimal":"list-disc"),children:l})},table(e){let{children:l}=e;return(0,a.jsx)("table",{className:"my-2 rounded-tl-md rounded-tr-md max-w-full bg-white dark:bg-gray-900 text-sm rounded-lg overflow-hidden",children:l})},thead(e){let{children:l}=e;return(0,a.jsx)("thead",{className:"bg-[#fafafa] dark:bg-black font-semibold",children:l})},th(e){let{children:l}=e;return(0,a.jsx)("th",{className:"!text-left p-4",children:l})},td(e){let{children:l}=e;return(0,a.jsx)("td",{className:"p-4 border-t border-[#f0f0f0] dark:border-gray-700",children:l})},h1(e){let{children:l}=e;return(0,a.jsx)("h3",{className:"text-2xl font-bold my-4 border-b border-slate-300 pb-4",children:l})},h2(e){let{children:l}=e;return(0,a.jsx)("h3",{className:"text-xl font-bold my-3",children:l})},h3(e){let{children:l}=e;return(0,a.jsx)("h3",{className:"text-lg font-semibold my-2",children:l})},h4(e){let{children:l}=e;return(0,a.jsx)("h3",{className:"text-base font-semibold my-1",children:l})},a(e){let{children:l,href:t}=e;return(0,a.jsxs)("div",{className:"inline-block text-blue-600 dark:text-blue-400",children:[(0,a.jsx)(_.Z,{className:"mr-1"}),(0,a.jsx)("a",{href:t,target:"_blank",children:l})]})},img(e){let{src:l,alt:t}=e;return(0,a.jsx)("div",{children:(0,a.jsx)(k.Z,{className:"min-h-[1rem] max-w-full max-h-full border rounded",src:l,alt:t,placeholder:(0,a.jsx)(b.Z,{icon:(0,a.jsx)(N.Z,{spin:!0}),color:"processing",children:"Image Loading..."}),fallback:"/images/fallback.png"})})},blockquote(e){let{children:l}=e;return(0,a.jsx)("blockquote",{className:"py-4 px-6 border-l-4 border-blue-600 rounded bg-white my-2 text-gray-500 dark:bg-slate-800 dark:text-gray-200 dark:border-white shadow-sm",children:l})},"chart-view":function(e){var l,t,s;let n,{content:r,children:o}=e;try{n=JSON.parse(r)}catch(e){console.log(e,r),n={type:"response_table",sql:"",data:[]}}let i=(null==n?void 0:null===(l=n.data)||void 0===l?void 0:l[0])?null===(t=Object.keys(null==n?void 0:null===(s=n.data)||void 0===s?void 0:s[0]))||void 0===t?void 0:t.map(e=>({title:e,dataIndex:e,key:e})):[],c={key:"chart",label:"Chart",children:(0,a.jsx)(E._z,{data:null==n?void 0:n.data,chartType:(0,E.aG)(null==n?void 0:n.type)})},d={key:"sql",label:"SQL",children:(0,a.jsx)(q,{code:(0,R.WU)(null==n?void 0:n.sql,{language:"mysql"}),language:"sql"})},u={key:"data",label:"Data",children:(0,a.jsx)(C.Z,{dataSource:null==n?void 0:n.data,columns:i})},m=(null==n?void 0:n.type)==="response_table"?[u,d]:[c,d,u];return(0,a.jsxs)("div",{children:[(0,a.jsx)(S.Z,{defaultActiveKey:(null==n?void 0:n.type)==="response_table"?"data":"chart",items:m,size:"small"}),o]})},references:function(e){let l,{title:t,references:s,children:n}=e;if(n)try{t=(l=JSON.parse(n)).title,s=l.references}catch(e){return console.log("parse references failed",e),(0,a.jsx)("p",{className:"text-sm text-red-500",children:"Render Reference Error!"})}else try{s=JSON.parse(s)}catch(e){return console.log("parse references failed",e),(0,a.jsx)("p",{className:"text-sm text-red-500",children:"Render Reference Error!"})}return!s||(null==s?void 0:s.length)<1?null:(0,a.jsxs)("div",{className:"border-t-[1px] border-gray-300 mt-3 py-2",children:[(0,a.jsxs)("p",{className:"text-sm text-gray-500 dark:text-gray-400 mb-2",children:[(0,a.jsx)(_.Z,{className:"mr-2"}),(0,a.jsx)("span",{className:"font-semibold",children:t})]}),s.map((e,l)=>{var t;return(0,a.jsxs)("div",{className:"text-sm font-normal block ml-2 h-6 leading-6 overflow-hidden",children:[(0,a.jsxs)("span",{className:"inline-block w-6",children:["[",l+1,"]"]}),(0,a.jsx)("span",{className:"mr-2 lg:mr-4 text-blue-400",children:e.name}),null==e?void 0:null===(t=e.chunks)||void 0===t?void 0:t.map((l,t)=>(0,a.jsxs)("span",{children:["object"==typeof l?(0,a.jsx)(P.Z,{content:(0,a.jsxs)("div",{className:"max-w-4xl",children:[(0,a.jsx)("p",{className:"mt-2 font-bold mr-2 border-t border-gray-500 pt-2",children:"Content:"}),(0,a.jsx)("p",{children:(null==l?void 0:l.content)||"No Content"}),(0,a.jsx)("p",{className:"mt-2 font-bold mr-2 border-t border-gray-500 pt-2",children:"MetaData:"}),(0,a.jsx)("p",{children:(null==l?void 0:l.meta_info)||"No MetaData"}),(0,a.jsx)("p",{className:"mt-2 font-bold mr-2 border-t border-gray-500 pt-2",children:"Score:"}),(0,a.jsx)("p",{children:(null==l?void 0:l.recall_score)||""})]}),title:"Chunk Information",children:(0,a.jsx)("span",{className:"cursor-pointer text-blue-500 ml-2",children:null==l?void 0:l.id},"chunk_content_".concat(null==l?void 0:l.id))}):(0,a.jsx)("span",{className:"cursor-pointer text-blue-500 ml-2",children:l},"chunk_id_".concat(l)),t<(null==e?void 0:e.chunks.length)-1&&(0,a.jsx)("span",{children:","},"chunk_comma_".concat(t))]},"chunk_".concat(t)))]},"file_".concat(l))})]})},summary:function(e){let{children:l}=e;return(0,a.jsxs)("div",{children:[(0,a.jsxs)("p",{className:"mb-2",children:[(0,a.jsx)(Z.Z,{className:"mr-2"}),(0,a.jsx)("span",{className:"font-semibold",children:"Document Summary"})]}),(0,a.jsx)("div",{children:l})]})}},V={todo:{bgClass:"bg-gray-500",icon:(0,a.jsx)(c.Z,{className:"ml-2"})},runing:{bgClass:"bg-blue-500",icon:(0,a.jsx)(d.Z,{className:"ml-2"})},failed:{bgClass:"bg-red-500",icon:(0,a.jsx)(u.Z,{className:"ml-2"})},completed:{bgClass:"bg-green-500",icon:(0,a.jsx)(m.Z,{className:"ml-2"})}};function G(e){return e.replaceAll("\\n","\n").replace(/]+)>/gi,"
").replace(/]+)>/gi,"")}var H=(0,s.memo)(function(e){let{children:l,content:t,isChartChat:n,onLinkClick:r}=e,{scene:o}=(0,s.useContext)(w.p),{context:i,model_name:c,role:d}=t,u="view"===d,{relations:m,value:g,cachePluginContext:_}=(0,s.useMemo)(()=>{if("string"!=typeof i)return{relations:[],value:"",cachePluginContext:[]};let[e,l]=i.split(" relations:"),t=l?l.split(","):[],a=[],s=0,n=e.replace(/]*>[^<]*<\/dbgpt-view>/gi,e=>{try{var l;let t=e.replaceAll("\n","\\n").replace(/<[^>]*>|<\/[^>]*>/gm,""),n=JSON.parse(t),r="".concat(s,"");return a.push({...n,result:G(null!==(l=n.result)&&void 0!==l?l:"")}),s++,r}catch(l){return console.log(l.message,l),e}});return{relations:t,cachePluginContext:a,value:n}},[i]),N=(0,s.useMemo)(()=>({"custom-view"(e){var l;let{children:t}=e,s=+t.toString();if(!_[s])return t;let{name:n,status:r,err_msg:o,result:i}=_[s],{bgClass:c,icon:d}=null!==(l=V[r])&&void 0!==l?l:{};return(0,a.jsxs)("div",{className:"bg-white dark:bg-[#212121] rounded-lg overflow-hidden my-2 flex flex-col lg:max-w-[80%]",children:[(0,a.jsxs)("div",{className:j()("flex px-4 md:px-6 py-2 items-center text-white text-sm",c),children:[n,d]}),i?(0,a.jsx)("div",{className:"px-4 md:px-6 py-4 text-sm",children:(0,a.jsx)(f.D,{components:T,rehypePlugins:[v.Z],children:null!=i?i:""})}):(0,a.jsx)("div",{className:"px-4 md:px-6 py-4 text-sm",children:o})]})}}),[i,_]);return u||i?(0,a.jsxs)("div",{className:j()("relative flex flex-wrap w-full px-2 sm:px-4 py-2 sm:py-4 rounded-xl break-words",{"bg-slate-100 dark:bg-[#353539]":u,"lg:w-full xl:w-full pl-0":["chat_with_db_execute","chat_dashboard"].includes(o)}),children:[(0,a.jsx)("div",{className:"mr-2 flex flex-shrink-0 items-center justify-center h-7 w-7 rounded-full text-lg sm:mr-4",children:u?(0,y.A)(c)||(0,a.jsx)(x.Z,{}):(0,a.jsx)(h.Z,{})}),(0,a.jsxs)("div",{className:"flex-1 overflow-hidden items-center text-md leading-8",children:[!u&&"string"==typeof i&&i,u&&n&&"object"==typeof i&&(0,a.jsxs)("div",{children:["[".concat(i.template_name,"]: "),(0,a.jsxs)("span",{className:"text-[#1677ff] cursor-pointer",onClick:r,children:[(0,a.jsx)(p.Z,{className:"mr-1"}),i.template_introduce||"More Details"]})]}),u&&"string"==typeof i&&(0,a.jsx)(f.D,{components:{...T,...N},rehypePlugins:[v.Z],children:G(g)}),!!(null==m?void 0:m.length)&&(0,a.jsx)("div",{className:"flex flex-wrap mt-2",children:null==m?void 0:m.map((e,l)=>(0,a.jsx)(b.Z,{color:"#108ee9",children:e},e+l))})]}),l]}):(0,a.jsx)("div",{className:"h-12"})}),J=t(59301),U=t(41132),W=t(74312),$=t(3414),B=t(72868),Q=t(59562),K=t(14553),X=t(25359),Y=t(7203),ee=t(48665),el=t(26047),et=t(99056),ea=t(57814),es=t(63955),en=t(33028),er=t(40911),eo=t(66478),ei=t(83062),ec=t(50489),ed=t(67421),eu=e=>{var l;let{conv_index:t,question:n,knowledge_space:r,select_param:o}=e,{t:i}=(0,ed.$G)(),{chatId:c}=(0,s.useContext)(w.p),[d,u]=(0,s.useState)(""),[m,x]=(0,s.useState)(4),[h,p]=(0,s.useState)(""),f=(0,s.useRef)(null),[v,g]=I.ZP.useMessage(),j=(0,s.useCallback)((e,l)=>{l?(0,ec.Vx)((0,ec.Eb)(c,t)).then(e=>{var l,t,a,s;let n=null!==(l=e[1])&&void 0!==l?l:{};u(null!==(t=n.ques_type)&&void 0!==t?t:""),x(parseInt(null!==(a=n.score)&&void 0!==a?a:"4")),p(null!==(s=n.messages)&&void 0!==s?s:"")}).catch(e=>{console.log(e)}):(u(""),x(4),p(""))},[c,t]),b=(0,W.Z)($.Z)(e=>{let{theme:l}=e;return{backgroundColor:"dark"===l.palette.mode?"#FBFCFD":"#0E0E10",...l.typography["body-sm"],padding:l.spacing(1),display:"flex",alignItems:"center",justifyContent:"center",borderRadius:4,width:"100%",height:"100%"}});return(0,a.jsxs)(B.L,{onOpenChange:j,children:[g,(0,a.jsx)(ei.Z,{title:i("Rating"),children:(0,a.jsx)(Q.Z,{slots:{root:K.ZP},slotProps:{root:{variant:"plain",color:"primary"}},sx:{borderRadius:40},children:(0,a.jsx)(J.Z,{})})}),(0,a.jsxs)(X.Z,{children:[(0,a.jsx)(Y.Z,{disabled:!0,sx:{minHeight:0}}),(0,a.jsx)(ee.Z,{sx:{width:"100%",maxWidth:350,display:"grid",gap:3,padding:1},children:(0,a.jsx)("form",{onSubmit:e=>{e.preventDefault();let l={conv_uid:c,conv_index:t,question:n,knowledge_space:r,score:m,ques_type:d,messages:h};console.log(l),(0,ec.Vx)((0,ec.VC)({data:l})).then(e=>{v.open({type:"success",content:"save success"})}).catch(e=>{v.open({type:"error",content:"save error"})})},children:(0,a.jsxs)(el.Z,{container:!0,spacing:.5,columns:13,sx:{flexGrow:1},children:[(0,a.jsx)(el.Z,{xs:3,children:(0,a.jsx)(b,{children:i("Q_A_Category")})}),(0,a.jsx)(el.Z,{xs:10,children:(0,a.jsx)(et.Z,{action:f,value:d,placeholder:"Choose one…",onChange:(e,l)=>u(null!=l?l:""),...d&&{endDecorator:(0,a.jsx)(K.ZP,{size:"sm",variant:"plain",color:"neutral",onMouseDown:e=>{e.stopPropagation()},onClick:()=>{var e;u(""),null===(e=f.current)||void 0===e||e.focusVisible()},children:(0,a.jsx)(U.Z,{})}),indicator:null},sx:{width:"100%"},children:o&&(null===(l=Object.keys(o))||void 0===l?void 0:l.map(e=>(0,a.jsx)(ea.Z,{value:e,children:o[e]},e)))})}),(0,a.jsx)(el.Z,{xs:3,children:(0,a.jsx)(b,{children:(0,a.jsx)(ei.Z,{title:(0,a.jsx)(ee.Z,{children:(0,a.jsx)("div",{children:i("feed_back_desc")})}),variant:"solid",placement:"left",children:i("Q_A_Rating")})})}),(0,a.jsx)(el.Z,{xs:10,sx:{pl:0,ml:0},children:(0,a.jsx)(es.Z,{"aria-label":"Custom",step:1,min:0,max:5,valueLabelFormat:function(e){return({0:i("Lowest"),1:i("Missed"),2:i("Lost"),3:i("Incorrect"),4:i("Verbose"),5:i("Best")})[e]},valueLabelDisplay:"on",marks:[{value:0,label:"0"},{value:1,label:"1"},{value:2,label:"2"},{value:3,label:"3"},{value:4,label:"4"},{value:5,label:"5"}],sx:{width:"90%",pt:3,m:2,ml:1},onChange:e=>{var l;return x(null===(l=e.target)||void 0===l?void 0:l.value)},value:m})}),(0,a.jsx)(el.Z,{xs:13,children:(0,a.jsx)(en.Z,{placeholder:i("Please_input_the_text"),value:h,onChange:e=>p(e.target.value),minRows:2,maxRows:4,endDecorator:(0,a.jsx)(er.ZP,{level:"body-xs",sx:{ml:"auto"},children:i("input_count")+h.length+i("input_unit")}),sx:{width:"100%",fontSize:14}})}),(0,a.jsx)(el.Z,{xs:13,children:(0,a.jsx)(eo.Z,{type:"submit",variant:"outlined",sx:{width:"100%",height:"100%"},children:i("submit")})})]})})})]})]})},em=t(32983),ex=t(12069),eh=t(96486),ep=t(19409),ef=t(98399),ev=t(87740),eg=t(80573),ej=e=>{var l;let{messages:t,onSubmit:r}=e,{dbParam:c,currentDialogue:d,scene:u,model:m,refreshDialogList:x,chatId:h,agentList:p,docId:f}=(0,s.useContext)(w.p),{t:v}=(0,ed.$G)(),g=(0,o.useSearchParams)(),b=null!==(l=g&&g.get("spaceNameOriginal"))&&void 0!==l?l:"",[_,N]=(0,s.useState)(!1),[Z,k]=(0,s.useState)(!1),[C,S]=(0,s.useState)(t),[P,R]=(0,s.useState)(""),[E,D]=(0,s.useState)(),M=(0,s.useRef)(null),A=(0,s.useMemo)(()=>"chat_dashboard"===u,[u]),L=(0,eg.Z)(),q=(0,s.useMemo)(()=>{switch(u){case"chat_agent":return p.join(",");case"chat_excel":return null==d?void 0:d.select_param;default:return b||c}},[u,p,d,c,b]),z=async e=>{if(!_&&e.trim())try{N(!0),await r(e,{select_param:null!=q?q:""})}finally{N(!1)}},T=e=>{try{return JSON.parse(e)}catch(l){return e}},[V,G]=I.ZP.useMessage(),J=async e=>{let l=null==e?void 0:e.replace(/\trelations:.*/g,""),t=F()(l);t?l?V.open({type:"success",content:v("Copy_success")}):V.open({type:"warning",content:v("Copy_nothing")}):V.open({type:"error",content:v("Copry_error")})},U=async()=>{!_&&f&&(N(!0),await L(f),N(!1))};return(0,n.Z)(async()=>{let e=(0,ef.a_)();e&&e.id===h&&(await z(e.message),x(),localStorage.removeItem(ef.rU))},[h]),(0,s.useEffect)(()=>{let e=t;A&&(e=(0,eh.cloneDeep)(t).map(e=>((null==e?void 0:e.role)==="view"&&"string"==typeof(null==e?void 0:e.context)&&(e.context=T(null==e?void 0:e.context)),e))),S(e.filter(e=>["view","human"].includes(e.role)))},[A,t]),(0,s.useEffect)(()=>{(0,ec.Vx)((0,ec.Lu)()).then(e=>{var l;D(null!==(l=e[1])&&void 0!==l?l:{})}).catch(e=>{console.log(e)})},[]),(0,s.useEffect)(()=>{setTimeout(()=>{var e;null===(e=M.current)||void 0===e||e.scrollTo(0,M.current.scrollHeight)},50)},[t]),(0,a.jsxs)(a.Fragment,{children:[G,(0,a.jsx)("div",{ref:M,className:"flex flex-1 overflow-y-auto pb-8 w-full flex-col",children:(0,a.jsx)("div",{className:"flex items-center flex-1 flex-col text-sm leading-6 text-slate-900 dark:text-slate-300 sm:text-base sm:leading-7",children:C.length?C.map((e,l)=>{var t;return(0,a.jsx)(H,{content:e,isChartChat:A,onLinkClick:()=>{k(!0),R(JSON.stringify(null==e?void 0:e.context,null,2))},children:"view"===e.role&&(0,a.jsxs)("div",{className:"flex w-full pt-2 md:pt-4 border-t border-gray-200 mt-2 md:mt-4 pl-2",children:["chat_knowledge"===u&&e.retry?(0,a.jsxs)(eo.Z,{onClick:U,slots:{root:K.ZP},slotProps:{root:{variant:"plain",color:"primary"}},children:[(0,a.jsx)(ev.Z,{}),"\xa0",(0,a.jsx)("span",{className:"text-sm",children:v("Retry")})]}):null,(0,a.jsxs)("div",{className:"flex w-full flex-row-reverse",children:[(0,a.jsx)(eu,{select_param:E,conv_index:Math.ceil((l+1)/2),question:null===(t=null==C?void 0:C.filter(l=>(null==l?void 0:l.role)==="human"&&(null==l?void 0:l.order)===e.order)[0])||void 0===t?void 0:t.context,knowledge_space:b||c||""}),(0,a.jsx)(ei.Z,{title:v("Copy"),children:(0,a.jsx)(eo.Z,{onClick:()=>J(null==e?void 0:e.context),slots:{root:K.ZP},slotProps:{root:{variant:"plain",color:"primary"}},sx:{borderRadius:40},children:(0,a.jsx)(O.Z,{})})})]})]})},l)}):(0,a.jsx)(em.Z,{image:"/empty.png",imageStyle:{width:320,height:320,margin:"0 auto",maxWidth:"100%",maxHeight:"100%"},className:"flex items-center justify-center flex-col h-full w-full",description:"Start a conversation"})})}),(0,a.jsx)("div",{className:j()("relative after:absolute after:-top-8 after:h-8 after:w-full after:bg-gradient-to-t after:from-white after:to-transparent dark:after:from-[#212121]",{"cursor-not-allowed":"chat_excel"===u&&!(null==d?void 0:d.select_param)}),children:(0,a.jsxs)("div",{className:"flex flex-wrap w-full py-2 sm:pt-6 sm:pb-10 items-center",children:[m&&(0,a.jsx)("div",{className:"mr-2 flex",children:(0,y.A)(m)}),(0,a.jsx)(ep.Z,{loading:_,onSubmit:z,handleFinish:N})]})}),(0,a.jsx)(ex.default,{title:"JSON Editor",open:Z,width:"60%",cancelButtonProps:{hidden:!0},onOk:()=>{k(!1)},onCancel:()=>{k(!1)},children:(0,a.jsx)(i.Z,{className:"w-full h-[500px]",language:"json",value:P})})]})},eb=t(34625),ey=t(45247),ew=()=>{var e;let l=(0,o.useSearchParams)(),{scene:t,chatId:i,model:c,setModel:d,history:u,setHistory:m}=(0,s.useContext)(w.p),x=(0,r.Z)({}),h=null!==(e=l&&l.get("initMessage"))&&void 0!==e?e:"",[p,f]=(0,s.useState)(!1),[v,g]=(0,s.useState)(),b=async()=>{f(!0);let[,e]=await (0,ec.Vx)((0,ec.$i)(i));m(null!=e?e:[]),f(!1)},y=e=>{var l;let t=null===(l=e[e.length-1])||void 0===l?void 0:l.context;if(t)try{let e=JSON.parse(t);g((null==e?void 0:e.template_name)==="report"?null==e?void 0:e.charts:void 0)}catch(e){g(void 0)}};(0,n.Z)(async()=>{let e=(0,ef.a_)();e&&e.id===i||await b()},[h,i]),(0,s.useEffect)(()=>{var e,l;if(!u.length)return;let t=null===(e=null===(l=u.filter(e=>"view"===e.role))||void 0===l?void 0:l.slice(-1))||void 0===e?void 0:e[0];(null==t?void 0:t.model_name)&&d(t.model_name),y(u)},[u.length]),(0,s.useEffect)(()=>()=>{m([])},[]);let _=(0,s.useCallback)((e,l)=>new Promise(a=>{let s=[...u,{role:"human",context:e,model_name:c,order:0,time_stamp:0},{role:"view",context:"",model_name:c,order:0,time_stamp:0}],n=s.length-1;m([...s]),x({data:{...l,chat_mode:t||"chat_normal",model_name:c,user_input:e},chatId:i,onMessage:e=>{s[n].context=e,m([...s])},onDone:()=>{y(s),a()},onClose:()=>{y(s),a()},onError:e=>{s[n].context=e,m([...s]),a()}})}),[u,x,c]);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(ey.Z,{visible:p}),(0,a.jsx)(eb.Z,{refreshHistory:b,modelChange:e=>{d(e)}}),(0,a.jsxs)("div",{className:"px-4 flex flex-1 flex-wrap overflow-hidden relative",children:[!!(null==v?void 0:v.length)&&(0,a.jsx)("div",{className:"w-full xl:w-3/4 h-3/5 xl:pr-4 xl:h-full overflow-y-auto",children:(0,a.jsx)(E.ZP,{chartsData:v})}),!(null==v?void 0:v.length)&&"chat_dashboard"===t&&(0,a.jsx)(em.Z,{image:"/empty.png",imageStyle:{width:320,height:320,margin:"0 auto",maxWidth:"100%",maxHeight:"100%"},className:"w-full xl:w-3/4 h-3/5 xl:h-full pt-0 md:pt-10"}),(0,a.jsx)("div",{className:j()("flex flex-1 flex-col overflow-hidden",{"px-0 xl:pl-4 h-2/5 xl:h-full border-t xl:border-t-0 xl:border-l":"chat_dashboard"===t,"h-full lg:px-8":"chat_dashboard"!==t}),children:(0,a.jsx)(ej,{messages:u,onSubmit:_})})]})]})}},19409:function(e,l,t){t.d(l,{Z:function(){return D}});var a=t(85893),s=t(27496),n=t(59566),r=t(71577),o=t(67294),i=t(2487),c=t(83062),d=t(2453),u=t(46735),m=t(74627),x=t(39479),h=t(51009),p=t(58299),f=t(577),v=t(30119),g=t(67421);let j=e=>{let{data:l,loading:t,submit:s,close:n}=e,{t:r}=(0,g.$G)(),o=e=>()=>{s(e),n()};return(0,a.jsx)("div",{style:{maxHeight:400,overflow:"auto"},children:(0,a.jsx)(i.Z,{dataSource:null==l?void 0:l.data,loading:t,rowKey:e=>e.prompt_name,renderItem:e=>(0,a.jsx)(i.Z.Item,{onClick:o(e.content),children:(0,a.jsx)(c.Z,{title:e.content,children:(0,a.jsx)(i.Z.Item.Meta,{style:{cursor:"copy"},title:e.prompt_name,description:r("Prompt_Info_Scene")+":".concat(e.chat_scene,",")+r("Prompt_Info_Sub_Scene")+":".concat(e.sub_chat_scene)})})},e.prompt_name)})})};var b=e=>{let{submit:l}=e,{t}=(0,g.$G)(),[s,n]=(0,o.useState)(!1),[r,i]=(0,o.useState)("common"),{data:b,loading:y}=(0,f.Z)(()=>(0,v.PR)("/prompt/list",{prompt_type:r}),{refreshDeps:[r],onError:e=>{d.ZP.error(null==e?void 0:e.message)}});return(0,a.jsx)(u.ZP,{theme:{components:{Popover:{minWidth:250}}},children:(0,a.jsx)(m.Z,{title:(0,a.jsx)(x.Z.Item,{label:"Prompt "+t("Type"),children:(0,a.jsx)(h.default,{style:{width:150},value:r,onChange:e=>{i(e)},options:[{label:t("Public")+" Prompts",value:"common"},{label:t("Private")+" Prompts",value:"private"}]})}),content:(0,a.jsx)(j,{data:b,loading:y,submit:l,close:()=>{n(!1)}}),placement:"topRight",trigger:"click",open:s,onOpenChange:e=>{n(e)},children:(0,a.jsx)(c.Z,{title:t("Click_Select")+" Prompt",children:(0,a.jsx)(p.Z,{className:"bottom-[30%]"})})})})},y=t(41468),w=t(50489),_=t(80573),N=t(5392),Z=t(84553);function k(e){let{dbParam:l,setDocId:t}=(0,o.useContext)(y.p),{onUploadFinish:s,handleFinish:n}=e,i=(0,_.Z)(),[c,d]=(0,o.useState)(!1),u=async e=>{d(!0);let a=new FormData;a.append("doc_name",e.file.name),a.append("doc_file",e.file),a.append("doc_type","DOCUMENT");let r=await (0,w.Vx)((0,w.iG)(l||"default",a));if(!r[1]){d(!1);return}t(r[1]),s(),d(!1),null==n||n(!0),await i(r[1]),null==n||n(!1)};return(0,a.jsx)(Z.default,{customRequest:u,showUploadList:!1,maxCount:1,multiple:!1,className:"absolute z-10 top-2 left-2",accept:".pdf,.ppt,.pptx,.xls,.xlsx,.doc,.docx,.txt,.md",children:(0,a.jsx)(r.ZP,{loading:c,size:"small",shape:"circle",icon:(0,a.jsx)(N.Z,{})})})}var C=t(11163),S=t(5455),P=t(1051);function R(e){let{document:l}=e;switch(l.status){case"RUNNING":return(0,a.jsx)(S.Rp,{});case"FINISHED":default:return(0,a.jsx)(S.s2,{});case"FAILED":return(0,a.jsx)(P.Z,{})}}function E(e){let{documents:l,dbParam:t}=e,s=(0,C.useRouter)(),n=e=>{s.push("/knowledge/chunk/?spaceName=".concat(t,"&id=").concat(e))};return(null==l?void 0:l.length)?(0,a.jsx)("div",{className:"absolute flex overflow-scroll h-12 top-[-35px] w-full z-10",children:l.map(e=>{let l;switch(e.status){case"RUNNING":l="#2db7f5";break;case"FINISHED":default:l="#87d068";break;case"FAILED":l="#f50"}return(0,a.jsx)(c.Z,{title:e.result,children:(0,a.jsxs)(r.ZP,{style:{color:l},onClick:()=>{n(e.id)},className:"shrink flex items-center mr-3",children:[(0,a.jsx)(R,{document:e}),e.doc_name]})},e.id)})}):null}var D=function(e){let{children:l,loading:t,onSubmit:i,handleFinish:c,...d}=e,{dbParam:u,scene:m}=(0,o.useContext)(y.p),[x,h]=(0,o.useState)(""),p=(0,o.useMemo)(()=>"chat_knowledge"===m,[m]),[f,v]=(0,o.useState)([]),g=(0,o.useRef)(0);async function j(){if(!u)return null;let[e,l]=await (0,w.Vx)((0,w._Q)(u,{page:1,page_size:g.current}));v(null==l?void 0:l.data)}(0,o.useEffect)(()=>{p&&j()},[u]);let _=async()=>{g.current+=1,await j()};return(0,a.jsxs)("div",{className:"flex-1 relative",children:[(0,a.jsx)(E,{documents:f,dbParam:u}),p&&(0,a.jsx)(k,{handleFinish:c,onUploadFinish:_,className:"absolute z-10 top-2 left-2"}),(0,a.jsx)(n.default.TextArea,{className:"flex-1 ".concat(p?"pl-10":""," pr-10"),size:"large",value:x,autoSize:{minRows:1,maxRows:4},...d,onPressEnter:e=>{if(x.trim()&&13===e.keyCode){if(e.shiftKey){h(e=>e+"\n");return}i(x),setTimeout(()=>{h("")},0)}},onChange:e=>{if("number"==typeof d.maxLength){h(e.target.value.substring(0,d.maxLength));return}h(e.target.value)}}),(0,a.jsx)(r.ZP,{className:"ml-2 flex items-center justify-center absolute right-2 bottom-0",size:"large",type:"text",loading:t,icon:(0,a.jsx)(s.Z,{}),onClick:()=>{i(x)}}),(0,a.jsx)(b,{submit:e=>{h(x+e)}}),l]})}},45247:function(e,l,t){var a=t(85893),s=t(50888);l.Z=function(e){let{visible:l}=e;return l?(0,a.jsx)("div",{className:"absolute w-full h-full top-0 left-0 flex justify-center items-center z-10 bg-white dark:bg-black bg-opacity-50 dark:bg-opacity-50 backdrop-blur-sm text-3xl animate-fade animate-duration-200",children:(0,a.jsx)(s.Z,{})}):null}},43446:function(e,l,t){var a=t(1375),s=t(2453),n=t(67294),r=t(58989),o=t(83454);l.Z=e=>{let{queryAgentURL:l="/api/v1/chat/completions"}=e,t=(0,n.useMemo)(()=>new AbortController,[]),i=(0,n.useCallback)(async e=>{let{data:n,chatId:i,onMessage:c,onClose:d,onDone:u,onError:m}=e;if(!(null==n?void 0:n.user_input)&&!(null==n?void 0:n.doc_id)){s.ZP.warning(r.Z.t("NoContextTip"));return}let x={...n,conv_uid:i};if(!x.conv_uid){s.ZP.error("conv_uid 不存在,请刷新后重试");return}try{var h;await (0,a.L)("".concat(null!==(h=o.env.API_BASE_URL)&&void 0!==h?h:"").concat(l),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(x),signal:t.signal,openWhenHidden:!0,async onopen(e){if(e.ok&&e.headers.get("content-type")===a.a)return},onclose(){t.abort(),null==d||d()},onerror(e){throw Error(e)},onmessage:e=>{var l;let t=null===(l=e.data)||void 0===l?void 0:l.replaceAll("\\n","\n");"[DONE]"===t?null==u||u():(null==t?void 0:t.startsWith("[ERROR]"))?null==m||m(null==t?void 0:t.replace("[ERROR]","")):null==c||c(t)}})}catch(e){t.abort(),null==m||m("Sorry, We meet some error, please try agin later.",e)}},[l]);return(0,n.useEffect)(()=>()=>{t.abort()},[]),i}},80573:function(e,l,t){var a=t(41468),s=t(67294),n=t(43446),r=t(50489);l.Z=()=>{let{history:e,setHistory:l,chatId:t,model:o,docId:i}=(0,s.useContext)(a.p),c=(0,n.Z)({queryAgentURL:"/knowledge/document/summary"}),d=(0,s.useCallback)(async e=>{let[,a]=await (0,r.Vx)((0,r.$i)(t)),s=[...a,{role:"human",context:"",model_name:o,order:0,time_stamp:0},{role:"view",context:"",model_name:o,order:0,time_stamp:0,retry:!0}],n=s.length-1;l([...s]),await c({data:{doc_id:e||i,model_name:o},chatId:t,onMessage:e=>{s[n].context=e,l([...s])}})},[e,o,i,t]);return d}}}]); \ No newline at end of file diff --git a/dbgpt/app/static/_next/static/chunks/113-15fc0b8bd2b5b9a1.js b/dbgpt/app/static/_next/static/chunks/113-15fc0b8bd2b5b9a1.js new file mode 100644 index 000000000..5d6655487 --- /dev/null +++ b/dbgpt/app/static/_next/static/chunks/113-15fc0b8bd2b5b9a1.js @@ -0,0 +1,16 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[113],{63606:function(e,t,r){r.d(t,{Z:function(){return l}});var n=r(87462),i=r(67294),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},a=r(84089),l=i.forwardRef(function(e,t){return i.createElement(a.Z,(0,n.Z)({},e,{ref:t,icon:o}))})},68795:function(e,t,r){r.d(t,{Z:function(){return l}});var n=r(87462),i=r(67294),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},a=r(84089),l=i.forwardRef(function(e,t){return i.createElement(a.Z,(0,n.Z)({},e,{ref:t,icon:o}))})},74443:function(e,t,r){r.d(t,{Z:function(){return d},c:function(){return o}});var n=r(67294),i=r(25976);let o=["xxl","xl","lg","md","sm","xs"],a=e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}),l=e=>{let t=[].concat(o).reverse();return t.forEach((r,n)=>{let i=r.toUpperCase(),o=`screen${i}Min`,a=`screen${i}`;if(!(e[o]<=e[a]))throw Error(`${o}<=${a} fails : !(${e[o]}<=${e[a]})`);if(n{let e=new Map,r=-1,n={};return{matchHandlers:{},dispatch:t=>(n=t,e.forEach(e=>e(n)),e.size>=1),subscribe(t){return e.size||this.register(),r+=1,e.set(r,t),t(n),r},unsubscribe(t){e.delete(t),e.size||this.unregister()},unregister(){Object.keys(t).forEach(e=>{let r=t[e],n=this.matchHandlers[r];null==n||n.mql.removeListener(null==n?void 0:n.listener)}),e.clear()},register(){Object.keys(t).forEach(e=>{let r=t[e],i=t=>{let{matches:r}=t;this.dispatch(Object.assign(Object.assign({},n),{[e]:r}))},o=window.matchMedia(r);o.addListener(i),this.matchHandlers[r]={mql:o,listener:i},i(o)})},responsiveMap:t}},[e])}},9708:function(e,t,r){r.d(t,{F:function(){return a},Z:function(){return o}});var n=r(94184),i=r.n(n);function o(e,t,r){return i()({[`${e}-status-success`]:"success"===t,[`${e}-status-warning`]:"warning"===t,[`${e}-status-error`]:"error"===t,[`${e}-status-validating`]:"validating"===t,[`${e}-has-feedback`]:r})}let a=(e,t)=>t||e},32983:function(e,t,r){r.d(t,{Z:function(){return m}});var n=r(94184),i=r.n(n),o=r(67294),a=r(53124),l=r(10110),d=r(10274),s=r(25976),c=r(67968),u=r(45503);let p=e=>{let{componentCls:t,margin:r,marginXS:n,marginXL:i,fontSize:o,lineHeight:a}=e;return{[t]:{marginInline:n,fontSize:o,lineHeight:a,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:n,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorText},[`${t}-footer`]:{marginTop:r},"&-normal":{marginBlock:i,color:e.colorTextDisabled,[`${t}-description`]:{color:e.colorTextDisabled},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:n,color:e.colorTextDisabled,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}};var g=(0,c.Z)("Empty",e=>{let{componentCls:t,controlHeightLG:r}=e,n=(0,u.TS)(e,{emptyImgCls:`${t}-img`,emptyImgHeight:2.5*r,emptyImgHeightMD:r,emptyImgHeightSM:.875*r});return[p(n)]}),h=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);it.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};let b=o.createElement(()=>{let[,e]=(0,s.Z)(),t=new d.C(e.colorBgBase),r=t.toHsl().l<.5?{opacity:.65}:{};return o.createElement("svg",{style:r,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},o.createElement("g",{fill:"none",fillRule:"evenodd"},o.createElement("g",{transform:"translate(24 31.67)"},o.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),o.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),o.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),o.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),o.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),o.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),o.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},o.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),o.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},null),$=o.createElement(()=>{let[,e]=(0,s.Z)(),{colorFill:t,colorFillTertiary:r,colorFillQuaternary:n,colorBgContainer:i}=e,{borderColor:a,shadowColor:l,contentColor:c}=(0,o.useMemo)(()=>({borderColor:new d.C(t).onBackground(i).toHexShortString(),shadowColor:new d.C(r).onBackground(i).toHexShortString(),contentColor:new d.C(n).onBackground(i).toHexShortString()}),[t,r,n,i]);return o.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},o.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},o.createElement("ellipse",{fill:l,cx:"32",cy:"33",rx:"32",ry:"7"}),o.createElement("g",{fillRule:"nonzero",stroke:a},o.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),o.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:c}))))},null),f=e=>{var{className:t,rootClassName:r,prefixCls:n,image:d=b,description:s,children:c,imageStyle:u,style:p}=e,f=h(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);let{getPrefixCls:m,direction:x,empty:E}=o.useContext(a.E_),S=m("empty",n),[w,v]=g(S),[y]=(0,l.Z)("Empty"),R=void 0!==s?s:null==y?void 0:y.description,H="string"==typeof R?R:"empty",z=null;return z="string"==typeof d?o.createElement("img",{alt:H,src:d}):d,w(o.createElement("div",Object.assign({className:i()(v,S,null==E?void 0:E.className,{[`${S}-normal`]:d===$,[`${S}-rtl`]:"rtl"===x},t,r),style:Object.assign(Object.assign({},null==E?void 0:E.style),p)},f),o.createElement("div",{className:`${S}-image`,style:u},z),R&&o.createElement("div",{className:`${S}-description`},R),c&&o.createElement("div",{className:`${S}-footer`},c)))};f.PRESENTED_IMAGE_DEFAULT=b,f.PRESENTED_IMAGE_SIMPLE=$;var m=f},47673:function(e,t,r){r.d(t,{M1:function(){return s},Xy:function(){return c},bi:function(){return g},e5:function(){return S},ik:function(){return h},nz:function(){return l},pU:function(){return d},s7:function(){return b},x0:function(){return p}});var n=r(14747),i=r(80110),o=r(45503),a=r(67968);let l=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),d=e=>({borderColor:e.inputBorderHoverColor,borderInlineEndWidth:e.lineWidth}),s=e=>({borderColor:e.inputBorderHoverColor,boxShadow:`0 0 0 ${e.controlOutlineWidth}px ${e.controlOutline}`,borderInlineEndWidth:e.lineWidth,outline:0}),c=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},d((0,o.TS)(e,{inputBorderHoverColor:e.colorBorder})))}),u=e=>{let{inputPaddingVerticalLG:t,fontSizeLG:r,lineHeightLG:n,borderRadiusLG:i,inputPaddingHorizontalLG:o}=e;return{padding:`${t}px ${o}px`,fontSize:r,lineHeight:n,borderRadius:i}},p=e=>({padding:`${e.inputPaddingVerticalSM}px ${e.controlPaddingHorizontalSM-1}px`,borderRadius:e.borderRadiusSM}),g=(e,t)=>{let{componentCls:r,colorError:n,colorWarning:i,colorErrorOutline:a,colorWarningOutline:l,colorErrorBorderHover:d,colorWarningBorderHover:c}=e;return{[`&-status-error:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:n,"&:hover":{borderColor:d},"&:focus, &-focused":Object.assign({},s((0,o.TS)(e,{inputBorderActiveColor:n,inputBorderHoverColor:n,controlOutline:a}))),[`${r}-prefix, ${r}-suffix`]:{color:n}},[`&-status-warning:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:i,"&:hover":{borderColor:c},"&:focus, &-focused":Object.assign({},s((0,o.TS)(e,{inputBorderActiveColor:i,inputBorderHoverColor:i,controlOutline:l}))),[`${r}-prefix, ${r}-suffix`]:{color:i}}}},h=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${e.inputPaddingVertical}px ${e.inputPaddingHorizontal}px`,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,backgroundColor:e.colorBgContainer,backgroundImage:"none",borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:e.colorBorder,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},l(e.colorTextPlaceholder)),{"&:hover":Object.assign({},d(e)),"&:focus, &-focused":Object.assign({},s(e)),"&-disabled, &[disabled]":Object.assign({},c(e)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},u(e)),"&-sm":Object.assign({},p(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),b=e=>{let{componentCls:t,antCls:r}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},u(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},p(e)),[`&-lg ${r}-select-single ${r}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${r}-select-single ${r}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${e.inputPaddingHorizontal}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,textAlign:"center",backgroundColor:e.colorFillAlter,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${r}-select`]:{margin:`-${e.inputPaddingVertical+1}px -${e.inputPaddingHorizontal}px`,[`&${r}-select-single:not(${r}-select-customize-input)`]:{[`${r}-select-selector`]:{backgroundColor:"inherit",border:`${e.lineWidth}px ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${r}-select-selector`]:{color:e.colorPrimary}}},[`${r}-cascader-picker`]:{margin:`-9px -${e.inputPaddingHorizontal}px`,backgroundColor:"transparent",[`${r}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${t}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${r}-select ${r}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${r}-select ${r}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},(0,n.dF)()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[` + & > ${t}-affix-wrapper, + & > ${t}-number-affix-wrapper, + & > ${r}-picker-range + `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-e.lineWidth,borderInlineEndWidth:e.lineWidth},[`${t}`]:{float:"none"},[`& > ${r}-select > ${r}-select-selector, + & > ${r}-select-auto-complete ${t}, + & > ${r}-cascader-picker ${t}, + & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${r}-select-focused`]:{zIndex:1},[`& > ${r}-select > ${r}-select-arrow`]:{zIndex:1},[`& > *:first-child, + & > ${r}-select:first-child > ${r}-select-selector, + & > ${r}-select-auto-complete:first-child ${t}, + & > ${r}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child, + & > ${r}-select:last-child > ${r}-select-selector, + & > ${r}-cascader-picker:last-child ${t}, + & > ${r}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${r}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:-e.lineWidth,[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},$=e=>{let{componentCls:t,controlHeightSM:r,lineWidth:i}=e,o=(r-2*i-16)/2;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,n.Wf)(e)),h(e)),g(e,t)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:r,paddingTop:o,paddingBottom:o}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},f=e=>{let{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${e.inputAffixPadding}px`}}}},m=e=>{let{componentCls:t,inputAffixPadding:r,colorTextDescription:n,motionDurationSlow:i,colorIcon:o,colorIconHover:a,iconCls:l}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},h(e)),{display:"inline-flex",[`&:not(${t}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},d(e)),{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${t}[disabled]`]:{background:"transparent"}},[`> input${t}`]:{padding:0,fontSize:"inherit",border:"none",borderRadius:0,outline:"none","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:n},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:r},"&-suffix":{marginInlineStart:r}}}),f(e)),{[`${l}${t}-password-icon`]:{color:o,cursor:"pointer",transition:`all ${i}`,"&:hover":{color:a}}}),g(e,`${t}-affix-wrapper`))}},x=e=>{let{componentCls:t,colorError:r,colorWarning:i,borderRadiusLG:o,borderRadiusSM:a}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},(0,n.Wf)(e)),b(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:o,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:a}},"&-status-error":{[`${t}-group-addon`]:{color:r,borderColor:r}},"&-status-warning":{[`${t}-group-addon`]:{color:i,borderColor:i}},"&-disabled":{[`${t}-group-addon`]:Object.assign({},c(e))},[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}})}},E=e=>{let{componentCls:t,antCls:r}=e,n=`${t}-search`;return{[n]:{[`${t}`]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,[`+ ${t}-group-addon ${n}-button:not(${r}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{borderRadius:0},[`${t}-lg`]:{lineHeight:e.lineHeightLG-2e-4},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${n}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius,borderEndStartRadius:0},[`${n}-button:not(${r}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${r}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${n}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${n}-button`]:{height:e.controlHeightLG},[`&-small ${n}-button`]:{height:e.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:-e.lineWidth,borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button, + > ${t}, + ${t}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}};function S(e){return(0,o.TS)(e,{inputAffixPadding:e.paddingXXS,inputPaddingVertical:Math.max(Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2*10)/10-e.lineWidth,3),inputPaddingVerticalLG:Math.ceil((e.controlHeightLG-e.fontSizeLG*e.lineHeightLG)/2*10)/10-e.lineWidth,inputPaddingVerticalSM:Math.max(Math.round((e.controlHeightSM-e.fontSize*e.lineHeight)/2*10)/10-e.lineWidth,0),inputPaddingHorizontal:e.paddingSM-e.lineWidth,inputPaddingHorizontalSM:e.paddingXS-e.lineWidth,inputPaddingHorizontalLG:e.controlPaddingHorizontal-e.lineWidth,inputBorderHoverColor:e.colorPrimaryHover,inputBorderActiveColor:e.colorPrimaryHover})}let w=e=>{let{componentCls:t,paddingLG:r}=e,n=`${t}-textarea`;return{[n]:{position:"relative","&-show-count":{[`> ${t}`]:{height:"100%"},[`${t}-data-count`]:{position:"absolute",bottom:-e.fontSize*e.lineHeight,insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${t}`]:{paddingInlineEnd:r}},[`&-affix-wrapper${n}-has-feedback`]:{[`${t}`]:{paddingInlineEnd:r}},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none","&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,insetBlockStart:e.paddingXS},[`${n}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.inputPaddingHorizontal,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}};t.ZP=(0,a.Z)("Input",e=>{let t=S(e);return[$(t),w(t),m(t),x(t),E(t),(0,i.c)(t)]})}}]); \ No newline at end of file diff --git a/dbgpt/app/static/_next/static/chunks/161-96143606b49cf4a1.js b/dbgpt/app/static/_next/static/chunks/161-96143606b49cf4a1.js new file mode 100644 index 000000000..5528a0b93 --- /dev/null +++ b/dbgpt/app/static/_next/static/chunks/161-96143606b49cf4a1.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[161],{54929:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}});var r=(0,n(67294).createContext)({})},53014:function(e,t,n){"use strict";Object.defineProperty(t,"Z",{enumerable:!0,get:function(){return g}});var r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=f(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(n(67294)),o=l(n(94184)),i=n(75531),a=l(n(54929)),u=n(72479);function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e){return e&&e.__esModule?e:{default:e}}function f(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(f=function(e){return e?n:t})(e)}function d(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["className","component","viewBox","spin","rotate","tabIndex","onClick","children"]),h=r.useRef(),O=(0,i.useComposeRef)(h,t);(0,u.warning)(!!(l||v),"Should have `component` prop or `children`."),(0,u.useInsertStyles)(h);var w=r.useContext(a.default),j=w.prefixCls,x=void 0===j?"anticon":j,S=w.rootClassName,P=(0,o.default)(S,x,n),k=(0,o.default)(c({},"".concat(x,"-spin"),!!p)),M=s(d({},u.svgBaseProps),{className:k,style:g?{msTransform:"rotate(".concat(g,"deg)"),transform:"rotate(".concat(g,"deg)")}:void 0,viewBox:f});f||delete M.viewBox;var C=y;return void 0===C&&b&&(C=-1),r.createElement("span",s(d({role:"img"},m),{ref:O,tabIndex:C,onClick:b,className:P}),l?r.createElement(l,M,v):v?((0,u.warning)(!!f||1===r.Children.count(v)&&r.isValidElement(v)&&"use"===r.Children.only(v).type,"Make sure that you provide correct `viewBox` prop (default `0 0 1024 1024`) to the icon."),r.createElement("svg",s(d({},M),{viewBox:f}),v)):null)});p.displayName="AntdIcon";var g=p},72479:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{warning:function(){return s},isIconDefinition:function(){return p},normalizeAttrs:function(){return g},generate:function(){return function e(t,n,r){return r?u.default.createElement(t.tag,d({key:n},g(t.attrs),r),(t.children||[]).map(function(r,o){return e(r,"".concat(n,"-").concat(t.tag,"-").concat(o))})):u.default.createElement(t.tag,d({key:n},g(t.attrs)),(t.children||[]).map(function(r,o){return e(r,"".concat(n,"-").concat(t.tag,"-").concat(o))}))}},getSecondaryColor:function(){return y},normalizeTwoToneColors:function(){return b},svgBaseProps:function(){return v},iconStyles:function(){return m},useInsertStyles:function(){return h}});var r=n(16397),o=n(93399),i=n(63298),a=l(n(45520)),u=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=f(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(n(67294)),c=l(n(54929));function l(e){return e&&e.__esModule?e:{default:e}}function f(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(f=function(e){return e?n:t})(e)}function d(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r=e[n];return"class"===n?(t.className=r,delete t.class):(delete t[n],t[n.replace(/-(.)/g,function(e,t){return t.toUpperCase()})]=r),t},{})}function y(e){return(0,r.generate)(e)[0]}function b(e){return e?Array.isArray(e)?e:[e]:[]}var v={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},m="\n.anticon {\n display: inline-block;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n",h=function(e){var t=(0,u.useContext)(c.default),n=t.csp,r=t.prefixCls,a=m;r&&(a=a.replace(/anticon/g,r)),(0,u.useEffect)(function(){var t=e.current,r=(0,i.getShadowRoot)(t);(0,o.updateCSS)(a,"@ant-design-icons",{prepend:!0,csp:n,attachTo:r})},[])}},38780:function(e,t){"use strict";t.Z=function(){let e=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let t=1;t{let r=n[t];void 0!==r&&(e[t]=r)})}return e}},66367:function(e,t,n){"use strict";function r(e){return null!=e&&e===e.window}function o(e,t){var n,o;if("undefined"==typeof window)return 0;let i=t?"scrollTop":"scrollLeft",a=0;return r(e)?a=e[t?"pageYOffset":"pageXOffset"]:e instanceof Document?a=e.documentElement[i]:e instanceof HTMLElement?a=e[i]:e&&(a=e[i]),e&&!r(e)&&"number"!=typeof a&&(a=null===(o=(null!==(n=e.ownerDocument)&&void 0!==n?n:e).documentElement)||void 0===o?void 0:o[i]),a}n.d(t,{F:function(){return r},Z:function(){return o}})},58375:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(75164),o=n(66367);function i(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{getContainer:n=()=>window,callback:i,duration:a=450}=t,u=n(),c=(0,o.Z)(u,!0),l=Date.now(),f=()=>{let t=Date.now(),n=t-l,d=function(e,t,n,r){let o=n-t;return(e/=r/2)<1?o/2*e*e*e+t:o/2*((e-=2)*e*e+2)+t}(n>a?a:n,c,e,a);(0,o.F)(u)?u.scrollTo(window.pageXOffset,d):u instanceof Document||"HTMLDocument"===u.constructor.name?u.documentElement.scrollTop=d:u.scrollTop=d,n{let{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:o}=e;return{[t]:Object.assign(Object.assign({},(0,u.Wf)(e)),{borderBlockStart:`${o}px solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",margin:`0 ${e.dividerVerticalGutterMargin}px`,verticalAlign:"middle",borderTop:0,borderInlineStart:`${o}px solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${e.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${e.dividerHorizontalWithTextGutterMargin}px 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${o}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:"5%"},"&::after":{width:"95%"}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:"95%"},"&::after":{width:"5%"}},[`${t}-inner-text`]:{display:"inline-block",padding:"0 1em"},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${o}px 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}};var d=(0,c.Z)("Divider",e=>{let t=(0,l.TS)(e,{dividerVerticalGutterMargin:e.marginXS,dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG});return[f(t)]},{sizePaddingEdgeHorizontal:0}),s=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},p=e=>{let{getPrefixCls:t,direction:n,divider:r}=i.useContext(a.E_),{prefixCls:u,type:c="horizontal",orientation:l="center",orientationMargin:f,className:p,rootClassName:g,children:y,dashed:b,plain:v,style:m}=e,h=s(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),O=t("divider",u),[w,j]=d(O),x=l.length>0?`-${l}`:l,S=!!y,P="left"===l&&null!=f,k="right"===l&&null!=f,M=o()(O,null==r?void 0:r.className,j,`${O}-${c}`,{[`${O}-with-text`]:S,[`${O}-with-text${x}`]:S,[`${O}-dashed`]:!!b,[`${O}-plain`]:!!v,[`${O}-rtl`]:"rtl"===n,[`${O}-no-default-orientation-margin-left`]:P,[`${O}-no-default-orientation-margin-right`]:k},p,g),C=i.useMemo(()=>"number"==typeof f?f:/^\d+$/.test(f)?Number(f):f,[f]),_=Object.assign(Object.assign({},P&&{marginLeft:C}),k&&{marginRight:C});return w(i.createElement("div",Object.assign({className:M,style:Object.assign(Object.assign({},null==r?void 0:r.style),m)},h,{role:"separator"}),y&&"vertical"!==c&&i.createElement("span",{className:`${O}-inner-text`,style:_},y)))}},19158:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return!!("undefined"!=typeof window&&window.document&&window.document.createElement)}},32191:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}},93399:function(e,t,n){"use strict";var r=n(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.clearContainerCache=function(){c.clear()},t.injectCSS=s,t.removeCSS=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=p(e,t);n&&f(t).removeChild(n)},t.updateCSS=function(e,t){var n,r,o,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!function(e,t){var n=c.get(e);if(!n||!(0,i.default)(document,n)){var r=s("",t),o=r.parentNode;c.set(e,o),e.removeChild(r)}}(f(a),a);var u=p(t,a);if(u)return null!==(n=a.csp)&&void 0!==n&&n.nonce&&u.nonce!==(null===(r=a.csp)||void 0===r?void 0:r.nonce)&&(u.nonce=null===(o=a.csp)||void 0===o?void 0:o.nonce),u.innerHTML!==e&&(u.innerHTML=e),u;var d=s(e,a);return d.setAttribute(l(a),t),d};var o=r(n(19158)),i=r(n(32191)),a="data-rc-order",u="data-rc-priority",c=new Map;function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):"rc-util-key"}function f(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function d(e){return Array.from((c.get(e)||e).children).filter(function(e){return"STYLE"===e.tagName})}function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!(0,o.default)())return null;var n=t.csp,r=t.prepend,i=t.priority,c=void 0===i?0:i,l="queue"===r?"prependQueue":r?"prepend":"append",s="prependQueue"===l,p=document.createElement("style");p.setAttribute(a,l),s&&c&&p.setAttribute(u,"".concat(c)),null!=n&&n.nonce&&(p.nonce=null==n?void 0:n.nonce),p.innerHTML=e;var g=f(t),y=g.firstChild;if(r){if(s){var b=d(g).filter(function(e){return!!["prepend","prependQueue"].includes(e.getAttribute(a))&&c>=Number(e.getAttribute(u)||0)});if(b.length)return g.insertBefore(p,b[b.length-1].nextSibling),p}g.insertBefore(p,y)}else g.appendChild(p);return p}function p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return d(f(t)).find(function(n){return n.getAttribute(l(t))===e})}},63298:function(e,t){"use strict";function n(e){var t;return null==e?void 0:null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}function r(e){return n(e) instanceof ShadowRoot}Object.defineProperty(t,"__esModule",{value:!0}),t.getShadowRoot=function(e){return r(e)?n(e):null},t.inShadow=r},67265:function(e,t,n){"use strict";var r=n(75263).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var r=o.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value};var o=r(n(67294))},75531:function(e,t,n){"use strict";var r=n(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.composeRef=l,t.fillRef=c,t.supportNodeRef=function(e){return!(!(0,i.isValidElement)(e)||(0,a.isFragment)(e))&&f(e)},t.supportRef=f,t.useComposeRef=function(){for(var e=arguments.length,t=Array(e),n=0;nt.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var l=0,r=Object.getOwnPropertySymbols(e);lt.indexOf(r[l])&&Object.prototype.propertyIsEnumerable.call(e,r[l])&&(n[r[l]]=e[r[l]]);return n};let c=["xs","sm","md","lg","xl","xxl"],f=a.forwardRef((e,t)=>{let{getPrefixCls:n,direction:r}=a.useContext(o.E_),{gutter:f,wrap:d,supportFlexGap:p}=a.useContext(s.Z),{prefixCls:v,span:m,order:g,offset:b,push:x,pull:y,className:h,children:w,flex:C,style:$}=e,E=u(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),Z=n("col",v),[O,j]=(0,i.c)(Z),S={};c.forEach(t=>{let n={},l=e[t];"number"==typeof l?n.span=l:"object"==typeof l&&(n=l||{}),delete E[t],S=Object.assign(Object.assign({},S),{[`${Z}-${t}-${n.span}`]:void 0!==n.span,[`${Z}-${t}-order-${n.order}`]:n.order||0===n.order,[`${Z}-${t}-offset-${n.offset}`]:n.offset||0===n.offset,[`${Z}-${t}-push-${n.push}`]:n.push||0===n.push,[`${Z}-${t}-pull-${n.pull}`]:n.pull||0===n.pull,[`${Z}-${t}-flex-${n.flex}`]:n.flex||"auto"===n.flex,[`${Z}-rtl`]:"rtl"===r})});let N=l()(Z,{[`${Z}-${m}`]:void 0!==m,[`${Z}-order-${g}`]:g,[`${Z}-offset-${b}`]:b,[`${Z}-push-${x}`]:x,[`${Z}-pull-${y}`]:y},h,S,j),z={};if(f&&f[0]>0){let e=f[0]/2;z.paddingLeft=e,z.paddingRight=e}if(f&&f[1]>0&&!p){let e=f[1]/2;z.paddingTop=e,z.paddingBottom=e}return C&&(z.flex="number"==typeof C?`${C} ${C} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(C)?`0 0 ${C}`:C,!1!==d||z.minWidth||(z.minWidth=0)),O(a.createElement("div",Object.assign({},E,{style:Object.assign(Object.assign({},z),$),className:N,ref:t}),w))});t.Z=f},92820:function(e,t,n){var r=n(94184),l=n.n(r),a=n(67294),o=n(53124),s=n(98082),i=n(74443),u=n(99134),c=n(6999),f=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var l=0,r=Object.getOwnPropertySymbols(e);lt.indexOf(r[l])&&Object.prototype.propertyIsEnumerable.call(e,r[l])&&(n[r[l]]=e[r[l]]);return n};function d(e,t){let[n,r]=a.useState("string"==typeof e?e:""),l=()=>{if("string"==typeof e&&r(e),"object"==typeof e)for(let n=0;n{l()},[JSON.stringify(e),t]),n}let p=a.forwardRef((e,t)=>{let{prefixCls:n,justify:r,align:p,className:v,style:m,children:g,gutter:b=0,wrap:x}=e,y=f(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:h,direction:w}=a.useContext(o.E_),[C,$]=a.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[E,Z]=a.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),O=d(p,E),j=d(r,E),S=(0,s.Z)(),N=a.useRef(b),z=(0,i.Z)();a.useEffect(()=>{let e=z.subscribe(e=>{Z(e);let t=N.current||0;(!Array.isArray(t)&&"object"==typeof t||Array.isArray(t)&&("object"==typeof t[0]||"object"==typeof t[1]))&&$(e)});return()=>z.unsubscribe(e)},[]);let R=h("row",n),[A,P]=(0,c.V)(R),I=(()=>{let e=[void 0,void 0],t=Array.isArray(b)?b:[b,void 0];return t.forEach((t,n)=>{if("object"==typeof t)for(let r=0;r0?-(I[0]/2):void 0,T=null!=I[1]&&I[1]>0?-(I[1]/2):void 0;B&&(M.marginLeft=B,M.marginRight=B),S?[,M.rowGap]=I:T&&(M.marginTop=T,M.marginBottom=T);let[F,L]=I,V=a.useMemo(()=>({gutter:[F,L],wrap:x,supportFlexGap:S}),[F,L,x,S]);return A(a.createElement(u.Z.Provider,{value:V},a.createElement("div",Object.assign({},y,{className:k,style:Object.assign(Object.assign({},M),m),ref:t}),g)))});t.Z=p},6999:function(e,t,n){n.d(t,{V:function(){return c},c:function(){return f}});var r=n(67968),l=n(45503);let a=e=>{let{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},o=e=>{let{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},s=(e,t)=>{let{componentCls:n,gridColumns:r}=e,l={};for(let e=r;e>=0;e--)0===e?(l[`${n}${t}-${e}`]={display:"none"},l[`${n}-push-${e}`]={insetInlineStart:"auto"},l[`${n}-pull-${e}`]={insetInlineEnd:"auto"},l[`${n}${t}-push-${e}`]={insetInlineStart:"auto"},l[`${n}${t}-pull-${e}`]={insetInlineEnd:"auto"},l[`${n}${t}-offset-${e}`]={marginInlineStart:0},l[`${n}${t}-order-${e}`]={order:0}):(l[`${n}${t}-${e}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${e/r*100}%`,maxWidth:`${e/r*100}%`}],l[`${n}${t}-push-${e}`]={insetInlineStart:`${e/r*100}%`},l[`${n}${t}-pull-${e}`]={insetInlineEnd:`${e/r*100}%`},l[`${n}${t}-offset-${e}`]={marginInlineStart:`${e/r*100}%`},l[`${n}${t}-order-${e}`]={order:e});return l},i=(e,t)=>s(e,t),u=(e,t,n)=>({[`@media (min-width: ${t}px)`]:Object.assign({},i(e,n))}),c=(0,r.Z)("Grid",e=>[a(e)]),f=(0,r.Z)("Grid",e=>{let t=(0,l.TS)(e,{gridColumns:24}),n={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[o(t),i(t,""),i(t,"-xs"),Object.keys(n).map(e=>u(t,n[e],e)).reduce((e,t)=>Object.assign(Object.assign({},e),t),{})]})},59566:function(e,t,n){n.d(t,{default:function(){return en}});var r,l=n(94184),a=n.n(l),o=n(67294),s=n(53124),i=n(65223),u=n(47673),c=n(4340),f=n(67656),d=n(42550),p=n(9708),v=n(98866),m=n(98675),g=n(4173);function b(e,t){let n=(0,o.useRef)([]),r=()=>{n.current.push(setTimeout(()=>{var t,n,r,l;(null===(t=e.current)||void 0===t?void 0:t.input)&&(null===(n=e.current)||void 0===n?void 0:n.input.getAttribute("type"))==="password"&&(null===(r=e.current)||void 0===r?void 0:r.input.hasAttribute("value"))&&(null===(l=e.current)||void 0===l||l.input.removeAttribute("value"))}))};return(0,o.useEffect)(()=>(t&&r(),()=>n.current.forEach(e=>{e&&clearTimeout(e)})),[]),r}var x=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var l=0,r=Object.getOwnPropertySymbols(e);lt.indexOf(r[l])&&Object.prototype.propertyIsEnumerable.call(e,r[l])&&(n[r[l]]=e[r[l]]);return n};let y=(0,o.forwardRef)((e,t)=>{var n;let r;let{prefixCls:l,bordered:y=!0,status:h,size:w,disabled:C,onBlur:$,onFocus:E,suffix:Z,allowClear:O,addonAfter:j,addonBefore:S,className:N,style:z,styles:R,rootClassName:A,onChange:P,classNames:I}=e,k=x(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:M,direction:B,input:T}=o.useContext(s.E_),F=M("input",l),L=(0,o.useRef)(null),[V,H]=(0,u.ZP)(F),{compactSize:D,compactItemClassnames:W}=(0,g.ri)(F,B),_=(0,m.Z)(e=>{var t;return null!==(t=null!=w?w:D)&&void 0!==t?t:e}),Q=o.useContext(v.Z),X=null!=C?C:Q,{status:J,hasFeedback:G,feedbackIcon:K}=(0,o.useContext)(i.aM),q=(0,p.F)(J,h),U=!!(e.prefix||e.suffix||e.allowClear)||!!G,Y=(0,o.useRef)(U);(0,o.useEffect)(()=>{U&&Y.current,Y.current=U},[U]);let ee=b(L,!0),et=(G||Z)&&o.createElement(o.Fragment,null,Z,G&&K);return"object"==typeof O&&(null==O?void 0:O.clearIcon)?r=O:O&&(r={clearIcon:o.createElement(c.Z,null)}),V(o.createElement(f.Z,Object.assign({ref:(0,d.sQ)(t,L),prefixCls:F,autoComplete:null==T?void 0:T.autoComplete},k,{disabled:X,onBlur:e=>{ee(),null==$||$(e)},onFocus:e=>{ee(),null==E||E(e)},style:Object.assign(Object.assign({},null==T?void 0:T.style),z),styles:Object.assign(Object.assign({},null==T?void 0:T.styles),R),suffix:et,allowClear:r,className:a()(N,A,W,null==T?void 0:T.className),onChange:e=>{ee(),null==P||P(e)},addonAfter:j&&o.createElement(g.BR,null,o.createElement(i.Ux,{override:!0,status:!0},j)),addonBefore:S&&o.createElement(g.BR,null,o.createElement(i.Ux,{override:!0,status:!0},S)),classNames:Object.assign(Object.assign(Object.assign({},I),null==T?void 0:T.classNames),{input:a()({[`${F}-sm`]:"small"===_,[`${F}-lg`]:"large"===_,[`${F}-rtl`]:"rtl"===B,[`${F}-borderless`]:!y},!U&&(0,p.Z)(F,q),null==I?void 0:I.input,null===(n=null==T?void 0:T.classNames)||void 0===n?void 0:n.input,H)}),classes:{affixWrapper:a()({[`${F}-affix-wrapper-sm`]:"small"===_,[`${F}-affix-wrapper-lg`]:"large"===_,[`${F}-affix-wrapper-rtl`]:"rtl"===B,[`${F}-affix-wrapper-borderless`]:!y},(0,p.Z)(`${F}-affix-wrapper`,q,G),H),wrapper:a()({[`${F}-group-rtl`]:"rtl"===B},H),group:a()({[`${F}-group-wrapper-sm`]:"small"===_,[`${F}-group-wrapper-lg`]:"large"===_,[`${F}-group-wrapper-rtl`]:"rtl"===B,[`${F}-group-wrapper-disabled`]:X},(0,p.Z)(`${F}-group-wrapper`,q,G),H)}})))});var h=n(87462),w={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},C=n(84089),$=o.forwardRef(function(e,t){return o.createElement(C.Z,(0,h.Z)({},e,{ref:t,icon:w}))}),E=n(99611),Z=n(98423),O=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var l=0,r=Object.getOwnPropertySymbols(e);lt.indexOf(r[l])&&Object.prototype.propertyIsEnumerable.call(e,r[l])&&(n[r[l]]=e[r[l]]);return n};let j=e=>e?o.createElement(E.Z,null):o.createElement($,null),S={click:"onClick",hover:"onMouseOver"},N=o.forwardRef((e,t)=>{let{visibilityToggle:n=!0}=e,r="object"==typeof n&&void 0!==n.visible,[l,i]=(0,o.useState)(()=>!!r&&n.visible),u=(0,o.useRef)(null);o.useEffect(()=>{r&&i(n.visible)},[r,n]);let c=b(u),f=()=>{let{disabled:t}=e;t||(l&&c(),i(e=>{var t;let r=!e;return"object"==typeof n&&(null===(t=n.onVisibleChange)||void 0===t||t.call(n,r)),r}))},{className:p,prefixCls:v,inputPrefixCls:m,size:g}=e,x=O(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:h}=o.useContext(s.E_),w=h("input",m),C=h("input-password",v),$=n&&(t=>{let{action:n="click",iconRender:r=j}=e,a=S[n]||"",s=r(l),i={[a]:f,className:`${t}-icon`,key:"passwordIcon",onMouseDown:e=>{e.preventDefault()},onMouseUp:e=>{e.preventDefault()}};return o.cloneElement(o.isValidElement(s)?s:o.createElement("span",null,s),i)})(C),E=a()(C,p,{[`${C}-${g}`]:!!g}),N=Object.assign(Object.assign({},(0,Z.Z)(x,["suffix","iconRender","visibilityToggle"])),{type:l?"text":"password",className:E,prefixCls:w,suffix:$});return g&&(N.size=g),o.createElement(y,Object.assign({ref:(0,d.sQ)(t,u)},N))});var z=n(68795),R=n(96159),A=n(71577),P=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var l=0,r=Object.getOwnPropertySymbols(e);lt.indexOf(r[l])&&Object.prototype.propertyIsEnumerable.call(e,r[l])&&(n[r[l]]=e[r[l]]);return n};let I=o.forwardRef((e,t)=>{let n;let{prefixCls:r,inputPrefixCls:l,className:i,size:u,suffix:c,enterButton:f=!1,addonAfter:p,loading:v,disabled:b,onSearch:x,onChange:h,onCompositionStart:w,onCompositionEnd:C}=e,$=P(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:E,direction:Z}=o.useContext(s.E_),O=o.useRef(!1),j=E("input-search",r),S=E("input",l),{compactSize:N}=(0,g.ri)(j,Z),I=(0,m.Z)(e=>{var t;return null!==(t=null!=u?u:N)&&void 0!==t?t:e}),k=o.useRef(null),M=e=>{var t;document.activeElement===(null===(t=k.current)||void 0===t?void 0:t.input)&&e.preventDefault()},B=e=>{var t,n;x&&x(null===(n=null===(t=k.current)||void 0===t?void 0:t.input)||void 0===n?void 0:n.value,e)},T="boolean"==typeof f?o.createElement(z.Z,null):null,F=`${j}-button`,L=f||{},V=L.type&&!0===L.type.__ANT_BUTTON;n=V||"button"===L.type?(0,R.Tm)(L,Object.assign({onMouseDown:M,onClick:e=>{var t,n;null===(n=null===(t=null==L?void 0:L.props)||void 0===t?void 0:t.onClick)||void 0===n||n.call(t,e),B(e)},key:"enterButton"},V?{className:F,size:I}:{})):o.createElement(A.ZP,{className:F,type:f?"primary":void 0,size:I,disabled:b,key:"enterButton",onMouseDown:M,onClick:B,loading:v,icon:T},f),p&&(n=[n,(0,R.Tm)(p,{key:"addonAfter"})]);let H=a()(j,{[`${j}-rtl`]:"rtl"===Z,[`${j}-${I}`]:!!I,[`${j}-with-button`]:!!f},i);return o.createElement(y,Object.assign({ref:(0,d.sQ)(k,t),onPressEnter:e=>{O.current||v||B(e)}},$,{size:I,onCompositionStart:e=>{O.current=!0,null==w||w(e)},onCompositionEnd:e=>{O.current=!1,null==C||C(e)},prefixCls:S,addonAfter:n,suffix:c,onChange:e=>{e&&e.target&&"click"===e.type&&x&&x(e.target.value,e),h&&h(e)},className:H,disabled:b}))});var k=n(1413),M=n(4942),B=n(71002),T=n(97685),F=n(45987),L=n(74902),V=n(87887),H=n(21770),D=n(9220),W=n(8410),_=n(75164),Q=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],X={},J=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],G=o.forwardRef(function(e,t){var n=e.prefixCls,l=(e.onPressEnter,e.defaultValue),s=e.value,i=e.autoSize,u=e.onResize,c=e.className,f=e.style,d=e.disabled,p=e.onChange,v=(e.onInternalAutoSize,(0,F.Z)(e,J)),m=(0,H.Z)(l,{value:s,postState:function(e){return null!=e?e:""}}),g=(0,T.Z)(m,2),b=g[0],x=g[1],y=o.useRef();o.useImperativeHandle(t,function(){return{textArea:y.current}});var w=o.useMemo(function(){return i&&"object"===(0,B.Z)(i)?[i.minRows,i.maxRows]:[]},[i]),C=(0,T.Z)(w,2),$=C[0],E=C[1],Z=!!i,O=function(){try{if(document.activeElement===y.current){var e=y.current,t=e.selectionStart,n=e.selectionEnd,r=e.scrollTop;y.current.setSelectionRange(t,n),y.current.scrollTop=r}}catch(e){}},j=o.useState(2),S=(0,T.Z)(j,2),N=S[0],z=S[1],R=o.useState(),A=(0,T.Z)(R,2),P=A[0],I=A[1],L=function(){z(0)};(0,W.Z)(function(){Z&&L()},[s,$,E,Z]),(0,W.Z)(function(){if(0===N)z(1);else if(1===N){var e=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;r||((r=document.createElement("textarea")).setAttribute("tab-index","-1"),r.setAttribute("aria-hidden","true"),document.body.appendChild(r)),e.getAttribute("wrap")?r.setAttribute("wrap",e.getAttribute("wrap")):r.removeAttribute("wrap");var o=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&X[n])return X[n];var r=window.getComputedStyle(e),l=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),a=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),o=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),s={sizingStyle:Q.map(function(e){return"".concat(e,":").concat(r.getPropertyValue(e))}).join(";"),paddingSize:a,borderSize:o,boxSizing:l};return t&&n&&(X[n]=s),s}(e,n),s=o.paddingSize,i=o.borderSize,u=o.boxSizing,c=o.sizingStyle;r.setAttribute("style","".concat(c,";").concat("\n min-height:0 !important;\n max-height:none !important;\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important;\n pointer-events: none !important;\n")),r.value=e.value||e.placeholder||"";var f=void 0,d=void 0,p=r.scrollHeight;if("border-box"===u?p+=i:"content-box"===u&&(p-=s),null!==l||null!==a){r.value=" ";var v=r.scrollHeight-s;null!==l&&(f=v*l,"border-box"===u&&(f=f+s+i),p=Math.max(f,p)),null!==a&&(d=v*a,"border-box"===u&&(d=d+s+i),t=p>d?"":"hidden",p=Math.min(d,p))}var m={height:p,overflowY:t,resize:"none"};return f&&(m.minHeight=f),d&&(m.maxHeight=d),m}(y.current,!1,$,E);z(2),I(e)}else O()},[N]);var V=o.useRef(),G=function(){_.Z.cancel(V.current)};o.useEffect(function(){return G},[]);var K=Z?P:null,q=(0,k.Z)((0,k.Z)({},f),K);return(0===N||1===N)&&(q.overflowY="hidden",q.overflowX="hidden"),o.createElement(D.Z,{onResize:function(e){2===N&&(null==u||u(e),i&&(G(),V.current=(0,_.Z)(function(){L()})))},disabled:!(i||u)},o.createElement("textarea",(0,h.Z)({},v,{ref:y,style:q,className:a()(n,c,(0,M.Z)({},"".concat(n,"-disabled"),d)),disabled:d,value:b,onChange:function(e){x(e.target.value),null==p||p(e)}})))}),K=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function q(e,t){return(0,L.Z)(e||"").slice(0,t).join("")}function U(e,t,n,r){var l=n;return e?l=q(n,r):(0,L.Z)(t||"").lengthr&&(l=t),l}var Y=o.forwardRef(function(e,t){var n,r,l=e.defaultValue,s=e.value,i=e.onFocus,u=e.onBlur,c=e.onChange,d=e.allowClear,p=e.maxLength,v=e.onCompositionStart,m=e.onCompositionEnd,g=e.suffix,b=e.prefixCls,x=void 0===b?"rc-textarea":b,y=e.classes,w=e.showCount,C=e.className,$=e.style,E=e.disabled,Z=e.hidden,O=e.classNames,j=e.styles,S=e.onResize,N=(0,F.Z)(e,K),z=(0,H.Z)(l,{value:s,defaultValue:l}),R=(0,T.Z)(z,2),A=R[0],P=R[1],I=(0,o.useRef)(null),D=o.useState(!1),W=(0,T.Z)(D,2),_=W[0],Q=W[1],X=o.useState(!1),J=(0,T.Z)(X,2),Y=J[0],ee=J[1],et=o.useRef(),en=o.useRef(0),er=o.useState(null),el=(0,T.Z)(er,2),ea=el[0],eo=el[1],es=function(){var e;null===(e=I.current)||void 0===e||e.textArea.focus()};(0,o.useImperativeHandle)(t,function(){return{resizableTextArea:I.current,focus:es,blur:function(){var e;null===(e=I.current)||void 0===e||e.textArea.blur()}}}),(0,o.useEffect)(function(){Q(function(e){return!E&&e})},[E]);var ei=Number(p)>0,eu=(0,V.D7)(A);!Y&&ei&&null==s&&(eu=q(eu,p));var ec=g;if(w){var ef=(0,L.Z)(eu).length;r="object"===(0,B.Z)(w)?w.formatter({value:eu,count:ef,maxLength:p}):"".concat(ef).concat(ei?" / ".concat(p):""),ec=o.createElement(o.Fragment,null,ec,o.createElement("span",{className:a()("".concat(x,"-data-count"),null==O?void 0:O.count),style:null==j?void 0:j.count},r))}var ed=!N.autoSize&&!w&&!d;return o.createElement(f.Q,{value:eu,allowClear:d,handleReset:function(e){var t;P(""),es(),(0,V.rJ)(null===(t=I.current)||void 0===t?void 0:t.textArea,e,c)},suffix:ec,prefixCls:x,classes:{affixWrapper:a()(null==y?void 0:y.affixWrapper,(n={},(0,M.Z)(n,"".concat(x,"-show-count"),w),(0,M.Z)(n,"".concat(x,"-textarea-allow-clear"),d),n))},disabled:E,focused:_,className:C,style:(0,k.Z)((0,k.Z)({},$),ea&&!ed?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":"string"==typeof r?r:void 0}},hidden:Z,inputElement:o.createElement(G,(0,h.Z)({},N,{onKeyDown:function(e){var t=N.onPressEnter,n=N.onKeyDown;"Enter"===e.key&&t&&t(e),null==n||n(e)},onChange:function(e){var t=e.target.value;!Y&&ei&&(t=U(e.target.selectionStart>=p+1||e.target.selectionStart===t.length||!e.target.selectionStart,A,t,p)),P(t),(0,V.rJ)(e.currentTarget,e,c,t)},onFocus:function(e){Q(!0),null==i||i(e)},onBlur:function(e){Q(!1),null==u||u(e)},onCompositionStart:function(e){ee(!0),et.current=A,en.current=e.currentTarget.selectionStart,null==v||v(e)},onCompositionEnd:function(e){ee(!1);var t,n=e.currentTarget.value;ei&&(n=U(en.current>=p+1||en.current===(null===(t=et.current)||void 0===t?void 0:t.length),et.current,n,p)),n!==A&&(P(n),(0,V.rJ)(e.currentTarget,e,c,n)),null==m||m(e)},className:null==O?void 0:O.textarea,style:(0,k.Z)((0,k.Z)({},null==j?void 0:j.textarea),{},{resize:null==$?void 0:$.resize}),disabled:E,prefixCls:x,onResize:function(e){var t;null==S||S(e),null!==(t=I.current)&&void 0!==t&&t.textArea.style.height&&eo(!0)},ref:I}))})}),ee=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var l=0,r=Object.getOwnPropertySymbols(e);lt.indexOf(r[l])&&Object.prototype.propertyIsEnumerable.call(e,r[l])&&(n[r[l]]=e[r[l]]);return n};let et=(0,o.forwardRef)((e,t)=>{let n;let{prefixCls:r,bordered:l=!0,size:f,disabled:d,status:g,allowClear:b,showCount:x,classNames:y}=e,h=ee(e,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames"]),{getPrefixCls:w,direction:C}=o.useContext(s.E_),$=(0,m.Z)(f),E=o.useContext(v.Z),{status:Z,hasFeedback:O,feedbackIcon:j}=o.useContext(i.aM),S=(0,p.F)(Z,g),N=o.useRef(null);o.useImperativeHandle(t,()=>{var e;return{resizableTextArea:null===(e=N.current)||void 0===e?void 0:e.resizableTextArea,focus:e=>{var t,n;!function(e,t){if(!e)return;e.focus(t);let{cursor:n}=t||{};if(n){let t=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(t,t);break;default:e.setSelectionRange(0,t)}}}(null===(n=null===(t=N.current)||void 0===t?void 0:t.resizableTextArea)||void 0===n?void 0:n.textArea,e)},blur:()=>{var e;return null===(e=N.current)||void 0===e?void 0:e.blur()}}});let z=w("input",r);"object"==typeof b&&(null==b?void 0:b.clearIcon)?n=b:b&&(n={clearIcon:o.createElement(c.Z,null)});let[R,A]=(0,u.ZP)(z);return R(o.createElement(Y,Object.assign({},h,{disabled:null!=d?d:E,allowClear:n,classes:{affixWrapper:a()(`${z}-textarea-affix-wrapper`,{[`${z}-affix-wrapper-rtl`]:"rtl"===C,[`${z}-affix-wrapper-borderless`]:!l,[`${z}-affix-wrapper-sm`]:"small"===$,[`${z}-affix-wrapper-lg`]:"large"===$,[`${z}-textarea-show-count`]:x},(0,p.Z)(`${z}-affix-wrapper`,S),A)},classNames:Object.assign(Object.assign({},y),{textarea:a()({[`${z}-borderless`]:!l,[`${z}-sm`]:"small"===$,[`${z}-lg`]:"large"===$},(0,p.Z)(z,S),A,null==y?void 0:y.textarea)}),prefixCls:z,suffix:O&&o.createElement("span",{className:`${z}-textarea-suffix`},j),showCount:x,ref:N})))});y.Group=e=>{let{getPrefixCls:t,direction:n}=(0,o.useContext)(s.E_),{prefixCls:r,className:l}=e,c=t("input-group",r),f=t("input"),[d,p]=(0,u.ZP)(f),v=a()(c,{[`${c}-lg`]:"large"===e.size,[`${c}-sm`]:"small"===e.size,[`${c}-compact`]:e.compact,[`${c}-rtl`]:"rtl"===n},p,l),m=(0,o.useContext)(i.aM),g=(0,o.useMemo)(()=>Object.assign(Object.assign({},m),{isFormItemInput:!1}),[m]);return d(o.createElement("span",{className:v,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},o.createElement(i.aM.Provider,{value:g},e.children)))},y.Search=I,y.TextArea=et,y.Password=N;var en=y},67656:function(e,t,n){n.d(t,{Q:function(){return f},Z:function(){return x}});var r=n(87462),l=n(1413),a=n(4942),o=n(71002),s=n(94184),i=n.n(s),u=n(67294),c=n(87887),f=function(e){var t=e.inputElement,n=e.prefixCls,s=e.prefix,f=e.suffix,d=e.addonBefore,p=e.addonAfter,v=e.className,m=e.style,g=e.disabled,b=e.readOnly,x=e.focused,y=e.triggerFocus,h=e.allowClear,w=e.value,C=e.handleReset,$=e.hidden,E=e.classes,Z=e.classNames,O=e.dataAttrs,j=e.styles,S=e.components,N=(null==S?void 0:S.affixWrapper)||"span",z=(null==S?void 0:S.groupWrapper)||"span",R=(null==S?void 0:S.wrapper)||"span",A=(null==S?void 0:S.groupAddon)||"span",P=(0,u.useRef)(null),I=(0,u.cloneElement)(t,{value:w,hidden:$,className:i()(null===(k=t.props)||void 0===k?void 0:k.className,!(0,c.X3)(e)&&!(0,c.He)(e)&&v)||null,style:(0,l.Z)((0,l.Z)({},null===(M=t.props)||void 0===M?void 0:M.style),(0,c.X3)(e)||(0,c.He)(e)?{}:m)});if((0,c.X3)(e)){var k,M,B,T="".concat(n,"-affix-wrapper"),F=i()(T,(B={},(0,a.Z)(B,"".concat(T,"-disabled"),g),(0,a.Z)(B,"".concat(T,"-focused"),x),(0,a.Z)(B,"".concat(T,"-readonly"),b),(0,a.Z)(B,"".concat(T,"-input-with-clear-btn"),f&&h&&w),B),!(0,c.He)(e)&&v,null==E?void 0:E.affixWrapper,null==Z?void 0:Z.affixWrapper),L=(f||h)&&u.createElement("span",{className:i()("".concat(n,"-suffix"),null==Z?void 0:Z.suffix),style:null==j?void 0:j.suffix},function(){if(!h)return null;var e,t=!g&&!b&&w,r="".concat(n,"-clear-icon"),l="object"===(0,o.Z)(h)&&null!=h&&h.clearIcon?h.clearIcon:"✖";return u.createElement("span",{onClick:C,onMouseDown:function(e){return e.preventDefault()},className:i()(r,(e={},(0,a.Z)(e,"".concat(r,"-hidden"),!t),(0,a.Z)(e,"".concat(r,"-has-suffix"),!!f),e)),role:"button",tabIndex:-1},l)}(),f);I=u.createElement(N,(0,r.Z)({className:F,style:(0,l.Z)((0,l.Z)({},(0,c.He)(e)?void 0:m),null==j?void 0:j.affixWrapper),hidden:!(0,c.He)(e)&&$,onClick:function(e){var t;null!==(t=P.current)&&void 0!==t&&t.contains(e.target)&&(null==y||y())}},null==O?void 0:O.affixWrapper,{ref:P}),s&&u.createElement("span",{className:i()("".concat(n,"-prefix"),null==Z?void 0:Z.prefix),style:null==j?void 0:j.prefix},s),(0,u.cloneElement)(t,{value:w,hidden:null}),L)}if((0,c.He)(e)){var V="".concat(n,"-group"),H="".concat(V,"-addon"),D=i()("".concat(n,"-wrapper"),V,null==E?void 0:E.wrapper),W=i()("".concat(n,"-group-wrapper"),v,null==E?void 0:E.group);return u.createElement(z,{className:W,style:m,hidden:$},u.createElement(R,{className:D},d&&u.createElement(A,{className:H},d),(0,u.cloneElement)(I,{hidden:null}),p&&u.createElement(A,{className:H},p)))}return I},d=n(74902),p=n(97685),v=n(45987),m=n(21770),g=n(98423),b=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","type","classes","classNames","styles"],x=(0,u.forwardRef)(function(e,t){var n,s=e.autoComplete,x=e.onChange,y=e.onFocus,h=e.onBlur,w=e.onPressEnter,C=e.onKeyDown,$=e.prefixCls,E=void 0===$?"rc-input":$,Z=e.disabled,O=e.htmlSize,j=e.className,S=e.maxLength,N=e.suffix,z=e.showCount,R=e.type,A=e.classes,P=e.classNames,I=e.styles,k=(0,v.Z)(e,b),M=(0,m.Z)(e.defaultValue,{value:e.value}),B=(0,p.Z)(M,2),T=B[0],F=B[1],L=(0,u.useState)(!1),V=(0,p.Z)(L,2),H=V[0],D=V[1],W=(0,u.useRef)(null),_=function(e){W.current&&(0,c.nH)(W.current,e)};return(0,u.useImperativeHandle)(t,function(){return{focus:_,blur:function(){var e;null===(e=W.current)||void 0===e||e.blur()},setSelectionRange:function(e,t,n){var r;null===(r=W.current)||void 0===r||r.setSelectionRange(e,t,n)},select:function(){var e;null===(e=W.current)||void 0===e||e.select()},input:W.current}}),(0,u.useEffect)(function(){D(function(e){return(!e||!Z)&&e})},[Z]),u.createElement(f,(0,r.Z)({},k,{prefixCls:E,className:j,inputElement:(n=(0,g.Z)(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","classes","htmlSize","styles","classNames"]),u.createElement("input",(0,r.Z)({autoComplete:s},n,{onChange:function(t){void 0===e.value&&F(t.target.value),W.current&&(0,c.rJ)(W.current,t,x)},onFocus:function(e){D(!0),null==y||y(e)},onBlur:function(e){D(!1),null==h||h(e)},onKeyDown:function(e){w&&"Enter"===e.key&&w(e),null==C||C(e)},className:i()(E,(0,a.Z)({},"".concat(E,"-disabled"),Z),null==P?void 0:P.input),style:null==I?void 0:I.input,ref:W,size:O,type:void 0===R?"text":R}))),handleReset:function(e){F(""),_(),W.current&&(0,c.rJ)(W.current,e,x)},value:(0,c.D7)(T),focused:H,triggerFocus:_,suffix:function(){var e=Number(S)>0;if(N||z){var t=(0,c.D7)(T),n=(0,d.Z)(t).length,r="object"===(0,o.Z)(z)?z.formatter({value:t,count:n,maxLength:S}):"".concat(n).concat(e?" / ".concat(S):"");return u.createElement(u.Fragment,null,!!z&&u.createElement("span",{className:i()("".concat(E,"-show-count-suffix"),(0,a.Z)({},"".concat(E,"-show-count-has-suffix"),!!N),null==P?void 0:P.count),style:(0,l.Z)({},null==I?void 0:I.count)},r),N)}return null}(),disabled:Z,classes:A,classNames:P,styles:I}))})},87887:function(e,t,n){function r(e){return!!(e.addonBefore||e.addonAfter)}function l(e){return!!(e.prefix||e.suffix||e.allowClear)}function a(e,t,n,r){if(n){var l=t;if("click"===t.type){var a=e.cloneNode(!0);l=Object.create(t,{target:{value:a},currentTarget:{value:a}}),a.value="",n(l);return}if(void 0!==r){l=Object.create(t,{target:{value:e},currentTarget:{value:e}}),e.value=r,n(l);return}n(l)}}function o(e,t){if(e){e.focus(t);var n=(t||{}).cursor;if(n){var r=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(r,r);break;default:e.setSelectionRange(0,r)}}}}function s(e){return null==e?"":String(e)}n.d(t,{D7:function(){return s},He:function(){return r},X3:function(){return l},nH:function(){return o},rJ:function(){return a}})}}]); \ No newline at end of file diff --git a/dbgpt/app/static/_next/static/chunks/234-42f62dc360b2d9e4.js b/dbgpt/app/static/_next/static/chunks/234-42f62dc360b2d9e4.js new file mode 100644 index 000000000..3aed3421d --- /dev/null +++ b/dbgpt/app/static/_next/static/chunks/234-42f62dc360b2d9e4.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[234],{74627:function(e,r,t){t.d(r,{Z:function(){return w}});var o=t(94184),n=t.n(o),l=t(67294);let a=e=>e?"function"==typeof e?e():e:null;var i=t(33603),c=t(53124),s=t(83062),p=t(92419),d=t(14747),u=t(50438),g=t(77786),b=t(8796),m=t(67968),f=t(45503);let y=e=>{let{componentCls:r,popoverColor:t,minWidth:o,fontWeightStrong:n,popoverPadding:l,boxShadowSecondary:a,colorTextHeading:i,borderRadiusLG:c,zIndexPopup:s,marginXS:p,colorBgElevated:u,popoverBg:b}=e;return[{[r]:Object.assign(Object.assign({},(0,d.Wf)(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:s,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":u,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${r}-content`]:{position:"relative"},[`${r}-inner`]:{backgroundColor:b,backgroundClip:"padding-box",borderRadius:c,boxShadow:a,padding:l},[`${r}-title`]:{minWidth:o,marginBottom:p,color:i,fontWeight:n},[`${r}-inner-content`]:{color:t}})},(0,g.ZP)(e,{colorBg:"var(--antd-arrow-background-color)"}),{[`${r}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${r}-content`]:{display:"inline-block"}}}]},v=e=>{let{componentCls:r}=e;return{[r]:b.i.map(t=>{let o=e[`${t}6`];return{[`&${r}-${t}`]:{"--antd-arrow-background-color":o,[`${r}-inner`]:{backgroundColor:o},[`${r}-arrow`]:{background:"transparent"}}}})}},$=e=>{let{componentCls:r,lineWidth:t,lineType:o,colorSplit:n,paddingSM:l,controlHeight:a,fontSize:i,lineHeight:c,padding:s}=e,p=a-Math.round(i*c);return{[r]:{[`${r}-inner`]:{padding:0},[`${r}-title`]:{margin:0,padding:`${p/2}px ${s}px ${p/2-t}px`,borderBottom:`${t}px ${o} ${n}`},[`${r}-inner-content`]:{padding:`${l}px ${s}px`}}}};var C=(0,m.Z)("Popover",e=>{let{colorBgElevated:r,colorText:t,wireframe:o}=e,n=(0,f.TS)(e,{popoverPadding:12,popoverBg:r,popoverColor:t});return[y(n),v(n),o&&$(n),(0,u._y)(n,"zoom-big")]},e=>({width:177,minWidth:177,zIndexPopup:e.zIndexPopupBase+30}),{deprecatedTokens:[["width","minWidth"]]}),h=function(e,r){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&0>r.indexOf(o)&&(t[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,o=Object.getOwnPropertySymbols(e);nr.indexOf(o[n])&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(t[o[n]]=e[o[n]]);return t};let x=(e,r,t)=>{if(r||t)return l.createElement(l.Fragment,null,r&&l.createElement("div",{className:`${e}-title`},a(r)),l.createElement("div",{className:`${e}-inner-content`},a(t)))},O=e=>{let{hashId:r,prefixCls:t,className:o,style:a,placement:i="top",title:c,content:s,children:d}=e;return l.createElement("div",{className:n()(r,t,`${t}-pure`,`${t}-placement-${i}`,o),style:a},l.createElement("div",{className:`${t}-arrow`}),l.createElement(p.G,Object.assign({},e,{className:r,prefixCls:t}),d||x(t,c,s)))};var k=function(e,r){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&0>r.indexOf(o)&&(t[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,o=Object.getOwnPropertySymbols(e);nr.indexOf(o[n])&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(t[o[n]]=e[o[n]]);return t};let E=e=>{let{title:r,content:t,prefixCls:o}=e;return l.createElement(l.Fragment,null,r&&l.createElement("div",{className:`${o}-title`},a(r)),l.createElement("div",{className:`${o}-inner-content`},a(t)))},S=l.forwardRef((e,r)=>{let{prefixCls:t,title:o,content:a,overlayClassName:p,placement:d="top",trigger:u="hover",mouseEnterDelay:g=.1,mouseLeaveDelay:b=.1,overlayStyle:m={}}=e,f=k(e,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:y}=l.useContext(c.E_),v=y("popover",t),[$,h]=C(v),x=y(),O=n()(p,h);return $(l.createElement(s.Z,Object.assign({placement:d,trigger:u,mouseEnterDelay:g,mouseLeaveDelay:b,overlayStyle:m},f,{prefixCls:v,overlayClassName:O,ref:r,overlay:o||a?l.createElement(E,{prefixCls:v,title:o,content:a}):null,transitionName:(0,i.m)(x,"zoom-big",f.transitionName),"data-popover-inject":!0})))});S._InternalPanelDoNotUseOrYouWillBeFired=e=>{let{prefixCls:r}=e,t=h(e,["prefixCls"]),{getPrefixCls:o}=l.useContext(c.E_),n=o("popover",r),[a,i]=C(n);return a(l.createElement(O,Object.assign({},t,{prefixCls:n,hashId:i})))};var w=S},66309:function(e,r,t){t.d(r,{Z:function(){return S}});var o=t(67294),n=t(97937),l=t(94184),a=t.n(l),i=t(98787),c=t(69760),s=t(45353),p=t(53124),d=t(14747),u=t(45503),g=t(67968);let b=e=>{let{paddingXXS:r,lineWidth:t,tagPaddingHorizontal:o,componentCls:n}=e,l=o-t;return{[n]:Object.assign(Object.assign({},(0,d.Wf)(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:l,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${n}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${n}-close-icon`]:{marginInlineStart:r-t,color:e.colorTextDescription,fontSize:e.tagIconSize,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${n}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${n}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:l}}),[`${n}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},m=e=>{let{lineWidth:r,fontSizeIcon:t}=e,o=e.fontSizeSM,n=`${e.lineHeightSM*o}px`,l=(0,u.TS)(e,{tagFontSize:o,tagLineHeight:n,tagIconSize:t-2*r,tagPaddingHorizontal:8,tagBorderlessBg:e.colorFillTertiary});return l},f=e=>({defaultBg:e.colorFillQuaternary,defaultColor:e.colorText});var y=(0,g.Z)("Tag",e=>{let r=m(e);return b(r)},f),v=function(e,r){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&0>r.indexOf(o)&&(t[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,o=Object.getOwnPropertySymbols(e);nr.indexOf(o[n])&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(t[o[n]]=e[o[n]]);return t},$=t(98719);let C=e=>(0,$.Z)(e,(r,t)=>{let{textColor:o,lightBorderColor:n,lightColor:l,darkColor:a}=t;return{[`${e.componentCls}-${r}`]:{color:o,background:l,borderColor:n,"&-inverse":{color:e.colorTextLightSolid,background:a,borderColor:a},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}});var h=(0,g.b)(["Tag","preset"],e=>{let r=m(e);return C(r)},f);let x=(e,r,t)=>{let o=function(e){if("string"!=typeof e)return e;let r=e.charAt(0).toUpperCase()+e.slice(1);return r}(t);return{[`${e.componentCls}-${r}`]:{color:e[`color${t}`],background:e[`color${o}Bg`],borderColor:e[`color${o}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}};var O=(0,g.b)(["Tag","status"],e=>{let r=m(e);return[x(r,"success","Success"),x(r,"processing","Info"),x(r,"error","Error"),x(r,"warning","Warning")]},f),k=function(e,r){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&0>r.indexOf(o)&&(t[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,o=Object.getOwnPropertySymbols(e);nr.indexOf(o[n])&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(t[o[n]]=e[o[n]]);return t};let E=o.forwardRef((e,r)=>{let{prefixCls:t,className:l,rootClassName:d,style:u,children:g,icon:b,color:m,onClose:f,closeIcon:v,closable:$,bordered:C=!0}=e,x=k(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:E,direction:S,tag:w}=o.useContext(p.E_),[j,P]=o.useState(!0);o.useEffect(()=>{"visible"in x&&P(x.visible)},[x.visible]);let N=(0,i.o2)(m),T=(0,i.yT)(m),I=N||T,B=Object.assign(Object.assign({backgroundColor:m&&!I?m:void 0},null==w?void 0:w.style),u),z=E("tag",t),[_,W]=y(z),Z=a()(z,null==w?void 0:w.className,{[`${z}-${m}`]:I,[`${z}-has-color`]:m&&!I,[`${z}-hidden`]:!j,[`${z}-rtl`]:"rtl"===S,[`${z}-borderless`]:!C},l,d,W),D=e=>{e.stopPropagation(),null==f||f(e),e.defaultPrevented||P(!1)},[,F]=(0,c.Z)($,v,e=>null===e?o.createElement(n.Z,{className:`${z}-close-icon`,onClick:D}):o.createElement("span",{className:`${z}-close-icon`,onClick:D},e),null,!1),L="function"==typeof x.onClick||g&&"a"===g.type,H=b||null,M=H?o.createElement(o.Fragment,null,H,g&&o.createElement("span",null,g)):g,A=o.createElement("span",Object.assign({},x,{ref:r,className:Z,style:B}),M,F,N&&o.createElement(h,{key:"preset",prefixCls:z}),T&&o.createElement(O,{key:"status",prefixCls:z}));return _(L?o.createElement(s.Z,{component:"Tag"},A):A)});E.CheckableTag=e=>{let{prefixCls:r,className:t,checked:n,onChange:l,onClick:i}=e,c=v(e,["prefixCls","className","checked","onChange","onClick"]),{getPrefixCls:s}=o.useContext(p.E_),d=s("tag",r),[u,g]=y(d),b=a()(d,`${d}-checkable`,{[`${d}-checkable-checked`]:n},t,g);return u(o.createElement("span",Object.assign({},c,{className:b,onClick:e=>{null==l||l(!n),null==i||i(e)}})))};var S=E}}]); \ No newline at end of file diff --git a/dbgpt/app/static/_next/static/chunks/270-2f094a936d056513.js b/dbgpt/app/static/_next/static/chunks/270-2f094a936d056513.js deleted file mode 100644 index 448d44730..000000000 --- a/dbgpt/app/static/_next/static/chunks/270-2f094a936d056513.js +++ /dev/null @@ -1,16 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[270],{6171:function(e,t,n){n.d(t,{Z:function(){return l}});var i=n(87462),r=n(67294),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},a=n(84089),l=r.forwardRef(function(e,t){return r.createElement(a.Z,(0,i.Z)({},e,{ref:t,icon:o}))})},38780:function(e,t){t.Z=function(){let e=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let t=1;t{let i=n[t];void 0!==i&&(e[t]=i)})}return e}},66367:function(e,t,n){function i(e){return null!=e&&e===e.window}function r(e,t){var n,r;if("undefined"==typeof window)return 0;let o=t?"scrollTop":"scrollLeft",a=0;return i(e)?a=e[t?"pageYOffset":"pageXOffset"]:e instanceof Document?a=e.documentElement[o]:e instanceof HTMLElement?a=e[o]:e&&(a=e[o]),e&&!i(e)&&"number"!=typeof a&&(a=null===(r=(null!==(n=e.ownerDocument)&&void 0!==n?n:e).documentElement)||void 0===r?void 0:r[o]),a}n.d(t,{F:function(){return i},Z:function(){return r}})},58375:function(e,t,n){n.d(t,{Z:function(){return o}});var i=n(75164),r=n(66367);function o(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{getContainer:n=()=>window,callback:o,duration:a=450}=t,l=n(),c=(0,r.Z)(l,!0),s=Date.now(),u=()=>{let t=Date.now(),n=t-s,p=function(e,t,n,i){let r=n-t;return(e/=i/2)<1?r/2*e*e*e+t:r/2*((e-=2)*e*e+2)+t}(n>a?a:n,c,e,a);(0,r.F)(l)?l.scrollTo(window.pageXOffset,p):l instanceof Document||"HTMLDocument"===l.constructor.name?l.documentElement.scrollTop=p:l.scrollTop=p,n0)||void 0===arguments[0]||arguments[0],t=(0,i.useRef)({}),n=(0,o.Z)(),l=(0,a.Z)();return(0,r.Z)(()=>{let i=l.subscribe(i=>{t.current=i,e&&n()});return()=>l.unsubscribe(i)},[]),t.current}},81647:function(e,t,n){n.d(t,{Z:function(){return F}});var i=n(87462),r=n(67294),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},a=n(84089),l=r.forwardRef(function(e,t){return r.createElement(a.Z,(0,i.Z)({},e,{ref:t,icon:o}))}),c={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},s=r.forwardRef(function(e,t){return r.createElement(a.Z,(0,i.Z)({},e,{ref:t,icon:c}))}),u=n(6171),p=n(18073),m=n(94184),d=n.n(m),g=n(4942),h=n(1413),v=n(15671),b=n(43144),f=n(32531),x=n(73568),C=n(64217),S={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},$=function(e){(0,f.Z)(n,e);var t=(0,x.Z)(n);function n(){var e;(0,v.Z)(this,n);for(var i=arguments.length,r=Array(i),o=0;o=0||t.relatedTarget.className.indexOf("".concat(o,"-item"))>=0)||r(e.getValidValue()))},e.go=function(t){""!==e.state.goInputText&&(t.keyCode===S.ENTER||"click"===t.type)&&(e.setState({goInputText:""}),e.props.quickGo(e.getValidValue()))},e}return(0,b.Z)(n,[{key:"getPageSizeOptions",value:function(){var e=this.props,t=e.pageSize,n=e.pageSizeOptions;return n.some(function(e){return e.toString()===t.toString()})?n:n.concat([t.toString()]).sort(function(e,t){return(Number.isNaN(Number(e))?0:Number(e))-(Number.isNaN(Number(t))?0:Number(t))})}},{key:"render",value:function(){var e=this,t=this.props,n=t.pageSize,i=t.locale,o=t.rootPrefixCls,a=t.changeSize,l=t.quickGo,c=t.goButton,s=t.selectComponentClass,u=t.buildOptionText,p=t.selectPrefixCls,m=t.disabled,d=this.state.goInputText,g="".concat(o,"-options"),h=null,v=null,b=null;if(!a&&!l)return null;var f=this.getPageSizeOptions();if(a&&s){var x=f.map(function(t,n){return r.createElement(s.Option,{key:n,value:t.toString()},(u||e.buildOptionText)(t))});h=r.createElement(s,{disabled:m,prefixCls:p,showSearch:!1,className:"".concat(g,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(n||f[0]).toString(),onChange:this.changeSize,getPopupContainer:function(e){return e.parentNode},"aria-label":i.page_size,defaultOpen:!1},x)}return l&&(c&&(b="boolean"==typeof c?r.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:m,className:"".concat(g,"-quick-jumper-button")},i.jump_to_confirm):r.createElement("span",{onClick:this.go,onKeyUp:this.go},c)),v=r.createElement("div",{className:"".concat(g,"-quick-jumper")},i.jump_to,r.createElement("input",{disabled:m,type:"text",value:d,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":i.page}),i.page,b)),r.createElement("li",{className:"".concat(g)},h,v)}}]),n}(r.Component);$.defaultProps={pageSizeOptions:["10","20","50","100"]};var k=function(e){var t,n=e.rootPrefixCls,i=e.page,o=e.active,a=e.className,l=e.showTitle,c=e.onClick,s=e.onKeyPress,u=e.itemRender,p="".concat(n,"-item"),m=d()(p,"".concat(p,"-").concat(i),(t={},(0,g.Z)(t,"".concat(p,"-active"),o),(0,g.Z)(t,"".concat(p,"-disabled"),!i),(0,g.Z)(t,e.className,a),t)),h=u(i,"page",r.createElement("a",{rel:"nofollow"},i));return h?r.createElement("li",{title:l?i.toString():null,className:m,onClick:function(){c(i)},onKeyPress:function(e){s(e,c,i)},tabIndex:0},h):null};function y(){}function E(e){var t=Number(e);return"number"==typeof t&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function N(e,t,n){var i=void 0===e?t.pageSize:e;return Math.floor((n.total-1)/i)+1}var I=function(e){(0,f.Z)(n,e);var t=(0,x.Z)(n);function n(e){(0,v.Z)(this,n),(i=t.call(this,e)).paginationNode=r.createRef(),i.getJumpPrevPage=function(){return Math.max(1,i.state.current-(i.props.showLessItems?3:5))},i.getJumpNextPage=function(){return Math.min(N(void 0,i.state,i.props),i.state.current+(i.props.showLessItems?3:5))},i.getItemIcon=function(e,t){var n=i.props.prefixCls,o=e||r.createElement("button",{type:"button","aria-label":t,className:"".concat(n,"-item-link")});return"function"==typeof e&&(o=r.createElement(e,(0,h.Z)({},i.props))),o},i.isValid=function(e){var t=i.props.total;return E(e)&&e!==i.state.current&&E(t)&&t>0},i.shouldDisplayQuickJumper=function(){var e=i.props,t=e.showQuickJumper;return!(e.total<=i.state.pageSize)&&t},i.handleKeyDown=function(e){(e.keyCode===S.ARROW_UP||e.keyCode===S.ARROW_DOWN)&&e.preventDefault()},i.handleKeyUp=function(e){var t=i.getValidValue(e);t!==i.state.currentInputValue&&i.setState({currentInputValue:t}),e.keyCode===S.ENTER?i.handleChange(t):e.keyCode===S.ARROW_UP?i.handleChange(t-1):e.keyCode===S.ARROW_DOWN&&i.handleChange(t+1)},i.handleBlur=function(e){var t=i.getValidValue(e);i.handleChange(t)},i.changePageSize=function(e){var t=i.state.current,n=N(e,i.state,i.props);t=t>n?n:t,0===n&&(t=i.state.current),"number"!=typeof e||("pageSize"in i.props||i.setState({pageSize:e}),"current"in i.props||i.setState({current:t,currentInputValue:t})),i.props.onShowSizeChange(t,e),"onChange"in i.props&&i.props.onChange&&i.props.onChange(t,e)},i.handleChange=function(e){var t=i.props,n=t.disabled,r=t.onChange,o=i.state,a=o.pageSize,l=o.current,c=o.currentInputValue;if(i.isValid(e)&&!n){var s=N(void 0,i.state,i.props),u=e;return e>s?u=s:e<1&&(u=1),"current"in i.props||i.setState({current:u}),u!==c&&i.setState({currentInputValue:u}),r(u,a),u}return l},i.prev=function(){i.hasPrev()&&i.handleChange(i.state.current-1)},i.next=function(){i.hasNext()&&i.handleChange(i.state.current+1)},i.jumpPrev=function(){i.handleChange(i.getJumpPrevPage())},i.jumpNext=function(){i.handleChange(i.getJumpNextPage())},i.hasPrev=function(){return i.state.current>1},i.hasNext=function(){return i.state.current2?n-2:0),r=2;r=n?n:Number(t)}},{key:"getShowSizeChanger",value:function(){var e=this.props,t=e.showSizeChanger,n=e.total,i=e.totalBoundaryShowSizeChanger;return void 0!==t?t:n>i}},{key:"render",value:function(){var e=this.props,t=e.prefixCls,n=e.className,o=e.style,a=e.disabled,l=e.hideOnSinglePage,c=e.total,s=e.locale,u=e.showQuickJumper,p=e.showLessItems,m=e.showTitle,h=e.showTotal,v=e.simple,b=e.itemRender,f=e.showPrevNextJumpers,x=e.jumpPrevIcon,S=e.jumpNextIcon,y=e.selectComponentClass,E=e.selectPrefixCls,I=e.pageSizeOptions,P=this.state,z=P.current,O=P.pageSize,w=P.currentInputValue;if(!0===l&&c<=O)return null;var T=N(void 0,this.state,this.props),j=[],B=null,M=null,Z=null,D=null,_=null,A=u&&u.goButton,R=p?1:2,H=z-1>0?z-1:0,V=z+1c?c:z*O]));if(v){A&&(_="boolean"==typeof A?r.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},s.jump_to_confirm):r.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},A),_=r.createElement("li",{title:m?"".concat(s.jump_to).concat(z,"/").concat(T):null,className:"".concat(t,"-simple-pager")},_));var W=this.renderPrev(H);return r.createElement("ul",(0,i.Z)({className:d()(t,"".concat(t,"-simple"),(0,g.Z)({},"".concat(t,"-disabled"),a),n),style:o,ref:this.paginationNode},K),L,W?r.createElement("li",{title:m?s.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:d()("".concat(t,"-prev"),(0,g.Z)({},"".concat(t,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},W):null,r.createElement("li",{title:m?"".concat(z,"/").concat(T):null,className:"".concat(t,"-simple-pager")},r.createElement("input",{type:"text",value:w,disabled:a,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),r.createElement("span",{className:"".concat(t,"-slash")},"/"),T),r.createElement("li",{title:m?s.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:d()("".concat(t,"-next"),(0,g.Z)({},"".concat(t,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(V)),_)}if(T<=3+2*R){var J={locale:s,rootPrefixCls:t,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:m,itemRender:b};T||j.push(r.createElement(k,(0,i.Z)({},J,{key:"noPager",page:1,className:"".concat(t,"-item-disabled")})));for(var X=1;X<=T;X+=1){var U=z===X;j.push(r.createElement(k,(0,i.Z)({},J,{key:X,page:X,active:U})))}}else{var G=p?s.prev_3:s.prev_5,F=p?s.next_3:s.next_5,q=b(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(x,"prev page")),Q=b(this.getJumpNextPage(),"jump-next",this.getItemIcon(S,"next page"));f&&(B=q?r.createElement("li",{title:m?G:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:d()("".concat(t,"-jump-prev"),(0,g.Z)({},"".concat(t,"-jump-prev-custom-icon"),!!x))},q):null,M=Q?r.createElement("li",{title:m?F:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:d()("".concat(t,"-jump-next"),(0,g.Z)({},"".concat(t,"-jump-next-custom-icon"),!!S))},Q):null),D=r.createElement(k,{locale:s,last:!0,rootPrefixCls:t,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:T,page:T,active:!1,showTitle:m,itemRender:b}),Z=r.createElement(k,{locale:s,rootPrefixCls:t,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:m,itemRender:b});var Y=Math.max(1,z-R),ee=Math.min(z+R,T);z-1<=R&&(ee=1+2*R),T-z<=R&&(Y=T-2*R);for(var et=Y;et<=ee;et+=1){var en=z===et;j.push(r.createElement(k,{locale:s,rootPrefixCls:t,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:et,page:et,active:en,showTitle:m,itemRender:b}))}z-1>=2*R&&3!==z&&(j[0]=(0,r.cloneElement)(j[0],{className:"".concat(t,"-item-after-jump-prev")}),j.unshift(B)),T-z>=2*R&&z!==T-2&&(j[j.length-1]=(0,r.cloneElement)(j[j.length-1],{className:"".concat(t,"-item-before-jump-next")}),j.push(M)),1!==Y&&j.unshift(Z),ee!==T&&j.push(D)}var ei=!this.hasPrev()||!T,er=!this.hasNext()||!T,eo=this.renderPrev(H),ea=this.renderNext(V);return r.createElement("ul",(0,i.Z)({className:d()(t,n,(0,g.Z)({},"".concat(t,"-disabled"),a)),style:o,ref:this.paginationNode},K),L,eo?r.createElement("li",{title:m?s.prev_page:null,onClick:this.prev,tabIndex:ei?null:0,onKeyPress:this.runIfEnterPrev,className:d()("".concat(t,"-prev"),(0,g.Z)({},"".concat(t,"-disabled"),ei)),"aria-disabled":ei},eo):null,j,ea?r.createElement("li",{title:m?s.next_page:null,onClick:this.next,tabIndex:er?null:0,onKeyPress:this.runIfEnterNext,className:d()("".concat(t,"-next"),(0,g.Z)({},"".concat(t,"-disabled"),er)),"aria-disabled":er},ea):null,r.createElement($,{disabled:a,locale:s,rootPrefixCls:t,selectComponentClass:y,selectPrefixCls:E,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:z,pageSize:O,pageSizeOptions:I,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:A}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n={};if("current"in e&&(n.current=e.current,e.current!==t.current&&(n.currentInputValue=n.current)),"pageSize"in e&&e.pageSize!==t.pageSize){var i=t.current,r=N(e.pageSize,t,e);i=i>r?r:i,"current"in e||(n.current=i,n.currentInputValue=i),n.pageSize=e.pageSize}return n}}]),n}(r.Component);I.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:y,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:y,locale:{items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"},style:{},itemRender:function(e,t,n){return n},totalBoundaryShowSizeChanger:50};var P=n(62906),z=n(53124),O=n(98675),w=n(25378),T=n(10110),j=n(51009);let B=e=>r.createElement(j.default,Object.assign({},e,{showSearch:!0,size:"small"})),M=e=>r.createElement(j.default,Object.assign({},e,{showSearch:!0,size:"middle"}));B.Option=j.default.Option,M.Option=j.default.Option;var Z=n(47673),D=n(14747),_=n(67968),A=n(45503);let R=e=>{let{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}},[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{[`&${t}-disabled ${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},H=e=>{let{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:`${e.itemSizeSM}px`},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:`${e.itemSizeSM-2}px`},[`&${t}-mini:not(${t}-disabled) ${t}-item:not(${t}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:`${e.itemSizeSM}px`},[`&${t}-mini:not(${t}-disabled)`]:{[`${t}-prev, ${t}-next`]:{[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}}},[` - &${t}-mini ${t}-prev ${t}-item-link, - &${t}-mini ${t}-next ${t}-item-link - `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:`${e.itemSizeSM}px`}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:`${e.itemSizeSM}px`},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:`${e.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,Z.x0)(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},V=e=>{let{componentCls:t}=e;return{[` - &${t}-simple ${t}-prev, - &${t}-simple ${t}-next - `]:{height:e.itemSizeSM,lineHeight:`${e.itemSizeSM}px`,verticalAlign:"top",[`${t}-item-link`]:{height:e.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.itemSizeSM,lineHeight:`${e.itemSizeSM}px`}}},[`&${t}-simple ${t}-simple-pager`]:{display:"inline-block",height:e.itemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:e.marginXS,padding:`0 ${e.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:"none",transition:`border-color ${e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${e.inputOutlineOffset}px 0 ${e.controlOutlineWidth}px ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},K=e=>{let{componentCls:t}=e;return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[` - ${t}-prev, - ${t}-jump-prev, - ${t}-jump-next - `]:{marginInlineEnd:e.marginXS},[` - ${t}-prev, - ${t}-next, - ${t}-jump-prev, - ${t}-jump-next - `]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:`${e.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:`${e.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},(0,Z.ik)(e)),{width:1.25*e.controlHeightLG,height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},L=e=>{let{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:`${e.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${e.paginationItemPaddingInline}px`,color:e.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}}}},W=e=>{let{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,D.Wf)(e)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.itemSize,marginInlineEnd:e.marginXS,lineHeight:`${e.itemSize-2}px`,verticalAlign:"middle"}}),L(e)),K(e)),V(e)),H(e)),R(e)),{[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:"none"}}}),[`&${e.componentCls}-rtl`]:{direction:"rtl"}}},J=e=>{let{componentCls:t}=e;return{[`${t}${t}-disabled:not(${t}-mini)`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}:not(${t}-mini)`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},X=e=>{let{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},(0,D.Qy)(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},(0,D.oN)(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Object.assign({},(0,D.oN)(e))}}}};var U=(0,_.Z)("Pagination",e=>{let t=(0,A.TS)(e,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:e.marginXXS/2,paginationMiniQuickJumperInputWidth:1.1*e.controlHeightLG,paginationItemPaddingInline:1.5*e.marginXXS,paginationEllipsisLetterSpacing:e.marginXXS/2,paginationSlashMarginInlineStart:e.marginXXS,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,Z.e5)(e));return[W(t),X(t),e.wireframe&&J(t)]},e=>({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBgContainer,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0})),G=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,i=Object.getOwnPropertySymbols(e);rt.indexOf(i[r])&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]]);return n},F=e=>{let{prefixCls:t,selectPrefixCls:n,className:i,rootClassName:o,style:a,size:c,locale:m,selectComponentClass:g,responsive:h,showSizeChanger:v}=e,b=G(e,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:f}=(0,w.Z)(h),{getPrefixCls:x,direction:C,pagination:S={}}=r.useContext(z.E_),$=x("pagination",t),[k,y]=U($),E=null!=v?v:S.showSizeChanger,N=r.useMemo(()=>{let e=r.createElement("span",{className:`${$}-item-ellipsis`},"•••"),t=r.createElement("button",{className:`${$}-item-link`,type:"button",tabIndex:-1},"rtl"===C?r.createElement(p.Z,null):r.createElement(u.Z,null)),n=r.createElement("button",{className:`${$}-item-link`,type:"button",tabIndex:-1},"rtl"===C?r.createElement(u.Z,null):r.createElement(p.Z,null)),i=r.createElement("a",{className:`${$}-item-link`},r.createElement("div",{className:`${$}-item-container`},"rtl"===C?r.createElement(s,{className:`${$}-item-link-icon`}):r.createElement(l,{className:`${$}-item-link-icon`}),e)),o=r.createElement("a",{className:`${$}-item-link`},r.createElement("div",{className:`${$}-item-container`},"rtl"===C?r.createElement(l,{className:`${$}-item-link-icon`}):r.createElement(s,{className:`${$}-item-link-icon`}),e));return{prevIcon:t,nextIcon:n,jumpPrevIcon:i,jumpNextIcon:o}},[C,$]),[j]=(0,T.Z)("Pagination",P.Z),Z=Object.assign(Object.assign({},j),m),D=(0,O.Z)(c),_="small"===D||!!(f&&!D&&h),A=x("select",n),R=d()({[`${$}-mini`]:_,[`${$}-rtl`]:"rtl"===C},null==S?void 0:S.className,i,o,y),H=Object.assign(Object.assign({},null==S?void 0:S.style),a);return k(r.createElement(I,Object.assign({},N,b,{style:H,prefixCls:$,selectPrefixCls:A,className:R,selectComponentClass:g||(_?B:M),locale:Z,showSizeChanger:E})))}}}]); \ No newline at end of file diff --git a/dbgpt/app/static/_next/static/chunks/412-dfe9c712a36114e6.js b/dbgpt/app/static/_next/static/chunks/412-dfe9c712a36114e6.js deleted file mode 100644 index 3353a4beb..000000000 --- a/dbgpt/app/static/_next/static/chunks/412-dfe9c712a36114e6.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[412],{27496:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(87462),o=n(67294),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M931.4 498.9L94.9 79.5c-3.4-1.7-7.3-2.1-11-1.2a15.99 15.99 0 00-11.7 19.3l86.2 352.2c1.3 5.3 5.2 9.6 10.4 11.3l147.7 50.7-147.6 50.7c-5.2 1.8-9.1 6-10.3 11.3L72.2 926.5c-.9 3.7-.5 7.6 1.2 10.9 3.9 7.9 13.5 11.1 21.5 7.2l836.5-417c3.1-1.5 5.6-4.1 7.2-7.1 3.9-8 .7-17.6-7.2-21.6zM170.8 826.3l50.3-205.6 295.2-101.3c2.3-.8 4.2-2.6 5-5 1.4-4.2-.8-8.7-5-10.2L221.1 403 171 198.2l628 314.9-628.2 313.2z"}}]},name:"send",theme:"outlined"},i=n(84089),l=o.forwardRef(function(e,t){return o.createElement(i.Z,(0,r.Z)({},e,{ref:t,icon:a}))})},1375:function(e,t,n){async function r(e,t){let n;let r=e.getReader();for(;!(n=await r.read()).done;)t(n.value)}function o(){return{data:"",event:"",id:"",retry:void 0}}n.d(t,{a:function(){return i},L:function(){return c}});var a=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let i="text/event-stream",l="last-event-id";function c(e,t){var{signal:n,headers:c,onopen:d,onmessage:m,onclose:u,onerror:p,openWhenHidden:g,fetch:f}=t,$=a(t,["signal","headers","onopen","onmessage","onclose","onerror","openWhenHidden","fetch"]);return new Promise((t,a)=>{let b;let h=Object.assign({},c);function y(){b.abort(),document.hidden||w()}h.accept||(h.accept=i),g||document.addEventListener("visibilitychange",y);let v=1e3,x=0;function E(){document.removeEventListener("visibilitychange",y),window.clearTimeout(x),b.abort()}null==n||n.addEventListener("abort",()=>{E(),t()});let O=null!=f?f:window.fetch,S=null!=d?d:s;async function w(){var n,i;b=new AbortController;try{let n,a,c,s;let d=await O(e,Object.assign(Object.assign({},$),{headers:h,signal:b.signal}));await S(d),await r(d.body,(i=function(e,t,n){let r=o(),a=new TextDecoder;return function(i,l){if(0===i.length)null==n||n(r),r=o();else if(l>0){let n=a.decode(i.subarray(0,l)),o=l+(32===i[l+1]?2:1),c=a.decode(i.subarray(o));switch(n){case"data":r.data=r.data?r.data+"\n"+c:c;break;case"event":r.event=c;break;case"id":e(r.id=c);break;case"retry":let s=parseInt(c,10);isNaN(s)||t(r.retry=s)}}}}(e=>{e?h[l]=e:delete h[l]},e=>{v=e},m),s=!1,function(e){void 0===n?(n=e,a=0,c=-1):n=function(e,t){let n=new Uint8Array(e.length+t.length);return n.set(e),n.set(t,e.length),n}(n,e);let t=n.length,r=0;for(;a{let{icon:t,description:n,prefixCls:r,className:a}=e,i=o.createElement("div",{className:`${r}-icon`},o.createElement($,null));return o.createElement("div",{onClick:e.onClick,onFocus:e.onFocus,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,className:s()(a,`${r}-content`)},t||n?o.createElement(o.Fragment,null,t&&o.createElement("div",{className:`${r}-icon`},t),n&&o.createElement("div",{className:`${r}-description`},n)):i)});let h=o.createContext(void 0),{Provider:y}=h;var v=n(23183),x=n(14747),E=n(16932),O=n(93590),S=n(67968),w=n(45503),k=e=>0===e?0:e-Math.sqrt(Math.pow(e,2)/2);let C=e=>{let{componentCls:t,floatButtonSize:n,motionDurationSlow:r,motionEaseInOutCirc:o}=e,a=`${t}-group`,i=new v.E4("antFloatButtonMoveDownIn",{"0%":{transform:`translate3d(0, ${n}px, 0)`,transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),l=new v.E4("antFloatButtonMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:`translate3d(0, ${n}px, 0)`,transformOrigin:"0 0",opacity:0}});return[{[`${a}-wrap`]:Object.assign({},(0,O.R)(`${a}-wrap`,i,l,r,!0))},{[`${a}-wrap`]:{[` - &${a}-wrap-enter, - &${a}-wrap-appear - `]:{opacity:0,animationTimingFunction:o},[`&${a}-wrap-leave`]:{animationTimingFunction:o}}}]},j=e=>{let{antCls:t,componentCls:n,floatButtonSize:r,margin:o,borderRadiusLG:a,borderRadiusSM:i,badgeOffset:l,floatButtonBodyPadding:c}=e,s=`${n}-group`;return{[s]:Object.assign(Object.assign({},(0,x.Wf)(e)),{zIndex:99,display:"block",border:"none",position:"fixed",width:r,height:"auto",boxShadow:"none",minHeight:r,insetInlineEnd:e.floatButtonInsetInlineEnd,insetBlockEnd:e.floatButtonInsetBlockEnd,borderRadius:a,[`${s}-wrap`]:{zIndex:-1,display:"block",position:"relative",marginBottom:o},[`&${s}-rtl`]:{direction:"rtl"},[n]:{position:"static"}}),[`${s}-circle`]:{[`${n}-circle:not(:last-child)`]:{marginBottom:e.margin,[`${n}-body`]:{width:r,height:r,borderRadius:"50%"}}},[`${s}-square`]:{[`${n}-square`]:{borderRadius:0,padding:0,"&:first-child":{borderStartStartRadius:a,borderStartEndRadius:a},"&:last-child":{borderEndStartRadius:a,borderEndEndRadius:a},"&:not(:last-child)":{borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},[`${t}-badge`]:{[`${t}-badge-count`]:{top:-(c+l),insetInlineEnd:-(c+l)}}},[`${s}-wrap`]:{display:"block",borderRadius:a,boxShadow:e.boxShadowSecondary,[`${n}-square`]:{boxShadow:"none",marginTop:0,borderRadius:0,padding:c,"&:first-child":{borderStartStartRadius:a,borderStartEndRadius:a},"&:last-child":{borderEndStartRadius:a,borderEndEndRadius:a},"&:not(:last-child)":{borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},[`${n}-body`]:{width:e.floatButtonBodySize,height:e.floatButtonBodySize}}}},[`${s}-circle-shadow`]:{boxShadow:"none"},[`${s}-square-shadow`]:{boxShadow:e.boxShadowSecondary,[`${n}-square`]:{boxShadow:"none",padding:c,[`${n}-body`]:{width:e.floatButtonBodySize,height:e.floatButtonBodySize,borderRadius:i}}}}},B=e=>{let{antCls:t,componentCls:n,floatButtonBodyPadding:r,floatButtonIconSize:o,floatButtonSize:a,borderRadiusLG:i,badgeOffset:l,dotOffsetInSquare:c,dotOffsetInCircle:s}=e;return{[n]:Object.assign(Object.assign({},(0,x.Wf)(e)),{border:"none",position:"fixed",cursor:"pointer",zIndex:99,width:a,height:a,insetInlineEnd:e.floatButtonInsetInlineEnd,insetBlockEnd:e.floatButtonInsetBlockEnd,boxShadow:e.boxShadowSecondary,"&-pure":{position:"relative",inset:"auto"},"&:empty":{display:"none"},[`${t}-badge`]:{width:"100%",height:"100%",[`${t}-badge-count`]:{transform:"translate(0, 0)",transformOrigin:"center",top:-l,insetInlineEnd:-l}},[`${n}-body`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",transition:`all ${e.motionDurationMid}`,[`${n}-content`]:{overflow:"hidden",textAlign:"center",minHeight:a,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",padding:`${r/2}px ${r}px`,[`${n}-icon`]:{textAlign:"center",margin:"auto",width:o,fontSize:o,lineHeight:1}}}}),[`${n}-rtl`]:{direction:"rtl"},[`${n}-circle`]:{height:a,borderRadius:"50%",[`${t}-badge`]:{[`${t}-badge-dot`]:{top:s,insetInlineEnd:s}},[`${n}-body`]:{borderRadius:"50%"}},[`${n}-square`]:{height:"auto",minHeight:a,borderRadius:i,[`${t}-badge`]:{[`${t}-badge-dot`]:{top:c,insetInlineEnd:c}},[`${n}-body`]:{height:"auto",borderRadius:i}},[`${n}-default`]:{backgroundColor:e.floatButtonBackgroundColor,transition:`background-color ${e.motionDurationMid}`,[`${n}-body`]:{backgroundColor:e.floatButtonBackgroundColor,transition:`background-color ${e.motionDurationMid}`,"&:hover":{backgroundColor:e.colorFillContent},[`${n}-content`]:{[`${n}-icon`]:{color:e.colorText},[`${n}-description`]:{display:"flex",alignItems:"center",lineHeight:`${e.fontSizeLG}px`,color:e.colorText,fontSize:e.fontSizeSM}}}},[`${n}-primary`]:{backgroundColor:e.colorPrimary,[`${n}-body`]:{backgroundColor:e.colorPrimary,transition:`background-color ${e.motionDurationMid}`,"&:hover":{backgroundColor:e.colorPrimaryHover},[`${n}-content`]:{[`${n}-icon`]:{color:e.colorTextLightSolid},[`${n}-description`]:{display:"flex",alignItems:"center",lineHeight:`${e.fontSizeLG}px`,color:e.colorTextLightSolid,fontSize:e.fontSizeSM}}}}}};var N=(0,S.Z)("FloatButton",e=>{let{colorTextLightSolid:t,colorBgElevated:n,controlHeightLG:r,marginXXL:o,marginLG:a,fontSize:i,fontSizeIcon:l,controlItemBgHover:c,paddingXXS:s,borderRadiusLG:d}=e,m=(0,w.TS)(e,{floatButtonBackgroundColor:n,floatButtonColor:t,floatButtonHoverBackgroundColor:c,floatButtonFontSize:i,floatButtonIconSize:1.5*l,floatButtonSize:r,floatButtonInsetBlockEnd:o,floatButtonInsetInlineEnd:a,floatButtonBodySize:r-2*s,floatButtonBodyPadding:s,badgeOffset:1.5*s,dotOffsetInCircle:k(r/2),dotOffsetInSquare:k(d)});return[j(m),B(m),(0,E.J$)(e),C(m)]}),z=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let I="float-btn",P=o.forwardRef((e,t)=>{let{prefixCls:n,className:r,rootClassName:a,type:i="default",shape:l="circle",icon:c,description:d,tooltip:f,badge:$={}}=e,y=z(e,["prefixCls","className","rootClassName","type","shape","icon","description","tooltip","badge"]),{getPrefixCls:v,direction:x}=(0,o.useContext)(p.E_),E=(0,o.useContext)(h),O=v(I,n),[S,w]=N(O),k=s()(w,O,r,a,`${O}-${i}`,`${O}-${E||l}`,{[`${O}-rtl`]:"rtl"===x}),C=(0,o.useMemo)(()=>(0,m.Z)($,["title","children","status","text"]),[$]),j=(0,o.useMemo)(()=>({prefixCls:O,description:d,icon:c,type:i}),[O,d,c,i]),B=o.createElement("div",{className:`${O}-body`},o.createElement(b,Object.assign({},j)));return"badge"in e&&(B=o.createElement(u.Z,Object.assign({},C),B)),"tooltip"in e&&(B=o.createElement(g.Z,{title:f,placement:"rtl"===x?"right":"left"},B)),S(e.href?o.createElement("a",Object.assign({ref:t},y,{className:k}),B):o.createElement("button",Object.assign({ref:t},y,{className:k,type:"button"}),B))});var M=n(66367),Z=n(58375),L=n(74902),H=n(75164),R=function(e){let t;let n=n=>()=>{t=null,e.apply(void 0,(0,L.Z)(n))},r=function(){if(null==t){for(var e=arguments.length,r=Array(e),o=0;o{H.Z.cancel(t),t=null},r},T=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},W=(0,o.memo)(e=>{let{prefixCls:t,className:n,type:r="default",shape:a="circle",visibilityHeight:i=400,icon:c=o.createElement(l,null),target:m,onClick:u,duration:g=450}=e,f=T(e,["prefixCls","className","type","shape","visibilityHeight","icon","target","onClick","duration"]),[$,b]=(0,o.useState)(0===i),y=(0,o.useRef)(null),v=()=>y.current&&y.current.ownerDocument?y.current.ownerDocument:window,x=R(e=>{let t=(0,M.Z)(e.target,!0);b(t>=i)});(0,o.useEffect)(()=>{let e=m||v,t=e();return x({target:t}),null==t||t.addEventListener("scroll",x),()=>{x.cancel(),null==t||t.removeEventListener("scroll",x)}},[m]);let E=e=>{(0,Z.Z)(0,{getContainer:m||v,duration:g}),null==u||u(e)},{getPrefixCls:O}=(0,o.useContext)(p.E_),S=O(I,t),w=O(),[k]=N(S),C=(0,o.useContext)(h),j=Object.assign({prefixCls:S,icon:c,type:r,shape:C||a},f);return k(o.createElement(d.ZP,{visible:$,motionName:`${w}-fade`},e=>{let{className:t}=e;return o.createElement(P,Object.assign({ref:y},j,{onClick:E,className:s()(n,t)}))}))}),_=n(97937),D=n(21770),F=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},A=(0,o.memo)(e=>{let{prefixCls:t,className:n,style:r,shape:a="circle",type:i="default",icon:l=o.createElement($,null),closeIcon:c=o.createElement(_.Z,null),description:m,trigger:u,children:g,onOpenChange:f,open:b}=e,h=F(e,["prefixCls","className","style","shape","type","icon","closeIcon","description","trigger","children","onOpenChange","open"]),{direction:v,getPrefixCls:x}=(0,o.useContext)(p.E_),E=x(I,t),[O,S]=N(E),w=`${E}-group`,k=s()(w,S,n,{[`${w}-rtl`]:"rtl"===v,[`${w}-${a}`]:a,[`${w}-${a}-shadow`]:!u}),C=s()(S,`${w}-wrap`),[j,B]=(0,D.Z)(!1,{value:b}),z=(0,o.useRef)(null),M=(0,o.useRef)(null),Z=(0,o.useMemo)(()=>"hover"===u?{onMouseEnter(){B(!0),null==f||f(!0)},onMouseLeave(){B(!1),null==f||f(!1)}}:{},[u]),L=()=>{B(e=>(null==f||f(!e),!e))},H=(0,o.useCallback)(e=>{var t,n;if(null===(t=z.current)||void 0===t?void 0:t.contains(e.target)){(null===(n=M.current)||void 0===n?void 0:n.contains(e.target))&&L();return}B(!1),null==f||f(!1)},[u]);return(0,o.useEffect)(()=>{if("click"===u)return document.addEventListener("click",H),()=>{document.removeEventListener("click",H)}},[u]),O(o.createElement(y,{value:a},o.createElement("div",Object.assign({ref:z,className:k,style:r},Z),u&&["click","hover"].includes(u)?o.createElement(o.Fragment,null,o.createElement(d.ZP,{visible:j,motionName:`${w}-wrap`},e=>{let{className:t}=e;return o.createElement("div",{className:s()(t,C)},g)}),o.createElement(P,Object.assign({ref:M,type:i,shape:a,icon:j?c:l,description:m,"aria-label":e["aria-label"]},h))):g)))}),G=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let q=e=>{var{backTop:t}=e,n=G(e,["backTop"]);return t?o.createElement(W,Object.assign({},n,{visibilityHeight:0})):o.createElement(P,Object.assign({},n))};P.BackTop=W,P.Group=A,P._InternalPanelDoNotUseOrYouWillBeFired=e=>{var{className:t,items:n}=e,r=G(e,["className","items"]);let{prefixCls:a}=r,{getPrefixCls:i}=o.useContext(p.E_),l=i(I,a),c=`${l}-pure`;return n?o.createElement(A,Object.assign({className:s()(t,c)},r),n.map((e,t)=>o.createElement(q,Object.assign({key:t},e)))):o.createElement(q,Object.assign({className:s()(t,c)},r))};var V=P},2487:function(e,t,n){n.d(t,{Z:function(){return B}});var r=n(74902),o=n(94184),a=n.n(o),i=n(67294),l=n(38780),c=n(74443),s=n(53124),d=n(88258),m=n(92820),u=n(25378),p=n(81647),g=n(75081),f=n(96159),$=n(21584);let b=i.createContext({});b.Consumer;var h=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let y=(0,i.forwardRef)((e,t)=>{let n;var{prefixCls:r,children:o,actions:l,extra:c,className:d,colStyle:m}=e,u=h(e,["prefixCls","children","actions","extra","className","colStyle"]);let{grid:p,itemLayout:g}=(0,i.useContext)(b),{getPrefixCls:y}=(0,i.useContext)(s.E_),v=y("list",r),x=l&&l.length>0&&i.createElement("ul",{className:`${v}-item-action`,key:"actions"},l.map((e,t)=>i.createElement("li",{key:`${v}-item-action-${t}`},e,t!==l.length-1&&i.createElement("em",{className:`${v}-item-action-split`})))),E=p?"div":"li",O=i.createElement(E,Object.assign({},u,p?{}:{ref:t},{className:a()(`${v}-item`,{[`${v}-item-no-flex`]:!("vertical"===g?!!c:(i.Children.forEach(o,e=>{"string"==typeof e&&(n=!0)}),!(n&&i.Children.count(o)>1)))},d)}),"vertical"===g&&c?[i.createElement("div",{className:`${v}-item-main`,key:"content"},o,x),i.createElement("div",{className:`${v}-item-extra`,key:"extra"},c)]:[o,x,(0,f.Tm)(c,{key:"extra"})]);return p?i.createElement($.Z,{ref:t,flex:1,style:m},O):O});y.Meta=e=>{var{prefixCls:t,className:n,avatar:r,title:o,description:l}=e,c=h(e,["prefixCls","className","avatar","title","description"]);let{getPrefixCls:d}=(0,i.useContext)(s.E_),m=d("list",t),u=a()(`${m}-item-meta`,n),p=i.createElement("div",{className:`${m}-item-meta-content`},o&&i.createElement("h4",{className:`${m}-item-meta-title`},o),l&&i.createElement("div",{className:`${m}-item-meta-description`},l));return i.createElement("div",Object.assign({},c,{className:u}),r&&i.createElement("div",{className:`${m}-item-meta-avatar`},r),(o||l)&&p)};var v=n(14747),x=n(67968),E=n(45503);let O=e=>{let{listBorderedCls:t,componentCls:n,paddingLG:r,margin:o,itemPaddingSM:a,itemPaddingLG:i,marginLG:l,borderRadiusLG:c}=e;return{[`${t}`]:{border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:c,[`${n}-header,${n}-footer,${n}-item`]:{paddingInline:r},[`${n}-pagination`]:{margin:`${o}px ${l}px`}},[`${t}${n}-sm`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:a}},[`${t}${n}-lg`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:i}}}},S=e=>{let{componentCls:t,screenSM:n,screenMD:r,marginLG:o,marginSM:a,margin:i}=e;return{[`@media screen and (max-width:${r})`]:{[`${t}`]:{[`${t}-item`]:{[`${t}-item-action`]:{marginInlineStart:o}}},[`${t}-vertical`]:{[`${t}-item`]:{[`${t}-item-extra`]:{marginInlineStart:o}}}},[`@media screen and (max-width: ${n})`]:{[`${t}`]:{[`${t}-item`]:{flexWrap:"wrap",[`${t}-action`]:{marginInlineStart:a}}},[`${t}-vertical`]:{[`${t}-item`]:{flexWrap:"wrap-reverse",[`${t}-item-main`]:{minWidth:e.contentWidth},[`${t}-item-extra`]:{margin:`auto auto ${i}px`}}}}}},w=e=>{let{componentCls:t,antCls:n,controlHeight:r,minHeight:o,paddingSM:a,marginLG:i,padding:l,itemPadding:c,colorPrimary:s,itemPaddingSM:d,itemPaddingLG:m,paddingXS:u,margin:p,colorText:g,colorTextDescription:f,motionDurationSlow:$,lineWidth:b,headerBg:h,footerBg:y,emptyTextPadding:x,metaMarginBottom:E,avatarMarginRight:O,titleMarginBottom:S,descriptionFontSize:w}=e,k={};return["start","center","end"].forEach(e=>{k[`&-align-${e}`]={textAlign:e}}),{[`${t}`]:Object.assign(Object.assign({},(0,v.Wf)(e)),{position:"relative","*":{outline:"none"},[`${t}-header`]:{background:h},[`${t}-footer`]:{background:y},[`${t}-header, ${t}-footer`]:{paddingBlock:a},[`${t}-pagination`]:Object.assign(Object.assign({marginBlockStart:i},k),{[`${n}-pagination-options`]:{textAlign:"start"}}),[`${t}-spin`]:{minHeight:o,textAlign:"center"},[`${t}-items`]:{margin:0,padding:0,listStyle:"none"},[`${t}-item`]:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:c,color:g,[`${t}-item-meta`]:{display:"flex",flex:1,alignItems:"flex-start",maxWidth:"100%",[`${t}-item-meta-avatar`]:{marginInlineEnd:O},[`${t}-item-meta-content`]:{flex:"1 0",width:0,color:g},[`${t}-item-meta-title`]:{margin:`0 0 ${e.marginXXS}px 0`,color:g,fontSize:e.fontSize,lineHeight:e.lineHeight,"> a":{color:g,transition:`all ${$}`,"&:hover":{color:s}}},[`${t}-item-meta-description`]:{color:f,fontSize:w,lineHeight:e.lineHeight}},[`${t}-item-action`]:{flex:"0 0 auto",marginInlineStart:e.marginXXL,padding:0,fontSize:0,listStyle:"none","& > li":{position:"relative",display:"inline-block",padding:`0 ${u}px`,color:f,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"center","&:first-child":{paddingInlineStart:0}},[`${t}-item-action-split`]:{position:"absolute",insetBlockStart:"50%",insetInlineEnd:0,width:b,height:Math.ceil(e.fontSize*e.lineHeight)-2*e.marginXXS,transform:"translateY(-50%)",backgroundColor:e.colorSplit}}},[`${t}-empty`]:{padding:`${l}px 0`,color:f,fontSize:e.fontSizeSM,textAlign:"center"},[`${t}-empty-text`]:{padding:x,color:e.colorTextDisabled,fontSize:e.fontSize,textAlign:"center"},[`${t}-item-no-flex`]:{display:"block"}}),[`${t}-grid ${n}-col > ${t}-item`]:{display:"block",maxWidth:"100%",marginBlockEnd:p,paddingBlock:0,borderBlockEnd:"none"},[`${t}-vertical ${t}-item`]:{alignItems:"initial",[`${t}-item-main`]:{display:"block",flex:1},[`${t}-item-extra`]:{marginInlineStart:i},[`${t}-item-meta`]:{marginBlockEnd:E,[`${t}-item-meta-title`]:{marginBlockStart:0,marginBlockEnd:S,color:g,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}},[`${t}-item-action`]:{marginBlockStart:l,marginInlineStart:"auto","> li":{padding:`0 ${l}px`,"&:first-child":{paddingInlineStart:0}}}},[`${t}-split ${t}-item`]:{borderBlockEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBlockEnd:"none"}},[`${t}-split ${t}-header`]:{borderBlockEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},[`${t}-split${t}-empty ${t}-footer`]:{borderTop:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},[`${t}-loading ${t}-spin-nested-loading`]:{minHeight:r},[`${t}-split${t}-something-after-last-item ${n}-spin-container > ${t}-items > ${t}-item:last-child`]:{borderBlockEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},[`${t}-lg ${t}-item`]:{padding:m},[`${t}-sm ${t}-item`]:{padding:d},[`${t}:not(${t}-vertical)`]:{[`${t}-item-no-flex`]:{[`${t}-item-action`]:{float:"right"}}}}};var k=(0,x.Z)("List",e=>{let t=(0,E.TS)(e,{listBorderedCls:`${e.componentCls}-bordered`,minHeight:e.controlHeightLG});return[w(t),O(t),S(t)]},e=>({contentWidth:220,itemPadding:`${e.paddingContentVertical}px 0`,itemPaddingSM:`${e.paddingContentVerticalSM}px ${e.paddingContentHorizontal}px`,itemPaddingLG:`${e.paddingContentVerticalLG}px ${e.paddingContentHorizontalLG}px`,headerBg:"transparent",footerBg:"transparent",emptyTextPadding:e.padding,metaMarginBottom:e.padding,avatarMarginRight:e.padding,titleMarginBottom:e.paddingSM,descriptionFontSize:e.fontSize})),C=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function j(e){var t,{pagination:n=!1,prefixCls:o,bordered:f=!1,split:$=!0,className:h,rootClassName:y,style:v,children:x,itemLayout:E,loadMore:O,grid:S,dataSource:w=[],size:j,header:B,footer:N,loading:z=!1,rowKey:I,renderItem:P,locale:M}=e,Z=C(e,["pagination","prefixCls","bordered","split","className","rootClassName","style","children","itemLayout","loadMore","grid","dataSource","size","header","footer","loading","rowKey","renderItem","locale"]);let L=n&&"object"==typeof n?n:{},[H,R]=i.useState(L.defaultCurrent||1),[T,W]=i.useState(L.defaultPageSize||10),{getPrefixCls:_,renderEmpty:D,direction:F,list:A}=i.useContext(s.E_),G=e=>(t,r)=>{var o;R(t),W(r),n&&n[e]&&(null===(o=null==n?void 0:n[e])||void 0===o||o.call(n,t,r))},q=G("onChange"),V=G("onShowSizeChange"),X=(e,t)=>{let n;return P?((n="function"==typeof I?I(e):I?e[I]:e.key)||(n=`list-item-${t}`),i.createElement(i.Fragment,{key:n},P(e,t))):null},U=_("list",o),[Y,J]=k(U),K=z;"boolean"==typeof K&&(K={spinning:K});let Q=K&&K.spinning,ee="";switch(j){case"large":ee="lg";break;case"small":ee="sm"}let et=a()(U,{[`${U}-vertical`]:"vertical"===E,[`${U}-${ee}`]:ee,[`${U}-split`]:$,[`${U}-bordered`]:f,[`${U}-loading`]:Q,[`${U}-grid`]:!!S,[`${U}-something-after-last-item`]:!!(O||n||N),[`${U}-rtl`]:"rtl"===F},null==A?void 0:A.className,h,y,J),en=(0,l.Z)({current:1,total:0},{total:w.length,current:H,pageSize:T},n||{}),er=Math.ceil(en.total/en.pageSize);en.current>er&&(en.current=er);let eo=n?i.createElement("div",{className:a()(`${U}-pagination`,`${U}-pagination-align-${null!==(t=null==en?void 0:en.align)&&void 0!==t?t:"end"}`)},i.createElement(p.Z,Object.assign({},en,{onChange:q,onShowSizeChange:V}))):null,ea=(0,r.Z)(w);n&&w.length>(en.current-1)*en.pageSize&&(ea=(0,r.Z)(w).splice((en.current-1)*en.pageSize,en.pageSize));let ei=Object.keys(S||{}).some(e=>["xs","sm","md","lg","xl","xxl"].includes(e)),el=(0,u.Z)(ei),ec=i.useMemo(()=>{for(let e=0;e{if(!S)return;let e=ec&&S[ec]?S[ec]:S.column;if(e)return{width:`${100/e}%`,maxWidth:`${100/e}%`}},[null==S?void 0:S.column,ec]),ed=Q&&i.createElement("div",{style:{minHeight:53}});if(ea.length>0){let e=ea.map((e,t)=>X(e,t));ed=S?i.createElement(m.Z,{gutter:S.gutter},i.Children.map(e,e=>i.createElement("div",{key:null==e?void 0:e.key,style:es},e))):i.createElement("ul",{className:`${U}-items`},e)}else x||Q||(ed=i.createElement("div",{className:`${U}-empty-text`},M&&M.emptyText||(null==D?void 0:D("List"))||i.createElement(d.Z,{componentName:"List"})));let em=en.position||"bottom",eu=i.useMemo(()=>({grid:S,itemLayout:E}),[JSON.stringify(S),E]);return Y(i.createElement(b.Provider,{value:eu},i.createElement("div",Object.assign({style:Object.assign(Object.assign({},null==A?void 0:A.style),v),className:et},Z),("top"===em||"both"===em)&&eo,B&&i.createElement("div",{className:`${U}-header`},B),i.createElement(g.Z,Object.assign({},K),ed,x),N&&i.createElement("div",{className:`${U}-footer`},N),O||("bottom"===em||"both"===em)&&eo)))}j.Item=y;var B=j},74627:function(e,t,n){n.d(t,{Z:function(){return C}});var r=n(94184),o=n.n(r),a=n(67294);let i=e=>e?"function"==typeof e?e():e:null;var l=n(33603),c=n(53124),s=n(83062),d=n(92419),m=n(14747),u=n(50438),p=n(77786),g=n(8796),f=n(67968),$=n(45503);let b=e=>{let{componentCls:t,popoverColor:n,minWidth:r,fontWeightStrong:o,popoverPadding:a,boxShadowSecondary:i,colorTextHeading:l,borderRadiusLG:c,zIndexPopup:s,marginXS:d,colorBgElevated:u,popoverBg:g}=e;return[{[t]:Object.assign(Object.assign({},(0,m.Wf)(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:s,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":u,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:g,backgroundClip:"padding-box",borderRadius:c,boxShadow:i,padding:a},[`${t}-title`]:{minWidth:r,marginBottom:d,color:l,fontWeight:o},[`${t}-inner-content`]:{color:n}})},(0,p.ZP)(e,{colorBg:"var(--antd-arrow-background-color)"}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},h=e=>{let{componentCls:t}=e;return{[t]:g.i.map(n=>{let r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},y=e=>{let{componentCls:t,lineWidth:n,lineType:r,colorSplit:o,paddingSM:a,controlHeight:i,fontSize:l,lineHeight:c,padding:s}=e,d=i-Math.round(l*c);return{[t]:{[`${t}-inner`]:{padding:0},[`${t}-title`]:{margin:0,padding:`${d/2}px ${s}px ${d/2-n}px`,borderBottom:`${n}px ${r} ${o}`},[`${t}-inner-content`]:{padding:`${a}px ${s}px`}}}};var v=(0,f.Z)("Popover",e=>{let{colorBgElevated:t,colorText:n,wireframe:r}=e,o=(0,$.TS)(e,{popoverPadding:12,popoverBg:t,popoverColor:n});return[b(o),h(o),r&&y(o),(0,u._y)(o,"zoom-big")]},e=>({width:177,minWidth:177,zIndexPopup:e.zIndexPopupBase+30}),{deprecatedTokens:[["width","minWidth"]]}),x=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let E=(e,t,n)=>{if(t||n)return a.createElement(a.Fragment,null,t&&a.createElement("div",{className:`${e}-title`},i(t)),a.createElement("div",{className:`${e}-inner-content`},i(n)))},O=e=>{let{hashId:t,prefixCls:n,className:r,style:i,placement:l="top",title:c,content:s,children:m}=e;return a.createElement("div",{className:o()(t,n,`${n}-pure`,`${n}-placement-${l}`,r),style:i},a.createElement("div",{className:`${n}-arrow`}),a.createElement(d.G,Object.assign({},e,{className:t,prefixCls:n}),m||E(n,c,s)))};var S=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let w=e=>{let{title:t,content:n,prefixCls:r}=e;return a.createElement(a.Fragment,null,t&&a.createElement("div",{className:`${r}-title`},i(t)),a.createElement("div",{className:`${r}-inner-content`},i(n)))},k=a.forwardRef((e,t)=>{let{prefixCls:n,title:r,content:i,overlayClassName:d,placement:m="top",trigger:u="hover",mouseEnterDelay:p=.1,mouseLeaveDelay:g=.1,overlayStyle:f={}}=e,$=S(e,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:b}=a.useContext(c.E_),h=b("popover",n),[y,x]=v(h),E=b(),O=o()(d,x);return y(a.createElement(s.Z,Object.assign({placement:m,trigger:u,mouseEnterDelay:p,mouseLeaveDelay:g,overlayStyle:f},$,{prefixCls:h,overlayClassName:O,ref:t,overlay:r||i?a.createElement(w,{prefixCls:h,title:r,content:i}):null,transitionName:(0,l.m)(E,"zoom-big",$.transitionName),"data-popover-inject":!0})))});k._InternalPanelDoNotUseOrYouWillBeFired=e=>{let{prefixCls:t}=e,n=x(e,["prefixCls"]),{getPrefixCls:r}=a.useContext(c.E_),o=r("popover",t),[i,l]=v(o);return i(a.createElement(O,Object.assign({},n,{prefixCls:o,hashId:l})))};var C=k}}]); \ No newline at end of file diff --git a/dbgpt/app/static/_next/static/chunks/450-bd680f0e37e9b4b9.js b/dbgpt/app/static/_next/static/chunks/450-bd680f0e37e9b4b9.js new file mode 100644 index 000000000..912053005 --- /dev/null +++ b/dbgpt/app/static/_next/static/chunks/450-bd680f0e37e9b4b9.js @@ -0,0 +1,11 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[450],{6321:function(e,t,n){n.d(t,{Z:function(){return l}});var i=n(87462),o=n(67294),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 244c176.18 0 319 142.82 319 319v233a32 32 0 01-32 32H225a32 32 0 01-32-32V563c0-176.18 142.82-319 319-319zM484 68h56a8 8 0 018 8v96a8 8 0 01-8 8h-56a8 8 0 01-8-8V76a8 8 0 018-8zM177.25 191.66a8 8 0 0111.32 0l67.88 67.88a8 8 0 010 11.31l-39.6 39.6a8 8 0 01-11.31 0l-67.88-67.88a8 8 0 010-11.31l39.6-39.6zm669.6 0l39.6 39.6a8 8 0 010 11.3l-67.88 67.9a8 8 0 01-11.32 0l-39.6-39.6a8 8 0 010-11.32l67.89-67.88a8 8 0 0111.31 0zM192 892h640a32 32 0 0132 32v24a8 8 0 01-8 8H168a8 8 0 01-8-8v-24a32 32 0 0132-32zm148-317v253h64V575h-64z"}}]},name:"alert",theme:"filled"},a=n(84089),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,i.Z)({},e,{ref:t,icon:r}))})},90389:function(e,t,n){n.d(t,{Z:function(){return l}});var i=n(87462),o=n(67294),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-260 72h96v209.9L621.5 312 572 347.4V136zm220 752H232V136h280v296.9c0 3.3 1 6.6 3 9.3a15.9 15.9 0 0022.3 3.7l83.8-59.9 81.4 59.4c2.7 2 6 3.1 9.4 3.1 8.8 0 16-7.2 16-16V136h64v752z"}}]},name:"book",theme:"outlined"},a=n(84089),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,i.Z)({},e,{ref:t,icon:r}))})},27704:function(e,t,n){n.d(t,{Z:function(){return l}});var i=n(87462),o=n(67294),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 256H736v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80H160c-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-32zm-200 0H360v-72h304v72z"}}]},name:"delete",theme:"filled"},a=n(84089),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,i.Z)({},e,{ref:t,icon:r}))})},31484:function(e,t,n){n.d(t,{Z:function(){return l}});var i=n(87462),o=n(67294),r={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M292.7 840h438.6l24.2-512h-487z",fill:t}},{tag:"path",attrs:{d:"M864 256H736v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80H160c-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-32zm-504-72h304v72H360v-72zm371.3 656H292.7l-24.2-512h487l-24.2 512z",fill:e}}]}},name:"delete",theme:"twotone"},a=n(84089),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,i.Z)({},e,{ref:t,icon:r}))})},80882:function(e,t,n){n.d(t,{Z:function(){return l}});var i=n(87462),o=n(67294),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},a=n(84089),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,i.Z)({},e,{ref:t,icon:r}))})},31326:function(e,t,n){n.d(t,{Z:function(){return l}});var i=n(87462),o=n(67294),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M396 512a112 112 0 10224 0 112 112 0 10-224 0zm546.2-25.8C847.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.5zM508 688c-97.2 0-176-78.8-176-176s78.8-176 176-176 176 78.8 176 176-78.8 176-176 176z"}}]},name:"eye",theme:"filled"},a=n(84089),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,i.Z)({},e,{ref:t,icon:r}))})},31545:function(e,t,n){n.d(t,{Z:function(){return l}});var i=n(87462),o=n(67294),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M688 312v-48c0-4.4-3.6-8-8-8H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8zm-392 88c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H296zm144 452H208V148h560v344c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h272c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm445.7 51.5l-93.3-93.3C814.7 780.7 828 743.9 828 704c0-97.2-78.8-176-176-176s-176 78.8-176 176 78.8 176 176 176c35.8 0 69-10.7 96.8-29l94.7 94.7c1.6 1.6 3.6 2.3 5.6 2.3s4.1-.8 5.6-2.3l31-31a7.9 7.9 0 000-11.2zM652 816c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"file-search",theme:"outlined"},a=n(84089),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,i.Z)({},e,{ref:t,icon:r}))})},27595:function(e,t,n){n.d(t,{Z:function(){return l}});var i=n(87462),o=n(67294),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM320 482a8 8 0 00-8 8v48a8 8 0 008 8h384a8 8 0 008-8v-48a8 8 0 00-8-8H320zm0 136a8 8 0 00-8 8v48a8 8 0 008 8h184a8 8 0 008-8v-48a8 8 0 00-8-8H320z"}}]},name:"file-text",theme:"filled"},a=n(84089),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,i.Z)({},e,{ref:t,icon:r}))})},27329:function(e,t,n){n.d(t,{Z:function(){return l}});var i=n(87462),o=n(67294),r={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42zm101.3 129.3c1.3-5.4 6.1-9.3 11.7-9.3h35.6a12.04 12.04 0 0111.6 15.1l-74.4 276c-1.4 5.3-6.2 8.9-11.6 8.9h-31.8c-5.4 0-10.2-3.7-11.6-8.9l-52.8-197-52.8 197c-1.4 5.3-6.2 8.9-11.6 8.9h-32c-5.4 0-10.2-3.7-11.6-8.9l-74.2-276a12.02 12.02 0 0111.6-15.1h35.4c5.6 0 10.4 3.9 11.7 9.3L434.6 680l49.7-198.9c1.3-5.4 6.1-9.1 11.6-9.1h32.2c5.5 0 10.3 3.7 11.6 9.1l49.8 199.3 45.8-199.1z",fill:t}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:e}},{tag:"path",attrs:{d:"M528.1 472h-32.2c-5.5 0-10.3 3.7-11.6 9.1L434.6 680l-46.1-198.7c-1.3-5.4-6.1-9.3-11.7-9.3h-35.4a12.02 12.02 0 00-11.6 15.1l74.2 276c1.4 5.2 6.2 8.9 11.6 8.9h32c5.4 0 10.2-3.6 11.6-8.9l52.8-197 52.8 197c1.4 5.2 6.2 8.9 11.6 8.9h31.8c5.4 0 10.2-3.6 11.6-8.9l74.4-276a12.04 12.04 0 00-11.6-15.1H647c-5.6 0-10.4 3.9-11.7 9.3l-45.8 199.1-49.8-199.3c-1.3-5.4-6.1-9.1-11.6-9.1z",fill:e}}]}},name:"file-word",theme:"twotone"},a=n(84089),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,i.Z)({},e,{ref:t,icon:r}))})},68346:function(e,t,n){n.d(t,{Z:function(){return l}});var i=n(87462),o=n(67294),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M693.6 284.4c-24 0-51.1 11.7-72.6 22 46.3 18 86 57.3 112.3 99.6 7.1-18.9 14.6-47.9 14.6-67.9 0-32-22.8-53.7-54.3-53.7zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm253.9 492.9H437.1c0 100.4 144.3 136 196.8 47.4h120.8c-32.6 91.7-119.7 146-216.8 146-35.1 0-70.3-.1-101.7-15.6-87.4 44.5-180.3 56.6-180.3-42 0-45.8 23.2-107.1 44-145C335 484 381.3 422.8 435.6 374.5c-43.7 18.9-91.1 66.3-122 101.2 25.9-112.8 129.5-193.6 237.1-186.5 130-59.8 209.7-34.1 209.7 38.6 0 27.4-10.6 63.3-21.4 87.9 25.2 45.5 33.3 97.6 26.9 141.2zM540.5 399.1c-53.7 0-102 39.7-104 94.9h208c-2-55.1-50.6-94.9-104-94.9zM320.6 602.9c-73 152.4 11.5 172.2 100.3 123.3-46.6-27.5-82.6-72.2-100.3-123.3z"}}]},name:"ie-circle",theme:"filled"},a=n(84089),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,i.Z)({},e,{ref:t,icon:r}))})},64082:function(e,t,n){n.d(t,{Z:function(){return l}});var i=n(87462),o=n(67294),r={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"},a=n(84089),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,i.Z)({},e,{ref:t,icon:r}))})},88008:function(e,t,n){n.d(t,{Z:function(){return l}});var i=n(87462),o=n(67294),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM726 585.7c0 55.3-44.7 100.1-99.7 100.1H420.6v53.4c0 5.7-6.5 8.8-10.9 5.3l-109.1-85.7c-3.5-2.7-3.5-8 0-10.7l109.1-85.7c4.4-3.5 10.9-.3 10.9 5.3v53.4h205.7c19.6 0 35.5-16 35.5-35.6v-78.9c0-3.7 3-6.8 6.8-6.8h50.7c3.7 0 6.8 3 6.8 6.8v79.1zm-2.6-209.9l-109.1 85.7c-4.4 3.5-10.9.3-10.9-5.3v-53.4H397.7c-19.6 0-35.5 16-35.5 35.6v78.9c0 3.7-3 6.8-6.8 6.8h-50.7c-3.7 0-6.8-3-6.8-6.8v-78.9c0-55.3 44.7-100.1 99.7-100.1h205.7v-53.4c0-5.7 6.5-8.8 10.9-5.3l109.1 85.7c3.6 2.5 3.6 7.8.1 10.5z"}}]},name:"interaction",theme:"filled"},a=n(84089),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,i.Z)({},e,{ref:t,icon:r}))})},78346:function(e,t,n){n.d(t,{Z:function(){return l}});var i=n(87462),o=n(67294),r={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M775.3 248.9a369.62 369.62 0 00-119-80A370.2 370.2 0 00512.1 140h-1.7c-99.7.4-193 39.4-262.8 109.9-69.9 70.5-108 164.1-107.6 263.8.3 60.3 15.3 120.2 43.5 173.1l4.5 8.4V836h140.8l8.4 4.5c52.9 28.2 112.8 43.2 173.1 43.5h1.7c99 0 192-38.2 262.1-107.6 70.4-69.8 109.5-163.1 110.1-262.7.2-50.6-9.5-99.6-28.9-145.8a370.15 370.15 0 00-80-119zM312 560a48.01 48.01 0 010-96 48.01 48.01 0 010 96zm200 0a48.01 48.01 0 010-96 48.01 48.01 0 010 96zm200 0a48.01 48.01 0 010-96 48.01 48.01 0 010 96z",fill:t}},{tag:"path",attrs:{d:"M664 512a48 48 0 1096 0 48 48 0 10-96 0zm-400 0a48 48 0 1096 0 48 48 0 10-96 0z",fill:e}},{tag:"path",attrs:{d:"M925.2 338.4c-22.6-53.7-55-101.9-96.3-143.3a444.35 444.35 0 00-143.3-96.3C630.6 75.7 572.2 64 512 64h-2c-60.6.3-119.3 12.3-174.5 35.9a445.35 445.35 0 00-142 96.5c-40.9 41.3-73 89.3-95.2 142.8-23 55.4-34.6 114.3-34.3 174.9A449.4 449.4 0 00112 714v152a46 46 0 0046 46h152.1A449.4 449.4 0 00510 960h2.1c59.9 0 118-11.6 172.7-34.3a444.48 444.48 0 00142.8-95.2c41.3-40.9 73.8-88.7 96.5-142 23.6-55.2 35.6-113.9 35.9-174.5.3-60.9-11.5-120-34.8-175.6zm-151.1 438C704 845.8 611 884 512 884h-1.7c-60.3-.3-120.2-15.3-173.1-43.5l-8.4-4.5H188V695.2l-4.5-8.4C155.3 633.9 140.3 574 140 513.7c-.4-99.7 37.7-193.3 107.6-263.8 69.8-70.5 163.1-109.5 262.8-109.9h1.7c50 0 98.5 9.7 144.2 28.9 44.6 18.7 84.6 45.6 119 80 34.3 34.3 61.3 74.4 80 119 19.4 46.2 29.1 95.2 28.9 145.8-.6 99.6-39.7 192.9-110.1 262.7z",fill:e}},{tag:"path",attrs:{d:"M464 512a48 48 0 1096 0 48 48 0 10-96 0z",fill:e}}]}},name:"message",theme:"twotone"},a=n(84089),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,i.Z)({},e,{ref:t,icon:r}))})},18754:function(e,t,n){n.d(t,{Z:function(){return l}});var i=n(87462),o=n(67294),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M865.3 244.7c-.3-.3-61.1 59.8-182.1 180.6l-84.9-84.9 180.9-180.9c-95.2-57.3-217.5-42.6-296.8 36.7A244.42 244.42 0 00419 432l1.8 6.7-283.5 283.4c-6.2 6.2-6.2 16.4 0 22.6l141.4 141.4c6.2 6.2 16.4 6.2 22.6 0l283.3-283.3 6.7 1.8c83.7 22.3 173.6-.9 236-63.3 79.4-79.3 94.1-201.6 38-296.6z"}}]},name:"tool",theme:"filled"},a=n(84089),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,i.Z)({},e,{ref:t,icon:r}))})},28058:function(e,t,n){n.d(t,{Z:function(){return l}});var i=n(87462),o=n(67294),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 720a48 48 0 1096 0 48 48 0 10-96 0zm16-304v184c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V416c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8zm475.7 440l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zm-783.5-27.9L512 239.9l339.8 588.2H172.2z"}}]},name:"warning",theme:"outlined"},a=n(84089),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,i.Z)({},e,{ref:t,icon:r}))})},38925:function(e,t,n){n.d(t,{Z:function(){return j}});var i=n(89739),o=n(4340),r=n(97937),a=n(21640),l=n(78860),c=n(94184),s=n.n(c),d=n(82225),p=n(64217),m=n(67294),g=n(96159),u=n(53124),h=n(14747),f=n(67968),$=n(45503);let v=(e,t,n,i,o)=>({backgroundColor:e,border:`${i.lineWidth}px ${i.lineType} ${t}`,[`${o}-icon`]:{color:n}}),b=e=>{let{componentCls:t,motionDurationSlow:n,marginXS:i,marginSM:o,fontSize:r,fontSizeLG:a,lineHeight:l,borderRadiusLG:c,motionEaseInOutCirc:s,alertIconSizeLG:d,colorText:p,paddingContentVerticalSM:m,alertPaddingHorizontal:g,paddingMD:u,paddingContentHorizontalLG:f,colorTextHeading:$}=e;return{[t]:Object.assign(Object.assign({},(0,h.Wf)(e)),{position:"relative",display:"flex",alignItems:"center",padding:`${m}px ${g}px`,wordWrap:"break-word",borderRadius:c,[`&${t}-rtl`]:{direction:"rtl"},[`${t}-content`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:i,lineHeight:0},"&-description":{display:"none",fontSize:r,lineHeight:l},"&-message":{color:p},[`&${t}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${n} ${s}, opacity ${n} ${s}, + padding-top ${n} ${s}, padding-bottom ${n} ${s}, + margin-bottom ${n} ${s}`},[`&${t}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),[`${t}-with-description`]:{alignItems:"flex-start",paddingInline:f,paddingBlock:u,[`${t}-icon`]:{marginInlineEnd:o,fontSize:d,lineHeight:0},[`${t}-message`]:{display:"block",marginBottom:i,color:$,fontSize:a},[`${t}-description`]:{display:"block"}},[`${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},S=e=>{let{componentCls:t,colorSuccess:n,colorSuccessBorder:i,colorSuccessBg:o,colorWarning:r,colorWarningBorder:a,colorWarningBg:l,colorError:c,colorErrorBorder:s,colorErrorBg:d,colorInfo:p,colorInfoBorder:m,colorInfoBg:g}=e;return{[t]:{"&-success":v(o,i,n,e,t),"&-info":v(g,m,p,e,t),"&-warning":v(l,a,r,e,t),"&-error":Object.assign(Object.assign({},v(d,s,c,e,t)),{[`${t}-description > pre`]:{margin:0,padding:0}})}}},x=e=>{let{componentCls:t,iconCls:n,motionDurationMid:i,marginXS:o,fontSizeIcon:r,colorIcon:a,colorIconHover:l}=e;return{[t]:{"&-action":{marginInlineStart:o},[`${t}-close-icon`]:{marginInlineStart:o,padding:0,overflow:"hidden",fontSize:r,lineHeight:`${r}px`,backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${n}-close`]:{color:a,transition:`color ${i}`,"&:hover":{color:l}}},"&-close-text":{color:a,transition:`color ${i}`,"&:hover":{color:l}}}}},y=e=>[b(e),S(e),x(e)];var C=(0,f.Z)("Alert",e=>{let{fontSizeHeading3:t}=e,n=(0,$.TS)(e,{alertIconSizeLG:t,alertPaddingHorizontal:12});return[y(n)]}),w=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,i=Object.getOwnPropertySymbols(e);ot.indexOf(i[o])&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]]);return n};let z={success:i.Z,info:l.Z,error:o.Z,warning:a.Z},I=e=>{let{icon:t,prefixCls:n,type:i}=e,o=z[i]||null;return t?(0,g.wm)(t,m.createElement("span",{className:`${n}-icon`},t),()=>({className:s()(`${n}-icon`,{[t.props.className]:t.props.className})})):m.createElement(o,{className:`${n}-icon`})},E=e=>{let{isClosable:t,prefixCls:n,closeIcon:i,handleClose:o}=e,a=!0===i||void 0===i?m.createElement(r.Z,null):i;return t?m.createElement("button",{type:"button",onClick:o,className:`${n}-close-icon`,tabIndex:0},a):null};var Z=e=>{let{description:t,prefixCls:n,message:i,banner:o,className:r,rootClassName:a,style:l,onMouseEnter:c,onMouseLeave:g,onClick:h,afterClose:f,showIcon:$,closable:v,closeText:b,closeIcon:S,action:x}=e,y=w(e,["description","prefixCls","message","banner","className","rootClassName","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action"]),[z,Z]=m.useState(!1),k=m.useRef(null),{getPrefixCls:N,direction:O,alert:M}=m.useContext(u.E_),H=N("alert",n),[j,T]=C(H),B=t=>{var n;Z(!0),null===(n=e.onClose)||void 0===n||n.call(e,t)},D=m.useMemo(()=>void 0!==e.type?e.type:o?"warning":"info",[e.type,o]),P=m.useMemo(()=>!!b||("boolean"==typeof v?v:!1!==S&&null!=S),[b,S,v]),X=!!o&&void 0===$||$,R=s()(H,`${H}-${D}`,{[`${H}-with-description`]:!!t,[`${H}-no-icon`]:!X,[`${H}-banner`]:!!o,[`${H}-rtl`]:"rtl"===O},null==M?void 0:M.className,r,a,T),W=(0,p.Z)(y,{aria:!0,data:!0});return j(m.createElement(d.ZP,{visible:!z,motionName:`${H}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:e=>({maxHeight:e.offsetHeight}),onLeaveEnd:f},n=>{let{className:o,style:r}=n;return m.createElement("div",Object.assign({ref:k,"data-show":!z,className:s()(R,o),style:Object.assign(Object.assign(Object.assign({},null==M?void 0:M.style),l),r),onMouseEnter:c,onMouseLeave:g,onClick:h,role:"alert"},W),X?m.createElement(I,{description:t,icon:e.icon,prefixCls:H,type:D}):null,m.createElement("div",{className:`${H}-content`},i?m.createElement("div",{className:`${H}-message`},i):null,t?m.createElement("div",{className:`${H}-description`},t):null),x?m.createElement("div",{className:`${H}-action`},x):null,m.createElement(E,{isClosable:P,prefixCls:H,closeIcon:b||S,handleClose:B}))}))},k=n(15671),N=n(43144),O=n(32531),M=n(73568);let H=function(e){(0,O.Z)(n,e);var t=(0,M.Z)(n);function n(){var e;return(0,k.Z)(this,n),e=t.apply(this,arguments),e.state={error:void 0,info:{componentStack:""}},e}return(0,N.Z)(n,[{key:"componentDidCatch",value:function(e,t){this.setState({error:e,info:t})}},{key:"render",value:function(){let{message:e,description:t,children:n}=this.props,{error:i,info:o}=this.state,r=o&&o.componentStack?o.componentStack:null,a=void 0===e?(i||"").toString():e;return i?m.createElement(Z,{type:"error",message:a,description:m.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},void 0===t?r:t)}):n}}]),n}(m.Component);Z.ErrorBoundary=H;var j=Z},15746:function(e,t,n){var i=n(21584);t.Z=i.Z},47221:function(e,t,n){n.d(t,{Z:function(){return L}});var i=n(18073),o=n(94184),r=n.n(o),a=n(97685),l=n(74902),c=n(71002),s=n(21770),d=n(80334),p=n(67294),m=n(87462),g=n(45987),u=n(50344),h=n(4942),f=n(82225),$=n(15105),v=p.forwardRef(function(e,t){var n,i=e.prefixCls,o=e.forceRender,l=e.className,c=e.style,s=e.children,d=e.isActive,m=e.role,g=p.useState(d||o),u=(0,a.Z)(g,2),f=u[0],$=u[1];return(p.useEffect(function(){(o||d)&&$(!0)},[o,d]),f)?p.createElement("div",{ref:t,className:r()("".concat(i,"-content"),(n={},(0,h.Z)(n,"".concat(i,"-content-active"),d),(0,h.Z)(n,"".concat(i,"-content-inactive"),!d),n),l),style:c,role:m},p.createElement("div",{className:"".concat(i,"-content-box")},s)):null});v.displayName="PanelContent";var b=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],S=p.forwardRef(function(e,t){var n,i,o=e.showArrow,a=void 0===o||o,l=e.headerClass,c=e.isActive,s=e.onItemClick,d=e.forceRender,u=e.className,S=e.prefixCls,x=e.collapsible,y=e.accordion,C=e.panelKey,w=e.extra,z=e.header,I=e.expandIcon,E=e.openMotion,Z=e.destroyInactivePanel,k=e.children,N=(0,g.Z)(e,b),O="disabled"===x,M="header"===x,H="icon"===x,j=null!=w&&"boolean"!=typeof w,T=function(){null==s||s(C)},B="function"==typeof I?I(e):p.createElement("i",{className:"arrow"});B&&(B=p.createElement("div",{className:"".concat(S,"-expand-icon"),onClick:["header","icon"].includes(x)?T:void 0},B));var D=r()((n={},(0,h.Z)(n,"".concat(S,"-item"),!0),(0,h.Z)(n,"".concat(S,"-item-active"),c),(0,h.Z)(n,"".concat(S,"-item-disabled"),O),n),u),P={className:r()(l,(i={},(0,h.Z)(i,"".concat(S,"-header"),!0),(0,h.Z)(i,"".concat(S,"-header-collapsible-only"),M),(0,h.Z)(i,"".concat(S,"-icon-collapsible-only"),H),i)),"aria-expanded":c,"aria-disabled":O,onKeyDown:function(e){("Enter"===e.key||e.keyCode===$.Z.ENTER||e.which===$.Z.ENTER)&&T()}};return M||H||(P.onClick=T,P.role=y?"tab":"button",P.tabIndex=O?-1:0),p.createElement("div",(0,m.Z)({},N,{ref:t,className:D}),p.createElement("div",P,a&&B,p.createElement("span",{className:"".concat(S,"-header-text"),onClick:"header"===x?T:void 0},z),j&&p.createElement("div",{className:"".concat(S,"-extra")},w)),p.createElement(f.ZP,(0,m.Z)({visible:c,leavedClassName:"".concat(S,"-content-hidden")},E,{forceRender:d,removeOnLeave:Z}),function(e,t){var n=e.className,i=e.style;return p.createElement(v,{ref:t,prefixCls:S,className:n,style:i,isActive:c,forceRender:d,role:y?"tabpanel":void 0},k)}))}),x=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],y=function(e,t){var n=t.prefixCls,i=t.accordion,o=t.collapsible,r=t.destroyInactivePanel,a=t.onItemClick,l=t.activeKey,c=t.openMotion,s=t.expandIcon;return e.map(function(e,t){var d=e.children,u=e.label,h=e.key,f=e.collapsible,$=e.onItemClick,v=e.destroyInactivePanel,b=(0,g.Z)(e,x),y=String(null!=h?h:t),C=null!=f?f:o,w=!1;return w=i?l[0]===y:l.indexOf(y)>-1,p.createElement(S,(0,m.Z)({},b,{prefixCls:n,key:y,panelKey:y,isActive:w,accordion:i,openMotion:c,expandIcon:s,header:u,collapsible:C,onItemClick:function(e){"disabled"!==C&&(a(e),null==$||$(e))},destroyInactivePanel:null!=v?v:r}),d)})},C=function(e,t,n){if(!e)return null;var i=n.prefixCls,o=n.accordion,r=n.collapsible,a=n.destroyInactivePanel,l=n.onItemClick,c=n.activeKey,s=n.openMotion,d=n.expandIcon,m=e.key||String(t),g=e.props,u=g.header,h=g.headerClass,f=g.destroyInactivePanel,$=g.collapsible,v=g.onItemClick,b=!1;b=o?c[0]===m:c.indexOf(m)>-1;var S=null!=$?$:r,x={key:m,panelKey:m,header:u,headerClass:h,isActive:b,prefixCls:i,destroyInactivePanel:null!=f?f:a,openMotion:s,accordion:o,children:e.props.children,onItemClick:function(e){"disabled"!==S&&(l(e),null==v||v(e))},expandIcon:d,collapsible:S};return"string"==typeof e.type?e:(Object.keys(x).forEach(function(e){void 0===x[e]&&delete x[e]}),p.cloneElement(e,x))};function w(e){var t=e;if(!Array.isArray(t)){var n=(0,c.Z)(t);t="number"===n||"string"===n?[t]:[]}return t.map(function(e){return String(e)})}var z=Object.assign(p.forwardRef(function(e,t){var n,i=e.prefixCls,o=void 0===i?"rc-collapse":i,c=e.destroyInactivePanel,m=e.style,g=e.accordion,h=e.className,f=e.children,$=e.collapsible,v=e.openMotion,b=e.expandIcon,S=e.activeKey,x=e.defaultActiveKey,z=e.onChange,I=e.items,E=r()(o,h),Z=(0,s.Z)([],{value:S,onChange:function(e){return null==z?void 0:z(e)},defaultValue:x,postState:w}),k=(0,a.Z)(Z,2),N=k[0],O=k[1];(0,d.ZP)(!f,"`children` will be removed in next major version. Please use `items` instead.");var M=(n={prefixCls:o,accordion:g,openMotion:v,expandIcon:b,collapsible:$,destroyInactivePanel:void 0!==c&&c,onItemClick:function(e){return O(function(){return g?N[0]===e?[]:[e]:N.indexOf(e)>-1?N.filter(function(t){return t!==e}):[].concat((0,l.Z)(N),[e])})},activeKey:N},Array.isArray(I)?y(I,n):(0,u.Z)(f).map(function(e,t){return C(e,t,n)}));return p.createElement("div",{ref:t,className:E,style:m,role:g?"tablist":void 0},M)}),{Panel:S});z.Panel;var I=n(98423),E=n(33603),Z=n(96159),k=n(53124),N=n(98675);let O=p.forwardRef((e,t)=>{let{getPrefixCls:n}=p.useContext(k.E_),{prefixCls:i,className:o,showArrow:a=!0}=e,l=n("collapse",i),c=r()({[`${l}-no-arrow`]:!a},o);return p.createElement(z.Panel,Object.assign({ref:t},e,{prefixCls:l,className:c}))});var M=n(14747),H=n(33507),j=n(67968),T=n(45503);let B=e=>{let{componentCls:t,collapseContentBg:n,padding:i,collapseContentPaddingHorizontal:o,collapseHeaderBg:r,collapseHeaderPadding:a,collapseHeaderPaddingSM:l,collapseHeaderPaddingLG:c,collapsePanelBorderRadius:s,lineWidth:d,lineType:p,colorBorder:m,colorText:g,colorTextHeading:u,colorTextDisabled:h,fontSize:f,fontSizeLG:$,lineHeight:v,marginSM:b,paddingSM:S,paddingLG:x,paddingXS:y,motionDurationSlow:C,fontSizeIcon:w}=e,z=`${d}px ${p} ${m}`;return{[t]:Object.assign(Object.assign({},(0,M.Wf)(e)),{backgroundColor:r,border:z,borderBottom:0,borderRadius:`${s}px`,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:z,"&:last-child":{[` + &, + & > ${t}-header`]:{borderRadius:`0 0 ${s}px ${s}px`}},[`> ${t}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:a,paddingInlineStart:S,color:u,lineHeight:v,cursor:"pointer",transition:`all ${C}, visibility 0s`,[`> ${t}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${t}-expand-icon`]:{height:f*v,display:"flex",alignItems:"center",paddingInlineEnd:b,marginInlineStart:i-S},[`${t}-arrow`]:Object.assign(Object.assign({},(0,M.Ro)()),{fontSize:w,svg:{transition:`transform ${C}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}},[`${t}-header-collapsible-only`]:{cursor:"default",[`${t}-header-text`]:{flex:"none",cursor:"pointer"}},[`${t}-icon-collapsible-only`]:{cursor:"default",[`${t}-expand-icon`]:{cursor:"pointer"}}},[`${t}-content`]:{color:g,backgroundColor:n,borderTop:z,[`& > ${t}-content-box`]:{padding:`${i}px ${o}px`},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:l,paddingInlineStart:y,[`> ${t}-expand-icon`]:{marginInlineStart:S-y}},[`> ${t}-content > ${t}-content-box`]:{padding:S}}},"&-large":{[`> ${t}-item`]:{fontSize:$,[`> ${t}-header`]:{padding:c,paddingInlineStart:i,[`> ${t}-expand-icon`]:{height:$*v,marginInlineStart:x-i}},[`> ${t}-content > ${t}-content-box`]:{padding:x}}},[`${t}-item:last-child`]:{[`> ${t}-content`]:{borderRadius:`0 0 ${s}px ${s}px`}},[`& ${t}-item-disabled > ${t}-header`]:{[` + &, + & > .arrow + `]:{color:h,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:b}}}}})}},D=e=>{let{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow svg`;return{[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},P=e=>{let{componentCls:t,collapseHeaderBg:n,paddingXXS:i,colorBorder:o}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${o}`},[` + > ${t}-item:last-child, + > ${t}-item:last-child ${t}-header + `]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{paddingTop:i}}}},X=e=>{let{componentCls:t,paddingSM:n}=e;return{[`${t}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-content`]:{backgroundColor:"transparent",border:0,[`> ${t}-content-box`]:{paddingBlock:n}}}}}};var R=(0,j.Z)("Collapse",e=>{let t=(0,T.TS)(e,{collapseContentBg:e.colorBgContainer,collapseHeaderBg:e.colorFillAlter,collapseHeaderPadding:`${e.paddingSM}px ${e.padding}px`,collapseHeaderPaddingSM:`${e.paddingXS}px ${e.paddingSM}px`,collapseHeaderPaddingLG:`${e.padding}px ${e.paddingLG}px`,collapsePanelBorderRadius:e.borderRadiusLG,collapseContentPaddingHorizontal:16});return[B(t),P(t),X(t),D(t),(0,H.Z)(t)]});let W=p.forwardRef((e,t)=>{let{getPrefixCls:n,direction:o,collapse:a}=p.useContext(k.E_),{prefixCls:l,className:c,rootClassName:s,style:d,bordered:m=!0,ghost:g,size:h,expandIconPosition:f="start",children:$,expandIcon:v}=e,b=(0,N.Z)(e=>{var t;return null!==(t=null!=h?h:e)&&void 0!==t?t:"middle"}),S=n("collapse",l),x=n(),[y,C]=R(S),w=p.useMemo(()=>"left"===f?"start":"right"===f?"end":f,[f]),O=r()(`${S}-icon-position-${w}`,{[`${S}-borderless`]:!m,[`${S}-rtl`]:"rtl"===o,[`${S}-ghost`]:!!g,[`${S}-${b}`]:"middle"!==b},null==a?void 0:a.className,c,s,C),M=Object.assign(Object.assign({},(0,E.Z)(x)),{motionAppear:!1,leavedClassName:`${S}-content-hidden`}),H=p.useMemo(()=>$?(0,u.Z)($).map((e,t)=>{var n,i;if(null===(n=e.props)||void 0===n?void 0:n.disabled){let n=null!==(i=e.key)&&void 0!==i?i:String(t),{disabled:o,collapsible:r}=e.props,a=Object.assign(Object.assign({},(0,I.Z)(e.props,["disabled"])),{key:n,collapsible:null!=r?r:o?"disabled":void 0});return(0,Z.Tm)(e,a)}return e}):null,[$]);return y(p.createElement(z,Object.assign({ref:t,openMotion:M},(0,I.Z)(e,["rootClassName"]),{expandIcon:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=v?v(e):p.createElement(i.Z,{rotate:e.isActive?90:void 0});return(0,Z.Tm)(t,()=>({className:r()(t.props.className,`${S}-arrow`)}))},prefixCls:S,className:O,style:Object.assign(Object.assign({},null==a?void 0:a.style),d)}),H))});var L=Object.assign(W,{Panel:O})},96074:function(e,t,n){n.d(t,{Z:function(){return g}});var i=n(94184),o=n.n(i),r=n(67294),a=n(53124),l=n(14747),c=n(67968),s=n(45503);let d=e=>{let{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:i,lineWidth:o}=e;return{[t]:Object.assign(Object.assign({},(0,l.Wf)(e)),{borderBlockStart:`${o}px solid ${i}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",margin:`0 ${e.dividerVerticalGutterMargin}px`,verticalAlign:"middle",borderTop:0,borderInlineStart:`${o}px solid ${i}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${e.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${e.dividerHorizontalWithTextGutterMargin}px 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${i}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${o}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:"5%"},"&::after":{width:"95%"}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:"95%"},"&::after":{width:"5%"}},[`${t}-inner-text`]:{display:"inline-block",padding:"0 1em"},"&-dashed":{background:"none",borderColor:i,borderStyle:"dashed",borderWidth:`${o}px 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}};var p=(0,c.Z)("Divider",e=>{let t=(0,s.TS)(e,{dividerVerticalGutterMargin:e.marginXS,dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG});return[d(t)]},{sizePaddingEdgeHorizontal:0}),m=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,i=Object.getOwnPropertySymbols(e);ot.indexOf(i[o])&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]]);return n},g=e=>{let{getPrefixCls:t,direction:n,divider:i}=r.useContext(a.E_),{prefixCls:l,type:c="horizontal",orientation:s="center",orientationMargin:d,className:g,rootClassName:u,children:h,dashed:f,plain:$,style:v}=e,b=m(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),S=t("divider",l),[x,y]=p(S),C=s.length>0?`-${s}`:s,w=!!h,z="left"===s&&null!=d,I="right"===s&&null!=d,E=o()(S,null==i?void 0:i.className,y,`${S}-${c}`,{[`${S}-with-text`]:w,[`${S}-with-text${C}`]:w,[`${S}-dashed`]:!!f,[`${S}-plain`]:!!$,[`${S}-rtl`]:"rtl"===n,[`${S}-no-default-orientation-margin-left`]:z,[`${S}-no-default-orientation-margin-right`]:I},g,u),Z=r.useMemo(()=>"number"==typeof d?d:/^\d+$/.test(d)?Number(d):d,[d]),k=Object.assign(Object.assign({},z&&{marginLeft:Z}),I&&{marginRight:Z});return x(r.createElement("div",Object.assign({className:E,style:Object.assign(Object.assign({},null==i?void 0:i.style),v)},b,{role:"separator"}),h&&"vertical"!==c&&r.createElement("span",{className:`${S}-inner-text`,style:k},h)))}},25378:function(e,t,n){var i=n(67294),o=n(8410),r=n(57838),a=n(74443);t.Z=function(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],t=(0,i.useRef)({}),n=(0,r.Z)(),l=(0,a.Z)();return(0,o.Z)(()=>{let i=l.subscribe(i=>{t.current=i,e&&n()});return()=>l.unsubscribe(i)},[]),t.current}},71230:function(e,t,n){var i=n(92820);t.Z=i.Z},75081:function(e,t,n){n.d(t,{Z:function(){return x}});var i=n(94184),o=n.n(i),r=n(98423),a=n(67294),l=n(96159),c=n(53124),s=n(23183),d=n(14747),p=n(67968),m=n(45503);let g=new s.E4("antSpinMove",{to:{opacity:1}}),u=new s.E4("antRotate",{to:{transform:"rotate(405deg)"}}),h=e=>({[`${e.componentCls}`]:Object.assign(Object.assign({},(0,d.Wf)(e)),{position:"absolute",display:"none",color:e.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"static",display:"inline-block",opacity:1},"&-nested-loading":{position:"relative",[`> div > ${e.componentCls}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${e.componentCls}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:-e.spinDotSize/2},[`${e.componentCls}-text`]:{position:"absolute",top:"50%",width:"100%",paddingTop:(e.spinDotSize-e.fontSize)/2+2,textShadow:`0 1px 2px ${e.colorBgContainer}`,fontSize:e.fontSize},[`&${e.componentCls}-show-text ${e.componentCls}-dot`]:{marginTop:-(e.spinDotSize/2)-10},"&-sm":{[`${e.componentCls}-dot`]:{margin:-e.spinDotSizeSM/2},[`${e.componentCls}-text`]:{paddingTop:(e.spinDotSizeSM-e.fontSize)/2+2},[`&${e.componentCls}-show-text ${e.componentCls}-dot`]:{marginTop:-(e.spinDotSizeSM/2)-10}},"&-lg":{[`${e.componentCls}-dot`]:{margin:-(e.spinDotSizeLG/2)},[`${e.componentCls}-text`]:{paddingTop:(e.spinDotSizeLG-e.fontSize)/2+2},[`&${e.componentCls}-show-text ${e.componentCls}-dot`]:{marginTop:-(e.spinDotSizeLG/2)-10}}},[`${e.componentCls}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${e.componentCls}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${e.componentCls}-dot`]:{position:"relative",display:"inline-block",fontSize:e.spinDotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:(e.spinDotSize-e.marginXXS/2)/2,height:(e.spinDotSize-e.marginXXS/2)/2,backgroundColor:e.colorPrimary,borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:g,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:u,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&-sm ${e.componentCls}-dot`]:{fontSize:e.spinDotSizeSM,i:{width:(e.spinDotSizeSM-e.marginXXS/2)/2,height:(e.spinDotSizeSM-e.marginXXS/2)/2}},[`&-lg ${e.componentCls}-dot`]:{fontSize:e.spinDotSizeLG,i:{width:(e.spinDotSizeLG-e.marginXXS)/2,height:(e.spinDotSizeLG-e.marginXXS)/2}},[`&${e.componentCls}-show-text ${e.componentCls}-text`]:{display:"block"}})});var f=(0,p.Z)("Spin",e=>{let t=(0,m.TS)(e,{spinDotDefault:e.colorTextDescription,spinDotSize:e.controlHeightLG/2,spinDotSizeSM:.35*e.controlHeightLG,spinDotSizeLG:e.controlHeight});return[h(t)]},{contentHeight:400}),$=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,i=Object.getOwnPropertySymbols(e);ot.indexOf(i[o])&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]]);return n};let v=null,b=e=>{let{spinPrefixCls:t,spinning:n=!0,delay:i=0,className:s,rootClassName:d,size:p="default",tip:m,wrapperClassName:g,style:u,children:h,hashId:f}=e,b=$(e,["spinPrefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","hashId"]),[S,x]=a.useState(()=>n&&(!n||!i||!!isNaN(Number(i))));a.useEffect(()=>{if(n){var e;let t=function(e,t,n){var i,o=n||{},r=o.noTrailing,a=void 0!==r&&r,l=o.noLeading,c=void 0!==l&&l,s=o.debounceMode,d=void 0===s?void 0:s,p=!1,m=0;function g(){i&&clearTimeout(i)}function u(){for(var n=arguments.length,o=Array(n),r=0;re?c?(m=Date.now(),a||(i=setTimeout(d?h:u,e))):u():!0!==a&&(i=setTimeout(d?h:u,void 0===d?e-s:e)))}return u.cancel=function(e){var t=(e||{}).upcomingOnly;g(),p=!(void 0!==t&&t)},u}(i,()=>{x(!0)},{debounceMode:!1!==(void 0!==(e=({}).atBegin)&&e)});return t(),()=>{var e;null===(e=null==t?void 0:t.cancel)||void 0===e||e.call(t)}}x(!1)},[i,n]);let y=a.useMemo(()=>void 0!==h,[h]),{direction:C,spin:w}=a.useContext(c.E_),z=o()(t,null==w?void 0:w.className,{[`${t}-sm`]:"small"===p,[`${t}-lg`]:"large"===p,[`${t}-spinning`]:S,[`${t}-show-text`]:!!m,[`${t}-rtl`]:"rtl"===C},s,d,f),I=o()(`${t}-container`,{[`${t}-blur`]:S}),E=(0,r.Z)(b,["indicator","prefixCls"]),Z=Object.assign(Object.assign({},null==w?void 0:w.style),u),k=a.createElement("div",Object.assign({},E,{style:Z,className:z,"aria-live":"polite","aria-busy":S}),function(e,t){let{indicator:n}=t,i=`${e}-dot`;return null===n?null:(0,l.l$)(n)?(0,l.Tm)(n,{className:o()(n.props.className,i)}):(0,l.l$)(v)?(0,l.Tm)(v,{className:o()(v.props.className,i)}):a.createElement("span",{className:o()(i,`${e}-dot-spin`)},a.createElement("i",{className:`${e}-dot-item`,key:1}),a.createElement("i",{className:`${e}-dot-item`,key:2}),a.createElement("i",{className:`${e}-dot-item`,key:3}),a.createElement("i",{className:`${e}-dot-item`,key:4}))}(t,e),m&&y?a.createElement("div",{className:`${t}-text`},m):null);return y?a.createElement("div",Object.assign({},E,{className:o()(`${t}-nested-loading`,g,f)}),S&&a.createElement("div",{key:"loading"},k),a.createElement("div",{className:I,key:"container"},h)):k},S=e=>{let{prefixCls:t}=e,{getPrefixCls:n}=a.useContext(c.E_),i=n("spin",t),[o,r]=f(i),l=Object.assign(Object.assign({},e),{spinPrefixCls:i,hashId:r});return o(a.createElement(b,Object.assign({},l)))};S.setDefaultIndicator=e=>{v=e};var x=S},3363:function(e,t,n){n.d(t,{Z:function(){return V}});var i,o,r=n(63606),a=n(97937),l=n(94184),c=n.n(l),s=n(87462),d=n(1413),p=n(4942),m=n(45987),g=n(67294),u=n(15105),h=["className","prefixCls","style","active","status","iconPrefix","icon","wrapperStyle","stepNumber","disabled","description","title","subTitle","progressDot","stepIcon","tailContent","icons","stepIndex","onStepClick","onClick","render"];function f(e){return"string"==typeof e}var $=function(e){var t,n,i,o,r,a=e.className,l=e.prefixCls,$=e.style,v=e.active,b=e.status,S=e.iconPrefix,x=e.icon,y=(e.wrapperStyle,e.stepNumber),C=e.disabled,w=e.description,z=e.title,I=e.subTitle,E=e.progressDot,Z=e.stepIcon,k=e.tailContent,N=e.icons,O=e.stepIndex,M=e.onStepClick,H=e.onClick,j=e.render,T=(0,m.Z)(e,h),B={};M&&!C&&(B.role="button",B.tabIndex=0,B.onClick=function(e){null==H||H(e),M(O)},B.onKeyDown=function(e){var t=e.which;(t===u.Z.ENTER||t===u.Z.SPACE)&&M(O)});var D=b||"wait",P=c()("".concat(l,"-item"),"".concat(l,"-item-").concat(D),a,(r={},(0,p.Z)(r,"".concat(l,"-item-custom"),x),(0,p.Z)(r,"".concat(l,"-item-active"),v),(0,p.Z)(r,"".concat(l,"-item-disabled"),!0===C),r)),X=(0,d.Z)({},$),R=g.createElement("div",(0,s.Z)({},T,{className:P,style:X}),g.createElement("div",(0,s.Z)({onClick:H},B,{className:"".concat(l,"-item-container")}),g.createElement("div",{className:"".concat(l,"-item-tail")},k),g.createElement("div",{className:"".concat(l,"-item-icon")},(i=c()("".concat(l,"-icon"),"".concat(S,"icon"),(t={},(0,p.Z)(t,"".concat(S,"icon-").concat(x),x&&f(x)),(0,p.Z)(t,"".concat(S,"icon-check"),!x&&"finish"===b&&(N&&!N.finish||!N)),(0,p.Z)(t,"".concat(S,"icon-cross"),!x&&"error"===b&&(N&&!N.error||!N)),t)),o=g.createElement("span",{className:"".concat(l,"-icon-dot")}),n=E?"function"==typeof E?g.createElement("span",{className:"".concat(l,"-icon")},E(o,{index:y-1,status:b,title:z,description:w})):g.createElement("span",{className:"".concat(l,"-icon")},o):x&&!f(x)?g.createElement("span",{className:"".concat(l,"-icon")},x):N&&N.finish&&"finish"===b?g.createElement("span",{className:"".concat(l,"-icon")},N.finish):N&&N.error&&"error"===b?g.createElement("span",{className:"".concat(l,"-icon")},N.error):x||"finish"===b||"error"===b?g.createElement("span",{className:i}):g.createElement("span",{className:"".concat(l,"-icon")},y),Z&&(n=Z({index:y-1,status:b,title:z,description:w,node:n})),n)),g.createElement("div",{className:"".concat(l,"-item-content")},g.createElement("div",{className:"".concat(l,"-item-title")},z,I&&g.createElement("div",{title:"string"==typeof I?I:void 0,className:"".concat(l,"-item-subtitle")},I)),w&&g.createElement("div",{className:"".concat(l,"-item-description")},w))));return j&&(R=j(R)||null),R},v=["prefixCls","style","className","children","direction","type","labelPlacement","iconPrefix","status","size","current","progressDot","stepIcon","initial","icons","onChange","itemRender","items"];function b(e){var t,n=e.prefixCls,i=void 0===n?"rc-steps":n,o=e.style,r=void 0===o?{}:o,a=e.className,l=(e.children,e.direction),u=e.type,h=void 0===u?"default":u,f=e.labelPlacement,b=e.iconPrefix,S=void 0===b?"rc":b,x=e.status,y=void 0===x?"process":x,C=e.size,w=e.current,z=void 0===w?0:w,I=e.progressDot,E=e.stepIcon,Z=e.initial,k=void 0===Z?0:Z,N=e.icons,O=e.onChange,M=e.itemRender,H=e.items,j=(0,m.Z)(e,v),T="inline"===h,B=T||void 0!==I&&I,D=T?"horizontal":void 0===l?"horizontal":l,P=T?void 0:C,X=B?"vertical":void 0===f?"horizontal":f,R=c()(i,"".concat(i,"-").concat(D),a,(t={},(0,p.Z)(t,"".concat(i,"-").concat(P),P),(0,p.Z)(t,"".concat(i,"-label-").concat(X),"horizontal"===D),(0,p.Z)(t,"".concat(i,"-dot"),!!B),(0,p.Z)(t,"".concat(i,"-navigation"),"navigation"===h),(0,p.Z)(t,"".concat(i,"-inline"),T),t)),W=function(e){O&&z!==e&&O(e)};return g.createElement("div",(0,s.Z)({className:R,style:r},j),(void 0===H?[]:H).filter(function(e){return e}).map(function(e,t){var n=(0,d.Z)({},e),o=k+t;return"error"===y&&t===z-1&&(n.className="".concat(i,"-next-error")),n.status||(o===z?n.status=y:o{let{componentCls:t,customIconTop:n,customIconSize:i,customIconFontSize:o}=e;return{[`${t}-item-custom`]:{[`> ${t}-item-container > ${t}-item-icon`]:{height:"auto",background:"none",border:0,[`> ${t}-icon`]:{top:n,width:i,height:i,fontSize:o,lineHeight:`${o}px`}}},[`&:not(${t}-vertical)`]:{[`${t}-item-custom`]:{[`${t}-item-icon`]:{width:"auto",background:"none"}}}}},k=e=>{let{componentCls:t,inlineDotSize:n,inlineTitleColor:i,inlineTailColor:o}=e,r=e.paddingXS+e.lineWidth,a={[`${t}-item-container ${t}-item-content ${t}-item-title`]:{color:i}};return{[`&${t}-inline`]:{width:"auto",display:"inline-flex",[`${t}-item`]:{flex:"none","&-container":{padding:`${r}px ${e.paddingXXS}px 0`,margin:`0 ${e.marginXXS/2}px`,borderRadius:e.borderRadiusSM,cursor:"pointer",transition:`background-color ${e.motionDurationMid}`,"&:hover":{background:e.controlItemBgHover},"&[role='button']:hover":{opacity:1}},"&-icon":{width:n,height:n,marginInlineStart:`calc(50% - ${n/2}px)`,[`> ${t}-icon`]:{top:0},[`${t}-icon-dot`]:{borderRadius:e.fontSizeSM/4}},"&-content":{width:"auto",marginTop:e.marginXS-e.lineWidth},"&-title":{color:i,fontSize:e.fontSizeSM,lineHeight:e.lineHeightSM,fontWeight:"normal",marginBottom:e.marginXXS/2},"&-description":{display:"none"},"&-tail":{marginInlineStart:0,top:r+n/2,transform:"translateY(-50%)","&:after":{width:"100%",height:e.lineWidth,borderRadius:0,marginInlineStart:0,background:o}},[`&:first-child ${t}-item-tail`]:{width:"50%",marginInlineStart:"50%"},[`&:last-child ${t}-item-tail`]:{display:"block",width:"50%"},"&-wait":Object.assign({[`${t}-item-icon ${t}-icon ${t}-icon-dot`]:{backgroundColor:e.colorBorderBg,border:`${e.lineWidth}px ${e.lineType} ${o}`}},a),"&-finish":Object.assign({[`${t}-item-tail::after`]:{backgroundColor:o},[`${t}-item-icon ${t}-icon ${t}-icon-dot`]:{backgroundColor:o,border:`${e.lineWidth}px ${e.lineType} ${o}`}},a),"&-error":a,"&-active, &-process":Object.assign({[`${t}-item-icon`]:{width:n,height:n,marginInlineStart:`calc(50% - ${n/2}px)`,top:0}},a),[`&:not(${t}-item-active) > ${t}-item-container[role='button']:hover`]:{[`${t}-item-title`]:{color:i}}}}}},N=e=>{let{componentCls:t,iconSize:n,lineHeight:i,iconSizeSM:o}=e;return{[`&${t}-label-vertical`]:{[`${t}-item`]:{overflow:"visible","&-tail":{marginInlineStart:n/2+e.controlHeightLG,padding:`${e.paddingXXS}px ${e.paddingLG}px`},"&-content":{display:"block",width:(n/2+e.controlHeightLG)*2,marginTop:e.marginSM,textAlign:"center"},"&-icon":{display:"inline-block",marginInlineStart:e.controlHeightLG},"&-title":{paddingInlineEnd:0,paddingInlineStart:0,"&::after":{display:"none"}},"&-subtitle":{display:"block",marginBottom:e.marginXXS,marginInlineStart:0,lineHeight:i}},[`&${t}-small:not(${t}-dot)`]:{[`${t}-item`]:{"&-icon":{marginInlineStart:e.controlHeightLG+(n-o)/2}}}}}},O=e=>{let{componentCls:t,navContentMaxWidth:n,navArrowColor:i,stepsNavActiveColor:o,motionDurationSlow:r}=e;return{[`&${t}-navigation`]:{paddingTop:e.paddingSM,[`&${t}-small`]:{[`${t}-item`]:{"&-container":{marginInlineStart:-e.marginSM}}},[`${t}-item`]:{overflow:"visible",textAlign:"center","&-container":{display:"inline-block",height:"100%",marginInlineStart:-e.margin,paddingBottom:e.paddingSM,textAlign:"start",transition:`opacity ${r}`,[`${t}-item-content`]:{maxWidth:n},[`${t}-item-title`]:Object.assign(Object.assign({maxWidth:"100%",paddingInlineEnd:0},z.vS),{"&::after":{display:"none"}})},[`&:not(${t}-item-active)`]:{[`${t}-item-container[role='button']`]:{cursor:"pointer","&:hover":{opacity:.85}}},"&:last-child":{flex:1,"&::after":{display:"none"}},"&::after":{position:"absolute",top:`calc(50% - ${e.paddingSM/2}px)`,insetInlineStart:"100%",display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,borderTop:`${e.lineWidth}px ${e.lineType} ${i}`,borderBottom:"none",borderInlineStart:"none",borderInlineEnd:`${e.lineWidth}px ${e.lineType} ${i}`,transform:"translateY(-50%) translateX(-50%) rotate(45deg)",content:'""'},"&::before":{position:"absolute",bottom:0,insetInlineStart:"50%",display:"inline-block",width:0,height:e.lineWidthBold,backgroundColor:o,transition:`width ${r}, inset-inline-start ${r}`,transitionTimingFunction:"ease-out",content:'""'}},[`${t}-item${t}-item-active::before`]:{insetInlineStart:0,width:"100%"}},[`&${t}-navigation${t}-vertical`]:{[`> ${t}-item`]:{marginInlineEnd:0,"&::before":{display:"none"},[`&${t}-item-active::before`]:{top:0,insetInlineEnd:0,insetInlineStart:"unset",display:"block",width:3*e.lineWidth,height:`calc(100% - ${e.marginLG}px)`},"&::after":{position:"relative",insetInlineStart:"50%",display:"block",width:.25*e.controlHeight,height:.25*e.controlHeight,marginBottom:e.marginXS,textAlign:"center",transform:"translateY(-50%) translateX(-50%) rotate(135deg)"},"&:last-child":{"&::after":{display:"none"}},[`> ${t}-item-container > ${t}-item-tail`]:{visibility:"hidden"}}},[`&${t}-navigation${t}-horizontal`]:{[`> ${t}-item > ${t}-item-container > ${t}-item-tail`]:{visibility:"hidden"}}}},M=e=>{let{antCls:t,componentCls:n}=e;return{[`&${n}-with-progress`]:{[`${n}-item`]:{paddingTop:e.paddingXXS,[`&-process ${n}-item-container ${n}-item-icon ${n}-icon`]:{color:e.processIconColor}},[`&${n}-vertical > ${n}-item `]:{paddingInlineStart:e.paddingXXS,[`> ${n}-item-container > ${n}-item-tail`]:{top:e.marginXXS,insetInlineStart:e.iconSize/2-e.lineWidth+e.paddingXXS}},[`&, &${n}-small`]:{[`&${n}-horizontal ${n}-item:first-child`]:{paddingBottom:e.paddingXXS,paddingInlineStart:e.paddingXXS}},[`&${n}-small${n}-vertical > ${n}-item > ${n}-item-container > ${n}-item-tail`]:{insetInlineStart:e.iconSizeSM/2-e.lineWidth+e.paddingXXS},[`&${n}-label-vertical`]:{[`${n}-item ${n}-item-tail`]:{top:e.margin-2*e.lineWidth}},[`${n}-item-icon`]:{position:"relative",[`${t}-progress`]:{position:"absolute",insetBlockStart:(e.iconSize-e.stepsProgressSize-2*e.lineWidth)/2,insetInlineStart:(e.iconSize-e.stepsProgressSize-2*e.lineWidth)/2}}}}},H=e=>{let{componentCls:t,descriptionMaxWidth:n,lineHeight:i,dotCurrentSize:o,dotSize:r,motionDurationSlow:a}=e;return{[`&${t}-dot, &${t}-dot${t}-small`]:{[`${t}-item`]:{"&-title":{lineHeight:i},"&-tail":{top:Math.floor((e.dotSize-3*e.lineWidth)/2),width:"100%",marginTop:0,marginBottom:0,marginInline:`${n/2}px 0`,padding:0,"&::after":{width:`calc(100% - ${2*e.marginSM}px)`,height:3*e.lineWidth,marginInlineStart:e.marginSM}},"&-icon":{width:r,height:r,marginInlineStart:(e.descriptionMaxWidth-r)/2,paddingInlineEnd:0,lineHeight:`${r}px`,background:"transparent",border:0,[`${t}-icon-dot`]:{position:"relative",float:"left",width:"100%",height:"100%",borderRadius:100,transition:`all ${a}`,"&::after":{position:"absolute",top:-e.marginSM,insetInlineStart:(r-1.5*e.controlHeightLG)/2,width:1.5*e.controlHeightLG,height:e.controlHeight,background:"transparent",content:'""'}}},"&-content":{width:n},[`&-process ${t}-item-icon`]:{position:"relative",top:(r-o)/2,width:o,height:o,lineHeight:`${o}px`,background:"none",marginInlineStart:(e.descriptionMaxWidth-o)/2},[`&-process ${t}-icon`]:{[`&:first-child ${t}-icon-dot`]:{insetInlineStart:0}}}},[`&${t}-vertical${t}-dot`]:{[`${t}-item-icon`]:{marginTop:(e.controlHeight-r)/2,marginInlineStart:0,background:"none"},[`${t}-item-process ${t}-item-icon`]:{marginTop:(e.controlHeight-o)/2,top:0,insetInlineStart:(r-o)/2,marginInlineStart:0},[`${t}-item > ${t}-item-container > ${t}-item-tail`]:{top:(e.controlHeight-r)/2,insetInlineStart:0,margin:0,padding:`${r+e.paddingXS}px 0 ${e.paddingXS}px`,"&::after":{marginInlineStart:(r-e.lineWidth)/2}},[`&${t}-small`]:{[`${t}-item-icon`]:{marginTop:(e.controlHeightSM-r)/2},[`${t}-item-process ${t}-item-icon`]:{marginTop:(e.controlHeightSM-o)/2},[`${t}-item > ${t}-item-container > ${t}-item-tail`]:{top:(e.controlHeightSM-r)/2}},[`${t}-item:first-child ${t}-icon-dot`]:{insetInlineStart:0},[`${t}-item-content`]:{width:"inherit"}}}},j=e=>{let{componentCls:t}=e;return{[`&${t}-rtl`]:{direction:"rtl",[`${t}-item`]:{"&-subtitle":{float:"left"}},[`&${t}-navigation`]:{[`${t}-item::after`]:{transform:"rotate(-45deg)"}},[`&${t}-vertical`]:{[`> ${t}-item`]:{"&::after":{transform:"rotate(225deg)"},[`${t}-item-icon`]:{float:"right"}}},[`&${t}-dot`]:{[`${t}-item-icon ${t}-icon-dot, &${t}-small ${t}-item-icon ${t}-icon-dot`]:{float:"right"}}}}},T=e=>{let{componentCls:t,iconSizeSM:n,fontSizeSM:i,fontSize:o,colorTextDescription:r}=e;return{[`&${t}-small`]:{[`&${t}-horizontal:not(${t}-label-vertical) ${t}-item`]:{paddingInlineStart:e.paddingSM,"&:first-child":{paddingInlineStart:0}},[`${t}-item-icon`]:{width:n,height:n,marginTop:0,marginBottom:0,marginInline:`0 ${e.marginXS}px`,fontSize:i,lineHeight:`${n}px`,textAlign:"center",borderRadius:n},[`${t}-item-title`]:{paddingInlineEnd:e.paddingSM,fontSize:o,lineHeight:`${n}px`,"&::after":{top:n/2}},[`${t}-item-description`]:{color:r,fontSize:o},[`${t}-item-tail`]:{top:n/2-e.paddingXXS},[`${t}-item-custom ${t}-item-icon`]:{width:"inherit",height:"inherit",lineHeight:"inherit",background:"none",border:0,borderRadius:0,[`> ${t}-icon`]:{fontSize:n,lineHeight:`${n}px`,transform:"none"}}}}},B=e=>{let{componentCls:t,iconSizeSM:n,iconSize:i}=e;return{[`&${t}-vertical`]:{display:"flex",flexDirection:"column",[`> ${t}-item`]:{display:"block",flex:"1 0 auto",paddingInlineStart:0,overflow:"visible",[`${t}-item-icon`]:{float:"left",marginInlineEnd:e.margin},[`${t}-item-content`]:{display:"block",minHeight:1.5*e.controlHeight,overflow:"hidden"},[`${t}-item-title`]:{lineHeight:`${i}px`},[`${t}-item-description`]:{paddingBottom:e.paddingSM}},[`> ${t}-item > ${t}-item-container > ${t}-item-tail`]:{position:"absolute",top:0,insetInlineStart:i/2-e.lineWidth,width:e.lineWidth,height:"100%",padding:`${i+1.5*e.marginXXS}px 0 ${1.5*e.marginXXS}px`,"&::after":{width:e.lineWidth,height:"100%"}},[`> ${t}-item:not(:last-child) > ${t}-item-container > ${t}-item-tail`]:{display:"block"},[` > ${t}-item > ${t}-item-container > ${t}-item-content > ${t}-item-title`]:{"&::after":{display:"none"}},[`&${t}-small ${t}-item-container`]:{[`${t}-item-tail`]:{position:"absolute",top:0,insetInlineStart:n/2-e.lineWidth,padding:`${n+1.5*e.marginXXS}px 0 ${1.5*e.marginXXS}px`},[`${t}-item-title`]:{lineHeight:`${n}px`}}}}};(i=o||(o={})).wait="wait",i.process="process",i.finish="finish",i.error="error";let D=(e,t)=>{let n=`${t.componentCls}-item`,i=`${e}IconColor`,o=`${e}TitleColor`,r=`${e}DescriptionColor`,a=`${e}TailColor`,l=`${e}IconBgColor`,c=`${e}IconBorderColor`,s=`${e}DotColor`;return{[`${n}-${e} ${n}-icon`]:{backgroundColor:t[l],borderColor:t[c],[`> ${t.componentCls}-icon`]:{color:t[i],[`${t.componentCls}-icon-dot`]:{background:t[s]}}},[`${n}-${e}${n}-custom ${n}-icon`]:{[`> ${t.componentCls}-icon`]:{color:t[s]}},[`${n}-${e} > ${n}-container > ${n}-content > ${n}-title`]:{color:t[o],"&::after":{backgroundColor:t[a]}},[`${n}-${e} > ${n}-container > ${n}-content > ${n}-description`]:{color:t[r]},[`${n}-${e} > ${n}-container > ${n}-tail::after`]:{backgroundColor:t[a]}}},P=e=>{let{componentCls:t,motionDurationSlow:n}=e,i=`${t}-item`,r=`${i}-icon`;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[i]:{position:"relative",display:"inline-block",flex:1,overflow:"hidden",verticalAlign:"top","&:last-child":{flex:"none",[`> ${i}-container > ${i}-tail, > ${i}-container > ${i}-content > ${i}-title::after`]:{display:"none"}}},[`${i}-container`]:{outline:"none","&:focus-visible":{[r]:Object.assign({},(0,z.oN)(e))}},[`${r}, ${i}-content`]:{display:"inline-block",verticalAlign:"top"},[r]:{width:e.iconSize,height:e.iconSize,marginTop:0,marginBottom:0,marginInlineStart:0,marginInlineEnd:e.marginXS,fontSize:e.iconFontSize,fontFamily:e.fontFamily,lineHeight:`${e.iconSize}px`,textAlign:"center",borderRadius:e.iconSize,border:`${e.lineWidth}px ${e.lineType} transparent`,transition:`background-color ${n}, border-color ${n}`,[`${t}-icon`]:{position:"relative",top:e.iconTop,color:e.colorPrimary,lineHeight:1}},[`${i}-tail`]:{position:"absolute",top:e.iconSize/2-e.paddingXXS,insetInlineStart:0,width:"100%","&::after":{display:"inline-block",width:"100%",height:e.lineWidth,background:e.colorSplit,borderRadius:e.lineWidth,transition:`background ${n}`,content:'""'}},[`${i}-title`]:{position:"relative",display:"inline-block",paddingInlineEnd:e.padding,color:e.colorText,fontSize:e.fontSizeLG,lineHeight:`${e.titleLineHeight}px`,"&::after":{position:"absolute",top:e.titleLineHeight/2,insetInlineStart:"100%",display:"block",width:9999,height:e.lineWidth,background:e.processTailColor,content:'""'}},[`${i}-subtitle`]:{display:"inline",marginInlineStart:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize},[`${i}-description`]:{color:e.colorTextDescription,fontSize:e.fontSize}},D(o.wait,e)),D(o.process,e)),{[`${i}-process > ${i}-container > ${i}-title`]:{fontWeight:e.fontWeightStrong}}),D(o.finish,e)),D(o.error,e)),{[`${i}${t}-next-error > ${t}-item-title::after`]:{background:e.colorError},[`${i}-disabled`]:{cursor:"not-allowed"}})},X=e=>{let{componentCls:t,motionDurationSlow:n}=e;return{[`& ${t}-item`]:{[`&:not(${t}-item-active)`]:{[`& > ${t}-item-container[role='button']`]:{cursor:"pointer",[`${t}-item`]:{[`&-title, &-subtitle, &-description, &-icon ${t}-icon`]:{transition:`color ${n}`}},"&:hover":{[`${t}-item`]:{"&-title, &-subtitle, &-description":{color:e.colorPrimary}}}},[`&:not(${t}-item-process)`]:{[`& > ${t}-item-container[role='button']:hover`]:{[`${t}-item`]:{"&-icon":{borderColor:e.colorPrimary,[`${t}-icon`]:{color:e.colorPrimary}}}}}}},[`&${t}-horizontal:not(${t}-label-vertical)`]:{[`${t}-item`]:{paddingInlineStart:e.padding,whiteSpace:"nowrap","&:first-child":{paddingInlineStart:0},[`&:last-child ${t}-item-title`]:{paddingInlineEnd:0},"&-tail":{display:"none"},"&-description":{maxWidth:e.descriptionMaxWidth,whiteSpace:"normal"}}}}},R=e=>{let{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,z.Wf)(e)),{display:"flex",width:"100%",fontSize:0,textAlign:"initial"}),P(e)),X(e)),Z(e)),T(e)),B(e)),N(e)),H(e)),O(e)),j(e)),M(e)),k(e))}};var W=(0,I.Z)("Steps",e=>{let{wireframe:t,colorTextDisabled:n,controlHeightLG:i,colorTextLightSolid:o,colorText:r,colorPrimary:a,colorTextLabel:l,colorTextDescription:c,colorTextQuaternary:s,colorFillContent:d,controlItemBgActive:p,colorError:m,colorBgContainer:g,colorBorderSecondary:u,colorSplit:h}=e,f=(0,E.TS)(e,{processIconColor:o,processTitleColor:r,processDescriptionColor:r,processIconBgColor:a,processIconBorderColor:a,processDotColor:a,processTailColor:h,waitIconColor:t?n:l,waitTitleColor:c,waitDescriptionColor:c,waitTailColor:h,waitIconBgColor:t?g:d,waitIconBorderColor:t?n:"transparent",waitDotColor:n,finishIconColor:a,finishTitleColor:r,finishDescriptionColor:c,finishTailColor:a,finishIconBgColor:t?g:p,finishIconBorderColor:t?a:p,finishDotColor:a,errorIconColor:o,errorTitleColor:m,errorDescriptionColor:m,errorTailColor:h,errorIconBgColor:m,errorIconBorderColor:m,errorDotColor:m,stepsNavActiveColor:a,stepsProgressSize:i,inlineDotSize:6,inlineTitleColor:s,inlineTailColor:u});return[R(f)]},e=>{let{colorTextDisabled:t,fontSize:n,controlHeightSM:i,controlHeight:o,controlHeightLG:r,fontSizeHeading3:a}=e;return{titleLineHeight:o,customIconSize:o,customIconTop:0,customIconFontSize:i,iconSize:o,iconTop:-.5,iconFontSize:n,iconSizeSM:a,dotSize:o/4,dotCurrentSize:r/4,navArrowColor:t,navContentMaxWidth:"auto",descriptionMaxWidth:140}}),L=n(50344),A=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,i=Object.getOwnPropertySymbols(e);ot.indexOf(i[o])&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]]);return n};let G=e=>{let{percent:t,size:n,className:i,rootClassName:o,direction:l,items:s,responsive:d=!0,current:p=0,children:m,style:u}=e,h=A(e,["percent","size","className","rootClassName","direction","items","responsive","current","children","style"]),{xs:f}=(0,y.Z)(d),{getPrefixCls:$,direction:v,steps:z}=g.useContext(S.E_),I=g.useMemo(()=>d&&f?"vertical":l,[f,l]),E=(0,x.Z)(n),Z=$("steps",e.prefixCls),[k,N]=W(Z),O="inline"===e.type,M=$("",e.iconPrefix),H=function(e,t){if(e)return e;let n=(0,L.Z)(t).map(e=>{if(g.isValidElement(e)){let{props:t}=e,n=Object.assign({},t);return n}return null});return n.filter(e=>e)}(s,m),j=O?void 0:t,T=Object.assign(Object.assign({},null==z?void 0:z.style),u),B=c()(null==z?void 0:z.className,{[`${Z}-rtl`]:"rtl"===v,[`${Z}-with-progress`]:void 0!==j},i,o,N),D={finish:g.createElement(r.Z,{className:`${Z}-finish-icon`}),error:g.createElement(a.Z,{className:`${Z}-error-icon`})};return k(g.createElement(b,Object.assign({icons:D},h,{style:T,current:p,size:E,items:H,itemRender:O?(e,t)=>e.description?g.createElement(w.Z,{title:e.description},t):t:void 0,stepIcon:e=>{let{node:t,status:n}=e;return"process"===n&&void 0!==j?g.createElement("div",{className:`${Z}-progress-icon`},g.createElement(C.Z,{type:"circle",percent:j,size:"small"===E?32:40,strokeWidth:4,format:()=>null}),t):t},direction:I,prefixCls:Z,iconPrefix:M,className:B})))};G.Step=b.Step;var V=G},50132:function(e,t,n){var i=n(87462),o=n(1413),r=n(4942),a=n(97685),l=n(45987),c=n(94184),s=n.n(c),d=n(21770),p=n(67294),m=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],g=(0,p.forwardRef)(function(e,t){var n,c=e.prefixCls,g=void 0===c?"rc-checkbox":c,u=e.className,h=e.style,f=e.checked,$=e.disabled,v=e.defaultChecked,b=e.type,S=void 0===b?"checkbox":b,x=e.title,y=e.onChange,C=(0,l.Z)(e,m),w=(0,p.useRef)(null),z=(0,d.Z)(void 0!==v&&v,{value:f}),I=(0,a.Z)(z,2),E=I[0],Z=I[1];(0,p.useImperativeHandle)(t,function(){return{focus:function(){var e;null===(e=w.current)||void 0===e||e.focus()},blur:function(){var e;null===(e=w.current)||void 0===e||e.blur()},input:w.current}});var k=s()(g,u,(n={},(0,r.Z)(n,"".concat(g,"-checked"),E),(0,r.Z)(n,"".concat(g,"-disabled"),$),n));return p.createElement("span",{className:k,title:x,style:h},p.createElement("input",(0,i.Z)({},C,{className:"".concat(g,"-input"),ref:w,onChange:function(t){$||("checked"in e||Z(t.target.checked),null==y||y({target:(0,o.Z)((0,o.Z)({},e),{},{type:S,checked:t.target.checked}),stopPropagation:function(){t.stopPropagation()},preventDefault:function(){t.preventDefault()},nativeEvent:t.nativeEvent}))},disabled:$,checked:!!E,type:S})),p.createElement("span",{className:"".concat(g,"-inner")}))});t.Z=g}}]); \ No newline at end of file diff --git a/dbgpt/app/static/_next/static/chunks/464-9f427eb33a824756.js b/dbgpt/app/static/_next/static/chunks/464-9f427eb33a824756.js deleted file mode 100644 index 176c15073..000000000 --- a/dbgpt/app/static/_next/static/chunks/464-9f427eb33a824756.js +++ /dev/null @@ -1,11 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[464],{6321:function(e,t,n){n.d(t,{Z:function(){return l}});var i=n(87462),o=n(67294),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 244c176.18 0 319 142.82 319 319v233a32 32 0 01-32 32H225a32 32 0 01-32-32V563c0-176.18 142.82-319 319-319zM484 68h56a8 8 0 018 8v96a8 8 0 01-8 8h-56a8 8 0 01-8-8V76a8 8 0 018-8zM177.25 191.66a8 8 0 0111.32 0l67.88 67.88a8 8 0 010 11.31l-39.6 39.6a8 8 0 01-11.31 0l-67.88-67.88a8 8 0 010-11.31l39.6-39.6zm669.6 0l39.6 39.6a8 8 0 010 11.3l-67.88 67.9a8 8 0 01-11.32 0l-39.6-39.6a8 8 0 010-11.32l67.89-67.88a8 8 0 0111.31 0zM192 892h640a32 32 0 0132 32v24a8 8 0 01-8 8H168a8 8 0 01-8-8v-24a32 32 0 0132-32zm148-317v253h64V575h-64z"}}]},name:"alert",theme:"filled"},a=n(84089),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,i.Z)({},e,{ref:t,icon:r}))})},90389:function(e,t,n){n.d(t,{Z:function(){return l}});var i=n(87462),o=n(67294),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-260 72h96v209.9L621.5 312 572 347.4V136zm220 752H232V136h280v296.9c0 3.3 1 6.6 3 9.3a15.9 15.9 0 0022.3 3.7l83.8-59.9 81.4 59.4c2.7 2 6 3.1 9.4 3.1 8.8 0 16-7.2 16-16V136h64v752z"}}]},name:"book",theme:"outlined"},a=n(84089),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,i.Z)({},e,{ref:t,icon:r}))})},27704:function(e,t,n){n.d(t,{Z:function(){return l}});var i=n(87462),o=n(67294),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 256H736v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80H160c-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-32zm-200 0H360v-72h304v72z"}}]},name:"delete",theme:"filled"},a=n(84089),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,i.Z)({},e,{ref:t,icon:r}))})},31484:function(e,t,n){n.d(t,{Z:function(){return l}});var i=n(87462),o=n(67294),r={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M292.7 840h438.6l24.2-512h-487z",fill:t}},{tag:"path",attrs:{d:"M864 256H736v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80H160c-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-32zm-504-72h304v72H360v-72zm371.3 656H292.7l-24.2-512h487l-24.2 512z",fill:e}}]}},name:"delete",theme:"twotone"},a=n(84089),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,i.Z)({},e,{ref:t,icon:r}))})},80882:function(e,t,n){n.d(t,{Z:function(){return l}});var i=n(87462),o=n(67294),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},a=n(84089),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,i.Z)({},e,{ref:t,icon:r}))})},31326:function(e,t,n){n.d(t,{Z:function(){return l}});var i=n(87462),o=n(67294),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M396 512a112 112 0 10224 0 112 112 0 10-224 0zm546.2-25.8C847.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.5zM508 688c-97.2 0-176-78.8-176-176s78.8-176 176-176 176 78.8 176 176-78.8 176-176 176z"}}]},name:"eye",theme:"filled"},a=n(84089),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,i.Z)({},e,{ref:t,icon:r}))})},31545:function(e,t,n){n.d(t,{Z:function(){return l}});var i=n(87462),o=n(67294),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M688 312v-48c0-4.4-3.6-8-8-8H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8zm-392 88c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H296zm144 452H208V148h560v344c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h272c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm445.7 51.5l-93.3-93.3C814.7 780.7 828 743.9 828 704c0-97.2-78.8-176-176-176s-176 78.8-176 176 78.8 176 176 176c35.8 0 69-10.7 96.8-29l94.7 94.7c1.6 1.6 3.6 2.3 5.6 2.3s4.1-.8 5.6-2.3l31-31a7.9 7.9 0 000-11.2zM652 816c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"file-search",theme:"outlined"},a=n(84089),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,i.Z)({},e,{ref:t,icon:r}))})},27595:function(e,t,n){n.d(t,{Z:function(){return l}});var i=n(87462),o=n(67294),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM320 482a8 8 0 00-8 8v48a8 8 0 008 8h384a8 8 0 008-8v-48a8 8 0 00-8-8H320zm0 136a8 8 0 00-8 8v48a8 8 0 008 8h184a8 8 0 008-8v-48a8 8 0 00-8-8H320z"}}]},name:"file-text",theme:"filled"},a=n(84089),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,i.Z)({},e,{ref:t,icon:r}))})},27329:function(e,t,n){n.d(t,{Z:function(){return l}});var i=n(87462),o=n(67294),r={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42zm101.3 129.3c1.3-5.4 6.1-9.3 11.7-9.3h35.6a12.04 12.04 0 0111.6 15.1l-74.4 276c-1.4 5.3-6.2 8.9-11.6 8.9h-31.8c-5.4 0-10.2-3.7-11.6-8.9l-52.8-197-52.8 197c-1.4 5.3-6.2 8.9-11.6 8.9h-32c-5.4 0-10.2-3.7-11.6-8.9l-74.2-276a12.02 12.02 0 0111.6-15.1h35.4c5.6 0 10.4 3.9 11.7 9.3L434.6 680l49.7-198.9c1.3-5.4 6.1-9.1 11.6-9.1h32.2c5.5 0 10.3 3.7 11.6 9.1l49.8 199.3 45.8-199.1z",fill:t}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:e}},{tag:"path",attrs:{d:"M528.1 472h-32.2c-5.5 0-10.3 3.7-11.6 9.1L434.6 680l-46.1-198.7c-1.3-5.4-6.1-9.3-11.7-9.3h-35.4a12.02 12.02 0 00-11.6 15.1l74.2 276c1.4 5.2 6.2 8.9 11.6 8.9h32c5.4 0 10.2-3.6 11.6-8.9l52.8-197 52.8 197c1.4 5.2 6.2 8.9 11.6 8.9h31.8c5.4 0 10.2-3.6 11.6-8.9l74.4-276a12.04 12.04 0 00-11.6-15.1H647c-5.6 0-10.4 3.9-11.7 9.3l-45.8 199.1-49.8-199.3c-1.3-5.4-6.1-9.1-11.6-9.1z",fill:e}}]}},name:"file-word",theme:"twotone"},a=n(84089),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,i.Z)({},e,{ref:t,icon:r}))})},68346:function(e,t,n){n.d(t,{Z:function(){return l}});var i=n(87462),o=n(67294),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M693.6 284.4c-24 0-51.1 11.7-72.6 22 46.3 18 86 57.3 112.3 99.6 7.1-18.9 14.6-47.9 14.6-67.9 0-32-22.8-53.7-54.3-53.7zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm253.9 492.9H437.1c0 100.4 144.3 136 196.8 47.4h120.8c-32.6 91.7-119.7 146-216.8 146-35.1 0-70.3-.1-101.7-15.6-87.4 44.5-180.3 56.6-180.3-42 0-45.8 23.2-107.1 44-145C335 484 381.3 422.8 435.6 374.5c-43.7 18.9-91.1 66.3-122 101.2 25.9-112.8 129.5-193.6 237.1-186.5 130-59.8 209.7-34.1 209.7 38.6 0 27.4-10.6 63.3-21.4 87.9 25.2 45.5 33.3 97.6 26.9 141.2zM540.5 399.1c-53.7 0-102 39.7-104 94.9h208c-2-55.1-50.6-94.9-104-94.9zM320.6 602.9c-73 152.4 11.5 172.2 100.3 123.3-46.6-27.5-82.6-72.2-100.3-123.3z"}}]},name:"ie-circle",theme:"filled"},a=n(84089),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,i.Z)({},e,{ref:t,icon:r}))})},64082:function(e,t,n){n.d(t,{Z:function(){return l}});var i=n(87462),o=n(67294),r={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"},a=n(84089),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,i.Z)({},e,{ref:t,icon:r}))})},88008:function(e,t,n){n.d(t,{Z:function(){return l}});var i=n(87462),o=n(67294),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM726 585.7c0 55.3-44.7 100.1-99.7 100.1H420.6v53.4c0 5.7-6.5 8.8-10.9 5.3l-109.1-85.7c-3.5-2.7-3.5-8 0-10.7l109.1-85.7c4.4-3.5 10.9-.3 10.9 5.3v53.4h205.7c19.6 0 35.5-16 35.5-35.6v-78.9c0-3.7 3-6.8 6.8-6.8h50.7c3.7 0 6.8 3 6.8 6.8v79.1zm-2.6-209.9l-109.1 85.7c-4.4 3.5-10.9.3-10.9-5.3v-53.4H397.7c-19.6 0-35.5 16-35.5 35.6v78.9c0 3.7-3 6.8-6.8 6.8h-50.7c-3.7 0-6.8-3-6.8-6.8v-78.9c0-55.3 44.7-100.1 99.7-100.1h205.7v-53.4c0-5.7 6.5-8.8 10.9-5.3l109.1 85.7c3.6 2.5 3.6 7.8.1 10.5z"}}]},name:"interaction",theme:"filled"},a=n(84089),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,i.Z)({},e,{ref:t,icon:r}))})},78346:function(e,t,n){n.d(t,{Z:function(){return l}});var i=n(87462),o=n(67294),r={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M775.3 248.9a369.62 369.62 0 00-119-80A370.2 370.2 0 00512.1 140h-1.7c-99.7.4-193 39.4-262.8 109.9-69.9 70.5-108 164.1-107.6 263.8.3 60.3 15.3 120.2 43.5 173.1l4.5 8.4V836h140.8l8.4 4.5c52.9 28.2 112.8 43.2 173.1 43.5h1.7c99 0 192-38.2 262.1-107.6 70.4-69.8 109.5-163.1 110.1-262.7.2-50.6-9.5-99.6-28.9-145.8a370.15 370.15 0 00-80-119zM312 560a48.01 48.01 0 010-96 48.01 48.01 0 010 96zm200 0a48.01 48.01 0 010-96 48.01 48.01 0 010 96zm200 0a48.01 48.01 0 010-96 48.01 48.01 0 010 96z",fill:t}},{tag:"path",attrs:{d:"M664 512a48 48 0 1096 0 48 48 0 10-96 0zm-400 0a48 48 0 1096 0 48 48 0 10-96 0z",fill:e}},{tag:"path",attrs:{d:"M925.2 338.4c-22.6-53.7-55-101.9-96.3-143.3a444.35 444.35 0 00-143.3-96.3C630.6 75.7 572.2 64 512 64h-2c-60.6.3-119.3 12.3-174.5 35.9a445.35 445.35 0 00-142 96.5c-40.9 41.3-73 89.3-95.2 142.8-23 55.4-34.6 114.3-34.3 174.9A449.4 449.4 0 00112 714v152a46 46 0 0046 46h152.1A449.4 449.4 0 00510 960h2.1c59.9 0 118-11.6 172.7-34.3a444.48 444.48 0 00142.8-95.2c41.3-40.9 73.8-88.7 96.5-142 23.6-55.2 35.6-113.9 35.9-174.5.3-60.9-11.5-120-34.8-175.6zm-151.1 438C704 845.8 611 884 512 884h-1.7c-60.3-.3-120.2-15.3-173.1-43.5l-8.4-4.5H188V695.2l-4.5-8.4C155.3 633.9 140.3 574 140 513.7c-.4-99.7 37.7-193.3 107.6-263.8 69.8-70.5 163.1-109.5 262.8-109.9h1.7c50 0 98.5 9.7 144.2 28.9 44.6 18.7 84.6 45.6 119 80 34.3 34.3 61.3 74.4 80 119 19.4 46.2 29.1 95.2 28.9 145.8-.6 99.6-39.7 192.9-110.1 262.7z",fill:e}},{tag:"path",attrs:{d:"M464 512a48 48 0 1096 0 48 48 0 10-96 0z",fill:e}}]}},name:"message",theme:"twotone"},a=n(84089),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,i.Z)({},e,{ref:t,icon:r}))})},18754:function(e,t,n){n.d(t,{Z:function(){return l}});var i=n(87462),o=n(67294),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M865.3 244.7c-.3-.3-61.1 59.8-182.1 180.6l-84.9-84.9 180.9-180.9c-95.2-57.3-217.5-42.6-296.8 36.7A244.42 244.42 0 00419 432l1.8 6.7-283.5 283.4c-6.2 6.2-6.2 16.4 0 22.6l141.4 141.4c6.2 6.2 16.4 6.2 22.6 0l283.3-283.3 6.7 1.8c83.7 22.3 173.6-.9 236-63.3 79.4-79.3 94.1-201.6 38-296.6z"}}]},name:"tool",theme:"filled"},a=n(84089),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,i.Z)({},e,{ref:t,icon:r}))})},28058:function(e,t,n){n.d(t,{Z:function(){return l}});var i=n(87462),o=n(67294),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 720a48 48 0 1096 0 48 48 0 10-96 0zm16-304v184c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V416c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8zm475.7 440l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zm-783.5-27.9L512 239.9l339.8 588.2H172.2z"}}]},name:"warning",theme:"outlined"},a=n(84089),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,i.Z)({},e,{ref:t,icon:r}))})},38925:function(e,t,n){n.d(t,{Z:function(){return j}});var i=n(89739),o=n(4340),r=n(97937),a=n(21640),l=n(78860),c=n(94184),s=n.n(c),d=n(82225),p=n(64217),m=n(67294),u=n(96159),g=n(53124),f=n(14747),h=n(67968),$=n(45503);let v=(e,t,n,i,o)=>({backgroundColor:e,border:`${i.lineWidth}px ${i.lineType} ${t}`,[`${o}-icon`]:{color:n}}),b=e=>{let{componentCls:t,motionDurationSlow:n,marginXS:i,marginSM:o,fontSize:r,fontSizeLG:a,lineHeight:l,borderRadiusLG:c,motionEaseInOutCirc:s,alertIconSizeLG:d,colorText:p,paddingContentVerticalSM:m,alertPaddingHorizontal:u,paddingMD:g,paddingContentHorizontalLG:h,colorTextHeading:$}=e;return{[t]:Object.assign(Object.assign({},(0,f.Wf)(e)),{position:"relative",display:"flex",alignItems:"center",padding:`${m}px ${u}px`,wordWrap:"break-word",borderRadius:c,[`&${t}-rtl`]:{direction:"rtl"},[`${t}-content`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:i,lineHeight:0},"&-description":{display:"none",fontSize:r,lineHeight:l},"&-message":{color:p},[`&${t}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${n} ${s}, opacity ${n} ${s}, - padding-top ${n} ${s}, padding-bottom ${n} ${s}, - margin-bottom ${n} ${s}`},[`&${t}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),[`${t}-with-description`]:{alignItems:"flex-start",paddingInline:h,paddingBlock:g,[`${t}-icon`]:{marginInlineEnd:o,fontSize:d,lineHeight:0},[`${t}-message`]:{display:"block",marginBottom:i,color:$,fontSize:a},[`${t}-description`]:{display:"block"}},[`${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},x=e=>{let{componentCls:t,colorSuccess:n,colorSuccessBorder:i,colorSuccessBg:o,colorWarning:r,colorWarningBorder:a,colorWarningBg:l,colorError:c,colorErrorBorder:s,colorErrorBg:d,colorInfo:p,colorInfoBorder:m,colorInfoBg:u}=e;return{[t]:{"&-success":v(o,i,n,e,t),"&-info":v(u,m,p,e,t),"&-warning":v(l,a,r,e,t),"&-error":Object.assign(Object.assign({},v(d,s,c,e,t)),{[`${t}-description > pre`]:{margin:0,padding:0}})}}},y=e=>{let{componentCls:t,iconCls:n,motionDurationMid:i,marginXS:o,fontSizeIcon:r,colorIcon:a,colorIconHover:l}=e;return{[t]:{"&-action":{marginInlineStart:o},[`${t}-close-icon`]:{marginInlineStart:o,padding:0,overflow:"hidden",fontSize:r,lineHeight:`${r}px`,backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${n}-close`]:{color:a,transition:`color ${i}`,"&:hover":{color:l}}},"&-close-text":{color:a,transition:`color ${i}`,"&:hover":{color:l}}}}},S=e=>[b(e),x(e),y(e)];var w=(0,h.Z)("Alert",e=>{let{fontSizeHeading3:t}=e,n=(0,$.TS)(e,{alertIconSizeLG:t,alertPaddingHorizontal:12});return[S(n)]}),C=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,i=Object.getOwnPropertySymbols(e);ot.indexOf(i[o])&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]]);return n};let I={success:i.Z,info:l.Z,error:o.Z,warning:a.Z},z=e=>{let{icon:t,prefixCls:n,type:i}=e,o=I[i]||null;return t?(0,u.wm)(t,m.createElement("span",{className:`${n}-icon`},t),()=>({className:s()(`${n}-icon`,{[t.props.className]:t.props.className})})):m.createElement(o,{className:`${n}-icon`})},Z=e=>{let{isClosable:t,prefixCls:n,closeIcon:i,handleClose:o}=e,a=!0===i||void 0===i?m.createElement(r.Z,null):i;return t?m.createElement("button",{type:"button",onClick:o,className:`${n}-close-icon`,tabIndex:0},a):null};var E=e=>{let{description:t,prefixCls:n,message:i,banner:o,className:r,rootClassName:a,style:l,onMouseEnter:c,onMouseLeave:u,onClick:f,afterClose:h,showIcon:$,closable:v,closeText:b,closeIcon:x,action:y}=e,S=C(e,["description","prefixCls","message","banner","className","rootClassName","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action"]),[I,E]=m.useState(!1),k=m.useRef(null),{getPrefixCls:O,direction:N,alert:H}=m.useContext(g.E_),M=O("alert",n),[j,B]=w(M),P=t=>{var n;E(!0),null===(n=e.onClose)||void 0===n||n.call(e,t)},T=m.useMemo(()=>void 0!==e.type?e.type:o?"warning":"info",[e.type,o]),W=m.useMemo(()=>!!b||("boolean"==typeof v?v:!1!==x&&null!=x),[b,x,v]),R=!!o&&void 0===$||$,X=s()(M,`${M}-${T}`,{[`${M}-with-description`]:!!t,[`${M}-no-icon`]:!R,[`${M}-banner`]:!!o,[`${M}-rtl`]:"rtl"===N},null==H?void 0:H.className,r,a,B),A=(0,p.Z)(S,{aria:!0,data:!0});return j(m.createElement(d.ZP,{visible:!I,motionName:`${M}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:e=>({maxHeight:e.offsetHeight}),onLeaveEnd:h},n=>{let{className:o,style:r}=n;return m.createElement("div",Object.assign({ref:k,"data-show":!I,className:s()(X,o),style:Object.assign(Object.assign(Object.assign({},null==H?void 0:H.style),l),r),onMouseEnter:c,onMouseLeave:u,onClick:f,role:"alert"},A),R?m.createElement(z,{description:t,icon:e.icon,prefixCls:M,type:T}):null,m.createElement("div",{className:`${M}-content`},i?m.createElement("div",{className:`${M}-message`},i):null,t?m.createElement("div",{className:`${M}-description`},t):null),y?m.createElement("div",{className:`${M}-action`},y):null,m.createElement(Z,{isClosable:W,prefixCls:M,closeIcon:b||x,handleClose:P}))}))},k=n(15671),O=n(43144),N=n(32531),H=n(73568);let M=function(e){(0,N.Z)(n,e);var t=(0,H.Z)(n);function n(){var e;return(0,k.Z)(this,n),e=t.apply(this,arguments),e.state={error:void 0,info:{componentStack:""}},e}return(0,O.Z)(n,[{key:"componentDidCatch",value:function(e,t){this.setState({error:e,info:t})}},{key:"render",value:function(){let{message:e,description:t,children:n}=this.props,{error:i,info:o}=this.state,r=o&&o.componentStack?o.componentStack:null,a=void 0===e?(i||"").toString():e;return i?m.createElement(E,{type:"error",message:a,description:m.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},void 0===t?r:t)}):n}}]),n}(m.Component);E.ErrorBoundary=M;var j=E},15746:function(e,t,n){var i=n(21584);t.Z=i.Z},47221:function(e,t,n){n.d(t,{Z:function(){return L}});var i=n(18073),o=n(94184),r=n.n(o),a=n(97685),l=n(74902),c=n(71002),s=n(21770),d=n(80334),p=n(67294),m=n(87462),u=n(45987),g=n(50344),f=n(4942),h=n(82225),$=n(15105),v=p.forwardRef(function(e,t){var n,i=e.prefixCls,o=e.forceRender,l=e.className,c=e.style,s=e.children,d=e.isActive,m=e.role,u=p.useState(d||o),g=(0,a.Z)(u,2),h=g[0],$=g[1];return(p.useEffect(function(){(o||d)&&$(!0)},[o,d]),h)?p.createElement("div",{ref:t,className:r()("".concat(i,"-content"),(n={},(0,f.Z)(n,"".concat(i,"-content-active"),d),(0,f.Z)(n,"".concat(i,"-content-inactive"),!d),n),l),style:c,role:m},p.createElement("div",{className:"".concat(i,"-content-box")},s)):null});v.displayName="PanelContent";var b=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],x=p.forwardRef(function(e,t){var n,i,o=e.showArrow,a=void 0===o||o,l=e.headerClass,c=e.isActive,s=e.onItemClick,d=e.forceRender,g=e.className,x=e.prefixCls,y=e.collapsible,S=e.accordion,w=e.panelKey,C=e.extra,I=e.header,z=e.expandIcon,Z=e.openMotion,E=e.destroyInactivePanel,k=e.children,O=(0,u.Z)(e,b),N="disabled"===y,H="header"===y,M="icon"===y,j=null!=C&&"boolean"!=typeof C,B=function(){null==s||s(w)},P="function"==typeof z?z(e):p.createElement("i",{className:"arrow"});P&&(P=p.createElement("div",{className:"".concat(x,"-expand-icon"),onClick:["header","icon"].includes(y)?B:void 0},P));var T=r()((n={},(0,f.Z)(n,"".concat(x,"-item"),!0),(0,f.Z)(n,"".concat(x,"-item-active"),c),(0,f.Z)(n,"".concat(x,"-item-disabled"),N),n),g),W={className:r()(l,(i={},(0,f.Z)(i,"".concat(x,"-header"),!0),(0,f.Z)(i,"".concat(x,"-header-collapsible-only"),H),(0,f.Z)(i,"".concat(x,"-icon-collapsible-only"),M),i)),"aria-expanded":c,"aria-disabled":N,onKeyDown:function(e){("Enter"===e.key||e.keyCode===$.Z.ENTER||e.which===$.Z.ENTER)&&B()}};return H||M||(W.onClick=B,W.role=S?"tab":"button",W.tabIndex=N?-1:0),p.createElement("div",(0,m.Z)({},O,{ref:t,className:T}),p.createElement("div",W,a&&P,p.createElement("span",{className:"".concat(x,"-header-text"),onClick:"header"===y?B:void 0},I),j&&p.createElement("div",{className:"".concat(x,"-extra")},C)),p.createElement(h.ZP,(0,m.Z)({visible:c,leavedClassName:"".concat(x,"-content-hidden")},Z,{forceRender:d,removeOnLeave:E}),function(e,t){var n=e.className,i=e.style;return p.createElement(v,{ref:t,prefixCls:x,className:n,style:i,isActive:c,forceRender:d,role:S?"tabpanel":void 0},k)}))}),y=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],S=function(e,t){var n=t.prefixCls,i=t.accordion,o=t.collapsible,r=t.destroyInactivePanel,a=t.onItemClick,l=t.activeKey,c=t.openMotion,s=t.expandIcon;return e.map(function(e,t){var d=e.children,g=e.label,f=e.key,h=e.collapsible,$=e.onItemClick,v=e.destroyInactivePanel,b=(0,u.Z)(e,y),S=String(null!=f?f:t),w=null!=h?h:o,C=!1;return C=i?l[0]===S:l.indexOf(S)>-1,p.createElement(x,(0,m.Z)({},b,{prefixCls:n,key:S,panelKey:S,isActive:C,accordion:i,openMotion:c,expandIcon:s,header:g,collapsible:w,onItemClick:function(e){"disabled"!==w&&(a(e),null==$||$(e))},destroyInactivePanel:null!=v?v:r}),d)})},w=function(e,t,n){if(!e)return null;var i=n.prefixCls,o=n.accordion,r=n.collapsible,a=n.destroyInactivePanel,l=n.onItemClick,c=n.activeKey,s=n.openMotion,d=n.expandIcon,m=e.key||String(t),u=e.props,g=u.header,f=u.headerClass,h=u.destroyInactivePanel,$=u.collapsible,v=u.onItemClick,b=!1;b=o?c[0]===m:c.indexOf(m)>-1;var x=null!=$?$:r,y={key:m,panelKey:m,header:g,headerClass:f,isActive:b,prefixCls:i,destroyInactivePanel:null!=h?h:a,openMotion:s,accordion:o,children:e.props.children,onItemClick:function(e){"disabled"!==x&&(l(e),null==v||v(e))},expandIcon:d,collapsible:x};return"string"==typeof e.type?e:(Object.keys(y).forEach(function(e){void 0===y[e]&&delete y[e]}),p.cloneElement(e,y))};function C(e){var t=e;if(!Array.isArray(t)){var n=(0,c.Z)(t);t="number"===n||"string"===n?[t]:[]}return t.map(function(e){return String(e)})}var I=Object.assign(p.forwardRef(function(e,t){var n,i=e.prefixCls,o=void 0===i?"rc-collapse":i,c=e.destroyInactivePanel,m=e.style,u=e.accordion,f=e.className,h=e.children,$=e.collapsible,v=e.openMotion,b=e.expandIcon,x=e.activeKey,y=e.defaultActiveKey,I=e.onChange,z=e.items,Z=r()(o,f),E=(0,s.Z)([],{value:x,onChange:function(e){return null==I?void 0:I(e)},defaultValue:y,postState:C}),k=(0,a.Z)(E,2),O=k[0],N=k[1];(0,d.ZP)(!h,"`children` will be removed in next major version. Please use `items` instead.");var H=(n={prefixCls:o,accordion:u,openMotion:v,expandIcon:b,collapsible:$,destroyInactivePanel:void 0!==c&&c,onItemClick:function(e){return N(function(){return u?O[0]===e?[]:[e]:O.indexOf(e)>-1?O.filter(function(t){return t!==e}):[].concat((0,l.Z)(O),[e])})},activeKey:O},Array.isArray(z)?S(z,n):(0,g.Z)(h).map(function(e,t){return w(e,t,n)}));return p.createElement("div",{ref:t,className:Z,style:m,role:u?"tablist":void 0},H)}),{Panel:x});I.Panel;var z=n(98423),Z=n(33603),E=n(96159),k=n(53124),O=n(98675);let N=p.forwardRef((e,t)=>{let{getPrefixCls:n}=p.useContext(k.E_),{prefixCls:i,className:o,showArrow:a=!0}=e,l=n("collapse",i),c=r()({[`${l}-no-arrow`]:!a},o);return p.createElement(I.Panel,Object.assign({ref:t},e,{prefixCls:l,className:c}))});var H=n(14747),M=n(33507),j=n(67968),B=n(45503);let P=e=>{let{componentCls:t,collapseContentBg:n,padding:i,collapseContentPaddingHorizontal:o,collapseHeaderBg:r,collapseHeaderPadding:a,collapseHeaderPaddingSM:l,collapseHeaderPaddingLG:c,collapsePanelBorderRadius:s,lineWidth:d,lineType:p,colorBorder:m,colorText:u,colorTextHeading:g,colorTextDisabled:f,fontSize:h,fontSizeLG:$,lineHeight:v,marginSM:b,paddingSM:x,paddingLG:y,paddingXS:S,motionDurationSlow:w,fontSizeIcon:C}=e,I=`${d}px ${p} ${m}`;return{[t]:Object.assign(Object.assign({},(0,H.Wf)(e)),{backgroundColor:r,border:I,borderBottom:0,borderRadius:`${s}px`,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:I,"&:last-child":{[` - &, - & > ${t}-header`]:{borderRadius:`0 0 ${s}px ${s}px`}},[`> ${t}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:a,paddingInlineStart:x,color:g,lineHeight:v,cursor:"pointer",transition:`all ${w}, visibility 0s`,[`> ${t}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${t}-expand-icon`]:{height:h*v,display:"flex",alignItems:"center",paddingInlineEnd:b,marginInlineStart:i-x},[`${t}-arrow`]:Object.assign(Object.assign({},(0,H.Ro)()),{fontSize:C,svg:{transition:`transform ${w}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}},[`${t}-header-collapsible-only`]:{cursor:"default",[`${t}-header-text`]:{flex:"none",cursor:"pointer"}},[`${t}-icon-collapsible-only`]:{cursor:"default",[`${t}-expand-icon`]:{cursor:"pointer"}}},[`${t}-content`]:{color:u,backgroundColor:n,borderTop:I,[`& > ${t}-content-box`]:{padding:`${i}px ${o}px`},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:l,paddingInlineStart:S,[`> ${t}-expand-icon`]:{marginInlineStart:x-S}},[`> ${t}-content > ${t}-content-box`]:{padding:x}}},"&-large":{[`> ${t}-item`]:{fontSize:$,[`> ${t}-header`]:{padding:c,paddingInlineStart:i,[`> ${t}-expand-icon`]:{height:$*v,marginInlineStart:y-i}},[`> ${t}-content > ${t}-content-box`]:{padding:y}}},[`${t}-item:last-child`]:{[`> ${t}-content`]:{borderRadius:`0 0 ${s}px ${s}px`}},[`& ${t}-item-disabled > ${t}-header`]:{[` - &, - & > .arrow - `]:{color:f,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:b}}}}})}},T=e=>{let{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow svg`;return{[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},W=e=>{let{componentCls:t,collapseHeaderBg:n,paddingXXS:i,colorBorder:o}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${o}`},[` - > ${t}-item:last-child, - > ${t}-item:last-child ${t}-header - `]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{paddingTop:i}}}},R=e=>{let{componentCls:t,paddingSM:n}=e;return{[`${t}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-content`]:{backgroundColor:"transparent",border:0,[`> ${t}-content-box`]:{paddingBlock:n}}}}}};var X=(0,j.Z)("Collapse",e=>{let t=(0,B.TS)(e,{collapseContentBg:e.colorBgContainer,collapseHeaderBg:e.colorFillAlter,collapseHeaderPadding:`${e.paddingSM}px ${e.padding}px`,collapseHeaderPaddingSM:`${e.paddingXS}px ${e.paddingSM}px`,collapseHeaderPaddingLG:`${e.padding}px ${e.paddingLG}px`,collapsePanelBorderRadius:e.borderRadiusLG,collapseContentPaddingHorizontal:16});return[P(t),W(t),R(t),T(t),(0,M.Z)(t)]});let A=p.forwardRef((e,t)=>{let{getPrefixCls:n,direction:o,collapse:a}=p.useContext(k.E_),{prefixCls:l,className:c,rootClassName:s,style:d,bordered:m=!0,ghost:u,size:f,expandIconPosition:h="start",children:$,expandIcon:v}=e,b=(0,O.Z)(e=>{var t;return null!==(t=null!=f?f:e)&&void 0!==t?t:"middle"}),x=n("collapse",l),y=n(),[S,w]=X(x),C=p.useMemo(()=>"left"===h?"start":"right"===h?"end":h,[h]),N=r()(`${x}-icon-position-${C}`,{[`${x}-borderless`]:!m,[`${x}-rtl`]:"rtl"===o,[`${x}-ghost`]:!!u,[`${x}-${b}`]:"middle"!==b},null==a?void 0:a.className,c,s,w),H=Object.assign(Object.assign({},(0,Z.Z)(y)),{motionAppear:!1,leavedClassName:`${x}-content-hidden`}),M=p.useMemo(()=>$?(0,g.Z)($).map((e,t)=>{var n,i;if(null===(n=e.props)||void 0===n?void 0:n.disabled){let n=null!==(i=e.key)&&void 0!==i?i:String(t),{disabled:o,collapsible:r}=e.props,a=Object.assign(Object.assign({},(0,z.Z)(e.props,["disabled"])),{key:n,collapsible:null!=r?r:o?"disabled":void 0});return(0,E.Tm)(e,a)}return e}):null,[$]);return S(p.createElement(I,Object.assign({ref:t,openMotion:H},(0,z.Z)(e,["rootClassName"]),{expandIcon:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=v?v(e):p.createElement(i.Z,{rotate:e.isActive?90:void 0});return(0,E.Tm)(t,()=>({className:r()(t.props.className,`${x}-arrow`)}))},prefixCls:x,className:N,style:Object.assign(Object.assign({},null==a?void 0:a.style),d)}),M))});var L=Object.assign(A,{Panel:N})},96074:function(e,t,n){n.d(t,{Z:function(){return u}});var i=n(94184),o=n.n(i),r=n(67294),a=n(53124),l=n(14747),c=n(67968),s=n(45503);let d=e=>{let{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:i,lineWidth:o}=e;return{[t]:Object.assign(Object.assign({},(0,l.Wf)(e)),{borderBlockStart:`${o}px solid ${i}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",margin:`0 ${e.dividerVerticalGutterMargin}px`,verticalAlign:"middle",borderTop:0,borderInlineStart:`${o}px solid ${i}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${e.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${e.dividerHorizontalWithTextGutterMargin}px 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${i}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${o}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:"5%"},"&::after":{width:"95%"}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:"95%"},"&::after":{width:"5%"}},[`${t}-inner-text`]:{display:"inline-block",padding:"0 1em"},"&-dashed":{background:"none",borderColor:i,borderStyle:"dashed",borderWidth:`${o}px 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}};var p=(0,c.Z)("Divider",e=>{let t=(0,s.TS)(e,{dividerVerticalGutterMargin:e.marginXS,dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG});return[d(t)]},{sizePaddingEdgeHorizontal:0}),m=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,i=Object.getOwnPropertySymbols(e);ot.indexOf(i[o])&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]]);return n},u=e=>{let{getPrefixCls:t,direction:n,divider:i}=r.useContext(a.E_),{prefixCls:l,type:c="horizontal",orientation:s="center",orientationMargin:d,className:u,rootClassName:g,children:f,dashed:h,plain:$,style:v}=e,b=m(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),x=t("divider",l),[y,S]=p(x),w=s.length>0?`-${s}`:s,C=!!f,I="left"===s&&null!=d,z="right"===s&&null!=d,Z=o()(x,null==i?void 0:i.className,S,`${x}-${c}`,{[`${x}-with-text`]:C,[`${x}-with-text${w}`]:C,[`${x}-dashed`]:!!h,[`${x}-plain`]:!!$,[`${x}-rtl`]:"rtl"===n,[`${x}-no-default-orientation-margin-left`]:I,[`${x}-no-default-orientation-margin-right`]:z},u,g),E=r.useMemo(()=>"number"==typeof d?d:/^\d+$/.test(d)?Number(d):d,[d]),k=Object.assign(Object.assign({},I&&{marginLeft:E}),z&&{marginRight:E});return y(r.createElement("div",Object.assign({className:Z,style:Object.assign(Object.assign({},null==i?void 0:i.style),v)},b,{role:"separator"}),f&&"vertical"!==c&&r.createElement("span",{className:`${x}-inner-text`,style:k},f)))}},25378:function(e,t,n){var i=n(67294),o=n(8410),r=n(57838),a=n(74443);t.Z=function(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],t=(0,i.useRef)({}),n=(0,r.Z)(),l=(0,a.Z)();return(0,o.Z)(()=>{let i=l.subscribe(i=>{t.current=i,e&&n()});return()=>l.unsubscribe(i)},[]),t.current}},74627:function(e,t,n){n.d(t,{Z:function(){return Z}});var i=n(94184),o=n.n(i),r=n(67294);let a=e=>e?"function"==typeof e?e():e:null;var l=n(33603),c=n(53124),s=n(83062),d=n(92419),p=n(14747),m=n(50438),u=n(77786),g=n(8796),f=n(67968),h=n(45503);let $=e=>{let{componentCls:t,popoverColor:n,minWidth:i,fontWeightStrong:o,popoverPadding:r,boxShadowSecondary:a,colorTextHeading:l,borderRadiusLG:c,zIndexPopup:s,marginXS:d,colorBgElevated:m,popoverBg:g}=e;return[{[t]:Object.assign(Object.assign({},(0,p.Wf)(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:s,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":m,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:g,backgroundClip:"padding-box",borderRadius:c,boxShadow:a,padding:r},[`${t}-title`]:{minWidth:i,marginBottom:d,color:l,fontWeight:o},[`${t}-inner-content`]:{color:n}})},(0,u.ZP)(e,{colorBg:"var(--antd-arrow-background-color)"}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},v=e=>{let{componentCls:t}=e;return{[t]:g.i.map(n=>{let i=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":i,[`${t}-inner`]:{backgroundColor:i},[`${t}-arrow`]:{background:"transparent"}}}})}},b=e=>{let{componentCls:t,lineWidth:n,lineType:i,colorSplit:o,paddingSM:r,controlHeight:a,fontSize:l,lineHeight:c,padding:s}=e,d=a-Math.round(l*c);return{[t]:{[`${t}-inner`]:{padding:0},[`${t}-title`]:{margin:0,padding:`${d/2}px ${s}px ${d/2-n}px`,borderBottom:`${n}px ${i} ${o}`},[`${t}-inner-content`]:{padding:`${r}px ${s}px`}}}};var x=(0,f.Z)("Popover",e=>{let{colorBgElevated:t,colorText:n,wireframe:i}=e,o=(0,h.TS)(e,{popoverPadding:12,popoverBg:t,popoverColor:n});return[$(o),v(o),i&&b(o),(0,m._y)(o,"zoom-big")]},e=>({width:177,minWidth:177,zIndexPopup:e.zIndexPopupBase+30}),{deprecatedTokens:[["width","minWidth"]]}),y=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,i=Object.getOwnPropertySymbols(e);ot.indexOf(i[o])&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]]);return n};let S=(e,t,n)=>{if(t||n)return r.createElement(r.Fragment,null,t&&r.createElement("div",{className:`${e}-title`},a(t)),r.createElement("div",{className:`${e}-inner-content`},a(n)))},w=e=>{let{hashId:t,prefixCls:n,className:i,style:a,placement:l="top",title:c,content:s,children:p}=e;return r.createElement("div",{className:o()(t,n,`${n}-pure`,`${n}-placement-${l}`,i),style:a},r.createElement("div",{className:`${n}-arrow`}),r.createElement(d.G,Object.assign({},e,{className:t,prefixCls:n}),p||S(n,c,s)))};var C=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,i=Object.getOwnPropertySymbols(e);ot.indexOf(i[o])&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]]);return n};let I=e=>{let{title:t,content:n,prefixCls:i}=e;return r.createElement(r.Fragment,null,t&&r.createElement("div",{className:`${i}-title`},a(t)),r.createElement("div",{className:`${i}-inner-content`},a(n)))},z=r.forwardRef((e,t)=>{let{prefixCls:n,title:i,content:a,overlayClassName:d,placement:p="top",trigger:m="hover",mouseEnterDelay:u=.1,mouseLeaveDelay:g=.1,overlayStyle:f={}}=e,h=C(e,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:$}=r.useContext(c.E_),v=$("popover",n),[b,y]=x(v),S=$(),w=o()(d,y);return b(r.createElement(s.Z,Object.assign({placement:p,trigger:m,mouseEnterDelay:u,mouseLeaveDelay:g,overlayStyle:f},h,{prefixCls:v,overlayClassName:w,ref:t,overlay:i||a?r.createElement(I,{prefixCls:v,title:i,content:a}):null,transitionName:(0,l.m)(S,"zoom-big",h.transitionName),"data-popover-inject":!0})))});z._InternalPanelDoNotUseOrYouWillBeFired=e=>{let{prefixCls:t}=e,n=y(e,["prefixCls"]),{getPrefixCls:i}=r.useContext(c.E_),o=i("popover",t),[a,l]=x(o);return a(r.createElement(w,Object.assign({},n,{prefixCls:o,hashId:l})))};var Z=z},71230:function(e,t,n){var i=n(92820);t.Z=i.Z},3363:function(e,t,n){n.d(t,{Z:function(){return G}});var i,o,r=n(63606),a=n(97937),l=n(94184),c=n.n(l),s=n(87462),d=n(1413),p=n(4942),m=n(45987),u=n(67294),g=n(15105),f=["className","prefixCls","style","active","status","iconPrefix","icon","wrapperStyle","stepNumber","disabled","description","title","subTitle","progressDot","stepIcon","tailContent","icons","stepIndex","onStepClick","onClick","render"];function h(e){return"string"==typeof e}var $=function(e){var t,n,i,o,r,a=e.className,l=e.prefixCls,$=e.style,v=e.active,b=e.status,x=e.iconPrefix,y=e.icon,S=(e.wrapperStyle,e.stepNumber),w=e.disabled,C=e.description,I=e.title,z=e.subTitle,Z=e.progressDot,E=e.stepIcon,k=e.tailContent,O=e.icons,N=e.stepIndex,H=e.onStepClick,M=e.onClick,j=e.render,B=(0,m.Z)(e,f),P={};H&&!w&&(P.role="button",P.tabIndex=0,P.onClick=function(e){null==M||M(e),H(N)},P.onKeyDown=function(e){var t=e.which;(t===g.Z.ENTER||t===g.Z.SPACE)&&H(N)});var T=b||"wait",W=c()("".concat(l,"-item"),"".concat(l,"-item-").concat(T),a,(r={},(0,p.Z)(r,"".concat(l,"-item-custom"),y),(0,p.Z)(r,"".concat(l,"-item-active"),v),(0,p.Z)(r,"".concat(l,"-item-disabled"),!0===w),r)),R=(0,d.Z)({},$),X=u.createElement("div",(0,s.Z)({},B,{className:W,style:R}),u.createElement("div",(0,s.Z)({onClick:M},P,{className:"".concat(l,"-item-container")}),u.createElement("div",{className:"".concat(l,"-item-tail")},k),u.createElement("div",{className:"".concat(l,"-item-icon")},(i=c()("".concat(l,"-icon"),"".concat(x,"icon"),(t={},(0,p.Z)(t,"".concat(x,"icon-").concat(y),y&&h(y)),(0,p.Z)(t,"".concat(x,"icon-check"),!y&&"finish"===b&&(O&&!O.finish||!O)),(0,p.Z)(t,"".concat(x,"icon-cross"),!y&&"error"===b&&(O&&!O.error||!O)),t)),o=u.createElement("span",{className:"".concat(l,"-icon-dot")}),n=Z?"function"==typeof Z?u.createElement("span",{className:"".concat(l,"-icon")},Z(o,{index:S-1,status:b,title:I,description:C})):u.createElement("span",{className:"".concat(l,"-icon")},o):y&&!h(y)?u.createElement("span",{className:"".concat(l,"-icon")},y):O&&O.finish&&"finish"===b?u.createElement("span",{className:"".concat(l,"-icon")},O.finish):O&&O.error&&"error"===b?u.createElement("span",{className:"".concat(l,"-icon")},O.error):y||"finish"===b||"error"===b?u.createElement("span",{className:i}):u.createElement("span",{className:"".concat(l,"-icon")},S),E&&(n=E({index:S-1,status:b,title:I,description:C,node:n})),n)),u.createElement("div",{className:"".concat(l,"-item-content")},u.createElement("div",{className:"".concat(l,"-item-title")},I,z&&u.createElement("div",{title:"string"==typeof z?z:void 0,className:"".concat(l,"-item-subtitle")},z)),C&&u.createElement("div",{className:"".concat(l,"-item-description")},C))));return j&&(X=j(X)||null),X},v=["prefixCls","style","className","children","direction","type","labelPlacement","iconPrefix","status","size","current","progressDot","stepIcon","initial","icons","onChange","itemRender","items"];function b(e){var t,n=e.prefixCls,i=void 0===n?"rc-steps":n,o=e.style,r=void 0===o?{}:o,a=e.className,l=(e.children,e.direction),g=e.type,f=void 0===g?"default":g,h=e.labelPlacement,b=e.iconPrefix,x=void 0===b?"rc":b,y=e.status,S=void 0===y?"process":y,w=e.size,C=e.current,I=void 0===C?0:C,z=e.progressDot,Z=e.stepIcon,E=e.initial,k=void 0===E?0:E,O=e.icons,N=e.onChange,H=e.itemRender,M=e.items,j=(0,m.Z)(e,v),B="inline"===f,P=B||void 0!==z&&z,T=B?"horizontal":void 0===l?"horizontal":l,W=B?void 0:w,R=P?"vertical":void 0===h?"horizontal":h,X=c()(i,"".concat(i,"-").concat(T),a,(t={},(0,p.Z)(t,"".concat(i,"-").concat(W),W),(0,p.Z)(t,"".concat(i,"-label-").concat(R),"horizontal"===T),(0,p.Z)(t,"".concat(i,"-dot"),!!P),(0,p.Z)(t,"".concat(i,"-navigation"),"navigation"===f),(0,p.Z)(t,"".concat(i,"-inline"),B),t)),A=function(e){N&&I!==e&&N(e)};return u.createElement("div",(0,s.Z)({className:X,style:r},j),(void 0===M?[]:M).filter(function(e){return e}).map(function(e,t){var n=(0,d.Z)({},e),o=k+t;return"error"===S&&t===I-1&&(n.className="".concat(i,"-next-error")),n.status||(o===I?n.status=S:o{let{componentCls:t,customIconTop:n,customIconSize:i,customIconFontSize:o}=e;return{[`${t}-item-custom`]:{[`> ${t}-item-container > ${t}-item-icon`]:{height:"auto",background:"none",border:0,[`> ${t}-icon`]:{top:n,width:i,height:i,fontSize:o,lineHeight:`${o}px`}}},[`&:not(${t}-vertical)`]:{[`${t}-item-custom`]:{[`${t}-item-icon`]:{width:"auto",background:"none"}}}}},k=e=>{let{componentCls:t,inlineDotSize:n,inlineTitleColor:i,inlineTailColor:o}=e,r=e.paddingXS+e.lineWidth,a={[`${t}-item-container ${t}-item-content ${t}-item-title`]:{color:i}};return{[`&${t}-inline`]:{width:"auto",display:"inline-flex",[`${t}-item`]:{flex:"none","&-container":{padding:`${r}px ${e.paddingXXS}px 0`,margin:`0 ${e.marginXXS/2}px`,borderRadius:e.borderRadiusSM,cursor:"pointer",transition:`background-color ${e.motionDurationMid}`,"&:hover":{background:e.controlItemBgHover},"&[role='button']:hover":{opacity:1}},"&-icon":{width:n,height:n,marginInlineStart:`calc(50% - ${n/2}px)`,[`> ${t}-icon`]:{top:0},[`${t}-icon-dot`]:{borderRadius:e.fontSizeSM/4}},"&-content":{width:"auto",marginTop:e.marginXS-e.lineWidth},"&-title":{color:i,fontSize:e.fontSizeSM,lineHeight:e.lineHeightSM,fontWeight:"normal",marginBottom:e.marginXXS/2},"&-description":{display:"none"},"&-tail":{marginInlineStart:0,top:r+n/2,transform:"translateY(-50%)","&:after":{width:"100%",height:e.lineWidth,borderRadius:0,marginInlineStart:0,background:o}},[`&:first-child ${t}-item-tail`]:{width:"50%",marginInlineStart:"50%"},[`&:last-child ${t}-item-tail`]:{display:"block",width:"50%"},"&-wait":Object.assign({[`${t}-item-icon ${t}-icon ${t}-icon-dot`]:{backgroundColor:e.colorBorderBg,border:`${e.lineWidth}px ${e.lineType} ${o}`}},a),"&-finish":Object.assign({[`${t}-item-tail::after`]:{backgroundColor:o},[`${t}-item-icon ${t}-icon ${t}-icon-dot`]:{backgroundColor:o,border:`${e.lineWidth}px ${e.lineType} ${o}`}},a),"&-error":a,"&-active, &-process":Object.assign({[`${t}-item-icon`]:{width:n,height:n,marginInlineStart:`calc(50% - ${n/2}px)`,top:0}},a),[`&:not(${t}-item-active) > ${t}-item-container[role='button']:hover`]:{[`${t}-item-title`]:{color:i}}}}}},O=e=>{let{componentCls:t,iconSize:n,lineHeight:i,iconSizeSM:o}=e;return{[`&${t}-label-vertical`]:{[`${t}-item`]:{overflow:"visible","&-tail":{marginInlineStart:n/2+e.controlHeightLG,padding:`${e.paddingXXS}px ${e.paddingLG}px`},"&-content":{display:"block",width:(n/2+e.controlHeightLG)*2,marginTop:e.marginSM,textAlign:"center"},"&-icon":{display:"inline-block",marginInlineStart:e.controlHeightLG},"&-title":{paddingInlineEnd:0,paddingInlineStart:0,"&::after":{display:"none"}},"&-subtitle":{display:"block",marginBottom:e.marginXXS,marginInlineStart:0,lineHeight:i}},[`&${t}-small:not(${t}-dot)`]:{[`${t}-item`]:{"&-icon":{marginInlineStart:e.controlHeightLG+(n-o)/2}}}}}},N=e=>{let{componentCls:t,navContentMaxWidth:n,navArrowColor:i,stepsNavActiveColor:o,motionDurationSlow:r}=e;return{[`&${t}-navigation`]:{paddingTop:e.paddingSM,[`&${t}-small`]:{[`${t}-item`]:{"&-container":{marginInlineStart:-e.marginSM}}},[`${t}-item`]:{overflow:"visible",textAlign:"center","&-container":{display:"inline-block",height:"100%",marginInlineStart:-e.margin,paddingBottom:e.paddingSM,textAlign:"start",transition:`opacity ${r}`,[`${t}-item-content`]:{maxWidth:n},[`${t}-item-title`]:Object.assign(Object.assign({maxWidth:"100%",paddingInlineEnd:0},I.vS),{"&::after":{display:"none"}})},[`&:not(${t}-item-active)`]:{[`${t}-item-container[role='button']`]:{cursor:"pointer","&:hover":{opacity:.85}}},"&:last-child":{flex:1,"&::after":{display:"none"}},"&::after":{position:"absolute",top:`calc(50% - ${e.paddingSM/2}px)`,insetInlineStart:"100%",display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,borderTop:`${e.lineWidth}px ${e.lineType} ${i}`,borderBottom:"none",borderInlineStart:"none",borderInlineEnd:`${e.lineWidth}px ${e.lineType} ${i}`,transform:"translateY(-50%) translateX(-50%) rotate(45deg)",content:'""'},"&::before":{position:"absolute",bottom:0,insetInlineStart:"50%",display:"inline-block",width:0,height:e.lineWidthBold,backgroundColor:o,transition:`width ${r}, inset-inline-start ${r}`,transitionTimingFunction:"ease-out",content:'""'}},[`${t}-item${t}-item-active::before`]:{insetInlineStart:0,width:"100%"}},[`&${t}-navigation${t}-vertical`]:{[`> ${t}-item`]:{marginInlineEnd:0,"&::before":{display:"none"},[`&${t}-item-active::before`]:{top:0,insetInlineEnd:0,insetInlineStart:"unset",display:"block",width:3*e.lineWidth,height:`calc(100% - ${e.marginLG}px)`},"&::after":{position:"relative",insetInlineStart:"50%",display:"block",width:.25*e.controlHeight,height:.25*e.controlHeight,marginBottom:e.marginXS,textAlign:"center",transform:"translateY(-50%) translateX(-50%) rotate(135deg)"},"&:last-child":{"&::after":{display:"none"}},[`> ${t}-item-container > ${t}-item-tail`]:{visibility:"hidden"}}},[`&${t}-navigation${t}-horizontal`]:{[`> ${t}-item > ${t}-item-container > ${t}-item-tail`]:{visibility:"hidden"}}}},H=e=>{let{antCls:t,componentCls:n}=e;return{[`&${n}-with-progress`]:{[`${n}-item`]:{paddingTop:e.paddingXXS,[`&-process ${n}-item-container ${n}-item-icon ${n}-icon`]:{color:e.processIconColor}},[`&${n}-vertical > ${n}-item `]:{paddingInlineStart:e.paddingXXS,[`> ${n}-item-container > ${n}-item-tail`]:{top:e.marginXXS,insetInlineStart:e.iconSize/2-e.lineWidth+e.paddingXXS}},[`&, &${n}-small`]:{[`&${n}-horizontal ${n}-item:first-child`]:{paddingBottom:e.paddingXXS,paddingInlineStart:e.paddingXXS}},[`&${n}-small${n}-vertical > ${n}-item > ${n}-item-container > ${n}-item-tail`]:{insetInlineStart:e.iconSizeSM/2-e.lineWidth+e.paddingXXS},[`&${n}-label-vertical`]:{[`${n}-item ${n}-item-tail`]:{top:e.margin-2*e.lineWidth}},[`${n}-item-icon`]:{position:"relative",[`${t}-progress`]:{position:"absolute",insetBlockStart:(e.iconSize-e.stepsProgressSize-2*e.lineWidth)/2,insetInlineStart:(e.iconSize-e.stepsProgressSize-2*e.lineWidth)/2}}}}},M=e=>{let{componentCls:t,descriptionMaxWidth:n,lineHeight:i,dotCurrentSize:o,dotSize:r,motionDurationSlow:a}=e;return{[`&${t}-dot, &${t}-dot${t}-small`]:{[`${t}-item`]:{"&-title":{lineHeight:i},"&-tail":{top:Math.floor((e.dotSize-3*e.lineWidth)/2),width:"100%",marginTop:0,marginBottom:0,marginInline:`${n/2}px 0`,padding:0,"&::after":{width:`calc(100% - ${2*e.marginSM}px)`,height:3*e.lineWidth,marginInlineStart:e.marginSM}},"&-icon":{width:r,height:r,marginInlineStart:(e.descriptionMaxWidth-r)/2,paddingInlineEnd:0,lineHeight:`${r}px`,background:"transparent",border:0,[`${t}-icon-dot`]:{position:"relative",float:"left",width:"100%",height:"100%",borderRadius:100,transition:`all ${a}`,"&::after":{position:"absolute",top:-e.marginSM,insetInlineStart:(r-1.5*e.controlHeightLG)/2,width:1.5*e.controlHeightLG,height:e.controlHeight,background:"transparent",content:'""'}}},"&-content":{width:n},[`&-process ${t}-item-icon`]:{position:"relative",top:(r-o)/2,width:o,height:o,lineHeight:`${o}px`,background:"none",marginInlineStart:(e.descriptionMaxWidth-o)/2},[`&-process ${t}-icon`]:{[`&:first-child ${t}-icon-dot`]:{insetInlineStart:0}}}},[`&${t}-vertical${t}-dot`]:{[`${t}-item-icon`]:{marginTop:(e.controlHeight-r)/2,marginInlineStart:0,background:"none"},[`${t}-item-process ${t}-item-icon`]:{marginTop:(e.controlHeight-o)/2,top:0,insetInlineStart:(r-o)/2,marginInlineStart:0},[`${t}-item > ${t}-item-container > ${t}-item-tail`]:{top:(e.controlHeight-r)/2,insetInlineStart:0,margin:0,padding:`${r+e.paddingXS}px 0 ${e.paddingXS}px`,"&::after":{marginInlineStart:(r-e.lineWidth)/2}},[`&${t}-small`]:{[`${t}-item-icon`]:{marginTop:(e.controlHeightSM-r)/2},[`${t}-item-process ${t}-item-icon`]:{marginTop:(e.controlHeightSM-o)/2},[`${t}-item > ${t}-item-container > ${t}-item-tail`]:{top:(e.controlHeightSM-r)/2}},[`${t}-item:first-child ${t}-icon-dot`]:{insetInlineStart:0},[`${t}-item-content`]:{width:"inherit"}}}},j=e=>{let{componentCls:t}=e;return{[`&${t}-rtl`]:{direction:"rtl",[`${t}-item`]:{"&-subtitle":{float:"left"}},[`&${t}-navigation`]:{[`${t}-item::after`]:{transform:"rotate(-45deg)"}},[`&${t}-vertical`]:{[`> ${t}-item`]:{"&::after":{transform:"rotate(225deg)"},[`${t}-item-icon`]:{float:"right"}}},[`&${t}-dot`]:{[`${t}-item-icon ${t}-icon-dot, &${t}-small ${t}-item-icon ${t}-icon-dot`]:{float:"right"}}}}},B=e=>{let{componentCls:t,iconSizeSM:n,fontSizeSM:i,fontSize:o,colorTextDescription:r}=e;return{[`&${t}-small`]:{[`&${t}-horizontal:not(${t}-label-vertical) ${t}-item`]:{paddingInlineStart:e.paddingSM,"&:first-child":{paddingInlineStart:0}},[`${t}-item-icon`]:{width:n,height:n,marginTop:0,marginBottom:0,marginInline:`0 ${e.marginXS}px`,fontSize:i,lineHeight:`${n}px`,textAlign:"center",borderRadius:n},[`${t}-item-title`]:{paddingInlineEnd:e.paddingSM,fontSize:o,lineHeight:`${n}px`,"&::after":{top:n/2}},[`${t}-item-description`]:{color:r,fontSize:o},[`${t}-item-tail`]:{top:n/2-e.paddingXXS},[`${t}-item-custom ${t}-item-icon`]:{width:"inherit",height:"inherit",lineHeight:"inherit",background:"none",border:0,borderRadius:0,[`> ${t}-icon`]:{fontSize:n,lineHeight:`${n}px`,transform:"none"}}}}},P=e=>{let{componentCls:t,iconSizeSM:n,iconSize:i}=e;return{[`&${t}-vertical`]:{display:"flex",flexDirection:"column",[`> ${t}-item`]:{display:"block",flex:"1 0 auto",paddingInlineStart:0,overflow:"visible",[`${t}-item-icon`]:{float:"left",marginInlineEnd:e.margin},[`${t}-item-content`]:{display:"block",minHeight:1.5*e.controlHeight,overflow:"hidden"},[`${t}-item-title`]:{lineHeight:`${i}px`},[`${t}-item-description`]:{paddingBottom:e.paddingSM}},[`> ${t}-item > ${t}-item-container > ${t}-item-tail`]:{position:"absolute",top:0,insetInlineStart:i/2-e.lineWidth,width:e.lineWidth,height:"100%",padding:`${i+1.5*e.marginXXS}px 0 ${1.5*e.marginXXS}px`,"&::after":{width:e.lineWidth,height:"100%"}},[`> ${t}-item:not(:last-child) > ${t}-item-container > ${t}-item-tail`]:{display:"block"},[` > ${t}-item > ${t}-item-container > ${t}-item-content > ${t}-item-title`]:{"&::after":{display:"none"}},[`&${t}-small ${t}-item-container`]:{[`${t}-item-tail`]:{position:"absolute",top:0,insetInlineStart:n/2-e.lineWidth,padding:`${n+1.5*e.marginXXS}px 0 ${1.5*e.marginXXS}px`},[`${t}-item-title`]:{lineHeight:`${n}px`}}}}};(i=o||(o={})).wait="wait",i.process="process",i.finish="finish",i.error="error";let T=(e,t)=>{let n=`${t.componentCls}-item`,i=`${e}IconColor`,o=`${e}TitleColor`,r=`${e}DescriptionColor`,a=`${e}TailColor`,l=`${e}IconBgColor`,c=`${e}IconBorderColor`,s=`${e}DotColor`;return{[`${n}-${e} ${n}-icon`]:{backgroundColor:t[l],borderColor:t[c],[`> ${t.componentCls}-icon`]:{color:t[i],[`${t.componentCls}-icon-dot`]:{background:t[s]}}},[`${n}-${e}${n}-custom ${n}-icon`]:{[`> ${t.componentCls}-icon`]:{color:t[s]}},[`${n}-${e} > ${n}-container > ${n}-content > ${n}-title`]:{color:t[o],"&::after":{backgroundColor:t[a]}},[`${n}-${e} > ${n}-container > ${n}-content > ${n}-description`]:{color:t[r]},[`${n}-${e} > ${n}-container > ${n}-tail::after`]:{backgroundColor:t[a]}}},W=e=>{let{componentCls:t,motionDurationSlow:n}=e,i=`${t}-item`,r=`${i}-icon`;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[i]:{position:"relative",display:"inline-block",flex:1,overflow:"hidden",verticalAlign:"top","&:last-child":{flex:"none",[`> ${i}-container > ${i}-tail, > ${i}-container > ${i}-content > ${i}-title::after`]:{display:"none"}}},[`${i}-container`]:{outline:"none","&:focus-visible":{[r]:Object.assign({},(0,I.oN)(e))}},[`${r}, ${i}-content`]:{display:"inline-block",verticalAlign:"top"},[r]:{width:e.iconSize,height:e.iconSize,marginTop:0,marginBottom:0,marginInlineStart:0,marginInlineEnd:e.marginXS,fontSize:e.iconFontSize,fontFamily:e.fontFamily,lineHeight:`${e.iconSize}px`,textAlign:"center",borderRadius:e.iconSize,border:`${e.lineWidth}px ${e.lineType} transparent`,transition:`background-color ${n}, border-color ${n}`,[`${t}-icon`]:{position:"relative",top:e.iconTop,color:e.colorPrimary,lineHeight:1}},[`${i}-tail`]:{position:"absolute",top:e.iconSize/2-e.paddingXXS,insetInlineStart:0,width:"100%","&::after":{display:"inline-block",width:"100%",height:e.lineWidth,background:e.colorSplit,borderRadius:e.lineWidth,transition:`background ${n}`,content:'""'}},[`${i}-title`]:{position:"relative",display:"inline-block",paddingInlineEnd:e.padding,color:e.colorText,fontSize:e.fontSizeLG,lineHeight:`${e.titleLineHeight}px`,"&::after":{position:"absolute",top:e.titleLineHeight/2,insetInlineStart:"100%",display:"block",width:9999,height:e.lineWidth,background:e.processTailColor,content:'""'}},[`${i}-subtitle`]:{display:"inline",marginInlineStart:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize},[`${i}-description`]:{color:e.colorTextDescription,fontSize:e.fontSize}},T(o.wait,e)),T(o.process,e)),{[`${i}-process > ${i}-container > ${i}-title`]:{fontWeight:e.fontWeightStrong}}),T(o.finish,e)),T(o.error,e)),{[`${i}${t}-next-error > ${t}-item-title::after`]:{background:e.colorError},[`${i}-disabled`]:{cursor:"not-allowed"}})},R=e=>{let{componentCls:t,motionDurationSlow:n}=e;return{[`& ${t}-item`]:{[`&:not(${t}-item-active)`]:{[`& > ${t}-item-container[role='button']`]:{cursor:"pointer",[`${t}-item`]:{[`&-title, &-subtitle, &-description, &-icon ${t}-icon`]:{transition:`color ${n}`}},"&:hover":{[`${t}-item`]:{"&-title, &-subtitle, &-description":{color:e.colorPrimary}}}},[`&:not(${t}-item-process)`]:{[`& > ${t}-item-container[role='button']:hover`]:{[`${t}-item`]:{"&-icon":{borderColor:e.colorPrimary,[`${t}-icon`]:{color:e.colorPrimary}}}}}}},[`&${t}-horizontal:not(${t}-label-vertical)`]:{[`${t}-item`]:{paddingInlineStart:e.padding,whiteSpace:"nowrap","&:first-child":{paddingInlineStart:0},[`&:last-child ${t}-item-title`]:{paddingInlineEnd:0},"&-tail":{display:"none"},"&-description":{maxWidth:e.descriptionMaxWidth,whiteSpace:"normal"}}}}},X=e=>{let{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,I.Wf)(e)),{display:"flex",width:"100%",fontSize:0,textAlign:"initial"}),W(e)),R(e)),E(e)),B(e)),P(e)),O(e)),M(e)),N(e)),j(e)),H(e)),k(e))}};var A=(0,z.Z)("Steps",e=>{let{wireframe:t,colorTextDisabled:n,controlHeightLG:i,colorTextLightSolid:o,colorText:r,colorPrimary:a,colorTextLabel:l,colorTextDescription:c,colorTextQuaternary:s,colorFillContent:d,controlItemBgActive:p,colorError:m,colorBgContainer:u,colorBorderSecondary:g,colorSplit:f}=e,h=(0,Z.TS)(e,{processIconColor:o,processTitleColor:r,processDescriptionColor:r,processIconBgColor:a,processIconBorderColor:a,processDotColor:a,processTailColor:f,waitIconColor:t?n:l,waitTitleColor:c,waitDescriptionColor:c,waitTailColor:f,waitIconBgColor:t?u:d,waitIconBorderColor:t?n:"transparent",waitDotColor:n,finishIconColor:a,finishTitleColor:r,finishDescriptionColor:c,finishTailColor:a,finishIconBgColor:t?u:p,finishIconBorderColor:t?a:p,finishDotColor:a,errorIconColor:o,errorTitleColor:m,errorDescriptionColor:m,errorTailColor:f,errorIconBgColor:m,errorIconBorderColor:m,errorDotColor:m,stepsNavActiveColor:a,stepsProgressSize:i,inlineDotSize:6,inlineTitleColor:s,inlineTailColor:g});return[X(h)]},e=>{let{colorTextDisabled:t,fontSize:n,controlHeightSM:i,controlHeight:o,controlHeightLG:r,fontSizeHeading3:a}=e;return{titleLineHeight:o,customIconSize:o,customIconTop:0,customIconFontSize:i,iconSize:o,iconTop:-.5,iconFontSize:n,iconSizeSM:a,dotSize:o/4,dotCurrentSize:r/4,navArrowColor:t,navContentMaxWidth:"auto",descriptionMaxWidth:140}}),L=n(50344),D=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,i=Object.getOwnPropertySymbols(e);ot.indexOf(i[o])&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]]);return n};let V=e=>{let{percent:t,size:n,className:i,rootClassName:o,direction:l,items:s,responsive:d=!0,current:p=0,children:m,style:g}=e,f=D(e,["percent","size","className","rootClassName","direction","items","responsive","current","children","style"]),{xs:h}=(0,S.Z)(d),{getPrefixCls:$,direction:v,steps:I}=u.useContext(x.E_),z=u.useMemo(()=>d&&h?"vertical":l,[h,l]),Z=(0,y.Z)(n),E=$("steps",e.prefixCls),[k,O]=A(E),N="inline"===e.type,H=$("",e.iconPrefix),M=function(e,t){if(e)return e;let n=(0,L.Z)(t).map(e=>{if(u.isValidElement(e)){let{props:t}=e,n=Object.assign({},t);return n}return null});return n.filter(e=>e)}(s,m),j=N?void 0:t,B=Object.assign(Object.assign({},null==I?void 0:I.style),g),P=c()(null==I?void 0:I.className,{[`${E}-rtl`]:"rtl"===v,[`${E}-with-progress`]:void 0!==j},i,o,O),T={finish:u.createElement(r.Z,{className:`${E}-finish-icon`}),error:u.createElement(a.Z,{className:`${E}-error-icon`})};return k(u.createElement(b,Object.assign({icons:T},f,{style:B,current:p,size:Z,items:M,itemRender:N?(e,t)=>e.description?u.createElement(C.Z,{title:e.description},t):t:void 0,stepIcon:e=>{let{node:t,status:n}=e;return"process"===n&&void 0!==j?u.createElement("div",{className:`${E}-progress-icon`},u.createElement(w.Z,{type:"circle",percent:j,size:"small"===Z?32:40,strokeWidth:4,format:()=>null}),t):t},direction:z,prefixCls:E,iconPrefix:H,className:P})))};V.Step=b.Step;var G=V},50132:function(e,t,n){var i=n(87462),o=n(1413),r=n(4942),a=n(97685),l=n(45987),c=n(94184),s=n.n(c),d=n(21770),p=n(67294),m=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],u=(0,p.forwardRef)(function(e,t){var n,c=e.prefixCls,u=void 0===c?"rc-checkbox":c,g=e.className,f=e.style,h=e.checked,$=e.disabled,v=e.defaultChecked,b=e.type,x=void 0===b?"checkbox":b,y=e.title,S=e.onChange,w=(0,l.Z)(e,m),C=(0,p.useRef)(null),I=(0,d.Z)(void 0!==v&&v,{value:h}),z=(0,a.Z)(I,2),Z=z[0],E=z[1];(0,p.useImperativeHandle)(t,function(){return{focus:function(){var e;null===(e=C.current)||void 0===e||e.focus()},blur:function(){var e;null===(e=C.current)||void 0===e||e.blur()},input:C.current}});var k=s()(u,g,(n={},(0,r.Z)(n,"".concat(u,"-checked"),Z),(0,r.Z)(n,"".concat(u,"-disabled"),$),n));return p.createElement("span",{className:k,title:y,style:f},p.createElement("input",(0,i.Z)({},w,{className:"".concat(u,"-input"),ref:C,onChange:function(t){$||("checked"in e||E(t.target.checked),null==S||S({target:(0,o.Z)((0,o.Z)({},e),{},{type:x,checked:t.target.checked}),stopPropagation:function(){t.stopPropagation()},preventDefault:function(){t.preventDefault()},nativeEvent:t.nativeEvent}))},disabled:$,checked:!!Z,type:x})),p.createElement("span",{className:"".concat(u,"-inner")}))});t.Z=u}}]); \ No newline at end of file diff --git a/dbgpt/app/static/_next/static/chunks/607-2dedaf19149304c0.js b/dbgpt/app/static/_next/static/chunks/607-2dedaf19149304c0.js new file mode 100644 index 000000000..ec16e1460 --- /dev/null +++ b/dbgpt/app/static/_next/static/chunks/607-2dedaf19149304c0.js @@ -0,0 +1,78 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[607],{38780:function(e,t){t.Z=function(){let e=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let t=1;t{let r=n[t];void 0!==r&&(e[t]=r)})}return e}},66367:function(e,t,n){function r(e){return null!=e&&e===e.window}function l(e,t){var n,l;if("undefined"==typeof window)return 0;let o=t?"scrollTop":"scrollLeft",a=0;return r(e)?a=e[t?"pageYOffset":"pageXOffset"]:e instanceof Document?a=e.documentElement[o]:e instanceof HTMLElement?a=e[o]:e&&(a=e[o]),e&&!r(e)&&"number"!=typeof a&&(a=null===(l=(null!==(n=e.ownerDocument)&&void 0!==n?n:e).documentElement)||void 0===l?void 0:l[o]),a}n.d(t,{F:function(){return r},Z:function(){return l}})},58375:function(e,t,n){n.d(t,{Z:function(){return o}});var r=n(75164),l=n(66367);function o(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{getContainer:n=()=>window,callback:o,duration:a=450}=t,i=n(),c=(0,l.Z)(i,!0),s=Date.now(),u=()=>{let t=Date.now(),n=t-s,d=function(e,t,n,r){let l=n-t;return(e/=r/2)<1?l/2*e*e*e+t:l/2*((e-=2)*e*e+2)+t}(n>a?a:n,c,e,a);(0,l.F)(i)?i.scrollTo(window.pageXOffset,d):i instanceof Document||"HTMLDocument"===i.constructor.name?i.documentElement.scrollTop=d:i.scrollTop=d,nt.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var l=0,r=Object.getOwnPropertySymbols(e);lt.indexOf(r[l])&&Object.prototype.propertyIsEnumerable.call(e,r[l])&&(n[r[l]]=e[r[l]]);return n};let h=a.forwardRef((e,t)=>{var n;let{prefixCls:r,className:h,rootClassName:g,children:x,indeterminate:b=!1,style:v,onMouseEnter:y,onMouseLeave:w,skipGroup:C=!1,disabled:$}=e,E=m(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:S,direction:k,checkbox:Z}=a.useContext(i.E_),N=a.useContext(u),{isFormItemInput:O}=a.useContext(s.aM),R=a.useContext(c.Z),I=null!==(n=(null==N?void 0:N.disabled)||$)&&void 0!==n?n:R,j=a.useRef(E.value);a.useEffect(()=>{null==N||N.registerValue(E.value)},[]),a.useEffect(()=>{if(!C)return E.value!==j.current&&(null==N||N.cancelValue(j.current),null==N||N.registerValue(E.value),j.current=E.value),()=>null==N?void 0:N.cancelValue(E.value)},[E.value]);let T=S("checkbox",r),[P,z]=(0,d.ZP)(T),M=Object.assign({},E);N&&!C&&(M.onChange=function(){E.onChange&&E.onChange.apply(E,arguments),N.toggleOption&&N.toggleOption({label:x,value:E.value})},M.name=N.name,M.checked=N.value.includes(E.value));let H=l()(`${T}-wrapper`,{[`${T}-rtl`]:"rtl"===k,[`${T}-wrapper-checked`]:M.checked,[`${T}-wrapper-disabled`]:I,[`${T}-wrapper-in-form-item`]:O},null==Z?void 0:Z.className,h,g,z),L=l()({[`${T}-indeterminate`]:b},p.A,z);return P(a.createElement(f.Z,{component:"Checkbox",disabled:I},a.createElement("label",{className:H,style:Object.assign(Object.assign({},null==Z?void 0:Z.style),v),onMouseEnter:y,onMouseLeave:w},a.createElement(o.Z,Object.assign({"aria-checked":b?"mixed":void 0},M,{prefixCls:T,className:L,disabled:I,ref:t})),void 0!==x&&a.createElement("span",null,x))))});var g=n(74902),x=n(98423),b=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var l=0,r=Object.getOwnPropertySymbols(e);lt.indexOf(r[l])&&Object.prototype.propertyIsEnumerable.call(e,r[l])&&(n[r[l]]=e[r[l]]);return n};let v=a.forwardRef((e,t)=>{let{defaultValue:n,children:r,options:o=[],prefixCls:c,className:s,rootClassName:f,style:p,onChange:m}=e,v=b(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:y,direction:w}=a.useContext(i.E_),[C,$]=a.useState(v.value||n||[]),[E,S]=a.useState([]);a.useEffect(()=>{"value"in v&&$(v.value||[])},[v.value]);let k=a.useMemo(()=>o.map(e=>"string"==typeof e||"number"==typeof e?{label:e,value:e}:e),[o]),Z=y("checkbox",c),N=`${Z}-group`,[O,R]=(0,d.ZP)(Z),I=(0,x.Z)(v,["value","disabled"]),j=o.length?k.map(e=>a.createElement(h,{prefixCls:Z,key:e.value.toString(),disabled:"disabled"in e?e.disabled:v.disabled,value:e.value,checked:C.includes(e.value),onChange:e.onChange,className:`${N}-item`,style:e.style,title:e.title},e.label)):r,T={toggleOption:e=>{let t=C.indexOf(e.value),n=(0,g.Z)(C);-1===t?n.push(e.value):n.splice(t,1),"value"in v||$(n),null==m||m(n.filter(e=>E.includes(e)).sort((e,t)=>{let n=k.findIndex(t=>t.value===e),r=k.findIndex(e=>e.value===t);return n-r}))},value:C,disabled:v.disabled,name:v.name,registerValue:e=>{S(t=>[].concat((0,g.Z)(t),[e]))},cancelValue:e=>{S(t=>t.filter(t=>t!==e))}},P=l()(N,{[`${N}-rtl`]:"rtl"===w},s,f,R);return O(a.createElement("div",Object.assign({className:P,style:p},I,{ref:t}),a.createElement(u.Provider,{value:T},j)))});var y=a.memo(v);h.Group=y,h.__ANT_CHECKBOX=!0;var w=h},61607:function(e,t,n){n.d(t,{Z:function(){return tq}});var r,l={},o="rc-table-internal-hook",a=n(97685),i=n(66680),c=n(8410),s=n(91881),u=n(67294),d=n(73935);function f(e,t){var n=(0,i.Z)("function"==typeof t?t:function(e){if(void 0===t)return e;if(!Array.isArray(t))return e[t];var n={};return t.forEach(function(t){n[t]=e[t]}),n}),r=u.useContext(null==e?void 0:e.Context),l=r||{},o=l.listeners,d=l.getValue,f=u.useRef();f.current=n(r?d():null==e?void 0:e.defaultValue);var p=u.useState({}),m=(0,a.Z)(p,2)[1];return(0,c.Z)(function(){if(r)return o.add(e),function(){o.delete(e)};function e(e){var t=n(e);(0,s.Z)(f.current,t,!0)||m({})}},[r]),f.current}var p=n(87462),m=n(42550),h=function(){var e=u.createContext(null);function t(){return u.useContext(e)}return{makeImmutable:function(n,r){var l=(0,m.Yr)(n),o=function(o,a){var i=l?{ref:a}:{},c=u.useRef(0),s=u.useRef(o);return null!==t()?u.createElement(n,(0,p.Z)({},o,i)):((!r||r(s.current,o))&&(c.current+=1),s.current=o,u.createElement(e.Provider,{value:c.current},u.createElement(n,(0,p.Z)({},o,i))))};return l?u.forwardRef(o):o},responseImmutable:function(e,n){var r=(0,m.Yr)(e),l=function(n,l){var o=r?{ref:l}:{};return t(),u.createElement(e,(0,p.Z)({},n,o))};return r?u.memo(u.forwardRef(l),n):u.memo(l,n)},useImmutableMark:t}}(),g=h.makeImmutable,x=h.responseImmutable,b=h.useImmutableMark,v={Context:r=u.createContext(void 0),Provider:function(e){var t=e.value,n=e.children,l=u.useRef(t);l.current=t;var o=u.useState(function(){return{getValue:function(){return l.current},listeners:new Set}}),i=(0,a.Z)(o,1)[0];return(0,c.Z)(function(){(0,d.unstable_batchedUpdates)(function(){i.listeners.forEach(function(e){e(t)})})},[t]),u.createElement(r.Provider,{value:i},n)},defaultValue:void 0};u.memo(function(){var e,t,n,r,l,o,a=(n=u.useRef(0),n.current+=1,r=u.useRef(e),l=[],Object.keys(e||{}).map(function(t){var n;(null==e?void 0:e[t])!==(null===(n=r.current)||void 0===n?void 0:n[t])&&l.push(t)}),r.current=e,o=u.useRef([]),l.length&&(o.current=l),u.useDebugValue(n.current),u.useDebugValue(o.current.join(", ")),t&&console.log("".concat(t,":"),n.current,o.current),n.current);return u.createElement("h1",null,"Render Times: ",a)}).displayName="RenderBlock";var y=n(71002),w=n(1413),C=n(4942),$=n(94184),E=n.n($),S=n(56982),k=n(88306);n(80334);var Z=u.createContext({renderWithProps:!1});function N(e){var t=[],n={};return e.forEach(function(e){for(var r=e||{},l=r.key,o=r.dataIndex,a=l||(null==o?[]:Array.isArray(o)?o:[o]).join("-")||"RC_TABLE_KEY";n[a];)a="".concat(a,"_next");n[a]=!0,t.push(a)}),t}var O=function(e){var t,n=e.ellipsis,r=e.rowType,l=e.children,o=!0===n?{showTitle:!0}:n;return o&&(o.showTitle||"header"===r)&&("string"==typeof l||"number"==typeof l?t=l.toString():u.isValidElement(l)&&"string"==typeof l.props.children&&(t=l.props.children)),t},R=u.memo(function(e){var t,n,r,l,o,i,c,d,m,h,g=e.component,x=e.children,$=e.ellipsis,N=e.scope,R=e.prefixCls,I=e.className,j=e.align,T=e.record,P=e.render,z=e.dataIndex,M=e.renderIndex,H=e.shouldCellUpdate,L=e.index,B=e.rowType,A=e.colSpan,_=e.rowSpan,D=e.fixLeft,F=e.fixRight,W=e.firstFixLeft,K=e.lastFixLeft,V=e.firstFixRight,X=e.lastFixRight,U=e.appendNode,G=e.additionalProps,Y=void 0===G?{}:G,J=e.isSticky,q="".concat(R,"-cell"),Q=f(v,["supportSticky","allColumnsFixedLeft"]),ee=Q.supportSticky,et=Q.allColumnsFixedLeft,en=(t=u.useContext(Z),n=b(),(0,S.Z)(function(){if(null!=x)return[x];var e=null==z||""===z?[]:Array.isArray(z)?z:[z],n=(0,k.Z)(T,e),r=n,l=void 0;if(P){var o=P(n,T,M);!o||"object"!==(0,y.Z)(o)||Array.isArray(o)||u.isValidElement(o)?r=o:(r=o.children,l=o.props,t.renderWithProps=!0)}return[r,l]},[n,T,x,z,P,M],function(e,n){if(H){var r=(0,a.Z)(e,2)[1];return H((0,a.Z)(n,2)[1],r)}return!!t.renderWithProps||!(0,s.Z)(e,n,!0)})),er=(0,a.Z)(en,2),el=er[0],eo=er[1],ea={},ei="number"==typeof D&&ee,ec="number"==typeof F&ⅇei&&(ea.position="sticky",ea.left=D),ec&&(ea.position="sticky",ea.right=F);var es=null!==(r=null!==(l=null!==(o=null==eo?void 0:eo.colSpan)&&void 0!==o?o:Y.colSpan)&&void 0!==l?l:A)&&void 0!==r?r:1,eu=null!==(i=null!==(c=null!==(d=null==eo?void 0:eo.rowSpan)&&void 0!==d?d:Y.rowSpan)&&void 0!==c?c:_)&&void 0!==i?i:1,ed=f(v,function(e){var t,n;return[(t=eu||1,n=e.hoverStartRow,L<=e.hoverEndRow&&L+t-1>=n),e.onHover]}),ef=(0,a.Z)(ed,2),ep=ef[0],em=ef[1];if(0===es||0===eu)return null;var eh=null!==(m=Y.title)&&void 0!==m?m:O({rowType:B,ellipsis:$,children:el}),eg=E()(q,I,(h={},(0,C.Z)(h,"".concat(q,"-fix-left"),ei&&ee),(0,C.Z)(h,"".concat(q,"-fix-left-first"),W&&ee),(0,C.Z)(h,"".concat(q,"-fix-left-last"),K&&ee),(0,C.Z)(h,"".concat(q,"-fix-left-all"),K&&et&&ee),(0,C.Z)(h,"".concat(q,"-fix-right"),ec&&ee),(0,C.Z)(h,"".concat(q,"-fix-right-first"),V&&ee),(0,C.Z)(h,"".concat(q,"-fix-right-last"),X&&ee),(0,C.Z)(h,"".concat(q,"-ellipsis"),$),(0,C.Z)(h,"".concat(q,"-with-append"),U),(0,C.Z)(h,"".concat(q,"-fix-sticky"),(ei||ec)&&J&&ee),(0,C.Z)(h,"".concat(q,"-row-hover"),!eo&&ep),h),Y.className,null==eo?void 0:eo.className),ex={};j&&(ex.textAlign=j);var eb=(0,w.Z)((0,w.Z)((0,w.Z)((0,w.Z)({},Y.style),ex),ea),null==eo?void 0:eo.style),ev=el;return"object"!==(0,y.Z)(ev)||Array.isArray(ev)||u.isValidElement(ev)||(ev=null),$&&(K||V)&&(ev=u.createElement("span",{className:"".concat(q,"-content")},ev)),u.createElement(g,(0,p.Z)({},eo,Y,{className:eg,style:eb,title:eh,scope:N,onMouseEnter:function(e){var t;T&&em(L,L+eu-1),null==Y||null===(t=Y.onMouseEnter)||void 0===t||t.call(Y,e)},onMouseLeave:function(e){var t;T&&em(-1,-1),null==Y||null===(t=Y.onMouseLeave)||void 0===t||t.call(Y,e)},colSpan:1!==es?es:null,rowSpan:1!==eu?eu:null}),U,ev)});function I(e,t,n,r,l,o){var a,i,c=n[e]||{},s=n[t]||{};"left"===c.fixed?a=r.left["rtl"===l?t:e]:"right"===s.fixed&&(i=r.right["rtl"===l?e:t]);var u=!1,d=!1,f=!1,p=!1,m=n[t+1],h=n[e-1],g=!(null!=o&&o.children);return"rtl"===l?void 0!==a?p=!(h&&"left"===h.fixed)&&g:void 0!==i&&(f=!(m&&"right"===m.fixed)&&g):void 0!==a?u=!(m&&"left"===m.fixed)&&g:void 0!==i&&(d=!(h&&"right"===h.fixed)&&g),{fixLeft:a,fixRight:i,lastFixLeft:u,firstFixRight:d,lastFixRight:f,firstFixLeft:p,isSticky:r.isSticky}}var j=u.createContext({}),T=n(45987),P=["children"];function z(e){return e.children}z.Row=function(e){var t=e.children,n=(0,T.Z)(e,P);return u.createElement("tr",n,t)},z.Cell=function(e){var t=e.className,n=e.index,r=e.children,l=e.colSpan,o=void 0===l?1:l,a=e.rowSpan,i=e.align,c=f(v,["prefixCls","direction"]),s=c.prefixCls,d=c.direction,m=u.useContext(j),h=m.scrollColumnIndex,g=m.stickyOffsets,x=m.flattenColumns,b=m.columns,y=n+o-1+1===h?o+1:o,w=I(n,n+y-1,x,g,d,null==b?void 0:b[n]);return u.createElement(R,(0,p.Z)({className:t,index:n,component:"td",prefixCls:s,record:null,dataIndex:null,align:i,colSpan:y,rowSpan:a,render:function(){return r}},w))};var M=x(function(e){var t=e.children,n=e.stickyOffsets,r=e.flattenColumns,l=e.columns,o=f(v,"prefixCls"),a=r.length-1,i=r[a],c=u.useMemo(function(){return{stickyOffsets:n,flattenColumns:r,scrollColumnIndex:null!=i&&i.scrollbar?a:null,columns:l}},[i,r,a,n,l]);return u.createElement(j.Provider,{value:c},u.createElement("tfoot",{className:"".concat(o,"-summary")},t))}),H=n(9220),L=n(5110),B=n(98924),A=function(e){if((0,B.Z)()&&window.document.documentElement){var t=Array.isArray(e)?e:[e],n=window.document.documentElement;return t.some(function(e){return e in n.style})}return!1},_=function(e,t){if(!A(e))return!1;var n=document.createElement("div"),r=n.style[e];return n.style[e]=t,n.style[e]!==r},D=n(74204),F=n(64217),W=n(74902),K=function(e){var t=e.prefixCls,n=e.children,r=e.component,l=e.cellComponent,o=e.className,a=e.expanded,i=e.colSpan,c=e.isEmpty,s=f(v,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),d=s.scrollbarSize,p=s.fixHeader,m=s.fixColumn,h=s.componentWidth,g=s.horizonScroll,x=n;return(c?g:m)&&(x=u.createElement("div",{style:{width:h-(p?d:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(t,"-expanded-row-fixed")},0!==h&&x)),u.createElement(r,{className:o,style:{display:a?null:"none"}},u.createElement(R,{component:l,prefixCls:t,colSpan:i},x))};function V(e){var t,n,r=e.className,l=e.style,o=e.record,i=e.index,c=e.renderIndex,s=e.rowKey,d=e.rowExpandable,m=e.expandedKeys,h=e.onRow,g=e.indent,x=void 0===g?0:g,b=e.rowComponent,y=e.cellComponent,C=e.scopeCellComponent,$=e.childrenColumnName,S=f(v,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex"]),k=S.prefixCls,Z=S.fixedInfoList,O=S.flattenColumns,I=S.expandableType,j=S.expandRowByClick,T=S.onTriggerExpand,P=S.rowClassName,z=S.expandedRowClassName,M=S.indentSize,H=S.expandIcon,L=S.expandedRowRender,B=S.expandIconColumnIndex,A=u.useState(!1),_=(0,a.Z)(A,2),D=_[0],F=_[1],W=m&&m.has(s);u.useEffect(function(){W&&F(!0)},[W]);var V="row"===I&&(!d||d(o)),X="nest"===I,U=$&&o&&o[$],G=V||X,Y=u.useRef(T);Y.current=T;var J=function(){Y.current.apply(Y,arguments)},q=null==h?void 0:h(o,i);"string"==typeof P?t=P:"function"==typeof P&&(t=P(o,i,x));var Q=N(O),ee=u.createElement(b,(0,p.Z)({},q,{"data-row-key":s,className:E()(r,"".concat(k,"-row"),"".concat(k,"-row-level-").concat(x),t,q&&q.className),style:(0,w.Z)((0,w.Z)({},l),q?q.style:null),onClick:function(e){var t;j&&G&&J(o,e);for(var n=arguments.length,r=Array(n>1?n-1:0),l=1;l=0;i-=1){var c=t[i],s=n&&n[i],d=s&&s[Q];if(c||d||a){var f=d||{},m=(f.columnType,(0,T.Z)(f,ee));l.unshift(u.createElement("col",(0,p.Z)({key:i,style:{width:c}},m))),a=!0}}return u.createElement("colgroup",null,l)},en=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"],er=u.forwardRef(function(e,t){var n=e.className,r=e.noData,l=e.columns,o=e.flattenColumns,a=e.colWidths,i=e.columCount,c=e.stickyOffsets,s=e.direction,d=e.fixHeader,p=e.stickyTopOffset,h=e.stickyBottomOffset,g=e.stickyClassName,x=e.onScroll,b=e.maxContentScroll,y=e.children,$=(0,T.Z)(e,en),S=f(v,["prefixCls","scrollbarSize","isSticky"]),k=S.prefixCls,Z=S.scrollbarSize,N=S.isSticky,O=N&&!d?0:Z,R=u.useRef(null),I=u.useCallback(function(e){(0,m.mH)(t,e),(0,m.mH)(R,e)},[]);u.useEffect(function(){var e;function t(e){var t=e.currentTarget,n=e.deltaX;n&&(x({currentTarget:t,scrollLeft:t.scrollLeft+n}),e.preventDefault())}return null===(e=R.current)||void 0===e||e.addEventListener("wheel",t),function(){var e;null===(e=R.current)||void 0===e||e.removeEventListener("wheel",t)}},[]);var j=u.useMemo(function(){return o.every(function(e){return e.width>=0})},[o]),P=o[o.length-1],z={fixed:P?P.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(k,"-cell-scrollbar")}}},M=(0,u.useMemo)(function(){return O?[].concat((0,W.Z)(l),[z]):l},[O,l]),H=(0,u.useMemo)(function(){return O?[].concat((0,W.Z)(o),[z]):o},[O,o]),L=(0,u.useMemo)(function(){var e=c.right,t=c.left;return(0,w.Z)((0,w.Z)({},c),{},{left:"rtl"===s?[].concat((0,W.Z)(t.map(function(e){return e+O})),[0]):t,right:"rtl"===s?e:[].concat((0,W.Z)(e.map(function(e){return e+O})),[0]),isSticky:N})},[O,c,N]),B=(0,u.useMemo)(function(){for(var e=[],t=0;t1?"colgroup":"col":null,ellipsis:o.ellipsis,align:o.align,component:o.title?a:i,prefixCls:m,key:g[t]},c,{additionalProps:n,rowType:"header"}))}))}eo.displayName="HeaderRow";var ea=x(function(e){var t=e.stickyOffsets,n=e.columns,r=e.flattenColumns,l=e.onHeaderRow,o=f(v,["prefixCls","getComponent"]),a=o.prefixCls,i=o.getComponent,c=u.useMemo(function(){return function(e){var t=[];!function e(n,r){var l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;t[l]=t[l]||[];var o=r;return n.filter(Boolean).map(function(n){var r={key:n.key,className:n.className||"",children:n.title,column:n,colStart:o},a=1,i=n.children;return i&&i.length>0&&(a=e(i,o,l+1).reduce(function(e,t){return e+t},0),r.hasSubColumns=!0),"colSpan"in n&&(a=n.colSpan),"rowSpan"in n&&(r.rowSpan=n.rowSpan),r.colSpan=a,r.colEnd=r.colStart+a-1,t[l].push(r),o+=a,a})}(e,0);for(var n=t.length,r=function(e){t[e].forEach(function(t){("rowSpan"in t)||t.hasSubColumns||(t.rowSpan=n-e)})},l=0;l0?[].concat((0,W.Z)(e),(0,W.Z)(ed(l).map(function(e){return(0,w.Z)({fixed:r},e)}))):[].concat((0,W.Z)(e),[(0,w.Z)((0,w.Z)({},t),{},{fixed:r})])},[])}var ef=function(e,t){var n=e.prefixCls,r=e.columns,o=e.children,a=e.expandable,i=e.expandedKeys,c=e.columnTitle,s=e.getRowKey,d=e.onTriggerExpand,f=e.expandIcon,p=e.rowExpandable,m=e.expandIconColumnIndex,h=e.direction,g=e.expandRowByClick,x=e.columnWidth,b=e.fixed,v=u.useMemo(function(){return r||eu(o)},[r,o]),y=u.useMemo(function(){if(a){var e,t,r=v.slice();if(!r.includes(l)){var o=m||0;o>=0&&r.splice(o,0,l)}var h=r.indexOf(l);r=r.filter(function(e,t){return e!==l||t===h});var y=v[h];t=("left"===b||b)&&!m?"left":("right"===b||b)&&m===v.length?"right":y?y.fixed:null;var w=(e={},(0,C.Z)(e,Q,{className:"".concat(n,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,C.Z)(e,"title",c),(0,C.Z)(e,"fixed",t),(0,C.Z)(e,"className","".concat(n,"-row-expand-icon-cell")),(0,C.Z)(e,"width",x),(0,C.Z)(e,"render",function(e,t,r){var l=s(t,r),o=f({prefixCls:n,expanded:i.has(l),expandable:!p||p(t),record:t,onExpand:d});return g?u.createElement("span",{onClick:function(e){return e.stopPropagation()}},o):o}),e);return r.map(function(e){return e===l?w:e})}return v.filter(function(e){return e!==l})},[a,v,s,i,f,h]),$=u.useMemo(function(){var e=y;return t&&(e=t(e)),e.length||(e=[{render:function(){return null}}]),e},[t,y,h]),E=u.useMemo(function(){return"rtl"===h?ed($).map(function(e){var t=e.fixed,n=(0,T.Z)(e,es),r=t;return"left"===t?r="right":"right"===t&&(r="left"),(0,w.Z)({fixed:r},n)}):ed($)},[$,h]);return[$,E]};function ep(e){var t,n=e.prefixCls,r=e.record,l=e.onExpand,o=e.expanded,a=e.expandable,i="".concat(n,"-row-expand-icon");return a?u.createElement("span",{className:E()(i,(t={},(0,C.Z)(t,"".concat(n,"-row-expanded"),o),(0,C.Z)(t,"".concat(n,"-row-collapsed"),!o),t)),onClick:function(e){l(r,e),e.stopPropagation()}}):u.createElement("span",{className:E()(i,"".concat(n,"-row-spaced"))})}function em(e){var t=(0,u.useRef)(e),n=(0,u.useState)({}),r=(0,a.Z)(n,2)[1],l=(0,u.useRef)(null),o=(0,u.useRef)([]);return(0,u.useEffect)(function(){return function(){l.current=null}},[]),[t.current,function(e){o.current.push(e);var n=Promise.resolve();l.current=n,n.then(function(){if(l.current===n){var e=o.current,a=t.current;o.current=[],e.forEach(function(e){t.current=e(t.current)}),l.current=null,a!==t.current&&r({})}})}]}var eh=(0,B.Z)()?window:null,eg=function(e){var t=e.className,n=e.children;return u.createElement("div",{className:t},n)},ex=n(64019),eb=n(27678),ev=u.forwardRef(function(e,t){var n,r,l=e.scrollBodyRef,o=e.onScroll,i=e.offsetScroll,c=e.container,s=f(v,"prefixCls"),d=(null===(n=l.current)||void 0===n?void 0:n.scrollWidth)||0,p=(null===(r=l.current)||void 0===r?void 0:r.clientWidth)||0,m=d&&p*(p/d),h=u.useRef(),g=em({scrollLeft:0,isHiddenScrollBar:!1}),x=(0,a.Z)(g,2),b=x[0],y=x[1],$=u.useRef({delta:0,x:0}),S=u.useState(!1),k=(0,a.Z)(S,2),Z=k[0],N=k[1],O=function(){N(!1)},R=function(e){var t,n=(e||(null===(t=window)||void 0===t?void 0:t.event)).buttons;if(!Z||0===n){Z&&N(!1);return}var r=$.current.x+e.pageX-$.current.x-$.current.delta;r<=0&&(r=0),r+m>=p&&(r=p-m),o({scrollLeft:r/p*(d+2)}),$.current.x=e.pageX},I=function(){if(l.current){var e=(0,eb.os)(l.current).top,t=e+l.current.offsetHeight,n=c===window?document.documentElement.scrollTop+window.innerHeight:(0,eb.os)(c).top+c.clientHeight;t-(0,D.Z)()<=n||e>=n-i?y(function(e){return(0,w.Z)((0,w.Z)({},e),{},{isHiddenScrollBar:!0})}):y(function(e){return(0,w.Z)((0,w.Z)({},e),{},{isHiddenScrollBar:!1})})}},j=function(e){y(function(t){return(0,w.Z)((0,w.Z)({},t),{},{scrollLeft:e/d*p||0})})};return(u.useImperativeHandle(t,function(){return{setScrollLeft:j}}),u.useEffect(function(){var e=(0,ex.Z)(document.body,"mouseup",O,!1),t=(0,ex.Z)(document.body,"mousemove",R,!1);return I(),function(){e.remove(),t.remove()}},[m,Z]),u.useEffect(function(){var e=(0,ex.Z)(c,"scroll",I,!1),t=(0,ex.Z)(window,"resize",I,!1);return function(){e.remove(),t.remove()}},[c]),u.useEffect(function(){b.isHiddenScrollBar||y(function(e){var t=l.current;return t?(0,w.Z)((0,w.Z)({},e),{},{scrollLeft:t.scrollLeft/t.scrollWidth*t.clientWidth}):e})},[b.isHiddenScrollBar]),d<=p||!m||b.isHiddenScrollBar)?null:u.createElement("div",{style:{height:(0,D.Z)(),width:p,bottom:i},className:"".concat(s,"-sticky-scroll")},u.createElement("div",{onMouseDown:function(e){e.persist(),$.current.delta=e.pageX-b.scrollLeft,$.current.x=0,N(!0),e.preventDefault()},ref:h,className:E()("".concat(s,"-sticky-scroll-bar"),(0,C.Z)({},"".concat(s,"-sticky-scroll-bar-active"),Z)),style:{width:"".concat(m,"px"),transform:"translate3d(".concat(b.scrollLeft,"px, 0, 0)")}}))}),ey=[],ew={};function eC(){return"No Data"}function e$(e){var t,n=(0,w.Z)({rowKey:"key",prefixCls:"rc-table",emptyText:eC},e),r=n.prefixCls,l=n.className,c=n.rowClassName,d=n.style,f=n.data,m=n.rowKey,h=n.scroll,g=n.tableLayout,x=n.direction,b=n.title,$=n.footer,Z=n.summary,O=n.caption,R=n.id,j=n.showHeader,P=n.components,B=n.emptyText,K=n.onRow,V=n.onHeaderRow,X=n.internalHooks,U=n.transformColumns,G=n.internalRefs,Y=n.sticky,Q=f||ey,ee=!!Q.length,en=u.useCallback(function(e,t){return(0,k.Z)(P,e)||t},[P]),er=u.useMemo(function(){return"function"==typeof m?m:function(e){return e&&e[m]}},[m]),eo=(tz=u.useState(-1),tH=(tM=(0,a.Z)(tz,2))[0],tL=tM[1],tB=u.useState(-1),t_=(tA=(0,a.Z)(tB,2))[0],tD=tA[1],[tH,t_,u.useCallback(function(e,t){tL(e),tD(t)},[])]),ei=(0,a.Z)(eo,3),ec=ei[0],es=ei[1],eu=ei[2],ed=(tW=n.expandable,tK=(0,T.Z)(n,q),!1===(tF="expandable"in n?(0,w.Z)((0,w.Z)({},tK),tW):tK).showExpandColumn&&(tF.expandIconColumnIndex=-1),tV=tF.expandIcon,tX=tF.expandedRowKeys,tU=tF.defaultExpandedRowKeys,tG=tF.defaultExpandAllRows,tY=tF.expandedRowRender,tJ=tF.onExpand,tq=tF.onExpandedRowsChange,tQ=tF.childrenColumnName||"children",t0=u.useMemo(function(){return tY?"row":!!(n.expandable&&n.internalHooks===o&&n.expandable.__PARENT_RENDER_ICON__||Q.some(function(e){return e&&"object"===(0,y.Z)(e)&&e[tQ]}))&&"nest"},[!!tY,Q]),t1=u.useState(function(){if(tU)return tU;if(tG){var e;return e=[],function t(n){(n||[]).forEach(function(n,r){e.push(er(n,r)),t(n[tQ])})}(Q),e}return[]}),t8=(t2=(0,a.Z)(t1,2))[0],t3=t2[1],t4=u.useMemo(function(){return new Set(tX||t8||[])},[tX,t8]),t5=u.useCallback(function(e){var t,n=er(e,Q.indexOf(e)),r=t4.has(n);r?(t4.delete(n),t=(0,W.Z)(t4)):t=[].concat((0,W.Z)(t4),[n]),t3(t),tJ&&tJ(!r,e),tq&&tq(t)},[er,t4,Q,tJ,tq]),[tF,t0,t4,tV||ep,tQ,t5]),ex=(0,a.Z)(ed,6),eb=ex[0],e$=ex[1],eE=ex[2],eS=ex[3],ek=ex[4],eZ=ex[5],eN=u.useState(0),eO=(0,a.Z)(eN,2),eR=eO[0],eI=eO[1],ej=ef((0,w.Z)((0,w.Z)((0,w.Z)({},n),eb),{},{expandable:!!eb.expandedRowRender,columnTitle:eb.columnTitle,expandedKeys:eE,getRowKey:er,onTriggerExpand:eZ,expandIcon:eS,expandIconColumnIndex:eb.expandIconColumnIndex,direction:x}),X===o?U:null),eT=(0,a.Z)(ej,2),eP=eT[0],ez=eT[1],eM=u.useMemo(function(){return{columns:eP,flattenColumns:ez}},[eP,ez]),eH=u.useRef(),eL=u.useRef(),eB=u.useRef(),eA=u.useRef(),e_=u.useRef(),eD=u.useState(!1),eF=(0,a.Z)(eD,2),eW=eF[0],eK=eF[1],eV=u.useState(!1),eX=(0,a.Z)(eV,2),eU=eX[0],eG=eX[1],eY=em(new Map),eJ=(0,a.Z)(eY,2),eq=eJ[0],eQ=eJ[1],e0=N(ez).map(function(e){return eq.get(e)}),e1=u.useMemo(function(){return e0},[e0.join("_")]),e2=(t6=ez.length,(0,u.useMemo)(function(){for(var e=[],t=[],n=0,r=0,l=0;l0)):(eK(o>0),eG(o{let{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r});function ez(e,t){return"key"in e&&void 0!==e.key&&null!==e.key?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex:t}function eM(e,t){return t?`${t}-${e}`:`${e}`}function eH(e,t){return"function"==typeof e?e(t):e}var eL={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"},eB=n(84089),eA=u.forwardRef(function(e,t){return u.createElement(eB.Z,(0,p.Z)({},e,{ref:t,icon:eL}))}),e_=n(57838),eD=n(71577),eF=n(84567),eW=n(85418),eK=n(32983),eV=n(82610),eX=n(76529),eU=n(78045),eG=n(57346),eY=n(68795),eJ=n(59566),eq=function(e){let{value:t,onChange:n,filterSearch:r,tablePrefixCls:l,locale:o}=e;return r?u.createElement("div",{className:`${l}-filter-dropdown-search`},u.createElement(eJ.default,{prefix:u.createElement(eY.Z,null),placeholder:o.filterSearchPlaceholder,onChange:n,value:t,htmlSize:1,className:`${l}-filter-dropdown-search-input`})):null},eQ=n(15105);let e0=e=>{let{keyCode:t}=e;t===eQ.Z.ENTER&&e.stopPropagation()},e1=u.forwardRef((e,t)=>u.createElement("div",{className:e.className,onClick:e=>e.stopPropagation(),onKeyDown:e0,ref:t},e.children));function e2(e){let t=[];return(e||[]).forEach(e=>{let{value:n,children:r}=e;t.push(n),r&&(t=[].concat((0,W.Z)(t),(0,W.Z)(e2(r))))}),t}function e8(e,t){return("string"==typeof t||"number"==typeof t)&&(null==t?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()))}var e3=function(e){var t,n;let r,l;let{tablePrefixCls:o,prefixCls:a,column:i,dropdownPrefixCls:c,columnKey:d,filterMultiple:f,filterMode:p="menu",filterSearch:m=!1,filterState:h,triggerFilter:g,locale:x,children:b,getPopupContainer:v}=e,{filterDropdownOpen:y,onFilterDropdownOpenChange:w,filterResetToDefaultFilteredValue:C,defaultFilteredValue:$,filterDropdownVisible:S,onFilterDropdownVisibleChange:k}=i,[Z,N]=u.useState(!1),O=!!(h&&((null===(t=h.filteredKeys)||void 0===t?void 0:t.length)||h.forceFiltered)),R=e=>{N(e),null==w||w(e),null==k||k(e)},I=null!==(n=null!=y?y:S)&&void 0!==n?n:Z,j=null==h?void 0:h.filteredKeys,[T,P]=function(e){let t=u.useRef(e),n=(0,e_.Z)();return[()=>t.current,e=>{t.current=e,n()}]}(j||[]),z=e=>{let{selectedKeys:t}=e;P(t)};u.useEffect(()=>{Z&&z({selectedKeys:j||[]})},[j]);let[M,H]=u.useState([]),[L,B]=u.useState(""),A=e=>{let{value:t}=e.target;B(t)};u.useEffect(()=>{Z||B("")},[Z]);let _=e=>{let t=e&&e.length?e:null;if(null===t&&(!h||!h.filteredKeys)||(0,s.Z)(t,null==h?void 0:h.filteredKeys,!0))return null;g({column:i,key:d,filteredKeys:t})},D=()=>{R(!1),_(T())},F=function(){let{confirm:e,closeDropdown:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{confirm:!1,closeDropdown:!1};e&&_([]),t&&R(!1),B(""),C?P(($||[]).map(e=>String(e))):P([])},W=E()({[`${c}-menu-without-submenu`]:!(i.filters||[]).some(e=>{let{children:t}=e;return t})}),K=e=>{let{filters:t}=e;return(t||[]).map((e,t)=>{let n=String(e.value),r={title:e.text,key:void 0!==e.value?n:t};return e.children&&(r.children=K({filters:e.children})),r})},V=e=>{var t;return Object.assign(Object.assign({},e),{text:e.title,value:e.key,children:(null===(t=e.children)||void 0===t?void 0:t.map(e=>V(e)))||[]})};if("function"==typeof i.filterDropdown)r=i.filterDropdown({prefixCls:`${c}-custom`,setSelectedKeys:e=>z({selectedKeys:e}),selectedKeys:T(),confirm:function(){let{closeDropdown:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{closeDropdown:!0};e&&R(!1),_(T())},clearFilters:F,filters:i.filters,visible:I,close:()=>{R(!1)}});else if(i.filterDropdown)r=i.filterDropdown;else{let e=T()||[];r=u.createElement(u.Fragment,null,0===(i.filters||[]).length?u.createElement(eK.Z,{image:eK.Z.PRESENTED_IMAGE_SIMPLE,description:x.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):"tree"===p?u.createElement(u.Fragment,null,u.createElement(eq,{filterSearch:m,value:L,onChange:A,tablePrefixCls:o,locale:x}),u.createElement("div",{className:`${o}-filter-dropdown-tree`},f?u.createElement(eF.Z,{checked:e.length===e2(i.filters).length,indeterminate:e.length>0&&e.length{if(e.target.checked){let e=e2(null==i?void 0:i.filters).map(e=>String(e));P(e)}else P([])}},x.filterCheckall):null,u.createElement(eG.Z,{checkable:!0,selectable:!1,blockNode:!0,multiple:f,checkStrictly:!f,className:`${c}-menu`,onCheck:(e,t)=>{let{node:n,checked:r}=t;f?z({selectedKeys:e}):z({selectedKeys:r&&n.key?[n.key]:[]})},checkedKeys:e,selectedKeys:e,showIcon:!1,treeData:K({filters:i.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:L.trim()?e=>"function"==typeof m?m(L,V(e)):e8(L,e.title):void 0}))):u.createElement(u.Fragment,null,u.createElement(eq,{filterSearch:m,value:L,onChange:A,tablePrefixCls:o,locale:x}),u.createElement(eV.Z,{selectable:!0,multiple:f,prefixCls:`${c}-menu`,className:W,onSelect:z,onDeselect:z,selectedKeys:e,getPopupContainer:v,openKeys:M,onOpenChange:e=>{H(e)},items:function e(t){let{filters:n,prefixCls:r,filteredKeys:l,filterMultiple:o,searchValue:a,filterSearch:i}=t;return n.map((t,n)=>{let c=String(t.value);if(t.children)return{key:c||n,label:t.text,popupClassName:`${r}-dropdown-submenu`,children:e({filters:t.children,prefixCls:r,filteredKeys:l,filterMultiple:o,searchValue:a,filterSearch:i})};let s=o?eF.Z:eU.ZP,d={key:void 0!==t.value?c:n,label:u.createElement(u.Fragment,null,u.createElement(s,{checked:l.includes(c)}),u.createElement("span",null,t.text))};return a.trim()?"function"==typeof i?i(a,t)?d:null:e8(a,t.text)?d:null:d})}({filters:i.filters||[],filterSearch:m,prefixCls:a,filteredKeys:T(),filterMultiple:f,searchValue:L})})),u.createElement("div",{className:`${a}-dropdown-btns`},u.createElement(eD.ZP,{type:"link",size:"small",disabled:C?(0,s.Z)(($||[]).map(e=>String(e)),e,!0):0===e.length,onClick:()=>F()},x.filterReset),u.createElement(eD.ZP,{type:"primary",size:"small",onClick:D},x.filterConfirm)))}i.filterDropdown&&(r=u.createElement(eX.J,{selectable:void 0},r)),l="function"==typeof i.filterIcon?i.filterIcon(O):i.filterIcon?i.filterIcon:u.createElement(eA,null);let{direction:X}=u.useContext(eZ.E_);return u.createElement("div",{className:`${a}-column`},u.createElement("span",{className:`${o}-column-title`},b),u.createElement(eW.Z,{dropdownRender:()=>u.createElement(e1,{className:`${a}-dropdown`},r),trigger:["click"],open:I,onOpenChange:e=>{e&&void 0!==j&&P(j||[]),R(e),e||i.filterDropdown||D()},getPopupContainer:v,placement:"rtl"===X?"bottomLeft":"bottomRight"},u.createElement("span",{role:"button",tabIndex:-1,className:E()(`${a}-trigger`,{active:O}),onClick:e=>{e.stopPropagation()}},l)))};function e4(e,t,n){let r=[];return(e||[]).forEach((e,l)=>{var o;let a=eM(l,n);if(e.filters||"filterDropdown"in e||"onFilter"in e){if("filteredValue"in e){let t=e.filteredValue;"filterDropdown"in e||(t=null!==(o=null==t?void 0:t.map(String))&&void 0!==o?o:t),r.push({column:e,key:ez(e,a),filteredKeys:t,forceFiltered:e.filtered})}else r.push({column:e,key:ez(e,a),filteredKeys:t&&e.defaultFilteredValue?e.defaultFilteredValue:void 0,forceFiltered:e.filtered})}"children"in e&&(r=[].concat((0,W.Z)(r),(0,W.Z)(e4(e.children,t,a))))}),r}function e5(e){let t={};return e.forEach(e=>{let{key:n,filteredKeys:r,column:l}=e,{filters:o,filterDropdown:a}=l;if(a)t[n]=r||null;else if(Array.isArray(r)){let e=e2(o);t[n]=e.filter(e=>r.includes(String(e)))}else t[n]=null}),t}function e6(e,t){return t.reduce((e,t)=>{let{column:{onFilter:n,filters:r},filteredKeys:l}=t;return n&&l&&l.length?e.filter(e=>l.some(t=>{let l=e2(r),o=l.findIndex(e=>String(e)===String(t)),a=-1!==o?l[o]:t;return n(a,e)})):e},e)}let e7=e=>e.flatMap(e=>"children"in e?[e].concat((0,W.Z)(e7(e.children||[]))):[e]);var e9=function(e){let{prefixCls:t,dropdownPrefixCls:n,mergedColumns:r,onFilterChange:l,getPopupContainer:o,locale:a}=e,i=u.useMemo(()=>e7(r||[]),[r]),[c,s]=u.useState(()=>e4(i,!0)),d=u.useMemo(()=>{let e=e4(i,!1);if(0===e.length)return e;let t=!0;if(e.forEach(e=>{let{filteredKeys:n}=e;void 0!==n&&(t=!1)}),t){let e=(i||[]).map((e,t)=>ez(e,eM(t)));return c.filter(t=>{let{key:n}=t;return e.includes(n)}).map(t=>{let n=i[e.findIndex(e=>e===t.key)];return Object.assign(Object.assign({},t),{column:Object.assign(Object.assign({},t.column),n),forceFiltered:n.filtered})})}return e},[i,c]),f=u.useMemo(()=>e5(d),[d]),p=e=>{let t=d.filter(t=>{let{key:n}=t;return n!==e.key});t.push(e),s(t),l(e5(t),t)};return[e=>(function e(t,n,r,l,o,a,i,c){return r.map((r,s)=>{let d=eM(s,c),{filterMultiple:f=!0,filterMode:p,filterSearch:m}=r,h=r;if(h.filters||h.filterDropdown){let e=ez(h,d),c=l.find(t=>{let{key:n}=t;return e===n});h=Object.assign(Object.assign({},h),{title:l=>u.createElement(e3,{tablePrefixCls:t,prefixCls:`${t}-filter`,dropdownPrefixCls:n,column:h,columnKey:e,filterState:c,filterMultiple:f,filterMode:p,filterSearch:m,triggerFilter:a,locale:o,getPopupContainer:i},eH(r.title,l))})}return"children"in h&&(h=Object.assign(Object.assign({},h),{children:e(t,n,h.children,l,o,a,i,d)})),h})})(t,n,e,d,a,p,o),d,f]},te=n(38780),tt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var l=0,r=Object.getOwnPropertySymbols(e);lt.indexOf(r[l])&&Object.prototype.propertyIsEnumerable.call(e,r[l])&&(n[r[l]]=e[r[l]]);return n},tn=function(e,t,n){let r=n&&"object"==typeof n?n:{},{total:l=0}=r,o=tt(r,["total"]),[a,i]=(0,u.useState)(()=>({current:"defaultCurrent"in o?o.defaultCurrent:1,pageSize:"defaultPageSize"in o?o.defaultPageSize:10})),c=(0,te.Z)(a,o,{total:l>0?l:e}),s=Math.ceil((l||e)/c.pageSize);c.current>s&&(c.current=s||1);let d=(e,t)=>{i({current:null!=e?e:1,pageSize:t||c.pageSize})};return!1===n?[{},()=>{}]:[Object.assign(Object.assign({},c),{onChange:(e,r)=>{var l;n&&(null===(l=n.onChange)||void 0===l||l.call(n,e,r)),d(e,r),t(e,r||(null==c?void 0:c.pageSize))}}),d]},tr=n(80882),tl=n(10225),to=n(17341),ta=n(1089),ti=n(21770);let tc={},ts="SELECT_ALL",tu="SELECT_INVERT",td="SELECT_NONE",tf=[],tp=(e,t)=>{let n=[];return(t||[]).forEach(t=>{n.push(t),t&&"object"==typeof t&&e in t&&(n=[].concat((0,W.Z)(n),(0,W.Z)(tp(e,t[e]))))}),n};var tm=(e,t)=>{let{preserveSelectedRowKeys:n,selectedRowKeys:r,defaultSelectedRowKeys:l,getCheckboxProps:o,onChange:a,onSelect:i,onSelectAll:c,onSelectInvert:s,onSelectNone:d,onSelectMultiple:f,columnWidth:p,type:m,selections:h,fixed:g,renderCell:x,hideSelectAll:b,checkStrictly:v=!0}=t||{},{prefixCls:y,data:w,pageData:C,getRecordByKey:$,getRowKey:S,expandType:k,childrenColumnName:Z,locale:N,getPopupContainer:O}=e,[R,I]=(0,ti.Z)(r||l||tf,{value:r}),j=u.useRef(new Map),T=(0,u.useCallback)(e=>{if(n){let t=new Map;e.forEach(e=>{let n=$(e);!n&&j.current.has(e)&&(n=j.current.get(e)),t.set(e,n)}),j.current=t}},[$,n]);u.useEffect(()=>{T(R)},[R]);let{keyEntities:P}=(0,u.useMemo)(()=>{if(v)return{keyEntities:null};let e=w;if(n){let t=new Set(w.map((e,t)=>S(e,t))),n=Array.from(j.current).reduce((e,n)=>{let[r,l]=n;return t.has(r)?e:e.concat(l)},[]);e=[].concat((0,W.Z)(e),(0,W.Z)(n))}return(0,ta.I8)(e,{externalGetKey:S,childrenPropName:Z})},[w,S,v,Z,n]),z=(0,u.useMemo)(()=>tp(Z,C),[Z,C]),M=(0,u.useMemo)(()=>{let e=new Map;return z.forEach((t,n)=>{let r=S(t,n),l=(o?o(t):null)||{};e.set(r,l)}),e},[z,S,o]),H=(0,u.useCallback)(e=>{var t;return!!(null===(t=M.get(S(e)))||void 0===t?void 0:t.disabled)},[M,S]),[L,B]=(0,u.useMemo)(()=>{if(v)return[R||[],[]];let{checkedKeys:e,halfCheckedKeys:t}=(0,to.S)(R,!0,P,H);return[e||[],t]},[R,v,P,H]),A=(0,u.useMemo)(()=>{let e="radio"===m?L.slice(0,1):L;return new Set(e)},[L,m]),_=(0,u.useMemo)(()=>"radio"===m?new Set:new Set(B),[B,m]),[D,F]=(0,u.useState)(null);u.useEffect(()=>{t||I(tf)},[!!t]);let K=(0,u.useCallback)((e,t)=>{let r,l;T(e),n?(r=e,l=e.map(e=>j.current.get(e))):(r=[],l=[],e.forEach(e=>{let t=$(e);void 0!==t&&(r.push(e),l.push(t))})),I(r),null==a||a(r,l,{type:t})},[I,$,a,n]),V=(0,u.useCallback)((e,t,n,r)=>{if(i){let l=n.map(e=>$(e));i($(e),t,l,r)}K(n,"single")},[i,$,K]),X=(0,u.useMemo)(()=>{if(!h||b)return null;let e=!0===h?[ts,tu,td]:h;return e.map(e=>e===ts?{key:"all",text:N.selectionAll,onSelect(){K(w.map((e,t)=>S(e,t)).filter(e=>{let t=M.get(e);return!(null==t?void 0:t.disabled)||A.has(e)}),"all")}}:e===tu?{key:"invert",text:N.selectInvert,onSelect(){let e=new Set(A);C.forEach((t,n)=>{let r=S(t,n),l=M.get(r);(null==l?void 0:l.disabled)||(e.has(r)?e.delete(r):e.add(r))});let t=Array.from(e);s&&s(t),K(t,"invert")}}:e===td?{key:"none",text:N.selectNone,onSelect(){null==d||d(),K(Array.from(A).filter(e=>{let t=M.get(e);return null==t?void 0:t.disabled}),"none")}}:e).map(e=>Object.assign(Object.assign({},e),{onSelect:function(){for(var t,n=arguments.length,r=Array(n),l=0;l{var n;let r,l;if(!t)return e.filter(e=>e!==tc);let o=(0,W.Z)(e),a=new Set(A),i=z.map(S).filter(e=>!M.get(e).disabled),s=i.every(e=>a.has(e)),d=i.some(e=>a.has(e));if("radio"!==m){let e;if(X){let t={getPopupContainer:O,items:X.map((e,t)=>{let{key:n,text:r,onSelect:l}=e;return{key:null!=n?n:t,onClick:()=>{null==l||l(i)},label:r}})};e=u.createElement("div",{className:`${y}-selection-extra`},u.createElement(eW.Z,{menu:t,getPopupContainer:O},u.createElement("span",null,u.createElement(tr.Z,null))))}let t=z.map((e,t)=>{let n=S(e,t),r=M.get(n)||{};return Object.assign({checked:a.has(n)},r)}).filter(e=>{let{disabled:t}=e;return t}),n=!!t.length&&t.length===z.length,l=n&&t.every(e=>{let{checked:t}=e;return t}),o=n&&t.some(e=>{let{checked:t}=e;return t});r=!b&&u.createElement("div",{className:`${y}-selection`},u.createElement(eF.Z,{checked:n?l:!!z.length&&s,indeterminate:n?!l&&o:!s&&d,onChange:()=>{let e=[];s?i.forEach(t=>{a.delete(t),e.push(t)}):i.forEach(t=>{a.has(t)||(a.add(t),e.push(t))});let t=Array.from(a);null==c||c(!s,t.map(e=>$(e)),e.map(e=>$(e))),K(t,"all"),F(null)},disabled:0===z.length||n,"aria-label":e?"Custom selection":"Select all",skipGroup:!0}),e)}if(l="radio"===m?(e,t,n)=>{let r=S(t,n),l=a.has(r);return{node:u.createElement(eU.ZP,Object.assign({},M.get(r),{checked:l,onClick:e=>e.stopPropagation(),onChange:e=>{a.has(r)||V(r,!0,[r],e.nativeEvent)}})),checked:l}}:(e,t,n)=>{var r;let l;let o=S(t,n),c=a.has(o),s=_.has(o),d=M.get(o);return l="nest"===k?s:null!==(r=null==d?void 0:d.indeterminate)&&void 0!==r?r:s,{node:u.createElement(eF.Z,Object.assign({},d,{indeterminate:l,checked:c,skipGroup:!0,onClick:e=>e.stopPropagation(),onChange:e=>{let{nativeEvent:t}=e,{shiftKey:n}=t,r=-1,l=-1;if(n&&v){let e=new Set([D,o]);i.some((t,n)=>{if(e.has(t)){if(-1!==r)return l=n,!0;r=n}return!1})}if(-1!==l&&r!==l&&v){let e=i.slice(r,l+1),t=[];c?e.forEach(e=>{a.has(e)&&(t.push(e),a.delete(e))}):e.forEach(e=>{a.has(e)||(t.push(e),a.add(e))});let n=Array.from(a);null==f||f(!c,n.map(e=>$(e)),t.map(e=>$(e))),K(n,"multiple")}else if(v){let e=c?(0,tl._5)(L,o):(0,tl.L0)(L,o);V(o,!c,e,t)}else{let e=(0,to.S)([].concat((0,W.Z)(L),[o]),!0,P,H),{checkedKeys:n,halfCheckedKeys:r}=e,l=n;if(c){let e=new Set(n);e.delete(o),l=(0,to.S)(Array.from(e),{checked:!1,halfCheckedKeys:r},P,H).checkedKeys}V(o,!c,l,t)}c?F(null):F(o)}})),checked:c}},!o.includes(tc)){if(0===o.findIndex(e=>{var t;return(null===(t=e[Q])||void 0===t?void 0:t.columnType)==="EXPAND_COLUMN"})){let[e,...t]=o;o=[e,tc].concat((0,W.Z)(t))}else o=[tc].concat((0,W.Z)(o))}let w=o.indexOf(tc);o=o.filter((e,t)=>e!==tc||t===w);let C=o[w-1],Z=o[w+1],N=g;void 0===N&&((null==Z?void 0:Z.fixed)!==void 0?N=Z.fixed:(null==C?void 0:C.fixed)!==void 0&&(N=C.fixed)),N&&C&&(null===(n=C[Q])||void 0===n?void 0:n.columnType)==="EXPAND_COLUMN"&&void 0===C.fixed&&(C.fixed=N);let R=E()(`${y}-selection-col`,{[`${y}-selection-col-with-dropdown`]:h&&"checkbox"===m}),I={fixed:N,width:p,className:`${y}-selection-column`,title:t.columnTitle||r,render:(e,t,n)=>{let{node:r,checked:o}=l(e,t,n);return x?x(o,t,n,r):r},onCell:t.onCell,[Q]:{className:R}};return o.map(e=>e===tc?I:e)},[S,z,t,L,A,_,p,X,k,D,M,f,V,H]);return[U,A]},th={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},tg=u.forwardRef(function(e,t){return u.createElement(eB.Z,(0,p.Z)({},e,{ref:t,icon:th}))}),tx={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"},tb=u.forwardRef(function(e,t){return u.createElement(eB.Z,(0,p.Z)({},e,{ref:t,icon:tx}))}),tv=n(83062);let ty="ascend",tw="descend";function tC(e){return"object"==typeof e.sorter&&"number"==typeof e.sorter.multiple&&e.sorter.multiple}function t$(e){return"function"==typeof e?e:!!e&&"object"==typeof e&&!!e.compare&&e.compare}function tE(e,t,n){let r=[];function l(e,t){r.push({column:e,key:ez(e,t),multiplePriority:tC(e),sortOrder:e.sortOrder})}return(e||[]).forEach((e,o)=>{let a=eM(o,n);e.children?("sortOrder"in e&&l(e,a),r=[].concat((0,W.Z)(r),(0,W.Z)(tE(e.children,t,a)))):e.sorter&&("sortOrder"in e?l(e,a):t&&e.defaultSortOrder&&r.push({column:e,key:ez(e,a),multiplePriority:tC(e),sortOrder:e.defaultSortOrder}))}),r}function tS(e){let{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}}function tk(e){let t=e.filter(e=>{let{sortOrder:t}=e;return t}).map(tS);return 0===t.length&&e.length?Object.assign(Object.assign({},tS(e[e.length-1])),{column:void 0}):t.length<=1?t[0]||{}:t}function tZ(e,t,n){let r=t.slice().sort((e,t)=>t.multiplePriority-e.multiplePriority),l=e.slice(),o=r.filter(e=>{let{column:{sorter:t},sortOrder:n}=e;return t$(t)&&n});return o.length?l.sort((e,t)=>{for(let n=0;n{let r=e[n];return r?Object.assign(Object.assign({},e),{[n]:tZ(r,t,n)}):e}):l}var tN=n(10274),tO=n(14747),tR=n(67968),tI=n(45503),tj=e=>{let{componentCls:t}=e,n=`${e.lineWidth}px ${e.lineType} ${e.tableBorderColor}`,r=(n,r,l)=>({[`&${t}-${n}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{[` + > table > tbody > tr > th, + > table > tbody > tr > td + `]:{[`> ${t}-expanded-row-fixed`]:{margin:`-${r}px -${l+e.lineWidth}px`}}}}}});return{[`${t}-wrapper`]:{[`${t}${t}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${t}-title`]:{border:n,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:n,borderTop:n,[` + > ${t}-content, + > ${t}-header, + > ${t}-body, + > ${t}-summary + `]:{"> table":{[` + > thead > tr > th, + > thead > tr > td, + > tbody > tr > th, + > tbody > tr > td, + > tfoot > tr > th, + > tfoot > tr > td + `]:{borderInlineEnd:n},"> thead":{"> tr:not(:last-child) > th":{borderBottom:n},"> tr > th::before":{backgroundColor:"transparent !important"}},[` + > thead > tr, + > tbody > tr, + > tfoot > tr + `]:{[`> ${t}-cell-fix-right-first::after`]:{borderInlineEnd:n}},[` + > tbody > tr > th, + > tbody > tr > td + `]:{[`> ${t}-expanded-row-fixed`]:{margin:`-${e.tablePaddingVertical}px -${e.tablePaddingHorizontal+e.lineWidth}px`,"&::after":{position:"absolute",top:0,insetInlineEnd:e.lineWidth,bottom:0,borderInlineEnd:n,content:'""'}}}}}},[`&${t}-scroll-horizontal`]:{[`> ${t}-container > ${t}-body`]:{"> table > tbody":{[` + > tr${t}-expanded-row, + > tr${t}-placeholder + `]:{"> th, > td":{borderInlineEnd:0}}}}}},r("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle)),r("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall)),{[`> ${t}-footer`]:{border:n,borderTop:0}}),[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${e.lineWidth}px 0 ${e.lineWidth}px ${e.tableHeaderBg}`}},[`${t}-bordered ${t}-cell-scrollbar`]:{borderInlineEnd:n}}}},tT=e=>{let{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:Object.assign(Object.assign({},tO.vS),{wordBreak:"keep-all",[` + &${t}-cell-fix-left-last, + &${t}-cell-fix-right-first + `]:{overflow:"visible",[`${t}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${t}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},tP=e=>{let{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:"center",color:e.colorTextDisabled,[` + &:hover > th, + &:hover > td, + `]:{background:e.colorBgContainer}}}}};let tz=e=>({color:e.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}});var tM=e=>{let{componentCls:t,antCls:n,controlInteractiveSize:r,motionDurationSlow:l,lineWidth:o,paddingXS:a,lineType:i,tableBorderColor:c,tableExpandIconBg:s,tableExpandColumnWidth:u,borderRadius:d,fontSize:f,fontSizeSM:p,lineHeight:m,tablePaddingVertical:h,tablePaddingHorizontal:g,tableExpandedRowBg:x,paddingXXS:b}=e,v=r/2-o,y=2*v+3*o,w=`${o}px ${i} ${c}`,C=b-o;return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:u},[`${t}-row-expand-icon-cell`]:{textAlign:"center",[`${t}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${t}-row-indent`]:{height:1,float:"left"},[`${t}-row-expand-icon`]:Object.assign(Object.assign({},tz(e)),{position:"relative",float:"left",boxSizing:"border-box",width:y,height:y,padding:0,color:"inherit",lineHeight:`${y}px`,background:s,border:w,borderRadius:d,transform:`scale(${r/y})`,transition:`all ${l}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${l} ease-out`,content:'""'},"&::before":{top:v,insetInlineEnd:C,insetInlineStart:C,height:o},"&::after":{top:C,bottom:C,insetInlineStart:v,width:o,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${t}-row-indent + ${t}-row-expand-icon`]:{marginTop:(f*m-3*o)/2-Math.ceil((1.4*p-3*o)/2),marginInlineEnd:a},[`tr${t}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:x}},[`${n}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`-${h}px -${g}px`,padding:`${h}px ${g}px`}}}},tH=e=>{let{componentCls:t,antCls:n,iconCls:r,tableFilterDropdownWidth:l,tableFilterDropdownSearchWidth:o,paddingXXS:a,paddingXS:i,colorText:c,lineWidth:s,lineType:u,tableBorderColor:d,tableHeaderIconColor:f,fontSizeSM:p,tablePaddingHorizontal:m,borderRadius:h,motionDurationSlow:g,colorTextDescription:x,colorPrimary:b,tableHeaderFilterActiveBg:v,colorTextDisabled:y,tableFilterDropdownBg:w,tableFilterDropdownHeight:C,controlItemBgHover:$,controlItemBgActive:E,boxShadowSecondary:S}=e,k=`${n}-dropdown`,Z=`${t}-filter-dropdown`,N=`${n}-tree`,O=`${s}px ${u} ${d}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:-a,marginInline:`${a}px ${-m/2}px`,padding:`0 ${a}px`,color:f,fontSize:p,borderRadius:h,cursor:"pointer",transition:`all ${g}`,"&:hover":{color:x,background:v},"&.active":{color:b}}}},{[`${n}-dropdown`]:{[Z]:Object.assign(Object.assign({},(0,tO.Wf)(e)),{minWidth:l,backgroundColor:w,borderRadius:h,boxShadow:S,overflow:"hidden",[`${k}-menu`]:{maxHeight:C,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset","&:empty::after":{display:"block",padding:`${i}px 0`,color:y,fontSize:p,textAlign:"center",content:'"Not Found"'}},[`${Z}-tree`]:{paddingBlock:`${i}px 0`,paddingInline:i,[N]:{padding:0},[`${N}-treenode ${N}-node-content-wrapper:hover`]:{backgroundColor:$},[`${N}-treenode-checkbox-checked ${N}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:E}}},[`${Z}-search`]:{padding:i,borderBottom:O,"&-input":{input:{minWidth:o},[r]:{color:y}}},[`${Z}-checkall`]:{width:"100%",marginBottom:a,marginInlineStart:a},[`${Z}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${i-s}px ${i}px`,overflow:"hidden",borderTop:O}})}},{[`${n}-dropdown ${Z}, ${Z}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:i,color:c},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},tL=e=>{let{componentCls:t,lineWidth:n,colorSplit:r,motionDurationSlow:l,zIndexTableFixed:o,tableBg:a,zIndexTableSticky:i}=e;return{[`${t}-wrapper`]:{[` + ${t}-cell-fix-left, + ${t}-cell-fix-right + `]:{position:"sticky !important",zIndex:o,background:a},[` + ${t}-cell-fix-left-first::after, + ${t}-cell-fix-left-last::after + `]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:-n,width:30,transform:"translateX(100%)",transition:`box-shadow ${l}`,content:'""',pointerEvents:"none"},[`${t}-cell-fix-left-all::after`]:{display:"none"},[` + ${t}-cell-fix-right-first::after, + ${t}-cell-fix-right-last::after + `]:{position:"absolute",top:0,bottom:-n,left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${l}`,content:'""',pointerEvents:"none"},[`${t}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:i+1,width:30,transition:`box-shadow ${l}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${t}-ping-left`]:{[`&:not(${t}-has-fix-left) ${t}-container`]:{position:"relative","&::before":{boxShadow:`inset 10px 0 8px -8px ${r}`}},[` + ${t}-cell-fix-left-first::after, + ${t}-cell-fix-left-last::after + `]:{boxShadow:`inset 10px 0 8px -8px ${r}`},[`${t}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${t}-ping-right`]:{[`&:not(${t}-has-fix-right) ${t}-container`]:{position:"relative","&::after":{boxShadow:`inset -10px 0 8px -8px ${r}`}},[` + ${t}-cell-fix-right-first::after, + ${t}-cell-fix-right-last::after + `]:{boxShadow:`inset -10px 0 8px -8px ${r}`}}}}},tB=e=>{let{componentCls:t,antCls:n}=e;return{[`${t}-wrapper`]:{[`${t}-pagination${n}-pagination`]:{margin:`${e.margin}px 0`},[`${t}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},tA=e=>{let{componentCls:t,tableRadius:n}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${n}px ${n}px 0 0`},[`${t}-title + ${t}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${t}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:n,borderStartEndRadius:n,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:n},"> *:last-child":{borderStartEndRadius:n}}},"&-footer":{borderRadius:`0 0 ${n}px ${n}px`}}}}},t_=e=>{let{componentCls:t}=e;return{[`${t}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${t}-pagination-left`]:{justifyContent:"flex-end"},[`${t}-pagination-right`]:{justifyContent:"flex-start"},[`${t}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${t}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${t}-row-indent`]:{float:"right"}}}}},tD=e=>{let{componentCls:t,antCls:n,iconCls:r,fontSizeIcon:l,padding:o,paddingXS:a,tableHeaderIconColor:i,tableHeaderIconColorHover:c,tableSelectionColumnWidth:s}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:s,[`&${t}-selection-col-with-dropdown`]:{width:s+l+o/4}},[`${t}-bordered ${t}-selection-col`]:{width:s+2*a,[`&${t}-selection-col-with-dropdown`]:{width:s+l+o/4+2*a}},[` + table tr th${t}-selection-column, + table tr td${t}-selection-column + `]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS,textAlign:"center",[`${n}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${t}-selection-column${t}-cell-fix-left`]:{zIndex:e.zIndexTableFixed+1},[`table tr th${t}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${t}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${t}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:`${e.tablePaddingHorizontal/4}px`,[r]:{color:i,fontSize:l,verticalAlign:"baseline","&:hover":{color:c}}}}}},tF=e=>{let{componentCls:t}=e,n=(n,r,l,o)=>({[`${t}${t}-${n}`]:{fontSize:o,[` + ${t}-title, + ${t}-footer, + ${t}-thead > tr > th, + ${t}-tbody > tr > th, + ${t}-tbody > tr > td, + tfoot > tr > th, + tfoot > tr > td + `]:{padding:`${r}px ${l}px`},[`${t}-filter-trigger`]:{marginInlineEnd:`-${l/2}px`},[`${t}-expanded-row-fixed`]:{margin:`-${r}px -${l}px`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:`-${r}px`,marginInline:`${e.tableExpandColumnWidth-l}px -${l}px`}},[`${t}-selection-column`]:{paddingInlineStart:`${l/4}px`}}});return{[`${t}-wrapper`]:Object.assign(Object.assign({},n("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle)),n("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall))}},tW=e=>{let{componentCls:t,marginXXS:n,fontSizeIcon:r,tableHeaderIconColor:l,tableHeaderIconColorHover:o}=e;return{[`${t}-wrapper`]:{[`${t}-thead th${t}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{background:e.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:e.colorPrimary},[` + &${t}-cell-fix-left:hover, + &${t}-cell-fix-right:hover + `]:{background:e.tableFixedHeaderSortActiveBg}},[`${t}-thead th${t}-column-sort`]:{background:e.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${t}-column-sort`]:{background:e.tableBodySortBg},[`${t}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${t}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${t}-column-sorter`]:{marginInlineStart:n,color:l,fontSize:0,transition:`color ${e.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:r,"&.active":{color:e.colorPrimary}},[`${t}-column-sorter-up + ${t}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${t}-column-sorters:hover ${t}-column-sorter`]:{color:o}}}},tK=e=>{let{componentCls:t,opacityLoading:n,tableScrollThumbBg:r,tableScrollThumbBgHover:l,tableScrollThumbSize:o,tableScrollBg:a,zIndexTableSticky:i}=e,c=`${e.lineWidth}px ${e.lineType} ${e.tableBorderColor}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:i,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${o}px !important`,zIndex:i,display:"flex",alignItems:"center",background:a,borderTop:c,opacity:n,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:o,backgroundColor:r,borderRadius:100,transition:`all ${e.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:l}}}}}}},tV=e=>{let{componentCls:t,lineWidth:n,tableBorderColor:r}=e,l=`${n}px ${e.lineType} ${r}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:l}}},[`div${t}-summary`]:{boxShadow:`0 -${n}px 0 ${r}`}}}};let tX=e=>{let{componentCls:t,fontWeightStrong:n,tablePaddingVertical:r,tablePaddingHorizontal:l,lineWidth:o,lineType:a,tableBorderColor:i,tableFontSize:c,tableBg:s,tableRadius:u,tableHeaderTextColor:d,motionDurationMid:f,tableHeaderBg:p,tableHeaderCellSplitColor:m,tableRowHoverBg:h,tableSelectedRowBg:g,tableSelectedRowHoverBg:x,tableFooterTextColor:b,tableFooterBg:v,paddingContentVerticalLG:y}=e,w=`${o}px ${a} ${i}`;return{[`${t}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,tO.dF)()),{[t]:Object.assign(Object.assign({},(0,tO.Wf)(e)),{fontSize:c,background:s,borderRadius:`${u}px ${u}px 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${u}px ${u}px 0 0`,borderCollapse:"separate",borderSpacing:0},[` + ${t}-thead > tr > th, + ${t}-tbody > tr > th, + ${t}-tbody > tr > td, + tfoot > tr > th, + tfoot > tr > td + `]:{position:"relative",padding:`${y}px ${l}px`,overflowWrap:"break-word"},[`${t}-title`]:{padding:`${r}px ${l}px`},[`${t}-thead`]:{[` + > tr > th, + > tr > td + `]:{position:"relative",color:d,fontWeight:n,textAlign:"start",background:p,borderBottom:w,transition:`background ${f} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${t}-selection-column):not(${t}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:m,transform:"translateY(-50%)",transition:`background-color ${f}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${t}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${f}, border-color ${f}`,borderBottom:w,[` + > ${t}-wrapper:only-child, + > ${t}-expanded-row-fixed > ${t}-wrapper:only-child + `]:{[t]:{marginBlock:`-${r}px`,marginInline:`${e.tableExpandColumnWidth-l}px -${l}px`,[`${t}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:d,fontWeight:n,textAlign:"start",background:p,borderBottom:w,transition:`background ${f} ease`},[` + &${t}-row:hover > th, + &${t}-row:hover > td, + > th${t}-cell-row-hover, + > td${t}-cell-row-hover + `]:{background:h},[`&${t}-row-selected`]:{"> th, > td":{background:g},"&:hover > th, &:hover > td":{background:x}}}},[`${t}-footer`]:{padding:`${r}px ${l}px`,color:b,background:v}})}};var tU=(0,tR.Z)("Table",e=>{let{controlItemBgActive:t,controlItemBgActiveHover:n,colorTextPlaceholder:r,colorTextHeading:l,colorSplit:o,colorBorderSecondary:a,fontSize:i,padding:c,paddingXS:s,paddingSM:u,controlHeight:d,colorFillAlter:f,colorIcon:p,colorIconHover:m,opacityLoading:h,colorBgContainer:g,borderRadiusLG:x,colorFillContent:b,colorFillSecondary:v,controlInteractiveSize:y}=e,w=new tN.C(p),C=new tN.C(m),$=new tN.C(v).onBackground(g).toHexShortString(),E=new tN.C(b).onBackground(g).toHexShortString(),S=new tN.C(f).onBackground(g).toHexShortString(),k=(0,tI.TS)(e,{tableFontSize:i,tableBg:g,tableRadius:x,tablePaddingVertical:c,tablePaddingHorizontal:c,tablePaddingVerticalMiddle:u,tablePaddingHorizontalMiddle:s,tablePaddingVerticalSmall:s,tablePaddingHorizontalSmall:s,tableBorderColor:a,tableHeaderTextColor:l,tableHeaderBg:S,tableFooterTextColor:l,tableFooterBg:S,tableHeaderCellSplitColor:a,tableHeaderSortBg:$,tableHeaderSortHoverBg:E,tableHeaderIconColor:w.clone().setAlpha(w.getAlpha()*h).toRgbString(),tableHeaderIconColorHover:C.clone().setAlpha(C.getAlpha()*h).toRgbString(),tableBodySortBg:S,tableFixedHeaderSortActiveBg:$,tableHeaderFilterActiveBg:b,tableFilterDropdownBg:g,tableRowHoverBg:S,tableSelectedRowBg:t,tableSelectedRowHoverBg:n,zIndexTableFixed:2,zIndexTableSticky:3,tableFontSizeMiddle:i,tableFontSizeSmall:i,tableSelectionColumnWidth:d,tableExpandIconBg:g,tableExpandColumnWidth:y+2*e.padding,tableExpandedRowBg:f,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:r,tableScrollThumbBgHover:l,tableScrollBg:o});return[tX(k),tB(k),tV(k),tW(k),tH(k),tj(k),tA(k),tM(k),tV(k),tP(k),tD(k),tL(k),tK(k),tT(k),tF(k),t_(k)]});let tG=[];var tY=u.forwardRef((e,t)=>{let n,r,l;let{prefixCls:a,className:i,rootClassName:c,style:s,size:d,bordered:f,dropdownPrefixCls:p,dataSource:m,pagination:h,rowSelection:g,rowKey:x="key",rowClassName:b,columns:v,children:y,childrenColumnName:w,onChange:C,getPopupContainer:$,loading:S,expandIcon:k,expandable:Z,expandedRowRender:N,expandIconColumnIndex:O,indentSize:R,scroll:I,sortDirections:j,locale:T,showSorterTooltip:P=!0}=e,z=u.useMemo(()=>v||eu(y),[v,y]),M=u.useMemo(()=>z.some(e=>e.responsive),[z]),H=(0,eR.Z)(M),L=u.useMemo(()=>{let e=new Set(Object.keys(H).filter(e=>H[e]));return z.filter(t=>!t.responsive||t.responsive.some(t=>e.has(t)))},[z,H]),B=(0,eS.Z)(e,["className","style","columns"]),{locale:A=eI.Z,direction:_,table:D,renderEmpty:F,getPrefixCls:K,getPopupContainer:V}=u.useContext(eZ.E_),X=(0,eO.Z)(d),U=Object.assign(Object.assign({},A.Table),T),G=m||tG,Y=K("table",a),J=K("dropdown",p),q=Object.assign({childrenColumnName:w,expandIconColumnIndex:O},Z),{childrenColumnName:Q="children"}=q,ee=u.useMemo(()=>G.some(e=>null==e?void 0:e[Q])?"nest":N||Z&&Z.expandedRowRender?"row":null,[G]),et={body:u.useRef()},en=u.useMemo(()=>"function"==typeof x?x:e=>null==e?void 0:e[x],[x]),[er]=function(e,t,n){let r=u.useRef({});return[function(l){if(!r.current||r.current.data!==e||r.current.childrenColumnName!==t||r.current.getRowKey!==n){let l=new Map;!function e(r){r.forEach((r,o)=>{let a=n(r,o);l.set(a,r),r&&"object"==typeof r&&t in r&&e(r[t]||[])})}(e),r.current={data:e,childrenColumnName:t,kvMap:l,getRowKey:n}}return r.current.kvMap.get(l)}]}(G,Q,en),el={},eo=function(e,t){var n,r,l;let o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=Object.assign(Object.assign({},el),e);o&&(null===(n=el.resetPagination)||void 0===n||n.call(el),(null===(r=a.pagination)||void 0===r?void 0:r.current)&&(a.pagination.current=1),h&&h.onChange&&h.onChange(1,null===(l=a.pagination)||void 0===l?void 0:l.pageSize)),I&&!1!==I.scrollToFirstRowOnChange&&et.body.current&&(0,ek.Z)(0,{getContainer:()=>et.body.current}),null==C||C(a.pagination,a.filters,a.sorter,{currentDataSource:e6(tZ(G,a.sorterStates,Q),a.filterStates),action:t})},[ea,ei,ec,es]=function(e){let{prefixCls:t,mergedColumns:n,onSorterChange:r,sortDirections:l,tableLocale:o,showSorterTooltip:a}=e,[i,c]=u.useState(tE(n,!0)),s=u.useMemo(()=>{let e=!0,t=tE(n,!1);if(!t.length)return i;let r=[];function l(t){e?r.push(t):r.push(Object.assign(Object.assign({},t),{sortOrder:null}))}let o=null;return t.forEach(t=>{null===o?(l(t),t.sortOrder&&(!1===t.multiplePriority?e=!1:o=!0)):(o&&!1!==t.multiplePriority||(e=!1),l(t))}),r},[n,i]),d=u.useMemo(()=>{let e=s.map(e=>{let{column:t,sortOrder:n}=e;return{column:t,order:n}});return{sortColumns:e,sortColumn:e[0]&&e[0].column,sortOrder:e[0]&&e[0].order}},[s]);function f(e){let t;c(t=!1!==e.multiplePriority&&s.length&&!1!==s[0].multiplePriority?[].concat((0,W.Z)(s.filter(t=>{let{key:n}=t;return n!==e.key})),[e]):[e]),r(tk(t),t)}return[e=>(function e(t,n,r,l,o,a,i,c){return(n||[]).map((n,s)=>{let d=eM(s,c),f=n;if(f.sorter){let e;let c=f.sortDirections||o,s=void 0===f.showSorterTooltip?i:f.showSorterTooltip,p=ez(f,d),m=r.find(e=>{let{key:t}=e;return t===p}),h=m?m.sortOrder:null,g=h?c[c.indexOf(h)+1]:c[0];if(n.sortIcon)e=n.sortIcon({sortOrder:h});else{let n=c.includes(ty)&&u.createElement(tb,{className:E()(`${t}-column-sorter-up`,{active:h===ty})}),r=c.includes(tw)&&u.createElement(tg,{className:E()(`${t}-column-sorter-down`,{active:h===tw})});e=u.createElement("span",{className:E()(`${t}-column-sorter`,{[`${t}-column-sorter-full`]:!!(n&&r)})},u.createElement("span",{className:`${t}-column-sorter-inner`,"aria-hidden":"true"},n,r))}let{cancelSort:x,triggerAsc:b,triggerDesc:v}=a||{},y=x;g===tw?y=v:g===ty&&(y=b);let w="object"==typeof s?s:{title:y};f=Object.assign(Object.assign({},f),{className:E()(f.className,{[`${t}-column-sort`]:h}),title:r=>{let l=u.createElement("div",{className:`${t}-column-sorters`},u.createElement("span",{className:`${t}-column-title`},eH(n.title,r)),e);return s?u.createElement(tv.Z,Object.assign({},w),l):l},onHeaderCell:e=>{let r=n.onHeaderCell&&n.onHeaderCell(e)||{},o=r.onClick,a=r.onKeyDown;r.onClick=e=>{l({column:n,key:p,sortOrder:g,multiplePriority:tC(n)}),null==o||o(e)},r.onKeyDown=e=>{e.keyCode===eQ.Z.ENTER&&(l({column:n,key:p,sortOrder:g,multiplePriority:tC(n)}),null==a||a(e))};let i=function(e,t){let n=eH(e,t);return"[object Object]"===Object.prototype.toString.call(n)?"":n}(n.title,{}),c=null==i?void 0:i.toString();return h?r["aria-sort"]="ascend"===h?"ascending":"descending":r["aria-label"]=c||"",r.className=E()(r.className,`${t}-column-has-sorters`),r.tabIndex=0,n.ellipsis&&(r.title=(null!=i?i:"").toString()),r}})}return"children"in f&&(f=Object.assign(Object.assign({},f),{children:e(t,f.children,r,l,o,a,i,d)})),f})})(t,e,s,f,l,o,a),s,d,()=>tk(s)]}({prefixCls:Y,mergedColumns:L,onSorterChange:(e,t)=>{eo({sorter:e,sorterStates:t},"sort",!1)},sortDirections:j||["ascend","descend"],tableLocale:U,showSorterTooltip:P}),ed=u.useMemo(()=>tZ(G,ei,Q),[G,ei]);el.sorter=es(),el.sorterStates=ei;let[ef,ep,em]=e9({prefixCls:Y,locale:U,dropdownPrefixCls:J,mergedColumns:L,onFilterChange:(e,t)=>{eo({filters:e,filterStates:t},"filter",!0)},getPopupContainer:$||V}),eh=e6(ed,ep);el.filters=em,el.filterStates=ep;let eg=u.useMemo(()=>{let e={};return Object.keys(em).forEach(t=>{null!==em[t]&&(e[t]=em[t])}),Object.assign(Object.assign({},ec),{filters:e})},[ec,em]),[ex]=function(e){let t=u.useCallback(t=>(function e(t,n){return t.map(t=>{let r=Object.assign({},t);return r.title=eH(t.title,n),"children"in r&&(r.children=e(r.children,n)),r})})(t,e),[e]);return[t]}(eg),[eb,ev]=tn(eh.length,(e,t)=>{eo({pagination:Object.assign(Object.assign({},el.pagination),{current:e,pageSize:t})},"paginate")},h);el.pagination=!1===h?{}:function(e,t){let n={current:e.current,pageSize:e.pageSize},r=t&&"object"==typeof t?t:{};return Object.keys(r).forEach(t=>{let r=e[t];"function"!=typeof r&&(n[t]=r)}),n}(eb,h),el.resetPagination=ev;let ey=u.useMemo(()=>{if(!1===h||!eb.pageSize)return eh;let{current:e=1,total:t,pageSize:n=10}=eb;return eh.lengthn?eh.slice((e-1)*n,e*n):eh:eh.slice((e-1)*n,e*n)},[!!h,eh,eb&&eb.current,eb&&eb.pageSize,eb&&eb.total]),[ew,eC]=tm({prefixCls:Y,data:eh,pageData:ey,getRowKey:en,getRecordByKey:er,expandType:ee,childrenColumnName:Q,locale:U,getPopupContainer:$||V},g);q.__PARENT_RENDER_ICON__=q.expandIcon,q.expandIcon=q.expandIcon||k||function(e){let{prefixCls:t,onExpand:n,record:r,expanded:l,expandable:o}=e,a=`${t}-row-expand-icon`;return u.createElement("button",{type:"button",onClick:e=>{n(r,e),e.stopPropagation()},className:E()(a,{[`${a}-spaced`]:!o,[`${a}-expanded`]:o&&l,[`${a}-collapsed`]:o&&!l}),"aria-label":l?U.collapse:U.expand,"aria-expanded":l})},"nest"===ee&&void 0===q.expandIconColumnIndex?q.expandIconColumnIndex=g?1:0:q.expandIconColumnIndex>0&&g&&(q.expandIconColumnIndex-=1),"number"!=typeof q.indentSize&&(q.indentSize="number"==typeof R?R:15);let e$=u.useCallback(e=>ex(ew(ef(ea(e)))),[ea,ef,ew]);if(!1!==h&&(null==eb?void 0:eb.total)){let e;e=eb.size?eb.size:"small"===X||"middle"===X?"small":void 0;let t=t=>u.createElement(ej.Z,Object.assign({},eb,{className:E()(`${Y}-pagination ${Y}-pagination-${t}`,eb.className),size:e})),l="rtl"===_?"left":"right",{position:o}=eb;if(null!==o&&Array.isArray(o)){let e=o.find(e=>e.includes("top")),a=o.find(e=>e.includes("bottom")),i=o.every(e=>"none"==`${e}`);e||a||i||(r=t(l)),e&&(n=t(e.toLowerCase().replace("top",""))),a&&(r=t(a.toLowerCase().replace("bottom","")))}else r=t(l)}"boolean"==typeof S?l={spinning:S}:"object"==typeof S&&(l=Object.assign({spinning:!0},S));let[eE,eL]=tU(Y),eB=E()(`${Y}-wrapper`,null==D?void 0:D.className,{[`${Y}-wrapper-rtl`]:"rtl"===_},i,c,eL),eA=Object.assign(Object.assign({},null==D?void 0:D.style),s),e_=T&&T.emptyText||(null==F?void 0:F("Table"))||u.createElement(eN.Z,{componentName:"Table"});return eE(u.createElement("div",{ref:t,className:eB,style:eA},u.createElement(eT.Z,Object.assign({spinning:!1},l),n,u.createElement(eP,Object.assign({},B,{columns:L,direction:_,expandable:q,prefixCls:Y,className:E()({[`${Y}-middle`]:"middle"===X,[`${Y}-small`]:"small"===X,[`${Y}-bordered`]:f,[`${Y}-empty`]:0===G.length}),data:ey,rowKey:en,rowClassName:(e,t,n)=>{let r;return r="function"==typeof b?E()(b(e,t,n)):E()(b),E()({[`${Y}-row-selected`]:eC.has(en(e,t))},r)},emptyText:e_,internalHooks:o,internalRefs:et,transformColumns:e$})),r)))});let tJ=u.forwardRef((e,t)=>{let n=u.useRef(0);return n.current+=1,u.createElement(tY,Object.assign({},e,{ref:t,_renderTimes:n.current}))});tJ.SELECTION_COLUMN=tc,tJ.EXPAND_COLUMN=l,tJ.SELECTION_ALL=ts,tJ.SELECTION_INVERT=tu,tJ.SELECTION_NONE=td,tJ.Column=function(e){return null},tJ.ColumnGroup=function(e){return null},tJ.Summary=z;var tq=tJ},64019:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(73935);function l(e,t,n,l){var o=r.unstable_batchedUpdates?function(e){r.unstable_batchedUpdates(n,e)}:n;return null!=e&&e.addEventListener&&e.addEventListener(t,o,l),{remove:function(){null!=e&&e.removeEventListener&&e.removeEventListener(t,o,l)}}}},27678:function(e,t,n){function r(){return{width:document.documentElement.clientWidth,height:window.innerHeight||document.documentElement.clientHeight}}function l(e){var t=e.getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}n.d(t,{g1:function(){return r},os:function(){return l}})}}]); \ No newline at end of file diff --git a/dbgpt/app/static/_next/static/chunks/607-b224c640f6907e4b.js b/dbgpt/app/static/_next/static/chunks/607-b224c640f6907e4b.js deleted file mode 100644 index 4a5c42434..000000000 --- a/dbgpt/app/static/_next/static/chunks/607-b224c640f6907e4b.js +++ /dev/null @@ -1,78 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[607],{84567:function(e,t,n){n.d(t,{Z:function(){return w}});var r=n(94184),l=n.n(r),o=n(50132),a=n(67294),i=n(53124),c=n(98866),s=n(65223);let u=a.createContext(null);var d=n(63185),f=n(45353),p=n(17415),m=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var l=0,r=Object.getOwnPropertySymbols(e);lt.indexOf(r[l])&&Object.prototype.propertyIsEnumerable.call(e,r[l])&&(n[r[l]]=e[r[l]]);return n};let h=a.forwardRef((e,t)=>{var n;let{prefixCls:r,className:h,rootClassName:g,children:x,indeterminate:b=!1,style:v,onMouseEnter:y,onMouseLeave:w,skipGroup:C=!1,disabled:$}=e,E=m(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:S,direction:k,checkbox:Z}=a.useContext(i.E_),N=a.useContext(u),{isFormItemInput:O}=a.useContext(s.aM),R=a.useContext(c.Z),I=null!==(n=(null==N?void 0:N.disabled)||$)&&void 0!==n?n:R,j=a.useRef(E.value);a.useEffect(()=>{null==N||N.registerValue(E.value)},[]),a.useEffect(()=>{if(!C)return E.value!==j.current&&(null==N||N.cancelValue(j.current),null==N||N.registerValue(E.value),j.current=E.value),()=>null==N?void 0:N.cancelValue(E.value)},[E.value]);let P=S("checkbox",r),[T,z]=(0,d.ZP)(P),M=Object.assign({},E);N&&!C&&(M.onChange=function(){E.onChange&&E.onChange.apply(E,arguments),N.toggleOption&&N.toggleOption({label:x,value:E.value})},M.name=N.name,M.checked=N.value.includes(E.value));let H=l()(`${P}-wrapper`,{[`${P}-rtl`]:"rtl"===k,[`${P}-wrapper-checked`]:M.checked,[`${P}-wrapper-disabled`]:I,[`${P}-wrapper-in-form-item`]:O},null==Z?void 0:Z.className,h,g,z),L=l()({[`${P}-indeterminate`]:b},p.A,z);return T(a.createElement(f.Z,{component:"Checkbox",disabled:I},a.createElement("label",{className:H,style:Object.assign(Object.assign({},null==Z?void 0:Z.style),v),onMouseEnter:y,onMouseLeave:w},a.createElement(o.Z,Object.assign({"aria-checked":b?"mixed":void 0},M,{prefixCls:P,className:L,disabled:I,ref:t})),void 0!==x&&a.createElement("span",null,x))))});var g=n(74902),x=n(98423),b=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var l=0,r=Object.getOwnPropertySymbols(e);lt.indexOf(r[l])&&Object.prototype.propertyIsEnumerable.call(e,r[l])&&(n[r[l]]=e[r[l]]);return n};let v=a.forwardRef((e,t)=>{let{defaultValue:n,children:r,options:o=[],prefixCls:c,className:s,rootClassName:f,style:p,onChange:m}=e,v=b(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:y,direction:w}=a.useContext(i.E_),[C,$]=a.useState(v.value||n||[]),[E,S]=a.useState([]);a.useEffect(()=>{"value"in v&&$(v.value||[])},[v.value]);let k=a.useMemo(()=>o.map(e=>"string"==typeof e||"number"==typeof e?{label:e,value:e}:e),[o]),Z=y("checkbox",c),N=`${Z}-group`,[O,R]=(0,d.ZP)(Z),I=(0,x.Z)(v,["value","disabled"]),j=o.length?k.map(e=>a.createElement(h,{prefixCls:Z,key:e.value.toString(),disabled:"disabled"in e?e.disabled:v.disabled,value:e.value,checked:C.includes(e.value),onChange:e.onChange,className:`${N}-item`,style:e.style,title:e.title},e.label)):r,P={toggleOption:e=>{let t=C.indexOf(e.value),n=(0,g.Z)(C);-1===t?n.push(e.value):n.splice(t,1),"value"in v||$(n),null==m||m(n.filter(e=>E.includes(e)).sort((e,t)=>{let n=k.findIndex(t=>t.value===e),r=k.findIndex(e=>e.value===t);return n-r}))},value:C,disabled:v.disabled,name:v.name,registerValue:e=>{S(t=>[].concat((0,g.Z)(t),[e]))},cancelValue:e=>{S(t=>t.filter(t=>t!==e))}},T=l()(N,{[`${N}-rtl`]:"rtl"===w},s,f,R);return O(a.createElement("div",Object.assign({className:T,style:p},I,{ref:t}),a.createElement(u.Provider,{value:P},j)))});var y=a.memo(v);h.Group=y,h.__ANT_CHECKBOX=!0;var w=h},61607:function(e,t,n){n.d(t,{Z:function(){return tq}});var r,l={},o="rc-table-internal-hook",a=n(97685),i=n(66680),c=n(8410),s=n(91881),u=n(67294),d=n(73935);function f(e,t){var n=(0,i.Z)("function"==typeof t?t:function(e){if(void 0===t)return e;if(!Array.isArray(t))return e[t];var n={};return t.forEach(function(t){n[t]=e[t]}),n}),r=u.useContext(null==e?void 0:e.Context),l=r||{},o=l.listeners,d=l.getValue,f=u.useRef();f.current=n(r?d():null==e?void 0:e.defaultValue);var p=u.useState({}),m=(0,a.Z)(p,2)[1];return(0,c.Z)(function(){if(r)return o.add(e),function(){o.delete(e)};function e(e){var t=n(e);(0,s.Z)(f.current,t,!0)||m({})}},[r]),f.current}var p=n(87462),m=n(42550),h=function(){var e=u.createContext(null);function t(){return u.useContext(e)}return{makeImmutable:function(n,r){var l=(0,m.Yr)(n),o=function(o,a){var i=l?{ref:a}:{},c=u.useRef(0),s=u.useRef(o);return null!==t()?u.createElement(n,(0,p.Z)({},o,i)):((!r||r(s.current,o))&&(c.current+=1),s.current=o,u.createElement(e.Provider,{value:c.current},u.createElement(n,(0,p.Z)({},o,i))))};return l?u.forwardRef(o):o},responseImmutable:function(e,n){var r=(0,m.Yr)(e),l=function(n,l){var o=r?{ref:l}:{};return t(),u.createElement(e,(0,p.Z)({},n,o))};return r?u.memo(u.forwardRef(l),n):u.memo(l,n)},useImmutableMark:t}}(),g=h.makeImmutable,x=h.responseImmutable,b=h.useImmutableMark,v={Context:r=u.createContext(void 0),Provider:function(e){var t=e.value,n=e.children,l=u.useRef(t);l.current=t;var o=u.useState(function(){return{getValue:function(){return l.current},listeners:new Set}}),i=(0,a.Z)(o,1)[0];return(0,c.Z)(function(){(0,d.unstable_batchedUpdates)(function(){i.listeners.forEach(function(e){e(t)})})},[t]),u.createElement(r.Provider,{value:i},n)},defaultValue:void 0};u.memo(function(){var e,t,n,r,l,o,a=(n=u.useRef(0),n.current+=1,r=u.useRef(e),l=[],Object.keys(e||{}).map(function(t){var n;(null==e?void 0:e[t])!==(null===(n=r.current)||void 0===n?void 0:n[t])&&l.push(t)}),r.current=e,o=u.useRef([]),l.length&&(o.current=l),u.useDebugValue(n.current),u.useDebugValue(o.current.join(", ")),t&&console.log("".concat(t,":"),n.current,o.current),n.current);return u.createElement("h1",null,"Render Times: ",a)}).displayName="RenderBlock";var y=n(71002),w=n(1413),C=n(4942),$=n(94184),E=n.n($),S=n(56982),k=n(88306);n(80334);var Z=u.createContext({renderWithProps:!1});function N(e){var t=[],n={};return e.forEach(function(e){for(var r=e||{},l=r.key,o=r.dataIndex,a=l||(null==o?[]:Array.isArray(o)?o:[o]).join("-")||"RC_TABLE_KEY";n[a];)a="".concat(a,"_next");n[a]=!0,t.push(a)}),t}var O=function(e){var t,n=e.ellipsis,r=e.rowType,l=e.children,o=!0===n?{showTitle:!0}:n;return o&&(o.showTitle||"header"===r)&&("string"==typeof l||"number"==typeof l?t=l.toString():u.isValidElement(l)&&"string"==typeof l.props.children&&(t=l.props.children)),t},R=u.memo(function(e){var t,n,r,l,o,i,c,d,m,h,g=e.component,x=e.children,$=e.ellipsis,N=e.scope,R=e.prefixCls,I=e.className,j=e.align,P=e.record,T=e.render,z=e.dataIndex,M=e.renderIndex,H=e.shouldCellUpdate,L=e.index,B=e.rowType,A=e.colSpan,_=e.rowSpan,F=e.fixLeft,W=e.fixRight,D=e.firstFixLeft,K=e.lastFixLeft,V=e.firstFixRight,X=e.lastFixRight,U=e.appendNode,G=e.additionalProps,Y=void 0===G?{}:G,J=e.isSticky,q="".concat(R,"-cell"),Q=f(v,["supportSticky","allColumnsFixedLeft"]),ee=Q.supportSticky,et=Q.allColumnsFixedLeft,en=(t=u.useContext(Z),n=b(),(0,S.Z)(function(){if(null!=x)return[x];var e=null==z||""===z?[]:Array.isArray(z)?z:[z],n=(0,k.Z)(P,e),r=n,l=void 0;if(T){var o=T(n,P,M);!o||"object"!==(0,y.Z)(o)||Array.isArray(o)||u.isValidElement(o)?r=o:(r=o.children,l=o.props,t.renderWithProps=!0)}return[r,l]},[n,P,x,z,T,M],function(e,n){if(H){var r=(0,a.Z)(e,2)[1];return H((0,a.Z)(n,2)[1],r)}return!!t.renderWithProps||!(0,s.Z)(e,n,!0)})),er=(0,a.Z)(en,2),el=er[0],eo=er[1],ea={},ei="number"==typeof F&&ee,ec="number"==typeof W&ⅇei&&(ea.position="sticky",ea.left=F),ec&&(ea.position="sticky",ea.right=W);var es=null!==(r=null!==(l=null!==(o=null==eo?void 0:eo.colSpan)&&void 0!==o?o:Y.colSpan)&&void 0!==l?l:A)&&void 0!==r?r:1,eu=null!==(i=null!==(c=null!==(d=null==eo?void 0:eo.rowSpan)&&void 0!==d?d:Y.rowSpan)&&void 0!==c?c:_)&&void 0!==i?i:1,ed=f(v,function(e){var t,n;return[(t=eu||1,n=e.hoverStartRow,L<=e.hoverEndRow&&L+t-1>=n),e.onHover]}),ef=(0,a.Z)(ed,2),ep=ef[0],em=ef[1];if(0===es||0===eu)return null;var eh=null!==(m=Y.title)&&void 0!==m?m:O({rowType:B,ellipsis:$,children:el}),eg=E()(q,I,(h={},(0,C.Z)(h,"".concat(q,"-fix-left"),ei&&ee),(0,C.Z)(h,"".concat(q,"-fix-left-first"),D&&ee),(0,C.Z)(h,"".concat(q,"-fix-left-last"),K&&ee),(0,C.Z)(h,"".concat(q,"-fix-left-all"),K&&et&&ee),(0,C.Z)(h,"".concat(q,"-fix-right"),ec&&ee),(0,C.Z)(h,"".concat(q,"-fix-right-first"),V&&ee),(0,C.Z)(h,"".concat(q,"-fix-right-last"),X&&ee),(0,C.Z)(h,"".concat(q,"-ellipsis"),$),(0,C.Z)(h,"".concat(q,"-with-append"),U),(0,C.Z)(h,"".concat(q,"-fix-sticky"),(ei||ec)&&J&&ee),(0,C.Z)(h,"".concat(q,"-row-hover"),!eo&&ep),h),Y.className,null==eo?void 0:eo.className),ex={};j&&(ex.textAlign=j);var eb=(0,w.Z)((0,w.Z)((0,w.Z)((0,w.Z)({},Y.style),ex),ea),null==eo?void 0:eo.style),ev=el;return"object"!==(0,y.Z)(ev)||Array.isArray(ev)||u.isValidElement(ev)||(ev=null),$&&(K||V)&&(ev=u.createElement("span",{className:"".concat(q,"-content")},ev)),u.createElement(g,(0,p.Z)({},eo,Y,{className:eg,style:eb,title:eh,scope:N,onMouseEnter:function(e){var t;P&&em(L,L+eu-1),null==Y||null===(t=Y.onMouseEnter)||void 0===t||t.call(Y,e)},onMouseLeave:function(e){var t;P&&em(-1,-1),null==Y||null===(t=Y.onMouseLeave)||void 0===t||t.call(Y,e)},colSpan:1!==es?es:null,rowSpan:1!==eu?eu:null}),U,ev)});function I(e,t,n,r,l,o){var a,i,c=n[e]||{},s=n[t]||{};"left"===c.fixed?a=r.left["rtl"===l?t:e]:"right"===s.fixed&&(i=r.right["rtl"===l?e:t]);var u=!1,d=!1,f=!1,p=!1,m=n[t+1],h=n[e-1],g=!(null!=o&&o.children);return"rtl"===l?void 0!==a?p=!(h&&"left"===h.fixed)&&g:void 0!==i&&(f=!(m&&"right"===m.fixed)&&g):void 0!==a?u=!(m&&"left"===m.fixed)&&g:void 0!==i&&(d=!(h&&"right"===h.fixed)&&g),{fixLeft:a,fixRight:i,lastFixLeft:u,firstFixRight:d,lastFixRight:f,firstFixLeft:p,isSticky:r.isSticky}}var j=u.createContext({}),P=n(45987),T=["children"];function z(e){return e.children}z.Row=function(e){var t=e.children,n=(0,P.Z)(e,T);return u.createElement("tr",n,t)},z.Cell=function(e){var t=e.className,n=e.index,r=e.children,l=e.colSpan,o=void 0===l?1:l,a=e.rowSpan,i=e.align,c=f(v,["prefixCls","direction"]),s=c.prefixCls,d=c.direction,m=u.useContext(j),h=m.scrollColumnIndex,g=m.stickyOffsets,x=m.flattenColumns,b=m.columns,y=n+o-1+1===h?o+1:o,w=I(n,n+y-1,x,g,d,null==b?void 0:b[n]);return u.createElement(R,(0,p.Z)({className:t,index:n,component:"td",prefixCls:s,record:null,dataIndex:null,align:i,colSpan:y,rowSpan:a,render:function(){return r}},w))};var M=x(function(e){var t=e.children,n=e.stickyOffsets,r=e.flattenColumns,l=e.columns,o=f(v,"prefixCls"),a=r.length-1,i=r[a],c=u.useMemo(function(){return{stickyOffsets:n,flattenColumns:r,scrollColumnIndex:null!=i&&i.scrollbar?a:null,columns:l}},[i,r,a,n,l]);return u.createElement(j.Provider,{value:c},u.createElement("tfoot",{className:"".concat(o,"-summary")},t))}),H=n(9220),L=n(5110),B=n(98924),A=function(e){if((0,B.Z)()&&window.document.documentElement){var t=Array.isArray(e)?e:[e],n=window.document.documentElement;return t.some(function(e){return e in n.style})}return!1},_=function(e,t){if(!A(e))return!1;var n=document.createElement("div"),r=n.style[e];return n.style[e]=t,n.style[e]!==r},F=n(74204),W=n(64217),D=n(74902),K=function(e){var t=e.prefixCls,n=e.children,r=e.component,l=e.cellComponent,o=e.className,a=e.expanded,i=e.colSpan,c=e.isEmpty,s=f(v,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),d=s.scrollbarSize,p=s.fixHeader,m=s.fixColumn,h=s.componentWidth,g=s.horizonScroll,x=n;return(c?g:m)&&(x=u.createElement("div",{style:{width:h-(p?d:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(t,"-expanded-row-fixed")},0!==h&&x)),u.createElement(r,{className:o,style:{display:a?null:"none"}},u.createElement(R,{component:l,prefixCls:t,colSpan:i},x))};function V(e){var t,n,r=e.className,l=e.style,o=e.record,i=e.index,c=e.renderIndex,s=e.rowKey,d=e.rowExpandable,m=e.expandedKeys,h=e.onRow,g=e.indent,x=void 0===g?0:g,b=e.rowComponent,y=e.cellComponent,C=e.scopeCellComponent,$=e.childrenColumnName,S=f(v,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex"]),k=S.prefixCls,Z=S.fixedInfoList,O=S.flattenColumns,I=S.expandableType,j=S.expandRowByClick,P=S.onTriggerExpand,T=S.rowClassName,z=S.expandedRowClassName,M=S.indentSize,H=S.expandIcon,L=S.expandedRowRender,B=S.expandIconColumnIndex,A=u.useState(!1),_=(0,a.Z)(A,2),F=_[0],W=_[1],D=m&&m.has(s);u.useEffect(function(){D&&W(!0)},[D]);var V="row"===I&&(!d||d(o)),X="nest"===I,U=$&&o&&o[$],G=V||X,Y=u.useRef(P);Y.current=P;var J=function(){Y.current.apply(Y,arguments)},q=null==h?void 0:h(o,i);"string"==typeof T?t=T:"function"==typeof T&&(t=T(o,i,x));var Q=N(O),ee=u.createElement(b,(0,p.Z)({},q,{"data-row-key":s,className:E()(r,"".concat(k,"-row"),"".concat(k,"-row-level-").concat(x),t,q&&q.className),style:(0,w.Z)((0,w.Z)({},l),q?q.style:null),onClick:function(e){var t;j&&G&&J(o,e);for(var n=arguments.length,r=Array(n>1?n-1:0),l=1;l=0;i-=1){var c=t[i],s=n&&n[i],d=s&&s[Q];if(c||d||a){var f=d||{},m=(f.columnType,(0,P.Z)(f,ee));l.unshift(u.createElement("col",(0,p.Z)({key:i,style:{width:c}},m))),a=!0}}return u.createElement("colgroup",null,l)},en=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"],er=u.forwardRef(function(e,t){var n=e.className,r=e.noData,l=e.columns,o=e.flattenColumns,a=e.colWidths,i=e.columCount,c=e.stickyOffsets,s=e.direction,d=e.fixHeader,p=e.stickyTopOffset,h=e.stickyBottomOffset,g=e.stickyClassName,x=e.onScroll,b=e.maxContentScroll,y=e.children,$=(0,P.Z)(e,en),S=f(v,["prefixCls","scrollbarSize","isSticky"]),k=S.prefixCls,Z=S.scrollbarSize,N=S.isSticky,O=N&&!d?0:Z,R=u.useRef(null),I=u.useCallback(function(e){(0,m.mH)(t,e),(0,m.mH)(R,e)},[]);u.useEffect(function(){var e;function t(e){var t=e.currentTarget,n=e.deltaX;n&&(x({currentTarget:t,scrollLeft:t.scrollLeft+n}),e.preventDefault())}return null===(e=R.current)||void 0===e||e.addEventListener("wheel",t),function(){var e;null===(e=R.current)||void 0===e||e.removeEventListener("wheel",t)}},[]);var j=u.useMemo(function(){return o.every(function(e){return e.width>=0})},[o]),T=o[o.length-1],z={fixed:T?T.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(k,"-cell-scrollbar")}}},M=(0,u.useMemo)(function(){return O?[].concat((0,D.Z)(l),[z]):l},[O,l]),H=(0,u.useMemo)(function(){return O?[].concat((0,D.Z)(o),[z]):o},[O,o]),L=(0,u.useMemo)(function(){var e=c.right,t=c.left;return(0,w.Z)((0,w.Z)({},c),{},{left:"rtl"===s?[].concat((0,D.Z)(t.map(function(e){return e+O})),[0]):t,right:"rtl"===s?e:[].concat((0,D.Z)(e.map(function(e){return e+O})),[0]),isSticky:N})},[O,c,N]),B=(0,u.useMemo)(function(){for(var e=[],t=0;t1?"colgroup":"col":null,ellipsis:o.ellipsis,align:o.align,component:o.title?a:i,prefixCls:m,key:g[t]},c,{additionalProps:n,rowType:"header"}))}))}eo.displayName="HeaderRow";var ea=x(function(e){var t=e.stickyOffsets,n=e.columns,r=e.flattenColumns,l=e.onHeaderRow,o=f(v,["prefixCls","getComponent"]),a=o.prefixCls,i=o.getComponent,c=u.useMemo(function(){return function(e){var t=[];!function e(n,r){var l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;t[l]=t[l]||[];var o=r;return n.filter(Boolean).map(function(n){var r={key:n.key,className:n.className||"",children:n.title,column:n,colStart:o},a=1,i=n.children;return i&&i.length>0&&(a=e(i,o,l+1).reduce(function(e,t){return e+t},0),r.hasSubColumns=!0),"colSpan"in n&&(a=n.colSpan),"rowSpan"in n&&(r.rowSpan=n.rowSpan),r.colSpan=a,r.colEnd=r.colStart+a-1,t[l].push(r),o+=a,a})}(e,0);for(var n=t.length,r=function(e){t[e].forEach(function(t){("rowSpan"in t)||t.hasSubColumns||(t.rowSpan=n-e)})},l=0;l0?[].concat((0,D.Z)(e),(0,D.Z)(ed(l).map(function(e){return(0,w.Z)({fixed:r},e)}))):[].concat((0,D.Z)(e),[(0,w.Z)((0,w.Z)({},t),{},{fixed:r})])},[])}var ef=function(e,t){var n=e.prefixCls,r=e.columns,o=e.children,a=e.expandable,i=e.expandedKeys,c=e.columnTitle,s=e.getRowKey,d=e.onTriggerExpand,f=e.expandIcon,p=e.rowExpandable,m=e.expandIconColumnIndex,h=e.direction,g=e.expandRowByClick,x=e.columnWidth,b=e.fixed,v=u.useMemo(function(){return r||eu(o)},[r,o]),y=u.useMemo(function(){if(a){var e,t,r=v.slice();if(!r.includes(l)){var o=m||0;o>=0&&r.splice(o,0,l)}var h=r.indexOf(l);r=r.filter(function(e,t){return e!==l||t===h});var y=v[h];t=("left"===b||b)&&!m?"left":("right"===b||b)&&m===v.length?"right":y?y.fixed:null;var w=(e={},(0,C.Z)(e,Q,{className:"".concat(n,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,C.Z)(e,"title",c),(0,C.Z)(e,"fixed",t),(0,C.Z)(e,"className","".concat(n,"-row-expand-icon-cell")),(0,C.Z)(e,"width",x),(0,C.Z)(e,"render",function(e,t,r){var l=s(t,r),o=f({prefixCls:n,expanded:i.has(l),expandable:!p||p(t),record:t,onExpand:d});return g?u.createElement("span",{onClick:function(e){return e.stopPropagation()}},o):o}),e);return r.map(function(e){return e===l?w:e})}return v.filter(function(e){return e!==l})},[a,v,s,i,f,h]),$=u.useMemo(function(){var e=y;return t&&(e=t(e)),e.length||(e=[{render:function(){return null}}]),e},[t,y,h]),E=u.useMemo(function(){return"rtl"===h?ed($).map(function(e){var t=e.fixed,n=(0,P.Z)(e,es),r=t;return"left"===t?r="right":"right"===t&&(r="left"),(0,w.Z)({fixed:r},n)}):ed($)},[$,h]);return[$,E]};function ep(e){var t,n=e.prefixCls,r=e.record,l=e.onExpand,o=e.expanded,a=e.expandable,i="".concat(n,"-row-expand-icon");return a?u.createElement("span",{className:E()(i,(t={},(0,C.Z)(t,"".concat(n,"-row-expanded"),o),(0,C.Z)(t,"".concat(n,"-row-collapsed"),!o),t)),onClick:function(e){l(r,e),e.stopPropagation()}}):u.createElement("span",{className:E()(i,"".concat(n,"-row-spaced"))})}function em(e){var t=(0,u.useRef)(e),n=(0,u.useState)({}),r=(0,a.Z)(n,2)[1],l=(0,u.useRef)(null),o=(0,u.useRef)([]);return(0,u.useEffect)(function(){return function(){l.current=null}},[]),[t.current,function(e){o.current.push(e);var n=Promise.resolve();l.current=n,n.then(function(){if(l.current===n){var e=o.current,a=t.current;o.current=[],e.forEach(function(e){t.current=e(t.current)}),l.current=null,a!==t.current&&r({})}})}]}var eh=(0,B.Z)()?window:null,eg=function(e){var t=e.className,n=e.children;return u.createElement("div",{className:t},n)},ex=n(64019),eb=n(27678),ev=u.forwardRef(function(e,t){var n,r,l=e.scrollBodyRef,o=e.onScroll,i=e.offsetScroll,c=e.container,s=f(v,"prefixCls"),d=(null===(n=l.current)||void 0===n?void 0:n.scrollWidth)||0,p=(null===(r=l.current)||void 0===r?void 0:r.clientWidth)||0,m=d&&p*(p/d),h=u.useRef(),g=em({scrollLeft:0,isHiddenScrollBar:!1}),x=(0,a.Z)(g,2),b=x[0],y=x[1],$=u.useRef({delta:0,x:0}),S=u.useState(!1),k=(0,a.Z)(S,2),Z=k[0],N=k[1],O=function(){N(!1)},R=function(e){var t,n=(e||(null===(t=window)||void 0===t?void 0:t.event)).buttons;if(!Z||0===n){Z&&N(!1);return}var r=$.current.x+e.pageX-$.current.x-$.current.delta;r<=0&&(r=0),r+m>=p&&(r=p-m),o({scrollLeft:r/p*(d+2)}),$.current.x=e.pageX},I=function(){if(l.current){var e=(0,eb.os)(l.current).top,t=e+l.current.offsetHeight,n=c===window?document.documentElement.scrollTop+window.innerHeight:(0,eb.os)(c).top+c.clientHeight;t-(0,F.Z)()<=n||e>=n-i?y(function(e){return(0,w.Z)((0,w.Z)({},e),{},{isHiddenScrollBar:!0})}):y(function(e){return(0,w.Z)((0,w.Z)({},e),{},{isHiddenScrollBar:!1})})}},j=function(e){y(function(t){return(0,w.Z)((0,w.Z)({},t),{},{scrollLeft:e/d*p||0})})};return(u.useImperativeHandle(t,function(){return{setScrollLeft:j}}),u.useEffect(function(){var e=(0,ex.Z)(document.body,"mouseup",O,!1),t=(0,ex.Z)(document.body,"mousemove",R,!1);return I(),function(){e.remove(),t.remove()}},[m,Z]),u.useEffect(function(){var e=(0,ex.Z)(c,"scroll",I,!1),t=(0,ex.Z)(window,"resize",I,!1);return function(){e.remove(),t.remove()}},[c]),u.useEffect(function(){b.isHiddenScrollBar||y(function(e){var t=l.current;return t?(0,w.Z)((0,w.Z)({},e),{},{scrollLeft:t.scrollLeft/t.scrollWidth*t.clientWidth}):e})},[b.isHiddenScrollBar]),d<=p||!m||b.isHiddenScrollBar)?null:u.createElement("div",{style:{height:(0,F.Z)(),width:p,bottom:i},className:"".concat(s,"-sticky-scroll")},u.createElement("div",{onMouseDown:function(e){e.persist(),$.current.delta=e.pageX-b.scrollLeft,$.current.x=0,N(!0),e.preventDefault()},ref:h,className:E()("".concat(s,"-sticky-scroll-bar"),(0,C.Z)({},"".concat(s,"-sticky-scroll-bar-active"),Z)),style:{width:"".concat(m,"px"),transform:"translate3d(".concat(b.scrollLeft,"px, 0, 0)")}}))}),ey=[],ew={};function eC(){return"No Data"}function e$(e){var t,n=(0,w.Z)({rowKey:"key",prefixCls:"rc-table",emptyText:eC},e),r=n.prefixCls,l=n.className,c=n.rowClassName,d=n.style,f=n.data,m=n.rowKey,h=n.scroll,g=n.tableLayout,x=n.direction,b=n.title,$=n.footer,Z=n.summary,O=n.caption,R=n.id,j=n.showHeader,T=n.components,B=n.emptyText,K=n.onRow,V=n.onHeaderRow,X=n.internalHooks,U=n.transformColumns,G=n.internalRefs,Y=n.sticky,Q=f||ey,ee=!!Q.length,en=u.useCallback(function(e,t){return(0,k.Z)(T,e)||t},[T]),er=u.useMemo(function(){return"function"==typeof m?m:function(e){return e&&e[m]}},[m]),eo=(tz=u.useState(-1),tH=(tM=(0,a.Z)(tz,2))[0],tL=tM[1],tB=u.useState(-1),t_=(tA=(0,a.Z)(tB,2))[0],tF=tA[1],[tH,t_,u.useCallback(function(e,t){tL(e),tF(t)},[])]),ei=(0,a.Z)(eo,3),ec=ei[0],es=ei[1],eu=ei[2],ed=(tD=n.expandable,tK=(0,P.Z)(n,q),!1===(tW="expandable"in n?(0,w.Z)((0,w.Z)({},tK),tD):tK).showExpandColumn&&(tW.expandIconColumnIndex=-1),tV=tW.expandIcon,tX=tW.expandedRowKeys,tU=tW.defaultExpandedRowKeys,tG=tW.defaultExpandAllRows,tY=tW.expandedRowRender,tJ=tW.onExpand,tq=tW.onExpandedRowsChange,tQ=tW.childrenColumnName||"children",t0=u.useMemo(function(){return tY?"row":!!(n.expandable&&n.internalHooks===o&&n.expandable.__PARENT_RENDER_ICON__||Q.some(function(e){return e&&"object"===(0,y.Z)(e)&&e[tQ]}))&&"nest"},[!!tY,Q]),t1=u.useState(function(){if(tU)return tU;if(tG){var e;return e=[],function t(n){(n||[]).forEach(function(n,r){e.push(er(n,r)),t(n[tQ])})}(Q),e}return[]}),t8=(t2=(0,a.Z)(t1,2))[0],t3=t2[1],t4=u.useMemo(function(){return new Set(tX||t8||[])},[tX,t8]),t5=u.useCallback(function(e){var t,n=er(e,Q.indexOf(e)),r=t4.has(n);r?(t4.delete(n),t=(0,D.Z)(t4)):t=[].concat((0,D.Z)(t4),[n]),t3(t),tJ&&tJ(!r,e),tq&&tq(t)},[er,t4,Q,tJ,tq]),[tW,t0,t4,tV||ep,tQ,t5]),ex=(0,a.Z)(ed,6),eb=ex[0],e$=ex[1],eE=ex[2],eS=ex[3],ek=ex[4],eZ=ex[5],eN=u.useState(0),eO=(0,a.Z)(eN,2),eR=eO[0],eI=eO[1],ej=ef((0,w.Z)((0,w.Z)((0,w.Z)({},n),eb),{},{expandable:!!eb.expandedRowRender,columnTitle:eb.columnTitle,expandedKeys:eE,getRowKey:er,onTriggerExpand:eZ,expandIcon:eS,expandIconColumnIndex:eb.expandIconColumnIndex,direction:x}),X===o?U:null),eP=(0,a.Z)(ej,2),eT=eP[0],ez=eP[1],eM=u.useMemo(function(){return{columns:eT,flattenColumns:ez}},[eT,ez]),eH=u.useRef(),eL=u.useRef(),eB=u.useRef(),eA=u.useRef(),e_=u.useRef(),eF=u.useState(!1),eW=(0,a.Z)(eF,2),eD=eW[0],eK=eW[1],eV=u.useState(!1),eX=(0,a.Z)(eV,2),eU=eX[0],eG=eX[1],eY=em(new Map),eJ=(0,a.Z)(eY,2),eq=eJ[0],eQ=eJ[1],e0=N(ez).map(function(e){return eq.get(e)}),e1=u.useMemo(function(){return e0},[e0.join("_")]),e2=(t7=ez.length,(0,u.useMemo)(function(){for(var e=[],t=[],n=0,r=0,l=0;l0)):(eK(o>0),eG(o{let{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r});function ez(e,t){return"key"in e&&void 0!==e.key&&null!==e.key?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex:t}function eM(e,t){return t?`${t}-${e}`:`${e}`}function eH(e,t){return"function"==typeof e?e(t):e}var eL={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"},eB=n(84089),eA=u.forwardRef(function(e,t){return u.createElement(eB.Z,(0,p.Z)({},e,{ref:t,icon:eL}))}),e_=n(57838),eF=n(71577),eW=n(84567),eD=n(85418),eK=n(32983),eV=n(82610),eX=n(76529),eU=n(78045),eG=n(57346),eY=n(68795),eJ=n(59566),eq=function(e){let{value:t,onChange:n,filterSearch:r,tablePrefixCls:l,locale:o}=e;return r?u.createElement("div",{className:`${l}-filter-dropdown-search`},u.createElement(eJ.default,{prefix:u.createElement(eY.Z,null),placeholder:o.filterSearchPlaceholder,onChange:n,value:t,htmlSize:1,className:`${l}-filter-dropdown-search-input`})):null},eQ=n(15105);let e0=e=>{let{keyCode:t}=e;t===eQ.Z.ENTER&&e.stopPropagation()},e1=u.forwardRef((e,t)=>u.createElement("div",{className:e.className,onClick:e=>e.stopPropagation(),onKeyDown:e0,ref:t},e.children));function e2(e){let t=[];return(e||[]).forEach(e=>{let{value:n,children:r}=e;t.push(n),r&&(t=[].concat((0,D.Z)(t),(0,D.Z)(e2(r))))}),t}function e8(e,t){return("string"==typeof t||"number"==typeof t)&&(null==t?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()))}var e3=function(e){var t,n;let r,l;let{tablePrefixCls:o,prefixCls:a,column:i,dropdownPrefixCls:c,columnKey:d,filterMultiple:f,filterMode:p="menu",filterSearch:m=!1,filterState:h,triggerFilter:g,locale:x,children:b,getPopupContainer:v}=e,{filterDropdownOpen:y,onFilterDropdownOpenChange:w,filterResetToDefaultFilteredValue:C,defaultFilteredValue:$,filterDropdownVisible:S,onFilterDropdownVisibleChange:k}=i,[Z,N]=u.useState(!1),O=!!(h&&((null===(t=h.filteredKeys)||void 0===t?void 0:t.length)||h.forceFiltered)),R=e=>{N(e),null==w||w(e),null==k||k(e)},I=null!==(n=null!=y?y:S)&&void 0!==n?n:Z,j=null==h?void 0:h.filteredKeys,[P,T]=function(e){let t=u.useRef(e),n=(0,e_.Z)();return[()=>t.current,e=>{t.current=e,n()}]}(j||[]),z=e=>{let{selectedKeys:t}=e;T(t)};u.useEffect(()=>{Z&&z({selectedKeys:j||[]})},[j]);let[M,H]=u.useState([]),[L,B]=u.useState(""),A=e=>{let{value:t}=e.target;B(t)};u.useEffect(()=>{Z||B("")},[Z]);let _=e=>{let t=e&&e.length?e:null;if(null===t&&(!h||!h.filteredKeys)||(0,s.Z)(t,null==h?void 0:h.filteredKeys,!0))return null;g({column:i,key:d,filteredKeys:t})},F=()=>{R(!1),_(P())},W=function(){let{confirm:e,closeDropdown:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{confirm:!1,closeDropdown:!1};e&&_([]),t&&R(!1),B(""),C?T(($||[]).map(e=>String(e))):T([])},D=E()({[`${c}-menu-without-submenu`]:!(i.filters||[]).some(e=>{let{children:t}=e;return t})}),K=e=>{let{filters:t}=e;return(t||[]).map((e,t)=>{let n=String(e.value),r={title:e.text,key:void 0!==e.value?n:t};return e.children&&(r.children=K({filters:e.children})),r})},V=e=>{var t;return Object.assign(Object.assign({},e),{text:e.title,value:e.key,children:(null===(t=e.children)||void 0===t?void 0:t.map(e=>V(e)))||[]})};if("function"==typeof i.filterDropdown)r=i.filterDropdown({prefixCls:`${c}-custom`,setSelectedKeys:e=>z({selectedKeys:e}),selectedKeys:P(),confirm:function(){let{closeDropdown:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{closeDropdown:!0};e&&R(!1),_(P())},clearFilters:W,filters:i.filters,visible:I,close:()=>{R(!1)}});else if(i.filterDropdown)r=i.filterDropdown;else{let e=P()||[];r=u.createElement(u.Fragment,null,0===(i.filters||[]).length?u.createElement(eK.Z,{image:eK.Z.PRESENTED_IMAGE_SIMPLE,description:x.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):"tree"===p?u.createElement(u.Fragment,null,u.createElement(eq,{filterSearch:m,value:L,onChange:A,tablePrefixCls:o,locale:x}),u.createElement("div",{className:`${o}-filter-dropdown-tree`},f?u.createElement(eW.Z,{checked:e.length===e2(i.filters).length,indeterminate:e.length>0&&e.length{if(e.target.checked){let e=e2(null==i?void 0:i.filters).map(e=>String(e));T(e)}else T([])}},x.filterCheckall):null,u.createElement(eG.Z,{checkable:!0,selectable:!1,blockNode:!0,multiple:f,checkStrictly:!f,className:`${c}-menu`,onCheck:(e,t)=>{let{node:n,checked:r}=t;f?z({selectedKeys:e}):z({selectedKeys:r&&n.key?[n.key]:[]})},checkedKeys:e,selectedKeys:e,showIcon:!1,treeData:K({filters:i.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:L.trim()?e=>"function"==typeof m?m(L,V(e)):e8(L,e.title):void 0}))):u.createElement(u.Fragment,null,u.createElement(eq,{filterSearch:m,value:L,onChange:A,tablePrefixCls:o,locale:x}),u.createElement(eV.Z,{selectable:!0,multiple:f,prefixCls:`${c}-menu`,className:D,onSelect:z,onDeselect:z,selectedKeys:e,getPopupContainer:v,openKeys:M,onOpenChange:e=>{H(e)},items:function e(t){let{filters:n,prefixCls:r,filteredKeys:l,filterMultiple:o,searchValue:a,filterSearch:i}=t;return n.map((t,n)=>{let c=String(t.value);if(t.children)return{key:c||n,label:t.text,popupClassName:`${r}-dropdown-submenu`,children:e({filters:t.children,prefixCls:r,filteredKeys:l,filterMultiple:o,searchValue:a,filterSearch:i})};let s=o?eW.Z:eU.ZP,d={key:void 0!==t.value?c:n,label:u.createElement(u.Fragment,null,u.createElement(s,{checked:l.includes(c)}),u.createElement("span",null,t.text))};return a.trim()?"function"==typeof i?i(a,t)?d:null:e8(a,t.text)?d:null:d})}({filters:i.filters||[],filterSearch:m,prefixCls:a,filteredKeys:P(),filterMultiple:f,searchValue:L})})),u.createElement("div",{className:`${a}-dropdown-btns`},u.createElement(eF.ZP,{type:"link",size:"small",disabled:C?(0,s.Z)(($||[]).map(e=>String(e)),e,!0):0===e.length,onClick:()=>W()},x.filterReset),u.createElement(eF.ZP,{type:"primary",size:"small",onClick:F},x.filterConfirm)))}i.filterDropdown&&(r=u.createElement(eX.J,{selectable:void 0},r)),l="function"==typeof i.filterIcon?i.filterIcon(O):i.filterIcon?i.filterIcon:u.createElement(eA,null);let{direction:X}=u.useContext(eZ.E_);return u.createElement("div",{className:`${a}-column`},u.createElement("span",{className:`${o}-column-title`},b),u.createElement(eD.Z,{dropdownRender:()=>u.createElement(e1,{className:`${a}-dropdown`},r),trigger:["click"],open:I,onOpenChange:e=>{e&&void 0!==j&&T(j||[]),R(e),e||i.filterDropdown||F()},getPopupContainer:v,placement:"rtl"===X?"bottomLeft":"bottomRight"},u.createElement("span",{role:"button",tabIndex:-1,className:E()(`${a}-trigger`,{active:O}),onClick:e=>{e.stopPropagation()}},l)))};function e4(e,t,n){let r=[];return(e||[]).forEach((e,l)=>{var o;let a=eM(l,n);if(e.filters||"filterDropdown"in e||"onFilter"in e){if("filteredValue"in e){let t=e.filteredValue;"filterDropdown"in e||(t=null!==(o=null==t?void 0:t.map(String))&&void 0!==o?o:t),r.push({column:e,key:ez(e,a),filteredKeys:t,forceFiltered:e.filtered})}else r.push({column:e,key:ez(e,a),filteredKeys:t&&e.defaultFilteredValue?e.defaultFilteredValue:void 0,forceFiltered:e.filtered})}"children"in e&&(r=[].concat((0,D.Z)(r),(0,D.Z)(e4(e.children,t,a))))}),r}function e5(e){let t={};return e.forEach(e=>{let{key:n,filteredKeys:r,column:l}=e,{filters:o,filterDropdown:a}=l;if(a)t[n]=r||null;else if(Array.isArray(r)){let e=e2(o);t[n]=e.filter(e=>r.includes(String(e)))}else t[n]=null}),t}function e7(e,t){return t.reduce((e,t)=>{let{column:{onFilter:n,filters:r},filteredKeys:l}=t;return n&&l&&l.length?e.filter(e=>l.some(t=>{let l=e2(r),o=l.findIndex(e=>String(e)===String(t)),a=-1!==o?l[o]:t;return n(a,e)})):e},e)}let e6=e=>e.flatMap(e=>"children"in e?[e].concat((0,D.Z)(e6(e.children||[]))):[e]);var e9=function(e){let{prefixCls:t,dropdownPrefixCls:n,mergedColumns:r,onFilterChange:l,getPopupContainer:o,locale:a}=e,i=u.useMemo(()=>e6(r||[]),[r]),[c,s]=u.useState(()=>e4(i,!0)),d=u.useMemo(()=>{let e=e4(i,!1);if(0===e.length)return e;let t=!0;if(e.forEach(e=>{let{filteredKeys:n}=e;void 0!==n&&(t=!1)}),t){let e=(i||[]).map((e,t)=>ez(e,eM(t)));return c.filter(t=>{let{key:n}=t;return e.includes(n)}).map(t=>{let n=i[e.findIndex(e=>e===t.key)];return Object.assign(Object.assign({},t),{column:Object.assign(Object.assign({},t.column),n),forceFiltered:n.filtered})})}return e},[i,c]),f=u.useMemo(()=>e5(d),[d]),p=e=>{let t=d.filter(t=>{let{key:n}=t;return n!==e.key});t.push(e),s(t),l(e5(t),t)};return[e=>(function e(t,n,r,l,o,a,i,c){return r.map((r,s)=>{let d=eM(s,c),{filterMultiple:f=!0,filterMode:p,filterSearch:m}=r,h=r;if(h.filters||h.filterDropdown){let e=ez(h,d),c=l.find(t=>{let{key:n}=t;return e===n});h=Object.assign(Object.assign({},h),{title:l=>u.createElement(e3,{tablePrefixCls:t,prefixCls:`${t}-filter`,dropdownPrefixCls:n,column:h,columnKey:e,filterState:c,filterMultiple:f,filterMode:p,filterSearch:m,triggerFilter:a,locale:o,getPopupContainer:i},eH(r.title,l))})}return"children"in h&&(h=Object.assign(Object.assign({},h),{children:e(t,n,h.children,l,o,a,i,d)})),h})})(t,n,e,d,a,p,o),d,f]},te=n(38780),tt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var l=0,r=Object.getOwnPropertySymbols(e);lt.indexOf(r[l])&&Object.prototype.propertyIsEnumerable.call(e,r[l])&&(n[r[l]]=e[r[l]]);return n},tn=function(e,t,n){let r=n&&"object"==typeof n?n:{},{total:l=0}=r,o=tt(r,["total"]),[a,i]=(0,u.useState)(()=>({current:"defaultCurrent"in o?o.defaultCurrent:1,pageSize:"defaultPageSize"in o?o.defaultPageSize:10})),c=(0,te.Z)(a,o,{total:l>0?l:e}),s=Math.ceil((l||e)/c.pageSize);c.current>s&&(c.current=s||1);let d=(e,t)=>{i({current:null!=e?e:1,pageSize:t||c.pageSize})};return!1===n?[{},()=>{}]:[Object.assign(Object.assign({},c),{onChange:(e,r)=>{var l;n&&(null===(l=n.onChange)||void 0===l||l.call(n,e,r)),d(e,r),t(e,r||(null==c?void 0:c.pageSize))}}),d]},tr=n(80882),tl=n(10225),to=n(17341),ta=n(1089),ti=n(21770);let tc={},ts="SELECT_ALL",tu="SELECT_INVERT",td="SELECT_NONE",tf=[],tp=(e,t)=>{let n=[];return(t||[]).forEach(t=>{n.push(t),t&&"object"==typeof t&&e in t&&(n=[].concat((0,D.Z)(n),(0,D.Z)(tp(e,t[e]))))}),n};var tm=(e,t)=>{let{preserveSelectedRowKeys:n,selectedRowKeys:r,defaultSelectedRowKeys:l,getCheckboxProps:o,onChange:a,onSelect:i,onSelectAll:c,onSelectInvert:s,onSelectNone:d,onSelectMultiple:f,columnWidth:p,type:m,selections:h,fixed:g,renderCell:x,hideSelectAll:b,checkStrictly:v=!0}=t||{},{prefixCls:y,data:w,pageData:C,getRecordByKey:$,getRowKey:S,expandType:k,childrenColumnName:Z,locale:N,getPopupContainer:O}=e,[R,I]=(0,ti.Z)(r||l||tf,{value:r}),j=u.useRef(new Map),P=(0,u.useCallback)(e=>{if(n){let t=new Map;e.forEach(e=>{let n=$(e);!n&&j.current.has(e)&&(n=j.current.get(e)),t.set(e,n)}),j.current=t}},[$,n]);u.useEffect(()=>{P(R)},[R]);let{keyEntities:T}=(0,u.useMemo)(()=>{if(v)return{keyEntities:null};let e=w;if(n){let t=new Set(w.map((e,t)=>S(e,t))),n=Array.from(j.current).reduce((e,n)=>{let[r,l]=n;return t.has(r)?e:e.concat(l)},[]);e=[].concat((0,D.Z)(e),(0,D.Z)(n))}return(0,ta.I8)(e,{externalGetKey:S,childrenPropName:Z})},[w,S,v,Z,n]),z=(0,u.useMemo)(()=>tp(Z,C),[Z,C]),M=(0,u.useMemo)(()=>{let e=new Map;return z.forEach((t,n)=>{let r=S(t,n),l=(o?o(t):null)||{};e.set(r,l)}),e},[z,S,o]),H=(0,u.useCallback)(e=>{var t;return!!(null===(t=M.get(S(e)))||void 0===t?void 0:t.disabled)},[M,S]),[L,B]=(0,u.useMemo)(()=>{if(v)return[R||[],[]];let{checkedKeys:e,halfCheckedKeys:t}=(0,to.S)(R,!0,T,H);return[e||[],t]},[R,v,T,H]),A=(0,u.useMemo)(()=>{let e="radio"===m?L.slice(0,1):L;return new Set(e)},[L,m]),_=(0,u.useMemo)(()=>"radio"===m?new Set:new Set(B),[B,m]),[F,W]=(0,u.useState)(null);u.useEffect(()=>{t||I(tf)},[!!t]);let K=(0,u.useCallback)((e,t)=>{let r,l;P(e),n?(r=e,l=e.map(e=>j.current.get(e))):(r=[],l=[],e.forEach(e=>{let t=$(e);void 0!==t&&(r.push(e),l.push(t))})),I(r),null==a||a(r,l,{type:t})},[I,$,a,n]),V=(0,u.useCallback)((e,t,n,r)=>{if(i){let l=n.map(e=>$(e));i($(e),t,l,r)}K(n,"single")},[i,$,K]),X=(0,u.useMemo)(()=>{if(!h||b)return null;let e=!0===h?[ts,tu,td]:h;return e.map(e=>e===ts?{key:"all",text:N.selectionAll,onSelect(){K(w.map((e,t)=>S(e,t)).filter(e=>{let t=M.get(e);return!(null==t?void 0:t.disabled)||A.has(e)}),"all")}}:e===tu?{key:"invert",text:N.selectInvert,onSelect(){let e=new Set(A);C.forEach((t,n)=>{let r=S(t,n),l=M.get(r);(null==l?void 0:l.disabled)||(e.has(r)?e.delete(r):e.add(r))});let t=Array.from(e);s&&s(t),K(t,"invert")}}:e===td?{key:"none",text:N.selectNone,onSelect(){null==d||d(),K(Array.from(A).filter(e=>{let t=M.get(e);return null==t?void 0:t.disabled}),"none")}}:e).map(e=>Object.assign(Object.assign({},e),{onSelect:function(){for(var t,n=arguments.length,r=Array(n),l=0;l{var n;let r,l;if(!t)return e.filter(e=>e!==tc);let o=(0,D.Z)(e),a=new Set(A),i=z.map(S).filter(e=>!M.get(e).disabled),s=i.every(e=>a.has(e)),d=i.some(e=>a.has(e));if("radio"!==m){let e;if(X){let t={getPopupContainer:O,items:X.map((e,t)=>{let{key:n,text:r,onSelect:l}=e;return{key:null!=n?n:t,onClick:()=>{null==l||l(i)},label:r}})};e=u.createElement("div",{className:`${y}-selection-extra`},u.createElement(eD.Z,{menu:t,getPopupContainer:O},u.createElement("span",null,u.createElement(tr.Z,null))))}let t=z.map((e,t)=>{let n=S(e,t),r=M.get(n)||{};return Object.assign({checked:a.has(n)},r)}).filter(e=>{let{disabled:t}=e;return t}),n=!!t.length&&t.length===z.length,l=n&&t.every(e=>{let{checked:t}=e;return t}),o=n&&t.some(e=>{let{checked:t}=e;return t});r=!b&&u.createElement("div",{className:`${y}-selection`},u.createElement(eW.Z,{checked:n?l:!!z.length&&s,indeterminate:n?!l&&o:!s&&d,onChange:()=>{let e=[];s?i.forEach(t=>{a.delete(t),e.push(t)}):i.forEach(t=>{a.has(t)||(a.add(t),e.push(t))});let t=Array.from(a);null==c||c(!s,t.map(e=>$(e)),e.map(e=>$(e))),K(t,"all"),W(null)},disabled:0===z.length||n,"aria-label":e?"Custom selection":"Select all",skipGroup:!0}),e)}if(l="radio"===m?(e,t,n)=>{let r=S(t,n),l=a.has(r);return{node:u.createElement(eU.ZP,Object.assign({},M.get(r),{checked:l,onClick:e=>e.stopPropagation(),onChange:e=>{a.has(r)||V(r,!0,[r],e.nativeEvent)}})),checked:l}}:(e,t,n)=>{var r;let l;let o=S(t,n),c=a.has(o),s=_.has(o),d=M.get(o);return l="nest"===k?s:null!==(r=null==d?void 0:d.indeterminate)&&void 0!==r?r:s,{node:u.createElement(eW.Z,Object.assign({},d,{indeterminate:l,checked:c,skipGroup:!0,onClick:e=>e.stopPropagation(),onChange:e=>{let{nativeEvent:t}=e,{shiftKey:n}=t,r=-1,l=-1;if(n&&v){let e=new Set([F,o]);i.some((t,n)=>{if(e.has(t)){if(-1!==r)return l=n,!0;r=n}return!1})}if(-1!==l&&r!==l&&v){let e=i.slice(r,l+1),t=[];c?e.forEach(e=>{a.has(e)&&(t.push(e),a.delete(e))}):e.forEach(e=>{a.has(e)||(t.push(e),a.add(e))});let n=Array.from(a);null==f||f(!c,n.map(e=>$(e)),t.map(e=>$(e))),K(n,"multiple")}else if(v){let e=c?(0,tl._5)(L,o):(0,tl.L0)(L,o);V(o,!c,e,t)}else{let e=(0,to.S)([].concat((0,D.Z)(L),[o]),!0,T,H),{checkedKeys:n,halfCheckedKeys:r}=e,l=n;if(c){let e=new Set(n);e.delete(o),l=(0,to.S)(Array.from(e),{checked:!1,halfCheckedKeys:r},T,H).checkedKeys}V(o,!c,l,t)}c?W(null):W(o)}})),checked:c}},!o.includes(tc)){if(0===o.findIndex(e=>{var t;return(null===(t=e[Q])||void 0===t?void 0:t.columnType)==="EXPAND_COLUMN"})){let[e,...t]=o;o=[e,tc].concat((0,D.Z)(t))}else o=[tc].concat((0,D.Z)(o))}let w=o.indexOf(tc);o=o.filter((e,t)=>e!==tc||t===w);let C=o[w-1],Z=o[w+1],N=g;void 0===N&&((null==Z?void 0:Z.fixed)!==void 0?N=Z.fixed:(null==C?void 0:C.fixed)!==void 0&&(N=C.fixed)),N&&C&&(null===(n=C[Q])||void 0===n?void 0:n.columnType)==="EXPAND_COLUMN"&&void 0===C.fixed&&(C.fixed=N);let R=E()(`${y}-selection-col`,{[`${y}-selection-col-with-dropdown`]:h&&"checkbox"===m}),I={fixed:N,width:p,className:`${y}-selection-column`,title:t.columnTitle||r,render:(e,t,n)=>{let{node:r,checked:o}=l(e,t,n);return x?x(o,t,n,r):r},onCell:t.onCell,[Q]:{className:R}};return o.map(e=>e===tc?I:e)},[S,z,t,L,A,_,p,X,k,F,M,f,V,H]);return[U,A]},th={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},tg=u.forwardRef(function(e,t){return u.createElement(eB.Z,(0,p.Z)({},e,{ref:t,icon:th}))}),tx={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"},tb=u.forwardRef(function(e,t){return u.createElement(eB.Z,(0,p.Z)({},e,{ref:t,icon:tx}))}),tv=n(83062);let ty="ascend",tw="descend";function tC(e){return"object"==typeof e.sorter&&"number"==typeof e.sorter.multiple&&e.sorter.multiple}function t$(e){return"function"==typeof e?e:!!e&&"object"==typeof e&&!!e.compare&&e.compare}function tE(e,t,n){let r=[];function l(e,t){r.push({column:e,key:ez(e,t),multiplePriority:tC(e),sortOrder:e.sortOrder})}return(e||[]).forEach((e,o)=>{let a=eM(o,n);e.children?("sortOrder"in e&&l(e,a),r=[].concat((0,D.Z)(r),(0,D.Z)(tE(e.children,t,a)))):e.sorter&&("sortOrder"in e?l(e,a):t&&e.defaultSortOrder&&r.push({column:e,key:ez(e,a),multiplePriority:tC(e),sortOrder:e.defaultSortOrder}))}),r}function tS(e){let{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}}function tk(e){let t=e.filter(e=>{let{sortOrder:t}=e;return t}).map(tS);return 0===t.length&&e.length?Object.assign(Object.assign({},tS(e[e.length-1])),{column:void 0}):t.length<=1?t[0]||{}:t}function tZ(e,t,n){let r=t.slice().sort((e,t)=>t.multiplePriority-e.multiplePriority),l=e.slice(),o=r.filter(e=>{let{column:{sorter:t},sortOrder:n}=e;return t$(t)&&n});return o.length?l.sort((e,t)=>{for(let n=0;n{let r=e[n];return r?Object.assign(Object.assign({},e),{[n]:tZ(r,t,n)}):e}):l}var tN=n(10274),tO=n(14747),tR=n(67968),tI=n(45503),tj=e=>{let{componentCls:t}=e,n=`${e.lineWidth}px ${e.lineType} ${e.tableBorderColor}`,r=(n,r,l)=>({[`&${t}-${n}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{[` - > table > tbody > tr > th, - > table > tbody > tr > td - `]:{[`> ${t}-expanded-row-fixed`]:{margin:`-${r}px -${l+e.lineWidth}px`}}}}}});return{[`${t}-wrapper`]:{[`${t}${t}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${t}-title`]:{border:n,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:n,borderTop:n,[` - > ${t}-content, - > ${t}-header, - > ${t}-body, - > ${t}-summary - `]:{"> table":{[` - > thead > tr > th, - > thead > tr > td, - > tbody > tr > th, - > tbody > tr > td, - > tfoot > tr > th, - > tfoot > tr > td - `]:{borderInlineEnd:n},"> thead":{"> tr:not(:last-child) > th":{borderBottom:n},"> tr > th::before":{backgroundColor:"transparent !important"}},[` - > thead > tr, - > tbody > tr, - > tfoot > tr - `]:{[`> ${t}-cell-fix-right-first::after`]:{borderInlineEnd:n}},[` - > tbody > tr > th, - > tbody > tr > td - `]:{[`> ${t}-expanded-row-fixed`]:{margin:`-${e.tablePaddingVertical}px -${e.tablePaddingHorizontal+e.lineWidth}px`,"&::after":{position:"absolute",top:0,insetInlineEnd:e.lineWidth,bottom:0,borderInlineEnd:n,content:'""'}}}}}},[`&${t}-scroll-horizontal`]:{[`> ${t}-container > ${t}-body`]:{"> table > tbody":{[` - > tr${t}-expanded-row, - > tr${t}-placeholder - `]:{"> th, > td":{borderInlineEnd:0}}}}}},r("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle)),r("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall)),{[`> ${t}-footer`]:{border:n,borderTop:0}}),[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${e.lineWidth}px 0 ${e.lineWidth}px ${e.tableHeaderBg}`}},[`${t}-bordered ${t}-cell-scrollbar`]:{borderInlineEnd:n}}}},tP=e=>{let{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:Object.assign(Object.assign({},tO.vS),{wordBreak:"keep-all",[` - &${t}-cell-fix-left-last, - &${t}-cell-fix-right-first - `]:{overflow:"visible",[`${t}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${t}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},tT=e=>{let{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:"center",color:e.colorTextDisabled,[` - &:hover > th, - &:hover > td, - `]:{background:e.colorBgContainer}}}}};let tz=e=>({color:e.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}});var tM=e=>{let{componentCls:t,antCls:n,controlInteractiveSize:r,motionDurationSlow:l,lineWidth:o,paddingXS:a,lineType:i,tableBorderColor:c,tableExpandIconBg:s,tableExpandColumnWidth:u,borderRadius:d,fontSize:f,fontSizeSM:p,lineHeight:m,tablePaddingVertical:h,tablePaddingHorizontal:g,tableExpandedRowBg:x,paddingXXS:b}=e,v=r/2-o,y=2*v+3*o,w=`${o}px ${i} ${c}`,C=b-o;return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:u},[`${t}-row-expand-icon-cell`]:{textAlign:"center",[`${t}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${t}-row-indent`]:{height:1,float:"left"},[`${t}-row-expand-icon`]:Object.assign(Object.assign({},tz(e)),{position:"relative",float:"left",boxSizing:"border-box",width:y,height:y,padding:0,color:"inherit",lineHeight:`${y}px`,background:s,border:w,borderRadius:d,transform:`scale(${r/y})`,transition:`all ${l}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${l} ease-out`,content:'""'},"&::before":{top:v,insetInlineEnd:C,insetInlineStart:C,height:o},"&::after":{top:C,bottom:C,insetInlineStart:v,width:o,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${t}-row-indent + ${t}-row-expand-icon`]:{marginTop:(f*m-3*o)/2-Math.ceil((1.4*p-3*o)/2),marginInlineEnd:a},[`tr${t}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:x}},[`${n}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`-${h}px -${g}px`,padding:`${h}px ${g}px`}}}},tH=e=>{let{componentCls:t,antCls:n,iconCls:r,tableFilterDropdownWidth:l,tableFilterDropdownSearchWidth:o,paddingXXS:a,paddingXS:i,colorText:c,lineWidth:s,lineType:u,tableBorderColor:d,tableHeaderIconColor:f,fontSizeSM:p,tablePaddingHorizontal:m,borderRadius:h,motionDurationSlow:g,colorTextDescription:x,colorPrimary:b,tableHeaderFilterActiveBg:v,colorTextDisabled:y,tableFilterDropdownBg:w,tableFilterDropdownHeight:C,controlItemBgHover:$,controlItemBgActive:E,boxShadowSecondary:S}=e,k=`${n}-dropdown`,Z=`${t}-filter-dropdown`,N=`${n}-tree`,O=`${s}px ${u} ${d}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:-a,marginInline:`${a}px ${-m/2}px`,padding:`0 ${a}px`,color:f,fontSize:p,borderRadius:h,cursor:"pointer",transition:`all ${g}`,"&:hover":{color:x,background:v},"&.active":{color:b}}}},{[`${n}-dropdown`]:{[Z]:Object.assign(Object.assign({},(0,tO.Wf)(e)),{minWidth:l,backgroundColor:w,borderRadius:h,boxShadow:S,overflow:"hidden",[`${k}-menu`]:{maxHeight:C,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset","&:empty::after":{display:"block",padding:`${i}px 0`,color:y,fontSize:p,textAlign:"center",content:'"Not Found"'}},[`${Z}-tree`]:{paddingBlock:`${i}px 0`,paddingInline:i,[N]:{padding:0},[`${N}-treenode ${N}-node-content-wrapper:hover`]:{backgroundColor:$},[`${N}-treenode-checkbox-checked ${N}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:E}}},[`${Z}-search`]:{padding:i,borderBottom:O,"&-input":{input:{minWidth:o},[r]:{color:y}}},[`${Z}-checkall`]:{width:"100%",marginBottom:a,marginInlineStart:a},[`${Z}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${i-s}px ${i}px`,overflow:"hidden",borderTop:O}})}},{[`${n}-dropdown ${Z}, ${Z}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:i,color:c},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},tL=e=>{let{componentCls:t,lineWidth:n,colorSplit:r,motionDurationSlow:l,zIndexTableFixed:o,tableBg:a,zIndexTableSticky:i}=e;return{[`${t}-wrapper`]:{[` - ${t}-cell-fix-left, - ${t}-cell-fix-right - `]:{position:"sticky !important",zIndex:o,background:a},[` - ${t}-cell-fix-left-first::after, - ${t}-cell-fix-left-last::after - `]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:-n,width:30,transform:"translateX(100%)",transition:`box-shadow ${l}`,content:'""',pointerEvents:"none"},[`${t}-cell-fix-left-all::after`]:{display:"none"},[` - ${t}-cell-fix-right-first::after, - ${t}-cell-fix-right-last::after - `]:{position:"absolute",top:0,bottom:-n,left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${l}`,content:'""',pointerEvents:"none"},[`${t}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:i+1,width:30,transition:`box-shadow ${l}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${t}-ping-left`]:{[`&:not(${t}-has-fix-left) ${t}-container`]:{position:"relative","&::before":{boxShadow:`inset 10px 0 8px -8px ${r}`}},[` - ${t}-cell-fix-left-first::after, - ${t}-cell-fix-left-last::after - `]:{boxShadow:`inset 10px 0 8px -8px ${r}`},[`${t}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${t}-ping-right`]:{[`&:not(${t}-has-fix-right) ${t}-container`]:{position:"relative","&::after":{boxShadow:`inset -10px 0 8px -8px ${r}`}},[` - ${t}-cell-fix-right-first::after, - ${t}-cell-fix-right-last::after - `]:{boxShadow:`inset -10px 0 8px -8px ${r}`}}}}},tB=e=>{let{componentCls:t,antCls:n}=e;return{[`${t}-wrapper`]:{[`${t}-pagination${n}-pagination`]:{margin:`${e.margin}px 0`},[`${t}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},tA=e=>{let{componentCls:t,tableRadius:n}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${n}px ${n}px 0 0`},[`${t}-title + ${t}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${t}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:n,borderStartEndRadius:n,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:n},"> *:last-child":{borderStartEndRadius:n}}},"&-footer":{borderRadius:`0 0 ${n}px ${n}px`}}}}},t_=e=>{let{componentCls:t}=e;return{[`${t}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${t}-pagination-left`]:{justifyContent:"flex-end"},[`${t}-pagination-right`]:{justifyContent:"flex-start"},[`${t}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${t}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${t}-row-indent`]:{float:"right"}}}}},tF=e=>{let{componentCls:t,antCls:n,iconCls:r,fontSizeIcon:l,padding:o,paddingXS:a,tableHeaderIconColor:i,tableHeaderIconColorHover:c,tableSelectionColumnWidth:s}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:s,[`&${t}-selection-col-with-dropdown`]:{width:s+l+o/4}},[`${t}-bordered ${t}-selection-col`]:{width:s+2*a,[`&${t}-selection-col-with-dropdown`]:{width:s+l+o/4+2*a}},[` - table tr th${t}-selection-column, - table tr td${t}-selection-column - `]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS,textAlign:"center",[`${n}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${t}-selection-column${t}-cell-fix-left`]:{zIndex:e.zIndexTableFixed+1},[`table tr th${t}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${t}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${t}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:`${e.tablePaddingHorizontal/4}px`,[r]:{color:i,fontSize:l,verticalAlign:"baseline","&:hover":{color:c}}}}}},tW=e=>{let{componentCls:t}=e,n=(n,r,l,o)=>({[`${t}${t}-${n}`]:{fontSize:o,[` - ${t}-title, - ${t}-footer, - ${t}-thead > tr > th, - ${t}-tbody > tr > th, - ${t}-tbody > tr > td, - tfoot > tr > th, - tfoot > tr > td - `]:{padding:`${r}px ${l}px`},[`${t}-filter-trigger`]:{marginInlineEnd:`-${l/2}px`},[`${t}-expanded-row-fixed`]:{margin:`-${r}px -${l}px`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:`-${r}px`,marginInline:`${e.tableExpandColumnWidth-l}px -${l}px`}},[`${t}-selection-column`]:{paddingInlineStart:`${l/4}px`}}});return{[`${t}-wrapper`]:Object.assign(Object.assign({},n("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle)),n("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall))}},tD=e=>{let{componentCls:t,marginXXS:n,fontSizeIcon:r,tableHeaderIconColor:l,tableHeaderIconColorHover:o}=e;return{[`${t}-wrapper`]:{[`${t}-thead th${t}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{background:e.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:e.colorPrimary},[` - &${t}-cell-fix-left:hover, - &${t}-cell-fix-right:hover - `]:{background:e.tableFixedHeaderSortActiveBg}},[`${t}-thead th${t}-column-sort`]:{background:e.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${t}-column-sort`]:{background:e.tableBodySortBg},[`${t}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${t}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${t}-column-sorter`]:{marginInlineStart:n,color:l,fontSize:0,transition:`color ${e.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:r,"&.active":{color:e.colorPrimary}},[`${t}-column-sorter-up + ${t}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${t}-column-sorters:hover ${t}-column-sorter`]:{color:o}}}},tK=e=>{let{componentCls:t,opacityLoading:n,tableScrollThumbBg:r,tableScrollThumbBgHover:l,tableScrollThumbSize:o,tableScrollBg:a,zIndexTableSticky:i}=e,c=`${e.lineWidth}px ${e.lineType} ${e.tableBorderColor}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:i,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${o}px !important`,zIndex:i,display:"flex",alignItems:"center",background:a,borderTop:c,opacity:n,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:o,backgroundColor:r,borderRadius:100,transition:`all ${e.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:l}}}}}}},tV=e=>{let{componentCls:t,lineWidth:n,tableBorderColor:r}=e,l=`${n}px ${e.lineType} ${r}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:l}}},[`div${t}-summary`]:{boxShadow:`0 -${n}px 0 ${r}`}}}};let tX=e=>{let{componentCls:t,fontWeightStrong:n,tablePaddingVertical:r,tablePaddingHorizontal:l,lineWidth:o,lineType:a,tableBorderColor:i,tableFontSize:c,tableBg:s,tableRadius:u,tableHeaderTextColor:d,motionDurationMid:f,tableHeaderBg:p,tableHeaderCellSplitColor:m,tableRowHoverBg:h,tableSelectedRowBg:g,tableSelectedRowHoverBg:x,tableFooterTextColor:b,tableFooterBg:v,paddingContentVerticalLG:y}=e,w=`${o}px ${a} ${i}`;return{[`${t}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,tO.dF)()),{[t]:Object.assign(Object.assign({},(0,tO.Wf)(e)),{fontSize:c,background:s,borderRadius:`${u}px ${u}px 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${u}px ${u}px 0 0`,borderCollapse:"separate",borderSpacing:0},[` - ${t}-thead > tr > th, - ${t}-tbody > tr > th, - ${t}-tbody > tr > td, - tfoot > tr > th, - tfoot > tr > td - `]:{position:"relative",padding:`${y}px ${l}px`,overflowWrap:"break-word"},[`${t}-title`]:{padding:`${r}px ${l}px`},[`${t}-thead`]:{[` - > tr > th, - > tr > td - `]:{position:"relative",color:d,fontWeight:n,textAlign:"start",background:p,borderBottom:w,transition:`background ${f} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${t}-selection-column):not(${t}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:m,transform:"translateY(-50%)",transition:`background-color ${f}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${t}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${f}, border-color ${f}`,borderBottom:w,[` - > ${t}-wrapper:only-child, - > ${t}-expanded-row-fixed > ${t}-wrapper:only-child - `]:{[t]:{marginBlock:`-${r}px`,marginInline:`${e.tableExpandColumnWidth-l}px -${l}px`,[`${t}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:d,fontWeight:n,textAlign:"start",background:p,borderBottom:w,transition:`background ${f} ease`},[` - &${t}-row:hover > th, - &${t}-row:hover > td, - > th${t}-cell-row-hover, - > td${t}-cell-row-hover - `]:{background:h},[`&${t}-row-selected`]:{"> th, > td":{background:g},"&:hover > th, &:hover > td":{background:x}}}},[`${t}-footer`]:{padding:`${r}px ${l}px`,color:b,background:v}})}};var tU=(0,tR.Z)("Table",e=>{let{controlItemBgActive:t,controlItemBgActiveHover:n,colorTextPlaceholder:r,colorTextHeading:l,colorSplit:o,colorBorderSecondary:a,fontSize:i,padding:c,paddingXS:s,paddingSM:u,controlHeight:d,colorFillAlter:f,colorIcon:p,colorIconHover:m,opacityLoading:h,colorBgContainer:g,borderRadiusLG:x,colorFillContent:b,colorFillSecondary:v,controlInteractiveSize:y}=e,w=new tN.C(p),C=new tN.C(m),$=new tN.C(v).onBackground(g).toHexShortString(),E=new tN.C(b).onBackground(g).toHexShortString(),S=new tN.C(f).onBackground(g).toHexShortString(),k=(0,tI.TS)(e,{tableFontSize:i,tableBg:g,tableRadius:x,tablePaddingVertical:c,tablePaddingHorizontal:c,tablePaddingVerticalMiddle:u,tablePaddingHorizontalMiddle:s,tablePaddingVerticalSmall:s,tablePaddingHorizontalSmall:s,tableBorderColor:a,tableHeaderTextColor:l,tableHeaderBg:S,tableFooterTextColor:l,tableFooterBg:S,tableHeaderCellSplitColor:a,tableHeaderSortBg:$,tableHeaderSortHoverBg:E,tableHeaderIconColor:w.clone().setAlpha(w.getAlpha()*h).toRgbString(),tableHeaderIconColorHover:C.clone().setAlpha(C.getAlpha()*h).toRgbString(),tableBodySortBg:S,tableFixedHeaderSortActiveBg:$,tableHeaderFilterActiveBg:b,tableFilterDropdownBg:g,tableRowHoverBg:S,tableSelectedRowBg:t,tableSelectedRowHoverBg:n,zIndexTableFixed:2,zIndexTableSticky:3,tableFontSizeMiddle:i,tableFontSizeSmall:i,tableSelectionColumnWidth:d,tableExpandIconBg:g,tableExpandColumnWidth:y+2*e.padding,tableExpandedRowBg:f,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:r,tableScrollThumbBgHover:l,tableScrollBg:o});return[tX(k),tB(k),tV(k),tD(k),tH(k),tj(k),tA(k),tM(k),tV(k),tT(k),tF(k),tL(k),tK(k),tP(k),tW(k),t_(k)]});let tG=[];var tY=u.forwardRef((e,t)=>{let n,r,l;let{prefixCls:a,className:i,rootClassName:c,style:s,size:d,bordered:f,dropdownPrefixCls:p,dataSource:m,pagination:h,rowSelection:g,rowKey:x="key",rowClassName:b,columns:v,children:y,childrenColumnName:w,onChange:C,getPopupContainer:$,loading:S,expandIcon:k,expandable:Z,expandedRowRender:N,expandIconColumnIndex:O,indentSize:R,scroll:I,sortDirections:j,locale:P,showSorterTooltip:T=!0}=e,z=u.useMemo(()=>v||eu(y),[v,y]),M=u.useMemo(()=>z.some(e=>e.responsive),[z]),H=(0,eR.Z)(M),L=u.useMemo(()=>{let e=new Set(Object.keys(H).filter(e=>H[e]));return z.filter(t=>!t.responsive||t.responsive.some(t=>e.has(t)))},[z,H]),B=(0,eS.Z)(e,["className","style","columns"]),{locale:A=eI.Z,direction:_,table:F,renderEmpty:W,getPrefixCls:K,getPopupContainer:V}=u.useContext(eZ.E_),X=(0,eO.Z)(d),U=Object.assign(Object.assign({},A.Table),P),G=m||tG,Y=K("table",a),J=K("dropdown",p),q=Object.assign({childrenColumnName:w,expandIconColumnIndex:O},Z),{childrenColumnName:Q="children"}=q,ee=u.useMemo(()=>G.some(e=>null==e?void 0:e[Q])?"nest":N||Z&&Z.expandedRowRender?"row":null,[G]),et={body:u.useRef()},en=u.useMemo(()=>"function"==typeof x?x:e=>null==e?void 0:e[x],[x]),[er]=function(e,t,n){let r=u.useRef({});return[function(l){if(!r.current||r.current.data!==e||r.current.childrenColumnName!==t||r.current.getRowKey!==n){let l=new Map;!function e(r){r.forEach((r,o)=>{let a=n(r,o);l.set(a,r),r&&"object"==typeof r&&t in r&&e(r[t]||[])})}(e),r.current={data:e,childrenColumnName:t,kvMap:l,getRowKey:n}}return r.current.kvMap.get(l)}]}(G,Q,en),el={},eo=function(e,t){var n,r,l;let o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=Object.assign(Object.assign({},el),e);o&&(null===(n=el.resetPagination)||void 0===n||n.call(el),(null===(r=a.pagination)||void 0===r?void 0:r.current)&&(a.pagination.current=1),h&&h.onChange&&h.onChange(1,null===(l=a.pagination)||void 0===l?void 0:l.pageSize)),I&&!1!==I.scrollToFirstRowOnChange&&et.body.current&&(0,ek.Z)(0,{getContainer:()=>et.body.current}),null==C||C(a.pagination,a.filters,a.sorter,{currentDataSource:e7(tZ(G,a.sorterStates,Q),a.filterStates),action:t})},[ea,ei,ec,es]=function(e){let{prefixCls:t,mergedColumns:n,onSorterChange:r,sortDirections:l,tableLocale:o,showSorterTooltip:a}=e,[i,c]=u.useState(tE(n,!0)),s=u.useMemo(()=>{let e=!0,t=tE(n,!1);if(!t.length)return i;let r=[];function l(t){e?r.push(t):r.push(Object.assign(Object.assign({},t),{sortOrder:null}))}let o=null;return t.forEach(t=>{null===o?(l(t),t.sortOrder&&(!1===t.multiplePriority?e=!1:o=!0)):(o&&!1!==t.multiplePriority||(e=!1),l(t))}),r},[n,i]),d=u.useMemo(()=>{let e=s.map(e=>{let{column:t,sortOrder:n}=e;return{column:t,order:n}});return{sortColumns:e,sortColumn:e[0]&&e[0].column,sortOrder:e[0]&&e[0].order}},[s]);function f(e){let t;c(t=!1!==e.multiplePriority&&s.length&&!1!==s[0].multiplePriority?[].concat((0,D.Z)(s.filter(t=>{let{key:n}=t;return n!==e.key})),[e]):[e]),r(tk(t),t)}return[e=>(function e(t,n,r,l,o,a,i,c){return(n||[]).map((n,s)=>{let d=eM(s,c),f=n;if(f.sorter){let e;let c=f.sortDirections||o,s=void 0===f.showSorterTooltip?i:f.showSorterTooltip,p=ez(f,d),m=r.find(e=>{let{key:t}=e;return t===p}),h=m?m.sortOrder:null,g=h?c[c.indexOf(h)+1]:c[0];if(n.sortIcon)e=n.sortIcon({sortOrder:h});else{let n=c.includes(ty)&&u.createElement(tb,{className:E()(`${t}-column-sorter-up`,{active:h===ty})}),r=c.includes(tw)&&u.createElement(tg,{className:E()(`${t}-column-sorter-down`,{active:h===tw})});e=u.createElement("span",{className:E()(`${t}-column-sorter`,{[`${t}-column-sorter-full`]:!!(n&&r)})},u.createElement("span",{className:`${t}-column-sorter-inner`,"aria-hidden":"true"},n,r))}let{cancelSort:x,triggerAsc:b,triggerDesc:v}=a||{},y=x;g===tw?y=v:g===ty&&(y=b);let w="object"==typeof s?s:{title:y};f=Object.assign(Object.assign({},f),{className:E()(f.className,{[`${t}-column-sort`]:h}),title:r=>{let l=u.createElement("div",{className:`${t}-column-sorters`},u.createElement("span",{className:`${t}-column-title`},eH(n.title,r)),e);return s?u.createElement(tv.Z,Object.assign({},w),l):l},onHeaderCell:e=>{let r=n.onHeaderCell&&n.onHeaderCell(e)||{},o=r.onClick,a=r.onKeyDown;r.onClick=e=>{l({column:n,key:p,sortOrder:g,multiplePriority:tC(n)}),null==o||o(e)},r.onKeyDown=e=>{e.keyCode===eQ.Z.ENTER&&(l({column:n,key:p,sortOrder:g,multiplePriority:tC(n)}),null==a||a(e))};let i=function(e,t){let n=eH(e,t);return"[object Object]"===Object.prototype.toString.call(n)?"":n}(n.title,{}),c=null==i?void 0:i.toString();return h?r["aria-sort"]="ascend"===h?"ascending":"descending":r["aria-label"]=c||"",r.className=E()(r.className,`${t}-column-has-sorters`),r.tabIndex=0,n.ellipsis&&(r.title=(null!=i?i:"").toString()),r}})}return"children"in f&&(f=Object.assign(Object.assign({},f),{children:e(t,f.children,r,l,o,a,i,d)})),f})})(t,e,s,f,l,o,a),s,d,()=>tk(s)]}({prefixCls:Y,mergedColumns:L,onSorterChange:(e,t)=>{eo({sorter:e,sorterStates:t},"sort",!1)},sortDirections:j||["ascend","descend"],tableLocale:U,showSorterTooltip:T}),ed=u.useMemo(()=>tZ(G,ei,Q),[G,ei]);el.sorter=es(),el.sorterStates=ei;let[ef,ep,em]=e9({prefixCls:Y,locale:U,dropdownPrefixCls:J,mergedColumns:L,onFilterChange:(e,t)=>{eo({filters:e,filterStates:t},"filter",!0)},getPopupContainer:$||V}),eh=e7(ed,ep);el.filters=em,el.filterStates=ep;let eg=u.useMemo(()=>{let e={};return Object.keys(em).forEach(t=>{null!==em[t]&&(e[t]=em[t])}),Object.assign(Object.assign({},ec),{filters:e})},[ec,em]),[ex]=function(e){let t=u.useCallback(t=>(function e(t,n){return t.map(t=>{let r=Object.assign({},t);return r.title=eH(t.title,n),"children"in r&&(r.children=e(r.children,n)),r})})(t,e),[e]);return[t]}(eg),[eb,ev]=tn(eh.length,(e,t)=>{eo({pagination:Object.assign(Object.assign({},el.pagination),{current:e,pageSize:t})},"paginate")},h);el.pagination=!1===h?{}:function(e,t){let n={current:e.current,pageSize:e.pageSize},r=t&&"object"==typeof t?t:{};return Object.keys(r).forEach(t=>{let r=e[t];"function"!=typeof r&&(n[t]=r)}),n}(eb,h),el.resetPagination=ev;let ey=u.useMemo(()=>{if(!1===h||!eb.pageSize)return eh;let{current:e=1,total:t,pageSize:n=10}=eb;return eh.lengthn?eh.slice((e-1)*n,e*n):eh:eh.slice((e-1)*n,e*n)},[!!h,eh,eb&&eb.current,eb&&eb.pageSize,eb&&eb.total]),[ew,eC]=tm({prefixCls:Y,data:eh,pageData:ey,getRowKey:en,getRecordByKey:er,expandType:ee,childrenColumnName:Q,locale:U,getPopupContainer:$||V},g);q.__PARENT_RENDER_ICON__=q.expandIcon,q.expandIcon=q.expandIcon||k||function(e){let{prefixCls:t,onExpand:n,record:r,expanded:l,expandable:o}=e,a=`${t}-row-expand-icon`;return u.createElement("button",{type:"button",onClick:e=>{n(r,e),e.stopPropagation()},className:E()(a,{[`${a}-spaced`]:!o,[`${a}-expanded`]:o&&l,[`${a}-collapsed`]:o&&!l}),"aria-label":l?U.collapse:U.expand,"aria-expanded":l})},"nest"===ee&&void 0===q.expandIconColumnIndex?q.expandIconColumnIndex=g?1:0:q.expandIconColumnIndex>0&&g&&(q.expandIconColumnIndex-=1),"number"!=typeof q.indentSize&&(q.indentSize="number"==typeof R?R:15);let e$=u.useCallback(e=>ex(ew(ef(ea(e)))),[ea,ef,ew]);if(!1!==h&&(null==eb?void 0:eb.total)){let e;e=eb.size?eb.size:"small"===X||"middle"===X?"small":void 0;let t=t=>u.createElement(ej.Z,Object.assign({},eb,{className:E()(`${Y}-pagination ${Y}-pagination-${t}`,eb.className),size:e})),l="rtl"===_?"left":"right",{position:o}=eb;if(null!==o&&Array.isArray(o)){let e=o.find(e=>e.includes("top")),a=o.find(e=>e.includes("bottom")),i=o.every(e=>"none"==`${e}`);e||a||i||(r=t(l)),e&&(n=t(e.toLowerCase().replace("top",""))),a&&(r=t(a.toLowerCase().replace("bottom","")))}else r=t(l)}"boolean"==typeof S?l={spinning:S}:"object"==typeof S&&(l=Object.assign({spinning:!0},S));let[eE,eL]=tU(Y),eB=E()(`${Y}-wrapper`,null==F?void 0:F.className,{[`${Y}-wrapper-rtl`]:"rtl"===_},i,c,eL),eA=Object.assign(Object.assign({},null==F?void 0:F.style),s),e_=P&&P.emptyText||(null==W?void 0:W("Table"))||u.createElement(eN.Z,{componentName:"Table"});return eE(u.createElement("div",{ref:t,className:eB,style:eA},u.createElement(eP.Z,Object.assign({spinning:!1},l),n,u.createElement(eT,Object.assign({},B,{columns:L,direction:_,expandable:q,prefixCls:Y,className:E()({[`${Y}-middle`]:"middle"===X,[`${Y}-small`]:"small"===X,[`${Y}-bordered`]:f,[`${Y}-empty`]:0===G.length}),data:ey,rowKey:en,rowClassName:(e,t,n)=>{let r;return r="function"==typeof b?E()(b(e,t,n)):E()(b),E()({[`${Y}-row-selected`]:eC.has(en(e,t))},r)},emptyText:e_,internalHooks:o,internalRefs:et,transformColumns:e$})),r)))});let tJ=u.forwardRef((e,t)=>{let n=u.useRef(0);return n.current+=1,u.createElement(tY,Object.assign({},e,{ref:t,_renderTimes:n.current}))});tJ.SELECTION_COLUMN=tc,tJ.EXPAND_COLUMN=l,tJ.SELECTION_ALL=ts,tJ.SELECTION_INVERT=tu,tJ.SELECTION_NONE=td,tJ.Column=function(e){return null},tJ.ColumnGroup=function(e){return null},tJ.Summary=z;var tq=tJ},64019:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(73935);function l(e,t,n,l){var o=r.unstable_batchedUpdates?function(e){r.unstable_batchedUpdates(n,e)}:n;return null!=e&&e.addEventListener&&e.addEventListener(t,o,l),{remove:function(){null!=e&&e.removeEventListener&&e.removeEventListener(t,o,l)}}}},27678:function(e,t,n){function r(){return{width:document.documentElement.clientWidth,height:window.innerHeight||document.documentElement.clientHeight}}function l(e){var t=e.getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}n.d(t,{g1:function(){return r},os:function(){return l}})}}]); \ No newline at end of file diff --git a/dbgpt/app/static/_next/static/chunks/64-cef50b39f43d697b.js b/dbgpt/app/static/_next/static/chunks/64-cef50b39f43d697b.js deleted file mode 100644 index 65b2267b2..000000000 --- a/dbgpt/app/static/_next/static/chunks/64-cef50b39f43d697b.js +++ /dev/null @@ -1,16 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[64],{63606:function(e,t,r){r.d(t,{Z:function(){return i}});var n=r(87462),o=r(67294),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},l=r(84089),i=o.forwardRef(function(e,t){return o.createElement(l.Z,(0,n.Z)({},e,{ref:t,icon:a}))})},99611:function(e,t,r){r.d(t,{Z:function(){return i}});var n=r(87462),o=r(67294),a={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"},l=r(84089),i=o.forwardRef(function(e,t){return o.createElement(l.Z,(0,n.Z)({},e,{ref:t,icon:a}))})},68795:function(e,t,r){r.d(t,{Z:function(){return i}});var n=r(87462),o=r(67294),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},l=r(84089),i=o.forwardRef(function(e,t){return o.createElement(l.Z,(0,n.Z)({},e,{ref:t,icon:a}))})},74443:function(e,t,r){r.d(t,{Z:function(){return s},c:function(){return a}});var n=r(67294),o=r(25976);let a=["xxl","xl","lg","md","sm","xs"],l=e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}),i=e=>{let t=[].concat(a).reverse();return t.forEach((r,n)=>{let o=r.toUpperCase(),a=`screen${o}Min`,l=`screen${o}`;if(!(e[a]<=e[l]))throw Error(`${a}<=${l} fails : !(${e[a]}<=${e[l]})`);if(n{let e=new Map,r=-1,n={};return{matchHandlers:{},dispatch:t=>(n=t,e.forEach(e=>e(n)),e.size>=1),subscribe(t){return e.size||this.register(),r+=1,e.set(r,t),t(n),r},unsubscribe(t){e.delete(t),e.size||this.unregister()},unregister(){Object.keys(t).forEach(e=>{let r=t[e],n=this.matchHandlers[r];null==n||n.mql.removeListener(null==n?void 0:n.listener)}),e.clear()},register(){Object.keys(t).forEach(e=>{let r=t[e],o=t=>{let{matches:r}=t;this.dispatch(Object.assign(Object.assign({},n),{[e]:r}))},a=window.matchMedia(r);a.addListener(o),this.matchHandlers[r]={mql:a,listener:o},o(a)})},responsiveMap:t}},[e])}},9708:function(e,t,r){r.d(t,{F:function(){return l},Z:function(){return a}});var n=r(94184),o=r.n(n);function a(e,t,r){return o()({[`${e}-status-success`]:"success"===t,[`${e}-status-warning`]:"warning"===t,[`${e}-status-error`]:"error"===t,[`${e}-status-validating`]:"validating"===t,[`${e}-has-feedback`]:r})}let l=(e,t)=>t||e},32983:function(e,t,r){r.d(t,{Z:function(){return v}});var n=r(94184),o=r.n(n),a=r(67294),l=r(53124),i=r(10110),s=r(10274),c=r(25976),d=r(67968),u=r(45503);let p=e=>{let{componentCls:t,margin:r,marginXS:n,marginXL:o,fontSize:a,lineHeight:l}=e;return{[t]:{marginInline:n,fontSize:a,lineHeight:l,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:n,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorText},[`${t}-footer`]:{marginTop:r},"&-normal":{marginBlock:o,color:e.colorTextDisabled,[`${t}-description`]:{color:e.colorTextDisabled},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:n,color:e.colorTextDisabled,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}};var f=(0,d.Z)("Empty",e=>{let{componentCls:t,controlHeightLG:r}=e,n=(0,u.TS)(e,{emptyImgCls:`${t}-img`,emptyImgHeight:2.5*r,emptyImgHeightMD:r,emptyImgHeightSM:.875*r});return[p(n)]}),g=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);ot.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};let m=a.createElement(()=>{let[,e]=(0,c.Z)(),t=new s.C(e.colorBgBase),r=t.toHsl().l<.5?{opacity:.65}:{};return a.createElement("svg",{style:r,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},a.createElement("g",{fill:"none",fillRule:"evenodd"},a.createElement("g",{transform:"translate(24 31.67)"},a.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),a.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),a.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),a.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),a.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),a.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),a.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},a.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),a.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},null),b=a.createElement(()=>{let[,e]=(0,c.Z)(),{colorFill:t,colorFillTertiary:r,colorFillQuaternary:n,colorBgContainer:o}=e,{borderColor:l,shadowColor:i,contentColor:d}=(0,a.useMemo)(()=>({borderColor:new s.C(t).onBackground(o).toHexShortString(),shadowColor:new s.C(r).onBackground(o).toHexShortString(),contentColor:new s.C(n).onBackground(o).toHexShortString()}),[t,r,n,o]);return a.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},a.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},a.createElement("ellipse",{fill:i,cx:"32",cy:"33",rx:"32",ry:"7"}),a.createElement("g",{fillRule:"nonzero",stroke:l},a.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),a.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:d}))))},null),h=e=>{var{className:t,rootClassName:r,prefixCls:n,image:s=m,description:c,children:d,imageStyle:u,style:p}=e,h=g(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);let{getPrefixCls:v,direction:x,empty:$}=a.useContext(l.E_),y=v("empty",n),[w,E]=f(y),[S]=(0,i.Z)("Empty"),C=void 0!==c?c:null==S?void 0:S.description,O="string"==typeof C?C:"empty",z=null;return z="string"==typeof s?a.createElement("img",{alt:O,src:s}):s,w(a.createElement("div",Object.assign({className:o()(E,y,null==$?void 0:$.className,{[`${y}-normal`]:s===b,[`${y}-rtl`]:"rtl"===x},t,r),style:Object.assign(Object.assign({},null==$?void 0:$.style),p)},h),a.createElement("div",{className:`${y}-image`,style:u},z),C&&a.createElement("div",{className:`${y}-description`},C),d&&a.createElement("div",{className:`${y}-footer`},d)))};h.PRESENTED_IMAGE_DEFAULT=m,h.PRESENTED_IMAGE_SIMPLE=b;var v=h},99134:function(e,t,r){var n=r(67294);let o=(0,n.createContext)({});t.Z=o},21584:function(e,t,r){var n=r(94184),o=r.n(n),a=r(67294),l=r(53124),i=r(99134),s=r(6999),c=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);ot.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};let d=["xs","sm","md","lg","xl","xxl"],u=a.forwardRef((e,t)=>{let{getPrefixCls:r,direction:n}=a.useContext(l.E_),{gutter:u,wrap:p,supportFlexGap:f}=a.useContext(i.Z),{prefixCls:g,span:m,order:b,offset:h,push:v,pull:x,className:$,children:y,flex:w,style:E}=e,S=c(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),C=r("col",g),[O,z]=(0,s.c)(C),R={};d.forEach(t=>{let r={},o=e[t];"number"==typeof o?r.span=o:"object"==typeof o&&(r=o||{}),delete S[t],R=Object.assign(Object.assign({},R),{[`${C}-${t}-${r.span}`]:void 0!==r.span,[`${C}-${t}-order-${r.order}`]:r.order||0===r.order,[`${C}-${t}-offset-${r.offset}`]:r.offset||0===r.offset,[`${C}-${t}-push-${r.push}`]:r.push||0===r.push,[`${C}-${t}-pull-${r.pull}`]:r.pull||0===r.pull,[`${C}-${t}-flex-${r.flex}`]:r.flex||"auto"===r.flex,[`${C}-rtl`]:"rtl"===n})});let j=o()(C,{[`${C}-${m}`]:void 0!==m,[`${C}-order-${b}`]:b,[`${C}-offset-${h}`]:h,[`${C}-push-${v}`]:v,[`${C}-pull-${x}`]:x},$,R,z),Z={};if(u&&u[0]>0){let e=u[0]/2;Z.paddingLeft=e,Z.paddingRight=e}if(u&&u[1]>0&&!f){let e=u[1]/2;Z.paddingTop=e,Z.paddingBottom=e}return w&&(Z.flex="number"==typeof w?`${w} ${w} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(w)?`0 0 ${w}`:w,!1!==p||Z.minWidth||(Z.minWidth=0)),O(a.createElement("div",Object.assign({},S,{style:Object.assign(Object.assign({},Z),E),className:j,ref:t}),y))});t.Z=u},92820:function(e,t,r){var n=r(94184),o=r.n(n),a=r(67294),l=r(53124),i=r(98082),s=r(74443),c=r(99134),d=r(6999),u=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);ot.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};function p(e,t){let[r,n]=a.useState("string"==typeof e?e:""),o=()=>{if("string"==typeof e&&n(e),"object"==typeof e)for(let r=0;r{o()},[JSON.stringify(e),t]),r}let f=a.forwardRef((e,t)=>{let{prefixCls:r,justify:n,align:f,className:g,style:m,children:b,gutter:h=0,wrap:v}=e,x=u(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:$,direction:y}=a.useContext(l.E_),[w,E]=a.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[S,C]=a.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),O=p(f,S),z=p(n,S),R=(0,i.Z)(),j=a.useRef(h),Z=(0,s.Z)();a.useEffect(()=>{let e=Z.subscribe(e=>{C(e);let t=j.current||0;(!Array.isArray(t)&&"object"==typeof t||Array.isArray(t)&&("object"==typeof t[0]||"object"==typeof t[1]))&&E(e)});return()=>Z.unsubscribe(e)},[]);let I=$("row",r),[H,M]=(0,d.V)(I),P=(()=>{let e=[void 0,void 0],t=Array.isArray(h)?h:[h,void 0];return t.forEach((t,r)=>{if("object"==typeof t)for(let n=0;n0?-(P[0]/2):void 0,B=null!=P[1]&&P[1]>0?-(P[1]/2):void 0;A&&(k.marginLeft=A,k.marginRight=A),R?[,k.rowGap]=P:B&&(k.marginTop=B,k.marginBottom=B);let[T,W]=P,L=a.useMemo(()=>({gutter:[T,W],wrap:v,supportFlexGap:R}),[T,W,v,R]);return H(a.createElement(c.Z.Provider,{value:L},a.createElement("div",Object.assign({},x,{className:N,style:Object.assign(Object.assign({},k),m),ref:t}),b)))});t.Z=f},6999:function(e,t,r){r.d(t,{V:function(){return d},c:function(){return u}});var n=r(67968),o=r(45503);let a=e=>{let{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},l=e=>{let{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},i=(e,t)=>{let{componentCls:r,gridColumns:n}=e,o={};for(let e=n;e>=0;e--)0===e?(o[`${r}${t}-${e}`]={display:"none"},o[`${r}-push-${e}`]={insetInlineStart:"auto"},o[`${r}-pull-${e}`]={insetInlineEnd:"auto"},o[`${r}${t}-push-${e}`]={insetInlineStart:"auto"},o[`${r}${t}-pull-${e}`]={insetInlineEnd:"auto"},o[`${r}${t}-offset-${e}`]={marginInlineStart:0},o[`${r}${t}-order-${e}`]={order:0}):(o[`${r}${t}-${e}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${e/n*100}%`,maxWidth:`${e/n*100}%`}],o[`${r}${t}-push-${e}`]={insetInlineStart:`${e/n*100}%`},o[`${r}${t}-pull-${e}`]={insetInlineEnd:`${e/n*100}%`},o[`${r}${t}-offset-${e}`]={marginInlineStart:`${e/n*100}%`},o[`${r}${t}-order-${e}`]={order:e});return o},s=(e,t)=>i(e,t),c=(e,t,r)=>({[`@media (min-width: ${t}px)`]:Object.assign({},s(e,r))}),d=(0,n.Z)("Grid",e=>[a(e)]),u=(0,n.Z)("Grid",e=>{let t=(0,o.TS)(e,{gridColumns:24}),r={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[l(t),s(t,""),s(t,"-xs"),Object.keys(r).map(e=>c(t,r[e],e)).reduce((e,t)=>Object.assign(Object.assign({},e),t),{})]})},59566:function(e,t,r){r.d(t,{default:function(){return er}});var n,o=r(94184),a=r.n(o),l=r(67294),i=r(53124),s=r(65223),c=r(47673),d=r(4340),u=r(67656),p=r(42550),f=r(9708),g=r(98866),m=r(98675),b=r(4173);function h(e,t){let r=(0,l.useRef)([]),n=()=>{r.current.push(setTimeout(()=>{var t,r,n,o;(null===(t=e.current)||void 0===t?void 0:t.input)&&(null===(r=e.current)||void 0===r?void 0:r.input.getAttribute("type"))==="password"&&(null===(n=e.current)||void 0===n?void 0:n.input.hasAttribute("value"))&&(null===(o=e.current)||void 0===o||o.input.removeAttribute("value"))}))};return(0,l.useEffect)(()=>(t&&n(),()=>r.current.forEach(e=>{e&&clearTimeout(e)})),[]),n}var v=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);ot.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};let x=(0,l.forwardRef)((e,t)=>{var r;let n;let{prefixCls:o,bordered:x=!0,status:$,size:y,disabled:w,onBlur:E,onFocus:S,suffix:C,allowClear:O,addonAfter:z,addonBefore:R,className:j,style:Z,styles:I,rootClassName:H,onChange:M,classNames:P}=e,N=v(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:k,direction:A,input:B}=l.useContext(i.E_),T=k("input",o),W=(0,l.useRef)(null),[L,D]=(0,c.ZP)(T),{compactSize:F,compactItemClassnames:V}=(0,b.ri)(T,A),X=(0,m.Z)(e=>{var t;return null!==(t=null!=y?y:F)&&void 0!==t?t:e}),G=l.useContext(g.Z),_=null!=w?w:G,{status:Q,hasFeedback:U,feedbackIcon:J}=(0,l.useContext)(s.aM),q=(0,f.F)(Q,$),K=!!(e.prefix||e.suffix||e.allowClear)||!!U,Y=(0,l.useRef)(K);(0,l.useEffect)(()=>{K&&Y.current,Y.current=K},[K]);let ee=h(W,!0),et=(U||C)&&l.createElement(l.Fragment,null,C,U&&J);return"object"==typeof O&&(null==O?void 0:O.clearIcon)?n=O:O&&(n={clearIcon:l.createElement(d.Z,null)}),L(l.createElement(u.Z,Object.assign({ref:(0,p.sQ)(t,W),prefixCls:T,autoComplete:null==B?void 0:B.autoComplete},N,{disabled:_,onBlur:e=>{ee(),null==E||E(e)},onFocus:e=>{ee(),null==S||S(e)},style:Object.assign(Object.assign({},null==B?void 0:B.style),Z),styles:Object.assign(Object.assign({},null==B?void 0:B.styles),I),suffix:et,allowClear:n,className:a()(j,H,V,null==B?void 0:B.className),onChange:e=>{ee(),null==M||M(e)},addonAfter:z&&l.createElement(b.BR,null,l.createElement(s.Ux,{override:!0,status:!0},z)),addonBefore:R&&l.createElement(b.BR,null,l.createElement(s.Ux,{override:!0,status:!0},R)),classNames:Object.assign(Object.assign(Object.assign({},P),null==B?void 0:B.classNames),{input:a()({[`${T}-sm`]:"small"===X,[`${T}-lg`]:"large"===X,[`${T}-rtl`]:"rtl"===A,[`${T}-borderless`]:!x},!K&&(0,f.Z)(T,q),null==P?void 0:P.input,null===(r=null==B?void 0:B.classNames)||void 0===r?void 0:r.input,D)}),classes:{affixWrapper:a()({[`${T}-affix-wrapper-sm`]:"small"===X,[`${T}-affix-wrapper-lg`]:"large"===X,[`${T}-affix-wrapper-rtl`]:"rtl"===A,[`${T}-affix-wrapper-borderless`]:!x},(0,f.Z)(`${T}-affix-wrapper`,q,U),D),wrapper:a()({[`${T}-group-rtl`]:"rtl"===A},D),group:a()({[`${T}-group-wrapper-sm`]:"small"===X,[`${T}-group-wrapper-lg`]:"large"===X,[`${T}-group-wrapper-rtl`]:"rtl"===A,[`${T}-group-wrapper-disabled`]:_},(0,f.Z)(`${T}-group-wrapper`,q,U),D)}})))});var $=r(87462),y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},w=r(84089),E=l.forwardRef(function(e,t){return l.createElement(w.Z,(0,$.Z)({},e,{ref:t,icon:y}))}),S=r(99611),C=r(98423),O=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);ot.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};let z=e=>e?l.createElement(S.Z,null):l.createElement(E,null),R={click:"onClick",hover:"onMouseOver"},j=l.forwardRef((e,t)=>{let{visibilityToggle:r=!0}=e,n="object"==typeof r&&void 0!==r.visible,[o,s]=(0,l.useState)(()=>!!n&&r.visible),c=(0,l.useRef)(null);l.useEffect(()=>{n&&s(r.visible)},[n,r]);let d=h(c),u=()=>{let{disabled:t}=e;t||(o&&d(),s(e=>{var t;let n=!e;return"object"==typeof r&&(null===(t=r.onVisibleChange)||void 0===t||t.call(r,n)),n}))},{className:f,prefixCls:g,inputPrefixCls:m,size:b}=e,v=O(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:$}=l.useContext(i.E_),y=$("input",m),w=$("input-password",g),E=r&&(t=>{let{action:r="click",iconRender:n=z}=e,a=R[r]||"",i=n(o),s={[a]:u,className:`${t}-icon`,key:"passwordIcon",onMouseDown:e=>{e.preventDefault()},onMouseUp:e=>{e.preventDefault()}};return l.cloneElement(l.isValidElement(i)?i:l.createElement("span",null,i),s)})(w),S=a()(w,f,{[`${w}-${b}`]:!!b}),j=Object.assign(Object.assign({},(0,C.Z)(v,["suffix","iconRender","visibilityToggle"])),{type:o?"text":"password",className:S,prefixCls:y,suffix:E});return b&&(j.size=b),l.createElement(x,Object.assign({ref:(0,p.sQ)(t,c)},j))});var Z=r(68795),I=r(96159),H=r(71577),M=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);ot.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};let P=l.forwardRef((e,t)=>{let r;let{prefixCls:n,inputPrefixCls:o,className:s,size:c,suffix:d,enterButton:u=!1,addonAfter:f,loading:g,disabled:h,onSearch:v,onChange:$,onCompositionStart:y,onCompositionEnd:w}=e,E=M(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:S,direction:C}=l.useContext(i.E_),O=l.useRef(!1),z=S("input-search",n),R=S("input",o),{compactSize:j}=(0,b.ri)(z,C),P=(0,m.Z)(e=>{var t;return null!==(t=null!=c?c:j)&&void 0!==t?t:e}),N=l.useRef(null),k=e=>{var t;document.activeElement===(null===(t=N.current)||void 0===t?void 0:t.input)&&e.preventDefault()},A=e=>{var t,r;v&&v(null===(r=null===(t=N.current)||void 0===t?void 0:t.input)||void 0===r?void 0:r.value,e)},B="boolean"==typeof u?l.createElement(Z.Z,null):null,T=`${z}-button`,W=u||{},L=W.type&&!0===W.type.__ANT_BUTTON;r=L||"button"===W.type?(0,I.Tm)(W,Object.assign({onMouseDown:k,onClick:e=>{var t,r;null===(r=null===(t=null==W?void 0:W.props)||void 0===t?void 0:t.onClick)||void 0===r||r.call(t,e),A(e)},key:"enterButton"},L?{className:T,size:P}:{})):l.createElement(H.ZP,{className:T,type:u?"primary":void 0,size:P,disabled:h,key:"enterButton",onMouseDown:k,onClick:A,loading:g,icon:B},u),f&&(r=[r,(0,I.Tm)(f,{key:"addonAfter"})]);let D=a()(z,{[`${z}-rtl`]:"rtl"===C,[`${z}-${P}`]:!!P,[`${z}-with-button`]:!!u},s);return l.createElement(x,Object.assign({ref:(0,p.sQ)(N,t),onPressEnter:e=>{O.current||g||A(e)}},E,{size:P,onCompositionStart:e=>{O.current=!0,null==y||y(e)},onCompositionEnd:e=>{O.current=!1,null==w||w(e)},prefixCls:R,addonAfter:r,suffix:d,onChange:e=>{e&&e.target&&"click"===e.type&&v&&v(e.target.value,e),$&&$(e)},className:D,disabled:h}))});var N=r(1413),k=r(4942),A=r(71002),B=r(97685),T=r(45987),W=r(74902),L=r(87887),D=r(21770),F=r(9220),V=r(8410),X=r(75164),G=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],_={},Q=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],U=l.forwardRef(function(e,t){var r=e.prefixCls,o=(e.onPressEnter,e.defaultValue),i=e.value,s=e.autoSize,c=e.onResize,d=e.className,u=e.style,p=e.disabled,f=e.onChange,g=(e.onInternalAutoSize,(0,T.Z)(e,Q)),m=(0,D.Z)(o,{value:i,postState:function(e){return null!=e?e:""}}),b=(0,B.Z)(m,2),h=b[0],v=b[1],x=l.useRef();l.useImperativeHandle(t,function(){return{textArea:x.current}});var y=l.useMemo(function(){return s&&"object"===(0,A.Z)(s)?[s.minRows,s.maxRows]:[]},[s]),w=(0,B.Z)(y,2),E=w[0],S=w[1],C=!!s,O=function(){try{if(document.activeElement===x.current){var e=x.current,t=e.selectionStart,r=e.selectionEnd,n=e.scrollTop;x.current.setSelectionRange(t,r),x.current.scrollTop=n}}catch(e){}},z=l.useState(2),R=(0,B.Z)(z,2),j=R[0],Z=R[1],I=l.useState(),H=(0,B.Z)(I,2),M=H[0],P=H[1],W=function(){Z(0)};(0,V.Z)(function(){C&&W()},[i,E,S,C]),(0,V.Z)(function(){if(0===j)Z(1);else if(1===j){var e=function(e){var t,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;n||((n=document.createElement("textarea")).setAttribute("tab-index","-1"),n.setAttribute("aria-hidden","true"),document.body.appendChild(n)),e.getAttribute("wrap")?n.setAttribute("wrap",e.getAttribute("wrap")):n.removeAttribute("wrap");var l=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&_[r])return _[r];var n=window.getComputedStyle(e),o=n.getPropertyValue("box-sizing")||n.getPropertyValue("-moz-box-sizing")||n.getPropertyValue("-webkit-box-sizing"),a=parseFloat(n.getPropertyValue("padding-bottom"))+parseFloat(n.getPropertyValue("padding-top")),l=parseFloat(n.getPropertyValue("border-bottom-width"))+parseFloat(n.getPropertyValue("border-top-width")),i={sizingStyle:G.map(function(e){return"".concat(e,":").concat(n.getPropertyValue(e))}).join(";"),paddingSize:a,borderSize:l,boxSizing:o};return t&&r&&(_[r]=i),i}(e,r),i=l.paddingSize,s=l.borderSize,c=l.boxSizing,d=l.sizingStyle;n.setAttribute("style","".concat(d,";").concat("\n min-height:0 !important;\n max-height:none !important;\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important;\n pointer-events: none !important;\n")),n.value=e.value||e.placeholder||"";var u=void 0,p=void 0,f=n.scrollHeight;if("border-box"===c?f+=s:"content-box"===c&&(f-=i),null!==o||null!==a){n.value=" ";var g=n.scrollHeight-i;null!==o&&(u=g*o,"border-box"===c&&(u=u+i+s),f=Math.max(u,f)),null!==a&&(p=g*a,"border-box"===c&&(p=p+i+s),t=f>p?"":"hidden",f=Math.min(p,f))}var m={height:f,overflowY:t,resize:"none"};return u&&(m.minHeight=u),p&&(m.maxHeight=p),m}(x.current,!1,E,S);Z(2),P(e)}else O()},[j]);var L=l.useRef(),U=function(){X.Z.cancel(L.current)};l.useEffect(function(){return U},[]);var J=C?M:null,q=(0,N.Z)((0,N.Z)({},u),J);return(0===j||1===j)&&(q.overflowY="hidden",q.overflowX="hidden"),l.createElement(F.Z,{onResize:function(e){2===j&&(null==c||c(e),s&&(U(),L.current=(0,X.Z)(function(){W()})))},disabled:!(s||c)},l.createElement("textarea",(0,$.Z)({},g,{ref:x,style:q,className:a()(r,d,(0,k.Z)({},"".concat(r,"-disabled"),p)),disabled:p,value:h,onChange:function(e){v(e.target.value),null==f||f(e)}})))}),J=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function q(e,t){return(0,W.Z)(e||"").slice(0,t).join("")}function K(e,t,r,n){var o=r;return e?o=q(r,n):(0,W.Z)(t||"").lengthn&&(o=t),o}var Y=l.forwardRef(function(e,t){var r,n,o=e.defaultValue,i=e.value,s=e.onFocus,c=e.onBlur,d=e.onChange,p=e.allowClear,f=e.maxLength,g=e.onCompositionStart,m=e.onCompositionEnd,b=e.suffix,h=e.prefixCls,v=void 0===h?"rc-textarea":h,x=e.classes,y=e.showCount,w=e.className,E=e.style,S=e.disabled,C=e.hidden,O=e.classNames,z=e.styles,R=e.onResize,j=(0,T.Z)(e,J),Z=(0,D.Z)(o,{value:i,defaultValue:o}),I=(0,B.Z)(Z,2),H=I[0],M=I[1],P=(0,l.useRef)(null),F=l.useState(!1),V=(0,B.Z)(F,2),X=V[0],G=V[1],_=l.useState(!1),Q=(0,B.Z)(_,2),Y=Q[0],ee=Q[1],et=l.useRef(),er=l.useRef(0),en=l.useState(null),eo=(0,B.Z)(en,2),ea=eo[0],el=eo[1],ei=function(){var e;null===(e=P.current)||void 0===e||e.textArea.focus()};(0,l.useImperativeHandle)(t,function(){return{resizableTextArea:P.current,focus:ei,blur:function(){var e;null===(e=P.current)||void 0===e||e.textArea.blur()}}}),(0,l.useEffect)(function(){G(function(e){return!S&&e})},[S]);var es=Number(f)>0,ec=(0,L.D7)(H);!Y&&es&&null==i&&(ec=q(ec,f));var ed=b;if(y){var eu=(0,W.Z)(ec).length;n="object"===(0,A.Z)(y)?y.formatter({value:ec,count:eu,maxLength:f}):"".concat(eu).concat(es?" / ".concat(f):""),ed=l.createElement(l.Fragment,null,ed,l.createElement("span",{className:a()("".concat(v,"-data-count"),null==O?void 0:O.count),style:null==z?void 0:z.count},n))}var ep=!j.autoSize&&!y&&!p;return l.createElement(u.Q,{value:ec,allowClear:p,handleReset:function(e){var t;M(""),ei(),(0,L.rJ)(null===(t=P.current)||void 0===t?void 0:t.textArea,e,d)},suffix:ed,prefixCls:v,classes:{affixWrapper:a()(null==x?void 0:x.affixWrapper,(r={},(0,k.Z)(r,"".concat(v,"-show-count"),y),(0,k.Z)(r,"".concat(v,"-textarea-allow-clear"),p),r))},disabled:S,focused:X,className:w,style:(0,N.Z)((0,N.Z)({},E),ea&&!ep?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":"string"==typeof n?n:void 0}},hidden:C,inputElement:l.createElement(U,(0,$.Z)({},j,{onKeyDown:function(e){var t=j.onPressEnter,r=j.onKeyDown;"Enter"===e.key&&t&&t(e),null==r||r(e)},onChange:function(e){var t=e.target.value;!Y&&es&&(t=K(e.target.selectionStart>=f+1||e.target.selectionStart===t.length||!e.target.selectionStart,H,t,f)),M(t),(0,L.rJ)(e.currentTarget,e,d,t)},onFocus:function(e){G(!0),null==s||s(e)},onBlur:function(e){G(!1),null==c||c(e)},onCompositionStart:function(e){ee(!0),et.current=H,er.current=e.currentTarget.selectionStart,null==g||g(e)},onCompositionEnd:function(e){ee(!1);var t,r=e.currentTarget.value;es&&(r=K(er.current>=f+1||er.current===(null===(t=et.current)||void 0===t?void 0:t.length),et.current,r,f)),r!==H&&(M(r),(0,L.rJ)(e.currentTarget,e,d,r)),null==m||m(e)},className:null==O?void 0:O.textarea,style:(0,N.Z)((0,N.Z)({},null==z?void 0:z.textarea),{},{resize:null==E?void 0:E.resize}),disabled:S,prefixCls:v,onResize:function(e){var t;null==R||R(e),null!==(t=P.current)&&void 0!==t&&t.textArea.style.height&&el(!0)},ref:P}))})}),ee=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);ot.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};let et=(0,l.forwardRef)((e,t)=>{let r;let{prefixCls:n,bordered:o=!0,size:u,disabled:p,status:b,allowClear:h,showCount:v,classNames:x}=e,$=ee(e,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames"]),{getPrefixCls:y,direction:w}=l.useContext(i.E_),E=(0,m.Z)(u),S=l.useContext(g.Z),{status:C,hasFeedback:O,feedbackIcon:z}=l.useContext(s.aM),R=(0,f.F)(C,b),j=l.useRef(null);l.useImperativeHandle(t,()=>{var e;return{resizableTextArea:null===(e=j.current)||void 0===e?void 0:e.resizableTextArea,focus:e=>{var t,r;!function(e,t){if(!e)return;e.focus(t);let{cursor:r}=t||{};if(r){let t=e.value.length;switch(r){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(t,t);break;default:e.setSelectionRange(0,t)}}}(null===(r=null===(t=j.current)||void 0===t?void 0:t.resizableTextArea)||void 0===r?void 0:r.textArea,e)},blur:()=>{var e;return null===(e=j.current)||void 0===e?void 0:e.blur()}}});let Z=y("input",n);"object"==typeof h&&(null==h?void 0:h.clearIcon)?r=h:h&&(r={clearIcon:l.createElement(d.Z,null)});let[I,H]=(0,c.ZP)(Z);return I(l.createElement(Y,Object.assign({},$,{disabled:null!=p?p:S,allowClear:r,classes:{affixWrapper:a()(`${Z}-textarea-affix-wrapper`,{[`${Z}-affix-wrapper-rtl`]:"rtl"===w,[`${Z}-affix-wrapper-borderless`]:!o,[`${Z}-affix-wrapper-sm`]:"small"===E,[`${Z}-affix-wrapper-lg`]:"large"===E,[`${Z}-textarea-show-count`]:v},(0,f.Z)(`${Z}-affix-wrapper`,R),H)},classNames:Object.assign(Object.assign({},x),{textarea:a()({[`${Z}-borderless`]:!o,[`${Z}-sm`]:"small"===E,[`${Z}-lg`]:"large"===E},(0,f.Z)(Z,R),H,null==x?void 0:x.textarea)}),prefixCls:Z,suffix:O&&l.createElement("span",{className:`${Z}-textarea-suffix`},z),showCount:v,ref:j})))});x.Group=e=>{let{getPrefixCls:t,direction:r}=(0,l.useContext)(i.E_),{prefixCls:n,className:o}=e,d=t("input-group",n),u=t("input"),[p,f]=(0,c.ZP)(u),g=a()(d,{[`${d}-lg`]:"large"===e.size,[`${d}-sm`]:"small"===e.size,[`${d}-compact`]:e.compact,[`${d}-rtl`]:"rtl"===r},f,o),m=(0,l.useContext)(s.aM),b=(0,l.useMemo)(()=>Object.assign(Object.assign({},m),{isFormItemInput:!1}),[m]);return p(l.createElement("span",{className:g,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},l.createElement(s.aM.Provider,{value:b},e.children)))},x.Search=P,x.TextArea=et,x.Password=j;var er=x},47673:function(e,t,r){r.d(t,{M1:function(){return c},Xy:function(){return d},bi:function(){return f},e5:function(){return y},ik:function(){return g},nz:function(){return i},pU:function(){return s},s7:function(){return m},x0:function(){return p}});var n=r(14747),o=r(80110),a=r(45503),l=r(67968);let i=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),s=e=>({borderColor:e.inputBorderHoverColor,borderInlineEndWidth:e.lineWidth}),c=e=>({borderColor:e.inputBorderHoverColor,boxShadow:`0 0 0 ${e.controlOutlineWidth}px ${e.controlOutline}`,borderInlineEndWidth:e.lineWidth,outline:0}),d=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},s((0,a.TS)(e,{inputBorderHoverColor:e.colorBorder})))}),u=e=>{let{inputPaddingVerticalLG:t,fontSizeLG:r,lineHeightLG:n,borderRadiusLG:o,inputPaddingHorizontalLG:a}=e;return{padding:`${t}px ${a}px`,fontSize:r,lineHeight:n,borderRadius:o}},p=e=>({padding:`${e.inputPaddingVerticalSM}px ${e.controlPaddingHorizontalSM-1}px`,borderRadius:e.borderRadiusSM}),f=(e,t)=>{let{componentCls:r,colorError:n,colorWarning:o,colorErrorOutline:l,colorWarningOutline:i,colorErrorBorderHover:s,colorWarningBorderHover:d}=e;return{[`&-status-error:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:n,"&:hover":{borderColor:s},"&:focus, &-focused":Object.assign({},c((0,a.TS)(e,{inputBorderActiveColor:n,inputBorderHoverColor:n,controlOutline:l}))),[`${r}-prefix, ${r}-suffix`]:{color:n}},[`&-status-warning:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:o,"&:hover":{borderColor:d},"&:focus, &-focused":Object.assign({},c((0,a.TS)(e,{inputBorderActiveColor:o,inputBorderHoverColor:o,controlOutline:i}))),[`${r}-prefix, ${r}-suffix`]:{color:o}}}},g=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${e.inputPaddingVertical}px ${e.inputPaddingHorizontal}px`,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,backgroundColor:e.colorBgContainer,backgroundImage:"none",borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:e.colorBorder,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},i(e.colorTextPlaceholder)),{"&:hover":Object.assign({},s(e)),"&:focus, &-focused":Object.assign({},c(e)),"&-disabled, &[disabled]":Object.assign({},d(e)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},u(e)),"&-sm":Object.assign({},p(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),m=e=>{let{componentCls:t,antCls:r}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},u(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},p(e)),[`&-lg ${r}-select-single ${r}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${r}-select-single ${r}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${e.inputPaddingHorizontal}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,textAlign:"center",backgroundColor:e.colorFillAlter,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${r}-select`]:{margin:`-${e.inputPaddingVertical+1}px -${e.inputPaddingHorizontal}px`,[`&${r}-select-single:not(${r}-select-customize-input)`]:{[`${r}-select-selector`]:{backgroundColor:"inherit",border:`${e.lineWidth}px ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${r}-select-selector`]:{color:e.colorPrimary}}},[`${r}-cascader-picker`]:{margin:`-9px -${e.inputPaddingHorizontal}px`,backgroundColor:"transparent",[`${r}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${t}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${r}-select ${r}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${r}-select ${r}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},(0,n.dF)()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[` - & > ${t}-affix-wrapper, - & > ${t}-number-affix-wrapper, - & > ${r}-picker-range - `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-e.lineWidth,borderInlineEndWidth:e.lineWidth},[`${t}`]:{float:"none"},[`& > ${r}-select > ${r}-select-selector, - & > ${r}-select-auto-complete ${t}, - & > ${r}-cascader-picker ${t}, - & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${r}-select-focused`]:{zIndex:1},[`& > ${r}-select > ${r}-select-arrow`]:{zIndex:1},[`& > *:first-child, - & > ${r}-select:first-child > ${r}-select-selector, - & > ${r}-select-auto-complete:first-child ${t}, - & > ${r}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child, - & > ${r}-select:last-child > ${r}-select-selector, - & > ${r}-cascader-picker:last-child ${t}, - & > ${r}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${r}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:-e.lineWidth,[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},b=e=>{let{componentCls:t,controlHeightSM:r,lineWidth:o}=e,a=(r-2*o-16)/2;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,n.Wf)(e)),g(e)),f(e,t)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:r,paddingTop:a,paddingBottom:a}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},h=e=>{let{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${e.inputAffixPadding}px`}}}},v=e=>{let{componentCls:t,inputAffixPadding:r,colorTextDescription:n,motionDurationSlow:o,colorIcon:a,colorIconHover:l,iconCls:i}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},g(e)),{display:"inline-flex",[`&:not(${t}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},s(e)),{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${t}[disabled]`]:{background:"transparent"}},[`> input${t}`]:{padding:0,fontSize:"inherit",border:"none",borderRadius:0,outline:"none","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:n},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:r},"&-suffix":{marginInlineStart:r}}}),h(e)),{[`${i}${t}-password-icon`]:{color:a,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:l}}}),f(e,`${t}-affix-wrapper`))}},x=e=>{let{componentCls:t,colorError:r,colorWarning:o,borderRadiusLG:a,borderRadiusSM:l}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},(0,n.Wf)(e)),m(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:a,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:l}},"&-status-error":{[`${t}-group-addon`]:{color:r,borderColor:r}},"&-status-warning":{[`${t}-group-addon`]:{color:o,borderColor:o}},"&-disabled":{[`${t}-group-addon`]:Object.assign({},d(e))},[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}})}},$=e=>{let{componentCls:t,antCls:r}=e,n=`${t}-search`;return{[n]:{[`${t}`]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,[`+ ${t}-group-addon ${n}-button:not(${r}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{borderRadius:0},[`${t}-lg`]:{lineHeight:e.lineHeightLG-2e-4},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${n}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius,borderEndStartRadius:0},[`${n}-button:not(${r}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${r}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${n}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${n}-button`]:{height:e.controlHeightLG},[`&-small ${n}-button`]:{height:e.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:-e.lineWidth,borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button, - > ${t}, - ${t}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}};function y(e){return(0,a.TS)(e,{inputAffixPadding:e.paddingXXS,inputPaddingVertical:Math.max(Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2*10)/10-e.lineWidth,3),inputPaddingVerticalLG:Math.ceil((e.controlHeightLG-e.fontSizeLG*e.lineHeightLG)/2*10)/10-e.lineWidth,inputPaddingVerticalSM:Math.max(Math.round((e.controlHeightSM-e.fontSize*e.lineHeight)/2*10)/10-e.lineWidth,0),inputPaddingHorizontal:e.paddingSM-e.lineWidth,inputPaddingHorizontalSM:e.paddingXS-e.lineWidth,inputPaddingHorizontalLG:e.controlPaddingHorizontal-e.lineWidth,inputBorderHoverColor:e.colorPrimaryHover,inputBorderActiveColor:e.colorPrimaryHover})}let w=e=>{let{componentCls:t,paddingLG:r}=e,n=`${t}-textarea`;return{[n]:{position:"relative","&-show-count":{[`> ${t}`]:{height:"100%"},[`${t}-data-count`]:{position:"absolute",bottom:-e.fontSize*e.lineHeight,insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${t}`]:{paddingInlineEnd:r}},[`&-affix-wrapper${n}-has-feedback`]:{[`${t}`]:{paddingInlineEnd:r}},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none","&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,insetBlockStart:e.paddingXS},[`${n}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.inputPaddingHorizontal,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}};t.ZP=(0,l.Z)("Input",e=>{let t=y(e);return[b(t),w(t),v(t),x(t),$(t),(0,o.c)(t)]})},67656:function(e,t,r){r.d(t,{Q:function(){return u},Z:function(){return v}});var n=r(87462),o=r(1413),a=r(4942),l=r(71002),i=r(94184),s=r.n(i),c=r(67294),d=r(87887),u=function(e){var t=e.inputElement,r=e.prefixCls,i=e.prefix,u=e.suffix,p=e.addonBefore,f=e.addonAfter,g=e.className,m=e.style,b=e.disabled,h=e.readOnly,v=e.focused,x=e.triggerFocus,$=e.allowClear,y=e.value,w=e.handleReset,E=e.hidden,S=e.classes,C=e.classNames,O=e.dataAttrs,z=e.styles,R=e.components,j=(null==R?void 0:R.affixWrapper)||"span",Z=(null==R?void 0:R.groupWrapper)||"span",I=(null==R?void 0:R.wrapper)||"span",H=(null==R?void 0:R.groupAddon)||"span",M=(0,c.useRef)(null),P=(0,c.cloneElement)(t,{value:y,hidden:E,className:s()(null===(N=t.props)||void 0===N?void 0:N.className,!(0,d.X3)(e)&&!(0,d.He)(e)&&g)||null,style:(0,o.Z)((0,o.Z)({},null===(k=t.props)||void 0===k?void 0:k.style),(0,d.X3)(e)||(0,d.He)(e)?{}:m)});if((0,d.X3)(e)){var N,k,A,B="".concat(r,"-affix-wrapper"),T=s()(B,(A={},(0,a.Z)(A,"".concat(B,"-disabled"),b),(0,a.Z)(A,"".concat(B,"-focused"),v),(0,a.Z)(A,"".concat(B,"-readonly"),h),(0,a.Z)(A,"".concat(B,"-input-with-clear-btn"),u&&$&&y),A),!(0,d.He)(e)&&g,null==S?void 0:S.affixWrapper,null==C?void 0:C.affixWrapper),W=(u||$)&&c.createElement("span",{className:s()("".concat(r,"-suffix"),null==C?void 0:C.suffix),style:null==z?void 0:z.suffix},function(){if(!$)return null;var e,t=!b&&!h&&y,n="".concat(r,"-clear-icon"),o="object"===(0,l.Z)($)&&null!=$&&$.clearIcon?$.clearIcon:"✖";return c.createElement("span",{onClick:w,onMouseDown:function(e){return e.preventDefault()},className:s()(n,(e={},(0,a.Z)(e,"".concat(n,"-hidden"),!t),(0,a.Z)(e,"".concat(n,"-has-suffix"),!!u),e)),role:"button",tabIndex:-1},o)}(),u);P=c.createElement(j,(0,n.Z)({className:T,style:(0,o.Z)((0,o.Z)({},(0,d.He)(e)?void 0:m),null==z?void 0:z.affixWrapper),hidden:!(0,d.He)(e)&&E,onClick:function(e){var t;null!==(t=M.current)&&void 0!==t&&t.contains(e.target)&&(null==x||x())}},null==O?void 0:O.affixWrapper,{ref:M}),i&&c.createElement("span",{className:s()("".concat(r,"-prefix"),null==C?void 0:C.prefix),style:null==z?void 0:z.prefix},i),(0,c.cloneElement)(t,{value:y,hidden:null}),W)}if((0,d.He)(e)){var L="".concat(r,"-group"),D="".concat(L,"-addon"),F=s()("".concat(r,"-wrapper"),L,null==S?void 0:S.wrapper),V=s()("".concat(r,"-group-wrapper"),g,null==S?void 0:S.group);return c.createElement(Z,{className:V,style:m,hidden:E},c.createElement(I,{className:F},p&&c.createElement(H,{className:D},p),(0,c.cloneElement)(P,{hidden:null}),f&&c.createElement(H,{className:D},f)))}return P},p=r(74902),f=r(97685),g=r(45987),m=r(21770),b=r(98423),h=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","type","classes","classNames","styles"],v=(0,c.forwardRef)(function(e,t){var r,i=e.autoComplete,v=e.onChange,x=e.onFocus,$=e.onBlur,y=e.onPressEnter,w=e.onKeyDown,E=e.prefixCls,S=void 0===E?"rc-input":E,C=e.disabled,O=e.htmlSize,z=e.className,R=e.maxLength,j=e.suffix,Z=e.showCount,I=e.type,H=e.classes,M=e.classNames,P=e.styles,N=(0,g.Z)(e,h),k=(0,m.Z)(e.defaultValue,{value:e.value}),A=(0,f.Z)(k,2),B=A[0],T=A[1],W=(0,c.useState)(!1),L=(0,f.Z)(W,2),D=L[0],F=L[1],V=(0,c.useRef)(null),X=function(e){V.current&&(0,d.nH)(V.current,e)};return(0,c.useImperativeHandle)(t,function(){return{focus:X,blur:function(){var e;null===(e=V.current)||void 0===e||e.blur()},setSelectionRange:function(e,t,r){var n;null===(n=V.current)||void 0===n||n.setSelectionRange(e,t,r)},select:function(){var e;null===(e=V.current)||void 0===e||e.select()},input:V.current}}),(0,c.useEffect)(function(){F(function(e){return(!e||!C)&&e})},[C]),c.createElement(u,(0,n.Z)({},N,{prefixCls:S,className:z,inputElement:(r=(0,b.Z)(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","classes","htmlSize","styles","classNames"]),c.createElement("input",(0,n.Z)({autoComplete:i},r,{onChange:function(t){void 0===e.value&&T(t.target.value),V.current&&(0,d.rJ)(V.current,t,v)},onFocus:function(e){F(!0),null==x||x(e)},onBlur:function(e){F(!1),null==$||$(e)},onKeyDown:function(e){y&&"Enter"===e.key&&y(e),null==w||w(e)},className:s()(S,(0,a.Z)({},"".concat(S,"-disabled"),C),null==M?void 0:M.input),style:null==P?void 0:P.input,ref:V,size:O,type:void 0===I?"text":I}))),handleReset:function(e){T(""),X(),V.current&&(0,d.rJ)(V.current,e,v)},value:(0,d.D7)(B),focused:D,triggerFocus:X,suffix:function(){var e=Number(R)>0;if(j||Z){var t=(0,d.D7)(B),r=(0,p.Z)(t).length,n="object"===(0,l.Z)(Z)?Z.formatter({value:t,count:r,maxLength:R}):"".concat(r).concat(e?" / ".concat(R):"");return c.createElement(c.Fragment,null,!!Z&&c.createElement("span",{className:s()("".concat(S,"-show-count-suffix"),(0,a.Z)({},"".concat(S,"-show-count-has-suffix"),!!j),null==M?void 0:M.count),style:(0,o.Z)({},null==P?void 0:P.count)},n),j)}return null}(),disabled:C,classes:H,classNames:M,styles:P}))})},87887:function(e,t,r){function n(e){return!!(e.addonBefore||e.addonAfter)}function o(e){return!!(e.prefix||e.suffix||e.allowClear)}function a(e,t,r,n){if(r){var o=t;if("click"===t.type){var a=e.cloneNode(!0);o=Object.create(t,{target:{value:a},currentTarget:{value:a}}),a.value="",r(o);return}if(void 0!==n){o=Object.create(t,{target:{value:e},currentTarget:{value:e}}),e.value=n,r(o);return}r(o)}}function l(e,t){if(e){e.focus(t);var r=(t||{}).cursor;if(r){var n=e.value.length;switch(r){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(n,n);break;default:e.setSelectionRange(0,n)}}}}function i(e){return null==e?"":String(e)}r.d(t,{D7:function(){return i},He:function(){return n},X3:function(){return o},nH:function(){return l},rJ:function(){return a}})}}]); \ No newline at end of file diff --git a/dbgpt/app/static/_next/static/chunks/810-84757da754c6f3fc.js b/dbgpt/app/static/_next/static/chunks/810-84757da754c6f3fc.js new file mode 100644 index 000000000..a35c6bc33 --- /dev/null +++ b/dbgpt/app/static/_next/static/chunks/810-84757da754c6f3fc.js @@ -0,0 +1,16 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[810],{6171:function(e,t,n){n.d(t,{Z:function(){return l}});var i=n(87462),o=n(67294),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},a=n(84089),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,i.Z)({},e,{ref:t,icon:r}))})},25378:function(e,t,n){var i=n(67294),o=n(8410),r=n(57838),a=n(74443);t.Z=function(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],t=(0,i.useRef)({}),n=(0,r.Z)(),l=(0,a.Z)();return(0,o.Z)(()=>{let i=l.subscribe(i=>{t.current=i,e&&n()});return()=>l.unsubscribe(i)},[]),t.current}},81647:function(e,t,n){n.d(t,{Z:function(){return F}});var i=n(87462),o=n(67294),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},a=n(84089),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,i.Z)({},e,{ref:t,icon:r}))}),s={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},c=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,i.Z)({},e,{ref:t,icon:s}))}),p=n(6171),u=n(18073),m=n(94184),d=n.n(m),g=n(4942),h=n(1413),v=n(15671),b=n(43144),f=n(32531),S=n(73568),C=n(64217),$={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},x=function(e){(0,f.Z)(n,e);var t=(0,S.Z)(n);function n(){var e;(0,v.Z)(this,n);for(var i=arguments.length,o=Array(i),r=0;r=0||t.relatedTarget.className.indexOf("".concat(r,"-item"))>=0)||o(e.getValidValue()))},e.go=function(t){""!==e.state.goInputText&&(t.keyCode===$.ENTER||"click"===t.type)&&(e.setState({goInputText:""}),e.props.quickGo(e.getValidValue()))},e}return(0,b.Z)(n,[{key:"getPageSizeOptions",value:function(){var e=this.props,t=e.pageSize,n=e.pageSizeOptions;return n.some(function(e){return e.toString()===t.toString()})?n:n.concat([t.toString()]).sort(function(e,t){return(Number.isNaN(Number(e))?0:Number(e))-(Number.isNaN(Number(t))?0:Number(t))})}},{key:"render",value:function(){var e=this,t=this.props,n=t.pageSize,i=t.locale,r=t.rootPrefixCls,a=t.changeSize,l=t.quickGo,s=t.goButton,c=t.selectComponentClass,p=t.buildOptionText,u=t.selectPrefixCls,m=t.disabled,d=this.state.goInputText,g="".concat(r,"-options"),h=null,v=null,b=null;if(!a&&!l)return null;var f=this.getPageSizeOptions();if(a&&c){var S=f.map(function(t,n){return o.createElement(c.Option,{key:n,value:t.toString()},(p||e.buildOptionText)(t))});h=o.createElement(c,{disabled:m,prefixCls:u,showSearch:!1,className:"".concat(g,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(n||f[0]).toString(),onChange:this.changeSize,getPopupContainer:function(e){return e.parentNode},"aria-label":i.page_size,defaultOpen:!1},S)}return l&&(s&&(b="boolean"==typeof s?o.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:m,className:"".concat(g,"-quick-jumper-button")},i.jump_to_confirm):o.createElement("span",{onClick:this.go,onKeyUp:this.go},s)),v=o.createElement("div",{className:"".concat(g,"-quick-jumper")},i.jump_to,o.createElement("input",{disabled:m,type:"text",value:d,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":i.page}),i.page,b)),o.createElement("li",{className:"".concat(g)},h,v)}}]),n}(o.Component);x.defaultProps={pageSizeOptions:["10","20","50","100"]};var y=function(e){var t,n=e.rootPrefixCls,i=e.page,r=e.active,a=e.className,l=e.showTitle,s=e.onClick,c=e.onKeyPress,p=e.itemRender,u="".concat(n,"-item"),m=d()(u,"".concat(u,"-").concat(i),(t={},(0,g.Z)(t,"".concat(u,"-active"),r),(0,g.Z)(t,"".concat(u,"-disabled"),!i),(0,g.Z)(t,e.className,a),t)),h=p(i,"page",o.createElement("a",{rel:"nofollow"},i));return h?o.createElement("li",{title:l?i.toString():null,className:m,onClick:function(){s(i)},onKeyPress:function(e){c(e,s,i)},tabIndex:0},h):null};function k(){}function E(e){var t=Number(e);return"number"==typeof t&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function N(e,t,n){var i=void 0===e?t.pageSize:e;return Math.floor((n.total-1)/i)+1}var z=function(e){(0,f.Z)(n,e);var t=(0,S.Z)(n);function n(e){(0,v.Z)(this,n),(i=t.call(this,e)).paginationNode=o.createRef(),i.getJumpPrevPage=function(){return Math.max(1,i.state.current-(i.props.showLessItems?3:5))},i.getJumpNextPage=function(){return Math.min(N(void 0,i.state,i.props),i.state.current+(i.props.showLessItems?3:5))},i.getItemIcon=function(e,t){var n=i.props.prefixCls,r=e||o.createElement("button",{type:"button","aria-label":t,className:"".concat(n,"-item-link")});return"function"==typeof e&&(r=o.createElement(e,(0,h.Z)({},i.props))),r},i.isValid=function(e){var t=i.props.total;return E(e)&&e!==i.state.current&&E(t)&&t>0},i.shouldDisplayQuickJumper=function(){var e=i.props,t=e.showQuickJumper;return!(e.total<=i.state.pageSize)&&t},i.handleKeyDown=function(e){(e.keyCode===$.ARROW_UP||e.keyCode===$.ARROW_DOWN)&&e.preventDefault()},i.handleKeyUp=function(e){var t=i.getValidValue(e);t!==i.state.currentInputValue&&i.setState({currentInputValue:t}),e.keyCode===$.ENTER?i.handleChange(t):e.keyCode===$.ARROW_UP?i.handleChange(t-1):e.keyCode===$.ARROW_DOWN&&i.handleChange(t+1)},i.handleBlur=function(e){var t=i.getValidValue(e);i.handleChange(t)},i.changePageSize=function(e){var t=i.state.current,n=N(e,i.state,i.props);t=t>n?n:t,0===n&&(t=i.state.current),"number"!=typeof e||("pageSize"in i.props||i.setState({pageSize:e}),"current"in i.props||i.setState({current:t,currentInputValue:t})),i.props.onShowSizeChange(t,e),"onChange"in i.props&&i.props.onChange&&i.props.onChange(t,e)},i.handleChange=function(e){var t=i.props,n=t.disabled,o=t.onChange,r=i.state,a=r.pageSize,l=r.current,s=r.currentInputValue;if(i.isValid(e)&&!n){var c=N(void 0,i.state,i.props),p=e;return e>c?p=c:e<1&&(p=1),"current"in i.props||i.setState({current:p}),p!==s&&i.setState({currentInputValue:p}),o(p,a),p}return l},i.prev=function(){i.hasPrev()&&i.handleChange(i.state.current-1)},i.next=function(){i.hasNext()&&i.handleChange(i.state.current+1)},i.jumpPrev=function(){i.handleChange(i.getJumpPrevPage())},i.jumpNext=function(){i.handleChange(i.getJumpNextPage())},i.hasPrev=function(){return i.state.current>1},i.hasNext=function(){return i.state.current2?n-2:0),o=2;o=n?n:Number(t)}},{key:"getShowSizeChanger",value:function(){var e=this.props,t=e.showSizeChanger,n=e.total,i=e.totalBoundaryShowSizeChanger;return void 0!==t?t:n>i}},{key:"render",value:function(){var e=this.props,t=e.prefixCls,n=e.className,r=e.style,a=e.disabled,l=e.hideOnSinglePage,s=e.total,c=e.locale,p=e.showQuickJumper,u=e.showLessItems,m=e.showTitle,h=e.showTotal,v=e.simple,b=e.itemRender,f=e.showPrevNextJumpers,S=e.jumpPrevIcon,$=e.jumpNextIcon,k=e.selectComponentClass,E=e.selectPrefixCls,z=e.pageSizeOptions,I=this.state,P=I.current,O=I.pageSize,w=I.currentInputValue;if(!0===l&&s<=O)return null;var D=N(void 0,this.state,this.props),T=[],j=null,M=null,B=null,Z=null,A=null,_=p&&p.goButton,R=u?1:2,H=P-1>0?P-1:0,L=P+1s?s:P*O]));if(v){_&&(A="boolean"==typeof _?o.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},c.jump_to_confirm):o.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},_),A=o.createElement("li",{title:m?"".concat(c.jump_to).concat(P,"/").concat(D):null,className:"".concat(t,"-simple-pager")},A));var W=this.renderPrev(H);return o.createElement("ul",(0,i.Z)({className:d()(t,"".concat(t,"-simple"),(0,g.Z)({},"".concat(t,"-disabled"),a),n),style:r,ref:this.paginationNode},V),X,W?o.createElement("li",{title:m?c.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:d()("".concat(t,"-prev"),(0,g.Z)({},"".concat(t,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},W):null,o.createElement("li",{title:m?"".concat(P,"/").concat(D):null,className:"".concat(t,"-simple-pager")},o.createElement("input",{type:"text",value:w,disabled:a,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),o.createElement("span",{className:"".concat(t,"-slash")},"/"),D),o.createElement("li",{title:m?c.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:d()("".concat(t,"-next"),(0,g.Z)({},"".concat(t,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(L)),A)}if(D<=3+2*R){var K={locale:c,rootPrefixCls:t,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:m,itemRender:b};D||T.push(o.createElement(y,(0,i.Z)({},K,{key:"noPager",page:1,className:"".concat(t,"-item-disabled")})));for(var G=1;G<=D;G+=1){var J=P===G;T.push(o.createElement(y,(0,i.Z)({},K,{key:G,page:G,active:J})))}}else{var U=u?c.prev_3:c.prev_5,F=u?c.next_3:c.next_5,q=b(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(S,"prev page")),Q=b(this.getJumpNextPage(),"jump-next",this.getItemIcon($,"next page"));f&&(j=q?o.createElement("li",{title:m?U:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:d()("".concat(t,"-jump-prev"),(0,g.Z)({},"".concat(t,"-jump-prev-custom-icon"),!!S))},q):null,M=Q?o.createElement("li",{title:m?F:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:d()("".concat(t,"-jump-next"),(0,g.Z)({},"".concat(t,"-jump-next-custom-icon"),!!$))},Q):null),Z=o.createElement(y,{locale:c,last:!0,rootPrefixCls:t,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:D,page:D,active:!1,showTitle:m,itemRender:b}),B=o.createElement(y,{locale:c,rootPrefixCls:t,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:m,itemRender:b});var Y=Math.max(1,P-R),ee=Math.min(P+R,D);P-1<=R&&(ee=1+2*R),D-P<=R&&(Y=D-2*R);for(var et=Y;et<=ee;et+=1){var en=P===et;T.push(o.createElement(y,{locale:c,rootPrefixCls:t,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:et,page:et,active:en,showTitle:m,itemRender:b}))}P-1>=2*R&&3!==P&&(T[0]=(0,o.cloneElement)(T[0],{className:"".concat(t,"-item-after-jump-prev")}),T.unshift(j)),D-P>=2*R&&P!==D-2&&(T[T.length-1]=(0,o.cloneElement)(T[T.length-1],{className:"".concat(t,"-item-before-jump-next")}),T.push(M)),1!==Y&&T.unshift(B),ee!==D&&T.push(Z)}var ei=!this.hasPrev()||!D,eo=!this.hasNext()||!D,er=this.renderPrev(H),ea=this.renderNext(L);return o.createElement("ul",(0,i.Z)({className:d()(t,n,(0,g.Z)({},"".concat(t,"-disabled"),a)),style:r,ref:this.paginationNode},V),X,er?o.createElement("li",{title:m?c.prev_page:null,onClick:this.prev,tabIndex:ei?null:0,onKeyPress:this.runIfEnterPrev,className:d()("".concat(t,"-prev"),(0,g.Z)({},"".concat(t,"-disabled"),ei)),"aria-disabled":ei},er):null,T,ea?o.createElement("li",{title:m?c.next_page:null,onClick:this.next,tabIndex:eo?null:0,onKeyPress:this.runIfEnterNext,className:d()("".concat(t,"-next"),(0,g.Z)({},"".concat(t,"-disabled"),eo)),"aria-disabled":eo},ea):null,o.createElement(x,{disabled:a,locale:c,rootPrefixCls:t,selectComponentClass:k,selectPrefixCls:E,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:P,pageSize:O,pageSizeOptions:z,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:_}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n={};if("current"in e&&(n.current=e.current,e.current!==t.current&&(n.currentInputValue=n.current)),"pageSize"in e&&e.pageSize!==t.pageSize){var i=t.current,o=N(e.pageSize,t,e);i=i>o?o:i,"current"in e||(n.current=i,n.currentInputValue=i),n.pageSize=e.pageSize}return n}}]),n}(o.Component);z.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:k,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:k,locale:{items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"},style:{},itemRender:function(e,t,n){return n},totalBoundaryShowSizeChanger:50};var I=n(62906),P=n(53124),O=n(98675),w=n(25378),D=n(10110),T=n(51009);let j=e=>o.createElement(T.default,Object.assign({},e,{showSearch:!0,size:"small"})),M=e=>o.createElement(T.default,Object.assign({},e,{showSearch:!0,size:"middle"}));j.Option=T.default.Option,M.Option=T.default.Option;var B=n(47673),Z=n(14747),A=n(67968),_=n(45503);let R=e=>{let{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}},[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{[`&${t}-disabled ${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},H=e=>{let{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:`${e.itemSizeSM}px`},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:`${e.itemSizeSM-2}px`},[`&${t}-mini:not(${t}-disabled) ${t}-item:not(${t}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:`${e.itemSizeSM}px`},[`&${t}-mini:not(${t}-disabled)`]:{[`${t}-prev, ${t}-next`]:{[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}}},[` + &${t}-mini ${t}-prev ${t}-item-link, + &${t}-mini ${t}-next ${t}-item-link + `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:`${e.itemSizeSM}px`}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:`${e.itemSizeSM}px`},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:`${e.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,B.x0)(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},L=e=>{let{componentCls:t}=e;return{[` + &${t}-simple ${t}-prev, + &${t}-simple ${t}-next + `]:{height:e.itemSizeSM,lineHeight:`${e.itemSizeSM}px`,verticalAlign:"top",[`${t}-item-link`]:{height:e.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.itemSizeSM,lineHeight:`${e.itemSizeSM}px`}}},[`&${t}-simple ${t}-simple-pager`]:{display:"inline-block",height:e.itemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:e.marginXS,padding:`0 ${e.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:"none",transition:`border-color ${e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${e.inputOutlineOffset}px 0 ${e.controlOutlineWidth}px ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},V=e=>{let{componentCls:t}=e;return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[` + ${t}-prev, + ${t}-jump-prev, + ${t}-jump-next + `]:{marginInlineEnd:e.marginXS},[` + ${t}-prev, + ${t}-next, + ${t}-jump-prev, + ${t}-jump-next + `]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:`${e.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:`${e.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},(0,B.ik)(e)),{width:1.25*e.controlHeightLG,height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},X=e=>{let{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:`${e.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${e.paginationItemPaddingInline}px`,color:e.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}}}},W=e=>{let{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Z.Wf)(e)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.itemSize,marginInlineEnd:e.marginXS,lineHeight:`${e.itemSize-2}px`,verticalAlign:"middle"}}),X(e)),V(e)),L(e)),H(e)),R(e)),{[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:"none"}}}),[`&${e.componentCls}-rtl`]:{direction:"rtl"}}},K=e=>{let{componentCls:t}=e;return{[`${t}${t}-disabled:not(${t}-mini)`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}:not(${t}-mini)`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},G=e=>{let{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},(0,Z.Qy)(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},(0,Z.oN)(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Object.assign({},(0,Z.oN)(e))}}}};var J=(0,A.Z)("Pagination",e=>{let t=(0,_.TS)(e,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:e.marginXXS/2,paginationMiniQuickJumperInputWidth:1.1*e.controlHeightLG,paginationItemPaddingInline:1.5*e.marginXXS,paginationEllipsisLetterSpacing:e.marginXXS/2,paginationSlashMarginInlineStart:e.marginXXS,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,B.e5)(e));return[W(t),G(t),e.wireframe&&K(t)]},e=>({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBgContainer,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0})),U=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,i=Object.getOwnPropertySymbols(e);ot.indexOf(i[o])&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]]);return n},F=e=>{let{prefixCls:t,selectPrefixCls:n,className:i,rootClassName:r,style:a,size:s,locale:m,selectComponentClass:g,responsive:h,showSizeChanger:v}=e,b=U(e,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:f}=(0,w.Z)(h),{getPrefixCls:S,direction:C,pagination:$={}}=o.useContext(P.E_),x=S("pagination",t),[y,k]=J(x),E=null!=v?v:$.showSizeChanger,N=o.useMemo(()=>{let e=o.createElement("span",{className:`${x}-item-ellipsis`},"•••"),t=o.createElement("button",{className:`${x}-item-link`,type:"button",tabIndex:-1},"rtl"===C?o.createElement(u.Z,null):o.createElement(p.Z,null)),n=o.createElement("button",{className:`${x}-item-link`,type:"button",tabIndex:-1},"rtl"===C?o.createElement(p.Z,null):o.createElement(u.Z,null)),i=o.createElement("a",{className:`${x}-item-link`},o.createElement("div",{className:`${x}-item-container`},"rtl"===C?o.createElement(c,{className:`${x}-item-link-icon`}):o.createElement(l,{className:`${x}-item-link-icon`}),e)),r=o.createElement("a",{className:`${x}-item-link`},o.createElement("div",{className:`${x}-item-container`},"rtl"===C?o.createElement(l,{className:`${x}-item-link-icon`}):o.createElement(c,{className:`${x}-item-link-icon`}),e));return{prevIcon:t,nextIcon:n,jumpPrevIcon:i,jumpNextIcon:r}},[C,x]),[T]=(0,D.Z)("Pagination",I.Z),B=Object.assign(Object.assign({},T),m),Z=(0,O.Z)(s),A="small"===Z||!!(f&&!Z&&h),_=S("select",n),R=d()({[`${x}-mini`]:A,[`${x}-rtl`]:"rtl"===C},null==$?void 0:$.className,i,r,k),H=Object.assign(Object.assign({},null==$?void 0:$.style),a);return y(o.createElement(z,Object.assign({},N,b,{style:H,prefixCls:x,selectPrefixCls:_,className:R,selectComponentClass:g||(A?j:M),locale:B,showSizeChanger:E})))}},75081:function(e,t,n){n.d(t,{Z:function(){return $}});var i=n(94184),o=n.n(i),r=n(98423),a=n(67294),l=n(96159),s=n(53124),c=n(23183),p=n(14747),u=n(67968),m=n(45503);let d=new c.E4("antSpinMove",{to:{opacity:1}}),g=new c.E4("antRotate",{to:{transform:"rotate(405deg)"}}),h=e=>({[`${e.componentCls}`]:Object.assign(Object.assign({},(0,p.Wf)(e)),{position:"absolute",display:"none",color:e.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"static",display:"inline-block",opacity:1},"&-nested-loading":{position:"relative",[`> div > ${e.componentCls}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${e.componentCls}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:-e.spinDotSize/2},[`${e.componentCls}-text`]:{position:"absolute",top:"50%",width:"100%",paddingTop:(e.spinDotSize-e.fontSize)/2+2,textShadow:`0 1px 2px ${e.colorBgContainer}`,fontSize:e.fontSize},[`&${e.componentCls}-show-text ${e.componentCls}-dot`]:{marginTop:-(e.spinDotSize/2)-10},"&-sm":{[`${e.componentCls}-dot`]:{margin:-e.spinDotSizeSM/2},[`${e.componentCls}-text`]:{paddingTop:(e.spinDotSizeSM-e.fontSize)/2+2},[`&${e.componentCls}-show-text ${e.componentCls}-dot`]:{marginTop:-(e.spinDotSizeSM/2)-10}},"&-lg":{[`${e.componentCls}-dot`]:{margin:-(e.spinDotSizeLG/2)},[`${e.componentCls}-text`]:{paddingTop:(e.spinDotSizeLG-e.fontSize)/2+2},[`&${e.componentCls}-show-text ${e.componentCls}-dot`]:{marginTop:-(e.spinDotSizeLG/2)-10}}},[`${e.componentCls}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${e.componentCls}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${e.componentCls}-dot`]:{position:"relative",display:"inline-block",fontSize:e.spinDotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:(e.spinDotSize-e.marginXXS/2)/2,height:(e.spinDotSize-e.marginXXS/2)/2,backgroundColor:e.colorPrimary,borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:d,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:g,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&-sm ${e.componentCls}-dot`]:{fontSize:e.spinDotSizeSM,i:{width:(e.spinDotSizeSM-e.marginXXS/2)/2,height:(e.spinDotSizeSM-e.marginXXS/2)/2}},[`&-lg ${e.componentCls}-dot`]:{fontSize:e.spinDotSizeLG,i:{width:(e.spinDotSizeLG-e.marginXXS)/2,height:(e.spinDotSizeLG-e.marginXXS)/2}},[`&${e.componentCls}-show-text ${e.componentCls}-text`]:{display:"block"}})});var v=(0,u.Z)("Spin",e=>{let t=(0,m.TS)(e,{spinDotDefault:e.colorTextDescription,spinDotSize:e.controlHeightLG/2,spinDotSizeSM:.35*e.controlHeightLG,spinDotSizeLG:e.controlHeight});return[h(t)]},{contentHeight:400}),b=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,i=Object.getOwnPropertySymbols(e);ot.indexOf(i[o])&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]]);return n};let f=null,S=e=>{let{spinPrefixCls:t,spinning:n=!0,delay:i=0,className:c,rootClassName:p,size:u="default",tip:m,wrapperClassName:d,style:g,children:h,hashId:v}=e,S=b(e,["spinPrefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","hashId"]),[C,$]=a.useState(()=>n&&(!n||!i||!!isNaN(Number(i))));a.useEffect(()=>{if(n){var e;let t=function(e,t,n){var i,o=n||{},r=o.noTrailing,a=void 0!==r&&r,l=o.noLeading,s=void 0!==l&&l,c=o.debounceMode,p=void 0===c?void 0:c,u=!1,m=0;function d(){i&&clearTimeout(i)}function g(){for(var n=arguments.length,o=Array(n),r=0;re?s?(m=Date.now(),a||(i=setTimeout(p?h:g,e))):g():!0!==a&&(i=setTimeout(p?h:g,void 0===p?e-c:e)))}return g.cancel=function(e){var t=(e||{}).upcomingOnly;d(),u=!(void 0!==t&&t)},g}(i,()=>{$(!0)},{debounceMode:!1!==(void 0!==(e=({}).atBegin)&&e)});return t(),()=>{var e;null===(e=null==t?void 0:t.cancel)||void 0===e||e.call(t)}}$(!1)},[i,n]);let x=a.useMemo(()=>void 0!==h,[h]),{direction:y,spin:k}=a.useContext(s.E_),E=o()(t,null==k?void 0:k.className,{[`${t}-sm`]:"small"===u,[`${t}-lg`]:"large"===u,[`${t}-spinning`]:C,[`${t}-show-text`]:!!m,[`${t}-rtl`]:"rtl"===y},c,p,v),N=o()(`${t}-container`,{[`${t}-blur`]:C}),z=(0,r.Z)(S,["indicator","prefixCls"]),I=Object.assign(Object.assign({},null==k?void 0:k.style),g),P=a.createElement("div",Object.assign({},z,{style:I,className:E,"aria-live":"polite","aria-busy":C}),function(e,t){let{indicator:n}=t,i=`${e}-dot`;return null===n?null:(0,l.l$)(n)?(0,l.Tm)(n,{className:o()(n.props.className,i)}):(0,l.l$)(f)?(0,l.Tm)(f,{className:o()(f.props.className,i)}):a.createElement("span",{className:o()(i,`${e}-dot-spin`)},a.createElement("i",{className:`${e}-dot-item`,key:1}),a.createElement("i",{className:`${e}-dot-item`,key:2}),a.createElement("i",{className:`${e}-dot-item`,key:3}),a.createElement("i",{className:`${e}-dot-item`,key:4}))}(t,e),m&&x?a.createElement("div",{className:`${t}-text`},m):null);return x?a.createElement("div",Object.assign({},z,{className:o()(`${t}-nested-loading`,d,v)}),C&&a.createElement("div",{key:"loading"},P),a.createElement("div",{className:N,key:"container"},h)):P},C=e=>{let{prefixCls:t}=e,{getPrefixCls:n}=a.useContext(s.E_),i=n("spin",t),[o,r]=v(i),l=Object.assign(Object.assign({},e),{spinPrefixCls:i,hashId:r});return o(a.createElement(S,Object.assign({},l)))};C.setDefaultIndicator=e=>{f=e};var $=C}}]); \ No newline at end of file diff --git a/dbgpt/app/static/_next/static/chunks/861-78929b4f98dbbfd6.js b/dbgpt/app/static/_next/static/chunks/861-78929b4f98dbbfd6.js new file mode 100644 index 000000000..a7011d0ce --- /dev/null +++ b/dbgpt/app/static/_next/static/chunks/861-78929b4f98dbbfd6.js @@ -0,0 +1,4 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[861],{27496:function(e,t,n){n.d(t,{Z:function(){return l}});var i=n(87462),r=n(67294),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M931.4 498.9L94.9 79.5c-3.4-1.7-7.3-2.1-11-1.2a15.99 15.99 0 00-11.7 19.3l86.2 352.2c1.3 5.3 5.2 9.6 10.4 11.3l147.7 50.7-147.6 50.7c-5.2 1.8-9.1 6-10.3 11.3L72.2 926.5c-.9 3.7-.5 7.6 1.2 10.9 3.9 7.9 13.5 11.1 21.5 7.2l836.5-417c3.1-1.5 5.6-4.1 7.2-7.1 3.9-8 .7-17.6-7.2-21.6zM170.8 826.3l50.3-205.6 295.2-101.3c2.3-.8 4.2-2.6 5-5 1.4-4.2-.8-8.7-5-10.2L221.1 403 171 198.2l628 314.9-628.2 313.2z"}}]},name:"send",theme:"outlined"},o=n(84089),l=r.forwardRef(function(e,t){return r.createElement(o.Z,(0,i.Z)({},e,{ref:t,icon:a}))})},1375:function(e,t,n){async function i(e,t){let n;let i=e.getReader();for(;!(n=await i.read()).done;)t(n.value)}function r(){return{data:"",event:"",id:"",retry:void 0}}n.d(t,{a:function(){return o},L:function(){return c}});var a=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,i=Object.getOwnPropertySymbols(e);rt.indexOf(i[r])&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]]);return n};let o="text/event-stream",l="last-event-id";function c(e,t){var{signal:n,headers:c,onopen:d,onmessage:m,onclose:u,onerror:p,openWhenHidden:g,fetch:f}=t,$=a(t,["signal","headers","onopen","onmessage","onclose","onerror","openWhenHidden","fetch"]);return new Promise((t,a)=>{let b;let h=Object.assign({},c);function y(){b.abort(),document.hidden||w()}h.accept||(h.accept=o),g||document.addEventListener("visibilitychange",y);let v=1e3,x=0;function E(){document.removeEventListener("visibilitychange",y),window.clearTimeout(x),b.abort()}null==n||n.addEventListener("abort",()=>{E(),t()});let S=null!=f?f:window.fetch,O=null!=d?d:s;async function w(){var n,o;b=new AbortController;try{let n,a,c,s;let d=await S(e,Object.assign(Object.assign({},$),{headers:h,signal:b.signal}));await O(d),await i(d.body,(o=function(e,t,n){let i=r(),a=new TextDecoder;return function(o,l){if(0===o.length)null==n||n(i),i=r();else if(l>0){let n=a.decode(o.subarray(0,l)),r=l+(32===o[l+1]?2:1),c=a.decode(o.subarray(r));switch(n){case"data":i.data=i.data?i.data+"\n"+c:c;break;case"event":i.event=c;break;case"id":e(i.id=c);break;case"retry":let s=parseInt(c,10);isNaN(s)||t(i.retry=s)}}}}(e=>{e?h[l]=e:delete h[l]},e=>{v=e},m),s=!1,function(e){void 0===n?(n=e,a=0,c=-1):n=function(e,t){let n=new Uint8Array(e.length+t.length);return n.set(e),n.set(t,e.length),n}(n,e);let t=n.length,i=0;for(;a{let{icon:t,description:n,prefixCls:i,className:a}=e,o=r.createElement("div",{className:`${i}-icon`},r.createElement($,null));return r.createElement("div",{onClick:e.onClick,onFocus:e.onFocus,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,className:s()(a,`${i}-content`)},t||n?r.createElement(r.Fragment,null,t&&r.createElement("div",{className:`${i}-icon`},t),n&&r.createElement("div",{className:`${i}-description`},n)):o)});let h=r.createContext(void 0),{Provider:y}=h;var v=n(23183),x=n(14747),E=n(16932),S=n(93590),O=n(67968),w=n(45503),k=e=>0===e?0:e-Math.sqrt(Math.pow(e,2)/2);let C=e=>{let{componentCls:t,floatButtonSize:n,motionDurationSlow:i,motionEaseInOutCirc:r}=e,a=`${t}-group`,o=new v.E4("antFloatButtonMoveDownIn",{"0%":{transform:`translate3d(0, ${n}px, 0)`,transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),l=new v.E4("antFloatButtonMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:`translate3d(0, ${n}px, 0)`,transformOrigin:"0 0",opacity:0}});return[{[`${a}-wrap`]:Object.assign({},(0,S.R)(`${a}-wrap`,o,l,i,!0))},{[`${a}-wrap`]:{[` + &${a}-wrap-enter, + &${a}-wrap-appear + `]:{opacity:0,animationTimingFunction:r},[`&${a}-wrap-leave`]:{animationTimingFunction:r}}}]},B=e=>{let{antCls:t,componentCls:n,floatButtonSize:i,margin:r,borderRadiusLG:a,borderRadiusSM:o,badgeOffset:l,floatButtonBodyPadding:c}=e,s=`${n}-group`;return{[s]:Object.assign(Object.assign({},(0,x.Wf)(e)),{zIndex:99,display:"block",border:"none",position:"fixed",width:i,height:"auto",boxShadow:"none",minHeight:i,insetInlineEnd:e.floatButtonInsetInlineEnd,insetBlockEnd:e.floatButtonInsetBlockEnd,borderRadius:a,[`${s}-wrap`]:{zIndex:-1,display:"block",position:"relative",marginBottom:r},[`&${s}-rtl`]:{direction:"rtl"},[n]:{position:"static"}}),[`${s}-circle`]:{[`${n}-circle:not(:last-child)`]:{marginBottom:e.margin,[`${n}-body`]:{width:i,height:i,borderRadius:"50%"}}},[`${s}-square`]:{[`${n}-square`]:{borderRadius:0,padding:0,"&:first-child":{borderStartStartRadius:a,borderStartEndRadius:a},"&:last-child":{borderEndStartRadius:a,borderEndEndRadius:a},"&:not(:last-child)":{borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},[`${t}-badge`]:{[`${t}-badge-count`]:{top:-(c+l),insetInlineEnd:-(c+l)}}},[`${s}-wrap`]:{display:"block",borderRadius:a,boxShadow:e.boxShadowSecondary,[`${n}-square`]:{boxShadow:"none",marginTop:0,borderRadius:0,padding:c,"&:first-child":{borderStartStartRadius:a,borderStartEndRadius:a},"&:last-child":{borderEndStartRadius:a,borderEndEndRadius:a},"&:not(:last-child)":{borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},[`${n}-body`]:{width:e.floatButtonBodySize,height:e.floatButtonBodySize}}}},[`${s}-circle-shadow`]:{boxShadow:"none"},[`${s}-square-shadow`]:{boxShadow:e.boxShadowSecondary,[`${n}-square`]:{boxShadow:"none",padding:c,[`${n}-body`]:{width:e.floatButtonBodySize,height:e.floatButtonBodySize,borderRadius:o}}}}},j=e=>{let{antCls:t,componentCls:n,floatButtonBodyPadding:i,floatButtonIconSize:r,floatButtonSize:a,borderRadiusLG:o,badgeOffset:l,dotOffsetInSquare:c,dotOffsetInCircle:s}=e;return{[n]:Object.assign(Object.assign({},(0,x.Wf)(e)),{border:"none",position:"fixed",cursor:"pointer",zIndex:99,width:a,height:a,insetInlineEnd:e.floatButtonInsetInlineEnd,insetBlockEnd:e.floatButtonInsetBlockEnd,boxShadow:e.boxShadowSecondary,"&-pure":{position:"relative",inset:"auto"},"&:empty":{display:"none"},[`${t}-badge`]:{width:"100%",height:"100%",[`${t}-badge-count`]:{transform:"translate(0, 0)",transformOrigin:"center",top:-l,insetInlineEnd:-l}},[`${n}-body`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",transition:`all ${e.motionDurationMid}`,[`${n}-content`]:{overflow:"hidden",textAlign:"center",minHeight:a,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",padding:`${i/2}px ${i}px`,[`${n}-icon`]:{textAlign:"center",margin:"auto",width:r,fontSize:r,lineHeight:1}}}}),[`${n}-rtl`]:{direction:"rtl"},[`${n}-circle`]:{height:a,borderRadius:"50%",[`${t}-badge`]:{[`${t}-badge-dot`]:{top:s,insetInlineEnd:s}},[`${n}-body`]:{borderRadius:"50%"}},[`${n}-square`]:{height:"auto",minHeight:a,borderRadius:o,[`${t}-badge`]:{[`${t}-badge-dot`]:{top:c,insetInlineEnd:c}},[`${n}-body`]:{height:"auto",borderRadius:o}},[`${n}-default`]:{backgroundColor:e.floatButtonBackgroundColor,transition:`background-color ${e.motionDurationMid}`,[`${n}-body`]:{backgroundColor:e.floatButtonBackgroundColor,transition:`background-color ${e.motionDurationMid}`,"&:hover":{backgroundColor:e.colorFillContent},[`${n}-content`]:{[`${n}-icon`]:{color:e.colorText},[`${n}-description`]:{display:"flex",alignItems:"center",lineHeight:`${e.fontSizeLG}px`,color:e.colorText,fontSize:e.fontSizeSM}}}},[`${n}-primary`]:{backgroundColor:e.colorPrimary,[`${n}-body`]:{backgroundColor:e.colorPrimary,transition:`background-color ${e.motionDurationMid}`,"&:hover":{backgroundColor:e.colorPrimaryHover},[`${n}-content`]:{[`${n}-icon`]:{color:e.colorTextLightSolid},[`${n}-description`]:{display:"flex",alignItems:"center",lineHeight:`${e.fontSizeLG}px`,color:e.colorTextLightSolid,fontSize:e.fontSizeSM}}}}}};var z=(0,O.Z)("FloatButton",e=>{let{colorTextLightSolid:t,colorBgElevated:n,controlHeightLG:i,marginXXL:r,marginLG:a,fontSize:o,fontSizeIcon:l,controlItemBgHover:c,paddingXXS:s,borderRadiusLG:d}=e,m=(0,w.TS)(e,{floatButtonBackgroundColor:n,floatButtonColor:t,floatButtonHoverBackgroundColor:c,floatButtonFontSize:o,floatButtonIconSize:1.5*l,floatButtonSize:i,floatButtonInsetBlockEnd:r,floatButtonInsetInlineEnd:a,floatButtonBodySize:i-2*s,floatButtonBodyPadding:s,badgeOffset:1.5*s,dotOffsetInCircle:k(i/2),dotOffsetInSquare:k(d)});return[B(m),j(m),(0,E.J$)(e),C(m)]}),I=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,i=Object.getOwnPropertySymbols(e);rt.indexOf(i[r])&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]]);return n};let N="float-btn",M=r.forwardRef((e,t)=>{let{prefixCls:n,className:i,rootClassName:a,type:o="default",shape:l="circle",icon:c,description:d,tooltip:f,badge:$={}}=e,y=I(e,["prefixCls","className","rootClassName","type","shape","icon","description","tooltip","badge"]),{getPrefixCls:v,direction:x}=(0,r.useContext)(p.E_),E=(0,r.useContext)(h),S=v(N,n),[O,w]=z(S),k=s()(w,S,i,a,`${S}-${o}`,`${S}-${E||l}`,{[`${S}-rtl`]:"rtl"===x}),C=(0,r.useMemo)(()=>(0,m.Z)($,["title","children","status","text"]),[$]),B=(0,r.useMemo)(()=>({prefixCls:S,description:d,icon:c,type:o}),[S,d,c,o]),j=r.createElement("div",{className:`${S}-body`},r.createElement(b,Object.assign({},B)));return"badge"in e&&(j=r.createElement(u.Z,Object.assign({},C),j)),"tooltip"in e&&(j=r.createElement(g.Z,{title:f,placement:"rtl"===x?"right":"left"},j)),O(e.href?r.createElement("a",Object.assign({ref:t},y,{className:k}),j):r.createElement("button",Object.assign({ref:t},y,{className:k,type:"button"}),j))});var P=n(66367),H=n(58375),L=n(74902),Z=n(75164),R=function(e){let t;let n=n=>()=>{t=null,e.apply(void 0,(0,L.Z)(n))},i=function(){if(null==t){for(var e=arguments.length,i=Array(e),r=0;r{Z.Z.cancel(t),t=null},i},T=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,i=Object.getOwnPropertySymbols(e);rt.indexOf(i[r])&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]]);return n},W=(0,r.memo)(e=>{let{prefixCls:t,className:n,type:i="default",shape:a="circle",visibilityHeight:o=400,icon:c=r.createElement(l,null),target:m,onClick:u,duration:g=450}=e,f=T(e,["prefixCls","className","type","shape","visibilityHeight","icon","target","onClick","duration"]),[$,b]=(0,r.useState)(0===o),y=(0,r.useRef)(null),v=()=>y.current&&y.current.ownerDocument?y.current.ownerDocument:window,x=R(e=>{let t=(0,P.Z)(e.target,!0);b(t>=o)});(0,r.useEffect)(()=>{let e=m||v,t=e();return x({target:t}),null==t||t.addEventListener("scroll",x),()=>{x.cancel(),null==t||t.removeEventListener("scroll",x)}},[m]);let E=e=>{(0,H.Z)(0,{getContainer:m||v,duration:g}),null==u||u(e)},{getPrefixCls:S}=(0,r.useContext)(p.E_),O=S(N,t),w=S(),[k]=z(O),C=(0,r.useContext)(h),B=Object.assign({prefixCls:O,icon:c,type:i,shape:C||a},f);return k(r.createElement(d.ZP,{visible:$,motionName:`${w}-fade`},e=>{let{className:t}=e;return r.createElement(M,Object.assign({ref:y},B,{onClick:E,className:s()(n,t)}))}))}),F=n(97937),A=n(21770),D=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,i=Object.getOwnPropertySymbols(e);rt.indexOf(i[r])&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]]);return n},_=(0,r.memo)(e=>{let{prefixCls:t,className:n,style:i,shape:a="circle",type:o="default",icon:l=r.createElement($,null),closeIcon:c=r.createElement(F.Z,null),description:m,trigger:u,children:g,onOpenChange:f,open:b}=e,h=D(e,["prefixCls","className","style","shape","type","icon","closeIcon","description","trigger","children","onOpenChange","open"]),{direction:v,getPrefixCls:x}=(0,r.useContext)(p.E_),E=x(N,t),[S,O]=z(E),w=`${E}-group`,k=s()(w,O,n,{[`${w}-rtl`]:"rtl"===v,[`${w}-${a}`]:a,[`${w}-${a}-shadow`]:!u}),C=s()(O,`${w}-wrap`),[B,j]=(0,A.Z)(!1,{value:b}),I=(0,r.useRef)(null),P=(0,r.useRef)(null),H=(0,r.useMemo)(()=>"hover"===u?{onMouseEnter(){j(!0),null==f||f(!0)},onMouseLeave(){j(!1),null==f||f(!1)}}:{},[u]),L=()=>{j(e=>(null==f||f(!e),!e))},Z=(0,r.useCallback)(e=>{var t,n;if(null===(t=I.current)||void 0===t?void 0:t.contains(e.target)){(null===(n=P.current)||void 0===n?void 0:n.contains(e.target))&&L();return}j(!1),null==f||f(!1)},[u]);return(0,r.useEffect)(()=>{if("click"===u)return document.addEventListener("click",Z),()=>{document.removeEventListener("click",Z)}},[u]),S(r.createElement(y,{value:a},r.createElement("div",Object.assign({ref:I,className:k,style:i},H),u&&["click","hover"].includes(u)?r.createElement(r.Fragment,null,r.createElement(d.ZP,{visible:B,motionName:`${w}-wrap`},e=>{let{className:t}=e;return r.createElement("div",{className:s()(t,C)},g)}),r.createElement(M,Object.assign({ref:P,type:o,shape:a,icon:B?c:l,description:m,"aria-label":e["aria-label"]},h))):g)))}),G=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,i=Object.getOwnPropertySymbols(e);rt.indexOf(i[r])&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]]);return n};let q=e=>{var{backTop:t}=e,n=G(e,["backTop"]);return t?r.createElement(W,Object.assign({},n,{visibilityHeight:0})):r.createElement(M,Object.assign({},n))};M.BackTop=W,M.Group=_,M._InternalPanelDoNotUseOrYouWillBeFired=e=>{var{className:t,items:n}=e,i=G(e,["className","items"]);let{prefixCls:a}=i,{getPrefixCls:o}=r.useContext(p.E_),l=o(N,a),c=`${l}-pure`;return n?r.createElement(_,Object.assign({className:s()(t,c)},i),n.map((e,t)=>r.createElement(q,Object.assign({key:t},e)))):r.createElement(q,Object.assign({className:s()(t,c)},i))};var V=M},2487:function(e,t,n){n.d(t,{Z:function(){return j}});var i=n(74902),r=n(94184),a=n.n(r),o=n(67294),l=n(38780),c=n(74443),s=n(53124),d=n(88258),m=n(92820),u=n(25378),p=n(81647),g=n(75081),f=n(96159),$=n(21584);let b=o.createContext({});b.Consumer;var h=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,i=Object.getOwnPropertySymbols(e);rt.indexOf(i[r])&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]]);return n};let y=(0,o.forwardRef)((e,t)=>{let n;var{prefixCls:i,children:r,actions:l,extra:c,className:d,colStyle:m}=e,u=h(e,["prefixCls","children","actions","extra","className","colStyle"]);let{grid:p,itemLayout:g}=(0,o.useContext)(b),{getPrefixCls:y}=(0,o.useContext)(s.E_),v=y("list",i),x=l&&l.length>0&&o.createElement("ul",{className:`${v}-item-action`,key:"actions"},l.map((e,t)=>o.createElement("li",{key:`${v}-item-action-${t}`},e,t!==l.length-1&&o.createElement("em",{className:`${v}-item-action-split`})))),E=p?"div":"li",S=o.createElement(E,Object.assign({},u,p?{}:{ref:t},{className:a()(`${v}-item`,{[`${v}-item-no-flex`]:!("vertical"===g?!!c:(o.Children.forEach(r,e=>{"string"==typeof e&&(n=!0)}),!(n&&o.Children.count(r)>1)))},d)}),"vertical"===g&&c?[o.createElement("div",{className:`${v}-item-main`,key:"content"},r,x),o.createElement("div",{className:`${v}-item-extra`,key:"extra"},c)]:[r,x,(0,f.Tm)(c,{key:"extra"})]);return p?o.createElement($.Z,{ref:t,flex:1,style:m},S):S});y.Meta=e=>{var{prefixCls:t,className:n,avatar:i,title:r,description:l}=e,c=h(e,["prefixCls","className","avatar","title","description"]);let{getPrefixCls:d}=(0,o.useContext)(s.E_),m=d("list",t),u=a()(`${m}-item-meta`,n),p=o.createElement("div",{className:`${m}-item-meta-content`},r&&o.createElement("h4",{className:`${m}-item-meta-title`},r),l&&o.createElement("div",{className:`${m}-item-meta-description`},l));return o.createElement("div",Object.assign({},c,{className:u}),i&&o.createElement("div",{className:`${m}-item-meta-avatar`},i),(r||l)&&p)};var v=n(14747),x=n(67968),E=n(45503);let S=e=>{let{listBorderedCls:t,componentCls:n,paddingLG:i,margin:r,itemPaddingSM:a,itemPaddingLG:o,marginLG:l,borderRadiusLG:c}=e;return{[`${t}`]:{border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:c,[`${n}-header,${n}-footer,${n}-item`]:{paddingInline:i},[`${n}-pagination`]:{margin:`${r}px ${l}px`}},[`${t}${n}-sm`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:a}},[`${t}${n}-lg`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:o}}}},O=e=>{let{componentCls:t,screenSM:n,screenMD:i,marginLG:r,marginSM:a,margin:o}=e;return{[`@media screen and (max-width:${i})`]:{[`${t}`]:{[`${t}-item`]:{[`${t}-item-action`]:{marginInlineStart:r}}},[`${t}-vertical`]:{[`${t}-item`]:{[`${t}-item-extra`]:{marginInlineStart:r}}}},[`@media screen and (max-width: ${n})`]:{[`${t}`]:{[`${t}-item`]:{flexWrap:"wrap",[`${t}-action`]:{marginInlineStart:a}}},[`${t}-vertical`]:{[`${t}-item`]:{flexWrap:"wrap-reverse",[`${t}-item-main`]:{minWidth:e.contentWidth},[`${t}-item-extra`]:{margin:`auto auto ${o}px`}}}}}},w=e=>{let{componentCls:t,antCls:n,controlHeight:i,minHeight:r,paddingSM:a,marginLG:o,padding:l,itemPadding:c,colorPrimary:s,itemPaddingSM:d,itemPaddingLG:m,paddingXS:u,margin:p,colorText:g,colorTextDescription:f,motionDurationSlow:$,lineWidth:b,headerBg:h,footerBg:y,emptyTextPadding:x,metaMarginBottom:E,avatarMarginRight:S,titleMarginBottom:O,descriptionFontSize:w}=e,k={};return["start","center","end"].forEach(e=>{k[`&-align-${e}`]={textAlign:e}}),{[`${t}`]:Object.assign(Object.assign({},(0,v.Wf)(e)),{position:"relative","*":{outline:"none"},[`${t}-header`]:{background:h},[`${t}-footer`]:{background:y},[`${t}-header, ${t}-footer`]:{paddingBlock:a},[`${t}-pagination`]:Object.assign(Object.assign({marginBlockStart:o},k),{[`${n}-pagination-options`]:{textAlign:"start"}}),[`${t}-spin`]:{minHeight:r,textAlign:"center"},[`${t}-items`]:{margin:0,padding:0,listStyle:"none"},[`${t}-item`]:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:c,color:g,[`${t}-item-meta`]:{display:"flex",flex:1,alignItems:"flex-start",maxWidth:"100%",[`${t}-item-meta-avatar`]:{marginInlineEnd:S},[`${t}-item-meta-content`]:{flex:"1 0",width:0,color:g},[`${t}-item-meta-title`]:{margin:`0 0 ${e.marginXXS}px 0`,color:g,fontSize:e.fontSize,lineHeight:e.lineHeight,"> a":{color:g,transition:`all ${$}`,"&:hover":{color:s}}},[`${t}-item-meta-description`]:{color:f,fontSize:w,lineHeight:e.lineHeight}},[`${t}-item-action`]:{flex:"0 0 auto",marginInlineStart:e.marginXXL,padding:0,fontSize:0,listStyle:"none","& > li":{position:"relative",display:"inline-block",padding:`0 ${u}px`,color:f,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"center","&:first-child":{paddingInlineStart:0}},[`${t}-item-action-split`]:{position:"absolute",insetBlockStart:"50%",insetInlineEnd:0,width:b,height:Math.ceil(e.fontSize*e.lineHeight)-2*e.marginXXS,transform:"translateY(-50%)",backgroundColor:e.colorSplit}}},[`${t}-empty`]:{padding:`${l}px 0`,color:f,fontSize:e.fontSizeSM,textAlign:"center"},[`${t}-empty-text`]:{padding:x,color:e.colorTextDisabled,fontSize:e.fontSize,textAlign:"center"},[`${t}-item-no-flex`]:{display:"block"}}),[`${t}-grid ${n}-col > ${t}-item`]:{display:"block",maxWidth:"100%",marginBlockEnd:p,paddingBlock:0,borderBlockEnd:"none"},[`${t}-vertical ${t}-item`]:{alignItems:"initial",[`${t}-item-main`]:{display:"block",flex:1},[`${t}-item-extra`]:{marginInlineStart:o},[`${t}-item-meta`]:{marginBlockEnd:E,[`${t}-item-meta-title`]:{marginBlockStart:0,marginBlockEnd:O,color:g,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}},[`${t}-item-action`]:{marginBlockStart:l,marginInlineStart:"auto","> li":{padding:`0 ${l}px`,"&:first-child":{paddingInlineStart:0}}}},[`${t}-split ${t}-item`]:{borderBlockEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBlockEnd:"none"}},[`${t}-split ${t}-header`]:{borderBlockEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},[`${t}-split${t}-empty ${t}-footer`]:{borderTop:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},[`${t}-loading ${t}-spin-nested-loading`]:{minHeight:i},[`${t}-split${t}-something-after-last-item ${n}-spin-container > ${t}-items > ${t}-item:last-child`]:{borderBlockEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},[`${t}-lg ${t}-item`]:{padding:m},[`${t}-sm ${t}-item`]:{padding:d},[`${t}:not(${t}-vertical)`]:{[`${t}-item-no-flex`]:{[`${t}-item-action`]:{float:"right"}}}}};var k=(0,x.Z)("List",e=>{let t=(0,E.TS)(e,{listBorderedCls:`${e.componentCls}-bordered`,minHeight:e.controlHeightLG});return[w(t),S(t),O(t)]},e=>({contentWidth:220,itemPadding:`${e.paddingContentVertical}px 0`,itemPaddingSM:`${e.paddingContentVerticalSM}px ${e.paddingContentHorizontal}px`,itemPaddingLG:`${e.paddingContentVerticalLG}px ${e.paddingContentHorizontalLG}px`,headerBg:"transparent",footerBg:"transparent",emptyTextPadding:e.padding,metaMarginBottom:e.padding,avatarMarginRight:e.padding,titleMarginBottom:e.paddingSM,descriptionFontSize:e.fontSize})),C=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,i=Object.getOwnPropertySymbols(e);rt.indexOf(i[r])&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]]);return n};function B(e){var t,{pagination:n=!1,prefixCls:r,bordered:f=!1,split:$=!0,className:h,rootClassName:y,style:v,children:x,itemLayout:E,loadMore:S,grid:O,dataSource:w=[],size:B,header:j,footer:z,loading:I=!1,rowKey:N,renderItem:M,locale:P}=e,H=C(e,["pagination","prefixCls","bordered","split","className","rootClassName","style","children","itemLayout","loadMore","grid","dataSource","size","header","footer","loading","rowKey","renderItem","locale"]);let L=n&&"object"==typeof n?n:{},[Z,R]=o.useState(L.defaultCurrent||1),[T,W]=o.useState(L.defaultPageSize||10),{getPrefixCls:F,renderEmpty:A,direction:D,list:_}=o.useContext(s.E_),G=e=>(t,i)=>{var r;R(t),W(i),n&&n[e]&&(null===(r=null==n?void 0:n[e])||void 0===r||r.call(n,t,i))},q=G("onChange"),V=G("onShowSizeChange"),X=(e,t)=>{let n;return M?((n="function"==typeof N?N(e):N?e[N]:e.key)||(n=`list-item-${t}`),o.createElement(o.Fragment,{key:n},M(e,t))):null},J=F("list",r),[U,Y]=k(J),K=I;"boolean"==typeof K&&(K={spinning:K});let Q=K&&K.spinning,ee="";switch(B){case"large":ee="lg";break;case"small":ee="sm"}let et=a()(J,{[`${J}-vertical`]:"vertical"===E,[`${J}-${ee}`]:ee,[`${J}-split`]:$,[`${J}-bordered`]:f,[`${J}-loading`]:Q,[`${J}-grid`]:!!O,[`${J}-something-after-last-item`]:!!(S||n||z),[`${J}-rtl`]:"rtl"===D},null==_?void 0:_.className,h,y,Y),en=(0,l.Z)({current:1,total:0},{total:w.length,current:Z,pageSize:T},n||{}),ei=Math.ceil(en.total/en.pageSize);en.current>ei&&(en.current=ei);let er=n?o.createElement("div",{className:a()(`${J}-pagination`,`${J}-pagination-align-${null!==(t=null==en?void 0:en.align)&&void 0!==t?t:"end"}`)},o.createElement(p.Z,Object.assign({},en,{onChange:q,onShowSizeChange:V}))):null,ea=(0,i.Z)(w);n&&w.length>(en.current-1)*en.pageSize&&(ea=(0,i.Z)(w).splice((en.current-1)*en.pageSize,en.pageSize));let eo=Object.keys(O||{}).some(e=>["xs","sm","md","lg","xl","xxl"].includes(e)),el=(0,u.Z)(eo),ec=o.useMemo(()=>{for(let e=0;e{if(!O)return;let e=ec&&O[ec]?O[ec]:O.column;if(e)return{width:`${100/e}%`,maxWidth:`${100/e}%`}},[null==O?void 0:O.column,ec]),ed=Q&&o.createElement("div",{style:{minHeight:53}});if(ea.length>0){let e=ea.map((e,t)=>X(e,t));ed=O?o.createElement(m.Z,{gutter:O.gutter},o.Children.map(e,e=>o.createElement("div",{key:null==e?void 0:e.key,style:es},e))):o.createElement("ul",{className:`${J}-items`},e)}else x||Q||(ed=o.createElement("div",{className:`${J}-empty-text`},P&&P.emptyText||(null==A?void 0:A("List"))||o.createElement(d.Z,{componentName:"List"})));let em=en.position||"bottom",eu=o.useMemo(()=>({grid:O,itemLayout:E}),[JSON.stringify(O),E]);return U(o.createElement(b.Provider,{value:eu},o.createElement("div",Object.assign({style:Object.assign(Object.assign({},null==_?void 0:_.style),v),className:et},H),("top"===em||"both"===em)&&er,j&&o.createElement("div",{className:`${J}-header`},j),o.createElement(g.Z,Object.assign({},K),ed,x),z&&o.createElement("div",{className:`${J}-footer`},z),S||("bottom"===em||"both"===em)&&er)))}B.Item=y;var j=B}}]); \ No newline at end of file diff --git a/dbgpt/app/static/_next/static/chunks/924-166e5f7b5295d352.js b/dbgpt/app/static/_next/static/chunks/924-166e5f7b5295d352.js deleted file mode 100644 index 4f3bb5501..000000000 --- a/dbgpt/app/static/_next/static/chunks/924-166e5f7b5295d352.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[924],{75081:function(e,t,o){o.d(t,{Z:function(){return $}});var n=o(94184),i=o.n(n),r=o(98423),l=o(67294),a=o(96159),s=o(53124),c=o(23183),p=o(14747),d=o(67968),m=o(45503);let u=new c.E4("antSpinMove",{to:{opacity:1}}),g=new c.E4("antRotate",{to:{transform:"rotate(405deg)"}}),b=e=>({[`${e.componentCls}`]:Object.assign(Object.assign({},(0,p.Wf)(e)),{position:"absolute",display:"none",color:e.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"static",display:"inline-block",opacity:1},"&-nested-loading":{position:"relative",[`> div > ${e.componentCls}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${e.componentCls}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:-e.spinDotSize/2},[`${e.componentCls}-text`]:{position:"absolute",top:"50%",width:"100%",paddingTop:(e.spinDotSize-e.fontSize)/2+2,textShadow:`0 1px 2px ${e.colorBgContainer}`,fontSize:e.fontSize},[`&${e.componentCls}-show-text ${e.componentCls}-dot`]:{marginTop:-(e.spinDotSize/2)-10},"&-sm":{[`${e.componentCls}-dot`]:{margin:-e.spinDotSizeSM/2},[`${e.componentCls}-text`]:{paddingTop:(e.spinDotSizeSM-e.fontSize)/2+2},[`&${e.componentCls}-show-text ${e.componentCls}-dot`]:{marginTop:-(e.spinDotSizeSM/2)-10}},"&-lg":{[`${e.componentCls}-dot`]:{margin:-(e.spinDotSizeLG/2)},[`${e.componentCls}-text`]:{paddingTop:(e.spinDotSizeLG-e.fontSize)/2+2},[`&${e.componentCls}-show-text ${e.componentCls}-dot`]:{marginTop:-(e.spinDotSizeLG/2)-10}}},[`${e.componentCls}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${e.componentCls}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${e.componentCls}-dot`]:{position:"relative",display:"inline-block",fontSize:e.spinDotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:(e.spinDotSize-e.marginXXS/2)/2,height:(e.spinDotSize-e.marginXXS/2)/2,backgroundColor:e.colorPrimary,borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:u,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:g,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&-sm ${e.componentCls}-dot`]:{fontSize:e.spinDotSizeSM,i:{width:(e.spinDotSizeSM-e.marginXXS/2)/2,height:(e.spinDotSizeSM-e.marginXXS/2)/2}},[`&-lg ${e.componentCls}-dot`]:{fontSize:e.spinDotSizeLG,i:{width:(e.spinDotSizeLG-e.marginXXS)/2,height:(e.spinDotSizeLG-e.marginXXS)/2}},[`&${e.componentCls}-show-text ${e.componentCls}-text`]:{display:"block"}})});var f=(0,d.Z)("Spin",e=>{let t=(0,m.TS)(e,{spinDotDefault:e.colorTextDescription,spinDotSize:e.controlHeightLG/2,spinDotSizeSM:.35*e.controlHeightLG,spinDotSizeLG:e.controlHeight});return[b(t)]},{contentHeight:400}),h=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);it.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(o[n[i]]=e[n[i]]);return o};let S=null,y=e=>{let{spinPrefixCls:t,spinning:o=!0,delay:n=0,className:c,rootClassName:p,size:d="default",tip:m,wrapperClassName:u,style:g,children:b,hashId:f}=e,y=h(e,["spinPrefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","hashId"]),[C,$]=l.useState(()=>o&&(!o||!n||!!isNaN(Number(n))));l.useEffect(()=>{if(o){var e;let t=function(e,t,o){var n,i=o||{},r=i.noTrailing,l=void 0!==r&&r,a=i.noLeading,s=void 0!==a&&a,c=i.debounceMode,p=void 0===c?void 0:c,d=!1,m=0;function u(){n&&clearTimeout(n)}function g(){for(var o=arguments.length,i=Array(o),r=0;re?s?(m=Date.now(),l||(n=setTimeout(p?b:g,e))):g():!0!==l&&(n=setTimeout(p?b:g,void 0===p?e-c:e)))}return g.cancel=function(e){var t=(e||{}).upcomingOnly;u(),d=!(void 0!==t&&t)},g}(n,()=>{$(!0)},{debounceMode:!1!==(void 0!==(e=({}).atBegin)&&e)});return t(),()=>{var e;null===(e=null==t?void 0:t.cancel)||void 0===e||e.call(t)}}$(!1)},[n,o]);let v=l.useMemo(()=>void 0!==b,[b]),{direction:x,spin:k}=l.useContext(s.E_),O=i()(t,null==k?void 0:k.className,{[`${t}-sm`]:"small"===d,[`${t}-lg`]:"large"===d,[`${t}-spinning`]:C,[`${t}-show-text`]:!!m,[`${t}-rtl`]:"rtl"===x},c,p,f),D=i()(`${t}-container`,{[`${t}-blur`]:C}),E=(0,r.Z)(y,["indicator","prefixCls"]),z=Object.assign(Object.assign({},null==k?void 0:k.style),g),w=l.createElement("div",Object.assign({},E,{style:z,className:O,"aria-live":"polite","aria-busy":C}),function(e,t){let{indicator:o}=t,n=`${e}-dot`;return null===o?null:(0,a.l$)(o)?(0,a.Tm)(o,{className:i()(o.props.className,n)}):(0,a.l$)(S)?(0,a.Tm)(S,{className:i()(S.props.className,n)}):l.createElement("span",{className:i()(n,`${e}-dot-spin`)},l.createElement("i",{className:`${e}-dot-item`,key:1}),l.createElement("i",{className:`${e}-dot-item`,key:2}),l.createElement("i",{className:`${e}-dot-item`,key:3}),l.createElement("i",{className:`${e}-dot-item`,key:4}))}(t,e),m&&v?l.createElement("div",{className:`${t}-text`},m):null);return v?l.createElement("div",Object.assign({},E,{className:i()(`${t}-nested-loading`,u,f)}),C&&l.createElement("div",{key:"loading"},w),l.createElement("div",{className:D,key:"container"},b)):w},C=e=>{let{prefixCls:t}=e,{getPrefixCls:o}=l.useContext(s.E_),n=o("spin",t),[i,r]=f(n),a=Object.assign(Object.assign({},e),{spinPrefixCls:n,hashId:r});return i(l.createElement(y,Object.assign({},a)))};C.setDefaultIndicator=e=>{S=e};var $=C},66309:function(e,t,o){o.d(t,{Z:function(){return D}});var n=o(67294),i=o(97937),r=o(94184),l=o.n(r),a=o(98787),s=o(69760),c=o(45353),p=o(53124),d=o(14747),m=o(45503),u=o(67968);let g=e=>{let{paddingXXS:t,lineWidth:o,tagPaddingHorizontal:n,componentCls:i}=e,r=n-o;return{[i]:Object.assign(Object.assign({},(0,d.Wf)(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:r,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${i}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${i}-close-icon`]:{marginInlineStart:t-o,color:e.colorTextDescription,fontSize:e.tagIconSize,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${i}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${i}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:r}}),[`${i}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},b=e=>{let{lineWidth:t,fontSizeIcon:o}=e,n=e.fontSizeSM,i=`${e.lineHeightSM*n}px`,r=(0,m.TS)(e,{tagFontSize:n,tagLineHeight:i,tagIconSize:o-2*t,tagPaddingHorizontal:8,tagBorderlessBg:e.colorFillTertiary});return r},f=e=>({defaultBg:e.colorFillQuaternary,defaultColor:e.colorText});var h=(0,u.Z)("Tag",e=>{let t=b(e);return g(t)},f),S=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);it.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(o[n[i]]=e[n[i]]);return o},y=o(98719);let C=e=>(0,y.Z)(e,(t,o)=>{let{textColor:n,lightBorderColor:i,lightColor:r,darkColor:l}=o;return{[`${e.componentCls}-${t}`]:{color:n,background:r,borderColor:i,"&-inverse":{color:e.colorTextLightSolid,background:l,borderColor:l},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}});var $=(0,u.b)(["Tag","preset"],e=>{let t=b(e);return C(t)},f);let v=(e,t,o)=>{let n=function(e){if("string"!=typeof e)return e;let t=e.charAt(0).toUpperCase()+e.slice(1);return t}(o);return{[`${e.componentCls}-${t}`]:{color:e[`color${o}`],background:e[`color${n}Bg`],borderColor:e[`color${n}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}};var x=(0,u.b)(["Tag","status"],e=>{let t=b(e);return[v(t,"success","Success"),v(t,"processing","Info"),v(t,"error","Error"),v(t,"warning","Warning")]},f),k=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);it.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(o[n[i]]=e[n[i]]);return o};let O=n.forwardRef((e,t)=>{let{prefixCls:o,className:r,rootClassName:d,style:m,children:u,icon:g,color:b,onClose:f,closeIcon:S,closable:y,bordered:C=!0}=e,v=k(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:O,direction:D,tag:E}=n.useContext(p.E_),[z,w]=n.useState(!0);n.useEffect(()=>{"visible"in v&&w(v.visible)},[v.visible]);let N=(0,a.o2)(b),T=(0,a.yT)(b),j=N||T,I=Object.assign(Object.assign({backgroundColor:b&&!j?b:void 0},null==E?void 0:E.style),m),P=O("tag",o),[M,L]=h(P),X=l()(P,null==E?void 0:E.className,{[`${P}-${b}`]:j,[`${P}-has-color`]:b&&!j,[`${P}-hidden`]:!z,[`${P}-rtl`]:"rtl"===D,[`${P}-borderless`]:!C},r,d,L),B=e=>{e.stopPropagation(),null==f||f(e),e.defaultPrevented||w(!1)},[,H]=(0,s.Z)(y,S,e=>null===e?n.createElement(i.Z,{className:`${P}-close-icon`,onClick:B}):n.createElement("span",{className:`${P}-close-icon`,onClick:B},e),null,!1),G="function"==typeof v.onClick||u&&"a"===u.type,Z=g||null,_=Z?n.createElement(n.Fragment,null,Z,u&&n.createElement("span",null,u)):u,F=n.createElement("span",Object.assign({},v,{ref:t,className:X,style:I}),_,H,N&&n.createElement($,{key:"preset",prefixCls:P}),T&&n.createElement(x,{key:"status",prefixCls:P}));return M(G?n.createElement(c.Z,{component:"Tag"},F):F)});O.CheckableTag=e=>{let{prefixCls:t,className:o,checked:i,onChange:r,onClick:a}=e,s=S(e,["prefixCls","className","checked","onChange","onClick"]),{getPrefixCls:c}=n.useContext(p.E_),d=c("tag",t),[m,u]=h(d),g=l()(d,`${d}-checkable`,{[`${d}-checkable-checked`]:i},o,u);return m(n.createElement("span",Object.assign({},s,{className:g,onClick:e=>{null==r||r(!i),null==a||a(e)}})))};var D=O}}]); \ No newline at end of file diff --git a/dbgpt/app/static/_next/static/chunks/981-ff77d5cc3ab95298.js b/dbgpt/app/static/_next/static/chunks/981-ff77d5cc3ab95298.js deleted file mode 100644 index d271faa2d..000000000 --- a/dbgpt/app/static/_next/static/chunks/981-ff77d5cc3ab95298.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[981],{54929:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}});var r=(0,n(67294).createContext)({})},53014:function(e,t,n){"use strict";Object.defineProperty(t,"Z",{enumerable:!0,get:function(){return y}});var r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=f(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(n(67294)),o=l(n(94184)),i=n(75531),a=l(n(54929)),u=n(72479);function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e){return e&&e.__esModule?e:{default:e}}function f(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(f=function(e){return e?n:t})(e)}function d(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["className","component","viewBox","spin","rotate","tabIndex","onClick","children"]),m=r.useRef(),O=(0,i.useComposeRef)(m,t);(0,u.warning)(!!(l||v),"Should have `component` prop or `children`."),(0,u.useInsertStyles)(m);var w=r.useContext(a.default),j=w.prefixCls,x=void 0===j?"anticon":j,S=w.rootClassName,P=(0,o.default)(S,x,n),k=(0,o.default)(c({},"".concat(x,"-spin"),!!p)),M=s(d({},u.svgBaseProps),{className:k,style:y?{msTransform:"rotate(".concat(y,"deg)"),transform:"rotate(".concat(y,"deg)")}:void 0,viewBox:f});f||delete M.viewBox;var C=b;return void 0===C&&g&&(C=-1),r.createElement("span",s(d({role:"img"},h),{ref:O,tabIndex:C,onClick:g,className:P}),l?r.createElement(l,M,v):v?((0,u.warning)(!!f||1===r.Children.count(v)&&r.isValidElement(v)&&"use"===r.Children.only(v).type,"Make sure that you provide correct `viewBox` prop (default `0 0 1024 1024`) to the icon."),r.createElement("svg",s(d({},M),{viewBox:f}),v)):null)});p.displayName="AntdIcon";var y=p},72479:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{warning:function(){return s},isIconDefinition:function(){return p},normalizeAttrs:function(){return y},generate:function(){return function e(t,n,r){return r?u.default.createElement(t.tag,d({key:n},y(t.attrs),r),(t.children||[]).map(function(r,o){return e(r,"".concat(n,"-").concat(t.tag,"-").concat(o))})):u.default.createElement(t.tag,d({key:n},y(t.attrs)),(t.children||[]).map(function(r,o){return e(r,"".concat(n,"-").concat(t.tag,"-").concat(o))}))}},getSecondaryColor:function(){return b},normalizeTwoToneColors:function(){return g},svgBaseProps:function(){return v},iconStyles:function(){return h},useInsertStyles:function(){return m}});var r=n(16397),o=n(93399),i=n(63298),a=l(n(45520)),u=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=f(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(n(67294)),c=l(n(54929));function l(e){return e&&e.__esModule?e:{default:e}}function f(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(f=function(e){return e?n:t})(e)}function d(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r=e[n];return"class"===n?(t.className=r,delete t.class):(delete t[n],t[n.replace(/-(.)/g,function(e,t){return t.toUpperCase()})]=r),t},{})}function b(e){return(0,r.generate)(e)[0]}function g(e){return e?Array.isArray(e)?e:[e]:[]}var v={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},h="\n.anticon {\n display: inline-block;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n",m=function(e){var t=(0,u.useContext)(c.default),n=t.csp,r=t.prefixCls,a=h;r&&(a=a.replace(/anticon/g,r)),(0,u.useEffect)(function(){var t=e.current,r=(0,i.getShadowRoot)(t);(0,o.updateCSS)(a,"@ant-design-icons",{prepend:!0,csp:n,attachTo:r})},[])}},96074:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var r=n(94184),o=n.n(r),i=n(67294),a=n(53124),u=n(14747),c=n(67968),l=n(45503);let f=e=>{let{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:o}=e;return{[t]:Object.assign(Object.assign({},(0,u.Wf)(e)),{borderBlockStart:`${o}px solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",margin:`0 ${e.dividerVerticalGutterMargin}px`,verticalAlign:"middle",borderTop:0,borderInlineStart:`${o}px solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${e.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${e.dividerHorizontalWithTextGutterMargin}px 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${o}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:"5%"},"&::after":{width:"95%"}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:"95%"},"&::after":{width:"5%"}},[`${t}-inner-text`]:{display:"inline-block",padding:"0 1em"},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${o}px 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}};var d=(0,c.Z)("Divider",e=>{let t=(0,l.TS)(e,{dividerVerticalGutterMargin:e.marginXS,dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG});return[f(t)]},{sizePaddingEdgeHorizontal:0}),s=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},p=e=>{let{getPrefixCls:t,direction:n,divider:r}=i.useContext(a.E_),{prefixCls:u,type:c="horizontal",orientation:l="center",orientationMargin:f,className:p,rootClassName:y,children:b,dashed:g,plain:v,style:h}=e,m=s(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),O=t("divider",u),[w,j]=d(O),x=l.length>0?`-${l}`:l,S=!!b,P="left"===l&&null!=f,k="right"===l&&null!=f,M=o()(O,null==r?void 0:r.className,j,`${O}-${c}`,{[`${O}-with-text`]:S,[`${O}-with-text${x}`]:S,[`${O}-dashed`]:!!g,[`${O}-plain`]:!!v,[`${O}-rtl`]:"rtl"===n,[`${O}-no-default-orientation-margin-left`]:P,[`${O}-no-default-orientation-margin-right`]:k},p,y),C=i.useMemo(()=>"number"==typeof f?f:/^\d+$/.test(f)?Number(f):f,[f]),_=Object.assign(Object.assign({},P&&{marginLeft:C}),k&&{marginRight:C});return w(i.createElement("div",Object.assign({className:M,style:Object.assign(Object.assign({},null==r?void 0:r.style),h)},m,{role:"separator"}),b&&"vertical"!==c&&i.createElement("span",{className:`${O}-inner-text`,style:_},b)))}},19158:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return!!("undefined"!=typeof window&&window.document&&window.document.createElement)}},32191:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}},93399:function(e,t,n){"use strict";var r=n(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.clearContainerCache=function(){c.clear()},t.injectCSS=s,t.removeCSS=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=p(e,t);n&&f(t).removeChild(n)},t.updateCSS=function(e,t){var n,r,o,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!function(e,t){var n=c.get(e);if(!n||!(0,i.default)(document,n)){var r=s("",t),o=r.parentNode;c.set(e,o),e.removeChild(r)}}(f(a),a);var u=p(t,a);if(u)return null!==(n=a.csp)&&void 0!==n&&n.nonce&&u.nonce!==(null===(r=a.csp)||void 0===r?void 0:r.nonce)&&(u.nonce=null===(o=a.csp)||void 0===o?void 0:o.nonce),u.innerHTML!==e&&(u.innerHTML=e),u;var d=s(e,a);return d.setAttribute(l(a),t),d};var o=r(n(19158)),i=r(n(32191)),a="data-rc-order",u="data-rc-priority",c=new Map;function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):"rc-util-key"}function f(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function d(e){return Array.from((c.get(e)||e).children).filter(function(e){return"STYLE"===e.tagName})}function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!(0,o.default)())return null;var n=t.csp,r=t.prepend,i=t.priority,c=void 0===i?0:i,l="queue"===r?"prependQueue":r?"prepend":"append",s="prependQueue"===l,p=document.createElement("style");p.setAttribute(a,l),s&&c&&p.setAttribute(u,"".concat(c)),null!=n&&n.nonce&&(p.nonce=null==n?void 0:n.nonce),p.innerHTML=e;var y=f(t),b=y.firstChild;if(r){if(s){var g=d(y).filter(function(e){return!!["prepend","prependQueue"].includes(e.getAttribute(a))&&c>=Number(e.getAttribute(u)||0)});if(g.length)return y.insertBefore(p,g[g.length-1].nextSibling),p}y.insertBefore(p,b)}else y.appendChild(p);return p}function p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return d(f(t)).find(function(n){return n.getAttribute(l(t))===e})}},63298:function(e,t){"use strict";function n(e){var t;return null==e?void 0:null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}function r(e){return n(e) instanceof ShadowRoot}Object.defineProperty(t,"__esModule",{value:!0}),t.getShadowRoot=function(e){return r(e)?n(e):null},t.inShadow=r},67265:function(e,t,n){"use strict";var r=n(75263).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var r=o.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value};var o=r(n(67294))},75531:function(e,t,n){"use strict";var r=n(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.composeRef=l,t.fillRef=c,t.supportNodeRef=function(e){return!(!(0,i.isValidElement)(e)||(0,a.isFragment)(e))&&f(e)},t.supportRef=f,t.useComposeRef=function(){for(var e=arguments.length,t=Array(e),n=0;n=t||n<0||g&&r>=u}function x(){var e,n,r,i=o();if(b(i))return w(i);d=setTimeout(x,(e=i-p,n=i-h,r=t-e,g?l(r,u-n):r))}function w(e){return(d=void 0,v&&s)?y(e):(s=c=void 0,f)}function C(){var e,n=o(),r=b(n);if(s=arguments,c=this,p=n,r){if(void 0===d)return h=e=p,d=setTimeout(x,t),m?y(e):f;if(g)return clearTimeout(d),d=setTimeout(x,t),y(p)}return void 0===d&&(d=setTimeout(x,t)),f}return t=i(t)||0,r(n)&&(m=!!n.leading,u=(g="maxWait"in n)?a(i(n.maxWait)||0,t):u,v="trailing"in n?!!n.trailing:v),C.cancel=function(){void 0!==d&&clearTimeout(d),h=0,s=p=c=d=void 0},C.flush=function(){return void 0===d?f:w(o())},C}},13218:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},37005:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},33448:function(e,t,n){var r=n(44239),o=n(37005);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},7771:function(e,t,n){var r=n(55639);e.exports=function(){return r.Date.now()}},23493:function(e,t,n){var r=n(23279),o=n(13218);e.exports=function(e,t,n){var i=!0,a=!0;if("function"!=typeof e)throw TypeError("Expected a function");return o(n)&&(i="leading"in n?!!n.leading:i,a="trailing"in n?!!n.trailing:a),r(e,t,{leading:i,maxWait:t,trailing:a})}},14841:function(e,t,n){var r=n(27561),o=n(13218),i=n(33448),a=0/0,l=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return a;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=s.test(e);return n||c.test(e)?u(e.slice(2),n?2:8):l.test(e)?a:+e}},83454:function(e,t,n){"use strict";var r,o;e.exports=(null==(r=n.g.process)?void 0:r.env)&&"object"==typeof(null==(o=n.g.process)?void 0:o.env)?n.g.process:n(77663)},6840:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return n(48271)}])},41468:function(e,t,n){"use strict";n.d(t,{R:function(){return c},p:function(){return s}});var r=n(85893),o=n(67294),i=n(50489),a=n(577),l=n(39332);let s=(0,o.createContext)({scene:"",chatId:"",modelList:[],model:"",dbParam:void 0,dialogueList:[],agentList:[],setAgentList:()=>{},setModel:()=>{},setIsContract:()=>{},setIsMenuExpand:()=>{},setDbParam:()=>void 0,queryDialogueList:()=>{},refreshDialogList:()=>{},history:[],setHistory:()=>{},docId:void 0,setDocId:()=>{}}),c=e=>{var t,n,c;let{children:u}=e,f=(0,l.useSearchParams)(),d=null!==(t=null==f?void 0:f.get("id"))&&void 0!==t?t:"",p=null!==(n=null==f?void 0:f.get("scene"))&&void 0!==n?n:"",h=null!==(c=null==f?void 0:f.get("db_param"))&&void 0!==c?c:"",[m,g]=(0,o.useState)(!1),[v,y]=(0,o.useState)(""),[b,x]=(0,o.useState)("chat_dashboard"!==p),[w,C]=(0,o.useState)(h),[S,E]=(0,o.useState)([]),[$,O]=(0,o.useState)([]),[k,j]=(0,o.useState)(),{run:P,data:Z=[],refresh:_}=(0,a.Z)(async()=>{let[,e]=await (0,i.Vx)((0,i.iP)());return null!=e?e:[]},{manual:!0}),{data:A=[]}=(0,a.Z)(async()=>{let[,e]=await (0,i.Vx)((0,i.Vw)());return null!=e?e:[]});(0,o.useEffect)(()=>{y(A[0])},[A,null==A?void 0:A.length]);let M=(0,o.useMemo)(()=>Z.find(e=>e.conv_uid===d),[d,Z]);return(0,r.jsx)(s.Provider,{value:{isContract:m,isMenuExpand:b,scene:p,chatId:d,modelList:A,model:v,dbParam:w||h,dialogueList:Z,agentList:S,setAgentList:E,setModel:y,setIsContract:g,setIsMenuExpand:x,setDbParam:C,queryDialogueList:P,refreshDialogList:_,currentDialogue:M,history:$,setHistory:O,docId:k,setDocId:j},children:u})}},58989:function(e,t,n){"use strict";n.d(t,{Z:function(){return z}});let r={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class o{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.init(e,t)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||r,this.options=t,this.debug=t.debug}log(){for(var e=arguments.length,t=Array(e),n=0;n{this.observers[e]=this.observers[e]||[],this.observers[e].push(t)}),this}off(e,t){if(this.observers[e]){if(!t){delete this.observers[e];return}this.observers[e]=this.observers[e].filter(e=>e!==t)}}emit(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r{e(...n)})}if(this.observers["*"]){let t=[].concat(this.observers["*"]);t.forEach(t=>{t.apply(t,[e,...n])})}}}function l(){let e,t;let n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n}function s(e){return null==e?"":""+e}function c(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function o(){return!e||"string"==typeof e}let i="string"!=typeof t?[].concat(t):t.split(".");for(;i.length>1;){if(o())return{};let t=r(i.shift());!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{}}return o()?{}:{obj:e,k:r(i.shift())}}function u(e,t,n){let{obj:r,k:o}=c(e,t,Object);r[o]=n}function f(e,t){let{obj:n,k:r}=c(e,t);if(n)return n[r]}function d(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var p={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function h(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,e=>p[e]):e}let m=[" ",",","?","!",";"];function g(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(!e)return;if(e[t])return e[t];let r=t.split(n),o=e;for(let e=0;ee+i;)i++,l=o[a=r.slice(e,e+i).join(n)];if(void 0===l)return;if(null===l)return null;if(t.endsWith(a)){if("string"==typeof l)return l;if(a&&"string"==typeof l[a])return l[a]}let s=r.slice(e+i).join(n);if(s)return g(l,s,n);return}o=o[r[e]]}return o}function v(e){return e&&e.indexOf("_")>0?e.replace("_","-"):e}class y extends a{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){0>this.options.ns.indexOf(e)&&this.options.ns.push(e)}removeNamespaces(e){let t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,i=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure,a=[e,t];n&&"string"!=typeof n&&(a=a.concat(n)),n&&"string"==typeof n&&(a=a.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(a=e.split("."));let l=f(this.data,a);return l||!i||"string"!=typeof n?l:g(this.data&&this.data[e]&&this.data[e][t],n,o)}addResource(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},i=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator,a=[e,t];n&&(a=a.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(a=e.split("."),r=t,t=a[1]),this.addNamespaces(t),u(this.data,a,r),o.silent||this.emit("added",e,t,n,r)}addResources(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(let r in n)("string"==typeof n[r]||"[object Array]"===Object.prototype.toString.apply(n[r]))&&this.addResource(e,t,r,n[r],{silent:!0});r.silent||this.emit("added",e,t,n)}addResourceBundle(e,t,n,r,o){let i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},a=[e,t];e.indexOf(".")>-1&&(a=e.split("."),r=n,n=t,t=a[1]),this.addNamespaces(t);let l=f(this.data,a)||{};r?function e(t,n,r){for(let o in n)"__proto__"!==o&&"constructor"!==o&&(o in t?"string"==typeof t[o]||t[o]instanceof String||"string"==typeof n[o]||n[o]instanceof String?r&&(t[o]=n[o]):e(t[o],n[o],r):t[o]=n[o]);return t}(l,n,o):l={...l,...n},u(this.data,a,l),i.silent||this.emit("added",e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return void 0!==this.getResource(e,t)}getResourceBundle(e,t){return(t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI)?{...this.getResource(e,t)}:this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){let t=this.getDataByLanguage(e),n=t&&Object.keys(t)||[];return!!n.find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}}var b={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,o){return e.forEach(e=>{this.processors[e]&&(t=this.processors[e].process(t,n,r,o))}),t}};let x={};class w extends a{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(),function(e,t,n){e.forEach(e=>{t[e]&&(n[e]=t[e])})}(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=i.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;let n=this.resolve(e,t);return n&&void 0!==n.res}extractFromKey(e,t){let n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");let r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,o=t.ns||this.options.defaultNS||[],i=n&&e.indexOf(n)>-1,a=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!function(e,t,n){t=t||"",n=n||"";let r=m.filter(e=>0>t.indexOf(e)&&0>n.indexOf(e));if(0===r.length)return!0;let o=RegExp(`(${r.map(e=>"?"===e?"\\?":e).join("|")})`),i=!o.test(e);if(!i){let t=e.indexOf(n);t>0&&!o.test(e.substring(0,t))&&(i=!0)}return i}(e,n,r);if(i&&!a){let t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:o};let i=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(i[0])>-1)&&(o=i.shift()),e=i.join(r)}return"string"==typeof o&&(o=[o]),{key:e,namespaces:o}}translate(e,t,n){if("object"!=typeof t&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof t&&(t={...t}),t||(t={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);let r=void 0!==t.returnDetails?t.returnDetails:this.options.returnDetails,o=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,{key:i,namespaces:a}=this.extractFromKey(e[e.length-1],t),l=a[a.length-1],s=t.lng||this.language,c=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(s&&"cimode"===s.toLowerCase()){if(c){let e=t.nsSeparator||this.options.nsSeparator;return r?{res:`${l}${e}${i}`,usedKey:i,exactUsedKey:i,usedLng:s,usedNS:l}:`${l}${e}${i}`}return r?{res:i,usedKey:i,exactUsedKey:i,usedLng:s,usedNS:l}:i}let u=this.resolve(e,t),f=u&&u.res,d=u&&u.usedKey||i,p=u&&u.exactUsedKey||i,h=Object.prototype.toString.apply(f),m=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,g=!this.i18nFormat||this.i18nFormat.handleAsObject,v="string"!=typeof f&&"boolean"!=typeof f&&"number"!=typeof f;if(g&&f&&v&&0>["[object Number]","[object Function]","[object RegExp]"].indexOf(h)&&!("string"==typeof m&&"[object Array]"===h)){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");let e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(d,f,{...t,ns:a}):`key '${i} (${this.language})' returned an object instead of string.`;return r?(u.res=e,u):e}if(o){let e="[object Array]"===h,n=e?[]:{},r=e?p:d;for(let e in f)if(Object.prototype.hasOwnProperty.call(f,e)){let i=`${r}${o}${e}`;n[e]=this.translate(i,{...t,joinArrays:!1,ns:a}),n[e]===i&&(n[e]=f[e])}f=n}}else if(g&&"string"==typeof m&&"[object Array]"===h)(f=f.join(m))&&(f=this.extendTranslation(f,e,t,n));else{let r=!1,a=!1,c=void 0!==t.count&&"string"!=typeof t.count,d=w.hasDefaultValue(t),p=c?this.pluralResolver.getSuffix(s,t.count,t):"",h=t.ordinal&&c?this.pluralResolver.getSuffix(s,t.count,{ordinal:!1}):"",m=t[`defaultValue${p}`]||t[`defaultValue${h}`]||t.defaultValue;!this.isValidLookup(f)&&d&&(r=!0,f=m),this.isValidLookup(f)||(a=!0,f=i);let g=t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,v=g&&a?void 0:f,y=d&&m!==f&&this.options.updateMissing;if(a||r||y){if(this.logger.log(y?"updateKey":"missingKey",s,l,i,y?m:f),o){let e=this.resolve(i,{...t,keySeparator:!1});e&&e.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let e=[],n=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&n&&n[0])for(let t=0;t{let o=d&&r!==f?r:v;this.options.missingKeyHandler?this.options.missingKeyHandler(e,l,n,o,y,t):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(e,l,n,o,y,t),this.emit("missingKey",e,l,n,f)};this.options.saveMissing&&(this.options.saveMissingPlurals&&c?e.forEach(e=>{this.pluralResolver.getSuffixes(e,t).forEach(n=>{r([e],i+n,t[`defaultValue${n}`]||m)})}):r(e,i,m))}f=this.extendTranslation(f,e,t,u,n),a&&f===i&&this.options.appendNamespaceToMissingKey&&(f=`${l}:${i}`),(a||r)&&this.options.parseMissingKeyHandler&&(f="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${i}`:i,r?f:void 0):this.options.parseMissingKeyHandler(f))}return r?(u.res=f,u):f}extendTranslation(e,t,n,r,o){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){let a;n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});let l="string"==typeof e&&(n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(l){let t=e.match(this.interpolator.nestingRegexp);a=t&&t.length}let s=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),e=this.interpolator.interpolate(e,s,n.lng||this.language,n),l){let t=e.match(this.interpolator.nestingRegexp),r=t&&t.length;a1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach(e=>{if(this.isValidLookup(t))return;let l=this.extractFromKey(e,a),s=l.key;n=s;let c=l.namespaces;this.options.fallbackNS&&(c=c.concat(this.options.fallbackNS));let u=void 0!==a.count&&"string"!=typeof a.count,f=u&&!a.ordinal&&0===a.count&&this.pluralResolver.shouldUseIntlApi(),d=void 0!==a.context&&("string"==typeof a.context||"number"==typeof a.context)&&""!==a.context,p=a.lngs?a.lngs:this.languageUtils.toResolveHierarchy(a.lng||this.language,a.fallbackLng);c.forEach(e=>{this.isValidLookup(t)||(i=e,!x[`${p[0]}-${e}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(i)&&(x[`${p[0]}-${e}`]=!0,this.logger.warn(`key "${n}" for languages "${p.join(", ")}" won't get resolved as namespace "${i}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),p.forEach(n=>{let i;if(this.isValidLookup(t))return;o=n;let l=[s];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(l,s,n,e,a);else{let e;u&&(e=this.pluralResolver.getSuffix(n,a.count,a));let t=`${this.options.pluralSeparator}zero`,r=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(u&&(l.push(s+e),a.ordinal&&0===e.indexOf(r)&&l.push(s+e.replace(r,this.options.pluralSeparator)),f&&l.push(s+t)),d){let n=`${s}${this.options.contextSeparator}${a.context}`;l.push(n),u&&(l.push(n+e),a.ordinal&&0===e.indexOf(r)&&l.push(n+e.replace(r,this.options.pluralSeparator)),f&&l.push(n+t))}}for(;i=l.pop();)this.isValidLookup(t)||(r=i,t=this.getResource(n,e,i,a))}))})}),{res:t,usedKey:n,exactUsedKey:r,usedLng:o,usedNS:i}}isValidLookup(e){return void 0!==e&&!(!this.options.returnNull&&null===e)&&!(!this.options.returnEmptyString&&""===e)}getResource(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}static hasDefaultValue(e){let t="defaultValue";for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,t.length)&&void 0!==e[n])return!0;return!1}}function C(e){return e.charAt(0).toUpperCase()+e.slice(1)}class S{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=i.create("languageUtils")}getScriptPartFromCode(e){if(!(e=v(e))||0>e.indexOf("-"))return null;let t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase())?null:this.formatLanguageCode(t.join("-"))}getLanguagePartFromCode(e){if(!(e=v(e))||0>e.indexOf("-"))return e;let t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if("string"==typeof e&&e.indexOf("-")>-1){let t=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map(e=>e.toLowerCase()):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=C(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=C(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=C(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){let t;return e?(e.forEach(e=>{if(t)return;let n=this.formatLanguageCode(e);(!this.options.supportedLngs||this.isSupportedCode(n))&&(t=n)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;let n=this.getLanguagePartFromCode(e);if(this.isSupportedCode(n))return t=n;t=this.options.supportedLngs.find(e=>{if(e===n||!(0>e.indexOf("-")&&0>n.indexOf("-"))&&0===e.indexOf(n))return e})}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}getFallbackCodes(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];let n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}toResolveHierarchy(e,t){let n=this.getFallbackCodes(t||this.options.fallbackLng||[],e),r=[],o=e=>{e&&(this.isSupportedCode(e)?r.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return"string"==typeof e&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?("languageOnly"!==this.options.load&&o(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&o(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&o(this.getLanguagePartFromCode(e))):"string"==typeof e&&o(this.formatLanguageCode(e)),n.forEach(e=>{0>r.indexOf(e)&&o(this.formatLanguageCode(e))}),r}}let E=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],$={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}},O=["v1","v2","v3"],k=["v4"],j={zero:0,one:1,two:2,few:3,many:4,other:5};class P{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=i.create("pluralResolver"),(!this.options.compatibilityJSON||k.includes(this.options.compatibilityJSON))&&("undefined"==typeof Intl||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=function(){let e={};return E.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:$[t.fc]}})}),e}()}addRule(e,t){this.rules[e]=t}getRule(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(v(e),{type:t.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getRule(e,t);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}getPluralFormsOfKey(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,n).map(e=>`${t}${e}`)}getSuffixes(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getRule(e,t);return n?this.shouldUseIntlApi()?n.resolvedOptions().pluralCategories.sort((e,t)=>j[e]-j[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${e}`):n.numbers.map(n=>this.getSuffix(e,n,t)):[]}getSuffix(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this.getRule(e,n);return r?this.shouldUseIntlApi()?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${r.select(t)}`:this.getSuffixRetroCompatible(r,t):(this.logger.warn(`no plural rule found for: ${e}`),"")}getSuffixRetroCompatible(e,t){let n=e.noAbs?e.plurals(t):e.plurals(Math.abs(t)),r=e.numbers[n];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===r?r="plural":1===r&&(r=""));let o=()=>this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString();return"v1"===this.options.compatibilityJSON?1===r?"":"number"==typeof r?`_plural_${r.toString()}`:o():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?o():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}shouldUseIntlApi(){return!O.includes(this.options.compatibilityJSON)}}function Z(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",o=!(arguments.length>4)||void 0===arguments[4]||arguments[4],i=function(e,t,n){let r=f(e,n);return void 0!==r?r:f(t,n)}(e,t,n);return!i&&o&&"string"==typeof n&&void 0===(i=g(e,n,r))&&(i=g(t,n,r)),i}class _{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=i.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||(e=>e),this.init(e)}init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});let t=e.interpolation;this.escape=void 0!==t.escape?t.escape:h,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?d(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?d(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?d(t.nestingPrefix):t.nestingPrefixEscaped||d("$t("),this.nestingSuffix=t.nestingSuffix?d(t.nestingSuffix):t.nestingSuffixEscaped||d(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let e=`${this.prefix}(.+?)${this.suffix}`;this.regexp=RegExp(e,"g");let t=`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`;this.regexpUnescape=RegExp(t,"g");let n=`${this.nestingPrefix}(.+?)${this.nestingSuffix}`;this.nestingRegexp=RegExp(n,"g")}interpolate(e,t,n,r){let o,i,a;let l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function c(e){return e.replace(/\$/g,"$$$$")}let u=e=>{if(0>e.indexOf(this.formatSeparator)){let o=Z(t,l,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(o,void 0,n,{...r,...t,interpolationkey:e}):o}let o=e.split(this.formatSeparator),i=o.shift().trim(),a=o.join(this.formatSeparator).trim();return this.format(Z(t,l,i,this.options.keySeparator,this.options.ignoreJSONStructure),a,n,{...r,...t,interpolationkey:i})};this.resetRegExp();let f=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,d=r&&r.interpolation&&void 0!==r.interpolation.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables,p=[{regex:this.regexpUnescape,safeValue:e=>c(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?c(this.escape(e)):c(e)}];return p.forEach(t=>{for(a=0;o=t.regex.exec(e);){let n=o[1].trim();if(void 0===(i=u(n))){if("function"==typeof f){let t=f(e,o,r);i="string"==typeof t?t:""}else if(r&&Object.prototype.hasOwnProperty.call(r,n))i="";else if(d){i=o[0];continue}else this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),i=""}else"string"==typeof i||this.useRawValueToEscape||(i=s(i));let l=t.safeValue(i);if(e=e.replace(o[0],l),d?(t.regex.lastIndex+=i.length,t.regex.lastIndex-=o[0].length):t.regex.lastIndex=0,++a>=this.maxReplaces)break}}),e}nest(e,t){let n,r,o,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};function a(e,t){let n=this.nestingOptionsSeparator;if(0>e.indexOf(n))return e;let r=e.split(RegExp(`${n}[ ]*{`)),i=`{${r[1]}`;e=r[0],i=this.interpolate(i,o);let a=i.match(/'/g),l=i.match(/"/g);(a&&a.length%2==0&&!l||l.length%2!=0)&&(i=i.replace(/'/g,'"'));try{o=JSON.parse(i),t&&(o={...t,...o})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${n}${i}`}return delete o.defaultValue,e}for(;n=this.nestingRegexp.exec(e);){let l=[];(o=(o={...i}).replace&&"string"!=typeof o.replace?o.replace:o).applyPostProcessor=!1,delete o.defaultValue;let c=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){let e=n[1].split(this.formatSeparator).map(e=>e.trim());n[1]=e.shift(),l=e,c=!0}if((r=t(a.call(this,n[1].trim(),o),o))&&n[0]===e&&"string"!=typeof r)return r;"string"!=typeof r&&(r=s(r)),r||(this.logger.warn(`missed to resolve ${n[1]} for nesting ${e}`),r=""),c&&(r=l.reduce((e,t)=>this.format(e,t,i.lng,{...i,interpolationkey:n[1].trim()}),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}function A(e){let t={};return function(n,r,o){let i=r+JSON.stringify(o),a=t[i];return a||(a=e(v(r),o),t[i]=a),a(n)}}class M{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=i.create("formatter"),this.options=e,this.formats={number:A((e,t)=>{let n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)}),currency:A((e,t)=>{let n=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>n.format(e)}),datetime:A((e,t)=>{let n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)}),relativetime:A((e,t)=>{let n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||"day")}),list:A((e,t)=>{let n=new Intl.ListFormat(e,{...t});return e=>n.format(e)})},this.init(e)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},n=t.interpolation;this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||","}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=A(t)}format(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=t.split(this.formatSeparator),i=o.reduce((e,t)=>{let{formatName:o,formatOptions:i}=function(e){let t=e.toLowerCase().trim(),n={};if(e.indexOf("(")>-1){let r=e.split("(");t=r[0].toLowerCase().trim();let o=r[1].substring(0,r[1].length-1);if("currency"===t&&0>o.indexOf(":"))n.currency||(n.currency=o.trim());else if("relativetime"===t&&0>o.indexOf(":"))n.range||(n.range=o.trim());else{let e=o.split(";");e.forEach(e=>{if(!e)return;let[t,...r]=e.split(":"),o=r.join(":").trim().replace(/^'+|'+$/g,"");n[t.trim()]||(n[t.trim()]=o),"false"===o&&(n[t.trim()]=!1),"true"===o&&(n[t.trim()]=!0),isNaN(o)||(n[t.trim()]=parseInt(o,10))})}}return{formatName:t,formatOptions:n}}(t);if(this.formats[o]){let t=e;try{let a=r&&r.formatParams&&r.formatParams[r.interpolationkey]||{},l=a.locale||a.lng||r.locale||r.lng||n;t=this.formats[o](e,l,{...i,...r,...a})}catch(e){this.logger.warn(e)}return t}return this.logger.warn(`there was no format function for ${o}`),e},e);return i}}class R extends a{constructor(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=i.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(n,r.backend,r)}queueLoad(e,t,n,r){let o={},i={},a={},l={};return e.forEach(e=>{let r=!0;t.forEach(t=>{let a=`${e}|${t}`;!n.reload&&this.store.hasResourceBundle(e,t)?this.state[a]=2:this.state[a]<0||(1===this.state[a]?void 0===i[a]&&(i[a]=!0):(this.state[a]=1,r=!1,void 0===i[a]&&(i[a]=!0),void 0===o[a]&&(o[a]=!0),void 0===l[t]&&(l[t]=!0)))}),r||(a[e]=!0)}),(Object.keys(o).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(o),pending:Object.keys(i),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(l)}}loaded(e,t,n){let r=e.split("|"),o=r[0],i=r[1];t&&this.emit("failedLoading",o,i,t),n&&this.store.addResourceBundle(o,i,n),this.state[e]=t?-1:2;let a={};this.queue.forEach(n=>{(function(e,t,n,r){let{obj:o,k:i}=c(e,t,Object);o[i]=o[i]||[],r&&(o[i]=o[i].concat(n)),r||o[i].push(n)})(n.loaded,[o],i),void 0!==n.pending[e]&&(delete n.pending[e],n.pendingCount--),t&&n.errors.push(t),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach(e=>{a[e]||(a[e]={});let t=n.loaded[e];t.length&&t.forEach(t=>{void 0===a[e][t]&&(a[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(e=>!e.done)}read(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,i=arguments.length>5?arguments[5]:void 0;if(!e.length)return i(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:o,callback:i});return}this.readingCalls++;let a=(a,l)=>{if(this.readingCalls--,this.waitingReads.length>0){let e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}if(a&&l&&r{this.read.call(this,e,t,n,r+1,2*o,i)},o);return}i(a,l)},l=this.backend[n].bind(this.backend);if(2===l.length){try{let n=l(e,t);n&&"function"==typeof n.then?n.then(e=>a(null,e)).catch(a):a(null,n)}catch(e){a(e)}return}return l(e,t,a)}prepareLoading(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);let o=this.queueLoad(e,t,n,r);if(!o.toLoad.length)return o.pending.length||r(),null;o.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e.split("|"),r=n[0],o=n[1];this.read(r,o,"read",void 0,void 0,(n,i)=>{n&&this.logger.warn(`${t}loading namespace ${o} for language ${r} failed`,n),!n&&i&&this.logger.log(`${t}loaded namespace ${o} for language ${r}`,i),this.loaded(e,n,i)})}saveMissing(e,t,n,r,o){let i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)){this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(null!=n&&""!==n){if(this.backend&&this.backend.create){let l={...i,isUpdate:o},s=this.backend.create.bind(this.backend);if(s.length<6)try{let o;(o=5===s.length?s(e,t,n,r,l):s(e,t,n,r))&&"function"==typeof o.then?o.then(e=>a(null,e)).catch(a):a(null,o)}catch(e){a(e)}else s(e,t,n,r,a,l)}e&&e[0]&&this.store.addResource(e[0],t,n,r)}}}function N(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){let t={};if("object"==typeof e[1]&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){let n=e[3]||e[2];Object.keys(n).forEach(e=>{t[e]=n[e]})}return t},interpolation:{escapeValue:!0,format:(e,t,n,r)=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function T(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&0>e.supportedLngs.indexOf("cimode")&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function F(){}class I extends a{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(super(),this.options=T(e),this.services={},this.logger=i,this.modules={external:[]},!function(e){let t=Object.getOwnPropertyNames(Object.getPrototypeOf(e));t.forEach(t=>{"function"==typeof e[t]&&(e[t]=e[t].bind(e))})}(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initImmediate)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(){var e=this;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;"function"==typeof t&&(n=t,t={}),!t.defaultNS&&!1!==t.defaultNS&&t.ns&&("string"==typeof t.ns?t.defaultNS=t.ns:0>t.ns.indexOf("translation")&&(t.defaultNS=t.ns[0]));let r=N();function o(e){return e?"function"==typeof e?new e:e:null}if(this.options={...r,...this.options,...T(t)},"v1"!==this.options.compatibilityAPI&&(this.options.interpolation={...r.interpolation,...this.options.interpolation}),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator),!this.options.isClone){let t;this.modules.logger?i.init(o(this.modules.logger),this.options):i.init(null,this.options),this.modules.formatter?t=this.modules.formatter:"undefined"!=typeof Intl&&(t=M);let n=new S(this.options);this.store=new y(this.options.resources,this.options);let a=this.services;a.logger=i,a.resourceStore=this.store,a.languageUtils=n,a.pluralResolver=new P(n,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),t&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(a.formatter=o(t),a.formatter.init(a,this.options),this.options.interpolation.format=a.formatter.format.bind(a.formatter)),a.interpolator=new _(this.options),a.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},a.backendConnector=new R(o(this.modules.backend),a.resourceStore,a,this.options),a.backendConnector.on("*",function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o1?n-1:0),o=1;o{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,n||(n=F),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(this.options.lng=e[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(t=>{this[t]=function(){return e.store[t](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(t=>{this[t]=function(){return e.store[t](...arguments),e}});let a=l(),s=()=>{let e=(e,t)=>{this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),a.resolve(t),n(e,t)};if(this.languages&&"v1"!==this.options.compatibilityAPI&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initImmediate?s():setTimeout(s,0),a}loadResources(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:F,n=t,r="string"==typeof e?e:this.language;if("function"==typeof e&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(r&&"cimode"===r.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return n();let e=[],t=t=>{if(!t||"cimode"===t)return;let n=this.services.languageUtils.toResolveHierarchy(t);n.forEach(t=>{"cimode"!==t&&0>e.indexOf(t)&&e.push(t)})};if(r)t(r);else{let e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.forEach(e=>t(e))}this.options.preload&&this.options.preload.forEach(e=>t(e)),this.services.backendConnector.load(e,this.options.ns,e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),n(e)})}else n(null)}reloadResources(e,t,n){let r=l();return e||(e=this.languages),t||(t=this.options.ns),n||(n=F),this.services.backendConnector.reload(e,t,e=>{r.resolve(),n(e)}),r}use(e){if(!e)throw Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&b.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(let e=0;e-1)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}}changeLanguage(e,t){var n=this;this.isLanguageChangingTo=e;let r=l();this.emit("languageChanging",e);let o=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},i=(e,i)=>{i?(o(i),this.translator.changeLanguage(i),this.isLanguageChangingTo=void 0,this.emit("languageChanged",i),this.logger.log("languageChanged",i)):this.isLanguageChangingTo=void 0,r.resolve(function(){return n.t(...arguments)}),t&&t(e,function(){return n.t(...arguments)})},a=t=>{e||t||!this.services.languageDetector||(t=[]);let n="string"==typeof t?t:this.services.languageUtils.getBestMatchFromCodes(t);n&&(this.language||o(n),this.translator.language||this.translator.changeLanguage(n),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(n)),this.loadResources(n,e=>{i(e,n)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(e):a(this.services.languageDetector.detect()),r}getFixedT(e,t,n){var r=this;let o=function(e,t){let i,a;if("object"!=typeof t){for(var l=arguments.length,s=Array(l>2?l-2:0),c=2;c`${i.keyPrefix}${u}${e}`):i.keyPrefix?`${i.keyPrefix}${u}${e}`:e,r.t(a,i)};return"string"==typeof e?o.lng=e:o.lngs=e,o.ns=t,o.keyPrefix=n,o}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;let n=t.lng||this.resolvedLanguage||this.languages[0],r=!!this.options&&this.options.fallbackLng,o=this.languages[this.languages.length-1];if("cimode"===n.toLowerCase())return!0;let i=(e,t)=>{let n=this.services.backendConnector.state[`${e}|${t}`];return -1===n||2===n};if(t.precheck){let e=t.precheck(this,i);if(void 0!==e)return e}return!!(this.hasResourceBundle(n,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||i(n,e)&&(!r||i(o,e)))}loadNamespaces(e,t){let n=l();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach(e=>{0>this.options.ns.indexOf(e)&&this.options.ns.push(e)}),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){let n=l();"string"==typeof e&&(e=[e]);let r=this.options.preload||[],o=e.filter(e=>0>r.indexOf(e));return o.length?(this.options.preload=r.concat(o),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";let t=this.services&&this.services.languageUtils||new S(N());return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(t.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new I(e,t)}cloneInstance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:F,n=e.forkResourceStore;n&&delete e.forkResourceStore;let r={...this.options,...e,isClone:!0},o=new I(r);return(void 0!==e.debug||void 0!==e.prefix)&&(o.logger=o.logger.clone(e)),["store","services","language"].forEach(e=>{o[e]=this[e]}),o.services={...this.services},o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},n&&(o.store=new y(this.store.data,r),o.services.resourceStore=o.store),o.translator=new w(o.services,r),o.translator.on("*",function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r{let{componentCls:t,width:n,notificationMarginEdge:r}=e,o=new y.E4("antNotificationTopFadeIn",{"0%":{marginTop:"-100%",opacity:0},"100%":{marginTop:0,opacity:1}}),i=new y.E4("antNotificationBottomFadeIn",{"0%":{marginBottom:"-100%",opacity:0},"100%":{marginBottom:0,opacity:1}}),a=new y.E4("antNotificationLeftFadeIn",{"0%":{right:{_skip_check_:!0,value:n},opacity:0},"100%":{right:{_skip_check_:!0,value:0},opacity:1}});return{[`&${t}-top, &${t}-bottom`]:{marginInline:0},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:o}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:i}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginInlineEnd:0,marginInlineStart:r,[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:a}}}};let S=e=>{let{iconCls:t,componentCls:n,boxShadow:r,fontSizeLG:o,notificationMarginBottom:i,borderRadiusLG:a,colorSuccess:l,colorInfo:s,colorWarning:c,colorError:u,colorTextHeading:f,notificationBg:d,notificationPadding:p,notificationMarginEdge:h,motionDurationMid:m,motionEaseInOut:g,fontSize:v,lineHeight:x,width:w,notificationIconSize:S,colorText:E}=e,$=`${n}-notice`,O=new y.E4("antNotificationFadeIn",{"0%":{left:{_skip_check_:!0,value:w},opacity:0},"100%":{left:{_skip_check_:!0,value:0},opacity:1}}),k=new y.E4("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:i,opacity:1},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}}),j={position:"relative",width:w,maxWidth:`calc(100vw - ${2*h}px)`,marginBottom:i,marginInlineStart:"auto",padding:p,overflow:"hidden",lineHeight:x,wordWrap:"break-word",background:d,borderRadius:a,boxShadow:r,[`${n}-close-icon`]:{fontSize:v,cursor:"pointer"},[`${$}-message`]:{marginBottom:e.marginXS,color:f,fontSize:o,lineHeight:e.lineHeightLG},[`${$}-description`]:{fontSize:v,color:E},[`&${$}-closable ${$}-message`]:{paddingInlineEnd:e.paddingLG},[`${$}-with-icon ${$}-message`]:{marginBottom:e.marginXS,marginInlineStart:e.marginSM+S,fontSize:o},[`${$}-with-icon ${$}-description`]:{marginInlineStart:e.marginSM+S,fontSize:v},[`${$}-icon`]:{position:"absolute",fontSize:S,lineHeight:0,[`&-success${t}`]:{color:l},[`&-info${t}`]:{color:s},[`&-warning${t}`]:{color:c},[`&-error${t}`]:{color:u}},[`${$}-close`]:{position:"absolute",top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:"none",width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:e.colorIconHover,backgroundColor:e.wireframe?"transparent":e.colorFillContent}},[`${$}-btn`]:{float:"right",marginTop:e.marginSM}};return[{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,b.Wf)(e)),{position:"fixed",zIndex:e.zIndexPopup,marginInlineEnd:h,[`${n}-hook-holder`]:{position:"relative"},[`&${n}-top, &${n}-bottom`]:{[$]:{marginInline:"auto auto"}},[`&${n}-topLeft, &${n}-bottomLeft`]:{[$]:{marginInlineEnd:"auto",marginInlineStart:0}},[`${n}-fade-enter, ${n}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:g,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${n}-fade-leave`]:{animationTimingFunction:g,animationFillMode:"both",animationDuration:m,animationPlayState:"paused"},[`${n}-fade-enter${n}-fade-enter-active, ${n}-fade-appear${n}-fade-appear-active`]:{animationName:O,animationPlayState:"running"},[`${n}-fade-leave${n}-fade-leave-active`]:{animationName:k,animationPlayState:"running"}}),C(e)),{"&-rtl":{direction:"rtl",[`${$}-btn`]:{float:"left"}}})},{[n]:{[$]:Object.assign({},j)}},{[`${$}-pure-panel`]:Object.assign(Object.assign({},j),{margin:0})}]};var E=(0,x.Z)("Notification",e=>{let t=e.paddingMD,n=e.paddingLG,r=(0,w.TS)(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:n,notificationIconSize:e.fontSizeLG*e.lineHeightLG,notificationCloseButtonSize:.55*e.controlHeightLG,notificationMarginBottom:e.margin,notificationPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`,notificationMarginEdge:e.marginLG,animationMaxHeight:150});return[S(r)]},e=>({zIndexPopup:e.zIndexPopupBase+50,width:384})),$=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function O(e,t){return null===t||!1===t?null:t||i.createElement("span",{className:`${e}-close-x`},i.createElement(u.Z,{className:`${e}-close-icon`}))}d.Z,s.Z,c.Z,f.Z,p.Z;let k={success:s.Z,info:d.Z,error:c.Z,warning:f.Z},j=e=>{let{prefixCls:t,icon:n,type:r,message:o,description:a,btn:l,role:s="alert"}=e,c=null;return n?c=i.createElement("span",{className:`${t}-icon`},n):r&&(c=i.createElement(k[r]||null,{className:m()(`${t}-icon`,`${t}-icon-${r}`)})),i.createElement("div",{className:m()({[`${t}-with-icon`]:c}),role:s},c,i.createElement("div",{className:`${t}-message`},o),i.createElement("div",{className:`${t}-description`},a),l&&i.createElement("div",{className:`${t}-btn`},l))};var P=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let Z=e=>{let{children:t,prefixCls:n}=e,[,r]=E(n);return i.createElement(g.JB,{classNames:{list:r,notice:r}},t)},_=(e,t)=>{let{prefixCls:n,key:r}=t;return i.createElement(Z,{prefixCls:n,key:r},e)},A=i.forwardRef((e,t)=>{let{top:n,bottom:r,prefixCls:o,getContainer:a,maxCount:l,rtl:s,onAllRemoved:c}=e,{getPrefixCls:u,getPopupContainer:f,notification:d}=i.useContext(v.E_),p=o||u("notification"),[h,y]=(0,g.lm)({prefixCls:p,style:e=>(function(e,t,n){let r;switch(e){case"top":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:t,bottom:"auto"};break;case"topLeft":r={left:0,top:t,bottom:"auto"};break;case"topRight":r={right:0,top:t,bottom:"auto"};break;case"bottom":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:n};break;case"bottomLeft":r={left:0,top:"auto",bottom:n};break;default:r={right:0,top:"auto",bottom:n}}return r})(e,null!=n?n:24,null!=r?r:24),className:()=>m()({[`${p}-rtl`]:s}),motion:()=>({motionName:`${p}-fade`}),closable:!0,closeIcon:O(p),duration:4.5,getContainer:()=>(null==a?void 0:a())||(null==f?void 0:f())||document.body,maxCount:l,onAllRemoved:c,renderNotifications:_});return i.useImperativeHandle(t,()=>Object.assign(Object.assign({},h),{prefixCls:p,notification:d})),y});function M(e){let t=i.useRef(null),n=i.useMemo(()=>{let n=n=>{var r;if(!t.current)return;let{open:o,prefixCls:a,notification:l}=t.current,s=`${a}-notice`,{message:c,description:u,icon:f,type:d,btn:p,className:h,style:g,role:v="alert",closeIcon:y}=n,b=P(n,["message","description","icon","type","btn","className","style","role","closeIcon"]),x=O(s,y);return o(Object.assign(Object.assign({placement:null!==(r=null==e?void 0:e.placement)&&void 0!==r?r:"topRight"},b),{content:i.createElement(j,{prefixCls:s,icon:f,type:d,message:c,description:u,btn:p,role:v}),className:m()(d&&`${s}-${d}`,h,null==l?void 0:l.className),style:Object.assign(Object.assign({},null==l?void 0:l.style),g),closeIcon:x,closable:!!x}))},r={open:n,destroy:e=>{var n,r;void 0!==e?null===(n=t.current)||void 0===n||n.close(e):null===(r=t.current)||void 0===r||r.destroy()}};return["success","info","warning","error"].forEach(e=>{r[e]=t=>n(Object.assign(Object.assign({},t),{type:e}))}),r},[]);return[n,i.createElement(A,Object.assign({key:"notification-holder"},e,{ref:t}))]}let R=null,N=e=>e(),T=[],F={};function I(){let{prefixCls:e,getContainer:t,rtl:n,maxCount:r,top:o,bottom:i}=F,a=null!=e?e:(0,l.w6)().getPrefixCls("notification"),s=(null==t?void 0:t())||document.body;return{prefixCls:a,getContainer:()=>s,rtl:n,maxCount:r,top:o,bottom:i}}let L=i.forwardRef((e,t)=>{let[n,r]=i.useState(I),[o,a]=M(n),s=(0,l.w6)(),c=s.getRootPrefixCls(),u=s.getIconPrefixCls(),f=s.getTheme(),d=()=>{r(I)};return i.useEffect(d,[]),i.useImperativeHandle(t,()=>{let e=Object.assign({},o);return Object.keys(e).forEach(t=>{e[t]=function(){return d(),o[t].apply(o,arguments)}}),{instance:e,sync:d}}),i.createElement(l.ZP,{prefixCls:c,iconPrefixCls:u,theme:f},a)});function B(){if(!R){let e=document.createDocumentFragment(),t={fragment:e};R=t,N(()=>{(0,a.s)(i.createElement(L,{ref:e=>{let{instance:n,sync:r}=e||{};Promise.resolve().then(()=>{!t.instance&&n&&(t.instance=n,t.sync=r,B())})}}),e)});return}R.instance&&(T.forEach(e=>{switch(e.type){case"open":N(()=>{R.instance.open(Object.assign(Object.assign({},F),e.config))});break;case"destroy":N(()=>{null==R||R.instance.destroy(e.key)})}}),T=[])}function z(e){T.push({type:"open",config:e}),B()}let D={open:z,destroy:function(e){T.push({type:"destroy",key:e}),B()},config:function(e){F=Object.assign(Object.assign({},F),e),N(()=>{var e;null===(e=null==R?void 0:R.sync)||void 0===e||e.call(R)})},useNotification:function(e){return M(e)},_InternalPanelDoNotUseOrYouWillBeFired:e=>{let{prefixCls:t,className:n,icon:r,type:o,message:a,description:l,btn:s,closable:c=!0,closeIcon:u}=e,f=$(e,["prefixCls","className","icon","type","message","description","btn","closable","closeIcon"]),{getPrefixCls:d}=i.useContext(v.E_),p=t||d("notification"),h=`${p}-notice`,[,y]=E(p);return i.createElement(g.qX,Object.assign({},f,{prefixCls:p,className:m()(n,y,`${h}-pure-panel`),eventKey:"pure",duration:null,closable:c,closeIcon:O(p,u),content:i.createElement(j,{prefixCls:h,icon:r,type:o,message:a,description:l,btn:s})}))}};["success","info","warning","error"].forEach(e=>{D[e]=t=>z(Object.assign(Object.assign({},t),{type:e}))});let H=(e,t)=>e.then(e=>{let{data:n}=e;if(!n)throw Error("Network Error!");if(!n.success){if("*"===t||n.err_code&&t&&t.includes(n.err_code));else{var r;D.error({message:"Request error",description:null!==(r=null==n?void 0:n.err_msg)&&void 0!==r?r:"The interface is abnormal. Please try again later"})}}return[null,n.data,n,e]}).catch(e=>(D.error({message:"Request error",description:e.message}),[e,null,null,null])),V=()=>eF("/api/v1/chat/dialogue/scenes"),U=e=>eF("/api/v1/chat/dialogue/new",e),W=()=>eT("/api/v1/chat/db/list"),q=()=>eT("/api/v1/chat/db/support/type"),K=e=>eF("/api/v1/chat/db/delete?db_name=".concat(e)),G=e=>eF("/api/v1/chat/db/edit",e),X=e=>eF("/api/v1/chat/db/add",e),Y=e=>eF("/api/v1/chat/db/test/connect",e),J=()=>eT("/api/v1/chat/dialogue/list"),Q=()=>eT("/api/v1/model/types"),ee=e=>eF("/api/v1/chat/mode/params/list?chat_mode=".concat(e)),et=e=>eT("/api/v1/chat/dialogue/messages/history?con_uid=".concat(e)),en=e=>{let{convUid:t,chatMode:n,data:r,config:o,model:i}=e;return eF("/api/v1/chat/mode/params/file/load?conv_uid=".concat(t,"&chat_mode=").concat(n,"&model_name=").concat(i),r,{headers:{"Content-Type":"multipart/form-data"},...o})},er=e=>eF("/api/v1/chat/dialogue/delete?con_uid=".concat(e)),eo=e=>eF("/knowledge/".concat(e,"/arguments"),{}),ei=(e,t)=>eF("/knowledge/".concat(e,"/argument/save"),t),ea=()=>eF("/knowledge/space/list",{}),el=(e,t)=>eF("/knowledge/".concat(e,"/document/list"),t),es=(e,t)=>eF("/knowledge/".concat(e,"/document/add"),t),ec=e=>eF("/knowledge/space/add",e),eu=()=>eT("/knowledge/document/chunkstrategies"),ef=(e,t)=>eF("/knowledge/".concat(e,"/document/sync"),t),ed=(e,t)=>eF("/knowledge/".concat(e,"/document/sync_batch"),t),ep=(e,t)=>eF("/knowledge/".concat(e,"/document/upload"),t),eh=(e,t)=>eF("/knowledge/".concat(e,"/chunk/list"),t),em=(e,t)=>eF("/knowledge/".concat(e,"/document/delete"),t),eg=e=>eF("/knowledge/space/delete",e),ev=()=>eT("/api/v1/worker/model/list"),ey=e=>eF("/api/v1/worker/model/stop",e),eb=e=>eF("/api/v1/worker/model/start",e),ex=()=>eT("/api/v1/worker/model/params"),ew=e=>eF("/api/v1/agent/query",e),eC=e=>eF("/api/v1/agent/hub/update",null!=e?e:{channel:"",url:"",branch:"",authorization:""}),eS=e=>eF("/api/v1/agent/my",void 0,{params:{user:e}}),eE=(e,t)=>eF("/api/v1/agent/install",void 0,{params:{plugin_name:e,user:t},timeout:6e4}),e$=(e,t)=>eF("/api/v1/agent/uninstall",void 0,{params:{plugin_name:e,user:t},timeout:6e4}),eO=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;return eF("/api/v1/personal/agent/upload",t,{params:{user:e},headers:{"Content-Type":"multipart/form-data"},...n})},ek=()=>eT("/api/v1/feedback/select",void 0),ej=(e,t)=>eT("/api/v1/feedback/find?conv_uid=".concat(e,"&conv_index=").concat(t),void 0),eP=e=>{let{data:t,config:n}=e;return eF("/api/v1/feedback/commit",t,{headers:{"Content-Type":"application/json"},...n})},eZ=e=>eF("/prompt/list",e),e_=e=>eF("/prompt/update",e),eA=e=>eF("/prompt/add",e);var eM=n(83454);let eR=o.Z.create({baseURL:null!==(r=eM.env.API_BASE_URL)&&void 0!==r?r:""}),eN=["/db/add","/db/test/connect","/db/summary","/params/file/load","/chat/prepare","/model/start","/model/stop","/editor/sql/run","/sql/editor/submit","/editor/chart/run","/chart/editor/submit","/document/upload","/document/sync","/agent/install","/agent/uninstall","/personal/agent/upload"];eR.interceptors.request.use(e=>{let t=eN.some(t=>e.url&&e.url.indexOf(t)>=0);return e.timeout||(e.timeout=t?6e4:1e4),e});let eT=(e,t,n)=>eR.get(e,{params:t,...n}),eF=(e,t,n)=>eR.post(e,t,n)},5455:function(e,t,n){"use strict";n.d(t,{RD:function(){return a},In:function(){return o},zM:function(){return i},je:function(){return l},DL:function(){return s},si:function(){return c},FD:function(){return u},qw:function(){return y},s2:function(){return h},Rp:function(){return m},IN:function(){return f},tu:function(){return g},ig:function(){return d},ol:function(){return p},bn:function(){return v}});var r=n(85893),o=function(){return(0,r.jsxs)("svg",{viewBox:"0 0 1059 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"11020",className:"w-full h-full",children:[(0,r.jsx)("path",{d:"M617.931034 971.034483H335.448276c62.834759 0 70.62069-140.994207 70.62069-211.862069h247.172413c0 70.867862 7.785931 211.862069 70.62069 211.862069h-105.931035z",fill:"#4DB5E3","p-id":"11021"}),(0,r.jsx)("path",{d:"M282.482759 953.37931h512a35.310345 35.310345 0 0 1 0 70.62069H282.482759a35.310345 35.310345 0 0 1 0-70.62069z",fill:"#47C5FC","p-id":"11022"}),(0,r.jsx)("path",{d:"M0 0m73.145379 0l913.019587 0q73.145379 0 73.145379 73.145379l0 683.502345q0 73.145379-73.145379 73.145379l-913.019587 0q-73.145379 0-73.145379-73.145379l0-683.502345q0-73.145379 73.145379-73.145379Z",fill:"#47C5FC","p-id":"11023"}),(0,r.jsx)("path",{d:"M52.965517 52.965517h953.379311v723.862069H52.965517z",fill:"#FFFFFF","p-id":"11024"}),(0,r.jsx)("path",{d:"M600.275862 564.965517h335.448276a17.655172 17.655172 0 0 1 0 35.310345H600.275862a17.655172 17.655172 0 0 1 0-35.310345z m0 88.275862h205.78869a17.655172 17.655172 0 0 1 0 35.310345H600.275862a17.655172 17.655172 0 0 1 0-35.310345z m278.068966 0H935.724138a17.655172 17.655172 0 0 1 0 35.310345h-57.37931a17.655172 17.655172 0 0 1 0-35.310345z",fill:"#C7EAF9","p-id":"11025"}),(0,r.jsx)("path",{d:"M194.206897 211.862069h282.482758a17.655172 17.655172 0 1 1 0 35.310345H194.206897a17.655172 17.655172 0 1 1 0-35.310345z m0 88.275862h171.59062a17.655172 17.655172 0 1 1 0 35.310345H194.206897a17.655172 17.655172 0 1 1 0-35.310345z m238.344827 0H476.689655a17.655172 17.655172 0 1 1 0 35.310345h-44.137931a17.655172 17.655172 0 1 1 0-35.310345z",fill:"#C7EAF9","p-id":"11026"}),(0,r.jsx)("path",{d:"M194.206897 176.551724H141.241379v52.965517a17.655172 17.655172 0 1 1-35.310345 0V158.896552a17.655172 17.655172 0 0 1 17.655173-17.655173h70.62069a17.655172 17.655172 0 0 1 0 35.310345z",fill:"#C7EAF9","p-id":"11027"}),(0,r.jsx)("path",{d:"M317.793103 564.965517h141.24138a141.241379 141.241379 0 1 1-141.24138-141.241379v141.241379z",fill:"#47C5FC","p-id":"11028"}),(0,r.jsx)("path",{d:"M335.448276 406.068966a141.241379 141.241379 0 0 1 141.241379 141.241379h-141.241379v-141.241379z",fill:"#FFDE21","p-id":"11029"}),(0,r.jsx)("path",{d:"M582.62069 176.551724h52.965517v247.172414h-52.965517z",fill:"#FFDE21","p-id":"11030"}),(0,r.jsx)("path",{d:"M688.551724 247.172414h52.965517v176.551724h-52.965517z",fill:"#47C5FC","p-id":"11031"}),(0,r.jsx)("path",{d:"M794.482759 300.137931h52.965517v123.586207h-52.965517z",fill:"#47C5FC","p-id":"11032"}),(0,r.jsx)("path",{d:"M900.413793 353.103448h52.965517v70.62069h-52.965517z",fill:"#FFDE21","p-id":"11033"})]})},i=function(){return(0,r.jsxs)("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"13568",className:"w-full h-full",children:[(0,r.jsx)("path",{d:"M185.66 459H70.5c-5.54 0-10 4.48-10 10v373.26c0 5.52 4.46 10 10 10h115.16c5.52 0 10-4.48 10-10V469c0-5.52-4.48-10-10-10z m-10 373.26H80.5V479h95.16v353.26z",fill:"#23130D","p-id":"13569"}),(0,r.jsx)("path",{d:"M80.5 479h95.16v353.26H80.5z",fill:"#F9C139","p-id":"13570"}),(0,r.jsx)("path",{d:"M80.5 479H100v353.26h-19.5z",fill:"#FFFFFF",opacity:".4","p-id":"13571"}),(0,r.jsx)("path",{d:"M156.16 479h19.5v353.26h-19.5z",fill:"#1C1817",opacity:".2","p-id":"13572"}),(0,r.jsx)("path",{d:"M377.62 556.06h-115.16c-5.54 0-10 4.48-10 10v276.2c0 5.52 4.46 10 10 10h115.16c5.54 0 10-4.48 10-10v-276.2c0-5.52-4.46-10-10-10z m-10 276.2h-95.16v-256.2h95.16v256.2z",fill:"#23130D","p-id":"13573"}),(0,r.jsx)("path",{d:"M272.46 576.06h95.16v256.2h-95.16z",fill:"#EC7063","p-id":"13574"}),(0,r.jsx)("path",{d:"M569.58 358.02h-115.16c-5.54 0-10 4.48-10 10v474.24c0 5.52 4.46 10 10 10h115.16c5.54 0 10-4.48 10-10V368.02c0-5.52-4.46-10-10-10z m-10 474.24h-95.16V378.02h95.16v454.24z",fill:"#23130D","p-id":"13575"}),(0,r.jsx)("path",{d:"M464.42 378.02h95.16v454.24h-95.16z",fill:"#72AF5F","p-id":"13576"}),(0,r.jsx)("path",{d:"M761.54 419.62h-115.16c-5.54 0-10 4.48-10 10v412.64c0 5.52 4.46 10 10 10h115.16c5.54 0 10-4.48 10-10V429.62c0-5.52-4.46-10-10-10z m-10 412.64h-95.16V439.62h95.16v392.64z",fill:"#23130D","p-id":"13577"}),(0,r.jsx)("path",{d:"M656.38 439.62h95.16v392.64h-95.16z",fill:"#EC7063","p-id":"13578"}),(0,r.jsx)("path",{d:"M953.5 281.94h-115.16c-5.52 0-10 4.48-10 10v550.32c0 5.52 4.48 10 10 10h115.16c5.54 0 10-4.48 10-10V291.94c0-5.52-4.46-10-10-10z m-10 550.32h-95.16V301.94h95.16v530.32z",fill:"#23130D","p-id":"13579"}),(0,r.jsx)("path",{d:"M848.34 301.94h95.16v530.32h-95.16z",fill:"#72AF5F","p-id":"13580"}),(0,r.jsx)("path",{d:"M953.51 883.768H70.49a10 10 0 1 0 0 20h883.02c5.524 0 10-4.476 10-10s-4.476-10-10-10zM895.92 120.24c-36.72 0-66.62 29.88-66.62 66.6 0 10.8 2.6 21 7.2 30.04l-84.72 60.34c-12.12-12.5-29.08-20.3-47.82-20.3-26.08 0-48.7 15.08-59.64 36.96l-66.56-21.38c0.56-3.46 0.86-7 0.86-10.62 0-36.72-29.88-66.6-66.62-66.6s-66.62 29.88-66.62 66.6c0 14.88 4.92 28.64 13.18 39.74l-99.32 100.32a66.24 66.24 0 0 0-39.2-12.8c-22.16 0-41.8 10.88-53.92 27.56l-75.9-39.12c2.26-6.7 3.5-13.84 3.5-21.28 0-36.72-29.88-66.6-66.62-66.6-36.72 0-66.6 29.88-66.6 66.6 0 36.74 29.88 66.62 66.6 66.62 22.16 0 41.82-10.88 53.94-27.58l75.9 39.14a66.316 66.316 0 0 0-3.52 21.28c0 36.72 29.88 66.6 66.62 66.6s66.62-29.88 66.62-66.6c0-14.9-4.92-28.64-13.2-39.76l99.32-100.32a66.18 66.18 0 0 0 39.22 12.82c26.08 0 48.7-15.08 59.62-36.96l66.58 21.38c-0.56 3.46-0.86 7-0.86 10.6 0 36.74 29.88 66.62 66.62 66.62s66.62-29.88 66.62-66.62c0-10.8-2.6-21-7.18-30.02l84.7-60.34c12.12 12.5 29.08 20.3 47.82 20.3 36.74 0 66.62-29.88 66.62-66.62 0-36.72-29.88-66.6-66.62-66.6zM127.1 402.92c-25.7 0-46.6-20.92-46.6-46.62 0-25.7 20.9-46.6 46.6-46.6 25.7 0 46.62 20.9 46.62 46.6 0 25.7-20.92 46.62-46.62 46.62z m192.94 99.44c-25.7 0-46.62-20.9-46.62-46.6 0-25.72 20.92-46.62 46.62-46.62 25.7 0 46.62 20.9 46.62 46.62 0 25.7-20.92 46.6-46.62 46.6zM512 308.5c-25.7 0-46.62-20.92-46.62-46.62s20.92-46.6 46.62-46.6 46.62 20.9 46.62 46.6-20.92 46.62-46.62 46.62z m191.96 61.64c-25.7 0-46.62-20.9-46.62-46.62 0-4.94 0.8-9.72 2.22-14.2l0.02-0.02v-0.02c6.04-18.76 23.64-32.36 44.38-32.36 25.7 0 46.62 20.9 46.62 46.6 0 25.72-20.92 46.62-46.62 46.62z m191.96-136.68c-25.7 0-46.62-20.9-46.62-46.62 0-25.7 20.92-46.6 46.62-46.6 25.7 0 46.62 20.9 46.62 46.6 0 25.72-20.92 46.62-46.62 46.62z",fill:"#23130D","p-id":"13581"}),(0,r.jsx)("path",{d:"M942.54 186.84c0 25.72-20.92 46.62-46.62 46.62-25.7 0-46.62-20.9-46.62-46.62 0-25.7 20.92-46.6 46.62-46.6 25.7 0 46.62 20.9 46.62 46.6z",fill:"#72AF5F","p-id":"13582"}),(0,r.jsx)("path",{d:"M750.58 323.52c0 25.72-20.92 46.62-46.62 46.62-25.7 0-46.62-20.9-46.62-46.62 0-4.94 0.8-9.72 2.22-14.2l0.02-0.02v-0.02c6.04-18.76 23.64-32.36 44.38-32.36 25.7 0 46.62 20.9 46.62 46.6z",fill:"#EC7063","p-id":"13583"}),(0,r.jsx)("path",{d:"M558.62 261.88c0 25.7-20.92 46.62-46.62 46.62s-46.62-20.92-46.62-46.62 20.92-46.6 46.62-46.6 46.62 20.9 46.62 46.6z",fill:"#72AF5F","p-id":"13584"}),(0,r.jsx)("path",{d:"M366.66 455.76c0 25.7-20.92 46.6-46.62 46.6-25.7 0-46.62-20.9-46.62-46.6 0-25.72 20.92-46.62 46.62-46.62 25.7 0 46.62 20.9 46.62 46.62z",fill:"#EC7063","p-id":"13585"}),(0,r.jsx)("path",{d:"M173.72 356.3c0 25.7-20.92 46.62-46.62 46.62-25.7 0-46.6-20.92-46.6-46.62 0-25.7 20.9-46.6 46.6-46.6 25.7 0 46.62 20.9 46.62 46.6z",fill:"#F9C139","p-id":"13586"}),(0,r.jsx)("path",{d:"M173.72 356.3c0 25.7-20.92 46.62-46.62 46.62a45.6 45.6 0 0 1-12-1.58c19.9-5.3 34.62-23.48 34.62-45.04s-14.72-39.74-34.62-45.04c3.82-1.02 7.84-1.56 12-1.56 25.7 0 46.62 20.9 46.62 46.6zM366.66 455.74c0 25.7-20.92 46.62-46.62 46.62a45.6 45.6 0 0 1-12-1.58c19.9-5.3 34.62-23.48 34.62-45.04s-14.72-39.74-34.62-45.04c3.82-1.02 7.84-1.56 12-1.56 25.7 0 46.62 20.9 46.62 46.6zM558.62 261.88c0 25.7-20.92 46.62-46.62 46.62a45.6 45.6 0 0 1-12-1.58c19.9-5.3 34.62-23.48 34.62-45.04s-14.72-39.74-34.62-45.04c3.82-1.02 7.84-1.56 12-1.56 25.7 0 46.62 20.9 46.62 46.6zM750.58 323.52c0 25.7-20.92 46.62-46.62 46.62a45.6 45.6 0 0 1-12-1.58c19.9-5.3 34.62-23.48 34.62-45.04s-14.72-39.74-34.62-45.04c3.82-1.02 7.84-1.56 12-1.56 25.7 0 46.62 20.9 46.62 46.6zM943.5 186.84c0 25.7-20.92 46.62-46.62 46.62a45.6 45.6 0 0 1-12-1.58c19.9-5.3 34.62-23.48 34.62-45.04s-14.72-39.74-34.62-45.04c3.82-1.02 7.84-1.56 12-1.56 25.7 0 46.62 20.9 46.62 46.6z",fill:"#1C1817",opacity:".2","p-id":"13587"}),(0,r.jsx)("path",{d:"M272.46 575.06h19.5v257.2h-19.5z",fill:"#FFFFFF",opacity:".4","p-id":"13588"}),(0,r.jsx)("path",{d:"M348.12 575.06h19.5v257.2h-19.5z",fill:"#1C1817",opacity:".2","p-id":"13589"}),(0,r.jsx)("path",{d:"M463.94 378.746h19.5V832.26h-19.5z",fill:"#FFFFFF",opacity:".4","p-id":"13590"}),(0,r.jsx)("path",{d:"M539.6 378.746h19.5V832.26h-19.5z",fill:"#1C1817",opacity:".2","p-id":"13591"}),(0,r.jsx)("path",{d:"M656.38 438.7h19.5v393.56h-19.5z",fill:"#FFFFFF",opacity:".4","p-id":"13592"}),(0,r.jsx)("path",{d:"M732.04 438.7h19.5v393.56h-19.5z",fill:"#1C1817",opacity:".2","p-id":"13593"}),(0,r.jsx)("path",{d:"M848.34 302.306h19.5V832.26h-19.5z",fill:"#FFFFFF",opacity:".4","p-id":"13594"}),(0,r.jsx)("path",{d:"M924 302.306h19.5V832.26H924z",fill:"#1C1817",opacity:".2","p-id":"13595"})]})},a=function(){return(0,r.jsx)("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4946",className:"w-full h-full",children:(0,r.jsx)("path",{d:"M512 128C323.413333 128 170.666667 204.373333 170.666667 298.666667s152.746667 170.666667 341.333333 170.666666 341.333333-76.373333 341.333333-170.666666-152.746667-170.666667-341.333333-170.666667M170.666667 384v128c0 94.293333 152.746667 170.666667 341.333333 170.666667s341.333333-76.373333 341.333333-170.666667V384c0 94.293333-152.746667 170.666667-341.333333 170.666667s-341.333333-76.373333-341.333333-170.666667m0 213.333333v128c0 94.293333 152.746667 170.666667 341.333333 170.666667s341.333333-76.373333 341.333333-170.666667v-128c0 94.293333-152.746667 170.666667-341.333333 170.666667s-341.333333-76.373333-341.333333-170.666667z",fill:"#FFCA28","p-id":"4947"})})},l=function(){return(0,r.jsxs)("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"27999",className:"w-full h-full",children:[(0,r.jsx)("path",{d:"M701.781333 199.68a22.869333 22.869333 0 0 1 22.698667 22.186667v349.696h45.738667l34.133333-392.533334a22.698667 22.698667 0 0 0-20.650667-24.576L315.221333 113.834667A22.869333 22.869333 0 0 0 290.133333 134.656l-5.632 65.024z",fill:"#FFC670","p-id":"28000"}),(0,r.jsx)("path",{d:"M313.002667 674.816A25.6 25.6 0 0 1 338.773333 648.533333h154.965334a51.2 51.2 0 0 0 32.085333-11.264l69.12-54.954666a51.2 51.2 0 0 1 32.085333-11.264h97.450667V221.866667a22.869333 22.869333 0 0 0-22.698667-22.869334H231.253333A22.869333 22.869333 0 0 0 208.554667 221.866667v638.805333a22.698667 22.698667 0 0 0 22.698666 22.698667h81.749334z",fill:"#FFF6E6","p-id":"28001"}),(0,r.jsx)("path",{d:"M724.48 571.562667v-94.890667a472.234667 472.234667 0 0 1-38.570667 94.890667zM313.002667 757.418667a514.56 514.56 0 0 1-104.448-15.36v119.466666a22.698667 22.698667 0 0 0 22.698666 22.698667h81.749334z",fill:"#FFEBCC","p-id":"28002"}),(0,r.jsx)("path",{d:"M594.944 582.826667l-69.12 54.954666a51.2 51.2 0 0 1-32.085333 11.264h-154.965334a25.6 25.6 0 0 0-25.770666 25.770667v209.578667a25.770667 25.770667 0 0 0 25.770666 25.770666h450.901334a25.941333 25.941333 0 0 0 25.770666-25.770666V597.333333a25.941333 25.941333 0 0 0-25.770666-25.770666h-162.645334a51.2 51.2 0 0 0-32.085333 11.264z",fill:"#96DDFF","p-id":"28003"}),(0,r.jsx)("path",{d:"M564.224 840.874667a971.776 971.776 0 0 1-251.221333-31.402667v74.922667a25.770667 25.770667 0 0 0 25.770666 25.770666h450.901334a25.941333 25.941333 0 0 0 25.770666-25.770666v-74.922667a971.776 971.776 0 0 1-251.221333 31.402667z",fill:"#69BAF9","p-id":"28004"}),(0,r.jsx)("path",{d:"M789.674667 554.496h-0.853334l32.768-373.418667A39.936 39.936 0 0 0 785.066667 137.898667l-468.48-40.96A40.106667 40.106667 0 0 0 273.066667 133.12l-4.266667 49.664h-37.546667A39.765333 39.765333 0 0 0 191.488 221.866667v638.805333a39.765333 39.765333 0 0 0 39.765333 39.765333h68.266667a43.178667 43.178667 0 0 0 39.765333 26.794667h450.389334a43.008 43.008 0 0 0 42.837333-42.837333V597.333333a43.008 43.008 0 0 0-42.837333-42.837333zM307.2 136.533333a5.632 5.632 0 0 1 6.144-5.12l468.650667 40.96a5.632 5.632 0 0 1 5.12 6.144l-32.597334 375.978667h-12.970666V221.866667a39.765333 39.765333 0 0 0-39.765334-39.765334H303.445333z m-11.605333 538.794667v190.976h-64.341334a5.632 5.632 0 0 1-5.632-5.632V221.866667a5.632 5.632 0 0 1 5.632-5.632h470.528a5.632 5.632 0 0 1 5.632 5.632v332.629333h-80.384a68.266667 68.266667 0 0 0-42.666666 15.018667l-69.12 54.954666a34.133333 34.133333 0 0 1-21.504 7.509334h-154.965334a42.837333 42.837333 0 0 0-42.837333 42.837333z m502.784 209.066667a8.704 8.704 0 0 1-8.704 8.704H338.773333a8.704 8.704 0 0 1-8.704-8.704V674.816a8.704 8.704 0 0 1 8.704-8.704h154.965334a68.266667 68.266667 0 0 0 42.837333-15.018667l68.266667-54.954666a35.328 35.328 0 0 1 21.504-7.509334h162.645333a8.704 8.704 0 0 1 8.704 8.704z",fill:"#3D3D63","p-id":"28005"}),(0,r.jsx)("path",{d:"M744.789333 823.808h-64.341333a17.066667 17.066667 0 0 0 0 34.133333h64.341333a17.066667 17.066667 0 0 0 0-34.133333zM421.546667 309.248H512a17.066667 17.066667 0 0 0 0-34.133333h-90.453333a17.066667 17.066667 0 0 0 0 34.133333zM324.266667 406.016h283.989333a17.066667 17.066667 0 0 0 0-34.133333H324.266667a17.066667 17.066667 0 0 0 0 34.133333zM625.322667 474.965333a17.066667 17.066667 0 0 0-17.066667-17.066666H324.266667a17.066667 17.066667 0 0 0 0 34.133333h283.989333a17.066667 17.066667 0 0 0 17.066667-17.066667z",fill:"#3D3D63","p-id":"28006"})]})},s=function(){return(0,r.jsxs)("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"7028",className:"w-full h-full",children:[(0,r.jsx)("path",{d:"M163.560759 0.702493A152.675051 152.675051 0 0 0 11.822365 153.377544v632.243311a152.675051 152.675051 0 0 0 151.738394 151.738395h476.055797a152.675051 152.675051 0 0 0 152.675052-152.675052V314.950835A57.136062 57.136062 0 0 0 775.197622 274.674594L519.256163 17.093986a58.072719 58.072719 0 0 0-41.212898-17.093986z",fill:"#41CC8B","p-id":"7029"}),(0,r.jsx)("path",{d:"M775.197622 274.674594L519.256163 17.093986a57.604391 57.604391 0 0 0-29.738852-15.689001 5.854105 5.854105 0 0 0-6.790762 5.854105V131.834439a178.433112 178.433112 0 0 0 178.433113 178.433112H784.564189a5.854105 5.854105 0 0 0 5.854105-6.790762A55.965241 55.965241 0 0 0 775.197622 274.674594z",fill:"#05B25F","p-id":"7030"}),(0,r.jsx)("path",{d:"M667.482095 281.69952h114.03796a51.98445 51.98445 0 0 0-6.322433-7.024926L519.256163 17.093986l-7.727418-6.322433v114.506288A156.187514 156.187514 0 0 0 667.482095 281.69952z",fill:"#B0F9D7","p-id":"7031"}),(0,r.jsx)("path",{d:"M92.140681 419.856391h117.082095v28.333867H128.904459v39.807913h67.205123v28.802195H128.904459v46.832838h81.957466v28.802195H92.140681zM274.554585 523.825292L232.639195 462.005946h40.510405l14.284015 23.416419q6.322433 11.239881 12.644867 21.777269l5.151612-10.771553 6.322433-11.005716 11.942374-23.416419H363.068649l-41.91539 66.268465 44.72536 63.69266h-40.978733l-15.923165-23.416419L302.185959 555.671621l-7.024925-11.239881-7.024926 11.239881-6.088269 11.70821-13.347359 23.416419H229.829225zM400.534919 576.980563a65.565973 65.565973 0 0 1-19.903956-50.111137 64.629316 64.629316 0 0 1 21.777269-50.813629 76.57169 76.57169 0 0 1 51.047794-17.796478 66.50263 66.50263 0 0 1 41.681225 14.518179l-17.796478 22.011434a35.124628 35.124628 0 0 0-22.011434-8.664075 33.251315 33.251315 0 0 0-26.226389 11.239881 41.447062 41.447062 0 0 0-10.303224 29.504688 40.978733 40.978733 0 0 0 10.06906 28.802195 32.782987 32.782987 0 0 0 25.523896 11.005717 46.832838 46.832838 0 0 0 27.865539-11.005717l14.752344 23.416419a72.590899 72.590899 0 0 1-46.832838 15.689001 70.249257 70.249257 0 0 1-49.642808-17.796478zM535.88182 576.746398a63.926824 63.926824 0 0 1-20.840613-49.876972 67.439287 67.439287 0 0 1 20.372285-50.345301 65.565973 65.565973 0 0 1 46.832838-18.264806 57.838555 57.838555 0 0 1 44.72536 17.562314 65.331809 65.331809 0 0 1 14.986508 44.72536 51.047793 51.047793 0 0 1-1.873313 15.454836h-88.514064a35.827121 35.827121 0 0 0 13.113195 23.416419 40.276241 40.276241 0 0 0 26.460553 8.429911 62.990167 62.990167 0 0 0 32.080494-9.132403l12.87903 21.074777a93.665676 93.665676 0 0 1-50.111136 14.284015 71.420078 71.420078 0 0 1-50.111137-17.32815z m73.527556-63.224331c0-19.201464-9.132403-28.802195-27.163046-28.802195a29.504688 29.504688 0 0 0-20.138121 7.25909 33.719643 33.719643 0 0 0-11.005716 21.543105zM672.399543 555.671621v-149.396752h37.232106V555.671621a10.771553 10.771553 0 0 0 2.575806 7.961583 6.322433 6.322433 0 0 0 5.151612 2.341642h5.151612l4.44912 25.289732a53.857764 53.857764 0 0 1-19.435628 3.044135c-23.416419 0.468328-35.124628-12.644866-35.124628-38.637092z",fill:"#F5F6FA","p-id":"7032"})]})},c=function(){return(0,r.jsxs)("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"34873",className:"w-full h-full",children:[(0,r.jsx)("path",{d:"M392.32 403.84a48 48 0 0 1-48 48h-96a48 48 0 0 1-48-48V236.16h192z",fill:"#EA5E5A","p-id":"34874"}),(0,r.jsx)("path",{d:"M259.84 176h24.32v24.32h-24.32zM307.84 176h24.32v24.32h-24.32z",fill:"#34303D","p-id":"34875"}),(0,r.jsx)("path",{d:"M380.16 236.16h-24.32V152.32H236.16v83.84h-24.32V128h168.32v108.16z",fill:"#34303D","p-id":"34876"}),(0,r.jsx)("path",{d:"M344.32 464h-96a60.16 60.16 0 0 1-60.16-60.16V224h215.68v179.84a60.16 60.16 0 0 1-60.16 60.16zM211.84 248.32v155.52a35.84 35.84 0 0 0 35.84 35.84h96a35.84 35.84 0 0 0 35.84-35.84V248.32z",fill:"#34303D","p-id":"34877"}),(0,r.jsx)("path",{d:"M236.16 272h120.32v24.32H236.16zM236.16 320h120.32v24.32H236.16zM320 512h-48a24.32 24.32 0 0 1-23.68-23.68v-36.48h24.32v35.84H320v-35.84h24.32v35.84A24.32 24.32 0 0 1 320 512z",fill:"#34303D","p-id":"34878"}),(0,r.jsx)("path",{d:"M632.32 620.16a48 48 0 0 1 48-48h96a48 48 0 0 1 48 48v168.32h-192z",fill:"#EA5E5A","p-id":"34879"}),(0,r.jsx)("path",{d:"M739.84 824.32h24.32v24.32h-24.32zM691.84 824.32h24.32v24.32h-24.32z",fill:"#34303D","p-id":"34880"}),(0,r.jsx)("path",{d:"M812.16 896h-168.32v-108.16h24.32v84.48h119.68v-84.48h24.32V896z",fill:"#34303D","p-id":"34881"}),(0,r.jsx)("path",{d:"M835.84 800H620.16V620.16a60.16 60.16 0 0 1 60.16-60.16h96a60.16 60.16 0 0 1 60.16 60.16z m-192-23.68h168.32V620.16a35.84 35.84 0 0 0-35.84-35.84h-96a35.84 35.84 0 0 0-35.84 35.84z",fill:"#34303D","p-id":"34882"}),(0,r.jsx)("path",{d:"M668.16 680.32h120.32v24.32h-120.32zM668.16 728.32h120.32v24.32h-120.32zM776.32 572.16h-23.68v-35.84H704v35.84h-23.68v-35.84A24.32 24.32 0 0 1 704 512h48a24.32 24.32 0 0 1 24.32 24.32z",fill:"#34303D","p-id":"34883"}),(0,r.jsx)("path",{d:"M403.84 848a120.32 120.32 0 0 1-119.68-119.68V499.84h24.32v227.84a96 96 0 0 0 192 0V296.32a120.32 120.32 0 0 1 240 0v227.84h-23.68V296.32a96 96 0 0 0-192 0v432a120.32 120.32 0 0 1-119.68 120.32z",fill:"#34303D","p-id":"34884"}),(0,r.jsx)("path",{d:"M608 284.16h24.32v24.32H608zM608 332.16h24.32v24.32H608zM608 380.16h24.32v24.32H608zM392.32 620.16h24.32v24.32h-24.32zM392.32 668.16h24.32v24.32h-24.32zM392.32 716.16h24.32v24.32h-24.32z",fill:"#34303D","p-id":"34885"}),(0,r.jsx)("path",{d:"M691.84 296.32h-23.68a48 48 0 0 0-96 0h-24.32a72.32 72.32 0 0 1 144 0zM403.84 800a72.32 72.32 0 0 1-71.68-71.68h24.32a48 48 0 0 0 96 0h24.32a72.32 72.32 0 0 1-72.96 71.68z",fill:"#34303D","p-id":"34886"})]})},u=function(){return(0,r.jsx)("svg",{width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 1024 1024",children:(0,r.jsx)("path",{d:"M593.054 120.217C483.656 148.739 402.91 248.212 402.91 366.546c0 140.582 113.962 254.544 254.544 254.544 118.334 0 217.808-80.746 246.328-190.144C909.17 457.12 912 484.23 912 512c0 220.914-179.086 400-400 400S112 732.914 112 512s179.086-400 400-400c27.77 0 54.88 2.83 81.054 8.217z","p-id":"5941"})})},f=function(){return(0,r.jsx)("svg",{width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 1024 1024",version:"1.1",children:(0,r.jsx)("path",{d:"M513.89 950.72c-5.5 0-11-1.4-15.99-4.2L143.84 743c-9.85-5.73-15.99-16.17-15.99-27.64V308.58c0-11.33 6.14-21.91 15.99-27.64L497.9 77.43c9.85-5.73 22.14-5.73 31.99 0l354.06 203.52c9.85 5.73 15.99 16.17 15.99 27.64V715.5c0 11.33-6.14 21.91-15.99 27.64L529.89 946.52c-4.99 2.8-10.49 4.2-16 4.2zM191.83 697.15L513.89 882.2l322.07-185.05V326.92L513.89 141.87 191.83 326.92v370.23z m322.06-153.34c-5.37 0-10.88-1.4-15.99-4.33L244.29 393.91c-15.35-8.79-20.6-28.27-11.77-43.56 8.83-15.28 28.41-20.5 43.76-11.72l253.61 145.7c15.35 8.79 20.6 28.27 11.77 43.56-6.01 10.32-16.76 15.92-27.77 15.92z m0 291.52c-17.66 0-31.99-14.26-31.99-31.84V530.44L244.55 393.91s-0.13 0-0.13-0.13l-100.45-57.69c-15.35-8.79-20.6-28.27-11.77-43.56s28.41-20.5 43.76-11.72l354.06 203.52c9.85 5.73 15.99 16.17 15.99 27.64v291.39c-0.13 17.71-14.46 31.97-32.12 31.97z m0 115.39c-17.66 0-31.99-14.26-31.99-31.84V511.97c0-17.58 14.33-31.84 31.99-31.84s31.99 14.26 31.99 31.84v406.91c0 17.7-14.33 31.84-31.99 31.84z m0-406.91c-11 0-21.75-5.73-27.77-15.92-8.83-15.28-3.58-34.64 11.77-43.56l354.06-203.52c15.35-8.79 34.8-3.57 43.76 11.72 8.83 15.28 3.58 34.64-11.77 43.56L529.89 539.61c-4.99 2.93-10.49 4.2-16 4.2z"})})},d=function(){return(0,r.jsx)("svg",{width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 1024 1024",version:"1.1",children:(0,r.jsx)("path",{d:"M602.24 246.72a17.28 17.28 0 0 0-11.84-16.32l-42.88-14.4A90.56 90.56 0 0 1 490.24 160l-14.4-42.88a17.28 17.28 0 0 0-32 0L428.8 160a90.56 90.56 0 0 1-57.28 57.28l-42.88 14.4a17.28 17.28 0 0 0 0 32l42.88 14.4a90.56 90.56 0 0 1 57.28 57.28l14.4 42.88a17.28 17.28 0 0 0 32 0l14.4-42.88a90.56 90.56 0 0 1 57.28-57.28l42.88-14.4a17.28 17.28 0 0 0 12.48-16.96z m301.12 221.76l-48.32-16a101.44 101.44 0 0 1-64-64l-16-48.32a19.2 19.2 0 0 0-36.8 0l-16 48.32a101.44 101.44 0 0 1-64 64l-48.32 16a19.2 19.2 0 0 0 0 36.8l48.32 16a101.44 101.44 0 0 1 64 64l16 48.32a19.2 19.2 0 0 0 36.8 0l16-48.32a101.44 101.44 0 0 1 64-64l48.32-16a19.2 19.2 0 0 0 0-36.8z m-376.64 195.52l-64-20.8a131.84 131.84 0 0 1-83.52-83.52l-20.8-64a25.28 25.28 0 0 0-47.68 0l-20.8 64a131.84 131.84 0 0 1-82.24 83.52l-64 20.8a25.28 25.28 0 0 0 0 47.68l64 20.8a131.84 131.84 0 0 1 83.52 83.84l20.8 64a25.28 25.28 0 0 0 47.68 0l20.8-64a131.84 131.84 0 0 1 83.52-83.52l64-20.8a25.28 25.28 0 0 0 0-47.68z","p-id":"3992"})})},p=function(){return(0,r.jsx)("svg",{width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 1024 1024",children:(0,r.jsx)("path",{d:"M554.6 64h-85.4v128h85.4V64z m258.2 87.4L736 228.2l59.8 59.8 76.8-76.8-59.8-59.8z m-601.6 0l-59.8 59.8 76.8 76.8 59.8-59.8-76.8-76.8zM512 256c-140.8 0-256 115.2-256 256s115.2 256 256 256 256-115.2 256-256-115.2-256-256-256z m448 213.4h-128v85.4h128v-85.4z m-768 0H64v85.4h128v-85.4zM795.8 736L736 795.8l76.8 76.8 59.8-59.8-76.8-76.8z m-567.6 0l-76.8 76.8 59.8 59.8 76.8-76.8-59.8-59.8z m326.4 96h-85.4v128h85.4v-128z","p-id":"7802"})})};function h(){return(0,r.jsxs)("svg",{className:"mr-1",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4602",width:"1.5em",height:"1.5em",children:[(0,r.jsx)("path",{d:"M688 312v-48c0-4.4-3.6-8-8-8H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8zM296 400c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H296zM672 516c-119.3 0-216 96.7-216 216s96.7 216 216 216 216-96.7 216-216-96.7-216-216-216z m107.5 323.5C750.8 868.2 712.6 884 672 884s-78.8-15.8-107.5-44.5C535.8 810.8 520 772.6 520 732s15.8-78.8 44.5-107.5C593.2 595.8 631.4 580 672 580s78.8 15.8 107.5 44.5C808.2 653.2 824 691.4 824 732s-15.8 78.8-44.5 107.5z","p-id":"4603",fill:"#87d068"}),(0,r.jsx)("path",{d:"M761 656h-44.3c-2.6 0-5 1.2-6.5 3.3l-63.5 87.8-23.1-31.9c-1.5-2.1-3.9-3.3-6.5-3.3H573c-6.5 0-10.3 7.4-6.5 12.7l73.8 102.1c3.2 4.4 9.7 4.4 12.9 0l114.2-158c3.9-5.3 0.1-12.7-6.4-12.7z","p-id":"4604",fill:"#87d068"}),(0,r.jsx)("path",{d:"M440 852H208V148h560v344c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h272c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z","p-id":"4605",fill:"#87d068"})]})}function m(){return(0,r.jsxs)("svg",{className:"mr-1",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4838",width:"1.5em",height:"1.5em",children:[(0,r.jsx)("path",{d:"M296 256c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H296zM488 456v-48c0-4.4-3.6-8-8-8H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8z","p-id":"4839",fill:"#2db7f5"}),(0,r.jsx)("path",{d:"M440 852H208V148h560v344c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h272c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z","p-id":"4840",fill:"#2db7f5"}),(0,r.jsx)("path",{d:"M544.1 736.4c1.8-34.5 16.2-66.8 40.8-91.4 26.2-26.2 62-41 99.1-41 37.4 0 72.6 14.6 99.1 41 3.2 3.2 6.3 6.6 9.2 10.1L769.2 673c-5.3 4.1-3.5 12.5 3 14.1l93.3 22.5c5 1.2 9.8-2.6 9.9-7.7l0.6-95.4c0-6.7-7.6-10.5-12.9-6.4l-20.3 15.8C805.4 569.6 748.1 540 684 540c-109.9 0-199.6 86.9-204 195.7-0.2 4.5 3.5 8.3 8 8.3h48.1c4.3 0 7.8-3.3 8-7.6zM880 744h-48.1c-4.3 0-7.8 3.3-8 7.6-1.8 34.5-16.2 66.8-40.8 91.4-26.2 26.2-62 41-99.1 41-37.4 0-72.6-14.6-99.1-41-3.2-3.2-6.3-6.6-9.2-10.1l23.1-17.9c5.3-4.1 3.5-12.5-3-14.1l-93.3-22.5c-5-1.2-9.8 2.6-9.9 7.7l-0.6 95.4c0 6.7 7.6 10.5 12.9 6.4l20.3-15.8C562.6 918.4 619.9 948 684 948c109.9 0 199.6-86.9 204-195.7 0.2-4.5-3.5-8.3-8-8.3z","p-id":"4841",fill:"#2db7f5"})]})}function g(){return(0,r.jsxs)("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4260",width:"1em",height:"1em",children:[(0,r.jsx)("path",{d:"M114.5856 951.04h298.24v-71.68H186.2656v-747.52h593.92v271.36h71.68v-343.04h-737.28v890.88z",fill:"#747690","p-id":"4261"}),(0,r.jsx)("path",{d:"M662.4256 311.04h-358.4v-71.68h358.4v71.68zM508.8256 490.24h-204.8v-71.68h204.8v71.68zM668.8256 554.24a168.96 168.96 0 1 0 0 337.92 168.96 168.96 0 0 0 0-337.92z m-240.64 168.96a240.64 240.64 0 1 1 481.28 0 240.64 240.64 0 0 1-481.28 0z",fill:"#747690","p-id":"4262"}),(0,r.jsx)("path",{d:"M629.76 588.8h71.68v131.4304l82.5856 41.3184-32.0512 64.1024-122.2144-61.0816V588.8z",fill:"#747690","p-id":"4263"})]})}function v(){return(0,r.jsx)("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"9211",width:"1em",height:"1em",children:(0,r.jsx)("path",{d:"M151.5 586.2c-5-24.2-7.5-49.2-7.5-74.2s2.5-50 7.5-74.2c4.8-23.6 12-46.8 21.4-69 9.2-21.8 20.6-42.8 33.9-62.5 13.2-19.5 28.3-37.8 45-54.5s35-31.8 54.5-45c19.7-13.3 40.7-24.7 62.5-33.9 22.2-9.4 45.4-16.6 69-21.4 48.5-9.9 99.9-9.9 148.4 0 23.6 4.8 46.8 12 69 21.4 21.8 9.2 42.8 20.6 62.5 33.9 19.5 13.2 37.8 28.3 54.5 45 1.4 1.4 2.8 2.8 4.1 4.2H688c-17.7 0-32 14.3-32 32s14.3 32 32 32h160c17.7 0 32-14.3 32-32V128c0-17.7-14.3-32-32-32s-32 14.3-32 32v77.1c-19.2-19-40.1-36.2-62.4-51.3-23.1-15.6-47.8-29-73.4-39.8-26.1-11-53.4-19.5-81.1-25.2-56.9-11.6-117.1-11.6-174.1 0-27.8 5.7-55.1 14.2-81.1 25.2-25.6 10.8-50.3 24.2-73.4 39.8-22.9 15.4-44.4 33.2-63.9 52.7s-37.3 41-52.7 63.9c-15.6 23.1-29 47.8-39.8 73.4-11 26.1-19.5 53.4-25.2 81.1C83 453.4 80 482.7 80 512s3 58.6 8.8 87c3.1 15.2 16.4 25.6 31.3 25.6 2.1 0 4.3-0.2 6.4-0.7 17.4-3.5 28.5-20.4 25-37.7zM935.2 425c-3.5-17.3-20.5-28.5-37.8-24.9-17.3 3.5-28.5 20.5-24.9 37.8 5 24.2 7.5 49.2 7.5 74.2s-2.5 50-7.5 74.2c-4.8 23.6-12 46.8-21.4 69-9.2 21.8-20.6 42.8-33.9 62.5-13.2 19.5-28.3 37.8-45 54.5s-35 31.8-54.5 45C698 830.6 677 842 655.2 851.2c-22.2 9.4-45.4 16.6-69 21.4-48.5 9.9-99.9 9.9-148.4 0-23.6-4.8-46.8-12-69-21.4-21.8-9.2-42.8-20.6-62.5-33.9-19.5-13.2-37.8-28.3-54.5-45-1.4-1.4-2.8-2.8-4.1-4.2H336c17.7 0 32-14.3 32-32s-14.3-32-32-32H176c-17.7 0-32 14.3-32 32v160c0 17.7 14.3 32 32 32s32-14.3 32-32V819c19.2 19 40.1 36.2 62.4 51.3 23.1 15.6 47.8 29 73.4 39.8 26.1 11 53.4 19.5 81.1 25.2 28.5 5.8 57.7 8.8 87 8.8s58.6-3 87-8.8c27.8-5.7 55-14.2 81.1-25.2 25.6-10.8 50.3-24.2 73.4-39.8 22.9-15.5 44.4-33.2 63.9-52.7s37.3-41 52.7-63.9c15.6-23.1 29-47.8 39.8-73.4 11-26.1 19.5-53.4 25.2-81.1 5.8-28.5 8.8-57.7 8.8-87 0.2-29.5-2.8-58.8-8.6-87.2z",fill:"#1875F0","p-id":"9212"})})}function y(){return(0,r.jsx)("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8865",width:"1em",height:"1em",children:(0,r.jsx)("path",{d:"M168 504.2c1-43.7 10-86.1 26.9-126 17.3-41 42.1-77.7 73.7-109.4S337 212.3 378 195c42.4-17.9 87.4-27 133.9-27s91.5 9.1 133.8 27c40.9 17.3 77.7 42.1 109.3 73.8 9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47c-5.3 4.1-3.5 12.5 3 14.1l175.7 43c5 1.2 9.9-2.6 9.9-7.7l0.8-180.9c0-6.7-7.7-10.5-12.9-6.3l-56.4 44.1C765.8 155.1 646.2 92 511.8 92 282.7 92 96.3 275.6 92 503.8c-0.1 4.5 3.5 8.2 8 8.2h60c4.4 0 7.9-3.5 8-7.8zM924 512h-60c-4.4 0-7.9 3.5-8 7.8-1 43.7-10 86.1-26.9 126-17.3 41-42.1 77.8-73.7 109.4S687 811.7 646 829c-42.4 17.9-87.4 27-133.9 27s-91.5-9.1-133.9-27c-40.9-17.3-77.7-42.1-109.3-73.8-9.9-9.9-19.2-20.4-27.8-31.4l60.2-47c5.3-4.1 3.5-12.5-3-14.1l-175.7-43c-5-1.2-9.9 2.6-9.9 7.7l-0.7 181c0 6.7 7.7 10.5 12.9 6.3l56.4-44.1C258.2 868.9 377.8 932 512.2 932c229.2 0 415.5-183.7 419.8-411.8 0.1-4.5-3.5-8.2-8-8.2z","p-id":"8866",fill:"#1296db"})})}n(67294)},32665:function(e,t,n){"use strict";function r(e){}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"clientHookInServerComponentError",{enumerable:!0,get:function(){return r}}),n(38754),n(67294),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},41219:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ReadonlyURLSearchParams:function(){return p},useSearchParams:function(){return h},usePathname:function(){return m},ServerInsertedHTMLContext:function(){return s.ServerInsertedHTMLContext},useServerInsertedHTML:function(){return s.useServerInsertedHTML},useRouter:function(){return g},useParams:function(){return v},useSelectedLayoutSegments:function(){return y},useSelectedLayoutSegment:function(){return b},redirect:function(){return c.redirect},notFound:function(){return u.notFound}});let r=n(67294),o=n(27473),i=n(35802),a=n(32665),l=n(43512),s=n(98751),c=n(96885),u=n(86323),f=Symbol("internal for urlsearchparams readonly");function d(){return Error("ReadonlyURLSearchParams cannot be modified")}class p{[Symbol.iterator](){return this[f][Symbol.iterator]()}append(){throw d()}delete(){throw d()}set(){throw d()}sort(){throw d()}constructor(e){this[f]=e,this.entries=e.entries.bind(e),this.forEach=e.forEach.bind(e),this.get=e.get.bind(e),this.getAll=e.getAll.bind(e),this.has=e.has.bind(e),this.keys=e.keys.bind(e),this.values=e.values.bind(e),this.toString=e.toString.bind(e)}}function h(){(0,a.clientHookInServerComponentError)("useSearchParams");let e=(0,r.useContext)(i.SearchParamsContext),t=(0,r.useMemo)(()=>e?new p(e):null,[e]);return t}function m(){return(0,a.clientHookInServerComponentError)("usePathname"),(0,r.useContext)(i.PathnameContext)}function g(){(0,a.clientHookInServerComponentError)("useRouter");let e=(0,r.useContext)(o.AppRouterContext);if(null===e)throw Error("invariant expected app router to be mounted");return e}function v(){(0,a.clientHookInServerComponentError)("useParams");let e=(0,r.useContext)(o.GlobalLayoutRouterContext);return e?function e(t,n){void 0===n&&(n={});let r=t[1];for(let t of Object.values(r)){let r=t[0],o=Array.isArray(r),i=o?r[1]:r;!i||i.startsWith("__PAGE__")||(o&&(n[r[0]]=r[1]),n=e(t,n))}return n}(e.tree):null}function y(e){void 0===e&&(e="children"),(0,a.clientHookInServerComponentError)("useSelectedLayoutSegments");let{tree:t}=(0,r.useContext)(o.LayoutRouterContext);return function e(t,n,r,o){let i;if(void 0===r&&(r=!0),void 0===o&&(o=[]),r)i=t[1][n];else{var a;let e=t[1];i=null!=(a=e.children)?a:Object.values(e)[0]}if(!i)return o;let s=i[0],c=(0,l.getSegmentValue)(s);return!c||c.startsWith("__PAGE__")?o:(o.push(c),e(i,n,!1,o))}(t,e)}function b(e){void 0===e&&(e="children"),(0,a.clientHookInServerComponentError)("useSelectedLayoutSegment");let t=y(e);return 0===t.length?null:t[0]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},86323:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{notFound:function(){return r},isNotFoundError:function(){return o}});let n="NEXT_NOT_FOUND";function r(){let e=Error(n);throw e.digest=n,e}function o(e){return(null==e?void 0:e.digest)===n}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},96885:function(e,t,n){"use strict";var r,o;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{RedirectType:function(){return r},getRedirectError:function(){return l},redirect:function(){return s},isRedirectError:function(){return c},getURLFromRedirectError:function(){return u},getRedirectTypeFromError:function(){return f}});let i=n(68214),a="NEXT_REDIRECT";function l(e,t){let n=Error(a);n.digest=a+";"+t+";"+e;let r=i.requestAsyncStorage.getStore();return r&&(n.mutableCookies=r.mutableCookies),n}function s(e,t){throw void 0===t&&(t="replace"),l(e,t)}function c(e){if("string"!=typeof(null==e?void 0:e.digest))return!1;let[t,n,r]=e.digest.split(";",3);return t===a&&("replace"===n||"push"===n)&&"string"==typeof r}function u(e){return c(e)?e.digest.split(";",3)[2]:null}function f(e){if(!c(e))throw Error("Not a redirect error");return e.digest.split(";",3)[1]}(o=r||(r={})).push="push",o.replace="replace",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},43512:function(e,t){"use strict";function n(e){return Array.isArray(e)?e[1]:e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSegmentValue",{enumerable:!0,get:function(){return n}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},29382:function(e,t){"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{PrefetchKind:function(){return n},ACTION_REFRESH:function(){return o},ACTION_NAVIGATE:function(){return i},ACTION_RESTORE:function(){return a},ACTION_SERVER_PATCH:function(){return l},ACTION_PREFETCH:function(){return s},ACTION_FAST_REFRESH:function(){return c},ACTION_SERVER_ACTION:function(){return u}});let o="refresh",i="navigate",a="restore",l="server-patch",s="prefetch",c="fast-refresh",u="server-action";(r=n||(n={})).AUTO="auto",r.FULL="full",r.TEMPORARY="temporary",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},75476:function(e,t){"use strict";function n(e,t,n,r){return!1}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return n}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},69873:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return y}});let r=n(38754),o=n(61757),i=o._(n(67294)),a=r._(n(68965)),l=n(38083),s=n(2478),c=n(76226);n(59941);let u=r._(n(31720)),f={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image/",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0};function d(e){return void 0!==e.default}function p(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function h(e,t,n,r,o,i,a){if(!e||e["data-loaded-src"]===t)return;e["data-loaded-src"]=t;let l="decode"in e?e.decode():Promise.resolve();l.catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("blur"===n&&i(!0),null==r?void 0:r.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let n=!1,o=!1;r.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>n,isPropagationStopped:()=>o,persist:()=>{},preventDefault:()=>{n=!0,t.preventDefault()},stopPropagation:()=>{o=!0,t.stopPropagation()}})}(null==o?void 0:o.current)&&o.current(e)}})}function m(e){let[t,n]=i.version.split("."),r=parseInt(t,10),o=parseInt(n,10);return r>18||18===r&&o>=3?{fetchPriority:e}:{fetchpriority:e}}let g=(0,i.forwardRef)((e,t)=>{let{imgAttributes:n,heightInt:r,widthInt:o,qualityInt:a,className:l,imgStyle:s,blurStyle:c,isLazy:u,fetchPriority:f,fill:d,placeholder:p,loading:g,srcString:v,config:y,unoptimized:b,loader:x,onLoadRef:w,onLoadingCompleteRef:C,setBlurComplete:S,setShowAltText:E,onLoad:$,onError:O,...k}=e;return g=u?"lazy":g,i.default.createElement("img",{...k,...m(f),loading:g,width:o,height:r,decoding:"async","data-nimg":d?"fill":"1",className:l,style:{...s,...c},...n,ref:(0,i.useCallback)(e=>{t&&("function"==typeof t?t(e):"object"==typeof t&&(t.current=e)),e&&(O&&(e.src=e.src),e.complete&&h(e,v,p,w,C,S,b))},[v,p,w,C,S,O,b,t]),onLoad:e=>{let t=e.currentTarget;h(t,v,p,w,C,S,b)},onError:e=>{E(!0),"blur"===p&&S(!0),O&&O(e)}})}),v=(0,i.forwardRef)((e,t)=>{var n;let r,o,{src:h,sizes:v,unoptimized:y=!1,priority:b=!1,loading:x,className:w,quality:C,width:S,height:E,fill:$,style:O,onLoad:k,onLoadingComplete:j,placeholder:P="empty",blurDataURL:Z,fetchPriority:_,layout:A,objectFit:M,objectPosition:R,lazyBoundary:N,lazyRoot:T,...F}=e,I=(0,i.useContext)(c.ImageConfigContext),L=(0,i.useMemo)(()=>{let e=f||I||s.imageConfigDefault,t=[...e.deviceSizes,...e.imageSizes].sort((e,t)=>e-t),n=e.deviceSizes.sort((e,t)=>e-t);return{...e,allSizes:t,deviceSizes:n}},[I]),B=F.loader||u.default;delete F.loader;let z="__next_img_default"in B;if(z){if("custom"===L.loader)throw Error('Image with src "'+h+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader')}else{let e=B;B=t=>{let{config:n,...r}=t;return e(r)}}if(A){"fill"===A&&($=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[A];e&&(O={...O,...e});let t={responsive:"100vw",fill:"100vw"}[A];t&&!v&&(v=t)}let D="",H=p(S),V=p(E);if("object"==typeof(n=h)&&(d(n)||void 0!==n.src)){let e=d(h)?h.default:h;if(!e.src)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(e));if(!e.height||!e.width)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(e));if(r=e.blurWidth,o=e.blurHeight,Z=Z||e.blurDataURL,D=e.src,!$){if(H||V){if(H&&!V){let t=H/e.width;V=Math.round(e.height*t)}else if(!H&&V){let t=V/e.height;H=Math.round(e.width*t)}}else H=e.width,V=e.height}}let U=!b&&("lazy"===x||void 0===x);(!(h="string"==typeof h?h:D)||h.startsWith("data:")||h.startsWith("blob:"))&&(y=!0,U=!1),L.unoptimized&&(y=!0),z&&h.endsWith(".svg")&&!L.dangerouslyAllowSVG&&(y=!0),b&&(_="high");let[W,q]=(0,i.useState)(!1),[K,G]=(0,i.useState)(!1),X=p(C),Y=Object.assign($?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:M,objectPosition:R}:{},K?{}:{color:"transparent"},O),J="blur"===P&&Z&&!W?{backgroundSize:Y.objectFit||"cover",backgroundPosition:Y.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:'url("data:image/svg+xml;charset=utf-8,'+(0,l.getImageBlurSvg)({widthInt:H,heightInt:V,blurWidth:r,blurHeight:o,blurDataURL:Z,objectFit:Y.objectFit})+'")'}:{},Q=function(e){let{config:t,src:n,unoptimized:r,width:o,quality:i,sizes:a,loader:l}=e;if(r)return{src:n,srcSet:void 0,sizes:void 0};let{widths:s,kind:c}=function(e,t,n){let{deviceSizes:r,allSizes:o}=e;if(n){let e=/(^|\s)(1?\d?\d)vw/g,t=[];for(let r;r=e.exec(n);r)t.push(parseInt(r[2]));if(t.length){let e=.01*Math.min(...t);return{widths:o.filter(t=>t>=r[0]*e),kind:"w"}}return{widths:o,kind:"w"}}if("number"!=typeof t)return{widths:r,kind:"w"};let i=[...new Set([t,2*t].map(e=>o.find(t=>t>=e)||o[o.length-1]))];return{widths:i,kind:"x"}}(t,o,a),u=s.length-1;return{sizes:a||"w"!==c?a:"100vw",srcSet:s.map((e,r)=>l({config:t,src:n,quality:i,width:e})+" "+("w"===c?e:r+1)+c).join(", "),src:l({config:t,src:n,quality:i,width:s[u]})}}({config:L,src:h,unoptimized:y,width:H,quality:X,sizes:v,loader:B}),ee=h,et=(0,i.useRef)(k);(0,i.useEffect)(()=>{et.current=k},[k]);let en=(0,i.useRef)(j);(0,i.useEffect)(()=>{en.current=j},[j]);let er={isLazy:U,imgAttributes:Q,heightInt:V,widthInt:H,qualityInt:X,className:w,imgStyle:Y,blurStyle:J,loading:x,config:L,fetchPriority:_,fill:$,unoptimized:y,placeholder:P,loader:B,srcString:ee,onLoadRef:et,onLoadingCompleteRef:en,setBlurComplete:q,setShowAltText:G,...F};return i.default.createElement(i.default.Fragment,null,i.default.createElement(g,{...er,ref:t}),b?i.default.createElement(a.default,null,i.default.createElement("link",{key:"__nimg-"+Q.src+Q.srcSet+Q.sizes,rel:"preload",as:"image",href:Q.srcSet?void 0:Q.src,imageSrcSet:Q.srcSet,imageSizes:Q.sizes,crossOrigin:F.crossOrigin,referrerPolicy:F.referrerPolicy,...m(_)})):null)}),y=v;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9940:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return x}});let r=n(38754),o=r._(n(67294)),i=n(65722),a=n(65723),l=n(28904),s=n(95514),c=n(27521),u=n(44293),f=n(27473),d=n(81307),p=n(75476),h=n(66318),m=n(29382),g=new Set;function v(e,t,n,r,o,i){if(!i&&!(0,a.isLocalURL)(t))return;if(!r.bypassPrefetchedCheck){let o=void 0!==r.locale?r.locale:"locale"in e?e.locale:void 0,i=t+"%"+n+"%"+o;if(g.has(i))return;g.add(i)}let l=i?e.prefetch(t,o):e.prefetch(t,n,r);Promise.resolve(l).catch(e=>{})}function y(e){return"string"==typeof e?e:(0,l.formatUrl)(e)}let b=o.default.forwardRef(function(e,t){let n,r;let{href:l,as:g,children:b,prefetch:x=null,passHref:w,replace:C,shallow:S,scroll:E,locale:$,onClick:O,onMouseEnter:k,onTouchStart:j,legacyBehavior:P=!1,...Z}=e;n=b,P&&("string"==typeof n||"number"==typeof n)&&(n=o.default.createElement("a",null,n));let _=!1!==x,A=null===x?m.PrefetchKind.AUTO:m.PrefetchKind.FULL,M=o.default.useContext(u.RouterContext),R=o.default.useContext(f.AppRouterContext),N=null!=M?M:R,T=!M,{href:F,as:I}=o.default.useMemo(()=>{if(!M){let e=y(l);return{href:e,as:g?y(g):e}}let[e,t]=(0,i.resolveHref)(M,l,!0);return{href:e,as:g?(0,i.resolveHref)(M,g):t||e}},[M,l,g]),L=o.default.useRef(F),B=o.default.useRef(I);P&&(r=o.default.Children.only(n));let z=P?r&&"object"==typeof r&&r.ref:t,[D,H,V]=(0,d.useIntersection)({rootMargin:"200px"}),U=o.default.useCallback(e=>{(B.current!==I||L.current!==F)&&(V(),B.current=I,L.current=F),D(e),z&&("function"==typeof z?z(e):"object"==typeof z&&(z.current=e))},[I,z,F,V,D]);o.default.useEffect(()=>{N&&H&&_&&v(N,F,I,{locale:$},{kind:A},T)},[I,F,H,$,_,null==M?void 0:M.locale,N,T,A]);let W={ref:U,onClick(e){P||"function"!=typeof O||O(e),P&&r.props&&"function"==typeof r.props.onClick&&r.props.onClick(e),N&&!e.defaultPrevented&&function(e,t,n,r,i,l,s,c,u,f){let{nodeName:d}=e.currentTarget,p="A"===d.toUpperCase();if(p&&(function(e){let t=e.currentTarget,n=t.getAttribute("target");return n&&"_self"!==n||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||!u&&!(0,a.isLocalURL)(n)))return;e.preventDefault();let h=()=>{"beforePopState"in t?t[i?"replace":"push"](n,r,{shallow:l,locale:c,scroll:s}):t[i?"replace":"push"](r||n,{forceOptimisticNavigation:!f})};u?o.default.startTransition(h):h()}(e,N,F,I,C,S,E,$,T,_)},onMouseEnter(e){P||"function"!=typeof k||k(e),P&&r.props&&"function"==typeof r.props.onMouseEnter&&r.props.onMouseEnter(e),N&&(_||!T)&&v(N,F,I,{locale:$,priority:!0,bypassPrefetchedCheck:!0},{kind:A},T)},onTouchStart(e){P||"function"!=typeof j||j(e),P&&r.props&&"function"==typeof r.props.onTouchStart&&r.props.onTouchStart(e),N&&(_||!T)&&v(N,F,I,{locale:$,priority:!0,bypassPrefetchedCheck:!0},{kind:A},T)}};if((0,s.isAbsoluteUrl)(I))W.href=I;else if(!P||w||"a"===r.type&&!("href"in r.props)){let e=void 0!==$?$:null==M?void 0:M.locale,t=(null==M?void 0:M.isLocaleDomain)&&(0,p.getDomainLocale)(I,e,null==M?void 0:M.locales,null==M?void 0:M.domainLocales);W.href=t||(0,h.addBasePath)((0,c.addLocale)(I,e,null==M?void 0:M.defaultLocale))}return P?o.default.cloneElement(r,W):o.default.createElement("a",{...Z,...W},n)}),x=b;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},81307:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return s}});let r=n(67294),o=n(82997),i="function"==typeof IntersectionObserver,a=new Map,l=[];function s(e){let{rootRef:t,rootMargin:n,disabled:s}=e,c=s||!i,[u,f]=(0,r.useState)(!1),d=(0,r.useRef)(null),p=(0,r.useCallback)(e=>{d.current=e},[]);(0,r.useEffect)(()=>{if(i){if(c||u)return;let e=d.current;if(e&&e.tagName){let r=function(e,t,n){let{id:r,observer:o,elements:i}=function(e){let t;let n={root:e.root||null,margin:e.rootMargin||""},r=l.find(e=>e.root===n.root&&e.margin===n.margin);if(r&&(t=a.get(r)))return t;let o=new Map,i=new IntersectionObserver(e=>{e.forEach(e=>{let t=o.get(e.target),n=e.isIntersecting||e.intersectionRatio>0;t&&n&&t(n)})},e);return t={id:n,observer:i,elements:o},l.push(n),a.set(n,t),t}(n);return i.set(e,t),o.observe(e),function(){if(i.delete(e),o.unobserve(e),0===i.size){o.disconnect(),a.delete(r);let e=l.findIndex(e=>e.root===r.root&&e.margin===r.margin);e>-1&&l.splice(e,1)}}}(e,e=>e&&f(e),{root:null==t?void 0:t.current,rootMargin:n});return r}}else if(!u){let e=(0,o.requestIdleCallback)(()=>f(!0));return()=>(0,o.cancelIdleCallback)(e)}},[c,n,t,u,d.current]);let h=(0,r.useCallback)(()=>{f(!1)},[]);return[p,u,h]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},38083:function(e,t){"use strict";function n(e){let{widthInt:t,heightInt:n,blurWidth:r,blurHeight:o,blurDataURL:i,objectFit:a}=e,l=r||t,s=o||n,c=i.startsWith("data:image/jpeg")?"%3CfeComponentTransfer%3E%3CfeFuncA type='discrete' tableValues='1 1'/%3E%3C/feComponentTransfer%3E%":"";return l&&s?"%3Csvg xmlns='http%3A//www.w3.org/2000/svg' viewBox='0 0 "+l+" "+s+"'%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='"+(r&&o?"1":"20")+"'/%3E"+c+"%3C/filter%3E%3Cimage preserveAspectRatio='none' filter='url(%23b)' x='0' y='0' height='100%25' width='100%25' href='"+i+"'/%3E%3C/svg%3E":"%3Csvg xmlns='http%3A//www.w3.org/2000/svg'%3E%3Cimage style='filter:blur(20px)' preserveAspectRatio='"+("contain"===a?"xMidYMid":"cover"===a?"xMidYMid slice":"none")+"' x='0' y='0' height='100%25' width='100%25' href='"+i+"'/%3E%3C/svg%3E"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImageBlurSvg",{enumerable:!0,get:function(){return n}})},31720:function(e,t){"use strict";function n(e){let{config:t,src:n,width:r,quality:o}=e;return t.path+"?url="+encodeURIComponent(n)+"&w="+r+"&q="+(o||75)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}}),n.__next_img_default=!0;let r=n},98751:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ServerInsertedHTMLContext:function(){return i},useServerInsertedHTML:function(){return a}});let r=n(61757),o=r._(n(67294)),i=o.default.createContext(null);function a(e){let t=(0,o.useContext)(i);t&&t(e)}},48271:function(e,t,n){"use strict";let r,o;n.r(t),n.d(t,{default:function(){return eT}});var i=n(85893),a=n(67294),l=n(41468),s=n(50489),c=n(98399),u=n(5455),f=n(59766),d=n(87462),p=n(63366),h=n(71387),m=n(70917);function g(e){let{styles:t,defaultTheme:n={}}=e,r="function"==typeof t?e=>t(null==e||0===Object.keys(e).length?n:e):t;return(0,i.jsx)(m.xB,{styles:r})}var v=n(56760),y=n(71927);let b="mode",x="color-scheme",w="data-color-scheme";function C(e){if("undefined"!=typeof window&&"system"===e){let e=window.matchMedia("(prefers-color-scheme: dark)");return e.matches?"dark":"light"}}function S(e,t){return"light"===e.mode||"system"===e.mode&&"light"===e.systemMode?t("light"):"dark"===e.mode||"system"===e.mode&&"dark"===e.systemMode?t("dark"):void 0}function E(e,t){let n;if("undefined"!=typeof window){try{(n=localStorage.getItem(e)||void 0)||localStorage.setItem(e,t)}catch(e){}return n||t}}let $=["colorSchemes","components","generateCssVars","cssVarPrefix"];var O=n(1812),k=n(13951),j=n(2548);let{CssVarsProvider:P,useColorScheme:Z,getInitColorSchemeScript:_}=function(e){let{themeId:t,theme:n={},attribute:r=w,modeStorageKey:o=b,colorSchemeStorageKey:l=x,defaultMode:s="light",defaultColorScheme:c,disableTransitionOnChange:u=!1,resolveTheme:m,excludeVariablesFromRoot:O}=e;n.colorSchemes&&("string"!=typeof c||n.colorSchemes[c])&&("object"!=typeof c||n.colorSchemes[null==c?void 0:c.light])&&("object"!=typeof c||n.colorSchemes[null==c?void 0:c.dark])||console.error(`MUI: \`${c}\` does not exist in \`theme.colorSchemes\`.`);let k=a.createContext(void 0),j="string"==typeof c?c:c.light,P="string"==typeof c?c:c.dark;return{CssVarsProvider:function({children:e,theme:h=n,modeStorageKey:w=o,colorSchemeStorageKey:j=l,attribute:P=r,defaultMode:Z=s,defaultColorScheme:_=c,disableTransitionOnChange:A=u,storageWindow:M="undefined"==typeof window?void 0:window,documentNode:R="undefined"==typeof document?void 0:document,colorSchemeNode:N="undefined"==typeof document?void 0:document.documentElement,colorSchemeSelector:T=":root",disableNestedContext:F=!1,disableStyleSheetGeneration:I=!1}){let L=a.useRef(!1),B=(0,v.Z)(),z=a.useContext(k),D=!!z&&!F,H=h[t],V=H||h,{colorSchemes:U={},components:W={},generateCssVars:q=()=>({vars:{},css:{}}),cssVarPrefix:K}=V,G=(0,p.Z)(V,$),X=Object.keys(U),Y="string"==typeof _?_:_.light,J="string"==typeof _?_:_.dark,{mode:Q,setMode:ee,systemMode:et,lightColorScheme:en,darkColorScheme:er,colorScheme:eo,setColorScheme:ei}=function(e){let{defaultMode:t="light",defaultLightColorScheme:n,defaultDarkColorScheme:r,supportedColorSchemes:o=[],modeStorageKey:i=b,colorSchemeStorageKey:l=x,storageWindow:s="undefined"==typeof window?void 0:window}=e,c=o.join(","),[u,f]=a.useState(()=>{let e=E(i,t),o=E(`${l}-light`,n),a=E(`${l}-dark`,r);return{mode:e,systemMode:C(e),lightColorScheme:o,darkColorScheme:a}}),p=S(u,e=>"light"===e?u.lightColorScheme:"dark"===e?u.darkColorScheme:void 0),h=a.useCallback(e=>{f(n=>{if(e===n.mode)return n;let r=e||t;try{localStorage.setItem(i,r)}catch(e){}return(0,d.Z)({},n,{mode:r,systemMode:C(r)})})},[i,t]),m=a.useCallback(e=>{e?"string"==typeof e?e&&!c.includes(e)?console.error(`\`${e}\` does not exist in \`theme.colorSchemes\`.`):f(t=>{let n=(0,d.Z)({},t);return S(t,t=>{try{localStorage.setItem(`${l}-${t}`,e)}catch(e){}"light"===t&&(n.lightColorScheme=e),"dark"===t&&(n.darkColorScheme=e)}),n}):f(t=>{let o=(0,d.Z)({},t),i=null===e.light?n:e.light,a=null===e.dark?r:e.dark;if(i){if(c.includes(i)){o.lightColorScheme=i;try{localStorage.setItem(`${l}-light`,i)}catch(e){}}else console.error(`\`${i}\` does not exist in \`theme.colorSchemes\`.`)}if(a){if(c.includes(a)){o.darkColorScheme=a;try{localStorage.setItem(`${l}-dark`,a)}catch(e){}}else console.error(`\`${a}\` does not exist in \`theme.colorSchemes\`.`)}return o}):f(e=>{try{localStorage.setItem(`${l}-light`,n),localStorage.setItem(`${l}-dark`,r)}catch(e){}return(0,d.Z)({},e,{lightColorScheme:n,darkColorScheme:r})})},[c,l,n,r]),g=a.useCallback(e=>{"system"===u.mode&&f(t=>(0,d.Z)({},t,{systemMode:null!=e&&e.matches?"dark":"light"}))},[u.mode]),v=a.useRef(g);return v.current=g,a.useEffect(()=>{let e=(...e)=>v.current(...e),t=window.matchMedia("(prefers-color-scheme: dark)");return t.addListener(e),e(t),()=>t.removeListener(e)},[]),a.useEffect(()=>{let e=e=>{let n=e.newValue;"string"==typeof e.key&&e.key.startsWith(l)&&(!n||c.match(n))&&(e.key.endsWith("light")&&m({light:n}),e.key.endsWith("dark")&&m({dark:n})),e.key===i&&(!n||["light","dark","system"].includes(n))&&h(n||t)};if(s)return s.addEventListener("storage",e),()=>s.removeEventListener("storage",e)},[m,h,i,l,c,t,s]),(0,d.Z)({},u,{colorScheme:p,setMode:h,setColorScheme:m})}({supportedColorSchemes:X,defaultLightColorScheme:Y,defaultDarkColorScheme:J,modeStorageKey:w,colorSchemeStorageKey:j,defaultMode:Z,storageWindow:M}),ea=Q,el=eo;D&&(ea=z.mode,el=z.colorScheme);let es=ea||("system"===Z?s:Z),ec=el||("dark"===es?J:Y),{css:eu,vars:ef}=q(),ed=(0,d.Z)({},G,{components:W,colorSchemes:U,cssVarPrefix:K,vars:ef,getColorSchemeSelector:e=>`[${P}="${e}"] &`}),ep={},eh={};Object.entries(U).forEach(([e,t])=>{let{css:n,vars:r}=q(e);ed.vars=(0,f.Z)(ed.vars,r),e===ec&&(Object.keys(t).forEach(e=>{t[e]&&"object"==typeof t[e]?ed[e]=(0,d.Z)({},ed[e],t[e]):ed[e]=t[e]}),ed.palette&&(ed.palette.colorScheme=e));let o="string"==typeof _?_:"dark"===Z?_.dark:_.light;if(e===o){if(O){let t={};O(K).forEach(e=>{t[e]=n[e],delete n[e]}),ep[`[${P}="${e}"]`]=t}ep[`${T}, [${P}="${e}"]`]=n}else eh[`${":root"===T?"":T}[${P}="${e}"]`]=n}),ed.vars=(0,f.Z)(ed.vars,ef),a.useEffect(()=>{el&&N&&N.setAttribute(P,el)},[el,P,N]),a.useEffect(()=>{let e;if(A&&L.current&&R){let t=R.createElement("style");t.appendChild(R.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),R.head.appendChild(t),window.getComputedStyle(R.body),e=setTimeout(()=>{R.head.removeChild(t)},1)}return()=>{clearTimeout(e)}},[el,A,R]),a.useEffect(()=>(L.current=!0,()=>{L.current=!1}),[]);let em=a.useMemo(()=>({mode:ea,systemMode:et,setMode:ee,lightColorScheme:en,darkColorScheme:er,colorScheme:el,setColorScheme:ei,allColorSchemes:X}),[X,el,er,en,ea,ei,ee,et]),eg=!0;(I||D&&(null==B?void 0:B.cssVarPrefix)===K)&&(eg=!1);let ev=(0,i.jsxs)(a.Fragment,{children:[eg&&(0,i.jsxs)(a.Fragment,{children:[(0,i.jsx)(g,{styles:{[T]:eu}}),(0,i.jsx)(g,{styles:ep}),(0,i.jsx)(g,{styles:eh})]}),(0,i.jsx)(y.Z,{themeId:H?t:void 0,theme:m?m(ed):ed,children:e})]});return D?ev:(0,i.jsx)(k.Provider,{value:em,children:ev})},useColorScheme:()=>{let e=a.useContext(k);if(!e)throw Error((0,h.Z)(19));return e},getInitColorSchemeScript:e=>(function(e){let{defaultMode:t="light",defaultLightColorScheme:n="light",defaultDarkColorScheme:r="dark",modeStorageKey:o=b,colorSchemeStorageKey:a=x,attribute:l=w,colorSchemeNode:s="document.documentElement"}=e||{};return(0,i.jsx)("script",{dangerouslySetInnerHTML:{__html:`(function() { try { + */var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,l=n?Symbol.for("react.profiler"):60114,s=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,f=n?Symbol.for("react.concurrent_mode"):60111,d=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,x=n?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case f:case i:case l:case a:case p:return e;default:switch(e=e&&e.$$typeof){case c:case d:case g:case m:case s:return e;default:return t}}case o:return t}}}function C(e){return w(e)===f}t.AsyncMode=u,t.ConcurrentMode=f,t.ContextConsumer=c,t.ContextProvider=s,t.Element=r,t.ForwardRef=d,t.Fragment=i,t.Lazy=g,t.Memo=m,t.Portal=o,t.Profiler=l,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return C(e)||w(e)===u},t.isConcurrentMode=C,t.isContextConsumer=function(e){return w(e)===c},t.isContextProvider=function(e){return w(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return w(e)===d},t.isFragment=function(e){return w(e)===i},t.isLazy=function(e){return w(e)===g},t.isMemo=function(e){return w(e)===m},t.isPortal=function(e){return w(e)===o},t.isProfiler=function(e){return w(e)===l},t.isStrictMode=function(e){return w(e)===a},t.isSuspense=function(e){return w(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===f||e===l||e===a||e===p||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===s||e.$$typeof===c||e.$$typeof===d||e.$$typeof===y||e.$$typeof===b||e.$$typeof===x||e.$$typeof===v)},t.typeOf=w},21296:function(e,t,n){"use strict";e.exports=n(96103)},62705:function(e,t,n){var r=n(55639).Symbol;e.exports=r},44239:function(e,t,n){var r=n(62705),o=n(89607),i=n(2333),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},27561:function(e,t,n){var r=n(67990),o=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(o,""):e}},31957:function(e,t,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},89607:function(e,t,n){var r=n(62705),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,l=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,l),n=e[l];try{e[l]=void 0;var r=!0}catch(e){}var o=a.call(e);return r&&(t?e[l]=n:delete e[l]),o}},2333:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},55639:function(e,t,n){var r=n(31957),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},67990:function(e){var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},23279:function(e,t,n){var r=n(13218),o=n(7771),i=n(14841),a=Math.max,l=Math.min;e.exports=function(e,t,n){var s,c,u,f,d,p,h=0,m=!1,g=!1,v=!0;if("function"!=typeof e)throw TypeError("Expected a function");function y(t){var n=s,r=c;return s=c=void 0,h=t,f=e.apply(r,n)}function b(e){var n=e-p,r=e-h;return void 0===p||n>=t||n<0||g&&r>=u}function x(){var e,n,r,i=o();if(b(i))return w(i);d=setTimeout(x,(e=i-p,n=i-h,r=t-e,g?l(r,u-n):r))}function w(e){return(d=void 0,v&&s)?y(e):(s=c=void 0,f)}function C(){var e,n=o(),r=b(n);if(s=arguments,c=this,p=n,r){if(void 0===d)return h=e=p,d=setTimeout(x,t),m?y(e):f;if(g)return clearTimeout(d),d=setTimeout(x,t),y(p)}return void 0===d&&(d=setTimeout(x,t)),f}return t=i(t)||0,r(n)&&(m=!!n.leading,u=(g="maxWait"in n)?a(i(n.maxWait)||0,t):u,v="trailing"in n?!!n.trailing:v),C.cancel=function(){void 0!==d&&clearTimeout(d),h=0,s=p=c=d=void 0},C.flush=function(){return void 0===d?f:w(o())},C}},13218:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},37005:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},33448:function(e,t,n){var r=n(44239),o=n(37005);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},7771:function(e,t,n){var r=n(55639);e.exports=function(){return r.Date.now()}},23493:function(e,t,n){var r=n(23279),o=n(13218);e.exports=function(e,t,n){var i=!0,a=!0;if("function"!=typeof e)throw TypeError("Expected a function");return o(n)&&(i="leading"in n?!!n.leading:i,a="trailing"in n?!!n.trailing:a),r(e,t,{leading:i,maxWait:t,trailing:a})}},14841:function(e,t,n){var r=n(27561),o=n(13218),i=n(33448),a=0/0,l=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return a;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=s.test(e);return n||c.test(e)?u(e.slice(2),n?2:8):l.test(e)?a:+e}},83454:function(e,t,n){"use strict";var r,o;e.exports=(null==(r=n.g.process)?void 0:r.env)&&"object"==typeof(null==(o=n.g.process)?void 0:o.env)?n.g.process:n(77663)},6840:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return n(48271)}])},41468:function(e,t,n){"use strict";n.d(t,{R:function(){return c},p:function(){return s}});var r=n(85893),o=n(67294),i=n(50489),a=n(577),l=n(39332);let s=(0,o.createContext)({scene:"",chatId:"",modelList:[],model:"",dbParam:void 0,dialogueList:[],agentList:[],setAgentList:()=>{},setModel:()=>{},setIsContract:()=>{},setIsMenuExpand:()=>{},setDbParam:()=>void 0,queryDialogueList:()=>{},refreshDialogList:()=>{},history:[],setHistory:()=>{},docId:void 0,setDocId:()=>{}}),c=e=>{var t,n,c;let{children:u}=e,f=(0,l.useSearchParams)(),d=null!==(t=null==f?void 0:f.get("id"))&&void 0!==t?t:"",p=null!==(n=null==f?void 0:f.get("scene"))&&void 0!==n?n:"",h=null!==(c=null==f?void 0:f.get("db_param"))&&void 0!==c?c:"",[m,g]=(0,o.useState)(!1),[v,y]=(0,o.useState)(""),[b,x]=(0,o.useState)("chat_dashboard"!==p),[w,C]=(0,o.useState)(h),[S,E]=(0,o.useState)([]),[$,O]=(0,o.useState)([]),[k,j]=(0,o.useState)(),{run:P,data:Z=[],refresh:_}=(0,a.Z)(async()=>{let[,e]=await (0,i.Vx)((0,i.iP)());return null!=e?e:[]},{manual:!0}),{data:A=[]}=(0,a.Z)(async()=>{let[,e]=await (0,i.Vx)((0,i.Vw)());return null!=e?e:[]});(0,o.useEffect)(()=>{y(A[0])},[A,null==A?void 0:A.length]);let M=(0,o.useMemo)(()=>Z.find(e=>e.conv_uid===d),[d,Z]);return(0,r.jsx)(s.Provider,{value:{isContract:m,isMenuExpand:b,scene:p,chatId:d,modelList:A,model:v,dbParam:w||h,dialogueList:Z,agentList:S,setAgentList:E,setModel:y,setIsContract:g,setIsMenuExpand:x,setDbParam:C,queryDialogueList:P,refreshDialogList:_,currentDialogue:M,history:$,setHistory:O,docId:k,setDocId:j},children:u})}},58989:function(e,t,n){"use strict";n.d(t,{Z:function(){return z}});let r={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class o{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.init(e,t)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||r,this.options=t,this.debug=t.debug}log(){for(var e=arguments.length,t=Array(e),n=0;n{this.observers[e]=this.observers[e]||[],this.observers[e].push(t)}),this}off(e,t){if(this.observers[e]){if(!t){delete this.observers[e];return}this.observers[e]=this.observers[e].filter(e=>e!==t)}}emit(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r{e(...n)})}if(this.observers["*"]){let t=[].concat(this.observers["*"]);t.forEach(t=>{t.apply(t,[e,...n])})}}}function l(){let e,t;let n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n}function s(e){return null==e?"":""+e}function c(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function o(){return!e||"string"==typeof e}let i="string"!=typeof t?[].concat(t):t.split(".");for(;i.length>1;){if(o())return{};let t=r(i.shift());!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{}}return o()?{}:{obj:e,k:r(i.shift())}}function u(e,t,n){let{obj:r,k:o}=c(e,t,Object);r[o]=n}function f(e,t){let{obj:n,k:r}=c(e,t);if(n)return n[r]}function d(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var p={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function h(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,e=>p[e]):e}let m=[" ",",","?","!",";"];function g(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(!e)return;if(e[t])return e[t];let r=t.split(n),o=e;for(let e=0;ee+i;)i++,l=o[a=r.slice(e,e+i).join(n)];if(void 0===l)return;if(null===l)return null;if(t.endsWith(a)){if("string"==typeof l)return l;if(a&&"string"==typeof l[a])return l[a]}let s=r.slice(e+i).join(n);if(s)return g(l,s,n);return}o=o[r[e]]}return o}function v(e){return e&&e.indexOf("_")>0?e.replace("_","-"):e}class y extends a{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){0>this.options.ns.indexOf(e)&&this.options.ns.push(e)}removeNamespaces(e){let t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,i=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure,a=[e,t];n&&"string"!=typeof n&&(a=a.concat(n)),n&&"string"==typeof n&&(a=a.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(a=e.split("."));let l=f(this.data,a);return l||!i||"string"!=typeof n?l:g(this.data&&this.data[e]&&this.data[e][t],n,o)}addResource(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},i=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator,a=[e,t];n&&(a=a.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(a=e.split("."),r=t,t=a[1]),this.addNamespaces(t),u(this.data,a,r),o.silent||this.emit("added",e,t,n,r)}addResources(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(let r in n)("string"==typeof n[r]||"[object Array]"===Object.prototype.toString.apply(n[r]))&&this.addResource(e,t,r,n[r],{silent:!0});r.silent||this.emit("added",e,t,n)}addResourceBundle(e,t,n,r,o){let i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},a=[e,t];e.indexOf(".")>-1&&(a=e.split("."),r=n,n=t,t=a[1]),this.addNamespaces(t);let l=f(this.data,a)||{};r?function e(t,n,r){for(let o in n)"__proto__"!==o&&"constructor"!==o&&(o in t?"string"==typeof t[o]||t[o]instanceof String||"string"==typeof n[o]||n[o]instanceof String?r&&(t[o]=n[o]):e(t[o],n[o],r):t[o]=n[o]);return t}(l,n,o):l={...l,...n},u(this.data,a,l),i.silent||this.emit("added",e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return void 0!==this.getResource(e,t)}getResourceBundle(e,t){return(t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI)?{...this.getResource(e,t)}:this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){let t=this.getDataByLanguage(e),n=t&&Object.keys(t)||[];return!!n.find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}}var b={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,o){return e.forEach(e=>{this.processors[e]&&(t=this.processors[e].process(t,n,r,o))}),t}};let x={};class w extends a{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(),function(e,t,n){e.forEach(e=>{t[e]&&(n[e]=t[e])})}(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=i.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;let n=this.resolve(e,t);return n&&void 0!==n.res}extractFromKey(e,t){let n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");let r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,o=t.ns||this.options.defaultNS||[],i=n&&e.indexOf(n)>-1,a=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!function(e,t,n){t=t||"",n=n||"";let r=m.filter(e=>0>t.indexOf(e)&&0>n.indexOf(e));if(0===r.length)return!0;let o=RegExp(`(${r.map(e=>"?"===e?"\\?":e).join("|")})`),i=!o.test(e);if(!i){let t=e.indexOf(n);t>0&&!o.test(e.substring(0,t))&&(i=!0)}return i}(e,n,r);if(i&&!a){let t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:o};let i=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(i[0])>-1)&&(o=i.shift()),e=i.join(r)}return"string"==typeof o&&(o=[o]),{key:e,namespaces:o}}translate(e,t,n){if("object"!=typeof t&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof t&&(t={...t}),t||(t={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);let r=void 0!==t.returnDetails?t.returnDetails:this.options.returnDetails,o=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,{key:i,namespaces:a}=this.extractFromKey(e[e.length-1],t),l=a[a.length-1],s=t.lng||this.language,c=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(s&&"cimode"===s.toLowerCase()){if(c){let e=t.nsSeparator||this.options.nsSeparator;return r?{res:`${l}${e}${i}`,usedKey:i,exactUsedKey:i,usedLng:s,usedNS:l}:`${l}${e}${i}`}return r?{res:i,usedKey:i,exactUsedKey:i,usedLng:s,usedNS:l}:i}let u=this.resolve(e,t),f=u&&u.res,d=u&&u.usedKey||i,p=u&&u.exactUsedKey||i,h=Object.prototype.toString.apply(f),m=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,g=!this.i18nFormat||this.i18nFormat.handleAsObject,v="string"!=typeof f&&"boolean"!=typeof f&&"number"!=typeof f;if(g&&f&&v&&0>["[object Number]","[object Function]","[object RegExp]"].indexOf(h)&&!("string"==typeof m&&"[object Array]"===h)){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");let e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(d,f,{...t,ns:a}):`key '${i} (${this.language})' returned an object instead of string.`;return r?(u.res=e,u):e}if(o){let e="[object Array]"===h,n=e?[]:{},r=e?p:d;for(let e in f)if(Object.prototype.hasOwnProperty.call(f,e)){let i=`${r}${o}${e}`;n[e]=this.translate(i,{...t,joinArrays:!1,ns:a}),n[e]===i&&(n[e]=f[e])}f=n}}else if(g&&"string"==typeof m&&"[object Array]"===h)(f=f.join(m))&&(f=this.extendTranslation(f,e,t,n));else{let r=!1,a=!1,c=void 0!==t.count&&"string"!=typeof t.count,d=w.hasDefaultValue(t),p=c?this.pluralResolver.getSuffix(s,t.count,t):"",h=t.ordinal&&c?this.pluralResolver.getSuffix(s,t.count,{ordinal:!1}):"",m=t[`defaultValue${p}`]||t[`defaultValue${h}`]||t.defaultValue;!this.isValidLookup(f)&&d&&(r=!0,f=m),this.isValidLookup(f)||(a=!0,f=i);let g=t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,v=g&&a?void 0:f,y=d&&m!==f&&this.options.updateMissing;if(a||r||y){if(this.logger.log(y?"updateKey":"missingKey",s,l,i,y?m:f),o){let e=this.resolve(i,{...t,keySeparator:!1});e&&e.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let e=[],n=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&n&&n[0])for(let t=0;t{let o=d&&r!==f?r:v;this.options.missingKeyHandler?this.options.missingKeyHandler(e,l,n,o,y,t):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(e,l,n,o,y,t),this.emit("missingKey",e,l,n,f)};this.options.saveMissing&&(this.options.saveMissingPlurals&&c?e.forEach(e=>{this.pluralResolver.getSuffixes(e,t).forEach(n=>{r([e],i+n,t[`defaultValue${n}`]||m)})}):r(e,i,m))}f=this.extendTranslation(f,e,t,u,n),a&&f===i&&this.options.appendNamespaceToMissingKey&&(f=`${l}:${i}`),(a||r)&&this.options.parseMissingKeyHandler&&(f="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${i}`:i,r?f:void 0):this.options.parseMissingKeyHandler(f))}return r?(u.res=f,u):f}extendTranslation(e,t,n,r,o){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){let a;n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});let l="string"==typeof e&&(n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(l){let t=e.match(this.interpolator.nestingRegexp);a=t&&t.length}let s=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),e=this.interpolator.interpolate(e,s,n.lng||this.language,n),l){let t=e.match(this.interpolator.nestingRegexp),r=t&&t.length;a1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach(e=>{if(this.isValidLookup(t))return;let l=this.extractFromKey(e,a),s=l.key;n=s;let c=l.namespaces;this.options.fallbackNS&&(c=c.concat(this.options.fallbackNS));let u=void 0!==a.count&&"string"!=typeof a.count,f=u&&!a.ordinal&&0===a.count&&this.pluralResolver.shouldUseIntlApi(),d=void 0!==a.context&&("string"==typeof a.context||"number"==typeof a.context)&&""!==a.context,p=a.lngs?a.lngs:this.languageUtils.toResolveHierarchy(a.lng||this.language,a.fallbackLng);c.forEach(e=>{this.isValidLookup(t)||(i=e,!x[`${p[0]}-${e}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(i)&&(x[`${p[0]}-${e}`]=!0,this.logger.warn(`key "${n}" for languages "${p.join(", ")}" won't get resolved as namespace "${i}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),p.forEach(n=>{let i;if(this.isValidLookup(t))return;o=n;let l=[s];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(l,s,n,e,a);else{let e;u&&(e=this.pluralResolver.getSuffix(n,a.count,a));let t=`${this.options.pluralSeparator}zero`,r=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(u&&(l.push(s+e),a.ordinal&&0===e.indexOf(r)&&l.push(s+e.replace(r,this.options.pluralSeparator)),f&&l.push(s+t)),d){let n=`${s}${this.options.contextSeparator}${a.context}`;l.push(n),u&&(l.push(n+e),a.ordinal&&0===e.indexOf(r)&&l.push(n+e.replace(r,this.options.pluralSeparator)),f&&l.push(n+t))}}for(;i=l.pop();)this.isValidLookup(t)||(r=i,t=this.getResource(n,e,i,a))}))})}),{res:t,usedKey:n,exactUsedKey:r,usedLng:o,usedNS:i}}isValidLookup(e){return void 0!==e&&!(!this.options.returnNull&&null===e)&&!(!this.options.returnEmptyString&&""===e)}getResource(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}static hasDefaultValue(e){let t="defaultValue";for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,t.length)&&void 0!==e[n])return!0;return!1}}function C(e){return e.charAt(0).toUpperCase()+e.slice(1)}class S{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=i.create("languageUtils")}getScriptPartFromCode(e){if(!(e=v(e))||0>e.indexOf("-"))return null;let t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase())?null:this.formatLanguageCode(t.join("-"))}getLanguagePartFromCode(e){if(!(e=v(e))||0>e.indexOf("-"))return e;let t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if("string"==typeof e&&e.indexOf("-")>-1){let t=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map(e=>e.toLowerCase()):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=C(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=C(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=C(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){let t;return e?(e.forEach(e=>{if(t)return;let n=this.formatLanguageCode(e);(!this.options.supportedLngs||this.isSupportedCode(n))&&(t=n)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;let n=this.getLanguagePartFromCode(e);if(this.isSupportedCode(n))return t=n;t=this.options.supportedLngs.find(e=>{if(e===n||!(0>e.indexOf("-")&&0>n.indexOf("-"))&&0===e.indexOf(n))return e})}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}getFallbackCodes(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];let n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}toResolveHierarchy(e,t){let n=this.getFallbackCodes(t||this.options.fallbackLng||[],e),r=[],o=e=>{e&&(this.isSupportedCode(e)?r.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return"string"==typeof e&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?("languageOnly"!==this.options.load&&o(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&o(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&o(this.getLanguagePartFromCode(e))):"string"==typeof e&&o(this.formatLanguageCode(e)),n.forEach(e=>{0>r.indexOf(e)&&o(this.formatLanguageCode(e))}),r}}let E=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],$={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}},O=["v1","v2","v3"],k=["v4"],j={zero:0,one:1,two:2,few:3,many:4,other:5};class P{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=i.create("pluralResolver"),(!this.options.compatibilityJSON||k.includes(this.options.compatibilityJSON))&&("undefined"==typeof Intl||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=function(){let e={};return E.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:$[t.fc]}})}),e}()}addRule(e,t){this.rules[e]=t}getRule(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(v(e),{type:t.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getRule(e,t);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}getPluralFormsOfKey(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,n).map(e=>`${t}${e}`)}getSuffixes(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getRule(e,t);return n?this.shouldUseIntlApi()?n.resolvedOptions().pluralCategories.sort((e,t)=>j[e]-j[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${e}`):n.numbers.map(n=>this.getSuffix(e,n,t)):[]}getSuffix(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this.getRule(e,n);return r?this.shouldUseIntlApi()?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${r.select(t)}`:this.getSuffixRetroCompatible(r,t):(this.logger.warn(`no plural rule found for: ${e}`),"")}getSuffixRetroCompatible(e,t){let n=e.noAbs?e.plurals(t):e.plurals(Math.abs(t)),r=e.numbers[n];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===r?r="plural":1===r&&(r=""));let o=()=>this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString();return"v1"===this.options.compatibilityJSON?1===r?"":"number"==typeof r?`_plural_${r.toString()}`:o():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?o():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}shouldUseIntlApi(){return!O.includes(this.options.compatibilityJSON)}}function Z(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",o=!(arguments.length>4)||void 0===arguments[4]||arguments[4],i=function(e,t,n){let r=f(e,n);return void 0!==r?r:f(t,n)}(e,t,n);return!i&&o&&"string"==typeof n&&void 0===(i=g(e,n,r))&&(i=g(t,n,r)),i}class _{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=i.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||(e=>e),this.init(e)}init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});let t=e.interpolation;this.escape=void 0!==t.escape?t.escape:h,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?d(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?d(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?d(t.nestingPrefix):t.nestingPrefixEscaped||d("$t("),this.nestingSuffix=t.nestingSuffix?d(t.nestingSuffix):t.nestingSuffixEscaped||d(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let e=`${this.prefix}(.+?)${this.suffix}`;this.regexp=RegExp(e,"g");let t=`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`;this.regexpUnescape=RegExp(t,"g");let n=`${this.nestingPrefix}(.+?)${this.nestingSuffix}`;this.nestingRegexp=RegExp(n,"g")}interpolate(e,t,n,r){let o,i,a;let l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function c(e){return e.replace(/\$/g,"$$$$")}let u=e=>{if(0>e.indexOf(this.formatSeparator)){let o=Z(t,l,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(o,void 0,n,{...r,...t,interpolationkey:e}):o}let o=e.split(this.formatSeparator),i=o.shift().trim(),a=o.join(this.formatSeparator).trim();return this.format(Z(t,l,i,this.options.keySeparator,this.options.ignoreJSONStructure),a,n,{...r,...t,interpolationkey:i})};this.resetRegExp();let f=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,d=r&&r.interpolation&&void 0!==r.interpolation.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables,p=[{regex:this.regexpUnescape,safeValue:e=>c(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?c(this.escape(e)):c(e)}];return p.forEach(t=>{for(a=0;o=t.regex.exec(e);){let n=o[1].trim();if(void 0===(i=u(n))){if("function"==typeof f){let t=f(e,o,r);i="string"==typeof t?t:""}else if(r&&Object.prototype.hasOwnProperty.call(r,n))i="";else if(d){i=o[0];continue}else this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),i=""}else"string"==typeof i||this.useRawValueToEscape||(i=s(i));let l=t.safeValue(i);if(e=e.replace(o[0],l),d?(t.regex.lastIndex+=i.length,t.regex.lastIndex-=o[0].length):t.regex.lastIndex=0,++a>=this.maxReplaces)break}}),e}nest(e,t){let n,r,o,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};function a(e,t){let n=this.nestingOptionsSeparator;if(0>e.indexOf(n))return e;let r=e.split(RegExp(`${n}[ ]*{`)),i=`{${r[1]}`;e=r[0],i=this.interpolate(i,o);let a=i.match(/'/g),l=i.match(/"/g);(a&&a.length%2==0&&!l||l.length%2!=0)&&(i=i.replace(/'/g,'"'));try{o=JSON.parse(i),t&&(o={...t,...o})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${n}${i}`}return delete o.defaultValue,e}for(;n=this.nestingRegexp.exec(e);){let l=[];(o=(o={...i}).replace&&"string"!=typeof o.replace?o.replace:o).applyPostProcessor=!1,delete o.defaultValue;let c=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){let e=n[1].split(this.formatSeparator).map(e=>e.trim());n[1]=e.shift(),l=e,c=!0}if((r=t(a.call(this,n[1].trim(),o),o))&&n[0]===e&&"string"!=typeof r)return r;"string"!=typeof r&&(r=s(r)),r||(this.logger.warn(`missed to resolve ${n[1]} for nesting ${e}`),r=""),c&&(r=l.reduce((e,t)=>this.format(e,t,i.lng,{...i,interpolationkey:n[1].trim()}),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}function A(e){let t={};return function(n,r,o){let i=r+JSON.stringify(o),a=t[i];return a||(a=e(v(r),o),t[i]=a),a(n)}}class M{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=i.create("formatter"),this.options=e,this.formats={number:A((e,t)=>{let n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)}),currency:A((e,t)=>{let n=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>n.format(e)}),datetime:A((e,t)=>{let n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)}),relativetime:A((e,t)=>{let n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||"day")}),list:A((e,t)=>{let n=new Intl.ListFormat(e,{...t});return e=>n.format(e)})},this.init(e)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},n=t.interpolation;this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||","}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=A(t)}format(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=t.split(this.formatSeparator),i=o.reduce((e,t)=>{let{formatName:o,formatOptions:i}=function(e){let t=e.toLowerCase().trim(),n={};if(e.indexOf("(")>-1){let r=e.split("(");t=r[0].toLowerCase().trim();let o=r[1].substring(0,r[1].length-1);if("currency"===t&&0>o.indexOf(":"))n.currency||(n.currency=o.trim());else if("relativetime"===t&&0>o.indexOf(":"))n.range||(n.range=o.trim());else{let e=o.split(";");e.forEach(e=>{if(!e)return;let[t,...r]=e.split(":"),o=r.join(":").trim().replace(/^'+|'+$/g,"");n[t.trim()]||(n[t.trim()]=o),"false"===o&&(n[t.trim()]=!1),"true"===o&&(n[t.trim()]=!0),isNaN(o)||(n[t.trim()]=parseInt(o,10))})}}return{formatName:t,formatOptions:n}}(t);if(this.formats[o]){let t=e;try{let a=r&&r.formatParams&&r.formatParams[r.interpolationkey]||{},l=a.locale||a.lng||r.locale||r.lng||n;t=this.formats[o](e,l,{...i,...r,...a})}catch(e){this.logger.warn(e)}return t}return this.logger.warn(`there was no format function for ${o}`),e},e);return i}}class R extends a{constructor(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=i.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(n,r.backend,r)}queueLoad(e,t,n,r){let o={},i={},a={},l={};return e.forEach(e=>{let r=!0;t.forEach(t=>{let a=`${e}|${t}`;!n.reload&&this.store.hasResourceBundle(e,t)?this.state[a]=2:this.state[a]<0||(1===this.state[a]?void 0===i[a]&&(i[a]=!0):(this.state[a]=1,r=!1,void 0===i[a]&&(i[a]=!0),void 0===o[a]&&(o[a]=!0),void 0===l[t]&&(l[t]=!0)))}),r||(a[e]=!0)}),(Object.keys(o).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(o),pending:Object.keys(i),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(l)}}loaded(e,t,n){let r=e.split("|"),o=r[0],i=r[1];t&&this.emit("failedLoading",o,i,t),n&&this.store.addResourceBundle(o,i,n),this.state[e]=t?-1:2;let a={};this.queue.forEach(n=>{(function(e,t,n,r){let{obj:o,k:i}=c(e,t,Object);o[i]=o[i]||[],r&&(o[i]=o[i].concat(n)),r||o[i].push(n)})(n.loaded,[o],i),void 0!==n.pending[e]&&(delete n.pending[e],n.pendingCount--),t&&n.errors.push(t),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach(e=>{a[e]||(a[e]={});let t=n.loaded[e];t.length&&t.forEach(t=>{void 0===a[e][t]&&(a[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(e=>!e.done)}read(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,i=arguments.length>5?arguments[5]:void 0;if(!e.length)return i(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:o,callback:i});return}this.readingCalls++;let a=(a,l)=>{if(this.readingCalls--,this.waitingReads.length>0){let e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}if(a&&l&&r{this.read.call(this,e,t,n,r+1,2*o,i)},o);return}i(a,l)},l=this.backend[n].bind(this.backend);if(2===l.length){try{let n=l(e,t);n&&"function"==typeof n.then?n.then(e=>a(null,e)).catch(a):a(null,n)}catch(e){a(e)}return}return l(e,t,a)}prepareLoading(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);let o=this.queueLoad(e,t,n,r);if(!o.toLoad.length)return o.pending.length||r(),null;o.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e.split("|"),r=n[0],o=n[1];this.read(r,o,"read",void 0,void 0,(n,i)=>{n&&this.logger.warn(`${t}loading namespace ${o} for language ${r} failed`,n),!n&&i&&this.logger.log(`${t}loaded namespace ${o} for language ${r}`,i),this.loaded(e,n,i)})}saveMissing(e,t,n,r,o){let i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)){this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(null!=n&&""!==n){if(this.backend&&this.backend.create){let l={...i,isUpdate:o},s=this.backend.create.bind(this.backend);if(s.length<6)try{let o;(o=5===s.length?s(e,t,n,r,l):s(e,t,n,r))&&"function"==typeof o.then?o.then(e=>a(null,e)).catch(a):a(null,o)}catch(e){a(e)}else s(e,t,n,r,a,l)}e&&e[0]&&this.store.addResource(e[0],t,n,r)}}}function N(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){let t={};if("object"==typeof e[1]&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){let n=e[3]||e[2];Object.keys(n).forEach(e=>{t[e]=n[e]})}return t},interpolation:{escapeValue:!0,format:(e,t,n,r)=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function T(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&0>e.supportedLngs.indexOf("cimode")&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function F(){}class I extends a{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(super(),this.options=T(e),this.services={},this.logger=i,this.modules={external:[]},!function(e){let t=Object.getOwnPropertyNames(Object.getPrototypeOf(e));t.forEach(t=>{"function"==typeof e[t]&&(e[t]=e[t].bind(e))})}(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initImmediate)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(){var e=this;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;"function"==typeof t&&(n=t,t={}),!t.defaultNS&&!1!==t.defaultNS&&t.ns&&("string"==typeof t.ns?t.defaultNS=t.ns:0>t.ns.indexOf("translation")&&(t.defaultNS=t.ns[0]));let r=N();function o(e){return e?"function"==typeof e?new e:e:null}if(this.options={...r,...this.options,...T(t)},"v1"!==this.options.compatibilityAPI&&(this.options.interpolation={...r.interpolation,...this.options.interpolation}),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator),!this.options.isClone){let t;this.modules.logger?i.init(o(this.modules.logger),this.options):i.init(null,this.options),this.modules.formatter?t=this.modules.formatter:"undefined"!=typeof Intl&&(t=M);let n=new S(this.options);this.store=new y(this.options.resources,this.options);let a=this.services;a.logger=i,a.resourceStore=this.store,a.languageUtils=n,a.pluralResolver=new P(n,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),t&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(a.formatter=o(t),a.formatter.init(a,this.options),this.options.interpolation.format=a.formatter.format.bind(a.formatter)),a.interpolator=new _(this.options),a.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},a.backendConnector=new R(o(this.modules.backend),a.resourceStore,a,this.options),a.backendConnector.on("*",function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o1?n-1:0),o=1;o{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,n||(n=F),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(this.options.lng=e[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(t=>{this[t]=function(){return e.store[t](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(t=>{this[t]=function(){return e.store[t](...arguments),e}});let a=l(),s=()=>{let e=(e,t)=>{this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),a.resolve(t),n(e,t)};if(this.languages&&"v1"!==this.options.compatibilityAPI&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initImmediate?s():setTimeout(s,0),a}loadResources(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:F,n=t,r="string"==typeof e?e:this.language;if("function"==typeof e&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(r&&"cimode"===r.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return n();let e=[],t=t=>{if(!t||"cimode"===t)return;let n=this.services.languageUtils.toResolveHierarchy(t);n.forEach(t=>{"cimode"!==t&&0>e.indexOf(t)&&e.push(t)})};if(r)t(r);else{let e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.forEach(e=>t(e))}this.options.preload&&this.options.preload.forEach(e=>t(e)),this.services.backendConnector.load(e,this.options.ns,e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),n(e)})}else n(null)}reloadResources(e,t,n){let r=l();return e||(e=this.languages),t||(t=this.options.ns),n||(n=F),this.services.backendConnector.reload(e,t,e=>{r.resolve(),n(e)}),r}use(e){if(!e)throw Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&b.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(let e=0;e-1)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}}changeLanguage(e,t){var n=this;this.isLanguageChangingTo=e;let r=l();this.emit("languageChanging",e);let o=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},i=(e,i)=>{i?(o(i),this.translator.changeLanguage(i),this.isLanguageChangingTo=void 0,this.emit("languageChanged",i),this.logger.log("languageChanged",i)):this.isLanguageChangingTo=void 0,r.resolve(function(){return n.t(...arguments)}),t&&t(e,function(){return n.t(...arguments)})},a=t=>{e||t||!this.services.languageDetector||(t=[]);let n="string"==typeof t?t:this.services.languageUtils.getBestMatchFromCodes(t);n&&(this.language||o(n),this.translator.language||this.translator.changeLanguage(n),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(n)),this.loadResources(n,e=>{i(e,n)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(e):a(this.services.languageDetector.detect()),r}getFixedT(e,t,n){var r=this;let o=function(e,t){let i,a;if("object"!=typeof t){for(var l=arguments.length,s=Array(l>2?l-2:0),c=2;c`${i.keyPrefix}${u}${e}`):i.keyPrefix?`${i.keyPrefix}${u}${e}`:e,r.t(a,i)};return"string"==typeof e?o.lng=e:o.lngs=e,o.ns=t,o.keyPrefix=n,o}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;let n=t.lng||this.resolvedLanguage||this.languages[0],r=!!this.options&&this.options.fallbackLng,o=this.languages[this.languages.length-1];if("cimode"===n.toLowerCase())return!0;let i=(e,t)=>{let n=this.services.backendConnector.state[`${e}|${t}`];return -1===n||2===n};if(t.precheck){let e=t.precheck(this,i);if(void 0!==e)return e}return!!(this.hasResourceBundle(n,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||i(n,e)&&(!r||i(o,e)))}loadNamespaces(e,t){let n=l();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach(e=>{0>this.options.ns.indexOf(e)&&this.options.ns.push(e)}),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){let n=l();"string"==typeof e&&(e=[e]);let r=this.options.preload||[],o=e.filter(e=>0>r.indexOf(e));return o.length?(this.options.preload=r.concat(o),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";let t=this.services&&this.services.languageUtils||new S(N());return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(t.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new I(e,t)}cloneInstance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:F,n=e.forkResourceStore;n&&delete e.forkResourceStore;let r={...this.options,...e,isClone:!0},o=new I(r);return(void 0!==e.debug||void 0!==e.prefix)&&(o.logger=o.logger.clone(e)),["store","services","language"].forEach(e=>{o[e]=this[e]}),o.services={...this.services},o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},n&&(o.store=new y(this.store.data,r),o.services.resourceStore=o.store),o.translator=new w(o.services,r),o.translator.on("*",function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r{let{componentCls:t,width:n,notificationMarginEdge:r}=e,o=new y.E4("antNotificationTopFadeIn",{"0%":{marginTop:"-100%",opacity:0},"100%":{marginTop:0,opacity:1}}),i=new y.E4("antNotificationBottomFadeIn",{"0%":{marginBottom:"-100%",opacity:0},"100%":{marginBottom:0,opacity:1}}),a=new y.E4("antNotificationLeftFadeIn",{"0%":{right:{_skip_check_:!0,value:n},opacity:0},"100%":{right:{_skip_check_:!0,value:0},opacity:1}});return{[`&${t}-top, &${t}-bottom`]:{marginInline:0},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:o}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:i}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginInlineEnd:0,marginInlineStart:r,[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:a}}}};let S=e=>{let{iconCls:t,componentCls:n,boxShadow:r,fontSizeLG:o,notificationMarginBottom:i,borderRadiusLG:a,colorSuccess:l,colorInfo:s,colorWarning:c,colorError:u,colorTextHeading:f,notificationBg:d,notificationPadding:p,notificationMarginEdge:h,motionDurationMid:m,motionEaseInOut:g,fontSize:v,lineHeight:x,width:w,notificationIconSize:S,colorText:E}=e,$=`${n}-notice`,O=new y.E4("antNotificationFadeIn",{"0%":{left:{_skip_check_:!0,value:w},opacity:0},"100%":{left:{_skip_check_:!0,value:0},opacity:1}}),k=new y.E4("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:i,opacity:1},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}}),j={position:"relative",width:w,maxWidth:`calc(100vw - ${2*h}px)`,marginBottom:i,marginInlineStart:"auto",padding:p,overflow:"hidden",lineHeight:x,wordWrap:"break-word",background:d,borderRadius:a,boxShadow:r,[`${n}-close-icon`]:{fontSize:v,cursor:"pointer"},[`${$}-message`]:{marginBottom:e.marginXS,color:f,fontSize:o,lineHeight:e.lineHeightLG},[`${$}-description`]:{fontSize:v,color:E},[`&${$}-closable ${$}-message`]:{paddingInlineEnd:e.paddingLG},[`${$}-with-icon ${$}-message`]:{marginBottom:e.marginXS,marginInlineStart:e.marginSM+S,fontSize:o},[`${$}-with-icon ${$}-description`]:{marginInlineStart:e.marginSM+S,fontSize:v},[`${$}-icon`]:{position:"absolute",fontSize:S,lineHeight:0,[`&-success${t}`]:{color:l},[`&-info${t}`]:{color:s},[`&-warning${t}`]:{color:c},[`&-error${t}`]:{color:u}},[`${$}-close`]:{position:"absolute",top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:"none",width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:e.colorIconHover,backgroundColor:e.wireframe?"transparent":e.colorFillContent}},[`${$}-btn`]:{float:"right",marginTop:e.marginSM}};return[{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,b.Wf)(e)),{position:"fixed",zIndex:e.zIndexPopup,marginInlineEnd:h,[`${n}-hook-holder`]:{position:"relative"},[`&${n}-top, &${n}-bottom`]:{[$]:{marginInline:"auto auto"}},[`&${n}-topLeft, &${n}-bottomLeft`]:{[$]:{marginInlineEnd:"auto",marginInlineStart:0}},[`${n}-fade-enter, ${n}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:g,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${n}-fade-leave`]:{animationTimingFunction:g,animationFillMode:"both",animationDuration:m,animationPlayState:"paused"},[`${n}-fade-enter${n}-fade-enter-active, ${n}-fade-appear${n}-fade-appear-active`]:{animationName:O,animationPlayState:"running"},[`${n}-fade-leave${n}-fade-leave-active`]:{animationName:k,animationPlayState:"running"}}),C(e)),{"&-rtl":{direction:"rtl",[`${$}-btn`]:{float:"left"}}})},{[n]:{[$]:Object.assign({},j)}},{[`${$}-pure-panel`]:Object.assign(Object.assign({},j),{margin:0})}]};var E=(0,x.Z)("Notification",e=>{let t=e.paddingMD,n=e.paddingLG,r=(0,w.TS)(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:n,notificationIconSize:e.fontSizeLG*e.lineHeightLG,notificationCloseButtonSize:.55*e.controlHeightLG,notificationMarginBottom:e.margin,notificationPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`,notificationMarginEdge:e.marginLG,animationMaxHeight:150});return[S(r)]},e=>({zIndexPopup:e.zIndexPopupBase+50,width:384})),$=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function O(e,t){return null===t||!1===t?null:t||i.createElement("span",{className:`${e}-close-x`},i.createElement(u.Z,{className:`${e}-close-icon`}))}d.Z,s.Z,c.Z,f.Z,p.Z;let k={success:s.Z,info:d.Z,error:c.Z,warning:f.Z},j=e=>{let{prefixCls:t,icon:n,type:r,message:o,description:a,btn:l,role:s="alert"}=e,c=null;return n?c=i.createElement("span",{className:`${t}-icon`},n):r&&(c=i.createElement(k[r]||null,{className:m()(`${t}-icon`,`${t}-icon-${r}`)})),i.createElement("div",{className:m()({[`${t}-with-icon`]:c}),role:s},c,i.createElement("div",{className:`${t}-message`},o),i.createElement("div",{className:`${t}-description`},a),l&&i.createElement("div",{className:`${t}-btn`},l))};var P=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let Z=e=>{let{children:t,prefixCls:n}=e,[,r]=E(n);return i.createElement(g.JB,{classNames:{list:r,notice:r}},t)},_=(e,t)=>{let{prefixCls:n,key:r}=t;return i.createElement(Z,{prefixCls:n,key:r},e)},A=i.forwardRef((e,t)=>{let{top:n,bottom:r,prefixCls:o,getContainer:a,maxCount:l,rtl:s,onAllRemoved:c}=e,{getPrefixCls:u,getPopupContainer:f,notification:d}=i.useContext(v.E_),p=o||u("notification"),[h,y]=(0,g.lm)({prefixCls:p,style:e=>(function(e,t,n){let r;switch(e){case"top":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:t,bottom:"auto"};break;case"topLeft":r={left:0,top:t,bottom:"auto"};break;case"topRight":r={right:0,top:t,bottom:"auto"};break;case"bottom":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:n};break;case"bottomLeft":r={left:0,top:"auto",bottom:n};break;default:r={right:0,top:"auto",bottom:n}}return r})(e,null!=n?n:24,null!=r?r:24),className:()=>m()({[`${p}-rtl`]:s}),motion:()=>({motionName:`${p}-fade`}),closable:!0,closeIcon:O(p),duration:4.5,getContainer:()=>(null==a?void 0:a())||(null==f?void 0:f())||document.body,maxCount:l,onAllRemoved:c,renderNotifications:_});return i.useImperativeHandle(t,()=>Object.assign(Object.assign({},h),{prefixCls:p,notification:d})),y});function M(e){let t=i.useRef(null),n=i.useMemo(()=>{let n=n=>{var r;if(!t.current)return;let{open:o,prefixCls:a,notification:l}=t.current,s=`${a}-notice`,{message:c,description:u,icon:f,type:d,btn:p,className:h,style:g,role:v="alert",closeIcon:y}=n,b=P(n,["message","description","icon","type","btn","className","style","role","closeIcon"]),x=O(s,y);return o(Object.assign(Object.assign({placement:null!==(r=null==e?void 0:e.placement)&&void 0!==r?r:"topRight"},b),{content:i.createElement(j,{prefixCls:s,icon:f,type:d,message:c,description:u,btn:p,role:v}),className:m()(d&&`${s}-${d}`,h,null==l?void 0:l.className),style:Object.assign(Object.assign({},null==l?void 0:l.style),g),closeIcon:x,closable:!!x}))},r={open:n,destroy:e=>{var n,r;void 0!==e?null===(n=t.current)||void 0===n||n.close(e):null===(r=t.current)||void 0===r||r.destroy()}};return["success","info","warning","error"].forEach(e=>{r[e]=t=>n(Object.assign(Object.assign({},t),{type:e}))}),r},[]);return[n,i.createElement(A,Object.assign({key:"notification-holder"},e,{ref:t}))]}let R=null,N=e=>e(),T=[],F={};function I(){let{prefixCls:e,getContainer:t,rtl:n,maxCount:r,top:o,bottom:i}=F,a=null!=e?e:(0,l.w6)().getPrefixCls("notification"),s=(null==t?void 0:t())||document.body;return{prefixCls:a,getContainer:()=>s,rtl:n,maxCount:r,top:o,bottom:i}}let L=i.forwardRef((e,t)=>{let[n,r]=i.useState(I),[o,a]=M(n),s=(0,l.w6)(),c=s.getRootPrefixCls(),u=s.getIconPrefixCls(),f=s.getTheme(),d=()=>{r(I)};return i.useEffect(d,[]),i.useImperativeHandle(t,()=>{let e=Object.assign({},o);return Object.keys(e).forEach(t=>{e[t]=function(){return d(),o[t].apply(o,arguments)}}),{instance:e,sync:d}}),i.createElement(l.ZP,{prefixCls:c,iconPrefixCls:u,theme:f},a)});function B(){if(!R){let e=document.createDocumentFragment(),t={fragment:e};R=t,N(()=>{(0,a.s)(i.createElement(L,{ref:e=>{let{instance:n,sync:r}=e||{};Promise.resolve().then(()=>{!t.instance&&n&&(t.instance=n,t.sync=r,B())})}}),e)});return}R.instance&&(T.forEach(e=>{switch(e.type){case"open":N(()=>{R.instance.open(Object.assign(Object.assign({},F),e.config))});break;case"destroy":N(()=>{null==R||R.instance.destroy(e.key)})}}),T=[])}function z(e){T.push({type:"open",config:e}),B()}let D={open:z,destroy:function(e){T.push({type:"destroy",key:e}),B()},config:function(e){F=Object.assign(Object.assign({},F),e),N(()=>{var e;null===(e=null==R?void 0:R.sync)||void 0===e||e.call(R)})},useNotification:function(e){return M(e)},_InternalPanelDoNotUseOrYouWillBeFired:e=>{let{prefixCls:t,className:n,icon:r,type:o,message:a,description:l,btn:s,closable:c=!0,closeIcon:u}=e,f=$(e,["prefixCls","className","icon","type","message","description","btn","closable","closeIcon"]),{getPrefixCls:d}=i.useContext(v.E_),p=t||d("notification"),h=`${p}-notice`,[,y]=E(p);return i.createElement(g.qX,Object.assign({},f,{prefixCls:p,className:m()(n,y,`${h}-pure-panel`),eventKey:"pure",duration:null,closable:c,closeIcon:O(p,u),content:i.createElement(j,{prefixCls:h,icon:r,type:o,message:a,description:l,btn:s})}))}};["success","info","warning","error"].forEach(e=>{D[e]=t=>z(Object.assign(Object.assign({},t),{type:e}))});let H=(e,t)=>e.then(e=>{let{data:n}=e;if(!n)throw Error("Network Error!");if(!n.success){if("*"===t||n.err_code&&t&&t.includes(n.err_code));else{var r;D.error({message:"Request error",description:null!==(r=null==n?void 0:n.err_msg)&&void 0!==r?r:"The interface is abnormal. Please try again later"})}}return[null,n.data,n,e]}).catch(e=>(D.error({message:"Request error",description:e.message}),[e,null,null,null])),V=()=>eF("/api/v1/chat/dialogue/scenes"),U=e=>eF("/api/v1/chat/dialogue/new",e),W=()=>eT("/api/v1/chat/db/list"),q=()=>eT("/api/v1/chat/db/support/type"),K=e=>eF("/api/v1/chat/db/delete?db_name=".concat(e)),G=e=>eF("/api/v1/chat/db/edit",e),X=e=>eF("/api/v1/chat/db/add",e),Y=e=>eF("/api/v1/chat/db/test/connect",e),J=()=>eT("/api/v1/chat/dialogue/list"),Q=()=>eT("/api/v1/model/types"),ee=e=>eF("/api/v1/chat/mode/params/list?chat_mode=".concat(e)),et=e=>eT("/api/v1/chat/dialogue/messages/history?con_uid=".concat(e)),en=e=>{let{convUid:t,chatMode:n,data:r,config:o,model:i}=e;return eF("/api/v1/chat/mode/params/file/load?conv_uid=".concat(t,"&chat_mode=").concat(n,"&model_name=").concat(i),r,{headers:{"Content-Type":"multipart/form-data"},...o})},er=e=>eF("/api/v1/chat/dialogue/delete?con_uid=".concat(e)),eo=e=>eF("/knowledge/".concat(e,"/arguments"),{}),ei=(e,t)=>eF("/knowledge/".concat(e,"/argument/save"),t),ea=()=>eF("/knowledge/space/list",{}),el=(e,t)=>eF("/knowledge/".concat(e,"/document/list"),t),es=(e,t)=>eF("/knowledge/".concat(e,"/document/add"),t),ec=e=>eF("/knowledge/space/add",e),eu=()=>eT("/knowledge/document/chunkstrategies"),ef=(e,t)=>eF("/knowledge/".concat(e,"/document/sync"),t),ed=(e,t)=>eF("/knowledge/".concat(e,"/document/sync_batch"),t),ep=(e,t)=>eF("/knowledge/".concat(e,"/document/upload"),t),eh=(e,t)=>eF("/knowledge/".concat(e,"/chunk/list"),t),em=(e,t)=>eF("/knowledge/".concat(e,"/document/delete"),t),eg=e=>eF("/knowledge/space/delete",e),ev=()=>eT("/api/v1/worker/model/list"),ey=e=>eF("/api/v1/worker/model/stop",e),eb=e=>eF("/api/v1/worker/model/start",e),ex=()=>eT("/api/v1/worker/model/params"),ew=e=>eF("/api/v1/agent/query",e),eC=e=>eF("/api/v1/agent/hub/update",null!=e?e:{channel:"",url:"",branch:"",authorization:""}),eS=e=>eF("/api/v1/agent/my",void 0,{params:{user:e}}),eE=(e,t)=>eF("/api/v1/agent/install",void 0,{params:{plugin_name:e,user:t},timeout:6e4}),e$=(e,t)=>eF("/api/v1/agent/uninstall",void 0,{params:{plugin_name:e,user:t},timeout:6e4}),eO=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;return eF("/api/v1/personal/agent/upload",t,{params:{user:e},headers:{"Content-Type":"multipart/form-data"},...n})},ek=()=>eT("/api/v1/feedback/select",void 0),ej=(e,t)=>eT("/api/v1/feedback/find?conv_uid=".concat(e,"&conv_index=").concat(t),void 0),eP=e=>{let{data:t,config:n}=e;return eF("/api/v1/feedback/commit",t,{headers:{"Content-Type":"application/json"},...n})},eZ=e=>eF("/prompt/list",e),e_=e=>eF("/prompt/update",e),eA=e=>eF("/prompt/add",e);var eM=n(83454);let eR=o.Z.create({baseURL:null!==(r=eM.env.API_BASE_URL)&&void 0!==r?r:""}),eN=["/db/add","/db/test/connect","/db/summary","/params/file/load","/chat/prepare","/model/start","/model/stop","/editor/sql/run","/sql/editor/submit","/editor/chart/run","/chart/editor/submit","/document/upload","/document/sync","/agent/install","/agent/uninstall","/personal/agent/upload"];eR.interceptors.request.use(e=>{let t=eN.some(t=>e.url&&e.url.indexOf(t)>=0);return e.timeout||(e.timeout=t?6e4:1e4),e});let eT=(e,t,n)=>eR.get(e,{params:t,...n}),eF=(e,t,n)=>eR.post(e,t,n)},1051:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(85893);function o(){return(0,r.jsx)("svg",{className:"mr-1",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"6058",width:"1.5em",height:"1.5em",children:(0,r.jsx)("path",{d:"M688 312c0 4.4-3.6 8-8 8H296c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h384c4.4 0 8 3.6 8 8v48z m-392 88h184c4.4 0 8 3.6 8 8v48c0 4.4-3.6 8-8 8H296c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8z m376 116c119.3 0 216 96.7 216 216s-96.7 216-216 216-216-96.7-216-216 96.7-216 216-216z m107.5 323.5C808.2 810.8 824 772.6 824 732s-15.8-78.8-44.5-107.5S712.6 580 672 580s-78.8 15.8-107.5 44.5S520 691.4 520 732s15.8 78.8 44.5 107.5S631.4 884 672 884s78.8-15.8 107.5-44.5zM440 852c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8H168c-17.7 0-32-14.3-32-32V108c0-17.7 14.3-32 32-32h640c17.7 0 32 14.3 32 32v384c0 4.4-3.6 8-8 8h-56c-4.4 0-8-3.6-8-8V148H208v704h232z m232-76.06l-20.56 28.43c-1.5 2.1-3.9 3.3-6.5 3.3h-44.3c-6.5 0-10.3-7.4-6.4-12.7l45.75-63.3-45.75-63.3c-3.9-5.3-0.1-12.7 6.4-12.7h44.3c2.6 0 5 1.2 6.5 3.3L672 687.4l20.56-28.43c1.5-2.1 3.9-3.3 6.5-3.3h44.3c6.5 0 10.3 7.4 6.4 12.7l-45.75 63.3 45.75 63.3c3.9 5.3 0.1 12.7-6.4 12.7h-44.3c-2.6 0-5-1.2-6.5-3.3L672 775.94z",fill:"#d81e06","p-id":"6059"})})}n(67294)},5455:function(e,t,n){"use strict";n.d(t,{RD:function(){return a},In:function(){return o},zM:function(){return i},je:function(){return l},DL:function(){return s},si:function(){return c},FD:function(){return u},qw:function(){return y},s2:function(){return h},FE:function(){return b.Z},Rp:function(){return m},IN:function(){return f},tu:function(){return g},ig:function(){return d},ol:function(){return p},bn:function(){return v}});var r=n(85893),o=function(){return(0,r.jsxs)("svg",{viewBox:"0 0 1059 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"11020",className:"w-full h-full",children:[(0,r.jsx)("path",{d:"M617.931034 971.034483H335.448276c62.834759 0 70.62069-140.994207 70.62069-211.862069h247.172413c0 70.867862 7.785931 211.862069 70.62069 211.862069h-105.931035z",fill:"#4DB5E3","p-id":"11021"}),(0,r.jsx)("path",{d:"M282.482759 953.37931h512a35.310345 35.310345 0 0 1 0 70.62069H282.482759a35.310345 35.310345 0 0 1 0-70.62069z",fill:"#47C5FC","p-id":"11022"}),(0,r.jsx)("path",{d:"M0 0m73.145379 0l913.019587 0q73.145379 0 73.145379 73.145379l0 683.502345q0 73.145379-73.145379 73.145379l-913.019587 0q-73.145379 0-73.145379-73.145379l0-683.502345q0-73.145379 73.145379-73.145379Z",fill:"#47C5FC","p-id":"11023"}),(0,r.jsx)("path",{d:"M52.965517 52.965517h953.379311v723.862069H52.965517z",fill:"#FFFFFF","p-id":"11024"}),(0,r.jsx)("path",{d:"M600.275862 564.965517h335.448276a17.655172 17.655172 0 0 1 0 35.310345H600.275862a17.655172 17.655172 0 0 1 0-35.310345z m0 88.275862h205.78869a17.655172 17.655172 0 0 1 0 35.310345H600.275862a17.655172 17.655172 0 0 1 0-35.310345z m278.068966 0H935.724138a17.655172 17.655172 0 0 1 0 35.310345h-57.37931a17.655172 17.655172 0 0 1 0-35.310345z",fill:"#C7EAF9","p-id":"11025"}),(0,r.jsx)("path",{d:"M194.206897 211.862069h282.482758a17.655172 17.655172 0 1 1 0 35.310345H194.206897a17.655172 17.655172 0 1 1 0-35.310345z m0 88.275862h171.59062a17.655172 17.655172 0 1 1 0 35.310345H194.206897a17.655172 17.655172 0 1 1 0-35.310345z m238.344827 0H476.689655a17.655172 17.655172 0 1 1 0 35.310345h-44.137931a17.655172 17.655172 0 1 1 0-35.310345z",fill:"#C7EAF9","p-id":"11026"}),(0,r.jsx)("path",{d:"M194.206897 176.551724H141.241379v52.965517a17.655172 17.655172 0 1 1-35.310345 0V158.896552a17.655172 17.655172 0 0 1 17.655173-17.655173h70.62069a17.655172 17.655172 0 0 1 0 35.310345z",fill:"#C7EAF9","p-id":"11027"}),(0,r.jsx)("path",{d:"M317.793103 564.965517h141.24138a141.241379 141.241379 0 1 1-141.24138-141.241379v141.241379z",fill:"#47C5FC","p-id":"11028"}),(0,r.jsx)("path",{d:"M335.448276 406.068966a141.241379 141.241379 0 0 1 141.241379 141.241379h-141.241379v-141.241379z",fill:"#FFDE21","p-id":"11029"}),(0,r.jsx)("path",{d:"M582.62069 176.551724h52.965517v247.172414h-52.965517z",fill:"#FFDE21","p-id":"11030"}),(0,r.jsx)("path",{d:"M688.551724 247.172414h52.965517v176.551724h-52.965517z",fill:"#47C5FC","p-id":"11031"}),(0,r.jsx)("path",{d:"M794.482759 300.137931h52.965517v123.586207h-52.965517z",fill:"#47C5FC","p-id":"11032"}),(0,r.jsx)("path",{d:"M900.413793 353.103448h52.965517v70.62069h-52.965517z",fill:"#FFDE21","p-id":"11033"})]})},i=function(){return(0,r.jsxs)("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"13568",className:"w-full h-full",children:[(0,r.jsx)("path",{d:"M185.66 459H70.5c-5.54 0-10 4.48-10 10v373.26c0 5.52 4.46 10 10 10h115.16c5.52 0 10-4.48 10-10V469c0-5.52-4.48-10-10-10z m-10 373.26H80.5V479h95.16v353.26z",fill:"#23130D","p-id":"13569"}),(0,r.jsx)("path",{d:"M80.5 479h95.16v353.26H80.5z",fill:"#F9C139","p-id":"13570"}),(0,r.jsx)("path",{d:"M80.5 479H100v353.26h-19.5z",fill:"#FFFFFF",opacity:".4","p-id":"13571"}),(0,r.jsx)("path",{d:"M156.16 479h19.5v353.26h-19.5z",fill:"#1C1817",opacity:".2","p-id":"13572"}),(0,r.jsx)("path",{d:"M377.62 556.06h-115.16c-5.54 0-10 4.48-10 10v276.2c0 5.52 4.46 10 10 10h115.16c5.54 0 10-4.48 10-10v-276.2c0-5.52-4.46-10-10-10z m-10 276.2h-95.16v-256.2h95.16v256.2z",fill:"#23130D","p-id":"13573"}),(0,r.jsx)("path",{d:"M272.46 576.06h95.16v256.2h-95.16z",fill:"#EC7063","p-id":"13574"}),(0,r.jsx)("path",{d:"M569.58 358.02h-115.16c-5.54 0-10 4.48-10 10v474.24c0 5.52 4.46 10 10 10h115.16c5.54 0 10-4.48 10-10V368.02c0-5.52-4.46-10-10-10z m-10 474.24h-95.16V378.02h95.16v454.24z",fill:"#23130D","p-id":"13575"}),(0,r.jsx)("path",{d:"M464.42 378.02h95.16v454.24h-95.16z",fill:"#72AF5F","p-id":"13576"}),(0,r.jsx)("path",{d:"M761.54 419.62h-115.16c-5.54 0-10 4.48-10 10v412.64c0 5.52 4.46 10 10 10h115.16c5.54 0 10-4.48 10-10V429.62c0-5.52-4.46-10-10-10z m-10 412.64h-95.16V439.62h95.16v392.64z",fill:"#23130D","p-id":"13577"}),(0,r.jsx)("path",{d:"M656.38 439.62h95.16v392.64h-95.16z",fill:"#EC7063","p-id":"13578"}),(0,r.jsx)("path",{d:"M953.5 281.94h-115.16c-5.52 0-10 4.48-10 10v550.32c0 5.52 4.48 10 10 10h115.16c5.54 0 10-4.48 10-10V291.94c0-5.52-4.46-10-10-10z m-10 550.32h-95.16V301.94h95.16v530.32z",fill:"#23130D","p-id":"13579"}),(0,r.jsx)("path",{d:"M848.34 301.94h95.16v530.32h-95.16z",fill:"#72AF5F","p-id":"13580"}),(0,r.jsx)("path",{d:"M953.51 883.768H70.49a10 10 0 1 0 0 20h883.02c5.524 0 10-4.476 10-10s-4.476-10-10-10zM895.92 120.24c-36.72 0-66.62 29.88-66.62 66.6 0 10.8 2.6 21 7.2 30.04l-84.72 60.34c-12.12-12.5-29.08-20.3-47.82-20.3-26.08 0-48.7 15.08-59.64 36.96l-66.56-21.38c0.56-3.46 0.86-7 0.86-10.62 0-36.72-29.88-66.6-66.62-66.6s-66.62 29.88-66.62 66.6c0 14.88 4.92 28.64 13.18 39.74l-99.32 100.32a66.24 66.24 0 0 0-39.2-12.8c-22.16 0-41.8 10.88-53.92 27.56l-75.9-39.12c2.26-6.7 3.5-13.84 3.5-21.28 0-36.72-29.88-66.6-66.62-66.6-36.72 0-66.6 29.88-66.6 66.6 0 36.74 29.88 66.62 66.6 66.62 22.16 0 41.82-10.88 53.94-27.58l75.9 39.14a66.316 66.316 0 0 0-3.52 21.28c0 36.72 29.88 66.6 66.62 66.6s66.62-29.88 66.62-66.6c0-14.9-4.92-28.64-13.2-39.76l99.32-100.32a66.18 66.18 0 0 0 39.22 12.82c26.08 0 48.7-15.08 59.62-36.96l66.58 21.38c-0.56 3.46-0.86 7-0.86 10.6 0 36.74 29.88 66.62 66.62 66.62s66.62-29.88 66.62-66.62c0-10.8-2.6-21-7.18-30.02l84.7-60.34c12.12 12.5 29.08 20.3 47.82 20.3 36.74 0 66.62-29.88 66.62-66.62 0-36.72-29.88-66.6-66.62-66.6zM127.1 402.92c-25.7 0-46.6-20.92-46.6-46.62 0-25.7 20.9-46.6 46.6-46.6 25.7 0 46.62 20.9 46.62 46.6 0 25.7-20.92 46.62-46.62 46.62z m192.94 99.44c-25.7 0-46.62-20.9-46.62-46.6 0-25.72 20.92-46.62 46.62-46.62 25.7 0 46.62 20.9 46.62 46.62 0 25.7-20.92 46.6-46.62 46.6zM512 308.5c-25.7 0-46.62-20.92-46.62-46.62s20.92-46.6 46.62-46.6 46.62 20.9 46.62 46.6-20.92 46.62-46.62 46.62z m191.96 61.64c-25.7 0-46.62-20.9-46.62-46.62 0-4.94 0.8-9.72 2.22-14.2l0.02-0.02v-0.02c6.04-18.76 23.64-32.36 44.38-32.36 25.7 0 46.62 20.9 46.62 46.6 0 25.72-20.92 46.62-46.62 46.62z m191.96-136.68c-25.7 0-46.62-20.9-46.62-46.62 0-25.7 20.92-46.6 46.62-46.6 25.7 0 46.62 20.9 46.62 46.6 0 25.72-20.92 46.62-46.62 46.62z",fill:"#23130D","p-id":"13581"}),(0,r.jsx)("path",{d:"M942.54 186.84c0 25.72-20.92 46.62-46.62 46.62-25.7 0-46.62-20.9-46.62-46.62 0-25.7 20.92-46.6 46.62-46.6 25.7 0 46.62 20.9 46.62 46.6z",fill:"#72AF5F","p-id":"13582"}),(0,r.jsx)("path",{d:"M750.58 323.52c0 25.72-20.92 46.62-46.62 46.62-25.7 0-46.62-20.9-46.62-46.62 0-4.94 0.8-9.72 2.22-14.2l0.02-0.02v-0.02c6.04-18.76 23.64-32.36 44.38-32.36 25.7 0 46.62 20.9 46.62 46.6z",fill:"#EC7063","p-id":"13583"}),(0,r.jsx)("path",{d:"M558.62 261.88c0 25.7-20.92 46.62-46.62 46.62s-46.62-20.92-46.62-46.62 20.92-46.6 46.62-46.6 46.62 20.9 46.62 46.6z",fill:"#72AF5F","p-id":"13584"}),(0,r.jsx)("path",{d:"M366.66 455.76c0 25.7-20.92 46.6-46.62 46.6-25.7 0-46.62-20.9-46.62-46.6 0-25.72 20.92-46.62 46.62-46.62 25.7 0 46.62 20.9 46.62 46.62z",fill:"#EC7063","p-id":"13585"}),(0,r.jsx)("path",{d:"M173.72 356.3c0 25.7-20.92 46.62-46.62 46.62-25.7 0-46.6-20.92-46.6-46.62 0-25.7 20.9-46.6 46.6-46.6 25.7 0 46.62 20.9 46.62 46.6z",fill:"#F9C139","p-id":"13586"}),(0,r.jsx)("path",{d:"M173.72 356.3c0 25.7-20.92 46.62-46.62 46.62a45.6 45.6 0 0 1-12-1.58c19.9-5.3 34.62-23.48 34.62-45.04s-14.72-39.74-34.62-45.04c3.82-1.02 7.84-1.56 12-1.56 25.7 0 46.62 20.9 46.62 46.6zM366.66 455.74c0 25.7-20.92 46.62-46.62 46.62a45.6 45.6 0 0 1-12-1.58c19.9-5.3 34.62-23.48 34.62-45.04s-14.72-39.74-34.62-45.04c3.82-1.02 7.84-1.56 12-1.56 25.7 0 46.62 20.9 46.62 46.6zM558.62 261.88c0 25.7-20.92 46.62-46.62 46.62a45.6 45.6 0 0 1-12-1.58c19.9-5.3 34.62-23.48 34.62-45.04s-14.72-39.74-34.62-45.04c3.82-1.02 7.84-1.56 12-1.56 25.7 0 46.62 20.9 46.62 46.6zM750.58 323.52c0 25.7-20.92 46.62-46.62 46.62a45.6 45.6 0 0 1-12-1.58c19.9-5.3 34.62-23.48 34.62-45.04s-14.72-39.74-34.62-45.04c3.82-1.02 7.84-1.56 12-1.56 25.7 0 46.62 20.9 46.62 46.6zM943.5 186.84c0 25.7-20.92 46.62-46.62 46.62a45.6 45.6 0 0 1-12-1.58c19.9-5.3 34.62-23.48 34.62-45.04s-14.72-39.74-34.62-45.04c3.82-1.02 7.84-1.56 12-1.56 25.7 0 46.62 20.9 46.62 46.6z",fill:"#1C1817",opacity:".2","p-id":"13587"}),(0,r.jsx)("path",{d:"M272.46 575.06h19.5v257.2h-19.5z",fill:"#FFFFFF",opacity:".4","p-id":"13588"}),(0,r.jsx)("path",{d:"M348.12 575.06h19.5v257.2h-19.5z",fill:"#1C1817",opacity:".2","p-id":"13589"}),(0,r.jsx)("path",{d:"M463.94 378.746h19.5V832.26h-19.5z",fill:"#FFFFFF",opacity:".4","p-id":"13590"}),(0,r.jsx)("path",{d:"M539.6 378.746h19.5V832.26h-19.5z",fill:"#1C1817",opacity:".2","p-id":"13591"}),(0,r.jsx)("path",{d:"M656.38 438.7h19.5v393.56h-19.5z",fill:"#FFFFFF",opacity:".4","p-id":"13592"}),(0,r.jsx)("path",{d:"M732.04 438.7h19.5v393.56h-19.5z",fill:"#1C1817",opacity:".2","p-id":"13593"}),(0,r.jsx)("path",{d:"M848.34 302.306h19.5V832.26h-19.5z",fill:"#FFFFFF",opacity:".4","p-id":"13594"}),(0,r.jsx)("path",{d:"M924 302.306h19.5V832.26H924z",fill:"#1C1817",opacity:".2","p-id":"13595"})]})},a=function(){return(0,r.jsx)("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4946",className:"w-full h-full",children:(0,r.jsx)("path",{d:"M512 128C323.413333 128 170.666667 204.373333 170.666667 298.666667s152.746667 170.666667 341.333333 170.666666 341.333333-76.373333 341.333333-170.666666-152.746667-170.666667-341.333333-170.666667M170.666667 384v128c0 94.293333 152.746667 170.666667 341.333333 170.666667s341.333333-76.373333 341.333333-170.666667V384c0 94.293333-152.746667 170.666667-341.333333 170.666667s-341.333333-76.373333-341.333333-170.666667m0 213.333333v128c0 94.293333 152.746667 170.666667 341.333333 170.666667s341.333333-76.373333 341.333333-170.666667v-128c0 94.293333-152.746667 170.666667-341.333333 170.666667s-341.333333-76.373333-341.333333-170.666667z",fill:"#FFCA28","p-id":"4947"})})},l=function(){return(0,r.jsxs)("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"27999",className:"w-full h-full",children:[(0,r.jsx)("path",{d:"M701.781333 199.68a22.869333 22.869333 0 0 1 22.698667 22.186667v349.696h45.738667l34.133333-392.533334a22.698667 22.698667 0 0 0-20.650667-24.576L315.221333 113.834667A22.869333 22.869333 0 0 0 290.133333 134.656l-5.632 65.024z",fill:"#FFC670","p-id":"28000"}),(0,r.jsx)("path",{d:"M313.002667 674.816A25.6 25.6 0 0 1 338.773333 648.533333h154.965334a51.2 51.2 0 0 0 32.085333-11.264l69.12-54.954666a51.2 51.2 0 0 1 32.085333-11.264h97.450667V221.866667a22.869333 22.869333 0 0 0-22.698667-22.869334H231.253333A22.869333 22.869333 0 0 0 208.554667 221.866667v638.805333a22.698667 22.698667 0 0 0 22.698666 22.698667h81.749334z",fill:"#FFF6E6","p-id":"28001"}),(0,r.jsx)("path",{d:"M724.48 571.562667v-94.890667a472.234667 472.234667 0 0 1-38.570667 94.890667zM313.002667 757.418667a514.56 514.56 0 0 1-104.448-15.36v119.466666a22.698667 22.698667 0 0 0 22.698666 22.698667h81.749334z",fill:"#FFEBCC","p-id":"28002"}),(0,r.jsx)("path",{d:"M594.944 582.826667l-69.12 54.954666a51.2 51.2 0 0 1-32.085333 11.264h-154.965334a25.6 25.6 0 0 0-25.770666 25.770667v209.578667a25.770667 25.770667 0 0 0 25.770666 25.770666h450.901334a25.941333 25.941333 0 0 0 25.770666-25.770666V597.333333a25.941333 25.941333 0 0 0-25.770666-25.770666h-162.645334a51.2 51.2 0 0 0-32.085333 11.264z",fill:"#96DDFF","p-id":"28003"}),(0,r.jsx)("path",{d:"M564.224 840.874667a971.776 971.776 0 0 1-251.221333-31.402667v74.922667a25.770667 25.770667 0 0 0 25.770666 25.770666h450.901334a25.941333 25.941333 0 0 0 25.770666-25.770666v-74.922667a971.776 971.776 0 0 1-251.221333 31.402667z",fill:"#69BAF9","p-id":"28004"}),(0,r.jsx)("path",{d:"M789.674667 554.496h-0.853334l32.768-373.418667A39.936 39.936 0 0 0 785.066667 137.898667l-468.48-40.96A40.106667 40.106667 0 0 0 273.066667 133.12l-4.266667 49.664h-37.546667A39.765333 39.765333 0 0 0 191.488 221.866667v638.805333a39.765333 39.765333 0 0 0 39.765333 39.765333h68.266667a43.178667 43.178667 0 0 0 39.765333 26.794667h450.389334a43.008 43.008 0 0 0 42.837333-42.837333V597.333333a43.008 43.008 0 0 0-42.837333-42.837333zM307.2 136.533333a5.632 5.632 0 0 1 6.144-5.12l468.650667 40.96a5.632 5.632 0 0 1 5.12 6.144l-32.597334 375.978667h-12.970666V221.866667a39.765333 39.765333 0 0 0-39.765334-39.765334H303.445333z m-11.605333 538.794667v190.976h-64.341334a5.632 5.632 0 0 1-5.632-5.632V221.866667a5.632 5.632 0 0 1 5.632-5.632h470.528a5.632 5.632 0 0 1 5.632 5.632v332.629333h-80.384a68.266667 68.266667 0 0 0-42.666666 15.018667l-69.12 54.954666a34.133333 34.133333 0 0 1-21.504 7.509334h-154.965334a42.837333 42.837333 0 0 0-42.837333 42.837333z m502.784 209.066667a8.704 8.704 0 0 1-8.704 8.704H338.773333a8.704 8.704 0 0 1-8.704-8.704V674.816a8.704 8.704 0 0 1 8.704-8.704h154.965334a68.266667 68.266667 0 0 0 42.837333-15.018667l68.266667-54.954666a35.328 35.328 0 0 1 21.504-7.509334h162.645333a8.704 8.704 0 0 1 8.704 8.704z",fill:"#3D3D63","p-id":"28005"}),(0,r.jsx)("path",{d:"M744.789333 823.808h-64.341333a17.066667 17.066667 0 0 0 0 34.133333h64.341333a17.066667 17.066667 0 0 0 0-34.133333zM421.546667 309.248H512a17.066667 17.066667 0 0 0 0-34.133333h-90.453333a17.066667 17.066667 0 0 0 0 34.133333zM324.266667 406.016h283.989333a17.066667 17.066667 0 0 0 0-34.133333H324.266667a17.066667 17.066667 0 0 0 0 34.133333zM625.322667 474.965333a17.066667 17.066667 0 0 0-17.066667-17.066666H324.266667a17.066667 17.066667 0 0 0 0 34.133333h283.989333a17.066667 17.066667 0 0 0 17.066667-17.066667z",fill:"#3D3D63","p-id":"28006"})]})},s=function(){return(0,r.jsxs)("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"7028",className:"w-full h-full",children:[(0,r.jsx)("path",{d:"M163.560759 0.702493A152.675051 152.675051 0 0 0 11.822365 153.377544v632.243311a152.675051 152.675051 0 0 0 151.738394 151.738395h476.055797a152.675051 152.675051 0 0 0 152.675052-152.675052V314.950835A57.136062 57.136062 0 0 0 775.197622 274.674594L519.256163 17.093986a58.072719 58.072719 0 0 0-41.212898-17.093986z",fill:"#41CC8B","p-id":"7029"}),(0,r.jsx)("path",{d:"M775.197622 274.674594L519.256163 17.093986a57.604391 57.604391 0 0 0-29.738852-15.689001 5.854105 5.854105 0 0 0-6.790762 5.854105V131.834439a178.433112 178.433112 0 0 0 178.433113 178.433112H784.564189a5.854105 5.854105 0 0 0 5.854105-6.790762A55.965241 55.965241 0 0 0 775.197622 274.674594z",fill:"#05B25F","p-id":"7030"}),(0,r.jsx)("path",{d:"M667.482095 281.69952h114.03796a51.98445 51.98445 0 0 0-6.322433-7.024926L519.256163 17.093986l-7.727418-6.322433v114.506288A156.187514 156.187514 0 0 0 667.482095 281.69952z",fill:"#B0F9D7","p-id":"7031"}),(0,r.jsx)("path",{d:"M92.140681 419.856391h117.082095v28.333867H128.904459v39.807913h67.205123v28.802195H128.904459v46.832838h81.957466v28.802195H92.140681zM274.554585 523.825292L232.639195 462.005946h40.510405l14.284015 23.416419q6.322433 11.239881 12.644867 21.777269l5.151612-10.771553 6.322433-11.005716 11.942374-23.416419H363.068649l-41.91539 66.268465 44.72536 63.69266h-40.978733l-15.923165-23.416419L302.185959 555.671621l-7.024925-11.239881-7.024926 11.239881-6.088269 11.70821-13.347359 23.416419H229.829225zM400.534919 576.980563a65.565973 65.565973 0 0 1-19.903956-50.111137 64.629316 64.629316 0 0 1 21.777269-50.813629 76.57169 76.57169 0 0 1 51.047794-17.796478 66.50263 66.50263 0 0 1 41.681225 14.518179l-17.796478 22.011434a35.124628 35.124628 0 0 0-22.011434-8.664075 33.251315 33.251315 0 0 0-26.226389 11.239881 41.447062 41.447062 0 0 0-10.303224 29.504688 40.978733 40.978733 0 0 0 10.06906 28.802195 32.782987 32.782987 0 0 0 25.523896 11.005717 46.832838 46.832838 0 0 0 27.865539-11.005717l14.752344 23.416419a72.590899 72.590899 0 0 1-46.832838 15.689001 70.249257 70.249257 0 0 1-49.642808-17.796478zM535.88182 576.746398a63.926824 63.926824 0 0 1-20.840613-49.876972 67.439287 67.439287 0 0 1 20.372285-50.345301 65.565973 65.565973 0 0 1 46.832838-18.264806 57.838555 57.838555 0 0 1 44.72536 17.562314 65.331809 65.331809 0 0 1 14.986508 44.72536 51.047793 51.047793 0 0 1-1.873313 15.454836h-88.514064a35.827121 35.827121 0 0 0 13.113195 23.416419 40.276241 40.276241 0 0 0 26.460553 8.429911 62.990167 62.990167 0 0 0 32.080494-9.132403l12.87903 21.074777a93.665676 93.665676 0 0 1-50.111136 14.284015 71.420078 71.420078 0 0 1-50.111137-17.32815z m73.527556-63.224331c0-19.201464-9.132403-28.802195-27.163046-28.802195a29.504688 29.504688 0 0 0-20.138121 7.25909 33.719643 33.719643 0 0 0-11.005716 21.543105zM672.399543 555.671621v-149.396752h37.232106V555.671621a10.771553 10.771553 0 0 0 2.575806 7.961583 6.322433 6.322433 0 0 0 5.151612 2.341642h5.151612l4.44912 25.289732a53.857764 53.857764 0 0 1-19.435628 3.044135c-23.416419 0.468328-35.124628-12.644866-35.124628-38.637092z",fill:"#F5F6FA","p-id":"7032"})]})},c=function(){return(0,r.jsxs)("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"34873",className:"w-full h-full",children:[(0,r.jsx)("path",{d:"M392.32 403.84a48 48 0 0 1-48 48h-96a48 48 0 0 1-48-48V236.16h192z",fill:"#EA5E5A","p-id":"34874"}),(0,r.jsx)("path",{d:"M259.84 176h24.32v24.32h-24.32zM307.84 176h24.32v24.32h-24.32z",fill:"#34303D","p-id":"34875"}),(0,r.jsx)("path",{d:"M380.16 236.16h-24.32V152.32H236.16v83.84h-24.32V128h168.32v108.16z",fill:"#34303D","p-id":"34876"}),(0,r.jsx)("path",{d:"M344.32 464h-96a60.16 60.16 0 0 1-60.16-60.16V224h215.68v179.84a60.16 60.16 0 0 1-60.16 60.16zM211.84 248.32v155.52a35.84 35.84 0 0 0 35.84 35.84h96a35.84 35.84 0 0 0 35.84-35.84V248.32z",fill:"#34303D","p-id":"34877"}),(0,r.jsx)("path",{d:"M236.16 272h120.32v24.32H236.16zM236.16 320h120.32v24.32H236.16zM320 512h-48a24.32 24.32 0 0 1-23.68-23.68v-36.48h24.32v35.84H320v-35.84h24.32v35.84A24.32 24.32 0 0 1 320 512z",fill:"#34303D","p-id":"34878"}),(0,r.jsx)("path",{d:"M632.32 620.16a48 48 0 0 1 48-48h96a48 48 0 0 1 48 48v168.32h-192z",fill:"#EA5E5A","p-id":"34879"}),(0,r.jsx)("path",{d:"M739.84 824.32h24.32v24.32h-24.32zM691.84 824.32h24.32v24.32h-24.32z",fill:"#34303D","p-id":"34880"}),(0,r.jsx)("path",{d:"M812.16 896h-168.32v-108.16h24.32v84.48h119.68v-84.48h24.32V896z",fill:"#34303D","p-id":"34881"}),(0,r.jsx)("path",{d:"M835.84 800H620.16V620.16a60.16 60.16 0 0 1 60.16-60.16h96a60.16 60.16 0 0 1 60.16 60.16z m-192-23.68h168.32V620.16a35.84 35.84 0 0 0-35.84-35.84h-96a35.84 35.84 0 0 0-35.84 35.84z",fill:"#34303D","p-id":"34882"}),(0,r.jsx)("path",{d:"M668.16 680.32h120.32v24.32h-120.32zM668.16 728.32h120.32v24.32h-120.32zM776.32 572.16h-23.68v-35.84H704v35.84h-23.68v-35.84A24.32 24.32 0 0 1 704 512h48a24.32 24.32 0 0 1 24.32 24.32z",fill:"#34303D","p-id":"34883"}),(0,r.jsx)("path",{d:"M403.84 848a120.32 120.32 0 0 1-119.68-119.68V499.84h24.32v227.84a96 96 0 0 0 192 0V296.32a120.32 120.32 0 0 1 240 0v227.84h-23.68V296.32a96 96 0 0 0-192 0v432a120.32 120.32 0 0 1-119.68 120.32z",fill:"#34303D","p-id":"34884"}),(0,r.jsx)("path",{d:"M608 284.16h24.32v24.32H608zM608 332.16h24.32v24.32H608zM608 380.16h24.32v24.32H608zM392.32 620.16h24.32v24.32h-24.32zM392.32 668.16h24.32v24.32h-24.32zM392.32 716.16h24.32v24.32h-24.32z",fill:"#34303D","p-id":"34885"}),(0,r.jsx)("path",{d:"M691.84 296.32h-23.68a48 48 0 0 0-96 0h-24.32a72.32 72.32 0 0 1 144 0zM403.84 800a72.32 72.32 0 0 1-71.68-71.68h24.32a48 48 0 0 0 96 0h24.32a72.32 72.32 0 0 1-72.96 71.68z",fill:"#34303D","p-id":"34886"})]})},u=function(){return(0,r.jsx)("svg",{width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 1024 1024",children:(0,r.jsx)("path",{d:"M593.054 120.217C483.656 148.739 402.91 248.212 402.91 366.546c0 140.582 113.962 254.544 254.544 254.544 118.334 0 217.808-80.746 246.328-190.144C909.17 457.12 912 484.23 912 512c0 220.914-179.086 400-400 400S112 732.914 112 512s179.086-400 400-400c27.77 0 54.88 2.83 81.054 8.217z","p-id":"5941"})})},f=function(){return(0,r.jsx)("svg",{width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 1024 1024",version:"1.1",children:(0,r.jsx)("path",{d:"M513.89 950.72c-5.5 0-11-1.4-15.99-4.2L143.84 743c-9.85-5.73-15.99-16.17-15.99-27.64V308.58c0-11.33 6.14-21.91 15.99-27.64L497.9 77.43c9.85-5.73 22.14-5.73 31.99 0l354.06 203.52c9.85 5.73 15.99 16.17 15.99 27.64V715.5c0 11.33-6.14 21.91-15.99 27.64L529.89 946.52c-4.99 2.8-10.49 4.2-16 4.2zM191.83 697.15L513.89 882.2l322.07-185.05V326.92L513.89 141.87 191.83 326.92v370.23z m322.06-153.34c-5.37 0-10.88-1.4-15.99-4.33L244.29 393.91c-15.35-8.79-20.6-28.27-11.77-43.56 8.83-15.28 28.41-20.5 43.76-11.72l253.61 145.7c15.35 8.79 20.6 28.27 11.77 43.56-6.01 10.32-16.76 15.92-27.77 15.92z m0 291.52c-17.66 0-31.99-14.26-31.99-31.84V530.44L244.55 393.91s-0.13 0-0.13-0.13l-100.45-57.69c-15.35-8.79-20.6-28.27-11.77-43.56s28.41-20.5 43.76-11.72l354.06 203.52c9.85 5.73 15.99 16.17 15.99 27.64v291.39c-0.13 17.71-14.46 31.97-32.12 31.97z m0 115.39c-17.66 0-31.99-14.26-31.99-31.84V511.97c0-17.58 14.33-31.84 31.99-31.84s31.99 14.26 31.99 31.84v406.91c0 17.7-14.33 31.84-31.99 31.84z m0-406.91c-11 0-21.75-5.73-27.77-15.92-8.83-15.28-3.58-34.64 11.77-43.56l354.06-203.52c15.35-8.79 34.8-3.57 43.76 11.72 8.83 15.28 3.58 34.64-11.77 43.56L529.89 539.61c-4.99 2.93-10.49 4.2-16 4.2z"})})},d=function(){return(0,r.jsx)("svg",{width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 1024 1024",version:"1.1",children:(0,r.jsx)("path",{d:"M602.24 246.72a17.28 17.28 0 0 0-11.84-16.32l-42.88-14.4A90.56 90.56 0 0 1 490.24 160l-14.4-42.88a17.28 17.28 0 0 0-32 0L428.8 160a90.56 90.56 0 0 1-57.28 57.28l-42.88 14.4a17.28 17.28 0 0 0 0 32l42.88 14.4a90.56 90.56 0 0 1 57.28 57.28l14.4 42.88a17.28 17.28 0 0 0 32 0l14.4-42.88a90.56 90.56 0 0 1 57.28-57.28l42.88-14.4a17.28 17.28 0 0 0 12.48-16.96z m301.12 221.76l-48.32-16a101.44 101.44 0 0 1-64-64l-16-48.32a19.2 19.2 0 0 0-36.8 0l-16 48.32a101.44 101.44 0 0 1-64 64l-48.32 16a19.2 19.2 0 0 0 0 36.8l48.32 16a101.44 101.44 0 0 1 64 64l16 48.32a19.2 19.2 0 0 0 36.8 0l16-48.32a101.44 101.44 0 0 1 64-64l48.32-16a19.2 19.2 0 0 0 0-36.8z m-376.64 195.52l-64-20.8a131.84 131.84 0 0 1-83.52-83.52l-20.8-64a25.28 25.28 0 0 0-47.68 0l-20.8 64a131.84 131.84 0 0 1-82.24 83.52l-64 20.8a25.28 25.28 0 0 0 0 47.68l64 20.8a131.84 131.84 0 0 1 83.52 83.84l20.8 64a25.28 25.28 0 0 0 47.68 0l20.8-64a131.84 131.84 0 0 1 83.52-83.52l64-20.8a25.28 25.28 0 0 0 0-47.68z","p-id":"3992"})})},p=function(){return(0,r.jsx)("svg",{width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 1024 1024",children:(0,r.jsx)("path",{d:"M554.6 64h-85.4v128h85.4V64z m258.2 87.4L736 228.2l59.8 59.8 76.8-76.8-59.8-59.8z m-601.6 0l-59.8 59.8 76.8 76.8 59.8-59.8-76.8-76.8zM512 256c-140.8 0-256 115.2-256 256s115.2 256 256 256 256-115.2 256-256-115.2-256-256-256z m448 213.4h-128v85.4h128v-85.4z m-768 0H64v85.4h128v-85.4zM795.8 736L736 795.8l76.8 76.8 59.8-59.8-76.8-76.8z m-567.6 0l-76.8 76.8 59.8 59.8 76.8-76.8-59.8-59.8z m326.4 96h-85.4v128h85.4v-128z","p-id":"7802"})})};function h(){return(0,r.jsxs)("svg",{className:"mr-1",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4602",width:"1.5em",height:"1.5em",children:[(0,r.jsx)("path",{d:"M688 312v-48c0-4.4-3.6-8-8-8H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8zM296 400c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H296zM672 516c-119.3 0-216 96.7-216 216s96.7 216 216 216 216-96.7 216-216-96.7-216-216-216z m107.5 323.5C750.8 868.2 712.6 884 672 884s-78.8-15.8-107.5-44.5C535.8 810.8 520 772.6 520 732s15.8-78.8 44.5-107.5C593.2 595.8 631.4 580 672 580s78.8 15.8 107.5 44.5C808.2 653.2 824 691.4 824 732s-15.8 78.8-44.5 107.5z","p-id":"4603",fill:"#87d068"}),(0,r.jsx)("path",{d:"M761 656h-44.3c-2.6 0-5 1.2-6.5 3.3l-63.5 87.8-23.1-31.9c-1.5-2.1-3.9-3.3-6.5-3.3H573c-6.5 0-10.3 7.4-6.5 12.7l73.8 102.1c3.2 4.4 9.7 4.4 12.9 0l114.2-158c3.9-5.3 0.1-12.7-6.4-12.7z","p-id":"4604",fill:"#87d068"}),(0,r.jsx)("path",{d:"M440 852H208V148h560v344c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h272c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z","p-id":"4605",fill:"#87d068"})]})}function m(){return(0,r.jsxs)("svg",{className:"mr-1",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4838",width:"1.5em",height:"1.5em",children:[(0,r.jsx)("path",{d:"M296 256c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H296zM488 456v-48c0-4.4-3.6-8-8-8H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8z","p-id":"4839",fill:"#2db7f5"}),(0,r.jsx)("path",{d:"M440 852H208V148h560v344c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h272c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z","p-id":"4840",fill:"#2db7f5"}),(0,r.jsx)("path",{d:"M544.1 736.4c1.8-34.5 16.2-66.8 40.8-91.4 26.2-26.2 62-41 99.1-41 37.4 0 72.6 14.6 99.1 41 3.2 3.2 6.3 6.6 9.2 10.1L769.2 673c-5.3 4.1-3.5 12.5 3 14.1l93.3 22.5c5 1.2 9.8-2.6 9.9-7.7l0.6-95.4c0-6.7-7.6-10.5-12.9-6.4l-20.3 15.8C805.4 569.6 748.1 540 684 540c-109.9 0-199.6 86.9-204 195.7-0.2 4.5 3.5 8.3 8 8.3h48.1c4.3 0 7.8-3.3 8-7.6zM880 744h-48.1c-4.3 0-7.8 3.3-8 7.6-1.8 34.5-16.2 66.8-40.8 91.4-26.2 26.2-62 41-99.1 41-37.4 0-72.6-14.6-99.1-41-3.2-3.2-6.3-6.6-9.2-10.1l23.1-17.9c5.3-4.1 3.5-12.5-3-14.1l-93.3-22.5c-5-1.2-9.8 2.6-9.9 7.7l-0.6 95.4c0 6.7 7.6 10.5 12.9 6.4l20.3-15.8C562.6 918.4 619.9 948 684 948c109.9 0 199.6-86.9 204-195.7 0.2-4.5-3.5-8.3-8-8.3z","p-id":"4841",fill:"#2db7f5"})]})}function g(){return(0,r.jsxs)("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4260",width:"1.5em",height:"1.5em",children:[(0,r.jsx)("path",{d:"M114.5856 951.04h298.24v-71.68H186.2656v-747.52h593.92v271.36h71.68v-343.04h-737.28v890.88z",fill:"#747690","p-id":"4261"}),(0,r.jsx)("path",{d:"M662.4256 311.04h-358.4v-71.68h358.4v71.68zM508.8256 490.24h-204.8v-71.68h204.8v71.68zM668.8256 554.24a168.96 168.96 0 1 0 0 337.92 168.96 168.96 0 0 0 0-337.92z m-240.64 168.96a240.64 240.64 0 1 1 481.28 0 240.64 240.64 0 0 1-481.28 0z",fill:"#747690","p-id":"4262"}),(0,r.jsx)("path",{d:"M629.76 588.8h71.68v131.4304l82.5856 41.3184-32.0512 64.1024-122.2144-61.0816V588.8z",fill:"#747690","p-id":"4263"})]})}function v(){return(0,r.jsx)("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"9211",width:"1.5em",height:"1.5em",children:(0,r.jsx)("path",{d:"M151.5 586.2c-5-24.2-7.5-49.2-7.5-74.2s2.5-50 7.5-74.2c4.8-23.6 12-46.8 21.4-69 9.2-21.8 20.6-42.8 33.9-62.5 13.2-19.5 28.3-37.8 45-54.5s35-31.8 54.5-45c19.7-13.3 40.7-24.7 62.5-33.9 22.2-9.4 45.4-16.6 69-21.4 48.5-9.9 99.9-9.9 148.4 0 23.6 4.8 46.8 12 69 21.4 21.8 9.2 42.8 20.6 62.5 33.9 19.5 13.2 37.8 28.3 54.5 45 1.4 1.4 2.8 2.8 4.1 4.2H688c-17.7 0-32 14.3-32 32s14.3 32 32 32h160c17.7 0 32-14.3 32-32V128c0-17.7-14.3-32-32-32s-32 14.3-32 32v77.1c-19.2-19-40.1-36.2-62.4-51.3-23.1-15.6-47.8-29-73.4-39.8-26.1-11-53.4-19.5-81.1-25.2-56.9-11.6-117.1-11.6-174.1 0-27.8 5.7-55.1 14.2-81.1 25.2-25.6 10.8-50.3 24.2-73.4 39.8-22.9 15.4-44.4 33.2-63.9 52.7s-37.3 41-52.7 63.9c-15.6 23.1-29 47.8-39.8 73.4-11 26.1-19.5 53.4-25.2 81.1C83 453.4 80 482.7 80 512s3 58.6 8.8 87c3.1 15.2 16.4 25.6 31.3 25.6 2.1 0 4.3-0.2 6.4-0.7 17.4-3.5 28.5-20.4 25-37.7zM935.2 425c-3.5-17.3-20.5-28.5-37.8-24.9-17.3 3.5-28.5 20.5-24.9 37.8 5 24.2 7.5 49.2 7.5 74.2s-2.5 50-7.5 74.2c-4.8 23.6-12 46.8-21.4 69-9.2 21.8-20.6 42.8-33.9 62.5-13.2 19.5-28.3 37.8-45 54.5s-35 31.8-54.5 45C698 830.6 677 842 655.2 851.2c-22.2 9.4-45.4 16.6-69 21.4-48.5 9.9-99.9 9.9-148.4 0-23.6-4.8-46.8-12-69-21.4-21.8-9.2-42.8-20.6-62.5-33.9-19.5-13.2-37.8-28.3-54.5-45-1.4-1.4-2.8-2.8-4.1-4.2H336c17.7 0 32-14.3 32-32s-14.3-32-32-32H176c-17.7 0-32 14.3-32 32v160c0 17.7 14.3 32 32 32s32-14.3 32-32V819c19.2 19 40.1 36.2 62.4 51.3 23.1 15.6 47.8 29 73.4 39.8 26.1 11 53.4 19.5 81.1 25.2 28.5 5.8 57.7 8.8 87 8.8s58.6-3 87-8.8c27.8-5.7 55-14.2 81.1-25.2 25.6-10.8 50.3-24.2 73.4-39.8 22.9-15.5 44.4-33.2 63.9-52.7s37.3-41 52.7-63.9c15.6-23.1 29-47.8 39.8-73.4 11-26.1 19.5-53.4 25.2-81.1 5.8-28.5 8.8-57.7 8.8-87 0.2-29.5-2.8-58.8-8.6-87.2z",fill:"#1875F0","p-id":"9212"})})}function y(){return(0,r.jsxs)("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"3205",width:"1.5em",height:"1.5em",children:[(0,r.jsx)("path",{d:"M688 312v-48c0-4.4-3.6-8-8-8H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8zM296 400c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H296zM672 516c-119.3 0-216 96.7-216 216s96.7 216 216 216 216-96.7 216-216-96.7-216-216-216z m107.5 323.5C750.8 868.2 712.6 884 672 884s-78.8-15.8-107.5-44.5C535.8 810.8 520 772.6 520 732s15.8-78.8 44.5-107.5C593.2 595.8 631.4 580 672 580s78.8 15.8 107.5 44.5C808.2 653.2 824 691.4 824 732s-15.8 78.8-44.5 107.5z","p-id":"3206",fill:"#1afa29"}),(0,r.jsx)("path",{d:"M761 656h-44.3c-2.6 0-5 1.2-6.5 3.3l-63.5 87.8-23.1-31.9c-1.5-2.1-3.9-3.3-6.5-3.3H573c-6.5 0-10.3 7.4-6.5 12.7l73.8 102.1c3.2 4.4 9.7 4.4 12.9 0l114.2-158c3.9-5.3 0.1-12.7-6.4-12.7z","p-id":"3207",fill:"#1afa29"}),(0,r.jsx)("path",{d:"M440 852H208V148h560v344c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h272c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z","p-id":"3208",fill:"#1afa29"})]})}n(67294);var b=n(1051)},32665:function(e,t,n){"use strict";function r(e){}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"clientHookInServerComponentError",{enumerable:!0,get:function(){return r}}),n(38754),n(67294),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},41219:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ReadonlyURLSearchParams:function(){return p},useSearchParams:function(){return h},usePathname:function(){return m},ServerInsertedHTMLContext:function(){return s.ServerInsertedHTMLContext},useServerInsertedHTML:function(){return s.useServerInsertedHTML},useRouter:function(){return g},useParams:function(){return v},useSelectedLayoutSegments:function(){return y},useSelectedLayoutSegment:function(){return b},redirect:function(){return c.redirect},notFound:function(){return u.notFound}});let r=n(67294),o=n(27473),i=n(35802),a=n(32665),l=n(43512),s=n(98751),c=n(96885),u=n(86323),f=Symbol("internal for urlsearchparams readonly");function d(){return Error("ReadonlyURLSearchParams cannot be modified")}class p{[Symbol.iterator](){return this[f][Symbol.iterator]()}append(){throw d()}delete(){throw d()}set(){throw d()}sort(){throw d()}constructor(e){this[f]=e,this.entries=e.entries.bind(e),this.forEach=e.forEach.bind(e),this.get=e.get.bind(e),this.getAll=e.getAll.bind(e),this.has=e.has.bind(e),this.keys=e.keys.bind(e),this.values=e.values.bind(e),this.toString=e.toString.bind(e)}}function h(){(0,a.clientHookInServerComponentError)("useSearchParams");let e=(0,r.useContext)(i.SearchParamsContext),t=(0,r.useMemo)(()=>e?new p(e):null,[e]);return t}function m(){return(0,a.clientHookInServerComponentError)("usePathname"),(0,r.useContext)(i.PathnameContext)}function g(){(0,a.clientHookInServerComponentError)("useRouter");let e=(0,r.useContext)(o.AppRouterContext);if(null===e)throw Error("invariant expected app router to be mounted");return e}function v(){(0,a.clientHookInServerComponentError)("useParams");let e=(0,r.useContext)(o.GlobalLayoutRouterContext);return e?function e(t,n){void 0===n&&(n={});let r=t[1];for(let t of Object.values(r)){let r=t[0],o=Array.isArray(r),i=o?r[1]:r;!i||i.startsWith("__PAGE__")||(o&&(n[r[0]]=r[1]),n=e(t,n))}return n}(e.tree):null}function y(e){void 0===e&&(e="children"),(0,a.clientHookInServerComponentError)("useSelectedLayoutSegments");let{tree:t}=(0,r.useContext)(o.LayoutRouterContext);return function e(t,n,r,o){let i;if(void 0===r&&(r=!0),void 0===o&&(o=[]),r)i=t[1][n];else{var a;let e=t[1];i=null!=(a=e.children)?a:Object.values(e)[0]}if(!i)return o;let s=i[0],c=(0,l.getSegmentValue)(s);return!c||c.startsWith("__PAGE__")?o:(o.push(c),e(i,n,!1,o))}(t,e)}function b(e){void 0===e&&(e="children"),(0,a.clientHookInServerComponentError)("useSelectedLayoutSegment");let t=y(e);return 0===t.length?null:t[0]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},86323:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{notFound:function(){return r},isNotFoundError:function(){return o}});let n="NEXT_NOT_FOUND";function r(){let e=Error(n);throw e.digest=n,e}function o(e){return(null==e?void 0:e.digest)===n}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},96885:function(e,t,n){"use strict";var r,o;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{RedirectType:function(){return r},getRedirectError:function(){return l},redirect:function(){return s},isRedirectError:function(){return c},getURLFromRedirectError:function(){return u},getRedirectTypeFromError:function(){return f}});let i=n(68214),a="NEXT_REDIRECT";function l(e,t){let n=Error(a);n.digest=a+";"+t+";"+e;let r=i.requestAsyncStorage.getStore();return r&&(n.mutableCookies=r.mutableCookies),n}function s(e,t){throw void 0===t&&(t="replace"),l(e,t)}function c(e){if("string"!=typeof(null==e?void 0:e.digest))return!1;let[t,n,r]=e.digest.split(";",3);return t===a&&("replace"===n||"push"===n)&&"string"==typeof r}function u(e){return c(e)?e.digest.split(";",3)[2]:null}function f(e){if(!c(e))throw Error("Not a redirect error");return e.digest.split(";",3)[1]}(o=r||(r={})).push="push",o.replace="replace",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},43512:function(e,t){"use strict";function n(e){return Array.isArray(e)?e[1]:e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSegmentValue",{enumerable:!0,get:function(){return n}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},29382:function(e,t){"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{PrefetchKind:function(){return n},ACTION_REFRESH:function(){return o},ACTION_NAVIGATE:function(){return i},ACTION_RESTORE:function(){return a},ACTION_SERVER_PATCH:function(){return l},ACTION_PREFETCH:function(){return s},ACTION_FAST_REFRESH:function(){return c},ACTION_SERVER_ACTION:function(){return u}});let o="refresh",i="navigate",a="restore",l="server-patch",s="prefetch",c="fast-refresh",u="server-action";(r=n||(n={})).AUTO="auto",r.FULL="full",r.TEMPORARY="temporary",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},75476:function(e,t){"use strict";function n(e,t,n,r){return!1}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return n}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},69873:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return y}});let r=n(38754),o=n(61757),i=o._(n(67294)),a=r._(n(68965)),l=n(38083),s=n(2478),c=n(76226);n(59941);let u=r._(n(31720)),f={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image/",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0};function d(e){return void 0!==e.default}function p(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function h(e,t,n,r,o,i,a){if(!e||e["data-loaded-src"]===t)return;e["data-loaded-src"]=t;let l="decode"in e?e.decode():Promise.resolve();l.catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("blur"===n&&i(!0),null==r?void 0:r.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let n=!1,o=!1;r.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>n,isPropagationStopped:()=>o,persist:()=>{},preventDefault:()=>{n=!0,t.preventDefault()},stopPropagation:()=>{o=!0,t.stopPropagation()}})}(null==o?void 0:o.current)&&o.current(e)}})}function m(e){let[t,n]=i.version.split("."),r=parseInt(t,10),o=parseInt(n,10);return r>18||18===r&&o>=3?{fetchPriority:e}:{fetchpriority:e}}let g=(0,i.forwardRef)((e,t)=>{let{imgAttributes:n,heightInt:r,widthInt:o,qualityInt:a,className:l,imgStyle:s,blurStyle:c,isLazy:u,fetchPriority:f,fill:d,placeholder:p,loading:g,srcString:v,config:y,unoptimized:b,loader:x,onLoadRef:w,onLoadingCompleteRef:C,setBlurComplete:S,setShowAltText:E,onLoad:$,onError:O,...k}=e;return g=u?"lazy":g,i.default.createElement("img",{...k,...m(f),loading:g,width:o,height:r,decoding:"async","data-nimg":d?"fill":"1",className:l,style:{...s,...c},...n,ref:(0,i.useCallback)(e=>{t&&("function"==typeof t?t(e):"object"==typeof t&&(t.current=e)),e&&(O&&(e.src=e.src),e.complete&&h(e,v,p,w,C,S,b))},[v,p,w,C,S,O,b,t]),onLoad:e=>{let t=e.currentTarget;h(t,v,p,w,C,S,b)},onError:e=>{E(!0),"blur"===p&&S(!0),O&&O(e)}})}),v=(0,i.forwardRef)((e,t)=>{var n;let r,o,{src:h,sizes:v,unoptimized:y=!1,priority:b=!1,loading:x,className:w,quality:C,width:S,height:E,fill:$,style:O,onLoad:k,onLoadingComplete:j,placeholder:P="empty",blurDataURL:Z,fetchPriority:_,layout:A,objectFit:M,objectPosition:R,lazyBoundary:N,lazyRoot:T,...F}=e,I=(0,i.useContext)(c.ImageConfigContext),L=(0,i.useMemo)(()=>{let e=f||I||s.imageConfigDefault,t=[...e.deviceSizes,...e.imageSizes].sort((e,t)=>e-t),n=e.deviceSizes.sort((e,t)=>e-t);return{...e,allSizes:t,deviceSizes:n}},[I]),B=F.loader||u.default;delete F.loader;let z="__next_img_default"in B;if(z){if("custom"===L.loader)throw Error('Image with src "'+h+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader')}else{let e=B;B=t=>{let{config:n,...r}=t;return e(r)}}if(A){"fill"===A&&($=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[A];e&&(O={...O,...e});let t={responsive:"100vw",fill:"100vw"}[A];t&&!v&&(v=t)}let D="",H=p(S),V=p(E);if("object"==typeof(n=h)&&(d(n)||void 0!==n.src)){let e=d(h)?h.default:h;if(!e.src)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(e));if(!e.height||!e.width)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(e));if(r=e.blurWidth,o=e.blurHeight,Z=Z||e.blurDataURL,D=e.src,!$){if(H||V){if(H&&!V){let t=H/e.width;V=Math.round(e.height*t)}else if(!H&&V){let t=V/e.height;H=Math.round(e.width*t)}}else H=e.width,V=e.height}}let U=!b&&("lazy"===x||void 0===x);(!(h="string"==typeof h?h:D)||h.startsWith("data:")||h.startsWith("blob:"))&&(y=!0,U=!1),L.unoptimized&&(y=!0),z&&h.endsWith(".svg")&&!L.dangerouslyAllowSVG&&(y=!0),b&&(_="high");let[W,q]=(0,i.useState)(!1),[K,G]=(0,i.useState)(!1),X=p(C),Y=Object.assign($?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:M,objectPosition:R}:{},K?{}:{color:"transparent"},O),J="blur"===P&&Z&&!W?{backgroundSize:Y.objectFit||"cover",backgroundPosition:Y.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:'url("data:image/svg+xml;charset=utf-8,'+(0,l.getImageBlurSvg)({widthInt:H,heightInt:V,blurWidth:r,blurHeight:o,blurDataURL:Z,objectFit:Y.objectFit})+'")'}:{},Q=function(e){let{config:t,src:n,unoptimized:r,width:o,quality:i,sizes:a,loader:l}=e;if(r)return{src:n,srcSet:void 0,sizes:void 0};let{widths:s,kind:c}=function(e,t,n){let{deviceSizes:r,allSizes:o}=e;if(n){let e=/(^|\s)(1?\d?\d)vw/g,t=[];for(let r;r=e.exec(n);r)t.push(parseInt(r[2]));if(t.length){let e=.01*Math.min(...t);return{widths:o.filter(t=>t>=r[0]*e),kind:"w"}}return{widths:o,kind:"w"}}if("number"!=typeof t)return{widths:r,kind:"w"};let i=[...new Set([t,2*t].map(e=>o.find(t=>t>=e)||o[o.length-1]))];return{widths:i,kind:"x"}}(t,o,a),u=s.length-1;return{sizes:a||"w"!==c?a:"100vw",srcSet:s.map((e,r)=>l({config:t,src:n,quality:i,width:e})+" "+("w"===c?e:r+1)+c).join(", "),src:l({config:t,src:n,quality:i,width:s[u]})}}({config:L,src:h,unoptimized:y,width:H,quality:X,sizes:v,loader:B}),ee=h,et=(0,i.useRef)(k);(0,i.useEffect)(()=>{et.current=k},[k]);let en=(0,i.useRef)(j);(0,i.useEffect)(()=>{en.current=j},[j]);let er={isLazy:U,imgAttributes:Q,heightInt:V,widthInt:H,qualityInt:X,className:w,imgStyle:Y,blurStyle:J,loading:x,config:L,fetchPriority:_,fill:$,unoptimized:y,placeholder:P,loader:B,srcString:ee,onLoadRef:et,onLoadingCompleteRef:en,setBlurComplete:q,setShowAltText:G,...F};return i.default.createElement(i.default.Fragment,null,i.default.createElement(g,{...er,ref:t}),b?i.default.createElement(a.default,null,i.default.createElement("link",{key:"__nimg-"+Q.src+Q.srcSet+Q.sizes,rel:"preload",as:"image",href:Q.srcSet?void 0:Q.src,imageSrcSet:Q.srcSet,imageSizes:Q.sizes,crossOrigin:F.crossOrigin,referrerPolicy:F.referrerPolicy,...m(_)})):null)}),y=v;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9940:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return x}});let r=n(38754),o=r._(n(67294)),i=n(65722),a=n(65723),l=n(28904),s=n(95514),c=n(27521),u=n(44293),f=n(27473),d=n(81307),p=n(75476),h=n(66318),m=n(29382),g=new Set;function v(e,t,n,r,o,i){if(!i&&!(0,a.isLocalURL)(t))return;if(!r.bypassPrefetchedCheck){let o=void 0!==r.locale?r.locale:"locale"in e?e.locale:void 0,i=t+"%"+n+"%"+o;if(g.has(i))return;g.add(i)}let l=i?e.prefetch(t,o):e.prefetch(t,n,r);Promise.resolve(l).catch(e=>{})}function y(e){return"string"==typeof e?e:(0,l.formatUrl)(e)}let b=o.default.forwardRef(function(e,t){let n,r;let{href:l,as:g,children:b,prefetch:x=null,passHref:w,replace:C,shallow:S,scroll:E,locale:$,onClick:O,onMouseEnter:k,onTouchStart:j,legacyBehavior:P=!1,...Z}=e;n=b,P&&("string"==typeof n||"number"==typeof n)&&(n=o.default.createElement("a",null,n));let _=!1!==x,A=null===x?m.PrefetchKind.AUTO:m.PrefetchKind.FULL,M=o.default.useContext(u.RouterContext),R=o.default.useContext(f.AppRouterContext),N=null!=M?M:R,T=!M,{href:F,as:I}=o.default.useMemo(()=>{if(!M){let e=y(l);return{href:e,as:g?y(g):e}}let[e,t]=(0,i.resolveHref)(M,l,!0);return{href:e,as:g?(0,i.resolveHref)(M,g):t||e}},[M,l,g]),L=o.default.useRef(F),B=o.default.useRef(I);P&&(r=o.default.Children.only(n));let z=P?r&&"object"==typeof r&&r.ref:t,[D,H,V]=(0,d.useIntersection)({rootMargin:"200px"}),U=o.default.useCallback(e=>{(B.current!==I||L.current!==F)&&(V(),B.current=I,L.current=F),D(e),z&&("function"==typeof z?z(e):"object"==typeof z&&(z.current=e))},[I,z,F,V,D]);o.default.useEffect(()=>{N&&H&&_&&v(N,F,I,{locale:$},{kind:A},T)},[I,F,H,$,_,null==M?void 0:M.locale,N,T,A]);let W={ref:U,onClick(e){P||"function"!=typeof O||O(e),P&&r.props&&"function"==typeof r.props.onClick&&r.props.onClick(e),N&&!e.defaultPrevented&&function(e,t,n,r,i,l,s,c,u,f){let{nodeName:d}=e.currentTarget,p="A"===d.toUpperCase();if(p&&(function(e){let t=e.currentTarget,n=t.getAttribute("target");return n&&"_self"!==n||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||!u&&!(0,a.isLocalURL)(n)))return;e.preventDefault();let h=()=>{"beforePopState"in t?t[i?"replace":"push"](n,r,{shallow:l,locale:c,scroll:s}):t[i?"replace":"push"](r||n,{forceOptimisticNavigation:!f})};u?o.default.startTransition(h):h()}(e,N,F,I,C,S,E,$,T,_)},onMouseEnter(e){P||"function"!=typeof k||k(e),P&&r.props&&"function"==typeof r.props.onMouseEnter&&r.props.onMouseEnter(e),N&&(_||!T)&&v(N,F,I,{locale:$,priority:!0,bypassPrefetchedCheck:!0},{kind:A},T)},onTouchStart(e){P||"function"!=typeof j||j(e),P&&r.props&&"function"==typeof r.props.onTouchStart&&r.props.onTouchStart(e),N&&(_||!T)&&v(N,F,I,{locale:$,priority:!0,bypassPrefetchedCheck:!0},{kind:A},T)}};if((0,s.isAbsoluteUrl)(I))W.href=I;else if(!P||w||"a"===r.type&&!("href"in r.props)){let e=void 0!==$?$:null==M?void 0:M.locale,t=(null==M?void 0:M.isLocaleDomain)&&(0,p.getDomainLocale)(I,e,null==M?void 0:M.locales,null==M?void 0:M.domainLocales);W.href=t||(0,h.addBasePath)((0,c.addLocale)(I,e,null==M?void 0:M.defaultLocale))}return P?o.default.cloneElement(r,W):o.default.createElement("a",{...Z,...W},n)}),x=b;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},81307:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return s}});let r=n(67294),o=n(82997),i="function"==typeof IntersectionObserver,a=new Map,l=[];function s(e){let{rootRef:t,rootMargin:n,disabled:s}=e,c=s||!i,[u,f]=(0,r.useState)(!1),d=(0,r.useRef)(null),p=(0,r.useCallback)(e=>{d.current=e},[]);(0,r.useEffect)(()=>{if(i){if(c||u)return;let e=d.current;if(e&&e.tagName){let r=function(e,t,n){let{id:r,observer:o,elements:i}=function(e){let t;let n={root:e.root||null,margin:e.rootMargin||""},r=l.find(e=>e.root===n.root&&e.margin===n.margin);if(r&&(t=a.get(r)))return t;let o=new Map,i=new IntersectionObserver(e=>{e.forEach(e=>{let t=o.get(e.target),n=e.isIntersecting||e.intersectionRatio>0;t&&n&&t(n)})},e);return t={id:n,observer:i,elements:o},l.push(n),a.set(n,t),t}(n);return i.set(e,t),o.observe(e),function(){if(i.delete(e),o.unobserve(e),0===i.size){o.disconnect(),a.delete(r);let e=l.findIndex(e=>e.root===r.root&&e.margin===r.margin);e>-1&&l.splice(e,1)}}}(e,e=>e&&f(e),{root:null==t?void 0:t.current,rootMargin:n});return r}}else if(!u){let e=(0,o.requestIdleCallback)(()=>f(!0));return()=>(0,o.cancelIdleCallback)(e)}},[c,n,t,u,d.current]);let h=(0,r.useCallback)(()=>{f(!1)},[]);return[p,u,h]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},38083:function(e,t){"use strict";function n(e){let{widthInt:t,heightInt:n,blurWidth:r,blurHeight:o,blurDataURL:i,objectFit:a}=e,l=r||t,s=o||n,c=i.startsWith("data:image/jpeg")?"%3CfeComponentTransfer%3E%3CfeFuncA type='discrete' tableValues='1 1'/%3E%3C/feComponentTransfer%3E%":"";return l&&s?"%3Csvg xmlns='http%3A//www.w3.org/2000/svg' viewBox='0 0 "+l+" "+s+"'%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='"+(r&&o?"1":"20")+"'/%3E"+c+"%3C/filter%3E%3Cimage preserveAspectRatio='none' filter='url(%23b)' x='0' y='0' height='100%25' width='100%25' href='"+i+"'/%3E%3C/svg%3E":"%3Csvg xmlns='http%3A//www.w3.org/2000/svg'%3E%3Cimage style='filter:blur(20px)' preserveAspectRatio='"+("contain"===a?"xMidYMid":"cover"===a?"xMidYMid slice":"none")+"' x='0' y='0' height='100%25' width='100%25' href='"+i+"'/%3E%3C/svg%3E"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImageBlurSvg",{enumerable:!0,get:function(){return n}})},31720:function(e,t){"use strict";function n(e){let{config:t,src:n,width:r,quality:o}=e;return t.path+"?url="+encodeURIComponent(n)+"&w="+r+"&q="+(o||75)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}}),n.__next_img_default=!0;let r=n},98751:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ServerInsertedHTMLContext:function(){return i},useServerInsertedHTML:function(){return a}});let r=n(61757),o=r._(n(67294)),i=o.default.createContext(null);function a(e){let t=(0,o.useContext)(i);t&&t(e)}},48271:function(e,t,n){"use strict";let r,o;n.r(t),n.d(t,{default:function(){return eT}});var i=n(85893),a=n(67294),l=n(41468),s=n(50489),c=n(98399),u=n(5455),f=n(59766),d=n(87462),p=n(63366),h=n(71387),m=n(70917);function g(e){let{styles:t,defaultTheme:n={}}=e,r="function"==typeof t?e=>t(null==e||0===Object.keys(e).length?n:e):t;return(0,i.jsx)(m.xB,{styles:r})}var v=n(56760),y=n(71927);let b="mode",x="color-scheme",w="data-color-scheme";function C(e){if("undefined"!=typeof window&&"system"===e){let e=window.matchMedia("(prefers-color-scheme: dark)");return e.matches?"dark":"light"}}function S(e,t){return"light"===e.mode||"system"===e.mode&&"light"===e.systemMode?t("light"):"dark"===e.mode||"system"===e.mode&&"dark"===e.systemMode?t("dark"):void 0}function E(e,t){let n;if("undefined"!=typeof window){try{(n=localStorage.getItem(e)||void 0)||localStorage.setItem(e,t)}catch(e){}return n||t}}let $=["colorSchemes","components","generateCssVars","cssVarPrefix"];var O=n(1812),k=n(13951),j=n(2548);let{CssVarsProvider:P,useColorScheme:Z,getInitColorSchemeScript:_}=function(e){let{themeId:t,theme:n={},attribute:r=w,modeStorageKey:o=b,colorSchemeStorageKey:l=x,defaultMode:s="light",defaultColorScheme:c,disableTransitionOnChange:u=!1,resolveTheme:m,excludeVariablesFromRoot:O}=e;n.colorSchemes&&("string"!=typeof c||n.colorSchemes[c])&&("object"!=typeof c||n.colorSchemes[null==c?void 0:c.light])&&("object"!=typeof c||n.colorSchemes[null==c?void 0:c.dark])||console.error(`MUI: \`${c}\` does not exist in \`theme.colorSchemes\`.`);let k=a.createContext(void 0),j="string"==typeof c?c:c.light,P="string"==typeof c?c:c.dark;return{CssVarsProvider:function({children:e,theme:h=n,modeStorageKey:w=o,colorSchemeStorageKey:j=l,attribute:P=r,defaultMode:Z=s,defaultColorScheme:_=c,disableTransitionOnChange:A=u,storageWindow:M="undefined"==typeof window?void 0:window,documentNode:R="undefined"==typeof document?void 0:document,colorSchemeNode:N="undefined"==typeof document?void 0:document.documentElement,colorSchemeSelector:T=":root",disableNestedContext:F=!1,disableStyleSheetGeneration:I=!1}){let L=a.useRef(!1),B=(0,v.Z)(),z=a.useContext(k),D=!!z&&!F,H=h[t],V=H||h,{colorSchemes:U={},components:W={},generateCssVars:q=()=>({vars:{},css:{}}),cssVarPrefix:K}=V,G=(0,p.Z)(V,$),X=Object.keys(U),Y="string"==typeof _?_:_.light,J="string"==typeof _?_:_.dark,{mode:Q,setMode:ee,systemMode:et,lightColorScheme:en,darkColorScheme:er,colorScheme:eo,setColorScheme:ei}=function(e){let{defaultMode:t="light",defaultLightColorScheme:n,defaultDarkColorScheme:r,supportedColorSchemes:o=[],modeStorageKey:i=b,colorSchemeStorageKey:l=x,storageWindow:s="undefined"==typeof window?void 0:window}=e,c=o.join(","),[u,f]=a.useState(()=>{let e=E(i,t),o=E(`${l}-light`,n),a=E(`${l}-dark`,r);return{mode:e,systemMode:C(e),lightColorScheme:o,darkColorScheme:a}}),p=S(u,e=>"light"===e?u.lightColorScheme:"dark"===e?u.darkColorScheme:void 0),h=a.useCallback(e=>{f(n=>{if(e===n.mode)return n;let r=e||t;try{localStorage.setItem(i,r)}catch(e){}return(0,d.Z)({},n,{mode:r,systemMode:C(r)})})},[i,t]),m=a.useCallback(e=>{e?"string"==typeof e?e&&!c.includes(e)?console.error(`\`${e}\` does not exist in \`theme.colorSchemes\`.`):f(t=>{let n=(0,d.Z)({},t);return S(t,t=>{try{localStorage.setItem(`${l}-${t}`,e)}catch(e){}"light"===t&&(n.lightColorScheme=e),"dark"===t&&(n.darkColorScheme=e)}),n}):f(t=>{let o=(0,d.Z)({},t),i=null===e.light?n:e.light,a=null===e.dark?r:e.dark;if(i){if(c.includes(i)){o.lightColorScheme=i;try{localStorage.setItem(`${l}-light`,i)}catch(e){}}else console.error(`\`${i}\` does not exist in \`theme.colorSchemes\`.`)}if(a){if(c.includes(a)){o.darkColorScheme=a;try{localStorage.setItem(`${l}-dark`,a)}catch(e){}}else console.error(`\`${a}\` does not exist in \`theme.colorSchemes\`.`)}return o}):f(e=>{try{localStorage.setItem(`${l}-light`,n),localStorage.setItem(`${l}-dark`,r)}catch(e){}return(0,d.Z)({},e,{lightColorScheme:n,darkColorScheme:r})})},[c,l,n,r]),g=a.useCallback(e=>{"system"===u.mode&&f(t=>(0,d.Z)({},t,{systemMode:null!=e&&e.matches?"dark":"light"}))},[u.mode]),v=a.useRef(g);return v.current=g,a.useEffect(()=>{let e=(...e)=>v.current(...e),t=window.matchMedia("(prefers-color-scheme: dark)");return t.addListener(e),e(t),()=>t.removeListener(e)},[]),a.useEffect(()=>{let e=e=>{let n=e.newValue;"string"==typeof e.key&&e.key.startsWith(l)&&(!n||c.match(n))&&(e.key.endsWith("light")&&m({light:n}),e.key.endsWith("dark")&&m({dark:n})),e.key===i&&(!n||["light","dark","system"].includes(n))&&h(n||t)};if(s)return s.addEventListener("storage",e),()=>s.removeEventListener("storage",e)},[m,h,i,l,c,t,s]),(0,d.Z)({},u,{colorScheme:p,setMode:h,setColorScheme:m})}({supportedColorSchemes:X,defaultLightColorScheme:Y,defaultDarkColorScheme:J,modeStorageKey:w,colorSchemeStorageKey:j,defaultMode:Z,storageWindow:M}),ea=Q,el=eo;D&&(ea=z.mode,el=z.colorScheme);let es=ea||("system"===Z?s:Z),ec=el||("dark"===es?J:Y),{css:eu,vars:ef}=q(),ed=(0,d.Z)({},G,{components:W,colorSchemes:U,cssVarPrefix:K,vars:ef,getColorSchemeSelector:e=>`[${P}="${e}"] &`}),ep={},eh={};Object.entries(U).forEach(([e,t])=>{let{css:n,vars:r}=q(e);ed.vars=(0,f.Z)(ed.vars,r),e===ec&&(Object.keys(t).forEach(e=>{t[e]&&"object"==typeof t[e]?ed[e]=(0,d.Z)({},ed[e],t[e]):ed[e]=t[e]}),ed.palette&&(ed.palette.colorScheme=e));let o="string"==typeof _?_:"dark"===Z?_.dark:_.light;if(e===o){if(O){let t={};O(K).forEach(e=>{t[e]=n[e],delete n[e]}),ep[`[${P}="${e}"]`]=t}ep[`${T}, [${P}="${e}"]`]=n}else eh[`${":root"===T?"":T}[${P}="${e}"]`]=n}),ed.vars=(0,f.Z)(ed.vars,ef),a.useEffect(()=>{el&&N&&N.setAttribute(P,el)},[el,P,N]),a.useEffect(()=>{let e;if(A&&L.current&&R){let t=R.createElement("style");t.appendChild(R.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),R.head.appendChild(t),window.getComputedStyle(R.body),e=setTimeout(()=>{R.head.removeChild(t)},1)}return()=>{clearTimeout(e)}},[el,A,R]),a.useEffect(()=>(L.current=!0,()=>{L.current=!1}),[]);let em=a.useMemo(()=>({mode:ea,systemMode:et,setMode:ee,lightColorScheme:en,darkColorScheme:er,colorScheme:el,setColorScheme:ei,allColorSchemes:X}),[X,el,er,en,ea,ei,ee,et]),eg=!0;(I||D&&(null==B?void 0:B.cssVarPrefix)===K)&&(eg=!1);let ev=(0,i.jsxs)(a.Fragment,{children:[eg&&(0,i.jsxs)(a.Fragment,{children:[(0,i.jsx)(g,{styles:{[T]:eu}}),(0,i.jsx)(g,{styles:ep}),(0,i.jsx)(g,{styles:eh})]}),(0,i.jsx)(y.Z,{themeId:H?t:void 0,theme:m?m(ed):ed,children:e})]});return D?ev:(0,i.jsx)(k.Provider,{value:em,children:ev})},useColorScheme:()=>{let e=a.useContext(k);if(!e)throw Error((0,h.Z)(19));return e},getInitColorSchemeScript:e=>(function(e){let{defaultMode:t="light",defaultLightColorScheme:n="light",defaultDarkColorScheme:r="dark",modeStorageKey:o=b,colorSchemeStorageKey:a=x,attribute:l=w,colorSchemeNode:s="document.documentElement"}=e||{};return(0,i.jsx)("script",{dangerouslySetInnerHTML:{__html:`(function() { try { var mode = localStorage.getItem('${o}') || '${t}'; var cssColorScheme = mode; var colorScheme = ''; diff --git a/dbgpt/app/static/_next/static/chunks/pages/agent-a2599efbeb46e056.js b/dbgpt/app/static/_next/static/chunks/pages/agent-a2599efbeb46e056.js new file mode 100644 index 000000000..b97e349b2 --- /dev/null +++ b/dbgpt/app/static/_next/static/chunks/pages/agent-a2599efbeb46e056.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[56],{98165:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var o=n(87462),i=n(67294),l={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M168 504.2c1-43.7 10-86.1 26.9-126 17.3-41 42.1-77.7 73.7-109.4S337 212.3 378 195c42.4-17.9 87.4-27 133.9-27s91.5 9.1 133.8 27A341.5 341.5 0 01755 268.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.7 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c0-6.7-7.7-10.5-12.9-6.3l-56.4 44.1C765.8 155.1 646.2 92 511.8 92 282.7 92 96.3 275.6 92 503.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8zm756 7.8h-60c-4.4 0-7.9 3.5-8 7.8-1 43.7-10 86.1-26.9 126-17.3 41-42.1 77.8-73.7 109.4A342.45 342.45 0 01512.1 856a342.24 342.24 0 01-243.2-100.8c-9.9-9.9-19.2-20.4-27.8-31.4l60.2-47a8 8 0 00-3-14.1l-175.7-43c-5-1.2-9.9 2.6-9.9 7.7l-.7 181c0 6.7 7.7 10.5 12.9 6.3l56.4-44.1C258.2 868.9 377.8 932 512.2 932c229.2 0 415.5-183.7 419.8-411.8a8 8 0 00-8-8.2z"}}]},name:"sync",theme:"outlined"},a=n(84089),r=i.forwardRef(function(e,t){return i.createElement(a.Z,(0,o.Z)({},e,{ref:t,icon:l}))})},88484:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var o=n(87462),i=n(67294),l={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 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:"upload",theme:"outlined"},a=n(84089),r=i.forwardRef(function(e,t){return i.createElement(a.Z,(0,o.Z)({},e,{ref:t,icon:l}))})},75081:function(e,t,n){"use strict";n.d(t,{Z:function(){return C}});var o=n(94184),i=n.n(o),l=n(98423),a=n(67294),r=n(96159),s=n(53124),c=n(23183),d=n(14747),p=n(67968),m=n(45503);let u=new c.E4("antSpinMove",{to:{opacity:1}}),h=new c.E4("antRotate",{to:{transform:"rotate(405deg)"}}),g=e=>({[`${e.componentCls}`]:Object.assign(Object.assign({},(0,d.Wf)(e)),{position:"absolute",display:"none",color:e.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"static",display:"inline-block",opacity:1},"&-nested-loading":{position:"relative",[`> div > ${e.componentCls}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${e.componentCls}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:-e.spinDotSize/2},[`${e.componentCls}-text`]:{position:"absolute",top:"50%",width:"100%",paddingTop:(e.spinDotSize-e.fontSize)/2+2,textShadow:`0 1px 2px ${e.colorBgContainer}`,fontSize:e.fontSize},[`&${e.componentCls}-show-text ${e.componentCls}-dot`]:{marginTop:-(e.spinDotSize/2)-10},"&-sm":{[`${e.componentCls}-dot`]:{margin:-e.spinDotSizeSM/2},[`${e.componentCls}-text`]:{paddingTop:(e.spinDotSizeSM-e.fontSize)/2+2},[`&${e.componentCls}-show-text ${e.componentCls}-dot`]:{marginTop:-(e.spinDotSizeSM/2)-10}},"&-lg":{[`${e.componentCls}-dot`]:{margin:-(e.spinDotSizeLG/2)},[`${e.componentCls}-text`]:{paddingTop:(e.spinDotSizeLG-e.fontSize)/2+2},[`&${e.componentCls}-show-text ${e.componentCls}-dot`]:{marginTop:-(e.spinDotSizeLG/2)-10}}},[`${e.componentCls}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${e.componentCls}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${e.componentCls}-dot`]:{position:"relative",display:"inline-block",fontSize:e.spinDotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:(e.spinDotSize-e.marginXXS/2)/2,height:(e.spinDotSize-e.marginXXS/2)/2,backgroundColor:e.colorPrimary,borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:u,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:h,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&-sm ${e.componentCls}-dot`]:{fontSize:e.spinDotSizeSM,i:{width:(e.spinDotSizeSM-e.marginXXS/2)/2,height:(e.spinDotSizeSM-e.marginXXS/2)/2}},[`&-lg ${e.componentCls}-dot`]:{fontSize:e.spinDotSizeLG,i:{width:(e.spinDotSizeLG-e.marginXXS)/2,height:(e.spinDotSizeLG-e.marginXXS)/2}},[`&${e.componentCls}-show-text ${e.componentCls}-text`]:{display:"block"}})});var f=(0,p.Z)("Spin",e=>{let t=(0,m.TS)(e,{spinDotDefault:e.colorTextDescription,spinDotSize:e.controlHeightLG/2,spinDotSizeSM:.35*e.controlHeightLG,spinDotSizeLG:e.controlHeight});return[g(t)]},{contentHeight:400}),b=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&0>t.indexOf(o)&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,o=Object.getOwnPropertySymbols(e);it.indexOf(o[i])&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]]);return n};let x=null,y=e=>{let{spinPrefixCls:t,spinning:n=!0,delay:o=0,className:c,rootClassName:d,size:p="default",tip:m,wrapperClassName:u,style:h,children:g,hashId:f}=e,y=b(e,["spinPrefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","hashId"]),[v,C]=a.useState(()=>n&&(!n||!o||!!isNaN(Number(o))));a.useEffect(()=>{if(n){var e;let t=function(e,t,n){var o,i=n||{},l=i.noTrailing,a=void 0!==l&&l,r=i.noLeading,s=void 0!==r&&r,c=i.debounceMode,d=void 0===c?void 0:c,p=!1,m=0;function u(){o&&clearTimeout(o)}function h(){for(var n=arguments.length,i=Array(n),l=0;le?s?(m=Date.now(),a||(o=setTimeout(d?g:h,e))):h():!0!==a&&(o=setTimeout(d?g:h,void 0===d?e-c:e)))}return h.cancel=function(e){var t=(e||{}).upcomingOnly;u(),p=!(void 0!==t&&t)},h}(o,()=>{C(!0)},{debounceMode:!1!==(void 0!==(e=({}).atBegin)&&e)});return t(),()=>{var e;null===(e=null==t?void 0:t.cancel)||void 0===e||e.call(t)}}C(!1)},[o,n]);let S=a.useMemo(()=>void 0!==g,[g]),{direction:j,spin:w}=a.useContext(s.E_),$=i()(t,null==w?void 0:w.className,{[`${t}-sm`]:"small"===p,[`${t}-lg`]:"large"===p,[`${t}-spinning`]:v,[`${t}-show-text`]:!!m,[`${t}-rtl`]:"rtl"===j},c,d,f),k=i()(`${t}-container`,{[`${t}-blur`]:v}),Z=(0,l.Z)(y,["indicator","prefixCls"]),N=Object.assign(Object.assign({},null==w?void 0:w.style),h),z=a.createElement("div",Object.assign({},Z,{style:N,className:$,"aria-live":"polite","aria-busy":v}),function(e,t){let{indicator:n}=t,o=`${e}-dot`;return null===n?null:(0,r.l$)(n)?(0,r.Tm)(n,{className:i()(n.props.className,o)}):(0,r.l$)(x)?(0,r.Tm)(x,{className:i()(x.props.className,o)}):a.createElement("span",{className:i()(o,`${e}-dot-spin`)},a.createElement("i",{className:`${e}-dot-item`,key:1}),a.createElement("i",{className:`${e}-dot-item`,key:2}),a.createElement("i",{className:`${e}-dot-item`,key:3}),a.createElement("i",{className:`${e}-dot-item`,key:4}))}(t,e),m&&S?a.createElement("div",{className:`${t}-text`},m):null);return S?a.createElement("div",Object.assign({},Z,{className:i()(`${t}-nested-loading`,u,f)}),v&&a.createElement("div",{key:"loading"},z),a.createElement("div",{className:k,key:"container"},g)):z},v=e=>{let{prefixCls:t}=e,{getPrefixCls:n}=a.useContext(s.E_),o=n("spin",t),[i,l]=f(o),r=Object.assign(Object.assign({},e),{spinPrefixCls:o,hashId:l});return i(a.createElement(y,Object.assign({},r)))};v.setDefaultIndicator=e=>{x=e};var C=v},66309:function(e,t,n){"use strict";n.d(t,{Z:function(){return k}});var o=n(67294),i=n(97937),l=n(94184),a=n.n(l),r=n(98787),s=n(69760),c=n(45353),d=n(53124),p=n(14747),m=n(45503),u=n(67968);let h=e=>{let{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:o,componentCls:i}=e,l=o-n;return{[i]:Object.assign(Object.assign({},(0,p.Wf)(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:l,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${i}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${i}-close-icon`]:{marginInlineStart:t-n,color:e.colorTextDescription,fontSize:e.tagIconSize,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${i}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${i}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:l}}),[`${i}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},g=e=>{let{lineWidth:t,fontSizeIcon:n}=e,o=e.fontSizeSM,i=`${e.lineHeightSM*o}px`,l=(0,m.TS)(e,{tagFontSize:o,tagLineHeight:i,tagIconSize:n-2*t,tagPaddingHorizontal:8,tagBorderlessBg:e.colorFillTertiary});return l},f=e=>({defaultBg:e.colorFillQuaternary,defaultColor:e.colorText});var b=(0,u.Z)("Tag",e=>{let t=g(e);return h(t)},f),x=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&0>t.indexOf(o)&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,o=Object.getOwnPropertySymbols(e);it.indexOf(o[i])&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]]);return n},y=n(98719);let v=e=>(0,y.Z)(e,(t,n)=>{let{textColor:o,lightBorderColor:i,lightColor:l,darkColor:a}=n;return{[`${e.componentCls}-${t}`]:{color:o,background:l,borderColor:i,"&-inverse":{color:e.colorTextLightSolid,background:a,borderColor:a},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}});var C=(0,u.b)(["Tag","preset"],e=>{let t=g(e);return v(t)},f);let S=(e,t,n)=>{let o=function(e){if("string"!=typeof e)return e;let t=e.charAt(0).toUpperCase()+e.slice(1);return t}(n);return{[`${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${o}Bg`],borderColor:e[`color${o}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}};var j=(0,u.b)(["Tag","status"],e=>{let t=g(e);return[S(t,"success","Success"),S(t,"processing","Info"),S(t,"error","Error"),S(t,"warning","Warning")]},f),w=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&0>t.indexOf(o)&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,o=Object.getOwnPropertySymbols(e);it.indexOf(o[i])&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]]);return n};let $=o.forwardRef((e,t)=>{let{prefixCls:n,className:l,rootClassName:p,style:m,children:u,icon:h,color:g,onClose:f,closeIcon:x,closable:y,bordered:v=!0}=e,S=w(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:$,direction:k,tag:Z}=o.useContext(d.E_),[N,z]=o.useState(!0);o.useEffect(()=>{"visible"in S&&z(S.visible)},[S.visible]);let E=(0,r.o2)(g),O=(0,r.yT)(g),D=E||O,P=Object.assign(Object.assign({backgroundColor:g&&!D?g:void 0},null==Z?void 0:Z.style),m),T=$("tag",n),[I,_]=b(T),M=a()(T,null==Z?void 0:Z.className,{[`${T}-${g}`]:D,[`${T}-has-color`]:g&&!D,[`${T}-hidden`]:!N,[`${T}-rtl`]:"rtl"===k,[`${T}-borderless`]:!v},l,p,_),H=e=>{e.stopPropagation(),null==f||f(e),e.defaultPrevented||z(!1)},[,V]=(0,s.Z)(y,x,e=>null===e?o.createElement(i.Z,{className:`${T}-close-icon`,onClick:H}):o.createElement("span",{className:`${T}-close-icon`,onClick:H},e),null,!1),B="function"==typeof S.onClick||u&&"a"===u.type,L=h||null,G=L?o.createElement(o.Fragment,null,L,u&&o.createElement("span",null,u)):u,X=o.createElement("span",Object.assign({},S,{ref:t,className:M,style:P}),G,V,E&&o.createElement(C,{key:"preset",prefixCls:T}),O&&o.createElement(j,{key:"status",prefixCls:T}));return I(B?o.createElement(c.Z,{component:"Tag"},X):X)});$.CheckableTag=e=>{let{prefixCls:t,className:n,checked:i,onChange:l,onClick:r}=e,s=x(e,["prefixCls","className","checked","onChange","onClick"]),{getPrefixCls:c}=o.useContext(d.E_),p=c("tag",t),[m,u]=b(p),h=a()(p,`${p}-checkable`,{[`${p}-checkable-checked`]:i},n,u);return m(o.createElement("span",Object.assign({},s,{className:h,onClick:e=>{null==l||l(!i),null==r||r(e)}})))};var k=$},70355:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/agent",function(){return n(23867)}])},23867:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return P}});var o=n(85893),i=n(50489),l=n(577),a=n(39479),r=n(2453),s=n(83062),c=n(75081),d=n(59566),p=n(71577),m=n(85813),u=n(66309),h=n(67294),g=n(32983),f=n(67421),b=function(e){let{error:t,description:n,refresh:i}=e,{t:l}=(0,f.$G)();return(0,o.jsx)(g.Z,{image:"/empty.png",imageStyle:{width:320,height:320,margin:"0 auto",maxWidth:"100%",maxHeight:"100%"},className:"flex items-center justify-center flex-col h-full w-full",description:t?(0,o.jsx)(p.ZP,{type:"primary",onClick:i,children:l("try_again")}):null!=n?n:l("no_data")})},x=n(50888),y=n(87462),v={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M899.1 869.6l-53-305.6H864c14.4 0 26-11.6 26-26V346c0-14.4-11.6-26-26-26H618V138c0-14.4-11.6-26-26-26H432c-14.4 0-26 11.6-26 26v182H160c-14.4 0-26 11.6-26 26v192c0 14.4 11.6 26 26 26h17.9l-53 305.6a25.95 25.95 0 0025.6 30.4h723c1.5 0 3-.1 4.4-.4a25.88 25.88 0 0021.2-30zM204 390h272V182h72v208h272v104H204V390zm468 440V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H416V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H202.8l45.1-260H776l45.1 260H672z"}}]},name:"clear",theme:"outlined"},C=n(84089),S=h.forwardRef(function(e,t){return h.createElement(C.Z,(0,y.Z)({},e,{ref:t,icon:v}))}),j=n(23430),w=n(68795),$=n(98165),k={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M511.6 76.3C264.3 76.2 64 276.4 64 523.5 64 718.9 189.3 885 363.8 946c23.5 5.9 19.9-10.8 19.9-22.2v-77.5c-135.7 15.9-141.2-73.9-150.3-88.9C215 726 171.5 718 184.5 703c30.9-15.9 62.4 4 98.9 57.9 26.4 39.1 77.9 32.5 104 26 5.7-23.5 17.9-44.5 34.7-60.8-140.6-25.2-199.2-111-199.2-213 0-49.5 16.3-95 48.3-131.7-20.4-60.5 1.9-112.3 4.9-120 58.1-5.2 118.5 41.6 123.2 45.3 33-8.9 70.7-13.6 112.9-13.6 42.4 0 80.2 4.9 113.5 13.9 11.3-8.6 67.3-48.8 121.3-43.9 2.9 7.7 24.7 58.3 5.5 118 32.4 36.8 48.9 82.7 48.9 132.3 0 102.2-59 188.1-200 212.9a127.5 127.5 0 0138.1 91v112.5c.8 9 0 17.9 15 17.9 177.1-59.7 304.6-227 304.6-424.1 0-247.2-200.4-447.3-447.5-447.3z"}}]},name:"github",theme:"outlined"},Z=h.forwardRef(function(e,t){return h.createElement(C.Z,(0,y.Z)({},e,{ref:t,icon:k}))}),N=function(){let{t:e}=(0,f.$G)(),[t,n]=(0,h.useState)(!1),[g,y]=(0,h.useState)(!1),[v,C]=(0,h.useState)(),[k]=a.Z.useForm(),N=(0,h.useMemo)(()=>({pageNo:1,pageSize:20}),[]),{data:z=[],loading:E,refresh:O}=(0,l.Z)(async()=>{var e;let t={page_index:N.pageNo,page_size:N.pageSize,filter:k.getFieldsValue()},[n,o]=await (0,i.Vx)((0,i.bC)(t));return y(!!n),null!==(e=null==o?void 0:o.datas)&&void 0!==e?e:[]}),D=async()=>{try{n(!0);let[e]=await (0,i.Vx)((0,i.DM)());if(e)return;r.ZP.success("success"),O()}finally{n(!1)}},P=(0,h.useCallback)(async(e,t,n)=>{if(v)return;C(t);let[o]=await (0,i.Vx)((n?i.v6:i.YU)(e));o||(r.ZP.success("success"),O()),C(void 0)},[v,O]),T=(0,h.useCallback)((e,t)=>t===v?(0,o.jsx)(x.Z,{}):e.installed?(0,o.jsx)(s.Z,{title:"Uninstall",children:(0,o.jsx)("div",{className:"w-full h-full",onClick:()=>{P(e.name,t,!1)},children:(0,o.jsx)(S,{})})}):(0,o.jsx)(s.Z,{title:"Install",children:(0,o.jsx)("div",{className:"w-full h-full",onClick:()=>{P(e.name,t,!0)},children:(0,o.jsx)(j.Z,{})})}),[v,P]);return(0,o.jsxs)(c.Z,{spinning:E,children:[(0,o.jsxs)(a.Z,{form:k,layout:"inline",onFinish:O,className:"mb-2",children:[(0,o.jsx)(a.Z.Item,{className:"!mb-2",name:"name",label:"Name",children:(0,o.jsx)(d.default,{allowClear:!0,className:"w-48"})}),(0,o.jsxs)(a.Z.Item,{children:[(0,o.jsx)(p.ZP,{className:"mr-2",type:"primary",htmlType:"submit",icon:(0,o.jsx)(w.Z,{}),children:e("Search")}),(0,o.jsx)(p.ZP,{loading:t,type:"primary",icon:(0,o.jsx)($.Z,{}),onClick:D,children:e("Update_From_Github")})]})]}),!z.length&&!E&&(0,o.jsx)(b,{error:g,refresh:O}),(0,o.jsx)("div",{className:"flex flex-wrap gap-2 md:gap-4",children:z.map((e,t)=>(0,o.jsxs)(m.Z,{className:"w-full md:w-1/2 lg:w-1/3 xl:w-1/4",actions:[T(e,t),(0,o.jsx)(s.Z,{title:"Github",children:(0,o.jsx)("div",{className:"w-full h-full",onClick:()=>{window.open(e.storage_url,"_blank")},children:(0,o.jsx)(Z,{})})},"github")],children:[(0,o.jsx)(s.Z,{title:e.name,children:(0,o.jsx)("h2",{className:"mb-2 text-base font-semibold line-clamp-1",children:e.name})}),e.author&&(0,o.jsx)(u.Z,{children:e.author}),e.version&&(0,o.jsxs)(u.Z,{children:["v",e.version]}),e.type&&(0,o.jsxs)(u.Z,{children:["Type ",e.type]}),e.storage_channel&&(0,o.jsx)(u.Z,{children:e.storage_channel}),(0,o.jsx)(s.Z,{title:e.description,children:(0,o.jsx)("p",{className:"mt-2 line-clamp-2 text-gray-400 text-sm",children:e.description})})]},e.id))})]})},z=n(84553),E=n(88484),O=function(){let{t:e}=(0,f.$G)(),[t,n]=r.ZP.useMessage(),[a,d]=(0,h.useState)(!1),[g,y]=(0,h.useState)(!1),[v,C]=(0,h.useState)(),{data:j=[],loading:w,refresh:$}=(0,l.Z)(async()=>{let[e,t]=await (0,i.Vx)((0,i.N6)());return y(!!e),null!=t?t:[]}),k=async(e,t)=>{if(v)return;C(t);let[n]=await (0,i.Vx)((0,i.YU)(e));r.ZP[n?"error":"success"](n?"failed":"success"),n||$(),C(void 0)},Z=(0,h.useCallback)((e,t)=>t===v?(0,o.jsx)(x.Z,{}):(0,o.jsx)(s.Z,{title:"Uninstall",children:(0,o.jsx)("div",{className:"w-full h-full",onClick:()=>{k(e.name,t)},children:(0,o.jsx)(S,{})})}),[v]),N=async e=>{if(!e){r.ZP.error("Please select the *.zip,*.rar file");return}try{let n=e.file;d(!0);let o=new FormData;o.append("doc_file",n),t.open({content:"Uploading ".concat(n.name),type:"loading",duration:0});let[l]=await (0,i.Vx)((0,i.Kn)(void 0,o,{timeout:6e4}));if(l)return;r.ZP.success("success"),$()}catch(e){r.ZP.error((null==e?void 0:e.message)||"Upload Error")}finally{d(!1),t.destroy()}};return(0,o.jsxs)(c.Z,{spinning:w,children:[n,(0,o.jsx)("div",{children:(0,o.jsx)(z.default,{disabled:w,className:"mr-1",beforeUpload:()=>!1,name:"file",accept:".zip,.rar",multiple:!1,onChange:N,showUploadList:{showDownloadIcon:!1,showPreviewIcon:!1,showRemoveIcon:!1},itemRender:()=>(0,o.jsx)(o.Fragment,{}),children:(0,o.jsx)(p.ZP,{loading:a,type:"primary",icon:(0,o.jsx)(E.Z,{}),children:e("Upload")})})}),!j.length&&!w&&(0,o.jsx)(b,{error:g,refresh:$}),(0,o.jsx)("div",{className:"flex gap-2 md:gap-4",children:j.map((e,t)=>(0,o.jsxs)(m.Z,{className:"w-full md:w-1/2 lg:w-1/3 xl:w-1/4",actions:[Z(e,t)],children:[(0,o.jsx)(s.Z,{title:e.name,children:(0,o.jsx)("h2",{className:"mb-2 text-base font-semibold line-clamp-1",children:e.name})}),e.version&&(0,o.jsxs)(u.Z,{children:["v",e.version]}),e.type&&(0,o.jsxs)(u.Z,{children:["Type ",e.type]}),(0,o.jsx)(s.Z,{title:e.description,children:(0,o.jsx)("p",{className:"mt-2 line-clamp-2 text-gray-400 text-sm",children:e.description})})]},e.id))})]})},D=n(44442),P=function(){let{t:e}=(0,f.$G)(),[t,n]=(0,h.useState)("market"),i=(0,h.useMemo)(()=>[{key:"market",label:e("Market_Plugins"),children:(0,o.jsx)(N,{})},{key:"my",label:e("My_Plugins"),children:"market"===t?null:(0,o.jsx)(O,{})}],[e,t]);return(0,o.jsx)("div",{className:"h-screen p-4 md:p-6 overflow-y-auto",children:(0,o.jsx)(D.Z,{activeKey:t,items:i,onChange:n})})}}},function(e){e.O(0,[113,17,479,442,553,813,774,888,179],function(){return e(e.s=70355)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/dbgpt/app/static/_next/static/chunks/pages/agent-bd3f015c49491f8c.js b/dbgpt/app/static/_next/static/chunks/pages/agent-bd3f015c49491f8c.js deleted file mode 100644 index f85e906d1..000000000 --- a/dbgpt/app/static/_next/static/chunks/pages/agent-bd3f015c49491f8c.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[56],{98165:function(e,l,a){"use strict";a.d(l,{Z:function(){return c}});var t=a(87462),s=a(67294),n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M168 504.2c1-43.7 10-86.1 26.9-126 17.3-41 42.1-77.7 73.7-109.4S337 212.3 378 195c42.4-17.9 87.4-27 133.9-27s91.5 9.1 133.8 27A341.5 341.5 0 01755 268.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.7 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c0-6.7-7.7-10.5-12.9-6.3l-56.4 44.1C765.8 155.1 646.2 92 511.8 92 282.7 92 96.3 275.6 92 503.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8zm756 7.8h-60c-4.4 0-7.9 3.5-8 7.8-1 43.7-10 86.1-26.9 126-17.3 41-42.1 77.8-73.7 109.4A342.45 342.45 0 01512.1 856a342.24 342.24 0 01-243.2-100.8c-9.9-9.9-19.2-20.4-27.8-31.4l60.2-47a8 8 0 00-3-14.1l-175.7-43c-5-1.2-9.9 2.6-9.9 7.7l-.7 181c0 6.7 7.7 10.5 12.9 6.3l56.4-44.1C258.2 868.9 377.8 932 512.2 932c229.2 0 415.5-183.7 419.8-411.8a8 8 0 00-8-8.2z"}}]},name:"sync",theme:"outlined"},i=a(84089),c=s.forwardRef(function(e,l){return s.createElement(i.Z,(0,t.Z)({},e,{ref:l,icon:n}))})},88484:function(e,l,a){"use strict";a.d(l,{Z:function(){return c}});var t=a(87462),s=a(67294),n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 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:"upload",theme:"outlined"},i=a(84089),c=s.forwardRef(function(e,l){return s.createElement(i.Z,(0,t.Z)({},e,{ref:l,icon:n}))})},70355:function(e,l,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/agent",function(){return a(23867)}])},23867:function(e,l,a){"use strict";a.r(l),a.d(l,{default:function(){return S}});var t=a(85893),s=a(50489),n=a(577),i=a(39479),c=a(2453),r=a(83062),o=a(75081),d=a(59566),u=a(71577),h=a(85813),m=a(66309),f=a(67294),x=a(32983),p=a(67421),g=function(e){let{error:l,description:a,refresh:s}=e,{t:n}=(0,p.$G)();return(0,t.jsx)(x.Z,{image:"/empty.png",imageStyle:{width:320,height:320,margin:"0 auto",maxWidth:"100%",maxHeight:"100%"},className:"flex items-center justify-center flex-col h-full w-full",description:l?(0,t.jsx)(u.ZP,{type:"primary",onClick:s,children:n("try_again")}):null!=a?a:n("no_data")})},j=a(50888),Z=a(87462),v={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M899.1 869.6l-53-305.6H864c14.4 0 26-11.6 26-26V346c0-14.4-11.6-26-26-26H618V138c0-14.4-11.6-26-26-26H432c-14.4 0-26 11.6-26 26v182H160c-14.4 0-26 11.6-26 26v192c0 14.4 11.6 26 26 26h17.9l-53 305.6a25.95 25.95 0 0025.6 30.4h723c1.5 0 3-.1 4.4-.4a25.88 25.88 0 0021.2-30zM204 390h272V182h72v208h272v104H204V390zm468 440V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H416V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H202.8l45.1-260H776l45.1 260H672z"}}]},name:"clear",theme:"outlined"},w=a(84089),y=f.forwardRef(function(e,l){return f.createElement(w.Z,(0,Z.Z)({},e,{ref:l,icon:v}))}),b=a(23430),N=a(68795),_=a(98165),k={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M511.6 76.3C264.3 76.2 64 276.4 64 523.5 64 718.9 189.3 885 363.8 946c23.5 5.9 19.9-10.8 19.9-22.2v-77.5c-135.7 15.9-141.2-73.9-150.3-88.9C215 726 171.5 718 184.5 703c30.9-15.9 62.4 4 98.9 57.9 26.4 39.1 77.9 32.5 104 26 5.7-23.5 17.9-44.5 34.7-60.8-140.6-25.2-199.2-111-199.2-213 0-49.5 16.3-95 48.3-131.7-20.4-60.5 1.9-112.3 4.9-120 58.1-5.2 118.5 41.6 123.2 45.3 33-8.9 70.7-13.6 112.9-13.6 42.4 0 80.2 4.9 113.5 13.9 11.3-8.6 67.3-48.8 121.3-43.9 2.9 7.7 24.7 58.3 5.5 118 32.4 36.8 48.9 82.7 48.9 132.3 0 102.2-59 188.1-200 212.9a127.5 127.5 0 0138.1 91v112.5c.8 9 0 17.9 15 17.9 177.1-59.7 304.6-227 304.6-424.1 0-247.2-200.4-447.3-447.5-447.3z"}}]},name:"github",theme:"outlined"},C=f.forwardRef(function(e,l){return f.createElement(w.Z,(0,Z.Z)({},e,{ref:l,icon:k}))}),P=function(){let{t:e}=(0,p.$G)(),[l,a]=(0,f.useState)(!1),[x,Z]=(0,f.useState)(!1),[v,w]=(0,f.useState)(),[k]=i.Z.useForm(),P=(0,f.useMemo)(()=>({pageNo:1,pageSize:20}),[]),{data:V=[],loading:z,refresh:H}=(0,n.Z)(async()=>{var e;let l={page_index:P.pageNo,page_size:P.pageSize,filter:k.getFieldsValue()},[a,t]=await (0,s.Vx)((0,s.bC)(l));return Z(!!a),null!==(e=null==t?void 0:t.datas)&&void 0!==e?e:[]}),M=async()=>{try{a(!0);let[e]=await (0,s.Vx)((0,s.DM)());if(e)return;c.ZP.success("success"),H()}finally{a(!1)}},S=(0,f.useCallback)(async(e,l,a)=>{if(v)return;w(l);let[t]=await (0,s.Vx)((a?s.v6:s.YU)(e));t||(c.ZP.success("success"),H()),w(void 0)},[v,H]),E=(0,f.useCallback)((e,l)=>l===v?(0,t.jsx)(j.Z,{}):e.installed?(0,t.jsx)(r.Z,{title:"Uninstall",children:(0,t.jsx)("div",{className:"w-full h-full",onClick:()=>{S(e.name,l,!1)},children:(0,t.jsx)(y,{})})}):(0,t.jsx)(r.Z,{title:"Install",children:(0,t.jsx)("div",{className:"w-full h-full",onClick:()=>{S(e.name,l,!0)},children:(0,t.jsx)(b.Z,{})})}),[v,S]);return(0,t.jsxs)(o.Z,{spinning:z,children:[(0,t.jsxs)(i.Z,{form:k,layout:"inline",onFinish:H,className:"mb-2",children:[(0,t.jsx)(i.Z.Item,{className:"!mb-2",name:"name",label:"Name",children:(0,t.jsx)(d.default,{allowClear:!0,className:"w-48"})}),(0,t.jsxs)(i.Z.Item,{children:[(0,t.jsx)(u.ZP,{className:"mr-2",type:"primary",htmlType:"submit",icon:(0,t.jsx)(N.Z,{}),children:e("Search")}),(0,t.jsx)(u.ZP,{loading:l,type:"primary",icon:(0,t.jsx)(_.Z,{}),onClick:M,children:e("Update_From_Github")})]})]}),!V.length&&!z&&(0,t.jsx)(g,{error:x,refresh:H}),(0,t.jsx)("div",{className:"flex flex-wrap gap-2 md:gap-4",children:V.map((e,l)=>(0,t.jsxs)(h.Z,{className:"w-full md:w-1/2 lg:w-1/3 xl:w-1/4",actions:[E(e,l),(0,t.jsx)(r.Z,{title:"Github",children:(0,t.jsx)("div",{className:"w-full h-full",onClick:()=>{window.open(e.storage_url,"_blank")},children:(0,t.jsx)(C,{})})},"github")],children:[(0,t.jsx)(r.Z,{title:e.name,children:(0,t.jsx)("h2",{className:"mb-2 text-base font-semibold line-clamp-1",children:e.name})}),e.author&&(0,t.jsx)(m.Z,{children:e.author}),e.version&&(0,t.jsxs)(m.Z,{children:["v",e.version]}),e.type&&(0,t.jsxs)(m.Z,{children:["Type ",e.type]}),e.storage_channel&&(0,t.jsx)(m.Z,{children:e.storage_channel}),(0,t.jsx)(r.Z,{title:e.description,children:(0,t.jsx)("p",{className:"mt-2 line-clamp-2 text-gray-400 text-sm",children:e.description})})]},e.id))})]})},V=a(84553),z=a(88484),H=function(){let{t:e}=(0,p.$G)(),[l,a]=c.ZP.useMessage(),[i,d]=(0,f.useState)(!1),[x,Z]=(0,f.useState)(!1),[v,w]=(0,f.useState)(),{data:b=[],loading:N,refresh:_}=(0,n.Z)(async()=>{let[e,l]=await (0,s.Vx)((0,s.N6)());return Z(!!e),null!=l?l:[]}),k=async(e,l)=>{if(v)return;w(l);let[a]=await (0,s.Vx)((0,s.YU)(e));c.ZP[a?"error":"success"](a?"failed":"success"),a||_(),w(void 0)},C=(0,f.useCallback)((e,l)=>l===v?(0,t.jsx)(j.Z,{}):(0,t.jsx)(r.Z,{title:"Uninstall",children:(0,t.jsx)("div",{className:"w-full h-full",onClick:()=>{k(e.name,l)},children:(0,t.jsx)(y,{})})}),[v]),P=async e=>{if(!e){c.ZP.error("Please select the *.zip,*.rar file");return}try{let a=e.file;d(!0);let t=new FormData;t.append("doc_file",a),l.open({content:"Uploading ".concat(a.name),type:"loading",duration:0});let[n]=await (0,s.Vx)((0,s.Kn)(void 0,t,{timeout:6e4}));if(n)return;c.ZP.success("success"),_()}catch(e){c.ZP.error((null==e?void 0:e.message)||"Upload Error")}finally{d(!1),l.destroy()}};return(0,t.jsxs)(o.Z,{spinning:N,children:[a,(0,t.jsx)("div",{children:(0,t.jsx)(V.default,{disabled:N,className:"mr-1",beforeUpload:()=>!1,name:"file",accept:".zip,.rar",multiple:!1,onChange:P,showUploadList:{showDownloadIcon:!1,showPreviewIcon:!1,showRemoveIcon:!1},itemRender:()=>(0,t.jsx)(t.Fragment,{}),children:(0,t.jsx)(u.ZP,{loading:i,type:"primary",icon:(0,t.jsx)(z.Z,{}),children:e("Upload")})})}),!b.length&&!N&&(0,t.jsx)(g,{error:x,refresh:_}),(0,t.jsx)("div",{className:"flex gap-2 md:gap-4",children:b.map((e,l)=>(0,t.jsxs)(h.Z,{className:"w-full md:w-1/2 lg:w-1/3 xl:w-1/4",actions:[C(e,l)],children:[(0,t.jsx)(r.Z,{title:e.name,children:(0,t.jsx)("h2",{className:"mb-2 text-base font-semibold line-clamp-1",children:e.name})}),e.version&&(0,t.jsxs)(m.Z,{children:["v",e.version]}),e.type&&(0,t.jsxs)(m.Z,{children:["Type ",e.type]}),(0,t.jsx)(r.Z,{title:e.description,children:(0,t.jsx)("p",{className:"mt-2 line-clamp-2 text-gray-400 text-sm",children:e.description})})]},e.id))})]})},M=a(44442),S=function(){let{t:e}=(0,p.$G)(),[l,a]=(0,f.useState)("market"),s=(0,f.useMemo)(()=>[{key:"market",label:e("Market_Plugins"),children:(0,t.jsx)(P,{})},{key:"my",label:e("My_Plugins"),children:"market"===l?null:(0,t.jsx)(H,{})}],[e,l]);return(0,t.jsx)("div",{className:"h-screen p-4 md:p-6 overflow-y-auto",children:(0,t.jsx)(M.Z,{activeKey:l,items:s,onChange:a})})}}},function(e){e.O(0,[64,479,442,553,813,924,774,888,179],function(){return e(e.s=70355)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/dbgpt/app/static/_next/static/chunks/pages/chat-cb0f60deede9c531.js b/dbgpt/app/static/_next/static/chunks/pages/chat-47a20abbae16e858.js similarity index 83% rename from dbgpt/app/static/_next/static/chunks/pages/chat-cb0f60deede9c531.js rename to dbgpt/app/static/_next/static/chunks/pages/chat-47a20abbae16e858.js index 6bfdafe0e..1f8365b6a 100644 --- a/dbgpt/app/static/_next/static/chunks/pages/chat-cb0f60deede9c531.js +++ b/dbgpt/app/static/_next/static/chunks/pages/chat-47a20abbae16e858.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[180],{99937:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/chat",function(){return r(27823)}])},50948:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{noSSR:function(){return u},default:function(){return o}});let l=r(38754),n=(r(67294),l._(r(23900)));function a(e){return{default:(null==e?void 0:e.default)||e}}function u(e,t){return delete t.webpack,delete t.modules,e(t)}function o(e,t){let r=n.default,l={loading:e=>{let{error:t,isLoading:r,pastDelay:l}=e;return null}};e instanceof Promise?l.loader=()=>e:"function"==typeof e?l.loader=e:"object"==typeof e&&(l={...l,...e}),l={...l,...t};let o=l.loader;return(l.loadableGenerated&&(l={...l,...l.loadableGenerated},delete l.loadableGenerated),"boolean"!=typeof l.ssr||l.ssr)?r({...l,loader:()=>null!=o?o().then(a):Promise.resolve(a(()=>null))}):(delete l.webpack,delete l.modules,u(r,l))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2804:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LoadableContext",{enumerable:!0,get:function(){return a}});let l=r(38754),n=l._(r(67294)),a=n.default.createContext(null)},23900:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return _}});let l=r(38754),n=l._(r(67294)),a=r(2804),u=[],o=[],i=!1;function s(e){let t=e(),r={loading:!0,loaded:null,error:null};return r.promise=t.then(e=>(r.loading=!1,r.loaded=e,e)).catch(e=>{throw r.loading=!1,r.error=e,e}),r}class d{promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};let{_res:e,_opts:t}=this;e.loading&&("number"==typeof t.delay&&(0===t.delay?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},t.delay)),"number"==typeof t.timeout&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},t.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(e=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(e){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,...e},this._callbacks.forEach(e=>e())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(e){return this._callbacks.add(e),()=>{this._callbacks.delete(e)}}constructor(e,t){this._loadFn=e,this._opts=t,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}}function c(e){return function(e,t){let r=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},t),l=null;function u(){if(!l){let t=new d(e,r);l={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return l.promise()}if(!i){let e=r.webpack?r.webpack():r.modules;e&&o.push(t=>{for(let r of e)if(t.includes(r))return u()})}function s(e,t){!function(){u();let e=n.default.useContext(a.LoadableContext);e&&Array.isArray(r.modules)&&r.modules.forEach(t=>{e(t)})}();let o=n.default.useSyncExternalStore(l.subscribe,l.getCurrentValue,l.getCurrentValue);return n.default.useImperativeHandle(t,()=>({retry:l.retry}),[]),n.default.useMemo(()=>{var t;return o.loading||o.error?n.default.createElement(r.loading,{isLoading:o.loading,pastDelay:o.pastDelay,timedOut:o.timedOut,error:o.error,retry:l.retry}):o.loaded?n.default.createElement((t=o.loaded)&&t.default?t.default:t,e):null},[e,o])}return s.preload=()=>u(),s.displayName="LoadableComponent",n.default.forwardRef(s)}(s,e)}function f(e,t){let r=[];for(;e.length;){let l=e.pop();r.push(l(t))}return Promise.all(r).then(()=>{if(e.length)return f(e,t)})}c.preloadAll=()=>new Promise((e,t)=>{f(u).then(e,t)}),c.preloadReady=e=>(void 0===e&&(e=[]),new Promise(t=>{let r=()=>(i=!0,t());f(o,e).then(r,r)})),window.__NEXT_PRELOADREADY=c.preloadReady;let _=c},27823:function(e,t,r){"use strict";r.r(t);var l=r(85893),n=r(67294),a=r(11163),u=r(41468),o=r(5152),i=r.n(o);let s=i()(()=>Promise.all([r.e(662),r.e(34),r.e(599),r.e(64),r.e(9),r.e(442),r.e(553),r.e(947),r.e(45),r.e(346),r.e(739),r.e(955),r.e(932)]).then(r.bind(r,53913)),{loadableGenerated:{webpack:()=>[53913]},ssr:!1}),d=i()(()=>Promise.all([r.e(662),r.e(34),r.e(599),r.e(64),r.e(479),r.e(9),r.e(442),r.e(553),r.e(947),r.e(924),r.e(411),r.e(45),r.e(346),r.e(270),r.e(739),r.e(607),r.e(412),r.e(396),r.e(955),r.e(0)]).then(r.bind(r,15506)),{loadableGenerated:{webpack:()=>[15506]},ssr:!1});t.default=function(){let{query:{id:e,scene:t}}=(0,a.useRouter)(),{isContract:r,setIsContract:o,setIsMenuExpand:i}=(0,n.useContext)(u.p);return(0,n.useEffect)(()=>{i("chat_dashboard"!==t),e&&t&&o(!1)},[e,t]),(0,l.jsx)(l.Fragment,{children:r?(0,l.jsx)(s,{}):(0,l.jsx)(d,{})})}},5152:function(e,t,r){e.exports=r(50948)}},function(e){e.O(0,[774,888,179],function(){return e(e.s=99937)}),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[180],{99937:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/chat",function(){return r(27823)}])},50948:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{noSSR:function(){return u},default:function(){return o}});let l=r(38754),n=(r(67294),l._(r(23900)));function a(e){return{default:(null==e?void 0:e.default)||e}}function u(e,t){return delete t.webpack,delete t.modules,e(t)}function o(e,t){let r=n.default,l={loading:e=>{let{error:t,isLoading:r,pastDelay:l}=e;return null}};e instanceof Promise?l.loader=()=>e:"function"==typeof e?l.loader=e:"object"==typeof e&&(l={...l,...e}),l={...l,...t};let o=l.loader;return(l.loadableGenerated&&(l={...l,...l.loadableGenerated},delete l.loadableGenerated),"boolean"!=typeof l.ssr||l.ssr)?r({...l,loader:()=>null!=o?o().then(a):Promise.resolve(a(()=>null))}):(delete l.webpack,delete l.modules,u(r,l))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2804:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LoadableContext",{enumerable:!0,get:function(){return a}});let l=r(38754),n=l._(r(67294)),a=n.default.createContext(null)},23900:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return _}});let l=r(38754),n=l._(r(67294)),a=r(2804),u=[],o=[],i=!1;function s(e){let t=e(),r={loading:!0,loaded:null,error:null};return r.promise=t.then(e=>(r.loading=!1,r.loaded=e,e)).catch(e=>{throw r.loading=!1,r.error=e,e}),r}class d{promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};let{_res:e,_opts:t}=this;e.loading&&("number"==typeof t.delay&&(0===t.delay?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},t.delay)),"number"==typeof t.timeout&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},t.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(e=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(e){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,...e},this._callbacks.forEach(e=>e())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(e){return this._callbacks.add(e),()=>{this._callbacks.delete(e)}}constructor(e,t){this._loadFn=e,this._opts=t,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}}function c(e){return function(e,t){let r=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},t),l=null;function u(){if(!l){let t=new d(e,r);l={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return l.promise()}if(!i){let e=r.webpack?r.webpack():r.modules;e&&o.push(t=>{for(let r of e)if(t.includes(r))return u()})}function s(e,t){!function(){u();let e=n.default.useContext(a.LoadableContext);e&&Array.isArray(r.modules)&&r.modules.forEach(t=>{e(t)})}();let o=n.default.useSyncExternalStore(l.subscribe,l.getCurrentValue,l.getCurrentValue);return n.default.useImperativeHandle(t,()=>({retry:l.retry}),[]),n.default.useMemo(()=>{var t;return o.loading||o.error?n.default.createElement(r.loading,{isLoading:o.loading,pastDelay:o.pastDelay,timedOut:o.timedOut,error:o.error,retry:l.retry}):o.loaded?n.default.createElement((t=o.loaded)&&t.default?t.default:t,e):null},[e,o])}return s.preload=()=>u(),s.displayName="LoadableComponent",n.default.forwardRef(s)}(s,e)}function f(e,t){let r=[];for(;e.length;){let l=e.pop();r.push(l(t))}return Promise.all(r).then(()=>{if(e.length)return f(e,t)})}c.preloadAll=()=>new Promise((e,t)=>{f(u).then(e,t)}),c.preloadReady=e=>(void 0===e&&(e=[]),new Promise(t=>{let r=()=>(i=!0,t());f(o,e).then(r,r)})),window.__NEXT_PRELOADREADY=c.preloadReady;let _=c},27823:function(e,t,r){"use strict";r.r(t);var l=r(85893),n=r(67294),a=r(11163),u=r(41468),o=r(5152),i=r.n(o);let s=i()(()=>Promise.all([r.e(662),r.e(34),r.e(599),r.e(113),r.e(17),r.e(9),r.e(442),r.e(553),r.e(947),r.e(45),r.e(346),r.e(739),r.e(955),r.e(932)]).then(r.bind(r,53913)),{loadableGenerated:{webpack:()=>[53913]},ssr:!1}),d=i()(()=>Promise.all([r.e(662),r.e(34),r.e(599),r.e(113),r.e(17),r.e(9),r.e(479),r.e(442),r.e(553),r.e(947),r.e(810),r.e(411),r.e(45),r.e(346),r.e(234),r.e(739),r.e(607),r.e(861),r.e(396),r.e(955),r.e(0)]).then(r.bind(r,15506)),{loadableGenerated:{webpack:()=>[15506]},ssr:!1});t.default=function(){let{query:{id:e,scene:t}}=(0,a.useRouter)(),{isContract:r,setIsContract:o,setIsMenuExpand:i}=(0,n.useContext)(u.p);return(0,n.useEffect)(()=>{i("chat_dashboard"!==t),e&&t&&o(!1)},[e,t]),(0,l.jsx)(l.Fragment,{children:r?(0,l.jsx)(s,{}):(0,l.jsx)(d,{})})}},5152:function(e,t,r){e.exports=r(50948)}},function(e){e.O(0,[774,888,179],function(){return e(e.s=99937)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/dbgpt/app/static/_next/static/chunks/pages/chat/[scene]/[id]-e5df5865b42b9d26.js b/dbgpt/app/static/_next/static/chunks/pages/chat/[scene]/[id]-8df445f91cde33fa.js similarity index 83% rename from dbgpt/app/static/_next/static/chunks/pages/chat/[scene]/[id]-e5df5865b42b9d26.js rename to dbgpt/app/static/_next/static/chunks/pages/chat/[scene]/[id]-8df445f91cde33fa.js index c9eabe8eb..dddfd1ebf 100644 --- a/dbgpt/app/static/_next/static/chunks/pages/chat/[scene]/[id]-e5df5865b42b9d26.js +++ b/dbgpt/app/static/_next/static/chunks/pages/chat/[scene]/[id]-8df445f91cde33fa.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[24],{1826:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/chat/[scene]/[id]",function(){return r(99316)}])},50948:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{noSSR:function(){return u},default:function(){return o}});let l=r(38754),n=(r(67294),l._(r(23900)));function a(e){return{default:(null==e?void 0:e.default)||e}}function u(e,t){return delete t.webpack,delete t.modules,e(t)}function o(e,t){let r=n.default,l={loading:e=>{let{error:t,isLoading:r,pastDelay:l}=e;return null}};e instanceof Promise?l.loader=()=>e:"function"==typeof e?l.loader=e:"object"==typeof e&&(l={...l,...e}),l={...l,...t};let o=l.loader;return(l.loadableGenerated&&(l={...l,...l.loadableGenerated},delete l.loadableGenerated),"boolean"!=typeof l.ssr||l.ssr)?r({...l,loader:()=>null!=o?o().then(a):Promise.resolve(a(()=>null))}):(delete l.webpack,delete l.modules,u(r,l))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2804:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LoadableContext",{enumerable:!0,get:function(){return a}});let l=r(38754),n=l._(r(67294)),a=n.default.createContext(null)},23900:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return _}});let l=r(38754),n=l._(r(67294)),a=r(2804),u=[],o=[],i=!1;function s(e){let t=e(),r={loading:!0,loaded:null,error:null};return r.promise=t.then(e=>(r.loading=!1,r.loaded=e,e)).catch(e=>{throw r.loading=!1,r.error=e,e}),r}class d{promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};let{_res:e,_opts:t}=this;e.loading&&("number"==typeof t.delay&&(0===t.delay?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},t.delay)),"number"==typeof t.timeout&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},t.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(e=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(e){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,...e},this._callbacks.forEach(e=>e())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(e){return this._callbacks.add(e),()=>{this._callbacks.delete(e)}}constructor(e,t){this._loadFn=e,this._opts=t,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}}function c(e){return function(e,t){let r=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},t),l=null;function u(){if(!l){let t=new d(e,r);l={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return l.promise()}if(!i){let e=r.webpack?r.webpack():r.modules;e&&o.push(t=>{for(let r of e)if(t.includes(r))return u()})}function s(e,t){!function(){u();let e=n.default.useContext(a.LoadableContext);e&&Array.isArray(r.modules)&&r.modules.forEach(t=>{e(t)})}();let o=n.default.useSyncExternalStore(l.subscribe,l.getCurrentValue,l.getCurrentValue);return n.default.useImperativeHandle(t,()=>({retry:l.retry}),[]),n.default.useMemo(()=>{var t;return o.loading||o.error?n.default.createElement(r.loading,{isLoading:o.loading,pastDelay:o.pastDelay,timedOut:o.timedOut,error:o.error,retry:l.retry}):o.loaded?n.default.createElement((t=o.loaded)&&t.default?t.default:t,e):null},[e,o])}return s.preload=()=>u(),s.displayName="LoadableComponent",n.default.forwardRef(s)}(s,e)}function f(e,t){let r=[];for(;e.length;){let l=e.pop();r.push(l(t))}return Promise.all(r).then(()=>{if(e.length)return f(e,t)})}c.preloadAll=()=>new Promise((e,t)=>{f(u).then(e,t)}),c.preloadReady=e=>(void 0===e&&(e=[]),new Promise(t=>{let r=()=>(i=!0,t());f(o,e).then(r,r)})),window.__NEXT_PRELOADREADY=c.preloadReady;let _=c},99316:function(e,t,r){"use strict";r.r(t);var l=r(85893),n=r(67294),a=r(11163),u=r(41468),o=r(5152),i=r.n(o);let s=i()(()=>Promise.all([r.e(662),r.e(34),r.e(599),r.e(64),r.e(9),r.e(442),r.e(553),r.e(947),r.e(45),r.e(346),r.e(739),r.e(955),r.e(932)]).then(r.bind(r,53913)),{loadableGenerated:{webpack:()=>[53913]},ssr:!1}),d=i()(()=>Promise.all([r.e(662),r.e(34),r.e(599),r.e(64),r.e(479),r.e(9),r.e(442),r.e(553),r.e(947),r.e(924),r.e(411),r.e(45),r.e(346),r.e(270),r.e(739),r.e(607),r.e(412),r.e(396),r.e(955),r.e(0)]).then(r.bind(r,15506)),{loadableGenerated:{webpack:()=>[15506]},ssr:!1});t.default=function(){let{query:{id:e,scene:t}}=(0,a.useRouter)(),{isContract:r,setIsContract:o,setIsMenuExpand:i}=(0,n.useContext)(u.p);return(0,n.useEffect)(()=>{i("chat_dashboard"!==t),e&&t&&o(!1)},[e,t]),(0,l.jsx)(l.Fragment,{children:r?(0,l.jsx)(s,{}):(0,l.jsx)(d,{})})}},5152:function(e,t,r){e.exports=r(50948)}},function(e){e.O(0,[774,888,179],function(){return e(e.s=1826)}),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[24],{1826:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/chat/[scene]/[id]",function(){return r(99316)}])},50948:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{noSSR:function(){return u},default:function(){return o}});let l=r(38754),n=(r(67294),l._(r(23900)));function a(e){return{default:(null==e?void 0:e.default)||e}}function u(e,t){return delete t.webpack,delete t.modules,e(t)}function o(e,t){let r=n.default,l={loading:e=>{let{error:t,isLoading:r,pastDelay:l}=e;return null}};e instanceof Promise?l.loader=()=>e:"function"==typeof e?l.loader=e:"object"==typeof e&&(l={...l,...e}),l={...l,...t};let o=l.loader;return(l.loadableGenerated&&(l={...l,...l.loadableGenerated},delete l.loadableGenerated),"boolean"!=typeof l.ssr||l.ssr)?r({...l,loader:()=>null!=o?o().then(a):Promise.resolve(a(()=>null))}):(delete l.webpack,delete l.modules,u(r,l))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2804:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LoadableContext",{enumerable:!0,get:function(){return a}});let l=r(38754),n=l._(r(67294)),a=n.default.createContext(null)},23900:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return _}});let l=r(38754),n=l._(r(67294)),a=r(2804),u=[],o=[],i=!1;function s(e){let t=e(),r={loading:!0,loaded:null,error:null};return r.promise=t.then(e=>(r.loading=!1,r.loaded=e,e)).catch(e=>{throw r.loading=!1,r.error=e,e}),r}class d{promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};let{_res:e,_opts:t}=this;e.loading&&("number"==typeof t.delay&&(0===t.delay?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},t.delay)),"number"==typeof t.timeout&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},t.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(e=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(e){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,...e},this._callbacks.forEach(e=>e())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(e){return this._callbacks.add(e),()=>{this._callbacks.delete(e)}}constructor(e,t){this._loadFn=e,this._opts=t,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}}function c(e){return function(e,t){let r=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},t),l=null;function u(){if(!l){let t=new d(e,r);l={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return l.promise()}if(!i){let e=r.webpack?r.webpack():r.modules;e&&o.push(t=>{for(let r of e)if(t.includes(r))return u()})}function s(e,t){!function(){u();let e=n.default.useContext(a.LoadableContext);e&&Array.isArray(r.modules)&&r.modules.forEach(t=>{e(t)})}();let o=n.default.useSyncExternalStore(l.subscribe,l.getCurrentValue,l.getCurrentValue);return n.default.useImperativeHandle(t,()=>({retry:l.retry}),[]),n.default.useMemo(()=>{var t;return o.loading||o.error?n.default.createElement(r.loading,{isLoading:o.loading,pastDelay:o.pastDelay,timedOut:o.timedOut,error:o.error,retry:l.retry}):o.loaded?n.default.createElement((t=o.loaded)&&t.default?t.default:t,e):null},[e,o])}return s.preload=()=>u(),s.displayName="LoadableComponent",n.default.forwardRef(s)}(s,e)}function f(e,t){let r=[];for(;e.length;){let l=e.pop();r.push(l(t))}return Promise.all(r).then(()=>{if(e.length)return f(e,t)})}c.preloadAll=()=>new Promise((e,t)=>{f(u).then(e,t)}),c.preloadReady=e=>(void 0===e&&(e=[]),new Promise(t=>{let r=()=>(i=!0,t());f(o,e).then(r,r)})),window.__NEXT_PRELOADREADY=c.preloadReady;let _=c},99316:function(e,t,r){"use strict";r.r(t);var l=r(85893),n=r(67294),a=r(11163),u=r(41468),o=r(5152),i=r.n(o);let s=i()(()=>Promise.all([r.e(662),r.e(34),r.e(599),r.e(113),r.e(17),r.e(9),r.e(442),r.e(553),r.e(947),r.e(45),r.e(346),r.e(739),r.e(955),r.e(932)]).then(r.bind(r,53913)),{loadableGenerated:{webpack:()=>[53913]},ssr:!1}),d=i()(()=>Promise.all([r.e(662),r.e(34),r.e(599),r.e(113),r.e(17),r.e(9),r.e(479),r.e(442),r.e(553),r.e(947),r.e(810),r.e(411),r.e(45),r.e(346),r.e(234),r.e(739),r.e(607),r.e(861),r.e(396),r.e(955),r.e(0)]).then(r.bind(r,15506)),{loadableGenerated:{webpack:()=>[15506]},ssr:!1});t.default=function(){let{query:{id:e,scene:t}}=(0,a.useRouter)(),{isContract:r,setIsContract:o,setIsMenuExpand:i}=(0,n.useContext)(u.p);return(0,n.useEffect)(()=>{i("chat_dashboard"!==t),e&&t&&o(!1)},[e,t]),(0,l.jsx)(l.Fragment,{children:r?(0,l.jsx)(s,{}):(0,l.jsx)(d,{})})}},5152:function(e,t,r){e.exports=r(50948)}},function(e){e.O(0,[774,888,179],function(){return e(e.s=1826)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/dbgpt/app/static/_next/static/chunks/pages/database-376cd8f8dea0f96c.js b/dbgpt/app/static/_next/static/chunks/pages/database-d36f41810fc357a6.js similarity index 98% rename from dbgpt/app/static/_next/static/chunks/pages/database-376cd8f8dea0f96c.js rename to dbgpt/app/static/_next/static/chunks/pages/database-d36f41810fc357a6.js index c4473b48e..1f0c76cf1 100644 --- a/dbgpt/app/static/_next/static/chunks/pages/database-376cd8f8dea0f96c.js +++ b/dbgpt/app/static/_next/static/chunks/pages/database-d36f41810fc357a6.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[498],{55286:function(e,s,l){(window.__NEXT_P=window.__NEXT_P||[]).push(["/database",function(){return l(78466)}])},98978:function(e,s,l){"use strict";var a=l(85893),t=l(25675),r=l.n(t);s.Z=function(e){let{src:s,label:l,width:t,height:n,className:i}=e;return(0,a.jsx)(r(),{className:"w-11 h-11 rounded-full mr-4 border border-gray-200 object-contain bg-white ".concat(i),width:t||44,height:n||44,src:s,alt:l||"db-icon"})}},45247:function(e,s,l){"use strict";var a=l(85893),t=l(50888);s.Z=function(e){let{visible:s}=e;return s?(0,a.jsx)("div",{className:"absolute w-full h-full top-0 left-0 flex justify-center items-center z-10 bg-white dark:bg-black bg-opacity-50 dark:bg-opacity-50 backdrop-blur-sm text-3xl animate-fade animate-duration-200",children:(0,a.jsx)(t.Z,{})}):null}},78466:function(e,s,l){"use strict";l.r(s),l.d(s,{default:function(){return F},isFileDb:function(){return P}});var a=l(85893),t=l(67294),r=l(2093),n=l(12069),i=l(2453),c=l(71577),d=l(40411),o=l(85265),m=l(85813),u=l(32983),b=l(39479),p=l(51009),x=l(59566),h=l(48928),f=l(50489),j=l(67421),y=function(e){let{open:s,choiceDBType:l,dbTypeList:r,editValue:d,dbNames:o,onClose:m,onSuccess:u}=e,[y,Z]=(0,t.useState)(!1),{t:_}=(0,j.$G)(),[v]=b.Z.useForm(),N=b.Z.useWatch("db_type",v),w=(0,t.useMemo)(()=>P(r,N),[r,N]);(0,t.useEffect)(()=>{l&&v.setFieldValue("db_type",l)},[l]),(0,t.useEffect)(()=>{d&&v.setFieldsValue({...d})},[d]),(0,t.useEffect)(()=>{s||v.resetFields()},[s]);let g=async e=>{let{db_host:s,db_path:l,db_port:a,...t}=e;if(!d&&o.some(e=>e===t.db_name)){i.ZP.error("The database already exists!");return}let r={db_host:w?void 0:s,db_port:w?void 0:a,file_path:w?l:void 0,...t};Z(!0);try{let[e]=await (0,f.Vx)((0,f.KS)(r));if(e)return;let[s]=await (0,f.Vx)((d?f.mR:f.b_)(r));if(s){i.ZP.error(s.message);return}i.ZP.success("success"),null==u||u()}catch(e){i.ZP.error(e.message)}finally{Z(!1)}},k=(0,t.useMemo)(()=>!!d||!!l,[d,l]);return(0,a.jsx)(n.default,{open:s,width:400,title:_(d?"Edit":"create_database"),maskClosable:!1,footer:null,onCancel:m,children:(0,a.jsxs)(b.Z,{form:v,className:"pt-2",labelCol:{span:6},labelAlign:"left",onFinish:g,children:[(0,a.jsx)(b.Z.Item,{name:"db_type",label:"DB Type",className:"mb-3",rules:[{required:!0}],children:(0,a.jsx)(p.default,{"aria-readonly":k,disabled:k,options:r})}),(0,a.jsx)(b.Z.Item,{name:"db_name",label:"DB Name",className:"mb-3",rules:[{required:!0}],children:(0,a.jsx)(x.default,{readOnly:!!d,disabled:!!d})}),!0===w&&(0,a.jsx)(b.Z.Item,{name:"db_path",label:"Path",className:"mb-3",rules:[{required:!0}],children:(0,a.jsx)(x.default,{})}),!1===w&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(b.Z.Item,{name:"db_user",label:"Username",className:"mb-3",rules:[{required:!0}],children:(0,a.jsx)(x.default,{})}),(0,a.jsx)(b.Z.Item,{name:"db_pwd",label:"Password",className:"mb-3",rules:[{required:!0}],children:(0,a.jsx)(x.default,{type:"password"})}),(0,a.jsx)(b.Z.Item,{name:"db_host",label:"Host",className:"mb-3",rules:[{required:!0}],children:(0,a.jsx)(x.default,{})}),(0,a.jsx)(b.Z.Item,{name:"db_port",label:"Port",className:"mb-3",rules:[{required:!0}],children:(0,a.jsx)(h.Z,{min:1,step:1,max:65535})})]}),(0,a.jsx)(b.Z.Item,{name:"comment",label:"Remark",className:"mb-3",children:(0,a.jsx)(x.default,{})}),(0,a.jsxs)(b.Z.Item,{className:"flex flex-row-reverse pt-1 mb-0",children:[(0,a.jsx)(c.ZP,{htmlType:"submit",type:"primary",size:"middle",className:"mr-1",loading:y,children:"Save"}),(0,a.jsx)(c.ZP,{size:"middle",onClick:m,children:"Cancel"})]})]})})},Z=l(83062),_=l(98978),v=function(e){let{info:s,onClick:l}=e,r=(0,t.useCallback)(()=>{s.disabled||null==l||l()},[s.disabled,l]);return(0,a.jsxs)("div",{className:"relative flex flex-col py-4 px-4 w-72 h-32 cursor-pointer rounded-lg justify-between text-black bg-white border-gray-200 border hover:shadow-md dark:border-gray-600 dark:bg-black dark:text-white dark:hover:border-white transition-all ".concat(s.disabled?"grayscale cursor-no-drop":""),onClick:r,children:[(0,a.jsxs)("div",{className:"flex items-center",children:[(0,a.jsx)(_.Z,{src:s.icon,label:s.label}),(0,a.jsx)("div",{className:"flex flex-col",children:(0,a.jsx)("h2",{className:"text-sm font-semibold",children:s.label})})]}),(0,a.jsx)(Z.Z,{title:s.desc,children:(0,a.jsx)("p",{className:"text-sm text-gray-500 font-normal line-clamp-2",children:s.desc})})]})},N=l(24969),w=l(36531),g=l(27704),k=l(45247),C=l(98399);function P(e,s){var l;return null===(l=e.find(e=>e.value===s))||void 0===l?void 0:l.isFileDb}var F=function(){let[e,s]=(0,t.useState)([]),[l,b]=(0,t.useState)([]),[p,x]=(0,t.useState)(!1),[h,j]=(0,t.useState)({open:!1}),[Z,_]=(0,t.useState)({open:!1}),P=async()=>{let[e,s]=await (0,f.Vx)((0,f.Jm)());b(null!=s?s:[])},F=async()=>{x(!0);let[e,l]=await (0,f.Vx)((0,f.Bw)());s(null!=l?l:[]),x(!1)},E=(0,t.useMemo)(()=>{let e=l.map(e=>{let{db_type:s,is_file_db:l}=e;return{...C.S$[s],value:s,isFileDb:l}}),s=Object.keys(C.S$).filter(s=>!e.some(e=>e.value===s)).map(e=>({...C.S$[e],value:C.S$[e].label,disabled:!0}));return[...e,...s]},[l]),S=e=>{j({open:!0,info:e})},T=e=>{n.default.confirm({title:"Tips",content:"Do you Want to delete the ".concat(e.db_name,"?"),onOk:()=>new Promise(async(s,l)=>{try{let[a]=await (0,f.Vx)((0,f.J5)(e.db_name));if(a){i.ZP.error(a.message),l();return}i.ZP.success("success"),F(),s()}catch(e){l()}})})},I=(0,t.useMemo)(()=>{let s=E.reduce((s,l)=>(s[l.value]=e.filter(e=>e.db_type===l.value),s),{});return s},[e,E]);(0,r.Z)(async()=>{await F(),await P()},[]);let D=s=>{let l=e.filter(e=>e.db_type===s.value);_({open:!0,dbList:l,name:s.label,type:s.value})};return(0,a.jsxs)("div",{className:"relative p-4 md:p-6 bg-[#FAFAFA] dark:bg-transparent min-h-full overflow-y-auto",children:[(0,a.jsx)(k.Z,{visible:p}),(0,a.jsx)("div",{className:"mb-4",children:(0,a.jsx)(c.ZP,{type:"primary",className:"flex items-center",icon:(0,a.jsx)(N.Z,{}),onClick:()=>{j({open:!0})},children:"Create"})}),(0,a.jsx)("div",{className:"flex flex-wrap gap-2 md:gap-4",children:E.map(e=>(0,a.jsx)(d.Z,{count:I[e.value].length,children:(0,a.jsx)(v,{info:e,onClick:()=>{D(e)}})},e.value))}),(0,a.jsx)(y,{open:h.open,dbTypeList:E,choiceDBType:h.dbType,editValue:h.info,dbNames:e.map(e=>e.db_name),onSuccess:()=>{j({open:!1}),F()},onClose:()=>{j({open:!1})}}),(0,a.jsx)(o.Z,{title:Z.name,placement:"right",onClose:()=>{_({open:!1})},open:Z.open,children:Z.type&&I[Z.type]&&I[Z.type].length?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(c.ZP,{type:"primary",className:"mb-4 flex items-center",icon:(0,a.jsx)(N.Z,{}),onClick:()=>{j({open:!0,dbType:Z.type})},children:"Create"}),I[Z.type].map(e=>(0,a.jsxs)(m.Z,{title:e.db_name,extra:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(w.Z,{className:"mr-2",style:{color:"#1b7eff"},onClick:()=>{S(e)}}),(0,a.jsx)(g.Z,{style:{color:"#ff1b2e"},onClick:()=>{T(e)}})]}),className:"mb-4",children:[e.db_path?(0,a.jsxs)("p",{children:["path: ",e.db_path]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("p",{children:["host: ",e.db_host]}),(0,a.jsxs)("p",{children:["username: ",e.db_user]}),(0,a.jsxs)("p",{children:["port: ",e.db_port]})]}),(0,a.jsxs)("p",{children:["remark: ",e.comment]})]},e.db_name))]}):(0,a.jsx)(u.Z,{image:u.Z.PRESENTED_IMAGE_DEFAULT,children:(0,a.jsx)(c.ZP,{type:"primary",className:"flex items-center mx-auto",icon:(0,a.jsx)(N.Z,{}),onClick:()=>{j({open:!0,dbType:Z.type})},children:"Create Now"})})})]})}}},function(e){e.O(0,[64,479,9,442,813,411,928,643,774,888,179],function(){return e(e.s=55286)}),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[498],{55286:function(e,s,l){(window.__NEXT_P=window.__NEXT_P||[]).push(["/database",function(){return l(78466)}])},98978:function(e,s,l){"use strict";var a=l(85893),t=l(25675),r=l.n(t);s.Z=function(e){let{src:s,label:l,width:t,height:n,className:i}=e;return(0,a.jsx)(r(),{className:"w-11 h-11 rounded-full mr-4 border border-gray-200 object-contain bg-white ".concat(i),width:t||44,height:n||44,src:s,alt:l||"db-icon"})}},45247:function(e,s,l){"use strict";var a=l(85893),t=l(50888);s.Z=function(e){let{visible:s}=e;return s?(0,a.jsx)("div",{className:"absolute w-full h-full top-0 left-0 flex justify-center items-center z-10 bg-white dark:bg-black bg-opacity-50 dark:bg-opacity-50 backdrop-blur-sm text-3xl animate-fade animate-duration-200",children:(0,a.jsx)(t.Z,{})}):null}},78466:function(e,s,l){"use strict";l.r(s),l.d(s,{default:function(){return F},isFileDb:function(){return P}});var a=l(85893),t=l(67294),r=l(2093),n=l(12069),i=l(2453),c=l(71577),d=l(40411),o=l(85265),m=l(85813),u=l(32983),b=l(39479),p=l(51009),x=l(59566),h=l(48928),f=l(50489),j=l(67421),y=function(e){let{open:s,choiceDBType:l,dbTypeList:r,editValue:d,dbNames:o,onClose:m,onSuccess:u}=e,[y,Z]=(0,t.useState)(!1),{t:_}=(0,j.$G)(),[v]=b.Z.useForm(),N=b.Z.useWatch("db_type",v),w=(0,t.useMemo)(()=>P(r,N),[r,N]);(0,t.useEffect)(()=>{l&&v.setFieldValue("db_type",l)},[l]),(0,t.useEffect)(()=>{d&&v.setFieldsValue({...d})},[d]),(0,t.useEffect)(()=>{s||v.resetFields()},[s]);let g=async e=>{let{db_host:s,db_path:l,db_port:a,...t}=e;if(!d&&o.some(e=>e===t.db_name)){i.ZP.error("The database already exists!");return}let r={db_host:w?void 0:s,db_port:w?void 0:a,file_path:w?l:void 0,...t};Z(!0);try{let[e]=await (0,f.Vx)((0,f.KS)(r));if(e)return;let[s]=await (0,f.Vx)((d?f.mR:f.b_)(r));if(s){i.ZP.error(s.message);return}i.ZP.success("success"),null==u||u()}catch(e){i.ZP.error(e.message)}finally{Z(!1)}},k=(0,t.useMemo)(()=>!!d||!!l,[d,l]);return(0,a.jsx)(n.default,{open:s,width:400,title:_(d?"Edit":"create_database"),maskClosable:!1,footer:null,onCancel:m,children:(0,a.jsxs)(b.Z,{form:v,className:"pt-2",labelCol:{span:6},labelAlign:"left",onFinish:g,children:[(0,a.jsx)(b.Z.Item,{name:"db_type",label:"DB Type",className:"mb-3",rules:[{required:!0}],children:(0,a.jsx)(p.default,{"aria-readonly":k,disabled:k,options:r})}),(0,a.jsx)(b.Z.Item,{name:"db_name",label:"DB Name",className:"mb-3",rules:[{required:!0}],children:(0,a.jsx)(x.default,{readOnly:!!d,disabled:!!d})}),!0===w&&(0,a.jsx)(b.Z.Item,{name:"db_path",label:"Path",className:"mb-3",rules:[{required:!0}],children:(0,a.jsx)(x.default,{})}),!1===w&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(b.Z.Item,{name:"db_user",label:"Username",className:"mb-3",rules:[{required:!0}],children:(0,a.jsx)(x.default,{})}),(0,a.jsx)(b.Z.Item,{name:"db_pwd",label:"Password",className:"mb-3",rules:[{required:!0}],children:(0,a.jsx)(x.default,{type:"password"})}),(0,a.jsx)(b.Z.Item,{name:"db_host",label:"Host",className:"mb-3",rules:[{required:!0}],children:(0,a.jsx)(x.default,{})}),(0,a.jsx)(b.Z.Item,{name:"db_port",label:"Port",className:"mb-3",rules:[{required:!0}],children:(0,a.jsx)(h.Z,{min:1,step:1,max:65535})})]}),(0,a.jsx)(b.Z.Item,{name:"comment",label:"Remark",className:"mb-3",children:(0,a.jsx)(x.default,{})}),(0,a.jsxs)(b.Z.Item,{className:"flex flex-row-reverse pt-1 mb-0",children:[(0,a.jsx)(c.ZP,{htmlType:"submit",type:"primary",size:"middle",className:"mr-1",loading:y,children:"Save"}),(0,a.jsx)(c.ZP,{size:"middle",onClick:m,children:"Cancel"})]})]})})},Z=l(83062),_=l(98978),v=function(e){let{info:s,onClick:l}=e,r=(0,t.useCallback)(()=>{s.disabled||null==l||l()},[s.disabled,l]);return(0,a.jsxs)("div",{className:"relative flex flex-col py-4 px-4 w-72 h-32 cursor-pointer rounded-lg justify-between text-black bg-white border-gray-200 border hover:shadow-md dark:border-gray-600 dark:bg-black dark:text-white dark:hover:border-white transition-all ".concat(s.disabled?"grayscale cursor-no-drop":""),onClick:r,children:[(0,a.jsxs)("div",{className:"flex items-center",children:[(0,a.jsx)(_.Z,{src:s.icon,label:s.label}),(0,a.jsx)("div",{className:"flex flex-col",children:(0,a.jsx)("h2",{className:"text-sm font-semibold",children:s.label})})]}),(0,a.jsx)(Z.Z,{title:s.desc,children:(0,a.jsx)("p",{className:"text-sm text-gray-500 font-normal line-clamp-2",children:s.desc})})]})},N=l(24969),w=l(36531),g=l(27704),k=l(45247),C=l(98399);function P(e,s){var l;return null===(l=e.find(e=>e.value===s))||void 0===l?void 0:l.isFileDb}var F=function(){let[e,s]=(0,t.useState)([]),[l,b]=(0,t.useState)([]),[p,x]=(0,t.useState)(!1),[h,j]=(0,t.useState)({open:!1}),[Z,_]=(0,t.useState)({open:!1}),P=async()=>{let[e,s]=await (0,f.Vx)((0,f.Jm)());b(null!=s?s:[])},F=async()=>{x(!0);let[e,l]=await (0,f.Vx)((0,f.Bw)());s(null!=l?l:[]),x(!1)},E=(0,t.useMemo)(()=>{let e=l.map(e=>{let{db_type:s,is_file_db:l}=e;return{...C.S$[s],value:s,isFileDb:l}}),s=Object.keys(C.S$).filter(s=>!e.some(e=>e.value===s)).map(e=>({...C.S$[e],value:C.S$[e].label,disabled:!0}));return[...e,...s]},[l]),S=e=>{j({open:!0,info:e})},T=e=>{n.default.confirm({title:"Tips",content:"Do you Want to delete the ".concat(e.db_name,"?"),onOk:()=>new Promise(async(s,l)=>{try{let[a]=await (0,f.Vx)((0,f.J5)(e.db_name));if(a){i.ZP.error(a.message),l();return}i.ZP.success("success"),F(),s()}catch(e){l()}})})},I=(0,t.useMemo)(()=>{let s=E.reduce((s,l)=>(s[l.value]=e.filter(e=>e.db_type===l.value),s),{});return s},[e,E]);(0,r.Z)(async()=>{await F(),await P()},[]);let D=s=>{let l=e.filter(e=>e.db_type===s.value);_({open:!0,dbList:l,name:s.label,type:s.value})};return(0,a.jsxs)("div",{className:"relative p-4 md:p-6 bg-[#FAFAFA] dark:bg-transparent min-h-full overflow-y-auto",children:[(0,a.jsx)(k.Z,{visible:p}),(0,a.jsx)("div",{className:"mb-4",children:(0,a.jsx)(c.ZP,{type:"primary",className:"flex items-center",icon:(0,a.jsx)(N.Z,{}),onClick:()=>{j({open:!0})},children:"Create"})}),(0,a.jsx)("div",{className:"flex flex-wrap gap-2 md:gap-4",children:E.map(e=>(0,a.jsx)(d.Z,{count:I[e.value].length,children:(0,a.jsx)(v,{info:e,onClick:()=>{D(e)}})},e.value))}),(0,a.jsx)(y,{open:h.open,dbTypeList:E,choiceDBType:h.dbType,editValue:h.info,dbNames:e.map(e=>e.db_name),onSuccess:()=>{j({open:!1}),F()},onClose:()=>{j({open:!1})}}),(0,a.jsx)(o.Z,{title:Z.name,placement:"right",onClose:()=>{_({open:!1})},open:Z.open,children:Z.type&&I[Z.type]&&I[Z.type].length?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(c.ZP,{type:"primary",className:"mb-4 flex items-center",icon:(0,a.jsx)(N.Z,{}),onClick:()=>{j({open:!0,dbType:Z.type})},children:"Create"}),I[Z.type].map(e=>(0,a.jsxs)(m.Z,{title:e.db_name,extra:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(w.Z,{className:"mr-2",style:{color:"#1b7eff"},onClick:()=>{S(e)}}),(0,a.jsx)(g.Z,{style:{color:"#ff1b2e"},onClick:()=>{T(e)}})]}),className:"mb-4",children:[e.db_path?(0,a.jsxs)("p",{children:["path: ",e.db_path]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("p",{children:["host: ",e.db_host]}),(0,a.jsxs)("p",{children:["username: ",e.db_user]}),(0,a.jsxs)("p",{children:["port: ",e.db_port]})]}),(0,a.jsxs)("p",{children:["remark: ",e.comment]})]},e.db_name))]}):(0,a.jsx)(u.Z,{image:u.Z.PRESENTED_IMAGE_DEFAULT,children:(0,a.jsx)(c.ZP,{type:"primary",className:"flex items-center mx-auto",icon:(0,a.jsx)(N.Z,{}),onClick:()=>{j({open:!0,dbType:Z.type})},children:"Create Now"})})})]})}}},function(e){e.O(0,[113,17,9,479,442,813,411,928,643,774,888,179],function(){return e(e.s=55286)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/dbgpt/app/static/_next/static/chunks/pages/index-ba9785759e4fc934.js b/dbgpt/app/static/_next/static/chunks/pages/index-ba9785759e4fc934.js new file mode 100644 index 000000000..02f6d2bcf --- /dev/null +++ b/dbgpt/app/static/_next/static/chunks/pages/index-ba9785759e4fc934.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[405],{48312:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return n(57464)}])},81799:function(e,t,n){"use strict";n.d(t,{A:function(){return d}});var a=n(85893),s=n(41468),l=n(51009),r=n(19284),o=n(25675),c=n.n(o),i=n(67294),u=n(67421);function d(e,t){var n;let{width:s,height:l}=t||{};return e?(0,a.jsx)(c(),{className:"rounded-full border border-gray-200 object-contain bg-white inline-block",width:s||24,height:l||24,src:(null===(n=r.Hf[e])||void 0===n?void 0:n.icon)||"/models/huggingface.svg",alt:"llm"}):null}t.Z=function(e){let{onChange:t}=e,{t:n}=(0,u.$G)(),{modelList:o,model:c}=(0,i.useContext)(s.p);return!o||o.length<=0?null:(0,a.jsx)(l.default,{value:c,placeholder:n("choose_model"),className:"w-52",onChange:e=>{null==t||t(e)},children:o.map(e=>{var t;return(0,a.jsx)(l.default.Option,{children:(0,a.jsxs)("div",{className:"flex items-center",children:[d(e),(0,a.jsx)("span",{className:"ml-2",children:(null===(t=r.Hf[e])||void 0===t?void 0:t.label)||e})]})},e)})})}},19409:function(e,t,n){"use strict";n.d(t,{Z:function(){return I}});var a=n(85893),s=n(27496),l=n(59566),r=n(71577),o=n(67294),c=n(2487),i=n(83062),u=n(2453),d=n(46735),m=n(74627),h=n(39479),p=n(51009),x=n(58299),f=n(577),_=n(30119),g=n(67421);let v=e=>{let{data:t,loading:n,submit:s,close:l}=e,{t:r}=(0,g.$G)(),o=e=>()=>{s(e),l()};return(0,a.jsx)("div",{style:{maxHeight:400,overflow:"auto"},children:(0,a.jsx)(c.Z,{dataSource:null==t?void 0:t.data,loading:n,rowKey:e=>e.prompt_name,renderItem:e=>(0,a.jsx)(c.Z.Item,{onClick:o(e.content),children:(0,a.jsx)(i.Z,{title:e.content,children:(0,a.jsx)(c.Z.Item.Meta,{style:{cursor:"copy"},title:e.prompt_name,description:r("Prompt_Info_Scene")+":".concat(e.chat_scene,",")+r("Prompt_Info_Sub_Scene")+":".concat(e.sub_chat_scene)})})},e.prompt_name)})})};var j=e=>{let{submit:t}=e,{t:n}=(0,g.$G)(),[s,l]=(0,o.useState)(!1),[r,c]=(0,o.useState)("common"),{data:j,loading:w}=(0,f.Z)(()=>(0,_.PR)("/prompt/list",{prompt_type:r}),{refreshDeps:[r],onError:e=>{u.ZP.error(null==e?void 0:e.message)}});return(0,a.jsx)(d.ZP,{theme:{components:{Popover:{minWidth:250}}},children:(0,a.jsx)(m.Z,{title:(0,a.jsx)(h.Z.Item,{label:"Prompt "+n("Type"),children:(0,a.jsx)(p.default,{style:{width:150},value:r,onChange:e=>{c(e)},options:[{label:n("Public")+" Prompts",value:"common"},{label:n("Private")+" Prompts",value:"private"}]})}),content:(0,a.jsx)(v,{data:j,loading:w,submit:t,close:()=>{l(!1)}}),placement:"topRight",trigger:"click",open:s,onOpenChange:e=>{l(e)},children:(0,a.jsx)(i.Z,{title:n("Click_Select")+" Prompt",children:(0,a.jsx)(x.Z,{className:"bottom-[30%]"})})})})},w=n(41468),b=n(50489),N=n(80573),y=n(5392),Z=n(84553);function P(e){let{dbParam:t,setDocId:n}=(0,o.useContext)(w.p),{onUploadFinish:s,handleFinish:l}=e,c=(0,N.Z)(),[i,u]=(0,o.useState)(!1),d=async e=>{u(!0);let a=new FormData;a.append("doc_name",e.file.name),a.append("doc_file",e.file),a.append("doc_type","DOCUMENT");let r=await (0,b.Vx)((0,b.iG)(t||"default",a));if(!r[1]){u(!1);return}n(r[1]),s(),u(!1),null==l||l(!0),await c(r[1]),null==l||l(!1)};return(0,a.jsx)(Z.default,{customRequest:d,showUploadList:!1,maxCount:1,multiple:!1,className:"absolute z-10 top-2 left-2",accept:".pdf,.ppt,.pptx,.xls,.xlsx,.doc,.docx,.txt,.md",children:(0,a.jsx)(r.ZP,{loading:i,size:"small",shape:"circle",icon:(0,a.jsx)(y.Z,{})})})}var k=n(11163),C=n(5455),R=n(1051);function S(e){let{document:t}=e;switch(t.status){case"RUNNING":return(0,a.jsx)(C.Rp,{});case"FINISHED":default:return(0,a.jsx)(C.s2,{});case"FAILED":return(0,a.jsx)(R.Z,{})}}function E(e){let{documents:t,dbParam:n}=e,s=(0,k.useRouter)(),l=e=>{s.push("/knowledge/chunk/?spaceName=".concat(n,"&id=").concat(e))};return(null==t?void 0:t.length)?(0,a.jsx)("div",{className:"absolute flex overflow-scroll h-12 top-[-35px] w-full z-10",children:t.map(e=>{let t;switch(e.status){case"RUNNING":t="#2db7f5";break;case"FINISHED":default:t="#87d068";break;case"FAILED":t="#f50"}return(0,a.jsx)(i.Z,{title:e.result,children:(0,a.jsxs)(r.ZP,{style:{color:t},onClick:()=>{l(e.id)},className:"shrink flex items-center mr-3",children:[(0,a.jsx)(S,{document:e}),e.doc_name]})},e.id)})}):null}var I=function(e){let{children:t,loading:n,onSubmit:c,handleFinish:i,...u}=e,{dbParam:d,scene:m}=(0,o.useContext)(w.p),[h,p]=(0,o.useState)(""),x=(0,o.useMemo)(()=>"chat_knowledge"===m,[m]),[f,_]=(0,o.useState)([]),g=(0,o.useRef)(0);async function v(){if(!d)return null;let[e,t]=await (0,b.Vx)((0,b._Q)(d,{page:1,page_size:g.current}));_(null==t?void 0:t.data)}(0,o.useEffect)(()=>{x&&v()},[d]);let N=async()=>{g.current+=1,await v()};return(0,a.jsxs)("div",{className:"flex-1 relative",children:[(0,a.jsx)(E,{documents:f,dbParam:d}),x&&(0,a.jsx)(P,{handleFinish:i,onUploadFinish:N,className:"absolute z-10 top-2 left-2"}),(0,a.jsx)(l.default.TextArea,{className:"flex-1 ".concat(x?"pl-10":""," pr-10"),size:"large",value:h,autoSize:{minRows:1,maxRows:4},...u,onPressEnter:e=>{if(h.trim()&&13===e.keyCode){if(e.shiftKey){p(e=>e+"\n");return}c(h),setTimeout(()=>{p("")},0)}},onChange:e=>{if("number"==typeof u.maxLength){p(e.target.value.substring(0,u.maxLength));return}p(e.target.value)}}),(0,a.jsx)(r.ZP,{className:"ml-2 flex items-center justify-center absolute right-2 bottom-0",size:"large",type:"text",loading:n,icon:(0,a.jsx)(s.Z,{}),onClick:()=>{c(h)}}),(0,a.jsx)(j,{submit:e=>{p(h+e)}}),t]})}},43446:function(e,t,n){"use strict";var a=n(1375),s=n(2453),l=n(67294),r=n(58989),o=n(83454);t.Z=e=>{let{queryAgentURL:t="/api/v1/chat/completions"}=e,n=(0,l.useMemo)(()=>new AbortController,[]),c=(0,l.useCallback)(async e=>{let{data:l,chatId:c,onMessage:i,onClose:u,onDone:d,onError:m}=e;if(!(null==l?void 0:l.user_input)&&!(null==l?void 0:l.doc_id)){s.ZP.warning(r.Z.t("NoContextTip"));return}let h={...l,conv_uid:c};if(!h.conv_uid){s.ZP.error("conv_uid 不存在,请刷新后重试");return}try{var p;await (0,a.L)("".concat(null!==(p=o.env.API_BASE_URL)&&void 0!==p?p:"").concat(t),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(h),signal:n.signal,openWhenHidden:!0,async onopen(e){if(e.ok&&e.headers.get("content-type")===a.a)return},onclose(){n.abort(),null==u||u()},onerror(e){throw Error(e)},onmessage:e=>{var t;let n=null===(t=e.data)||void 0===t?void 0:t.replaceAll("\\n","\n");"[DONE]"===n?null==d||d():(null==n?void 0:n.startsWith("[ERROR]"))?null==m||m(null==n?void 0:n.replace("[ERROR]","")):null==i||i(n)}})}catch(e){n.abort(),null==m||m("Sorry, We meet some error, please try agin later.",e)}},[t]);return(0,l.useEffect)(()=>()=>{n.abort()},[]),c}},80573:function(e,t,n){"use strict";var a=n(41468),s=n(67294),l=n(43446),r=n(50489);t.Z=()=>{let{history:e,setHistory:t,chatId:n,model:o,docId:c}=(0,s.useContext)(a.p),i=(0,l.Z)({queryAgentURL:"/knowledge/document/summary"}),u=(0,s.useCallback)(async e=>{let[,a]=await (0,r.Vx)((0,r.$i)(n)),s=[...a,{role:"human",context:"",model_name:o,order:0,time_stamp:0},{role:"view",context:"",model_name:o,order:0,time_stamp:0,retry:!0}],l=s.length-1;t([...s]),await i({data:{doc_id:e||c,model_name:o},chatId:n,onMessage:e=>{s[l].context=e,t([...s])}})},[e,o,c,n]);return u}},57464:function(e,t,n){"use strict";n.r(t);var a=n(85893),s=n(577),l=n(67294),r=n(96074),o=n(75081),c=n(66309),i=n(39332),u=n(25675),d=n.n(u),m=n(50489),h=n(81799),p=n(41468),x=n(19409),f=n(67421),_=n(98399),g=n(53014),v=n(5455),j=n(94184),w=n.n(j);t.default=()=>{let e=(0,i.useRouter)(),{model:t,setModel:n}=(0,l.useContext)(p.p),{t:u}=(0,f.$G)(),[j,b]=(0,l.useState)(!1),[N,y]=(0,l.useState)(!1),{data:Z=[]}=(0,s.Z)(async()=>{y(!0);let[,e]=await (0,m.Vx)((0,m.CU)());return y(!1),null!=e?e:[]}),P=async n=>{b(!0);let[,a]=await (0,m.Vx)((0,m.sW)({chat_mode:"chat_normal"}));a&&(localStorage.setItem(_.rU,JSON.stringify({id:a.conv_uid,message:n})),e.push("/chat/?scene=chat_normal&id=".concat(a.conv_uid).concat(t?"&model=".concat(t):""))),b(!1)},k=async n=>{if(n.show_disable)return;let[,a]=await (0,m.Vx)((0,m.sW)({chat_mode:"chat_normal"}));a&&e.push("/chat?scene=".concat(n.chat_scene,"&id=").concat(a.conv_uid).concat(t?"&model=".concat(t):""))};return(0,a.jsx)("div",{className:"px-4 h-screen flex flex-col justify-center items-center overflow-hidden",children:(0,a.jsxs)("div",{className:"max-w-3xl max-h-screen overflow-y-auto",children:[(0,a.jsx)(d(),{src:"/LOGO.png",alt:"Revolutionizing Database Interactions with Private LLM Technology",width:856,height:160,className:"w-full mt-4",unoptimized:!0}),(0,a.jsx)(r.Z,{className:"!text-[#878c93] !my-6",plain:!0,children:u("Quick_Start")}),(0,a.jsx)(o.Z,{spinning:N,children:(0,a.jsx)("div",{className:"flex flex-wrap -m-1 md:-m-2",children:Z.map(e=>(0,a.jsx)("div",{className:"w-full sm:w-1/2 p-1 md:p-2",onClick:()=>{k(e)},children:(0,a.jsxs)("div",{className:w()("flex flex-row justify-center min-h-min border bg-slate-50 border-gray-300 dark:bg-black bg-opacity-50 border-opacity-50 text-gray-950 dark:text-white rounded p-4 cursor-pointer",{"grayscale !cursor-no-drop":e.show_disable}),children:[function(e){switch(e){case"chat_knowledge":return(0,a.jsx)(g.Z,{className:"w-10 h-10 mr-4 p-1 bg-white rounded",component:v.je});case"chat_with_db_execute":return(0,a.jsx)(g.Z,{className:"w-10 h-10 mr-4 p-1 bg-white rounded",component:v.zM});case"chat_excel":return(0,a.jsx)(g.Z,{className:"w-10 h-10 mr-4 p-1 bg-white rounded",component:v.DL});case"chat_with_db_qa":return(0,a.jsx)(g.Z,{className:"w-10 h-10 mr-4 p-1 bg-white rounded",component:v.RD});case"chat_dashboard":return(0,a.jsx)(g.Z,{className:"w-10 h-10 mr-4 p-1 bg-white rounded",component:v.In});case"chat_agent":return(0,a.jsx)(g.Z,{className:"w-10 h-10 mr-4 p-1 bg-white rounded",component:v.si});default:return null}}(e.chat_scene),(0,a.jsxs)("div",{className:"flex flex-col flex-1",children:[(0,a.jsxs)("h2",{className:"flex items-center text-lg font-sans font-semibold",children:[e.scene_name,e.show_disable&&(0,a.jsx)(c.Z,{className:"ml-2",children:"Comming soon"})]}),(0,a.jsx)("p",{className:"opacity-80 line-clamp-2",children:e.scene_describe})]})]})},e.chat_scene))})}),(0,a.jsx)("div",{className:"mt-8 mb-2",children:(0,a.jsx)(h.Z,{onChange:e=>{n(e)}})}),(0,a.jsx)("div",{className:"flex flex-1 w-full mb-4",children:(0,a.jsx)(x.Z,{loading:j,onSubmit:P})})]})})}},30119:function(e,t,n){"use strict";n.d(t,{Tk:function(){return c},PR:function(){return i}});var a=n(2453),s=n(6154),l=n(83454);let r=s.Z.create({baseURL:l.env.API_BASE_URL});r.defaults.timeout=1e4,r.interceptors.response.use(e=>e.data,e=>Promise.reject(e)),n(96486);let o={"content-type":"application/json"},c=(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 r.get("/api"+e,{headers:o}).then(e=>e).catch(e=>{a.ZP.error(e),Promise.reject(e)})},i=(e,t)=>r.post(e,t,{headers:o}).then(e=>e).catch(e=>{a.ZP.error(e),Promise.reject(e)})}},function(e){e.O(0,[662,113,17,9,479,553,810,411,234,861,161,774,888,179],function(){return e(e.s=48312)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/dbgpt/app/static/_next/static/chunks/pages/index-ea3bde69015c6dc0.js b/dbgpt/app/static/_next/static/chunks/pages/index-ea3bde69015c6dc0.js deleted file mode 100644 index eb868f18e..000000000 --- a/dbgpt/app/static/_next/static/chunks/pages/index-ea3bde69015c6dc0.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[405],{48312:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return n(57464)}])},81799:function(e,t,n){"use strict";n.d(t,{A:function(){return d}});var a=n(85893),s=n(41468),c=n(51009),l=n(19284),r=n(25675),o=n.n(r),i=n(67294),u=n(67421);function d(e,t){var n;let{width:s,height:c}=t||{};return e?(0,a.jsx)(o(),{className:"rounded-full border border-gray-200 object-contain bg-white inline-block",width:s||24,height:c||24,src:(null===(n=l.Hf[e])||void 0===n?void 0:n.icon)||"/models/huggingface.svg",alt:"llm"}):null}t.Z=function(e){let{onChange:t}=e,{t:n}=(0,u.$G)(),{modelList:r,model:o}=(0,i.useContext)(s.p);return!r||r.length<=0?null:(0,a.jsx)(c.default,{value:o,placeholder:n("choose_model"),className:"w-52",onChange:e=>{null==t||t(e)},children:r.map(e=>{var t;return(0,a.jsx)(c.default.Option,{children:(0,a.jsxs)("div",{className:"flex items-center",children:[d(e),(0,a.jsx)("span",{className:"ml-2",children:(null===(t=l.Hf[e])||void 0===t?void 0:t.label)||e})]})},e)})})}},20766:function(e,t,n){"use strict";n.d(t,{Z:function(){return I}});var a=n(85893),s=n(27496),c=n(59566),l=n(71577),r=n(67294),o=n(2487),i=n(83062),u=n(2453),d=n(46735),m=n(74627),h=n(39479),p=n(51009),x=n(58299),f=n(577),v=n(30119),_=n(67421);let g=e=>{let{data:t,loading:n,submit:s,close:c}=e,{t:l}=(0,_.$G)(),r=e=>()=>{s(e),c()};return(0,a.jsx)("div",{style:{maxHeight:400,overflow:"auto"},children:(0,a.jsx)(o.Z,{dataSource:null==t?void 0:t.data,loading:n,rowKey:e=>e.prompt_name,renderItem:e=>(0,a.jsx)(o.Z.Item,{onClick:r(e.content),children:(0,a.jsx)(i.Z,{title:e.content,children:(0,a.jsx)(o.Z.Item.Meta,{style:{cursor:"copy"},title:e.prompt_name,description:l("Prompt_Info_Scene")+":".concat(e.chat_scene,",")+l("Prompt_Info_Sub_Scene")+":".concat(e.sub_chat_scene)})})},e.prompt_name)})})};var w=e=>{let{submit:t}=e,{t:n}=(0,_.$G)(),[s,c]=(0,r.useState)(!1),[l,o]=(0,r.useState)("common"),{data:w,loading:j}=(0,f.Z)(()=>(0,v.PR)("/prompt/list",{prompt_type:l}),{refreshDeps:[l],onError:e=>{u.ZP.error(null==e?void 0:e.message)}});return(0,a.jsx)(d.ZP,{theme:{components:{Popover:{minWidth:250}}},children:(0,a.jsx)(m.Z,{title:(0,a.jsx)(h.Z.Item,{label:"Prompt "+n("Type"),children:(0,a.jsx)(p.default,{style:{width:150},value:l,onChange:e=>{o(e)},options:[{label:n("Public")+" Prompts",value:"common"},{label:n("Private")+" Prompts",value:"private"}]})}),content:(0,a.jsx)(g,{data:w,loading:j,submit:t,close:()=>{c(!1)}}),placement:"topRight",trigger:"click",open:s,onOpenChange:e=>{c(e)},children:(0,a.jsx)(i.Z,{title:n("Click_Select")+" Prompt",children:(0,a.jsx)(x.Z,{className:"bottom-[30%]"})})})})},j=n(41468),b=n(50489),N=n(80573),y=n(5392),Z=n(84553);function P(e){let{dbParam:t,setDocId:n}=(0,r.useContext)(j.p),{onUploadFinish:s,handleFinish:c}=e,o=(0,N.Z)(),[i,u]=(0,r.useState)(!1),d=async e=>{u(!0);let a=new FormData;a.append("doc_name",e.file.name),a.append("doc_file",e.file),a.append("doc_type","DOCUMENT");let l=await (0,b.Vx)((0,b.iG)(t||"default",a));if(!l[1]){u(!1);return}n(l[1]),s(),u(!1),null==c||c(!0),await o(l[1]),null==c||c(!1)};return(0,a.jsx)(Z.default,{customRequest:d,showUploadList:!1,maxCount:1,multiple:!1,className:"absolute z-10 top-2 left-2",accept:".pdf,.ppt,.pptx,.xls,.xlsx,.doc,.docx,.txt,.md",children:(0,a.jsx)(l.ZP,{loading:i,size:"small",shape:"circle",icon:(0,a.jsx)(y.Z,{})})})}var k=n(11163),C=n(5455);function S(){return(0,a.jsx)("svg",{className:"mr-1",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"6058",width:"1.5em",height:"1.5em",children:(0,a.jsx)("path",{d:"M688 312c0 4.4-3.6 8-8 8H296c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h384c4.4 0 8 3.6 8 8v48z m-392 88h184c4.4 0 8 3.6 8 8v48c0 4.4-3.6 8-8 8H296c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8z m376 116c119.3 0 216 96.7 216 216s-96.7 216-216 216-216-96.7-216-216 96.7-216 216-216z m107.5 323.5C808.2 810.8 824 772.6 824 732s-15.8-78.8-44.5-107.5S712.6 580 672 580s-78.8 15.8-107.5 44.5S520 691.4 520 732s15.8 78.8 44.5 107.5S631.4 884 672 884s78.8-15.8 107.5-44.5zM440 852c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8H168c-17.7 0-32-14.3-32-32V108c0-17.7 14.3-32 32-32h640c17.7 0 32 14.3 32 32v384c0 4.4-3.6 8-8 8h-56c-4.4 0-8-3.6-8-8V148H208v704h232z m232-76.06l-20.56 28.43c-1.5 2.1-3.9 3.3-6.5 3.3h-44.3c-6.5 0-10.3-7.4-6.4-12.7l45.75-63.3-45.75-63.3c-3.9-5.3-0.1-12.7 6.4-12.7h44.3c2.6 0 5 1.2 6.5 3.3L672 687.4l20.56-28.43c1.5-2.1 3.9-3.3 6.5-3.3h44.3c6.5 0 10.3 7.4 6.4 12.7l-45.75 63.3 45.75 63.3c3.9 5.3 0.1 12.7-6.4 12.7h-44.3c-2.6 0-5-1.2-6.5-3.3L672 775.94z",fill:"#d81e06","p-id":"6059"})})}function R(e){let{document:t}=e;switch(t.status){case"RUNNING":return(0,a.jsx)(C.Rp,{});case"FINISHED":default:return(0,a.jsx)(C.s2,{});case"FAILED":return(0,a.jsx)(S,{})}}function E(e){let{documents:t,dbParam:n}=e,s=(0,k.useRouter)(),c=e=>{s.push("/knowledge/chunk/?spaceName=".concat(n,"&id=").concat(e))};return(null==t?void 0:t.length)?(0,a.jsx)("div",{className:"absolute flex overflow-scroll h-12 top-[-35px] w-full z-10",children:t.map(e=>{let t;switch(e.status){case"RUNNING":t="#2db7f5";break;case"FINISHED":default:t="#87d068";break;case"FAILED":t="#f50"}return(0,a.jsx)(i.Z,{title:e.result,children:(0,a.jsxs)(l.ZP,{style:{color:t},onClick:()=>{c(e.id)},className:"shrink flex items-center mr-3",children:[(0,a.jsx)(R,{document:e}),e.doc_name]})},e.id)})}):null}var I=function(e){let{children:t,loading:n,onSubmit:o,handleFinish:i,...u}=e,{dbParam:d,scene:m}=(0,r.useContext)(j.p),[h,p]=(0,r.useState)(""),x=(0,r.useMemo)(()=>"chat_knowledge"===m,[m]),[f,v]=(0,r.useState)([]),_=(0,r.useRef)(0);async function g(){if(!d)return null;let[e,t]=await (0,b.Vx)((0,b._Q)(d,{page:1,page_size:_.current}));v(null==t?void 0:t.data)}(0,r.useEffect)(()=>{x&&g()},[d]);let N=async()=>{_.current+=1,await g()};return(0,a.jsxs)("div",{className:"flex-1 relative",children:[(0,a.jsx)(E,{documents:f,dbParam:d}),x&&(0,a.jsx)(P,{handleFinish:i,onUploadFinish:N,className:"absolute z-10 top-2 left-2"}),(0,a.jsx)(c.default.TextArea,{className:"flex-1 ".concat(x?"pl-10":""," pr-10"),size:"large",value:h,autoSize:{minRows:1,maxRows:4},...u,onPressEnter:e=>{if(h.trim()&&13===e.keyCode){if(e.shiftKey){p(e=>e+"\n");return}o(h),setTimeout(()=>{p("")},0)}},onChange:e=>{if("number"==typeof u.maxLength){p(e.target.value.substring(0,u.maxLength));return}p(e.target.value)}}),(0,a.jsx)(l.ZP,{className:"ml-2 flex items-center justify-center absolute right-2 bottom-0",size:"large",type:"text",loading:n,icon:(0,a.jsx)(s.Z,{}),onClick:()=>{o(h)}}),(0,a.jsx)(w,{submit:e=>{p(h+e)}}),t]})}},43446:function(e,t,n){"use strict";var a=n(1375),s=n(2453),c=n(67294),l=n(58989),r=n(83454);t.Z=e=>{let{queryAgentURL:t="/api/v1/chat/completions"}=e,n=(0,c.useMemo)(()=>new AbortController,[]),o=(0,c.useCallback)(async e=>{let{data:c,chatId:o,onMessage:i,onClose:u,onDone:d,onError:m}=e;if(!(null==c?void 0:c.user_input)&&!(null==c?void 0:c.doc_id)){s.ZP.warning(l.Z.t("NoContextTip"));return}let h={...c,conv_uid:o};if(!h.conv_uid){s.ZP.error("conv_uid 不存在,请刷新后重试");return}try{var p;await (0,a.L)("".concat(null!==(p=r.env.API_BASE_URL)&&void 0!==p?p:"").concat(t),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(h),signal:n.signal,openWhenHidden:!0,async onopen(e){if(e.ok&&e.headers.get("content-type")===a.a)return},onclose(){n.abort(),null==u||u()},onerror(e){throw Error(e)},onmessage:e=>{var t;let n=null===(t=e.data)||void 0===t?void 0:t.replaceAll("\\n","\n");"[DONE]"===n?null==d||d():(null==n?void 0:n.startsWith("[ERROR]"))?null==m||m(null==n?void 0:n.replace("[ERROR]","")):null==i||i(n)}})}catch(e){n.abort(),null==m||m("Sorry, We meet some error, please try agin later.",e)}},[t]);return(0,c.useEffect)(()=>()=>{n.abort()},[]),o}},80573:function(e,t,n){"use strict";var a=n(41468),s=n(67294),c=n(43446),l=n(50489);t.Z=()=>{let{history:e,setHistory:t,chatId:n,model:r,docId:o}=(0,s.useContext)(a.p),i=(0,c.Z)({queryAgentURL:"/knowledge/document/summary"}),u=(0,s.useCallback)(async e=>{let[,a]=await (0,l.Vx)((0,l.$i)(n)),s=[...a,{role:"human",context:"",model_name:r,order:0,time_stamp:0},{role:"view",context:"",model_name:r,order:0,time_stamp:0,retry:!0}],c=s.length-1;t([...s]),await i({data:{doc_id:e||o,model_name:r},chatId:n,onMessage:e=>{s[c].context=e,t([...s])}})},[e,r,o,n]);return u}},57464:function(e,t,n){"use strict";n.r(t);var a=n(85893),s=n(577),c=n(67294),l=n(96074),r=n(75081),o=n(66309),i=n(39332),u=n(25675),d=n.n(u),m=n(50489),h=n(81799),p=n(41468),x=n(20766),f=n(67421),v=n(98399),_=n(53014),g=n(5455),w=n(94184),j=n.n(w);t.default=()=>{let e=(0,i.useRouter)(),{model:t,setModel:n}=(0,c.useContext)(p.p),{t:u}=(0,f.$G)(),[w,b]=(0,c.useState)(!1),[N,y]=(0,c.useState)(!1),{data:Z=[]}=(0,s.Z)(async()=>{y(!0);let[,e]=await (0,m.Vx)((0,m.CU)());return y(!1),null!=e?e:[]}),P=async n=>{b(!0);let[,a]=await (0,m.Vx)((0,m.sW)({chat_mode:"chat_normal"}));a&&(localStorage.setItem(v.rU,JSON.stringify({id:a.conv_uid,message:n})),e.push("/chat/?scene=chat_normal&id=".concat(a.conv_uid).concat(t?"&model=".concat(t):""))),b(!1)},k=async n=>{if(n.show_disable)return;let[,a]=await (0,m.Vx)((0,m.sW)({chat_mode:"chat_normal"}));a&&e.push("/chat?scene=".concat(n.chat_scene,"&id=").concat(a.conv_uid).concat(t?"&model=".concat(t):""))};return(0,a.jsx)("div",{className:"px-4 h-screen flex flex-col justify-center items-center overflow-hidden",children:(0,a.jsxs)("div",{className:"max-w-3xl max-h-screen overflow-y-auto",children:[(0,a.jsx)(d(),{src:"/LOGO.png",alt:"Revolutionizing Database Interactions with Private LLM Technology",width:856,height:160,className:"w-full mt-4",unoptimized:!0}),(0,a.jsx)(l.Z,{className:"!text-[#878c93] !my-6",plain:!0,children:u("Quick_Start")}),(0,a.jsx)(r.Z,{spinning:N,children:(0,a.jsx)("div",{className:"flex flex-wrap -m-1 md:-m-2",children:Z.map(e=>(0,a.jsx)("div",{className:"w-full sm:w-1/2 p-1 md:p-2",onClick:()=>{k(e)},children:(0,a.jsxs)("div",{className:j()("flex flex-row justify-center min-h-min border bg-slate-50 border-gray-300 dark:bg-black bg-opacity-50 border-opacity-50 text-gray-950 dark:text-white rounded p-4 cursor-pointer",{"grayscale !cursor-no-drop":e.show_disable}),children:[function(e){switch(e){case"chat_knowledge":return(0,a.jsx)(_.Z,{className:"w-10 h-10 mr-4 p-1 bg-white rounded",component:g.je});case"chat_with_db_execute":return(0,a.jsx)(_.Z,{className:"w-10 h-10 mr-4 p-1 bg-white rounded",component:g.zM});case"chat_excel":return(0,a.jsx)(_.Z,{className:"w-10 h-10 mr-4 p-1 bg-white rounded",component:g.DL});case"chat_with_db_qa":return(0,a.jsx)(_.Z,{className:"w-10 h-10 mr-4 p-1 bg-white rounded",component:g.RD});case"chat_dashboard":return(0,a.jsx)(_.Z,{className:"w-10 h-10 mr-4 p-1 bg-white rounded",component:g.In});case"chat_agent":return(0,a.jsx)(_.Z,{className:"w-10 h-10 mr-4 p-1 bg-white rounded",component:g.si});default:return null}}(e.chat_scene),(0,a.jsxs)("div",{className:"flex flex-col flex-1",children:[(0,a.jsxs)("h2",{className:"flex items-center text-lg font-sans font-semibold",children:[e.scene_name,e.show_disable&&(0,a.jsx)(o.Z,{className:"ml-2",children:"Comming soon"})]}),(0,a.jsx)("p",{className:"opacity-80 line-clamp-2",children:e.scene_describe})]})]})},e.chat_scene))})}),(0,a.jsx)("div",{className:"mt-8 mb-2",children:(0,a.jsx)(h.Z,{onChange:e=>{n(e)}})}),(0,a.jsx)("div",{className:"flex flex-1 w-full mb-4",children:(0,a.jsx)(x.Z,{loading:w,onSubmit:P})})]})})}},30119:function(e,t,n){"use strict";n.d(t,{Tk:function(){return o},PR:function(){return i}});var a=n(2453),s=n(6154),c=n(83454);let l=s.Z.create({baseURL:c.env.API_BASE_URL});l.defaults.timeout=1e4,l.interceptors.response.use(e=>e.data,e=>Promise.reject(e)),n(96486);let r={"content-type":"application/json"},o=(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 l.get("/api"+e,{headers:r}).then(e=>e).catch(e=>{a.ZP.error(e),Promise.reject(e)})},i=(e,t)=>l.post(e,t,{headers:r}).then(e=>e).catch(e=>{a.ZP.error(e),Promise.reject(e)})}},function(e){e.O(0,[662,64,479,9,553,924,411,270,412,981,774,888,179],function(){return e(e.s=48312)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/dbgpt/app/static/_next/static/chunks/pages/knowledge-31f0efd3aa411670.js b/dbgpt/app/static/_next/static/chunks/pages/knowledge-31f0efd3aa411670.js new file mode 100644 index 000000000..161ba0876 --- /dev/null +++ b/dbgpt/app/static/_next/static/chunks/pages/knowledge-31f0efd3aa411670.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[265],{54681:function(e,a,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/knowledge",function(){return t(18671)}])},47207:function(e,a,t){"use strict";t.d(a,{Z:function(){return r}});var s=t(85893),l=t(27595),n=t(27329),i=t(68346);function r(e){let{type:a}=e;return"TEXT"===a?(0,s.jsx)(l.Z,{className:"text-[#2AA3FF] mr-2 !text-lg"}):"DOCUMENT"===a?(0,s.jsx)(n.Z,{className:"text-[#2AA3FF] mr-2 !text-lg"}):(0,s.jsx)(i.Z,{className:"text-[#2AA3FF] mr-2 !text-lg"})}},18671:function(e,a,t){"use strict";let s;t.r(a),t.d(a,{default:function(){return ex}});var l=t(85893),n=t(67294),i=t(24969),r=t(71577),c=t(12069),o=t(3363),d=t(46735),m=t(74627),u=t(40411),x=t(11163),p=t(25675),h=t.n(p),_=t(28058),j=t(31484),f=t(78346),g=t(83062),N=t(66309),b=t(85813),y=t(96074),Z=t(32983),v=t(42075),w=t(75081),k=t(31326),T=t(88008),P=t(27704),S=t(18754),C=t(50489),I=t(30381),D=t.n(I),E=t(59566),F=t(71230),A=t(15746),U=t(39479),O=t(44442),V=t(67421),M=t(31545),z=t(6321),R=t(90389);let{TextArea:q}=E.default;function L(e){let{space:a,argumentsShow:t,setArgumentsShow:s}=e,{t:i}=(0,V.$G)(),[o,d]=(0,n.useState)(),[m,u]=(0,n.useState)(!1),x=async()=>{let[e,t]=await (0,C.Vx)((0,C.Tu)(a.name));d(t)};(0,n.useEffect)(()=>{x()},[a.name]);let p=[{key:"Embedding",label:(0,l.jsxs)("div",{children:[(0,l.jsx)(M.Z,{}),i("Embedding")]}),children:(0,l.jsxs)(F.Z,{gutter:24,children:[(0,l.jsx)(A.Z,{span:12,offset:0,children:(0,l.jsx)(U.Z.Item,{tooltip:i("the_top_k_vectors"),rules:[{required:!0}],label:i("topk"),name:["embedding","topk"],children:(0,l.jsx)(E.default,{className:"mb-5 h-12"})})}),(0,l.jsx)(A.Z,{span:12,children:(0,l.jsx)(U.Z.Item,{tooltip:i("Set_a_threshold_score"),rules:[{required:!0}],label:i("recall_score"),name:["embedding","recall_score"],children:(0,l.jsx)(E.default,{className:"mb-5 h-12",placeholder:i("Please_input_the_owner")})})}),(0,l.jsx)(A.Z,{span:12,children:(0,l.jsx)(U.Z.Item,{tooltip:i("Recall_Type"),rules:[{required:!0}],label:i("recall_type"),name:["embedding","recall_type"],children:(0,l.jsx)(E.default,{className:"mb-5 h-12"})})}),(0,l.jsx)(A.Z,{span:12,children:(0,l.jsx)(U.Z.Item,{tooltip:i("A_model_used"),rules:[{required:!0}],label:i("model"),name:["embedding","model"],children:(0,l.jsx)(E.default,{className:"mb-5 h-12"})})}),(0,l.jsx)(A.Z,{span:12,children:(0,l.jsx)(U.Z.Item,{tooltip:i("The_size_of_the_data_chunks"),rules:[{required:!0}],label:i("chunk_size"),name:["embedding","chunk_size"],children:(0,l.jsx)(E.default,{className:"mb-5 h-12"})})}),(0,l.jsx)(A.Z,{span:12,children:(0,l.jsx)(U.Z.Item,{tooltip:i("The_amount_of_overlap"),rules:[{required:!0}],label:i("chunk_overlap"),name:["embedding","chunk_overlap"],children:(0,l.jsx)(E.default,{className:"mb-5 h-12",placeholder:i("Please_input_the_description")})})})]})},{key:"Prompt",label:(0,l.jsxs)("div",{children:[(0,l.jsx)(z.Z,{}),i("Prompt")]}),children:(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(U.Z.Item,{tooltip:i("A_contextual_parameter"),label:i("scene"),name:["prompt","scene"],children:(0,l.jsx)(q,{rows:4,className:"mb-2"})}),(0,l.jsx)(U.Z.Item,{tooltip:i("structure_or_format"),label:i("template"),name:["prompt","template"],children:(0,l.jsx)(q,{rows:7,className:"mb-2"})}),(0,l.jsx)(U.Z.Item,{tooltip:i("The_maximum_number_of_tokens"),label:i("max_token"),name:["prompt","max_token"],children:(0,l.jsx)(E.default,{className:"mb-2"})})]})},{key:"Summary",label:(0,l.jsxs)("div",{children:[(0,l.jsx)(R.Z,{}),i("Summary")]}),children:(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(U.Z.Item,{rules:[{required:!0}],label:i("max_iteration"),name:["summary","max_iteration"],children:(0,l.jsx)(E.default,{className:"mb-2"})}),(0,l.jsx)(U.Z.Item,{rules:[{required:!0}],label:i("concurrency_limit"),name:["summary","concurrency_limit"],children:(0,l.jsx)(E.default,{className:"mb-2"})})]})}],h=async e=>{u(!0);let[t,l,n]=await (0,C.Vx)((0,C.iH)(a.name,{argument:JSON.stringify(e)}));u(!1),(null==n?void 0:n.success)&&s(!1)};return(0,l.jsx)(c.default,{width:850,open:t,onCancel:()=>{s(!1)},footer:null,children:(0,l.jsx)(w.Z,{spinning:m,children:(0,l.jsxs)(U.Z,{size:"large",className:"mt-4",layout:"vertical",name:"basic",initialValues:{...o},autoComplete:"off",onFinish:h,children:[(0,l.jsx)(O.Z,{items:p}),(0,l.jsxs)("div",{className:"mt-3 mb-3",children:[(0,l.jsx)(r.ZP,{htmlType:"submit",type:"primary",className:"mr-6",children:i("Submit")}),(0,l.jsx)(r.ZP,{onClick:()=>{s(!1)},children:i("close")})]})]})})})}var G=t(47207);let{confirm:H}=c.default;function Y(e){let{space:a}=e,{t}=(0,V.$G)(),s=(0,x.useRouter)(),[c,o]=(0,n.useState)(!1),[d,m]=(0,n.useState)([]),[u,p]=(0,n.useState)(!1),[h,j]=(0,n.useState)(0),f=(0,n.useRef)(1),I=(0,n.useMemo)(()=>d.length{H({title:t("Tips"),icon:(0,l.jsx)(_.Z,{}),content:"".concat(t("Del_Document_Tips"),"?"),okText:"Yes",okType:"danger",cancelText:"No",async onOk(){await O(e)}})};async function F(){o(!0);let[e,t]=await (0,C.Vx)((0,C._Q)(a.name,{page:f.current,page_size:18}));m(null==t?void 0:t.data),j((null==t?void 0:t.total)||0),o(!1)}let A=async()=>{if(!I)return;o(!0),f.current+=1;let[e,t]=await (0,C.Vx)((0,C._Q)(a.name,{page:f.current,page_size:18}));m([...d,...t.data]),o(!1)},U=async(e,a)=>{await (0,C.Vx)((0,C.Hx)(e,{doc_ids:[a]}))},O=async t=>{await (0,C.Vx)((0,C.n3)(a.name,{doc_name:t.doc_name})),F(),e.onDeleteDoc()},M=()=>{e.onAddDoc(a.name)},z=(e,a)=>{let t;switch(e){case"TODO":t="gold";break;case"RUNNING":t="#2db7f5";break;case"FINISHED":t="#87d068";break;default:t="f50"}return(0,l.jsx)(g.Z,{title:a,children:(0,l.jsx)(N.Z,{color:t,children:e})})};return(0,n.useEffect)(()=>{F()},[a]),(0,l.jsxs)("div",{className:"collapse-container pt-2 px-4",children:[(0,l.jsxs)(v.Z,{children:[(0,l.jsx)(r.ZP,{size:"middle",type:"primary",className:"flex items-center",icon:(0,l.jsx)(i.Z,{}),onClick:M,children:t("Add_Datasource")}),(0,l.jsx)(r.ZP,{size:"middle",className:"flex items-center mx-2",icon:(0,l.jsx)(S.Z,{}),onClick:()=>{p(!0)},children:"Arguments"})]}),(0,l.jsx)(y.Z,{}),(0,l.jsx)(w.Z,{spinning:c,children:(null==d?void 0:d.length)>0?(0,l.jsxs)("div",{className:"max-h-96 overflow-auto max-w-3/4",children:[(0,l.jsx)("div",{className:"mt-3 grid grid-cols-1 gap-x-6 gap-y-5 sm:grid-cols-2 lg:grid-cols-3 xl:gap-x-5",children:d.map(e=>(0,l.jsxs)(b.Z,{className:" dark:bg-[#484848] relative shrink-0 grow-0 cursor-pointer rounded-[10px] border border-gray-200 border-solid w-full",title:(0,l.jsx)(g.Z,{title:e.doc_name,children:(0,l.jsxs)("div",{className:"truncate ",children:[(0,l.jsx)(G.Z,{type:e.doc_type}),(0,l.jsx)("span",{children:e.doc_name})]})}),extra:(0,l.jsxs)("div",{className:"mx-3",children:[(0,l.jsx)(g.Z,{title:"detail",children:(0,l.jsx)(k.Z,{className:"mr-2 !text-lg",style:{color:"#1b7eff",fontSize:"20px"},onClick:()=>{s.push("/knowledge/chunk/?spaceName=".concat(a.name,"&id=").concat(e.id))}})}),(0,l.jsx)(g.Z,{title:"Sync",children:(0,l.jsx)(T.Z,{className:"mr-2 !text-lg",style:{color:"#1b7eff",fontSize:"20px"},onClick:()=>{U(a.name,e.id)}})}),(0,l.jsx)(g.Z,{title:"Delete",children:(0,l.jsx)(P.Z,{className:"text-[#ff1b2e] !text-lg",onClick:()=>{E(e)}})})]}),children:[(0,l.jsxs)("p",{className:"mt-2 font-semibold ",children:[t("Size"),":"]}),(0,l.jsxs)("p",{children:[e.chunk_size," chunks"]}),(0,l.jsxs)("p",{className:"mt-2 font-semibold ",children:[t("Last_Sync"),":"]}),(0,l.jsx)("p",{children:D()(e.last_sync).format("YYYY-MM-DD HH:MM:SS")}),(0,l.jsx)("p",{className:"mt-2 mb-2",children:z(e.status,e.result)})]},e.id))}),I&&(0,l.jsx)(y.Z,{children:(0,l.jsx)("span",{className:"cursor-pointer",onClick:A,children:t("Load_More")})})]}):(0,l.jsx)(Z.Z,{image:Z.Z.PRESENTED_IMAGE_DEFAULT,children:(0,l.jsx)(r.ZP,{type:"primary",className:"flex items-center mx-auto",icon:(0,l.jsx)(i.Z,{}),onClick:M,children:"Create Now"})})}),(0,l.jsx)(L,{space:a,argumentsShow:u,setArgumentsShow:p})]})}var X=t(19284);let{confirm:$}=c.default;function K(e){var a;let t=(0,x.useRouter)(),{t:s}=(0,V.$G)(),{space:n,getSpaces:i}=e,c=()=>{$({title:s("Tips"),icon:(0,l.jsx)(_.Z,{}),content:"".concat(s("Del_Knowledge_Tips"),"?"),okText:"Yes",okType:"danger",cancelText:"No",async onOk(){await (0,C.Vx)((0,C.XK)({name:null==n?void 0:n.name})),i()}})},o=async e=>{e.stopPropagation();let[a,s]=await (0,C.Vx)((0,C.sW)({chat_mode:"chat_knowledge"}));(null==s?void 0:s.conv_uid)&&t.push("/chat?scene=chat_knowledge&id=".concat(null==s?void 0:s.conv_uid,"&db_param=").concat(n.name))};return(0,l.jsx)(d.ZP,{theme:{components:{Popover:{zIndexPopup:90}}},children:(0,l.jsx)(m.Z,{className:"dark:hover:border-white transition-all hover:shadow-md bg-[#FFFFFF] dark:bg-[#484848] cursor-pointer rounded-[10px] border border-gray-200 border-solid",placement:"bottom",trigger:"click",content:(0,l.jsx)(Y,{space:n,onAddDoc:e.onAddDoc,onDeleteDoc:function(){i()}}),children:(0,l.jsxs)(u.Z,{className:"mr-4 mb-4 min-w-[200px] sm:w-60 lg:w-72",count:n.docs||0,children:[(0,l.jsxs)("div",{className:"flex justify-between mx-6 mt-3",children:[(0,l.jsxs)("div",{className:"text-lg font-bold text-black truncate",children:[(a=n.vector_type,(0,l.jsx)(h(),{className:"rounded-full w-8 h-8 border border-gray-200 object-contain bg-white inline-block",width:36,height:136,src:X.l3[a]||"/models/knowledge-default.jpg",alt:"llm"})),(0,l.jsx)("span",{className:"dark:text-white ml-2",children:null==n?void 0:n.name})]}),(0,l.jsx)(j.Z,{onClick:e=>{e.stopPropagation(),e.nativeEvent.stopImmediatePropagation(),c()},twoToneColor:"#CD2029",className:"!text-2xl"})]}),(0,l.jsxs)("div",{className:"text-sm mt-2 p-6 pt-2 h-40",children:[(0,l.jsxs)("p",{className:"font-semibold",children:[s("Owner"),":"]}),(0,l.jsx)("p",{className:" truncate",children:null==n?void 0:n.owner}),(0,l.jsxs)("p",{className:"font-semibold mt-2",children:[s("Description"),":"]}),(0,l.jsx)("p",{className:" line-clamp-2",children:null==n?void 0:n.desc}),(0,l.jsx)("p",{className:"font-semibold mt-2",children:"Last modify:"}),(0,l.jsx)("p",{className:" truncate",children:D()(n.gmt_modified).format("YYYY-MM-DD HH:MM:SS")})]}),(0,l.jsx)("div",{className:"flex justify-center",children:(0,l.jsx)(r.ZP,{size:"middle",onClick:o,className:"mr-4 dark:text-white mb-2",shape:"round",icon:(0,l.jsx)(f.Z,{}),children:s("Chat")})})]})})})}var W=t(84553),B=t(2453),Q=t(64082);let{Dragger:J}=W.default,{TextArea:ee}=E.default;function ea(e){let{handleStepChange:a,spaceName:t,docType:s}=e,{t:i}=(0,V.$G)(),[c]=U.Z.useForm(),[o,d]=(0,n.useState)(!1),[m,u]=(0,n.useState)([]),x=async e=>{let l;let{docName:n,textSource:i,text:r,webPageUrl:c}=e;switch(d(!0),s){case"URL":[,l]=await (0,C.Vx)((0,C.H_)(t,{doc_name:n,content:c,doc_type:"URL"}));break;case"TEXT":[,l]=await (0,C.Vx)((0,C.H_)(t,{doc_name:n,source:i,content:r,doc_type:"TEXT"}))}return(d(!1),"DOCUMENT"===s&&m.length<1)?B.ZP.error("Upload failed, please re-upload."):"DOCUMENT"===s||l?void a({label:"forward",files:"DOCUMENT"===s?m:[{name:n,doc_id:l||-1}]}):B.ZP.error("Upload failed, please re-upload.")},p=e=>{let{file:a,fileList:t}=e;0===t.length&&c.setFieldValue("originFileObj",null)},h=async e=>{let{onSuccess:a,onError:s,file:l}=e,n=new FormData,i=null==l?void 0:l.name;n.append("doc_name",i),n.append("doc_file",l),n.append("doc_type","DOCUMENT");let[,r]=await (0,C.Vx)((0,C.iG)(t,n));Number.isInteger(r)?(a&&a(r||0),u(e=>(e.push({name:i,doc_id:r||-1}),e))):s&&s({name:"",message:""})},_=()=>(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(U.Z.Item,{label:"".concat(i("Name"),":"),name:"docName",rules:[{required:!0,message:i("Please_input_the_name")}],children:(0,l.jsx)(E.default,{className:"mb-5 h-12",placeholder:i("Please_input_the_name")})}),(0,l.jsx)(U.Z.Item,{label:"".concat(i("Text_Source"),":"),name:"textSource",rules:[{required:!0,message:i("Please_input_the_text_source")}],children:(0,l.jsx)(E.default,{className:"mb-5 h-12",placeholder:i("Please_input_the_text_source")})}),(0,l.jsx)(U.Z.Item,{label:"".concat(i("Text"),":"),name:"text",rules:[{required:!0,message:i("Please_input_the_description")}],children:(0,l.jsx)(ee,{rows:4})})]}),j=()=>(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(U.Z.Item,{label:"".concat(i("Name"),":"),name:"docName",rules:[{required:!0,message:i("Please_input_the_name")}],children:(0,l.jsx)(E.default,{className:"mb-5 h-12",placeholder:i("Please_input_the_name")})}),(0,l.jsx)(U.Z.Item,{label:"".concat(i("Web_Page_URL"),":"),name:"webPageUrl",rules:[{required:!0,message:i("Please_input_the_Web_Page_URL")}],children:(0,l.jsx)(E.default,{className:"mb-5 h-12",placeholder:i("Please_input_the_Web_Page_URL")})})]}),f=()=>(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(U.Z.Item,{name:"originFileObj",rules:[{required:!0,message:i("Please_select_file")}],children:(0,l.jsxs)(J,{multiple:!0,onChange:p,maxCount:10,accept:".pdf,.ppt,.pptx,.xls,.xlsx,.doc,.docx,.txt,.md",customRequest:h,children:[(0,l.jsx)("p",{className:"ant-upload-drag-icon",children:(0,l.jsx)(Q.Z,{})}),(0,l.jsx)("p",{style:{color:"rgb(22, 108, 255)",fontSize:"20px"},children:i("Select_or_Drop_file")}),(0,l.jsx)("p",{className:"ant-upload-hint",style:{color:"rgb(22, 108, 255)"},children:"PDF, PowerPoint, Excel, Word, Text, Markdown,"})]})})});return(0,l.jsx)(w.Z,{spinning:o,children:(0,l.jsxs)(U.Z,{form:c,size:"large",className:"mt-4",layout:"vertical",name:"basic",initialValues:{remember:!0},autoComplete:"off",onFinish:x,children:[(()=>{switch(s){case"URL":return j();case"DOCUMENT":return f();default:return _()}})(),(0,l.jsxs)(U.Z.Item,{children:[(0,l.jsx)(r.ZP,{onClick:()=>{a({label:"back"})},className:"mr-4",children:"".concat(i("Back"))}),(0,l.jsx)(r.ZP,{type:"primary",loading:o,htmlType:"submit",children:i("Next")})]})]})})}function et(e){let{t:a}=(0,V.$G)(),{handleStepChange:t}=e,[s,i]=(0,n.useState)(!1),c=async e=>{let{spaceName:a,owner:s,description:l}=e;i(!0);let[n,r,c]=await (0,C.Vx)((0,C.be)({name:a,vector_type:"Chroma",owner:s,desc:l}));i(!1),(null==c?void 0:c.success)&&t({label:"forward",spaceName:a})};return(0,l.jsx)(w.Z,{spinning:s,children:(0,l.jsxs)(U.Z,{size:"large",className:"mt-4",layout:"vertical",name:"basic",initialValues:{remember:!0},autoComplete:"off",onFinish:c,children:[(0,l.jsx)(U.Z.Item,{label:a("Knowledge_Space_Name"),name:"spaceName",rules:[{required:!0,message:a("Please_input_the_name")},()=>({validator:(e,t)=>/[^\u4e00-\u9fa50-9a-zA-Z_-]/.test(t)?Promise.reject(Error(a("the_name_can_only_contain"))):Promise.resolve()})],children:(0,l.jsx)(E.default,{className:"mb-5 h-12",placeholder:a("Please_input_the_name")})}),(0,l.jsx)(U.Z.Item,{label:a("Owner"),name:"owner",rules:[{required:!0,message:a("Please_input_the_owner")}],children:(0,l.jsx)(E.default,{className:"mb-5 h-12",placeholder:a("Please_input_the_owner")})}),(0,l.jsx)(U.Z.Item,{label:a("Description"),name:"description",rules:[{required:!0,message:a("Please_input_the_description")}],children:(0,l.jsx)(E.default,{className:"mb-5 h-12",placeholder:a("Please_input_the_description")})}),(0,l.jsx)(U.Z.Item,{children:(0,l.jsx)(r.ZP,{type:"primary",htmlType:"submit",children:a("Next")})})]})})}function es(e){let{t:a}=(0,V.$G)(),{handleStepChange:t}=e,s=[{type:"TEXT",title:a("Text"),subTitle:a("Fill your raw text"),iconType:"TEXT"},{type:"URL",title:a("URL"),subTitle:a("Fetch_the_content_of_a_URL"),iconType:"WEBPAGE"},{type:"DOCUMENT",title:a("Document"),subTitle:a("Upload_a_document"),iconType:"DOCUMENT"}];return(0,l.jsx)(l.Fragment,{children:s.map((e,a)=>(0,l.jsxs)(b.Z,{className:"mt-4 mb-4 cursor-pointer",onClick:()=>{t({label:"forward",docType:e.type})},children:[(0,l.jsxs)("div",{className:"font-semibold",children:[(0,l.jsx)(G.Z,{type:e.iconType}),e.title]}),(0,l.jsx)("div",{children:e.subTitle})]},a))})}var el=t(38925),en=t(47221),ei=t(16165),er=t(48928),ec=t(78045);let{TextArea:eo}=E.default;function ed(e){let{strategies:a,docType:t,fileName:s,field:i}=e,r="";if("DOCUMENT"===t){let e=s.split(".");r=e[e.length-1]}let c=r?a.filter(e=>e.suffix.indexOf(r)>-1):a,[o,d]=(0,n.useState)(),{t:m}=(0,V.$G)(),u={strategy:m("Automatic"),name:m("Automatic"),desc:m("Automatic_desc")};return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(U.Z.Item,{name:[i.name,"chunk_parameters","chunk_strategy"],initialValue:u.strategy,children:(0,l.jsxs)(ec.ZP.Group,{style:{marginTop:16},onChange:function(e){d(e.target.value)},children:[(0,l.jsx)(ec.ZP,{value:u.strategy,children:u.name}),c.map(e=>(0,l.jsx)(ec.ZP,{value:e.strategy,children:e.name},"strategy_radio_".concat(e.strategy)))]})}),function(){if(!o)return null;if(o===u.name)return(0,l.jsx)("p",{className:"my-4",children:u.desc});let e=null==c?void 0:c.filter(e=>e.strategy===o)[0].parameters;return e&&e.length?(0,l.jsx)("div",{className:"mt-2",children:null==e?void 0:e.map(e=>(0,l.jsx)(U.Z.Item,{label:"".concat(e.param_name,": ").concat(e.param_type),name:[i.name,"chunk_parameters",e.param_name],rules:[{required:!0,message:m("Please_input_the_name")}],initialValue:e.default_value,children:"int"===e.param_type?(0,l.jsx)(er.Z,{className:"w-full",min:1}):(0,l.jsx)(eo,{className:"w-full",rows:2,maxLength:6})},"param_".concat(e.param_name)))}):(0,l.jsx)(el.Z,{className:"my-2",type:"warning",message:m("No_parameter")})}()]})}var em=t(5455);function eu(e){let{spaceName:a,docType:t,uploadFiles:i,handleStepChange:c}=e,{t:o}=(0,V.$G)(),[d]=U.Z.useForm(),[m,u]=(0,n.useState)(i),[x,p]=(0,n.useState)(),[h,_]=(0,n.useState)([]),[j,f]=(0,n.useState)("");async function g(){var e;p(!0);let[,a]=await (0,C.Vx)((0,C.iZ)());p(!1),_(null===(e=a||[])||void 0===e?void 0:e.filter(e=>e.type.indexOf(t)>-1))}(0,n.useEffect)(()=>(g(),()=>{s&&clearInterval(s)}),[]);let N=async e=>{if(function(e){let a=!0;"RUNNING"===j&&(a=!1,B.ZP.warning("The task is still running, do not submit it again."));let{fileStrategies:t}=e;return t.map(e=>{var t;(null==e?void 0:null===(t=e.chunk_parameters)||void 0===t?void 0:t.chunk_strategy)||(B.ZP.error("Please select chunk strategy for ".concat(e.name,".")),a=!1)}),a}(e)){var t;p(!0);let[,l]=await (0,C.Vx)((0,C.KL)(a,e.fileStrategies));if(p(!1),(null==l?void 0:l.tasks)&&(null==l?void 0:null===(t=l.tasks)||void 0===t?void 0:t.length)>0){B.ZP.success("Segemation task start successfully. task id: ".concat(null==l?void 0:l.tasks.join(","))),f("RUNNING");let a=e.fileStrategies.map(e=>e.doc_id);s=setInterval(async()=>{let e=await b(a);"FINISHED"===e&&(clearInterval(s),f("FINISHED"),B.ZP.success("Congratulation, All files sync successfully."),c({label:"finish"}))},3e3)}}};async function b(e){let[,t]=await (0,C.Vx)((0,C._Q)(a,{doc_ids:e}));if((null==t?void 0:t.data)&&(null==t?void 0:t.data.length)>0){let e=[...m];if(null==t||t.data.map(a=>{var t;let s=null===(t=null==e?void 0:e.filter(e=>e.doc_id===a.id))||void 0===t?void 0:t[0];s&&(s.status=a.status)}),u(e),null==t?void 0:t.data.every(e=>"FINISHED"===e.status||"FAILED"===e.status))return"FINISHED"}}return(0,l.jsx)(w.Z,{spinning:x,children:(0,l.jsxs)(U.Z,{labelCol:{span:6},wrapperCol:{span:18},labelAlign:"right",form:d,size:"large",className:"mt-4",layout:"horizontal",name:"basic",autoComplete:"off",initialValues:{fileStrategies:m},onFinish:N,children:[h&&h.length?(0,l.jsx)(U.Z.List,{name:"fileStrategies",children:e=>{switch(t){case"TEXT":case"URL":return null==e?void 0:e.map(e=>(0,l.jsx)(ed,{strategies:h,docType:t,fileName:m[e.name].name,field:e}));case"DOCUMENT":return(0,l.jsx)(en.Z,{defaultActiveKey:0,size:m.length>5?"small":"middle",children:null==e?void 0:e.map(e=>(0,l.jsx)(en.Z.Panel,{header:"".concat(e.name+1,". ").concat(m[e.name].name),extra:function(e){let a=m[e].status;switch(a){case"FINISHED":return(0,l.jsx)(ei.Z,{component:em.qw});case"RUNNING":return(0,l.jsx)(ei.Z,{className:"rotate-animation",component:em.bn});case"FAILED":return(0,l.jsx)(ei.Z,{component:em.FE});default:return(0,l.jsx)(ei.Z,{component:em.tu})}}(e.name),children:(0,l.jsx)(ed,{strategies:h,docType:t,fileName:m[e.name].name,field:e})},e.key))})}}}):(0,l.jsx)(el.Z,{message:"Cannot find one strategy for ".concat(t," type knowledge."),type:"warning"}),(0,l.jsxs)(U.Z.Item,{className:"mt-4",children:[(0,l.jsx)(r.ZP,{onClick:()=>{c({label:"back"})},className:"mr-4",children:"".concat(o("Back"))}),(0,l.jsx)(r.ZP,{type:"primary",htmlType:"submit",loading:x||"RUNNING"===j,children:o("Process")})]})]})})}var ex=()=>{let[e,a]=(0,n.useState)([]),[t,s]=(0,n.useState)(!1),[d,m]=(0,n.useState)(0),[u,x]=(0,n.useState)(""),[p,h]=(0,n.useState)([]),[_,j]=(0,n.useState)(""),{t:f}=(0,V.$G)(),g=[{title:f("Knowledge_Space_Config")},{title:f("Choose_a_Datasource_type")},{title:f("Upload")},{title:f("Segmentation")}];async function N(){let[e,t]=await (0,C.Vx)((0,C.Vm)());a(t)}(0,n.useEffect)(()=>{N()},[]);let b=e=>{let{label:a,spaceName:t,docType:l,files:n}=e;"finish"===a?(s(!1),N(),x(""),j(""),N()):"forward"===a?(0===d&&N(),m(e=>e+1)):m(e=>e-1),n&&h(n),t&&x(t),l&&j(l)};function y(e){x(e),m(1),s(!0)}return(0,l.jsxs)("div",{className:"bg-[#FAFAFA] dark:bg-[#212121] w-full h-full",children:[(0,l.jsxs)("div",{className:"page-body p-4 md:p-6 h-full overflow-auto",children:[(0,l.jsx)(r.ZP,{type:"primary",className:"flex items-center",icon:(0,l.jsx)(i.Z,{}),onClick:()=>{s(!0)},children:"Create"}),(0,l.jsx)("div",{className:"flex flex-wrap mt-4",children:null==e?void 0:e.map(e=>(0,l.jsx)(K,{space:e,onAddDoc:y,getSpaces:N},e.id))})]}),(0,l.jsxs)(c.default,{title:"Add Knowledge",centered:!0,open:t,destroyOnClose:!0,onCancel:()=>{s(!1)},width:1e3,afterClose:()=>{m(0),N()},footer:null,children:[(0,l.jsx)(o.Z,{current:d,items:g}),0===d&&(0,l.jsx)(et,{handleStepChange:b}),1===d&&(0,l.jsx)(es,{handleStepChange:b}),2===d&&(0,l.jsx)(ea,{spaceName:u,docType:_,handleStepChange:b}),3===d&&(0,l.jsx)(eu,{spaceName:u,docType:_,uploadFiles:p,handleStepChange:b})]})]})}}},function(e){e.O(0,[885,113,17,479,442,553,813,411,45,928,234,450,774,888,179],function(){return e(e.s=54681)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/dbgpt/app/static/_next/static/chunks/pages/knowledge-5a76e9de10a11fee.js b/dbgpt/app/static/_next/static/chunks/pages/knowledge-5a76e9de10a11fee.js deleted file mode 100644 index 73a614bb3..000000000 --- a/dbgpt/app/static/_next/static/chunks/pages/knowledge-5a76e9de10a11fee.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[265],{54681:function(e,a,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/knowledge",function(){return t(18671)}])},47207:function(e,a,t){"use strict";t.d(a,{Z:function(){return r}});var s=t(85893),l=t(27595),n=t(27329),i=t(68346);function r(e){let{type:a}=e;return"TEXT"===a?(0,s.jsx)(l.Z,{className:"text-[#2AA3FF] mr-2 !text-lg"}):"DOCUMENT"===a?(0,s.jsx)(n.Z,{className:"text-[#2AA3FF] mr-2 !text-lg"}):(0,s.jsx)(i.Z,{className:"text-[#2AA3FF] mr-2 !text-lg"})}},18671:function(e,a,t){"use strict";t.r(a),t.d(a,{default:function(){return eu}});var s=t(85893),l=t(67294),n=t(24969),i=t(71577),r=t(12069),c=t(3363),o=t(46735),d=t(74627),m=t(40411),u=t(11163),x=t(25675),p=t.n(x),h=t(28058),_=t(31484),j=t(78346),f=t(83062),g=t(66309),N=t(85813),b=t(96074),y=t(32983),Z=t(42075),v=t(75081),w=t(31326),k=t(88008),T=t(27704),P=t(18754),S=t(50489),C=t(30381),I=t.n(C),D=t(59566),E=t(71230),F=t(15746),A=t(39479),U=t(44442),O=t(67421),V=t(31545),M=t(6321),z=t(90389);let{TextArea:R}=D.default;function q(e){let{space:a,argumentsShow:t,setArgumentsShow:n}=e,{t:c}=(0,O.$G)(),[o,d]=(0,l.useState)(),[m,u]=(0,l.useState)(!1),x=async()=>{let[e,t]=await (0,S.Vx)((0,S.Tu)(a.name));d(t)};(0,l.useEffect)(()=>{x()},[a.name]);let p=[{key:"Embedding",label:(0,s.jsxs)("div",{children:[(0,s.jsx)(V.Z,{}),c("Embedding")]}),children:(0,s.jsxs)(E.Z,{gutter:24,children:[(0,s.jsx)(F.Z,{span:12,offset:0,children:(0,s.jsx)(A.Z.Item,{tooltip:c("the_top_k_vectors"),rules:[{required:!0}],label:c("topk"),name:["embedding","topk"],children:(0,s.jsx)(D.default,{className:"mb-5 h-12"})})}),(0,s.jsx)(F.Z,{span:12,children:(0,s.jsx)(A.Z.Item,{tooltip:c("Set_a_threshold_score"),rules:[{required:!0}],label:c("recall_score"),name:["embedding","recall_score"],children:(0,s.jsx)(D.default,{className:"mb-5 h-12",placeholder:c("Please_input_the_owner")})})}),(0,s.jsx)(F.Z,{span:12,children:(0,s.jsx)(A.Z.Item,{tooltip:c("Recall_Type"),rules:[{required:!0}],label:c("recall_type"),name:["embedding","recall_type"],children:(0,s.jsx)(D.default,{className:"mb-5 h-12"})})}),(0,s.jsx)(F.Z,{span:12,children:(0,s.jsx)(A.Z.Item,{tooltip:c("A_model_used"),rules:[{required:!0}],label:c("model"),name:["embedding","model"],children:(0,s.jsx)(D.default,{className:"mb-5 h-12"})})}),(0,s.jsx)(F.Z,{span:12,children:(0,s.jsx)(A.Z.Item,{tooltip:c("The_size_of_the_data_chunks"),rules:[{required:!0}],label:c("chunk_size"),name:["embedding","chunk_size"],children:(0,s.jsx)(D.default,{className:"mb-5 h-12"})})}),(0,s.jsx)(F.Z,{span:12,children:(0,s.jsx)(A.Z.Item,{tooltip:c("The_amount_of_overlap"),rules:[{required:!0}],label:c("chunk_overlap"),name:["embedding","chunk_overlap"],children:(0,s.jsx)(D.default,{className:"mb-5 h-12",placeholder:c("Please_input_the_description")})})})]})},{key:"Prompt",label:(0,s.jsxs)("div",{children:[(0,s.jsx)(M.Z,{}),c("Prompt")]}),children:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(A.Z.Item,{tooltip:c("A_contextual_parameter"),label:c("scene"),name:["prompt","scene"],children:(0,s.jsx)(R,{rows:4,className:"mb-2"})}),(0,s.jsx)(A.Z.Item,{tooltip:c("structure_or_format"),label:c("template"),name:["prompt","template"],children:(0,s.jsx)(R,{rows:7,className:"mb-2"})}),(0,s.jsx)(A.Z.Item,{tooltip:c("The_maximum_number_of_tokens"),label:c("max_token"),name:["prompt","max_token"],children:(0,s.jsx)(D.default,{className:"mb-2"})})]})},{key:"Summary",label:(0,s.jsxs)("div",{children:[(0,s.jsx)(z.Z,{}),c("Summary")]}),children:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(A.Z.Item,{rules:[{required:!0}],label:c("max_iteration"),name:["summary","max_iteration"],children:(0,s.jsx)(D.default,{className:"mb-2"})}),(0,s.jsx)(A.Z.Item,{rules:[{required:!0}],label:c("concurrency_limit"),name:["summary","concurrency_limit"],children:(0,s.jsx)(D.default,{className:"mb-2"})})]})}],h=async e=>{u(!0);let[t,s,l]=await (0,S.Vx)((0,S.iH)(a.name,{argument:JSON.stringify(e)}));u(!1),(null==l?void 0:l.success)&&n(!1)};return(0,s.jsx)(r.default,{width:850,open:t,onCancel:()=>{n(!1)},footer:null,children:(0,s.jsx)(v.Z,{spinning:m,children:(0,s.jsxs)(A.Z,{size:"large",className:"mt-4",layout:"vertical",name:"basic",initialValues:{...o},autoComplete:"off",onFinish:h,children:[(0,s.jsx)(U.Z,{items:p}),(0,s.jsxs)("div",{className:"mt-3 mb-3",children:[(0,s.jsx)(i.ZP,{htmlType:"submit",type:"primary",className:"mr-6",children:c("Submit")}),(0,s.jsx)(i.ZP,{onClick:()=>{n(!1)},children:c("close")})]})]})})})}var G=t(47207);let{confirm:L}=r.default;function H(e){let{space:a}=e,{t}=(0,O.$G)(),r=(0,u.useRouter)(),[c,o]=(0,l.useState)(!1),[d,m]=(0,l.useState)([]),[x,p]=(0,l.useState)(!1),[_,j]=(0,l.useState)(0),C=(0,l.useRef)(1),D=(0,l.useMemo)(()=>d.length<_,[d.length,_]),E=e=>{L({title:t("Tips"),icon:(0,s.jsx)(h.Z,{}),content:"".concat(t("Del_Document_Tips"),"?"),okText:"Yes",okType:"danger",cancelText:"No",async onOk(){await V(e)}})};async function F(){o(!0);let[e,t]=await (0,S.Vx)((0,S._Q)(a.name,{page:C.current,page_size:18}));m(null==t?void 0:t.data),j((null==t?void 0:t.total)||0),o(!1)}let A=async()=>{if(!D)return;o(!0),C.current+=1;let[e,t]=await (0,S.Vx)((0,S._Q)(a.name,{page:C.current,page_size:18}));m([...d,...t.data]),o(!1)},U=async(e,a)=>{await (0,S.Vx)((0,S.Hx)(e,{doc_ids:[a]}))},V=async t=>{await (0,S.Vx)((0,S.n3)(a.name,{doc_name:t.doc_name})),F(),e.onDeleteDoc()},M=()=>{e.onAddDoc(a.name)},z=(e,a)=>{let t;switch(e){case"TODO":t="gold";break;case"RUNNING":t="#2db7f5";break;case"FINISHED":t="#87d068";break;default:t="f50"}return(0,s.jsx)(f.Z,{title:a,children:(0,s.jsx)(g.Z,{color:t,children:e})})};return(0,l.useEffect)(()=>{F()},[a]),(0,s.jsxs)("div",{className:"collapse-container pt-2 px-4",children:[(0,s.jsxs)(Z.Z,{children:[(0,s.jsx)(i.ZP,{size:"middle",type:"primary",className:"flex items-center",icon:(0,s.jsx)(n.Z,{}),onClick:M,children:t("Add_Datasource")}),(0,s.jsx)(i.ZP,{size:"middle",className:"flex items-center mx-2",icon:(0,s.jsx)(P.Z,{}),onClick:()=>{p(!0)},children:"Arguments"})]}),(0,s.jsx)(b.Z,{}),(0,s.jsx)(v.Z,{spinning:c,children:(null==d?void 0:d.length)>0?(0,s.jsxs)("div",{className:"max-h-96 overflow-auto max-w-3/4",children:[(0,s.jsx)("div",{className:"mt-3 grid grid-cols-1 gap-x-6 gap-y-5 sm:grid-cols-2 lg:grid-cols-3 xl:gap-x-5",children:d.map(e=>(0,s.jsxs)(N.Z,{className:" dark:bg-[#484848] relative shrink-0 grow-0 cursor-pointer rounded-[10px] border border-gray-200 border-solid w-full",title:(0,s.jsx)(f.Z,{title:e.doc_name,children:(0,s.jsxs)("div",{className:"truncate ",children:[(0,s.jsx)(G.Z,{type:e.doc_type}),(0,s.jsx)("span",{children:e.doc_name})]})}),extra:(0,s.jsxs)("div",{className:"mx-3",children:[(0,s.jsx)(f.Z,{title:"detail",children:(0,s.jsx)(w.Z,{className:"mr-2 !text-lg",style:{color:"#1b7eff",fontSize:"20px"},onClick:()=>{r.push("/knowledge/chunk/?spaceName=".concat(a.name,"&id=").concat(e.id))}})}),(0,s.jsx)(f.Z,{title:"Sync",children:(0,s.jsx)(k.Z,{className:"mr-2 !text-lg",style:{color:"#1b7eff",fontSize:"20px"},onClick:()=>{U(a.name,e.id)}})}),(0,s.jsx)(f.Z,{title:"Delete",children:(0,s.jsx)(T.Z,{className:"text-[#ff1b2e] !text-lg",onClick:()=>{E(e)}})})]}),children:[(0,s.jsxs)("p",{className:"mt-2 font-semibold ",children:[t("Size"),":"]}),(0,s.jsxs)("p",{children:[e.chunk_size," chunks"]}),(0,s.jsxs)("p",{className:"mt-2 font-semibold ",children:[t("Last_Sync"),":"]}),(0,s.jsx)("p",{children:I()(e.last_sync).format("YYYY-MM-DD HH:MM:SS")}),(0,s.jsx)("p",{className:"mt-2 mb-2",children:z(e.status,e.result)})]},e.id))}),D&&(0,s.jsx)(b.Z,{children:(0,s.jsx)("span",{className:"cursor-pointer",onClick:A,children:t("Load_More")})})]}):(0,s.jsx)(y.Z,{image:y.Z.PRESENTED_IMAGE_DEFAULT,children:(0,s.jsx)(i.ZP,{type:"primary",className:"flex items-center mx-auto",icon:(0,s.jsx)(n.Z,{}),onClick:M,children:"Create Now"})})}),(0,s.jsx)(q,{space:a,argumentsShow:x,setArgumentsShow:p})]})}var Y=t(19284);let{confirm:X}=r.default;function $(e){var a;let t=(0,u.useRouter)(),{t:l}=(0,O.$G)(),{space:n,getSpaces:r}=e,c=()=>{X({title:l("Tips"),icon:(0,s.jsx)(h.Z,{}),content:"".concat(l("Del_Knowledge_Tips"),"?"),okText:"Yes",okType:"danger",cancelText:"No",async onOk(){await (0,S.Vx)((0,S.XK)({name:null==n?void 0:n.name})),r()}})},x=async e=>{e.stopPropagation();let[a,s]=await (0,S.Vx)((0,S.sW)({chat_mode:"chat_knowledge"}));(null==s?void 0:s.conv_uid)&&t.push("/chat?scene=chat_knowledge&id=".concat(null==s?void 0:s.conv_uid,"&db_param=").concat(n.name))};return(0,s.jsx)(o.ZP,{theme:{components:{Popover:{zIndexPopup:90}}},children:(0,s.jsx)(d.Z,{className:"dark:hover:border-white transition-all hover:shadow-md bg-[#FFFFFF] dark:bg-[#484848] cursor-pointer rounded-[10px] border border-gray-200 border-solid",placement:"bottom",trigger:"click",content:(0,s.jsx)(H,{space:n,onAddDoc:e.onAddDoc,onDeleteDoc:function(){r()}}),children:(0,s.jsxs)(m.Z,{className:"mr-4 mb-4 min-w-[200px] sm:w-60 lg:w-72",count:n.docs||0,children:[(0,s.jsxs)("div",{className:"flex justify-between mx-6 mt-3",children:[(0,s.jsxs)("div",{className:"text-lg font-bold text-black truncate",children:[(a=n.vector_type,(0,s.jsx)(p(),{className:"rounded-full w-8 h-8 border border-gray-200 object-contain bg-white inline-block",width:36,height:136,src:Y.l3[a]||"/models/knowledge-default.jpg",alt:"llm"})),(0,s.jsx)("span",{className:"dark:text-white ml-2",children:null==n?void 0:n.name})]}),(0,s.jsx)(_.Z,{onClick:e=>{e.stopPropagation(),e.nativeEvent.stopImmediatePropagation(),c()},twoToneColor:"#CD2029",className:"!text-2xl"})]}),(0,s.jsxs)("div",{className:"text-sm mt-2 p-6 pt-2 h-40",children:[(0,s.jsxs)("p",{className:"font-semibold",children:[l("Owner"),":"]}),(0,s.jsx)("p",{className:" truncate",children:null==n?void 0:n.owner}),(0,s.jsxs)("p",{className:"font-semibold mt-2",children:[l("Description"),":"]}),(0,s.jsx)("p",{className:" line-clamp-2",children:null==n?void 0:n.desc}),(0,s.jsx)("p",{className:"font-semibold mt-2",children:"Last modify:"}),(0,s.jsx)("p",{className:" truncate",children:I()(n.gmt_modified).format("YYYY-MM-DD HH:MM:SS")})]}),(0,s.jsx)("div",{className:"flex justify-center",children:(0,s.jsx)(i.ZP,{size:"middle",onClick:x,className:"mr-4 dark:text-white mb-2",shape:"round",icon:(0,s.jsx)(j.Z,{}),children:l("Chat")})})]})})})}var K=t(84553),W=t(2453),B=t(64082);let{Dragger:Q}=K.default,{TextArea:J}=D.default;function ee(e){let{handleStepChange:a,spaceName:t,docType:n}=e,{t:r}=(0,O.$G)(),[c]=A.Z.useForm(),[o,d]=(0,l.useState)(!1),[m,u]=(0,l.useState)([]),x=async e=>{let s;let{docName:l,textSource:i,text:r,webPageUrl:c}=e;switch(d(!0),n){case"URL":[,s]=await (0,S.Vx)((0,S.H_)(t,{doc_name:l,content:c,doc_type:"URL"}));break;case"TEXT":[,s]=await (0,S.Vx)((0,S.H_)(t,{doc_name:l,source:i,content:r,doc_type:"TEXT"}))}return(d(!1),"DOCUMENT"===n&&m.length<1)?W.ZP.error("Upload failed, please re-upload."):"DOCUMENT"===n||s?void a({label:"forward",files:"DOCUMENT"===n?m:[{name:l,doc_id:s||-1}]}):W.ZP.error("Upload failed, please re-upload.")},p=e=>{let{file:a,fileList:t}=e;0===t.length&&c.setFieldValue("originFileObj",null)},h=async e=>{let{onSuccess:a,onError:s,file:l}=e,n=new FormData,i=null==l?void 0:l.name;n.append("doc_name",i),n.append("doc_file",l),n.append("doc_type","DOCUMENT");let[,r]=await (0,S.Vx)((0,S.iG)(t,n));Number.isInteger(r)?(a&&a(r||0),u(e=>(e.push({name:i,doc_id:r||-1}),e))):s&&s({name:"",message:""})},_=()=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(A.Z.Item,{label:"".concat(r("Name"),":"),name:"docName",rules:[{required:!0,message:r("Please_input_the_name")}],children:(0,s.jsx)(D.default,{className:"mb-5 h-12",placeholder:r("Please_input_the_name")})}),(0,s.jsx)(A.Z.Item,{label:"".concat(r("Text_Source"),":"),name:"textSource",rules:[{required:!0,message:r("Please_input_the_text_source")}],children:(0,s.jsx)(D.default,{className:"mb-5 h-12",placeholder:r("Please_input_the_text_source")})}),(0,s.jsx)(A.Z.Item,{label:"".concat(r("Text"),":"),name:"text",rules:[{required:!0,message:r("Please_input_the_description")}],children:(0,s.jsx)(J,{rows:4})})]}),j=()=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(A.Z.Item,{label:"".concat(r("Name"),":"),name:"docName",rules:[{required:!0,message:r("Please_input_the_name")}],children:(0,s.jsx)(D.default,{className:"mb-5 h-12",placeholder:r("Please_input_the_name")})}),(0,s.jsx)(A.Z.Item,{label:"".concat(r("Web_Page_URL"),":"),name:"webPageUrl",rules:[{required:!0,message:r("Please_input_the_Web_Page_URL")}],children:(0,s.jsx)(D.default,{className:"mb-5 h-12",placeholder:r("Please_input_the_Web_Page_URL")})})]}),f=()=>(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(A.Z.Item,{name:"originFileObj",rules:[{required:!0,message:r("Please_select_file")}],children:(0,s.jsxs)(Q,{multiple:!0,onChange:p,maxCount:10,accept:".pdf,.ppt,.pptx,.xls,.xlsx,.doc,.docx,.txt,.md",customRequest:h,children:[(0,s.jsx)("p",{className:"ant-upload-drag-icon",children:(0,s.jsx)(B.Z,{})}),(0,s.jsx)("p",{style:{color:"rgb(22, 108, 255)",fontSize:"20px"},children:r("Select_or_Drop_file")}),(0,s.jsx)("p",{className:"ant-upload-hint",style:{color:"rgb(22, 108, 255)"},children:"PDF, PowerPoint, Excel, Word, Text, Markdown,"})]})})});return(0,s.jsx)(v.Z,{spinning:o,children:(0,s.jsxs)(A.Z,{form:c,size:"large",className:"mt-4",layout:"vertical",name:"basic",initialValues:{remember:!0},autoComplete:"off",onFinish:x,children:[(()=>{switch(n){case"URL":return j();case"DOCUMENT":return f();default:return _()}})(),(0,s.jsxs)(A.Z.Item,{children:[(0,s.jsx)(i.ZP,{onClick:()=>{a({label:"back"})},className:"mr-4",children:"".concat(r("Back"))}),(0,s.jsx)(i.ZP,{type:"primary",loading:o,htmlType:"submit",children:r("Next")})]})]})})}function ea(e){let{t:a}=(0,O.$G)(),{handleStepChange:t}=e,[n,r]=(0,l.useState)(!1),c=async e=>{let{spaceName:a,owner:s,description:l}=e;r(!0);let[n,i,c]=await (0,S.Vx)((0,S.be)({name:a,vector_type:"Chroma",owner:s,desc:l}));r(!1),(null==c?void 0:c.success)&&t({label:"forward",spaceName:a})};return(0,s.jsx)(v.Z,{spinning:n,children:(0,s.jsxs)(A.Z,{size:"large",className:"mt-4",layout:"vertical",name:"basic",initialValues:{remember:!0},autoComplete:"off",onFinish:c,children:[(0,s.jsx)(A.Z.Item,{label:a("Knowledge_Space_Name"),name:"spaceName",rules:[{required:!0,message:a("Please_input_the_name")},()=>({validator:(e,t)=>/[^\u4e00-\u9fa50-9a-zA-Z_-]/.test(t)?Promise.reject(Error(a("the_name_can_only_contain"))):Promise.resolve()})],children:(0,s.jsx)(D.default,{className:"mb-5 h-12",placeholder:a("Please_input_the_name")})}),(0,s.jsx)(A.Z.Item,{label:a("Owner"),name:"owner",rules:[{required:!0,message:a("Please_input_the_owner")}],children:(0,s.jsx)(D.default,{className:"mb-5 h-12",placeholder:a("Please_input_the_owner")})}),(0,s.jsx)(A.Z.Item,{label:a("Description"),name:"description",rules:[{required:!0,message:a("Please_input_the_description")}],children:(0,s.jsx)(D.default,{className:"mb-5 h-12",placeholder:a("Please_input_the_description")})}),(0,s.jsx)(A.Z.Item,{children:(0,s.jsx)(i.ZP,{type:"primary",htmlType:"submit",children:a("Next")})})]})})}function et(e){let{t:a}=(0,O.$G)(),{handleStepChange:t}=e,l=[{type:"TEXT",title:a("Text"),subTitle:a("Fill your raw text"),iconType:"TEXT"},{type:"URL",title:a("URL"),subTitle:a("Fetch_the_content_of_a_URL"),iconType:"WEBPAGE"},{type:"DOCUMENT",title:a("Document"),subTitle:a("Upload_a_document"),iconType:"DOCUMENT"}];return(0,s.jsx)(s.Fragment,{children:l.map((e,a)=>(0,s.jsxs)(N.Z,{className:"mt-4 mb-4 cursor-pointer",onClick:()=>{t({label:"forward",docType:e.type})},children:[(0,s.jsxs)("div",{className:"font-semibold",children:[(0,s.jsx)(G.Z,{type:e.iconType}),e.title]}),(0,s.jsx)("div",{children:e.subTitle})]},a))})}var es=t(38925),el=t(47221),en=t(16165),ei=t(48928),er=t(78045);let{TextArea:ec}=D.default;function eo(e){let{strategies:a,docType:t,fileName:n,field:i}=e,r="";if("DOCUMENT"===t){let e=n.split(".");r=e[e.length-1]}let c=r?a.filter(e=>e.suffix.indexOf(r)>-1):a,[o,d]=(0,l.useState)(),{t:m}=(0,O.$G)(),u={strategy:m("Automatic"),name:m("Automatic"),desc:m("Automatic_desc")};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(A.Z.Item,{name:[i.name,"chunk_parameters","chunk_strategy"],initialValue:u.strategy,children:(0,s.jsxs)(er.ZP.Group,{style:{marginTop:16},onChange:function(e){d(e.target.value)},children:[(0,s.jsx)(er.ZP,{value:u.strategy,children:u.name}),c.map(e=>(0,s.jsx)(er.ZP,{value:e.strategy,children:e.name},"strategy_radio_".concat(e.strategy)))]})}),function(){if(!o)return null;if(o===u.name)return(0,s.jsx)("p",{className:"my-4",children:u.desc});let e=null==c?void 0:c.filter(e=>e.strategy===o)[0].parameters;return e&&e.length?(0,s.jsx)("div",{className:"mt-2",children:null==e?void 0:e.map(e=>(0,s.jsx)(A.Z.Item,{label:"".concat(e.param_name,": ").concat(e.param_type),name:[i.name,"chunk_parameters",e.param_name],rules:[{required:!0,message:m("Please_input_the_name")}],initialValue:e.default_value,children:"int"===e.param_type?(0,s.jsx)(ei.Z,{className:"w-full",min:1}):(0,s.jsx)(ec,{className:"w-full",rows:2,maxLength:6})},"param_".concat(e.param_name)))}):(0,s.jsx)(es.Z,{className:"my-2",type:"warning",message:m("No_parameter")})}()]})}var ed=t(5455);function em(e){let{spaceName:a,docType:t,uploadFiles:n,handleStepChange:r}=e,{t:c}=(0,O.$G)(),[o]=A.Z.useForm(),[d,m]=(0,l.useState)(n),[u,x]=(0,l.useState)(),[p,h]=(0,l.useState)([]),[_,j]=(0,l.useState)("");async function f(){var e;x(!0);let[,a]=await (0,S.Vx)((0,S.iZ)());x(!1),h(null===(e=a||[])||void 0===e?void 0:e.filter(e=>e.type.indexOf(t)>-1))}(0,l.useEffect)(()=>{f()},[]);let g=async e=>{if(function(e){let a=!0;"RUNNING"===_&&(a=!1,W.ZP.warning("The task is still running, do not submit it again."));let{fileStrategies:t}=e;return t.map(e=>{var t;(null==e?void 0:null===(t=e.chunk_parameters)||void 0===t?void 0:t.chunk_strategy)||(W.ZP.error("Please select chunk strategy for ".concat(e.name,".")),a=!1)}),a}(e)){var t;x(!0);let[,s]=await (0,S.Vx)((0,S.KL)(a,e.fileStrategies));if(x(!1),(null==s?void 0:s.tasks)&&(null==s?void 0:null===(t=s.tasks)||void 0===t?void 0:t.length)>0){W.ZP.success("Segemation task start successfully. task id: ".concat(null==s?void 0:s.tasks.join(","))),j("RUNNING");let a=e.fileStrategies.map(e=>e.doc_id),t=setInterval(async()=>{let e=await N(a);"FINISHED"===e&&(clearInterval(t),j("FINISHED"),W.ZP.success("Congratulation, All files sync successfully."),r({label:"finish"}))},3e3)}}};async function N(e){let[,t]=await (0,S.Vx)((0,S._Q)(a,{doc_ids:e}));if((null==t?void 0:t.data)&&(null==t?void 0:t.data.length)>0){let e=[...d];if(null==t||t.data.map(a=>{var t;let s=null===(t=null==e?void 0:e.filter(e=>e.doc_id===a.id))||void 0===t?void 0:t[0];s&&(s.status=a.status)}),m(e),null==t?void 0:t.data.every(e=>"FINISHED"===e.status))return"FINISHED"}}return(0,s.jsx)(v.Z,{spinning:u,children:(0,s.jsxs)(A.Z,{labelCol:{span:6},wrapperCol:{span:18},labelAlign:"right",form:o,size:"large",className:"mt-4",layout:"horizontal",name:"basic",autoComplete:"off",initialValues:{fileStrategies:d},onFinish:g,children:[p&&p.length?(0,s.jsx)(A.Z.List,{name:"fileStrategies",children:e=>{switch(t){case"TEXT":case"URL":return null==e?void 0:e.map(e=>(0,s.jsx)(eo,{strategies:p,docType:t,fileName:d[e.name].name,field:e}));case"DOCUMENT":return(0,s.jsx)(el.Z,{defaultActiveKey:0,size:d.length>5?"small":"middle",children:null==e?void 0:e.map(e=>(0,s.jsx)(el.Z.Panel,{header:"".concat(e.name+1,". ").concat(d[e.name].name),extra:function(e){let a=d[e].status;switch(a){case"FINISHED":return(0,s.jsx)(en.Z,{component:ed.qw});case"RUNNING":return(0,s.jsx)(en.Z,{className:"rotate-animation",component:ed.bn});default:return(0,s.jsx)(en.Z,{component:ed.tu})}}(e.name),children:(0,s.jsx)(eo,{strategies:p,docType:t,fileName:d[e.name].name,field:e})},e.key))})}}}):(0,s.jsx)(es.Z,{message:"Cannot find one strategy for ".concat(t," type knowledge."),type:"warning"}),(0,s.jsxs)(A.Z.Item,{className:"mt-4",children:[(0,s.jsx)(i.ZP,{onClick:()=>{r({label:"back"})},className:"mr-4",children:"".concat(c("Back"))}),(0,s.jsx)(i.ZP,{type:"primary",htmlType:"submit",loading:u||"RUNNING"===_,children:c("Process")})]})]})})}var eu=()=>{let[e,a]=(0,l.useState)([]),[t,o]=(0,l.useState)(!1),[d,m]=(0,l.useState)(0),[u,x]=(0,l.useState)(""),[p,h]=(0,l.useState)([]),[_,j]=(0,l.useState)(""),{t:f}=(0,O.$G)(),g=[{title:f("Knowledge_Space_Config")},{title:f("Choose_a_Datasource_type")},{title:f("Upload")},{title:f("Segmentation")}];async function N(){let[e,t]=await (0,S.Vx)((0,S.Vm)());a(t)}(0,l.useEffect)(()=>{N()},[]);let b=e=>{let{label:a,spaceName:t,docType:s,files:l}=e;"finish"===a?(o(!1),N(),x(""),j(""),N()):"forward"===a?(0===d&&N(),m(e=>e+1)):m(e=>e-1),l&&h(l),t&&x(t),s&&j(s)};function y(e){x(e),m(1),o(!0)}return(0,s.jsxs)("div",{className:"bg-[#FAFAFA] dark:bg-[#212121] w-full h-full",children:[(0,s.jsxs)("div",{className:"page-body p-4 md:p-6 h-full overflow-auto",children:[(0,s.jsx)(i.ZP,{type:"primary",className:"flex items-center",icon:(0,s.jsx)(n.Z,{}),onClick:()=>{o(!0)},children:"Create"}),(0,s.jsx)("div",{className:"flex flex-wrap mt-4",children:null==e?void 0:e.map(e=>(0,s.jsx)($,{space:e,onAddDoc:y,getSpaces:N},e.id))})]}),(0,s.jsxs)(r.default,{title:"Add Knowledge",centered:!0,open:t,destroyOnClose:!0,onCancel:()=>{o(!1)},width:1e3,afterClose:()=>{m(0)},footer:null,children:[(0,s.jsx)(c.Z,{current:d,items:g}),0===d&&(0,s.jsx)(ea,{handleStepChange:b}),1===d&&(0,s.jsx)(et,{handleStepChange:b}),2===d&&(0,s.jsx)(ee,{spaceName:u,docType:_,handleStepChange:b}),3===d&&(0,s.jsx)(em,{spaceName:u,docType:_,uploadFiles:p,handleStepChange:b})]})]})}}},function(e){e.O(0,[885,64,479,442,553,813,924,411,45,928,464,774,888,179],function(){return e(e.s=54681)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/dbgpt/app/static/_next/static/chunks/pages/knowledge/chunk-652744b9d90c26c9.js b/dbgpt/app/static/_next/static/chunks/pages/knowledge/chunk-652744b9d90c26c9.js new file mode 100644 index 000000000..68788ab80 --- /dev/null +++ b/dbgpt/app/static/_next/static/chunks/pages/knowledge/chunk-652744b9d90c26c9.js @@ -0,0 +1,4 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[736],{27595:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(87462),l=r(67294),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM320 482a8 8 0 00-8 8v48a8 8 0 008 8h384a8 8 0 008-8v-48a8 8 0 00-8-8H320zm0 136a8 8 0 00-8 8v48a8 8 0 008 8h184a8 8 0 008-8v-48a8 8 0 00-8-8H320z"}}]},name:"file-text",theme:"filled"},o=r(84089),i=l.forwardRef(function(e,t){return l.createElement(o.Z,(0,n.Z)({},e,{ref:t,icon:a}))})},27329:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(87462),l=r(67294),a={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42zm101.3 129.3c1.3-5.4 6.1-9.3 11.7-9.3h35.6a12.04 12.04 0 0111.6 15.1l-74.4 276c-1.4 5.3-6.2 8.9-11.6 8.9h-31.8c-5.4 0-10.2-3.7-11.6-8.9l-52.8-197-52.8 197c-1.4 5.3-6.2 8.9-11.6 8.9h-32c-5.4 0-10.2-3.7-11.6-8.9l-74.2-276a12.02 12.02 0 0111.6-15.1h35.4c5.6 0 10.4 3.9 11.7 9.3L434.6 680l49.7-198.9c1.3-5.4 6.1-9.1 11.6-9.1h32.2c5.5 0 10.3 3.7 11.6 9.1l49.8 199.3 45.8-199.1z",fill:t}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:e}},{tag:"path",attrs:{d:"M528.1 472h-32.2c-5.5 0-10.3 3.7-11.6 9.1L434.6 680l-46.1-198.7c-1.3-5.4-6.1-9.3-11.7-9.3h-35.4a12.02 12.02 0 00-11.6 15.1l74.2 276c1.4 5.2 6.2 8.9 11.6 8.9h32c5.4 0 10.2-3.6 11.6-8.9l52.8-197 52.8 197c1.4 5.2 6.2 8.9 11.6 8.9h31.8c5.4 0 10.2-3.6 11.6-8.9l74.4-276a12.04 12.04 0 00-11.6-15.1H647c-5.6 0-10.4 3.9-11.7 9.3l-45.8 199.1-49.8-199.3c-1.3-5.4-6.1-9.1-11.6-9.1z",fill:e}}]}},name:"file-word",theme:"twotone"},o=r(84089),i=l.forwardRef(function(e,t){return l.createElement(o.Z,(0,n.Z)({},e,{ref:t,icon:a}))})},68346:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(87462),l=r(67294),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M693.6 284.4c-24 0-51.1 11.7-72.6 22 46.3 18 86 57.3 112.3 99.6 7.1-18.9 14.6-47.9 14.6-67.9 0-32-22.8-53.7-54.3-53.7zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm253.9 492.9H437.1c0 100.4 144.3 136 196.8 47.4h120.8c-32.6 91.7-119.7 146-216.8 146-35.1 0-70.3-.1-101.7-15.6-87.4 44.5-180.3 56.6-180.3-42 0-45.8 23.2-107.1 44-145C335 484 381.3 422.8 435.6 374.5c-43.7 18.9-91.1 66.3-122 101.2 25.9-112.8 129.5-193.6 237.1-186.5 130-59.8 209.7-34.1 209.7 38.6 0 27.4-10.6 63.3-21.4 87.9 25.2 45.5 33.3 97.6 26.9 141.2zM540.5 399.1c-53.7 0-102 39.7-104 94.9h208c-2-55.1-50.6-94.9-104-94.9zM320.6 602.9c-73 152.4 11.5 172.2 100.3 123.3-46.6-27.5-82.6-72.2-100.3-123.3z"}}]},name:"ie-circle",theme:"filled"},o=r(84089),i=l.forwardRef(function(e,t){return l.createElement(o.Z,(0,n.Z)({},e,{ref:t,icon:a}))})},57838:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var n=r(67294);function l(){let[,e]=n.useReducer(e=>e+1,0);return e}},60:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/knowledge/chunk",function(){return r(75969)}])},47207:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(85893),l=r(27595),a=r(27329),o=r(68346);function i(e){let{type:t}=e;return"TEXT"===t?(0,n.jsx)(l.Z,{className:"text-[#2AA3FF] mr-2 !text-lg"}):"DOCUMENT"===t?(0,n.jsx)(a.Z,{className:"text-[#2AA3FF] mr-2 !text-lg"}):(0,n.jsx)(o.Z,{className:"text-[#2AA3FF] mr-2 !text-lg"})}},75969:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return P}});var n=r(85893),l=r(67294),a=r(11163),o=r(94184),i=r.n(o),c=r(50344),s=r(64217),u=r(96159),f=r(53124),m=r(80882),d=r(1142);let p=e=>{let{children:t}=e,{getPrefixCls:r}=l.useContext(f.E_),n=r("breadcrumb");return l.createElement("li",{className:`${n}-separator`,"aria-hidden":"true"},""===t?t:t||"/")};p.__ANT_BREADCRUMB_SEPARATOR=!0;var g=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var l=0,n=Object.getOwnPropertySymbols(e);lt.indexOf(n[l])&&Object.prototype.propertyIsEnumerable.call(e,n[l])&&(r[n[l]]=e[n[l]]);return r};function b(e,t,r,n){if(null==r)return null;let{className:a,onClick:o}=t,c=g(t,["className","onClick"]),u=Object.assign(Object.assign({},(0,s.Z)(c,{data:!0,aria:!0})),{onClick:o});return void 0!==n?l.createElement("a",Object.assign({},u,{className:i()(`${e}-link`,a),href:n}),r):l.createElement("span",Object.assign({},u,{className:i()(`${e}-link`,a)}),r)}var h=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var l=0,n=Object.getOwnPropertySymbols(e);lt.indexOf(n[l])&&Object.prototype.propertyIsEnumerable.call(e,n[l])&&(r[n[l]]=e[n[l]]);return r};let v=e=>{let{prefixCls:t,separator:r="/",children:n,menu:a,overlay:o,dropdownProps:i,href:c}=e,s=(e=>{if(a||o){let r=Object.assign({},i);if(a){let e=a||{},{items:t}=e,n=h(e,["items"]);r.menu=Object.assign(Object.assign({},n),{items:null==t?void 0:t.map((e,t)=>{var{key:r,title:n,label:a,path:o}=e,i=h(e,["key","title","label","path"]);let s=null!=a?a:n;return o&&(s=l.createElement("a",{href:`${c}${o}`},s)),Object.assign(Object.assign({},i),{key:null!=r?r:t,label:s})})})}else o&&(r.overlay=o);return l.createElement(d.Z,Object.assign({placement:"bottom"},r),l.createElement("span",{className:`${t}-overlay-link`},e,l.createElement(m.Z,null)))}return e})(n);return null!=s?l.createElement(l.Fragment,null,l.createElement("li",null,s),r&&l.createElement(p,null,r)):null},y=e=>{let{prefixCls:t,children:r,href:n}=e,a=h(e,["prefixCls","children","href"]),{getPrefixCls:o}=l.useContext(f.E_),i=o("breadcrumb",t);return l.createElement(v,Object.assign({},a,{prefixCls:i}),b(i,a,r,n))};y.__ANT_BREADCRUMB_ITEM=!0;var O=r(14747),x=r(67968),j=r(45503);let E=e=>{let{componentCls:t,iconCls:r}=e;return{[t]:Object.assign(Object.assign({},(0,O.Wf)(e)),{color:e.itemColor,fontSize:e.fontSize,[r]:{fontSize:e.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:e.linkColor,transition:`color ${e.motionDurationMid}`,padding:`0 ${e.paddingXXS}px`,borderRadius:e.borderRadiusSM,height:e.lineHeight*e.fontSize,display:"inline-block",marginInline:-e.marginXXS,"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover}},(0,O.Qy)(e)),"li:last-child":{color:e.lastItemColor},[`${t}-separator`]:{marginInline:e.separatorMargin,color:e.separatorColor},[`${t}-link`]:{[` + > ${r} + span, + > ${r} + a + `]:{marginInlineStart:e.marginXXS}},[`${t}-overlay-link`]:{borderRadius:e.borderRadiusSM,height:e.lineHeight*e.fontSize,display:"inline-block",padding:`0 ${e.paddingXXS}px`,marginInline:-e.marginXXS,[`> ${r}`]:{marginInlineStart:e.marginXXS,fontSize:e.fontSizeIcon},"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover,a:{color:e.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${e.componentCls}-rtl`]:{direction:"rtl"}})}};var S=(0,x.Z)("Breadcrumb",e=>{let t=(0,j.TS)(e,{});return[E(t)]},e=>({itemColor:e.colorTextDescription,lastItemColor:e.colorText,iconFontSize:e.fontSize,linkColor:e.colorTextDescription,linkHoverColor:e.colorText,separatorColor:e.colorTextDescription,separatorMargin:e.marginXS})),C=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var l=0,n=Object.getOwnPropertySymbols(e);lt.indexOf(n[l])&&Object.prototype.propertyIsEnumerable.call(e,n[l])&&(r[n[l]]=e[n[l]]);return r};function w(e){let{breadcrumbName:t,children:r}=e,n=C(e,["breadcrumbName","children"]),l=Object.assign({title:t},n);return r&&(l.menu={items:r.map(e=>{var{breadcrumbName:t}=e;return Object.assign(Object.assign({},C(e,["breadcrumbName"])),{title:t})})}),l}var k=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var l=0,n=Object.getOwnPropertySymbols(e);lt.indexOf(n[l])&&Object.prototype.propertyIsEnumerable.call(e,n[l])&&(r[n[l]]=e[n[l]]);return r};let N=(e,t)=>{if(void 0===t)return t;let r=(t||"").replace(/^\//,"");return Object.keys(e).forEach(t=>{r=r.replace(`:${t}`,e[t])}),r},_=e=>{let t;let{prefixCls:r,separator:n="/",style:a,className:o,rootClassName:m,routes:d,items:g,children:h,itemRender:y,params:O={}}=e,x=k(e,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:j,direction:E,breadcrumb:C}=l.useContext(f.E_),_=j("breadcrumb",r),[z,Z]=S(_),M=(0,l.useMemo)(()=>g||(d?d.map(w):null),[g,d]),T=(e,t,r,n,l)=>{if(y)return y(e,t,r,n);let a=function(e,t){if(void 0===e.title||null===e.title)return null;let r=Object.keys(t).join("|");return"object"==typeof e.title?e.title:String(e.title).replace(RegExp(`:(${r})`,"g"),(e,r)=>t[r]||e)}(e,t);return b(_,e,a,l)};if(M&&M.length>0){let e=[],r=g||d;t=M.map((t,a)=>{let{path:o,key:i,type:c,menu:u,overlay:f,onClick:m,className:d,separator:g,dropdownProps:b}=t,h=N(O,o);void 0!==h&&e.push(h);let y=null!=i?i:a;if("separator"===c)return l.createElement(p,{key:y},g);let x={},j=a===M.length-1;u?x.menu=u:f&&(x.overlay=f);let{href:E}=t;return e.length&&void 0!==h&&(E=`#/${e.join("/")}`),l.createElement(v,Object.assign({key:y},x,(0,s.Z)(t,{data:!0,aria:!0}),{className:d,dropdownProps:b,href:E,separator:j?"":n,onClick:m,prefixCls:_}),T(t,O,r,e,E))})}else if(h){let e=(0,c.Z)(h).length;t=(0,c.Z)(h).map((t,r)=>t?(0,u.Tm)(t,{separator:r===e-1?"":n,key:r}):t)}let $=i()(_,null==C?void 0:C.className,{[`${_}-rtl`]:"rtl"===E},o,m,Z),R=Object.assign(Object.assign({},null==C?void 0:C.style),a);return z(l.createElement("nav",Object.assign({className:$,style:R},x),l.createElement("ol",null,t)))};_.Item=y,_.Separator=p;var z=r(75081),Z=r(85813),M=r(32983),T=r(81647),$=r(67421),R=r(50489),H=r(47207),P=function(){let e=(0,a.useRouter)(),{t}=(0,$.$G)(),[r,o]=(0,l.useState)([]),[i,c]=(0,l.useState)(0),[s,u]=(0,l.useState)(!1),{query:{id:f,spaceName:m}}=(0,a.useRouter)(),d=async()=>{let[e,t]=await (0,R.Vx)((0,R.gV)(m,{document_id:f,page:1,page_size:10}));o(null==t?void 0:t.data),c(null==t?void 0:t.total)},p=async(e,t)=>{u(!0);let[r,n]=await (0,R.Vx)((0,R.gV)(m,{document_id:f,page:e,page_size:t}));o((null==n?void 0:n.data)||[]),u(!1)};return(0,l.useEffect)(()=>{m&&f&&d()},[f,m]),(0,n.jsxs)("div",{className:"h-full overflow-y-scroll relative",children:[(0,n.jsx)(_,{className:"m-6",items:[{title:"Knowledge",onClick(){e.back()},path:"/knowledge"},{title:m}]}),(0,n.jsx)(z.Z,{spinning:s,children:(0,n.jsx)("div",{className:"flex justify-center flex-col",children:(null==r?void 0:r.length)>0?null==r?void 0:r.map(e=>(0,n.jsxs)(Z.Z,{title:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(H.Z,{type:e.doc_type}),(0,n.jsx)("span",{children:e.doc_name})]}),children:[(0,n.jsxs)("p",{className:"font-semibold",children:[t("Content"),":"]}),(0,n.jsx)("p",{children:null==e?void 0:e.content}),(0,n.jsxs)("p",{className:"font-semibold",children:[t("Meta_Data"),": "]}),(0,n.jsx)("p",{children:null==e?void 0:e.meta_info})]},e.id)):(0,n.jsx)(M.Z,{image:M.Z.PRESENTED_IMAGE_DEFAULT})})}),(0,n.jsx)(T.Z,{className:"mx-2 my-4 float-right right-6 bottom-4",defaultCurrent:1,defaultPageSize:10,total:i,showTotal:e=>"Total ".concat(e," items"),onChange:p})]})}}},function(e){e.O(0,[113,9,442,810,813,774,888,179],function(){return e(e.s=60)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/dbgpt/app/static/_next/static/chunks/pages/knowledge/chunk-c59f6c7587cafb1e.js b/dbgpt/app/static/_next/static/chunks/pages/knowledge/chunk-c59f6c7587cafb1e.js deleted file mode 100644 index e24f82ea8..000000000 --- a/dbgpt/app/static/_next/static/chunks/pages/knowledge/chunk-c59f6c7587cafb1e.js +++ /dev/null @@ -1,4 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[736],{80882:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(87462),l=r(67294),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},i=r(84089),o=l.forwardRef(function(e,t){return l.createElement(i.Z,(0,n.Z)({},e,{ref:t,icon:a}))})},27595:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(87462),l=r(67294),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM320 482a8 8 0 00-8 8v48a8 8 0 008 8h384a8 8 0 008-8v-48a8 8 0 00-8-8H320zm0 136a8 8 0 00-8 8v48a8 8 0 008 8h184a8 8 0 008-8v-48a8 8 0 00-8-8H320z"}}]},name:"file-text",theme:"filled"},i=r(84089),o=l.forwardRef(function(e,t){return l.createElement(i.Z,(0,n.Z)({},e,{ref:t,icon:a}))})},27329:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(87462),l=r(67294),a={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42zm101.3 129.3c1.3-5.4 6.1-9.3 11.7-9.3h35.6a12.04 12.04 0 0111.6 15.1l-74.4 276c-1.4 5.3-6.2 8.9-11.6 8.9h-31.8c-5.4 0-10.2-3.7-11.6-8.9l-52.8-197-52.8 197c-1.4 5.3-6.2 8.9-11.6 8.9h-32c-5.4 0-10.2-3.7-11.6-8.9l-74.2-276a12.02 12.02 0 0111.6-15.1h35.4c5.6 0 10.4 3.9 11.7 9.3L434.6 680l49.7-198.9c1.3-5.4 6.1-9.1 11.6-9.1h32.2c5.5 0 10.3 3.7 11.6 9.1l49.8 199.3 45.8-199.1z",fill:t}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:e}},{tag:"path",attrs:{d:"M528.1 472h-32.2c-5.5 0-10.3 3.7-11.6 9.1L434.6 680l-46.1-198.7c-1.3-5.4-6.1-9.3-11.7-9.3h-35.4a12.02 12.02 0 00-11.6 15.1l74.2 276c1.4 5.2 6.2 8.9 11.6 8.9h32c5.4 0 10.2-3.6 11.6-8.9l52.8-197 52.8 197c1.4 5.2 6.2 8.9 11.6 8.9h31.8c5.4 0 10.2-3.6 11.6-8.9l74.4-276a12.04 12.04 0 00-11.6-15.1H647c-5.6 0-10.4 3.9-11.7 9.3l-45.8 199.1-49.8-199.3c-1.3-5.4-6.1-9.1-11.6-9.1z",fill:e}}]}},name:"file-word",theme:"twotone"},i=r(84089),o=l.forwardRef(function(e,t){return l.createElement(i.Z,(0,n.Z)({},e,{ref:t,icon:a}))})},68346:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(87462),l=r(67294),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M693.6 284.4c-24 0-51.1 11.7-72.6 22 46.3 18 86 57.3 112.3 99.6 7.1-18.9 14.6-47.9 14.6-67.9 0-32-22.8-53.7-54.3-53.7zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm253.9 492.9H437.1c0 100.4 144.3 136 196.8 47.4h120.8c-32.6 91.7-119.7 146-216.8 146-35.1 0-70.3-.1-101.7-15.6-87.4 44.5-180.3 56.6-180.3-42 0-45.8 23.2-107.1 44-145C335 484 381.3 422.8 435.6 374.5c-43.7 18.9-91.1 66.3-122 101.2 25.9-112.8 129.5-193.6 237.1-186.5 130-59.8 209.7-34.1 209.7 38.6 0 27.4-10.6 63.3-21.4 87.9 25.2 45.5 33.3 97.6 26.9 141.2zM540.5 399.1c-53.7 0-102 39.7-104 94.9h208c-2-55.1-50.6-94.9-104-94.9zM320.6 602.9c-73 152.4 11.5 172.2 100.3 123.3-46.6-27.5-82.6-72.2-100.3-123.3z"}}]},name:"ie-circle",theme:"filled"},i=r(84089),o=l.forwardRef(function(e,t){return l.createElement(i.Z,(0,n.Z)({},e,{ref:t,icon:a}))})},96074:function(e,t,r){"use strict";r.d(t,{Z:function(){return f}});var n=r(94184),l=r.n(n),a=r(67294),i=r(53124),o=r(14747),c=r(67968),s=r(45503);let d=e=>{let{componentCls:t,sizePaddingEdgeHorizontal:r,colorSplit:n,lineWidth:l}=e;return{[t]:Object.assign(Object.assign({},(0,o.Wf)(e)),{borderBlockStart:`${l}px solid ${n}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",margin:`0 ${e.dividerVerticalGutterMargin}px`,verticalAlign:"middle",borderTop:0,borderInlineStart:`${l}px solid ${n}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${e.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${e.dividerHorizontalWithTextGutterMargin}px 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${n}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${l}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:"5%"},"&::after":{width:"95%"}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:"95%"},"&::after":{width:"5%"}},[`${t}-inner-text`]:{display:"inline-block",padding:"0 1em"},"&-dashed":{background:"none",borderColor:n,borderStyle:"dashed",borderWidth:`${l}px 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:l,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:r}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:r}}})}};var m=(0,c.Z)("Divider",e=>{let t=(0,s.TS)(e,{dividerVerticalGutterMargin:e.marginXS,dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG});return[d(t)]},{sizePaddingEdgeHorizontal:0}),u=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var l=0,n=Object.getOwnPropertySymbols(e);lt.indexOf(n[l])&&Object.prototype.propertyIsEnumerable.call(e,n[l])&&(r[n[l]]=e[n[l]]);return r},f=e=>{let{getPrefixCls:t,direction:r,divider:n}=a.useContext(i.E_),{prefixCls:o,type:c="horizontal",orientation:s="center",orientationMargin:d,className:f,rootClassName:g,children:p,dashed:h,plain:b,style:v}=e,y=u(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),x=t("divider",o),[E,O]=m(x),w=s.length>0?`-${s}`:s,j=!!p,S="left"===s&&null!=d,$="right"===s&&null!=d,C=l()(x,null==n?void 0:n.className,O,`${x}-${c}`,{[`${x}-with-text`]:j,[`${x}-with-text${w}`]:j,[`${x}-dashed`]:!!h,[`${x}-plain`]:!!b,[`${x}-rtl`]:"rtl"===r,[`${x}-no-default-orientation-margin-left`]:S,[`${x}-no-default-orientation-margin-right`]:$},f,g),z=a.useMemo(()=>"number"==typeof d?d:/^\d+$/.test(d)?Number(d):d,[d]),M=Object.assign(Object.assign({},S&&{marginLeft:z}),$&&{marginRight:z});return E(a.createElement("div",Object.assign({className:C,style:Object.assign(Object.assign({},null==n?void 0:n.style),v)},y,{role:"separator"}),p&&"vertical"!==c&&a.createElement("span",{className:`${x}-inner-text`,style:M},p)))}},32983:function(e,t,r){"use strict";r.d(t,{Z:function(){return v}});var n=r(94184),l=r.n(n),a=r(67294),i=r(53124),o=r(10110),c=r(10274),s=r(25976),d=r(67968),m=r(45503);let u=e=>{let{componentCls:t,margin:r,marginXS:n,marginXL:l,fontSize:a,lineHeight:i}=e;return{[t]:{marginInline:n,fontSize:a,lineHeight:i,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:n,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorText},[`${t}-footer`]:{marginTop:r},"&-normal":{marginBlock:l,color:e.colorTextDisabled,[`${t}-description`]:{color:e.colorTextDisabled},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:n,color:e.colorTextDisabled,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}};var f=(0,d.Z)("Empty",e=>{let{componentCls:t,controlHeightLG:r}=e,n=(0,m.TS)(e,{emptyImgCls:`${t}-img`,emptyImgHeight:2.5*r,emptyImgHeightMD:r,emptyImgHeightSM:.875*r});return[u(n)]}),g=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var l=0,n=Object.getOwnPropertySymbols(e);lt.indexOf(n[l])&&Object.prototype.propertyIsEnumerable.call(e,n[l])&&(r[n[l]]=e[n[l]]);return r};let p=a.createElement(()=>{let[,e]=(0,s.Z)(),t=new c.C(e.colorBgBase),r=t.toHsl().l<.5?{opacity:.65}:{};return a.createElement("svg",{style:r,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},a.createElement("g",{fill:"none",fillRule:"evenodd"},a.createElement("g",{transform:"translate(24 31.67)"},a.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),a.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),a.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),a.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),a.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),a.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),a.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},a.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),a.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},null),h=a.createElement(()=>{let[,e]=(0,s.Z)(),{colorFill:t,colorFillTertiary:r,colorFillQuaternary:n,colorBgContainer:l}=e,{borderColor:i,shadowColor:o,contentColor:d}=(0,a.useMemo)(()=>({borderColor:new c.C(t).onBackground(l).toHexShortString(),shadowColor:new c.C(r).onBackground(l).toHexShortString(),contentColor:new c.C(n).onBackground(l).toHexShortString()}),[t,r,n,l]);return a.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},a.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},a.createElement("ellipse",{fill:o,cx:"32",cy:"33",rx:"32",ry:"7"}),a.createElement("g",{fillRule:"nonzero",stroke:i},a.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),a.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:d}))))},null),b=e=>{var{className:t,rootClassName:r,prefixCls:n,image:c=p,description:s,children:d,imageStyle:m,style:u}=e,b=g(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);let{getPrefixCls:v,direction:y,empty:x}=a.useContext(i.E_),E=v("empty",n),[O,w]=f(E),[j]=(0,o.Z)("Empty"),S=void 0!==s?s:null==j?void 0:j.description,$="string"==typeof S?S:"empty",C=null;return C="string"==typeof c?a.createElement("img",{alt:$,src:c}):c,O(a.createElement("div",Object.assign({className:l()(w,E,null==x?void 0:x.className,{[`${E}-normal`]:c===h,[`${E}-rtl`]:"rtl"===y},t,r),style:Object.assign(Object.assign({},null==x?void 0:x.style),u)},b),a.createElement("div",{className:`${E}-image`,style:m},C),S&&a.createElement("div",{className:`${E}-description`},S),d&&a.createElement("div",{className:`${E}-footer`},d)))};b.PRESENTED_IMAGE_DEFAULT=p,b.PRESENTED_IMAGE_SIMPLE=h;var v=b},60:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/knowledge/chunk",function(){return r(75969)}])},47207:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(85893),l=r(27595),a=r(27329),i=r(68346);function o(e){let{type:t}=e;return"TEXT"===t?(0,n.jsx)(l.Z,{className:"text-[#2AA3FF] mr-2 !text-lg"}):"DOCUMENT"===t?(0,n.jsx)(a.Z,{className:"text-[#2AA3FF] mr-2 !text-lg"}):(0,n.jsx)(i.Z,{className:"text-[#2AA3FF] mr-2 !text-lg"})}},75969:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return Z}});var n=r(85893),l=r(67294),a=r(11163),i=r(94184),o=r.n(i),c=r(50344),s=r(64217),d=r(96159),m=r(53124),u=r(80882),f=r(1142);let g=e=>{let{children:t}=e,{getPrefixCls:r}=l.useContext(m.E_),n=r("breadcrumb");return l.createElement("li",{className:`${n}-separator`,"aria-hidden":"true"},""===t?t:t||"/")};g.__ANT_BREADCRUMB_SEPARATOR=!0;var p=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var l=0,n=Object.getOwnPropertySymbols(e);lt.indexOf(n[l])&&Object.prototype.propertyIsEnumerable.call(e,n[l])&&(r[n[l]]=e[n[l]]);return r};function h(e,t,r,n){if(null==r)return null;let{className:a,onClick:i}=t,c=p(t,["className","onClick"]),d=Object.assign(Object.assign({},(0,s.Z)(c,{data:!0,aria:!0})),{onClick:i});return void 0!==n?l.createElement("a",Object.assign({},d,{className:o()(`${e}-link`,a),href:n}),r):l.createElement("span",Object.assign({},d,{className:o()(`${e}-link`,a)}),r)}var b=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var l=0,n=Object.getOwnPropertySymbols(e);lt.indexOf(n[l])&&Object.prototype.propertyIsEnumerable.call(e,n[l])&&(r[n[l]]=e[n[l]]);return r};let v=e=>{let{prefixCls:t,separator:r="/",children:n,menu:a,overlay:i,dropdownProps:o,href:c}=e,s=(e=>{if(a||i){let r=Object.assign({},o);if(a){let e=a||{},{items:t}=e,n=b(e,["items"]);r.menu=Object.assign(Object.assign({},n),{items:null==t?void 0:t.map((e,t)=>{var{key:r,title:n,label:a,path:i}=e,o=b(e,["key","title","label","path"]);let s=null!=a?a:n;return i&&(s=l.createElement("a",{href:`${c}${i}`},s)),Object.assign(Object.assign({},o),{key:null!=r?r:t,label:s})})})}else i&&(r.overlay=i);return l.createElement(f.Z,Object.assign({placement:"bottom"},r),l.createElement("span",{className:`${t}-overlay-link`},e,l.createElement(u.Z,null)))}return e})(n);return null!=s?l.createElement(l.Fragment,null,l.createElement("li",null,s),r&&l.createElement(g,null,r)):null},y=e=>{let{prefixCls:t,children:r,href:n}=e,a=b(e,["prefixCls","children","href"]),{getPrefixCls:i}=l.useContext(m.E_),o=i("breadcrumb",t);return l.createElement(v,Object.assign({},a,{prefixCls:o}),h(o,a,r,n))};y.__ANT_BREADCRUMB_ITEM=!0;var x=r(14747),E=r(67968),O=r(45503);let w=e=>{let{componentCls:t,iconCls:r}=e;return{[t]:Object.assign(Object.assign({},(0,x.Wf)(e)),{color:e.itemColor,fontSize:e.fontSize,[r]:{fontSize:e.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:e.linkColor,transition:`color ${e.motionDurationMid}`,padding:`0 ${e.paddingXXS}px`,borderRadius:e.borderRadiusSM,height:e.lineHeight*e.fontSize,display:"inline-block",marginInline:-e.marginXXS,"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover}},(0,x.Qy)(e)),"li:last-child":{color:e.lastItemColor},[`${t}-separator`]:{marginInline:e.separatorMargin,color:e.separatorColor},[`${t}-link`]:{[` - > ${r} + span, - > ${r} + a - `]:{marginInlineStart:e.marginXXS}},[`${t}-overlay-link`]:{borderRadius:e.borderRadiusSM,height:e.lineHeight*e.fontSize,display:"inline-block",padding:`0 ${e.paddingXXS}px`,marginInline:-e.marginXXS,[`> ${r}`]:{marginInlineStart:e.marginXXS,fontSize:e.fontSizeIcon},"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover,a:{color:e.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${e.componentCls}-rtl`]:{direction:"rtl"}})}};var j=(0,E.Z)("Breadcrumb",e=>{let t=(0,O.TS)(e,{});return[w(t)]},e=>({itemColor:e.colorTextDescription,lastItemColor:e.colorText,iconFontSize:e.fontSize,linkColor:e.colorTextDescription,linkHoverColor:e.colorText,separatorColor:e.colorTextDescription,separatorMargin:e.marginXS})),S=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var l=0,n=Object.getOwnPropertySymbols(e);lt.indexOf(n[l])&&Object.prototype.propertyIsEnumerable.call(e,n[l])&&(r[n[l]]=e[n[l]]);return r};function $(e){let{breadcrumbName:t,children:r}=e,n=S(e,["breadcrumbName","children"]),l=Object.assign({title:t},n);return r&&(l.menu={items:r.map(e=>{var{breadcrumbName:t}=e;return Object.assign(Object.assign({},S(e,["breadcrumbName"])),{title:t})})}),l}var C=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var l=0,n=Object.getOwnPropertySymbols(e);lt.indexOf(n[l])&&Object.prototype.propertyIsEnumerable.call(e,n[l])&&(r[n[l]]=e[n[l]]);return r};let z=(e,t)=>{if(void 0===t)return t;let r=(t||"").replace(/^\//,"");return Object.keys(e).forEach(t=>{r=r.replace(`:${t}`,e[t])}),r},M=e=>{let t;let{prefixCls:r,separator:n="/",style:a,className:i,rootClassName:u,routes:f,items:p,children:b,itemRender:y,params:x={}}=e,E=C(e,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:O,direction:w,breadcrumb:S}=l.useContext(m.E_),M=O("breadcrumb",r),[k,N]=j(M),H=(0,l.useMemo)(()=>p||(f?f.map($):null),[p,f]),_=(e,t,r,n,l)=>{if(y)return y(e,t,r,n);let a=function(e,t){if(void 0===e.title||null===e.title)return null;let r=Object.keys(t).join("|");return"object"==typeof e.title?e.title:String(e.title).replace(RegExp(`:(${r})`,"g"),(e,r)=>t[r]||e)}(e,t);return h(M,e,a,l)};if(H&&H.length>0){let e=[],r=p||f;t=H.map((t,a)=>{let{path:i,key:o,type:c,menu:d,overlay:m,onClick:u,className:f,separator:p,dropdownProps:h}=t,b=z(x,i);void 0!==b&&e.push(b);let y=null!=o?o:a;if("separator"===c)return l.createElement(g,{key:y},p);let E={},O=a===H.length-1;d?E.menu=d:m&&(E.overlay=m);let{href:w}=t;return e.length&&void 0!==b&&(w=`#/${e.join("/")}`),l.createElement(v,Object.assign({key:y},E,(0,s.Z)(t,{data:!0,aria:!0}),{className:f,dropdownProps:h,href:w,separator:O?"":n,onClick:u,prefixCls:M}),_(t,x,r,e,w))})}else if(b){let e=(0,c.Z)(b).length;t=(0,c.Z)(b).map((t,r)=>t?(0,d.Tm)(t,{separator:r===e-1?"":n,key:r}):t)}let I=o()(M,null==S?void 0:S.className,{[`${M}-rtl`]:"rtl"===w},i,u,N),T=Object.assign(Object.assign({},null==S?void 0:S.style),a);return k(l.createElement("nav",Object.assign({className:I,style:T},E),l.createElement("ol",null,t)))};M.Item=y,M.Separator=g;var k=r(85813),N=r(32983),H=r(96074),_=r(67421),I=r(50489),T=r(47207),Z=function(){let e=(0,a.useRouter)(),{t}=(0,_.$G)(),[r,i]=(0,l.useState)([]),[o,c]=(0,l.useState)(0),[s,d]=(0,l.useState)(!1),m=(0,l.useRef)(1),{query:{id:u,spaceName:f}}=(0,a.useRouter)(),g=(0,l.useMemo)(()=>(null==r?void 0:r.length){let[e,t]=await (0,I.Vx)((0,I.gV)(f,{document_id:u,page:m.current,page_size:20}));i(null==t?void 0:t.data),c(null==t?void 0:t.total)},h=async()=>{if(s)return;d(!0),m.current+=1;let[e,t]=await (0,I.Vx)((0,I.gV)(f,{document_id:u,page:m.current,page_size:20}));i([...r,...(null==t?void 0:t.data)||[]]),d(!1)};return(0,l.useEffect)(()=>{f&&u&&p()},[u,f]),(0,n.jsxs)("div",{className:"h-full overflow-y-scroll",children:[(0,n.jsx)(M,{className:"m-6",items:[{title:"Knowledge",onClick(){e.back()},path:"/knowledge"},{title:f}]}),(0,n.jsxs)("div",{className:"flex justify-center flex-col",children:[(0,n.jsx)("div",{children:(null==r?void 0:r.length)>0?null==r?void 0:r.map(e=>(0,n.jsxs)(k.Z,{title:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(T.Z,{type:e.doc_type}),(0,n.jsx)("span",{children:e.doc_name})]}),children:[(0,n.jsxs)("p",{className:"font-semibold",children:[t("Content"),":"]}),(0,n.jsx)("p",{children:null==e?void 0:e.content}),(0,n.jsxs)("p",{className:"font-semibold",children:[t("Meta_Data"),": "]}),(0,n.jsx)("p",{children:null==e?void 0:e.meta_info})]},e.id)):(0,n.jsx)(N.Z,{image:N.Z.PRESENTED_IMAGE_DEFAULT})}),g&&(0,n.jsx)(H.Z,{children:(0,n.jsx)("span",{className:"cursor-pointer",onClick:h,children:t("Load_more")})})]})]})}}},function(e){e.O(0,[442,813,774,888,179],function(){return e(e.s=60)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/dbgpt/app/static/_next/static/chunks/pages/models-bc858e4e519df911.js b/dbgpt/app/static/_next/static/chunks/pages/models-1145859ba0e2f20a.js similarity index 99% rename from dbgpt/app/static/_next/static/chunks/pages/models-bc858e4e519df911.js rename to dbgpt/app/static/_next/static/chunks/pages/models-1145859ba0e2f20a.js index 4d94d4266..1ff79fb06 100644 --- a/dbgpt/app/static/_next/static/chunks/pages/models-bc858e4e519df911.js +++ b/dbgpt/app/static/_next/static/chunks/pages/models-1145859ba0e2f20a.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[495],{22624:function(e,t,l){"use strict";var n=l(64836);t.Z=void 0;var r=n(l(64938)),a=l(85893),s=(0,r.default)([(0,a.jsx)("circle",{cx:"15.5",cy:"9.5",r:"1.5"},"0"),(0,a.jsx)("circle",{cx:"8.5",cy:"9.5",r:"1.5"},"1"),(0,a.jsx)("circle",{cx:"15.5",cy:"9.5",r:"1.5"},"2"),(0,a.jsx)("circle",{cx:"8.5",cy:"9.5",r:"1.5"},"3"),(0,a.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm0-2.5c2.33 0 4.32-1.45 5.12-3.5h-1.67c-.69 1.19-1.97 2-3.45 2s-2.75-.81-3.45-2H6.88c.8 2.05 2.79 3.5 5.12 3.5z"},"4")],"SentimentSatisfiedAlt");t.Z=s},49769:function(e,t,l){"use strict";var n=l(64836);t.Z=void 0;var r=n(l(64938)),a=l(85893),s=(0,r.default)([(0,a.jsx)("circle",{cx:"15.5",cy:"9.5",r:"1.5"},"0"),(0,a.jsx)("circle",{cx:"8.5",cy:"9.5",r:"1.5"},"1"),(0,a.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm0-6c-2.33 0-4.32 1.45-5.12 3.5h1.67c.69-1.19 1.97-2 3.45-2s2.75.81 3.45 2h1.67c-.8-2.05-2.79-3.5-5.12-3.5z"},"2")],"SentimentVeryDissatisfied");t.Z=s},98034:function(e,t,l){"use strict";var n=l(64836);t.Z=void 0;var r=n(l(64938)),a=l(85893),s=(0,r.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 2zm4 14H8V8h8v8z"}),"StopCircle");t.Z=s},64938:function(e,t,l){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n.createSvgIcon}});var n=l(52869)},52869:function(e,t,l){"use strict";l.r(t),l.d(t,{capitalize:function(){return r.Z},createChainedFunction:function(){return a},createSvgIcon:function(){return s.Z},debounce:function(){return i},deprecatedPropType:function(){return o},isMuiElement:function(){return c},ownerDocument:function(){return u},ownerWindow:function(){return d},requirePropFactory:function(){return m},setRef:function(){return f},unstable_ClassNameGenerator:function(){return g},unstable_useEnhancedEffect:function(){return p},unstable_useId:function(){return h},unsupportedProp:function(){return x},useControlled:function(){return v},useEventCallback:function(){return b},useForkRef:function(){return j},useIsFocusVisible:function(){return y}});var n=l(37078),r=l(98216),a=function(...e){return e.reduce((e,t)=>null==t?e:function(...l){e.apply(this,l),t.apply(this,l)},()=>{})},s=l(34678),i=l(39336).Z,o=function(e,t){return()=>null},c=l(18719).Z,u=l(82690).Z,d=l(74161).Z;l(87462);var m=function(e,t){return()=>null},f=l(7960).Z,p=l(73546).Z,h=l(92996).Z,x=function(e,t,l,n,r){return null},v=l(19032).Z,b=l(59948).Z,j=l(33703).Z,y=l(99962).Z;let g={configure:e=>{n.Z.configure(e)}}},84567:function(e,t,l){"use strict";l.d(t,{Z:function(){return g}});var n=l(94184),r=l.n(n),a=l(50132),s=l(67294),i=l(53124),o=l(98866),c=l(65223);let u=s.createContext(null);var d=l(63185),m=l(45353),f=l(17415),p=function(e,t){var l={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(l[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,n=Object.getOwnPropertySymbols(e);rt.indexOf(n[r])&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(l[n[r]]=e[n[r]]);return l};let h=s.forwardRef((e,t)=>{var l;let{prefixCls:n,className:h,rootClassName:x,children:v,indeterminate:b=!1,style:j,onMouseEnter:y,onMouseLeave:g,skipGroup:_=!1,disabled:w}=e,Z=p(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:C,direction:N,checkbox:k}=s.useContext(i.E_),O=s.useContext(u),{isFormItemInput:E}=s.useContext(c.aM),S=s.useContext(o.Z),P=null!==(l=(null==O?void 0:O.disabled)||w)&&void 0!==l?l:S,M=s.useRef(Z.value);s.useEffect(()=>{null==O||O.registerValue(Z.value)},[]),s.useEffect(()=>{if(!_)return Z.value!==M.current&&(null==O||O.cancelValue(M.current),null==O||O.registerValue(Z.value),M.current=Z.value),()=>null==O?void 0:O.cancelValue(Z.value)},[Z.value]);let V=C("checkbox",n),[$,I]=(0,d.ZP)(V),z=Object.assign({},Z);O&&!_&&(z.onChange=function(){Z.onChange&&Z.onChange.apply(Z,arguments),O.toggleOption&&O.toggleOption({label:v,value:Z.value})},z.name=O.name,z.checked=O.value.includes(Z.value));let H=r()(`${V}-wrapper`,{[`${V}-rtl`]:"rtl"===N,[`${V}-wrapper-checked`]:z.checked,[`${V}-wrapper-disabled`]:P,[`${V}-wrapper-in-form-item`]:E},null==k?void 0:k.className,h,x,I),F=r()({[`${V}-indeterminate`]:b},f.A,I);return $(s.createElement(m.Z,{component:"Checkbox",disabled:P},s.createElement("label",{className:H,style:Object.assign(Object.assign({},null==k?void 0:k.style),j),onMouseEnter:y,onMouseLeave:g},s.createElement(a.Z,Object.assign({"aria-checked":b?"mixed":void 0},z,{prefixCls:V,className:F,disabled:P,ref:t})),void 0!==v&&s.createElement("span",null,v))))});var x=l(74902),v=l(98423),b=function(e,t){var l={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(l[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,n=Object.getOwnPropertySymbols(e);rt.indexOf(n[r])&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(l[n[r]]=e[n[r]]);return l};let j=s.forwardRef((e,t)=>{let{defaultValue:l,children:n,options:a=[],prefixCls:o,className:c,rootClassName:m,style:f,onChange:p}=e,j=b(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:y,direction:g}=s.useContext(i.E_),[_,w]=s.useState(j.value||l||[]),[Z,C]=s.useState([]);s.useEffect(()=>{"value"in j&&w(j.value||[])},[j.value]);let N=s.useMemo(()=>a.map(e=>"string"==typeof e||"number"==typeof e?{label:e,value:e}:e),[a]),k=y("checkbox",o),O=`${k}-group`,[E,S]=(0,d.ZP)(k),P=(0,v.Z)(j,["value","disabled"]),M=a.length?N.map(e=>s.createElement(h,{prefixCls:k,key:e.value.toString(),disabled:"disabled"in e?e.disabled:j.disabled,value:e.value,checked:_.includes(e.value),onChange:e.onChange,className:`${O}-item`,style:e.style,title:e.title},e.label)):n,V={toggleOption:e=>{let t=_.indexOf(e.value),l=(0,x.Z)(_);-1===t?l.push(e.value):l.splice(t,1),"value"in j||w(l),null==p||p(l.filter(e=>Z.includes(e)).sort((e,t)=>{let l=N.findIndex(t=>t.value===e),n=N.findIndex(e=>e.value===t);return l-n}))},value:_,disabled:j.disabled,name:j.name,registerValue:e=>{C(t=>[].concat((0,x.Z)(t),[e]))},cancelValue:e=>{C(t=>t.filter(t=>t!==e))}},$=r()(O,{[`${O}-rtl`]:"rtl"===g},c,m,S);return E(s.createElement("div",Object.assign({className:$,style:f},P,{ref:t}),s.createElement(u.Provider,{value:V},M)))});var y=s.memo(j);h.Group=y,h.__ANT_CHECKBOX=!0;var g=h},80476:function(e,t,l){(window.__NEXT_P=window.__NEXT_P||[]).push(["/models",function(){return l(93167)}])},81799:function(e,t,l){"use strict";l.d(t,{A:function(){return d}});var n=l(85893),r=l(41468),a=l(51009),s=l(19284),i=l(25675),o=l.n(i),c=l(67294),u=l(67421);function d(e,t){var l;let{width:r,height:a}=t||{};return e?(0,n.jsx)(o(),{className:"rounded-full border border-gray-200 object-contain bg-white inline-block",width:r||24,height:a||24,src:(null===(l=s.Hf[e])||void 0===l?void 0:l.icon)||"/models/huggingface.svg",alt:"llm"}):null}t.Z=function(e){let{onChange:t}=e,{t:l}=(0,u.$G)(),{modelList:i,model:o}=(0,c.useContext)(r.p);return!i||i.length<=0?null:(0,n.jsx)(a.default,{value:o,placeholder:l("choose_model"),className:"w-52",onChange:e=>{null==t||t(e)},children:i.map(e=>{var t;return(0,n.jsx)(a.default.Option,{children:(0,n.jsxs)("div",{className:"flex items-center",children:[d(e),(0,n.jsx)("span",{className:"ml-2",children:(null===(t=s.Hf[e])||void 0===t?void 0:t.label)||e})]})},e)})})}},93167:function(e,t,l){"use strict";l.r(t),l.d(t,{default:function(){return N}});var n=l(85893),r=l(50489),a=l(67294),s=l(67421),i=l(22624),o=l(49769),c=l(98034),u=l(2453),d=l(83062),m=l(30381),f=l.n(m),p=l(81799),h=function(e){let{info:t}=e,{t:l}=(0,s.$G)(),[m,h]=(0,a.useState)(!1);async function x(e){if(m)return;h(!0);let[,t]=await (0,r.Vx)((0,r.kU)({host:e.host,port:e.port,model:e.model_name,worker_type:e.model_type,params:{}}));h(!1),!0===t&&u.ZP.success(l("stop_model_success"))}return(0,n.jsx)("div",{className:"relative flex flex-col p-1 md:p-2 sm:w-1/2 lg:w-1/3",children:(0,n.jsx)("div",{className:"relative flex items-center p-4 min-w-min rounded-lg justify-between bg-white border-gray-200 border hover:shadow-md dark:border-gray-600 dark:bg-black dark:hover:border-white transition-all text-black dark:text-white",children:(0,n.jsxs)("div",{className:"flex flex-col",children:[t.healthy&&(0,n.jsx)(d.Z,{title:"Healthy",children:(0,n.jsx)(i.Z,{className:"absolute top-4 right-4 !text-3xl !text-green-600"})}),!t.healthy&&(0,n.jsx)(d.Z,{title:"Unhealthy",children:(0,n.jsx)(o.Z,{className:"absolute top-4 right-4 !text-3xl !text-red-600"})}),(0,n.jsx)(d.Z,{title:"Stop Model",children:(0,n.jsx)(c.Z,{className:"absolute right-4 bottom-4 !text-3xl !text-orange-600 cursor-pointer",onClick:()=>{x(t)}})}),(0,n.jsxs)("div",{className:"flex items-center",children:[(0,p.A)(t.model_name,{width:32,height:32}),(0,n.jsxs)("div",{className:"inline-block ml-2",children:[(0,n.jsx)("h3",{className:"text-lg font-semibold",children:t.model_name}),(0,n.jsx)("h3",{className:"text-sm opacity-60",children:t.model_type})]})]}),(0,n.jsxs)("div",{className:"text-sm mt-2",children:[(0,n.jsx)("p",{className:"font-semibold",children:"Host:"}),(0,n.jsx)("p",{className:"opacity-60",children:t.host}),(0,n.jsx)("p",{className:"font-semibold mt-2",children:"Manage host:"}),(0,n.jsxs)("p",{className:"opacity-60",children:[(0,n.jsxs)("span",{children:[t.manager_host,":"]}),(0,n.jsx)("span",{children:t.manager_port})]}),(0,n.jsx)("p",{className:"font-semibold mt-2",children:"Last heart beat:"}),(0,n.jsx)("p",{className:"opacity-60",children:f()(t.last_heartbeat).format("YYYY-MM-DD HH:MM:SS")})]})]})})})},x=l(51009),v=l(39479),b=l(71577),j=l(59566),y=l(48928),g=l(84567),_=function(e){let{params:t,form:l}=e;return((0,a.useEffect)(()=>{if(t){let e={};t.forEach(t=>{e[t.param_name]=t.default_value}),l.setFieldsValue(e)}},[t,l]),!t||(null==t?void 0:t.length)<1)?null:(0,n.jsx)(n.Fragment,{children:null==t?void 0:t.map(e=>{var t;return(0,n.jsx)(v.Z.Item,{label:(0,n.jsx)("p",{className:"whitespace-normal overflow-wrap-break-word",children:(null===(t=e.description)||void 0===t?void 0:t.length)>20?e.param_name:e.description}),name:e.param_name,initialValue:e.default_value,valuePropName:"bool"===e.param_type?"checked":"value",tooltip:e.description,rules:[{required:e.required,message:"Please input ".concat(e.description)}],children:function(e){switch(e.param_type){case"str":return(0,n.jsx)(j.default,{});case"int":return(0,n.jsx)(y.Z,{});case"bool":return(0,n.jsx)(g.Z,{})}}(e)},e.param_name)})})};let{Option:w}=x.default;var Z=function(e){let{onCancel:t,onSuccess:l}=e,{t:i}=(0,s.$G)(),[o,c]=(0,a.useState)([]),[m,f]=(0,a.useState)(),[h,j]=(0,a.useState)(null),[y,g]=(0,a.useState)(!1),[Z]=v.Z.useForm();async function C(){let[,e]=await (0,r.Vx)((0,r.xv)());e&&e.length&&c(e.sort((e,t)=>e.enabled&&!t.enabled?-1:!e.enabled&&t.enabled?1:e.model.localeCompare(t.model))),c(e)}async function N(e){if(!m)return;delete e.model,g(!0);let[,,t]=await (0,r.Vx)((0,r.vA)({host:m.host,port:m.port,model:m.model,worker_type:null==m?void 0:m.worker_type,params:e}));if(g(!1),(null==t?void 0:t.success)===!0)return l&&l(),u.ZP.success(i("start_model_success"))}return(0,a.useEffect)(()=>{C()},[]),(0,n.jsxs)(v.Z,{labelCol:{span:8},wrapperCol:{span:16},onFinish:N,form:Z,children:[(0,n.jsx)(v.Z.Item,{label:"Model",name:"model",rules:[{required:!0,message:i("model_select_tips")}],children:(0,n.jsx)(x.default,{showSearch:!0,onChange:function(e,t){f(t.model),j(t.model.params)},children:null==o?void 0:o.map(e=>(0,n.jsxs)(w,{value:e.model,label:e.model,model:e,disabled:!e.enabled,children:[(0,p.A)(e.model),(0,n.jsx)(d.Z,{title:e.enabled?e.model:i("download_model_tip"),children:(0,n.jsx)("span",{className:"ml-2",children:e.model})}),(0,n.jsx)(d.Z,{title:e.enabled?"".concat(e.host,":").concat(e.port):i("download_model_tip"),children:(0,n.jsxs)("p",{className:"inline-block absolute right-4",children:[(0,n.jsxs)("span",{children:[e.host,":"]}),(0,n.jsx)("span",{children:e.port})]})})]},e.model))})}),(0,n.jsx)(_,{params:h,form:Z}),(0,n.jsxs)("div",{className:"flex justify-center",children:[(0,n.jsx)(b.ZP,{type:"primary",htmlType:"submit",loading:y,children:i("submit")}),(0,n.jsx)(b.ZP,{className:"ml-10",onClick:t,children:"Cancel"})]})]})},C=l(12069),N=function(){let{t:e}=(0,s.$G)(),[t,l]=(0,a.useState)([]),[i,o]=(0,a.useState)(!1);async function c(){let[,e]=await (0,r.Vx)((0,r.fZ)());l(null!=e?e:[])}return(0,a.useEffect)(()=>{c()},[]),(0,n.jsxs)("div",{className:"p-4 md:p-6 h-full",children:[(0,n.jsx)(b.ZP,{className:"mb-4",type:"primary",onClick:()=>{o(!0)},children:e("create_model")}),(0,n.jsx)("div",{className:"flex flex-wrap -m-1 md:-m-2",children:t.map(e=>(0,n.jsx)(h,{info:e},e.model_name))}),(0,n.jsx)(C.default,{width:800,open:i,title:e("create_model"),onCancel:()=>{o(!1)},footer:null,children:(0,n.jsx)(Z,{onCancel:()=>{o(!1)},onSuccess:()=>{o(!1),c()}})})]})}}},function(e){e.O(0,[885,64,479,9,947,928,774,888,179],function(){return e(e.s=80476)}),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[495],{22624:function(e,t,l){"use strict";var n=l(64836);t.Z=void 0;var r=n(l(64938)),a=l(85893),s=(0,r.default)([(0,a.jsx)("circle",{cx:"15.5",cy:"9.5",r:"1.5"},"0"),(0,a.jsx)("circle",{cx:"8.5",cy:"9.5",r:"1.5"},"1"),(0,a.jsx)("circle",{cx:"15.5",cy:"9.5",r:"1.5"},"2"),(0,a.jsx)("circle",{cx:"8.5",cy:"9.5",r:"1.5"},"3"),(0,a.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm0-2.5c2.33 0 4.32-1.45 5.12-3.5h-1.67c-.69 1.19-1.97 2-3.45 2s-2.75-.81-3.45-2H6.88c.8 2.05 2.79 3.5 5.12 3.5z"},"4")],"SentimentSatisfiedAlt");t.Z=s},49769:function(e,t,l){"use strict";var n=l(64836);t.Z=void 0;var r=n(l(64938)),a=l(85893),s=(0,r.default)([(0,a.jsx)("circle",{cx:"15.5",cy:"9.5",r:"1.5"},"0"),(0,a.jsx)("circle",{cx:"8.5",cy:"9.5",r:"1.5"},"1"),(0,a.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm0-6c-2.33 0-4.32 1.45-5.12 3.5h1.67c.69-1.19 1.97-2 3.45-2s2.75.81 3.45 2h1.67c-.8-2.05-2.79-3.5-5.12-3.5z"},"2")],"SentimentVeryDissatisfied");t.Z=s},98034:function(e,t,l){"use strict";var n=l(64836);t.Z=void 0;var r=n(l(64938)),a=l(85893),s=(0,r.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 2zm4 14H8V8h8v8z"}),"StopCircle");t.Z=s},64938:function(e,t,l){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n.createSvgIcon}});var n=l(52869)},52869:function(e,t,l){"use strict";l.r(t),l.d(t,{capitalize:function(){return r.Z},createChainedFunction:function(){return a},createSvgIcon:function(){return s.Z},debounce:function(){return i},deprecatedPropType:function(){return o},isMuiElement:function(){return c},ownerDocument:function(){return u},ownerWindow:function(){return d},requirePropFactory:function(){return m},setRef:function(){return f},unstable_ClassNameGenerator:function(){return g},unstable_useEnhancedEffect:function(){return p},unstable_useId:function(){return h},unsupportedProp:function(){return x},useControlled:function(){return v},useEventCallback:function(){return b},useForkRef:function(){return j},useIsFocusVisible:function(){return y}});var n=l(37078),r=l(98216),a=function(...e){return e.reduce((e,t)=>null==t?e:function(...l){e.apply(this,l),t.apply(this,l)},()=>{})},s=l(34678),i=l(39336).Z,o=function(e,t){return()=>null},c=l(18719).Z,u=l(82690).Z,d=l(74161).Z;l(87462);var m=function(e,t){return()=>null},f=l(7960).Z,p=l(73546).Z,h=l(92996).Z,x=function(e,t,l,n,r){return null},v=l(19032).Z,b=l(59948).Z,j=l(33703).Z,y=l(99962).Z;let g={configure:e=>{n.Z.configure(e)}}},84567:function(e,t,l){"use strict";l.d(t,{Z:function(){return g}});var n=l(94184),r=l.n(n),a=l(50132),s=l(67294),i=l(53124),o=l(98866),c=l(65223);let u=s.createContext(null);var d=l(63185),m=l(45353),f=l(17415),p=function(e,t){var l={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(l[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,n=Object.getOwnPropertySymbols(e);rt.indexOf(n[r])&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(l[n[r]]=e[n[r]]);return l};let h=s.forwardRef((e,t)=>{var l;let{prefixCls:n,className:h,rootClassName:x,children:v,indeterminate:b=!1,style:j,onMouseEnter:y,onMouseLeave:g,skipGroup:_=!1,disabled:w}=e,Z=p(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:C,direction:N,checkbox:k}=s.useContext(i.E_),O=s.useContext(u),{isFormItemInput:E}=s.useContext(c.aM),S=s.useContext(o.Z),P=null!==(l=(null==O?void 0:O.disabled)||w)&&void 0!==l?l:S,M=s.useRef(Z.value);s.useEffect(()=>{null==O||O.registerValue(Z.value)},[]),s.useEffect(()=>{if(!_)return Z.value!==M.current&&(null==O||O.cancelValue(M.current),null==O||O.registerValue(Z.value),M.current=Z.value),()=>null==O?void 0:O.cancelValue(Z.value)},[Z.value]);let V=C("checkbox",n),[$,I]=(0,d.ZP)(V),z=Object.assign({},Z);O&&!_&&(z.onChange=function(){Z.onChange&&Z.onChange.apply(Z,arguments),O.toggleOption&&O.toggleOption({label:v,value:Z.value})},z.name=O.name,z.checked=O.value.includes(Z.value));let H=r()(`${V}-wrapper`,{[`${V}-rtl`]:"rtl"===N,[`${V}-wrapper-checked`]:z.checked,[`${V}-wrapper-disabled`]:P,[`${V}-wrapper-in-form-item`]:E},null==k?void 0:k.className,h,x,I),F=r()({[`${V}-indeterminate`]:b},f.A,I);return $(s.createElement(m.Z,{component:"Checkbox",disabled:P},s.createElement("label",{className:H,style:Object.assign(Object.assign({},null==k?void 0:k.style),j),onMouseEnter:y,onMouseLeave:g},s.createElement(a.Z,Object.assign({"aria-checked":b?"mixed":void 0},z,{prefixCls:V,className:F,disabled:P,ref:t})),void 0!==v&&s.createElement("span",null,v))))});var x=l(74902),v=l(98423),b=function(e,t){var l={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(l[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,n=Object.getOwnPropertySymbols(e);rt.indexOf(n[r])&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(l[n[r]]=e[n[r]]);return l};let j=s.forwardRef((e,t)=>{let{defaultValue:l,children:n,options:a=[],prefixCls:o,className:c,rootClassName:m,style:f,onChange:p}=e,j=b(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:y,direction:g}=s.useContext(i.E_),[_,w]=s.useState(j.value||l||[]),[Z,C]=s.useState([]);s.useEffect(()=>{"value"in j&&w(j.value||[])},[j.value]);let N=s.useMemo(()=>a.map(e=>"string"==typeof e||"number"==typeof e?{label:e,value:e}:e),[a]),k=y("checkbox",o),O=`${k}-group`,[E,S]=(0,d.ZP)(k),P=(0,v.Z)(j,["value","disabled"]),M=a.length?N.map(e=>s.createElement(h,{prefixCls:k,key:e.value.toString(),disabled:"disabled"in e?e.disabled:j.disabled,value:e.value,checked:_.includes(e.value),onChange:e.onChange,className:`${O}-item`,style:e.style,title:e.title},e.label)):n,V={toggleOption:e=>{let t=_.indexOf(e.value),l=(0,x.Z)(_);-1===t?l.push(e.value):l.splice(t,1),"value"in j||w(l),null==p||p(l.filter(e=>Z.includes(e)).sort((e,t)=>{let l=N.findIndex(t=>t.value===e),n=N.findIndex(e=>e.value===t);return l-n}))},value:_,disabled:j.disabled,name:j.name,registerValue:e=>{C(t=>[].concat((0,x.Z)(t),[e]))},cancelValue:e=>{C(t=>t.filter(t=>t!==e))}},$=r()(O,{[`${O}-rtl`]:"rtl"===g},c,m,S);return E(s.createElement("div",Object.assign({className:$,style:f},P,{ref:t}),s.createElement(u.Provider,{value:V},M)))});var y=s.memo(j);h.Group=y,h.__ANT_CHECKBOX=!0;var g=h},80476:function(e,t,l){(window.__NEXT_P=window.__NEXT_P||[]).push(["/models",function(){return l(93167)}])},81799:function(e,t,l){"use strict";l.d(t,{A:function(){return d}});var n=l(85893),r=l(41468),a=l(51009),s=l(19284),i=l(25675),o=l.n(i),c=l(67294),u=l(67421);function d(e,t){var l;let{width:r,height:a}=t||{};return e?(0,n.jsx)(o(),{className:"rounded-full border border-gray-200 object-contain bg-white inline-block",width:r||24,height:a||24,src:(null===(l=s.Hf[e])||void 0===l?void 0:l.icon)||"/models/huggingface.svg",alt:"llm"}):null}t.Z=function(e){let{onChange:t}=e,{t:l}=(0,u.$G)(),{modelList:i,model:o}=(0,c.useContext)(r.p);return!i||i.length<=0?null:(0,n.jsx)(a.default,{value:o,placeholder:l("choose_model"),className:"w-52",onChange:e=>{null==t||t(e)},children:i.map(e=>{var t;return(0,n.jsx)(a.default.Option,{children:(0,n.jsxs)("div",{className:"flex items-center",children:[d(e),(0,n.jsx)("span",{className:"ml-2",children:(null===(t=s.Hf[e])||void 0===t?void 0:t.label)||e})]})},e)})})}},93167:function(e,t,l){"use strict";l.r(t),l.d(t,{default:function(){return N}});var n=l(85893),r=l(50489),a=l(67294),s=l(67421),i=l(22624),o=l(49769),c=l(98034),u=l(2453),d=l(83062),m=l(30381),f=l.n(m),p=l(81799),h=function(e){let{info:t}=e,{t:l}=(0,s.$G)(),[m,h]=(0,a.useState)(!1);async function x(e){if(m)return;h(!0);let[,t]=await (0,r.Vx)((0,r.kU)({host:e.host,port:e.port,model:e.model_name,worker_type:e.model_type,params:{}}));h(!1),!0===t&&u.ZP.success(l("stop_model_success"))}return(0,n.jsx)("div",{className:"relative flex flex-col p-1 md:p-2 sm:w-1/2 lg:w-1/3",children:(0,n.jsx)("div",{className:"relative flex items-center p-4 min-w-min rounded-lg justify-between bg-white border-gray-200 border hover:shadow-md dark:border-gray-600 dark:bg-black dark:hover:border-white transition-all text-black dark:text-white",children:(0,n.jsxs)("div",{className:"flex flex-col",children:[t.healthy&&(0,n.jsx)(d.Z,{title:"Healthy",children:(0,n.jsx)(i.Z,{className:"absolute top-4 right-4 !text-3xl !text-green-600"})}),!t.healthy&&(0,n.jsx)(d.Z,{title:"Unhealthy",children:(0,n.jsx)(o.Z,{className:"absolute top-4 right-4 !text-3xl !text-red-600"})}),(0,n.jsx)(d.Z,{title:"Stop Model",children:(0,n.jsx)(c.Z,{className:"absolute right-4 bottom-4 !text-3xl !text-orange-600 cursor-pointer",onClick:()=>{x(t)}})}),(0,n.jsxs)("div",{className:"flex items-center",children:[(0,p.A)(t.model_name,{width:32,height:32}),(0,n.jsxs)("div",{className:"inline-block ml-2",children:[(0,n.jsx)("h3",{className:"text-lg font-semibold",children:t.model_name}),(0,n.jsx)("h3",{className:"text-sm opacity-60",children:t.model_type})]})]}),(0,n.jsxs)("div",{className:"text-sm mt-2",children:[(0,n.jsx)("p",{className:"font-semibold",children:"Host:"}),(0,n.jsx)("p",{className:"opacity-60",children:t.host}),(0,n.jsx)("p",{className:"font-semibold mt-2",children:"Manage host:"}),(0,n.jsxs)("p",{className:"opacity-60",children:[(0,n.jsxs)("span",{children:[t.manager_host,":"]}),(0,n.jsx)("span",{children:t.manager_port})]}),(0,n.jsx)("p",{className:"font-semibold mt-2",children:"Last heart beat:"}),(0,n.jsx)("p",{className:"opacity-60",children:f()(t.last_heartbeat).format("YYYY-MM-DD HH:MM:SS")})]})]})})})},x=l(51009),v=l(39479),b=l(71577),j=l(59566),y=l(48928),g=l(84567),_=function(e){let{params:t,form:l}=e;return((0,a.useEffect)(()=>{if(t){let e={};t.forEach(t=>{e[t.param_name]=t.default_value}),l.setFieldsValue(e)}},[t,l]),!t||(null==t?void 0:t.length)<1)?null:(0,n.jsx)(n.Fragment,{children:null==t?void 0:t.map(e=>{var t;return(0,n.jsx)(v.Z.Item,{label:(0,n.jsx)("p",{className:"whitespace-normal overflow-wrap-break-word",children:(null===(t=e.description)||void 0===t?void 0:t.length)>20?e.param_name:e.description}),name:e.param_name,initialValue:e.default_value,valuePropName:"bool"===e.param_type?"checked":"value",tooltip:e.description,rules:[{required:e.required,message:"Please input ".concat(e.description)}],children:function(e){switch(e.param_type){case"str":return(0,n.jsx)(j.default,{});case"int":return(0,n.jsx)(y.Z,{});case"bool":return(0,n.jsx)(g.Z,{})}}(e)},e.param_name)})})};let{Option:w}=x.default;var Z=function(e){let{onCancel:t,onSuccess:l}=e,{t:i}=(0,s.$G)(),[o,c]=(0,a.useState)([]),[m,f]=(0,a.useState)(),[h,j]=(0,a.useState)(null),[y,g]=(0,a.useState)(!1),[Z]=v.Z.useForm();async function C(){let[,e]=await (0,r.Vx)((0,r.xv)());e&&e.length&&c(e.sort((e,t)=>e.enabled&&!t.enabled?-1:!e.enabled&&t.enabled?1:e.model.localeCompare(t.model))),c(e)}async function N(e){if(!m)return;delete e.model,g(!0);let[,,t]=await (0,r.Vx)((0,r.vA)({host:m.host,port:m.port,model:m.model,worker_type:null==m?void 0:m.worker_type,params:e}));if(g(!1),(null==t?void 0:t.success)===!0)return l&&l(),u.ZP.success(i("start_model_success"))}return(0,a.useEffect)(()=>{C()},[]),(0,n.jsxs)(v.Z,{labelCol:{span:8},wrapperCol:{span:16},onFinish:N,form:Z,children:[(0,n.jsx)(v.Z.Item,{label:"Model",name:"model",rules:[{required:!0,message:i("model_select_tips")}],children:(0,n.jsx)(x.default,{showSearch:!0,onChange:function(e,t){f(t.model),j(t.model.params)},children:null==o?void 0:o.map(e=>(0,n.jsxs)(w,{value:e.model,label:e.model,model:e,disabled:!e.enabled,children:[(0,p.A)(e.model),(0,n.jsx)(d.Z,{title:e.enabled?e.model:i("download_model_tip"),children:(0,n.jsx)("span",{className:"ml-2",children:e.model})}),(0,n.jsx)(d.Z,{title:e.enabled?"".concat(e.host,":").concat(e.port):i("download_model_tip"),children:(0,n.jsxs)("p",{className:"inline-block absolute right-4",children:[(0,n.jsxs)("span",{children:[e.host,":"]}),(0,n.jsx)("span",{children:e.port})]})})]},e.model))})}),(0,n.jsx)(_,{params:h,form:Z}),(0,n.jsxs)("div",{className:"flex justify-center",children:[(0,n.jsx)(b.ZP,{type:"primary",htmlType:"submit",loading:y,children:i("submit")}),(0,n.jsx)(b.ZP,{className:"ml-10",onClick:t,children:"Cancel"})]})]})},C=l(12069),N=function(){let{t:e}=(0,s.$G)(),[t,l]=(0,a.useState)([]),[i,o]=(0,a.useState)(!1);async function c(){let[,e]=await (0,r.Vx)((0,r.fZ)());l(null!=e?e:[])}return(0,a.useEffect)(()=>{c()},[]),(0,n.jsxs)("div",{className:"p-4 md:p-6 h-full",children:[(0,n.jsx)(b.ZP,{className:"mb-4",type:"primary",onClick:()=>{o(!0)},children:e("create_model")}),(0,n.jsx)("div",{className:"flex flex-wrap -m-1 md:-m-2",children:t.map(e=>(0,n.jsx)(h,{info:e},e.model_name))}),(0,n.jsx)(C.default,{width:800,open:i,title:e("create_model"),onCancel:()=>{o(!1)},footer:null,children:(0,n.jsx)(Z,{onCancel:()=>{o(!1)},onSuccess:()=>{o(!1),c()}})})]})}}},function(e){e.O(0,[885,113,17,9,479,947,928,774,888,179],function(){return e(e.s=80476)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/dbgpt/app/static/_next/static/chunks/pages/prompt-97278ad1c0c6458d.js b/dbgpt/app/static/_next/static/chunks/pages/prompt-97278ad1c0c6458d.js deleted file mode 100644 index ea7ec52d8..000000000 --- a/dbgpt/app/static/_next/static/chunks/pages/prompt-97278ad1c0c6458d.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[12],{27547:function(e,t,n){"use strict";var o=n(64836);t.Z=void 0;var i=o(n(64938)),a=n(85893),r=(0,i.default)((0,a.jsx)("path",{d:"M12 12.75c1.63 0 3.07.39 4.24.9 1.08.48 1.76 1.56 1.76 2.73V18H6v-1.61c0-1.18.68-2.26 1.76-2.73 1.17-.52 2.61-.91 4.24-.91zM4 13c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm1.13 1.1c-.37-.06-.74-.1-1.13-.1-.99 0-1.93.21-2.78.58C.48 14.9 0 15.62 0 16.43V18h4.5v-1.61c0-.83.23-1.61.63-2.29zM20 13c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm4 3.43c0-.81-.48-1.53-1.22-1.85-.85-.37-1.79-.58-2.78-.58-.39 0-.76.04-1.13.1.4.68.63 1.46.63 2.29V18H24v-1.57zM12 6c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3z"}),"Groups");t.Z=r},15398:function(e,t,n){"use strict";var o=n(64836);t.Z=void 0;var i=o(n(64938)),a=n(85893),r=(0,i.default)((0,a.jsx)("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");t.Z=r},64938:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o.createSvgIcon}});var o=n(52869)},52869:function(e,t,n){"use strict";n.r(t),n.d(t,{capitalize:function(){return i.Z},createChainedFunction:function(){return a},createSvgIcon:function(){return r.Z},debounce:function(){return s},deprecatedPropType:function(){return l},isMuiElement:function(){return c},ownerDocument:function(){return u},ownerWindow:function(){return p},requirePropFactory:function(){return m},setRef:function(){return d},unstable_ClassNameGenerator:function(){return b},unstable_useEnhancedEffect:function(){return f},unstable_useId:function(){return h},unsupportedProp:function(){return g},useControlled:function(){return S},useEventCallback:function(){return v},useForkRef:function(){return y},useIsFocusVisible:function(){return x}});var o=n(37078),i=n(98216),a=function(...e){return e.reduce((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)},()=>{})},r=n(34678),s=n(39336).Z,l=function(e,t){return()=>null},c=n(18719).Z,u=n(82690).Z,p=n(74161).Z;n(87462);var m=function(e,t){return()=>null},d=n(7960).Z,f=n(73546).Z,h=n(92996).Z,g=function(e,t,n,o,i){return null},S=n(19032).Z,v=n(59948).Z,y=n(33703).Z,x=n(99962).Z;let b={configure:e=>{o.Z.configure(e)}}},57838:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var o=n(67294);function i(){let[,e]=o.useReducer(e=>e+1,0);return e}},75081:function(e,t,n){"use strict";n.d(t,{Z:function(){return b}});var o=n(94184),i=n.n(o),a=n(98423),r=n(67294),s=n(96159),l=n(53124),c=n(23183),u=n(14747),p=n(67968),m=n(45503);let d=new c.E4("antSpinMove",{to:{opacity:1}}),f=new c.E4("antRotate",{to:{transform:"rotate(405deg)"}}),h=e=>({[`${e.componentCls}`]:Object.assign(Object.assign({},(0,u.Wf)(e)),{position:"absolute",display:"none",color:e.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"static",display:"inline-block",opacity:1},"&-nested-loading":{position:"relative",[`> div > ${e.componentCls}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${e.componentCls}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:-e.spinDotSize/2},[`${e.componentCls}-text`]:{position:"absolute",top:"50%",width:"100%",paddingTop:(e.spinDotSize-e.fontSize)/2+2,textShadow:`0 1px 2px ${e.colorBgContainer}`,fontSize:e.fontSize},[`&${e.componentCls}-show-text ${e.componentCls}-dot`]:{marginTop:-(e.spinDotSize/2)-10},"&-sm":{[`${e.componentCls}-dot`]:{margin:-e.spinDotSizeSM/2},[`${e.componentCls}-text`]:{paddingTop:(e.spinDotSizeSM-e.fontSize)/2+2},[`&${e.componentCls}-show-text ${e.componentCls}-dot`]:{marginTop:-(e.spinDotSizeSM/2)-10}},"&-lg":{[`${e.componentCls}-dot`]:{margin:-(e.spinDotSizeLG/2)},[`${e.componentCls}-text`]:{paddingTop:(e.spinDotSizeLG-e.fontSize)/2+2},[`&${e.componentCls}-show-text ${e.componentCls}-dot`]:{marginTop:-(e.spinDotSizeLG/2)-10}}},[`${e.componentCls}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${e.componentCls}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${e.componentCls}-dot`]:{position:"relative",display:"inline-block",fontSize:e.spinDotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:(e.spinDotSize-e.marginXXS/2)/2,height:(e.spinDotSize-e.marginXXS/2)/2,backgroundColor:e.colorPrimary,borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:d,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:f,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&-sm ${e.componentCls}-dot`]:{fontSize:e.spinDotSizeSM,i:{width:(e.spinDotSizeSM-e.marginXXS/2)/2,height:(e.spinDotSizeSM-e.marginXXS/2)/2}},[`&-lg ${e.componentCls}-dot`]:{fontSize:e.spinDotSizeLG,i:{width:(e.spinDotSizeLG-e.marginXXS)/2,height:(e.spinDotSizeLG-e.marginXXS)/2}},[`&${e.componentCls}-show-text ${e.componentCls}-text`]:{display:"block"}})});var g=(0,p.Z)("Spin",e=>{let t=(0,m.TS)(e,{spinDotDefault:e.colorTextDescription,spinDotSize:e.controlHeightLG/2,spinDotSizeSM:.35*e.controlHeightLG,spinDotSizeLG:e.controlHeight});return[h(t)]},{contentHeight:400}),S=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&0>t.indexOf(o)&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,o=Object.getOwnPropertySymbols(e);it.indexOf(o[i])&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]]);return n};let v=null,y=e=>{let{spinPrefixCls:t,spinning:n=!0,delay:o=0,className:c,rootClassName:u,size:p="default",tip:m,wrapperClassName:d,style:f,children:h,hashId:g}=e,y=S(e,["spinPrefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","hashId"]),[x,b]=r.useState(()=>n&&(!n||!o||!!isNaN(Number(o))));r.useEffect(()=>{if(n){var e;let t=function(e,t,n){var o,i=n||{},a=i.noTrailing,r=void 0!==a&&a,s=i.noLeading,l=void 0!==s&&s,c=i.debounceMode,u=void 0===c?void 0:c,p=!1,m=0;function d(){o&&clearTimeout(o)}function f(){for(var n=arguments.length,i=Array(n),a=0;ae?l?(m=Date.now(),r||(o=setTimeout(u?h:f,e))):f():!0!==r&&(o=setTimeout(u?h:f,void 0===u?e-c:e)))}return f.cancel=function(e){var t=(e||{}).upcomingOnly;d(),p=!(void 0!==t&&t)},f}(o,()=>{b(!0)},{debounceMode:!1!==(void 0!==(e=({}).atBegin)&&e)});return t(),()=>{var e;null===(e=null==t?void 0:t.cancel)||void 0===e||e.call(t)}}b(!1)},[o,n]);let _=r.useMemo(()=>void 0!==h,[h]),{direction:C,spin:w}=r.useContext(l.E_),I=i()(t,null==w?void 0:w.className,{[`${t}-sm`]:"small"===p,[`${t}-lg`]:"large"===p,[`${t}-spinning`]:x,[`${t}-show-text`]:!!m,[`${t}-rtl`]:"rtl"===C},c,u,g),$=i()(`${t}-container`,{[`${t}-blur`]:x}),z=(0,a.Z)(y,["indicator","prefixCls"]),j=Object.assign(Object.assign({},null==w?void 0:w.style),f),P=r.createElement("div",Object.assign({},z,{style:j,className:I,"aria-live":"polite","aria-busy":x}),function(e,t){let{indicator:n}=t,o=`${e}-dot`;return null===n?null:(0,s.l$)(n)?(0,s.Tm)(n,{className:i()(n.props.className,o)}):(0,s.l$)(v)?(0,s.Tm)(v,{className:i()(v.props.className,o)}):r.createElement("span",{className:i()(o,`${e}-dot-spin`)},r.createElement("i",{className:`${e}-dot-item`,key:1}),r.createElement("i",{className:`${e}-dot-item`,key:2}),r.createElement("i",{className:`${e}-dot-item`,key:3}),r.createElement("i",{className:`${e}-dot-item`,key:4}))}(t,e),m&&_?r.createElement("div",{className:`${t}-text`},m):null);return _?r.createElement("div",Object.assign({},z,{className:i()(`${t}-nested-loading`,d,g)}),x&&r.createElement("div",{key:"loading"},P),r.createElement("div",{className:$,key:"container"},h)):P},x=e=>{let{prefixCls:t}=e,{getPrefixCls:n}=r.useContext(l.E_),o=n("spin",t),[i,a]=g(o),s=Object.assign(Object.assign({},e),{spinPrefixCls:o,hashId:a});return i(r.createElement(y,Object.assign({},s)))};x.setDefaultIndicator=e=>{v=e};var b=x},40534:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/prompt",function(){return n(10519)}])},10519:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return _}});var o=n(85893),i=n(67294),a=n(83062),r=n(71577),s=n(82610),l=n(61607),c=n(12069),u=n(24969),p=n(27547),m=n(15398),d=n(67421),f=n(50489),h=n(39479),g=n(75081),S=n(51009),v=n(59566),y=(0,i.forwardRef)(function(e,t){let{t:n}=(0,d.$G)(),[a]=h.Z.useForm(),{prompt:r,onFinish:s,scenes:l}=e,[c,u]=(0,i.useState)(!1);(0,i.useEffect)(()=>{r&&a.setFieldsValue(r)},[]);let p=async()=>{let e=a.getFieldsValue();u(!0),await s(e),u(!1)};return(0,o.jsx)(g.Z,{spinning:c,children:(0,o.jsxs)(h.Z,{form:a,ref:t,name:"prompt-item-".concat((null==r?void 0:r.prompt_name)||"new"),layout:"vertical",className:"mt-4",onFinish:p,children:[(0,o.jsx)(h.Z.Item,{name:"chat_scene",label:n("Prompt_Info_Scene"),rules:[{required:!0,message:n("Please_Input")+n("Prompt_Info_Scene")}],children:(0,o.jsx)(S.default,{options:l})}),(0,o.jsx)(h.Z.Item,{name:"sub_chat_scene",label:n("Prompt_Info_Sub_Scene"),rules:[{required:!0,message:n("Please_Input")+n("Prompt_Info_Sub_Scene")}],children:(0,o.jsx)(v.default,{})}),(0,o.jsx)(h.Z.Item,{name:"prompt_name",label:n("Prompt_Info_Name"),rules:[{required:!0,message:n("Please_Input")+n("Prompt_Info_Name")}],children:(0,o.jsx)(v.default,{disabled:!!r})}),(0,o.jsx)(h.Z.Item,{name:"content",label:n("Prompt_Info_Content"),rules:[{required:!0,message:n("Please_Input")+n("Prompt_Info_Content")}],children:(0,o.jsx)(v.default.TextArea,{rows:6})})]})})});let x=e=>[{label:e("Public")+" Prompts",key:"common",icon:(0,o.jsx)(p.Z,{})},{label:e("Private")+" Prompts",key:"private",icon:(0,o.jsx)(m.Z,{})}],b=(e,t)=>[{title:e("Prompt_Info_Name"),dataIndex:"prompt_name",key:"prompt_name"},{title:e("Prompt_Info_Scene"),dataIndex:"chat_scene",key:"chat_scene"},{title:e("Prompt_Info_Sub_Scene"),dataIndex:"sub_chat_scene",key:"sub_chat_scene"},{title:e("Prompt_Info_Content"),dataIndex:"content",key:"content",render:e=>(0,o.jsx)(a.Z,{placement:"topLeft",title:e,children:e})},{title:e("Operation"),dataIndex:"operate",key:"operate",render:(n,i)=>(0,o.jsx)(r.ZP,{onClick:()=>{t(i)},type:"primary",children:e("Edit")})}];var _=()=>{let{t:e}=(0,d.$G)(),[t,n]=(0,i.useState)("common"),[a,p]=(0,i.useState)(),[m,h]=(0,i.useState)(!1),[g,S]=(0,i.useState)(),[v,_]=(0,i.useState)(!1),[C,w]=(0,i.useState)(),I=(0,i.useRef)(),$=async()=>{h(!0);let[e,n]=await (0,f.Vx)((0,f.xA)({prompt_type:t,current:1,pageSize:1e3,hideOnSinglePage:!0,showQuickJumper:!0}));p(n),h(!1)},z=async()=>{let[,e]=await (0,f.Vx)((0,f.CU)());w(null==e?void 0:e.map(e=>({value:e.chat_scene,label:e.scene_name})))},j=async e=>{g?await (0,f.Vx)((0,f.Fu)({...e,prompt_type:t})):await (0,f.Vx)((0,f.Hy)({...e,prompt_type:t})),$(),P()},P=()=>{_(!1)};return(0,i.useEffect)(()=>{$()},[t]),(0,i.useEffect)(()=>{z()},[]),(0,o.jsxs)("div",{children:[(0,o.jsx)(s.Z,{onClick:e=>{let t=e.key;n(t)},selectedKeys:[t],mode:"horizontal",items:x(e)}),(0,o.jsxs)("div",{className:"px-6 py-4",children:[(0,o.jsxs)("div",{className:"flex flex-row-reverse mb-4",children:[(0,o.jsxs)(r.ZP,{className:"flex items-center",onClick:()=>{_(!0),S(void 0)},children:[(0,o.jsx)(u.Z,{}),e("Add")," Prompts"]}),"common"===t&&(0,o.jsxs)(r.ZP,{className:"mr-2 flex items-center",disabled:!0,children:[(0,o.jsx)(u.Z,{}),e("Add")," Prompts ",e("template")]})]}),(0,o.jsx)(l.Z,{columns:b(e,e=>{S(e),_(!0)}),dataSource:a,loading:m,rowKey:e=>e.prompt_name,scroll:{y:600}})]}),(0,o.jsx)(c.default,{title:"".concat(e(g?"Edit":"Add")," Prompts"),destroyOnClose:!0,open:v,onCancel:P,cancelText:e("cancel"),okText:e("submit"),onOk:()=>{var e;null===(e=I.current)||void 0===e||e.submit()},children:(0,o.jsx)(y,{scenes:C,ref:I,prompt:g,onFinish:j})})]})}}},function(e){e.O(0,[64,479,9,947,45,346,270,607,774,888,179],function(){return e(e.s=40534)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/dbgpt/app/static/_next/static/chunks/pages/prompt-fca5ed813d5018b1.js b/dbgpt/app/static/_next/static/chunks/pages/prompt-fca5ed813d5018b1.js new file mode 100644 index 000000000..76dde548f --- /dev/null +++ b/dbgpt/app/static/_next/static/chunks/pages/prompt-fca5ed813d5018b1.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[12],{27547:function(e,t,n){"use strict";var r=n(64836);t.Z=void 0;var u=r(n(64938)),s=n(85893),o=(0,u.default)((0,s.jsx)("path",{d:"M12 12.75c1.63 0 3.07.39 4.24.9 1.08.48 1.76 1.56 1.76 2.73V18H6v-1.61c0-1.18.68-2.26 1.76-2.73 1.17-.52 2.61-.91 4.24-.91zM4 13c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm1.13 1.1c-.37-.06-.74-.1-1.13-.1-.99 0-1.93.21-2.78.58C.48 14.9 0 15.62 0 16.43V18h4.5v-1.61c0-.83.23-1.61.63-2.29zM20 13c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm4 3.43c0-.81-.48-1.53-1.22-1.85-.85-.37-1.79-.58-2.78-.58-.39 0-.76.04-1.13.1.4.68.63 1.46.63 2.29V18H24v-1.57zM12 6c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3z"}),"Groups");t.Z=o},15398:function(e,t,n){"use strict";var r=n(64836);t.Z=void 0;var u=r(n(64938)),s=n(85893),o=(0,u.default)((0,s.jsx)("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");t.Z=o},64938:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r.createSvgIcon}});var r=n(52869)},52869:function(e,t,n){"use strict";n.r(t),n.d(t,{capitalize:function(){return u.Z},createChainedFunction:function(){return s},createSvgIcon:function(){return o.Z},debounce:function(){return c},deprecatedPropType:function(){return a},isMuiElement:function(){return i},ownerDocument:function(){return l},ownerWindow:function(){return d},requirePropFactory:function(){return f},setRef:function(){return m},unstable_ClassNameGenerator:function(){return b},unstable_useEnhancedEffect:function(){return p},unstable_useId:function(){return _},unsupportedProp:function(){return x},useControlled:function(){return h},useEventCallback:function(){return Z},useForkRef:function(){return P},useIsFocusVisible:function(){return v}});var r=n(37078),u=n(98216),s=function(...e){return e.reduce((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)},()=>{})},o=n(34678),c=n(39336).Z,a=function(e,t){return()=>null},i=n(18719).Z,l=n(82690).Z,d=n(74161).Z;n(87462);var f=function(e,t){return()=>null},m=n(7960).Z,p=n(73546).Z,_=n(92996).Z,x=function(e,t,n,r,u){return null},h=n(19032).Z,Z=n(59948).Z,P=n(33703).Z,v=n(99962).Z;let b={configure:e=>{r.Z.configure(e)}}},57838:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(67294);function u(){let[,e]=r.useReducer(e=>e+1,0);return e}},40534:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/prompt",function(){return n(10519)}])},10519:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return y}});var r=n(85893),u=n(67294),s=n(83062),o=n(71577),c=n(82610),a=n(61607),i=n(12069),l=n(24969),d=n(27547),f=n(15398),m=n(67421),p=n(50489),_=n(39479),x=n(75081),h=n(51009),Z=n(59566),P=(0,u.forwardRef)(function(e,t){let{t:n}=(0,m.$G)(),[s]=_.Z.useForm(),{prompt:o,onFinish:c,scenes:a}=e,[i,l]=(0,u.useState)(!1);(0,u.useEffect)(()=>{o&&s.setFieldsValue(o)},[]);let d=async()=>{let e=s.getFieldsValue();l(!0),await c(e),l(!1)};return(0,r.jsx)(x.Z,{spinning:i,children:(0,r.jsxs)(_.Z,{form:s,ref:t,name:"prompt-item-".concat((null==o?void 0:o.prompt_name)||"new"),layout:"vertical",className:"mt-4",onFinish:d,children:[(0,r.jsx)(_.Z.Item,{name:"chat_scene",label:n("Prompt_Info_Scene"),rules:[{required:!0,message:n("Please_Input")+n("Prompt_Info_Scene")}],children:(0,r.jsx)(h.default,{options:a})}),(0,r.jsx)(_.Z.Item,{name:"sub_chat_scene",label:n("Prompt_Info_Sub_Scene"),rules:[{required:!0,message:n("Please_Input")+n("Prompt_Info_Sub_Scene")}],children:(0,r.jsx)(Z.default,{})}),(0,r.jsx)(_.Z.Item,{name:"prompt_name",label:n("Prompt_Info_Name"),rules:[{required:!0,message:n("Please_Input")+n("Prompt_Info_Name")}],children:(0,r.jsx)(Z.default,{disabled:!!o})}),(0,r.jsx)(_.Z.Item,{name:"content",label:n("Prompt_Info_Content"),rules:[{required:!0,message:n("Please_Input")+n("Prompt_Info_Content")}],children:(0,r.jsx)(Z.default.TextArea,{rows:6})})]})})});let v=e=>[{label:e("Public")+" Prompts",key:"common",icon:(0,r.jsx)(d.Z,{})},{label:e("Private")+" Prompts",key:"private",icon:(0,r.jsx)(f.Z,{})}],b=(e,t)=>[{title:e("Prompt_Info_Name"),dataIndex:"prompt_name",key:"prompt_name"},{title:e("Prompt_Info_Scene"),dataIndex:"chat_scene",key:"chat_scene"},{title:e("Prompt_Info_Sub_Scene"),dataIndex:"sub_chat_scene",key:"sub_chat_scene"},{title:e("Prompt_Info_Content"),dataIndex:"content",key:"content",render:e=>(0,r.jsx)(s.Z,{placement:"topLeft",title:e,children:e})},{title:e("Operation"),dataIndex:"operate",key:"operate",render:(n,u)=>(0,r.jsx)(o.ZP,{onClick:()=>{t(u)},type:"primary",children:e("Edit")})}];var y=()=>{let{t:e}=(0,m.$G)(),[t,n]=(0,u.useState)("common"),[s,d]=(0,u.useState)(),[f,_]=(0,u.useState)(!1),[x,h]=(0,u.useState)(),[Z,y]=(0,u.useState)(!1),[j,I]=(0,u.useState)(),S=(0,u.useRef)(),k=async()=>{_(!0);let[e,n]=await (0,p.Vx)((0,p.xA)({prompt_type:t,current:1,pageSize:1e3,hideOnSinglePage:!0,showQuickJumper:!0}));d(n),_(!1)},w=async()=>{let[,e]=await (0,p.Vx)((0,p.CU)());I(null==e?void 0:e.map(e=>({value:e.chat_scene,label:e.scene_name})))},C=async e=>{x?await (0,p.Vx)((0,p.Fu)({...e,prompt_type:t})):await (0,p.Vx)((0,p.Hy)({...e,prompt_type:t})),k(),g()},g=()=>{y(!1)};return(0,u.useEffect)(()=>{k()},[t]),(0,u.useEffect)(()=>{w()},[]),(0,r.jsxs)("div",{children:[(0,r.jsx)(c.Z,{onClick:e=>{let t=e.key;n(t)},selectedKeys:[t],mode:"horizontal",items:v(e)}),(0,r.jsxs)("div",{className:"px-6 py-4",children:[(0,r.jsxs)("div",{className:"flex flex-row-reverse mb-4",children:[(0,r.jsxs)(o.ZP,{className:"flex items-center",onClick:()=>{y(!0),h(void 0)},children:[(0,r.jsx)(l.Z,{}),e("Add")," Prompts"]}),"common"===t&&(0,r.jsxs)(o.ZP,{className:"mr-2 flex items-center",disabled:!0,children:[(0,r.jsx)(l.Z,{}),e("Add")," Prompts ",e("template")]})]}),(0,r.jsx)(a.Z,{columns:b(e,e=>{h(e),y(!0)}),dataSource:s,loading:f,rowKey:e=>e.prompt_name,scroll:{y:600}})]}),(0,r.jsx)(i.default,{title:"".concat(e(x?"Edit":"Add")," Prompts"),destroyOnClose:!0,open:Z,onCancel:g,cancelText:e("cancel"),okText:e("submit"),onOk:()=>{var e;null===(e=S.current)||void 0===e||e.submit()},children:(0,r.jsx)(P,{scenes:j,ref:S,prompt:x,onFinish:C})})]})}}},function(e){e.O(0,[113,17,9,479,947,810,45,346,607,774,888,179],function(){return e(e.s=40534)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/dbgpt/app/static/_next/static/chunks/webpack-922e9f165e4a5ce6.js b/dbgpt/app/static/_next/static/chunks/webpack-922e9f165e4a5ce6.js new file mode 100644 index 000000000..a73bf33d4 --- /dev/null +++ b/dbgpt/app/static/_next/static/chunks/webpack-922e9f165e4a5ce6.js @@ -0,0 +1 @@ +!function(){"use strict";var e,t,n,r,o,c,u,i,a,f,d,s,l={},b={};function p(e){var t=b[e];if(void 0!==t)return t.exports;var n=b[e]={id:e,loaded:!1,exports:{}},r=!0;try{l[e].call(n.exports,n,n.exports,p),r=!1}finally{r&&delete b[e]}return n.loaded=!0,n.exports}p.m=l,p.amdO={},e=[],p.O=function(t,n,r,o){if(n){o=o||0;for(var c=e.length;c>0&&e[c-1][2]>o;c--)e[c]=e[c-1];e[c]=[n,r,o];return}for(var u=1/0,c=0;c=o&&Object.keys(p.O).every(function(e){return p.O[e](n[a])})?n.splice(a--,1):(i=!1,o0&&e[u-1][2]>o;u--)e[u]=e[u-1];e[u]=[n,r,o];return}for(var c=1/0,u=0;u=o&&Object.keys(p.O).every(function(e){return p.O[e](n[a])})?n.splice(a--,1):(i=!1,o:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-scroll{overflow:scroll}.overflow-y-auto{overflow-y:auto}.overflow-y-scroll{overflow-y:scroll}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-normal{white-space:normal}.whitespace-nowrap{white-space:nowrap}.break-words{overflow-wrap:break-word}.rounded{border-radius:.25rem}.rounded-\[10px\]{border-radius:10px}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-xl{border-radius:.75rem}.rounded-br{border-bottom-right-radius:.25rem}.rounded-tl-md{border-top-left-radius:.375rem}.rounded-tr{border-top-right-radius:.25rem}.rounded-tr-md{border-top-right-radius:.375rem}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-l{border-left-width:1px}.border-l-4{border-left-width:4px}.border-r{border-right-width:1px}.border-t,.border-t-\[1px\]{border-top-width:1px}.border-solid{border-style:solid}.border-dashed{border-style:dashed}.border-none{border-style:none}.border-\[\#f0f0f0\]{--tw-border-opacity:1;border-color:rgb(240 240 240/var(--tw-border-opacity))}.border-\[var\(--joy-palette-divider\)\]{border-color:var(--joy-palette-divider)}.border-blue-600{--tw-border-opacity:1;border-color:rgb(37 99 235/var(--tw-border-opacity))}.border-gray-100{--tw-border-opacity:1;border-color:rgb(243 244 246/var(--tw-border-opacity))}.border-gray-200{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity))}.border-gray-500{--tw-border-opacity:1;border-color:rgb(107 114 128/var(--tw-border-opacity))}.border-slate-300{--tw-border-opacity:1;border-color:rgb(203 213 225/var(--tw-border-opacity))}.border-opacity-50{--tw-border-opacity:0.5}.bg-\[\#FAFAFA\]{--tw-bg-opacity:1;background-color:rgb(250 250 250/var(--tw-bg-opacity))}.bg-\[\#FFFFFF\]{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-\[\#fafafa\]{--tw-bg-opacity:1;background-color:rgb(250 250 250/var(--tw-bg-opacity))}.bg-blue-500{--tw-bg-opacity:1;background-color:rgb(59 130 246/var(--tw-bg-opacity))}.bg-gray-100{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.bg-gray-500{--tw-bg-opacity:1;background-color:rgb(107 114 128/var(--tw-bg-opacity))}.bg-gray-600{--tw-bg-opacity:1;background-color:rgb(75 85 99/var(--tw-bg-opacity))}.bg-gray-700{--tw-bg-opacity:1;background-color:rgb(55 65 81/var(--tw-bg-opacity))}.bg-green-500{--tw-bg-opacity:1;background-color:rgb(34 197 94/var(--tw-bg-opacity))}.bg-red-500{--tw-bg-opacity:1;background-color:rgb(239 68 68/var(--tw-bg-opacity))}.bg-slate-100{--tw-bg-opacity:1;background-color:rgb(241 245 249/var(--tw-bg-opacity))}.bg-slate-50{--tw-bg-opacity:1;background-color:rgb(248 250 252/var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-opacity-50{--tw-bg-opacity:0.5}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.from-\[\#31afff\]{--tw-gradient-from:#31afff var(--tw-gradient-from-position);--tw-gradient-to:rgba(49,175,255,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.to-\[\#1677ff\]{--tw-gradient-to:#1677ff var(--tw-gradient-to-position)}.object-contain{-o-object-fit:contain;object-fit:contain}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.px-0{padding-left:0;padding-right:0}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-8{padding-left:2rem;padding-right:2rem}.px-\[6px\]{padding-left:6px;padding-right:6px}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.py-\[2px\]{padding-top:2px;padding-bottom:2px}.pb-4{padding-bottom:1rem}.pb-6{padding-bottom:1.5rem}.pb-8{padding-bottom:2rem}.pl-0{padding-left:0}.pl-0\.5{padding-left:.125rem}.pl-10{padding-left:2.5rem}.pl-2{padding-left:.5rem}.pr-10{padding-right:2.5rem}.pt-0{padding-top:0}.pt-1{padding-top:.25rem}.pt-2{padding-top:.5rem}.pt-3{padding-top:.75rem}.\!text-left{text-align:left!important}.font-sans{font-family:Josefin Sans,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.\!text-2xl{font-size:1.5rem!important;line-height:2rem!important}.\!text-3xl{font-size:1.875rem!important;line-height:2.25rem!important}.\!text-lg{font-size:1.125rem!important;line-height:1.75rem!important}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-normal{font-weight:400}.font-semibold{font-weight:600}.ordinal{--tw-ordinal:ordinal;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.leading-6{line-height:1.5rem}.leading-7{line-height:1.75rem}.leading-8{line-height:2rem}.\!text-\[\#878c93\]{--tw-text-opacity:1!important;color:rgb(135 140 147/var(--tw-text-opacity))!important}.\!text-green-600{--tw-text-opacity:1!important;color:rgb(22 163 74/var(--tw-text-opacity))!important}.\!text-orange-600{--tw-text-opacity:1!important;color:rgb(234 88 12/var(--tw-text-opacity))!important}.\!text-red-600{--tw-text-opacity:1!important;color:rgb(220 38 38/var(--tw-text-opacity))!important}.text-\[\#1677ff\]{--tw-text-opacity:1;color:rgb(22 119 255/var(--tw-text-opacity))}.text-\[\#2AA3FF\]{--tw-text-opacity:1;color:rgb(42 163 255/var(--tw-text-opacity))}.text-\[\#ff1b2e\]{--tw-text-opacity:1;color:rgb(255 27 46/var(--tw-text-opacity))}.text-black{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity))}.text-blue-400{--tw-text-opacity:1;color:rgb(96 165 250/var(--tw-text-opacity))}.text-blue-500{--tw-text-opacity:1;color:rgb(59 130 246/var(--tw-text-opacity))}.text-blue-600{--tw-text-opacity:1;color:rgb(37 99 235/var(--tw-text-opacity))}.text-gray-100{--tw-text-opacity:1;color:rgb(243 244 246/var(--tw-text-opacity))}.text-gray-300{--tw-text-opacity:1;color:rgb(209 213 219/var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.text-gray-600{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity))}.text-gray-950{--tw-text-opacity:1;color:rgb(3 7 18/var(--tw-text-opacity))}.text-red-500{--tw-text-opacity:1;color:rgb(239 68 68/var(--tw-text-opacity))}.text-slate-900{--tw-text-opacity:1;color:rgb(15 23 42/var(--tw-text-opacity))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.opacity-0{opacity:0}.opacity-60{opacity:.6}.opacity-80{opacity:.8}.shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.grayscale{--tw-grayscale:grayscale(100%)}.filter,.grayscale{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-sm{--tw-backdrop-blur:blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition-\[width\]{transition-property:width;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.animate-duration-200{animation-duration:.2s}.animate-duration-300{animation-duration:.3s}body{margin:0;color:var(--joy-palette-text-primary,var(--joy-palette-neutral-800,#25252d));font-family:var(--joy-fontFamily-body,var(--joy-Josefin Sans,sans-serif));font-size:var(--joy-fontSize-md,1rem);line-height:var(--joy-lineHeight-md,1.5);background-color:var(--joy-palette-background-body)}body .ant-btn-primary{background-color:#1677ff}.ant-pagination .ant-pagination-next *,.ant-pagination .ant-pagination-prev *{color:#279bff!important}.ant-pagination .ant-pagination-item a{color:#b0b0bf}.ant-pagination .ant-pagination-item.ant-pagination-item-active{background-color:#279bff!important}.ant-pagination .ant-pagination-item.ant-pagination-item-active a{color:#fff!important}table tr td{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}::-webkit-scrollbar{display:none}::-webkit-scrollbar-track{background:#f1f1f1}::-webkit-scrollbar-thumb{background:#888}::-webkit-scrollbar-thumb:hover{background:#555}.dark :where(.css-dev-only-do-not-override-18iikkb).ant-tabs .ant-tabs-tab-btn{color:#fff}:where(.css-dev-only-do-not-override-18iikkb).ant-form-item .ant-form-item-label>label{height:36px}@keyframes rotate{to{transform:rotate(1turn)}}.rotate-animation{animation:rotate 2s linear infinite}.after\:absolute:after{content:var(--tw-content);position:absolute}.after\:-top-8:after{content:var(--tw-content);top:-2rem}.after\:h-8:after{content:var(--tw-content);height:2rem}.after\:w-full:after{content:var(--tw-content);width:100%}.after\:bg-gradient-to-t:after{content:var(--tw-content);background-image:linear-gradient(to top,var(--tw-gradient-stops))}.after\:from-white:after{content:var(--tw-content);--tw-gradient-from:#fff var(--tw-gradient-from-position);--tw-gradient-to:hsla(0,0%,100%,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.after\:to-transparent:after{content:var(--tw-content);--tw-gradient-to:transparent var(--tw-gradient-to-position)}.hover\:bg-slate-100:hover{--tw-bg-opacity:1;background-color:rgb(241 245 249/var(--tw-bg-opacity))}.hover\:\!text-gray-200:hover{--tw-text-opacity:1!important;color:rgb(229 231 235/var(--tw-text-opacity))!important}.hover\:shadow-md:hover{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.group\/item:hover .group-hover\/item\:opacity-100{opacity:1}:is(.dark .dark\:border-gray-600){--tw-border-opacity:1;border-color:rgb(75 85 99/var(--tw-border-opacity))}:is(.dark .dark\:border-gray-700){--tw-border-opacity:1;border-color:rgb(55 65 81/var(--tw-border-opacity))}:is(.dark .dark\:border-white){--tw-border-opacity:1;border-color:rgb(255 255 255/var(--tw-border-opacity))}:is(.dark .dark\:bg-\[\#1A1E26\]){--tw-bg-opacity:1;background-color:rgb(26 30 38/var(--tw-bg-opacity))}:is(.dark .dark\:bg-\[\#212121\]){--tw-bg-opacity:1;background-color:rgb(33 33 33/var(--tw-bg-opacity))}:is(.dark .dark\:bg-\[\#353539\]){--tw-bg-opacity:1;background-color:rgb(53 53 57/var(--tw-bg-opacity))}:is(.dark .dark\:bg-\[\#484848\]){--tw-bg-opacity:1;background-color:rgb(72 72 72/var(--tw-bg-opacity))}:is(.dark .dark\:bg-black){--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity))}:is(.dark .dark\:bg-gray-100){--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}:is(.dark .dark\:bg-gray-900){--tw-bg-opacity:1;background-color:rgb(17 24 39/var(--tw-bg-opacity))}:is(.dark .dark\:bg-slate-800){--tw-bg-opacity:1;background-color:rgb(30 41 59/var(--tw-bg-opacity))}:is(.dark .dark\:bg-transparent){background-color:transparent}:is(.dark .dark\:bg-opacity-50){--tw-bg-opacity:0.5}:is(.dark .dark\:bg-gradient-to-r){background-image:linear-gradient(to right,var(--tw-gradient-stops))}:is(.dark .dark\:from-\[\#6a6a6a\]){--tw-gradient-from:#6a6a6a var(--tw-gradient-from-position);--tw-gradient-to:hsla(0,0%,42%,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}:is(.dark .dark\:to-\[\#80868f\]){--tw-gradient-to:#80868f var(--tw-gradient-to-position)}:is(.dark .dark\:text-blue-400){--tw-text-opacity:1;color:rgb(96 165 250/var(--tw-text-opacity))}:is(.dark .dark\:text-gray-200){--tw-text-opacity:1;color:rgb(229 231 235/var(--tw-text-opacity))}:is(.dark .dark\:text-gray-300){--tw-text-opacity:1;color:rgb(209 213 219/var(--tw-text-opacity))}:is(.dark .dark\:text-gray-400){--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}:is(.dark .dark\:text-gray-800){--tw-text-opacity:1;color:rgb(31 41 55/var(--tw-text-opacity))}:is(.dark .dark\:text-slate-300){--tw-text-opacity:1;color:rgb(203 213 225/var(--tw-text-opacity))}:is(.dark .dark\:text-white){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}:is(.dark .dark\:after\:from-\[\#212121\]):after{content:var(--tw-content);--tw-gradient-from:#212121 var(--tw-gradient-from-position);--tw-gradient-to:rgba(33,33,33,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}:is(.dark .dark\:hover\:border-white:hover){--tw-border-opacity:1;border-color:rgb(255 255 255/var(--tw-border-opacity))}:is(.dark .dark\:hover\:bg-\[\#353539\]:hover){--tw-bg-opacity:1;background-color:rgb(53 53 57/var(--tw-bg-opacity))}@media not all and (min-width:768px){.max-md\:hidden{display:none}}@media (min-width:640px){.sm\:mr-4{margin-right:1rem}.sm\:inline-block{display:inline-block}.sm\:w-1\/2{width:50%}.sm\:w-60{width:15rem}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:px-4{padding-left:1rem;padding-right:1rem}.sm\:py-4{padding-top:1rem;padding-bottom:1rem}.sm\:pb-10{padding-bottom:2.5rem}.sm\:pt-6{padding-top:1.5rem}.sm\:text-base{font-size:1rem;line-height:1.5rem}.sm\:leading-7{line-height:1.75rem}}@media (min-width:768px){.md\:-m-2{margin:-.5rem}.md\:mt-4{margin-top:1rem}.md\:block{display:block}.md\:w-1\/2{width:50%}.md\:gap-4{gap:1rem}.md\:p-2{padding:.5rem}.md\:p-6{padding:1.5rem}.md\:px-4{padding-left:1rem;padding-right:1rem}.md\:px-6{padding-left:1.5rem;padding-right:1.5rem}.md\:pt-10{padding-top:2.5rem}.md\:pt-4{padding-top:1rem}}@media (min-width:1024px){.lg\:mr-4{margin-right:1rem}.lg\:w-1\/3{width:33.333333%}.lg\:w-72{width:18rem}.lg\:w-full{width:100%}.lg\:max-w-\[80\%\]{max-width:80%}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:px-8{padding-left:2rem;padding-right:2rem}}@media (min-width:1280px){.xl\:h-full{height:100%}.xl\:w-1\/4{width:25%}.xl\:w-3\/4{width:75%}.xl\:w-full{width:100%}.xl\:gap-x-5{-moz-column-gap:1.25rem;column-gap:1.25rem}.xl\:border-l{border-left-width:1px}.xl\:border-t-0{border-top-width:0}.xl\:pl-4{padding-left:1rem}.xl\:pr-4{padding-right:1rem}}#nprogress{pointer-events:none}#nprogress .bar{background:var(--joy-palette-primary-500,#096bde);position:fixed;z-index:10031;top:0;left:0;width:100%;height:3px}#nprogress .peg{display:block;position:absolute;right:0;width:100px;height:100%;box-shadow:0 0 10px var(--joy-palette-primary-500,#096bde),0 0 5px var(--joy-palette-primary-500,#096bde);opacity:1;transform:rotate(3deg) translateY(-4px)} \ No newline at end of file diff --git a/dbgpt/app/static/_next/static/css/da8780373819201b.css b/dbgpt/app/static/_next/static/css/da8780373819201b.css new file mode 100644 index 000000000..9e70f84fe --- /dev/null +++ b/dbgpt/app/static/_next/static/css/da8780373819201b.css @@ -0,0 +1,3 @@ +/* +! tailwindcss v3.3.2 | MIT License | https://tailwindcss.com +*/*,:after,:before{box-sizing:border-box;border:0 solid #e5e7eb}:after,:before{--tw-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:Josefin Sans,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal}body{line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.\!visible{visibility:visible!important}.visible{visibility:visible}.invisible{visibility:hidden}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.bottom-0{bottom:0}.bottom-4{bottom:1rem}.bottom-\[30\%\]{bottom:30%}.left-0{left:0}.left-2{left:.5rem}.right-2{right:.5rem}.right-3{right:.75rem}.right-4{right:1rem}.right-6{right:1.5rem}.top-0{top:0}.top-2{top:.5rem}.top-4{top:1rem}.top-\[-35px\]{top:-35px}.z-10{z-index:10}.float-right{float:right}.-m-1{margin:-.25rem}.m-10{margin:2.5rem}.m-11{margin:2.75rem}.m-6{margin:1.5rem}.\!my-6{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-3{margin-left:.75rem;margin-right:.75rem}.mx-4{margin-left:1rem;margin-right:1rem}.mx-6{margin-left:1.5rem;margin-right:1.5rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:.25rem;margin-bottom:.25rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.my-3{margin-top:.75rem;margin-bottom:.75rem}.my-4{margin-top:1rem;margin-bottom:1rem}.\!mb-2{margin-bottom:.5rem!important}.mb-0{margin-bottom:0}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-5{margin-bottom:1.25rem}.ml-10{margin-left:2.5rem}.ml-2{margin-left:.5rem}.ml-5{margin-left:1.25rem}.mr-1{margin-right:.25rem}.mr-2{margin-right:.5rem}.mr-3{margin-right:.75rem}.mr-4{margin-right:1rem}.mr-6{margin-right:1.5rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-8{margin-top:2rem}.mt-\[-4px\]{margin-top:-4px}.line-clamp-1{-webkit-line-clamp:1}.line-clamp-1,.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical}.line-clamp-2{-webkit-line-clamp:2}.block{display:block}.inline-block{display:inline-block}.\!inline{display:inline!important}.inline{display:inline}.flex{display:flex}.table{display:table}.grid{display:grid}.hidden{display:none}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-12{height:3rem}.h-2\/5{height:40%}.h-3\/5{height:60%}.h-32{height:8rem}.h-4{height:1rem}.h-40{height:10rem}.h-6{height:1.5rem}.h-7{height:1.75rem}.h-8{height:2rem}.h-96{height:24rem}.h-\[1\.5em\]{height:1.5em}.h-\[300px\]{height:300px}.h-\[46px\]{height:46px}.h-\[500px\]{height:500px}.h-full{height:100%}.h-screen{height:100vh}.max-h-96{max-height:24rem}.max-h-full{max-height:100%}.max-h-screen{max-height:100vh}.min-h-\[1rem\]{min-height:1rem}.min-h-full{min-height:100%}.min-h-min{min-height:-moz-min-content;min-height:min-content}.w-10{width:2.5rem}.w-11{width:2.75rem}.w-12{width:3rem}.w-20{width:5rem}.w-36{width:9rem}.w-48{width:12rem}.w-52{width:13rem}.w-6{width:1.5rem}.w-60{width:15rem}.w-64{width:16rem}.w-7{width:1.75rem}.w-72{width:18rem}.w-8{width:2rem}.w-\[1\.5em\]{width:1.5em}.w-\[63px\]{width:63px}.w-full{width:100%}.w-screen{width:100vw}.min-w-0{min-width:0}.min-w-\[200px\]{min-width:200px}.min-w-\[240px\]{min-width:240px}.min-w-min{min-width:-moz-min-content;min-width:min-content}.max-w-3xl{max-width:48rem}.max-w-4xl{max-width:56rem}.max-w-full{max-width:100%}.max-w-md{max-width:28rem}.flex-1{flex:1 1 0%}.flex-shrink-0{flex-shrink:0}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.grow-0{flex-grow:0}.rotate-90{--tw-rotate:90deg}.rotate-90,.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes fade{0%{opacity:0}to{opacity:1}}.animate-fade{animation:fade 1s both}.\!cursor-no-drop{cursor:no-drop!important}.cursor-no-drop{cursor:no-drop}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.list-decimal{list-style-type:decimal}.list-disc{list-style-type:disc}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.flex-row{flex-direction:row}.flex-row-reverse{flex-direction:row-reverse}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.justify-around{justify-content:space-around}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-x-6{-moz-column-gap:1.5rem;column-gap:1.5rem}.gap-y-5{row-gap:1.25rem}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-scroll{overflow:scroll}.overflow-y-auto{overflow-y:auto}.overflow-y-scroll{overflow-y:scroll}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-normal{white-space:normal}.whitespace-nowrap{white-space:nowrap}.break-words{overflow-wrap:break-word}.rounded{border-radius:.25rem}.rounded-\[10px\]{border-radius:10px}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-xl{border-radius:.75rem}.rounded-br{border-bottom-right-radius:.25rem}.rounded-tl-md{border-top-left-radius:.375rem}.rounded-tr{border-top-right-radius:.25rem}.rounded-tr-md{border-top-right-radius:.375rem}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-l{border-left-width:1px}.border-l-4{border-left-width:4px}.border-r{border-right-width:1px}.border-t,.border-t-\[1px\]{border-top-width:1px}.border-solid{border-style:solid}.border-dashed{border-style:dashed}.border-none{border-style:none}.border-\[\#f0f0f0\]{--tw-border-opacity:1;border-color:rgb(240 240 240/var(--tw-border-opacity))}.border-\[var\(--joy-palette-divider\)\]{border-color:var(--joy-palette-divider)}.border-blue-600{--tw-border-opacity:1;border-color:rgb(37 99 235/var(--tw-border-opacity))}.border-gray-100{--tw-border-opacity:1;border-color:rgb(243 244 246/var(--tw-border-opacity))}.border-gray-200{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity))}.border-gray-500{--tw-border-opacity:1;border-color:rgb(107 114 128/var(--tw-border-opacity))}.border-slate-300{--tw-border-opacity:1;border-color:rgb(203 213 225/var(--tw-border-opacity))}.border-opacity-50{--tw-border-opacity:0.5}.bg-\[\#FAFAFA\]{--tw-bg-opacity:1;background-color:rgb(250 250 250/var(--tw-bg-opacity))}.bg-\[\#FFFFFF\]{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-\[\#fafafa\]{--tw-bg-opacity:1;background-color:rgb(250 250 250/var(--tw-bg-opacity))}.bg-blue-500{--tw-bg-opacity:1;background-color:rgb(59 130 246/var(--tw-bg-opacity))}.bg-gray-100{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.bg-gray-500{--tw-bg-opacity:1;background-color:rgb(107 114 128/var(--tw-bg-opacity))}.bg-gray-600{--tw-bg-opacity:1;background-color:rgb(75 85 99/var(--tw-bg-opacity))}.bg-gray-700{--tw-bg-opacity:1;background-color:rgb(55 65 81/var(--tw-bg-opacity))}.bg-green-500{--tw-bg-opacity:1;background-color:rgb(34 197 94/var(--tw-bg-opacity))}.bg-red-500{--tw-bg-opacity:1;background-color:rgb(239 68 68/var(--tw-bg-opacity))}.bg-slate-100{--tw-bg-opacity:1;background-color:rgb(241 245 249/var(--tw-bg-opacity))}.bg-slate-50{--tw-bg-opacity:1;background-color:rgb(248 250 252/var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-opacity-50{--tw-bg-opacity:0.5}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.from-\[\#31afff\]{--tw-gradient-from:#31afff var(--tw-gradient-from-position);--tw-gradient-to:rgba(49,175,255,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.to-\[\#1677ff\]{--tw-gradient-to:#1677ff var(--tw-gradient-to-position)}.object-contain{-o-object-fit:contain;object-fit:contain}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.px-0{padding-left:0;padding-right:0}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-8{padding-left:2rem;padding-right:2rem}.px-\[6px\]{padding-left:6px;padding-right:6px}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.py-\[2px\]{padding-top:2px;padding-bottom:2px}.pb-4{padding-bottom:1rem}.pb-6{padding-bottom:1.5rem}.pb-8{padding-bottom:2rem}.pl-0{padding-left:0}.pl-0\.5{padding-left:.125rem}.pl-10{padding-left:2.5rem}.pl-2{padding-left:.5rem}.pr-10{padding-right:2.5rem}.pt-0{padding-top:0}.pt-1{padding-top:.25rem}.pt-2{padding-top:.5rem}.pt-3{padding-top:.75rem}.\!text-left{text-align:left!important}.font-sans{font-family:Josefin Sans,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.\!text-2xl{font-size:1.5rem!important;line-height:2rem!important}.\!text-3xl{font-size:1.875rem!important;line-height:2.25rem!important}.\!text-lg{font-size:1.125rem!important;line-height:1.75rem!important}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-normal{font-weight:400}.font-semibold{font-weight:600}.ordinal{--tw-ordinal:ordinal;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.leading-6{line-height:1.5rem}.leading-7{line-height:1.75rem}.leading-8{line-height:2rem}.\!text-\[\#878c93\]{--tw-text-opacity:1!important;color:rgb(135 140 147/var(--tw-text-opacity))!important}.\!text-green-600{--tw-text-opacity:1!important;color:rgb(22 163 74/var(--tw-text-opacity))!important}.\!text-orange-600{--tw-text-opacity:1!important;color:rgb(234 88 12/var(--tw-text-opacity))!important}.\!text-red-600{--tw-text-opacity:1!important;color:rgb(220 38 38/var(--tw-text-opacity))!important}.text-\[\#1677ff\]{--tw-text-opacity:1;color:rgb(22 119 255/var(--tw-text-opacity))}.text-\[\#2AA3FF\]{--tw-text-opacity:1;color:rgb(42 163 255/var(--tw-text-opacity))}.text-\[\#ff1b2e\]{--tw-text-opacity:1;color:rgb(255 27 46/var(--tw-text-opacity))}.text-black{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity))}.text-blue-400{--tw-text-opacity:1;color:rgb(96 165 250/var(--tw-text-opacity))}.text-blue-500{--tw-text-opacity:1;color:rgb(59 130 246/var(--tw-text-opacity))}.text-blue-600{--tw-text-opacity:1;color:rgb(37 99 235/var(--tw-text-opacity))}.text-gray-100{--tw-text-opacity:1;color:rgb(243 244 246/var(--tw-text-opacity))}.text-gray-300{--tw-text-opacity:1;color:rgb(209 213 219/var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.text-gray-600{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity))}.text-gray-950{--tw-text-opacity:1;color:rgb(3 7 18/var(--tw-text-opacity))}.text-red-500{--tw-text-opacity:1;color:rgb(239 68 68/var(--tw-text-opacity))}.text-slate-900{--tw-text-opacity:1;color:rgb(15 23 42/var(--tw-text-opacity))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.opacity-0{opacity:0}.opacity-60{opacity:.6}.opacity-80{opacity:.8}.shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.grayscale{--tw-grayscale:grayscale(100%)}.filter,.grayscale{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-sm{--tw-backdrop-blur:blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition-\[width\]{transition-property:width;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.animate-duration-200{animation-duration:.2s}.animate-duration-300{animation-duration:.3s}body{margin:0;color:var(--joy-palette-text-primary,var(--joy-palette-neutral-800,#25252d));font-family:var(--joy-fontFamily-body,var(--joy-Josefin Sans,sans-serif));font-size:var(--joy-fontSize-md,1rem);line-height:var(--joy-lineHeight-md,1.5);background-color:var(--joy-palette-background-body)}body .ant-btn-primary{background-color:#1677ff}.ant-pagination .ant-pagination-next *,.ant-pagination .ant-pagination-prev *{color:#279bff!important}.ant-pagination .ant-pagination-item a{color:#b0b0bf}.ant-pagination .ant-pagination-item.ant-pagination-item-active{background-color:#279bff!important}.ant-pagination .ant-pagination-item.ant-pagination-item-active a{color:#fff!important}table tr td{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}::-webkit-scrollbar{display:none}::-webkit-scrollbar-track{background:#f1f1f1}::-webkit-scrollbar-thumb{background:#888}::-webkit-scrollbar-thumb:hover{background:#555}.dark :where(.css-dev-only-do-not-override-18iikkb).ant-tabs .ant-tabs-tab-btn{color:#fff}:where(.css-dev-only-do-not-override-18iikkb).ant-form-item .ant-form-item-label>label{height:36px}@keyframes rotate{to{transform:rotate(1turn)}}.rotate-animation{animation:rotate 2s linear infinite}.after\:absolute:after{content:var(--tw-content);position:absolute}.after\:-top-8:after{content:var(--tw-content);top:-2rem}.after\:h-8:after{content:var(--tw-content);height:2rem}.after\:w-full:after{content:var(--tw-content);width:100%}.after\:bg-gradient-to-t:after{content:var(--tw-content);background-image:linear-gradient(to top,var(--tw-gradient-stops))}.after\:from-white:after{content:var(--tw-content);--tw-gradient-from:#fff var(--tw-gradient-from-position);--tw-gradient-to:hsla(0,0%,100%,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.after\:to-transparent:after{content:var(--tw-content);--tw-gradient-to:transparent var(--tw-gradient-to-position)}.hover\:bg-slate-100:hover{--tw-bg-opacity:1;background-color:rgb(241 245 249/var(--tw-bg-opacity))}.hover\:\!text-gray-200:hover{--tw-text-opacity:1!important;color:rgb(229 231 235/var(--tw-text-opacity))!important}.hover\:shadow-md:hover{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.group\/item:hover .group-hover\/item\:opacity-100{opacity:1}:is(.dark .dark\:border-gray-600){--tw-border-opacity:1;border-color:rgb(75 85 99/var(--tw-border-opacity))}:is(.dark .dark\:border-gray-700){--tw-border-opacity:1;border-color:rgb(55 65 81/var(--tw-border-opacity))}:is(.dark .dark\:border-white){--tw-border-opacity:1;border-color:rgb(255 255 255/var(--tw-border-opacity))}:is(.dark .dark\:bg-\[\#1A1E26\]){--tw-bg-opacity:1;background-color:rgb(26 30 38/var(--tw-bg-opacity))}:is(.dark .dark\:bg-\[\#212121\]){--tw-bg-opacity:1;background-color:rgb(33 33 33/var(--tw-bg-opacity))}:is(.dark .dark\:bg-\[\#353539\]){--tw-bg-opacity:1;background-color:rgb(53 53 57/var(--tw-bg-opacity))}:is(.dark .dark\:bg-\[\#484848\]){--tw-bg-opacity:1;background-color:rgb(72 72 72/var(--tw-bg-opacity))}:is(.dark .dark\:bg-black){--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity))}:is(.dark .dark\:bg-gray-100){--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}:is(.dark .dark\:bg-gray-900){--tw-bg-opacity:1;background-color:rgb(17 24 39/var(--tw-bg-opacity))}:is(.dark .dark\:bg-slate-800){--tw-bg-opacity:1;background-color:rgb(30 41 59/var(--tw-bg-opacity))}:is(.dark .dark\:bg-transparent){background-color:transparent}:is(.dark .dark\:bg-opacity-50){--tw-bg-opacity:0.5}:is(.dark .dark\:bg-gradient-to-r){background-image:linear-gradient(to right,var(--tw-gradient-stops))}:is(.dark .dark\:from-\[\#6a6a6a\]){--tw-gradient-from:#6a6a6a var(--tw-gradient-from-position);--tw-gradient-to:hsla(0,0%,42%,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}:is(.dark .dark\:to-\[\#80868f\]){--tw-gradient-to:#80868f var(--tw-gradient-to-position)}:is(.dark .dark\:text-blue-400){--tw-text-opacity:1;color:rgb(96 165 250/var(--tw-text-opacity))}:is(.dark .dark\:text-gray-200){--tw-text-opacity:1;color:rgb(229 231 235/var(--tw-text-opacity))}:is(.dark .dark\:text-gray-300){--tw-text-opacity:1;color:rgb(209 213 219/var(--tw-text-opacity))}:is(.dark .dark\:text-gray-400){--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}:is(.dark .dark\:text-gray-800){--tw-text-opacity:1;color:rgb(31 41 55/var(--tw-text-opacity))}:is(.dark .dark\:text-slate-300){--tw-text-opacity:1;color:rgb(203 213 225/var(--tw-text-opacity))}:is(.dark .dark\:text-white){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}:is(.dark .dark\:after\:from-\[\#212121\]):after{content:var(--tw-content);--tw-gradient-from:#212121 var(--tw-gradient-from-position);--tw-gradient-to:rgba(33,33,33,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}:is(.dark .dark\:hover\:border-white:hover){--tw-border-opacity:1;border-color:rgb(255 255 255/var(--tw-border-opacity))}:is(.dark .dark\:hover\:bg-\[\#353539\]:hover){--tw-bg-opacity:1;background-color:rgb(53 53 57/var(--tw-bg-opacity))}@media not all and (min-width:768px){.max-md\:hidden{display:none}}@media (min-width:640px){.sm\:mr-4{margin-right:1rem}.sm\:inline-block{display:inline-block}.sm\:w-1\/2{width:50%}.sm\:w-60{width:15rem}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:px-4{padding-left:1rem;padding-right:1rem}.sm\:py-4{padding-top:1rem;padding-bottom:1rem}.sm\:pb-10{padding-bottom:2.5rem}.sm\:pt-6{padding-top:1.5rem}.sm\:text-base{font-size:1rem;line-height:1.5rem}.sm\:leading-7{line-height:1.75rem}}@media (min-width:768px){.md\:-m-2{margin:-.5rem}.md\:mt-4{margin-top:1rem}.md\:block{display:block}.md\:w-1\/2{width:50%}.md\:gap-4{gap:1rem}.md\:p-2{padding:.5rem}.md\:p-6{padding:1.5rem}.md\:px-4{padding-left:1rem;padding-right:1rem}.md\:px-6{padding-left:1.5rem;padding-right:1.5rem}.md\:pt-10{padding-top:2.5rem}.md\:pt-4{padding-top:1rem}}@media (min-width:1024px){.lg\:mr-4{margin-right:1rem}.lg\:w-1\/3{width:33.333333%}.lg\:w-72{width:18rem}.lg\:w-full{width:100%}.lg\:max-w-\[80\%\]{max-width:80%}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:px-8{padding-left:2rem;padding-right:2rem}}@media (min-width:1280px){.xl\:h-full{height:100%}.xl\:w-1\/4{width:25%}.xl\:w-3\/4{width:75%}.xl\:w-full{width:100%}.xl\:gap-x-5{-moz-column-gap:1.25rem;column-gap:1.25rem}.xl\:border-l{border-left-width:1px}.xl\:border-t-0{border-top-width:0}.xl\:pl-4{padding-left:1rem}.xl\:pr-4{padding-right:1rem}}#nprogress{pointer-events:none}#nprogress .bar{background:var(--joy-palette-primary-500,#096bde);position:fixed;z-index:10031;top:0;left:0;width:100%;height:3px}#nprogress .peg{display:block;position:absolute;right:0;width:100px;height:100%;box-shadow:0 0 10px var(--joy-palette-primary-500,#096bde),0 0 5px var(--joy-palette-primary-500,#096bde);opacity:1;transform:rotate(3deg) translateY(-4px)} \ No newline at end of file diff --git a/dbgpt/app/static/agent/index.html b/dbgpt/app/static/agent/index.html index 052adf2fb..5772b7dae 100644 --- a/dbgpt/app/static/agent/index.html +++ b/dbgpt/app/static/agent/index.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/dbgpt/app/static/chat/[scene]/[id]/index.html b/dbgpt/app/static/chat/[scene]/[id]/index.html index 38d8dd92b..5c44f39a9 100644 --- a/dbgpt/app/static/chat/[scene]/[id]/index.html +++ b/dbgpt/app/static/chat/[scene]/[id]/index.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/dbgpt/app/static/chat/index.html b/dbgpt/app/static/chat/index.html index 47caf5dee..021382130 100644 --- a/dbgpt/app/static/chat/index.html +++ b/dbgpt/app/static/chat/index.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/dbgpt/app/static/database/index.html b/dbgpt/app/static/database/index.html index 56001ce98..890bcbc8c 100644 --- a/dbgpt/app/static/database/index.html +++ b/dbgpt/app/static/database/index.html @@ -1 +1 @@ -
MySQL

MySQL

Fast, reliable, scalable open-source relational database management system.

MSSQL

MSSQL

Powerful, scalable, secure relational database system by Microsoft.

DuckDB

DuckDB

In-memory analytical database with efficient query processing.

Sqlite

Sqlite

Lightweight embedded relational database with simplicity and portability.

ClickHouse

ClickHouse

Columnar database for high-performance analytics and real-time queries.

Oracle

Oracle

Robust, scalable, secure relational database widely used in enterprises.

Access

Access

Easy-to-use relational database for small-scale applications by Microsoft.

MongoDB

MongoDB

Flexible, scalable NoSQL document database for web and mobile apps.

ApacheDoris

ApacheDoris

A new-generation open-source real-time data warehouse.

StarRocks

StarRocks

An Open-Source, High-Performance Analytical Database.

DB2

DB2

Scalable, secure relational database system developed by IBM.

HBase

HBase

Distributed, scalable NoSQL database for large structured/semi-structured data.

Redis

Redis

Fast, versatile in-memory data structure store as cache, DB, or broker.

Cassandra

Cassandra

Scalable, fault-tolerant distributed NoSQL database for large data.

Couchbase

Couchbase

High-performance NoSQL document database with distributed architecture.

PostgreSQL

PostgreSQL

Powerful open-source relational database with extensibility and SQL standards.

Spark

Spark

Unified engine for large-scale data analytics.

Space

Space

knowledge analytics.

\ No newline at end of file +
MySQL

MySQL

Fast, reliable, scalable open-source relational database management system.

MSSQL

MSSQL

Powerful, scalable, secure relational database system by Microsoft.

DuckDB

DuckDB

In-memory analytical database with efficient query processing.

Sqlite

Sqlite

Lightweight embedded relational database with simplicity and portability.

ClickHouse

ClickHouse

Columnar database for high-performance analytics and real-time queries.

Oracle

Oracle

Robust, scalable, secure relational database widely used in enterprises.

Access

Access

Easy-to-use relational database for small-scale applications by Microsoft.

MongoDB

MongoDB

Flexible, scalable NoSQL document database for web and mobile apps.

ApacheDoris

ApacheDoris

A new-generation open-source real-time data warehouse.

StarRocks

StarRocks

An Open-Source, High-Performance Analytical Database.

DB2

DB2

Scalable, secure relational database system developed by IBM.

HBase

HBase

Distributed, scalable NoSQL database for large structured/semi-structured data.

Redis

Redis

Fast, versatile in-memory data structure store as cache, DB, or broker.

Cassandra

Cassandra

Scalable, fault-tolerant distributed NoSQL database for large data.

Couchbase

Couchbase

High-performance NoSQL document database with distributed architecture.

PostgreSQL

PostgreSQL

Powerful open-source relational database with extensibility and SQL standards.

Spark

Spark

Unified engine for large-scale data analytics.

Space

Space

knowledge analytics.

\ No newline at end of file diff --git a/dbgpt/app/static/index.html b/dbgpt/app/static/index.html index bcf34e6e3..9be9b1c13 100644 --- a/dbgpt/app/static/index.html +++ b/dbgpt/app/static/index.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/dbgpt/app/static/knowledge/chunk/index.html b/dbgpt/app/static/knowledge/chunk/index.html index c576e3892..0d2f1194b 100644 --- a/dbgpt/app/static/knowledge/chunk/index.html +++ b/dbgpt/app/static/knowledge/chunk/index.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/dbgpt/app/static/knowledge/index.html b/dbgpt/app/static/knowledge/index.html index ced0f04a8..8fbd3e988 100644 --- a/dbgpt/app/static/knowledge/index.html +++ b/dbgpt/app/static/knowledge/index.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/dbgpt/app/static/models/index.html b/dbgpt/app/static/models/index.html index 505b9e4ed..cdf719e93 100644 --- a/dbgpt/app/static/models/index.html +++ b/dbgpt/app/static/models/index.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/dbgpt/app/static/prompt/index.html b/dbgpt/app/static/prompt/index.html index c4e921aad..f1339715a 100644 --- a/dbgpt/app/static/prompt/index.html +++ b/dbgpt/app/static/prompt/index.html @@ -1 +1 @@ -
NameSceneSub SceneContentOperation
No data
\ No newline at end of file +
NameSceneSub SceneContentOperation
No data
\ No newline at end of file diff --git a/dbgpt/rag/text_splitter/pre_text_splitter.py b/dbgpt/rag/text_splitter/pre_text_splitter.py index c343fa6c6..65aa54d86 100644 --- a/dbgpt/rag/text_splitter/pre_text_splitter.py +++ b/dbgpt/rag/text_splitter/pre_text_splitter.py @@ -18,20 +18,20 @@ def _single_document_split( class PreTextSplitter(TextSplitter): """Split text by pre separator""" - def __init__(self, separator: str, text_splitter_impl: TextSplitter): + def __init__(self, pre_separator: str, text_splitter_impl: TextSplitter): """Initialize with Knowledge arguments. Args: pre_separator: pre separator text_splitter_impl: text splitter impl """ - self.pre_separator = separator + self.pre_separator = pre_separator self._impl = text_splitter_impl - def split_text(self, text: str) -> List[str]: + def split_text(self, text: str, **kwargs) -> List[str]: """Split text by pre separator""" return self._impl.split_text(text) - def split_documents(self, documents: Iterable[Document]) -> List[Chunk]: + def split_documents(self, documents: Iterable[Document], **kwargs) -> List[Chunk]: """Split documents by pre separator""" def generator() -> Iterable[Document]: