Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 
 

2 rindas
60 KiB

  1. (self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[2323],{45747:function(){},54680:function(It,ze,o){"use strict";o.d(ze,{Z:function(){return be}});var ue=o(22122),U=o(96156),He=o(94184),xe=o.n(He),Me=o(85061),Ne=o(28991),ae=o(28481),pe=o(81253),de=o(90484),c=o(67294),E=o(74484),j=o(17341),he=o(88708),me=o(21770),fe=o(15105),De=o(56982),oe=o(76513),P=c.createContext(null),s=P,g=c.createContext(null),f=g;function y(n){return Array.isArray(n)?n:n!==void 0?[n]:[]}function C(n){var u=n||{},K=u.label,p=u.value,D=u.children,A=p||"value";return{_title:K?[K]:["title","label"],value:A,key:A,children:D||"children"}}function L(n){return!n||n.disabled||n.disableCheckbox||n.checkable===!1}function M(n,u){var K=[];function p(D){D.forEach(function(A){K.push(A[u.value]);var w=A[u.children];w&&p(w)})}return p(n),K}function I(n){return n==null}var G={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},t=function(u,K){var p=(0,E.lk)(),D=p.prefixCls,A=p.multiple,w=p.searchValue,R=p.toggleOpen,$=p.open,ne=p.notFoundContent,te=c.useContext(f),$e=te.virtual,ke=te.listHeight,Te=te.listItemHeight,we=te.treeData,Oe=te.fieldNames,Ye=te.onSelect,Qe=te.dropdownMatchSelectWidth,nt=te.treeExpandAction,se=c.useContext(s),Ie=se.checkable,Ve=se.checkedKeys,_e=se.halfCheckedKeys,rt=se.treeExpandedKeys,Pt=se.treeDefaultExpandAll,Zt=se.treeDefaultExpandedKeys,Kt=se.onTreeExpand,wt=se.treeIcon,bt=se.showTreeIcon,gt=se.switcherIcon,xt=se.treeLine,Nt=se.treeNodeFilterProp,at=se.loadData,Ce=se.treeLoadedKeys,We=se.treeMotion,ot=se.onTreeLoad,qe=se.keyEntities,Be=c.useRef(),et=(0,De.Z)(function(){return we},[$,we],function(Ue,je){return je[0]&&Ue[1]!==je[1]}),yt=c.useMemo(function(){return Ie?{checked:Ve,halfChecked:_e}:null},[Ie,Ve,_e]);c.useEffect(function(){if($&&!A&&Ve.length){var Ue;(Ue=Be.current)===null||Ue===void 0||Ue.scrollTo({key:Ve[0]})}},[$]);var Ze=String(w).toLowerCase(),ft=function(je){return Ze?String(je[Nt]).toLowerCase().includes(Ze):!1},Dt=c.useState(Zt),Rt=(0,ae.Z)(Dt,2),Tt=Rt[0],Wt=Rt[1],Ot=c.useState(null),$t=(0,ae.Z)(Ot,2),Lt=$t[0],Ht=$t[1],Ut=c.useMemo(function(){return rt?(0,Me.Z)(rt):w?Lt:Tt},[Tt,Lt,rt,w]);c.useEffect(function(){w&&Ht(M(we,Oe))},[w]);var Yt=function(je){Wt(je),Ht(je),Kt&&Kt(je)},mt=function(je){je.preventDefault()},kt=function(je,Ct){var lt=Ct.node;Ie&&L(lt)||(Ye(lt.key,{selected:!Ve.includes(lt.key)}),A||R(!1))},Vt=c.useState(null),vt=(0,ae.Z)(Vt,2),Se=vt[0],Xt=vt[1],Et=qe[Se];if(c.useImperativeHandle(K,function(){var Ue;return{scrollTo:(Ue=Be.current)===null||Ue===void 0?void 0:Ue.scrollTo,onKeyDown:function(Ct){var lt,Xe=Ct.which;switch(Xe){case fe.Z.UP:case fe.Z.DOWN:case fe.Z.LEFT:case fe.Z.RIGHT:(lt=Be.current)===null||lt===void 0||lt.onKeyDown(Ct);break;case fe.Z.ENTER:{if(Et){var pt=(Et==null?void 0:Et.node)||{},Qt=pt.selectable,_t=pt.value;Qt!==!1&&kt(null,{node:{key:Se},selected:!Ve.includes(_t)})}break}case fe.Z.ESC:R(!1)}},onKeyUp:function(){}}}),et.length===0)return c.createElement("div",{role:"listbox",className:"".concat(D,"-empty"),onMouseDown:mt},ne);var Mt={fieldNames:Oe};return Ce&&(Mt.loadedKeys=Ce),Ut&&(Mt.expandedKeys=Ut),c.createElement("div",{onMouseDown:mt},Et&&$&&c.createElement("span",{style:G,"aria-live":"assertive"},Et.node.value),c.createElement(oe.Z,(0,ue.Z)({ref:Be,focusable:!1,prefixCls:"".concat(D,"-tree"),treeData:et,height:ke,itemHeight:Te,virtual:$e!==!1&&Qe!==!1,multiple:A,icon:wt,showIcon:bt,switcherIcon:gt,showLine:xt,loadData:w?null:at,motion:We,activeKey:Se,checkable:Ie,checkStrictly:!0,checkedKeys:yt,selectedKeys:Ie?[]:Ve,defaultExpandAll:Pt},Mt,{onActiveChange:Xt,onSelect:kt,onCheck:kt,onExpand:Yt,onLoad:ot,filterTreeNode:ft,expandAction:nt})))},b=c.forwardRef(t);b.displayName="OptionList";var T=b,z=function(){return null},i=z,d="SHOW_ALL",x="SHOW_PARENT",k="SHOW_CHILD";function Q(n,u,K,p){var D=new Set(n);return u===k?n.filter(function(A){var w=K[A];return!(w&&w.children&&w.children.some(function(R){var $=R.node;return D.has($[p.value])})&&w.children.every(function(R){var $=R.node;return L($)||D.has($[p.value])}))}):u===x?n.filter(function(A){var w=K[A],R=w?w.parent:null;return!(R&&!L(R.node)&&D.has(R.key))}):n}var Ke=o(50344),re=o(80334),_=["children","value"];function ge(n){return(0,Ke.Z)(n).map(function(u){if(!c.isValidElement(u)||!u.type)return null;var K=u.key,p=u.props,D=p.children,A=p.value,w=(0,pe.Z)(p,_),R=(0,Ne.Z)({key:K,value:A},w),$=ge(D);return $.length&&(R.children=$),R}).filter(function(u){return u})}function Fe(n){if(!n)return n;var u=(0,Ne.Z)({},n);return"props"in u||Object.defineProperty(u,"props",{get:function(){return(0,re.ZP)(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),u}}),u}function it(n,u,K,p,D,A){var w=null,R=null;function $(){function ne(te){var $e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",ke=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return te.map(function(Te,we){var Oe="".concat($e,"-").concat(we),Ye=Te[A.value],Qe=K.includes(Ye),nt=ne(Te[A.children]||[],Oe,Qe),se=c.createElement(i,Te,nt.map(function(Ve){return Ve.node}));if(u===Ye&&(w=se),Qe){var Ie={pos:Oe,node:se,children:nt};return ke||R.push(Ie),Ie}return null}).filter(function(Te){return Te})}R||(R=[],ne(p),R.sort(function(te,$e){var ke=te.node.props.value,Te=$e.node.props.value,we=K.indexOf(ke),Oe=K.indexOf(Te);return we-Oe}))}Object.defineProperty(n,"triggerNode",{get:function(){return(0,re.ZP)(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),$(),w}}),Object.defineProperty(n,"allCheckedNodes",{get:function(){return(0,re.ZP)(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),$(),D?R:R.map(function(te){var $e=te.node;return $e})}})}function Je(n,u){var K=u.id,p=u.pId,D=u.rootPId,A={},w=[],R=n.map(function($){var ne=(0,Ne.Z)({},$),te=ne[K];return A[te]=ne,ne.key=ne.key||te,ne});return R.forEach(function($){var ne=$[p],te=A[ne];te&&(te.children=te.children||[],te.children.push($)),(ne===D||!te&&D===null)&&w.push($)}),w}function st(n,u,K){return c.useMemo(function(){return n?K?Je(n,(0,Ne.Z)({id:"id",pId:"pId",rootPId:null},K!==!0?K:{})):n:ge(u)},[u,K,n])}var ct=function(n){var u=c.useRef({valueLabels:new Map});return c.useMemo(function(){var K=u.current.valueLabels,p=new Map,D=n.map(function(A){var w,R=A.value,$=(w=A.label)!==null&&w!==void 0?w:K.get(R);return p.set(R,$),(0,Ne.Z)((0,Ne.Z)({},A),{},{label:$})});return u.current.valueLabels=p,[D]},[n])};function Ae(n){var u=c.useRef();u.current=n;var K=c.useCallback(function(){return u.current.apply(u,arguments)},[]);return K}var ut=o(1089),dt=function(n,u){return c.useMemo(function(){var K=(0,ut.I8)(n,{fieldNames:u,initWrapper:function(D){return(0,Ne.Z)((0,Ne.Z)({},D),{},{valueEntities:new Map})},processEntity:function(D,A){var w=D.node[u.value];if(!1)var R;A.valueEntities.set(w,D)}});return K},[n,u])},m=function(n,u,K,p){return c.useMemo(function(){var D=n.map(function($){var ne=$.value;return ne}),A=u.map(function($){var ne=$.value;return ne}),w=D.filter(function($){return!p[$]});if(K){var R=(0,j.S)(D,!0,p);D=R.checkedKeys,A=R.halfCheckedKeys}return[Array.from(new Set([].concat((0,Me.Z)(w),(0,Me.Z)(D)))),A]},[n,u,K,p])},F=function(n,u,K){var p=K.treeNodeFilterProp,D=K.filterTreeNode,A=K.fieldNames,w=A.children;return c.useMemo(function(){if(!u||D===!1)return n;var R;if(typeof D=="function")R=D;else{var $=u.toUpperCase();R=function($e,ke){var Te=ke[p];return String(Te).toUpperCase().includes($)}}function ne(te){var $e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return te.map(function(ke){var Te=ke[w],we=$e||R(u,Fe(ke)),Oe=ne(Te||[],we);return we||Oe.length?(0,Ne.Z)((0,Ne.Z)({},ke),{},(0,U.Z)({isLeaf:void 0},w,Oe)):null}).filter(function(ke){return ke})}return ne(n)},[n,u,w,p,D])};function V(n){var u=n.searchPlaceholder,K=n.treeCheckStrictly,p=n.treeCheckable,D=n.labelInValue,A=n.value,w=n.multiple;warning(!u,"`searchPlaceholder` has been removed."),K&&D===!1&&warning(!1,"`treeCheckStrictly` will force set `labelInValue` to `true`."),(D||K)&&warning(toArray(A).every(function(R){return R&&_typeof(R)==="object"&&"value"in R}),"Invalid prop `value` supplied to `TreeSelect`. You should use { label: string, value: string | number } or [{ label: string, value: string | number }] instead."),K||w||p?warning(!A||Array.isArray(A),"`value` should be an array when `TreeSelect` is checkable or multiple."):warning(!Array.isArray(A),"`value` should not be array when `TreeSelect` is single mode.")}var e=null,N=["id","prefixCls","value","defaultValue","onChange","onSelect","onDeselect","searchValue","inputValue","onSearch","autoClearSearchValue","filterTreeNode","treeNodeFilterProp","showCheckedStrategy","treeNodeLabelProp","multiple","treeCheckable","treeCheckStrictly","labelInValue","fieldNames","treeDataSimpleMode","treeData","children","loadData","treeLoadedKeys","onTreeLoad","treeDefaultExpandAll","treeExpandedKeys","treeDefaultExpandedKeys","onTreeExpand","treeExpandAction","virtual","listHeight","listItemHeight","onDropdownVisibleChange","dropdownMatchSelectWidth","treeLine","treeIcon","showTreeIcon","switcherIcon","treeMotion"];function ie(n){return!n||(0,de.Z)(n)!=="object"}var q=c.forwardRef(function(n,u){var K=n.id,p=n.prefixCls,D=p===void 0?"rc-tree-select":p,A=n.value,w=n.defaultValue,R=n.onChange,$=n.onSelect,ne=n.onDeselect,te=n.searchValue,$e=n.inputValue,ke=n.onSearch,Te=n.autoClearSearchValue,we=Te===void 0?!0:Te,Oe=n.filterTreeNode,Ye=n.treeNodeFilterProp,Qe=Ye===void 0?"value":Ye,nt=n.showCheckedStrategy,se=nt===void 0?k:nt,Ie=n.treeNodeLabelProp,Ve=n.multiple,_e=n.treeCheckable,rt=n.treeCheckStrictly,Pt=n.labelInValue,Zt=n.fieldNames,Kt=n.treeDataSimpleMode,wt=n.treeData,bt=n.children,gt=n.loadData,xt=n.treeLoadedKeys,Nt=n.onTreeLoad,at=n.treeDefaultExpandAll,Ce=n.treeExpandedKeys,We=n.treeDefaultExpandedKeys,ot=n.onTreeExpand,qe=n.treeExpandAction,Be=n.virtual,et=n.listHeight,yt=et===void 0?200:et,Ze=n.listItemHeight,ft=Ze===void 0?20:Ze,Dt=n.onDropdownVisibleChange,Rt=n.dropdownMatchSelectWidth,Tt=Rt===void 0?!0:Rt,Wt=n.treeLine,Ot=n.treeIcon,$t=n.showTreeIcon,Lt=n.switcherIcon,Ht=n.treeMotion,Ut=(0,pe.Z)(n,N),Yt=(0,he.ZP)(K),mt=_e&&!rt,kt=_e||rt,Vt=rt||Pt,vt=kt||Ve,Se=c.useMemo(function(){return C(Zt)},[JSON.stringify(Zt)]),Xt=(0,me.Z)("",{value:te!==void 0?te:$e,postState:function(ce){return ce||""}}),Et=(0,ae.Z)(Xt,2),Mt=Et[0],Ue=Et[1],je=function(ce){Ue(ce),ke==null||ke(ce)},Ct=st(wt,bt,Kt),lt=dt(Ct,Se),Xe=lt.keyEntities,pt=lt.valueEntities,Qt=c.useCallback(function(ve){var ce=[],ye=[];return ve.forEach(function(Le){pt.has(Le)?ye.push(Le):ce.push(Le)}),{missingRawValues:ce,existRawValues:ye}},[pt]),_t=F(Ct,Mt,{fieldNames:Se,treeNodeFilterProp:Qe,filterTreeNode:Oe}),dn=c.useCallback(function(ve){if(ve){if(Ie)return ve[Ie];for(var ce=Se._title,ye=0;ye<ce.length;ye+=1){var Le=ve[ce[ye]];if(Le!==void 0)return Le}}},[Se,Ie]),qt=c.useCallback(function(ve){var ce=y(ve);return ce.map(function(ye){return ie(ye)?{value:ye}:ye})},[]),en=c.useCallback(function(ve){var ce=qt(ve);return ce.map(function(ye){var Le=ye.label,ht=ye.value,Ge=ye.halfChecked,Pe,Re=pt.get(ht);if(Re){var tt;Le=(tt=Le)!==null&&tt!==void 0?tt:dn(Re.node),Pe=Re.node.disabled}return{label:Le,value:ht,halfChecked:Ge,disabled:Pe}})},[pt,dn,qt]),hn=(0,me.Z)(w,{value:A}),ln=(0,ae.Z)(hn,2),sn=ln[0],gn=ln[1],cn=c.useMemo(function(){return qt(sn)},[qt,sn]),yn=c.useMemo(function(){var ve=[],ce=[];return cn.forEach(function(ye){ye.halfChecked?ce.push(ye):ve.push(ye)}),[ve,ce]},[cn]),un=(0,ae.Z)(yn,2),Bt=un[0],fn=un[1],vn=c.useMemo(function(){return Bt.map(function(ve){return ve.value})},[Bt]),mn=m(Bt,fn,mt,Xe),pn=(0,ae.Z)(mn,2),jt=pn[0],tn=pn[1],En=c.useMemo(function(){var ve=Q(jt,se,Xe,Se),ce=ve.map(function(Ge){var Pe,Re,tt;return(Pe=(Re=Xe[Ge])===null||Re===void 0||(tt=Re.node)===null||tt===void 0?void 0:tt[Se.value])!==null&&Pe!==void 0?Pe:Ge}),ye=ce.map(function(Ge){var Pe=Bt.find(function(Re){return Re.value===Ge});return{value:Ge,label:Pe==null?void 0:Pe.label}}),Le=en(ye),ht=Le[0];return!vt&&ht&&I(ht.value)&&I(ht.label)?[]:Le.map(function(Ge){var Pe;return(0,Ne.Z)((0,Ne.Z)({},Ge),{},{label:(Pe=Ge.label)!==null&&Pe!==void 0?Pe:Ge.value})})},[Se,vt,jt,Bt,en,se,Xe]),Cn=ct(En),Kn=(0,ae.Z)(Cn,1),xn=Kn[0],nn=Ae(function(ve,ce,ye){var Le=en(ve);if(gn(Le),we&&Ue(""),R){var ht=ve;if(mt){var Ge=Q(ve,se,Xe,Se);ht=Ge.map(function(St){var At=pt.get(St);return At?At.node[Se.value]:St})}var Pe=ce||{triggerValue:void 0,selected:void 0},Re=Pe.triggerValue,tt=Pe.selected,Gt=ht;if(rt){var on=fn.filter(function(St){return!ht.includes(St.value)});Gt=[].concat((0,Me.Z)(Gt),(0,Me.Z)(on))}var Jt=en(Gt),Ft={preValue:Bt,triggerValue:Re},zt=!0;(rt||ye==="selection"&&!tt)&&(zt=!1),it(Ft,Re,ve,Ct,zt,Se),kt?Ft.checked=tt:Ft.selected=tt;var rn=Vt?Jt:Jt.map(function(St){return St.value});R(vt?rn:rn[0],Vt?null:Jt.map(function(St){return St.label}),Ft)}}),an=c.useCallback(function(ve,ce){var ye,Le=ce.selected,ht=ce.source,Ge=Xe[ve],Pe=Ge==null?void 0:Ge.node,Re=(ye=Pe==null?void 0:Pe[Se.value])!==null&&ye!==void 0?ye:ve;if(!vt)nn([Re],{selected:!0,triggerValue:Re},"option");else{var tt=Le?[].concat((0,Me.Z)(vn),[Re]):jt.filter(function(At){return At!==Re});if(mt){var Gt=Qt(tt),on=Gt.missingRawValues,Jt=Gt.existRawValues,Ft=Jt.map(function(At){return pt.get(At).key}),zt;if(Le){var rn=(0,j.S)(Ft,!0,Xe);zt=rn.checkedKeys}else{var St=(0,j.S)(Ft,{checked:!1,halfCheckedKeys:tn},Xe);zt=St.checkedKeys}tt=[].concat((0,Me.Z)(on),(0,Me.Z)(zt.map(function(At){return Xe[At].node[Se.value]})))}nn(tt,{selected:Le,triggerValue:Re},ht||"option")}Le||!vt?$==null||$(Re,Fe(Pe)):ne==null||ne(Re,Fe(Pe))},[Qt,pt,Xe,Se,vt,vn,nn,mt,$,ne,jt,tn]),Nn=c.useCallback(function(ve){if(Dt){var ce={};Object.defineProperty(ce,"documentClickClose",{get:function(){return(0,re.ZP)(!1,"Second param of `onDropdownVisibleChange` has been removed."),!1}}),Dt(ve,ce)}},[Dt]),Dn=Ae(function(ve,ce){var ye=ve.map(function(Le){return Le.value});if(ce.type==="clear"){nn(ye,{},"selection");return}ce.values.length&&an(ce.values[0].value,{selected:!1,source:"selection"})}),kn=c.useMemo(function(){return{virtual:Be,dropdownMatchSelectWidth:Tt,listHeight:yt,listItemHeight:ft,treeData:_t,fieldNames:Se,onSelect:an,treeExpandAction:qe}},[Be,Tt,yt,ft,_t,Se,an,qe]),Sn=c.useMemo(function(){return{checkable:kt,loadData:gt,treeLoadedKeys:xt,onTreeLoad:Nt,checkedKeys:jt,halfCheckedKeys:tn,treeDefaultExpandAll:at,treeExpandedKeys:Ce,treeDefaultExpandedKeys:We,onTreeExpand:ot,treeIcon:Ot,treeMotion:Ht,showTreeIcon:$t,switcherIcon:Lt,treeLine:Wt,treeNodeFilterProp:Qe,keyEntities:Xe}},[kt,gt,xt,Nt,jt,tn,at,Ce,We,ot,Ot,Ht,$t,Lt,Wt,Qe,Xe]);return c.createElement(f.Provider,{value:kn},c.createElement(s.Provider,{value:Sn},c.createElement(E.Ac,(0,ue.Z)({ref:u},Ut,{id:Yt,prefixCls:D,mode:vt?"multiple":void 0,displayValues:xn,onDisplayValuesChange:Dn,searchValue:Mt,onSearch:je,OptionList:T,emptyOptions:!Ct.length,onDropdownVisibleChange:Nn,dropdownMatchSelectWidth:Tt}))))}),r=q;r.TreeNode=i,r.SHOW_ALL=d,r.SHOW_PARENT=x,r.SHOW_CHILD=k;var l=r,a=l,h=o(98423),S=o(53124),H=o(88258),Z=o(98866),O=o(97647),B=o(65223),Y=o(46163),v=o(61639),X=o(33603),J=o(9708),W=function(n,u){var K={};for(var p in n)Object.prototype.hasOwnProperty.call(n,p)&&u.indexOf(p)<0&&(K[p]=n[p]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var D=0,p=Object.getOwnPropertySymbols(n);D<p.length;D++)u.indexOf(p[D])<0&&Object.prototype.propertyIsEnumerable.call(n,p[D])&&(K[p[D]]=n[p[D]]);return K},ee=function(u,K){var p,D=u.prefixCls,A=u.size,w=u.disabled,R=u.bordered,$=R===void 0?!0:R,ne=u.className,te=u.treeCheckable,$e=u.multiple,ke=u.listHeight,Te=ke===void 0?256:ke,we=u.listItemHeight,Oe=we===void 0?26:we,Ye=u.placement,Qe=u.notFoundContent,nt=u.switcherIcon,se=u.treeLine,Ie=u.getPopupContainer,Ve=u.dropdownClassName,_e=u.popupClassName,rt=u.treeIcon,Pt=rt===void 0?!1:rt,Zt=u.transitionName,Kt=u.choiceTransitionName,wt=Kt===void 0?"":Kt,bt=u.status,gt=u.showArrow,xt=u.treeExpandAction,Nt=W(u,["prefixCls","size","disabled","bordered","className","treeCheckable","multiple","listHeight","listItemHeight","placement","notFoundContent","switcherIcon","treeLine","getPopupContainer","dropdownClassName","popupClassName","treeIcon","transitionName","choiceTransitionName","status","showArrow","treeExpandAction"]),at=c.useContext(S.E_),Ce=at.getPopupContainer,We=at.getPrefixCls,ot=at.renderEmpty,qe=at.direction,Be=at.virtual,et=at.dropdownMatchSelectWidth,yt=c.useContext(O.Z),Ze=We("select",D),ft=We("select-tree",D),Dt=We("tree-select",D),Rt=xe()(_e||Ve,"".concat(Dt,"-dropdown"),(0,U.Z)({},"".concat(Dt,"-dropdown-rtl"),qe==="rtl")),Tt=!!(te||$e),Wt=gt!==void 0?gt:Nt.loading||!Tt,Ot=(0,c.useContext)(B.aM),$t=Ot.status,Lt=Ot.hasFeedback,Ht=Ot.isFormItemInput,Ut=Ot.feedbackIcon,Yt=(0,J.F)($t,bt),mt=(0,Y.Z)((0,ue.Z)((0,ue.Z)({},Nt),{multiple:Tt,showArrow:Wt,hasFeedback:Lt,feedbackIcon:Ut,prefixCls:Ze})),kt=mt.suffixIcon,Vt=mt.removeIcon,vt=mt.clearIcon,Se;Qe!==void 0?Se=Qe:Se=(ot||H.Z)("Select");var Xt=(0,h.Z)(Nt,["suffixIcon","itemIcon","removeIcon","clearIcon","switcherIcon"]),Et=function(){return Ye!==void 0?Ye:qe==="rtl"?"bottomRight":"bottomLeft"},Mt=A||yt,Ue=c.useContext(Z.Z),je=w||Ue,Ct=xe()(!D&&Dt,(p={},(0,U.Z)(p,"".concat(Ze,"-lg"),Mt==="large"),(0,U.Z)(p,"".concat(Ze,"-sm"),Mt==="small"),(0,U.Z)(p,"".concat(Ze,"-rtl"),qe==="rtl"),(0,U.Z)(p,"".concat(Ze,"-borderless"),!$),(0,U.Z)(p,"".concat(Ze,"-in-form-item"),Ht),p),(0,J.Z)(Ze,Yt,Lt),ne),lt=We();return c.createElement(a,(0,ue.Z)({virtual:Be,dropdownMatchSelectWidth:et,disabled:je},Xt,{ref:K,prefixCls:Ze,className:Ct,listHeight:Te,listItemHeight:Oe,treeCheckable:te&&c.createElement("span",{className:"".concat(Ze,"-tree-checkbox-inner")}),treeLine:!!se,inputIcon:kt,multiple:$e,placement:Et(),removeIcon:Vt,clearIcon:vt,switcherIcon:function(pt){return(0,v.Z)(ft,nt,se,pt)},showTreeIcon:Pt,notFoundContent:Se,getPopupContainer:Ie||Ce,treeMotion:null,dropdownClassName:Rt,choiceTransitionName:(0,X.mL)(lt,"",wt),transitionName:(0,X.mL)(lt,(0,X.q0)(Ye),Zt),showArrow:Lt||gt,treeExpandAction:xt}))},le=c.forwardRef(ee),Ee=le;Ee.TreeNode=i,Ee.SHOW_ALL=d,Ee.SHOW_PARENT=x,Ee.SHOW_CHILD=k;var be=Ee},62999:function(It,ze,o){"use strict";var ue=o(38663),U=o.n(ue),He=o(45747),xe=o.n(He),Me=o(13254),Ne=o(43358)},61639:function(It,ze,o){"use strict";o.d(ze,{Z:function(){return E}});var ue=o(90484),U=o(44378),He=o(86504),xe=o(7085),Me=o(18095),Ne=o(18267),ae=o(94184),pe=o.n(ae),de=o(67294),c=o(96159);function E(j,he,me,fe){var De=fe.isLeaf,oe=fe.expanded,P=fe.loading;if(P)return de.createElement(xe.Z,{className:"".concat(j,"-switcher-loading-icon")});var s;if(me&&(0,ue.Z)(me)==="object"&&(s=me.showLeafIcon),De)return me?(0,ue.Z)(me)==="object"&&!s?de.createElement("span",{className:"".concat(j,"-switcher-leaf-line")}):de.createElement(He.Z,{className:"".concat(j,"-switcher-line-icon")}):null;var g="".concat(j,"-switcher-icon"),f=typeof he=="function"?he(fe):he;return(0,c.l$)(f)?(0,c.Tm)(f,{className:pe()(f.props.className||"",g)}):f||(me?oe?de.createElement(Me.Z,{className:"".concat(j,"-switcher-line-icon")}):de.createElement(Ne.Z,{className:"".concat(j,"-switcher-line-icon")}):de.createElement(U.Z,{className:g}))}},4258:function(It,ze,o){"use strict";o.d(ze,{Z:function(){return L}});var ue=o(22122),U=o(96156),He=o(81253),xe=o(28991),Me=o(6610),Ne=o(5991),ae=o(63349),pe=o(10379),de=o(54070),c=o(67294),E=o(94184),j=o.n(E),he=o(64217),me=o(27822),fe=function(I){for(var G=I.prefixCls,t=I.level,b=I.isStart,T=I.isEnd,z="".concat(G,"-indent-unit"),i=[],d=0;d<t;d+=1){var x;i.push(c.createElement("span",{key:d,className:j()(z,(x={},(0,U.Z)(x,"".concat(z,"-start"),b[d]),(0,U.Z)(x,"".concat(z,"-end"),T[d]),x))}))}return c.createElement("span",{"aria-hidden":"true",className:"".concat(G,"-indent")},i)},De=c.memo(fe),oe=o(1089),P=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],s="open",g="close",f="---",y=function(M){(0,pe.Z)(G,M);var I=(0,de.Z)(G);function G(){var t;(0,Me.Z)(this,G);for(var b=arguments.length,T=new Array(b),z=0;z<b;z++)T[z]=arguments[z];return t=I.call.apply(I,[this].concat(T)),t.state={dragNodeHighlight:!1},t.selectHandle=void 0,t.onSelectorClick=function(i){var d=t.props.context.onNodeClick;d(i,(0,oe.F)(t.props)),t.isSelectable()?t.onSelect(i):t.onCheck(i)},t.onSelectorDoubleClick=function(i){var d=t.props.context.onNodeDoubleClick;d(i,(0,oe.F)(t.props))},t.onSelect=function(i){if(!t.isDisabled()){var d=t.props.context.onNodeSelect;i.preventDefault(),d(i,(0,oe.F)(t.props))}},t.onCheck=function(i){if(!t.isDisabled()){var d=t.props,x=d.disableCheckbox,k=d.checked,Q=t.props.context.onNodeCheck;if(!(!t.isCheckable()||x)){i.preventDefault();var Ke=!k;Q(i,(0,oe.F)(t.props),Ke)}}},t.onMouseEnter=function(i){var d=t.props.context.onNodeMouseEnter;d(i,(0,oe.F)(t.props))},t.onMouseLeave=function(i){var d=t.props.context.onNodeMouseLeave;d(i,(0,oe.F)(t.props))},t.onContextMenu=function(i){var d=t.props.context.onNodeContextMenu;d(i,(0,oe.F)(t.props))},t.onDragStart=function(i){var d=t.props.context.onNodeDragStart;i.stopPropagation(),t.setState({dragNodeHighlight:!0}),d(i,(0,ae.Z)(t));try{i.dataTransfer.setData("text/plain","")}catch(x){}},t.onDragEnter=function(i){var d=t.props.context.onNodeDragEnter;i.preventDefault(),i.stopPropagation(),d(i,(0,ae.Z)(t))},t.onDragOver=function(i){var d=t.props.context.onNodeDragOver;i.preventDefault(),i.stopPropagation(),d(i,(0,ae.Z)(t))},t.onDragLeave=function(i){var d=t.props.context.onNodeDragLeave;i.stopPropagation(),d(i,(0,ae.Z)(t))},t.onDragEnd=function(i){var d=t.props.context.onNodeDragEnd;i.stopPropagation(),t.setState({dragNodeHighlight:!1}),d(i,(0,ae.Z)(t))},t.onDrop=function(i){var d=t.props.context.onNodeDrop;i.preventDefault(),i.stopPropagation(),t.setState({dragNodeHighlight:!1}),d(i,(0,ae.Z)(t))},t.onExpand=function(i){var d=t.props,x=d.loading,k=d.context.onNodeExpand;x||k(i,(0,oe.F)(t.props))},t.setSelectHandle=function(i){t.selectHandle=i},t.getNodeState=function(){var i=t.props.expanded;return t.isLeaf()?null:i?s:g},t.hasChildren=function(){var i=t.props.eventKey,d=t.props.context.keyEntities,x=d[i]||{},k=x.children;return!!(k||[]).length},t.isLeaf=function(){var i=t.props,d=i.isLeaf,x=i.loaded,k=t.props.context.loadData,Q=t.hasChildren();return d===!1?!1:d||!k&&!Q||k&&x&&!Q},t.isDisabled=function(){var i=t.props.disabled,d=t.props.context.disabled;return!!(d||i)},t.isCheckable=function(){var i=t.props.checkable,d=t.props.context.checkable;return!d||i===!1?!1:d},t.syncLoadData=function(i){var d=i.expanded,x=i.loading,k=i.loaded,Q=t.props.context,Ke=Q.loadData,re=Q.onNodeLoad;x||Ke&&d&&!t.isLeaf()&&!t.hasChildren()&&!k&&re((0,oe.F)(t.props))},t.isDraggable=function(){var i=t.props,d=i.data,x=i.context.draggable;return!!(x&&(!x.nodeDraggable||x.nodeDraggable(d)))},t.renderDragHandler=function(){var i=t.props.context,d=i.draggable,x=i.prefixCls;return(d==null?void 0:d.icon)?c.createElement("span",{className:"".concat(x,"-draggable-icon")},d.icon):null},t.renderSwitcherIconDom=function(i){var d=t.props.switcherIcon,x=t.props.context.switcherIcon,k=d||x;return typeof k=="function"?k((0,xe.Z)((0,xe.Z)({},t.props),{},{isLeaf:i})):k},t.renderSwitcher=function(){var i=t.props.expanded,d=t.props.context.prefixCls;if(t.isLeaf()){var x=t.renderSwitcherIconDom(!0);return x!==!1?c.createElement("span",{className:j()("".concat(d,"-switcher"),"".concat(d,"-switcher-noop"))},x):null}var k=j()("".concat(d,"-switcher"),"".concat(d,"-switcher_").concat(i?s:g)),Q=t.renderSwitcherIconDom(!1);return Q!==!1?c.createElement("span",{onClick:t.onExpand,className:k},Q):null},t.renderCheckbox=function(){var i=t.props,d=i.checked,x=i.halfChecked,k=i.disableCheckbox,Q=t.props.context.prefixCls,Ke=t.isDisabled(),re=t.isCheckable();if(!re)return null;var _=typeof re!="boolean"?re:null;return c.createElement("span",{className:j()("".concat(Q,"-checkbox"),d&&"".concat(Q,"-checkbox-checked"),!d&&x&&"".concat(Q,"-checkbox-indeterminate"),(Ke||k)&&"".concat(Q,"-checkbox-disabled")),onClick:t.onCheck},_)},t.renderIcon=function(){var i=t.props.loading,d=t.props.context.prefixCls;return c.createElement("span",{className:j()("".concat(d,"-iconEle"),"".concat(d,"-icon__").concat(t.getNodeState()||"docu"),i&&"".concat(d,"-icon_loading"))})},t.renderSelector=function(){var i=t.state.dragNodeHighlight,d=t.props,x=d.title,k=d.selected,Q=d.icon,Ke=d.loading,re=d.data,_=t.props.context,ge=_.prefixCls,Fe=_.showIcon,it=_.icon,Je=_.loadData,st=_.titleRender,ct=t.isDisabled(),Ae="".concat(ge,"-node-content-wrapper"),ut;if(Fe){var dt=Q||it;ut=dt?c.createElement("span",{className:j()("".concat(ge,"-iconEle"),"".concat(ge,"-icon__customize"))},typeof dt=="function"?dt(t.props):dt):t.renderIcon()}else Je&&Ke&&(ut=t.renderIcon());var m;typeof x=="function"?m=x(re):st?m=st(re):m=x;var F=c.createElement("span",{className:"".concat(ge,"-title")},m);return c.createElement("span",{ref:t.setSelectHandle,title:typeof x=="string"?x:"",className:j()("".concat(Ae),"".concat(Ae,"-").concat(t.getNodeState()||"normal"),!ct&&(k||i)&&"".concat(ge,"-node-selected")),onMouseEnter:t.onMouseEnter,onMouseLeave:t.onMouseLeave,onContextMenu:t.onContextMenu,onClick:t.onSelectorClick,onDoubleClick:t.onSelectorDoubleClick},ut,F,t.renderDropIndicator())},t.renderDropIndicator=function(){var i=t.props,d=i.disabled,x=i.eventKey,k=t.props.context,Q=k.draggable,Ke=k.dropLevelOffset,re=k.dropPosition,_=k.prefixCls,ge=k.indent,Fe=k.dropIndicatorRender,it=k.dragOverNodeKey,Je=k.direction,st=Q!==!1,ct=!d&&st&&it===x;return ct?Fe({dropPosition:re,dropLevelOffset:Ke,indent:ge,prefixCls:_,direction:Je}):null},t}return(0,Ne.Z)(G,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var b=this.props.selectable,T=this.props.context.selectable;return typeof b=="boolean"?b:T}},{key:"render",value:function(){var b,T=this.props,z=T.eventKey,i=T.className,d=T.style,x=T.dragOver,k=T.dragOverGapTop,Q=T.dragOverGapBottom,Ke=T.isLeaf,re=T.isStart,_=T.isEnd,ge=T.expanded,Fe=T.selected,it=T.checked,Je=T.halfChecked,st=T.loading,ct=T.domRef,Ae=T.active,ut=T.data,dt=T.onMouseMove,m=T.selectable,F=(0,He.Z)(T,P),V=this.props.context,e=V.prefixCls,N=V.filterTreeNode,ie=V.keyEntities,q=V.dropContainerKey,r=V.dropTargetKey,l=V.draggingNodeKey,a=this.isDisabled(),h=(0,he.Z)(F,{aria:!0,data:!0}),S=ie[z]||{},H=S.level,Z=_[_.length-1],O=this.isDraggable(),B=!a&&O,Y=l===z,v=m!==void 0?{"aria-selected":!!m}:void 0;return c.createElement("div",(0,ue.Z)({ref:ct,className:j()(i,"".concat(e,"-treenode"),(b={},(0,U.Z)(b,"".concat(e,"-treenode-disabled"),a),(0,U.Z)(b,"".concat(e,"-treenode-switcher-").concat(ge?"open":"close"),!Ke),(0,U.Z)(b,"".concat(e,"-treenode-checkbox-checked"),it),(0,U.Z)(b,"".concat(e,"-treenode-checkbox-indeterminate"),Je),(0,U.Z)(b,"".concat(e,"-treenode-selected"),Fe),(0,U.Z)(b,"".concat(e,"-treenode-loading"),st),(0,U.Z)(b,"".concat(e,"-treenode-active"),Ae),(0,U.Z)(b,"".concat(e,"-treenode-leaf-last"),Z),(0,U.Z)(b,"".concat(e,"-treenode-draggable"),O),(0,U.Z)(b,"dragging",Y),(0,U.Z)(b,"drop-target",r===z),(0,U.Z)(b,"drop-container",q===z),(0,U.Z)(b,"drag-over",!a&&x),(0,U.Z)(b,"drag-over-gap-top",!a&&k),(0,U.Z)(b,"drag-over-gap-bottom",!a&&Q),(0,U.Z)(b,"filter-node",N&&N((0,oe.F)(this.props))),b)),style:d,draggable:B,"aria-grabbed":Y,onDragStart:B?this.onDragStart:void 0,onDragEnter:O?this.onDragEnter:void 0,onDragOver:O?this.onDragOver:void 0,onDragLeave:O?this.onDragLeave:void 0,onDrop:O?this.onDrop:void 0,onDragEnd:O?this.onDragEnd:void 0,onMouseMove:dt},v,h),c.createElement(De,{prefixCls:e,level:H,isStart:re,isEnd:_}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),G}(c.Component),C=function(I){return c.createElement(me.k.Consumer,null,function(G){return c.createElement(y,(0,ue.Z)({},I,{context:G}))})};C.displayName="TreeNode",C.defaultProps={title:f},C.isTreeNode=1;var L=C},27822:function(It,ze,o){"use strict";o.d(ze,{k:function(){return U}});var ue=o(67294),U=ue.createContext(null)},76513:function(It,ze,o){"use strict";o.d(ze,{O:function(){return L.Z},Z:function(){return dt}});var ue=o(22122),U=o(96156),He=o(90484),xe=o(28991),Me=o(85061),Ne=o(6610),ae=o(5991),pe=o(63349),de=o(10379),c=o(54070),E=o(67294),j=o(15105),he=o(80334),me=o(64217),fe=o(94184),De=o.n(fe),oe=o(27822),P=o(10225),s=o(1089),g=o(28481),f=o(81253),y=o(7606),C=o(63441),L=o(4258),M=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],I=function(F,V){var e=F.className,N=F.style,ie=F.motion,q=F.motionNodes,r=F.motionType,l=F.onMotionStart,a=F.onMotionEnd,h=F.active,S=F.treeNodeRequiredProps,H=(0,f.Z)(F,M),Z=E.useState(!0),O=(0,g.Z)(Z,2),B=O[0],Y=O[1],v=E.useContext(oe.k),X=v.prefixCls,J=E.useRef(!1),W=function(){J.current||a(),J.current=!0};return(0,E.useEffect)(function(){q&&r==="hide"&&B&&Y(!1)},[q]),(0,E.useEffect)(function(){return q&&l(),function(){q&&W()}},[]),q?E.createElement(C.Z,(0,ue.Z)({ref:V,visible:B},ie,{motionAppear:r==="show",onAppearEnd:W,onLeaveEnd:W}),function(ee,le){var Ee=ee.className,be=ee.style;return E.createElement("div",{ref:le,className:De()("".concat(X,"-treenode-motion"),Ee),style:be},q.map(function(n){var u=(0,ue.Z)({},n.data),K=n.title,p=n.key,D=n.isStart,A=n.isEnd;delete u.children;var w=(0,s.H8)(p,S);return E.createElement(L.Z,(0,ue.Z)({},u,w,{title:K,active:h,data:n.data,key:p,isStart:D,isEnd:A}))}))}):E.createElement(L.Z,(0,ue.Z)({domRef:V,className:e,style:N},H,{active:h}))};I.displayName="MotionTreeNode";var G=E.forwardRef(I),t=G;function b(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],V=m.length,e=F.length;if(Math.abs(V-e)!==1)return{add:!1,key:null};function N(ie,q){var r=new Map;ie.forEach(function(a){r.set(a,!0)});var l=q.filter(function(a){return!r.has(a)});return l.length===1?l[0]:null}return V<e?{add:!0,key:N(m,F)}:{add:!1,key:N(F,m)}}function T(m,F,V){var e=m.findIndex(function(r){return r.key===V}),N=m[e+1],ie=F.findIndex(function(r){return r.key===V});if(N){var q=F.findIndex(function(r){return r.key===N.key});return F.slice(ie+1,q)}return F.slice(ie+1)}var z=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],i={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},d=function(){},x="RC_TREE_MOTION_".concat(Math.random()),k={key:x},Q={key:x,level:0,index:0,pos:"0",node:k,nodes:[k]},Ke={parent:null,children:[],pos:Q.pos,data:k,title:null,key:x,isStart:[],isEnd:[]};function re(m,F,V,e){return F===!1||!V?m:m.slice(0,Math.ceil(V/e)+1)}function _(m){var F=m.key,V=m.pos;return(0,s.km)(F,V)}function ge(m){for(var F=String(m.data.key),V=m;V.parent;)V=V.parent,F="".concat(V.data.key," > ").concat(F);return F}var Fe=E.forwardRef(function(m,F){var V=m.prefixCls,e=m.data,N=m.selectable,ie=m.checkable,q=m.expandedKeys,r=m.selectedKeys,l=m.checkedKeys,a=m.loadedKeys,h=m.loadingKeys,S=m.halfCheckedKeys,H=m.keyEntities,Z=m.disabled,O=m.dragging,B=m.dragOverNodeKey,Y=m.dropPosition,v=m.motion,X=m.height,J=m.itemHeight,W=m.virtual,ee=m.focusable,le=m.activeItem,Ee=m.focused,be=m.tabIndex,n=m.onKeyDown,u=m.onFocus,K=m.onBlur,p=m.onActiveChange,D=m.onListChangeStart,A=m.onListChangeEnd,w=(0,f.Z)(m,z),R=E.useRef(null),$=E.useRef(null);E.useImperativeHandle(F,function(){return{scrollTo:function(We){R.current.scrollTo(We)},getIndentWidth:function(){return $.current.offsetWidth}}});var ne=E.useState(q),te=(0,g.Z)(ne,2),$e=te[0],ke=te[1],Te=E.useState(e),we=(0,g.Z)(Te,2),Oe=we[0],Ye=we[1],Qe=E.useState(e),nt=(0,g.Z)(Qe,2),se=nt[0],Ie=nt[1],Ve=E.useState([]),_e=(0,g.Z)(Ve,2),rt=_e[0],Pt=_e[1],Zt=E.useState(null),Kt=(0,g.Z)(Zt,2),wt=Kt[0],bt=Kt[1],gt=E.useRef(e);gt.current=e;function xt(){var Ce=gt.current;Ye(Ce),Ie(Ce),Pt([]),bt(null),A()}E.useEffect(function(){ke(q);var Ce=b($e,q);if(Ce.key!==null)if(Ce.add){var We=Oe.findIndex(function(Ze){var ft=Ze.key;return ft===Ce.key}),ot=re(T(Oe,e,Ce.key),W,X,J),qe=Oe.slice();qe.splice(We+1,0,Ke),Ie(qe),Pt(ot),bt("show")}else{var Be=e.findIndex(function(Ze){var ft=Ze.key;return ft===Ce.key}),et=re(T(e,Oe,Ce.key),W,X,J),yt=e.slice();yt.splice(Be+1,0,Ke),Ie(yt),Pt(et),bt("hide")}else Oe!==e&&(Ye(e),Ie(e))},[q,e]),E.useEffect(function(){O||xt()},[O]);var Nt=v?se:e,at={expandedKeys:q,selectedKeys:r,loadedKeys:a,loadingKeys:h,checkedKeys:l,halfCheckedKeys:S,dragOverNodeKey:B,dropPosition:Y,keyEntities:H};return E.createElement(E.Fragment,null,Ee&&le&&E.createElement("span",{style:i,"aria-live":"assertive"},ge(le)),E.createElement("div",null,E.createElement("input",{style:i,disabled:ee===!1||Z,tabIndex:ee!==!1?be:null,onKeyDown:n,onFocus:u,onBlur:K,value:"",onChange:d,"aria-label":"for screen reader"})),E.createElement("div",{className:"".concat(V,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden"}},E.createElement("div",{className:"".concat(V,"-indent")},E.createElement("div",{ref:$,className:"".concat(V,"-indent-unit")}))),E.createElement(y.Z,(0,ue.Z)({},w,{data:Nt,itemKey:_,height:X,fullHeight:!1,virtual:W,itemHeight:J,prefixCls:"".concat(V,"-list"),ref:R,onVisibleChange:function(We,ot){var qe=new Set(We),Be=ot.filter(function(et){return!qe.has(et)});Be.some(function(et){return _(et)===x})&&xt()}}),function(Ce){var We=Ce.pos,ot=(0,ue.Z)({},Ce.data),qe=Ce.title,Be=Ce.key,et=Ce.isStart,yt=Ce.isEnd,Ze=(0,s.km)(Be,We);delete ot.key,delete ot.children;var ft=(0,s.H8)(Ze,at);return E.createElement(t,(0,ue.Z)({},ot,ft,{title:qe,active:!!le&&Be===le.key,pos:We,data:Ce.data,isStart:et,isEnd:yt,motion:v,motionNodes:Be===x?rt:null,motionType:wt,onMotionStart:D,onMotionEnd:xt,treeNodeRequiredProps:at,onMouseMove:function(){p(null)}}))}))});Fe.displayName="NodeList";var it=Fe,Je=o(17341);function st(m){var F=m.dropPosition,V=m.dropLevelOffset,e=m.indent,N={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(F){case-1:N.top=0,N.left=-V*e;break;case 1:N.bottom=0,N.left=-V*e;break;case 0:N.bottom=0,N.left=e;break}return E.createElement("div",{style:N})}var ct=10,Ae=function(m){(0,de.Z)(V,m);var F=(0,c.Z)(V);function V(){var e;(0,Ne.Z)(this,V);for(var N=arguments.length,ie=new Array(N),q=0;q<N;q++)ie[q]=arguments[q];return e=F.call.apply(F,[this].concat(ie)),e.destroyed=!1,e.delayedDragEnterLogic=void 0,e.loadingRetryTimes={},e.state={keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:(0,s.w$)()},e.dragStartMousePosition=null,e.dragNode=void 0,e.currentMouseOverDroppableNodeKey=null,e.listRef=E.createRef(),e.onNodeDragStart=function(r,l){var a=e.state,h=a.expandedKeys,S=a.keyEntities,H=e.props.onDragStart,Z=l.props.eventKey;e.dragNode=l,e.dragStartMousePosition={x:r.clientX,y:r.clientY};var O=(0,P._5)(h,Z);e.setState({draggingNodeKey:Z,dragChildrenKeys:(0,P.wA)(Z,S),indent:e.listRef.current.getIndentWidth()}),e.setExpandedKeys(O),window.addEventListener("dragend",e.onWindowDragEnd),H==null||H({event:r,node:(0,s.F)(l.props)})},e.onNodeDragEnter=function(r,l){var a=e.state,h=a.expandedKeys,S=a.keyEntities,H=a.dragChildrenKeys,Z=a.flattenNodes,O=a.indent,B=e.props,Y=B.onDragEnter,v=B.onExpand,X=B.allowDrop,J=B.direction,W=l.props,ee=W.pos,le=W.eventKey,Ee=(0,pe.Z)(e),be=Ee.dragNode;if(e.currentMouseOverDroppableNodeKey!==le&&(e.currentMouseOverDroppableNodeKey=le),!be){e.resetDragState();return}var n=(0,P.OM)(r,be,l,O,e.dragStartMousePosition,X,Z,S,h,J),u=n.dropPosition,K=n.dropLevelOffset,p=n.dropTargetKey,D=n.dropContainerKey,A=n.dropTargetPos,w=n.dropAllowed,R=n.dragOverNodeKey;if(H.indexOf(p)!==-1||!w){e.resetDragState();return}if(e.delayedDragEnterLogic||(e.delayedDragEnterLogic={}),Object.keys(e.delayedDragEnterLogic).forEach(function($){clearTimeout(e.delayedDragEnterLogic[$])}),be.props.eventKey!==l.props.eventKey&&(r.persist(),e.delayedDragEnterLogic[ee]=window.setTimeout(function(){if(e.state.draggingNodeKey!==null){var $=(0,Me.Z)(h),ne=S[l.props.eventKey];ne&&(ne.children||[]).length&&($=(0,P.L0)(h,l.props.eventKey)),"expandedKeys"in e.props||e.setExpandedKeys($),v==null||v($,{node:(0,s.F)(l.props),expanded:!0,nativeEvent:r.nativeEvent})}},800)),be.props.eventKey===p&&K===0){e.resetDragState();return}e.setState({dragOverNodeKey:R,dropPosition:u,dropLevelOffset:K,dropTargetKey:p,dropContainerKey:D,dropTargetPos:A,dropAllowed:w}),Y==null||Y({event:r,node:(0,s.F)(l.props),expandedKeys:h})},e.onNodeDragOver=function(r,l){var a=e.state,h=a.dragChildrenKeys,S=a.flattenNodes,H=a.keyEntities,Z=a.expandedKeys,O=a.indent,B=e.props,Y=B.onDragOver,v=B.allowDrop,X=B.direction,J=(0,pe.Z)(e),W=J.dragNode;if(!!W){var ee=(0,P.OM)(r,W,l,O,e.dragStartMousePosition,v,S,H,Z,X),le=ee.dropPosition,Ee=ee.dropLevelOffset,be=ee.dropTargetKey,n=ee.dropContainerKey,u=ee.dropAllowed,K=ee.dropTargetPos,p=ee.dragOverNodeKey;h.indexOf(be)!==-1||!u||(W.props.eventKey===be&&Ee===0?e.state.dropPosition===null&&e.state.dropLevelOffset===null&&e.state.dropTargetKey===null&&e.state.dropContainerKey===null&&e.state.dropTargetPos===null&&e.state.dropAllowed===!1&&e.state.dragOverNodeKey===null||e.resetDragState():le===e.state.dropPosition&&Ee===e.state.dropLevelOffset&&be===e.state.dropTargetKey&&n===e.state.dropContainerKey&&K===e.state.dropTargetPos&&u===e.state.dropAllowed&&p===e.state.dragOverNodeKey||e.setState({dropPosition:le,dropLevelOffset:Ee,dropTargetKey:be,dropContainerKey:n,dropTargetPos:K,dropAllowed:u,dragOverNodeKey:p}),Y==null||Y({event:r,node:(0,s.F)(l.props)}))}},e.onNodeDragLeave=function(r,l){e.currentMouseOverDroppableNodeKey===l.props.eventKey&&!r.currentTarget.contains(r.relatedTarget)&&(e.resetDragState(),e.currentMouseOverDroppableNodeKey=null);var a=e.props.onDragLeave;a==null||a({event:r,node:(0,s.F)(l.props)})},e.onWindowDragEnd=function(r){e.onNodeDragEnd(r,null,!0),window.removeEventListener("dragend",e.onWindowDragEnd)},e.onNodeDragEnd=function(r,l){var a=e.props.onDragEnd;e.setState({dragOverNodeKey:null}),e.cleanDragState(),a==null||a({event:r,node:(0,s.F)(l.props)}),e.dragNode=null,window.removeEventListener("dragend",e.onWindowDragEnd)},e.onNodeDrop=function(r,l){var a,h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,S=e.state,H=S.dragChildrenKeys,Z=S.dropPosition,O=S.dropTargetKey,B=S.dropTargetPos,Y=S.dropAllowed;if(!!Y){var v=e.props.onDrop;if(e.setState({dragOverNodeKey:null}),e.cleanDragState(),O!==null){var X=(0,xe.Z)((0,xe.Z)({},(0,s.H8)(O,e.getTreeNodeRequiredProps())),{},{active:((a=e.getActiveItem())===null||a===void 0?void 0:a.key)===O,data:e.state.keyEntities[O].node}),J=H.indexOf(O)!==-1;(0,he.ZP)(!J,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var W=(0,P.yx)(B),ee={event:r,node:(0,s.F)(X),dragNode:e.dragNode?(0,s.F)(e.dragNode.props):null,dragNodesKeys:[e.dragNode.props.eventKey].concat(H),dropToGap:Z!==0,dropPosition:Z+Number(W[W.length-1])};h||v==null||v(ee),e.dragNode=null}}},e.cleanDragState=function(){var r=e.state.draggingNodeKey;r!==null&&e.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),e.dragStartMousePosition=null,e.currentMouseOverDroppableNodeKey=null},e.triggerExpandActionExpand=function(r,l){var a=e.state,h=a.expandedKeys,S=a.flattenNodes,H=l.expanded,Z=l.key,O=l.isLeaf;if(!(O||r.shiftKey||r.metaKey||r.ctrlKey)){var B=S.filter(function(v){return v.key===Z})[0],Y=(0,s.F)((0,xe.Z)((0,xe.Z)({},(0,s.H8)(Z,e.getTreeNodeRequiredProps())),{},{data:B.data}));e.setExpandedKeys(H?(0,P._5)(h,Z):(0,P.L0)(h,Z)),e.onNodeExpand(r,Y)}},e.onNodeClick=function(r,l){var a=e.props,h=a.onClick,S=a.expandAction;S==="click"&&e.triggerExpandActionExpand(r,l),h==null||h(r,l)},e.onNodeDoubleClick=function(r,l){var a=e.props,h=a.onDoubleClick,S=a.expandAction;S==="doubleClick"&&e.triggerExpandActionExpand(r,l),h==null||h(r,l)},e.onNodeSelect=function(r,l){var a=e.state.selectedKeys,h=e.state,S=h.keyEntities,H=h.fieldNames,Z=e.props,O=Z.onSelect,B=Z.multiple,Y=l.selected,v=l[H.key],X=!Y;X?B?a=(0,P.L0)(a,v):a=[v]:a=(0,P._5)(a,v);var J=a.map(function(W){var ee=S[W];return ee?ee.node:null}).filter(function(W){return W});e.setUncontrolledState({selectedKeys:a}),O==null||O(a,{event:"select",selected:X,node:l,selectedNodes:J,nativeEvent:r.nativeEvent})},e.onNodeCheck=function(r,l,a){var h=e.state,S=h.keyEntities,H=h.checkedKeys,Z=h.halfCheckedKeys,O=e.props,B=O.checkStrictly,Y=O.onCheck,v=l.key,X,J={event:"check",node:l,checked:a,nativeEvent:r.nativeEvent};if(B){var W=a?(0,P.L0)(H,v):(0,P._5)(H,v),ee=(0,P._5)(Z,v);X={checked:W,halfChecked:ee},J.checkedNodes=W.map(function(K){return S[K]}).filter(function(K){return K}).map(function(K){return K.node}),e.setUncontrolledState({checkedKeys:W})}else{var le=(0,Je.S)([].concat((0,Me.Z)(H),[v]),!0,S),Ee=le.checkedKeys,be=le.halfCheckedKeys;if(!a){var n=new Set(Ee);n.delete(v);var u=(0,Je.S)(Array.from(n),{checked:!1,halfCheckedKeys:be},S);Ee=u.checkedKeys,be=u.halfCheckedKeys}X=Ee,J.checkedNodes=[],J.checkedNodesPositions=[],J.halfCheckedKeys=be,Ee.forEach(function(K){var p=S[K];if(!!p){var D=p.node,A=p.pos;J.checkedNodes.push(D),J.checkedNodesPositions.push({node:D,pos:A})}}),e.setUncontrolledState({checkedKeys:Ee},!1,{halfCheckedKeys:be})}Y==null||Y(X,J)},e.onNodeLoad=function(r){var l=r.key,a=new Promise(function(h,S){e.setState(function(H){var Z=H.loadedKeys,O=Z===void 0?[]:Z,B=H.loadingKeys,Y=B===void 0?[]:B,v=e.props,X=v.loadData,J=v.onLoad;if(!X||O.indexOf(l)!==-1||Y.indexOf(l)!==-1)return null;var W=X(r);return W.then(function(){var ee=e.state.loadedKeys,le=(0,P.L0)(ee,l);J==null||J(le,{event:"load",node:r}),e.setUncontrolledState({loadedKeys:le}),e.setState(function(Ee){return{loadingKeys:(0,P._5)(Ee.loadingKeys,l)}}),h()}).catch(function(ee){if(e.setState(function(Ee){return{loadingKeys:(0,P._5)(Ee.loadingKeys,l)}}),e.loadingRetryTimes[l]=(e.loadingRetryTimes[l]||0)+1,e.loadingRetryTimes[l]>=ct){var le=e.state.loadedKeys;(0,he.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),e.setUncontrolledState({loadedKeys:(0,P.L0)(le,l)}),h()}S(ee)}),{loadingKeys:(0,P.L0)(Y,l)}})});return a.catch(function(){}),a},e.onNodeMouseEnter=function(r,l){var a=e.props.onMouseEnter;a==null||a({event:r,node:l})},e.onNodeMouseLeave=function(r,l){var a=e.props.onMouseLeave;a==null||a({event:r,node:l})},e.onNodeContextMenu=function(r,l){var a=e.props.onRightClick;a&&(r.preventDefault(),a({event:r,node:l}))},e.onFocus=function(){var r=e.props.onFocus;e.setState({focused:!0});for(var l=arguments.length,a=new Array(l),h=0;h<l;h++)a[h]=arguments[h];r==null||r.apply(void 0,a)},e.onBlur=function(){var r=e.props.onBlur;e.setState({focused:!1}),e.onActiveChange(null);for(var l=arguments.length,a=new Array(l),h=0;h<l;h++)a[h]=arguments[h];r==null||r.apply(void 0,a)},e.getTreeNodeRequiredProps=function(){var r=e.state,l=r.expandedKeys,a=r.selectedKeys,h=r.loadedKeys,S=r.loadingKeys,H=r.checkedKeys,Z=r.halfCheckedKeys,O=r.dragOverNodeKey,B=r.dropPosition,Y=r.keyEntities;return{expandedKeys:l||[],selectedKeys:a||[],loadedKeys:h||[],loadingKeys:S||[],checkedKeys:H||[],halfCheckedKeys:Z||[],dragOverNodeKey:O,dropPosition:B,keyEntities:Y}},e.setExpandedKeys=function(r){var l=e.state,a=l.treeData,h=l.fieldNames,S=(0,s.oH)(a,r,h);e.setUncontrolledState({expandedKeys:r,flattenNodes:S},!0)},e.onNodeExpand=function(r,l){var a=e.state.expandedKeys,h=e.state,S=h.listChanging,H=h.fieldNames,Z=e.props,O=Z.onExpand,B=Z.loadData,Y=l.expanded,v=l[H.key];if(!S){var X=a.indexOf(v),J=!Y;if((0,he.ZP)(Y&&X!==-1||!Y&&X===-1,"Expand state not sync with index check"),J?a=(0,P.L0)(a,v):a=(0,P._5)(a,v),e.setExpandedKeys(a),O==null||O(a,{node:l,expanded:J,nativeEvent:r.nativeEvent}),J&&B){var W=e.onNodeLoad(l);W&&W.then(function(){var ee=(0,s.oH)(e.state.treeData,a,H);e.setUncontrolledState({flattenNodes:ee})}).catch(function(){var ee=e.state.expandedKeys,le=(0,P._5)(ee,v);e.setExpandedKeys(le)})}}},e.onListChangeStart=function(){e.setUncontrolledState({listChanging:!0})},e.onListChangeEnd=function(){setTimeout(function(){e.setUncontrolledState({listChanging:!1})})},e.onActiveChange=function(r){var l=e.state.activeKey,a=e.props.onActiveChange;l!==r&&(e.setState({activeKey:r}),r!==null&&e.scrollTo({key:r}),a==null||a(r))},e.getActiveItem=function(){var r=e.state,l=r.activeKey,a=r.flattenNodes;return l===null?null:a.find(function(h){var S=h.key;return S===l})||null},e.offsetActiveKey=function(r){var l=e.state,a=l.flattenNodes,h=l.activeKey,S=a.findIndex(function(O){var B=O.key;return B===h});S===-1&&r<0&&(S=a.length),S=(S+r+a.length)%a.length;var H=a[S];if(H){var Z=H.key;e.onActiveChange(Z)}else e.onActiveChange(null)},e.onKeyDown=function(r){var l=e.state,a=l.activeKey,h=l.expandedKeys,S=l.checkedKeys,H=l.fieldNames,Z=e.props,O=Z.onKeyDown,B=Z.checkable,Y=Z.selectable;switch(r.which){case j.Z.UP:{e.offsetActiveKey(-1),r.preventDefault();break}case j.Z.DOWN:{e.offsetActiveKey(1),r.preventDefault();break}}var v=e.getActiveItem();if(v&&v.data){var X=e.getTreeNodeRequiredProps(),J=v.data.isLeaf===!1||!!(v.data[H.children]||[]).length,W=(0,s.F)((0,xe.Z)((0,xe.Z)({},(0,s.H8)(a,X)),{},{data:v.data,active:!0}));switch(r.which){case j.Z.LEFT:{J&&h.includes(a)?e.onNodeExpand({},W):v.parent&&e.onActiveChange(v.parent.key),r.preventDefault();break}case j.Z.RIGHT:{J&&!h.includes(a)?e.onNodeExpand({},W):v.children&&v.children.length&&e.onActiveChange(v.children[0].key),r.preventDefault();break}case j.Z.ENTER:case j.Z.SPACE:{B&&!W.disabled&&W.checkable!==!1&&!W.disableCheckbox?e.onNodeCheck({},W,!S.includes(a)):!B&&Y&&!W.disabled&&W.selectable!==!1&&e.onNodeSelect({},W);break}}}O==null||O(r)},e.setUncontrolledState=function(r){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!e.destroyed){var h=!1,S=!0,H={};Object.keys(r).forEach(function(Z){if(Z in e.props){S=!1;return}h=!0,H[Z]=r[Z]}),h&&(!l||S)&&e.setState((0,xe.Z)((0,xe.Z)({},H),a))}},e.scrollTo=function(r){e.listRef.current.scrollTo(r)},e}return(0,ae.Z)(V,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var N=this.props.activeKey;N!==void 0&&N!==this.state.activeKey&&(this.setState({activeKey:N}),N!==null&&this.scrollTo({key:N}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var N,ie=this.state,q=ie.focused,r=ie.flattenNodes,l=ie.keyEntities,a=ie.draggingNodeKey,h=ie.activeKey,S=ie.dropLevelOffset,H=ie.dropContainerKey,Z=ie.dropTargetKey,O=ie.dropPosition,B=ie.dragOverNodeKey,Y=ie.indent,v=this.props,X=v.prefixCls,J=v.className,W=v.style,ee=v.showLine,le=v.focusable,Ee=v.tabIndex,be=Ee===void 0?0:Ee,n=v.selectable,u=v.showIcon,K=v.icon,p=v.switcherIcon,D=v.draggable,A=v.checkable,w=v.checkStrictly,R=v.disabled,$=v.motion,ne=v.loadData,te=v.filterTreeNode,$e=v.height,ke=v.itemHeight,Te=v.virtual,we=v.titleRender,Oe=v.dropIndicatorRender,Ye=v.onContextMenu,Qe=v.onScroll,nt=v.direction,se=v.rootClassName,Ie=v.rootStyle,Ve=(0,me.Z)(this.props,{aria:!0,data:!0}),_e;return D&&((0,He.Z)(D)==="object"?_e=D:typeof D=="function"?_e={nodeDraggable:D}:_e={}),E.createElement(oe.k.Provider,{value:{prefixCls:X,selectable:n,showIcon:u,icon:K,switcherIcon:p,draggable:_e,draggingNodeKey:a,checkable:A,checkStrictly:w,disabled:R,keyEntities:l,dropLevelOffset:S,dropContainerKey:H,dropTargetKey:Z,dropPosition:O,dragOverNodeKey:B,indent:Y,direction:nt,dropIndicatorRender:Oe,loadData:ne,filterTreeNode:te,titleRender:we,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},E.createElement("div",{role:"tree",className:De()(X,J,se,(N={},(0,U.Z)(N,"".concat(X,"-show-line"),ee),(0,U.Z)(N,"".concat(X,"-focused"),q),(0,U.Z)(N,"".concat(X,"-active-focused"),h!==null),N)),style:Ie},E.createElement(it,(0,ue.Z)({ref:this.listRef,prefixCls:X,style:W,data:r,disabled:R,selectable:n,checkable:!!A,motion:$,dragging:a!==null,height:$e,itemHeight:ke,virtual:Te,focusable:le,focused:q,tabIndex:be,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Ye,onScroll:Qe},this.getTreeNodeRequiredProps(),Ve))))}}],[{key:"getDerivedStateFromProps",value:function(N,ie){var q=ie.prevProps,r={prevProps:N};function l(le){return!q&&le in N||q&&q[le]!==N[le]}var a,h=ie.fieldNames;if(l("fieldNames")&&(h=(0,s.w$)(N.fieldNames),r.fieldNames=h),l("treeData")?a=N.treeData:l("children")&&((0,he.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),a=(0,s.zn)(N.children)),a){r.treeData=a;var S=(0,s.I8)(a,{fieldNames:h});r.keyEntities=(0,xe.Z)((0,U.Z)({},x,Q),S.keyEntities)}var H=r.keyEntities||ie.keyEntities;if(l("expandedKeys")||q&&l("autoExpandParent"))r.expandedKeys=N.autoExpandParent||!q&&N.defaultExpandParent?(0,P.r7)(N.expandedKeys,H):N.expandedKeys;else if(!q&&N.defaultExpandAll){var Z=(0,xe.Z)({},H);delete Z[x],r.expandedKeys=Object.keys(Z).map(function(le){return Z[le].key})}else!q&&N.defaultExpandedKeys&&(r.expandedKeys=N.autoExpandParent||N.defaultExpandParent?(0,P.r7)(N.defaultExpandedKeys,H):N.defaultExpandedKeys);if(r.expandedKeys||delete r.expandedKeys,a||r.expandedKeys){var O=(0,s.oH)(a||ie.treeData,r.expandedKeys||ie.expandedKeys,h);r.flattenNodes=O}if(N.selectable&&(l("selectedKeys")?r.selectedKeys=(0,P.BT)(N.selectedKeys,N):!q&&N.defaultSelectedKeys&&(r.selectedKeys=(0,P.BT)(N.defaultSelectedKeys,N))),N.checkable){var B;if(l("checkedKeys")?B=(0,P.E6)(N.checkedKeys)||{}:!q&&N.defaultCheckedKeys?B=(0,P.E6)(N.defaultCheckedKeys)||{}:a&&(B=(0,P.E6)(N.checkedKeys)||{checkedKeys:ie.checkedKeys,halfCheckedKeys:ie.halfCheckedKeys}),B){var Y=B,v=Y.checkedKeys,X=v===void 0?[]:v,J=Y.halfCheckedKeys,W=J===void 0?[]:J;if(!N.checkStrictly){var ee=(0,Je.S)(X,!0,H);X=ee.checkedKeys,W=ee.halfCheckedKeys}r.checkedKeys=X,r.halfCheckedKeys=W}}return l("loadedKeys")&&(r.loadedKeys=N.loadedKeys),r}}]),V}(E.Component);Ae.defaultProps={prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:st,allowDrop:function(){return!0},expandAction:!1},Ae.TreeNode=L.Z;var ut=Ae,dt=ut},10225:function(It,ze,o){"use strict";o.d(ze,{_5:function(){return ae},L0:function(){return pe},yx:function(){return de},bt:function(){return c},Ds:function(){return E},wA:function(){return j},OM:function(){return fe},BT:function(){return De},E6:function(){return s},r7:function(){return g}});var ue=o(85061),U=o(90484),He=o(67294),xe=o(80334),Me=o(4258),Ne=null;function ae(f,y){if(!f)return[];var C=f.slice(),L=C.indexOf(y);return L>=0&&C.splice(L,1),C}function pe(f,y){var C=(f||[]).slice();return C.indexOf(y)===-1&&C.push(y),C}function de(f){return f.split("-")}function c(f,y){return"".concat(f,"-").concat(y)}function E(f){return f&&f.type&&f.type.isTreeNode}function j(f,y){var C=[],L=y[f];function M(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];I.forEach(function(G){var t=G.key,b=G.children;C.push(t),M(b)})}return M(L.children),C}function he(f){if(f.parent){var y=de(f.pos);return Number(y[y.length-1])===f.parent.children.length-1}return!1}function me(f){var y=de(f.pos);return Number(y[y.length-1])===0}function fe(f,y,C,L,M,I,G,t,b,T){var z,i=f.clientX,d=f.clientY,x=f.target.getBoundingClientRect(),k=x.top,Q=x.height,Ke=(T==="rtl"?-1:1)*(((M==null?void 0:M.x)||0)-i),re=(Ke-12)/L,_=t[C.props.eventKey];if(d<k+Q/2){var ge=G.findIndex(function(e){return e.key===_.key}),Fe=ge<=0?0:ge-1,it=G[Fe].key;_=t[it]}var Je=_.key,st=_,ct=_.key,Ae=0,ut=0;if(!b.includes(Je))for(var dt=0;dt<re&&he(_);dt+=1)_=_.parent,ut+=1;var m=y.props.data,F=_.node,V=!0;return me(_)&&_.level===0&&d<k+Q/2&&I({dragNode:m,dropNode:F,dropPosition:-1})&&_.key===C.props.eventKey?Ae=-1:(st.children||[]).length&&b.includes(ct)?I({dragNode:m,dropNode:F,dropPosition:0})?Ae=0:V=!1:ut===0?re>-1.5?I({dragNode:m,dropNode:F,dropPosition:1})?Ae=1:V=!1:I({dragNode:m,dropNode:F,dropPosition:0})?Ae=0:I({dragNode:m,dropNode:F,dropPosition:1})?Ae=1:V=!1:I({dragNode:m,dropNode:F,dropPosition:1})?Ae=1:V=!1,{dropPosition:Ae,dropLevelOffset:ut,dropTargetKey:_.key,dropTargetPos:_.pos,dragOverNodeKey:ct,dropContainerKey:Ae===0?null:((z=_.parent)===null||z===void 0?void 0:z.key)||null,dropAllowed:V}}function De(f,y){if(!!f){var C=y.multiple;return C?f.slice():f.length?[f[0]]:f}}var oe=function(y){return y};function P(f,y){if(!f)return[];var C=y||{},L=C.processProps,M=L===void 0?oe:L,I=Array.isArray(f)?f:[f];return I.map(function(G){var t=G.children,b=_objectWithoutProperties(G,Ne),T=P(t,y);return React.createElement(TreeNode,_extends({key:b.key},M(b)),T)})}function s(f){if(!f)return null;var y;if(Array.isArray(f))y={checkedKeys:f,halfCheckedKeys:void 0};else if((0,U.Z)(f)==="object")y={checkedKeys:f.checked||void 0,halfCheckedKeys:f.halfChecked||void 0};else return(0,xe.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return y}function g(f,y){var C=new Set;function L(M){if(!C.has(M)){var I=y[M];if(!!I){C.add(M);var G=I.parent,t=I.node;t.disabled||G&&L(G.key)}}}return(f||[]).forEach(function(M){L(M)}),(0,ue.Z)(C)}},17341:function(It,ze,o){"use strict";o.d(ze,{S:function(){return Ne}});var ue=o(80334);function U(ae,pe){var de=new Set;return ae.forEach(function(c){pe.has(c)||de.add(c)}),de}function He(ae){var pe=ae||{},de=pe.disabled,c=pe.disableCheckbox,E=pe.checkable;return!!(de||c)||E===!1}function xe(ae,pe,de,c){for(var E=new Set(ae),j=new Set,he=0;he<=de;he+=1){var me=pe.get(he)||new Set;me.forEach(function(P){var s=P.key,g=P.node,f=P.children,y=f===void 0?[]:f;E.has(s)&&!c(g)&&y.filter(function(C){return!c(C.node)}).forEach(function(C){E.add(C.key)})})}for(var fe=new Set,De=de;De>=0;De-=1){var oe=pe.get(De)||new Set;oe.forEach(function(P){var s=P.parent,g=P.node;if(!(c(g)||!P.parent||fe.has(P.parent.key))){if(c(P.parent.node)){fe.add(s.key);return}var f=!0,y=!1;(s.children||[]).filter(function(C){return!c(C.node)}).forEach(function(C){var L=C.key,M=E.has(L);f&&!M&&(f=!1),!y&&(M||j.has(L))&&(y=!0)}),f&&E.add(s.key),y&&j.add(s.key),fe.add(s.key)}})}return{checkedKeys:Array.from(E),halfCheckedKeys:Array.from(U(j,E))}}function Me(ae,pe,de,c,E){for(var j=new Set(ae),he=new Set(pe),me=0;me<=c;me+=1){var fe=de.get(me)||new Set;fe.forEach(function(s){var g=s.key,f=s.node,y=s.children,C=y===void 0?[]:y;!j.has(g)&&!he.has(g)&&!E(f)&&C.filter(function(L){return!E(L.node)}).forEach(function(L){j.delete(L.key)})})}he=new Set;for(var De=new Set,oe=c;oe>=0;oe-=1){var P=de.get(oe)||new Set;P.forEach(function(s){var g=s.parent,f=s.node;if(!(E(f)||!s.parent||De.has(s.parent.key))){if(E(s.parent.node)){De.add(g.key);return}var y=!0,C=!1;(g.children||[]).filter(function(L){return!E(L.node)}).forEach(function(L){var M=L.key,I=j.has(M);y&&!I&&(y=!1),!C&&(I||he.has(M))&&(C=!0)}),y||j.delete(g.key),C&&he.add(g.key),De.add(g.key)}})}return{checkedKeys:Array.from(j),halfCheckedKeys:Array.from(U(he,j))}}function Ne(ae,pe,de,c){var E=[],j;c?j=c:j=He;var he=new Set(ae.filter(function(oe){var P=!!de[oe];return P||E.push(oe),P})),me=new Map,fe=0;Object.keys(de).forEach(function(oe){var P=de[oe],s=P.level,g=me.get(s);g||(g=new Set,me.set(s,g)),g.add(P),fe=Math.max(fe,s)}),(0,ue.ZP)(!E.length,"Tree missing follow keys: ".concat(E.slice(0,100).map(function(oe){return"'".concat(oe,"'")}).join(", ")));var De;return pe===!0?De=xe(he,me,fe,j):De=Me(he,pe.halfCheckedKeys,me,fe,j),De}},1089:function(It,ze,o){"use strict";o.d(ze,{km:function(){return c},w$:function(){return E},zn:function(){return he},oH:function(){return me},I8:function(){return De},H8:function(){return oe},F:function(){return P}});var ue=o(90484),U=o(85061),He=o(28991),xe=o(81253),Me=o(98423),Ne=o(50344),ae=o(80334),pe=o(10225),de=["children"];function c(s,g){return s!=null?s:g}function E(s){var g=s||{},f=g.title,y=g._title,C=g.key,L=g.children,M=f||"title";return{title:M,_title:y||[M],key:C||"key",children:L||"children"}}function j(s,g){var f=new Map;function y(C){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(C||[]).forEach(function(M){var I=M[g.key],G=M[g.children];warning(I!=null,"Tree node must have a certain key: [".concat(L).concat(I,"]"));var t=String(I);warning(!f.has(t)||I===null||I===void 0,"Same 'key' exist in the Tree: ".concat(t)),f.set(t,!0),y(G,"".concat(L).concat(t," > "))})}y(s)}function he(s){function g(f){var y=(0,Ne.Z)(f);return y.map(function(C){if(!(0,pe.Ds)(C))return(0,ae.ZP)(!C,"Tree/TreeNode can only accept TreeNode as children."),null;var L=C.key,M=C.props,I=M.children,G=(0,xe.Z)(M,de),t=(0,He.Z)({key:L},G),b=g(I);return b.length&&(t.children=b),t}).filter(function(C){return C})}return g(s)}function me(s,g,f){var y=E(f),C=y._title,L=y.key,M=y.children,I=new Set(g===!0?[]:g),G=[];function t(b){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return b.map(function(z,i){for(var d=(0,pe.bt)(T?T.pos:"0",i),x=c(z[L],d),k,Q=0;Q<C.length;Q+=1){var Ke=C[Q];if(z[Ke]!==void 0){k=z[Ke];break}}var re=(0,He.Z)((0,He.Z)({},(0,Me.Z)(z,[].concat((0,U.Z)(C),[L,M]))),{},{title:k,key:x,parent:T,pos:d,children:null,data:z,isStart:[].concat((0,U.Z)(T?T.isStart:[]),[i===0]),isEnd:[].concat((0,U.Z)(T?T.isEnd:[]),[i===b.length-1])});return G.push(re),g===!0||I.has(x)?re.children=t(z[M]||[],re):re.children=[],re})}return t(s),G}function fe(s,g,f){var y={};(0,ue.Z)(f)==="object"?y=f:y={externalGetKey:f},y=y||{};var C=y,L=C.childrenPropName,M=C.externalGetKey,I=C.fieldNames,G=E(I),t=G.key,b=G.children,T=L||b,z;M?typeof M=="string"?z=function(x){return x[M]}:typeof M=="function"&&(z=function(x){return M(x)}):z=function(x,k){return c(x[t],k)};function i(d,x,k,Q){var Ke=d?d[T]:s,re=d?(0,pe.bt)(k.pos,x):"0",_=d?[].concat((0,U.Z)(Q),[d]):[];if(d){var ge=z(d,re),Fe={node:d,index:x,pos:re,key:ge,parentPos:k.node?k.pos:null,level:k.level+1,nodes:_};g(Fe)}Ke&&Ke.forEach(function(it,Je){i(it,Je,{node:d,pos:re,level:k?k.level+1:-1},_)})}i(null)}function De(s){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},f=g.initWrapper,y=g.processEntity,C=g.onProcessFinished,L=g.externalGetKey,M=g.childrenPropName,I=g.fieldNames,G=arguments.length>2?arguments[2]:void 0,t=L||G,b={},T={},z={posEntities:b,keyEntities:T};return f&&(z=f(z)||z),fe(s,function(i){var d=i.node,x=i.index,k=i.pos,Q=i.key,Ke=i.parentPos,re=i.level,_=i.nodes,ge={node:d,nodes:_,index:x,key:Q,pos:k,level:re},Fe=c(Q,k);b[k]=ge,T[Fe]=ge,ge.parent=b[Ke],ge.parent&&(ge.parent.children=ge.parent.children||[],ge.parent.children.push(ge)),y&&y(ge,z)},{externalGetKey:t,childrenPropName:M,fieldNames:I}),C&&C(z),z}function oe(s,g){var f=g.expandedKeys,y=g.selectedKeys,C=g.loadedKeys,L=g.loadingKeys,M=g.checkedKeys,I=g.halfCheckedKeys,G=g.dragOverNodeKey,t=g.dropPosition,b=g.keyEntities,T=b[s],z={eventKey:s,expanded:f.indexOf(s)!==-1,selected:y.indexOf(s)!==-1,loaded:C.indexOf(s)!==-1,loading:L.indexOf(s)!==-1,checked:M.indexOf(s)!==-1,halfChecked:I.indexOf(s)!==-1,pos:String(T?T.pos:""),dragOver:G===s&&t===0,dragOverGapTop:G===s&&t===-1,dragOverGapBottom:G===s&&t===1};return z}function P(s){var g=s.data,f=s.expanded,y=s.selected,C=s.checked,L=s.loaded,M=s.loading,I=s.halfChecked,G=s.dragOver,t=s.dragOverGapTop,b=s.dragOverGapBottom,T=s.pos,z=s.active,i=s.eventKey,d=(0,He.Z)((0,He.Z)({},g),{},{expanded:f,selected:y,checked:C,loaded:L,loading:M,halfChecked:I,dragOver:G,dragOverGapTop:t,dragOverGapBottom:b,pos:T,active:z,key:i});return"props"in d||Object.defineProperty(d,"props",{get:function(){return(0,ae.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),s}}),d}}}]);