1import{r as o,ae as fe,af as De,ag as G,ah as Ae,ai as je,aj as Be,ak as Xe,al as Fe,am as oe,an as pe,ao as ge,ap as xe,aq as D,ar as Ge,as as Ke,at as Ye,au as Qe,av as Ue,aw as ke,ax as Je,ay as Ze,az as et,aA as Pe,aB as U,aC as tt,aD as nt,aE as rt,aF as le,aG as ve,aH as ot,aI as at,aJ as lt,aK as Se,aL as st,aM as Ne,aN as it,aO as ct,aP as ut,T as mt,aQ as dt,aR as ft,aS as pt,aT as gt,aU as bt,aV as ht,aW as yt,aX as Me,aY as $t,aZ as Ct,a_ as xt,a$ as vt,b0 as St,b1 as Ot,b2 as wt,b3 as Et,a as It}from"./index-hL3pcTef.js";import{u as Re,g as _e,t as me,a as jt}from"./useForm-CRGMdtfF.js";import{R as Ft,a as Pt}from"./row-B6rF7FMd.js";var Nt=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};function Oe(e){return e==="auto"?"1 1 auto":typeof e=="number"?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const Mt=["xs","sm","md","lg","xl","xxl"],Ve=o.forwardRef((e,t)=>{const{getPrefixCls:r,direction:n}=o.useContext(fe),{gutter:a,wrap:c}=o.useContext(Ft),{prefixCls:p,span:s,order:b,offset:u,push:h,pull:f,className:F,children:R,flex:I,style:x}=e,y=Nt(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),g=r("col",p),[j,m,l]=De(g),v={};let O={};Mt.forEach(d=>{let i={};const C=e[d];typeof C=="number"?i.span=C:typeof C=="object"&&(i=C||{}),delete y[d],O=Object.assign(Object.assign({},O),{[`${g}-${d}-${i.span}`]:i.span!==void 0,[`${g}-${d}-order-${i.order}`]:i.order||i.order===0,[`${g}-${d}-offset-${i.offset}`]:i.offset||i.offset===0,[`${g}-${d}-push-${i.push}`]:i.push||i.push===0,[`${g}-${d}-pull-${i.pull}`]:i.pull||i.pull===0,[`${g}-rtl`]:n==="rtl"}),i.flex&&(O[`${g}-${d}-flex`]=!0,v[`--${g}-${d}-flex`]=Oe(i.flex))});const S=G(g,{[`${g}-${s}`]:s!==void 0,[`${g}-order-${b}`]:b,[`${g}-offset-${u}`]:u,[`${g}-push-${h}`]:h,[`${g}-pull-${f}`]:f},F,O,m,l),$={};if(a!=null&&a[0]){const d=typeof a[0]=="number"?`${a[0]/2}px`:`calc(${a[0]} / 2)`;$.paddingLeft=d,$.paddingRight=d}return I&&($.flex=Oe(I),c===!1&&!$.minWidth&&($.minWidth=0)),j(o.createElement("div",Object.assign({},y,{style:Object.assign(Object.assign(Object.assign({},$),x),v),className:S,ref:t}),R))});function Rt(e){return e==null?null:typeof e=="object"&&!o.isValidElement(e)?e:{title:e}}function se(e){const[t,r]=o.useState(e);return o.useEffect(()=>{const n=setTimeout(()=>{r(e)},e.length?0:10);return()=>{clearTimeout(n)}},[e]),t}const _t=e=>{const{componentCls:t}=e,r=`${t}-show-help`,n=`${t}-show-help-item`;return{[r]:{transition:`opacity ${e.motionDurationFast} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}
1},[n]:{overflow:"hidden",transition:`height ${e.motionDurationFast} ${e.motionEaseInOut}, 2 opacity ${e.motionDurationFast} ${e.motionEaseInOut}, 3 transform ${e.motionDurationFast} ${e.motionEaseInOut} !important`,[`&${n}-appear, &${n}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${n}-leave-active`]:{transform:"translateY(-5px)"}}}}},Vt=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${oe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${oe(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),we=(e,t)=>{const{formItemCls:r}=e;return{[r]:{[`${r}-label > label`]:{height:t},[`${r}-control-input`]:{minHeight:t}}}},Lt=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},Fe(e)),Vt(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},we(e,e.controlHeightSM)),"&-large":Object.assign({},we(e,e.controlHeightLG))})}},Tt=e=>{const{formItemCls:t,iconCls:r,rootPrefixCls:n,antCls:a,labelRequiredMarkColor:c,labelColor:p,labelFontSize:s,labelHeight:b,labelColonMarginInlineStart:u,labelColonMarginInlineEnd:h,itemMarginBottom:f}=e;return{[t]:Object.assign(Object.assign({},Fe(e)),{marginBottom:f,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden, 4 &-hidden${a}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:e.lineHeight,whiteSpace:"unset","> label":{verticalAlign:"middle",textWrap:"balance"}},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:b,color:p,fontSize:s,[`> ${r}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:e.marginXXS,color:c,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"'},[`&${t}-required-mark-hidden, &${t}-required-mark-optional`]:{"&::before":{display:"none"}}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`&${t}-required-mark-hidden`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:u,marginInlineEnd:h},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${n}-col-'"]):not([class*="' ${n}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%",[`&:has(> ${a}-switch:only-child, > ${a}-rate:only-child)`]:{display:"flex",alignItems:"center"}}}},[t]:{"&-additional":{display:"flex",flexDirection:"column"},"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:"auto",opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:je,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},re=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),zt=e=>
4{const{antCls:t,formItemCls:r}=e;return{[`${r}-horizontal`]:{[`${r}-label`]:{flexGrow:0},[`${r}-control`]:{flex:"1 1 0",minWidth:0},[`${r}-label[class$='-24'], ${r}-label[class*='-24 ']`]:{[`& + ${r}-control`]:{minWidth:"unset"}},[`${t}-col-24${r}-label, 5 ${t}-col-xl-24${r}-label`]:re(e)}}},Ht=e=>{const{componentCls:t,formItemCls:r,inlineItemMarginBottom:n}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[`${r}-inline`]:{flex:"none",marginInlineEnd:e.margin,marginBottom:n,"&-row":{flexWrap:"nowrap"},[`> ${r}-label, 6 > ${r}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${r}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${r}-has-feedback`]:{display:"inline-block"}}}}},qt=e=>{const{componentCls:t,formItemCls:r,rootPrefixCls:n}=e;return{[`${r} ${r}-label`]:re(e),[`${t}:not(${t}-inline)`]:{[r]:{flexWrap:"wrap",[`${r}-label, ${r}-control`]:{[`&:not([class*=" ${n}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},Wt=e=>{const{componentCls:t,formItemCls:r,antCls:n}=e;return{[`${r}-vertical`]:{[`${r}-row`]:{flexDirection:"column"},[`${r}-label > label`]:{height:"auto"},[`${r}-control`]:{width:"100%"},[`${r}-label, 7 ${n}-col-24${r}-label, 8 ${n}-col-xl-24${r}-label`]:re(e)},[`@media (max-width: ${oe(e.screenXSMax)})`]:[qt(e),{[t]:{[`${r}:not(${r}-horizontal)`]:{[`${n}-col-xs-24${r}-label`]:re(e)}}}],[`@media (max-width: ${oe(e.screenSMMax)})`]:{[t]:{[`${r}:not(${r}-horizontal)`]:{[`${n}-col-sm-24${r}-label`]:re(e)}}},[`@media (max-width: ${oe(e.screenMDMax)})`]:{[t]:{[`${r}:not(${r}-horizontal)`]:{[`${n}-col-md-24${r}-label`]:re(e)}}},[`@media (max-width: ${oe(e.screenLGMax)})`]:{[t]:{[`${r}:not(${r}-horizontal)`]:{[`${n}-col-lg-24${r}-label`]:re(e)}}}}},Dt=e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),Le=(e,t)=>Xe(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),be=Ae("Form",(e,{rootPrefixCls:t})=>{const r=Le(e,t);return[Lt(r),Tt(r),_t(r),zt(r),Ht(r),Wt(r),Be(r),je]},Dt,{order:-1e3}),Ee=[];function de(e,t,r,n=0){return{key:typeof e=="string"?e:`${t}-${n}`,error:e,errorStatus:r}}const Te=({help:e,helpStatus:t,errors:r=Ee,warnings:n=Ee,className:a,fieldId:c,onVisibleChanged:p})=>{const{prefixCls:s}=o.useContext(pe),b=`${s}-item-explain`,u=ge(s),[h,f,F]=be(s,u),R=o.useMemo(()=>xe(s),[s]),I=se(r),x=se(n),y=o.useMemo(()=>e!=null?[de(e,"help",t)]:[].concat(D(I.map((m,l)=>de(m,"error","error",l))),D(x.map((m,l)=>de(m,"warning","warning",l)))),[e,t,I,x]),g=o.useMemo(()=>{const m={};return y.forEach(({key:l})=>{m[l]=(m[l]||0)+1}),y.map((l,v)=>Object.assign(Object.assign({},l),{key:m[l.key]>1?`${l.key}-fallback-${v}`:l.key}))},[y]),j={};return c&&(j.id=`${c}_help`),h(o.createElement(Ge,{motionDeadline:R.motionDeadline,motionName:`${s}-show-help`,visible:!!g.length,onVisibleChanged:p},m=>{const{className:l,style:v}=m;return o.createElement("div",Object.assign({},j,{className:G(b,l,F,u,a,f),style:v}),o.createElement(Ke,Object.assign({keys:g},xe(s),{motionName:`${s}-show-help-item`,component:!1}),O=>{const{key:S,error:$,errorStatus:d,className:i,style:C}=O;return o.createElement("div",{key:S,className:G(i,{[`${b}-${d}`]:d}),style:C},$)}))}))};var At=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const Bt=(e,t)=>
8{const r=o.useContext(Ye),{getPrefixCls:n,direction:a,requiredMark:c,colon:p,scrollToFirstError:s,className:b,style:u}=Qe("form"),{prefixCls:h,className:f,rootClassName:F,size:R,disabled:I=r,form:x,colon:y,labelAlign:g,labelWrap:j,labelCol:m,wrapperCol:l,hideRequiredMark:v,layout:O="horizontal",scrollToFirstError:S,requiredMark:$,onFinishFailed:d,name:i,style:C,feedbackIcons:q,variant:A}=e,V=At(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),L=Ue(R),T=o.useContext(ke),W=o.useMemo(()=>$!==void 0?$:v?!1:c!==void 0?c:!0,[v,$,c]),z=y??p,w=n("form",h),K=ge(w),[H,Y,ee]=be(w,K),ie=G(w,`${w}-${O}`,{[`${w}-hide-required-mark`]:W===!1,[`${w}-rtl`]:a==="rtl",[`${w}-${L}`]:L},ee,K,Y,b,f,F),[Q]=Re(x),{__INTERNAL__:k}=Q;k.name=i;const E=o.useMemo(()=>({name:i,labelAlign:g,labelCol:m,labelWrap:j,wrapperCol:l,layout:O,colon:z,requiredMark:W,itemRef:k.itemRef,form:Q,feedbackIcons:q}),[i,g,m,l,O,z,W,Q,q]),_=o.useRef(null);o.useImperativeHandle(t,()=>{var P;return Object.assign(Object.assign({},Q),{nativeElement:(P=_.current)===null||P===void 0?void 0:P.nativeElement})});const N=(P,X)=>{if(P){let J={block:"nearest"};typeof P=="object"&&(J=Object.assign(Object.assign({},J),P)),Q.scrollToField(X,J)}},B=P=>{if(d==null||d(P),P.errorFields.length){const X=P.errorFields[0].name;if(S!==void 0){N(S,X);return}s!==void 0&&N(s,X)}};return H(o.createElement(Je.Provider,{value:A},o.createElement(Ze,{disabled:I},o.createElement(et.Provider,{value:L},o.createElement(Pe,{validateMessages:T},o.createElement(U.Provider,{value:E},o.createElement(tt,{status:!0},o.createElement(nt,Object.assign({id:i},V,{name:i,onFinishFailed:B,form:Q,ref:_,style:Object.assign(Object.assign({},u),C),className:ie})))))))))},Xt=o.forwardRef(Bt);function Gt(e){if(typeof e=="function")return e;const t=rt(e);return t.length<=1?t[0]:t}const ze=()=>{const{status:e,errors:t=[],warnings:r=[]}=o.useContext(le);return{status:e,errors:t,warnings:r}};ze.Context=le;function Kt(e){const[t,r]=o.useState(e),n=o.useRef(null),a=o.useRef([]),c=o.useRef(!1);o.useEffect(()=>(c.current=!1,()=>{c.current=!0,ve.cancel(n.current),n.current=null}),[]);function p(s){c.current||(n.current===null&&(a.current=[],n.current=ve(()=>{n.current=null,r(b=>{let u=b;return a.current.forEach(h=>{u=h(u)}),u})})),a.current.push(s))}return[t,p]}function Yt(){const{itemRef:e}=o.useContext(U),t=o.useRef({});function r(n,a){const c=a&&typeof a=="object"&&ot(a),p=n.join("_");return(t.current.name!==p||t.current.originRef!==c)&&(t.current.name=p,t.current.originRef=c,t.current.ref=at(e(n),c)),t.current.ref}return r}const Qt=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},Ut=lt(["Form","item-item"],(e,{rootPrefixCls:t})=>{const r=Le(e,t);return Qt(r)});var kt=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const Jt=24,Zt=e=>{const{prefixCls:t,status:r,labelCol:n,wrapperCol:a,children:c,errors:p,warnings:s,_internalItemRender:b,extra:u,help:h,fieldId:f,marginBottom:F,onErrorVisibleChanged:R,label:I}=e,x=`${t}-item`,y=o.useContext(U),g=o.useMemo(()=>{let V=Object.assign({},a||y.wrapperCol||{});return I===null&&!n&&!a&&y.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(T=>{const W=T?[T]:[],z=Se(y.labelCol,W),w=typeof z=="object"?z:{},K=Se(V,W),H=typeof K=="object"?K:{};"span"in w&&!("offset"in H)&&w.span<Jt&&(V=st(V,[].concat(W,["offset"]),w.span))}),V},[a,y.wrapperCol,y.labelCol,I,n]),j=G(`${x}-control`,g.className),m=o.useMemo(()=>{const{labelCol:V,wrapperCol:L}=y;return kt(y,["labelCol","wrapperCol"])},[y]),l=o.useRef(null),[v,O]=o.useState(0);Ne(()=>{u&&l.current?O(l.current.clientHeight):O(0)},[u]);const S=o.createElement("div",{className:`${x}-control-input`},o.createElement("div",{className:`${x}-control-input-content`},c)),$=o.useMemo(()=>({prefixCls:t,status:r}),[t,r]),d=F!==null||p.length||s.length?o.createElement(pe.Provider,{value:$},o.createElement(Te,{fieldId:f,errors:p,warnings:s,help:h,helpStatus:r,className:`${x}-explain-connected`,onVisibleChanged:R})):null,i={};f&&(i.id=`${f}_extra`);const C=u?o.createElement("div",Object.assign({},i,{className:`${x}-extra`,ref:l}),u):null,q=d||C?o.createElement("div",{className:`${x}-additional`,style:F?{minHeight:F+v}:{}},d,C):null,A=b&&b.mark==="pro_table_render"&&b.render?b.render(e,{input
8:S,errorList:d,extra:C}):o.createElement(o.Fragment,null,S,q);return o.createElement(U.Provider,{value:m},o.createElement(Ve,Object.assign({},g,{className:j}),A),o.createElement(Ut,{prefixCls:t}))};var en={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},tn=function(t,r){return o.createElement(it,ct({},t,{ref:r,icon:en}))},nn=o.forwardRef(tn),rn=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const on=({prefixCls:e,label:t,htmlFor:r,labelCol:n,labelAlign:a,colon:c,required:p,requiredMark:s,tooltip:b,vertical:u})=>{var h;const[f]=ut("Form"),{labelAlign:F,labelCol:R,labelWrap:I,colon:x}=o.useContext(U);if(!t)return null;const y=n||R||{},g=a||F,j=`${e}-item-label`,m=G(j,g==="left"&&`${j}-left`,y.className,{[`${j}-wrap`]:!!I});let l=t;const v=c===!0||x!==!1&&c!==!1;v&&!u&&typeof t=="string"&&t.trim()&&(l=t.replace(/[:|ï¼]\s*$/,""));const S=Rt(b);if(S){const{icon:A=o.createElement(nn,null)}=S,V=rn(S,["icon"]),L=o.createElement(mt,Object.assign({},V),o.cloneElement(A,{className:`${e}-item-tooltip`,title:"",onClick:T=>{T.preventDefault()},tabIndex:null}));l=o.createElement(o.Fragment,null,l,L)}const $=s==="optional",d=typeof s=="function",i=s===!1;d?l=s(l,{required:!!p}):$&&!p&&(l=o.createElement(o.Fragment,null,l,o.createElement("span",{className:`${e}-item-optional`,title:""},(f==null?void 0:f.optional)||((h=dt.Form)===null||h===void 0?void 0:h.optional))));let C;i?C="hidden":($||d)&&(C="optional");const q=G({[`${e}-item-required`]:p,[`${e}-item-required-mark-${C}`]:C,[`${e}-item-no-colon`]:!v});return o.createElement(Ve,Object.assign({},y,{className:m}),o.createElement("label",{htmlFor:r,className:q,title:typeof t=="string"?t:""},l))},an={success:bt,warning:gt,error:pt,validating:ft};function He({children:e,errors:t,warnings:r,hasFeedback:n,validateStatus:a,prefixCls:c,meta:p,noStyle:s,name:b}){const u=`${c}-item`,{feedbackIcons:h}=o.useContext(U),f=_e(t,r,p,null,!!n,a),{isFormItemInput:F,status:R,hasFeedback:I,feedbackIcon:x,name:y}=o.useContext(le),g=o.useMemo(()=>{var j;let m;if(n){const v=n!==!0&&n.icons||h,O=f&&((j=v==null?void 0:v({status:f,errors:t,warnings:r}))===null||j===void 0?void 0:j[f]),S=f?an[f]:null;m=O!==!1&&S?o.createElement("span",{className:G(`${u}-feedback-icon`,`${u}-feedback-icon-${f}`)},O||o.createElement(S,null)):null}const l={status:f||"",errors:t,warnings:r,hasFeedback:!!n,feedbackIcon:m,isFormItemInput:!0,name:b};return s&&(l.status=(f??R)||"",l.isFormItemInput=F,l.hasFeedback=!!(n??I),l.feedbackIcon=n!==void 0?l.feedbackIcon:x,l.name=b??y),l},[f,n,s,F,R]);return o.createElement(le.Provider,{value:g},e)}var ln=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};function sn(e){const{prefixCls:t,className:r,rootClassName:n,style:a,help:c,errors:p,warnings:s,validateStatus:b,meta:u,hasFeedback:h,hidden:f,children:F,fieldId:R,required:I,isRequired:x,onSubItemMetaChange:y,layout:g,name:j}=e,m=ln(e,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout","name"]),l=`${t}-item`,{requiredMark:v,layout:O}=o.useContext(U),S=g||O,$=S==="vertical",d=o.useRef(null),i=se(p),C=se(s),q=c!=null,A=!!(q||p.length||s.length),V=!!d.current&&ht(d.current),[L,T]=o.useState(null);Ne(()=>{if(A&&d.current){const H=getComputedStyle(d.current);T(Number.parseInt(H.marginBottom,10))}},[A,V]);const W=H=>{H||T(null)},w=((H=!1)=>{const Y=H?i:u.errors,ee=H?C:u.warnings;return _e(Y,ee,u,"",!!h,b)})(),K=G(l,r,n,{[`${l}-with-help`]:q||i.length||C.length,[`${l}-has-feedback`]:w&&h,[`${l}-has-success`]:w==="success",[`${l}-has-warning`]:w==="warning",[`${l}-has-error`]:w==="error",[`${l}-is-validating`]:w==="validating",[`${l}-hidden`]:f,[`${l}-${S}`]:S});return o.createElement("div",{className:K,style:a,ref:d},o.createElement(Pt,Object.assign({className:`${l}-row`},yt(m,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),o.createElement(on,Object.assign({htmlFor:R},e,{requiredMark:v,required:I??x,prefixCls:t,vertical:$})),o.createElement(Zt,Object.assign({},e,u,{errors:i,warnings:C,prefixCls:t,status:w,help:c,marginBottom:L,onErrorVisibleChanged:W}),o.createElement(Me.Provider,{value:y},o.createElement(He,{prefixCls:t,meta:u,errors:u.errors,warnings:u.warnings,hasFeedback:h,validateStatus:w,name:j},F)))),!!L&&o.createElement("div",{className:`${l}-margin-offset`,style:{marginBottom:-L}}))}const cn="__SPLIT__";function un(e,t){const r=Object.keys(e),n=Object.keys(t);return r.length===n.length&&r.every(a=>{const c=e[a],p=t[a];return c===p||typeof c=="function"||typeof p=="function"})}const mn=o.memo(({children:e})=>e,(e,t)=>un(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((r,n)=>r===t.childProps[n]));function Ie(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function dn(e){const{name:t,noStyle:r,className:n,dependencies:a,prefixCls:c,shouldUpdate:p,rules:s,children:b,required:u,label:h,messageVariables:f,trigger:F="onChange",validateTrigger:
8R,hidden:I,help:x,layout:y}=e,{getPrefixCls:g}=o.useContext(fe),{name:j}=o.useContext(U),m=Gt(b),l=typeof m=="function",v=o.useContext(Me),{validateTrigger:O}=o.useContext($t),S=R!==void 0?R:O,$=t!=null,d=g("form",c),i=ge(d),[C,q,A]=be(d,i);Ct();const V=o.useContext(xt),L=o.useRef(null),[T,W]=Kt({}),[z,w]=vt(()=>Ie()),K=E=>{const _=V==null?void 0:V.getKey(E.name);if(w(E.destroy?Ie():E,!0),r&&x!==!1&&v){let N=E.name;if(E.destroy)N=L.current||N;else if(_!==void 0){const[B,P]=_;N=[B].concat(D(P)),L.current=N}v(E,N)}},H=(E,_)=>{W(N=>{const B=Object.assign({},N),X=[].concat(D(E.name.slice(0,-1)),D(_)).join(cn);return E.destroy?delete B[X]:B[X]=E,B})},[Y,ee]=o.useMemo(()=>{const E=D(z.errors),_=D(z.warnings);return Object.values(T).forEach(N=>{E.push.apply(E,D(N.errors||[])),_.push.apply(_,D(N.warnings||[]))}),[E,_]},[T,z.errors,z.warnings]),ie=Yt();function Q(E,_,N){return r&&!I?o.createElement(He,{prefixCls:d,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:z,errors:Y,warnings:ee,noStyle:!0,name:t},E):o.createElement(sn,Object.assign({key:"row"},e,{className:G(n,A,i,q),prefixCls:d,fieldId:_,isRequired:N,errors:Y,warnings:ee,meta:z,onSubItemMetaChange:H,layout:y,name:t}),E)}if(!$&&!l&&!a)return C(Q(m));let k={};return typeof h=="string"?k.label=h:t&&(k.label=String(t)),f&&(k=Object.assign(Object.assign({},k),f)),C(o.createElement(St,Object.assign({},e,{messageVariables:k,trigger:F,validateTrigger:S,onMetaChange:K}),(E,_,N)=>{const B=me(t).length&&_?_.name:[],P=jt(B,j),X=u!==void 0?u:!!(s!=null&&s.some(M=>{if(M&&typeof M=="object"&&M.required&&!M.warningOnly)return!0;if(typeof M=="function"){const te=M(N);return(te==null?void 0:te.required)&&!(te!=null&&te.warningOnly)}return!1})),J=Object.assign({},E);let ae=null;if(Array.isArray(m)&&$)ae=m;else if(!(l&&(!(p||a)||$))){if(!(a&&!l&&!$))if(o.isValidElement(m)){const M=Object.assign(Object.assign({},m.props),J);if(M.id||(M.id=P),x||Y.length>0||ee.length>0||e.extra){const ne=[];(x||Y.length>0)&&ne.push(`${P}_help`),e.extra&&ne.push(`${P}_extra`),M["aria-describedby"]=ne.join(" ")}Y.length>0&&(M["aria-invalid"]="true"),X&&(M["aria-required"]="true"),Ot(m)&&(M.ref=ie(B,m)),new Set([].concat(D(me(F)),D(me(S)))).forEach(ne=>{M[ne]=(...he)=>{var ye,$e,ce,Ce,ue;(ce=J[ne])===null||ce===void 0||(ye=ce).call.apply(ye,[J].concat(he)),(ue=(Ce=m.props)[ne])===null||ue===void 0||($e=ue).call.apply($e,[Ce].concat(he))}});const We=[M["aria-required"],M["aria-invalid"],M["aria-describedby"]];ae=o.createElement(mn,{control:J,update:m,childProps:We},wt(m,M))}else l&&(p||a)&&!$?ae=m(N):ae=m}return Q(ae,P,X)}))}const qe=dn;qe.useStatus=ze;var fn=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const pn=e=>{var{prefixCls:t,children:r}=e,n=fn(e,["prefixCls","children"]);const{getPrefixCls:a}=o.useContext(fe),c=a("form",t),p=o.useMemo(()=>({prefixCls:c,status:"error"}),[c]);return o.createElement(Et,Object.assign({},n),(s,b,u)=>o.createElement(pe.Provider,{value:p},r(s.map(h=>Object.assign(Object.assign({},h),{fieldKey:h.key})),b,{errors:u.errors,warnings:u.warnings})))};function gn(){const{form:e}=o.useContext(U);return e}const Z=Xt;Z.Item=qe;Z.List=pn;Z.ErrorList=Te;Z.useForm=Re;Z.useFormInstance=gn;Z.useWatch=It;Z.Provider=Pe;Z.create=()=>{};export{Ve as C,Z as F};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.