7)throw RangeError("Invalid value");for(u=a;;u++){let n=8*t.getNumDataCodewords(u,o),r=i.getTotalBits(e,u);if(r<=n){d=r;break}if(u>=c)throw RangeError("Data too long")}for(let e of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])s&&d<=8*t.getNumDataCodewords(u,e)&&(o=e);let f=[];for(let t of e)for(let e of(n(t.mode.modeBits,4,f),n(t.numChars,t.mode.numCharCountBits(u),f),t.getData()))f.push(e);r(f.length==d);let p=8*t.getNumDataCodewords(u,o);r(f.length<=p),n(0,Math.min(4,p-f.length),f),n(0,(8-f.length%8)%8,f),r(f.length%8==0);for(let e=236;f.lengthm[t>>>3]|=e<<7-(7&t)),new t(u,o,m,l)}getModule(e,t){return 0<=e&&e>>9)*1335;let a=(t<<10|n)^21522;r(a>>>15==0);for(let e=0;e<=5;e++)this.setFunctionModule(8,e,o(a,e));this.setFunctionModule(8,7,o(a,6)),this.setFunctionModule(8,8,o(a,7)),this.setFunctionModule(7,8,o(a,8));for(let e=9;e<15;e++)this.setFunctionModule(14-e,8,o(a,e));for(let e=0;e<8;e++)this.setFunctionModule(this.size-1-e,8,o(a,e));for(let e=8;e<15;e++)this.setFunctionModule(8,this.size-15+e,o(a,e));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let e=this.version;for(let t=0;t<12;t++)e=e<<1^(e>>>11)*7973;let t=this.version<<12|e;r(t>>>18==0);for(let e=0;e<18;e++){let n=o(t,e),r=this.size-11+e%3,a=Math.floor(e/3);this.setFunctionModule(r,a,n),this.setFunctionModule(a,r,n)}}drawFinderPattern(e,t){for(let n=-4;n<=4;n++)for(let o=-4;o<=4;o++){let r=Math.max(Math.abs(o),Math.abs(n)),a=e+o,i=t+n;0<=a&&a{(e!=s-i||n>=l)&&f.push(t[e])});return r(f.length==c),f}drawCodewords(e){if(e.length!=Math.floor(t.getNumRawDataModules(this.version)/8))throw RangeError("Invalid argument");let n=0;for(let t=this.size-1;t>=1;t-=2){6==t&&(t=5);for(let r=0;r>>3],7-(7&n)),n++)}}r(n==8*e.length)}applyMask(e){if(e<0||e>7)throw RangeError("Mask value out of range");for(let t=0;t5&&e++:(this.finderPenaltyAddHistory(r,a),o||(e+=this.finderPenaltyCountPatterns(a)*t.PENALTY_N3),o=this.modules[n][i],r=1);e+=this.finderPenaltyTerminateAndCount(o,r,a)*t.PENALTY_N3}for(let n=0;n5&&e++:(this.finderPenaltyAddHistory(r,a),o||(e+=this.finderPenaltyCountPatterns(a)*t.PENALTY_N3),o=this.modules[i][n],r=1);e+=this.finderPenaltyTerminateAndCount(o,r,a)*t.PENALTY_N3}for(let n=0;ne+(t?1:0),n);let o=this.size*this.size,a=Math.ceil(Math.abs(20*n-10*o)/o)-1;return r(0<=a&&a<=9),r(0<=(e+=a*t.PENALTY_N4)&&e<=2568888),e}getAlignmentPatternPositions(){if(1==this.version)return[];{let e=Math.floor(this.version/7)+2,t=32==this.version?26:2*Math.ceil((4*this.version+4)/(2*e-2)),n=[6];for(let o=this.size-7;n.lengtht.MAX_VERSION)throw RangeError("Version number out of range");let n=(16*e+128)*e+64;if(e>=2){let t=Math.floor(e/7)+2;n-=(25*t-10)*t-55,e>=7&&(n-=36)}return r(208<=n&&n<=29648),n}static getNumDataCodewords(e,n){return Math.floor(t.getNumRawDataModules(e)/8)-t.ECC_CODEWORDS_PER_BLOCK[n.ordinal][e]*t.NUM_ERROR_CORRECTION_BLOCKS[n.ordinal][e]}static reedSolomonComputeDivisor(e){if(e<1||e>255)throw RangeError("Degree out of range");let n=[];for(let t=0;t0);for(let r of e){let e=r^o.shift();o.push(0),n.forEach((n,r)=>o[r]^=t.reedSolomonMultiply(n,e))}return o}static reedSolomonMultiply(e,t){if(e>>>8!=0||t>>>8!=0)throw RangeError("Byte out of range");let n=0;for(let o=7;o>=0;o--)n=n<<1^(n>>>7)*285^(t>>>o&1)*e;return r(n>>>8==0),n}finderPenaltyCountPatterns(e){let t=e[1];r(t<=3*this.size);let n=t>0&&e[2]==t&&e[3]==3*t&&e[4]==t&&e[5]==t;return(n&&e[0]>=4*t&&e[6]>=t?1:0)+(n&&e[6]>=4*t&&e[0]>=t?1:0)}finderPenaltyTerminateAndCount(e,t,n){return e&&(this.finderPenaltyAddHistory(t,n),t=0),t+=this.size,this.finderPenaltyAddHistory(t,n),this.finderPenaltyCountPatterns(n)}finderPenaltyAddHistory(e,t){0==t[0]&&(e+=this.size),t.pop(),t.unshift(e)}};function n(e,t,n){if(t<0||t>31||e>>>t!=0)throw RangeError("Value out of range");for(let o=t-1;o>=0;o--)n.push(e>>>o&1)}function o(e,t){return(e>>>t&1)!=0}function r(e){if(!e)throw Error("Assertion error")}t.MIN_VERSION=1,t.MAX_VERSION=40,t.PENALTY_N1=3,t.PENALTY_N2=3,t.PENALTY_N3=40,t.PENALTY_N4=10,t.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],t.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=t;let a=class{constructor(e,t,n){if(this.mode=e,this.numChars=t,this.bitData=n,t<0)throw RangeError("Invalid argument");this.bitData=n.slice()}static makeBytes(e){let t=[];for(let o of e)n(o,8,t);return new a(a.Mode.BYTE,e.length,t)}static makeNumeric(e){if(!a.isNumeric(e))throw RangeError("String contains non-numeric characters");let t=[];for(let o=0;o=1<{let t=class{constructor(e,t){this.ordinal=e,this.formatBits=t}};t.LOW=new t(0,1),t.MEDIUM=new t(1,0),t.QUARTILE=new t(2,3),t.HIGH=new t(3,2),e.Ecc=t})((o=a||(a={})).QrCode||(o.QrCode={})),(e=>{let t=class{constructor(e,t){this.modeBits=e,this.numBitsCharCount=t}numCharCountBits(e){return this.numBitsCharCount[Math.floor((e+7)/17)]}};t.NUMERIC=new t(1,[10,12,14]),t.ALPHANUMERIC=new t(2,[9,11,13]),t.BYTE=new t(4,[8,16,16]),t.KANJI=new t(8,[8,10,12]),t.ECI=new t(7,[0,0,0]),e.Mode=t})((r=a||(a={})).QrSegment||(r.QrSegment={}));var w=a,C={L:w.QrCode.Ecc.LOW,M:w.QrCode.Ecc.MEDIUM,Q:w.QrCode.Ecc.QUARTILE,H:w.QrCode.Ecc.HIGH},S="#FFFFFF",E="#000000";function k(e,t=0){let n=[];return e.forEach(function(e,o){let r=null;e.forEach(function(a,i){if(!a&&null!==r){n.push(`M${r+t} ${o+t}h${i-r}v1H${r+t}z`),r=null;return}if(i===e.length-1){if(!a)return;null===r?n.push(`M${i+t},${o+t} h1v1H${i+t}z`):n.push(`M${r+t},${o+t} h${i+1-r}v1H${r+t}z`);return}a&&null===r&&(r=i)})}),n.join("")}function O(e,t){return e.slice().map((e,n)=>n=t.y+t.h?e:e.map((e,n)=>(n=t.x+t.w)&&e))}function Z(e,t,n,o){if(null==o)return null;let r=e.length+2*(n?4:0),a=Math.floor(.1*t),i=r/t,c=(o.width||a)*i,l=(o.height||a)*i,s=null==o.x?e.length/2-c/2:o.x*i,u=null==o.y?e.length/2-l/2:o.y*i,d=null;if(o.excavate){let e=Math.floor(s),t=Math.floor(u);d={x:e,y:t,w:Math.ceil(c+s-e),h:Math.ceil(l+u-t)}}return{x:s,y:u,h:l,w:c,excavation:d}}var M=function(){try{new Path2D().addPath(new Path2D)}catch(e){return!1}return!0}();function N(e){let{value:t,size:n=128,level:o="L",bgColor:r=S,fgColor:a=E,includeMargin:i=!1,style:l,imageSettings:s}=e,u=x(e,["value","size","level","bgColor","fgColor","includeMargin","style","imageSettings"]),d=null==s?void 0:s.src,f=(0,c.useRef)(null),p=(0,c.useRef)(null),[m,h]=(0,c.useState)(!1);(0,c.useEffect)(()=>{if(null!=f.current){let e=f.current,c=e.getContext("2d");if(!c)return;let l=w.QrCode.encodeText(t,C[o]).getModules(),u=i?4:0,d=l.length+2*u,m=Z(l,n,i,s),h=p.current,g=null!=m&&null!==h&&h.complete&&0!==h.naturalHeight&&0!==h.naturalWidth;g&&null!=m.excavation&&(l=O(l,m.excavation));let v=window.devicePixelRatio||1;e.height=e.width=n*v;let b=n/d*v;c.scale(b,b),c.fillStyle=r,c.fillRect(0,0,d,d),c.fillStyle=a,M?c.fill(new Path2D(k(l,u))):l.forEach(function(e,t){e.forEach(function(e,n){e&&c.fillRect(n+u,t+u,1,1)})}),g&&c.drawImage(h,m.x+u,m.y+u,m.w,m.h)}}),(0,c.useEffect)(()=>{h(!1)},[d]);let g=y({height:n,width:n},l),v=null;return null!=d&&(v=c.createElement("img",{src:d,key:d,style:{display:"none"},onLoad:()=>{h(!0)},ref:p})),c.createElement(c.Fragment,null,c.createElement("canvas",y({style:g,height:n,width:n,ref:f},u)),v)}function I(e){let{value:t,size:n=128,level:o="L",bgColor:r=S,fgColor:a=E,includeMargin:i=!1,imageSettings:l}=e,s=x(e,["value","size","level","bgColor","fgColor","includeMargin","imageSettings"]),u=w.QrCode.encodeText(t,C[o]).getModules(),d=i?4:0,f=u.length+2*d,p=Z(u,n,i,l),m=null;null!=l&&null!=p&&(null!=p.excavation&&(u=O(u,p.excavation)),m=c.createElement("image",{xlinkHref:l.src,height:p.h,width:p.w,x:p.x+d,y:p.y+d,preserveAspectRatio:"none"}));let h=k(u,d);return c.createElement("svg",y({height:n,width:n,viewBox:`0 0 ${f} ${f}`},s),c.createElement("path",{fill:r,d:`M0,0 h${f}v${f}H0z`,shapeRendering:"crispEdges"}),c.createElement("path",{fill:a,d:h,shapeRendering:"crispEdges"}),m)}var P=n(6372),R=n(2677),j=n(3555),T=n(6220),z=n(9528),B=n(472),A=n(6828),_=n(4402),H=function(e){var t=e.componentCls;return{[t]:Object.assign(Object.assign({},(0,B.Wf)(e)),{display:"flex",justifyContent:"center",alignItems:"center",padding:e.paddingSM,backgroundColor:e.colorWhite,borderRadius:e.borderRadiusLG,border:"".concat(e.lineWidth,"px ").concat(e.lineType," ").concat(e.colorSplit),position:"relative",width:"100%",height:"100%",overflow:"hidden",["& > ".concat(t,"-mask")]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:10,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",color:e.colorText,lineHeight:e.lineHeight,background:e.QRCodeMaskBackgroundColor,textAlign:"center",["& > ".concat(t,"-expired")]:{color:e.QRCodeExpiredTextColor}},"&-icon":{marginBlockEnd:e.marginXS,fontSize:e.controlHeight}}),["".concat(t,"-borderless")]:{borderColor:"transparent"}}},L=(0,A.Z)("QRCode",function(e){return H((0,_.TS)(e,{QRCodeExpiredTextColor:"rgba(0, 0, 0, 0.88)",QRCodeMaskBackgroundColor:"rgba(255, 255, 255, 0.96)"}))}),D=function(e){var t=(0,i._)((0,z.Z)(),2)[1],n=e.value,o=e.type,r=void 0===o?"canvas":o,a=e.icon,l=void 0===a?"":a,s=e.size,u=void 0===s?160:s,f=e.iconSize,m=void 0===f?40:f,h=e.color,g=void 0===h?t.colorText:h,v=e.errorLevel,b=e.status,y=void 0===b?"active":b,x=e.bordered,w=e.onRefresh,C=e.style,S=e.className,E=e.rootClassName,k=e.prefixCls,O=e.bgColor,Z=void 0===O?"transparent":O,M=(0,(0,c.useContext)(R.E_).getPrefixCls)("qrcode",k),B=(0,i._)(L(M),2),A=B[0],_=B[1],H={value:n,size:u-(t.paddingSM+t.lineWidth)*2,level:void 0===v?"M":v,bgColor:Z,fgColor:g,imageSettings:l?{src:l,x:void 0,y:void 0,height:m,width:m,excavate:!0}:void 0},D=(0,i._)((0,j.Z)("QRCode"),1)[0];if(!n)return null;var F=p()(M,S,E,_,{["".concat(M,"-borderless")]:!(void 0===x||x)});return A(c.createElement("div",{style:Object.assign(Object.assign({},C),{width:u,height:u,backgroundColor:Z}),className:F},"active"!==y&&c.createElement("div",{className:"".concat(M,"-mask")},"loading"===y&&c.createElement(T.Z,null),"expired"===y&&c.createElement(c.Fragment,null,c.createElement("p",{className:"".concat(M,"-expired")},null==D?void 0:D.expired),w&&c.createElement(P.ZP,{type:"link",icon:c.createElement(d,null),onClick:w},null==D?void 0:D.refresh))),"canvas"===r?c.createElement(N,Object.assign({},H)):c.createElement(I,Object.assign({},H))))}},1025:function(e,t,n){"use strict";n.d(t,{ZP:function(){return D}});var o=n(8188),r=n(7294),a=n(3619),i=n.n(a),c=n(7366),l=n(8117),s=n(2677),u=n(786),d=r.createContext(null),f=d.Provider,p=r.createContext(null),m=p.Provider,h=n(7462),g=n(1413),v=n(4942),b=n(9439),y=n(4925),x=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],w=(0,r.forwardRef)(function(e,t){var n,o=e.prefixCls,a=void 0===o?"rc-checkbox":o,l=e.className,s=e.style,u=e.checked,d=e.disabled,f=e.defaultChecked,p=e.type,m=void 0===p?"checkbox":p,w=e.title,C=e.onChange,S=(0,y.Z)(e,x),E=(0,r.useRef)(null),k=(0,c.Z)(void 0!==f&&f,{value:u}),O=(0,b.Z)(k,2),Z=O[0],M=O[1];(0,r.useImperativeHandle)(t,function(){return{focus:function(){var e;null===(e=E.current)||void 0===e||e.focus()},blur:function(){var e;null===(e=E.current)||void 0===e||e.blur()},input:E.current}});var N=i()(a,l,(n={},(0,v.Z)(n,"".concat(a,"-checked"),Z),(0,v.Z)(n,"".concat(a,"-disabled"),d),n));return r.createElement("span",{className:N,title:w,style:s},r.createElement("input",(0,h.Z)({},S,{className:"".concat(a,"-input"),ref:E,onChange:function(t){d||("checked"in e||M(t.target.checked),null==C||C({target:(0,g.Z)((0,g.Z)({},e),{},{type:m,checked:t.target.checked}),stopPropagation:function(){t.stopPropagation()},preventDefault:function(){t.preventDefault()},nativeEvent:t.nativeEvent}))},disabled:d,checked:!!Z,type:m})),r.createElement("span",{className:"".concat(a,"-inner")}))}),C=n(244),S=n(3772),E=n(2687),k=n(2986),O=n(7466),Z=n(472),M=n(6828),N=n(4402),I=function(e){var t=e.componentCls,n=e.antCls,o="".concat(t,"-group");return{[o]:Object.assign(Object.assign({},(0,Z.Wf)(e)),{display:"inline-block",fontSize:0,["&".concat(o,"-rtl")]:{direction:"rtl"},["".concat(n,"-badge ").concat(n,"-badge-count")]:{zIndex:1},["> ".concat(n,"-badge:not(:first-child) > ").concat(n,"-button-wrapper")]:{borderInlineStart:"none"}})}},P=function(e){var t=e.componentCls,n=e.wrapperMarginInlineEnd,o=e.colorPrimary,r=e.radioSize,a=e.motionDurationSlow,i=e.motionDurationMid,c=e.motionEaseInOutCirc,l=e.colorBgContainer,s=e.colorBorder,u=e.lineWidth,d=e.dotSize,f=e.colorBgContainerDisabled,p=e.colorTextDisabled,m=e.paddingXS,h=e.dotColorDisabled,g=e.lineType,v=e.radioDotDisabledSize,b=e.wireframe,y=e.colorWhite,x="".concat(t,"-inner");return{["".concat(t,"-wrapper")]:Object.assign(Object.assign({},(0,Z.Wf)(e)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer",["&".concat(t,"-wrapper-rtl")]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},["".concat(t,"-checked::after")]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:"".concat(u,"px ").concat(g," ").concat(o),borderRadius:"50%",visibility:"hidden",content:'""'},[t]:Object.assign(Object.assign({},(0,Z.Wf)(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),["".concat(t,"-wrapper:hover &,\n &:hover ").concat(x)]:{borderColor:o},["".concat(t,"-input:focus-visible + ").concat(x)]:Object.assign({},(0,Z.oN)(e)),["".concat(t,":hover::after, ").concat(t,"-wrapper:hover &::after")]:{visibility:"visible"},["".concat(t,"-inner")]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:r,height:r,marginBlockStart:-(r/2),marginInlineStart:-(r/2),backgroundColor:b?o:y,borderBlockStart:0,borderInlineStart:0,borderRadius:r,transform:"scale(0)",opacity:0,transition:"all ".concat(a," ").concat(c),content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:r,height:r,backgroundColor:l,borderColor:s,borderStyle:"solid",borderWidth:u,borderRadius:"50%",transition:"all ".concat(i)},["".concat(t,"-input")]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},["".concat(t,"-checked")]:{[x]:{borderColor:o,backgroundColor:b?l:o,"&::after":{transform:"scale(".concat(d/r,")"),opacity:1,transition:"all ".concat(a," ").concat(c)}}},["".concat(t,"-disabled")]:{cursor:"not-allowed",[x]:{backgroundColor:f,borderColor:s,cursor:"not-allowed","&::after":{backgroundColor:h}},["".concat(t,"-input")]:{cursor:"not-allowed"},["".concat(t,"-disabled + span")]:{color:p,cursor:"not-allowed"},["&".concat(t,"-checked")]:{[x]:{"&::after":{transform:"scale(".concat(v/r,")")}}}},["span".concat(t," + *")]:{paddingInlineStart:m,paddingInlineEnd:m}})}},R=function(e){var t=e.buttonColor,n=e.controlHeight,o=e.componentCls,r=e.lineWidth,a=e.lineType,i=e.colorBorder,c=e.motionDurationSlow,l=e.motionDurationMid,s=e.buttonPaddingInline,u=e.fontSize,d=e.buttonBg,f=e.fontSizeLG,p=e.controlHeightLG,m=e.controlHeightSM,h=e.paddingXS,g=e.borderRadius,v=e.borderRadiusSM,b=e.borderRadiusLG,y=e.buttonCheckedBg,x=e.buttonSolidCheckedColor,w=e.colorTextDisabled,C=e.colorBgContainerDisabled,S=e.buttonCheckedBgDisabled,E=e.buttonCheckedColorDisabled,k=e.colorPrimary,O=e.colorPrimaryHover,M=e.colorPrimaryActive,N=e.buttonSolidCheckedBg,I=e.buttonSolidCheckedHoverBg,P=e.buttonSolidCheckedActiveBg;return{["".concat(o,"-button-wrapper")]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:s,paddingBlock:0,color:t,fontSize:u,lineHeight:"".concat(n-2*r,"px"),background:d,border:"".concat(r,"px ").concat(a," ").concat(i),borderBlockStartWidth:r+.02,borderInlineStartWidth:0,borderInlineEndWidth:r,cursor:"pointer",transition:["color ".concat(l),"background ".concat(l),"box-shadow ".concat(l)].join(","),a:{color:t},["> ".concat(o,"-button")]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:-r,insetInlineStart:-r,display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:r,paddingInline:0,backgroundColor:i,transition:"background-color ".concat(c),content:'""'}},"&:first-child":{borderInlineStart:"".concat(r,"px ").concat(a," ").concat(i),borderStartStartRadius:g,borderEndStartRadius:g},"&:last-child":{borderStartEndRadius:g,borderEndEndRadius:g},"&:first-child:last-child":{borderRadius:g},["".concat(o,"-group-large &")]:{height:p,fontSize:f,lineHeight:"".concat(p-2*r,"px"),"&:first-child":{borderStartStartRadius:b,borderEndStartRadius:b},"&:last-child":{borderStartEndRadius:b,borderEndEndRadius:b}},["".concat(o,"-group-small &")]:{height:m,paddingInline:h-r,paddingBlock:0,lineHeight:"".concat(m-2*r,"px"),"&:first-child":{borderStartStartRadius:v,borderEndStartRadius:v},"&:last-child":{borderStartEndRadius:v,borderEndEndRadius:v}},"&:hover":{position:"relative",color:k},"&:has(:focus-visible)":Object.assign({},(0,Z.oN)(e)),["".concat(o,"-inner, input[type='checkbox'], input[type='radio']")]:{width:0,height:0,opacity:0,pointerEvents:"none"},["&-checked:not(".concat(o,"-button-wrapper-disabled)")]:{zIndex:1,color:k,background:y,borderColor:k,"&::before":{backgroundColor:k},"&:first-child":{borderColor:k},"&:hover":{color:O,borderColor:O,"&::before":{backgroundColor:O}},"&:active":{color:M,borderColor:M,"&::before":{backgroundColor:M}}},["".concat(o,"-group-solid &-checked:not(").concat(o,"-button-wrapper-disabled)")]:{color:x,background:N,borderColor:N,"&:hover":{color:x,background:I,borderColor:I},"&:active":{color:x,background:P,borderColor:P}},"&-disabled":{color:w,backgroundColor:C,borderColor:i,cursor:"not-allowed","&:first-child, &:hover":{color:w,backgroundColor:C,borderColor:i}},["&-disabled".concat(o,"-button-wrapper-checked")]:{color:E,backgroundColor:S,borderColor:i,boxShadow:"none"}}}},j=function(e){return e-8},T=(0,M.Z)("Radio",function(e){var t=e.controlOutline,n=e.controlOutlineWidth,o=e.radioSize,r="0 0 0 ".concat(n,"px ").concat(t),a=j(o),i=(0,N.TS)(e,{radioDotDisabledSize:a,radioFocusShadow:r,radioButtonFocusShadow:r});return[I(i),P(i),R(i)]},function(e){var t=e.wireframe,n=e.padding,o=e.marginXS,r=e.lineWidth,a=e.fontSizeLG,i=e.colorText,c=e.colorBgContainer,l=e.colorTextDisabled,s=e.controlItemBgActiveDisabled,u=e.colorTextLightSolid,d=e.colorPrimary,f=e.colorPrimaryHover,p=e.colorPrimaryActive,m=t?j(a):a-(4+r)*2;return{radioSize:a,dotSize:m,dotColorDisabled:l,buttonSolidCheckedColor:u,buttonSolidCheckedBg:d,buttonSolidCheckedHoverBg:f,buttonSolidCheckedActiveBg:p,buttonBg:c,buttonCheckedBg:c,buttonColor:i,buttonCheckedBgDisabled:s,buttonCheckedColorDisabled:l,buttonPaddingInline:n-r,wrapperMarginInlineEnd:o}}),z=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(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,o=Object.getOwnPropertySymbols(e);r0&&(_=y.map(function(e){return"string"==typeof e||"number"==typeof e?r.createElement(B,{key:e.toString(),prefixCls:P,disabled:C,value:e,checked:m===e},e):r.createElement(B,{key:"radio-group-value-options-".concat(e.value),prefixCls:P,disabled:e.disabled||C,value:e.value,checked:m===e.value,title:e.title,style:e.style,id:e.id},e.label)}));var H=(0,u.Z)(E),L=i()(R,"".concat(R,"-").concat(w),{["".concat(R,"-").concat(H)]:H,["".concat(R,"-rtl")]:"rtl"===d},v,b,A);return z(r.createElement("div",Object.assign({},(0,l.Z)(e,{aria:!0,data:!0}),{className:L,style:k,onMouseEnter:Z,onMouseLeave:M,onFocus:N,onBlur:I,id:O,ref:t}),r.createElement(f,{value:{onChange:function(t){var n=t.target.value;"value"in e||h(n);var o=e.onChange;o&&n!==m&&o(t)},value:m,disabled:e.disabled,name:e.name,optionType:e.optionType}},_)))}),_=r.memo(A),H=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(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,o=Object.getOwnPropertySymbols(e);r0&&void 0!==arguments[0]?arguments[0]:250,t=r.useRef(null),n=r.useRef(null);return r.useEffect(function(){return function(){window.clearTimeout(n.current)}},[]),[function(){return t.current},function(o){(o||null===t.current)&&(t.current=o),window.clearTimeout(n.current),n.current=window.setTimeout(function(){t.current=null},e)}]}var S=n(8117),E=n(451),k=r.forwardRef(function(e,t){var n,o=e.prefixCls,a=e.id,c=e.inputElement,l=e.disabled,s=e.tabIndex,d=e.autoFocus,f=e.autoComplete,p=e.editable,m=e.activeDescendantId,g=e.value,v=e.maxLength,b=e.onKeyDown,x=e.onMouseDown,w=e.onChange,C=e.onPaste,S=e.onCompositionStart,E=e.onCompositionEnd,k=e.open,O=e.attrs,Z=c||r.createElement("input",null),M=Z,N=M.ref,I=M.props,P=I.onKeyDown,R=I.onChange,j=I.onMouseDown,T=I.onCompositionStart,z=I.onCompositionEnd,B=I.style;return(0,h.Kp)(!("maxLength"in Z.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),Z=r.cloneElement(Z,(0,u.Z)((0,u.Z)((0,u.Z)({type:"search"},I),{},{id:a,ref:(0,y.sQ)(t,N),disabled:l,tabIndex:s,autoComplete:f||"off",autoFocus:d,className:i()("".concat(o,"-selection-search-input"),null===(n=Z)||void 0===n||null===(n=n.props)||void 0===n?void 0:n.className),role:"combobox","aria-expanded":k||!1,"aria-haspopup":"listbox","aria-owns":"".concat(a,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(a,"_list"),"aria-activedescendant":k?m:void 0},O),{},{value:p?g:"",maxLength:v,readOnly:!p,unselectable:p?null:"on",style:(0,u.Z)((0,u.Z)({},B),{},{opacity:p?null:0}),onKeyDown:function(e){b(e),P&&P(e)},onMouseDown:function(e){x(e),j&&j(e)},onChange:function(e){w(e),R&&R(e)},onCompositionStart:function(e){S(e),T&&T(e)},onCompositionEnd:function(e){E(e),z&&z(e)},onPaste:C}))});function O(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}k.displayName="Input";var Z="undefined"!=typeof window&&window.document&&window.document.documentElement;function M(e){return["string","number"].includes((0,p.Z)(e))}function N(e){var t=void 0;return e&&(M(e.title)?t=e.title.toString():M(e.label)&&(t=e.label.toString())),t}function I(e){var t;return null!==(t=e.key)&&void 0!==t?t:e.value}var P=function(e){e.preventDefault(),e.stopPropagation()},R=function(e){var t,n,o=function(e,t,n,o,a){return r.createElement("span",{className:i()("".concat(ee,"-item"),(0,s.Z)({},"".concat(ee,"-item-disabled"),n)),title:N(e)},r.createElement("span",{className:"".concat(ee,"-item-content")},t),o&&r.createElement(x,{className:"".concat(ee,"-item-remove"),onMouseDown:P,onClick:a,customizeIcon:M},"\xd7"))},a=e.id,c=e.prefixCls,l=e.values,u=e.open,f=e.searchValue,p=e.autoClearSearchValue,m=e.inputRef,h=e.placeholder,g=e.disabled,v=e.mode,b=e.showSearch,y=e.autoFocus,w=e.autoComplete,C=e.activeDescendantId,O=e.tabIndex,M=e.removeIcon,R=e.maxTagCount,j=e.maxTagTextLength,T=e.maxTagPlaceholder,z=void 0===T?function(e){return"+ ".concat(e.length," ...")}:T,B=e.tagRender,A=e.onToggleOpen,_=e.onRemove,H=e.onInputChange,L=e.onInputPaste,D=e.onInputKeyDown,F=e.onInputMouseDown,W=e.onInputCompositionStart,V=e.onInputCompositionEnd,X=r.useRef(null),G=(0,r.useState)(0),U=(0,d.Z)(G,2),K=U[0],q=U[1],Y=(0,r.useState)(!1),$=(0,d.Z)(Y,2),Q=$[0],J=$[1],ee="".concat(c,"-selection"),et=u||"multiple"===v&&!1===p||"tags"===v?f:"",en="tags"===v||"multiple"===v&&!1===p||b&&(u||Q);t=function(){q(X.current.scrollWidth)},n=[et],Z?r.useLayoutEffect(t,n):r.useEffect(t,n);var eo=r.createElement("div",{className:"".concat(ee,"-search"),style:{width:K},onFocus:function(){J(!0)},onBlur:function(){J(!1)}},r.createElement(k,{ref:m,open:u,prefixCls:c,id:a,inputElement:null,disabled:g,autoFocus:y,autoComplete:w,editable:en,activeDescendantId:C,value:et,onKeyDown:D,onMouseDown:F,onChange:H,onPaste:L,onCompositionStart:W,onCompositionEnd:V,tabIndex:O,attrs:(0,S.Z)(e,!0)}),r.createElement("span",{ref:X,className:"".concat(ee,"-search-mirror"),"aria-hidden":!0},et,"\xa0")),er=r.createElement(E.Z,{prefixCls:"".concat(ee,"-overflow"),data:l,renderItem:function(e){var t,n=e.disabled,a=e.label,i=e.value,c=!g&&!n,l=a;if("number"==typeof j&&("string"==typeof a||"number"==typeof a)){var s=String(l);s.length>j&&(l="".concat(s.slice(0,j),"..."))}var d=function(t){t&&t.stopPropagation(),_(e)};return"function"==typeof B?(t=l,r.createElement("span",{onMouseDown:function(e){P(e),A(!u)}},B({label:t,value:i,disabled:n,closable:c,onClose:d}))):o(e,l,n,c,d)},renderRest:function(e){var t="function"==typeof z?z(e):z;return o({title:t},t,!1)},suffix:eo,itemKey:I,maxCount:R});return r.createElement(r.Fragment,null,er,!l.length&&!et&&r.createElement("span",{className:"".concat(ee,"-placeholder")},h))},j=function(e){var t=e.inputElement,n=e.prefixCls,o=e.id,a=e.inputRef,i=e.disabled,c=e.autoFocus,l=e.autoComplete,s=e.activeDescendantId,u=e.mode,f=e.open,p=e.values,m=e.placeholder,h=e.tabIndex,g=e.showSearch,v=e.searchValue,b=e.activeValue,y=e.maxLength,x=e.onInputKeyDown,w=e.onInputMouseDown,C=e.onInputChange,E=e.onInputPaste,O=e.onInputCompositionStart,Z=e.onInputCompositionEnd,M=e.title,I=r.useState(!1),P=(0,d.Z)(I,2),R=P[0],j=P[1],T="combobox"===u,z=T||g,B=p[0],A=v||"";T&&b&&!R&&(A=b),r.useEffect(function(){T&&j(!1)},[T,b]);var _=("combobox"===u||!!f||!!g)&&!!A,H=void 0===M?N(B):M;return r.createElement(r.Fragment,null,r.createElement("span",{className:"".concat(n,"-selection-search")},r.createElement(k,{ref:a,prefixCls:n,id:o,open:f,inputElement:t,disabled:i,autoFocus:c,autoComplete:l,editable:z,activeDescendantId:s,value:A,onKeyDown:x,onMouseDown:w,onChange:function(e){j(!0),C(e)},onPaste:E,onCompositionStart:O,onCompositionEnd:Z,tabIndex:h,attrs:(0,S.Z)(e,!0),maxLength:T?y:void 0})),!T&&B?r.createElement("span",{className:"".concat(n,"-selection-item"),title:H,style:_?{visibility:"hidden"}:void 0},B.label):null,B?null:r.createElement("span",{className:"".concat(n,"-selection-placeholder"),style:_?{visibility:"hidden"}:void 0},m))},T=r.forwardRef(function(e,t){var n=(0,r.useRef)(null),o=(0,r.useRef)(!1),a=e.prefixCls,i=e.open,l=e.mode,s=e.showSearch,u=e.tokenWithEnter,f=e.autoClearSearchValue,p=e.onSearch,m=e.onSearchSubmit,h=e.onToggleOpen,g=e.onInputKeyDown,v=e.domRef;r.useImperativeHandle(t,function(){return{focus:function(){n.current.focus()},blur:function(){n.current.blur()}}});var y=C(0),x=(0,d.Z)(y,2),w=x[0],S=x[1],E=(0,r.useRef)(null),k=function(e){!1!==p(e,!0,o.current)&&h(!0)},O={inputRef:n,onInputKeyDown:function(e){var t=e.which;(t===b.Z.UP||t===b.Z.DOWN)&&e.preventDefault(),g&&g(e),t!==b.Z.ENTER||"tags"!==l||o.current||i||null==m||m(e.target.value),[b.Z.ESC,b.Z.SHIFT,b.Z.BACKSPACE,b.Z.TAB,b.Z.WIN_KEY,b.Z.ALT,b.Z.META,b.Z.WIN_KEY_RIGHT,b.Z.CTRL,b.Z.SEMICOLON,b.Z.EQUALS,b.Z.CAPS_LOCK,b.Z.CONTEXT_MENU,b.Z.F1,b.Z.F2,b.Z.F3,b.Z.F4,b.Z.F5,b.Z.F6,b.Z.F7,b.Z.F8,b.Z.F9,b.Z.F10,b.Z.F11,b.Z.F12].includes(t)||h(!0)},onInputMouseDown:function(){S(!0)},onInputChange:function(e){var t=e.target.value;if(u&&E.current&&/[\r\n]/.test(E.current)){var n=E.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");t=t.replace(n,E.current)}E.current=null,k(t)},onInputPaste:function(e){var t=e.clipboardData.getData("text");E.current=t},onInputCompositionStart:function(){o.current=!0},onInputCompositionEnd:function(e){o.current=!1,"combobox"!==l&&k(e.target.value)}},Z="multiple"===l||"tags"===l?r.createElement(R,(0,c.Z)({},e,O)):r.createElement(j,(0,c.Z)({},e,O));return r.createElement("div",{ref:v,className:"".concat(a,"-selector"),onClick:function(e){e.target!==n.current&&(void 0!==document.body.style.msTouchAction?setTimeout(function(){n.current.focus()}):n.current.focus())},onMouseDown:function(e){var t=w();e.target===n.current||t||"combobox"===l||e.preventDefault(),("combobox"===l||s&&t)&&i||(i&&!1!==f&&p("",!0,!1),h())}},Z)});T.displayName="Selector";var z=n(6397),B=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],A=function(e){var t=!0===e?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"}}},_=r.forwardRef(function(e,t){var n=e.prefixCls,o=(e.disabled,e.visible),a=e.children,l=e.popupElement,d=e.animation,p=e.transitionName,m=e.dropdownStyle,h=e.dropdownClassName,g=e.direction,v=e.placement,b=e.builtinPlacements,y=e.dropdownMatchSelectWidth,x=e.dropdownRender,w=e.dropdownAlign,C=e.getPopupContainer,S=e.empty,E=e.getTriggerDOMNode,k=e.onPopupVisibleChange,O=e.onPopupMouseEnter,Z=(0,f.Z)(e,B),M="".concat(n,"-dropdown"),N=l;x&&(N=x(l));var I=r.useMemo(function(){return b||A(y)},[b,y]),P=d?"".concat(M,"-").concat(d):p,R="number"==typeof y,j=r.useMemo(function(){return R?null:!1===y?"minWidth":"width"},[y,R]),T=m;R&&(T=(0,u.Z)((0,u.Z)({},T),{},{width:y}));var _=r.useRef(null);return r.useImperativeHandle(t,function(){return{getPopupElement:function(){return _.current}}}),r.createElement(z.Z,(0,c.Z)({},Z,{showAction:k?["click"]:[],hideAction:k?["click"]:[],popupPlacement:v||("rtl"===(void 0===g?"ltr":g)?"bottomRight":"bottomLeft"),builtinPlacements:I,prefixCls:M,popupTransitionName:P,popup:r.createElement("div",{ref:_,onMouseEnter:O},N),stretch:j,popupAlign:w,popupVisible:o,getPopupContainer:C,popupClassName:i()(h,(0,s.Z)({},"".concat(M,"-empty"),S)),popupStyle:T,getTriggerDOMNode:E,onPopupVisibleChange:k}),a)});_.displayName="SelectTrigger";var H=n(4506);function L(e,t){var n,o=e.key;return("value"in e&&(n=e.value),null!=o)?o:void 0!==n?n:"rc-index-key-".concat(t)}function D(e,t){var n=e||{},o=n.label,r=n.value,a=n.options,i=n.groupLabel,c=o||(t?"children":"label");return{label:c,value:r||"value",options:a||"options",groupLabel:i||c}}function F(e){var t=(0,u.Z)({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return(0,h.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var W=["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","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],V=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function X(e){return"tags"===e||"multiple"===e}var G=r.forwardRef(function(e,t){var n,o,a,h,S,E,k,O,Z=e.id,M=e.prefixCls,N=e.className,I=e.showSearch,P=e.tagRender,R=e.direction,j=e.omitDomProps,z=e.displayValues,B=e.onDisplayValuesChange,A=e.emptyOptions,L=e.notFoundContent,D=void 0===L?"Not Found":L,F=e.onClear,G=e.mode,U=e.disabled,K=e.loading,q=e.getInputElement,Y=e.getRawInputElement,$=e.open,Q=e.defaultOpen,J=e.onDropdownVisibleChange,ee=e.activeValue,et=e.onActiveValueChange,en=e.activeDescendantId,eo=e.searchValue,er=e.autoClearSearchValue,ea=e.onSearch,ei=e.onSearchSplit,ec=e.tokenSeparators,el=e.allowClear,es=e.suffixIcon,eu=e.clearIcon,ed=e.OptionList,ef=e.animation,ep=e.transitionName,em=e.dropdownStyle,eh=e.dropdownClassName,eg=e.dropdownMatchSelectWidth,ev=e.dropdownRender,eb=e.dropdownAlign,ey=e.placement,ex=e.builtinPlacements,ew=e.getPopupContainer,eC=e.showAction,eS=void 0===eC?[]:eC,eE=e.onFocus,ek=e.onBlur,eO=e.onKeyUp,eZ=e.onKeyDown,eM=e.onMouseDown,eN=(0,f.Z)(e,W),eI=X(G),eP=(void 0!==I?I:eI)||"combobox"===G,eR=(0,u.Z)({},eN);V.forEach(function(e){delete eR[e]}),null==j||j.forEach(function(e){delete eR[e]});var ej=r.useState(!1),eT=(0,d.Z)(ej,2),ez=eT[0],eB=eT[1];r.useEffect(function(){eB((0,v.Z)())},[]);var eA=r.useRef(null),e_=r.useRef(null),eH=r.useRef(null),eL=r.useRef(null),eD=r.useRef(null),eF=r.useRef(!1),eW=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,t=r.useState(!1),n=(0,d.Z)(t,2),o=n[0],a=n[1],i=r.useRef(null),c=function(){window.clearTimeout(i.current)};return r.useEffect(function(){return c},[]),[o,function(t,n){c(),i.current=window.setTimeout(function(){a(t),n&&n()},e)},c]}(),eV=(0,d.Z)(eW,3),eX=eV[0],eG=eV[1],eU=eV[2];r.useImperativeHandle(t,function(){var e,t;return{focus:null===(e=eL.current)||void 0===e?void 0:e.focus,blur:null===(t=eL.current)||void 0===t?void 0:t.blur,scrollTo:function(e){var t;return null===(t=eD.current)||void 0===t?void 0:t.scrollTo(e)}}});var eK=r.useMemo(function(){if("combobox"!==G)return eo;var e,t=null===(e=z[0])||void 0===e?void 0:e.value;return"string"==typeof t||"number"==typeof t?String(t):""},[eo,G,z]),eq="combobox"===G&&"function"==typeof q&&q()||null,eY="function"==typeof Y&&Y(),e$=(0,y.x1)(e_,null==eY||null===(n=eY.props)||void 0===n?void 0:n.ref),eQ=r.useState(!1),eJ=(0,d.Z)(eQ,2),e0=eJ[0],e1=eJ[1];(0,g.Z)(function(){e1(!0)},[]);var e2=(0,m.Z)(!1,{defaultValue:Q,value:$}),e4=(0,d.Z)(e2,2),e3=e4[0],e6=e4[1],e8=!!e0&&e3,e5=!D&&A;(U||e5&&e8&&"combobox"===G)&&(e8=!1);var e7=!e5&&e8,e9=r.useCallback(function(e){var t=void 0!==e?e:!e8;U||(e6(t),e8!==t&&(null==J||J(t)))},[U,e8,e6,J]),te=r.useMemo(function(){return(ec||[]).some(function(e){return["\n","\r\n"].includes(e)})},[ec]),tt=function(e,t,n){var o=!0,r=e;null==et||et(null);var a=n?null:function(e,t){if(!t||!t.length)return null;var n=!1,o=function e(t,o){var r=(0,H.Z)(o),a=r[0],i=r.slice(1);if(!a)return[t];var c=t.split(a);return n=n||c.length>1,c.reduce(function(t,n){return[].concat((0,l.Z)(t),(0,l.Z)(e(n,i)))},[]).filter(function(e){return e})}(e,t);return n?o:null}(e,ec);return"combobox"!==G&&a&&(r="",null==ei||ei(a),e9(!1),o=!1),ea&&eK!==r&&ea(r,{source:t?"typing":"effect"}),o};r.useEffect(function(){e8||eI||"combobox"===G||tt("",!1,!1)},[e8]),r.useEffect(function(){e3&&U&&e6(!1),U&&!eF.current&&eG(!1)},[U]);var tn=C(),to=(0,d.Z)(tn,2),tr=to[0],ta=to[1],ti=r.useRef(!1),tc=[];r.useEffect(function(){return function(){tc.forEach(function(e){return clearTimeout(e)}),tc.splice(0,tc.length)}},[]);var tl=r.useState({}),ts=(0,d.Z)(tl,2)[1];eY&&(a=function(e){e9(e)}),E=function(){var e;return[eA.current,null===(e=eH.current)||void 0===e?void 0:e.getPopupElement()]},k=!!eY,(O=r.useRef(null)).current={open:e7,triggerOpen:e9,customizedTrigger:k},r.useEffect(function(){var e=function(e){if(null===(t=O.current)||void 0===t||!t.customizedTrigger){var t,n=e.target;n.shadowRoot&&e.composed&&(n=e.composedPath()[0]||n),O.current.open&&E().filter(function(e){return e}).every(function(e){return!e.contains(n)&&e!==n})&&O.current.triggerOpen(!1)}};return window.addEventListener("mousedown",e),function(){return window.removeEventListener("mousedown",e)}},[]);var tu=r.useMemo(function(){return(0,u.Z)((0,u.Z)({},e),{},{notFoundContent:D,open:e8,triggerOpen:e7,id:Z,showSearch:eP,multiple:eI,toggleOpen:e9})},[e,D,e7,e8,Z,eP,eI,e9]),td=!!es||K;td&&(h=r.createElement(x,{className:i()("".concat(M,"-arrow"),(0,s.Z)({},"".concat(M,"-arrow-loading"),K)),customizeIcon:es,customizeIconProps:{loading:K,searchValue:eK,open:e8,focused:eX,showSearch:eP}}));var tf=function(e,t,n,o,a){var i=arguments.length>5&&void 0!==arguments[5]&&arguments[5],c=arguments.length>6?arguments[6]:void 0,l=arguments.length>7?arguments[7]:void 0,s=r.useMemo(function(){return"object"===(0,p.Z)(o)?o.clearIcon:a||void 0},[o,a]);return{allowClear:r.useMemo(function(){return!i&&!!o&&(!!n.length||!!c)&&!("combobox"===l&&""===c)},[o,i,n.length,c,l]),clearIcon:r.createElement(x,{className:"".concat(e,"-clear"),onMouseDown:t,customizeIcon:s},"\xd7")}}(M,function(){var e;null==F||F(),null===(e=eL.current)||void 0===e||e.focus(),B([],{type:"clear",values:z}),tt("",!1,!1)},z,el,eu,U,eK,G),tp=tf.allowClear,tm=tf.clearIcon,th=r.createElement(ed,{ref:eD}),tg=i()(M,N,(o={},(0,s.Z)(o,"".concat(M,"-focused"),eX),(0,s.Z)(o,"".concat(M,"-multiple"),eI),(0,s.Z)(o,"".concat(M,"-single"),!eI),(0,s.Z)(o,"".concat(M,"-allow-clear"),el),(0,s.Z)(o,"".concat(M,"-show-arrow"),td),(0,s.Z)(o,"".concat(M,"-disabled"),U),(0,s.Z)(o,"".concat(M,"-loading"),K),(0,s.Z)(o,"".concat(M,"-open"),e8),(0,s.Z)(o,"".concat(M,"-customize-input"),eq),(0,s.Z)(o,"".concat(M,"-show-search"),eP),o)),tv=r.createElement(_,{ref:eH,disabled:U,prefixCls:M,visible:e7,popupElement:th,animation:ef,transitionName:ep,dropdownStyle:em,dropdownClassName:eh,direction:R,dropdownMatchSelectWidth:eg,dropdownRender:ev,dropdownAlign:eb,placement:ey,builtinPlacements:ex,getPopupContainer:ew,empty:A,getTriggerDOMNode:function(){return e_.current},onPopupVisibleChange:a,onPopupMouseEnter:function(){ts({})}},eY?r.cloneElement(eY,{ref:e$}):r.createElement(T,(0,c.Z)({},e,{domRef:e_,prefixCls:M,inputElement:eq,ref:eL,id:Z,showSearch:eP,autoClearSearchValue:er,mode:G,activeDescendantId:en,tagRender:P,values:z,open:e8,onToggleOpen:e9,activeValue:ee,searchValue:eK,onSearch:tt,onSearchSubmit:function(e){e&&e.trim()&&ea(e,{source:"submit"})},onRemove:function(e){B(z.filter(function(t){return t!==e}),{type:"remove",values:[e]})},tokenWithEnter:te})));return S=eY?tv:r.createElement("div",(0,c.Z)({className:tg},eR,{ref:eA,onMouseDown:function(e){var t,n=e.target,o=null===(t=eH.current)||void 0===t?void 0:t.getPopupElement();if(o&&o.contains(n)){var r=setTimeout(function(){var e,t=tc.indexOf(r);-1!==t&&tc.splice(t,1),eU(),ez||o.contains(document.activeElement)||null===(e=eL.current)||void 0===e||e.focus()});tc.push(r)}for(var a=arguments.length,i=Array(a>1?a-1:0),c=1;c=0;i-=1){var c=r[i];if(!c.disabled){r.splice(i,1),a=c;break}}a&&B(r,{type:"remove",values:[a]})}for(var s=arguments.length,u=Array(s>1?s-1:0),d=1;d1?n-1:0),r=1;r0,V=r.useMemo(function(){return 0===c||0===D?0:c/D*F},[c,D,F]),X=r.useRef({top:V,dragging:C,pageY:O,startTop:I});X.current={top:V,dragging:C,pageY:O,startTop:I};var G=function(e){S(!0),Z(et(e,h)),P(X.current.top),f(),e.stopPropagation(),e.preventDefault()};r.useEffect(function(){var e=function(e){e.preventDefault()},t=j.current,n=T.current;return t.addEventListener("touchstart",e),n.addEventListener("touchstart",G),function(){t.removeEventListener("touchstart",e),n.removeEventListener("touchstart",G)}},[]);var U=r.useRef();U.current=D;var K=r.useRef();K.current=F,r.useEffect(function(){if(C){var e,t=function(t){var n=X.current,o=n.dragging,r=n.pageY,a=n.startTop;if(ee.Z.cancel(e),o){var i=et(t,h)-r,c=a;!R&&h?c-=i:c+=i;var l=U.current,s=K.current,u=Math.ceil((s?c/s:0)*l);u=Math.min(u=Math.max(u,0),l),e=(0,ee.Z)(function(){m(u,h)})}},n=function(){S(!1),p()};return window.addEventListener("mousemove",t),window.addEventListener("touchmove",t),window.addEventListener("mouseup",n),window.addEventListener("touchend",n),function(){window.removeEventListener("mousemove",t),window.removeEventListener("touchmove",t),window.removeEventListener("mouseup",n),window.removeEventListener("touchend",n),ee.Z.cancel(e)}}},[C]),r.useEffect(function(){L()},[c]),r.useImperativeHandle(t,function(){return{delayHidden:L}});var q="".concat(o,"-scrollbar"),Y={position:"absolute",visibility:A&&W?null:"hidden"},$={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return h?(Y.height=8,Y.left=0,Y.right=0,Y.bottom=0,$.height="100%",$.width=g,R?$.left=V:$.right=V):(Y.width=8,Y.top=0,Y.bottom=0,R?Y.right=0:Y.left=0,$.width="100%",$.height=g,$.top=V),r.createElement("div",{ref:j,className:i()(q,(n={},(0,s.Z)(n,"".concat(q,"-horizontal"),h),(0,s.Z)(n,"".concat(q,"-vertical"),!h),(0,s.Z)(n,"".concat(q,"-visible"),A),n)),style:(0,u.Z)((0,u.Z)({},Y),b),onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},onMouseMove:L},r.createElement("div",{ref:T,className:i()("".concat(q,"-thumb"),(0,s.Z)({},"".concat(q,"-thumb-moving"),C)),style:(0,u.Z)((0,u.Z)({},$),y),onMouseDown:G}))});function eo(e){var t=e.children,n=e.setRef,o=r.useCallback(function(e){n(e)},[]);return r.cloneElement(t,{ref:o})}var er=n(2255),ea=n(5671),ei=n(3144),ec=function(){function e(){(0,ea.Z)(this,e),this.maps=void 0,this.id=0,this.maps=Object.create(null)}return(0,ei.Z)(e,[{key:"set",value:function(e,t){this.maps[e]=t,this.id+=1}},{key:"get",value:function(e){return this.maps[e]}}]),e}(),el=n(9035),es=("undefined"==typeof navigator?"undefined":(0,p.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);function eu(e,t){var n=function(){clearTimeout(a.current),o.current=!0,a.current=setTimeout(function(){o.current=!1},50)},o=(0,r.useRef)(!1),a=(0,r.useRef)(null),i=(0,r.useRef)({top:e,bottom:t});return i.current.top=e,i.current.bottom=t,function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=e<0&&i.current.top||e>0&&i.current.bottom;return t&&r?(clearTimeout(a.current),o.current=!1):(!r||o.current)&&n(),!o.current&&r}}var ed=14/15;function ef(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=e/t*100;return isNaN(n)&&(n=0),Math.floor(n=Math.min(n=Math.max(n,20),e/2))}var ep=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],em=[],eh={overflowY:"auto",overflowAnchor:"none"},eg=r.forwardRef(function(e,t){var n,o,a,l,m,h,v,b,y,x,w,C,S,E,k,O,Z,M,N,I,P,R,j,T,z,B,A,_,H,L,D,F,W,V,X,G,U,K,q,Y,et,ea,ei,eg,ev,eb,ey=function(e){e0(function(t){var n=ex("function"==typeof e?e(t):e);return eq.current.scrollTop=n,n})},ex=function(e){var t=e;return Number.isNaN(tO.current)||(t=Math.min(t,tO.current)),t=Math.max(t,0)},ew=function(e,t){t?((0,$.flushSync)(function(){e3(e)}),tR()):ey(e)},eC=e.prefixCls,eS=void 0===eC?"rc-virtual-list":eC,eE=e.className,ek=e.height,eO=e.itemHeight,eZ=e.fullHeight,eM=e.style,eN=e.data,eI=e.children,eP=e.itemKey,eR=e.virtual,ej=e.direction,eT=e.scrollWidth,ez=e.component,eB=void 0===ez?"div":ez,eA=e.onScroll,e_=e.onVirtualScroll,eH=e.onVisibleChange,eL=e.innerProps,eD=e.extraRender,eF=e.styles,eW=(0,f.Z)(e,ep),eV=!!(!1!==eR&&ek&&eO),eX=eV&&eN&&(eO*eN.length>ek||!!eT),eG="rtl"===ej,eU=i()(eS,(0,s.Z)({},"".concat(eS,"-rtl"),eG),eE),eK=eN||em,eq=(0,r.useRef)(),eY=(0,r.useRef)(),e$=(0,r.useState)(0),eQ=(0,d.Z)(e$,2),eJ=eQ[0],e0=eQ[1],e1=(0,r.useState)(0),e2=(0,d.Z)(e1,2),e4=e2[0],e3=e2[1],e6=(0,r.useState)(!1),e8=(0,d.Z)(e6,2),e5=e8[0],e7=e8[1],e9=function(){e7(!0)},te=function(){e7(!1)},tt=r.useCallback(function(e){return"function"==typeof eP?eP(e):null==e?void 0:e[eP]},[eP]),tn=(0,r.useRef)({start:0,end:eK.length}),to=(0,r.useRef)(),tr=(o=r.useState(eK),l=(a=(0,d.Z)(o,2))[0],m=a[1],h=r.useState(null),b=(v=(0,d.Z)(h,2))[0],y=v[1],r.useEffect(function(){var e=function(e,t,n){var o,r,a=function(e){return void 0!==e?n(e):l},i=e.length,c=t.length;if(0===i&&0===c)return null;i0&&void 0!==arguments[0]&&arguments[0];x();var t=function(){O.current.forEach(function(e,t){if(e&&e.offsetParent){var n=(0,er.Z)(e),o=n.offsetHeight;Z.current.get(t)!==o&&Z.current.set(t,n.offsetHeight)}}),k(function(e){return e+1})};e?t():M.current=(0,ee.Z)(t)},C=r.useState(0),E=(S=(0,d.Z)(C,2))[0],k=S[1],O=(0,r.useRef)(new Map),Z=(0,r.useRef)(new ec),M=(0,r.useRef)(),(0,r.useEffect)(function(){return x},[]),[function(e,t){var n=tt(e);O.current.get(n),t?(O.current.set(n,t),w()):O.current.delete(n)},w,Z.current,E]),tc=(0,d.Z)(ti,4),tl=tc[0],ts=tc[1],tu=tc[2],td=tc[3],tf=r.useMemo(function(){if(!eV)return{scrollHeight:void 0,start:0,end:eK.length-1,offset:void 0};if(!eX)return{scrollHeight:(null===(e=eY.current)||void 0===e?void 0:e.offsetHeight)||0,start:0,end:eK.length-1,offset:void 0};for(var e,t,n,o,r=0,a=eK.length,i=0;i=eJ&&void 0===t&&(t=i,n=r),s>eJ+ek&&void 0===o&&(o=i),r=s}return void 0===t&&(t=0,n=0,o=Math.ceil(ek/eO)),void 0===o&&(o=eK.length-1),{scrollHeight:r,start:t,end:o=Math.min(o+1,eK.length-1),offset:n}},[eX,eV,eJ,eK,td,ek]),tp=tf.scrollHeight,tm=tf.start,th=tf.end,tg=tf.offset;tn.current.start=tm,tn.current.end=th;var tv=r.useState({width:0,height:ek}),tb=(0,d.Z)(tv,2),ty=tb[0],tx=tb[1],tw=(0,r.useRef)(),tC=(0,r.useRef)(),tS=r.useMemo(function(){return ef(ty.width,eT)},[ty.width,eT]),tE=r.useMemo(function(){return ef(ty.height,tp)},[ty.height,tp]),tk=tp-ek,tO=(0,r.useRef)(tk);tO.current=tk;var tZ=eJ<=0,tM=eJ>=tk,tN=eu(tZ,tM),tI=function(){return{x:eG?-e4:e4,y:eJ}},tP=(0,r.useRef)(tI()),tR=(0,el.zX)(function(){if(e_){var e=tI();(tP.current.x!==e.x||tP.current.y!==e.y)&&(e_(e),tP.current=e)}}),tj=function(e){var t=e,n=eT-ty.width;return Math.min(t=Math.max(t,0),n)},tT=(0,el.zX)(function(e,t){t?((0,$.flushSync)(function(){e3(function(t){return tj(t+(eG?-e:e))})}),tR()):ey(function(t){return t+e})}),tz=(N=!!eT,I=function(e,t){ee.Z.cancel(j.current),R.current+=t,T.current=t,B(t)||(es||e.preventDefault(),j.current=(0,ee.Z)(function(){var e=z.current?10:1;tT(R.current*e),R.current=0}))},P=function(e,t){tT(t,!0),es||e.preventDefault()},R=(0,r.useRef)(0),j=(0,r.useRef)(null),T=(0,r.useRef)(null),z=(0,r.useRef)(!1),B=eu(tZ,tM),A=(0,r.useRef)(null),_=(0,r.useRef)(null),[function(e){if(eV){ee.Z.cancel(_.current),_.current=(0,ee.Z)(function(){A.current=null},2);var t=e.deltaX,n=e.deltaY,o=e.shiftKey,r=t,a=n;("sx"===A.current||!A.current&&o&&n&&!t)&&(r=n,a=0,A.current="sx");var i=Math.abs(r),c=Math.abs(a);null===A.current&&(A.current=N&&i>c?"x":"y"),"y"===A.current?I(e,a):P(e,r)}},function(e){eV&&(z.current=e.detail===T.current)}]),tB=(0,d.Z)(tz,2),tA=tB[0],t_=tB[1];H=function(e,t){return!tN(e,t)&&(tA({preventDefault:function(){},deltaY:e}),!0)},D=(0,r.useRef)(!1),F=(0,r.useRef)(0),W=(0,r.useRef)(null),V=(0,r.useRef)(null),X=function(e){if(D.current){var t=Math.ceil(e.touches[0].pageY),n=F.current-t;F.current=t,H(n)&&e.preventDefault(),clearInterval(V.current),V.current=setInterval(function(){(!H(n*=ed,!0)||Math.abs(n)<=.1)&&clearInterval(V.current)},16)}},G=function(){D.current=!1,L()},U=function(e){L(),1!==e.touches.length||D.current||(D.current=!0,F.current=Math.ceil(e.touches[0].pageY),W.current=e.target,W.current.addEventListener("touchmove",X),W.current.addEventListener("touchend",G))},L=function(){W.current&&(W.current.removeEventListener("touchmove",X),W.current.removeEventListener("touchend",G))},(0,g.Z)(function(){return eV&&eq.current.addEventListener("touchstart",U),function(){var e;null===(e=eq.current)||void 0===e||e.removeEventListener("touchstart",U),L(),clearInterval(V.current)}},[eV]),(0,g.Z)(function(){var e=function(e){eV&&e.preventDefault()},t=eq.current;return t.addEventListener("wheel",tA),t.addEventListener("DOMMouseScroll",t_),t.addEventListener("MozMousePixelScroll",e),function(){t.removeEventListener("wheel",tA),t.removeEventListener("DOMMouseScroll",t_),t.removeEventListener("MozMousePixelScroll",e)}},[eV]),(0,g.Z)(function(){eT&&e3(function(e){return tj(e)})},[ty.width,eT]);var tH=function(){var e,t;null===(e=tw.current)||void 0===e||e.delayHidden(),null===(t=tC.current)||void 0===t||t.delayHidden()},tL=(K=r.useRef(),q=r.useState(null),et=(Y=(0,d.Z)(q,2))[0],ea=Y[1],(0,g.Z)(function(){if(et&&et.times<10){if(!eq.current){ea(function(e){return(0,u.Z)({},e)});return}ts(!0);var e=et.targetAlign,t=et.originAlign,n=et.index,o=et.offset,r=eq.current.clientHeight,a=!1,i=e,c=null;if(r){for(var l=e||t,s=0,d=0,f=0,p=Math.min(eK.length-1,n),m=0;m<=p;m+=1){var h=tt(eK[m]);d=s;var g=tu.get(h);s=f=d+(void 0===g?eO:g)}for(var v="top"===l?o:r-o,b=p;b>=0;b-=1){var y=tt(eK[b]),x=tu.get(y);if(void 0===x){a=!0;break}if((v-=x)<=0)break}switch(l){case"top":c=d-o;break;case"bottom":c=f-r+o;break;default:var w=eq.current.scrollTop;dw+r&&(i="bottom")}null!==c&&ey(c),c!==et.lastTop&&(a=!0)}a&&ea((0,u.Z)((0,u.Z)({},et),{},{times:et.times+1,targetAlign:i,lastTop:c}))}},[et,eq.current]),function(e){if(null==e){tH();return}if(ee.Z.cancel(K.current),"number"==typeof e)ey(e);else if(e&&"object"===(0,p.Z)(e)){var t,n=e.align;t="index"in e?e.index:eK.findIndex(function(t){return tt(t)===e.key});var o=e.offset;ea({times:0,index:t,offset:void 0===o?0:o,originAlign:n})}});r.useImperativeHandle(t,function(){return{getScrollInfo:tI,scrollTo:function(e){e&&"object"===(0,p.Z)(e)&&("left"in e||"top"in e)?(void 0!==e.left&&e3(tj(e.left)),tL(e.top)):tL(e)}}}),(0,g.Z)(function(){eH&&eH(eK.slice(tm,th+1),eK)},[tm,th,eK]);var tD=(ei=r.useMemo(function(){return[new Map,[]]},[eK,tu.id,eO]),ev=(eg=(0,d.Z)(ei,2))[0],eb=eg[1],function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=ev.get(e),o=ev.get(t);if(void 0===n||void 0===o)for(var r=eK.length,a=eb.length;aek&&r.createElement(en,{ref:tw,prefixCls:eS,scrollOffset:eJ,scrollRange:tp,rtl:eG,onScroll:ew,onStartMove:e9,onStopMove:te,spinSize:tE,containerSize:ty.height,style:null==eF?void 0:eF.verticalScrollBar,thumbStyle:null==eF?void 0:eF.verticalScrollBarThumb}),eX&&eT&&r.createElement(en,{ref:tC,prefixCls:eS,scrollOffset:e4,scrollRange:eT,rtl:eG,onScroll:ew,onStartMove:e9,onStopMove:te,spinSize:tS,containerSize:ty.width,horizontal:!0,style:null==eF?void 0:eF.horizontalScrollBar,thumbStyle:null==eF?void 0:eF.horizontalScrollBarThumb}))});eg.displayName="List";var ev=r.createContext(null),eb=["disabled","title","children","style","className"];function ey(e){return"string"==typeof e||"number"==typeof e}var ex=r.forwardRef(function(e,t){var n=function(e,t){return{role:e.group?"presentation":"option",id:"".concat(u,"_list_").concat(t)}},o=r.useContext(w),a=o.prefixCls,u=o.id,p=o.open,m=o.multiple,h=o.mode,g=o.searchValue,v=o.toggleOpen,y=o.notFoundContent,C=o.onPopupScroll,E=r.useContext(ev),k=E.flattenOptions,O=E.onActiveValue,Z=E.defaultActiveFirstOption,M=E.onSelect,N=E.menuItemSelectedIcon,I=E.rawValues,P=E.fieldNames,R=E.virtual,j=E.direction,T=E.listHeight,z=E.listItemHeight,B=E.optionRender,A="".concat(a,"-item"),_=(0,q.Z)(function(){return k},[p,k],function(e,t){return t[0]&&e[1]!==t[1]}),H=r.useRef(null),L=function(e){e.preventDefault()},D=function(e){H.current&&H.current.scrollTo("number"==typeof e?{index:e}:e)},F=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=_.length,o=0;o1&&void 0!==arguments[1]&&arguments[1];G(e);var n={source:t?"keyboard":"mouse"},o=_[e];if(!o){O(null,-1,n);return}O(o.value,e,n)};(0,r.useEffect)(function(){U(!1!==Z?F(0):-1)},[_.length,g]);var K=r.useCallback(function(e){return I.has(e)&&"combobox"!==h},[h,(0,l.Z)(I).toString(),I.size]);(0,r.useEffect)(function(){var e,t=setTimeout(function(){if(!m&&p&&1===I.size){var e=Array.from(I)[0],t=_.findIndex(function(t){return t.data.value===e});-1!==t&&(U(t),D(t))}});return p&&(null===(e=H.current)||void 0===e||e.scrollTo(void 0)),function(){return clearTimeout(t)}},[p,g]);var $=function(e){void 0!==e&&M(e,{selected:!I.has(e)}),m||v(!1)};if(r.useImperativeHandle(t,function(){return{onKeyDown:function(e){var t=e.which,n=e.ctrlKey;switch(t){case b.Z.N:case b.Z.P:case b.Z.UP:case b.Z.DOWN:var o=0;if(t===b.Z.UP?o=-1:t===b.Z.DOWN?o=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&n&&(t===b.Z.N?o=1:t===b.Z.P&&(o=-1)),0!==o){var r=F(X+o,o);D(r),U(r,!0)}break;case b.Z.ENTER:var a=_[X];a&&!a.data.disabled?$(a.value):$(void 0),p&&e.preventDefault();break;case b.Z.ESC:v(!1),p&&e.stopPropagation()}},onKeyUp:function(){},scrollTo:function(e){D(e)}}}),0===_.length)return r.createElement("div",{role:"listbox",id:"".concat(u,"_list"),className:"".concat(A,"-empty"),onMouseDown:L},y);var Q=Object.keys(P).map(function(e){return P[e]}),J=function(e){return e.label},ee=function(e){var t=_[e];if(!t)return null;var o=t.data||{},a=o.value,i=t.group,l=(0,S.Z)(o,!0),s=J(t);return t?r.createElement("div",(0,c.Z)({"aria-label":"string"!=typeof s||i?null:s},l,{key:e},n(t,e),{"aria-selected":K(a)}),a):null},et={role:"listbox",id:"".concat(u,"_list")};return r.createElement(r.Fragment,null,R&&r.createElement("div",(0,c.Z)({},et,{style:{height:0,width:0,overflow:"hidden"}}),ee(X-1),ee(X),ee(X+1)),r.createElement(eg,{itemKey:"key",ref:H,data:_,height:T,itemHeight:z,fullHeight:!1,onMouseDown:L,onScroll:C,virtual:R,direction:j,innerProps:R?null:et},function(e,t){var o=e.group,a=e.groupOption,l=e.data,u=e.label,d=e.value,p=l.key;if(o){var m,h,g=null!==(h=l.title)&&void 0!==h?h:ey(u)?u.toString():void 0;return r.createElement("div",{className:i()(A,"".concat(A,"-group")),title:g},void 0!==u?u:p)}var v=l.disabled,b=l.title,y=(l.children,l.style),w=l.className,C=(0,f.Z)(l,eb),E=(0,Y.Z)(C,Q),k=K(d),O="".concat(A,"-option"),Z=i()(A,O,w,(m={},(0,s.Z)(m,"".concat(O,"-grouped"),a),(0,s.Z)(m,"".concat(O,"-active"),X===t&&!v),(0,s.Z)(m,"".concat(O,"-disabled"),v),(0,s.Z)(m,"".concat(O,"-selected"),k),m)),M=J(e),I=!N||"function"==typeof N||k,P="number"==typeof M?M:M||d,j=ey(P)?P.toString():void 0;return void 0!==b&&(j=b),r.createElement("div",(0,c.Z)({},(0,S.Z)(E),R?{}:n(e,t),{"aria-selected":k,className:Z,title:j,onMouseMove:function(){X===t||v||U(t)},onClick:function(){v||$(d)},style:y}),r.createElement("div",{className:"".concat(O,"-content")},"function"==typeof B?B(e,{index:t}):P),r.isValidElement(N)||k,I&&r.createElement(x,{className:"".concat(A,"-option-state"),customizeIcon:N,customizeIconProps:{value:d,disabled:v,isSelected:k}},k?"\u2713":null))}))});function ew(e,t){return O(e).join("").toUpperCase().includes(t)}ex.displayName="OptionList";var eC=n(3159),eS=0,eE=(0,eC.Z)(),ek=n(5235),eO=["children","value"],eZ=["children"];function eM(e){var t=r.useRef();return t.current=e,r.useCallback(function(){return t.current.apply(t,arguments)},[])}var eN=["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","value","defaultValue","labelInValue","onChange"],eI=["inputValue"],eP=r.forwardRef(function(e,t){var n,o,a,i,h,g,v,b=e.id,y=e.mode,x=e.prefixCls,w=e.backfill,C=e.fieldNames,S=e.inputValue,E=e.searchValue,k=e.onSearch,Z=e.autoClearSearchValue,M=void 0===Z||Z,N=e.onSelect,I=e.onDeselect,P=e.dropdownMatchSelectWidth,R=void 0===P||P,j=e.filterOption,T=e.filterSort,z=e.optionFilterProp,B=e.optionLabelProp,A=e.options,_=e.optionRender,H=e.children,W=e.defaultActiveFirstOption,V=e.menuItemSelectedIcon,U=e.virtual,K=e.direction,q=e.listHeight,Y=void 0===q?200:q,$=e.listItemHeight,Q=void 0===$?20:$,J=e.value,ee=e.defaultValue,et=e.labelInValue,en=e.onChange,eo=(0,f.Z)(e,eN),er=(n=r.useState(),a=(o=(0,d.Z)(n,2))[0],i=o[1],r.useEffect(function(){var e;i("rc_select_".concat((eE?(e=eS,eS+=1):e="TEST_OR_SSR",e)))},[]),b||a),ea=X(y),ei=!!(!A&&H),ec=r.useMemo(function(){return(void 0!==j||"combobox"!==y)&&j},[j,y]),el=r.useMemo(function(){return D(C,ei)},[JSON.stringify(C),ei]),es=(0,m.Z)("",{value:void 0!==E?E:S,postState:function(e){return e||""}}),eu=(0,d.Z)(es,2),ed=eu[0],ef=eu[1],ep=r.useMemo(function(){var e=A;A||(e=function e(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(0,ek.Z)(t).map(function(t,o){if(!r.isValidElement(t)||!t.type)return null;var a,i,c,l,s,d=t.type.isSelectOptGroup,p=t.key,m=t.props,h=m.children,g=(0,f.Z)(m,eZ);return n||!d?(a=t.key,c=(i=t.props).children,l=i.value,s=(0,f.Z)(i,eO),(0,u.Z)({key:a,value:void 0!==l?l:a,children:c},s)):(0,u.Z)((0,u.Z)({key:"__RC_SELECT_GRP__".concat(null===p?o:p,"__"),label:p},g),{},{options:e(h)})}).filter(function(e){return e})}(H));var t=new Map,n=new Map,o=function(e,t,n){n&&"string"==typeof n&&e.set(t[n],t)};return function e(r){for(var a=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=0;i1&&void 0!==arguments[1]?arguments[1]:{},n=t.fieldNames,o=t.childrenAsData,r=[],a=D(n,!1),i=a.label,c=a.value,l=a.options,s=a.groupLabel;return!function e(t,n){t.forEach(function(t){if(!n&&l in t){var a=t[s];void 0===a&&o&&(a=t.label),r.push({key:L(t,r.length),group:!0,data:t,label:a}),e(t[l],!0)}else{var u=t[c];r.push({key:L(t,r.length),groupOption:n,data:t,label:t[i],value:u})}})}(e,!1),r}(eF,{fieldNames:el,childrenAsData:ei})},[eF,el,ei]),eV=function(e){var t=eb(e);if(eR(t),en&&(t.length!==ez.length||t.some(function(e,t){var n;return(null===(n=ez[t])||void 0===n?void 0:n.value)!==(null==e?void 0:e.value)}))){var n=et?t:t.map(function(e){return e.value}),o=t.map(function(e){return F(eB(e.value))});en(ea?n:n[0],ea?o:o[0])}},eX=r.useState(null),eG=(0,d.Z)(eX,2),eU=eG[0],eK=eG[1],eq=r.useState(0),eY=(0,d.Z)(eq,2),e$=eY[0],eQ=eY[1],eJ=void 0!==W?W:"combobox"!==y,e0=r.useCallback(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=n.source;eQ(t),w&&"combobox"===y&&null!==e&&"keyboard"===(void 0===o?"keyboard":o)&&eK(String(e))},[w,y]),e1=function(e,t,n){var o=function(){var t,n=eB(e);return[et?{label:null==n?void 0:n[el.label],value:e,key:null!==(t=null==n?void 0:n.key)&&void 0!==t?t:e}:e,F(n)]};if(t&&N){var r=o(),a=(0,d.Z)(r,2);N(a[0],a[1])}else if(!t&&I&&"clear"!==n){var i=o(),c=(0,d.Z)(i,2);I(c[0],c[1])}},e2=eM(function(e,t){var n=!ea||t.selected;eV(n?ea?[].concat((0,l.Z)(ez),[e]):[e]:ez.filter(function(t){return t.value!==e})),e1(e,n),"combobox"===y?eK(""):(!X||M)&&(ef(""),eK(""))}),e4=r.useMemo(function(){var e=!1!==U&&!1!==R;return(0,u.Z)((0,u.Z)({},ep),{},{flattenOptions:eW,onActiveValue:e0,defaultActiveFirstOption:eJ,onSelect:e2,menuItemSelectedIcon:V,rawValues:e_,fieldNames:el,virtual:e,direction:K,listHeight:Y,listItemHeight:Q,childrenAsData:ei,optionRender:_})},[ep,eW,e0,eJ,e2,V,e_,el,U,R,Y,Q,ei,_]);return r.createElement(ev.Provider,{value:e4},r.createElement(G,(0,c.Z)({},eo,{id:er,prefixCls:void 0===x?"rc-select":x,ref:t,omitDomProps:eI,mode:y,displayValues:eA,onDisplayValuesChange:function(e,t){eV(e);var n=t.type,o=t.values;("remove"===n||"clear"===n)&&o.forEach(function(e){e1(e.value,!1,n)})},direction:K,searchValue:ed,onSearch:function(e,t){if(ef(e),eK(null),"submit"===t.source){var n=(e||"").trim();n&&(eV(Array.from(new Set([].concat((0,l.Z)(e_),[n])))),e1(n,!0),ef(""));return}"blur"!==t.source&&("combobox"===y&&eV(e),null==k||k(e))},autoClearSearchValue:M,onSearchSplit:function(e){var t=e;"tags"!==y&&(t=e.map(function(e){var t=eh.get(e);return null==t?void 0:t.value}).filter(function(e){return void 0!==e}));var n=Array.from(new Set([].concat((0,l.Z)(e_),(0,l.Z)(t))));eV(n),n.forEach(function(e){e1(e,!0)})},dropdownMatchSelectWidth:R,OptionList:ex,emptyOptions:!eW.length,activeValue:eU,activeDescendantId:"".concat(er,"_list_").concat(e$)})))});eP.Option=K,eP.OptGroup=U;var eR=n(2384),ej=n(473),eT=n(583),ez=n(6544),eB=n(2677),eA=n(3914),e_=n(2986),eH=n(786),eL=n(7466),eD=n(4122),eF=n(472),eW=n(8508),eV=n(4402),eX=n(6828),eG=n(5737),eU=n(1869),eK=function(e){var t=e.optionHeight,n=e.optionFontSize,o=e.optionLineHeight;return{position:"relative",display:"block",minHeight:t,padding:e.optionPadding,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:o,boxSizing:"border-box"}},eq=function(e){var t=e.antCls,n=e.componentCls,o="".concat(n,"-item"),r="&".concat(t,"-slide-up-enter").concat(t,"-slide-up-enter-active"),a="&".concat(t,"-slide-up-appear").concat(t,"-slide-up-appear-active"),i="&".concat(t,"-slide-up-leave").concat(t,"-slide-up-leave-active"),c="".concat(n,"-dropdown-placement-");return[{["".concat(n,"-dropdown")]:Object.assign(Object.assign({},(0,eF.Wf)(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,["\n ".concat(r).concat(c,"bottomLeft,\n ").concat(a).concat(c,"bottomLeft\n ")]:{animationName:eG.fJ},["\n ".concat(r).concat(c,"topLeft,\n ").concat(a).concat(c,"topLeft,\n ").concat(r).concat(c,"topRight,\n ").concat(a).concat(c,"topRight\n ")]:{animationName:eG.Qt},["".concat(i).concat(c,"bottomLeft")]:{animationName:eG.Uw},["\n ".concat(i).concat(c,"topLeft,\n ").concat(i).concat(c,"topRight\n ")]:{animationName:eG.ly},"&-hidden":{display:"none"},["".concat(o)]:Object.assign(Object.assign({},eK(e)),{cursor:"pointer",transition:"background ".concat(e.motionDurationSlow," ease"),borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},eF.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},["&-active:not(".concat(o,"-option-disabled)")]:{backgroundColor:e.optionActiveBg},["&-selected:not(".concat(o,"-option-disabled)")]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,["".concat(o,"-option-state")]:{color:e.colorPrimary}},"&-disabled":{["&".concat(o,"-option-selected")]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:2*e.controlPaddingHorizontal}}}),"&-rtl":{direction:"rtl"}})},(0,eG.oN)(e,"slide-up"),(0,eG.oN)(e,"slide-down"),(0,eU.Fm)(e,"move-up"),(0,eU.Fm)(e,"move-down")]},eY=function(e){var t=e.multipleSelectItemHeight,n=(e.selectHeight-t)/2-e.lineWidth;return[n,Math.ceil(n/2)]};function e$(e,t){var n=e.componentCls,r=e.iconCls,a="".concat(n,"-selection-overflow"),i=e.multipleSelectItemHeight,c=(0,o._)(eY(e),1)[0],l=t?"".concat(n,"-").concat(t):"";return{["".concat(n,"-multiple").concat(l)]:{fontSize:e.fontSize,[a]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},["".concat(n,"-selector")]:{display:"flex",flexWrap:"wrap",alignItems:"center",height:"100%",padding:"".concat(c-2,"px ").concat(4,"px"),borderRadius:e.borderRadius,["".concat(n,"-show-search&")]:{cursor:"text"},["".concat(n,"-disabled&")]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:"".concat(2,"px 0"),lineHeight:"".concat(i,"px"),visibility:"hidden",content:'"\\a0"'}},["\n &".concat(n,"-show-arrow ").concat(n,"-selector,\n &").concat(n,"-allow-clear ").concat(n,"-selector\n ")]:{paddingInlineEnd:e.fontSizeIcon+e.controlPaddingHorizontal},["".concat(n,"-selection-item")]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:i,marginTop:2,marginBottom:2,lineHeight:"".concat(i-2*e.lineWidth,"px"),background:e.multipleItemBg,border:"".concat(e.lineWidth,"px ").concat(e.lineType," ").concat(e.multipleItemBorderColor),borderRadius:e.borderRadiusSM,cursor:"default",transition:"font-size ".concat(e.motionDurationSlow,", line-height ").concat(e.motionDurationSlow,", height ").concat(e.motionDurationSlow),marginInlineEnd:4,paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS/2,["".concat(n,"-disabled&")]:{color:e.multipleItemColorDisabled,borderColor:e.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,eF.Ro)()),{display:"inline-flex",alignItems:"center",color:e.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",["> ".concat(r)]:{verticalAlign:"-0.2em"},"&:hover":{color:e.colorIconHover}})},["".concat(a,"-item + ").concat(a,"-item")]:{["".concat(n,"-selection-search")]:{marginInlineStart:0}},["".concat(a,"-item-suffix")]:{height:"100%"},["".concat(n,"-selection-search")]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.inputPaddingHorizontalBase-c,"\n &-input,\n &-mirror\n ":{height:i,fontFamily:e.fontFamily,lineHeight:"".concat(i,"px"),transition:"all ".concat(e.motionDurationSlow)},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},["".concat(n,"-selection-placeholder")]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:"all ".concat(e.motionDurationSlow)}}}}var eQ=function(e){var t=e.componentCls,n=(0,eV.TS)(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.controlHeightXS,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=(0,eV.TS)(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius}),a=(0,o._)(eY(e),2)[1];return[e$(e),e$(n,"sm"),{["".concat(t,"-multiple").concat(t,"-sm")]:{["".concat(t,"-selection-placeholder")]:{insetInline:e.controlPaddingHorizontalSM-e.lineWidth},["".concat(t,"-selection-search")]:{marginInlineStart:a}}},e$(r,"lg")]};function eJ(e,t){var n=e.componentCls,o=e.inputPaddingHorizontalBase,r=e.borderRadius,a=e.controlHeight-2*e.lineWidth,i=Math.ceil(1.25*e.fontSize),c=t?"".concat(n,"-").concat(t):"";return{["".concat(n,"-single").concat(c)]:{fontSize:e.fontSize,height:e.controlHeight,["".concat(n,"-selector")]:Object.assign(Object.assign({},(0,eF.Wf)(e,!0)),{display:"flex",borderRadius:r,["".concat(n,"-selection-search")]:{position:"absolute",top:0,insetInlineStart:o,insetInlineEnd:o,bottom:0,"&-input":{width:"100%"}},["\n ".concat(n,"-selection-item,\n ").concat(n,"-selection-placeholder\n ")]:{padding:0,lineHeight:"".concat(a,"px"),transition:"all ".concat(e.motionDurationSlow,", visibility 0s"),alignSelf:"center"},["".concat(n,"-selection-placeholder")]:{transition:"none",pointerEvents:"none"},[["&:after","".concat(n,"-selection-item:empty:after"),"".concat(n,"-selection-placeholder:empty:after")].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),["\n &".concat(n,"-show-arrow ").concat(n,"-selection-item,\n &").concat(n,"-show-arrow ").concat(n,"-selection-placeholder\n ")]:{paddingInlineEnd:i},["&".concat(n,"-open ").concat(n,"-selection-item")]:{color:e.colorTextPlaceholder},["&:not(".concat(n,"-customize-input)")]:{["".concat(n,"-selector")]:{width:"100%",height:"100%",padding:"0 ".concat(o,"px"),["".concat(n,"-selection-search-input")]:{height:a},"&:after":{lineHeight:"".concat(a,"px")}}},["&".concat(n,"-customize-input")]:{["".concat(n,"-selector")]:{"&:after":{display:"none"},["".concat(n,"-selection-search")]:{position:"static",width:"100%"},["".concat(n,"-selection-placeholder")]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:"0 ".concat(o,"px"),"&:after":{display:"none"}}}}}}}var e0=function(e){var t=e.componentCls;return{position:"relative",backgroundColor:e.selectorBg,border:"".concat(e.lineWidth,"px ").concat(e.lineType," ").concat(e.colorBorder),transition:"all ".concat(e.motionDurationMid," ").concat(e.motionEaseInOut),input:{cursor:"pointer"},["".concat(t,"-show-search&")]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},["".concat(t,"-disabled&")]:{color:e.colorTextDisabled,background:e.colorBgContainerDisabled,cursor:"not-allowed",["".concat(t,"-multiple&")]:{background:e.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},e1=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=t.componentCls,r=t.borderHoverColor,a=t.antCls,i=t.borderActiveColor,c=t.outlineColor,l=t.controlOutlineWidth,s=n?{["".concat(o,"-selector")]:{borderColor:i}}:{};return{[e]:{["&:not(".concat(o,"-disabled):not(").concat(o,"-customize-input):not(").concat(a,"-pagination-size-changer)")]:Object.assign(Object.assign({},s),{["&:hover ".concat(o,"-selector")]:{borderColor:r},["".concat(o,"-focused& ").concat(o,"-selector")]:{borderColor:i,boxShadow:"0 0 0 ".concat(l,"px ").concat(c),outline:0}})}}},e2=function(e){var t=e.componentCls;return{["".concat(t,"-selection-search-input")]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},e4=function(e){var t=e.antCls,n=e.componentCls,o=e.inputPaddingHorizontalBase,r=e.iconCls;return{[n]:Object.assign(Object.assign({},(0,eF.Wf)(e)),{position:"relative",display:"inline-block",cursor:"pointer",["&:not(".concat(n,"-customize-input) ").concat(n,"-selector")]:Object.assign(Object.assign({},e0(e)),e2(e)),["".concat(n,"-selection-item")]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},eF.vS),{["> ".concat(t,"-typography")]:{display:"inline"}}),["".concat(n,"-selection-placeholder")]:Object.assign(Object.assign({},eF.vS),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),["".concat(n,"-arrow")]:Object.assign(Object.assign({},(0,eF.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:o,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[r]:{verticalAlign:"top",transition:"transform ".concat(e.motionDurationSlow),"> svg":{verticalAlign:"top"},["&:not(".concat(n,"-suffix)")]:{pointerEvents:"auto"}},["".concat(n,"-disabled &")]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),["".concat(n,"-clear")]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:o,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:e.clearBg,cursor:"pointer",opacity:0,transition:"color ".concat(e.motionDurationMid," ease, opacity ").concat(e.motionDurationSlow," ease"),textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},"&:hover":{["".concat(n,"-clear")]:{opacity:1}}}),["".concat(n,"-has-feedback")]:{["".concat(n,"-clear")]:{insetInlineEnd:o+e.fontSize+e.paddingXS}}}},e3=function(e){var t,n,o=e.componentCls;return[{[o]:{["&-borderless ".concat(o,"-selector")]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},["&".concat(o,"-in-form-item")]:{width:"100%"}}},e4(e),(t=e.componentCls,n=e.controlPaddingHorizontalSM-e.lineWidth,[eJ(e),eJ((0,eV.TS)(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{["".concat(t,"-single").concat(t,"-sm")]:{["&:not(".concat(t,"-customize-input)")]:{["".concat(t,"-selection-search")]:{insetInlineStart:n,insetInlineEnd:n},["".concat(t,"-selector")]:{padding:"0 ".concat(n,"px")},["&".concat(t,"-show-arrow ").concat(t,"-selection-search")]:{insetInlineEnd:n+1.5*e.fontSize},["\n &".concat(t,"-show-arrow ").concat(t,"-selection-item,\n &").concat(t,"-show-arrow ").concat(t,"-selection-placeholder\n ")]:{paddingInlineEnd:1.5*e.fontSize}}}},eJ((0,eV.TS)(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]),eQ(e),eq(e),{["".concat(o,"-rtl")]:{direction:"rtl"}},e1(o,(0,eV.TS)(e,{borderHoverColor:e.colorPrimaryHover,borderActiveColor:e.colorPrimary,outlineColor:e.controlOutline})),e1("".concat(o,"-status-error"),(0,eV.TS)(e,{borderHoverColor:e.colorErrorHover,borderActiveColor:e.colorError,outlineColor:e.colorErrorOutline}),!0),e1("".concat(o,"-status-warning"),(0,eV.TS)(e,{borderHoverColor:e.colorWarningHover,borderActiveColor:e.colorWarning,outlineColor:e.colorWarningOutline}),!0),(0,eW.c)(e,{borderElCls:"".concat(o,"-selector"),focusElCls:"".concat(o,"-focused")})]},e6=(0,eX.Z)("Select",function(e,t){var n=t.rootPrefixCls;return[e3((0,eV.TS)(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.paddingSM-1,multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight}))]},function(e){var t=e.fontSize,n=e.lineHeight,o=e.controlHeight,r=e.controlPaddingHorizontal,a=e.zIndexPopupBase,i=e.colorText,c=e.fontWeightStrong,l=e.controlItemBgActive,s=e.controlItemBgHover,u=e.colorBgContainer,d=e.colorFillSecondary,f=e.controlHeightLG,p=e.controlHeightSM,m=e.colorBgContainerDisabled,h=e.colorTextDisabled;return{zIndexPopup:a+50,optionSelectedColor:i,optionSelectedFontWeight:c,optionSelectedBg:l,optionActiveBg:s,optionPadding:"".concat((o-t*n)/2,"px ").concat(r,"px"),optionFontSize:t,optionLineHeight:n,optionHeight:o,selectorBg:u,clearBg:u,singleItemHeightLG:f,multipleItemBg:d,multipleItemBorderColor:"transparent",multipleItemHeight:p,multipleItemHeightLG:o,multipleSelectorBgDisabled:m,multipleItemColorDisabled:h,multipleItemBorderColorDisabled:"transparent"}}),e8=function(e){var t={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:"scroll"===e?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},t),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},t),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},t),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},t),{points:["br","tr"],offset:[0,-4]})}},e5=n(4769),e7=n(7458),e9=n(6584),te=n(988),tt=n(5787),tn=n(5381),to=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(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,o=Object.getOwnPropertySymbols(e);r=0&&ew},[ew,eG]),eK=r.useMemo(function(){return Object.keys(ej||{}).map(function(e){var t=ej[e],n={value:Number(e)};return t&&"object"===(0,d.Z)(t)&&!r.isValidElement(t)&&("label"in t||"style"in t)?(n.style=t.style,n.label=t.label):n.label=t,n}).filter(function(e){var t=e.label;return t||"number"==typeof t}).sort(function(e,t){return e.value-t.value})},[ej]),eq=(n=void 0===ey||ey,o=r.useCallback(function(e){return isFinite(e),Math.max(eV,Math.min(eX,e))},[eV,eX]),a=r.useCallback(function(e){if(null!==eG){var t=eV+Math.round((o(e)-eV)/eG)*eG,n=function(e){return(String(e).split(".")[1]||"").length},r=Math.max(n(eG),n(eX),n(eV)),a=Number(t.toFixed(r));return eV<=a&&a<=eX?a:null}return null},[eG,eV,eX,o]),h=r.useCallback(function(e){var t=o(e),n=eK.map(function(e){return e.value});null!==eG&&n.push(a(e)),n.push(eV,eX);var r=n[0],i=eX-eV;return n.forEach(function(e){var n=Math.abs(t-e);n<=i&&(r=e,i=n)}),r},[eV,eX,eK,eG,o,a]),g=function e(t,n,o){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"unit";if("number"==typeof n){var i,c=t[o],l=c+n,u=[];eK.forEach(function(e){u.push(e.value)}),u.push(eV,eX),u.push(a(c));var d=n>0?1:-1;"unit"===r?u.push(a(c+d*eG)):u.push(a(l)),u=u.filter(function(e){return null!==e}).filter(function(e){return n<0?e<=c:e>=c}),"unit"===r&&(u=u.filter(function(e){return e!==c}));var f="unit"===r?c:l,p=Math.abs((i=u[0])-f);if(u.forEach(function(e){var t=Math.abs(e-f);t1){var m=(0,s.Z)(t);return m[o]=i,e(m,n-d,o,r)}return i}return"min"===n?eV:"max"===n?eX:void 0},v=function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"unit",r=e[n],a=g(e,t,n,o);return{value:a,changed:a!==r}},b=function(e){return null===eU&&0===e||"number"==typeof eU&&e3&&void 0!==arguments[3]?arguments[3]:"unit",a=e.map(h),i=a[o],c=g(a,t,o,r);if(a[o]=c,!1===n){var l=eU||0;o>0&&a[o-1]!==i&&(a[o]=Math.max(a[o],a[o-1]+l)),o0;f-=1)for(var p=!0;b(a[f]-a[f-1])&&p;){var m=v(a,-1,f-1);a[f-1]=m.value,p=m.changed}for(var y=a.length-1;y>0;y-=1)for(var x=!0;b(a[y]-a[y-1])&&x;){var w=v(a,-1,y-1);a[y-1]=w.value,x=w.changed}for(var C=0;C=0?eh+1:2;for(o=o.slice(0,a);o.length