@gientech/modual 1.0.3 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/LeftOutlined-C1Tv2UIq.js +35 -0
- package/assets/chevron-right-CrkLSPrQ.js +6 -0
- package/assets/createLucideIcon-Bj5DlX2s.js +21 -0
- package/assets/index-BW1L5s38.js +10 -0
- package/assets/index-Bt4pq4lJ.js +1 -0
- package/assets/index-CGHNxHzA.js +167 -0
- package/assets/index-CpW6Dhpp.js +1 -0
- package/assets/index-Df9lUffW.js +1 -0
- package/assets/index-DkrRMiqX.js +1 -0
- package/assets/index-E7FJJ9zV.js +30 -0
- package/assets/index-JdQHnMoG.js +1 -0
- package/assets/index-NIGUFBhG.js +6 -0
- package/assets/plus-B679mjyt.js +6 -0
- package/assets/style.css +1 -1
- package/assets/style2.css +1 -1
- package/assets/style3.css +1 -1
- package/assets/x-CdZQbi--.js +6 -0
- package/chat.js +303 -248
- package/database.js +2 -2
- package/databaseId.js +26 -1
- package/databaseTable.js +18 -1
- package/gientechStreamFilesReader.js +12 -1
- package/modelManage.js +1 -1
- package/package.json +1 -1
- package/sensitive.js +1 -1
- package/streamFilesReader.js +55 -62
- package/assets/index-BMSRZNG4.js +0 -1
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import{I as Xt,d as Le,ao as Ze,aL as Fn,b as Ve,v as Ot,a as K,K as X,_ as ot,f as j,a0 as Gt,w as mt,P as en,$ as xt,aM as Cr,c as wr,a1 as Kt,e as ae,T as Ir,l as Er,aN as Rr,h as rt,a9 as xr,m as Or,k as tn,r as $r,q as Mr,u as Dr,o as Wn,am as Nr,t as Pr,V as un,ae as dn,M as jt,F as jn,G as Nt,ac as Kn,x as Un,L as fn,E as nn,N as Xn,B as ze,a8 as _r,ap as Tr,aq as zr,at as Lr,A as Br,aa as Hr,Q as Vr,a2 as Ar,a7 as Fr,a3 as Wr,O as jr,aE as Kr,X as Ur}from"./index-CGHNxHzA.js";import*as o from"react";import yt,{useState as wt,useMemo as rn,useCallback as Cn,useRef as Ce,useEffect as on,useContext as Xr}from"react";import{unstable_batchedUpdates as Gr,flushSync as wn}from"react-dom";import{w as Yr,u as qr,l as Qr,m as Zr}from"./index-E7FJJ9zV.js";var Jr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},kr=function(t,n){return o.createElement(Xt,Le({},t,{ref:n,icon:Jr}))},Ei=o.forwardRef(kr);const eo=new Ze("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),to=new Ze("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),no=new Ze("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),ro=new Ze("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),oo=new Ze("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),ao=new Ze("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),io=new Ze("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),lo=new Ze("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),co={"move-up":{inKeyframes:io,outKeyframes:lo},"move-down":{inKeyframes:eo,outKeyframes:to},"move-left":{inKeyframes:no,outKeyframes:ro},"move-right":{inKeyframes:oo,outKeyframes:ao}},In=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:a,outKeyframes:i}=co[t];return[Fn(r,a,i,e.motionDurationMid),{[`
|
|
2
|
+
${r}-enter,
|
|
3
|
+
${r}-appear
|
|
4
|
+
`]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Gn=new Ze("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Yn=new Ze("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),qn=new Ze("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Qn=new Ze("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),so=new Ze("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),uo=new Ze("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),fo=new Ze("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),vo=new Ze("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),mo={"slide-up":{inKeyframes:Gn,outKeyframes:Yn},"slide-down":{inKeyframes:qn,outKeyframes:Qn},"slide-left":{inKeyframes:so,outKeyframes:uo},"slide-right":{inKeyframes:fo,outKeyframes:vo}},En=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:a,outKeyframes:i}=mo[t];return[Fn(r,a,i,e.motionDurationMid),{[`
|
|
5
|
+
${r}-enter,
|
|
6
|
+
${r}-appear
|
|
7
|
+
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]};var Yt=function(t){var n=t.className,r=t.customizeIcon,a=t.customizeIconProps,i=t.children,l=t.onMouseDown,c=t.onClick,u=typeof r=="function"?r(a):r;return o.createElement("span",{className:n,onMouseDown:function(f){f.preventDefault(),l==null||l(f)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:c,"aria-hidden":!0},u!==void 0?u:o.createElement("span",{className:Ve(n.split(/\s+/).map(function(v){return"".concat(v,"-icon")}))},i))},go=function(t,n,r,a,i){var l=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,c=arguments.length>6?arguments[6]:void 0,u=arguments.length>7?arguments[7]:void 0,v=yt.useMemo(function(){if(Ot(a)==="object")return a.clearIcon;if(i)return i},[a,i]),f=yt.useMemo(function(){return!!(!l&&a&&(r.length||c)&&!(u==="combobox"&&c===""))},[a,l,r.length,c,u]);return{allowClear:f,clearIcon:yt.createElement(Yt,{className:"".concat(t,"-clear"),onMouseDown:n,customizeIcon:v},"\xD7")}},Zn=o.createContext(null);function po(){return o.useContext(Zn)}function ho(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=o.useState(!1),n=K(t,2),r=n[0],a=n[1],i=o.useRef(null),l=function(){window.clearTimeout(i.current)};o.useEffect(function(){return l},[]);var c=function(v,f){l(),i.current=window.setTimeout(function(){a(v),f&&f()},e)};return[r,c,l]}function Jn(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=o.useRef(null),n=o.useRef(null);o.useEffect(function(){return function(){window.clearTimeout(n.current)}},[]);function r(a){(a||t.current===null)&&(t.current=a),window.clearTimeout(n.current),n.current=window.setTimeout(function(){t.current=null},e)}return[function(){return t.current},r]}function So(e,t,n,r){var a=o.useRef(null);a.current={open:t,triggerOpen:n,customizedTrigger:r},o.useEffect(function(){function i(l){var c;if(!((c=a.current)!==null&&c!==void 0&&c.customizedTrigger)){var u=l.target;u.shadowRoot&&l.composed&&(u=l.composedPath()[0]||u),a.current.open&&e().filter(function(v){return v}).every(function(v){return!v.contains(u)&&v!==u})&&a.current.triggerOpen(!1)}}return window.addEventListener("mousedown",i),function(){return window.removeEventListener("mousedown",i)}},[])}function bo(e){return e&&![X.ESC,X.SHIFT,X.BACKSPACE,X.TAB,X.WIN_KEY,X.ALT,X.META,X.WIN_KEY_RIGHT,X.CTRL,X.SEMICOLON,X.EQUALS,X.CAPS_LOCK,X.CONTEXT_MENU,X.F1,X.F2,X.F3,X.F4,X.F5,X.F6,X.F7,X.F8,X.F9,X.F10,X.F11,X.F12].includes(e)}var yo=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Dt=void 0;function Co(e,t){var n=e.prefixCls,r=e.invalidate,a=e.item,i=e.renderItem,l=e.responsive,c=e.responsiveDisabled,u=e.registerSize,v=e.itemKey,f=e.className,d=e.style,p=e.children,s=e.display,g=e.order,m=e.component,h=m===void 0?"div":m,b=ot(e,yo),S=l&&!s;function w(T){u(v,T)}o.useEffect(function(){return function(){w(null)}},[]);var C=i&&a!==Dt?i(a,{index:g}):p,z;r||(z={opacity:S?0:1,height:S?0:Dt,overflowY:S?"hidden":Dt,order:l?g:Dt,pointerEvents:S?"none":Dt,position:S?"absolute":Dt});var A={};S&&(A["aria-hidden"]=!0);var $=o.createElement(h,Le({className:Ve(!r&&n,f),style:j(j({},z),d)},A,b,{ref:t}),C);return l&&($=o.createElement(Gt,{onResize:function(H){var Z=H.offsetWidth;w(Z)},disabled:c},$)),$}var Bt=o.forwardRef(Co);Bt.displayName="Item";function wo(e){if(typeof MessageChannel>"u")mt(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function Io(){var e=o.useRef(null),t=function(r){e.current||(e.current=[],wo(function(){Gr(function(){e.current.forEach(function(a){a()}),e.current=null})})),e.current.push(r)};return t}function Lt(e,t){var n=o.useState(t),r=K(n,2),a=r[0],i=r[1],l=en(function(c){e(function(){i(c)})});return[a,l]}var Ut=yt.createContext(null),Eo=["component"],Ro=["className"],xo=["className"],Oo=function(t,n){var r=o.useContext(Ut);if(!r){var a=t.component,i=a===void 0?"div":a,l=ot(t,Eo);return o.createElement(i,Le({},l,{ref:n}))}var c=r.className,u=ot(r,Ro),v=t.className,f=ot(t,xo);return o.createElement(Ut.Provider,{value:null},o.createElement(Bt,Le({ref:n,className:Ve(c,v)},u,f)))},kn=o.forwardRef(Oo);kn.displayName="RawItem";var $o=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],er="responsive",tr="invalidate";function Mo(e){return"+ ".concat(e.length," ...")}function Do(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,a=e.data,i=a===void 0?[]:a,l=e.renderItem,c=e.renderRawItem,u=e.itemKey,v=e.itemWidth,f=v===void 0?10:v,d=e.ssr,p=e.style,s=e.className,g=e.maxCount,m=e.renderRest,h=e.renderRawRest,b=e.suffix,S=e.component,w=S===void 0?"div":S,C=e.itemComponent,z=e.onVisibleChange,A=ot(e,$o),$=d==="full",T=Io(),H=Lt(T,null),Z=K(H,2),F=Z[0],G=Z[1],q=F||0,ve=Lt(T,new Map),ie=K(ve,2),J=ie[0],me=ie[1],le=Lt(T,0),ce=K(le,2),W=ce[0],D=ce[1],ne=Lt(T,0),ee=K(ne,2),pe=ee[0],de=ee[1],_e=Lt(T,0),be=K(_e,2),Re=be[0],we=be[1],xe=wt(null),R=K(xe,2),y=R[0],E=R[1],Y=wt(null),I=K(Y,2),_=I[0],se=I[1],V=o.useMemo(function(){return _===null&&$?Number.MAX_SAFE_INTEGER:_||0},[_,F]),re=wt(!1),ge=K(re,2),Ae=ge[0],$e=ge[1],Ne="".concat(r,"-item"),he=Math.max(W,pe),We=g===er,Pe=i.length&&We,ye=g===tr,Me=Pe||typeof g=="number"&&i.length>g,ue=rn(function(){var L=i;return Pe?F===null&&$?L=i:L=i.slice(0,Math.min(i.length,q/f)):typeof g=="number"&&(L=i.slice(0,g)),L},[i,f,F,g,Pe]),Ie=rn(function(){return Pe?i.slice(V+1):i.slice(ue.length)},[i,ue,Pe,V]),De=Cn(function(L,k){var U;return typeof u=="function"?u(L):(U=u&&(L==null?void 0:L[u]))!==null&&U!==void 0?U:k},[u]),at=Cn(l||function(L){return L},[l]);function Te(L,k,U){_===L&&(k===void 0||k===y)||(se(L),U||($e(L<i.length-1),z==null||z(L)),k!==void 0&&E(k))}function Ge(L,k){G(k.clientWidth)}function Oe(L,k){me(function(U){var He=new Map(U);return k===null?He.delete(L):He.set(L,k),He})}function ht(L,k){de(k),D(pe)}function Ue(L,k){we(k)}function tt(L){return J.get(De(ue[L],L))}xt(function(){if(q&&typeof he=="number"&&ue){var L=Re,k=ue.length,U=k-1;if(!k){Te(0,null);return}for(var He=0;He<k;He+=1){var Xe=tt(He);if($&&(Xe=Xe||0),Xe===void 0){Te(He-1,void 0,!0);break}if(L+=Xe,U===0&&L<=q||He===U-1&&L+tt(U)<=q){Te(U,null);break}else if(L+he>q){Te(He-1,L-Xe-Re+pe);break}}b&&tt(0)+Re>q&&E(null)}},[q,J,pe,Re,De,ue]);var Be=Ae&&!!Ie.length,gt={};y!==null&&Pe&&(gt={position:"absolute",left:y,top:0});var Ye={prefixCls:Ne,responsive:Pe,component:C,invalidate:ye},it=c?function(L,k){var U=De(L,k);return o.createElement(Ut.Provider,{key:U,value:j(j({},Ye),{},{order:k,item:L,itemKey:U,registerSize:Oe,display:k<=V})},c(L,k))}:function(L,k){var U=De(L,k);return o.createElement(Bt,Le({},Ye,{order:k,key:U,item:L,renderItem:at,itemKey:U,registerSize:Oe,display:k<=V}))},lt={order:Be?V:Number.MAX_SAFE_INTEGER,className:"".concat(Ne,"-rest"),registerSize:ht,display:Be},ct=m||Mo,nt=h?o.createElement(Ut.Provider,{value:j(j({},Ye),lt)},h(Ie)):o.createElement(Bt,Le({},Ye,lt),typeof ct=="function"?ct(Ie):ct),qe=o.createElement(w,Le({className:Ve(!ye&&r,s),style:p,ref:t},A),ue.map(it),Me?nt:null,b&&o.createElement(Bt,Le({},Ye,{responsive:We,responsiveDisabled:!Pe,order:V,className:"".concat(Ne,"-suffix"),registerSize:Ue,display:!0,style:gt}),b));return We?o.createElement(Gt,{onResize:Ge,disabled:!Pe},qe):qe}var Ht=o.forwardRef(Do);Ht.displayName="Overflow";Ht.Item=kn;Ht.RESPONSIVE=er;Ht.INVALIDATE=tr;function No(e,t,n){var r=j(j({},e),t);return Object.keys(t).forEach(function(a){var i=t[a];typeof i=="function"&&(r[a]=function(){for(var l,c=arguments.length,u=new Array(c),v=0;v<c;v++)u[v]=arguments[v];return i.apply(void 0,u),(l=e[a])===null||l===void 0?void 0:l.call.apply(l,[e].concat(u))})}),r}var Po=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],_o=function(t,n){var r=t.prefixCls,a=t.id,i=t.inputElement,l=t.autoFocus,c=t.autoComplete,u=t.editable,v=t.activeDescendantId,f=t.value,d=t.open,p=t.attrs,s=ot(t,Po),g=i||o.createElement("input",null),m=g,h=m.ref,b=m.props;return Cr(!("maxLength"in g.props)),g=o.cloneElement(g,j(j(j({type:"search"},No(s,b)),{},{id:a,ref:wr(n,h),autoComplete:c||"off",autoFocus:l,className:Ve("".concat(r,"-selection-search-input"),b==null?void 0:b.className),role:"combobox","aria-expanded":d||!1,"aria-haspopup":"listbox","aria-owns":"".concat(a,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(a,"_list"),"aria-activedescendant":d?v:void 0},p),{},{value:u?f:"",readOnly:!u,unselectable:u?null:"on",style:j(j({},b.style),{},{opacity:u?null:0})})),g},nr=o.forwardRef(_o);function rr(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var To=typeof window<"u"&&window.document&&window.document.documentElement,zo=To;function Lo(e){return e!=null}function Bo(e){return!e&&e!==0}function Rn(e){return["string","number"].includes(Ot(e))}function or(e){var t=void 0;return e&&(Rn(e.title)?t=e.title.toString():Rn(e.label)&&(t=e.label.toString())),t}function Ho(e,t){zo?o.useLayoutEffect(e,t):o.useEffect(e,t)}function Vo(e){var t;return(t=e.key)!==null&&t!==void 0?t:e.value}var xn=function(t){t.preventDefault(),t.stopPropagation()},Ao=function(t){var n=t.id,r=t.prefixCls,a=t.values,i=t.open,l=t.searchValue,c=t.autoClearSearchValue,u=t.inputRef,v=t.placeholder,f=t.disabled,d=t.mode,p=t.showSearch,s=t.autoFocus,g=t.autoComplete,m=t.activeDescendantId,h=t.tabIndex,b=t.removeIcon,S=t.maxTagCount,w=t.maxTagTextLength,C=t.maxTagPlaceholder,z=C===void 0?function(Y){return"+ ".concat(Y.length," ...")}:C,A=t.tagRender,$=t.onToggleOpen,T=t.onRemove,H=t.onInputChange,Z=t.onInputPaste,F=t.onInputKeyDown,G=t.onInputMouseDown,q=t.onInputCompositionStart,ve=t.onInputCompositionEnd,ie=t.onInputBlur,J=o.useRef(null),me=wt(0),le=K(me,2),ce=le[0],W=le[1],D=wt(!1),ne=K(D,2),ee=ne[0],pe=ne[1],de="".concat(r,"-selection"),_e=i||d==="multiple"&&c===!1||d==="tags"?l:"",be=d==="tags"||d==="multiple"&&c===!1||p&&(i||ee);Ho(function(){W(J.current.scrollWidth)},[_e]);var Re=function(I,_,se,V,re){return o.createElement("span",{title:or(I),className:Ve("".concat(de,"-item"),ae({},"".concat(de,"-item-disabled"),se))},o.createElement("span",{className:"".concat(de,"-item-content")},_),V&&o.createElement(Yt,{className:"".concat(de,"-item-remove"),onMouseDown:xn,onClick:re,customizeIcon:b},"\xD7"))},we=function(I,_,se,V,re,ge){var Ae=function(Ne){xn(Ne),$(!i)};return o.createElement("span",{onMouseDown:Ae},A({label:_,value:I,disabled:se,closable:V,onClose:re,isMaxTag:!!ge}))},xe=function(I){var _=I.disabled,se=I.label,V=I.value,re=!f&&!_,ge=se;if(typeof w=="number"&&(typeof se=="string"||typeof se=="number")){var Ae=String(ge);Ae.length>w&&(ge="".concat(Ae.slice(0,w),"..."))}var $e=function(he){he&&he.stopPropagation(),T(I)};return typeof A=="function"?we(V,ge,_,re,$e):Re(I,ge,_,re,$e)},R=function(I){if(!a.length)return null;var _=typeof z=="function"?z(I):z;return typeof A=="function"?we(void 0,_,!1,!1,void 0,!0):Re({title:_},_,!1)},y=o.createElement("div",{className:"".concat(de,"-search"),style:{width:ce},onFocus:function(){pe(!0)},onBlur:function(){pe(!1)}},o.createElement(nr,{ref:u,open:i,prefixCls:r,id:n,inputElement:null,disabled:f,autoFocus:s,autoComplete:g,editable:be,activeDescendantId:m,value:_e,onKeyDown:F,onMouseDown:G,onChange:H,onPaste:Z,onCompositionStart:q,onCompositionEnd:ve,onBlur:ie,tabIndex:h,attrs:Kt(t,!0)}),o.createElement("span",{ref:J,className:"".concat(de,"-search-mirror"),"aria-hidden":!0},_e,"\xA0")),E=o.createElement(Ht,{prefixCls:"".concat(de,"-overflow"),data:a,renderItem:xe,renderRest:R,suffix:y,itemKey:Vo,maxCount:S});return o.createElement("span",{className:"".concat(de,"-wrap")},E,!a.length&&!_e&&o.createElement("span",{className:"".concat(de,"-placeholder")},v))},Fo=function(t){var n=t.inputElement,r=t.prefixCls,a=t.id,i=t.inputRef,l=t.disabled,c=t.autoFocus,u=t.autoComplete,v=t.activeDescendantId,f=t.mode,d=t.open,p=t.values,s=t.placeholder,g=t.tabIndex,m=t.showSearch,h=t.searchValue,b=t.activeValue,S=t.maxLength,w=t.onInputKeyDown,C=t.onInputMouseDown,z=t.onInputChange,A=t.onInputPaste,$=t.onInputCompositionStart,T=t.onInputCompositionEnd,H=t.onInputBlur,Z=t.title,F=o.useState(!1),G=K(F,2),q=G[0],ve=G[1],ie=f==="combobox",J=ie||m,me=p[0],le=h||"";ie&&b&&!q&&(le=b),o.useEffect(function(){ie&&ve(!1)},[ie,b]);var ce=f!=="combobox"&&!d&&!m?!1:!!le,W=Z===void 0?or(me):Z,D=o.useMemo(function(){return me?null:o.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:ce?{visibility:"hidden"}:void 0},s)},[me,ce,s,r]);return o.createElement("span",{className:"".concat(r,"-selection-wrap")},o.createElement("span",{className:"".concat(r,"-selection-search")},o.createElement(nr,{ref:i,prefixCls:r,id:a,open:d,inputElement:n,disabled:l,autoFocus:c,autoComplete:u,editable:J,activeDescendantId:v,value:le,onKeyDown:w,onMouseDown:C,onChange:function(ee){ve(!0),z(ee)},onPaste:A,onCompositionStart:$,onCompositionEnd:T,onBlur:H,tabIndex:g,attrs:Kt(t,!0),maxLength:ie?S:void 0})),!ie&&me?o.createElement("span",{className:"".concat(r,"-selection-item"),title:W,style:ce?{visibility:"hidden"}:void 0},me.label):null,D)},Wo=function(t,n){var r=Ce(null),a=Ce(!1),i=t.prefixCls,l=t.open,c=t.mode,u=t.showSearch,v=t.tokenWithEnter,f=t.disabled,d=t.prefix,p=t.autoClearSearchValue,s=t.onSearch,g=t.onSearchSubmit,m=t.onToggleOpen,h=t.onInputKeyDown,b=t.onInputBlur,S=t.domRef;o.useImperativeHandle(n,function(){return{focus:function(W){r.current.focus(W)},blur:function(){r.current.blur()}}});var w=Jn(0),C=K(w,2),z=C[0],A=C[1],$=function(W){var D=W.which,ne=r.current instanceof HTMLTextAreaElement;!ne&&l&&(D===X.UP||D===X.DOWN)&&W.preventDefault(),h&&h(W),D===X.ENTER&&c==="tags"&&!a.current&&!l&&(g==null||g(W.target.value)),!(ne&&!l&&~[X.UP,X.DOWN,X.LEFT,X.RIGHT].indexOf(D))&&bo(D)&&m(!0)},T=function(){A(!0)},H=Ce(null),Z=function(W){s(W,!0,a.current)!==!1&&m(!0)},F=function(){a.current=!0},G=function(W){a.current=!1,c!=="combobox"&&Z(W.target.value)},q=function(W){var D=W.target.value;if(v&&H.current&&/[\r\n]/.test(H.current)){var ne=H.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");D=D.replace(ne,H.current)}H.current=null,Z(D)},ve=function(W){var D=W.clipboardData,ne=D==null?void 0:D.getData("text");H.current=ne||""},ie=function(W){var D=W.target;if(D!==r.current){var ne=document.body.style.msTouchAction!==void 0;ne?setTimeout(function(){r.current.focus()}):r.current.focus()}},J=function(W){var D=z();W.target!==r.current&&!D&&!(c==="combobox"&&f)&&W.preventDefault(),(c!=="combobox"&&(!u||!D)||!l)&&(l&&p!==!1&&s("",!0,!1),m())},me={inputRef:r,onInputKeyDown:$,onInputMouseDown:T,onInputChange:q,onInputPaste:ve,onInputCompositionStart:F,onInputCompositionEnd:G,onInputBlur:b},le=c==="multiple"||c==="tags"?o.createElement(Ao,Le({},t,me)):o.createElement(Fo,Le({},t,me));return o.createElement("div",{ref:S,className:"".concat(i,"-selector"),onClick:ie,onMouseDown:J},d&&o.createElement("div",{className:"".concat(i,"-prefix")},d),le)},jo=o.forwardRef(Wo),Ko=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],Uo=function(t){var n=t===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"}}},Xo=function(t,n){var r=t.prefixCls;t.disabled;var a=t.visible,i=t.children,l=t.popupElement,c=t.animation,u=t.transitionName,v=t.dropdownStyle,f=t.dropdownClassName,d=t.direction,p=d===void 0?"ltr":d,s=t.placement,g=t.builtinPlacements,m=t.dropdownMatchSelectWidth,h=t.dropdownRender,b=t.dropdownAlign,S=t.getPopupContainer,w=t.empty,C=t.getTriggerDOMNode,z=t.onPopupVisibleChange,A=t.onPopupMouseEnter,$=ot(t,Ko),T="".concat(r,"-dropdown"),H=l;h&&(H=h(l));var Z=o.useMemo(function(){return g||Uo(m)},[g,m]),F=c?"".concat(T,"-").concat(c):u,G=typeof m=="number",q=o.useMemo(function(){return G?null:m===!1?"minWidth":"width"},[m,G]),ve=v;G&&(ve=j(j({},ve),{},{width:m}));var ie=o.useRef(null);return o.useImperativeHandle(n,function(){return{getPopupElement:function(){var me;return(me=ie.current)===null||me===void 0?void 0:me.popupElement}}}),o.createElement(Ir,Le({},$,{showAction:z?["click"]:[],hideAction:z?["click"]:[],popupPlacement:s||(p==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Z,prefixCls:T,popupTransitionName:F,popup:o.createElement("div",{onMouseEnter:A},H),ref:ie,stretch:q,popupAlign:b,popupVisible:a,getPopupContainer:S,popupClassName:Ve(f,ae({},"".concat(T,"-empty"),w)),popupStyle:ve,getTriggerDOMNode:C,onPopupVisibleChange:z}),i)},Go=o.forwardRef(Xo);function On(e,t){var n=e.key,r;return"value"in e&&(r=e.value),n??(r!==void 0?r:"rc-index-key-".concat(t))}function an(e){return typeof e<"u"&&!Number.isNaN(e)}function ar(e,t){var n=e||{},r=n.label,a=n.value,i=n.options,l=n.groupLabel,c=r||(t?"children":"label");return{label:c,value:a||"value",options:i||"options",groupLabel:l||c}}function Yo(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,a=[],i=ar(n,!1),l=i.label,c=i.value,u=i.options,v=i.groupLabel;function f(d,p){Array.isArray(d)&&d.forEach(function(s){if(p||!(u in s)){var g=s[c];a.push({key:On(s,a.length),groupOption:p,data:s,label:s[l],value:g})}else{var m=s[v];m===void 0&&r&&(m=s.label),a.push({key:On(s,a.length),group:!0,data:s,label:m}),f(s[u],!0)}})}return f(e,!1),a}function ln(e){var t=j({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return Er(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var qo=function(t,n,r){if(!n||!n.length)return null;var a=!1,i=function c(u,v){var f=Rr(v),d=f[0],p=f.slice(1);if(!d)return[u];var s=u.split(d);return a=a||s.length>1,s.reduce(function(g,m){return[].concat(rt(g),rt(c(m,p)))},[]).filter(Boolean)},l=i(t,n);return a?typeof r<"u"?l.slice(0,r):l:null},vn=o.createContext(null);function Qo(e){var t=e.visible,n=e.values;if(!t)return null;var r=50;return o.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(n.slice(0,r).map(function(a){var i=a.label,l=a.value;return["number","string"].includes(Ot(i))?i:l}).join(", ")),n.length>r?", ...":null)}var Zo=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],Jo=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],cn=function(t){return t==="tags"||t==="multiple"},ko=o.forwardRef(function(e,t){var n,r=e.id,a=e.prefixCls,i=e.className,l=e.showSearch,c=e.tagRender,u=e.direction,v=e.omitDomProps,f=e.displayValues,d=e.onDisplayValuesChange,p=e.emptyOptions,s=e.notFoundContent,g=s===void 0?"Not Found":s,m=e.onClear,h=e.mode,b=e.disabled,S=e.loading,w=e.getInputElement,C=e.getRawInputElement,z=e.open,A=e.defaultOpen,$=e.onDropdownVisibleChange,T=e.activeValue,H=e.onActiveValueChange,Z=e.activeDescendantId,F=e.searchValue,G=e.autoClearSearchValue,q=e.onSearch,ve=e.onSearchSplit,ie=e.tokenSeparators,J=e.allowClear,me=e.prefix,le=e.suffixIcon,ce=e.clearIcon,W=e.OptionList,D=e.animation,ne=e.transitionName,ee=e.dropdownStyle,pe=e.dropdownClassName,de=e.dropdownMatchSelectWidth,_e=e.dropdownRender,be=e.dropdownAlign,Re=e.placement,we=e.builtinPlacements,xe=e.getPopupContainer,R=e.showAction,y=R===void 0?[]:R,E=e.onFocus,Y=e.onBlur,I=e.onKeyUp,_=e.onKeyDown,se=e.onMouseDown,V=ot(e,Zo),re=cn(h),ge=(l!==void 0?l:re)||h==="combobox",Ae=j({},V);Jo.forEach(function(fe){delete Ae[fe]}),v==null||v.forEach(function(fe){delete Ae[fe]});var $e=o.useState(!1),Ne=K($e,2),he=Ne[0],We=Ne[1];o.useEffect(function(){We(xr())},[]);var Pe=o.useRef(null),ye=o.useRef(null),Me=o.useRef(null),ue=o.useRef(null),Ie=o.useRef(null),De=o.useRef(!1),at=ho(),Te=K(at,3),Ge=Te[0],Oe=Te[1],ht=Te[2];o.useImperativeHandle(t,function(){var fe,Q;return{focus:(fe=ue.current)===null||fe===void 0?void 0:fe.focus,blur:(Q=ue.current)===null||Q===void 0?void 0:Q.blur,scrollTo:function(et){var Ke;return(Ke=Ie.current)===null||Ke===void 0?void 0:Ke.scrollTo(et)},nativeElement:Pe.current||ye.current}});var Ue=o.useMemo(function(){var fe;if(h!=="combobox")return F;var Q=(fe=f[0])===null||fe===void 0?void 0:fe.value;return typeof Q=="string"||typeof Q=="number"?String(Q):""},[F,h,f]),tt=h==="combobox"&&typeof w=="function"&&w()||null,Be=typeof C=="function"&&C(),gt=Or(ye,Be==null||(n=Be.props)===null||n===void 0?void 0:n.ref),Ye=o.useState(!1),it=K(Ye,2),lt=it[0],ct=it[1];xt(function(){ct(!0)},[]);var nt=tn(!1,{defaultValue:A,value:z}),qe=K(nt,2),L=qe[0],k=qe[1],U=lt?L:!1,He=!g&&p;(b||He&&U&&h==="combobox")&&(U=!1);var Xe=He?!1:U,x=o.useCallback(function(fe){var Q=fe!==void 0?fe:!U;b||(k(Q),U!==Q&&($==null||$(Q)))},[b,U,k,$]),B=o.useMemo(function(){return(ie||[]).some(function(fe){return[`
|
|
8
|
+
`,`\r
|
|
9
|
+
`].includes(fe)})},[ie]),P=o.useContext(vn)||{},M=P.maxCount,oe=P.rawValues,Ee=function(Q,ke,et){if(!(re&&an(M)&&(oe==null?void 0:oe.size)>=M)){var Ke=!0,Qe=Q;H==null||H(null);var bt=qo(Q,ie,an(M)?M-oe.size:void 0),pt=et?null:bt;return h!=="combobox"&&pt&&(Qe="",ve==null||ve(pt),x(!1),Ke=!1),q&&Ue!==Qe&&q(Qe,{source:ke?"typing":"effect"}),Ke}},st=function(Q){!Q||!Q.trim()||q(Q,{source:"submit"})};o.useEffect(function(){!U&&!re&&h!=="combobox"&&Ee("",!1,!1)},[U]),o.useEffect(function(){L&&b&&k(!1),b&&!De.current&&Oe(!1)},[b]);var Je=Jn(),dt=K(Je,2),Fe=dt[0],ft=dt[1],Ct=o.useRef(!1),Pt=function(Q){var ke=Fe(),et=Q.key,Ke=et==="Enter";if(Ke&&(h!=="combobox"&&Q.preventDefault(),U||x(!0)),ft(!!Ue),et==="Backspace"&&!ke&&re&&!Ue&&f.length){for(var Qe=rt(f),bt=null,pt=Qe.length-1;pt>=0;pt-=1){var It=Qe[pt];if(!It.disabled){Qe.splice(pt,1),bt=It;break}}bt&&d(Qe,{type:"remove",values:[bt]})}for(var Mt=arguments.length,Et=new Array(Mt>1?Mt-1:0),Ft=1;Ft<Mt;Ft++)Et[Ft-1]=arguments[Ft];if(U&&(!Ke||!Ct.current)){var Wt;Ke&&(Ct.current=!0),(Wt=Ie.current)===null||Wt===void 0||Wt.onKeyDown.apply(Wt,[Q].concat(Et))}_==null||_.apply(void 0,[Q].concat(Et))},At=function(Q){for(var ke=arguments.length,et=new Array(ke>1?ke-1:0),Ke=1;Ke<ke;Ke++)et[Ke-1]=arguments[Ke];if(U){var Qe;(Qe=Ie.current)===null||Qe===void 0||Qe.onKeyUp.apply(Qe,[Q].concat(et))}Q.key==="Enter"&&(Ct.current=!1),I==null||I.apply(void 0,[Q].concat(et))},vt=function(Q){var ke=f.filter(function(et){return et!==Q});d(ke,{type:"remove",values:[Q]})},ut=function(){Ct.current=!1},N=o.useRef(!1),O=function(){Oe(!0),b||(E&&!N.current&&E.apply(void 0,arguments),y.includes("focus")&&x(!0)),N.current=!0},te=function(){De.current=!0,Oe(!1,function(){N.current=!1,De.current=!1,x(!1)}),!b&&(Ue&&(h==="tags"?q(Ue,{source:"submit"}):h==="multiple"&&q("",{source:"blur"})),Y&&Y.apply(void 0,arguments))},Se=[];o.useEffect(function(){return function(){Se.forEach(function(fe){return clearTimeout(fe)}),Se.splice(0,Se.length)}},[]);var je=function(Q){var ke,et=Q.target,Ke=(ke=Me.current)===null||ke===void 0?void 0:ke.getPopupElement();if(Ke&&Ke.contains(et)){var Qe=setTimeout(function(){var Mt=Se.indexOf(Qe);if(Mt!==-1&&Se.splice(Mt,1),ht(),!he&&!Ke.contains(document.activeElement)){var Et;(Et=ue.current)===null||Et===void 0||Et.focus()}});Se.push(Qe)}for(var bt=arguments.length,pt=new Array(bt>1?bt-1:0),It=1;It<bt;It++)pt[It-1]=arguments[It];se==null||se.apply(void 0,[Q].concat(pt))},$t=o.useState({}),St=K($t,2),_t=St[1];function qt(){_t({})}var Tt;Be&&(Tt=function(Q){x(Q)}),So(function(){var fe;return[Pe.current,(fe=Me.current)===null||fe===void 0?void 0:fe.getPopupElement()]},Xe,x,!!Be);var zt=o.useMemo(function(){return j(j({},e),{},{notFoundContent:g,open:U,triggerOpen:Xe,id:r,showSearch:ge,multiple:re,toggleOpen:x})},[e,g,Xe,U,r,ge,re,x]),hn=!!le||S,Sn;hn&&(Sn=o.createElement(Yt,{className:Ve("".concat(a,"-arrow"),ae({},"".concat(a,"-arrow-loading"),S)),customizeIcon:le,customizeIconProps:{loading:S,searchValue:Ue,open:U,focused:Ge,showSearch:ge}}));var pr=function(){var Q;m==null||m(),(Q=ue.current)===null||Q===void 0||Q.focus(),d([],{type:"clear",values:f}),Ee("",!1,!1)},bn=go(a,pr,f,J,ce,b,Ue,h),hr=bn.allowClear,Sr=bn.clearIcon,br=o.createElement(W,{ref:Ie}),yr=Ve(a,i,ae(ae(ae(ae(ae(ae(ae(ae(ae(ae({},"".concat(a,"-focused"),Ge),"".concat(a,"-multiple"),re),"".concat(a,"-single"),!re),"".concat(a,"-allow-clear"),J),"".concat(a,"-show-arrow"),hn),"".concat(a,"-disabled"),b),"".concat(a,"-loading"),S),"".concat(a,"-open"),U),"".concat(a,"-customize-input"),tt),"".concat(a,"-show-search"),ge)),yn=o.createElement(Go,{ref:Me,disabled:b,prefixCls:a,visible:Xe,popupElement:br,animation:D,transitionName:ne,dropdownStyle:ee,dropdownClassName:pe,direction:u,dropdownMatchSelectWidth:de,dropdownRender:_e,dropdownAlign:be,placement:Re,builtinPlacements:we,getPopupContainer:xe,empty:p,getTriggerDOMNode:function(Q){return ye.current||Q},onPopupVisibleChange:Tt,onPopupMouseEnter:qt},Be?o.cloneElement(Be,{ref:gt}):o.createElement(jo,Le({},e,{domRef:ye,prefixCls:a,inputElement:tt,ref:ue,id:r,prefix:me,showSearch:ge,autoClearSearchValue:G,mode:h,activeDescendantId:Z,tagRender:c,values:f,open:U,onToggleOpen:x,activeValue:T,searchValue:Ue,onSearch:Ee,onSearchSubmit:st,onRemove:vt,tokenWithEnter:B,onInputBlur:ut}))),Qt;return Be?Qt=yn:Qt=o.createElement("div",Le({className:yr},Ae,{ref:Pe,onMouseDown:je,onKeyDown:Pt,onKeyUp:At,onFocus:O,onBlur:te}),o.createElement(Qo,{visible:Ge&&!U,values:f}),yn,Sn,hr&&Sr),o.createElement(Zn.Provider,{value:zt},Qt)}),mn=function(){return null};mn.isSelectOptGroup=!0;var gn=function(){return null};gn.isSelectOption=!0;var ir=o.forwardRef(function(e,t){var n=e.height,r=e.offsetY,a=e.offsetX,i=e.children,l=e.prefixCls,c=e.onInnerResize,u=e.innerProps,v=e.rtl,f=e.extra,d={},p={display:"flex",flexDirection:"column"};return r!==void 0&&(d={height:n,position:"relative",overflow:"hidden"},p=j(j({},p),{},ae(ae(ae(ae(ae({transform:"translateY(".concat(r,"px)")},v?"marginRight":"marginLeft",-a),"position","absolute"),"left",0),"right",0),"top",0))),o.createElement("div",{style:d},o.createElement(Gt,{onResize:function(g){var m=g.offsetHeight;m&&c&&c()}},o.createElement("div",Le({style:p,className:Ve(ae({},"".concat(l,"-holder-inner"),l)),ref:t},u),i,f)))});ir.displayName="Filler";function ea(e){var t=e.children,n=e.setRef,r=o.useCallback(function(a){n(a)},[]);return o.cloneElement(t,{ref:r})}function ta(e,t,n,r,a,i,l,c){var u=c.getKey;return e.slice(t,n+1).map(function(v,f){var d=t+f,p=l(v,d,{style:{width:r},offsetX:a}),s=u(v);return o.createElement(ea,{key:s,setRef:function(m){return i(v,m)}},p)})}function na(e,t,n){var r=e.length,a=t.length,i,l;if(r===0&&a===0)return null;r<a?(i=e,l=t):(i=t,l=e);var c={__EMPTY_ITEM__:!0};function u(g){return g!==void 0?n(g):c}for(var v=null,f=Math.abs(r-a)!==1,d=0;d<l.length;d+=1){var p=u(i[d]),s=u(l[d]);if(p!==s){v=d,f=f||p!==u(l[d+1]);break}}return v===null?null:{index:v,multiple:f}}function ra(e,t,n){var r=o.useState(e),a=K(r,2),i=a[0],l=a[1],c=o.useState(null),u=K(c,2),v=u[0],f=u[1];return o.useEffect(function(){var d=na(i||[],e||[],t);(d==null?void 0:d.index)!==void 0&&f(e[d.index]),l(e)},[e]),[v]}var $n=(typeof navigator>"u"?"undefined":Ot(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const lr=(function(e,t,n,r){var a=Ce(!1),i=Ce(null);function l(){clearTimeout(i.current),a.current=!0,i.current=setTimeout(function(){a.current=!1},50)}var c=Ce({top:e,bottom:t,left:n,right:r});return c.current.top=e,c.current.bottom=t,c.current.left=n,c.current.right=r,function(u,v){var f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,d=u?v<0&&c.current.left||v>0&&c.current.right:v<0&&c.current.top||v>0&&c.current.bottom;return f&&d?(clearTimeout(i.current),a.current=!1):(!d||a.current)&&l(),!a.current&&d}});function oa(e,t,n,r,a,i,l){var c=Ce(0),u=Ce(null),v=Ce(null),f=Ce(!1),d=lr(t,n,r,a);function p(S,w){if(mt.cancel(u.current),!d(!1,w)){var C=S;if(!C._virtualHandled)C._virtualHandled=!0;else return;c.current+=w,v.current=w,$n||C.preventDefault(),u.current=mt(function(){var z=f.current?10:1;l(c.current*z,!1),c.current=0})}}function s(S,w){l(w,!0),$n||S.preventDefault()}var g=Ce(null),m=Ce(null);function h(S){if(e){mt.cancel(m.current),m.current=mt(function(){g.current=null},2);var w=S.deltaX,C=S.deltaY,z=S.shiftKey,A=w,$=C;(g.current==="sx"||!g.current&&z&&C&&!w)&&(A=C,$=0,g.current="sx");var T=Math.abs(A),H=Math.abs($);g.current===null&&(g.current=i&&T>H?"x":"y"),g.current==="y"?p(S,$):s(S,A)}}function b(S){e&&(f.current=S.detail===v.current)}return[h,b]}function aa(e,t,n,r){var a=o.useMemo(function(){return[new Map,[]]},[e,n.id,r]),i=K(a,2),l=i[0],c=i[1],u=function(f){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:f,p=l.get(f),s=l.get(d);if(p===void 0||s===void 0)for(var g=e.length,m=c.length;m<g;m+=1){var h,b=e[m],S=t(b);l.set(S,m);var w=(h=n.get(S))!==null&&h!==void 0?h:r;if(c[m]=(c[m-1]||0)+w,S===f&&(p=m),S===d&&(s=m),p!==void 0&&s!==void 0)break}return{top:c[p-1]||0,bottom:c[s]}};return u}var ia=(function(){function e(){Mr(this,e),ae(this,"maps",void 0),ae(this,"id",0),ae(this,"diffRecords",new Map),this.maps=Object.create(null)}return $r(e,[{key:"set",value:function(n,r){this.diffRecords.set(n,this.maps[n]),this.maps[n]=r,this.id+=1}},{key:"get",value:function(n){return this.maps[n]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),e})();function Mn(e){var t=parseFloat(e);return isNaN(t)?0:t}function la(e,t,n){var r=o.useState(0),a=K(r,2),i=a[0],l=a[1],c=Ce(new Map),u=Ce(new ia),v=Ce(0);function f(){v.current+=1}function d(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;f();var g=function(){var b=!1;c.current.forEach(function(S,w){if(S&&S.offsetParent){var C=S.offsetHeight,z=getComputedStyle(S),A=z.marginTop,$=z.marginBottom,T=Mn(A),H=Mn($),Z=C+T+H;u.current.get(w)!==Z&&(u.current.set(w,Z),b=!0)}}),b&&l(function(S){return S+1})};if(s)g();else{v.current+=1;var m=v.current;Promise.resolve().then(function(){m===v.current&&g()})}}function p(s,g){var m=e(s);c.current.get(m),g?(c.current.set(m,g),d()):c.current.delete(m)}return on(function(){return f},[]),[p,d,u.current,i]}var Dn=14/15;function ca(e,t,n){var r=Ce(!1),a=Ce(0),i=Ce(0),l=Ce(null),c=Ce(null),u,v=function(s){if(r.current){var g=Math.ceil(s.touches[0].pageX),m=Math.ceil(s.touches[0].pageY),h=a.current-g,b=i.current-m,S=Math.abs(h)>Math.abs(b);S?a.current=g:i.current=m;var w=n(S,S?h:b,!1,s);w&&s.preventDefault(),clearInterval(c.current),w&&(c.current=setInterval(function(){S?h*=Dn:b*=Dn;var C=Math.floor(S?h:b);(!n(S,C,!0)||Math.abs(C)<=.1)&&clearInterval(c.current)},16))}},f=function(){r.current=!1,u()},d=function(s){u(),s.touches.length===1&&!r.current&&(r.current=!0,a.current=Math.ceil(s.touches[0].pageX),i.current=Math.ceil(s.touches[0].pageY),l.current=s.target,l.current.addEventListener("touchmove",v,{passive:!1}),l.current.addEventListener("touchend",f,{passive:!0}))};u=function(){l.current&&(l.current.removeEventListener("touchmove",v),l.current.removeEventListener("touchend",f))},xt(function(){return e&&t.current.addEventListener("touchstart",d,{passive:!0}),function(){var p;(p=t.current)===null||p===void 0||p.removeEventListener("touchstart",d),u(),clearInterval(c.current)}},[e])}function Nn(e){return Math.floor(Math.pow(e,.5))}function sn(e,t){var n="touches"in e?e.touches[0]:e;return n[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}function sa(e,t,n){o.useEffect(function(){var r=t.current;if(e&&r){var a=!1,i,l,c=function(){mt.cancel(i)},u=function p(){c(),i=mt(function(){n(l),p()})},v=function(s){if(!(s.target.draggable||s.button!==0)){var g=s;g._virtualHandled||(g._virtualHandled=!0,a=!0)}},f=function(){a=!1,c()},d=function(s){if(a){var g=sn(s,!1),m=r.getBoundingClientRect(),h=m.top,b=m.bottom;if(g<=h){var S=h-g;l=-Nn(S),u()}else if(g>=b){var w=g-b;l=Nn(w),u()}else c()}};return r.addEventListener("mousedown",v),r.ownerDocument.addEventListener("mouseup",f),r.ownerDocument.addEventListener("mousemove",d),function(){r.removeEventListener("mousedown",v),r.ownerDocument.removeEventListener("mouseup",f),r.ownerDocument.removeEventListener("mousemove",d),c()}}},[e])}var ua=10;function da(e,t,n,r,a,i,l,c){var u=o.useRef(),v=o.useState(null),f=K(v,2),d=f[0],p=f[1];return xt(function(){if(d&&d.times<ua){if(!e.current){p(function(ce){return j({},ce)});return}i();var s=d.targetAlign,g=d.originAlign,m=d.index,h=d.offset,b=e.current.clientHeight,S=!1,w=s,C=null;if(b){for(var z=s||g,A=0,$=0,T=0,H=Math.min(t.length-1,m),Z=0;Z<=H;Z+=1){var F=a(t[Z]);$=A;var G=n.get(F);T=$+(G===void 0?r:G),A=T}for(var q=z==="top"?h:b-h,ve=H;ve>=0;ve-=1){var ie=a(t[ve]),J=n.get(ie);if(J===void 0){S=!0;break}if(q-=J,q<=0)break}switch(z){case"top":C=$-h;break;case"bottom":C=T-b+h;break;default:{var me=e.current.scrollTop,le=me+b;$<me?w="top":T>le&&(w="bottom")}}C!==null&&l(C),C!==d.lastTop&&(S=!0)}S&&p(j(j({},d),{},{times:d.times+1,targetAlign:w,lastTop:C}))}},[d,e.current]),function(s){if(s==null){c();return}if(mt.cancel(u.current),typeof s=="number")l(s);else if(s&&Ot(s)==="object"){var g,m=s.align;"index"in s?g=s.index:g=t.findIndex(function(S){return a(S)===s.key});var h=s.offset,b=h===void 0?0:h;p({times:0,index:g,offset:b,originAlign:m})}}}var Pn=o.forwardRef(function(e,t){var n=e.prefixCls,r=e.rtl,a=e.scrollOffset,i=e.scrollRange,l=e.onStartMove,c=e.onStopMove,u=e.onScroll,v=e.horizontal,f=e.spinSize,d=e.containerSize,p=e.style,s=e.thumbStyle,g=e.showScrollBar,m=o.useState(!1),h=K(m,2),b=h[0],S=h[1],w=o.useState(null),C=K(w,2),z=C[0],A=C[1],$=o.useState(null),T=K($,2),H=T[0],Z=T[1],F=!r,G=o.useRef(),q=o.useRef(),ve=o.useState(g),ie=K(ve,2),J=ie[0],me=ie[1],le=o.useRef(),ce=function(){g===!0||g===!1||(clearTimeout(le.current),me(!0),le.current=setTimeout(function(){me(!1)},3e3))},W=i-d||0,D=d-f||0,ne=o.useMemo(function(){if(a===0||W===0)return 0;var R=a/W;return R*D},[a,W,D]),ee=function(y){y.stopPropagation(),y.preventDefault()},pe=o.useRef({top:ne,dragging:b,pageY:z,startTop:H});pe.current={top:ne,dragging:b,pageY:z,startTop:H};var de=function(y){S(!0),A(sn(y,v)),Z(pe.current.top),l(),y.stopPropagation(),y.preventDefault()};o.useEffect(function(){var R=function(I){I.preventDefault()},y=G.current,E=q.current;return y.addEventListener("touchstart",R,{passive:!1}),E.addEventListener("touchstart",de,{passive:!1}),function(){y.removeEventListener("touchstart",R),E.removeEventListener("touchstart",de)}},[]);var _e=o.useRef();_e.current=W;var be=o.useRef();be.current=D,o.useEffect(function(){if(b){var R,y=function(I){var _=pe.current,se=_.dragging,V=_.pageY,re=_.startTop;mt.cancel(R);var ge=G.current.getBoundingClientRect(),Ae=d/(v?ge.width:ge.height);if(se){var $e=(sn(I,v)-V)*Ae,Ne=re;!F&&v?Ne-=$e:Ne+=$e;var he=_e.current,We=be.current,Pe=We?Ne/We:0,ye=Math.ceil(Pe*he);ye=Math.max(ye,0),ye=Math.min(ye,he),R=mt(function(){u(ye,v)})}},E=function(){S(!1),c()};return window.addEventListener("mousemove",y,{passive:!0}),window.addEventListener("touchmove",y,{passive:!0}),window.addEventListener("mouseup",E,{passive:!0}),window.addEventListener("touchend",E,{passive:!0}),function(){window.removeEventListener("mousemove",y),window.removeEventListener("touchmove",y),window.removeEventListener("mouseup",E),window.removeEventListener("touchend",E),mt.cancel(R)}}},[b]),o.useEffect(function(){return ce(),function(){clearTimeout(le.current)}},[a]),o.useImperativeHandle(t,function(){return{delayHidden:ce}});var Re="".concat(n,"-scrollbar"),we={position:"absolute",visibility:J?null:"hidden"},xe={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return v?(Object.assign(we,{height:8,left:0,right:0,bottom:0}),Object.assign(xe,ae({height:"100%",width:f},F?"left":"right",ne))):(Object.assign(we,ae({width:8,top:0,bottom:0},F?"right":"left",0)),Object.assign(xe,{width:"100%",height:f,top:ne})),o.createElement("div",{ref:G,className:Ve(Re,ae(ae(ae({},"".concat(Re,"-horizontal"),v),"".concat(Re,"-vertical"),!v),"".concat(Re,"-visible"),J)),style:j(j({},we),p),onMouseDown:ee,onMouseMove:ce},o.createElement("div",{ref:q,className:Ve("".concat(Re,"-thumb"),ae({},"".concat(Re,"-thumb-moving"),b)),style:j(j({},xe),s),onMouseDown:de}))}),fa=20;function _n(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=e/t*e;return isNaN(n)&&(n=0),n=Math.max(n,fa),Math.floor(n)}var va=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],ma=[],ga={overflowY:"auto",overflowAnchor:"none"};function pa(e,t){var n=e.prefixCls,r=n===void 0?"rc-virtual-list":n,a=e.className,i=e.height,l=e.itemHeight,c=e.fullHeight,u=c===void 0?!0:c,v=e.style,f=e.data,d=e.children,p=e.itemKey,s=e.virtual,g=e.direction,m=e.scrollWidth,h=e.component,b=h===void 0?"div":h,S=e.onScroll,w=e.onVirtualScroll,C=e.onVisibleChange,z=e.innerProps,A=e.extraRender,$=e.styles,T=e.showScrollBar,H=T===void 0?"optional":T,Z=ot(e,va),F=o.useCallback(function(N){return typeof p=="function"?p(N):N==null?void 0:N[p]},[p]),G=la(F),q=K(G,4),ve=q[0],ie=q[1],J=q[2],me=q[3],le=!!(s!==!1&&i&&l),ce=o.useMemo(function(){return Object.values(J.maps).reduce(function(N,O){return N+O},0)},[J.id,J.maps]),W=le&&f&&(Math.max(l*f.length,ce)>i||!!m),D=g==="rtl",ne=Ve(r,ae({},"".concat(r,"-rtl"),D),a),ee=f||ma,pe=Ce(),de=Ce(),_e=Ce(),be=wt(0),Re=K(be,2),we=Re[0],xe=Re[1],R=wt(0),y=K(R,2),E=y[0],Y=y[1],I=wt(!1),_=K(I,2),se=_[0],V=_[1],re=function(){V(!0)},ge=function(){V(!1)},Ae={getKey:F};function $e(N){xe(function(O){var te;typeof N=="function"?te=N(O):te=N;var Se=ct(te);return pe.current.scrollTop=Se,Se})}var Ne=Ce({start:0,end:ee.length}),he=Ce(),We=ra(ee,F),Pe=K(We,1),ye=Pe[0];he.current=ye;var Me=o.useMemo(function(){if(!le)return{scrollHeight:void 0,start:0,end:ee.length-1,offset:void 0};if(!W){var N;return{scrollHeight:((N=de.current)===null||N===void 0?void 0:N.offsetHeight)||0,start:0,end:ee.length-1,offset:void 0}}for(var O=0,te,Se,je,$t=ee.length,St=0;St<$t;St+=1){var _t=ee[St],qt=F(_t),Tt=J.get(qt),zt=O+(Tt===void 0?l:Tt);zt>=we&&te===void 0&&(te=St,Se=O),zt>we+i&&je===void 0&&(je=St),O=zt}return te===void 0&&(te=0,Se=0,je=Math.ceil(i/l)),je===void 0&&(je=ee.length-1),je=Math.min(je+1,ee.length-1),{scrollHeight:O,start:te,end:je,offset:Se}},[W,le,we,ee,me,i]),ue=Me.scrollHeight,Ie=Me.start,De=Me.end,at=Me.offset;Ne.current.start=Ie,Ne.current.end=De,o.useLayoutEffect(function(){var N=J.getRecord();if(N.size===1){var O=Array.from(N.keys())[0],te=N.get(O),Se=ee[Ie];if(Se&&te===void 0){var je=F(Se);if(je===O){var $t=J.get(O),St=$t-l;$e(function(_t){return _t+St})}}}J.resetRecord()},[ue]);var Te=o.useState({width:0,height:i}),Ge=K(Te,2),Oe=Ge[0],ht=Ge[1],Ue=function(O){ht({width:O.offsetWidth,height:O.offsetHeight})},tt=Ce(),Be=Ce(),gt=o.useMemo(function(){return _n(Oe.width,m)},[Oe.width,m]),Ye=o.useMemo(function(){return _n(Oe.height,ue)},[Oe.height,ue]),it=ue-i,lt=Ce(it);lt.current=it;function ct(N){var O=N;return Number.isNaN(lt.current)||(O=Math.min(O,lt.current)),O=Math.max(O,0),O}var nt=we<=0,qe=we>=it,L=E<=0,k=E>=m,U=lr(nt,qe,L,k),He=function(){return{x:D?-E:E,y:we}},Xe=Ce(He()),x=en(function(N){if(w){var O=j(j({},He()),N);(Xe.current.x!==O.x||Xe.current.y!==O.y)&&(w(O),Xe.current=O)}});function B(N,O){var te=N;O?(wn(function(){Y(te)}),x()):$e(te)}function P(N){var O=N.currentTarget.scrollTop;O!==we&&$e(O),S==null||S(N),x()}var M=function(O){var te=O,Se=m?m-Oe.width:0;return te=Math.max(te,0),te=Math.min(te,Se),te},oe=en(function(N,O){O?(wn(function(){Y(function(te){var Se=te+(D?-N:N);return M(Se)})}),x()):$e(function(te){var Se=te+N;return Se})}),Ee=oa(le,nt,qe,L,k,!!m,oe),st=K(Ee,2),Je=st[0],dt=st[1];ca(le,pe,function(N,O,te,Se){var je=Se;return U(N,O,te)?!1:!je||!je._virtualHandled?(je&&(je._virtualHandled=!0),Je({preventDefault:function(){},deltaX:N?O:0,deltaY:N?0:O}),!0):!1}),sa(W,pe,function(N){$e(function(O){return O+N})}),xt(function(){function N(te){var Se=nt&&te.detail<0,je=qe&&te.detail>0;le&&!Se&&!je&&te.preventDefault()}var O=pe.current;return O.addEventListener("wheel",Je,{passive:!1}),O.addEventListener("DOMMouseScroll",dt,{passive:!0}),O.addEventListener("MozMousePixelScroll",N,{passive:!1}),function(){O.removeEventListener("wheel",Je),O.removeEventListener("DOMMouseScroll",dt),O.removeEventListener("MozMousePixelScroll",N)}},[le,nt,qe]),xt(function(){if(m){var N=M(E);Y(N),x({x:N})}},[Oe.width,m]);var Fe=function(){var O,te;(O=tt.current)===null||O===void 0||O.delayHidden(),(te=Be.current)===null||te===void 0||te.delayHidden()},ft=da(pe,ee,J,l,F,function(){return ie(!0)},$e,Fe);o.useImperativeHandle(t,function(){return{nativeElement:_e.current,getScrollInfo:He,scrollTo:function(O){function te(Se){return Se&&Ot(Se)==="object"&&("left"in Se||"top"in Se)}te(O)?(O.left!==void 0&&Y(M(O.left)),ft(O.top)):ft(O)}}}),xt(function(){if(C){var N=ee.slice(Ie,De+1);C(N,ee)}},[Ie,De,ee]);var Ct=aa(ee,F,J,l),Pt=A==null?void 0:A({start:Ie,end:De,virtual:W,offsetX:E,offsetY:at,rtl:D,getSize:Ct}),At=ta(ee,Ie,De,m,E,ve,d,Ae),vt=null;i&&(vt=j(ae({},u?"height":"maxHeight",i),ga),le&&(vt.overflowY="hidden",m&&(vt.overflowX="hidden"),se&&(vt.pointerEvents="none")));var ut={};return D&&(ut.dir="rtl"),o.createElement("div",Le({ref:_e,style:j(j({},v),{},{position:"relative"}),className:ne},ut,Z),o.createElement(Gt,{onResize:Ue},o.createElement(b,{className:"".concat(r,"-holder"),style:vt,ref:pe,onScroll:P,onMouseEnter:Fe},o.createElement(ir,{prefixCls:r,height:ue,offsetX:E,offsetY:at,scrollWidth:m,onInnerResize:ie,ref:de,innerProps:z,rtl:D,extra:Pt},At))),W&&ue>i&&o.createElement(Pn,{ref:tt,prefixCls:r,scrollOffset:we,scrollRange:ue,rtl:D,onScroll:B,onStartMove:re,onStopMove:ge,spinSize:Ye,containerSize:Oe.height,style:$==null?void 0:$.verticalScrollBar,thumbStyle:$==null?void 0:$.verticalScrollBarThumb,showScrollBar:H}),W&&m>Oe.width&&o.createElement(Pn,{ref:Be,prefixCls:r,scrollOffset:E,scrollRange:m,rtl:D,onScroll:B,onStartMove:re,onStopMove:ge,spinSize:gt,containerSize:Oe.width,horizontal:!0,style:$==null?void 0:$.horizontalScrollBar,thumbStyle:$==null?void 0:$.horizontalScrollBarThumb,showScrollBar:H}))}var cr=o.forwardRef(pa);cr.displayName="List";function ha(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var Sa=["disabled","title","children","style","className"];function Tn(e){return typeof e=="string"||typeof e=="number"}var ba=function(t,n){var r=po(),a=r.prefixCls,i=r.id,l=r.open,c=r.multiple,u=r.mode,v=r.searchValue,f=r.toggleOpen,d=r.notFoundContent,p=r.onPopupScroll,s=o.useContext(vn),g=s.maxCount,m=s.flattenOptions,h=s.onActiveValue,b=s.defaultActiveFirstOption,S=s.onSelect,w=s.menuItemSelectedIcon,C=s.rawValues,z=s.fieldNames,A=s.virtual,$=s.direction,T=s.listHeight,H=s.listItemHeight,Z=s.optionRender,F="".concat(a,"-item"),G=Dr(function(){return m},[l,m],function(R,y){return y[0]&&R[1]!==y[1]}),q=o.useRef(null),ve=o.useMemo(function(){return c&&an(g)&&(C==null?void 0:C.size)>=g},[c,g,C==null?void 0:C.size]),ie=function(y){y.preventDefault()},J=function(y){var E;(E=q.current)===null||E===void 0||E.scrollTo(typeof y=="number"?{index:y}:y)},me=o.useCallback(function(R){return u==="combobox"?!1:C.has(R)},[u,rt(C).toString(),C.size]),le=function(y){for(var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Y=G.length,I=0;I<Y;I+=1){var _=(y+I*E+Y)%Y,se=G[_]||{},V=se.group,re=se.data;if(!V&&!(re!=null&&re.disabled)&&(me(re.value)||!ve))return _}return-1},ce=o.useState(function(){return le(0)}),W=K(ce,2),D=W[0],ne=W[1],ee=function(y){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;ne(y);var Y={source:E?"keyboard":"mouse"},I=G[y];if(!I){h(null,-1,Y);return}h(I.value,y,Y)};on(function(){ee(b!==!1?le(0):-1)},[G.length,v]);var pe=o.useCallback(function(R){return u==="combobox"?String(R).toLowerCase()===v.toLowerCase():C.has(R)},[u,v,rt(C).toString(),C.size]);on(function(){var R=setTimeout(function(){if(!c&&l&&C.size===1){var E=Array.from(C)[0],Y=G.findIndex(function(I){var _=I.data;return v?String(_.value).startsWith(v):_.value===E});Y!==-1&&(ee(Y),J(Y))}});if(l){var y;(y=q.current)===null||y===void 0||y.scrollTo(void 0)}return function(){return clearTimeout(R)}},[l,v]);var de=function(y){y!==void 0&&S(y,{selected:!C.has(y)}),c||f(!1)};if(o.useImperativeHandle(n,function(){return{onKeyDown:function(y){var E=y.which,Y=y.ctrlKey;switch(E){case X.N:case X.P:case X.UP:case X.DOWN:{var I=0;if(E===X.UP?I=-1:E===X.DOWN?I=1:ha()&&Y&&(E===X.N?I=1:E===X.P&&(I=-1)),I!==0){var _=le(D+I,I);J(_),ee(_,!0)}break}case X.TAB:case X.ENTER:{var se,V=G[D];V&&!(V!=null&&(se=V.data)!==null&&se!==void 0&&se.disabled)&&!ve?de(V.value):de(void 0),l&&y.preventDefault();break}case X.ESC:f(!1),l&&y.stopPropagation()}},onKeyUp:function(){},scrollTo:function(y){J(y)}}}),G.length===0)return o.createElement("div",{role:"listbox",id:"".concat(i,"_list"),className:"".concat(F,"-empty"),onMouseDown:ie},d);var _e=Object.keys(z).map(function(R){return z[R]}),be=function(y){return y.label};function Re(R,y){var E=R.group;return{role:E?"presentation":"option",id:"".concat(i,"_list_").concat(y)}}var we=function(y){var E=G[y];if(!E)return null;var Y=E.data||{},I=Y.value,_=E.group,se=Kt(Y,!0),V=be(E);return E?o.createElement("div",Le({"aria-label":typeof V=="string"&&!_?V:null},se,{key:y},Re(E,y),{"aria-selected":pe(I)}),I):null},xe={role:"listbox",id:"".concat(i,"_list")};return o.createElement(o.Fragment,null,A&&o.createElement("div",Le({},xe,{style:{height:0,width:0,overflow:"hidden"}}),we(D-1),we(D),we(D+1)),o.createElement(cr,{itemKey:"key",ref:q,data:G,height:T,itemHeight:H,fullHeight:!1,onMouseDown:ie,onScroll:p,virtual:A,direction:$,innerProps:A?null:xe},function(R,y){var E=R.group,Y=R.groupOption,I=R.data,_=R.label,se=R.value,V=I.key;if(E){var re,ge=(re=I.title)!==null&&re!==void 0?re:Tn(_)?_.toString():void 0;return o.createElement("div",{className:Ve(F,"".concat(F,"-group"),I.className),title:ge},_!==void 0?_:V)}var Ae=I.disabled,$e=I.title;I.children;var Ne=I.style,he=I.className,We=ot(I,Sa),Pe=Wn(We,_e),ye=me(se),Me=Ae||!ye&&ve,ue="".concat(F,"-option"),Ie=Ve(F,ue,he,ae(ae(ae(ae({},"".concat(ue,"-grouped"),Y),"".concat(ue,"-active"),D===y&&!Me),"".concat(ue,"-disabled"),Me),"".concat(ue,"-selected"),ye)),De=be(R),at=!w||typeof w=="function"||ye,Te=typeof De=="number"?De:De||se,Ge=Tn(Te)?Te.toString():void 0;return $e!==void 0&&(Ge=$e),o.createElement("div",Le({},Kt(Pe),A?{}:Re(R,y),{"aria-selected":pe(se),className:Ie,title:Ge,onMouseMove:function(){D===y||Me||ee(y)},onClick:function(){Me||de(se)},style:Ne}),o.createElement("div",{className:"".concat(ue,"-content")},typeof Z=="function"?Z(R,{index:y}):Te),o.isValidElement(w)||ye,at&&o.createElement(Yt,{className:"".concat(F,"-option-state"),customizeIcon:w,customizeIconProps:{value:se,disabled:Me,isSelected:ye}},ye?"\u2713":null))}))},ya=o.forwardRef(ba);const Ca=(function(e,t){var n=o.useRef({values:new Map,options:new Map}),r=o.useMemo(function(){var i=n.current,l=i.values,c=i.options,u=e.map(function(d){if(d.label===void 0){var p;return j(j({},d),{},{label:(p=l.get(d.value))===null||p===void 0?void 0:p.label})}return d}),v=new Map,f=new Map;return u.forEach(function(d){v.set(d.value,d),f.set(d.value,t.get(d.value)||c.get(d.value))}),n.current.values=v,n.current.options=f,u},[e,t]),a=o.useCallback(function(i){return t.get(i)||n.current.options.get(i)},[t]);return[r,a]});function Zt(e,t){return rr(e).join("").toUpperCase().includes(t)}const wa=(function(e,t,n,r,a){return o.useMemo(function(){if(!n||r===!1)return e;var i=t.options,l=t.label,c=t.value,u=[],v=typeof r=="function",f=n.toUpperCase(),d=v?r:function(s,g){return a?Zt(g[a],f):g[i]?Zt(g[l!=="children"?l:"label"],f):Zt(g[c],f)},p=v?function(s){return ln(s)}:function(s){return s};return e.forEach(function(s){if(s[i]){var g=d(n,p(s));if(g)u.push(s);else{var m=s[i].filter(function(h){return d(n,p(h))});m.length&&u.push(j(j({},s),{},ae({},i,m)))}return}d(n,p(s))&&u.push(s)}),u},[e,r,a,n,t])});var zn=0,Ia=Nr();function Ea(){var e;return Ia?(e=zn,zn+=1):e="TEST_OR_SSR",e}function Ra(e){var t=o.useState(),n=K(t,2),r=n[0],a=n[1];return o.useEffect(function(){a("rc_select_".concat(Ea()))},[]),e||r}var xa=["children","value"],Oa=["children"];function $a(e){var t=e,n=t.key,r=t.props,a=r.children,i=r.value,l=ot(r,xa);return j({key:n,value:i!==void 0?i:n,children:a},l)}function sr(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Pr(e).map(function(n,r){if(!o.isValidElement(n)||!n.type)return null;var a=n,i=a.type.isSelectOptGroup,l=a.key,c=a.props,u=c.children,v=ot(c,Oa);return t||!i?$a(n):j(j({key:"__RC_SELECT_GRP__".concat(l===null?r:l,"__"),label:l},v),{},{options:sr(u)})}).filter(function(n){return n})}var Ma=function(t,n,r,a,i){return o.useMemo(function(){var l=t,c=!t;c&&(l=sr(n));var u=new Map,v=new Map,f=function(s,g,m){m&&typeof m=="string"&&s.set(g[m],g)},d=function p(s){for(var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,m=0;m<s.length;m+=1){var h=s[m];!h[r.options]||g?(u.set(h[r.value],h),f(v,h,r.label),f(v,h,a),f(v,h,i)):p(h[r.options],!0)}};return d(l),{options:l,valueOptions:u,labelOptions:v}},[t,n,r,a,i])};function Ln(e){var t=o.useRef();t.current=e;var n=o.useCallback(function(){return t.current.apply(t,arguments)},[]);return n}var Da=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","labelRender","value","defaultValue","labelInValue","onChange","maxCount"],Na=["inputValue"];function Pa(e){return!e||Ot(e)!=="object"}var _a=o.forwardRef(function(e,t){var n=e.id,r=e.mode,a=e.prefixCls,i=a===void 0?"rc-select":a,l=e.backfill,c=e.fieldNames,u=e.inputValue,v=e.searchValue,f=e.onSearch,d=e.autoClearSearchValue,p=d===void 0?!0:d,s=e.onSelect,g=e.onDeselect,m=e.dropdownMatchSelectWidth,h=m===void 0?!0:m,b=e.filterOption,S=e.filterSort,w=e.optionFilterProp,C=e.optionLabelProp,z=e.options,A=e.optionRender,$=e.children,T=e.defaultActiveFirstOption,H=e.menuItemSelectedIcon,Z=e.virtual,F=e.direction,G=e.listHeight,q=G===void 0?200:G,ve=e.listItemHeight,ie=ve===void 0?20:ve,J=e.labelRender,me=e.value,le=e.defaultValue,ce=e.labelInValue,W=e.onChange,D=e.maxCount,ne=ot(e,Da),ee=Ra(n),pe=cn(r),de=!!(!z&&$),_e=o.useMemo(function(){return b===void 0&&r==="combobox"?!1:b},[b,r]),be=o.useMemo(function(){return ar(c,de)},[JSON.stringify(c),de]),Re=tn("",{value:v!==void 0?v:u,postState:function(B){return B||""}}),we=K(Re,2),xe=we[0],R=we[1],y=Ma(z,$,be,w,C),E=y.valueOptions,Y=y.labelOptions,I=y.options,_=o.useCallback(function(x){var B=rr(x);return B.map(function(P){var M,oe,Ee,st,Je;if(Pa(P))M=P;else{var dt;Ee=P.key,oe=P.label,M=(dt=P.value)!==null&&dt!==void 0?dt:Ee}var Fe=E.get(M);if(Fe){var ft;oe===void 0&&(oe=Fe==null?void 0:Fe[C||be.label]),Ee===void 0&&(Ee=(ft=Fe==null?void 0:Fe.key)!==null&&ft!==void 0?ft:M),st=Fe==null?void 0:Fe.disabled,Je=Fe==null?void 0:Fe.title}return{label:oe,value:M,key:Ee,disabled:st,title:Je}})},[be,C,E]),se=tn(le,{value:me}),V=K(se,2),re=V[0],ge=V[1],Ae=o.useMemo(function(){var x,B=pe&&re===null?[]:re,P=_(B);return r==="combobox"&&Bo((x=P[0])===null||x===void 0?void 0:x.value)?[]:P},[re,_,r,pe]),$e=Ca(Ae,E),Ne=K($e,2),he=Ne[0],We=Ne[1],Pe=o.useMemo(function(){if(!r&&he.length===1){var x=he[0];if(x.value===null&&(x.label===null||x.label===void 0))return[]}return he.map(function(B){var P;return j(j({},B),{},{label:(P=typeof J=="function"?J(B):B.label)!==null&&P!==void 0?P:B.value})})},[r,he,J]),ye=o.useMemo(function(){return new Set(he.map(function(x){return x.value}))},[he]);o.useEffect(function(){if(r==="combobox"){var x,B=(x=he[0])===null||x===void 0?void 0:x.value;R(Lo(B)?String(B):"")}},[he]);var Me=Ln(function(x,B){var P=B??x;return ae(ae({},be.value,x),be.label,P)}),ue=o.useMemo(function(){if(r!=="tags")return I;var x=rt(I),B=function(M){return E.has(M)};return rt(he).sort(function(P,M){return P.value<M.value?-1:1}).forEach(function(P){var M=P.value;B(M)||x.push(Me(M,P.label))}),x},[Me,I,E,he,r]),Ie=wa(ue,be,xe,_e,w),De=o.useMemo(function(){return r!=="tags"||!xe||Ie.some(function(x){return x[w||"value"]===xe})||Ie.some(function(x){return x[be.value]===xe})?Ie:[Me(xe)].concat(rt(Ie))},[Me,w,r,Ie,xe,be]),at=function x(B){var P=rt(B).sort(function(M,oe){return S(M,oe,{searchValue:xe})});return P.map(function(M){return Array.isArray(M.options)?j(j({},M),{},{options:M.options.length>0?x(M.options):M.options}):M})},Te=o.useMemo(function(){return S?at(De):De},[De,S,xe]),Ge=o.useMemo(function(){return Yo(Te,{fieldNames:be,childrenAsData:de})},[Te,be,de]),Oe=function(B){var P=_(B);if(ge(P),W&&(P.length!==he.length||P.some(function(Ee,st){var Je;return((Je=he[st])===null||Je===void 0?void 0:Je.value)!==(Ee==null?void 0:Ee.value)}))){var M=ce?P:P.map(function(Ee){return Ee.value}),oe=P.map(function(Ee){return ln(We(Ee.value))});W(pe?M:M[0],pe?oe:oe[0])}},ht=o.useState(null),Ue=K(ht,2),tt=Ue[0],Be=Ue[1],gt=o.useState(0),Ye=K(gt,2),it=Ye[0],lt=Ye[1],ct=T!==void 0?T:r!=="combobox",nt=o.useCallback(function(x,B){var P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},M=P.source,oe=M===void 0?"keyboard":M;lt(B),l&&r==="combobox"&&x!==null&&oe==="keyboard"&&Be(String(x))},[l,r]),qe=function(B,P,M){var oe=function(){var vt,ut=We(B);return[ce?{label:ut==null?void 0:ut[be.label],value:B,key:(vt=ut==null?void 0:ut.key)!==null&&vt!==void 0?vt:B}:B,ln(ut)]};if(P&&s){var Ee=oe(),st=K(Ee,2),Je=st[0],dt=st[1];s(Je,dt)}else if(!P&&g&&M!=="clear"){var Fe=oe(),ft=K(Fe,2),Ct=ft[0],Pt=ft[1];g(Ct,Pt)}},L=Ln(function(x,B){var P,M=pe?B.selected:!0;M?P=pe?[].concat(rt(he),[x]):[x]:P=he.filter(function(oe){return oe.value!==x}),Oe(P),qe(x,M),r==="combobox"?Be(""):(!cn||p)&&(R(""),Be(""))}),k=function(B,P){Oe(B);var M=P.type,oe=P.values;(M==="remove"||M==="clear")&&oe.forEach(function(Ee){qe(Ee.value,!1,M)})},U=function(B,P){if(R(B),Be(null),P.source==="submit"){var M=(B||"").trim();if(M){var oe=Array.from(new Set([].concat(rt(ye),[M])));Oe(oe),qe(M,!0),R("")}return}P.source!=="blur"&&(r==="combobox"&&Oe(B),f==null||f(B))},He=function(B){var P=B;r!=="tags"&&(P=B.map(function(oe){var Ee=Y.get(oe);return Ee==null?void 0:Ee.value}).filter(function(oe){return oe!==void 0}));var M=Array.from(new Set([].concat(rt(ye),rt(P))));Oe(M),M.forEach(function(oe){qe(oe,!0)})},Xe=o.useMemo(function(){var x=Z!==!1&&h!==!1;return j(j({},y),{},{flattenOptions:Ge,onActiveValue:nt,defaultActiveFirstOption:ct,onSelect:L,menuItemSelectedIcon:H,rawValues:ye,fieldNames:be,virtual:x,direction:F,listHeight:q,listItemHeight:ie,childrenAsData:de,maxCount:D,optionRender:A})},[D,y,Ge,nt,ct,L,H,ye,be,Z,h,F,q,ie,de,A]);return o.createElement(vn.Provider,{value:Xe},o.createElement(ko,Le({},ne,{id:ee,prefixCls:i,ref:t,omitDomProps:Na,mode:r,displayValues:Pe,onDisplayValuesChange:k,direction:F,searchValue:xe,onSearch:U,autoClearSearchValue:p,onSearchSplit:He,dropdownMatchSelectWidth:h,OptionList:ya,emptyOptions:!Ge.length,activeValue:tt,activeDescendantId:"".concat(ee,"_list_").concat(it)})))}),pn=_a;pn.Option=gn;pn.OptGroup=mn;const Ta=()=>{const[,e]=un(),[t]=dn("Empty"),r=new jt(e.colorBgBase).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("title",null,(t==null?void 0:t.description)||"Empty"),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"}))))},za=()=>{const[,e]=un(),[t]=dn("Empty"),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:a,colorBgContainer:i}=e,{borderColor:l,shadowColor:c,contentColor:u}=rn(()=>({borderColor:new jt(n).onBackground(i).toHexString(),shadowColor:new jt(r).onBackground(i).toHexString(),contentColor:new jt(a).onBackground(i).toHexString()}),[n,r,a,i]);return o.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},o.createElement("title",null,(t==null?void 0:t.description)||"Empty"),o.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},o.createElement("ellipse",{fill:c,cx:"32",cy:"33",rx:"32",ry:"7"}),o.createElement("g",{fillRule:"nonzero",stroke:l},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:u}))))},La=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:a,fontSize:i,lineHeight:l}=e;return{[t]:{marginInline:r,fontSize:i,lineHeight:l,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorTextDescription},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:a,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},Ba=jn("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,a=Nt(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return La(a)});var Ha=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const ur=o.createElement(Ta,null),dr=o.createElement(za,null),Rt=e=>{var t;const{className:n,rootClassName:r,prefixCls:a,image:i,description:l,children:c,imageStyle:u,style:v,classNames:f,styles:d}=e,p=Ha(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:s,direction:g,className:m,style:h,classNames:b,styles:S,image:w}=Kn("empty"),C=s("empty",a),[z,A,$]=Ba(C),[T]=dn("Empty"),H=typeof l<"u"?l:T==null?void 0:T.description,Z=typeof H=="string"?H:"empty",F=(t=i??w)!==null&&t!==void 0?t:ur;let G=null;return typeof F=="string"?G=o.createElement("img",{alt:Z,src:F}):G=F,z(o.createElement("div",Object.assign({className:Ve(A,$,C,m,{[`${C}-normal`]:F===dr,[`${C}-rtl`]:g==="rtl"},n,r,b.root,f==null?void 0:f.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},S.root),h),d==null?void 0:d.root),v)},p),o.createElement("div",{className:Ve(`${C}-image`,b.image,f==null?void 0:f.image),style:Object.assign(Object.assign(Object.assign({},u),S.image),d==null?void 0:d.image)},G),H&&o.createElement("div",{className:Ve(`${C}-description`,b.description,f==null?void 0:f.description),style:Object.assign(Object.assign({},S.description),d==null?void 0:d.description)},H),c&&o.createElement("div",{className:Ve(`${C}-footer`,b.footer,f==null?void 0:f.footer),style:Object.assign(Object.assign({},S.footer),d==null?void 0:d.footer)},c)))};Rt.PRESENTED_IMAGE_DEFAULT=ur;Rt.PRESENTED_IMAGE_SIMPLE=dr;const Va=e=>{const{componentName:t}=e,{getPrefixCls:n}=Xr(Un),r=n("empty");switch(t){case"Table":case"List":return yt.createElement(Rt,{image:Rt.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return yt.createElement(Rt,{image:Rt.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case"Table.filter":return null;default:return yt.createElement(Rt,null)}},Aa=e=>{const n={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},n),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},n),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},n),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},n),{points:["br","tr"],offset:[0,-4]})}};function Fa(e,t){return e||Aa(t)}const Bn=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:a}=e;return{position:"relative",display:"block",minHeight:t,padding:a,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}},Wa=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,a=`&${t}-slide-up-enter${t}-slide-up-enter-active`,i=`&${t}-slide-up-appear${t}-slide-up-appear-active`,l=`&${t}-slide-up-leave${t}-slide-up-leave-active`,c=`${n}-dropdown-placement-`,u=`${r}-option-selected`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},fn(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[`
|
|
10
|
+
${a}${c}bottomLeft,
|
|
11
|
+
${i}${c}bottomLeft
|
|
12
|
+
`]:{animationName:Gn},[`
|
|
13
|
+
${a}${c}topLeft,
|
|
14
|
+
${i}${c}topLeft,
|
|
15
|
+
${a}${c}topRight,
|
|
16
|
+
${i}${c}topRight
|
|
17
|
+
`]:{animationName:qn},[`${l}${c}bottomLeft`]:{animationName:Yn},[`
|
|
18
|
+
${l}${c}topLeft,
|
|
19
|
+
${l}${c}topRight
|
|
20
|
+
`]:{animationName:Qn},"&-hidden":{display:"none"},[r]:Object.assign(Object.assign({},Bn(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},nn),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${r}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${r}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},Bn(e)),{color:e.colorTextDisabled})}),[`${u}:has(+ ${u})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${u}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},En(e,"slide-up"),En(e,"slide-down"),In(e,"move-up"),In(e,"move-down")]},ja=e=>{const{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:a}=e,i=e.max(e.calc(n).sub(r).equal(),0),l=e.max(e.calc(i).sub(a).equal(),0);return{basePadding:i,containerPadding:l,itemHeight:ze(t),itemLineHeight:ze(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},Ka=e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()},Ua=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:a,paddingXS:i,multipleItemColorDisabled:l,multipleItemBorderColorDisabled:c,colorIcon:u,colorIconHover:v,INTERNAL_FIXED_ITEM_MARGIN:f}=e;return{[`${t}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"calc(100% - 4px)",display:"inline-flex"},[`${t}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:f,borderRadius:r,cursor:"default",transition:`font-size ${a}, line-height ${a}, height ${a}`,marginInlineEnd:e.calc(f).mul(2).equal(),paddingInlineStart:i,paddingInlineEnd:e.calc(i).div(2).equal(),[`${t}-disabled&`]:{color:l,borderColor:c,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(i).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},Xn()),{display:"inline-flex",alignItems:"center",color:u,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:v}})}}}},Xa=(e,t)=>{const{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:r}=e,a=`${n}-selection-overflow`,i=e.multipleSelectItemHeight,l=Ka(e),c=t?`${n}-${t}`:"",u=ja(e);return{[`${n}-multiple${c}`]:Object.assign(Object.assign({},Ua(e)),{[`${n}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:u.basePadding,paddingBlock:u.containerPadding,borderRadius:e.borderRadius,[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${ze(r)} 0`,lineHeight:ze(i),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{height:u.itemHeight,lineHeight:ze(u.itemLineHeight)},[`${n}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:ze(i),marginBlock:r}},[`${n}-prefix`]:{marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(u.basePadding).equal()},[`${a}-item + ${a}-item,
|
|
21
|
+
${n}-prefix + ${n}-selection-wrap
|
|
22
|
+
`]:{[`${n}-selection-search`]:{marginInlineStart:0},[`${n}-selection-placeholder`]:{insetInlineStart:0}},[`${a}-item-suffix`]:{minHeight:u.itemHeight,marginBlock:r},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(l).equal(),"\n &-input,\n &-mirror\n ":{height:i,fontFamily:e.fontFamily,lineHeight:ze(i),transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(u.basePadding).equal(),insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}})}};function Jt(e,t){const{componentCls:n}=e,r=t?`${n}-${t}`:"",a={[`${n}-multiple${r}`]:{fontSize:e.fontSize,[`${n}-selector`]:{[`${n}-show-search&`]:{cursor:"text"}},[`
|
|
23
|
+
&${n}-show-arrow ${n}-selector,
|
|
24
|
+
&${n}-allow-clear ${n}-selector
|
|
25
|
+
`]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[Xa(e,t),a]}const Ga=e=>{const{componentCls:t}=e,n=Nt(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=Nt(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[Jt(e),Jt(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},Jt(r,"lg")]};function kt(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:a}=e,i=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),l=t?`${n}-${t}`:"";return{[`${n}-single${l}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},fn(e,!0)),{display:"flex",borderRadius:a,flex:"1 1 auto",[`${n}-selection-wrap:after`]:{lineHeight:ze(i)},[`${n}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[`
|
|
26
|
+
${n}-selection-item,
|
|
27
|
+
${n}-selection-placeholder
|
|
28
|
+
`]:{display:"block",padding:0,lineHeight:ze(i),transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:empty:after`,`${n}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
|
|
29
|
+
&${n}-show-arrow ${n}-selection-item,
|
|
30
|
+
&${n}-show-arrow ${n}-selection-search,
|
|
31
|
+
&${n}-show-arrow ${n}-selection-placeholder
|
|
32
|
+
`]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${ze(r)}`,[`${n}-selection-search-input`]:{height:i,fontSize:e.fontSize},"&:after":{lineHeight:ze(i)}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${ze(r)}`,"&:after":{display:"none"}}}}}}}function Ya(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[kt(e),kt(Nt(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selector`]:{padding:`0 ${ze(n)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},[`
|
|
33
|
+
&${t}-show-arrow ${t}-selection-item,
|
|
34
|
+
&${t}-show-arrow ${t}-selection-placeholder
|
|
35
|
+
`]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},kt(Nt(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const qa=e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:a,controlHeightSM:i,controlHeightLG:l,paddingXXS:c,controlPaddingHorizontal:u,zIndexPopupBase:v,colorText:f,fontWeightStrong:d,controlItemBgActive:p,controlItemBgHover:s,colorBgContainer:g,colorFillSecondary:m,colorBgContainerDisabled:h,colorTextDisabled:b,colorPrimaryHover:S,colorPrimary:w,controlOutline:C}=e,z=c*2,A=r*2,$=Math.min(a-z,a-A),T=Math.min(i-z,i-A),H=Math.min(l-z,l-A);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(c/2),zIndexPopup:v+50,optionSelectedColor:f,optionSelectedFontWeight:d,optionSelectedBg:p,optionActiveBg:s,optionPadding:`${(a-t*n)/2}px ${u}px`,optionFontSize:t,optionLineHeight:n,optionHeight:a,selectorBg:g,clearBg:g,singleItemHeightLG:l,multipleItemBg:m,multipleItemBorderColor:"transparent",multipleItemHeight:$,multipleItemHeightSM:T,multipleItemHeightLG:H,multipleSelectorBgDisabled:h,multipleItemColorDisabled:b,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:S,activeBorderColor:w,activeOutlineColor:C,selectAffixPadding:c}},fr=(e,t)=>{const{componentCls:n,antCls:r,controlOutlineWidth:a}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${ze(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${ze(a)} ${t.activeOutlineColor}`,outline:0},[`${n}-prefix`]:{color:t.color}}}},Hn=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},fr(e,t))}),Qa=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},fr(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),Hn(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),Hn(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${ze(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),vr=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${ze(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{background:t.hoverBg},[`${n}-focused& ${n}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},Vn=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},vr(e,t))}),Za=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},vr(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),Vn(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),Vn(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{borderColor:e.colorBorder,background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.colorBgContainer,border:`${ze(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),Ja=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",border:`${ze(e.lineWidth)} ${e.lineType} transparent`},[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${ze(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`},[`&${e.componentCls}-status-error`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorError}},[`&${e.componentCls}-status-warning`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorWarning}}}}),mr=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{borderWidth:`0 0 ${ze(e.lineWidth)} 0`,borderStyle:`none none ${e.lineType} none`,borderColor:t.borderColor,background:e.selectorBg,borderRadius:0},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,outline:0},[`${n}-prefix`]:{color:t.color}}}},An=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},mr(e,t))}),ka=e=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},mr(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),An(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),An(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${ze(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),ei=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},Qa(e)),Za(e)),Ja(e)),ka(e))}),ti=e=>{const{componentCls:t}=e;return{position:"relative",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},ni=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none",appearance:"none"}}}},ri=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:a}=e,i={[`${n}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}};return{[n]:Object.assign(Object.assign({},fn(e)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},ti(e)),ni(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},nn),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},nn),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},Xn()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${e.motionDurationSlow} ease`,[a]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${n}-suffix)`]:{pointerEvents:"auto"}},[`${n}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${n}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${n}-prefix`]:{flex:"none",marginInlineEnd:e.selectAffixPadding},[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto",transform:"translateZ(0)","&:before":{display:"block"},"&:hover":{color:e.colorIcon}},"@media(hover:none)":i,"&:hover":i}),[`${n}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}}}},oi=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},ri(e),Ya(e),Ga(e),Wa(e),{[`${t}-rtl`]:{direction:"rtl"}},_r(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},ai=jn("Select",(e,{rootPrefixCls:t})=>{const n=Nt(e,{rootPrefixCls:t,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[oi(n),ei(n)]},qa,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var ii={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"},li=function(t,n){return o.createElement(Xt,Le({},t,{ref:n,icon:ii}))},ci=o.forwardRef(li),si={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"},ui=function(t,n){return o.createElement(Xt,Le({},t,{ref:n,icon:si}))},di=o.forwardRef(ui);function fi({suffixIcon:e,clearIcon:t,menuItemSelectedIcon:n,removeIcon:r,loading:a,multiple:i,hasFeedback:l,prefixCls:c,showSuffixIcon:u,feedbackIcon:v,showArrow:f,componentName:d}){const p=t??o.createElement(Tr,null),s=b=>e===null&&!l&&!f?null:o.createElement(o.Fragment,null,u!==!1&&b,l&&v);let g=null;if(e!==void 0)g=s(e);else if(a)g=s(o.createElement(Lr,{spin:!0}));else{const b=`${c}-suffix`;g=({open:S,showSearch:w})=>s(S&&w?o.createElement(Yr,{className:b}):o.createElement(di,{className:b}))}let m=null;n!==void 0?m=n:i?m=o.createElement(ci,null):m=null;let h=null;return r!==void 0?h=r:h=o.createElement(zr,null),{clearIcon:p,suffixIcon:g,itemIcon:m,removeIcon:h}}function vi(e){return yt.useMemo(()=>{if(e)return(...t)=>yt.createElement(Br,{space:!0},e.apply(void 0,t))},[e])}function mi(e,t){return t!==void 0?t:e!==null}var gi=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const gr="SECRET_COMBOBOX_MODE_DO_NOT_USE",pi=(e,t)=>{var n,r,a,i,l;const{prefixCls:c,bordered:u,className:v,rootClassName:f,getPopupContainer:d,popupClassName:p,dropdownClassName:s,listHeight:g=256,placement:m,listItemHeight:h,size:b,disabled:S,notFoundContent:w,status:C,builtinPlacements:z,dropdownMatchSelectWidth:A,popupMatchSelectWidth:$,direction:T,style:H,allowClear:Z,variant:F,dropdownStyle:G,transitionName:q,tagRender:ve,maxCount:ie,prefix:J,dropdownRender:me,popupRender:le,onDropdownVisibleChange:ce,onOpenChange:W,styles:D,classNames:ne}=e,ee=gi(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount","prefix","dropdownRender","popupRender","onDropdownVisibleChange","onOpenChange","styles","classNames"]),{getPopupContainer:pe,getPrefixCls:de,renderEmpty:_e,direction:be,virtual:Re,popupMatchSelectWidth:we,popupOverflow:xe}=o.useContext(Un),{showSearch:R,style:y,styles:E,className:Y,classNames:I}=Kn("select"),[,_]=un(),se=h??(_==null?void 0:_.controlHeight),V=de("select",c),re=de(),ge=T??be,{compactSize:Ae,compactItemClassnames:$e}=Hr(V,ge),[Ne,he]=qr("select",F,u),We=Vr(V),[Pe,ye,Me]=ai(V,We),ue=o.useMemo(()=>{const{mode:M}=e;if(M!=="combobox")return M===gr?"combobox":M},[e.mode]),Ie=ue==="multiple"||ue==="tags",De=mi(e.suffixIcon,e.showArrow),at=(n=$??A)!==null&&n!==void 0?n:we,Te=((r=D==null?void 0:D.popup)===null||r===void 0?void 0:r.root)||((a=E.popup)===null||a===void 0?void 0:a.root)||G,Ge=vi(le||me),Oe=W||ce,{status:ht,hasFeedback:Ue,isFormItemInput:tt,feedbackIcon:Be}=o.useContext(Ar),gt=Zr(ht,C);let Ye;w!==void 0?Ye=w:ue==="combobox"?Ye=null:Ye=(_e==null?void 0:_e("Select"))||o.createElement(Va,{componentName:"Select"});const{suffixIcon:it,itemIcon:lt,removeIcon:ct,clearIcon:nt}=fi(Object.assign(Object.assign({},ee),{multiple:Ie,hasFeedback:Ue,feedbackIcon:Be,showSuffixIcon:De,prefixCls:V,componentName:"Select"})),qe=Z===!0?{clearIcon:nt}:Z,L=Wn(ee,["suffixIcon","itemIcon"]),k=Ve(((i=ne==null?void 0:ne.popup)===null||i===void 0?void 0:i.root)||((l=I==null?void 0:I.popup)===null||l===void 0?void 0:l.root)||p||s,{[`${V}-dropdown-${ge}`]:ge==="rtl"},f,I.root,ne==null?void 0:ne.root,Me,We,ye),U=Fr(M=>{var oe;return(oe=b??Ae)!==null&&oe!==void 0?oe:M}),He=o.useContext(Wr),Xe=S??He,x=Ve({[`${V}-lg`]:U==="large",[`${V}-sm`]:U==="small",[`${V}-rtl`]:ge==="rtl",[`${V}-${Ne}`]:he,[`${V}-in-form-item`]:tt},Qr(V,gt,Ue),$e,Y,v,I.root,ne==null?void 0:ne.root,f,Me,We,ye),B=o.useMemo(()=>m!==void 0?m:ge==="rtl"?"bottomRight":"bottomLeft",[m,ge]),[P]=jr("SelectLike",Te==null?void 0:Te.zIndex);return Pe(o.createElement(pn,Object.assign({ref:t,virtual:Re,showSearch:R},L,{style:Object.assign(Object.assign(Object.assign(Object.assign({},E.root),D==null?void 0:D.root),y),H),dropdownMatchSelectWidth:at,transitionName:Kr(re,"slide-up",q),builtinPlacements:Fa(z,xe),listHeight:g,listItemHeight:se,mode:ue,prefixCls:V,placement:B,direction:ge,prefix:J,suffixIcon:it,menuItemSelectedIcon:lt,removeIcon:ct,allowClear:qe,notFoundContent:Ye,className:x,getPopupContainer:d||pe,dropdownClassName:k,disabled:Xe,dropdownStyle:Object.assign(Object.assign({},Te),{zIndex:P}),maxCount:Ie?ie:void 0,tagRender:Ie?ve:void 0,dropdownRender:Ge,onDropdownVisibleChange:Oe})))},Vt=o.forwardRef(pi),hi=Ur(Vt,"dropdownAlign");Vt.SECRET_COMBOBOX_MODE_DO_NOT_USE=gr;Vt.Option=gn;Vt.OptGroup=mn;Vt._InternalPanelDoNotUseOrYouWillBeFired=hi;var Si={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"},bi=function(t,n){return o.createElement(Xt,Le({},t,{ref:n,icon:Si}))},Ri=o.forwardRef(bi);export{Va as D,Ht as F,cr as L,Ri as R,Vt as S,Yn as a,qn as b,Gn as c,In as d,Ei as e,ja as f,Ua as g,di as h,En as i,ci as j,Qn as s,fi as u};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import{c as t}from"./createLucideIcon-Bj5DlX2s.js";/**
|
|
2
|
+
* @license lucide-react v0.456.0 - ISC
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the ISC license.
|
|
5
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/const h=t("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);export{h as C};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import{forwardRef as i,createElement as a}from"react";/**
|
|
2
|
+
* @license lucide-react v0.456.0 - ISC
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the ISC license.
|
|
5
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/const p=r=>r.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),c=(...r)=>r.filter((e,t,o)=>!!e&&e.trim()!==""&&o.indexOf(e)===t).join(" ").trim();/**
|
|
7
|
+
* @license lucide-react v0.456.0 - ISC
|
|
8
|
+
*
|
|
9
|
+
* This source code is licensed under the ISC license.
|
|
10
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
11
|
+
*/var f={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
12
|
+
* @license lucide-react v0.456.0 - ISC
|
|
13
|
+
*
|
|
14
|
+
* This source code is licensed under the ISC license.
|
|
15
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
16
|
+
*/const g=i(({color:r="currentColor",size:e=24,strokeWidth:t=2,absoluteStrokeWidth:o,className:s="",children:n,iconNode:u,...l},m)=>a("svg",{ref:m,...f,width:e,height:e,stroke:r,strokeWidth:o?Number(t)*24/Number(e):t,className:c("lucide",s),...l},[...u.map(([d,w])=>a(d,w)),...Array.isArray(n)?n:[n]]));/**
|
|
17
|
+
* @license lucide-react v0.456.0 - ISC
|
|
18
|
+
*
|
|
19
|
+
* This source code is licensed under the ISC license.
|
|
20
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
21
|
+
*/const C=(r,e)=>{const t=i(({className:o,...s},n)=>a(g,{ref:n,iconNode:e,className:c(`lucide-${p(r)}`,o),...s}));return t.displayName=`${r}`,t};export{C as c};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import{aQ as Qe,aR as Ue,F as Ze,aS as Re,G as Je,L as _e,B as ae,aT as ge,Q as he,R as xe,h as Z,C as ke,b as ee,ay as et,a3 as tt,ac as nt,a7 as ot,aU as rt,aV as lt,aW as at,aX as it,aY as Le,aZ as te,a_ as st,a$ as ct,t as ut,a2 as ue,w as we,g as mt,c as dt,aF as ft,b0 as Se,b1 as pt,$ as Te,I as gt,d as ht,ae as bt,al as yt,at as vt,ap as Ct,ai as $t,ar as xt,j as wt,o as St,b2 as Ve,x as We,b3 as It,U as Ot,b4 as Et,b5 as Ft,b6 as Mt,s as jt,y as Nt,b7 as Pt,b8 as Rt}from"./index-CGHNxHzA.js";import*as l from"react";import{isValidElement as _t}from"react";import{C as He,o as Lt}from"./index-E7FJJ9zV.js";import{T as Tt}from"./index-JdQHnMoG.js";const Ie=e=>typeof e=="object"&&e!=null&&e.nodeType===1,Oe=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",se=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return Oe(n.overflowY,t)||Oe(n.overflowX,t)||(o=>{const r=(a=>{if(!a.ownerDocument||!a.ownerDocument.defaultView)return null;try{return a.ownerDocument.defaultView.frameElement}catch{return null}})(o);return!!r&&(r.clientHeight<o.scrollHeight||r.clientWidth<o.scrollWidth)})(e)}return!1},ce=(e,t,n,o,r,a,c,s)=>a<e&&c>t||a>e&&c<t?0:a<=e&&s<=n||c>=t&&s>=n?a-e-o:c>t&&s<n||a<e&&s>n?c-t+r:0,Vt=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},Ee=(e,t)=>{var n,o,r,a;if(typeof document>"u")return[];const{scrollMode:c,block:s,inline:m,boundary:d,skipOverflowHiddenElements:b}=t,p=typeof d=="function"?d:_=>_!==d;if(!Ie(e))throw new TypeError("Invalid target");const R=document.scrollingElement||document.documentElement,V=[];let h=e;for(;Ie(h)&&p(h);){if(h=Vt(h),h===R){V.push(h);break}h!=null&&h===document.body&&se(h)&&!se(document.documentElement)||h!=null&&se(h,b)&&V.push(h)}const y=(o=(n=window.visualViewport)==null?void 0:n.width)!=null?o:innerWidth,g=(a=(r=window.visualViewport)==null?void 0:r.height)!=null?a:innerHeight,{scrollX:M,scrollY:O}=window,{height:u,width:i,top:S,right:W,bottom:I,left:F}=e.getBoundingClientRect(),{top:v,right:j,bottom:N,left:q}=(_=>{const f=window.getComputedStyle(_);return{top:parseFloat(f.scrollMarginTop)||0,right:parseFloat(f.scrollMarginRight)||0,bottom:parseFloat(f.scrollMarginBottom)||0,left:parseFloat(f.scrollMarginLeft)||0}})(e);let P=s==="start"||s==="nearest"?S-v:s==="end"?I+N:S+u/2-v+N,C=m==="center"?F+i/2-q+j:m==="end"?W+j:F-q;const z=[];for(let _=0;_<V.length;_++){const f=V[_],{height:D,width:x,top:X,right:B,bottom:K,left:Q}=f.getBoundingClientRect();if(c==="if-needed"&&S>=0&&F>=0&&I<=g&&W<=y&&(f===R&&!se(f)||S>=X&&I<=K&&F>=Q&&W<=B))return z;const ne=getComputedStyle(f),G=parseInt(ne.borderLeftWidth,10),Y=parseInt(ne.borderTopWidth,10),w=parseInt(ne.borderRightWidth,10),L=parseInt(ne.borderBottomWidth,10);let $=0,H=0;const E="offsetWidth"in f?f.offsetWidth-f.clientWidth-G-w:0,A="offsetHeight"in f?f.offsetHeight-f.clientHeight-Y-L:0,U="offsetWidth"in f?f.offsetWidth===0?0:x/f.offsetWidth:0,k="offsetHeight"in f?f.offsetHeight===0?0:D/f.offsetHeight:0;if(R===f)$=s==="start"?P:s==="end"?P-g:s==="nearest"?ce(O,O+g,g,Y,L,O+P,O+P+u,u):P-g/2,H=m==="start"?C:m==="center"?C-y/2:m==="end"?C-y:ce(M,M+y,y,G,w,M+C,M+C+i,i),$=Math.max(0,$+O),H=Math.max(0,H+M);else{$=s==="start"?P-X-Y:s==="end"?P-K+L+A:s==="nearest"?ce(X,K,D,Y,L+A,P,P+u,u):P-(X+D/2)+A/2,H=m==="start"?C-Q-G:m==="center"?C-(Q+x/2)+E/2:m==="end"?C-B+w+E:ce(Q,B,x,G,w+E,C,C+i,i);const{scrollLeft:T,scrollTop:J}=f;$=k===0?0:Math.max(0,Math.min(J+$/k,f.scrollHeight-D/k+A)),H=U===0?0:Math.max(0,Math.min(T+H/U,f.scrollWidth-x/U+E)),P+=J-$,C+=T-H}z.push({el:f,top:$,left:H})}return z},Wt=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function Ht(e,t){if(!e.isConnected||!(r=>{let a=r;for(;a&&a.parentNode;){if(a.parentNode===document)return!0;a=a.parentNode instanceof ShadowRoot?a.parentNode.host:a.parentNode}return!1})(e))return;const n=(r=>{const a=window.getComputedStyle(r);return{top:parseFloat(a.scrollMarginTop)||0,right:parseFloat(a.scrollMarginRight)||0,bottom:parseFloat(a.scrollMarginBottom)||0,left:parseFloat(a.scrollMarginLeft)||0}})(e);if((r=>typeof r=="object"&&typeof r.behavior=="function")(t))return t.behavior(Ee(e,t));const o=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:r,top:a,left:c}of Ee(e,Wt(t))){const s=a-n.top+n.bottom,m=c-n.left+n.right;r.scroll({top:s,left:m,behavior:o})}}const zt=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
|
|
2
|
+
opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
|
|
3
|
+
opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),Dt=["parentNode"],Bt="form_item";function ie(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function ze(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:Dt.includes(n)?`${Bt}_${n}`:n}function De(e,t,n,o,r,a){let c=o;return a!==void 0?c=a:n.validating?c="validating":e.length?c="error":t.length?c="warning":(n.touched||r&&n.validated)&&(c="success"),c}var At=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]]);return n};function Fe(e){return ie(e).join("_")}function Me(e,t){const n=t.getFieldInstance(e),o=Ue(n);if(o)return o;const r=ze(ie(e),t.__INTERNAL__.name);if(r)return document.getElementById(r)}function Be(e){const[t]=Qe(),n=l.useRef({}),o=l.useMemo(()=>e??Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:r=>a=>{const c=Fe(r);a?n.current[c]=a:delete n.current[c]}},scrollToField:(r,a={})=>{const{focus:c}=a,s=At(a,["focus"]),m=Me(r,o);m&&(Ht(m,Object.assign({scrollMode:"if-needed",block:"nearest"},s)),c&&o.focusField(r))},focusField:r=>{var a,c;const s=o.getFieldInstance(r);typeof(s==null?void 0:s.focus)=="function"?s.focus():(c=(a=Me(r,o))===null||a===void 0?void 0:a.focus)===null||c===void 0||c.call(a)},getFieldInstance:r=>{const a=Fe(r);return n.current[a]}}),[e,t]);return[o]}function qt(e){return e==null?null:typeof e=="object"&&!_t(e)?e:{title:e}}function me(e){const[t,n]=l.useState(e);return l.useEffect(()=>{const o=setTimeout(()=>{n(e)},e.length?0:10);return()=>{clearTimeout(o)}},[e]),t}const Xt=e=>{const{componentCls:t}=e,n=`${t}-show-help`,o=`${t}-show-help-item`;return{[n]:{transition:`opacity ${e.motionDurationFast} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[o]:{overflow:"hidden",transition:`height ${e.motionDurationFast} ${e.motionEaseInOut},
|
|
4
|
+
opacity ${e.motionDurationFast} ${e.motionEaseInOut},
|
|
5
|
+
transform ${e.motionDurationFast} ${e.motionEaseInOut} !important`,[`&${o}-appear, &${o}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${o}-leave-active`]:{transform:"translateY(-5px)"}}}}},Gt=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${ae(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 ${ae(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),je=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},Kt=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},_e(e)),Gt(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},je(e,e.controlHeightSM)),"&-large":Object.assign({},je(e,e.controlHeightLG))})}},Yt=e=>{const{formItemCls:t,iconCls:n,rootPrefixCls:o,antCls:r,labelRequiredMarkColor:a,labelColor:c,labelFontSize:s,labelHeight:m,labelColonMarginInlineStart:d,labelColonMarginInlineEnd:b,itemMarginBottom:p}=e;return{[t]:Object.assign(Object.assign({},_e(e)),{marginBottom:p,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
|
|
6
|
+
&-hidden${r}-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:m,color:c,fontSize:s,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:e.marginXXS,color:a,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:d,marginInlineEnd:b},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${o}-col-'"]):not([class*="' ${o}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%",[`&:has(> ${r}-switch:only-child, > ${r}-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:Re,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},le=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),Qt=e=>{const{antCls:t,formItemCls:n}=e;return{[`${n}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:"1 1 0",minWidth:0},[`${n}-label[class$='-24'], ${n}-label[class*='-24 ']`]:{[`& + ${n}-control`]:{minWidth:"unset"}},[`${t}-col-24${n}-label,
|
|
7
|
+
${t}-col-xl-24${n}-label`]:le(e)}}},Ut=e=>{const{componentCls:t,formItemCls:n,inlineItemMarginBottom:o}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[`${n}-inline`]:{flex:"none",marginInlineEnd:e.margin,marginBottom:o,"&-row":{flexWrap:"nowrap"},[`> ${n}-label,
|
|
8
|
+
> ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},Zt=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:o}=e;return{[`${n} ${n}-label`]:le(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${o}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},Jt=e=>{const{componentCls:t,formItemCls:n,antCls:o}=e;return{[`${n}-vertical`]:{[`${n}-row`]:{flexDirection:"column"},[`${n}-label > label`]:{height:"auto"},[`${n}-control`]:{width:"100%"},[`${n}-label,
|
|
9
|
+
${o}-col-24${n}-label,
|
|
10
|
+
${o}-col-xl-24${n}-label`]:le(e)},[`@media (max-width: ${ae(e.screenXSMax)})`]:[Zt(e),{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${o}-col-xs-24${n}-label`]:le(e)}}}],[`@media (max-width: ${ae(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${o}-col-sm-24${n}-label`]:le(e)}}},[`@media (max-width: ${ae(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${o}-col-md-24${n}-label`]:le(e)}}},[`@media (max-width: ${ae(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${o}-col-lg-24${n}-label`]:le(e)}}}}},kt=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}),Ae=(e,t)=>Je(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),be=Ze("Form",(e,{rootPrefixCls:t})=>{const n=Ae(e,t);return[Kt(n),Yt(n),Xt(n),Qt(n),Ut(n),Jt(n),zt(n),Re]},kt,{order:-1e3}),Ne=[];function pe(e,t,n,o=0){return{key:typeof e=="string"?e:`${t}-${o}`,error:e,errorStatus:n}}const qe=({help:e,helpStatus:t,errors:n=Ne,warnings:o=Ne,className:r,fieldId:a,onVisibleChanged:c})=>{const{prefixCls:s}=l.useContext(ge),m=`${s}-item-explain`,d=he(s),[b,p,R]=be(s,d),V=l.useMemo(()=>xe(s),[s]),h=me(n),y=me(o),g=l.useMemo(()=>e!=null?[pe(e,"help",t)]:[].concat(Z(h.map((u,i)=>pe(u,"error","error",i))),Z(y.map((u,i)=>pe(u,"warning","warning",i)))),[e,t,h,y]),M=l.useMemo(()=>{const u={};return g.forEach(({key:i})=>{u[i]=(u[i]||0)+1}),g.map((i,S)=>Object.assign(Object.assign({},i),{key:u[i.key]>1?`${i.key}-fallback-${S}`:i.key}))},[g]),O={};return a&&(O.id=`${a}_help`),b(l.createElement(ke,{motionDeadline:V.motionDeadline,motionName:`${s}-show-help`,visible:!!M.length,onVisibleChanged:c},u=>{const{className:i,style:S}=u;return l.createElement("div",Object.assign({},O,{className:ee(m,i,R,d,r,p),style:S}),l.createElement(et,Object.assign({keys:M},xe(s),{motionName:`${s}-show-help-item`,component:!1}),W=>{const{key:I,error:F,errorStatus:v,className:j,style:N}=W;return l.createElement("div",{key:I,className:ee(j,{[`${m}-${v}`]:v}),style:N},F)}))}))};var en=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]]);return n};const tn=(e,t)=>{const n=l.useContext(tt),{getPrefixCls:o,direction:r,requiredMark:a,colon:c,scrollToFirstError:s,className:m,style:d}=nt("form"),{prefixCls:b,className:p,rootClassName:R,size:V,disabled:h=n,form:y,colon:g,labelAlign:M,labelWrap:O,labelCol:u,wrapperCol:i,hideRequiredMark:S,layout:W="horizontal",scrollToFirstError:I,requiredMark:F,onFinishFailed:v,name:j,style:N,feedbackIcons:q,variant:P}=e,C=en(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),z=ot(V),_=l.useContext(rt),f=l.useMemo(()=>F!==void 0?F:S?!1:a!==void 0?a:!0,[S,F,a]),D=g??c,x=o("form",b),X=he(x),[B,K,Q]=be(x,X),ne=ee(x,`${x}-${W}`,{[`${x}-hide-required-mark`]:f===!1,[`${x}-rtl`]:r==="rtl",[`${x}-${z}`]:z},Q,X,K,m,p,R),[G]=Be(y),{__INTERNAL__:Y}=G;Y.name=j;const w=l.useMemo(()=>({name:j,labelAlign:M,labelCol:u,labelWrap:O,wrapperCol:i,layout:W,colon:D,requiredMark:f,itemRef:Y.itemRef,form:G,feedbackIcons:q}),[j,M,u,i,W,D,f,G,q]),L=l.useRef(null);l.useImperativeHandle(t,()=>{var E;return Object.assign(Object.assign({},G),{nativeElement:(E=L.current)===null||E===void 0?void 0:E.nativeElement})});const $=(E,A)=>{if(E){let U={block:"nearest"};typeof E=="object"&&(U=Object.assign(Object.assign({},U),E)),G.scrollToField(A,U)}},H=E=>{if(v==null||v(E),E.errorFields.length){const A=E.errorFields[0].name;if(I!==void 0){$(I,A);return}s!==void 0&&$(s,A)}};return B(l.createElement(lt.Provider,{value:P},l.createElement(at,{disabled:h},l.createElement(it.Provider,{value:z},l.createElement(Le,{validateMessages:_},l.createElement(te.Provider,{value:w},l.createElement(st,{status:!0},l.createElement(ct,Object.assign({id:j},C,{name:j,onFinishFailed:H,form:G,ref:L,style:Object.assign(Object.assign({},d),N),className:ne})))))))))},nn=l.forwardRef(tn);function on(e){if(typeof e=="function")return e;const t=ut(e);return t.length<=1?t[0]:t}const Xe=()=>{const{status:e,errors:t=[],warnings:n=[]}=l.useContext(ue);return{status:e,errors:t,warnings:n}};Xe.Context=ue;function rn(e){const[t,n]=l.useState(e),o=l.useRef(null),r=l.useRef([]),a=l.useRef(!1);l.useEffect(()=>(a.current=!1,()=>{a.current=!0,we.cancel(o.current),o.current=null}),[]);function c(s){a.current||(o.current===null&&(r.current=[],o.current=we(()=>{o.current=null,n(m=>{let d=m;return r.current.forEach(b=>{d=b(d)}),d})})),r.current.push(s))}return[t,c]}function ln(){const{itemRef:e}=l.useContext(te),t=l.useRef({});function n(o,r){const a=r&&typeof r=="object"&&mt(r),c=o.join("_");return(t.current.name!==c||t.current.originRef!==a)&&(t.current.name=c,t.current.originRef=a,t.current.ref=dt(e(o),a)),t.current.ref}return n}const an=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},sn=ft(["Form","item-item"],(e,{rootPrefixCls:t})=>{const n=Ae(e,t);return an(n)});var cn=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]]);return n};const un=24,mn=e=>{const{prefixCls:t,status:n,labelCol:o,wrapperCol:r,children:a,errors:c,warnings:s,_internalItemRender:m,extra:d,help:b,fieldId:p,marginBottom:R,onErrorVisibleChanged:V,label:h}=e,y=`${t}-item`,g=l.useContext(te),M=l.useMemo(()=>{let C=Object.assign({},r||g.wrapperCol||{});return h===null&&!o&&!r&&g.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(_=>{const f=_?[_]:[],D=Se(g.labelCol,f),x=typeof D=="object"?D:{},X=Se(C,f),B=typeof X=="object"?X:{};"span"in x&&!("offset"in B)&&x.span<un&&(C=pt(C,[].concat(f,["offset"]),x.span))}),C},[r,g]),O=ee(`${y}-control`,M.className),u=l.useMemo(()=>{const{labelCol:C,wrapperCol:z}=g;return cn(g,["labelCol","wrapperCol"])},[g]),i=l.useRef(null),[S,W]=l.useState(0);Te(()=>{d&&i.current?W(i.current.clientHeight):W(0)},[d]);const I=l.createElement("div",{className:`${y}-control-input`},l.createElement("div",{className:`${y}-control-input-content`},a)),F=l.useMemo(()=>({prefixCls:t,status:n}),[t,n]),v=R!==null||c.length||s.length?l.createElement(ge.Provider,{value:F},l.createElement(qe,{fieldId:p,errors:c,warnings:s,help:b,helpStatus:n,className:`${y}-explain-connected`,onVisibleChanged:V})):null,j={};p&&(j.id=`${p}_extra`);const N=d?l.createElement("div",Object.assign({},j,{className:`${y}-extra`,ref:i}),d):null,q=v||N?l.createElement("div",{className:`${y}-additional`,style:R?{minHeight:R+S}:{}},v,N):null,P=m&&m.mark==="pro_table_render"&&m.render?m.render(e,{input:I,errorList:v,extra:N}):l.createElement(l.Fragment,null,I,q);return l.createElement(te.Provider,{value:u},l.createElement(He,Object.assign({},M,{className:O}),P),l.createElement(sn,{prefixCls:t}))};var dn={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"},fn=function(t,n){return l.createElement(gt,ht({},t,{ref:n,icon:dn}))},pn=l.forwardRef(fn),gn=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]]);return n};const hn=({prefixCls:e,label:t,htmlFor:n,labelCol:o,labelAlign:r,colon:a,required:c,requiredMark:s,tooltip:m,vertical:d})=>{var b;const[p]=bt("Form"),{labelAlign:R,labelCol:V,labelWrap:h,colon:y}=l.useContext(te);if(!t)return null;const g=o||V||{},M=r||R,O=`${e}-item-label`,u=ee(O,M==="left"&&`${O}-left`,g.className,{[`${O}-wrap`]:!!h});let i=t;const S=a===!0||y!==!1&&a!==!1;S&&!d&&typeof t=="string"&&t.trim()&&(i=t.replace(/[:|:]\s*$/,""));const I=qt(m);if(I){const{icon:P=l.createElement(pn,null)}=I,C=gn(I,["icon"]),z=l.createElement(Tt,Object.assign({},C),l.cloneElement(P,{className:`${e}-item-tooltip`,title:"",onClick:_=>{_.preventDefault()},tabIndex:null}));i=l.createElement(l.Fragment,null,i,z)}const F=s==="optional",v=typeof s=="function",j=s===!1;v?i=s(i,{required:!!c}):F&&!c&&(i=l.createElement(l.Fragment,null,i,l.createElement("span",{className:`${e}-item-optional`,title:""},(p==null?void 0:p.optional)||((b=yt.Form)===null||b===void 0?void 0:b.optional))));let N;j?N="hidden":(F||v)&&(N="optional");const q=ee({[`${e}-item-required`]:c,[`${e}-item-required-mark-${N}`]:N,[`${e}-item-no-colon`]:!S});return l.createElement(He,Object.assign({},g,{className:u}),l.createElement("label",{htmlFor:n,className:q,title:typeof t=="string"?t:""},i))},bn={success:xt,warning:$t,error:Ct,validating:vt};function Ge({children:e,errors:t,warnings:n,hasFeedback:o,validateStatus:r,prefixCls:a,meta:c,noStyle:s,name:m}){const d=`${a}-item`,{feedbackIcons:b}=l.useContext(te),p=De(t,n,c,null,!!o,r),{isFormItemInput:R,status:V,hasFeedback:h,feedbackIcon:y,name:g}=l.useContext(ue),M=l.useMemo(()=>{var O;let u;if(o){const S=o!==!0&&o.icons||b,W=p&&((O=S==null?void 0:S({status:p,errors:t,warnings:n}))===null||O===void 0?void 0:O[p]),I=p&&bn[p];u=W!==!1&&I?l.createElement("span",{className:ee(`${d}-feedback-icon`,`${d}-feedback-icon-${p}`)},W||l.createElement(I,null)):null}const i={status:p||"",errors:t,warnings:n,hasFeedback:!!o,feedbackIcon:u,isFormItemInput:!0,name:m};return s&&(i.status=(p??V)||"",i.isFormItemInput=R,i.hasFeedback=!!(o??h),i.feedbackIcon=o!==void 0?i.feedbackIcon:y,i.name=m??g),i},[p,o,s,R,V]);return l.createElement(ue.Provider,{value:M},e)}var yn=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]]);return n};function vn(e){const{prefixCls:t,className:n,rootClassName:o,style:r,help:a,errors:c,warnings:s,validateStatus:m,meta:d,hasFeedback:b,hidden:p,children:R,fieldId:V,required:h,isRequired:y,onSubItemMetaChange:g,layout:M,name:O}=e,u=yn(e,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout","name"]),i=`${t}-item`,{requiredMark:S,layout:W}=l.useContext(te),I=M||W,F=I==="vertical",v=l.useRef(null),j=me(c),N=me(s),q=a!=null,P=!!(q||c.length||s.length),C=!!v.current&&wt(v.current),[z,_]=l.useState(null);Te(()=>{if(P&&v.current){const B=getComputedStyle(v.current);_(parseInt(B.marginBottom,10))}},[P,C]);const f=B=>{B||_(null)},x=((B=!1)=>{const K=B?j:d.errors,Q=B?N:d.warnings;return De(K,Q,d,"",!!b,m)})(),X=ee(i,n,o,{[`${i}-with-help`]:q||j.length||N.length,[`${i}-has-feedback`]:x&&b,[`${i}-has-success`]:x==="success",[`${i}-has-warning`]:x==="warning",[`${i}-has-error`]:x==="error",[`${i}-is-validating`]:x==="validating",[`${i}-hidden`]:p,[`${i}-${I}`]:I});return l.createElement("div",{className:X,style:r,ref:v},l.createElement(Lt,Object.assign({className:`${i}-row`},St(u,["_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"])),l.createElement(hn,Object.assign({htmlFor:V},e,{requiredMark:S,required:h??y,prefixCls:t,vertical:F})),l.createElement(mn,Object.assign({},e,d,{errors:j,warnings:N,prefixCls:t,status:x,help:a,marginBottom:z,onErrorVisibleChanged:f}),l.createElement(Ve.Provider,{value:g},l.createElement(Ge,{prefixCls:t,meta:d,errors:d.errors,warnings:d.warnings,hasFeedback:b,validateStatus:x,name:O},R)))),!!z&&l.createElement("div",{className:`${i}-margin-offset`,style:{marginBottom:-z}}))}const Cn="__SPLIT__";function $n(e,t){const n=Object.keys(e),o=Object.keys(t);return n.length===o.length&&n.every(r=>{const a=e[r],c=t[r];return a===c||typeof a=="function"||typeof c=="function"})}const xn=l.memo(({children:e})=>e,(e,t)=>$n(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((n,o)=>n===t.childProps[o]));function Pe(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function wn(e){const{name:t,noStyle:n,className:o,dependencies:r,prefixCls:a,shouldUpdate:c,rules:s,children:m,required:d,label:b,messageVariables:p,trigger:R="onChange",validateTrigger:V,hidden:h,help:y,layout:g}=e,{getPrefixCls:M}=l.useContext(We),{name:O}=l.useContext(te),u=on(m),i=typeof u=="function",S=l.useContext(Ve),{validateTrigger:W}=l.useContext(It),I=V!==void 0?V:W,F=t!=null,v=M("form",a),j=he(v),[N,q,P]=be(v,j);Ot();const C=l.useContext(Et),z=l.useRef(null),[_,f]=rn({}),[D,x]=Ft(()=>Pe()),X=w=>{const L=C==null?void 0:C.getKey(w.name);if(x(w.destroy?Pe():w,!0),n&&y!==!1&&S){let $=w.name;if(w.destroy)$=z.current||$;else if(L!==void 0){const[H,E]=L;$=[H].concat(Z(E)),z.current=$}S(w,$)}},B=(w,L)=>{f($=>{const H=Object.assign({},$),A=[].concat(Z(w.name.slice(0,-1)),Z(L)).join(Cn);return w.destroy?delete H[A]:H[A]=w,H})},[K,Q]=l.useMemo(()=>{const w=Z(D.errors),L=Z(D.warnings);return Object.values(_).forEach($=>{w.push.apply(w,Z($.errors||[])),L.push.apply(L,Z($.warnings||[]))}),[w,L]},[_,D.errors,D.warnings]),ne=ln();function G(w,L,$){return n&&!h?l.createElement(Ge,{prefixCls:v,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:D,errors:K,warnings:Q,noStyle:!0,name:t},w):l.createElement(vn,Object.assign({key:"row"},e,{className:ee(o,P,j,q),prefixCls:v,fieldId:L,isRequired:$,errors:K,warnings:Q,meta:D,onSubItemMetaChange:B,layout:g,name:t}),w)}if(!F&&!i&&!r)return N(G(u));let Y={};return typeof b=="string"?Y.label=b:t&&(Y.label=String(t)),p&&(Y=Object.assign(Object.assign({},Y),p)),N(l.createElement(Mt,Object.assign({},e,{messageVariables:Y,trigger:R,validateTrigger:I,onMetaChange:X}),(w,L,$)=>{const H=ie(t).length&&L?L.name:[],E=ze(H,O),A=d!==void 0?d:!!(s!=null&&s.some(T=>{if(T&&typeof T=="object"&&T.required&&!T.warningOnly)return!0;if(typeof T=="function"){const J=T($);return(J==null?void 0:J.required)&&!(J!=null&&J.warningOnly)}return!1})),U=Object.assign({},w);let k=null;if(Array.isArray(u)&&F)k=u;else if(!(i&&(!(c||r)||F))){if(!(r&&!i&&!F))if(l.isValidElement(u)){const T=Object.assign(Object.assign({},u.props),U);if(T.id||(T.id=E),y||K.length>0||Q.length>0||e.extra){const re=[];(y||K.length>0)&&re.push(`${E}_help`),e.extra&&re.push(`${E}_extra`),T["aria-describedby"]=re.join(" ")}K.length>0&&(T["aria-invalid"]="true"),A&&(T["aria-required"]="true"),jt(u)&&(T.ref=ne(H,u)),new Set([].concat(Z(ie(R)),Z(ie(I)))).forEach(re=>{T[re]=(...ye)=>{var ve,Ce,de,$e,fe;(de=U[re])===null||de===void 0||(ve=de).call.apply(ve,[U].concat(ye)),(fe=($e=u.props)[re])===null||fe===void 0||(Ce=fe).call.apply(Ce,[$e].concat(ye))}});const Ye=[T["aria-required"],T["aria-invalid"],T["aria-describedby"]];k=l.createElement(xn,{control:U,update:u,childProps:Ye},Nt(u,T))}else i&&(c||r)&&!F?k=u($):k=u}return G(k,E,A)}))}const Ke=wn;Ke.useStatus=Xe;var Sn=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]]);return n};const In=e=>{var{prefixCls:t,children:n}=e,o=Sn(e,["prefixCls","children"]);const{getPrefixCls:r}=l.useContext(We),a=r("form",t),c=l.useMemo(()=>({prefixCls:a,status:"error"}),[a]);return l.createElement(Pt,Object.assign({},o),(s,m,d)=>l.createElement(ge.Provider,{value:c},n(s.map(b=>Object.assign(Object.assign({},b),{fieldKey:b.key})),m,{errors:d.errors,warnings:d.warnings})))};function On(){const{form:e}=l.useContext(te);return e}const oe=nn;oe.Item=Ke;oe.List=In;oe.ErrorList=qe;oe.useForm=Be;oe.useFormInstance=On;oe.useWatch=Rt;oe.Provider=Le;oe.create=()=>{};export{oe as F,zt as g,Fe as t,Be as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import*as n from"react";import{_ as je,m as Ie,d as re,b as w,a1 as ce,l as Me,a as de,C as me,f as D,e as fe,K as ie,$ as ve,aO as _e,ac as Ce,aG as ze,aI as ge,aC as He,F as Ke,G as Le,B as Z,S as We,aP as Te,c as Be,O as Ae,A as Fe,W as Ve,aE as he,x as Ue}from"./index-CGHNxHzA.js";var be=n.createContext(null),we=n.createContext({}),Xe=["prefixCls","className","containerRef"],Ge=function(t){var o=t.prefixCls,a=t.className,r=t.containerRef,l=je(t,Xe),i=n.useContext(we),c=i.panel,v=Ie(c,r);return n.createElement("div",re({className:w("".concat(o,"-content"),a),role:"dialog",ref:v},ce(t,{aria:!0}),{"aria-modal":"true"},l))};function ye(e){return typeof e=="string"&&String(Number(e))===e?(Me(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(e)):e}var pe={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function Ye(e,t){var o,a,r,l=e.prefixCls,i=e.open,c=e.placement,v=e.inline,p=e.push,x=e.forceRender,b=e.autoFocus,O=e.keyboard,s=e.classNames,u=e.rootClassName,y=e.rootStyle,N=e.zIndex,$=e.className,E=e.id,R=e.style,S=e.motion,m=e.width,g=e.height,j=e.children,L=e.mask,z=e.maskClosable,P=e.maskMotion,J=e.maskClassName,H=e.maskStyle,M=e.afterOpenChange,k=e.onClose,W=e.onMouseEnter,Q=e.onMouseOver,ee=e.onMouseLeave,X=e.onClick,te=e.onKeyDown,ne=e.onKeyUp,h=e.styles,T=e.drawerRender,I=n.useRef(),B=n.useRef(),A=n.useRef();n.useImperativeHandle(t,function(){return I.current});var ae=function(C){var G=C.keyCode,Y=C.shiftKey;switch(G){case ie.TAB:{if(G===ie.TAB){if(!Y&&document.activeElement===A.current){var q;(q=B.current)===null||q===void 0||q.focus({preventScroll:!0})}else if(Y&&document.activeElement===B.current){var le;(le=A.current)===null||le===void 0||le.focus({preventScroll:!0})}}break}case ie.ESC:{k&&O&&(C.stopPropagation(),k(C));break}}};n.useEffect(function(){if(i&&b){var d;(d=I.current)===null||d===void 0||d.focus({preventScroll:!0})}},[i]);var oe=n.useState(!1),F=de(oe,2),_=F[0],K=F[1],f=n.useContext(be),se;typeof p=="boolean"?se=p?{}:{distance:0}:se=p||{};var V=(o=(a=(r=se)===null||r===void 0?void 0:r.distance)!==null&&a!==void 0?a:f==null?void 0:f.pushDistance)!==null&&o!==void 0?o:180,$e=n.useMemo(function(){return{pushDistance:V,push:function(){K(!0)},pull:function(){K(!1)}}},[V]);n.useEffect(function(){if(i){var d;f==null||(d=f.push)===null||d===void 0||d.call(f)}else{var C;f==null||(C=f.pull)===null||C===void 0||C.call(f)}},[i]),n.useEffect(function(){return function(){var d;f==null||(d=f.pull)===null||d===void 0||d.call(f)}},[]);var Ee=n.createElement(me,re({key:"mask"},P,{visible:L&&i}),function(d,C){var G=d.className,Y=d.style;return n.createElement("div",{className:w("".concat(l,"-mask"),G,s==null?void 0:s.mask,J),style:D(D(D({},Y),H),h==null?void 0:h.mask),onClick:z&&i?k:void 0,ref:C})}),Pe=typeof S=="function"?S(c):S,U={};if(_&&V)switch(c){case"top":U.transform="translateY(".concat(V,"px)");break;case"bottom":U.transform="translateY(".concat(-V,"px)");break;case"left":U.transform="translateX(".concat(V,"px)");break;default:U.transform="translateX(".concat(-V,"px)");break}c==="left"||c==="right"?U.width=ye(m):U.height=ye(g);var De={onMouseEnter:W,onMouseOver:Q,onMouseLeave:ee,onClick:X,onKeyDown:te,onKeyUp:ne},Re=n.createElement(me,re({key:"panel"},Pe,{visible:i,forceRender:x,onVisibleChanged:function(C){M==null||M(C)},removeOnLeave:!1,leavedClassName:"".concat(l,"-content-wrapper-hidden")}),function(d,C){var G=d.className,Y=d.style,q=n.createElement(Ge,re({id:E,containerRef:C,prefixCls:l,className:w($,s==null?void 0:s.content),style:D(D({},R),h==null?void 0:h.content)},ce(e,{aria:!0}),De),j);return n.createElement("div",re({className:w("".concat(l,"-content-wrapper"),s==null?void 0:s.wrapper,G),style:D(D(D({},U),Y),h==null?void 0:h.wrapper)},ce(e,{data:!0})),T?T(q):q)}),ue=D({},y);return N&&(ue.zIndex=N),n.createElement(be.Provider,{value:$e},n.createElement("div",{className:w(l,"".concat(l,"-").concat(c),u,fe(fe({},"".concat(l,"-open"),i),"".concat(l,"-inline"),v)),style:ue,tabIndex:-1,ref:I,onKeyDown:ae},Ee,n.createElement("div",{tabIndex:0,ref:B,style:pe,"aria-hidden":"true","data-sentinel":"start"}),Re,n.createElement("div",{tabIndex:0,ref:A,style:pe,"aria-hidden":"true","data-sentinel":"end"})))}var qe=n.forwardRef(Ye),Ze=function(t){var o=t.open,a=o===void 0?!1:o,r=t.prefixCls,l=r===void 0?"rc-drawer":r,i=t.placement,c=i===void 0?"right":i,v=t.autoFocus,p=v===void 0?!0:v,x=t.keyboard,b=x===void 0?!0:x,O=t.width,s=O===void 0?378:O,u=t.mask,y=u===void 0?!0:u,N=t.maskClosable,$=N===void 0?!0:N,E=t.getContainer,R=t.forceRender,S=t.afterOpenChange,m=t.destroyOnClose,g=t.onMouseEnter,j=t.onMouseOver,L=t.onMouseLeave,z=t.onClick,P=t.onKeyDown,J=t.onKeyUp,H=t.panelRef,M=n.useState(!1),k=de(M,2),W=k[0],Q=k[1],ee=n.useState(!1),X=de(ee,2),te=X[0],ne=X[1];ve(function(){ne(!0)},[]);var h=te?a:!1,T=n.useRef(),I=n.useRef();ve(function(){h&&(I.current=document.activeElement)},[h]);var B=function(_){var K;if(Q(_),S==null||S(_),!_&&I.current&&!((K=T.current)!==null&&K!==void 0&&K.contains(I.current))){var f;(f=I.current)===null||f===void 0||f.focus({preventScroll:!0})}},A=n.useMemo(function(){return{panel:H}},[H]);if(!R&&!W&&!h&&m)return null;var ae={onMouseEnter:g,onMouseOver:j,onMouseLeave:L,onClick:z,onKeyDown:P,onKeyUp:J},oe=D(D({},t),{},{open:h,prefixCls:l,placement:c,autoFocus:p,keyboard:b,width:s,mask:y,maskClosable:$,inline:E===!1,afterOpenChange:B,ref:T},ae);return n.createElement(we.Provider,{value:A},n.createElement(_e,{open:h||R||W,autoDestroy:!1,getContainer:E,autoLock:y&&(h||W)},n.createElement(qe,oe)))};const xe=e=>{var t,o;const{prefixCls:a,title:r,footer:l,extra:i,loading:c,onClose:v,headerStyle:p,bodyStyle:x,footerStyle:b,children:O,classNames:s,styles:u}=e,y=Ce("drawer"),N=n.useCallback(m=>n.createElement("button",{type:"button",onClick:v,className:`${a}-close`},m),[v]),[$,E]=ze(ge(e),ge(y),{closable:!0,closeIconRender:N}),R=n.useMemo(()=>{var m,g;return!r&&!$?null:n.createElement("div",{style:Object.assign(Object.assign(Object.assign({},(m=y.styles)===null||m===void 0?void 0:m.header),p),u==null?void 0:u.header),className:w(`${a}-header`,{[`${a}-header-close-only`]:$&&!r&&!i},(g=y.classNames)===null||g===void 0?void 0:g.header,s==null?void 0:s.header)},n.createElement("div",{className:`${a}-header-title`},E,r&&n.createElement("div",{className:`${a}-title`},r)),i&&n.createElement("div",{className:`${a}-extra`},i))},[$,E,i,p,a,r]),S=n.useMemo(()=>{var m,g;if(!l)return null;const j=`${a}-footer`;return n.createElement("div",{className:w(j,(m=y.classNames)===null||m===void 0?void 0:m.footer,s==null?void 0:s.footer),style:Object.assign(Object.assign(Object.assign({},(g=y.styles)===null||g===void 0?void 0:g.footer),b),u==null?void 0:u.footer)},l)},[l,b,a]);return n.createElement(n.Fragment,null,R,n.createElement("div",{className:w(`${a}-body`,s==null?void 0:s.body,(t=y.classNames)===null||t===void 0?void 0:t.body),style:Object.assign(Object.assign(Object.assign({},(o=y.styles)===null||o===void 0?void 0:o.body),x),u==null?void 0:u.body)},c?n.createElement(He,{active:!0,title:!1,paragraph:{rows:5},className:`${a}-body-skeleton`}):O),S)},Je=e=>{const t="100%";return{left:`translateX(-${t})`,right:`translateX(${t})`,top:`translateY(-${t})`,bottom:`translateY(${t})`}[e]},Se=(e,t)=>({"&-enter, &-appear":Object.assign(Object.assign({},e),{"&-active":t}),"&-leave":Object.assign(Object.assign({},t),{"&-active":e})}),ke=(e,t)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${t}`}}},Se({opacity:e},{opacity:1})),Qe=(e,t)=>[ke(.7,t),Se({transform:Je(e)},{transform:"none"})],et=e=>{const{componentCls:t,motionDurationSlow:o}=e;return{[t]:{[`${t}-mask-motion`]:ke(0,o),[`${t}-panel-motion`]:["left","right","top","bottom"].reduce((a,r)=>Object.assign(Object.assign({},a),{[`&-${r}`]:Qe(r,o)}),{})}}},tt=e=>{const{borderRadiusSM:t,componentCls:o,zIndexPopup:a,colorBgMask:r,colorBgElevated:l,motionDurationSlow:i,motionDurationMid:c,paddingXS:v,padding:p,paddingLG:x,fontSizeLG:b,lineHeightLG:O,lineWidth:s,lineType:u,colorSplit:y,marginXS:N,colorIcon:$,colorIconHover:E,colorBgTextHover:R,colorBgTextActive:S,colorText:m,fontWeightStrong:g,footerPaddingBlock:j,footerPaddingInline:L,calc:z}=e,P=`${o}-content-wrapper`;return{[o]:{position:"fixed",inset:0,zIndex:a,pointerEvents:"none",color:m,"&-pure":{position:"relative",background:l,display:"flex",flexDirection:"column",[`&${o}-left`]:{boxShadow:e.boxShadowDrawerLeft},[`&${o}-right`]:{boxShadow:e.boxShadowDrawerRight},[`&${o}-top`]:{boxShadow:e.boxShadowDrawerUp},[`&${o}-bottom`]:{boxShadow:e.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${o}-mask`]:{position:"absolute",inset:0,zIndex:a,background:r,pointerEvents:"auto"},[P]:{position:"absolute",zIndex:a,maxWidth:"100vw",transition:`all ${i}`,"&-hidden":{display:"none"}},[`&-left > ${P}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${P}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${P}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${P}`]:{bottom:0,insetInline:0,boxShadow:e.boxShadowDrawerDown},[`${o}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:l,pointerEvents:"auto"},[`${o}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${Z(p)} ${Z(x)}`,fontSize:b,lineHeight:O,borderBottom:`${Z(s)} ${u} ${y}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${o}-extra`]:{flex:"none"},[`${o}-close`]:Object.assign({display:"inline-flex",width:z(b).add(v).equal(),height:z(b).add(v).equal(),borderRadius:t,justifyContent:"center",alignItems:"center",marginInlineEnd:N,color:$,fontWeight:g,fontSize:b,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${c}`,textRendering:"auto","&:hover":{color:E,backgroundColor:R,textDecoration:"none"},"&:active":{backgroundColor:S}},We(e)),[`${o}-title`]:{flex:1,margin:0,fontWeight:e.fontWeightStrong,fontSize:b,lineHeight:O},[`${o}-body`]:{flex:1,minWidth:0,minHeight:0,padding:x,overflow:"auto",[`${o}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center"}},[`${o}-footer`]:{flexShrink:0,padding:`${Z(j)} ${Z(L)}`,borderTop:`${Z(s)} ${u} ${y}`},"&-rtl":{direction:"rtl"}}}},nt=e=>({zIndexPopup:e.zIndexPopupBase,footerPaddingBlock:e.paddingXS,footerPaddingInline:e.padding}),Oe=Ke("Drawer",e=>{const t=Le(e,{});return[tt(t),et(t)]},nt);var Ne=function(e,t){var o={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(o[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(o[a[r]]=e[a[r]]);return o};const at={distance:180},ot=e=>{const{rootClassName:t,width:o,height:a,size:r="default",mask:l=!0,push:i=at,open:c,afterOpenChange:v,onClose:p,prefixCls:x,getContainer:b,panelRef:O=null,style:s,className:u,visible:y,afterVisibleChange:N,maskStyle:$,drawerStyle:E,contentWrapperStyle:R,destroyOnClose:S,destroyOnHidden:m}=e,g=Ne(e,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","panelRef","style","className","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle","destroyOnClose","destroyOnHidden"]),{getPopupContainer:j,getPrefixCls:L,direction:z,className:P,style:J,classNames:H,styles:M}=Ce("drawer"),k=L("drawer",x),[W,Q,ee]=Oe(k),X=b===void 0&&j?()=>j(document.body):b,te=w({"no-mask":!l,[`${k}-rtl`]:z==="rtl"},t,Q,ee),ne=n.useMemo(()=>o??(r==="large"?736:378),[o,r]),h=n.useMemo(()=>a??(r==="large"?736:378),[a,r]),T={motionName:he(k,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},I=K=>({motionName:he(k,`panel-motion-${K}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),B=Te(),A=Be(O,B),[ae,oe]=Ae("Drawer",g.zIndex),{classNames:F={},styles:_={}}=g;return W(n.createElement(Fe,{form:!0,space:!0},n.createElement(Ve.Provider,{value:oe},n.createElement(Ze,Object.assign({prefixCls:k,onClose:p,maskMotion:T,motion:I},g,{classNames:{mask:w(F.mask,H.mask),content:w(F.content,H.content),wrapper:w(F.wrapper,H.wrapper)},styles:{mask:Object.assign(Object.assign(Object.assign({},_.mask),$),M.mask),content:Object.assign(Object.assign(Object.assign({},_.content),E),M.content),wrapper:Object.assign(Object.assign(Object.assign({},_.wrapper),R),M.wrapper)},open:c??y,mask:l,push:i,width:ne,height:h,style:Object.assign(Object.assign({},J),s),className:w(P,u),rootClassName:te,getContainer:X,afterOpenChange:v??N,panelRef:A,zIndex:ae,destroyOnClose:m??S}),n.createElement(xe,Object.assign({prefixCls:k},g,{onClose:p}))))))},rt=e=>{const{prefixCls:t,style:o,className:a,placement:r="right"}=e,l=Ne(e,["prefixCls","style","className","placement"]),{getPrefixCls:i}=n.useContext(Ue),c=i("drawer",t),[v,p,x]=Oe(c),b=w(c,`${c}-pure`,`${c}-${r}`,p,x,a);return v(n.createElement("div",{className:b,style:o},n.createElement(xe,Object.assign({prefixCls:c},l))))};ot._InternalPanelDoNotUseOrYouWillBeFired=rt;export{ot as D};
|