👨🏻‍💻👩🏻‍💻 Use Ant Design like a Pro!
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.
 
 
 

25 lines
34 KiB

(globalThis.utooChunk_ant_design_pro||(globalThis.utooChunk_ant_design_pro=[])).push(["object"==typeof document?document.currentScript:void 0,97679,912980,e=>{"use strict";let t;var n=e.i(191788),r=e.i(608427),a=e.i(108154),l=e.i(325336),i=e.i(56926),o=e.i(56206),s=e.i(907251),u=e.i(351212),c=e.i(499997);let d=`
min-height:0 !important;
max-height:none !important;
height:0 !important;
visibility:hidden !important;
overflow:hidden !important;
position:absolute !important;
z-index:-1000 !important;
top:0 !important;
right:0 !important;
pointer-events: none !important;
`,p=["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"],f={};function m(){return(m=Object.assign.bind()).apply(this,arguments)}let g=n.forwardRef((e,r)=>{let{prefixCls:a,defaultValue:l,value:g,autoSize:x,onResize:h,className:b,style:y,disabled:v,onChange:E,onInternalAutoSize:w,...$}=e,[S,C]=(0,i.default)(l,g),k=n.useRef();n.useImperativeHandle(r,()=>({textArea:k.current}));let[R,I]=n.useMemo(()=>x&&"object"==typeof x?[x.minRows,x.maxRows]:[],[x]),z=!!x,[N,T]=n.useState(2),[A,H]=n.useState(),F=()=>{T(0)};(0,u.default)(()=>{z&&F()},[g,R,I,z]),(0,u.default)(()=>{if(0===N)T(1);else if(1===N){let e=function(e,n=!1,r=null,a=null){let l,i,o;t||((t=document.createElement("textarea")).setAttribute("tab-index","-1"),t.setAttribute("aria-hidden","true"),t.setAttribute("name","hiddenTextarea"),document.body.appendChild(t)),e.getAttribute("wrap")?t.setAttribute("wrap",e.getAttribute("wrap")):t.removeAttribute("wrap");let{paddingSize:s,borderSize:u,boxSizing:c,sizingStyle:m}=function(e,t=!1){let n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&f[n])return f[n];let r=window.getComputedStyle(e),a=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),l=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),i=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),o={sizingStyle:p.map(e=>`${e}:${r.getPropertyValue(e)}`).join(";"),paddingSize:l,borderSize:i,boxSizing:a};return t&&n&&(f[n]=o),o}(e,n);t.setAttribute("style",`${m};${d}`),t.value=e.value||e.placeholder||"";let g=t.scrollHeight;if("border-box"===c?g+=u:"content-box"===c&&(g-=s),null!==r||null!==a){t.value=" ";let e=t.scrollHeight-s;null!==r&&(i=e*r,"border-box"===c&&(i=i+s+u),g=Math.max(i,g)),null!==a&&(o=e*a,"border-box"===c&&(o=o+s+u),l=g>o?"":"hidden",g=Math.min(o,g))}let x={height:g,overflowY:l,resize:"none"};return i&&(x.minHeight=i),o&&(x.maxHeight=o),x}(k.current,!1,R,I);T(2),H(e)}},[N]);let M=n.useRef(),W=()=>{c.default.cancel(M.current)};n.useEffect(()=>W,[]);let B={...y,...z?A:null};return(0===N||1===N)&&(B.overflowY="hidden",B.overflowX="hidden"),n.createElement(s.default,{onResize:e=>{2===N&&(h?.(e),x&&(W(),M.current=(0,c.default)(()=>{F()})))},disabled:!(x||h)},n.createElement("textarea",m({},$,{ref:k,style:B,className:(0,o.clsx)(a,b,{[`${a}-disabled`]:v}),disabled:v,value:S??"",onChange:e=>{C(e.target.value),E?.(e)}})))});function x(){return(x=Object.assign.bind()).apply(this,arguments)}let h=n.default.forwardRef(({defaultValue:e,value:t,onFocus:s,onBlur:u,onChange:c,allowClear:d,maxLength:p,onCompositionStart:f,onCompositionEnd:m,suffix:h,prefixCls:b="rc-textarea",showCount:y,count:v,className:E,style:w,disabled:$,hidden:S,classNames:C,styles:k,onResize:R,onClear:I,onPressEnter:z,readOnly:N,autoSize:T,onKeyDown:A,...H},F)=>{let M,[W,B]=(0,i.default)(e,t),D=null==W?"":String(W),[L,O]=n.default.useState(!1),j=n.default.useRef(!1),[P,V]=n.default.useState(null),q=(0,n.useRef)(null),_=(0,n.useRef)(null),X=()=>_.current?.textArea,K=()=>{X().focus()};(0,n.useImperativeHandle)(F,()=>({resizableTextArea:_.current,focus:K,blur:()=>{X().blur()},nativeElement:q.current?.nativeElement||X()})),(0,n.useEffect)(()=>{O(e=>!$&&e)},[$]);let[U,G]=n.default.useState(null);n.default.useEffect(()=>{U&&X().setSelectionRange(...U)},[U]);let Y=(0,a.default)(v,y),J=Y.max??p,Q=Number(J)>0,Z=Y.strategy(D),ee=!!J&&Z>J,et=(e,t)=>{let n=t;!j.current&&Y.exceedFormatter&&Y.max&&Y.strategy(t)>Y.max&&(n=Y.exceedFormatter(t,{max:Y.max}),t!==n&&G([X().selectionStart||0,X().selectionEnd||0])),B(n),(0,l.resolveOnChange)(e.currentTarget,e,c,n)},en=h;Y.show&&(M=Y.showFormatter?Y.showFormatter({value:D,count:Z,maxLength:J}):`${Z}${Q?` / ${J}`:""}`,en=n.default.createElement(n.default.Fragment,null,en,n.default.createElement("span",{className:(0,o.clsx)(`${b}-data-count`,C?.count),style:k?.count},M)));let er=!T&&!y&&!d;return n.default.createElement(r.BaseInput,{ref:q,value:D,allowClear:d,handleReset:e=>{B(""),K(),(0,l.resolveOnChange)(X(),e,c)},suffix:en,prefixCls:b,classNames:{...C,affixWrapper:(0,o.clsx)(C?.affixWrapper,{[`${b}-show-count`]:y,[`${b}-textarea-allow-clear`]:d})},disabled:$,focused:L,className:(0,o.clsx)(E,ee&&`${b}-out-of-range`),style:{...w,...P&&!er?{height:"auto"}:{}},dataAttrs:{affixWrapper:{"data-count":"string"==typeof M?M:void 0}},hidden:S,readOnly:N,onClear:I},n.default.createElement(g,x({},H,{autoSize:T,maxLength:p,onKeyDown:e=>{"Enter"===e.key&&z&&!e.nativeEvent.isComposing&&z(e),A?.(e)},onChange:e=>{et(e,e.target.value)},onFocus:e=>{O(!0),s?.(e)},onBlur:e=>{O(!1),u?.(e)},onCompositionStart:e=>{j.current=!0,f?.(e)},onCompositionEnd:e=>{j.current=!1,et(e,e.currentTarget.value),m?.(e)},className:(0,o.clsx)(C?.textarea),style:{resize:w?.resize,...k?.textarea},disabled:$,prefixCls:b,onResize:e=>{R?.(e),X()?.style.height&&V(!0)},ref:_,readOnly:N})))});e.s(["default",()=>h],912980),e.i(912980);var b=e.i(782041),y=e.i(430898),v=e.i(640684),E=e.i(993175),w=e.i(82038),$=e.i(749919),S=e.i(625263),C=e.i(873627),k=e.i(536995),R=e.i(688490),I=e.i(312744),z=e.i(428170),N=e.i(352050),T=e.i(108314),A=e.i(636261),H=(0,N.genStyleHooks)(["Input","TextArea"],e=>(e=>{let{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[`textarea${t}`]:{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}`,resize:"vertical",[`&${t}-mouse-active`]:{transition:`all ${e.motionDurationSlow}, height 0s, width 0s`}},[`${t}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[r]:{position:"relative","&-show-count":{[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
&-allow-clear > ${t},
&-affix-wrapper${r}-has-feedback ${t}
`]:{paddingInlineEnd:n},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-rtl`]:{[`${t}-suffix`]:{[`${t}-data-count`]:{direction:"ltr",insetInlineStart:0}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}})((0,T.mergeToken)(e,(0,A.initInputToken)(e))),A.initComponentToken,{resetFont:!1});let F=(0,n.forwardRef)((e,t)=>{let{prefixCls:r,bordered:a=!0,size:l,disabled:i,status:s,allowClear:u,classNames:c,rootClassName:d,className:p,style:f,styles:m,variant:g,showCount:x,onMouseDown:N,onResize:T,...A}=e,{getPrefixCls:F,direction:M,allowClear:W,autoComplete:B,className:D,style:L,classNames:O,styles:j}=(0,E.useComponentConfig)("textArea"),P=n.useContext(w.default),{status:V,hasFeedback:q,feedbackIcon:_}=n.useContext(C.FormItemInputContext),X=(0,v.getMergedStatus)(V,s),[K,U]=(0,y.useMergeSemantic)([O,c],[j,m],{props:e}),G=n.useRef(null);n.useImperativeHandle(t,()=>({resizableTextArea:G.current?.resizableTextArea,focus:e=>{(0,I.triggerFocus)(G.current?.resizableTextArea?.textArea,e)},blur:()=>G.current?.blur(),nativeElement:G.current?.nativeElement||null}));let Y=F("input",r),J=(0,$.default)(Y),[Q,Z]=(0,z.useSharedStyle)(Y,d);H(Y,J);let{compactSize:ee,compactItemClassnames:et}=(0,R.useCompactItemContext)(Y,M),en=(0,S.default)(e=>l??ee??e),[er,ea]=(0,k.default)("textArea",g,a),el=(0,b.default)(u??W),[ei,eo]=n.useState(!1),[es,eu]=n.useState(!1);return n.createElement(h,{autoComplete:B,...A,style:{...U.root,...L,...f},styles:U,disabled:i??P,allowClear:el,className:(0,o.clsx)(Z,J,p,d,et,D,K.root,{[`${Y}-textarea-affix-wrapper-resize-dirty`]:es}),classNames:{...K,textarea:(0,o.clsx)({[`${Y}-sm`]:"small"===en,[`${Y}-lg`]:"large"===en},Q,K.textarea,ei&&`${Y}-mouse-active`),variant:(0,o.clsx)({[`${Y}-${er}`]:ea},(0,v.getStatusClassNames)(Y,X)),affixWrapper:(0,o.clsx)(`${Y}-textarea-affix-wrapper`,{[`${Y}-affix-wrapper-rtl`]:"rtl"===M,[`${Y}-affix-wrapper-sm`]:"small"===en,[`${Y}-affix-wrapper-lg`]:"large"===en,[`${Y}-textarea-show-count`]:x||e.count?.show},Q)},prefixCls:Y,suffix:q&&n.createElement("span",{className:`${Y}-textarea-suffix`},_),showCount:x,ref:G,onResize:e=>{if(T?.(e),ei&&"function"==typeof getComputedStyle){let e=G.current?.nativeElement?.querySelector("textarea");e&&"both"===getComputedStyle(e).resize&&eu(!0)}},onMouseDown:e=>{eo(!0),N?.(e);let t=()=>{eo(!1),document.removeEventListener("mouseup",t)};document.addEventListener("mouseup",t)}})});e.s(["default",()=>F],97679)},98826,e=>{"use strict";var t=e.i(353944);e.i(191788);var n=e.i(391398);e.s(["PageLoading",0,({isLoading:e,pastDelay:r,timedOut:a,error:l,retry:i,...o})=>(0,n.jsx)("div",{style:{paddingBlockStart:100,textAlign:"center"},children:(0,n.jsx)(t.Spin,{size:"large",...o})})])},100264,e=>{"use strict";var t=e.i(191788),n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"},r=e.i(117716);function a(){return(a=Object.assign.bind()).apply(this,arguments)}let l=t.forwardRef((e,l)=>t.createElement(r.default,a({},e,{ref:l,icon:n})));e.s(["default",()=>l],100264)},106555,e=>{"use strict";var t=e.i(379049),n=e.i(56206),r=e.i(191788),a=e.i(814432),l=e.i(889590),i=e.i(391398);e.s(["GridContent",0,e=>{let o=(0,r.useContext)(a.RouteContext),{children:s,contentWidth:u,className:c,style:d}=e,{getPrefixCls:p}=(0,r.useContext)(t.ConfigProvider.ConfigContext),f=e.prefixCls||p("pro"),m=u||o.contentWidth,g=`${f}-grid-content`,{wrapSSR:x,hashId:h}=(0,l.useStyle)("ProLayoutGridContent",e=>[{[({...e,componentCls:`.${g}`}).componentCls]:{boxSizing:"border-box",width:"100%","&-wide":{maxWidth:1152,margin:"0 auto"}}}]),b="Fixed"===m&&"top"===o.layout;return x((0,i.jsx)("div",{className:(0,n.clsx)(g,h,c,{[`${g}-wide`]:b}),style:d,"data-testid":"pro-grid-content",children:(0,i.jsx)("div",{className:(0,n.clsx)(`${f}-grid-content-children`,h),children:s})}))}],106555)},132259,e=>{"use strict";var t=e.i(313213);e.s(["Space",()=>t.default])},154165,e=>{"use strict";var t=e.i(934854),n=(e,n={})=>!(0,t.isNonNullable)(e)&&n?.skipEmpty?[]:Array.isArray(e)?e:[e];e.s(["default",()=>n])},454895,e=>{"use strict";var t=e.i(267226);e.s(["Tabs",()=>t.default])},560370,e=>{"use strict";var t=e.i(191788),n=e.i(633829),r=e.i(100264),a=e.i(907251),l=e.i(151304),i=e.i(351212),o=e.i(851581),s=e.i(56206),u=e.i(934854),c=e.i(664557),d=e.i(993175),p=e.i(583082),f=e.i(188304),m={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"},g=e.i(117716);function x(){return(x=Object.assign.bind()).apply(this,arguments)}let h=t.forwardRef((e,n)=>t.createElement(g.default,x({},e,{ref:n,icon:m})));var b=e.i(536343),y=e.i(663032),v=e.i(97679),E=e.i(307441),w=e.i(352050),$=e.i(671557),S=(0,w.genStyleHooks)("Typography",e=>{let t,{componentCls:n,titleMarginTop:r}=e;return{[n]:{color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${n}-secondary, &${n}-link${n}-secondary`]:{color:e.colorTextDescription},[`&${n}-success, &${n}-link${n}-success`]:{color:e.colorSuccessText},[`&${n}-warning, &${n}-link${n}-warning`]:{color:e.colorWarningText},[`&${n}-danger, &${n}-link${n}-danger`]:{color:e.colorErrorText,[`&${n}-link:active, &${n}-link:focus`]:{color:e.colorErrorTextActive},[`&${n}-link:hover`]:{color:e.colorErrorTextHover}},[`&${n}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"div&, p":{marginBottom:"1em"},...(t={},[1,2,3,4,5].forEach(n=>{t[`
h${n}&,
div&-h${n},
div&-h${n} > textarea,
h${n}
`]=((e,t,n,r)=>{let{titleMarginBottom:a,fontWeightStrong:l}=r;return{marginBottom:a,color:n,fontWeight:l,fontSize:e,lineHeight:t}})(e[`fontSizeHeading${n}`],e[`lineHeightHeading${n}`],e.colorTextHeading,e)}),t),[`& + h1${n}, & + h2${n}, & + h3${n}, & + h4${n}, & + h5${n}`]:{marginTop:r},"div, ul, li, p, h1, h2, h3, h4, h5":{"+ h1, + h2, + h3, + h4, + h5":{marginTop:r}},...{code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",fontFamily:e.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:e.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:$.gold[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:e.fontWeightStrong},"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:e.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}},...(e=>{let{componentCls:t}=e,n=`${t}-link`;return{[`&${n}`]:{...(0,E.operationUnit)(e),userSelect:"text",[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none",[`${t}-actions`]:{pointerEvents:"auto"}}}}}})(e),[`${n}-actions`]:{display:"inline"},[`
${n}-expand,
${n}-collapse,
${n}-edit,
${n}-copy
`]:{...(0,E.operationUnit)(e),marginInlineStart:e.marginXXS},...(e=>{let{componentCls:t,paddingSM:n}=e;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),insetBlockStart:e.calc(n).div(-2).add(1).equal(),marginBottom:e.calc(n).div(2).sub(2).equal()},[`${t}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorIcon,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}})(e),...{[`${e.componentCls}-copy-success`]:{"&, &:hover, &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}},...{"a&-ellipsis, span&-ellipsis":{display:"inline-block",maxWidth:"100%"},"&-ellipsis-single-line":{whiteSpace:"nowrap",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"}},"&-rtl":{direction:"rtl"}}}},()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"})),C=e=>{let{prefixCls:n,"aria-label":r,className:a,style:l,direction:i,maxLength:o,autoSize:u=!0,value:c,onSave:d,onCancel:p,onEnd:f,component:m,enterIcon:g=t.createElement(h,null)}=e,x=t.useRef(null),E=t.useRef(!1),w=t.useRef(null),[$,C]=t.useState(c);t.useEffect(()=>{C(c)},[c]),t.useEffect(()=>{if(x.current?.resizableTextArea){let{textArea:e}=x.current.resizableTextArea;e.focus();let{length:t}=e.value;e.setSelectionRange(t,t)}},[]);let k=()=>{d($.trim())},[R,I]=S(n),z=(0,s.clsx)(n,`${n}-edit-content`,{[`${n}-rtl`]:"rtl"===i,[`${n}-${m}`]:!!m},a,R,I);return t.createElement("div",{className:z,style:l},t.createElement(v.default,{ref:x,maxLength:o,value:$,onChange:({target:e})=>{C(e.value.replace(/[\n\r]/g,""))},onKeyDown:({keyCode:e})=>{E.current||(w.current=e)},onKeyUp:({keyCode:e,ctrlKey:t,altKey:n,metaKey:r,shiftKey:a})=>{w.current!==e||E.current||t||n||r||a||(e===b.default.ENTER?(k(),f?.()):e===b.default.ESC&&p())},onCompositionStart:()=>{E.current=!0},onCompositionEnd:()=>{E.current=!1},onBlur:()=>{k()},"aria-label":r,rows:1,autoSize:u}),null!==g?(0,y.cloneElement)(g,{className:`${n}-edit-content-confirm`}):null)};let k=async(e,t)=>{try{return t?await navigator.clipboard.write([new ClipboardItem({"text/html":new Blob([e],{type:"text/html"}),"text/plain":new Blob([e],{type:"text/plain"})})]):await navigator.clipboard.writeText(e),!0}catch{return!1}};async function R(e,t){if("string"!=typeof e)return!1;let n=t?.format==="text/html";return!!(await k(e,n)||((e,t)=>{let n=!1,r=r=>{r.stopPropagation(),r.preventDefault(),r.clipboardData?.clearData(),r.clipboardData?.setData("text/plain",e),t&&r.clipboardData?.setData("text/html",e),n=!0};try{return document.addEventListener("copy",r,{capture:!0}),document.execCommand("copy"),n}catch{return!1}finally{document.removeEventListener("copy",r,{capture:!0})}})(e,n))}var I=e.i(154165);function z(e,n){return t.useMemo(()=>{let t=!!e;return[t,{...n,...t&&"object"==typeof e?e:null}]},[e])}let N=t.forwardRef((e,n)=>{let{prefixCls:r,component:a="article",className:l,rootClassName:i,children:o,direction:u,style:c,...p}=e,{getPrefixCls:f,direction:m,className:g,style:x}=(0,d.useComponentConfig)("typography"),h=f("typography",r),[b,y]=S(h),v=(0,s.clsx)(h,g,{[`${h}-rtl`]:"rtl"===(u??m)},l,i,b,y),E={...x,...c};return t.createElement(a,{className:v,style:E,ref:n,...p},o)});var T=e.i(146025),A=e.i(636207),H=e.i(677057);let F=e=>!1===e?[!1,!1]:(0,I.default)(e);function M(e,t,n){return!0===e||void 0===e?t:e||n&&t}let W=e=>["string","number"].includes(typeof e);var B=e=>{let{prefixCls:n,copied:r,locale:a,iconOnly:l,tooltips:i,icon:o,tabIndex:u,onCopy:c,loading:d}=e,p=F(i),m=F(o),{copied:g,copy:x}=a??{},h=r?g:x,b=M(p[+!!r],h),y="string"==typeof b?b:h;return t.createElement(f.default,{title:b},t.createElement("button",{type:"button",className:(0,s.clsx)(`${n}-copy`,{[`${n}-copy-success`]:r,[`${n}-copy-icon-only`]:l}),onClick:c,"aria-label":y,tabIndex:u},r?M(m[1],t.createElement(T.default,null),!0):M(m[0],d?t.createElement(H.default,null):t.createElement(A.default,null),!0)))};let D=t.forwardRef(({style:e,children:n},r)=>{let a=t.useRef(null);return t.useImperativeHandle(r,()=>({isExceed:()=>{let e=a.current;return e.scrollHeight>e.clientHeight},getHeight:()=>a.current.clientHeight})),t.createElement("span",{"aria-hidden":!0,ref:a,style:{position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)",...e}},n)});function L(e,t){let n=0,r=[];for(let a=0;a<e.length;a+=1){if(n===t)return r;let l=e[a],i=n+(W(l)?String(l).length:1);if(i>t){let e=t-n;return r.push(String(l).slice(0,e)),r}r.push(l),n=i}return e}let O={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function j(e){let{enableMeasure:r,width:a,text:o,children:s,rows:u,expanded:c,miscDeps:d,onEllipsis:p}=e,f=t.useMemo(()=>(0,l.toArray)(o),[o]),m=t.useMemo(()=>f.reduce((e,t)=>e+(W(t)?String(t).length:1),0),[o]),g=t.useMemo(()=>s(f,!1),[o]),[x,h]=t.useState(null),b=t.useRef(null),y=t.useRef(null),v=t.useRef(null),E=t.useRef(null),w=t.useRef(null),[$,S]=t.useState(!1),[C,k]=t.useState(0),[R,I]=t.useState(0),[z,N]=t.useState(null);(0,i.default)(()=>{r&&a&&m?k(1):k(0)},[a,o,u,r,f]),(0,i.default)(()=>{if(1===C)k(2),N(y.current&&getComputedStyle(y.current).whiteSpace);else if(2===C){let e=!!v.current?.isExceed();k(e?3:4),h(e?[0,m]:null),S(e),I(Math.max(v.current?.getHeight()||0,(1===u?0:E.current?.getHeight()||0)+(w.current?.getHeight()||0))+1),p(e)}},[C]);let T=x?Math.ceil((x[0]+x[1])/2):0;(0,i.default)(()=>{let[e,t]=x||[0,0];if(e!==t){let n=(b.current?.getHeight()||0)>R,r=T;t-e==1&&(r=n?e:t),h(n?[e,r]:[r,t])}},[x,T]);let A=t.useMemo(()=>{if(!r)return s(f,!1);if(3!==C||!x||x[0]!==x[1]){let e=s(f,!1);return[4,0].includes(C)?e:t.createElement("span",{style:{...O,WebkitLineClamp:u}},e)}return s(c?f:L(f,x[0]),$)},[c,C,x,f].concat((0,n.default)(d))),H={width:a,margin:0,padding:0,whiteSpace:"nowrap"===z?"normal":"inherit"};return t.createElement(t.Fragment,null,A,2===C&&t.createElement(t.Fragment,null,t.createElement(D,{style:{...H,...O,WebkitLineClamp:u},ref:v},g),t.createElement(D,{style:{...H,...O,WebkitLineClamp:u-1},ref:E},g),t.createElement(D,{style:{...H,...O,WebkitLineClamp:1},ref:w},s([],!0))),3===C&&x&&x[0]!==x[1]&&t.createElement(D,{style:{...H,top:400},ref:b},s(L(f,T),!0)),1===C&&t.createElement("span",{style:{whiteSpace:"inherit"},ref:y}))}var P=({enableEllipsis:e,isEllipsis:n,open:r,children:a,tooltipProps:l})=>l?.title&&e?t.createElement(f.default,{open:r&&n,...l},a):a;let V=["delete","mark","code","underline","strong","keyboard","italic"],q=t.forwardRef((e,m)=>{let g,x,h,{prefixCls:b,className:y,style:v,type:E,disabled:w,children:$,ellipsis:S,editable:k,copyable:T,component:A,title:H,onMouseEnter:F,onMouseLeave:M,...D}=e,{getPrefixCls:L,direction:O}=t.useContext(d.ConfigContext),[q]=(0,p.default)("Text"),_=t.useRef(null),X=t.useRef(null),K=L("typography",b),U=(0,l.omit)(D,V),[G,Y]=z(k),[J,Q]=(0,l.useControlledState)(!1,Y.editing),{triggerType:Z=["icon"]}=Y,ee=e=>{e&&Y.onStart?.(),Q(e)},et=(g=(0,t.useRef)(void 0),(0,t.useEffect)(()=>{g.current=J}),g.current);(0,i.default)(()=>{!J&&et&&X.current?.focus()},[J]);let en=e=>{e?.preventDefault(),ee(!0)},[er,ea]=z(T),{copied:el,copyLoading:ei,onClick:eo}=(({copyConfig:e,children:n})=>{let[r,a]=t.useState(!1),[i,o]=t.useState(!1),s=t.useRef(null),u=()=>{s.current&&clearTimeout(s.current)},c={};return e.format&&(c.format=e.format),t.useEffect(()=>u,[]),{copied:r,copyLoading:i,onClick:(0,l.useEvent)(async t=>{t?.preventDefault(),t?.stopPropagation(),o(!0);try{let r="function"==typeof e.text?await e.text():e.text;await R(r||(0,I.default)(n,{skipEmpty:!0}).join("")||"",c),o(!1),a(!0),u(),s.current=setTimeout(()=>{a(!1)},3e3),e.onCopy?.(t)}catch(e){throw o(!1),e}})}})({copyConfig:ea,children:$}),[es,eu]=t.useState(!1),[ec,ed]=t.useState(!1),[ep,ef]=t.useState(!1),[em,eg]=t.useState(!1),[ex,eh]=t.useState(!0),[eb,ey]=z(S,{expandable:!1,symbol:e=>e?q?.collapse:q?.expand}),[ev,eE]=(0,l.useControlledState)(ey.defaultExpanded||!1,ey.expanded),ew=eb&&(!ev||"collapsible"===ey.expandable),{rows:e$=1}=ey,eS=t.useMemo(()=>ew&&(void 0!==ey.suffix||ey.onEllipsis||ey.expandable||G||er),[ew,ey,G,er]);(0,i.default)(()=>{eb&&!eS&&(eu((0,c.isStyleSupport)("webkitLineClamp")),ed((0,c.isStyleSupport)("textOverflow")))},[eS,eb]);let[eC,ek]=t.useState(ew),eR=t.useMemo(()=>!eS&&(1===e$?ec:es),[eS,ec,es]);(0,i.default)(()=>{ek(eR&&ew)},[eR,ew]);let eI=(x=ey.tooltip,h=Y.text,(0,t.useMemo)(()=>!0===x?{title:h??$}:(0,t.isValidElement)(x)?{title:x}:(0,u.isPlainObject)(x)?{title:h??$,...x}:{title:x},[x,h,$])),ez=eC&&!!eI.title,eN=ew&&(eC?ez&&em:ep),eT=ew&&1===e$&&eC,eA=ew&&e$>1&&eC,[eH,eF]=t.useState(0),[eM,eW]=t.useState(!1),[eB,eD]=t.useState(!1),eL=e=>{ef(e),ep!==e&&ey.onEllipsis?.(e)};t.useEffect(()=>{let e=_.current;if(eb&&ez&&e){let t,n,r,a=(t=document.createElement("em"),e.appendChild(t),n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),e.removeChild(t),n.left>r.left||r.right>n.right||n.top>r.top||r.bottom>n.bottom);em!==a&&eg(a)}},[eb,ez,$,eA,ex,eH]),t.useEffect(()=>{let e=_.current;if("u"<typeof IntersectionObserver||!e||!ez||!ew)return;let t=new IntersectionObserver(()=>{eh(!!e.offsetParent)});return t.observe(e),()=>{t.disconnect()}},[ez,ew]);let eO=t.useMemo(()=>{if(eb&&!eC)return[Y.text,$,H,eI.title].find(W)},[eb,eC,H,eI.title,eN]);return J?t.createElement(C,{value:Y.text??("string"==typeof $?$:""),onSave:e=>{Y.onChange?.(e),ee(!1)},onCancel:()=>{Y.onCancel?.(),ee(!1)},onEnd:Y.onEnd,prefixCls:K,className:y,style:v,direction:O,component:A,maxLength:Y.maxLength,autoSize:Y.autoSize,enterIcon:Y.enterIcon}):t.createElement(a.default,{onResize:({offsetWidth:e})=>{eF(e)},disabled:!ew},a=>t.createElement(P,{tooltipProps:eI,enableEllipsis:ew,isEllipsis:eN,open:eB&&!eM},t.createElement(N,{onMouseEnter:e=>{eD(!0),F?.(e)},onMouseLeave:e=>{eD(!1),M?.(e)},className:(0,s.clsx)({[`${K}-${E}`]:E,[`${K}-disabled`]:w,[`${K}-ellipsis`]:eb,[`${K}-ellipsis-single-line`]:eT,[`${K}-ellipsis-multiple-line`]:eA,[`${K}-link`]:"a"===A},y),prefixCls:b,style:{...v,WebkitLineClamp:eA?e$:void 0},component:A,ref:(0,o.composeRef)(a,_,m),direction:O,onClick:Z.includes("text")?en:void 0,"aria-label":eO?.toString(),title:H,...U},t.createElement(j,{enableMeasure:ew&&!eC,text:$,rows:e$,width:eH,onEllipsis:eL,expanded:ev,miscDeps:[el,ev,ei,G,er,q].concat((0,n.default)(V.map(t=>e[t])))},(n,a)=>{var i;let o,s,c;return function({mark:e,code:n,underline:r,delete:a,strong:l,keyboard:i,italic:o},s){let u=s;function c(e,n){n&&(u=t.createElement(e,{},u))}return c("strong",l),c("u",r),c("del",a),c("code",n),c("mark",e),c("kbd",i),c("i",o),u}(e,t.createElement(t.Fragment,null,n.length>0&&a&&!ev&&eO?t.createElement("span",{key:"show-content","aria-hidden":!0},n):n,[(i=a)&&!ev&&t.createElement("span",{"aria-hidden":!0,key:"ellipsis"},"..."),ey.suffix,(o=i&&(()=>{let{expandable:e,symbol:n}=ey;return e?t.createElement("button",{type:"button",key:"expand",className:`${K}-${ev?"collapse":"expand"}`,onClick:e=>{var t;eE((t={expanded:!ev}).expanded),ey.onExpand?.(e,t)},"aria-label":ev?q.collapse:q?.expand},"function"==typeof n?n(ev):n):null})(),s=(()=>{if(!G)return;let{icon:e,tooltip:n,tabIndex:a}=Y,i=(0,l.toArray)(n)[0]||q?.edit,o="string"==typeof i?i:"";return Z.includes("icon")?t.createElement(f.default,{key:"edit",title:!1===n?"":i},t.createElement("button",{type:"button",ref:X,className:`${K}-edit`,onClick:en,"aria-label":o,tabIndex:a},e||t.createElement(r.default,{role:"button"}))):null})(),c=er?t.createElement(B,{key:"copy",...ea,prefixCls:K,copied:el,locale:q,onCopy:eo,loading:ei,iconOnly:!(0,u.isNonNullable)($)}):null,o||s||c?t.createElement("span",{key:"operations",className:`${K}-actions`,onMouseEnter:()=>eW(!0),onMouseLeave:()=>eW(!1)},o,s,c):null)]))}))))}),_=t.forwardRef((e,n)=>{let{ellipsis:r,rel:a,children:l,navigate:i,...o}=e,s={...o,rel:void 0===a&&"_blank"===o.target?"noopener noreferrer":a};return t.createElement(q,{...s,ref:n,ellipsis:!!r,component:"a"},l)}),X=t.forwardRef((e,n)=>{let{children:r,...a}=e;return t.createElement(q,{ref:n,...a,component:"div"},r)}),K=t.forwardRef((e,n)=>{let{ellipsis:r,children:a,...i}=e,o=t.useMemo(()=>(0,u.isPlainObject)(r)?(0,l.omit)(r,["expandable","rows"]):r,[r]);return t.createElement(q,{ref:n,...i,ellipsis:o,component:"span"},a)}),U=[1,2,3,4,5],G=t.forwardRef((e,n)=>{let{level:r=1,children:a,...l}=e,i=U.includes(r)?`h${r}`:"h1";return t.createElement(q,{ref:n,...l,component:i},a)});N.Text=K,N.Link=_,N.Title=G,N.Paragraph=X,e.s(["Typography",()=>N],560370)},608427,325336,108154,636832,782041,e=>{"use strict";var t=e.i(56206),n=e.i(191788);function r(e){return!!(e.addonBefore||e.addonAfter)}function a(e){return!!(e.prefix||e.suffix||e.allowClear)}function l(e,t,n){let r=t.cloneNode(!0),a=Object.create(e,{target:{value:r},currentTarget:{value:r}});return r.value=n,"number"==typeof t.selectionStart&&"number"==typeof t.selectionEnd&&(r.selectionStart=t.selectionStart,r.selectionEnd=t.selectionEnd),r.setSelectionRange=(...e)=>{t.setSelectionRange(...e)},a}function i(e,t,n,r){if(!n)return;let a=t;"click"===t.type?n(a=l(t,e,"")):"file"!==e.type&&void 0!==r?n(a=l(t,e,r)):n(a)}function o(){return(o=Object.assign.bind()).apply(this,arguments)}e.s(["hasAddon",0,r,"hasPrefixSuffix",0,a,"resolveOnChange",0,i],325336);let s=n.default.forwardRef((e,l)=>{let{inputElement:i,children:s,prefixCls:u,prefix:c,suffix:d,addonBefore:p,addonAfter:f,className:m,style:g,disabled:x,readOnly:h,focused:b,triggerFocus:y,allowClear:v,value:E,handleReset:w,hidden:$,classes:S,classNames:C,dataAttrs:k,styles:R,components:I,onClear:z}=e,N=s??i,T=I?.affixWrapper||"span",A=I?.groupWrapper||"span",H=I?.wrapper||"span",F=I?.groupAddon||"span",M=(0,n.useRef)(null),W=a(e),B=(0,n.cloneElement)(N,{value:E,className:(0,t.clsx)(N.props?.className,!W&&C?.variant)||null}),D=(0,n.useRef)(null);if(n.default.useImperativeHandle(l,()=>({nativeElement:D.current||M.current})),W){let e=null;if(v){let r=!x&&!h&&E,a=`${u}-clear-icon`,l="object"==typeof v&&v?.clearIcon?v.clearIcon:"✖";e=n.default.createElement("button",{type:"button",tabIndex:-1,onClick:e=>{w?.(e),z?.()},onMouseDown:e=>e.preventDefault(),className:(0,t.clsx)(a,{[`${a}-hidden`]:!r,[`${a}-has-suffix`]:!!d})},l)}let r=`${u}-affix-wrapper`,a=(0,t.clsx)(r,{[`${u}-disabled`]:x,[`${r}-disabled`]:x,[`${r}-focused`]:b,[`${r}-readonly`]:h,[`${r}-input-with-clear-btn`]:d&&v&&E},S?.affixWrapper,C?.affixWrapper,C?.variant),l=(d||v)&&n.default.createElement("span",{className:(0,t.clsx)(`${u}-suffix`,C?.suffix),style:R?.suffix},e,d);B=n.default.createElement(T,o({className:a,style:R?.affixWrapper,onClick:e=>{M.current?.contains(e.target)&&y?.()}},k?.affixWrapper,{ref:M}),c&&n.default.createElement("span",{className:(0,t.clsx)(`${u}-prefix`,C?.prefix),style:R?.prefix},c),B,l)}if(r(e)){let e=`${u}-group`,r=`${e}-addon`,a=`${e}-wrapper`,l=(0,t.clsx)(`${u}-wrapper`,e,S?.wrapper,C?.wrapper),i=(0,t.clsx)(a,{[`${a}-disabled`]:x},S?.group,C?.groupWrapper);B=n.default.createElement(A,{className:i,ref:D},n.default.createElement(H,{className:l},p&&n.default.createElement(F,{className:r},p),B,f&&n.default.createElement(F,{className:r},f)))}return n.default.cloneElement(B,{className:(0,t.clsx)(B.props?.className,m)||null,style:{...B.props?.style,...g},hidden:$})});var u=e.i(56926),c=e.i(77682);function d(e,t){return n.useMemo(()=>{let n={};t&&(n.show="object"==typeof t&&t.formatter?t.formatter:!!t);let{show:r,...a}=n={...n,...e};return{...a,show:!!r,showFormatter:"function"==typeof r?r:void 0,strategy:a.strategy||(e=>e.length)}},[e,t])}e.s(["default",0,d],108154);var p=e.i(312744);function f(){return(f=Object.assign.bind()).apply(this,arguments)}let m=(0,n.forwardRef)((e,r)=>{let a,{autoComplete:l,onChange:o,onFocus:m,onBlur:g,onPressEnter:x,onKeyDown:h,onKeyUp:b,prefixCls:y="rc-input",disabled:v,htmlSize:E,className:w,maxLength:$,suffix:S,showCount:C,count:k,type:R="text",classes:I,classNames:z,styles:N,onCompositionStart:T,onCompositionEnd:A,...H}=e,[F,M]=(0,n.useState)(!1),W=(0,n.useRef)(!1),B=(0,n.useRef)(!1),D=(0,n.useRef)(null),L=(0,n.useRef)(null),O=e=>{D.current&&(0,p.triggerFocus)(D.current,e)},[j,P]=(0,u.default)(e.defaultValue,e.value),V=null==j?"":String(j),[q,_]=(0,n.useState)(null),X=d(k,C),K=X.max||$,U=X.strategy(V),G=!!K&&U>K;(0,n.useImperativeHandle)(r,()=>({focus:O,blur:()=>{D.current?.blur()},setSelectionRange:(e,t,n)=>{D.current?.setSelectionRange(e,t,n)},select:()=>{D.current?.select()},input:D.current,nativeElement:L.current?.nativeElement||D.current})),(0,n.useEffect)(()=>{B.current&&(B.current=!1),M(e=>(!e||!v)&&e)},[v]);let Y=(e,t,n)=>{let r=t;if(!W.current&&X.exceedFormatter&&X.max&&X.strategy(t)>X.max)r=X.exceedFormatter(t,{max:X.max}),t!==r&&_([D.current?.selectionStart||0,D.current?.selectionEnd||0]);else if("compositionEnd"===n.source)return;P(r),D.current&&i(D.current,e,o,r)};(0,n.useEffect)(()=>{q&&D.current?.setSelectionRange(...q)},[q]);let J=G&&`${y}-out-of-range`;return n.default.createElement(s,f({},H,{prefixCls:y,className:(0,t.clsx)(w,J),handleReset:e=>{P(""),O(),D.current&&i(D.current,e,o)},value:V,focused:F,triggerFocus:O,suffix:(()=>{let e=Number(K)>0;if(S||X.show){let r=X.showFormatter?X.showFormatter({value:V,count:U,maxLength:K}):`${U}${e?` / ${K}`:""}`;return n.default.createElement(n.default.Fragment,null,X.show&&n.default.createElement("span",{className:(0,t.clsx)(`${y}-show-count-suffix`,{[`${y}-show-count-has-suffix`]:!!S},z?.count),style:{...N?.count}},r),S)}return null})(),disabled:v,classes:I,classNames:z,styles:N,ref:L}),(a=(0,c.default)(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]),n.default.createElement("input",f({autoComplete:l},a,{onChange:e=>{Y(e,e.target.value,{source:"change"})},onFocus:e=>{M(!0),m?.(e)},onBlur:e=>{B.current&&(B.current=!1),M(!1),g?.(e)},onKeyDown:e=>{!x||"Enter"!==e.key||B.current||e.nativeEvent.isComposing||(B.current=!0,x(e)),h?.(e)},onKeyUp:e=>{"Enter"===e.key&&(B.current=!1),b?.(e)},className:(0,t.clsx)(y,{[`${y}-disabled`]:v},z?.input),style:N?.input,ref:D,size:E,type:R,onCompositionStart:e=>{W.current=!0,T?.(e)},onCompositionEnd:e=>{W.current=!1,Y(e,e.currentTarget.value,{source:"compositionEnd"}),A?.(e)}}))))});e.s(["default",()=>m],636832),e.i(636832),e.s(["BaseInput",()=>s,"default",()=>m],608427);var g=e.i(876352),x=e.i(934854),h=e=>{let t;return(0,x.isPlainObject)(e)&&e?.clearIcon?t=e:e&&(t={clearIcon:n.default.createElement(g.default,null)}),t};e.s(["default",()=>h],782041)},814432,e=>{"use strict";let t=(0,e.i(191788).createContext)({});e.s(["RouteContext",0,t])}]);