PageSourceSearch

https://kuajing-help.com/6150.f9b9f402.async.js

js kuajing-help.com collected 2026-09-24 14:47:28 UTC 67,575 bytes, 3 lines download raw bytes

1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[6150],{84151:(function(It,Re){var r={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"};Re.A=r}),75199:(function(It,Re){var r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"};Re.A=r}),24847:(function(It,Re,r){r.d(Re,{A:function(){return me}});var U=r(98477),N=r(37953),h={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"},d=h,y=r(13517),ye=function(n,Qe){return N.createElement(y.A,(0,U.A)((0,U.A)({},n),{},{ref:Qe,icon:d}))},R=N.forwardRef(ye),me=R}),7625:(function(It,Re,r){var U=r(98477),N=r(37953),h=r(84151),d=r(13517),y=function(me,oe){return N.createElement(d.A,(0,U.A)((0,U.A)({},me),{},{ref:oe,icon:h.A}))},ye=N.forwardRef(y);Re.A=ye}),54681:(function(It,Re,r){var U=r(98477),N=r(37953),h=r(75199),d=r(13517),y=function(me,oe){return N.createElement(d.A,(0,U.A)((0,U.A)({},me),{},{ref:oe,icon:h.A}))},ye=N.forwardRef(y);Re.A=ye}),92090:(function(It,Re,r){r.d(Re,{A:function(){return U}});function U(N){return Object.keys(N).reduce(function(h,d){return(d.startsWith("data-")||d.startsWith("aria-")||d==="role")&&!d.startsWith("data-__")&&(h[d]=N[d]),h},{})}}),70542:(function(It,Re,r){r.d(Re,{A:function(){return h}});var U=r(73159),N=r(37953);function h(){var d=N.useReducer(function(R){return R+1},0),y=(0,U.A)(d,2),ye=y[1];return ye}}),69877:(function(It,Re,r){var U=r(37953),N=r(90580),h=r(45843),d=function(ye){return U.createElement(N.TG,null,function(R){var me=R.getPrefixCls,oe=me("empty");switch(ye){case"Table":case"List":return U.createElement(h.A,{image:h.A.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return U.createElement(h.A,{image:h.A.PRESENTED_IMAGE_SIMPLE,className:"".concat(oe,"-small")});default:return U.createElement(h.A,null)}})};Re.A=d}),22978:(function(It,Re,r){var U=r(37953),N=r(70542),h=r(10404);function d(){var y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,ye=(0,U.useRef)({}),R=(0,N.A)();return(0,U.useEffect)(function(){var me=h.Ay.subscribe(function(oe){ye.current=oe,y&&R()});return function(){return h.Ay.unsubscribe(me)}},[]),ye.current}Re.A=d}),21181:(function(It,Re,r){r.d(Re,{A:function(){return un}});var U=r(65062),N=r(20873),h=r(73159),d=r(97500),y=r.n(d),ye=r(74979),R=r(37953),me=r(90580),oe=r(78611),n=r(92090),Qe=R.createContext(null),l=Qe.Provider,Dt=Qe,gt=R.createContext(null),F=gt.Provider,bt=r(99535),Ut=r(15109),zt=r(84476),Qt=r(51920),pt=function($,xe){var We={};for(var ee in $)Object.prototype.hasOwnProperty.call($,ee)&&xe.indexOf(ee)<0&&(We[ee]=$[ee]);if($!=null&&typeof Object.getOwnPropertySymbols=="function")for(var q=0,ee=Object.getOwnPropertySymbols($);q<ee.length;q++)xe.indexOf(ee[q])<0&&Object.prototype.propertyIsEnumerable.call($,ee[q])&&(We[ee[q]]=$[ee[q]]);return We},Me=function(xe,We){var ee,q,He=R.useContext(Dt),xt=R.useContext(gt),_t=R.useContext(me.QO),Ht=_t.getPrefixCls,Zt=_t.direction,Ot=R.useRef(),Tt=(0,Ut.K4)(We,Ot),qt=(0,R.useContext)(Qt.$W),en=qt.isFormItemInput,tn=function(I){var m,k;(m=xe.onChange)===null||m===void 0||m.call(xe,I),(k=He==null?void 0:He.onChange)===null||k===void 0||k.call(He,I)},wt=xe.prefixCls,mn=xe.className,jt=xe.children,hn=xe.style,at=pt
1(xe,["prefixCls","className","children","style"]),o=Ht("radio",wt),p=((He==null?void 0:He.optionType)||xt)==="button"?"".concat(o,"-button"):o,s=(0,U.A)({},at),g=R.useContext(zt.A);He&&(s.name=He.name,s.onChange=tn,s.checked=xe.value===He.value,s.disabled=(ee=s.disabled)!==null&&ee!==void 0?ee:He.disabled),s.disabled=(q=s.disabled)!==null&&q!==void 0?q:g;var M=y()("".concat(p,"-wrapper"),(0,N.A)((0,N.A)((0,N.A)((0,N.A)({},"".concat(p,"-wrapper-checked"),s.checked),"".concat(p,"-wrapper-disabled"),s.disabled),"".concat(p,"-wrapper-rtl"),Zt==="rtl"),"".concat(p,"-wrapper-in-form-item"),en),mn);return R.createElement("label",{className:M,style:hn,onMouseEnter:xe.onMouseEnter,onMouseLeave:xe.onMouseLeave},R.createElement(bt.A,(0,U.A)({},s,{type:"radio",prefixCls:p,ref:Tt})),jt!==void 0?R.createElement("span",null,jt):null)},he=R.forwardRef(Me),Ze=he,Le=R.forwardRef(function($,xe){var We=R.useContext(me.QO),ee=We.getPrefixCls,q=We.direction,He=R.useContext(oe.A),xt=(0,ye.A)($.defaultValue,{value:$.value}),_t=(0,h.A)(xt,2),Ht=_t[0],Zt=_t[1],Ot=function(z){var C=Ht,D=z.target.value;"value"in $||Zt(D);var _=$.onChange;_&&D!==C&&_(z)},Tt=$.prefixCls,qt=$.className,en=qt===void 0?"":qt,tn=$.options,wt=$.buttonStyle,mn=wt===void 0?"outline":wt,jt=$.disabled,hn=$.children,at=$.size,o=$.style,p=$.id,s=$.onMouseEnter,g=$.onMouseLeave,M=$.onFocus,x=$.onBlur,I=ee("radio",Tt),m="".concat(I,"-group"),k=hn;tn&&tn.length>0&&(k=tn.map(function(f){return typeof f=="string"||typeof f=="number"?R.createElement(Ze,{key:f.toString(),prefixCls:I,disabled:jt,value:f,checked:Ht===f},f):R.createElement(Ze,{key:"radio-group-value-options-".concat(f.value),prefixCls:I,disabled:f.disabled||jt,value:f.value,checked:Ht===f.value,style:f.style},f.label)}));var P=at||He,Q=y()(m,"".concat(m,"-").concat(mn),(0,N.A)((0,N.A)({},"".concat(m,"-").concat(P),P),"".concat(m,"-rtl"),q==="rtl"),en);return R.createElement("div",(0,U.A)({},(0,n.A)($),{className:Q,style:o,onMouseEnter:s,onMouseLeave:g,onFocus:M,onBlur:x,id:p,ref:xe}),R.createElement(l,{value:{onChange:Ot,value:Ht,disabled:$.disabled,name:$.name,optionType:$.optionType}},k))}),Fe=R.memo(Le),Jt=function($,xe){var We={};for(var ee in $)Object.prototype.hasOwnProperty.call($,ee)&&xe.indexOf(ee)<0&&(We[ee]=$[ee]);if($!=null&&typeof Object.getOwnPropertySymbols=="function")for(var q=0,ee=Object.getOwnPropertySymbols($);q<ee.length;q++)xe.indexOf(ee[q])<0&&Object.prototype.propertyIsEnumerable.call($,ee[q])&&(We[ee[q]]=$[ee[q]]);return We},ft=function(xe,We){var ee=R.useContext(me.QO),q=ee.getPrefixCls,He=xe.prefixCls,xt=Jt(xe,["prefixCls"]),_t=q("radio",He);return R.createElement(F,{value:"button"},R.createElement(Ze,(0,U.A)({prefixCls:_t},xt,{type:"radio",ref:We})))},$t=R.forwardRef(ft),Rt=Ze;Rt.Button=$t,Rt.Group=Fe,Rt.__ANT_RADIO=!0;var un=Rt}),50165:(function(It,Re,r){var U=r(20873),N=r(65062),h=r(97500),d=r.n(h),y=r(88181),ye=r(50707),R=r(37953),me=r(90580),oe=r(69877),n=r(84476),Qe=r(78611),l=r(51920),Dt=r(39454),gt=r(1853),F=r(74066),bt=r(75744),Ut=function(Me,he){var Ze={};for(var Le in Me)Object.prototype.hasOwnProperty.call(Me,Le)&&he.indexOf(Le)<0&&(Ze[Le]=Me[Le]);if(Me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Fe=0,Le=Object.getOwnPropertySymbols(Me);Fe<Le.length;Fe++)he.indexOf(Le[Fe])<0&&Object.prototype.propertyIsEnumerable.call(Me,Le[Fe])&&(Ze[Le[Fe]]=Me[Le[Fe]]);return Ze},zt="SECRET_COMBOBOX_MODE_DO_NOT_USE",Qt=function(he,Ze){var Le=he.prefixCls,Fe=he.bordered,Jt=Fe===void 0?!0:Fe,ft=he.className,$t=he.getPopupContainer,Rt=he.dropdownClassName,un=he.popupClassName,$=he.listHeight,xe=$===void 0?256:$,We=he.placement,ee=he.listItemHeight,q=ee===void 0?32:ee,He=he.size,xt=he.disabled,_t=he.notFoundContent,Ht=he.status,Zt=he.showArrow,Ot=Ut(he,["prefixCls","bordered","className","getPopupContainer","dropdownClassName","popupClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","showArrow"]),Tt=R.useContext(me.QO),qt=Tt.getPopupContainer,en=Tt.getPrefixCls,tn=Tt.renderEmpty,wt=Tt.direction,mn=Tt.virtual,jt=Tt.dropdownMatchSelectWidth,hn=R.useContext(Qe.A),at=en("select",Le),o=en(),p=(0,bt.RQ)(at,wt),s=p.compactSize,g=p.compactItemClassnames,M=R.useMemo(function(){var dt=Ot.mode;if(dt!=="combobox")return dt===zt?"combobox":dt},[Ot.mode]),x=M==="multiple"||M==="tags",I=Zt!==void 0?Zt:Ot.loading||!(x||M==="combobox"),m=(0,R.useContext)(l.$W),k=m.status,P=m.hasFeedback,Q=m.isFormItemInput,f=m.feedbackIcon,z=(0,gt.v)(k,Ht),C;_t!==void 0?C=_t:M==="combobox"?C=null:C=(tn||oe.A)("Select");var D=(0,F.A)((0,N.A)((0,N.A)({},Ot),{multiple:x,hasFeedback:P,feedbackIcon:f,showArrow:I,prefixCls:at})),_=D.suffixIcon,ge=D.itemIcon,Se=D.removeIcon,H=D.clearIcon,Ie=(0,ye.A)(Ot,["suffixIcon","itemIcon"]),we=d()(un||Rt,(0,U.A)({},"".concat(at,"-dropdown-").concat(wt),wt==="rtl")),ot=s||He||hn,lt=R.useContext(n.A),Pe=xt!=null?xt:lt,it=d()((0,U.A)((0,U.A)((0,U.A)((0,U.A)((0,U.A)({},"".concat(at,"-lg"),ot==="large"),"".concat(at,"-sm"),ot==="small"),"".concat(at,"-rtl"),wt==="rtl"),"".concat(at,"-borderless"),!Jt),"".concat(at,"-in-form-item"),Q),(0,gt.L)(at,z,P),g,ft),St=function(){return We!==void 0?We:wt==="rtl"?"bottomRight":"bottomLeft"};return R.createElement(y.Ay,(0,N.A)({ref:Ze,virtual:mn,dropdownMatchSelectWidth:jt},Ie,{transitionName:(0,Dt.by)(o,(0,Dt.TL)(We),Ot.transitionName),listHeight:xe,listItemHeight:q,mode:M,prefixCls:at,placement:St(),direction:wt,inputIcon:_,menuItemSelectedIcon:ge,removeIcon:Se,clearIcon:H,notFoundContent:C,className:it,getPopupContainer:$t||qt,dropdownClassName:we,showArrow:P||Zt,disabled:Pe}))},pt=R.forwardRef(Qt);pt.SECRET_COMBOBOX_MODE_DO_NOT_USE=zt,pt.Option=y.c$,pt.OptGroup=y.JM,Re.A=pt}),74066:(function(It,Re,r){r.d(Re,{A:function(){return me}});var U=r(24847),N=r(41451),h=r(8810),d=r(7625),y=r(19289),ye=r(54681),R=r(37953);function me(oe){var n=oe.suffixIcon,Qe=oe.clearIcon,l=oe.menuItemSelectedIcon,Dt=oe.removeIcon,gt=oe.loading,F=oe.multiple,bt=oe.hasFeedback,Ut=oe.prefixCls,zt=oe.showArrow,Qt=oe.feedbackIcon,pt=Qe!=null?Qe:R.createElement(N.A,null),Me=function(ft){return R.createElement(R.Fragment,null,zt!==!1&&ft,bt&&Qt)},he=null;if(n!==void 0)he=Me(n);else if(gt)he=Me(R.createElement(y.A,{spin:!0}));else{var Ze="".concat(Ut,"-suffix");he=function(ft){var $t=ft.open,Rt=ft.showSearch;return Me($t&&Rt?R.createElement(ye.A,{className:Ze}):R.createElement(d.A,{className:Ze}))}}var Le=null;l!==void 0?Le=l:F?Le=R.createElement(U.A,null):Le=null;var Fe=null;return Dt!==void 0?Fe=Dt:Fe=R.createElement(h.A,null),{clearIcon:pt,suffixIcon:he,itemIcon:Le,removeIcon:Fe}}}),99535:(function(It,Re,r){var U=r(65062),N=r(98477),h=r(20873),d=r(73159),y=r(18211),ye=r(97500),R=r.
1n(ye),me=r(74979),oe=r(37953),n=["prefixCls","className","style","checked","disabled","defaultChecked","type","onChange"],Qe=(0,oe.forwardRef)(function(l,Dt){var gt,F=l.prefixCls,bt=F===void 0?"rc-checkbox":F,Ut=l.className,zt=l.style,Qt=l.checked,pt=l.disabled,Me=l.defaultChecked,he=Me===void 0?!1:Me,Ze=l.type,Le=Ze===void 0?"checkbox":Ze,Fe=l.onChange,Jt=(0,y.A)(l,n),ft=(0,oe.useRef)(null),$t=(0,me.A)(he,{value:Qt}),Rt=(0,d.A)($t,2),un=Rt[0],$=Rt[1];(0,oe.useImperativeHandle)(Dt,function(){return{focus:function(){var q;(q=ft.current)===null||q===void 0||q.focus()},blur:function(){var q;(q=ft.current)===null||q===void 0||q.blur()},input:ft.current}});var xe=R()(bt,Ut,(gt={},(0,h.A)(gt,"".concat(bt,"-checked"),un),(0,h.A)(gt,"".concat(bt,"-disabled"),pt),gt)),We=function(q){pt||("checked"in l||$(q.target.checked),Fe==null||Fe({target:(0,N.A)((0,N.A)({},l),{},{type:Le,checked:q.target.checked}),stopPropagation:function(){q.stopPropagation()},preventDefault:function(){q.preventDefault()},nativeEvent:q.nativeEvent}))};return oe.createElement("span",{className:xe,style:zt},oe.createElement("input",(0,U.A)({}
1,Jt,{className:"".concat(bt,"-input"),ref:ft,onChange:We,disabled:pt,checked:!!un,type:Le})),oe.createElement("span",{className:"".concat(bt,"-inner")}))});Re.A=Qe}),49845:(function(It,Re,r){r.d(Re,{Ay:function(){return R}});var U=r(73159),N=r(37953),h=r(80284),d=0,y=(0,h.A)();function ye(){var me;return y?(me=d,d+=1):me="TEST_OR_SSR",me}function R(me){var oe=N.useState(),n=(0,U.A)(oe,2),Qe=n[0],l=n[1];return N.useEffect(function(){l("rc_select_".concat(ye()))},[]),me||Qe}}),88181:(function(It,Re,r){r.d(Re,{g3:function(){return f},JM:function(){return it},c$:function(){return dt},Ay:function(){return zn},Vm:function(){return zt}});var U=r(65062),N=r(87929),h=r(20873),d=r(98477),y=r(73159),ye=r(18211),R=r(10774),me=r(74979),oe=r(15084),n=r(37953),Qe=r(97500),l=r.n(Qe),Dt=r(41683),gt=r(55404),F=r(16210),bt=r(15109),Ut=n.createContext(null);function zt(){return n.useContext(Ut)}function Qt(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,e=n.useState(!1),i=(0,y.A)(e,2),a=i[0],v=i[1],c=n.useRef(null),b=function(){window.clearTimeout(c.current)};n.useEffect(function(){return b},[]);var A=function(T,B){b(),c.current=window.setTimeout(function(){v(T),B&&B()},t)};return[a,A,b]}function pt(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,e=n.useRef(null),i=n.useRef(null);n.useEffect(function(){return function(){window.clearTimeout(i.current)}},[]);function a(v){(v||e.current===null)&&(e.current=v),window.clearTimeout(i.current),i.current=window.setTimeout(function(){e.current=null},t)}return[function(){return e.current},a]}function Me(t,e,i,a){var v=n.useRef(null);v.current={open:e,triggerOpen:i,customizedTrigger:a},n.useEffect(function(){function c(b){var A;if(!((A=v.current)!==null&&A!==void 0&&A.customizedTrigger)){var O=b.target;O.shadowRoot&&b.composed&&(O=b.composedPath()[0]||O),v.current.open&&t().filter(function(T){return T}).every(function(T){return!T.contains(O)&&T!==O})&&v.current.triggerOpen(!1)}}return window.addEventListener("mousedown",c),function(){return window.removeEventListener("mousedown",c)}},[])}var he=r(20711),Ze=r(92576),Le=function(e){var i=e.className,a=e.customizeIcon,v=e.customizeIconProps,c=e.onMouseDown,b=e.onClick,A=e.children,O;return typeof a=="function"?O=a(v):O=a,n.createElement("span",{className:i,onMouseDown:function(B){B.preventDefault(),c&&c(B)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:b,"aria-hidden":!0},O!==void 0?O:n.createElement("span",{className:l()(i.split(/\s+/).map(function(T){return"".concat(T,"-icon")}))},A))},Fe=Le,Jt=function(e,i){var a,v,c=e.prefixCls,b=e.id,A=e.inputElement,O=e.disabled,T=e.tabIndex,B=e.autoFocus,E=e.autoComplete,V=e.editable,w=e.activeDescendantId,Y=e.value,re=e.maxLength,De=e.onKeyDown,le=e.onMouseDown,ce=e.onChange,Ce=e.onPaste,ke=e.onCompositionStart,Ne=e.onCompositionEnd,X=e.open,Be=e.attrs,ve=A||n.createElement("input",null),pe=ve,Ee=pe.ref,Ue=pe.props,Xe=Ue.onKeyDown,Ve=Ue.onChange,Ke=Ue.onMouseDown,ze=Ue.onCompositionStart,ae=Ue.onCompositionEnd,se=Ue.style;return(0,oe.$e)(!("maxLength"in ve.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),ve=n.cloneElement(ve,(0,d.A)((0,d.A)((0,d.A)({type:"search"},Ue),{},{id:b,ref:(0,bt.K4)(i,Ee),disabled:O,tabIndex:T,autoComplete:E||"off",autoFocus:B,className:l()("".concat(c,"-selection-search-input"),(a=ve)===null||a===void 0||(v=a.props)===null||v===void 0?void 0:v.className),role:"combobox","aria-expanded":X,"aria-haspopup":"listbox","aria-owns":"".concat(b,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(b,"_list"),"aria-activedescendant":w},Be),{},{value:V?Y:"",maxLength:re,readOnly:!V,unselectable:V?null:"on",style:(0,d.A)((0,d.A)({},se),{},{opacity:V?null:0}),onKeyDown:function(de){De(de),Xe&&Xe(de)},onMouseDown:function(de){le(de),Ke&&Ke(de)},onChange:function(de){ce(de),Ve&&Ve(de)},onCompositionStart:function(de){ke(de),ze&&ze(de)},onCompositionEnd:function(de){Ne(de),ae&&ae(de)},onPaste:Ce})),ve},ft=n.forwardRef(Jt);ft.displayName="Input";var $t=ft;function Rt(t){return Array.isArray(t)?t:t!==void 0?[t]:[]}var un=typeof window!="undefined"&&window.document&&window.document.documentElement,$=un;function xe(t){return t!=null}function We(t){return["string","number"].includes((0,R.A)(t))}function ee(t){var e=void 0;return t&&(We(t.title)?e=t.title.toString():We(t.label)&&(e=t.label.toString())),e}function q(t,e){$?n.useLayoutEffect(t,e):n.useEffect(t,e)}function He(t){var e;return(e=t.key)!==null&&e!==void 0?e:t.value}var xt=function(e){e.preventDefault(),e.stopPropagation()},_t=function(e){var i=e.id,a=e.prefixCls,v=e.values,c=e.open,b=e.searchValue,A=e.autoClearSearchValue,O=e.inputRef,T=e.placeholder,B=e.disabled,E=e.mode,V=e.showSearch,w=e.autoFocus,Y=e.autoComplete,re=e.activeDescendantId,De=e.tabIndex,le=e.removeIcon,ce=e.maxTagCount,Ce=e.maxTagTextLength,ke=e.maxTagPlaceholder,Ne=ke===void 0?function(u){return"+ ".concat(u.length," ...")}:ke,X=e.tagRender,Be=e.onToggleOpen,ve=e.onRemove,pe=e.onInputChange,Ee=e.onInputPaste,Ue=e.onInputKeyDown,Xe=e.onInputMouseDown,Ve=e.onInputCompositionStart,Ke=e.onInputCompositionEnd,ze=n.useRef(null),ae=(0,n.use
1State)(0),se=(0,y.A)(ae,2),fe=se[0],de=se[1],yt=(0,n.useState)(!1),ct=(0,y.A)(yt,2),rn=ct[0],Ye=ct[1],te="".concat(a,"-selection"),K=c||E==="multiple"&&A===!1||E==="tags"?b:"",ie=E==="tags"||E==="multiple"&&A===!1||V&&(c||rn);q(function(){de(ze.current.scrollWidth)},[K]);function _e(u,L,J,be,ht){return n.createElement("span",{className:l()("".concat(te,"-item"),(0,h.A)({},"".concat(te,"-item-disabled"),J)),title:ee(u)},n.createElement("span",{className:"".concat(te,"-item-content")},L),be&&n.createElement(Fe,{className:"".concat(te,"-item-remove"),onMouseDown:xt,onClick:ht,customizeIcon:le},"\xD7"))}function Ae(u,L,J,be,ht){var nt=function(Te){xt(Te),Be(!c)};return n.createElement("span",{onMouseDown:nt},X({label:L,value:u,disabled:J,closable:be,onClose:ht}))}function Oe(u){var L=u.disabled,J=u.label,be=u.value,ht=!B&&!L,nt=J;if(typeof Ce=="number"&&(typeof J=="string"||typeof J=="number")){var et=String(nt);et.length>Ce&&(nt="".concat(et.slice(0,Ce),"..."))}var Te=function(At){At&&At.stopPropagation(),ve(u)};return typeof X=="function"?Ae(be,nt,L,ht,Te):_e(u,nt,L,ht,Te)}function je(u){var L=typeof Ne=="function"?Ne(u):Ne;return _e({title:L},L,!1)}var tt=n.createElement("div",{className:"".concat(te,"-search"),style:{width:fe},onFocus:function(){Ye(!0)},onBlur:function(){Ye(!1)}},n.createElement($t,{ref:O,open:c,prefixCls:a,id:i,inputElement:null,disabled:B,autoFocus:w,autoComplete:Y,editable:ie,activeDescendantId:re,value:K,onKeyDown:Ue,onMouseDown:Xe,onChange:pe,onPaste:Ee,onCompositionStart:Ve,onCompositionEnd:Ke,tabIndex:De,attrs:(0,he.A)(e,!0)}),n.createElement("span",{ref:ze,className:"".concat(te,"-search-mirror"),"aria-hidden":!0},K,"\xA0")),S=n.createElement(Ze.A,{prefixCls:"".concat(te,"-overflow"),data:v,renderItem:Oe,renderRest:je,suffix:tt,itemKey:He,maxCount:ce});return n.createElement(n.Fragment,null,S,!v.length&&!K&&n.createElement("span",{className:"".concat(te,"-placeholder")},T))},Ht=_t,Zt=function(e){var i=e.inputElement,a=e.prefixCls,v=e.id,c=e.inputRef,b=e.disabled,A=e.autoFocus,O=e.autoComplete,T=e.activeDescendantId,B=e.mode,E=e.open,V=e.values,w=e.placeholder,Y=e.tabIndex,re=e.showSearch,De=e.searchValue,le=e.activeValue,ce=e.maxLength,Ce=e.onInputKeyDown,ke=e.onInputMouseDown,Ne=e.onInputChange,X=e.onInputPaste,Be=e.onInputCompositionStart,ve=e.onInputCompositionEnd,pe=n.useState(!1),Ee=(0,y.A)(pe,2),Ue=Ee[0],Xe=Ee[1],Ve=B==="combobox",Ke=Ve||re,ze=V[0],ae=De||"";Ve&&le&&!Ue&&(ae=le),n.useEffect(function(){Ve&&Xe(!1)},[Ve,le]);var se=B!=="combobox"&&!E&&!re?!1:!!ae,fe=ee(ze),de=function(){if(ze)return null;var ct=se?{visibility:"hidden"}:void 0;return n.createElement("span",{className:"".concat(a,"-selection-placeholder"),style:ct},w)};return n.createElement(n.Fragment,null,n.createElement("span",{className:"".concat(a,"-selection-search")},n.createElement($t,{ref:c,prefixCls:a,id:v,open:E,inputElement:i,disabled:b,autoFocus:A,autoComplete:O,editable:Ke,activeDescendantId:T,value:ae,onKeyDown:Ce,onMouseDown:ke,onChange:function(ct){Xe(!0),Ne(ct)},onPaste:X,onCompositionStart:Be,onCompositionEnd:ve,tabIndex:Y,attrs:(0,he.A)(e,!0),maxLength:Ve?ce:void 0})),!Ve&&ze?n.createElement("span",{className:"".concat(a,"-selection-item"),title:fe,style:se?{visibility:"hidden"}:void 0},ze.label):null,de())},Ot=Zt;function Tt(t){return![F.A.ESC,F.A.SHIFT,F.A.BACKSPACE,F.A.TAB,F.A.WIN_KEY,F.A.ALT,F.A.META,F.A.WIN_KEY_RIGHT,F.A.CTRL,F.A.SEMICOLON,F.A.EQUALS,F.A.CAPS_LOCK,F.A.CONTEXT_MENU,F.A.F1,F.A.F2,F.A.F3,F.A.F4,F.A.F5,F.A.F6,F.A.F7,F.A.F8,F.A.F9,F.A.F10,F.A.F11,F.A.F12].includes(t)}var qt=function(e,i){var a=(0,n.useRef)(null),v=(0,n.useRef)(!1),c=e.prefixCls,b=e.open,A=e.mode,O=e.showSearch,T=e.tokenWithEnter,B=e.autoClearSearchValue,E=e.onSearch,V=e.onSearchSubmit,w=e.onToggleOpen,Y=e.onInputKeyDown,re=e.domRef;n.useImperativeHandle(i,function(){return{focus:function(){a.current.focus()},blur:function(){a.current.blur()}}});var De=pt(0),le=(0,y.A)(De,2),ce=le[0],Ce=le[1],ke=function(se){var fe=se.which;(fe===F.A.UP||fe===F.A.DOWN)&&se.preventDefault(),Y&&Y(se),fe===F.A.ENTER&&A==="tags"&&!v.current&&!b&&(V==null||V(se.target.value)),Tt(fe)&&w(!0)},Ne=function(){Ce(!0)},X=(0,n.useRef)(null),Be=function(se){E(se,!0,v.current)!==!1&&w(!0)},ve=function(){v.current=!0},pe=function(se){v.current=!1,A!=="combobox"&&Be(se.target.value)},Ee=function(se){var fe=se.target.value;if(T&&X.current&&/[\r\n]/.test(X.current)){var de=X.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");fe=fe.replace(de,X.current)}X.current=null,Be(fe)},Ue=function(se){var fe=se.clipboardData,de=fe.getData("text");X.current=de},Xe=function(se){var fe=se.target;if(fe!==a.current){var de=document.body.style.msTouchAction!==void 0;de?setTimeout(function(){a.current.focus()}):a.current.focus()}},Ve=function(se){var fe=ce();se.target!==a.current&&!fe&&A!=="combobox"&&se.preventDefault(),(A!=="combobox"&&(!O||!fe)||!b)&&(b&&B!==!1&&E("",!0,!1),w())},Ke={inputRef:a,onInputKeyDown:ke,onInputMouseDown:Ne,onInputChange:Ee,onInputPaste:Ue,onInputCompositionStart:ve,onInputCompositionEnd:pe},ze=A==="multiple"||A==="tags"?n.createElement(Ht,(0,U.A)({},e,Ke)):n.createElement(Ot,(0,U.A)({},e,Ke));return n.createElement("div",{ref:re,className:"".concat(c,"-selector"),onClick:Xe,onMouseDown:Ve},ze)},en=n.forwardRef(qt);en.displayName="Selector";var tn=en,wt=r(77380),mn=["prefixCls","disabled","visible","children","popupElement","containerWidth","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],jt=function(e){var i=e===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:i,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:i,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:i,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:i,adjustY:1}}}}
1,hn=function(e,i){var a=e.prefixCls,v=e.disabled,c=e.visible,b=e.children,A=e.popupElement,O=e.containerWidth,T=e.animation,B=e.transitionName,E=e.dropdownStyle,V=e.dropdownClassName,w=e.direction,Y=w===void 0?"ltr":w,re=e.placement,De=e.dropdownMatchSelectWidth,le=e.dropdownRender,ce=e.dropdownAlign,Ce=e.getPopupContainer,ke=e.empty,Ne=e.getTriggerDOMNode,X=e.onPopupVisibleChange,Be=e.onPopupMouseEnter,ve=(0,ye.A)(e,mn),pe="".concat(a,"-dropdown"),Ee=A;le&&(Ee=le(A));var Ue=n.useMemo(function(){return jt(De)},[De]),Xe=T?"".concat(pe,"-").concat(T):B,Ve=n.useRef(null);n.useImperativeHandle(i,function(){return{getPopupElement:function(){return Ve.current}}});var Ke=(0,d.A)({minWidth:O},E);return typeof De=="number"?Ke.width=De:De&&(Ke.width=O),n.createElement(wt.A,(0,U.A)({},ve,{showAction:X?["click"]:[],hideAction:X?["click"]:[],popupPlacement:re||(Y==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Ue,prefixCls:pe,popupTransitionName:Xe,popup:n.createElement("div",{ref:Ve,onMouseEnter:Be},Ee),popupAlign:ce,popupVisible:c,getPopupContainer:Ce,popupClassName:l()(V,(0,h.A)({},"".concat(pe,"-empty"),ke)),popupStyle:Ke,getTriggerDOMNode:Ne,onPopupVisibleChange:X}),b)},at=n.forwardRef(hn);at.displayName="SelectTrigger";var o=at,p=r(35945);function s(t,e){var i=t.key,a;return"value"in t&&(a=t.value),i!=null?i:a!==void 0?a:"rc-index-key-".concat(e)}function g(t,e){var i=t||{},a=i.label,v=i.value,c=i.options;return{label:a||(e?"children":"label"),value:v||"value",options:c||"options"}}function M(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=e.fieldNames,a=e.childrenAsData,v=[],c=g(i,!1),b=c.label,A=c.value,O=c.options;function T(B,E){B.forEach(function(V){var w=V[b];if(E||!(O in V)){var Y=V[A];v.push({key:s(V,v.length),groupOption:E,data:V,label:w,value:Y})}else{var re=w;re===void 0&&a&&(re=V.label),v.push({key:s(V,v.length),group:!0,data:V,label:re}),T(V[O],!0)}})}return T(t,!1),v}function x(t){var e=(0,d.A)({},t);return"props"in e||Object.defineProperty(e,"props",{get:function(){return(0,oe.Ay)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),e}}),e}function I(t,e){if(!e||!e.length)return null;var i=!1;function a(c,b){var A=(0,p.A)(b),O=A[0],T=A.slice(1);if(!O)return[c];var B=c.split(O);return i=i||B.length>1,B.reduce(function(E,V){return[].concat((0,N.A)(E),(0,N.A)(a(V,T)))},[]).filter(function(E){return E})}var v=a(t,e);return i?v:null}var m=["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","showArrow","inputIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],k=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function P(t){return t==="tags"||t==="multiple"}var Q=n.forwardRef(function(t,e){var i,a,v=t.id,c=t.prefixCls,b=t.className,A=t.showSearch,O=t.tagRender,T=t.direction,B=t.omitDomProps,E=t.displayValues,V=t.onDisplayValuesChange,w=t.emptyOptions,Y=t.notFoundContent,re=Y===void 0?"Not Found":Y,De=t.onClear,le=t.mode,ce=t.disabled,Ce=t.loading,ke=t.getInputElement,Ne=t.getRawInputElement,X=t.open,Be=t.defaultOpen,ve=t.onDropdownVisibleChange,pe=t.activeValue,Ee=t.onActiveValueChange,Ue=t.activeDescendantId,Xe=t.searchValue,Ve=t.autoClearSearchValue,Ke=t.onSearch,ze=t.onSearchSplit,ae=t.tokenSeparators,se=t.allowClear,fe=t.showArrow,de=t.inputIcon,yt=t.clearIcon,ct=t.OptionList,rn=t.animation,Ye=t.transitionName,te=t.dropdownStyle,K=t.dropdownClassName,ie=t.dropdownMatchSelectWidth,_e=t.dropdownRender,Ae=t.dropdownAlign,Oe=t.placement,je=t.getPopupContainer,tt=t.showAction,S=tt===void 0?[]:tt,u=t.onFocus,L=t.onBlur,J=t.onKeyUp,be=t.onKeyDown,ht=t.onMouseDown,nt=(0,ye.A)(t,m),et=P(le),Te=(A!==void 0?A:et)||le==="combobox",Xt=(0,d.A)({},nt);
1k.forEach(function(ne){delete Xt[ne]}),B==null||B.forEach(function(ne){delete Xt[ne]});var At=n.useState(!1),Kt=(0,y.A)(At,2),wn=Kt[0],Bn=Kt[1];n.useEffect(function(){Bn((0,gt.A)())},[]);var sn=n.useRef(null),an=n.useRef(null),bn=n.useRef(null),on=n.useRef(null),Yt=n.useRef(null),er=Qt(),$n=(0,y.A)(er,3),kn=$n[0],Pn=$n[1],tr=$n[2];n.useImperativeHandle(e,function(){var ne,G;return{focus:(ne=on.current)===null||ne===void 0?void 0:ne.focus,blur:(G=on.current)===null||G===void 0?void 0:G.blur,scrollTo:function(Ft){var rt;return(rt=Yt.current)===null||rt===void 0?void 0:rt.scrollTo(Ft)}}});var Gt=n.useMemo(function(){var ne;if(le!=="combobox")return Xe;var G=(ne=E[0])===null||ne===void 0?void 0:ne.value;return typeof G=="string"||typeof G=="number"?String(G):""},[Xe,le,E]),Qn=le==="combobox"&&typeof ke=="function"&&ke()||null,fn=typeof Ne=="function"&&Ne(),Jn=(0,bt.xK)(an,fn==null||(i=fn.props)===null||i===void 0?void 0:i.ref),Zn=(0,me.A)(void 0,{defaultValue:Be,value:X}),Vn=(0,y.A)(Zn,2),Xn=Vn[0],Yn=Vn[1],st=Xn,qn=!re&&w;(ce||qn&&st&&le==="combobox")&&(st=!1);var Dn=qn?!1:st,W=n.useCallback(function(ne){var G=ne!==void 0?ne:!st;ce||(Yn(G),st!==G&&(ve==null||ve(G)))},[ce,st,Yn,ve]),Z=n.useMemo(function(){return(ae||[]).some(function(ne){return[`
2`,`\r
3`].includes(ne)})},[ae]),j=function(G,Mt,Ft){var rt=!0,Wt=G;Ee==null||Ee(null);var ln=Ft?null:I(G,ae);return le!=="combobox"&&ln&&(Wt="",ze==null||ze(ln),W(!1),rt=!1),Ke&&Gt!==Wt&&Ke(Wt,{source:Mt?"typing":"effect"}),rt},ue=function(G){!G||!G.trim()||Ke(G,{source:"submit"})};n.useEffect(function(){!st&&!et&&le!=="combobox"&&j("",!1,!1)},[st]),n.useEffect(function(){Xn&&ce&&Yn(!1),ce&&Pn(!1)},[ce]);var $e=pt(),Ge=(0,y.A)($e,2),Rn=Ge[0],dn=Ge[1],Kn=function(G){var Mt=Rn(),Ft=G.which;if(Ft===F.A.ENTER&&(le!=="combobox"&&G.preventDefault(),st||W(!0)),dn(!!Gt),Ft===F.A.BACKSPACE&&!Mt&&et&&!Gt&&E.length){for(var rt=(0,N.A)(E),Wt=null,ln=rt.length-1;ln>=0;ln-=1){var Gn=rt[ln];if(!Gn.disabled){rt.splice(ln,1),Wt=Gn;break}}Wt&&V(rt,{type:"remove",values:[Wt]})}for(var _n=arguments.length,jn=new Array(_n>1?_n-1:0),Tn=1;Tn<_n;Tn++)jn[Tn-1]=arguments[Tn];if(st&&Yt.current){var dr;(dr=Yt.current).onKeyDown.apply(dr,[G].concat(jn))}be==null||be.apply(void 0,[G].concat(jn))},Et=function(G){for(var Mt=arguments.length,Ft=new Array(Mt>1?Mt-1:0),rt=1;rt<Mt;rt++)Ft[rt-1]=arguments[rt];if(st&&Yt.current){var Wt;(Wt=Yt.current).onKeyUp.apply(Wt,[G].concat(Ft))}J==null||J.apply(void 0,[G].concat(Ft))},xn=function(G){var Mt=E.filter(function(Ft){return Ft!==G});V(Mt,{type:"remove",values:[G]})},Hn=n.useRef(!1),nr=function(){Pn(!0),ce||(u&&!Hn.current&&u.apply(void 0,arguments),S.includes("focus")&&W(!0)),Hn.current=!0},ar=function(){Pn(!1,function(){Hn.current=!1,W(!1)}),!ce&&(Gt&&(le==="tags"?Ke(Gt,{source:"submit"}):le==="multiple"&&Ke("",{source:"blur"})),L&&L.apply(void 0,arguments))},vn=[];n.useEffect(function(){return function(){vn.forEach(function(ne){return clearTimeout(ne)}),vn.splice(0,vn.length)}},[]);var yn=function(G){var Mt,Ft=G.target,rt=(Mt=bn.current)===null||Mt===void 0?void 0:Mt.getPopupElement();if(rt&&rt.contains(Ft)){var Wt=setTimeout(function(){var jn=vn.indexOf(Wt);if(jn!==-1&&vn.splice(jn,1),tr(),!wn&&!rt.contains(document.activeElement)){var Tn;(Tn=on.current)===null||Tn===void 0||Tn.focus()}});vn.push(Wt)}for(var ln=arguments.length,Gn=new Array(ln>1?ln-1:0),_n=1;_n<ln;_n++)Gn[_n-1]=arguments[_n];ht==null||ht.apply(void 0,[G].concat(Gn))},vr=n.useState(null),or=(0,y.A)(vr,2),lr=or[0],mr=or[1],hr=n.useState({}),gr=(0,y.A)(hr,2),pr=gr[1];function Sr(){pr({})}(0,Dt.A)(function(){if(Dn){var ne,G=Math.ceil((ne=sn.current)===null||ne===void 0?void 0:ne.offsetWidth);lr!==G&&!Number.isNaN(G)&&mr(G)}},[Dn]);var ir;fn&&(ir=function(G){W(G)}),Me(function(){var ne;return[sn.current,(ne=bn.current)===null||ne===void 0?void 0:ne.getPopupElement()]},Dn,W,!!fn);var Cr=n.useMemo(function(){return(0,d.A)((0,d.A)({},t),{},{notFoundContent:re,open:st,triggerOpen:Dn,id:v,showSearch:Te,multiple:et,toggleOpen:W})},[t,re,Dn,st,v,Te,et,W]),ur=fe!==void 0?fe:Ce||!et&&le!=="combobox",cr;ur&&(cr=n.createElement(Fe,{className:l()("".concat(c,"-arrow"),(0,h.A)({},"".concat(c,"-arrow-loading"),Ce)),customizeIcon:de,customizeIconProps:{loading:Ce,searchValue:Gt,open:st,focused:kn,showSearch:Te}}));var sr,Ar=function(){var G;
3De==null||De(),(G=on.current)===null||G===void 0||G.focus(),V([],{type:"clear",values:E}),j("",!1,!1)};!ce&&se&&(E.length||Gt)&&!(le==="combobox"&&Gt==="")&&(sr=n.createElement(Fe,{className:"".concat(c,"-clear"),onMouseDown:Ar,customizeIcon:yt},"\xD7"));var Er=n.createElement(ct,{ref:Yt}),br=l()(c,b,(a={},(0,h.A)(a,"".concat(c,"-focused"),kn),(0,h.A)(a,"".concat(c,"-multiple"),et),(0,h.A)(a,"".concat(c,"-single"),!et),(0,h.A)(a,"".concat(c,"-allow-clear"),se),(0,h.A)(a,"".concat(c,"-show-arrow"),ur),(0,h.A)(a,"".concat(c,"-disabled"),ce),(0,h.A)(a,"".concat(c,"-loading"),Ce),(0,h.A)(a,"".concat(c,"-open"),st),(0,h.A)(a,"".concat(c,"-customize-input"),Qn),(0,h.A)(a,"".concat(c,"-show-search"),Te),a)),fr=n.createElement(o,{ref:bn,disabled:ce,prefixCls:c,visible:Dn,popupElement:Er,containerWidth:lr,animation:rn,transitionName:Ye,dropdownStyle:te,dropdownClassName:K,direction:T,dropdownMatchSelectWidth:ie,dropdownRender:_e,dropdownAlign:Ae,placement:Oe,getPopupContainer:je,empty:w,getTriggerDOMNode:function(){return an.current},onPopupVisibleChange:ir,onPopupMouseEnter:Sr},fn?n.cloneElement(fn,{ref:Jn}):n.createElement(tn,(0,U.A)({},t,{domRef:an,prefixCls:c,inputElement:Qn,ref:on,id:v,showSearch:Te,autoClearSearchValue:Ve,mode:le,activeDescendantId:Ue,tagRender:O,values:E,open:st,onToggleOpen:W,activeValue:pe,searchValue:Gt,onSearch:j,onSearchSubmit:ue,onRemove:xn,tokenWithEnter:Z}))),rr;return fn?rr=fr:rr=n.createElement("div",(0,U.A)({className:br},Xt,{ref:sn,onMouseDown:yn,onKeyDown:Kn,onKeyUp:Et,onFocus:nr,onBlur:ar}),kn&&!st&&n.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(E.map(function(ne){var G=ne.label,Mt=ne.value;return["number","string"].includes((0,R.A)(G))?G:Mt}).join(", "))),fr,cr,sr),n.createElement(Ut.Provider,{value:Cr},rr)}),f=Q,z=(function(t,e){var i=n.useRef({values:new Map,options:new Map}),a=n.useMemo(function(){var c=i.current,b=c.values,A=c.options,O=t.map(function(E){if(E.label===void 0){var V;return(0,d.A)((0,d.A)({},E),{},{label:(V=b.get(E.value))===null||V===void 0?void 0:V.label})}return E}),T=new Map,B=new Map;return O.forEach(function(E){T.set(E.value,E),B.set(E.value,e.get(E.value)||A.get(E.value))}),i.current.values=T,i.current.options=B,O},[t,e]),v=n.useCallback(function(c){return e.get(c)||i.current.options.get(c)},[e]);return[a,v]});r.dn(z);function C(t,e){return Rt(t).join("").toUpperCase().includes(e)}var D=(function(t,e,i,a,v){return n.useMemo(function(){if(!i||a===!1)return t;var c=e.options,b=e.label,A=e.value,O=[],T=typeof a=="function",B=i.toUpperCase(),E=T?a:function(w,Y){return v?C(Y[v],B):Y[c]?C(Y[b!=="children"?b:"label"],B):C(Y[A],B)},V=T?function(w){return x(w)}:function(w){return w};return t.forEach(function(w){if(w[c]){var Y=E(i,V(w));if(Y)O.push(w);else{var re=w[c].filter(function(De){return E(i,V(De))});re.length&&O.push((0,d.A)((0,d.A)({},w),{},(0,h.A)({},c,re)))}return}E(i,V(w))&&O.push(w)}),O},[t,a,v,i,e])});r.dn(D);var _=r(49845),ge=r(20824),Se=["children","value"],H=["children"];function Ie(t){var e=t,i=e.key,a=e.props,v=a.children,c=a.value,b=(0,ye.A)(a,Se);return(0,d.A)({key:i,value:c!==void 0?c:i,children:v},b)}function we(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,ge.A)(t).map(function(i,a){if(!n.isValidElement(i)||!i.type)return null;var v=i,c=v.type.isSelectOptGroup,b=v.key,A=v.props,O=A.children,T=(0,ye.A)(A,H);return e||!c?Ie(i):(0,d.A)((0,d.A)({key:"__RC_SELECT_GRP__".concat(b===null?a:b,"__"),label:b},T),{},{options:we(O)})}).filter(function(i){return i})}function ot(t,e,i,a,v){return n.useMemo(function(){var c=t,b=!t;b&&(c=we(e));var A=new Map,O=new Map,T=function(V,w,Y){Y&&typeof Y=="string"&&V.set(w[Y],w)};function B(E){for(var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,w=0;w<E.length;w+=1){var Y=E[w];!Y[i.options]||V?(A.set(Y[i.value],Y),T(O,Y,i.label),T(O,Y,a),T(O,Y,v)):B(Y[i.options],!0)}}return B(c),{options:c,valueOptions:A,labelOptions:O}},[t,e,i,a,v])}function lt(t){var e=n.useRef();e.current=t;var i=n.useCallback(function(){return e.current.apply(e,arguments)},[]);return i}var Pe=function(){return null};Pe.isSelectOptGroup=!0;var it=Pe,St=function(){return null};St.isSelectOption=!0;var dt=St,Pt=r(50707),cn=r(86578),kt=r(41764);function gn(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var pn=n.createContext(null),vt=pn,Sn=["disabled","title","children","style","className"];function Ct(t){return typeof t=="string"||typeof t=="number"}var Cn=function(e,i){var a=zt(),v=a.prefixCls,c=a.id,b=a.open,A=a.multiple,O=
3a.mode,T=a.searchValue,B=a.toggleOpen,E=a.notFoundContent,V=a.onPopupScroll,w=n.useContext(vt),Y=w.flattenOptions,re=w.onActiveValue,De=w.defaultActiveFirstOption,le=w.onSelect,ce=w.menuItemSelectedIcon,Ce=w.rawValues,ke=w.fieldNames,Ne=w.virtual,X=w.listHeight,Be=w.listItemHeight,ve="".concat(v,"-item"),pe=(0,cn.A)(function(){return Y},[b,Y],function(te,K){return K[0]&&te[1]!==K[1]}),Ee=n.useRef(null),Ue=function(K){K.preventDefault()},Xe=function(K){Ee.current&&Ee.current.scrollTo(typeof K=="number"?{index:K}:K)},Ve=function(K){for(var ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,_e=pe.length,Ae=0;Ae<_e;Ae+=1){var Oe=(K+Ae*ie+_e)%_e,je=pe[Oe],tt=je.group,S=je.data;if(!tt&&!S.disabled)return Oe}return-1},Ke=n.useState(function(){return Ve(0)}),ze=(0,y.A)(Ke,2),ae=ze[0],se=ze[1],fe=function(K){var ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;se(K);var _e={source:ie?"keyboard":"mouse"},Ae=pe[K];if(!Ae){re(null,-1,_e);return}re(Ae.value,K,_e)};(0,n.useEffect)(function(){fe(De!==!1?Ve(0):-1)},[pe.length,T]);var de=n.useCallback(function(te){return Ce.has(te)&&O!=="combobox"},[O,(0,N.A)(Ce).toString(),Ce.size]);(0,n.useEffect)(function(){var te=setTimeout(function(){if(!A&&b&&Ce.size===1){var ie=Array.from(Ce)[0],_e=pe.findIndex(function(Ae){var Oe=Ae.data;return Oe.value===ie});_e!==-1&&(fe(_e),Xe(_e))}});if(b){var K;(K=Ee.current)===null||K===void 0||K.scrollTo(void 0)}return function(){return clearTimeout(te)}},[b,T]);var yt=function(K){K!==void 0&&le(K,{selected:!Ce.has(K)}),A||B(!1)};if(n.useImperativeHandle(i,function(){return{onKeyDown:function(K){var ie=K.which,_e=K.ctrlKey;switch(ie){case F.A.N:case F.A.P:case F.A.UP:case F.A.DOWN:{var Ae=0;if(ie===F.A.UP?Ae=-1:ie===F.A.DOWN?Ae=1:gn()&&_e&&(ie===F.A.N?Ae=1:ie===F.A.P&&(Ae=-1)),Ae!==0){var Oe=Ve(ae+Ae,Ae);Xe(Oe),fe(Oe,!0)}break}case F.A.ENTER:{var je=pe[ae];je&&!je.data.disabled?yt(je.value):yt(void 0),b&&K.preventDefault();break}case F.A.ESC:B(!1),b&&K.stopPropagation()}},onKeyUp:function(){},scrollTo:function(K){Xe(K)}}}),pe.length===0)return n.createElement("div",{role:"listbox",id:"".concat(c,"_list"),className:"".concat(ve,"-empty"),onMouseDown:Ue},E);var ct=Object.keys(ke).map(function(te){return ke[te]}),rn=function(K){return K.label},Ye=function(K){var ie=pe[K];if(!ie)return null;var _e=ie.data||{},Ae=_e.value,Oe=ie.group,je=(0,he.A)(_e,!0),tt=rn(ie);return ie?n.createElement("div",(0,U.A)({"aria-label":typeof tt=="string"&&!Oe?tt:null},je,{key:K,role:Oe?"presentation":"option",id:"".concat(c,"_list_").concat(K),"aria-selected":de(Ae)}),Ae):null};return n.createElement(n.Fragment,null,n.createElement("div",{role:"listbox",id:"".concat(c,"_list"),style:{height:0,width:0,overflow:"hidden"}},Ye(ae-1),Ye(ae),Ye(ae+1)),n.createElement(kt.A,{itemKey:"key",ref:Ee,data:pe,height:X,itemHeight:Be,fullHeight:!1,onMouseDown:Ue,onScroll:V,virtual:Ne},function(te,K){var ie,_e=te.group,Ae=te.groupOption,Oe=te.data,je=te.label,tt=te.value,S=Oe.key;if(_e){var u,L=(u=Oe.title)!==null&&u!==void 0?u:Ct(je)?je.toString():void 0;return n.createElement("div",{className:l()(ve,"".concat(ve,"-group")),title:L},je!==void 0?je:S)}var J=Oe.disabled,be=Oe.title,ht=Oe.children,nt=Oe.style,et=Oe.className,Te=(0,ye.A)(Oe,Sn),Xt=(0,Pt.A)(Te,ct),At=de(tt),Kt="".concat(ve,"-option"),wn=l()(ve,Kt,et,(ie={},(0,h.A)(ie,"".concat(Kt,"-grouped"),Ae),(0,h.A)(ie,"".concat(Kt,"-active"),ae===K&&!J),(0,h.A)(ie,"".concat(Kt,"-disabled"),J),(0,h.A)(ie,"".concat(Kt,"-selected"),At),ie)),Bn=rn(te),sn=!ce||typeof ce=="function"||At,an=typeof Bn=="number"?Bn:Bn||tt,bn=Ct(an)?an.toString():void 0;return be!==void 0&&(bn=be),n.createElement("div",(0,U.A)({},(0,he.A)(Xt),{"aria-selected":At,className:wn,title:bn,onMouseMove:function(){ae===K||J||fe(K)},onClick:function(){J||yt(tt)},style:nt}),n.createElement("div",{className:"".concat(Kt,"-content")},an),n.isValidElement(ce)||At,sn&&n.createElement(Fe,{className:"".concat(ve,"-option-state"),customizeIcon:ce,customizeIconProps:{isSelected:At}},At?"\u2713":null))}))},Lt=n.forwardRef(Cn);Lt.displayName="OptionList";var Nt=Lt,Mn,qe,Je,An,In,Fn,nn,Bt;function Wn(t){var e=t.mode,i=t.options,a=t.children,v=t.backfill,c=t.allowClear,b=t.placeholder,A=t.getIn
3putElement,O=t.showSearch,T=t.onSearch,B=t.defaultOpen,E=t.autoFocus,V=t.labelInValue,w=t.value,Y=t.inputValue,re=t.optionLabelProp,De=Fn(e),le=O!==void 0?O:De||e==="combobox",ce=i||Bt(a);if(Je(e!=="tags"||ce.every(function(X){return!X.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),e==="tags"||e==="combobox"){var Ce=ce.some(function(X){return X.options?X.options.some(function(Be){return typeof("value"in Be?Be.value:Be.key)=="number"}):typeof("value"in X?X.value:X.key)=="number"});Je(!Ce,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Je(e!=="combobox"||!re,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Je(e==="combobox"||!v,"`backfill` only works with `combobox` mode."),Je(e==="combobox"||!A,"`getInputElement` only work with `combobox` mode."),An(e!=="combobox"||!A||!c||!b,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),T&&!le&&e!=="combobox"&&e!=="tags"&&Je(!1,"`onSearch` should work with `showSearch` instead of use alone."),An(!B||E,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),w!=null){var ke=nn(w);Je(!V||ke.every(function(X){return Mn(X)==="object"&&("key"in X||"value"in X)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Je(!De||Array.isArray(w),"`value` should be array when `mode` is `multiple` or `tags`")}if(a){var Ne=null;qe(a).some(function(X){if(!In.isValidElement(X)||!X.type)return!1;var Be=X,ve=Be.type;if(ve.isSelectOption)return!1;if(ve.isSelectOptGroup){var pe=qe(X.props.children).every(function(Ee){return!In.isValidElement(Ee)||!X.type||Ee.type.isSelectOption?!0:(Ne=Ee.type,!1)});return!pe}return Ne=ve,!0}),Ne&&Je(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Ne.displayName||Ne.name||Ne,"`.")),Je(Y===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function Vt(t,e){if(t){var i=function a(v){for(var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,b=0;b<v.length;b++){var A=v[b];if(A[e==null?void 0:e.value]===null)return Je(!1,"`value` in Select options should not be `null`."),!0;if(!c&&Array.isArray(A[e==null?void 0:e.options])&&a(A[e==null?void 0:e.options],!0))break}};i(t)}}var mt=null,ut=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange"],En=["inputValue"];function Ln(t){return!t||(0,R.A)(t)!=="object"}var On=n.forwardRef(function(t,e){var i=t.id,a=t.mode,v=t.prefixCls,c=v===void 0?"rc-select":v,b=t.backfill,A=t.fieldNames,O=t.inputValue,T=t.searchValue,B=t.onSearch,E=t.autoClearSearchValue,V=E===void 0?!0:E,w=t.onSelect,Y=t.onDeselect,re=t.dropdownMatchSelectWidth,De=re===void 0?!0:re,le=t.filterOption,ce=t.filterSort,Ce=t.optionFilterProp,ke=t.optionLabelProp,Ne=t.options,X=t.children,Be=t.defaultActiveFirstOption,ve=t.menuItemSelectedIcon,pe=t.virtual,Ee=t.listHeight,Ue=Ee===void 0?200:Ee,Xe=t.listItemHeight,Ve=Xe===void 0?20:Xe,Ke=t.value,ze=t.defaultValue,ae=t.labelInValue,se=t.onChange,fe=(0,ye.A)(t,ut),de=(0,_.Ay)(i),yt=P(a),ct=!!(!Ne&&X),rn=n.useMemo(function(){return le===void 0&&a==="combobox"?!1:le},[le,a]),Ye=n.useMemo(function(){return g(A,ct)},[JSON.stringify(A),ct]),te=(0,me.A)("",{value:T!==void 0?T:O,postState:function(Z){return Z||""}}),K=(0,y.A)(te,2),ie=K[0],_e=K[1],Ae=ot(Ne,X,Ye,Ce,ke),Oe=Ae.valueOptions,je=Ae.labelOptions,tt=Ae.options,S=n.useCallback(function(W){var Z=Rt(W);return Z.map(function(j){var ue,$e,Ge,Rn,dn;if(Ln(j))ue=j;else{var Kn;Ge=j.key,$e=j.label,ue=(Kn=j.value)!==null&&Kn!==void 0?Kn:Ge}var Et=Oe.get(ue);if(Et){var xn;if($e===void 0&&($e=Et==null?void 0:Et[ke||Ye.label]),Ge===void 0&&(Ge=(xn=Et==null?void 0:Et.key)!==null&&xn!==void 0?xn:ue),Rn=Et==null?void 0:Et.disabled,dn=Et==null?void 0:Et.title,0)var Hn}return{label:$e,value:ue,key:Ge,disabled:Rn,title:dn}})},[Ye,ke,Oe]),u=(0,me.A)(ze,{value:Ke}),L=(0,y.A)(u,2),J=L[0],be=L[1],ht=n.useMemo(function(){var W,Z=S(J);return a==="combobox"&&!((W=Z[0])!==null&&W!==void 0&&W.value)?[]:Z},[J,S,a]),nt=z(ht,Oe),et=(0,y.A)(nt,2),Te=et[0],Xt=et[1],At=n.useMemo(function(){if(!a&&Te.length===1){var W=Te[0];if(W.value===null&&(W.label===null||W.label===void 0))return[]}return Te.map(function(Z){var j;return(0,d.A)((0,d.A)({},Z),{}
3,{label:(j=Z.label)!==null&&j!==void 0?j:Z.value})})},[a,Te]),Kt=n.useMemo(function(){return new Set(Te.map(function(W){return W.value}))},[Te]);n.useEffect(function(){if(a==="combobox"){var W,Z=(W=Te[0])===null||W===void 0?void 0:W.value;_e(xe(Z)?String(Z):"")}},[Te]);var wn=lt(function(W,Z){var j,ue=Z!=null?Z:W;return j={},(0,h.A)(j,Ye.value,W),(0,h.A)(j,Ye.label,ue),j}),Bn=n.useMemo(function(){if(a!=="tags")return tt;var W=(0,N.A)(tt),Z=function(ue){return Oe.has(ue)};return(0,N.A)(Te).sort(function(j,ue){return j.value<ue.value?-1:1}).forEach(function(j){var ue=j.value;Z(ue)||W.push(wn(ue,j.label))}),W},[wn,tt,Oe,Te,a]),sn=D(Bn,Ye,ie,rn,Ce),an=n.useMemo(function(){return a!=="tags"||!ie||sn.some(function(W){return W[Ce||"value"]===ie})?sn:[wn(ie)].concat((0,N.A)(sn))},[wn,Ce,a,sn,ie]),bn=n.useMemo(function(){return ce?(0,N.A)(an).sort(function(W,Z){return ce(W,Z)}):an},[an,ce]),on=n.useMemo(function(){return M(bn,{fieldNames:Ye,childrenAsData:ct})},[bn,Ye,ct]),Yt=function(Z){var j=S(Z);if(be(j),se&&(j.length!==Te.length||j.some(function(Ge,Rn){var dn;return((dn=Te[Rn])===null||dn===void 0?void 0:dn.value)!==(Ge==null?void 0:Ge.value)}))){var ue=ae?j:j.map(function(Ge){return Ge.value}),$e=j.map(function(Ge){return x(Xt(Ge.value))});se(yt?ue:ue[0],yt?$e:$e[0])}},er=n.useState(null),$n=(0,y.A)(er,2),kn=$n[0],Pn=$n[1],tr=n.useState(0),Gt=(0,y.A)(tr,2),Qn=Gt[0],fn=Gt[1],Jn=Be!==void 0?Be:a!=="combobox",Zn=n.useCallback(function(W,Z){var j=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ue=j.source,$e=ue===void 0?"keyboard":ue;fn(Z),b&&a==="combobox"&&W!==null&&$e==="keyboard"&&Pn(String(W))},[b,a]),Vn=function(Z,j,ue){var $e=function(){var vn,yn=Xt(Z);return[ae?{label:yn==null?void 0:yn[Ye.label],value:Z,key:(vn=yn==null?void 0:yn.key)!==null&&vn!==void 0?vn:Z}:Z,x(yn)]};if(j&&w){var Ge=$e(),Rn=(0,y.A)(Ge,2),dn=Rn[0],Kn=Rn[1];w(dn,Kn)}else if(!j&&Y&&ue!=="clear"){var Et=$e(),xn=(0,y.A)(Et,2),Hn=xn[0],nr=xn[1];Y(Hn,nr)}},Xn=lt(function(W,Z){var j,ue=yt?Z.selected:!0;ue?j=yt?[].concat((0,N.A)(Te),[W]):[W]:j=Te.filter(function($e){return $e.value!==W}),Yt(j),Vn(W,ue),a==="combobox"?Pn(""):(!P||V)&&(_e(""),Pn(""))}),Yn=function(Z,j){Yt(Z);var ue=j.type,$e=j.values;(ue==="remove"||ue==="clear")&&$e.forEach(function(Ge){Vn(Ge.value,!1,ue)})},st=function(Z,j){if(_e(Z),Pn(null),j.source==="submit"){var ue=(Z||"").trim();if(ue){var $e=Array.from(new Set([].concat((0,N.A)(Kt),[ue])));Yt($e),Vn(ue,!0),_e("")}return}j.source!=="blur"&&(a==="combobox"&&Yt(Z),B==null||B(Z))},qn=function(Z){var j=Z;a!=="tags"&&(j=Z.map(function($e){var Ge=je.get($e);return Ge==null?void 0:Ge.value}).filter(function($e){return $e!==void 0}));var ue=Array.from(new Set([].concat((0,N.A)(Kt),(0,N.A)(j))));Yt(ue),ue.forEach(function($e){Vn($e,!0)})},Dn=n.useMemo(function(){var W=pe!==!1&&De!==!1;return(0,d.A)((0,d.A)({},Ae),{},{flattenOptions:on,onActiveValue:Zn,defaultActiveFirstOption:Jn,onSelect:Xn,menuItemSelectedIcon:ve,rawValues:Kt,fieldNames:Ye,virtual:W,listHeight:Ue,listItemHeight:Ve,childrenAsData:ct})},[Ae,on,Zn,Jn,Xn,ve,Kt,Ye,pe,De,Ue,Ve,ct]);return n.createElement(vt.Provider,{value:Dn},n.createElement(f,(0,U.A)({},fe,{id:de,prefixCls:c,ref:e,omitDomProps:En,mode:a,displayValues:At,onDisplayValuesChange:Yn,searchValue:ie,onSearch:st,autoClearSearchValue:V,onSearchSplit:qn,dropdownMatchSelectWidth:De,OptionList:Nt,emptyOptions:!on.length,activeValue:kn,activeDescendantId:"".concat(de,"_list_").concat(Qn)})))}),Nn=On;Nn.Option=dt,Nn.OptGroup=it;var Un=Nn,zn=Un}),41764:(function(It,Re,r){r.d(Re,{A:function(){return at}});var U=r(65062),N=r(10774),h=r(98477),d=r(20873),y=r(73159),ye=r(18211),R=r(97500),me=r.n(R),oe=r(72166),n=r(49816),Qe=r(41683),l=r(37953),Dt=r(88705),gt=l.forwardRef(function(o,p){var s=o.height,g=o.offsetY,M=o.offsetX,x=o.children,I=o.prefixCls,m=o.onInnerResize,k=o.innerProps,P=o.rtl,Q=o.extra,f={},z={display:"flex",flexDirection:"column"};return g!==void 0&&(f={height:s,position:"relative",overflow:"hidden"},z=(0,h.A)((0,h.A)({},z),{},(0,d.A)((0,d.A)((0,d.A)((0,d.A)((0,d.A)({transform:"translateY(".concat(g,"px)")},P?"marginRight":"marginLeft",-M),"position","absolute"),"left",0),"right",0),"top",0))),l.createElement("div",{style:f},l.createElement(oe.A,{onResize:function(D){var _=D.offsetHeight;_&&m&&m()}},l.createElement("div",(0,U.A)({style:z,className:me()((0,d.A)({},"".concat(I,"-holder-inner"),I)),ref:p},k),x,Q)))});gt.displayName="Filler";var F=gt;function bt(o){var p=o.children,s=o.setRef,g=l.useCallback(function(M){s(M)},[]);return l.cloneElement(p,{ref:g})}function Ut(o,p,s,g,M,x,I,m){var k=m.getKey;return o.slice(p,s+1).map(function(P,Q){var f=p+Q,z=I(P,f,{style:{width:g},offsetX:M}),C=k(P);return l.createElement(bt,{key:C,setRef:function(_){return x(P,_)}},z)})}function zt(o,p,s,g){var M=s-o,x=p-s,I=Math.min(M,x)*2;if(g<=I){var m=Math.floor(g/2);return g%2?s+m+1:s-m}return M>x?s-(g-x):s+(g-M)}
3function Qt(o,p,s){var g=o.length,M=p.length,x,I;if(g===0&&M===0)return null;g<M?(x=o,I=p):(x=p,I=o);var m={__EMPTY_ITEM__:!0};function k(D){return D!==void 0?s(D):m}for(var P=null,Q=Math.abs(g-M)!==1,f=0;f<I.length;f+=1){var z=k(x[f]),C=k(I[f]);if(z!==C){P=f,Q=Q||z!==k(I[f+1]);break}}return P===null?null:{index:P,multiple:Q}}function pt(o,p,s){var g=l.useState(o),M=(0,y.A)(g,2),x=M[0],I=M[1],m=l.useState(null),k=(0,y.A)(m,2),P=k[0],Q=k[1];return l.useEffect(function(){var f=Qt(x||[],o||[],p);(f==null?void 0:f.index)!==void 0&&(s==null||s(f.index),Q(o[f.index])),I(o)},[o]),[P]}var Me=r(37745),he=(typeof navigator=="undefined"?"undefined":(0,N.A)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),Ze=he,Le=(function(o,p,s,g){var M=(0,l.useRef)(!1),x=(0,l.useRef)(null);function I(){clearTimeout(x.current),M.current=!0,x.current=setTimeout(function(){M.current=!1},50)}var m=(0,l.useRef)({top:o,bottom:p,left:s,right:g});return m.current.top=o,m.current.bottom=p,m.current.left=s,m.current.right=g,function(k,P){var Q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,f=k?P<0&&m.current.left||P>0&&m.current.right:P<0&&m.current.top||P>0&&m.current.bottom;return Q&&f?(clearTimeout(x.current),M.current=!1):(!f||M.current)&&I(),!M.current&&f}});r.dn(Le);function Fe(o,p,s,g,M,x,I){var m=(0,l.useRef)(0),k=(0,l.useRef)(null),P=(0,l.useRef)(null),Q=(0,l.useRef)(!1),f=Le(p,s,g,M);function z(H,Ie){if(Me.A.cancel(k.current),!f(!1,Ie)){var we=H;if(!we._virtualHandled)we._virtualHandled=!0;else return;m.current+=Ie,P.current=Ie,Ze||we.preventDefault(),k.current=(0,Me.A)(function(){var ot=Q.current?10:1;I(m.current*ot,!1),m.current=0})}}function C(H,Ie){I(Ie,!0),Ze||H.preventDefault()}var D=(0,l.useRef)(null),_=(0,l.useRef)(null);function ge(H){if(o){Me.A.cancel(_.current),_.current=(0,Me.A)(function(){D.current=null},2);var Ie=H.deltaX,we=H.deltaY,ot=H.shiftKey,lt=Ie,Pe=we;(D.current==="sx"||!D.current&&ot&&we&&!Ie)&&(lt=we,Pe=0,D.current="sx");var it=Math.abs(lt),St=Math.abs(Pe);D.current===null&&(D.current=x&&it>St?"x":"y"),D.current==="y"?z(H,Pe):C(H,lt)}}function Se(H){o&&(Q.current=H.detail===P.current)}return[ge,Se]}function Jt(o,p,s,g){var M=l.useMemo(function(){return[new Map,[]]},[o,s.id,g]),x=(0,y.A)(M,2),I=x[0],m=x[1],k=function(Q){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Q,z=I.get(Q),C=I.get(f);if(z===void 0||C===void 0)for(var D=o.length,_=m.length;_<D;_+=1){var ge,Se=o[_],H=p(Se);I.set(H,_);var Ie=(ge=s.get(H))!==null&&ge!==void 0?ge:g;if(m[_]=(m[_-1]||0)+Ie,H===Q&&(z=_),H===f&&(C=_),z!==void 0&&C!==void 0)break}return{top:m[z-1]||0,bottom:m[C]}};return k}var ft=r(71267),$t=r(60919),Rt=(function(){function o(){(0,ft.A)(this,o),(0,d.A)(this,"maps",void 0),(0,d.A)(this,"id",0),(0,d.A)(this,"diffRecords",new Map),this.maps=Object.create(null)}return(0,$t.A)(o,[{key:"set",value:function(s,g){this.diffRecords.set(s,this.maps[s]),this.maps[s]=g,this.id+=1}},{key:"get",value:function(s){return this.maps[s]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),o})(),un=Rt;function $(o){var p=parseFloat(o);return isNaN(p)?0:p}function xe(o,p,s){var g=l.useState(0),M=(0,y.A)(g,2),x=M[0],I=M[1],m=(0,l.useRef)(new Map),k=(0,l.useRef)(new un),P=(0,l.useRef)(0);function Q(){P.current+=1}function f(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Q();var D=function(){var Se=!1;m.current.forEach(function(H,Ie){if(H&&H.offsetParent){var we=H.offsetHeight,ot=getComputedStyle(H),lt=ot.marginTop,Pe=ot.marginBottom,it=$(lt),St=$(Pe),dt=we+it+St;k.current.get(Ie)!==dt&&(k.current.set(Ie,dt),Se=!0)}}),Se&&I(function(H){return H+1})};if(C)D();else{P.current+=1;var _=P.current;Promise.resolve().then(function(){_===P.current&&D()})}}function z(C,D){var _=o(C),ge=m.current.get(_);D?(m.current.set(_,D),f()):m.current.delete(_),!ge!=!D&&(D?p==null||p(C):s==null||s(C))}return(0,l.useEffect)(function(){return Q},[]),[z,f,k.current,x]}var We=14/15;function ee(o,p,s){var g=(0,l.useRef)(!1),M=(0,l.useRef)(0),x=(0,l.useRef)(0),I=(0,l.useRef)(null),m=(0,l.useRef)(null),k,P=function(C){if(g.current){var D=Math.ceil(C.touches[0].pageX),_=Math.ceil(C.touches[0].pageY),ge=M.current-D,Se=x.current-_,H=Math.abs(ge)>Math.abs(Se);H?M.current=D:x.current=_;var Ie=s(H,H?ge:Se,!1,C);Ie&&C.preventDefault(),clearInterval(m.current),Ie&&(m.current=setInterval(function(){H?ge*=We:Se*=We;var we=Math.floor(H?ge:Se);(!s(H,we,!0)||Math.abs(we)<=.1)&&clearInterval(m.current)},16))}},Q=function(){g.current=!1,k()},f=function(C){k(),C.touches.length===1&&!g.current&&(g.current=!0,M.current=Math.ceil(C.touches[0].pageX),x.current=Math.ceil(C.touches[0].pageY),I.current=C.target,I.current.addEventListener("touchmove",P,{passive:!1}),I.current.addEventListener("touchend",Q,{passive:!0}))};k=function(){I.current&&(I.current.removeEventListener("touchmove",P),I.current.removeEventListener("touchend",Q))},(0,Qe.A)(function(){return o&&p.current.addEventListener("touchstart",f,{passive:!0}),function(){var z;(z=p.current)===null||z===void 0||z.removeEventListener("touchstart",f),k(),clearInterval(m.current)}},[o])}function q(o){return Math.floor(Math.pow(o,.5))}function He(o,p){var s="touches"in o?o.touches[0]:o;return s[p?"pageX":"pageY"]-window[p?"scrollX":"scrollY"]}function xt(o,p,s){l.useEffect(function(){var g=p.current;if(o&&g){var M=!1,x,I,m=function(){Me.A.cancel(x)},k=function z(){m(),x=(0,Me.A)(function(){s(I),z()})},P=function(){M=!1,m()},Q=function(C){if(!(C.target.draggable||C.button!==0)){var D=C;D._virtualHandled||(D._virtualHandled=!0,M=!0)}},f=function(C){if(M){var D=He(C,!1),_=g.getBoundingClientRect(),ge=_.top,Se=_.bottom;if(D<=ge){var H=ge-D;I=-q(H),k()}else if(D>=Se){var Ie=D-Se;I=q(Ie),k()}else m()}};return g.addEventListener("mousedown",Q),g.ownerDocument.addEventListener("mouseup",P),g.ownerDocument.addEventListener("mousemove",f),g.ownerDocument.addEventListener("dragend",P),function(){g.removeEventListener("mousedown",Q),g.ownerDocument.removeEventListener("mouseup",P),g.ownerDocument.removeEventListener("mousemove",f),g.ownerDocument.removeEventListener("dragend",P),m()}}},[o])}var _t=10;function Ht(o,p,s,g,M,x,I,m){var k=l.useRef(),P=l.useState(null),Q=(0,y.A)(P,2),f=Q[0],z=Q[1];return(0,Qe.A)(function(){if(f&&f.times<_t){if(!o.current){z(function(Cn){return(0,h.A)({},Cn)});return}x();
3var C=f.targetAlign,D=f.originAlign,_=f.index,ge=f.offset,Se=o.current.clientHeight,H=!1,Ie=C,we=null;if(Se){for(var ot=C||D,lt=0,Pe=0,it=0,St=Math.min(p.length-1,_),dt=0;dt<=St;dt+=1){var Pt=M(p[dt]);Pe=lt;var cn=s.get(Pt);it=Pe+(cn===void 0?g:cn),lt=it}for(var kt=ot==="top"?ge:Se-ge,gn=St;gn>=0;gn-=1){var pn=M(p[gn]),vt=s.get(pn);if(vt===void 0){H=!0;break}if(kt-=vt,kt<=0)break}switch(ot){case"top":we=Pe-ge;break;case"bottom":we=it-Se+ge;break;default:{var Sn=o.current.scrollTop,Ct=Sn+Se;Pe<Sn?Ie="top":it>Ct&&(Ie="bottom")}}we!==null&&I(we),we!==f.lastTop&&(H=!0)}H&&z((0,h.A)((0,h.A)({},f),{},{times:f.times+1,targetAlign:Ie,lastTop:we}))}},[f,o.current]),function(C){if(C==null){m();return}if(Me.A.cancel(k.current),typeof C=="number")I(C);else if(C&&(0,N.A)(C)==="object"){var D,_=C.align;"index"in C?D=C.index:D=p.findIndex(function(H){return M(H)===C.key});var ge=C.offset,Se=ge===void 0?0:ge;z({times:0,index:D,offset:Se,originAlign:_})}}}var Zt=l.forwardRef(function(o,p){var s=o.prefixCls,g=o.rtl,M=o.scrollOffset,x=o.scrollRange,I=o.onStartMove,m=o.onStopMove,k=o.onScroll,P=o.horizontal,Q=o.spinSize,f=o.containerSize,z=o.style,C=o.thumbStyle,D=o.showScrollBar,_=l.useState(!1),ge=(0,y.A)(_,2),Se=ge[0],H=ge[1],Ie=l.useState(null),we=(0,y.A)(Ie,2),ot=we[0],lt=we[1],Pe=l.useState(null),it=(0,y.A)(Pe,2),St=it[0],dt=it[1],Pt=!g,cn=l.useRef(),kt=l.useRef(),gn=l.useState(D),pn=(0,y.A)(gn,2),vt=pn[0],Sn=pn[1],Ct=l.useRef(),Cn=function(){D===!0||D===!1||(clearTimeout(Ct.current),Sn(!0),Ct.current=setTimeout(function(){Sn(!1)},3e3))},Lt=x-f||0,Nt=f-Q||0,Mn=l.useMemo(function(){if(M===0||Lt===0)return 0;var Vt=M/Lt;return Vt*Nt},[M,Lt,Nt]),qe=function(mt){mt.stopPropagation(),mt.preventDefault()},Je=l.useRef({top:Mn,dragging:Se,pageY:ot,startTop:St});Je.current={top:Mn,dragging:Se,pageY:ot,startTop:St};var An=function(mt){H(!0),lt(He(mt,P)),dt(Je.current.top),I(),mt.stopPropagation(),mt.preventDefault()};l.useEffect(function(){var Vt=function(Ln){Ln.preventDefault()},mt=cn.current,ut=kt.current;return mt.addEventListener("touchstart",Vt,{passive:!1}),ut.addEventListener("touchstart",An,{passive:!1}),function(){mt.removeEventListener("touchstart",Vt),ut.removeEventListener("touchstart",An)}},[]);var In=l.useRef();In.current=Lt;var Fn=l.useRef();Fn.current=Nt,l.useEffect(function(){if(Se){var Vt,mt=function(Ln){var On=Je.current,Nn=On.dragging,Un=On.pageY,zn=On.startTop;Me.A.cancel(Vt);var t=cn.current.getBoundingClientRect(),e=f/(P?t.width:t.height);if(Nn){var i=(He(Ln,P)-Un)*e,a=zn;!Pt&&P?a-=i:a+=i;var v=In.current,c=Fn.current,b=c?a/c:0,A=Math.ceil(b*v);A=Math.max(A,0),A=Math.min(A,v),Vt=(0,Me.A)(function(){k(A,P)})}},ut=function(){H(!1),m()};return window.addEventListener("mousemove",mt,{passive:!0}),window.addEventListener("touchmove",mt,{passive:!0}),window.addEventListener("mouseup",ut,{passive:!0}),window.addEventListener("touchend",ut,{passive:!0}),function(){window.removeEventListener("mousemove",mt),window.removeEventListener("touchmove",mt),window.removeEventListener("mouseup",ut),window.removeEventListener("touchend",ut),Me.A.cancel(Vt)}}},[Se]),l.useEffect(function(){return Cn(),function(){clearTimeout(Ct.current)}},[M]),l.useImperativeHandle(p,function(){return{delayHidden:Cn}});var nn="".concat(s,"-scrollbar"),Bt={position:"absolute",visibility:vt?null:"hidden"},Wn={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return P?(Object.assign(Bt,{height:8,left:0,right:0,bottom:0}),Object.assign(Wn,(0,d.A)({height:"100%",width:Q},Pt?"left":"right",Mn))):(Object.assign(Bt,(0,d.A)({width:8,top:0,bottom:0},Pt?"right":"left",0)),Object.assign(Wn,{width:"100%",height:Q,top:Mn})),l.createElement("div",{ref:cn,className:me()(nn,(0,d.A)((0,d.A)((0,d.A)({},"".concat(nn,"-horizontal"),P),"".concat(nn,"-vertical"),!P),"".concat(nn,"-visible"),vt)),style:(0,h.A)((0,h.A)({},Bt),z),onMouseDown:qe,onMouseMove:Cn},l.createElement("div",{ref:kt,className:me()("".concat(nn,"-thumb"),(0,d.A)({},"".concat(nn,"-thumb-moving"),Se)),style:(0,h.A)((0,h.A)({},Wn),C),onMouseDown:An}))}),Ot=Zt,Tt=20;function qt(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,s=o/p*o;return isNaN(s)&&(s=0),s=Math.max(s,Tt),Math.floor(s)}var en=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],tn=[],wt={overflowY:"auto",overflowAnchor:"none"};function mn(o,p){var s=o.prefixCls,g=s===void 0?"rc-virtual-list":s,M=o.className,x=o.height,I=o.itemHeight,m=o.fullHeight,k=m===void 0?!0:m,P=o.style,Q=o.data,f=o.children,z=o.itemKey,C=o.virtual,D=o.direction,_=o.scrollWidth,ge=o.component,Se=ge===void 0?"div":ge,H=o.onScroll,Ie=o.onVirtualScroll,we=o.onVisibleChange,ot=o.innerProps,lt=o.extraRender,Pe=o.styles,it=o.showScrollBar,St=it===void 0?"o
3ptional":it,dt=(0,ye.A)(o,en),Pt=l.useCallback(function(S){return typeof z=="function"?z(S):S==null?void 0:S[z]},[z]),cn=xe(Pt,null,null),kt=(0,y.A)(cn,4),gn=kt[0],pn=kt[1],vt=kt[2],Sn=kt[3],Ct=!!(C!==!1&&x&&I),Cn=l.useMemo(function(){return Object.values(vt.maps).reduce(function(S,u){return S+u},0)},[vt.id,vt.maps]),Lt=Ct&&Q&&(Math.max(I*Q.length,Cn)>x||!!_),Nt=D==="rtl",Mn=me()(g,(0,d.A)({},"".concat(g,"-rtl"),Nt),M),qe=Q||tn,Je=(0,l.useRef)(),An=(0,l.useRef)(),In=(0,l.useRef)(),Fn=(0,l.useState)(0),nn=(0,y.A)(Fn,2),Bt=nn[0],Wn=nn[1],Vt=(0,l.useState)(0),mt=(0,y.A)(Vt,2),ut=mt[0],En=mt[1],Ln=(0,l.useState)(!1),On=(0,y.A)(Ln,2),Nn=On[0],Un=On[1],zn=function(){Un(!0)},t=function(){Un(!1)},e={getKey:Pt};function i(S){Wn(function(u){var L;typeof S=="function"?L=S(u):L=S;var J=ve(L);return Je.current.scrollTop=J,J})}var a=(0,l.useRef)({start:0,end:qe.length}),v=(0,l.useRef)(),c=pt(qe,Pt),b=(0,y.A)(c,1),A=b[0];v.current=A;var O=l.useMemo(function(){if(!Ct)return{scrollHeight:void 0,start:0,end:qe.length-1,offset:void 0};if(!Lt){var S;return{scrollHeight:((S=An.current)===null||S===void 0?void 0:S.offsetHeight)||0,start:0,end:qe.length-1,offset:void 0}}for(var u=0,L,J,be,ht=qe.length,nt=0;nt<ht;nt+=1){var et=qe[nt],Te=Pt(et),Xt=vt.get(Te),At=u+(Xt===void 0?I:Xt);At>=Bt&&L===void 0&&(L=nt,J=u),At>Bt+x&&be===void 0&&(be=nt),u=At}return L===void 0&&(L=0,J=0,be=Math.ceil(x/I)),be===void 0&&(be=qe.length-1),be=Math.min(be+1,qe.length-1),{scrollHeight:u,start:L,end:be,offset:J}},[Lt,Ct,Bt,qe,Sn,x]),T=O.scrollHeight,B=O.start,E=O.end,V=O.offset;a.current.start=B,a.current.end=E,l.useLayoutEffect(function(){var S=vt.getRecord();if(S.size===1){var u=Array.from(S.keys())[0],L=S.get(u),J=qe[B];if(J&&L===void 0){var be=Pt(J);if(be===u){var ht=vt.get(u),nt=ht-I;i(function(et){return et+nt})}}}vt.resetRecord()},[T]);var w=l.useState({width:0,height:x}),Y=(0,y.A)(w,2),re=Y[0],De=Y[1],le=function(u){De({width:u.offsetWidth,height:u.offsetHeight})},ce=(0,l.useRef)(),Ce=(0,l.useRef)(),ke=l.useMemo(function(){return qt(re.width,_)},[re.width,_]),Ne=l.useMemo(function(){return qt(re.height,T)},[re.height,T]),X=T-x,Be=(0,l.useRef)(X);Be.current=X;function ve(S){var u=S;return Number.isNaN(Be.current)||(u=Math.min(u,Be.current)),u=Math.max(u,0),u}var pe=Bt<=0,Ee=Bt>=X,Ue=ut<=0,Xe=ut>=_,Ve=Le(pe,Ee,Ue,Xe),Ke=function(){return{x:Nt?-ut:ut,y:Bt}},ze=(0,l.useRef)(Ke()),ae=(0,n._q)(function(S){if(Ie){var u=(0,h.A)((0,h.A)({},Ke()),S);(ze.current.x!==u.x||ze.current.y!==u.y)&&(Ie(u),ze.current=u)}});function se(S,u){var L=S;u?((0,Dt.flushSync)(function(){En(L)}),ae()):i(L)}function fe(S){var u=S.currentTarget.scrollTop;u!==Bt&&i(u),H==null||H(S),ae()}var de=function(u){var L=u,J=_?_-re.width:0;return L=Math.max(L,0),L=Math.min(L,J),L},yt=(0,n._q)(function(S,u){u?((0,Dt.flushSync)(function(){En(function(L){var J=L+(Nt?-S:S);return de(J)})}),ae()):i(function(L){var J=L+S;return J})}),ct=Fe(Ct,pe,Ee,Ue,Xe,!!_,yt),rn=(0,y.A)(ct,2),Ye=rn[0],te=rn[1];ee(Ct,Je,function(S,u,L,J){var be=J;return Ve(S,u,L)?!1:!be||!be._virtualHandled?(be&&(be._virtualHandled=!0),Ye({preventDefault:function(){},deltaX:S?u:0,deltaY:S?0:u}),!0):!1}),xt(Lt,Je,function(S){i(function(u){return u+S})}),(0,Qe.A)(function(){function S(L){var J=pe&&L.detail<0,be=Ee&&L.detail>0;Ct&&!J&&!be&&L.preventDefault()}var u=Je.current;return u.addEventListener("wheel",Ye,{passive:!1}),u.addEventListener("DOMMouseScroll",te,{passive:!0}),u.addEventListener("MozMousePixelScroll",S,{passive:!1}),function(){u.removeEventListener("wheel",Ye),u.removeEventListener("DOMMouseScroll",te),u.removeEventListener("MozMousePixelScroll",S)}},[Ct,pe,Ee]),(0,Qe.A)(function(){if(_){var S=de(ut);En(S),ae({x:S})}},[re.width,_]);var K=function(){var u,L;(u=ce.current)===null||u===void 0||u.delayHidden(),(L=Ce.current)===null||L===void 0||L.delayHidden()},ie=Ht(Je,qe,vt,I,Pt,function(){return pn(!0)},i,K);l.useImperativeHandle(p,function(){return{nativeElement:In.current,getScrollInfo:Ke,scrollTo:function(u){function L(J){return J&&(0,N.A)(J)==="object"&&("left"in J||"top"in J)}L(u)?(u.left!==void 0&&En(de(u.left)),ie(u.top)):ie(u)}}}),(0,Qe.A)(function(){if(we){var S=qe.slice(B,E+1);we(S,qe)}},[B,E,qe]);var _e=Jt(qe,Pt,vt,I),Ae=lt==null?void 0:lt({start:B,end:E,virtual:Lt,offsetX:ut,offsetY:V,rtl:Nt,getSize:_e}),Oe=Ut(qe,B,E,_,ut,gn,f,e),je=null;x&&(je=(0,h.A)((0,d.A)({},k?"height":"maxHeight",x),wt),Ct&&(je.overflowY="hidden",_&&(je.overflowX="hidden"),Nn&&(je.pointerEvents="none")));var tt={};return Nt&&(tt.dir="rtl"),l.createElement("div",(0,U.A)({ref:In,style:(0,h.A)((0,h.A)({},P),{},{position:"relative"}),className:Mn},tt,dt),l.createElement(oe.A,{onResize:le},l.createElement(Se,{className:"".concat(g,"-holder"),style:je,ref:Je,onScroll:fe,onMouseEnter:K},l.createElement(F,{prefixCls:g,height:T,offsetX:ut,offsetY:V,scrollWidth:_,onInnerResize:pn,ref:An,innerProps:ot,rtl:Nt,extra:Ae},Oe))),Lt&&T>
3x&&l.createElement(Ot,{ref:ce,prefixCls:g,scrollOffset:Bt,scrollRange:T,rtl:Nt,onScroll:se,onStartMove:zn,onStopMove:t,spinSize:Ne,containerSize:re.height,style:Pe==null?void 0:Pe.verticalScrollBar,thumbStyle:Pe==null?void 0:Pe.verticalScrollBarThumb,showScrollBar:St}),Lt&&_>re.width&&l.createElement(Ot,{ref:Ce,prefixCls:g,scrollOffset:ut,scrollRange:_,rtl:Nt,onScroll:se,onStartMove:zn,onStopMove:t,spinSize:ke,containerSize:re.width,horizontal:!0,style:Pe==null?void 0:Pe.horizontalScrollBar,thumbStyle:Pe==null?void 0:Pe.horizontalScrollBarThumb,showScrollBar:St}))}var jt=l.forwardRef(mn);jt.displayName="List";var hn=jt,at=hn})}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.