You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

151 lines
206 KiB

(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[507],{1507:function(Nn,Ue,j){"use strict";j.d(Ue,{Z:function(){return ku}});var re=j(74165),he=j(15861),Fe=j(71002),ie=j(97685),w=j(4942),Ie=j(74902),i=j(1413),pe=j(91),xe=j(87462),o=j(67294),mn=j(50756),ke=j(93967),ae=j.n(ke),He=j(86500),Oe=j(1350),Me=2,Ye=.16,wa=.05,Ra=.05,Ta=.15,Lt=5,Dt=4,Ia=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function At(n){var e=n.r,r=n.g,t=n.b,a=(0,He.py)(e,r,t);return{h:a.h*360,s:a.s,v:a.v}}function Xn(n){var e=n.r,r=n.g,t=n.b;return"#".concat((0,He.vq)(e,r,t,!1))}function Ea(n,e,r){var t=r/100,a={r:(e.r-n.r)*t+n.r,g:(e.g-n.g)*t+n.g,b:(e.b-n.b)*t+n.b};return a}function Kt(n,e,r){var t;return Math.round(n.h)>=60&&Math.round(n.h)<=240?t=r?Math.round(n.h)-Me*e:Math.round(n.h)+Me*e:t=r?Math.round(n.h)+Me*e:Math.round(n.h)-Me*e,t<0?t+=360:t>=360&&(t-=360),t}function Wt(n,e,r){if(n.h===0&&n.s===0)return n.s;var t;return r?t=n.s-Ye*e:e===Dt?t=n.s+Ye:t=n.s+wa*e,t>1&&(t=1),r&&e===Lt&&t>.1&&(t=.1),t<.06&&(t=.06),Number(t.toFixed(2))}function Ht(n,e,r){var t;return r?t=n.v+Ra*e:t=n.v-Ta*e,t>1&&(t=1),Number(t.toFixed(2))}function dt(n){for(var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[],t=(0,Oe.uA)(n),a=Lt;a>0;a-=1){var s=At(t),l=Xn((0,Oe.uA)({h:Kt(s,a,!0),s:Wt(s,a,!0),v:Ht(s,a,!0)}));r.push(l)}r.push(Xn(t));for(var c=1;c<=Dt;c+=1){var u=At(t),d=Xn((0,Oe.uA)({h:Kt(u,c),s:Wt(u,c),v:Ht(u,c)}));r.push(d)}return e.theme==="dark"?Ia.map(function(v){var m=v.index,h=v.opacity,S=Xn(Ea((0,Oe.uA)(e.backgroundColor||"#141414"),(0,Oe.uA)(r[m]),h*100));return S}):r}var ft={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},Le={},vt={};Object.keys(ft).forEach(function(n){Le[n]=dt(ft[n]),Le[n].primary=Le[n][5],vt[n]=dt(ft[n],{theme:"dark",backgroundColor:"#141414"}),vt[n].primary=vt[n][5]});var nd=Le.red,td=Le.volcano,rd=Le.gold,ad=Le.orange,od=Le.yellow,ld=Le.lime,id=Le.green,sd=Le.cyan,Pa=Le.blue,cd=Le.geekblue,ud=Le.purple,dd=Le.magenta,fd=Le.grey,vd=Le.grey,$a=(0,o.createContext)({}),Vt=$a,Xt=j(44958),Ut=j(27571),Qe=j(80334);function ja(n){return n.replace(/-(.)/g,function(e,r){return r.toUpperCase()})}function Fa(n,e){(0,Qe.ZP)(n,"[@ant-design/icons] ".concat(e))}function Gt(n){return(0,Fe.Z)(n)==="object"&&typeof n.name=="string"&&typeof n.theme=="string"&&((0,Fe.Z)(n.icon)==="object"||typeof n.icon=="function")}function Jt(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(n).reduce(function(e,r){var t=n[r];switch(r){case"class":e.className=t,delete e.class;break;default:delete e[r],e[ja(r)]=t}return e},{})}function mt(n,e,r){return r?o.createElement(n.tag,(0,i.Z)((0,i.Z)({key:e},Jt(n.attrs)),r),(n.children||[]).map(function(t,a){return mt(t,"".concat(e,"-").concat(n.tag,"-").concat(a))})):o.createElement(n.tag,(0,i.Z)({key:e},Jt(n.attrs)),(n.children||[]).map(function(t,a){return mt(t,"".concat(e,"-").concat(n.tag,"-").concat(a))}))}function kt(n){return dt(n)[0]}function Yt(n){return n?Array.isArray(n)?n:[n]:[]}var md={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},Na=`
.anticon {
display: inline-block;
color: inherit;
font-style: normal;
line-height: 0;
text-align: center;
text-transform: none;
vertical-align: -0.125em;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.anticon > * {
line-height: 1;
}
.anticon svg {
display: inline-block;
}
.anticon::before {
display: none;
}
.anticon .anticon-icon {
display: block;
}
.anticon[tabindex] {
cursor: pointer;
}
.anticon-spin::before,
.anticon-spin {
display: inline-block;
-webkit-animation: loadingCircle 1s infinite linear;
animation: loadingCircle 1s infinite linear;
}
@-webkit-keyframes loadingCircle {
100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
@keyframes loadingCircle {
100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
`,Oa=function(e){var r=(0,o.useContext)(Vt),t=r.csp,a=r.prefixCls,s=Na;a&&(s=s.replace(/anticon/g,a)),(0,o.useEffect)(function(){var l=e.current,c=(0,Ut.A)(l);(0,Xt.hq)(s,"@ant-design-icons",{prepend:!0,csp:t,attachTo:c})},[])},Ma=["icon","className","onClick","style","primaryColor","secondaryColor"],On={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function Ba(n){var e=n.primaryColor,r=n.secondaryColor;On.primaryColor=e,On.secondaryColor=r||kt(e),On.calculated=!!r}function za(){return(0,i.Z)({},On)}var Un=function(e){var r=e.icon,t=e.className,a=e.onClick,s=e.style,l=e.primaryColor,c=e.secondaryColor,u=(0,pe.Z)(e,Ma),d=o.useRef(),v=On;if(l&&(v={primaryColor:l,secondaryColor:c||kt(l)}),Oa(d),Fa(Gt(r),"icon should be icon definiton, but got ".concat(r)),!Gt(r))return null;var m=r;return m&&typeof m.icon=="function"&&(m=(0,i.Z)((0,i.Z)({},m),{},{icon:m.icon(v.primaryColor,v.secondaryColor)})),mt(m.icon,"svg-".concat(m.name),(0,i.Z)((0,i.Z)({className:t,onClick:a,style:s,"data-icon":m.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},u),{},{ref:d}))};Un.displayName="IconReact",Un.getTwoToneColors=za,Un.setTwoToneColors=Ba;var pt=Un;function Qt(n){var e=Yt(n),r=(0,ie.Z)(e,2),t=r[0],a=r[1];return pt.setTwoToneColors({primaryColor:t,secondaryColor:a})}function La(){var n=pt.getTwoToneColors();return n.calculated?[n.primaryColor,n.secondaryColor]:n.primaryColor}var Da=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Qt(Pa.primary);var Gn=o.forwardRef(function(n,e){var r=n.className,t=n.icon,a=n.spin,s=n.rotate,l=n.tabIndex,c=n.onClick,u=n.twoToneColor,d=(0,pe.Z)(n,Da),v=o.useContext(Vt),m=v.prefixCls,h=m===void 0?"anticon":m,S=v.rootClassName,p=ae()(S,h,(0,w.Z)((0,w.Z)({},"".concat(h,"-").concat(t.name),!!t.name),"".concat(h,"-spin"),!!a||t.name==="loading"),r),g=l;g===void 0&&c&&(g=-1);var y=s?{msTransform:"rotate(".concat(s,"deg)"),transform:"rotate(".concat(s,"deg)")}:void 0,b=Yt(u),C=(0,ie.Z)(b,2),$=C[0],F=C[1];return o.createElement("span",(0,xe.Z)({role:"img","aria-label":t.name},d,{ref:e,tabIndex:g,onClick:c,className:p}),o.createElement(pt,{icon:t,primaryColor:$,secondaryColor:F,style:y}))});Gn.displayName="AntdIcon",Gn.getTwoToneColor=La,Gn.setTwoToneColor=Qt;var Aa=Gn,Ka=function(e,r){return o.createElement(Aa,(0,xe.Z)({},e,{ref:r,icon:mn.Z}))},Wa=o.forwardRef(Ka),xn=j(48874),De=j(28459),Zn=j(11941),qt=j(25378),rn=j(97435),Pe=j(21770),$e=j(98082),Ha=function(e){var r=e.componentCls,t=e.antCls;return(0,w.Z)({},"".concat(r,"-actions"),(0,w.Z)((0,w.Z)({marginBlock:0,marginInline:0,paddingBlock:0,paddingInline:0,listStyle:"none",display:"flex",gap:e.marginXS,background:e.colorBgContainer,borderBlockStart:"".concat(e.lineWidth,"px ").concat(e.lineType," ").concat(e.colorSplit),minHeight:42},"& > *",{alignItems:"center",justifyContent:"center",flex:1,display:"flex",cursor:"pointer",color:e.colorTextSecondary,transition:"color 0.3s","&:hover":{color:e.colorPrimaryHover}}),"& > li > div",{flex:1,width:"100%",marginBlock:e.marginSM,marginInline:0,color:e.colorTextSecondary,textAlign:"center",a:{color:e.colorTextSecondary,transition:"color 0.3s","&:hover":{color:e.colorPrimaryHover}},div:(0,w.Z)((0,w.Z)({position:"relative",display:"block",minWidth:32,fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimaryHover,transition:"color 0.3s"}},"a:not(".concat(t,`-btn),
> .anticon`),{display:"inline-block",width:"100%",color:e.colorTextSecondary,lineHeight:"22px",transition:"color 0.3s","&:hover":{color:e.colorPrimaryHover}}),".anticon",{fontSize:e.cardActionIconSize,lineHeight:"22px"}),"&:not(:last-child)":{borderInlineEnd:"".concat(e.lineWidth,"px ").concat(e.lineType," ").concat(e.colorSplit)}}))};function Va(n){return(0,$e.Xj)("ProCardActions",function(e){var r=(0,i.Z)((0,i.Z)({},e),{},{componentCls:".".concat(n),cardActionIconSize:16});return[Ha(r)]})}var f=j(85893),Xa=function(e){var r=e.actions,t=e.prefixCls,a=Va(t),s=a.wrapSSR,l=a.hashId;return Array.isArray(r)&&r!==null&&r!==void 0&&r.length?s((0,f.jsx)("ul",{className:ae()("".concat(t,"-actions"),l),children:r.map(function(c,u){return(0,f.jsx)("li",{style:{width:"".concat(100/r.length,"%"),padding:0,margin:0},className:ae()("".concat(t,"-actions-item"),l),children:c},"action-".concat(u))})})):s((0,f.jsx)("ul",{className:ae()("".concat(t,"-actions"),l),children:r}))},Ua=Xa,sn=j(71230),Ae=j(15746),ye=j(54548),Ga=new ye.E4("card-loading",{"0%":{backgroundPosition:"0 50%"},"50%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Ja=function(e){return(0,w.Z)({},e.componentCls,(0,w.Z)((0,w.Z)({"&-loading":{overflow:"hidden"},"&-loading &-body":{userSelect:"none"}},"".concat(e.componentCls,"-loading-content"),{width:"100%",p:{marginBlock:0,marginInline:0}}),"".concat(e.componentCls,"-loading-block"),{height:"14px",marginBlock:"4px",background:"linear-gradient(90deg, rgba(54, 61, 64, 0.2), rgba(54, 61, 64, 0.4), rgba(54, 61, 64, 0.2))",backgroundSize:"600% 600%",borderRadius:e.borderRadius,animationName:Ga,animationDuration:"1.4s",animationTimingFunction:"ease",animationIterationCount:"infinite"}))};function ka(n){return(0,$e.Xj)("ProCardLoading",function(e){var r=(0,i.Z)((0,i.Z)({},e),{},{componentCls:".".concat(n)});return[Ja(r)]})}var Ya=function(e){var r=e.style,t=e.prefix,a=ka(t||"ant-pro-card"),s=a.wrapSSR;return s((0,f.jsxs)("div",{className:"".concat(t,"-loading-content"),style:r,children:[(0,f.jsx)(sn.Z,{gutter:8,children:(0,f.jsx)(Ae.Z,{span:22,children:(0,f.jsx)("div",{className:"".concat(t,"-loading-block")})})}),(0,f.jsxs)(sn.Z,{gutter:8,children:[(0,f.jsx)(Ae.Z,{span:8,children:(0,f.jsx)("div",{className:"".concat(t,"-loading-block")})}),(0,f.jsx)(Ae.Z,{span:15,children:(0,f.jsx)("div",{className:"".concat(t,"-loading-block")})})]}),(0,f.jsxs)(sn.Z,{gutter:8,children:[(0,f.jsx)(Ae.Z,{span:6,children:(0,f.jsx)("div",{className:"".concat(t,"-loading-block")})}),(0,f.jsx)(Ae.Z,{span:18,children:(0,f.jsx)("div",{className:"".concat(t,"-loading-block")})})]}),(0,f.jsxs)(sn.Z,{gutter:8,children:[(0,f.jsx)(Ae.Z,{span:13,children:(0,f.jsx)("div",{className:"".concat(t,"-loading-block")})}),(0,f.jsx)(Ae.Z,{span:9,children:(0,f.jsx)("div",{className:"".concat(t,"-loading-block")})})]}),(0,f.jsxs)(sn.Z,{gutter:8,children:[(0,f.jsx)(Ae.Z,{span:4,children:(0,f.jsx)("div",{className:"".concat(t,"-loading-block")})}),(0,f.jsx)(Ae.Z,{span:3,children:(0,f.jsx)("div",{className:"".concat(t,"-loading-block")})}),(0,f.jsx)(Ae.Z,{span:16,children:(0,f.jsx)("div",{className:"".concat(t,"-loading-block")})})]})]}))},Qa=Ya,Jn=j(67159),wn=j(50344),qa=j(34155),_a=["tab","children"],eo=["key","tab","tabKey","disabled","destroyInactiveTabPane","children","className","style","cardProps"];function no(n){return n.filter(function(e){return e})}function to(n,e,r){if(n)return n.map(function(a){return(0,i.Z)((0,i.Z)({},a),{},{children:(0,f.jsx)(Mn,(0,i.Z)((0,i.Z)({},r==null?void 0:r.cardProps),{},{children:a.children}))})});(0,Qe.ET)(!r,"Tabs.TabPane is deprecated. Please use `items` directly.");var t=(0,wn.Z)(e).map(function(a){if(o.isValidElement(a)){var s=a.key,l=a.props,c=l||{},u=c.tab,d=c.children,v=(0,pe.Z)(c,_a),m=(0,i.Z)((0,i.Z)({key:String(s)},v),{},{children:(0,f.jsx)(Mn,(0,i.Z)((0,i.Z)({},r==null?void 0:r.cardProps),{},{children:d})),label:u});return m}return null});return no(t)}var ro=function(e){var r=(0,o.useContext)(De.ZP.ConfigContext),t=r.getPrefixCls;if(Jn.Z.startsWith("5"))return(0,f.jsx)(f.Fragment,{});v
https://procomponents.ant.design/components/editable-table#editable-%E6%96%B0%E5%BB%BA%E8%A1%8C`),new Error("\u8BF7\u8BBE\u7F6E recordCreatorProps.record \u5E76\u8FD4\u56DE\u4E00\u4E2A\u552F\u4E00\u7684key");if(b.add(E),y(Array.from(b)),(R==null?void 0:R.newRecordType)==="dataSource"||n.tableName){var z,W={data:n.dataSource,getRowKey:n.getRowKey,row:(0,i.Z)((0,i.Z)({},B),{},{map_row_parentKey:R!=null&&R.parentKey?(z=Ve(R==null?void 0:R.parentKey))===null||z===void 0?void 0:z.toString():void 0}),key:E,childrenColumnName:n.childrenColumnName||"children"};n.setDataSource(Dn(W,(R==null?void 0:R.position)==="top"?"top":"update"))}else a({defaultValue:B,options:(0,i.Z)((0,i.Z)({},R),{},{recordKey:E})});return!0}),x=(0,Ee.YB)(),P=(n==null?void 0:n.saveText)||x.getMessage("editableTable.action.save","\u4FDD\u5B58"),Q=(n==null?void 0:n.deleteText)||x.getMessage("editableTable.action.delete","\u5220\u9664"),K=(n==null?void 0:n.cancelText)||x.getMessage("editableTable.action.cancel","\u53D6\u6D88"),Z=(0,Te.J)(function(){var B=(0,he.Z)((0,re.Z)().mark(function R(E,z,W,J){var D,G,M,V,ee,ne,me;return(0,re.Z)().wrap(function(se){for(;;)switch(se.prev=se.next){case 0:return se.next=2,n==null||(D=n.onSave)===null||D===void 0?void 0:D.call(n,E,z,W,J);case 2:return V=se.sent,se.next=5,U(E);case 5:if(ee=J||u.current||{},ne=ee.options,!(!(ne!=null&&ne.parentKey)&&(ne==null?void 0:ne.recordKey)===E)){se.next=9;break}return(ne==null?void 0:ne.position)==="top"?n.setDataSource([z].concat((0,Ie.Z)(n.dataSource))):n.setDataSource([].concat((0,Ie.Z)(n.dataSource),[z])),se.abrupt("return",V);case 9:return me={data:n.dataSource,getRowKey:n.getRowKey,row:ne?(0,i.Z)((0,i.Z)({},z),{},{map_row_parentKey:(G=Ve((M=ne==null?void 0:ne.parentKey)!==null&&M!==void 0?M:""))===null||G===void 0?void 0:G.toString()}):z,key:E,childrenColumnName:n.childrenColumnName||"children"},n.setDataSource(Dn(me,(ne==null?void 0:ne.position)==="top"?"top":"update")),se.next=13,U(E);case 13:return se.abrupt("return",V);case 14:case"end":return se.stop()}},R)}));return function(R,E,z,W){return B.apply(this,arguments)}}()),O=(0,Te.J)(function(){var B=(0,he.Z)((0,re.Z)().mark(function R(E,z){var W,J,D;return(0,re.Z)().wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return J={data:n.dataSource,getRowKey:n.getRowKey,row:z,key:E,childrenColumnName:n.childrenColumnName||"children"},M.next=3,n==null||(W=n.onDelete)===null||W===void 0?void 0:W.call(n,E,z);case 3:return D=M.sent,M.next=6,U(E,!1);case 6:return n.setDataSource(Dn(J,"delete")),M.abrupt("return",D);case 8:case"end":return M.stop()}},R)}));return function(R,E){return B.apply(this,arguments)}}()),A=(0,Te.J)(function(){var B=(0,he.Z)((0,re.Z)().mark(function R(E,z,W,J){var D,G;return(0,re.Z)().wrap(function(V){for(;;)switch(V.prev=V.next){case 0:return V.next=2,n==null||(D=n.onCancel)===null||D===void 0?void 0:D.call(n,E,z,W,J);case 2:return G=V.sent,V.abrupt("return",G);case 4:case"end":return V.stop()}},R)}));return function(R,E,z,W){return B.apply(this,arguments)}}()),_=function(R){var E=n.getRowKey(R,R.index),z={saveText:P,cancelText:K,deleteText:Q,addEditRecord:T,recordKey:E,cancelEditable:U,index:R.index,tableName:n.tableName,newLineConfig:t,onCancel:A,onDelete:O,onSave:Z,editableKeys:g,setEditableRowKeys:y,deletePopconfirmMessage:n.deletePopconfirmMessage||"".concat(x.getMessage("deleteThisLine","\u5220\u9664\u6B64\u9879"),"?")},W=Ko(R,z);return n.tableName?L.current.set(c.current.get(Ve(E))||Ve(E),W.saveRef):L.current.set(Ve(E),W.saveRef),n.actionRender?n.actionRender(R,z,{save:W.save,delete:W.delete,cancel:W.cancel}):[W.save,W.delete,W.cancel]};return{editableKeys:g,setEditableRowKeys:y,isEditable:$,actionRender:_,startEditable:F,cancelEditable:U,addEditRecord:T,saveEditable:N,newLineRecord:t,preEditableKeys:C,onValuesChange:I,getRealIndex:n.getRealIndex}}var _e=j(51812),Tn=j(53914),Ho=j(78164),pn=j(72051),Vo=j(72378),Qn=j.n(Vo),gd=function(e){return e!=null};function Xo(n,e,r){var t,a;if(n===!1)return!1;var s=e.total,l=e.current,c=e.pageSize,u=e.setPageInfo,d=(0,Fe.Z)(n)==="object"?n:{};return(0,i.Z)((0,i.Z)({
.anticon {
display: inline-block;
color: inherit;
font-style: normal;
line-height: 0;
text-align: center;
text-transform: none;
vertical-align: -0.125em;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.anticon > * {
line-height: 1;
}
.anticon svg {
display: inline-block;
}
.anticon::before {
display: none;
}
.anticon .anticon-icon {
display: block;
}
.anticon[tabindex] {
cursor: pointer;
}
.anticon-spin::before,
.anticon-spin {
display: inline-block;
-webkit-animation: loadingCircle 1s infinite linear;
animation: loadingCircle 1s infinite linear;
}
@-webkit-keyframes loadingCircle {
100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
@keyframes loadingCircle {
100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
`,fs=function(e){var r=(0,o.useContext)(Gr),t=r.csp,a=r.prefixCls,s=ds;a&&(s=s.replace(/anticon/g,a)),(0,o.useEffect)(function(){var l=e.current,c=(0,Ut.A)(l);(0,Xt.hq)(s,"@ant-design-icons",{prepend:!0,csp:t,attachTo:c})},[])},vs=["icon","className","onClick","style","primaryColor","secondaryColor"],Kn={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function ms(n){var e=n.primaryColor,r=n.secondaryColor;Kn.primaryColor=e,Kn.secondaryColor=r||Yr(e),Kn.calculated=!!r}function ps(){return(0,i.Z)({},Kn)}var lt=function(e){var r=e.icon,t=e.className,a=e.onClick,s=e.style,l=e.primaryColor,c=e.secondaryColor,u=(0,pe.Z)(e,vs),d=o.useRef(),v=Kn;if(l&&(v={primaryColor:l,secondaryColor:c||Yr(l)}),fs(d),us(Jr(r),"icon should be icon definiton, but got ".concat(r)),!Jr(r))return null;var m=r;return m&&typeof m.icon=="function"&&(m=(0,i.Z)((0,i.Z)({},m),{},{icon:m.icon(v.primaryColor,v.secondaryColor)})),It(m.icon,"svg-".concat(m.name),(0,i.Z)((0,i.Z)({className:t,onClick:a,style:s,"data-icon":m.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},u),{},{ref:d}))};lt.displayName="IconReact",lt.getTwoToneColors=ps,lt.setTwoToneColors=ms;var Et=lt;function qr(n){var e=Qr(n),r=(0,ie.Z)(e,2),t=r[0],a=r[1];return Et.setTwoToneColors({primaryColor:t,secondaryColor:a})}function gs(){var n=Et.getTwoToneColors();return n.calculated?[n.primaryColor,n.secondaryColor]:n.primaryColor}var hs=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];qr(is.primary);var it=o.forwardRef(function(n,e){var r=n.className,t=n.icon,a=n.spin,s=n.rotate,l=n.tabIndex,c=n.onClick,u=n.twoToneColor,d=(0,pe.Z)(n,hs),v=o.useContext(Gr),m=v.prefixCls,h=m===void 0?"anticon":m,S=v.rootClassName,p=ae()(S,h,(0,w.Z)((0,w.Z)({},"".concat(h,"-").concat(t.name),!!t.name),"".concat(h,"-spin"),!!a||t.name==="loading"),r),g=l;g===void 0&&c&&(g=-1);var y=s?{msTransform:"rotate(".concat(s,"deg)"),transform:"rotate(".concat(s,"deg)")}:void 0,b=Qr(u),C=(0,ie.Z)(b,2),$=C[0],F=C[1];return o.createElement("span",(0,xe.Z)({role:"img","aria-label":t.name},d,{ref:e,tabIndex:g,onClick:c,className:p}),o.createElement(Et,{icon:t,primaryColor:$,secondaryColor:F,style:y}))});it.displayName="AntdIcon",it.getTwoToneColor=gs,it.setTwoToneColor=qr;var un=it,ys=function(e,r){return o.createElement(un,(0,xe.Z)({},e,{ref:r,icon:ns}))},bs=o.forwardRef(ys),Cs={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M859.9 168H164.1c-4.5 0-8.1 3.6-8.1 8v60c0 4.4 3.6 8 8.1 8h695.8c4.5 0 8.1-3.6 8.1-8v-60c0-4.4-3.6-8-8.1-8zM518.3 355a8 8 0 00-12.6 0l-112 141.7a7.98 7.98 0 006.3 12.9h73.9V848c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V509.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 355z"}}]},name:"vertical-align-top",theme:"outlined"},Ss=Cs,xs=function(e,r){return o.createElement(un,(0,xe.Z)({},e,{ref:r,icon:Ss}))},Zs=o.forwardRef(xs),ws={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M859.9 474H164.1c-4.5 0-8.1 3.6-8.1 8v60c0 4.4 3.6 8 8.1 8h695.8c4.5 0 8.1-3.6 8.1-8v-60c0-4.4-3.6-8-8.1-8zm-353.6-74.7c2.9 3.7 8.5 3.7 11.3 0l100.8-127.5c3.7-4.7.4-11.7-5.7-11.7H550V104c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v156h-62.8c-6 0-9.4 7-5.7 11.7l100.8 127.6zm11.4 225.4a7.14 7.14 0 00-11.3 0L405.6 752.3a7.23 7.23 0 005.7 11.7H474v156c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V764h62.8c6 0 9.4-7 5.7-11.7L517.7 624.7z"}}]},name:"vertical-align-middle",theme:"outlined"},Rs=ws,Ts=function(e,r){return o.createElement(un,(0,xe.Z)({},e,{ref:r,icon:Rs}))},Is=o.forwardRef(Ts),Es={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M859.9 780H164.1c-4.5 0-8.1 3.6-8.1 8v60c0 4.4 3.6 8 8.1 8h695.8c4.5 0 8.1-3.6 8.1-8v-60c0-4.4-3.6-8-8.1-8zM505.7 669a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V176c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8z"}}]},name:"vertical-align-bottom",theme:"outlined"},Ps=Es,$s=function(e,r){return o.createElement(un,(0,xe.Z)({},e,{ref:r,icon:Ps}))},js=o.forwardRef($s),Fs=j(34689),Ns=function(e,r)
h${t}&,
div&-h${t},
div&-h${t} > textarea,
h${t}
`]=Ys(n[`fontSizeHeading${t}`],n[`lineHeightHeading${t}`],n.colorTextHeading,n)}),r},qs=n=>{const{componentCls:e}=n;return{"a&, a":Object.assign(Object.assign({},(0,ta.N)(n)),{textDecoration:n.linkDecoration,"&:active, &:hover":{textDecoration:n.linkHoverDecoration},[`&[disabled], &${e}-disabled`]:{color:n.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:n.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},_s=n=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",fontFamily:n.fontFamilyCode,background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",fontFamily:n.fontFamilyCode,background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:ks.EV[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:600},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,fontFamily:n.fontFamilyCode,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}}),ec=n=>{const{componentCls:e,paddingSM:r}=n,t=r;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:n.calc(n.paddingSM).mul(-1).equal(),marginTop:n.calc(t).mul(-1).equal(),marginBottom:`calc(1em - ${(0,ye.bf)(t)})`},[`${e}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:n.calc(n.marginXS).add(2).equal(),insetBlockEnd:n.marginXS,color:n.colorTextDescription,fontWeight:"normal",fontSize:n.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},nc=n=>({[`${n.componentCls}-copy-success`]:{[`
&,
&:hover,
&:focus`]:{color:n.colorSuccess}},[`${n.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),tc=()=>({[`
a&-ellipsis,
span&-ellipsis
`]:{display:"inline-block",maxWidth:"100%"},"&-single-line":{whiteSpace:"nowrap"},"&-ellipsis-single-line":{overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"},"> code":{paddingBlock:0,maxWidth:"calc(100% - 1.2em)",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"bottom",boxSizing:"content-box"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}}),rc=n=>{const{componentCls:e,titleMarginTop:r}=n;return{[e]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:n.colorText,wordBreak:"break-word",lineHeight:n.lineHeight,[`&${e}-secondary`]:{color:n.colorTextDescription},[`&${e}-success`]:{color:n.colorSuccess},[`&${e}-warning`]:{color:n.colorWarning},[`&${e}-danger`]:{color:n.colorError,"a&:active, a&:focus":{color:n.colorErrorActive},"a&:hover":{color:n.colorErrorHover}},[`&${e}-disabled`]:{color:n.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},[`
div&,
p
`]:{marginBottom:"1em"}},Qs(n)),{[`
& + h1${e},
& + h2${e},
& + h3${e},
& + h4${e},
& + h5${e}
`]:{marginTop:r},[`
div,
ul,
li,
p,
h1,
h2,
h3,
h4,
h5`]:{[`
+ h1,
+ h2,
+ h3,
+ h4,
+ h5
`]:{marginTop:r}}}),_s(n)),qs(n)),{[`
${e}-expand,
${e}-edit,
${e}-copy
`]:Object.assign(Object.assign({},(0,ta.N)(n)),{marginInlineStart:n.marginXXS})}),ec(n)),nc(n)),tc()),{"&-rtl":{direction:"rtl"}})}},ac=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"});var ra=(0,bt.I$)("Typography",n=>[rc(n)],ac),oc=n=>{const{prefixCls:e,"aria-label":r,className:t,style:a,direction:s,maxLength:l,autoSize:c=!0,value:u,onSave:d,onCancel:v,onEnd:m,component:h,enterIcon:S=o.createElement(Gs,null)}=n,p=o.useRef(null),g=o.useRef(!1),y=o.useRef(),[b,C]=o.useState(u);o.useEffect(()=>{C(u)},[u]),o.useEffect(()=>{if(p.current&&p.current.resizableTextArea){const{textArea:Z}=p.current.resizableTextArea;Z.focus();const{length:O}=Z.value;Z.setSelectionRange(O,O)}},[]);const $=Z=>{let{target:O}=Z;C(O.value.replace(/[\n\r]/g,""))},F=()=>{g.current=!0},U=()=>{g.current=!1},H=Z=>{let{keyCode:O}=Z;g.current||(y.current=O)},I=()=>{d(b.trim())},L=Z=>{let{keyCode:O,ctrlKey:A,altKey:_,metaKey:B,shiftKey:R}=Z;y.current===O&&!g.current&&!A&&!_&&!B&&!R&&(O===Cn.Z.ENTER?(I(),m==null||m()):O===Cn.Z.ESC&&v())},N=()=>{I()},T=h?`${e}-${h}`:"",[x,P,Q]=ra(e),K=ae()(e,`${e}-edit-content`,{[`${e}-rtl`]:s==="rtl"},t,T,P,Q);return x(o.createElement("div",{className:K,style:a},o.createElement(Js.Z,{ref:p,maxLength:l,value:b,onChange:$,onKeyDown:H,onKeyUp:L,onCompositionStart:F,onCompositionEnd:U,onBlur:N,"aria-label":r,rows:1,autoSize:c}),S!==null?(0,ar.Tm)(S,{className:`${e}-edit-content-confirm`}):null))};function $t(n,e){return o.useMemo(()=>{const r=!!n;return[r,Object.assign(Object.assign({},e),r&&typeof n=="object"?n:null)]},[n])}var lc=(n,e)=>{const r=o.useRef(!1);o.useEffect(()=>{r.current?n():r.current=!0},e)},ic=function(n,e){var r={};for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&e.indexOf(t)<0&&(r[t]=n[t]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,t=Object.getOwnPropertySymbols(n);a<t.length;a++)e.indexOf(t[a])<0&&Object.prototype.propertyIsEnumerable.call(n,t[a])&&(r[t[a]]=n[t[a]]);return r},aa=o.forwardRef((n,e)=>{const{prefixCls:r,component:t="article",className:a,rootClassName:s,setContentRef:l,children:c,direction:u,style:d}=n,v=ic(n,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:m,direction:h,typography:S}=o.useContext(Rn.E_),p=u!=null?u:h;let g=e;l&&(g=(0,_r.sQ)(e,l));const y=m("typography",r),[b,C,$]=ra(y),F=ae()(y,S==null?void 0:S.className,{[`${y}-rtl`]:p==="rtl"},a,s,C,$),U=Object.assign(Object.assign({},S==null?void 0:S.style),d);return b(o.createElement(t,Object.assign({className:F,style:U,ref:g},v),c))}),sc=j(48820),cc=function(e,r){return o.createElement(Pt.Z,(0,xe.Z)({},e,{ref:r,icon:sc.Z}))},uc=o.forwardRef(cc);function oa(n){return n===!1?[!1,!1]:Array.isArray(n)?n:[n]}function ct(n,e,r){return n===!0||n===void 0?e:n||r&&e}function dc(n){const{prefixCls:e,copied:r,locale:t={},onCopy:a,iconOnly:s,tooltips:l,icon:c}=n,u=oa(l),d=oa(c),{copied:v,copy:m}=t,h=r?ct(u[1],v):ct(u[0],m),p=typeof h=="string"?h:r?v:m;return o.createElement(en.Z,{key:"copy",title:h},o.createElement(na,{className:ae()(`${e}-copy`,{[`${e}-copy-success`]:r,[`${e}-copy-icon-only`]:s}),onClick:a,"aria-label":p},r?ct(d[1],o.createElement(Ir.Z,null),!0):ct(d[0],o.createElement(uc,null),!0)))}const la=o.forwardRef((n,e)=>{let{style:r,children:t}=n;const a=o.useRef(null);return o.useImperativeHandle(e,()=>({isExceed:()=>{const s=a.current;return s.scrollHeight>s.clientHeight},getHeight:()=>a.current.clientHeight})),o.createElement("span",{"aria-hidden":!0,ref:a,style:Object.assign({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},r)},t)});function ia(n){const e=typeof n;return e==="string"||e==="number"}function fc(n){let e=0;return n.forEach(r=>{ia(r)?e+=String(r).length:e+=1}),e}function sa(n,e){let r=0;const t=[];for(let a=0;a<n.length;a+=1){if(r===e)return t;const s=n[a],c=ia(s)?String(s).length:1,u=r+c;if(u>e){const d=e-r;return t.push(String(s).slice(0,d)),t}t.push(s),r=u}return n}const jt=0,Ft=1,Nt=2,ca=3,ua={display:"-webkit-box",overflow:"hidden",WebkitBoxOrien